/** * This declaration file requires TypeScript 2.1 or above. */ declare namespace Github { export type WellKnownHeader = | "Authorization" | "If-Modified-Since" | "If-None-Match" | "Cookie" | "User-Agent" | "Accept" | "X-GitHub-OTP" ; export interface EmptyParams { } export interface Options { timeout?: number; host?: string; pathPrefix?: string; protocol?: string; port?: number; proxy?: string; ca?: string; headers?: {[header: string]: any}; requestMedia?: string; rejectUnauthorized?: boolean; family?: number; } export interface AuthBasic { type: "basic"; username: string; password: string; } export interface AuthOAuthToken { type: "oauth"; token: string; } export interface AuthOAuthSecret { type: "oauth"; key: string; secret: string; } export interface AuthUserToken { type: "token"; token: string; } export interface AuthJWT { type: "integration"; token: string; } export type Auth = | AuthBasic | AuthOAuthToken | AuthOAuthSecret | AuthUserToken | AuthJWT; export type Link = | { link: string; } | { meta: { link: string; }; } | string; export interface Callback { (error: Error | null, result: any): any; } export interface Files { files: string; } export interface Owner { owner: string; } export interface Username { username: string; } export interface Org { org: string; } export interface Repo { repo: string; } export interface Branch { branch: string; } export interface Sha { sha: string; } export interface Description { description?: string; } export interface Id { id: string; } export interface GistId { gist_id: string; } export interface InstallationId { installation_id: string; } export interface RepositoryId { repository_id: string; } export interface CommitId { commit_id: string; } export interface ClientId { client_id?: string; } export interface ColumnId { column_id: string; } export interface ProjectId { project_id: string; } export interface RepoId { repo_id: string; } export interface InvitationId { invitation_id: string; } export interface Ref { ref: string; } export interface Number { number: number; } export interface IssueNumber { issue_number: number; } export interface Name { name: string; } export interface Direction { direction?: "asc"|"desc"; } export interface Since { since?: Date; } export interface Until { until?: Date; } export interface State { state?: "open"|"closed"|"all"; } export interface Color { color: string; } export interface Base { base: string; } export interface Head { head: string; } export interface Path { path: string; } export interface Position { position: number; } export interface Body { body: string; } export interface Homepage { homepage?: string; } export interface Private { private?: boolean; } export interface HasIssues { has_issues?: boolean; } export interface HasProjects { has_projects?: boolean; } export interface HasWiki { has_wiki?: boolean; } export interface HasDownloads { has_downloads?: boolean; } export interface DefaultBranch { default_branch?: string; } export interface Title { title: string; } export interface Key { key: string; } export interface Page { page?: number; } export interface PerPage { per_page?: number; } export interface Scopes { scopes?: string[]; } export interface Note { note?: string; } export interface NoteUrl { note_url?: string; } export interface AutoInit { auto_init?: boolean; } export interface GitignoreTemplate { gitignore_template?: string; } export interface LicenseTemplate { license_template?: string; } export interface Order { order?: "asc"|"desc"; } export interface Q { q: string; } export interface Data { data: string; } export interface Privacy { privacy?: "secret"|"closed"; } export interface Fingerprint { fingerprint?: string; } export interface AccessToken { access_token: string; } export interface Assignees { assignees?: string[]; } export interface Url { url: string; } export interface ContentType { contentType: string; } export interface ContentLength { contentLength: number; } export type AuthorizationGetGrantsParams = & Page & PerPage ; export type AuthorizationGetGrantParams = & Id & Page & PerPage ; export type AuthorizationDeleteGrantParams = & Id ; export type AuthorizationGetAllParams = & Page & PerPage ; export type AuthorizationGetParams = & Id ; export type AuthorizationCreateParams = & Scopes & Note & NoteUrl & ClientId & Fingerprint & { client_secret?: string; }; export type AuthorizationGetOrCreateAuthorizationForAppParams = & ClientId & Scopes & Note & NoteUrl & Fingerprint & { client_secret: string; }; export type AuthorizationGetOrCreateAuthorizationForAppAndFingerprintParams = & ClientId & Fingerprint & Scopes & Note & NoteUrl & { client_secret: string; }; export type AuthorizationUpdateParams = & Id & Scopes & Note & NoteUrl & Fingerprint & { add_scopes?: string[]; remove_scopes?: string[]; }; export type AuthorizationDeleteParams = & Id ; export type AuthorizationCheckParams = & ClientId & AccessToken ; export type AuthorizationResetParams = & ClientId & AccessToken ; export type AuthorizationRevokeParams = & ClientId & AccessToken ; export type AuthorizationRevokeGrantParams = & ClientId & AccessToken ; export type ActivityGetEventsParams = & Page & PerPage ; export type ActivityGetEventsForRepoParams = & Owner & Repo & Page & PerPage ; export type ActivityGetEventsForRepoIssuesParams = & Owner & Repo & Page & PerPage ; export type ActivityGetEventsForRepoNetworkParams = & Owner & Repo & Page & PerPage ; export type ActivityGetEventsForOrgParams = & Org & Page & PerPage ; export type ActivityGetEventsReceivedParams = & Username & Page & PerPage ; export type ActivityGetEventsReceivedPublicParams = & Username & Page & PerPage ; export type ActivityGetEventsForUserParams = & Username & Page & PerPage ; export type ActivityGetEventsForUserPublicParams = & Username & Page & PerPage ; export type ActivityGetEventsForUserOrgParams = & Username & Org & Page & PerPage ; export type ActivityGetNotificationsParams = & Since & { all?: boolean; participating?: boolean; before?: string; }; export type ActivityGetNotificationsForUserParams = & Owner & Repo & Since & { all?: boolean; participating?: boolean; before?: string; }; export type ActivityMarkNotificationsAsReadParams = & { last_read_at?: string; }; export type ActivityMarkNotificationsAsReadForRepoParams = & Owner & Repo & { last_read_at?: string; }; export type ActivityGetNotificationThreadParams = & Id ; export type ActivityMarkNotificationThreadAsReadParams = & Id ; export type ActivityCheckNotificationThreadSubscriptionParams = & Id ; export type ActivitySetNotificationThreadSubscriptionParams = & Id & { subscribed?: boolean; ignored?: boolean; }; export type ActivityDeleteNotificationThreadSubscriptionParams = & Id ; export type ActivityGetStargazersForRepoParams = & Owner & Repo & Page & PerPage ; export type ActivityGetStarredReposForUserParams = & Username & Direction & Page & PerPage & { sort?: "created"|"updated"; }; export type ActivityGetStarredReposParams = & Direction & Page & PerPage & { sort?: "created"|"updated"; }; export type ActivityCheckStarringRepoParams = & Owner & Repo & Page & PerPage ; export type ActivityStarRepoParams = & Owner & Repo ; export type ActivityUnstarRepoParams = & Owner & Repo ; export type ActivityGetWatchersForRepoParams = & Owner & Repo & Page & PerPage ; export type ActivityGetWatchedReposForUserParams = & Username & Page & PerPage ; export type ActivityGetWatchedReposParams = & Page & PerPage ; export type ActivityGetRepoSubscriptionParams = & Owner & Repo & Page & PerPage ; export type ActivitySetRepoSubscriptionParams = & Owner & Repo & { subscribed?: boolean; ignored?: boolean; }; export type ActivityUnwatchRepoParams = & Owner & Repo ; export type GistsGetForUserParams = & Username & Since & Page & PerPage ; export type GistsGetAllParams = & Since & Page & PerPage ; export type GistsGetPublicParams = & Since ; export type GistsGetStarredParams = & Since ; export type GistsGetParams = & Id ; export type GistsGetRevisionParams = & Id & Sha ; export type GistsCreateParams = & Files & Description & { public: boolean; }; export type GistsEditParams = & Id & Description & Files & { content?: string; filename?: string; }; export type GistsGetCommitsParams = & Id ; export type GistsStarParams = & Id ; export type GistsUnstarParams = & Id ; export type GistsCheckStarParams = & Id ; export type GistsForkParams = & Id ; export type GistsGetForksParams = & Id & Page & PerPage ; export type GistsDeleteParams = & Id ; export type GistsGetCommentsParams = & GistId ; export type GistsGetCommentParams = & GistId & Id ; export type GistsCreateCommentParams = & GistId & Body ; export type GistsEditCommentParams = & GistId & Id & Body ; export type GistsDeleteCommentParams = & GistId & Id ; export type GitdataGetBlobParams = & Owner & Repo & Sha & Page & PerPage ; export type GitdataCreateBlobParams = & Owner & Repo & { content: string; encoding: string; }; export type GitdataGetCommitParams = & Owner & Repo & Sha ; export type GitdataCreateCommitParams = & Owner & Repo & { message: string; tree: string; parents: string[]; author?: string; committer?: string; }; export type GitdataGetCommitSignatureVerificationParams = & Owner & Repo & Sha ; export type GitdataGetReferenceParams = & Owner & Repo & Ref ; export type GitdataGetReferencesParams = & Owner & Repo & Page & PerPage ; export type GitdataGetTagsParams = & Owner & Repo & Page & PerPage ; export type GitdataCreateReferenceParams = & Owner & Repo & Sha & { ref: string; }; export type GitdataUpdateReferenceParams = & Owner & Repo & Ref & Sha & { force?: boolean; }; export type GitdataDeleteReferenceParams = & Owner & Repo & Ref ; export type GitdataGetTagParams = & Owner & Repo & Sha ; export type GitdataCreateTagParams = & Owner & Repo & { tag: string; message: string; object: string; type: string; tagger: string; }; export type GitdataGetTagSignatureVerificationParams = & Owner & Repo & Sha ; export type GitdataGetTreeParams = & Owner & Repo & Sha & { recursive?: boolean; }; export type GitdataCreateTreeParams = & Owner & Repo & { tree: string; base_tree?: string; }; export type IntegrationsGetInstallationsParams = & Page & PerPage ; export type IntegrationsCreateInstallationTokenParams = & InstallationId & { user_id?: string; }; export type IntegrationsGetInstallationRepositoriesParams = & { user_id?: string; }; export type IntegrationsAddRepoToInstallationParams = & InstallationId & RepositoryId ; export type IntegrationsRemoveRepoFromInstallationParams = & InstallationId & RepositoryId ; export type AppsGetForSlugParams = & { app_slug: string; }; export type AppsGetInstallationsParams = & Page & PerPage ; export type AppsGetInstallationParams = & InstallationId ; export type AppsCreateInstallationTokenParams = & InstallationId & { user_id?: string; }; export type AppsGetInstallationRepositoriesParams = & { user_id?: string; }; export type AppsAddRepoToInstallationParams = & InstallationId & RepositoryId ; export type AppsRemoveRepoFromInstallationParams = & InstallationId & RepositoryId ; export type AppsGetMarketplaceListingPlansParams = & Page & PerPage ; export type AppsGetMarketplaceListingStubbedPlansParams = & Page & PerPage ; export type AppsGetMarketplaceListingPlanAccountsParams = & Id & Page & PerPage ; export type AppsGetMarketplaceListingStubbedPlanAccountsParams = & Id & Page & PerPage ; export type AppsCheckMarketplaceListingAccountParams = & Id ; export type AppsCheckMarketplaceListingStubbedAccountParams = & Id ; export type IssuesGetAllParams = & Direction & Since & Page & PerPage & { filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed"; state?: "open"|"closed"|"all"; labels?: string; sort?: "created"|"updated"|"comments"; }; export type IssuesGetForUserParams = & Direction & Since & Page & PerPage & { filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed"; state?: "open"|"closed"|"all"; labels?: string; sort?: "created"|"updated"|"comments"; }; export type IssuesGetForOrgParams = & Org & Direction & Since & Page & PerPage & { filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed"; state?: "open"|"closed"|"all"; labels?: string; sort?: "created"|"updated"|"comments"; }; export type IssuesGetForRepoParams = & Owner & Repo & Direction & Since & Page & PerPage & { milestone?: string; state?: "open"|"closed"|"all"; assignee?: string; creator?: string; mentioned?: string; labels?: string; sort?: "created"|"updated"|"comments"; }; export type IssuesGetParams = & Owner & Repo & Number ; export type IssuesCreateParams = & Owner & Repo & Assignees & { title: string; body?: string; assignee?: string; milestone?: number; labels?: string[]; }; export type IssuesEditParams = & Owner & Repo & Number & Assignees & { title?: string; body?: string; assignee?: string; state?: "open"|"closed"; milestone?: number; labels?: string[]; }; export type IssuesLockParams = & Owner & Repo & Number ; export type IssuesUnlockParams = & Owner & Repo & Number ; export type IssuesGetAssigneesParams = & Owner & Repo ; export type IssuesCheckAssigneeParams = & Owner & Repo & { assignee: string; }; export type IssuesAddAssigneesToIssueParams = & Owner & Repo & Number & { assignees: string[]; }; export type IssuesRemoveAssigneesFromIssueParams = & Owner & Repo & Number & { body: string; }; export type IssuesGetCommentsParams = & Owner & Repo & Number & Since & Page & PerPage ; export type IssuesGetCommentsForRepoParams = & Owner & Repo & Direction & Since & Page & PerPage & { sort?: "created"|"updated"; }; export type IssuesGetCommentParams = & Owner & Repo & Id ; export type IssuesCreateCommentParams = & Owner & Repo & Number & Body ; export type IssuesEditCommentParams = & Owner & Repo & Id & Body ; export type IssuesDeleteCommentParams = & Owner & Repo & Id ; export type IssuesGetEventsParams = & Owner & Repo & IssueNumber & Page & PerPage ; export type IssuesGetEventsForRepoParams = & Owner & Repo & Page & PerPage ; export type IssuesGetEventParams = & Owner & Repo & Id ; export type IssuesGetLabelsParams = & Owner & Repo & Page & PerPage ; export type IssuesGetLabelParams = & Owner & Repo & Name ; export type IssuesCreateLabelParams = & Owner & Repo & Name & Color ; export type IssuesUpdateLabelParams = & Owner & Repo & Color & { oldname: string; name: string; }; export type IssuesDeleteLabelParams = & Owner & Repo & Name ; export type IssuesGetIssueLabelsParams = & Owner & Repo & Number ; export type IssuesAddLabelsParams = & Owner & Repo & Number & { labels: string[]; }; export type IssuesRemoveLabelParams = & Owner & Repo & Number & { name: string; }; export type IssuesReplaceAllLabelsParams = & Owner & Repo & Number & { labels: string[]; }; export type IssuesRemoveAllLabelsParams = & Owner & Repo & Number ; export type IssuesGetMilestoneLabelsParams = & Owner & Repo & Number ; export type IssuesGetMilestonesParams = & Owner & Repo & State & Page & PerPage & { sort?: "due_on"|"completeness"; direction?: "asc"|"desc"; }; export type IssuesGetMilestoneParams = & Owner & Repo & Number ; export type IssuesCreateMilestoneParams = & Owner & Repo & State & Description & { title: string; due_on?: Date; }; export type IssuesUpdateMilestoneParams = & Owner & Repo & Number & State & Description & { title: string; due_on?: Date; }; export type IssuesDeleteMilestoneParams = & Owner & Repo & Number ; export type IssuesGetEventsTimelineParams = & Owner & Repo & IssueNumber & Page & PerPage ; export type MigrationsStartMigrationParams = & Org & { repositories: string[]; lock_repositories?: boolean; exclude_attachments?: boolean; }; export type MigrationsGetMigrationsParams = & Org & Page & PerPage ; export type MigrationsGetMigrationStatusParams = & Org & Id ; export type MigrationsGetMigrationArchiveLinkParams = & Org & Id ; export type MigrationsDeleteMigrationArchiveParams = & Org & Id ; export type MigrationsUnlockRepoLockedForMigrationParams = & Org & Id & { repo_name: string; }; export type MigrationsStartImportParams = & Owner & Repo & { vcs_url: string; vcs?: "subversion"|"git"|"mercurial"|"tfvc"; vcs_username?: string; vcs_password?: string; tfvc_project?: string; }; export type MigrationsGetImportProgressParams = & Owner & Repo ; export type MigrationsUpdateImportParams = & Owner & Repo ; export type MigrationsGetImportCommitAuthorsParams = & Owner & Repo & { since?: string; }; export type MigrationsMapImportCommitAuthorParams = & Owner & Repo & { author_id: string; email?: string; name?: string; }; export type MigrationsSetImportLfsPreferenceParams = & Owner & Name & { use_lfs: string; }; export type MigrationsGetLargeImportFilesParams = & Owner & Name ; export type MigrationsCancelImportParams = & Owner & Repo ; export type MiscGetCodeOfConductParams = & { key: string; }; export type MiscGetRepoCodeOfConductParams = & Owner & Repo ; export type MiscGetGitignoreTemplateParams = & { name: string; }; export type MiscGetLicenseParams = & { license: string; }; export type MiscGetRepoLicenseParams = & Owner & Repo ; export type MiscRenderMarkdownParams = & { text: string; mode?: "markdown"|"gfm"; context?: string; }; export type MiscRenderMarkdownRawParams = & Data ; export type OrgsGetAllParams = & Page & PerPage & { since?: string; }; export type OrgsGetForUserParams = & Username & Page & PerPage ; export type OrgsGetParams = & Org & Page & PerPage ; export type OrgsUpdateParams = & Org & { billing_email?: string; company?: string; email?: string; location?: string; name?: string; description?: string; default_repository_permission?: "read"|"write"|"admin"|"none"; members_can_create_repositories?: boolean; }; export type OrgsGetMembersParams = & Org & Page & PerPage & { filter?: "all"|"2fa_disabled"; role?: "all"|"admin"|"member"; }; export type OrgsCheckMembershipParams = & Org & Username ; export type OrgsRemoveMemberParams = & Org & Username ; export type OrgsGetPublicMembersParams = & Org ; export type OrgsCheckPublicMembershipParams = & Org & Username ; export type OrgsPublicizeMembershipParams = & Org & Username ; export type OrgsConcealMembershipParams = & Org & Username ; export type OrgsGetOrgMembershipParams = & Org & Username ; export type OrgsAddOrgMembershipParams = & Org & Username & { role: "admin"|"member"; }; export type OrgsRemoveOrgMembershipParams = & Org & Username ; export type OrgsGetPendingOrgInvitesParams = & Org ; export type OrgsGetOutsideCollaboratorsParams = & Org & Page & PerPage & { filter?: "all"|"2fa_disabled"; }; export type OrgsRemoveOutsideCollaboratorParams = & Org & Username ; export type OrgsConvertMemberToOutsideCollaboratorParams = & Org & Username ; export type OrgsGetTeamsParams = & Org & Page & PerPage ; export type OrgsGetTeamParams = & Id ; export type OrgsCreateTeamParams = & Org & Name & Privacy & { description?: string; maintainers?: string[]; repo_names?: string[]; parent_team_id?: string; }; export type OrgsEditTeamParams = & Id & Name & Privacy & { description?: string; parent_team_id?: string; }; export type OrgsDeleteTeamParams = & Id ; export type OrgsGetTeamMembersParams = & Id & Page & PerPage & { role?: "member"|"maintainer"|"all"; }; export type OrgsGetChildTeamsParams = & Id & Page & PerPage ; export type OrgsGetTeamMembershipParams = & Id & Username ; export type OrgsAddTeamMembershipParams = & Id & Username & { role?: "member"|"maintainer"; }; export type OrgsRemoveTeamMembershipParams = & Id & Username ; export type OrgsGetTeamReposParams = & Id & Page & PerPage ; export type OrgsGetPendingTeamInvitesParams = & Id & Page & PerPage ; export type OrgsCheckTeamRepoParams = & Id & Owner & Repo ; export type OrgsAddTeamRepoParams = & Id & Org & Repo & { permission?: "pull"|"push"|"admin"; }; export type OrgsDeleteTeamRepoParams = & Id & Owner & Repo ; export type OrgsGetHooksParams = & Org & Page & PerPage ; export type OrgsGetHookParams = & Org & Id ; export type OrgsCreateHookParams = & Org & { name: string; config: string; events?: string[]; active?: boolean; }; export type OrgsEditHookParams = & Org & Id & { config: string; events?: string[]; active?: boolean; }; export type OrgsPingHookParams = & Org & Id ; export type OrgsDeleteHookParams = & Org & Id ; export type OrgsGetBlockedUsersParams = & Org & Page & PerPage ; export type OrgsCheckBlockedUserParams = & Org & Username ; export type OrgsBlockUserParams = & Org & Username ; export type OrgsUnblockUserParams = & Org & Username ; export type ProjectsGetRepoProjectsParams = & Owner & Repo & State ; export type ProjectsGetOrgProjectsParams = & Org & State ; export type ProjectsGetProjectParams = & Id ; export type ProjectsCreateRepoProjectParams = & Owner & Repo & Name & { body?: string; }; export type ProjectsCreateOrgProjectParams = & Org & Name & { body?: string; }; export type ProjectsUpdateProjectParams = & Id & Name & State & { body?: string; }; export type ProjectsDeleteProjectParams = & Id ; export type ProjectsGetProjectCardsParams = & ColumnId ; export type ProjectsGetProjectCardParams = & Id ; export type ProjectsCreateProjectCardParams = & ColumnId & { note?: string; content_id?: string; content_type?: string; }; export type ProjectsUpdateProjectCardParams = & Id & { note?: string; }; export type ProjectsDeleteProjectCardParams = & Id ; export type ProjectsMoveProjectCardParams = & Id & { position: string; column_id?: string; }; export type ProjectsGetProjectColumnsParams = & ProjectId ; export type ProjectsGetProjectColumnParams = & Id ; export type ProjectsCreateProjectColumnParams = & ProjectId & Name ; export type ProjectsUpdateProjectColumnParams = & Id & Name ; export type ProjectsDeleteProjectColumnParams = & Id ; export type ProjectsMoveProjectColumnParams = & Id & { position: string; }; export type PullRequestsGetAllParams = & Owner & Repo & State & Direction & Page & PerPage & { head?: string; base?: string; sort?: "created"|"updated"|"popularity"|"long-running"; }; export type PullRequestsGetParams = & Owner & Repo & Number ; export type PullRequestsCreateParams = & Owner & Repo & Head & Base & { title: string; body?: string; maintainer_can_modify?: boolean; }; export type PullRequestsCreateFromIssueParams = & Owner & Repo & Head & Base & { issue: number; }; export type PullRequestsUpdateParams = & Owner & Repo & Number & { title?: string; body?: string; state?: "open"|"closed"; base?: string; maintainer_can_modify?: boolean; }; export type PullRequestsGetCommitsParams = & Owner & Repo & Number & Page & PerPage ; export type PullRequestsGetFilesParams = & Owner & Repo & Number & Page & PerPage ; export type PullRequestsCheckMergedParams = & Owner & Repo & Number & Page & PerPage ; export type PullRequestsMergeParams = & Owner & Repo & Number & { commit_title?: string; commit_message?: string; sha?: string; merge_method?: "merge"|"squash"|"rebase"; }; export type PullRequestsGetReviewsParams = & Owner & Repo & Number & Page & PerPage ; export type PullRequestsGetReviewParams = & Owner & Repo & Number & Id ; export type PullRequestsDeletePendingReviewParams = & Owner & Repo & Number & Id ; export type PullRequestsGetReviewCommentsParams = & Owner & Repo & Number & Id & Page & PerPage ; export type PullRequestsCreateReviewParams = & Owner & Repo & Number & { commit_id?: string; body?: string; event?: "APPROVE"|"REQUEST_CHANGES"|"COMMENT"|"PENDING"; comments?: string[]; }; export type PullRequestsSubmitReviewParams = & Owner & Repo & Number & Id & { body?: string; event?: "APPROVE"|"REQUEST_CHANGES"|"COMMENT"|"PENDING"; }; export type PullRequestsDismissReviewParams = & Owner & Repo & Number & Id & Page & PerPage & { message?: string; }; export type PullRequestsGetCommentsParams = & Owner & Repo & Number & Page & PerPage ; export type PullRequestsGetCommentsForRepoParams = & Owner & Repo & Direction & Since & Page & PerPage & { sort?: "created"|"updated"; }; export type PullRequestsGetCommentParams = & Owner & Repo & Id ; export type PullRequestsCreateCommentParams = & Owner & Repo & Number & Body & CommitId & Path & Position ; export type PullRequestsCreateCommentReplyParams = & Owner & Repo & Number & Body & { in_reply_to: number; }; export type PullRequestsEditCommentParams = & Owner & Repo & Id & Body ; export type PullRequestsDeleteCommentParams = & Owner & Repo & Id ; export type PullRequestsGetReviewRequestsParams = & Owner & Repo & Number & Page & PerPage ; export type PullRequestsCreateReviewRequestParams = & Owner & Repo & Number & { reviewers?: string[]; team_reviewers?: string[]; }; export type PullRequestsDeleteReviewRequestParams = & Owner & Repo & Number & { reviewers?: string[]; team_reviewers?: string[]; }; export type ReactionsGetForCommitCommentParams = & Owner & Repo & Id & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsCreateForCommitCommentParams = & Owner & Repo & Id & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsGetForIssueParams = & Owner & Repo & Number & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsCreateForIssueParams = & Owner & Repo & Number & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsGetForIssueCommentParams = & Owner & Repo & Id & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsCreateForIssueCommentParams = & Owner & Repo & Id & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsGetForPullRequestReviewCommentParams = & Owner & Repo & Id & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsCreateForPullRequestReviewCommentParams = & Owner & Repo & Id & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; export type ReactionsDeleteParams = & Id ; export type ReposGetAllParams = & Direction & Page & PerPage & { visibility?: "all"|"public"|"private"; affiliation?: string; type?: "all"|"owner"|"public"|"private"|"member"; sort?: "created"|"updated"|"pushed"|"full_name"; }; export type ReposGetForUserParams = & Username & Direction & Page & PerPage & { type?: "all"|"owner"|"member"; sort?: "created"|"updated"|"pushed"|"full_name"; }; export type ReposGetForOrgParams = & Org & Page & PerPage & { type?: "all"|"public"|"private"|"forks"|"sources"|"member"; }; export type ReposGetPublicParams = & Page & PerPage & { since?: string; }; export type ReposCreateParams = & Name & Description & Homepage & Private & HasIssues & HasProjects & HasWiki & AutoInit & GitignoreTemplate & LicenseTemplate & { team_id?: number; allow_squash_merge?: boolean; allow_merge_commit?: boolean; allow_rebase_merge?: boolean; }; export type ReposCreateForOrgParams = & Org & Name & Description & Homepage & Private & HasIssues & HasProjects & HasWiki & AutoInit & GitignoreTemplate & LicenseTemplate & { team_id?: number; allow_squash_merge?: boolean; allow_merge_commit?: boolean; allow_rebase_merge?: boolean; }; export type ReposGetParams = & Owner & Repo ; export type ReposGetByIdParams = & Id ; export type ReposEditParams = & Owner & Repo & Name & Description & Homepage & Private & HasIssues & HasProjects & HasWiki & DefaultBranch & { allow_squash_merge?: boolean; allow_merge_commit?: boolean; allow_rebase_merge?: boolean; }; export type ReposGetTopicsParams = & Owner & Repo & Page & PerPage ; export type ReposReplaceTopicsParams = & Owner & Repo & { names: string[]; }; export type ReposGetContributorsParams = & Owner & Repo & Page & PerPage & { anon?: boolean; }; export type ReposGetLanguagesParams = & Owner & Repo & Page & PerPage ; export type ReposGetTeamsParams = & Owner & Repo & Page & PerPage ; export type ReposGetTagsParams = & Owner & Repo & Page & PerPage ; export type ReposDeleteParams = & Owner & Repo ; export type ReposGetBranchesParams = & Owner & Repo & Page & PerPage & { protected?: boolean; }; export type ReposGetBranchParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposGetBranchProtectionParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposUpdateBranchProtectionParams = & Owner & Repo & Branch & Page & PerPage & { required_status_checks: string; required_pull_request_reviews: string; dismissal_restrictions?: string; restrictions: string; enforce_admins: boolean; }; export type ReposRemoveBranchProtectionParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposGetProtectedBranchRequiredStatusChecksParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposUpdateProtectedBranchRequiredStatusChecksParams = & Owner & Repo & Branch & { strict?: boolean; contexts?: string[]; }; export type ReposRemoveProtectedBranchRequiredStatusChecksParams = & Owner & Repo & Branch ; export type ReposGetProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposReplaceProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & { contexts: string[]; }; export type ReposAddProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & { contexts: string[]; }; export type ReposRemoveProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & { contexts: string[]; }; export type ReposGetProtectedBranchPullRequestReviewEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposUpdateProtectedBranchPullRequestReviewEnforcementParams = & Owner & Repo & Branch & { dismissal_restrictions?: string; dismiss_stale_reviews?: boolean; require_code_owner_reviews?: boolean; }; export type ReposRemoveProtectedBranchPullRequestReviewEnforcementParams = & Owner & Repo & Branch ; export type ReposGetProtectedBranchAdminEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposAddProtectedBranchAdminEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposRemoveProtectedBranchAdminEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposGetProtectedBranchRestrictionsParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposRemoveProtectedBranchRestrictionsParams = & Owner & Repo & Branch ; export type ReposGetProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposReplaceProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & { teams: string[]; }; export type ReposAddProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & { teams: string[]; }; export type ReposRemoveProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & { teams: string[]; }; export type ReposGetProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & Page & PerPage ; export type ReposReplaceProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & { users: string[]; }; export type ReposAddProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & { users: string[]; }; export type ReposRemoveProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & { users: string[]; }; export type ReposGetCollaboratorsParams = & Owner & Repo & Page & PerPage & { affiliation?: "outside"|"all"|"direct"; }; export type ReposCheckCollaboratorParams = & Owner & Repo & Username ; export type ReposReviewUserPermissionLevelParams = & Owner & Repo & Username ; export type ReposAddCollaboratorParams = & Owner & Repo & Username & { permission?: "pull"|"push"|"admin"; }; export type ReposRemoveCollaboratorParams = & Owner & Repo & Username ; export type ReposGetAllCommitCommentsParams = & Owner & Repo & Page & PerPage ; export type ReposGetCommitCommentsParams = & Owner & Repo & Page & PerPage & { ref: string; }; export type ReposCreateCommitCommentParams = & Owner & Repo & Sha & Body & { path?: string; position?: number; }; export type ReposGetCommitCommentParams = & Owner & Repo & Id ; export type ReposUpdateCommitCommentParams = & Owner & Repo & Id & Body ; export type ReposDeleteCommitCommentParams = & Owner & Repo & Id ; export type ReposGetCommunityProfileMetricsParams = & Owner & Name ; export type ReposGetCommitsParams = & Owner & Repo & Since & Until & Page & PerPage & { sha?: string; path?: string; author?: string; }; export type ReposGetCommitParams = & Owner & Repo & Sha ; export type ReposGetShaOfCommitRefParams = & Owner & Repo & Ref ; export type ReposCompareCommitsParams = & Owner & Repo & Base & Head ; export type ReposGetReadmeParams = & Owner & Repo & { ref?: string; }; export type ReposGetContentParams = & Owner & Repo & { path: string; ref?: string; }; export type ReposCreateFileParams = & Owner & Repo & { path: string; message: string; content: string; branch?: string; committer?: string; author?: string; }; export type ReposUpdateFileParams = & Owner & Repo & { path: string; message: string; content: string; sha: string; branch?: string; committer?: string; author?: string; }; export type ReposDeleteFileParams = & Owner & Repo & { path: string; message: string; sha: string; branch?: string; committer?: string; author?: string; }; export type ReposGetArchiveLinkParams = & Owner & Repo & { archive_format: "tarball"|"zipball"; ref?: string; }; export type ReposGetDeployKeysParams = & Owner & Repo & Page & PerPage ; export type ReposGetDeployKeyParams = & Owner & Repo & Id ; export type ReposAddDeployKeyParams = & Owner & Repo & Title & Key & { read_only?: boolean; }; export type ReposDeleteDeployKeyParams = & Owner & Repo & Id ; export type ReposGetDeploymentsParams = & Owner & Repo & Page & PerPage & { sha?: string; ref?: string; task?: string; environment?: string; }; export type ReposGetDeploymentParams = & Owner & Repo & { deployment_id: string; }; export type ReposCreateDeploymentParams = & Owner & Repo & { ref: string; task?: string; auto_merge?: boolean; required_contexts?: string[]; payload?: string; environment?: string; description?: string; transient_environment?: boolean; production_environment?: boolean; }; export type ReposGetDeploymentStatusesParams = & Owner & Repo & Id ; export type ReposGetDeploymentStatusParams = & Owner & Repo & { id: string; status_id: string; }; export type ReposCreateDeploymentStatusParams = & Owner & Repo & Id & { state?: string; target_url?: string; log_url?: string; description?: string; environment_url?: string; auto_inactive?: boolean; }; export type ReposGetDownloadsParams = & Owner & Repo & Page & PerPage ; export type ReposGetDownloadParams = & Owner & Repo & Id ; export type ReposDeleteDownloadParams = & Owner & Repo & Id ; export type ReposGetForksParams = & Owner & Repo & Page & PerPage & { sort?: "newest"|"oldest"|"stargazers"; }; export type ReposForkParams = & Owner & Repo & { organization?: string; }; export type ReposGetInvitesParams = & Owner & Repo ; export type ReposDeleteInviteParams = & Owner & Repo & InvitationId ; export type ReposUpdateInviteParams = & Owner & Repo & InvitationId & { permissions?: "read"|"write"|"admin"; }; export type ReposMergeParams = & Owner & Repo & Base & Head & { commit_message?: string; }; export type ReposGetPagesParams = & Owner & Repo & Page & PerPage ; export type ReposRequestPageBuildParams = & Owner & Repo ; export type ReposGetPagesBuildsParams = & Owner & Repo & Page & PerPage ; export type ReposGetLatestPagesBuildParams = & Owner & Repo ; export type ReposGetPagesBuildParams = & Owner & Repo & Id ; export type ReposGetReleasesParams = & Owner & Repo & Page & PerPage ; export type ReposGetReleaseParams = & Owner & Repo & Id ; export type ReposGetLatestReleaseParams = & Owner & Repo ; export type ReposGetReleaseByTagParams = & Owner & Repo & { tag: string; }; export type ReposCreateReleaseParams = & Owner & Repo & { tag_name: string; target_commitish?: string; name?: string; body?: string; draft?: boolean; prerelease?: boolean; }; export type ReposEditReleaseParams = & Owner & Repo & Id & { tag_name: string; target_commitish?: string; name?: string; body?: string; draft?: boolean; prerelease?: boolean; }; export type ReposDeleteReleaseParams = & Owner & Repo & Id ; export type ReposGetAssetsParams = & Owner & Repo & Id ; export type ReposUploadAssetParams = & Url & ContentType & ContentLength & { file: Object; name: string; label?: string; }; export type ReposGetAssetParams = & Owner & Repo & Id ; export type ReposEditAssetParams = & Owner & Repo & Id & Name & { label?: string; }; export type ReposDeleteAssetParams = & Owner & Repo & Id ; export type ReposGetStatsContributorsParams = & Owner & Repo ; export type ReposGetStatsCommitActivityParams = & Owner & Repo ; export type ReposGetStatsCodeFrequencyParams = & Owner & Repo ; export type ReposGetStatsParticipationParams = & Owner & Repo ; export type ReposGetStatsPunchCardParams = & Owner & Repo ; export type ReposCreateStatusParams = & Owner & Repo & Sha & { state: "pending"|"success"|"error"|"failure"; target_url?: string; description?: string; context?: string; }; export type ReposGetStatusesParams = & Owner & Repo & Page & PerPage & { ref: string; }; export type ReposGetCombinedStatusForRefParams = & Owner & Repo & Page & PerPage & { ref: string; }; export type ReposGetReferrersParams = & Owner & Repo & Page & PerPage ; export type ReposGetPathsParams = & Owner & Repo & Page & PerPage ; export type ReposGetViewsParams = & Owner & Repo & Page & PerPage ; export type ReposGetClonesParams = & Owner & Repo & Page & PerPage ; export type ReposGetHooksParams = & Owner & Repo & Page & PerPage ; export type ReposGetHookParams = & Owner & Repo & Id ; export type ReposCreateHookParams = & Owner & Repo & Name & { config: string; events?: string[]; active?: boolean; }; export type ReposEditHookParams = & Owner & Repo & Id & Name & { config: string; events?: string[]; add_events?: string[]; remove_events?: string[]; active?: boolean; }; export type ReposTestHookParams = & Owner & Repo & Id ; export type ReposPingHookParams = & Owner & Repo & Id ; export type ReposDeleteHookParams = & Owner & Repo & Id ; export type SearchReposParams = & Q & Order & Page & PerPage & { sort?: "stars"|"forks"|"updated"; }; export type SearchCodeParams = & Q & Order & Page & PerPage & { sort?: "indexed"; }; export type SearchCommitsParams = & Q & Order & Page & PerPage & { sort?: "author-date"|"committer-date"; }; export type SearchIssuesParams = & Q & Order & Page & PerPage & { sort?: "comments"|"created"|"updated"; }; export type SearchUsersParams = & Q & Order & Page & PerPage & { sort?: "followers"|"repositories"|"joined"; }; export type SearchEmailParams = & { email: string; }; export type UsersGetForUserParams = & Username ; export type UsersGetByIdParams = & Id ; export type UsersUpdateParams = & { name?: string; email?: string; blog?: string; company?: string; location?: string; hireable?: boolean; bio?: string; }; export type UsersGetAllParams = & { since?: number; }; export type UsersGetOrgsParams = & Page & PerPage ; export type UsersGetOrgMembershipsParams = & { state?: "active"|"pending"; }; export type UsersGetOrgMembershipParams = & Org ; export type UsersEditOrgMembershipParams = & Org & { state: "active"; }; export type UsersGetTeamsParams = & Page & PerPage ; export type UsersGetEmailsParams = & Page & PerPage ; export type UsersGetPublicEmailsParams = & Page & PerPage ; export type UsersAddEmailsParams = & { emails: string[]; }; export type UsersDeleteEmailsParams = & { emails: string[]; }; export type UsersGetFollowersForUserParams = & Username & Page & PerPage ; export type UsersGetFollowersParams = & Page & PerPage ; export type UsersGetFollowingForUserParams = & Username & Page & PerPage ; export type UsersGetFollowingParams = & Page & PerPage ; export type UsersCheckFollowingParams = & Username ; export type UsersCheckIfOneFollowersOtherParams = & Username & { target_user: string; }; export type UsersFollowUserParams = & Username ; export type UsersUnfollowUserParams = & Username ; export type UsersGetKeysForUserParams = & Username & Page & PerPage ; export type UsersGetKeysParams = & Page & PerPage ; export type UsersGetKeyParams = & Id ; export type UsersCreateKeyParams = & Title & Key ; export type UsersDeleteKeyParams = & Id ; export type UsersGetGpgKeysForUserParams = & Username & Page & PerPage ; export type UsersGetGpgKeysParams = & Page & PerPage ; export type UsersGetGpgKeyParams = & Id ; export type UsersCreateGpgKeyParams = & { armored_public_key: string; }; export type UsersDeleteGpgKeyParams = & Id ; export type UsersPromoteParams = & Username ; export type UsersDemoteParams = & Username ; export type UsersSuspendParams = & Username ; export type UsersUnsuspendParams = & Username ; export type UsersCheckBlockedUserParams = & Username ; export type UsersBlockUserParams = & Username ; export type UsersUnblockUserParams = & Username ; export type UsersAcceptRepoInviteParams = & InvitationId ; export type UsersDeclineRepoInviteParams = & InvitationId ; export type UsersGetInstallationsParams = & Page & PerPage ; export type UsersGetInstallationReposParams = & InstallationId & Page & PerPage ; export type UsersAddRepoToInstallationParams = & InstallationId & RepositoryId ; export type UsersRemoveRepoFromInstallationParams = & InstallationId & RepositoryId ; export type UsersGetMarketplacePurchasesParams = & Page & PerPage ; export type UsersGetMarketplaceStubbedPurchasesParams = & Page & PerPage ; export type EnterpriseStatsParams = & { type: "issues"|"hooks"|"milestones"|"orgs"|"comments"|"pages"|"users"|"gists"|"pulls"|"repos"|"all"; }; export type EnterpriseUpdateLdapForUserParams = & Username & { ldap_dn: string; }; export type EnterpriseSyncLdapForUserParams = & Username ; export type EnterpriseUpdateLdapForTeamParams = & { team_id: number; ldap_dn: string; }; export type EnterpriseSyncLdapForTeamParams = & { team_id: number; }; export type EnterpriseGetPreReceiveEnvironmentParams = & Id ; export type EnterpriseCreatePreReceiveEnvironmentParams = & { name: string; image_url: string; }; export type EnterpriseEditPreReceiveEnvironmentParams = & Id & { name: string; image_url: string; }; export type EnterpriseDeletePreReceiveEnvironmentParams = & Id ; export type EnterpriseGetPreReceiveEnvironmentDownloadStatusParams = & Id ; export type EnterpriseTriggerPreReceiveEnvironmentDownloadParams = & Id ; export type EnterpriseGetPreReceiveHookParams = & Id ; export type EnterpriseCreatePreReceiveHookParams = & { name: string; script: string; script_repository: string; environment: string; enforcement?: string; allow_downstream_configuration?: boolean; }; export type EnterpriseEditPreReceiveHookParams = & Id & { hook: string; }; export type EnterpriseDeletePreReceiveHookParams = & Id ; export type EnterpriseQueueIndexingJobParams = & { target: string; }; export type EnterpriseCreateOrgParams = & { login: string; admin: string; profile_name?: string; }; } declare class Github { constructor(options?: Github.Options); authenticate(auth: Github.Auth): void; hasNextPage(link: Github.Link): string | undefined; hasPreviousPage(link: Github.Link): string | undefined; hasLastPage(link: Github.Link): string | undefined; hasFirstPage(link: Github.Link): string | undefined; getNextPage(link: Github.Link, callback?: Github.Callback): Promise; getNextPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise; getPreviousPage(link: Github.Link, callback?: Github.Callback): Promise; getPreviousPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise; getLastPage(link: Github.Link, callback?: Github.Callback): Promise; getLastPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise; getFirstPage(link: Github.Link, callback?: Github.Callback): Promise; getFirstPage(link: Github.Link, headers?: {[header: string]: any}, callback?: Github.Callback): Promise; authorization: { getGrants(params: Github.AuthorizationGetGrantsParams, callback?: Github.Callback): Promise; getGrant(params: Github.AuthorizationGetGrantParams, callback?: Github.Callback): Promise; deleteGrant(params: Github.AuthorizationDeleteGrantParams, callback?: Github.Callback): Promise; getAll(params: Github.AuthorizationGetAllParams, callback?: Github.Callback): Promise; get(params: Github.AuthorizationGetParams, callback?: Github.Callback): Promise; create(params: Github.AuthorizationCreateParams, callback?: Github.Callback): Promise; getOrCreateAuthorizationForApp(params: Github.AuthorizationGetOrCreateAuthorizationForAppParams, callback?: Github.Callback): Promise; getOrCreateAuthorizationForAppAndFingerprint(params: Github.AuthorizationGetOrCreateAuthorizationForAppAndFingerprintParams, callback?: Github.Callback): Promise; update(params: Github.AuthorizationUpdateParams, callback?: Github.Callback): Promise; delete(params: Github.AuthorizationDeleteParams, callback?: Github.Callback): Promise; check(params: Github.AuthorizationCheckParams, callback?: Github.Callback): Promise; reset(params: Github.AuthorizationResetParams, callback?: Github.Callback): Promise; revoke(params: Github.AuthorizationRevokeParams, callback?: Github.Callback): Promise; revokeGrant(params: Github.AuthorizationRevokeGrantParams, callback?: Github.Callback): Promise; }; activity: { getEvents(params: Github.ActivityGetEventsParams, callback?: Github.Callback): Promise; getEventsForRepo(params: Github.ActivityGetEventsForRepoParams, callback?: Github.Callback): Promise; getEventsForRepoIssues(params: Github.ActivityGetEventsForRepoIssuesParams, callback?: Github.Callback): Promise; getEventsForRepoNetwork(params: Github.ActivityGetEventsForRepoNetworkParams, callback?: Github.Callback): Promise; getEventsForOrg(params: Github.ActivityGetEventsForOrgParams, callback?: Github.Callback): Promise; getEventsReceived(params: Github.ActivityGetEventsReceivedParams, callback?: Github.Callback): Promise; getEventsReceivedPublic(params: Github.ActivityGetEventsReceivedPublicParams, callback?: Github.Callback): Promise; getEventsForUser(params: Github.ActivityGetEventsForUserParams, callback?: Github.Callback): Promise; getEventsForUserPublic(params: Github.ActivityGetEventsForUserPublicParams, callback?: Github.Callback): Promise; getEventsForUserOrg(params: Github.ActivityGetEventsForUserOrgParams, callback?: Github.Callback): Promise; getFeeds(params: Github.EmptyParams, callback?: Github.Callback): Promise; getNotifications(params: Github.ActivityGetNotificationsParams, callback?: Github.Callback): Promise; getNotificationsForUser(params: Github.ActivityGetNotificationsForUserParams, callback?: Github.Callback): Promise; markNotificationsAsRead(params: Github.ActivityMarkNotificationsAsReadParams, callback?: Github.Callback): Promise; markNotificationsAsReadForRepo(params: Github.ActivityMarkNotificationsAsReadForRepoParams, callback?: Github.Callback): Promise; getNotificationThread(params: Github.ActivityGetNotificationThreadParams, callback?: Github.Callback): Promise; markNotificationThreadAsRead(params: Github.ActivityMarkNotificationThreadAsReadParams, callback?: Github.Callback): Promise; checkNotificationThreadSubscription(params: Github.ActivityCheckNotificationThreadSubscriptionParams, callback?: Github.Callback): Promise; setNotificationThreadSubscription(params: Github.ActivitySetNotificationThreadSubscriptionParams, callback?: Github.Callback): Promise; deleteNotificationThreadSubscription(params: Github.ActivityDeleteNotificationThreadSubscriptionParams, callback?: Github.Callback): Promise; getStargazersForRepo(params: Github.ActivityGetStargazersForRepoParams, callback?: Github.Callback): Promise; getStarredReposForUser(params: Github.ActivityGetStarredReposForUserParams, callback?: Github.Callback): Promise; getStarredRepos(params: Github.ActivityGetStarredReposParams, callback?: Github.Callback): Promise; checkStarringRepo(params: Github.ActivityCheckStarringRepoParams, callback?: Github.Callback): Promise; starRepo(params: Github.ActivityStarRepoParams, callback?: Github.Callback): Promise; unstarRepo(params: Github.ActivityUnstarRepoParams, callback?: Github.Callback): Promise; getWatchersForRepo(params: Github.ActivityGetWatchersForRepoParams, callback?: Github.Callback): Promise; getWatchedReposForUser(params: Github.ActivityGetWatchedReposForUserParams, callback?: Github.Callback): Promise; getWatchedRepos(params: Github.ActivityGetWatchedReposParams, callback?: Github.Callback): Promise; getRepoSubscription(params: Github.ActivityGetRepoSubscriptionParams, callback?: Github.Callback): Promise; setRepoSubscription(params: Github.ActivitySetRepoSubscriptionParams, callback?: Github.Callback): Promise; unwatchRepo(params: Github.ActivityUnwatchRepoParams, callback?: Github.Callback): Promise; }; gists: { getForUser(params: Github.GistsGetForUserParams, callback?: Github.Callback): Promise; getAll(params: Github.GistsGetAllParams, callback?: Github.Callback): Promise; getPublic(params: Github.GistsGetPublicParams, callback?: Github.Callback): Promise; getStarred(params: Github.GistsGetStarredParams, callback?: Github.Callback): Promise; get(params: Github.GistsGetParams, callback?: Github.Callback): Promise; getRevision(params: Github.GistsGetRevisionParams, callback?: Github.Callback): Promise; create(params: Github.GistsCreateParams, callback?: Github.Callback): Promise; edit(params: Github.GistsEditParams, callback?: Github.Callback): Promise; getCommits(params: Github.GistsGetCommitsParams, callback?: Github.Callback): Promise; star(params: Github.GistsStarParams, callback?: Github.Callback): Promise; unstar(params: Github.GistsUnstarParams, callback?: Github.Callback): Promise; checkStar(params: Github.GistsCheckStarParams, callback?: Github.Callback): Promise; fork(params: Github.GistsForkParams, callback?: Github.Callback): Promise; getForks(params: Github.GistsGetForksParams, callback?: Github.Callback): Promise; delete(params: Github.GistsDeleteParams, callback?: Github.Callback): Promise; getComments(params: Github.GistsGetCommentsParams, callback?: Github.Callback): Promise; getComment(params: Github.GistsGetCommentParams, callback?: Github.Callback): Promise; createComment(params: Github.GistsCreateCommentParams, callback?: Github.Callback): Promise; editComment(params: Github.GistsEditCommentParams, callback?: Github.Callback): Promise; deleteComment(params: Github.GistsDeleteCommentParams, callback?: Github.Callback): Promise; }; gitdata: { getBlob(params: Github.GitdataGetBlobParams, callback?: Github.Callback): Promise; createBlob(params: Github.GitdataCreateBlobParams, callback?: Github.Callback): Promise; getCommit(params: Github.GitdataGetCommitParams, callback?: Github.Callback): Promise; createCommit(params: Github.GitdataCreateCommitParams, callback?: Github.Callback): Promise; getCommitSignatureVerification(params: Github.GitdataGetCommitSignatureVerificationParams, callback?: Github.Callback): Promise; getReference(params: Github.GitdataGetReferenceParams, callback?: Github.Callback): Promise; getReferences(params: Github.GitdataGetReferencesParams, callback?: Github.Callback): Promise; getTags(params: Github.GitdataGetTagsParams, callback?: Github.Callback): Promise; createReference(params: Github.GitdataCreateReferenceParams, callback?: Github.Callback): Promise; updateReference(params: Github.GitdataUpdateReferenceParams, callback?: Github.Callback): Promise; deleteReference(params: Github.GitdataDeleteReferenceParams, callback?: Github.Callback): Promise; getTag(params: Github.GitdataGetTagParams, callback?: Github.Callback): Promise; createTag(params: Github.GitdataCreateTagParams, callback?: Github.Callback): Promise; getTagSignatureVerification(params: Github.GitdataGetTagSignatureVerificationParams, callback?: Github.Callback): Promise; getTree(params: Github.GitdataGetTreeParams, callback?: Github.Callback): Promise; createTree(params: Github.GitdataCreateTreeParams, callback?: Github.Callback): Promise; }; integrations: { getInstallations(params: Github.IntegrationsGetInstallationsParams, callback?: Github.Callback): Promise; createInstallationToken(params: Github.IntegrationsCreateInstallationTokenParams, callback?: Github.Callback): Promise; getInstallationRepositories(params: Github.IntegrationsGetInstallationRepositoriesParams, callback?: Github.Callback): Promise; addRepoToInstallation(params: Github.IntegrationsAddRepoToInstallationParams, callback?: Github.Callback): Promise; removeRepoFromInstallation(params: Github.IntegrationsRemoveRepoFromInstallationParams, callback?: Github.Callback): Promise; }; apps: { getForSlug(params: Github.AppsGetForSlugParams, callback?: Github.Callback): Promise; get(params: Github.EmptyParams, callback?: Github.Callback): Promise; getInstallations(params: Github.AppsGetInstallationsParams, callback?: Github.Callback): Promise; getInstallation(params: Github.AppsGetInstallationParams, callback?: Github.Callback): Promise; createInstallationToken(params: Github.AppsCreateInstallationTokenParams, callback?: Github.Callback): Promise; getInstallationRepositories(params: Github.AppsGetInstallationRepositoriesParams, callback?: Github.Callback): Promise; addRepoToInstallation(params: Github.AppsAddRepoToInstallationParams, callback?: Github.Callback): Promise; removeRepoFromInstallation(params: Github.AppsRemoveRepoFromInstallationParams, callback?: Github.Callback): Promise; getMarketplaceListingPlans(params: Github.AppsGetMarketplaceListingPlansParams, callback?: Github.Callback): Promise; getMarketplaceListingStubbedPlans(params: Github.AppsGetMarketplaceListingStubbedPlansParams, callback?: Github.Callback): Promise; getMarketplaceListingPlanAccounts(params: Github.AppsGetMarketplaceListingPlanAccountsParams, callback?: Github.Callback): Promise; getMarketplaceListingStubbedPlanAccounts(params: Github.AppsGetMarketplaceListingStubbedPlanAccountsParams, callback?: Github.Callback): Promise; checkMarketplaceListingAccount(params: Github.AppsCheckMarketplaceListingAccountParams, callback?: Github.Callback): Promise; checkMarketplaceListingStubbedAccount(params: Github.AppsCheckMarketplaceListingStubbedAccountParams, callback?: Github.Callback): Promise; }; issues: { getAll(params: Github.IssuesGetAllParams, callback?: Github.Callback): Promise; getForUser(params: Github.IssuesGetForUserParams, callback?: Github.Callback): Promise; getForOrg(params: Github.IssuesGetForOrgParams, callback?: Github.Callback): Promise; getForRepo(params: Github.IssuesGetForRepoParams, callback?: Github.Callback): Promise; get(params: Github.IssuesGetParams, callback?: Github.Callback): Promise; create(params: Github.IssuesCreateParams, callback?: Github.Callback): Promise; edit(params: Github.IssuesEditParams, callback?: Github.Callback): Promise; lock(params: Github.IssuesLockParams, callback?: Github.Callback): Promise; unlock(params: Github.IssuesUnlockParams, callback?: Github.Callback): Promise; getAssignees(params: Github.IssuesGetAssigneesParams, callback?: Github.Callback): Promise; checkAssignee(params: Github.IssuesCheckAssigneeParams, callback?: Github.Callback): Promise; addAssigneesToIssue(params: Github.IssuesAddAssigneesToIssueParams, callback?: Github.Callback): Promise; removeAssigneesFromIssue(params: Github.IssuesRemoveAssigneesFromIssueParams, callback?: Github.Callback): Promise; getComments(params: Github.IssuesGetCommentsParams, callback?: Github.Callback): Promise; getCommentsForRepo(params: Github.IssuesGetCommentsForRepoParams, callback?: Github.Callback): Promise; getComment(params: Github.IssuesGetCommentParams, callback?: Github.Callback): Promise; createComment(params: Github.IssuesCreateCommentParams, callback?: Github.Callback): Promise; editComment(params: Github.IssuesEditCommentParams, callback?: Github.Callback): Promise; deleteComment(params: Github.IssuesDeleteCommentParams, callback?: Github.Callback): Promise; getEvents(params: Github.IssuesGetEventsParams, callback?: Github.Callback): Promise; getEventsForRepo(params: Github.IssuesGetEventsForRepoParams, callback?: Github.Callback): Promise; getEvent(params: Github.IssuesGetEventParams, callback?: Github.Callback): Promise; getLabels(params: Github.IssuesGetLabelsParams, callback?: Github.Callback): Promise; getLabel(params: Github.IssuesGetLabelParams, callback?: Github.Callback): Promise; createLabel(params: Github.IssuesCreateLabelParams, callback?: Github.Callback): Promise; updateLabel(params: Github.IssuesUpdateLabelParams, callback?: Github.Callback): Promise; deleteLabel(params: Github.IssuesDeleteLabelParams, callback?: Github.Callback): Promise; getIssueLabels(params: Github.IssuesGetIssueLabelsParams, callback?: Github.Callback): Promise; addLabels(params: Github.IssuesAddLabelsParams, callback?: Github.Callback): Promise; removeLabel(params: Github.IssuesRemoveLabelParams, callback?: Github.Callback): Promise; replaceAllLabels(params: Github.IssuesReplaceAllLabelsParams, callback?: Github.Callback): Promise; removeAllLabels(params: Github.IssuesRemoveAllLabelsParams, callback?: Github.Callback): Promise; getMilestoneLabels(params: Github.IssuesGetMilestoneLabelsParams, callback?: Github.Callback): Promise; getMilestones(params: Github.IssuesGetMilestonesParams, callback?: Github.Callback): Promise; getMilestone(params: Github.IssuesGetMilestoneParams, callback?: Github.Callback): Promise; createMilestone(params: Github.IssuesCreateMilestoneParams, callback?: Github.Callback): Promise; updateMilestone(params: Github.IssuesUpdateMilestoneParams, callback?: Github.Callback): Promise; deleteMilestone(params: Github.IssuesDeleteMilestoneParams, callback?: Github.Callback): Promise; getEventsTimeline(params: Github.IssuesGetEventsTimelineParams, callback?: Github.Callback): Promise; }; migrations: { startMigration(params: Github.MigrationsStartMigrationParams, callback?: Github.Callback): Promise; getMigrations(params: Github.MigrationsGetMigrationsParams, callback?: Github.Callback): Promise; getMigrationStatus(params: Github.MigrationsGetMigrationStatusParams, callback?: Github.Callback): Promise; getMigrationArchiveLink(params: Github.MigrationsGetMigrationArchiveLinkParams, callback?: Github.Callback): Promise; deleteMigrationArchive(params: Github.MigrationsDeleteMigrationArchiveParams, callback?: Github.Callback): Promise; unlockRepoLockedForMigration(params: Github.MigrationsUnlockRepoLockedForMigrationParams, callback?: Github.Callback): Promise; startImport(params: Github.MigrationsStartImportParams, callback?: Github.Callback): Promise; getImportProgress(params: Github.MigrationsGetImportProgressParams, callback?: Github.Callback): Promise; updateImport(params: Github.MigrationsUpdateImportParams, callback?: Github.Callback): Promise; getImportCommitAuthors(params: Github.MigrationsGetImportCommitAuthorsParams, callback?: Github.Callback): Promise; mapImportCommitAuthor(params: Github.MigrationsMapImportCommitAuthorParams, callback?: Github.Callback): Promise; setImportLfsPreference(params: Github.MigrationsSetImportLfsPreferenceParams, callback?: Github.Callback): Promise; getLargeImportFiles(params: Github.MigrationsGetLargeImportFilesParams, callback?: Github.Callback): Promise; cancelImport(params: Github.MigrationsCancelImportParams, callback?: Github.Callback): Promise; }; misc: { getCodesOfConduct(params: Github.EmptyParams, callback?: Github.Callback): Promise; getCodeOfConduct(params: Github.MiscGetCodeOfConductParams, callback?: Github.Callback): Promise; getRepoCodeOfConduct(params: Github.MiscGetRepoCodeOfConductParams, callback?: Github.Callback): Promise; getEmojis(params: Github.EmptyParams, callback?: Github.Callback): Promise; getGitignoreTemplates(params: Github.EmptyParams, callback?: Github.Callback): Promise; getGitignoreTemplate(params: Github.MiscGetGitignoreTemplateParams, callback?: Github.Callback): Promise; getLicenses(params: Github.EmptyParams, callback?: Github.Callback): Promise; getLicense(params: Github.MiscGetLicenseParams, callback?: Github.Callback): Promise; getRepoLicense(params: Github.MiscGetRepoLicenseParams, callback?: Github.Callback): Promise; renderMarkdown(params: Github.MiscRenderMarkdownParams, callback?: Github.Callback): Promise; renderMarkdownRaw(params: Github.MiscRenderMarkdownRawParams, callback?: Github.Callback): Promise; getMeta(params: Github.EmptyParams, callback?: Github.Callback): Promise; getRateLimit(params: Github.EmptyParams, callback?: Github.Callback): Promise; }; orgs: { getAll(params: Github.OrgsGetAllParams, callback?: Github.Callback): Promise; getForUser(params: Github.OrgsGetForUserParams, callback?: Github.Callback): Promise; get(params: Github.OrgsGetParams, callback?: Github.Callback): Promise; update(params: Github.OrgsUpdateParams, callback?: Github.Callback): Promise; getMembers(params: Github.OrgsGetMembersParams, callback?: Github.Callback): Promise; checkMembership(params: Github.OrgsCheckMembershipParams, callback?: Github.Callback): Promise; removeMember(params: Github.OrgsRemoveMemberParams, callback?: Github.Callback): Promise; getPublicMembers(params: Github.OrgsGetPublicMembersParams, callback?: Github.Callback): Promise; checkPublicMembership(params: Github.OrgsCheckPublicMembershipParams, callback?: Github.Callback): Promise; publicizeMembership(params: Github.OrgsPublicizeMembershipParams, callback?: Github.Callback): Promise; concealMembership(params: Github.OrgsConcealMembershipParams, callback?: Github.Callback): Promise; getOrgMembership(params: Github.OrgsGetOrgMembershipParams, callback?: Github.Callback): Promise; addOrgMembership(params: Github.OrgsAddOrgMembershipParams, callback?: Github.Callback): Promise; removeOrgMembership(params: Github.OrgsRemoveOrgMembershipParams, callback?: Github.Callback): Promise; getPendingOrgInvites(params: Github.OrgsGetPendingOrgInvitesParams, callback?: Github.Callback): Promise; getOutsideCollaborators(params: Github.OrgsGetOutsideCollaboratorsParams, callback?: Github.Callback): Promise; removeOutsideCollaborator(params: Github.OrgsRemoveOutsideCollaboratorParams, callback?: Github.Callback): Promise; convertMemberToOutsideCollaborator(params: Github.OrgsConvertMemberToOutsideCollaboratorParams, callback?: Github.Callback): Promise; getTeams(params: Github.OrgsGetTeamsParams, callback?: Github.Callback): Promise; getTeam(params: Github.OrgsGetTeamParams, callback?: Github.Callback): Promise; createTeam(params: Github.OrgsCreateTeamParams, callback?: Github.Callback): Promise; editTeam(params: Github.OrgsEditTeamParams, callback?: Github.Callback): Promise; deleteTeam(params: Github.OrgsDeleteTeamParams, callback?: Github.Callback): Promise; getTeamMembers(params: Github.OrgsGetTeamMembersParams, callback?: Github.Callback): Promise; getChildTeams(params: Github.OrgsGetChildTeamsParams, callback?: Github.Callback): Promise; getTeamMembership(params: Github.OrgsGetTeamMembershipParams, callback?: Github.Callback): Promise; addTeamMembership(params: Github.OrgsAddTeamMembershipParams, callback?: Github.Callback): Promise; removeTeamMembership(params: Github.OrgsRemoveTeamMembershipParams, callback?: Github.Callback): Promise; getTeamRepos(params: Github.OrgsGetTeamReposParams, callback?: Github.Callback): Promise; getPendingTeamInvites(params: Github.OrgsGetPendingTeamInvitesParams, callback?: Github.Callback): Promise; checkTeamRepo(params: Github.OrgsCheckTeamRepoParams, callback?: Github.Callback): Promise; addTeamRepo(params: Github.OrgsAddTeamRepoParams, callback?: Github.Callback): Promise; deleteTeamRepo(params: Github.OrgsDeleteTeamRepoParams, callback?: Github.Callback): Promise; getHooks(params: Github.OrgsGetHooksParams, callback?: Github.Callback): Promise; getHook(params: Github.OrgsGetHookParams, callback?: Github.Callback): Promise; createHook(params: Github.OrgsCreateHookParams, callback?: Github.Callback): Promise; editHook(params: Github.OrgsEditHookParams, callback?: Github.Callback): Promise; pingHook(params: Github.OrgsPingHookParams, callback?: Github.Callback): Promise; deleteHook(params: Github.OrgsDeleteHookParams, callback?: Github.Callback): Promise; getBlockedUsers(params: Github.OrgsGetBlockedUsersParams, callback?: Github.Callback): Promise; checkBlockedUser(params: Github.OrgsCheckBlockedUserParams, callback?: Github.Callback): Promise; blockUser(params: Github.OrgsBlockUserParams, callback?: Github.Callback): Promise; unblockUser(params: Github.OrgsUnblockUserParams, callback?: Github.Callback): Promise; }; projects: { getRepoProjects(params: Github.ProjectsGetRepoProjectsParams, callback?: Github.Callback): Promise; getOrgProjects(params: Github.ProjectsGetOrgProjectsParams, callback?: Github.Callback): Promise; getProject(params: Github.ProjectsGetProjectParams, callback?: Github.Callback): Promise; createRepoProject(params: Github.ProjectsCreateRepoProjectParams, callback?: Github.Callback): Promise; createOrgProject(params: Github.ProjectsCreateOrgProjectParams, callback?: Github.Callback): Promise; updateProject(params: Github.ProjectsUpdateProjectParams, callback?: Github.Callback): Promise; deleteProject(params: Github.ProjectsDeleteProjectParams, callback?: Github.Callback): Promise; getProjectCards(params: Github.ProjectsGetProjectCardsParams, callback?: Github.Callback): Promise; getProjectCard(params: Github.ProjectsGetProjectCardParams, callback?: Github.Callback): Promise; createProjectCard(params: Github.ProjectsCreateProjectCardParams, callback?: Github.Callback): Promise; updateProjectCard(params: Github.ProjectsUpdateProjectCardParams, callback?: Github.Callback): Promise; deleteProjectCard(params: Github.ProjectsDeleteProjectCardParams, callback?: Github.Callback): Promise; moveProjectCard(params: Github.ProjectsMoveProjectCardParams, callback?: Github.Callback): Promise; getProjectColumns(params: Github.ProjectsGetProjectColumnsParams, callback?: Github.Callback): Promise; getProjectColumn(params: Github.ProjectsGetProjectColumnParams, callback?: Github.Callback): Promise; createProjectColumn(params: Github.ProjectsCreateProjectColumnParams, callback?: Github.Callback): Promise; updateProjectColumn(params: Github.ProjectsUpdateProjectColumnParams, callback?: Github.Callback): Promise; deleteProjectColumn(params: Github.ProjectsDeleteProjectColumnParams, callback?: Github.Callback): Promise; moveProjectColumn(params: Github.ProjectsMoveProjectColumnParams, callback?: Github.Callback): Promise; }; pullRequests: { getAll(params: Github.PullRequestsGetAllParams, callback?: Github.Callback): Promise; get(params: Github.PullRequestsGetParams, callback?: Github.Callback): Promise; create(params: Github.PullRequestsCreateParams, callback?: Github.Callback): Promise; createFromIssue(params: Github.PullRequestsCreateFromIssueParams, callback?: Github.Callback): Promise; update(params: Github.PullRequestsUpdateParams, callback?: Github.Callback): Promise; getCommits(params: Github.PullRequestsGetCommitsParams, callback?: Github.Callback): Promise; getFiles(params: Github.PullRequestsGetFilesParams, callback?: Github.Callback): Promise; checkMerged(params: Github.PullRequestsCheckMergedParams, callback?: Github.Callback): Promise; merge(params: Github.PullRequestsMergeParams, callback?: Github.Callback): Promise; getReviews(params: Github.PullRequestsGetReviewsParams, callback?: Github.Callback): Promise; getReview(params: Github.PullRequestsGetReviewParams, callback?: Github.Callback): Promise; deletePendingReview(params: Github.PullRequestsDeletePendingReviewParams, callback?: Github.Callback): Promise; getReviewComments(params: Github.PullRequestsGetReviewCommentsParams, callback?: Github.Callback): Promise; createReview(params: Github.PullRequestsCreateReviewParams, callback?: Github.Callback): Promise; submitReview(params: Github.PullRequestsSubmitReviewParams, callback?: Github.Callback): Promise; dismissReview(params: Github.PullRequestsDismissReviewParams, callback?: Github.Callback): Promise; getComments(params: Github.PullRequestsGetCommentsParams, callback?: Github.Callback): Promise; getCommentsForRepo(params: Github.PullRequestsGetCommentsForRepoParams, callback?: Github.Callback): Promise; getComment(params: Github.PullRequestsGetCommentParams, callback?: Github.Callback): Promise; createComment(params: Github.PullRequestsCreateCommentParams, callback?: Github.Callback): Promise; createCommentReply(params: Github.PullRequestsCreateCommentReplyParams, callback?: Github.Callback): Promise; editComment(params: Github.PullRequestsEditCommentParams, callback?: Github.Callback): Promise; deleteComment(params: Github.PullRequestsDeleteCommentParams, callback?: Github.Callback): Promise; getReviewRequests(params: Github.PullRequestsGetReviewRequestsParams, callback?: Github.Callback): Promise; createReviewRequest(params: Github.PullRequestsCreateReviewRequestParams, callback?: Github.Callback): Promise; deleteReviewRequest(params: Github.PullRequestsDeleteReviewRequestParams, callback?: Github.Callback): Promise; }; reactions: { getForCommitComment(params: Github.ReactionsGetForCommitCommentParams, callback?: Github.Callback): Promise; createForCommitComment(params: Github.ReactionsCreateForCommitCommentParams, callback?: Github.Callback): Promise; getForIssue(params: Github.ReactionsGetForIssueParams, callback?: Github.Callback): Promise; createForIssue(params: Github.ReactionsCreateForIssueParams, callback?: Github.Callback): Promise; getForIssueComment(params: Github.ReactionsGetForIssueCommentParams, callback?: Github.Callback): Promise; createForIssueComment(params: Github.ReactionsCreateForIssueCommentParams, callback?: Github.Callback): Promise; getForPullRequestReviewComment(params: Github.ReactionsGetForPullRequestReviewCommentParams, callback?: Github.Callback): Promise; createForPullRequestReviewComment(params: Github.ReactionsCreateForPullRequestReviewCommentParams, callback?: Github.Callback): Promise; delete(params: Github.ReactionsDeleteParams, callback?: Github.Callback): Promise; }; repos: { getAll(params: Github.ReposGetAllParams, callback?: Github.Callback): Promise; getForUser(params: Github.ReposGetForUserParams, callback?: Github.Callback): Promise; getForOrg(params: Github.ReposGetForOrgParams, callback?: Github.Callback): Promise; getPublic(params: Github.ReposGetPublicParams, callback?: Github.Callback): Promise; create(params: Github.ReposCreateParams, callback?: Github.Callback): Promise; createForOrg(params: Github.ReposCreateForOrgParams, callback?: Github.Callback): Promise; get(params: Github.ReposGetParams, callback?: Github.Callback): Promise; getById(params: Github.ReposGetByIdParams, callback?: Github.Callback): Promise; edit(params: Github.ReposEditParams, callback?: Github.Callback): Promise; getTopics(params: Github.ReposGetTopicsParams, callback?: Github.Callback): Promise; replaceTopics(params: Github.ReposReplaceTopicsParams, callback?: Github.Callback): Promise; getContributors(params: Github.ReposGetContributorsParams, callback?: Github.Callback): Promise; getLanguages(params: Github.ReposGetLanguagesParams, callback?: Github.Callback): Promise; getTeams(params: Github.ReposGetTeamsParams, callback?: Github.Callback): Promise; getTags(params: Github.ReposGetTagsParams, callback?: Github.Callback): Promise; delete(params: Github.ReposDeleteParams, callback?: Github.Callback): Promise; getBranches(params: Github.ReposGetBranchesParams, callback?: Github.Callback): Promise; getBranch(params: Github.ReposGetBranchParams, callback?: Github.Callback): Promise; getBranchProtection(params: Github.ReposGetBranchProtectionParams, callback?: Github.Callback): Promise; updateBranchProtection(params: Github.ReposUpdateBranchProtectionParams, callback?: Github.Callback): Promise; removeBranchProtection(params: Github.ReposRemoveBranchProtectionParams, callback?: Github.Callback): Promise; getProtectedBranchRequiredStatusChecks(params: Github.ReposGetProtectedBranchRequiredStatusChecksParams, callback?: Github.Callback): Promise; updateProtectedBranchRequiredStatusChecks(params: Github.ReposUpdateProtectedBranchRequiredStatusChecksParams, callback?: Github.Callback): Promise; removeProtectedBranchRequiredStatusChecks(params: Github.ReposRemoveProtectedBranchRequiredStatusChecksParams, callback?: Github.Callback): Promise; getProtectedBranchRequiredStatusChecksContexts(params: Github.ReposGetProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise; replaceProtectedBranchRequiredStatusChecksContexts(params: Github.ReposReplaceProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise; addProtectedBranchRequiredStatusChecksContexts(params: Github.ReposAddProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise; removeProtectedBranchRequiredStatusChecksContexts(params: Github.ReposRemoveProtectedBranchRequiredStatusChecksContextsParams, callback?: Github.Callback): Promise; getProtectedBranchPullRequestReviewEnforcement(params: Github.ReposGetProtectedBranchPullRequestReviewEnforcementParams, callback?: Github.Callback): Promise; updateProtectedBranchPullRequestReviewEnforcement(params: Github.ReposUpdateProtectedBranchPullRequestReviewEnforcementParams, callback?: Github.Callback): Promise; removeProtectedBranchPullRequestReviewEnforcement(params: Github.ReposRemoveProtectedBranchPullRequestReviewEnforcementParams, callback?: Github.Callback): Promise; getProtectedBranchAdminEnforcement(params: Github.ReposGetProtectedBranchAdminEnforcementParams, callback?: Github.Callback): Promise; addProtectedBranchAdminEnforcement(params: Github.ReposAddProtectedBranchAdminEnforcementParams, callback?: Github.Callback): Promise; removeProtectedBranchAdminEnforcement(params: Github.ReposRemoveProtectedBranchAdminEnforcementParams, callback?: Github.Callback): Promise; getProtectedBranchRestrictions(params: Github.ReposGetProtectedBranchRestrictionsParams, callback?: Github.Callback): Promise; removeProtectedBranchRestrictions(params: Github.ReposRemoveProtectedBranchRestrictionsParams, callback?: Github.Callback): Promise; getProtectedBranchTeamRestrictions(params: Github.ReposGetProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise; replaceProtectedBranchTeamRestrictions(params: Github.ReposReplaceProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise; addProtectedBranchTeamRestrictions(params: Github.ReposAddProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise; removeProtectedBranchTeamRestrictions(params: Github.ReposRemoveProtectedBranchTeamRestrictionsParams, callback?: Github.Callback): Promise; getProtectedBranchUserRestrictions(params: Github.ReposGetProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise; replaceProtectedBranchUserRestrictions(params: Github.ReposReplaceProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise; addProtectedBranchUserRestrictions(params: Github.ReposAddProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise; removeProtectedBranchUserRestrictions(params: Github.ReposRemoveProtectedBranchUserRestrictionsParams, callback?: Github.Callback): Promise; getCollaborators(params: Github.ReposGetCollaboratorsParams, callback?: Github.Callback): Promise; checkCollaborator(params: Github.ReposCheckCollaboratorParams, callback?: Github.Callback): Promise; reviewUserPermissionLevel(params: Github.ReposReviewUserPermissionLevelParams, callback?: Github.Callback): Promise; addCollaborator(params: Github.ReposAddCollaboratorParams, callback?: Github.Callback): Promise; removeCollaborator(params: Github.ReposRemoveCollaboratorParams, callback?: Github.Callback): Promise; getAllCommitComments(params: Github.ReposGetAllCommitCommentsParams, callback?: Github.Callback): Promise; getCommitComments(params: Github.ReposGetCommitCommentsParams, callback?: Github.Callback): Promise; createCommitComment(params: Github.ReposCreateCommitCommentParams, callback?: Github.Callback): Promise; getCommitComment(params: Github.ReposGetCommitCommentParams, callback?: Github.Callback): Promise; updateCommitComment(params: Github.ReposUpdateCommitCommentParams, callback?: Github.Callback): Promise; deleteCommitComment(params: Github.ReposDeleteCommitCommentParams, callback?: Github.Callback): Promise; getCommunityProfileMetrics(params: Github.ReposGetCommunityProfileMetricsParams, callback?: Github.Callback): Promise; getCommits(params: Github.ReposGetCommitsParams, callback?: Github.Callback): Promise; getCommit(params: Github.ReposGetCommitParams, callback?: Github.Callback): Promise; getShaOfCommitRef(params: Github.ReposGetShaOfCommitRefParams, callback?: Github.Callback): Promise; compareCommits(params: Github.ReposCompareCommitsParams, callback?: Github.Callback): Promise; getReadme(params: Github.ReposGetReadmeParams, callback?: Github.Callback): Promise; getContent(params: Github.ReposGetContentParams, callback?: Github.Callback): Promise; createFile(params: Github.ReposCreateFileParams, callback?: Github.Callback): Promise; updateFile(params: Github.ReposUpdateFileParams, callback?: Github.Callback): Promise; deleteFile(params: Github.ReposDeleteFileParams, callback?: Github.Callback): Promise; getArchiveLink(params: Github.ReposGetArchiveLinkParams, callback?: Github.Callback): Promise; getDeployKeys(params: Github.ReposGetDeployKeysParams, callback?: Github.Callback): Promise; getDeployKey(params: Github.ReposGetDeployKeyParams, callback?: Github.Callback): Promise; addDeployKey(params: Github.ReposAddDeployKeyParams, callback?: Github.Callback): Promise; deleteDeployKey(params: Github.ReposDeleteDeployKeyParams, callback?: Github.Callback): Promise; getDeployments(params: Github.ReposGetDeploymentsParams, callback?: Github.Callback): Promise; getDeployment(params: Github.ReposGetDeploymentParams, callback?: Github.Callback): Promise; createDeployment(params: Github.ReposCreateDeploymentParams, callback?: Github.Callback): Promise; getDeploymentStatuses(params: Github.ReposGetDeploymentStatusesParams, callback?: Github.Callback): Promise; getDeploymentStatus(params: Github.ReposGetDeploymentStatusParams, callback?: Github.Callback): Promise; createDeploymentStatus(params: Github.ReposCreateDeploymentStatusParams, callback?: Github.Callback): Promise; getDownloads(params: Github.ReposGetDownloadsParams, callback?: Github.Callback): Promise; getDownload(params: Github.ReposGetDownloadParams, callback?: Github.Callback): Promise; deleteDownload(params: Github.ReposDeleteDownloadParams, callback?: Github.Callback): Promise; getForks(params: Github.ReposGetForksParams, callback?: Github.Callback): Promise; fork(params: Github.ReposForkParams, callback?: Github.Callback): Promise; getInvites(params: Github.ReposGetInvitesParams, callback?: Github.Callback): Promise; deleteInvite(params: Github.ReposDeleteInviteParams, callback?: Github.Callback): Promise; updateInvite(params: Github.ReposUpdateInviteParams, callback?: Github.Callback): Promise; merge(params: Github.ReposMergeParams, callback?: Github.Callback): Promise; getPages(params: Github.ReposGetPagesParams, callback?: Github.Callback): Promise; requestPageBuild(params: Github.ReposRequestPageBuildParams, callback?: Github.Callback): Promise; getPagesBuilds(params: Github.ReposGetPagesBuildsParams, callback?: Github.Callback): Promise; getLatestPagesBuild(params: Github.ReposGetLatestPagesBuildParams, callback?: Github.Callback): Promise; getPagesBuild(params: Github.ReposGetPagesBuildParams, callback?: Github.Callback): Promise; getReleases(params: Github.ReposGetReleasesParams, callback?: Github.Callback): Promise; getRelease(params: Github.ReposGetReleaseParams, callback?: Github.Callback): Promise; getLatestRelease(params: Github.ReposGetLatestReleaseParams, callback?: Github.Callback): Promise; getReleaseByTag(params: Github.ReposGetReleaseByTagParams, callback?: Github.Callback): Promise; createRelease(params: Github.ReposCreateReleaseParams, callback?: Github.Callback): Promise; editRelease(params: Github.ReposEditReleaseParams, callback?: Github.Callback): Promise; deleteRelease(params: Github.ReposDeleteReleaseParams, callback?: Github.Callback): Promise; getAssets(params: Github.ReposGetAssetsParams, callback?: Github.Callback): Promise; uploadAsset(params: Github.ReposUploadAssetParams, callback?: Github.Callback): Promise; getAsset(params: Github.ReposGetAssetParams, callback?: Github.Callback): Promise; editAsset(params: Github.ReposEditAssetParams, callback?: Github.Callback): Promise; deleteAsset(params: Github.ReposDeleteAssetParams, callback?: Github.Callback): Promise; getStatsContributors(params: Github.ReposGetStatsContributorsParams, callback?: Github.Callback): Promise; getStatsCommitActivity(params: Github.ReposGetStatsCommitActivityParams, callback?: Github.Callback): Promise; getStatsCodeFrequency(params: Github.ReposGetStatsCodeFrequencyParams, callback?: Github.Callback): Promise; getStatsParticipation(params: Github.ReposGetStatsParticipationParams, callback?: Github.Callback): Promise; getStatsPunchCard(params: Github.ReposGetStatsPunchCardParams, callback?: Github.Callback): Promise; createStatus(params: Github.ReposCreateStatusParams, callback?: Github.Callback): Promise; getStatuses(params: Github.ReposGetStatusesParams, callback?: Github.Callback): Promise; getCombinedStatusForRef(params: Github.ReposGetCombinedStatusForRefParams, callback?: Github.Callback): Promise; getReferrers(params: Github.ReposGetReferrersParams, callback?: Github.Callback): Promise; getPaths(params: Github.ReposGetPathsParams, callback?: Github.Callback): Promise; getViews(params: Github.ReposGetViewsParams, callback?: Github.Callback): Promise; getClones(params: Github.ReposGetClonesParams, callback?: Github.Callback): Promise; getHooks(params: Github.ReposGetHooksParams, callback?: Github.Callback): Promise; getHook(params: Github.ReposGetHookParams, callback?: Github.Callback): Promise; createHook(params: Github.ReposCreateHookParams, callback?: Github.Callback): Promise; editHook(params: Github.ReposEditHookParams, callback?: Github.Callback): Promise; testHook(params: Github.ReposTestHookParams, callback?: Github.Callback): Promise; pingHook(params: Github.ReposPingHookParams, callback?: Github.Callback): Promise; deleteHook(params: Github.ReposDeleteHookParams, callback?: Github.Callback): Promise; }; search: { repos(params: Github.SearchReposParams, callback?: Github.Callback): Promise; code(params: Github.SearchCodeParams, callback?: Github.Callback): Promise; commits(params: Github.SearchCommitsParams, callback?: Github.Callback): Promise; issues(params: Github.SearchIssuesParams, callback?: Github.Callback): Promise; users(params: Github.SearchUsersParams, callback?: Github.Callback): Promise; email(params: Github.SearchEmailParams, callback?: Github.Callback): Promise; }; users: { getForUser(params: Github.UsersGetForUserParams, callback?: Github.Callback): Promise; getById(params: Github.UsersGetByIdParams, callback?: Github.Callback): Promise; get(params: Github.EmptyParams, callback?: Github.Callback): Promise; update(params: Github.UsersUpdateParams, callback?: Github.Callback): Promise; getAll(params: Github.UsersGetAllParams, callback?: Github.Callback): Promise; getOrgs(params: Github.UsersGetOrgsParams, callback?: Github.Callback): Promise; getOrgMemberships(params: Github.UsersGetOrgMembershipsParams, callback?: Github.Callback): Promise; getOrgMembership(params: Github.UsersGetOrgMembershipParams, callback?: Github.Callback): Promise; editOrgMembership(params: Github.UsersEditOrgMembershipParams, callback?: Github.Callback): Promise; getTeams(params: Github.UsersGetTeamsParams, callback?: Github.Callback): Promise; getEmails(params: Github.UsersGetEmailsParams, callback?: Github.Callback): Promise; getPublicEmails(params: Github.UsersGetPublicEmailsParams, callback?: Github.Callback): Promise; addEmails(params: Github.UsersAddEmailsParams, callback?: Github.Callback): Promise; deleteEmails(params: Github.UsersDeleteEmailsParams, callback?: Github.Callback): Promise; togglePrimaryEmailVisibility(params: Github.EmptyParams, callback?: Github.Callback): Promise; getFollowersForUser(params: Github.UsersGetFollowersForUserParams, callback?: Github.Callback): Promise; getFollowers(params: Github.UsersGetFollowersParams, callback?: Github.Callback): Promise; getFollowingForUser(params: Github.UsersGetFollowingForUserParams, callback?: Github.Callback): Promise; getFollowing(params: Github.UsersGetFollowingParams, callback?: Github.Callback): Promise; checkFollowing(params: Github.UsersCheckFollowingParams, callback?: Github.Callback): Promise; checkIfOneFollowersOther(params: Github.UsersCheckIfOneFollowersOtherParams, callback?: Github.Callback): Promise; followUser(params: Github.UsersFollowUserParams, callback?: Github.Callback): Promise; unfollowUser(params: Github.UsersUnfollowUserParams, callback?: Github.Callback): Promise; getKeysForUser(params: Github.UsersGetKeysForUserParams, callback?: Github.Callback): Promise; getKeys(params: Github.UsersGetKeysParams, callback?: Github.Callback): Promise; getKey(params: Github.UsersGetKeyParams, callback?: Github.Callback): Promise; createKey(params: Github.UsersCreateKeyParams, callback?: Github.Callback): Promise; deleteKey(params: Github.UsersDeleteKeyParams, callback?: Github.Callback): Promise; getGpgKeysForUser(params: Github.UsersGetGpgKeysForUserParams, callback?: Github.Callback): Promise; getGpgKeys(params: Github.UsersGetGpgKeysParams, callback?: Github.Callback): Promise; getGpgKey(params: Github.UsersGetGpgKeyParams, callback?: Github.Callback): Promise; createGpgKey(params: Github.UsersCreateGpgKeyParams, callback?: Github.Callback): Promise; deleteGpgKey(params: Github.UsersDeleteGpgKeyParams, callback?: Github.Callback): Promise; promote(params: Github.UsersPromoteParams, callback?: Github.Callback): Promise; demote(params: Github.UsersDemoteParams, callback?: Github.Callback): Promise; suspend(params: Github.UsersSuspendParams, callback?: Github.Callback): Promise; unsuspend(params: Github.UsersUnsuspendParams, callback?: Github.Callback): Promise; getBlockedUsers(params: Github.EmptyParams, callback?: Github.Callback): Promise; checkBlockedUser(params: Github.UsersCheckBlockedUserParams, callback?: Github.Callback): Promise; blockUser(params: Github.UsersBlockUserParams, callback?: Github.Callback): Promise; unblockUser(params: Github.UsersUnblockUserParams, callback?: Github.Callback): Promise; getRepoInvites(params: Github.EmptyParams, callback?: Github.Callback): Promise; acceptRepoInvite(params: Github.UsersAcceptRepoInviteParams, callback?: Github.Callback): Promise; declineRepoInvite(params: Github.UsersDeclineRepoInviteParams, callback?: Github.Callback): Promise; getInstallations(params: Github.UsersGetInstallationsParams, callback?: Github.Callback): Promise; getInstallationRepos(params: Github.UsersGetInstallationReposParams, callback?: Github.Callback): Promise; addRepoToInstallation(params: Github.UsersAddRepoToInstallationParams, callback?: Github.Callback): Promise; removeRepoFromInstallation(params: Github.UsersRemoveRepoFromInstallationParams, callback?: Github.Callback): Promise; getMarketplacePurchases(params: Github.UsersGetMarketplacePurchasesParams, callback?: Github.Callback): Promise; getMarketplaceStubbedPurchases(params: Github.UsersGetMarketplaceStubbedPurchasesParams, callback?: Github.Callback): Promise; }; enterprise: { stats(params: Github.EnterpriseStatsParams, callback?: Github.Callback): Promise; updateLdapForUser(params: Github.EnterpriseUpdateLdapForUserParams, callback?: Github.Callback): Promise; syncLdapForUser(params: Github.EnterpriseSyncLdapForUserParams, callback?: Github.Callback): Promise; updateLdapForTeam(params: Github.EnterpriseUpdateLdapForTeamParams, callback?: Github.Callback): Promise; syncLdapForTeam(params: Github.EnterpriseSyncLdapForTeamParams, callback?: Github.Callback): Promise; getLicense(params: Github.EmptyParams, callback?: Github.Callback): Promise; getPreReceiveEnvironment(params: Github.EnterpriseGetPreReceiveEnvironmentParams, callback?: Github.Callback): Promise; getPreReceiveEnvironments(params: Github.EmptyParams, callback?: Github.Callback): Promise; createPreReceiveEnvironment(params: Github.EnterpriseCreatePreReceiveEnvironmentParams, callback?: Github.Callback): Promise; editPreReceiveEnvironment(params: Github.EnterpriseEditPreReceiveEnvironmentParams, callback?: Github.Callback): Promise; deletePreReceiveEnvironment(params: Github.EnterpriseDeletePreReceiveEnvironmentParams, callback?: Github.Callback): Promise; getPreReceiveEnvironmentDownloadStatus(params: Github.EnterpriseGetPreReceiveEnvironmentDownloadStatusParams, callback?: Github.Callback): Promise; triggerPreReceiveEnvironmentDownload(params: Github.EnterpriseTriggerPreReceiveEnvironmentDownloadParams, callback?: Github.Callback): Promise; getPreReceiveHook(params: Github.EnterpriseGetPreReceiveHookParams, callback?: Github.Callback): Promise; getPreReceiveHooks(params: Github.EmptyParams, callback?: Github.Callback): Promise; createPreReceiveHook(params: Github.EnterpriseCreatePreReceiveHookParams, callback?: Github.Callback): Promise; editPreReceiveHook(params: Github.EnterpriseEditPreReceiveHookParams, callback?: Github.Callback): Promise; deletePreReceiveHook(params: Github.EnterpriseDeletePreReceiveHookParams, callback?: Github.Callback): Promise; queueIndexingJob(params: Github.EnterpriseQueueIndexingJobParams, callback?: Github.Callback): Promise; createOrg(params: Github.EnterpriseCreateOrgParams, callback?: Github.Callback): Promise; }; } export = Github;