import { CheckSuite, User, Repository, Rule, CheckRun, Organization, Installation, DeployKey, Deployment, DeploymentStatus, Discussion, Issue, Label, Hook, Milestone, Package, PageBuild, ProjectCard, ProjectColumn, Project, PullRequest, PullRequestReviewThread, PullRequestReview, Commit, Release, Branch, Team, Page, WorkflowJob, Workflow, WorkflowRun, MarketplacePurchase, MergeGroup, SecurityAdvisory, DiscussionComment, IssueComment, PullRequestReviewComment, CodeScanningAlert, CommitComment, DependabotAlert, MinimalRepository, ProjectV2, TruncatedUser, SecretScanningAlert, SecurityAndAnalysis, RepositoryRuleset, RepositoryAdvisory, SecretScanningAlertLocation, Sponsorship, Invitation, EnforcementLevel, Account, PersonalAccessTokenRequest, DiscussionCategory, Enterprise, ProjectV2Item, TruncatedCheckRun, TruncatedInstallation, RepositoryVulnerabilityAlert, CustomPropertyDefinition } from './types'; interface CommonEvent { readonly repository?: Repository | null; readonly enterprise?: Enterprise; readonly organization?: Organization; readonly installation?: TruncatedInstallation; readonly sender?: User | null; } export interface BranchOrTagCreationEvent extends CommonEvent { readonly ref: string; readonly ref_type: 'tag' | 'branch'; readonly master_branch: string; readonly description: string | null; readonly pusher_type: string; } export interface BranchOrTagDeletionEvent extends CommonEvent { readonly ref: string; readonly ref_type: 'tag' | 'branch'; readonly pusher_type: string; } export interface BranchProtectionConfigurationEvent extends CommonEvent { readonly action: 'enabled' | 'disabled'; } export interface BranchProtectionRuleEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'deleted'; readonly rule: Rule; readonly changes?: { readonly admin_enforced?: { readonly from: boolean | null; }; readonly authorized_actor_names?: { readonly from: string[]; }; readonly authorized_actors_only?: { readonly from: boolean | null; }; readonly authorized_dismissal_actors?: { readonly from: boolean | null; }; readonly required_status_checks?: { readonly from: string[]; }; readonly required_status_checks_enforcement_level?: { readonly from: EnforcementLevel; }; readonly merge_queue_enforcement_level?: { readonly from: EnforcementLevel; }; readonly required_deployments_enforcement_level?: { readonly from: EnforcementLevel; }; readonly name?: { readonly from: string; }; readonly pull_request_enforcement_level?: { readonly from: EnforcementLevel; }; readonly dismiss_stale_reviews_on_push?: { readonly from: boolean; }; readonly authorized_dismissal_actors_only?: { readonly from: boolean; }; readonly signature_requirement_enforcement_level?: { readonly from: EnforcementLevel; }; readonly linear_history_requirement_enforcement_level?: { readonly from: EnforcementLevel; }; readonly create_protected?: { readonly from: boolean; }; readonly allow_force_pushes_enforcement_level?: { readonly from: EnforcementLevel; }; readonly allow_deletions_enforcement_level?: { readonly from: EnforcementLevel; }; readonly required_conversation_resolution_level?: { readonly from: EnforcementLevel; }; readonly require_last_push_approval?: { readonly from: boolean; }; [x: string]: any; }; } export interface CheckSuiteEvent extends CommonEvent { readonly action: 'requested' | 'rerequested' | 'completed'; readonly check_suite: CheckSuite; } export interface CheckRunEvent extends CommonEvent { readonly action: 'created' | 'rerequested' | 'requested_action' | 'completed'; readonly check_run: CheckRun; readonly requested_action?: { readonly identifier?: string; }; } export interface CollaboratorEvent extends CommonEvent { readonly action: 'added' | 'removed' | 'edited'; readonly member: User | null; readonly changes?: { readonly old_permission?: { readonly from?: string; }; readonly permission?: { readonly from?: string | null; readonly to?: string | null; }; }; } export interface CodeScanningAlertEvent extends CommonEvent { readonly action: 'created' | 'reopened_by_user' | 'closed_by_user' | 'fixed' | 'appeared_in_branch' | 'reopened'; readonly alert: CodeScanningAlert; readonly ref: string | null; readonly commit_oid: string | null; } export interface CommitCommentEvent extends CommonEvent { readonly action: 'created'; readonly comment: CommitComment; } export interface CustomPropertyEvent extends CommonEvent { readonly action: 'updated' | 'deleted' | 'created'; readonly definition: CustomPropertyDefinition; } export interface CustomPropertyValuesEvent extends CommonEvent { readonly action: 'updated'; readonly new_property_values: { readonly property_name: string; readonly value: string | null; }[]; readonly old_property_values: { readonly property_name: string; readonly value: string | null; }[]; } export interface DependabotAlertEvent extends CommonEvent { readonly action: 'auto_dismissed' | 'auto_reopened' | 'created' | 'dismissed' | 'fixed' | 'reintroduced' | 'reopened'; readonly alert: DependabotAlert; } export interface DeployKeyEvent extends CommonEvent { readonly action: 'created' | 'deleted'; readonly key: DeployKey; } export interface DeploymentEvent extends CommonEvent { readonly action: 'created'; readonly deployment: Deployment; readonly workflow?: Workflow | null; readonly workflow_run: WorkflowRun | null; } export interface DeploymentProtectionRuleEvent extends CommonEvent { readonly action?: 'requested'; readonly environment?: string; readonly event?: string; readonly deployment_callback_url?: string; readonly deployment?: Deployment; readonly pull_requests?: PullRequest[]; } export interface DeploymentReviewEvent extends CommonEvent { readonly action: 'approved' | 'rejected' | 'requested'; readonly environment: string; readonly requestor?: User | null; readonly approver?: User | null; readonly comment?: string | null; readonly reviewers?: { readonly reviewer: User | Team; readonly type: 'User' | 'Organization'; }[]; readonly since?: Record; readonly workflow_job_run?: { readonly conclusion: string | null; readonly created_at: string; readonly environment: string; readonly html_url: string; readonly id: number; readonly name: string | null; readonly status: string; readonly updated_at: string; }; readonly workflow_job_runs: { readonly conclusion?: string | null; readonly created_at?: string; readonly environment?: string; readonly html_url?: string; readonly id?: number; readonly name?: string | null; readonly status?: string; readonly updated_at?: string; }[]; readonly workflow_run: WorkflowRun; } export interface DeploymentStatusEvent extends CommonEvent { readonly action: 'created'; readonly deployment: Deployment; readonly deployment_status: DeploymentStatus; readonly check_run: TruncatedCheckRun | null; readonly workflow?: Workflow | null; readonly workflow_run?: WorkflowRun | null; } export interface DiscussionEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'deleted' | 'pinned' | 'unpinned' | 'locked' | 'unlocked' | 'transferred' | 'category_changed' | 'answered' | 'unanswered' | 'labeled' | 'unlabeled'; readonly discussion: Discussion; readonly answer?: DiscussionComment; readonly changes?: { readonly category?: { readonly from: DiscussionCategory; }; readonly body?: { readonly from: string; }; readonly title?: { readonly from: string; }; readonly new_discussion?: Discussion; readonly new_repository?: Repository; }; readonly label?: Label; readonly old_answer?: DiscussionComment; } export interface DiscussionCommentEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'deleted'; readonly discussion: Discussion; readonly comment: DiscussionComment; readonly changes?: { readonly body: { readonly from: string; }; }; } export interface ForkEvent extends CommonEvent { readonly forkee: Repository; } export interface GithubAppAuthorizationEvent extends CommonEvent { readonly action: 'revoked'; } export interface InstallationEvent extends CommonEvent { readonly action: 'created' | 'deleted' | 'suspend' | 'unsuspend' | 'new_permissions_accepted'; readonly repositories: MinimalRepository[]; readonly requester?: User | null; readonly installation: Installation; } export interface InstallationRepositoriesEvent extends CommonEvent { readonly action: 'added' | 'removed'; readonly repository_selection: 'selected' | 'all'; readonly repositories_added: MinimalRepository[]; readonly repositories_removed: MinimalRepository[]; readonly requester?: User | null; readonly installation: Installation; } export interface InstallationTargetEvent extends CommonEvent { readonly action: 'renamed'; readonly account: Account; readonly changes: { readonly login?: { readonly from: string; }; readonly slug?: { readonly from: string; }; }; readonly target_type: string; } export interface IssueCommentEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'deleted'; readonly issue: Issue; readonly comment: IssueComment; readonly changes?: { readonly body?: { readonly from: string; }; }; } export interface IssueEvent extends CommonEvent { readonly action: 'opened' | 'edited' | 'deleted' | 'pinned' | 'unpinned' | 'closed' | 'reopened' | 'assigned' | 'unassigned' | 'labeled' | 'unlabeled' | 'locked' | 'unlocked' | 'transferred' | 'milestoned' | 'demilestoned'; readonly issue: Issue; readonly assignee?: User; readonly milestone?: Milestone; readonly changes?: { readonly body?: { readonly from: string; }; readonly title?: { readonly from: string; }; readonly old_issue?: Issue | null; readonly old_repository?: Repository | null; readonly new_repository?: Repository; readonly new_issue?: Issue; }; readonly label?: Label; } export interface LabelEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'deleted'; readonly label: Label; readonly changes?: { readonly color?: { readonly from: string; }; readonly description?: { readonly from: string; }; readonly name?: { readonly from: string; }; }; } export interface MarketplacePurchaseEvent extends CommonEvent { readonly action: 'purchased' | 'pending_change' | 'pending_change_cancelled' | 'changed' | 'cancelled'; readonly effective_date?: string; readonly marketplace_purchase?: MarketplacePurchase; readonly previous_marketplace_purchase?: MarketplacePurchase; } export interface MetaEvent extends CommonEvent { readonly action: 'deleted'; readonly hook_id: number; readonly hook: Hook; } export interface MilestoneEvent extends CommonEvent { readonly action: 'closed' | 'opened' | 'edited' | 'deleted'; readonly milestone: Milestone; readonly changes?: { readonly description?: { readonly from: string; }; readonly due_on?: { readonly from: string; }; readonly title?: { readonly from: string; }; }; } export interface MembershipEvent extends CommonEvent { readonly action: 'added' | 'removed'; readonly scope: 'team' | 'organization'; readonly member: User | null; readonly team: Team; } export interface MergeGroupEvent extends CommonEvent { readonly action: 'checks_requested' | 'deleted'; readonly merge_group: MergeGroup; readonly reason?: 'merged' | 'invalidated' | 'dequeued'; } export interface OrganizationEvent extends CommonEvent { readonly action: 'deleted' | 'renamed' | 'member_added' | 'member_removed' | 'member_invited'; readonly invitation?: Invitation; readonly user?: User | null; readonly changes?: { readonly login?: { readonly from?: string; }; }; } export interface OrgBlockEvent extends CommonEvent { readonly action: 'blocked' | 'unblocked'; readonly blocked_user: User | null; } export interface PackageEvent extends CommonEvent { readonly action: 'published' | 'updated'; readonly package: Package; } export interface RegistryPackageEvent extends CommonEvent { readonly action: 'published' | 'updated'; readonly registry_package: Package; } export interface PageBuildEvent extends CommonEvent { readonly id: number; readonly build: PageBuild; } export interface PersonalAccessTokenRequestEvent { readonly action: 'approved' | 'cancelled' | 'created' | 'denied'; readonly personal_access_token_request: PersonalAccessTokenRequest; } export interface PingEvent extends CommonEvent { readonly zen: string; readonly hook_id: number; readonly hook: Hook; } export interface ProjectCardEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'moved' | 'converted' | 'deleted'; readonly changes?: { readonly note?: { readonly from: string | null; }; readonly column_id?: { readonly from: number; }; }; readonly project_card: ProjectCard; } export interface ProjectColumnEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'moved' | 'deleted'; readonly changes?: { readonly name?: { readonly from: string; }; }; readonly project_column: ProjectColumn; } export interface ProjectEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'closed' | 'reopened' | 'deleted'; readonly changes?: { readonly body?: { readonly from: string; }; readonly name?: { readonly from: string; }; }; readonly project: Project; } export interface ProjectV2Event extends CommonEvent { readonly action: 'created' | 'edited' | 'reopened' | 'deleted' | 'closed'; readonly projects_v2: ProjectV2; readonly changes?: { readonly description?: { readonly from?: string | null; readonly to?: string | null; }; readonly public?: { readonly from?: boolean; readonly to?: boolean; }; readonly short_description?: { readonly from?: string | null; readonly to?: string | null; }; readonly title?: { readonly from?: string; readonly to?: string; }; }; } export interface ProjectV2ItemEvent extends CommonEvent { readonly action: 'archived' | 'converted' | 'created' | 'deleted' | 'edited' | 'reordered' | 'restored'; readonly projects_v2_item: ProjectV2Item; readonly changes?: { readonly archived_at?: { readonly from?: string | null; readonly to?: string | null; }; readonly content_type?: { readonly from?: string | null; readonly to?: string; }; readonly previous_projects_v2_item_node_id?: { readonly from?: string | null; readonly to?: string | null; }; [x: string]: any; }; } export interface PublicEvent extends CommonEvent { } export interface PullRequestReviewCommentEvent extends CommonEvent { readonly action: 'created' | 'edited' | 'deleted'; readonly changes?: { readonly body?: { readonly from: string; }; }; readonly pull_request: PullRequest; readonly comment: PullRequestReviewComment; } export interface PullRequestReviewThreadEvent extends CommonEvent { readonly action: 'resolved' | 'unresolved'; readonly pull_request: PullRequest; readonly thread: PullRequestReviewThread; } export interface PullRequestReviewEvent extends CommonEvent { readonly action: 'submitted' | 'edited' | 'dismissed'; readonly pull_request: PullRequest; readonly review: PullRequestReview; readonly changes?: { readonly body?: { readonly from: string; }; }; } export interface PullRequestEvent extends CommonEvent { readonly action: 'assigned' | 'auto_merge_disabled' | 'auto_merge_enabled' | 'closed' | 'converted_to_draft' | 'demilestoned' | 'dequeued' | 'edited' | 'enqueued' | 'labeled' | 'locked' | 'opened' | 'ready_for_review' | 'reopened' | 'review_request_removed' | 'review_requested' | 'synchronize' | 'unassigned' | 'unlabeled' | 'unlocked'; readonly number: number; readonly pull_request: PullRequest; readonly assignee?: User | null; readonly reason?: string; readonly milestone?: Milestone; readonly label?: Label; readonly requested_reviewer?: User | null; readonly requested_team?: Team; readonly after?: string; readonly before?: string; readonly changes?: { readonly base?: { readonly ref: { readonly from: string; }; }; readonly body?: { readonly from: string; }; readonly title?: { readonly from: string; }; }; } export interface PushEvent extends CommonEvent { readonly ref: string; readonly before: string; readonly after: string; readonly base_ref: string | null; readonly created: boolean; readonly deleted: boolean; readonly forced: boolean; readonly head_commit: Commit; readonly compare: string; readonly commits: Commit[]; readonly pusher: TruncatedUser; } export interface ReleaseEvent extends CommonEvent { readonly action: 'published' | 'unpublished' | 'created' | 'edited' | 'deleted' | 'prereleased' | 'released'; readonly changes?: { readonly body?: { readonly from: string; }; readonly name?: { readonly from: string; }; readonly make_latest?: { readonly from: string; }; }; readonly release: Release; } export interface RepositoryAdvisoryEvent extends CommonEvent { readonly action: 'published' | 'reported'; readonly repository_advisory: RepositoryAdvisory; } export interface RepositoryRulesetEvent extends CommonEvent { readonly action: 'created' | 'deleted' | 'edited'; readonly repository_ruleset: RepositoryRuleset; readonly changes?: { readonly name?: { readonly from?: string; }; readonly enforcement?: { readonly from?: string; }; readonly conditions?: { readonly added?: Record[]; readonly deleted?: Record[]; readonly updated?: { readonly condition?: { readonly ref_name?: { readonly include?: string[]; readonly exclude?: string[]; }; }; readonly changes?: { readonly condition_type?: { readonly from?: string; }; readonly target?: { readonly from?: string; }; readonly include?: { readonly from?: string[]; }; readonly exclude?: { readonly from?: string[]; }; }; }[]; readonly rules?: { readonly added?: Record[]; readonly deleted?: Record[]; readonly updated?: Record[]; }; }; readonly rules?: { readonly added?: Record[]; readonly deleted?: Record[]; readonly updated?: { readonly rule?: Record; readonly changes?: { readonly configuration?: { readonly from?: string; }; readonly rule_type?: { readonly from?: string; }; readonly pattern?: { readonly from?: string; }; }; }[]; }; }; } export interface RepositoryDispatchEvent extends CommonEvent { readonly action: 'sample.collected'; readonly branch: string; readonly client_payload: Record; } export interface RepositoryEvent extends CommonEvent { readonly action: 'created' | 'deleted' | 'archived' | 'unarchived' | 'edited' | 'renamed' | 'transferred' | 'publicized' | 'privatized'; readonly changes?: { readonly default_branch?: { readonly from: string; }; readonly description?: { readonly from: string | null; }; readonly homepage?: { readonly from: string | null; }; readonly topics?: { readonly from?: string[] | null; }; readonly repository?: { readonly name: { readonly from: string; }; }; readonly owner?: { readonly from: string; }; }; } export interface RepositoryImportEvent extends CommonEvent { readonly status: 'success' | 'cancelled' | 'failure'; } export interface RepositoryVulnerabilityAlertEvent extends CommonEvent { readonly action: 'create' | 'dismiss' | 'resolve'; readonly alert: RepositoryVulnerabilityAlert; } export interface SecretScanningAlertEvent extends CommonEvent { readonly action: 'created' | 'resolved' | 'reopened' | 'revoked'; readonly alert: SecretScanningAlert; } export interface SecretScanningAlertLocationEvent extends CommonEvent { readonly action: 'created'; readonly location: SecretScanningAlertLocation; readonly alert: SecretScanningAlert; } export interface SecurityAdvisoryEvent extends CommonEvent { readonly action: 'published' | 'updated' | 'withdrawn'; readonly security_advisory: SecurityAdvisory; } export interface SecurityAndAnalysisEvent extends CommonEvent { readonly changes: { readonly from?: { readonly security_and_analysis?: SecurityAndAnalysis | null; }; }; readonly repository: Repository & SecurityAndAnalysis; } export interface SponsorshipEvent extends CommonEvent { readonly action: 'created' | 'cancelled' | 'edited' | 'tier_changed' | 'pending_cancellation' | 'pending_tier_change'; readonly sponsorship: Sponsorship; readonly changes?: { readonly privacy_level?: { readonly from: string; }; readonly tier?: { readonly from: Sponsorship; }; }; readonly effective_date?: string; } export interface StarEvent extends CommonEvent { readonly action: 'created' | 'deleted'; readonly starred_at: string | null; } export interface StatusEvent extends CommonEvent { readonly avatar_url?: string | null; readonly id: number; readonly sha: string; readonly state: 'pending' | 'success' | 'failure' | 'error'; readonly description: string | null; readonly target_url: string | null; readonly branches: Branch[]; readonly context: string; readonly created_at: string; readonly updated_at: string; readonly commit: { readonly author: User | null; readonly comments_url: string; readonly commit: { readonly author: User | null; readonly comments_url: string; readonly commit: { readonly author: TruncatedUser; readonly comment_count: number; readonly committer: TruncatedUser; readonly message: string; readonly tree: { readonly sha: string; readonly url: string; }; readonly url: string; readonly verification: { readonly payload: string | null; readonly reason: string; readonly signature: string | null; readonly verified: boolean; }; }; readonly committer: User | null; readonly html_url: string; readonly node_id: string; readonly parents: { readonly html_url: string; readonly sha: string; readonly url: string; }[]; readonly sha: string; readonly url: string; }; readonly committer: User | null; readonly html_url: string; readonly node_id: string; readonly parents: { readonly html_url: string; readonly sha: string; readonly url: string; }[]; readonly sha: string; readonly url: string; }; } export interface TeamEvent extends CommonEvent { readonly action: 'created' | 'deleted' | 'edited' | 'added_to_repository' | 'removed_from_repository'; readonly team: Team; readonly changes?: { readonly description?: { readonly from: string; }; readonly name?: { readonly from: string; }; readonly privacy?: { readonly from: string; }; readonly notification_setting?: { readonly from: string; }; readonly repository?: { readonly permissions: { readonly from: { readonly admin?: boolean; readonly pull?: boolean; readonly push?: boolean; }; }; }; }; } export interface TeamAddEvent extends CommonEvent { readonly team: Team; } export interface WatchEvent extends CommonEvent { readonly action: 'started'; } export interface WikiEvent extends CommonEvent { readonly pages: Page[]; } export interface WorkflowDispatchEvent extends CommonEvent { readonly inputs: Record; readonly ref: string; readonly workflow: string; } export interface WorkflowJobEvent extends CommonEvent { readonly action: 'queued' | 'in_progress' | 'completed' | 'waiting'; readonly workflow_job: WorkflowJob; readonly deployment?: Deployment; } export interface WorkflowRunEvent extends CommonEvent { readonly action: 'requested' | 'completed' | 'in_progress'; readonly workflow_run: WorkflowRun; readonly workflow: Workflow | null; } export {}; //# sourceMappingURL=events.d.ts.map