From cf05067c617a4b97895b9b572c11c65db06d1780 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Tue, 9 Apr 2024 12:38:30 -0500 Subject: [PATCH] fix: description updates, new parameter for `enterprise-admin/license-upload`, `default_value` field can now also be `string[]` on custom_property (#411) WIP --- cache/api.github.com.json | 30 +++++++++++++++---- cache/ghec.json | 30 +++++++++++++++---- cache/ghes-3.10.json | 2 +- cache/ghes-3.11.json | 6 ++-- cache/ghes-3.12.json | 20 +++++++++++-- cache/ghes-3.9.json | 2 +- cache/github.ae.json | 2 +- packages/openapi-types-ghec/package.json | 2 +- packages/openapi-types-ghec/types.d.ts | 8 ++--- packages/openapi-types-ghes-3.10/package.json | 2 +- packages/openapi-types-ghes-3.11/package.json | 2 +- packages/openapi-types-ghes-3.11/types.d.ts | 4 +-- packages/openapi-types-ghes-3.12/package.json | 2 +- packages/openapi-types-ghes-3.12/types.d.ts | 11 +++++-- packages/openapi-types-ghes-3.9/package.json | 2 +- packages/openapi-types-github.ae/package.json | 2 +- packages/openapi-types/package.json | 2 +- packages/openapi-types/types.d.ts | 8 ++--- 18 files changed, 99 insertions(+), 38 deletions(-) diff --git a/cache/api.github.com.json b/cache/api.github.com.json index 8b8627a88..dc1d1b510 100644 --- a/cache/api.github.com.json +++ b/cache/api.github.com.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "16.0.0", + "version": "16.1.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": { @@ -16177,7 +16177,17 @@ "description": "Whether the property is required." }, "default_value": { - "type": "string", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ], "nullable": true, "description": "Default value of the property" }, @@ -98011,7 +98021,17 @@ "description": "Whether the property is required." }, "default_value": { - "type": "string", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ], "nullable": true, "description": "Default value of the property" }, @@ -100038,7 +100058,7 @@ "properties": { "alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce alerts block a ref update.", + "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "errors", @@ -100048,7 +100068,7 @@ }, "security_alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce security alerts block a ref update.", + "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "critical", diff --git a/cache/ghec.json b/cache/ghec.json index b7a93f9b4..5979192a0 100644 --- a/cache/ghec.json +++ b/cache/ghec.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "16.0.0", + "version": "16.1.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": { @@ -20814,7 +20814,17 @@ "description": "Whether the property is required." }, "default_value": { - "type": "string", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ], "nullable": true, "description": "Default value of the property" }, @@ -106553,7 +106563,17 @@ "description": "Whether the property is required." }, "default_value": { - "type": "string", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ], "nullable": true, "description": "Default value of the property" }, @@ -108580,7 +108600,7 @@ "properties": { "alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce alerts block a ref update.", + "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "errors", @@ -108590,7 +108610,7 @@ }, "security_alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce security alerts block a ref update.", + "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "critical", diff --git a/cache/ghes-3.10.json b/cache/ghes-3.10.json index 7fa93454a..8e502cb37 100644 --- a/cache/ghes-3.10.json +++ b/cache/ghes-3.10.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "16.0.0", + "version": "16.1.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": { diff --git a/cache/ghes-3.11.json b/cache/ghes-3.11.json index 8f56b77da..980efa3d3 100644 --- a/cache/ghes-3.11.json +++ b/cache/ghes-3.11.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "16.0.0", + "version": "16.1.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": { @@ -102168,7 +102168,7 @@ "properties": { "alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce alerts block a ref update.", + "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-server@3.11/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "errors", @@ -102178,7 +102178,7 @@ }, "security_alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce security alerts block a ref update.", + "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-server@3.11/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "critical", diff --git a/cache/ghes-3.12.json b/cache/ghes-3.12.json index 54a168982..0bcdc0042 100644 --- a/cache/ghes-3.12.json +++ b/cache/ghes-3.12.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "16.0.0", + "version": "16.1.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": { @@ -10946,6 +10946,11 @@ } } ], + "parameters": [ + { + "$ref": "#/components/parameters/license-apply" + } + ], "requestBody": { "required": true, "content": { @@ -104099,7 +104104,7 @@ "properties": { "alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce alerts block a ref update.", + "description": "The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-server@3.12/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "errors", @@ -104109,7 +104114,7 @@ }, "security_alerts_threshold": { "type": "string", - "description": "The threshold at which code scanning results that introduce security alerts block a ref update.", + "description": "The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see \"[About code scanning alerts](https://docs.github.com/enterprise-server@3.12/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels).\"", "enum": [ "none", "critical", @@ -301849,6 +301854,15 @@ "type": "string" } }, + "license-apply": { + "name": "apply", + "description": "Whether to apply changes from the license. Uploading a license does not automatically apply changes. To make the changes effective, you can specify to apply the license too.", + "in": "query", + "required": false, + "schema": { + "type": "boolean" + } + }, "uuid": { "name": "uuid", "description": "The UUID which identifies a node.", diff --git a/cache/ghes-3.9.json b/cache/ghes-3.9.json index d5953e41e..83ebc4f04 100644 --- a/cache/ghes-3.9.json +++ b/cache/ghes-3.9.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "16.0.0", + "version": "16.1.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": { diff --git a/cache/github.ae.json b/cache/github.ae.json index c41e052f6..331176a05 100644 --- a/cache/github.ae.json +++ b/cache/github.ae.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "16.0.0", + "version": "16.1.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": { diff --git a/packages/openapi-types-ghec/package.json b/packages/openapi-types-ghec/package.json index c79c3dd22..c0b9cb674 100644 --- a/packages/openapi-types-ghec/package.json +++ b/packages/openapi-types-ghec/package.json @@ -16,6 +16,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "16.0.0" + "openapi-version": "16.1.0" } } diff --git a/packages/openapi-types-ghec/types.d.ts b/packages/openapi-types-ghec/types.d.ts index 31257c3e0..aa4bfda74 100644 --- a/packages/openapi-types-ghec/types.d.ts +++ b/packages/openapi-types-ghec/types.d.ts @@ -16615,7 +16615,7 @@ export interface components { /** @description Whether the property is required. */ required?: boolean; /** @description Default value of the property */ - default_value?: string | null; + default_value?: string | string[] | null; /** @description Short description of the property */ description?: string | null; /** @@ -17691,12 +17691,12 @@ export interface components { */ "repository-rule-params-code-scanning-tool": { /** - * @description The threshold at which code scanning results that introduce alerts block a ref update. + * @description The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all"; /** - * @description The threshold at which code scanning results that introduce security alerts block a ref update. + * @description The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ security_alerts_threshold: @@ -100565,7 +100565,7 @@ export interface operations { /** @description Whether the property is required. */ required?: boolean; /** @description Default value of the property */ - default_value?: string | null; + default_value?: string | string[] | null; /** @description Short description of the property */ description?: string | null; /** diff --git a/packages/openapi-types-ghes-3.10/package.json b/packages/openapi-types-ghes-3.10/package.json index c47910cf2..d13c3bba2 100644 --- a/packages/openapi-types-ghes-3.10/package.json +++ b/packages/openapi-types-ghes-3.10/package.json @@ -16,6 +16,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "16.0.0" + "openapi-version": "16.1.0" } } diff --git a/packages/openapi-types-ghes-3.11/package.json b/packages/openapi-types-ghes-3.11/package.json index c577cef94..9554d937b 100644 --- a/packages/openapi-types-ghes-3.11/package.json +++ b/packages/openapi-types-ghes-3.11/package.json @@ -16,6 +16,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "16.0.0" + "openapi-version": "16.1.0" } } diff --git a/packages/openapi-types-ghes-3.11/types.d.ts b/packages/openapi-types-ghes-3.11/types.d.ts index 211af15d5..bdf02295c 100644 --- a/packages/openapi-types-ghes-3.11/types.d.ts +++ b/packages/openapi-types-ghes-3.11/types.d.ts @@ -15313,12 +15313,12 @@ export interface components { */ "repository-rule-params-code-scanning-tool": { /** - * @description The threshold at which code scanning results that introduce alerts block a ref update. + * @description The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-server@3.11/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all"; /** - * @description The threshold at which code scanning results that introduce security alerts block a ref update. + * @description The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-server@3.11/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ security_alerts_threshold: diff --git a/packages/openapi-types-ghes-3.12/package.json b/packages/openapi-types-ghes-3.12/package.json index 4f0f0cd01..75c5e724c 100644 --- a/packages/openapi-types-ghes-3.12/package.json +++ b/packages/openapi-types-ghes-3.12/package.json @@ -16,6 +16,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "16.0.0" + "openapi-version": "16.1.0" } } diff --git a/packages/openapi-types-ghes-3.12/types.d.ts b/packages/openapi-types-ghes-3.12/types.d.ts index 709c62c94..e34e72074 100644 --- a/packages/openapi-types-ghes-3.12/types.d.ts +++ b/packages/openapi-types-ghes-3.12/types.d.ts @@ -15731,12 +15731,12 @@ export interface components { */ "repository-rule-params-code-scanning-tool": { /** - * @description The threshold at which code scanning results that introduce alerts block a ref update. + * @description The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-server@3.12/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all"; /** - * @description The threshold at which code scanning results that introduce security alerts block a ref update. + * @description The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/enterprise-server@3.12/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ security_alerts_threshold: @@ -84295,6 +84295,8 @@ export interface components { "comment-id": number; /** @description A list of comma separated label names. Example: `bug,ui,@high` */ labels?: string; + /** @description Whether to apply changes from the license. Uploading a license does not automatically apply changes. To make the changes effective, you can specify to apply the license too. */ + "license-apply"?: boolean; /** @description The UUID which identifies a node. */ uuid?: string; /** @description The cluster roles from the cluster configuration file. */ @@ -89314,6 +89316,11 @@ export interface operations { * @description Uploads an enterprise license. This operation does not automatically activate the license. */ "enterprise-admin/license-upload": { + parameters: { + query?: { + apply?: components["parameters"]["license-apply"]; + }; + }; requestBody: { content: { "application/octet-stream": string; diff --git a/packages/openapi-types-ghes-3.9/package.json b/packages/openapi-types-ghes-3.9/package.json index f91c006e5..ebb23d1a7 100644 --- a/packages/openapi-types-ghes-3.9/package.json +++ b/packages/openapi-types-ghes-3.9/package.json @@ -16,6 +16,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "16.0.0" + "openapi-version": "16.1.0" } } diff --git a/packages/openapi-types-github.ae/package.json b/packages/openapi-types-github.ae/package.json index 7b2c2e1fd..1b3cb33fe 100644 --- a/packages/openapi-types-github.ae/package.json +++ b/packages/openapi-types-github.ae/package.json @@ -16,6 +16,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "16.0.0" + "openapi-version": "16.1.0" } } diff --git a/packages/openapi-types/package.json b/packages/openapi-types/package.json index cb8efe131..84fa7d167 100644 --- a/packages/openapi-types/package.json +++ b/packages/openapi-types/package.json @@ -16,6 +16,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "16.0.0" + "openapi-version": "16.1.0" } } diff --git a/packages/openapi-types/types.d.ts b/packages/openapi-types/types.d.ts index 9fc4c7528..b967dbdce 100644 --- a/packages/openapi-types/types.d.ts +++ b/packages/openapi-types/types.d.ts @@ -14824,7 +14824,7 @@ export interface components { /** @description Whether the property is required. */ required?: boolean; /** @description Default value of the property */ - default_value?: string | null; + default_value?: string | string[] | null; /** @description Short description of the property */ description?: string | null; /** @@ -15900,12 +15900,12 @@ export interface components { */ "repository-rule-params-code-scanning-tool": { /** - * @description The threshold at which code scanning results that introduce alerts block a ref update. + * @description The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ alerts_threshold: "none" | "errors" | "errors_and_warnings" | "all"; /** - * @description The threshold at which code scanning results that introduce security alerts block a ref update. + * @description The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." * @enum {string} */ security_alerts_threshold: @@ -95914,7 +95914,7 @@ export interface operations { /** @description Whether the property is required. */ required?: boolean; /** @description Default value of the property */ - default_value?: string | null; + default_value?: string | string[] | null; /** @description Short description of the property */ description?: string | null; /**