Skip to content

Commit

Permalink
feat: add 11 new APIs and support for new retention_period_minutes
Browse files Browse the repository at this point in the history
…request body parameter in Codespaces APIs (#406)

feat: `PUT /enterprises/{enterprise}/actions/oidc/customization/issuer`

feat: `GET /orgs/{org_id}/codespaces`

feat: `POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`

feat: `GET /orgs/{org}/actions/oidc/customization/sub`

feat: `PUT /orgs/{org}/actions/oidc/customization/sub`

feat: `DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`

feat: `GET /repos/{owner}/{repo}/actions/caches`

feat: `DELETE /repos/{owner}/{repo}/actions/caches`

feat: `DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`

feat: `GET /repos/{owner}/{repo}/actions/oidc/customization/sub`

feat: `PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`

feat: support for optional `retention_period_minutes` request body parameter in `POST /repos/{owner}/{repo}/codespaces` , `POST /repos/{owner}/{repo}/pulls/{pull_number}
odespaces` and `POST /user/codespaces`
  • Loading branch information
octokitbot authored Jun 28, 2022
1 parent 6e15b56 commit e070137
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 9 deletions.
14 changes: 7 additions & 7 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 @@ -6,7 +6,7 @@
},
"description": "Shared TypeScript definitions for Octokit projects",
"dependencies": {
"@octokit/openapi-types": "^12.4.0"
"@octokit/openapi-types": "^12.5.0"
},
"scripts": {
"build": "pika build",
Expand Down Expand Up @@ -96,7 +96,7 @@
]
},
"octokit": {
"openapi-version": "6.1.0"
"openapi-version": "6.2.1"
},
"renovate": {
"extends": [
Expand Down
171 changes: 171 additions & 0 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,31 @@
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/repos/{owner}/{repo}/actions/caches/{cache_id}",
"documentationUrl": "https://docs.github.com/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "cache_id" }
],
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/repos/{owner}/{repo}/actions/caches{?key,ref}",
"documentationUrl": "https://docs.github.com/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "key" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "ref" }
],
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}",
Expand Down Expand Up @@ -537,6 +562,23 @@
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/actions/caches",
"documentationUrl": "https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "ref" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "key" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "sort" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "direction" }
],
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/actions/cache/usage",
Expand Down Expand Up @@ -613,6 +655,17 @@
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/actions/oidc/customization/sub",
"documentationUrl": "https://docs.github.com/rest/actions/oidc#get-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }
],
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repositories/{repository_id}/environments/{environment_name}/secrets/public-key",
Expand Down Expand Up @@ -1452,6 +1505,22 @@
"previews": [],
"renamed": null
},
{
"method": "PUT",
"url": "/enterprises/{enterprise}/actions/oidc/customization/issuer",
"documentationUrl": "https://docs.github.com/rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "enterprise" },
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "include_enterprise_slug"
}
],
"previews": [],
"renamed": null
},
{
"method": "PUT",
"url": "/orgs/{org}/actions/permissions/selected-actions",
Expand Down Expand Up @@ -1534,6 +1603,18 @@
"previews": [],
"renamed": null
},
{
"method": "PUT",
"url": "/repos/{owner}/{repo}/actions/oidc/customization/sub",
"documentationUrl": "https://docs.github.com/rest/actions/oidc#set-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
{ "alias": null, "deprecated": null, "in": "BODY", "name": "use_default" }
],
"previews": [],
"renamed": null
},
{
"method": "PUT",
"url": "/enterprises/{enterprise}/actions/permissions/workflow",
Expand Down Expand Up @@ -3900,6 +3981,12 @@
"in": "BODY",
"name": "display_name"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "retention_period_minutes"
},
{
"alias": null,
"deprecated": null,
Expand Down Expand Up @@ -4019,6 +4106,12 @@
"deprecated": null,
"in": "BODY",
"name": "display_name"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "retention_period_minutes"
}
],
"previews": [],
Expand Down Expand Up @@ -4064,6 +4157,12 @@
"deprecated": null,
"in": "BODY",
"name": "display_name"
},
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "retention_period_minutes"
}
],
"previews": [],
Expand All @@ -4084,6 +4183,23 @@
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/orgs/{org}/members/{username}/codespaces/{codespace_name}",
"documentationUrl": "https://docs.github.com/rest/reference/codespaces",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "username" },
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "codespace_name"
}
],
"previews": [],
"renamed": null
},
{
"method": "DELETE",
"url": "/repos/{owner}/{repo}/codespaces/secrets/{secret_name}",
Expand Down Expand Up @@ -4223,6 +4339,18 @@
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/orgs/{org_id}/codespaces",
"documentationUrl": "https://docs.github.com/rest/reference/codespaces#list-in-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org_id" }
],
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/repos/{owner}/{repo}/codespaces",
Expand Down Expand Up @@ -4355,6 +4483,23 @@
"previews": [],
"renamed": null
},
{
"method": "POST",
"url": "/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop",
"documentationUrl": "https://docs.github.com/rest/reference/codespaces",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{ "alias": null, "deprecated": null, "in": "PATH", "name": "username" },
{
"alias": null,
"deprecated": null,
"in": "PATH",
"name": "codespace_name"
}
],
"previews": [],
"renamed": null
},
{
"method": "PATCH",
"url": "/user/codespaces/{codespace_name}",
Expand Down Expand Up @@ -7620,6 +7765,32 @@
"previews": [],
"renamed": null
},
{
"method": "GET",
"url": "/orgs/{org}/actions/oidc/customization/sub",
"documentationUrl": "https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" }
],
"previews": [],
"renamed": null
},
{
"method": "PUT",
"url": "/orgs/{org}/actions/oidc/customization/sub",
"documentationUrl": "https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization",
"parameters": [
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
{
"alias": null,
"deprecated": null,
"in": "BODY",
"name": "include_claim_keys"
}
],
"previews": [],
"renamed": null
},
{
"method": "PUT",
"url": "/orgs/{org}/blocks/{username}",
Expand Down
Loading

0 comments on commit e070137

Please sign in to comment.