Skip to content

Commit

Permalink
feat: add Copilot operations, bump openapi-types version (#638)
Browse files Browse the repository at this point in the history
WIP octokit/openapi updated
  • Loading branch information
octokitbot authored Apr 29, 2024
1 parent e1d788a commit 69c7f34
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"description": "Shared TypeScript definitions for Octokit projects",
"dependencies": {
"@octokit/openapi-types": "^22.1.0"
"@octokit/openapi-types": "^22.2.0"
},
"scripts": {
"build": "node scripts/build.mjs && tsc -p tsconfig.json",
Expand Down Expand Up @@ -81,6 +81,6 @@
]
},
"octokit": {
"openapi-version": "16.2.0"
"openapi-version": "16.5.0"
}
}
136 changes: 136 additions & 0 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -5096,6 +5096,46 @@
],
"renamed": null
},
{
"method": "GET",
"url": "/enterprises/{enterprise}/copilot/usage",
"documentationUrl": "https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "enterprise" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "since" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "until" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }
],
"renamed": null
},
{
"method": "GET",
"url": "/orgs/{org}/copilot/usage",
"documentationUrl": "https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "since" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "until" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }
],
"renamed": null
},
{
"method": "GET",
"url": "/orgs/{org}/team/{team_slug}/copilot/usage",
"documentationUrl": "https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "team_slug" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "since" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "until" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" }
],
"renamed": null
},
{
"method": "PUT",
"url": "/orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}",
Expand Down Expand Up @@ -11428,6 +11468,30 @@
"in": "BODY",
"name": "rules[].parameters.pattern"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_paths"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_path_length"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_extensions"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_size"
},
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -11710,6 +11774,30 @@
"in": "BODY",
"name": "rules[].parameters.pattern"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_paths"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_path_length"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_extensions"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_size"
},
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -14345,6 +14433,30 @@
"in": "BODY",
"name": "rules[].parameters.pattern"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_paths"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_path_length"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_extensions"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_size"
},
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -14671,6 +14783,30 @@
"in": "BODY",
"name": "rules[].parameters.pattern"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_paths"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_path_length"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.restricted_file_extensions"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "rules[].parameters.max_file_size"
},
{
"alias": null,
"deprecated": null,
Expand Down
21 changes: 21 additions & 0 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,13 @@ export interface Endpoints {
* @see https://docs.github.com/rest/emojis/emojis#get-emojis
*/
"GET /emojis": Operation<"/emojis", "get">;
/**
* @see https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members
*/
"GET /enterprises/{enterprise}/copilot/usage": Operation<
"/enterprises/{enterprise}/copilot/usage",
"get"
>;
/**
* @see https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-an-enterprise
*/
Expand Down Expand Up @@ -1608,6 +1615,13 @@ export interface Endpoints {
"/orgs/{org}/copilot/billing/seats",
"get"
>;
/**
* @see https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members
*/
"GET /orgs/{org}/copilot/usage": Operation<
"/orgs/{org}/copilot/usage",
"get"
>;
/**
* @see https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-an-organization
*/
Expand Down Expand Up @@ -1988,6 +2002,13 @@ export interface Endpoints {
"/orgs/{org}/settings/billing/shared-storage",
"get"
>;
/**
* @see https://docs.github.com/rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team
*/
"GET /orgs/{org}/team/{team_slug}/copilot/usage": Operation<
"/orgs/{org}/team/{team_slug}/copilot/usage",
"get"
>;
/**
* @see https://docs.github.com/rest/teams/teams#list-teams
*/
Expand Down

0 comments on commit 69c7f34

Please sign in to comment.