diff --git a/package-lock.json b/package-lock.json index ea48b7dd7..bc9753f12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/openapi-types": "^17.0.0" + "@octokit/openapi-types": "^17.1.0" }, "devDependencies": { "@pika/pack": "^0.3.7", @@ -1973,9 +1973,9 @@ } }, "node_modules/@octokit/openapi-types": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.0.0.tgz", - "integrity": "sha512-V8BVJGN0ZmMlURF55VFHFd/L92XQQ43KvFjNmY1IYbCN3V/h/uUFV6iQi19WEHM395Nn+1qhUbViCAD/1czzog==" + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.1.0.tgz", + "integrity": "sha512-rnI26BAITDZTo5vqFOmA7oX4xRd18rO+gcK4MiTpJmsRMxAw0JmevNjPsjpry1bb9SVNo56P/0kbiyXXa4QluA==" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "6.0.0", @@ -13821,9 +13821,9 @@ } }, "@octokit/openapi-types": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.0.0.tgz", - "integrity": "sha512-V8BVJGN0ZmMlURF55VFHFd/L92XQQ43KvFjNmY1IYbCN3V/h/uUFV6iQi19WEHM395Nn+1qhUbViCAD/1czzog==" + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.1.0.tgz", + "integrity": "sha512-rnI26BAITDZTo5vqFOmA7oX4xRd18rO+gcK4MiTpJmsRMxAw0JmevNjPsjpry1bb9SVNo56P/0kbiyXXa4QluA==" }, "@octokit/plugin-paginate-rest": { "version": "6.0.0", diff --git a/package.json b/package.json index 039812f1b..d27363bc3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "description": "Shared TypeScript definitions for Octokit projects", "dependencies": { - "@octokit/openapi-types": "^17.0.0" + "@octokit/openapi-types": "^17.1.0" }, "scripts": { "build": "pika-pack build", @@ -105,6 +105,6 @@ ] }, "octokit": { - "openapi-version": "11.0.0" + "openapi-version": "11.1.0" } } diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 40f237bf3..4f3bb0cb4 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -1750,6 +1750,18 @@ "previews": [], "renamed": null }, + { + "method": "POST", + "url": "/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule", + "documentationUrl": "https://docs.github.com/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "run_id" } + ], + "previews": [], + "renamed": null + }, { "method": "POST", "url": "/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments", @@ -10779,6 +10791,29 @@ "previews": [], "renamed": null }, + { + "method": "POST", + "url": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules", + "documentationUrl": "https://docs.github.com/rest/deployments/deployment-protection-rules#create-a-deployment-protection-rule", + "parameters": [ + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "environment_name" + }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "integration_id" + } + ], + "previews": [], + "renamed": null + }, { "method": "POST", "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", @@ -12024,6 +12059,29 @@ "previews": [], "renamed": null }, + { + "method": "DELETE", + "url": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}", + "documentationUrl": "https://docs.github.com/rest/deployments/protection-rules#disable-deployment-protection-rule", + "parameters": [ + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "environment_name" + }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "protection_rule_id" + } + ], + "previews": [], + "renamed": null + }, { "method": "DELETE", "url": "/repos/{owner}/{repo}/lfs", @@ -12192,6 +12250,23 @@ "previews": [], "renamed": null }, + { + "method": "GET", + "url": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules", + "documentationUrl": "https://docs.github.com/rest/deployments/protection-rules#get-all-deployment-protection-rules", + "parameters": [ + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "environment_name" + }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" } + ], + "previews": [], + "renamed": null + }, { "method": "GET", "url": "/repos/{owner}/{repo}/environments", @@ -12423,6 +12498,29 @@ "previews": [], "renamed": null }, + { + "method": "GET", + "url": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}", + "documentationUrl": "https://docs.github.com/rest/deployments/protection-rules#get-a-deployment-protection-rule", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "environment_name" + }, + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "protection_rule_id" + } + ], + "previews": [], + "renamed": null + }, { "method": "GET", "url": "/repos/{owner}/{repo}/keys/{key_id}", @@ -12961,6 +13059,25 @@ "previews": [], "renamed": null }, + { + "method": "GET", + "url": "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps", + "documentationUrl": "https://docs.github.com/rest/deployments/protection-rules#list-custom-deployment-rule-integrations", + "parameters": [ + { + "alias": null, + "deprecated": null, + "in": "PATH", + "name": "environment_name" + }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" } + ], + "previews": [], + "renamed": null + }, { "method": "GET", "url": "/repos/{owner}/{repo}/keys", @@ -14803,6 +14920,74 @@ "previews": [], "renamed": null }, + { + "method": "POST", + "url": "/repos/{owner}/{repo}/security-advisories/reports", + "documentationUrl": "https://docs.github.com/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, + { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "summary" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "description" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "vulnerabilities" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "vulnerabilities[].package" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "vulnerabilities[].package.ecosystem" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "vulnerabilities[].package.name" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "vulnerabilities[].vulnerable_version_range" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "vulnerabilities[].patched_versions" + }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "vulnerabilities[].vulnerable_functions" + }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "cwe_ids" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "severity" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "cvss_vector_string" + } + ], + "previews": [], + "renamed": null + }, { "method": "POST", "url": "/repos/{owner}/{repo}/security-advisories", diff --git a/src/generated/Endpoints.ts b/src/generated/Endpoints.ts index 6a4570090..6b8cbbf82 100644 --- a/src/generated/Endpoints.ts +++ b/src/generated/Endpoints.ts @@ -686,6 +686,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", "delete" >; + /** + * @see https://docs.github.com/rest/deployments/protection-rules#disable-deployment-protection-rule + */ + "DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}": Operation< + "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}", + "delete" + >; /** * @see https://docs.github.com/rest/reference/git#delete-a-reference */ @@ -2778,6 +2785,27 @@ export interface Endpoints { "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}", "get" >; + /** + * @see https://docs.github.com/rest/deployments/protection-rules#get-all-deployment-protection-rules + */ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules": Operation< + "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules", + "get" + >; + /** + * @see https://docs.github.com/rest/deployments/protection-rules#list-custom-deployment-rule-integrations + */ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps": Operation< + "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps", + "get" + >; + /** + * @see https://docs.github.com/rest/deployments/protection-rules#get-a-deployment-protection-rule + */ + "GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}": Operation< + "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}", + "get" + >; /** * @see https://docs.github.com/rest/reference/activity#list-repository-events */ @@ -4708,6 +4736,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/actions/runs/{run_id}/cancel", "post" >; + /** + * @see https://docs.github.com/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run + */ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule": Operation< + "/repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule", + "post" + >; /** * @see https://docs.github.com/rest/reference/actions#review-pending-deployments-for-a-workflow-run */ @@ -4890,6 +4925,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies", "post" >; + /** + * @see https://docs.github.com/rest/deployments/deployment-protection-rules#create-a-deployment-protection-rule + */ + "POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules": Operation< + "/repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules", + "post" + >; /** * @see https://docs.github.com/rest/reference/repos#create-a-fork */ @@ -5156,6 +5198,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/security-advisories", "post" >; + /** + * @see https://docs.github.com/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability + */ + "POST /repos/{owner}/{repo}/security-advisories/reports": Operation< + "/repos/{owner}/{repo}/security-advisories/reports", + "post" + >; /** * @see https://docs.github.com/rest/commits/statuses#create-a-commit-status */