declare module "github" { declare type Header = | "Authorization" | "If-Modified-Since" | "If-None-Match" | "Cookie" | "User-Agent" | "Accept" | "X-GitHub-OTP" | 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 Files = { files: string; }; declare type Owner = { owner: string; }; declare type Username = { username: string; }; declare type Org = { org: string; }; declare type Repo = { repo: string; }; declare type Branch = { branch: string; }; declare type Sha = { sha: string; }; declare type Description = { description?: string; }; declare type Id = { id: string; }; declare type GistId = { gist_id: string; }; declare type InstallationId = { installation_id: string; }; declare type RepositoryId = { repository_id: string; }; declare type CommitId = { commit_id: string; }; declare type ClientId = { client_id?: string; }; declare type ColumnId = { column_id: string; }; declare type ProjectId = { project_id: string; }; declare type RepoId = { repo_id: string; }; declare type InvitationId = { invitation_id: string; }; declare type Ref = { ref: string; }; declare type Number = { number: number; }; declare type IssueNumber = { issue_number: number; }; declare type Name = { name: string; }; declare type Direction = { direction?: "asc"|"desc"; }; declare type Since = { since?: Date; }; declare type Until = { until?: Date; }; declare type State = { state?: "open"|"closed"|"all"; }; declare type Color = { color: string; }; declare type Base = { base: string; }; declare type Head = { head: string; }; declare type Path = { path: string; }; declare type Position = { position: number; }; declare type Body = { body: string; }; declare type Homepage = { homepage?: string; }; declare type Private = { private?: boolean; }; declare type HasIssues = { has_issues?: boolean; }; declare type HasProjects = { has_projects?: boolean; }; declare type HasWiki = { has_wiki?: boolean; }; declare type HasDownloads = { has_downloads?: boolean; }; declare type DefaultBranch = { default_branch?: string; }; declare type Title = { title: string; }; declare type Key = { key: string; }; declare type Page = { page?: number; }; declare type PerPage = { per_page?: number; }; declare type Scopes = { scopes?: string[]; }; declare type Note = { note?: string; }; declare type NoteUrl = { note_url?: string; }; declare type AutoInit = { auto_init?: boolean; }; declare type GitignoreTemplate = { gitignore_template?: string; }; declare type LicenseTemplate = { license_template?: string; }; declare type Order = { order?: "asc"|"desc"; }; declare type Q = { q: string; }; declare type Data = { data: string; }; declare type Privacy = { privacy?: "secret"|"closed"; }; declare type Fingerprint = { fingerprint?: string; }; declare type AccessToken = { access_token: string; }; declare type Assignees = { assignees?: string[]; }; declare type Url = { url: string; }; declare type ContentType = { contentType: string; }; declare type ContentLength = { contentLength: number; }; declare type AuthorizationGetGrantsParams = & Page & PerPage ; declare type AuthorizationGetGrantParams = & Id & Page & PerPage ; declare type AuthorizationDeleteGrantParams = & Id ; declare type AuthorizationGetAllParams = & Page & PerPage ; declare type AuthorizationGetParams = & Id ; declare type AuthorizationCreateParams = & Scopes & Note & NoteUrl & ClientId & Fingerprint & { client_secret?: string; }; declare type AuthorizationGetOrCreateAuthorizationForAppParams = & ClientId & Scopes & Note & NoteUrl & Fingerprint & { client_secret: string; }; declare type AuthorizationGetOrCreateAuthorizationForAppAndFingerprintParams = & ClientId & Fingerprint & Scopes & Note & NoteUrl & { client_secret: string; }; declare type AuthorizationUpdateParams = & Id & Scopes & Note & NoteUrl & Fingerprint & { add_scopes?: string[]; remove_scopes?: string[]; }; declare type AuthorizationDeleteParams = & Id ; declare type AuthorizationCheckParams = & ClientId & AccessToken ; declare type AuthorizationResetParams = & ClientId & AccessToken ; declare type AuthorizationRevokeParams = & ClientId & AccessToken ; declare type AuthorizationRevokeGrantParams = & ClientId & AccessToken ; declare type ActivityGetEventsParams = & Page & PerPage ; declare type ActivityGetEventsForRepoParams = & Owner & Repo & Page & PerPage ; declare type ActivityGetEventsForRepoIssuesParams = & Owner & Repo & Page & PerPage ; declare type ActivityGetEventsForRepoNetworkParams = & Owner & Repo & Page & PerPage ; declare type ActivityGetEventsForOrgParams = & Org & Page & PerPage ; declare type ActivityGetEventsReceivedParams = & Username & Page & PerPage ; declare type ActivityGetEventsReceivedPublicParams = & Username & Page & PerPage ; declare type ActivityGetEventsForUserParams = & Username & Page & PerPage ; declare type ActivityGetEventsForUserPublicParams = & Username & Page & PerPage ; declare type ActivityGetEventsForUserOrgParams = & Username & Org & Page & PerPage ; declare type ActivityGetNotificationsParams = & Since & { all?: boolean; participating?: boolean; before?: string; }; declare type ActivityGetNotificationsForUserParams = & Owner & Repo & Since & { all?: boolean; participating?: boolean; before?: string; }; declare type ActivityMarkNotificationsAsReadParams = & { last_read_at?: string; }; declare type ActivityMarkNotificationsAsReadForRepoParams = & Owner & Repo & { last_read_at?: string; }; declare type ActivityGetNotificationThreadParams = & Id ; declare type ActivityMarkNotificationThreadAsReadParams = & Id ; declare type ActivityCheckNotificationThreadSubscriptionParams = & Id ; declare type ActivitySetNotificationThreadSubscriptionParams = & Id & { subscribed?: boolean; ignored?: boolean; }; declare type ActivityDeleteNotificationThreadSubscriptionParams = & Id ; declare type ActivityGetStargazersForRepoParams = & Owner & Repo & Page & PerPage ; declare type ActivityGetStarredReposForUserParams = & Username & Direction & Page & PerPage & { sort?: "created"|"updated"; }; declare type ActivityGetStarredReposParams = & Direction & Page & PerPage & { sort?: "created"|"updated"; }; declare type ActivityCheckStarringRepoParams = & Owner & Repo & Page & PerPage ; declare type ActivityStarRepoParams = & Owner & Repo ; declare type ActivityUnstarRepoParams = & Owner & Repo ; declare type ActivityGetWatchersForRepoParams = & Owner & Repo & Page & PerPage ; declare type ActivityGetWatchedReposForUserParams = & Username & Page & PerPage ; declare type ActivityGetWatchedReposParams = & Page & PerPage ; declare type ActivityGetRepoSubscriptionParams = & Owner & Repo & Page & PerPage ; declare type ActivitySetRepoSubscriptionParams = & Owner & Repo & { subscribed?: boolean; ignored?: boolean; }; declare type ActivityUnwatchRepoParams = & Owner & Repo ; declare type GistsGetForUserParams = & Username & Since & Page & PerPage ; declare type GistsGetAllParams = & Since & Page & PerPage ; declare type GistsGetPublicParams = & Since ; declare type GistsGetStarredParams = & Since ; declare type GistsGetParams = & Id ; declare type GistsGetRevisionParams = & Id & Sha ; declare type GistsCreateParams = & Files & Description & { public: boolean; }; declare type GistsEditParams = & Id & Description & Files & { content?: string; filename?: string; }; declare type GistsGetCommitsParams = & Id ; declare type GistsStarParams = & Id ; declare type GistsUnstarParams = & Id ; declare type GistsCheckStarParams = & Id ; declare type GistsForkParams = & Id ; declare type GistsGetForksParams = & Id & Page & PerPage ; declare type GistsDeleteParams = & Id ; declare type GistsGetCommentsParams = & GistId ; declare type GistsGetCommentParams = & GistId & Id ; declare type GistsCreateCommentParams = & GistId & Body ; declare type GistsEditCommentParams = & GistId & Id & Body ; declare type GistsDeleteCommentParams = & GistId & Id ; declare type GitdataGetBlobParams = & Owner & Repo & Sha & Page & PerPage ; declare type GitdataCreateBlobParams = & Owner & Repo & { content: string; encoding: string; }; declare type GitdataGetCommitParams = & Owner & Repo & Sha ; declare type GitdataCreateCommitParams = & Owner & Repo & { message: string; tree: string; parents: string[]; author?: string; committer?: string; }; declare type GitdataGetCommitSignatureVerificationParams = & Owner & Repo & Sha ; declare type GitdataGetReferenceParams = & Owner & Repo & Ref ; declare type GitdataGetReferencesParams = & Owner & Repo & Page & PerPage ; declare type GitdataGetTagsParams = & Owner & Repo & Page & PerPage ; declare type GitdataCreateReferenceParams = & Owner & Repo & Sha & { ref: string; }; declare type GitdataUpdateReferenceParams = & Owner & Repo & Ref & Sha & { force?: boolean; }; declare type GitdataDeleteReferenceParams = & Owner & Repo & Ref ; declare type GitdataGetTagParams = & Owner & Repo & Sha ; declare type GitdataCreateTagParams = & Owner & Repo & { tag: string; message: string; object: string; type: string; tagger: string; }; declare type GitdataGetTagSignatureVerificationParams = & Owner & Repo & Sha ; declare type GitdataGetTreeParams = & Owner & Repo & Sha & { recursive?: boolean; }; declare type GitdataCreateTreeParams = & Owner & Repo & { tree: string; base_tree?: string; }; declare type IntegrationsGetInstallationsParams = & Page & PerPage ; declare type IntegrationsCreateInstallationTokenParams = & InstallationId & { user_id?: string; }; declare type IntegrationsGetInstallationRepositoriesParams = & { user_id?: string; }; declare type IntegrationsAddRepoToInstallationParams = & InstallationId & RepositoryId ; declare type IntegrationsRemoveRepoFromInstallationParams = & InstallationId & RepositoryId ; declare type AppsGetForSlugParams = & { app_slug: string; }; declare type AppsGetInstallationsParams = & Page & PerPage ; declare type AppsGetInstallationParams = & InstallationId ; declare type AppsCreateInstallationTokenParams = & InstallationId & { user_id?: string; }; declare type AppsGetInstallationRepositoriesParams = & { user_id?: string; }; declare type AppsAddRepoToInstallationParams = & InstallationId & RepositoryId ; declare type AppsRemoveRepoFromInstallationParams = & InstallationId & RepositoryId ; declare type AppsGetMarketplaceListingPlansParams = & Page & PerPage ; declare type AppsGetMarketplaceListingStubbedPlansParams = & Page & PerPage ; declare type AppsGetMarketplaceListingPlanAccountsParams = & Id & Page & PerPage ; declare type AppsGetMarketplaceListingStubbedPlanAccountsParams = & Id & Page & PerPage ; declare type AppsCheckMarketplaceListingAccountParams = & Id ; declare type AppsCheckMarketplaceListingStubbedAccountParams = & Id ; declare type IssuesGetAllParams = & Direction & Since & Page & PerPage & { filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed"; state?: "open"|"closed"|"all"; labels?: string; sort?: "created"|"updated"|"comments"; }; declare type IssuesGetForUserParams = & Direction & Since & Page & PerPage & { filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed"; state?: "open"|"closed"|"all"; labels?: string; sort?: "created"|"updated"|"comments"; }; declare type IssuesGetForOrgParams = & Org & Direction & Since & Page & PerPage & { filter?: "all"|"assigned"|"created"|"mentioned"|"subscribed"; state?: "open"|"closed"|"all"; labels?: string; sort?: "created"|"updated"|"comments"; }; declare 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"; }; declare type IssuesGetParams = & Owner & Repo & Number ; declare type IssuesCreateParams = & Owner & Repo & Assignees & { title: string; body?: string; assignee?: string; milestone?: number; labels?: string[]; }; declare type IssuesEditParams = & Owner & Repo & Number & Assignees & { title?: string; body?: string; assignee?: string; state?: "open"|"closed"; milestone?: number; labels?: string[]; }; declare type IssuesLockParams = & Owner & Repo & Number ; declare type IssuesUnlockParams = & Owner & Repo & Number ; declare type IssuesGetAssigneesParams = & Owner & Repo ; declare type IssuesCheckAssigneeParams = & Owner & Repo & { assignee: string; }; declare type IssuesAddAssigneesToIssueParams = & Owner & Repo & Number & { assignees: string[]; }; declare type IssuesRemoveAssigneesFromIssueParams = & Owner & Repo & Number & { body: string; }; declare type IssuesGetCommentsParams = & Owner & Repo & Number & Since & Page & PerPage ; declare type IssuesGetCommentsForRepoParams = & Owner & Repo & Direction & Since & Page & PerPage & { sort?: "created"|"updated"; }; declare type IssuesGetCommentParams = & Owner & Repo & Id ; declare type IssuesCreateCommentParams = & Owner & Repo & Number & Body ; declare type IssuesEditCommentParams = & Owner & Repo & Id & Body ; declare type IssuesDeleteCommentParams = & Owner & Repo & Id ; declare type IssuesGetEventsParams = & Owner & Repo & IssueNumber & Page & PerPage ; declare type IssuesGetEventsForRepoParams = & Owner & Repo & Page & PerPage ; declare type IssuesGetEventParams = & Owner & Repo & Id ; declare type IssuesGetLabelsParams = & Owner & Repo & Page & PerPage ; declare type IssuesGetLabelParams = & Owner & Repo & Name ; declare type IssuesCreateLabelParams = & Owner & Repo & Name & Color ; declare type IssuesUpdateLabelParams = & Owner & Repo & Color & { oldname: string; name: string; }; declare type IssuesDeleteLabelParams = & Owner & Repo & Name ; declare type IssuesGetIssueLabelsParams = & Owner & Repo & Number ; declare type IssuesAddLabelsParams = & Owner & Repo & Number & { labels: string[]; }; declare type IssuesRemoveLabelParams = & Owner & Repo & Number & { name: string; }; declare type IssuesReplaceAllLabelsParams = & Owner & Repo & Number & { labels: string[]; }; declare type IssuesRemoveAllLabelsParams = & Owner & Repo & Number ; declare type IssuesGetMilestoneLabelsParams = & Owner & Repo & Number ; declare type IssuesGetMilestonesParams = & Owner & Repo & State & Page & PerPage & { sort?: "due_on"|"completeness"; direction?: "asc"|"desc"; }; declare type IssuesGetMilestoneParams = & Owner & Repo & Number ; declare type IssuesCreateMilestoneParams = & Owner & Repo & State & Description & { title: string; due_on?: Date; }; declare type IssuesUpdateMilestoneParams = & Owner & Repo & Number & State & Description & { title: string; due_on?: Date; }; declare type IssuesDeleteMilestoneParams = & Owner & Repo & Number ; declare type IssuesGetEventsTimelineParams = & Owner & Repo & IssueNumber & Page & PerPage ; declare type MigrationsStartMigrationParams = & Org & { repositories: string[]; lock_repositories?: boolean; exclude_attachments?: boolean; }; declare type MigrationsGetMigrationsParams = & Org & Page & PerPage ; declare type MigrationsGetMigrationStatusParams = & Org & Id ; declare type MigrationsGetMigrationArchiveLinkParams = & Org & Id ; declare type MigrationsDeleteMigrationArchiveParams = & Org & Id ; declare type MigrationsUnlockRepoLockedForMigrationParams = & Org & Id & { repo_name: string; }; declare type MigrationsStartImportParams = & Owner & Repo & { vcs_url: string; vcs?: "subversion"|"git"|"mercurial"|"tfvc"; vcs_username?: string; vcs_password?: string; tfvc_project?: string; }; declare type MigrationsGetImportProgressParams = & Owner & Repo ; declare type MigrationsUpdateImportParams = & Owner & Repo ; declare type MigrationsGetImportCommitAuthorsParams = & Owner & Repo & { since?: string; }; declare type MigrationsMapImportCommitAuthorParams = & Owner & Repo & { author_id: string; email?: string; name?: string; }; declare type MigrationsSetImportLfsPreferenceParams = & Owner & Name & { use_lfs: string; }; declare type MigrationsGetLargeImportFilesParams = & Owner & Name ; declare type MigrationsCancelImportParams = & Owner & Repo ; declare type MiscGetCodeOfConductParams = & { key: string; }; declare type MiscGetRepoCodeOfConductParams = & Owner & Repo ; declare type MiscGetGitignoreTemplateParams = & { name: string; }; declare type MiscGetLicenseParams = & { license: string; }; declare type MiscGetRepoLicenseParams = & Owner & Repo ; declare type MiscRenderMarkdownParams = & { text: string; mode?: "markdown"|"gfm"; context?: string; }; declare type MiscRenderMarkdownRawParams = & Data ; declare type OrgsGetAllParams = & Page & PerPage & { since?: string; }; declare type OrgsGetForUserParams = & Username & Page & PerPage ; declare type OrgsGetParams = & Org & Page & PerPage ; declare 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; }; declare type OrgsGetMembersParams = & Org & Page & PerPage & { filter?: "all"|"2fa_disabled"; role?: "all"|"admin"|"member"; }; declare type OrgsCheckMembershipParams = & Org & Username ; declare type OrgsRemoveMemberParams = & Org & Username ; declare type OrgsGetPublicMembersParams = & Org ; declare type OrgsCheckPublicMembershipParams = & Org & Username ; declare type OrgsPublicizeMembershipParams = & Org & Username ; declare type OrgsConcealMembershipParams = & Org & Username ; declare type OrgsGetOrgMembershipParams = & Org & Username ; declare type OrgsAddOrgMembershipParams = & Org & Username & { role: "admin"|"member"; }; declare type OrgsRemoveOrgMembershipParams = & Org & Username ; declare type OrgsGetPendingOrgInvitesParams = & Org ; declare type OrgsGetOutsideCollaboratorsParams = & Org & Page & PerPage & { filter?: "all"|"2fa_disabled"; }; declare type OrgsRemoveOutsideCollaboratorParams = & Org & Username ; declare type OrgsConvertMemberToOutsideCollaboratorParams = & Org & Username ; declare type OrgsGetTeamsParams = & Org & Page & PerPage ; declare type OrgsGetTeamParams = & Id ; declare type OrgsCreateTeamParams = & Org & Name & Privacy & { description?: string; maintainers?: string[]; repo_names?: string[]; parent_team_id?: string; }; declare type OrgsEditTeamParams = & Id & Name & Privacy & { description?: string; parent_team_id?: string; }; declare type OrgsDeleteTeamParams = & Id ; declare type OrgsGetTeamMembersParams = & Id & Page & PerPage & { role?: "member"|"maintainer"|"all"; }; declare type OrgsGetChildTeamsParams = & Id & Page & PerPage ; declare type OrgsGetTeamMembershipParams = & Id & Username ; declare type OrgsAddTeamMembershipParams = & Id & Username & { role?: "member"|"maintainer"; }; declare type OrgsRemoveTeamMembershipParams = & Id & Username ; declare type OrgsGetTeamReposParams = & Id & Page & PerPage ; declare type OrgsGetPendingTeamInvitesParams = & Id & Page & PerPage ; declare type OrgsCheckTeamRepoParams = & Id & Owner & Repo ; declare type OrgsAddTeamRepoParams = & Id & Org & Repo & { permission?: "pull"|"push"|"admin"; }; declare type OrgsDeleteTeamRepoParams = & Id & Owner & Repo ; declare type OrgsGetHooksParams = & Org & Page & PerPage ; declare type OrgsGetHookParams = & Org & Id ; declare type OrgsCreateHookParams = & Org & { name: string; config: string; events?: string[]; active?: boolean; }; declare type OrgsEditHookParams = & Org & Id & { config: string; events?: string[]; active?: boolean; }; declare type OrgsPingHookParams = & Org & Id ; declare type OrgsDeleteHookParams = & Org & Id ; declare type OrgsGetBlockedUsersParams = & Org & Page & PerPage ; declare type OrgsCheckBlockedUserParams = & Org & Username ; declare type OrgsBlockUserParams = & Org & Username ; declare type OrgsUnblockUserParams = & Org & Username ; declare type ProjectsGetRepoProjectsParams = & Owner & Repo & State ; declare type ProjectsGetOrgProjectsParams = & Org & State ; declare type ProjectsGetProjectParams = & Id ; declare type ProjectsCreateRepoProjectParams = & Owner & Repo & Name & { body?: string; }; declare type ProjectsCreateOrgProjectParams = & Org & Name & { body?: string; }; declare type ProjectsUpdateProjectParams = & Id & Name & State & { body?: string; }; declare type ProjectsDeleteProjectParams = & Id ; declare type ProjectsGetProjectCardsParams = & ColumnId ; declare type ProjectsGetProjectCardParams = & Id ; declare type ProjectsCreateProjectCardParams = & ColumnId & { note?: string; content_id?: string; content_type?: string; }; declare type ProjectsUpdateProjectCardParams = & Id & { note?: string; }; declare type ProjectsDeleteProjectCardParams = & Id ; declare type ProjectsMoveProjectCardParams = & Id & { position: string; column_id?: string; }; declare type ProjectsGetProjectColumnsParams = & ProjectId ; declare type ProjectsGetProjectColumnParams = & Id ; declare type ProjectsCreateProjectColumnParams = & ProjectId & Name ; declare type ProjectsUpdateProjectColumnParams = & Id & Name ; declare type ProjectsDeleteProjectColumnParams = & Id ; declare type ProjectsMoveProjectColumnParams = & Id & { position: string; }; declare type PullRequestsGetAllParams = & Owner & Repo & State & Direction & Page & PerPage & { head?: string; base?: string; sort?: "created"|"updated"|"popularity"|"long-running"; }; declare type PullRequestsGetParams = & Owner & Repo & Number ; declare type PullRequestsCreateParams = & Owner & Repo & Head & Base & { title: string; body?: string; maintainer_can_modify?: boolean; }; declare type PullRequestsCreateFromIssueParams = & Owner & Repo & Head & Base & { issue: number; }; declare type PullRequestsUpdateParams = & Owner & Repo & Number & { title?: string; body?: string; state?: "open"|"closed"; base?: string; maintainer_can_modify?: boolean; }; declare type PullRequestsGetCommitsParams = & Owner & Repo & Number & Page & PerPage ; declare type PullRequestsGetFilesParams = & Owner & Repo & Number & Page & PerPage ; declare type PullRequestsCheckMergedParams = & Owner & Repo & Number & Page & PerPage ; declare type PullRequestsMergeParams = & Owner & Repo & Number & { commit_title?: string; commit_message?: string; sha?: string; merge_method?: "merge"|"squash"|"rebase"; }; declare type PullRequestsGetReviewsParams = & Owner & Repo & Number & Page & PerPage ; declare type PullRequestsGetReviewParams = & Owner & Repo & Number & Id ; declare type PullRequestsDeletePendingReviewParams = & Owner & Repo & Number & Id ; declare type PullRequestsGetReviewCommentsParams = & Owner & Repo & Number & Id & Page & PerPage ; declare type PullRequestsCreateReviewParams = & Owner & Repo & Number & { commit_id?: string; body?: string; event?: "APPROVE"|"REQUEST_CHANGES"|"COMMENT"|"PENDING"; comments?: string[]; }; declare type PullRequestsSubmitReviewParams = & Owner & Repo & Number & Id & { body?: string; event?: "APPROVE"|"REQUEST_CHANGES"|"COMMENT"|"PENDING"; }; declare type PullRequestsDismissReviewParams = & Owner & Repo & Number & Id & Page & PerPage & { message?: string; }; declare type PullRequestsGetCommentsParams = & Owner & Repo & Number & Page & PerPage ; declare type PullRequestsGetCommentsForRepoParams = & Owner & Repo & Direction & Since & Page & PerPage & { sort?: "created"|"updated"; }; declare type PullRequestsGetCommentParams = & Owner & Repo & Id ; declare type PullRequestsCreateCommentParams = & Owner & Repo & Number & Body & CommitId & Path & Position ; declare type PullRequestsCreateCommentReplyParams = & Owner & Repo & Number & Body & { in_reply_to: number; }; declare type PullRequestsEditCommentParams = & Owner & Repo & Id & Body ; declare type PullRequestsDeleteCommentParams = & Owner & Repo & Id ; declare type PullRequestsGetReviewRequestsParams = & Owner & Repo & Number & Page & PerPage ; declare type PullRequestsCreateReviewRequestParams = & Owner & Repo & Number & { reviewers?: string[]; team_reviewers?: string[]; }; declare type PullRequestsDeleteReviewRequestParams = & Owner & Repo & Number & { reviewers?: string[]; team_reviewers?: string[]; }; declare type ReactionsGetForCommitCommentParams = & Owner & Repo & Id & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsCreateForCommitCommentParams = & Owner & Repo & Id & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsGetForIssueParams = & Owner & Repo & Number & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsCreateForIssueParams = & Owner & Repo & Number & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsGetForIssueCommentParams = & Owner & Repo & Id & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsCreateForIssueCommentParams = & Owner & Repo & Id & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsGetForPullRequestReviewCommentParams = & Owner & Repo & Id & { content?: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsCreateForPullRequestReviewCommentParams = & Owner & Repo & Id & { content: "+1"|"-1"|"laugh"|"confused"|"heart"|"hooray"; }; declare type ReactionsDeleteParams = & Id ; declare type ReposGetAllParams = & Direction & Page & PerPage & { visibility?: "all"|"public"|"private"; affiliation?: string; type?: "all"|"owner"|"public"|"private"|"member"; sort?: "created"|"updated"|"pushed"|"full_name"; }; declare type ReposGetForUserParams = & Username & Direction & Page & PerPage & { type?: "all"|"owner"|"member"; sort?: "created"|"updated"|"pushed"|"full_name"; }; declare type ReposGetForOrgParams = & Org & Page & PerPage & { type?: "all"|"public"|"private"|"forks"|"sources"|"member"; }; declare type ReposGetPublicParams = & Page & PerPage & { since?: string; }; declare 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; }; declare 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; }; declare type ReposGetParams = & Owner & Repo ; declare type ReposGetByIdParams = & Id ; declare type ReposEditParams = & Owner & Repo & Name & Description & Homepage & Private & HasIssues & HasProjects & HasWiki & DefaultBranch & { allow_squash_merge?: boolean; allow_merge_commit?: boolean; allow_rebase_merge?: boolean; }; declare type ReposGetTopicsParams = & Owner & Repo & Page & PerPage ; declare type ReposReplaceTopicsParams = & Owner & Repo & { names: string[]; }; declare type ReposGetContributorsParams = & Owner & Repo & Page & PerPage & { anon?: boolean; }; declare type ReposGetLanguagesParams = & Owner & Repo & Page & PerPage ; declare type ReposGetTeamsParams = & Owner & Repo & Page & PerPage ; declare type ReposGetTagsParams = & Owner & Repo & Page & PerPage ; declare type ReposDeleteParams = & Owner & Repo ; declare type ReposGetBranchesParams = & Owner & Repo & Page & PerPage & { protected?: boolean; }; declare type ReposGetBranchParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposGetBranchProtectionParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposUpdateBranchProtectionParams = & Owner & Repo & Branch & Page & PerPage & { required_status_checks: string; required_pull_request_reviews: string; dismissal_restrictions?: string; restrictions: string; enforce_admins: boolean; }; declare type ReposRemoveBranchProtectionParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposGetProtectedBranchRequiredStatusChecksParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposUpdateProtectedBranchRequiredStatusChecksParams = & Owner & Repo & Branch & { strict?: boolean; contexts?: string[]; }; declare type ReposRemoveProtectedBranchRequiredStatusChecksParams = & Owner & Repo & Branch ; declare type ReposGetProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & { contexts: string[]; }; declare type ReposAddProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & { contexts: string[]; }; declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsParams = & Owner & Repo & Branch & { contexts: string[]; }; declare type ReposGetProtectedBranchPullRequestReviewEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementParams = & Owner & Repo & Branch & { dismissal_restrictions?: string; dismiss_stale_reviews?: boolean; require_code_owner_reviews?: boolean; }; declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementParams = & Owner & Repo & Branch ; declare type ReposGetProtectedBranchAdminEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposAddProtectedBranchAdminEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposRemoveProtectedBranchAdminEnforcementParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposGetProtectedBranchRestrictionsParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposRemoveProtectedBranchRestrictionsParams = & Owner & Repo & Branch ; declare type ReposGetProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposReplaceProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & { teams: string[]; }; declare type ReposAddProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & { teams: string[]; }; declare type ReposRemoveProtectedBranchTeamRestrictionsParams = & Owner & Repo & Branch & { teams: string[]; }; declare type ReposGetProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & Page & PerPage ; declare type ReposReplaceProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & { users: string[]; }; declare type ReposAddProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & { users: string[]; }; declare type ReposRemoveProtectedBranchUserRestrictionsParams = & Owner & Repo & Branch & { users: string[]; }; declare type ReposGetCollaboratorsParams = & Owner & Repo & Page & PerPage & { affiliation?: "outside"|"all"|"direct"; }; declare type ReposCheckCollaboratorParams = & Owner & Repo & Username ; declare type ReposReviewUserPermissionLevelParams = & Owner & Repo & Username ; declare type ReposAddCollaboratorParams = & Owner & Repo & Username & { permission?: "pull"|"push"|"admin"; }; declare type ReposRemoveCollaboratorParams = & Owner & Repo & Username ; declare type ReposGetAllCommitCommentsParams = & Owner & Repo & Page & PerPage ; declare type ReposGetCommitCommentsParams = & Owner & Repo & Page & PerPage & { ref: string; }; declare type ReposCreateCommitCommentParams = & Owner & Repo & Sha & Body & { path?: string; position?: number; }; declare type ReposGetCommitCommentParams = & Owner & Repo & Id ; declare type ReposUpdateCommitCommentParams = & Owner & Repo & Id & Body ; declare type ReposDeleteCommitCommentParams = & Owner & Repo & Id ; declare type ReposGetCommunityProfileMetricsParams = & Owner & Name ; declare type ReposGetCommitsParams = & Owner & Repo & Since & Until & Page & PerPage & { sha?: string; path?: string; author?: string; }; declare type ReposGetCommitParams = & Owner & Repo & Sha ; declare type ReposGetShaOfCommitRefParams = & Owner & Repo & Ref ; declare type ReposCompareCommitsParams = & Owner & Repo & Base & Head ; declare type ReposGetReadmeParams = & Owner & Repo & { ref?: string; }; declare type ReposGetContentParams = & Owner & Repo & { path: string; ref?: string; }; declare type ReposCreateFileParams = & Owner & Repo & { path: string; message: string; content: string; branch?: string; committer?: string; author?: string; }; declare type ReposUpdateFileParams = & Owner & Repo & { path: string; message: string; content: string; sha: string; branch?: string; committer?: string; author?: string; }; declare type ReposDeleteFileParams = & Owner & Repo & { path: string; message: string; sha: string; branch?: string; committer?: string; author?: string; }; declare type ReposGetArchiveLinkParams = & Owner & Repo & { archive_format: "tarball"|"zipball"; ref?: string; }; declare type ReposGetDeployKeysParams = & Owner & Repo & Page & PerPage ; declare type ReposGetDeployKeyParams = & Owner & Repo & Id ; declare type ReposAddDeployKeyParams = & Owner & Repo & Title & Key & { read_only?: boolean; }; declare type ReposDeleteDeployKeyParams = & Owner & Repo & Id ; declare type ReposGetDeploymentsParams = & Owner & Repo & Page & PerPage & { sha?: string; ref?: string; task?: string; environment?: string; }; declare type ReposGetDeploymentParams = & Owner & Repo & { deployment_id: string; }; declare 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; }; declare type ReposGetDeploymentStatusesParams = & Owner & Repo & Id ; declare type ReposGetDeploymentStatusParams = & Owner & Repo & { id: string; status_id: string; }; declare type ReposCreateDeploymentStatusParams = & Owner & Repo & Id & { state?: string; target_url?: string; log_url?: string; description?: string; environment_url?: string; auto_inactive?: boolean; }; declare type ReposGetDownloadsParams = & Owner & Repo & Page & PerPage ; declare type ReposGetDownloadParams = & Owner & Repo & Id ; declare type ReposDeleteDownloadParams = & Owner & Repo & Id ; declare type ReposGetForksParams = & Owner & Repo & Page & PerPage & { sort?: "newest"|"oldest"|"stargazers"; }; declare type ReposForkParams = & Owner & Repo & { organization?: string; }; declare type ReposGetInvitesParams = & Owner & Repo ; declare type ReposDeleteInviteParams = & Owner & Repo & InvitationId ; declare type ReposUpdateInviteParams = & Owner & Repo & InvitationId & { permissions?: "read"|"write"|"admin"; }; declare type ReposMergeParams = & Owner & Repo & Base & Head & { commit_message?: string; }; declare type ReposGetPagesParams = & Owner & Repo & Page & PerPage ; declare type ReposRequestPageBuildParams = & Owner & Repo ; declare type ReposGetPagesBuildsParams = & Owner & Repo & Page & PerPage ; declare type ReposGetLatestPagesBuildParams = & Owner & Repo ; declare type ReposGetPagesBuildParams = & Owner & Repo & Id ; declare type ReposGetReleasesParams = & Owner & Repo & Page & PerPage ; declare type ReposGetReleaseParams = & Owner & Repo & Id ; declare type ReposGetLatestReleaseParams = & Owner & Repo ; declare type ReposGetReleaseByTagParams = & Owner & Repo & { tag: string; }; declare type ReposCreateReleaseParams = & Owner & Repo & { tag_name: string; target_commitish?: string; name?: string; body?: string; draft?: boolean; prerelease?: boolean; }; declare type ReposEditReleaseParams = & Owner & Repo & Id & { tag_name: string; target_commitish?: string; name?: string; body?: string; draft?: boolean; prerelease?: boolean; }; declare type ReposDeleteReleaseParams = & Owner & Repo & Id ; declare type ReposGetAssetsParams = & Owner & Repo & Id ; declare type ReposUploadAssetParams = & Url & ContentType & ContentLength & { file: Object; name: string; label?: string; }; declare type ReposGetAssetParams = & Owner & Repo & Id ; declare type ReposEditAssetParams = & Owner & Repo & Id & Name & { label?: string; }; declare type ReposDeleteAssetParams = & Owner & Repo & Id ; declare type ReposGetStatsContributorsParams = & Owner & Repo ; declare type ReposGetStatsCommitActivityParams = & Owner & Repo ; declare type ReposGetStatsCodeFrequencyParams = & Owner & Repo ; declare type ReposGetStatsParticipationParams = & Owner & Repo ; declare type ReposGetStatsPunchCardParams = & Owner & Repo ; declare type ReposCreateStatusParams = & Owner & Repo & Sha & { state: "pending"|"success"|"error"|"failure"; target_url?: string; description?: string; context?: string; }; declare type ReposGetStatusesParams = & Owner & Repo & Page & PerPage & { ref: string; }; declare type ReposGetCombinedStatusForRefParams = & Owner & Repo & Page & PerPage & { ref: string; }; declare type ReposGetReferrersParams = & Owner & Repo & Page & PerPage ; declare type ReposGetPathsParams = & Owner & Repo & Page & PerPage ; declare type ReposGetViewsParams = & Owner & Repo & Page & PerPage ; declare type ReposGetClonesParams = & Owner & Repo & Page & PerPage ; declare type ReposGetHooksParams = & Owner & Repo & Page & PerPage ; declare type ReposGetHookParams = & Owner & Repo & Id ; declare type ReposCreateHookParams = & Owner & Repo & Name & { config: string; events?: string[]; active?: boolean; }; declare type ReposEditHookParams = & Owner & Repo & Id & Name & { config: string; events?: string[]; add_events?: string[]; remove_events?: string[]; active?: boolean; }; declare type ReposTestHookParams = & Owner & Repo & Id ; declare type ReposPingHookParams = & Owner & Repo & Id ; declare type ReposDeleteHookParams = & Owner & Repo & Id ; declare type SearchReposParams = & Q & Order & Page & PerPage & { sort?: "stars"|"forks"|"updated"; }; declare type SearchCodeParams = & Q & Order & Page & PerPage & { sort?: "indexed"; }; declare type SearchCommitsParams = & Q & Order & Page & PerPage & { sort?: "author-date"|"committer-date"; }; declare type SearchIssuesParams = & Q & Order & Page & PerPage & { sort?: "comments"|"created"|"updated"; }; declare type SearchUsersParams = & Q & Order & Page & PerPage & { sort?: "followers"|"repositories"|"joined"; }; declare type SearchEmailParams = & { email: string; }; declare type UsersGetForUserParams = & Username ; declare type UsersGetByIdParams = & Id ; declare type UsersUpdateParams = & { name?: string; email?: string; blog?: string; company?: string; location?: string; hireable?: boolean; bio?: string; }; declare type UsersGetAllParams = & { since?: number; }; declare type UsersGetOrgsParams = & Page & PerPage ; declare type UsersGetOrgMembershipsParams = & { state?: "active"|"pending"; }; declare type UsersGetOrgMembershipParams = & Org ; declare type UsersEditOrgMembershipParams = & Org & { state: "active"; }; declare type UsersGetTeamsParams = & Page & PerPage ; declare type UsersGetEmailsParams = & Page & PerPage ; declare type UsersGetPublicEmailsParams = & Page & PerPage ; declare type UsersAddEmailsParams = & { emails: string[]; }; declare type UsersDeleteEmailsParams = & { emails: string[]; }; declare type UsersGetFollowersForUserParams = & Username & Page & PerPage ; declare type UsersGetFollowersParams = & Page & PerPage ; declare type UsersGetFollowingForUserParams = & Username & Page & PerPage ; declare type UsersGetFollowingParams = & Page & PerPage ; declare type UsersCheckFollowingParams = & Username ; declare type UsersCheckIfOneFollowersOtherParams = & Username & { target_user: string; }; declare type UsersFollowUserParams = & Username ; declare type UsersUnfollowUserParams = & Username ; declare type UsersGetKeysForUserParams = & Username & Page & PerPage ; declare type UsersGetKeysParams = & Page & PerPage ; declare type UsersGetKeyParams = & Id ; declare type UsersCreateKeyParams = & Title & Key ; declare type UsersDeleteKeyParams = & Id ; declare type UsersGetGpgKeysForUserParams = & Username & Page & PerPage ; declare type UsersGetGpgKeysParams = & Page & PerPage ; declare type UsersGetGpgKeyParams = & Id ; declare type UsersCreateGpgKeyParams = & { armored_public_key: string; }; declare type UsersDeleteGpgKeyParams = & Id ; declare type UsersPromoteParams = & Username ; declare type UsersDemoteParams = & Username ; declare type UsersSuspendParams = & Username ; declare type UsersUnsuspendParams = & Username ; declare type UsersCheckBlockedUserParams = & Username ; declare type UsersBlockUserParams = & Username ; declare type UsersUnblockUserParams = & Username ; declare type UsersAcceptRepoInviteParams = & InvitationId ; declare type UsersDeclineRepoInviteParams = & InvitationId ; declare type UsersGetInstallationsParams = & Page & PerPage ; declare type UsersGetInstallationReposParams = & InstallationId & Page & PerPage ; declare type UsersAddRepoToInstallationParams = & InstallationId & RepositoryId ; declare type UsersRemoveRepoFromInstallationParams = & InstallationId & RepositoryId ; declare type UsersGetMarketplacePurchasesParams = & Page & PerPage ; declare type UsersGetMarketplaceStubbedPurchasesParams = & Page & PerPage ; declare type EnterpriseStatsParams = & { type: "issues"|"hooks"|"milestones"|"orgs"|"comments"|"pages"|"users"|"gists"|"pulls"|"repos"|"all"; }; declare type EnterpriseUpdateLdapForUserParams = & Username & { ldap_dn: string; }; declare type EnterpriseSyncLdapForUserParams = & Username ; declare type EnterpriseUpdateLdapForTeamParams = & { team_id: number; ldap_dn: string; }; declare type EnterpriseSyncLdapForTeamParams = & { team_id: number; }; declare type EnterpriseGetPreReceiveEnvironmentParams = & Id ; declare type EnterpriseCreatePreReceiveEnvironmentParams = & { name: string; image_url: string; }; declare type EnterpriseEditPreReceiveEnvironmentParams = & Id & { name: string; image_url: string; }; declare type EnterpriseDeletePreReceiveEnvironmentParams = & Id ; declare type EnterpriseGetPreReceiveEnvironmentDownloadStatusParams = & Id ; declare type EnterpriseTriggerPreReceiveEnvironmentDownloadParams = & Id ; declare type EnterpriseGetPreReceiveHookParams = & Id ; declare type EnterpriseCreatePreReceiveHookParams = & { name: string; script: string; script_repository: string; environment: string; enforcement?: string; allow_downstream_configuration?: boolean; }; declare type EnterpriseEditPreReceiveHookParams = & Id & { hook: string; }; declare type EnterpriseDeletePreReceiveHookParams = & Id ; 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: { getGrants(params: AuthorizationGetGrantsParams, callback?: Callback): Promise; getGrant(params: AuthorizationGetGrantParams, callback?: Callback): Promise; deleteGrant(params: AuthorizationDeleteGrantParams, callback?: Callback): Promise; getAll(params: AuthorizationGetAllParams, callback?: Callback): Promise; get(params: AuthorizationGetParams, callback?: Callback): Promise; create(params: AuthorizationCreateParams, callback?: Callback): Promise; getOrCreateAuthorizationForApp(params: AuthorizationGetOrCreateAuthorizationForAppParams, callback?: Callback): Promise; getOrCreateAuthorizationForAppAndFingerprint(params: AuthorizationGetOrCreateAuthorizationForAppAndFingerprintParams, 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; 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: { getForUser(params: GistsGetForUserParams, callback?: Callback): Promise; getAll(params: GistsGetAllParams, callback?: Callback): Promise; getPublic(params: GistsGetPublicParams, callback?: Callback): Promise; getStarred(params: GistsGetStarredParams, callback?: Callback): Promise; get(params: GistsGetParams, callback?: Callback): Promise; getRevision(params: GistsGetRevisionParams, callback?: Callback): Promise; create(params: GistsCreateParams, callback?: Callback): Promise; edit(params: GistsEditParams, callback?: Callback): Promise; getCommits(params: GistsGetCommitsParams, callback?: Callback): Promise; star(params: GistsStarParams, callback?: Callback): Promise; unstar(params: GistsUnstarParams, callback?: Callback): Promise; checkStar(params: GistsCheckStarParams, callback?: Callback): Promise; fork(params: GistsForkParams, callback?: Callback): Promise; getForks(params: GistsGetForksParams, callback?: Callback): Promise; delete(params: GistsDeleteParams, 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: { getForSlug(params: AppsGetForSlugParams, callback?: Callback): Promise; get(params: EmptyParams, 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: { getAll(params: IssuesGetAllParams, callback?: Callback): Promise; getForUser(params: IssuesGetForUserParams, callback?: Callback): Promise; getForOrg(params: IssuesGetForOrgParams, callback?: Callback): Promise; getForRepo(params: IssuesGetForRepoParams, callback?: Callback): Promise; 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; 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: { getAll(params: OrgsGetAllParams, callback?: Callback): Promise; getForUser(params: OrgsGetForUserParams, callback?: Callback): Promise; get(params: OrgsGetParams, callback?: Callback): Promise; update(params: OrgsUpdateParams, 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: { getAll(params: PullRequestsGetAllParams, callback?: Callback): Promise; get(params: PullRequestsGetParams, callback?: Callback): Promise; create(params: PullRequestsCreateParams, callback?: Callback): Promise; createFromIssue(params: PullRequestsCreateFromIssueParams, callback?: Callback): Promise; update(params: PullRequestsUpdateParams, callback?: Callback): Promise; getCommits(params: PullRequestsGetCommitsParams, callback?: Callback): Promise; getFiles(params: PullRequestsGetFilesParams, callback?: Callback): Promise; checkMerged(params: PullRequestsCheckMergedParams, callback?: Callback): Promise; merge(params: PullRequestsMergeParams, 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: { 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; delete(params: ReactionsDeleteParams, callback?: Callback): Promise; }; repos: { getAll(params: ReposGetAllParams, callback?: Callback): Promise; getForUser(params: ReposGetForUserParams, callback?: Callback): Promise; getForOrg(params: ReposGetForOrgParams, callback?: Callback): Promise; getPublic(params: ReposGetPublicParams, callback?: Callback): Promise; create(params: ReposCreateParams, callback?: Callback): Promise; createForOrg(params: ReposCreateForOrgParams, callback?: Callback): Promise; get(params: ReposGetParams, callback?: Callback): Promise; getById(params: ReposGetByIdParams, callback?: Callback): Promise; edit(params: ReposEditParams, 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; delete(params: ReposDeleteParams, 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; fork(params: ReposForkParams, callback?: Callback): Promise; getInvites(params: ReposGetInvitesParams, callback?: Callback): Promise; deleteInvite(params: ReposDeleteInviteParams, callback?: Callback): Promise; updateInvite(params: ReposUpdateInviteParams, callback?: Callback): Promise; merge(params: ReposMergeParams, 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; email(params: SearchEmailParams, callback?: Callback): Promise; }; users: { getForUser(params: UsersGetForUserParams, callback?: Callback): Promise; getById(params: UsersGetByIdParams, callback?: Callback): Promise; get(params: EmptyParams, callback?: Callback): Promise; update(params: UsersUpdateParams, 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; promote(params: UsersPromoteParams, callback?: Callback): Promise; demote(params: UsersDemoteParams, callback?: Callback): Promise; suspend(params: UsersSuspendParams, callback?: Callback): Promise; unsuspend(params: UsersUnsuspendParams, 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; }