diff --git a/cache/api.github.com.json b/cache/api.github.com.json index 78cdf54cc..0c8823da5 100644 --- a/cache/api.github.com.json +++ b/cache/api.github.com.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "7.11.0", + "version": "7.12.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": { @@ -3579,7 +3579,7 @@ "/enterprises/{enterprise}/consumed-licenses": { "get": { "summary": "List enterprise consumed licenses", - "description": "Lists the license consumption information for all users, including those from connected servers, associated with an enterprise.\nTo use this endpoint, you must be an enterprise admin, and you must use an access\ntoken with the `read:enterprise` scope.", + "description": "Lists the license consumption information for all users, including those from connected servers, associated with an enterprise.\nTo use this endpoint, you must be an enterprise admin, and you must use an access\ntoken with the `read:enterprise` scope.\n\n**Note:** The license consumption API endpoints for enterprise accounts are currently\nin Beta and are subject to change.", "tags": [ "enterprise-admin" ], @@ -29439,6 +29439,22 @@ "default": "all" } }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + } + }, { "$ref": "#/components/parameters/per-page" }, @@ -31166,7 +31182,7 @@ }, "put": { "summary": "Create or update file contents", - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "tags": [ "repos" ], @@ -34593,7 +34609,7 @@ "/repos/{owner}/{repo}/hooks": { "get": { "summary": "List repository webhooks", - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "tags": [ "repos" ], @@ -63849,7 +63865,15 @@ }, "github_com_enterprise_role": { "type": "string", - "nullable": true + "nullable": true, + "description": "Deprecated: The most permissive enterprise role for a user." + }, + "github_com_enterprise_roles": { + "type": "array", + "description": "All enterprise roles for a user.", + "items": { + "type": "string" + } }, "visual_studio_subscription_user": { "type": "boolean" @@ -90734,6 +90758,9 @@ "org2:Owner" ], "github_com_enterprise_role": "owner", + "github_com_enterprise_roles": [ + "owner" + ], "visual_studio_subscription_user": false, "github_com_verified_domain_emails": [ "monalisa@github.com" @@ -90762,6 +90789,7 @@ "license_type": "enterprise", "github_com_member_roles": [], "github_com_enterprise_role": "", + "github_com_enterprise_roles": [], "visual_studio_subscription_user": false, "github_com_verified_domain_emails": [], "github_com_saml_name_id": "", diff --git a/cache/ghes-3.2.json b/cache/ghes-3.2.json index 25d63e82c..413304e9a 100644 --- a/cache/ghes-3.2.json +++ b/cache/ghes-3.2.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "7.11.0", + "version": "7.12.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": { @@ -25544,6 +25544,22 @@ "default": "all" } }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + } + }, { "$ref": "#/components/parameters/per-page" }, @@ -27431,7 +27447,7 @@ }, "put": { "summary": "Create or update file contents", - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "tags": [ "repos" ], @@ -30496,7 +30512,7 @@ "/repos/{owner}/{repo}/hooks": { "get": { "summary": "List repository webhooks", - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "tags": [ "repos" ], diff --git a/cache/ghes-3.3.json b/cache/ghes-3.3.json index 546d420de..ae3119248 100644 --- a/cache/ghes-3.3.json +++ b/cache/ghes-3.3.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "7.11.0", + "version": "7.12.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": { @@ -25497,6 +25497,22 @@ "default": "all" } }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + } + }, { "$ref": "#/components/parameters/per-page" }, @@ -27304,7 +27320,7 @@ }, "put": { "summary": "Create or update file contents", - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "tags": [ "repos" ], @@ -30289,7 +30305,7 @@ "/repos/{owner}/{repo}/hooks": { "get": { "summary": "List repository webhooks", - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "tags": [ "repos" ], diff --git a/cache/ghes-3.4.json b/cache/ghes-3.4.json index 7035c1dd8..39727938d 100644 --- a/cache/ghes-3.4.json +++ b/cache/ghes-3.4.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "7.11.0", + "version": "7.12.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": { @@ -27153,6 +27153,22 @@ "default": "all" } }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + } + }, { "$ref": "#/components/parameters/per-page" }, @@ -28864,7 +28880,7 @@ }, "put": { "summary": "Create or update file contents", - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "tags": [ "repos" ], @@ -32136,7 +32152,7 @@ "/repos/{owner}/{repo}/hooks": { "get": { "summary": "List repository webhooks", - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "tags": [ "repos" ], diff --git a/cache/ghes-3.5.json b/cache/ghes-3.5.json index 9ffa0e80d..3dce32587 100644 --- a/cache/ghes-3.5.json +++ b/cache/ghes-3.5.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "7.11.0", + "version": "7.12.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": { @@ -28379,6 +28379,22 @@ "default": "all" } }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + } + }, { "$ref": "#/components/parameters/per-page" }, @@ -30084,7 +30100,7 @@ }, "put": { "summary": "Create or update file contents", - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "tags": [ "repos" ], @@ -33368,7 +33384,7 @@ "/repos/{owner}/{repo}/hooks": { "get": { "summary": "List repository webhooks", - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "tags": [ "repos" ], diff --git a/cache/ghes-3.6.json b/cache/ghes-3.6.json index 09ac7b71f..2278bdcea 100644 --- a/cache/ghes-3.6.json +++ b/cache/ghes-3.6.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "7.11.0", + "version": "7.12.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": { @@ -28879,6 +28879,22 @@ "default": "all" } }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + } + }, { "$ref": "#/components/parameters/per-page" }, @@ -30572,7 +30588,7 @@ }, "put": { "summary": "Create or update file contents", - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "tags": [ "repos" ], @@ -33912,7 +33928,7 @@ "/repos/{owner}/{repo}/hooks": { "get": { "summary": "List repository webhooks", - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "tags": [ "repos" ], diff --git a/cache/github.ae.json b/cache/github.ae.json index 833b14e33..762aa3108 100644 --- a/cache/github.ae.json +++ b/cache/github.ae.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "version": "7.11.0", + "version": "7.12.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": { @@ -23425,6 +23425,22 @@ "default": "all" } }, + { + "name": "permission", + "description": "Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "pull", + "triage", + "push", + "maintain", + "admin" + ] + } + }, { "$ref": "#/components/parameters/per-page" }, @@ -25169,7 +25185,7 @@ }, "put": { "summary": "Create or update file contents", - "description": "Creates a new file or replaces an existing file in a repository.", + "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.", "tags": [ "repos" ], @@ -28172,7 +28188,7 @@ "/repos/{owner}/{repo}/hooks": { "get": { "summary": "List repository webhooks", - "description": "", + "description": "Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.", "tags": [ "repos" ], diff --git a/packages/openapi-types-ghes-3.2/package.json b/packages/openapi-types-ghes-3.2/package.json index 67ce3b0ed..921a85232 100644 --- a/packages/openapi-types-ghes-3.2/package.json +++ b/packages/openapi-types-ghes-3.2/package.json @@ -15,6 +15,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "7.11.0" + "openapi-version": "7.12.0" } } diff --git a/packages/openapi-types-ghes-3.2/types.d.ts b/packages/openapi-types-ghes-3.2/types.d.ts index 87b9fcdde..fb0598767 100644 --- a/packages/openapi-types-ghes-3.2/types.d.ts +++ b/packages/openapi-types-ghes-3.2/types.d.ts @@ -2746,7 +2746,7 @@ export interface paths { * github.com URLs (`html_url` and `_links["html"]`) will have null values. */ get: operations["repos/get-content"]; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ put: operations["repos/create-or-update-file-contents"]; /** * Deletes a file in a repository. @@ -3137,6 +3137,7 @@ export interface paths { get: operations["git/get-tree"]; }; "/repos/{owner}/{repo}/hooks": { + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ get: operations["repos/list-webhooks"]; /** * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -26858,6 +26859,8 @@ export interface operations { query: { /** Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */ affiliation?: "outside" | "direct" | "all"; + /** Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */ + permission?: "pull" | "triage" | "push" | "maintain" | "admin"; /** The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; /** Page number of the results to fetch. */ @@ -27809,7 +27812,7 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ "repos/create-or-update-file-contents": { parameters: { path: { @@ -29298,6 +29301,7 @@ export interface operations { 422: components["responses"]["validation_failed"]; }; }; + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ "repos/list-webhooks": { parameters: { path: { diff --git a/packages/openapi-types-ghes-3.3/package.json b/packages/openapi-types-ghes-3.3/package.json index 72d43b8ef..928d2a56f 100644 --- a/packages/openapi-types-ghes-3.3/package.json +++ b/packages/openapi-types-ghes-3.3/package.json @@ -15,6 +15,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "7.11.0" + "openapi-version": "7.12.0" } } diff --git a/packages/openapi-types-ghes-3.3/types.d.ts b/packages/openapi-types-ghes-3.3/types.d.ts index e5ecf7aa9..8305ee91c 100644 --- a/packages/openapi-types-ghes-3.3/types.d.ts +++ b/packages/openapi-types-ghes-3.3/types.d.ts @@ -2792,7 +2792,7 @@ export interface paths { * github.com URLs (`html_url` and `_links["html"]`) will have null values. */ get: operations["repos/get-content"]; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ put: operations["repos/create-or-update-file-contents"]; /** * Deletes a file in a repository. @@ -3183,6 +3183,7 @@ export interface paths { get: operations["git/get-tree"]; }; "/repos/{owner}/{repo}/hooks": { + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ get: operations["repos/list-webhooks"]; /** * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -27728,6 +27729,8 @@ export interface operations { query: { /** Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */ affiliation?: "outside" | "direct" | "all"; + /** Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */ + permission?: "pull" | "triage" | "push" | "maintain" | "admin"; /** The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; /** Page number of the results to fetch. */ @@ -28678,7 +28681,7 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ "repos/create-or-update-file-contents": { parameters: { path: { @@ -30158,6 +30161,7 @@ export interface operations { 422: components["responses"]["validation_failed"]; }; }; + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ "repos/list-webhooks": { parameters: { path: { diff --git a/packages/openapi-types-ghes-3.4/package.json b/packages/openapi-types-ghes-3.4/package.json index 9bc42d5b5..549452db6 100644 --- a/packages/openapi-types-ghes-3.4/package.json +++ b/packages/openapi-types-ghes-3.4/package.json @@ -15,6 +15,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "7.11.0" + "openapi-version": "7.12.0" } } diff --git a/packages/openapi-types-ghes-3.4/types.d.ts b/packages/openapi-types-ghes-3.4/types.d.ts index e079bcba1..acae2febb 100644 --- a/packages/openapi-types-ghes-3.4/types.d.ts +++ b/packages/openapi-types-ghes-3.4/types.d.ts @@ -3043,7 +3043,7 @@ export interface paths { * github.com URLs (`html_url` and `_links["html"]`) will have null values. */ get: operations["repos/get-content"]; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ put: operations["repos/create-or-update-file-contents"]; /** * Deletes a file in a repository. @@ -3526,6 +3526,7 @@ export interface paths { get: operations["git/get-tree"]; }; "/repos/{owner}/{repo}/hooks": { + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ get: operations["repos/list-webhooks"]; /** * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -29072,6 +29073,8 @@ export interface operations { query: { /** Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */ affiliation?: "outside" | "direct" | "all"; + /** Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */ + permission?: "pull" | "triage" | "push" | "maintain" | "admin"; /** The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; /** Page number of the results to fetch. */ @@ -29973,7 +29976,7 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ "repos/create-or-update-file-contents": { parameters: { path: { @@ -31648,6 +31651,7 @@ export interface operations { 422: components["responses"]["validation_failed"]; }; }; + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ "repos/list-webhooks": { parameters: { path: { diff --git a/packages/openapi-types-ghes-3.5/package.json b/packages/openapi-types-ghes-3.5/package.json index 9d71eb246..f11576578 100644 --- a/packages/openapi-types-ghes-3.5/package.json +++ b/packages/openapi-types-ghes-3.5/package.json @@ -15,6 +15,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "7.11.0" + "openapi-version": "7.12.0" } } diff --git a/packages/openapi-types-ghes-3.5/types.d.ts b/packages/openapi-types-ghes-3.5/types.d.ts index 05ceb73c1..5cd811f21 100644 --- a/packages/openapi-types-ghes-3.5/types.d.ts +++ b/packages/openapi-types-ghes-3.5/types.d.ts @@ -3181,7 +3181,7 @@ export interface paths { * github.com URLs (`html_url` and `_links["html"]`) will have null values. */ get: operations["repos/get-content"]; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ put: operations["repos/create-or-update-file-contents"]; /** * Deletes a file in a repository. @@ -3664,6 +3664,7 @@ export interface paths { get: operations["git/get-tree"]; }; "/repos/{owner}/{repo}/hooks": { + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ get: operations["repos/list-webhooks"]; /** * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -29920,6 +29921,8 @@ export interface operations { query: { /** Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */ affiliation?: "outside" | "direct" | "all"; + /** Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */ + permission?: "pull" | "triage" | "push" | "maintain" | "admin"; /** The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; /** Page number of the results to fetch. */ @@ -30821,7 +30824,7 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ "repos/create-or-update-file-contents": { parameters: { path: { @@ -32496,6 +32499,7 @@ export interface operations { 422: components["responses"]["validation_failed"]; }; }; + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ "repos/list-webhooks": { parameters: { path: { diff --git a/packages/openapi-types-ghes-3.6/package.json b/packages/openapi-types-ghes-3.6/package.json index eea30d75f..a9652a1e5 100644 --- a/packages/openapi-types-ghes-3.6/package.json +++ b/packages/openapi-types-ghes-3.6/package.json @@ -15,6 +15,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "7.11.0" + "openapi-version": "7.12.0" } } diff --git a/packages/openapi-types-ghes-3.6/types.d.ts b/packages/openapi-types-ghes-3.6/types.d.ts index b77fe32ef..18026d4d7 100644 --- a/packages/openapi-types-ghes-3.6/types.d.ts +++ b/packages/openapi-types-ghes-3.6/types.d.ts @@ -3225,7 +3225,7 @@ export interface paths { * github.com URLs (`html_url` and `_links["html"]`) will have null values. */ get: operations["repos/get-content"]; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ put: operations["repos/create-or-update-file-contents"]; /** * Deletes a file in a repository. @@ -3712,6 +3712,7 @@ export interface paths { get: operations["git/get-tree"]; }; "/repos/{owner}/{repo}/hooks": { + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ get: operations["repos/list-webhooks"]; /** * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -31017,6 +31018,8 @@ export interface operations { query: { /** Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */ affiliation?: "outside" | "direct" | "all"; + /** Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */ + permission?: "pull" | "triage" | "push" | "maintain" | "admin"; /** The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; /** Page number of the results to fetch. */ @@ -31924,7 +31927,7 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ "repos/create-or-update-file-contents": { parameters: { path: { @@ -33627,6 +33630,7 @@ export interface operations { 422: components["responses"]["validation_failed"]; }; }; + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ "repos/list-webhooks": { parameters: { path: { diff --git a/packages/openapi-types-github.ae/package.json b/packages/openapi-types-github.ae/package.json index 237235cad..10fbbdbae 100644 --- a/packages/openapi-types-github.ae/package.json +++ b/packages/openapi-types-github.ae/package.json @@ -15,6 +15,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "7.11.0" + "openapi-version": "7.12.0" } } diff --git a/packages/openapi-types-github.ae/types.d.ts b/packages/openapi-types-github.ae/types.d.ts index 21b82c385..4ee23d6d9 100644 --- a/packages/openapi-types-github.ae/types.d.ts +++ b/packages/openapi-types-github.ae/types.d.ts @@ -2584,7 +2584,7 @@ export interface paths { * github.com URLs (`html_url` and `_links["html"]`) will have null values. */ get: operations["repos/get-content"]; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ put: operations["repos/create-or-update-file-contents"]; /** * Deletes a file in a repository. @@ -2975,6 +2975,7 @@ export interface paths { get: operations["git/get-tree"]; }; "/repos/{owner}/{repo}/hooks": { + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ get: operations["repos/list-webhooks"]; /** * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -26741,6 +26742,8 @@ export interface operations { query: { /** Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */ affiliation?: "outside" | "direct" | "all"; + /** Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */ + permission?: "pull" | "triage" | "push" | "maintain" | "admin"; /** The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; /** Page number of the results to fetch. */ @@ -27645,7 +27648,7 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ "repos/create-or-update-file-contents": { parameters: { path: { @@ -29125,6 +29128,7 @@ export interface operations { 422: components["responses"]["validation_failed"]; }; }; + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ "repos/list-webhooks": { parameters: { path: { diff --git a/packages/openapi-types/package.json b/packages/openapi-types/package.json index d9b2a3755..50082c853 100644 --- a/packages/openapi-types/package.json +++ b/packages/openapi-types/package.json @@ -15,6 +15,6 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "octokit": { - "openapi-version": "7.11.0" + "openapi-version": "7.12.0" } } diff --git a/packages/openapi-types/types.d.ts b/packages/openapi-types/types.d.ts index 9b5758135..b249e6102 100644 --- a/packages/openapi-types/types.d.ts +++ b/packages/openapi-types/types.d.ts @@ -457,6 +457,9 @@ export interface paths { * Lists the license consumption information for all users, including those from connected servers, associated with an enterprise. * To use this endpoint, you must be an enterprise admin, and you must use an access * token with the `read:enterprise` scope. + * + * **Note:** The license consumption API endpoints for enterprise accounts are currently + * in Beta and are subject to change. */ get: operations["enterprise-admin/get-consumed-licenses"]; }; @@ -3730,7 +3733,7 @@ export interface paths { * github.com URLs (`html_url` and `_links["html"]`) will have null values. */ get: operations["repos/get-content"]; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ put: operations["repos/create-or-update-file-contents"]; /** * Deletes a file in a repository. @@ -4221,6 +4224,7 @@ export interface paths { get: operations["git/get-tree"]; }; "/repos/{owner}/{repo}/hooks": { + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ get: operations["repos/list-webhooks"]; /** * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can @@ -8750,7 +8754,10 @@ export interface components { github_com_profile?: string | null; license_type?: string; github_com_member_roles?: string[]; + /** @description Deprecated: The most permissive enterprise role for a user. */ github_com_enterprise_role?: string | null; + /** @description All enterprise roles for a user. */ + github_com_enterprise_roles?: string[]; visual_studio_subscription_user?: boolean; github_com_verified_domain_emails?: string[]; github_com_saml_name_id?: string | null; @@ -22071,6 +22078,9 @@ export interface operations { * Lists the license consumption information for all users, including those from connected servers, associated with an enterprise. * To use this endpoint, you must be an enterprise admin, and you must use an access * token with the `read:enterprise` scope. + * + * **Note:** The license consumption API endpoints for enterprise accounts are currently + * in Beta and are subject to change. */ "enterprise-admin/get-consumed-licenses": { parameters: { @@ -34351,6 +34361,8 @@ export interface operations { query: { /** Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` means all collaborators with permissions to an organization-owned repository, regardless of organization membership status. `all` means all collaborators the authenticated user can see. */ affiliation?: "outside" | "direct" | "all"; + /** Filter collaborators by the permissions they have on the repository. If not specified, all collaborators will be returned. */ + permission?: "pull" | "triage" | "push" | "maintain" | "admin"; /** The number of results per page (max 100). */ per_page?: components["parameters"]["per-page"]; /** Page number of the results to fetch. */ @@ -35290,7 +35302,7 @@ export interface operations { 404: components["responses"]["not_found"]; }; }; - /** Creates a new file or replaces an existing file in a repository. */ + /** Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint. */ "repos/create-or-update-file-contents": { parameters: { path: { @@ -37030,6 +37042,7 @@ export interface operations { 422: components["responses"]["validation_failed"]; }; }; + /** Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days. */ "repos/list-webhooks": { parameters: { path: {