@octokit/rest
Version:
GitHub REST API client for Node.js
1,993 lines (1,972 loc) • 858 kB
TypeScript
/**
* 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 Response<T> {
/** This is the data you would see in https://developer.github.com/v3/ */
data: T;
/** Response status number */
status: number;
/** Response headers */
headers: {
"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<any>;
}
export type AnyResponse = Response<any>;
export interface EmptyParams {}
export interface Options {
baseUrl?: string;
timeout?: number;
headers?: { [header: string]: any };
agent?: http.Agent;
/**
* @deprecated in version 15.0.0
*/
proxy?: string;
/**
* @deprecated in version 15.0.0
*/
ca?: string;
/**
* @deprecated in version 15.0.0
*/
rejectUnauthorized?: boolean;
/**
* @deprecated in version 15.0.0
*/
family?: number;
/**
* @deprecated in version 15.2.0
*/
host?: string;
/**
* @deprecated in version 15.2.0
*/
pathPrefix?: string;
/**
* @deprecated in version 15.2.0
*/
protocol?: string;
/**
* @deprecated in version 15.2.0
*/
port?: number;
}
export interface AuthBasic {
type: "basic";
username: string;
password: string;
}
export interface AuthOAuthToken {
type: "oauth";
token: string;
}
export interface AuthOAuthSecret {
type: "oauth";
key: string;
secret: string;
}
export interface AuthUserToken {
type: "token";
token: string;
}
/* @deprecated Use "app" instead of "integration" */
export interface DeprecatedAuthJWT {
type: "integration";
token: string;
}
export interface AuthJWT {
type: "app";
token: string;
}
export type Auth =
| AuthBasic
| AuthOAuthToken
| AuthOAuthSecret
| AuthUserToken
| AuthJWT
| DeprecatedAuthJWT;
export type Link = { link: string } | { headers: { link: string } } | string;
export interface Callback<T> {
(error: Error | null, result: T): any;
}
type UsersUpdateAuthenticatedResponsePlan = {
name: string;
space: number;
private_repos: number;
collaborators: number;
};
type UsersUpdateAuthenticatedResponse = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
name: string;
company: string;
blog: string;
location: string;
email: string;
hireable: boolean;
bio: string;
public_repos: number;
public_gists: number;
followers: number;
following: number;
created_at: string;
updated_at: string;
total_private_repos: number;
owned_private_repos: number;
private_gists: number;
disk_usage: number;
collaborators: number;
two_factor_authentication: boolean;
plan: UsersUpdateAuthenticatedResponsePlan;
};
type UsersUnfollowResponse = {};
type UsersUnblockResponse = {};
type UsersTogglePrimaryEmailVisibilityResponseItem = {
email: string;
primary: boolean;
verified: boolean;
visibility: string;
};
type UsersListPublicKeysForUserResponseItem = { id: number; key: string };
type UsersListPublicKeysResponseItem = {
id: number;
key: string;
url: string;
title: string;
verified: boolean;
created_at: string;
read_only: boolean;
};
type UsersListPublicEmailsResponseItem = {
email: string;
verified: boolean;
primary: boolean;
visibility: string;
};
type UsersListGpgKeysForUserResponseItemSubkeysItem = {
id: number;
primary_key_id: number;
key_id: string;
public_key: string;
emails: Array<any>;
subkeys: Array<any>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersListGpgKeysForUserResponseItemEmailsItem = {
email: string;
verified: boolean;
};
type UsersListGpgKeysForUserResponseItem = {
id: number;
primary_key_id: null;
key_id: string;
public_key: string;
emails: Array<UsersListGpgKeysForUserResponseItemEmailsItem>;
subkeys: Array<UsersListGpgKeysForUserResponseItemSubkeysItem>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersListGpgKeysResponseItemSubkeysItem = {
id: number;
primary_key_id: number;
key_id: string;
public_key: string;
emails: Array<any>;
subkeys: Array<any>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersListGpgKeysResponseItemEmailsItem = {
email: string;
verified: boolean;
};
type UsersListGpgKeysResponseItem = {
id: number;
primary_key_id: null;
key_id: string;
public_key: string;
emails: Array<UsersListGpgKeysResponseItemEmailsItem>;
subkeys: Array<UsersListGpgKeysResponseItemSubkeysItem>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersListFollowingForUserResponseItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type UsersListFollowingForAuthenticatedUserResponseItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type UsersListFollowersForUserResponseItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type UsersListFollowersForAuthenticatedUserResponseItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type UsersListEmailsResponseItem = {
email: string;
verified: boolean;
primary: boolean;
visibility: string;
};
type UsersListBlockedResponseItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type UsersListResponseItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type UsersGetPublicKeyResponse = {
id: number;
key: string;
url: string;
title: string;
verified: boolean;
created_at: string;
read_only: boolean;
};
type UsersGetGpgKeyResponseSubkeysItem = {
id: number;
primary_key_id: number;
key_id: string;
public_key: string;
emails: Array<any>;
subkeys: Array<any>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersGetGpgKeyResponseEmailsItem = { email: string; verified: boolean };
type UsersGetGpgKeyResponse = {
id: number;
primary_key_id: null;
key_id: string;
public_key: string;
emails: Array<UsersGetGpgKeyResponseEmailsItem>;
subkeys: Array<UsersGetGpgKeyResponseSubkeysItem>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersGetByUsernameResponse = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
name: string;
company: string;
blog: string;
location: string;
email: string;
hireable: boolean;
bio: string;
public_repos: number;
public_gists: number;
followers: number;
following: number;
created_at: string;
updated_at: string;
};
type UsersFollowResponse = {};
type UsersDeletePublicKeyResponse = {};
type UsersDeleteGpgKeyResponse = {};
type UsersDeleteEmailsResponse = {};
type UsersCreatePublicKeyResponse = {
id: number;
key: string;
url: string;
title: string;
verified: boolean;
created_at: string;
read_only: boolean;
};
type UsersCreateGpgKeyResponseSubkeysItem = {
id: number;
primary_key_id: number;
key_id: string;
public_key: string;
emails: Array<any>;
subkeys: Array<any>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersCreateGpgKeyResponseEmailsItem = {
email: string;
verified: boolean;
};
type UsersCreateGpgKeyResponse = {
id: number;
primary_key_id: null;
key_id: string;
public_key: string;
emails: Array<UsersCreateGpgKeyResponseEmailsItem>;
subkeys: Array<UsersCreateGpgKeyResponseSubkeysItem>;
can_sign: boolean;
can_encrypt_comms: boolean;
can_encrypt_storage: boolean;
can_certify: boolean;
created_at: string;
expires_at: null;
};
type UsersCheckBlockedResponse = {};
type UsersBlockResponse = {};
type UsersAddEmailsResponseItem = {
email: string;
primary: boolean;
verified: boolean;
visibility: string | null;
};
type TeamsUpdateDiscussionCommentResponseReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsUpdateDiscussionCommentResponseAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsUpdateDiscussionCommentResponse = {
author: TeamsUpdateDiscussionCommentResponseAuthor;
body: string;
body_html: string;
body_version: string;
created_at: string;
last_edited_at: string;
discussion_url: string;
html_url: string;
node_id: string;
number: number;
updated_at: string;
url: string;
reactions: TeamsUpdateDiscussionCommentResponseReactions;
};
type TeamsUpdateDiscussionResponseReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsUpdateDiscussionResponseAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsUpdateDiscussionResponse = {
author: TeamsUpdateDiscussionResponseAuthor;
body: string;
body_html: string;
body_version: string;
comments_count: number;
comments_url: string;
created_at: string;
last_edited_at: string;
html_url: string;
node_id: string;
number: number;
pinned: boolean;
private: boolean;
team_url: string;
title: string;
updated_at: string;
url: string;
reactions: TeamsUpdateDiscussionResponseReactions;
};
type TeamsUpdateResponseOrganization = {
login: string;
id: number;
node_id: string;
url: string;
repos_url: string;
events_url: string;
hooks_url: string;
issues_url: string;
members_url: string;
public_members_url: string;
avatar_url: string;
description: string;
name: string;
company: string;
blog: string;
location: string;
email: string;
is_verified: boolean;
has_organization_projects: boolean;
has_repository_projects: boolean;
public_repos: number;
public_gists: number;
followers: number;
following: number;
html_url: string;
created_at: string;
type: string;
};
type TeamsUpdateResponse = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
members_count: number;
repos_count: number;
created_at: string;
updated_at: string;
organization: TeamsUpdateResponseOrganization;
};
type TeamsReviewProjectResponsePermissions = {
read: boolean;
write: boolean;
admin: boolean;
};
type TeamsReviewProjectResponseCreator = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsReviewProjectResponse = {
owner_url: string;
url: string;
html_url: string;
columns_url: string;
id: number;
node_id: string;
name: string;
body: string;
number: number;
state: string;
creator: TeamsReviewProjectResponseCreator;
created_at: string;
updated_at: string;
organization_permission: string;
private: boolean;
permissions: TeamsReviewProjectResponsePermissions;
};
type TeamsRemoveRepoResponse = {};
type TeamsRemoveProjectResponse = {};
type TeamsRemoveMembershipResponse = {};
type TeamsRemoveMemberResponse = {};
type TeamsListReposResponseItemLicense = {
key: string;
name: string;
spdx_id: string;
url: string;
node_id: string;
};
type TeamsListReposResponseItemPermissions = {
admin: boolean;
push: boolean;
pull: boolean;
};
type TeamsListReposResponseItemOwner = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsListReposResponseItem = {
id: number;
node_id: string;
name: string;
full_name: string;
owner: TeamsListReposResponseItemOwner;
private: boolean;
html_url: string;
description: string;
fork: boolean;
url: string;
archive_url: string;
assignees_url: string;
blobs_url: string;
branches_url: string;
collaborators_url: string;
comments_url: string;
commits_url: string;
compare_url: string;
contents_url: string;
contributors_url: string;
deployments_url: string;
downloads_url: string;
events_url: string;
forks_url: string;
git_commits_url: string;
git_refs_url: string;
git_tags_url: string;
git_url: string;
issue_comment_url: string;
issue_events_url: string;
issues_url: string;
keys_url: string;
labels_url: string;
languages_url: string;
merges_url: string;
milestones_url: string;
notifications_url: string;
pulls_url: string;
releases_url: string;
ssh_url: string;
stargazers_url: string;
statuses_url: string;
subscribers_url: string;
subscription_url: string;
tags_url: string;
teams_url: string;
trees_url: string;
clone_url: string;
mirror_url: string;
hooks_url: string;
svn_url: string;
homepage: string;
language: null;
forks_count: number;
stargazers_count: number;
watchers_count: number;
size: number;
default_branch: string;
open_issues_count: number;
topics: Array<string>;
has_issues: boolean;
has_projects: boolean;
has_wiki: boolean;
has_pages: boolean;
has_downloads: boolean;
archived: boolean;
pushed_at: string;
created_at: string;
updated_at: string;
permissions: TeamsListReposResponseItemPermissions;
subscribers_count: number;
network_count: number;
license: TeamsListReposResponseItemLicense;
};
type TeamsListProjectsResponseItemPermissions = {
read: boolean;
write: boolean;
admin: boolean;
};
type TeamsListProjectsResponseItemCreator = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsListProjectsResponseItem = {
owner_url: string;
url: string;
html_url: string;
columns_url: string;
id: number;
node_id: string;
name: string;
body: string;
number: number;
state: string;
creator: TeamsListProjectsResponseItemCreator;
created_at: string;
updated_at: string;
organization_permission: string;
private: boolean;
permissions: TeamsListProjectsResponseItemPermissions;
};
type TeamsListPendingInvitationsResponseItemInviter = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsListPendingInvitationsResponseItem = {
id: number;
login: string;
email: string;
role: string;
created_at: string;
inviter: TeamsListPendingInvitationsResponseItemInviter;
team_count: number;
invitation_team_url: string;
};
type TeamsListMembersResponseItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsListForAuthenticatedUserResponseItemOrganization = {
login: string;
id: number;
node_id: string;
url: string;
repos_url: string;
events_url: string;
hooks_url: string;
issues_url: string;
members_url: string;
public_members_url: string;
avatar_url: string;
description: string;
name: string;
company: string;
blog: string;
location: string;
email: string;
is_verified: boolean;
has_organization_projects: boolean;
has_repository_projects: boolean;
public_repos: number;
public_gists: number;
followers: number;
following: number;
html_url: string;
created_at: string;
type: string;
};
type TeamsListForAuthenticatedUserResponseItem = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
members_count: number;
repos_count: number;
created_at: string;
updated_at: string;
organization: TeamsListForAuthenticatedUserResponseItemOrganization;
};
type TeamsListDiscussionsResponseItemReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsListDiscussionsResponseItemAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsListDiscussionsResponseItem = {
author: TeamsListDiscussionsResponseItemAuthor;
body: string;
body_html: string;
body_version: string;
comments_count: number;
comments_url: string;
created_at: string;
last_edited_at: null;
html_url: string;
node_id: string;
number: number;
pinned: boolean;
private: boolean;
team_url: string;
title: string;
updated_at: string;
url: string;
reactions: TeamsListDiscussionsResponseItemReactions;
};
type TeamsListDiscussionCommentsResponseItemReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsListDiscussionCommentsResponseItemAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsListDiscussionCommentsResponseItem = {
author: TeamsListDiscussionCommentsResponseItemAuthor;
body: string;
body_html: string;
body_version: string;
created_at: string;
last_edited_at: null;
discussion_url: string;
html_url: string;
node_id: string;
number: number;
updated_at: string;
url: string;
reactions: TeamsListDiscussionCommentsResponseItemReactions;
};
type TeamsListResponseItem = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
};
type TeamsGetDiscussionCommentResponseReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsGetDiscussionCommentResponseAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsGetDiscussionCommentResponse = {
author: TeamsGetDiscussionCommentResponseAuthor;
body: string;
body_html: string;
body_version: string;
created_at: string;
last_edited_at: null;
discussion_url: string;
html_url: string;
node_id: string;
number: number;
updated_at: string;
url: string;
reactions: TeamsGetDiscussionCommentResponseReactions;
};
type TeamsGetDiscussionResponseReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsGetDiscussionResponseAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsGetDiscussionResponse = {
author: TeamsGetDiscussionResponseAuthor;
body: string;
body_html: string;
body_version: string;
comments_count: number;
comments_url: string;
created_at: string;
last_edited_at: null;
html_url: string;
node_id: string;
number: number;
pinned: boolean;
private: boolean;
team_url: string;
title: string;
updated_at: string;
url: string;
reactions: TeamsGetDiscussionResponseReactions;
};
type TeamsGetResponseOrganization = {
login: string;
id: number;
node_id: string;
url: string;
repos_url: string;
events_url: string;
hooks_url: string;
issues_url: string;
members_url: string;
public_members_url: string;
avatar_url: string;
description: string;
name: string;
company: string;
blog: string;
location: string;
email: string;
is_verified: boolean;
has_organization_projects: boolean;
has_repository_projects: boolean;
public_repos: number;
public_gists: number;
followers: number;
following: number;
html_url: string;
created_at: string;
type: string;
};
type TeamsGetResponse = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
members_count: number;
repos_count: number;
created_at: string;
updated_at: string;
organization: TeamsGetResponseOrganization;
};
type TeamsDeleteDiscussionCommentResponse = {};
type TeamsDeleteDiscussionResponse = {};
type TeamsDeleteResponse = {};
type TeamsCreateDiscussionCommentResponseReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsCreateDiscussionCommentResponseAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsCreateDiscussionCommentResponse = {
author: TeamsCreateDiscussionCommentResponseAuthor;
body: string;
body_html: string;
body_version: string;
created_at: string;
last_edited_at: null;
discussion_url: string;
html_url: string;
node_id: string;
number: number;
updated_at: string;
url: string;
reactions: TeamsCreateDiscussionCommentResponseReactions;
};
type TeamsCreateDiscussionResponseReactions = {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
};
type TeamsCreateDiscussionResponseAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type TeamsCreateDiscussionResponse = {
author: TeamsCreateDiscussionResponseAuthor;
body: string;
body_html: string;
body_version: string;
comments_count: number;
comments_url: string;
created_at: string;
last_edited_at: null;
html_url: string;
node_id: string;
number: number;
pinned: boolean;
private: boolean;
team_url: string;
title: string;
updated_at: string;
url: string;
reactions: TeamsCreateDiscussionResponseReactions;
};
type TeamsCreateResponseOrganization = {
login: string;
id: number;
node_id: string;
url: string;
repos_url: string;
events_url: string;
hooks_url: string;
issues_url: string;
members_url: string;
public_members_url: string;
avatar_url: string;
description: string;
name: string;
company: string;
blog: string;
location: string;
email: string;
is_verified: boolean;
has_organization_projects: boolean;
has_repository_projects: boolean;
public_repos: number;
public_gists: number;
followers: number;
following: number;
html_url: string;
created_at: string;
type: string;
};
type TeamsCreateResponse = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
members_count: number;
repos_count: number;
created_at: string;
updated_at: string;
organization: TeamsCreateResponseOrganization;
};
type TeamsAddOrUpdateRepoResponse = {};
type TeamsAddOrUpdateProjectResponse = {};
type TeamsAddMemberResponseErrorsItem = {
code: string;
field: string;
resource: string;
};
type TeamsAddMemberResponse = {
message?: string;
errors?: Array<TeamsAddMemberResponseErrorsItem>;
};
type ReposUpdateReleaseAssetResponseUploader = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateReleaseAssetResponse = {
url: string;
browser_download_url: string;
id: number;
node_id: string;
name: string;
label: string;
state: string;
content_type: string;
size: number;
download_count: number;
created_at: string;
updated_at: string;
uploader: ReposUpdateReleaseAssetResponseUploader;
};
type ReposUpdateReleaseResponseAssetsItemUploader = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateReleaseResponseAssetsItem = {
url: string;
browser_download_url: string;
id: number;
node_id: string;
name: string;
label: string;
state: string;
content_type: string;
size: number;
download_count: number;
created_at: string;
updated_at: string;
uploader: ReposUpdateReleaseResponseAssetsItemUploader;
};
type ReposUpdateReleaseResponseAuthor = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateReleaseResponse = {
url: string;
html_url: string;
assets_url: string;
upload_url: string;
tarball_url: string;
zipball_url: string;
id: number;
node_id: string;
tag_name: string;
target_commitish: string;
name: string;
body: string;
draft: boolean;
prerelease: boolean;
created_at: string;
published_at: string;
author: ReposUpdateReleaseResponseAuthor;
assets: Array<ReposUpdateReleaseResponseAssetsItem>;
};
type ReposUpdateProtectedBranchRequiredStatusChecksResponse = {
url: string;
strict: boolean;
contexts: Array<string>;
contexts_url: string;
};
type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
};
type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions = {
url: string;
users_url: string;
teams_url: string;
users: Array<
ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem
>;
teams: Array<
ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem
>;
};
type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponse = {
url: string;
dismissal_restrictions: ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions;
dismiss_stale_reviews: boolean;
require_code_owner_reviews: boolean;
required_approving_review_count: number;
};
type ReposUpdateInvitationResponseInviter = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateInvitationResponseInvitee = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateInvitationResponseRepositoryOwner = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateInvitationResponseRepository = {
id: number;
node_id: string;
name: string;
full_name: string;
owner: ReposUpdateInvitationResponseRepositoryOwner;
private: boolean;
html_url: string;
description: string;
fork: boolean;
url: string;
archive_url: string;
assignees_url: string;
blobs_url: string;
branches_url: string;
collaborators_url: string;
comments_url: string;
commits_url: string;
compare_url: string;
contents_url: string;
contributors_url: string;
deployments_url: string;
downloads_url: string;
events_url: string;
forks_url: string;
git_commits_url: string;
git_refs_url: string;
git_tags_url: string;
git_url: string;
issue_comment_url: string;
issue_events_url: string;
issues_url: string;
keys_url: string;
labels_url: string;
languages_url: string;
merges_url: string;
milestones_url: string;
notifications_url: string;
pulls_url: string;
releases_url: string;
ssh_url: string;
stargazers_url: string;
statuses_url: string;
subscribers_url: string;
subscription_url: string;
tags_url: string;
teams_url: string;
trees_url: string;
};
type ReposUpdateInvitationResponse = {
id: number;
repository: ReposUpdateInvitationResponseRepository;
invitee: ReposUpdateInvitationResponseInvitee;
inviter: ReposUpdateInvitationResponseInviter;
permissions: string;
created_at: string;
url: string;
html_url: string;
};
type ReposUpdateInformationAboutPagesSiteResponse = {};
type ReposUpdateHookResponseConfig = { url: string; content_type: string };
type ReposUpdateHookResponse = {
id: number;
url: string;
test_url: string;
ping_url: string;
name: string;
events: Array<string>;
active: boolean;
config: ReposUpdateHookResponseConfig;
updated_at: string;
created_at: string;
};
type ReposUpdateFileResponseCommitVerification = {
verified: boolean;
reason: string;
signature: null;
payload: null;
};
type ReposUpdateFileResponseCommitParentsItem = {
url: string;
html_url: string;
sha: string;
};
type ReposUpdateFileResponseCommitTree = { url: string; sha: string };
type ReposUpdateFileResponseCommitCommitter = {
date: string;
name: string;
email: string;
};
type ReposUpdateFileResponseCommitAuthor = {
date: string;
name: string;
email: string;
};
type ReposUpdateFileResponseCommit = {
sha: string;
node_id: string;
url: string;
html_url: string;
author: ReposUpdateFileResponseCommitAuthor;
committer: ReposUpdateFileResponseCommitCommitter;
message: string;
tree: ReposUpdateFileResponseCommitTree;
parents: Array<ReposUpdateFileResponseCommitParentsItem>;
verification: ReposUpdateFileResponseCommitVerification;
};
type ReposUpdateFileResponseContentLinks = {
self: string;
git: string;
html: string;
};
type ReposUpdateFileResponseContent = {
name: string;
path: string;
sha: string;
size: number;
url: string;
html_url: string;
git_url: string;
download_url: string;
type: string;
_links: ReposUpdateFileResponseContentLinks;
};
type ReposUpdateFileResponse = {
content: ReposUpdateFileResponseContent;
commit: ReposUpdateFileResponseCommit;
};
type ReposUpdateCommitCommentResponseUser = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateCommitCommentResponse = {
html_url: string;
url: string;
id: number;
node_id: string;
body: string;
path: string;
position: number;
line: number;
commit_id: string;
user: ReposUpdateCommitCommentResponseUser;
created_at: string;
updated_at: string;
};
type ReposUpdateBranchProtectionResponseRestrictionsTeamsItem = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
};
type ReposUpdateBranchProtectionResponseRestrictionsUsersItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateBranchProtectionResponseRestrictions = {
url: string;
users_url: string;
teams_url: string;
users: Array<ReposUpdateBranchProtectionResponseRestrictionsUsersItem>;
teams: Array<ReposUpdateBranchProtectionResponseRestrictionsTeamsItem>;
};
type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = {
id: number;
node_id: string;
url: string;
name: string;
slug: string;
description: string;
privacy: string;
permission: string;
members_url: string;
repositories_url: string;
parent: null;
};
type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions = {
url: string;
users_url: string;
teams_url: string;
users: Array<
ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem
>;
teams: Array<
ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem
>;
};
type ReposUpdateBranchProtectionResponseRequiredPullRequestReviews = {
url: string;
dismissal_restrictions: ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions;
dismiss_stale_reviews: boolean;
require_code_owner_reviews: boolean;
required_approving_review_count: number;
};
type ReposUpdateBranchProtectionResponseEnforceAdmins = {
url: string;
enabled: boolean;
};
type ReposUpdateBranchProtectionResponseRequiredStatusChecks = {
url: string;
strict: boolean;
contexts: Array<string>;
contexts_url: string;
};
type ReposUpdateBranchProtectionResponse = {
url: string;
required_status_checks: ReposUpdateBranchProtectionResponseRequiredStatusChecks;
enforce_admins: ReposUpdateBranchProtectionResponseEnforceAdmins;
required_pull_request_reviews: ReposUpdateBranchProtectionResponseRequiredPullRequestReviews;
restrictions: ReposUpdateBranchProtectionResponseRestrictions;
};
type ReposUpdateResponseSourcePermissions = {
admin: boolean;
push: boolean;
pull: boolean;
};
type ReposUpdateResponseSourceOwner = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateResponseSource = {
id: number;
node_id: string;
name: string;
full_name: string;
owner: ReposUpdateResponseSourceOwner;
private: boolean;
html_url: string;
description: string;
fork: boolean;
url: string;
archive_url: string;
assignees_url: string;
blobs_url: string;
branches_url: string;
collaborators_url: string;
comments_url: string;
commits_url: string;
compare_url: string;
contents_url: string;
contributors_url: string;
deployments_url: string;
downloads_url: string;
events_url: string;
forks_url: string;
git_commits_url: string;
git_refs_url: string;
git_tags_url: string;
git_url: string;
issue_comment_url: string;
issue_events_url: string;
issues_url: string;
keys_url: string;
labels_url: string;
languages_url: string;
merges_url: string;
milestones_url: string;
notifications_url: string;
pulls_url: string;
releases_url: string;
ssh_url: string;
stargazers_url: string;
statuses_url: string;
subscribers_url: string;
subscription_url: string;
tags_url: string;
teams_url: string;
trees_url: string;
clone_url: string;
mirror_url: string;
hooks_url: string;
svn_url: string;
homepage: string;
language: null;
forks_count: number;
stargazers_count: number;
watchers_count: number;
size: number;
default_branch: string;
open_issues_count: number;
topics: Array<string>;
has_issues: boolean;
has_projects: boolean;
has_wiki: boolean;
has_pages: boolean;
has_downloads: boolean;
archived: boolean;
pushed_at: string;
created_at: string;
updated_at: string;
permissions: ReposUpdateResponseSourcePermissions;
allow_rebase_merge: boolean;
allow_squash_merge: boolean;
allow_merge_commit: boolean;
subscribers_count: number;
network_count: number;
};
type ReposUpdateResponseParentPermissions = {
admin: boolean;
push: boolean;
pull: boolean;
};
type ReposUpdateResponseParentOwner = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
};
type ReposUpdateResponseParent = {
id: number;
node_id: string;
name: string;
full_name: string;
owner: ReposUpdateResponseParentOwner;
private: boolean;
html_url: string;
description: string;
fork: boolean;
url: string;
archive_url: string;
assignees_url: string;
blobs_url: string;
branches_url: string;
collaborators_url: string;
comments_url: string;
commits_ur