/**
 * 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 ? : { 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 ; } ; 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 ; created_at ? : string ; id ? : number ; url ? : string ; user ? : User ; } [ ] ; export interface 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 ; 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 = { 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 ; } ; committer ? : User ; parents ? : { sha ? : string ; url ? : string ; } [ ] ; sha ? : string ; url ? : string ; } [ ] ; export interface CompareCommits { ahead_by ? : number ; base_commit ? : { 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 ; } ; committer ? : User ; parents ? : { sha ? : string ; url ? : string ; } [ ] ; sha ? : string ; url ? : string ; } ; behind_by ? : number ; commits ? : { 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 ; } ; 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 ; } ; total ? : number ; weeks ? : { a ? : number ; c ? : number ; d ? : number ; 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 ; 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 < string , string > ; 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 ? : { created_at ? : string ; url ? : string ; user ? : User ; } [ ] ; git_pull_url ? : string ; git_push_url ? : string ; history ? : { change_status ? : { additions ? : number ; deletions ? : number ; total ? : number ; } ; committed_at ? : string ; url ? : string ; 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 ; 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 ; } ; 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 ; 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 ? : { assignee ? : User ; body ? : string ; closed_at ? : string ; comments ? : number ; created_at ? : string ; html_url ? : string ; labels ? : { color ? : string ; name ? : string ; url ? : string ; } [ ] ; milestone ? : { closed_issues ? : number ; created_at ? : string ; creator ? : User ; description ? : string ; 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 ; updated_at ? : string ; url ? : string ; user ? : User ; } ; url ? : string ; } export type IssueEvents = IssueEvent [ ] ; export type Issues = { assignee ? : User ; body ? : string ; closed_at ? : string ; comments ? : number ; created_at ? : string ; html_url ? : string ; labels ? : { color ? : string ; name ? : string ; url ? : string ; } [ ] ; milestone ? : { closed_issues ? : number ; created_at ? : string ; creator ? : User ; description ? : string ; 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 ; updated_at ? : string ; url ? : string ; 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 ; created_at ? : string ; id ? : number ; path ? : string ; position ? : number ; updated_at ? : string ; url ? : string ; user ? : User ; } [ ] ; export type Keys = { id ? : number ; key ? : string ; title ? : string ; url ? : string ; } [ ] ; export interface Label { color ? : string ; name ? : string ; url ? : string ; } export type Labels = { color ? : string ; name ? : string ; url ? : string ; } [ ] ; export type Languages = Record < string , number > ; 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 ; 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 ; closed_at ? : string ; 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 ; merged_at ? : string ; number ? : number ; patch_url ? : string ; state ? : "open" | "closed" ; title ? : string ; 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 ; created_at ? : string ; id ? : number ; path ? : string ; position ? : number ; 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 = { 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 ; 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 ; 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 ; uploader ? : User ; url ? : string ; } [ ] ; assets_url ? : string ; 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 RepoDeployments = { created_at ? : string ; creator ? : User ; description ? : string ; id ? : number ; payload ? : string ; sha ? : string ; statuses_url ? : string ; updated_at ? : string ; url ? : string ; } [ ] ; export type RepoComments = { body ? : string ; commit_id ? : string ; created_at ? : string ; html_url ? : string ; id ? : number ; line ? : number ; path ? : string ; position ? : number ; updated_at ? : string ; url ? : string ; user ? : User ; } [ ] ; export interface RepoCommit { author ? : { date ? : string ; email ? : string ; name ? : string ; } ; committer ? : { 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 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 ; 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 ; 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 ; 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 ? : { date ? : string ; email ? : string ; 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 : { date ? : string ; email ? : string ; 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 ? : { mode ? : "100644" | "100755" | "040000" | "160000" | "120000" ; path ? : string ; 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 [ ] ; import axios , { AxiosInstance , AxiosRequestConfig , AxiosResponse , ResponseType } from "axios" ; export type QueryParamsType = Record < string | number , any > ; export interface FullRequestParams extends Omit < AxiosRequestConfig , "data" | "params" | "url" | "responseType" > { /** 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 ? : ResponseType ; /** request body */ body ? : unknown ; } export type RequestParams = Omit < FullRequestParams , "body" | "method" | "query" | "path" > ; export interface ApiConfig < SecurityDataType = unknown > extends Omit < AxiosRequestConfig , "data" | "cancelToken" > { securityWorker ? : ( securityData : SecurityDataType | null ) => Promise < AxiosRequestConfig | void > | AxiosRequestConfig | void ; secure ? : boolean ; format ? : ResponseType ; } export enum ContentType { Json = "application/json" , FormData = "multipart/form-data" , UrlEncoded = "application/x-www-form-urlencoded" } export class HttpClient < SecurityDataType = unknown > { public instance : AxiosInstance ; private securityData : SecurityDataType | null = null ; private securityWorker ? : ApiConfig < SecurityDataType > [ "securityWorker" ] ; private secure ? : boolean ; private format ? : ResponseType ; constructor ( { securityWorker , secure , format , ... axiosConfig } = { } ) { this . instance = axios . create ( { ... axiosConfig , baseURL : axiosConfig . baseURL || "https://api.github.com" } ) ; this . secure = secure ; this . format = format ; this . securityWorker = securityWorker ; } public setSecurityData = ( data ) => { this . securityData = data ; } ; private mergeRequestParams ( params1 , params2 ? ) { return { ... this . instance . defaults , ... params1 , ... ( params2 || { } ) , headers : { ... ( this . instance . defaults . headers || { } ) , ... ( params1 . headers || { } ) , ... ( ( params2 && params2 . headers ) || { } ) , } , } ; } private createFormData ( input ) { return 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 ( ) ) ; } public request = async < T = any , _E = any > ( { secure , path , type , query , format , body , ... params } ) : Promise < AxiosResponse < T > > => { const secureParams = ( ( typeof secure === "boolean" ? secure : this . secure ) && this . securityWorker && ( await this . securityWorker ( this . securityData ) ) ) || { } ; const requestParams = this . mergeRequestParams ( params , secureParams ) ; const responseFormat = ( format && this . format ) || void 0 ; if ( type === ContentType . FormData && body && body !== null && typeof body === "object" ) { requestParams . headers . common = { Accept : "*/*" } ; requestParams . headers . post = { } ; requestParams . headers . put = { } ; body = this . createFormData ( body as Record < string , unknown > ) ; } return this . instance . request ( { ... requestParams , headers : { ... ( type && type !== ContentType . FormData ? { "Content-Type" : type } : { } ) , ... ( requestParams . headers || { } ) , } , params : query , responseType : responseFormat , data : body , url : path , } ) ; } ; } title version termsOfService baseUrl externalDocs export class Api < SecurityDataType extends unknown > extends HttpClient < SecurityDataType > { someTest = { description name request someTestList : ( params = { } ) => this . request < { user : { foo : number ; extra : { id : number ; extra : { foo : string ; bar : number ; baz : string ; bad : number ; extra : { foo : string ; bar : number ; baz : string ; bad : number ; extra : { foo : string ; bar : number ; baz : string ; bad : number ; extra : { foo : string ; bar : number ; baz : string ; bad : number ; } ; } ; } ; } ; } ; } ; } , any > ( { path : `/some-test` , method : "GET" , format : "json" , ... params , } ) , } ; pathParams = { description name request pathParamsList : ( petId , params = { } ) => this . request < Emojis , void > ( { path : `/path-params` , method : "GET" , format : "json" , ... params , } ) , } ; events = { description name request eventsList : ( params = { } ) => this . request < Events , void > ( { path : `/events` , method : "GET" , format : "json" , ... params , } ) , } ; feeds = { description name request feedsList : ( params = { } ) => this . request < Feeds , void > ( { path : `/feeds` , method : "GET" , format : "json" , ... params , } ) , } ; gists = { description name request gistsList : ( query ? , params = { } ) => this . request < Gists , void > ( { path : `/gists` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request gistsCreate : ( body , params = { } ) => this . request < Gist , void > ( { path : `/gists` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request publicList : ( query ? , params = { } ) => this . request < Gists , void > ( { path : `/gists/public` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request starredList : ( query ? , params = { } ) => this . request < Gists , void > ( { path : `/gists/starred` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request gistsDelete : ( id , params = { } ) => this . request < void , void > ( { path : `/gists/${ id }` , method : "DELETE" , ... params , } ) , description name request gistsDetail : ( id , params = { } ) => this . request < Gist , void > ( { path : `/gists/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request gistsPartialUpdate : ( id , body , params = { } ) => this . request < Gist , void > ( { path : `/gists/${ id }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request commentsDetail : ( id , params = { } ) => this . request < Comments , void > ( { path : `/gists/${ id }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request commentsCreate : ( id , body , params = { } ) => this . request < Comment , void > ( { path : `/gists/${ id }/comments` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request commentsDelete : ( id , commentId , params = { } ) => this . request < void , void > ( { path : `/gists/${ id }/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate commentsDetail2 : ( id , commentId , params = { } ) => this . request < Comment , void > ( { path : `/gists/${ id }/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request commentsPartialUpdate : ( id , commentId , body , params = { } ) => this . request < Comment , void > ( { path : `/gists/${ id }/comments/${ commentId }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request forksCreate : ( id , params = { } ) => this . request < void , void > ( { path : `/gists/${ id }/forks` , method : "POST" , ... params , } ) , description name request starDelete : ( id , params = { } ) => this . request < void , void > ( { path : `/gists/${ id }/star` , method : "DELETE" , ... params , } ) , description name request starDetail : ( id , params = { } ) => this . request < void , void > ( { path : `/gists/${ id }/star` , method : "GET" , ... params , } ) , description name request starUpdate : ( id , params = { } ) => this . request < void , void > ( { path : `/gists/${ id }/star` , method : "PUT" , ... params , } ) , } ; gitignore = { description name request templatesList : ( params = { } ) => this . request < Gitignore , void > ( { path : `/gitignore/templates` , method : "GET" , format : "json" , ... params , } ) , description name request templatesDetail : ( language , params = { } ) => this . request < GitignoreLang , void > ( { path : `/gitignore/templates/${ language }` , method : "GET" , format : "json" , ... params , } ) , } ; issues = { description name request issuesList : ( query , params = { } ) => this . request < Issues , void > ( { path : `/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; legacy = { description name request deprecated issuesSearchDetail : ( keyword , state , owner , repository , params = { } ) => this . request < SearchIssuesByKeyword , void > ( { path : `/legacy/issues/search/${ owner }/${ repository }/${ state }/${ keyword }` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated reposSearchDetail : ( keyword , query ? , params = { } ) => this . request < SearchRepositoriesByKeyword , void > ( { path : `/legacy/repos/search/${ keyword }` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request deprecated userEmailDetail : ( email , params = { } ) => this . request < SearchUserByEmail , void > ( { path : `/legacy/user/email/${ email }` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated userSearchDetail : ( keyword , query ? , params = { } ) => this . request < SearchUsersByKeyword , void > ( { path : `/legacy/user/search/${ keyword }` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; markdown = { description name request markdownCreate : ( body , params = { } ) => this . request < void , void > ( { path : `/markdown` , method : "POST" , body : body , type : ContentType . Json , ... params , } ) , description name request postMarkdown : ( params = { } ) => this . request < void , void > ( { path : `/markdown/raw` , method : "POST" , ... params , } ) , } ; meta = { description name request metaList : ( params = { } ) => this . request < Meta , void > ( { path : `/meta` , method : "GET" , format : "json" , ... params , } ) , } ; networks = { description name request eventsDetail : ( owner , repo , params = { } ) => this . request < Events , void > ( { path : `/networks/${ owner }/${ repo }/events` , method : "GET" , format : "json" , ... params , } ) , } ; notifications = { description name request notificationsList : ( query ? , params = { } ) => this . request < Notifications , void > ( { path : `/notifications` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request notificationsUpdate : ( body , params = { } ) => this . request < void , void > ( { path : `/notifications` , method : "PUT" , body : body , ... params , } ) , description name request threadsDetail : ( id , params = { } ) => this . request < Notifications , void > ( { path : `/notifications/threads/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request threadsPartialUpdate : ( id , params = { } ) => this . request < void , void > ( { path : `/notifications/threads/${ id }` , method : "PATCH" , ... params , } ) , description name request threadsSubscriptionDelete : ( id , params = { } ) => this . request < void , void > ( { path : `/notifications/threads/${ id }/subscription` , method : "DELETE" , ... params , } ) , description name request threadsSubscriptionDetail : ( id , params = { } ) => this . request < Subscription , void > ( { path : `/notifications/threads/${ id }/subscription` , method : "GET" , format : "json" , ... params , } ) , description mentioned name request threadsSubscriptionUpdate : ( id , body , params = { } ) => this . request < Subscription , void > ( { path : `/notifications/threads/${ id }/subscription` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , } ; orgs = { description name request orgsDetail : ( org , params = { } ) => this . request < Organization , void > ( { path : `/orgs/${ org }` , method : "GET" , format : "json" , ... params , } ) , description name request orgsPartialUpdate : ( org , body , params = { } ) => this . request < Organization , void > ( { path : `/orgs/${ org }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request eventsDetail : ( org , params = { } ) => this . request < Events , void > ( { path : `/orgs/${ org }/events` , method : "GET" , format : "json" , ... params , } ) , description name request issuesDetail : ( org , query , params = { } ) => this . request < Issues , void > ( { path : `/orgs/${ org }/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request membersDetail : ( org , params = { } ) => this . request < Users , void > ( { path : `/orgs/${ org }/members` , method : "GET" , format : "json" , ... params , } ) , description name request membersDelete : ( org , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/members/${ username }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate membersDetail2 : ( org , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/members/${ username }` , method : "GET" , ... params , } ) , description name request publicMembersDetail : ( org , params = { } ) => this . request < Users , void > ( { path : `/orgs/${ org }/public_members` , method : "GET" , format : "json" , ... params , } ) , description name request publicMembersDelete : ( org , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/public_members/${ username }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate publicMembersDetail2 : ( org , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/public_members/${ username }` , method : "GET" , ... params , } ) , description name request publicMembersUpdate : ( org , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/public_members/${ username }` , method : "PUT" , ... params , } ) , description name request reposDetail : ( org , query ? , params = { } ) => this . request < Repos , void > ( { path : `/orgs/${ org }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request reposCreate : ( org , body , params = { } ) => this . request < Repos , void > ( { path : `/orgs/${ org }/repos` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request teamsDetail : ( org , params = { } ) => this . request < Teams , void > ( { path : `/orgs/${ org }/teams` , method : "GET" , format : "json" , ... params , } ) , description name request teamsCreate : ( org , body , params = { } ) => this . request < Team , void > ( { path : `/orgs/${ org }/teams` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , } ; rateLimit = { description name request rateLimitList : ( params = { } ) => this . request < RateLimit , void > ( { path : `/rate_limit` , method : "GET" , format : "json" , ... params , } ) , } ; repos = { description name request reposDelete : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request reposDetail : ( owner , repo , params = { } ) => this . request < Repo , void > ( { path : `/repos/${ owner }/${ repo }` , method : "GET" , format : "json" , ... params , } ) , description name request reposPartialUpdate : ( owner , repo , body , params = { } ) => this . request < Repo , void > ( { path : `/repos/${ owner }/${ repo }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request assigneesDetail : ( owner , repo , params = { } ) => this . request < Assignees , void > ( { path : `/repos/${ owner }/${ repo }/assignees` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate assigneesDetail2 : ( owner , repo , assignee , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/assignees/${ assignee }` , method : "GET" , ... params , } ) , description name request branchesDetail : ( owner , repo , params = { } ) => this . request < Branches , void > ( { path : `/repos/${ owner }/${ repo }/branches` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate branchesDetail2 : ( owner , repo , branch , params = { } ) => this . request < Branch , void > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }` , method : "GET" , format : "json" , ... params , } ) , description name request collaboratorsDetail : ( owner , repo , params = { } ) => this . request < Users , void > ( { path : `/repos/${ owner }/${ repo }/collaborators` , method : "GET" , format : "json" , ... params , } ) , description name request collaboratorsDelete : ( owner , repo , user , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/collaborators/${ user }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate collaboratorsDetail2 : ( owner , repo , user , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/collaborators/${ user }` , method : "GET" , ... params , } ) , description name request collaboratorsUpdate : ( owner , repo , user , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/collaborators/${ user }` , method : "PUT" , ... params , } ) , description name request commentsDetail : ( owner , repo , params = { } ) => this . request < RepoComments , void > ( { path : `/repos/${ owner }/${ repo }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request commentsDelete : ( owner , repo , commentId , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate commentsDetail2 : ( owner , repo , commentId , params = { } ) => this . request < CommitComment , void > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request commentsPartialUpdate : ( owner , repo , commentId , body , params = { } ) => this . request < CommitComment , void > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request commitsDetail : ( owner , repo , query ? , params = { } ) => this . request < Commits , void > ( { path : `/repos/${ owner }/${ repo }/commits` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request commitsStatusDetail : ( owner , repo , ref , params = { } ) => this . request < RefStatus , void > ( { path : `/repos/${ owner }/${ repo }/commits/${ ref }/status` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate commitsDetail2 : ( owner , repo , shaCode , params = { } ) => this . request < Commit , void > ( { path : `/repos/${ owner }/${ repo }/commits/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request commitsCommentsDetail : ( owner , repo , shaCode , params = { } ) => this . request < RepoComments , void > ( { path : `/repos/${ owner }/${ repo }/commits/${ shaCode }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request commitsCommentsCreate : ( owner , repo , shaCode , body , params = { } ) => this . request < CommitComment , void > ( { path : `/repos/${ owner }/${ repo }/commits/${ shaCode }/comments` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request compareDetail : ( owner , repo , baseId , headId , params = { } ) => this . request < CompareCommits , void > ( { path : `/repos/${ owner }/${ repo }/compare/${ baseId }...${ headId }` , method : "GET" , format : "json" , ... params , } ) , description name request contentsDelete : ( owner , repo , path , body , params = { } ) => this . request < DeleteFile , void > ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "DELETE" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request contentsDetail : ( owner , repo , path , query ? , params = { } ) => this . request < ContentsPath , void > ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request contentsUpdate : ( owner , repo , path , body , params = { } ) => this . request < CreateFile , void > ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request contributorsDetail : ( owner , repo , query , params = { } ) => this . request < Users , void > ( { path : `/repos/${ owner }/${ repo }/contributors` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request deploymentsDetail : ( owner , repo , params = { } ) => this . request < RepoDeployments , void > ( { path : `/repos/${ owner }/${ repo }/deployments` , method : "GET" , format : "json" , ... params , } ) , description name request deploymentsCreate : ( owner , repo , body , params = { } ) => this . request < DeploymentResp , void > ( { path : `/repos/${ owner }/${ repo }/deployments` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request deploymentsStatusesDetail : ( owner , repo , id , params = { } ) => this . request < DeploymentStatuses , void > ( { path : `/repos/${ owner }/${ repo }/deployments/${ id }/statuses` , method : "GET" , format : "json" , ... params , } ) , description name request deploymentsStatusesCreate : ( owner , repo , id , body , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/deployments/${ id }/statuses` , method : "POST" , body : body , type : ContentType . Json , ... params , } ) , description name request deprecated downloadsDetail : ( owner , repo , params = { } ) => this . request < Downloads , void > ( { path : `/repos/${ owner }/${ repo }/downloads` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated downloadsDelete : ( owner , repo , downloadId , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/downloads/${ downloadId }` , method : "DELETE" , ... params , } ) , description name request deprecated originalName duplicate downloadsDetail2 : ( owner , repo , downloadId , params = { } ) => this . request < Download , void > ( { path : `/repos/${ owner }/${ repo }/downloads/${ downloadId }` , method : "GET" , format : "json" , ... params , } ) , description name request eventsDetail : ( owner , repo , params = { } ) => this . request < Events , void > ( { path : `/repos/${ owner }/${ repo }/events` , method : "GET" , format : "json" , ... params , } ) , description name request forksDetail : ( owner , repo , query ? , params = { } ) => this . request < Forks , void > ( { path : `/repos/${ owner }/${ repo }/forks` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request forksCreate : ( owner , repo , body , params = { } ) => this . request < Repo , void > ( { path : `/repos/${ owner }/${ repo }/forks` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitBlobsCreate : ( owner , repo , body , params = { } ) => this . request < Blobs , void > ( { path : `/repos/${ owner }/${ repo }/git/blobs` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitBlobsDetail : ( owner , repo , shaCode , params = { } ) => this . request < Blob , void > ( { path : `/repos/${ owner }/${ repo }/git/blobs/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request gitCommitsCreate : ( owner , repo , body , params = { } ) => this . request < GitCommit , void > ( { path : `/repos/${ owner }/${ repo }/git/commits` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitCommitsDetail : ( owner , repo , shaCode , params = { } ) => this . request < RepoCommit , void > ( { path : `/repos/${ owner }/${ repo }/git/commits/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request gitRefsDetail : ( owner , repo , params = { } ) => this . request < Refs , void > ( { path : `/repos/${ owner }/${ repo }/git/refs` , method : "GET" , format : "json" , ... params , } ) , description name request gitRefsCreate : ( owner , repo , body , params = { } ) => this . request < HeadBranch , void > ( { path : `/repos/${ owner }/${ repo }/git/refs` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitRefsDelete : ( owner , repo , ref , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate gitRefsDetail2 : ( owner , repo , ref , params = { } ) => this . request < HeadBranch , void > ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "GET" , format : "json" , ... params , } ) , description name request gitRefsPartialUpdate : ( owner , repo , ref , body , params = { } ) => this . request < HeadBranch , void > ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitTagsCreate : ( owner , repo , body , params = { } ) => this . request < Tag , void > ( { path : `/repos/${ owner }/${ repo }/git/tags` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitTagsDetail : ( owner , repo , shaCode , params = { } ) => this . request < Tag , void > ( { path : `/repos/${ owner }/${ repo }/git/tags/${ shaCode }` , method : "GET" , format : "json" , ... params , } ) , description name request gitTreesCreate : ( owner , repo , body , params = { } ) => this . request < Trees , void > ( { path : `/repos/${ owner }/${ repo }/git/trees` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request gitTreesDetail : ( owner , repo , shaCode , query ? , params = { } ) => this . request < Tree , void > ( { path : `/repos/${ owner }/${ repo }/git/trees/${ shaCode }` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request hooksDetail : ( owner , repo , params = { } ) => this . request < Hook , void > ( { path : `/repos/${ owner }/${ repo }/hooks` , method : "GET" , format : "json" , ... params , } ) , description name request hooksCreate : ( owner , repo , body , params = { } ) => this . request < Hook , void > ( { path : `/repos/${ owner }/${ repo }/hooks` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request hooksDelete : ( owner , repo , hookId , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate hooksDetail2 : ( owner , repo , hookId , params = { } ) => this . request < Hook , void > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "GET" , format : "json" , ... params , } ) , description name request hooksPartialUpdate : ( owner , repo , hookId , body , params = { } ) => this . request < Hook , void > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request hooksTestsCreate : ( owner , repo , hookId , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }/tests` , method : "POST" , ... params , } ) , description name request issuesDetail : ( owner , repo , query , params = { } ) => this . request < Issues , void > ( { path : `/repos/${ owner }/${ repo }/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request issuesCreate : ( owner , repo , body , params = { } ) => this . request < Issue , void > ( { path : `/repos/${ owner }/${ repo }/issues` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request issuesCommentsDetail : ( owner , repo , query ? , params = { } ) => this . request < IssuesComments , void > ( { path : `/repos/${ owner }/${ repo }/issues/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request issuesCommentsDelete : ( owner , repo , commentId , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate issuesCommentsDetail2 : ( owner , repo , commentId , params = { } ) => this . request < IssuesComment , void > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request issuesCommentsPartialUpdate : ( owner , repo , commentId , body , params = { } ) => this . request < IssuesComment , void > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request issuesEventsDetail : ( owner , repo , params = { } ) => this . request < IssueEvents , void > ( { path : `/repos/${ owner }/${ repo }/issues/events` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate issuesEventsDetail2 : ( owner , repo , eventId , params = { } ) => this . request < IssueEvent , void > ( { path : `/repos/${ owner }/${ repo }/issues/events/${ eventId }` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate issuesDetail2 : ( owner , repo , number , params = { } ) => this . request < Issue , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }` , method : "GET" , format : "json" , ... params , } ) , description name request issuesPartialUpdate : ( owner , repo , number , body , params = { } ) => this . request < Issue , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate issuesCommentsDetail3 : ( owner , repo , number , params = { } ) => this . request < IssuesComments , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request issuesCommentsCreate : ( owner , repo , number , body , params = { } ) => this . request < IssuesComment , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/comments` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate issuesEventsDetail3 : ( owner , repo , number , params = { } ) => this . request < IssueEvents , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/events` , method : "GET" , format : "json" , ... params , } ) , description name request issuesLabelsDelete : ( owner , repo , number , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "DELETE" , ... params , } ) , description name request issuesLabelsDetail : ( owner , repo , number , params = { } ) => this . request < Labels , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "GET" , format : "json" , ... params , } ) , description name request issuesLabelsCreate : ( owner , repo , number , body , params = { } ) => this . request < Label , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request issuesLabelsUpdate : ( owner , repo , number , body , params = { } ) => this . request < Label , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels` , method : "PUT" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate issuesLabelsDelete2 : ( owner , repo , number , name , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/issues/${ number }/labels/${ name }` , method : "DELETE" , ... params , } ) , description name request keysDetail : ( owner , repo , params = { } ) => this . request < Keys , void > ( { path : `/repos/${ owner }/${ repo }/keys` , method : "GET" , format : "json" , ... params , } ) , description name request keysCreate : ( owner , repo , body , params = { } ) => this . request < UserKeysKeyId , void > ( { path : `/repos/${ owner }/${ repo }/keys` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request keysDelete : ( owner , repo , keyId , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/keys/${ keyId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate keysDetail2 : ( owner , repo , keyId , params = { } ) => this . request < UserKeysKeyId , void > ( { path : `/repos/${ owner }/${ repo }/keys/${ keyId }` , method : "GET" , format : "json" , ... params , } ) , description name request labelsDetail : ( owner , repo , params = { } ) => this . request < Labels , void > ( { path : `/repos/${ owner }/${ repo }/labels` , method : "GET" , format : "json" , ... params , } ) , description name request labelsCreate : ( owner , repo , body , params = { } ) => this . request < Label , void > ( { path : `/repos/${ owner }/${ repo }/labels` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request labelsDelete : ( owner , repo , name , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate labelsDetail2 : ( owner , repo , name , params = { } ) => this . request < Label , void > ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "GET" , format : "json" , ... params , } ) , description name request labelsPartialUpdate : ( owner , repo , name , body , params = { } ) => this . request < Label , void > ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request languagesDetail : ( owner , repo , params = { } ) => this . request < Languages , void > ( { path : `/repos/${ owner }/${ repo }/languages` , method : "GET" , format : "json" , ... params , } ) , description name request mergesCreate : ( owner , repo , body , params = { } ) => this . request < MergesSuccessful , void | MergesConflict > ( { path : `/repos/${ owner }/${ repo }/merges` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request milestonesDetail : ( owner , repo , query ? , params = { } ) => this . request < Milestone , void > ( { path : `/repos/${ owner }/${ repo }/milestones` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request milestonesCreate : ( owner , repo , body , params = { } ) => this . request < Milestone , void > ( { path : `/repos/${ owner }/${ repo }/milestones` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request milestonesDelete : ( owner , repo , number , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate milestonesDetail2 : ( owner , repo , number , params = { } ) => this . request < Milestone , void > ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }` , method : "GET" , format : "json" , ... params , } ) , description name request milestonesPartialUpdate : ( owner , repo , number , body , params = { } ) => this . request < Milestone , void > ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request milestonesLabelsDetail : ( owner , repo , number , params = { } ) => this . request < Labels , void > ( { path : `/repos/${ owner }/${ repo }/milestones/${ number }/labels` , method : "GET" , format : "json" , ... params , } ) , description name request notificationsDetail : ( owner , repo , query ? , params = { } ) => this . request < Notifications , void > ( { path : `/repos/${ owner }/${ repo }/notifications` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request notificationsUpdate : ( owner , repo , body , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/notifications` , method : "PUT" , body : body , ... params , } ) , description name request pullsDetail : ( owner , repo , query ? , params = { } ) => this . request < Pulls , void > ( { path : `/repos/${ owner }/${ repo }/pulls` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request pullsCreate : ( owner , repo , body , params = { } ) => this . request < Pulls , void > ( { path : `/repos/${ owner }/${ repo }/pulls` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request pullsCommentsDetail : ( owner , repo , query ? , params = { } ) => this . request < IssuesComments , void > ( { path : `/repos/${ owner }/${ repo }/pulls/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request pullsCommentsDelete : ( owner , repo , commentId , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate pullsCommentsDetail2 : ( owner , repo , commentId , params = { } ) => this . request < PullsComment , void > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description name request pullsCommentsPartialUpdate : ( owner , repo , commentId , body , params = { } ) => this . request < PullsComment , void > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate pullsDetail2 : ( owner , repo , number , params = { } ) => this . request < PullRequest , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }` , method : "GET" , format : "json" , ... params , } ) , description name request pullsPartialUpdate : ( owner , repo , number , body , params = { } ) => this . request < Repo , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request originalName duplicate pullsCommentsDetail3 : ( owner , repo , number , params = { } ) => this . request < PullsComment , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/comments` , method : "GET" , format : "json" , ... params , } ) , description name request pullsCommentsCreate : ( owner , repo , number , body , params = { } ) => this . request < PullsComment , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/comments` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request pullsCommitsDetail : ( owner , repo , number , params = { } ) => this . request < Commits , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/commits` , method : "GET" , format : "json" , ... params , } ) , description name request pullsFilesDetail : ( owner , repo , number , params = { } ) => this . request < Pulls , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/files` , method : "GET" , format : "json" , ... params , } ) , description name request pullsMergeDetail : ( owner , repo , number , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/merge` , method : "GET" , ... params , } ) , description name request pullsMergeUpdate : ( owner , repo , number , body , params = { } ) => this . request < Merge , void | Merge > ( { path : `/repos/${ owner }/${ repo }/pulls/${ number }/merge` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request readmeDetail : ( owner , repo , query ? , params = { } ) => this . request < ContentsPath , void > ( { path : `/repos/${ owner }/${ repo }/readme` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request releasesDetail : ( owner , repo , params = { } ) => this . request < Releases , void > ( { path : `/repos/${ owner }/${ repo }/releases` , method : "GET" , format : "json" , ... params , } ) , description name request releasesCreate : ( owner , repo , body , params = { } ) => this . request < Release , void > ( { path : `/repos/${ owner }/${ repo }/releases` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request releasesAssetsDelete : ( owner , repo , id , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ id }` , method : "DELETE" , ... params , } ) , description name request releasesAssetsDetail : ( owner , repo , id , params = { } ) => this . request < Asset , void > ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request releasesAssetsPartialUpdate : ( owner , repo , id , body , params = { } ) => this . request < Asset , void > ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ id }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request releasesDelete : ( owner , repo , id , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/releases/${ id }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate releasesDetail2 : ( owner , repo , id , params = { } ) => this . request < Release , void > ( { path : `/repos/${ owner }/${ repo }/releases/${ id }` , method : "GET" , format : "json" , ... params , } ) , description name request releasesPartialUpdate : ( owner , repo , id , body , params = { } ) => this . request < Release , void > ( { path : `/repos/${ owner }/${ repo }/releases/${ id }` , method : "PATCH" , body : body , format : "json" , ... params , } ) , description name request originalName duplicate releasesAssetsDetail2 : ( owner , repo , id , params = { } ) => this . request < Assets , void > ( { path : `/repos/${ owner }/${ repo }/releases/${ id }/assets` , method : "GET" , format : "json" , ... params , } ) , description name request stargazersDetail : ( owner , repo , params = { } ) => this . request < Users , void > ( { path : `/repos/${ owner }/${ repo }/stargazers` , method : "GET" , format : "json" , ... params , } ) , description name request statsCodeFrequencyDetail : ( owner , repo , params = { } ) => this . request < CodeFrequencyStats , void > ( { path : `/repos/${ owner }/${ repo }/stats/code_frequency` , method : "GET" , format : "json" , ... params , } ) , description name request statsCommitActivityDetail : ( owner , repo , params = { } ) => this . request < CommitActivityStats , void > ( { path : `/repos/${ owner }/${ repo }/stats/commit_activity` , method : "GET" , format : "json" , ... params , } ) , description name request statsContributorsDetail : ( owner , repo , params = { } ) => this . request < ContributorsStats , void > ( { path : `/repos/${ owner }/${ repo }/stats/contributors` , method : "GET" , format : "json" , ... params , } ) , description name request statsParticipationDetail : ( owner , repo , params = { } ) => this . request < ParticipationStats , void > ( { path : `/repos/${ owner }/${ repo }/stats/participation` , method : "GET" , format : "json" , ... params , } ) , description name request statsPunchCardDetail : ( owner , repo , params = { } ) => this . request < CodeFrequencyStats , void > ( { path : `/repos/${ owner }/${ repo }/stats/punch_card` , method : "GET" , format : "json" , ... params , } ) , description name request statusesDetail : ( owner , repo , ref , params = { } ) => this . request < Ref , void > ( { path : `/repos/${ owner }/${ repo }/statuses/${ ref }` , method : "GET" , format : "json" , ... params , } ) , description name request statusesCreate : ( owner , repo , ref , body , params = { } ) => this . request < Ref , void > ( { path : `/repos/${ owner }/${ repo }/statuses/${ ref }` , method : "POST" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request subscribersDetail : ( owner , repo , params = { } ) => this . request < Users , void > ( { path : `/repos/${ owner }/${ repo }/subscribers` , method : "GET" , format : "json" , ... params , } ) , description name request subscriptionDelete : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "DELETE" , ... params , } ) , description name request subscriptionDetail : ( owner , repo , params = { } ) => this . request < Subscription , void > ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "GET" , format : "json" , ... params , } ) , description name request subscriptionUpdate : ( owner , repo , body , params = { } ) => this . request < Subscription , void > ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "PUT" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request tagsDetail : ( owner , repo , params = { } ) => this . request < Tags , void > ( { path : `/repos/${ owner }/${ repo }/tags` , method : "GET" , format : "json" , ... params , } ) , description name request teamsDetail : ( owner , repo , params = { } ) => this . request < Teams , void > ( { path : `/repos/${ owner }/${ repo }/teams` , method : "GET" , format : "json" , ... params , } ) , description name request watchersDetail : ( owner , repo , params = { } ) => this . request < Users , void > ( { path : `/repos/${ owner }/${ repo }/watchers` , method : "GET" , format : "json" , ... params , } ) , description name request originalName duplicate reposDetail2 : ( owner , repo , archiveFormat , path , params = { } ) => this . request < any , void > ( { path : `/repos/${ owner }/${ repo }/${ archiveFormat }/${ path }` , method : "GET" , ... params , } ) , } ; repositories = { description name request repositoriesList : ( query ? , params = { } ) => this . request < Repos , void > ( { path : `/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; search = { description name request codeList : ( query , params = { } ) => this . request < SearchCode , void > ( { path : `/search/code` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request issuesList : ( query , params = { } ) => this . request < SearchIssues , void > ( { path : `/search/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request repositoriesList : ( query , params = { } ) => this . request < SearchRepositories , void > ( { path : `/search/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request usersList : ( query , params = { } ) => this . request < SearchUsers , void > ( { path : `/search/users` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; teams = { description name request teamsDelete : ( teamId , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }` , method : "DELETE" , ... params , } ) , description name request teamsDetail : ( teamId , params = { } ) => this . request < Team , void > ( { path : `/teams/${ teamId }` , method : "GET" , format : "json" , ... params , } ) , description name request teamsPartialUpdate : ( teamId , body , params = { } ) => this . request < Team , void > ( { path : `/teams/${ teamId }` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request membersDetail : ( teamId , params = { } ) => this . request < Users , void > ( { path : `/teams/${ teamId }/members` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated membersDelete : ( teamId , username , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }/members/${ username }` , method : "DELETE" , ... params , } ) , description name request deprecated originalName duplicate membersDetail2 : ( teamId , username , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }/members/${ username }` , method : "GET" , ... params , } ) , description name request deprecated membersUpdate : ( teamId , username , params = { } ) => this . request < void , void | OrganizationAsTeamMember > ( { path : `/teams/${ teamId }/members/${ username }` , method : "PUT" , ... params , } ) , description name request membershipsDelete : ( teamId , username , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "DELETE" , ... params , } ) , description name request membershipsDetail : ( teamId , username , params = { } ) => this . request < TeamMembership , void > ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "GET" , format : "json" , ... params , } ) , description name request membershipsUpdate : ( teamId , username , params = { } ) => this . request < TeamMembership , void | OrganizationAsTeamMember > ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "PUT" , format : "json" , ... params , } ) , description name request reposDetail : ( teamId , params = { } ) => this . request < TeamRepos , void > ( { path : `/teams/${ teamId }/repos` , method : "GET" , format : "json" , ... params , } ) , description name request reposDelete : ( teamId , owner , repo , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request originalName duplicate reposDetail2 : ( teamId , owner , repo , params = { } ) => this . request < any , void > ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "GET" , ... params , } ) , description name request reposUpdate : ( teamId , owner , repo , params = { } ) => this . request < any , void > ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "PUT" , ... params , } ) , } ; user = { description name request userList : ( params = { } ) => this . request < User , void > ( { path : `/user` , method : "GET" , format : "json" , ... params , } ) , description name request userPartialUpdate : ( body , params = { } ) => this . request < User , void > ( { path : `/user` , method : "PATCH" , body : body , type : ContentType . Json , format : "json" , ... params , } ) , description name request emailsDelete : ( body , params = { } ) => this . request < void , void > ( { path : `/user/emails` , method : "DELETE" , body : body , type : ContentType . Json , ... params , } ) , description name request emailsList : ( params = { } ) => this . request < UserEmails , void > ( { path : `/user/emails` , method : "GET" , ... params , } ) , description name request emailsCreate : ( body , params = { } ) => this . request < any , void > ( { path : `/user/emails` , method : "POST" , body : body , ... params , } ) , description name request followersList : ( params = { } ) => this . request < Users , void > ( { path : `/user/followers` , method : "GET" , format : "json" , ... params , } ) , description name request followingList : ( params = { } ) => this . request < Users , void > ( { path : `/user/following` , method : "GET" , format : "json" , ... params , } ) , description name request followingDelete : ( username , params = { } ) => this . request < void , void > ( { path : `/user/following/${ username }` , method : "DELETE" , ... params , } ) , description name request followingDetail : ( username , params = { } ) => this . request < void , void > ( { path : `/user/following/${ username }` , method : "GET" , ... params , } ) , description name request followingUpdate : ( username , params = { } ) => this . request < void , void > ( { path : `/user/following/${ username }` , method : "PUT" , ... params , } ) , description name request issuesList : ( query , params = { } ) => this . request < Issues , void > ( { path : `/user/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request keysList : ( params = { } ) => this . request < Gitignore , void > ( { path : `/user/keys` , method : "GET" , format : "json" , ... params , } ) , description name request keysCreate : ( body , params = { } ) => this . request < UserKeysKeyId , void > ( { path : `/user/keys` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request keysDelete : ( keyId , params = { } ) => this . request < void , void > ( { path : `/user/keys/${ keyId }` , method : "DELETE" , ... params , } ) , description name request keysDetail : ( keyId , params = { } ) => this . request < UserKeysKeyId , void > ( { path : `/user/keys/${ keyId }` , method : "GET" , format : "json" , ... params , } ) , description name request orgsList : ( params = { } ) => this . request < Gitignore , void > ( { path : `/user/orgs` , method : "GET" , format : "json" , ... params , } ) , description name request reposList : ( query ? , params = { } ) => this . request < Repos , void > ( { path : `/user/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request reposCreate : ( body , params = { } ) => this . request < Repos , void > ( { path : `/user/repos` , method : "POST" , body : body , format : "json" , ... params , } ) , description name request starredList : ( query ? , params = { } ) => this . request < Gitignore , void > ( { path : `/user/starred` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request starredDelete : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/user/starred/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request starredDetail : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/user/starred/${ owner }/${ repo }` , method : "GET" , ... params , } ) , description name request starredUpdate : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/user/starred/${ owner }/${ repo }` , method : "PUT" , ... params , } ) , description name request subscriptionsList : ( params = { } ) => this . request < Repos , void > ( { path : `/user/subscriptions` , method : "GET" , format : "json" , ... params , } ) , description name request deprecated subscriptionsDelete : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/user/subscriptions/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description name request deprecated subscriptionsDetail : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/user/subscriptions/${ owner }/${ repo }` , method : "GET" , ... params , } ) , description name request deprecated subscriptionsUpdate : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/user/subscriptions/${ owner }/${ repo }` , method : "PUT" , ... params , } ) , description name request teamsList : ( params = { } ) => this . request < TeamsList , void > ( { path : `/user/teams` , method : "GET" , format : "json" , ... params , } ) , } ; users = { description name request usersList : ( query ? , params = { } ) => this . request < Users , void > ( { path : `/users` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request usersDetail : ( username , params = { } ) => this . request < User , void > ( { path : `/users/${ username }` , method : "GET" , format : "json" , ... params , } ) , description name request eventsDetail : ( username , params = { } ) => this . request < any , void > ( { path : `/users/${ username }/events` , method : "GET" , ... params , } ) , description name request eventsOrgsDetail : ( username , org , params = { } ) => this . request < any , void > ( { path : `/users/${ username }/events/orgs/${ org }` , method : "GET" , ... params , } ) , description name request followersDetail : ( username , params = { } ) => this . request < Users , void > ( { path : `/users/${ username }/followers` , method : "GET" , format : "json" , ... params , } ) , description name request followingDetail : ( username , targetUser , params = { } ) => this . request < void , void > ( { path : `/users/${ username }/following/${ targetUser }` , method : "GET" , ... params , } ) , description name request gistsDetail : ( username , query ? , params = { } ) => this . request < Gists , void > ( { path : `/users/${ username }/gists` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request keysDetail : ( username , params = { } ) => this . request < Gitignore , void > ( { path : `/users/${ username }/keys` , method : "GET" , format : "json" , ... params , } ) , description name request orgsDetail : ( username , params = { } ) => this . request < Gitignore , void > ( { path : `/users/${ username }/orgs` , method : "GET" , format : "json" , ... params , } ) , description name request receivedEventsDetail : ( username , params = { } ) => this . request < any , void > ( { path : `/users/${ username }/received_events` , method : "GET" , ... params , } ) , description name request receivedEventsPublicDetail : ( username , params = { } ) => this . request < any , void > ( { path : `/users/${ username }/received_events/public` , method : "GET" , ... params , } ) , description name request reposDetail : ( username , query ? , params = { } ) => this . request < Repos , void > ( { path : `/users/${ username }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description name request starredDetail : ( username , params = { } ) => this . request < any , void > ( { path : `/users/${ username }/starred` , method : "GET" , ... params , } ) , description name request subscriptionsDetail : ( username , params = { } ) => this . request < any , void > ( { path : `/users/${ username }/subscriptions` , method : "GET" , ... params , } ) , } ; }