diff --git a/example/generated/GitHubV3RestApiExpress.generated.ts b/example/generated/GitHubV3RestApiExpress.generated.ts index 4b1bf23..c2f51f3 100644 --- a/example/generated/GitHubV3RestApiExpress.generated.ts +++ b/example/generated/GitHubV3RestApiExpress.generated.ts @@ -1,30 +1,130 @@ - - import type { Request, Response, Express, NextFunction, ParamsDictionary, ErrorRequestHandler } from 'express-serve-static-core'; - import { Router } from 'express'; - import { ParsedQs } from 'qs'; - import { Validator, ValidationError } from 'express-json-validator-middleware'; - - export type Root = { readonly "current_user_url": string; readonly "current_user_authorizations_html_url": string; readonly "authorizations_url": string; readonly "code_search_url": string; readonly "commit_search_url": string; readonly "emails_url": string; readonly "emojis_url": string; readonly "events_url": string; readonly "feeds_url": string; readonly "followers_url": string; readonly "following_url": string; readonly "gists_url": string; readonly "hub_url": string; readonly "issue_search_url": string; readonly "issues_url": string; readonly "keys_url": string; readonly "label_search_url": string; readonly "notifications_url": string; readonly "organization_url": string; readonly "organization_repositories_url": string; readonly "organization_teams_url": string; readonly "public_gists_url": string; readonly "rate_limit_url": string; readonly "repository_url": string; readonly "repository_search_url": string; readonly "current_user_repositories_url": string; readonly "starred_url": string; readonly "starred_gists_url": string; readonly "topic_search_url"?: string; readonly "user_url": string; readonly "user_organizations_url": string; readonly "user_repositories_url": string; readonly "user_search_url": string }; +import type { + Request, + Response, + Express, + NextFunction, + ParamsDictionary, + ErrorRequestHandler +} from 'express-serve-static-core'; +import { Router } from 'express'; +import { ParsedQs } from 'qs'; +import * as ExpressJonValidator from 'express-json-validator-middleware'; + +export type Root = { + readonly current_user_url: string; + readonly current_user_authorizations_html_url: string; + readonly authorizations_url: string; + readonly code_search_url: string; + readonly commit_search_url: string; + readonly emails_url: string; + readonly emojis_url: string; + readonly events_url: string; + readonly feeds_url: string; + readonly followers_url: string; + readonly following_url: string; + readonly gists_url: string; + readonly hub_url: string; + readonly issue_search_url: string; + readonly issues_url: string; + readonly keys_url: string; + readonly label_search_url: string; + readonly notifications_url: string; + readonly organization_url: string; + readonly organization_repositories_url: string; + readonly organization_teams_url: string; + readonly public_gists_url: string; + readonly rate_limit_url: string; + readonly repository_url: string; + readonly repository_search_url: string; + readonly current_user_repositories_url: string; + readonly starred_url: string; + readonly starred_gists_url: string; + readonly topic_search_url?: string; + readonly user_url: string; + readonly user_organizations_url: string; + readonly user_repositories_url: string; + readonly user_search_url: string; +}; export type MetaRoot200ResponseBody = Root; -export type SimpleUser = { readonly "name"?: string | null; readonly "email"?: string | null; readonly "login": string; readonly "id": number; readonly "node_id": string; readonly "avatar_url": string; readonly "gravatar_id": string | null; readonly "url": string; readonly "html_url": string; readonly "followers_url": string; readonly "following_url": string; readonly "gists_url": string; readonly "starred_url": string; readonly "subscriptions_url": string; readonly "organizations_url": string; readonly "repos_url": string; readonly "events_url": string; readonly "received_events_url": string; readonly "type": string; readonly "site_admin": boolean; readonly "starred_at"?: string } | null; - -export type GitHubApp = { readonly "id": number; readonly "slug"?: string; readonly "node_id": string; readonly "owner": SimpleUser; readonly "name": string; readonly "description": string | null; readonly "external_url": string; readonly "html_url": string; readonly "created_at": string; readonly "updated_at": string; readonly "permissions": { readonly "issues"?: string; readonly "checks"?: string; readonly "metadata"?: string; readonly "contents"?: string; readonly "deployments"?: string }; readonly "events": ReadonlyArray; readonly "installations_count"?: number; readonly "client_id"?: string; readonly "client_secret"?: string; readonly "webhook_secret"?: string | null; readonly "pem"?: string }; +export type SimpleUser = { + readonly name?: string | null; + readonly email?: string | null; + readonly login: string; + readonly id: number; + readonly node_id: string; + readonly avatar_url: string; + readonly gravatar_id: string | null; + readonly url: string; + readonly html_url: string; + readonly followers_url: string; + readonly following_url: string; + readonly gists_url: string; + readonly starred_url: string; + readonly subscriptions_url: string; + readonly organizations_url: string; + readonly repos_url: string; + readonly events_url: string; + readonly received_events_url: string; + readonly type: string; + readonly site_admin: boolean; + readonly starred_at?: string; +} | null; + +export type GitHubApp = { + readonly id: number; + readonly slug?: string; + readonly node_id: string; + readonly owner: SimpleUser; + readonly name: string; + readonly description: string | null; + readonly external_url: string; + readonly html_url: string; + readonly created_at: string; + readonly updated_at: string; + readonly permissions: { + readonly issues?: string; + readonly checks?: string; + readonly metadata?: string; + readonly contents?: string; + readonly deployments?: string; + }; + readonly events: ReadonlyArray; + readonly installations_count?: number; + readonly client_id?: string; + readonly client_secret?: string; + readonly webhook_secret?: string | null; + readonly pem?: string; +}; export type AppsGetAuthenticated200ResponseBody = GitHubApp; -export type AppsCreateFromManifest201ResponseBody = GitHubApp & { readonly "client_id": string; readonly "client_secret": string; readonly "webhook_secret": string | null; readonly "pem": string }; +export type AppsCreateFromManifest201ResponseBody = GitHubApp & { + readonly client_id: string; + readonly client_secret: string; + readonly webhook_secret: string | null; + readonly pem: string; +}; -export type BasicError = { readonly "message"?: string; readonly "documentation_url"?: string; readonly "url"?: string; readonly "status"?: string }; +export type BasicError = { + readonly message?: string; + readonly documentation_url?: string; + readonly url?: string; + readonly status?: string; +}; export type AppsCreateFromManifest404ResponseBody = BasicError; -export type ValidationErrorSimple = { readonly "message": string; readonly "documentation_url": string; readonly "errors"?: ReadonlyArray }; +export type ValidationErrorSimple = { + readonly message: string; + readonly documentation_url: string; + readonly errors?: ReadonlyArray; +}; export type AppsCreateFromManifest422ResponseBody = ValidationErrorSimple; -export type AppsCreateFromManifestRequestPath = { readonly "code": string }; +export type AppsCreateFromManifestRequestPath = { readonly code: string }; export type WebhookConfigUrl = string; @@ -34,27 +134,90 @@ export type WebhookConfigSecret = string; export type WebhookConfigInsecureSsl = string | number; -export type WebhookConfiguration = { readonly "url"?: WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl }; +export type WebhookConfiguration = { + readonly url?: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; +}; export type AppsGetWebhookConfigForApp200ResponseBody = WebhookConfiguration; export type AppsUpdateWebhookConfigForApp200ResponseBody = WebhookConfiguration; -export type AppsUpdateWebhookConfigForAppRequestBody = { readonly "url"?: WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl }; - -export type SimpleWebhookDelivery = { readonly "id": number; readonly "guid": string; readonly "delivered_at": string; readonly "redelivery": boolean; readonly "duration": number; readonly "status": string; readonly "status_code": number; readonly "event": string; readonly "action": string | null; readonly "installation_id": number | null; readonly "repository_id": number | null }; +export type AppsUpdateWebhookConfigForAppRequestBody = { + readonly url?: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; +}; + +export type SimpleWebhookDelivery = { + readonly id: number; + readonly guid: string; + readonly delivered_at: string; + readonly redelivery: boolean; + readonly duration: number; + readonly status: string; + readonly status_code: number; + readonly event: string; + readonly action: string | null; + readonly installation_id: number | null; + readonly repository_id: number | null; +}; export type AppsListWebhookDeliveries200ResponseBody = ReadonlyArray; export type AppsListWebhookDeliveries400ResponseBody = BasicError; -export type ValidationError = { readonly "message": string; readonly "documentation_url": string; readonly "errors"?: ReadonlyArray<{ readonly "resource"?: string; readonly "field"?: string; readonly "message"?: string; readonly "code": string; readonly "index"?: number; readonly "value"?: string | null | number | null | ReadonlyArray | null }> }; +export type ValidationError = { + readonly message: string; + readonly documentation_url: string; + readonly errors?: ReadonlyArray<{ + readonly resource?: string; + readonly field?: string; + readonly message?: string; + readonly code: string; + readonly index?: number; + readonly value?: + | string + | null + | number + | null + | ReadonlyArray + | null; + }>; +}; export type AppsListWebhookDeliveries422ResponseBody = ValidationError; -export type AppsListWebhookDeliveriesRequestQuery = { readonly "per_page"?: number; readonly "cursor"?: string }; - -export type WebhookDelivery = { readonly "id": number; readonly "guid": string; readonly "delivered_at": string; readonly "redelivery": boolean; readonly "duration": number; readonly "status": string; readonly "status_code": number; readonly "event": string; readonly "action": string | null; readonly "installation_id": number | null; readonly "repository_id": number | null; readonly "url"?: string; readonly "request": { readonly "headers": unknown | null; readonly "payload": unknown | null }; readonly "response": { readonly "headers": unknown | null; readonly "payload": string | null } }; +export type AppsListWebhookDeliveriesRequestQuery = { + readonly per_page?: number; + readonly cursor?: string; +}; + +export type WebhookDelivery = { + readonly id: number; + readonly guid: string; + readonly delivered_at: string; + readonly redelivery: boolean; + readonly duration: number; + readonly status: string; + readonly status_code: number; + readonly event: string; + readonly action: string | null; + readonly installation_id: number | null; + readonly repository_id: number | null; + readonly url?: string; + readonly request: { + readonly headers: unknown | null; + readonly payload: unknown | null; + }; + readonly response: { + readonly headers: unknown | null; + readonly payload: string | null; + }; +}; export type AppsGetWebhookDelivery200ResponseBody = WebhookDelivery; @@ -62,7 +225,9 @@ export type AppsGetWebhookDelivery400ResponseBody = BasicError; export type AppsGetWebhookDelivery422ResponseBody = ValidationError; -export type AppsGetWebhookDeliveryRequestPath = { readonly "delivery_id": number }; +export type AppsGetWebhookDeliveryRequestPath = { + readonly delivery_id: number; +}; export type AppsRedeliverWebhookDelivery202ResponseBody = unknown; @@ -70,33 +235,350 @@ export type AppsRedeliverWebhookDelivery400ResponseBody = BasicError; export type AppsRedeliverWebhookDelivery422ResponseBody = ValidationError; -export type AppsRedeliverWebhookDeliveryRequestPath = { readonly "delivery_id": number }; - -export type Enterprise = { readonly "description"?: string | null; readonly "html_url": string; readonly "website_url"?: string | null; readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "slug": string; readonly "created_at": string | null; readonly "updated_at": string | null; readonly "avatar_url": string }; - -export type AppPermissions = { readonly "actions"?: "read" | "write"; readonly "administration"?: "read" | "write"; readonly "checks"?: "read" | "write"; readonly "contents"?: "read" | "write"; readonly "deployments"?: "read" | "write"; readonly "environments"?: "read" | "write"; readonly "issues"?: "read" | "write"; readonly "metadata"?: "read" | "write"; readonly "packages"?: "read" | "write"; readonly "pages"?: "read" | "write"; readonly "pull_requests"?: "read" | "write"; readonly "repository_announcement_banners"?: "read" | "write"; readonly "repository_hooks"?: "read" | "write"; readonly "repository_projects"?: "read" | "write" | "admin"; readonly "secret_scanning_alerts"?: "read" | "write"; readonly "secrets"?: "read" | "write"; readonly "security_events"?: "read" | "write"; readonly "single_file"?: "read" | "write"; readonly "statuses"?: "read" | "write"; readonly "vulnerability_alerts"?: "read" | "write"; readonly "workflows"?: "write"; readonly "members"?: "read" | "write"; readonly "organization_administration"?: "read" | "write"; readonly "organization_custom_roles"?: "read" | "write"; readonly "organization_announcement_banners"?: "read" | "write"; readonly "organization_hooks"?: "read" | "write"; readonly "organization_plan"?: "read"; readonly "organization_projects"?: "read" | "write" | "admin"; readonly "organization_packages"?: "read" | "write"; readonly "organization_secrets"?: "read" | "write"; readonly "organization_self_hosted_runners"?: "read" | "write"; readonly "organization_user_blocking"?: "read" | "write"; readonly "team_discussions"?: "read" | "write" }; - -export type Installation = { readonly "id": number; readonly "account": SimpleUser | Enterprise | null; readonly "repository_selection": "all" | "selected"; readonly "access_tokens_url": string; readonly "repositories_url": string; readonly "html_url": string; readonly "app_id": number; readonly "target_id": number; readonly "target_type": string; readonly "permissions": AppPermissions; readonly "events": ReadonlyArray; readonly "created_at": string; readonly "updated_at": string; readonly "single_file_name": string | null; readonly "has_multiple_single_files"?: boolean; readonly "single_file_paths"?: ReadonlyArray; readonly "app_slug": string; readonly "suspended_by": SimpleUser; readonly "suspended_at": string | null; readonly "contact_email"?: string | null }; +export type AppsRedeliverWebhookDeliveryRequestPath = { + readonly delivery_id: number; +}; + +export type Enterprise = { + readonly description?: string | null; + readonly html_url: string; + readonly website_url?: string | null; + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly slug: string; + readonly created_at: string | null; + readonly updated_at: string | null; + readonly avatar_url: string; +}; + +export type AppPermissions = { + readonly actions?: 'read' | 'write'; + readonly administration?: 'read' | 'write'; + readonly checks?: 'read' | 'write'; + readonly contents?: 'read' | 'write'; + readonly deployments?: 'read' | 'write'; + readonly environments?: 'read' | 'write'; + readonly issues?: 'read' | 'write'; + readonly metadata?: 'read' | 'write'; + readonly packages?: 'read' | 'write'; + readonly pages?: 'read' | 'write'; + readonly pull_requests?: 'read' | 'write'; + readonly repository_announcement_banners?: 'read' | 'write'; + readonly repository_hooks?: 'read' | 'write'; + readonly repository_projects?: 'read' | 'write' | 'admin'; + readonly secret_scanning_alerts?: 'read' | 'write'; + readonly secrets?: 'read' | 'write'; + readonly security_events?: 'read' | 'write'; + readonly single_file?: 'read' | 'write'; + readonly statuses?: 'read' | 'write'; + readonly vulnerability_alerts?: 'read' | 'write'; + readonly workflows?: 'write'; + readonly members?: 'read' | 'write'; + readonly organization_administration?: 'read' | 'write'; + readonly organization_custom_roles?: 'read' | 'write'; + readonly organization_announcement_banners?: 'read' | 'write'; + readonly organization_hooks?: 'read' | 'write'; + readonly organization_plan?: 'read'; + readonly organization_projects?: 'read' | 'write' | 'admin'; + readonly organization_packages?: 'read' | 'write'; + readonly organization_secrets?: 'read' | 'write'; + readonly organization_self_hosted_runners?: 'read' | 'write'; + readonly organization_user_blocking?: 'read' | 'write'; + readonly team_discussions?: 'read' | 'write'; +}; + +export type Installation = { + readonly id: number; + readonly account: SimpleUser | Enterprise | null; + readonly repository_selection: 'all' | 'selected'; + readonly access_tokens_url: string; + readonly repositories_url: string; + readonly html_url: string; + readonly app_id: number; + readonly target_id: number; + readonly target_type: string; + readonly permissions: AppPermissions; + readonly events: ReadonlyArray; + readonly created_at: string; + readonly updated_at: string; + readonly single_file_name: string | null; + readonly has_multiple_single_files?: boolean; + readonly single_file_paths?: ReadonlyArray; + readonly app_slug: string; + readonly suspended_by: SimpleUser; + readonly suspended_at: string | null; + readonly contact_email?: string | null; +}; export type AppsListInstallations200ResponseBody = ReadonlyArray; -export type AppsListInstallationsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number; readonly "since"?: string; readonly "outdated"?: string }; +export type AppsListInstallationsRequestQuery = { + readonly per_page?: number; + readonly page?: number; + readonly since?: string; + readonly outdated?: string; +}; export type AppsGetInstallation200ResponseBody = Installation; export type AppsGetInstallation404ResponseBody = BasicError; -export type AppsGetInstallationRequestPath = { readonly "installation_id": number }; +export type AppsGetInstallationRequestPath = { + readonly installation_id: number; +}; export type AppsDeleteInstallation404ResponseBody = BasicError; -export type AppsDeleteInstallationRequestPath = { readonly "installation_id": number }; - -export type LicenseSimple = { readonly "key": string; readonly "name": string; readonly "url": string | null; readonly "spdx_id": string | null; readonly "node_id": string; readonly "html_url"?: string } | null; - -export type Repository = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "full_name": string; readonly "license": LicenseSimple; readonly "organization"?: SimpleUser; readonly "forks": number; readonly "permissions"?: { readonly "admin": boolean; readonly "pull": boolean; readonly "triage"?: boolean; readonly "push": boolean; readonly "maintain"?: boolean }; readonly "owner": SimpleUser; readonly "private": boolean; readonly "html_url": string; readonly "description": string | null; readonly "fork": boolean; readonly "url": string; readonly "archive_url": string; readonly "assignees_url": string; readonly "blobs_url": string; readonly "branches_url": string; readonly "collaborators_url": string; readonly "comments_url": string; readonly "commits_url": string; readonly "compare_url": string; readonly "contents_url": string; readonly "contributors_url": string; readonly "deployments_url": string; readonly "downloads_url": string; readonly "events_url": string; readonly "forks_url": string; readonly "git_commits_url": string; readonly "git_refs_url": string; readonly "git_tags_url": string; readonly "git_url": string; readonly "issue_comment_url": string; readonly "issue_events_url": string; readonly "issues_url": string; readonly "keys_url": string; readonly "labels_url": string; readonly "languages_url": string; readonly "merges_url": string; readonly "milestones_url": string; readonly "notifications_url": string; readonly "pulls_url": string; readonly "releases_url": string; readonly "ssh_url": string; readonly "stargazers_url": string; readonly "statuses_url": string; readonly "subscribers_url": string; readonly "subscription_url": string; readonly "tags_url": string; readonly "teams_url": string; readonly "trees_url": string; readonly "clone_url": string; readonly "mirror_url": string | null; readonly "hooks_url": string; readonly "svn_url": string; readonly "homepage": string | null; readonly "language": string | null; readonly "forks_count": number; readonly "stargazers_count": number; readonly "watchers_count": number; readonly "size": number; readonly "default_branch": string; readonly "open_issues_count": number; readonly "is_template"?: boolean; readonly "topics"?: ReadonlyArray; readonly "has_issues": boolean; readonly "has_projects": boolean; readonly "has_wiki": boolean; readonly "has_pages": boolean; readonly "has_downloads": boolean; readonly "archived": boolean; readonly "disabled": boolean; readonly "visibility"?: string; readonly "pushed_at": string | null; readonly "created_at": string | null; readonly "updated_at": string | null; readonly "allow_rebase_merge"?: boolean; readonly "template_repository"?: { readonly "id"?: number; readonly "node_id"?: string; readonly "name"?: string; readonly "full_name"?: string; readonly "owner"?: { readonly "login"?: string; readonly "id"?: number; readonly "node_id"?: string; readonly "avatar_url"?: string; readonly "gravatar_id"?: string; readonly "url"?: string; readonly "html_url"?: string; readonly "followers_url"?: string; readonly "following_url"?: string; readonly "gists_url"?: string; readonly "starred_url"?: string; readonly "subscriptions_url"?: string; readonly "organizations_url"?: string; readonly "repos_url"?: string; readonly "events_url"?: string; readonly "received_events_url"?: string; readonly "type"?: string; readonly "site_admin"?: boolean }; readonly "private"?: boolean; readonly "html_url"?: string; readonly "description"?: string; readonly "fork"?: boolean; readonly "url"?: string; readonly "archive_url"?: string; readonly "assignees_url"?: string; readonly "blobs_url"?: string; readonly "branches_url"?: string; readonly "collaborators_url"?: string; readonly "comments_url"?: string; readonly "commits_url"?: string; readonly "compare_url"?: string; readonly "contents_url"?: string; readonly "contributors_url"?: string; readonly "deployments_url"?: string; readonly "downloads_url"?: string; readonly "events_url"?: string; readonly "forks_url"?: string; readonly "git_commits_url"?: string; readonly "git_refs_url"?: string; readonly "git_tags_url"?: string; readonly "git_url"?: string; readonly "issue_comment_url"?: string; readonly "issue_events_url"?: string; readonly "issues_url"?: string; readonly "keys_url"?: string; readonly "labels_url"?: string; readonly "languages_url"?: string; readonly "merges_url"?: string; readonly "milestones_url"?: string; readonly "notifications_url"?: string; readonly "pulls_url"?: string; readonly "releases_url"?: string; readonly "ssh_url"?: string; readonly "stargazers_url"?: string; readonly "statuses_url"?: string; readonly "subscribers_url"?: string; readonly "subscription_url"?: string; readonly "tags_url"?: string; readonly "teams_url"?: string; readonly "trees_url"?: string; readonly "clone_url"?: string; readonly "mirror_url"?: string; readonly "hooks_url"?: string; readonly "svn_url"?: string; readonly "homepage"?: string; readonly "language"?: string; readonly "forks_count"?: number; readonly "stargazers_count"?: number; readonly "watchers_count"?: number; readonly "size"?: number; readonly "default_branch"?: string; readonly "open_issues_count"?: number; readonly "is_template"?: boolean; readonly "topics"?: ReadonlyArray; readonly "has_issues"?: boolean; readonly "has_projects"?: boolean; readonly "has_wiki"?: boolean; readonly "has_pages"?: boolean; readonly "has_downloads"?: boolean; readonly "archived"?: boolean; readonly "disabled"?: boolean; readonly "visibility"?: string; readonly "pushed_at"?: string; readonly "created_at"?: string; readonly "updated_at"?: string; readonly "permissions"?: { readonly "admin"?: boolean; readonly "maintain"?: boolean; readonly "push"?: boolean; readonly "triage"?: boolean; readonly "pull"?: boolean }; readonly "allow_rebase_merge"?: boolean; readonly "temp_clone_token"?: string; readonly "allow_squash_merge"?: boolean; readonly "allow_auto_merge"?: boolean; readonly "delete_branch_on_merge"?: boolean; readonly "allow_update_branch"?: boolean; readonly "use_squash_pr_title_as_default"?: boolean; readonly "squash_merge_commit_title"?: "PR_TITLE" | "COMMIT_OR_PR_TITLE"; readonly "squash_merge_commit_message"?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; readonly "merge_commit_title"?: "PR_TITLE" | "MERGE_MESSAGE"; readonly "merge_commit_message"?: "PR_BODY" | "PR_TITLE" | "BLANK"; readonly "allow_merge_commit"?: boolean; readonly "subscribers_count"?: number; readonly "network_count"?: number } | null; readonly "temp_clone_token"?: string; readonly "allow_squash_merge"?: boolean; readonly "allow_auto_merge"?: boolean; readonly "delete_branch_on_merge"?: boolean; readonly "allow_update_branch"?: boolean; readonly "use_squash_pr_title_as_default"?: boolean; readonly "squash_merge_commit_title"?: "PR_TITLE" | "COMMIT_OR_PR_TITLE"; readonly "squash_merge_commit_message"?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; readonly "merge_commit_title"?: "PR_TITLE" | "MERGE_MESSAGE"; readonly "merge_commit_message"?: "PR_BODY" | "PR_TITLE" | "BLANK"; readonly "allow_merge_commit"?: boolean; readonly "allow_forking"?: boolean; readonly "web_commit_signoff_required"?: boolean; readonly "subscribers_count"?: number; readonly "network_count"?: number; readonly "open_issues": number; readonly "watchers": number; readonly "master_branch"?: string; readonly "starred_at"?: string; readonly "anonymous_access_enabled"?: boolean }; - -export type InstallationToken = { readonly "token": string; readonly "expires_at": string; readonly "permissions"?: AppPermissions; readonly "repository_selection"?: "all" | "selected"; readonly "repositories"?: ReadonlyArray; readonly "single_file"?: string; readonly "has_multiple_single_files"?: boolean; readonly "single_file_paths"?: ReadonlyArray }; +export type AppsDeleteInstallationRequestPath = { + readonly installation_id: number; +}; + +export type LicenseSimple = { + readonly key: string; + readonly name: string; + readonly url: string | null; + readonly spdx_id: string | null; + readonly node_id: string; + readonly html_url?: string; +} | null; + +export type Repository = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly full_name: string; + readonly license: LicenseSimple; + readonly organization?: SimpleUser; + readonly forks: number; + readonly permissions?: { + readonly admin: boolean; + readonly pull: boolean; + readonly triage?: boolean; + readonly push: boolean; + readonly maintain?: boolean; + }; + readonly owner: SimpleUser; + readonly private: boolean; + readonly html_url: string; + readonly description: string | null; + readonly fork: boolean; + readonly url: string; + readonly archive_url: string; + readonly assignees_url: string; + readonly blobs_url: string; + readonly branches_url: string; + readonly collaborators_url: string; + readonly comments_url: string; + readonly commits_url: string; + readonly compare_url: string; + readonly contents_url: string; + readonly contributors_url: string; + readonly deployments_url: string; + readonly downloads_url: string; + readonly events_url: string; + readonly forks_url: string; + readonly git_commits_url: string; + readonly git_refs_url: string; + readonly git_tags_url: string; + readonly git_url: string; + readonly issue_comment_url: string; + readonly issue_events_url: string; + readonly issues_url: string; + readonly keys_url: string; + readonly labels_url: string; + readonly languages_url: string; + readonly merges_url: string; + readonly milestones_url: string; + readonly notifications_url: string; + readonly pulls_url: string; + readonly releases_url: string; + readonly ssh_url: string; + readonly stargazers_url: string; + readonly statuses_url: string; + readonly subscribers_url: string; + readonly subscription_url: string; + readonly tags_url: string; + readonly teams_url: string; + readonly trees_url: string; + readonly clone_url: string; + readonly mirror_url: string | null; + readonly hooks_url: string; + readonly svn_url: string; + readonly homepage: string | null; + readonly language: string | null; + readonly forks_count: number; + readonly stargazers_count: number; + readonly watchers_count: number; + readonly size: number; + readonly default_branch: string; + readonly open_issues_count: number; + readonly is_template?: boolean; + readonly topics?: ReadonlyArray; + readonly has_issues: boolean; + readonly has_projects: boolean; + readonly has_wiki: boolean; + readonly has_pages: boolean; + readonly has_downloads: boolean; + readonly archived: boolean; + readonly disabled: boolean; + readonly visibility?: string; + readonly pushed_at: string | null; + readonly created_at: string | null; + readonly updated_at: string | null; + readonly allow_rebase_merge?: boolean; + readonly template_repository?: { + readonly id?: number; + readonly node_id?: string; + readonly name?: string; + readonly full_name?: string; + readonly owner?: { + readonly login?: string; + readonly id?: number; + readonly node_id?: string; + readonly avatar_url?: string; + readonly gravatar_id?: string; + readonly url?: string; + readonly html_url?: string; + readonly followers_url?: string; + readonly following_url?: string; + readonly gists_url?: string; + readonly starred_url?: string; + readonly subscriptions_url?: string; + readonly organizations_url?: string; + readonly repos_url?: string; + readonly events_url?: string; + readonly received_events_url?: string; + readonly type?: string; + readonly site_admin?: boolean; + }; + readonly private?: boolean; + readonly html_url?: string; + readonly description?: string; + readonly fork?: boolean; + readonly url?: string; + readonly archive_url?: string; + readonly assignees_url?: string; + readonly blobs_url?: string; + readonly branches_url?: string; + readonly collaborators_url?: string; + readonly comments_url?: string; + readonly commits_url?: string; + readonly compare_url?: string; + readonly contents_url?: string; + readonly contributors_url?: string; + readonly deployments_url?: string; + readonly downloads_url?: string; + readonly events_url?: string; + readonly forks_url?: string; + readonly git_commits_url?: string; + readonly git_refs_url?: string; + readonly git_tags_url?: string; + readonly git_url?: string; + readonly issue_comment_url?: string; + readonly issue_events_url?: string; + readonly issues_url?: string; + readonly keys_url?: string; + readonly labels_url?: string; + readonly languages_url?: string; + readonly merges_url?: string; + readonly milestones_url?: string; + readonly notifications_url?: string; + readonly pulls_url?: string; + readonly releases_url?: string; + readonly ssh_url?: string; + readonly stargazers_url?: string; + readonly statuses_url?: string; + readonly subscribers_url?: string; + readonly subscription_url?: string; + readonly tags_url?: string; + readonly teams_url?: string; + readonly trees_url?: string; + readonly clone_url?: string; + readonly mirror_url?: string; + readonly hooks_url?: string; + readonly svn_url?: string; + readonly homepage?: string; + readonly language?: string; + readonly forks_count?: number; + readonly stargazers_count?: number; + readonly watchers_count?: number; + readonly size?: number; + readonly default_branch?: string; + readonly open_issues_count?: number; + readonly is_template?: boolean; + readonly topics?: ReadonlyArray; + readonly has_issues?: boolean; + readonly has_projects?: boolean; + readonly has_wiki?: boolean; + readonly has_pages?: boolean; + readonly has_downloads?: boolean; + readonly archived?: boolean; + readonly disabled?: boolean; + readonly visibility?: string; + readonly pushed_at?: string; + readonly created_at?: string; + readonly updated_at?: string; + readonly permissions?: { + readonly admin?: boolean; + readonly maintain?: boolean; + readonly push?: boolean; + readonly triage?: boolean; + readonly pull?: boolean; + }; + readonly allow_rebase_merge?: boolean; + readonly temp_clone_token?: string; + readonly allow_squash_merge?: boolean; + readonly allow_auto_merge?: boolean; + readonly delete_branch_on_merge?: boolean; + readonly allow_update_branch?: boolean; + readonly use_squash_pr_title_as_default?: boolean; + readonly squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; + readonly squash_merge_commit_message?: + | 'PR_BODY' + | 'COMMIT_MESSAGES' + | 'BLANK'; + readonly merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; + readonly merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; + readonly allow_merge_commit?: boolean; + readonly subscribers_count?: number; + readonly network_count?: number; + } | null; + readonly temp_clone_token?: string; + readonly allow_squash_merge?: boolean; + readonly allow_auto_merge?: boolean; + readonly delete_branch_on_merge?: boolean; + readonly allow_update_branch?: boolean; + readonly use_squash_pr_title_as_default?: boolean; + readonly squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; + readonly squash_merge_commit_message?: + | 'PR_BODY' + | 'COMMIT_MESSAGES' + | 'BLANK'; + readonly merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; + readonly merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; + readonly allow_merge_commit?: boolean; + readonly allow_forking?: boolean; + readonly web_commit_signoff_required?: boolean; + readonly subscribers_count?: number; + readonly network_count?: number; + readonly open_issues: number; + readonly watchers: number; + readonly master_branch?: string; + readonly starred_at?: string; + readonly anonymous_access_enabled?: boolean; +}; + +export type InstallationToken = { + readonly token: string; + readonly expires_at: string; + readonly permissions?: AppPermissions; + readonly repository_selection?: 'all' | 'selected'; + readonly repositories?: ReadonlyArray; + readonly single_file?: string; + readonly has_multiple_single_files?: boolean; + readonly single_file_paths?: ReadonlyArray; +}; export type AppsCreateInstallationAccessToken201ResponseBody = InstallationToken; @@ -108,27 +590,67 @@ export type AppsCreateInstallationAccessToken404ResponseBody = BasicError; export type AppsCreateInstallationAccessToken422ResponseBody = ValidationError; -export type AppsCreateInstallationAccessTokenRequestBody = { readonly "repositories"?: ReadonlyArray; readonly "repository_ids"?: ReadonlyArray; readonly "permissions"?: AppPermissions }; +export type AppsCreateInstallationAccessTokenRequestBody = { + readonly repositories?: ReadonlyArray; + readonly repository_ids?: ReadonlyArray; + readonly permissions?: AppPermissions; +}; -export type AppsCreateInstallationAccessTokenRequestPath = { readonly "installation_id": number }; +export type AppsCreateInstallationAccessTokenRequestPath = { + readonly installation_id: number; +}; export type AppsSuspendInstallation404ResponseBody = BasicError; -export type AppsSuspendInstallationRequestPath = { readonly "installation_id": number }; +export type AppsSuspendInstallationRequestPath = { + readonly installation_id: number; +}; export type AppsUnsuspendInstallation404ResponseBody = BasicError; -export type AppsUnsuspendInstallationRequestPath = { readonly "installation_id": number }; +export type AppsUnsuspendInstallationRequestPath = { + readonly installation_id: number; +}; export type AppsDeleteAuthorization422ResponseBody = ValidationError; -export type AppsDeleteAuthorizationRequestBody = { readonly "access_token": string }; - -export type AppsDeleteAuthorizationRequestPath = { readonly "client_id": string }; - -export type ScopedInstallation = { readonly "permissions": AppPermissions; readonly "repository_selection": "all" | "selected"; readonly "single_file_name": string | null; readonly "has_multiple_single_files"?: boolean; readonly "single_file_paths"?: ReadonlyArray; readonly "repositories_url": string; readonly "account": SimpleUser } | null; - -export type Authorization = { readonly "id": number; readonly "url": string; readonly "scopes": ReadonlyArray | null; readonly "token": string; readonly "token_last_eight": string | null; readonly "hashed_token": string | null; readonly "app": { readonly "client_id": string; readonly "name": string; readonly "url": string }; readonly "note": string | null; readonly "note_url": string | null; readonly "updated_at": string; readonly "created_at": string; readonly "fingerprint": string | null; readonly "user"?: SimpleUser; readonly "installation"?: ScopedInstallation; readonly "expires_at": string | null }; +export type AppsDeleteAuthorizationRequestBody = { + readonly access_token: string; +}; + +export type AppsDeleteAuthorizationRequestPath = { readonly client_id: string }; + +export type ScopedInstallation = { + readonly permissions: AppPermissions; + readonly repository_selection: 'all' | 'selected'; + readonly single_file_name: string | null; + readonly has_multiple_single_files?: boolean; + readonly single_file_paths?: ReadonlyArray; + readonly repositories_url: string; + readonly account: SimpleUser; +} | null; + +export type Authorization = { + readonly id: number; + readonly url: string; + readonly scopes: ReadonlyArray | null; + readonly token: string; + readonly token_last_eight: string | null; + readonly hashed_token: string | null; + readonly app: { + readonly client_id: string; + readonly name: string; + readonly url: string; + }; + readonly note: string | null; + readonly note_url: string | null; + readonly updated_at: string; + readonly created_at: string; + readonly fingerprint: string | null; + readonly user?: SimpleUser; + readonly installation?: ScopedInstallation; + readonly expires_at: string | null; +}; export type AppsCheckToken200ResponseBody = Authorization; @@ -136,23 +658,23 @@ export type AppsCheckToken404ResponseBody = BasicError; export type AppsCheckToken422ResponseBody = ValidationError; -export type AppsCheckTokenRequestBody = { readonly "access_token": string }; +export type AppsCheckTokenRequestBody = { readonly access_token: string }; -export type AppsCheckTokenRequestPath = { readonly "client_id": string }; +export type AppsCheckTokenRequestPath = { readonly client_id: string }; export type AppsResetToken200ResponseBody = Authorization; export type AppsResetToken422ResponseBody = ValidationError; -export type AppsResetTokenRequestBody = { readonly "access_token": string }; +export type AppsResetTokenRequestBody = { readonly access_token: string }; -export type AppsResetTokenRequestPath = { readonly "client_id": string }; +export type AppsResetTokenRequestPath = { readonly client_id: string }; export type AppsDeleteToken422ResponseBody = ValidationError; -export type AppsDeleteTokenRequestBody = { readonly "access_token": string }; +export type AppsDeleteTokenRequestBody = { readonly access_token: string }; -export type AppsDeleteTokenRequestPath = { readonly "client_id": string }; +export type AppsDeleteTokenRequestPath = { readonly client_id: string }; export type AppsScopeToken200ResponseBody = Authorization; @@ -164,9 +686,16 @@ export type AppsScopeToken404ResponseBody = BasicError; export type AppsScopeToken422ResponseBody = ValidationError; -export type AppsScopeTokenRequestBody = { readonly "access_token": string; readonly "target"?: string; readonly "target_id"?: number; readonly "repositories"?: ReadonlyArray; readonly "repository_ids"?: ReadonlyArray; readonly "permissions"?: AppPermissions }; +export type AppsScopeTokenRequestBody = { + readonly access_token: string; + readonly target?: string; + readonly target_id?: number; + readonly repositories?: ReadonlyArray; + readonly repository_ids?: ReadonlyArray; + readonly permissions?: AppPermissions; +}; -export type AppsScopeTokenRequestPath = { readonly "client_id": string }; +export type AppsScopeTokenRequestPath = { readonly client_id: string }; export type AppsGetBySlug200ResponseBody = GitHubApp; @@ -174,9 +703,15 @@ export type AppsGetBySlug403ResponseBody = BasicError; export type AppsGetBySlug404ResponseBody = BasicError; -export type AppsGetBySlugRequestPath = { readonly "app_slug": string }; +export type AppsGetBySlugRequestPath = { readonly app_slug: string }; -export type CodeOfConduct = { readonly "key": string; readonly "name": string; readonly "url": string; readonly "body"?: string; readonly "html_url": string | null }; +export type CodeOfConduct = { + readonly key: string; + readonly name: string; + readonly url: string; + readonly body?: string; + readonly html_url: string | null; +}; export type CodesOfConductGetAllCodesOfConduct200ResponseBody = ReadonlyArray; @@ -184,209 +719,516 @@ export type CodesOfConductGetConductCode200ResponseBody = CodeOfConduct; export type CodesOfConductGetConductCode404ResponseBody = BasicError; -export type CodesOfConductGetConductCodeRequestPath = { readonly "key": string }; +export type CodesOfConductGetConductCodeRequestPath = { readonly key: string }; export type EmojisGet200ResponseBody = unknown; -export type ServerStatisticsProxyEndpoint = ReadonlyArray<{ readonly "server_id"?: string; readonly "collection_date"?: string; readonly "schema_version"?: string; readonly "ghes_version"?: string; readonly "host_name"?: string; readonly "github_connect"?: { readonly "features_enabled"?: ReadonlyArray }; readonly "ghe_stats"?: { readonly "comments"?: { readonly "total_commit_comments"?: number; readonly "total_gist_comments"?: number; readonly "total_issue_comments"?: number; readonly "total_pull_request_comments"?: number }; readonly "gists"?: { readonly "total_gists"?: number; readonly "private_gists"?: number; readonly "public_gists"?: number }; readonly "hooks"?: { readonly "total_hooks"?: number; readonly "active_hooks"?: number; readonly "inactive_hooks"?: number }; readonly "issues"?: { readonly "total_issues"?: number; readonly "open_issues"?: number; readonly "closed_issues"?: number }; readonly "milestones"?: { readonly "total_milestones"?: number; readonly "open_milestones"?: number; readonly "closed_milestones"?: number }; readonly "orgs"?: { readonly "total_orgs"?: number; readonly "disabled_orgs"?: number; readonly "total_teams"?: number; readonly "total_team_members"?: number }; readonly "pages"?: { readonly "total_pages"?: number }; readonly "pulls"?: { readonly "total_pulls"?: number; readonly "merged_pulls"?: number; readonly "mergeable_pulls"?: number; readonly "unmergeable_pulls"?: number }; readonly "repos"?: { readonly "total_repos"?: number; readonly "root_repos"?: number; readonly "fork_repos"?: number; readonly "org_repos"?: number; readonly "total_pushes"?: number; readonly "total_wikis"?: number }; readonly "users"?: { readonly "total_users"?: number; readonly "admin_users"?: number; readonly "suspended_users"?: number } }; readonly "dormant_users"?: { readonly "total_dormant_users"?: number; readonly "dormancy_threshold"?: string } }>; +export type ServerStatisticsProxyEndpoint = ReadonlyArray<{ + readonly server_id?: string; + readonly collection_date?: string; + readonly schema_version?: string; + readonly ghes_version?: string; + readonly host_name?: string; + readonly github_connect?: { + readonly features_enabled?: ReadonlyArray; + }; + readonly ghe_stats?: { + readonly comments?: { + readonly total_commit_comments?: number; + readonly total_gist_comments?: number; + readonly total_issue_comments?: number; + readonly total_pull_request_comments?: number; + }; + readonly gists?: { + readonly total_gists?: number; + readonly private_gists?: number; + readonly public_gists?: number; + }; + readonly hooks?: { + readonly total_hooks?: number; + readonly active_hooks?: number; + readonly inactive_hooks?: number; + }; + readonly issues?: { + readonly total_issues?: number; + readonly open_issues?: number; + readonly closed_issues?: number; + }; + readonly milestones?: { + readonly total_milestones?: number; + readonly open_milestones?: number; + readonly closed_milestones?: number; + }; + readonly orgs?: { + readonly total_orgs?: number; + readonly disabled_orgs?: number; + readonly total_teams?: number; + readonly total_team_members?: number; + }; + readonly pages?: { readonly total_pages?: number }; + readonly pulls?: { + readonly total_pulls?: number; + readonly merged_pulls?: number; + readonly mergeable_pulls?: number; + readonly unmergeable_pulls?: number; + }; + readonly repos?: { + readonly total_repos?: number; + readonly root_repos?: number; + readonly fork_repos?: number; + readonly org_repos?: number; + readonly total_pushes?: number; + readonly total_wikis?: number; + }; + readonly users?: { + readonly total_users?: number; + readonly admin_users?: number; + readonly suspended_users?: number; + }; + }; + readonly dormant_users?: { + readonly total_dormant_users?: number; + readonly dormancy_threshold?: string; + }; +}>; export type EnterpriseAdminGetServerStatistics200ResponseBody = ServerStatisticsProxyEndpoint; -export type EnterpriseAdminGetServerStatisticsRequestQuery = { readonly "date_start"?: string; readonly "date_end"?: string }; +export type EnterpriseAdminGetServerStatisticsRequestQuery = { + readonly date_start?: string; + readonly date_end?: string; +}; -export type EnterpriseAdminGetServerStatisticsRequestPath = { readonly "enterprise_or_org": string }; +export type EnterpriseAdminGetServerStatisticsRequestPath = { + readonly enterprise_or_org: string; +}; -export type ActionsCacheUsageOrgEnterprise = { readonly "total_active_caches_count": number; readonly "total_active_caches_size_in_bytes": number }; +export type ActionsCacheUsageOrgEnterprise = { + readonly total_active_caches_count: number; + readonly total_active_caches_size_in_bytes: number; +}; export type ActionsGetActionsCacheUsageForEnterprise200ResponseBody = ActionsCacheUsageOrgEnterprise; -export type ActionsGetActionsCacheUsageForEnterpriseRequestPath = { readonly "enterprise": string }; +export type ActionsGetActionsCacheUsageForEnterpriseRequestPath = { + readonly enterprise: string; +}; -export type EnabledOrganizations = "all" | "none" | "selected"; +export type EnabledOrganizations = 'all' | 'none' | 'selected'; -export type AllowedActions = "all" | "local_only" | "selected"; +export type AllowedActions = 'all' | 'local_only' | 'selected'; export type SelectedActionsUrl = string; -export type ActionsEnterprisePermissions = { readonly "enabled_organizations": EnabledOrganizations; readonly "selected_organizations_url"?: string; readonly "allowed_actions"?: AllowedActions; readonly "selected_actions_url"?: SelectedActionsUrl }; +export type ActionsEnterprisePermissions = { + readonly enabled_organizations: EnabledOrganizations; + readonly selected_organizations_url?: string; + readonly allowed_actions?: AllowedActions; + readonly selected_actions_url?: SelectedActionsUrl; +}; export type EnterpriseAdminGetGithubActionsPermissionsEnterprise200ResponseBody = ActionsEnterprisePermissions; -export type EnterpriseAdminGetGithubActionsPermissionsEnterpriseRequestPath = { readonly "enterprise": string }; - -export type EnterpriseAdminSetGithubActionsPermissionsEnterpriseRequestBody = { readonly "enabled_organizations": EnabledOrganizations; readonly "allowed_actions"?: AllowedActions }; - -export type EnterpriseAdminSetGithubActionsPermissionsEnterpriseRequestPath = { readonly "enterprise": string }; - -export type OrganizationSimple = { readonly "login": string; readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "repos_url": string; readonly "events_url": string; readonly "hooks_url": string; readonly "issues_url": string; readonly "members_url": string; readonly "public_members_url": string; readonly "avatar_url": string; readonly "description": string | null }; - -export type EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterprise200ResponseBody = { readonly "total_count": number; readonly "organizations": ReadonlyArray }; - -export type EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseRequestPath = { readonly "enterprise": string }; - -export type EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseRequestBody = { readonly "selected_organization_ids": ReadonlyArray }; - -export type EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseRequestPath = { readonly "enterprise": string }; - -export type EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseRequestPath = { readonly "enterprise": string; readonly "org_id": number }; - -export type EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseRequestPath = { readonly "enterprise": string; readonly "org_id": number }; - -export type SelectedActions = { readonly "github_owned_allowed"?: boolean; readonly "verified_allowed"?: boolean; readonly "patterns_allowed"?: ReadonlyArray }; +export type EnterpriseAdminGetGithubActionsPermissionsEnterpriseRequestPath = { + readonly enterprise: string; +}; + +export type EnterpriseAdminSetGithubActionsPermissionsEnterpriseRequestBody = { + readonly enabled_organizations: EnabledOrganizations; + readonly allowed_actions?: AllowedActions; +}; + +export type EnterpriseAdminSetGithubActionsPermissionsEnterpriseRequestPath = { + readonly enterprise: string; +}; + +export type OrganizationSimple = { + readonly login: string; + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly repos_url: string; + readonly events_url: string; + readonly hooks_url: string; + readonly issues_url: string; + readonly members_url: string; + readonly public_members_url: string; + readonly avatar_url: string; + readonly description: string | null; +}; + +export type EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterprise200ResponseBody = { + readonly total_count: number; + readonly organizations: ReadonlyArray; +}; + +export type EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseRequestPath = { + readonly enterprise: string; +}; + +export type EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseRequestBody = { + readonly selected_organization_ids: ReadonlyArray; +}; + +export type EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseRequestPath = { + readonly enterprise: string; +}; + +export type EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseRequestPath = { + readonly enterprise: string; + readonly org_id: number; +}; + +export type EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseRequestPath = { + readonly enterprise: string; + readonly org_id: number; +}; + +export type SelectedActions = { + readonly github_owned_allowed?: boolean; + readonly verified_allowed?: boolean; + readonly patterns_allowed?: ReadonlyArray; +}; export type EnterpriseAdminGetAllowedActionsEnterprise200ResponseBody = SelectedActions; -export type EnterpriseAdminGetAllowedActionsEnterpriseRequestPath = { readonly "enterprise": string }; +export type EnterpriseAdminGetAllowedActionsEnterpriseRequestPath = { + readonly enterprise: string; +}; export type EnterpriseAdminSetAllowedActionsEnterpriseRequestBody = SelectedActions; -export type EnterpriseAdminSetAllowedActionsEnterpriseRequestPath = { readonly "enterprise": string }; +export type EnterpriseAdminSetAllowedActionsEnterpriseRequestPath = { + readonly enterprise: string; +}; -export type ActionsDefaultWorkflowPermissions = "read" | "write"; +export type ActionsDefaultWorkflowPermissions = 'read' | 'write'; export type ActionsCanApprovePullRequestReviews = boolean; -export type ActionsGetDefaultWorkflowPermissions = { readonly "default_workflow_permissions": ActionsDefaultWorkflowPermissions; readonly "can_approve_pull_request_reviews": ActionsCanApprovePullRequestReviews }; +export type ActionsGetDefaultWorkflowPermissions = { + readonly default_workflow_permissions: ActionsDefaultWorkflowPermissions; + readonly can_approve_pull_request_reviews: ActionsCanApprovePullRequestReviews; +}; export type ActionsGetGithubActionsDefaultWorkflowPermissionsEnterprise200ResponseBody = ActionsGetDefaultWorkflowPermissions; -export type ActionsGetGithubActionsDefaultWorkflowPermissionsEnterpriseRequestPath = { readonly "enterprise": string }; +export type ActionsGetGithubActionsDefaultWorkflowPermissionsEnterpriseRequestPath = { + readonly enterprise: string; +}; -export type ActionsSetDefaultWorkflowPermissions = { readonly "default_workflow_permissions"?: ActionsDefaultWorkflowPermissions; readonly "can_approve_pull_request_reviews"?: ActionsCanApprovePullRequestReviews }; +export type ActionsSetDefaultWorkflowPermissions = { + readonly default_workflow_permissions?: ActionsDefaultWorkflowPermissions; + readonly can_approve_pull_request_reviews?: ActionsCanApprovePullRequestReviews; +}; export type ActionsSetGithubActionsDefaultWorkflowPermissionsEnterpriseRequestBody = ActionsSetDefaultWorkflowPermissions; -export type ActionsSetGithubActionsDefaultWorkflowPermissionsEnterpriseRequestPath = { readonly "enterprise": string }; - -export type RunnerGroupsEnterprise = { readonly "id": number; readonly "name": string; readonly "visibility": string; readonly "default": boolean; readonly "selected_organizations_url"?: string; readonly "runners_url": string; readonly "allows_public_repositories": boolean; readonly "workflow_restrictions_read_only"?: boolean; readonly "restricted_to_workflows"?: boolean; readonly "selected_workflows"?: ReadonlyArray }; - -export type EnterpriseAdminListSelfHostedRunnerGroupsForEnterprise200ResponseBody = { readonly "total_count": number; readonly "runner_groups": ReadonlyArray }; - -export type EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequestQuery = { readonly "per_page"?: number; readonly "page"?: number; readonly "visible_to_organization"?: string }; - -export type EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequestPath = { readonly "enterprise": string }; +export type ActionsSetGithubActionsDefaultWorkflowPermissionsEnterpriseRequestPath = { + readonly enterprise: string; +}; + +export type RunnerGroupsEnterprise = { + readonly id: number; + readonly name: string; + readonly visibility: string; + readonly default: boolean; + readonly selected_organizations_url?: string; + readonly runners_url: string; + readonly allows_public_repositories: boolean; + readonly workflow_restrictions_read_only?: boolean; + readonly restricted_to_workflows?: boolean; + readonly selected_workflows?: ReadonlyArray; +}; + +export type EnterpriseAdminListSelfHostedRunnerGroupsForEnterprise200ResponseBody = { + readonly total_count: number; + readonly runner_groups: ReadonlyArray; +}; + +export type EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequestQuery = { + readonly per_page?: number; + readonly page?: number; + readonly visible_to_organization?: string; +}; + +export type EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequestPath = { + readonly enterprise: string; +}; export type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise201ResponseBody = RunnerGroupsEnterprise; -export type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequestBody = { readonly "name": string; readonly "visibility"?: "selected" | "all"; readonly "selected_organization_ids"?: ReadonlyArray; readonly "runners"?: ReadonlyArray; readonly "allows_public_repositories"?: boolean; readonly "restricted_to_workflows"?: boolean; readonly "selected_workflows"?: ReadonlyArray }; +export type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequestBody = { + readonly name: string; + readonly visibility?: 'selected' | 'all'; + readonly selected_organization_ids?: ReadonlyArray; + readonly runners?: ReadonlyArray; + readonly allows_public_repositories?: boolean; + readonly restricted_to_workflows?: boolean; + readonly selected_workflows?: ReadonlyArray; +}; -export type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequestPath = { readonly "enterprise": string }; +export type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequestPath = { + readonly enterprise: string; +}; export type EnterpriseAdminGetSelfHostedRunnerGroupForEnterprise200ResponseBody = RunnerGroupsEnterprise; -export type EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number }; +export type EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; +}; export type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise200ResponseBody = RunnerGroupsEnterprise; -export type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequestBody = { readonly "name"?: string; readonly "visibility"?: "selected" | "all"; readonly "allows_public_repositories"?: boolean; readonly "restricted_to_workflows"?: boolean; readonly "selected_workflows"?: ReadonlyArray }; - -export type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number }; - -export type EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number }; - -export type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterprise200ResponseBody = { readonly "total_count": number; readonly "organizations": ReadonlyArray }; - -export type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number }; - -export type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestBody = { readonly "selected_organization_ids": ReadonlyArray }; - -export type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number }; - -export type EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number; readonly "org_id": number }; - -export type EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number; readonly "org_id": number }; - -export type SelfHostedRunnerLabel = { readonly "id"?: number; readonly "name": string; readonly "type"?: "read-only" | "custom" }; - -export type SelfHostedRunners = { readonly "id": number; readonly "name": string; readonly "os": string; readonly "status": string; readonly "busy": boolean; readonly "labels": ReadonlyArray }; - -export type EnterpriseAdminListSelfHostedRunnersInGroupForEnterprise200ResponseBody = { readonly "total_count": number; readonly "runners": ReadonlyArray }; - -export type EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number }; - -export type EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequestBody = { readonly "runners": ReadonlyArray }; - -export type EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number }; - -export type EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number; readonly "runner_id": number }; - -export type EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_group_id": number; readonly "runner_id": number }; - -export type EnterpriseAdminListSelfHostedRunnersForEnterprise200ResponseBody = { readonly "total_count"?: number; readonly "runners"?: ReadonlyArray }; - -export type EnterpriseAdminListSelfHostedRunnersForEnterpriseRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type EnterpriseAdminListSelfHostedRunnersForEnterpriseRequestPath = { readonly "enterprise": string }; - -export type RunnerApplication = { readonly "os": string; readonly "architecture": string; readonly "download_url": string; readonly "filename": string; readonly "temp_download_token"?: string; readonly "sha256_checksum"?: string }; +export type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequestBody = { + readonly name?: string; + readonly visibility?: 'selected' | 'all'; + readonly allows_public_repositories?: boolean; + readonly restricted_to_workflows?: boolean; + readonly selected_workflows?: ReadonlyArray; +}; + +export type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; +}; + +export type EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; +}; + +export type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterprise200ResponseBody = { + readonly total_count: number; + readonly organizations: ReadonlyArray; +}; + +export type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; +}; + +export type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestBody = { + readonly selected_organization_ids: ReadonlyArray; +}; + +export type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; +}; + +export type EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; + readonly org_id: number; +}; + +export type EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; + readonly org_id: number; +}; + +export type SelfHostedRunnerLabel = { + readonly id?: number; + readonly name: string; + readonly type?: 'read-only' | 'custom'; +}; + +export type SelfHostedRunners = { + readonly id: number; + readonly name: string; + readonly os: string; + readonly status: string; + readonly busy: boolean; + readonly labels: ReadonlyArray; +}; + +export type EnterpriseAdminListSelfHostedRunnersInGroupForEnterprise200ResponseBody = { + readonly total_count: number; + readonly runners: ReadonlyArray; +}; + +export type EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; +}; + +export type EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequestBody = { + readonly runners: ReadonlyArray; +}; + +export type EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; +}; + +export type EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; + readonly runner_id: number; +}; + +export type EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_group_id: number; + readonly runner_id: number; +}; + +export type EnterpriseAdminListSelfHostedRunnersForEnterprise200ResponseBody = { + readonly total_count?: number; + readonly runners?: ReadonlyArray; +}; + +export type EnterpriseAdminListSelfHostedRunnersForEnterpriseRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type EnterpriseAdminListSelfHostedRunnersForEnterpriseRequestPath = { + readonly enterprise: string; +}; + +export type RunnerApplication = { + readonly os: string; + readonly architecture: string; + readonly download_url: string; + readonly filename: string; + readonly temp_download_token?: string; + readonly sha256_checksum?: string; +}; export type EnterpriseAdminListRunnerApplicationsForEnterprise200ResponseBody = ReadonlyArray; -export type EnterpriseAdminListRunnerApplicationsForEnterpriseRequestPath = { readonly "enterprise": string }; +export type EnterpriseAdminListRunnerApplicationsForEnterpriseRequestPath = { + readonly enterprise: string; +}; -export type AuthenticationToken = { readonly "token": string; readonly "expires_at": string; readonly "permissions"?: unknown; readonly "repositories"?: ReadonlyArray; readonly "single_file"?: string | null; readonly "repository_selection"?: "all" | "selected" }; +export type AuthenticationToken = { + readonly token: string; + readonly expires_at: string; + readonly permissions?: unknown; + readonly repositories?: ReadonlyArray; + readonly single_file?: string | null; + readonly repository_selection?: 'all' | 'selected'; +}; export type EnterpriseAdminCreateRegistrationTokenForEnterprise201ResponseBody = AuthenticationToken; -export type EnterpriseAdminCreateRegistrationTokenForEnterpriseRequestPath = { readonly "enterprise": string }; +export type EnterpriseAdminCreateRegistrationTokenForEnterpriseRequestPath = { + readonly enterprise: string; +}; export type EnterpriseAdminCreateRemoveTokenForEnterprise201ResponseBody = AuthenticationToken; -export type EnterpriseAdminCreateRemoveTokenForEnterpriseRequestPath = { readonly "enterprise": string }; +export type EnterpriseAdminCreateRemoveTokenForEnterpriseRequestPath = { + readonly enterprise: string; +}; export type EnterpriseAdminGetSelfHostedRunnerForEnterprise200ResponseBody = SelfHostedRunners; -export type EnterpriseAdminGetSelfHostedRunnerForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_id": number }; +export type EnterpriseAdminGetSelfHostedRunnerForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_id: number; +}; -export type EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_id": number }; +export type EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_id: number; +}; -export type EnterpriseAdminListLabelsForSelfHostedRunnerForEnterprise200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type EnterpriseAdminListLabelsForSelfHostedRunnerForEnterprise200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type EnterpriseAdminListLabelsForSelfHostedRunnerForEnterprise404ResponseBody = BasicError; -export type EnterpriseAdminListLabelsForSelfHostedRunnerForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_id": number }; +export type EnterpriseAdminListLabelsForSelfHostedRunnerForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_id: number; +}; -export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterprise200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterprise200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterprise404ResponseBody = BasicError; export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterprise422ResponseBody = ValidationErrorSimple; -export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterpriseRequestBody = { readonly "labels": ReadonlyArray }; +export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterpriseRequestBody = { + readonly labels: ReadonlyArray; +}; -export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_id": number }; +export type EnterpriseAdminAddCustomLabelsToSelfHostedRunnerForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_id: number; +}; -export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterprise200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterprise200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterprise404ResponseBody = BasicError; export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterprise422ResponseBody = ValidationErrorSimple; -export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterpriseRequestBody = { readonly "labels": ReadonlyArray }; +export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterpriseRequestBody = { + readonly labels: ReadonlyArray; +}; -export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_id": number }; +export type EnterpriseAdminSetCustomLabelsForSelfHostedRunnerForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_id: number; +}; -export type EnterpriseAdminRemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type EnterpriseAdminRemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type EnterpriseAdminRemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise404ResponseBody = BasicError; export type EnterpriseAdminRemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise422ResponseBody = ValidationErrorSimple; -export type EnterpriseAdminRemoveAllCustomLabelsFromSelfHostedRunnerForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_id": number }; +export type EnterpriseAdminRemoveAllCustomLabelsFromSelfHostedRunnerForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_id: number; +}; -export type EnterpriseAdminRemoveCustomLabelFromSelfHostedRunnerForEnterprise200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type EnterpriseAdminRemoveCustomLabelFromSelfHostedRunnerForEnterprise200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type EnterpriseAdminRemoveCustomLabelFromSelfHostedRunnerForEnterprise404ResponseBody = BasicError; export type EnterpriseAdminRemoveCustomLabelFromSelfHostedRunnerForEnterprise422ResponseBody = ValidationErrorSimple; -export type EnterpriseAdminRemoveCustomLabelFromSelfHostedRunnerForEnterpriseRequestPath = { readonly "enterprise": string; readonly "runner_id": number; readonly "name": string }; +export type EnterpriseAdminRemoveCustomLabelFromSelfHostedRunnerForEnterpriseRequestPath = { + readonly enterprise: string; + readonly runner_id: number; + readonly name: string; +}; export type AlertNumber = number; @@ -400,17 +1242,37 @@ export type AlertHtmlUrl = string; export type AlertInstancesUrl = string; -export type CodeScanningAlertState = "open" | "closed" | "dismissed" | "fixed"; +export type CodeScanningAlertState = 'open' | 'closed' | 'dismissed' | 'fixed'; export type AlertFixedAt = string | null; export type AlertDismissedAt = string | null; -export type CodeScanningAlertDismissedReason = null | "false positive" | "won't fix" | "used in tests" | null; +export type CodeScanningAlertDismissedReason = + | null + | 'false positive' + | "won't fix" + | 'used in tests' + | null; export type CodeScanningAlertDismissedComment = string | null; -export type CodeScanningAlertRule = { readonly "id"?: string | null; readonly "name"?: string; readonly "severity"?: "none" | "note" | "warning" | "error" | null; readonly "security_severity_level"?: "low" | "medium" | "high" | "critical" | null; readonly "description"?: string; readonly "full_description"?: string; readonly "tags"?: ReadonlyArray | null; readonly "help"?: string | null; readonly "help_uri"?: string | null }; +export type CodeScanningAlertRule = { + readonly id?: string | null; + readonly name?: string; + readonly severity?: 'none' | 'note' | 'warning' | 'error' | null; + readonly security_severity_level?: + | 'low' + | 'medium' + | 'high' + | 'critical' + | null; + readonly description?: string; + readonly full_description?: string; + readonly tags?: ReadonlyArray | null; + readonly help?: string | null; + readonly help_uri?: string | null; +}; export type CodeScanningAnalysisToolName = string; @@ -418,7 +1280,11 @@ export type CodeScanningAnalysisToolVersion = string | null; export type CodeScanningAnalysisToolGuid = string | null; -export type CodeScanningAnalysisTool = { readonly "name"?: CodeScanningAnalysisToolName; readonly "version"?: CodeScanningAnalysisToolVersion; readonly "guid"?: CodeScanningAnalysisToolGuid }; +export type CodeScanningAnalysisTool = { + readonly name?: CodeScanningAnalysisToolName; + readonly version?: CodeScanningAnalysisToolVersion; + readonly guid?: CodeScanningAnalysisToolGuid; +}; export type CodeScanningRef = string; @@ -428,101 +1294,549 @@ export type CodeScanningAlertEnvironment = string; export type CodeScanningAnalysisCategory = string; -export type CodeScanningAlertLocation = { readonly "path"?: string; readonly "start_line"?: number; readonly "end_line"?: number; readonly "start_column"?: number; readonly "end_column"?: number }; - -export type CodeScanningAlertClassification = "source" | "generated" | "test" | "library" | null; - -export type CodeScanningAlertInstance = { readonly "ref"?: CodeScanningRef; readonly "analysis_key"?: CodeScanningAnalysisAnalysisKey; readonly "environment"?: CodeScanningAlertEnvironment; readonly "category"?: CodeScanningAnalysisCategory; readonly "state"?: CodeScanningAlertState; readonly "commit_sha"?: string; readonly "message"?: { readonly "text"?: string }; readonly "location"?: CodeScanningAlertLocation; readonly "html_url"?: string; readonly "classifications"?: ReadonlyArray }; - -export type SimpleRepository = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "full_name": string; readonly "owner": SimpleUser; readonly "private": boolean; readonly "html_url": string; readonly "description": string | null; readonly "fork": boolean; readonly "url": string; readonly "archive_url": string; readonly "assignees_url": string; readonly "blobs_url": string; readonly "branches_url": string; readonly "collaborators_url": string; readonly "comments_url": string; readonly "commits_url": string; readonly "compare_url": string; readonly "contents_url": string; readonly "contributors_url": string; readonly "deployments_url": string; readonly "downloads_url": string; readonly "events_url": string; readonly "forks_url": string; readonly "git_commits_url": string; readonly "git_refs_url": string; readonly "git_tags_url": string; readonly "issue_comment_url": string; readonly "issue_events_url": string; readonly "issues_url": string; readonly "keys_url": string; readonly "labels_url": string; readonly "languages_url": string; readonly "merges_url": string; readonly "milestones_url": string; readonly "notifications_url": string; readonly "pulls_url": string; readonly "releases_url": string; readonly "stargazers_url": string; readonly "statuses_url": string; readonly "subscribers_url": string; readonly "subscription_url": string; readonly "tags_url": string; readonly "teams_url": string; readonly "trees_url": string; readonly "hooks_url": string }; - -export type CodeScanningOrganizationAlertItems = { readonly "number": AlertNumber; readonly "created_at": AlertCreatedAt; readonly "updated_at"?: AlertUpdatedAt; readonly "url": AlertUrl; readonly "html_url": AlertHtmlUrl; readonly "instances_url": AlertInstancesUrl; readonly "state": CodeScanningAlertState; readonly "fixed_at"?: AlertFixedAt; readonly "dismissed_by": SimpleUser; readonly "dismissed_at": AlertDismissedAt; readonly "dismissed_reason": CodeScanningAlertDismissedReason; readonly "dismissed_comment"?: CodeScanningAlertDismissedComment; readonly "rule": CodeScanningAlertRule; readonly "tool": CodeScanningAnalysisTool; readonly "most_recent_instance": CodeScanningAlertInstance; readonly "repository": SimpleRepository }; +export type CodeScanningAlertLocation = { + readonly path?: string; + readonly start_line?: number; + readonly end_line?: number; + readonly start_column?: number; + readonly end_column?: number; +}; + +export type CodeScanningAlertClassification = + | 'source' + | 'generated' + | 'test' + | 'library' + | null; + +export type CodeScanningAlertInstance = { + readonly ref?: CodeScanningRef; + readonly analysis_key?: CodeScanningAnalysisAnalysisKey; + readonly environment?: CodeScanningAlertEnvironment; + readonly category?: CodeScanningAnalysisCategory; + readonly state?: CodeScanningAlertState; + readonly commit_sha?: string; + readonly message?: { readonly text?: string }; + readonly location?: CodeScanningAlertLocation; + readonly html_url?: string; + readonly classifications?: ReadonlyArray; +}; + +export type SimpleRepository = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly full_name: string; + readonly owner: SimpleUser; + readonly private: boolean; + readonly html_url: string; + readonly description: string | null; + readonly fork: boolean; + readonly url: string; + readonly archive_url: string; + readonly assignees_url: string; + readonly blobs_url: string; + readonly branches_url: string; + readonly collaborators_url: string; + readonly comments_url: string; + readonly commits_url: string; + readonly compare_url: string; + readonly contents_url: string; + readonly contributors_url: string; + readonly deployments_url: string; + readonly downloads_url: string; + readonly events_url: string; + readonly forks_url: string; + readonly git_commits_url: string; + readonly git_refs_url: string; + readonly git_tags_url: string; + readonly issue_comment_url: string; + readonly issue_events_url: string; + readonly issues_url: string; + readonly keys_url: string; + readonly labels_url: string; + readonly languages_url: string; + readonly merges_url: string; + readonly milestones_url: string; + readonly notifications_url: string; + readonly pulls_url: string; + readonly releases_url: string; + readonly stargazers_url: string; + readonly statuses_url: string; + readonly subscribers_url: string; + readonly subscription_url: string; + readonly tags_url: string; + readonly teams_url: string; + readonly trees_url: string; + readonly hooks_url: string; +}; + +export type CodeScanningOrganizationAlertItems = { + readonly number: AlertNumber; + readonly created_at: AlertCreatedAt; + readonly updated_at?: AlertUpdatedAt; + readonly url: AlertUrl; + readonly html_url: AlertHtmlUrl; + readonly instances_url: AlertInstancesUrl; + readonly state: CodeScanningAlertState; + readonly fixed_at?: AlertFixedAt; + readonly dismissed_by: SimpleUser; + readonly dismissed_at: AlertDismissedAt; + readonly dismissed_reason: CodeScanningAlertDismissedReason; + readonly dismissed_comment?: CodeScanningAlertDismissedComment; + readonly rule: CodeScanningAlertRule; + readonly tool: CodeScanningAnalysisTool; + readonly most_recent_instance: CodeScanningAlertInstance; + readonly repository: SimpleRepository; +}; export type CodeScanningListAlertsForEnterprise200ResponseBody = ReadonlyArray; export type CodeScanningListAlertsForEnterprise404ResponseBody = BasicError; -export type CodeScanningListAlertsForEnterprise503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type CodeScanningListAlertsForEnterpriseRequestQuery = { readonly "tool_name"?: CodeScanningAnalysisToolName; readonly "tool_guid"?: CodeScanningAnalysisToolGuid; readonly "before"?: string; readonly "after"?: string; readonly "page"?: number; readonly "per_page"?: number; readonly "direction"?: "asc" | "desc"; readonly "state"?: CodeScanningAlertState; readonly "sort"?: "created" | "updated" }; - -export type CodeScanningListAlertsForEnterpriseRequestPath = { readonly "enterprise": string }; +export type CodeScanningListAlertsForEnterprise503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type CodeScanningListAlertsForEnterpriseRequestQuery = { + readonly tool_name?: CodeScanningAnalysisToolName; + readonly tool_guid?: CodeScanningAnalysisToolGuid; + readonly before?: string; + readonly after?: string; + readonly page?: number; + readonly per_page?: number; + readonly direction?: 'asc' | 'desc'; + readonly state?: CodeScanningAlertState; + readonly sort?: 'created' | 'updated'; +}; + +export type CodeScanningListAlertsForEnterpriseRequestPath = { + readonly enterprise: string; +}; export type NullableAlertUpdatedAt = string | null; -export type SecretScanningAlertState = "open" | "resolved"; - -export type SecretScanningAlertResolution = null | "false_positive" | "wont_fix" | "revoked" | "used_in_tests" | null; - -export type OrganizationSecretScanningAlert = { readonly "number"?: AlertNumber; readonly "created_at"?: AlertCreatedAt; readonly "updated_at"?: NullableAlertUpdatedAt; readonly "url"?: AlertUrl; readonly "html_url"?: AlertHtmlUrl; readonly "locations_url"?: string; readonly "state"?: SecretScanningAlertState; readonly "resolution"?: SecretScanningAlertResolution; readonly "resolved_at"?: string | null; readonly "resolved_by"?: SimpleUser; readonly "secret_type"?: string; readonly "secret_type_display_name"?: string; readonly "secret"?: string; readonly "repository"?: SimpleRepository; readonly "push_protection_bypassed"?: boolean | null; readonly "push_protection_bypassed_by"?: SimpleUser; readonly "push_protection_bypassed_at"?: string | null; readonly "resolution_comment"?: string | null }; +export type SecretScanningAlertState = 'open' | 'resolved'; + +export type SecretScanningAlertResolution = + | null + | 'false_positive' + | 'wont_fix' + | 'revoked' + | 'used_in_tests' + | null; + +export type OrganizationSecretScanningAlert = { + readonly number?: AlertNumber; + readonly created_at?: AlertCreatedAt; + readonly updated_at?: NullableAlertUpdatedAt; + readonly url?: AlertUrl; + readonly html_url?: AlertHtmlUrl; + readonly locations_url?: string; + readonly state?: SecretScanningAlertState; + readonly resolution?: SecretScanningAlertResolution; + readonly resolved_at?: string | null; + readonly resolved_by?: SimpleUser; + readonly secret_type?: string; + readonly secret_type_display_name?: string; + readonly secret?: string; + readonly repository?: SimpleRepository; + readonly push_protection_bypassed?: boolean | null; + readonly push_protection_bypassed_by?: SimpleUser; + readonly push_protection_bypassed_at?: string | null; + readonly resolution_comment?: string | null; +}; export type SecretScanningListAlertsForEnterprise200ResponseBody = ReadonlyArray; export type SecretScanningListAlertsForEnterprise404ResponseBody = BasicError; -export type SecretScanningListAlertsForEnterprise503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type SecretScanningListAlertsForEnterpriseRequestQuery = { readonly "state"?: "open" | "resolved"; readonly "secret_type"?: string; readonly "resolution"?: string; readonly "sort"?: "created" | "updated"; readonly "direction"?: "asc" | "desc"; readonly "per_page"?: number; readonly "before"?: string; readonly "after"?: string }; - -export type SecretScanningListAlertsForEnterpriseRequestPath = { readonly "enterprise": string }; - -export type AdvancedSecurityActiveCommittersUser = { readonly "user_login": string; readonly "last_pushed_date": string }; - -export type AdvancedSecurityActiveCommittersRepository = { readonly "name": string; readonly "advanced_security_committers": number; readonly "advanced_security_committers_breakdown": ReadonlyArray }; - -export type AdvancedSecurityActiveCommitters = { readonly "total_advanced_security_committers"?: number; readonly "total_count"?: number; readonly "repositories": ReadonlyArray }; +export type SecretScanningListAlertsForEnterprise503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type SecretScanningListAlertsForEnterpriseRequestQuery = { + readonly state?: 'open' | 'resolved'; + readonly secret_type?: string; + readonly resolution?: string; + readonly sort?: 'created' | 'updated'; + readonly direction?: 'asc' | 'desc'; + readonly per_page?: number; + readonly before?: string; + readonly after?: string; +}; + +export type SecretScanningListAlertsForEnterpriseRequestPath = { + readonly enterprise: string; +}; + +export type AdvancedSecurityActiveCommittersUser = { + readonly user_login: string; + readonly last_pushed_date: string; +}; + +export type AdvancedSecurityActiveCommittersRepository = { + readonly name: string; + readonly advanced_security_committers: number; + readonly advanced_security_committers_breakdown: ReadonlyArray; +}; + +export type AdvancedSecurityActiveCommitters = { + readonly total_advanced_security_committers?: number; + readonly total_count?: number; + readonly repositories: ReadonlyArray; +}; export type BillingGetGithubAdvancedSecurityBillingGhe200ResponseBody = AdvancedSecurityActiveCommitters; export type BillingGetGithubAdvancedSecurityBillingGhe403ResponseBody = BasicError; -export type BillingGetGithubAdvancedSecurityBillingGheRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type BillingGetGithubAdvancedSecurityBillingGheRequestPath = { readonly "enterprise": string }; - -export type Actor = { readonly "id": number; readonly "login": string; readonly "display_login"?: string; readonly "gravatar_id": string | null; readonly "url": string; readonly "avatar_url": string }; - -export type Milestone = { readonly "url": string; readonly "html_url": string; readonly "labels_url": string; readonly "id": number; readonly "node_id": string; readonly "number": number; readonly "state": "open" | "closed"; readonly "title": string; readonly "description": string | null; readonly "creator": SimpleUser; readonly "open_issues": number; readonly "closed_issues": number; readonly "created_at": string; readonly "updated_at": string; readonly "closed_at": string | null; readonly "due_on": string | null } | null; - -export type AuthorAssociation = "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER"; - -export type ReactionRollup = { readonly "url": string; readonly "total_count": number; readonly "+1": number; readonly "-1": number; readonly "laugh": number; readonly "confused": number; readonly "heart": number; readonly "hooray": number; readonly "eyes": number; readonly "rocket": number }; - -export type Issue = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "repository_url": string; readonly "labels_url": string; readonly "comments_url": string; readonly "events_url": string; readonly "html_url": string; readonly "number": number; readonly "state": string; readonly "state_reason"?: "completed" | "reopened" | "not_planned" | null; readonly "title": string; readonly "body"?: string | null; readonly "user": SimpleUser; readonly "labels": ReadonlyArray; readonly "assignee": SimpleUser; readonly "assignees"?: ReadonlyArray | null; readonly "milestone": Milestone; readonly "locked": boolean; readonly "active_lock_reason"?: string | null; readonly "comments": number; readonly "pull_request"?: { readonly "merged_at"?: string | null; readonly "diff_url": string | null; readonly "html_url": string | null; readonly "patch_url": string | null; readonly "url": string | null }; readonly "closed_at": string | null; readonly "created_at": string; readonly "updated_at": string; readonly "draft"?: boolean; readonly "closed_by"?: SimpleUser; readonly "body_html"?: string; readonly "body_text"?: string; readonly "timeline_url"?: string; readonly "repository"?: Repository; readonly "performed_via_github_app"?: GitHubApp; readonly "author_association": AuthorAssociation; readonly "reactions"?: ReactionRollup }; - -export type IssueComment = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "body"?: string; readonly "body_text"?: string; readonly "body_html"?: string; readonly "html_url": string; readonly "user": SimpleUser; readonly "created_at": string; readonly "updated_at": string; readonly "issue_url": string; readonly "author_association": AuthorAssociation; readonly "performed_via_github_app"?: GitHubApp; readonly "reactions"?: ReactionRollup }; - -export type Event = { readonly "id": string; readonly "type": string | null; readonly "actor": Actor; readonly "repo": { readonly "id": number; readonly "name": string; readonly "url": string }; readonly "org"?: Actor; readonly "payload": { readonly "action"?: string; readonly "issue"?: Issue; readonly "comment"?: IssueComment; readonly "pages"?: ReadonlyArray<{ readonly "page_name"?: string; readonly "title"?: string; readonly "summary"?: string | null; readonly "action"?: string; readonly "sha"?: string; readonly "html_url"?: string }> }; readonly "public": boolean; readonly "created_at": string | null }; +export type BillingGetGithubAdvancedSecurityBillingGheRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type BillingGetGithubAdvancedSecurityBillingGheRequestPath = { + readonly enterprise: string; +}; + +export type Actor = { + readonly id: number; + readonly login: string; + readonly display_login?: string; + readonly gravatar_id: string | null; + readonly url: string; + readonly avatar_url: string; +}; + +export type Milestone = { + readonly url: string; + readonly html_url: string; + readonly labels_url: string; + readonly id: number; + readonly node_id: string; + readonly number: number; + readonly state: 'open' | 'closed'; + readonly title: string; + readonly description: string | null; + readonly creator: SimpleUser; + readonly open_issues: number; + readonly closed_issues: number; + readonly created_at: string; + readonly updated_at: string; + readonly closed_at: string | null; + readonly due_on: string | null; +} | null; + +export type AuthorAssociation = + | 'COLLABORATOR' + | 'CONTRIBUTOR' + | 'FIRST_TIMER' + | 'FIRST_TIME_CONTRIBUTOR' + | 'MANNEQUIN' + | 'MEMBER' + | 'NONE' + | 'OWNER'; + +export type ReactionRollup = { + readonly url: string; + readonly total_count: number; + readonly '+1': number; + readonly '-1': number; + readonly laugh: number; + readonly confused: number; + readonly heart: number; + readonly hooray: number; + readonly eyes: number; + readonly rocket: number; +}; + +export type Issue = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly repository_url: string; + readonly labels_url: string; + readonly comments_url: string; + readonly events_url: string; + readonly html_url: string; + readonly number: number; + readonly state: string; + readonly state_reason?: 'completed' | 'reopened' | 'not_planned' | null; + readonly title: string; + readonly body?: string | null; + readonly user: SimpleUser; + readonly labels: ReadonlyArray< + | string + | { + readonly id?: number; + readonly node_id?: string; + readonly url?: string; + readonly name?: string; + readonly description?: string | null; + readonly color?: string | null; + readonly default?: boolean; + } + >; + readonly assignee: SimpleUser; + readonly assignees?: ReadonlyArray | null; + readonly milestone: Milestone; + readonly locked: boolean; + readonly active_lock_reason?: string | null; + readonly comments: number; + readonly pull_request?: { + readonly merged_at?: string | null; + readonly diff_url: string | null; + readonly html_url: string | null; + readonly patch_url: string | null; + readonly url: string | null; + }; + readonly closed_at: string | null; + readonly created_at: string; + readonly updated_at: string; + readonly draft?: boolean; + readonly closed_by?: SimpleUser; + readonly body_html?: string; + readonly body_text?: string; + readonly timeline_url?: string; + readonly repository?: Repository; + readonly performed_via_github_app?: GitHubApp; + readonly author_association: AuthorAssociation; + readonly reactions?: ReactionRollup; +}; + +export type IssueComment = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly body?: string; + readonly body_text?: string; + readonly body_html?: string; + readonly html_url: string; + readonly user: SimpleUser; + readonly created_at: string; + readonly updated_at: string; + readonly issue_url: string; + readonly author_association: AuthorAssociation; + readonly performed_via_github_app?: GitHubApp; + readonly reactions?: ReactionRollup; +}; + +export type Event = { + readonly id: string; + readonly type: string | null; + readonly actor: Actor; + readonly repo: { + readonly id: number; + readonly name: string; + readonly url: string; + }; + readonly org?: Actor; + readonly payload: { + readonly action?: string; + readonly issue?: Issue; + readonly comment?: IssueComment; + readonly pages?: ReadonlyArray<{ + readonly page_name?: string; + readonly title?: string; + readonly summary?: string | null; + readonly action?: string; + readonly sha?: string; + readonly html_url?: string; + }>; + }; + readonly public: boolean; + readonly created_at: string | null; +}; export type ActivityListPublicEvents200ResponseBody = ReadonlyArray; export type ActivityListPublicEvents403ResponseBody = BasicError; -export type ActivityListPublicEvents503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type ActivityListPublicEventsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type LinkWithType = { readonly "href": string; readonly "type": string }; - -export type Feed = { readonly "timeline_url": string; readonly "user_url": string; readonly "current_user_public_url"?: string; readonly "current_user_url"?: string; readonly "current_user_actor_url"?: string; readonly "current_user_organization_url"?: string; readonly "current_user_organization_urls"?: ReadonlyArray; readonly "security_advisories_url"?: string; readonly "_links": { readonly "timeline": LinkWithType; readonly "user": LinkWithType; readonly "security_advisories"?: LinkWithType; readonly "current_user"?: LinkWithType; readonly "current_user_public"?: LinkWithType; readonly "current_user_actor"?: LinkWithType; readonly "current_user_organization"?: LinkWithType; readonly "current_user_organizations"?: ReadonlyArray } }; +export type ActivityListPublicEvents503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type ActivityListPublicEventsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type LinkWithType = { readonly href: string; readonly type: string }; + +export type Feed = { + readonly timeline_url: string; + readonly user_url: string; + readonly current_user_public_url?: string; + readonly current_user_url?: string; + readonly current_user_actor_url?: string; + readonly current_user_organization_url?: string; + readonly current_user_organization_urls?: ReadonlyArray; + readonly security_advisories_url?: string; + readonly _links: { + readonly timeline: LinkWithType; + readonly user: LinkWithType; + readonly security_advisories?: LinkWithType; + readonly current_user?: LinkWithType; + readonly current_user_public?: LinkWithType; + readonly current_user_actor?: LinkWithType; + readonly current_user_organization?: LinkWithType; + readonly current_user_organizations?: ReadonlyArray; + }; +}; export type ActivityGetFeeds200ResponseBody = Feed; -export type BaseGist = { readonly "url": string; readonly "forks_url": string; readonly "commits_url": string; readonly "id": string; readonly "node_id": string; readonly "git_pull_url": string; readonly "git_push_url": string; readonly "html_url": string; readonly "files": unknown; readonly "public": boolean; readonly "created_at": string; readonly "updated_at": string; readonly "description": string | null; readonly "comments": number; readonly "user": SimpleUser; readonly "comments_url": string; readonly "owner"?: SimpleUser; readonly "truncated"?: boolean; readonly "forks"?: ReadonlyArray; readonly "history"?: ReadonlyArray }; +export type BaseGist = { + readonly url: string; + readonly forks_url: string; + readonly commits_url: string; + readonly id: string; + readonly node_id: string; + readonly git_pull_url: string; + readonly git_push_url: string; + readonly html_url: string; + readonly files: unknown; + readonly public: boolean; + readonly created_at: string; + readonly updated_at: string; + readonly description: string | null; + readonly comments: number; + readonly user: SimpleUser; + readonly comments_url: string; + readonly owner?: SimpleUser; + readonly truncated?: boolean; + readonly forks?: ReadonlyArray; + readonly history?: ReadonlyArray; +}; export type GistsList200ResponseBody = ReadonlyArray; export type GistsList403ResponseBody = BasicError; -export type GistsListRequestQuery = { readonly "since"?: string; readonly "per_page"?: number; readonly "page"?: number }; - -export type PublicUser = { readonly "login": string; readonly "id": number; readonly "node_id": string; readonly "avatar_url": string; readonly "gravatar_id": string | null; readonly "url": string; readonly "html_url": string; readonly "followers_url": string; readonly "following_url": string; readonly "gists_url": string; readonly "starred_url": string; readonly "subscriptions_url": string; readonly "organizations_url": string; readonly "repos_url": string; readonly "events_url": string; readonly "received_events_url": string; readonly "type": string; readonly "site_admin": boolean; readonly "name": string | null; readonly "company": string | null; readonly "blog": string | null; readonly "location": string | null; readonly "email": string | null; readonly "hireable": boolean | null; readonly "bio": string | null; readonly "twitter_username"?: string | null; readonly "public_repos": number; readonly "public_gists": number; readonly "followers": number; readonly "following": number; readonly "created_at": string; readonly "updated_at": string; readonly "plan"?: { readonly "collaborators": number; readonly "name": string; readonly "space": number; readonly "private_repos": number }; readonly "suspended_at"?: string | null; readonly "private_gists"?: number; readonly "total_private_repos"?: number; readonly "owned_private_repos"?: number; readonly "disk_usage"?: number; readonly "collaborators"?: number }; - -export type GistHistory = { readonly "user"?: SimpleUser; readonly "version"?: string; readonly "committed_at"?: string; readonly "change_status"?: { readonly "total"?: number; readonly "additions"?: number; readonly "deletions"?: number }; readonly "url"?: string }; - -export type Gist = { readonly "url": string; readonly "forks_url": string; readonly "commits_url": string; readonly "id": string; readonly "node_id": string; readonly "git_pull_url": string; readonly "git_push_url": string; readonly "html_url": string; readonly "files": unknown; readonly "public": boolean; readonly "created_at": string; readonly "updated_at": string; readonly "description": string | null; readonly "comments": number; readonly "user": SimpleUser; readonly "comments_url": string; readonly "owner"?: SimpleUser; readonly "truncated"?: boolean; readonly "forks"?: ReadonlyArray; readonly "history"?: ReadonlyArray } | null; - -export type GistSimple = { readonly "forks"?: ReadonlyArray<{ readonly "id"?: string; readonly "url"?: string; readonly "user"?: PublicUser; readonly "created_at"?: string; readonly "updated_at"?: string }> | null; readonly "history"?: ReadonlyArray | null; readonly "fork_of"?: Gist; readonly "url"?: string; readonly "forks_url"?: string; readonly "commits_url"?: string; readonly "id"?: string; readonly "node_id"?: string; readonly "git_pull_url"?: string; readonly "git_push_url"?: string; readonly "html_url"?: string; readonly "files"?: unknown; readonly "public"?: boolean; readonly "created_at"?: string; readonly "updated_at"?: string; readonly "description"?: string | null; readonly "comments"?: number; readonly "user"?: string | null; readonly "comments_url"?: string; readonly "owner"?: SimpleUser; readonly "truncated"?: boolean }; +export type GistsListRequestQuery = { + readonly since?: string; + readonly per_page?: number; + readonly page?: number; +}; + +export type PublicUser = { + readonly login: string; + readonly id: number; + readonly node_id: string; + readonly avatar_url: string; + readonly gravatar_id: string | null; + readonly url: string; + readonly html_url: string; + readonly followers_url: string; + readonly following_url: string; + readonly gists_url: string; + readonly starred_url: string; + readonly subscriptions_url: string; + readonly organizations_url: string; + readonly repos_url: string; + readonly events_url: string; + readonly received_events_url: string; + readonly type: string; + readonly site_admin: boolean; + readonly name: string | null; + readonly company: string | null; + readonly blog: string | null; + readonly location: string | null; + readonly email: string | null; + readonly hireable: boolean | null; + readonly bio: string | null; + readonly twitter_username?: string | null; + readonly public_repos: number; + readonly public_gists: number; + readonly followers: number; + readonly following: number; + readonly created_at: string; + readonly updated_at: string; + readonly plan?: { + readonly collaborators: number; + readonly name: string; + readonly space: number; + readonly private_repos: number; + }; + readonly suspended_at?: string | null; + readonly private_gists?: number; + readonly total_private_repos?: number; + readonly owned_private_repos?: number; + readonly disk_usage?: number; + readonly collaborators?: number; +}; + +export type GistHistory = { + readonly user?: SimpleUser; + readonly version?: string; + readonly committed_at?: string; + readonly change_status?: { + readonly total?: number; + readonly additions?: number; + readonly deletions?: number; + }; + readonly url?: string; +}; + +export type Gist = { + readonly url: string; + readonly forks_url: string; + readonly commits_url: string; + readonly id: string; + readonly node_id: string; + readonly git_pull_url: string; + readonly git_push_url: string; + readonly html_url: string; + readonly files: unknown; + readonly public: boolean; + readonly created_at: string; + readonly updated_at: string; + readonly description: string | null; + readonly comments: number; + readonly user: SimpleUser; + readonly comments_url: string; + readonly owner?: SimpleUser; + readonly truncated?: boolean; + readonly forks?: ReadonlyArray; + readonly history?: ReadonlyArray; +} | null; + +export type GistSimple = { + readonly forks?: ReadonlyArray<{ + readonly id?: string; + readonly url?: string; + readonly user?: PublicUser; + readonly created_at?: string; + readonly updated_at?: string; + }> | null; + readonly history?: ReadonlyArray | null; + readonly fork_of?: Gist; + readonly url?: string; + readonly forks_url?: string; + readonly commits_url?: string; + readonly id?: string; + readonly node_id?: string; + readonly git_pull_url?: string; + readonly git_push_url?: string; + readonly html_url?: string; + readonly files?: unknown; + readonly public?: boolean; + readonly created_at?: string; + readonly updated_at?: string; + readonly description?: string | null; + readonly comments?: number; + readonly user?: string | null; + readonly comments_url?: string; + readonly owner?: SimpleUser; + readonly truncated?: boolean; +}; export type GistsCreate201ResponseBody = GistSimple; @@ -532,7 +1846,11 @@ export type GistsCreate404ResponseBody = BasicError; export type GistsCreate422ResponseBody = ValidationError; -export type GistsCreateRequestBody = { readonly "description"?: string; readonly "files": unknown; readonly "public"?: boolean | "true" | "false" }; +export type GistsCreateRequestBody = { + readonly description?: string; + readonly files: unknown; + readonly public?: boolean | 'true' | 'false'; +}; export type GistsListPublic200ResponseBody = ReadonlyArray; @@ -540,7 +1858,11 @@ export type GistsListPublic403ResponseBody = BasicError; export type GistsListPublic422ResponseBody = ValidationError; -export type GistsListPublicRequestQuery = { readonly "since"?: string; readonly "per_page"?: number; readonly "page"?: number }; +export type GistsListPublicRequestQuery = { + readonly since?: string; + readonly per_page?: number; + readonly page?: number; +}; export type GistsListStarred200ResponseBody = ReadonlyArray; @@ -548,15 +1870,27 @@ export type GistsListStarred401ResponseBody = BasicError; export type GistsListStarred403ResponseBody = BasicError; -export type GistsListStarredRequestQuery = { readonly "since"?: string; readonly "per_page"?: number; readonly "page"?: number }; +export type GistsListStarredRequestQuery = { + readonly since?: string; + readonly per_page?: number; + readonly page?: number; +}; export type GistsGet200ResponseBody = GistSimple; -export type GistsGet403ResponseBody = { readonly "block"?: { readonly "reason"?: string; readonly "created_at"?: string; readonly "html_url"?: string | null }; readonly "message"?: string; readonly "documentation_url"?: string }; +export type GistsGet403ResponseBody = { + readonly block?: { + readonly reason?: string; + readonly created_at?: string; + readonly html_url?: string | null; + }; + readonly message?: string; + readonly documentation_url?: string; +}; export type GistsGet404ResponseBody = BasicError; -export type GistsGetRequestPath = { readonly "gist_id": string }; +export type GistsGetRequestPath = { readonly gist_id: string }; export type GistsUpdate200ResponseBody = GistSimple; @@ -564,17 +1898,31 @@ export type GistsUpdate404ResponseBody = BasicError; export type GistsUpdate422ResponseBody = ValidationError; -export type GistsUpdateRequestBody = { readonly "description"?: string; readonly "files"?: unknown } & (unknown | unknown) | null; +export type GistsUpdateRequestBody = + | ({ readonly description?: string; readonly files?: unknown } & ( + | unknown + | unknown + )) + | null; -export type GistsUpdateRequestPath = { readonly "gist_id": string }; +export type GistsUpdateRequestPath = { readonly gist_id: string }; export type GistsDelete403ResponseBody = BasicError; export type GistsDelete404ResponseBody = BasicError; -export type GistsDeleteRequestPath = { readonly "gist_id": string }; +export type GistsDeleteRequestPath = { readonly gist_id: string }; -export type GistComment = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "body": string; readonly "user": SimpleUser; readonly "created_at": string; readonly "updated_at": string; readonly "author_association": AuthorAssociation }; +export type GistComment = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly body: string; + readonly user: SimpleUser; + readonly created_at: string; + readonly updated_at: string; + readonly author_association: AuthorAssociation; +}; export type GistsListComments200ResponseBody = ReadonlyArray; @@ -582,9 +1930,12 @@ export type GistsListComments403ResponseBody = BasicError; export type GistsListComments404ResponseBody = BasicError; -export type GistsListCommentsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type GistsListCommentsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type GistsListCommentsRequestPath = { readonly "gist_id": string }; +export type GistsListCommentsRequestPath = { readonly gist_id: string }; export type GistsCreateComment201ResponseBody = GistComment; @@ -592,33 +1943,60 @@ export type GistsCreateComment403ResponseBody = BasicError; export type GistsCreateComment404ResponseBody = BasicError; -export type GistsCreateCommentRequestBody = { readonly "body": string }; +export type GistsCreateCommentRequestBody = { readonly body: string }; -export type GistsCreateCommentRequestPath = { readonly "gist_id": string }; +export type GistsCreateCommentRequestPath = { readonly gist_id: string }; export type GistsGetComment200ResponseBody = GistComment; -export type GistsGetComment403ResponseBody = { readonly "block"?: { readonly "reason"?: string; readonly "created_at"?: string; readonly "html_url"?: string | null }; readonly "message"?: string; readonly "documentation_url"?: string }; +export type GistsGetComment403ResponseBody = { + readonly block?: { + readonly reason?: string; + readonly created_at?: string; + readonly html_url?: string | null; + }; + readonly message?: string; + readonly documentation_url?: string; +}; export type GistsGetComment404ResponseBody = BasicError; -export type GistsGetCommentRequestPath = { readonly "gist_id": string; readonly "comment_id": number }; +export type GistsGetCommentRequestPath = { + readonly gist_id: string; + readonly comment_id: number; +}; export type GistsUpdateComment200ResponseBody = GistComment; export type GistsUpdateComment404ResponseBody = BasicError; -export type GistsUpdateCommentRequestBody = { readonly "body": string }; +export type GistsUpdateCommentRequestBody = { readonly body: string }; -export type GistsUpdateCommentRequestPath = { readonly "gist_id": string; readonly "comment_id": number }; +export type GistsUpdateCommentRequestPath = { + readonly gist_id: string; + readonly comment_id: number; +}; export type GistsDeleteComment403ResponseBody = BasicError; export type GistsDeleteComment404ResponseBody = BasicError; -export type GistsDeleteCommentRequestPath = { readonly "gist_id": string; readonly "comment_id": number }; - -export type GistCommit = { readonly "url": string; readonly "version": string; readonly "user": SimpleUser; readonly "change_status": { readonly "total"?: number; readonly "additions"?: number; readonly "deletions"?: number }; readonly "committed_at": string }; +export type GistsDeleteCommentRequestPath = { + readonly gist_id: string; + readonly comment_id: number; +}; + +export type GistCommit = { + readonly url: string; + readonly version: string; + readonly user: SimpleUser; + readonly change_status: { + readonly total?: number; + readonly additions?: number; + readonly deletions?: number; + }; + readonly committed_at: string; +}; export type GistsListCommits200ResponseBody = ReadonlyArray; @@ -626,9 +2004,12 @@ export type GistsListCommits403ResponseBody = BasicError; export type GistsListCommits404ResponseBody = BasicError; -export type GistsListCommitsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type GistsListCommitsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type GistsListCommitsRequestPath = { readonly "gist_id": string }; +export type GistsListCommitsRequestPath = { readonly gist_id: string }; export type GistsListForks200ResponseBody = ReadonlyArray; @@ -636,9 +2017,12 @@ export type GistsListForks403ResponseBody = BasicError; export type GistsListForks404ResponseBody = BasicError; -export type GistsListForksRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type GistsListForksRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type GistsListForksRequestPath = { readonly "gist_id": string }; +export type GistsListForksRequestPath = { readonly gist_id: string }; export type GistsFork201ResponseBody = BaseGist; @@ -648,25 +2032,25 @@ export type GistsFork404ResponseBody = BasicError; export type GistsFork422ResponseBody = ValidationError; -export type GistsForkRequestPath = { readonly "gist_id": string }; +export type GistsForkRequestPath = { readonly gist_id: string }; export type GistsCheckIsStarred403ResponseBody = BasicError; -export type GistsCheckIsStarred404ResponseBody = { }; +export type GistsCheckIsStarred404ResponseBody = {}; -export type GistsCheckIsStarredRequestPath = { readonly "gist_id": string }; +export type GistsCheckIsStarredRequestPath = { readonly gist_id: string }; export type GistsStar403ResponseBody = BasicError; export type GistsStar404ResponseBody = BasicError; -export type GistsStarRequestPath = { readonly "gist_id": string }; +export type GistsStarRequestPath = { readonly gist_id: string }; export type GistsUnstar403ResponseBody = BasicError; export type GistsUnstar404ResponseBody = BasicError; -export type GistsUnstarRequestPath = { readonly "gist_id": string }; +export type GistsUnstarRequestPath = { readonly gist_id: string }; export type GistsGetRevision200ResponseBody = GistSimple; @@ -676,23 +2060,36 @@ export type GistsGetRevision404ResponseBody = BasicError; export type GistsGetRevision422ResponseBody = ValidationError; -export type GistsGetRevisionRequestPath = { readonly "gist_id": string; readonly "sha": string }; +export type GistsGetRevisionRequestPath = { + readonly gist_id: string; + readonly sha: string; +}; export type GitignoreGetAllTemplates200ResponseBody = ReadonlyArray; -export type GitignoreTemplate = { readonly "name": string; readonly "source": string }; +export type GitignoreTemplate = { + readonly name: string; + readonly source: string; +}; export type GitignoreGetTemplate200ResponseBody = GitignoreTemplate; -export type GitignoreGetTemplateRequestPath = { readonly "name": string }; +export type GitignoreGetTemplateRequestPath = { readonly name: string }; -export type AppsListReposAccessibleToInstallation200ResponseBody = { readonly "total_count": number; readonly "repositories": ReadonlyArray; readonly "repository_selection"?: string }; +export type AppsListReposAccessibleToInstallation200ResponseBody = { + readonly total_count: number; + readonly repositories: ReadonlyArray; + readonly repository_selection?: string; +}; export type AppsListReposAccessibleToInstallation401ResponseBody = BasicError; export type AppsListReposAccessibleToInstallation403ResponseBody = BasicError; -export type AppsListReposAccessibleToInstallationRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type AppsListReposAccessibleToInstallationRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; export type IssuesList200ResponseBody = ReadonlyArray; @@ -700,13 +2097,50 @@ export type IssuesList404ResponseBody = BasicError; export type IssuesList422ResponseBody = ValidationError; -export type IssuesListRequestQuery = { readonly "filter"?: "assigned" | "created" | "mentioned" | "subscribed" | "repos" | "all"; readonly "state"?: "open" | "closed" | "all"; readonly "labels"?: string; readonly "sort"?: "created" | "updated" | "comments"; readonly "direction"?: "asc" | "desc"; readonly "since"?: string; readonly "collab"?: boolean; readonly "orgs"?: boolean; readonly "owned"?: boolean; readonly "pulls"?: boolean; readonly "per_page"?: number; readonly "page"?: number }; +export type IssuesListRequestQuery = { + readonly filter?: + | 'assigned' + | 'created' + | 'mentioned' + | 'subscribed' + | 'repos' + | 'all'; + readonly state?: 'open' | 'closed' | 'all'; + readonly labels?: string; + readonly sort?: 'created' | 'updated' | 'comments'; + readonly direction?: 'asc' | 'desc'; + readonly since?: string; + readonly collab?: boolean; + readonly orgs?: boolean; + readonly owned?: boolean; + readonly pulls?: boolean; + readonly per_page?: number; + readonly page?: number; +}; export type LicensesGetAllCommonlyUsed200ResponseBody = ReadonlyArray; -export type LicensesGetAllCommonlyUsedRequestQuery = { readonly "featured"?: boolean; readonly "per_page"?: number; readonly "page"?: number }; - -export type License = { readonly "key": string; readonly "name": string; readonly "spdx_id": string | null; readonly "url": string | null; readonly "node_id": string; readonly "html_url": string; readonly "description": string; readonly "implementation": string; readonly "permissions": ReadonlyArray; readonly "conditions": ReadonlyArray; readonly "limitations": ReadonlyArray; readonly "body": string; readonly "featured": boolean }; +export type LicensesGetAllCommonlyUsedRequestQuery = { + readonly featured?: boolean; + readonly per_page?: number; + readonly page?: number; +}; + +export type License = { + readonly key: string; + readonly name: string; + readonly spdx_id: string | null; + readonly url: string | null; + readonly node_id: string; + readonly html_url: string; + readonly description: string; + readonly implementation: string; + readonly permissions: ReadonlyArray; + readonly conditions: ReadonlyArray; + readonly limitations: ReadonlyArray; + readonly body: string; + readonly featured: boolean; +}; export type LicensesGet200ResponseBody = License; @@ -714,13 +2148,55 @@ export type LicensesGet403ResponseBody = BasicError; export type LicensesGet404ResponseBody = BasicError; -export type LicensesGetRequestPath = { readonly "license": string }; - -export type MarkdownRenderRequestBody = { readonly "text": string; readonly "mode"?: "markdown" | "gfm"; readonly "context"?: string }; - -export type MarketplaceListingPlan = { readonly "url": string; readonly "accounts_url": string; readonly "id": number; readonly "number": number; readonly "name": string; readonly "description": string; readonly "monthly_price_in_cents": number; readonly "yearly_price_in_cents": number; readonly "price_model": string; readonly "has_free_trial": boolean; readonly "unit_name": string | null; readonly "state": string; readonly "bullets": ReadonlyArray }; - -export type MarketplacePurchase = { readonly "url": string; readonly "type": string; readonly "id": number; readonly "login": string; readonly "organization_billing_email"?: string; readonly "email"?: string | null; readonly "marketplace_pending_change"?: { readonly "is_installed"?: boolean; readonly "effective_date"?: string; readonly "unit_count"?: number | null; readonly "id"?: number; readonly "plan"?: MarketplaceListingPlan } | null; readonly "marketplace_purchase": { readonly "billing_cycle"?: string; readonly "next_billing_date"?: string | null; readonly "is_installed"?: boolean; readonly "unit_count"?: number | null; readonly "on_free_trial"?: boolean; readonly "free_trial_ends_on"?: string | null; readonly "updated_at"?: string; readonly "plan"?: MarketplaceListingPlan } }; +export type LicensesGetRequestPath = { readonly license: string }; + +export type MarkdownRenderRequestBody = { + readonly text: string; + readonly mode?: 'markdown' | 'gfm'; + readonly context?: string; +}; + +export type MarketplaceListingPlan = { + readonly url: string; + readonly accounts_url: string; + readonly id: number; + readonly number: number; + readonly name: string; + readonly description: string; + readonly monthly_price_in_cents: number; + readonly yearly_price_in_cents: number; + readonly price_model: string; + readonly has_free_trial: boolean; + readonly unit_name: string | null; + readonly state: string; + readonly bullets: ReadonlyArray; +}; + +export type MarketplacePurchase = { + readonly url: string; + readonly type: string; + readonly id: number; + readonly login: string; + readonly organization_billing_email?: string; + readonly email?: string | null; + readonly marketplace_pending_change?: { + readonly is_installed?: boolean; + readonly effective_date?: string; + readonly unit_count?: number | null; + readonly id?: number; + readonly plan?: MarketplaceListingPlan; + } | null; + readonly marketplace_purchase: { + readonly billing_cycle?: string; + readonly next_billing_date?: string | null; + readonly is_installed?: boolean; + readonly unit_count?: number | null; + readonly on_free_trial?: boolean; + readonly free_trial_ends_on?: string | null; + readonly updated_at?: string; + readonly plan?: MarketplaceListingPlan; + }; +}; export type AppsGetSubscriptionPlanForAccount200ResponseBody = MarketplacePurchase; @@ -728,7 +2204,9 @@ export type AppsGetSubscriptionPlanForAccount401ResponseBody = BasicError; export type AppsGetSubscriptionPlanForAccount404ResponseBody = BasicError; -export type AppsGetSubscriptionPlanForAccountRequestPath = { readonly "account_id": number }; +export type AppsGetSubscriptionPlanForAccountRequestPath = { + readonly account_id: number; +}; export type AppsListPlans200ResponseBody = ReadonlyArray; @@ -736,7 +2214,10 @@ export type AppsListPlans401ResponseBody = BasicError; export type AppsListPlans404ResponseBody = BasicError; -export type AppsListPlansRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type AppsListPlansRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; export type AppsListAccountsForPlan200ResponseBody = ReadonlyArray; @@ -746,31 +2227,66 @@ export type AppsListAccountsForPlan404ResponseBody = BasicError; export type AppsListAccountsForPlan422ResponseBody = ValidationError; -export type AppsListAccountsForPlanRequestQuery = { readonly "sort"?: "created" | "updated"; readonly "direction"?: "asc" | "desc"; readonly "per_page"?: number; readonly "page"?: number }; +export type AppsListAccountsForPlanRequestQuery = { + readonly sort?: 'created' | 'updated'; + readonly direction?: 'asc' | 'desc'; + readonly per_page?: number; + readonly page?: number; +}; -export type AppsListAccountsForPlanRequestPath = { readonly "plan_id": number }; +export type AppsListAccountsForPlanRequestPath = { readonly plan_id: number }; export type AppsGetSubscriptionPlanForAccountStubbed200ResponseBody = MarketplacePurchase; export type AppsGetSubscriptionPlanForAccountStubbed401ResponseBody = BasicError; -export type AppsGetSubscriptionPlanForAccountStubbedRequestPath = { readonly "account_id": number }; +export type AppsGetSubscriptionPlanForAccountStubbedRequestPath = { + readonly account_id: number; +}; export type AppsListPlansStubbed200ResponseBody = ReadonlyArray; export type AppsListPlansStubbed401ResponseBody = BasicError; -export type AppsListPlansStubbedRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type AppsListPlansStubbedRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; export type AppsListAccountsForPlanStubbed200ResponseBody = ReadonlyArray; export type AppsListAccountsForPlanStubbed401ResponseBody = BasicError; -export type AppsListAccountsForPlanStubbedRequestQuery = { readonly "sort"?: "created" | "updated"; readonly "direction"?: "asc" | "desc"; readonly "per_page"?: number; readonly "page"?: number }; - -export type AppsListAccountsForPlanStubbedRequestPath = { readonly "plan_id": number }; - -export type ApiOverview = { readonly "verifiable_password_authentication": boolean; readonly "ssh_key_fingerprints"?: { readonly "SHA256_RSA"?: string; readonly "SHA256_DSA"?: string; readonly "SHA256_ECDSA"?: string; readonly "SHA256_ED25519"?: string }; readonly "ssh_keys"?: ReadonlyArray; readonly "hooks"?: ReadonlyArray; readonly "web"?: ReadonlyArray; readonly "api"?: ReadonlyArray; readonly "git"?: ReadonlyArray; readonly "packages"?: ReadonlyArray; readonly "pages"?: ReadonlyArray; readonly "importer"?: ReadonlyArray; readonly "actions"?: ReadonlyArray; readonly "dependabot"?: ReadonlyArray }; +export type AppsListAccountsForPlanStubbedRequestQuery = { + readonly sort?: 'created' | 'updated'; + readonly direction?: 'asc' | 'desc'; + readonly per_page?: number; + readonly page?: number; +}; + +export type AppsListAccountsForPlanStubbedRequestPath = { + readonly plan_id: number; +}; + +export type ApiOverview = { + readonly verifiable_password_authentication: boolean; + readonly ssh_key_fingerprints?: { + readonly SHA256_RSA?: string; + readonly SHA256_DSA?: string; + readonly SHA256_ECDSA?: string; + readonly SHA256_ED25519?: string; + }; + readonly ssh_keys?: ReadonlyArray; + readonly hooks?: ReadonlyArray; + readonly web?: ReadonlyArray; + readonly api?: ReadonlyArray; + readonly git?: ReadonlyArray; + readonly packages?: ReadonlyArray; + readonly pages?: ReadonlyArray; + readonly importer?: ReadonlyArray; + readonly actions?: ReadonlyArray; + readonly dependabot?: ReadonlyArray; +}; export type MetaGet200ResponseBody = ApiOverview; @@ -782,13 +2298,132 @@ export type ActivityListPublicEventsForRepoNetwork403ResponseBody = BasicError; export type ActivityListPublicEventsForRepoNetwork404ResponseBody = BasicError; -export type ActivityListPublicEventsForRepoNetworkRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActivityListPublicEventsForRepoNetworkRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type MinimalRepository = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "full_name": string; readonly "owner": SimpleUser; readonly "private": boolean; readonly "html_url": string; readonly "description": string | null; readonly "fork": boolean; readonly "url": string; readonly "archive_url": string; readonly "assignees_url": string; readonly "blobs_url": string; readonly "branches_url": string; readonly "collaborators_url": string; readonly "comments_url": string; readonly "commits_url": string; readonly "compare_url": string; readonly "contents_url": string; readonly "contributors_url": string; readonly "deployments_url": string; readonly "downloads_url": string; readonly "events_url": string; readonly "forks_url": string; readonly "git_commits_url": string; readonly "git_refs_url": string; readonly "git_tags_url": string; readonly "git_url"?: string; readonly "issue_comment_url": string; readonly "issue_events_url": string; readonly "issues_url": string; readonly "keys_url": string; readonly "labels_url": string; readonly "languages_url": string; readonly "merges_url": string; readonly "milestones_url": string; readonly "notifications_url": string; readonly "pulls_url": string; readonly "releases_url": string; readonly "ssh_url"?: string; readonly "stargazers_url": string; readonly "statuses_url": string; readonly "subscribers_url": string; readonly "subscription_url": string; readonly "tags_url": string; readonly "teams_url": string; readonly "trees_url": string; readonly "clone_url"?: string; readonly "mirror_url"?: string | null; readonly "hooks_url": string; readonly "svn_url"?: string; readonly "homepage"?: string | null; readonly "language"?: string | null; readonly "forks_count"?: number; readonly "stargazers_count"?: number; readonly "watchers_count"?: number; readonly "size"?: number; readonly "default_branch"?: string; readonly "open_issues_count"?: number; readonly "is_template"?: boolean; readonly "topics"?: ReadonlyArray; readonly "has_issues"?: boolean; readonly "has_projects"?: boolean; readonly "has_wiki"?: boolean; readonly "has_pages"?: boolean; readonly "has_downloads"?: boolean; readonly "archived"?: boolean; readonly "disabled"?: boolean; readonly "visibility"?: string; readonly "pushed_at"?: string | null; readonly "created_at"?: string | null; readonly "updated_at"?: string | null; readonly "permissions"?: { readonly "admin"?: boolean; readonly "maintain"?: boolean; readonly "push"?: boolean; readonly "triage"?: boolean; readonly "pull"?: boolean }; readonly "role_name"?: string; readonly "temp_clone_token"?: string; readonly "delete_branch_on_merge"?: boolean; readonly "subscribers_count"?: number; readonly "network_count"?: number; readonly "code_of_conduct"?: CodeOfConduct; readonly "license"?: { readonly "key"?: string; readonly "name"?: string; readonly "spdx_id"?: string; readonly "url"?: string; readonly "node_id"?: string } | null; readonly "forks"?: number; readonly "open_issues"?: number; readonly "watchers"?: number; readonly "allow_forking"?: boolean; readonly "web_commit_signoff_required"?: boolean }; - -export type Thread = { readonly "id": string; readonly "repository": MinimalRepository; readonly "subject": { readonly "title": string; readonly "url": string; readonly "latest_comment_url": string; readonly "type": string }; readonly "reason": string; readonly "unread": boolean; readonly "updated_at": string; readonly "last_read_at": string | null; readonly "url": string; readonly "subscription_url": string }; +export type ActivityListPublicEventsForRepoNetworkRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActivityListPublicEventsForRepoNetworkRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type MinimalRepository = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly full_name: string; + readonly owner: SimpleUser; + readonly private: boolean; + readonly html_url: string; + readonly description: string | null; + readonly fork: boolean; + readonly url: string; + readonly archive_url: string; + readonly assignees_url: string; + readonly blobs_url: string; + readonly branches_url: string; + readonly collaborators_url: string; + readonly comments_url: string; + readonly commits_url: string; + readonly compare_url: string; + readonly contents_url: string; + readonly contributors_url: string; + readonly deployments_url: string; + readonly downloads_url: string; + readonly events_url: string; + readonly forks_url: string; + readonly git_commits_url: string; + readonly git_refs_url: string; + readonly git_tags_url: string; + readonly git_url?: string; + readonly issue_comment_url: string; + readonly issue_events_url: string; + readonly issues_url: string; + readonly keys_url: string; + readonly labels_url: string; + readonly languages_url: string; + readonly merges_url: string; + readonly milestones_url: string; + readonly notifications_url: string; + readonly pulls_url: string; + readonly releases_url: string; + readonly ssh_url?: string; + readonly stargazers_url: string; + readonly statuses_url: string; + readonly subscribers_url: string; + readonly subscription_url: string; + readonly tags_url: string; + readonly teams_url: string; + readonly trees_url: string; + readonly clone_url?: string; + readonly mirror_url?: string | null; + readonly hooks_url: string; + readonly svn_url?: string; + readonly homepage?: string | null; + readonly language?: string | null; + readonly forks_count?: number; + readonly stargazers_count?: number; + readonly watchers_count?: number; + readonly size?: number; + readonly default_branch?: string; + readonly open_issues_count?: number; + readonly is_template?: boolean; + readonly topics?: ReadonlyArray; + readonly has_issues?: boolean; + readonly has_projects?: boolean; + readonly has_wiki?: boolean; + readonly has_pages?: boolean; + readonly has_downloads?: boolean; + readonly archived?: boolean; + readonly disabled?: boolean; + readonly visibility?: string; + readonly pushed_at?: string | null; + readonly created_at?: string | null; + readonly updated_at?: string | null; + readonly permissions?: { + readonly admin?: boolean; + readonly maintain?: boolean; + readonly push?: boolean; + readonly triage?: boolean; + readonly pull?: boolean; + }; + readonly role_name?: string; + readonly temp_clone_token?: string; + readonly delete_branch_on_merge?: boolean; + readonly subscribers_count?: number; + readonly network_count?: number; + readonly code_of_conduct?: CodeOfConduct; + readonly license?: { + readonly key?: string; + readonly name?: string; + readonly spdx_id?: string; + readonly url?: string; + readonly node_id?: string; + } | null; + readonly forks?: number; + readonly open_issues?: number; + readonly watchers?: number; + readonly allow_forking?: boolean; + readonly web_commit_signoff_required?: boolean; +}; + +export type Thread = { + readonly id: string; + readonly repository: MinimalRepository; + readonly subject: { + readonly title: string; + readonly url: string; + readonly latest_comment_url: string; + readonly type: string; + }; + readonly reason: string; + readonly unread: boolean; + readonly updated_at: string; + readonly last_read_at: string | null; + readonly url: string; + readonly subscription_url: string; +}; export type ActivityListNotificationsForAuthenticatedUser200ResponseBody = ReadonlyArray; @@ -798,15 +2433,27 @@ export type ActivityListNotificationsForAuthenticatedUser403ResponseBody = Basic export type ActivityListNotificationsForAuthenticatedUser422ResponseBody = ValidationError; -export type ActivityListNotificationsForAuthenticatedUserRequestQuery = { readonly "all"?: boolean; readonly "participating"?: boolean; readonly "since"?: string; readonly "before"?: string; readonly "page"?: number; readonly "per_page"?: number }; +export type ActivityListNotificationsForAuthenticatedUserRequestQuery = { + readonly all?: boolean; + readonly participating?: boolean; + readonly since?: string; + readonly before?: string; + readonly page?: number; + readonly per_page?: number; +}; -export type ActivityMarkNotificationsAsRead202ResponseBody = { readonly "message"?: string }; +export type ActivityMarkNotificationsAsRead202ResponseBody = { + readonly message?: string; +}; export type ActivityMarkNotificationsAsRead401ResponseBody = BasicError; export type ActivityMarkNotificationsAsRead403ResponseBody = BasicError; -export type ActivityMarkNotificationsAsReadRequestBody = { readonly "last_read_at"?: string; readonly "read"?: boolean }; +export type ActivityMarkNotificationsAsReadRequestBody = { + readonly last_read_at?: string; + readonly read?: boolean; +}; export type ActivityGetThread200ResponseBody = Thread; @@ -814,13 +2461,23 @@ export type ActivityGetThread401ResponseBody = BasicError; export type ActivityGetThread403ResponseBody = BasicError; -export type ActivityGetThreadRequestPath = { readonly "thread_id": number }; +export type ActivityGetThreadRequestPath = { readonly thread_id: number }; export type ActivityMarkThreadAsRead403ResponseBody = BasicError; -export type ActivityMarkThreadAsReadRequestPath = { readonly "thread_id": number }; +export type ActivityMarkThreadAsReadRequestPath = { + readonly thread_id: number; +}; -export type ThreadSubscription = { readonly "subscribed": boolean; readonly "ignored": boolean; readonly "reason": string | null; readonly "created_at": string | null; readonly "url": string; readonly "thread_url"?: string; readonly "repository_url"?: string }; +export type ThreadSubscription = { + readonly subscribed: boolean; + readonly ignored: boolean; + readonly reason: string | null; + readonly created_at: string | null; + readonly url: string; + readonly thread_url?: string; + readonly repository_url?: string; +}; export type ActivityGetThreadSubscriptionForAuthenticatedUser200ResponseBody = ThreadSubscription; @@ -828,7 +2485,9 @@ export type ActivityGetThreadSubscriptionForAuthenticatedUser401ResponseBody = B export type ActivityGetThreadSubscriptionForAuthenticatedUser403ResponseBody = BasicError; -export type ActivityGetThreadSubscriptionForAuthenticatedUserRequestPath = { readonly "thread_id": number }; +export type ActivityGetThreadSubscriptionForAuthenticatedUserRequestPath = { + readonly thread_id: number; +}; export type ActivitySetThreadSubscription200ResponseBody = ThreadSubscription; @@ -836,35 +2495,119 @@ export type ActivitySetThreadSubscription401ResponseBody = BasicError; export type ActivitySetThreadSubscription403ResponseBody = BasicError; -export type ActivitySetThreadSubscriptionRequestBody = { readonly "ignored"?: boolean }; +export type ActivitySetThreadSubscriptionRequestBody = { + readonly ignored?: boolean; +}; -export type ActivitySetThreadSubscriptionRequestPath = { readonly "thread_id": number }; +export type ActivitySetThreadSubscriptionRequestPath = { + readonly thread_id: number; +}; export type ActivityDeleteThreadSubscription401ResponseBody = BasicError; export type ActivityDeleteThreadSubscription403ResponseBody = BasicError; -export type ActivityDeleteThreadSubscriptionRequestPath = { readonly "thread_id": number }; +export type ActivityDeleteThreadSubscriptionRequestPath = { + readonly thread_id: number; +}; -export type MetaGetOctocatRequestQuery = { readonly "s"?: string }; +export type MetaGetOctocatRequestQuery = { readonly s?: string }; export type OrgsList200ResponseBody = ReadonlyArray; -export type OrgsListRequestQuery = { readonly "since"?: number; readonly "per_page"?: number }; - -export type OrganizationCustomRepositoryRole = { readonly "id": number; readonly "name": string; readonly "description"?: string | null; readonly "base_role"?: "read" | "triage" | "write" | "maintain"; readonly "permissions"?: ReadonlyArray; readonly "organization"?: SimpleUser; readonly "created_at"?: string; readonly "updated_at"?: string }; - -export type OrgsListCustomRoles200ResponseBody = { readonly "total_count"?: number; readonly "custom_roles"?: ReadonlyArray }; - -export type OrgsListCustomRolesRequestPath = { readonly "organization_id": string }; - -export type OrganizationFull = { readonly "login": string; readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "repos_url": string; readonly "events_url": string; readonly "hooks_url": string; readonly "issues_url": string; readonly "members_url": string; readonly "public_members_url": string; readonly "avatar_url": string; readonly "description": string | null; readonly "name"?: string; readonly "company"?: string; readonly "blog"?: string; readonly "location"?: string; readonly "email"?: string; readonly "twitter_username"?: string | null; readonly "is_verified"?: boolean; readonly "has_organization_projects": boolean; readonly "has_repository_projects": boolean; readonly "public_repos": number; readonly "public_gists": number; readonly "followers": number; readonly "following": number; readonly "html_url": string; readonly "created_at": string; readonly "type": string; readonly "total_private_repos"?: number; readonly "owned_private_repos"?: number; readonly "private_gists"?: number | null; readonly "disk_usage"?: number | null; readonly "collaborators"?: number | null; readonly "billing_email"?: string | null; readonly "plan"?: { readonly "name": string; readonly "space": number; readonly "private_repos": number; readonly "filled_seats"?: number; readonly "seats"?: number }; readonly "default_repository_permission"?: string | null; readonly "members_can_create_repositories"?: boolean | null; readonly "two_factor_requirement_enabled"?: boolean | null; readonly "members_allowed_repository_creation_type"?: string; readonly "members_can_create_public_repositories"?: boolean; readonly "members_can_create_private_repositories"?: boolean; readonly "members_can_create_internal_repositories"?: boolean; readonly "members_can_create_pages"?: boolean; readonly "members_can_create_public_pages"?: boolean; readonly "members_can_create_private_pages"?: boolean; readonly "members_can_fork_private_repositories"?: boolean | null; readonly "web_commit_signoff_required"?: boolean; readonly "updated_at": string; readonly "advanced_security_enabled_for_new_repositories"?: boolean; readonly "dependabot_alerts_enabled_for_new_repositories"?: boolean; readonly "dependabot_security_updates_enabled_for_new_repositories"?: boolean; readonly "dependency_graph_enabled_for_new_repositories"?: boolean; readonly "secret_scanning_enabled_for_new_repositories"?: boolean; readonly "secret_scanning_push_protection_enabled_for_new_repositories"?: boolean }; +export type OrgsListRequestQuery = { + readonly since?: number; + readonly per_page?: number; +}; + +export type OrganizationCustomRepositoryRole = { + readonly id: number; + readonly name: string; + readonly description?: string | null; + readonly base_role?: 'read' | 'triage' | 'write' | 'maintain'; + readonly permissions?: ReadonlyArray; + readonly organization?: SimpleUser; + readonly created_at?: string; + readonly updated_at?: string; +}; + +export type OrgsListCustomRoles200ResponseBody = { + readonly total_count?: number; + readonly custom_roles?: ReadonlyArray; +}; + +export type OrgsListCustomRolesRequestPath = { + readonly organization_id: string; +}; + +export type OrganizationFull = { + readonly login: string; + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly repos_url: string; + readonly events_url: string; + readonly hooks_url: string; + readonly issues_url: string; + readonly members_url: string; + readonly public_members_url: string; + readonly avatar_url: string; + readonly description: string | null; + readonly name?: string; + readonly company?: string; + readonly blog?: string; + readonly location?: string; + readonly email?: string; + readonly twitter_username?: string | null; + readonly is_verified?: boolean; + readonly has_organization_projects: boolean; + readonly has_repository_projects: boolean; + readonly public_repos: number; + readonly public_gists: number; + readonly followers: number; + readonly following: number; + readonly html_url: string; + readonly created_at: string; + readonly type: string; + readonly total_private_repos?: number; + readonly owned_private_repos?: number; + readonly private_gists?: number | null; + readonly disk_usage?: number | null; + readonly collaborators?: number | null; + readonly billing_email?: string | null; + readonly plan?: { + readonly name: string; + readonly space: number; + readonly private_repos: number; + readonly filled_seats?: number; + readonly seats?: number; + }; + readonly default_repository_permission?: string | null; + readonly members_can_create_repositories?: boolean | null; + readonly two_factor_requirement_enabled?: boolean | null; + readonly members_allowed_repository_creation_type?: string; + readonly members_can_create_public_repositories?: boolean; + readonly members_can_create_private_repositories?: boolean; + readonly members_can_create_internal_repositories?: boolean; + readonly members_can_create_pages?: boolean; + readonly members_can_create_public_pages?: boolean; + readonly members_can_create_private_pages?: boolean; + readonly members_can_fork_private_repositories?: boolean | null; + readonly web_commit_signoff_required?: boolean; + readonly updated_at: string; + readonly advanced_security_enabled_for_new_repositories?: boolean; + readonly dependabot_alerts_enabled_for_new_repositories?: boolean; + readonly dependabot_security_updates_enabled_for_new_repositories?: boolean; + readonly dependency_graph_enabled_for_new_repositories?: boolean; + readonly secret_scanning_enabled_for_new_repositories?: boolean; + readonly secret_scanning_push_protection_enabled_for_new_repositories?: boolean; +}; export type OrgsGet200ResponseBody = OrganizationFull; export type OrgsGet404ResponseBody = BasicError; -export type OrgsGetRequestPath = { readonly "org": string }; +export type OrgsGetRequestPath = { readonly org: string }; export type OrgsUpdate200ResponseBody = OrganizationFull; @@ -872,253 +2615,627 @@ export type OrgsUpdate409ResponseBody = BasicError; export type OrgsUpdate422ResponseBody = ValidationError | ValidationErrorSimple; -export type OrgsUpdateRequestBody = { readonly "billing_email"?: string; readonly "company"?: string; readonly "email"?: string; readonly "twitter_username"?: string; readonly "location"?: string; readonly "name"?: string; readonly "description"?: string; readonly "has_organization_projects"?: boolean; readonly "has_repository_projects"?: boolean; readonly "default_repository_permission"?: "read" | "write" | "admin" | "none"; readonly "members_can_create_repositories"?: boolean; readonly "members_can_create_internal_repositories"?: boolean; readonly "members_can_create_private_repositories"?: boolean; readonly "members_can_create_public_repositories"?: boolean; readonly "members_allowed_repository_creation_type"?: "all" | "private" | "none"; readonly "members_can_create_pages"?: boolean; readonly "members_can_create_public_pages"?: boolean; readonly "members_can_create_private_pages"?: boolean; readonly "members_can_fork_private_repositories"?: boolean; readonly "web_commit_signoff_required"?: boolean; readonly "blog"?: string; readonly "advanced_security_enabled_for_new_repositories"?: boolean; readonly "dependabot_alerts_enabled_for_new_repositories"?: boolean; readonly "dependabot_security_updates_enabled_for_new_repositories"?: boolean; readonly "dependency_graph_enabled_for_new_repositories"?: boolean; readonly "secret_scanning_enabled_for_new_repositories"?: boolean; readonly "secret_scanning_push_protection_enabled_for_new_repositories"?: boolean }; - -export type OrgsUpdateRequestPath = { readonly "org": string }; +export type OrgsUpdateRequestBody = { + readonly billing_email?: string; + readonly company?: string; + readonly email?: string; + readonly twitter_username?: string; + readonly location?: string; + readonly name?: string; + readonly description?: string; + readonly has_organization_projects?: boolean; + readonly has_repository_projects?: boolean; + readonly default_repository_permission?: 'read' | 'write' | 'admin' | 'none'; + readonly members_can_create_repositories?: boolean; + readonly members_can_create_internal_repositories?: boolean; + readonly members_can_create_private_repositories?: boolean; + readonly members_can_create_public_repositories?: boolean; + readonly members_allowed_repository_creation_type?: + | 'all' + | 'private' + | 'none'; + readonly members_can_create_pages?: boolean; + readonly members_can_create_public_pages?: boolean; + readonly members_can_create_private_pages?: boolean; + readonly members_can_fork_private_repositories?: boolean; + readonly web_commit_signoff_required?: boolean; + readonly blog?: string; + readonly advanced_security_enabled_for_new_repositories?: boolean; + readonly dependabot_alerts_enabled_for_new_repositories?: boolean; + readonly dependabot_security_updates_enabled_for_new_repositories?: boolean; + readonly dependency_graph_enabled_for_new_repositories?: boolean; + readonly secret_scanning_enabled_for_new_repositories?: boolean; + readonly secret_scanning_push_protection_enabled_for_new_repositories?: boolean; +}; + +export type OrgsUpdateRequestPath = { readonly org: string }; export type ActionsGetActionsCacheUsageForOrg200ResponseBody = ActionsCacheUsageOrgEnterprise; -export type ActionsGetActionsCacheUsageForOrgRequestPath = { readonly "org": string }; +export type ActionsGetActionsCacheUsageForOrgRequestPath = { + readonly org: string; +}; -export type ActionsCacheUsageByRepository = { readonly "full_name": string; readonly "active_caches_size_in_bytes": number; readonly "active_caches_count": number }; +export type ActionsCacheUsageByRepository = { + readonly full_name: string; + readonly active_caches_size_in_bytes: number; + readonly active_caches_count: number; +}; -export type ActionsGetActionsCacheUsageByRepoForOrg200ResponseBody = { readonly "total_count": number; readonly "repository_cache_usages": ReadonlyArray }; +export type ActionsGetActionsCacheUsageByRepoForOrg200ResponseBody = { + readonly total_count: number; + readonly repository_cache_usages: ReadonlyArray; +}; -export type ActionsGetActionsCacheUsageByRepoForOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ActionsGetActionsCacheUsageByRepoForOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ActionsGetActionsCacheUsageByRepoForOrgRequestPath = { readonly "org": string }; +export type ActionsGetActionsCacheUsageByRepoForOrgRequestPath = { + readonly org: string; +}; -export type EnabledRepositories = "all" | "none" | "selected"; +export type EnabledRepositories = 'all' | 'none' | 'selected'; -export type ActionsOrganizationPermissions = { readonly "enabled_repositories": EnabledRepositories; readonly "selected_repositories_url"?: string; readonly "allowed_actions"?: AllowedActions; readonly "selected_actions_url"?: SelectedActionsUrl }; +export type ActionsOrganizationPermissions = { + readonly enabled_repositories: EnabledRepositories; + readonly selected_repositories_url?: string; + readonly allowed_actions?: AllowedActions; + readonly selected_actions_url?: SelectedActionsUrl; +}; export type ActionsGetGithubActionsPermissionsOrganization200ResponseBody = ActionsOrganizationPermissions; -export type ActionsGetGithubActionsPermissionsOrganizationRequestPath = { readonly "org": string }; +export type ActionsGetGithubActionsPermissionsOrganizationRequestPath = { + readonly org: string; +}; -export type ActionsSetGithubActionsPermissionsOrganizationRequestBody = { readonly "enabled_repositories": EnabledRepositories; readonly "allowed_actions"?: AllowedActions }; +export type ActionsSetGithubActionsPermissionsOrganizationRequestBody = { + readonly enabled_repositories: EnabledRepositories; + readonly allowed_actions?: AllowedActions; +}; -export type ActionsSetGithubActionsPermissionsOrganizationRequestPath = { readonly "org": string }; +export type ActionsSetGithubActionsPermissionsOrganizationRequestPath = { + readonly org: string; +}; -export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization200ResponseBody = { readonly "total_count": number; readonly "repositories": ReadonlyArray }; +export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganization200ResponseBody = { + readonly total_count: number; + readonly repositories: ReadonlyArray; +}; -export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRequestPath = { readonly "org": string }; +export type ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationRequestPath = { + readonly org: string; +}; -export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequestBody = { readonly "selected_repository_ids": ReadonlyArray }; +export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequestBody = { + readonly selected_repository_ids: ReadonlyArray; +}; -export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequestPath = { readonly "org": string }; +export type ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationRequestPath = { + readonly org: string; +}; -export type ActionsEnableSelectedRepositoryGithubActionsOrganizationRequestPath = { readonly "org": string; readonly "repository_id": number }; +export type ActionsEnableSelectedRepositoryGithubActionsOrganizationRequestPath = { + readonly org: string; + readonly repository_id: number; +}; -export type ActionsDisableSelectedRepositoryGithubActionsOrganizationRequestPath = { readonly "org": string; readonly "repository_id": number }; +export type ActionsDisableSelectedRepositoryGithubActionsOrganizationRequestPath = { + readonly org: string; + readonly repository_id: number; +}; export type ActionsGetAllowedActionsOrganization200ResponseBody = SelectedActions; -export type ActionsGetAllowedActionsOrganizationRequestPath = { readonly "org": string }; +export type ActionsGetAllowedActionsOrganizationRequestPath = { + readonly org: string; +}; export type ActionsSetAllowedActionsOrganizationRequestBody = SelectedActions; -export type ActionsSetAllowedActionsOrganizationRequestPath = { readonly "org": string }; +export type ActionsSetAllowedActionsOrganizationRequestPath = { + readonly org: string; +}; export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganization200ResponseBody = ActionsGetDefaultWorkflowPermissions; -export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationRequestPath = { readonly "org": string }; +export type ActionsGetGithubActionsDefaultWorkflowPermissionsOrganizationRequestPath = { + readonly org: string; +}; export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationRequestBody = ActionsSetDefaultWorkflowPermissions; -export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationRequestPath = { readonly "org": string }; - -export type RunnerGroupsOrg = { readonly "id": number; readonly "name": string; readonly "visibility": string; readonly "default": boolean; readonly "selected_repositories_url"?: string; readonly "runners_url": string; readonly "inherited": boolean; readonly "inherited_allows_public_repositories"?: boolean; readonly "allows_public_repositories": boolean; readonly "workflow_restrictions_read_only"?: boolean; readonly "restricted_to_workflows"?: boolean; readonly "selected_workflows"?: ReadonlyArray }; - -export type ActionsListSelfHostedRunnerGroupsForOrg200ResponseBody = { readonly "total_count": number; readonly "runner_groups": ReadonlyArray }; - -export type ActionsListSelfHostedRunnerGroupsForOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number; readonly "visible_to_repository"?: string }; - -export type ActionsListSelfHostedRunnerGroupsForOrgRequestPath = { readonly "org": string }; +export type ActionsSetGithubActionsDefaultWorkflowPermissionsOrganizationRequestPath = { + readonly org: string; +}; + +export type RunnerGroupsOrg = { + readonly id: number; + readonly name: string; + readonly visibility: string; + readonly default: boolean; + readonly selected_repositories_url?: string; + readonly runners_url: string; + readonly inherited: boolean; + readonly inherited_allows_public_repositories?: boolean; + readonly allows_public_repositories: boolean; + readonly workflow_restrictions_read_only?: boolean; + readonly restricted_to_workflows?: boolean; + readonly selected_workflows?: ReadonlyArray; +}; + +export type ActionsListSelfHostedRunnerGroupsForOrg200ResponseBody = { + readonly total_count: number; + readonly runner_groups: ReadonlyArray; +}; + +export type ActionsListSelfHostedRunnerGroupsForOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; + readonly visible_to_repository?: string; +}; + +export type ActionsListSelfHostedRunnerGroupsForOrgRequestPath = { + readonly org: string; +}; export type ActionsCreateSelfHostedRunnerGroupForOrg201ResponseBody = RunnerGroupsOrg; -export type ActionsCreateSelfHostedRunnerGroupForOrgRequestBody = { readonly "name": string; readonly "visibility"?: "selected" | "all" | "private"; readonly "selected_repository_ids"?: ReadonlyArray; readonly "runners"?: ReadonlyArray; readonly "allows_public_repositories"?: boolean; readonly "restricted_to_workflows"?: boolean; readonly "selected_workflows"?: ReadonlyArray }; +export type ActionsCreateSelfHostedRunnerGroupForOrgRequestBody = { + readonly name: string; + readonly visibility?: 'selected' | 'all' | 'private'; + readonly selected_repository_ids?: ReadonlyArray; + readonly runners?: ReadonlyArray; + readonly allows_public_repositories?: boolean; + readonly restricted_to_workflows?: boolean; + readonly selected_workflows?: ReadonlyArray; +}; -export type ActionsCreateSelfHostedRunnerGroupForOrgRequestPath = { readonly "org": string }; +export type ActionsCreateSelfHostedRunnerGroupForOrgRequestPath = { + readonly org: string; +}; export type ActionsGetSelfHostedRunnerGroupForOrg200ResponseBody = RunnerGroupsOrg; -export type ActionsGetSelfHostedRunnerGroupForOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number }; +export type ActionsGetSelfHostedRunnerGroupForOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; +}; export type ActionsUpdateSelfHostedRunnerGroupForOrg200ResponseBody = RunnerGroupsOrg; -export type ActionsUpdateSelfHostedRunnerGroupForOrgRequestBody = { readonly "name": string; readonly "visibility"?: "selected" | "all" | "private"; readonly "allows_public_repositories"?: boolean; readonly "restricted_to_workflows"?: boolean; readonly "selected_workflows"?: ReadonlyArray }; - -export type ActionsUpdateSelfHostedRunnerGroupForOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number }; - -export type ActionsDeleteSelfHostedRunnerGroupFromOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number }; - -export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg200ResponseBody = { readonly "total_count": number; readonly "repositories": ReadonlyArray }; - -export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequestQuery = { readonly "page"?: number; readonly "per_page"?: number }; - -export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number }; - -export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequestBody = { readonly "selected_repository_ids": ReadonlyArray }; - -export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number }; - -export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number; readonly "repository_id": number }; - -export type ActionsListSelfHostedRunnersInGroupForOrg200ResponseBody = { readonly "total_count": number; readonly "runners": ReadonlyArray }; - -export type ActionsListSelfHostedRunnersInGroupForOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActionsListSelfHostedRunnersInGroupForOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number }; - -export type ActionsSetSelfHostedRunnersInGroupForOrgRequestBody = { readonly "runners": ReadonlyArray }; - -export type ActionsSetSelfHostedRunnersInGroupForOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number }; - -export type ActionsAddSelfHostedRunnerToGroupForOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number; readonly "runner_id": number }; - -export type ActionsRemoveSelfHostedRunnerFromGroupForOrgRequestPath = { readonly "org": string; readonly "runner_group_id": number; readonly "runner_id": number }; - -export type ActionsListSelfHostedRunnersForOrg200ResponseBody = { readonly "total_count": number; readonly "runners": ReadonlyArray }; - -export type ActionsListSelfHostedRunnersForOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActionsListSelfHostedRunnersForOrgRequestPath = { readonly "org": string }; +export type ActionsUpdateSelfHostedRunnerGroupForOrgRequestBody = { + readonly name: string; + readonly visibility?: 'selected' | 'all' | 'private'; + readonly allows_public_repositories?: boolean; + readonly restricted_to_workflows?: boolean; + readonly selected_workflows?: ReadonlyArray; +}; + +export type ActionsUpdateSelfHostedRunnerGroupForOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; +}; + +export type ActionsDeleteSelfHostedRunnerGroupFromOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; +}; + +export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrg200ResponseBody = { + readonly total_count: number; + readonly repositories: ReadonlyArray; +}; + +export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequestQuery = { + readonly page?: number; + readonly per_page?: number; +}; + +export type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; +}; + +export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequestBody = { + readonly selected_repository_ids: ReadonlyArray; +}; + +export type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; +}; + +export type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; + readonly repository_id: number; +}; + +export type ActionsListSelfHostedRunnersInGroupForOrg200ResponseBody = { + readonly total_count: number; + readonly runners: ReadonlyArray; +}; + +export type ActionsListSelfHostedRunnersInGroupForOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActionsListSelfHostedRunnersInGroupForOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; +}; + +export type ActionsSetSelfHostedRunnersInGroupForOrgRequestBody = { + readonly runners: ReadonlyArray; +}; + +export type ActionsSetSelfHostedRunnersInGroupForOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; +}; + +export type ActionsAddSelfHostedRunnerToGroupForOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; + readonly runner_id: number; +}; + +export type ActionsRemoveSelfHostedRunnerFromGroupForOrgRequestPath = { + readonly org: string; + readonly runner_group_id: number; + readonly runner_id: number; +}; + +export type ActionsListSelfHostedRunnersForOrg200ResponseBody = { + readonly total_count: number; + readonly runners: ReadonlyArray; +}; + +export type ActionsListSelfHostedRunnersForOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActionsListSelfHostedRunnersForOrgRequestPath = { + readonly org: string; +}; export type ActionsListRunnerApplicationsForOrg200ResponseBody = ReadonlyArray; -export type ActionsListRunnerApplicationsForOrgRequestPath = { readonly "org": string }; +export type ActionsListRunnerApplicationsForOrgRequestPath = { + readonly org: string; +}; export type ActionsCreateRegistrationTokenForOrg201ResponseBody = AuthenticationToken; -export type ActionsCreateRegistrationTokenForOrgRequestPath = { readonly "org": string }; +export type ActionsCreateRegistrationTokenForOrgRequestPath = { + readonly org: string; +}; export type ActionsCreateRemoveTokenForOrg201ResponseBody = AuthenticationToken; -export type ActionsCreateRemoveTokenForOrgRequestPath = { readonly "org": string }; +export type ActionsCreateRemoveTokenForOrgRequestPath = { + readonly org: string; +}; export type ActionsGetSelfHostedRunnerForOrg200ResponseBody = SelfHostedRunners; -export type ActionsGetSelfHostedRunnerForOrgRequestPath = { readonly "org": string; readonly "runner_id": number }; +export type ActionsGetSelfHostedRunnerForOrgRequestPath = { + readonly org: string; + readonly runner_id: number; +}; -export type ActionsDeleteSelfHostedRunnerFromOrgRequestPath = { readonly "org": string; readonly "runner_id": number }; +export type ActionsDeleteSelfHostedRunnerFromOrgRequestPath = { + readonly org: string; + readonly runner_id: number; +}; -export type ActionsListLabelsForSelfHostedRunnerForOrg200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsListLabelsForSelfHostedRunnerForOrg200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsListLabelsForSelfHostedRunnerForOrg404ResponseBody = BasicError; -export type ActionsListLabelsForSelfHostedRunnerForOrgRequestPath = { readonly "org": string; readonly "runner_id": number }; +export type ActionsListLabelsForSelfHostedRunnerForOrgRequestPath = { + readonly org: string; + readonly runner_id: number; +}; -export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg404ResponseBody = BasicError; export type ActionsAddCustomLabelsToSelfHostedRunnerForOrg422ResponseBody = ValidationErrorSimple; -export type ActionsAddCustomLabelsToSelfHostedRunnerForOrgRequestBody = { readonly "labels": ReadonlyArray }; +export type ActionsAddCustomLabelsToSelfHostedRunnerForOrgRequestBody = { + readonly labels: ReadonlyArray; +}; -export type ActionsAddCustomLabelsToSelfHostedRunnerForOrgRequestPath = { readonly "org": string; readonly "runner_id": number }; +export type ActionsAddCustomLabelsToSelfHostedRunnerForOrgRequestPath = { + readonly org: string; + readonly runner_id: number; +}; -export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg404ResponseBody = BasicError; export type ActionsSetCustomLabelsForSelfHostedRunnerForOrg422ResponseBody = ValidationErrorSimple; -export type ActionsSetCustomLabelsForSelfHostedRunnerForOrgRequestBody = { readonly "labels": ReadonlyArray }; +export type ActionsSetCustomLabelsForSelfHostedRunnerForOrgRequestBody = { + readonly labels: ReadonlyArray; +}; -export type ActionsSetCustomLabelsForSelfHostedRunnerForOrgRequestPath = { readonly "org": string; readonly "runner_id": number }; +export type ActionsSetCustomLabelsForSelfHostedRunnerForOrgRequestPath = { + readonly org: string; + readonly runner_id: number; +}; -export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrg404ResponseBody = BasicError; -export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgRequestPath = { readonly "org": string; readonly "runner_id": number }; +export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForOrgRequestPath = { + readonly org: string; + readonly runner_id: number; +}; -export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg404ResponseBody = BasicError; export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrg422ResponseBody = ValidationErrorSimple; -export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgRequestPath = { readonly "org": string; readonly "runner_id": number; readonly "name": string }; - -export type ActionsSecretForAnOrganization = { readonly "name": string; readonly "created_at": string; readonly "updated_at": string; readonly "visibility": "all" | "private" | "selected"; readonly "selected_repositories_url"?: string }; - -export type ActionsListOrgSecrets200ResponseBody = { readonly "total_count": number; readonly "secrets": ReadonlyArray }; - -export type ActionsListOrgSecretsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActionsListOrgSecretsRequestPath = { readonly "org": string }; - -export type ActionsPublicKey = { readonly "key_id": string; readonly "key": string; readonly "id"?: number; readonly "url"?: string; readonly "title"?: string; readonly "created_at"?: string }; +export type ActionsRemoveCustomLabelFromSelfHostedRunnerForOrgRequestPath = { + readonly org: string; + readonly runner_id: number; + readonly name: string; +}; + +export type ActionsSecretForAnOrganization = { + readonly name: string; + readonly created_at: string; + readonly updated_at: string; + readonly visibility: 'all' | 'private' | 'selected'; + readonly selected_repositories_url?: string; +}; + +export type ActionsListOrgSecrets200ResponseBody = { + readonly total_count: number; + readonly secrets: ReadonlyArray; +}; + +export type ActionsListOrgSecretsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActionsListOrgSecretsRequestPath = { readonly org: string }; + +export type ActionsPublicKey = { + readonly key_id: string; + readonly key: string; + readonly id?: number; + readonly url?: string; + readonly title?: string; + readonly created_at?: string; +}; export type ActionsGetOrgPublicKey200ResponseBody = ActionsPublicKey; -export type ActionsGetOrgPublicKeyRequestPath = { readonly "org": string }; +export type ActionsGetOrgPublicKeyRequestPath = { readonly org: string }; export type ActionsGetOrgSecret200ResponseBody = ActionsSecretForAnOrganization; -export type ActionsGetOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; +export type ActionsGetOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; -export type EmptyObject = { }; +export type EmptyObject = {}; export type ActionsCreateOrUpdateOrgSecret201ResponseBody = EmptyObject; -export type ActionsCreateOrUpdateOrgSecretRequestBody = { readonly "encrypted_value"?: string; readonly "key_id"?: string; readonly "visibility": "all" | "private" | "selected"; readonly "selected_repository_ids"?: ReadonlyArray }; - -export type ActionsCreateOrUpdateOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type ActionsDeleteOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type ActionsListSelectedReposForOrgSecret200ResponseBody = { readonly "total_count": number; readonly "repositories": ReadonlyArray }; - -export type ActionsListSelectedReposForOrgSecretRequestQuery = { readonly "page"?: number; readonly "per_page"?: number }; - -export type ActionsListSelectedReposForOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type ActionsSetSelectedReposForOrgSecretRequestBody = { readonly "selected_repository_ids": ReadonlyArray }; - -export type ActionsSetSelectedReposForOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type ActionsAddSelectedRepoToOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string; readonly "repository_id": number }; - -export type ActionsRemoveSelectedRepoFromOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string; readonly "repository_id": number }; +export type ActionsCreateOrUpdateOrgSecretRequestBody = { + readonly encrypted_value?: string; + readonly key_id?: string; + readonly visibility: 'all' | 'private' | 'selected'; + readonly selected_repository_ids?: ReadonlyArray; +}; + +export type ActionsCreateOrUpdateOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type ActionsDeleteOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type ActionsListSelectedReposForOrgSecret200ResponseBody = { + readonly total_count: number; + readonly repositories: ReadonlyArray; +}; + +export type ActionsListSelectedReposForOrgSecretRequestQuery = { + readonly page?: number; + readonly per_page?: number; +}; + +export type ActionsListSelectedReposForOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type ActionsSetSelectedReposForOrgSecretRequestBody = { + readonly selected_repository_ids: ReadonlyArray; +}; + +export type ActionsSetSelectedReposForOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type ActionsAddSelectedRepoToOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; + readonly repository_id: number; +}; + +export type ActionsRemoveSelectedRepoFromOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; + readonly repository_id: number; +}; export type OrgsListBlockedUsers200ResponseBody = ReadonlyArray; -export type OrgsListBlockedUsersRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListBlockedUsersRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListBlockedUsersRequestPath = { readonly "org": string }; +export type OrgsListBlockedUsersRequestPath = { readonly org: string }; export type OrgsCheckBlockedUser404ResponseBody = BasicError; -export type OrgsCheckBlockedUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsCheckBlockedUserRequestPath = { + readonly org: string; + readonly username: string; +}; export type OrgsBlockUser422ResponseBody = ValidationError; -export type OrgsBlockUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsBlockUserRequestPath = { + readonly org: string; + readonly username: string; +}; -export type OrgsUnblockUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsUnblockUserRequestPath = { + readonly org: string; + readonly username: string; +}; export type CodeScanningListAlertsForOrg200ResponseBody = ReadonlyArray; export type CodeScanningListAlertsForOrg404ResponseBody = BasicError; -export type CodeScanningListAlertsForOrg503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type CodeScanningListAlertsForOrgRequestQuery = { readonly "tool_name"?: CodeScanningAnalysisToolName; readonly "tool_guid"?: CodeScanningAnalysisToolGuid; readonly "before"?: string; readonly "after"?: string; readonly "page"?: number; readonly "per_page"?: number; readonly "direction"?: "asc" | "desc"; readonly "state"?: CodeScanningAlertState; readonly "sort"?: "created" | "updated" }; - -export type CodeScanningListAlertsForOrgRequestPath = { readonly "org": string }; - -export type CodespaceMachine = { readonly "name": string; readonly "display_name": string; readonly "operating_system": string; readonly "storage_in_bytes": number; readonly "memory_in_bytes": number; readonly "cpus": number; readonly "prebuild_availability": "none" | "ready" | "in_progress" | null } | null; - -export type Codespace = { readonly "id": number; readonly "name": string; readonly "display_name"?: string | null; readonly "environment_id": string | null; readonly "owner": SimpleUser; readonly "billable_owner": SimpleUser; readonly "repository": MinimalRepository; readonly "machine": CodespaceMachine; readonly "devcontainer_path"?: string | null; readonly "prebuild": boolean | null; readonly "created_at": string; readonly "updated_at": string; readonly "last_used_at": string; readonly "state": "Unknown" | "Created" | "Queued" | "Provisioning" | "Available" | "Awaiting" | "Unavailable" | "Deleted" | "Moved" | "Shutdown" | "Archived" | "Starting" | "ShuttingDown" | "Failed" | "Exporting" | "Updating" | "Rebuilding"; readonly "url": string; readonly "git_status": { readonly "ahead"?: number; readonly "behind"?: number; readonly "has_unpushed_changes"?: boolean; readonly "has_uncommitted_changes"?: boolean; readonly "ref"?: string }; readonly "location": "EastUs" | "SouthEastAsia" | "WestEurope" | "WestUs2"; readonly "idle_timeout_minutes": number | null; readonly "web_url": string; readonly "machines_url": string; readonly "start_url": string; readonly "stop_url": string; readonly "pulls_url": string | null; readonly "recent_folders": ReadonlyArray; readonly "runtime_constraints"?: { readonly "allowed_port_privacy_settings"?: ReadonlyArray | null }; readonly "pending_operation"?: boolean | null; readonly "pending_operation_disabled_reason"?: string | null; readonly "idle_timeout_notice"?: string | null; readonly "retention_period_minutes"?: number | null; readonly "retention_expires_at"?: string | null; readonly "last_known_stop_notice"?: string | null }; - -export type CodespacesListInOrganization200ResponseBody = { readonly "total_count": number; readonly "codespaces": ReadonlyArray }; +export type CodeScanningListAlertsForOrg503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type CodeScanningListAlertsForOrgRequestQuery = { + readonly tool_name?: CodeScanningAnalysisToolName; + readonly tool_guid?: CodeScanningAnalysisToolGuid; + readonly before?: string; + readonly after?: string; + readonly page?: number; + readonly per_page?: number; + readonly direction?: 'asc' | 'desc'; + readonly state?: CodeScanningAlertState; + readonly sort?: 'created' | 'updated'; +}; + +export type CodeScanningListAlertsForOrgRequestPath = { readonly org: string }; + +export type CodespaceMachine = { + readonly name: string; + readonly display_name: string; + readonly operating_system: string; + readonly storage_in_bytes: number; + readonly memory_in_bytes: number; + readonly cpus: number; + readonly prebuild_availability: 'none' | 'ready' | 'in_progress' | null; +} | null; + +export type Codespace = { + readonly id: number; + readonly name: string; + readonly display_name?: string | null; + readonly environment_id: string | null; + readonly owner: SimpleUser; + readonly billable_owner: SimpleUser; + readonly repository: MinimalRepository; + readonly machine: CodespaceMachine; + readonly devcontainer_path?: string | null; + readonly prebuild: boolean | null; + readonly created_at: string; + readonly updated_at: string; + readonly last_used_at: string; + readonly state: + | 'Unknown' + | 'Created' + | 'Queued' + | 'Provisioning' + | 'Available' + | 'Awaiting' + | 'Unavailable' + | 'Deleted' + | 'Moved' + | 'Shutdown' + | 'Archived' + | 'Starting' + | 'ShuttingDown' + | 'Failed' + | 'Exporting' + | 'Updating' + | 'Rebuilding'; + readonly url: string; + readonly git_status: { + readonly ahead?: number; + readonly behind?: number; + readonly has_unpushed_changes?: boolean; + readonly has_uncommitted_changes?: boolean; + readonly ref?: string; + }; + readonly location: 'EastUs' | 'SouthEastAsia' | 'WestEurope' | 'WestUs2'; + readonly idle_timeout_minutes: number | null; + readonly web_url: string; + readonly machines_url: string; + readonly start_url: string; + readonly stop_url: string; + readonly pulls_url: string | null; + readonly recent_folders: ReadonlyArray; + readonly runtime_constraints?: { + readonly allowed_port_privacy_settings?: ReadonlyArray | null; + }; + readonly pending_operation?: boolean | null; + readonly pending_operation_disabled_reason?: string | null; + readonly idle_timeout_notice?: string | null; + readonly retention_period_minutes?: number | null; + readonly retention_expires_at?: string | null; + readonly last_known_stop_notice?: string | null; +}; + +export type CodespacesListInOrganization200ResponseBody = { + readonly total_count: number; + readonly codespaces: ReadonlyArray; +}; export type CodespacesListInOrganization401ResponseBody = BasicError; @@ -1128,9 +3245,12 @@ export type CodespacesListInOrganization404ResponseBody = BasicError; export type CodespacesListInOrganization500ResponseBody = BasicError; -export type CodespacesListInOrganizationRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type CodespacesListInOrganizationRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type CodespacesListInOrganizationRequestPath = { readonly "org": string }; +export type CodespacesListInOrganizationRequestPath = { readonly org: string }; export type CodespacesSetCodespacesBilling404ResponseBody = BasicError; @@ -1138,27 +3258,58 @@ export type CodespacesSetCodespacesBilling422ResponseBody = ValidationError; export type CodespacesSetCodespacesBilling500ResponseBody = BasicError; -export type CodespacesSetCodespacesBillingRequestBody = { readonly "visibility": "disabled" | "selected_members" | "all_members" | "all_members_and_outside_collaborators"; readonly "selected_usernames"?: ReadonlyArray }; - -export type CodespacesSetCodespacesBillingRequestPath = { readonly "org": string }; - -export type CodespacesSecret = { readonly "name": string; readonly "created_at": string; readonly "updated_at": string; readonly "visibility": "all" | "private" | "selected"; readonly "selected_repositories_url"?: string }; - -export type CodespacesListOrgSecrets200ResponseBody = { readonly "total_count": number; readonly "secrets": ReadonlyArray }; - -export type CodespacesListOrgSecretsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type CodespacesListOrgSecretsRequestPath = { readonly "org": string }; - -export type CodespacesPublicKey = { readonly "key_id": string; readonly "key": string; readonly "id"?: number; readonly "url"?: string; readonly "title"?: string; readonly "created_at"?: string }; +export type CodespacesSetCodespacesBillingRequestBody = { + readonly visibility: + | 'disabled' + | 'selected_members' + | 'all_members' + | 'all_members_and_outside_collaborators'; + readonly selected_usernames?: ReadonlyArray; +}; + +export type CodespacesSetCodespacesBillingRequestPath = { + readonly org: string; +}; + +export type CodespacesSecret = { + readonly name: string; + readonly created_at: string; + readonly updated_at: string; + readonly visibility: 'all' | 'private' | 'selected'; + readonly selected_repositories_url?: string; +}; + +export type CodespacesListOrgSecrets200ResponseBody = { + readonly total_count: number; + readonly secrets: ReadonlyArray; +}; + +export type CodespacesListOrgSecretsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type CodespacesListOrgSecretsRequestPath = { readonly org: string }; + +export type CodespacesPublicKey = { + readonly key_id: string; + readonly key: string; + readonly id?: number; + readonly url?: string; + readonly title?: string; + readonly created_at?: string; +}; export type CodespacesGetOrgPublicKey200ResponseBody = CodespacesPublicKey; -export type CodespacesGetOrgPublicKeyRequestPath = { readonly "org": string }; +export type CodespacesGetOrgPublicKeyRequestPath = { readonly org: string }; export type CodespacesGetOrgSecret200ResponseBody = CodespacesSecret; -export type CodespacesGetOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; +export type CodespacesGetOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; export type CodespacesCreateOrUpdateOrgSecret201ResponseBody = EmptyObject; @@ -1166,39 +3317,72 @@ export type CodespacesCreateOrUpdateOrgSecret404ResponseBody = BasicError; export type CodespacesCreateOrUpdateOrgSecret422ResponseBody = ValidationError; -export type CodespacesCreateOrUpdateOrgSecretRequestBody = { readonly "encrypted_value"?: string; readonly "key_id"?: string; readonly "visibility": "all" | "private" | "selected"; readonly "selected_repository_ids"?: ReadonlyArray }; +export type CodespacesCreateOrUpdateOrgSecretRequestBody = { + readonly encrypted_value?: string; + readonly key_id?: string; + readonly visibility: 'all' | 'private' | 'selected'; + readonly selected_repository_ids?: ReadonlyArray; +}; -export type CodespacesCreateOrUpdateOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; +export type CodespacesCreateOrUpdateOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; export type CodespacesDeleteOrgSecret404ResponseBody = BasicError; -export type CodespacesDeleteOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; +export type CodespacesDeleteOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; -export type CodespacesListSelectedReposForOrgSecret200ResponseBody = { readonly "total_count": number; readonly "repositories": ReadonlyArray }; +export type CodespacesListSelectedReposForOrgSecret200ResponseBody = { + readonly total_count: number; + readonly repositories: ReadonlyArray; +}; export type CodespacesListSelectedReposForOrgSecret404ResponseBody = BasicError; -export type CodespacesListSelectedReposForOrgSecretRequestQuery = { readonly "page"?: number; readonly "per_page"?: number }; +export type CodespacesListSelectedReposForOrgSecretRequestQuery = { + readonly page?: number; + readonly per_page?: number; +}; -export type CodespacesListSelectedReposForOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; +export type CodespacesListSelectedReposForOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; export type CodespacesSetSelectedReposForOrgSecret404ResponseBody = BasicError; -export type CodespacesSetSelectedReposForOrgSecretRequestBody = { readonly "selected_repository_ids": ReadonlyArray }; +export type CodespacesSetSelectedReposForOrgSecretRequestBody = { + readonly selected_repository_ids: ReadonlyArray; +}; -export type CodespacesSetSelectedReposForOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; +export type CodespacesSetSelectedReposForOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; export type CodespacesAddSelectedRepoToOrgSecret404ResponseBody = BasicError; export type CodespacesAddSelectedRepoToOrgSecret422ResponseBody = ValidationError; -export type CodespacesAddSelectedRepoToOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string; readonly "repository_id": number }; +export type CodespacesAddSelectedRepoToOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; + readonly repository_id: number; +}; export type CodespacesRemoveSelectedRepoFromOrgSecret404ResponseBody = BasicError; export type CodespacesRemoveSelectedRepoFromOrgSecret422ResponseBody = ValidationError; -export type CodespacesRemoveSelectedRepoFromOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string; readonly "repository_id": number }; +export type CodespacesRemoveSelectedRepoFromOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; + readonly repository_id: number; +}; export type OrgsCreateCustomRole201ResponseBody = OrganizationCustomRepositoryRole; @@ -1206,15 +3390,23 @@ export type OrgsCreateCustomRole404ResponseBody = BasicError; export type OrgsCreateCustomRole422ResponseBody = ValidationError; -export type OrgsCreateCustomRoleRequestBody = { readonly "name": string; readonly "description"?: string; readonly "base_role": "read" | "triage" | "write" | "maintain"; readonly "permissions": ReadonlyArray }; +export type OrgsCreateCustomRoleRequestBody = { + readonly name: string; + readonly description?: string; + readonly base_role: 'read' | 'triage' | 'write' | 'maintain'; + readonly permissions: ReadonlyArray; +}; -export type OrgsCreateCustomRoleRequestPath = { readonly "org": string }; +export type OrgsCreateCustomRoleRequestPath = { readonly org: string }; export type OrgsGetCustomRole200ResponseBody = OrganizationCustomRepositoryRole; export type OrgsGetCustomRole404ResponseBody = BasicError; -export type OrgsGetCustomRoleRequestPath = { readonly "org": string; readonly "role_id": number }; +export type OrgsGetCustomRoleRequestPath = { + readonly org: string; + readonly role_id: number; +}; export type OrgsUpdateCustomRole200ResponseBody = OrganizationCustomRepositoryRole; @@ -1222,19 +3414,87 @@ export type OrgsUpdateCustomRole404ResponseBody = BasicError; export type OrgsUpdateCustomRole422ResponseBody = ValidationError; -export type OrgsUpdateCustomRoleRequestBody = { readonly "name"?: string; readonly "description"?: string; readonly "base_role"?: "read" | "triage" | "write" | "maintain"; readonly "permissions"?: ReadonlyArray }; - -export type OrgsUpdateCustomRoleRequestPath = { readonly "org": string; readonly "role_id": number }; - -export type OrgsDeleteCustomRoleRequestPath = { readonly "org": string; readonly "role_id": number }; - -export type DependabotAlertPackage = { readonly "ecosystem": string; readonly "name": string }; - -export type DependabotAlertSecurityVulnerability = { readonly "package": DependabotAlertPackage; readonly "severity": "low" | "medium" | "high" | "critical"; readonly "vulnerable_version_range": string; readonly "first_patched_version": { readonly "identifier": string } | null }; - -export type DependabotAlertSecurityAdvisory = { readonly "ghsa_id": string; readonly "cve_id": string | null; readonly "summary": string; readonly "description": string; readonly "vulnerabilities": ReadonlyArray; readonly "severity": "low" | "medium" | "high" | "critical"; readonly "cvss": { readonly "score": number; readonly "vector_string": string | null }; readonly "cwes": ReadonlyArray<{ readonly "cwe_id": string; readonly "name": string }>; readonly "identifiers": ReadonlyArray<{ readonly "type": "CVE" | "GHSA"; readonly "value": string }>; readonly "references": ReadonlyArray<{ readonly "url": string }>; readonly "published_at": string; readonly "updated_at": string; readonly "withdrawn_at": string | null }; - -export type DependabotAlertWithRepository = { readonly "number": AlertNumber; readonly "state": "dismissed" | "fixed" | "open"; readonly "dependency": { readonly "package"?: DependabotAlertPackage; readonly "manifest_path"?: string; readonly "scope"?: "development" | "runtime" | null }; readonly "security_advisory": DependabotAlertSecurityAdvisory; readonly "security_vulnerability": DependabotAlertSecurityVulnerability; readonly "url": AlertUrl; readonly "html_url": AlertHtmlUrl; readonly "created_at": AlertCreatedAt; readonly "updated_at": AlertUpdatedAt; readonly "dismissed_at": AlertDismissedAt; readonly "dismissed_by": SimpleUser; readonly "dismissed_reason": "fix_started" | "inaccurate" | "no_bandwidth" | "not_used" | "tolerable_risk" | null; readonly "dismissed_comment": string | null; readonly "fixed_at": AlertFixedAt; readonly "repository": SimpleRepository }; +export type OrgsUpdateCustomRoleRequestBody = { + readonly name?: string; + readonly description?: string; + readonly base_role?: 'read' | 'triage' | 'write' | 'maintain'; + readonly permissions?: ReadonlyArray; +}; + +export type OrgsUpdateCustomRoleRequestPath = { + readonly org: string; + readonly role_id: number; +}; + +export type OrgsDeleteCustomRoleRequestPath = { + readonly org: string; + readonly role_id: number; +}; + +export type DependabotAlertPackage = { + readonly ecosystem: string; + readonly name: string; +}; + +export type DependabotAlertSecurityVulnerability = { + readonly package: DependabotAlertPackage; + readonly severity: 'low' | 'medium' | 'high' | 'critical'; + readonly vulnerable_version_range: string; + readonly first_patched_version: { readonly identifier: string } | null; +}; + +export type DependabotAlertSecurityAdvisory = { + readonly ghsa_id: string; + readonly cve_id: string | null; + readonly summary: string; + readonly description: string; + readonly vulnerabilities: ReadonlyArray; + readonly severity: 'low' | 'medium' | 'high' | 'critical'; + readonly cvss: { + readonly score: number; + readonly vector_string: string | null; + }; + readonly cwes: ReadonlyArray<{ + readonly cwe_id: string; + readonly name: string; + }>; + readonly identifiers: ReadonlyArray<{ + readonly type: 'CVE' | 'GHSA'; + readonly value: string; + }>; + readonly references: ReadonlyArray<{ readonly url: string }>; + readonly published_at: string; + readonly updated_at: string; + readonly withdrawn_at: string | null; +}; + +export type DependabotAlertWithRepository = { + readonly number: AlertNumber; + readonly state: 'dismissed' | 'fixed' | 'open'; + readonly dependency: { + readonly package?: DependabotAlertPackage; + readonly manifest_path?: string; + readonly scope?: 'development' | 'runtime' | null; + }; + readonly security_advisory: DependabotAlertSecurityAdvisory; + readonly security_vulnerability: DependabotAlertSecurityVulnerability; + readonly url: AlertUrl; + readonly html_url: AlertHtmlUrl; + readonly created_at: AlertCreatedAt; + readonly updated_at: AlertUpdatedAt; + readonly dismissed_at: AlertDismissedAt; + readonly dismissed_by: SimpleUser; + readonly dismissed_reason: + | 'fix_started' + | 'inaccurate' + | 'no_bandwidth' + | 'not_used' + | 'tolerable_risk' + | null; + readonly dismissed_comment: string | null; + readonly fixed_at: AlertFixedAt; + readonly repository: SimpleRepository; +}; export type DependabotListAlertsForOrg200ResponseBody = ReadonlyArray; @@ -1246,81 +3506,187 @@ export type DependabotListAlertsForOrg404ResponseBody = BasicError; export type DependabotListAlertsForOrg422ResponseBody = ValidationErrorSimple; -export type DependabotListAlertsForOrgRequestQuery = { readonly "state"?: string; readonly "severity"?: string; readonly "ecosystem"?: string; readonly "package"?: string; readonly "scope"?: "development" | "runtime"; readonly "sort"?: "created" | "updated"; readonly "direction"?: "asc" | "desc"; readonly "before"?: string; readonly "after"?: string; readonly "first"?: number; readonly "last"?: number }; - -export type DependabotListAlertsForOrgRequestPath = { readonly "org": string }; - -export type DependabotSecretForAnOrganization = { readonly "name": string; readonly "created_at": string; readonly "updated_at": string; readonly "visibility": "all" | "private" | "selected"; readonly "selected_repositories_url"?: string }; - -export type DependabotListOrgSecrets200ResponseBody = { readonly "total_count": number; readonly "secrets": ReadonlyArray }; - -export type DependabotListOrgSecretsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type DependabotListOrgSecretsRequestPath = { readonly "org": string }; - -export type DependabotPublicKey = { readonly "key_id": string; readonly "key": string }; +export type DependabotListAlertsForOrgRequestQuery = { + readonly state?: string; + readonly severity?: string; + readonly ecosystem?: string; + readonly package?: string; + readonly scope?: 'development' | 'runtime'; + readonly sort?: 'created' | 'updated'; + readonly direction?: 'asc' | 'desc'; + readonly before?: string; + readonly after?: string; + readonly first?: number; + readonly last?: number; +}; + +export type DependabotListAlertsForOrgRequestPath = { readonly org: string }; + +export type DependabotSecretForAnOrganization = { + readonly name: string; + readonly created_at: string; + readonly updated_at: string; + readonly visibility: 'all' | 'private' | 'selected'; + readonly selected_repositories_url?: string; +}; + +export type DependabotListOrgSecrets200ResponseBody = { + readonly total_count: number; + readonly secrets: ReadonlyArray; +}; + +export type DependabotListOrgSecretsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type DependabotListOrgSecretsRequestPath = { readonly org: string }; + +export type DependabotPublicKey = { + readonly key_id: string; + readonly key: string; +}; export type DependabotGetOrgPublicKey200ResponseBody = DependabotPublicKey; -export type DependabotGetOrgPublicKeyRequestPath = { readonly "org": string }; +export type DependabotGetOrgPublicKeyRequestPath = { readonly org: string }; export type DependabotGetOrgSecret200ResponseBody = DependabotSecretForAnOrganization; -export type DependabotGetOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; +export type DependabotGetOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; export type DependabotCreateOrUpdateOrgSecret201ResponseBody = EmptyObject; -export type DependabotCreateOrUpdateOrgSecretRequestBody = { readonly "encrypted_value"?: string; readonly "key_id"?: string; readonly "visibility": "all" | "private" | "selected"; readonly "selected_repository_ids"?: ReadonlyArray }; - -export type DependabotCreateOrUpdateOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type DependabotDeleteOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type DependabotListSelectedReposForOrgSecret200ResponseBody = { readonly "total_count": number; readonly "repositories": ReadonlyArray }; - -export type DependabotListSelectedReposForOrgSecretRequestQuery = { readonly "page"?: number; readonly "per_page"?: number }; - -export type DependabotListSelectedReposForOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type DependabotSetSelectedReposForOrgSecretRequestBody = { readonly "selected_repository_ids": ReadonlyArray }; - -export type DependabotSetSelectedReposForOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string }; - -export type DependabotAddSelectedRepoToOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string; readonly "repository_id": number }; - -export type DependabotRemoveSelectedRepoFromOrgSecretRequestPath = { readonly "org": string; readonly "secret_name": string; readonly "repository_id": number }; +export type DependabotCreateOrUpdateOrgSecretRequestBody = { + readonly encrypted_value?: string; + readonly key_id?: string; + readonly visibility: 'all' | 'private' | 'selected'; + readonly selected_repository_ids?: ReadonlyArray; +}; + +export type DependabotCreateOrUpdateOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type DependabotDeleteOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type DependabotListSelectedReposForOrgSecret200ResponseBody = { + readonly total_count: number; + readonly repositories: ReadonlyArray; +}; + +export type DependabotListSelectedReposForOrgSecretRequestQuery = { + readonly page?: number; + readonly per_page?: number; +}; + +export type DependabotListSelectedReposForOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type DependabotSetSelectedReposForOrgSecretRequestBody = { + readonly selected_repository_ids: ReadonlyArray; +}; + +export type DependabotSetSelectedReposForOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; +}; + +export type DependabotAddSelectedRepoToOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; + readonly repository_id: number; +}; + +export type DependabotRemoveSelectedRepoFromOrgSecretRequestPath = { + readonly org: string; + readonly secret_name: string; + readonly repository_id: number; +}; export type ActivityListPublicOrgEvents200ResponseBody = ReadonlyArray; -export type ActivityListPublicOrgEventsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActivityListPublicOrgEventsRequestPath = { readonly "org": string }; - -export type OrganizationInvitation = { readonly "id": number; readonly "login": string | null; readonly "email": string | null; readonly "role": string; readonly "created_at": string; readonly "failed_at"?: string | null; readonly "failed_reason"?: string | null; readonly "inviter": SimpleUser; readonly "team_count": number; readonly "node_id": string; readonly "invitation_teams_url": string }; +export type ActivityListPublicOrgEventsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActivityListPublicOrgEventsRequestPath = { readonly org: string }; + +export type OrganizationInvitation = { + readonly id: number; + readonly login: string | null; + readonly email: string | null; + readonly role: string; + readonly created_at: string; + readonly failed_at?: string | null; + readonly failed_reason?: string | null; + readonly inviter: SimpleUser; + readonly team_count: number; + readonly node_id: string; + readonly invitation_teams_url: string; +}; export type OrgsListFailedInvitations200ResponseBody = ReadonlyArray; export type OrgsListFailedInvitations404ResponseBody = BasicError; -export type OrgsListFailedInvitationsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListFailedInvitationsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListFailedInvitationsRequestPath = { readonly "org": string }; +export type OrgsListFailedInvitationsRequestPath = { readonly org: string }; -export type OrganizationFineGrainedPermission = { readonly "name": string; readonly "description": string }; +export type OrganizationFineGrainedPermission = { + readonly name: string; + readonly description: string; +}; export type OrgsListFineGrainedPermissions200ResponseBody = ReadonlyArray; -export type OrgsListFineGrainedPermissionsRequestPath = { readonly "org": string }; - -export type OrgHook = { readonly "id": number; readonly "url": string; readonly "ping_url": string; readonly "deliveries_url"?: string; readonly "name": string; readonly "events": ReadonlyArray; readonly "active": boolean; readonly "config": { readonly "url"?: string; readonly "insecure_ssl"?: string; readonly "content_type"?: string; readonly "secret"?: string }; readonly "updated_at": string; readonly "created_at": string; readonly "type": string }; +export type OrgsListFineGrainedPermissionsRequestPath = { + readonly org: string; +}; + +export type OrgHook = { + readonly id: number; + readonly url: string; + readonly ping_url: string; + readonly deliveries_url?: string; + readonly name: string; + readonly events: ReadonlyArray; + readonly active: boolean; + readonly config: { + readonly url?: string; + readonly insecure_ssl?: string; + readonly content_type?: string; + readonly secret?: string; + }; + readonly updated_at: string; + readonly created_at: string; + readonly type: string; +}; export type OrgsListWebhooks200ResponseBody = ReadonlyArray; export type OrgsListWebhooks404ResponseBody = BasicError; -export type OrgsListWebhooksRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListWebhooksRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListWebhooksRequestPath = { readonly "org": string }; +export type OrgsListWebhooksRequestPath = { readonly org: string }; export type OrgsCreateWebhook201ResponseBody = OrgHook; @@ -1328,15 +3694,30 @@ export type OrgsCreateWebhook404ResponseBody = BasicError; export type OrgsCreateWebhook422ResponseBody = ValidationError; -export type OrgsCreateWebhookRequestBody = { readonly "name": string; readonly "config": { readonly "url": WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl; readonly "username"?: string; readonly "password"?: string }; readonly "events"?: ReadonlyArray; readonly "active"?: boolean }; - -export type OrgsCreateWebhookRequestPath = { readonly "org": string }; +export type OrgsCreateWebhookRequestBody = { + readonly name: string; + readonly config: { + readonly url: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; + readonly username?: string; + readonly password?: string; + }; + readonly events?: ReadonlyArray; + readonly active?: boolean; +}; + +export type OrgsCreateWebhookRequestPath = { readonly org: string }; export type OrgsGetWebhook200ResponseBody = OrgHook; export type OrgsGetWebhook404ResponseBody = BasicError; -export type OrgsGetWebhookRequestPath = { readonly "org": string; readonly "hook_id": number }; +export type OrgsGetWebhookRequestPath = { + readonly org: string; + readonly hook_id: number; +}; export type OrgsUpdateWebhook200ResponseBody = OrgHook; @@ -1344,23 +3725,50 @@ export type OrgsUpdateWebhook404ResponseBody = BasicError; export type OrgsUpdateWebhook422ResponseBody = ValidationError; -export type OrgsUpdateWebhookRequestBody = { readonly "config"?: { readonly "url": WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl }; readonly "events"?: ReadonlyArray; readonly "active"?: boolean; readonly "name"?: string }; - -export type OrgsUpdateWebhookRequestPath = { readonly "org": string; readonly "hook_id": number }; +export type OrgsUpdateWebhookRequestBody = { + readonly config?: { + readonly url: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; + }; + readonly events?: ReadonlyArray; + readonly active?: boolean; + readonly name?: string; +}; + +export type OrgsUpdateWebhookRequestPath = { + readonly org: string; + readonly hook_id: number; +}; export type OrgsDeleteWebhook404ResponseBody = BasicError; -export type OrgsDeleteWebhookRequestPath = { readonly "org": string; readonly "hook_id": number }; +export type OrgsDeleteWebhookRequestPath = { + readonly org: string; + readonly hook_id: number; +}; export type OrgsGetWebhookConfigForOrg200ResponseBody = WebhookConfiguration; -export type OrgsGetWebhookConfigForOrgRequestPath = { readonly "org": string; readonly "hook_id": number }; +export type OrgsGetWebhookConfigForOrgRequestPath = { + readonly org: string; + readonly hook_id: number; +}; export type OrgsUpdateWebhookConfigForOrg200ResponseBody = WebhookConfiguration; -export type OrgsUpdateWebhookConfigForOrgRequestBody = { readonly "url"?: WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl }; +export type OrgsUpdateWebhookConfigForOrgRequestBody = { + readonly url?: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; +}; -export type OrgsUpdateWebhookConfigForOrgRequestPath = { readonly "org": string; readonly "hook_id": number }; +export type OrgsUpdateWebhookConfigForOrgRequestPath = { + readonly org: string; + readonly hook_id: number; +}; export type OrgsListWebhookDeliveries200ResponseBody = ReadonlyArray; @@ -1368,9 +3776,15 @@ export type OrgsListWebhookDeliveries400ResponseBody = BasicError; export type OrgsListWebhookDeliveries422ResponseBody = ValidationError; -export type OrgsListWebhookDeliveriesRequestQuery = { readonly "per_page"?: number; readonly "cursor"?: string }; +export type OrgsListWebhookDeliveriesRequestQuery = { + readonly per_page?: number; + readonly cursor?: string; +}; -export type OrgsListWebhookDeliveriesRequestPath = { readonly "org": string; readonly "hook_id": number }; +export type OrgsListWebhookDeliveriesRequestPath = { + readonly org: string; + readonly hook_id: number; +}; export type OrgsGetWebhookDelivery200ResponseBody = WebhookDelivery; @@ -1378,7 +3792,11 @@ export type OrgsGetWebhookDelivery400ResponseBody = BasicError; export type OrgsGetWebhookDelivery422ResponseBody = ValidationError; -export type OrgsGetWebhookDeliveryRequestPath = { readonly "org": string; readonly "hook_id": number; readonly "delivery_id": number }; +export type OrgsGetWebhookDeliveryRequestPath = { + readonly org: string; + readonly hook_id: number; + readonly delivery_id: number; +}; export type OrgsRedeliverWebhookDelivery202ResponseBody = unknown; @@ -1386,51 +3804,90 @@ export type OrgsRedeliverWebhookDelivery400ResponseBody = BasicError; export type OrgsRedeliverWebhookDelivery422ResponseBody = ValidationError; -export type OrgsRedeliverWebhookDeliveryRequestPath = { readonly "org": string; readonly "hook_id": number; readonly "delivery_id": number }; +export type OrgsRedeliverWebhookDeliveryRequestPath = { + readonly org: string; + readonly hook_id: number; + readonly delivery_id: number; +}; export type OrgsPingWebhook404ResponseBody = BasicError; -export type OrgsPingWebhookRequestPath = { readonly "org": string; readonly "hook_id": number }; +export type OrgsPingWebhookRequestPath = { + readonly org: string; + readonly hook_id: number; +}; export type AppsGetOrgInstallation200ResponseBody = Installation; -export type AppsGetOrgInstallationRequestPath = { readonly "org": string }; +export type AppsGetOrgInstallationRequestPath = { readonly org: string }; -export type OrgsListAppInstallations200ResponseBody = { readonly "total_count": number; readonly "installations": ReadonlyArray }; +export type OrgsListAppInstallations200ResponseBody = { + readonly total_count: number; + readonly installations: ReadonlyArray; +}; -export type OrgsListAppInstallationsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListAppInstallationsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListAppInstallationsRequestPath = { readonly "org": string }; +export type OrgsListAppInstallationsRequestPath = { readonly org: string }; -export type InteractionGroup = "existing_users" | "contributors_only" | "collaborators_only"; +export type InteractionGroup = + | 'existing_users' + | 'contributors_only' + | 'collaborators_only'; -export type InteractionLimits = { readonly "limit": InteractionGroup; readonly "origin": string; readonly "expires_at": string }; +export type InteractionLimits = { + readonly limit: InteractionGroup; + readonly origin: string; + readonly expires_at: string; +}; -export type InteractionsGetRestrictionsForOrg200ResponseBody = InteractionLimits | { }; +export type InteractionsGetRestrictionsForOrg200ResponseBody = + | InteractionLimits + | {}; -export type InteractionsGetRestrictionsForOrgRequestPath = { readonly "org": string }; +export type InteractionsGetRestrictionsForOrgRequestPath = { + readonly org: string; +}; export type InteractionsSetRestrictionsForOrg200ResponseBody = InteractionLimits; export type InteractionsSetRestrictionsForOrg422ResponseBody = ValidationError; -export type InteractionExpiry = "one_day" | "three_days" | "one_week" | "one_month" | "six_months"; +export type InteractionExpiry = + | 'one_day' + | 'three_days' + | 'one_week' + | 'one_month' + | 'six_months'; -export type InteractionRestrictions = { readonly "limit": InteractionGroup; readonly "expiry"?: InteractionExpiry }; +export type InteractionRestrictions = { + readonly limit: InteractionGroup; + readonly expiry?: InteractionExpiry; +}; export type InteractionsSetRestrictionsForOrgRequestBody = InteractionRestrictions; -export type InteractionsSetRestrictionsForOrgRequestPath = { readonly "org": string }; +export type InteractionsSetRestrictionsForOrgRequestPath = { + readonly org: string; +}; -export type InteractionsRemoveRestrictionsForOrgRequestPath = { readonly "org": string }; +export type InteractionsRemoveRestrictionsForOrgRequestPath = { + readonly org: string; +}; export type OrgsListPendingInvitations200ResponseBody = ReadonlyArray; export type OrgsListPendingInvitations404ResponseBody = BasicError; -export type OrgsListPendingInvitationsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListPendingInvitationsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListPendingInvitationsRequestPath = { readonly "org": string }; +export type OrgsListPendingInvitationsRequestPath = { readonly org: string }; export type OrgsCreateInvitation201ResponseBody = OrganizationInvitation; @@ -1438,51 +3895,127 @@ export type OrgsCreateInvitation404ResponseBody = BasicError; export type OrgsCreateInvitation422ResponseBody = ValidationError; -export type OrgsCreateInvitationRequestBody = { readonly "invitee_id"?: number; readonly "email"?: string; readonly "role"?: "admin" | "direct_member" | "billing_manager"; readonly "team_ids"?: ReadonlyArray }; +export type OrgsCreateInvitationRequestBody = { + readonly invitee_id?: number; + readonly email?: string; + readonly role?: 'admin' | 'direct_member' | 'billing_manager'; + readonly team_ids?: ReadonlyArray; +}; -export type OrgsCreateInvitationRequestPath = { readonly "org": string }; +export type OrgsCreateInvitationRequestPath = { readonly org: string }; export type OrgsCancelInvitation404ResponseBody = BasicError; export type OrgsCancelInvitation422ResponseBody = ValidationError; -export type OrgsCancelInvitationRequestPath = { readonly "org": string; readonly "invitation_id": number }; - -export type TeamSimple = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "members_url": string; readonly "name": string; readonly "description": string | null; readonly "permission": string; readonly "privacy"?: string; readonly "html_url": string; readonly "repositories_url": string; readonly "slug": string; readonly "ldap_dn"?: string } | null; - -export type Team = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "slug": string; readonly "description": string | null; readonly "privacy"?: string; readonly "permission": string; readonly "permissions"?: { readonly "pull": boolean; readonly "triage": boolean; readonly "push": boolean; readonly "maintain": boolean; readonly "admin": boolean }; readonly "url": string; readonly "html_url": string; readonly "members_url": string; readonly "repositories_url": string; readonly "parent": TeamSimple }; +export type OrgsCancelInvitationRequestPath = { + readonly org: string; + readonly invitation_id: number; +}; + +export type TeamSimple = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly members_url: string; + readonly name: string; + readonly description: string | null; + readonly permission: string; + readonly privacy?: string; + readonly html_url: string; + readonly repositories_url: string; + readonly slug: string; + readonly ldap_dn?: string; +} | null; + +export type Team = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly slug: string; + readonly description: string | null; + readonly privacy?: string; + readonly permission: string; + readonly permissions?: { + readonly pull: boolean; + readonly triage: boolean; + readonly push: boolean; + readonly maintain: boolean; + readonly admin: boolean; + }; + readonly url: string; + readonly html_url: string; + readonly members_url: string; + readonly repositories_url: string; + readonly parent: TeamSimple; +}; export type OrgsListInvitationTeams200ResponseBody = ReadonlyArray; export type OrgsListInvitationTeams404ResponseBody = BasicError; -export type OrgsListInvitationTeamsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListInvitationTeamsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListInvitationTeamsRequestPath = { readonly "org": string; readonly "invitation_id": number }; +export type OrgsListInvitationTeamsRequestPath = { + readonly org: string; + readonly invitation_id: number; +}; export type IssuesListForOrg200ResponseBody = ReadonlyArray; export type IssuesListForOrg404ResponseBody = BasicError; -export type IssuesListForOrgRequestQuery = { readonly "filter"?: "assigned" | "created" | "mentioned" | "subscribed" | "repos" | "all"; readonly "state"?: "open" | "closed" | "all"; readonly "labels"?: string; readonly "sort"?: "created" | "updated" | "comments"; readonly "direction"?: "asc" | "desc"; readonly "since"?: string; readonly "per_page"?: number; readonly "page"?: number }; - -export type IssuesListForOrgRequestPath = { readonly "org": string }; +export type IssuesListForOrgRequestQuery = { + readonly filter?: + | 'assigned' + | 'created' + | 'mentioned' + | 'subscribed' + | 'repos' + | 'all'; + readonly state?: 'open' | 'closed' | 'all'; + readonly labels?: string; + readonly sort?: 'created' | 'updated' | 'comments'; + readonly direction?: 'asc' | 'desc'; + readonly since?: string; + readonly per_page?: number; + readonly page?: number; +}; + +export type IssuesListForOrgRequestPath = { readonly org: string }; export type OrgsListMembers200ResponseBody = ReadonlyArray; export type OrgsListMembers422ResponseBody = ValidationError; -export type OrgsListMembersRequestQuery = { readonly "filter"?: "2fa_disabled" | "all"; readonly "role"?: "all" | "admin" | "member"; readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListMembersRequestQuery = { + readonly filter?: '2fa_disabled' | 'all'; + readonly role?: 'all' | 'admin' | 'member'; + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListMembersRequestPath = { readonly "org": string }; +export type OrgsListMembersRequestPath = { readonly org: string }; -export type OrgsCheckMembershipForUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsCheckMembershipForUserRequestPath = { + readonly org: string; + readonly username: string; +}; export type OrgsRemoveMember403ResponseBody = BasicError; -export type OrgsRemoveMemberRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsRemoveMemberRequestPath = { + readonly org: string; + readonly username: string; +}; -export type CodespacesGetCodespacesForUserInOrg200ResponseBody = { readonly "total_count": number; readonly "codespaces": ReadonlyArray }; +export type CodespacesGetCodespacesForUserInOrg200ResponseBody = { + readonly total_count: number; + readonly codespaces: ReadonlyArray; +}; export type CodespacesGetCodespacesForUserInOrg401ResponseBody = BasicError; @@ -1492,9 +4025,15 @@ export type CodespacesGetCodespacesForUserInOrg404ResponseBody = BasicError; export type CodespacesGetCodespacesForUserInOrg500ResponseBody = BasicError; -export type CodespacesGetCodespacesForUserInOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type CodespacesGetCodespacesForUserInOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type CodespacesGetCodespacesForUserInOrgRequestPath = { readonly "org": string; readonly "username": string }; +export type CodespacesGetCodespacesForUserInOrgRequestPath = { + readonly org: string; + readonly username: string; +}; export type CodespacesDeleteFromOrganization202ResponseBody = unknown; @@ -1506,7 +4045,11 @@ export type CodespacesDeleteFromOrganization404ResponseBody = BasicError; export type CodespacesDeleteFromOrganization500ResponseBody = BasicError; -export type CodespacesDeleteFromOrganizationRequestPath = { readonly "org": string; readonly "username": string; readonly "codespace_name": string }; +export type CodespacesDeleteFromOrganizationRequestPath = { + readonly org: string; + readonly username: string; + readonly codespace_name: string; +}; export type CodespacesStopInOrganization200ResponseBody = Codespace; @@ -1518,9 +4061,21 @@ export type CodespacesStopInOrganization404ResponseBody = BasicError; export type CodespacesStopInOrganization500ResponseBody = BasicError; -export type CodespacesStopInOrganizationRequestPath = { readonly "org": string; readonly "username": string; readonly "codespace_name": string }; - -export type OrgMembership = { readonly "url": string; readonly "state": "active" | "pending"; readonly "role": "admin" | "member" | "billing_manager"; readonly "organization_url": string; readonly "organization": OrganizationSimple; readonly "user": SimpleUser; readonly "permissions"?: { readonly "can_create_repository": boolean } }; +export type CodespacesStopInOrganizationRequestPath = { + readonly org: string; + readonly username: string; + readonly codespace_name: string; +}; + +export type OrgMembership = { + readonly url: string; + readonly state: 'active' | 'pending'; + readonly role: 'admin' | 'member' | 'billing_manager'; + readonly organization_url: string; + readonly organization: OrganizationSimple; + readonly user: SimpleUser; + readonly permissions?: { readonly can_create_repository: boolean }; +}; export type OrgsGetMembershipForUser200ResponseBody = OrgMembership; @@ -1528,7 +4083,10 @@ export type OrgsGetMembershipForUser403ResponseBody = BasicError; export type OrgsGetMembershipForUser404ResponseBody = BasicError; -export type OrgsGetMembershipForUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsGetMembershipForUserRequestPath = { + readonly org: string; + readonly username: string; +}; export type OrgsSetMembershipForUser200ResponseBody = OrgMembership; @@ -1536,23 +4094,54 @@ export type OrgsSetMembershipForUser403ResponseBody = BasicError; export type OrgsSetMembershipForUser422ResponseBody = ValidationError; -export type OrgsSetMembershipForUserRequestBody = { readonly "role"?: "admin" | "member" }; +export type OrgsSetMembershipForUserRequestBody = { + readonly role?: 'admin' | 'member'; +}; -export type OrgsSetMembershipForUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsSetMembershipForUserRequestPath = { + readonly org: string; + readonly username: string; +}; export type OrgsRemoveMembershipForUser403ResponseBody = BasicError; export type OrgsRemoveMembershipForUser404ResponseBody = BasicError; -export type OrgsRemoveMembershipForUserRequestPath = { readonly "org": string; readonly "username": string }; - -export type Migration = { readonly "id": number; readonly "owner": SimpleUser; readonly "guid": string; readonly "state": string; readonly "lock_repositories": boolean; readonly "exclude_metadata": boolean; readonly "exclude_git_data": boolean; readonly "exclude_attachments": boolean; readonly "exclude_releases": boolean; readonly "exclude_owner_projects": boolean; readonly "org_metadata_only": boolean; readonly "repositories": ReadonlyArray; readonly "url": string; readonly "created_at": string; readonly "updated_at": string; readonly "node_id": string; readonly "archive_url"?: string; readonly "exclude"?: ReadonlyArray }; +export type OrgsRemoveMembershipForUserRequestPath = { + readonly org: string; + readonly username: string; +}; + +export type Migration = { + readonly id: number; + readonly owner: SimpleUser; + readonly guid: string; + readonly state: string; + readonly lock_repositories: boolean; + readonly exclude_metadata: boolean; + readonly exclude_git_data: boolean; + readonly exclude_attachments: boolean; + readonly exclude_releases: boolean; + readonly exclude_owner_projects: boolean; + readonly org_metadata_only: boolean; + readonly repositories: ReadonlyArray; + readonly url: string; + readonly created_at: string; + readonly updated_at: string; + readonly node_id: string; + readonly archive_url?: string; + readonly exclude?: ReadonlyArray; +}; export type MigrationsListForOrg200ResponseBody = ReadonlyArray; -export type MigrationsListForOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number; readonly "exclude"?: ReadonlyArray<"repositories"> | "repositories" }; +export type MigrationsListForOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; + readonly exclude?: ReadonlyArray<'repositories'> | 'repositories'; +}; -export type MigrationsListForOrgRequestPath = { readonly "org": string }; +export type MigrationsListForOrgRequestPath = { readonly org: string }; export type MigrationsStartForOrg201ResponseBody = Migration; @@ -1560,57 +4149,121 @@ export type MigrationsStartForOrg404ResponseBody = BasicError; export type MigrationsStartForOrg422ResponseBody = ValidationError; -export type MigrationsStartForOrgRequestBody = { readonly "repositories": ReadonlyArray; readonly "lock_repositories"?: boolean; readonly "exclude_metadata"?: boolean; readonly "exclude_git_data"?: boolean; readonly "exclude_attachments"?: boolean; readonly "exclude_releases"?: boolean; readonly "exclude_owner_projects"?: boolean; readonly "org_metadata_only"?: boolean; readonly "exclude"?: ReadonlyArray<"repositories"> }; +export type MigrationsStartForOrgRequestBody = { + readonly repositories: ReadonlyArray; + readonly lock_repositories?: boolean; + readonly exclude_metadata?: boolean; + readonly exclude_git_data?: boolean; + readonly exclude_attachments?: boolean; + readonly exclude_releases?: boolean; + readonly exclude_owner_projects?: boolean; + readonly org_metadata_only?: boolean; + readonly exclude?: ReadonlyArray<'repositories'>; +}; -export type MigrationsStartForOrgRequestPath = { readonly "org": string }; +export type MigrationsStartForOrgRequestPath = { readonly org: string }; export type MigrationsGetStatusForOrg200ResponseBody = Migration; export type MigrationsGetStatusForOrg404ResponseBody = BasicError; -export type MigrationsGetStatusForOrgRequestQuery = { readonly "exclude"?: ReadonlyArray<"repositories"> | "repositories" }; +export type MigrationsGetStatusForOrgRequestQuery = { + readonly exclude?: ReadonlyArray<'repositories'> | 'repositories'; +}; -export type MigrationsGetStatusForOrgRequestPath = { readonly "org": string; readonly "migration_id": number }; +export type MigrationsGetStatusForOrgRequestPath = { + readonly org: string; + readonly migration_id: number; +}; export type MigrationsDownloadArchiveForOrg404ResponseBody = BasicError; -export type MigrationsDownloadArchiveForOrgRequestPath = { readonly "org": string; readonly "migration_id": number }; +export type MigrationsDownloadArchiveForOrgRequestPath = { + readonly org: string; + readonly migration_id: number; +}; export type MigrationsDeleteArchiveForOrg404ResponseBody = BasicError; -export type MigrationsDeleteArchiveForOrgRequestPath = { readonly "org": string; readonly "migration_id": number }; +export type MigrationsDeleteArchiveForOrgRequestPath = { + readonly org: string; + readonly migration_id: number; +}; export type MigrationsUnlockRepoForOrg404ResponseBody = BasicError; -export type MigrationsUnlockRepoForOrgRequestPath = { readonly "org": string; readonly "migration_id": number; readonly "repo_name": string }; +export type MigrationsUnlockRepoForOrgRequestPath = { + readonly org: string; + readonly migration_id: number; + readonly repo_name: string; +}; export type MigrationsListReposForOrg200ResponseBody = ReadonlyArray; export type MigrationsListReposForOrg404ResponseBody = BasicError; -export type MigrationsListReposForOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type MigrationsListReposForOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type MigrationsListReposForOrgRequestPath = { readonly "org": string; readonly "migration_id": number }; +export type MigrationsListReposForOrgRequestPath = { + readonly org: string; + readonly migration_id: number; +}; export type OrgsListOutsideCollaborators200ResponseBody = ReadonlyArray; -export type OrgsListOutsideCollaboratorsRequestQuery = { readonly "filter"?: "2fa_disabled" | "all"; readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListOutsideCollaboratorsRequestQuery = { + readonly filter?: '2fa_disabled' | 'all'; + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListOutsideCollaboratorsRequestPath = { readonly "org": string }; +export type OrgsListOutsideCollaboratorsRequestPath = { readonly org: string }; -export type OrgsConvertMemberToOutsideCollaborator202ResponseBody = { }; +export type OrgsConvertMemberToOutsideCollaborator202ResponseBody = {}; export type OrgsConvertMemberToOutsideCollaborator404ResponseBody = BasicError; -export type OrgsConvertMemberToOutsideCollaboratorRequestBody = { readonly "async"?: boolean }; - -export type OrgsConvertMemberToOutsideCollaboratorRequestPath = { readonly "org": string; readonly "username": string }; - -export type OrgsRemoveOutsideCollaborator422ResponseBody = { readonly "message"?: string; readonly "documentation_url"?: string }; - -export type OrgsRemoveOutsideCollaboratorRequestPath = { readonly "org": string; readonly "username": string }; - -export type Package = { readonly "id": number; readonly "name": string; readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "url": string; readonly "html_url": string; readonly "version_count": number; readonly "visibility": "private" | "public"; readonly "owner"?: SimpleUser; readonly "repository"?: MinimalRepository; readonly "created_at": string; readonly "updated_at": string }; +export type OrgsConvertMemberToOutsideCollaboratorRequestBody = { + readonly async?: boolean; +}; + +export type OrgsConvertMemberToOutsideCollaboratorRequestPath = { + readonly org: string; + readonly username: string; +}; + +export type OrgsRemoveOutsideCollaborator422ResponseBody = { + readonly message?: string; + readonly documentation_url?: string; +}; + +export type OrgsRemoveOutsideCollaboratorRequestPath = { + readonly org: string; + readonly username: string; +}; + +export type Package = { + readonly id: number; + readonly name: string; + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly url: string; + readonly html_url: string; + readonly version_count: number; + readonly visibility: 'private' | 'public'; + readonly owner?: SimpleUser; + readonly repository?: MinimalRepository; + readonly created_at: string; + readonly updated_at: string; +}; export type PackagesListPackagesForOrganization200ResponseBody = ReadonlyArray; @@ -1618,13 +4271,34 @@ export type PackagesListPackagesForOrganization401ResponseBody = BasicError; export type PackagesListPackagesForOrganization403ResponseBody = BasicError; -export type PackagesListPackagesForOrganizationRequestQuery = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "visibility"?: "public" | "private" | "internal" }; - -export type PackagesListPackagesForOrganizationRequestPath = { readonly "org": string }; +export type PackagesListPackagesForOrganizationRequestQuery = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly visibility?: 'public' | 'private' | 'internal'; +}; + +export type PackagesListPackagesForOrganizationRequestPath = { + readonly org: string; +}; export type PackagesGetPackageForOrganization200ResponseBody = Package; -export type PackagesGetPackageForOrganizationRequestPath = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "package_name": string; readonly "org": string }; +export type PackagesGetPackageForOrganizationRequestPath = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly package_name: string; + readonly org: string; +}; export type PackagesDeletePackageForOrg401ResponseBody = BasicError; @@ -1632,7 +4306,17 @@ export type PackagesDeletePackageForOrg403ResponseBody = BasicError; export type PackagesDeletePackageForOrg404ResponseBody = BasicError; -export type PackagesDeletePackageForOrgRequestPath = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "package_name": string; readonly "org": string }; +export type PackagesDeletePackageForOrgRequestPath = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly package_name: string; + readonly org: string; +}; export type PackagesRestorePackageForOrg401ResponseBody = BasicError; @@ -1640,17 +4324,51 @@ export type PackagesRestorePackageForOrg403ResponseBody = BasicError; export type PackagesRestorePackageForOrg404ResponseBody = BasicError; -export type PackagesRestorePackageForOrgRequestQuery = { readonly "token"?: string }; - -export type PackagesRestorePackageForOrgRequestPath = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "package_name": string; readonly "org": string }; - -export type ContainerMetadata = { readonly "tags": ReadonlyArray }; - -export type DockerMetadata = { readonly "tag"?: ReadonlyArray }; - -export type PackageVersionMetadata = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "container"?: ContainerMetadata; readonly "docker"?: DockerMetadata }; - -export type PackageVersion = { readonly "id": number; readonly "name": string; readonly "url": string; readonly "package_html_url": string; readonly "html_url"?: string; readonly "license"?: string; readonly "description"?: string; readonly "created_at": string; readonly "updated_at": string; readonly "deleted_at"?: string; readonly "metadata"?: PackageVersionMetadata }; +export type PackagesRestorePackageForOrgRequestQuery = { + readonly token?: string; +}; + +export type PackagesRestorePackageForOrgRequestPath = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly package_name: string; + readonly org: string; +}; + +export type ContainerMetadata = { readonly tags: ReadonlyArray }; + +export type DockerMetadata = { readonly tag?: ReadonlyArray }; + +export type PackageVersionMetadata = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly container?: ContainerMetadata; + readonly docker?: DockerMetadata; +}; + +export type PackageVersion = { + readonly id: number; + readonly name: string; + readonly url: string; + readonly package_html_url: string; + readonly html_url?: string; + readonly license?: string; + readonly description?: string; + readonly created_at: string; + readonly updated_at: string; + readonly deleted_at?: string; + readonly metadata?: PackageVersionMetadata; +}; export type PackagesGetAllPackageVersionsForPackageOwnedByOrg200ResponseBody = ReadonlyArray; @@ -1660,13 +4378,38 @@ export type PackagesGetAllPackageVersionsForPackageOwnedByOrg403ResponseBody = B export type PackagesGetAllPackageVersionsForPackageOwnedByOrg404ResponseBody = BasicError; -export type PackagesGetAllPackageVersionsForPackageOwnedByOrgRequestQuery = { readonly "page"?: number; readonly "per_page"?: number; readonly "state"?: "active" | "deleted" }; - -export type PackagesGetAllPackageVersionsForPackageOwnedByOrgRequestPath = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "package_name": string; readonly "org": string }; +export type PackagesGetAllPackageVersionsForPackageOwnedByOrgRequestQuery = { + readonly page?: number; + readonly per_page?: number; + readonly state?: 'active' | 'deleted'; +}; + +export type PackagesGetAllPackageVersionsForPackageOwnedByOrgRequestPath = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly package_name: string; + readonly org: string; +}; export type PackagesGetPackageVersionForOrganization200ResponseBody = PackageVersion; -export type PackagesGetPackageVersionForOrganizationRequestPath = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "package_name": string; readonly "org": string; readonly "package_version_id": number }; +export type PackagesGetPackageVersionForOrganizationRequestPath = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly package_name: string; + readonly org: string; + readonly package_version_id: number; +}; export type PackagesDeletePackageVersionForOrg401ResponseBody = BasicError; @@ -1674,7 +4417,18 @@ export type PackagesDeletePackageVersionForOrg403ResponseBody = BasicError; export type PackagesDeletePackageVersionForOrg404ResponseBody = BasicError; -export type PackagesDeletePackageVersionForOrgRequestPath = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "package_name": string; readonly "org": string; readonly "package_version_id": number }; +export type PackagesDeletePackageVersionForOrgRequestPath = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly package_name: string; + readonly org: string; + readonly package_version_id: number; +}; export type PackagesRestorePackageVersionForOrg401ResponseBody = BasicError; @@ -1682,17 +4436,48 @@ export type PackagesRestorePackageVersionForOrg403ResponseBody = BasicError; export type PackagesRestorePackageVersionForOrg404ResponseBody = BasicError; -export type PackagesRestorePackageVersionForOrgRequestPath = { readonly "package_type": "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container"; readonly "package_name": string; readonly "org": string; readonly "package_version_id": number }; - -export type Project = { readonly "owner_url": string; readonly "url": string; readonly "html_url": string; readonly "columns_url": string; readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "body": string | null; readonly "number": number; readonly "state": string; readonly "creator": SimpleUser; readonly "created_at": string; readonly "updated_at": string; readonly "organization_permission"?: "read" | "write" | "admin" | "none"; readonly "private"?: boolean }; +export type PackagesRestorePackageVersionForOrgRequestPath = { + readonly package_type: + | 'npm' + | 'maven' + | 'rubygems' + | 'docker' + | 'nuget' + | 'container'; + readonly package_name: string; + readonly org: string; + readonly package_version_id: number; +}; + +export type Project = { + readonly owner_url: string; + readonly url: string; + readonly html_url: string; + readonly columns_url: string; + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly body: string | null; + readonly number: number; + readonly state: string; + readonly creator: SimpleUser; + readonly created_at: string; + readonly updated_at: string; + readonly organization_permission?: 'read' | 'write' | 'admin' | 'none'; + readonly private?: boolean; +}; export type ProjectsListForOrg200ResponseBody = ReadonlyArray; export type ProjectsListForOrg422ResponseBody = ValidationErrorSimple; -export type ProjectsListForOrgRequestQuery = { readonly "state"?: "open" | "closed" | "all"; readonly "per_page"?: number; readonly "page"?: number }; +export type ProjectsListForOrgRequestQuery = { + readonly state?: 'open' | 'closed' | 'all'; + readonly per_page?: number; + readonly page?: number; +}; -export type ProjectsListForOrgRequestPath = { readonly "org": string }; +export type ProjectsListForOrgRequestPath = { readonly org: string }; export type ProjectsCreateForOrg201ResponseBody = Project; @@ -1706,29 +4491,57 @@ export type ProjectsCreateForOrg410ResponseBody = BasicError; export type ProjectsCreateForOrg422ResponseBody = ValidationErrorSimple; -export type ProjectsCreateForOrgRequestBody = { readonly "name": string; readonly "body"?: string }; +export type ProjectsCreateForOrgRequestBody = { + readonly name: string; + readonly body?: string; +}; -export type ProjectsCreateForOrgRequestPath = { readonly "org": string }; +export type ProjectsCreateForOrgRequestPath = { readonly org: string }; export type OrgsListPublicMembers200ResponseBody = ReadonlyArray; -export type OrgsListPublicMembersRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type OrgsListPublicMembersRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type OrgsListPublicMembersRequestPath = { readonly "org": string }; +export type OrgsListPublicMembersRequestPath = { readonly org: string }; -export type OrgsCheckPublicMembershipForUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsCheckPublicMembershipForUserRequestPath = { + readonly org: string; + readonly username: string; +}; export type OrgsSetPublicMembershipForAuthenticatedUser403ResponseBody = BasicError; -export type OrgsSetPublicMembershipForAuthenticatedUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsSetPublicMembershipForAuthenticatedUserRequestPath = { + readonly org: string; + readonly username: string; +}; -export type OrgsRemovePublicMembershipForAuthenticatedUserRequestPath = { readonly "org": string; readonly "username": string }; +export type OrgsRemovePublicMembershipForAuthenticatedUserRequestPath = { + readonly org: string; + readonly username: string; +}; export type ReposListForOrg200ResponseBody = ReadonlyArray; -export type ReposListForOrgRequestQuery = { readonly "type"?: "all" | "public" | "private" | "forks" | "sources" | "member" | "internal"; readonly "sort"?: "created" | "updated" | "pushed" | "full_name"; readonly "direction"?: "asc" | "desc"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposListForOrgRequestPath = { readonly "org": string }; +export type ReposListForOrgRequestQuery = { + readonly type?: + | 'all' + | 'public' + | 'private' + | 'forks' + | 'sources' + | 'member' + | 'internal'; + readonly sort?: 'created' | 'updated' | 'pushed' | 'full_name'; + readonly direction?: 'asc' | 'desc'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposListForOrgRequestPath = { readonly org: string }; export type ReposCreateInOrg201ResponseBody = Repository; @@ -1736,65 +4549,230 @@ export type ReposCreateInOrg403ResponseBody = BasicError; export type ReposCreateInOrg422ResponseBody = ValidationError; -export type ReposCreateInOrgRequestBody = { readonly "name": string; readonly "description"?: string; readonly "homepage"?: string; readonly "private"?: boolean; readonly "visibility"?: "public" | "private" | "internal"; readonly "has_issues"?: boolean; readonly "has_projects"?: boolean; readonly "has_wiki"?: boolean; readonly "is_template"?: boolean; readonly "team_id"?: number; readonly "auto_init"?: boolean; readonly "gitignore_template"?: string; readonly "license_template"?: string; readonly "allow_squash_merge"?: boolean; readonly "allow_merge_commit"?: boolean; readonly "allow_rebase_merge"?: boolean; readonly "allow_auto_merge"?: boolean; readonly "delete_branch_on_merge"?: boolean; readonly "use_squash_pr_title_as_default"?: boolean; readonly "squash_merge_commit_title"?: "PR_TITLE" | "COMMIT_OR_PR_TITLE"; readonly "squash_merge_commit_message"?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; readonly "merge_commit_title"?: "PR_TITLE" | "MERGE_MESSAGE"; readonly "merge_commit_message"?: "PR_BODY" | "PR_TITLE" | "BLANK" }; - -export type ReposCreateInOrgRequestPath = { readonly "org": string }; +export type ReposCreateInOrgRequestBody = { + readonly name: string; + readonly description?: string; + readonly homepage?: string; + readonly private?: boolean; + readonly visibility?: 'public' | 'private' | 'internal'; + readonly has_issues?: boolean; + readonly has_projects?: boolean; + readonly has_wiki?: boolean; + readonly is_template?: boolean; + readonly team_id?: number; + readonly auto_init?: boolean; + readonly gitignore_template?: string; + readonly license_template?: string; + readonly allow_squash_merge?: boolean; + readonly allow_merge_commit?: boolean; + readonly allow_rebase_merge?: boolean; + readonly allow_auto_merge?: boolean; + readonly delete_branch_on_merge?: boolean; + readonly use_squash_pr_title_as_default?: boolean; + readonly squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; + readonly squash_merge_commit_message?: + | 'PR_BODY' + | 'COMMIT_MESSAGES' + | 'BLANK'; + readonly merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; + readonly merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; +}; + +export type ReposCreateInOrgRequestPath = { readonly org: string }; export type SecretScanningListAlertsForOrg200ResponseBody = ReadonlyArray; export type SecretScanningListAlertsForOrg404ResponseBody = BasicError; -export type SecretScanningListAlertsForOrg503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type SecretScanningListAlertsForOrgRequestQuery = { readonly "state"?: "open" | "resolved"; readonly "secret_type"?: string; readonly "resolution"?: string; readonly "sort"?: "created" | "updated"; readonly "direction"?: "asc" | "desc"; readonly "page"?: number; readonly "per_page"?: number; readonly "before"?: string; readonly "after"?: string }; - -export type SecretScanningListAlertsForOrgRequestPath = { readonly "org": string }; +export type SecretScanningListAlertsForOrg503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type SecretScanningListAlertsForOrgRequestQuery = { + readonly state?: 'open' | 'resolved'; + readonly secret_type?: string; + readonly resolution?: string; + readonly sort?: 'created' | 'updated'; + readonly direction?: 'asc' | 'desc'; + readonly page?: number; + readonly per_page?: number; + readonly before?: string; + readonly after?: string; +}; + +export type SecretScanningListAlertsForOrgRequestPath = { + readonly org: string; +}; export type OrgsListSecurityManagerTeams200ResponseBody = ReadonlyArray; -export type OrgsListSecurityManagerTeamsRequestPath = { readonly "org": string }; - -export type OrgsAddSecurityManagerTeamRequestPath = { readonly "org": string; readonly "team_slug": string }; - -export type OrgsRemoveSecurityManagerTeamRequestPath = { readonly "org": string; readonly "team_slug": string }; - -export type ActionsBillingUsage = { readonly "total_minutes_used": number; readonly "total_paid_minutes_used": number; readonly "included_minutes": number; readonly "minutes_used_breakdown": { readonly "UBUNTU"?: number; readonly "MACOS"?: number; readonly "WINDOWS"?: number; readonly "ubuntu_4_core"?: number; readonly "ubuntu_8_core"?: number; readonly "ubuntu_16_core"?: number; readonly "ubuntu_32_core"?: number; readonly "ubuntu_64_core"?: number; readonly "windows_4_core"?: number; readonly "windows_8_core"?: number; readonly "windows_16_core"?: number; readonly "windows_32_core"?: number; readonly "windows_64_core"?: number; readonly "total"?: number } }; +export type OrgsListSecurityManagerTeamsRequestPath = { readonly org: string }; + +export type OrgsAddSecurityManagerTeamRequestPath = { + readonly org: string; + readonly team_slug: string; +}; + +export type OrgsRemoveSecurityManagerTeamRequestPath = { + readonly org: string; + readonly team_slug: string; +}; + +export type ActionsBillingUsage = { + readonly total_minutes_used: number; + readonly total_paid_minutes_used: number; + readonly included_minutes: number; + readonly minutes_used_breakdown: { + readonly UBUNTU?: number; + readonly MACOS?: number; + readonly WINDOWS?: number; + readonly ubuntu_4_core?: number; + readonly ubuntu_8_core?: number; + readonly ubuntu_16_core?: number; + readonly ubuntu_32_core?: number; + readonly ubuntu_64_core?: number; + readonly windows_4_core?: number; + readonly windows_8_core?: number; + readonly windows_16_core?: number; + readonly windows_32_core?: number; + readonly windows_64_core?: number; + readonly total?: number; + }; +}; export type BillingGetGithubActionsBillingOrg200ResponseBody = ActionsBillingUsage; -export type BillingGetGithubActionsBillingOrgRequestPath = { readonly "org": string }; +export type BillingGetGithubActionsBillingOrgRequestPath = { + readonly org: string; +}; export type BillingGetGithubAdvancedSecurityBillingOrg200ResponseBody = AdvancedSecurityActiveCommitters; export type BillingGetGithubAdvancedSecurityBillingOrg403ResponseBody = BasicError; -export type BillingGetGithubAdvancedSecurityBillingOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type BillingGetGithubAdvancedSecurityBillingOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type BillingGetGithubAdvancedSecurityBillingOrgRequestPath = { readonly "org": string }; +export type BillingGetGithubAdvancedSecurityBillingOrgRequestPath = { + readonly org: string; +}; -export type PackagesBillingUsage = { readonly "total_gigabytes_bandwidth_used": number; readonly "total_paid_gigabytes_bandwidth_used": number; readonly "included_gigabytes_bandwidth": number }; +export type PackagesBillingUsage = { + readonly total_gigabytes_bandwidth_used: number; + readonly total_paid_gigabytes_bandwidth_used: number; + readonly included_gigabytes_bandwidth: number; +}; export type BillingGetGithubPackagesBillingOrg200ResponseBody = PackagesBillingUsage; -export type BillingGetGithubPackagesBillingOrgRequestPath = { readonly "org": string }; +export type BillingGetGithubPackagesBillingOrgRequestPath = { + readonly org: string; +}; -export type CombinedBillingUsage = { readonly "days_left_in_billing_cycle": number; readonly "estimated_paid_storage_for_month": number; readonly "estimated_storage_for_month": number }; +export type CombinedBillingUsage = { + readonly days_left_in_billing_cycle: number; + readonly estimated_paid_storage_for_month: number; + readonly estimated_storage_for_month: number; +}; export type BillingGetSharedStorageBillingOrg200ResponseBody = CombinedBillingUsage; -export type BillingGetSharedStorageBillingOrgRequestPath = { readonly "org": string }; +export type BillingGetSharedStorageBillingOrgRequestPath = { + readonly org: string; +}; export type TeamsList200ResponseBody = ReadonlyArray; export type TeamsList403ResponseBody = BasicError; -export type TeamsListRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type TeamsListRequestPath = { readonly "org": string }; - -export type TeamOrganization = { readonly "login": string; readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "repos_url": string; readonly "events_url": string; readonly "hooks_url": string; readonly "issues_url": string; readonly "members_url": string; readonly "public_members_url": string; readonly "avatar_url": string; readonly "description": string | null; readonly "name"?: string; readonly "company"?: string; readonly "blog"?: string; readonly "location"?: string; readonly "email"?: string; readonly "twitter_username"?: string | null; readonly "is_verified"?: boolean; readonly "has_organization_projects": boolean; readonly "has_repository_projects": boolean; readonly "public_repos": number; readonly "public_gists": number; readonly "followers": number; readonly "following": number; readonly "html_url": string; readonly "created_at": string; readonly "type": string; readonly "total_private_repos"?: number; readonly "owned_private_repos"?: number; readonly "private_gists"?: number | null; readonly "disk_usage"?: number | null; readonly "collaborators"?: number | null; readonly "billing_email"?: string | null; readonly "plan"?: { readonly "name": string; readonly "space": number; readonly "private_repos": number; readonly "filled_seats"?: number; readonly "seats"?: number }; readonly "default_repository_permission"?: string | null; readonly "members_can_create_repositories"?: boolean | null; readonly "two_factor_requirement_enabled"?: boolean | null; readonly "members_allowed_repository_creation_type"?: string; readonly "members_can_create_public_repositories"?: boolean; readonly "members_can_create_private_repositories"?: boolean; readonly "members_can_create_internal_repositories"?: boolean; readonly "members_can_create_pages"?: boolean; readonly "members_can_create_public_pages"?: boolean; readonly "members_can_create_private_pages"?: boolean; readonly "members_can_fork_private_repositories"?: boolean | null; readonly "web_commit_signoff_required"?: boolean; readonly "updated_at": string }; - -export type FullTeam = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "html_url": string; readonly "name": string; readonly "slug": string; readonly "description": string | null; readonly "privacy"?: "closed" | "secret"; readonly "permission": string; readonly "members_url": string; readonly "repositories_url": string; readonly "parent"?: TeamSimple; readonly "members_count": number; readonly "repos_count": number; readonly "created_at": string; readonly "updated_at": string; readonly "organization": TeamOrganization; readonly "ldap_dn"?: string }; +export type TeamsListRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type TeamsListRequestPath = { readonly org: string }; + +export type TeamOrganization = { + readonly login: string; + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly repos_url: string; + readonly events_url: string; + readonly hooks_url: string; + readonly issues_url: string; + readonly members_url: string; + readonly public_members_url: string; + readonly avatar_url: string; + readonly description: string | null; + readonly name?: string; + readonly company?: string; + readonly blog?: string; + readonly location?: string; + readonly email?: string; + readonly twitter_username?: string | null; + readonly is_verified?: boolean; + readonly has_organization_projects: boolean; + readonly has_repository_projects: boolean; + readonly public_repos: number; + readonly public_gists: number; + readonly followers: number; + readonly following: number; + readonly html_url: string; + readonly created_at: string; + readonly type: string; + readonly total_private_repos?: number; + readonly owned_private_repos?: number; + readonly private_gists?: number | null; + readonly disk_usage?: number | null; + readonly collaborators?: number | null; + readonly billing_email?: string | null; + readonly plan?: { + readonly name: string; + readonly space: number; + readonly private_repos: number; + readonly filled_seats?: number; + readonly seats?: number; + }; + readonly default_repository_permission?: string | null; + readonly members_can_create_repositories?: boolean | null; + readonly two_factor_requirement_enabled?: boolean | null; + readonly members_allowed_repository_creation_type?: string; + readonly members_can_create_public_repositories?: boolean; + readonly members_can_create_private_repositories?: boolean; + readonly members_can_create_internal_repositories?: boolean; + readonly members_can_create_pages?: boolean; + readonly members_can_create_public_pages?: boolean; + readonly members_can_create_private_pages?: boolean; + readonly members_can_fork_private_repositories?: boolean | null; + readonly web_commit_signoff_required?: boolean; + readonly updated_at: string; +}; + +export type FullTeam = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly html_url: string; + readonly name: string; + readonly slug: string; + readonly description: string | null; + readonly privacy?: 'closed' | 'secret'; + readonly permission: string; + readonly members_url: string; + readonly repositories_url: string; + readonly parent?: TeamSimple; + readonly members_count: number; + readonly repos_count: number; + readonly created_at: string; + readonly updated_at: string; + readonly organization: TeamOrganization; + readonly ldap_dn?: string; +}; export type TeamsCreate201ResponseBody = FullTeam; @@ -1802,15 +4780,26 @@ export type TeamsCreate403ResponseBody = BasicError; export type TeamsCreate422ResponseBody = ValidationError; -export type TeamsCreateRequestBody = { readonly "name": string; readonly "description"?: string; readonly "maintainers"?: ReadonlyArray; readonly "repo_names"?: ReadonlyArray; readonly "privacy"?: "secret" | "closed"; readonly "permission"?: "pull" | "push"; readonly "parent_team_id"?: number }; +export type TeamsCreateRequestBody = { + readonly name: string; + readonly description?: string; + readonly maintainers?: ReadonlyArray; + readonly repo_names?: ReadonlyArray; + readonly privacy?: 'secret' | 'closed'; + readonly permission?: 'pull' | 'push'; + readonly parent_team_id?: number; +}; -export type TeamsCreateRequestPath = { readonly "org": string }; +export type TeamsCreateRequestPath = { readonly org: string }; export type TeamsGetByName200ResponseBody = FullTeam; export type TeamsGetByName404ResponseBody = BasicError; -export type TeamsGetByNameRequestPath = { readonly "org": string; readonly "team_slug": string }; +export type TeamsGetByNameRequestPath = { + readonly org: string; + readonly team_slug: string; +}; export type TeamsUpdateInOrg200ResponseBody = FullTeam; @@ -1822,171 +4811,589 @@ export type TeamsUpdateInOrg404ResponseBody = BasicError; export type TeamsUpdateInOrg422ResponseBody = ValidationError; -export type TeamsUpdateInOrgRequestBody = { readonly "name"?: string; readonly "description"?: string; readonly "privacy"?: "secret" | "closed"; readonly "permission"?: "pull" | "push" | "admin"; readonly "parent_team_id"?: number | null }; - -export type TeamsUpdateInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; - -export type TeamsDeleteInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; - -export type TeamDiscussion = { readonly "author": SimpleUser; readonly "body": string; readonly "body_html": string; readonly "body_version": string; readonly "comments_count": number; readonly "comments_url": string; readonly "created_at": string; readonly "last_edited_at": string | null; readonly "html_url": string; readonly "node_id": string; readonly "number": number; readonly "pinned": boolean; readonly "private": boolean; readonly "team_url": string; readonly "title": string; readonly "updated_at": string; readonly "url": string; readonly "reactions"?: ReactionRollup }; +export type TeamsUpdateInOrgRequestBody = { + readonly name?: string; + readonly description?: string; + readonly privacy?: 'secret' | 'closed'; + readonly permission?: 'pull' | 'push' | 'admin'; + readonly parent_team_id?: number | null; +}; + +export type TeamsUpdateInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; + +export type TeamsDeleteInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; + +export type TeamDiscussion = { + readonly author: SimpleUser; + readonly body: string; + readonly body_html: string; + readonly body_version: string; + readonly comments_count: number; + readonly comments_url: string; + readonly created_at: string; + readonly last_edited_at: string | null; + readonly html_url: string; + readonly node_id: string; + readonly number: number; + readonly pinned: boolean; + readonly private: boolean; + readonly team_url: string; + readonly title: string; + readonly updated_at: string; + readonly url: string; + readonly reactions?: ReactionRollup; +}; export type TeamsListDiscussionsInOrg200ResponseBody = ReadonlyArray; -export type TeamsListDiscussionsInOrgRequestQuery = { readonly "direction"?: "asc" | "desc"; readonly "per_page"?: number; readonly "page"?: number; readonly "pinned"?: string }; +export type TeamsListDiscussionsInOrgRequestQuery = { + readonly direction?: 'asc' | 'desc'; + readonly per_page?: number; + readonly page?: number; + readonly pinned?: string; +}; -export type TeamsListDiscussionsInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; +export type TeamsListDiscussionsInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; export type TeamsCreateDiscussionInOrg201ResponseBody = TeamDiscussion; -export type TeamsCreateDiscussionInOrgRequestBody = { readonly "title": string; readonly "body": string; readonly "private"?: boolean }; +export type TeamsCreateDiscussionInOrgRequestBody = { + readonly title: string; + readonly body: string; + readonly private?: boolean; +}; -export type TeamsCreateDiscussionInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; +export type TeamsCreateDiscussionInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; export type TeamsGetDiscussionInOrg200ResponseBody = TeamDiscussion; -export type TeamsGetDiscussionInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number }; +export type TeamsGetDiscussionInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; +}; export type TeamsUpdateDiscussionInOrg200ResponseBody = TeamDiscussion; -export type TeamsUpdateDiscussionInOrgRequestBody = { readonly "title"?: string; readonly "body"?: string }; - -export type TeamsUpdateDiscussionInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number }; - -export type TeamsDeleteDiscussionInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number }; - -export type TeamDiscussionComment = { readonly "author": SimpleUser; readonly "body": string; readonly "body_html": string; readonly "body_version": string; readonly "created_at": string; readonly "last_edited_at": string | null; readonly "discussion_url": string; readonly "html_url": string; readonly "node_id": string; readonly "number": number; readonly "updated_at": string; readonly "url": string; readonly "reactions"?: ReactionRollup }; +export type TeamsUpdateDiscussionInOrgRequestBody = { + readonly title?: string; + readonly body?: string; +}; + +export type TeamsUpdateDiscussionInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; +}; + +export type TeamsDeleteDiscussionInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; +}; + +export type TeamDiscussionComment = { + readonly author: SimpleUser; + readonly body: string; + readonly body_html: string; + readonly body_version: string; + readonly created_at: string; + readonly last_edited_at: string | null; + readonly discussion_url: string; + readonly html_url: string; + readonly node_id: string; + readonly number: number; + readonly updated_at: string; + readonly url: string; + readonly reactions?: ReactionRollup; +}; export type TeamsListDiscussionCommentsInOrg200ResponseBody = ReadonlyArray; -export type TeamsListDiscussionCommentsInOrgRequestQuery = { readonly "direction"?: "asc" | "desc"; readonly "per_page"?: number; readonly "page"?: number }; +export type TeamsListDiscussionCommentsInOrgRequestQuery = { + readonly direction?: 'asc' | 'desc'; + readonly per_page?: number; + readonly page?: number; +}; -export type TeamsListDiscussionCommentsInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number }; +export type TeamsListDiscussionCommentsInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; +}; export type TeamsCreateDiscussionCommentInOrg201ResponseBody = TeamDiscussionComment; -export type TeamsCreateDiscussionCommentInOrgRequestBody = { readonly "body": string }; +export type TeamsCreateDiscussionCommentInOrgRequestBody = { + readonly body: string; +}; -export type TeamsCreateDiscussionCommentInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number }; +export type TeamsCreateDiscussionCommentInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; +}; export type TeamsGetDiscussionCommentInOrg200ResponseBody = TeamDiscussionComment; -export type TeamsGetDiscussionCommentInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number; readonly "comment_number": number }; +export type TeamsGetDiscussionCommentInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; + readonly comment_number: number; +}; export type TeamsUpdateDiscussionCommentInOrg200ResponseBody = TeamDiscussionComment; -export type TeamsUpdateDiscussionCommentInOrgRequestBody = { readonly "body": string }; - -export type TeamsUpdateDiscussionCommentInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number; readonly "comment_number": number }; - -export type TeamsDeleteDiscussionCommentInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number; readonly "comment_number": number }; - -export type Reaction = { readonly "id": number; readonly "node_id": string; readonly "user": SimpleUser; readonly "content": "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; readonly "created_at": string }; +export type TeamsUpdateDiscussionCommentInOrgRequestBody = { + readonly body: string; +}; + +export type TeamsUpdateDiscussionCommentInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; + readonly comment_number: number; +}; + +export type TeamsDeleteDiscussionCommentInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; + readonly comment_number: number; +}; + +export type Reaction = { + readonly id: number; + readonly node_id: string; + readonly user: SimpleUser; + readonly content: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; + readonly created_at: string; +}; export type ReactionsListForTeamDiscussionCommentInOrg200ResponseBody = ReadonlyArray; -export type ReactionsListForTeamDiscussionCommentInOrgRequestQuery = { readonly "content"?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReactionsListForTeamDiscussionCommentInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number; readonly "comment_number": number }; +export type ReactionsListForTeamDiscussionCommentInOrgRequestQuery = { + readonly content?: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReactionsListForTeamDiscussionCommentInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; + readonly comment_number: number; +}; export type ReactionsCreateForTeamDiscussionCommentInOrg200ResponseBody = Reaction; export type ReactionsCreateForTeamDiscussionCommentInOrg201ResponseBody = Reaction; -export type ReactionsCreateForTeamDiscussionCommentInOrgRequestBody = { readonly "content": "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes" }; - -export type ReactionsCreateForTeamDiscussionCommentInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number; readonly "comment_number": number }; - -export type ReactionsDeleteForTeamDiscussionCommentRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number; readonly "comment_number": number; readonly "reaction_id": number }; +export type ReactionsCreateForTeamDiscussionCommentInOrgRequestBody = { + readonly content: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; +}; + +export type ReactionsCreateForTeamDiscussionCommentInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; + readonly comment_number: number; +}; + +export type ReactionsDeleteForTeamDiscussionCommentRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; + readonly comment_number: number; + readonly reaction_id: number; +}; export type ReactionsListForTeamDiscussionInOrg200ResponseBody = ReadonlyArray; -export type ReactionsListForTeamDiscussionInOrgRequestQuery = { readonly "content"?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReactionsListForTeamDiscussionInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number }; +export type ReactionsListForTeamDiscussionInOrgRequestQuery = { + readonly content?: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReactionsListForTeamDiscussionInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; +}; export type ReactionsCreateForTeamDiscussionInOrg200ResponseBody = Reaction; export type ReactionsCreateForTeamDiscussionInOrg201ResponseBody = Reaction; -export type ReactionsCreateForTeamDiscussionInOrgRequestBody = { readonly "content": "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes" }; - -export type ReactionsCreateForTeamDiscussionInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number }; - -export type ReactionsDeleteForTeamDiscussionRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "discussion_number": number; readonly "reaction_id": number }; +export type ReactionsCreateForTeamDiscussionInOrgRequestBody = { + readonly content: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; +}; + +export type ReactionsCreateForTeamDiscussionInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; +}; + +export type ReactionsDeleteForTeamDiscussionRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly discussion_number: number; + readonly reaction_id: number; +}; export type TeamsListPendingInvitationsInOrg200ResponseBody = ReadonlyArray; -export type TeamsListPendingInvitationsInOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type TeamsListPendingInvitationsInOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type TeamsListPendingInvitationsInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; +export type TeamsListPendingInvitationsInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; export type TeamsListMembersInOrg200ResponseBody = ReadonlyArray; -export type TeamsListMembersInOrgRequestQuery = { readonly "role"?: "member" | "maintainer" | "all"; readonly "per_page"?: number; readonly "page"?: number }; +export type TeamsListMembersInOrgRequestQuery = { + readonly role?: 'member' | 'maintainer' | 'all'; + readonly per_page?: number; + readonly page?: number; +}; -export type TeamsListMembersInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; +export type TeamsListMembersInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; -export type TeamMembership = { readonly "url": string; readonly "role": "member" | "maintainer"; readonly "state": "active" | "pending" }; +export type TeamMembership = { + readonly url: string; + readonly role: 'member' | 'maintainer'; + readonly state: 'active' | 'pending'; +}; export type TeamsGetMembershipForUserInOrg200ResponseBody = TeamMembership; -export type TeamsGetMembershipForUserInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "username": string }; +export type TeamsGetMembershipForUserInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly username: string; +}; export type TeamsAddOrUpdateMembershipForUserInOrg200ResponseBody = TeamMembership; -export type TeamsAddOrUpdateMembershipForUserInOrgRequestBody = { readonly "role"?: "member" | "maintainer" }; - -export type TeamsAddOrUpdateMembershipForUserInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "username": string }; - -export type TeamsRemoveMembershipForUserInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "username": string }; - -export type TeamProject = { readonly "owner_url": string; readonly "url": string; readonly "html_url": string; readonly "columns_url": string; readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "body": string | null; readonly "number": number; readonly "state": string; readonly "creator": SimpleUser; readonly "created_at": string; readonly "updated_at": string; readonly "organization_permission"?: string; readonly "private"?: boolean; readonly "permissions": { readonly "read": boolean; readonly "write": boolean; readonly "admin": boolean } }; +export type TeamsAddOrUpdateMembershipForUserInOrgRequestBody = { + readonly role?: 'member' | 'maintainer'; +}; + +export type TeamsAddOrUpdateMembershipForUserInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly username: string; +}; + +export type TeamsRemoveMembershipForUserInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly username: string; +}; + +export type TeamProject = { + readonly owner_url: string; + readonly url: string; + readonly html_url: string; + readonly columns_url: string; + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly body: string | null; + readonly number: number; + readonly state: string; + readonly creator: SimpleUser; + readonly created_at: string; + readonly updated_at: string; + readonly organization_permission?: string; + readonly private?: boolean; + readonly permissions: { + readonly read: boolean; + readonly write: boolean; + readonly admin: boolean; + }; +}; export type TeamsListProjectsInOrg200ResponseBody = ReadonlyArray; -export type TeamsListProjectsInOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type TeamsListProjectsInOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type TeamsListProjectsInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; +export type TeamsListProjectsInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; export type TeamsCheckPermissionsForProjectInOrg200ResponseBody = TeamProject; -export type TeamsCheckPermissionsForProjectInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "project_id": number }; - -export type TeamsAddOrUpdateProjectPermissionsInOrg403ResponseBody = { readonly "message"?: string; readonly "documentation_url"?: string }; - -export type TeamsAddOrUpdateProjectPermissionsInOrgRequestBody = { readonly "permission"?: "read" | "write" | "admin" } | null; - -export type TeamsAddOrUpdateProjectPermissionsInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "project_id": number }; - -export type TeamsRemoveProjectInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "project_id": number }; +export type TeamsCheckPermissionsForProjectInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly project_id: number; +}; + +export type TeamsAddOrUpdateProjectPermissionsInOrg403ResponseBody = { + readonly message?: string; + readonly documentation_url?: string; +}; + +export type TeamsAddOrUpdateProjectPermissionsInOrgRequestBody = { + readonly permission?: 'read' | 'write' | 'admin'; +} | null; + +export type TeamsAddOrUpdateProjectPermissionsInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly project_id: number; +}; + +export type TeamsRemoveProjectInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly project_id: number; +}; export type TeamsListReposInOrg200ResponseBody = ReadonlyArray; -export type TeamsListReposInOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type TeamsListReposInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; - -export type TeamRepository = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "full_name": string; readonly "license": LicenseSimple; readonly "forks": number; readonly "permissions"?: { readonly "admin": boolean; readonly "pull": boolean; readonly "triage"?: boolean; readonly "push": boolean; readonly "maintain"?: boolean }; readonly "role_name"?: string; readonly "owner": SimpleUser; readonly "private": boolean; readonly "html_url": string; readonly "description": string | null; readonly "fork": boolean; readonly "url": string; readonly "archive_url": string; readonly "assignees_url": string; readonly "blobs_url": string; readonly "branches_url": string; readonly "collaborators_url": string; readonly "comments_url": string; readonly "commits_url": string; readonly "compare_url": string; readonly "contents_url": string; readonly "contributors_url": string; readonly "deployments_url": string; readonly "downloads_url": string; readonly "events_url": string; readonly "forks_url": string; readonly "git_commits_url": string; readonly "git_refs_url": string; readonly "git_tags_url": string; readonly "git_url": string; readonly "issue_comment_url": string; readonly "issue_events_url": string; readonly "issues_url": string; readonly "keys_url": string; readonly "labels_url": string; readonly "languages_url": string; readonly "merges_url": string; readonly "milestones_url": string; readonly "notifications_url": string; readonly "pulls_url": string; readonly "releases_url": string; readonly "ssh_url": string; readonly "stargazers_url": string; readonly "statuses_url": string; readonly "subscribers_url": string; readonly "subscription_url": string; readonly "tags_url": string; readonly "teams_url": string; readonly "trees_url": string; readonly "clone_url": string; readonly "mirror_url": string | null; readonly "hooks_url": string; readonly "svn_url": string; readonly "homepage": string | null; readonly "language": string | null; readonly "forks_count": number; readonly "stargazers_count": number; readonly "watchers_count": number; readonly "size": number; readonly "default_branch": string; readonly "open_issues_count": number; readonly "is_template"?: boolean; readonly "topics"?: ReadonlyArray; readonly "has_issues": boolean; readonly "has_projects": boolean; readonly "has_wiki": boolean; readonly "has_pages": boolean; readonly "has_downloads": boolean; readonly "archived": boolean; readonly "disabled": boolean; readonly "visibility"?: string; readonly "pushed_at": string | null; readonly "created_at": string | null; readonly "updated_at": string | null; readonly "allow_rebase_merge"?: boolean; readonly "template_repository"?: Repository; readonly "temp_clone_token"?: string; readonly "allow_squash_merge"?: boolean; readonly "allow_auto_merge"?: boolean; readonly "delete_branch_on_merge"?: boolean; readonly "allow_merge_commit"?: boolean; readonly "allow_forking"?: boolean; readonly "web_commit_signoff_required"?: boolean; readonly "subscribers_count"?: number; readonly "network_count"?: number; readonly "open_issues": number; readonly "watchers": number; readonly "master_branch"?: string }; +export type TeamsListReposInOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type TeamsListReposInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; + +export type TeamRepository = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly full_name: string; + readonly license: LicenseSimple; + readonly forks: number; + readonly permissions?: { + readonly admin: boolean; + readonly pull: boolean; + readonly triage?: boolean; + readonly push: boolean; + readonly maintain?: boolean; + }; + readonly role_name?: string; + readonly owner: SimpleUser; + readonly private: boolean; + readonly html_url: string; + readonly description: string | null; + readonly fork: boolean; + readonly url: string; + readonly archive_url: string; + readonly assignees_url: string; + readonly blobs_url: string; + readonly branches_url: string; + readonly collaborators_url: string; + readonly comments_url: string; + readonly commits_url: string; + readonly compare_url: string; + readonly contents_url: string; + readonly contributors_url: string; + readonly deployments_url: string; + readonly downloads_url: string; + readonly events_url: string; + readonly forks_url: string; + readonly git_commits_url: string; + readonly git_refs_url: string; + readonly git_tags_url: string; + readonly git_url: string; + readonly issue_comment_url: string; + readonly issue_events_url: string; + readonly issues_url: string; + readonly keys_url: string; + readonly labels_url: string; + readonly languages_url: string; + readonly merges_url: string; + readonly milestones_url: string; + readonly notifications_url: string; + readonly pulls_url: string; + readonly releases_url: string; + readonly ssh_url: string; + readonly stargazers_url: string; + readonly statuses_url: string; + readonly subscribers_url: string; + readonly subscription_url: string; + readonly tags_url: string; + readonly teams_url: string; + readonly trees_url: string; + readonly clone_url: string; + readonly mirror_url: string | null; + readonly hooks_url: string; + readonly svn_url: string; + readonly homepage: string | null; + readonly language: string | null; + readonly forks_count: number; + readonly stargazers_count: number; + readonly watchers_count: number; + readonly size: number; + readonly default_branch: string; + readonly open_issues_count: number; + readonly is_template?: boolean; + readonly topics?: ReadonlyArray; + readonly has_issues: boolean; + readonly has_projects: boolean; + readonly has_wiki: boolean; + readonly has_pages: boolean; + readonly has_downloads: boolean; + readonly archived: boolean; + readonly disabled: boolean; + readonly visibility?: string; + readonly pushed_at: string | null; + readonly created_at: string | null; + readonly updated_at: string | null; + readonly allow_rebase_merge?: boolean; + readonly template_repository?: Repository; + readonly temp_clone_token?: string; + readonly allow_squash_merge?: boolean; + readonly allow_auto_merge?: boolean; + readonly delete_branch_on_merge?: boolean; + readonly allow_merge_commit?: boolean; + readonly allow_forking?: boolean; + readonly web_commit_signoff_required?: boolean; + readonly subscribers_count?: number; + readonly network_count?: number; + readonly open_issues: number; + readonly watchers: number; + readonly master_branch?: string; +}; export type TeamsCheckPermissionsForRepoInOrg200ResponseBody = TeamRepository; -export type TeamsCheckPermissionsForRepoInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "owner": string; readonly "repo": string }; - -export type TeamsAddOrUpdateRepoPermissionsInOrgRequestBody = { readonly "permission"?: string }; - -export type TeamsAddOrUpdateRepoPermissionsInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "owner": string; readonly "repo": string }; - -export type TeamsRemoveRepoInOrgRequestPath = { readonly "org": string; readonly "team_slug": string; readonly "owner": string; readonly "repo": string }; +export type TeamsCheckPermissionsForRepoInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly owner: string; + readonly repo: string; +}; + +export type TeamsAddOrUpdateRepoPermissionsInOrgRequestBody = { + readonly permission?: string; +}; + +export type TeamsAddOrUpdateRepoPermissionsInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly owner: string; + readonly repo: string; +}; + +export type TeamsRemoveRepoInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; + readonly owner: string; + readonly repo: string; +}; export type TeamsListChildInOrg200ResponseBody = ReadonlyArray; -export type TeamsListChildInOrgRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type TeamsListChildInOrgRequestPath = { readonly "org": string; readonly "team_slug": string }; - -export type OrgsEnableOrDisableSecurityProductOnAllOrgReposRequestPath = { readonly "org": string; readonly "security_product": "dependency_graph" | "dependabot_alerts" | "dependabot_security_updates" | "advanced_security" | "secret_scanning" | "secret_scanning_push_protection"; readonly "enablement": "enable_all" | "disable_all" }; - -export type ProjectCard = { readonly "url": string; readonly "id": number; readonly "node_id": string; readonly "note": string | null; readonly "creator": SimpleUser; readonly "created_at": string; readonly "updated_at": string; readonly "archived"?: boolean; readonly "column_name"?: string; readonly "project_id"?: string; readonly "column_url": string; readonly "content_url"?: string; readonly "project_url": string }; +export type TeamsListChildInOrgRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type TeamsListChildInOrgRequestPath = { + readonly org: string; + readonly team_slug: string; +}; + +export type OrgsEnableOrDisableSecurityProductOnAllOrgReposRequestPath = { + readonly org: string; + readonly security_product: + | 'dependency_graph' + | 'dependabot_alerts' + | 'dependabot_security_updates' + | 'advanced_security' + | 'secret_scanning' + | 'secret_scanning_push_protection'; + readonly enablement: 'enable_all' | 'disable_all'; +}; + +export type ProjectCard = { + readonly url: string; + readonly id: number; + readonly node_id: string; + readonly note: string | null; + readonly creator: SimpleUser; + readonly created_at: string; + readonly updated_at: string; + readonly archived?: boolean; + readonly column_name?: string; + readonly project_id?: string; + readonly column_url: string; + readonly content_url?: string; + readonly project_url: string; +}; export type ProjectsGetCard200ResponseBody = ProjectCard; @@ -1996,7 +5403,7 @@ export type ProjectsGetCard403ResponseBody = BasicError; export type ProjectsGetCard404ResponseBody = BasicError; -export type ProjectsGetCardRequestPath = { readonly "card_id": number }; +export type ProjectsGetCardRequestPath = { readonly card_id: number }; export type ProjectsUpdateCard200ResponseBody = ProjectCard; @@ -2008,33 +5415,69 @@ export type ProjectsUpdateCard404ResponseBody = BasicError; export type ProjectsUpdateCard422ResponseBody = ValidationErrorSimple; -export type ProjectsUpdateCardRequestBody = { readonly "note"?: string | null; readonly "archived"?: boolean }; +export type ProjectsUpdateCardRequestBody = { + readonly note?: string | null; + readonly archived?: boolean; +}; -export type ProjectsUpdateCardRequestPath = { readonly "card_id": number }; +export type ProjectsUpdateCardRequestPath = { readonly card_id: number }; export type ProjectsDeleteCard401ResponseBody = BasicError; -export type ProjectsDeleteCard403ResponseBody = { readonly "message"?: string; readonly "documentation_url"?: string; readonly "errors"?: ReadonlyArray }; +export type ProjectsDeleteCard403ResponseBody = { + readonly message?: string; + readonly documentation_url?: string; + readonly errors?: ReadonlyArray; +}; export type ProjectsDeleteCard404ResponseBody = BasicError; -export type ProjectsDeleteCardRequestPath = { readonly "card_id": number }; +export type ProjectsDeleteCardRequestPath = { readonly card_id: number }; -export type ProjectsMoveCard201ResponseBody = { }; +export type ProjectsMoveCard201ResponseBody = {}; export type ProjectsMoveCard401ResponseBody = BasicError; -export type ProjectsMoveCard403ResponseBody = { readonly "message"?: string; readonly "documentation_url"?: string; readonly "errors"?: ReadonlyArray<{ readonly "code"?: string; readonly "message"?: string; readonly "resource"?: string; readonly "field"?: string }> }; +export type ProjectsMoveCard403ResponseBody = { + readonly message?: string; + readonly documentation_url?: string; + readonly errors?: ReadonlyArray<{ + readonly code?: string; + readonly message?: string; + readonly resource?: string; + readonly field?: string; + }>; +}; export type ProjectsMoveCard422ResponseBody = ValidationError; -export type ProjectsMoveCard503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string; readonly "errors"?: ReadonlyArray<{ readonly "code"?: string; readonly "message"?: string }> }; - -export type ProjectsMoveCardRequestBody = { readonly "position": string; readonly "column_id"?: number }; - -export type ProjectsMoveCardRequestPath = { readonly "card_id": number }; - -export type ProjectColumn = { readonly "url": string; readonly "project_url": string; readonly "cards_url": string; readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "created_at": string; readonly "updated_at": string }; +export type ProjectsMoveCard503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; + readonly errors?: ReadonlyArray<{ + readonly code?: string; + readonly message?: string; + }>; +}; + +export type ProjectsMoveCardRequestBody = { + readonly position: string; + readonly column_id?: number; +}; + +export type ProjectsMoveCardRequestPath = { readonly card_id: number }; + +export type ProjectColumn = { + readonly url: string; + readonly project_url: string; + readonly cards_url: string; + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly created_at: string; + readonly updated_at: string; +}; export type ProjectsGetColumn200ResponseBody = ProjectColumn; @@ -2044,7 +5487,7 @@ export type ProjectsGetColumn403ResponseBody = BasicError; export type ProjectsGetColumn404ResponseBody = BasicError; -export type ProjectsGetColumnRequestPath = { readonly "column_id": number }; +export type ProjectsGetColumnRequestPath = { readonly column_id: number }; export type ProjectsUpdateColumn200ResponseBody = ProjectColumn; @@ -2052,15 +5495,15 @@ export type ProjectsUpdateColumn401ResponseBody = BasicError; export type ProjectsUpdateColumn403ResponseBody = BasicError; -export type ProjectsUpdateColumnRequestBody = { readonly "name": string }; +export type ProjectsUpdateColumnRequestBody = { readonly name: string }; -export type ProjectsUpdateColumnRequestPath = { readonly "column_id": number }; +export type ProjectsUpdateColumnRequestPath = { readonly column_id: number }; export type ProjectsDeleteColumn401ResponseBody = BasicError; export type ProjectsDeleteColumn403ResponseBody = BasicError; -export type ProjectsDeleteColumnRequestPath = { readonly "column_id": number }; +export type ProjectsDeleteColumnRequestPath = { readonly column_id: number }; export type ProjectsListCards200ResponseBody = ReadonlyArray; @@ -2068,9 +5511,13 @@ export type ProjectsListCards401ResponseBody = BasicError; export type ProjectsListCards403ResponseBody = BasicError; -export type ProjectsListCardsRequestQuery = { readonly "archived_state"?: "all" | "archived" | "not_archived"; readonly "per_page"?: number; readonly "page"?: number }; +export type ProjectsListCardsRequestQuery = { + readonly archived_state?: 'all' | 'archived' | 'not_archived'; + readonly per_page?: number; + readonly page?: number; +}; -export type ProjectsListCardsRequestPath = { readonly "column_id": number }; +export type ProjectsListCardsRequestPath = { readonly column_id: number }; export type ProjectsCreateCard201ResponseBody = ProjectCard; @@ -2078,15 +5525,27 @@ export type ProjectsCreateCard401ResponseBody = BasicError; export type ProjectsCreateCard403ResponseBody = BasicError; -export type ProjectsCreateCard422ResponseBody = ValidationError | ValidationErrorSimple; +export type ProjectsCreateCard422ResponseBody = + | ValidationError + | ValidationErrorSimple; -export type ProjectsCreateCard503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string; readonly "errors"?: ReadonlyArray<{ readonly "code"?: string; readonly "message"?: string }> }; +export type ProjectsCreateCard503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; + readonly errors?: ReadonlyArray<{ + readonly code?: string; + readonly message?: string; + }>; +}; -export type ProjectsCreateCardRequestBody = { readonly "note": string | null } | { readonly "content_id": number; readonly "content_type": string }; +export type ProjectsCreateCardRequestBody = + | { readonly note: string | null } + | { readonly content_id: number; readonly content_type: string }; -export type ProjectsCreateCardRequestPath = { readonly "column_id": number }; +export type ProjectsCreateCardRequestPath = { readonly column_id: number }; -export type ProjectsMoveColumn201ResponseBody = { }; +export type ProjectsMoveColumn201ResponseBody = {}; export type ProjectsMoveColumn401ResponseBody = BasicError; @@ -2094,9 +5553,9 @@ export type ProjectsMoveColumn403ResponseBody = BasicError; export type ProjectsMoveColumn422ResponseBody = ValidationErrorSimple; -export type ProjectsMoveColumnRequestBody = { readonly "position": string }; +export type ProjectsMoveColumnRequestBody = { readonly position: string }; -export type ProjectsMoveColumnRequestPath = { readonly "column_id": number }; +export type ProjectsMoveColumnRequestPath = { readonly column_id: number }; export type ProjectsGet200ResponseBody = Project; @@ -2104,31 +5563,45 @@ export type ProjectsGet401ResponseBody = BasicError; export type ProjectsGet403ResponseBody = BasicError; -export type ProjectsGetRequestPath = { readonly "project_id": number }; +export type ProjectsGetRequestPath = { readonly project_id: number }; export type ProjectsUpdate200ResponseBody = Project; export type ProjectsUpdate401ResponseBody = BasicError; -export type ProjectsUpdate403ResponseBody = { readonly "message"?: string; readonly "documentation_url"?: string; readonly "errors"?: ReadonlyArray }; +export type ProjectsUpdate403ResponseBody = { + readonly message?: string; + readonly documentation_url?: string; + readonly errors?: ReadonlyArray; +}; export type ProjectsUpdate410ResponseBody = BasicError; export type ProjectsUpdate422ResponseBody = ValidationErrorSimple; -export type ProjectsUpdateRequestBody = { readonly "name"?: string; readonly "body"?: string | null; readonly "state"?: string; readonly "organization_permission"?: "read" | "write" | "admin" | "none"; readonly "private"?: boolean }; +export type ProjectsUpdateRequestBody = { + readonly name?: string; + readonly body?: string | null; + readonly state?: string; + readonly organization_permission?: 'read' | 'write' | 'admin' | 'none'; + readonly private?: boolean; +}; -export type ProjectsUpdateRequestPath = { readonly "project_id": number }; +export type ProjectsUpdateRequestPath = { readonly project_id: number }; export type ProjectsDelete401ResponseBody = BasicError; -export type ProjectsDelete403ResponseBody = { readonly "message"?: string; readonly "documentation_url"?: string; readonly "errors"?: ReadonlyArray }; +export type ProjectsDelete403ResponseBody = { + readonly message?: string; + readonly documentation_url?: string; + readonly errors?: ReadonlyArray; +}; export type ProjectsDelete404ResponseBody = BasicError; export type ProjectsDelete410ResponseBody = BasicError; -export type ProjectsDeleteRequestPath = { readonly "project_id": number }; +export type ProjectsDeleteRequestPath = { readonly project_id: number }; export type ProjectsListCollaborators200ResponseBody = ReadonlyArray; @@ -2140,9 +5613,15 @@ export type ProjectsListCollaborators404ResponseBody = BasicError; export type ProjectsListCollaborators422ResponseBody = ValidationError; -export type ProjectsListCollaboratorsRequestQuery = { readonly "affiliation"?: "outside" | "direct" | "all"; readonly "per_page"?: number; readonly "page"?: number }; +export type ProjectsListCollaboratorsRequestQuery = { + readonly affiliation?: 'outside' | 'direct' | 'all'; + readonly per_page?: number; + readonly page?: number; +}; -export type ProjectsListCollaboratorsRequestPath = { readonly "project_id": number }; +export type ProjectsListCollaboratorsRequestPath = { + readonly project_id: number; +}; export type ProjectsAddCollaborator401ResponseBody = BasicError; @@ -2152,9 +5631,14 @@ export type ProjectsAddCollaborator404ResponseBody = BasicError; export type ProjectsAddCollaborator422ResponseBody = ValidationError; -export type ProjectsAddCollaboratorRequestBody = { readonly "permission"?: "read" | "write" | "admin" } | null; +export type ProjectsAddCollaboratorRequestBody = { + readonly permission?: 'read' | 'write' | 'admin'; +} | null; -export type ProjectsAddCollaboratorRequestPath = { readonly "project_id": number; readonly "username": string }; +export type ProjectsAddCollaboratorRequestPath = { + readonly project_id: number; + readonly username: string; +}; export type ProjectsRemoveCollaborator401ResponseBody = BasicError; @@ -2164,9 +5648,15 @@ export type ProjectsRemoveCollaborator404ResponseBody = BasicError; export type ProjectsRemoveCollaborator422ResponseBody = ValidationError; -export type ProjectsRemoveCollaboratorRequestPath = { readonly "project_id": number; readonly "username": string }; +export type ProjectsRemoveCollaboratorRequestPath = { + readonly project_id: number; + readonly username: string; +}; -export type ProjectCollaboratorPermission = { readonly "permission": string; readonly "user": SimpleUser }; +export type ProjectCollaboratorPermission = { + readonly permission: string; + readonly user: SimpleUser; +}; export type ProjectsGetPermissionForUser200ResponseBody = ProjectCollaboratorPermission; @@ -2178,7 +5668,10 @@ export type ProjectsGetPermissionForUser404ResponseBody = BasicError; export type ProjectsGetPermissionForUser422ResponseBody = ValidationError; -export type ProjectsGetPermissionForUserRequestPath = { readonly "project_id": number; readonly "username": string }; +export type ProjectsGetPermissionForUserRequestPath = { + readonly project_id: number; + readonly username: string; +}; export type ProjectsListColumns200ResponseBody = ReadonlyArray; @@ -2186,9 +5679,12 @@ export type ProjectsListColumns401ResponseBody = BasicError; export type ProjectsListColumns403ResponseBody = BasicError; -export type ProjectsListColumnsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ProjectsListColumnsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ProjectsListColumnsRequestPath = { readonly "project_id": number }; +export type ProjectsListColumnsRequestPath = { readonly project_id: number }; export type ProjectsCreateColumn201ResponseBody = ProjectColumn; @@ -2198,23 +5694,163 @@ export type ProjectsCreateColumn403ResponseBody = BasicError; export type ProjectsCreateColumn422ResponseBody = ValidationErrorSimple; -export type ProjectsCreateColumnRequestBody = { readonly "name": string }; - -export type ProjectsCreateColumnRequestPath = { readonly "project_id": number }; - -export type RateLimit = { readonly "limit": number; readonly "remaining": number; readonly "reset": number; readonly "used": number }; - -export type RateLimitOverview = { readonly "resources": { readonly "core": RateLimit; readonly "graphql"?: RateLimit; readonly "search": RateLimit; readonly "source_import"?: RateLimit; readonly "integration_manifest"?: RateLimit; readonly "code_scanning_upload"?: RateLimit; readonly "actions_runner_registration"?: RateLimit; readonly "scim"?: RateLimit; readonly "dependency_snapshots"?: RateLimit }; readonly "rate": RateLimit }; +export type ProjectsCreateColumnRequestBody = { readonly name: string }; + +export type ProjectsCreateColumnRequestPath = { readonly project_id: number }; + +export type RateLimit = { + readonly limit: number; + readonly remaining: number; + readonly reset: number; + readonly used: number; +}; + +export type RateLimitOverview = { + readonly resources: { + readonly core: RateLimit; + readonly graphql?: RateLimit; + readonly search: RateLimit; + readonly source_import?: RateLimit; + readonly integration_manifest?: RateLimit; + readonly code_scanning_upload?: RateLimit; + readonly actions_runner_registration?: RateLimit; + readonly scim?: RateLimit; + readonly dependency_snapshots?: RateLimit; + }; + readonly rate: RateLimit; +}; export type RateLimitGet200ResponseBody = RateLimitOverview; export type RateLimitGet404ResponseBody = BasicError; -export type CodeOfConductSimple = { readonly "url": string; readonly "key": string; readonly "name": string; readonly "html_url": string | null }; - -export type SecurityAndAnalysis = { readonly "advanced_security"?: { readonly "status"?: "enabled" | "disabled" }; readonly "secret_scanning"?: { readonly "status"?: "enabled" | "disabled" }; readonly "secret_scanning_push_protection"?: { readonly "status"?: "enabled" | "disabled" } } | null; - -export type FullRepository = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "full_name": string; readonly "owner": SimpleUser; readonly "private": boolean; readonly "html_url": string; readonly "description": string | null; readonly "fork": boolean; readonly "url": string; readonly "archive_url": string; readonly "assignees_url": string; readonly "blobs_url": string; readonly "branches_url": string; readonly "collaborators_url": string; readonly "comments_url": string; readonly "commits_url": string; readonly "compare_url": string; readonly "contents_url": string; readonly "contributors_url": string; readonly "deployments_url": string; readonly "downloads_url": string; readonly "events_url": string; readonly "forks_url": string; readonly "git_commits_url": string; readonly "git_refs_url": string; readonly "git_tags_url": string; readonly "git_url": string; readonly "issue_comment_url": string; readonly "issue_events_url": string; readonly "issues_url": string; readonly "keys_url": string; readonly "labels_url": string; readonly "languages_url": string; readonly "merges_url": string; readonly "milestones_url": string; readonly "notifications_url": string; readonly "pulls_url": string; readonly "releases_url": string; readonly "ssh_url": string; readonly "stargazers_url": string; readonly "statuses_url": string; readonly "subscribers_url": string; readonly "subscription_url": string; readonly "tags_url": string; readonly "teams_url": string; readonly "trees_url": string; readonly "clone_url": string; readonly "mirror_url": string | null; readonly "hooks_url": string; readonly "svn_url": string; readonly "homepage": string | null; readonly "language": string | null; readonly "forks_count": number; readonly "stargazers_count": number; readonly "watchers_count": number; readonly "size": number; readonly "default_branch": string; readonly "open_issues_count": number; readonly "is_template"?: boolean; readonly "topics"?: ReadonlyArray; readonly "has_issues": boolean; readonly "has_projects": boolean; readonly "has_wiki": boolean; readonly "has_pages": boolean; readonly "has_downloads": boolean; readonly "archived": boolean; readonly "disabled": boolean; readonly "visibility"?: string; readonly "pushed_at": string; readonly "created_at": string; readonly "updated_at": string; readonly "permissions"?: { readonly "admin": boolean; readonly "maintain"?: boolean; readonly "push": boolean; readonly "triage"?: boolean; readonly "pull": boolean }; readonly "allow_rebase_merge"?: boolean; readonly "template_repository"?: Repository; readonly "temp_clone_token"?: string | null; readonly "allow_squash_merge"?: boolean; readonly "allow_auto_merge"?: boolean; readonly "delete_branch_on_merge"?: boolean; readonly "allow_merge_commit"?: boolean; readonly "allow_update_branch"?: boolean; readonly "use_squash_pr_title_as_default"?: boolean; readonly "squash_merge_commit_title"?: "PR_TITLE" | "COMMIT_OR_PR_TITLE"; readonly "squash_merge_commit_message"?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; readonly "merge_commit_title"?: "PR_TITLE" | "MERGE_MESSAGE"; readonly "merge_commit_message"?: "PR_BODY" | "PR_TITLE" | "BLANK"; readonly "allow_forking"?: boolean; readonly "web_commit_signoff_required"?: boolean; readonly "subscribers_count": number; readonly "network_count": number; readonly "license": LicenseSimple; readonly "organization"?: SimpleUser; readonly "parent"?: Repository; readonly "source"?: Repository; readonly "forks": number; readonly "master_branch"?: string; readonly "open_issues": number; readonly "watchers": number; readonly "anonymous_access_enabled"?: boolean; readonly "code_of_conduct"?: CodeOfConductSimple; readonly "security_and_analysis"?: SecurityAndAnalysis }; +export type CodeOfConductSimple = { + readonly url: string; + readonly key: string; + readonly name: string; + readonly html_url: string | null; +}; + +export type SecurityAndAnalysis = { + readonly advanced_security?: { readonly status?: 'enabled' | 'disabled' }; + readonly secret_scanning?: { readonly status?: 'enabled' | 'disabled' }; + readonly secret_scanning_push_protection?: { + readonly status?: 'enabled' | 'disabled'; + }; +} | null; + +export type FullRepository = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly full_name: string; + readonly owner: SimpleUser; + readonly private: boolean; + readonly html_url: string; + readonly description: string | null; + readonly fork: boolean; + readonly url: string; + readonly archive_url: string; + readonly assignees_url: string; + readonly blobs_url: string; + readonly branches_url: string; + readonly collaborators_url: string; + readonly comments_url: string; + readonly commits_url: string; + readonly compare_url: string; + readonly contents_url: string; + readonly contributors_url: string; + readonly deployments_url: string; + readonly downloads_url: string; + readonly events_url: string; + readonly forks_url: string; + readonly git_commits_url: string; + readonly git_refs_url: string; + readonly git_tags_url: string; + readonly git_url: string; + readonly issue_comment_url: string; + readonly issue_events_url: string; + readonly issues_url: string; + readonly keys_url: string; + readonly labels_url: string; + readonly languages_url: string; + readonly merges_url: string; + readonly milestones_url: string; + readonly notifications_url: string; + readonly pulls_url: string; + readonly releases_url: string; + readonly ssh_url: string; + readonly stargazers_url: string; + readonly statuses_url: string; + readonly subscribers_url: string; + readonly subscription_url: string; + readonly tags_url: string; + readonly teams_url: string; + readonly trees_url: string; + readonly clone_url: string; + readonly mirror_url: string | null; + readonly hooks_url: string; + readonly svn_url: string; + readonly homepage: string | null; + readonly language: string | null; + readonly forks_count: number; + readonly stargazers_count: number; + readonly watchers_count: number; + readonly size: number; + readonly default_branch: string; + readonly open_issues_count: number; + readonly is_template?: boolean; + readonly topics?: ReadonlyArray; + readonly has_issues: boolean; + readonly has_projects: boolean; + readonly has_wiki: boolean; + readonly has_pages: boolean; + readonly has_downloads: boolean; + readonly archived: boolean; + readonly disabled: boolean; + readonly visibility?: string; + readonly pushed_at: string; + readonly created_at: string; + readonly updated_at: string; + readonly permissions?: { + readonly admin: boolean; + readonly maintain?: boolean; + readonly push: boolean; + readonly triage?: boolean; + readonly pull: boolean; + }; + readonly allow_rebase_merge?: boolean; + readonly template_repository?: Repository; + readonly temp_clone_token?: string | null; + readonly allow_squash_merge?: boolean; + readonly allow_auto_merge?: boolean; + readonly delete_branch_on_merge?: boolean; + readonly allow_merge_commit?: boolean; + readonly allow_update_branch?: boolean; + readonly use_squash_pr_title_as_default?: boolean; + readonly squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; + readonly squash_merge_commit_message?: + | 'PR_BODY' + | 'COMMIT_MESSAGES' + | 'BLANK'; + readonly merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; + readonly merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; + readonly allow_forking?: boolean; + readonly web_commit_signoff_required?: boolean; + readonly subscribers_count: number; + readonly network_count: number; + readonly license: LicenseSimple; + readonly organization?: SimpleUser; + readonly parent?: Repository; + readonly source?: Repository; + readonly forks: number; + readonly master_branch?: string; + readonly open_issues: number; + readonly watchers: number; + readonly anonymous_access_enabled?: boolean; + readonly code_of_conduct?: CodeOfConductSimple; + readonly security_and_analysis?: SecurityAndAnalysis; +}; export type ReposGet200ResponseBody = FullRepository; @@ -2224,7 +5860,10 @@ export type ReposGet403ResponseBody = BasicError; export type ReposGet404ResponseBody = BasicError; -export type ReposGetRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposGetRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposUpdate200ResponseBody = FullRepository; @@ -2236,413 +5875,1324 @@ export type ReposUpdate404ResponseBody = BasicError; export type ReposUpdate422ResponseBody = ValidationError; -export type ReposUpdateRequestBody = { readonly "name"?: string; readonly "description"?: string; readonly "homepage"?: string; readonly "private"?: boolean; readonly "visibility"?: "public" | "private" | "internal"; readonly "security_and_analysis"?: { readonly "advanced_security"?: { readonly "status"?: string }; readonly "secret_scanning"?: { readonly "status"?: string }; readonly "secret_scanning_push_protection"?: { readonly "status"?: string } } | null; readonly "has_issues"?: boolean; readonly "has_projects"?: boolean; readonly "has_wiki"?: boolean; readonly "is_template"?: boolean; readonly "default_branch"?: string; readonly "allow_squash_merge"?: boolean; readonly "allow_merge_commit"?: boolean; readonly "allow_rebase_merge"?: boolean; readonly "allow_auto_merge"?: boolean; readonly "delete_branch_on_merge"?: boolean; readonly "allow_update_branch"?: boolean; readonly "use_squash_pr_title_as_default"?: boolean; readonly "squash_merge_commit_title"?: "PR_TITLE" | "COMMIT_OR_PR_TITLE"; readonly "squash_merge_commit_message"?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK"; readonly "merge_commit_title"?: "PR_TITLE" | "MERGE_MESSAGE"; readonly "merge_commit_message"?: "PR_BODY" | "PR_TITLE" | "BLANK"; readonly "archived"?: boolean; readonly "allow_forking"?: boolean; readonly "web_commit_signoff_required"?: boolean }; - -export type ReposUpdateRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposUpdateRequestBody = { + readonly name?: string; + readonly description?: string; + readonly homepage?: string; + readonly private?: boolean; + readonly visibility?: 'public' | 'private' | 'internal'; + readonly security_and_analysis?: { + readonly advanced_security?: { readonly status?: string }; + readonly secret_scanning?: { readonly status?: string }; + readonly secret_scanning_push_protection?: { readonly status?: string }; + } | null; + readonly has_issues?: boolean; + readonly has_projects?: boolean; + readonly has_wiki?: boolean; + readonly is_template?: boolean; + readonly default_branch?: string; + readonly allow_squash_merge?: boolean; + readonly allow_merge_commit?: boolean; + readonly allow_rebase_merge?: boolean; + readonly allow_auto_merge?: boolean; + readonly delete_branch_on_merge?: boolean; + readonly allow_update_branch?: boolean; + readonly use_squash_pr_title_as_default?: boolean; + readonly squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; + readonly squash_merge_commit_message?: + | 'PR_BODY' + | 'COMMIT_MESSAGES' + | 'BLANK'; + readonly merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; + readonly merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; + readonly archived?: boolean; + readonly allow_forking?: boolean; + readonly web_commit_signoff_required?: boolean; +}; + +export type ReposUpdateRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposDelete307ResponseBody = BasicError; -export type ReposDelete403ResponseBody = { readonly "message"?: string; readonly "documentation_url"?: string }; +export type ReposDelete403ResponseBody = { + readonly message?: string; + readonly documentation_url?: string; +}; export type ReposDelete404ResponseBody = BasicError; -export type ReposDeleteRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type Artifact = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "size_in_bytes": number; readonly "url": string; readonly "archive_download_url": string; readonly "expired": boolean; readonly "created_at": string | null; readonly "expires_at": string | null; readonly "updated_at": string | null; readonly "workflow_run"?: { readonly "id"?: number; readonly "repository_id"?: number; readonly "head_repository_id"?: number; readonly "head_branch"?: string; readonly "head_sha"?: string } | null }; - -export type ActionsListArtifactsForRepo200ResponseBody = { readonly "total_count": number; readonly "artifacts": ReadonlyArray }; - -export type ActionsListArtifactsForRepoRequestQuery = { readonly "per_page"?: number; readonly "page"?: number; readonly "name"?: string }; - -export type ActionsListArtifactsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposDeleteRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type Artifact = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly size_in_bytes: number; + readonly url: string; + readonly archive_download_url: string; + readonly expired: boolean; + readonly created_at: string | null; + readonly expires_at: string | null; + readonly updated_at: string | null; + readonly workflow_run?: { + readonly id?: number; + readonly repository_id?: number; + readonly head_repository_id?: number; + readonly head_branch?: string; + readonly head_sha?: string; + } | null; +}; + +export type ActionsListArtifactsForRepo200ResponseBody = { + readonly total_count: number; + readonly artifacts: ReadonlyArray; +}; + +export type ActionsListArtifactsForRepoRequestQuery = { + readonly per_page?: number; + readonly page?: number; + readonly name?: string; +}; + +export type ActionsListArtifactsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsGetArtifact200ResponseBody = Artifact; -export type ActionsGetArtifactRequestPath = { readonly "owner": string; readonly "repo": string; readonly "artifact_id": number }; +export type ActionsGetArtifactRequestPath = { + readonly owner: string; + readonly repo: string; + readonly artifact_id: number; +}; -export type ActionsDeleteArtifactRequestPath = { readonly "owner": string; readonly "repo": string; readonly "artifact_id": number }; +export type ActionsDeleteArtifactRequestPath = { + readonly owner: string; + readonly repo: string; + readonly artifact_id: number; +}; export type ActionsDownloadArtifact410ResponseBody = BasicError; -export type ActionsDownloadArtifactRequestPath = { readonly "owner": string; readonly "repo": string; readonly "artifact_id": number; readonly "archive_format": string }; +export type ActionsDownloadArtifactRequestPath = { + readonly owner: string; + readonly repo: string; + readonly artifact_id: number; + readonly archive_format: string; +}; export type ActionsGetActionsCacheUsage200ResponseBody = ActionsCacheUsageByRepository; -export type ActionsGetActionsCacheUsageRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type RepositoryActionsCaches = { readonly "total_count": number; readonly "actions_caches": ReadonlyArray<{ readonly "id"?: number; readonly "ref"?: string; readonly "key"?: string; readonly "version"?: string; readonly "last_accessed_at"?: string; readonly "created_at"?: string; readonly "size_in_bytes"?: number }> }; +export type ActionsGetActionsCacheUsageRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type RepositoryActionsCaches = { + readonly total_count: number; + readonly actions_caches: ReadonlyArray<{ + readonly id?: number; + readonly ref?: string; + readonly key?: string; + readonly version?: string; + readonly last_accessed_at?: string; + readonly created_at?: string; + readonly size_in_bytes?: number; + }>; +}; export type ActionsGetActionsCacheList200ResponseBody = RepositoryActionsCaches; -export type ActionsGetActionsCacheListRequestQuery = { readonly "per_page"?: number; readonly "page"?: number; readonly "ref"?: CodeScanningRef; readonly "key"?: string; readonly "sort"?: "created_at" | "last_accessed_at" | "size_in_bytes"; readonly "direction"?: "asc" | "desc" }; +export type ActionsGetActionsCacheListRequestQuery = { + readonly per_page?: number; + readonly page?: number; + readonly ref?: CodeScanningRef; + readonly key?: string; + readonly sort?: 'created_at' | 'last_accessed_at' | 'size_in_bytes'; + readonly direction?: 'asc' | 'desc'; +}; -export type ActionsGetActionsCacheListRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsGetActionsCacheListRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsDeleteActionsCacheByKey200ResponseBody = RepositoryActionsCaches; -export type ActionsDeleteActionsCacheByKeyRequestQuery = { readonly "key": string; readonly "ref"?: CodeScanningRef }; - -export type ActionsDeleteActionsCacheByKeyRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type ActionsDeleteActionsCacheByIdRequestPath = { readonly "owner": string; readonly "repo": string; readonly "cache_id": number }; - -export type Job = { readonly "id": number; readonly "run_id": number; readonly "run_url": string; readonly "run_attempt"?: number; readonly "node_id": string; readonly "head_sha": string; readonly "url": string; readonly "html_url": string | null; readonly "status": "queued" | "in_progress" | "completed"; readonly "conclusion": "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null; readonly "started_at": string; readonly "completed_at": string | null; readonly "name": string; readonly "steps"?: ReadonlyArray<{ readonly "status": "queued" | "in_progress" | "completed"; readonly "conclusion": string | null; readonly "name": string; readonly "number": number; readonly "started_at"?: string | null; readonly "completed_at"?: string | null }>; readonly "check_run_url": string; readonly "labels": ReadonlyArray; readonly "runner_id": number | null; readonly "runner_name": string | null; readonly "runner_group_id": number | null; readonly "runner_group_name": string | null }; +export type ActionsDeleteActionsCacheByKeyRequestQuery = { + readonly key: string; + readonly ref?: CodeScanningRef; +}; + +export type ActionsDeleteActionsCacheByKeyRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type ActionsDeleteActionsCacheByIdRequestPath = { + readonly owner: string; + readonly repo: string; + readonly cache_id: number; +}; + +export type Job = { + readonly id: number; + readonly run_id: number; + readonly run_url: string; + readonly run_attempt?: number; + readonly node_id: string; + readonly head_sha: string; + readonly url: string; + readonly html_url: string | null; + readonly status: 'queued' | 'in_progress' | 'completed'; + readonly conclusion: + | 'success' + | 'failure' + | 'neutral' + | 'cancelled' + | 'skipped' + | 'timed_out' + | 'action_required' + | null; + readonly started_at: string; + readonly completed_at: string | null; + readonly name: string; + readonly steps?: ReadonlyArray<{ + readonly status: 'queued' | 'in_progress' | 'completed'; + readonly conclusion: string | null; + readonly name: string; + readonly number: number; + readonly started_at?: string | null; + readonly completed_at?: string | null; + }>; + readonly check_run_url: string; + readonly labels: ReadonlyArray; + readonly runner_id: number | null; + readonly runner_name: string | null; + readonly runner_group_id: number | null; + readonly runner_group_name: string | null; +}; export type ActionsGetJobForWorkflowRun200ResponseBody = Job; -export type ActionsGetJobForWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "job_id": number }; +export type ActionsGetJobForWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly job_id: number; +}; -export type ActionsDownloadJobLogsForWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "job_id": number }; +export type ActionsDownloadJobLogsForWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly job_id: number; +}; export type ActionsReRunJobForWorkflowRun201ResponseBody = EmptyObject; export type ActionsReRunJobForWorkflowRun403ResponseBody = BasicError; -export type ActionsReRunJobForWorkflowRunRequestBody = { readonly "enable_debug_logging"?: boolean } | null; +export type ActionsReRunJobForWorkflowRunRequestBody = { + readonly enable_debug_logging?: boolean; +} | null; -export type ActionsReRunJobForWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "job_id": number }; +export type ActionsReRunJobForWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly job_id: number; +}; export type ActionsEnabled = boolean; -export type ActionsRepositoryPermissions = { readonly "enabled": ActionsEnabled; readonly "allowed_actions"?: AllowedActions; readonly "selected_actions_url"?: SelectedActionsUrl }; +export type ActionsRepositoryPermissions = { + readonly enabled: ActionsEnabled; + readonly allowed_actions?: AllowedActions; + readonly selected_actions_url?: SelectedActionsUrl; +}; export type ActionsGetGithubActionsPermissionsRepository200ResponseBody = ActionsRepositoryPermissions; -export type ActionsGetGithubActionsPermissionsRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsGetGithubActionsPermissionsRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type ActionsSetGithubActionsPermissionsRepositoryRequestBody = { readonly "enabled": ActionsEnabled; readonly "allowed_actions"?: AllowedActions }; +export type ActionsSetGithubActionsPermissionsRepositoryRequestBody = { + readonly enabled: ActionsEnabled; + readonly allowed_actions?: AllowedActions; +}; -export type ActionsSetGithubActionsPermissionsRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsSetGithubActionsPermissionsRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type ActionsWorkflowAccessToRepository = { readonly "access_level": "none" | "organization" | "enterprise" }; +export type ActionsWorkflowAccessToRepository = { + readonly access_level: 'none' | 'organization' | 'enterprise'; +}; export type ActionsGetWorkflowAccessToRepository200ResponseBody = ActionsWorkflowAccessToRepository; -export type ActionsGetWorkflowAccessToRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsGetWorkflowAccessToRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsSetWorkflowAccessToRepositoryRequestBody = ActionsWorkflowAccessToRepository; -export type ActionsSetWorkflowAccessToRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsSetWorkflowAccessToRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsGetAllowedActionsRepository200ResponseBody = SelectedActions; -export type ActionsGetAllowedActionsRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsGetAllowedActionsRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsSetAllowedActionsRepositoryRequestBody = SelectedActions; -export type ActionsSetAllowedActionsRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsSetAllowedActionsRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepository200ResponseBody = ActionsGetDefaultWorkflowPermissions; -export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsGetGithubActionsDefaultWorkflowPermissionsRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryRequestBody = ActionsSetDefaultWorkflowPermissions; -export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsSetGithubActionsDefaultWorkflowPermissionsRepositoryRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type ActionsListSelfHostedRunnersForRepo200ResponseBody = { readonly "total_count": number; readonly "runners": ReadonlyArray }; +export type ActionsListSelfHostedRunnersForRepo200ResponseBody = { + readonly total_count: number; + readonly runners: ReadonlyArray; +}; -export type ActionsListSelfHostedRunnersForRepoRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ActionsListSelfHostedRunnersForRepoRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ActionsListSelfHostedRunnersForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsListSelfHostedRunnersForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsListRunnerApplicationsForRepo200ResponseBody = ReadonlyArray; -export type ActionsListRunnerApplicationsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsListRunnerApplicationsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsCreateRegistrationTokenForRepo201ResponseBody = AuthenticationToken; -export type ActionsCreateRegistrationTokenForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsCreateRegistrationTokenForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsCreateRemoveTokenForRepo201ResponseBody = AuthenticationToken; -export type ActionsCreateRemoveTokenForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsCreateRemoveTokenForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsGetSelfHostedRunnerForRepo200ResponseBody = SelfHostedRunners; -export type ActionsGetSelfHostedRunnerForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "runner_id": number }; +export type ActionsGetSelfHostedRunnerForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly runner_id: number; +}; -export type ActionsDeleteSelfHostedRunnerFromRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "runner_id": number }; +export type ActionsDeleteSelfHostedRunnerFromRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly runner_id: number; +}; -export type ActionsListLabelsForSelfHostedRunnerForRepo200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsListLabelsForSelfHostedRunnerForRepo200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsListLabelsForSelfHostedRunnerForRepo404ResponseBody = BasicError; -export type ActionsListLabelsForSelfHostedRunnerForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "runner_id": number }; +export type ActionsListLabelsForSelfHostedRunnerForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly runner_id: number; +}; -export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo404ResponseBody = BasicError; export type ActionsAddCustomLabelsToSelfHostedRunnerForRepo422ResponseBody = ValidationErrorSimple; -export type ActionsAddCustomLabelsToSelfHostedRunnerForRepoRequestBody = { readonly "labels": ReadonlyArray }; +export type ActionsAddCustomLabelsToSelfHostedRunnerForRepoRequestBody = { + readonly labels: ReadonlyArray; +}; -export type ActionsAddCustomLabelsToSelfHostedRunnerForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "runner_id": number }; +export type ActionsAddCustomLabelsToSelfHostedRunnerForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly runner_id: number; +}; -export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo404ResponseBody = BasicError; export type ActionsSetCustomLabelsForSelfHostedRunnerForRepo422ResponseBody = ValidationErrorSimple; -export type ActionsSetCustomLabelsForSelfHostedRunnerForRepoRequestBody = { readonly "labels": ReadonlyArray }; +export type ActionsSetCustomLabelsForSelfHostedRunnerForRepoRequestBody = { + readonly labels: ReadonlyArray; +}; -export type ActionsSetCustomLabelsForSelfHostedRunnerForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "runner_id": number }; +export type ActionsSetCustomLabelsForSelfHostedRunnerForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly runner_id: number; +}; -export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepo404ResponseBody = BasicError; -export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "runner_id": number }; +export type ActionsRemoveAllCustomLabelsFromSelfHostedRunnerForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly runner_id: number; +}; -export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo200ResponseBody = { readonly "total_count": number; readonly "labels": ReadonlyArray }; +export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo200ResponseBody = { + readonly total_count: number; + readonly labels: ReadonlyArray; +}; export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo404ResponseBody = BasicError; export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepo422ResponseBody = ValidationErrorSimple; -export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "runner_id": number; readonly "name": string }; +export type ActionsRemoveCustomLabelFromSelfHostedRunnerForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly runner_id: number; + readonly name: string; +}; + +export type ReferencedWorkflow = { + readonly path: string; + readonly sha: string; + readonly ref?: string; +}; + +export type PullRequestMinimal = { + readonly id: number; + readonly number: number; + readonly url: string; + readonly head: { + readonly ref: string; + readonly sha: string; + readonly repo: { + readonly id: number; + readonly url: string; + readonly name: string; + }; + }; + readonly base: { + readonly ref: string; + readonly sha: string; + readonly repo: { + readonly id: number; + readonly url: string; + readonly name: string; + }; + }; +}; + +export type SimpleCommit = { + readonly id: string; + readonly tree_id: string; + readonly message: string; + readonly timestamp: string; + readonly author: { readonly name: string; readonly email: string } | null; + readonly committer: { readonly name: string; readonly email: string } | null; +} | null; + +export type WorkflowRun = { + readonly id: number; + readonly name?: string | null; + readonly node_id: string; + readonly check_suite_id?: number; + readonly check_suite_node_id?: string; + readonly head_branch: string | null; + readonly head_sha: string; + readonly path: string; + readonly run_number: number; + readonly run_attempt?: number; + readonly referenced_workflows?: ReadonlyArray | null; + readonly event: string; + readonly status: string | null; + readonly conclusion: string | null; + readonly workflow_id: number; + readonly url: string; + readonly html_url: string; + readonly pull_requests: ReadonlyArray | null; + readonly created_at: string; + readonly updated_at: string; + readonly actor?: SimpleUser; + readonly triggering_actor?: SimpleUser; + readonly run_started_at?: string; + readonly jobs_url: string; + readonly logs_url: string; + readonly check_suite_url: string; + readonly artifacts_url: string; + readonly cancel_url: string; + readonly rerun_url: string; + readonly previous_attempt_url?: string | null; + readonly workflow_url: string; + readonly head_commit: SimpleCommit; + readonly repository: MinimalRepository; + readonly head_repository: MinimalRepository; + readonly head_repository_id?: number; + readonly display_title: string; +}; + +export type ActionsListWorkflowRunsForRepo200ResponseBody = { + readonly total_count: number; + readonly workflow_runs: ReadonlyArray; +}; + +export type ActionsListWorkflowRunsForRepoRequestQuery = { + readonly actor?: string; + readonly branch?: string; + readonly event?: string; + readonly status?: + | 'completed' + | 'action_required' + | 'cancelled' + | 'failure' + | 'neutral' + | 'skipped' + | 'stale' + | 'success' + | 'timed_out' + | 'in_progress' + | 'queued' + | 'requested' + | 'waiting'; + readonly per_page?: number; + readonly page?: number; + readonly created?: string; + readonly exclude_pull_requests?: boolean; + readonly check_suite_id?: number; + readonly head_sha?: string; +}; + +export type ActionsListWorkflowRunsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type ReferencedWorkflow = { readonly "path": string; readonly "sha": string; readonly "ref"?: string }; +export type ActionsGetWorkflowRun200ResponseBody = WorkflowRun; -export type PullRequestMinimal = { readonly "id": number; readonly "number": number; readonly "url": string; readonly "head": { readonly "ref": string; readonly "sha": string; readonly "repo": { readonly "id": number; readonly "url": string; readonly "name": string } }; readonly "base": { readonly "ref": string; readonly "sha": string; readonly "repo": { readonly "id": number; readonly "url": string; readonly "name": string } } }; +export type ActionsGetWorkflowRunRequestQuery = { + readonly exclude_pull_requests?: boolean; +}; + +export type ActionsGetWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type ActionsDeleteWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type EnvironmentApproval = { + readonly environments: ReadonlyArray<{ + readonly id?: number; + readonly node_id?: string; + readonly name?: string; + readonly url?: string; + readonly html_url?: string; + readonly created_at?: string; + readonly updated_at?: string; + }>; + readonly state: 'approved' | 'rejected'; + readonly user: SimpleUser; + readonly comment: string; +}; -export type SimpleCommit = { readonly "id": string; readonly "tree_id": string; readonly "message": string; readonly "timestamp": string; readonly "author": { readonly "name": string; readonly "email": string } | null; readonly "committer": { readonly "name": string; readonly "email": string } | null } | null; +export type ActionsGetReviewsForRun200ResponseBody = ReadonlyArray; -export type WorkflowRun = { readonly "id": number; readonly "name"?: string | null; readonly "node_id": string; readonly "check_suite_id"?: number; readonly "check_suite_node_id"?: string; readonly "head_branch": string | null; readonly "head_sha": string; readonly "path": string; readonly "run_number": number; readonly "run_attempt"?: number; readonly "referenced_workflows"?: ReadonlyArray | null; readonly "event": string; readonly "status": string | null; readonly "conclusion": string | null; readonly "workflow_id": number; readonly "url": string; readonly "html_url": string; readonly "pull_requests": ReadonlyArray | null; readonly "created_at": string; readonly "updated_at": string; readonly "actor"?: SimpleUser; readonly "triggering_actor"?: SimpleUser; readonly "run_started_at"?: string; readonly "jobs_url": string; readonly "logs_url": string; readonly "check_suite_url": string; readonly "artifacts_url": string; readonly "cancel_url": string; readonly "rerun_url": string; readonly "previous_attempt_url"?: string | null; readonly "workflow_url": string; readonly "head_commit": SimpleCommit; readonly "repository": MinimalRepository; readonly "head_repository": MinimalRepository; readonly "head_repository_id"?: number; readonly "display_title": string }; +export type ActionsGetReviewsForRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; -export type ActionsListWorkflowRunsForRepo200ResponseBody = { readonly "total_count": number; readonly "workflow_runs": ReadonlyArray }; - -export type ActionsListWorkflowRunsForRepoRequestQuery = { readonly "actor"?: string; readonly "branch"?: string; readonly "event"?: string; readonly "status"?: "completed" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "success" | "timed_out" | "in_progress" | "queued" | "requested" | "waiting"; readonly "per_page"?: number; readonly "page"?: number; readonly "created"?: string; readonly "exclude_pull_requests"?: boolean; readonly "check_suite_id"?: number; readonly "head_sha"?: string }; - -export type ActionsListWorkflowRunsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type ActionsGetWorkflowRun200ResponseBody = WorkflowRun; - -export type ActionsGetWorkflowRunRequestQuery = { readonly "exclude_pull_requests"?: boolean }; - -export type ActionsGetWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type ActionsDeleteWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type EnvironmentApproval = { readonly "environments": ReadonlyArray<{ readonly "id"?: number; readonly "node_id"?: string; readonly "name"?: string; readonly "url"?: string; readonly "html_url"?: string; readonly "created_at"?: string; readonly "updated_at"?: string }>; readonly "state": "approved" | "rejected"; readonly "user": SimpleUser; readonly "comment": string }; - -export type ActionsGetReviewsForRun200ResponseBody = ReadonlyArray; - -export type ActionsGetReviewsForRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type ActionsApproveWorkflowRun201ResponseBody = EmptyObject; +export type ActionsApproveWorkflowRun201ResponseBody = EmptyObject; export type ActionsApproveWorkflowRun403ResponseBody = BasicError; export type ActionsApproveWorkflowRun404ResponseBody = BasicError; -export type ActionsApproveWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; +export type ActionsApproveWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; -export type ActionsListWorkflowRunArtifacts200ResponseBody = { readonly "total_count": number; readonly "artifacts": ReadonlyArray }; +export type ActionsListWorkflowRunArtifacts200ResponseBody = { + readonly total_count: number; + readonly artifacts: ReadonlyArray; +}; -export type ActionsListWorkflowRunArtifactsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ActionsListWorkflowRunArtifactsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ActionsListWorkflowRunArtifactsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; +export type ActionsListWorkflowRunArtifactsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; export type ActionsGetWorkflowRunAttempt200ResponseBody = WorkflowRun; -export type ActionsGetWorkflowRunAttemptRequestQuery = { readonly "exclude_pull_requests"?: boolean }; +export type ActionsGetWorkflowRunAttemptRequestQuery = { + readonly exclude_pull_requests?: boolean; +}; -export type ActionsGetWorkflowRunAttemptRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number; readonly "attempt_number": number }; +export type ActionsGetWorkflowRunAttemptRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; + readonly attempt_number: number; +}; -export type ActionsListJobsForWorkflowRunAttempt200ResponseBody = { readonly "total_count": number; readonly "jobs": ReadonlyArray }; +export type ActionsListJobsForWorkflowRunAttempt200ResponseBody = { + readonly total_count: number; + readonly jobs: ReadonlyArray; +}; export type ActionsListJobsForWorkflowRunAttempt404ResponseBody = BasicError; -export type ActionsListJobsForWorkflowRunAttemptRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActionsListJobsForWorkflowRunAttemptRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number; readonly "attempt_number": number }; - -export type ActionsDownloadWorkflowRunAttemptLogsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number; readonly "attempt_number": number }; +export type ActionsListJobsForWorkflowRunAttemptRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActionsListJobsForWorkflowRunAttemptRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; + readonly attempt_number: number; +}; + +export type ActionsDownloadWorkflowRunAttemptLogsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; + readonly attempt_number: number; +}; export type ActionsCancelWorkflowRun202ResponseBody = EmptyObject; export type ActionsCancelWorkflowRun409ResponseBody = BasicError; -export type ActionsCancelWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type ActionsListJobsForWorkflowRun200ResponseBody = { readonly "total_count": number; readonly "jobs": ReadonlyArray }; - -export type ActionsListJobsForWorkflowRunRequestQuery = { readonly "filter"?: "latest" | "all"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ActionsListJobsForWorkflowRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type ActionsDownloadWorkflowRunLogsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; +export type ActionsCancelWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type ActionsListJobsForWorkflowRun200ResponseBody = { + readonly total_count: number; + readonly jobs: ReadonlyArray; +}; + +export type ActionsListJobsForWorkflowRunRequestQuery = { + readonly filter?: 'latest' | 'all'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ActionsListJobsForWorkflowRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type ActionsDownloadWorkflowRunLogsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; export type ActionsDeleteWorkflowRunLogs403ResponseBody = BasicError; export type ActionsDeleteWorkflowRunLogs500ResponseBody = BasicError; -export type ActionsDeleteWorkflowRunLogsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type DeploymentReviewerType = "User" | "Team"; - -export type PendingDeployment = { readonly "environment": { readonly "id"?: number; readonly "node_id"?: string; readonly "name"?: string; readonly "url"?: string; readonly "html_url"?: string }; readonly "wait_timer": number; readonly "wait_timer_started_at": string | null; readonly "current_user_can_approve": boolean; readonly "reviewers": ReadonlyArray<{ readonly "type"?: DeploymentReviewerType; readonly "reviewer"?: SimpleUser | Team }> }; +export type ActionsDeleteWorkflowRunLogsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type DeploymentReviewerType = 'User' | 'Team'; + +export type PendingDeployment = { + readonly environment: { + readonly id?: number; + readonly node_id?: string; + readonly name?: string; + readonly url?: string; + readonly html_url?: string; + }; + readonly wait_timer: number; + readonly wait_timer_started_at: string | null; + readonly current_user_can_approve: boolean; + readonly reviewers: ReadonlyArray<{ + readonly type?: DeploymentReviewerType; + readonly reviewer?: SimpleUser | Team; + }>; +}; export type ActionsGetPendingDeploymentsForRun200ResponseBody = ReadonlyArray; -export type ActionsGetPendingDeploymentsForRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type Deployment = { readonly "url": string; readonly "id": number; readonly "node_id": string; readonly "sha": string; readonly "ref": string; readonly "task": string; readonly "payload": unknown | string; readonly "original_environment"?: string; readonly "environment": string; readonly "description": string | null; readonly "creator": SimpleUser; readonly "created_at": string; readonly "updated_at": string; readonly "statuses_url": string; readonly "repository_url": string; readonly "transient_environment"?: boolean; readonly "production_environment"?: boolean; readonly "performed_via_github_app"?: GitHubApp }; +export type ActionsGetPendingDeploymentsForRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type Deployment = { + readonly url: string; + readonly id: number; + readonly node_id: string; + readonly sha: string; + readonly ref: string; + readonly task: string; + readonly payload: unknown | string; + readonly original_environment?: string; + readonly environment: string; + readonly description: string | null; + readonly creator: SimpleUser; + readonly created_at: string; + readonly updated_at: string; + readonly statuses_url: string; + readonly repository_url: string; + readonly transient_environment?: boolean; + readonly production_environment?: boolean; + readonly performed_via_github_app?: GitHubApp; +}; export type ActionsReviewPendingDeploymentsForRun200ResponseBody = ReadonlyArray; -export type ActionsReviewPendingDeploymentsForRunRequestBody = { readonly "environment_ids": ReadonlyArray; readonly "state": "approved" | "rejected"; readonly "comment": string }; +export type ActionsReviewPendingDeploymentsForRunRequestBody = { + readonly environment_ids: ReadonlyArray; + readonly state: 'approved' | 'rejected'; + readonly comment: string; +}; -export type ActionsReviewPendingDeploymentsForRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; +export type ActionsReviewPendingDeploymentsForRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; export type ActionsReRunWorkflow201ResponseBody = EmptyObject; -export type ActionsReRunWorkflowRequestBody = { readonly "enable_debug_logging"?: boolean } | null; +export type ActionsReRunWorkflowRequestBody = { + readonly enable_debug_logging?: boolean; +} | null; -export type ActionsReRunWorkflowRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; +export type ActionsReRunWorkflowRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; export type ActionsReRunWorkflowFailedJobs201ResponseBody = EmptyObject; -export type ActionsReRunWorkflowFailedJobsRequestBody = { readonly "enable_debug_logging"?: boolean } | null; - -export type ActionsReRunWorkflowFailedJobsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type WorkflowRunUsage = { readonly "billable": { readonly "UBUNTU"?: { readonly "total_ms": number; readonly "jobs": number; readonly "job_runs"?: ReadonlyArray<{ readonly "job_id": number; readonly "duration_ms": number }> }; readonly "MACOS"?: { readonly "total_ms": number; readonly "jobs": number; readonly "job_runs"?: ReadonlyArray<{ readonly "job_id": number; readonly "duration_ms": number }> }; readonly "WINDOWS"?: { readonly "total_ms": number; readonly "jobs": number; readonly "job_runs"?: ReadonlyArray<{ readonly "job_id": number; readonly "duration_ms": number }> } }; readonly "run_duration_ms"?: number }; +export type ActionsReRunWorkflowFailedJobsRequestBody = { + readonly enable_debug_logging?: boolean; +} | null; + +export type ActionsReRunWorkflowFailedJobsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type WorkflowRunUsage = { + readonly billable: { + readonly UBUNTU?: { + readonly total_ms: number; + readonly jobs: number; + readonly job_runs?: ReadonlyArray<{ + readonly job_id: number; + readonly duration_ms: number; + }>; + }; + readonly MACOS?: { + readonly total_ms: number; + readonly jobs: number; + readonly job_runs?: ReadonlyArray<{ + readonly job_id: number; + readonly duration_ms: number; + }>; + }; + readonly WINDOWS?: { + readonly total_ms: number; + readonly jobs: number; + readonly job_runs?: ReadonlyArray<{ + readonly job_id: number; + readonly duration_ms: number; + }>; + }; + }; + readonly run_duration_ms?: number; +}; export type ActionsGetWorkflowRunUsage200ResponseBody = WorkflowRunUsage; -export type ActionsGetWorkflowRunUsageRequestPath = { readonly "owner": string; readonly "repo": string; readonly "run_id": number }; - -export type ActionsSecret = { readonly "name": string; readonly "created_at": string; readonly "updated_at": string }; - -export type ActionsListRepoSecrets200ResponseBody = { readonly "total_count": number; readonly "secrets": ReadonlyArray }; - -export type ActionsListRepoSecretsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActionsListRepoSecretsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsGetWorkflowRunUsageRequestPath = { + readonly owner: string; + readonly repo: string; + readonly run_id: number; +}; + +export type ActionsSecret = { + readonly name: string; + readonly created_at: string; + readonly updated_at: string; +}; + +export type ActionsListRepoSecrets200ResponseBody = { + readonly total_count: number; + readonly secrets: ReadonlyArray; +}; + +export type ActionsListRepoSecretsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActionsListRepoSecretsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsGetRepoPublicKey200ResponseBody = ActionsPublicKey; -export type ActionsGetRepoPublicKeyRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsGetRepoPublicKeyRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsGetRepoSecret200ResponseBody = ActionsSecret; -export type ActionsGetRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; +export type ActionsGetRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; export type ActionsCreateOrUpdateRepoSecret201ResponseBody = EmptyObject; -export type ActionsCreateOrUpdateRepoSecretRequestBody = { readonly "encrypted_value"?: string; readonly "key_id"?: string }; - -export type ActionsCreateOrUpdateRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; - -export type ActionsDeleteRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; - -export type Workflow = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "path": string; readonly "state": "active" | "deleted" | "disabled_fork" | "disabled_inactivity" | "disabled_manually"; readonly "created_at": string; readonly "updated_at": string; readonly "url": string; readonly "html_url": string; readonly "badge_url": string; readonly "deleted_at"?: string }; - -export type ActionsListRepoWorkflows200ResponseBody = { readonly "total_count": number; readonly "workflows": ReadonlyArray }; - -export type ActionsListRepoWorkflowsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ActionsListRepoWorkflowsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActionsCreateOrUpdateRepoSecretRequestBody = { + readonly encrypted_value?: string; + readonly key_id?: string; +}; + +export type ActionsCreateOrUpdateRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; + +export type ActionsDeleteRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; + +export type Workflow = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly path: string; + readonly state: + | 'active' + | 'deleted' + | 'disabled_fork' + | 'disabled_inactivity' + | 'disabled_manually'; + readonly created_at: string; + readonly updated_at: string; + readonly url: string; + readonly html_url: string; + readonly badge_url: string; + readonly deleted_at?: string; +}; + +export type ActionsListRepoWorkflows200ResponseBody = { + readonly total_count: number; + readonly workflows: ReadonlyArray; +}; + +export type ActionsListRepoWorkflowsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ActionsListRepoWorkflowsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ActionsGetWorkflow200ResponseBody = Workflow; -export type ActionsGetWorkflowRequestPath = { readonly "owner": string; readonly "repo": string; readonly "workflow_id": number | string }; - -export type ActionsDisableWorkflowRequestPath = { readonly "owner": string; readonly "repo": string; readonly "workflow_id": number | string }; - -export type ActionsCreateWorkflowDispatchRequestBody = { readonly "ref": string; readonly "inputs"?: unknown }; - -export type ActionsCreateWorkflowDispatchRequestPath = { readonly "owner": string; readonly "repo": string; readonly "workflow_id": number | string }; - -export type ActionsEnableWorkflowRequestPath = { readonly "owner": string; readonly "repo": string; readonly "workflow_id": number | string }; - -export type ActionsListWorkflowRuns200ResponseBody = { readonly "total_count": number; readonly "workflow_runs": ReadonlyArray }; - -export type ActionsListWorkflowRunsRequestQuery = { readonly "actor"?: string; readonly "branch"?: string; readonly "event"?: string; readonly "status"?: "completed" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "success" | "timed_out" | "in_progress" | "queued" | "requested" | "waiting"; readonly "per_page"?: number; readonly "page"?: number; readonly "created"?: string; readonly "exclude_pull_requests"?: boolean; readonly "check_suite_id"?: number; readonly "head_sha"?: string }; - -export type ActionsListWorkflowRunsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "workflow_id": number | string }; - -export type WorkflowUsage = { readonly "billable": { readonly "UBUNTU"?: { readonly "total_ms"?: number }; readonly "MACOS"?: { readonly "total_ms"?: number }; readonly "WINDOWS"?: { readonly "total_ms"?: number } } }; +export type ActionsGetWorkflowRequestPath = { + readonly owner: string; + readonly repo: string; + readonly workflow_id: number | string; +}; + +export type ActionsDisableWorkflowRequestPath = { + readonly owner: string; + readonly repo: string; + readonly workflow_id: number | string; +}; + +export type ActionsCreateWorkflowDispatchRequestBody = { + readonly ref: string; + readonly inputs?: unknown; +}; + +export type ActionsCreateWorkflowDispatchRequestPath = { + readonly owner: string; + readonly repo: string; + readonly workflow_id: number | string; +}; + +export type ActionsEnableWorkflowRequestPath = { + readonly owner: string; + readonly repo: string; + readonly workflow_id: number | string; +}; + +export type ActionsListWorkflowRuns200ResponseBody = { + readonly total_count: number; + readonly workflow_runs: ReadonlyArray; +}; + +export type ActionsListWorkflowRunsRequestQuery = { + readonly actor?: string; + readonly branch?: string; + readonly event?: string; + readonly status?: + | 'completed' + | 'action_required' + | 'cancelled' + | 'failure' + | 'neutral' + | 'skipped' + | 'stale' + | 'success' + | 'timed_out' + | 'in_progress' + | 'queued' + | 'requested' + | 'waiting'; + readonly per_page?: number; + readonly page?: number; + readonly created?: string; + readonly exclude_pull_requests?: boolean; + readonly check_suite_id?: number; + readonly head_sha?: string; +}; + +export type ActionsListWorkflowRunsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly workflow_id: number | string; +}; + +export type WorkflowUsage = { + readonly billable: { + readonly UBUNTU?: { readonly total_ms?: number }; + readonly MACOS?: { readonly total_ms?: number }; + readonly WINDOWS?: { readonly total_ms?: number }; + }; +}; export type ActionsGetWorkflowUsage200ResponseBody = WorkflowUsage; -export type ActionsGetWorkflowUsageRequestPath = { readonly "owner": string; readonly "repo": string; readonly "workflow_id": number | string }; +export type ActionsGetWorkflowUsageRequestPath = { + readonly owner: string; + readonly repo: string; + readonly workflow_id: number | string; +}; export type IssuesListAssignees200ResponseBody = ReadonlyArray; export type IssuesListAssignees404ResponseBody = BasicError; -export type IssuesListAssigneesRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type IssuesListAssigneesRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type IssuesListAssigneesRequestPath = { readonly "owner": string; readonly "repo": string }; +export type IssuesListAssigneesRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type IssuesCheckUserCanBeAssigned404ResponseBody = BasicError; -export type IssuesCheckUserCanBeAssignedRequestPath = { readonly "owner": string; readonly "repo": string; readonly "assignee": string }; +export type IssuesCheckUserCanBeAssignedRequestPath = { + readonly owner: string; + readonly repo: string; + readonly assignee: string; +}; -export type AutolinkReference = { readonly "id": number; readonly "key_prefix": string; readonly "url_template": string; readonly "is_alphanumeric": boolean }; +export type AutolinkReference = { + readonly id: number; + readonly key_prefix: string; + readonly url_template: string; + readonly is_alphanumeric: boolean; +}; export type ReposListAutolinks200ResponseBody = ReadonlyArray; -export type ReposListAutolinksRequestQuery = { readonly "page"?: number }; +export type ReposListAutolinksRequestQuery = { readonly page?: number }; -export type ReposListAutolinksRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposListAutolinksRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposCreateAutolink201ResponseBody = AutolinkReference; export type ReposCreateAutolink422ResponseBody = ValidationError; -export type ReposCreateAutolinkRequestBody = { readonly "key_prefix": string; readonly "url_template": string; readonly "is_alphanumeric"?: boolean }; +export type ReposCreateAutolinkRequestBody = { + readonly key_prefix: string; + readonly url_template: string; + readonly is_alphanumeric?: boolean; +}; -export type ReposCreateAutolinkRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposCreateAutolinkRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposGetAutolink200ResponseBody = AutolinkReference; export type ReposGetAutolink404ResponseBody = BasicError; -export type ReposGetAutolinkRequestPath = { readonly "owner": string; readonly "repo": string; readonly "autolink_id": number }; +export type ReposGetAutolinkRequestPath = { + readonly owner: string; + readonly repo: string; + readonly autolink_id: number; +}; export type ReposDeleteAutolink404ResponseBody = BasicError; -export type ReposDeleteAutolinkRequestPath = { readonly "owner": string; readonly "repo": string; readonly "autolink_id": number }; - -export type ReposEnableAutomatedSecurityFixesRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type ReposDisableAutomatedSecurityFixesRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type ProtectedBranchRequiredStatusCheck = { readonly "url"?: string; readonly "enforcement_level"?: string; readonly "contexts": ReadonlyArray; readonly "checks": ReadonlyArray<{ readonly "context": string; readonly "app_id": number | null }>; readonly "contexts_url"?: string; readonly "strict"?: boolean }; - -export type ProtectedBranchAdminEnforced = { readonly "url": string; readonly "enabled": boolean }; - -export type ProtectedBranchPullRequestReview = { readonly "url"?: string; readonly "dismissal_restrictions"?: { readonly "users"?: ReadonlyArray; readonly "teams"?: ReadonlyArray; readonly "apps"?: ReadonlyArray; readonly "url"?: string; readonly "users_url"?: string; readonly "teams_url"?: string }; readonly "bypass_pull_request_allowances"?: { readonly "users"?: ReadonlyArray; readonly "teams"?: ReadonlyArray; readonly "apps"?: ReadonlyArray }; readonly "dismiss_stale_reviews": boolean; readonly "require_code_owner_reviews": boolean; readonly "required_approving_review_count"?: number; readonly "require_last_push_approval"?: boolean }; - -export type BranchRestrictionPolicy = { readonly "url": string; readonly "users_url": string; readonly "teams_url": string; readonly "apps_url": string; readonly "users": ReadonlyArray<{ readonly "login"?: string; readonly "id"?: number; readonly "node_id"?: string; readonly "avatar_url"?: string; readonly "gravatar_id"?: string; readonly "url"?: string; readonly "html_url"?: string; readonly "followers_url"?: string; readonly "following_url"?: string; readonly "gists_url"?: string; readonly "starred_url"?: string; readonly "subscriptions_url"?: string; readonly "organizations_url"?: string; readonly "repos_url"?: string; readonly "events_url"?: string; readonly "received_events_url"?: string; readonly "type"?: string; readonly "site_admin"?: boolean }>; readonly "teams": ReadonlyArray<{ readonly "id"?: number; readonly "node_id"?: string; readonly "url"?: string; readonly "html_url"?: string; readonly "name"?: string; readonly "slug"?: string; readonly "description"?: string | null; readonly "privacy"?: string; readonly "permission"?: string; readonly "members_url"?: string; readonly "repositories_url"?: string; readonly "parent"?: string | null }>; readonly "apps": ReadonlyArray<{ readonly "id"?: number; readonly "slug"?: string; readonly "node_id"?: string; readonly "owner"?: { readonly "login"?: string; readonly "id"?: number; readonly "node_id"?: string; readonly "url"?: string; readonly "repos_url"?: string; readonly "events_url"?: string; readonly "hooks_url"?: string; readonly "issues_url"?: string; readonly "members_url"?: string; readonly "public_members_url"?: string; readonly "avatar_url"?: string; readonly "description"?: string; readonly "gravatar_id"?: string; readonly "html_url"?: string; readonly "followers_url"?: string; readonly "following_url"?: string; readonly "gists_url"?: string; readonly "starred_url"?: string; readonly "subscriptions_url"?: string; readonly "organizations_url"?: string; readonly "received_events_url"?: string; readonly "type"?: string; readonly "site_admin"?: boolean }; readonly "name"?: string; readonly "description"?: string; readonly "external_url"?: string; readonly "html_url"?: string; readonly "created_at"?: string; readonly "updated_at"?: string; readonly "permissions"?: { readonly "metadata"?: string; readonly "contents"?: string; readonly "issues"?: string; readonly "single_file"?: string }; readonly "events"?: ReadonlyArray }> }; - -export type BranchProtection = { readonly "url"?: string; readonly "enabled"?: boolean; readonly "required_status_checks"?: ProtectedBranchRequiredStatusCheck; readonly "enforce_admins"?: ProtectedBranchAdminEnforced; readonly "required_pull_request_reviews"?: ProtectedBranchPullRequestReview; readonly "restrictions"?: BranchRestrictionPolicy; readonly "required_linear_history"?: { readonly "enabled"?: boolean }; readonly "allow_force_pushes"?: { readonly "enabled"?: boolean }; readonly "allow_deletions"?: { readonly "enabled"?: boolean }; readonly "block_creations"?: { readonly "enabled"?: boolean }; readonly "required_conversation_resolution"?: { readonly "enabled"?: boolean }; readonly "name"?: string; readonly "protection_url"?: string; readonly "required_signatures"?: { readonly "url": string; readonly "enabled": boolean }; readonly "lock_branch"?: { readonly "enabled"?: boolean }; readonly "allow_fork_syncing"?: { readonly "enabled"?: boolean } }; - -export type ShortBranch = { readonly "name": string; readonly "commit": { readonly "sha": string; readonly "url": string }; readonly "protected": boolean; readonly "protection"?: BranchProtection; readonly "protection_url"?: string }; +export type ReposDeleteAutolinkRequestPath = { + readonly owner: string; + readonly repo: string; + readonly autolink_id: number; +}; + +export type ReposEnableAutomatedSecurityFixesRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type ReposDisableAutomatedSecurityFixesRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type ProtectedBranchRequiredStatusCheck = { + readonly url?: string; + readonly enforcement_level?: string; + readonly contexts: ReadonlyArray; + readonly checks: ReadonlyArray<{ + readonly context: string; + readonly app_id: number | null; + }>; + readonly contexts_url?: string; + readonly strict?: boolean; +}; + +export type ProtectedBranchAdminEnforced = { + readonly url: string; + readonly enabled: boolean; +}; + +export type ProtectedBranchPullRequestReview = { + readonly url?: string; + readonly dismissal_restrictions?: { + readonly users?: ReadonlyArray; + readonly teams?: ReadonlyArray; + readonly apps?: ReadonlyArray; + readonly url?: string; + readonly users_url?: string; + readonly teams_url?: string; + }; + readonly bypass_pull_request_allowances?: { + readonly users?: ReadonlyArray; + readonly teams?: ReadonlyArray; + readonly apps?: ReadonlyArray; + }; + readonly dismiss_stale_reviews: boolean; + readonly require_code_owner_reviews: boolean; + readonly required_approving_review_count?: number; + readonly require_last_push_approval?: boolean; +}; + +export type BranchRestrictionPolicy = { + readonly url: string; + readonly users_url: string; + readonly teams_url: string; + readonly apps_url: string; + readonly users: ReadonlyArray<{ + readonly login?: string; + readonly id?: number; + readonly node_id?: string; + readonly avatar_url?: string; + readonly gravatar_id?: string; + readonly url?: string; + readonly html_url?: string; + readonly followers_url?: string; + readonly following_url?: string; + readonly gists_url?: string; + readonly starred_url?: string; + readonly subscriptions_url?: string; + readonly organizations_url?: string; + readonly repos_url?: string; + readonly events_url?: string; + readonly received_events_url?: string; + readonly type?: string; + readonly site_admin?: boolean; + }>; + readonly teams: ReadonlyArray<{ + readonly id?: number; + readonly node_id?: string; + readonly url?: string; + readonly html_url?: string; + readonly name?: string; + readonly slug?: string; + readonly description?: string | null; + readonly privacy?: string; + readonly permission?: string; + readonly members_url?: string; + readonly repositories_url?: string; + readonly parent?: string | null; + }>; + readonly apps: ReadonlyArray<{ + readonly id?: number; + readonly slug?: string; + readonly node_id?: string; + readonly owner?: { + readonly login?: string; + readonly id?: number; + readonly node_id?: string; + readonly url?: string; + readonly repos_url?: string; + readonly events_url?: string; + readonly hooks_url?: string; + readonly issues_url?: string; + readonly members_url?: string; + readonly public_members_url?: string; + readonly avatar_url?: string; + readonly description?: string; + readonly gravatar_id?: string; + readonly html_url?: string; + readonly followers_url?: string; + readonly following_url?: string; + readonly gists_url?: string; + readonly starred_url?: string; + readonly subscriptions_url?: string; + readonly organizations_url?: string; + readonly received_events_url?: string; + readonly type?: string; + readonly site_admin?: boolean; + }; + readonly name?: string; + readonly description?: string; + readonly external_url?: string; + readonly html_url?: string; + readonly created_at?: string; + readonly updated_at?: string; + readonly permissions?: { + readonly metadata?: string; + readonly contents?: string; + readonly issues?: string; + readonly single_file?: string; + }; + readonly events?: ReadonlyArray; + }>; +}; + +export type BranchProtection = { + readonly url?: string; + readonly enabled?: boolean; + readonly required_status_checks?: ProtectedBranchRequiredStatusCheck; + readonly enforce_admins?: ProtectedBranchAdminEnforced; + readonly required_pull_request_reviews?: ProtectedBranchPullRequestReview; + readonly restrictions?: BranchRestrictionPolicy; + readonly required_linear_history?: { readonly enabled?: boolean }; + readonly allow_force_pushes?: { readonly enabled?: boolean }; + readonly allow_deletions?: { readonly enabled?: boolean }; + readonly block_creations?: { readonly enabled?: boolean }; + readonly required_conversation_resolution?: { readonly enabled?: boolean }; + readonly name?: string; + readonly protection_url?: string; + readonly required_signatures?: { + readonly url: string; + readonly enabled: boolean; + }; + readonly lock_branch?: { readonly enabled?: boolean }; + readonly allow_fork_syncing?: { readonly enabled?: boolean }; +}; + +export type ShortBranch = { + readonly name: string; + readonly commit: { readonly sha: string; readonly url: string }; + readonly protected: boolean; + readonly protection?: BranchProtection; + readonly protection_url?: string; +}; export type ReposListBranches200ResponseBody = ReadonlyArray; export type ReposListBranches404ResponseBody = BasicError; -export type ReposListBranchesRequestQuery = { readonly "protected"?: boolean; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposListBranchesRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type GitUser = { readonly "name"?: string; readonly "email"?: string; readonly "date"?: string } | null; - -export type Verification = { readonly "verified": boolean; readonly "reason": string; readonly "payload": string | null; readonly "signature": string | null }; - -export type DiffEntry = { readonly "sha": string; readonly "filename": string; readonly "status": "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; readonly "additions": number; readonly "deletions": number; readonly "changes": number; readonly "blob_url": string; readonly "raw_url": string; readonly "contents_url": string; readonly "patch"?: string; readonly "previous_filename"?: string }; - -export type Commit = { readonly "url": string; readonly "sha": string; readonly "node_id": string; readonly "html_url": string; readonly "comments_url": string; readonly "commit": { readonly "url": string; readonly "author": GitUser; readonly "committer": GitUser; readonly "message": string; readonly "comment_count": number; readonly "tree": { readonly "sha": string; readonly "url": string }; readonly "verification"?: Verification }; readonly "author": SimpleUser; readonly "committer": SimpleUser; readonly "parents": ReadonlyArray<{ readonly "sha": string; readonly "url": string; readonly "html_url"?: string }>; readonly "stats"?: { readonly "additions"?: number; readonly "deletions"?: number; readonly "total"?: number }; readonly "files"?: ReadonlyArray }; - -export type BranchWithProtection = { readonly "name": string; readonly "commit": Commit; readonly "_links": { readonly "html": string; readonly "self": string }; readonly "protected": boolean; readonly "protection": BranchProtection; readonly "protection_url": string; readonly "pattern"?: string; readonly "required_approving_review_count"?: number }; +export type ReposListBranchesRequestQuery = { + readonly protected?: boolean; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposListBranchesRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type GitUser = { + readonly name?: string; + readonly email?: string; + readonly date?: string; +} | null; + +export type Verification = { + readonly verified: boolean; + readonly reason: string; + readonly payload: string | null; + readonly signature: string | null; +}; + +export type DiffEntry = { + readonly sha: string; + readonly filename: string; + readonly status: + | 'added' + | 'removed' + | 'modified' + | 'renamed' + | 'copied' + | 'changed' + | 'unchanged'; + readonly additions: number; + readonly deletions: number; + readonly changes: number; + readonly blob_url: string; + readonly raw_url: string; + readonly contents_url: string; + readonly patch?: string; + readonly previous_filename?: string; +}; + +export type Commit = { + readonly url: string; + readonly sha: string; + readonly node_id: string; + readonly html_url: string; + readonly comments_url: string; + readonly commit: { + readonly url: string; + readonly author: GitUser; + readonly committer: GitUser; + readonly message: string; + readonly comment_count: number; + readonly tree: { readonly sha: string; readonly url: string }; + readonly verification?: Verification; + }; + readonly author: SimpleUser; + readonly committer: SimpleUser; + readonly parents: ReadonlyArray<{ + readonly sha: string; + readonly url: string; + readonly html_url?: string; + }>; + readonly stats?: { + readonly additions?: number; + readonly deletions?: number; + readonly total?: number; + }; + readonly files?: ReadonlyArray; +}; + +export type BranchWithProtection = { + readonly name: string; + readonly commit: Commit; + readonly _links: { readonly html: string; readonly self: string }; + readonly protected: boolean; + readonly protection: BranchProtection; + readonly protection_url: string; + readonly pattern?: string; + readonly required_approving_review_count?: number; +}; export type ReposGetBranch200ResponseBody = BranchWithProtection; @@ -2650,17 +7200,70 @@ export type ReposGetBranch301ResponseBody = BasicError; export type ReposGetBranch404ResponseBody = BasicError; -export type ReposGetBranchRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetBranchRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetBranchProtection200ResponseBody = BranchProtection; export type ReposGetBranchProtection404ResponseBody = BasicError; -export type ReposGetBranchProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; - -export type StatusCheckPolicy = { readonly "url": string; readonly "strict": boolean; readonly "contexts": ReadonlyArray; readonly "checks": ReadonlyArray<{ readonly "context": string; readonly "app_id": number | null }>; readonly "contexts_url": string }; - -export type ProtectedBranch = { readonly "url": string; readonly "required_status_checks"?: StatusCheckPolicy; readonly "required_pull_request_reviews"?: { readonly "url": string; readonly "dismiss_stale_reviews"?: boolean; readonly "require_code_owner_reviews"?: boolean; readonly "required_approving_review_count"?: number; readonly "require_last_push_approval"?: boolean; readonly "dismissal_restrictions"?: { readonly "url": string; readonly "users_url": string; readonly "teams_url": string; readonly "users": ReadonlyArray; readonly "teams": ReadonlyArray; readonly "apps"?: ReadonlyArray }; readonly "bypass_pull_request_allowances"?: { readonly "users": ReadonlyArray; readonly "teams": ReadonlyArray; readonly "apps"?: ReadonlyArray } }; readonly "required_signatures"?: { readonly "url": string; readonly "enabled": boolean }; readonly "enforce_admins"?: { readonly "url": string; readonly "enabled": boolean }; readonly "required_linear_history"?: { readonly "enabled": boolean }; readonly "allow_force_pushes"?: { readonly "enabled": boolean }; readonly "allow_deletions"?: { readonly "enabled": boolean }; readonly "restrictions"?: BranchRestrictionPolicy; readonly "required_conversation_resolution"?: { readonly "enabled"?: boolean }; readonly "block_creations"?: { readonly "enabled": boolean }; readonly "lock_branch"?: { readonly "enabled"?: boolean }; readonly "allow_fork_syncing"?: { readonly "enabled"?: boolean } }; +export type ReposGetBranchProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; + +export type StatusCheckPolicy = { + readonly url: string; + readonly strict: boolean; + readonly contexts: ReadonlyArray; + readonly checks: ReadonlyArray<{ + readonly context: string; + readonly app_id: number | null; + }>; + readonly contexts_url: string; +}; + +export type ProtectedBranch = { + readonly url: string; + readonly required_status_checks?: StatusCheckPolicy; + readonly required_pull_request_reviews?: { + readonly url: string; + readonly dismiss_stale_reviews?: boolean; + readonly require_code_owner_reviews?: boolean; + readonly required_approving_review_count?: number; + readonly require_last_push_approval?: boolean; + readonly dismissal_restrictions?: { + readonly url: string; + readonly users_url: string; + readonly teams_url: string; + readonly users: ReadonlyArray; + readonly teams: ReadonlyArray; + readonly apps?: ReadonlyArray; + }; + readonly bypass_pull_request_allowances?: { + readonly users: ReadonlyArray; + readonly teams: ReadonlyArray; + readonly apps?: ReadonlyArray; + }; + }; + readonly required_signatures?: { + readonly url: string; + readonly enabled: boolean; + }; + readonly enforce_admins?: { readonly url: string; readonly enabled: boolean }; + readonly required_linear_history?: { readonly enabled: boolean }; + readonly allow_force_pushes?: { readonly enabled: boolean }; + readonly allow_deletions?: { readonly enabled: boolean }; + readonly restrictions?: BranchRestrictionPolicy; + readonly required_conversation_resolution?: { readonly enabled?: boolean }; + readonly block_creations?: { readonly enabled: boolean }; + readonly lock_branch?: { readonly enabled?: boolean }; + readonly allow_fork_syncing?: { readonly enabled?: boolean }; +}; export type ReposUpdateBranchProtection200ResponseBody = ProtectedBranch; @@ -2670,63 +7273,164 @@ export type ReposUpdateBranchProtection404ResponseBody = BasicError; export type ReposUpdateBranchProtection422ResponseBody = ValidationErrorSimple; -export type ReposUpdateBranchProtectionRequestBody = { readonly "required_status_checks": { readonly "strict": boolean; readonly "contexts": ReadonlyArray; readonly "checks"?: ReadonlyArray<{ readonly "context": string; readonly "app_id"?: number }> } | null; readonly "enforce_admins": boolean | null; readonly "required_pull_request_reviews": { readonly "dismissal_restrictions"?: { readonly "users"?: ReadonlyArray; readonly "teams"?: ReadonlyArray; readonly "apps"?: ReadonlyArray }; readonly "dismiss_stale_reviews"?: boolean; readonly "require_code_owner_reviews"?: boolean; readonly "required_approving_review_count"?: number; readonly "require_last_push_approval"?: boolean; readonly "bypass_pull_request_allowances"?: { readonly "users"?: ReadonlyArray; readonly "teams"?: ReadonlyArray; readonly "apps"?: ReadonlyArray } } | null; readonly "restrictions": { readonly "users": ReadonlyArray; readonly "teams": ReadonlyArray; readonly "apps"?: ReadonlyArray } | null; readonly "required_linear_history"?: boolean; readonly "allow_force_pushes"?: boolean | null; readonly "allow_deletions"?: boolean; readonly "block_creations"?: boolean; readonly "required_conversation_resolution"?: boolean; readonly "lock_branch"?: boolean; readonly "allow_fork_syncing"?: boolean }; - -export type ReposUpdateBranchProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposUpdateBranchProtectionRequestBody = { + readonly required_status_checks: { + readonly strict: boolean; + readonly contexts: ReadonlyArray; + readonly checks?: ReadonlyArray<{ + readonly context: string; + readonly app_id?: number; + }>; + } | null; + readonly enforce_admins: boolean | null; + readonly required_pull_request_reviews: { + readonly dismissal_restrictions?: { + readonly users?: ReadonlyArray; + readonly teams?: ReadonlyArray; + readonly apps?: ReadonlyArray; + }; + readonly dismiss_stale_reviews?: boolean; + readonly require_code_owner_reviews?: boolean; + readonly required_approving_review_count?: number; + readonly require_last_push_approval?: boolean; + readonly bypass_pull_request_allowances?: { + readonly users?: ReadonlyArray; + readonly teams?: ReadonlyArray; + readonly apps?: ReadonlyArray; + }; + } | null; + readonly restrictions: { + readonly users: ReadonlyArray; + readonly teams: ReadonlyArray; + readonly apps?: ReadonlyArray; + } | null; + readonly required_linear_history?: boolean; + readonly allow_force_pushes?: boolean | null; + readonly allow_deletions?: boolean; + readonly block_creations?: boolean; + readonly required_conversation_resolution?: boolean; + readonly lock_branch?: boolean; + readonly allow_fork_syncing?: boolean; +}; + +export type ReposUpdateBranchProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposDeleteBranchProtection403ResponseBody = BasicError; -export type ReposDeleteBranchProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposDeleteBranchProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetAdminBranchProtection200ResponseBody = ProtectedBranchAdminEnforced; -export type ReposGetAdminBranchProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetAdminBranchProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposSetAdminBranchProtection200ResponseBody = ProtectedBranchAdminEnforced; -export type ReposSetAdminBranchProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposSetAdminBranchProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposDeleteAdminBranchProtection404ResponseBody = BasicError; -export type ReposDeleteAdminBranchProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposDeleteAdminBranchProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetPullRequestReviewProtection200ResponseBody = ProtectedBranchPullRequestReview; -export type ReposGetPullRequestReviewProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetPullRequestReviewProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposUpdatePullRequestReviewProtection200ResponseBody = ProtectedBranchPullRequestReview; export type ReposUpdatePullRequestReviewProtection422ResponseBody = ValidationError; -export type ReposUpdatePullRequestReviewProtectionRequestBody = { readonly "dismissal_restrictions"?: { readonly "users"?: ReadonlyArray; readonly "teams"?: ReadonlyArray; readonly "apps"?: ReadonlyArray }; readonly "dismiss_stale_reviews"?: boolean; readonly "require_code_owner_reviews"?: boolean; readonly "required_approving_review_count"?: number; readonly "require_last_push_approval"?: boolean; readonly "bypass_pull_request_allowances"?: { readonly "users"?: ReadonlyArray; readonly "teams"?: ReadonlyArray; readonly "apps"?: ReadonlyArray } }; - -export type ReposUpdatePullRequestReviewProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposUpdatePullRequestReviewProtectionRequestBody = { + readonly dismissal_restrictions?: { + readonly users?: ReadonlyArray; + readonly teams?: ReadonlyArray; + readonly apps?: ReadonlyArray; + }; + readonly dismiss_stale_reviews?: boolean; + readonly require_code_owner_reviews?: boolean; + readonly required_approving_review_count?: number; + readonly require_last_push_approval?: boolean; + readonly bypass_pull_request_allowances?: { + readonly users?: ReadonlyArray; + readonly teams?: ReadonlyArray; + readonly apps?: ReadonlyArray; + }; +}; + +export type ReposUpdatePullRequestReviewProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposDeletePullRequestReviewProtection404ResponseBody = BasicError; -export type ReposDeletePullRequestReviewProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposDeletePullRequestReviewProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetCommitSignatureProtection200ResponseBody = ProtectedBranchAdminEnforced; export type ReposGetCommitSignatureProtection404ResponseBody = BasicError; -export type ReposGetCommitSignatureProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetCommitSignatureProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposCreateCommitSignatureProtection200ResponseBody = ProtectedBranchAdminEnforced; export type ReposCreateCommitSignatureProtection404ResponseBody = BasicError; -export type ReposCreateCommitSignatureProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposCreateCommitSignatureProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposDeleteCommitSignatureProtection404ResponseBody = BasicError; -export type ReposDeleteCommitSignatureProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposDeleteCommitSignatureProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetStatusChecksProtection200ResponseBody = StatusCheckPolicy; export type ReposGetStatusChecksProtection404ResponseBody = BasicError; -export type ReposGetStatusChecksProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetStatusChecksProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposUpdateStatusCheckProtection200ResponseBody = StatusCheckPolicy; @@ -2734,17 +7438,36 @@ export type ReposUpdateStatusCheckProtection404ResponseBody = BasicError; export type ReposUpdateStatusCheckProtection422ResponseBody = ValidationError; -export type ReposUpdateStatusCheckProtectionRequestBody = { readonly "strict"?: boolean; readonly "contexts"?: ReadonlyArray; readonly "checks"?: ReadonlyArray<{ readonly "context": string; readonly "app_id"?: number }> }; - -export type ReposUpdateStatusCheckProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; - -export type ReposRemoveStatusCheckProtectionRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposUpdateStatusCheckProtectionRequestBody = { + readonly strict?: boolean; + readonly contexts?: ReadonlyArray; + readonly checks?: ReadonlyArray<{ + readonly context: string; + readonly app_id?: number; + }>; +}; + +export type ReposUpdateStatusCheckProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; + +export type ReposRemoveStatusCheckProtectionRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetAllStatusCheckContexts200ResponseBody = ReadonlyArray; export type ReposGetAllStatusCheckContexts404ResponseBody = BasicError; -export type ReposGetAllStatusCheckContextsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetAllStatusCheckContextsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposAddStatusCheckContexts200ResponseBody = ReadonlyArray; @@ -2754,9 +7477,15 @@ export type ReposAddStatusCheckContexts404ResponseBody = BasicError; export type ReposAddStatusCheckContexts422ResponseBody = ValidationError; -export type ReposAddStatusCheckContextsRequestBody = { readonly "contexts": ReadonlyArray } | ReadonlyArray; +export type ReposAddStatusCheckContextsRequestBody = + | { readonly contexts: ReadonlyArray } + | ReadonlyArray; -export type ReposAddStatusCheckContextsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposAddStatusCheckContextsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposSetStatusCheckContexts200ResponseBody = ReadonlyArray; @@ -2764,9 +7493,15 @@ export type ReposSetStatusCheckContexts404ResponseBody = BasicError; export type ReposSetStatusCheckContexts422ResponseBody = ValidationError; -export type ReposSetStatusCheckContextsRequestBody = { readonly "contexts": ReadonlyArray } | ReadonlyArray; +export type ReposSetStatusCheckContextsRequestBody = + | { readonly contexts: ReadonlyArray } + | ReadonlyArray; -export type ReposSetStatusCheckContextsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposSetStatusCheckContextsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposRemoveStatusCheckContexts200ResponseBody = ReadonlyArray; @@ -2774,107 +7509,187 @@ export type ReposRemoveStatusCheckContexts404ResponseBody = BasicError; export type ReposRemoveStatusCheckContexts422ResponseBody = ValidationError; -export type ReposRemoveStatusCheckContextsRequestBody = { readonly "contexts": ReadonlyArray } | ReadonlyArray; +export type ReposRemoveStatusCheckContextsRequestBody = + | { readonly contexts: ReadonlyArray } + | ReadonlyArray; -export type ReposRemoveStatusCheckContextsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposRemoveStatusCheckContextsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetAccessRestrictions200ResponseBody = BranchRestrictionPolicy; export type ReposGetAccessRestrictions404ResponseBody = BasicError; -export type ReposGetAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; -export type ReposDeleteAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposDeleteAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetAppsWithAccessToProtectedBranch200ResponseBody = ReadonlyArray; export type ReposGetAppsWithAccessToProtectedBranch404ResponseBody = BasicError; -export type ReposGetAppsWithAccessToProtectedBranchRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetAppsWithAccessToProtectedBranchRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposAddAppAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposAddAppAccessRestrictions422ResponseBody = ValidationError; -export type ReposAddAppAccessRestrictionsRequestBody = { readonly "apps": ReadonlyArray } | ReadonlyArray; +export type ReposAddAppAccessRestrictionsRequestBody = + | { readonly apps: ReadonlyArray } + | ReadonlyArray; -export type ReposAddAppAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposAddAppAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposSetAppAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposSetAppAccessRestrictions422ResponseBody = ValidationError; -export type ReposSetAppAccessRestrictionsRequestBody = { readonly "apps": ReadonlyArray } | ReadonlyArray; +export type ReposSetAppAccessRestrictionsRequestBody = + | { readonly apps: ReadonlyArray } + | ReadonlyArray; -export type ReposSetAppAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposSetAppAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposRemoveAppAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposRemoveAppAccessRestrictions422ResponseBody = ValidationError; -export type ReposRemoveAppAccessRestrictionsRequestBody = { readonly "apps": ReadonlyArray } | ReadonlyArray; +export type ReposRemoveAppAccessRestrictionsRequestBody = + | { readonly apps: ReadonlyArray } + | ReadonlyArray; -export type ReposRemoveAppAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposRemoveAppAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetTeamsWithAccessToProtectedBranch200ResponseBody = ReadonlyArray; export type ReposGetTeamsWithAccessToProtectedBranch404ResponseBody = BasicError; -export type ReposGetTeamsWithAccessToProtectedBranchRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetTeamsWithAccessToProtectedBranchRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposAddTeamAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposAddTeamAccessRestrictions422ResponseBody = ValidationError; -export type ReposAddTeamAccessRestrictionsRequestBody = { readonly "teams": ReadonlyArray } | ReadonlyArray; +export type ReposAddTeamAccessRestrictionsRequestBody = + | { readonly teams: ReadonlyArray } + | ReadonlyArray; -export type ReposAddTeamAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposAddTeamAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposSetTeamAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposSetTeamAccessRestrictions422ResponseBody = ValidationError; -export type ReposSetTeamAccessRestrictionsRequestBody = { readonly "teams": ReadonlyArray } | ReadonlyArray; +export type ReposSetTeamAccessRestrictionsRequestBody = + | { readonly teams: ReadonlyArray } + | ReadonlyArray; -export type ReposSetTeamAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposSetTeamAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposRemoveTeamAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposRemoveTeamAccessRestrictions422ResponseBody = ValidationError; -export type ReposRemoveTeamAccessRestrictionsRequestBody = { readonly "teams": ReadonlyArray } | ReadonlyArray; +export type ReposRemoveTeamAccessRestrictionsRequestBody = + | { readonly teams: ReadonlyArray } + | ReadonlyArray; -export type ReposRemoveTeamAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposRemoveTeamAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposGetUsersWithAccessToProtectedBranch200ResponseBody = ReadonlyArray; export type ReposGetUsersWithAccessToProtectedBranch404ResponseBody = BasicError; -export type ReposGetUsersWithAccessToProtectedBranchRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposGetUsersWithAccessToProtectedBranchRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposAddUserAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposAddUserAccessRestrictions422ResponseBody = ValidationError; -export type ReposAddUserAccessRestrictionsRequestBody = { readonly "users": ReadonlyArray } | ReadonlyArray; +export type ReposAddUserAccessRestrictionsRequestBody = + | { readonly users: ReadonlyArray } + | ReadonlyArray; -export type ReposAddUserAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposAddUserAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposSetUserAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposSetUserAccessRestrictions422ResponseBody = ValidationError; -export type ReposSetUserAccessRestrictionsRequestBody = { readonly "users": ReadonlyArray } | ReadonlyArray; +export type ReposSetUserAccessRestrictionsRequestBody = + | { readonly users: ReadonlyArray } + | ReadonlyArray; -export type ReposSetUserAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposSetUserAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposRemoveUserAccessRestrictions200ResponseBody = ReadonlyArray; export type ReposRemoveUserAccessRestrictions422ResponseBody = ValidationError; -export type ReposRemoveUserAccessRestrictionsRequestBody = { readonly "users": ReadonlyArray } | ReadonlyArray; +export type ReposRemoveUserAccessRestrictionsRequestBody = + | { readonly users: ReadonlyArray } + | ReadonlyArray; -export type ReposRemoveUserAccessRestrictionsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; +export type ReposRemoveUserAccessRestrictionsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; export type ReposRenameBranch201ResponseBody = BranchWithProtection; @@ -2884,35 +7699,191 @@ export type ReposRenameBranch404ResponseBody = BasicError; export type ReposRenameBranch422ResponseBody = ValidationError; -export type ReposRenameBranchRequestBody = { readonly "new_name": string }; - -export type ReposRenameBranchRequestPath = { readonly "owner": string; readonly "repo": string; readonly "branch": string }; - -export type CheckRun = { readonly "id": number; readonly "head_sha": string; readonly "node_id": string; readonly "external_id": string | null; readonly "url": string; readonly "html_url": string | null; readonly "details_url": string | null; readonly "status": "queued" | "in_progress" | "completed"; readonly "conclusion": "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null; readonly "started_at": string | null; readonly "completed_at": string | null; readonly "output": { readonly "title": string | null; readonly "summary": string | null; readonly "text": string | null; readonly "annotations_count": number; readonly "annotations_url": string }; readonly "name": string; readonly "check_suite": { readonly "id": number } | null; readonly "app": GitHubApp; readonly "pull_requests": ReadonlyArray; readonly "deployment"?: Deployment }; +export type ReposRenameBranchRequestBody = { readonly new_name: string }; + +export type ReposRenameBranchRequestPath = { + readonly owner: string; + readonly repo: string; + readonly branch: string; +}; + +export type CheckRun = { + readonly id: number; + readonly head_sha: string; + readonly node_id: string; + readonly external_id: string | null; + readonly url: string; + readonly html_url: string | null; + readonly details_url: string | null; + readonly status: 'queued' | 'in_progress' | 'completed'; + readonly conclusion: + | 'success' + | 'failure' + | 'neutral' + | 'cancelled' + | 'skipped' + | 'timed_out' + | 'action_required' + | null; + readonly started_at: string | null; + readonly completed_at: string | null; + readonly output: { + readonly title: string | null; + readonly summary: string | null; + readonly text: string | null; + readonly annotations_count: number; + readonly annotations_url: string; + }; + readonly name: string; + readonly check_suite: { readonly id: number } | null; + readonly app: GitHubApp; + readonly pull_requests: ReadonlyArray; + readonly deployment?: Deployment; +}; export type ChecksCreate201ResponseBody = CheckRun; -export type ChecksCreateRequestBody = { readonly "name": string; readonly "head_sha": string; readonly "details_url"?: string; readonly "external_id"?: string; readonly "status"?: "queued" | "in_progress" | "completed"; readonly "started_at"?: string; readonly "conclusion"?: "action_required" | "cancelled" | "failure" | "neutral" | "success" | "skipped" | "stale" | "timed_out"; readonly "completed_at"?: string; readonly "output"?: { readonly "title": string; readonly "summary": string; readonly "text"?: string; readonly "annotations"?: ReadonlyArray<{ readonly "path": string; readonly "start_line": number; readonly "end_line": number; readonly "start_column"?: number; readonly "end_column"?: number; readonly "annotation_level": "notice" | "warning" | "failure"; readonly "message": string; readonly "title"?: string; readonly "raw_details"?: string }>; readonly "images"?: ReadonlyArray<{ readonly "alt": string; readonly "image_url": string; readonly "caption"?: string }> }; readonly "actions"?: ReadonlyArray<{ readonly "label": string; readonly "description": string; readonly "identifier": string }> } & ({ readonly "status": "completed" } | { readonly "status"?: "queued" | "in_progress" }); - -export type ChecksCreateRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ChecksCreateRequestBody = { + readonly name: string; + readonly head_sha: string; + readonly details_url?: string; + readonly external_id?: string; + readonly status?: 'queued' | 'in_progress' | 'completed'; + readonly started_at?: string; + readonly conclusion?: + | 'action_required' + | 'cancelled' + | 'failure' + | 'neutral' + | 'success' + | 'skipped' + | 'stale' + | 'timed_out'; + readonly completed_at?: string; + readonly output?: { + readonly title: string; + readonly summary: string; + readonly text?: string; + readonly annotations?: ReadonlyArray<{ + readonly path: string; + readonly start_line: number; + readonly end_line: number; + readonly start_column?: number; + readonly end_column?: number; + readonly annotation_level: 'notice' | 'warning' | 'failure'; + readonly message: string; + readonly title?: string; + readonly raw_details?: string; + }>; + readonly images?: ReadonlyArray<{ + readonly alt: string; + readonly image_url: string; + readonly caption?: string; + }>; + }; + readonly actions?: ReadonlyArray<{ + readonly label: string; + readonly description: string; + readonly identifier: string; + }>; +} & ( + | { readonly status: 'completed' } + | { readonly status?: 'queued' | 'in_progress' } +); + +export type ChecksCreateRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ChecksGet200ResponseBody = CheckRun; -export type ChecksGetRequestPath = { readonly "owner": string; readonly "repo": string; readonly "check_run_id": number }; +export type ChecksGetRequestPath = { + readonly owner: string; + readonly repo: string; + readonly check_run_id: number; +}; export type ChecksUpdate200ResponseBody = CheckRun; -export type ChecksUpdateRequestBody = { readonly "name"?: string; readonly "details_url"?: string; readonly "external_id"?: string; readonly "started_at"?: string; readonly "status"?: "queued" | "in_progress" | "completed"; readonly "conclusion"?: "action_required" | "cancelled" | "failure" | "neutral" | "success" | "skipped" | "stale" | "timed_out"; readonly "completed_at"?: string; readonly "output"?: { readonly "title"?: string; readonly "summary": string; readonly "text"?: string; readonly "annotations"?: ReadonlyArray<{ readonly "path": string; readonly "start_line": number; readonly "end_line": number; readonly "start_column"?: number; readonly "end_column"?: number; readonly "annotation_level": "notice" | "warning" | "failure"; readonly "message": string; readonly "title"?: string; readonly "raw_details"?: string }>; readonly "images"?: ReadonlyArray<{ readonly "alt": string; readonly "image_url": string; readonly "caption"?: string }> }; readonly "actions"?: ReadonlyArray<{ readonly "label": string; readonly "description": string; readonly "identifier": string }> } & ({ readonly "status"?: "completed" } | { readonly "status"?: "queued" | "in_progress" }); - -export type ChecksUpdateRequestPath = { readonly "owner": string; readonly "repo": string; readonly "check_run_id": number }; - -export type CheckAnnotation = { readonly "path": string; readonly "start_line": number; readonly "end_line": number; readonly "start_column": number | null; readonly "end_column": number | null; readonly "annotation_level": string | null; readonly "title": string | null; readonly "message": string | null; readonly "raw_details": string | null; readonly "blob_href": string }; +export type ChecksUpdateRequestBody = { + readonly name?: string; + readonly details_url?: string; + readonly external_id?: string; + readonly started_at?: string; + readonly status?: 'queued' | 'in_progress' | 'completed'; + readonly conclusion?: + | 'action_required' + | 'cancelled' + | 'failure' + | 'neutral' + | 'success' + | 'skipped' + | 'stale' + | 'timed_out'; + readonly completed_at?: string; + readonly output?: { + readonly title?: string; + readonly summary: string; + readonly text?: string; + readonly annotations?: ReadonlyArray<{ + readonly path: string; + readonly start_line: number; + readonly end_line: number; + readonly start_column?: number; + readonly end_column?: number; + readonly annotation_level: 'notice' | 'warning' | 'failure'; + readonly message: string; + readonly title?: string; + readonly raw_details?: string; + }>; + readonly images?: ReadonlyArray<{ + readonly alt: string; + readonly image_url: string; + readonly caption?: string; + }>; + }; + readonly actions?: ReadonlyArray<{ + readonly label: string; + readonly description: string; + readonly identifier: string; + }>; +} & ( + | { readonly status?: 'completed' } + | { readonly status?: 'queued' | 'in_progress' } +); + +export type ChecksUpdateRequestPath = { + readonly owner: string; + readonly repo: string; + readonly check_run_id: number; +}; + +export type CheckAnnotation = { + readonly path: string; + readonly start_line: number; + readonly end_line: number; + readonly start_column: number | null; + readonly end_column: number | null; + readonly annotation_level: string | null; + readonly title: string | null; + readonly message: string | null; + readonly raw_details: string | null; + readonly blob_href: string; +}; export type ChecksListAnnotations200ResponseBody = ReadonlyArray; -export type ChecksListAnnotationsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ChecksListAnnotationsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ChecksListAnnotationsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "check_run_id": number }; +export type ChecksListAnnotationsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly check_run_id: number; +}; export type ChecksRerequestRun201ResponseBody = EmptyObject; @@ -2922,43 +7893,137 @@ export type ChecksRerequestRun404ResponseBody = BasicError; export type ChecksRerequestRun422ResponseBody = BasicError; -export type ChecksRerequestRunRequestPath = { readonly "owner": string; readonly "repo": string; readonly "check_run_id": number }; - -export type CheckSuite = { readonly "id": number; readonly "node_id": string; readonly "head_branch": string | null; readonly "head_sha": string; readonly "status": "queued" | "in_progress" | "completed" | null; readonly "conclusion": "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null; readonly "url": string | null; readonly "before": string | null; readonly "after": string | null; readonly "pull_requests": ReadonlyArray | null; readonly "app": GitHubApp; readonly "repository": MinimalRepository; readonly "created_at": string | null; readonly "updated_at": string | null; readonly "head_commit": SimpleCommit; readonly "latest_check_runs_count": number; readonly "check_runs_url": string; readonly "rerequestable"?: boolean; readonly "runs_rerequestable"?: boolean }; +export type ChecksRerequestRunRequestPath = { + readonly owner: string; + readonly repo: string; + readonly check_run_id: number; +}; + +export type CheckSuite = { + readonly id: number; + readonly node_id: string; + readonly head_branch: string | null; + readonly head_sha: string; + readonly status: 'queued' | 'in_progress' | 'completed' | null; + readonly conclusion: + | 'success' + | 'failure' + | 'neutral' + | 'cancelled' + | 'skipped' + | 'timed_out' + | 'action_required' + | null; + readonly url: string | null; + readonly before: string | null; + readonly after: string | null; + readonly pull_requests: ReadonlyArray | null; + readonly app: GitHubApp; + readonly repository: MinimalRepository; + readonly created_at: string | null; + readonly updated_at: string | null; + readonly head_commit: SimpleCommit; + readonly latest_check_runs_count: number; + readonly check_runs_url: string; + readonly rerequestable?: boolean; + readonly runs_rerequestable?: boolean; +}; export type ChecksCreateSuite200ResponseBody = CheckSuite; export type ChecksCreateSuite201ResponseBody = CheckSuite; -export type ChecksCreateSuiteRequestBody = { readonly "head_sha": string }; +export type ChecksCreateSuiteRequestBody = { readonly head_sha: string }; -export type ChecksCreateSuiteRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ChecksCreateSuiteRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type CheckSuitePreference = { readonly "preferences": { readonly "auto_trigger_checks"?: ReadonlyArray<{ readonly "app_id": number; readonly "setting": boolean }> }; readonly "repository": MinimalRepository }; +export type CheckSuitePreference = { + readonly preferences: { + readonly auto_trigger_checks?: ReadonlyArray<{ + readonly app_id: number; + readonly setting: boolean; + }>; + }; + readonly repository: MinimalRepository; +}; export type ChecksSetSuitesPreferences200ResponseBody = CheckSuitePreference; -export type ChecksSetSuitesPreferencesRequestBody = { readonly "auto_trigger_checks"?: ReadonlyArray<{ readonly "app_id": number; readonly "setting": boolean }> }; +export type ChecksSetSuitesPreferencesRequestBody = { + readonly auto_trigger_checks?: ReadonlyArray<{ + readonly app_id: number; + readonly setting: boolean; + }>; +}; -export type ChecksSetSuitesPreferencesRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ChecksSetSuitesPreferencesRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ChecksGetSuite200ResponseBody = CheckSuite; -export type ChecksGetSuiteRequestPath = { readonly "owner": string; readonly "repo": string; readonly "check_suite_id": number }; - -export type ChecksListForSuite200ResponseBody = { readonly "total_count": number; readonly "check_runs": ReadonlyArray }; - -export type ChecksListForSuiteRequestQuery = { readonly "check_name"?: string; readonly "status"?: "queued" | "in_progress" | "completed"; readonly "filter"?: "latest" | "all"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ChecksListForSuiteRequestPath = { readonly "owner": string; readonly "repo": string; readonly "check_suite_id": number }; +export type ChecksGetSuiteRequestPath = { + readonly owner: string; + readonly repo: string; + readonly check_suite_id: number; +}; + +export type ChecksListForSuite200ResponseBody = { + readonly total_count: number; + readonly check_runs: ReadonlyArray; +}; + +export type ChecksListForSuiteRequestQuery = { + readonly check_name?: string; + readonly status?: 'queued' | 'in_progress' | 'completed'; + readonly filter?: 'latest' | 'all'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ChecksListForSuiteRequestPath = { + readonly owner: string; + readonly repo: string; + readonly check_suite_id: number; +}; export type ChecksRerequestSuite201ResponseBody = EmptyObject; -export type ChecksRerequestSuiteRequestPath = { readonly "owner": string; readonly "repo": string; readonly "check_suite_id": number }; - -export type CodeScanningAlertRuleSummary = { readonly "id"?: string | null; readonly "name"?: string; readonly "tags"?: ReadonlyArray | null; readonly "severity"?: "none" | "note" | "warning" | "error" | null; readonly "description"?: string }; - -export type CodeScanningAlertItems = { readonly "number": AlertNumber; readonly "created_at": AlertCreatedAt; readonly "updated_at"?: AlertUpdatedAt; readonly "url": AlertUrl; readonly "html_url": AlertHtmlUrl; readonly "instances_url": AlertInstancesUrl; readonly "state": CodeScanningAlertState; readonly "fixed_at"?: AlertFixedAt; readonly "dismissed_by": SimpleUser; readonly "dismissed_at": AlertDismissedAt; readonly "dismissed_reason": CodeScanningAlertDismissedReason; readonly "dismissed_comment"?: CodeScanningAlertDismissedComment; readonly "rule": CodeScanningAlertRuleSummary; readonly "tool": CodeScanningAnalysisTool; readonly "most_recent_instance": CodeScanningAlertInstance }; +export type ChecksRerequestSuiteRequestPath = { + readonly owner: string; + readonly repo: string; + readonly check_suite_id: number; +}; + +export type CodeScanningAlertRuleSummary = { + readonly id?: string | null; + readonly name?: string; + readonly tags?: ReadonlyArray | null; + readonly severity?: 'none' | 'note' | 'warning' | 'error' | null; + readonly description?: string; +}; + +export type CodeScanningAlertItems = { + readonly number: AlertNumber; + readonly created_at: AlertCreatedAt; + readonly updated_at?: AlertUpdatedAt; + readonly url: AlertUrl; + readonly html_url: AlertHtmlUrl; + readonly instances_url: AlertInstancesUrl; + readonly state: CodeScanningAlertState; + readonly fixed_at?: AlertFixedAt; + readonly dismissed_by: SimpleUser; + readonly dismissed_at: AlertDismissedAt; + readonly dismissed_reason: CodeScanningAlertDismissedReason; + readonly dismissed_comment?: CodeScanningAlertDismissedComment; + readonly rule: CodeScanningAlertRuleSummary; + readonly tool: CodeScanningAnalysisTool; + readonly most_recent_instance: CodeScanningAlertInstance; +}; export type CodeScanningListAlertsForRepo200ResponseBody = ReadonlyArray; @@ -2966,13 +8031,45 @@ export type CodeScanningListAlertsForRepo403ResponseBody = BasicError; export type CodeScanningListAlertsForRepo404ResponseBody = BasicError; -export type CodeScanningListAlertsForRepo503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type CodeScanningListAlertsForRepoRequestQuery = { readonly "tool_name"?: CodeScanningAnalysisToolName; readonly "tool_guid"?: CodeScanningAnalysisToolGuid; readonly "page"?: number; readonly "per_page"?: number; readonly "ref"?: CodeScanningRef; readonly "direction"?: "asc" | "desc"; readonly "sort"?: "created" | "updated"; readonly "state"?: CodeScanningAlertState }; - -export type CodeScanningListAlertsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type CodeScanningAlert = { readonly "number": AlertNumber; readonly "created_at": AlertCreatedAt; readonly "updated_at"?: AlertUpdatedAt; readonly "url": AlertUrl; readonly "html_url": AlertHtmlUrl; readonly "instances_url": AlertInstancesUrl; readonly "state": CodeScanningAlertState; readonly "fixed_at"?: AlertFixedAt; readonly "dismissed_by": SimpleUser; readonly "dismissed_at": AlertDismissedAt; readonly "dismissed_reason": CodeScanningAlertDismissedReason; readonly "dismissed_comment"?: CodeScanningAlertDismissedComment; readonly "rule": CodeScanningAlertRule; readonly "tool": CodeScanningAnalysisTool; readonly "most_recent_instance": CodeScanningAlertInstance }; +export type CodeScanningListAlertsForRepo503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type CodeScanningListAlertsForRepoRequestQuery = { + readonly tool_name?: CodeScanningAnalysisToolName; + readonly tool_guid?: CodeScanningAnalysisToolGuid; + readonly page?: number; + readonly per_page?: number; + readonly ref?: CodeScanningRef; + readonly direction?: 'asc' | 'desc'; + readonly sort?: 'created' | 'updated'; + readonly state?: CodeScanningAlertState; +}; + +export type CodeScanningListAlertsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type CodeScanningAlert = { + readonly number: AlertNumber; + readonly created_at: AlertCreatedAt; + readonly updated_at?: AlertUpdatedAt; + readonly url: AlertUrl; + readonly html_url: AlertHtmlUrl; + readonly instances_url: AlertInstancesUrl; + readonly state: CodeScanningAlertState; + readonly fixed_at?: AlertFixedAt; + readonly dismissed_by: SimpleUser; + readonly dismissed_at: AlertDismissedAt; + readonly dismissed_reason: CodeScanningAlertDismissedReason; + readonly dismissed_comment?: CodeScanningAlertDismissedComment; + readonly rule: CodeScanningAlertRule; + readonly tool: CodeScanningAnalysisTool; + readonly most_recent_instance: CodeScanningAlertInstance; +}; export type CodeScanningGetAlert200ResponseBody = CodeScanningAlert; @@ -2980,9 +8077,17 @@ export type CodeScanningGetAlert403ResponseBody = BasicError; export type CodeScanningGetAlert404ResponseBody = BasicError; -export type CodeScanningGetAlert503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; +export type CodeScanningGetAlert503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; -export type CodeScanningGetAlertRequestPath = { readonly "owner": string; readonly "repo": string; readonly "alert_number": AlertNumber }; +export type CodeScanningGetAlertRequestPath = { + readonly owner: string; + readonly repo: string; + readonly alert_number: AlertNumber; +}; export type CodeScanningUpdateAlert200ResponseBody = CodeScanningAlert; @@ -2990,13 +8095,25 @@ export type CodeScanningUpdateAlert403ResponseBody = BasicError; export type CodeScanningUpdateAlert404ResponseBody = BasicError; -export type CodeScanningUpdateAlert503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; +export type CodeScanningUpdateAlert503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; -export type CodeScanningAlertSetState = "open" | "dismissed"; +export type CodeScanningAlertSetState = 'open' | 'dismissed'; -export type CodeScanningUpdateAlertRequestBody = { readonly "state": CodeScanningAlertSetState; readonly "dismissed_reason"?: CodeScanningAlertDismissedReason; readonly "dismissed_comment"?: CodeScanningAlertDismissedComment }; +export type CodeScanningUpdateAlertRequestBody = { + readonly state: CodeScanningAlertSetState; + readonly dismissed_reason?: CodeScanningAlertDismissedReason; + readonly dismissed_comment?: CodeScanningAlertDismissedComment; +}; -export type CodeScanningUpdateAlertRequestPath = { readonly "owner": string; readonly "repo": string; readonly "alert_number": AlertNumber }; +export type CodeScanningUpdateAlertRequestPath = { + readonly owner: string; + readonly repo: string; + readonly alert_number: AlertNumber; +}; export type CodeScanningListAlertInstances200ResponseBody = ReadonlyArray; @@ -3004,11 +8121,23 @@ export type CodeScanningListAlertInstances403ResponseBody = BasicError; export type CodeScanningListAlertInstances404ResponseBody = BasicError; -export type CodeScanningListAlertInstances503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; +export type CodeScanningListAlertInstances503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; -export type CodeScanningListAlertInstancesRequestQuery = { readonly "page"?: number; readonly "per_page"?: number; readonly "ref"?: CodeScanningRef }; +export type CodeScanningListAlertInstancesRequestQuery = { + readonly page?: number; + readonly per_page?: number; + readonly ref?: CodeScanningRef; +}; -export type CodeScanningListAlertInstancesRequestPath = { readonly "owner": string; readonly "repo": string; readonly "alert_number": AlertNumber }; +export type CodeScanningListAlertInstancesRequestPath = { + readonly owner: string; + readonly repo: string; + readonly alert_number: AlertNumber; +}; export type CodeScanningAnalysisCommitSha = string; @@ -3020,7 +8149,23 @@ export type CodeScanningAnalysisUrl = string; export type CodeScanningAnalysisSarifId = string; -export type CodeScanningAnalysis = { readonly "ref": CodeScanningRef; readonly "commit_sha": CodeScanningAnalysisCommitSha; readonly "analysis_key": CodeScanningAnalysisAnalysisKey; readonly "environment": CodeScanningAnalysisEnvironment; readonly "category"?: CodeScanningAnalysisCategory; readonly "error": string; readonly "created_at": CodeScanningAnalysisCreatedAt; readonly "results_count": number; readonly "rules_count": number; readonly "id": number; readonly "url": CodeScanningAnalysisUrl; readonly "sarif_id": CodeScanningAnalysisSarifId; readonly "tool": CodeScanningAnalysisTool; readonly "deletable": boolean; readonly "warning": string }; +export type CodeScanningAnalysis = { + readonly ref: CodeScanningRef; + readonly commit_sha: CodeScanningAnalysisCommitSha; + readonly analysis_key: CodeScanningAnalysisAnalysisKey; + readonly environment: CodeScanningAnalysisEnvironment; + readonly category?: CodeScanningAnalysisCategory; + readonly error: string; + readonly created_at: CodeScanningAnalysisCreatedAt; + readonly results_count: number; + readonly rules_count: number; + readonly id: number; + readonly url: CodeScanningAnalysisUrl; + readonly sarif_id: CodeScanningAnalysisSarifId; + readonly tool: CodeScanningAnalysisTool; + readonly deletable: boolean; + readonly warning: string; +}; export type CodeScanningListRecentAnalyses200ResponseBody = ReadonlyArray; @@ -3028,11 +8173,27 @@ export type CodeScanningListRecentAnalyses403ResponseBody = BasicError; export type CodeScanningListRecentAnalyses404ResponseBody = BasicError; -export type CodeScanningListRecentAnalyses503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type CodeScanningListRecentAnalysesRequestQuery = { readonly "tool_name"?: CodeScanningAnalysisToolName; readonly "tool_guid"?: CodeScanningAnalysisToolGuid; readonly "page"?: number; readonly "per_page"?: number; readonly "ref"?: CodeScanningRef; readonly "sarif_id"?: CodeScanningAnalysisSarifId; readonly "direction"?: "asc" | "desc"; readonly "sort"?: "created" }; - -export type CodeScanningListRecentAnalysesRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodeScanningListRecentAnalyses503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type CodeScanningListRecentAnalysesRequestQuery = { + readonly tool_name?: CodeScanningAnalysisToolName; + readonly tool_guid?: CodeScanningAnalysisToolGuid; + readonly page?: number; + readonly per_page?: number; + readonly ref?: CodeScanningRef; + readonly sarif_id?: CodeScanningAnalysisSarifId; + readonly direction?: 'asc' | 'desc'; + readonly sort?: 'created'; +}; + +export type CodeScanningListRecentAnalysesRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type CodeScanningGetAnalysis200ResponseBody = CodeScanningAnalysis; @@ -3040,11 +8201,22 @@ export type CodeScanningGetAnalysis403ResponseBody = BasicError; export type CodeScanningGetAnalysis404ResponseBody = BasicError; -export type CodeScanningGetAnalysis503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; +export type CodeScanningGetAnalysis503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; -export type CodeScanningGetAnalysisRequestPath = { readonly "owner": string; readonly "repo": string; readonly "analysis_id": number }; +export type CodeScanningGetAnalysisRequestPath = { + readonly owner: string; + readonly repo: string; + readonly analysis_id: number; +}; -export type AnalysisDeletion = { readonly "next_analysis_url": string | null; readonly "confirm_delete_url": string | null }; +export type AnalysisDeletion = { + readonly next_analysis_url: string | null; + readonly confirm_delete_url: string | null; +}; export type CodeScanningDeleteAnalysis200ResponseBody = AnalysisDeletion; @@ -3054,13 +8226,33 @@ export type CodeScanningDeleteAnalysis403ResponseBody = BasicError; export type CodeScanningDeleteAnalysis404ResponseBody = BasicError; -export type CodeScanningDeleteAnalysis503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type CodeScanningDeleteAnalysisRequestQuery = { readonly "confirm_delete"?: string | null }; - -export type CodeScanningDeleteAnalysisRequestPath = { readonly "owner": string; readonly "repo": string; readonly "analysis_id": number }; - -export type CodeQlDatabase = { readonly "id": number; readonly "name": string; readonly "language": string; readonly "uploader": SimpleUser; readonly "content_type": string; readonly "size": number; readonly "created_at": string; readonly "updated_at": string; readonly "url": string }; +export type CodeScanningDeleteAnalysis503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type CodeScanningDeleteAnalysisRequestQuery = { + readonly confirm_delete?: string | null; +}; + +export type CodeScanningDeleteAnalysisRequestPath = { + readonly owner: string; + readonly repo: string; + readonly analysis_id: number; +}; + +export type CodeQlDatabase = { + readonly id: number; + readonly name: string; + readonly language: string; + readonly uploader: SimpleUser; + readonly content_type: string; + readonly size: number; + readonly created_at: string; + readonly updated_at: string; + readonly url: string; +}; export type CodeScanningListCodeqlDatabases200ResponseBody = ReadonlyArray; @@ -3068,9 +8260,16 @@ export type CodeScanningListCodeqlDatabases403ResponseBody = BasicError; export type CodeScanningListCodeqlDatabases404ResponseBody = BasicError; -export type CodeScanningListCodeqlDatabases503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; +export type CodeScanningListCodeqlDatabases503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; -export type CodeScanningListCodeqlDatabasesRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodeScanningListCodeqlDatabasesRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type CodeScanningGetCodeqlDatabase200ResponseBody = CodeQlDatabase; @@ -3078,11 +8277,22 @@ export type CodeScanningGetCodeqlDatabase403ResponseBody = BasicError; export type CodeScanningGetCodeqlDatabase404ResponseBody = BasicError; -export type CodeScanningGetCodeqlDatabase503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; +export type CodeScanningGetCodeqlDatabase503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; -export type CodeScanningGetCodeqlDatabaseRequestPath = { readonly "owner": string; readonly "repo": string; readonly "language": string }; +export type CodeScanningGetCodeqlDatabaseRequestPath = { + readonly owner: string; + readonly repo: string; + readonly language: string; +}; -export type CodeScanningSarifsReceipt = { readonly "id"?: CodeScanningAnalysisSarifId; readonly "url"?: string }; +export type CodeScanningSarifsReceipt = { + readonly id?: CodeScanningAnalysisSarifId; + readonly url?: string; +}; export type CodeScanningUploadSarif202ResponseBody = CodeScanningSarifsReceipt; @@ -3090,33 +8300,76 @@ export type CodeScanningUploadSarif403ResponseBody = BasicError; export type CodeScanningUploadSarif404ResponseBody = BasicError; -export type CodeScanningUploadSarif503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; +export type CodeScanningUploadSarif503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; export type CodeScanningAnalysisSarifFile = string; -export type CodeScanningUploadSarifRequestBody = { readonly "commit_sha": CodeScanningAnalysisCommitSha; readonly "ref": CodeScanningRef; readonly "sarif": CodeScanningAnalysisSarifFile; readonly "checkout_uri"?: string; readonly "started_at"?: string; readonly "tool_name"?: string; readonly "validate"?: boolean }; - -export type CodeScanningUploadSarifRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type CodeScanningSarifsStatus = { readonly "processing_status"?: "pending" | "complete" | "failed"; readonly "analyses_url"?: string | null; readonly "errors"?: ReadonlyArray | null }; +export type CodeScanningUploadSarifRequestBody = { + readonly commit_sha: CodeScanningAnalysisCommitSha; + readonly ref: CodeScanningRef; + readonly sarif: CodeScanningAnalysisSarifFile; + readonly checkout_uri?: string; + readonly started_at?: string; + readonly tool_name?: string; + readonly validate?: boolean; +}; + +export type CodeScanningUploadSarifRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type CodeScanningSarifsStatus = { + readonly processing_status?: 'pending' | 'complete' | 'failed'; + readonly analyses_url?: string | null; + readonly errors?: ReadonlyArray | null; +}; export type CodeScanningGetSarif200ResponseBody = CodeScanningSarifsStatus; export type CodeScanningGetSarif403ResponseBody = BasicError; -export type CodeScanningGetSarif503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type CodeScanningGetSarifRequestPath = { readonly "owner": string; readonly "repo": string; readonly "sarif_id": string }; - -export type CodeownersErrors = { readonly "errors": ReadonlyArray<{ readonly "line": number; readonly "column": number; readonly "source"?: string; readonly "kind": string; readonly "suggestion"?: string | null; readonly "message": string; readonly "path": string }> }; +export type CodeScanningGetSarif503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type CodeScanningGetSarifRequestPath = { + readonly owner: string; + readonly repo: string; + readonly sarif_id: string; +}; + +export type CodeownersErrors = { + readonly errors: ReadonlyArray<{ + readonly line: number; + readonly column: number; + readonly source?: string; + readonly kind: string; + readonly suggestion?: string | null; + readonly message: string; + readonly path: string; + }>; +}; export type ReposCodeownersErrors200ResponseBody = CodeownersErrors; -export type ReposCodeownersErrorsRequestQuery = { readonly "ref"?: string }; +export type ReposCodeownersErrorsRequestQuery = { readonly ref?: string }; -export type ReposCodeownersErrorsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposCodeownersErrorsRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type CodespacesListInRepositoryForAuthenticatedUser200ResponseBody = { readonly "total_count": number; readonly "codespaces": ReadonlyArray }; +export type CodespacesListInRepositoryForAuthenticatedUser200ResponseBody = { + readonly total_count: number; + readonly codespaces: ReadonlyArray; +}; export type CodespacesListInRepositoryForAuthenticatedUser401ResponseBody = BasicError; @@ -3126,9 +8379,15 @@ export type CodespacesListInRepositoryForAuthenticatedUser404ResponseBody = Basi export type CodespacesListInRepositoryForAuthenticatedUser500ResponseBody = BasicError; -export type CodespacesListInRepositoryForAuthenticatedUserRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type CodespacesListInRepositoryForAuthenticatedUserRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type CodespacesListInRepositoryForAuthenticatedUserRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodespacesListInRepositoryForAuthenticatedUserRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type CodespacesCreateWithRepoForAuthenticatedUser201ResponseBody = Codespace; @@ -3142,13 +8401,37 @@ export type CodespacesCreateWithRepoForAuthenticatedUser403ResponseBody = BasicE export type CodespacesCreateWithRepoForAuthenticatedUser404ResponseBody = BasicError; -export type CodespacesCreateWithRepoForAuthenticatedUser503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type CodespacesCreateWithRepoForAuthenticatedUserRequestBody = { readonly "ref"?: string; readonly "location"?: string; readonly "client_ip"?: string; readonly "machine"?: string; readonly "devcontainer_path"?: string; readonly "multi_repo_permissions_opt_out"?: boolean; readonly "working_directory"?: string; readonly "idle_timeout_minutes"?: number; readonly "display_name"?: string; readonly "retention_period_minutes"?: number } | null; - -export type CodespacesCreateWithRepoForAuthenticatedUserRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser200ResponseBody = { readonly "total_count": number; readonly "devcontainers": ReadonlyArray<{ readonly "path": string; readonly "name"?: string }> }; +export type CodespacesCreateWithRepoForAuthenticatedUser503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type CodespacesCreateWithRepoForAuthenticatedUserRequestBody = { + readonly ref?: string; + readonly location?: string; + readonly client_ip?: string; + readonly machine?: string; + readonly devcontainer_path?: string; + readonly multi_repo_permissions_opt_out?: boolean; + readonly working_directory?: string; + readonly idle_timeout_minutes?: number; + readonly display_name?: string; + readonly retention_period_minutes?: number; +} | null; + +export type CodespacesCreateWithRepoForAuthenticatedUserRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser200ResponseBody = { + readonly total_count: number; + readonly devcontainers: ReadonlyArray<{ + readonly path: string; + readonly name?: string; + }>; +}; export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser400ResponseBody = BasicError; @@ -3160,11 +8443,20 @@ export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser404Respon export type CodespacesListDevcontainersInRepositoryForAuthenticatedUser500ResponseBody = BasicError; -export type CodespacesListDevcontainersInRepositoryForAuthenticatedUserRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type CodespacesListDevcontainersInRepositoryForAuthenticatedUserRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type CodespacesListDevcontainersInRepositoryForAuthenticatedUserRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodespacesListDevcontainersInRepositoryForAuthenticatedUserRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type CodespacesRepoMachinesForAuthenticatedUser200ResponseBody = { readonly "total_count": number; readonly "machines": ReadonlyArray }; +export type CodespacesRepoMachinesForAuthenticatedUser200ResponseBody = { + readonly total_count: number; + readonly machines: ReadonlyArray; +}; export type CodespacesRepoMachinesForAuthenticatedUser401ResponseBody = BasicError; @@ -3174,11 +8466,23 @@ export type CodespacesRepoMachinesForAuthenticatedUser404ResponseBody = BasicErr export type CodespacesRepoMachinesForAuthenticatedUser500ResponseBody = BasicError; -export type CodespacesRepoMachinesForAuthenticatedUserRequestQuery = { readonly "location"?: string; readonly "client_ip"?: string }; +export type CodespacesRepoMachinesForAuthenticatedUserRequestQuery = { + readonly location?: string; + readonly client_ip?: string; +}; -export type CodespacesRepoMachinesForAuthenticatedUserRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodespacesRepoMachinesForAuthenticatedUserRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type CodespacesPreFlightWithRepoForAuthenticatedUser200ResponseBody = { readonly "billable_owner"?: SimpleUser; readonly "defaults"?: { readonly "location": string; readonly "devcontainer_path": string | null } }; +export type CodespacesPreFlightWithRepoForAuthenticatedUser200ResponseBody = { + readonly billable_owner?: SimpleUser; + readonly defaults?: { + readonly location: string; + readonly devcontainer_path: string | null; + }; +}; export type CodespacesPreFlightWithRepoForAuthenticatedUser401ResponseBody = BasicError; @@ -3186,45 +8490,130 @@ export type CodespacesPreFlightWithRepoForAuthenticatedUser403ResponseBody = Bas export type CodespacesPreFlightWithRepoForAuthenticatedUser404ResponseBody = BasicError; -export type CodespacesPreFlightWithRepoForAuthenticatedUserRequestQuery = { readonly "ref"?: string; readonly "client_ip"?: string }; +export type CodespacesPreFlightWithRepoForAuthenticatedUserRequestQuery = { + readonly ref?: string; + readonly client_ip?: string; +}; -export type CodespacesPreFlightWithRepoForAuthenticatedUserRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodespacesPreFlightWithRepoForAuthenticatedUserRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type CodespacesListRepoSecrets200ResponseBody = { readonly "total_count": number; readonly "secrets": ReadonlyArray }; +export type CodespacesListRepoSecrets200ResponseBody = { + readonly total_count: number; + readonly secrets: ReadonlyArray; +}; -export type CodespacesListRepoSecretsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type CodespacesListRepoSecretsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type CodespacesListRepoSecretsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodespacesListRepoSecretsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type CodespacesGetRepoPublicKey200ResponseBody = CodespacesPublicKey; -export type CodespacesGetRepoPublicKeyRequestPath = { readonly "owner": string; readonly "repo": string }; +export type CodespacesGetRepoPublicKeyRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type CodespacesGetRepoSecret200ResponseBody = CodespacesSecret; -export type CodespacesGetRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; +export type CodespacesGetRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; export type CodespacesCreateOrUpdateRepoSecret201ResponseBody = EmptyObject; -export type CodespacesCreateOrUpdateRepoSecretRequestBody = { readonly "encrypted_value"?: string; readonly "key_id"?: string }; - -export type CodespacesCreateOrUpdateRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; - -export type CodespacesDeleteRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; - -export type Collaborator = { readonly "login": string; readonly "id": number; readonly "email"?: string | null; readonly "name"?: string | null; readonly "node_id": string; readonly "avatar_url": string; readonly "gravatar_id": string | null; readonly "url": string; readonly "html_url": string; readonly "followers_url": string; readonly "following_url": string; readonly "gists_url": string; readonly "starred_url": string; readonly "subscriptions_url": string; readonly "organizations_url": string; readonly "repos_url": string; readonly "events_url": string; readonly "received_events_url": string; readonly "type": string; readonly "site_admin": boolean; readonly "permissions"?: { readonly "pull": boolean; readonly "triage"?: boolean; readonly "push": boolean; readonly "maintain"?: boolean; readonly "admin": boolean }; readonly "role_name": string }; +export type CodespacesCreateOrUpdateRepoSecretRequestBody = { + readonly encrypted_value?: string; + readonly key_id?: string; +}; + +export type CodespacesCreateOrUpdateRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; + +export type CodespacesDeleteRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; + +export type Collaborator = { + readonly login: string; + readonly id: number; + readonly email?: string | null; + readonly name?: string | null; + readonly node_id: string; + readonly avatar_url: string; + readonly gravatar_id: string | null; + readonly url: string; + readonly html_url: string; + readonly followers_url: string; + readonly following_url: string; + readonly gists_url: string; + readonly starred_url: string; + readonly subscriptions_url: string; + readonly organizations_url: string; + readonly repos_url: string; + readonly events_url: string; + readonly received_events_url: string; + readonly type: string; + readonly site_admin: boolean; + readonly permissions?: { + readonly pull: boolean; + readonly triage?: boolean; + readonly push: boolean; + readonly maintain?: boolean; + readonly admin: boolean; + }; + readonly role_name: string; +}; export type ReposListCollaborators200ResponseBody = ReadonlyArray; export type ReposListCollaborators404ResponseBody = BasicError; -export type ReposListCollaboratorsRequestQuery = { readonly "affiliation"?: "outside" | "direct" | "all"; readonly "permission"?: "pull" | "triage" | "push" | "maintain" | "admin"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposListCollaboratorsRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type ReposCheckCollaboratorRequestPath = { readonly "owner": string; readonly "repo": string; readonly "username": string }; - -export type RepositoryInvitation = { readonly "id": number; readonly "repository": MinimalRepository; readonly "invitee": SimpleUser; readonly "inviter": SimpleUser; readonly "permissions": "read" | "write" | "admin" | "triage" | "maintain"; readonly "created_at": string; readonly "expired"?: boolean; readonly "url": string; readonly "html_url": string; readonly "node_id": string }; +export type ReposListCollaboratorsRequestQuery = { + readonly affiliation?: 'outside' | 'direct' | 'all'; + readonly permission?: 'pull' | 'triage' | 'push' | 'maintain' | 'admin'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposListCollaboratorsRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type ReposCheckCollaboratorRequestPath = { + readonly owner: string; + readonly repo: string; + readonly username: string; +}; + +export type RepositoryInvitation = { + readonly id: number; + readonly repository: MinimalRepository; + readonly invitee: SimpleUser; + readonly inviter: SimpleUser; + readonly permissions: 'read' | 'write' | 'admin' | 'triage' | 'maintain'; + readonly created_at: string; + readonly expired?: boolean; + readonly url: string; + readonly html_url: string; + readonly node_id: string; +}; export type ReposAddCollaborator201ResponseBody = RepositoryInvitation; @@ -3232,53 +8621,118 @@ export type ReposAddCollaborator403ResponseBody = BasicError; export type ReposAddCollaborator422ResponseBody = ValidationError; -export type ReposAddCollaboratorRequestBody = { readonly "permission"?: string }; +export type ReposAddCollaboratorRequestBody = { readonly permission?: string }; -export type ReposAddCollaboratorRequestPath = { readonly "owner": string; readonly "repo": string; readonly "username": string }; +export type ReposAddCollaboratorRequestPath = { + readonly owner: string; + readonly repo: string; + readonly username: string; +}; -export type ReposRemoveCollaboratorRequestPath = { readonly "owner": string; readonly "repo": string; readonly "username": string }; +export type ReposRemoveCollaboratorRequestPath = { + readonly owner: string; + readonly repo: string; + readonly username: string; +}; -export type RepositoryCollaboratorPermission = { readonly "permission": string; readonly "role_name": string; readonly "user": Collaborator }; +export type RepositoryCollaboratorPermission = { + readonly permission: string; + readonly role_name: string; + readonly user: Collaborator; +}; export type ReposGetCollaboratorPermissionLevel200ResponseBody = RepositoryCollaboratorPermission; export type ReposGetCollaboratorPermissionLevel404ResponseBody = BasicError; -export type ReposGetCollaboratorPermissionLevelRequestPath = { readonly "owner": string; readonly "repo": string; readonly "username": string }; - -export type CommitComment = { readonly "html_url": string; readonly "url": string; readonly "id": number; readonly "node_id": string; readonly "body": string; readonly "path": string | null; readonly "position": number | null; readonly "line": number | null; readonly "commit_id": string; readonly "user": SimpleUser; readonly "created_at": string; readonly "updated_at": string; readonly "author_association": AuthorAssociation; readonly "reactions"?: ReactionRollup }; +export type ReposGetCollaboratorPermissionLevelRequestPath = { + readonly owner: string; + readonly repo: string; + readonly username: string; +}; + +export type CommitComment = { + readonly html_url: string; + readonly url: string; + readonly id: number; + readonly node_id: string; + readonly body: string; + readonly path: string | null; + readonly position: number | null; + readonly line: number | null; + readonly commit_id: string; + readonly user: SimpleUser; + readonly created_at: string; + readonly updated_at: string; + readonly author_association: AuthorAssociation; + readonly reactions?: ReactionRollup; +}; export type ReposListCommitCommentsForRepo200ResponseBody = ReadonlyArray; -export type ReposListCommitCommentsForRepoRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListCommitCommentsForRepoRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListCommitCommentsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposListCommitCommentsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposGetCommitComment200ResponseBody = CommitComment; export type ReposGetCommitComment404ResponseBody = BasicError; -export type ReposGetCommitCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type ReposGetCommitCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; export type ReposUpdateCommitComment200ResponseBody = CommitComment; export type ReposUpdateCommitComment404ResponseBody = BasicError; -export type ReposUpdateCommitCommentRequestBody = { readonly "body": string }; +export type ReposUpdateCommitCommentRequestBody = { readonly body: string }; -export type ReposUpdateCommitCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type ReposUpdateCommitCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; export type ReposDeleteCommitComment404ResponseBody = BasicError; -export type ReposDeleteCommitCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type ReposDeleteCommitCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; export type ReactionsListForCommitComment200ResponseBody = ReadonlyArray; export type ReactionsListForCommitComment404ResponseBody = BasicError; -export type ReactionsListForCommitCommentRequestQuery = { readonly "content"?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReactionsListForCommitCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type ReactionsListForCommitCommentRequestQuery = { + readonly content?: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReactionsListForCommitCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; export type ReactionsCreateForCommitComment200ResponseBody = Reaction; @@ -3286,11 +8740,30 @@ export type ReactionsCreateForCommitComment201ResponseBody = Reaction; export type ReactionsCreateForCommitComment422ResponseBody = ValidationError; -export type ReactionsCreateForCommitCommentRequestBody = { readonly "content": "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes" }; - -export type ReactionsCreateForCommitCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; - -export type ReactionsDeleteForCommitCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number; readonly "reaction_id": number }; +export type ReactionsCreateForCommitCommentRequestBody = { + readonly content: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; +}; + +export type ReactionsCreateForCommitCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; + +export type ReactionsDeleteForCommitCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; + readonly reaction_id: number; +}; export type ReposListCommits200ResponseBody = ReadonlyArray; @@ -3302,23 +8775,49 @@ export type ReposListCommits409ResponseBody = BasicError; export type ReposListCommits500ResponseBody = BasicError; -export type ReposListCommitsRequestQuery = { readonly "sha"?: string; readonly "path"?: string; readonly "author"?: string; readonly "since"?: string; readonly "until"?: string; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposListCommitsRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type BranchShort = { readonly "name": string; readonly "commit": { readonly "sha": string; readonly "url": string }; readonly "protected": boolean }; +export type ReposListCommitsRequestQuery = { + readonly sha?: string; + readonly path?: string; + readonly author?: string; + readonly since?: string; + readonly until?: string; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposListCommitsRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type BranchShort = { + readonly name: string; + readonly commit: { readonly sha: string; readonly url: string }; + readonly protected: boolean; +}; export type ReposListBranchesForHeadCommit200ResponseBody = ReadonlyArray; export type ReposListBranchesForHeadCommit422ResponseBody = ValidationError; -export type ReposListBranchesForHeadCommitRequestPath = { readonly "owner": string; readonly "repo": string; readonly "commit_sha": string }; +export type ReposListBranchesForHeadCommitRequestPath = { + readonly owner: string; + readonly repo: string; + readonly commit_sha: string; +}; export type ReposListCommentsForCommit200ResponseBody = ReadonlyArray; -export type ReposListCommentsForCommitRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListCommentsForCommitRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListCommentsForCommitRequestPath = { readonly "owner": string; readonly "repo": string; readonly "commit_sha": string }; +export type ReposListCommentsForCommitRequestPath = { + readonly owner: string; + readonly repo: string; + readonly commit_sha: string; +}; export type ReposCreateCommitComment201ResponseBody = CommitComment; @@ -3326,21 +8825,108 @@ export type ReposCreateCommitComment403ResponseBody = BasicError; export type ReposCreateCommitComment422ResponseBody = ValidationError; -export type ReposCreateCommitCommentRequestBody = { readonly "body": string; readonly "path"?: string; readonly "position"?: number; readonly "line"?: number }; - -export type ReposCreateCommitCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "commit_sha": string }; - -export type Link = { readonly "href": string }; - -export type AutoMerge = { readonly "enabled_by": SimpleUser; readonly "merge_method": "merge" | "squash" | "rebase"; readonly "commit_title": string; readonly "commit_message": string } | null; - -export type PullRequestSimple = { readonly "url": string; readonly "id": number; readonly "node_id": string; readonly "html_url": string; readonly "diff_url": string; readonly "patch_url": string; readonly "issue_url": string; readonly "commits_url": string; readonly "review_comments_url": string; readonly "review_comment_url": string; readonly "comments_url": string; readonly "statuses_url": string; readonly "number": number; readonly "state": string; readonly "locked": boolean; readonly "title": string; readonly "user": SimpleUser; readonly "body": string | null; readonly "labels": ReadonlyArray<{ readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "name": string; readonly "description": string; readonly "color": string; readonly "default": boolean }>; readonly "milestone": Milestone; readonly "active_lock_reason"?: string | null; readonly "created_at": string; readonly "updated_at": string; readonly "closed_at": string | null; readonly "merged_at": string | null; readonly "merge_commit_sha": string | null; readonly "assignee": SimpleUser; readonly "assignees"?: ReadonlyArray | null; readonly "requested_reviewers"?: ReadonlyArray | null; readonly "requested_teams"?: ReadonlyArray | null; readonly "head": { readonly "label": string; readonly "ref": string; readonly "repo": Repository; readonly "sha": string; readonly "user": SimpleUser }; readonly "base": { readonly "label": string; readonly "ref": string; readonly "repo": Repository; readonly "sha": string; readonly "user": SimpleUser }; readonly "_links": { readonly "comments": Link; readonly "commits": Link; readonly "statuses": Link; readonly "html": Link; readonly "issue": Link; readonly "review_comments": Link; readonly "review_comment": Link; readonly "self": Link }; readonly "author_association": AuthorAssociation; readonly "auto_merge": AutoMerge; readonly "draft"?: boolean }; +export type ReposCreateCommitCommentRequestBody = { + readonly body: string; + readonly path?: string; + readonly position?: number; + readonly line?: number; +}; + +export type ReposCreateCommitCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly commit_sha: string; +}; + +export type Link = { readonly href: string }; + +export type AutoMerge = { + readonly enabled_by: SimpleUser; + readonly merge_method: 'merge' | 'squash' | 'rebase'; + readonly commit_title: string; + readonly commit_message: string; +} | null; + +export type PullRequestSimple = { + readonly url: string; + readonly id: number; + readonly node_id: string; + readonly html_url: string; + readonly diff_url: string; + readonly patch_url: string; + readonly issue_url: string; + readonly commits_url: string; + readonly review_comments_url: string; + readonly review_comment_url: string; + readonly comments_url: string; + readonly statuses_url: string; + readonly number: number; + readonly state: string; + readonly locked: boolean; + readonly title: string; + readonly user: SimpleUser; + readonly body: string | null; + readonly labels: ReadonlyArray<{ + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly name: string; + readonly description: string; + readonly color: string; + readonly default: boolean; + }>; + readonly milestone: Milestone; + readonly active_lock_reason?: string | null; + readonly created_at: string; + readonly updated_at: string; + readonly closed_at: string | null; + readonly merged_at: string | null; + readonly merge_commit_sha: string | null; + readonly assignee: SimpleUser; + readonly assignees?: ReadonlyArray | null; + readonly requested_reviewers?: ReadonlyArray | null; + readonly requested_teams?: ReadonlyArray | null; + readonly head: { + readonly label: string; + readonly ref: string; + readonly repo: Repository; + readonly sha: string; + readonly user: SimpleUser; + }; + readonly base: { + readonly label: string; + readonly ref: string; + readonly repo: Repository; + readonly sha: string; + readonly user: SimpleUser; + }; + readonly _links: { + readonly comments: Link; + readonly commits: Link; + readonly statuses: Link; + readonly html: Link; + readonly issue: Link; + readonly review_comments: Link; + readonly review_comment: Link; + readonly self: Link; + }; + readonly author_association: AuthorAssociation; + readonly auto_merge: AutoMerge; + readonly draft?: boolean; +}; export type ReposListPullRequestsAssociatedWithCommit200ResponseBody = ReadonlyArray; -export type ReposListPullRequestsAssociatedWithCommitRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListPullRequestsAssociatedWithCommitRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListPullRequestsAssociatedWithCommitRequestPath = { readonly "owner": string; readonly "repo": string; readonly "commit_sha": string }; +export type ReposListPullRequestsAssociatedWithCommitRequestPath = { + readonly owner: string; + readonly repo: string; + readonly commit_sha: string; +}; export type ReposGetCommit200ResponseBody = Commit; @@ -3350,55 +8936,173 @@ export type ReposGetCommit422ResponseBody = ValidationError; export type ReposGetCommit500ResponseBody = BasicError; -export type ReposGetCommit503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type ReposGetCommitRequestQuery = { readonly "page"?: number; readonly "per_page"?: number }; - -export type ReposGetCommitRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; - -export type ChecksListForRef200ResponseBody = { readonly "total_count": number; readonly "check_runs": ReadonlyArray }; - -export type ChecksListForRefRequestQuery = { readonly "check_name"?: string; readonly "status"?: "queued" | "in_progress" | "completed"; readonly "filter"?: "latest" | "all"; readonly "per_page"?: number; readonly "page"?: number; readonly "app_id"?: number }; - -export type ChecksListForRefRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; - -export type ChecksListSuitesForRef200ResponseBody = { readonly "total_count": number; readonly "check_suites": ReadonlyArray }; - -export type ChecksListSuitesForRefRequestQuery = { readonly "app_id"?: number; readonly "check_name"?: string; readonly "per_page"?: number; readonly "page"?: number }; - -export type ChecksListSuitesForRefRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; - -export type SimpleCommitStatus = { readonly "description": string | null; readonly "id": number; readonly "node_id": string; readonly "state": string; readonly "context": string; readonly "target_url": string | null; readonly "required"?: boolean | null; readonly "avatar_url": string | null; readonly "url": string; readonly "created_at": string; readonly "updated_at": string }; - -export type CombinedCommitStatus = { readonly "state": string; readonly "statuses": ReadonlyArray; readonly "sha": string; readonly "total_count": number; readonly "repository": MinimalRepository; readonly "commit_url": string; readonly "url": string }; +export type ReposGetCommit503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type ReposGetCommitRequestQuery = { + readonly page?: number; + readonly per_page?: number; +}; + +export type ReposGetCommitRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; + +export type ChecksListForRef200ResponseBody = { + readonly total_count: number; + readonly check_runs: ReadonlyArray; +}; + +export type ChecksListForRefRequestQuery = { + readonly check_name?: string; + readonly status?: 'queued' | 'in_progress' | 'completed'; + readonly filter?: 'latest' | 'all'; + readonly per_page?: number; + readonly page?: number; + readonly app_id?: number; +}; + +export type ChecksListForRefRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; + +export type ChecksListSuitesForRef200ResponseBody = { + readonly total_count: number; + readonly check_suites: ReadonlyArray; +}; + +export type ChecksListSuitesForRefRequestQuery = { + readonly app_id?: number; + readonly check_name?: string; + readonly per_page?: number; + readonly page?: number; +}; + +export type ChecksListSuitesForRefRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; + +export type SimpleCommitStatus = { + readonly description: string | null; + readonly id: number; + readonly node_id: string; + readonly state: string; + readonly context: string; + readonly target_url: string | null; + readonly required?: boolean | null; + readonly avatar_url: string | null; + readonly url: string; + readonly created_at: string; + readonly updated_at: string; +}; + +export type CombinedCommitStatus = { + readonly state: string; + readonly statuses: ReadonlyArray; + readonly sha: string; + readonly total_count: number; + readonly repository: MinimalRepository; + readonly commit_url: string; + readonly url: string; +}; export type ReposGetCombinedStatusForRef200ResponseBody = CombinedCommitStatus; export type ReposGetCombinedStatusForRef404ResponseBody = BasicError; -export type ReposGetCombinedStatusForRefRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposGetCombinedStatusForRefRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; - -export type Status = { readonly "url": string; readonly "avatar_url": string | null; readonly "id": number; readonly "node_id": string; readonly "state": string; readonly "description": string | null; readonly "target_url": string | null; readonly "context": string; readonly "created_at": string; readonly "updated_at": string; readonly "creator": SimpleUser }; +export type ReposGetCombinedStatusForRefRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposGetCombinedStatusForRefRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; + +export type Status = { + readonly url: string; + readonly avatar_url: string | null; + readonly id: number; + readonly node_id: string; + readonly state: string; + readonly description: string | null; + readonly target_url: string | null; + readonly context: string; + readonly created_at: string; + readonly updated_at: string; + readonly creator: SimpleUser; +}; export type ReposListCommitStatusesForRef200ResponseBody = ReadonlyArray; export type ReposListCommitStatusesForRef301ResponseBody = BasicError; -export type ReposListCommitStatusesForRefRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposListCommitStatusesForRefRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; - -export type CommunityHealthFile = { readonly "url": string; readonly "html_url": string } | null; - -export type CommunityProfile = { readonly "health_percentage": number; readonly "description": string | null; readonly "documentation": string | null; readonly "files": { readonly "code_of_conduct": CodeOfConductSimple; readonly "code_of_conduct_file": CommunityHealthFile; readonly "license": LicenseSimple; readonly "contributing": CommunityHealthFile; readonly "readme": CommunityHealthFile; readonly "issue_template": CommunityHealthFile; readonly "pull_request_template": CommunityHealthFile }; readonly "updated_at": string | null; readonly "content_reports_enabled"?: boolean }; +export type ReposListCommitStatusesForRefRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposListCommitStatusesForRefRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; + +export type CommunityHealthFile = { + readonly url: string; + readonly html_url: string; +} | null; + +export type CommunityProfile = { + readonly health_percentage: number; + readonly description: string | null; + readonly documentation: string | null; + readonly files: { + readonly code_of_conduct: CodeOfConductSimple; + readonly code_of_conduct_file: CommunityHealthFile; + readonly license: LicenseSimple; + readonly contributing: CommunityHealthFile; + readonly readme: CommunityHealthFile; + readonly issue_template: CommunityHealthFile; + readonly pull_request_template: CommunityHealthFile; + }; + readonly updated_at: string | null; + readonly content_reports_enabled?: boolean; +}; export type ReposGetCommunityProfileMetrics200ResponseBody = CommunityProfile; -export type ReposGetCommunityProfileMetricsRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type CommitComparison = { readonly "url": string; readonly "html_url": string; readonly "permalink_url": string; readonly "diff_url": string; readonly "patch_url": string; readonly "base_commit": Commit; readonly "merge_base_commit": Commit; readonly "status": "diverged" | "ahead" | "behind" | "identical"; readonly "ahead_by": number; readonly "behind_by": number; readonly "total_commits": number; readonly "commits": ReadonlyArray; readonly "files"?: ReadonlyArray }; +export type ReposGetCommunityProfileMetricsRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type CommitComparison = { + readonly url: string; + readonly html_url: string; + readonly permalink_url: string; + readonly diff_url: string; + readonly patch_url: string; + readonly base_commit: Commit; + readonly merge_base_commit: Commit; + readonly status: 'diverged' | 'ahead' | 'behind' | 'identical'; + readonly ahead_by: number; + readonly behind_by: number; + readonly total_commits: number; + readonly commits: ReadonlyArray; + readonly files?: ReadonlyArray; +}; export type ReposCompareCommits200ResponseBody = CommitComparison; @@ -3406,31 +9110,163 @@ export type ReposCompareCommits404ResponseBody = BasicError; export type ReposCompareCommits500ResponseBody = BasicError; -export type ReposCompareCommits503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type ReposCompareCommitsRequestQuery = { readonly "page"?: number; readonly "per_page"?: number }; - -export type ReposCompareCommitsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "basehead": string }; - -export type ContentDirectory = ReadonlyArray<{ readonly "type": "dir" | "file" | "submodule" | "symlink"; readonly "size": number; readonly "name": string; readonly "path": string; readonly "content"?: string; readonly "sha": string; readonly "url": string; readonly "git_url": string | null; readonly "html_url": string | null; readonly "download_url": string | null; readonly "_links": { readonly "git": string | null; readonly "html": string | null; readonly "self": string } }>; - -export type ContentFile = { readonly "type": "file"; readonly "encoding": string; readonly "size": number; readonly "name": string; readonly "path": string; readonly "content": string; readonly "sha": string; readonly "url": string; readonly "git_url": string | null; readonly "html_url": string | null; readonly "download_url": string | null; readonly "_links": { readonly "git": string | null; readonly "html": string | null; readonly "self": string }; readonly "target"?: string; readonly "submodule_git_url"?: string }; - -export type SymlinkContent = { readonly "type": "symlink"; readonly "target": string; readonly "size": number; readonly "name": string; readonly "path": string; readonly "sha": string; readonly "url": string; readonly "git_url": string | null; readonly "html_url": string | null; readonly "download_url": string | null; readonly "_links": { readonly "git": string | null; readonly "html": string | null; readonly "self": string } }; - -export type SubmoduleContent = { readonly "type": "submodule"; readonly "submodule_git_url": string; readonly "size": number; readonly "name": string; readonly "path": string; readonly "sha": string; readonly "url": string; readonly "git_url": string | null; readonly "html_url": string | null; readonly "download_url": string | null; readonly "_links": { readonly "git": string | null; readonly "html": string | null; readonly "self": string } }; - -export type ReposGetContent200ResponseBody = ContentDirectory | ContentFile | SymlinkContent | SubmoduleContent; +export type ReposCompareCommits503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type ReposCompareCommitsRequestQuery = { + readonly page?: number; + readonly per_page?: number; +}; + +export type ReposCompareCommitsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly basehead: string; +}; + +export type ContentDirectory = ReadonlyArray<{ + readonly type: 'dir' | 'file' | 'submodule' | 'symlink'; + readonly size: number; + readonly name: string; + readonly path: string; + readonly content?: string; + readonly sha: string; + readonly url: string; + readonly git_url: string | null; + readonly html_url: string | null; + readonly download_url: string | null; + readonly _links: { + readonly git: string | null; + readonly html: string | null; + readonly self: string; + }; +}>; + +export type ContentFile = { + readonly type: 'file'; + readonly encoding: string; + readonly size: number; + readonly name: string; + readonly path: string; + readonly content: string; + readonly sha: string; + readonly url: string; + readonly git_url: string | null; + readonly html_url: string | null; + readonly download_url: string | null; + readonly _links: { + readonly git: string | null; + readonly html: string | null; + readonly self: string; + }; + readonly target?: string; + readonly submodule_git_url?: string; +}; + +export type SymlinkContent = { + readonly type: 'symlink'; + readonly target: string; + readonly size: number; + readonly name: string; + readonly path: string; + readonly sha: string; + readonly url: string; + readonly git_url: string | null; + readonly html_url: string | null; + readonly download_url: string | null; + readonly _links: { + readonly git: string | null; + readonly html: string | null; + readonly self: string; + }; +}; + +export type SubmoduleContent = { + readonly type: 'submodule'; + readonly submodule_git_url: string; + readonly size: number; + readonly name: string; + readonly path: string; + readonly sha: string; + readonly url: string; + readonly git_url: string | null; + readonly html_url: string | null; + readonly download_url: string | null; + readonly _links: { + readonly git: string | null; + readonly html: string | null; + readonly self: string; + }; +}; + +export type ReposGetContent200ResponseBody = + | ContentDirectory + | ContentFile + | SymlinkContent + | SubmoduleContent; export type ReposGetContent403ResponseBody = BasicError; export type ReposGetContent404ResponseBody = BasicError; -export type ReposGetContentRequestQuery = { readonly "ref"?: string }; - -export type ReposGetContentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "path": string }; - -export type FileCommit = { readonly "content": { readonly "name"?: string; readonly "path"?: string; readonly "sha"?: string; readonly "size"?: number; readonly "url"?: string; readonly "html_url"?: string; readonly "git_url"?: string; readonly "download_url"?: string; readonly "type"?: string; readonly "_links"?: { readonly "self"?: string; readonly "git"?: string; readonly "html"?: string } } | null; readonly "commit": { readonly "sha"?: string; readonly "node_id"?: string; readonly "url"?: string; readonly "html_url"?: string; readonly "author"?: { readonly "date"?: string; readonly "name"?: string; readonly "email"?: string }; readonly "committer"?: { readonly "date"?: string; readonly "name"?: string; readonly "email"?: string }; readonly "message"?: string; readonly "tree"?: { readonly "url"?: string; readonly "sha"?: string }; readonly "parents"?: ReadonlyArray<{ readonly "url"?: string; readonly "html_url"?: string; readonly "sha"?: string }>; readonly "verification"?: { readonly "verified"?: boolean; readonly "reason"?: string; readonly "signature"?: string | null; readonly "payload"?: string | null } } }; +export type ReposGetContentRequestQuery = { readonly ref?: string }; + +export type ReposGetContentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly path: string; +}; + +export type FileCommit = { + readonly content: { + readonly name?: string; + readonly path?: string; + readonly sha?: string; + readonly size?: number; + readonly url?: string; + readonly html_url?: string; + readonly git_url?: string; + readonly download_url?: string; + readonly type?: string; + readonly _links?: { + readonly self?: string; + readonly git?: string; + readonly html?: string; + }; + } | null; + readonly commit: { + readonly sha?: string; + readonly node_id?: string; + readonly url?: string; + readonly html_url?: string; + readonly author?: { + readonly date?: string; + readonly name?: string; + readonly email?: string; + }; + readonly committer?: { + readonly date?: string; + readonly name?: string; + readonly email?: string; + }; + readonly message?: string; + readonly tree?: { readonly url?: string; readonly sha?: string }; + readonly parents?: ReadonlyArray<{ + readonly url?: string; + readonly html_url?: string; + readonly sha?: string; + }>; + readonly verification?: { + readonly verified?: boolean; + readonly reason?: string; + readonly signature?: string | null; + readonly payload?: string | null; + }; + }; +}; export type ReposCreateOrUpdateFileContents200ResponseBody = FileCommit; @@ -3442,9 +9278,28 @@ export type ReposCreateOrUpdateFileContents409ResponseBody = BasicError; export type ReposCreateOrUpdateFileContents422ResponseBody = ValidationError; -export type ReposCreateOrUpdateFileContentsRequestBody = { readonly "message": string; readonly "content": string; readonly "sha"?: string; readonly "branch"?: string; readonly "committer"?: { readonly "name": string; readonly "email": string; readonly "date"?: string }; readonly "author"?: { readonly "name": string; readonly "email": string; readonly "date"?: string } }; - -export type ReposCreateOrUpdateFileContentsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "path": string }; +export type ReposCreateOrUpdateFileContentsRequestBody = { + readonly message: string; + readonly content: string; + readonly sha?: string; + readonly branch?: string; + readonly committer?: { + readonly name: string; + readonly email: string; + readonly date?: string; + }; + readonly author?: { + readonly name: string; + readonly email: string; + readonly date?: string; + }; +}; + +export type ReposCreateOrUpdateFileContentsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly path: string; +}; export type ReposDeleteFile200ResponseBody = FileCommit; @@ -3454,13 +9309,49 @@ export type ReposDeleteFile409ResponseBody = BasicError; export type ReposDeleteFile422ResponseBody = ValidationError; -export type ReposDeleteFile503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type ReposDeleteFileRequestBody = { readonly "message": string; readonly "sha": string; readonly "branch"?: string; readonly "committer"?: { readonly "name"?: string; readonly "email"?: string }; readonly "author"?: { readonly "name"?: string; readonly "email"?: string } }; - -export type ReposDeleteFileRequestPath = { readonly "owner": string; readonly "repo": string; readonly "path": string }; - -export type Contributor = { readonly "login"?: string; readonly "id"?: number; readonly "node_id"?: string; readonly "avatar_url"?: string; readonly "gravatar_id"?: string | null; readonly "url"?: string; readonly "html_url"?: string; readonly "followers_url"?: string; readonly "following_url"?: string; readonly "gists_url"?: string; readonly "starred_url"?: string; readonly "subscriptions_url"?: string; readonly "organizations_url"?: string; readonly "repos_url"?: string; readonly "events_url"?: string; readonly "received_events_url"?: string; readonly "type": string; readonly "site_admin"?: boolean; readonly "contributions": number; readonly "email"?: string; readonly "name"?: string }; +export type ReposDeleteFile503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type ReposDeleteFileRequestBody = { + readonly message: string; + readonly sha: string; + readonly branch?: string; + readonly committer?: { readonly name?: string; readonly email?: string }; + readonly author?: { readonly name?: string; readonly email?: string }; +}; + +export type ReposDeleteFileRequestPath = { + readonly owner: string; + readonly repo: string; + readonly path: string; +}; + +export type Contributor = { + readonly login?: string; + readonly id?: number; + readonly node_id?: string; + readonly avatar_url?: string; + readonly gravatar_id?: string | null; + readonly url?: string; + readonly html_url?: string; + readonly followers_url?: string; + readonly following_url?: string; + readonly gists_url?: string; + readonly starred_url?: string; + readonly subscriptions_url?: string; + readonly organizations_url?: string; + readonly repos_url?: string; + readonly events_url?: string; + readonly received_events_url?: string; + readonly type: string; + readonly site_admin?: boolean; + readonly contributions: number; + readonly email?: string; + readonly name?: string; +}; export type ReposListContributors200ResponseBody = ReadonlyArray; @@ -3468,11 +9359,43 @@ export type ReposListContributors403ResponseBody = BasicError; export type ReposListContributors404ResponseBody = BasicError; -export type ReposListContributorsRequestQuery = { readonly "anon"?: string; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposListContributorsRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type DependabotAlert = { readonly "number": AlertNumber; readonly "state": "dismissed" | "fixed" | "open"; readonly "dependency": { readonly "package"?: DependabotAlertPackage; readonly "manifest_path"?: string; readonly "scope"?: "development" | "runtime" | null }; readonly "security_advisory": DependabotAlertSecurityAdvisory; readonly "security_vulnerability": DependabotAlertSecurityVulnerability; readonly "url": AlertUrl; readonly "html_url": AlertHtmlUrl; readonly "created_at": AlertCreatedAt; readonly "updated_at": AlertUpdatedAt; readonly "dismissed_at": AlertDismissedAt; readonly "dismissed_by": SimpleUser; readonly "dismissed_reason": "fix_started" | "inaccurate" | "no_bandwidth" | "not_used" | "tolerable_risk" | null; readonly "dismissed_comment": string | null; readonly "fixed_at": AlertFixedAt }; +export type ReposListContributorsRequestQuery = { + readonly anon?: string; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposListContributorsRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type DependabotAlert = { + readonly number: AlertNumber; + readonly state: 'dismissed' | 'fixed' | 'open'; + readonly dependency: { + readonly package?: DependabotAlertPackage; + readonly manifest_path?: string; + readonly scope?: 'development' | 'runtime' | null; + }; + readonly security_advisory: DependabotAlertSecurityAdvisory; + readonly security_vulnerability: DependabotAlertSecurityVulnerability; + readonly url: AlertUrl; + readonly html_url: AlertHtmlUrl; + readonly created_at: AlertCreatedAt; + readonly updated_at: AlertUpdatedAt; + readonly dismissed_at: AlertDismissedAt; + readonly dismissed_by: SimpleUser; + readonly dismissed_reason: + | 'fix_started' + | 'inaccurate' + | 'no_bandwidth' + | 'not_used' + | 'tolerable_risk' + | null; + readonly dismissed_comment: string | null; + readonly fixed_at: AlertFixedAt; +}; export type DependabotListAlertsForRepo200ResponseBody = ReadonlyArray; @@ -3484,9 +9407,27 @@ export type DependabotListAlertsForRepo404ResponseBody = BasicError; export type DependabotListAlertsForRepo422ResponseBody = ValidationErrorSimple; -export type DependabotListAlertsForRepoRequestQuery = { readonly "state"?: string; readonly "severity"?: string; readonly "ecosystem"?: string; readonly "package"?: string; readonly "manifest"?: string; readonly "scope"?: "development" | "runtime"; readonly "sort"?: "created" | "updated"; readonly "direction"?: "asc" | "desc"; readonly "page"?: number; readonly "per_page"?: number; readonly "before"?: string; readonly "after"?: string; readonly "first"?: number; readonly "last"?: number }; - -export type DependabotListAlertsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type DependabotListAlertsForRepoRequestQuery = { + readonly state?: string; + readonly severity?: string; + readonly ecosystem?: string; + readonly package?: string; + readonly manifest?: string; + readonly scope?: 'development' | 'runtime'; + readonly sort?: 'created' | 'updated'; + readonly direction?: 'asc' | 'desc'; + readonly page?: number; + readonly per_page?: number; + readonly before?: string; + readonly after?: string; + readonly first?: number; + readonly last?: number; +}; + +export type DependabotListAlertsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type DependabotGetAlert200ResponseBody = DependabotAlert; @@ -3494,7 +9435,11 @@ export type DependabotGetAlert403ResponseBody = BasicError; export type DependabotGetAlert404ResponseBody = BasicError; -export type DependabotGetAlertRequestPath = { readonly "owner": string; readonly "repo": string; readonly "alert_number": AlertNumber }; +export type DependabotGetAlertRequestPath = { + readonly owner: string; + readonly repo: string; + readonly alert_number: AlertNumber; +}; export type DependabotUpdateAlert200ResponseBody = DependabotAlert; @@ -3508,35 +9453,95 @@ export type DependabotUpdateAlert409ResponseBody = BasicError; export type DependabotUpdateAlert422ResponseBody = ValidationErrorSimple; -export type DependabotUpdateAlertRequestBody = { readonly "state": "dismissed" | "open"; readonly "dismissed_reason"?: "fix_started" | "inaccurate" | "no_bandwidth" | "not_used" | "tolerable_risk"; readonly "dismissed_comment"?: string }; - -export type DependabotUpdateAlertRequestPath = { readonly "owner": string; readonly "repo": string; readonly "alert_number": AlertNumber }; - -export type DependabotSecret = { readonly "name": string; readonly "created_at": string; readonly "updated_at": string }; - -export type DependabotListRepoSecrets200ResponseBody = { readonly "total_count": number; readonly "secrets": ReadonlyArray }; - -export type DependabotListRepoSecretsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type DependabotListRepoSecretsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type DependabotUpdateAlertRequestBody = { + readonly state: 'dismissed' | 'open'; + readonly dismissed_reason?: + | 'fix_started' + | 'inaccurate' + | 'no_bandwidth' + | 'not_used' + | 'tolerable_risk'; + readonly dismissed_comment?: string; +}; + +export type DependabotUpdateAlertRequestPath = { + readonly owner: string; + readonly repo: string; + readonly alert_number: AlertNumber; +}; + +export type DependabotSecret = { + readonly name: string; + readonly created_at: string; + readonly updated_at: string; +}; + +export type DependabotListRepoSecrets200ResponseBody = { + readonly total_count: number; + readonly secrets: ReadonlyArray; +}; + +export type DependabotListRepoSecretsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type DependabotListRepoSecretsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type DependabotGetRepoPublicKey200ResponseBody = DependabotPublicKey; -export type DependabotGetRepoPublicKeyRequestPath = { readonly "owner": string; readonly "repo": string }; +export type DependabotGetRepoPublicKeyRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type DependabotGetRepoSecret200ResponseBody = DependabotSecret; -export type DependabotGetRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; +export type DependabotGetRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; export type DependabotCreateOrUpdateRepoSecret201ResponseBody = EmptyObject; -export type DependabotCreateOrUpdateRepoSecretRequestBody = { readonly "encrypted_value"?: string; readonly "key_id"?: string }; - -export type DependabotCreateOrUpdateRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; - -export type DependabotDeleteRepoSecretRequestPath = { readonly "owner": string; readonly "repo": string; readonly "secret_name": string }; - -export type DependencyGraphDiff = ReadonlyArray<{ readonly "change_type": "added" | "removed"; readonly "manifest": string; readonly "ecosystem": string; readonly "name": string; readonly "version": string; readonly "package_url": string | null; readonly "license": string | null; readonly "source_repository_url": string | null; readonly "vulnerabilities": ReadonlyArray<{ readonly "severity": string; readonly "advisory_ghsa_id": string; readonly "advisory_summary": string; readonly "advisory_url": string }>; readonly "scope": "unknown" | "runtime" | "development" }>; +export type DependabotCreateOrUpdateRepoSecretRequestBody = { + readonly encrypted_value?: string; + readonly key_id?: string; +}; + +export type DependabotCreateOrUpdateRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; + +export type DependabotDeleteRepoSecretRequestPath = { + readonly owner: string; + readonly repo: string; + readonly secret_name: string; +}; + +export type DependencyGraphDiff = ReadonlyArray<{ + readonly change_type: 'added' | 'removed'; + readonly manifest: string; + readonly ecosystem: string; + readonly name: string; + readonly version: string; + readonly package_url: string | null; + readonly license: string | null; + readonly source_repository_url: string | null; + readonly vulnerabilities: ReadonlyArray<{ + readonly severity: string; + readonly advisory_ghsa_id: string; + readonly advisory_summary: string; + readonly advisory_url: string; + }>; + readonly scope: 'unknown' | 'runtime' | 'development'; +}>; export type DependencyGraphDiffRange200ResponseBody = DependencyGraphDiff; @@ -3544,145 +9549,371 @@ export type DependencyGraphDiffRange403ResponseBody = BasicError; export type DependencyGraphDiffRange404ResponseBody = BasicError; -export type DependencyGraphDiffRangeRequestQuery = { readonly "name"?: string }; +export type DependencyGraphDiffRangeRequestQuery = { readonly name?: string }; -export type DependencyGraphDiffRangeRequestPath = { readonly "owner": string; readonly "repo": string; readonly "basehead": string }; +export type DependencyGraphDiffRangeRequestPath = { + readonly owner: string; + readonly repo: string; + readonly basehead: string; +}; -export type DependencyGraphCreateRepositorySnapshot201ResponseBody = { readonly "id": number; readonly "created_at": string; readonly "result": string; readonly "message": string }; +export type DependencyGraphCreateRepositorySnapshot201ResponseBody = { + readonly id: number; + readonly created_at: string; + readonly result: string; + readonly message: string; +}; export type Metadata = unknown; -export type Snapshot = { readonly "version": number; readonly "job": { readonly "id": string; readonly "correlator": string; readonly "html_url"?: string }; readonly "sha": string; readonly "ref": string; readonly "detector": { readonly "name": string; readonly "version": string; readonly "url": string }; readonly "metadata"?: Metadata; readonly "manifests"?: unknown; readonly "scanned": string }; +export type Snapshot = { + readonly version: number; + readonly job: { + readonly id: string; + readonly correlator: string; + readonly html_url?: string; + }; + readonly sha: string; + readonly ref: string; + readonly detector: { + readonly name: string; + readonly version: string; + readonly url: string; + }; + readonly metadata?: Metadata; + readonly manifests?: unknown; + readonly scanned: string; +}; export type DependencyGraphCreateRepositorySnapshotRequestBody = Snapshot; -export type DependencyGraphCreateRepositorySnapshotRequestPath = { readonly "owner": string; readonly "repo": string }; +export type DependencyGraphCreateRepositorySnapshotRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposListDeployments200ResponseBody = ReadonlyArray; -export type ReposListDeploymentsRequestQuery = { readonly "sha"?: string; readonly "ref"?: string; readonly "task"?: string; readonly "environment"?: string | null; readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListDeploymentsRequestQuery = { + readonly sha?: string; + readonly ref?: string; + readonly task?: string; + readonly environment?: string | null; + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListDeploymentsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposListDeploymentsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposCreateDeployment201ResponseBody = Deployment; -export type ReposCreateDeployment202ResponseBody = { readonly "message"?: string }; +export type ReposCreateDeployment202ResponseBody = { + readonly message?: string; +}; export type ReposCreateDeployment422ResponseBody = ValidationError; -export type ReposCreateDeploymentRequestBody = { readonly "ref": string; readonly "task"?: string; readonly "auto_merge"?: boolean; readonly "required_contexts"?: ReadonlyArray; readonly "payload"?: unknown | string; readonly "environment"?: string; readonly "description"?: string | null; readonly "transient_environment"?: boolean; readonly "production_environment"?: boolean }; - -export type ReposCreateDeploymentRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposCreateDeploymentRequestBody = { + readonly ref: string; + readonly task?: string; + readonly auto_merge?: boolean; + readonly required_contexts?: ReadonlyArray; + readonly payload?: unknown | string; + readonly environment?: string; + readonly description?: string | null; + readonly transient_environment?: boolean; + readonly production_environment?: boolean; +}; + +export type ReposCreateDeploymentRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposGetDeployment200ResponseBody = Deployment; export type ReposGetDeployment404ResponseBody = BasicError; -export type ReposGetDeploymentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "deployment_id": number }; +export type ReposGetDeploymentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly deployment_id: number; +}; export type ReposDeleteDeployment404ResponseBody = BasicError; export type ReposDeleteDeployment422ResponseBody = ValidationErrorSimple; -export type ReposDeleteDeploymentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "deployment_id": number }; - -export type DeploymentStatus = { readonly "url": string; readonly "id": number; readonly "node_id": string; readonly "state": "error" | "failure" | "inactive" | "pending" | "success" | "queued" | "in_progress"; readonly "creator": SimpleUser; readonly "description": string; readonly "environment"?: string; readonly "target_url": string; readonly "created_at": string; readonly "updated_at": string; readonly "deployment_url": string; readonly "repository_url": string; readonly "environment_url"?: string; readonly "log_url"?: string; readonly "performed_via_github_app"?: GitHubApp }; +export type ReposDeleteDeploymentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly deployment_id: number; +}; + +export type DeploymentStatus = { + readonly url: string; + readonly id: number; + readonly node_id: string; + readonly state: + | 'error' + | 'failure' + | 'inactive' + | 'pending' + | 'success' + | 'queued' + | 'in_progress'; + readonly creator: SimpleUser; + readonly description: string; + readonly environment?: string; + readonly target_url: string; + readonly created_at: string; + readonly updated_at: string; + readonly deployment_url: string; + readonly repository_url: string; + readonly environment_url?: string; + readonly log_url?: string; + readonly performed_via_github_app?: GitHubApp; +}; export type ReposListDeploymentStatuses200ResponseBody = ReadonlyArray; export type ReposListDeploymentStatuses404ResponseBody = BasicError; -export type ReposListDeploymentStatusesRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListDeploymentStatusesRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListDeploymentStatusesRequestPath = { readonly "owner": string; readonly "repo": string; readonly "deployment_id": number }; +export type ReposListDeploymentStatusesRequestPath = { + readonly owner: string; + readonly repo: string; + readonly deployment_id: number; +}; export type ReposCreateDeploymentStatus201ResponseBody = DeploymentStatus; export type ReposCreateDeploymentStatus422ResponseBody = ValidationError; -export type ReposCreateDeploymentStatusRequestBody = { readonly "state": "error" | "failure" | "inactive" | "in_progress" | "queued" | "pending" | "success"; readonly "target_url"?: string; readonly "log_url"?: string; readonly "description"?: string; readonly "environment"?: "production" | "staging" | "qa"; readonly "environment_url"?: string; readonly "auto_inactive"?: boolean }; - -export type ReposCreateDeploymentStatusRequestPath = { readonly "owner": string; readonly "repo": string; readonly "deployment_id": number }; +export type ReposCreateDeploymentStatusRequestBody = { + readonly state: + | 'error' + | 'failure' + | 'inactive' + | 'in_progress' + | 'queued' + | 'pending' + | 'success'; + readonly target_url?: string; + readonly log_url?: string; + readonly description?: string; + readonly environment?: 'production' | 'staging' | 'qa'; + readonly environment_url?: string; + readonly auto_inactive?: boolean; +}; + +export type ReposCreateDeploymentStatusRequestPath = { + readonly owner: string; + readonly repo: string; + readonly deployment_id: number; +}; export type ReposGetDeploymentStatus200ResponseBody = DeploymentStatus; export type ReposGetDeploymentStatus404ResponseBody = BasicError; -export type ReposGetDeploymentStatusRequestPath = { readonly "owner": string; readonly "repo": string; readonly "deployment_id": number; readonly "status_id": number }; +export type ReposGetDeploymentStatusRequestPath = { + readonly owner: string; + readonly repo: string; + readonly deployment_id: number; + readonly status_id: number; +}; export type ReposCreateDispatchEvent422ResponseBody = ValidationError; -export type ReposCreateDispatchEventRequestBody = { readonly "event_type": string; readonly "client_payload"?: unknown }; +export type ReposCreateDispatchEventRequestBody = { + readonly event_type: string; + readonly client_payload?: unknown; +}; -export type ReposCreateDispatchEventRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposCreateDispatchEventRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type WaitTimer = number; -export type DeploymentBranchPolicySettings = { readonly "protected_branches": boolean; readonly "custom_branch_policies": boolean } | null; - -export type Environment = { readonly "id": number; readonly "node_id": string; readonly "name": string; readonly "url": string; readonly "html_url": string; readonly "created_at": string; readonly "updated_at": string; readonly "protection_rules"?: ReadonlyArray<{ readonly "id": number; readonly "node_id": string; readonly "type": string; readonly "wait_timer"?: WaitTimer } | { readonly "id": number; readonly "node_id": string; readonly "type": string; readonly "reviewers"?: ReadonlyArray<{ readonly "type"?: DeploymentReviewerType; readonly "reviewer"?: SimpleUser | Team }> } | { readonly "id": number; readonly "node_id": string; readonly "type": string }>; readonly "deployment_branch_policy"?: DeploymentBranchPolicySettings }; - -export type ReposGetAllEnvironments200ResponseBody = { readonly "total_count"?: number; readonly "environments"?: ReadonlyArray }; - -export type ReposGetAllEnvironmentsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposGetAllEnvironmentsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type DeploymentBranchPolicySettings = { + readonly protected_branches: boolean; + readonly custom_branch_policies: boolean; +} | null; + +export type Environment = { + readonly id: number; + readonly node_id: string; + readonly name: string; + readonly url: string; + readonly html_url: string; + readonly created_at: string; + readonly updated_at: string; + readonly protection_rules?: ReadonlyArray< + | { + readonly id: number; + readonly node_id: string; + readonly type: string; + readonly wait_timer?: WaitTimer; + } + | { + readonly id: number; + readonly node_id: string; + readonly type: string; + readonly reviewers?: ReadonlyArray<{ + readonly type?: DeploymentReviewerType; + readonly reviewer?: SimpleUser | Team; + }>; + } + | { readonly id: number; readonly node_id: string; readonly type: string } + >; + readonly deployment_branch_policy?: DeploymentBranchPolicySettings; +}; + +export type ReposGetAllEnvironments200ResponseBody = { + readonly total_count?: number; + readonly environments?: ReadonlyArray; +}; + +export type ReposGetAllEnvironmentsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposGetAllEnvironmentsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposGetEnvironment200ResponseBody = Environment; -export type ReposGetEnvironmentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string }; +export type ReposGetEnvironmentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; +}; export type ReposCreateOrUpdateEnvironment200ResponseBody = Environment; export type ReposCreateOrUpdateEnvironment422ResponseBody = BasicError; -export type ReposCreateOrUpdateEnvironmentRequestBody = { readonly "wait_timer"?: WaitTimer; readonly "reviewers"?: ReadonlyArray<{ readonly "type"?: DeploymentReviewerType; readonly "id"?: number }> | null; readonly "deployment_branch_policy"?: DeploymentBranchPolicySettings } | null; - -export type ReposCreateOrUpdateEnvironmentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string }; - -export type ReposDeleteAnEnvironmentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string }; - -export type DeploymentBranchPolicy = { readonly "id"?: number; readonly "node_id"?: string; readonly "name"?: string }; - -export type ReposListDeploymentBranchPolicies200ResponseBody = { readonly "total_count": number; readonly "branch_policies": ReadonlyArray }; - -export type ReposListDeploymentBranchPoliciesRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type ReposListDeploymentBranchPoliciesRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string }; +export type ReposCreateOrUpdateEnvironmentRequestBody = { + readonly wait_timer?: WaitTimer; + readonly reviewers?: ReadonlyArray<{ + readonly type?: DeploymentReviewerType; + readonly id?: number; + }> | null; + readonly deployment_branch_policy?: DeploymentBranchPolicySettings; +} | null; + +export type ReposCreateOrUpdateEnvironmentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; +}; + +export type ReposDeleteAnEnvironmentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; +}; + +export type DeploymentBranchPolicy = { + readonly id?: number; + readonly node_id?: string; + readonly name?: string; +}; + +export type ReposListDeploymentBranchPolicies200ResponseBody = { + readonly total_count: number; + readonly branch_policies: ReadonlyArray; +}; + +export type ReposListDeploymentBranchPoliciesRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type ReposListDeploymentBranchPoliciesRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; +}; export type ReposCreateDeploymentBranchPolicy200ResponseBody = DeploymentBranchPolicy; -export type DeploymentBranchPolicyNamePattern = { readonly "name": string }; +export type DeploymentBranchPolicyNamePattern = { readonly name: string }; export type ReposCreateDeploymentBranchPolicyRequestBody = DeploymentBranchPolicyNamePattern; -export type ReposCreateDeploymentBranchPolicyRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string }; +export type ReposCreateDeploymentBranchPolicyRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; +}; export type ReposGetDeploymentBranchPolicy200ResponseBody = DeploymentBranchPolicy; -export type ReposGetDeploymentBranchPolicyRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string; readonly "branch_policy_id": number }; +export type ReposGetDeploymentBranchPolicyRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; + readonly branch_policy_id: number; +}; export type ReposUpdateDeploymentBranchPolicy200ResponseBody = DeploymentBranchPolicy; export type ReposUpdateDeploymentBranchPolicyRequestBody = DeploymentBranchPolicyNamePattern; -export type ReposUpdateDeploymentBranchPolicyRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string; readonly "branch_policy_id": number }; +export type ReposUpdateDeploymentBranchPolicyRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; + readonly branch_policy_id: number; +}; -export type ReposDeleteDeploymentBranchPolicyRequestPath = { readonly "owner": string; readonly "repo": string; readonly "environment_name": string; readonly "branch_policy_id": number }; +export type ReposDeleteDeploymentBranchPolicyRequestPath = { + readonly owner: string; + readonly repo: string; + readonly environment_name: string; + readonly branch_policy_id: number; +}; export type ActivityListRepoEvents200ResponseBody = ReadonlyArray; -export type ActivityListRepoEventsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ActivityListRepoEventsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ActivityListRepoEventsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ActivityListRepoEventsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposListForks200ResponseBody = ReadonlyArray; export type ReposListForks400ResponseBody = BasicError; -export type ReposListForksRequestQuery = { readonly "sort"?: "newest" | "oldest" | "stargazers" | "watchers"; readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListForksRequestQuery = { + readonly sort?: 'newest' | 'oldest' | 'stargazers' | 'watchers'; + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListForksRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposListForksRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposCreateFork202ResponseBody = FullRepository; @@ -3694,11 +9925,18 @@ export type ReposCreateFork404ResponseBody = BasicError; export type ReposCreateFork422ResponseBody = ValidationError; -export type ReposCreateForkRequestBody = { readonly "organization"?: string; readonly "name"?: string; readonly "default_branch_only"?: boolean } | null; +export type ReposCreateForkRequestBody = { + readonly organization?: string; + readonly name?: string; + readonly default_branch_only?: boolean; +} | null; -export type ReposCreateForkRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposCreateForkRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type ShortBlob = { readonly "url": string; readonly "sha": string }; +export type ShortBlob = { readonly url: string; readonly sha: string }; export type GitCreateBlob201ResponseBody = ShortBlob; @@ -3710,11 +9948,25 @@ export type GitCreateBlob409ResponseBody = BasicError; export type GitCreateBlob422ResponseBody = ValidationError; -export type GitCreateBlobRequestBody = { readonly "content": string; readonly "encoding"?: string }; - -export type GitCreateBlobRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type Blob = { readonly "content": string; readonly "encoding": string; readonly "url": string; readonly "sha": string; readonly "size": number | null; readonly "node_id": string; readonly "highlighted_content"?: string }; +export type GitCreateBlobRequestBody = { + readonly content: string; + readonly encoding?: string; +}; + +export type GitCreateBlobRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type Blob = { + readonly content: string; + readonly encoding: string; + readonly url: string; + readonly sha: string; + readonly size: number | null; + readonly node_id: string; + readonly highlighted_content?: string; +}; export type GitGetBlob200ResponseBody = Blob; @@ -3724,9 +9976,41 @@ export type GitGetBlob404ResponseBody = BasicError; export type GitGetBlob422ResponseBody = ValidationError; -export type GitGetBlobRequestPath = { readonly "owner": string; readonly "repo": string; readonly "file_sha": string }; - -export type GitCommit = { readonly "sha": string; readonly "node_id": string; readonly "url": string; readonly "author": { readonly "date": string; readonly "email": string; readonly "name": string }; readonly "committer": { readonly "date": string; readonly "email": string; readonly "name": string }; readonly "message": string; readonly "tree": { readonly "sha": string; readonly "url": string }; readonly "parents": ReadonlyArray<{ readonly "sha": string; readonly "url": string; readonly "html_url": string }>; readonly "verification": { readonly "verified": boolean; readonly "reason": string; readonly "signature": string | null; readonly "payload": string | null }; readonly "html_url": string }; +export type GitGetBlobRequestPath = { + readonly owner: string; + readonly repo: string; + readonly file_sha: string; +}; + +export type GitCommit = { + readonly sha: string; + readonly node_id: string; + readonly url: string; + readonly author: { + readonly date: string; + readonly email: string; + readonly name: string; + }; + readonly committer: { + readonly date: string; + readonly email: string; + readonly name: string; + }; + readonly message: string; + readonly tree: { readonly sha: string; readonly url: string }; + readonly parents: ReadonlyArray<{ + readonly sha: string; + readonly url: string; + readonly html_url: string; + }>; + readonly verification: { + readonly verified: boolean; + readonly reason: string; + readonly signature: string | null; + readonly payload: string | null; + }; + readonly html_url: string; +}; export type GitCreateCommit201ResponseBody = GitCommit; @@ -3734,65 +10018,168 @@ export type GitCreateCommit404ResponseBody = BasicError; export type GitCreateCommit422ResponseBody = ValidationError; -export type GitCreateCommitRequestBody = { readonly "message": string; readonly "tree": string; readonly "parents"?: ReadonlyArray; readonly "author"?: { readonly "name": string; readonly "email": string; readonly "date"?: string }; readonly "committer"?: { readonly "name"?: string; readonly "email"?: string; readonly "date"?: string }; readonly "signature"?: string }; - -export type GitCreateCommitRequestPath = { readonly "owner": string; readonly "repo": string }; +export type GitCreateCommitRequestBody = { + readonly message: string; + readonly tree: string; + readonly parents?: ReadonlyArray; + readonly author?: { + readonly name: string; + readonly email: string; + readonly date?: string; + }; + readonly committer?: { + readonly name?: string; + readonly email?: string; + readonly date?: string; + }; + readonly signature?: string; +}; + +export type GitCreateCommitRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type GitGetCommit200ResponseBody = GitCommit; export type GitGetCommit404ResponseBody = BasicError; -export type GitGetCommitRequestPath = { readonly "owner": string; readonly "repo": string; readonly "commit_sha": string }; - -export type GitReference = { readonly "ref": string; readonly "node_id": string; readonly "url": string; readonly "object": { readonly "type": string; readonly "sha": string; readonly "url": string } }; +export type GitGetCommitRequestPath = { + readonly owner: string; + readonly repo: string; + readonly commit_sha: string; +}; + +export type GitReference = { + readonly ref: string; + readonly node_id: string; + readonly url: string; + readonly object: { + readonly type: string; + readonly sha: string; + readonly url: string; + }; +}; export type GitListMatchingRefs200ResponseBody = ReadonlyArray; -export type GitListMatchingRefsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; +export type GitListMatchingRefsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; export type GitGetRef200ResponseBody = GitReference; export type GitGetRef404ResponseBody = BasicError; -export type GitGetRefRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; +export type GitGetRefRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; export type GitCreateRef201ResponseBody = GitReference; export type GitCreateRef422ResponseBody = ValidationError; -export type GitCreateRefRequestBody = { readonly "ref": string; readonly "sha": string; readonly "key"?: string }; +export type GitCreateRefRequestBody = { + readonly ref: string; + readonly sha: string; + readonly key?: string; +}; -export type GitCreateRefRequestPath = { readonly "owner": string; readonly "repo": string }; +export type GitCreateRefRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type GitUpdateRef200ResponseBody = GitReference; export type GitUpdateRef422ResponseBody = ValidationError; -export type GitUpdateRefRequestBody = { readonly "sha": string; readonly "force"?: boolean }; +export type GitUpdateRefRequestBody = { + readonly sha: string; + readonly force?: boolean; +}; -export type GitUpdateRefRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; +export type GitUpdateRefRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; export type GitDeleteRef422ResponseBody = ValidationError; -export type GitDeleteRefRequestPath = { readonly "owner": string; readonly "repo": string; readonly "ref": string }; - -export type GitTag = { readonly "node_id": string; readonly "tag": string; readonly "sha": string; readonly "url": string; readonly "message": string; readonly "tagger": { readonly "date": string; readonly "email": string; readonly "name": string }; readonly "object": { readonly "sha": string; readonly "type": string; readonly "url": string }; readonly "verification"?: Verification }; +export type GitDeleteRefRequestPath = { + readonly owner: string; + readonly repo: string; + readonly ref: string; +}; + +export type GitTag = { + readonly node_id: string; + readonly tag: string; + readonly sha: string; + readonly url: string; + readonly message: string; + readonly tagger: { + readonly date: string; + readonly email: string; + readonly name: string; + }; + readonly object: { + readonly sha: string; + readonly type: string; + readonly url: string; + }; + readonly verification?: Verification; +}; export type GitCreateTag201ResponseBody = GitTag; export type GitCreateTag422ResponseBody = ValidationError; -export type GitCreateTagRequestBody = { readonly "tag": string; readonly "message": string; readonly "object": string; readonly "type": "commit" | "tree" | "blob"; readonly "tagger"?: { readonly "name": string; readonly "email": string; readonly "date"?: string } }; - -export type GitCreateTagRequestPath = { readonly "owner": string; readonly "repo": string }; +export type GitCreateTagRequestBody = { + readonly tag: string; + readonly message: string; + readonly object: string; + readonly type: 'commit' | 'tree' | 'blob'; + readonly tagger?: { + readonly name: string; + readonly email: string; + readonly date?: string; + }; +}; + +export type GitCreateTagRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type GitGetTag200ResponseBody = GitTag; export type GitGetTag404ResponseBody = BasicError; -export type GitGetTagRequestPath = { readonly "owner": string; readonly "repo": string; readonly "tag_sha": string }; - -export type GitTree = { readonly "sha": string; readonly "url": string; readonly "truncated": boolean; readonly "tree": ReadonlyArray<{ readonly "path"?: string; readonly "mode"?: string; readonly "type"?: string; readonly "sha"?: string; readonly "size"?: number; readonly "url"?: string }> }; +export type GitGetTagRequestPath = { + readonly owner: string; + readonly repo: string; + readonly tag_sha: string; +}; + +export type GitTree = { + readonly sha: string; + readonly url: string; + readonly truncated: boolean; + readonly tree: ReadonlyArray<{ + readonly path?: string; + readonly mode?: string; + readonly type?: string; + readonly sha?: string; + readonly size?: number; + readonly url?: string; + }>; +}; export type GitCreateTree201ResponseBody = GitTree; @@ -3802,9 +10189,21 @@ export type GitCreateTree404ResponseBody = BasicError; export type GitCreateTree422ResponseBody = ValidationError; -export type GitCreateTreeRequestBody = { readonly "tree": ReadonlyArray<{ readonly "path"?: string; readonly "mode"?: "100644" | "100755" | "040000" | "160000" | "120000"; readonly "type"?: "blob" | "tree" | "commit"; readonly "sha"?: string | null; readonly "content"?: string }>; readonly "base_tree"?: string }; - -export type GitCreateTreeRequestPath = { readonly "owner": string; readonly "repo": string }; +export type GitCreateTreeRequestBody = { + readonly tree: ReadonlyArray<{ + readonly path?: string; + readonly mode?: '100644' | '100755' | '040000' | '160000' | '120000'; + readonly type?: 'blob' | 'tree' | 'commit'; + readonly sha?: string | null; + readonly content?: string; + }>; + readonly base_tree?: string; +}; + +export type GitCreateTreeRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type GitGetTree200ResponseBody = GitTree; @@ -3812,21 +10211,60 @@ export type GitGetTree404ResponseBody = BasicError; export type GitGetTree422ResponseBody = ValidationError; -export type GitGetTreeRequestQuery = { readonly "recursive"?: string }; - -export type GitGetTreeRequestPath = { readonly "owner": string; readonly "repo": string; readonly "tree_sha": string }; - -export type HookResponse = { readonly "code": number | null; readonly "status": string | null; readonly "message": string | null }; - -export type Webhook = { readonly "type": string; readonly "id": number; readonly "name": string; readonly "active": boolean; readonly "events": ReadonlyArray; readonly "config": { readonly "email"?: string; readonly "password"?: string; readonly "room"?: string; readonly "subdomain"?: string; readonly "url"?: WebhookConfigUrl; readonly "insecure_ssl"?: WebhookConfigInsecureSsl; readonly "content_type"?: WebhookConfigContentType; readonly "digest"?: string; readonly "secret"?: WebhookConfigSecret; readonly "token"?: string }; readonly "updated_at": string; readonly "created_at": string; readonly "url": string; readonly "test_url": string; readonly "ping_url": string; readonly "deliveries_url"?: string; readonly "last_response": HookResponse }; +export type GitGetTreeRequestQuery = { readonly recursive?: string }; + +export type GitGetTreeRequestPath = { + readonly owner: string; + readonly repo: string; + readonly tree_sha: string; +}; + +export type HookResponse = { + readonly code: number | null; + readonly status: string | null; + readonly message: string | null; +}; + +export type Webhook = { + readonly type: string; + readonly id: number; + readonly name: string; + readonly active: boolean; + readonly events: ReadonlyArray; + readonly config: { + readonly email?: string; + readonly password?: string; + readonly room?: string; + readonly subdomain?: string; + readonly url?: WebhookConfigUrl; + readonly insecure_ssl?: WebhookConfigInsecureSsl; + readonly content_type?: WebhookConfigContentType; + readonly digest?: string; + readonly secret?: WebhookConfigSecret; + readonly token?: string; + }; + readonly updated_at: string; + readonly created_at: string; + readonly url: string; + readonly test_url: string; + readonly ping_url: string; + readonly deliveries_url?: string; + readonly last_response: HookResponse; +}; export type ReposListWebhooks200ResponseBody = ReadonlyArray; export type ReposListWebhooks404ResponseBody = BasicError; -export type ReposListWebhooksRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListWebhooksRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListWebhooksRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposListWebhooksRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposCreateWebhook201ResponseBody = Webhook; @@ -3836,15 +10274,34 @@ export type ReposCreateWebhook404ResponseBody = BasicError; export type ReposCreateWebhook422ResponseBody = ValidationError; -export type ReposCreateWebhookRequestBody = { readonly "name"?: string; readonly "config"?: { readonly "url"?: WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl; readonly "token"?: string; readonly "digest"?: string }; readonly "events"?: ReadonlyArray; readonly "active"?: boolean } | null; - -export type ReposCreateWebhookRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposCreateWebhookRequestBody = { + readonly name?: string; + readonly config?: { + readonly url?: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; + readonly token?: string; + readonly digest?: string; + }; + readonly events?: ReadonlyArray; + readonly active?: boolean; +} | null; + +export type ReposCreateWebhookRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposGetWebhook200ResponseBody = Webhook; export type ReposGetWebhook404ResponseBody = BasicError; -export type ReposGetWebhookRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; +export type ReposGetWebhookRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; export type ReposUpdateWebhook200ResponseBody = Webhook; @@ -3852,23 +10309,57 @@ export type ReposUpdateWebhook404ResponseBody = BasicError; export type ReposUpdateWebhook422ResponseBody = ValidationError; -export type ReposUpdateWebhookRequestBody = { readonly "config"?: { readonly "url": WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl; readonly "address"?: string; readonly "room"?: string }; readonly "events"?: ReadonlyArray; readonly "add_events"?: ReadonlyArray; readonly "remove_events"?: ReadonlyArray; readonly "active"?: boolean }; - -export type ReposUpdateWebhookRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; +export type ReposUpdateWebhookRequestBody = { + readonly config?: { + readonly url: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; + readonly address?: string; + readonly room?: string; + }; + readonly events?: ReadonlyArray; + readonly add_events?: ReadonlyArray; + readonly remove_events?: ReadonlyArray; + readonly active?: boolean; +}; + +export type ReposUpdateWebhookRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; export type ReposDeleteWebhook404ResponseBody = BasicError; -export type ReposDeleteWebhookRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; +export type ReposDeleteWebhookRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; export type ReposGetWebhookConfigForRepo200ResponseBody = WebhookConfiguration; -export type ReposGetWebhookConfigForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; +export type ReposGetWebhookConfigForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; export type ReposUpdateWebhookConfigForRepo200ResponseBody = WebhookConfiguration; -export type ReposUpdateWebhookConfigForRepoRequestBody = { readonly "url"?: WebhookConfigUrl; readonly "content_type"?: WebhookConfigContentType; readonly "secret"?: WebhookConfigSecret; readonly "insecure_ssl"?: WebhookConfigInsecureSsl }; +export type ReposUpdateWebhookConfigForRepoRequestBody = { + readonly url?: WebhookConfigUrl; + readonly content_type?: WebhookConfigContentType; + readonly secret?: WebhookConfigSecret; + readonly insecure_ssl?: WebhookConfigInsecureSsl; +}; -export type ReposUpdateWebhookConfigForRepoRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; +export type ReposUpdateWebhookConfigForRepoRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; export type ReposListWebhookDeliveries200ResponseBody = ReadonlyArray; @@ -3876,9 +10367,16 @@ export type ReposListWebhookDeliveries400ResponseBody = BasicError; export type ReposListWebhookDeliveries422ResponseBody = ValidationError; -export type ReposListWebhookDeliveriesRequestQuery = { readonly "per_page"?: number; readonly "cursor"?: string }; +export type ReposListWebhookDeliveriesRequestQuery = { + readonly per_page?: number; + readonly cursor?: string; +}; -export type ReposListWebhookDeliveriesRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; +export type ReposListWebhookDeliveriesRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; export type ReposGetWebhookDelivery200ResponseBody = WebhookDelivery; @@ -3886,7 +10384,12 @@ export type ReposGetWebhookDelivery400ResponseBody = BasicError; export type ReposGetWebhookDelivery422ResponseBody = ValidationError; -export type ReposGetWebhookDeliveryRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number; readonly "delivery_id": number }; +export type ReposGetWebhookDeliveryRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; + readonly delivery_id: number; +}; export type ReposRedeliverWebhookDelivery202ResponseBody = unknown; @@ -3894,23 +10397,83 @@ export type ReposRedeliverWebhookDelivery400ResponseBody = BasicError; export type ReposRedeliverWebhookDelivery422ResponseBody = ValidationError; -export type ReposRedeliverWebhookDeliveryRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number; readonly "delivery_id": number }; +export type ReposRedeliverWebhookDeliveryRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; + readonly delivery_id: number; +}; export type ReposPingWebhook404ResponseBody = BasicError; -export type ReposPingWebhookRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; +export type ReposPingWebhookRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; export type ReposTestPushWebhook404ResponseBody = BasicError; -export type ReposTestPushWebhookRequestPath = { readonly "owner": string; readonly "repo": string; readonly "hook_id": number }; - -export type Import = { readonly "vcs": string | null; readonly "use_lfs"?: boolean; readonly "vcs_url": string; readonly "svc_root"?: string; readonly "tfvc_project"?: string; readonly "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"; readonly "status_text"?: string | null; readonly "failed_step"?: string | null; readonly "error_message"?: string | null; readonly "import_percent"?: number | null; readonly "commit_count"?: number | null; readonly "push_percent"?: number | null; readonly "has_large_files"?: boolean; readonly "large_files_size"?: number; readonly "large_files_count"?: number; readonly "project_choices"?: ReadonlyArray<{ readonly "vcs"?: string; readonly "tfvc_project"?: string; readonly "human_name"?: string }>; readonly "message"?: string; readonly "authors_count"?: number | null; readonly "url": string; readonly "html_url": string; readonly "authors_url": string; readonly "repository_url": string; readonly "svn_root"?: string }; +export type ReposTestPushWebhookRequestPath = { + readonly owner: string; + readonly repo: string; + readonly hook_id: number; +}; + +export type Import = { + readonly vcs: string | null; + readonly use_lfs?: boolean; + readonly vcs_url: string; + readonly svc_root?: string; + readonly tfvc_project?: string; + readonly 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'; + readonly status_text?: string | null; + readonly failed_step?: string | null; + readonly error_message?: string | null; + readonly import_percent?: number | null; + readonly commit_count?: number | null; + readonly push_percent?: number | null; + readonly has_large_files?: boolean; + readonly large_files_size?: number; + readonly large_files_count?: number; + readonly project_choices?: ReadonlyArray<{ + readonly vcs?: string; + readonly tfvc_project?: string; + readonly human_name?: string; + }>; + readonly message?: string; + readonly authors_count?: number | null; + readonly url: string; + readonly html_url: string; + readonly authors_url: string; + readonly repository_url: string; + readonly svn_root?: string; +}; export type MigrationsGetImportStatus200ResponseBody = Import; export type MigrationsGetImportStatus404ResponseBody = BasicError; -export type MigrationsGetImportStatusRequestPath = { readonly "owner": string; readonly "repo": string }; +export type MigrationsGetImportStatusRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type MigrationsStartImport201ResponseBody = Import; @@ -3918,27 +10481,60 @@ export type MigrationsStartImport404ResponseBody = BasicError; export type MigrationsStartImport422ResponseBody = ValidationError; -export type MigrationsStartImportRequestBody = { readonly "vcs_url": string; readonly "vcs"?: "subversion" | "git" | "mercurial" | "tfvc"; readonly "vcs_username"?: string; readonly "vcs_password"?: string; readonly "tfvc_project"?: string }; +export type MigrationsStartImportRequestBody = { + readonly vcs_url: string; + readonly vcs?: 'subversion' | 'git' | 'mercurial' | 'tfvc'; + readonly vcs_username?: string; + readonly vcs_password?: string; + readonly tfvc_project?: string; +}; -export type MigrationsStartImportRequestPath = { readonly "owner": string; readonly "repo": string }; +export type MigrationsStartImportRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type MigrationsUpdateImport200ResponseBody = Import; -export type MigrationsUpdateImportRequestBody = { readonly "vcs_username"?: string; readonly "vcs_password"?: string; readonly "vcs"?: "subversion" | "tfvc" | "git" | "mercurial"; readonly "tfvc_project"?: string } | null; - -export type MigrationsUpdateImportRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type MigrationsCancelImportRequestPath = { readonly "owner": string; readonly "repo": string }; - -export type PorterAuthor = { readonly "id": number; readonly "remote_id": string; readonly "remote_name": string; readonly "email": string; readonly "name": string; readonly "url": string; readonly "import_url": string }; +export type MigrationsUpdateImportRequestBody = { + readonly vcs_username?: string; + readonly vcs_password?: string; + readonly vcs?: 'subversion' | 'tfvc' | 'git' | 'mercurial'; + readonly tfvc_project?: string; +} | null; + +export type MigrationsUpdateImportRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type MigrationsCancelImportRequestPath = { + readonly owner: string; + readonly repo: string; +}; + +export type PorterAuthor = { + readonly id: number; + readonly remote_id: string; + readonly remote_name: string; + readonly email: string; + readonly name: string; + readonly url: string; + readonly import_url: string; +}; export type MigrationsGetCommitAuthors200ResponseBody = ReadonlyArray; export type MigrationsGetCommitAuthors404ResponseBody = BasicError; -export type MigrationsGetCommitAuthorsRequestQuery = { readonly "since"?: number }; +export type MigrationsGetCommitAuthorsRequestQuery = { + readonly since?: number; +}; -export type MigrationsGetCommitAuthorsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type MigrationsGetCommitAuthorsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type MigrationsMapCommitAuthor200ResponseBody = PorterAuthor; @@ -3946,23 +10542,43 @@ export type MigrationsMapCommitAuthor404ResponseBody = BasicError; export type MigrationsMapCommitAuthor422ResponseBody = ValidationError; -export type MigrationsMapCommitAuthorRequestBody = { readonly "email"?: string; readonly "name"?: string }; +export type MigrationsMapCommitAuthorRequestBody = { + readonly email?: string; + readonly name?: string; +}; -export type MigrationsMapCommitAuthorRequestPath = { readonly "owner": string; readonly "repo": string; readonly "author_id": number }; +export type MigrationsMapCommitAuthorRequestPath = { + readonly owner: string; + readonly repo: string; + readonly author_id: number; +}; -export type PorterLargeFile = { readonly "ref_name": string; readonly "path": string; readonly "oid": string; readonly "size": number }; +export type PorterLargeFile = { + readonly ref_name: string; + readonly path: string; + readonly oid: string; + readonly size: number; +}; export type MigrationsGetLargeFiles200ResponseBody = ReadonlyArray; -export type MigrationsGetLargeFilesRequestPath = { readonly "owner": string; readonly "repo": string }; +export type MigrationsGetLargeFilesRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type MigrationsSetLfsPreference200ResponseBody = Import; export type MigrationsSetLfsPreference422ResponseBody = ValidationError; -export type MigrationsSetLfsPreferenceRequestBody = { readonly "use_lfs": "opt_in" | "opt_out" }; +export type MigrationsSetLfsPreferenceRequestBody = { + readonly use_lfs: 'opt_in' | 'opt_out'; +}; -export type MigrationsSetLfsPreferenceRequestPath = { readonly "owner": string; readonly "repo": string }; +export type MigrationsSetLfsPreferenceRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type AppsGetRepoInstallation200ResponseBody = Installation; @@ -3970,33 +10586,63 @@ export type AppsGetRepoInstallation301ResponseBody = BasicError; export type AppsGetRepoInstallation404ResponseBody = BasicError; -export type AppsGetRepoInstallationRequestPath = { readonly "owner": string; readonly "repo": string }; +export type AppsGetRepoInstallationRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type InteractionsGetRestrictionsForRepo200ResponseBody = InteractionLimits | { }; +export type InteractionsGetRestrictionsForRepo200ResponseBody = + | InteractionLimits + | {}; -export type InteractionsGetRestrictionsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type InteractionsGetRestrictionsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type InteractionsSetRestrictionsForRepo200ResponseBody = InteractionLimits; export type InteractionsSetRestrictionsForRepoRequestBody = InteractionRestrictions; -export type InteractionsSetRestrictionsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type InteractionsSetRestrictionsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; -export type InteractionsRemoveRestrictionsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type InteractionsRemoveRestrictionsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposListInvitations200ResponseBody = ReadonlyArray; -export type ReposListInvitationsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type ReposListInvitationsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type ReposListInvitationsRequestPath = { readonly "owner": string; readonly "repo": string }; +export type ReposListInvitationsRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type ReposUpdateInvitation200ResponseBody = RepositoryInvitation; -export type ReposUpdateInvitationRequestBody = { readonly "permissions"?: "read" | "write" | "maintain" | "triage" | "admin" }; +export type ReposUpdateInvitationRequestBody = { + readonly permissions?: 'read' | 'write' | 'maintain' | 'triage' | 'admin'; +}; -export type ReposUpdateInvitationRequestPath = { readonly "owner": string; readonly "repo": string; readonly "invitation_id": number }; +export type ReposUpdateInvitationRequestPath = { + readonly owner: string; + readonly repo: string; + readonly invitation_id: number; +}; -export type ReposDeleteInvitationRequestPath = { readonly "owner": string; readonly "repo": string; readonly "invitation_id": number }; +export type ReposDeleteInvitationRequestPath = { + readonly owner: string; + readonly repo: string; + readonly invitation_id: number; +}; export type IssuesListForRepo200ResponseBody = ReadonlyArray; @@ -4006,9 +10652,24 @@ export type IssuesListForRepo404ResponseBody = BasicError; export type IssuesListForRepo422ResponseBody = ValidationError; -export type IssuesListForRepoRequestQuery = { readonly "milestone"?: string; readonly "state"?: "open" | "closed" | "all"; readonly "assignee"?: string; readonly "creator"?: string; readonly "mentioned"?: string; readonly "labels"?: string; readonly "sort"?: "created" | "updated" | "comments"; readonly "direction"?: "asc" | "desc"; readonly "since"?: string; readonly "per_page"?: number; readonly "page"?: number }; - -export type IssuesListForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type IssuesListForRepoRequestQuery = { + readonly milestone?: string; + readonly state?: 'open' | 'closed' | 'all'; + readonly assignee?: string; + readonly creator?: string; + readonly mentioned?: string; + readonly labels?: string; + readonly sort?: 'created' | 'updated' | 'comments'; + readonly direction?: 'asc' | 'desc'; + readonly since?: string; + readonly per_page?: number; + readonly page?: number; +}; + +export type IssuesListForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type IssuesCreate201ResponseBody = Issue; @@ -4020,11 +10681,33 @@ export type IssuesCreate410ResponseBody = BasicError; export type IssuesCreate422ResponseBody = ValidationError; -export type IssuesCreate503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type IssuesCreateRequestBody = { readonly "title": string | number; readonly "body"?: string; readonly "assignee"?: string | null; readonly "milestone"?: string | number | null; readonly "labels"?: ReadonlyArray; readonly "assignees"?: ReadonlyArray }; - -export type IssuesCreateRequestPath = { readonly "owner": string; readonly "repo": string }; +export type IssuesCreate503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type IssuesCreateRequestBody = { + readonly title: string | number; + readonly body?: string; + readonly assignee?: string | null; + readonly milestone?: string | number | null; + readonly labels?: ReadonlyArray< + | string + | { + readonly id?: number; + readonly name?: string; + readonly description?: string | null; + readonly color?: string | null; + } + >; + readonly assignees?: ReadonlyArray; +}; + +export type IssuesCreateRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type IssuesListCommentsForRepo200ResponseBody = ReadonlyArray; @@ -4032,33 +10715,70 @@ export type IssuesListCommentsForRepo404ResponseBody = BasicError; export type IssuesListCommentsForRepo422ResponseBody = ValidationError; -export type IssuesListCommentsForRepoRequestQuery = { readonly "sort"?: "created" | "updated"; readonly "direction"?: "asc" | "desc"; readonly "since"?: string; readonly "per_page"?: number; readonly "page"?: number }; +export type IssuesListCommentsForRepoRequestQuery = { + readonly sort?: 'created' | 'updated'; + readonly direction?: 'asc' | 'desc'; + readonly since?: string; + readonly per_page?: number; + readonly page?: number; +}; -export type IssuesListCommentsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type IssuesListCommentsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type IssuesGetComment200ResponseBody = IssueComment; export type IssuesGetComment404ResponseBody = BasicError; -export type IssuesGetCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type IssuesGetCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; export type IssuesUpdateComment200ResponseBody = IssueComment; export type IssuesUpdateComment422ResponseBody = ValidationError; -export type IssuesUpdateCommentRequestBody = { readonly "body": string }; +export type IssuesUpdateCommentRequestBody = { readonly body: string }; -export type IssuesUpdateCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type IssuesUpdateCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; -export type IssuesDeleteCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type IssuesDeleteCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; export type ReactionsListForIssueComment200ResponseBody = ReadonlyArray; export type ReactionsListForIssueComment404ResponseBody = BasicError; -export type ReactionsListForIssueCommentRequestQuery = { readonly "content"?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; readonly "per_page"?: number; readonly "page"?: number }; - -export type ReactionsListForIssueCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; +export type ReactionsListForIssueCommentRequestQuery = { + readonly content?: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; + readonly per_page?: number; + readonly page?: number; +}; + +export type ReactionsListForIssueCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; export type ReactionsCreateForIssueComment200ResponseBody = Reaction; @@ -4066,31 +10786,94 @@ export type ReactionsCreateForIssueComment201ResponseBody = Reaction; export type ReactionsCreateForIssueComment422ResponseBody = ValidationError; -export type ReactionsCreateForIssueCommentRequestBody = { readonly "content": "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes" }; - -export type ReactionsCreateForIssueCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number }; - -export type ReactionsDeleteForIssueCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "comment_id": number; readonly "reaction_id": number }; - -export type IssueEventLabel = { readonly "name": string | null; readonly "color": string | null }; - -export type IssueEventDismissedReview = { readonly "state": string; readonly "review_id": number; readonly "dismissal_message": string | null; readonly "dismissal_commit_id"?: string | null }; - -export type IssueEventMilestone = { readonly "title": string }; - -export type IssueEventProjectCard = { readonly "url": string; readonly "id": number; readonly "project_url": string; readonly "project_id": number; readonly "column_name": string; readonly "previous_column_name"?: string }; - -export type IssueEventRename = { readonly "from": string; readonly "to": string }; - -export type IssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "issue"?: Issue; readonly "label"?: IssueEventLabel; readonly "assignee"?: SimpleUser; readonly "assigner"?: SimpleUser; readonly "review_requester"?: SimpleUser; readonly "requested_reviewer"?: SimpleUser; readonly "requested_team"?: Team; readonly "dismissed_review"?: IssueEventDismissedReview; readonly "milestone"?: IssueEventMilestone; readonly "project_card"?: IssueEventProjectCard; readonly "rename"?: IssueEventRename; readonly "author_association"?: AuthorAssociation; readonly "lock_reason"?: string | null; readonly "performed_via_github_app"?: GitHubApp }; +export type ReactionsCreateForIssueCommentRequestBody = { + readonly content: + | '+1' + | '-1' + | 'laugh' + | 'confused' + | 'heart' + | 'hooray' + | 'rocket' + | 'eyes'; +}; + +export type ReactionsCreateForIssueCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; +}; + +export type ReactionsDeleteForIssueCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly comment_id: number; + readonly reaction_id: number; +}; + +export type IssueEventLabel = { + readonly name: string | null; + readonly color: string | null; +}; + +export type IssueEventDismissedReview = { + readonly state: string; + readonly review_id: number; + readonly dismissal_message: string | null; + readonly dismissal_commit_id?: string | null; +}; + +export type IssueEventMilestone = { readonly title: string }; + +export type IssueEventProjectCard = { + readonly url: string; + readonly id: number; + readonly project_url: string; + readonly project_id: number; + readonly column_name: string; + readonly previous_column_name?: string; +}; + +export type IssueEventRename = { readonly from: string; readonly to: string }; + +export type IssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly issue?: Issue; + readonly label?: IssueEventLabel; + readonly assignee?: SimpleUser; + readonly assigner?: SimpleUser; + readonly review_requester?: SimpleUser; + readonly requested_reviewer?: SimpleUser; + readonly requested_team?: Team; + readonly dismissed_review?: IssueEventDismissedReview; + readonly milestone?: IssueEventMilestone; + readonly project_card?: IssueEventProjectCard; + readonly rename?: IssueEventRename; + readonly author_association?: AuthorAssociation; + readonly lock_reason?: string | null; + readonly performed_via_github_app?: GitHubApp; +}; export type IssuesListEventsForRepo200ResponseBody = ReadonlyArray; export type IssuesListEventsForRepo422ResponseBody = ValidationError; -export type IssuesListEventsForRepoRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; +export type IssuesListEventsForRepoRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; -export type IssuesListEventsForRepoRequestPath = { readonly "owner": string; readonly "repo": string }; +export type IssuesListEventsForRepoRequestPath = { + readonly owner: string; + readonly repo: string; +}; export type IssuesGetEvent200ResponseBody = IssueEvent; @@ -4100,7 +10883,11 @@ export type IssuesGetEvent404ResponseBody = BasicError; export type IssuesGetEvent410ResponseBody = BasicError; -export type IssuesGetEventRequestPath = { readonly "owner": string; readonly "repo": string; readonly "event_id": number }; +export type IssuesGetEventRequestPath = { + readonly owner: string; + readonly repo: string; + readonly event_id: number; +}; export type IssuesGet200ResponseBody = Issue; @@ -4110,7 +10897,11 @@ export type IssuesGet404ResponseBody = BasicError; export type IssuesGet410ResponseBody = BasicError; -export type IssuesGetRequestPath = { readonly "owner": string; readonly "repo": string; readonly "issue_number": number }; +export type IssuesGetRequestPath = { + readonly owner: string; + readonly repo: string; + readonly issue_number: number; +}; export type IssuesUpdate200ResponseBody = Issue; @@ -4124,23 +10915,60 @@ export type IssuesUpdate410ResponseBody = BasicError; export type IssuesUpdate422ResponseBody = ValidationError; -export type IssuesUpdate503ResponseBody = { readonly "code"?: string; readonly "message"?: string; readonly "documentation_url"?: string }; - -export type IssuesUpdateRequestBody = { readonly "title"?: string | number | null; readonly "body"?: string | null; readonly "assignee"?: string | null; readonly "state"?: "open" | "closed"; readonly "state_reason"?: "completed" | "not_planned" | "reopened" | null; readonly "milestone"?: string | number | null; readonly "labels"?: ReadonlyArray; readonly "assignees"?: ReadonlyArray }; - -export type IssuesUpdateRequestPath = { readonly "owner": string; readonly "repo": string; readonly "issue_number": number }; +export type IssuesUpdate503ResponseBody = { + readonly code?: string; + readonly message?: string; + readonly documentation_url?: string; +}; + +export type IssuesUpdateRequestBody = { + readonly title?: string | number | null; + readonly body?: string | null; + readonly assignee?: string | null; + readonly state?: 'open' | 'closed'; + readonly state_reason?: 'completed' | 'not_planned' | 'reopened' | null; + readonly milestone?: string | number | null; + readonly labels?: ReadonlyArray< + | string + | { + readonly id?: number; + readonly name?: string; + readonly description?: string | null; + readonly color?: string | null; + } + >; + readonly assignees?: ReadonlyArray; +}; + +export type IssuesUpdateRequestPath = { + readonly owner: string; + readonly repo: string; + readonly issue_number: number; +}; export type IssuesAddAssignees201ResponseBody = Issue; -export type IssuesAddAssigneesRequestBody = { readonly "assignees"?: ReadonlyArray }; +export type IssuesAddAssigneesRequestBody = { + readonly assignees?: ReadonlyArray; +}; -export type IssuesAddAssigneesRequestPath = { readonly "owner": string; readonly "repo": string; readonly "issue_number": number }; +export type IssuesAddAssigneesRequestPath = { + readonly owner: string; + readonly repo: string; + readonly issue_number: number; +}; export type IssuesRemoveAssignees200ResponseBody = Issue; -export type IssuesRemoveAssigneesRequestBody = { readonly "assignees"?: ReadonlyArray }; +export type IssuesRemoveAssigneesRequestBody = { + readonly assignees?: ReadonlyArray; +}; -export type IssuesRemoveAssigneesRequestPath = { readonly "owner": string; readonly "repo": string; readonly "issue_number": number }; +export type IssuesRemoveAssigneesRequestPath = { + readonly owner: string; + readonly repo: string; + readonly issue_number: number; +}; export type IssuesListComments200ResponseBody = ReadonlyArray; @@ -4148,9 +10976,17 @@ export type IssuesListComments404ResponseBody = BasicError; export type IssuesListComments410ResponseBody = BasicError; -export type IssuesListCommentsRequestQuery = { readonly "since"?: string; readonly "per_page"?: number; readonly "page"?: number }; +export type IssuesListCommentsRequestQuery = { + readonly since?: string; + readonly per_page?: number; + readonly page?: number; +}; -export type IssuesListCommentsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "issue_number": number }; +export type IssuesListCommentsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly issue_number: number; +}; export type IssuesCreateComment201ResponseBody = IssueComment; @@ -4162,51 +10998,289 @@ export type IssuesCreateComment410ResponseBody = BasicError; export type IssuesCreateComment422ResponseBody = ValidationError; -export type IssuesCreateCommentRequestBody = { readonly "body": string }; - -export type IssuesCreateCommentRequestPath = { readonly "owner": string; readonly "repo": string; readonly "issue_number": number }; - -export type LabeledIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "label": { readonly "name": string; readonly "color": string } }; - -export type UnlabeledIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "label": { readonly "name": string; readonly "color": string } }; - -export type AssignedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "assignee": SimpleUser; readonly "assigner": SimpleUser }; - -export type UnassignedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "assignee": SimpleUser; readonly "assigner": SimpleUser }; - -export type MilestonedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "milestone": { readonly "title": string } }; - -export type DemilestonedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "milestone": { readonly "title": string } }; - -export type RenamedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "rename": { readonly "from": string; readonly "to": string } }; - -export type ReviewRequestedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "review_requester": SimpleUser; readonly "requested_team"?: Team; readonly "requested_reviewer"?: SimpleUser }; - -export type ReviewRequestRemovedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "review_requester": SimpleUser; readonly "requested_team"?: Team; readonly "requested_reviewer"?: SimpleUser }; - -export type ReviewDismissedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "dismissed_review": { readonly "state": string; readonly "review_id": number; readonly "dismissal_message": string | null; readonly "dismissal_commit_id"?: string } }; - -export type LockedIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "lock_reason": string | null }; - -export type AddedToProjectIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "project_card"?: { readonly "id": number; readonly "url": string; readonly "project_id": number; readonly "project_url": string; readonly "column_name": string; readonly "previous_column_name"?: string } }; - -export type MovedColumnInProjectIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "project_card"?: { readonly "id": number; readonly "url": string; readonly "project_id": number; readonly "project_url": string; readonly "column_name": string; readonly "previous_column_name"?: string } }; - -export type RemovedFromProjectIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "project_card"?: { readonly "id": number; readonly "url": string; readonly "project_id": number; readonly "project_url": string; readonly "column_name": string; readonly "previous_column_name"?: string } }; - -export type ConvertedNoteToIssueIssueEvent = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "actor": SimpleUser; readonly "event": string; readonly "commit_id": string | null; readonly "commit_url": string | null; readonly "created_at": string; readonly "performed_via_github_app": GitHubApp; readonly "project_card"?: { readonly "id": number; readonly "url": string; readonly "project_id": number; readonly "project_url": string; readonly "column_name": string; readonly "previous_column_name"?: string } }; - -export type IssueEventForIssue = LabeledIssueEvent | UnlabeledIssueEvent | AssignedIssueEvent | UnassignedIssueEvent | MilestonedIssueEvent | DemilestonedIssueEvent | RenamedIssueEvent | ReviewRequestedIssueEvent | ReviewRequestRemovedIssueEvent | ReviewDismissedIssueEvent | LockedIssueEvent | AddedToProjectIssueEvent | MovedColumnInProjectIssueEvent | RemovedFromProjectIssueEvent | ConvertedNoteToIssueIssueEvent; +export type IssuesCreateCommentRequestBody = { readonly body: string }; + +export type IssuesCreateCommentRequestPath = { + readonly owner: string; + readonly repo: string; + readonly issue_number: number; +}; + +export type LabeledIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly label: { readonly name: string; readonly color: string }; +}; + +export type UnlabeledIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly label: { readonly name: string; readonly color: string }; +}; + +export type AssignedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly assignee: SimpleUser; + readonly assigner: SimpleUser; +}; + +export type UnassignedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly assignee: SimpleUser; + readonly assigner: SimpleUser; +}; + +export type MilestonedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly milestone: { readonly title: string }; +}; + +export type DemilestonedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly milestone: { readonly title: string }; +}; + +export type RenamedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly rename: { readonly from: string; readonly to: string }; +}; + +export type ReviewRequestedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly review_requester: SimpleUser; + readonly requested_team?: Team; + readonly requested_reviewer?: SimpleUser; +}; + +export type ReviewRequestRemovedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly review_requester: SimpleUser; + readonly requested_team?: Team; + readonly requested_reviewer?: SimpleUser; +}; + +export type ReviewDismissedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly dismissed_review: { + readonly state: string; + readonly review_id: number; + readonly dismissal_message: string | null; + readonly dismissal_commit_id?: string; + }; +}; + +export type LockedIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly lock_reason: string | null; +}; + +export type AddedToProjectIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly project_card?: { + readonly id: number; + readonly url: string; + readonly project_id: number; + readonly project_url: string; + readonly column_name: string; + readonly previous_column_name?: string; + }; +}; + +export type MovedColumnInProjectIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly project_card?: { + readonly id: number; + readonly url: string; + readonly project_id: number; + readonly project_url: string; + readonly column_name: string; + readonly previous_column_name?: string; + }; +}; + +export type RemovedFromProjectIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly project_card?: { + readonly id: number; + readonly url: string; + readonly project_id: number; + readonly project_url: string; + readonly column_name: string; + readonly previous_column_name?: string; + }; +}; + +export type ConvertedNoteToIssueIssueEvent = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly actor: SimpleUser; + readonly event: string; + readonly commit_id: string | null; + readonly commit_url: string | null; + readonly created_at: string; + readonly performed_via_github_app: GitHubApp; + readonly project_card?: { + readonly id: number; + readonly url: string; + readonly project_id: number; + readonly project_url: string; + readonly column_name: string; + readonly previous_column_name?: string; + }; +}; + +export type IssueEventForIssue = + | LabeledIssueEvent + | UnlabeledIssueEvent + | AssignedIssueEvent + | UnassignedIssueEvent + | MilestonedIssueEvent + | DemilestonedIssueEvent + | RenamedIssueEvent + | ReviewRequestedIssueEvent + | ReviewRequestRemovedIssueEvent + | ReviewDismissedIssueEvent + | LockedIssueEvent + | AddedToProjectIssueEvent + | MovedColumnInProjectIssueEvent + | RemovedFromProjectIssueEvent + | ConvertedNoteToIssueIssueEvent; export type IssuesListEvents200ResponseBody = ReadonlyArray; export type IssuesListEvents410ResponseBody = BasicError; -export type IssuesListEventsRequestQuery = { readonly "per_page"?: number; readonly "page"?: number }; - -export type IssuesListEventsRequestPath = { readonly "owner": string; readonly "repo": string; readonly "issue_number": number }; - -export type Label = { readonly "id": number; readonly "node_id": string; readonly "url": string; readonly "name": string; readonly "description": string | null; readonly "color": string; readonly "default": boolean }; +export type IssuesListEventsRequestQuery = { + readonly per_page?: number; + readonly page?: number; +}; + +export type IssuesListEventsRequestPath = { + readonly owner: string; + readonly repo: string; + readonly issue_number: number; +}; + +export type Label = { + readonly id: number; + readonly node_id: string; + readonly url: string; + readonly name: string; + readonly description: string | null; + readonly color: string; + readonly default: boolean; +}; export type IssuesListLabelsOnIssue200ResponseBody = ReadonlyArray