diff --git a/package-lock.json b/package-lock.json index fdb5fc821..dd75af5ff 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.2.0" + "@octokit/openapi-types": "^18.0.0" }, "devDependencies": { "@pika/pack": "^0.3.7", @@ -2075,9 +2075,9 @@ } }, "node_modules/@octokit/openapi-types": { - "version": "17.2.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.2.0.tgz", - "integrity": "sha512-MazrFNx4plbLsGl+LFesMo96eIXkFgEtaKbnNpdh4aQ0VM10aoylFsTYP1AEjkeoRNZiiPe3T6Gl2Hr8dJWdlQ==" + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.0.0.tgz", + "integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==" }, "node_modules/@octokit/plugin-paginate-rest": { "version": "7.0.0", @@ -2173,6 +2173,12 @@ "@octokit/openapi-types": "^17.2.0" } }, + "node_modules/@octokit/types/node_modules/@octokit/openapi-types": { + "version": "17.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.2.0.tgz", + "integrity": "sha512-MazrFNx4plbLsGl+LFesMo96eIXkFgEtaKbnNpdh4aQ0VM10aoylFsTYP1AEjkeoRNZiiPe3T6Gl2Hr8dJWdlQ==", + "dev": true + }, "node_modules/@pika/babel-plugin-esm-import-rewrite": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/@pika/babel-plugin-esm-import-rewrite/-/babel-plugin-esm-import-rewrite-0.6.1.tgz", @@ -14115,9 +14121,9 @@ } }, "@octokit/openapi-types": { - "version": "17.2.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.2.0.tgz", - "integrity": "sha512-MazrFNx4plbLsGl+LFesMo96eIXkFgEtaKbnNpdh4aQ0VM10aoylFsTYP1AEjkeoRNZiiPe3T6Gl2Hr8dJWdlQ==" + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-18.0.0.tgz", + "integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw==" }, "@octokit/plugin-paginate-rest": { "version": "7.0.0", @@ -14187,6 +14193,14 @@ "dev": true, "requires": { "@octokit/openapi-types": "^17.2.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "17.2.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-17.2.0.tgz", + "integrity": "sha512-MazrFNx4plbLsGl+LFesMo96eIXkFgEtaKbnNpdh4aQ0VM10aoylFsTYP1AEjkeoRNZiiPe3T6Gl2Hr8dJWdlQ==", + "dev": true + } } }, "@pika/babel-plugin-esm-import-rewrite": { diff --git a/package.json b/package.json index 3ca770295..ae44fdd68 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "description": "Shared TypeScript definitions for Octokit projects", "dependencies": { - "@octokit/openapi-types": "^17.2.0" + "@octokit/openapi-types": "^18.0.0" }, "scripts": { "build": "pika-pack build", @@ -105,6 +105,6 @@ ] }, "octokit": { - "openapi-version": "11.2.0" + "openapi-version": "12.0.0" } } diff --git a/scripts/update-endpoints/generated/endpoints.json b/scripts/update-endpoints/generated/endpoints.json index 4f3bb0cb4..96c6a5458 100644 --- a/scripts/update-endpoints/generated/endpoints.json +++ b/scripts/update-endpoints/generated/endpoints.json @@ -654,6 +654,45 @@ "previews": [], "renamed": null }, + { + "method": "POST", + "url": "/orgs/{org}/actions/runners/generate-jitconfig", + "documentationUrl": "https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization", + "parameters": [ + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "name" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "runner_group_id" + }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "labels" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "work_folder" } + ], + "previews": [], + "renamed": null + }, + { + "method": "POST", + "url": "/repos/{owner}/{repo}/actions/runners/generate-jitconfig", + "documentationUrl": "https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-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": "name" }, + { + "alias": null, + "deprecated": null, + "in": "BODY", + "name": "runner_group_id" + }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "labels" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "work_folder" } + ], + "previews": [], + "renamed": null + }, { "method": "GET", "url": "/repos/{owner}/{repo}/actions/caches", @@ -4304,6 +4343,7 @@ }, { "alias": null, "deprecated": null, "in": "BODY", "name": "ref" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "location" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "geo" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "machine" }, { @@ -4460,6 +4500,7 @@ "name": "pull_number" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "location" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "geo" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "machine" }, { @@ -4511,6 +4552,7 @@ { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "ref" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "location" }, + { "alias": null, "deprecated": null, "in": "BODY", "name": "geo" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "client_ip" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "machine" }, { @@ -5954,8 +5996,7 @@ { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, { "alias": null, "deprecated": null, "in": "BODY", "name": "ref" }, - { "alias": null, "deprecated": null, "in": "BODY", "name": "sha" }, - { "alias": null, "deprecated": null, "in": "BODY", "name": "key" } + { "alias": null, "deprecated": null, "in": "BODY", "name": "sha" } ], "previews": [], "renamed": null @@ -12360,7 +12401,9 @@ "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, - { "alias": null, "deprecated": null, "in": "PATH", "name": "branch" } + { "alias": null, "deprecated": null, "in": "PATH", "name": "branch" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" } ], "previews": [], "renamed": null @@ -12646,7 +12689,9 @@ "url": "/orgs/{org}/rulesets", "documentationUrl": "https://docs.github.com/rest/repos/rules#get-organization-rulesets", "parameters": [ - { "alias": null, "deprecated": null, "in": "PATH", "name": "org" } + { "alias": null, "deprecated": null, "in": "PATH", "name": "org" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" } ], "previews": [], "renamed": null @@ -12805,6 +12850,8 @@ "parameters": [ { "alias": null, "deprecated": null, "in": "PATH", "name": "owner" }, { "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }, + { "alias": null, "deprecated": null, "in": "QUERY", "name": "page" }, { "alias": null, "deprecated": null, diff --git a/src/generated/Endpoints.ts b/src/generated/Endpoints.ts index 6b8cbbf82..ea5224014 100644 --- a/src/generated/Endpoints.ts +++ b/src/generated/Endpoints.ts @@ -4533,6 +4533,13 @@ export interface Endpoints { "/orgs/{org}/actions/required_workflows", "post" >; + /** + * @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-an-organization + */ + "POST /orgs/{org}/actions/runners/generate-jitconfig": Operation< + "/orgs/{org}/actions/runners/generate-jitconfig", + "post" + >; /** * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization */ @@ -4701,6 +4708,13 @@ export interface Endpoints { "/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun", "post" >; + /** + * @see https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository + */ + "POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig": Operation< + "/repos/{owner}/{repo}/actions/runners/generate-jitconfig", + "post" + >; /** * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository */