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