@octokit/openapi 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/generated/api.github.com.deref.json +831 -48
  2. package/generated/api.github.com.json +456 -36
  3. package/generated/ghes-3.2-diff-to-api.github.com.deref.json +1 -1
  4. package/generated/ghes-3.2-diff-to-api.github.com.json +1 -1
  5. package/generated/ghes-3.2-diff-to-ghes-3.3.deref.json +1 -8
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +1 -8
  7. package/generated/ghes-3.2.deref.json +618 -37
  8. package/generated/ghes-3.2.json +437 -31
  9. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +1 -1
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.json +1 -1
  11. package/generated/ghes-3.3.deref.json +618 -37
  12. package/generated/ghes-3.3.json +437 -31
  13. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -8
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -8
  15. package/generated/ghes-3.4.deref.json +618 -37
  16. package/generated/ghes-3.4.json +437 -31
  17. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  18. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  19. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +1 -8
  20. package/generated/ghes-3.5-diff-to-ghes-3.6.json +1 -8
  21. package/generated/ghes-3.5.deref.json +620 -39
  22. package/generated/ghes-3.5.json +439 -33
  23. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +0 -56
  24. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +1 -164
  25. package/generated/ghes-3.6-diff-to-api.github.com.json +1 -130
  26. package/generated/ghes-3.6.deref.json +622 -53
  27. package/generated/ghes-3.6.json +441 -47
  28. package/generated/github.ae-diff-to-api.github.com.deref.json +1 -8
  29. package/generated/github.ae-diff-to-api.github.com.json +1 -8
  30. package/generated/github.ae.deref.json +613 -32
  31. package/generated/github.ae.json +437 -31
  32. package/index.js +2 -0
  33. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.0.0",
4
+ "version": "7.1.0",
5
5
  "title": "GitHub's official OpenAPI spec + Octokit extension",
6
6
  "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
7
7
  "license": {
@@ -17139,14 +17139,7 @@
17139
17139
  "properties": {
17140
17140
  "permission": {
17141
17141
  "type": "string",
17142
- "description": "The permission to grant the team on this repository. In addition to the enumerated values, you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
17143
- "enum": [
17144
- "pull",
17145
- "push",
17146
- "admin",
17147
- "maintain",
17148
- "triage"
17149
- ],
17142
+ "description": "The permission to grant the team on this repository. We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
17150
17143
  "default": "push"
17151
17144
  }
17152
17145
  }
@@ -20155,7 +20148,7 @@
20155
20148
  "/repos/{owner}/{repo}/actions/permissions/access": {
20156
20149
  "get": {
20157
20150
  "summary": "Get the level of access for workflows outside of the repository",
20158
- "description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal and private repositories.\nFor more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository)\" for GitHub.com and\n\"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-cloud@latest/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository)\" for GitHub Enterprise Cloud.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20151
+ "description": "Gets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20159
20152
  "tags": [
20160
20153
  "actions"
20161
20154
  ],
@@ -20200,7 +20193,7 @@
20200
20193
  },
20201
20194
  "put": {
20202
20195
  "summary": "Set the level of access for workflows outside of the repository",
20203
- "description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal and private repositories.\nFor more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-a-private-repository)\" for GitHub.com and\n\"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-cloud@latest/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository)\" for GitHub Enterprise Cloud.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20196
+ "description": "Sets the level of access that workflows outside of the repository have to actions and reusable workflows in the repository.\nThis endpoint only applies to internal repositories. For more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the\nrepository `administration` permission to use this endpoint.",
20204
20197
  "tags": [
20205
20198
  "actions"
20206
20199
  ],
@@ -28787,14 +28780,7 @@
28787
28780
  "properties": {
28788
28781
  "permission": {
28789
28782
  "type": "string",
28790
- "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** In addition to the enumerated values, you can also specify a custom repository role name, if the owning organization has defined any.",
28791
- "enum": [
28792
- "pull",
28793
- "push",
28794
- "admin",
28795
- "maintain",
28796
- "triage"
28797
- ],
28783
+ "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** We accept the following permissions to be set: `pull`, `triage`, `push`, `maintain`, `admin` and you can also specify a custom repository role name, if the owning organization has defined any.",
28798
28784
  "default": "push"
28799
28785
  }
28800
28786
  }
@@ -31916,15 +31902,15 @@
31916
31902
  },
31917
31903
  "/repos/{owner}/{repo}/environments": {
31918
31904
  "get": {
31919
- "summary": "Get all environments",
31920
- "description": "Get all environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
31905
+ "summary": "List environments",
31906
+ "description": "Lists the environments for a repository.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
31921
31907
  "tags": [
31922
31908
  "repos"
31923
31909
  ],
31924
31910
  "operationId": "repos/get-all-environments",
31925
31911
  "externalDocs": {
31926
31912
  "description": "API method documentation",
31927
- "url": "https://docs.github.com/rest/reference/repos#get-all-environments"
31913
+ "url": "https://docs.github.com/rest/deployments/environments#list-environments"
31928
31914
  },
31929
31915
  "parameters": [
31930
31916
  {
@@ -31973,7 +31959,7 @@
31973
31959
  "x-github": {
31974
31960
  "githubCloudOnly": false,
31975
31961
  "enabledForGitHubApps": true,
31976
- "category": "repos",
31962
+ "category": "deployments",
31977
31963
  "subcategory": "environments"
31978
31964
  },
31979
31965
  "x-octokit": {}
@@ -31982,7 +31968,7 @@
31982
31968
  "/repos/{owner}/{repo}/environments/{environment_name}": {
31983
31969
  "get": {
31984
31970
  "summary": "Get an environment",
31985
- "description": "Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
31971
+ "description": "**Note:** To get information about name patterns that branches must match in order to deploy to this environment, see \"[Get a deployment branch policy](/rest/deployments/branch-policies#get-a-deployment-branch-policy).\"\n\nAnyone with read access to the repository can use this endpoint. If the\nrepository is private, you must use an access token with the `repo` scope. GitHub\nApps must have the `actions:read` permission to use this endpoint.",
31986
31972
  "tags": [
31987
31973
  "repos"
31988
31974
  ],
@@ -32029,7 +32015,7 @@
32029
32015
  },
32030
32016
  "put": {
32031
32017
  "summary": "Create or update an environment",
32032
- "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** Although you can use this operation to specify that only branches that match specified name patterns can deploy to this environment, you must use the UI to set the name patterns. For more information, see \"[Environments](/actions/reference/environments#deployment-branches).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the repo scope to use this endpoint.",
32018
+ "description": "Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see \"[Environments](/actions/reference/environments#environment-protection-rules).\"\n\n**Note:** To create or update name patterns that branches must match in order to deploy to this environment, see \"[Deployment branch policies](/rest/deployments/branch-policies).\"\n\n**Note:** To create or update secrets for an environment, see \"[Secrets](/rest/reference/actions#secrets).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
32033
32019
  "tags": [
32034
32020
  "repos"
32035
32021
  ],
@@ -32079,10 +32065,31 @@
32079
32065
  }
32080
32066
  },
32081
32067
  "deployment_branch_policy": {
32082
- "$ref": "#/components/schemas/deployment-branch-policy"
32068
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
32083
32069
  }
32084
32070
  },
32085
32071
  "additionalProperties": false
32072
+ },
32073
+ "examples": {
32074
+ "default": {
32075
+ "value": {
32076
+ "wait_timer": 30,
32077
+ "reviewers": [
32078
+ {
32079
+ "type": "User",
32080
+ "id": 1
32081
+ },
32082
+ {
32083
+ "type": "Team",
32084
+ "id": 1
32085
+ }
32086
+ ],
32087
+ "deployment_branch_policy": {
32088
+ "protected_branches": false,
32089
+ "custom_branch_policies": true
32090
+ }
32091
+ }
32092
+ }
32086
32093
  }
32087
32094
  }
32088
32095
  }
@@ -32158,6 +32165,315 @@
32158
32165
  "x-octokit": {}
32159
32166
  }
32160
32167
  },
32168
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
32169
+ "get": {
32170
+ "summary": "List deployment branch policies",
32171
+ "description": "Lists the deployment branch policies for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
32172
+ "tags": [
32173
+ "repos"
32174
+ ],
32175
+ "operationId": "repos/list-deployment-branch-policies",
32176
+ "externalDocs": {
32177
+ "description": "API method documentation",
32178
+ "url": "https://docs.github.com/rest/deployments/branch-policies#list-deployment-branch-policies"
32179
+ },
32180
+ "parameters": [
32181
+ {
32182
+ "$ref": "#/components/parameters/owner"
32183
+ },
32184
+ {
32185
+ "$ref": "#/components/parameters/repo"
32186
+ },
32187
+ {
32188
+ "$ref": "#/components/parameters/environment-name"
32189
+ },
32190
+ {
32191
+ "$ref": "#/components/parameters/per-page"
32192
+ },
32193
+ {
32194
+ "$ref": "#/components/parameters/page"
32195
+ }
32196
+ ],
32197
+ "responses": {
32198
+ "200": {
32199
+ "description": "Response",
32200
+ "content": {
32201
+ "application/json": {
32202
+ "schema": {
32203
+ "type": "object",
32204
+ "properties": {
32205
+ "total_count": {
32206
+ "description": "The number of deployment branch policies for the environment.",
32207
+ "type": "integer",
32208
+ "example": 2
32209
+ },
32210
+ "branch_policies": {
32211
+ "type": "array",
32212
+ "items": {
32213
+ "$ref": "#/components/schemas/deployment-branch-policy"
32214
+ }
32215
+ }
32216
+ },
32217
+ "required": [
32218
+ "total_count",
32219
+ "branch_policies"
32220
+ ]
32221
+ },
32222
+ "examples": {
32223
+ "default": {
32224
+ "$ref": "#/components/examples/deployment-branch-policies-list"
32225
+ }
32226
+ }
32227
+ }
32228
+ }
32229
+ }
32230
+ },
32231
+ "x-github": {
32232
+ "githubCloudOnly": false,
32233
+ "enabledForGitHubApps": true,
32234
+ "category": "deployments",
32235
+ "subcategory": "branch-policies"
32236
+ },
32237
+ "x-octokit": {}
32238
+ },
32239
+ "post": {
32240
+ "summary": "Create a deployment branch policy",
32241
+ "description": "Creates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
32242
+ "tags": [
32243
+ "repos"
32244
+ ],
32245
+ "operationId": "repos/create-deployment-branch-policy",
32246
+ "externalDocs": {
32247
+ "description": "API method documentation",
32248
+ "url": "https://docs.github.com/rest/deployments/branch-policies#create-deployment-branch-policy"
32249
+ },
32250
+ "parameters": [
32251
+ {
32252
+ "$ref": "#/components/parameters/owner"
32253
+ },
32254
+ {
32255
+ "$ref": "#/components/parameters/repo"
32256
+ },
32257
+ {
32258
+ "$ref": "#/components/parameters/environment-name"
32259
+ }
32260
+ ],
32261
+ "requestBody": {
32262
+ "required": true,
32263
+ "content": {
32264
+ "application/json": {
32265
+ "schema": {
32266
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
32267
+ },
32268
+ "examples": {
32269
+ "example-wildcard": {
32270
+ "summary": "Example of a wildcard name pattern",
32271
+ "value": {
32272
+ "name": "release/*"
32273
+ }
32274
+ },
32275
+ "example-single-branch": {
32276
+ "summary": "Example of a single branch name pattern",
32277
+ "value": {
32278
+ "name": "main"
32279
+ }
32280
+ }
32281
+ }
32282
+ }
32283
+ }
32284
+ },
32285
+ "responses": {
32286
+ "200": {
32287
+ "description": "Response",
32288
+ "content": {
32289
+ "application/json": {
32290
+ "schema": {
32291
+ "$ref": "#/components/schemas/deployment-branch-policy"
32292
+ },
32293
+ "examples": {
32294
+ "example-wildcard": {
32295
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
32296
+ },
32297
+ "example-single-branch": {
32298
+ "$ref": "#/components/examples/deployment-branch-policy-single-branch"
32299
+ }
32300
+ }
32301
+ }
32302
+ }
32303
+ },
32304
+ "303": {
32305
+ "description": "Response if the same branch name pattern already exists"
32306
+ },
32307
+ "404": {
32308
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
32309
+ }
32310
+ },
32311
+ "x-github": {
32312
+ "githubCloudOnly": false,
32313
+ "enabledForGitHubApps": true,
32314
+ "category": "deployments",
32315
+ "subcategory": "branch-policies"
32316
+ },
32317
+ "x-octokit": {}
32318
+ }
32319
+ },
32320
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
32321
+ "get": {
32322
+ "summary": "Get a deployment branch policy",
32323
+ "description": "Gets a deployment branch policy for an environment.\n\nAnyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.",
32324
+ "tags": [
32325
+ "repos"
32326
+ ],
32327
+ "operationId": "repos/get-deployment-branch-policy",
32328
+ "externalDocs": {
32329
+ "description": "API method documentation",
32330
+ "url": "https://docs.github.com/rest/deployments/branch-policies#get-deployment-branch-policy"
32331
+ },
32332
+ "parameters": [
32333
+ {
32334
+ "$ref": "#/components/parameters/owner"
32335
+ },
32336
+ {
32337
+ "$ref": "#/components/parameters/repo"
32338
+ },
32339
+ {
32340
+ "$ref": "#/components/parameters/environment-name"
32341
+ },
32342
+ {
32343
+ "$ref": "#/components/parameters/branch-policy-id"
32344
+ }
32345
+ ],
32346
+ "responses": {
32347
+ "200": {
32348
+ "description": "Response",
32349
+ "content": {
32350
+ "application/json": {
32351
+ "schema": {
32352
+ "$ref": "#/components/schemas/deployment-branch-policy"
32353
+ },
32354
+ "examples": {
32355
+ "default": {
32356
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
32357
+ }
32358
+ }
32359
+ }
32360
+ }
32361
+ }
32362
+ },
32363
+ "x-github": {
32364
+ "githubCloudOnly": false,
32365
+ "enabledForGitHubApps": true,
32366
+ "category": "deployments",
32367
+ "subcategory": "branch-policies"
32368
+ },
32369
+ "x-octokit": {}
32370
+ },
32371
+ "put": {
32372
+ "summary": "Update a deployment branch policy",
32373
+ "description": "Updates a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
32374
+ "tags": [
32375
+ "repos"
32376
+ ],
32377
+ "operationId": "repos/update-deployment-branch-policy",
32378
+ "externalDocs": {
32379
+ "description": "API method documentation",
32380
+ "url": "https://docs.github.com/rest/deployments/branch-policies#update-deployment-branch-policy"
32381
+ },
32382
+ "parameters": [
32383
+ {
32384
+ "$ref": "#/components/parameters/owner"
32385
+ },
32386
+ {
32387
+ "$ref": "#/components/parameters/repo"
32388
+ },
32389
+ {
32390
+ "$ref": "#/components/parameters/environment-name"
32391
+ },
32392
+ {
32393
+ "$ref": "#/components/parameters/branch-policy-id"
32394
+ }
32395
+ ],
32396
+ "requestBody": {
32397
+ "required": true,
32398
+ "content": {
32399
+ "application/json": {
32400
+ "schema": {
32401
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
32402
+ },
32403
+ "examples": {
32404
+ "default": {
32405
+ "value": {
32406
+ "name": "release/*"
32407
+ }
32408
+ }
32409
+ }
32410
+ }
32411
+ }
32412
+ },
32413
+ "responses": {
32414
+ "200": {
32415
+ "description": "Response",
32416
+ "content": {
32417
+ "application/json": {
32418
+ "schema": {
32419
+ "$ref": "#/components/schemas/deployment-branch-policy"
32420
+ },
32421
+ "examples": {
32422
+ "default": {
32423
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
32424
+ }
32425
+ }
32426
+ }
32427
+ }
32428
+ }
32429
+ },
32430
+ "x-github": {
32431
+ "githubCloudOnly": false,
32432
+ "enabledForGitHubApps": true,
32433
+ "category": "deployments",
32434
+ "subcategory": "branch-policies"
32435
+ },
32436
+ "x-octokit": {}
32437
+ },
32438
+ "delete": {
32439
+ "summary": "Delete a deployment branch policy",
32440
+ "description": "Deletes a deployment branch policy for an environment.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration:write` permission for the repository to use this endpoint.",
32441
+ "tags": [
32442
+ "repos"
32443
+ ],
32444
+ "operationId": "repos/delete-deployment-branch-policy",
32445
+ "externalDocs": {
32446
+ "description": "API method documentation",
32447
+ "url": "https://docs.github.com/rest/deployments/branch-policies#delete-deployment-branch-policy"
32448
+ },
32449
+ "parameters": [
32450
+ {
32451
+ "$ref": "#/components/parameters/owner"
32452
+ },
32453
+ {
32454
+ "$ref": "#/components/parameters/repo"
32455
+ },
32456
+ {
32457
+ "$ref": "#/components/parameters/environment-name"
32458
+ },
32459
+ {
32460
+ "$ref": "#/components/parameters/branch-policy-id"
32461
+ }
32462
+ ],
32463
+ "responses": {
32464
+ "204": {
32465
+ "description": "Response"
32466
+ }
32467
+ },
32468
+ "x-github": {
32469
+ "githubCloudOnly": false,
32470
+ "enabledForGitHubApps": true,
32471
+ "category": "deployments",
32472
+ "subcategory": "branch-policies"
32473
+ },
32474
+ "x-octokit": {}
32475
+ }
32476
+ },
32161
32477
  "/repos/{owner}/{repo}/events": {
32162
32478
  "get": {
32163
32479
  "summary": "List repository events",
@@ -66668,6 +66984,19 @@
66668
66984
  "description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy",
66669
66985
  "type": "string",
66670
66986
  "nullable": true
66987
+ },
66988
+ "retention_period_minutes": {
66989
+ "description": "Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).",
66990
+ "type": "integer",
66991
+ "example": 60,
66992
+ "nullable": true
66993
+ },
66994
+ "retention_expires_at": {
66995
+ "description": "When a codespace will be auto-deleted based on the \"retention_period_minutes\" and \"last_used_at\"",
66996
+ "type": "string",
66997
+ "format": "date-time",
66998
+ "example": "2011-01-26T20:01:12Z",
66999
+ "nullable": true
66671
67000
  }
66672
67001
  },
66673
67002
  "required": [
@@ -70530,7 +70859,6 @@
70530
70859
  "description": "Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the\nrepository. `none` means access is only possible from workflows in this repository.",
70531
70860
  "enum": [
70532
70861
  "none",
70533
- "user",
70534
70862
  "organization",
70535
70863
  "enterprise"
70536
70864
  ]
@@ -75064,7 +75392,13 @@
75064
75392
  "type": "object",
75065
75393
  "properties": {
75066
75394
  "type": {
75067
- "type": "string"
75395
+ "type": "string",
75396
+ "enum": [
75397
+ "dir",
75398
+ "file",
75399
+ "submodule",
75400
+ "symlink"
75401
+ ]
75068
75402
  },
75069
75403
  "size": {
75070
75404
  "type": "integer"
@@ -75145,7 +75479,10 @@
75145
75479
  "type": "object",
75146
75480
  "properties": {
75147
75481
  "type": {
75148
- "type": "string"
75482
+ "type": "string",
75483
+ "enum": [
75484
+ "file"
75485
+ ]
75149
75486
  },
75150
75487
  "encoding": {
75151
75488
  "type": "string"
@@ -75238,7 +75575,10 @@
75238
75575
  "type": "object",
75239
75576
  "properties": {
75240
75577
  "type": {
75241
- "type": "string"
75578
+ "type": "string",
75579
+ "enum": [
75580
+ "symlink"
75581
+ ]
75242
75582
  },
75243
75583
  "target": {
75244
75584
  "type": "string"
@@ -75314,12 +75654,15 @@
75314
75654
  ]
75315
75655
  },
75316
75656
  "content-submodule": {
75317
- "title": "Symlink Content",
75318
- "description": "An object describing a symlink",
75657
+ "title": "Submodule Content",
75658
+ "description": "An object describing a submodule",
75319
75659
  "type": "object",
75320
75660
  "properties": {
75321
75661
  "type": {
75322
- "type": "string"
75662
+ "type": "string",
75663
+ "enum": [
75664
+ "submodule"
75665
+ ]
75323
75666
  },
75324
75667
  "submodule_git_url": {
75325
75668
  "type": "string",
@@ -76055,7 +76398,7 @@
76055
76398
  "example": 30,
76056
76399
  "description": "The amount of time to delay a job after the job is initially triggered. The time (in minutes) must be an integer between 0 and 43,200 (30 days)."
76057
76400
  },
76058
- "deployment-branch-policy": {
76401
+ "deployment-branch-policy-settings": {
76059
76402
  "type": "object",
76060
76403
  "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
76061
76404
  "properties": {
@@ -76212,7 +76555,7 @@
76212
76555
  }
76213
76556
  },
76214
76557
  "deployment_branch_policy": {
76215
- "$ref": "#/components/schemas/deployment-branch-policy"
76558
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
76216
76559
  }
76217
76560
  },
76218
76561
  "required": [
@@ -76225,6 +76568,41 @@
76225
76568
  "updated_at"
76226
76569
  ]
76227
76570
  },
76571
+ "deployment-branch-policy": {
76572
+ "title": "Deployment branch policy",
76573
+ "description": "Details of a deployment branch policy.",
76574
+ "type": "object",
76575
+ "properties": {
76576
+ "id": {
76577
+ "description": "The unique identifier of the branch policy.",
76578
+ "type": "integer",
76579
+ "example": 361471
76580
+ },
76581
+ "node_id": {
76582
+ "type": "string",
76583
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
76584
+ },
76585
+ "name": {
76586
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
76587
+ "type": "string",
76588
+ "example": "release/*"
76589
+ }
76590
+ }
76591
+ },
76592
+ "deployment-branch-policy-name-pattern": {
76593
+ "title": "Deployment branch policy name pattern",
76594
+ "type": "object",
76595
+ "properties": {
76596
+ "name": {
76597
+ "description": "The name pattern that branches must match in order to deploy to the environment.\n\nWildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/*/*`.\nFor more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).",
76598
+ "type": "string",
76599
+ "example": "release/*"
76600
+ }
76601
+ },
76602
+ "required": [
76603
+ "name"
76604
+ ]
76605
+ },
76228
76606
  "short-blob": {
76229
76607
  "title": "Short Blob",
76230
76608
  "description": "Short Blob",
@@ -91807,6 +92185,8 @@
91807
92185
  },
91808
92186
  "location": "WestUs2",
91809
92187
  "idle_timeout_minutes": 60,
92188
+ "retention_period_minutes": "43200,",
92189
+ "retention_expires_at": "null,",
91810
92190
  "web_url": "https://monalisa-octocat-hello-world-g4wpq6h95q.github.dev",
91811
92191
  "machines_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/machines",
91812
92192
  "start_url": "https://api.github.com/user/codespaces/monalisa-octocat-hello-world-g4wpq6h95q/start",
@@ -100590,6 +100970,37 @@
100590
100970
  }
100591
100971
  }
100592
100972
  },
100973
+ "deployment-branch-policies-list": {
100974
+ "value": {
100975
+ "total_count": 2,
100976
+ "branch_policies": [
100977
+ {
100978
+ "id": 361471,
100979
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
100980
+ "name": "release/*"
100981
+ },
100982
+ {
100983
+ "id": 361472,
100984
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
100985
+ "name": "main"
100986
+ }
100987
+ ]
100988
+ }
100989
+ },
100990
+ "deployment-branch-policy-wildcard": {
100991
+ "value": {
100992
+ "id": 364662,
100993
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
100994
+ "name": "release/*"
100995
+ }
100996
+ },
100997
+ "deployment-branch-policy-single-branch": {
100998
+ "value": {
100999
+ "id": 364663,
101000
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
101001
+ "name": "main"
101002
+ }
101003
+ },
100593
101004
  "repo-events-items": {
100594
101005
  "value": [
100595
101006
  {
@@ -111240,11 +111651,20 @@
111240
111651
  "name": "environment_name",
111241
111652
  "in": "path",
111242
111653
  "required": true,
111243
- "description": "The name of the environment",
111654
+ "description": "The name of the environment.",
111244
111655
  "schema": {
111245
111656
  "type": "string"
111246
111657
  }
111247
111658
  },
111659
+ "branch-policy-id": {
111660
+ "name": "branch_policy_id",
111661
+ "in": "path",
111662
+ "required": true,
111663
+ "description": "The unique identifier of the branch policy.",
111664
+ "schema": {
111665
+ "type": "integer"
111666
+ }
111667
+ },
111248
111668
  "since-user": {
111249
111669
  "name": "since",
111250
111670
  "description": "A user ID. Only return users with an ID greater than this ID.",