/**
 * Simple User
 */ export interface SimpleUser { example login : string ; example id : number ; example node_id : string ; format example avatar_url : string ; example gravatar_id : string | null ; format example url : string ; format example html_url : string ; format example followers_url : string ; example following_url : string ; example gists_url : string ; example starred_url : string ; format example subscriptions_url : string ; format example organizations_url : string ; format example repos_url : string ; example events_url : string ; format example received_events_url : string ; example type : string ; site_admin : boolean ; example starred_at ? : string ; } /**
 * GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
 */ export interface Integration { example id : number ; example slug ? : string ; example node_id : string ; owner : SimpleUser | null ; example name : string ; example description : string | null ; format example external_url : string ; format example html_url : string ; format example created_at : string ; format example updated_at : string ; example permissions : { issues ? : string ; checks ? : string ; metadata ? : string ; contents ? : string ; deployments ? : string ; } ; example events : string [ ] ; example installations_count ? : number ; example client_id ? : string ; example client_secret ? : string ; example webhook_secret ? : string ; example pem ? : string ; [ key ] : any ; } /**
 * Basic Error
 */ export interface BasicError { message ? : string ; documentation_url ? : string ; } /**
 * Validation Error Simple
 */ export interface ValidationErrorSimple { message : string ; documentation_url : string ; errors ? : string [ ] ; } format example export type WebhookConfigUrl = string ; example export type WebhookConfigContentType = string ; example export type WebhookConfigSecret = string ; example export type WebhookConfigInsecureSsl = string ; /**
 * Configuration object of the webhook
 */ export interface WebhookConfig { /** The URL to which the payloads will be delivered. */ url ? : WebhookConfigUrl ; /** The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. */ content_type ? : WebhookConfigContentType ; /** If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). */ secret ? : WebhookConfigSecret ; /** Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** */ insecure_ssl ? : WebhookConfigInsecureSsl ; } /**
 * An enterprise account
 */ export interface Enterprise { /** A short description of the enterprise. */ description ? : string | null ; format example html_url : string ; format website_url ? : string | null ; example id : number ; example node_id : string ; example name : string ; example slug : string ; format example created_at : string | null ; format example updated_at : string | null ; format avatar_url : string ; } /**
 * Installation
 */ export interface Installation { example id : number ; account : SimpleUser | Enterprise | ( SimpleUser & Enterprise ) | null ; /** Describe whether all repositories have been selected or there's a selection involved */ repository_selection : "all" | "selected" ; format example access_tokens_url : string ; format example repositories_url : string ; format example html_url : string ; example app_id : number ; /** The ID of the user or organization this token is being scoped to. */ target_id : number ; example target_type : string ; example permissions : { deployments ? : string ; checks ? : string ; metadata ? : string ; contents ? : string ; pull_requests ? : string ; statuses ? : string ; issues ? : string ; organization_administration ? : string ; } ; events : string [ ] ; format created_at : string ; format updated_at : string ; example single_file_name : string | null ; example has_multiple_single_files ? : boolean ; example single_file_paths ? : string [ ] ; example app_slug : string ; suspended_by ? : SimpleUser | null ; format suspended_at ? : string | null ; example contact_email ? : string | null ; } example export interface AppPermissions { /** The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. Can be one of: `read` or `write`. */ actions ? : "read" | "write" ; /** The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. Can be one of: `read` or `write`. */ administration ? : "read" | "write" ; /** The level of permission to grant the access token for checks on code. Can be one of: `read` or `write`. */ checks ? : "read" | "write" ; /** The level of permission to grant the access token for notification of content references and creation content attachments. Can be one of: `read` or `write`. */ content_references ? : "read" | "write" ; /** The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. Can be one of: `read` or `write`. */ contents ? : "read" | "write" ; /** The level of permission to grant the access token for deployments and deployment statuses. Can be one of: `read` or `write`. */ deployments ? : "read" | "write" ; /** The level of permission to grant the access token for managing repository environments. Can be one of: `read` or `write`. */ environments ? : "read" | "write" ; /** The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. Can be one of: `read` or `write`. */ issues ? : "read" | "write" ; /** The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. Can be one of: `read` or `write`. */ metadata ? : "read" | "write" ; /** The level of permission to grant the access token for packages published to GitHub Packages. Can be one of: `read` or `write`. */ packages ? : "read" | "write" ; /** The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. Can be one of: `read` or `write`. */ pages ? : "read" | "write" ; /** The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. Can be one of: `read` or `write`. */ pull_requests ? : "read" | "write" ; /** The level of permission to grant the access token to manage the post-receive hooks for a repository. Can be one of: `read` or `write`. */ repository_hooks ? : "read" | "write" ; /** The level of permission to grant the access token to manage repository projects, columns, and cards. Can be one of: `read`, `write`, or `admin`. */ repository_projects ? : "read" | "write" | "admin" ; /** The level of permission to grant the access token to view and manage secret scanning alerts. Can be one of: `read` or `write`. */ secret_scanning_alerts ? : "read" | "write" ; /** The level of permission to grant the access token to manage repository secrets. Can be one of: `read` or `write`. */ secrets ? : "read" | "write" ; /** The level of permission to grant the access token to view and manage security events like code scanning alerts. Can be one of: `read` or `write`. */ security_events ? : "read" | "write" ; /** The level of permission to grant the access token to manage just a single file. Can be one of: `read` or `write`. */ single_file ? : "read" | "write" ; /** The level of permission to grant the access token for commit statuses. Can be one of: `read` or `write`. */ statuses ? : "read" | "write" ; /** The level of permission to grant the access token to retrieve Dependabot alerts. Can be one of: `read`. */ vulnerability_alerts ? : "read" ; /** The level of permission to grant the access token to update GitHub Actions workflow files. Can be one of: `write`. */ workflows ? : "write" ; /** The level of permission to grant the access token for organization teams and members. Can be one of: `read` or `write`. */ members ? : "read" | "write" ; /** The level of permission to grant the access token to manage access to an organization. Can be one of: `read` or `write`. */ organization_administration ? : "read" | "write" ; /** The level of permission to grant the access token to manage the post-receive hooks for an organization. Can be one of: `read` or `write`. */ organization_hooks ? : "read" | "write" ; /** The level of permission to grant the access token for viewing an organization's plan. Can be one of: `read`. */ organization_plan ? : "read" ; /** The level of permission to grant the access token to manage organization projects, columns, and cards. Can be one of: `read`, `write`, or `admin`. */ organization_projects ? : "read" | "write" | "admin" ; /** The level of permission to grant the access token to manage organization secrets. Can be one of: `read` or `write`. */ organization_secrets ? : "read" | "write" ; /** The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. Can be one of: `read` or `write`. */ organization_self_hosted_runners ? : "read" | "write" ; /** The level of permission to grant the access token to view and manage users blocked by the organization. Can be one of: `read` or `write`. */ organization_user_blocking ? : "read" | "write" ; /** The level of permission to grant the access token to manage team discussions and related comments. Can be one of: `read` or `write`. */ team_discussions ? : "read" | "write" ; } /**
 * License Simple
 */ export interface LicenseSimple { example key : string ; example name : string ; format example url : string | null ; example spdx_id : string | null ; example node_id : string ; format html_url ? : string ; } /**
 * A git repository
 */ export interface Repository { example id : number ; example node_id : string ; example name : string ; example full_name : string ; license : LicenseSimple | null ; forks : number ; permissions ? : { admin : boolean ; pull : boolean ; triage ? : boolean ; push : boolean ; maintain ? : boolean ; } ; owner : SimpleUser | null ; /** Whether the repository is private or public. */ private : boolean ; format example html_url : string ; example description : string | null ; fork : boolean ; format example url : string ; example archive_url : string ; example assignees_url : string ; example blobs_url : string ; example branches_url : string ; example collaborators_url : string ; example comments_url : string ; example commits_url : string ; example compare_url : string ; example contents_url : string ; format example contributors_url : string ; format example deployments_url : string ; format example downloads_url : string ; format example events_url : string ; format example forks_url : string ; example git_commits_url : string ; example git_refs_url : string ; example git_tags_url : string ; example git_url : string ; example issue_comment_url : string ; example issue_events_url : string ; example issues_url : string ; example keys_url : string ; example labels_url : string ; format example languages_url : string ; format example merges_url : string ; example milestones_url : string ; example notifications_url : string ; example pulls_url : string ; example releases_url : string ; example ssh_url : string ; format example stargazers_url : string ; example statuses_url : string ; format example subscribers_url : string ; format example subscription_url : string ; format example tags_url : string ; format example teams_url : string ; example trees_url : string ; example clone_url : string ; format example mirror_url : string | null ; format example hooks_url : string ; format example svn_url : string ; format example homepage : string | null ; language : string | null ; example forks_count : number ; example stargazers_count : number ; example watchers_count : number ; example size : number ; example default_branch : string ; example open_issues_count : number ; example is_template ? : boolean ; topics ? : string [ ] ; example has_issues : boolean ; example has_projects : boolean ; example has_wiki : boolean ; has_pages : boolean ; example has_downloads : boolean ; /** Whether the repository is archived. */ archived : boolean ; /** Returns whether or not this repository disabled. */ disabled : boolean ; /** The repository visibility: public, private, or internal. */ visibility ? : string ; format example pushed_at : string | null ; format example created_at : string | null ; format example updated_at : string | null ; example allow_rebase_merge ? : boolean ; template_repository ? : { id ? : number ; node_id ? : string ; name ? : string ; full_name ? : string ; owner ? : { login ? : string ; id ? : number ; node_id ? : string ; avatar_url ? : string ; gravatar_id ? : string ; url ? : string ; html_url ? : string ; followers_url ? : string ; following_url ? : string ; gists_url ? : string ; starred_url ? : string ; subscriptions_url ? : string ; organizations_url ? : string ; repos_url ? : string ; events_url ? : string ; received_events_url ? : string ; type ? : string ; site_admin ? : boolean ; } ; private ? : boolean ; html_url ? : string ; description ? : string ; fork ? : boolean ; url ? : string ; archive_url ? : string ; assignees_url ? : string ; blobs_url ? : string ; branches_url ? : string ; collaborators_url ? : string ; comments_url ? : string ; commits_url ? : string ; compare_url ? : string ; contents_url ? : string ; contributors_url ? : string ; deployments_url ? : string ; downloads_url ? : string ; events_url ? : string ; forks_url ? : string ; git_commits_url ? : string ; git_refs_url ? : string ; git_tags_url ? : string ; git_url ? : string ; issue_comment_url ? : string ; issue_events_url ? : string ; issues_url ? : string ; keys_url ? : string ; labels_url ? : string ; languages_url ? : string ; merges_url ? : string ; milestones_url ? : string ; notifications_url ? : string ; pulls_url ? : string ; releases_url ? : string ; ssh_url ? : string ; stargazers_url ? : string ; statuses_url ? : string ; subscribers_url ? : string ; subscription_url ? : string ; tags_url ? : string ; teams_url ? : string ; trees_url ? : string ; clone_url ? : string ; mirror_url ? : string ; hooks_url ? : string ; svn_url ? : string ; homepage ? : string ; language ? : string ; forks_count ? : number ; stargazers_count ? : number ; watchers_count ? : number ; size ? : number ; default_branch ? : string ; open_issues_count ? : number ; is_template ? : boolean ; topics ? : string [ ] ; has_issues ? : boolean ; has_projects ? : boolean ; has_wiki ? : boolean ; has_pages ? : boolean ; has_downloads ? : boolean ; archived ? : boolean ; disabled ? : boolean ; visibility ? : string ; pushed_at ? : string ; created_at ? : string ; updated_at ? : string ; permissions ? : { admin ? : boolean ; push ? : boolean ; pull ? : boolean ; } ; allow_rebase_merge ? : boolean ; temp_clone_token ? : string ; allow_squash_merge ? : boolean ; delete_branch_on_merge ? : boolean ; allow_merge_commit ? : boolean ; subscribers_count ? : number ; network_count ? : number ; } ; temp_clone_token ? : string ; example allow_squash_merge ? : boolean ; example delete_branch_on_merge ? : boolean ; example allow_merge_commit ? : boolean ; subscribers_count ? : number ; network_count ? : number ; open_issues : number ; watchers : number ; master_branch ? : string ; example starred_at ? : string ; } /**
 * Authentication token for a GitHub App installed on a user or org.
 */ export interface InstallationToken { token : string ; expires_at : string ; permissions ? : { issues ? : string ; contents ? : string ; metadata ? : string ; single_file ? : string ; } ; repository_selection ? : "all" | "selected" ; repositories ? : Repository [ ] ; example single_file ? : string ; example has_multiple_single_files ? : boolean ; example single_file_paths ? : string [ ] ; } /**
 * Validation Error
 */ export interface ValidationError { message : string ; documentation_url : string ; errors ? : { resource ? : string ; field ? : string ; message ? : string ; code : string ; index ? : number ; value ? : string | null | number | null | string [ ] | null ; } [ ] ; } /**
 * The authorization associated with an OAuth Access.
 */ export interface ApplicationGrant { example id : number ; format example url : string ; app : { client_id : string ; name : string ; url : string ; } ; format example created_at : string ; format example updated_at : string ; example scopes : string [ ] ; user ? : SimpleUser | null ; } export interface ScopedInstallation { /** The permissions granted to the user-to-server access token. */ permissions : AppPermissions ; /** Describe whether all repositories have been selected or there's a selection involved */ repository_selection : "all" | "selected" ; example single_file_name : string | null ; example has_multiple_single_files ? : boolean ; example single_file_paths ? : string [ ] ; format example repositories_url : string ; /** Simple User */ account : SimpleUser ; } /**
 * The authorization for an OAuth app, GitHub App, or a Personal Access Token.
 */ export interface Authorization { id : number ; format url : string ; /** A list of scopes that this authorization is in. */ scopes : string [ ] | null ; token : string ; token_last_eight : string | null ; hashed_token : string | null ; app : { client_id : string ; name : string ; url : string ; } ; note : string | null ; format note_url : string | null ; format updated_at : string ; format created_at : string ; fingerprint : string | null ; user ? : SimpleUser | null ; installation ? : ScopedInstallation | null ; } /**
 * Code Of Conduct
 */ export interface CodeOfConduct { example key : string ; example name : string ; format example url : string ; example body ? : string ; format html_url : string | null ; } /**
 * Content Reference attachments allow you to provide context around URLs posted in comments
 */ export interface ContentReferenceAttachment { example id : number ; example title : string ; example body : string ; example node_id ? : string ; } /**
 * The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
 */ export enum EnabledOrganizations { All = "all" , None = "none" , Selected = "selected" } /**
 * The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.
 */ export enum AllowedActions { All = "all" , LocalOnly = "local_only" , Selected = "selected" } /**
 * The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`.
 */ export type SelectedActionsUrl = string ; export interface ActionsEnterprisePermissions { /** The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. */ enabled_organizations : EnabledOrganizations ; /** The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`. */ selected_organizations_url ? : string ; /** The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. */ allowed_actions : AllowedActions ; /** The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`. */ selected_actions_url ? : SelectedActionsUrl ; } /**
 * Organization Simple
 */ export interface OrganizationSimple { example login : string ; example id : number ; example node_id : string ; format example url : string ; format example repos_url : string ; format example events_url : string ; example hooks_url : string ; example issues_url : string ; example members_url : string ; example public_members_url : string ; example avatar_url : string ; example description : string | null ; } export interface SelectedActions { /** Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. */ github_owned_allowed : boolean ; /** Whether actions in GitHub Marketplace from verified creators are allowed. Set to `true` to allow all GitHub Marketplace actions by verified creators. */ verified_allowed : boolean ; /** Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`." */ patterns_allowed : string [ ] ; } export interface RunnerGroupsEnterprise { id : number ; name : string ; visibility : string ; default : boolean ; selected_organizations_url ? : string ; runners_url : string ; allows_public_repositories : boolean ; } /**
 * A self hosted runner
 */ export interface Runner { example id : number ; example name : string ; example os : string ; example status : string ; busy : boolean ; labels : { id ? : number ; name ? : string ; type ? : "read-only" | "custom" ; } [ ] ; } /**
 * Runner Application
 */ export interface RunnerApplication { os : string ; architecture : string ; download_url : string ; filename : string ; } /**
 * Authentication Token
 */ export interface AuthenticationToken { example token : string ; format example expires_at : string ; example permissions ? : object ; /** The repositories this token has access to */ repositories ? : Repository [ ] ; example single_file ? : string | null ; /** Describe whether all repositories have been selected or there's a selection involved */ repository_selection ? : "all" | "selected" ; } export interface AuditLogEvent { /** The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time). */ "@timestamp" ? : number ; /** The name of the action that was performed, for example `user.login` or `repo.create`. */ action ? : string ; active ? : boolean ; active_was ? : boolean ; /** The actor who performed the action. */ actor ? : string ; /** The username of the account being blocked. */ blocked_user ? : string ; business ? : string ; config ? : any [ ] ; config_was ? : any [ ] ; content_type ? : string ; /** The time the audit log event was recorded, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time). */ created_at ? : number ; deploy_key_fingerprint ? : string ; emoji ? : string ; events ? : any [ ] ; events_were ? : any [ ] ; explanation ? : string ; fingerprint ? : string ; hook_id ? : number ; limited_availability ? : boolean ; message ? : string ; name ? : string ; old_user ? : string ; openssh_public_key ? : string ; org ? : string ; previous_visibility ? : string ; read_only ? : boolean ; /** The name of the repository. */ repo ? : string ; /** The name of the repository. */ repository ? : string ; repository_public ? : boolean ; target_login ? : string ; team ? : string ; /** The type of protocol (for example, HTTP or SSH) used to transfer Git data. */ transport_protocol ? : number ; /** A human readable name for the protocol (for example, HTTP or SSH) used to transfer Git data. */ transport_protocol_name ? : string ; /** The user that was affected by the action performed (if available). */ user ? : string ; /** The repository visibility, for example `public` or `private`. */ visibility ? : string ; } export interface ActionsBillingUsage { /** The sum of the free and paid GitHub Actions minutes used. */ total_minutes_used : number ; /** The total paid GitHub Actions minutes used. */ total_paid_minutes_used : number ; /** The amount of free GitHub Actions minutes available. */ included_minutes : number ; minutes_used_breakdown : { UBUNTU ? : number ; MACOS ? : number ; WINDOWS ? : number ; } ; } export interface PackagesBillingUsage { /** Sum of the free and paid storage space (GB) for GitHuub Packages. */ total_gigabytes_bandwidth_used : number ; /** Total paid storage space (GB) for GitHuub Packages. */ total_paid_gigabytes_bandwidth_used : number ; /** Free storage space (GB) for GitHub Packages. */ included_gigabytes_bandwidth : number ; } export interface CombinedBillingUsage { /** Numbers of days left in billing cycle. */ days_left_in_billing_cycle : number ; /** Estimated storage space (GB) used in billing cycle. */ estimated_paid_storage_for_month : number ; /** Estimated sum of free and paid storage space (GB) used in billing cycle. */ estimated_storage_for_month : number ; } /**
 * Actor
 */ export interface Actor { id : number ; login : string ; display_login ? : string ; gravatar_id : string | null ; format url : string ; format avatar_url : string ; } /**
 * Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
 */ export interface Label { example id : number ; example node_id : string ; format example url : string ; example name : string ; example description : string | null ; example color : string ; example default : boolean ; } /**
 * A collection of related issues and pull requests.
 */ export interface Milestone { format example url : string ; format example html_url : string ; format example labels_url : string ; example id : number ; example node_id : string ; example number : number ; example state : "open" | "closed" ; example title : string ; example description : string | null ; creator : SimpleUser | null ; example open_issues : number ; example closed_issues : number ; format example created_at : string ; format example updated_at : string ; format example closed_at : string | null ; format example due_on : string | null ; } example export enum AuthorAssociation { COLLABORATOR = "COLLABORATOR" , CONTRIBUTOR = "CONTRIBUTOR" , FIRST_TIMER = "FIRST_TIMER" , FIRST_TIME_CONTRIBUTOR = "FIRST_TIME_CONTRIBUTOR" , MANNEQUIN = "MANNEQUIN" , MEMBER = "MEMBER" , NONE = "NONE" , OWNER = "OWNER" } /**
 * Issue Simple
 */ export interface IssueSimple { example id : number ; example node_id : string ; format example url : string ; format example repository_url : string ; example labels_url : string ; format example comments_url : string ; format example events_url : string ; format example html_url : string ; example number : number ; example state : string ; example title : string ; example body ? : string ; user : SimpleUser | null ; labels : Label [ ] ; assignee : SimpleUser | null ; assignees ? : SimpleUser [ ] | null ; milestone : Milestone | null ; example locked : boolean ; example active_lock_reason ? : string | null ; example comments : number ; pull_request ? : { merged_at ? : string | null ; diff_url : string | null ; html_url : string | null ; patch_url : string | null ; url : string | null ; } ; format closed_at : string | null ; format example created_at : string ; format example updated_at : string ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; body_html ? : string ; body_text ? : string ; format timeline_url ? : string ; /** A git repository */ repository ? : Repository ; performed_via_github_app ? : Integration | null ; } export interface ReactionRollup { format url : string ; total_count : number ; "+1" : number ; "-1" : number ; laugh : number ; confused : number ; heart : number ; hooray : number ; eyes : number ; rocket : number ; } /**
 * Comments provide a way for people to collaborate on an issue.
 */ export interface IssueComment { example id : number ; node_id : string ; format example url : string ; example body ? : string ; body_text ? : string ; body_html ? : string ; format html_url : string ; user : SimpleUser | null ; format example created_at : string ; format example updated_at : string ; format issue_url : string ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; performed_via_github_app ? : Integration | null ; reactions ? : ReactionRollup ; } /**
 * Event
 */ export interface Event { id : string ; type : string | null ; /** Actor */ actor : Actor ; repo : { id : number ; name : string ; url : string ; } ; /** Actor */ org ? : Actor ; payload : { action : string ; issue ? : IssueSimple ; comment ? : IssueComment ; pages ? : { page_name ? : string ; title ? : string ; summary ? : string | null ; action ? : string ; sha ? : string ; html_url ? : string ; } [ ] ; } ; public : boolean ; format created_at : string | null ; } /**
 * Hypermedia Link with Type
 */ export interface LinkWithType { href : string ; type : string ; } /**
 * Feed
 */ export interface Feed { example timeline_url : string ; example user_url : string ; example current_user_public_url ? : string ; example current_user_url ? : string ; example current_user_actor_url ? : string ; example current_user_organization_url ? : string ; example current_user_organization_urls ? : string [ ] ; example security_advisories_url ? : string ; _links : { timeline : LinkWithType ; user : LinkWithType ; security_advisories ? : LinkWithType ; current_user ? : LinkWithType ; current_user_public ? : LinkWithType ; current_user_actor ? : LinkWithType ; current_user_organization ? : LinkWithType ; current_user_organizations ? : LinkWithType [ ] ; } ; } /**
 * Base Gist
 */ export interface BaseGist { format url : string ; format forks_url : string ; format commits_url : string ; id : string ; node_id : string ; format git_pull_url : string ; format git_push_url : string ; format html_url : string ; files : Record < string , { filename ? : string ; type ? : string ; language ? : string ; raw_url ? : string ; size ? : number ; } > ; public : boolean ; format created_at : string ; format updated_at : string ; description : string | null ; comments : number ; user : SimpleUser | null ; format comments_url : string ; owner ? : SimpleUser | null ; truncated ? : boolean ; forks ? : any [ ] ; history ? : any [ ] ; } /**
 * Gist Simple
 */ export interface GistSimple { url ? : string ; forks_url ? : string ; commits_url ? : string ; id ? : string ; node_id ? : string ; git_pull_url ? : string ; git_push_url ? : string ; html_url ? : string ; files ? : Record < string , { filename ? : string ; type ? : string ; language ? : string ; raw_url ? : string ; size ? : number ; truncated ? : boolean ; content ? : string ; } > ; public ? : boolean ; created_at ? : string ; updated_at ? : string ; description ? : string | null ; comments ? : number ; user ? : string | null ; comments_url ? : string ; /** Simple User */ owner ? : SimpleUser ; truncated ? : boolean ; } /**
 * A comment made to a gist.
 */ export interface GistComment { example id : number ; example node_id : string ; format example url : string ; example body : string ; user : SimpleUser | null ; format example created_at : string ; format example updated_at : string ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; } /**
 * Gist Commit
 */ export interface GistCommit { format example url : string ; example version : string ; user : SimpleUser | null ; change_status : { total ? : number ; additions ? : number ; deletions ? : number ; } ; format example committed_at : string ; } /**
 * Gitignore Template
 */ export interface GitignoreTemplate { example name : string ; example source : string ; } /**
 * Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.
 */ export interface Issue { id : number ; node_id : string ; format example url : string ; format repository_url : string ; labels_url : string ; format comments_url : string ; format events_url : string ; format html_url : string ; example number : number ; example state : string ; example title : string ; example body ? : string ; user : SimpleUser | null ; example labels : ( string | { id ? : number ; node_id ? : string ; url ? : string ; name ? : string ; description ? : string | null ; color ? : string | null ; default ? : boolean ; } ) [ ] ; assignee : SimpleUser | null ; assignees ? : SimpleUser [ ] | null ; milestone : Milestone | null ; locked : boolean ; active_lock_reason ? : string | null ; comments : number ; pull_request ? : { merged_at ? : string | null ; diff_url : string | null ; html_url : string | null ; patch_url : string | null ; url : string | null ; } ; format closed_at : string | null ; format created_at : string ; format updated_at : string ; closed_by ? : SimpleUser | null ; body_html ? : string ; body_text ? : string ; format timeline_url ? : string ; /** A git repository */ repository ? : Repository ; performed_via_github_app ? : Integration | null ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; reactions ? : ReactionRollup ; } /**
 * License
 */ export interface License { example key : string ; example name : string ; example spdx_id : string | null ; format example url : string | null ; example node_id : string ; format example html_url : string ; example description : string ; example implementation : string ; example permissions : string [ ] ; example conditions : string [ ] ; example limitations : string [ ] ; example body : string ; example featured : boolean ; } /**
 * Marketplace Listing Plan
 */ export interface MarketplaceListingPlan { format example url : string ; format example accounts_url : string ; example id : number ; example number : number ; example name : string ; example description : string ; example monthly_price_in_cents : number ; example yearly_price_in_cents : number ; example price_model : string ; example has_free_trial : boolean ; unit_name : string | null ; example state : string ; example bullets : string [ ] ; } /**
 * Marketplace Purchase
 */ export interface MarketplacePurchase { url : string ; type : string ; id : number ; login : string ; organization_billing_email ? : string ; marketplace_pending_change ? : { is_installed ? : boolean ; effective_date ? : string ; unit_count ? : number | null ; id ? : number ; plan ? : MarketplaceListingPlan ; } ; marketplace_purchase : { billing_cycle ? : string ; next_billing_date ? : string | null ; is_installed ? : boolean ; unit_count ? : number | null ; on_free_trial ? : boolean ; free_trial_ends_on ? : string | null ; updated_at ? : string ; plan ? : MarketplaceListingPlan ; } ; } /**
 * Api Overview
 */ export interface ApiOverview { example verifiable_password_authentication : boolean ; ssh_key_fingerprints ? : { SHA256_RSA ? : string ; SHA256_DSA ? : string ; } ; example hooks ? : string [ ] ; example web ? : string [ ] ; example api ? : string [ ] ; example git ? : string [ ] ; example pages ? : string [ ] ; example importer ? : string [ ] ; example actions ? : string [ ] ; } /**
 * Minimal Repository
 */ export interface MinimalRepository { example id : number ; example node_id : string ; example name : string ; example full_name : string ; owner : SimpleUser | null ; private : boolean ; format example html_url : string ; example description : string | null ; fork : boolean ; format example url : string ; example archive_url : string ; example assignees_url : string ; example blobs_url : string ; example branches_url : string ; example collaborators_url : string ; example comments_url : string ; example commits_url : string ; example compare_url : string ; example contents_url : string ; format example contributors_url : string ; format example deployments_url : string ; format example downloads_url : string ; format example events_url : string ; format example forks_url : string ; example git_commits_url : string ; example git_refs_url : string ; example git_tags_url : string ; git_url ? : string ; example issue_comment_url : string ; example issue_events_url : string ; example issues_url : string ; example keys_url : string ; example labels_url : string ; format example languages_url : string ; format example merges_url : string ; example milestones_url : string ; example notifications_url : string ; example pulls_url : string ; example releases_url : string ; ssh_url ? : string ; format example stargazers_url : string ; example statuses_url : string ; format example subscribers_url : string ; format example subscription_url : string ; format example tags_url : string ; format example teams_url : string ; example trees_url : string ; clone_url ? : string ; mirror_url ? : string | null ; format example hooks_url : string ; svn_url ? : string ; homepage ? : string | null ; language ? : string | null ; forks_count ? : number ; stargazers_count ? : number ; watchers_count ? : number ; size ? : number ; default_branch ? : string ; open_issues_count ? : number ; is_template ? : boolean ; topics ? : string [ ] ; has_issues ? : boolean ; has_projects ? : boolean ; has_wiki ? : boolean ; has_pages ? : boolean ; has_downloads ? : boolean ; archived ? : boolean ; disabled ? : boolean ; visibility ? : string ; format example pushed_at ? : string | null ; format example created_at ? : string | null ; format example updated_at ? : string | null ; permissions ? : { admin ? : boolean ; push ? : boolean ; pull ? : boolean ; } ; template_repository ? : Repository | null ; temp_clone_token ? : string ; delete_branch_on_merge ? : boolean ; subscribers_count ? : number ; network_count ? : number ; license ? : { key ? : string ; name ? : string ; spdx_id ? : string ; url ? : string ; node_id ? : string ; } ; example forks ? : number ; example open_issues ? : number ; example watchers ? : number ; } /**
 * Thread
 */ export interface Thread { id : string ; /** Minimal Repository */ repository : MinimalRepository ; subject : { title : string ; url : string ; latest_comment_url : string ; type : string ; } ; reason : string ; unread : boolean ; updated_at : string ; last_read_at : string | null ; url : string ; example subscription_url : string ; } /**
 * Thread Subscription
 */ export interface ThreadSubscription { example subscribed : boolean ; ignored : boolean ; reason : string | null ; format example created_at : string | null ; format example url : string ; format example thread_url ? : string ; format example repository_url ? : string ; } /**
 * Organization Full
 */ export interface OrganizationFull { example login : string ; example id : number ; example node_id : string ; format example url : string ; format example repos_url : string ; format example events_url : string ; example hooks_url : string ; example issues_url : string ; example members_url : string ; example public_members_url : string ; example avatar_url : string ; example description : string | null ; example name ? : string ; example company ? : string ; format example blog ? : string ; example location ? : string ; format example email ? : string ; example twitter_username ? : string | null ; example is_verified ? : boolean ; example has_organization_projects : boolean ; example has_repository_projects : boolean ; example public_repos : number ; example public_gists : number ; example followers : number ; example following : number ; format example html_url : string ; format example created_at : string ; example type : string ; example total_private_repos ? : number ; example owned_private_repos ? : number ; example private_gists ? : number | null ; example disk_usage ? : number | null ; example collaborators ? : number | null ; format example billing_email ? : string | null ; plan ? : { name : string ; space : number ; private_repos : number ; filled_seats ? : number ; seats ? : number ; } ; default_repository_permission ? : string | null ; example members_can_create_repositories ? : boolean | null ; example two_factor_requirement_enabled ? : boolean | null ; example members_allowed_repository_creation_type ? : string ; example members_can_create_public_repositories ? : boolean ; example members_can_create_private_repositories ? : boolean ; example members_can_create_internal_repositories ? : boolean ; example members_can_create_pages ? : boolean ; format updated_at : string ; } /**
 * The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
 */ export enum EnabledRepositories { All = "all" , None = "none" , Selected = "selected" } export interface ActionsOrganizationPermissions { /** The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. */ enabled_repositories : EnabledRepositories ; /** The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`. */ selected_repositories_url ? : string ; /** The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. */ allowed_actions : AllowedActions ; /** The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`. */ selected_actions_url ? : SelectedActionsUrl ; } export interface RunnerGroupsOrg { id : number ; name : string ; visibility : string ; default : boolean ; /** Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected` */ selected_repositories_url ? : string ; runners_url : string ; inherited : boolean ; inherited_allows_public_repositories ? : boolean ; allows_public_repositories : boolean ; } /**
 * Secrets for GitHub Actions for an organization.
 */ export interface OrganizationActionsSecret { example name : string ; format created_at : string ; format updated_at : string ; /** Visibility of a secret */ visibility : "all" | "private" | "selected" ; format example selected_repositories_url ? : string ; } /**
 * The public key used for setting Actions Secrets.
 */ export interface ActionsPublicKey { example key_id : string ; example key : string ; example id ? : number ; example url ? : string ; example title ? : string ; example created_at ? : string ; } /**
 * Credential Authorization
 */ export interface CredentialAuthorization { example login : string ; example credential_id : number ; example credential_type : string ; example token_last_eight ? : string ; format example credential_authorized_at : string ; example scopes ? : string [ ] ; example fingerprint ? : string ; format example credential_accessed_at ? : string | null ; example authorized_credential_id ? : number | null ; example authorized_credential_title ? : string | null ; example authorized_credential_note ? : string | null ; } /**
 * Organization Invitation
 */ export interface OrganizationInvitation { id : number ; login : string | null ; email : string | null ; role : string ; created_at : string ; failed_at ? : string ; failed_reason ? : string ; /** Simple User */ inviter : SimpleUser ; team_count : number ; invitation_team_url : string ; example node_id : string ; example invitation_teams_url ? : string ; } /**
 * Org Hook
 */ export interface OrgHook { example id : number ; format example url : string ; format example ping_url : string ; example name : string ; example events : string [ ] ; example active : boolean ; config : { url ? : string ; insecure_ssl ? : string ; content_type ? : string ; secret ? : string ; } ; format example updated_at : string ; format example created_at : string ; type : string ; } example export enum InteractionGroup { ExistingUsers = "existing_users" , ContributorsOnly = "contributors_only" , CollaboratorsOnly = "collaborators_only" } /**
 * Interaction limit settings.
 */ export interface InteractionLimitResponse { /** The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: `existing_users`, `contributors_only`, `collaborators_only`. */ limit : InteractionGroup ; example origin : string ; format example expires_at : string ; } example export enum InteractionExpiry { OneDay = "one_day" , ThreeDays = "three_days" , OneWeek = "one_week" , OneMonth = "one_month" , SixMonths = "six_months" } /**
 * Limit interactions to a specific type of user for a specified duration
 */ export interface InteractionLimit { /** The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: `existing_users`, `contributors_only`, `collaborators_only`. */ limit : InteractionGroup ; /** The duration of the interaction restriction. Can be one of: `one_day`, `three_days`, `one_week`, `one_month`, `six_months`. Default: `one_day`. */ expiry ? : InteractionExpiry ; } /**
 * Groups of organization members that gives permissions on specified repositories.
 */ export interface TeamSimple { example id : number ; example node_id : string ; format example url : string ; example members_url : string ; example name : string ; example description : string | null ; example permission : string ; example privacy ? : string ; format example html_url : string ; format example repositories_url : string ; example slug : string ; example ldap_dn ? : string ; } /**
 * Groups of organization members that gives permissions on specified repositories.
 */ export interface Team { id : number ; node_id : string ; name : string ; slug : string ; description : string | null ; privacy ? : string ; permission : string ; format url : string ; format example html_url : string ; members_url : string ; format repositories_url : string ; parent ? : TeamSimple | null ; } /**
 * Org Membership
 */ export interface OrgMembership { format example url : string ; example state : string ; example role : string ; format example organization_url : string ; /** Organization Simple */ organization : OrganizationSimple ; user : SimpleUser | null ; permissions ? : { can_create_repository : boolean ; } ; } /**
 * A migration.
 */ export interface Migration { example id : number ; owner : SimpleUser | null ; example guid : string ; example state : string ; example lock_repositories : boolean ; exclude_attachments : boolean ; repositories : Repository [ ] ; format example url : string ; format example created_at : string ; format example updated_at : string ; node_id : string ; format archive_url ? : string ; exclude ? : any [ ] ; } /**
 * Projects are a way to organize columns and cards of work.
 */ export interface Project { format example owner_url : string ; format example url : string ; format example html_url : string ; format example columns_url : string ; example id : number ; example node_id : string ; example name : string ; example body : string | null ; example number : number ; example state : string ; creator : SimpleUser | null ; format example created_at : string ; format example updated_at : string ; /** The baseline permission that all organization members have on this project. Only present if owner is an organization. */ organization_permission ? : "read" | "write" | "admin" | "none" ; /** Whether or not this project can be seen by everyone. Only present if owner is an organization. */ private ? : boolean ; } /**
 * External Groups to be mapped to a team for membership
 */ export interface GroupMapping { example groups ? : { group_id : string ; group_name : string ; group_description : string ; } [ ] ; example group_id ? : string ; example group_name ? : string ; example group_description ? : string ; example status ? : string ; example synced_at ? : string ; } /**
 * Groups of organization members that gives permissions on specified repositories.
 */ export interface TeamFull { example id : number ; example node_id : string ; format example url : string ; format example html_url : string ; example name : string ; example slug : string ; example description : string | null ; example privacy ? : "closed" | "secret" ; example permission : string ; example members_url : string ; format example repositories_url : string ; parent ? : TeamSimple | null ; example members_count : number ; example repos_count : number ; format example created_at : string ; format example updated_at : string ; /** Organization Full */ organization : OrganizationFull ; example ldap_dn ? : string ; } /**
 * A team discussion is a persistent record of a free-form conversation within a team.
 */ export interface TeamDiscussion { author : SimpleUser | null ; example body : string ; example body_html : string ; example body_version : string ; example comments_count : number ; format example comments_url : string ; format example created_at : string ; format last_edited_at : string | null ; format example html_url : string ; example node_id : string ; example number : number ; example pinned : boolean ; example private : boolean ; format example team_url : string ; example title : string ; format example updated_at : string ; format example url : string ; reactions ? : ReactionRollup ; } /**
 * A reply to a discussion within a team.
 */ export interface TeamDiscussionComment { author : SimpleUser | null ; example body : string ; example body_html : string ; example body_version : string ; format example created_at : string ; format last_edited_at : string | null ; format example discussion_url : string ; format example html_url : string ; example node_id : string ; example number : number ; format example updated_at : string ; format example url : string ; reactions ? : ReactionRollup ; } /**
 * Reactions to conversations provide a way to help people express their feelings more simply and effectively.
 */ export interface Reaction { example id : number ; example node_id : string ; user : SimpleUser | null ; example content : "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes" ; format example created_at : string ; } /**
 * Team Membership
 */ export interface TeamMembership { format url : string ; example role : "member" | "maintainer" ; state : string ; } /**
 * A team's access to a project.
 */ export interface TeamProject { owner_url : string ; url : string ; html_url : string ; columns_url : string ; id : number ; node_id : string ; name : string ; body : string | null ; number : number ; state : string ; /** Simple User */ creator : SimpleUser ; created_at : string ; updated_at : string ; /** The organization permission for this project. Only present when owner is an organization. */ organization_permission ? : string ; /** Whether the project is private or not. Only present when owner is an organization. */ private ? : boolean ; permissions : { read : boolean ; write : boolean ; admin : boolean ; } ; } /**
 * A team's access to a repository.
 */ export interface TeamRepository { example id : number ; example node_id : string ; example name : string ; example full_name : string ; license : LicenseSimple | null ; forks : number ; permissions ? : { admin : boolean ; pull : boolean ; triage ? : boolean ; push : boolean ; maintain ? : boolean ; } ; owner : SimpleUser | null ; /** Whether the repository is private or public. */ private : boolean ; format example html_url : string ; example description : string | null ; fork : boolean ; format example url : string ; example archive_url : string ; example assignees_url : string ; example blobs_url : string ; example branches_url : string ; example collaborators_url : string ; example comments_url : string ; example commits_url : string ; example compare_url : string ; example contents_url : string ; format example contributors_url : string ; format example deployments_url : string ; format example downloads_url : string ; format example events_url : string ; format example forks_url : string ; example git_commits_url : string ; example git_refs_url : string ; example git_tags_url : string ; example git_url : string ; example issue_comment_url : string ; example issue_events_url : string ; example issues_url : string ; example keys_url : string ; example labels_url : string ; format example languages_url : string ; format example merges_url : string ; example milestones_url : string ; example notifications_url : string ; example pulls_url : string ; example releases_url : string ; example ssh_url : string ; format example stargazers_url : string ; example statuses_url : string ; format example subscribers_url : string ; format example subscription_url : string ; format example tags_url : string ; format example teams_url : string ; example trees_url : string ; example clone_url : string ; format example mirror_url : string | null ; format example hooks_url : string ; format example svn_url : string ; format example homepage : string | null ; language : string | null ; example forks_count : number ; example stargazers_count : number ; example watchers_count : number ; example size : number ; example default_branch : string ; example open_issues_count : number ; example is_template ? : boolean ; topics ? : string [ ] ; example has_issues : boolean ; example has_projects : boolean ; example has_wiki : boolean ; has_pages : boolean ; example has_downloads : boolean ; /** Whether the repository is archived. */ archived : boolean ; /** Returns whether or not this repository disabled. */ disabled : boolean ; /** The repository visibility: public, private, or internal. */ visibility ? : string ; format example pushed_at : string | null ; format example created_at : string | null ; format example updated_at : string | null ; example allow_rebase_merge ? : boolean ; template_repository ? : Repository | null ; temp_clone_token ? : string ; example allow_squash_merge ? : boolean ; example delete_branch_on_merge ? : boolean ; example allow_merge_commit ? : boolean ; subscribers_count ? : number ; network_count ? : number ; open_issues : number ; watchers : number ; master_branch ? : string ; } /**
 * Project cards represent a scope of work.
 */ export interface ProjectCard { format example url : string ; example id : number ; example node_id : string ; example note : string | null ; creator : SimpleUser | null ; format example created_at : string ; format example updated_at : string ; example archived ? : boolean ; format example column_url : string ; format example content_url ? : string ; format example project_url : string ; } /**
 * Project columns contain cards of work.
 */ export interface ProjectColumn { format example url : string ; format example project_url : string ; format example cards_url : string ; example id : number ; example node_id : string ; example name : string ; format example created_at : string ; format example updated_at : string ; } /**
 * Repository Collaborator Permission
 */ export interface RepositoryCollaboratorPermission { permission : string ; user : SimpleUser | null ; } export interface RateLimit { limit : number ; remaining : number ; reset : number ; } /**
 * Rate Limit Overview
 */ export interface RateLimitOverview { resources : { core : RateLimit ; graphql ? : RateLimit ; search : RateLimit ; source_import ? : RateLimit ; integration_manifest ? : RateLimit ; code_scanning_upload ? : RateLimit ; } ; rate : RateLimit ; } /**
 * Full Repository
 */ export interface FullRepository { example id : number ; example node_id : string ; example name : string ; example full_name : string ; owner : SimpleUser | null ; private : boolean ; format example html_url : string ; example description : string | null ; fork : boolean ; format example url : string ; example archive_url : string ; example assignees_url : string ; example blobs_url : string ; example branches_url : string ; example collaborators_url : string ; example comments_url : string ; example commits_url : string ; example compare_url : string ; example contents_url : string ; format example contributors_url : string ; format example deployments_url : string ; format example downloads_url : string ; format example events_url : string ; format example forks_url : string ; example git_commits_url : string ; example git_refs_url : string ; example git_tags_url : string ; example git_url : string ; example issue_comment_url : string ; example issue_events_url : string ; example issues_url : string ; example keys_url : string ; example labels_url : string ; format example languages_url : string ; format example merges_url : string ; example milestones_url : string ; example notifications_url : string ; example pulls_url : string ; example releases_url : string ; example ssh_url : string ; format example stargazers_url : string ; example statuses_url : string ; format example subscribers_url : string ; format example subscription_url : string ; format example tags_url : string ; format example teams_url : string ; example trees_url : string ; example clone_url : string ; format example mirror_url : string | null ; format example hooks_url : string ; format example svn_url : string ; format example homepage : string | null ; language : string | null ; example forks_count : number ; example stargazers_count : number ; example watchers_count : number ; example size : number ; example default_branch : string ; example open_issues_count : number ; example is_template ? : boolean ; example topics ? : string [ ] ; example has_issues : boolean ; example has_projects : boolean ; example has_wiki : boolean ; has_pages : boolean ; example has_downloads : boolean ; archived : boolean ; /** Returns whether or not this repository disabled. */ disabled : boolean ; example visibility ? : string ; format example pushed_at : string ; format example created_at : string ; format example updated_at : string ; permissions ? : { admin : boolean ; pull : boolean ; push : boolean ; } ; example allow_rebase_merge ? : boolean ; template_repository ? : Repository | null ; temp_clone_token ? : string | null ; example allow_squash_merge ? : boolean ; example delete_branch_on_merge ? : boolean ; example allow_merge_commit ? : boolean ; example subscribers_count : number ; example network_count : number ; license : LicenseSimple | null ; organization ? : SimpleUser | null ; /** A git repository */ parent ? : Repository ; /** A git repository */ source ? : Repository ; forks : number ; master_branch ? : string ; open_issues : number ; watchers : number ; /** Whether anonymous git access is allowed. */ anonymous_access_enabled ? : boolean ; } /**
 * An artifact
 */ export interface Artifact { example id : number ; example node_id : string ; example name : string ; example size_in_bytes : number ; example url : string ; example archive_download_url : string ; /** Whether or not the artifact has expired. */ expired : boolean ; format created_at : string | null ; format expires_at : string ; format updated_at : string | null ; } /**
 * Information of a job execution in a workflow run
 */ export interface Job { example id : number ; example run_id : number ; example run_url : string ; example node_id : string ; example head_sha : string ; example url : string ; example html_url : string | null ; example status : "queued" | "in_progress" | "completed" ; example conclusion : string | null ; format example started_at : string ; format example completed_at : string | null ; example name : string ; /** Steps in this job. */ steps ? : { status : "queued" | "in_progress" | "completed" ; conclusion : string | null ; name : string ; number : number ; started_at ? : string | null ; completed_at ? : string | null ; } [ ] ; example check_run_url : string ; } /**
 * Whether GitHub Actions is enabled on the repository.
 */ export type ActionsEnabled = boolean ; export interface ActionsRepositoryPermissions { /** Whether GitHub Actions is enabled on the repository. */ enabled : ActionsEnabled ; /** The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. */ allowed_actions : AllowedActions ; /** The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`. */ selected_actions_url ? : SelectedActionsUrl ; } export interface PullRequestMinimal { id : number ; number : number ; url : string ; head : { ref : string ; sha : string ; repo : { id : number ; url : string ; name : string ; } ; } ; base : { ref : string ; sha : string ; repo : { id : number ; url : string ; name : string ; } ; } ; } /**
 * Simple Commit
 */ export interface SimpleCommit { id : string ; tree_id : string ; message : string ; format timestamp : string ; author : { name : string ; email : string ; } ; committer : { name : string ; email : string ; } ; } /**
 * An invocation of a workflow
 */ export interface WorkflowRun { example id : number ; example name ? : string ; example node_id : string ; example head_branch : string | null ; example head_sha : string ; example run_number : number ; example event : string ; example status : string | null ; example conclusion : string | null ; example workflow_id : number ; example url : string ; example html_url : string ; pull_requests : PullRequestMinimal [ ] | null ; format created_at : string ; format updated_at : string ; example jobs_url : string ; example logs_url : string ; example check_suite_url : string ; example artifacts_url : string ; example cancel_url : string ; example rerun_url : string ; example workflow_url : string ; /** Simple Commit */ head_commit : SimpleCommit ; /** Minimal Repository */ repository : MinimalRepository ; /** Minimal Repository */ head_repository : MinimalRepository ; example head_repository_id ? : number ; } /**
 * Workflow Run Usage
 */ export interface WorkflowRunUsage { billable : { UBUNTU ? : { total_ms : number ; jobs : number ; } ; MACOS ? : { total_ms : number ; jobs : number ; } ; WINDOWS ? : { total_ms : number ; jobs : number ; } ; } ; run_duration_ms : number ; } /**
 * Set secrets for GitHub Actions.
 */ export interface ActionsSecret { example name : string ; format created_at : string ; format updated_at : string ; } /**
 * A GitHub Actions workflow
 */ export interface Workflow { example id : number ; example node_id : string ; example name : string ; example path : string ; example state : "active" | "deleted" ; format example created_at : string ; format example updated_at : string ; example url : string ; example html_url : string ; example badge_url : string ; format example deleted_at ? : string ; } /**
 * Workflow Usage
 */ export interface WorkflowUsage { billable : { UBUNTU ? : { total_ms ? : number ; } ; MACOS ? : { total_ms ? : number ; } ; WINDOWS ? : { total_ms ? : number ; } ; } ; } /**
 * Protected Branch Admin Enforced
 */ export interface ProtectedBranchAdminEnforced { format example url : string ; example enabled : boolean ; } /**
 * Protected Branch Pull Request Review
 */ export interface ProtectedBranchPullRequestReview { format example url ? : string ; dismissal_restrictions ? : { users ? : SimpleUser [ ] ; teams ? : Team [ ] ; url ? : string ; users_url ? : string ; teams_url ? : string ; } ; example dismiss_stale_reviews : boolean ; example require_code_owner_reviews : boolean ; min max example required_approving_review_count ? : number ; } /**
 * Branch Restriction Policy
 */ export interface BranchRestrictionPolicy { format url : string ; format users_url : string ; format teams_url : string ; format apps_url : string ; users : { login ? : string ; id ? : number ; node_id ? : string ; avatar_url ? : string ; gravatar_id ? : string ; url ? : string ; html_url ? : string ; followers_url ? : string ; following_url ? : string ; gists_url ? : string ; starred_url ? : string ; subscriptions_url ? : string ; organizations_url ? : string ; repos_url ? : string ; events_url ? : string ; received_events_url ? : string ; type ? : string ; site_admin ? : boolean ; } [ ] ; teams : { id ? : number ; node_id ? : string ; url ? : string ; html_url ? : string ; name ? : string ; slug ? : string ; description ? : string | null ; privacy ? : string ; permission ? : string ; members_url ? : string ; repositories_url ? : string ; parent ? : string | null ; } [ ] ; apps : { id ? : number ; slug ? : string ; node_id ? : string ; owner ? : { login ? : string ; id ? : number ; node_id ? : string ; url ? : string ; repos_url ? : string ; events_url ? : string ; hooks_url ? : string ; issues_url ? : string ; members_url ? : string ; public_members_url ? : string ; avatar_url ? : string ; description ? : string ; gravatar_id ? : string ; html_url ? : string ; followers_url ? : string ; following_url ? : string ; gists_url ? : string ; starred_url ? : string ; subscriptions_url ? : string ; organizations_url ? : string ; received_events_url ? : string ; type ? : string ; } ; name ? : string ; description ? : string ; external_url ? : string ; html_url ? : string ; created_at ? : string ; updated_at ? : string ; permissions ? : { metadata ? : string ; contents ? : string ; issues ? : string ; single_file ? : string ; } ; events ? : string [ ] ; } [ ] ; } /**
 * Branch Protection
 */ export interface BranchProtection { url ? : string ; required_status_checks : { url ? : string ; enforcement_level : string ; contexts : string [ ] ; contexts_url ? : string ; } ; /** Protected Branch Admin Enforced */ enforce_admins ? : ProtectedBranchAdminEnforced ; /** Protected Branch Pull Request Review */ required_pull_request_reviews ? : ProtectedBranchPullRequestReview ; /** Branch Restriction Policy */ restrictions ? : BranchRestrictionPolicy ; required_linear_history ? : { enabled ? : boolean ; } ; allow_force_pushes ? : { enabled ? : boolean ; } ; allow_deletions ? : { enabled ? : boolean ; } ; enabled : boolean ; example name ? : string ; example protection_url ? : string ; } /**
 * Short Branch
 */ export interface ShortBranch { name : string ; commit : { sha : string ; url : string ; } ; protected : boolean ; /** Branch Protection */ protection ? : BranchProtection ; format protection_url ? : string ; } /**
 * Metaproperties for Git author/committer information.
 */ export interface GitUser { example name ? : string ; example email ? : string ; example date ? : string ; } export interface Verification { verified : boolean ; reason : string ; payload : string | null ; signature : string | null ; } /**
 * Commit
 */ export interface Commit { format example url : string ; example sha : string ; example node_id : string ; format example html_url : string ; format example comments_url : string ; commit : { url : string ; author : GitUser | null ; committer : GitUser | null ; message : string ; comment_count : number ; tree : { sha : string ; url : string ; } ; verification ? : Verification ; } ; author : SimpleUser | null ; committer : SimpleUser | null ; parents : { sha : string ; url : string ; html_url ? : string ; } [ ] ; stats ? : { additions ? : number ; deletions ? : number ; total ? : number ; } ; files ? : { filename ? : string ; additions ? : number ; deletions ? : number ; changes ? : number ; status ? : string ; raw_url ? : string ; blob_url ? : string ; patch ? : string ; sha ? : string ; contents_url ? : string ; previous_filename ? : string ; } [ ] ; } /**
 * Branch With Protection
 */ export interface BranchWithProtection { name : string ; /** Commit */ commit : Commit ; _links : { html : string ; self : string ; } ; protected : boolean ; /** Branch Protection */ protection : BranchProtection ; format protection_url : string ; example pattern ? : string ; example required_approving_review_count ? : number ; } /**
 * Status Check Policy
 */ export interface StatusCheckPolicy { format example url : string ; example strict : boolean ; example contexts : string [ ] ; format example contexts_url : string ; } /**
 * Branch protections protect branches
 */ export interface ProtectedBranch { format url : string ; /** Status Check Policy */ required_status_checks ? : StatusCheckPolicy ; required_pull_request_reviews ? : { url : string ; dismiss_stale_reviews ? : boolean ; require_code_owner_reviews ? : boolean ; required_approving_review_count ? : number ; dismissal_restrictions ? : { url : string ; users_url : string ; teams_url : string ; users : SimpleUser [ ] ; teams : Team [ ] ; } ; } ; required_signatures ? : { url : string ; enabled : boolean ; } ; enforce_admins ? : { url : string ; enabled : boolean ; } ; required_linear_history ? : { enabled : boolean ; } ; allow_force_pushes ? : { enabled : boolean ; } ; allow_deletions ? : { enabled : boolean ; } ; /** Branch Restriction Policy */ restrictions ? : BranchRestrictionPolicy ; } /**
 * A check performed on the code of a given code change
 */ export interface CheckRun { example id : number ; example head_sha : string ; example node_id : string ; example external_id : string | null ; example url : string ; example html_url : string | null ; example details_url : string | null ; example status : "queued" | "in_progress" | "completed" ; example conclusion : "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null ; format example started_at : string | null ; format example completed_at : string | null ; output : { title : string | null ; summary : string | null ; text : string | null ; annotations_count : number ; annotations_url : string ; } ; example name : string ; check_suite : { id : number ; } ; app : Integration | null ; pull_requests : PullRequestMinimal [ ] ; } /**
 * Check Annotation
 */ export interface CheckAnnotation { example path : string ; example start_line : number ; example end_line : number ; example start_column : number | null ; example end_column : number | null ; example annotation_level : string | null ; example title : string | null ; example message : string | null ; example raw_details : string | null ; blob_href : string ; } /**
 * A suite of checks performed on the code of a given code change
 */ export interface CheckSuite { example id : number ; example node_id : string ; example head_branch : string | null ; example head_sha : string ; example status : "queued" | "in_progress" | "completed" | null ; example conclusion : "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null ; example url : string | null ; example before : string | null ; example after : string | null ; pull_requests : PullRequestMinimal [ ] | null ; app : Integration | null ; /** Minimal Repository */ repository : MinimalRepository ; format created_at : string | null ; format updated_at : string | null ; /** Simple Commit */ head_commit : SimpleCommit ; latest_check_runs_count : number ; check_runs_url : string ; } /**
 * Check suite configuration preferences for a repository.
 */ export interface CheckSuitePreference { preferences : { auto_trigger_checks ? : { app_id : number ; setting : boolean ; } [ ] ; } ; /** A git repository */ repository : Repository ; } /**
 * State of a code scanning alert.
 */ export enum CodeScanningAlertState { Open = "open" , Dismissed = "dismissed" , Fixed = "fixed" } /**
 * The full Git reference, formatted as `refs/heads/<branch name>`.
 */ export type CodeScanningAlertRef = string ; /**
 * The security alert number.
 */ export type AlertNumber = number ; format export type AlertCreatedAt = string ; format export type AlertUrl = string ; format export type AlertHtmlUrl = string ; format export type CodeScanningAlertDismissedAt = string | null ; /**
 * **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
 */ export type CodeScanningAlertDismissedReason = "false positive" | "won't fix" | "used in tests" | null ; export interface CodeScanningAlertRule { /** A unique identifier for the rule used to detect the alert. */ id ? : string | null ; /** The severity of the alert. */ severity ? : "none" | "note" | "warning" | "error" | null ; /** A short description of the rule used to detect the alert. */ description ? : string ; } /**
 * The name of the tool used to generate the code scanning analysis alert.
 */ export type CodeScanningAnalysisToolName = string ; export interface CodeScanningAnalysisTool { /** The name of the tool used to generate the code scanning analysis alert. */ name ? : CodeScanningAnalysisToolName ; /** The version of the tool used to detect the alert. */ version ? : string | null ; } export interface CodeScanningAlertCodeScanningAlertItems { /** The security alert number. */ number : AlertNumber ; /** The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ created_at : AlertCreatedAt ; /** The REST API URL of the alert resource. */ url : AlertUrl ; /** The GitHub URL of the alert resource. */ html_url : AlertHtmlUrl ; /** State of a code scanning alert. */ state : CodeScanningAlertState ; /** Simple User */ dismissed_by : SimpleUser ; /** The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ dismissed_at : CodeScanningAlertDismissedAt ; /** **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. */ dismissed_reason : CodeScanningAlertDismissedReason ; rule : CodeScanningAlertRule ; tool : CodeScanningAnalysisTool ; } /**
 * Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name.
 */ export type CodeScanningAnalysisAnalysisKey = string ; /**
 * Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed.
 */ export type CodeScanningAlertEnvironment = string ; export type CodeScanningAlertInstances = { ref ? : CodeScanningAlertRef ; analysis_key ? : CodeScanningAnalysisAnalysisKey ; environment ? : CodeScanningAlertEnvironment ; matrix_vars ? : string | null ; state ? : CodeScanningAlertState ; } [ ] ; export interface CodeScanningAlertCodeScanningAlert { /** The security alert number. */ number : AlertNumber ; /** The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ created_at : AlertCreatedAt ; /** The REST API URL of the alert resource. */ url : AlertUrl ; /** The GitHub URL of the alert resource. */ html_url : AlertHtmlUrl ; instances : CodeScanningAlertInstances ; /** State of a code scanning alert. */ state : CodeScanningAlertState ; /** Simple User */ dismissed_by : SimpleUser ; /** The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ dismissed_at : CodeScanningAlertDismissedAt ; /** **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. */ dismissed_reason : CodeScanningAlertDismissedReason ; rule : CodeScanningAlertRule ; tool : CodeScanningAnalysisTool ; } /**
 * Sets the state of the code scanning alert. Can be one of `open` or `dismissed`. You must provide `dismissed_reason` when you set the state to `dismissed`.
 */ export enum CodeScanningAlertSetState { Open = "open" , Dismissed = "dismissed" } /**
 * The full Git reference of the code scanning analysis file, formatted as `refs/heads/<branch name>`.
 */ export type CodeScanningAnalysisRef = string ; pattern export type CodeScanningAnalysisCommitSha = string ; format export type CodeScanningAnalysisCreatedAt = string ; /**
 * Identifies the variable values associated with the environment in which this analysis was performed.
 */ export type CodeScanningAnalysisEnvironment = string ; export interface CodeScanningAnalysisCodeScanningAnalysis { /** The commit SHA of the code scanning analysis file. */ commit_sha : CodeScanningAnalysisCommitSha ; /** The full Git reference of the code scanning analysis file, formatted as `refs/heads/<branch name>`. */ ref : CodeScanningAnalysisRef ; /** Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. */ analysis_key : CodeScanningAnalysisAnalysisKey ; /** The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ created_at : CodeScanningAnalysisCreatedAt ; /** The name of the tool used to generate the code scanning analysis alert. */ tool_name : CodeScanningAnalysisToolName ; example error : string ; /** Identifies the variable values associated with the environment in which this analysis was performed. */ environment : CodeScanningAnalysisEnvironment ; } /**
 * A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string.
 */ export type CodeScanningAnalysisSarifFile = string ; /**
 * Collaborator
 */ export interface Collaborator { example login : string ; example id : number ; example node_id : string ; format example avatar_url : string ; example gravatar_id : string | null ; format example url : string ; format example html_url : string ; format example followers_url : string ; example following_url : string ; example gists_url : string ; example starred_url : string ; format example subscriptions_url : string ; format example organizations_url : string ; format example repos_url : string ; example events_url : string ; format example received_events_url : string ; example type : string ; site_admin : boolean ; permissions ? : { pull : boolean ; push : boolean ; admin : boolean ; } ; } /**
 * Repository invitations let you manage who you collaborate with.
 */ export interface RepositoryInvitation { example id : number ; /** Minimal Repository */ repository : MinimalRepository ; invitee : SimpleUser | null ; inviter : SimpleUser | null ; example permissions : "read" | "write" | "admin" ; format example created_at : string ; /** Whether or not the invitation has expired */ expired ? : boolean ; example url : string ; example html_url : string ; node_id : string ; } /**
 * Commit Comment
 */ export interface CommitComment { format html_url : string ; format url : string ; id : number ; node_id : string ; body : string ; path : string | null ; position : number | null ; line : number | null ; commit_id : string ; user : SimpleUser | null ; format created_at : string ; format updated_at : string ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; reactions ? : ReactionRollup ; } /**
 * Scim Error
 */ export interface ScimError { message ? : string | null ; documentation_url ? : string | null ; detail ? : string | null ; status ? : number ; scimType ? : string | null ; schemas ? : string [ ] ; } /**
 * Branch Short
 */ export interface BranchShort { name : string ; commit : { sha : string ; url : string ; } ; protected : boolean ; } /**
 * Hypermedia Link
 */ export interface Link { href : string ; } /**
 * The status of auto merging a pull request.
 */ export interface AutoMerge { /** Simple User */ enabled_by : SimpleUser ; /** The merge method to use. */ merge_method : "merge" | "squash" | "rebase" ; /** Title for the merge commit message. */ commit_title : string ; /** Commit message for the merge commit. */ commit_message : string ; } /**
 * Pull Request Simple
 */ export interface PullRequestSimple { format example url : string ; example id : number ; example node_id : string ; format example html_url : string ; format example diff_url : string ; format example patch_url : string ; format example issue_url : string ; format example commits_url : string ; format example review_comments_url : string ; example review_comment_url : string ; format example comments_url : string ; format example statuses_url : string ; example number : number ; example state : string ; example locked : boolean ; example title : string ; user : SimpleUser | null ; example body : string | null ; labels : { id ? : number ; node_id ? : string ; url ? : string ; name ? : string ; description ? : string ; color ? : string ; default ? : boolean ; } [ ] ; milestone : Milestone | null ; example active_lock_reason ? : string | null ; format example created_at : string ; format example updated_at : string ; format example closed_at : string | null ; format example merged_at : string | null ; example merge_commit_sha : string | null ; assignee : SimpleUser | null ; assignees ? : SimpleUser [ ] | null ; requested_reviewers ? : SimpleUser [ ] | null ; requested_teams ? : TeamSimple [ ] | null ; head : { label : string ; ref : string ; repo : Repository ; sha : string ; user : SimpleUser | null ; } ; base : { label : string ; ref : string ; repo : Repository ; sha : string ; user : SimpleUser | null ; } ; _links : { comments : Link ; commits : Link ; statuses : Link ; html : Link ; issue : Link ; review_comments : Link ; review_comment : Link ; self : Link ; } ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; /** The status of auto merging a pull request. */ auto_merge : AutoMerge ; example draft ? : boolean ; } export interface SimpleCommitStatus { description : string | null ; id : number ; node_id : string ; state : string ; context : string ; format target_url : string ; required ? : boolean | null ; format avatar_url : string | null ; format url : string ; format created_at : string ; format updated_at : string ; } /**
 * Combined Commit Status
 */ export interface CombinedCommitStatus { state : string ; statuses : SimpleCommitStatus [ ] ; sha : string ; total_count : number ; /** Minimal Repository */ repository : MinimalRepository ; format commit_url : string ; format url : string ; } /**
 * The status of a commit.
 */ export interface Status { url : string ; avatar_url : string | null ; id : number ; node_id : string ; state : string ; description : string ; target_url : string ; context : string ; created_at : string ; updated_at : string ; /** Simple User */ creator : SimpleUser ; } /**
 * Code of Conduct Simple
 */ export interface CodeOfConductSimple { format example url : string ; example key : string ; example name : string ; format html_url : string | null ; } export interface CommunityHealthFile { format url : string ; format html_url : string ; } /**
 * Community Profile
 */ export interface CommunityProfile { example health_percentage : number ; example description : string | null ; example documentation : string | null ; files : { code_of_conduct : CodeOfConductSimple | null ; license : LicenseSimple | null ; contributing : CommunityHealthFile | null ; readme : CommunityHealthFile | null ; issue_template : CommunityHealthFile | null ; pull_request_template : CommunityHealthFile | null ; } ; format example updated_at : string | null ; example content_reports_enabled ? : boolean ; } /**
 * Diff Entry
 */ export interface DiffEntry { example sha : string ; example filename : string ; example status : string ; example additions : number ; example deletions : number ; example changes : number ; format example blob_url : string ; format example raw_url : string ; format example contents_url : string ; example patch ? : string ; example previous_filename ? : string ; } /**
 * Commit Comparison
 */ export interface CommitComparison { format example url : string ; format example html_url : string ; format example permalink_url : string ; format example diff_url : string ; format example patch_url : string ; /** Commit */ base_commit : Commit ; /** Commit */ merge_base_commit : Commit ; example status : "diverged" | "ahead" | "behind" | "identical" ; example ahead_by : number ; example behind_by : number ; example total_commits : number ; commits : Commit [ ] ; files : DiffEntry [ ] ; } /**
 * Content Tree
 */ export interface ContentTree { type : string ; size : number ; name : string ; path : string ; sha : string ; format url : string ; format git_url : string | null ; format html_url : string | null ; format download_url : string | null ; entries ? : { type : string ; size : number ; name : string ; path : string ; content ? : string ; sha : string ; url : string ; git_url : string | null ; html_url : string | null ; download_url : string | null ; _links : { git : string | null ; html : string | null ; self : string ; } ; } [ ] ; _links : { git : string | null ; html : string | null ; self : string ; } ; } /**
 * A list of directory items
 */ export type ContentDirectory = { type : string ; size : number ; name : string ; path : string ; content ? : string ; sha : string ; url : string ; git_url : string | null ; html_url : string | null ; download_url : string | null ; _links : { git : string | null ; html : string | null ; self : string ; } ; } [ ] ; /**
 * Content File
 */ export interface ContentFile { type : string ; encoding : string ; size : number ; name : string ; path : string ; content : string ; sha : string ; format url : string ; format git_url : string | null ; format html_url : string | null ; format download_url : string | null ; _links : { git : string | null ; html : string | null ; self : string ; } ; example target ? : string ; example submodule_git_url ? : string ; } /**
 * An object describing a symlink
 */ export interface ContentSymlink { type : string ; target : string ; size : number ; name : string ; path : string ; sha : string ; format url : string ; format git_url : string | null ; format html_url : string | null ; format download_url : string | null ; _links : { git : string | null ; html : string | null ; self : string ; } ; } /**
 * An object describing a symlink
 */ export interface ContentSubmodule { type : string ; format submodule_git_url : string ; size : number ; name : string ; path : string ; sha : string ; format url : string ; format git_url : string | null ; format html_url : string | null ; format download_url : string | null ; _links : { git : string | null ; html : string | null ; self : string ; } ; } /**
 * File Commit
 */ export interface FileCommit { content : { name ? : string ; path ? : string ; sha ? : string ; size ? : number ; url ? : string ; html_url ? : string ; git_url ? : string ; download_url ? : string ; type ? : string ; _links ? : { self ? : string ; git ? : string ; html ? : string ; } ; } ; commit : { sha ? : string ; node_id ? : string ; url ? : string ; html_url ? : string ; author ? : { date ? : string ; name ? : string ; email ? : string ; } ; committer ? : { date ? : string ; name ? : string ; email ? : string ; } ; message ? : string ; tree ? : { url ? : string ; sha ? : string ; } ; parents ? : { url ? : string ; html_url ? : string ; sha ? : string ; } [ ] ; verification ? : { verified ? : boolean ; reason ? : string ; signature ? : string | null ; payload ? : string | null ; } ; } ; } /**
 * Contributor
 */ export interface Contributor { login ? : string ; id ? : number ; node_id ? : string ; format avatar_url ? : string ; gravatar_id ? : string | null ; format url ? : string ; format html_url ? : string ; format followers_url ? : string ; following_url ? : string ; gists_url ? : string ; starred_url ? : string ; format subscriptions_url ? : string ; format organizations_url ? : string ; format repos_url ? : string ; events_url ? : string ; format received_events_url ? : string ; type : string ; site_admin ? : boolean ; contributions : number ; email ? : string ; name ? : string ; } /**
 * A request for a specific ref(branch,sha,tag) to be deployed
 */ export interface Deployment { format example url : string ; example id : number ; example node_id : string ; example sha : string ; example ref : string ; example task : string ; payload : object ; example original_environment ? : string ; example environment : string ; example description : string | null ; creator : SimpleUser | null ; format example created_at : string ; format example updated_at : string ; format example statuses_url : string ; format example repository_url : string ; example transient_environment ? : boolean ; example production_environment ? : boolean ; performed_via_github_app ? : Integration | null ; } /**
 * The status of a deployment.
 */ export interface DeploymentStatus { format example url : string ; example id : number ; example node_id : string ; example state : "error" | "failure" | "inactive" | "pending" | "success" | "queued" | "in_progress" ; creator : SimpleUser | null ; example description : string ; example environment ? : string ; format example target_url : string ; format example created_at : string ; format example updated_at : string ; format example deployment_url : string ; format example repository_url : string ; format example environment_url ? : string ; format example log_url ? : string ; performed_via_github_app ? : Integration | null ; } /**
 * Short Blob
 */ export interface ShortBlob { url : string ; sha : string ; } /**
 * Blob
 */ export interface Blob { content : string ; encoding : string ; format url : string ; sha : string ; size : number | null ; node_id : string ; highlighted_content ? : string ; } /**
 * Low-level Git commit operations within a repository
 */ export interface GitCommit { example sha : string ; node_id : string ; format url : string ; /** Identifying information for the git-user */ author : { date : string ; email : string ; name : string ; } ; /** Identifying information for the git-user */ committer : { date : string ; email : string ; name : string ; } ; example message : string ; tree : { sha : string ; url : string ; } ; parents : { sha : string ; url : string ; html_url : string ; } [ ] ; verification : { verified : boolean ; reason : string ; signature : string | null ; payload : string | null ; } ; format html_url : string ; } /**
 * Git references within a repository
 */ export interface GitRef { ref : string ; node_id : string ; format url : string ; object : { type : string ; sha : string ; url : string ; } ; } /**
 * Metadata for a Git tag
 */ export interface GitTag { example node_id : string ; example tag : string ; example sha : string ; format example url : string ; example message : string ; tagger : { date : string ; email : string ; name : string ; } ; object : { sha : string ; type : string ; url : string ; } ; verification ? : Verification ; } /**
 * The hierarchy between files in a Git repository.
 */ export interface GitTree { sha : string ; format url : string ; truncated : boolean ; example tree : { path ? : string ; mode ? : string ; type ? : string ; sha ? : string ; size ? : number ; url ? : string ; } [ ] ; } export interface HookResponse { code : number | null ; status : string | null ; message : string | null ; } /**
 * Webhooks for repositories.
 */ export interface Hook { type : string ; example id : number ; example name : string ; example active : boolean ; example events : string [ ] ; config : { email ? : string ; password ? : string ; room ? : string ; subdomain ? : string ; url ? : WebhookConfigUrl ; insecure_ssl ? : WebhookConfigInsecureSsl ; content_type ? : WebhookConfigContentType ; digest ? : string ; secret ? : WebhookConfigSecret ; token ? : string ; } ; format example updated_at : string ; format example created_at : string ; format example url : string ; format example test_url : string ; format example ping_url : string ; last_response : HookResponse ; } /**
 * A repository import from an external source.
 */ export interface Import { vcs : string | null ; use_lfs ? : string ; /** The URL of the originating repository. */ vcs_url : string ; svc_root ? : string ; tfvc_project ? : string ; status : "auth" | "error" | "none" | "detecting" | "choose" | "auth_failed" | "importing" | "mapping" | "waiting_to_push" | "pushing" | "complete" | "setup" | "unknown" | "detection_found_multiple" | "detection_found_nothing" | "detection_needs_auth" ; status_text ? : string | null ; failed_step ? : string | null ; error_message ? : string | null ; import_percent ? : number | null ; commit_count ? : number | null ; push_percent ? : number | null ; has_large_files ? : boolean ; large_files_size ? : number ; large_files_count ? : number ; project_choices ? : { vcs ? : string ; tfvc_project ? : string ; human_name ? : string ; } [ ] ; message ? : string ; authors_count ? : number | null ; format url : string ; format html_url : string ; format authors_url : string ; format repository_url : string ; svn_root ? : string ; } /**
 * Porter Author
 */ export interface PorterAuthor { id : number ; remote_id : string ; remote_name : string ; email : string ; name : string ; format url : string ; format import_url : string ; } /**
 * Porter Large File
 */ export interface PorterLargeFile { ref_name : string ; path : string ; oid : string ; size : number ; } /**
 * Issue Event Label
 */ export interface IssueEventLabel { name : string | null ; color : string | null ; } export interface IssueEventDismissedReview { state : string ; review_id : number ; dismissal_message : string | null ; dismissal_commit_id ? : string | null ; } /**
 * Issue Event Milestone
 */ export interface IssueEventMilestone { title : string ; } /**
 * Issue Event Project Card
 */ export interface IssueEventProjectCard { format url : string ; id : number ; format project_url : string ; project_id : number ; column_name : string ; previous_column_name ? : string ; } /**
 * Issue Event Rename
 */ export interface IssueEventRename { from : string ; to : string ; } /**
 * Issue Event
 */ export interface IssueEvent { example id : number ; example node_id : string ; format example url : string ; actor : SimpleUser | null ; example event : string ; example commit_id : string | null ; example commit_url : string | null ; format example created_at : string ; /** Issue Simple */ issue ? : IssueSimple ; /** Issue Event Label */ label ? : IssueEventLabel ; assignee ? : SimpleUser | null ; assigner ? : SimpleUser | null ; review_requester ? : SimpleUser | null ; requested_reviewer ? : SimpleUser | null ; /** Groups of organization members that gives permissions on specified repositories. */ requested_team ? : Team ; dismissed_review ? : IssueEventDismissedReview ; /** Issue Event Milestone */ milestone ? : IssueEventMilestone ; /** Issue Event Project Card */ project_card ? : IssueEventProjectCard ; /** Issue Event Rename */ rename ? : IssueEventRename ; /** How the author is associated with the repository. */ author_association ? : AuthorAssociation ; lock_reason ? : string | null ; } /**
 * Issue Event for Issue
 */ export interface IssueEventForIssue { id ? : number ; node_id ? : string ; url ? : string ; /** Simple User */ actor ? : SimpleUser ; event ? : string ; commit_id ? : string | null ; commit_url ? : string | null ; created_at ? : string ; example sha ? : string ; example html_url ? : string ; example message ? : string ; example issue_url ? : string ; example updated_at ? : string ; /** How the author is associated with the repository. */ author_association ? : AuthorAssociation ; example body ? : string ; example lock_reason ? : string ; example submitted_at ? : string ; example state ? : string ; example pull_request_url ? : string ; example body_html ? : string ; example body_text ? : string ; } /**
 * An SSH key granting access to a single repository.
 */ export interface DeployKey { id : number ; key : string ; url : string ; title : string ; verified : boolean ; created_at : string ; read_only : boolean ; } /**
 * Language
 */ export type Language = Record < string , number > ; /**
 * License Content
 */ export interface LicenseContent { name : string ; path : string ; sha : string ; size : number ; format url : string ; format html_url : string | null ; format git_url : string | null ; format download_url : string | null ; type : string ; content : string ; encoding : string ; _links : { git : string | null ; html : string | null ; self : string ; } ; license : LicenseSimple | null ; } export interface PagesSourceHash { branch : string ; path : string ; } /**
 * The configuration for GitHub Pages for a repository.
 */ export interface Page { format example url : string ; example status : "built" | "building" | "errored" | null ; example cname : string | null ; example custom_404 : boolean ; format example html_url ? : string ; source ? : PagesSourceHash ; example public : boolean ; } /**
 * Page Build
 */ export interface PageBuild { format url : string ; status : string ; error : { message : string | null ; } ; pusher : SimpleUser | null ; commit : string ; duration : number ; format created_at : string ; format updated_at : string ; } /**
 * Page Build Status
 */ export interface PageBuildStatus { format example url : string ; example status : string ; } /**
 * Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.
 */ export interface PullRequest { format example url : string ; example id : number ; example node_id : string ; format example html_url : string ; format example diff_url : string ; format example patch_url : string ; format example issue_url : string ; format example commits_url : string ; format example review_comments_url : string ; example review_comment_url : string ; format example comments_url : string ; format example statuses_url : string ; example number : number ; example state : "open" | "closed" ; example locked : boolean ; example title : string ; user : SimpleUser | null ; example body : string | null ; labels : { id ? : number ; node_id ? : string ; url ? : string ; name ? : string ; description ? : string | null ; color ? : string ; default ? : boolean ; } [ ] ; milestone : Milestone | null ; example active_lock_reason ? : string | null ; format example created_at : string ; format example updated_at : string ; format example closed_at : string | null ; format example merged_at : string | null ; example merge_commit_sha : string | null ; assignee : SimpleUser | null ; assignees ? : SimpleUser [ ] | null ; requested_reviewers ? : SimpleUser [ ] | null ; requested_teams ? : TeamSimple [ ] | null ; head : { label : string ; ref : string ; repo : { archive_url : string ; assignees_url : string ; blobs_url : string ; branches_url : string ; collaborators_url : string ; comments_url : string ; commits_url : string ; compare_url : string ; contents_url : string ; contributors_url : string ; deployments_url : string ; description : string | null ; 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 ; node_id : string ; issue_comment_url : string ; issue_events_url : string ; issues_url : string ; keys_url : string ; labels_url : string ; languages_url : string ; merges_url : string ; milestones_url : string ; name : string ; notifications_url : string ; owner : { avatar_url : string ; events_url : string ; followers_url : string ; following_url : string ; gists_url : string ; gravatar_id : string | null ; html_url : string ; id : number ; node_id : string ; login : string ; organizations_url : string ; received_events_url : string ; repos_url : string ; site_admin : boolean ; starred_url : string ; subscriptions_url : string ; type : string ; url : string ; } ; private : boolean ; pulls_url : string ; releases_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 ; clone_url : string ; default_branch : string ; forks : number ; forks_count : number ; git_url : string ; has_downloads : boolean ; has_issues : boolean ; has_projects : boolean ; has_wiki : boolean ; has_pages : boolean ; homepage : string | null ; language : string | null ; master_branch ? : string ; archived : boolean ; disabled : boolean ; mirror_url : string | null ; open_issues : number ; open_issues_count : number ; permissions ? : { admin : boolean ; pull : boolean ; push : boolean ; } ; temp_clone_token ? : string ; allow_merge_commit ? : boolean ; allow_squash_merge ? : boolean ; allow_rebase_merge ? : boolean ; license : { key : string ; name : string ; url : string | null ; spdx_id : string | null ; node_id : string ; } ; pushed_at : string ; size : number ; ssh_url : string ; stargazers_count : number ; svn_url : string ; topics ? : string [ ] ; watchers : number ; watchers_count : number ; created_at : string ; updated_at : string ; } ; sha : string ; user : { avatar_url : string ; events_url : string ; followers_url : string ; following_url : string ; gists_url : string ; gravatar_id : string | null ; html_url : string ; id : number ; node_id : string ; login : string ; organizations_url : string ; received_events_url : string ; repos_url : string ; site_admin : boolean ; starred_url : string ; subscriptions_url : string ; type : string ; url : string ; } ; } ; base : { label : string ; ref : string ; repo : { archive_url : string ; assignees_url : string ; blobs_url : string ; branches_url : string ; collaborators_url : string ; comments_url : string ; commits_url : string ; compare_url : string ; contents_url : string ; contributors_url : string ; deployments_url : string ; description : string | null ; 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 ; node_id : string ; issue_comment_url : string ; issue_events_url : string ; issues_url : string ; keys_url : string ; labels_url : string ; languages_url : string ; merges_url : string ; milestones_url : string ; name : string ; notifications_url : string ; owner : { avatar_url : string ; events_url : string ; followers_url : string ; following_url : string ; gists_url : string ; gravatar_id : string | null ; html_url : string ; id : number ; node_id : string ; login : string ; organizations_url : string ; received_events_url : string ; repos_url : string ; site_admin : boolean ; starred_url : string ; subscriptions_url : string ; type : string ; url : string ; } ; private : boolean ; pulls_url : string ; releases_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 ; clone_url : string ; default_branch : string ; forks : number ; forks_count : number ; git_url : string ; has_downloads : boolean ; has_issues : boolean ; has_projects : boolean ; has_wiki : boolean ; has_pages : boolean ; homepage : string | null ; language : string | null ; master_branch ? : string ; archived : boolean ; disabled : boolean ; mirror_url : string | null ; open_issues : number ; open_issues_count : number ; permissions ? : { admin : boolean ; pull : boolean ; push : boolean ; } ; temp_clone_token ? : string ; allow_merge_commit ? : boolean ; allow_squash_merge ? : boolean ; allow_rebase_merge ? : boolean ; license : LicenseSimple | null ; pushed_at : string ; size : number ; ssh_url : string ; stargazers_count : number ; svn_url : string ; topics ? : string [ ] ; watchers : number ; watchers_count : number ; created_at : string ; updated_at : string ; } ; sha : string ; user : { avatar_url : string ; events_url : string ; followers_url : string ; following_url : string ; gists_url : string ; gravatar_id : string | null ; html_url : string ; id : number ; node_id : string ; login : string ; organizations_url : string ; received_events_url : string ; repos_url : string ; site_admin : boolean ; starred_url : string ; subscriptions_url : string ; type : string ; url : string ; } ; } ; _links : { comments : Link ; commits : Link ; statuses : Link ; html : Link ; issue : Link ; review_comments : Link ; review_comment : Link ; self : Link ; } ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; /** The status of auto merging a pull request. */ auto_merge : AutoMerge ; example draft ? : boolean ; merged : boolean ; example mergeable : boolean | null ; example rebaseable ? : boolean | null ; example mergeable_state : string ; merged_by : SimpleUser | null ; example comments : number ; example review_comments : number ; example maintainer_can_modify : boolean ; example commits : number ; example additions : number ; example deletions : number ; example changed_files : number ; } /**
 * Pull Request Review Comments are comments on a portion of the Pull Request's diff.
 */ export interface PullRequestReviewComment { example url : string ; example pull_request_review_id : number | null ; example id : number ; example node_id : string ; example diff_hunk : string ; example path : string ; example position : number ; example original_position : number ; example commit_id : string ; example original_commit_id : string ; example in_reply_to_id ? : number ; /** Simple User */ user : SimpleUser ; example body : string ; format example created_at : string ; format example updated_at : string ; format example html_url : string ; format example pull_request_url : string ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; _links : { self : { href : string ; } ; html : { href : string ; } ; pull_request : { href : string ; } ; } ; example start_line ? : number | null ; example original_start_line ? : number | null ; /** The side of the first line of the range for a multi-line comment. */ start_side ? : "LEFT" | "RIGHT" | null ; example line ? : number ; example original_line ? : number ; /** The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment */ side ? : "LEFT" | "RIGHT" ; reactions ? : ReactionRollup ; example body_html ? : string ; example body_text ? : string ; } /**
 * Pull Request Merge Result
 */ export interface PullRequestMergeResult { sha : string ; merged : boolean ; message : string ; } /**
 * Pull Request Review Request
 */ export interface PullRequestReviewRequest { users : SimpleUser [ ] ; teams : TeamSimple [ ] ; } /**
 * Pull Request Reviews are reviews on pull requests.
 */ export interface PullRequestReview { example id : number ; example node_id : string ; user : SimpleUser | null ; example body : string ; example state : string ; format example html_url : string ; format example pull_request_url : string ; _links : { html : { href : string ; } ; pull_request : { href : string ; } ; } ; format submitted_at ? : string ; example commit_id : string ; body_html ? : string ; body_text ? : string ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; } /**
 * Legacy Review Comment
 */ export interface ReviewComment { format example url : string ; example pull_request_review_id : number | null ; example id : number ; example node_id : string ; example diff_hunk : string ; example path : string ; example position : number | null ; example original_position : number ; example commit_id : string ; example original_commit_id : string ; example in_reply_to_id ? : number ; user : SimpleUser | null ; example body : string ; format example created_at : string ; format example updated_at : string ; format example html_url : string ; format example pull_request_url : string ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; _links : { self : Link ; html : Link ; pull_request : Link ; } ; body_text ? : string ; body_html ? : string ; /** The side of the first line of the range for a multi-line comment. */ side ? : "LEFT" | "RIGHT" ; /** The side of the first line of the range for a multi-line comment. */ start_side ? : "LEFT" | "RIGHT" | null ; example line ? : number ; example original_line ? : number ; example start_line ? : number | null ; example original_start_line ? : number | null ; } /**
 * Data related to a release.
 */ export interface ReleaseAsset { format url : string ; format browser_download_url : string ; id : number ; node_id : string ; example name : string ; label : string | null ; /** State of the release asset. */ state : "uploaded" | "open" ; content_type : string ; size : number ; download_count : number ; format created_at : string ; format updated_at : string ; uploader : SimpleUser | null ; } /**
 * A release.
 */ export interface Release { format url : string ; format html_url : string ; format assets_url : string ; upload_url : string ; format tarball_url : string | null ; format zipball_url : string | null ; id : number ; node_id : string ; example tag_name : string ; example target_commitish : string ; name : string | null ; body ? : string | null ; example draft : boolean ; example prerelease : boolean ; format created_at : string ; format published_at : string | null ; /** Simple User */ author : SimpleUser ; assets : ReleaseAsset [ ] ; body_html ? : string ; body_text ? : string ; } /**
 * Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.
 */ export enum SecretScanningAlertState { Open = "open" , Resolved = "resolved" } /**
 * **Required when the `state` is `resolved`.** The reason for resolving the alert. Can be one of `false_positive`, `wont_fix`, `revoked`, or `used_in_tests`.
 */ export type SecretScanningAlertResolution = "false_positive" | "wont_fix" | "revoked" | "used_in_tests" | null ; export interface SecretScanningAlert { /** The security alert number. */ number ? : AlertNumber ; /** The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. */ created_at ? : AlertCreatedAt ; /** The REST API URL of the alert resource. */ url ? : AlertUrl ; /** The GitHub URL of the alert resource. */ html_url ? : AlertHtmlUrl ; /** Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`. */ state ? : SecretScanningAlertState ; /** **Required when the `state` is `resolved`.** The reason for resolving the alert. Can be one of `false_positive`, `wont_fix`, `revoked`, or `used_in_tests`. */ resolution ? : SecretScanningAlertResolution ; format resolved_at ? : string | null ; /** Simple User */ resolved_by ? : SimpleUser ; /** The type of secret that secret scanning detected. */ secret_type ? : string ; /** The secret that was detected. */ secret ? : string ; } /**
 * Stargazer
 */ export interface Stargazer { format starred_at : string ; user : SimpleUser | null ; } /**
 * Code Frequency Stat
 */ export type CodeFrequencyStat = number [ ] ; /**
 * Commit Activity
 */ export interface CommitActivity { example days : number [ ] ; example total : number ; example week : number ; } /**
 * Contributor Activity
 */ export interface ContributorActivity { author : SimpleUser | null ; example total : number ; example weeks : { w ? : string ; a ? : number ; d ? : number ; c ? : number ; } [ ] ; } export interface ParticipationStats { all : number [ ] ; owner : number [ ] ; } /**
 * Repository invitations let you manage who you collaborate with.
 */ export interface RepositorySubscription { example subscribed : boolean ; /** Determines if all notifications should be blocked from this repository. */ ignored : boolean ; reason : string | null ; format example created_at : string ; format example url : string ; format example repository_url : string ; } /**
 * Tag
 */ export interface Tag { example name : string ; commit : { sha : string ; url : string ; } ; format example zipball_url : string ; format example tarball_url : string ; node_id : string ; } /**
 * A topic aggregates entities that are related to a subject.
 */ export interface Topic { names : string [ ] ; } export interface Traffic { format timestamp : string ; uniques : number ; count : number ; } /**
 * Clone Traffic
 */ export interface CloneTraffic { example count : number ; example uniques : number ; clones : Traffic [ ] ; } /**
 * Content Traffic
 */ export interface ContentTraffic { example path : string ; example title : string ; example count : number ; example uniques : number ; } /**
 * Referrer Traffic
 */ export interface ReferrerTraffic { example referrer : string ; example count : number ; example uniques : number ; } /**
 * View Traffic
 */ export interface ViewTraffic { example count : number ; example uniques : number ; views : Traffic [ ] ; } export interface ScimGroupListEnterprise { schemas : string [ ] ; totalResults : number ; itemsPerPage : number ; startIndex : number ; Resources : { schemas : string [ ] ; id : string ; externalId ? : string | null ; displayName ? : string ; members ? : { value ? : string ; $ref ? : string ; display ? : string ; } [ ] ; meta ? : { resourceType ? : string ; created ? : string ; lastModified ? : string ; location ? : string ; } ; } [ ] ; } export interface ScimEnterpriseGroup { schemas : string [ ] ; id : string ; externalId ? : string | null ; displayName ? : string ; members ? : { value ? : string ; $ref ? : string ; display ? : string ; } [ ] ; meta ? : { resourceType ? : string ; created ? : string ; lastModified ? : string ; location ? : string ; } ; } export interface ScimUserListEnterprise { schemas : string [ ] ; totalResults : number ; itemsPerPage : number ; startIndex : number ; Resources : { schemas : string [ ] ; id : string ; externalId ? : string ; userName ? : string ; name ? : { givenName ? : string ; familyName ? : string ; } ; emails ? : { value ? : string ; primary ? : boolean ; type ? : string ; } [ ] ; groups ? : { value ? : string ; } [ ] ; active ? : boolean ; meta ? : { resourceType ? : string ; created ? : string ; lastModified ? : string ; location ? : string ; } ; } [ ] ; } export interface ScimEnterpriseUser { schemas : string [ ] ; id : string ; externalId ? : string ; userName ? : string ; name ? : { givenName ? : string ; familyName ? : string ; } ; emails ? : { value ? : string ; type ? : string ; primary ? : boolean ; } [ ] ; groups ? : { value ? : string ; } [ ] ; active ? : boolean ; meta ? : { resourceType ? : string ; created ? : string ; lastModified ? : string ; location ? : string ; } ; } /**
 * SCIM /Users provisioning endpoints
 */ export interface ScimUser { /** SCIM schema used. */ schemas : string [ ] ; example id : string ; example externalId : string | null ; example userName : string | null ; example displayName ? : string | null ; example name : { givenName : string | null ; familyName : string | null ; formatted ? : string | null ; } ; example emails : { value : string ; primary ? : boolean ; } [ ] ; example active : boolean ; meta : { resourceType ? : string ; created ? : string ; lastModified ? : string ; location ? : string ; } ; /** The ID of the organization. */ organization_id ? : number ; example operations ? : { op : "add" | "remove" | "replace" ; path ? : string ; value ? : string | object | any [ ] ; } [ ] ; /** associated groups */ groups ? : { value ? : string ; display ? : string ; } [ ] ; } /**
 * SCIM User List
 */ export interface ScimUserList { /** SCIM schema used. */ schemas : string [ ] ; example totalResults : number ; example itemsPerPage : number ; example startIndex : number ; Resources : ScimUser [ ] ; } export type SearchResultTextMatches = { object_url ? : string ; object_type ? : string | null ; property ? : string ; fragment ? : string ; matches ? : { text ? : string ; indices ? : number [ ] ; } [ ] ; } [ ] ; /**
 * Code Search Result Item
 */ export interface CodeSearchResultItem { name : string ; path : string ; sha : string ; format url : string ; format git_url : string ; format html_url : string ; /** Minimal Repository */ repository : MinimalRepository ; score : number ; file_size ? : number ; language ? : string | null ; format last_modified_at ? : string ; example line_numbers ? : string [ ] ; text_matches ? : SearchResultTextMatches ; } /**
 * Commit Search Result Item
 */ export interface CommitSearchResultItem { format url : string ; sha : string ; format html_url : string ; format comments_url : string ; commit : { author : { name : string ; email : string ; date : string ; } ; committer : GitUser | null ; comment_count : number ; message : string ; tree : { sha : string ; url : string ; } ; url : string ; verification ? : Verification ; } ; author : SimpleUser | null ; committer : GitUser | null ; parents : { url ? : string ; html_url ? : string ; sha ? : string ; } [ ] ; /** Minimal Repository */ repository : MinimalRepository ; score : number ; node_id : string ; text_matches ? : SearchResultTextMatches ; } /**
 * Issue Search Result Item
 */ export interface IssueSearchResultItem { format url : string ; format repository_url : string ; labels_url : string ; format comments_url : string ; format events_url : string ; format html_url : string ; id : number ; node_id : string ; number : number ; title : string ; locked : boolean ; active_lock_reason ? : string | null ; assignees ? : SimpleUser [ ] | null ; user : SimpleUser | null ; labels : { id ? : number ; node_id ? : string ; url ? : string ; name ? : string ; color ? : string ; default ? : boolean ; description ? : string | null ; } [ ] ; state : string ; assignee : SimpleUser | null ; milestone : Milestone | null ; comments : number ; format created_at : string ; format updated_at : string ; format closed_at : string | null ; text_matches ? : SearchResultTextMatches ; pull_request ? : { merged_at ? : string | null ; diff_url : string | null ; html_url : string | null ; patch_url : string | null ; url : string | null ; } ; body ? : string ; score : number ; /** How the author is associated with the repository. */ author_association : AuthorAssociation ; draft ? : boolean ; /** A git repository */ repository ? : Repository ; body_html ? : string ; body_text ? : string ; format timeline_url ? : string ; performed_via_github_app ? : Integration | null ; } /**
 * Label Search Result Item
 */ export interface LabelSearchResultItem { id : number ; node_id : string ; format url : string ; name : string ; color : string ; default : boolean ; description : string | null ; score : number ; text_matches ? : SearchResultTextMatches ; } /**
 * Repo Search Result Item
 */ export interface RepoSearchResultItem { id : number ; node_id : string ; name : string ; full_name : string ; owner : SimpleUser | null ; private : boolean ; format html_url : string ; description : string | null ; fork : boolean ; format url : string ; format created_at : string ; format updated_at : string ; format pushed_at : string ; format homepage : string | null ; size : number ; stargazers_count : number ; watchers_count : number ; language : string | null ; forks_count : number ; open_issues_count : number ; master_branch ? : string ; default_branch : string ; score : number ; format forks_url : string ; keys_url : string ; collaborators_url : string ; format teams_url : string ; format hooks_url : string ; issue_events_url : string ; format events_url : string ; assignees_url : string ; branches_url : string ; format tags_url : string ; blobs_url : string ; git_tags_url : string ; git_refs_url : string ; trees_url : string ; statuses_url : string ; format languages_url : string ; format stargazers_url : string ; format contributors_url : string ; format subscribers_url : string ; format subscription_url : string ; commits_url : string ; git_commits_url : string ; comments_url : string ; issue_comment_url : string ; contents_url : string ; compare_url : string ; format merges_url : string ; archive_url : string ; format downloads_url : string ; issues_url : string ; pulls_url : string ; milestones_url : string ; notifications_url : string ; labels_url : string ; releases_url : string ; format deployments_url : string ; git_url : string ; ssh_url : string ; clone_url : string ; format svn_url : string ; forks : number ; open_issues : number ; watchers : number ; topics ? : string [ ] ; format mirror_url : string | null ; has_issues : boolean ; has_projects : boolean ; has_pages : boolean ; has_wiki : boolean ; has_downloads : boolean ; archived : boolean ; /** Returns whether or not this repository disabled. */ disabled : boolean ; license : LicenseSimple | null ; permissions ? : { admin : boolean ; pull : boolean ; push : boolean ; } ; text_matches ? : SearchResultTextMatches ; temp_clone_token ? : string ; allow_merge_commit ? : boolean ; allow_squash_merge ? : boolean ; allow_rebase_merge ? : boolean ; delete_branch_on_merge ? : boolean ; } /**
 * Topic Search Result Item
 */ export interface TopicSearchResultItem { name : string ; display_name : string | null ; short_description : string | null ; description : string | null ; created_by : string | null ; released : string | null ; format created_at : string ; format updated_at : string ; featured : boolean ; curated : boolean ; score : number ; repository_count ? : number | null ; format logo_url ? : string | null ; text_matches ? : SearchResultTextMatches ; related ? : { topic_relation ? : { id ? : number ; name ? : string ; topic_id ? : number ; relation_type ? : string ; } ; } [ ] | null ; aliases ? : { topic_relation ? : { id ? : number ; name ? : string ; topic_id ? : number ; relation_type ? : string ; } ; } [ ] | null ; } /**
 * User Search Result Item
 */ export interface UserSearchResultItem { login : string ; id : number ; node_id : string ; format avatar_url : string ; gravatar_id : string | null ; format url : string ; format html_url : string ; format followers_url : string ; format subscriptions_url : string ; format organizations_url : string ; format repos_url : string ; format received_events_url : string ; type : string ; score : number ; following_url : string ; gists_url : string ; starred_url : string ; events_url : string ; public_repos ? : number ; public_gists ? : number ; followers ? : number ; following ? : number ; format created_at ? : string ; format updated_at ? : string ; name ? : string | null ; bio ? : string | null ; format email ? : string | null ; location ? : string | null ; site_admin : boolean ; hireable ? : boolean | null ; text_matches ? : SearchResultTextMatches ; blog ? : string | null ; company ? : string | null ; format suspended_at ? : string | null ; } /**
 * Private User
 */ export interface PrivateUser { example login : string ; example id : number ; example node_id : string ; format example avatar_url : string ; example gravatar_id : string | null ; format example url : string ; format example html_url : string ; format example followers_url : string ; example following_url : string ; example gists_url : string ; example starred_url : string ; format example subscriptions_url : string ; format example organizations_url : string ; format example repos_url : string ; example events_url : string ; format example received_events_url : string ; example type : string ; site_admin : boolean ; example name : string | null ; example company : string | null ; example blog : string | null ; example location : string | null ; format example email : string | null ; hireable : boolean | null ; example bio : string | null ; example twitter_username ? : string | null ; example public_repos : number ; example public_gists : number ; example followers : number ; example following : number ; format example created_at : string ; format example updated_at : string ; example private_gists : number ; example total_private_repos : number ; example owned_private_repos : number ; example disk_usage : number ; example collaborators : number ; example two_factor_authentication : boolean ; plan ? : { collaborators : number ; name : string ; space : number ; private_repos : number ; } ; format suspended_at ? : string | null ; business_plus ? : boolean ; ldap_dn ? : string ; } /**
 * Public User
 */ export interface PublicUser { login : string ; id : number ; node_id : string ; format avatar_url : string ; gravatar_id : string | null ; format url : string ; format html_url : string ; format followers_url : string ; following_url : string ; gists_url : string ; starred_url : string ; format subscriptions_url : string ; format organizations_url : string ; format repos_url : string ; events_url : string ; format received_events_url : string ; type : string ; site_admin : boolean ; name : string | null ; company : string | null ; blog : string | null ; location : string | null ; format email : string | null ; hireable : boolean | null ; bio : string | null ; twitter_username ? : string | null ; public_repos : number ; public_gists : number ; followers : number ; following : number ; format created_at : string ; format updated_at : string ; plan ? : { collaborators : number ; name : string ; space : number ; private_repos : number ; } ; format suspended_at ? : string | null ; example private_gists ? : number ; example total_private_repos ? : number ; example owned_private_repos ? : number ; example disk_usage ? : number ; example collaborators ? : number ; } /**
 * Email
 */ export interface Email { format example email : string ; example primary : boolean ; example verified : boolean ; example visibility : string | null ; } /**
 * A unique encryption key
 */ export interface GpgKey { example id : number ; primary_key_id : number | null ; example key_id : string ; example public_key : string ; example emails : { email ? : string ; verified ? : boolean ; } [ ] ; example subkeys : { id ? : number ; primary_key_id ? : number ; key_id ? : string ; public_key ? : string ; emails ? : any [ ] ; subkeys ? : any [ ] ; can_sign ? : boolean ; can_encrypt_comms ? : boolean ; can_encrypt_storage ? : boolean ; can_certify ? : boolean ; created_at ? : string ; expires_at ? : string | null ; raw_key ? : string | null ; } [ ] ; example can_sign : boolean ; can_encrypt_comms : boolean ; can_encrypt_storage : boolean ; example can_certify : boolean ; format example created_at : string ; format expires_at : string | null ; raw_key : string | null ; } /**
 * Key
 */ export interface Key { key_id : string ; key : string ; id : number ; url : string ; title : string ; format created_at : string ; verified : boolean ; read_only : boolean ; } export interface MarketplaceAccount { format url : string ; id : number ; type : string ; node_id ? : string ; login : string ; format email ? : string | null ; format organization_billing_email ? : string | null ; } /**
 * User Marketplace Purchase
 */ export interface UserMarketplacePurchase { example billing_cycle : string ; format example next_billing_date : string | null ; unit_count : number | null ; example on_free_trial : boolean ; format example free_trial_ends_on : string | null ; format example updated_at : string | null ; account : MarketplaceAccount ; /** Marketplace Listing Plan */ plan : MarketplaceListingPlan ; } /**
 * Starred Repository
 */ export interface StarredRepository { format starred_at : string ; /** A git repository */ repo : Repository ; } /**
 * Hovercard
 */ export interface Hovercard { contexts : { message : string ; octicon : string ; } [ ] ; } /**
 * Key Simple
 */ export interface KeySimple { id : number ; key : string ; } export type QueryParamsType = Record < string | number , any > ; export type ResponseFormat = keyof Omit < Body , "body" | "bodyUsed" > ; export interface FullRequestParams extends Omit < RequestInit , "body" > { /** set parameter to `true` for call `securityWorker` for this request */ secure ? : boolean ; /** request path */ path : string ; /** content type of request body */ type ? : ContentType ; /** query params */ query ? : QueryParamsType ; /** format of response (i.e. response.json() -> format: "json") */ format ? : ResponseFormat ; /** request body */ body ? : unknown ; /** base url */ baseUrl ? : string ; /** request cancellation token */ cancelToken ? : CancelToken ; } export type RequestParams = Omit < FullRequestParams , "body" | "method" | "query" | "path" > ; export interface ApiConfig < SecurityDataType = unknown > { baseUrl ? : string ; baseApiParams ? : Omit < RequestParams , "baseUrl" | "cancelToken" | "signal" > ; securityWorker ? : ( securityData : SecurityDataType | null ) => Promise < RequestParams | void > | RequestParams | void ; customFetch ? : typeof fetch ; } export interface HttpResponse < D extends unknown , E extends unknown = unknown > extends Response { data : D ; error : E ; } type CancelToken = Symbol | string | number ; export enum ContentType { Json = "application/json" , FormData = "multipart/form-data" , UrlEncoded = "application/x-www-form-urlencoded" } export class HttpClient < SecurityDataType = unknown > { public baseUrl : string = "https://api.github.com" ; private securityData : SecurityDataType | null = null ; private securityWorker ? : ApiConfig < SecurityDataType > [ "securityWorker" ] ; private abortControllers = new Map < CancelToken , AbortController > ( ) ; private customFetch = ( ... fetchParams ) => fetch ( ... fetchParams ) ; private baseApiParams : RequestParams = { credentials : "same-origin" , headers : { } , redirect : "follow" , referrerPolicy : "no-referrer" , } ; constructor ( apiConfig = { } ) { Object . assign ( this , apiConfig ) ; } public setSecurityData = ( data ) => { this . securityData = data ; } ; private encodeQueryParam ( key , value ) { const encodedKey = encodeURIComponent ( key ) ; return `${ encodedKey }=${ encodeURIComponent ( typeof value === "number" ? value : `${ value }` ) }` ; } private addQueryParam ( query , key ) { return this . encodeQueryParam ( key , query [ key ] ) ; } private addArrayQueryParam ( query , key ) { const value = query [ key ] ; return value . map ( ( v ) => this . encodeQueryParam ( key , v ) ) . join ( "&" ) ; } protected toQueryString ( rawQuery ? ) { const query = rawQuery || { } ; const keys = Object . keys ( query ) . filter ( ( key ) => "undefined" !== typeof query [ key ] ) ; return keys . map ( ( key ) => ( Array . isArray ( query [ key ] ) ? this . addArrayQueryParam ( query , key ) : this . addQueryParam ( query , key ) ) ) . join ( "&" ) ; } protected addQueryParams ( rawQuery ? ) { const queryString = this . toQueryString ( rawQuery ) ; return queryString ? `?${ queryString }` : "" ; } private contentFormatters : Record < ContentType , ( input : any ) => any > = { [ ContentType . Json ] : ( input ) => input !== null && ( typeof input === "object" || typeof input === "string" ) ? JSON . stringify ( input ) : input , [ ContentType . FormData ] : ( input ) => Object . keys ( input || { } ) . reduce ( ( formData , key ) => { const property = input [ key ] ; formData . append ( key , property instanceof Blob ? property : typeof property === "object" && property !== null ? JSON . stringify ( property ) : `${ property }` ) ; return formData ; } , new FormData ( ) ) , [ ContentType . UrlEncoded ] : ( input ) => this . toQueryString ( input ) , } ; private mergeRequestParams ( params1 , params2 ? ) { return { ... this . baseApiParams , ... params1 , ... ( params2 || { } ) , headers : { ... ( this . baseApiParams . headers || { } ) , ... ( params1 . headers || { } ) , ... ( ( params2 && params2 . headers ) || { } ) , } , } ; } private createAbortSignal = ( cancelToken ) : AbortSignal | undefined => { if ( this . abortControllers . has ( cancelToken ) ) { const abortController = this . abortControllers . get ( cancelToken ) ; if ( abortController ) { return abortController . signal ; } return void 0 ; } const abortController = new AbortController ( ) ; this . abortControllers . set ( cancelToken , abortController ) ; return abortController . signal ; } ; public abortRequest = ( cancelToken ) => { const abortController = this . abortControllers . get ( cancelToken ) ; if ( abortController ) { abortController . abort ( ) ; this . abortControllers . delete ( cancelToken ) ; } } ; public request = async < T = any , E = any > ( { body , secure , path , type , query , format , baseUrl , cancelToken , ... params } ) : Promise < HttpResponse < T , E > > => { const secureParams = ( ( typeof secure === "boolean" ? secure : this . baseApiParams . secure ) && this . securityWorker && ( await this . securityWorker ( this . securityData ) ) ) || { } ; const requestParams = this . mergeRequestParams ( params , secureParams ) ; const queryString = query && this . toQueryString ( query ) ; const payloadFormatter = this . contentFormatters [ type || ContentType . Json ] ; const responseFormat = format || requestParams . format ; return this . customFetch ( `${ baseUrl || this . baseUrl || "" }${ path }${ queryString ? `?${ queryString }` : "" }` , { ... requestParams , headers : { ... ( type && type !== ContentType . FormData ? { "Content-Type" : type } : { } ) , ... ( requestParams . headers || { } ) , } , signal : cancelToken ? this . createAbortSignal ( cancelToken ) : void 0 , body : typeof body === "undefined" || body === null ? null : payloadFormatter ( body ) , } ) . then ( async ( response ) => { const r = response as HttpResponse < T , E > ; r . data = ( null as unknown ) as T ; r . error = ( null as unknown ) as E ; const data = ! responseFormat ? r : await response [ responseFormat ] ( ) . then ( ( data ) => { if ( r . ok ) { r . data = data ; } else { r . error = data ; } return r ; } ) . catch ( ( e ) => { r . error = e ; return r ; } ) ; if ( cancelToken ) { this . abortControllers . delete ( cancelToken ) ; } if ( ! response . ok ) throw data ; return data ; } ) ; } ; } title version license termsOfService baseUrl externalDocs contact export class Api < SecurityDataType extends unknown > extends HttpClient < SecurityDataType > { description tags name summary request metaRoot = ( params = { } ) => this . request < { current_user_url : string ; current_user_authorizations_html_url : string ; authorizations_url : string ; code_search_url : string ; commit_search_url : string ; emails_url : string ; emojis_url : string ; events_url : string ; feeds_url : string ; followers_url : string ; following_url : string ; gists_url : string ; hub_url : string ; issue_search_url : string ; issues_url : string ; keys_url : string ; label_search_url : string ; notifications_url : string ; organization_url : string ; organization_repositories_url : string ; organization_teams_url : string ; public_gists_url : string ; rate_limit_url : string ; repository_url : string ; repository_search_url : string ; current_user_repositories_url : string ; starred_url : string ; starred_gists_url : string ; topic_search_url ? : string ; user_url : string ; user_organizations_url : string ; user_repositories_url : string ; user_search_url : string ; } , any > ( { path : `/` , method : "GET" , format : "json" , ... params , } ) ; app = { description tags name summary request appsGetAuthenticated : ( params = { } ) => this . request < Integration , any > ( { path : `/app` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request appsGetWebhookConfigForApp : ( params = { } ) => this . request < WebhookConfig , any > ( { path : `/app/hook/config` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request appsUpdateWebhookConfigForApp : ( data , params = { } ) => this . request < WebhookConfig , any > ( { path : `/app/hook/config` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request appsListInstallations : ( query ? , params = { } ) => this . request < Installation [ ] , any > ( { path : `/app/installations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsGetInstallation : ( installationId , params = { } ) => this . request < Installation , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/app/installations/${ installationId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request appsDeleteInstallation : ( installationId , params = { } ) => this . request < void , BasicError > ( { path : `/app/installations/${ installationId }` , method : "DELETE" , ... params , } ) , description tags name summary request appsCreateInstallationAccessToken : ( installationId , data , params = { } ) => this . request < InstallationToken , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/app/installations/${ installationId }/access_tokens` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request appsSuspendInstallation : ( installationId , params = { } ) => this . request < void , BasicError > ( { path : `/app/installations/${ installationId }/suspended` , method : "PUT" , ... params , } ) , description tags name summary request appsUnsuspendInstallation : ( installationId , params = { } ) => this . request < void , BasicError > ( { path : `/app/installations/${ installationId }/suspended` , method : "DELETE" , ... params , } ) , } ; appManifests = { description tags name summary request appsCreateFromManifest : ( code , params = { } ) => this . request < Integration & { client_id : string ; client_secret : string ; webhook_secret : string ; pem : string ; [ key ] : any ; } , BasicError | ValidationErrorSimple > ( { path : `/app-manifests/${ code }/conversions` , method : "POST" , format : "json" , ... params , } ) , } ; applications = { description tags name summary request deprecated oauthAuthorizationsListGrants : ( query ? , params = { } ) => this . request < ApplicationGrant [ ] , BasicError > ( { path : `/applications/grants` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsGetGrant : ( grantId , params = { } ) => this . request < ApplicationGrant , BasicError > ( { path : `/applications/grants/${ grantId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsDeleteGrant : ( grantId , params = { } ) => this . request < void , BasicError > ( { path : `/applications/grants/${ grantId }` , method : "DELETE" , ... params , } ) , description tags name summary request appsDeleteAuthorization : ( clientId , data , params = { } ) => this . request < void , ValidationError > ( { path : `/applications/${ clientId }/grant` , method : "DELETE" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request deprecated appsRevokeGrantForApplication : ( clientId , accessToken , params = { } ) => this . request < void , any > ( { path : `/applications/${ clientId }/grants/${ accessToken }` , method : "DELETE" , ... params , } ) , description tags name summary request appsCheckToken : ( clientId , data , params = { } ) => this . request < Authorization , BasicError | ValidationError > ( { path : `/applications/${ clientId }/token` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request appsResetToken : ( clientId , data , params = { } ) => this . request < Authorization , ValidationError > ( { path : `/applications/${ clientId }/token` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request appsDeleteToken : ( clientId , data , params = { } ) => this . request < void , ValidationError > ( { path : `/applications/${ clientId }/token` , method : "DELETE" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request appsScopeToken : ( clientId , data , params = { } ) => this . request < Authorization , BasicError | ValidationError > ( { path : `/applications/${ clientId }/token/scoped` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated appsCheckAuthorization : ( clientId , accessToken , params = { } ) => this . request < Authorization | null , BasicError > ( { path : `/applications/${ clientId }/tokens/${ accessToken }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated appsResetAuthorization : ( clientId , accessToken , params = { } ) => this . request < Authorization , any > ( { path : `/applications/${ clientId }/tokens/${ accessToken }` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request deprecated appsRevokeAuthorizationForApplication : ( clientId , accessToken , params = { } ) => this . request < void , any > ( { path : `/applications/${ clientId }/tokens/${ accessToken }` , method : "DELETE" , ... params , } ) , } ; apps = { description tags name summary request appsGetBySlug : ( appSlug , params = { } ) => this . request < Integration , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/apps/${ appSlug }` , method : "GET" , format : "json" , ... params , } ) , } ; authorizations = { description tags name summary request deprecated oauthAuthorizationsListAuthorizations : ( query ? , params = { } ) => this . request < Authorization [ ] , BasicError > ( { path : `/authorizations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsCreateAuthorization : ( data , params = { } ) => this . request < Authorization , BasicError | ValidationError > ( { path : `/authorizations` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsGetOrCreateAuthorizationForApp : ( clientId , data , params = { } ) => this . request < Authorization , BasicError | ValidationError > ( { path : `/authorizations/clients/${ clientId }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprint : ( clientId , fingerprint , data , params = { } ) => this . request < Authorization , ValidationError > ( { path : `/authorizations/clients/${ clientId }/${ fingerprint }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsGetAuthorization : ( authorizationId , params = { } ) => this . request < Authorization , BasicError > ( { path : `/authorizations/${ authorizationId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsUpdateAuthorization : ( authorizationId , data , params = { } ) => this . request < Authorization , ValidationError > ( { path : `/authorizations/${ authorizationId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated oauthAuthorizationsDeleteAuthorization : ( authorizationId , params = { } ) => this . request < void , BasicError > ( { path : `/authorizations/${ authorizationId }` , method : "DELETE" , ... params , } ) , } ; codesOfConduct = { tags name summary request codesOfConductGetAllCodesOfConduct : ( params = { } ) => this . request < CodeOfConduct [ ] , { message : string ; documentation_url : string ; } > ( { path : `/codes_of_conduct` , method : "GET" , format : "json" , ... params , } ) , tags name summary request codesOfConductGetConductCode : ( key , params = { } ) => this . request < CodeOfConduct , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/codes_of_conduct/${ key }` , method : "GET" , format : "json" , ... params , } ) , } ; contentReferences = { description tags name summary request appsCreateContentAttachment : ( contentReferenceId , data , params = { } ) => this . request < ContentReferenceAttachment , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/content_references/${ contentReferenceId }/attachments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , } ; emojis = { description tags name summary request emojisGet : ( params = { } ) => this . request < Record < string , string > , any > ( { path : `/emojis` , method : "GET" , format : "json" , ... params , } ) , } ; enterprises = { description tags name summary request enterpriseAdminGetGithubActionsPermissionsEnterprise : ( enterprise , params = { } ) => this . request < ActionsEnterprisePermissions , any > ( { path : `/enterprises/${ enterprise }/actions/permissions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminSetGithubActionsPermissionsEnterprise : ( enterprise , data , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/permissions` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request enterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterprise : ( enterprise , query ? , params = { } ) => this . request < { total_count : number ; organizations : OrganizationSimple [ ] ; } , any > ( { path : `/enterprises/${ enterprise }/actions/permissions/organizations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterprise : ( enterprise , data , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/permissions/organizations` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request enterpriseAdminEnableSelectedOrganizationGithubActionsEnterprise : ( enterprise , orgId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/permissions/organizations/${ orgId }` , method : "PUT" , ... params , } ) , description tags name summary request enterpriseAdminDisableSelectedOrganizationGithubActionsEnterprise : ( enterprise , orgId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/permissions/organizations/${ orgId }` , method : "DELETE" , ... params , } ) , description tags name summary request enterpriseAdminGetAllowedActionsEnterprise : ( enterprise , params = { } ) => this . request < SelectedActions , any > ( { path : `/enterprises/${ enterprise }/actions/permissions/selected-actions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminSetAllowedActionsEnterprise : ( enterprise , data , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/permissions/selected-actions` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request enterpriseAdminListSelfHostedRunnerGroupsForEnterprise : ( enterprise , query ? , params = { } ) => this . request < { total_count : number ; runner_groups : RunnerGroupsEnterprise [ ] ; } , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminCreateSelfHostedRunnerGroupForEnterprise : ( enterprise , data , params = { } ) => this . request < RunnerGroupsEnterprise , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminGetSelfHostedRunnerGroupForEnterprise : ( enterprise , runnerGroupId , params = { } ) => this . request < RunnerGroupsEnterprise , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise : ( enterprise , runnerGroupId , data , params = { } ) => this . request < RunnerGroupsEnterprise , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise : ( enterprise , runnerGroupId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }` , method : "DELETE" , ... params , } ) , description tags name summary request enterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterprise : ( enterprise , runnerGroupId , query ? , params = { } ) => this . request < { total_count : number ; organizations : OrganizationSimple [ ] ; } , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/organizations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterprise : ( enterprise , runnerGroupId , data , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/organizations` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request enterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterprise : ( enterprise , runnerGroupId , orgId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/organizations/${ orgId }` , method : "PUT" , ... params , } ) , description tags name summary request enterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterprise : ( enterprise , runnerGroupId , orgId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/organizations/${ orgId }` , method : "DELETE" , ... params , } ) , description tags name summary request enterpriseAdminListSelfHostedRunnersInGroupForEnterprise : ( enterprise , runnerGroupId , query ? , params = { } ) => this . request < { total_count : number ; runners : Runner [ ] ; } , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/runners` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminSetSelfHostedRunnersInGroupForEnterprise : ( enterprise , runnerGroupId , data , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/runners` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request enterpriseAdminAddSelfHostedRunnerToGroupForEnterprise : ( enterprise , runnerGroupId , runnerId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/runners/${ runnerId }` , method : "PUT" , ... params , } ) , description tags name summary request enterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise : ( enterprise , runnerGroupId , runnerId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runner-groups/${ runnerGroupId }/runners/${ runnerId }` , method : "DELETE" , ... params , } ) , description tags name summary request enterpriseAdminListSelfHostedRunnersForEnterprise : ( enterprise , query ? , params = { } ) => this . request < { total_count ? : number ; runners ? : Runner [ ] ; } , any > ( { path : `/enterprises/${ enterprise }/actions/runners` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminListRunnerApplicationsForEnterprise : ( enterprise , params = { } ) => this . request < RunnerApplication [ ] , any > ( { path : `/enterprises/${ enterprise }/actions/runners/downloads` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminCreateRegistrationTokenForEnterprise : ( enterprise , params = { } ) => this . request < AuthenticationToken , any > ( { path : `/enterprises/${ enterprise }/actions/runners/registration-token` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminCreateRemoveTokenForEnterprise : ( enterprise , params = { } ) => this . request < AuthenticationToken , any > ( { path : `/enterprises/${ enterprise }/actions/runners/remove-token` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminGetSelfHostedRunnerForEnterprise : ( enterprise , runnerId , params = { } ) => this . request < Runner , any > ( { path : `/enterprises/${ enterprise }/actions/runners/${ runnerId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminDeleteSelfHostedRunnerFromEnterprise : ( enterprise , runnerId , params = { } ) => this . request < void , any > ( { path : `/enterprises/${ enterprise }/actions/runners/${ runnerId }` , method : "DELETE" , ... params , } ) , description tags name summary request auditLogGetAuditLog : ( enterprise , query ? , params = { } ) => this . request < AuditLogEvent [ ] , any > ( { path : `/enterprises/${ enterprise }/audit-log` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request billingGetGithubActionsBillingGhe : ( enterprise , params = { } ) => this . request < ActionsBillingUsage , any > ( { path : `/enterprises/${ enterprise }/settings/billing/actions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request billingGetGithubPackagesBillingGhe : ( enterprise , params = { } ) => this . request < PackagesBillingUsage , any > ( { path : `/enterprises/${ enterprise }/settings/billing/packages` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request billingGetSharedStorageBillingGhe : ( enterprise , params = { } ) => this . request < CombinedBillingUsage , any > ( { path : `/enterprises/${ enterprise }/settings/billing/shared-storage` , method : "GET" , format : "json" , ... params , } ) , } ; events = { description tags name summary request activityListPublicEvents : ( query ? , params = { } ) => this . request < Event [ ] , BasicError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/events` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; feeds = { description tags name summary request activityGetFeeds : ( params = { } ) => this . request < Feed , any > ( { path : `/feeds` , method : "GET" , format : "json" , ... params , } ) , } ; gists = { description tags name summary request gistsList : ( query ? , params = { } ) => this . request < BaseGist [ ] , BasicError > ( { path : `/gists` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request gistsCreate : ( data , params = { } ) => this . request < GistSimple , BasicError | ValidationError > ( { path : `/gists` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request gistsListPublic : ( query ? , params = { } ) => this . request < BaseGist [ ] , BasicError | ValidationError > ( { path : `/gists/public` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request gistsListStarred : ( query ? , params = { } ) => this . request < BaseGist [ ] , BasicError > ( { path : `/gists/starred` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request gistsGet : ( gistId , params = { } ) => this . request < GistSimple , { block ? : { reason ? : string ; created_at ? : string ; html_url ? : string | null ; } ; message ? : string ; documentation_url ? : string ; } | BasicError > ( { path : `/gists/${ gistId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request gistsUpdate : ( gistId , data , params = { } ) => this . request < GistSimple , BasicError | ValidationError > ( { path : `/gists/${ gistId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request gistsDelete : ( gistId , params = { } ) => this . request < void , BasicError > ( { path : `/gists/${ gistId }` , method : "DELETE" , ... params , } ) , tags name summary request gistsListComments : ( gistId , query ? , params = { } ) => this . request < GistComment [ ] , BasicError > ( { path : `/gists/${ gistId }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request gistsCreateComment : ( gistId , data , params = { } ) => this . request < GistComment , BasicError > ( { path : `/gists/${ gistId }/comments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request gistsGetComment : ( gistId , commentId , params = { } ) => this . request < GistComment , { block ? : { reason ? : string ; created_at ? : string ; html_url ? : string | null ; } ; message ? : string ; documentation_url ? : string ; } | BasicError > ( { path : `/gists/${ gistId }/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request gistsUpdateComment : ( gistId , commentId , data , params = { } ) => this . request < GistComment , BasicError > ( { path : `/gists/${ gistId }/comments/${ commentId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request gistsDeleteComment : ( gistId , commentId , params = { } ) => this . request < void , BasicError > ( { path : `/gists/${ gistId }/comments/${ commentId }` , method : "DELETE" , ... params , } ) , tags name summary request gistsListCommits : ( gistId , query ? , params = { } ) => this . request < GistCommit [ ] , BasicError > ( { path : `/gists/${ gistId }/commits` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request gistsListForks : ( gistId , query ? , params = { } ) => this . request < GistSimple [ ] , BasicError > ( { path : `/gists/${ gistId }/forks` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request gistsFork : ( gistId , params = { } ) => this . request < BaseGist , BasicError | ValidationError > ( { path : `/gists/${ gistId }/forks` , method : "POST" , format : "json" , ... params , } ) , tags name summary request gistsCheckIsStarred : ( gistId , params = { } ) => this . request < void , BasicError | object > ( { path : `/gists/${ gistId }/star` , method : "GET" , ... params , } ) , description tags name summary request gistsStar : ( gistId , params = { } ) => this . request < void , BasicError > ( { path : `/gists/${ gistId }/star` , method : "PUT" , ... params , } ) , tags name summary request gistsUnstar : ( gistId , params = { } ) => this . request < void , BasicError > ( { path : `/gists/${ gistId }/star` , method : "DELETE" , ... params , } ) , tags name summary request gistsGetRevision : ( gistId , sha , params = { } ) => this . request < GistSimple , BasicError | ValidationError > ( { path : `/gists/${ gistId }/${ sha }` , method : "GET" , format : "json" , ... params , } ) , } ; gitignore = { description tags name summary request gitignoreGetAllTemplates : ( params = { } ) => this . request < string [ ] , any > ( { path : `/gitignore/templates` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request gitignoreGetTemplate : ( name , params = { } ) => this . request < GitignoreTemplate , any > ( { path : `/gitignore/templates/${ name }` , method : "GET" , format : "json" , ... params , } ) , } ; installation = { description tags name summary request appsListReposAccessibleToInstallation : ( query ? , params = { } ) => this . request < { total_count : number ; repositories : Repository [ ] ; repository_selection ? : string ; } , BasicError > ( { path : `/installation/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsRevokeInstallationAccessToken : ( params = { } ) => this . request < void , any > ( { path : `/installation/token` , method : "DELETE" , ... params , } ) , } ; issues = { description tags name summary request issuesList : ( query ? , params = { } ) => this . request < Issue [ ] , BasicError | ValidationError > ( { path : `/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; licenses = { tags name summary request licensesGetAllCommonlyUsed : ( query ? , params = { } ) => this . request < LicenseSimple [ ] , any > ( { path : `/licenses` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request licensesGet : ( license , params = { } ) => this . request < License , BasicError > ( { path : `/licenses/${ license }` , method : "GET" , format : "json" , ... params , } ) , } ; markdown = { tags name summary request markdownRender : ( data , params = { } ) => this . request < WebhookConfigUrl , any > ( { path : `/markdown` , method : "POST" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request markdownRenderRaw : ( data , params = { } ) => this . request < WebhookConfigUrl , any > ( { path : `/markdown/raw` , method : "POST" , body : data , ... params , } ) , } ; marketplaceListing = { description tags name summary request appsGetSubscriptionPlanForAccount : ( accountId , params = { } ) => this . request < MarketplacePurchase , BasicError > ( { path : `/marketplace_listing/accounts/${ accountId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request appsListPlans : ( query ? , params = { } ) => this . request < MarketplaceListingPlan [ ] , BasicError > ( { path : `/marketplace_listing/plans` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsListAccountsForPlan : ( planId , query ? , params = { } ) => this . request < MarketplacePurchase [ ] , BasicError | ValidationError > ( { path : `/marketplace_listing/plans/${ planId }/accounts` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsGetSubscriptionPlanForAccountStubbed : ( accountId , params = { } ) => this . request < MarketplacePurchase , BasicError | void > ( { path : `/marketplace_listing/stubbed/accounts/${ accountId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request appsListPlansStubbed : ( query ? , params = { } ) => this . request < MarketplaceListingPlan [ ] , BasicError > ( { path : `/marketplace_listing/stubbed/plans` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsListAccountsForPlanStubbed : ( planId , query ? , params = { } ) => this . request < MarketplacePurchase [ ] , BasicError > ( { path : `/marketplace_listing/stubbed/plans/${ planId }/accounts` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; meta = { description tags name summary request metaGet : ( params = { } ) => this . request < ApiOverview , any > ( { path : `/meta` , method : "GET" , format : "json" , ... params , } ) , } ; networks = { tags name summary request activityListPublicEventsForRepoNetwork : ( owner , repo , query ? , params = { } ) => this . request < Event [ ] , BasicError > ( { path : `/networks/${ owner }/${ repo }/events` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; notifications = { description tags name summary request activityListNotificationsForAuthenticatedUser : ( query ? , params = { } ) => this . request < Thread [ ] , BasicError | ValidationError > ( { path : `/notifications` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request activityMarkNotificationsAsRead : ( data , params = { } ) => this . request < { message ? : string ; } , BasicError > ( { path : `/notifications` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request activityGetThread : ( threadId , params = { } ) => this . request < Thread , BasicError > ( { path : `/notifications/threads/${ threadId }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request activityMarkThreadAsRead : ( threadId , params = { } ) => this . request < void , BasicError > ( { path : `/notifications/threads/${ threadId }` , method : "PATCH" , ... params , } ) , description tags name summary request activityGetThreadSubscriptionForAuthenticatedUser : ( threadId , params = { } ) => this . request < ThreadSubscription , BasicError > ( { path : `/notifications/threads/${ threadId }/subscription` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request activitySetThreadSubscription : ( threadId , data , params = { } ) => this . request < ThreadSubscription , BasicError > ( { path : `/notifications/threads/${ threadId }/subscription` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request activityDeleteThreadSubscription : ( threadId , params = { } ) => this . request < void , BasicError > ( { path : `/notifications/threads/${ threadId }/subscription` , method : "DELETE" , ... params , } ) , } ; octocat = { description tags name summary request metaGetOctocat : ( query ? , params = { } ) => this . request < WebhookConfigUrl , any > ( { path : `/octocat` , method : "GET" , query : query , ... params , } ) , } ; organizations = { description tags name summary request orgsList : ( query ? , params = { } ) => this . request < OrganizationSimple [ ] , any > ( { path : `/organizations` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; orgs = { description tags name summary request orgsGet : ( org , params = { } ) => this . request < OrganizationFull , BasicError > ( { path : `/orgs/${ org }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request orgsUpdate : ( org , data , params = { } ) => this . request < OrganizationFull , BasicError | { message : string ; documentation_url : string ; } | ( ValidationError | ValidationErrorSimple ) > ( { path : `/orgs/${ org }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request actionsGetGithubActionsPermissionsOrganization : ( org , params = { } ) => this . request < ActionsOrganizationPermissions , any > ( { path : `/orgs/${ org }/actions/permissions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsSetGithubActionsPermissionsOrganization : ( org , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/permissions` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsListSelectedRepositoriesEnabledGithubActionsOrganization : ( org , query ? , params = { } ) => this . request < { total_count : number ; repositories : Repository [ ] ; } , any > ( { path : `/orgs/${ org }/actions/permissions/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsSetSelectedRepositoriesEnabledGithubActionsOrganization : ( org , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/permissions/repositories` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsEnableSelectedRepositoryGithubActionsOrganization : ( org , repositoryId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/permissions/repositories/${ repositoryId }` , method : "PUT" , ... params , } ) , description tags name summary request actionsDisableSelectedRepositoryGithubActionsOrganization : ( org , repositoryId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/permissions/repositories/${ repositoryId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsGetAllowedActionsOrganization : ( org , params = { } ) => this . request < SelectedActions , any > ( { path : `/orgs/${ org }/actions/permissions/selected-actions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsSetAllowedActionsOrganization : ( org , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/permissions/selected-actions` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsListSelfHostedRunnerGroupsForOrg : ( org , query ? , params = { } ) => this . request < { total_count : number ; runner_groups : RunnerGroupsOrg [ ] ; } , any > ( { path : `/orgs/${ org }/actions/runner-groups` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsCreateSelfHostedRunnerGroupForOrg : ( org , data , params = { } ) => this . request < RunnerGroupsOrg , any > ( { path : `/orgs/${ org }/actions/runner-groups` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request actionsGetSelfHostedRunnerGroupForOrg : ( org , runnerGroupId , params = { } ) => this . request < RunnerGroupsOrg , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsUpdateSelfHostedRunnerGroupForOrg : ( org , runnerGroupId , data , params = { } ) => this . request < RunnerGroupsOrg , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request actionsDeleteSelfHostedRunnerGroupFromOrg : ( org , runnerGroupId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListRepoAccessToSelfHostedRunnerGroupInOrg : ( org , runnerGroupId , params = { } ) => this . request < { total_count : number ; repositories : Repository [ ] ; } , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/repositories` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsSetRepoAccessToSelfHostedRunnerGroupInOrg : ( org , runnerGroupId , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/repositories` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsAddRepoAccessToSelfHostedRunnerGroupInOrg : ( org , runnerGroupId , repositoryId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/repositories/${ repositoryId }` , method : "PUT" , ... params , } ) , description tags name summary request actionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg : ( org , runnerGroupId , repositoryId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/repositories/${ repositoryId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListSelfHostedRunnersInGroupForOrg : ( org , runnerGroupId , query ? , params = { } ) => this . request < { total_count : number ; runners : Runner [ ] ; } , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/runners` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsSetSelfHostedRunnersInGroupForOrg : ( org , runnerGroupId , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/runners` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsAddSelfHostedRunnerToGroupForOrg : ( org , runnerGroupId , runnerId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/runners/${ runnerId }` , method : "PUT" , ... params , } ) , description tags name summary request actionsRemoveSelfHostedRunnerFromGroupForOrg : ( org , runnerGroupId , runnerId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runner-groups/${ runnerGroupId }/runners/${ runnerId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListSelfHostedRunnersForOrg : ( org , query ? , params = { } ) => this . request < { total_count : number ; runners : Runner [ ] ; } , any > ( { path : `/orgs/${ org }/actions/runners` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsListRunnerApplicationsForOrg : ( org , params = { } ) => this . request < RunnerApplication [ ] , any > ( { path : `/orgs/${ org }/actions/runners/downloads` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsCreateRegistrationTokenForOrg : ( org , params = { } ) => this . request < AuthenticationToken , any > ( { path : `/orgs/${ org }/actions/runners/registration-token` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request actionsCreateRemoveTokenForOrg : ( org , params = { } ) => this . request < AuthenticationToken , any > ( { path : `/orgs/${ org }/actions/runners/remove-token` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request actionsGetSelfHostedRunnerForOrg : ( org , runnerId , params = { } ) => this . request < Runner , any > ( { path : `/orgs/${ org }/actions/runners/${ runnerId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsDeleteSelfHostedRunnerFromOrg : ( org , runnerId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/runners/${ runnerId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListOrgSecrets : ( org , query ? , params = { } ) => this . request < { total_count : number ; secrets : OrganizationActionsSecret [ ] ; } , any > ( { path : `/orgs/${ org }/actions/secrets` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsGetOrgPublicKey : ( org , params = { } ) => this . request < ActionsPublicKey , any > ( { path : `/orgs/${ org }/actions/secrets/public-key` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsGetOrgSecret : ( org , secretName , params = { } ) => this . request < OrganizationActionsSecret , any > ( { path : `/orgs/${ org }/actions/secrets/${ secretName }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsCreateOrUpdateOrgSecret : ( org , secretName , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/secrets/${ secretName }` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsDeleteOrgSecret : ( org , secretName , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/secrets/${ secretName }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListSelectedReposForOrgSecret : ( org , secretName , params = { } ) => this . request < { total_count : number ; repositories : MinimalRepository [ ] ; } , any > ( { path : `/orgs/${ org }/actions/secrets/${ secretName }/repositories` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsSetSelectedReposForOrgSecret : ( org , secretName , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/actions/secrets/${ secretName }/repositories` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsAddSelectedRepoToOrgSecret : ( org , secretName , repositoryId , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/actions/secrets/${ secretName }/repositories/${ repositoryId }` , method : "PUT" , ... params , } ) , description tags name summary request actionsRemoveSelectedRepoFromOrgSecret : ( org , secretName , repositoryId , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/actions/secrets/${ secretName }/repositories/${ repositoryId }` , method : "DELETE" , ... params , } ) , description tags name summary request orgsGetAuditLog : ( org , query ? , params = { } ) => this . request < AuditLogEvent [ ] , any > ( { path : `/orgs/${ org }/audit-log` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsListBlockedUsers : ( org , params = { } ) => this . request < SimpleUser [ ] , { message : string ; documentation_url : string ; } > ( { path : `/orgs/${ org }/blocks` , method : "GET" , format : "json" , ... params , } ) , tags name summary request orgsCheckBlockedUser : ( org , username , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/blocks/${ username }` , method : "GET" , ... params , } ) , tags name summary request orgsBlockUser : ( org , username , params = { } ) => this . request < void , ValidationError > ( { path : `/orgs/${ org }/blocks/${ username }` , method : "PUT" , ... params , } ) , tags name summary request orgsUnblockUser : ( org , username , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/blocks/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request orgsListSamlSsoAuthorizations : ( org , params = { } ) => this . request < CredentialAuthorization [ ] , any > ( { path : `/orgs/${ org }/credential-authorizations` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request orgsRemoveSamlSsoAuthorization : ( org , credentialId , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/credential-authorizations/${ credentialId }` , method : "DELETE" , ... params , } ) , tags name summary request activityListPublicOrgEvents : ( org , query ? , params = { } ) => this . request < Event [ ] , any > ( { path : `/orgs/${ org }/events` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsListFailedInvitations : ( org , query ? , params = { } ) => this . request < OrganizationInvitation [ ] , BasicError > ( { path : `/orgs/${ org }/failed_invitations` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request orgsListWebhooks : ( org , query ? , params = { } ) => this . request < OrgHook [ ] , BasicError > ( { path : `/orgs/${ org }/hooks` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsCreateWebhook : ( org , data , params = { } ) => this . request < OrgHook , BasicError | ValidationError > ( { path : `/orgs/${ org }/hooks` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request orgsGetWebhook : ( org , hookId , params = { } ) => this . request < OrgHook , BasicError > ( { path : `/orgs/${ org }/hooks/${ hookId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request orgsUpdateWebhook : ( org , hookId , data , params = { } ) => this . request < OrgHook , BasicError | ValidationError > ( { path : `/orgs/${ org }/hooks/${ hookId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request orgsDeleteWebhook : ( org , hookId , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/hooks/${ hookId }` , method : "DELETE" , ... params , } ) , description tags name summary request orgsGetWebhookConfigForOrg : ( org , hookId , params = { } ) => this . request < WebhookConfig , any > ( { path : `/orgs/${ org }/hooks/${ hookId }/config` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request orgsUpdateWebhookConfigForOrg : ( org , hookId , data , params = { } ) => this . request < WebhookConfig , any > ( { path : `/orgs/${ org }/hooks/${ hookId }/config` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request orgsPingWebhook : ( org , hookId , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/hooks/${ hookId }/pings` , method : "POST" , ... params , } ) , description tags name summary request appsGetOrgInstallation : ( org , params = { } ) => this . request < Installation , any > ( { path : `/orgs/${ org }/installation` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request orgsListAppInstallations : ( org , query ? , params = { } ) => this . request < { total_count : number ; installations : Installation [ ] ; } , any > ( { path : `/orgs/${ org }/installations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request interactionsGetRestrictionsForOrg : ( org , params = { } ) => this . request < InteractionLimitResponse , any > ( { path : `/orgs/${ org }/interaction-limits` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request interactionsSetRestrictionsForOrg : ( org , data , params = { } ) => this . request < InteractionLimitResponse , ValidationError > ( { path : `/orgs/${ org }/interaction-limits` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request interactionsRemoveRestrictionsForOrg : ( org , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/interaction-limits` , method : "DELETE" , ... params , } ) , description tags name summary request orgsListPendingInvitations : ( org , query ? , params = { } ) => this . request < OrganizationInvitation [ ] , BasicError > ( { path : `/orgs/${ org }/invitations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsCreateInvitation : ( org , data , params = { } ) => this . request < OrganizationInvitation , BasicError | ValidationError > ( { path : `/orgs/${ org }/invitations` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request orgsCancelInvitation : ( org , invitationId , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/orgs/${ org }/invitations/${ invitationId }` , method : "DELETE" , ... params , } ) , description tags name summary request orgsListInvitationTeams : ( org , invitationId , query ? , params = { } ) => this . request < Team [ ] , BasicError > ( { path : `/orgs/${ org }/invitations/${ invitationId }/teams` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request issuesListForOrg : ( org , query ? , params = { } ) => this . request < Issue [ ] , BasicError > ( { path : `/orgs/${ org }/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsListMembers : ( org , query ? , params = { } ) => this . request < SimpleUser [ ] , void | ValidationError > ( { path : `/orgs/${ org }/members` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsCheckMembershipForUser : ( org , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/members/${ username }` , method : "GET" , ... params , } ) , description tags name summary request orgsRemoveMember : ( org , username , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/members/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request orgsGetMembershipForUser : ( org , username , params = { } ) => this . request < OrgMembership , BasicError > ( { path : `/orgs/${ org }/memberships/${ username }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request orgsSetMembershipForUser : ( org , username , data , params = { } ) => this . request < OrgMembership , BasicError | ValidationError > ( { path : `/orgs/${ org }/memberships/${ username }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request orgsRemoveMembershipForUser : ( org , username , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/memberships/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request migrationsListForOrg : ( org , query ? , params = { } ) => this . request < Migration [ ] , any > ( { path : `/orgs/${ org }/migrations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request migrationsStartForOrg : ( org , data , params = { } ) => this . request < Migration , BasicError | ValidationError > ( { path : `/orgs/${ org }/migrations` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request migrationsGetStatusForOrg : ( org , migrationId , params = { } ) => this . request < Migration , BasicError > ( { path : `/orgs/${ org }/migrations/${ migrationId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request migrationsDownloadArchiveForOrg : ( org , migrationId , params = { } ) => this . request < any , void | BasicError > ( { path : `/orgs/${ org }/migrations/${ migrationId }/archive` , method : "GET" , ... params , } ) , description tags name summary request migrationsDeleteArchiveForOrg : ( org , migrationId , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/migrations/${ migrationId }/archive` , method : "DELETE" , ... params , } ) , description tags name summary request migrationsUnlockRepoForOrg : ( org , migrationId , repoName , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/migrations/${ migrationId }/repos/${ repoName }/lock` , method : "DELETE" , ... params , } ) , description tags name summary request migrationsListReposForOrg : ( org , migrationId , query ? , params = { } ) => this . request < MinimalRepository [ ] , BasicError > ( { path : `/orgs/${ org }/migrations/${ migrationId }/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsListOutsideCollaborators : ( org , query ? , params = { } ) => this . request < SimpleUser [ ] , any > ( { path : `/orgs/${ org }/outside_collaborators` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsConvertMemberToOutsideCollaborator : ( org , username , params = { } ) => this . request < void , { message ? : string ; documentation_url ? : string ; } | BasicError > ( { path : `/orgs/${ org }/outside_collaborators/${ username }` , method : "PUT" , ... params , } ) , description tags name summary request orgsRemoveOutsideCollaborator : ( org , username , params = { } ) => this . request < void , { message ? : string ; documentation_url ? : string ; } > ( { path : `/orgs/${ org }/outside_collaborators/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request projectsListForOrg : ( org , query ? , params = { } ) => this . request < Project [ ] , ValidationErrorSimple > ( { path : `/orgs/${ org }/projects` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request projectsCreateForOrg : ( org , data , params = { } ) => this . request < Project , BasicError | ValidationErrorSimple > ( { path : `/orgs/${ org }/projects` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request orgsListPublicMembers : ( org , query ? , params = { } ) => this . request < SimpleUser [ ] , any > ( { path : `/orgs/${ org }/public_members` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request orgsCheckPublicMembershipForUser : ( org , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/public_members/${ username }` , method : "GET" , ... params , } ) , description tags name summary request orgsSetPublicMembershipForAuthenticatedUser : ( org , username , params = { } ) => this . request < void , BasicError > ( { path : `/orgs/${ org }/public_members/${ username }` , method : "PUT" , ... params , } ) , tags name summary request orgsRemovePublicMembershipForAuthenticatedUser : ( org , username , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/public_members/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request reposListForOrg : ( org , query ? , params = { } ) => this . request < MinimalRepository [ ] , any > ( { path : `/orgs/${ org }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateInOrg : ( org , data , params = { } ) => this . request < Repository , BasicError | ValidationError > ( { path : `/orgs/${ org }/repos` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request billingGetGithubActionsBillingOrg : ( org , params = { } ) => this . request < ActionsBillingUsage , any > ( { path : `/orgs/${ org }/settings/billing/actions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request billingGetGithubPackagesBillingOrg : ( org , params = { } ) => this . request < PackagesBillingUsage , any > ( { path : `/orgs/${ org }/settings/billing/packages` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request billingGetSharedStorageBillingOrg : ( org , params = { } ) => this . request < CombinedBillingUsage , any > ( { path : `/orgs/${ org }/settings/billing/shared-storage` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsListIdpGroupsForOrg : ( org , query ? , params = { } ) => this . request < GroupMapping , any > ( { path : `/orgs/${ org }/team-sync/groups` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsList : ( org , query ? , params = { } ) => this . request < Team [ ] , BasicError > ( { path : `/orgs/${ org }/teams` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsCreate : ( org , data , params = { } ) => this . request < TeamFull , BasicError | ValidationError > ( { path : `/orgs/${ org }/teams` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsGetByName : ( org , teamSlug , params = { } ) => this . request < TeamFull , BasicError > ( { path : `/orgs/${ org }/teams/${ teamSlug }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsUpdateInOrg : ( org , teamSlug , data , params = { } ) => this . request < TeamFull , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsDeleteInOrg : ( org , teamSlug , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }` , method : "DELETE" , ... params , } ) , description tags name summary request teamsListDiscussionsInOrg : ( org , teamSlug , query ? , params = { } ) => this . request < TeamDiscussion [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsCreateDiscussionInOrg : ( org , teamSlug , data , params = { } ) => this . request < TeamDiscussion , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsGetDiscussionInOrg : ( org , teamSlug , discussionNumber , params = { } ) => this . request < TeamDiscussion , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsUpdateDiscussionInOrg : ( org , teamSlug , discussionNumber , data , params = { } ) => this . request < TeamDiscussion , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsDeleteDiscussionInOrg : ( org , teamSlug , discussionNumber , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }` , method : "DELETE" , ... params , } ) , description tags name summary request teamsListDiscussionCommentsInOrg : ( org , teamSlug , discussionNumber , query ? , params = { } ) => this . request < TeamDiscussionComment [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsCreateDiscussionCommentInOrg : ( org , teamSlug , discussionNumber , data , params = { } ) => this . request < TeamDiscussionComment , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsGetDiscussionCommentInOrg : ( org , teamSlug , discussionNumber , commentNumber , params = { } ) => this . request < TeamDiscussionComment , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments/${ commentNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsUpdateDiscussionCommentInOrg : ( org , teamSlug , discussionNumber , commentNumber , data , params = { } ) => this . request < TeamDiscussionComment , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments/${ commentNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsDeleteDiscussionCommentInOrg : ( org , teamSlug , discussionNumber , commentNumber , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments/${ commentNumber }` , method : "DELETE" , ... params , } ) , description tags name summary request reactionsListForTeamDiscussionCommentInOrg : ( org , teamSlug , discussionNumber , commentNumber , query ? , params = { } ) => this . request < Reaction [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments/${ commentNumber }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reactionsCreateForTeamDiscussionCommentInOrg : ( org , teamSlug , discussionNumber , commentNumber , data , params = { } ) => this . request < Reaction , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments/${ commentNumber }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reactionsDeleteForTeamDiscussionComment : ( org , teamSlug , discussionNumber , commentNumber , reactionId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/comments/${ commentNumber }/reactions/${ reactionId }` , method : "DELETE" , ... params , } ) , description tags name summary request reactionsListForTeamDiscussionInOrg : ( org , teamSlug , discussionNumber , query ? , params = { } ) => this . request < Reaction [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reactionsCreateForTeamDiscussionInOrg : ( org , teamSlug , discussionNumber , data , params = { } ) => this . request < Reaction , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reactionsDeleteForTeamDiscussion : ( org , teamSlug , discussionNumber , reactionId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/discussions/${ discussionNumber }/reactions/${ reactionId }` , method : "DELETE" , ... params , } ) , description tags name summary request teamsListPendingInvitationsInOrg : ( org , teamSlug , query ? , params = { } ) => this . request < OrganizationInvitation [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/invitations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsListMembersInOrg : ( org , teamSlug , query ? , params = { } ) => this . request < SimpleUser [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/members` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsGetMembershipForUserInOrg : ( org , teamSlug , username , params = { } ) => this . request < TeamMembership , void > ( { path : `/orgs/${ org }/teams/${ teamSlug }/memberships/${ username }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsAddOrUpdateMembershipForUserInOrg : ( org , teamSlug , username , data , params = { } ) => this . request < TeamMembership , void | { message ? : string ; errors ? : { code ? : string ; field ? : string ; resource ? : string ; } [ ] ; } > ( { path : `/orgs/${ org }/teams/${ teamSlug }/memberships/${ username }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsRemoveMembershipForUserInOrg : ( org , teamSlug , username , params = { } ) => this . request < void , void > ( { path : `/orgs/${ org }/teams/${ teamSlug }/memberships/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request teamsListProjectsInOrg : ( org , teamSlug , query ? , params = { } ) => this . request < TeamProject [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/projects` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsCheckPermissionsForProjectInOrg : ( org , teamSlug , projectId , params = { } ) => this . request < TeamProject , void > ( { path : `/orgs/${ org }/teams/${ teamSlug }/projects/${ projectId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsAddOrUpdateProjectPermissionsInOrg : ( org , teamSlug , projectId , data , params = { } ) => this . request < void , { message ? : string ; documentation_url ? : string ; } > ( { path : `/orgs/${ org }/teams/${ teamSlug }/projects/${ projectId }` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request teamsRemoveProjectInOrg : ( org , teamSlug , projectId , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/projects/${ projectId }` , method : "DELETE" , ... params , } ) , description tags name summary request teamsListReposInOrg : ( org , teamSlug , query ? , params = { } ) => this . request < MinimalRepository [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsCheckPermissionsForRepoInOrg : ( org , teamSlug , owner , repo , params = { } ) => this . request < TeamRepository , void > ( { path : `/orgs/${ org }/teams/${ teamSlug }/repos/${ owner }/${ repo }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsAddOrUpdateRepoPermissionsInOrg : ( org , teamSlug , owner , repo , data , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/repos/${ owner }/${ repo }` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request teamsRemoveRepoInOrg : ( org , teamSlug , owner , repo , params = { } ) => this . request < void , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/repos/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description tags name summary request teamsListIdpGroupsInOrg : ( org , teamSlug , params = { } ) => this . request < GroupMapping , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/team-sync/group-mappings` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request teamsCreateOrUpdateIdpGroupConnectionsInOrg : ( org , teamSlug , data , params = { } ) => this . request < GroupMapping , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/team-sync/group-mappings` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request teamsListChildInOrg : ( org , teamSlug , query ? , params = { } ) => this . request < Team [ ] , any > ( { path : `/orgs/${ org }/teams/${ teamSlug }/teams` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; projects = { tags name summary request projectsGetCard : ( cardId , params = { } ) => this . request < ProjectCard , BasicError > ( { path : `/projects/columns/cards/${ cardId }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request projectsUpdateCard : ( cardId , data , params = { } ) => this . request < ProjectCard , BasicError | ValidationErrorSimple > ( { path : `/projects/columns/cards/${ cardId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request projectsDeleteCard : ( cardId , params = { } ) => this . request < void , BasicError | { message ? : string ; documentation_url ? : string ; errors ? : string [ ] ; } > ( { path : `/projects/columns/cards/${ cardId }` , method : "DELETE" , ... params , } ) , tags name summary request projectsMoveCard : ( cardId , data , params = { } ) => this . request < object , BasicError | { message ? : string ; documentation_url ? : string ; errors ? : { code ? : string ; message ? : string ; resource ? : string ; field ? : string ; } [ ] ; } | ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; errors ? : { code ? : string ; message ? : string ; } [ ] ; } > ( { path : `/projects/columns/cards/${ cardId }/moves` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request projectsGetColumn : ( columnId , params = { } ) => this . request < ProjectColumn , BasicError > ( { path : `/projects/columns/${ columnId }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request projectsUpdateColumn : ( columnId , data , params = { } ) => this . request < ProjectColumn , BasicError > ( { path : `/projects/columns/${ columnId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request projectsDeleteColumn : ( columnId , params = { } ) => this . request < void , BasicError > ( { path : `/projects/columns/${ columnId }` , method : "DELETE" , ... params , } ) , tags name summary request projectsListCards : ( columnId , query ? , params = { } ) => this . request < ProjectCard [ ] , BasicError > ( { path : `/projects/columns/${ columnId }/cards` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request projectsCreateCard : ( columnId , data , params = { } ) => this . request < ProjectCard , BasicError | ( ValidationError | ValidationErrorSimple ) | { code ? : string ; message ? : string ; documentation_url ? : string ; errors ? : { code ? : string ; message ? : string ; } [ ] ; } > ( { path : `/projects/columns/${ columnId }/cards` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request projectsMoveColumn : ( columnId , data , params = { } ) => this . request < object , BasicError | ValidationErrorSimple > ( { path : `/projects/columns/${ columnId }/moves` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request projectsGet : ( projectId , params = { } ) => this . request < Project , BasicError > ( { path : `/projects/${ projectId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request projectsUpdate : ( projectId , data , params = { } ) => this . request < Project , BasicError | { message ? : string ; documentation_url ? : string ; errors ? : string [ ] ; } | void | ValidationErrorSimple > ( { path : `/projects/${ projectId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request projectsDelete : ( projectId , params = { } ) => this . request < void , BasicError | { message ? : string ; documentation_url ? : string ; errors ? : string [ ] ; } > ( { path : `/projects/${ projectId }` , method : "DELETE" , ... params , } ) , description tags name summary request projectsListCollaborators : ( projectId , query ? , params = { } ) => this . request < SimpleUser [ ] , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/projects/${ projectId }/collaborators` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request projectsAddCollaborator : ( projectId , username , data , params = { } ) => this . request < void , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/projects/${ projectId }/collaborators/${ username }` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request projectsRemoveCollaborator : ( projectId , username , params = { } ) => this . request < void , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/projects/${ projectId }/collaborators/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request projectsGetPermissionForUser : ( projectId , username , params = { } ) => this . request < RepositoryCollaboratorPermission , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/projects/${ projectId }/collaborators/${ username }/permission` , method : "GET" , format : "json" , ... params , } ) , tags name summary request projectsListColumns : ( projectId , query ? , params = { } ) => this . request < ProjectColumn [ ] , BasicError > ( { path : `/projects/${ projectId }/columns` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request projectsCreateColumn : ( projectId , data , params = { } ) => this . request < ProjectColumn , BasicError | ValidationErrorSimple > ( { path : `/projects/${ projectId }/columns` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , } ; rateLimit = { description tags name summary request rateLimitGet : ( params = { } ) => this . request < RateLimitOverview , BasicError > ( { path : `/rate_limit` , method : "GET" , format : "json" , ... params , } ) , } ; reactions = { description tags name summary request deprecated reactionsDeleteLegacy : ( reactionId , params = { } ) => this . request < void , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/reactions/${ reactionId }` , method : "DELETE" , ... params , } ) , } ; repos = { description tags name summary request reposGet : ( owner , repo , params = { } ) => this . request < FullRepository , BasicError > ( { path : `/repos/${ owner }/${ repo }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdate : ( owner , repo , data , params = { } ) => this . request < FullRepository , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposDelete : ( owner , repo , params = { } ) => this . request < void , { message ? : string ; documentation_url ? : string ; } | BasicError > ( { path : `/repos/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListArtifactsForRepo : ( owner , repo , query ? , params = { } ) => this . request < { total_count : number ; artifacts : Artifact [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/artifacts` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsGetArtifact : ( owner , repo , artifactId , params = { } ) => this . request < Artifact , any > ( { path : `/repos/${ owner }/${ repo }/actions/artifacts/${ artifactId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsDeleteArtifact : ( owner , repo , artifactId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/artifacts/${ artifactId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsDownloadArtifact : ( owner , repo , artifactId , archiveFormat , params = { } ) => this . request < any , void > ( { path : `/repos/${ owner }/${ repo }/actions/artifacts/${ artifactId }/${ archiveFormat }` , method : "GET" , ... params , } ) , description tags name summary request actionsGetJobForWorkflowRun : ( owner , repo , jobId , params = { } ) => this . request < Job , any > ( { path : `/repos/${ owner }/${ repo }/actions/jobs/${ jobId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsDownloadJobLogsForWorkflowRun : ( owner , repo , jobId , params = { } ) => this . request < any , void > ( { path : `/repos/${ owner }/${ repo }/actions/jobs/${ jobId }/logs` , method : "GET" , ... params , } ) , description tags name summary request actionsGetGithubActionsPermissionsRepository : ( owner , repo , params = { } ) => this . request < ActionsRepositoryPermissions , any > ( { path : `/repos/${ owner }/${ repo }/actions/permissions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsSetGithubActionsPermissionsRepository : ( owner , repo , data , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/permissions` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsGetAllowedActionsRepository : ( owner , repo , params = { } ) => this . request < SelectedActions , any > ( { path : `/repos/${ owner }/${ repo }/actions/permissions/selected-actions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsSetAllowedActionsRepository : ( owner , repo , data , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/permissions/selected-actions` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsListSelfHostedRunnersForRepo : ( owner , repo , query ? , params = { } ) => this . request < { total_count : number ; runners : Runner [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/runners` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsListRunnerApplicationsForRepo : ( owner , repo , params = { } ) => this . request < RunnerApplication [ ] , any > ( { path : `/repos/${ owner }/${ repo }/actions/runners/downloads` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsCreateRegistrationTokenForRepo : ( owner , repo , params = { } ) => this . request < AuthenticationToken , any > ( { path : `/repos/${ owner }/${ repo }/actions/runners/registration-token` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request actionsCreateRemoveTokenForRepo : ( owner , repo , params = { } ) => this . request < AuthenticationToken , any > ( { path : `/repos/${ owner }/${ repo }/actions/runners/remove-token` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request actionsGetSelfHostedRunnerForRepo : ( owner , repo , runnerId , params = { } ) => this . request < Runner , any > ( { path : `/repos/${ owner }/${ repo }/actions/runners/${ runnerId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsDeleteSelfHostedRunnerFromRepo : ( owner , repo , runnerId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/runners/${ runnerId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListWorkflowRunsForRepo : ( owner , repo , query ? , params = { } ) => this . request < { total_count : number ; workflow_runs : WorkflowRun [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsGetWorkflowRun : ( owner , repo , runId , params = { } ) => this . request < WorkflowRun , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsDeleteWorkflowRun : ( owner , repo , runId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListWorkflowRunArtifacts : ( owner , repo , runId , query ? , params = { } ) => this . request < { total_count : number ; artifacts : Artifact [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }/artifacts` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsCancelWorkflowRun : ( owner , repo , runId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }/cancel` , method : "POST" , ... params , } ) , description tags name summary request actionsListJobsForWorkflowRun : ( owner , repo , runId , query ? , params = { } ) => this . request < { total_count : number ; jobs : Job [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }/jobs` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsDownloadWorkflowRunLogs : ( owner , repo , runId , params = { } ) => this . request < any , void > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }/logs` , method : "GET" , ... params , } ) , description tags name summary request actionsDeleteWorkflowRunLogs : ( owner , repo , runId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }/logs` , method : "DELETE" , ... params , } ) , description tags name summary request actionsReRunWorkflow : ( owner , repo , runId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }/rerun` , method : "POST" , ... params , } ) , description tags name summary request actionsGetWorkflowRunUsage : ( owner , repo , runId , params = { } ) => this . request < WorkflowRunUsage , any > ( { path : `/repos/${ owner }/${ repo }/actions/runs/${ runId }/timing` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsListRepoSecrets : ( owner , repo , query ? , params = { } ) => this . request < { total_count : number ; secrets : ActionsSecret [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/secrets` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsGetRepoPublicKey : ( owner , repo , params = { } ) => this . request < ActionsPublicKey , any > ( { path : `/repos/${ owner }/${ repo }/actions/secrets/public-key` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsGetRepoSecret : ( owner , repo , secretName , params = { } ) => this . request < ActionsSecret , any > ( { path : `/repos/${ owner }/${ repo }/actions/secrets/${ secretName }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsCreateOrUpdateRepoSecret : ( owner , repo , secretName , data , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/secrets/${ secretName }` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsDeleteRepoSecret : ( owner , repo , secretName , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/secrets/${ secretName }` , method : "DELETE" , ... params , } ) , description tags name summary request actionsListRepoWorkflows : ( owner , repo , query ? , params = { } ) => this . request < { total_count : number ; workflows : Workflow [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/workflows` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsGetWorkflow : ( owner , repo , workflowId , params = { } ) => this . request < Workflow , any > ( { path : `/repos/${ owner }/${ repo }/actions/workflows/${ workflowId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request actionsDisableWorkflow : ( owner , repo , workflowId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/workflows/${ workflowId }/disable` , method : "PUT" , ... params , } ) , description tags name summary request actionsCreateWorkflowDispatch : ( owner , repo , workflowId , data , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/workflows/${ workflowId }/dispatches` , method : "POST" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request actionsEnableWorkflow : ( owner , repo , workflowId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/actions/workflows/${ workflowId }/enable` , method : "PUT" , ... params , } ) , description tags name summary request actionsListWorkflowRuns : ( owner , repo , workflowId , query ? , params = { } ) => this . request < { total_count : number ; workflow_runs : WorkflowRun [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/actions/workflows/${ workflowId }/runs` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request actionsGetWorkflowUsage : ( owner , repo , workflowId , params = { } ) => this . request < WorkflowUsage , any > ( { path : `/repos/${ owner }/${ repo }/actions/workflows/${ workflowId }/timing` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request issuesListAssignees : ( owner , repo , query ? , params = { } ) => this . request < SimpleUser [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/assignees` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request issuesCheckUserCanBeAssigned : ( owner , repo , assignee , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/assignees/${ assignee }` , method : "GET" , ... params , } ) , description tags name summary request reposEnableAutomatedSecurityFixes : ( owner , repo , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/automated-security-fixes` , method : "PUT" , ... params , } ) , description tags name summary request reposDisableAutomatedSecurityFixes : ( owner , repo , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/automated-security-fixes` , method : "DELETE" , ... params , } ) , tags name summary request reposListBranches : ( owner , repo , query ? , params = { } ) => this . request < ShortBranch [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposGetBranch : ( owner , repo , branch , params = { } ) => this . request < BranchWithProtection , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetBranchProtection : ( owner , repo , branch , params = { } ) => this . request < BranchProtection , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdateBranchProtection : ( owner , repo , branch , data , params = { } ) => this . request < ProtectedBranch , BasicError | { message : string ; documentation_url : string ; } | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposDeleteBranchProtection : ( owner , repo , branch , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetAdminBranchProtection : ( owner , repo , branch , params = { } ) => this . request < ProtectedBranchAdminEnforced , any > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/enforce_admins` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposSetAdminBranchProtection : ( owner , repo , branch , params = { } ) => this . request < ProtectedBranchAdminEnforced , any > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/enforce_admins` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request reposDeleteAdminBranchProtection : ( owner , repo , branch , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/enforce_admins` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetPullRequestReviewProtection : ( owner , repo , branch , params = { } ) => this . request < ProtectedBranchPullRequestReview , any > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_pull_request_reviews` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdatePullRequestReviewProtection : ( owner , repo , branch , data , params = { } ) => this . request < ProtectedBranchPullRequestReview , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_pull_request_reviews` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposDeletePullRequestReviewProtection : ( owner , repo , branch , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_pull_request_reviews` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetCommitSignatureProtection : ( owner , repo , branch , params = { } ) => this . request < ProtectedBranchAdminEnforced , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_signatures` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposCreateCommitSignatureProtection : ( owner , repo , branch , params = { } ) => this . request < ProtectedBranchAdminEnforced , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_signatures` , method : "POST" , format : "json" , ... params , } ) , description tags name summary request reposDeleteCommitSignatureProtection : ( owner , repo , branch , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_signatures` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetStatusChecksProtection : ( owner , repo , branch , params = { } ) => this . request < StatusCheckPolicy , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_status_checks` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdateStatusCheckProtection : ( owner , repo , branch , data , params = { } ) => this . request < StatusCheckPolicy , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_status_checks` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposRemoveStatusCheckProtection : ( owner , repo , branch , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_status_checks` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetAllStatusCheckContexts : ( owner , repo , branch , params = { } ) => this . request < string [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_status_checks/contexts` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposAddStatusCheckContexts : ( owner , repo , branch , data , params = { } ) => this . request < string [ ] , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_status_checks/contexts` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposSetStatusCheckContexts : ( owner , repo , branch , data , params = { } ) => this . request < string [ ] , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_status_checks/contexts` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposRemoveStatusCheckContexts : ( owner , repo , branch , data , params = { } ) => this . request < string [ ] , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/required_status_checks/contexts` , method : "DELETE" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetAccessRestrictions : ( owner , repo , branch , params = { } ) => this . request < BranchRestrictionPolicy , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposDeleteAccessRestrictions : ( owner , repo , branch , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetAppsWithAccessToProtectedBranch : ( owner , repo , branch , params = { } ) => this . request < Integration [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/apps` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposAddAppAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < Integration [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/apps` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposSetAppAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < Integration [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/apps` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposRemoveAppAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < Integration [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/apps` , method : "DELETE" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetTeamsWithAccessToProtectedBranch : ( owner , repo , branch , params = { } ) => this . request < Team [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/teams` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposAddTeamAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < Team [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/teams` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposSetTeamAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < Team [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/teams` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposRemoveTeamAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < Team [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/teams` , method : "DELETE" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetUsersWithAccessToProtectedBranch : ( owner , repo , branch , params = { } ) => this . request < SimpleUser [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/users` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposAddUserAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < SimpleUser [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/users` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposSetUserAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < SimpleUser [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/users` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposRemoveUserAccessRestrictions : ( owner , repo , branch , data , params = { } ) => this . request < SimpleUser [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/protection/restrictions/users` , method : "DELETE" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposRenameBranch : ( owner , repo , branch , data , params = { } ) => this . request < BranchWithProtection , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/branches/${ branch }/rename` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request checksCreate : ( owner , repo , data , params = { } ) => this . request < CheckRun , any > ( { path : `/repos/${ owner }/${ repo }/check-runs` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request checksGet : ( owner , repo , checkRunId , params = { } ) => this . request < CheckRun , any > ( { path : `/repos/${ owner }/${ repo }/check-runs/${ checkRunId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request checksUpdate : ( owner , repo , checkRunId , data , params = { } ) => this . request < CheckRun , any > ( { path : `/repos/${ owner }/${ repo }/check-runs/${ checkRunId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request checksListAnnotations : ( owner , repo , checkRunId , query ? , params = { } ) => this . request < CheckAnnotation [ ] , any > ( { path : `/repos/${ owner }/${ repo }/check-runs/${ checkRunId }/annotations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request checksCreateSuite : ( owner , repo , data , params = { } ) => this . request < CheckSuite , any > ( { path : `/repos/${ owner }/${ repo }/check-suites` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request checksSetSuitesPreferences : ( owner , repo , data , params = { } ) => this . request < CheckSuitePreference , any > ( { path : `/repos/${ owner }/${ repo }/check-suites/preferences` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request checksGetSuite : ( owner , repo , checkSuiteId , params = { } ) => this . request < CheckSuite , any > ( { path : `/repos/${ owner }/${ repo }/check-suites/${ checkSuiteId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request checksListForSuite : ( owner , repo , checkSuiteId , query ? , params = { } ) => this . request < { total_count : number ; check_runs : CheckRun [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/check-suites/${ checkSuiteId }/check-runs` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request checksRerequestSuite : ( owner , repo , checkSuiteId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/check-suites/${ checkSuiteId }/rerequest` , method : "POST" , ... params , } ) , description tags name summary request codeScanningListAlertsForRepo : ( owner , repo , query ? , params = { } ) => this . request < CodeScanningAlertCodeScanningAlertItems [ ] , void | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/code-scanning/alerts` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request codeScanningGetAlert : ( owner , repo , alertNumber , params = { } ) => this . request < CodeScanningAlertCodeScanningAlert , void | BasicError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/code-scanning/alerts/${ alertNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request codeScanningUpdateAlert : ( owner , repo , alertNumber , data , params = { } ) => this . request < CodeScanningAlertCodeScanningAlert , void > ( { path : `/repos/${ owner }/${ repo }/code-scanning/alerts/${ alertNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request codeScanningListRecentAnalyses : ( owner , repo , query ? , params = { } ) => this . request < CodeScanningAnalysisCodeScanningAnalysis [ ] , void > ( { path : `/repos/${ owner }/${ repo }/code-scanning/analyses` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request codeScanningUploadSarif : ( owner , repo , data , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/code-scanning/sarifs` , method : "POST" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request reposListCollaborators : ( owner , repo , query ? , params = { } ) => this . request < Collaborator [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/collaborators` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCheckCollaborator : ( owner , repo , username , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/collaborators/${ username }` , method : "GET" , ... params , } ) , description tags name summary request reposAddCollaborator : ( owner , repo , username , data , params = { } ) => this . request < RepositoryInvitation , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/collaborators/${ username }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request reposRemoveCollaborator : ( owner , repo , username , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/collaborators/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetCollaboratorPermissionLevel : ( owner , repo , username , params = { } ) => this . request < RepositoryCollaboratorPermission , BasicError > ( { path : `/repos/${ owner }/${ repo }/collaborators/${ username }/permission` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposListCommitCommentsForRepo : ( owner , repo , query ? , params = { } ) => this . request < CommitComment [ ] , any > ( { path : `/repos/${ owner }/${ repo }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposGetCommitComment : ( owner , repo , commentId , params = { } ) => this . request < CommitComment , BasicError > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request reposUpdateCommitComment : ( owner , repo , commentId , data , params = { } ) => this . request < CommitComment , BasicError > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request reposDeleteCommitComment : ( owner , repo , commentId , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description tags name summary request reactionsListForCommitComment : ( owner , repo , commentId , query ? , params = { } ) => this . request < Reaction [ ] , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reactionsCreateForCommitComment : ( owner , repo , commentId , data , params = { } ) => this . request < Reaction , { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reactionsDeleteForCommitComment : ( owner , repo , commentId , reactionId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/comments/${ commentId }/reactions/${ reactionId }` , method : "DELETE" , ... params , } ) , description tags name summary request reposListCommits : ( owner , repo , query ? , params = { } ) => this . request < Commit [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/commits` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposListBranchesForHeadCommit : ( owner , repo , commitSha , params = { } ) => this . request < BranchShort [ ] , { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/commits/${ commitSha }/branches-where-head` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposListCommentsForCommit : ( owner , repo , commitSha , query ? , params = { } ) => this . request < CommitComment [ ] , any > ( { path : `/repos/${ owner }/${ repo }/commits/${ commitSha }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateCommitComment : ( owner , repo , commitSha , data , params = { } ) => this . request < CommitComment , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/commits/${ commitSha }/comments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposListPullRequestsAssociatedWithCommit : ( owner , repo , commitSha , query ? , params = { } ) => this . request < PullRequestSimple [ ] , { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/commits/${ commitSha }/pulls` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposGetCommit : ( owner , repo , ref , params = { } ) => this . request < Commit , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/commits/${ ref }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request checksListForRef : ( owner , repo , ref , query ? , params = { } ) => this . request < { total_count : number ; check_runs : CheckRun [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/commits/${ ref }/check-runs` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request checksListSuitesForRef : ( owner , repo , ref , query ? , params = { } ) => this . request < { total_count : number ; check_suites : CheckSuite [ ] ; } , any > ( { path : `/repos/${ owner }/${ repo }/commits/${ ref }/check-suites` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposGetCombinedStatusForRef : ( owner , repo , ref , params = { } ) => this . request < CombinedCommitStatus , BasicError > ( { path : `/repos/${ owner }/${ repo }/commits/${ ref }/status` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposListCommitStatusesForRef : ( owner , repo , ref , query ? , params = { } ) => this . request < Status [ ] , any > ( { path : `/repos/${ owner }/${ repo }/commits/${ ref }/statuses` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request codesOfConductGetForRepo : ( owner , repo , params = { } ) => this . request < CodeOfConduct , any > ( { path : `/repos/${ owner }/${ repo }/community/code_of_conduct` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetCommunityProfileMetrics : ( owner , repo , params = { } ) => this . request < CommunityProfile , any > ( { path : `/repos/${ owner }/${ repo }/community/profile` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposCompareCommits : ( owner , repo , base , head , params = { } ) => this . request < CommitComparison , BasicError > ( { path : `/repos/${ owner }/${ repo }/compare/${ base }...${ head }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetContent : ( owner , repo , path , query ? , params = { } ) => this . request < ContentTree , BasicError > ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateOrUpdateFileContents : ( owner , repo , path , data , params = { } ) => this . request < FileCommit , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposDeleteFile : ( owner , repo , path , data , params = { } ) => this . request < FileCommit , BasicError | ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/contents/${ path }` , method : "DELETE" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposListContributors : ( owner , repo , query ? , params = { } ) => this . request < Contributor [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/contributors` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposListDeployments : ( owner , repo , query ? , params = { } ) => this . request < Deployment [ ] , any > ( { path : `/repos/${ owner }/${ repo }/deployments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateDeployment : ( owner , repo , data , params = { } ) => this . request < Deployment , { message ? : string ; documentation_url ? : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/deployments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request reposGetDeployment : ( owner , repo , deploymentId , params = { } ) => this . request < Deployment , BasicError > ( { path : `/repos/${ owner }/${ repo }/deployments/${ deploymentId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposDeleteDeployment : ( owner , repo , deploymentId , params = { } ) => this . request < void , BasicError | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/deployments/${ deploymentId }` , method : "DELETE" , ... params , } ) , description tags name summary request reposListDeploymentStatuses : ( owner , repo , deploymentId , query ? , params = { } ) => this . request < DeploymentStatus [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/deployments/${ deploymentId }/statuses` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateDeploymentStatus : ( owner , repo , deploymentId , data , params = { } ) => this . request < DeploymentStatus , ValidationError > ( { path : `/repos/${ owner }/${ repo }/deployments/${ deploymentId }/statuses` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetDeploymentStatus : ( owner , repo , deploymentId , statusId , params = { } ) => this . request < DeploymentStatus , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/deployments/${ deploymentId }/statuses/${ statusId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposCreateDispatchEvent : ( owner , repo , data , params = { } ) => this . request < void , ValidationError > ( { path : `/repos/${ owner }/${ repo }/dispatches` , method : "POST" , body : data , type : ContentType . Json , ... params , } ) , tags name summary request activityListRepoEvents : ( owner , repo , query ? , params = { } ) => this . request < Event [ ] , any > ( { path : `/repos/${ owner }/${ repo }/events` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposListForks : ( owner , repo , query ? , params = { } ) => this . request < MinimalRepository [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/forks` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateFork : ( owner , repo , data , params = { } ) => this . request < Repository , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/forks` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request gitCreateBlob : ( owner , repo , data , params = { } ) => this . request < ShortBlob , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/blobs` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request gitGetBlob : ( owner , repo , fileSha , params = { } ) => this . request < Blob , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/blobs/${ fileSha }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request gitCreateCommit : ( owner , repo , data , params = { } ) => this . request < GitCommit , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/commits` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request gitGetCommit : ( owner , repo , commitSha , params = { } ) => this . request < GitCommit , BasicError > ( { path : `/repos/${ owner }/${ repo }/git/commits/${ commitSha }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request gitListMatchingRefs : ( owner , repo , ref , query ? , params = { } ) => this . request < GitRef [ ] , any > ( { path : `/repos/${ owner }/${ repo }/git/matching-refs/${ ref }` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request gitGetRef : ( owner , repo , ref , params = { } ) => this . request < GitRef , BasicError > ( { path : `/repos/${ owner }/${ repo }/git/ref/${ ref }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request gitCreateRef : ( owner , repo , data , params = { } ) => this . request < GitRef , ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/refs` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request gitUpdateRef : ( owner , repo , ref , data , params = { } ) => this . request < GitRef , ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request gitDeleteRef : ( owner , repo , ref , params = { } ) => this . request < void , ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/refs/${ ref }` , method : "DELETE" , ... params , } ) , description tags name summary request gitCreateTag : ( owner , repo , data , params = { } ) => this . request < GitTag , ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/tags` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request gitGetTag : ( owner , repo , tagSha , params = { } ) => this . request < GitTag , BasicError > ( { path : `/repos/${ owner }/${ repo }/git/tags/${ tagSha }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request gitCreateTree : ( owner , repo , data , params = { } ) => this . request < GitTree , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/trees` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request gitGetTree : ( owner , repo , treeSha , query ? , params = { } ) => this . request < GitTree , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/git/trees/${ treeSha }` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposListWebhooks : ( owner , repo , query ? , params = { } ) => this . request < Hook [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/hooks` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateWebhook : ( owner , repo , data , params = { } ) => this . request < Hook , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/hooks` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetWebhook : ( owner , repo , hookId , params = { } ) => this . request < Hook , BasicError > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdateWebhook : ( owner , repo , hookId , data , params = { } ) => this . request < Hook , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request reposDeleteWebhook : ( owner , repo , hookId , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetWebhookConfigForRepo : ( owner , repo , hookId , params = { } ) => this . request < WebhookConfig , any > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }/config` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdateWebhookConfigForRepo : ( owner , repo , hookId , data , params = { } ) => this . request < WebhookConfig , any > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }/config` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposPingWebhook : ( owner , repo , hookId , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }/pings` , method : "POST" , ... params , } ) , description tags name summary request reposTestPushWebhook : ( owner , repo , hookId , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/hooks/${ hookId }/tests` , method : "POST" , ... params , } ) , description tags name summary request migrationsGetImportStatus : ( owner , repo , params = { } ) => this . request < Import , BasicError > ( { path : `/repos/${ owner }/${ repo }/import` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request migrationsStartImport : ( owner , repo , data , params = { } ) => this . request < Import , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/import` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request migrationsUpdateImport : ( owner , repo , data , params = { } ) => this . request < Import , any > ( { path : `/repos/${ owner }/${ repo }/import` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request migrationsCancelImport : ( owner , repo , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/import` , method : "DELETE" , ... params , } ) , description tags name summary request migrationsGetCommitAuthors : ( owner , repo , query ? , params = { } ) => this . request < PorterAuthor [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/import/authors` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request migrationsMapCommitAuthor : ( owner , repo , authorId , data , params = { } ) => this . request < PorterAuthor , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/import/authors/${ authorId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request migrationsGetLargeFiles : ( owner , repo , params = { } ) => this . request < PorterLargeFile [ ] , any > ( { path : `/repos/${ owner }/${ repo }/import/large_files` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request migrationsSetLfsPreference : ( owner , repo , data , params = { } ) => this . request < Import , ValidationError > ( { path : `/repos/${ owner }/${ repo }/import/lfs` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request appsGetRepoInstallation : ( owner , repo , params = { } ) => this . request < Installation , BasicError > ( { path : `/repos/${ owner }/${ repo }/installation` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request interactionsGetRestrictionsForRepo : ( owner , repo , params = { } ) => this . request < InteractionLimitResponse , any > ( { path : `/repos/${ owner }/${ repo }/interaction-limits` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request interactionsSetRestrictionsForRepo : ( owner , repo , data , params = { } ) => this . request < InteractionLimitResponse , void > ( { path : `/repos/${ owner }/${ repo }/interaction-limits` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request interactionsRemoveRestrictionsForRepo : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/interaction-limits` , method : "DELETE" , ... params , } ) , description tags name summary request reposListInvitations : ( owner , repo , query ? , params = { } ) => this . request < RepositoryInvitation [ ] , any > ( { path : `/repos/${ owner }/${ repo }/invitations` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposUpdateInvitation : ( owner , repo , invitationId , data , params = { } ) => this . request < RepositoryInvitation , any > ( { path : `/repos/${ owner }/${ repo }/invitations/${ invitationId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request reposDeleteInvitation : ( owner , repo , invitationId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/invitations/${ invitationId }` , method : "DELETE" , ... params , } ) , description tags name summary request issuesListForRepo : ( owner , repo , query ? , params = { } ) => this . request < IssueSimple [ ] , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request issuesCreate : ( owner , repo , data , params = { } ) => this . request < Issue , BasicError | ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/issues` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request issuesListCommentsForRepo : ( owner , repo , query ? , params = { } ) => this . request < IssueComment [ ] , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request issuesGetComment : ( owner , repo , commentId , params = { } ) => this . request < IssueComment , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request issuesUpdateComment : ( owner , repo , commentId , data , params = { } ) => this . request < IssueComment , ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesDeleteComment : ( owner , repo , commentId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description tags name summary request reactionsListForIssueComment : ( owner , repo , commentId , query ? , params = { } ) => this . request < Reaction [ ] , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reactionsCreateForIssueComment : ( owner , repo , commentId , data , params = { } ) => this . request < Reaction , { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reactionsDeleteForIssueComment : ( owner , repo , commentId , reactionId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/issues/comments/${ commentId }/reactions/${ reactionId }` , method : "DELETE" , ... params , } ) , tags name summary request issuesListEventsForRepo : ( owner , repo , query ? , params = { } ) => this . request < IssueEvent [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/events` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request issuesGetEvent : ( owner , repo , eventId , params = { } ) => this . request < IssueEvent , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/events/${ eventId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request issuesGet : ( owner , repo , issueNumber , params = { } ) => this . request < Issue , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request issuesUpdate : ( owner , repo , issueNumber , data , params = { } ) => this . request < Issue , BasicError | ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request issuesAddAssignees : ( owner , repo , issueNumber , data , params = { } ) => this . request < IssueSimple , any > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/assignees` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request issuesRemoveAssignees : ( owner , repo , issueNumber , data , params = { } ) => this . request < IssueSimple , any > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/assignees` , method : "DELETE" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request issuesListComments : ( owner , repo , issueNumber , query ? , params = { } ) => this . request < IssueComment [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request issuesCreateComment : ( owner , repo , issueNumber , data , params = { } ) => this . request < IssueComment , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/comments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesListEvents : ( owner , repo , issueNumber , query ? , params = { } ) => this . request < IssueEventForIssue [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/events` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request issuesListLabelsOnIssue : ( owner , repo , issueNumber , query ? , params = { } ) => this . request < Label [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/labels` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request issuesAddLabels : ( owner , repo , issueNumber , data , params = { } ) => this . request < Label [ ] , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/labels` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request issuesSetLabels : ( owner , repo , issueNumber , data , params = { } ) => this . request < Label [ ] , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/labels` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesRemoveAllLabels : ( owner , repo , issueNumber , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/labels` , method : "DELETE" , ... params , } ) , description tags name summary request issuesRemoveLabel : ( owner , repo , issueNumber , name , params = { } ) => this . request < Label [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/labels/${ name }` , method : "DELETE" , format : "json" , ... params , } ) , description tags name summary request issuesLock : ( owner , repo , issueNumber , data , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/lock` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request issuesUnlock : ( owner , repo , issueNumber , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/lock` , method : "DELETE" , ... params , } ) , description tags name summary request reactionsListForIssue : ( owner , repo , issueNumber , query ? , params = { } ) => this . request < Reaction [ ] , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reactionsCreateForIssue : ( owner , repo , issueNumber , data , params = { } ) => this . request < Reaction , { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reactionsDeleteForIssue : ( owner , repo , issueNumber , reactionId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/reactions/${ reactionId }` , method : "DELETE" , ... params , } ) , tags name summary request issuesListEventsForTimeline : ( owner , repo , issueNumber , query ? , params = { } ) => this . request < IssueEventForIssue [ ] , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/issues/${ issueNumber }/timeline` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposListDeployKeys : ( owner , repo , query ? , params = { } ) => this . request < DeployKey [ ] , any > ( { path : `/repos/${ owner }/${ repo }/keys` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateDeployKey : ( owner , repo , data , params = { } ) => this . request < DeployKey , ValidationError > ( { path : `/repos/${ owner }/${ repo }/keys` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request reposGetDeployKey : ( owner , repo , keyId , params = { } ) => this . request < DeployKey , BasicError > ( { path : `/repos/${ owner }/${ repo }/keys/${ keyId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposDeleteDeployKey : ( owner , repo , keyId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/keys/${ keyId }` , method : "DELETE" , ... params , } ) , tags name summary request issuesListLabelsForRepo : ( owner , repo , query ? , params = { } ) => this . request < Label [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/labels` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request issuesCreateLabel : ( owner , repo , data , params = { } ) => this . request < Label , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/labels` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesGetLabel : ( owner , repo , name , params = { } ) => this . request < Label , BasicError > ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request issuesUpdateLabel : ( owner , repo , name , data , params = { } ) => this . request < Label , any > ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesDeleteLabel : ( owner , repo , name , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/labels/${ name }` , method : "DELETE" , ... params , } ) , description tags name summary request reposListLanguages : ( owner , repo , params = { } ) => this . request < Language , any > ( { path : `/repos/${ owner }/${ repo }/languages` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request licensesGetForRepo : ( owner , repo , params = { } ) => this . request < LicenseContent , any > ( { path : `/repos/${ owner }/${ repo }/license` , method : "GET" , format : "json" , ... params , } ) , tags name summary request reposMerge : ( owner , repo , data , params = { } ) => this . request < Commit , BasicError | { message ? : string ; documentation_url ? : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/merges` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesListMilestones : ( owner , repo , query ? , params = { } ) => this . request < Milestone [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/milestones` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request issuesCreateMilestone : ( owner , repo , data , params = { } ) => this . request < Milestone , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/milestones` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesGetMilestone : ( owner , repo , milestoneNumber , params = { } ) => this . request < Milestone , BasicError > ( { path : `/repos/${ owner }/${ repo }/milestones/${ milestoneNumber }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request issuesUpdateMilestone : ( owner , repo , milestoneNumber , data , params = { } ) => this . request < Milestone , any > ( { path : `/repos/${ owner }/${ repo }/milestones/${ milestoneNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request issuesDeleteMilestone : ( owner , repo , milestoneNumber , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/milestones/${ milestoneNumber }` , method : "DELETE" , ... params , } ) , tags name summary request issuesListLabelsForMilestone : ( owner , repo , milestoneNumber , query ? , params = { } ) => this . request < Label [ ] , any > ( { path : `/repos/${ owner }/${ repo }/milestones/${ milestoneNumber }/labels` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request activityListRepoNotificationsForAuthenticatedUser : ( owner , repo , query ? , params = { } ) => this . request < Thread [ ] , any > ( { path : `/repos/${ owner }/${ repo }/notifications` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request activityMarkRepoNotificationsAsRead : ( owner , repo , data , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/notifications` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , tags name summary request reposGetPages : ( owner , repo , params = { } ) => this . request < Page , BasicError > ( { path : `/repos/${ owner }/${ repo }/pages` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposCreatePagesSite : ( owner , repo , data , params = { } ) => this . request < Page , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pages` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposUpdateInformationAboutPagesSite : ( owner , repo , data , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pages` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , tags name summary request reposDeletePagesSite : ( owner , repo , params = { } ) => this . request < void , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pages` , method : "DELETE" , ... params , } ) , tags name summary request reposListPagesBuilds : ( owner , repo , query ? , params = { } ) => this . request < PageBuild [ ] , any > ( { path : `/repos/${ owner }/${ repo }/pages/builds` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposRequestPagesBuild : ( owner , repo , params = { } ) => this . request < PageBuildStatus , any > ( { path : `/repos/${ owner }/${ repo }/pages/builds` , method : "POST" , format : "json" , ... params , } ) , tags name summary request reposGetLatestPagesBuild : ( owner , repo , params = { } ) => this . request < PageBuild , any > ( { path : `/repos/${ owner }/${ repo }/pages/builds/latest` , method : "GET" , format : "json" , ... params , } ) , tags name summary request reposGetPagesBuild : ( owner , repo , buildId , params = { } ) => this . request < PageBuild , any > ( { path : `/repos/${ owner }/${ repo }/pages/builds/${ buildId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request projectsListForRepo : ( owner , repo , query ? , params = { } ) => this . request < Project [ ] , BasicError | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/projects` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request projectsCreateForRepo : ( owner , repo , data , params = { } ) => this . request < Project , BasicError | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/projects` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request pullsList : ( owner , repo , query ? , params = { } ) => this . request < PullRequestSimple [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request pullsCreate : ( owner , repo , data , params = { } ) => this . request < PullRequest , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request pullsListReviewCommentsForRepo : ( owner , repo , query ? , params = { } ) => this . request < PullRequestReviewComment [ ] , any > ( { path : `/repos/${ owner }/${ repo }/pulls/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request pullsGetReviewComment : ( owner , repo , commentId , params = { } ) => this . request < PullRequestReviewComment , BasicError > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request pullsUpdateReviewComment : ( owner , repo , commentId , data , params = { } ) => this . request < PullRequestReviewComment , any > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request pullsDeleteReviewComment : ( owner , repo , commentId , params = { } ) => this . request < void , BasicError > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }` , method : "DELETE" , ... params , } ) , description tags name summary request reactionsListForPullRequestReviewComment : ( owner , repo , commentId , query ? , params = { } ) => this . request < Reaction [ ] , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reactionsCreateForPullRequestReviewComment : ( owner , repo , commentId , data , params = { } ) => this . request < Reaction , { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reactionsDeleteForPullRequestComment : ( owner , repo , commentId , reactionId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/pulls/comments/${ commentId }/reactions/${ reactionId }` , method : "DELETE" , ... params , } ) , description tags name summary request pullsGet : ( owner , repo , pullNumber , params = { } ) => this . request < PullRequest , BasicError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request pullsUpdate : ( owner , repo , pullNumber , data , params = { } ) => this . request < PullRequest , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request pullsListReviewComments : ( owner , repo , pullNumber , query ? , params = { } ) => this . request < PullRequestReviewComment [ ] , any > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request pullsCreateReviewComment : ( owner , repo , pullNumber , data , params = { } ) => this . request < PullRequestReviewComment , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/comments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request pullsCreateReplyForReviewComment : ( owner , repo , pullNumber , commentId , data , params = { } ) => this . request < PullRequestReviewComment , BasicError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/comments/${ commentId }/replies` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request pullsListCommits : ( owner , repo , pullNumber , query ? , params = { } ) => this . request < Commit [ ] , any > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/commits` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request pullsListFiles : ( owner , repo , pullNumber , query ? , params = { } ) => this . request < DiffEntry [ ] , ValidationError | BasicError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/files` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request pullsCheckIfMerged : ( owner , repo , pullNumber , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/merge` , method : "GET" , ... params , } ) , description tags name summary request pullsMerge : ( owner , repo , pullNumber , data , params = { } ) => this . request < PullRequestMergeResult , BasicError | { message ? : string ; documentation_url ? : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/merge` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request pullsListRequestedReviewers : ( owner , repo , pullNumber , query ? , params = { } ) => this . request < PullRequestReviewRequest , any > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/requested_reviewers` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request pullsRequestReviewers : ( owner , repo , pullNumber , data , params = { } ) => this . request < PullRequestSimple , BasicError | void > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/requested_reviewers` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request pullsRemoveRequestedReviewers : ( owner , repo , pullNumber , data , params = { } ) => this . request < void , ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/requested_reviewers` , method : "DELETE" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request pullsListReviews : ( owner , repo , pullNumber , query ? , params = { } ) => this . request < PullRequestReview [ ] , any > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request pullsCreateReview : ( owner , repo , pullNumber , data , params = { } ) => this . request < PullRequestReview , BasicError | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request pullsGetReview : ( owner , repo , pullNumber , reviewId , params = { } ) => this . request < PullRequestReview , BasicError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews/${ reviewId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request pullsUpdateReview : ( owner , repo , pullNumber , reviewId , data , params = { } ) => this . request < PullRequestReview , ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews/${ reviewId }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request pullsDeletePendingReview : ( owner , repo , pullNumber , reviewId , params = { } ) => this . request < PullRequestReview , BasicError | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews/${ reviewId }` , method : "DELETE" , format : "json" , ... params , } ) , description tags name summary request pullsListCommentsForReview : ( owner , repo , pullNumber , reviewId , query ? , params = { } ) => this . request < ReviewComment [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews/${ reviewId }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request pullsDismissReview : ( owner , repo , pullNumber , reviewId , data , params = { } ) => this . request < PullRequestReview , BasicError | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews/${ reviewId }/dismissals` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request pullsSubmitReview : ( owner , repo , pullNumber , reviewId , data , params = { } ) => this . request < PullRequestReview , BasicError | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/reviews/${ reviewId }/events` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request pullsUpdateBranch : ( owner , repo , pullNumber , data , params = { } ) => this . request < { message ? : string ; url ? : string ; } , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/repos/${ owner }/${ repo }/pulls/${ pullNumber }/update-branch` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetReadme : ( owner , repo , query ? , params = { } ) => this . request < ContentFile , BasicError | ValidationError > ( { path : `/repos/${ owner }/${ repo }/readme` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposListReleases : ( owner , repo , query ? , params = { } ) => this . request < Release [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/releases` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateRelease : ( owner , repo , data , params = { } ) => this . request < Release , ValidationError > ( { path : `/repos/${ owner }/${ repo }/releases` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetReleaseAsset : ( owner , repo , assetId , params = { } ) => this . request < ReleaseAsset , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ assetId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdateReleaseAsset : ( owner , repo , assetId , data , params = { } ) => this . request < ReleaseAsset , any > ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ assetId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request reposDeleteReleaseAsset : ( owner , repo , assetId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/releases/assets/${ assetId }` , method : "DELETE" , ... params , } ) , description tags name summary request reposGetLatestRelease : ( owner , repo , params = { } ) => this . request < Release , any > ( { path : `/repos/${ owner }/${ repo }/releases/latest` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetReleaseByTag : ( owner , repo , tag , params = { } ) => this . request < Release , BasicError > ( { path : `/repos/${ owner }/${ repo }/releases/tags/${ tag }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetRelease : ( owner , repo , releaseId , params = { } ) => this . request < Release , BasicError > ( { path : `/repos/${ owner }/${ repo }/releases/${ releaseId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposUpdateRelease : ( owner , repo , releaseId , data , params = { } ) => this . request < Release , any > ( { path : `/repos/${ owner }/${ repo }/releases/${ releaseId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposDeleteRelease : ( owner , repo , releaseId , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/releases/${ releaseId }` , method : "DELETE" , ... params , } ) , tags name summary request reposListReleaseAssets : ( owner , repo , releaseId , query ? , params = { } ) => this . request < ReleaseAsset [ ] , any > ( { path : `/repos/${ owner }/${ repo }/releases/${ releaseId }/assets` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposUploadReleaseAsset : ( owner , repo , releaseId , data , query ? , params = { } ) => this . request < ReleaseAsset , any > ( { path : `/repos/${ owner }/${ repo }/releases/${ releaseId }/assets` , method : "POST" , query : query , body : data , format : "json" , ... params , } ) , description tags name summary request secretScanningListAlertsForRepo : ( owner , repo , query ? , params = { } ) => this . request < SecretScanningAlert [ ] , void | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/secret-scanning/alerts` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request secretScanningGetAlert : ( owner , repo , alertNumber , params = { } ) => this . request < SecretScanningAlert , void | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/secret-scanning/alerts/${ alertNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request secretScanningUpdateAlert : ( owner , repo , alertNumber , data , params = { } ) => this . request < SecretScanningAlert , void | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/repos/${ owner }/${ repo }/secret-scanning/alerts/${ alertNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request activityListStargazersForRepo : ( owner , repo , query ? , params = { } ) => this . request < SimpleUser [ ] , ValidationError > ( { path : `/repos/${ owner }/${ repo }/stargazers` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposGetCodeFrequencyStats : ( owner , repo , params = { } ) => this . request < CodeFrequencyStat [ ] , any > ( { path : `/repos/${ owner }/${ repo }/stats/code_frequency` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetCommitActivityStats : ( owner , repo , params = { } ) => this . request < CommitActivity [ ] , any > ( { path : `/repos/${ owner }/${ repo }/stats/commit_activity` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetContributorsStats : ( owner , repo , params = { } ) => this . request < ContributorActivity [ ] , any > ( { path : `/repos/${ owner }/${ repo }/stats/contributors` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetParticipationStats : ( owner , repo , params = { } ) => this . request < ParticipationStats , BasicError > ( { path : `/repos/${ owner }/${ repo }/stats/participation` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetPunchCardStats : ( owner , repo , params = { } ) => this . request < CodeFrequencyStat [ ] , any > ( { path : `/repos/${ owner }/${ repo }/stats/punch_card` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposCreateCommitStatus : ( owner , repo , sha , data , params = { } ) => this . request < Status , any > ( { path : `/repos/${ owner }/${ repo }/statuses/${ sha }` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request activityListWatchersForRepo : ( owner , repo , query ? , params = { } ) => this . request < SimpleUser [ ] , any > ( { path : `/repos/${ owner }/${ repo }/subscribers` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request activityGetRepoSubscription : ( owner , repo , params = { } ) => this . request < RepositorySubscription , BasicError | void > ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request activitySetRepoSubscription : ( owner , repo , data , params = { } ) => this . request < RepositorySubscription , any > ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request activityDeleteRepoSubscription : ( owner , repo , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/subscription` , method : "DELETE" , ... params , } ) , tags name summary request reposListTags : ( owner , repo , query ? , params = { } ) => this . request < Tag [ ] , any > ( { path : `/repos/${ owner }/${ repo }/tags` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposDownloadTarballArchive : ( owner , repo , ref , params = { } ) => this . request < any , void > ( { path : `/repos/${ owner }/${ repo }/tarball/${ ref }` , method : "GET" , ... params , } ) , tags name summary request reposListTeams : ( owner , repo , query ? , params = { } ) => this . request < Team [ ] , any > ( { path : `/repos/${ owner }/${ repo }/teams` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposGetAllTopics : ( owner , repo , params = { } ) => this . request < Topic , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/repos/${ owner }/${ repo }/topics` , method : "GET" , format : "json" , ... params , } ) , tags name summary request reposReplaceAllTopics : ( owner , repo , data , params = { } ) => this . request < Topic , BasicError | { message : string ; documentation_url : string ; } | ValidationErrorSimple > ( { path : `/repos/${ owner }/${ repo }/topics` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposGetClones : ( owner , repo , query ? , params = { } ) => this . request < CloneTraffic , BasicError > ( { path : `/repos/${ owner }/${ repo }/traffic/clones` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposGetTopPaths : ( owner , repo , params = { } ) => this . request < ContentTraffic [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/traffic/popular/paths` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetTopReferrers : ( owner , repo , params = { } ) => this . request < ReferrerTraffic [ ] , BasicError > ( { path : `/repos/${ owner }/${ repo }/traffic/popular/referrers` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request reposGetViews : ( owner , repo , query ? , params = { } ) => this . request < ViewTraffic , BasicError > ( { path : `/repos/${ owner }/${ repo }/traffic/views` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposTransfer : ( owner , repo , data , params = { } ) => this . request < Repository , any > ( { path : `/repos/${ owner }/${ repo }/transfer` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposCheckVulnerabilityAlerts : ( owner , repo , params = { } ) => this . request < void , void > ( { path : `/repos/${ owner }/${ repo }/vulnerability-alerts` , method : "GET" , ... params , } ) , description tags name summary request reposEnableVulnerabilityAlerts : ( owner , repo , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/vulnerability-alerts` , method : "PUT" , ... params , } ) , description tags name summary request reposDisableVulnerabilityAlerts : ( owner , repo , params = { } ) => this . request < void , any > ( { path : `/repos/${ owner }/${ repo }/vulnerability-alerts` , method : "DELETE" , ... params , } ) , description tags name summary request reposDownloadZipballArchive : ( owner , repo , ref , params = { } ) => this . request < any , void > ( { path : `/repos/${ owner }/${ repo }/zipball/${ ref }` , method : "GET" , ... params , } ) , description tags name summary request reposCreateUsingTemplate : ( templateOwner , templateRepo , data , params = { } ) => this . request < Repository , any > ( { path : `/repos/${ templateOwner }/${ templateRepo }/generate` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , } ; repositories = { description tags name summary request reposListPublic : ( query ? , params = { } ) => this . request < MinimalRepository [ ] , ValidationError > ( { path : `/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; scim = { description tags name summary request enterpriseAdminListProvisionedGroupsEnterprise : ( enterprise , query ? , params = { } ) => this . request < ScimGroupListEnterprise , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Groups` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminProvisionAndInviteEnterpriseGroup : ( enterprise , data , params = { } ) => this . request < ScimEnterpriseGroup , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Groups` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminGetProvisioningInformationForEnterpriseGroup : ( enterprise , scimGroupId , params = { } ) => this . request < ScimEnterpriseGroup , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Groups/${ scimGroupId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminSetInformationForProvisionedEnterpriseGroup : ( enterprise , scimGroupId , data , params = { } ) => this . request < ScimEnterpriseGroup , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Groups/${ scimGroupId }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminUpdateAttributeForEnterpriseGroup : ( enterprise , scimGroupId , data , params = { } ) => this . request < ScimEnterpriseGroup , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Groups/${ scimGroupId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminDeleteScimGroupFromEnterprise : ( enterprise , scimGroupId , params = { } ) => this . request < void , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Groups/${ scimGroupId }` , method : "DELETE" , ... params , } ) , description tags name summary request enterpriseAdminListProvisionedIdentitiesEnterprise : ( enterprise , query ? , params = { } ) => this . request < ScimUserListEnterprise , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Users` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminProvisionAndInviteEnterpriseUser : ( enterprise , data , params = { } ) => this . request < ScimEnterpriseUser , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Users` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminGetProvisioningInformationForEnterpriseUser : ( enterprise , scimUserId , params = { } ) => this . request < ScimEnterpriseUser , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Users/${ scimUserId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminSetInformationForProvisionedEnterpriseUser : ( enterprise , scimUserId , data , params = { } ) => this . request < ScimEnterpriseUser , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Users/${ scimUserId }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminUpdateAttributeForEnterpriseUser : ( enterprise , scimUserId , data , params = { } ) => this . request < ScimEnterpriseUser , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Users/${ scimUserId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request enterpriseAdminDeleteUserFromEnterprise : ( enterprise , scimUserId , params = { } ) => this . request < void , any > ( { path : `/scim/v2/enterprises/${ enterprise }/Users/${ scimUserId }` , method : "DELETE" , ... params , } ) , description tags name summary request scimListProvisionedIdentities : ( org , query ? , params = { } ) => this . request < ScimUserList , ScimError > ( { path : `/scim/v2/organizations/${ org }/Users` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request scimProvisionAndInviteUser : ( org , data , params = { } ) => this . request < ScimUser , ScimError > ( { path : `/scim/v2/organizations/${ org }/Users` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request scimGetProvisioningInformationForUser : ( org , scimUserId , params = { } ) => this . request < ScimUser , ScimError > ( { path : `/scim/v2/organizations/${ org }/Users/${ scimUserId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request scimSetInformationForProvisionedUser : ( org , scimUserId , data , params = { } ) => this . request < ScimUser , ScimError > ( { path : `/scim/v2/organizations/${ org }/Users/${ scimUserId }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request scimUpdateAttributeForUser : ( org , scimUserId , data , params = { } ) => this . request < ScimUser , ScimError | BasicError > ( { path : `/scim/v2/organizations/${ org }/Users/${ scimUserId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , tags name summary request scimDeleteUserFromOrg : ( org , scimUserId , params = { } ) => this . request < void , ScimError > ( { path : `/scim/v2/organizations/${ org }/Users/${ scimUserId }` , method : "DELETE" , ... params , } ) , } ; search = { description tags name summary request searchCode : ( query , params = { } ) => this . request < { total_count : number ; incomplete_results : boolean ; items : CodeSearchResultItem [ ] ; } , BasicError | ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/search/code` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request searchCommits : ( query , params = { } ) => this . request < { total_count : number ; incomplete_results : boolean ; items : CommitSearchResultItem [ ] ; } , { message : string ; documentation_url : string ; } > ( { path : `/search/commits` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request searchIssuesAndPullRequests : ( query , params = { } ) => this . request < { total_count : number ; incomplete_results : boolean ; items : IssueSearchResultItem [ ] ; } , BasicError | ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/search/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request searchLabels : ( query , params = { } ) => this . request < { total_count : number ; incomplete_results : boolean ; items : LabelSearchResultItem [ ] ; } , BasicError | ValidationError > ( { path : `/search/labels` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request searchRepos : ( query , params = { } ) => this . request < { total_count : number ; incomplete_results : boolean ; items : RepoSearchResultItem [ ] ; } , ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/search/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request searchTopics : ( query , params = { } ) => this . request < { total_count : number ; incomplete_results : boolean ; items : TopicSearchResultItem [ ] ; } , { message : string ; documentation_url : string ; } > ( { path : `/search/topics` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request searchUsers : ( query , params = { } ) => this . request < { total_count : number ; incomplete_results : boolean ; items : UserSearchResultItem [ ] ; } , ValidationError | { code ? : string ; message ? : string ; documentation_url ? : string ; } > ( { path : `/search/users` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; teams = { description tags name summary request deprecated teamsGetLegacy : ( teamId , params = { } ) => this . request < TeamFull , BasicError > ( { path : `/teams/${ teamId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated teamsUpdateLegacy : ( teamId , data , params = { } ) => this . request < TeamFull , BasicError | ValidationError > ( { path : `/teams/${ teamId }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsDeleteLegacy : ( teamId , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/teams/${ teamId }` , method : "DELETE" , ... params , } ) , description tags name summary request deprecated teamsListDiscussionsLegacy : ( teamId , query ? , params = { } ) => this . request < TeamDiscussion [ ] , any > ( { path : `/teams/${ teamId }/discussions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated teamsCreateDiscussionLegacy : ( teamId , data , params = { } ) => this . request < TeamDiscussion , any > ( { path : `/teams/${ teamId }/discussions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsGetDiscussionLegacy : ( teamId , discussionNumber , params = { } ) => this . request < TeamDiscussion , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated teamsUpdateDiscussionLegacy : ( teamId , discussionNumber , data , params = { } ) => this . request < TeamDiscussion , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsDeleteDiscussionLegacy : ( teamId , discussionNumber , params = { } ) => this . request < void , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }` , method : "DELETE" , ... params , } ) , description tags name summary request deprecated teamsListDiscussionCommentsLegacy : ( teamId , discussionNumber , query ? , params = { } ) => this . request < TeamDiscussionComment [ ] , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/comments` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated teamsCreateDiscussionCommentLegacy : ( teamId , discussionNumber , data , params = { } ) => this . request < TeamDiscussionComment , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/comments` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsGetDiscussionCommentLegacy : ( teamId , discussionNumber , commentNumber , params = { } ) => this . request < TeamDiscussionComment , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/comments/${ commentNumber }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated teamsUpdateDiscussionCommentLegacy : ( teamId , discussionNumber , commentNumber , data , params = { } ) => this . request < TeamDiscussionComment , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/comments/${ commentNumber }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsDeleteDiscussionCommentLegacy : ( teamId , discussionNumber , commentNumber , params = { } ) => this . request < void , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/comments/${ commentNumber }` , method : "DELETE" , ... params , } ) , description tags name summary request deprecated reactionsListForTeamDiscussionCommentLegacy : ( teamId , discussionNumber , commentNumber , query ? , params = { } ) => this . request < Reaction [ ] , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/comments/${ commentNumber }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated reactionsCreateForTeamDiscussionCommentLegacy : ( teamId , discussionNumber , commentNumber , data , params = { } ) => this . request < Reaction , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/comments/${ commentNumber }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated reactionsListForTeamDiscussionLegacy : ( teamId , discussionNumber , query ? , params = { } ) => this . request < Reaction [ ] , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/reactions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated reactionsCreateForTeamDiscussionLegacy : ( teamId , discussionNumber , data , params = { } ) => this . request < Reaction , any > ( { path : `/teams/${ teamId }/discussions/${ discussionNumber }/reactions` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsListPendingInvitationsLegacy : ( teamId , query ? , params = { } ) => this . request < OrganizationInvitation [ ] , any > ( { path : `/teams/${ teamId }/invitations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated teamsListMembersLegacy : ( teamId , query ? , params = { } ) => this . request < SimpleUser [ ] , BasicError > ( { path : `/teams/${ teamId }/members` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated teamsGetMemberLegacy : ( teamId , username , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }/members/${ username }` , method : "GET" , ... params , } ) , description tags name summary request deprecated teamsAddMemberLegacy : ( teamId , username , params = { } ) => this . request < void , BasicError | void | { message ? : string ; errors ? : { code ? : string ; field ? : string ; resource ? : string ; } [ ] ; documentation_url ? : string ; } > ( { path : `/teams/${ teamId }/members/${ username }` , method : "PUT" , ... params , } ) , description tags name summary request deprecated teamsRemoveMemberLegacy : ( teamId , username , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }/members/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request deprecated teamsGetMembershipForUserLegacy : ( teamId , username , params = { } ) => this . request < TeamMembership , BasicError > ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated teamsAddOrUpdateMembershipForUserLegacy : ( teamId , username , data , params = { } ) => this . request < TeamMembership , void | BasicError | { message ? : string ; errors ? : { code ? : string ; field ? : string ; resource ? : string ; } [ ] ; documentation_url ? : string ; } > ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsRemoveMembershipForUserLegacy : ( teamId , username , params = { } ) => this . request < void , void > ( { path : `/teams/${ teamId }/memberships/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request deprecated teamsListProjectsLegacy : ( teamId , query ? , params = { } ) => this . request < TeamProject [ ] , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/teams/${ teamId }/projects` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated teamsCheckPermissionsForProjectLegacy : ( teamId , projectId , params = { } ) => this . request < TeamProject , void | { message : string ; documentation_url : string ; } > ( { path : `/teams/${ teamId }/projects/${ projectId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated teamsAddOrUpdateProjectPermissionsLegacy : ( teamId , projectId , data , params = { } ) => this . request < void , { message ? : string ; documentation_url ? : string ; } | BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/teams/${ teamId }/projects/${ projectId }` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request deprecated teamsRemoveProjectLegacy : ( teamId , projectId , params = { } ) => this . request < void , BasicError | { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/teams/${ teamId }/projects/${ projectId }` , method : "DELETE" , ... params , } ) , description tags name summary request deprecated teamsListReposLegacy : ( teamId , query ? , params = { } ) => this . request < MinimalRepository [ ] , BasicError > ( { path : `/teams/${ teamId }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request deprecated teamsCheckPermissionsForRepoLegacy : ( teamId , owner , repo , params = { } ) => this . request < TeamRepository , void > ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated teamsAddOrUpdateRepoPermissionsLegacy : ( teamId , owner , repo , data , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "PUT" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request deprecated teamsRemoveRepoLegacy : ( teamId , owner , repo , params = { } ) => this . request < void , any > ( { path : `/teams/${ teamId }/repos/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description tags name summary request deprecated teamsListIdpGroupsForLegacy : ( teamId , params = { } ) => this . request < GroupMapping , BasicError > ( { path : `/teams/${ teamId }/team-sync/group-mappings` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request deprecated teamsCreateOrUpdateIdpGroupConnectionsLegacy : ( teamId , data , params = { } ) => this . request < GroupMapping , BasicError | ValidationError > ( { path : `/teams/${ teamId }/team-sync/group-mappings` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request deprecated teamsListChildLegacy : ( teamId , query ? , params = { } ) => this . request < Team [ ] , BasicError | ValidationError > ( { path : `/teams/${ teamId }/teams` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; user = { description tags name summary request usersGetAuthenticated : ( params = { } ) => this . request < PrivateUser | PublicUser , BasicError > ( { path : `/user` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request usersUpdateAuthenticated : ( data , params = { } ) => this . request < PrivateUser , BasicError | ValidationError > ( { path : `/user` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request usersListBlockedByAuthenticated : ( params = { } ) => this . request < SimpleUser [ ] , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/user/blocks` , method : "GET" , format : "json" , ... params , } ) , tags name summary request usersCheckBlocked : ( username , params = { } ) => this . request < void , BasicError > ( { path : `/user/blocks/${ username }` , method : "GET" , ... params , } ) , tags name summary request usersBlock : ( username , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/user/blocks/${ username }` , method : "PUT" , ... params , } ) , tags name summary request usersUnblock : ( username , params = { } ) => this . request < void , BasicError > ( { path : `/user/blocks/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request usersSetPrimaryEmailVisibilityForAuthenticated : ( data , params = { } ) => this . request < Email [ ] , BasicError | ValidationError > ( { path : `/user/email/visibility` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request usersListEmailsForAuthenticated : ( query ? , params = { } ) => this . request < Email [ ] , BasicError > ( { path : `/user/emails` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersAddEmailForAuthenticated : ( data , params = { } ) => this . request < Email [ ] , BasicError | ValidationError > ( { path : `/user/emails` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request usersDeleteEmailForAuthenticated : ( data , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/user/emails` , method : "DELETE" , body : data , type : ContentType . Json , ... params , } ) , description tags name summary request usersListFollowersForAuthenticatedUser : ( query ? , params = { } ) => this . request < SimpleUser [ ] , BasicError > ( { path : `/user/followers` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersListFollowedByAuthenticated : ( query ? , params = { } ) => this . request < SimpleUser [ ] , BasicError > ( { path : `/user/following` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request usersCheckPersonIsFollowedByAuthenticated : ( username , params = { } ) => this . request < void , BasicError > ( { path : `/user/following/${ username }` , method : "GET" , ... params , } ) , description tags name summary request usersFollow : ( username , params = { } ) => this . request < void , BasicError > ( { path : `/user/following/${ username }` , method : "PUT" , ... params , } ) , description tags name summary request usersUnfollow : ( username , params = { } ) => this . request < void , BasicError > ( { path : `/user/following/${ username }` , method : "DELETE" , ... params , } ) , description tags name summary request usersListGpgKeysForAuthenticated : ( query ? , params = { } ) => this . request < GpgKey [ ] , BasicError > ( { path : `/user/gpg_keys` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersCreateGpgKeyForAuthenticated : ( data , params = { } ) => this . request < GpgKey , BasicError | ValidationError > ( { path : `/user/gpg_keys` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request usersGetGpgKeyForAuthenticated : ( gpgKeyId , params = { } ) => this . request < GpgKey , BasicError > ( { path : `/user/gpg_keys/${ gpgKeyId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request usersDeleteGpgKeyForAuthenticated : ( gpgKeyId , params = { } ) => this . request < void , BasicError | ValidationError > ( { path : `/user/gpg_keys/${ gpgKeyId }` , method : "DELETE" , ... params , } ) , description tags name summary request appsListInstallationsForAuthenticatedUser : ( query ? , params = { } ) => this . request < { total_count : number ; installations : Installation [ ] ; } , BasicError | { message : string ; documentation_url : string ; } > ( { path : `/user/installations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsListInstallationReposForAuthenticatedUser : ( installationId , query ? , params = { } ) => this . request < { total_count : number ; repository_selection ? : string ; repositories : Repository [ ] ; } , BasicError > ( { path : `/user/installations/${ installationId }/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsAddRepoToInstallation : ( installationId , repositoryId , params = { } ) => this . request < void , BasicError > ( { path : `/user/installations/${ installationId }/repositories/${ repositoryId }` , method : "PUT" , ... params , } ) , description tags name summary request appsRemoveRepoFromInstallation : ( installationId , repositoryId , params = { } ) => this . request < void , BasicError > ( { path : `/user/installations/${ installationId }/repositories/${ repositoryId }` , method : "DELETE" , ... params , } ) , description tags name summary request interactionsGetRestrictionsForAuthenticatedUser : ( params = { } ) => this . request < InteractionLimitResponse , any > ( { path : `/user/interaction-limits` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request interactionsSetRestrictionsForAuthenticatedUser : ( data , params = { } ) => this . request < InteractionLimitResponse , ValidationError > ( { path : `/user/interaction-limits` , method : "PUT" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request interactionsRemoveRestrictionsForAuthenticatedUser : ( params = { } ) => this . request < void , any > ( { path : `/user/interaction-limits` , method : "DELETE" , ... params , } ) , description tags name summary request issuesListForAuthenticatedUser : ( query ? , params = { } ) => this . request < Issue [ ] , BasicError > ( { path : `/user/issues` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersListPublicSshKeysForAuthenticated : ( query ? , params = { } ) => this . request < Key [ ] , BasicError > ( { path : `/user/keys` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersCreatePublicSshKeyForAuthenticated : ( data , params = { } ) => this . request < Key , BasicError | ValidationError > ( { path : `/user/keys` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request usersGetPublicSshKeyForAuthenticated : ( keyId , params = { } ) => this . request < Key , BasicError > ( { path : `/user/keys/${ keyId }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request usersDeletePublicSshKeyForAuthenticated : ( keyId , params = { } ) => this . request < void , BasicError > ( { path : `/user/keys/${ keyId }` , method : "DELETE" , ... params , } ) , description tags name summary request appsListSubscriptionsForAuthenticatedUser : ( query ? , params = { } ) => this . request < UserMarketplacePurchase [ ] , BasicError > ( { path : `/user/marketplace_purchases` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsListSubscriptionsForAuthenticatedUserStubbed : ( query ? , params = { } ) => this . request < UserMarketplacePurchase [ ] , BasicError > ( { path : `/user/marketplace_purchases/stubbed` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request orgsListMembershipsForAuthenticatedUser : ( query ? , params = { } ) => this . request < OrgMembership [ ] , BasicError | ValidationError > ( { path : `/user/memberships/orgs` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request orgsGetMembershipForAuthenticatedUser : ( org , params = { } ) => this . request < OrgMembership , BasicError > ( { path : `/user/memberships/orgs/${ org }` , method : "GET" , format : "json" , ... params , } ) , tags name summary request orgsUpdateMembershipForAuthenticatedUser : ( org , data , params = { } ) => this . request < OrgMembership , BasicError | ValidationError > ( { path : `/user/memberships/orgs/${ org }` , method : "PATCH" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request migrationsListForAuthenticatedUser : ( query ? , params = { } ) => this . request < Migration [ ] , BasicError > ( { path : `/user/migrations` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request migrationsStartForAuthenticatedUser : ( data , params = { } ) => this . request < Migration , BasicError | ValidationError > ( { path : `/user/migrations` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request migrationsGetStatusForAuthenticatedUser : ( migrationId , query ? , params = { } ) => this . request < Migration , BasicError > ( { path : `/user/migrations/${ migrationId }` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request migrationsGetArchiveForAuthenticatedUser : ( migrationId , params = { } ) => this . request < any , void | BasicError > ( { path : `/user/migrations/${ migrationId }/archive` , method : "GET" , ... params , } ) , description tags name summary request migrationsDeleteArchiveForAuthenticatedUser : ( migrationId , params = { } ) => this . request < void , BasicError > ( { path : `/user/migrations/${ migrationId }/archive` , method : "DELETE" , ... params , } ) , description tags name summary request migrationsUnlockRepoForAuthenticatedUser : ( migrationId , repoName , params = { } ) => this . request < void , BasicError > ( { path : `/user/migrations/${ migrationId }/repos/${ repoName }/lock` , method : "DELETE" , ... params , } ) , description tags name summary request migrationsListReposForUser : ( migrationId , query ? , params = { } ) => this . request < MinimalRepository [ ] , BasicError > ( { path : `/user/migrations/${ migrationId }/repositories` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsListForAuthenticatedUser : ( query ? , params = { } ) => this . request < OrganizationSimple [ ] , BasicError > ( { path : `/user/orgs` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request projectsCreateForAuthenticatedUser : ( data , params = { } ) => this . request < Project , BasicError | { message : string ; documentation_url : string ; } | ValidationErrorSimple > ( { path : `/user/projects` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request usersListPublicEmailsForAuthenticated : ( query ? , params = { } ) => this . request < Email [ ] , BasicError > ( { path : `/user/public_emails` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposListForAuthenticatedUser : ( query ? , params = { } ) => this . request < Repository [ ] , BasicError | ValidationError > ( { path : `/user/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposCreateForAuthenticatedUser : ( data , params = { } ) => this . request < Repository , BasicError | ValidationError > ( { path : `/user/repos` , method : "POST" , body : data , type : ContentType . Json , format : "json" , ... params , } ) , description tags name summary request reposListInvitationsForAuthenticatedUser : ( query ? , params = { } ) => this . request < RepositoryInvitation [ ] , BasicError > ( { path : `/user/repository_invitations` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request reposAcceptInvitation : ( invitationId , params = { } ) => this . request < void , BasicError > ( { path : `/user/repository_invitations/${ invitationId }` , method : "PATCH" , ... params , } ) , tags name summary request reposDeclineInvitation : ( invitationId , params = { } ) => this . request < void , BasicError > ( { path : `/user/repository_invitations/${ invitationId }` , method : "DELETE" , ... params , } ) , description tags name summary request activityListReposStarredByAuthenticatedUser : ( query ? , params = { } ) => this . request < Repository [ ] , BasicError > ( { path : `/user/starred` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request activityCheckRepoIsStarredByAuthenticatedUser : ( owner , repo , params = { } ) => this . request < void , BasicError > ( { path : `/user/starred/${ owner }/${ repo }` , method : "GET" , ... params , } ) , description tags name summary request activityStarRepoForAuthenticatedUser : ( owner , repo , params = { } ) => this . request < void , BasicError > ( { path : `/user/starred/${ owner }/${ repo }` , method : "PUT" , ... params , } ) , tags name summary request activityUnstarRepoForAuthenticatedUser : ( owner , repo , params = { } ) => this . request < void , BasicError > ( { path : `/user/starred/${ owner }/${ repo }` , method : "DELETE" , ... params , } ) , description tags name summary request activityListWatchedReposForAuthenticatedUser : ( query ? , params = { } ) => this . request < MinimalRepository [ ] , BasicError > ( { path : `/user/subscriptions` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request teamsListForAuthenticatedUser : ( query ? , params = { } ) => this . request < TeamFull [ ] , BasicError > ( { path : `/user/teams` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; users = { description tags name summary request usersList : ( query ? , params = { } ) => this . request < SimpleUser [ ] , any > ( { path : `/users` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersGetByUsername : ( username , params = { } ) => this . request < PrivateUser | PublicUser , BasicError > ( { path : `/users/${ username }` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request activityListEventsForAuthenticatedUser : ( username , query ? , params = { } ) => this . request < Event [ ] , any > ( { path : `/users/${ username }/events` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request activityListOrgEventsForAuthenticatedUser : ( username , org , query ? , params = { } ) => this . request < Event [ ] , any > ( { path : `/users/${ username }/events/orgs/${ org }` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request activityListPublicEventsForUser : ( username , query ? , params = { } ) => this . request < Event [ ] , any > ( { path : `/users/${ username }/events/public` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersListFollowersForUser : ( username , query ? , params = { } ) => this . request < SimpleUser [ ] , any > ( { path : `/users/${ username }/followers` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersListFollowingForUser : ( username , query ? , params = { } ) => this . request < SimpleUser [ ] , any > ( { path : `/users/${ username }/following` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request usersCheckFollowingForUser : ( username , targetUser , params = { } ) => this . request < void , void > ( { path : `/users/${ username }/following/${ targetUser }` , method : "GET" , ... params , } ) , description tags name summary request gistsListForUser : ( username , query ? , params = { } ) => this . request < BaseGist [ ] , ValidationError > ( { path : `/users/${ username }/gists` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersListGpgKeysForUser : ( username , query ? , params = { } ) => this . request < GpgKey [ ] , any > ( { path : `/users/${ username }/gpg_keys` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request usersGetContextForUser : ( username , query ? , params = { } ) => this . request < Hovercard , BasicError | ValidationError > ( { path : `/users/${ username }/hovercard` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request appsGetUserInstallation : ( username , params = { } ) => this . request < Installation , any > ( { path : `/users/${ username }/installation` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request usersListPublicKeysForUser : ( username , query ? , params = { } ) => this . request < KeySimple [ ] , any > ( { path : `/users/${ username }/keys` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request orgsListForUser : ( username , query ? , params = { } ) => this . request < OrganizationSimple [ ] , any > ( { path : `/users/${ username }/orgs` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request projectsListForUser : ( username , query ? , params = { } ) => this . request < Project [ ] , { message : string ; documentation_url : string ; } | ValidationError > ( { path : `/users/${ username }/projects` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request activityListReceivedEventsForUser : ( username , query ? , params = { } ) => this . request < Event [ ] , any > ( { path : `/users/${ username }/received_events` , method : "GET" , query : query , format : "json" , ... params , } ) , tags name summary request activityListReceivedPublicEventsForUser : ( username , query ? , params = { } ) => this . request < Event [ ] , any > ( { path : `/users/${ username }/received_events/public` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request reposListForUser : ( username , query ? , params = { } ) => this . request < MinimalRepository [ ] , any > ( { path : `/users/${ username }/repos` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request billingGetGithubActionsBillingUser : ( username , params = { } ) => this . request < ActionsBillingUsage , any > ( { path : `/users/${ username }/settings/billing/actions` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request billingGetGithubPackagesBillingUser : ( username , params = { } ) => this . request < PackagesBillingUsage , any > ( { path : `/users/${ username }/settings/billing/packages` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request billingGetSharedStorageBillingUser : ( username , params = { } ) => this . request < CombinedBillingUsage , any > ( { path : `/users/${ username }/settings/billing/shared-storage` , method : "GET" , format : "json" , ... params , } ) , description tags name summary request activityListReposStarredByUser : ( username , query ? , params = { } ) => this . request < Repository [ ] , any > ( { path : `/users/${ username }/starred` , method : "GET" , query : query , format : "json" , ... params , } ) , description tags name summary request activityListReposWatchedByUser : ( username , query ? , params = { } ) => this . request < MinimalRepository [ ] , any > ( { path : `/users/${ username }/subscriptions` , method : "GET" , query : query , format : "json" , ... params , } ) , } ; zen = { description tags name summary request metaGetZen : ( params = { } ) => this . request < WebhookConfigUrl , any > ( { path : `/zen` , method : "GET" , ... params , } ) , } ; }