diff --git a/package-lock.json b/package-lock.json index d517ebcaa..5a4e7521c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/openapi-types": "^19.1.0" + "@octokit/openapi-types": "^20.0.0" }, "devDependencies": { "@octokit/tsconfig": "^2.0.0", @@ -250,9 +250,9 @@ } }, "node_modules/@octokit/openapi-types": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.1.0.tgz", - "integrity": "sha512-6G+ywGClliGQwRsjvqVYpklIfa7oRPA0vyhPQG/1Feh+B+wU0vGH1JiJ5T25d3g1JZYBHzR2qefLi9x8Gt+cpw==" + "version": "20.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", + "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "9.1.4", @@ -346,6 +346,12 @@ "@octokit/openapi-types": "^19.0.2" } }, + "node_modules/@octokit/types/node_modules/@octokit/openapi-types": { + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.1.0.tgz", + "integrity": "sha512-6G+ywGClliGQwRsjvqVYpklIfa7oRPA0vyhPQG/1Feh+B+wU0vGH1JiJ5T25d3g1JZYBHzR2qefLi9x8Gt+cpw==", + "dev": true + }, "node_modules/@pnpm/config.env-replace": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", diff --git a/package.json b/package.json index 0de2f3344..df449c7eb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "description": "Shared TypeScript definitions for Octokit projects", "dependencies": { - "@octokit/openapi-types": "^19.1.0" + "@octokit/openapi-types": "^20.0.0" }, "scripts": { "build": "node scripts/build.mjs && tsc -p tsconfig.json", @@ -80,6 +80,6 @@ ] }, "octokit": { - "openapi-version": "13.3.0" + "openapi-version": "14.0.0" } } diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 6aea232f0..80b5cb21e 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -2117,6 +2117,15 @@ ], "renamed": null }, + { + "method": "DELETE", + "url": "/notifications/threads/{thread_id}", + "documentationUrl": "https://docs.github.com/rest/activity/notifications#mark-a-thread-as-done", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "thread_id" } + ], + "renamed": null + }, { "method": "PATCH", "url": "/notifications/threads/{thread_id}", @@ -2279,12 +2288,24 @@ "in": "BODY", "name": "permissions.checks" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.codespaces" + }, { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions.contents" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.dependabot_secrets" + }, { "alias": null, "deprecated": null, @@ -2327,6 +2348,12 @@ "in": "BODY", "name": "permissions.pull_requests" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.repository_custom_properties" + }, { "alias": null, "deprecated": null, @@ -2399,18 +2426,36 @@ "in": "BODY", "name": "permissions.organization_custom_roles" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.organization_custom_org_roles" + }, { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions.organization_custom_properties" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.organization_copilot_seat_management" + }, { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions.organization_announcement_banners" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.organization_events" + }, { "alias": null, "deprecated": null, @@ -2470,6 +2515,48 @@ "deprecated": null, "in": "BODY", "name": "permissions.team_discussions" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.email_addresses" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.followers" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.git_ssh_keys" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.gpg_keys" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.interaction_limits" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.profile" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.starring" } ], "renamed": null @@ -2866,12 +2953,24 @@ "in": "BODY", "name": "permissions.checks" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.codespaces" + }, { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions.contents" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.dependabot_secrets" + }, { "alias": null, "deprecated": null, @@ -2914,6 +3013,12 @@ "in": "BODY", "name": "permissions.pull_requests" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.repository_custom_properties" + }, { "alias": null, "deprecated": null, @@ -2986,18 +3091,36 @@ "in": "BODY", "name": "permissions.organization_custom_roles" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.organization_custom_org_roles" + }, { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions.organization_custom_properties" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.organization_copilot_seat_management" + }, { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions.organization_announcement_banners" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.organization_events" + }, { "alias": null, "deprecated": null, @@ -3057,6 +3180,48 @@ "deprecated": null, "in": "BODY", "name": "permissions.team_discussions" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.email_addresses" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.followers" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.git_ssh_keys" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.gpg_keys" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.interaction_limits" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.profile" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "permissions.starring" } ], "renamed": null @@ -4884,7 +5049,7 @@ { "method": "POST", "url": "/orgs/{org}/copilot/billing/selected_teams", - "documentationUrl": "https://docs.github.com/rest/copilot/copilot-for-business#add-teams-to-the-copilot-for-business-subscription-for-an-organization", + "documentationUrl": "https://docs.github.com/rest/copilot/copilot-user-management#add-teams-to-the-copilot-subscription-for-an-organization", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, { @@ -4899,7 +5064,7 @@ { "method": "POST", "url": "/orgs/{org}/copilot/billing/selected_users", - "documentationUrl": "https://docs.github.com/rest/copilot/copilot-for-business#add-users-to-the-copilot-for-business-subscription-for-an-organization", + "documentationUrl": "https://docs.github.com/rest/copilot/copilot-user-management#add-users-to-the-copilot-subscription-for-an-organization", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, { @@ -4914,7 +5079,7 @@ { "method": "DELETE", "url": "/orgs/{org}/copilot/billing/selected_teams", - "documentationUrl": "https://docs.github.com/rest/copilot/copilot-for-business#remove-teams-from-the-copilot-for-business-subscription-for-an-organization", + "documentationUrl": "https://docs.github.com/rest/copilot/copilot-user-management#remove-teams-from-the-copilot-subscription-for-an-organization", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, { @@ -4929,7 +5094,7 @@ { "method": "DELETE", "url": "/orgs/{org}/copilot/billing/selected_users", - "documentationUrl": "https://docs.github.com/rest/copilot/copilot-for-business#remove-users-from-the-copilot-for-business-subscription-for-an-organization", + "documentationUrl": "https://docs.github.com/rest/copilot/copilot-user-management#remove-users-from-the-copilot-subscription-for-an-organization", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, { @@ -4944,7 +5109,7 @@ { "method": "GET", "url": "/orgs/{org}/copilot/billing", - "documentationUrl": "https://docs.github.com/rest/copilot/copilot-for-business#get-copilot-for-business-seat-information-and-settings-for-an-organization", + "documentationUrl": "https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-information-and-settings-for-an-organization", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "org" } ], @@ -4953,7 +5118,7 @@ { "method": "GET", "url": "/orgs/{org}/members/{username}/copilot", - "documentationUrl": "https://docs.github.com/rest/copilot/copilot-for-business#get-copilot-for-business-seat-assignment-details-for-a-user", + "documentationUrl": "https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-assignment-details-for-a-user", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, { "alias": null, "deprecated": null, "in": "PATH", "name": "username" } @@ -4963,7 +5128,7 @@ { "method": "GET", "url": "/orgs/{org}/copilot/billing/seats", - "documentationUrl": "https://docs.github.com/rest/copilot/copilot-for-business#list-all-copilot-for-business-seat-assignments-for-an-organization", + "documentationUrl": "https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-organization", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }, @@ -7257,6 +7422,28 @@ ], "renamed": null }, + { + "method": "PUT", + "url": "/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-team", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "team_slug" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" } + ], + "renamed": null + }, + { + "method": "PUT", + "url": "/orgs/{org}/organization-roles/users/{username}/{role_id}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-user", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "username" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" } + ], + "renamed": null + }, { "method": "PUT", "url": "/orgs/{org}/blocks/{username}", @@ -7323,6 +7510,23 @@ ], "renamed": null }, + { + "method": "POST", + "url": "/orgs/{org}/organization-roles", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#create-a-custom-organization-role", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "name" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "description" + }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions" } + ], + "renamed": null + }, { "method": "POST", "url": "/orgs/{org}/invitations", @@ -7378,6 +7582,12 @@ "deprecated": null, "in": "BODY", "name": "properties[].allowed_values" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "properties[].values_editable_by" } ], "renamed": null @@ -7498,6 +7708,16 @@ ], "renamed": null }, + { + "method": "DELETE", + "url": "/orgs/{org}/organization-roles/{role_id}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#delete-a-custom-organization-role", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" } + ], + "renamed": null + }, { "method": "DELETE", "url": "/orgs/{org}/hooks/{hook_id}", @@ -7577,6 +7797,16 @@ ], "renamed": null }, + { + "method": "GET", + "url": "/orgs/{org}/organization-roles/{role_id}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#get-an-organization-role", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" } + ], + "renamed": null + }, { "method": "GET", "url": "/orgs/{org}/hooks/{hook_id}", @@ -7730,6 +7960,48 @@ ], "renamed": null }, + { + "method": "GET", + "url": "/orgs/{org}/organization-roles/{role_id}/teams", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" } + ], + "renamed": null + }, + { + "method": "GET", + "url": "/orgs/{org}/organization-roles/{role_id}/users", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" } + ], + "renamed": null + }, + { + "method": "GET", + "url": "/orgs/{org}/organization-roles", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#get-all-organization-roles-for-an-organization", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" } + ], + "renamed": null + }, + { + "method": "GET", + "url": "/orgs/{org}/organization-fine-grained-permissions", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#list-organization-fine-grained-permissions-for-an-organization", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" } + ], + "renamed": null + }, { "method": "GET", "url": "/orgs/{org}/outside_collaborators", @@ -7909,6 +8181,24 @@ ], "renamed": null }, + { + "method": "PATCH", + "url": "/orgs/{org}/organization-roles/{role_id}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#update-a-custom-organization-role", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "name" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "description" + }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "permissions" } + ], + "renamed": null + }, { "method": "POST", "url": "/orgs/{org}/hooks/{hook_id}/pings", @@ -8029,6 +8319,48 @@ ], "renamed": null }, + { + "method": "DELETE", + "url": "/orgs/{org}/organization-roles/teams/{team_slug}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-team", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "team_slug" } + ], + "renamed": null + }, + { + "method": "DELETE", + "url": "/orgs/{org}/organization-roles/users/{username}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-user", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "username" } + ], + "renamed": null + }, + { + "method": "DELETE", + "url": "/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-team", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "team_slug" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" } + ], + "renamed": null + }, + { + "method": "DELETE", + "url": "/orgs/{org}/organization-roles/users/{username}/{role_id}", + "documentationUrl": "https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-user", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "username" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "role_id" } + ], + "renamed": null + }, { "method": "PUT", "url": "/orgs/{org}/memberships/{username}", @@ -10287,6 +10619,22 @@ ], "renamed": null }, + { + "method": "POST", + "url": "/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel", + "documentationUrl": "https://docs.github.com/rest/pages/pages#cancel-a-github-pages-deployment", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "pages_deployment_id" + } + ], + "renamed": null + }, { "method": "GET", "url": "/repos/{owner}/{repo}/automated-security-fixes", @@ -10842,6 +11190,29 @@ ], "renamed": null }, + { + "method": "PATCH", + "url": "/repos/{owner}/{repo}/properties/values", + "documentationUrl": "https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "properties" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "properties[].property_name" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "properties[].value" + } + ], + "renamed": null + }, { "method": "PUT", "url": "/repos/{owner}/{repo}/environments/{environment_name}", @@ -11121,11 +11492,17 @@ }, { "method": "POST", - "url": "/repos/{owner}/{repo}/pages/deployment", + "url": "/repos/{owner}/{repo}/pages/deployments", "documentationUrl": "https://docs.github.com/rest/pages/pages#create-a-github-pages-deployment", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "artifact_id" + }, { "alias": null, "deprecated": null, @@ -11469,18 +11846,6 @@ "in": "BODY", "name": "config.insecure_ssl" }, - { - "alias": null, - "deprecated": null, - "in": "BODY", - "name": "config.token" - }, - { - "alias": null, - "deprecated": null, - "in": "BODY", - "name": "config.digest" - }, { "alias": null, "deprecated": null, "in": "BODY", "name": "events" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "active" } ], @@ -12445,6 +12810,22 @@ ], "renamed": null }, + { + "method": "GET", + "url": "/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}", + "documentationUrl": "https://docs.github.com/rest/pages/pages#get-the-status-of-a-github-pages-deployment", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "pages_deployment_id" + } + ], + "renamed": null + }, { "method": "GET", "url": "/repos/{owner}/{repo}/pages/health", @@ -12753,11 +13134,10 @@ { "method": "GET", "url": "/repos/{owner}/{repo}/autolinks", - "documentationUrl": "https://docs.github.com/rest/repos/autolinks#list-all-autolinks-of-a-repository", + "documentationUrl": "https://docs.github.com/rest/repos/autolinks#get-all-autolinks-of-a-repository", "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, - { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, - { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" } + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" } ], "renamed": null }, @@ -14433,18 +14813,6 @@ "in": "BODY", "name": "config.insecure_ssl" }, - { - "alias": null, - "deprecated": null, - "in": "BODY", - "name": "config.address" - }, - { - "alias": null, - "deprecated": null, - "in": "BODY", - "name": "config.room" - }, { "alias": null, "deprecated": null, "in": "BODY", "name": "events" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "add_events" }, { @@ -14737,6 +15105,17 @@ ], "renamed": null }, + { + "method": "POST", + "url": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks", + "documentationUrl": "https://docs.github.com/rest/security-advisories/repository-advisories#create-a-temporary-private-fork", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "ghsa_id" } + ], + "renamed": null + }, { "method": "POST", "url": "/repos/{owner}/{repo}/security-advisories/reports", @@ -14800,6 +15179,12 @@ "deprecated": null, "in": "BODY", "name": "cvss_vector_string" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "start_private_fork" } ], "renamed": null @@ -14881,6 +15266,12 @@ "deprecated": null, "in": "BODY", "name": "cvss_vector_string" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "start_private_fork" } ], "renamed": null diff --git a/src/generated/Endpoints.ts b/src/generated/Endpoints.ts index c5f121c1b..020cacc5e 100644 --- a/src/generated/Endpoints.ts +++ b/src/generated/Endpoints.ts @@ -36,12 +36,12 @@ type ExtractRequestBody = "requestBody" extends keyof T }[keyof T["requestBody"]["content"]]; } : "application/json" extends keyof T["requestBody"] - ? T["requestBody"]["application/json"] - : { - data: { - [K in keyof T["requestBody"]]: T["requestBody"][K]; - }[keyof T["requestBody"]]; - } + ? T["requestBody"]["application/json"] + : { + data: { + [K in keyof T["requestBody"]]: T["requestBody"][K]; + }[keyof T["requestBody"]]; + } : {}; type ToOctokitParameters = ExtractParameters & ExtractRequestBody>; @@ -152,6 +152,13 @@ export interface Endpoints { * @see https://docs.github.com/rest/apps/installations#revoke-an-installation-access-token */ "DELETE /installation/token": Operation<"/installation/token", "delete">; + /** + * @see https://docs.github.com/rest/activity/notifications#mark-a-thread-as-done + */ + "DELETE /notifications/threads/{thread_id}": Operation< + "/notifications/threads/{thread_id}", + "delete" + >; /** * @see https://docs.github.com/rest/activity/notifications#delete-a-thread-subscription */ @@ -248,14 +255,14 @@ export interface Endpoints { "delete" >; /** - * @see https://docs.github.com/rest/copilot/copilot-for-business#remove-teams-from-the-copilot-for-business-subscription-for-an-organization + * @see https://docs.github.com/rest/copilot/copilot-user-management#remove-teams-from-the-copilot-subscription-for-an-organization */ "DELETE /orgs/{org}/copilot/billing/selected_teams": Operation< "/orgs/{org}/copilot/billing/selected_teams", "delete" >; /** - * @see https://docs.github.com/rest/copilot/copilot-for-business#remove-users-from-the-copilot-for-business-subscription-for-an-organization + * @see https://docs.github.com/rest/copilot/copilot-user-management#remove-users-from-the-copilot-subscription-for-an-organization */ "DELETE /orgs/{org}/copilot/billing/selected_users": Operation< "/orgs/{org}/copilot/billing/selected_users", @@ -331,6 +338,41 @@ export interface Endpoints { "/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", "delete" >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-team + */ + "DELETE /orgs/{org}/organization-roles/teams/{team_slug}": Operation< + "/orgs/{org}/organization-roles/teams/{team_slug}", + "delete" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-team + */ + "DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}": Operation< + "/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}", + "delete" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#remove-all-organization-roles-for-a-user + */ + "DELETE /orgs/{org}/organization-roles/users/{username}": Operation< + "/orgs/{org}/organization-roles/users/{username}", + "delete" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#remove-an-organization-role-from-a-user + */ + "DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}": Operation< + "/orgs/{org}/organization-roles/users/{username}/{role_id}", + "delete" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#delete-a-custom-organization-role + */ + "DELETE /orgs/{org}/organization-roles/{role_id}": Operation< + "/orgs/{org}/organization-roles/{role_id}", + "delete" + >; /** * @see https://docs.github.com/rest/orgs/outside-collaborators#remove-outside-collaborator-from-an-organization */ @@ -1553,14 +1595,14 @@ export interface Endpoints { "get" >; /** - * @see https://docs.github.com/rest/copilot/copilot-for-business#get-copilot-for-business-seat-information-and-settings-for-an-organization + * @see https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-information-and-settings-for-an-organization */ "GET /orgs/{org}/copilot/billing": Operation< "/orgs/{org}/copilot/billing", "get" >; /** - * @see https://docs.github.com/rest/copilot/copilot-for-business#list-all-copilot-for-business-seat-assignments-for-an-organization + * @see https://docs.github.com/rest/copilot/copilot-user-management#list-all-copilot-seat-assignments-for-an-organization */ "GET /orgs/{org}/copilot/billing/seats": Operation< "/orgs/{org}/copilot/billing/seats", @@ -1703,7 +1745,7 @@ export interface Endpoints { "get" >; /** - * @see https://docs.github.com/rest/copilot/copilot-for-business#get-copilot-for-business-seat-assignment-details-for-a-user + * @see https://docs.github.com/rest/copilot/copilot-user-management#get-copilot-seat-assignment-details-for-a-user */ "GET /orgs/{org}/members/{username}/copilot": Operation< "/orgs/{org}/members/{username}/copilot", @@ -1741,6 +1783,41 @@ export interface Endpoints { "/orgs/{org}/migrations/{migration_id}/repositories", "get" >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#list-organization-fine-grained-permissions-for-an-organization + */ + "GET /orgs/{org}/organization-fine-grained-permissions": Operation< + "/orgs/{org}/organization-fine-grained-permissions", + "get" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#get-all-organization-roles-for-an-organization + */ + "GET /orgs/{org}/organization-roles": Operation< + "/orgs/{org}/organization-roles", + "get" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#get-an-organization-role + */ + "GET /orgs/{org}/organization-roles/{role_id}": Operation< + "/orgs/{org}/organization-roles/{role_id}", + "get" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#list-teams-that-are-assigned-to-an-organization-role + */ + "GET /orgs/{org}/organization-roles/{role_id}/teams": Operation< + "/orgs/{org}/organization-roles/{role_id}/teams", + "get" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#list-users-that-are-assigned-to-an-organization-role + */ + "GET /orgs/{org}/organization-roles/{role_id}/users": Operation< + "/orgs/{org}/organization-roles/{role_id}/users", + "get" + >; /** * @see https://docs.github.com/rest/orgs/outside-collaborators#list-outside-collaborators-for-an-organization */ @@ -2362,7 +2439,7 @@ export interface Endpoints { "get" >; /** - * @see https://docs.github.com/rest/repos/autolinks#list-all-autolinks-of-a-repository + * @see https://docs.github.com/rest/repos/autolinks#get-all-autolinks-of-a-repository */ "GET /repos/{owner}/{repo}/autolinks": Operation< "/repos/{owner}/{repo}/autolinks", @@ -3216,6 +3293,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/pages/builds/{build_id}", "get" >; + /** + * @see https://docs.github.com/rest/pages/pages#get-the-status-of-a-github-pages-deployment + */ + "GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}": Operation< + "/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}", + "get" + >; /** * @see https://docs.github.com/rest/pages/pages#get-a-dns-health-check-for-github-pages */ @@ -4263,6 +4347,13 @@ export interface Endpoints { "/orgs/{org}/hooks/{hook_id}/config", "patch" >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#update-a-custom-organization-role + */ + "PATCH /orgs/{org}/organization-roles/{role_id}": Operation< + "/orgs/{org}/organization-roles/{role_id}", + "patch" + >; /** * @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization */ @@ -4460,6 +4551,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/milestones/{milestone_number}", "patch" >; + /** + * @see https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository + */ + "PATCH /repos/{owner}/{repo}/properties/values": Operation< + "/repos/{owner}/{repo}/properties/values", + "patch" + >; /** * @see https://docs.github.com/rest/pulls/comments#update-a-review-comment-for-a-pull-request */ @@ -4657,14 +4755,14 @@ export interface Endpoints { "post" >; /** - * @see https://docs.github.com/rest/copilot/copilot-for-business#add-teams-to-the-copilot-for-business-subscription-for-an-organization + * @see https://docs.github.com/rest/copilot/copilot-user-management#add-teams-to-the-copilot-subscription-for-an-organization */ "POST /orgs/{org}/copilot/billing/selected_teams": Operation< "/orgs/{org}/copilot/billing/selected_teams", "post" >; /** - * @see https://docs.github.com/rest/copilot/copilot-for-business#add-users-to-the-copilot-for-business-subscription-for-an-organization + * @see https://docs.github.com/rest/copilot/copilot-user-management#add-users-to-the-copilot-subscription-for-an-organization */ "POST /orgs/{org}/copilot/billing/selected_users": Operation< "/orgs/{org}/copilot/billing/selected_users", @@ -4703,6 +4801,13 @@ export interface Endpoints { * @see https://docs.github.com/rest/migrations/orgs#start-an-organization-migration */ "POST /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "post">; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#create-a-custom-organization-role + */ + "POST /orgs/{org}/organization-roles": Operation< + "/orgs/{org}/organization-roles", + "post" + >; /** * @see https://docs.github.com/rest/packages/packages#restore-a-package-for-an-organization */ @@ -5240,8 +5345,15 @@ export interface Endpoints { /** * @see https://docs.github.com/rest/pages/pages#create-a-github-pages-deployment */ - "POST /repos/{owner}/{repo}/pages/deployment": Operation< - "/repos/{owner}/{repo}/pages/deployment", + "POST /repos/{owner}/{repo}/pages/deployments": Operation< + "/repos/{owner}/{repo}/pages/deployments", + "post" + >; + /** + * @see https://docs.github.com/rest/pages/pages#cancel-a-github-pages-deployment + */ + "POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel": Operation< + "/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel", "post" >; /** @@ -5356,6 +5468,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve", "post" >; + /** + * @see https://docs.github.com/rest/security-advisories/repository-advisories#create-a-temporary-private-fork + */ + "POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks": Operation< + "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks", + "post" + >; /** * @see https://docs.github.com/rest/commits/statuses#create-a-commit-status */ @@ -5694,6 +5813,20 @@ export interface Endpoints { "/orgs/{org}/memberships/{username}", "put" >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-team + */ + "PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}": Operation< + "/orgs/{org}/organization-roles/teams/{team_slug}/{role_id}", + "put" + >; + /** + * @see https://docs.github.com/rest/orgs/organization-roles#assign-an-organization-role-to-a-user + */ + "PUT /orgs/{org}/organization-roles/users/{username}/{role_id}": Operation< + "/orgs/{org}/organization-roles/users/{username}/{role_id}", + "put" + >; /** * @see https://docs.github.com/rest/orgs/outside-collaborators#convert-an-organization-member-to-outside-collaborator */