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