diff --git a/tests/__snapshots__/extended.test.ts.snap b/tests/__snapshots__/extended.test.ts.snap index b0542e2a..791b8a96 100644 --- a/tests/__snapshots__/extended.test.ts.snap +++ b/tests/__snapshots__/extended.test.ts.snap @@ -42741,6 +42741,7497 @@ export class Api extends HttpClient 'github-swagger' 1`] = ` +"/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +/** A user or organization */ +export interface IMySuperPrefixActorMySuperSuffix { + avatar_url?: string; + bio?: string; + /** The website URL from the profile page */ + blog?: string; + collaborators?: number; + company?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + disk_usage?: number; + /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */ + email?: string; + followers?: number; + followers_url?: string; + following?: number; + following_url?: string; + gists_url?: string; + gravatar_id?: string; + hireable?: boolean; + html_url?: string; + id?: number; + location?: string; + /** The account username */ + login?: string; + /** The full account name */ + name?: string; + organizations_url?: string; + owned_private_repos?: number; + plan?: { + collaborators?: number; + name?: string; + private_repos?: number; + space?: number; + }; + private_gists?: number; + public_gists?: number; + public_repos?: number; + starred_url?: string; + subscriptions_url?: string; + total_private_repos?: number; + type?: IMySuperPrefixActorTypeEnumMySuperSuffix; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; +} + +export enum IMySuperPrefixActorTypeEnumMySuperSuffix { + User = "User", + Organization = "Organization", +} + +export interface IMySuperPrefixAssetMySuperSuffix { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + /** A GitHub user */ + uploader?: IMySuperPrefixUserMySuperSuffix; + url?: string; +} + +export interface IMySuperPrefixAssetPatchMySuperSuffix { + label?: string; + name: string; +} + +export type IMySuperPrefixAssetsMySuperSuffix = IMySuperPrefixAssetMySuperSuffix[]; + +export type IMySuperPrefixAssigneesDetail2DataMySuperSuffix = any; + +export type IMySuperPrefixAssigneesDetailDataMySuperSuffix = IMySuperPrefixAssigneesMySuperSuffix; + +export type IMySuperPrefixAssigneesMySuperSuffix = IMySuperPrefixUserMySuperSuffix[]; + +export enum IMySuperPrefixBlobEncodingEnumMySuperSuffix { + Utf8 = "utf-8", + Base64 = "base64", +} + +export interface IMySuperPrefixBlobMySuperSuffix { + content?: string; + encoding?: IMySuperPrefixBlobEncodingEnumMySuperSuffix; + sha?: string; + size?: number; +} + +export interface IMySuperPrefixBlobsMySuperSuffix { + sha?: string; +} + +export interface IMySuperPrefixBranchMySuperSuffix { + _links?: { + html?: string; + self?: string; + }; + commit?: { + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + commit?: { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: IMySuperPrefixUserMySuperSuffix; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }; + name?: string; +} + +export type IMySuperPrefixBranchesDetail2DataMySuperSuffix = IMySuperPrefixBranchMySuperSuffix; + +export type IMySuperPrefixBranchesDetailDataMySuperSuffix = IMySuperPrefixBranchesMySuperSuffix; + +export type IMySuperPrefixBranchesMySuperSuffix = { + commit?: { + sha?: string; + url?: string; + }; + name?: string; +}[]; + +export type IMySuperPrefixCodeFrequencyStatsMySuperSuffix = number[]; + +export type IMySuperPrefixCodeListDataMySuperSuffix = IMySuperPrefixSearchCodeMySuperSuffix; + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixCodeListParams1OrderEnumMySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** + * Can only be 'indexed', which indicates how recently a file has been indexed + * by the GitHub search infrastructure. If not provided, results are sorted + * by best match. + */ +export enum IMySuperPrefixCodeListParams1SortEnumMySuperSuffix { + Indexed = "indexed", +} + +export interface IMySuperPrefixCodeListParamsMySuperSuffix { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: IMySuperPrefixOrderEnum2MySuperSuffix; + /** + * The search terms. This can be any combination of the supported code + * search parameters: + * 'Search In' Qualifies which fields are searched. With this qualifier + * you can restrict the search to just the file contents, the file path, + * or both. + * 'Languages' Searches code based on the language it's written in. + * 'Forks' Filters repositories based on the number of forks, and/or + * whether code from forked repositories should be included in the results + * at all. + * 'Size' Finds files that match a certain size (in bytes). + * 'Path' Specifies the path that the resulting file must be at. + * 'Extension' Matches files with a certain extension. + * 'Users' or 'Repositories' Limits searches to a specific user or repository. + */ + q: string; + /** + * Can only be 'indexed', which indicates how recently a file has been indexed + * by the GitHub search infrastructure. If not provided, results are sorted + * by best match. + */ + sort?: IMySuperPrefixSortEnum9MySuperSuffix; +} + +export type IMySuperPrefixCollaboratorsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixCollaboratorsDetail2DataMySuperSuffix = any; + +export type IMySuperPrefixCollaboratorsDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixCollaboratorsUpdateDataMySuperSuffix = any; + +export interface IMySuperPrefixCommentBodyMySuperSuffix { + body: string; +} + +export interface IMySuperPrefixCommentMySuperSuffix { + body?: string; +} + +export type IMySuperPrefixCommentsCreateDataMySuperSuffix = IMySuperPrefixCommentMySuperSuffix; + +export type IMySuperPrefixCommentsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixCommentsDeleteResultMySuperSuffix = any; + +export type IMySuperPrefixCommentsDetail2DataMySuperSuffix = IMySuperPrefixCommentMySuperSuffix; + +export type IMySuperPrefixCommentsDetail2ResultMySuperSuffix = IMySuperPrefixCommitCommentMySuperSuffix; + +export type IMySuperPrefixCommentsDetailDataMySuperSuffix = IMySuperPrefixCommentsMySuperSuffix; + +export type IMySuperPrefixCommentsDetailResultMySuperSuffix = IMySuperPrefixRepoCommentsMySuperSuffix; + +export type IMySuperPrefixCommentsMySuperSuffix = { + body?: string; + /** ISO 8601. */ + created_at?: string; + id?: number; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +}[]; + +export type IMySuperPrefixCommentsPartialUpdateDataMySuperSuffix = IMySuperPrefixCommentMySuperSuffix; + +export type IMySuperPrefixCommentsPartialUpdateResultMySuperSuffix = IMySuperPrefixCommitCommentMySuperSuffix; + +export type IMySuperPrefixCommitActivityStatsMySuperSuffix = { + days?: number[]; + total?: number; + week?: number; +}[]; + +export interface IMySuperPrefixCommitCommentBodyMySuperSuffix { + body: string; + /** Deprecated - Use position parameter instead. */ + line?: string; + /** Line number in the file to comment on. Defaults to null. */ + number?: string; + /** Relative path of the file to comment on. */ + path?: string; + /** Line index in the diff to comment on. */ + position?: number; + /** SHA of the commit to comment on. */ + sha: string; +} + +export interface IMySuperPrefixCommitCommentMySuperSuffix { + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + line?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +} + +export interface IMySuperPrefixCommitMySuperSuffix { + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + commit?: { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: IMySuperPrefixUserMySuperSuffix; + files?: { + additions?: number; + blob_url?: string; + changes?: number; + deletions?: number; + filename?: string; + patch?: string; + raw_url?: string; + status?: string; + }[]; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + stats?: { + additions?: number; + deletions?: number; + total?: number; + }; + url?: string; +} + +export type IMySuperPrefixCommitsCommentsCreateDataMySuperSuffix = IMySuperPrefixCommitCommentMySuperSuffix; + +export type IMySuperPrefixCommitsCommentsDetailDataMySuperSuffix = IMySuperPrefixRepoCommentsMySuperSuffix; + +export type IMySuperPrefixCommitsDetail2DataMySuperSuffix = IMySuperPrefixCommitMySuperSuffix; + +export type IMySuperPrefixCommitsDetailDataMySuperSuffix = IMySuperPrefixCommitsMySuperSuffix; + +export interface IMySuperPrefixCommitsDetailParamsMySuperSuffix { + /** GitHub login, name, or email by which to filter by commit author. */ + author?: string; + /** Name of repository owner. */ + owner: string; + /** Only commits containing this file path will be returned. */ + path?: string; + /** Name of repository. */ + repo: string; + /** Sha or branch to start listing commits from. */ + sha?: string; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + /** ISO 8601 Date - Only commits before this date will be returned. */ + until?: string; +} + +export type IMySuperPrefixCommitsMySuperSuffix = { + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + commit?: { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: IMySuperPrefixUserMySuperSuffix; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; +}[]; + +export type IMySuperPrefixCommitsStatusDetailDataMySuperSuffix = IMySuperPrefixRefStatusMySuperSuffix; + +export interface IMySuperPrefixCompareCommitsMySuperSuffix { + ahead_by?: number; + base_commit?: { + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: IMySuperPrefixUserMySuperSuffix; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }; + behind_by?: number; + commits?: { + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: IMySuperPrefixUserMySuperSuffix; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }[]; + diff_url?: string; + files?: { + additions?: number; + blob_url?: string; + changes?: number; + contents_url?: string; + deletions?: number; + filename?: string; + patch?: string; + raw_url?: string; + sha?: string; + status?: string; + }[]; + html_url?: string; + patch_url?: string; + permalink_url?: string; + status?: string; + total_commits?: number; + url?: string; +} + +export type IMySuperPrefixCompareDetailDataMySuperSuffix = IMySuperPrefixCompareCommitsMySuperSuffix; + +export type IMySuperPrefixContentsDeleteDataMySuperSuffix = IMySuperPrefixDeleteFileMySuperSuffix; + +export type IMySuperPrefixContentsDetailDataMySuperSuffix = IMySuperPrefixContentsPathMySuperSuffix; + +export interface IMySuperPrefixContentsDetailParamsMySuperSuffix { + /** Name of repository owner. */ + owner: string; + path: string; + /** The String name of the Commit/Branch/Tag. Defaults to 'master'. */ + ref?: string; + /** Name of repository. */ + repo: string; +} + +export interface IMySuperPrefixContentsPathMySuperSuffix { + _links?: { + git?: string; + html?: string; + self?: string; + }; + content?: string; + encoding?: string; + git_url?: string; + html_url?: string; + name?: string; + path?: string; + sha?: string; + size?: number; + type?: string; + url?: string; +} + +export type IMySuperPrefixContentsUpdateDataMySuperSuffix = IMySuperPrefixCreateFileMySuperSuffix; + +export type IMySuperPrefixContributorsDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export interface IMySuperPrefixContributorsDetailParamsMySuperSuffix { + /** Set to 1 or true to include anonymous contributors in results. */ + anon: string; + /** Name of repository owner. */ + owner: string; + /** Name of repository. */ + repo: string; +} + +export type IMySuperPrefixContributorsStatsMySuperSuffix = { + author?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + /** The Total number of commits authored by the contributor. */ + total?: number; + weeks?: { + /** Number of additions. */ + a?: number; + /** Number of commits. */ + c?: number; + /** Number of deletions. */ + d?: number; + /** Start of the week. */ + w?: string; + }[]; +}[]; + +export interface IMySuperPrefixCreateFileBodyMySuperSuffix { + committer?: { + email?: string; + name?: string; + }; + content?: string; + message?: string; +} + +export interface IMySuperPrefixCreateFileMySuperSuffix { + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + html_url?: string; + message?: string; + parents?: { + html_url?: string; + sha?: string; + url?: string; + }[]; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + content?: { + _links?: { + git?: string; + html?: string; + self?: string; + }; + git_url?: string; + html_url?: string; + name?: string; + path?: string; + sha?: string; + size?: number; + type?: string; + url?: string; + }; +} + +export interface IMySuperPrefixDeleteFileBodyMySuperSuffix { + committer?: { + email?: string; + name?: string; + }; + message?: string; + sha?: string; +} + +export interface IMySuperPrefixDeleteFileMySuperSuffix { + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + html_url?: string; + message?: string; + parents?: { + html_url?: string; + sha?: string; + url?: string; + }; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + content?: string; +} + +export interface IMySuperPrefixDeploymentMySuperSuffix { + description?: string; + payload?: { + deploy_user?: string; + environment?: string; + room_id?: number; + }; + ref?: string; +} + +export interface IMySuperPrefixDeploymentRespMySuperSuffix { + created_at?: string; + /** A GitHub user */ + creator?: IMySuperPrefixUserMySuperSuffix; + description?: string; + id?: number; + payload?: string; + sha?: string; + statuses_url?: string; + updated_at?: string; + url?: string; +} + +export interface IMySuperPrefixDeploymentStatusesCreateMySuperSuffix { + description?: string; + state?: string; + target_url?: string; +} + +export type IMySuperPrefixDeploymentStatusesMySuperSuffix = { + created_at?: string; + /** A GitHub user */ + creator?: IMySuperPrefixUserMySuperSuffix; + description?: string; + id?: number; + payload?: string; + state?: string; + target_url?: string; + updated_at?: string; + url?: string; +}[]; + +export type IMySuperPrefixDeploymentsCreateDataMySuperSuffix = IMySuperPrefixDeploymentRespMySuperSuffix; + +export type IMySuperPrefixDeploymentsDetailDataMySuperSuffix = IMySuperPrefixRepoDeploymentsMySuperSuffix; + +export type IMySuperPrefixDeploymentsStatusesCreateDataMySuperSuffix = any; + +export type IMySuperPrefixDeploymentsStatusesDetailDataMySuperSuffix = IMySuperPrefixDeploymentStatusesMySuperSuffix; + +/** @default "desc" */ +export enum IMySuperPrefixDirectionEnum1MySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +/** @default "desc" */ +export enum IMySuperPrefixDirectionEnum2MySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +/** @default "desc" */ +export enum IMySuperPrefixDirectionEnum3MySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +/** @default "desc" */ +export enum IMySuperPrefixDirectionEnumMySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +export interface IMySuperPrefixDownloadMySuperSuffix { + content_type?: string; + description?: string; + download_count?: number; + html_url?: string; + id?: number; + name?: string; + size?: number; + url?: string; +} + +export type IMySuperPrefixDownloadsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixDownloadsDetail2DataMySuperSuffix = IMySuperPrefixDownloadMySuperSuffix; + +export type IMySuperPrefixDownloadsDetailDataMySuperSuffix = IMySuperPrefixDownloadsMySuperSuffix; + +export type IMySuperPrefixDownloadsMySuperSuffix = IMySuperPrefixDownloadMySuperSuffix[]; + +export interface IMySuperPrefixEditTeamMySuperSuffix { + name: string; + permission?: IMySuperPrefixEditTeamPermissionEnumMySuperSuffix; +} + +export enum IMySuperPrefixEditTeamPermissionEnumMySuperSuffix { + Pull = "pull", + Push = "push", + Admin = "admin", +} + +export type IMySuperPrefixEmailsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixEmailsListDataMySuperSuffix = IMySuperPrefixUserEmailsMySuperSuffix; + +export type IMySuperPrefixEmailsPostMySuperSuffix = string[]; + +export type IMySuperPrefixEmojisListDataMySuperSuffix = IMySuperPrefixEmojisMySuperSuffix; + +export type IMySuperPrefixEmojisMySuperSuffix = Record; + +export interface IMySuperPrefixEventMySuperSuffix { + /** A user or organization */ + actor?: IMySuperPrefixActorMySuperSuffix; + created_at?: object; + id?: number; + /** A GitHub organization */ + org?: IMySuperPrefixOrganizationMySuperSuffix; + payload?: object; + public?: boolean; + repo?: { + id?: number; + name?: string; + url?: string; + }; + type?: string; +} + +export type IMySuperPrefixEventsDetailDataMySuperSuffix = IMySuperPrefixEventsMySuperSuffix; + +export type IMySuperPrefixEventsDetailOutputMySuperSuffix = IMySuperPrefixEventsMySuperSuffix; + +export type IMySuperPrefixEventsDetailResultMySuperSuffix = IMySuperPrefixEventsMySuperSuffix; + +export type IMySuperPrefixEventsListDataMySuperSuffix = IMySuperPrefixEventsMySuperSuffix; + +export type IMySuperPrefixEventsMySuperSuffix = IMySuperPrefixEventMySuperSuffix[]; + +export type IMySuperPrefixFeedsListDataMySuperSuffix = IMySuperPrefixFeedsMySuperSuffix; + +export interface IMySuperPrefixFeedsMySuperSuffix { + _links?: { + current_user?: { + href?: string; + type?: string; + }; + current_user_actor?: { + href?: string; + type?: string; + }; + current_user_organization?: { + href?: string; + type?: string; + }; + current_user_public?: { + href?: string; + type?: string; + }; + timeline?: { + href?: string; + type?: string; + }; + user?: { + href?: string; + type?: string; + }; + }; + current_user_actor_url?: string; + current_user_organization_url?: string; + current_user_public?: string; + current_user_url?: string; + timeline_url?: string; + user_url?: string; +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixFilterEnum1MySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixFilterEnum2MySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixFilterEnum3MySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixFilterEnumMySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +export type IMySuperPrefixFollowersDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixFollowersListDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixFollowingDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixFollowingDetailDataMySuperSuffix = any; + +export type IMySuperPrefixFollowingDetailResultMySuperSuffix = any; + +export type IMySuperPrefixFollowingListDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixFollowingUpdateDataMySuperSuffix = any; + +export interface IMySuperPrefixForkBodyMySuperSuffix { + organization?: string; +} + +export type IMySuperPrefixForksCreateDataMySuperSuffix = any; + +export type IMySuperPrefixForksCreateResultMySuperSuffix = IMySuperPrefixRepoMySuperSuffix; + +export type IMySuperPrefixForksDetailDataMySuperSuffix = IMySuperPrefixForksMySuperSuffix; + +/** @default "newes" */ +export enum IMySuperPrefixForksDetailParams1SortEnumMySuperSuffix { + Newes = "newes", + Oldes = "oldes", + Watchers = "watchers", +} + +export interface IMySuperPrefixForksDetailParamsMySuperSuffix { + /** Name of repository owner. */ + owner: string; + /** Name of repository. */ + repo: string; + /** @default "newes" */ + sort?: IMySuperPrefixSortEnum4MySuperSuffix; +} + +export type IMySuperPrefixForksMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export interface IMySuperPrefixGistMySuperSuffix { + comments?: number; + comments_url?: string; + /** Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. */ + created_at?: string; + description?: string; + files?: { + "ring.erl"?: { + filename?: string; + raw_url?: string; + size?: number; + }; + }; + forks?: { + /** Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. */ + created_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; + }[]; + git_pull_url?: string; + git_push_url?: string; + history?: { + change_status?: { + additions?: number; + deletions?: number; + total?: number; + }; + /** Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. */ + committed_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; + version?: string; + }[]; + html_url?: string; + id?: string; + public?: boolean; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +} + +export type IMySuperPrefixGistsCreateDataMySuperSuffix = IMySuperPrefixGistMySuperSuffix; + +export type IMySuperPrefixGistsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixGistsDetailDataMySuperSuffix = IMySuperPrefixGistMySuperSuffix; + +export interface IMySuperPrefixGistsDetailParams1MySuperSuffix { + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + /** Name of user. */ + username: string; +} + +export type IMySuperPrefixGistsDetailResultMySuperSuffix = IMySuperPrefixGistsMySuperSuffix; + +export type IMySuperPrefixGistsListDataMySuperSuffix = IMySuperPrefixGistsMySuperSuffix; + +export interface IMySuperPrefixGistsListParamsMySuperSuffix { + /** + * Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. + * Only gists updated at or after this time are returned. + */ + since?: string; +} + +export type IMySuperPrefixGistsMySuperSuffix = { + comments?: number; + comments_url?: string; + created_at?: string; + description?: string; + files?: { + "ring.erl"?: { + filename?: string; + raw_url?: string; + size?: number; + }; + }; + git_pull_url?: string; + git_push_url?: string; + html_url?: string; + id?: string; + public?: boolean; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +}[]; + +export type IMySuperPrefixGistsPartialUpdateDataMySuperSuffix = IMySuperPrefixGistMySuperSuffix; + +export type IMySuperPrefixGitBlobsCreateDataMySuperSuffix = IMySuperPrefixBlobsMySuperSuffix; + +export type IMySuperPrefixGitBlobsDetailDataMySuperSuffix = IMySuperPrefixBlobMySuperSuffix; + +export interface IMySuperPrefixGitCommitMySuperSuffix { + author?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + parents?: string; + tree?: string; +} + +export type IMySuperPrefixGitCommitsCreateDataMySuperSuffix = IMySuperPrefixGitCommitMySuperSuffix; + +export type IMySuperPrefixGitCommitsDetailDataMySuperSuffix = IMySuperPrefixRepoCommitMySuperSuffix; + +export interface IMySuperPrefixGitRefPatchMySuperSuffix { + force?: boolean; + sha?: string; +} + +export type IMySuperPrefixGitRefsCreateDataMySuperSuffix = IMySuperPrefixHeadBranchMySuperSuffix; + +export type IMySuperPrefixGitRefsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixGitRefsDetail2DataMySuperSuffix = IMySuperPrefixHeadBranchMySuperSuffix; + +export type IMySuperPrefixGitRefsDetailDataMySuperSuffix = IMySuperPrefixRefsMySuperSuffix; + +export type IMySuperPrefixGitRefsPartialUpdateDataMySuperSuffix = IMySuperPrefixHeadBranchMySuperSuffix; + +export type IMySuperPrefixGitTagsCreateDataMySuperSuffix = IMySuperPrefixTagMySuperSuffix; + +export type IMySuperPrefixGitTagsDetailDataMySuperSuffix = IMySuperPrefixTagMySuperSuffix; + +export type IMySuperPrefixGitTreesCreateDataMySuperSuffix = IMySuperPrefixTreesMySuperSuffix; + +export type IMySuperPrefixGitTreesDetailDataMySuperSuffix = IMySuperPrefixTreeMySuperSuffix; + +export interface IMySuperPrefixGitTreesDetailParamsMySuperSuffix { + /** Name of repository owner. */ + owner: string; + /** Get a Tree Recursively. (0 or 1) */ + recursive?: number; + /** Name of repository. */ + repo: string; + /** Tree SHA. */ + shaCode: string; +} + +export interface IMySuperPrefixGitignoreLangMySuperSuffix { + name?: string; + source?: string; +} + +export type IMySuperPrefixGitignoreMySuperSuffix = any[]; + +export interface IMySuperPrefixHeadBranchMySuperSuffix { + object?: { + sha?: string; + type?: string; + url?: string; + }; + ref?: string; + url?: string; +} + +export interface IMySuperPrefixHookBodyMySuperSuffix { + active?: boolean; + add_events?: string[]; +} + +export enum IMySuperPrefixHookEventsEnumMySuperSuffix { + Push = "push", + Issues = "issues", + IssueComment = "issue_comment", + CommitComment = "commit_comment", + PullRequest = "pull_request", + PullRequestReviewComment = "pull_request_review_comment", + Gollum = "gollum", + Watch = "watch", + Download = "download", + Fork = "fork", + ForkApply = "fork_apply", + Member = "member", + Public = "public", + TeamAdd = "team_add", + Status = "status", +} + +export type IMySuperPrefixHookMySuperSuffix = { + active?: boolean; + config?: { + content_type?: string; + url?: string; + }; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + events?: IMySuperPrefixHookEventsEnumMySuperSuffix[]; + id?: number; + name?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; +}[]; + +export type IMySuperPrefixHooksCreateDataMySuperSuffix = IMySuperPrefixHookMySuperSuffix; + +export type IMySuperPrefixHooksDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixHooksDetail2DataMySuperSuffix = IMySuperPrefixHookMySuperSuffix; + +export type IMySuperPrefixHooksDetailDataMySuperSuffix = IMySuperPrefixHookMySuperSuffix; + +export type IMySuperPrefixHooksPartialUpdateDataMySuperSuffix = IMySuperPrefixHookMySuperSuffix; + +export type IMySuperPrefixHooksTestsCreateDataMySuperSuffix = any; + +export interface IMySuperPrefixIssueEventMySuperSuffix { + /** A user or organization */ + actor?: IMySuperPrefixActorMySuperSuffix; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + event?: string; + issue?: { + /** A GitHub user */ + assignee?: IMySuperPrefixUserMySuperSuffix; + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + closed_at?: string; + comments?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + milestone?: { + closed_issues?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + /** A GitHub user */ + creator?: IMySuperPrefixUserMySuperSuffix; + description?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + due_on?: string; + number?: number; + open_issues?: number; + state?: IMySuperPrefixIssueEventStateEnumMySuperSuffix; + title?: string; + url?: string; + }; + number?: number; + pull_request?: { + diff_url?: string; + html_url?: string; + patch_url?: string; + }; + state?: IMySuperPrefixIssueEventStateEnum1MySuperSuffix; + title?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; + }; + url?: string; +} + +export enum IMySuperPrefixIssueEventStateEnum1MySuperSuffix { + Open = "open", + Closed = "closed", +} + +export enum IMySuperPrefixIssueEventStateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export type IMySuperPrefixIssueEventsMySuperSuffix = IMySuperPrefixIssueEventMySuperSuffix[]; + +export interface IMySuperPrefixIssueMySuperSuffix { + assignee?: string; + body?: string; + labels?: string[]; + milestone?: number; + title?: string; +} + +export interface IMySuperPrefixIssuesCommentMySuperSuffix { + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +} + +export type IMySuperPrefixIssuesCommentsCreateDataMySuperSuffix = IMySuperPrefixIssuesCommentMySuperSuffix; + +export type IMySuperPrefixIssuesCommentsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixIssuesCommentsDetail2DataMySuperSuffix = IMySuperPrefixIssuesCommentMySuperSuffix; + +export type IMySuperPrefixIssuesCommentsDetail3DataMySuperSuffix = IMySuperPrefixIssuesCommentsMySuperSuffix; + +export type IMySuperPrefixIssuesCommentsDetailDataMySuperSuffix = IMySuperPrefixIssuesCommentsMySuperSuffix; + +export enum IMySuperPrefixIssuesCommentsDetailParams1SortEnumMySuperSuffix { + Created = "created", + Updated = "updated", +} + +export interface IMySuperPrefixIssuesCommentsDetailParamsMySuperSuffix { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** Name of repository owner. */ + owner: string; + /** Name of repository. */ + repo: string; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + sort?: IMySuperPrefixSortEnum6MySuperSuffix; +} + +export type IMySuperPrefixIssuesCommentsMySuperSuffix = { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + id?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +}[]; + +export type IMySuperPrefixIssuesCommentsPartialUpdateDataMySuperSuffix = IMySuperPrefixIssuesCommentMySuperSuffix; + +export type IMySuperPrefixIssuesCreateDataMySuperSuffix = IMySuperPrefixIssueMySuperSuffix; + +export type IMySuperPrefixIssuesDetail2DataMySuperSuffix = IMySuperPrefixIssueMySuperSuffix; + +export type IMySuperPrefixIssuesDetailDataMySuperSuffix = IMySuperPrefixIssuesMySuperSuffix; + +/** @default "desc" */ +export enum IMySuperPrefixIssuesDetailParams1DirectionEnumMySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixIssuesDetailParams1FilterEnumMySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +/** @default "created" */ +export enum IMySuperPrefixIssuesDetailParams1SortEnumMySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +/** @default "open" */ +export enum IMySuperPrefixIssuesDetailParams1StateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixIssuesDetailParams2MySuperSuffix { + /** @default "desc" */ + direction: IMySuperPrefixDirectionEnum2MySuperSuffix; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: IMySuperPrefixFilterEnum2MySuperSuffix; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** Name of repository owner. */ + owner: string; + /** Name of repository. */ + repo: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: IMySuperPrefixSortEnum5MySuperSuffix; + /** @default "open" */ + state: IMySuperPrefixStateEnum2MySuperSuffix; +} + +/** @default "desc" */ +export enum IMySuperPrefixIssuesDetailParams3DirectionEnumMySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixIssuesDetailParams3FilterEnumMySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +/** @default "created" */ +export enum IMySuperPrefixIssuesDetailParams3SortEnumMySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +/** @default "open" */ +export enum IMySuperPrefixIssuesDetailParams3StateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixIssuesDetailParamsMySuperSuffix { + /** @default "desc" */ + direction: IMySuperPrefixDirectionEnum1MySuperSuffix; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: IMySuperPrefixFilterEnum1MySuperSuffix; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** Name of organisation. */ + org: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: IMySuperPrefixSortEnum3MySuperSuffix; + /** @default "open" */ + state: IMySuperPrefixStateEnum1MySuperSuffix; +} + +export type IMySuperPrefixIssuesDetailResultMySuperSuffix = IMySuperPrefixIssuesMySuperSuffix; + +export type IMySuperPrefixIssuesEventsDetail2DataMySuperSuffix = IMySuperPrefixIssueEventMySuperSuffix; + +export type IMySuperPrefixIssuesEventsDetail3DataMySuperSuffix = IMySuperPrefixIssueEventsMySuperSuffix; + +export type IMySuperPrefixIssuesEventsDetailDataMySuperSuffix = IMySuperPrefixIssueEventsMySuperSuffix; + +export type IMySuperPrefixIssuesLabelsCreateDataMySuperSuffix = IMySuperPrefixLabelMySuperSuffix; + +export type IMySuperPrefixIssuesLabelsDelete2DataMySuperSuffix = any; + +export type IMySuperPrefixIssuesLabelsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixIssuesLabelsDetailDataMySuperSuffix = IMySuperPrefixLabelsMySuperSuffix; + +export type IMySuperPrefixIssuesLabelsUpdateDataMySuperSuffix = IMySuperPrefixLabelMySuperSuffix; + +export type IMySuperPrefixIssuesListDataMySuperSuffix = IMySuperPrefixIssuesMySuperSuffix; + +export type IMySuperPrefixIssuesListOutputMySuperSuffix = IMySuperPrefixIssuesMySuperSuffix; + +/** @default "desc" */ +export enum IMySuperPrefixIssuesListParams1DirectionEnumMySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixIssuesListParams1FilterEnumMySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +/** @default "created" */ +export enum IMySuperPrefixIssuesListParams1SortEnumMySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +/** @default "open" */ +export enum IMySuperPrefixIssuesListParams1StateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixIssuesListParams2MySuperSuffix { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: IMySuperPrefixOrderEnum3MySuperSuffix; + /** The q search term can also contain any combination of the supported issue search qualifiers: */ + q: string; + /** The sort field. Can be comments, created, or updated. Default: results are sorted by best match. */ + sort?: IMySuperPrefixSortEnum10MySuperSuffix; +} + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixIssuesListParams3OrderEnumMySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** The sort field. Can be comments, created, or updated. Default: results are sorted by best match. */ +export enum IMySuperPrefixIssuesListParams3SortEnumMySuperSuffix { + Updated = "updated", + Created = "created", + Comments = "comments", +} + +export interface IMySuperPrefixIssuesListParams4MySuperSuffix { + /** @default "desc" */ + direction: IMySuperPrefixDirectionEnum3MySuperSuffix; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: IMySuperPrefixFilterEnum3MySuperSuffix; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: IMySuperPrefixSortEnum13MySuperSuffix; + /** @default "open" */ + state: IMySuperPrefixStateEnum5MySuperSuffix; +} + +/** @default "desc" */ +export enum IMySuperPrefixIssuesListParams5DirectionEnumMySuperSuffix { + Asc = "asc", + Desc = "desc", +} + +/** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ +export enum IMySuperPrefixIssuesListParams5FilterEnumMySuperSuffix { + Assigned = "assigned", + Created = "created", + Mentioned = "mentioned", + Subscribed = "subscribed", + All = "all", +} + +/** @default "created" */ +export enum IMySuperPrefixIssuesListParams5SortEnumMySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +/** @default "open" */ +export enum IMySuperPrefixIssuesListParams5StateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixIssuesListParamsMySuperSuffix { + /** @default "desc" */ + direction: IMySuperPrefixDirectionEnumMySuperSuffix; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: IMySuperPrefixFilterEnumMySuperSuffix; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: IMySuperPrefixSortEnumMySuperSuffix; + /** @default "open" */ + state: IMySuperPrefixStateEnumMySuperSuffix; +} + +export type IMySuperPrefixIssuesListResultMySuperSuffix = IMySuperPrefixSearchIssuesMySuperSuffix; + +export type IMySuperPrefixIssuesMySuperSuffix = { + /** A GitHub user */ + assignee?: IMySuperPrefixUserMySuperSuffix; + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + closed_at?: string; + comments?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + milestone?: { + closed_issues?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + /** A GitHub user */ + creator?: IMySuperPrefixUserMySuperSuffix; + description?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + due_on?: string; + number?: number; + open_issues?: number; + state?: IMySuperPrefixIssuesStateEnumMySuperSuffix; + title?: string; + url?: string; + }; + number?: number; + pull_request?: { + diff_url?: string; + html_url?: string; + patch_url?: string; + }; + state?: IMySuperPrefixIssuesStateEnum1MySuperSuffix; + title?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +}[]; + +export type IMySuperPrefixIssuesPartialUpdateDataMySuperSuffix = IMySuperPrefixIssueMySuperSuffix; + +export type IMySuperPrefixIssuesSearchDetailDataMySuperSuffix = IMySuperPrefixSearchIssuesByKeywordMySuperSuffix; + +export enum IMySuperPrefixIssuesSearchDetailParamsEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +/** Indicates the state of the issues to return. Can be either open or closed. */ +export enum IMySuperPrefixIssuesSearchDetailParamsStateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export enum IMySuperPrefixIssuesStateEnum1MySuperSuffix { + Open = "open", + Closed = "closed", +} + +export enum IMySuperPrefixIssuesStateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export type IMySuperPrefixKeysCreateDataMySuperSuffix = IMySuperPrefixUserKeysKeyIdMySuperSuffix; + +export type IMySuperPrefixKeysCreateResultMySuperSuffix = IMySuperPrefixUserKeysKeyIdMySuperSuffix; + +export type IMySuperPrefixKeysDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixKeysDeleteResultMySuperSuffix = any; + +export type IMySuperPrefixKeysDetail2DataMySuperSuffix = IMySuperPrefixUserKeysKeyIdMySuperSuffix; + +export type IMySuperPrefixKeysDetailDataMySuperSuffix = IMySuperPrefixKeysMySuperSuffix; + +export type IMySuperPrefixKeysDetailOutputMySuperSuffix = IMySuperPrefixGitignoreMySuperSuffix; + +export type IMySuperPrefixKeysDetailResultMySuperSuffix = IMySuperPrefixUserKeysKeyIdMySuperSuffix; + +export type IMySuperPrefixKeysListDataMySuperSuffix = IMySuperPrefixGitignoreMySuperSuffix; + +export type IMySuperPrefixKeysMySuperSuffix = { + id?: number; + key?: string; + title?: string; + url?: string; +}[]; + +export interface IMySuperPrefixLabelMySuperSuffix { + /** + * @minLength 6 + * @maxLength 6 + */ + color?: string; + name?: string; + url?: string; +} + +export type IMySuperPrefixLabelsCreateDataMySuperSuffix = IMySuperPrefixLabelMySuperSuffix; + +export type IMySuperPrefixLabelsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixLabelsDetail2DataMySuperSuffix = IMySuperPrefixLabelMySuperSuffix; + +export type IMySuperPrefixLabelsDetailDataMySuperSuffix = IMySuperPrefixLabelsMySuperSuffix; + +export type IMySuperPrefixLabelsMySuperSuffix = { + /** + * @minLength 6 + * @maxLength 6 + */ + color?: string; + name?: string; + url?: string; +}[]; + +export type IMySuperPrefixLabelsPartialUpdateDataMySuperSuffix = IMySuperPrefixLabelMySuperSuffix; + +export type IMySuperPrefixLanguagesDetailDataMySuperSuffix = IMySuperPrefixLanguagesMySuperSuffix; + +export type IMySuperPrefixLanguagesMySuperSuffix = Record; + +export type IMySuperPrefixMarkdownCreateDataMySuperSuffix = any; + +export interface IMySuperPrefixMarkdownMySuperSuffix { + context?: string; + mode?: string; + text?: string; +} + +export type IMySuperPrefixMembersDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixMembersDeleteResultMySuperSuffix = any; + +export type IMySuperPrefixMembersDetail2DataMySuperSuffix = any; + +export type IMySuperPrefixMembersDetail2ResultMySuperSuffix = any; + +export type IMySuperPrefixMembersDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixMembersDetailResultMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixMembersUpdateDataMySuperSuffix = any; + +export type IMySuperPrefixMembersUpdateErrorMySuperSuffix = IMySuperPrefixOrganizationAsTeamMemberMySuperSuffix; + +export type IMySuperPrefixMembershipsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixMembershipsDetailDataMySuperSuffix = IMySuperPrefixTeamMembershipMySuperSuffix; + +export type IMySuperPrefixMembershipsUpdateDataMySuperSuffix = IMySuperPrefixTeamMembershipMySuperSuffix; + +export type IMySuperPrefixMembershipsUpdateErrorMySuperSuffix = IMySuperPrefixOrganizationAsTeamMemberMySuperSuffix; + +export interface IMySuperPrefixMergeMySuperSuffix { + merged?: boolean; + message?: string; + sha?: string; +} + +export interface IMySuperPrefixMergePullBodyMySuperSuffix { + commit_message?: string; +} + +export interface IMySuperPrefixMergesBodyMySuperSuffix { + base?: string; + commit_message?: string; + head?: string; +} + +export interface IMySuperPrefixMergesConflictMySuperSuffix { + /** Error message */ + message?: string; +} + +export type IMySuperPrefixMergesCreateDataMySuperSuffix = IMySuperPrefixMergesSuccessfulMySuperSuffix; + +export type IMySuperPrefixMergesCreateErrorMySuperSuffix = IMySuperPrefixMergesConflictMySuperSuffix; + +export interface IMySuperPrefixMergesSuccessfulMySuperSuffix { + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + comments_url?: string; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + comment_count?: number; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: IMySuperPrefixUserMySuperSuffix; + merged?: boolean; + message?: string; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; +} + +export type IMySuperPrefixMetaListDataMySuperSuffix = IMySuperPrefixMetaMySuperSuffix; + +export interface IMySuperPrefixMetaMySuperSuffix { + git?: string[]; + hooks?: string[]; +} + +export interface IMySuperPrefixMilestoneMySuperSuffix { + closed_issues?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + /** A GitHub user */ + creator?: IMySuperPrefixUserMySuperSuffix; + description?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + due_on?: string; + number?: number; + open_issues?: number; + state?: IMySuperPrefixMilestoneStateEnumMySuperSuffix; + title?: string; + url?: string; +} + +export enum IMySuperPrefixMilestoneStateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixMilestoneUpdateMySuperSuffix { + description?: string; + due_on?: string; + state?: string; + title?: string; +} + +export type IMySuperPrefixMilestonesCreateDataMySuperSuffix = IMySuperPrefixMilestoneMySuperSuffix; + +export type IMySuperPrefixMilestonesDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixMilestonesDetail2DataMySuperSuffix = IMySuperPrefixMilestoneMySuperSuffix; + +export type IMySuperPrefixMilestonesDetailDataMySuperSuffix = IMySuperPrefixMilestoneMySuperSuffix; + +/** @default "due_date" */ +export enum IMySuperPrefixMilestonesDetailParams1SortEnumMySuperSuffix { + DueDate = "due_date", + Completeness = "completeness", +} + +/** + * String to filter by state. + * @default "open" + */ +export enum IMySuperPrefixMilestonesDetailParams1StateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixMilestonesDetailParamsMySuperSuffix { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** Name of repository owner. */ + owner: string; + /** Name of repository. */ + repo: string; + /** @default "due_date" */ + sort?: IMySuperPrefixSortEnum7MySuperSuffix; + /** + * String to filter by state. + * @default "open" + */ + state?: IMySuperPrefixStateEnum3MySuperSuffix; +} + +export type IMySuperPrefixMilestonesLabelsDetailDataMySuperSuffix = IMySuperPrefixLabelsMySuperSuffix; + +export type IMySuperPrefixMilestonesPartialUpdateDataMySuperSuffix = IMySuperPrefixMilestoneMySuperSuffix; + +export interface IMySuperPrefixNotificationMarkReadMySuperSuffix { + last_read_at?: string; +} + +export type IMySuperPrefixNotificationsDetailDataMySuperSuffix = IMySuperPrefixNotificationsMySuperSuffix; + +export interface IMySuperPrefixNotificationsDetailParamsMySuperSuffix { + /** True to show notifications marked as read. */ + all?: boolean; + /** Name of repository owner. */ + owner: string; + /** + * True to show only notifications in which the user is directly participating + * or mentioned. + */ + participating?: boolean; + /** Name of repository. */ + repo: string; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; +} + +export type IMySuperPrefixNotificationsListDataMySuperSuffix = IMySuperPrefixNotificationsMySuperSuffix; + +export interface IMySuperPrefixNotificationsListParamsMySuperSuffix { + /** True to show notifications marked as read. */ + all?: boolean; + /** + * True to show only notifications in which the user is directly participating + * or mentioned. + */ + participating?: boolean; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; +} + +export interface IMySuperPrefixNotificationsMySuperSuffix { + id?: number; + last_read_at?: string; + reason?: string; + repository?: { + description?: string; + fork?: boolean; + full_name?: string; + html_url?: string; + id?: number; + name?: string; + /** A user or organization */ + owner?: IMySuperPrefixActorMySuperSuffix; + private?: boolean; + url?: string; + }; + subject?: { + latest_comment_url?: string; + title?: string; + type?: string; + url?: string; + }; + unread?: boolean; + updated_at?: string; + url?: string; +} + +export type IMySuperPrefixNotificationsUpdateDataMySuperSuffix = any; + +export type IMySuperPrefixNotificationsUpdateResultMySuperSuffix = any; + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixOrderEnum1MySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixOrderEnum2MySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixOrderEnum3MySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixOrderEnum4MySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixOrderEnum5MySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixOrderEnumMySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +export interface IMySuperPrefixOrgTeamsPostMySuperSuffix { + name: string; + permission?: IMySuperPrefixOrgTeamsPostPermissionEnumMySuperSuffix; + repo_names?: string[]; +} + +export enum IMySuperPrefixOrgTeamsPostPermissionEnumMySuperSuffix { + Pull = "pull", + Push = "push", + Admin = "admin", +} + +export interface IMySuperPrefixOrganizationAsTeamMemberMySuperSuffix { + errors?: { + code?: string; + field?: string; + resource?: string; + }[]; + message?: string; +} + +/** A GitHub organization */ +export type IMySuperPrefixOrganizationMySuperSuffix = IMySuperPrefixActorMySuperSuffix; + +export type IMySuperPrefixOrgsDetailDataMySuperSuffix = IMySuperPrefixOrganizationMySuperSuffix; + +export type IMySuperPrefixOrgsDetailResultMySuperSuffix = IMySuperPrefixGitignoreMySuperSuffix; + +export type IMySuperPrefixOrgsListDataMySuperSuffix = IMySuperPrefixGitignoreMySuperSuffix; + +export type IMySuperPrefixOrgsPartialUpdateDataMySuperSuffix = IMySuperPrefixOrganizationMySuperSuffix; + +export interface IMySuperPrefixParticipationStatsMySuperSuffix { + all?: number[]; + owner?: number[]; +} + +export interface IMySuperPrefixPatchGistMySuperSuffix { + description?: string; + files?: { + "delete_this_file.txt"?: string; + "file1.txt"?: { + content?: string; + }; + "new_file.txt"?: { + content?: string; + }; + "old_name.txt"?: { + content?: string; + filename?: string; + }; + }; +} + +export interface IMySuperPrefixPatchOrgMySuperSuffix { + /** Billing email address. This address is not publicized. */ + billing_email?: string; + company?: string; + /** Publicly visible email address. */ + email?: string; + location?: string; + name?: string; +} + +export interface IMySuperPrefixPostGistMySuperSuffix { + description?: string; + files?: { + "file1.txt"?: { + content?: string; + }; + }; + public?: boolean; +} + +export type IMySuperPrefixPostMarkdownDataMySuperSuffix = any; + +export interface IMySuperPrefixPostRepoMySuperSuffix { + /** True to create an initial commit with empty README. Default is false. */ + auto_init?: boolean; + description?: string; + /** Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, "Haskell" Ignored if auto_init parameter is not provided. */ + gitignore_template?: string; + /** True to enable downloads for this repository, false to disable them. Default is true. */ + has_downloads?: boolean; + /** True to enable issues for this repository, false to disable them. Default is true. */ + has_issues?: boolean; + /** True to enable the wiki for this repository, false to disable it. Default is true. */ + has_wiki?: boolean; + homepage?: string; + name: string; + /** True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. */ + private?: boolean; + /** The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization. */ + team_id?: number; +} + +export type IMySuperPrefixPublicListDataMySuperSuffix = IMySuperPrefixGistsMySuperSuffix; + +export interface IMySuperPrefixPublicListParamsMySuperSuffix { + /** + * Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. + * Only gists updated at or after this time are returned. + */ + since?: string; +} + +export type IMySuperPrefixPublicMembersDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixPublicMembersDetail2DataMySuperSuffix = any; + +export type IMySuperPrefixPublicMembersDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixPublicMembersUpdateDataMySuperSuffix = any; + +export interface IMySuperPrefixPullRequestMySuperSuffix { + _links?: { + comments?: { + href?: string; + }; + html?: { + href?: string; + }; + review_comments?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + additions?: number; + base?: { + label?: string; + ref?: string; + repo?: IMySuperPrefixRepoMySuperSuffix; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + body?: string; + changed_files?: number; + closed_at?: string; + comments?: number; + commits?: number; + created_at?: string; + deletions?: number; + diff_url?: string; + head?: { + label?: string; + ref?: string; + repo?: IMySuperPrefixRepoMySuperSuffix; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + html_url?: string; + issue_url?: string; + merge_commit_sha?: string; + mergeable?: boolean; + merged?: boolean; + merged_at?: string; + merged_by?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + number?: number; + patch_url?: string; + state?: string; + title?: string; + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +} + +export interface IMySuperPrefixPullUpdateMySuperSuffix { + body?: string; + state?: string; + title?: string; +} + +export interface IMySuperPrefixPullsCommentMySuperSuffix { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + id?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +} + +export interface IMySuperPrefixPullsCommentPostMySuperSuffix { + body?: string; + commit_id?: string; + path?: string; + position?: number; +} + +export type IMySuperPrefixPullsCommentsCreateDataMySuperSuffix = IMySuperPrefixPullsCommentMySuperSuffix; + +export type IMySuperPrefixPullsCommentsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixPullsCommentsDetail2DataMySuperSuffix = IMySuperPrefixPullsCommentMySuperSuffix; + +export type IMySuperPrefixPullsCommentsDetail3DataMySuperSuffix = IMySuperPrefixPullsCommentMySuperSuffix; + +export type IMySuperPrefixPullsCommentsDetailDataMySuperSuffix = IMySuperPrefixIssuesCommentsMySuperSuffix; + +export enum IMySuperPrefixPullsCommentsDetailParams1SortEnumMySuperSuffix { + Created = "created", + Updated = "updated", +} + +export interface IMySuperPrefixPullsCommentsDetailParamsMySuperSuffix { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** Name of repository owner. */ + owner: string; + /** Name of repository. */ + repo: string; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + sort?: IMySuperPrefixSortEnum8MySuperSuffix; +} + +export type IMySuperPrefixPullsCommentsMySuperSuffix = { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + id?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +}[]; + +export type IMySuperPrefixPullsCommentsPartialUpdateDataMySuperSuffix = IMySuperPrefixPullsCommentMySuperSuffix; + +export type IMySuperPrefixPullsCommitsDetailDataMySuperSuffix = IMySuperPrefixCommitsMySuperSuffix; + +export type IMySuperPrefixPullsCreateDataMySuperSuffix = IMySuperPrefixPullsMySuperSuffix; + +export type IMySuperPrefixPullsDetail2DataMySuperSuffix = IMySuperPrefixPullRequestMySuperSuffix; + +export type IMySuperPrefixPullsDetailDataMySuperSuffix = IMySuperPrefixPullsMySuperSuffix; + +/** + * String to filter by state. + * @default "open" + */ +export enum IMySuperPrefixPullsDetailParams1StateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixPullsDetailParamsMySuperSuffix { + /** Filter pulls by base branch name. Example - gh-pages. */ + base?: string; + /** + * Filter pulls by head user and branch name in the format of 'user:ref-name'. + * Example: github:new-script-format. + */ + head?: string; + /** Name of repository owner. */ + owner: string; + /** Name of repository. */ + repo: string; + /** + * String to filter by state. + * @default "open" + */ + state?: IMySuperPrefixStateEnum4MySuperSuffix; +} + +export type IMySuperPrefixPullsFilesDetailDataMySuperSuffix = IMySuperPrefixPullsMySuperSuffix; + +export type IMySuperPrefixPullsMergeDetailDataMySuperSuffix = any; + +export type IMySuperPrefixPullsMergeUpdateDataMySuperSuffix = IMySuperPrefixMergeMySuperSuffix; + +export type IMySuperPrefixPullsMergeUpdateErrorMySuperSuffix = IMySuperPrefixMergeMySuperSuffix; + +export type IMySuperPrefixPullsMySuperSuffix = { + _links?: { + comments?: { + href?: string; + }; + html?: { + href?: string; + }; + review_comments?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + base?: { + label?: string; + ref?: string; + repo?: IMySuperPrefixRepoMySuperSuffix; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + closed_at?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + diff_url?: string; + head?: { + label?: string; + ref?: string; + repo?: IMySuperPrefixRepoMySuperSuffix; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + html_url?: string; + issue_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + merged_at?: string; + number?: number; + patch_url?: string; + state?: IMySuperPrefixPullsStateEnumMySuperSuffix; + title?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +}[]; + +export type IMySuperPrefixPullsPartialUpdateDataMySuperSuffix = IMySuperPrefixRepoMySuperSuffix; + +export interface IMySuperPrefixPullsPostMySuperSuffix { + base?: string; + body?: string; + head?: string; + title?: string; +} + +export enum IMySuperPrefixPullsStateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export interface IMySuperPrefixPutSubscriptionMySuperSuffix { + created_at?: string; + ignored?: boolean; + reason?: object; + subscribed?: boolean; + thread_url?: string; + url?: string; +} + +export type IMySuperPrefixRateLimitListDataMySuperSuffix = IMySuperPrefixRateLimitMySuperSuffix; + +export interface IMySuperPrefixRateLimitMySuperSuffix { + rate?: { + limit?: number; + remaining?: number; + reset?: number; + }; +} + +export type IMySuperPrefixReadmeDetailDataMySuperSuffix = IMySuperPrefixContentsPathMySuperSuffix; + +export interface IMySuperPrefixReadmeDetailParamsMySuperSuffix { + /** Name of repository owner. */ + owner: string; + /** The String name of the Commit/Branch/Tag. Defaults to master. */ + ref?: string; + /** Name of repository. */ + repo: string; +} + +export type IMySuperPrefixRefMySuperSuffix = { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + creator?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + description?: string; + id?: number; + state?: string; + target_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; +}[]; + +export type IMySuperPrefixRefStatusMySuperSuffix = { + commit_url?: string; + name?: string; + repository_url?: string; + sha?: string; + state?: string; + statuses?: { + context?: string; + created_at?: string; + description?: string; + id?: number; + state?: string; + target_url?: string; + updated_at?: string; + url?: string; + }[]; +}[]; + +export interface IMySuperPrefixRefsBodyMySuperSuffix { + ref?: string; + sha?: string; +} + +export type IMySuperPrefixRefsMySuperSuffix = { + object?: { + sha?: string; + type?: string; + url?: string; + }; + ref?: string; + url?: string; +}[]; + +export interface IMySuperPrefixReleaseCreateMySuperSuffix { + body?: string; + draft?: boolean; + name?: string; + prerelease?: boolean; + tag_name?: string; + target_commitish?: string; +} + +export interface IMySuperPrefixReleaseMySuperSuffix { + assets?: { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + /** A GitHub user */ + uploader?: IMySuperPrefixUserMySuperSuffix; + url?: string; + }[]; + assets_url?: string; + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + body?: string; + created_at?: string; + draft?: boolean; + html_url?: string; + id?: number; + name?: string; + prerelease?: boolean; + published_at?: string; + tag_name?: string; + tarball_url?: string; + target_commitish?: string; + upload_url?: string; + url?: string; + zipball_url?: string; +} + +export type IMySuperPrefixReleasesAssetsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixReleasesAssetsDetail2DataMySuperSuffix = IMySuperPrefixAssetsMySuperSuffix; + +export type IMySuperPrefixReleasesAssetsDetailDataMySuperSuffix = IMySuperPrefixAssetMySuperSuffix; + +export type IMySuperPrefixReleasesAssetsPartialUpdateDataMySuperSuffix = IMySuperPrefixAssetMySuperSuffix; + +export type IMySuperPrefixReleasesCreateDataMySuperSuffix = IMySuperPrefixReleaseMySuperSuffix; + +export type IMySuperPrefixReleasesDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixReleasesDetail2DataMySuperSuffix = IMySuperPrefixReleaseMySuperSuffix; + +export type IMySuperPrefixReleasesDetailDataMySuperSuffix = IMySuperPrefixReleasesMySuperSuffix; + +export type IMySuperPrefixReleasesMySuperSuffix = { + assets?: { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + /** A GitHub user */ + uploader?: IMySuperPrefixUserMySuperSuffix; + url?: string; + }[]; + assets_url?: string; + /** A GitHub user */ + author?: IMySuperPrefixUserMySuperSuffix; + body?: string; + created_at?: string; + draft?: boolean; + html_url?: string; + id?: number; + name?: string; + prerelease?: boolean; + published_at?: string; + tag_name?: string; + tarball_url?: string; + target_commitish?: string; + upload_url?: string; + url?: string; + zipball_url?: string; +}[]; + +export type IMySuperPrefixReleasesPartialUpdateDataMySuperSuffix = IMySuperPrefixReleaseMySuperSuffix; + +export type IMySuperPrefixRepoCommentsMySuperSuffix = { + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + line?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +}[]; + +export interface IMySuperPrefixRepoCommitBodyMySuperSuffix { + author?: { + date?: string; + email?: string; + name?: string; + }; + message: string; + parents: string[]; + tree: string; +} + +export interface IMySuperPrefixRepoCommitMySuperSuffix { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; +} + +export type IMySuperPrefixRepoDeploymentsMySuperSuffix = { + created_at?: string; + /** A GitHub user */ + creator?: IMySuperPrefixUserMySuperSuffix; + description?: string; + id?: number; + payload?: string; + sha?: string; + statuses_url?: string; + updated_at?: string; + url?: string; +}[]; + +export interface IMySuperPrefixRepoEditMySuperSuffix { + description?: string; + has_downloads?: boolean; + has_issues?: boolean; + has_wiki?: boolean; + homepage?: string; + name?: string; + private?: boolean; +} + +export interface IMySuperPrefixRepoMySuperSuffix { + clone_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + description?: string; + fork?: boolean; + forks?: number; + forks_count?: number; + full_name?: string; + git_url?: string; + has_downloads?: boolean; + has_issues?: boolean; + has_wiki?: boolean; + homepage?: string; + html_url?: string; + id?: number; + language?: string; + master_branch?: string; + mirror_url?: string; + name?: string; + open_issues?: number; + open_issues_count?: number; + /** A GitHub organization */ + organization?: IMySuperPrefixOrganizationMySuperSuffix; + /** A user or organization */ + owner?: IMySuperPrefixActorMySuperSuffix; + /** Is present when the repo is a fork. Parent is the repo this repo was forked from. */ + parent?: IMySuperPrefixRepoMySuperSuffix; + private?: boolean; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + pushed_at?: string; + size?: number; + /** Is present when the repo is a fork. Source is the ultimate source for the network. */ + source?: IMySuperPrefixRepoMySuperSuffix; + ssh_url?: string; + svn_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + watchers?: number; + watchers_count?: number; +} + +export type IMySuperPrefixReposCreateDataMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export type IMySuperPrefixReposCreateResultMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export type IMySuperPrefixReposDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixReposDeleteResultMySuperSuffix = any; + +export enum IMySuperPrefixReposDetail2ParamsArchiveFormatEnumMySuperSuffix { + Tarball = "tarball", + Zipball = "zipball", +} + +export enum IMySuperPrefixReposDetail2ParamsEnumMySuperSuffix { + Tarball = "tarball", + Zipball = "zipball", +} + +export type IMySuperPrefixReposDetailDataMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export type IMySuperPrefixReposDetailOutputMySuperSuffix = IMySuperPrefixTeamReposMySuperSuffix; + +/** @default "all" */ +export enum IMySuperPrefixReposDetailParams1TypeEnumMySuperSuffix { + All = "all", + Public = "public", + Private = "private", + Forks = "forks", + Sources = "sources", + Member = "member", +} + +export interface IMySuperPrefixReposDetailParams4MySuperSuffix { + /** @default "all" */ + type?: IMySuperPrefixTypeEnum2MySuperSuffix; + /** Name of user. */ + username: string; +} + +/** @default "all" */ +export enum IMySuperPrefixReposDetailParams5TypeEnumMySuperSuffix { + All = "all", + Public = "public", + Private = "private", + Forks = "forks", + Sources = "sources", + Member = "member", +} + +export interface IMySuperPrefixReposDetailParamsMySuperSuffix { + /** Name of organisation. */ + org: string; + /** @default "all" */ + type?: IMySuperPrefixTypeEnumMySuperSuffix; +} + +export type IMySuperPrefixReposDetailResult1MySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export type IMySuperPrefixReposDetailResultMySuperSuffix = IMySuperPrefixRepoMySuperSuffix; + +export type IMySuperPrefixReposListDataMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +/** @default "all" */ +export enum IMySuperPrefixReposListParams1TypeEnumMySuperSuffix { + All = "all", + Public = "public", + Private = "private", + Forks = "forks", + Sources = "sources", + Member = "member", +} + +export interface IMySuperPrefixReposListParamsMySuperSuffix { + /** @default "all" */ + type?: IMySuperPrefixTypeEnum1MySuperSuffix; +} + +export type IMySuperPrefixReposMySuperSuffix = IMySuperPrefixRepoMySuperSuffix[]; + +export type IMySuperPrefixReposPartialUpdateDataMySuperSuffix = IMySuperPrefixRepoMySuperSuffix; + +export type IMySuperPrefixReposSearchDetailDataMySuperSuffix = IMySuperPrefixSearchRepositoriesByKeywordMySuperSuffix; + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixReposSearchDetailParams1OrderEnumMySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ +export enum IMySuperPrefixReposSearchDetailParams1SortEnumMySuperSuffix { + Updated = "updated", + Stars = "stars", + Forks = "forks", +} + +export interface IMySuperPrefixReposSearchDetailParamsMySuperSuffix { + /** The search term */ + keyword: string; + /** Filter results by language */ + language?: string; + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: IMySuperPrefixOrderEnumMySuperSuffix; + /** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ + sort?: IMySuperPrefixSortEnum1MySuperSuffix; + /** The page number to fetch */ + start_page?: string; +} + +export type IMySuperPrefixRepositoriesListDataMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export interface IMySuperPrefixRepositoriesListParams2MySuperSuffix { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: IMySuperPrefixOrderEnum4MySuperSuffix; + /** + * The search terms. This can be any combination of the supported repository + * search parameters: + * 'Search In' Qualifies which fields are searched. With this qualifier you + * can restrict the search to just the repository name, description, readme, + * or any combination of these. + * 'Size' Finds repositories that match a certain size (in kilobytes). + * 'Forks' Filters repositories based on the number of forks, and/or whether + * forked repositories should be included in the results at all. + * 'Created' and 'Last Updated' Filters repositories based on times of + * creation, or when they were last updated. + * 'Users or Repositories' Limits searches to a specific user or repository. + * 'Languages' Searches repositories based on the language they are written in. + * 'Stars' Searches repositories based on the number of stars. + */ + q: string; + /** If not provided, results are sorted by best match. */ + sort?: IMySuperPrefixSortEnum11MySuperSuffix; +} + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixRepositoriesListParams3OrderEnumMySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** If not provided, results are sorted by best match. */ +export enum IMySuperPrefixRepositoriesListParams3SortEnumMySuperSuffix { + Stars = "stars", + Forks = "forks", + Updated = "updated", +} + +export interface IMySuperPrefixRepositoriesListParamsMySuperSuffix { + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; +} + +export type IMySuperPrefixRepositoriesListResultMySuperSuffix = IMySuperPrefixSearchRepositoriesMySuperSuffix; + +export interface IMySuperPrefixSearchCodeMySuperSuffix { + items?: { + git_url?: string; + html_url?: string; + name?: string; + path?: string; + repository?: { + 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; + description?: string; + downloads_url?: string; + events_url?: string; + fork?: boolean; + forks_url?: string; + full_name?: string; + git_commits_url?: string; + git_refs_url?: string; + git_tags_url?: string; + hooks_url?: string; + html_url?: string; + id?: number; + 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; + name?: string; + notifications_url?: string; + /** A user or organization */ + owner?: IMySuperPrefixActorMySuperSuffix; + private?: boolean; + pulls_url?: string; + stargazers_url?: string; + statuses_url?: string; + subscribers_url?: string; + subscription_url?: string; + tags_url?: string; + teams_url?: string; + trees_url?: string; + url?: string; + }; + score?: number; + sha?: string; + url?: string; + }[]; + total_count?: number; +} + +export interface IMySuperPrefixSearchIssuesByKeywordMySuperSuffix { + issues?: { + body?: string; + comments?: number; + created_at?: string; + gravatar_id?: string; + html_url?: string; + labels?: string[]; + number?: number; + position?: number; + state?: string; + title?: string; + updated_at?: string; + user?: string; + votes?: number; + }[]; +} + +export interface IMySuperPrefixSearchIssuesMySuperSuffix { + items?: { + assignee?: any; + body?: string; + closed_at?: any; + comments?: number; + comments_url?: string; + created_at?: string; + events_url?: string; + html_url?: string; + id?: number; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + labels_url?: string; + milestone?: any; + number?: number; + pull_request?: { + diff_url?: any; + html_url?: any; + patch_url?: any; + }; + score?: number; + state?: string; + title?: string; + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; + }[]; + total_count?: number; +} + +export interface IMySuperPrefixSearchRepositoriesByKeywordMySuperSuffix { + repositories?: IMySuperPrefixRepoMySuperSuffix[]; +} + +export interface IMySuperPrefixSearchRepositoriesMySuperSuffix { + items?: IMySuperPrefixRepoMySuperSuffix[]; + total_count?: number; +} + +export interface IMySuperPrefixSearchUserByEmailMySuperSuffix { + /** A GitHub user */ + user?: IMySuperPrefixUserMySuperSuffix; +} + +export interface IMySuperPrefixSearchUsersByKeywordMySuperSuffix { + users?: IMySuperPrefixUsersMySuperSuffix; +} + +export interface IMySuperPrefixSearchUsersMySuperSuffix { + items?: IMySuperPrefixUsersMySuperSuffix; + total_count?: number; +} + +export type IMySuperPrefixSomeOp1DataMySuperSuffix = IMySuperPrefixEventsMySuperSuffix; + +export interface IMySuperPrefixSomeOp1ParamsMySuperSuffix { + /** + * description + * @default 0 + */ + queryParam1?: number; + /** + * description + * @default 20 + */ + queryParam2?: number; + /** description */ + queryParam3?: string[]; + /** + * description + * @default 0 + */ + queryParamBar3?: number; + /** + * description + * @default 0 + */ + fooBarBaz?: number; +} + +export type IMySuperPrefixSomeOpDataMySuperSuffix = IMySuperPrefixEventsMySuperSuffix; + +export interface IMySuperPrefixSomeOpParamsMySuperSuffix { + fooId: string; + /** @default 0 */ + page?: number; + /** @default 20 */ + size?: number; + sort?: string[]; +} + +/** The sort field. Can be comments, created, or updated. Default: results are sorted by best match. */ +export enum IMySuperPrefixSortEnum10MySuperSuffix { + Updated = "updated", + Created = "created", + Comments = "comments", +} + +/** If not provided, results are sorted by best match. */ +export enum IMySuperPrefixSortEnum11MySuperSuffix { + Stars = "stars", + Forks = "forks", + Updated = "updated", +} + +/** If not provided, results are sorted by best match. */ +export enum IMySuperPrefixSortEnum12MySuperSuffix { + Followers = "followers", + Repositories = "repositories", + Joined = "joined", +} + +/** @default "created" */ +export enum IMySuperPrefixSortEnum13MySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +/** @default "created" */ +export enum IMySuperPrefixSortEnum14MySuperSuffix { + Created = "created", + Updated = "updated", +} + +/** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ +export enum IMySuperPrefixSortEnum1MySuperSuffix { + Updated = "updated", + Stars = "stars", + Forks = "forks", +} + +/** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ +export enum IMySuperPrefixSortEnum2MySuperSuffix { + Updated = "updated", + Stars = "stars", + Forks = "forks", +} + +/** @default "created" */ +export enum IMySuperPrefixSortEnum3MySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +/** @default "newes" */ +export enum IMySuperPrefixSortEnum4MySuperSuffix { + Newes = "newes", + Oldes = "oldes", + Watchers = "watchers", +} + +/** @default "created" */ +export enum IMySuperPrefixSortEnum5MySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +export enum IMySuperPrefixSortEnum6MySuperSuffix { + Created = "created", + Updated = "updated", +} + +/** @default "due_date" */ +export enum IMySuperPrefixSortEnum7MySuperSuffix { + DueDate = "due_date", + Completeness = "completeness", +} + +export enum IMySuperPrefixSortEnum8MySuperSuffix { + Created = "created", + Updated = "updated", +} + +/** + * Can only be 'indexed', which indicates how recently a file has been indexed + * by the GitHub search infrastructure. If not provided, results are sorted + * by best match. + */ +export enum IMySuperPrefixSortEnum9MySuperSuffix { + Indexed = "indexed", +} + +/** @default "created" */ +export enum IMySuperPrefixSortEnumMySuperSuffix { + Created = "created", + Updated = "updated", + Comments = "comments", +} + +export type IMySuperPrefixStarDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixStarDetailDataMySuperSuffix = any; + +export type IMySuperPrefixStarUpdateDataMySuperSuffix = any; + +export type IMySuperPrefixStargazersDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixStarredDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixStarredDetailDataMySuperSuffix = any; + +export type IMySuperPrefixStarredListDataMySuperSuffix = IMySuperPrefixGistsMySuperSuffix; + +export interface IMySuperPrefixStarredListParams2MySuperSuffix { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** @default "created" */ + sort?: IMySuperPrefixSortEnum14MySuperSuffix; +} + +/** @default "created" */ +export enum IMySuperPrefixStarredListParams3SortEnumMySuperSuffix { + Created = "created", + Updated = "updated", +} + +export interface IMySuperPrefixStarredListParamsMySuperSuffix { + /** + * Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. + * Only gists updated at or after this time are returned. + */ + since?: string; +} + +export type IMySuperPrefixStarredListResultMySuperSuffix = IMySuperPrefixGitignoreMySuperSuffix; + +export type IMySuperPrefixStarredUpdateDataMySuperSuffix = any; + +/** @default "open" */ +export enum IMySuperPrefixStateEnum1MySuperSuffix { + Open = "open", + Closed = "closed", +} + +/** @default "open" */ +export enum IMySuperPrefixStateEnum2MySuperSuffix { + Open = "open", + Closed = "closed", +} + +/** + * String to filter by state. + * @default "open" + */ +export enum IMySuperPrefixStateEnum3MySuperSuffix { + Open = "open", + Closed = "closed", +} + +/** + * String to filter by state. + * @default "open" + */ +export enum IMySuperPrefixStateEnum4MySuperSuffix { + Open = "open", + Closed = "closed", +} + +/** @default "open" */ +export enum IMySuperPrefixStateEnum5MySuperSuffix { + Open = "open", + Closed = "closed", +} + +/** @default "open" */ +export enum IMySuperPrefixStateEnumMySuperSuffix { + Open = "open", + Closed = "closed", +} + +export type IMySuperPrefixStatsCodeFrequencyDetailDataMySuperSuffix = IMySuperPrefixCodeFrequencyStatsMySuperSuffix; + +export type IMySuperPrefixStatsCommitActivityDetailDataMySuperSuffix = IMySuperPrefixCommitActivityStatsMySuperSuffix; + +export type IMySuperPrefixStatsContributorsDetailDataMySuperSuffix = IMySuperPrefixContributorsStatsMySuperSuffix; + +export type IMySuperPrefixStatsParticipationDetailDataMySuperSuffix = IMySuperPrefixParticipationStatsMySuperSuffix; + +export type IMySuperPrefixStatsPunchCardDetailDataMySuperSuffix = IMySuperPrefixCodeFrequencyStatsMySuperSuffix; + +export type IMySuperPrefixStatusesCreateDataMySuperSuffix = IMySuperPrefixRefMySuperSuffix; + +export type IMySuperPrefixStatusesDetailDataMySuperSuffix = IMySuperPrefixRefMySuperSuffix; + +export type IMySuperPrefixSubscribersDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export interface IMySuperPrefixSubscriptionBodyMySuperSuffix { + ignored?: boolean; + subscribed?: boolean; +} + +export type IMySuperPrefixSubscriptionDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixSubscriptionDetailDataMySuperSuffix = IMySuperPrefixSubscriptionMySuperSuffix; + +export interface IMySuperPrefixSubscriptionMySuperSuffix { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + ignored?: boolean; + reason?: string; + repository_url?: string; + subscribed?: boolean; + thread_url?: string; + url?: string; +} + +export type IMySuperPrefixSubscriptionUpdateDataMySuperSuffix = IMySuperPrefixSubscriptionMySuperSuffix; + +export type IMySuperPrefixSubscriptionsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixSubscriptionsDetailDataMySuperSuffix = any; + +export type IMySuperPrefixSubscriptionsListDataMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export type IMySuperPrefixSubscriptionsUpdateDataMySuperSuffix = any; + +export interface IMySuperPrefixTagBodyMySuperSuffix { + /** String of the tag message. */ + message: string; + /** String of the SHA of the git object this is tagging. */ + object: string; + /** The tag's name. This is typically a version (e.g., "v0.0.1"). */ + tag: string; + tagger: { + /** Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + /** String of the email of the author of the tag. */ + email?: string; + /** String of the name of the author of the tag. */ + name?: string; + }; + /** String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob. */ + type: IMySuperPrefixTagBodyTypeEnumMySuperSuffix; +} + +/** String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob. */ +export enum IMySuperPrefixTagBodyTypeEnumMySuperSuffix { + Commit = "commit", + Tree = "tree", + Blob = "blob", +} + +export interface IMySuperPrefixTagMySuperSuffix { + /** String of the tag message. */ + message?: string; + object?: { + sha?: string; + /** String of the type of the tagged object. Normally this is a commit but it can also be a tree or a blob. */ + type?: IMySuperPrefixTagTypeEnumMySuperSuffix; + url?: string; + }; + sha?: string; + /** The tag's name. This is typically a version (e.g., "v0.0.1"). */ + tag?: string; + tagger?: { + /** Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + /** String of the email of the author of the tag. */ + email?: string; + /** String of the name of the author of the tag. */ + name?: string; + }; + url?: string; +} + +/** String of the type of the tagged object. Normally this is a commit but it can also be a tree or a blob. */ +export enum IMySuperPrefixTagTypeEnumMySuperSuffix { + Commit = "commit", + Tree = "tree", + Blob = "blob", +} + +export type IMySuperPrefixTagsDetailDataMySuperSuffix = IMySuperPrefixTagsMySuperSuffix; + +export type IMySuperPrefixTagsMySuperSuffix = IMySuperPrefixTagMySuperSuffix[]; + +export interface IMySuperPrefixTeamMembershipMySuperSuffix { + state?: string; + url?: string; +} + +export interface IMySuperPrefixTeamMySuperSuffix { + id?: number; + members_count?: number; + name?: string; + permission?: string; + repos_count?: number; + url?: string; +} + +export type IMySuperPrefixTeamReposMySuperSuffix = IMySuperPrefixReposMySuperSuffix; + +export type IMySuperPrefixTeamsCreateDataMySuperSuffix = IMySuperPrefixTeamMySuperSuffix; + +export type IMySuperPrefixTeamsDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixTeamsDetailDataMySuperSuffix = IMySuperPrefixTeamsMySuperSuffix; + +export type IMySuperPrefixTeamsDetailOutputMySuperSuffix = IMySuperPrefixTeamMySuperSuffix; + +export type IMySuperPrefixTeamsDetailResultMySuperSuffix = IMySuperPrefixTeamsMySuperSuffix; + +export type IMySuperPrefixTeamsListDataMySuperSuffix = IMySuperPrefixTeamsListMySuperSuffix; + +export type IMySuperPrefixTeamsListMySuperSuffix = { + id?: number; + members_count?: number; + name?: string; + organization?: { + avatar_url?: string; + id?: number; + login?: string; + url?: string; + }; + permission?: string; + repos_count?: number; + url?: string; +}[]; + +export type IMySuperPrefixTeamsMySuperSuffix = { + id?: number; + name?: string; + url?: string; +}[]; + +export type IMySuperPrefixTeamsPartialUpdateDataMySuperSuffix = IMySuperPrefixTeamMySuperSuffix; + +export type IMySuperPrefixTemplatesDetailDataMySuperSuffix = IMySuperPrefixGitignoreLangMySuperSuffix; + +export type IMySuperPrefixTemplatesListDataMySuperSuffix = IMySuperPrefixGitignoreMySuperSuffix; + +export type IMySuperPrefixThreadsDetailDataMySuperSuffix = IMySuperPrefixNotificationsMySuperSuffix; + +export type IMySuperPrefixThreadsPartialUpdateDataMySuperSuffix = any; + +export type IMySuperPrefixThreadsSubscriptionDeleteDataMySuperSuffix = any; + +export type IMySuperPrefixThreadsSubscriptionDetailDataMySuperSuffix = IMySuperPrefixSubscriptionMySuperSuffix; + +export type IMySuperPrefixThreadsSubscriptionUpdateDataMySuperSuffix = IMySuperPrefixSubscriptionMySuperSuffix; + +/** One of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit) or 120000 for a blob that specifies the path of a symlink. */ +export enum IMySuperPrefixTreeModeEnumMySuperSuffix { + Value100644 = "100644", + Value100755 = "100755", + Value040000 = "040000", + Value160000 = "160000", + Value120000 = "120000", +} + +export interface IMySuperPrefixTreeMySuperSuffix { + sha?: string; + tree?: { + /** One of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit) or 120000 for a blob that specifies the path of a symlink. */ + mode?: IMySuperPrefixTreeModeEnumMySuperSuffix; + path?: string; + /** SHA1 checksum ID of the object in the tree. */ + sha?: string; + size?: number; + type?: IMySuperPrefixTreeTypeEnumMySuperSuffix; + url?: string; + }[]; + url?: string; +} + +export enum IMySuperPrefixTreeTypeEnumMySuperSuffix { + Blob = "blob", + Tree = "tree", + Commit = "commit", +} + +export interface IMySuperPrefixTreesMySuperSuffix { + base_tree?: string; + /** SHA1 checksum ID of the object in the tree. */ + sha?: string; + tree?: IMySuperPrefixTreeMySuperSuffix[]; + url?: string; +} + +/** @default "all" */ +export enum IMySuperPrefixTypeEnum1MySuperSuffix { + All = "all", + Public = "public", + Private = "private", + Forks = "forks", + Sources = "sources", + Member = "member", +} + +/** @default "all" */ +export enum IMySuperPrefixTypeEnum2MySuperSuffix { + All = "all", + Public = "public", + Private = "private", + Forks = "forks", + Sources = "sources", + Member = "member", +} + +/** @default "all" */ +export enum IMySuperPrefixTypeEnumMySuperSuffix { + All = "all", + Public = "public", + Private = "private", + Forks = "forks", + Sources = "sources", + Member = "member", +} + +export type IMySuperPrefixUserEmailDetailDataMySuperSuffix = IMySuperPrefixSearchUserByEmailMySuperSuffix; + +export type IMySuperPrefixUserEmailsMySuperSuffix = string[]; + +export interface IMySuperPrefixUserKeysKeyIdMySuperSuffix { + id?: number; + key?: string; + title?: string; + url?: string; +} + +export interface IMySuperPrefixUserKeysPostMySuperSuffix { + key?: string; + title?: string; +} + +export type IMySuperPrefixUserListDataMySuperSuffix = IMySuperPrefixUserMySuperSuffix; + +/** A GitHub user */ +export type IMySuperPrefixUserMySuperSuffix = IMySuperPrefixActorMySuperSuffix; + +export type IMySuperPrefixUserPartialUpdateDataMySuperSuffix = IMySuperPrefixUserMySuperSuffix; + +export type IMySuperPrefixUserSearchDetailDataMySuperSuffix = IMySuperPrefixSearchUsersByKeywordMySuperSuffix; + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixUserSearchDetailParams1OrderEnumMySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ +export enum IMySuperPrefixUserSearchDetailParams1SortEnumMySuperSuffix { + Updated = "updated", + Stars = "stars", + Forks = "forks", +} + +export interface IMySuperPrefixUserSearchDetailParamsMySuperSuffix { + /** The search term */ + keyword: string; + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: IMySuperPrefixOrderEnum1MySuperSuffix; + /** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ + sort?: IMySuperPrefixSortEnum2MySuperSuffix; + /** The page number to fetch */ + start_page?: string; +} + +export interface IMySuperPrefixUserUpdateMySuperSuffix { + bio?: string; + blog?: string; + company?: string; + email?: string; + hireable?: boolean; + location?: string; + name?: string; +} + +export type IMySuperPrefixUsersDetailDataMySuperSuffix = IMySuperPrefixUserMySuperSuffix; + +export type IMySuperPrefixUsersListDataMySuperSuffix = IMySuperPrefixSearchUsersMySuperSuffix; + +/** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ +export enum IMySuperPrefixUsersListParams1OrderEnumMySuperSuffix { + Desc = "desc", + Asc = "asc", +} + +/** If not provided, results are sorted by best match. */ +export enum IMySuperPrefixUsersListParams1SortEnumMySuperSuffix { + Followers = "followers", + Repositories = "repositories", + Joined = "joined", +} + +export interface IMySuperPrefixUsersListParams2MySuperSuffix { + /** The integer ID of the last user that you've seen. */ + since?: number; +} + +export interface IMySuperPrefixUsersListParamsMySuperSuffix { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: IMySuperPrefixOrderEnum5MySuperSuffix; + /** + * The search terms. This can be any combination of the supported user + * search parameters: + * 'Search In' Qualifies which fields are searched. With this qualifier you + * can restrict the search to just the username, public email, full name, + * location, or any combination of these. + * 'Repository count' Filters users based on the number of repositories they + * have. + * 'Location' Filter users by the location indicated in their profile. + * 'Language' Search for users that have repositories that match a certain + * language. + * 'Created' Filter users based on when they joined. + * 'Followers' Filter users based on the number of followers they have. + */ + q: string; + /** If not provided, results are sorted by best match. */ + sort?: IMySuperPrefixSortEnum12MySuperSuffix; +} + +export type IMySuperPrefixUsersListResultMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type IMySuperPrefixUsersMySuperSuffix = IMySuperPrefixUserMySuperSuffix[]; + +export type IMySuperPrefixWatchersDetailDataMySuperSuffix = IMySuperPrefixUsersMySuperSuffix; + +export type QueryParamsType = Record; +export type ResponseFormat = keyof Omit; + +export interface FullRequestParams extends Omit { + /** set parameter to \`true\` for call \`securityWorker\` for this request */ + secure?: boolean; + /** request path */ + path: string; + /** content type of request body */ + type?: ContentType; + /** query params */ + query?: QueryParamsType; + /** format of response (i.e. response.json() -> format: "json") */ + format?: ResponseFormat; + /** request body */ + body?: unknown; + /** base url */ + baseUrl?: string; + /** request cancellation token */ + cancelToken?: CancelToken; +} + +export type RequestParams = Omit; + +export interface ApiConfig { + baseUrl?: string; + baseApiParams?: Omit; + securityWorker?: (securityData: SecurityDataType | null) => Promise | RequestParams | void; + customFetch?: typeof fetch; +} + +export interface HttpResponse extends Response { + data: D; + error: E; +} + +type CancelToken = Symbol | string | number; + +export enum ContentType { + Json = "application/json", + FormData = "multipart/form-data", + UrlEncoded = "application/x-www-form-urlencoded", + Text = "text/plain", +} + +export class HttpClient { + public baseUrl: string = "https://api.github.com"; + private securityData: SecurityDataType | null = null; + private securityWorker?: ApiConfig["securityWorker"]; + private abortControllers = new Map(); + private customFetch = (...fetchParams: Parameters) => fetch(...fetchParams); + + private baseApiParams: RequestParams = { + credentials: "same-origin", + headers: {}, + redirect: "follow", + referrerPolicy: "no-referrer", + }; + + constructor(apiConfig: ApiConfig = {}) { + Object.assign(this, apiConfig); + } + + public setSecurityData = (data: SecurityDataType | null) => { + this.securityData = data; + }; + + protected encodeQueryParam(key: string, value: any) { + const encodedKey = encodeURIComponent(key); + return \`\${encodedKey}=\${encodeURIComponent(typeof value === "number" ? value : \`\${value}\`)}\`; + } + + protected addQueryParam(query: QueryParamsType, key: string) { + return this.encodeQueryParam(key, query[key]); + } + + protected addArrayQueryParam(query: QueryParamsType, key: string) { + const value = query[key]; + return value.map((v: any) => this.encodeQueryParam(key, v)).join("&"); + } + + protected toQueryString(rawQuery?: QueryParamsType): string { + const query = rawQuery || {}; + const keys = Object.keys(query).filter((key) => "undefined" !== typeof query[key]); + return keys + .map((key) => (Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key))) + .join("&"); + } + + protected addQueryParams(rawQuery?: QueryParamsType): string { + const queryString = this.toQueryString(rawQuery); + return queryString ? \`?\${queryString}\` : ""; + } + + private contentFormatters: Record any> = { + [ContentType.Json]: (input: any) => + input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input, + [ContentType.Text]: (input: any) => (input !== null && typeof input !== "string" ? JSON.stringify(input) : input), + [ContentType.FormData]: (input: any) => + Object.keys(input || {}).reduce((formData, key) => { + const property = input[key]; + formData.append( + key, + property instanceof Blob + ? property + : typeof property === "object" && property !== null + ? JSON.stringify(property) + : \`\${property}\`, + ); + return formData; + }, new FormData()), + [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input), + }; + + protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams { + return { + ...this.baseApiParams, + ...params1, + ...(params2 || {}), + headers: { + ...(this.baseApiParams.headers || {}), + ...(params1.headers || {}), + ...((params2 && params2.headers) || {}), + }, + }; + } + + protected createAbortSignal = (cancelToken: CancelToken): AbortSignal | undefined => { + if (this.abortControllers.has(cancelToken)) { + const abortController = this.abortControllers.get(cancelToken); + if (abortController) { + return abortController.signal; + } + return void 0; + } + + const abortController = new AbortController(); + this.abortControllers.set(cancelToken, abortController); + return abortController.signal; + }; + + public abortRequest = (cancelToken: CancelToken) => { + const abortController = this.abortControllers.get(cancelToken); + + if (abortController) { + abortController.abort(); + this.abortControllers.delete(cancelToken); + } + }; + + public request = async ({ + body, + secure, + path, + type, + query, + format, + baseUrl, + cancelToken, + ...params + }: FullRequestParams): Promise> => { + const secureParams = + ((typeof secure === "boolean" ? secure : this.baseApiParams.secure) && + this.securityWorker && + (await this.securityWorker(this.securityData))) || + {}; + const requestParams = this.mergeRequestParams(params, secureParams); + const queryString = query && this.toQueryString(query); + const payloadFormatter = this.contentFormatters[type || ContentType.Json]; + const responseFormat = format || requestParams.format; + + return this.customFetch(\`\${baseUrl || this.baseUrl || ""}\${path}\${queryString ? \`?\${queryString}\` : ""}\`, { + ...requestParams, + headers: { + ...(requestParams.headers || {}), + ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}), + }, + signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null, + body: typeof body === "undefined" || body === null ? null : payloadFormatter(body), + }).then(async (response) => { + const r = response.clone() as HttpResponse; + r.data = null as unknown as T; + r.error = null as unknown as E; + + const data = !responseFormat + ? r + : await response[responseFormat]() + .then((data) => { + if (r.ok) { + r.data = data; + } else { + r.error = data; + } + return r; + }) + .catch((e) => { + r.error = e; + return r; + }); + + if (cancelToken) { + this.abortControllers.delete(cancelToken); + } + + if (!response.ok) throw data; + return data; + }); + }; +} + +/** + * @title GitHub + * @version v3 + * @termsOfService https://help.github.com/articles/github-terms-of-service/#b-api-terms + * @baseUrl https://api.github.com + * @externalDocs https://developer.github.com/v3/ + * + * Powerful collaboration, code review, and code management for open source and private projects. + */ +export class Api extends HttpClient { + someop = { + /** + * No description + * + * @tags someop + * @name SomeOp + * @request POST:/someop/{fooId}/bars/bar-bar + */ + someOp: ( + { fooId, ...query }: IMySuperPrefixSomeOpParamsMySuperSuffix, + data: IMySuperPrefixEventsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/someop/\${fooId}/bars/bar-bar\`, + method: "POST", + query: query, + body: data, + ...params, + }), + + /** + * No description + * + * @tags someop + * @name SomeOp1 + * @request POST:/someop + */ + someOp1: ( + query: IMySuperPrefixSomeOp1ParamsMySuperSuffix, + data: IMySuperPrefixEventsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/someop\`, + method: "POST", + query: query, + body: data, + ...params, + }), + }; + emojis = { + /** + * @description Lists all the emojis available to use on GitHub. + * + * @name EmojisList + * @request GET:/emojis + */ + emojisList: (params: RequestParams = {}) => + this.request({ + path: \`/emojis\`, + method: "GET", + ...params, + }), + }; + events = { + /** + * @description List public events. + * + * @name EventsList + * @request GET:/events + */ + eventsList: (params: RequestParams = {}) => + this.request({ + path: \`/events\`, + method: "GET", + ...params, + }), + }; + feeds = { + /** + * @description List Feeds. GitHub provides several timeline resources in Atom format. The Feeds API lists all the feeds available to the authenticating user. + * + * @name FeedsList + * @request GET:/feeds + */ + feedsList: (params: RequestParams = {}) => + this.request({ + path: \`/feeds\`, + method: "GET", + ...params, + }), + }; + gists = { + /** + * @description Create a commen + * + * @name CommentsCreate + * @request POST:/gists/{id}/comments + */ + commentsCreate: (id: number, body: IMySuperPrefixCommentBodyMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete a comment. + * + * @name CommentsDelete + * @request DELETE:/gists/{id}/comments/{commentId} + */ + commentsDelete: (id: number, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List comments on a gist. + * + * @name CommentsDetail + * @request GET:/gists/{id}/comments + */ + commentsDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments\`, + method: "GET", + ...params, + }), + + /** + * @description Get a single comment. + * + * @name CommentsDetail2 + * @request GET:/gists/{id}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: (id: number, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments/\${commentId}\`, + method: "GET", + ...params, + }), + + /** + * @description Edit a comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/gists/{id}/comments/{commentId} + */ + commentsPartialUpdate: ( + id: number, + commentId: number, + body: IMySuperPrefixCommentMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/gists/\${id}/comments/\${commentId}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Fork a gist. + * + * @name ForksCreate + * @request POST:/gists/{id}/forks + */ + forksCreate: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/forks\`, + method: "POST", + ...params, + }), + + /** + * @description Create a gist. + * + * @name GistsCreate + * @request POST:/gists + */ + gistsCreate: (body: IMySuperPrefixPostGistMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/gists\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Delete a gist. + * + * @name GistsDelete + * @request DELETE:/gists/{id} + */ + gistsDelete: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single gist. + * + * @name GistsDetail + * @request GET:/gists/{id} + */ + gistsDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}\`, + method: "GET", + ...params, + }), + + /** + * @description List the authenticated user's gists or if called anonymously, this will return all public gists. + * + * @name GistsList + * @request GET:/gists + */ + gistsList: (query: IMySuperPrefixGistsListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/gists\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Edit a gist. + * + * @name GistsPartialUpdate + * @request PATCH:/gists/{id} + */ + gistsPartialUpdate: (id: number, body: IMySuperPrefixPatchGistMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List all public gists. + * + * @name PublicList + * @request GET:/gists/public + */ + publicList: (query: IMySuperPrefixPublicListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/gists/public\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Unstar a gist. + * + * @name StarDelete + * @request DELETE:/gists/{id}/star + */ + starDelete: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/star\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if a gist is starred. + * + * @name StarDetail + * @request GET:/gists/{id}/star + */ + starDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/star\`, + method: "GET", + ...params, + }), + + /** + * @description List the authenticated user's starred gists. + * + * @name StarredList + * @request GET:/gists/starred + */ + starredList: (query: IMySuperPrefixStarredListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/gists/starred\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Star a gist. + * + * @name StarUpdate + * @request PUT:/gists/{id}/star + */ + starUpdate: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/star\`, + method: "PUT", + ...params, + }), + }; + gitignore = { + /** + * @description Get a single template. + * + * @name TemplatesDetail + * @request GET:/gitignore/templates/{language} + */ + templatesDetail: (language: string, params: RequestParams = {}) => + this.request({ + path: \`/gitignore/templates/\${language}\`, + method: "GET", + ...params, + }), + + /** + * @description Listing available templates. List all templates available to pass as an option when creating a repository. + * + * @name TemplatesList + * @request GET:/gitignore/templates + */ + templatesList: (params: RequestParams = {}) => + this.request({ + path: \`/gitignore/templates\`, + method: "GET", + ...params, + }), + }; + issues = { + /** + * @description List issues. List all issues across all the authenticated user's visible repositories. + * + * @name IssuesList + * @request GET:/issues + */ + issuesList: (query: IMySuperPrefixIssuesListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/issues\`, + method: "GET", + query: query, + ...params, + }), + }; + legacy = { + /** + * @description Find issues by state and keyword. + * + * @name IssuesSearchDetail + * @request GET:/legacy/issues/search/{owner}/{repository}/{state}/{keyword} + * @deprecated + */ + issuesSearchDetail: ( + keyword: string, + state: IMySuperPrefixIssuesSearchDetailParamsEnumMySuperSuffix, + owner: string, + repository: string, + params: RequestParams = {}, + ) => + this.request({ + path: \`/legacy/issues/search/\${owner}/\${repository}/\${state}/\${keyword}\`, + method: "GET", + ...params, + }), + + /** + * @description Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter. + * + * @name ReposSearchDetail + * @request GET:/legacy/repos/search/{keyword} + * @deprecated + */ + reposSearchDetail: ( + { keyword, ...query }: IMySuperPrefixReposSearchDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/legacy/repos/search/\${keyword}\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description This API call is added for compatibility reasons only. + * + * @name UserEmailDetail + * @request GET:/legacy/user/email/{email} + * @deprecated + */ + userEmailDetail: (email: string, params: RequestParams = {}) => + this.request({ + path: \`/legacy/user/email/\${email}\`, + method: "GET", + ...params, + }), + + /** + * @description Find users by keyword. + * + * @name UserSearchDetail + * @request GET:/legacy/user/search/{keyword} + * @deprecated + */ + userSearchDetail: ( + { keyword, ...query }: IMySuperPrefixUserSearchDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/legacy/user/search/\${keyword}\`, + method: "GET", + query: query, + ...params, + }), + }; + markdown = { + /** + * @description Render an arbitrary Markdown document + * + * @name MarkdownCreate + * @request POST:/markdown + */ + markdownCreate: (body: IMySuperPrefixMarkdownMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/markdown\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Render a Markdown document in raw mode + * + * @name PostMarkdown + * @request POST:/markdown/raw + */ + postMarkdown: (params: RequestParams = {}) => + this.request({ + path: \`/markdown/raw\`, + method: "POST", + type: ContentType.Text, + ...params, + }), + }; + meta = { + /** + * @description This gives some information about GitHub.com, the service. + * + * @name MetaList + * @request GET:/meta + */ + metaList: (params: RequestParams = {}) => + this.request({ + path: \`/meta\`, + method: "GET", + ...params, + }), + }; + networks = { + /** + * @description List public events for a network of repositories. + * + * @name EventsDetail + * @request GET:/networks/{owner}/{repo}/events + */ + eventsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/networks/\${owner}/\${repo}/events\`, + method: "GET", + ...params, + }), + }; + notifications = { + /** + * @description List your notifications. List all notifications for the current user, grouped by repository. + * + * @name NotificationsList + * @request GET:/notifications + */ + notificationsList: (query: IMySuperPrefixNotificationsListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/notifications\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Mark as read. Marking a notification as "read" removes it from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/notifications + */ + notificationsUpdate: (body: IMySuperPrefixNotificationMarkReadMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/notifications\`, + method: "PUT", + body: body, + ...params, + }), + + /** + * @description View a single thread. + * + * @name ThreadsDetail + * @request GET:/notifications/threads/{id} + */ + threadsDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}\`, + method: "GET", + ...params, + }), + + /** + * @description Mark a thread as read + * + * @name ThreadsPartialUpdate + * @request PATCH:/notifications/threads/{id} + */ + threadsPartialUpdate: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}\`, + method: "PATCH", + ...params, + }), + + /** + * @description Delete a Thread Subscription. + * + * @name ThreadsSubscriptionDelete + * @request DELETE:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDelete: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}/subscription\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a Thread Subscription. + * + * @name ThreadsSubscriptionDetail + * @request GET:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}/subscription\`, + method: "GET", + ...params, + }), + + /** + * @description Set a Thread Subscription. This lets you subscribe to a thread, or ignore it. Subscribing to a thread is unnecessary if the user is already subscribed to the repository. Ignoring a thread will mute all future notifications (until you comment or get @mentioned). + * + * @name ThreadsSubscriptionUpdate + * @request PUT:/notifications/threads/{id}/subscription + */ + threadsSubscriptionUpdate: ( + id: number, + body: IMySuperPrefixPutSubscriptionMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/notifications/threads/\${id}/subscription\`, + method: "PUT", + body: body, + type: ContentType.Json, + ...params, + }), + }; + orgs = { + /** + * @description List public events for an organization. + * + * @name EventsDetail + * @request GET:/orgs/{org}/events + */ + eventsDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/events\`, + method: "GET", + ...params, + }), + + /** + * @description List issues. List all issues for a given organization for the authenticated user. + * + * @name IssuesDetail + * @request GET:/orgs/{org}/issues + */ + issuesDetail: ({ org, ...query }: IMySuperPrefixIssuesDetailParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/issues\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Remove a member. Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. + * + * @name MembersDelete + * @request DELETE:/orgs/{org}/members/{username} + */ + membersDelete: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/members/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Members list. List all users who are members of an organization. A member is a user tha belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list. + * + * @name MembersDetail + * @request GET:/orgs/{org}/members + */ + membersDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/members\`, + method: "GET", + ...params, + }), + + /** + * @description Check if a user is, publicly or privately, a member of the organization. + * + * @name MembersDetail2 + * @request GET:/orgs/{org}/members/{username} + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/members/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Get an Organization. + * + * @name OrgsDetail + * @request GET:/orgs/{org} + */ + orgsDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}\`, + method: "GET", + ...params, + }), + + /** + * @description Edit an Organization. + * + * @name OrgsPartialUpdate + * @request PATCH:/orgs/{org} + */ + orgsPartialUpdate: (org: string, body: IMySuperPrefixPatchOrgMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Conceal a user's membership. + * + * @name PublicMembersDelete + * @request DELETE:/orgs/{org}/public_members/{username} + */ + publicMembersDelete: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Public members list. Members of an organization can choose to have their membership publicized or not. + * + * @name PublicMembersDetail + * @request GET:/orgs/{org}/public_members + */ + publicMembersDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members\`, + method: "GET", + ...params, + }), + + /** + * @description Check public membership. + * + * @name PublicMembersDetail2 + * @request GET:/orgs/{org}/public_members/{username} + * @originalName publicMembersDetail + * @duplicate + */ + publicMembersDetail2: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Publicize a user's membership. + * + * @name PublicMembersUpdate + * @request PUT:/orgs/{org}/public_members/{username} + */ + publicMembersUpdate: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members/\${username}\`, + method: "PUT", + ...params, + }), + + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/orgs/{org}/repos + */ + reposCreate: (org: string, body: IMySuperPrefixPostRepoMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/repos\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description List repositories for the specified org. + * + * @name ReposDetail + * @request GET:/orgs/{org}/repos + */ + reposDetail: ({ org, ...query }: IMySuperPrefixReposDetailParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/repos\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Create team. In order to create a team, the authenticated user must be an owner of organization. + * + * @name TeamsCreate + * @request POST:/orgs/{org}/teams + */ + teamsCreate: (org: string, body: IMySuperPrefixOrgTeamsPostMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/teams\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List teams. + * + * @name TeamsDetail + * @request GET:/orgs/{org}/teams + */ + teamsDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/teams\`, + method: "GET", + ...params, + }), + }; + rateLimit = { + /** + * @description Get your current rate limit status Note: Accessing this endpoint does not count against your rate limit. + * + * @name RateLimitList + * @request GET:/rate_limit + */ + rateLimitList: (params: RequestParams = {}) => + this.request({ + path: \`/rate_limit\`, + method: "GET", + ...params, + }), + }; + repos = { + /** + * @description List assignees. This call lists all the available assignees (owner + collaborators) to which issues may be assigned. + * + * @name AssigneesDetail + * @request GET:/repos/{owner}/{repo}/assignees + */ + assigneesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/assignees\`, + method: "GET", + ...params, + }), + + /** + * @description Check assignee. You may also check to see if a particular user is an assignee for a repository. + * + * @name AssigneesDetail2 + * @request GET:/repos/{owner}/{repo}/assignees/{assignee} + * @originalName assigneesDetail + * @duplicate + */ + assigneesDetail2: (owner: string, repo: string, assignee: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/assignees/\${assignee}\`, + method: "GET", + ...params, + }), + + /** + * @description Get list of branches + * + * @name BranchesDetail + * @request GET:/repos/{owner}/{repo}/branches + */ + branchesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/branches\`, + method: "GET", + ...params, + }), + + /** + * @description Get Branch + * + * @name BranchesDetail2 + * @request GET:/repos/{owner}/{repo}/branches/{branch} + * @originalName branchesDetail + * @duplicate + */ + branchesDetail2: (owner: string, repo: string, branch: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/branches/\${branch}\`, + method: "GET", + ...params, + }), + + /** + * @description Remove collaborator. + * + * @name CollaboratorsDelete + * @request DELETE:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsDelete: (owner: string, repo: string, user: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators/\${user}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List. When authenticating as an organization owner of an organization-owned repository, all organization owners are included in the list of collaborators. Otherwise, only users with access to the repository are returned in the collaborators list. + * + * @name CollaboratorsDetail + * @request GET:/repos/{owner}/{repo}/collaborators + */ + collaboratorsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators\`, + method: "GET", + ...params, + }), + + /** + * @description Check if user is a collaborator + * + * @name CollaboratorsDetail2 + * @request GET:/repos/{owner}/{repo}/collaborators/{user} + * @originalName collaboratorsDetail + * @duplicate + */ + collaboratorsDetail2: (owner: string, repo: string, user: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators/\${user}\`, + method: "GET", + ...params, + }), + + /** + * @description Add collaborator. + * + * @name CollaboratorsUpdate + * @request PUT:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsUpdate: (owner: string, repo: string, user: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators/\${user}\`, + method: "PUT", + ...params, + }), + + /** + * @description Delete a commit comment + * + * @name CommentsDelete + * @request DELETE:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsDelete: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List commit comments for a repository. Comments are ordered by ascending ID. + * + * @name CommentsDetail + * @request GET:/repos/{owner}/{repo}/comments + */ + commentsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments\`, + method: "GET", + ...params, + }), + + /** + * @description Get a single commit comment. + * + * @name CommentsDetail2 + * @request GET:/repos/{owner}/{repo}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, + method: "GET", + ...params, + }), + + /** + * @description Update a commit comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: IMySuperPrefixCommentBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description Create a commit comment. + * + * @name CommitsCommentsCreate + * @request POST:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsCreate: ( + owner: string, + repo: string, + shaCode: string, + body: IMySuperPrefixCommitCommentBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${shaCode}/comments\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List comments for a single commitList comments for a single commit. + * + * @name CommitsCommentsDetail + * @request GET:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${shaCode}/comments\`, + method: "GET", + ...params, + }), + + /** + * @description List commits on a repository. + * + * @name CommitsDetail + * @request GET:/repos/{owner}/{repo}/commits + */ + commitsDetail: ( + { owner, repo, ...query }: IMySuperPrefixCommitsDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Get a single commit. + * + * @name CommitsDetail2 + * @request GET:/repos/{owner}/{repo}/commits/{shaCode} + * @originalName commitsDetail + * @duplicate + */ + commitsDetail2: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${shaCode}\`, + method: "GET", + ...params, + }), + + /** + * @description Get the combined Status for a specific Ref The Combined status endpoint is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details. To access this endpoint during the preview period, you must provide a custom media type in the Accept header: application/vnd.github.she-hulk-preview+json + * + * @name CommitsStatusDetail + * @request GET:/repos/{owner}/{repo}/commits/{ref}/status + */ + commitsStatusDetail: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${ref}/status\`, + method: "GET", + ...params, + }), + + /** + * @description Compare two commits + * + * @name CompareDetail + * @request GET:/repos/{owner}/{repo}/compare/{baseId}...{headId} + */ + compareDetail: (owner: string, repo: string, baseId: string, headId: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/compare/\${baseId}...\${headId}\`, + method: "GET", + ...params, + }), + + /** + * @description Delete a file. This method deletes a file in a repository. + * + * @name ContentsDelete + * @request DELETE:/repos/{owner}/{repo}/contents/{path} + */ + contentsDelete: ( + owner: string, + repo: string, + path: string, + body: IMySuperPrefixDeleteFileBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contents/\${path}\`, + method: "DELETE", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get contents. This method returns the contents of a file or directory in a repository. Files and symlinks support a custom media type for getting the raw content. Directories and submodules do not support custom media types. Note: This API supports files up to 1 megabyte in size. Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/" + * + * @name ContentsDetail + * @request GET:/repos/{owner}/{repo}/contents/{path} + */ + contentsDetail: ( + { owner, repo, path, ...query }: IMySuperPrefixContentsDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contents/\${path}\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Create a file. + * + * @name ContentsUpdate + * @request PUT:/repos/{owner}/{repo}/contents/{path} + */ + contentsUpdate: ( + owner: string, + repo: string, + path: string, + body: IMySuperPrefixCreateFileBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contents/\${path}\`, + method: "PUT", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get list of contributors. + * + * @name ContributorsDetail + * @request GET:/repos/{owner}/{repo}/contributors + */ + contributorsDetail: ( + { owner, repo, ...query }: IMySuperPrefixContributorsDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contributors\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Users with push access can create a deployment for a given ref + * + * @name DeploymentsCreate + * @request POST:/repos/{owner}/{repo}/deployments + */ + deploymentsCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixDeploymentMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Users with pull access can view deployments for a repository + * + * @name DeploymentsDetail + * @request GET:/repos/{owner}/{repo}/deployments + */ + deploymentsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments\`, + method: "GET", + ...params, + }), + + /** + * @description Create a Deployment Status Users with push access can create deployment statuses for a given deployment: + * + * @name DeploymentsStatusesCreate + * @request POST:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesCreate: ( + owner: string, + repo: string, + id: number, + body: IMySuperPrefixDeploymentStatusesCreateMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments/\${id}/statuses\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Users with pull access can view deployment statuses for a deployment + * + * @name DeploymentsStatusesDetail + * @request GET:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesDetail: (owner: string, repo: string, id: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments/\${id}/statuses\`, + method: "GET", + ...params, + }), + + /** + * @description Deprecated. Delete a download. + * + * @name DownloadsDelete + * @request DELETE:/repos/{owner}/{repo}/downloads/{downloadId} + * @deprecated + */ + downloadsDelete: (owner: string, repo: string, downloadId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/downloads/\${downloadId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Deprecated. List downloads for a repository. + * + * @name DownloadsDetail + * @request GET:/repos/{owner}/{repo}/downloads + * @deprecated + */ + downloadsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/downloads\`, + method: "GET", + ...params, + }), + + /** + * @description Deprecated. Get a single download. + * + * @name DownloadsDetail2 + * @request GET:/repos/{owner}/{repo}/downloads/{downloadId} + * @deprecated + * @originalName downloadsDetail + * @duplicate + */ + downloadsDetail2: (owner: string, repo: string, downloadId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/downloads/\${downloadId}\`, + method: "GET", + ...params, + }), + + /** + * @description Get list of repository events. + * + * @name EventsDetail + * @request GET:/repos/{owner}/{repo}/events + */ + eventsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/events\`, + method: "GET", + ...params, + }), + + /** + * @description Create a fork. Forking a Repository happens asynchronously. Therefore, you may have to wai a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact Support. + * + * @name ForksCreate + * @request POST:/repos/{owner}/{repo}/forks + */ + forksCreate: (owner: string, repo: string, body: IMySuperPrefixForkBodyMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/forks\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List forks. + * + * @name ForksDetail + * @request GET:/repos/{owner}/{repo}/forks + */ + forksDetail: ( + { owner, repo, ...query }: IMySuperPrefixForksDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/forks\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Create a Blob. + * + * @name GitBlobsCreate + * @request POST:/repos/{owner}/{repo}/git/blobs + */ + gitBlobsCreate: (owner: string, repo: string, body: IMySuperPrefixBlobMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/blobs\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get a Blob. Since blobs can be any arbitrary binary data, the input and responses for the blob API takes an encoding parameter that can be either utf-8 or base64. If your data cannot be losslessly sent as a UTF-8 string, you can base64 encode it. + * + * @name GitBlobsDetail + * @request GET:/repos/{owner}/{repo}/git/blobs/{shaCode} + */ + gitBlobsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/blobs/\${shaCode}\`, + method: "GET", + ...params, + }), + + /** + * @description Create a Commit. + * + * @name GitCommitsCreate + * @request POST:/repos/{owner}/{repo}/git/commits + */ + gitCommitsCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixRepoCommitBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/commits\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get a Commit. + * + * @name GitCommitsDetail + * @request GET:/repos/{owner}/{repo}/git/commits/{shaCode} + */ + gitCommitsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/commits/\${shaCode}\`, + method: "GET", + ...params, + }), + + /** + * @description Create a Reference + * + * @name GitRefsCreate + * @request POST:/repos/{owner}/{repo}/git/refs + */ + gitRefsCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixRefsBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Delete a Reference Example: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a Example: Deleting a tag: DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0 + * + * @name GitRefsDelete + * @request DELETE:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsDelete: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get all References + * + * @name GitRefsDetail + * @request GET:/repos/{owner}/{repo}/git/refs + */ + gitRefsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs\`, + method: "GET", + ...params, + }), + + /** + * @description Get a Reference + * + * @name GitRefsDetail2 + * @request GET:/repos/{owner}/{repo}/git/refs/{ref} + * @originalName gitRefsDetail + * @duplicate + */ + gitRefsDetail2: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, + method: "GET", + ...params, + }), + + /** + * @description Update a Reference + * + * @name GitRefsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsPartialUpdate: ( + owner: string, + repo: string, + ref: string, + body: IMySuperPrefixGitRefPatchMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Create a Tag Object. Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then create the refs/tags/[tag] reference. If you want to create a lightweight tag, you only have to create the tag reference - this call would be unnecessary. + * + * @name GitTagsCreate + * @request POST:/repos/{owner}/{repo}/git/tags + */ + gitTagsCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixTagBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/tags\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get a Tag. + * + * @name GitTagsDetail + * @request GET:/repos/{owner}/{repo}/git/tags/{shaCode} + */ + gitTagsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/tags/\${shaCode}\`, + method: "GET", + ...params, + }), + + /** + * @description Create a Tree. The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out. + * + * @name GitTreesCreate + * @request POST:/repos/{owner}/{repo}/git/trees + */ + gitTreesCreate: (owner: string, repo: string, body: IMySuperPrefixTreeMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/trees\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get a Tree. + * + * @name GitTreesDetail + * @request GET:/repos/{owner}/{repo}/git/trees/{shaCode} + */ + gitTreesDetail: ( + { owner, repo, shaCode, ...query }: IMySuperPrefixGitTreesDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/trees/\${shaCode}\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Create a hook. + * + * @name HooksCreate + * @request POST:/repos/{owner}/{repo}/hooks + */ + hooksCreate: (owner: string, repo: string, body: IMySuperPrefixHookBodyMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete a hook. + * + * @name HooksDelete + * @request DELETE:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksDelete: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get list of hooks. + * + * @name HooksDetail + * @request GET:/repos/{owner}/{repo}/hooks + */ + hooksDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks\`, + method: "GET", + ...params, + }), + + /** + * @description Get single hook. + * + * @name HooksDetail2 + * @request GET:/repos/{owner}/{repo}/hooks/{hookId} + * @originalName hooksDetail + * @duplicate + */ + hooksDetail2: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, + method: "GET", + ...params, + }), + + /** + * @description Edit a hook. + * + * @name HooksPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksPartialUpdate: ( + owner: string, + repo: string, + hookId: number, + body: IMySuperPrefixHookBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description Test a push hook. This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook is not subscribed to push events, the server will respond with 204 but no test POST will be generated. Note: Previously /repos/:owner/:repo/hooks/:id/tes + * + * @name HooksTestsCreate + * @request POST:/repos/{owner}/{repo}/hooks/{hookId}/tests + */ + hooksTestsCreate: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}/tests\`, + method: "POST", + ...params, + }), + + /** + * @description Create a comment. + * + * @name IssuesCommentsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/comments + */ + issuesCommentsCreate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixCommentBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/comments\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete a comment. + * + * @name IssuesCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsDelete: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List comments in a repository. + * + * @name IssuesCommentsDetail + * @request GET:/repos/{owner}/{repo}/issues/comments + */ + issuesCommentsDetail: ( + { owner, repo, ...query }: IMySuperPrefixIssuesCommentsDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Get a single comment. + * + * @name IssuesCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/comments/{commentId} + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail2: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, + method: "GET", + ...params, + }), + + /** + * @description List comments on an issue. + * + * @name IssuesCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/comments + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail3: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/comments\`, + method: "GET", + ...params, + }), + + /** + * @description Edit a comment. + * + * @name IssuesCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: IMySuperPrefixCommentBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description Create an issue. Any user with pull access to a repository can create an issue. + * + * @name IssuesCreate + * @request POST:/repos/{owner}/{repo}/issues + */ + issuesCreate: (owner: string, repo: string, body: IMySuperPrefixIssueMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description List issues for a repository. + * + * @name IssuesDetail + * @request GET:/repos/{owner}/{repo}/issues + */ + issuesDetail: ( + { owner, repo, ...query }: IMySuperPrefixIssuesDetailParams2MySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Get a single issue + * + * @name IssuesDetail2 + * @request GET:/repos/{owner}/{repo}/issues/{number} + * @originalName issuesDetail + * @duplicate + */ + issuesDetail2: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}\`, + method: "GET", + ...params, + }), + + /** + * @description List issue events for a repository. + * + * @name IssuesEventsDetail + * @request GET:/repos/{owner}/{repo}/issues/events + */ + issuesEventsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/events\`, + method: "GET", + ...params, + }), + + /** + * @description Get a single event. + * + * @name IssuesEventsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/events/{eventId} + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail2: (owner: string, repo: string, eventId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/events/\${eventId}\`, + method: "GET", + ...params, + }), + + /** + * @description List events for an issue. + * + * @name IssuesEventsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/events + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail3: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/events\`, + method: "GET", + ...params, + }), + + /** + * @description Add labels to an issue. + * + * @name IssuesLabelsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsCreate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixEmailsPostMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Remove all labels from an issue. + * + * @name IssuesLabelsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDelete: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "DELETE", + ...params, + }), + + /** + * @description Remove a label from an issue. + * + * @name IssuesLabelsDelete2 + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels/{name} + * @originalName issuesLabelsDelete + * @duplicate + */ + issuesLabelsDelete2: (owner: string, repo: string, number: number, name: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels/\${name}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List labels on an issue. + * + * @name IssuesLabelsDetail + * @request GET:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "GET", + ...params, + }), + + /** + * @description Replace all labels for an issue. Sending an empty array ([]) will remove all Labels from the Issue. + * + * @name IssuesLabelsUpdate + * @request PUT:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsUpdate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixEmailsPostMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "PUT", + body: body, + ...params, + }), + + /** + * @description Edit an issue. Issue owners and users with push access can edit an issue. + * + * @name IssuesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/{number} + */ + issuesPartialUpdate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixIssueMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description Create a key. + * + * @name KeysCreate + * @request POST:/repos/{owner}/{repo}/keys + */ + keysCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixUserKeysPostMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete a key. + * + * @name KeysDelete + * @request DELETE:/repos/{owner}/{repo}/keys/{keyId} + */ + keysDelete: (owner: string, repo: string, keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys/\${keyId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get list of keys. + * + * @name KeysDetail + * @request GET:/repos/{owner}/{repo}/keys + */ + keysDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys\`, + method: "GET", + ...params, + }), + + /** + * @description Get a key + * + * @name KeysDetail2 + * @request GET:/repos/{owner}/{repo}/keys/{keyId} + * @originalName keysDetail + * @duplicate + */ + keysDetail2: (owner: string, repo: string, keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys/\${keyId}\`, + method: "GET", + ...params, + }), + + /** + * @description Create a label. + * + * @name LabelsCreate + * @request POST:/repos/{owner}/{repo}/labels + */ + labelsCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixEmailsPostMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete a label. + * + * @name LabelsDelete + * @request DELETE:/repos/{owner}/{repo}/labels/{name} + */ + labelsDelete: (owner: string, repo: string, name: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List all labels for this repository. + * + * @name LabelsDetail + * @request GET:/repos/{owner}/{repo}/labels + */ + labelsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels\`, + method: "GET", + ...params, + }), + + /** + * @description Get a single label. + * + * @name LabelsDetail2 + * @request GET:/repos/{owner}/{repo}/labels/{name} + * @originalName labelsDetail + * @duplicate + */ + labelsDetail2: (owner: string, repo: string, name: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, + method: "GET", + ...params, + }), + + /** + * @description Update a label. + * + * @name LabelsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/labels/{name} + */ + labelsPartialUpdate: ( + owner: string, + repo: string, + name: string, + body: IMySuperPrefixEmailsPostMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description List languages. List languages for the specified repository. The value on the right of a language is the number of bytes of code written in that language. + * + * @name LanguagesDetail + * @request GET:/repos/{owner}/{repo}/languages + */ + languagesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/languages\`, + method: "GET", + ...params, + }), + + /** + * @description Perform a merge. + * + * @name MergesCreate + * @request POST:/repos/{owner}/{repo}/merges + */ + mergesCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixMergesBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/merges\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Create a milestone. + * + * @name MilestonesCreate + * @request POST:/repos/{owner}/{repo}/milestones + */ + milestonesCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixMilestoneUpdateMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete a milestone. + * + * @name MilestonesDelete + * @request DELETE:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesDelete: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List milestones for a repository. + * + * @name MilestonesDetail + * @request GET:/repos/{owner}/{repo}/milestones + */ + milestonesDetail: ( + { owner, repo, ...query }: IMySuperPrefixMilestonesDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Get a single milestone. + * + * @name MilestonesDetail2 + * @request GET:/repos/{owner}/{repo}/milestones/{number} + * @originalName milestonesDetail + * @duplicate + */ + milestonesDetail2: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}\`, + method: "GET", + ...params, + }), + + /** + * @description Get labels for every issue in a milestone. + * + * @name MilestonesLabelsDetail + * @request GET:/repos/{owner}/{repo}/milestones/{number}/labels + */ + milestonesLabelsDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}/labels\`, + method: "GET", + ...params, + }), + + /** + * @description Update a milestone. + * + * @name MilestonesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesPartialUpdate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixMilestoneUpdateMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description List your notifications in a repository List all notifications for the current user. + * + * @name NotificationsDetail + * @request GET:/repos/{owner}/{repo}/notifications + */ + notificationsDetail: ( + { owner, repo, ...query }: IMySuperPrefixNotificationsDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/notifications\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Mark notifications as read in a repository. Marking all notifications in a repository as "read" removes them from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/repos/{owner}/{repo}/notifications + */ + notificationsUpdate: ( + owner: string, + repo: string, + body: IMySuperPrefixNotificationMarkReadMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/notifications\`, + method: "PUT", + body: body, + ...params, + }), + + /** + * @description Create a comment. #TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ ) description: | Alternative Input. Instead of passing commit_id, path, and position you can reply to an existing Pull Request Comment like this: body Required string in_reply_to Required number - Comment id to reply to. + * + * @name PullsCommentsCreate + * @request POST:/repos/{owner}/{repo}/pulls/{number}/comments + */ + pullsCommentsCreate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixPullsCommentPostMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/comments\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Delete a comment. + * + * @name PullsCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsDelete: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List comments in a repository. By default, Review Comments are ordered by ascending ID. + * + * @name PullsCommentsDetail + * @request GET:/repos/{owner}/{repo}/pulls/comments + */ + pullsCommentsDetail: ( + { owner, repo, ...query }: IMySuperPrefixPullsCommentsDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Get a single comment. + * + * @name PullsCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/comments/{commentId} + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail2: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, + method: "GET", + ...params, + }), + + /** + * @description List comments on a pull request. + * + * @name PullsCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/pulls/{number}/comments + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail3: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/comments\`, + method: "GET", + ...params, + }), + + /** + * @description Edit a comment. + * + * @name PullsCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: IMySuperPrefixCommentBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description List commits on a pull request. + * + * @name PullsCommitsDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/commits + */ + pullsCommitsDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/commits\`, + method: "GET", + ...params, + }), + + /** + * @description Create a pull request. + * + * @name PullsCreate + * @request POST:/repos/{owner}/{repo}/pulls + */ + pullsCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixPullsPostMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List pull requests. + * + * @name PullsDetail + * @request GET:/repos/{owner}/{repo}/pulls + */ + pullsDetail: ( + { owner, repo, ...query }: IMySuperPrefixPullsDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Get a single pull request. + * + * @name PullsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/{number} + * @originalName pullsDetail + * @duplicate + */ + pullsDetail2: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}\`, + method: "GET", + ...params, + }), + + /** + * @description List pull requests files. + * + * @name PullsFilesDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/files + */ + pullsFilesDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/files\`, + method: "GET", + ...params, + }), + + /** + * @description Get if a pull request has been merged. + * + * @name PullsMergeDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/merge\`, + method: "GET", + ...params, + }), + + /** + * @description Merge a pull request (Merge Button's) + * + * @name PullsMergeUpdate + * @request PUT:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeUpdate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixMergePullBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/merge\`, + method: "PUT", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Update a pull request. + * + * @name PullsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/{number} + */ + pullsPartialUpdate: ( + owner: string, + repo: string, + number: number, + body: IMySuperPrefixPullUpdateMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get the README. This method returns the preferred README for a repository. + * + * @name ReadmeDetail + * @request GET:/repos/{owner}/{repo}/readme + */ + readmeDetail: ( + { owner, repo, ...query }: IMySuperPrefixReadmeDetailParamsMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/readme\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Delete a release asset + * + * @name ReleasesAssetsDelete + * @request DELETE:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDelete: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/assets/\${id}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single release asset + * + * @name ReleasesAssetsDetail + * @request GET:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDetail: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/assets/\${id}\`, + method: "GET", + ...params, + }), + + /** + * @description List assets for a release + * + * @name ReleasesAssetsDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id}/assets + * @originalName releasesAssetsDetail + * @duplicate + */ + releasesAssetsDetail2: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}/assets\`, + method: "GET", + ...params, + }), + + /** + * @description Edit a release asset Users with push access to the repository can edit a release asset. + * + * @name ReleasesAssetsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsPartialUpdate: ( + owner: string, + repo: string, + id: string, + body: IMySuperPrefixAssetPatchMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/assets/\${id}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Create a release Users with push access to the repository can create a release. + * + * @name ReleasesCreate + * @request POST:/repos/{owner}/{repo}/releases + */ + releasesCreate: ( + owner: string, + repo: string, + body: IMySuperPrefixReleaseCreateMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Users with push access to the repository can delete a release. + * + * @name ReleasesDelete + * @request DELETE:/repos/{owner}/{repo}/releases/{id} + */ + releasesDelete: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Users with push access to the repository will receive all releases (i.e., published releases and draft releases). Users with pull access will receive published releases only + * + * @name ReleasesDetail + * @request GET:/repos/{owner}/{repo}/releases + */ + releasesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases\`, + method: "GET", + ...params, + }), + + /** + * @description Get a single release + * + * @name ReleasesDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id} + * @originalName releasesDetail + * @duplicate + */ + releasesDetail2: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}\`, + method: "GET", + ...params, + }), + + /** + * @description Users with push access to the repository can edit a release + * + * @name ReleasesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/{id} + */ + releasesPartialUpdate: ( + owner: string, + repo: string, + id: string, + body: IMySuperPrefixReleaseCreateMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}\`, + method: "PATCH", + body: body, + ...params, + }), + + /** + * @description Delete a Repository. Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required. + * + * @name ReposDelete + * @request DELETE:/repos/{owner}/{repo} + */ + reposDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get repository. + * + * @name ReposDetail + * @request GET:/repos/{owner}/{repo} + */ + reposDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}\`, + method: "GET", + ...params, + }), + + /** + * @description Get archive link. This method will return a 302 to a URL to download a tarball or zipball archive for a repository. Please make sure your HTTP framework is configured to follow redirects or you will need to use the Location header to make a second GET request. Note: For private repositories, these links are temporary and expire quickly. + * + * @name ReposDetail2 + * @request GET:/repos/{owner}/{repo}/{archive_format}/{path} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: ( + owner: string, + repo: string, + archiveFormat: IMySuperPrefixReposDetail2ParamsEnumMySuperSuffix, + path: string, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/\${archiveFormat}/\${path}\`, + method: "GET", + ...params, + }), + + /** + * @description Edit repository. + * + * @name ReposPartialUpdate + * @request PATCH:/repos/{owner}/{repo} + */ + reposPartialUpdate: ( + owner: string, + repo: string, + body: IMySuperPrefixRepoEditMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List Stargazers. + * + * @name StargazersDetail + * @request GET:/repos/{owner}/{repo}/stargazers + */ + stargazersDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stargazers\`, + method: "GET", + ...params, + }), + + /** + * @description Get the number of additions and deletions per week. Returns a weekly aggregate of the number of additions and deletions pushed to a repository. + * + * @name StatsCodeFrequencyDetail + * @request GET:/repos/{owner}/{repo}/stats/code_frequency + */ + statsCodeFrequencyDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/code_frequency\`, + method: "GET", + ...params, + }), + + /** + * @description Get the last year of commit activity data. Returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday. + * + * @name StatsCommitActivityDetail + * @request GET:/repos/{owner}/{repo}/stats/commit_activity + */ + statsCommitActivityDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/commit_activity\`, + method: "GET", + ...params, + }), + + /** + * @description Get contributors list with additions, deletions, and commit counts. + * + * @name StatsContributorsDetail + * @request GET:/repos/{owner}/{repo}/stats/contributors + */ + statsContributorsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/contributors\`, + method: "GET", + ...params, + }), + + /** + * @description Get the weekly commit count for the repo owner and everyone else. + * + * @name StatsParticipationDetail + * @request GET:/repos/{owner}/{repo}/stats/participation + */ + statsParticipationDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/participation\`, + method: "GET", + ...params, + }), + + /** + * @description Get the number of commits per hour in each day. Each array contains the day number, hour number, and number of commits 0-6 Sunday - Saturday 0-23 Hour of day Number of commits For example, [2, 14, 25] indicates that there were 25 total commits, during the 2.00pm hour on Tuesdays. All times are based on the time zone of individual commits. + * + * @name StatsPunchCardDetail + * @request GET:/repos/{owner}/{repo}/stats/punch_card + */ + statsPunchCardDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/punch_card\`, + method: "GET", + ...params, + }), + + /** + * @description Create a Status. + * + * @name StatusesCreate + * @request POST:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesCreate: ( + owner: string, + repo: string, + ref: string, + body: IMySuperPrefixHeadBranchMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/statuses/\${ref}\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List Statuses for a specific Ref. + * + * @name StatusesDetail + * @request GET:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesDetail: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/statuses/\${ref}\`, + method: "GET", + ...params, + }), + + /** + * @description List watchers. + * + * @name SubscribersDetail + * @request GET:/repos/{owner}/{repo}/subscribers + */ + subscribersDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscribers\`, + method: "GET", + ...params, + }), + + /** + * @description Delete a Repository Subscription. + * + * @name SubscriptionDelete + * @request DELETE:/repos/{owner}/{repo}/subscription + */ + subscriptionDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscription\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a Repository Subscription. + * + * @name SubscriptionDetail + * @request GET:/repos/{owner}/{repo}/subscription + */ + subscriptionDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscription\`, + method: "GET", + ...params, + }), + + /** + * @description Set a Repository Subscription + * + * @name SubscriptionUpdate + * @request PUT:/repos/{owner}/{repo}/subscription + */ + subscriptionUpdate: ( + owner: string, + repo: string, + body: IMySuperPrefixSubscriptionBodyMySuperSuffix, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscription\`, + method: "PUT", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Get list of tags. + * + * @name TagsDetail + * @request GET:/repos/{owner}/{repo}/tags + */ + tagsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/tags\`, + method: "GET", + ...params, + }), + + /** + * @description Get list of teams + * + * @name TeamsDetail + * @request GET:/repos/{owner}/{repo}/teams + */ + teamsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/teams\`, + method: "GET", + ...params, + }), + + /** + * @description List Stargazers. New implementation. + * + * @name WatchersDetail + * @request GET:/repos/{owner}/{repo}/watchers + */ + watchersDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/watchers\`, + method: "GET", + ...params, + }), + }; + repositories = { + /** + * @description List all public repositories. This provides a dump of every public repository, in the order that they were created. Note: Pagination is powered exclusively by the since parameter. is the Link header to get the URL for the next page of repositories. + * + * @name RepositoriesList + * @request GET:/repositories + */ + repositoriesList: (query: IMySuperPrefixRepositoriesListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/repositories\`, + method: "GET", + query: query, + ...params, + }), + }; + search = { + /** + * @description Search code. + * + * @name CodeList + * @request GET:/search/code + */ + codeList: (query: IMySuperPrefixCodeListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/search/code\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Find issues by state and keyword. (This method returns up to 100 results per page.) + * + * @name IssuesList + * @request GET:/search/issues + */ + issuesList: (query: IMySuperPrefixIssuesListParams2MySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/search/issues\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Search repositories. + * + * @name RepositoriesList + * @request GET:/search/repositories + */ + repositoriesList: (query: IMySuperPrefixRepositoriesListParams2MySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/search/repositories\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Search users. + * + * @name UsersList + * @request GET:/search/users + */ + usersList: (query: IMySuperPrefixUsersListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/search/users\`, + method: "GET", + query: query, + ...params, + }), + }; + teams = { + /** + * @description The "Remove team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Remove team membership API instead. It allows you to remove both active and pending memberships. Remove team member. In order to remove a user from a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. NOTE This does not delete the user, it just remove them from the team. + * + * @name MembersDelete + * @request DELETE:/teams/{teamId}/members/{username} + * @deprecated + */ + membersDelete: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List team members. In order to list members in a team, the authenticated user must be a member of the team. + * + * @name MembersDetail + * @request GET:/teams/{teamId}/members + */ + membersDetail: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members\`, + method: "GET", + ...params, + }), + + /** + * @description The "Get team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Get team membership API instead. It allows you to get both active and pending memberships. Get team member. In order to get if a user is a member of a team, the authenticated user mus be a member of the team. + * + * @name MembersDetail2 + * @request GET:/teams/{teamId}/members/{username} + * @deprecated + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Remove team membership. In order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team. + * + * @name MembershipsDelete + * @request DELETE:/teams/{teamId}/memberships/{username} + */ + membershipsDelete: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/memberships/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get team membership. In order to get a user's membership with a team, the authenticated user must be a member of the team or an owner of the team's organization. + * + * @name MembershipsDetail + * @request GET:/teams/{teamId}/memberships/{username} + */ + membershipsDetail: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/memberships/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Add team membership. In order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. If the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team. If the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the 'pending' state until the user accepts the invitation, at which point the membership will transition to the 'active' state and the user will be added as a member of the team. + * + * @name MembershipsUpdate + * @request PUT:/teams/{teamId}/memberships/{username} + */ + membershipsUpdate: (teamId: number, username: string, params: RequestParams = {}) => + this.request( + { + path: \`/teams/\${teamId}/memberships/\${username}\`, + method: "PUT", + ...params, + }, + ), + + /** + * @description The API (described below) is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Add team membership API instead. It allows you to invite new organization members to your teams. Add team member. In order to add a user to a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. + * + * @name MembersUpdate + * @request PUT:/teams/{teamId}/members/{username} + * @deprecated + */ + membersUpdate: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members/\${username}\`, + method: "PUT", + ...params, + }), + + /** + * @description In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team. + * + * @name ReposDelete + * @request DELETE:/teams/{teamId}/repos/{owner}/{repo} + */ + reposDelete: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description List team repos + * + * @name ReposDetail + * @request GET:/teams/{teamId}/repos + */ + reposDetail: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos\`, + method: "GET", + ...params, + }), + + /** + * @description Check if a team manages a repository + * + * @name ReposDetail2 + * @request GET:/teams/{teamId}/repos/{owner}/{repo} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, + method: "GET", + ...params, + }), + + /** + * @description In order to add a repository to a team, the authenticated user must be an owner of the org that the team is associated with. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization. + * + * @name ReposUpdate + * @request PUT:/teams/{teamId}/repos/{owner}/{repo} + */ + reposUpdate: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, + method: "PUT", + ...params, + }), + + /** + * @description Delete team. In order to delete a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsDelete + * @request DELETE:/teams/{teamId} + */ + teamsDelete: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get team. + * + * @name TeamsDetail + * @request GET:/teams/{teamId} + */ + teamsDetail: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}\`, + method: "GET", + ...params, + }), + + /** + * @description Edit team. In order to edit a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsPartialUpdate + * @request PATCH:/teams/{teamId} + */ + teamsPartialUpdate: (teamId: number, body: IMySuperPrefixEditTeamMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + }; + user = { + /** + * @description Add email address(es). You can post a single email address or an array of addresses. + * + * @name EmailsCreate + * @request POST:/user/emails + */ + emailsCreate: (body: IMySuperPrefixEmailsPostMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user/emails\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete email address(es). You can include a single email address or an array of addresses. + * + * @name EmailsDelete + * @request DELETE:/user/emails + */ + emailsDelete: (body: IMySuperPrefixUserEmailsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user/emails\`, + method: "DELETE", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List email addresses for a user. In the final version of the API, this method will return an array of hashes with extended information for each email address indicating if the address has been verified and if it's primary email address for GitHub. Until API v3 is finalized, use the application/vnd.github.v3 media type to get other response format. + * + * @name EmailsList + * @request GET:/user/emails + */ + emailsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/emails\`, + method: "GET", + ...params, + }), + + /** + * @description List the authenticated user's followers + * + * @name FollowersList + * @request GET:/user/followers + */ + followersList: (params: RequestParams = {}) => + this.request({ + path: \`/user/followers\`, + method: "GET", + ...params, + }), + + /** + * @description Unfollow a user. Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingDelete + * @request DELETE:/user/following/{username} + */ + followingDelete: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/user/following/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if you are following a user. + * + * @name FollowingDetail + * @request GET:/user/following/{username} + */ + followingDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/user/following/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description List who the authenticated user is following. + * + * @name FollowingList + * @request GET:/user/following + */ + followingList: (params: RequestParams = {}) => + this.request({ + path: \`/user/following\`, + method: "GET", + ...params, + }), + + /** + * @description Follow a user. Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingUpdate + * @request PUT:/user/following/{username} + */ + followingUpdate: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/user/following/\${username}\`, + method: "PUT", + ...params, + }), + + /** + * @description List issues. List all issues across owned and member repositories for the authenticated user. + * + * @name IssuesList + * @request GET:/user/issues + */ + issuesList: (query: IMySuperPrefixIssuesListParams4MySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user/issues\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Create a public key. + * + * @name KeysCreate + * @request POST:/user/keys + */ + keysCreate: (body: IMySuperPrefixUserKeysPostMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user/keys\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description Delete a public key. Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope. + * + * @name KeysDelete + * @request DELETE:/user/keys/{keyId} + */ + keysDelete: (keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/user/keys/\${keyId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single public key. + * + * @name KeysDetail + * @request GET:/user/keys/{keyId} + */ + keysDetail: (keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/user/keys/\${keyId}\`, + method: "GET", + ...params, + }), + + /** + * @description List your public keys. Lists the current user's keys. Management of public keys via the API requires that you are authenticated through basic auth, or OAuth with the 'user', 'write:public_key' scopes. + * + * @name KeysList + * @request GET:/user/keys + */ + keysList: (params: RequestParams = {}) => + this.request({ + path: \`/user/keys\`, + method: "GET", + ...params, + }), + + /** + * @description List public and private organizations for the authenticated user. + * + * @name OrgsList + * @request GET:/user/orgs + */ + orgsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/orgs\`, + method: "GET", + ...params, + }), + + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/user/repos + */ + reposCreate: (body: IMySuperPrefixPostRepoMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user/repos\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description List repositories for the authenticated user. Note that this does not include repositories owned by organizations which the user can access. You can lis user organizations and list organization repositories separately. + * + * @name ReposList + * @request GET:/user/repos + */ + reposList: (query: IMySuperPrefixReposListParamsMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user/repos\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Unstar a repository + * + * @name StarredDelete + * @request DELETE:/user/starred/{owner}/{repo} + */ + starredDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/starred/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if you are starring a repository. + * + * @name StarredDetail + * @request GET:/user/starred/{owner}/{repo} + */ + starredDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/starred/\${owner}/\${repo}\`, + method: "GET", + ...params, + }), + + /** + * @description List repositories being starred by the authenticated user. + * + * @name StarredList + * @request GET:/user/starred + */ + starredList: (query: IMySuperPrefixStarredListParams2MySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user/starred\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description Star a repository. + * + * @name StarredUpdate + * @request PUT:/user/starred/{owner}/{repo} + */ + starredUpdate: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/starred/\${owner}/\${repo}\`, + method: "PUT", + ...params, + }), + + /** + * @description Stop watching a repository + * + * @name SubscriptionsDelete + * @request DELETE:/user/subscriptions/{owner}/{repo} + * @deprecated + */ + subscriptionsDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if you are watching a repository. + * + * @name SubscriptionsDetail + * @request GET:/user/subscriptions/{owner}/{repo} + * @deprecated + */ + subscriptionsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions/\${owner}/\${repo}\`, + method: "GET", + ...params, + }), + + /** + * @description List repositories being watched by the authenticated user. + * + * @name SubscriptionsList + * @request GET:/user/subscriptions + */ + subscriptionsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions\`, + method: "GET", + ...params, + }), + + /** + * @description Watch a repository. + * + * @name SubscriptionsUpdate + * @request PUT:/user/subscriptions/{owner}/{repo} + * @deprecated + */ + subscriptionsUpdate: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions/\${owner}/\${repo}\`, + method: "PUT", + ...params, + }), + + /** + * @description List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user or repo scope when authenticating via OAuth. + * + * @name TeamsList + * @request GET:/user/teams + */ + teamsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/teams\`, + method: "GET", + ...params, + }), + + /** + * @description Get the authenticated user. + * + * @name UserList + * @request GET:/user + */ + userList: (params: RequestParams = {}) => + this.request({ + path: \`/user\`, + method: "GET", + ...params, + }), + + /** + * @description Update the authenticated user. + * + * @name UserPartialUpdate + * @request PATCH:/user + */ + userPartialUpdate: (body: IMySuperPrefixUserUpdateMySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/user\`, + method: "PATCH", + body: body, + type: ContentType.Json, + ...params, + }), + }; + users = { + /** + * @description If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. + * + * @name EventsDetail + * @request GET:/users/{username}/events + */ + eventsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/events\`, + method: "GET", + ...params, + }), + + /** + * @description This is the user's organization dashboard. You must be authenticated as the user to view this. + * + * @name EventsOrgsDetail + * @request GET:/users/{username}/events/orgs/{org} + */ + eventsOrgsDetail: (username: string, org: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/events/orgs/\${org}\`, + method: "GET", + ...params, + }), + + /** + * @description List a user's followers + * + * @name FollowersDetail + * @request GET:/users/{username}/followers + */ + followersDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/followers\`, + method: "GET", + ...params, + }), + + /** + * @description Check if one user follows another. + * + * @name FollowingDetail + * @request GET:/users/{username}/following/{targetUser} + */ + followingDetail: (username: string, targetUser: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/following/\${targetUser}\`, + method: "GET", + ...params, + }), + + /** + * @description List a users gists. + * + * @name GistsDetail + * @request GET:/users/{username}/gists + */ + gistsDetail: ({ username, ...query }: IMySuperPrefixGistsDetailParams1MySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/gists\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description List public keys for a user. Lists the verified public keys for a user. This is accessible by anyone. + * + * @name KeysDetail + * @request GET:/users/{username}/keys + */ + keysDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/keys\`, + method: "GET", + ...params, + }), + + /** + * @description List all public organizations for a user. + * + * @name OrgsDetail + * @request GET:/users/{username}/orgs + */ + orgsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/orgs\`, + method: "GET", + ...params, + }), + + /** + * @description These are events that you'll only see public events. + * + * @name ReceivedEventsDetail + * @request GET:/users/{username}/received_events + */ + receivedEventsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/received_events\`, + method: "GET", + ...params, + }), + + /** + * @description List public events that a user has received + * + * @name ReceivedEventsPublicDetail + * @request GET:/users/{username}/received_events/public + */ + receivedEventsPublicDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/received_events/public\`, + method: "GET", + ...params, + }), + + /** + * @description List public repositories for the specified user. + * + * @name ReposDetail + * @request GET:/users/{username}/repos + */ + reposDetail: ({ username, ...query }: IMySuperPrefixReposDetailParams4MySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/repos\`, + method: "GET", + query: query, + ...params, + }), + + /** + * @description List repositories being starred by a user. + * + * @name StarredDetail + * @request GET:/users/{username}/starred + */ + starredDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/starred\`, + method: "GET", + ...params, + }), + + /** + * @description List repositories being watched by a user. + * + * @name SubscriptionsDetail + * @request GET:/users/{username}/subscriptions + */ + subscriptionsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/subscriptions\`, + method: "GET", + ...params, + }), + + /** + * @description Get a single user. + * + * @name UsersDetail + * @request GET:/users/{username} + */ + usersDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Get all users. This provides a dump of every user, in the order that they signed up for GitHub. Note: Pagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of users. + * + * @name UsersList + * @request GET:/users + */ + usersList: (query: IMySuperPrefixUsersListParams2MySuperSuffix, params: RequestParams = {}) => + this.request({ + path: \`/users\`, + method: "GET", + query: query, + ...params, + }), + }; +} +" +`; + exports[`extended > 'link-example' 1`] = ` "/* eslint-disable */ /* tslint:disable */ diff --git a/tests/__snapshots__/simple.test.ts.snap b/tests/__snapshots__/simple.test.ts.snap index 3069a13c..c1fdea40 100644 --- a/tests/__snapshots__/simple.test.ts.snap +++ b/tests/__snapshots__/simple.test.ts.snap @@ -37023,6 +37023,6294 @@ export class Api extends HttpClient 'github-swagger' 1`] = ` +"/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +/** A user or organization */ +export interface Actor { + avatar_url?: string; + bio?: string; + /** The website URL from the profile page */ + blog?: string; + collaborators?: number; + company?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + disk_usage?: number; + /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */ + email?: string; + followers?: number; + followers_url?: string; + following?: number; + following_url?: string; + gists_url?: string; + gravatar_id?: string; + hireable?: boolean; + html_url?: string; + id?: number; + location?: string; + /** The account username */ + login?: string; + /** The full account name */ + name?: string; + organizations_url?: string; + owned_private_repos?: number; + plan?: { + collaborators?: number; + name?: string; + private_repos?: number; + space?: number; + }; + private_gists?: number; + public_gists?: number; + public_repos?: number; + starred_url?: string; + subscriptions_url?: string; + total_private_repos?: number; + type?: "User" | "Organization"; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; +} + +export interface Asset { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + /** A GitHub user */ + uploader?: User; + url?: string; +} + +export interface AssetPatch { + label?: string; + name: string; +} + +export type Assets = Asset[]; + +export type Assignees = User[]; + +export interface Blob { + content?: string; + encoding?: "utf-8" | "base64"; + sha?: string; + size?: number; +} + +export interface Blobs { + sha?: string; +} + +export interface Branch { + _links?: { + html?: string; + self?: string; + }; + commit?: { + /** A GitHub user */ + author?: User; + commit?: { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }; + name?: string; +} + +export type Branches = { + commit?: { + sha?: string; + url?: string; + }; + name?: string; +}[]; + +export type CodeFrequencyStats = number[]; + +export interface Comment { + body?: string; +} + +export interface CommentBody { + body: string; +} + +export type Comments = { + body?: string; + /** ISO 8601. */ + created_at?: string; + id?: number; + url?: string; + /** A GitHub user */ + user?: User; +}[]; + +export interface Commit { + /** A GitHub user */ + author?: User; + commit?: { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + files?: { + additions?: number; + blob_url?: string; + changes?: number; + deletions?: number; + filename?: string; + patch?: string; + raw_url?: string; + status?: string; + }[]; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + stats?: { + additions?: number; + deletions?: number; + total?: number; + }; + url?: string; +} + +export type CommitActivityStats = { + days?: number[]; + total?: number; + week?: number; +}[]; + +export interface CommitComment { + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + line?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; +} + +export interface CommitCommentBody { + body: string; + /** Deprecated - Use position parameter instead. */ + line?: string; + /** Line number in the file to comment on. Defaults to null. */ + number?: string; + /** Relative path of the file to comment on. */ + path?: string; + /** Line index in the diff to comment on. */ + position?: number; + /** SHA of the commit to comment on. */ + sha: string; +} + +export type Commits = { + /** A GitHub user */ + author?: User; + commit?: { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; +}[]; + +export interface CompareCommits { + ahead_by?: number; + base_commit?: { + /** A GitHub user */ + author?: User; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }; + behind_by?: number; + commits?: { + /** A GitHub user */ + author?: User; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }[]; + diff_url?: string; + files?: { + additions?: number; + blob_url?: string; + changes?: number; + contents_url?: string; + deletions?: number; + filename?: string; + patch?: string; + raw_url?: string; + sha?: string; + status?: string; + }[]; + html_url?: string; + patch_url?: string; + permalink_url?: string; + status?: string; + total_commits?: number; + url?: string; +} + +export interface ContentsPath { + _links?: { + git?: string; + html?: string; + self?: string; + }; + content?: string; + encoding?: string; + git_url?: string; + html_url?: string; + name?: string; + path?: string; + sha?: string; + size?: number; + type?: string; + url?: string; +} + +export type ContributorsStats = { + author?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + /** The Total number of commits authored by the contributor. */ + total?: number; + weeks?: { + /** Number of additions. */ + a?: number; + /** Number of commits. */ + c?: number; + /** Number of deletions. */ + d?: number; + /** Start of the week. */ + w?: string; + }[]; +}[]; + +export interface CreateFile { + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + html_url?: string; + message?: string; + parents?: { + html_url?: string; + sha?: string; + url?: string; + }[]; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + content?: { + _links?: { + git?: string; + html?: string; + self?: string; + }; + git_url?: string; + html_url?: string; + name?: string; + path?: string; + sha?: string; + size?: number; + type?: string; + url?: string; + }; +} + +export interface CreateFileBody { + committer?: { + email?: string; + name?: string; + }; + content?: string; + message?: string; +} + +export interface DeleteFile { + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + html_url?: string; + message?: string; + parents?: { + html_url?: string; + sha?: string; + url?: string; + }; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + content?: string; +} + +export interface DeleteFileBody { + committer?: { + email?: string; + name?: string; + }; + message?: string; + sha?: string; +} + +export interface Deployment { + description?: string; + payload?: { + deploy_user?: string; + environment?: string; + room_id?: number; + }; + ref?: string; +} + +export interface DeploymentResp { + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + id?: number; + payload?: string; + sha?: string; + statuses_url?: string; + updated_at?: string; + url?: string; +} + +export type DeploymentStatuses = { + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + id?: number; + payload?: string; + state?: string; + target_url?: string; + updated_at?: string; + url?: string; +}[]; + +export interface DeploymentStatusesCreate { + description?: string; + state?: string; + target_url?: string; +} + +export interface Download { + content_type?: string; + description?: string; + download_count?: number; + html_url?: string; + id?: number; + name?: string; + size?: number; + url?: string; +} + +export type Downloads = Download[]; + +export interface EditTeam { + name: string; + permission?: "pull" | "push" | "admin"; +} + +export type EmailsPost = string[]; + +export type Emojis = Record; + +export interface Event { + /** A user or organization */ + actor?: Actor; + created_at?: object; + id?: number; + /** A GitHub organization */ + org?: Organization; + payload?: object; + public?: boolean; + repo?: { + id?: number; + name?: string; + url?: string; + }; + type?: string; +} + +export type Events = Event[]; + +export interface Feeds { + _links?: { + current_user?: { + href?: string; + type?: string; + }; + current_user_actor?: { + href?: string; + type?: string; + }; + current_user_organization?: { + href?: string; + type?: string; + }; + current_user_public?: { + href?: string; + type?: string; + }; + timeline?: { + href?: string; + type?: string; + }; + user?: { + href?: string; + type?: string; + }; + }; + current_user_actor_url?: string; + current_user_organization_url?: string; + current_user_public?: string; + current_user_url?: string; + timeline_url?: string; + user_url?: string; +} + +export interface ForkBody { + organization?: string; +} + +export type Forks = Repos; + +export interface Gist { + comments?: number; + comments_url?: string; + /** Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. */ + created_at?: string; + description?: string; + files?: { + "ring.erl"?: { + filename?: string; + raw_url?: string; + size?: number; + }; + }; + forks?: { + /** Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. */ + created_at?: string; + url?: string; + /** A GitHub user */ + user?: User; + }[]; + git_pull_url?: string; + git_push_url?: string; + history?: { + change_status?: { + additions?: number; + deletions?: number; + total?: number; + }; + /** Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. */ + committed_at?: string; + url?: string; + /** A GitHub user */ + user?: User; + version?: string; + }[]; + html_url?: string; + id?: string; + public?: boolean; + url?: string; + /** A GitHub user */ + user?: User; +} + +export type Gists = { + comments?: number; + comments_url?: string; + created_at?: string; + description?: string; + files?: { + "ring.erl"?: { + filename?: string; + raw_url?: string; + size?: number; + }; + }; + git_pull_url?: string; + git_push_url?: string; + html_url?: string; + id?: string; + public?: boolean; + url?: string; + /** A GitHub user */ + user?: User; +}[]; + +export interface GitCommit { + author?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + parents?: string; + tree?: string; +} + +export interface GitRefPatch { + force?: boolean; + sha?: string; +} + +export type Gitignore = any[]; + +export interface GitignoreLang { + name?: string; + source?: string; +} + +export interface HeadBranch { + object?: { + sha?: string; + type?: string; + url?: string; + }; + ref?: string; + url?: string; +} + +export type Hook = { + active?: boolean; + config?: { + content_type?: string; + url?: string; + }; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + events?: ( + | "push" + | "issues" + | "issue_comment" + | "commit_comment" + | "pull_request" + | "pull_request_review_comment" + | "gollum" + | "watch" + | "download" + | "fork" + | "fork_apply" + | "member" + | "public" + | "team_add" + | "status" + )[]; + id?: number; + name?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; +}[]; + +export interface HookBody { + active?: boolean; + add_events?: string[]; +} + +export interface Issue { + assignee?: string; + body?: string; + labels?: string[]; + milestone?: number; + title?: string; +} + +export interface IssueEvent { + /** A user or organization */ + actor?: Actor; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + event?: string; + issue?: { + /** A GitHub user */ + assignee?: User; + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + closed_at?: string; + comments?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + milestone?: { + closed_issues?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + due_on?: string; + number?: number; + open_issues?: number; + state?: "open" | "closed"; + title?: string; + url?: string; + }; + number?: number; + pull_request?: { + diff_url?: string; + html_url?: string; + patch_url?: string; + }; + state?: "open" | "closed"; + title?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; + }; + url?: string; +} + +export type IssueEvents = IssueEvent[]; + +export type Issues = { + /** A GitHub user */ + assignee?: User; + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + closed_at?: string; + comments?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + milestone?: { + closed_issues?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + due_on?: string; + number?: number; + open_issues?: number; + state?: "open" | "closed"; + title?: string; + url?: string; + }; + number?: number; + pull_request?: { + diff_url?: string; + html_url?: string; + patch_url?: string; + }; + state?: "open" | "closed"; + title?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; +}[]; + +export interface IssuesComment { + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; +} + +export type IssuesComments = { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + id?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; +}[]; + +export type Keys = { + id?: number; + key?: string; + title?: string; + url?: string; +}[]; + +export interface Label { + /** + * @minLength 6 + * @maxLength 6 + */ + color?: string; + name?: string; + url?: string; +} + +export type Labels = { + /** + * @minLength 6 + * @maxLength 6 + */ + color?: string; + name?: string; + url?: string; +}[]; + +export type Languages = Record; + +export interface Markdown { + context?: string; + mode?: string; + text?: string; +} + +export interface Merge { + merged?: boolean; + message?: string; + sha?: string; +} + +export interface MergePullBody { + commit_message?: string; +} + +export interface MergesBody { + base?: string; + commit_message?: string; + head?: string; +} + +export interface MergesConflict { + /** Error message */ + message?: string; +} + +export interface MergesSuccessful { + /** A GitHub user */ + author?: User; + comments_url?: string; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + comment_count?: number; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + merged?: boolean; + message?: string; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; +} + +export interface Meta { + git?: string[]; + hooks?: string[]; +} + +export interface Milestone { + closed_issues?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + due_on?: string; + number?: number; + open_issues?: number; + state?: "open" | "closed"; + title?: string; + url?: string; +} + +export interface MilestoneUpdate { + description?: string; + due_on?: string; + state?: string; + title?: string; +} + +export interface NotificationMarkRead { + last_read_at?: string; +} + +export interface Notifications { + id?: number; + last_read_at?: string; + reason?: string; + repository?: { + description?: string; + fork?: boolean; + full_name?: string; + html_url?: string; + id?: number; + name?: string; + /** A user or organization */ + owner?: Actor; + private?: boolean; + url?: string; + }; + subject?: { + latest_comment_url?: string; + title?: string; + type?: string; + url?: string; + }; + unread?: boolean; + updated_at?: string; + url?: string; +} + +export interface OrgTeamsPost { + name: string; + permission?: "pull" | "push" | "admin"; + repo_names?: string[]; +} + +/** A GitHub organization */ +export type Organization = Actor; + +export interface OrganizationAsTeamMember { + errors?: { + code?: string; + field?: string; + resource?: string; + }[]; + message?: string; +} + +export interface ParticipationStats { + all?: number[]; + owner?: number[]; +} + +export interface PatchGist { + description?: string; + files?: { + "delete_this_file.txt"?: string; + "file1.txt"?: { + content?: string; + }; + "new_file.txt"?: { + content?: string; + }; + "old_name.txt"?: { + content?: string; + filename?: string; + }; + }; +} + +export interface PatchOrg { + /** Billing email address. This address is not publicized. */ + billing_email?: string; + company?: string; + /** Publicly visible email address. */ + email?: string; + location?: string; + name?: string; +} + +export interface PostGist { + description?: string; + files?: { + "file1.txt"?: { + content?: string; + }; + }; + public?: boolean; +} + +export interface PostRepo { + /** True to create an initial commit with empty README. Default is false. */ + auto_init?: boolean; + description?: string; + /** Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, "Haskell" Ignored if auto_init parameter is not provided. */ + gitignore_template?: string; + /** True to enable downloads for this repository, false to disable them. Default is true. */ + has_downloads?: boolean; + /** True to enable issues for this repository, false to disable them. Default is true. */ + has_issues?: boolean; + /** True to enable the wiki for this repository, false to disable it. Default is true. */ + has_wiki?: boolean; + homepage?: string; + name: string; + /** True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. */ + private?: boolean; + /** The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization. */ + team_id?: number; +} + +export interface PullRequest { + _links?: { + comments?: { + href?: string; + }; + html?: { + href?: string; + }; + review_comments?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + additions?: number; + base?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + body?: string; + changed_files?: number; + closed_at?: string; + comments?: number; + commits?: number; + created_at?: string; + deletions?: number; + diff_url?: string; + head?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + html_url?: string; + issue_url?: string; + merge_commit_sha?: string; + mergeable?: boolean; + merged?: boolean; + merged_at?: string; + merged_by?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + number?: number; + patch_url?: string; + state?: string; + title?: string; + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +} + +export interface PullUpdate { + body?: string; + state?: string; + title?: string; +} + +export type Pulls = { + _links?: { + comments?: { + href?: string; + }; + html?: { + href?: string; + }; + review_comments?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + base?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + closed_at?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + diff_url?: string; + head?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + html_url?: string; + issue_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + merged_at?: string; + number?: number; + patch_url?: string; + state?: "open" | "closed"; + title?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +}[]; + +export interface PullsComment { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + id?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +} + +export interface PullsCommentPost { + body?: string; + commit_id?: string; + path?: string; + position?: number; +} + +export type PullsComments = { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + id?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +}[]; + +export interface PullsPost { + base?: string; + body?: string; + head?: string; + title?: string; +} + +export interface PutSubscription { + created_at?: string; + ignored?: boolean; + reason?: object; + subscribed?: boolean; + thread_url?: string; + url?: string; +} + +export interface RateLimit { + rate?: { + limit?: number; + remaining?: number; + reset?: number; + }; +} + +export type Ref = { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + creator?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + description?: string; + id?: number; + state?: string; + target_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; +}[]; + +export type RefStatus = { + commit_url?: string; + name?: string; + repository_url?: string; + sha?: string; + state?: string; + statuses?: { + context?: string; + created_at?: string; + description?: string; + id?: number; + state?: string; + target_url?: string; + updated_at?: string; + url?: string; + }[]; +}[]; + +export type Refs = { + object?: { + sha?: string; + type?: string; + url?: string; + }; + ref?: string; + url?: string; +}[]; + +export interface RefsBody { + ref?: string; + sha?: string; +} + +export interface Release { + assets?: { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + /** A GitHub user */ + uploader?: User; + url?: string; + }[]; + assets_url?: string; + /** A GitHub user */ + author?: User; + body?: string; + created_at?: string; + draft?: boolean; + html_url?: string; + id?: number; + name?: string; + prerelease?: boolean; + published_at?: string; + tag_name?: string; + tarball_url?: string; + target_commitish?: string; + upload_url?: string; + url?: string; + zipball_url?: string; +} + +export interface ReleaseCreate { + body?: string; + draft?: boolean; + name?: string; + prerelease?: boolean; + tag_name?: string; + target_commitish?: string; +} + +export type Releases = { + assets?: { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + /** A GitHub user */ + uploader?: User; + url?: string; + }[]; + assets_url?: string; + /** A GitHub user */ + author?: User; + body?: string; + created_at?: string; + draft?: boolean; + html_url?: string; + id?: number; + name?: string; + prerelease?: boolean; + published_at?: string; + tag_name?: string; + tarball_url?: string; + target_commitish?: string; + upload_url?: string; + url?: string; + zipball_url?: string; +}[]; + +export interface Repo { + clone_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + description?: string; + fork?: boolean; + forks?: number; + forks_count?: number; + full_name?: string; + git_url?: string; + has_downloads?: boolean; + has_issues?: boolean; + has_wiki?: boolean; + homepage?: string; + html_url?: string; + id?: number; + language?: string; + master_branch?: string; + mirror_url?: string; + name?: string; + open_issues?: number; + open_issues_count?: number; + /** A GitHub organization */ + organization?: Organization; + /** A user or organization */ + owner?: Actor; + /** Is present when the repo is a fork. Parent is the repo this repo was forked from. */ + parent?: Repo; + private?: boolean; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + pushed_at?: string; + size?: number; + /** Is present when the repo is a fork. Source is the ultimate source for the network. */ + source?: Repo; + ssh_url?: string; + svn_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + watchers?: number; + watchers_count?: number; +} + +export type RepoComments = { + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + line?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; +}[]; + +export interface RepoCommit { + author?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + committer?: { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + email?: string; + name?: string; + }; + message?: string; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; +} + +export interface RepoCommitBody { + author?: { + date?: string; + email?: string; + name?: string; + }; + message: string; + parents: string[]; + tree: string; +} + +export type RepoDeployments = { + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + id?: number; + payload?: string; + sha?: string; + statuses_url?: string; + updated_at?: string; + url?: string; +}[]; + +export interface RepoEdit { + description?: string; + has_downloads?: boolean; + has_issues?: boolean; + has_wiki?: boolean; + homepage?: string; + name?: string; + private?: boolean; +} + +export type Repos = Repo[]; + +export interface SearchCode { + items?: { + git_url?: string; + html_url?: string; + name?: string; + path?: string; + repository?: { + 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; + description?: string; + downloads_url?: string; + events_url?: string; + fork?: boolean; + forks_url?: string; + full_name?: string; + git_commits_url?: string; + git_refs_url?: string; + git_tags_url?: string; + hooks_url?: string; + html_url?: string; + id?: number; + 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; + name?: string; + notifications_url?: string; + /** A user or organization */ + owner?: Actor; + private?: boolean; + pulls_url?: string; + stargazers_url?: string; + statuses_url?: string; + subscribers_url?: string; + subscription_url?: string; + tags_url?: string; + teams_url?: string; + trees_url?: string; + url?: string; + }; + score?: number; + sha?: string; + url?: string; + }[]; + total_count?: number; +} + +export interface SearchIssues { + items?: { + assignee?: any; + body?: string; + closed_at?: any; + comments?: number; + comments_url?: string; + created_at?: string; + events_url?: string; + html_url?: string; + id?: number; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + labels_url?: string; + milestone?: any; + number?: number; + pull_request?: { + diff_url?: any; + html_url?: any; + patch_url?: any; + }; + score?: number; + state?: string; + title?: string; + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; + }[]; + total_count?: number; +} + +export interface SearchIssuesByKeyword { + issues?: { + body?: string; + comments?: number; + created_at?: string; + gravatar_id?: string; + html_url?: string; + labels?: string[]; + number?: number; + position?: number; + state?: string; + title?: string; + updated_at?: string; + user?: string; + votes?: number; + }[]; +} + +export interface SearchRepositories { + items?: Repo[]; + total_count?: number; +} + +export interface SearchRepositoriesByKeyword { + repositories?: Repo[]; +} + +export interface SearchUserByEmail { + /** A GitHub user */ + user?: User; +} + +export interface SearchUsers { + items?: Users; + total_count?: number; +} + +export interface SearchUsersByKeyword { + users?: Users; +} + +export interface Subscription { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + ignored?: boolean; + reason?: string; + repository_url?: string; + subscribed?: boolean; + thread_url?: string; + url?: string; +} + +export interface SubscriptionBody { + ignored?: boolean; + subscribed?: boolean; +} + +export interface Tag { + /** String of the tag message. */ + message?: string; + object?: { + sha?: string; + /** String of the type of the tagged object. Normally this is a commit but it can also be a tree or a blob. */ + type?: "commit" | "tree" | "blob"; + url?: string; + }; + sha?: string; + /** The tag's name. This is typically a version (e.g., "v0.0.1"). */ + tag?: string; + tagger?: { + /** Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + /** String of the email of the author of the tag. */ + email?: string; + /** String of the name of the author of the tag. */ + name?: string; + }; + url?: string; +} + +export interface TagBody { + /** String of the tag message. */ + message: string; + /** String of the SHA of the git object this is tagging. */ + object: string; + /** The tag's name. This is typically a version (e.g., "v0.0.1"). */ + tag: string; + tagger: { + /** Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + date?: string; + /** String of the email of the author of the tag. */ + email?: string; + /** String of the name of the author of the tag. */ + name?: string; + }; + /** String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob. */ + type: "commit" | "tree" | "blob"; +} + +export type Tags = Tag[]; + +export interface Team { + id?: number; + members_count?: number; + name?: string; + permission?: string; + repos_count?: number; + url?: string; +} + +export interface TeamMembership { + state?: string; + url?: string; +} + +export type TeamRepos = Repos; + +export type Teams = { + id?: number; + name?: string; + url?: string; +}[]; + +export type TeamsList = { + id?: number; + members_count?: number; + name?: string; + organization?: { + avatar_url?: string; + id?: number; + login?: string; + url?: string; + }; + permission?: string; + repos_count?: number; + url?: string; +}[]; + +export interface Tree { + sha?: string; + tree?: { + /** One of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit) or 120000 for a blob that specifies the path of a symlink. */ + mode?: "100644" | "100755" | "040000" | "160000" | "120000"; + path?: string; + /** SHA1 checksum ID of the object in the tree. */ + sha?: string; + size?: number; + type?: "blob" | "tree" | "commit"; + url?: string; + }[]; + url?: string; +} + +export interface Trees { + base_tree?: string; + /** SHA1 checksum ID of the object in the tree. */ + sha?: string; + tree?: Tree[]; + url?: string; +} + +/** A GitHub user */ +export type User = Actor; + +export type UserEmails = string[]; + +export interface UserKeysKeyId { + id?: number; + key?: string; + title?: string; + url?: string; +} + +export interface UserKeysPost { + key?: string; + title?: string; +} + +export interface UserUpdate { + bio?: string; + blog?: string; + company?: string; + email?: string; + hireable?: boolean; + location?: string; + name?: string; +} + +export type Users = User[]; + +export type QueryParamsType = Record; +export type ResponseFormat = keyof Omit; + +export interface FullRequestParams extends Omit { + /** set parameter to \`true\` for call \`securityWorker\` for this request */ + secure?: boolean; + /** request path */ + path: string; + /** content type of request body */ + type?: ContentType; + /** query params */ + query?: QueryParamsType; + /** format of response (i.e. response.json() -> format: "json") */ + format?: ResponseFormat; + /** request body */ + body?: unknown; + /** base url */ + baseUrl?: string; + /** request cancellation token */ + cancelToken?: CancelToken; +} + +export type RequestParams = Omit; + +export interface ApiConfig { + baseUrl?: string; + baseApiParams?: Omit; + securityWorker?: (securityData: SecurityDataType | null) => Promise | RequestParams | void; + customFetch?: typeof fetch; +} + +export interface HttpResponse extends Response { + data: D; + error: E; +} + +type CancelToken = Symbol | string | number; + +export enum ContentType { + Json = "application/json", + FormData = "multipart/form-data", + UrlEncoded = "application/x-www-form-urlencoded", + Text = "text/plain", +} + +export class HttpClient { + public baseUrl: string = "https://api.github.com"; + private securityData: SecurityDataType | null = null; + private securityWorker?: ApiConfig["securityWorker"]; + private abortControllers = new Map(); + private customFetch = (...fetchParams: Parameters) => fetch(...fetchParams); + + private baseApiParams: RequestParams = { + credentials: "same-origin", + headers: {}, + redirect: "follow", + referrerPolicy: "no-referrer", + }; + + constructor(apiConfig: ApiConfig = {}) { + Object.assign(this, apiConfig); + } + + public setSecurityData = (data: SecurityDataType | null) => { + this.securityData = data; + }; + + protected encodeQueryParam(key: string, value: any) { + const encodedKey = encodeURIComponent(key); + return \`\${encodedKey}=\${encodeURIComponent(typeof value === "number" ? value : \`\${value}\`)}\`; + } + + protected addQueryParam(query: QueryParamsType, key: string) { + return this.encodeQueryParam(key, query[key]); + } + + protected addArrayQueryParam(query: QueryParamsType, key: string) { + const value = query[key]; + return value.map((v: any) => this.encodeQueryParam(key, v)).join("&"); + } + + protected toQueryString(rawQuery?: QueryParamsType): string { + const query = rawQuery || {}; + const keys = Object.keys(query).filter((key) => "undefined" !== typeof query[key]); + return keys + .map((key) => (Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key))) + .join("&"); + } + + protected addQueryParams(rawQuery?: QueryParamsType): string { + const queryString = this.toQueryString(rawQuery); + return queryString ? \`?\${queryString}\` : ""; + } + + private contentFormatters: Record any> = { + [ContentType.Json]: (input: any) => + input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input, + [ContentType.Text]: (input: any) => (input !== null && typeof input !== "string" ? JSON.stringify(input) : input), + [ContentType.FormData]: (input: any) => + Object.keys(input || {}).reduce((formData, key) => { + const property = input[key]; + formData.append( + key, + property instanceof Blob + ? property + : typeof property === "object" && property !== null + ? JSON.stringify(property) + : \`\${property}\`, + ); + return formData; + }, new FormData()), + [ContentType.UrlEncoded]: (input: any) => this.toQueryString(input), + }; + + protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams { + return { + ...this.baseApiParams, + ...params1, + ...(params2 || {}), + headers: { + ...(this.baseApiParams.headers || {}), + ...(params1.headers || {}), + ...((params2 && params2.headers) || {}), + }, + }; + } + + protected createAbortSignal = (cancelToken: CancelToken): AbortSignal | undefined => { + if (this.abortControllers.has(cancelToken)) { + const abortController = this.abortControllers.get(cancelToken); + if (abortController) { + return abortController.signal; + } + return void 0; + } + + const abortController = new AbortController(); + this.abortControllers.set(cancelToken, abortController); + return abortController.signal; + }; + + public abortRequest = (cancelToken: CancelToken) => { + const abortController = this.abortControllers.get(cancelToken); + + if (abortController) { + abortController.abort(); + this.abortControllers.delete(cancelToken); + } + }; + + public request = async ({ + body, + secure, + path, + type, + query, + format, + baseUrl, + cancelToken, + ...params + }: FullRequestParams): Promise> => { + const secureParams = + ((typeof secure === "boolean" ? secure : this.baseApiParams.secure) && + this.securityWorker && + (await this.securityWorker(this.securityData))) || + {}; + const requestParams = this.mergeRequestParams(params, secureParams); + const queryString = query && this.toQueryString(query); + const payloadFormatter = this.contentFormatters[type || ContentType.Json]; + const responseFormat = format || requestParams.format; + + return this.customFetch(\`\${baseUrl || this.baseUrl || ""}\${path}\${queryString ? \`?\${queryString}\` : ""}\`, { + ...requestParams, + headers: { + ...(requestParams.headers || {}), + ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}), + }, + signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null, + body: typeof body === "undefined" || body === null ? null : payloadFormatter(body), + }).then(async (response) => { + const r = response.clone() as HttpResponse; + r.data = null as unknown as T; + r.error = null as unknown as E; + + const data = !responseFormat + ? r + : await response[responseFormat]() + .then((data) => { + if (r.ok) { + r.data = data; + } else { + r.error = data; + } + return r; + }) + .catch((e) => { + r.error = e; + return r; + }); + + if (cancelToken) { + this.abortControllers.delete(cancelToken); + } + + if (!response.ok) throw data; + return data; + }); + }; +} + +/** + * @title GitHub + * @version v3 + * @termsOfService https://help.github.com/articles/github-terms-of-service/#b-api-terms + * @baseUrl https://api.github.com + * @externalDocs https://developer.github.com/v3/ + * + * Powerful collaboration, code review, and code management for open source and private projects. + */ +export class Api extends HttpClient { + someop = { + /** + * No description + * + * @tags someop + * @name SomeOp1 + * @request POST:/someop + */ + someOp1: ( + data: Events, + query?: { + /** + * description + * @default 0 + */ + queryParam1?: number; + /** + * description + * @default 20 + */ + queryParam2?: number; + /** description */ + queryParam3?: string[]; + /** + * description + * @default 0 + */ + queryParamBar3?: number; + /** + * description + * @default 0 + */ + fooBarBaz?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/someop\`, + method: "POST", + query: query, + body: data, + format: "json", + ...params, + }), + + /** + * No description + * + * @tags someop + * @name SomeOp + * @request POST:/someop/{fooId}/bars/bar-bar + */ + someOp: ( + fooId: string, + data: Events, + query?: { + /** @default 0 */ + page?: number; + /** @default 20 */ + size?: number; + sort?: string[]; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/someop/\${fooId}/bars/bar-bar\`, + method: "POST", + query: query, + body: data, + format: "json", + ...params, + }), + }; + emojis = { + /** + * @description Lists all the emojis available to use on GitHub. + * + * @name EmojisList + * @request GET:/emojis + */ + emojisList: (params: RequestParams = {}) => + this.request({ + path: \`/emojis\`, + method: "GET", + format: "json", + ...params, + }), + }; + events = { + /** + * @description List public events. + * + * @name EventsList + * @request GET:/events + */ + eventsList: (params: RequestParams = {}) => + this.request({ + path: \`/events\`, + method: "GET", + format: "json", + ...params, + }), + }; + feeds = { + /** + * @description List Feeds. GitHub provides several timeline resources in Atom format. The Feeds API lists all the feeds available to the authenticating user. + * + * @name FeedsList + * @request GET:/feeds + */ + feedsList: (params: RequestParams = {}) => + this.request({ + path: \`/feeds\`, + method: "GET", + format: "json", + ...params, + }), + }; + gists = { + /** + * @description List the authenticated user's gists or if called anonymously, this will return all public gists. + * + * @name GistsList + * @request GET:/gists + */ + gistsList: ( + query?: { + /** + * Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. + * Only gists updated at or after this time are returned. + */ + since?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/gists\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create a gist. + * + * @name GistsCreate + * @request POST:/gists + */ + gistsCreate: (body: PostGist, params: RequestParams = {}) => + this.request({ + path: \`/gists\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List all public gists. + * + * @name PublicList + * @request GET:/gists/public + */ + publicList: ( + query?: { + /** + * Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. + * Only gists updated at or after this time are returned. + */ + since?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/gists/public\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description List the authenticated user's starred gists. + * + * @name StarredList + * @request GET:/gists/starred + */ + starredList: ( + query?: { + /** + * Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. + * Only gists updated at or after this time are returned. + */ + since?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/gists/starred\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Delete a gist. + * + * @name GistsDelete + * @request DELETE:/gists/{id} + */ + gistsDelete: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single gist. + * + * @name GistsDetail + * @request GET:/gists/{id} + */ + gistsDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit a gist. + * + * @name GistsPartialUpdate + * @request PATCH:/gists/{id} + */ + gistsPartialUpdate: (id: number, body: PatchGist, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List comments on a gist. + * + * @name CommentsDetail + * @request GET:/gists/{id}/comments + */ + commentsDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a commen + * + * @name CommentsCreate + * @request POST:/gists/{id}/comments + */ + commentsCreate: (id: number, body: CommentBody, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Delete a comment. + * + * @name CommentsDelete + * @request DELETE:/gists/{id}/comments/{commentId} + */ + commentsDelete: (id: number, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single comment. + * + * @name CommentsDetail2 + * @request GET:/gists/{id}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: (id: number, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments/\${commentId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit a comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/gists/{id}/comments/{commentId} + */ + commentsPartialUpdate: (id: number, commentId: number, body: Comment, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/comments/\${commentId}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Fork a gist. + * + * @name ForksCreate + * @request POST:/gists/{id}/forks + */ + forksCreate: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/forks\`, + method: "POST", + ...params, + }), + + /** + * @description Unstar a gist. + * + * @name StarDelete + * @request DELETE:/gists/{id}/star + */ + starDelete: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/star\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if a gist is starred. + * + * @name StarDetail + * @request GET:/gists/{id}/star + */ + starDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/star\`, + method: "GET", + ...params, + }), + + /** + * @description Star a gist. + * + * @name StarUpdate + * @request PUT:/gists/{id}/star + */ + starUpdate: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/gists/\${id}/star\`, + method: "PUT", + ...params, + }), + }; + gitignore = { + /** + * @description Listing available templates. List all templates available to pass as an option when creating a repository. + * + * @name TemplatesList + * @request GET:/gitignore/templates + */ + templatesList: (params: RequestParams = {}) => + this.request({ + path: \`/gitignore/templates\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get a single template. + * + * @name TemplatesDetail + * @request GET:/gitignore/templates/{language} + */ + templatesDetail: (language: string, params: RequestParams = {}) => + this.request({ + path: \`/gitignore/templates/\${language}\`, + method: "GET", + format: "json", + ...params, + }), + }; + issues = { + /** + * @description List issues. List all issues across all the authenticated user's visible repositories. + * + * @name IssuesList + * @request GET:/issues + */ + issuesList: ( + query: { + /** @default "desc" */ + direction: "asc" | "desc"; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: "created" | "updated" | "comments"; + /** @default "open" */ + state: "open" | "closed"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/issues\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + legacy = { + /** + * @description Find issues by state and keyword. + * + * @name IssuesSearchDetail + * @request GET:/legacy/issues/search/{owner}/{repository}/{state}/{keyword} + * @deprecated + */ + issuesSearchDetail: ( + keyword: string, + state: "open" | "closed", + owner: string, + repository: string, + params: RequestParams = {}, + ) => + this.request({ + path: \`/legacy/issues/search/\${owner}/\${repository}/\${state}/\${keyword}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter. + * + * @name ReposSearchDetail + * @request GET:/legacy/repos/search/{keyword} + * @deprecated + */ + reposSearchDetail: ( + keyword: string, + query?: { + /** Filter results by language */ + language?: string; + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: "desc" | "asc"; + /** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ + sort?: "updated" | "stars" | "forks"; + /** The page number to fetch */ + start_page?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/legacy/repos/search/\${keyword}\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description This API call is added for compatibility reasons only. + * + * @name UserEmailDetail + * @request GET:/legacy/user/email/{email} + * @deprecated + */ + userEmailDetail: (email: string, params: RequestParams = {}) => + this.request({ + path: \`/legacy/user/email/\${email}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Find users by keyword. + * + * @name UserSearchDetail + * @request GET:/legacy/user/search/{keyword} + * @deprecated + */ + userSearchDetail: ( + keyword: string, + query?: { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: "desc" | "asc"; + /** The sort field. One of stars, forks, or updated. Default: results are sorted by best match. */ + sort?: "updated" | "stars" | "forks"; + /** The page number to fetch */ + start_page?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/legacy/user/search/\${keyword}\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + markdown = { + /** + * @description Render an arbitrary Markdown document + * + * @name MarkdownCreate + * @request POST:/markdown + */ + markdownCreate: (body: Markdown, params: RequestParams = {}) => + this.request({ + path: \`/markdown\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Render a Markdown document in raw mode + * + * @name PostMarkdown + * @request POST:/markdown/raw + */ + postMarkdown: (params: RequestParams = {}) => + this.request({ + path: \`/markdown/raw\`, + method: "POST", + type: ContentType.Text, + ...params, + }), + }; + meta = { + /** + * @description This gives some information about GitHub.com, the service. + * + * @name MetaList + * @request GET:/meta + */ + metaList: (params: RequestParams = {}) => + this.request({ + path: \`/meta\`, + method: "GET", + format: "json", + ...params, + }), + }; + networks = { + /** + * @description List public events for a network of repositories. + * + * @name EventsDetail + * @request GET:/networks/{owner}/{repo}/events + */ + eventsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/networks/\${owner}/\${repo}/events\`, + method: "GET", + format: "json", + ...params, + }), + }; + notifications = { + /** + * @description List your notifications. List all notifications for the current user, grouped by repository. + * + * @name NotificationsList + * @request GET:/notifications + */ + notificationsList: ( + query?: { + /** True to show notifications marked as read. */ + all?: boolean; + /** + * True to show only notifications in which the user is directly participating + * or mentioned. + */ + participating?: boolean; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/notifications\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Mark as read. Marking a notification as "read" removes it from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/notifications + */ + notificationsUpdate: (body: NotificationMarkRead, params: RequestParams = {}) => + this.request({ + path: \`/notifications\`, + method: "PUT", + body: body, + ...params, + }), + + /** + * @description View a single thread. + * + * @name ThreadsDetail + * @request GET:/notifications/threads/{id} + */ + threadsDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Mark a thread as read + * + * @name ThreadsPartialUpdate + * @request PATCH:/notifications/threads/{id} + */ + threadsPartialUpdate: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}\`, + method: "PATCH", + ...params, + }), + + /** + * @description Delete a Thread Subscription. + * + * @name ThreadsSubscriptionDelete + * @request DELETE:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDelete: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}/subscription\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a Thread Subscription. + * + * @name ThreadsSubscriptionDetail + * @request GET:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDetail: (id: number, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}/subscription\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Set a Thread Subscription. This lets you subscribe to a thread, or ignore it. Subscribing to a thread is unnecessary if the user is already subscribed to the repository. Ignoring a thread will mute all future notifications (until you comment or get @mentioned). + * + * @name ThreadsSubscriptionUpdate + * @request PUT:/notifications/threads/{id}/subscription + */ + threadsSubscriptionUpdate: (id: number, body: PutSubscription, params: RequestParams = {}) => + this.request({ + path: \`/notifications/threads/\${id}/subscription\`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + }; + orgs = { + /** + * @description Get an Organization. + * + * @name OrgsDetail + * @request GET:/orgs/{org} + */ + orgsDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit an Organization. + * + * @name OrgsPartialUpdate + * @request PATCH:/orgs/{org} + */ + orgsPartialUpdate: (org: string, body: PatchOrg, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List public events for an organization. + * + * @name EventsDetail + * @request GET:/orgs/{org}/events + */ + eventsDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/events\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List issues. List all issues for a given organization for the authenticated user. + * + * @name IssuesDetail + * @request GET:/orgs/{org}/issues + */ + issuesDetail: ( + org: string, + query: { + /** @default "desc" */ + direction: "asc" | "desc"; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: "created" | "updated" | "comments"; + /** @default "open" */ + state: "open" | "closed"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/orgs/\${org}/issues\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Members list. List all users who are members of an organization. A member is a user tha belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list. + * + * @name MembersDetail + * @request GET:/orgs/{org}/members + */ + membersDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/members\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Remove a member. Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. + * + * @name MembersDelete + * @request DELETE:/orgs/{org}/members/{username} + */ + membersDelete: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/members/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if a user is, publicly or privately, a member of the organization. + * + * @name MembersDetail2 + * @request GET:/orgs/{org}/members/{username} + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/members/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Public members list. Members of an organization can choose to have their membership publicized or not. + * + * @name PublicMembersDetail + * @request GET:/orgs/{org}/public_members + */ + publicMembersDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Conceal a user's membership. + * + * @name PublicMembersDelete + * @request DELETE:/orgs/{org}/public_members/{username} + */ + publicMembersDelete: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check public membership. + * + * @name PublicMembersDetail2 + * @request GET:/orgs/{org}/public_members/{username} + * @originalName publicMembersDetail + * @duplicate + */ + publicMembersDetail2: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Publicize a user's membership. + * + * @name PublicMembersUpdate + * @request PUT:/orgs/{org}/public_members/{username} + */ + publicMembersUpdate: (org: string, username: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/public_members/\${username}\`, + method: "PUT", + ...params, + }), + + /** + * @description List repositories for the specified org. + * + * @name ReposDetail + * @request GET:/orgs/{org}/repos + */ + reposDetail: ( + org: string, + query?: { + /** @default "all" */ + type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/orgs/\${org}/repos\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/orgs/{org}/repos + */ + reposCreate: (org: string, body: PostRepo, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/repos\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description List teams. + * + * @name TeamsDetail + * @request GET:/orgs/{org}/teams + */ + teamsDetail: (org: string, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/teams\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create team. In order to create a team, the authenticated user must be an owner of organization. + * + * @name TeamsCreate + * @request POST:/orgs/{org}/teams + */ + teamsCreate: (org: string, body: OrgTeamsPost, params: RequestParams = {}) => + this.request({ + path: \`/orgs/\${org}/teams\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + }; + rateLimit = { + /** + * @description Get your current rate limit status Note: Accessing this endpoint does not count against your rate limit. + * + * @name RateLimitList + * @request GET:/rate_limit + */ + rateLimitList: (params: RequestParams = {}) => + this.request({ + path: \`/rate_limit\`, + method: "GET", + format: "json", + ...params, + }), + }; + repos = { + /** + * @description Delete a Repository. Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required. + * + * @name ReposDelete + * @request DELETE:/repos/{owner}/{repo} + */ + reposDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get repository. + * + * @name ReposDetail + * @request GET:/repos/{owner}/{repo} + */ + reposDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit repository. + * + * @name ReposPartialUpdate + * @request PATCH:/repos/{owner}/{repo} + */ + reposPartialUpdate: (owner: string, repo: string, body: RepoEdit, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List assignees. This call lists all the available assignees (owner + collaborators) to which issues may be assigned. + * + * @name AssigneesDetail + * @request GET:/repos/{owner}/{repo}/assignees + */ + assigneesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/assignees\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Check assignee. You may also check to see if a particular user is an assignee for a repository. + * + * @name AssigneesDetail2 + * @request GET:/repos/{owner}/{repo}/assignees/{assignee} + * @originalName assigneesDetail + * @duplicate + */ + assigneesDetail2: (owner: string, repo: string, assignee: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/assignees/\${assignee}\`, + method: "GET", + ...params, + }), + + /** + * @description Get list of branches + * + * @name BranchesDetail + * @request GET:/repos/{owner}/{repo}/branches + */ + branchesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/branches\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get Branch + * + * @name BranchesDetail2 + * @request GET:/repos/{owner}/{repo}/branches/{branch} + * @originalName branchesDetail + * @duplicate + */ + branchesDetail2: (owner: string, repo: string, branch: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/branches/\${branch}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List. When authenticating as an organization owner of an organization-owned repository, all organization owners are included in the list of collaborators. Otherwise, only users with access to the repository are returned in the collaborators list. + * + * @name CollaboratorsDetail + * @request GET:/repos/{owner}/{repo}/collaborators + */ + collaboratorsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Remove collaborator. + * + * @name CollaboratorsDelete + * @request DELETE:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsDelete: (owner: string, repo: string, user: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators/\${user}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if user is a collaborator + * + * @name CollaboratorsDetail2 + * @request GET:/repos/{owner}/{repo}/collaborators/{user} + * @originalName collaboratorsDetail + * @duplicate + */ + collaboratorsDetail2: (owner: string, repo: string, user: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators/\${user}\`, + method: "GET", + ...params, + }), + + /** + * @description Add collaborator. + * + * @name CollaboratorsUpdate + * @request PUT:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsUpdate: (owner: string, repo: string, user: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/collaborators/\${user}\`, + method: "PUT", + ...params, + }), + + /** + * @description List commit comments for a repository. Comments are ordered by ascending ID. + * + * @name CommentsDetail + * @request GET:/repos/{owner}/{repo}/comments + */ + commentsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Delete a commit comment + * + * @name CommentsDelete + * @request DELETE:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsDelete: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single commit comment. + * + * @name CommentsDetail2 + * @request GET:/repos/{owner}/{repo}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Update a commit comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: CommentBody, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/comments/\${commentId}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description List commits on a repository. + * + * @name CommitsDetail + * @request GET:/repos/{owner}/{repo}/commits + */ + commitsDetail: ( + owner: string, + repo: string, + query?: { + /** GitHub login, name, or email by which to filter by commit author. */ + author?: string; + /** Only commits containing this file path will be returned. */ + path?: string; + /** Sha or branch to start listing commits from. */ + sha?: string; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + /** ISO 8601 Date - Only commits before this date will be returned. */ + until?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Get the combined Status for a specific Ref The Combined status endpoint is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details. To access this endpoint during the preview period, you must provide a custom media type in the Accept header: application/vnd.github.she-hulk-preview+json + * + * @name CommitsStatusDetail + * @request GET:/repos/{owner}/{repo}/commits/{ref}/status + */ + commitsStatusDetail: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${ref}/status\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get a single commit. + * + * @name CommitsDetail2 + * @request GET:/repos/{owner}/{repo}/commits/{shaCode} + * @originalName commitsDetail + * @duplicate + */ + commitsDetail2: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${shaCode}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List comments for a single commitList comments for a single commit. + * + * @name CommitsCommentsDetail + * @request GET:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${shaCode}/comments\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a commit comment. + * + * @name CommitsCommentsCreate + * @request POST:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsCreate: ( + owner: string, + repo: string, + shaCode: string, + body: CommitCommentBody, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/commits/\${shaCode}/comments\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Compare two commits + * + * @name CompareDetail + * @request GET:/repos/{owner}/{repo}/compare/{baseId}...{headId} + */ + compareDetail: (owner: string, repo: string, baseId: string, headId: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/compare/\${baseId}...\${headId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Delete a file. This method deletes a file in a repository. + * + * @name ContentsDelete + * @request DELETE:/repos/{owner}/{repo}/contents/{path} + */ + contentsDelete: (owner: string, repo: string, path: string, body: DeleteFileBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contents/\${path}\`, + method: "DELETE", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get contents. This method returns the contents of a file or directory in a repository. Files and symlinks support a custom media type for getting the raw content. Directories and submodules do not support custom media types. Note: This API supports files up to 1 megabyte in size. Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/" + * + * @name ContentsDetail + * @request GET:/repos/{owner}/{repo}/contents/{path} + */ + contentsDetail: ( + owner: string, + repo: string, + path: string, + query?: { + /** The content path. */ + path?: string; + /** The String name of the Commit/Branch/Tag. Defaults to 'master'. */ + ref?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contents/\${path}\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create a file. + * + * @name ContentsUpdate + * @request PUT:/repos/{owner}/{repo}/contents/{path} + */ + contentsUpdate: (owner: string, repo: string, path: string, body: CreateFileBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contents/\${path}\`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get list of contributors. + * + * @name ContributorsDetail + * @request GET:/repos/{owner}/{repo}/contributors + */ + contributorsDetail: ( + owner: string, + repo: string, + query: { + /** Set to 1 or true to include anonymous contributors in results. */ + anon: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/contributors\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Users with pull access can view deployments for a repository + * + * @name DeploymentsDetail + * @request GET:/repos/{owner}/{repo}/deployments + */ + deploymentsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Users with push access can create a deployment for a given ref + * + * @name DeploymentsCreate + * @request POST:/repos/{owner}/{repo}/deployments + */ + deploymentsCreate: (owner: string, repo: string, body: Deployment, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Users with pull access can view deployment statuses for a deployment + * + * @name DeploymentsStatusesDetail + * @request GET:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesDetail: (owner: string, repo: string, id: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments/\${id}/statuses\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a Deployment Status Users with push access can create deployment statuses for a given deployment: + * + * @name DeploymentsStatusesCreate + * @request POST:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesCreate: ( + owner: string, + repo: string, + id: number, + body: DeploymentStatusesCreate, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/deployments/\${id}/statuses\`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description Deprecated. List downloads for a repository. + * + * @name DownloadsDetail + * @request GET:/repos/{owner}/{repo}/downloads + * @deprecated + */ + downloadsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/downloads\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Deprecated. Delete a download. + * + * @name DownloadsDelete + * @request DELETE:/repos/{owner}/{repo}/downloads/{downloadId} + * @deprecated + */ + downloadsDelete: (owner: string, repo: string, downloadId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/downloads/\${downloadId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Deprecated. Get a single download. + * + * @name DownloadsDetail2 + * @request GET:/repos/{owner}/{repo}/downloads/{downloadId} + * @deprecated + * @originalName downloadsDetail + * @duplicate + */ + downloadsDetail2: (owner: string, repo: string, downloadId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/downloads/\${downloadId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get list of repository events. + * + * @name EventsDetail + * @request GET:/repos/{owner}/{repo}/events + */ + eventsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/events\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List forks. + * + * @name ForksDetail + * @request GET:/repos/{owner}/{repo}/forks + */ + forksDetail: ( + owner: string, + repo: string, + query?: { + /** @default "newes" */ + sort?: "newes" | "oldes" | "watchers"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/forks\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create a fork. Forking a Repository happens asynchronously. Therefore, you may have to wai a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact Support. + * + * @name ForksCreate + * @request POST:/repos/{owner}/{repo}/forks + */ + forksCreate: (owner: string, repo: string, body: ForkBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/forks\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Create a Blob. + * + * @name GitBlobsCreate + * @request POST:/repos/{owner}/{repo}/git/blobs + */ + gitBlobsCreate: (owner: string, repo: string, body: Blob, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/blobs\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get a Blob. Since blobs can be any arbitrary binary data, the input and responses for the blob API takes an encoding parameter that can be either utf-8 or base64. If your data cannot be losslessly sent as a UTF-8 string, you can base64 encode it. + * + * @name GitBlobsDetail + * @request GET:/repos/{owner}/{repo}/git/blobs/{shaCode} + */ + gitBlobsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/blobs/\${shaCode}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a Commit. + * + * @name GitCommitsCreate + * @request POST:/repos/{owner}/{repo}/git/commits + */ + gitCommitsCreate: (owner: string, repo: string, body: RepoCommitBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/commits\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get a Commit. + * + * @name GitCommitsDetail + * @request GET:/repos/{owner}/{repo}/git/commits/{shaCode} + */ + gitCommitsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/commits/\${shaCode}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get all References + * + * @name GitRefsDetail + * @request GET:/repos/{owner}/{repo}/git/refs + */ + gitRefsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a Reference + * + * @name GitRefsCreate + * @request POST:/repos/{owner}/{repo}/git/refs + */ + gitRefsCreate: (owner: string, repo: string, body: RefsBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Delete a Reference Example: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a Example: Deleting a tag: DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0 + * + * @name GitRefsDelete + * @request DELETE:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsDelete: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a Reference + * + * @name GitRefsDetail2 + * @request GET:/repos/{owner}/{repo}/git/refs/{ref} + * @originalName gitRefsDetail + * @duplicate + */ + gitRefsDetail2: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Update a Reference + * + * @name GitRefsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsPartialUpdate: (owner: string, repo: string, ref: string, body: GitRefPatch, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/refs/\${ref}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Create a Tag Object. Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then create the refs/tags/[tag] reference. If you want to create a lightweight tag, you only have to create the tag reference - this call would be unnecessary. + * + * @name GitTagsCreate + * @request POST:/repos/{owner}/{repo}/git/tags + */ + gitTagsCreate: (owner: string, repo: string, body: TagBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/tags\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get a Tag. + * + * @name GitTagsDetail + * @request GET:/repos/{owner}/{repo}/git/tags/{shaCode} + */ + gitTagsDetail: (owner: string, repo: string, shaCode: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/tags/\${shaCode}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a Tree. The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out. + * + * @name GitTreesCreate + * @request POST:/repos/{owner}/{repo}/git/trees + */ + gitTreesCreate: (owner: string, repo: string, body: Tree, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/trees\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get a Tree. + * + * @name GitTreesDetail + * @request GET:/repos/{owner}/{repo}/git/trees/{shaCode} + */ + gitTreesDetail: ( + owner: string, + repo: string, + shaCode: string, + query?: { + /** Get a Tree Recursively. (0 or 1) */ + recursive?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/git/trees/\${shaCode}\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Get list of hooks. + * + * @name HooksDetail + * @request GET:/repos/{owner}/{repo}/hooks + */ + hooksDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a hook. + * + * @name HooksCreate + * @request POST:/repos/{owner}/{repo}/hooks + */ + hooksCreate: (owner: string, repo: string, body: HookBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Delete a hook. + * + * @name HooksDelete + * @request DELETE:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksDelete: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get single hook. + * + * @name HooksDetail2 + * @request GET:/repos/{owner}/{repo}/hooks/{hookId} + * @originalName hooksDetail + * @duplicate + */ + hooksDetail2: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit a hook. + * + * @name HooksPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksPartialUpdate: (owner: string, repo: string, hookId: number, body: HookBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description Test a push hook. This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook is not subscribed to push events, the server will respond with 204 but no test POST will be generated. Note: Previously /repos/:owner/:repo/hooks/:id/tes + * + * @name HooksTestsCreate + * @request POST:/repos/{owner}/{repo}/hooks/{hookId}/tests + */ + hooksTestsCreate: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/hooks/\${hookId}/tests\`, + method: "POST", + ...params, + }), + + /** + * @description List issues for a repository. + * + * @name IssuesDetail + * @request GET:/repos/{owner}/{repo}/issues + */ + issuesDetail: ( + owner: string, + repo: string, + query: { + /** @default "desc" */ + direction: "asc" | "desc"; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: "created" | "updated" | "comments"; + /** @default "open" */ + state: "open" | "closed"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create an issue. Any user with pull access to a repository can create an issue. + * + * @name IssuesCreate + * @request POST:/repos/{owner}/{repo}/issues + */ + issuesCreate: (owner: string, repo: string, body: Issue, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description List comments in a repository. + * + * @name IssuesCommentsDetail + * @request GET:/repos/{owner}/{repo}/issues/comments + */ + issuesCommentsDetail: ( + owner: string, + repo: string, + query?: { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + sort?: "created" | "updated"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Delete a comment. + * + * @name IssuesCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsDelete: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single comment. + * + * @name IssuesCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/comments/{commentId} + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail2: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit a comment. + * + * @name IssuesCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: CommentBody, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/comments/\${commentId}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description List issue events for a repository. + * + * @name IssuesEventsDetail + * @request GET:/repos/{owner}/{repo}/issues/events + */ + issuesEventsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/events\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get a single event. + * + * @name IssuesEventsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/events/{eventId} + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail2: (owner: string, repo: string, eventId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/events/\${eventId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get a single issue + * + * @name IssuesDetail2 + * @request GET:/repos/{owner}/{repo}/issues/{number} + * @originalName issuesDetail + * @duplicate + */ + issuesDetail2: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit an issue. Issue owners and users with push access can edit an issue. + * + * @name IssuesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/{number} + */ + issuesPartialUpdate: (owner: string, repo: string, number: number, body: Issue, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description List comments on an issue. + * + * @name IssuesCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/comments + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail3: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/comments\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a comment. + * + * @name IssuesCommentsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/comments + */ + issuesCommentsCreate: ( + owner: string, + repo: string, + number: number, + body: CommentBody, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/comments\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description List events for an issue. + * + * @name IssuesEventsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/events + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail3: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/events\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Remove all labels from an issue. + * + * @name IssuesLabelsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDelete: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "DELETE", + ...params, + }), + + /** + * @description List labels on an issue. + * + * @name IssuesLabelsDetail + * @request GET:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Add labels to an issue. + * + * @name IssuesLabelsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsCreate: (owner: string, repo: string, number: number, body: EmailsPost, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Replace all labels for an issue. Sending an empty array ([]) will remove all Labels from the Issue. + * + * @name IssuesLabelsUpdate + * @request PUT:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsUpdate: (owner: string, repo: string, number: number, body: EmailsPost, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels\`, + method: "PUT", + body: body, + format: "json", + ...params, + }), + + /** + * @description Remove a label from an issue. + * + * @name IssuesLabelsDelete2 + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels/{name} + * @originalName issuesLabelsDelete + * @duplicate + */ + issuesLabelsDelete2: (owner: string, repo: string, number: number, name: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/issues/\${number}/labels/\${name}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get list of keys. + * + * @name KeysDetail + * @request GET:/repos/{owner}/{repo}/keys + */ + keysDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a key. + * + * @name KeysCreate + * @request POST:/repos/{owner}/{repo}/keys + */ + keysCreate: (owner: string, repo: string, body: UserKeysPost, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Delete a key. + * + * @name KeysDelete + * @request DELETE:/repos/{owner}/{repo}/keys/{keyId} + */ + keysDelete: (owner: string, repo: string, keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys/\${keyId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a key + * + * @name KeysDetail2 + * @request GET:/repos/{owner}/{repo}/keys/{keyId} + * @originalName keysDetail + * @duplicate + */ + keysDetail2: (owner: string, repo: string, keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/keys/\${keyId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List all labels for this repository. + * + * @name LabelsDetail + * @request GET:/repos/{owner}/{repo}/labels + */ + labelsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a label. + * + * @name LabelsCreate + * @request POST:/repos/{owner}/{repo}/labels + */ + labelsCreate: (owner: string, repo: string, body: EmailsPost, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Delete a label. + * + * @name LabelsDelete + * @request DELETE:/repos/{owner}/{repo}/labels/{name} + */ + labelsDelete: (owner: string, repo: string, name: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single label. + * + * @name LabelsDetail2 + * @request GET:/repos/{owner}/{repo}/labels/{name} + * @originalName labelsDetail + * @duplicate + */ + labelsDetail2: (owner: string, repo: string, name: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Update a label. + * + * @name LabelsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/labels/{name} + */ + labelsPartialUpdate: (owner: string, repo: string, name: string, body: EmailsPost, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/labels/\${name}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description List languages. List languages for the specified repository. The value on the right of a language is the number of bytes of code written in that language. + * + * @name LanguagesDetail + * @request GET:/repos/{owner}/{repo}/languages + */ + languagesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/languages\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Perform a merge. + * + * @name MergesCreate + * @request POST:/repos/{owner}/{repo}/merges + */ + mergesCreate: (owner: string, repo: string, body: MergesBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/merges\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List milestones for a repository. + * + * @name MilestonesDetail + * @request GET:/repos/{owner}/{repo}/milestones + */ + milestonesDetail: ( + owner: string, + repo: string, + query?: { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** @default "due_date" */ + sort?: "due_date" | "completeness"; + /** + * String to filter by state. + * @default "open" + */ + state?: "open" | "closed"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create a milestone. + * + * @name MilestonesCreate + * @request POST:/repos/{owner}/{repo}/milestones + */ + milestonesCreate: (owner: string, repo: string, body: MilestoneUpdate, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Delete a milestone. + * + * @name MilestonesDelete + * @request DELETE:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesDelete: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single milestone. + * + * @name MilestonesDetail2 + * @request GET:/repos/{owner}/{repo}/milestones/{number} + * @originalName milestonesDetail + * @duplicate + */ + milestonesDetail2: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Update a milestone. + * + * @name MilestonesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesPartialUpdate: ( + owner: string, + repo: string, + number: number, + body: MilestoneUpdate, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description Get labels for every issue in a milestone. + * + * @name MilestonesLabelsDetail + * @request GET:/repos/{owner}/{repo}/milestones/{number}/labels + */ + milestonesLabelsDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/milestones/\${number}/labels\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List your notifications in a repository List all notifications for the current user. + * + * @name NotificationsDetail + * @request GET:/repos/{owner}/{repo}/notifications + */ + notificationsDetail: ( + owner: string, + repo: string, + query?: { + /** True to show notifications marked as read. */ + all?: boolean; + /** + * True to show only notifications in which the user is directly participating + * or mentioned. + */ + participating?: boolean; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/notifications\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Mark notifications as read in a repository. Marking all notifications in a repository as "read" removes them from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/repos/{owner}/{repo}/notifications + */ + notificationsUpdate: (owner: string, repo: string, body: NotificationMarkRead, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/notifications\`, + method: "PUT", + body: body, + ...params, + }), + + /** + * @description List pull requests. + * + * @name PullsDetail + * @request GET:/repos/{owner}/{repo}/pulls + */ + pullsDetail: ( + owner: string, + repo: string, + query?: { + /** Filter pulls by base branch name. Example - gh-pages. */ + base?: string; + /** + * Filter pulls by head user and branch name in the format of 'user:ref-name'. + * Example: github:new-script-format. + */ + head?: string; + /** + * String to filter by state. + * @default "open" + */ + state?: "open" | "closed"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create a pull request. + * + * @name PullsCreate + * @request POST:/repos/{owner}/{repo}/pulls + */ + pullsCreate: (owner: string, repo: string, body: PullsPost, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List comments in a repository. By default, Review Comments are ordered by ascending ID. + * + * @name PullsCommentsDetail + * @request GET:/repos/{owner}/{repo}/pulls/comments + */ + pullsCommentsDetail: ( + owner: string, + repo: string, + query?: { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + sort?: "created" | "updated"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Delete a comment. + * + * @name PullsCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsDelete: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single comment. + * + * @name PullsCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/comments/{commentId} + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail2: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit a comment. + * + * @name PullsCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: CommentBody, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/comments/\${commentId}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description Get a single pull request. + * + * @name PullsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/{number} + * @originalName pullsDetail + * @duplicate + */ + pullsDetail2: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Update a pull request. + * + * @name PullsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/{number} + */ + pullsPartialUpdate: (owner: string, repo: string, number: number, body: PullUpdate, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List comments on a pull request. + * + * @name PullsCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/pulls/{number}/comments + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail3: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/comments\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a comment. #TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ ) description: | Alternative Input. Instead of passing commit_id, path, and position you can reply to an existing Pull Request Comment like this: body Required string in_reply_to Required number - Comment id to reply to. + * + * @name PullsCommentsCreate + * @request POST:/repos/{owner}/{repo}/pulls/{number}/comments + */ + pullsCommentsCreate: ( + owner: string, + repo: string, + number: number, + body: PullsCommentPost, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/comments\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List commits on a pull request. + * + * @name PullsCommitsDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/commits + */ + pullsCommitsDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/commits\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List pull requests files. + * + * @name PullsFilesDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/files + */ + pullsFilesDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/files\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get if a pull request has been merged. + * + * @name PullsMergeDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeDetail: (owner: string, repo: string, number: number, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/merge\`, + method: "GET", + ...params, + }), + + /** + * @description Merge a pull request (Merge Button's) + * + * @name PullsMergeUpdate + * @request PUT:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeUpdate: (owner: string, repo: string, number: number, body: MergePullBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/pulls/\${number}/merge\`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get the README. This method returns the preferred README for a repository. + * + * @name ReadmeDetail + * @request GET:/repos/{owner}/{repo}/readme + */ + readmeDetail: ( + owner: string, + repo: string, + query?: { + /** The String name of the Commit/Branch/Tag. Defaults to master. */ + ref?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/readme\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Users with push access to the repository will receive all releases (i.e., published releases and draft releases). Users with pull access will receive published releases only + * + * @name ReleasesDetail + * @request GET:/repos/{owner}/{repo}/releases + */ + releasesDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a release Users with push access to the repository can create a release. + * + * @name ReleasesCreate + * @request POST:/repos/{owner}/{repo}/releases + */ + releasesCreate: (owner: string, repo: string, body: ReleaseCreate, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Delete a release asset + * + * @name ReleasesAssetsDelete + * @request DELETE:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDelete: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/assets/\${id}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single release asset + * + * @name ReleasesAssetsDetail + * @request GET:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDetail: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/assets/\${id}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit a release asset Users with push access to the repository can edit a release asset. + * + * @name ReleasesAssetsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsPartialUpdate: ( + owner: string, + repo: string, + id: string, + body: AssetPatch, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/assets/\${id}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Users with push access to the repository can delete a release. + * + * @name ReleasesDelete + * @request DELETE:/repos/{owner}/{repo}/releases/{id} + */ + releasesDelete: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single release + * + * @name ReleasesDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id} + * @originalName releasesDetail + * @duplicate + */ + releasesDetail2: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Users with push access to the repository can edit a release + * + * @name ReleasesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/{id} + */ + releasesPartialUpdate: (owner: string, repo: string, id: string, body: ReleaseCreate, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}\`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + + /** + * @description List assets for a release + * + * @name ReleasesAssetsDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id}/assets + * @originalName releasesAssetsDetail + * @duplicate + */ + releasesAssetsDetail2: (owner: string, repo: string, id: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/releases/\${id}/assets\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List Stargazers. + * + * @name StargazersDetail + * @request GET:/repos/{owner}/{repo}/stargazers + */ + stargazersDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stargazers\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get the number of additions and deletions per week. Returns a weekly aggregate of the number of additions and deletions pushed to a repository. + * + * @name StatsCodeFrequencyDetail + * @request GET:/repos/{owner}/{repo}/stats/code_frequency + */ + statsCodeFrequencyDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/code_frequency\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get the last year of commit activity data. Returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday. + * + * @name StatsCommitActivityDetail + * @request GET:/repos/{owner}/{repo}/stats/commit_activity + */ + statsCommitActivityDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/commit_activity\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get contributors list with additions, deletions, and commit counts. + * + * @name StatsContributorsDetail + * @request GET:/repos/{owner}/{repo}/stats/contributors + */ + statsContributorsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/contributors\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get the weekly commit count for the repo owner and everyone else. + * + * @name StatsParticipationDetail + * @request GET:/repos/{owner}/{repo}/stats/participation + */ + statsParticipationDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/participation\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get the number of commits per hour in each day. Each array contains the day number, hour number, and number of commits 0-6 Sunday - Saturday 0-23 Hour of day Number of commits For example, [2, 14, 25] indicates that there were 25 total commits, during the 2.00pm hour on Tuesdays. All times are based on the time zone of individual commits. + * + * @name StatsPunchCardDetail + * @request GET:/repos/{owner}/{repo}/stats/punch_card + */ + statsPunchCardDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/stats/punch_card\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List Statuses for a specific Ref. + * + * @name StatusesDetail + * @request GET:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesDetail: (owner: string, repo: string, ref: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/statuses/\${ref}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a Status. + * + * @name StatusesCreate + * @request POST:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesCreate: (owner: string, repo: string, ref: string, body: HeadBranch, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/statuses/\${ref}\`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List watchers. + * + * @name SubscribersDetail + * @request GET:/repos/{owner}/{repo}/subscribers + */ + subscribersDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscribers\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Delete a Repository Subscription. + * + * @name SubscriptionDelete + * @request DELETE:/repos/{owner}/{repo}/subscription + */ + subscriptionDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscription\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a Repository Subscription. + * + * @name SubscriptionDetail + * @request GET:/repos/{owner}/{repo}/subscription + */ + subscriptionDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscription\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Set a Repository Subscription + * + * @name SubscriptionUpdate + * @request PUT:/repos/{owner}/{repo}/subscription + */ + subscriptionUpdate: (owner: string, repo: string, body: SubscriptionBody, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/subscription\`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Get list of tags. + * + * @name TagsDetail + * @request GET:/repos/{owner}/{repo}/tags + */ + tagsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/tags\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get list of teams + * + * @name TeamsDetail + * @request GET:/repos/{owner}/{repo}/teams + */ + teamsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/teams\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List Stargazers. New implementation. + * + * @name WatchersDetail + * @request GET:/repos/{owner}/{repo}/watchers + */ + watchersDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/repos/\${owner}/\${repo}/watchers\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Get archive link. This method will return a 302 to a URL to download a tarball or zipball archive for a repository. Please make sure your HTTP framework is configured to follow redirects or you will need to use the Location header to make a second GET request. Note: For private repositories, these links are temporary and expire quickly. + * + * @name ReposDetail2 + * @request GET:/repos/{owner}/{repo}/{archive_format}/{path} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: ( + owner: string, + repo: string, + archiveFormat: "tarball" | "zipball", + path: string, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repos/\${owner}/\${repo}/\${archiveFormat}/\${path}\`, + method: "GET", + ...params, + }), + }; + repositories = { + /** + * @description List all public repositories. This provides a dump of every public repository, in the order that they were created. Note: Pagination is powered exclusively by the since parameter. is the Link header to get the URL for the next page of repositories. + * + * @name RepositoriesList + * @request GET:/repositories + */ + repositoriesList: ( + query?: { + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/repositories\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + search = { + /** + * @description Search code. + * + * @name CodeList + * @request GET:/search/code + */ + codeList: ( + query: { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: "desc" | "asc"; + /** + * The search terms. This can be any combination of the supported code + * search parameters: + * 'Search In' Qualifies which fields are searched. With this qualifier + * you can restrict the search to just the file contents, the file path, + * or both. + * 'Languages' Searches code based on the language it's written in. + * 'Forks' Filters repositories based on the number of forks, and/or + * whether code from forked repositories should be included in the results + * at all. + * 'Size' Finds files that match a certain size (in bytes). + * 'Path' Specifies the path that the resulting file must be at. + * 'Extension' Matches files with a certain extension. + * 'Users' or 'Repositories' Limits searches to a specific user or repository. + */ + q: string; + /** + * Can only be 'indexed', which indicates how recently a file has been indexed + * by the GitHub search infrastructure. If not provided, results are sorted + * by best match. + */ + sort?: "indexed"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/search/code\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Find issues by state and keyword. (This method returns up to 100 results per page.) + * + * @name IssuesList + * @request GET:/search/issues + */ + issuesList: ( + query: { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: "desc" | "asc"; + /** The q search term can also contain any combination of the supported issue search qualifiers: */ + q: string; + /** The sort field. Can be comments, created, or updated. Default: results are sorted by best match. */ + sort?: "updated" | "created" | "comments"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/search/issues\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Search repositories. + * + * @name RepositoriesList + * @request GET:/search/repositories + */ + repositoriesList: ( + query: { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: "desc" | "asc"; + /** + * The search terms. This can be any combination of the supported repository + * search parameters: + * 'Search In' Qualifies which fields are searched. With this qualifier you + * can restrict the search to just the repository name, description, readme, + * or any combination of these. + * 'Size' Finds repositories that match a certain size (in kilobytes). + * 'Forks' Filters repositories based on the number of forks, and/or whether + * forked repositories should be included in the results at all. + * 'Created' and 'Last Updated' Filters repositories based on times of + * creation, or when they were last updated. + * 'Users or Repositories' Limits searches to a specific user or repository. + * 'Languages' Searches repositories based on the language they are written in. + * 'Stars' Searches repositories based on the number of stars. + */ + q: string; + /** If not provided, results are sorted by best match. */ + sort?: "stars" | "forks" | "updated"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/search/repositories\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Search users. + * + * @name UsersList + * @request GET:/search/users + */ + usersList: ( + query: { + /** + * The sort field. if sort param is provided. Can be either asc or desc. + * @default "desc" + */ + order?: "desc" | "asc"; + /** + * The search terms. This can be any combination of the supported user + * search parameters: + * 'Search In' Qualifies which fields are searched. With this qualifier you + * can restrict the search to just the username, public email, full name, + * location, or any combination of these. + * 'Repository count' Filters users based on the number of repositories they + * have. + * 'Location' Filter users by the location indicated in their profile. + * 'Language' Search for users that have repositories that match a certain + * language. + * 'Created' Filter users based on when they joined. + * 'Followers' Filter users based on the number of followers they have. + */ + q: string; + /** If not provided, results are sorted by best match. */ + sort?: "followers" | "repositories" | "joined"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/search/users\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + teams = { + /** + * @description Delete team. In order to delete a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsDelete + * @request DELETE:/teams/{teamId} + */ + teamsDelete: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get team. + * + * @name TeamsDetail + * @request GET:/teams/{teamId} + */ + teamsDetail: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Edit team. In order to edit a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsPartialUpdate + * @request PATCH:/teams/{teamId} + */ + teamsPartialUpdate: (teamId: number, body: EditTeam, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description List team members. In order to list members in a team, the authenticated user must be a member of the team. + * + * @name MembersDetail + * @request GET:/teams/{teamId}/members + */ + membersDetail: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description The "Remove team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Remove team membership API instead. It allows you to remove both active and pending memberships. Remove team member. In order to remove a user from a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. NOTE This does not delete the user, it just remove them from the team. + * + * @name MembersDelete + * @request DELETE:/teams/{teamId}/members/{username} + * @deprecated + */ + membersDelete: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description The "Get team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Get team membership API instead. It allows you to get both active and pending memberships. Get team member. In order to get if a user is a member of a team, the authenticated user mus be a member of the team. + * + * @name MembersDetail2 + * @request GET:/teams/{teamId}/members/{username} + * @deprecated + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description The API (described below) is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Add team membership API instead. It allows you to invite new organization members to your teams. Add team member. In order to add a user to a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. + * + * @name MembersUpdate + * @request PUT:/teams/{teamId}/members/{username} + * @deprecated + */ + membersUpdate: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/members/\${username}\`, + method: "PUT", + ...params, + }), + + /** + * @description Remove team membership. In order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team. + * + * @name MembershipsDelete + * @request DELETE:/teams/{teamId}/memberships/{username} + */ + membershipsDelete: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/memberships/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get team membership. In order to get a user's membership with a team, the authenticated user must be a member of the team or an owner of the team's organization. + * + * @name MembershipsDetail + * @request GET:/teams/{teamId}/memberships/{username} + */ + membershipsDetail: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/memberships/\${username}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Add team membership. In order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. If the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team. If the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the 'pending' state until the user accepts the invitation, at which point the membership will transition to the 'active' state and the user will be added as a member of the team. + * + * @name MembershipsUpdate + * @request PUT:/teams/{teamId}/memberships/{username} + */ + membershipsUpdate: (teamId: number, username: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/memberships/\${username}\`, + method: "PUT", + format: "json", + ...params, + }), + + /** + * @description List team repos + * + * @name ReposDetail + * @request GET:/teams/{teamId}/repos + */ + reposDetail: (teamId: number, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team. + * + * @name ReposDelete + * @request DELETE:/teams/{teamId}/repos/{owner}/{repo} + */ + reposDelete: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if a team manages a repository + * + * @name ReposDetail2 + * @request GET:/teams/{teamId}/repos/{owner}/{repo} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, + method: "GET", + ...params, + }), + + /** + * @description In order to add a repository to a team, the authenticated user must be an owner of the org that the team is associated with. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization. + * + * @name ReposUpdate + * @request PUT:/teams/{teamId}/repos/{owner}/{repo} + */ + reposUpdate: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/teams/\${teamId}/repos/\${owner}/\${repo}\`, + method: "PUT", + ...params, + }), + }; + user = { + /** + * @description Get the authenticated user. + * + * @name UserList + * @request GET:/user + */ + userList: (params: RequestParams = {}) => + this.request({ + path: \`/user\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Update the authenticated user. + * + * @name UserPartialUpdate + * @request PATCH:/user + */ + userPartialUpdate: (body: UserUpdate, params: RequestParams = {}) => + this.request({ + path: \`/user\`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + + /** + * @description Delete email address(es). You can include a single email address or an array of addresses. + * + * @name EmailsDelete + * @request DELETE:/user/emails + */ + emailsDelete: (body: UserEmails, params: RequestParams = {}) => + this.request({ + path: \`/user/emails\`, + method: "DELETE", + body: body, + type: ContentType.Json, + ...params, + }), + + /** + * @description List email addresses for a user. In the final version of the API, this method will return an array of hashes with extended information for each email address indicating if the address has been verified and if it's primary email address for GitHub. Until API v3 is finalized, use the application/vnd.github.v3 media type to get other response format. + * + * @name EmailsList + * @request GET:/user/emails + */ + emailsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/emails\`, + method: "GET", + ...params, + }), + + /** + * @description Add email address(es). You can post a single email address or an array of addresses. + * + * @name EmailsCreate + * @request POST:/user/emails + */ + emailsCreate: (body: EmailsPost, params: RequestParams = {}) => + this.request({ + path: \`/user/emails\`, + method: "POST", + body: body, + ...params, + }), + + /** + * @description List the authenticated user's followers + * + * @name FollowersList + * @request GET:/user/followers + */ + followersList: (params: RequestParams = {}) => + this.request({ + path: \`/user/followers\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List who the authenticated user is following. + * + * @name FollowingList + * @request GET:/user/following + */ + followingList: (params: RequestParams = {}) => + this.request({ + path: \`/user/following\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Unfollow a user. Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingDelete + * @request DELETE:/user/following/{username} + */ + followingDelete: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/user/following/\${username}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if you are following a user. + * + * @name FollowingDetail + * @request GET:/user/following/{username} + */ + followingDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/user/following/\${username}\`, + method: "GET", + ...params, + }), + + /** + * @description Follow a user. Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingUpdate + * @request PUT:/user/following/{username} + */ + followingUpdate: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/user/following/\${username}\`, + method: "PUT", + ...params, + }), + + /** + * @description List issues. List all issues across owned and member repositories for the authenticated user. + * + * @name IssuesList + * @request GET:/user/issues + */ + issuesList: ( + query: { + /** @default "desc" */ + direction: "asc" | "desc"; + /** + * Issues assigned to you / created by you / mentioning you / you're + * subscribed to updates for / All issues the authenticated user can see + * @default "all" + */ + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** String list of comma separated Label names. Example - bug,ui,@high. */ + labels: string; + /** + * Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Only issues updated at or after this time are returned. + */ + since?: string; + /** @default "created" */ + sort: "created" | "updated" | "comments"; + /** @default "open" */ + state: "open" | "closed"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/user/issues\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description List your public keys. Lists the current user's keys. Management of public keys via the API requires that you are authenticated through basic auth, or OAuth with the 'user', 'write:public_key' scopes. + * + * @name KeysList + * @request GET:/user/keys + */ + keysList: (params: RequestParams = {}) => + this.request({ + path: \`/user/keys\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Create a public key. + * + * @name KeysCreate + * @request POST:/user/keys + */ + keysCreate: (body: UserKeysPost, params: RequestParams = {}) => + this.request({ + path: \`/user/keys\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description Delete a public key. Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope. + * + * @name KeysDelete + * @request DELETE:/user/keys/{keyId} + */ + keysDelete: (keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/user/keys/\${keyId}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Get a single public key. + * + * @name KeysDetail + * @request GET:/user/keys/{keyId} + */ + keysDetail: (keyId: number, params: RequestParams = {}) => + this.request({ + path: \`/user/keys/\${keyId}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List public and private organizations for the authenticated user. + * + * @name OrgsList + * @request GET:/user/orgs + */ + orgsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/orgs\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List repositories for the authenticated user. Note that this does not include repositories owned by organizations which the user can access. You can lis user organizations and list organization repositories separately. + * + * @name ReposList + * @request GET:/user/repos + */ + reposList: ( + query?: { + /** @default "all" */ + type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/user/repos\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/user/repos + */ + reposCreate: (body: PostRepo, params: RequestParams = {}) => + this.request({ + path: \`/user/repos\`, + method: "POST", + body: body, + format: "json", + ...params, + }), + + /** + * @description List repositories being starred by the authenticated user. + * + * @name StarredList + * @request GET:/user/starred + */ + starredList: ( + query?: { + /** Ignored without 'sort' parameter. */ + direction?: string; + /** @default "created" */ + sort?: "created" | "updated"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/user/starred\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Unstar a repository + * + * @name StarredDelete + * @request DELETE:/user/starred/{owner}/{repo} + */ + starredDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/starred/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if you are starring a repository. + * + * @name StarredDetail + * @request GET:/user/starred/{owner}/{repo} + */ + starredDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/starred/\${owner}/\${repo}\`, + method: "GET", + ...params, + }), + + /** + * @description Star a repository. + * + * @name StarredUpdate + * @request PUT:/user/starred/{owner}/{repo} + */ + starredUpdate: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/starred/\${owner}/\${repo}\`, + method: "PUT", + ...params, + }), + + /** + * @description List repositories being watched by the authenticated user. + * + * @name SubscriptionsList + * @request GET:/user/subscriptions + */ + subscriptionsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Stop watching a repository + * + * @name SubscriptionsDelete + * @request DELETE:/user/subscriptions/{owner}/{repo} + * @deprecated + */ + subscriptionsDelete: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions/\${owner}/\${repo}\`, + method: "DELETE", + ...params, + }), + + /** + * @description Check if you are watching a repository. + * + * @name SubscriptionsDetail + * @request GET:/user/subscriptions/{owner}/{repo} + * @deprecated + */ + subscriptionsDetail: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions/\${owner}/\${repo}\`, + method: "GET", + ...params, + }), + + /** + * @description Watch a repository. + * + * @name SubscriptionsUpdate + * @request PUT:/user/subscriptions/{owner}/{repo} + * @deprecated + */ + subscriptionsUpdate: (owner: string, repo: string, params: RequestParams = {}) => + this.request({ + path: \`/user/subscriptions/\${owner}/\${repo}\`, + method: "PUT", + ...params, + }), + + /** + * @description List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user or repo scope when authenticating via OAuth. + * + * @name TeamsList + * @request GET:/user/teams + */ + teamsList: (params: RequestParams = {}) => + this.request({ + path: \`/user/teams\`, + method: "GET", + format: "json", + ...params, + }), + }; + users = { + /** + * @description Get all users. This provides a dump of every user, in the order that they signed up for GitHub. Note: Pagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of users. + * + * @name UsersList + * @request GET:/users + */ + usersList: ( + query?: { + /** The integer ID of the last user that you've seen. */ + since?: number; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/users\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description Get a single user. + * + * @name UsersDetail + * @request GET:/users/{username} + */ + usersDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. + * + * @name EventsDetail + * @request GET:/users/{username}/events + */ + eventsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/events\`, + method: "GET", + ...params, + }), + + /** + * @description This is the user's organization dashboard. You must be authenticated as the user to view this. + * + * @name EventsOrgsDetail + * @request GET:/users/{username}/events/orgs/{org} + */ + eventsOrgsDetail: (username: string, org: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/events/orgs/\${org}\`, + method: "GET", + ...params, + }), + + /** + * @description List a user's followers + * + * @name FollowersDetail + * @request GET:/users/{username}/followers + */ + followersDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/followers\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description Check if one user follows another. + * + * @name FollowingDetail + * @request GET:/users/{username}/following/{targetUser} + */ + followingDetail: (username: string, targetUser: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/following/\${targetUser}\`, + method: "GET", + ...params, + }), + + /** + * @description List a users gists. + * + * @name GistsDetail + * @request GET:/users/{username}/gists + */ + gistsDetail: ( + username: string, + query?: { + /** + * The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * Example: "2012-10-09T23:39:01Z". + */ + since?: string; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/users/\${username}/gists\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description List public keys for a user. Lists the verified public keys for a user. This is accessible by anyone. + * + * @name KeysDetail + * @request GET:/users/{username}/keys + */ + keysDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/keys\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description List all public organizations for a user. + * + * @name OrgsDetail + * @request GET:/users/{username}/orgs + */ + orgsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/orgs\`, + method: "GET", + format: "json", + ...params, + }), + + /** + * @description These are events that you'll only see public events. + * + * @name ReceivedEventsDetail + * @request GET:/users/{username}/received_events + */ + receivedEventsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/received_events\`, + method: "GET", + ...params, + }), + + /** + * @description List public events that a user has received + * + * @name ReceivedEventsPublicDetail + * @request GET:/users/{username}/received_events/public + */ + receivedEventsPublicDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/received_events/public\`, + method: "GET", + ...params, + }), + + /** + * @description List public repositories for the specified user. + * + * @name ReposDetail + * @request GET:/users/{username}/repos + */ + reposDetail: ( + username: string, + query?: { + /** @default "all" */ + type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + }, + params: RequestParams = {}, + ) => + this.request({ + path: \`/users/\${username}/repos\`, + method: "GET", + query: query, + format: "json", + ...params, + }), + + /** + * @description List repositories being starred by a user. + * + * @name StarredDetail + * @request GET:/users/{username}/starred + */ + starredDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/starred\`, + method: "GET", + ...params, + }), + + /** + * @description List repositories being watched by a user. + * + * @name SubscriptionsDetail + * @request GET:/users/{username}/subscriptions + */ + subscriptionsDetail: (username: string, params: RequestParams = {}) => + this.request({ + path: \`/users/\${username}/subscriptions\`, + method: "GET", + ...params, + }), + }; +} +" +`; + exports[`simple > 'link-example' 1`] = ` "/* eslint-disable */ /* tslint:disable */ diff --git a/tests/fixtures/schemas/v2.0/github-swagger.json b/tests/fixtures/schemas/v2.0/github-swagger.json new file mode 100644 index 00000000..a31a3b89 --- /dev/null +++ b/tests/fixtures/schemas/v2.0/github-swagger.json @@ -0,0 +1,23825 @@ +{ + "swagger": "2.0", + "schemes": ["https"], + "host": "api.github.com", + "basePath": "/", + "info": { + "description": "Powerful collaboration, code review, and code management for open source and private projects.\n", + "termsOfService": "https://help.github.com/articles/github-terms-of-service/#b-api-terms", + "title": "GitHub", + "version": "v3", + "x-apisguru-categories": ["collaboration", "developer_tools"], + "x-logo": { + "url": "https://api.apis.guru/v2/cache/logo/https_twitter.com_github_profile_image.jpeg" + }, + "x-origin": [ + { + "format": "swagger", + "url": "https://raw.githubusercontent.com/APIs-guru/unofficial_openapi_specs/master/github.com/v3/swagger.yaml", + "version": "2.0" + } + ], + "x-preferred": false, + "x-providerName": "github.com", + "x-unofficialSpec": true + }, + "externalDocs": { + "url": "https://developer.github.com/v3/" + }, + "consumes": ["application/json"], + "produces": ["application/json"], + "securityDefinitions": { + "oauth_2_0": { + "authorizationUrl": "https://github.com/login/oauth/authorize", + "description": "OAuth2 is a protocol that lets external apps request authorization to private\ndetails in a user's GitHub account without getting their password. This is\npreferred over Basic Authentication because tokens can be limited to specific\ntypes of data, and can be revoked by users at any time.\n", + "flow": "accessCode", + "scopes": { + "admin:org": "", + "admin:org_hook": "", + "admin:public_key": "", + "admin:repo_hook": "", + "delete_repo": "", + "gist": "", + "notifications": "", + "public_repo": "", + "read:org": "", + "read:public_key": "", + "read:repo_hook": "", + "repo": "", + "repo:status": "", + "repo_deployment": "", + "user": "", + "user:email": "", + "user:follow": "", + "write:org": "", + "write:public_key": "", + "write:repo_hook": "" + }, + "tokenUrl": "https://github.com/login/oauth/access_token", + "type": "oauth2" + } + }, + "paths": { + "/someop": { + "post": { + "tags": ["someop"], + "operationId": "someOp_1", + "parameters": [ + { + "name": "queryParam1", + "in": "query", + "description": "description", + "schema": { + "type": "integer", + "default": 0 + } + }, + { + "name": "foo.bar.baz", + "in": "query", + "description": "description", + "schema": { + "type": "integer", + "default": 0 + } + }, + { + "name": "queryParam2", + "in": "query", + "description": "description", + "schema": { + "type": "integer", + "default": 20 + } + }, + { + "name": "query.param.bar.3", + "in": "query", + "description": "description", + "schema": { + "type": "integer", + "default": 0 + } + }, + { + "name": "queryParam3", + "in": "query", + "description": "description", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/definitions/events" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/hal+json": { + "schema": { + "$ref": "#/definitions/events" + } + } + } + }, + "400": { + "description": "Bad Request" + } + } + } + }, + "/emojis": { + "get": { + "description": "Lists all the emojis available to use on GitHub.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/emojis" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/someop/{fooId}/bars/bar-bar": { + "post": { + "tags": ["someop"], + "operationId": "someOp", + "parameters": [ + { + "name": "page", + "in": "query", + "description": "", + "schema": { + "type": "integer", + "default": 0 + } + }, + { + "name": "size", + "in": "query", + "description": "", + "schema": { + "type": "integer", + "default": 20 + } + }, + { + "name": "sort", + "in": "query", + "description": "", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/definitions/events" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/hal+json": { + "schema": { + "$ref": "#/definitions/events" + } + } + } + }, + "400": { + "description": "Bad Request" + } + } + } + }, + "/events": { + "get": { + "description": "List public events.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/feeds": { + "get": { + "description": "List Feeds.\nGitHub provides several timeline resources in Atom format. The Feeds API\n lists all the feeds available to the authenticating user.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/feeds" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists": { + "get": { + "description": "List the authenticated user's gists or if called anonymously, this will\nreturn all public gists.\n", + "parameters": [ + { + "description": "Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.\nOnly gists updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a gist.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/postGist" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gist" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/public": { + "get": { + "description": "List all public gists.", + "parameters": [ + { + "description": "Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.\nOnly gists updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/starred": { + "get": { + "description": "List the authenticated user's starred gists.", + "parameters": [ + { + "description": "Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.\nOnly gists updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}": { + "delete": { + "description": "Delete a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gist" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/patchGist" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gist" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/comments": { + "get": { + "description": "List comments on a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a commen", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/comments/{commentId}": { + "delete": { + "description": "Delete a comment.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single comment.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a comment.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/comment" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/forks": { + "post": { + "description": "Fork a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Not exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/star": { + "delete": { + "description": "Unstar a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Item removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if a gist is starred.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Not exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Star a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Starred.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gitignore/templates": { + "get": { + "description": "Listing available templates.\nList all templates available to pass as an option when creating a repository.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gitignore/templates/{language}": { + "get": { + "description": "Get a single template.", + "parameters": [ + { + "in": "path", + "name": "language", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore-lang" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/issues": { + "get": { + "description": "List issues.\nList all issues across all the authenticated user's visible repositories.\n", + "parameters": [ + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/issues/search/{owner}/{repository}/{state}/{keyword}": { + "get": { + "deprecated": true, + "description": "Find issues by state and keyword.", + "parameters": [ + { + "description": "The search term.", + "in": "path", + "name": "keyword", + "required": true, + "type": "string" + }, + { + "description": "Indicates the state of the issues to return. Can be either open or closed.", + "enum": ["open", "closed"], + "in": "path", + "name": "state", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "repository", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-issues-by-keyword" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/repos/search/{keyword}": { + "get": { + "deprecated": true, + "description": "Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter.", + "parameters": [ + { + "description": "The search term", + "in": "path", + "name": "keyword", + "required": true, + "type": "string" + }, + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "Filter results by language", + "in": "query", + "name": "language", + "type": "string" + }, + { + "description": "The page number to fetch", + "in": "query", + "name": "start_page", + "type": "string" + }, + { + "description": "The sort field. One of stars, forks, or updated. Default: results are sorted by best match.", + "enum": ["updated", "stars", "forks"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-repositories-by-keyword" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/user/email/{email}": { + "get": { + "deprecated": true, + "description": "This API call is added for compatibility reasons only.", + "parameters": [ + { + "description": "The email address", + "in": "path", + "name": "email", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-user-by-email" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/user/search/{keyword}": { + "get": { + "deprecated": true, + "description": "Find users by keyword.", + "parameters": [ + { + "description": "The search term", + "in": "path", + "name": "keyword", + "required": true, + "type": "string" + }, + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The page number to fetch", + "in": "query", + "name": "start_page", + "type": "string" + }, + { + "description": "The sort field. One of stars, forks, or updated. Default: results are sorted by best match.", + "enum": ["updated", "stars", "forks"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-users-by-keyword" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/markdown": { + "post": { + "description": "Render an arbitrary Markdown document", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/markdown" + } + } + ], + "produces": ["text/html"], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/markdown/raw": { + "post": { + "consumes": ["text/plain"], + "description": "Render a Markdown document in raw mode", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "produces": ["text/html"], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/meta": { + "get": { + "description": "This gives some information about GitHub.com, the service.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/meta" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/networks/{owner}/{repo}/events": { + "get": { + "description": "List public events for a network of repositories.", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/notifications": { + "get": { + "description": "List your notifications.\nList all notifications for the current user, grouped by repository.\n", + "parameters": [ + { + "description": "True to show notifications marked as read.", + "in": "query", + "name": "all", + "type": "boolean" + }, + { + "description": "True to show only notifications in which the user is directly participating\nor mentioned.\n", + "in": "query", + "name": "participating", + "type": "boolean" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/notifications" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Mark as read.\nMarking a notification as \"read\" removes it from the default view on GitHub.com.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/notificationMarkRead" + } + } + ], + "responses": { + "205": { + "description": "Marked as read.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/notifications/threads/{id}": { + "get": { + "description": "View a single thread.", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/notifications" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Mark a thread as read", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "205": { + "description": "Thread marked as read.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/notifications/threads/{id}/subscription": { + "delete": { + "description": "Delete a Thread Subscription.", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a Thread Subscription.", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Set a Thread Subscription.\nThis lets you subscribe to a thread, or ignore it. Subscribing to a thread\nis unnecessary if the user is already subscribed to the repository. Ignoring\na thread will mute all future notifications (until you comment or get @mentioned).\n", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/putSubscription" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}": { + "get": { + "description": "Get an Organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organization" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit an Organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/patchOrg" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organization" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/events": { + "get": { + "description": "List public events for an organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/issues": { + "get": { + "description": "List issues.\nList all issues for a given organization for the authenticated user.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/members": { + "get": { + "description": "Members list.\nList all users who are members of an organization. A member is a user tha\nbelongs to at least 1 team in the organization. If the authenticated user\nis also an owner of this organization then both concealed and public members\nwill be returned. If the requester is not an owner of the organization the\nquery will be redirected to the public members list.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "302": { + "description": "Response if requester is not an organization member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/members/{username}": { + "delete": { + "description": "Remove a member.\nRemoving a user from this list will remove them from all teams and they\nwill no longer have any access to the organization's repositories.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if a user is, publicly or privately, a member of the organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content. Response if requester is an organization member and user is a member\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "302": { + "description": "Found. Response if requester is not an organization member\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Not Found.\na. Response if requester is an organization member and user is not a member\nb. Response if requester is not an organization member and is inquiring about themselves\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/public_members": { + "get": { + "description": "Public members list.\nMembers of an organization can choose to have their membership publicized\nor not.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/public_members/{username}": { + "delete": { + "description": "Conceal a user's membership.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Concealed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check public membership.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is a public member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User is not a public member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Publicize a user's membership.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Publicized.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/repos": { + "get": { + "description": "List repositories for the specified org.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "default": "all", + "enum": ["all", "public", "private", "forks", "sources", "member"], + "in": "query", + "name": "type", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a new repository for the authenticated user. OAuth users must supply\nrepo scope.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/postRepo" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/teams": { + "get": { + "description": "List teams.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teams" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create team.\nIn order to create a team, the authenticated user must be an owner of organization.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/orgTeamsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/team" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/rate_limit": { + "get": { + "description": "Get your current rate limit status\nNote: Accessing this endpoint does not count against your rate limit.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/rate_limit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}": { + "delete": { + "description": "Delete a Repository.\nDeleting a repository requires admin access. If OAuth is used, the delete_repo\nscope is required.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Item removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/repoEdit" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/assignees": { + "get": { + "description": "List assignees.\nThis call lists all the available assignees (owner + collaborators) to which\nissues may be assigned.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/assignees" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/assignees/{assignee}": { + "get": { + "description": "Check assignee.\nYou may also check to see if a particular user is an assignee for a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the assignee.", + "in": "path", + "name": "assignee", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is an assignee.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User isn't an assignee.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/branches": { + "get": { + "description": "Get list of branches", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/branches" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/branches/{branch}": { + "get": { + "description": "Get Branch", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the branch.", + "in": "path", + "name": "branch", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/branch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/collaborators": { + "get": { + "description": "List.\nWhen authenticating as an organization owner of an organization-owned\nrepository, all organization owners are included in the list of\ncollaborators. Otherwise, only users with access to the repository are\nreturned in the collaborators list.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/collaborators/{user}": { + "delete": { + "description": "Remove collaborator.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the user.", + "in": "path", + "name": "user", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Collaborator removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if user is a collaborator", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the user.", + "in": "path", + "name": "user", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is a collaborator.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User is not a collaborator.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Add collaborator.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the user.", + "in": "path", + "name": "user", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Collaborator added.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/comments": { + "get": { + "description": "List commit comments for a repository.\nComments are ordered by ascending ID.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repoComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/comments/{commentId}": { + "delete": { + "description": "Delete a commit comment", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single commit comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a commit comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits": { + "get": { + "description": "List commits on a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Sha or branch to start listing commits from.", + "in": "query", + "name": "sha", + "type": "string" + }, + { + "description": "Only commits containing this file path will be returned.", + "in": "query", + "name": "path", + "type": "string" + }, + { + "description": "GitHub login, name, or email by which to filter by commit author.", + "in": "query", + "name": "author", + "type": "string" + }, + { + "description": "ISO 8601 Date - Only commits before this date will be returned.", + "in": "query", + "name": "until", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commits" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits/{ref}/status": { + "get": { + "description": "Get the combined Status for a specific Ref\nThe Combined status endpoint is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details.\nTo access this endpoint during the preview period, you must provide a custom media type in the Accept header:\napplication/vnd.github.she-hulk-preview+json\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/refStatus" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits/{shaCode}": { + "get": { + "description": "Get a single commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code of the commit.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits/{shaCode}/comments": { + "get": { + "description": "List comments for a single commitList comments for a single commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code of the commit.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repoComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a commit comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code of the commit.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commitCommentBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/compare/{baseId}...{headId}": { + "get": { + "description": "Compare two commits", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "baseId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "headId", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/compare-commits" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/contents/{path}": { + "delete": { + "description": "Delete a file.\nThis method deletes a file in a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/deleteFileBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/deleteFile" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get contents.\nThis method returns the contents of a file or directory in a repository.\nFiles and symlinks support a custom media type for getting the raw content.\nDirectories and submodules do not support custom media types.\nNote: This API supports files up to 1 megabyte in size.\nHere can be many outcomes. For details see \"http://developer.github.com/v3/repos/contents/\"\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "The content path.", + "in": "query", + "name": "path", + "type": "string" + }, + { + "description": "The String name of the Commit/Branch/Tag. Defaults to 'master'.", + "in": "query", + "name": "ref", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/contents-path" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Create a file.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/createFileBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/createFile" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/contributors": { + "get": { + "description": "Get list of contributors.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Set to 1 or true to include anonymous contributors in results.", + "in": "query", + "name": "anon", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/deployments": { + "get": { + "description": "Users with pull access can view deployments for a repository", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo-deployments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Users with push access can create a deployment for a given ref", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/deployment" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/deployment-resp" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/deployments/{id}/statuses": { + "get": { + "description": "Users with pull access can view deployment statuses for a deployment", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The Deployment ID to list the statuses from.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/deployment-statuses" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a Deployment Status\nUsers with push access can create deployment statuses for a given deployment:\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The Deployment ID to list the statuses from.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/deployment-statuses-create" + } + } + ], + "responses": { + "201": { + "description": "ok", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/downloads": { + "get": { + "deprecated": true, + "description": "Deprecated. List downloads for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/downloads" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/downloads/{downloadId}": { + "delete": { + "deprecated": true, + "description": "Deprecated. Delete a download.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of download.", + "in": "path", + "name": "downloadId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "deprecated": true, + "description": "Deprecated. Get a single download.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of download.", + "in": "path", + "name": "downloadId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/download" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/events": { + "get": { + "description": "Get list of repository events.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/forks": { + "get": { + "description": "List forks.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "newes", + "enum": ["newes", "oldes", "watchers"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/forks" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a fork.\nForking a Repository happens asynchronously. Therefore, you may have to wai\na short period before accessing the git objects. If this takes longer than 5\nminutes, be sure to contact Support.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/forkBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/blobs": { + "post": { + "description": "Create a Blob.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/blob" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/blobs" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/blobs/{shaCode}": { + "get": { + "description": "Get a Blob.\nSince blobs can be any arbitrary binary data, the input and responses for\nthe blob API takes an encoding parameter that can be either utf-8 or\nbase64. If your data cannot be losslessly sent as a UTF-8 string, you can\nbase64 encode it.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/blob" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/commits": { + "post": { + "description": "Create a Commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/repoCommitBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitCommit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/commits/{shaCode}": { + "get": { + "description": "Get a Commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repoCommit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/refs": { + "get": { + "description": "Get all References", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/refs" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a Reference", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/refsBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/headBranch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/refs/{ref}": { + "delete": { + "description": "Delete a Reference\nExample: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a\nExample: Deleting a tag: DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a Reference", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/headBranch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a Reference", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/gitRefPatch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/headBranch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/tags": { + "post": { + "description": "Create a Tag Object.\nNote that creating a tag object does not create the reference that makes a\ntag in Git. If you want to create an annotated tag in Git, you have to do\nthis call to create the tag object, and then create the refs/tags/[tag]\nreference. If you want to create a lightweight tag, you only have to create\nthe tag reference - this call would be unnecessary.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/tagBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tag" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/tags/{shaCode}": { + "get": { + "description": "Get a Tag.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tag" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/trees": { + "post": { + "description": "Create a Tree.\nThe tree creation API will take nested entries as well. If both a tree and\na nested path modifying that tree are specified, it will overwrite the\ncontents of that tree with the new path contents and write a new tree out.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/tree" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/trees" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/trees/{shaCode}": { + "get": { + "description": "Get a Tree.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Tree SHA.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Get a Tree Recursively. (0 or 1)", + "in": "query", + "name": "recursive", + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tree" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/hooks": { + "get": { + "description": "Get list of hooks.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/hookBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/hooks/{hookId}": { + "delete": { + "description": "Delete a hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get single hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/hookBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/hooks/{hookId}/tests": { + "post": { + "description": "Test a push hook.\nThis will trigger the hook with the latest push to the current repository\nif the hook is subscribed to push events. If the hook is not subscribed\nto push events, the server will respond with 204 but no test POST will\nbe generated.\nNote: Previously /repos/:owner/:repo/hooks/:id/tes\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Hook is triggered.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues": { + "get": { + "description": "List issues for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create an issue.\nAny user with pull access to a repository can create an issue.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/issue" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issue" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/comments": { + "get": { + "description": "List comments in a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "description": "", + "enum": ["created", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/comments/{commentId}": { + "delete": { + "description": "Delete a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "ID of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "ID of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "ID of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/events": { + "get": { + "description": "List issue events for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issueEvents" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/events/{eventId}": { + "get": { + "description": "Get a single event.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of the event.", + "in": "path", + "name": "eventId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issueEvent" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}": { + "get": { + "description": "Get a single issue", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issue" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit an issue.\nIssue owners and users with push access can edit an issue.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/issue" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issue" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/comments": { + "get": { + "description": "List comments on an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/events": { + "get": { + "description": "List events for an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issueEvents" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/labels": { + "delete": { + "description": "Remove all labels from an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "List labels on an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/labels" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Add labels to an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Replace all labels for an issue.\nSending an empty array ([]) will remove all Labels from the Issue.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/labels/{name}": { + "delete": { + "description": "Remove a label from an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Item removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/keys": { + "get": { + "description": "Get list of keys.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/keys" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a key.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-keys-post" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/keys/{keyId}": { + "delete": { + "description": "Delete a key.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a key", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/labels": { + "get": { + "description": "List all labels for this repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/labels" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/labels/{name}": { + "delete": { + "description": "Delete a label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/languages": { + "get": { + "description": "List languages.\nList languages for the specified repository. The value on the right of a\nlanguage is the number of bytes of code written in that language.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/languages" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/merges": { + "post": { + "description": "Perform a merge.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/mergesBody" + } + } + ], + "responses": { + "201": { + "description": "Successful Response (The resulting merge commit)", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/mergesSuccessful" + } + }, + "204": { + "description": "No-op response (base already contains the head, nothing to merge)", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Missing base response or missing head response", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/mergesConflict" + } + }, + "409": { + "description": "Merge conflict response.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/mergesConflict" + } + } + } + } + }, + "/repos/{owner}/{repo}/milestones": { + "get": { + "description": "List milestones for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "open", + "description": "String to filter by state.", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "type": "string" + }, + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "default": "due_date", + "description": "", + "enum": ["due_date", "completeness"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/milestoneUpdate" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/milestones/{number}": { + "delete": { + "description": "Delete a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/milestoneUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/milestones/{number}/labels": { + "get": { + "description": "Get labels for every issue in a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/labels" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/notifications": { + "get": { + "description": "List your notifications in a repository\nList all notifications for the current user.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "True to show notifications marked as read.", + "in": "query", + "name": "all", + "type": "boolean" + }, + { + "description": "True to show only notifications in which the user is directly participating\nor mentioned.\n", + "in": "query", + "name": "participating", + "type": "boolean" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/notifications" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Mark notifications as read in a repository.\nMarking all notifications in a repository as \"read\" removes them from the\ndefault view on GitHub.com.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/notificationMarkRead" + } + } + ], + "responses": { + "205": { + "description": "Marked as read.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls": { + "get": { + "description": "List pull requests.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "open", + "description": "String to filter by state.", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "type": "string" + }, + { + "description": "Filter pulls by head user and branch name in the format of 'user:ref-name'.\nExample: github:new-script-format.\n", + "in": "query", + "name": "head", + "type": "string" + }, + { + "description": "Filter pulls by base branch name. Example - gh-pages.", + "in": "query", + "name": "base", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pulls" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/pullsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pulls" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/comments": { + "get": { + "description": "List comments in a repository.\nBy default, Review Comments are ordered by ascending ID.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "description": "", + "enum": ["created", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/comments/{commentId}": { + "delete": { + "description": "Delete a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}": { + "get": { + "description": "Get a single pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullRequest" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/pullUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/comments": { + "get": { + "description": "List comments on a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a comment.\n #TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ )\n description: |\n Alternative Input.\n Instead of passing commit_id, path, and position you can reply to an\n existing Pull Request Comment like this:\n\n body\n Required string\n in_reply_to\n Required number - Comment id to reply to.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/pullsCommentPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/commits": { + "get": { + "description": "List commits on a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commits" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/files": { + "get": { + "description": "List pull requests files.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pulls" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/merge": { + "get": { + "description": "Get if a pull request has been merged.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Pull request has been merged.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Pull request has not been merged.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Merge a pull request (Merge Button's)", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/mergePullBody" + } + } + ], + "responses": { + "200": { + "description": "Response if merge was successful.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/merge" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "405": { + "description": "Response if merge cannot be performed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/merge" + } + } + } + } + }, + "/repos/{owner}/{repo}/readme": { + "get": { + "description": "Get the README.\nThis method returns the preferred README for a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The String name of the Commit/Branch/Tag. Defaults to master.", + "in": "query", + "name": "ref", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/contents-path" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases": { + "get": { + "description": "Users with push access to the repository will receive all releases (i.e., published releases and draft releases). Users with pull access will receive published releases only", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/releases" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a release\nUsers with push access to the repository can create a release.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/release-create" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/release" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases/assets/{id}": { + "delete": { + "description": "Delete a release asset", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single release asset", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/asset" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a release asset\nUsers with push access to the repository can edit a release asset.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/assetPatch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/asset" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases/{id}": { + "delete": { + "description": "Users with push access to the repository can delete a release.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single release", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/release" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Users with push access to the repository can edit a release", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/release-create" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/release" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases/{id}/assets": { + "get": { + "description": "List assets for a release", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/assets" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stargazers": { + "get": { + "description": "List Stargazers.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/code_frequency": { + "get": { + "description": "Get the number of additions and deletions per week.\nReturns a weekly aggregate of the number of additions and deletions pushed\nto a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/codeFrequencyStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/commit_activity": { + "get": { + "description": "Get the last year of commit activity data.\nReturns the last year of commit activity grouped by week. The days array\nis a group of commits per day, starting on Sunday.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitActivityStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/contributors": { + "get": { + "description": "Get contributors list with additions, deletions, and commit counts.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/contributorsStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/participation": { + "get": { + "description": "Get the weekly commit count for the repo owner and everyone else.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/participationStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/punch_card": { + "get": { + "description": "Get the number of commits per hour in each day.\nEach array contains the day number, hour number, and number of commits\n0-6 Sunday - Saturday\n0-23 Hour of day\nNumber of commits\n\nFor example, [2, 14, 25] indicates that there were 25 total commits, during\nthe 2.00pm hour on Tuesdays. All times are based on the time zone of\nindividual commits.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/codeFrequencyStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/statuses/{ref}": { + "get": { + "description": "List Statuses for a specific Ref.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.\n", + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/ref" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a Status.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.\n", + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/headBranch" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/ref" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/subscribers": { + "get": { + "description": "List watchers.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/subscription": { + "delete": { + "description": "Delete a Repository Subscription.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a Repository Subscription.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Set a Repository Subscription", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/subscriptionBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/tags": { + "get": { + "description": "Get list of tags.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tags" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/teams": { + "get": { + "description": "Get list of teams", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teams" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/watchers": { + "get": { + "description": "List Stargazers. New implementation.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/{archive_format}/{path}": { + "get": { + "description": "Get archive link.\nThis method will return a 302 to a URL to download a tarball or zipball\narchive for a repository. Please make sure your HTTP framework is\nconfigured to follow redirects or you will need to use the Location header\nto make a second GET request.\nNote: For private repositories, these links are temporary and expire quickly.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "enum": ["tarball", "zipball"], + "in": "path", + "name": "archive_format", + "required": true, + "type": "string" + }, + { + "description": "Valid Git reference, defaults to 'master'.", + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "302": { + "description": "Found.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repositories": { + "get": { + "description": "List all public repositories.\nThis provides a dump of every public repository, in the order that they\nwere created.\nNote: Pagination is powered exclusively by the since parameter. is the\nLink header to get the URL for the next page of repositories.\n", + "parameters": [ + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/code": { + "get": { + "description": "Search code.", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The search terms. This can be any combination of the supported code\nsearch parameters:\n'Search In' Qualifies which fields are searched. With this qualifier\nyou can restrict the search to just the file contents, the file path,\nor both.\n'Languages' Searches code based on the language it's written in.\n'Forks' Filters repositories based on the number of forks, and/or\nwhether code from forked repositories should be included in the results\nat all.\n'Size' Finds files that match a certain size (in bytes).\n'Path' Specifies the path that the resulting file must be at.\n'Extension' Matches files with a certain extension.\n'Users' or 'Repositories' Limits searches to a specific user or repository.\n", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "Can only be 'indexed', which indicates how recently a file has been indexed\nby the GitHub search infrastructure. If not provided, results are sorted\nby best match.\n", + "enum": ["indexed"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-code" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/issues": { + "get": { + "description": "Find issues by state and keyword. (This method returns up to 100 results per page.)", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The q search term can also contain any combination of the supported issue search qualifiers:", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "The sort field. Can be comments, created, or updated. Default: results are sorted by best match.", + "enum": ["updated", "created", "comments"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/repositories": { + "get": { + "description": "Search repositories.", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The search terms. This can be any combination of the supported repository\nsearch parameters:\n'Search In' Qualifies which fields are searched. With this qualifier you\ncan restrict the search to just the repository name, description, readme,\nor any combination of these.\n'Size' Finds repositories that match a certain size (in kilobytes).\n'Forks' Filters repositories based on the number of forks, and/or whether\nforked repositories should be included in the results at all.\n'Created' and 'Last Updated' Filters repositories based on times of\ncreation, or when they were last updated.\n'Users or Repositories' Limits searches to a specific user or repository.\n'Languages' Searches repositories based on the language they are written in.\n'Stars' Searches repositories based on the number of stars.\n", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "If not provided, results are sorted by best match.", + "enum": ["stars", "forks", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-repositories" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/users": { + "get": { + "description": "Search users.", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The search terms. This can be any combination of the supported user\nsearch parameters:\n'Search In' Qualifies which fields are searched. With this qualifier you\ncan restrict the search to just the username, public email, full name,\nlocation, or any combination of these.\n'Repository count' Filters users based on the number of repositories they\nhave.\n'Location' Filter users by the location indicated in their profile.\n'Language' Search for users that have repositories that match a certain\nlanguage.\n'Created' Filter users based on when they joined.\n'Followers' Filter users based on the number of followers they have.\n", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "If not provided, results are sorted by best match.", + "enum": ["followers", "repositories", "joined"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}": { + "delete": { + "description": "Delete team.\nIn order to delete a team, the authenticated user must be an owner of the\norg that the team is associated with.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get team.", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/team" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit team.\nIn order to edit a team, the authenticated user must be an owner of the org\nthat the team is associated with.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/editTeam" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/team" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}/members": { + "get": { + "description": "List team members.\nIn order to list members in a team, the authenticated user must be a member\nof the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}/members/{username}": { + "delete": { + "deprecated": true, + "description": "The \"Remove team member\" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Remove team membership API instead. It allows you to remove both active and pending memberships.\n\nRemove team member.\nIn order to remove a user from a team, the authenticated user must have 'admin'\npermissions to the team or be an owner of the org that the team is associated\nwith.\nNOTE This does not delete the user, it just remove them from the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Team member removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "deprecated": true, + "description": "The \"Get team member\" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Get team membership API instead. It allows you to get both active and pending memberships.\n\nGet team member.\nIn order to get if a user is a member of a team, the authenticated user mus\nbe a member of the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is a member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User is not a member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "deprecated": true, + "description": "The API (described below) is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Add team membership API instead. It allows you to invite new organization members to your teams.\n\nAdd team member.\nIn order to add a user to a team, the authenticated user must have 'admin'\npermissions to the team or be an owner of the org that the team is associated\nwith.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Team member added.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "422": { + "description": "If you attempt to add an organization to a team, you will get this.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organizationAsTeamMember" + } + } + } + } + }, + "/teams/{teamId}/memberships/{username}": { + "delete": { + "description": "Remove team membership.\nIn order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Team member removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get team membership.\nIn order to get a user's membership with a team, the authenticated user must be a member of the team or an owner of the team's organization.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "User is a member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teamMembership" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User has no membership with team", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Add team membership.\nIn order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with.\n\nIf the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team.\n\nIf the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the 'pending' state until the user accepts the invitation, at which point the membership will transition to the 'active' state and the user will be added as a member of the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Team member added.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teamMembership" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "422": { + "description": "If you attempt to add an organization to a team, you will get this.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organizationAsTeamMember" + } + } + } + } + }, + "/teams/{teamId}/repos": { + "get": { + "description": "List team repos", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teamRepos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}/repos/{owner}/{repo}": { + "delete": { + "description": "In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team.", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if a team manages a repository", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "In order to add a repository to a team, the authenticated user must be an owner of the org that the team is associated with. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization.", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a organization.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user": { + "get": { + "description": "Get the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-update" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/emails": { + "delete": { + "description": "Delete email address(es).\nYou can include a single email address or an array of addresses.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-emails" + } + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "List email addresses for a user.\nIn the final version of the API, this method will return an array of hashes\nwith extended information for each email address indicating if the address\nhas been verified and if it's primary email address for GitHub.\nUntil API v3 is finalized, use the application/vnd.github.v3 media type to\nget other response format.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "produces": ["application/vnd.github.v3"], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-emails" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Add email address(es).\nYou can post a single email address or an array of addresses.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/followers": { + "get": { + "description": "List the authenticated user's followers", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/following": { + "get": { + "description": "List who the authenticated user is following.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/following/{username}": { + "delete": { + "description": "Unfollow a user.\nUnfollowing a user requires the user to be logged in and authenticated with\nbasic auth or OAuth with the user:follow scope.\n", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User unfollowed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if you are following a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Response if you are following this user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Response if you are not following this user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Follow a user.\nFollowing a user requires the user to be logged in and authenticated with\nbasic auth or OAuth with the user:follow scope.\n", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "You are now following the user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/issues": { + "get": { + "description": "List issues.\nList all issues across owned and member repositories for the authenticated\nuser.\n", + "parameters": [ + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/keys": { + "get": { + "description": "List your public keys.\nLists the current user's keys. Management of public keys via the API requires\nthat you are authenticated through basic auth, or OAuth with the 'user', 'write:public_key' scopes.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a public key.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-keys-post" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/keys/{keyId}": { + "delete": { + "description": "Delete a public key. Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope.", + "parameters": [ + { + "description": "ID of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single public key.", + "parameters": [ + { + "description": "ID of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/orgs": { + "get": { + "description": "List public and private organizations for the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/repos": { + "get": { + "description": "List repositories for the authenticated user. Note that this does not include\nrepositories owned by organizations which the user can access. You can lis\nuser organizations and list organization repositories separately.\n", + "parameters": [ + { + "default": "all", + "enum": ["all", "public", "private", "forks", "sources", "member"], + "in": "query", + "name": "type", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a new repository for the authenticated user. OAuth users must supply\nrepo scope.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/postRepo" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/starred": { + "get": { + "description": "List repositories being starred by the authenticated user.", + "parameters": [ + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "default": "created", + "description": "", + "enum": ["created", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/starred/{owner}/{repo}": { + "delete": { + "description": "Unstar a repository", + "parameters": [ + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Unstarred.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if you are starring a repository.", + "parameters": [ + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "This repository is starred by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "This repository is not starred by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Star a repository.", + "parameters": [ + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Repository starred.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/subscriptions": { + "get": { + "description": "List repositories being watched by the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/subscriptions/{owner}/{repo}": { + "delete": { + "deprecated": true, + "description": "Stop watching a repository", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Unwatched.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "deprecated": true, + "description": "Check if you are watching a repository.", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Repository is watched by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Repository is not watched by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "deprecated": true, + "description": "Watch a repository.", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Repository is watched.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/teams": { + "get": { + "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user or repo scope when authenticating via OAuth.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teams-list" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users": { + "get": { + "description": "Get all users.\nThis provides a dump of every user, in the order that they signed up for GitHub.\nNote: Pagination is powered exclusively by the since parameter. Use the Link\nheader to get the URL for the next page of users.\n", + "parameters": [ + { + "description": "The integer ID of the last user that you've seen.", + "in": "query", + "name": "since", + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}": { + "get": { + "description": "Get a single user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/events": { + "get": { + "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/events/orgs/{org}": { + "get": { + "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/followers": { + "get": { + "description": "List a user's followers", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/following/{targetUser}": { + "get": { + "description": "Check if one user follows another.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Name of user.", + "in": "path", + "name": "targetUser", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Response if user follows target user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Response if user does not follow target user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/gists": { + "get": { + "description": "List a users gists.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/keys": { + "get": { + "description": "List public keys for a user.\nLists the verified public keys for a user. This is accessible by anyone.\n", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/orgs": { + "get": { + "description": "List all public organizations for a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/received_events": { + "get": { + "description": "These are events that you'll only see public events.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/received_events/public": { + "get": { + "description": "List public events that a user has received", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/repos": { + "get": { + "description": "List public repositories for the specified user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "default": "all", + "enum": ["all", "public", "private", "forks", "sources", "member"], + "in": "query", + "name": "type", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/starred": { + "get": { + "description": "List repositories being starred by a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/subscriptions": { + "get": { + "description": "List repositories being watched by a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + } + }, + "definitions": { + "actor": { + "description": "A user or organization", + "properties": { + "avatar_url": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "blog": { + "description": "The website URL from the profile page", + "type": "string" + }, + "collaborators": { + "type": "integer" + }, + "company": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "disk_usage": { + "type": "integer" + }, + "email": { + "description": "Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile).", + "type": "string" + }, + "followers": { + "type": "integer" + }, + "followers_url": { + "type": "string" + }, + "following": { + "type": "integer" + }, + "following_url": { + "type": "string" + }, + "gists_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "hireable": { + "type": "boolean" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "location": { + "type": "string" + }, + "login": { + "description": "The account username", + "type": "string" + }, + "name": { + "description": "The full account name", + "type": "string" + }, + "organizations_url": { + "type": "string" + }, + "owned_private_repos": { + "type": "integer" + }, + "plan": { + "properties": { + "collaborators": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "private_repos": { + "type": "integer" + }, + "space": { + "type": "integer" + } + }, + "type": "object" + }, + "private_gists": { + "type": "integer" + }, + "public_gists": { + "type": "integer" + }, + "public_repos": { + "type": "integer" + }, + "starred_url": { + "type": "string" + }, + "subscriptions_url": { + "type": "string" + }, + "total_private_repos": { + "type": "integer" + }, + "type": { + "enum": ["User", "Organization"] + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "asset": { + "properties": { + "content_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "download_count": { + "type": "number" + }, + "id": { + "type": "number" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "number" + }, + "state": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "uploader": { + "$ref": "#/definitions/user" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "assetPatch": { + "properties": { + "label": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": ["name"], + "type": "object" + }, + "assets": { + "items": { + "$ref": "#/definitions/asset" + }, + "type": "array" + }, + "assignees": { + "items": { + "$ref": "#/definitions/user" + }, + "type": "array" + }, + "blob": { + "properties": { + "content": { + "type": "string" + }, + "encoding": { + "enum": ["utf-8", "base64"] + }, + "sha": { + "type": "string" + }, + "size": { + "type": "integer" + } + }, + "type": "object" + }, + "blobs": { + "properties": { + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "branch": { + "properties": { + "_links": { + "properties": { + "html": { + "type": "string" + }, + "self": { + "type": "string" + } + }, + "type": "object" + }, + "commit": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "branches": { + "items": { + "properties": { + "commit": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "codeFrequencyStats": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "comment": { + "properties": { + "body": { + "type": "string" + } + }, + "type": "object" + }, + "commentBody": { + "properties": { + "body": { + "type": "string" + } + }, + "required": ["body"], + "type": "object" + }, + "comments": { + "items": { + "properties": { + "body": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601.", + "type": "string" + }, + "id": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "commit": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "files": { + "items": { + "properties": { + "additions": { + "type": "integer" + }, + "blob_url": { + "type": "string" + }, + "changes": { + "type": "integer" + }, + "deletions": { + "type": "integer" + }, + "filename": { + "type": "string" + }, + "patch": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "stats": { + "properties": { + "additions": { + "type": "integer" + }, + "deletions": { + "type": "integer" + }, + "total": { + "type": "integer" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "commitActivityStats": { + "items": { + "properties": { + "days": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "total": { + "type": "integer" + }, + "week": { + "type": "integer" + } + }, + "type": "object" + }, + "type": "array" + }, + "commitComment": { + "properties": { + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "line": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "commitCommentBody": { + "properties": { + "body": { + "type": "string" + }, + "line": { + "description": "Deprecated - Use position parameter instead.", + "type": "string" + }, + "number": { + "description": "Line number in the file to comment on. Defaults to null.", + "type": "string" + }, + "path": { + "description": "Relative path of the file to comment on.", + "type": "string" + }, + "position": { + "description": "Line index in the diff to comment on.", + "type": "integer" + }, + "sha": { + "description": "SHA of the commit to comment on.", + "type": "string" + } + }, + "required": ["sha", "body"], + "type": "object" + }, + "commits": { + "items": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "compare-commits": { + "properties": { + "ahead_by": { + "type": "integer" + }, + "base_commit": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "behind_by": { + "type": "integer" + }, + "commits": { + "items": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "diff_url": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "additions": { + "type": "integer" + }, + "blob_url": { + "type": "string" + }, + "changes": { + "type": "integer" + }, + "contents_url": { + "type": "string" + }, + "deletions": { + "type": "integer" + }, + "filename": { + "type": "string" + }, + "patch": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "html_url": { + "type": "string" + }, + "patch_url": { + "type": "string" + }, + "permalink_url": { + "type": "string" + }, + "status": { + "type": "string" + }, + "total_commits": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "contents-path": { + "properties": { + "_links": { + "properties": { + "git": { + "type": "string" + }, + "html": { + "type": "string" + }, + "self": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "type": "string" + }, + "encoding": { + "type": "string" + }, + "git_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "contributorsStats": { + "items": { + "properties": { + "author": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "total": { + "description": "The Total number of commits authored by the contributor.", + "type": "integer" + }, + "weeks": { + "items": { + "properties": { + "a": { + "description": "Number of additions.", + "type": "integer" + }, + "c": { + "description": "Number of commits.", + "type": "integer" + }, + "d": { + "description": "Number of deletions.", + "type": "integer" + }, + "w": { + "description": "Start of the week.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + }, + "createFile": { + "properties": { + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "html_url": { + "type": "string" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "properties": { + "html_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "properties": { + "_links": { + "properties": { + "git": { + "type": "string" + }, + "html": { + "type": "string" + }, + "self": { + "type": "string" + } + }, + "type": "object" + }, + "git_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "createFileBody": { + "properties": { + "committer": { + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "deleteFile": { + "properties": { + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "html_url": { + "type": "string" + }, + "message": { + "type": "string" + }, + "parents": { + "properties": { + "html_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "sha": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "type": "string" + } + }, + "type": "object" + }, + "deleteFileBody": { + "properties": { + "committer": { + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "deployment": { + "properties": { + "description": { + "type": "string" + }, + "payload": { + "properties": { + "deploy_user": { + "type": "string" + }, + "environment": { + "type": "string" + }, + "room_id": { + "type": "number" + } + }, + "type": "object" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "deployment-resp": { + "properties": { + "created_at": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "payload": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "statuses_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "deployment-statuses": { + "items": { + "properties": { + "created_at": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "payload": { + "type": "string" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "deployment-statuses-create": { + "properties": { + "description": { + "type": "string" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + } + }, + "type": "object" + }, + "download": { + "properties": { + "content_type": { + "type": "string" + }, + "description": { + "type": "string" + }, + "download_count": { + "type": "integer" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "downloads": { + "items": { + "$ref": "#/definitions/download" + }, + "type": "array" + }, + "editTeam": { + "properties": { + "name": { + "type": "string" + }, + "permission": { + "enum": ["pull", "push", "admin"] + } + }, + "required": ["name"], + "type": "object" + }, + "emailsPost": { + "items": { + "type": "string" + }, + "type": "array" + }, + "emojis": { + "additionalProperties": { + "description": "A URL for an image representing this emoji", + "type": "string" + }, + "type": "object" + }, + "event": { + "properties": { + "actor": { + "$ref": "#/definitions/actor" + }, + "created_at": { + "type": "object" + }, + "id": { + "type": "integer" + }, + "org": { + "$ref": "#/definitions/organization" + }, + "payload": { + "properties": {}, + "type": "object" + }, + "public": { + "type": "boolean" + }, + "repo": { + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "events": { + "items": { + "$ref": "#/definitions/event" + }, + "type": "array" + }, + "feeds": { + "properties": { + "_links": { + "properties": { + "current_user": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "current_user_actor": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "current_user_organization": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "current_user_public": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "timeline": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "user": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + } + } + }, + "current_user_actor_url": { + "type": "string" + }, + "current_user_organization_url": { + "type": "string" + }, + "current_user_public": { + "type": "string" + }, + "current_user_url": { + "type": "string" + }, + "timeline_url": { + "type": "string" + }, + "user_url": { + "type": "string" + } + }, + "type": "object" + }, + "forkBody": { + "properties": { + "organization": { + "type": "string" + } + }, + "type": "object" + }, + "forks": { + "$ref": "#/definitions/repos" + }, + "gist": { + "properties": { + "comments": { + "type": "integer" + }, + "comments_url": { + "type": "string" + }, + "created_at": { + "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.", + "type": "string" + }, + "description": { + "type": "string" + }, + "files": { + "properties": { + "ring.erl": { + "properties": { + "filename": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "size": { + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "forks": { + "items": { + "properties": { + "created_at": { + "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "git_pull_url": { + "type": "string" + }, + "git_push_url": { + "type": "string" + }, + "history": { + "items": { + "properties": { + "change_status": { + "properties": { + "additions": { + "type": "integer" + }, + "deletions": { + "type": "integer" + }, + "total": { + "type": "integer" + } + }, + "type": "object" + }, + "committed_at": { + "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "gists": { + "items": { + "properties": { + "comments": { + "type": "integer" + }, + "comments_url": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "description": { + "type": "string" + }, + "files": { + "properties": { + "ring.erl": { + "properties": { + "filename": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "size": { + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "git_pull_url": { + "type": "string" + }, + "git_push_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "gitCommit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "parents": { + "type": "string" + }, + "tree": { + "type": "string" + } + }, + "type": "object" + }, + "gitRefPatch": { + "properties": { + "force": { + "type": "boolean" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "gitignore": { + "items": {}, + "type": "array" + }, + "gitignore-lang": { + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + } + }, + "type": "object" + }, + "headBranch": { + "properties": { + "object": { + "properties": { + "sha": { + "type": "string" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "ref": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "hook": { + "items": { + "properties": { + "active": { + "type": "boolean" + }, + "config": { + "properties": { + "content_type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "events": { + "items": { + "enum": [ + "push", + "issues", + "issue_comment", + "commit_comment", + "pull_request", + "pull_request_review_comment", + "gollum", + "watch", + "download", + "fork", + "fork_apply", + "member", + "public", + "team_add", + "status" + ] + }, + "type": "array" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "hookBody": { + "properties": { + "active": { + "type": "boolean" + }, + "add_events": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "issue": { + "properties": { + "assignee": { + "type": "string" + }, + "body": { + "type": "string" + }, + "labels": { + "items": { + "type": "string" + }, + "type": "array" + }, + "milestone": { + "type": "number" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "issueEvent": { + "properties": { + "actor": { + "$ref": "#/definitions/actor" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "event": { + "type": "string" + }, + "issue": { + "properties": { + "assignee": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "closed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "comments": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "labels": { + "items": { + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "milestone": { + "properties": { + "closed_issues": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "due_on": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "open_issues": { + "type": "integer" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "number": { + "type": "integer" + }, + "pull_request": { + "properties": { + "diff_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "patch_url": { + "type": "string" + } + }, + "type": "object" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "issueEvents": { + "items": { + "$ref": "#/definitions/issueEvent" + }, + "type": "array" + }, + "issues": { + "items": { + "properties": { + "assignee": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "closed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "comments": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "labels": { + "items": { + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "milestone": { + "properties": { + "closed_issues": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "due_on": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "open_issues": { + "type": "integer" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "number": { + "type": "integer" + }, + "pull_request": { + "properties": { + "diff_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "patch_url": { + "type": "string" + } + }, + "type": "object" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "issuesComment": { + "properties": { + "body": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "issuesComments": { + "items": { + "properties": { + "_links": { + "properties": { + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "pull_request": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "id": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "keys": { + "items": { + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "label": { + "properties": { + "color": { + "maxLength": 6, + "minLength": 6, + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "labels": { + "items": { + "properties": { + "color": { + "maxLength": 6, + "minLength": 6, + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "languages": { + "additionalProperties": { + "type": "integer" + }, + "type": "object" + }, + "markdown": { + "properties": { + "context": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "text": { + "type": "string" + } + }, + "type": "object" + }, + "merge": { + "properties": { + "merged": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "mergePullBody": { + "properties": { + "commit_message": { + "type": "string" + } + }, + "type": "object" + }, + "mergesBody": { + "properties": { + "base": { + "type": "string" + }, + "commit_message": { + "type": "string" + }, + "head": { + "type": "string" + } + }, + "type": "object" + }, + "mergesConflict": { + "properties": { + "message": { + "description": "Error message", + "type": "string" + } + }, + "type": "object" + }, + "mergesSuccessful": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "comments_url": { + "type": "string" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "comment_count": { + "type": "integer" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "merged": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "meta": { + "properties": { + "git": { + "items": { + "description": "An Array of IP addresses in CIDR format specifying the Git servers at GitHub.", + "type": "string" + }, + "type": "array" + }, + "hooks": { + "items": { + "description": "An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from.", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "milestone": { + "properties": { + "closed_issues": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "due_on": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "open_issues": { + "type": "integer" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "milestoneUpdate": { + "properties": { + "description": { + "type": "string" + }, + "due_on": { + "type": "string" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "notificationMarkRead": { + "properties": { + "last_read_at": { + "type": "string" + } + }, + "type": "object" + }, + "notifications": { + "properties": { + "id": { + "type": "integer" + }, + "last_read_at": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "repository": { + "properties": { + "description": { + "type": "string" + }, + "fork": { + "type": "boolean" + }, + "full_name": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/actor" + }, + "private": { + "type": "boolean" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "subject": { + "properties": { + "latest_comment_url": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "unread": { + "type": "boolean" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "orgTeamsPost": { + "properties": { + "name": { + "type": "string" + }, + "permission": { + "enum": ["pull", "push", "admin"] + }, + "repo_names": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": ["name"], + "type": "object" + }, + "organization": { + "allOf": [ + { + "$ref": "#/definitions/actor" + }, + { + "description": "A GitHub organization" + } + ], + "type": "object" + }, + "organizationAsTeamMember": { + "properties": { + "errors": { + "items": { + "properties": { + "code": { + "type": "string" + }, + "field": { + "type": "string" + }, + "resource": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "participationStats": { + "properties": { + "all": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "owner": { + "items": { + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "patchGist": { + "properties": { + "description": { + "type": "string" + }, + "files": { + "properties": { + "delete_this_file.txt": { + "type": "string" + }, + "file1.txt": { + "properties": { + "content": { + "type": "string" + } + }, + "type": "object" + }, + "new_file.txt": { + "properties": { + "content": { + "type": "string" + } + }, + "type": "object" + }, + "old_name.txt": { + "properties": { + "content": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "type": "object" + }, + "patchOrg": { + "properties": { + "billing_email": { + "description": "Billing email address. This address is not publicized.", + "type": "string" + }, + "company": { + "type": "string" + }, + "email": { + "description": "Publicly visible email address.", + "type": "string" + }, + "location": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "postGist": { + "properties": { + "description": { + "type": "string" + }, + "files": { + "properties": { + "file1.txt": { + "properties": { + "content": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "public": { + "type": "boolean" + } + }, + "type": "object" + }, + "postRepo": { + "properties": { + "auto_init": { + "description": "True to create an initial commit with empty README. Default is false.", + "type": "boolean" + }, + "description": { + "type": "string" + }, + "gitignore_template": { + "description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\" Ignored if auto_init parameter is not provided. ", + "type": "string" + }, + "has_downloads": { + "description": "True to enable downloads for this repository, false to disable them. Default is true.", + "type": "boolean" + }, + "has_issues": { + "description": "True to enable issues for this repository, false to disable them. Default is true.", + "type": "boolean" + }, + "has_wiki": { + "description": "True to enable the wiki for this repository, false to disable it. Default is true.", + "type": "boolean" + }, + "homepage": { + "type": "string" + }, + "name": { + "type": "string" + }, + "private": { + "description": "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account.", + "type": "boolean" + }, + "team_id": { + "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization.", + "type": "integer" + } + }, + "required": ["name"], + "type": "object" + }, + "pullRequest": { + "properties": { + "_links": { + "properties": { + "comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "review_comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "additions": { + "type": "integer" + }, + "base": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "changed_files": { + "type": "integer" + }, + "closed_at": { + "type": "string" + }, + "comments": { + "type": "integer" + }, + "commits": { + "type": "integer" + }, + "created_at": { + "type": "string" + }, + "deletions": { + "type": "integer" + }, + "diff_url": { + "type": "string" + }, + "head": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "html_url": { + "type": "string" + }, + "issue_url": { + "type": "string" + }, + "merge_commit_sha": { + "type": "string" + }, + "mergeable": { + "type": "boolean" + }, + "merged": { + "type": "boolean" + }, + "merged_at": { + "type": "string" + }, + "merged_by": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "number": { + "type": "integer" + }, + "patch_url": { + "type": "string" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "pullUpdate": { + "properties": { + "body": { + "type": "string" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "pulls": { + "items": { + "properties": { + "_links": { + "properties": { + "comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "review_comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "base": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "closed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "diff_url": { + "type": "string" + }, + "head": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "html_url": { + "type": "string" + }, + "issue_url": { + "type": "string" + }, + "merged_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "patch_url": { + "type": "string" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "pullsComment": { + "properties": { + "_links": { + "properties": { + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "pull_request": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "id": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "pullsCommentPost": { + "properties": { + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "path": { + "type": "string" + }, + "position": { + "type": "number" + } + }, + "type": "object" + }, + "pullsComments": { + "items": { + "properties": { + "_links": { + "properties": { + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "pull_request": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "id": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "pullsPost": { + "properties": { + "base": { + "type": "string" + }, + "body": { + "type": "string" + }, + "head": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "putSubscription": { + "properties": { + "created_at": { + "type": "string" + }, + "ignored": { + "type": "boolean" + }, + "reason": { + "type": "object" + }, + "subscribed": { + "type": "boolean" + }, + "thread_url": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "rate_limit": { + "properties": { + "rate": { + "properties": { + "limit": { + "type": "integer" + }, + "remaining": { + "type": "integer" + }, + "reset": { + "type": "integer" + } + } + } + }, + "type": "object" + }, + "ref": { + "items": { + "properties": { + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "refStatus": { + "items": { + "properties": { + "commit_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "repository_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "state": { + "type": "string" + }, + "statuses": { + "items": { + "properties": { + "context": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "number" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + }, + "refs": { + "items": { + "properties": { + "object": { + "properties": { + "sha": { + "type": "string" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "ref": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "refsBody": { + "properties": { + "ref": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "release": { + "properties": { + "assets": { + "items": { + "properties": { + "content_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "download_count": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "uploader": { + "$ref": "#/definitions/user" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "assets_url": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "draft": { + "type": "boolean" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "prerelease": { + "type": "boolean" + }, + "published_at": { + "type": "string" + }, + "tag_name": { + "type": "string" + }, + "tarball_url": { + "type": "string" + }, + "target_commitish": { + "type": "string" + }, + "upload_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "zipball_url": { + "type": "string" + } + }, + "type": "object" + }, + "release-create": { + "properties": { + "body": { + "type": "string" + }, + "draft": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "prerelease": { + "type": "boolean" + }, + "tag_name": { + "type": "string" + }, + "target_commitish": { + "type": "string" + } + }, + "type": "object" + }, + "releases": { + "items": { + "properties": { + "assets": { + "items": { + "properties": { + "content_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "download_count": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "uploader": { + "$ref": "#/definitions/user" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "assets_url": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "draft": { + "type": "boolean" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "prerelease": { + "type": "boolean" + }, + "published_at": { + "type": "string" + }, + "tag_name": { + "type": "string" + }, + "tarball_url": { + "type": "string" + }, + "target_commitish": { + "type": "string" + }, + "upload_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "zipball_url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repo": { + "properties": { + "clone_url": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "description": { + "type": "string" + }, + "fork": { + "type": "boolean" + }, + "forks": { + "type": "integer" + }, + "forks_count": { + "type": "integer" + }, + "full_name": { + "type": "string" + }, + "git_url": { + "type": "string" + }, + "has_downloads": { + "type": "boolean" + }, + "has_issues": { + "type": "boolean" + }, + "has_wiki": { + "type": "boolean" + }, + "homepage": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "language": { + "type": "string" + }, + "master_branch": { + "type": "string" + }, + "mirror_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "open_issues": { + "type": "integer" + }, + "open_issues_count": { + "type": "integer" + }, + "organization": { + "$ref": "#/definitions/organization" + }, + "owner": { + "$ref": "#/definitions/actor" + }, + "parent": { + "allOf": [ + { + "$ref": "#/definitions/repo" + }, + { + "description": "Is present when the repo is a fork. Parent is the repo this repo was forked from." + } + ] + }, + "private": { + "type": "boolean" + }, + "pushed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "size": { + "type": "integer" + }, + "source": { + "allOf": [ + { + "$ref": "#/definitions/repo" + }, + { + "description": "Is present when the repo is a fork. Source is the ultimate source for the network." + } + ] + }, + "ssh_url": { + "type": "string" + }, + "svn_url": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "watchers": { + "type": "integer" + }, + "watchers_count": { + "type": "integer" + } + }, + "type": "object" + }, + "repo-deployments": { + "items": { + "properties": { + "created_at": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "payload": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "statuses_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repoComments": { + "items": { + "properties": { + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "line": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "repoCommit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "repoCommitBody": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "tree": { + "type": "string" + } + }, + "required": ["message", "parents", "tree"], + "type": "object" + }, + "repoEdit": { + "properties": { + "description": { + "type": "string" + }, + "has_downloads": { + "type": "boolean" + }, + "has_issues": { + "type": "boolean" + }, + "has_wiki": { + "type": "boolean" + }, + "homepage": { + "type": "string" + }, + "name": { + "type": "string" + }, + "private": { + "type": "boolean" + } + }, + "type": "object" + }, + "repos": { + "items": { + "$ref": "#/definitions/repo" + }, + "type": "array" + }, + "search-code": { + "properties": { + "items": { + "items": { + "properties": { + "git_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "repository": { + "properties": { + "archive_url": { + "type": "string" + }, + "assignees_url": { + "type": "string" + }, + "blobs_url": { + "type": "string" + }, + "branches_url": { + "type": "string" + }, + "collaborators_url": { + "type": "string" + }, + "comments_url": { + "type": "string" + }, + "commits_url": { + "type": "string" + }, + "compare_url": { + "type": "string" + }, + "contents_url": { + "type": "string" + }, + "contributors_url": { + "type": "string" + }, + "description": { + "type": "string" + }, + "downloads_url": { + "type": "string" + }, + "events_url": { + "type": "string" + }, + "fork": { + "type": "boolean" + }, + "forks_url": { + "type": "string" + }, + "full_name": { + "type": "string" + }, + "git_commits_url": { + "type": "string" + }, + "git_refs_url": { + "type": "string" + }, + "git_tags_url": { + "type": "string" + }, + "hooks_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "issue_comment_url": { + "type": "string" + }, + "issue_events_url": { + "type": "string" + }, + "issues_url": { + "type": "string" + }, + "keys_url": { + "type": "string" + }, + "labels_url": { + "type": "string" + }, + "languages_url": { + "type": "string" + }, + "merges_url": { + "type": "string" + }, + "milestones_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "notifications_url": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/actor" + }, + "private": { + "type": "boolean" + }, + "pulls_url": { + "type": "string" + }, + "stargazers_url": { + "type": "string" + }, + "statuses_url": { + "type": "string" + }, + "subscribers_url": { + "type": "string" + }, + "subscription_url": { + "type": "string" + }, + "tags_url": { + "type": "string" + }, + "teams_url": { + "type": "string" + }, + "trees_url": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "score": { + "type": "number" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-issues": { + "properties": { + "items": { + "items": { + "properties": { + "assignee": { + "type": "null" + }, + "body": { + "type": "string" + }, + "closed_at": { + "type": "null" + }, + "comments": { + "type": "integer" + }, + "comments_url": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "events_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "labels": { + "items": { + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "labels_url": { + "type": "string" + }, + "milestone": { + "type": "null" + }, + "number": { + "type": "integer" + }, + "pull_request": { + "properties": { + "diff_url": { + "type": "null" + }, + "html_url": { + "type": "null" + }, + "patch_url": { + "type": "null" + } + }, + "type": "object" + }, + "score": { + "type": "number" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-issues-by-keyword": { + "properties": { + "issues": { + "items": { + "properties": { + "body": { + "type": "string" + }, + "comments": { + "type": "integer" + }, + "created_at": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "labels": { + "items": { + "type": "string" + }, + "type": "array" + }, + "number": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "user": { + "type": "string" + }, + "votes": { + "type": "integer" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "search-repositories": { + "properties": { + "items": { + "items": { + "$ref": "#/definitions/repo" + }, + "type": "array" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-repositories-by-keyword": { + "properties": { + "repositories": { + "items": { + "$ref": "#/definitions/repo" + }, + "type": "array" + } + }, + "type": "object" + }, + "search-user-by-email": { + "properties": { + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "search-users": { + "properties": { + "items": { + "$ref": "#/definitions/users" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-users-by-keyword": { + "properties": { + "users": { + "$ref": "#/definitions/users" + } + }, + "type": "object" + }, + "subscription": { + "properties": { + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "ignored": { + "type": "boolean" + }, + "reason": { + "type": "string" + }, + "repository_url": { + "type": "string" + }, + "subscribed": { + "type": "boolean" + }, + "thread_url": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "subscriptionBody": { + "properties": { + "ignored": { + "type": "boolean" + }, + "subscribed": { + "type": "boolean" + } + }, + "type": "object" + }, + "tag": { + "properties": { + "message": { + "description": "String of the tag message.", + "type": "string" + }, + "object": { + "properties": { + "sha": { + "type": "string" + }, + "type": { + "description": "String of the type of the tagged object. Normally this is a commit but it can also be a tree or a blob.", + "enum": ["commit", "tree", "blob"] + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "sha": { + "type": "string" + }, + "tag": { + "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").", + "type": "string" + }, + "tagger": { + "properties": { + "date": { + "description": "Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "description": "String of the email of the author of the tag.", + "type": "string" + }, + "name": { + "description": "String of the name of the author of the tag.", + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "tagBody": { + "properties": { + "message": { + "description": "String of the tag message.", + "type": "string" + }, + "object": { + "description": "String of the SHA of the git object this is tagging.", + "type": "string" + }, + "tag": { + "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").", + "type": "string" + }, + "tagger": { + "properties": { + "date": { + "description": "Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "description": "String of the email of the author of the tag.", + "type": "string" + }, + "name": { + "description": "String of the name of the author of the tag.", + "type": "string" + } + }, + "type": "object" + }, + "type": { + "description": "String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob.", + "enum": ["commit", "tree", "blob"] + } + }, + "required": ["tag", "message", "object", "type", "tagger"], + "type": "object" + }, + "tags": { + "items": { + "$ref": "#/definitions/tag" + }, + "type": "array" + }, + "team": { + "properties": { + "id": { + "type": "integer" + }, + "members_count": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "permission": { + "type": "string" + }, + "repos_count": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "teamMembership": { + "properties": { + "state": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "teamRepos": { + "$ref": "#/definitions/repos" + }, + "teams": { + "items": { + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "teams-list": { + "items": { + "properties": { + "id": { + "type": "integer" + }, + "members_count": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "organization": { + "properties": { + "avatar_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "permission": { + "type": "string" + }, + "repos_count": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "tree": { + "items": { + "properties": { + "mode": { + "description": "One of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit) or 120000 for a blob that specifies the path of a symlink.", + "enum": ["100644", "100755", "040000", "160000", "120000"], + "type": "string" + }, + "path": { + "type": "string" + }, + "sha": { + "description": "SHA1 checksum ID of the object in the tree.", + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "enum": ["blob", "tree", "commit"], + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "trees": { + "properties": { + "base_tree": { + "type": "string" + }, + "sha": { + "description": "SHA1 checksum ID of the object in the tree.", + "type": "string" + }, + "tree": { + "items": { + "$ref": "#/definitions/tree" + }, + "type": "array" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "user": { + "allOf": [ + { + "$ref": "#/definitions/actor" + }, + { + "description": "A GitHub user" + } + ], + "type": "object" + }, + "user-emails": { + "items": { + "type": "string" + }, + "type": "array" + }, + "user-keys-keyId": { + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "user-keys-post": { + "properties": { + "key": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "user-update": { + "properties": { + "bio": { + "type": "string" + }, + "blog": { + "type": "string" + }, + "company": { + "type": "string" + }, + "email": { + "type": "string" + }, + "hireable": { + "type": "boolean" + }, + "location": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "users": { + "items": { + "$ref": "#/definitions/user" + }, + "type": "array" + } + } +}