From d402a687b3b1793be8d9ff358654a104dbc02128 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Tue, 5 Jul 2022 09:32:00 -0700 Subject: [PATCH] feat: add support for returning `dependency_snapshots`-specific rate limits in `GET /rate_limit` (see PR description for additional `fix`) (#193) --- cache/api.github.com.json | 11 +++++++---- cache/ghes-3.2.json | 6 +++--- cache/ghes-3.3.json | 6 +++--- cache/ghes-3.4.json | 6 +++--- cache/ghes-3.5.json | 10 ++++++---- cache/github.ae.json | 6 ++++-- packages/openapi-types-ghes-3.2/package.json | 2 +- packages/openapi-types-ghes-3.2/types.d.ts | 4 ++-- packages/openapi-types-ghes-3.3/package.json | 2 +- packages/openapi-types-ghes-3.3/types.d.ts | 4 ++-- packages/openapi-types-ghes-3.4/package.json | 2 +- packages/openapi-types-ghes-3.4/types.d.ts | 4 ++-- packages/openapi-types-ghes-3.5/package.json | 2 +- packages/openapi-types-ghes-3.5/types.d.ts | 4 ++-- packages/openapi-types-github.ae/package.json | 2 +- packages/openapi-types/package.json | 2 +- packages/openapi-types/types.d.ts | 5 +++-- 17 files changed, 43 insertions(+), 35 deletions(-) diff --git a/cache/api.github.com.json b/cache/api.github.com.json index 8ab89acee..3d00af08d 100644 --- a/cache/api.github.com.json +++ b/cache/api.github.com.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.4.0", + "version": "6.5.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -16944,7 +16944,7 @@ }, "post": { "summary": "Review pending deployments for a workflow run", - "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.", + "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.", "tags": ["actions"], "operationId": "actions/review-pending-deployments-for-run", "externalDocs": { @@ -17006,7 +17006,7 @@ }, "x-github": { "githubCloudOnly": false, - "enabledForGitHubApps": true, + "enabledForGitHubApps": false, "category": "actions", "subcategory": "workflow-runs" }, @@ -52557,7 +52557,10 @@ "actions_runner_registration": { "$ref": "#/components/schemas/rate-limit" }, - "scim": { "$ref": "#/components/schemas/rate-limit" } + "scim": { "$ref": "#/components/schemas/rate-limit" }, + "dependency_snapshots": { + "$ref": "#/components/schemas/rate-limit" + } }, "required": ["core", "search"] }, diff --git a/cache/ghes-3.2.json b/cache/ghes-3.2.json index 5f1a59972..7477d6371 100644 --- a/cache/ghes-3.2.json +++ b/cache/ghes-3.2.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.4.0", + "version": "6.5.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -15181,7 +15181,7 @@ }, "post": { "summary": "Review pending deployments for a workflow run", - "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.", + "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.", "tags": ["actions"], "operationId": "actions/review-pending-deployments-for-run", "externalDocs": { @@ -15243,7 +15243,7 @@ }, "x-github": { "githubCloudOnly": false, - "enabledForGitHubApps": true, + "enabledForGitHubApps": false, "category": "actions", "subcategory": "workflow-runs" }, diff --git a/cache/ghes-3.3.json b/cache/ghes-3.3.json index 461e86f5a..cb32c9c8a 100644 --- a/cache/ghes-3.3.json +++ b/cache/ghes-3.3.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.4.0", + "version": "6.5.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -14811,7 +14811,7 @@ }, "post": { "summary": "Review pending deployments for a workflow run", - "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.", + "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.", "tags": ["actions"], "operationId": "actions/review-pending-deployments-for-run", "externalDocs": { @@ -14873,7 +14873,7 @@ }, "x-github": { "githubCloudOnly": false, - "enabledForGitHubApps": true, + "enabledForGitHubApps": false, "category": "actions", "subcategory": "workflow-runs" }, diff --git a/cache/ghes-3.4.json b/cache/ghes-3.4.json index f0c0979e8..a220c8a2b 100644 --- a/cache/ghes-3.4.json +++ b/cache/ghes-3.4.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.4.0", + "version": "6.5.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -16045,7 +16045,7 @@ }, "post": { "summary": "Review pending deployments for a workflow run", - "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.", + "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.", "tags": ["actions"], "operationId": "actions/review-pending-deployments-for-run", "externalDocs": { @@ -16107,7 +16107,7 @@ }, "x-github": { "githubCloudOnly": false, - "enabledForGitHubApps": true, + "enabledForGitHubApps": false, "category": "actions", "subcategory": "workflow-runs" }, diff --git a/cache/ghes-3.5.json b/cache/ghes-3.5.json index ee9cd42c7..3077da763 100644 --- a/cache/ghes-3.5.json +++ b/cache/ghes-3.5.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.4.0", + "version": "6.5.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -14989,7 +14989,9 @@ "category": "rate-limit", "subcategory": null }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } } }, "/repos/{owner}/{repo}": { @@ -16884,7 +16886,7 @@ }, "post": { "summary": "Review pending deployments for a workflow run", - "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nAnyone with read access to the repository contents and deployments can use this endpoint.", + "description": "Approve or reject pending deployments that are waiting on approval by a required reviewer.\n\nRequired reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint.", "tags": ["actions"], "operationId": "actions/review-pending-deployments-for-run", "externalDocs": { @@ -16946,7 +16948,7 @@ }, "x-github": { "githubCloudOnly": false, - "enabledForGitHubApps": true, + "enabledForGitHubApps": false, "category": "actions", "subcategory": "workflow-runs" }, diff --git a/cache/github.ae.json b/cache/github.ae.json index 185988360..610e2bef8 100644 --- a/cache/github.ae.json +++ b/cache/github.ae.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "6.4.0", + "version": "6.5.0", "title": "GitHub's official OpenAPI spec + Octokit extension", "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, @@ -11635,7 +11635,9 @@ "category": "rate-limit", "subcategory": null }, - "x-octokit": {} + "x-octokit": { + "diff": { "api.github.com.json": { "type": "changed" } } + } } }, "/repos/{owner}/{repo}": { diff --git a/packages/openapi-types-ghes-3.2/package.json b/packages/openapi-types-ghes-3.2/package.json index 6e211c6b2..f514bb26b 100644 --- a/packages/openapi-types-ghes-3.2/package.json +++ b/packages/openapi-types-ghes-3.2/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.4.0" } + "octokit": { "openapi-version": "6.5.0" } } diff --git a/packages/openapi-types-ghes-3.2/types.d.ts b/packages/openapi-types-ghes-3.2/types.d.ts index 217bb34d5..9de2a7c8c 100644 --- a/packages/openapi-types-ghes-3.2/types.d.ts +++ b/packages/openapi-types-ghes-3.2/types.d.ts @@ -1801,7 +1801,7 @@ export interface paths { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ post: operations["actions/review-pending-deployments-for-run"]; }; @@ -18916,7 +18916,7 @@ export interface operations { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ "actions/review-pending-deployments-for-run": { parameters: { diff --git a/packages/openapi-types-ghes-3.3/package.json b/packages/openapi-types-ghes-3.3/package.json index 227d8e020..91ff6a81d 100644 --- a/packages/openapi-types-ghes-3.3/package.json +++ b/packages/openapi-types-ghes-3.3/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.4.0" } + "octokit": { "openapi-version": "6.5.0" } } diff --git a/packages/openapi-types-ghes-3.3/types.d.ts b/packages/openapi-types-ghes-3.3/types.d.ts index 1d63c0233..52907a58b 100644 --- a/packages/openapi-types-ghes-3.3/types.d.ts +++ b/packages/openapi-types-ghes-3.3/types.d.ts @@ -1818,7 +1818,7 @@ export interface paths { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ post: operations["actions/review-pending-deployments-for-run"]; }; @@ -19402,7 +19402,7 @@ export interface operations { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ "actions/review-pending-deployments-for-run": { parameters: { diff --git a/packages/openapi-types-ghes-3.4/package.json b/packages/openapi-types-ghes-3.4/package.json index b3d1f119d..330383c91 100644 --- a/packages/openapi-types-ghes-3.4/package.json +++ b/packages/openapi-types-ghes-3.4/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.4.0" } + "octokit": { "openapi-version": "6.5.0" } } diff --git a/packages/openapi-types-ghes-3.4/types.d.ts b/packages/openapi-types-ghes-3.4/types.d.ts index afa5a75c9..72b2b69e5 100644 --- a/packages/openapi-types-ghes-3.4/types.d.ts +++ b/packages/openapi-types-ghes-3.4/types.d.ts @@ -2067,7 +2067,7 @@ export interface paths { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ post: operations["actions/review-pending-deployments-for-run"]; }; @@ -20617,7 +20617,7 @@ export interface operations { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ "actions/review-pending-deployments-for-run": { parameters: { diff --git a/packages/openapi-types-ghes-3.5/package.json b/packages/openapi-types-ghes-3.5/package.json index dd1c3dac0..e3eb273ab 100644 --- a/packages/openapi-types-ghes-3.5/package.json +++ b/packages/openapi-types-ghes-3.5/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.4.0" } + "octokit": { "openapi-version": "6.5.0" } } diff --git a/packages/openapi-types-ghes-3.5/types.d.ts b/packages/openapi-types-ghes-3.5/types.d.ts index ae9bbd2bc..abf5475a9 100644 --- a/packages/openapi-types-ghes-3.5/types.d.ts +++ b/packages/openapi-types-ghes-3.5/types.d.ts @@ -2191,7 +2191,7 @@ export interface paths { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ post: operations["actions/review-pending-deployments-for-run"]; }; @@ -21860,7 +21860,7 @@ export interface operations { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ "actions/review-pending-deployments-for-run": { parameters: { diff --git a/packages/openapi-types-github.ae/package.json b/packages/openapi-types-github.ae/package.json index 4b2148751..804f4d8fb 100644 --- a/packages/openapi-types-github.ae/package.json +++ b/packages/openapi-types-github.ae/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.4.0" } + "octokit": { "openapi-version": "6.5.0" } } diff --git a/packages/openapi-types/package.json b/packages/openapi-types/package.json index be5c6a226..4ba3d7abd 100644 --- a/packages/openapi-types/package.json +++ b/packages/openapi-types/package.json @@ -12,5 +12,5 @@ "types": "types.d.ts", "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", - "octokit": { "openapi-version": "6.4.0" } + "octokit": { "openapi-version": "6.5.0" } } diff --git a/packages/openapi-types/types.d.ts b/packages/openapi-types/types.d.ts index 7f00b86b1..5fe34d67c 100644 --- a/packages/openapi-types/types.d.ts +++ b/packages/openapi-types/types.d.ts @@ -2513,7 +2513,7 @@ export interface paths { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ post: operations["actions/review-pending-deployments-for-run"]; }; @@ -9416,6 +9416,7 @@ export interface components { code_scanning_upload?: components["schemas"]["rate-limit"]; actions_runner_registration?: components["schemas"]["rate-limit"]; scim?: components["schemas"]["rate-limit"]; + dependency_snapshots?: components["schemas"]["rate-limit"]; }; rate: components["schemas"]["rate-limit"]; }; @@ -23938,7 +23939,7 @@ export interface operations { /** * Approve or reject pending deployments that are waiting on approval by a required reviewer. * - * Anyone with read access to the repository contents and deployments can use this endpoint. + * Required reviewers with read access to the repository contents and deployments can use this endpoint. Required reviewers must authenticate using an access token with the `repo` scope to use this endpoint. */ "actions/review-pending-deployments-for-run": { parameters: {