diff --git a/cache/openapi-schema.json b/cache/openapi-schema.json index 5eb34efe7..2e1929ce9 100644 --- a/cache/openapi-schema.json +++ b/cache/openapi-schema.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "2.6.0", + "version": "2.7.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" }, @@ -2963,7 +2963,7 @@ "/enterprises/{enterprise}/audit-log": { "get": { "summary": "Get the audit log for an enterprise", - "description": "**Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub.\n\nGets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the `admin:enterprise` scope.", + "description": "**Note:** The audit log REST API is currently in beta and is subject to change.\n\nGets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the `admin:enterprise` scope.", "operationId": "audit-log/get-audit-log", "tags": ["audit-log"], "externalDocs": { @@ -2976,6 +2976,7 @@ { "$ref": "#/components/parameters/audit-log-include" }, { "$ref": "#/components/parameters/audit-log-after" }, { "$ref": "#/components/parameters/audit-log-before" }, + { "$ref": "#/components/parameters/audit-log-order" }, { "$ref": "#/components/parameters/per_page" } ], "responses": { @@ -6925,7 +6926,7 @@ "/orgs/{org}/audit-log": { "get": { "summary": "Get the audit log for an organization", - "description": "**Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub.\n\nGets the audit log for an organization. For more information, see \"[Reviewing the audit log for your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization).\"\n\nTo use this endpoint, you must be an organization owner, and you must use an access token with the `admin:org` scope. GitHub Apps must have the `organization_administration` read permission to use this endpoint.", + "description": "**Note:** The audit log REST API is currently in beta and is subject to change.\n\nGets the audit log for an organization. For more information, see \"[Reviewing the audit log for your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization).\"\n\nTo use this endpoint, you must be an organization owner, and you must use an access token with the `admin:org` scope. GitHub Apps must have the `organization_administration` read permission to use this endpoint.", "operationId": "orgs/get-audit-log", "tags": ["orgs"], "externalDocs": { @@ -6938,6 +6939,7 @@ { "$ref": "#/components/parameters/audit-log-include" }, { "$ref": "#/components/parameters/audit-log-after" }, { "$ref": "#/components/parameters/audit-log-before" }, + { "$ref": "#/components/parameters/audit-log-order" }, { "$ref": "#/components/parameters/per_page" } ], "responses": { @@ -67082,6 +67084,13 @@ "required": false, "schema": { "type": "string" } }, + "audit-log-order": { + "name": "order", + "description": "The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`.\n\nThe default is `desc`.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["desc", "asc"] } + }, "gist_id": { "name": "gist_id", "description": "gist_id parameter", diff --git a/generated/types.ts b/generated/types.ts index ae40b63c2..ac24677e7 100644 --- a/generated/types.ts +++ b/generated/types.ts @@ -447,7 +447,7 @@ export interface paths { }; "/enterprises/{enterprise}/audit-log": { /** - * **Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub. + * **Note:** The audit log REST API is currently in beta and is subject to change. * * Gets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the `admin:enterprise` scope. */ @@ -1079,7 +1079,7 @@ export interface paths { }; "/orgs/{org}/audit-log": { /** - * **Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub. + * **Note:** The audit log REST API is currently in beta and is subject to change. * * Gets the audit log for an organization. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization)." * @@ -9461,6 +9461,12 @@ export interface components { "audit-log-after": string; /** A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. */ "audit-log-before": string; + /** + * The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. + * + * The default is `desc`. + */ + "audit-log-order": "desc" | "asc"; /** gist_id parameter */ gist_id: string; /** comment_id parameter */ @@ -11193,7 +11199,7 @@ export interface operations { }; }; /** - * **Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub. + * **Note:** The audit log REST API is currently in beta and is subject to change. * * Gets the audit log for an enterprise. To use this endpoint, you must be an enterprise admin, and you must use an access token with the `admin:enterprise` scope. */ @@ -11220,6 +11226,12 @@ export interface operations { after?: components["parameters"]["audit-log-after"]; /** A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. */ before?: components["parameters"]["audit-log-before"]; + /** + * The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. + * + * The default is `desc`. + */ + order?: components["parameters"]["audit-log-order"]; /** Results per page (max 100) */ per_page?: components["parameters"]["per_page"]; }; @@ -13512,7 +13524,7 @@ export interface operations { }; }; /** - * **Note:** The audit log REST API is currently in beta and is subject to change. To join the beta, talk to your services or sales contact at GitHub. + * **Note:** The audit log REST API is currently in beta and is subject to change. * * Gets the audit log for an organization. For more information, see "[Reviewing the audit log for your organization](https://docs.github.com/github/setting-up-and-managing-organizations-and-teams/reviewing-the-audit-log-for-your-organization)." * @@ -13540,6 +13552,12 @@ export interface operations { after?: components["parameters"]["audit-log-after"]; /** A cursor, as given in the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header). If specified, the query only searches for events before this cursor. */ before?: components["parameters"]["audit-log-before"]; + /** + * The order of audit log events. To list newest events first, specify `desc`. To list oldest events first, specify `asc`. + * + * The default is `desc`. + */ + order?: components["parameters"]["audit-log-order"]; /** Results per page (max 100) */ per_page?: components["parameters"]["per_page"]; }; diff --git a/package.json b/package.json index f59b54ce9..9c71425e5 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "branches": "main" }, "octokit": { - "openapi-version": "2.6.0" + "openapi-version": "2.7.0" }, "renovate": { "extends": [