@coderabbitai/bitbucket
Version:
CodeRabbit's TypeScript API client for connecting to Bitbucket Cloud and Bitbucket Data Center
25 lines • 1.48 kB
TypeScript
import type { Event } from "../event.ts";
import type { RepoCommentAdded } from "./comment_added.ts";
import type { RepoCommentDeleted } from "./comment_deleted.ts";
import type { RepoCommentEdited } from "./comment_edited.ts";
import type { RepoForked } from "./forked.ts";
import type { RepoModified } from "./modified.ts";
import type { RepoRefsChanged } from "./refs_changed.ts";
import type { RepoSecretDetected } from "./secret_detected.ts";
import type { MirrorRepoSynchronized } from "./synchronized.ts";
/** You can create webhooks for events that occur in a repository. */
export type RepoEvent = MirrorRepoSynchronized | RepoCommentAdded | RepoCommentDeleted | RepoCommentEdited | RepoForked | RepoModified | RepoRefsChanged | RepoSecretDetected;
export type RepoEventKey = RepoEvent["eventKey"];
export declare function isRepoEvent(event: Event): event is RepoEvent;
export declare function isRepoEventKey(key: unknown): key is RepoEventKey;
export declare const repoEventKeys: {
readonly "mirror:repo_synchronized": "mirror:repo_synchronized";
readonly "repo:comment:added": "repo:comment:added";
readonly "repo:comment:deleted": "repo:comment:deleted";
readonly "repo:comment:edited": "repo:comment:edited";
readonly "repo:forked": "repo:forked";
readonly "repo:modified": "repo:modified";
readonly "repo:refs_changed": "repo:refs_changed";
readonly "repo:secret_detected": "repo:secret_detected";
};
//# sourceMappingURL=event.d.ts.map