import { GithubCommitType, GithubRepoResponse, GithubRepositoryBranch, GithubRepositoryOwner } from "@/constants/types/github.js"; import { IUser } from "@/models/User.js"; export interface IWebhookService { webhookHandleNewRequest(userId: string, redirectPath: string): Promise; webhookInstaltnCreateEvent(installationId: number, account: GithubRepositoryOwner, repos: GithubRepoResponse[]): Promise; webhookInstaltnDeleteEvent(installationId: number, account: GithubRepositoryOwner, repos: GithubRepoResponse[]): Promise; webhookRepositoryAddRemove(added: GithubRepoResponse[], removed: GithubRepoResponse[]): Promise; webhookCodePushEvent( repo: GithubRepoResponse, meta: { sender: GithubRepositoryOwner; installationId: number; headCommit: GithubCommitType; ref: string; allChanges: string[]; deployRequired: boolean; }, ): Promise<{ status: string; reason: string }>; webhookCheckRunReRequestEvent( repo: GithubRepoResponse, meta: { sender: GithubRepositoryOwner; installationId: number; headCommitId: string; }, ): Promise<{ status: string; reason: string }>; githubSecondaryEvents(installationId: string, userId: string): Promise; removeGhbInstallation(installationId: string, userId: string, skipUserCheck?: boolean): Promise; removeGhbInstallationManual(userId: string): Promise; }