8000 feat: add 11 new APIs and support for new `retention_period_minutes` … · octokit/types.ts@e070137 · GitHub
[go: up one dir, main page]

Skip to content

Commit e070137

Browse files
authored
feat: add 11 new APIs and support for new retention_period_minutes 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`
1 parent 6e15b56 commit e070137

File tree

4 files changed

+257
-9
lines changed

4 files changed

+257
-9
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"description": "Shared TypeScript definitions for Octokit projects",
88
"dependencies": {
9-
"@octokit/openapi-types": "^12.4.0"
9+
"@octokit/openapi-types": "^12.5.0"
1010
},
1111
"scripts": {
1212
"build": "pika build",
@@ -96,7 +96,7 @@
9696
]
9797
},
9898
"octokit": {
99-
"openapi-version": "6.1.0"
99+
"openapi-version": "6.2.1"
100100
},
101101
"renovate": {
102102
"extends": [

scripts/update-endpoints/generated/endpoints.json

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,31 @@
296296
"previews": [],
297297
"renamed": null
298298
},
299+
{
300+
"method": "DELETE",
301+
"url": "/repos/{owner}/{repo}/actions/caches/{cache_id}",
302+
"documentationUrl": "https://docs.github.com/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id",
303+
"parameters": [
304+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
305+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
306+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "cache_id" }
307+
],
308+
"previews": [],
309+
"renamed": null
310+
},
311+
{
312+
"method": "DELETE",
313+
"url": "/repos/{owner}/{repo}/actions/caches{?key,ref}",
314+
"documentationUrl": "https://docs.github.com/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key",
315+
"parameters": [
316+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
317+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
318+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "key" },
319+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "ref" }
320+
],
321+
"previews": [],
322+
"renamed": null
323+
},
299324
{
300325
"method": "DELETE",
301326
"url": "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}",
@@ -537,6 +562,23 @@
537562
"previews": [],
538563
"renamed": null
539564
},
565+
{
566+
"method": "GET",
567+
"url": "/repos/{owner}/{repo}/actions/caches",
568+
"documentationUrl": "https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository",
569+
"parameters": [
570+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
571+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
572+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
573+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
574+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "ref" },
575+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "key" },
576+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "sort" },
577+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "direction" }
578+
],
579+
"previews": [],
580+
"renamed": null
581+
},
540582
{
541583
"method": "GET",
542584
"url": "/repos/{owner}/{repo}/actions/cache/usage",
@@ -613,6 +655,17 @@
613655
"previews": [],
614656
"renamed": null
615657
},
658+
{
659+
"method": "GET",
660+
"url": "/repos/{owner}/{repo}/actions/oidc/customization/sub",
661+
"documentationUrl": "https://docs.github.com/rest/actions/oidc#get-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository",
662+
"parameters": [
663+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
664+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" }
665+
],
666+
"previews": [],
667+
"renamed": null
668+
},
616669
{
617670
"method": "GET",
618671
"url": "/repositories/{repository_id}/environments/{environment_name}/secrets/public-key",
@@ -1452,6 +1505,22 @@
14521505
"previews": [],
14531506
"renamed": null
14541507
},
1508+
{
1509+
"method": "PUT",
1510+
"url": "/enterprises/{enterprise}/actions/oidc/customization/issuer",
1511+
"documentationUrl": "https://docs.github.com/rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise",
1512+
"parameters": [
1513+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "enterprise" },
15 3270 14+
{
1515+
"alias": null,
1516+
"deprecated": null,
1517+
"in": "BODY",
1518+
"name": "include_enterprise_slug"
1519+
}
1520+
],
1521+
"previews": [],
1522+
"renamed": null
1523+
},
14551524
{
14561525
"method": "PUT",
14571526
"url": "/orgs/{org}/actions/permissions/selected-actions",
@@ -1534,6 +1603,18 @@
15341603
"previews": [],
15351604
"renamed": null
15361605
},
1606+
{
1607+
"method": "PUT",
1608+
"url": "/repos/{owner}/{repo}/actions/oidc/customization/sub",
1609+
"documentationUrl": "https://docs.github.com/rest/actions/oidc#set-the-opt-out-flag-of-an-oidc-subject-claim-customization-for-a-repository",
1610+
"parameters": [
1611+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "owner" },
1612+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "repo" },
1613+
{ "alias": null, "deprecated": null, "in": "BODY", "name": "use_default" }
1614+
],
1615+
"previews": [],
1616+
"renamed": null
1617+
},
15371618
{
15381619
"method": "PUT",
15391620
"url": "/enterprises/{enterprise}/actions/permissions/workflow",
@@ -3900,6 +3981,12 @@
39003981
"in": "BODY",
39013982
"name": "display_name"
39023983
},
3984+
{
3985+
"alias": null,
3986+
"deprecated": null,
3987+
"in": "BODY",
3988+
"name": "retention_period_minutes"
3989+
},
39033990
{
39043991
"alias": null,
39053992
"deprecated": null,
@@ -4019,6 +4106,12 @@
40194106
"deprecated": null,
40204107
"in": "BODY",
40214108
"name": "display_name"
4109+
},
4110+
{
4111+
"alias": null,
4112+
"deprecated": null,
4113+
"in": "BODY",
4114+
"name": "retention_period_minutes"
40224115
}
40234116
],
40244117
"previews": [],
@@ -4064,6 +4157,12 @@
40644157
"deprecated": null,
40654158
"in": "BODY",
40664159
"name": "display_name"
4160+
},
4161+
{
4162+
"alias": null,
4163+
"deprecated": null,
4164+
"in": "BODY",
4165+
"name": "retention_period_minutes"
40674166
}
40684167
],
40694168
"previews": [],
@@ -4084,6 +4183,23 @@
40844183
"previews": [],
40854184
"renamed": null
40864185
},
4186+
{
4187+
"method": "DELETE",
4188+
"url": "/orgs/{org}/members/{username}/codespaces/{codespace_name}",
4189+
"documentationUrl": "https://docs.github.com/rest/reference/codespaces",
4190+
"parameters": [
4191+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
4192+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "username" },
4193+
{
4194+
"alias": null,
4195+
"deprecated": null,
4196+
"in": "PATH",
4197+
"name": "codespace_name"
4198+
}
4199+
],
4200+
"previews": [],
4201+
"renamed": null
4202+
},
40874203
{
40884204
"method": "DELETE",
40894205
"url": "/repos/{owner}/{repo}/codespaces/secrets/{secret_name}",
@@ -4223,6 +4339,18 @@
42234339
"previews": [],
42244340
"renamed": null
42254341
},
4342+
{
4343+
"method": "GET",
4344+
"url": "/orgs/{org_id}/codespaces",
4345+
"documentationUrl": "https://docs.github.com/rest/reference/codespaces#list-in-organization",
4346+
"parameters": [
4347+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "per_page" },
4348+
{ "alias": null, "deprecated": null, "in": "QUERY", "name": "page" },
4349+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org_id" }
4350+
],
4351+
"previews": [],
4352+
"renamed": null
4353+
},
42264354
{
42274355
"method": "GET",
42284356
"url": "/repos/{owner}/{repo}/codespaces",
@@ -4355,6 +4483,23 @@
43554483
"previews": [],
43564484
"renamed": null
43574485
},
4486+
{
4487+
"method": "POST",
4488+
"url": "/orgs/{org}/members/{username}/codespaces/{codespace_name}/stop",
4489+
"documentationUrl": "https://docs.github.com/rest/reference/codespaces",
4490+
"parameters": [
4491+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
4492+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "username" },
4493+
{
4494+
"alias": null,
4495+
"deprecated": null,
4496+
"in": "PATH",
4497+
"name": "codespace_name"
4498+
}
4499+
],
4500+
"previews": [],
4501+
"renamed": null
4502+
},
43584503
{
43594504
"method": "PATCH",
43604505
"url": "/user/codespaces/{codespace_name}",
@@ -7620,6 +7765,32 @@
76207765
"previews": [],
76217766
"renamed": null
76227767
},
7768+
{
7769+
"method": "GET",
7770+
"url": "/orgs/{org}/actions/oidc/customization/sub",
7771+
"documentationUrl": "https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization",
7772+
"parameters": [
7773+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" }
7774+
],
7775+
"previews": [],
7776+
"renamed": null
7777+
},
7778+
{
7779+
"method": "PUT",
7780+
"url": "/orgs/{org}/actions/oidc/customization/sub",
7781+
"documentationUrl": "https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-an-organization",
7782+
"parameters": [
7783+
{ "alias": null, "deprecated": null, "in": "PATH", "name": "org" },
7784+
{
7785+
"alias": null,
7786+
"deprecated": null,
7787+
"in": "BODY",
7788+
"name": "include_claim_keys"
7789+
}
7790+
],
7791+
"previews": [],
7792+
"renamed": null
7793+
},
76237794
{
76247795
"method": "PUT",
76257796
"url": "/orgs/{org}/blocks/{username}",

0 commit comments

Comments
 (0)
0