@octokit/openapi 7.0.0 → 7.3.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 (35) hide show
  1. package/generated/api.github.com.deref.json +1523 -250
  2. package/generated/api.github.com.json +803 -61
  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 +17 -8
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +9 -8
  7. package/generated/ghes-3.2.deref.json +1108 -313
  8. package/generated/ghes-3.2.json +451 -31
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +16 -0
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +209 -1
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +9 -1
  12. package/generated/ghes-3.3.deref.json +1108 -313
  13. package/generated/ghes-3.3.json +451 -31
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -8
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -8
  16. package/generated/ghes-3.4.deref.json +1092 -313
  17. package/generated/ghes-3.4.json +451 -31
  18. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +1 -1
  19. package/generated/ghes-3.5-diff-to-api.github.com.json +1 -1
  20. package/generated/ghes-3.5-diff-to-ghes-3.6.deref.json +17 -8
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.json +9 -8
  22. package/generated/ghes-3.5.deref.json +1094 -315
  23. package/generated/ghes-3.5.json +453 -33
  24. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +94 -56
  25. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +89 -164
  26. package/generated/ghes-3.6-diff-to-api.github.com.json +9 -130
  27. package/generated/ghes-3.6.deref.json +1299 -488
  28. package/generated/ghes-3.6.json +499 -47
  29. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +38 -0
  30. package/generated/github.ae-diff-to-api.github.com.deref.json +49 -8
  31. package/generated/github.ae-diff-to-api.github.com.json +9 -8
  32. package/generated/github.ae.deref.json +783 -32
  33. package/generated/github.ae.json +495 -31
  34. package/index.js +2 -0
  35. 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.3.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": {
@@ -16158,13 +16158,6 @@
16158
16158
  "permission": {
16159
16159
  "type": "string",
16160
16160
  "description": "The permission to grant the team on this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.",
16161
- "enum": [
16162
- "pull",
16163
- "push",
16164
- "admin",
16165
- "maintain",
16166
- "triage"
16167
- ],
16168
16161
  "default": "push"
16169
16162
  }
16170
16163
  }
@@ -25455,13 +25448,6 @@
25455
25448
  "permission": {
25456
25449
  "type": "string",
25457
25450
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
25458
- "enum": [
25459
- "pull",
25460
- "push",
25461
- "admin",
25462
- "maintain",
25463
- "triage"
25464
- ],
25465
25451
  "default": "push"
25466
25452
  }
25467
25453
  }
@@ -28371,15 +28357,15 @@
28371
28357
  },
28372
28358
  "/repos/{owner}/{repo}/environments": {
28373
28359
  "get": {
28374
- "summary": "Get all environments",
28375
- "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.",
28360
+ "summary": "List environments",
28361
+ "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.",
28376
28362
  "tags": [
28377
28363
  "repos"
28378
28364
  ],
28379
28365
  "operationId": "repos/get-all-environments",
28380
28366
  "externalDocs": {
28381
28367
  "description": "API method documentation",
28382
- "url": "https://docs.github.com/enterprise-server@3.2/rest/reference/repos#get-all-environments"
28368
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/environments#list-environments"
28383
28369
  },
28384
28370
  "parameters": [
28385
28371
  {
@@ -28428,7 +28414,7 @@
28428
28414
  "x-github": {
28429
28415
  "githubCloudOnly": false,
28430
28416
  "enabledForGitHubApps": true,
28431
- "category": "repos",
28417
+ "category": "deployments",
28432
28418
  "subcategory": "environments"
28433
28419
  },
28434
28420
  "x-octokit": {}
@@ -28437,7 +28423,7 @@
28437
28423
  "/repos/{owner}/{repo}/environments/{environment_name}": {
28438
28424
  "get": {
28439
28425
  "summary": "Get an environment",
28440
- "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.",
28426
+ "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.",
28441
28427
  "tags": [
28442
28428
  "repos"
28443
28429
  ],
@@ -28484,7 +28470,7 @@
28484
28470
  },
28485
28471
  "put": {
28486
28472
  "summary": "Create or update an environment",
28487
- "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.",
28473
+ "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.",
28488
28474
  "tags": [
28489
28475
  "repos"
28490
28476
  ],
@@ -28534,10 +28520,31 @@
28534
28520
  }
28535
28521
  },
28536
28522
  "deployment_branch_policy": {
28537
- "$ref": "#/components/schemas/deployment-branch-policy"
28523
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
28538
28524
  }
28539
28525
  },
28540
28526
  "additionalProperties": false
28527
+ },
28528
+ "examples": {
28529
+ "default": {
28530
+ "value": {
28531
+ "wait_timer": 30,
28532
+ "reviewers": [
28533
+ {
28534
+ "type": "User",
28535
+ "id": 1
28536
+ },
28537
+ {
28538
+ "type": "Team",
28539
+ "id": 1
28540
+ }
28541
+ ],
28542
+ "deployment_branch_policy": {
28543
+ "protected_branches": false,
28544
+ "custom_branch_policies": true
28545
+ }
28546
+ }
28547
+ }
28541
28548
  }
28542
28549
  }
28543
28550
  }
@@ -28613,6 +28620,315 @@
28613
28620
  "x-octokit": {}
28614
28621
  }
28615
28622
  },
28623
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
28624
+ "get": {
28625
+ "summary": "List deployment branch policies",
28626
+ "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.",
28627
+ "tags": [
28628
+ "repos"
28629
+ ],
28630
+ "operationId": "repos/list-deployment-branch-policies",
28631
+ "externalDocs": {
28632
+ "description": "API method documentation",
28633
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#list-deployment-branch-policies"
28634
+ },
28635
+ "parameters": [
28636
+ {
28637
+ "$ref": "#/components/parameters/owner"
28638
+ },
28639
+ {
28640
+ "$ref": "#/components/parameters/repo"
28641
+ },
28642
+ {
28643
+ "$ref": "#/components/parameters/environment-name"
28644
+ },
28645
+ {
28646
+ "$ref": "#/components/parameters/per-page"
28647
+ },
28648
+ {
28649
+ "$ref": "#/components/parameters/page"
28650
+ }
28651
+ ],
28652
+ "responses": {
28653
+ "200": {
28654
+ "description": "Response",
28655
+ "content": {
28656
+ "application/json": {
28657
+ "schema": {
28658
+ "type": "object",
28659
+ "properties": {
28660
+ "total_count": {
28661
+ "description": "The number of deployment branch policies for the environment.",
28662
+ "type": "integer",
28663
+ "example": 2
28664
+ },
28665
+ "branch_policies": {
28666
+ "type": "array",
28667
+ "items": {
28668
+ "$ref": "#/components/schemas/deployment-branch-policy"
28669
+ }
28670
+ }
28671
+ },
28672
+ "required": [
28673
+ "total_count",
28674
+ "branch_policies"
28675
+ ]
28676
+ },
28677
+ "examples": {
28678
+ "default": {
28679
+ "$ref": "#/components/examples/deployment-branch-policies-list"
28680
+ }
28681
+ }
28682
+ }
28683
+ }
28684
+ }
28685
+ },
28686
+ "x-github": {
28687
+ "githubCloudOnly": false,
28688
+ "enabledForGitHubApps": true,
28689
+ "category": "deployments",
28690
+ "subcategory": "branch-policies"
28691
+ },
28692
+ "x-octokit": {}
28693
+ },
28694
+ "post": {
28695
+ "summary": "Create a deployment branch policy",
28696
+ "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.",
28697
+ "tags": [
28698
+ "repos"
28699
+ ],
28700
+ "operationId": "repos/create-deployment-branch-policy",
28701
+ "externalDocs": {
28702
+ "description": "API method documentation",
28703
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#create-deployment-branch-policy"
28704
+ },
28705
+ "parameters": [
28706
+ {
28707
+ "$ref": "#/components/parameters/owner"
28708
+ },
28709
+ {
28710
+ "$ref": "#/components/parameters/repo"
28711
+ },
28712
+ {
28713
+ "$ref": "#/components/parameters/environment-name"
28714
+ }
28715
+ ],
28716
+ "requestBody": {
28717
+ "required": true,
28718
+ "content": {
28719
+ "application/json": {
28720
+ "schema": {
28721
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
28722
+ },
28723
+ "examples": {
28724
+ "example-wildcard": {
28725
+ "summary": "Example of a wildcard name pattern",
28726
+ "value": {
28727
+ "name": "release/*"
28728
+ }
28729
+ },
28730
+ "example-single-branch": {
28731
+ "summary": "Example of a single branch name pattern",
28732
+ "value": {
28733
+ "name": "main"
28734
+ }
28735
+ }
28736
+ }
28737
+ }
28738
+ }
28739
+ },
28740
+ "responses": {
28741
+ "200": {
28742
+ "description": "Response",
28743
+ "content": {
28744
+ "application/json": {
28745
+ "schema": {
28746
+ "$ref": "#/components/schemas/deployment-branch-policy"
28747
+ },
28748
+ "examples": {
28749
+ "example-wildcard": {
28750
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
28751
+ },
28752
+ "example-single-branch": {
28753
+ "$ref": "#/components/examples/deployment-branch-policy-single-branch"
28754
+ }
28755
+ }
28756
+ }
28757
+ }
28758
+ },
28759
+ "303": {
28760
+ "description": "Response if the same branch name pattern already exists"
28761
+ },
28762
+ "404": {
28763
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
28764
+ }
28765
+ },
28766
+ "x-github": {
28767
+ "githubCloudOnly": false,
28768
+ "enabledForGitHubApps": true,
28769
+ "category": "deployments",
28770
+ "subcategory": "branch-policies"
28771
+ },
28772
+ "x-octokit": {}
28773
+ }
28774
+ },
28775
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
28776
+ "get": {
28777
+ "summary": "Get a deployment branch policy",
28778
+ "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.",
28779
+ "tags": [
28780
+ "repos"
28781
+ ],
28782
+ "operationId": "repos/get-deployment-branch-policy",
28783
+ "externalDocs": {
28784
+ "description": "API method documentation",
28785
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#get-deployment-branch-policy"
28786
+ },
28787
+ "parameters": [
28788
+ {
28789
+ "$ref": "#/components/parameters/owner"
28790
+ },
28791
+ {
28792
+ "$ref": "#/components/parameters/repo"
28793
+ },
28794
+ {
28795
+ "$ref": "#/components/parameters/environment-name"
28796
+ },
28797
+ {
28798
+ "$ref": "#/components/parameters/branch-policy-id"
28799
+ }
28800
+ ],
28801
+ "responses": {
28802
+ "200": {
28803
+ "description": "Response",
28804
+ "content": {
28805
+ "application/json": {
28806
+ "schema": {
28807
+ "$ref": "#/components/schemas/deployment-branch-policy"
28808
+ },
28809
+ "examples": {
28810
+ "default": {
28811
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
28812
+ }
28813
+ }
28814
+ }
28815
+ }
28816
+ }
28817
+ },
28818
+ "x-github": {
28819
+ "githubCloudOnly": false,
28820
+ "enabledForGitHubApps": true,
28821
+ "category": "deployments",
28822
+ "subcategory": "branch-policies"
28823
+ },
28824
+ "x-octokit": {}
28825
+ },
28826
+ "put": {
28827
+ "summary": "Update a deployment branch policy",
28828
+ "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.",
28829
+ "tags": [
28830
+ "repos"
28831
+ ],
28832
+ "operationId": "repos/update-deployment-branch-policy",
28833
+ "externalDocs": {
28834
+ "description": "API method documentation",
28835
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#update-deployment-branch-policy"
28836
+ },
28837
+ "parameters": [
28838
+ {
28839
+ "$ref": "#/components/parameters/owner"
28840
+ },
28841
+ {
28842
+ "$ref": "#/components/parameters/repo"
28843
+ },
28844
+ {
28845
+ "$ref": "#/components/parameters/environment-name"
28846
+ },
28847
+ {
28848
+ "$ref": "#/components/parameters/branch-policy-id"
28849
+ }
28850
+ ],
28851
+ "requestBody": {
28852
+ "required": true,
28853
+ "content": {
28854
+ "application/json": {
28855
+ "schema": {
28856
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
28857
+ },
28858
+ "examples": {
28859
+ "default": {
28860
+ "value": {
28861
+ "name": "release/*"
28862
+ }
28863
+ }
28864
+ }
28865
+ }
28866
+ }
28867
+ },
28868
+ "responses": {
28869
+ "200": {
28870
+ "description": "Response",
28871
+ "content": {
28872
+ "application/json": {
28873
+ "schema": {
28874
+ "$ref": "#/components/schemas/deployment-branch-policy"
28875
+ },
28876
+ "examples": {
28877
+ "default": {
28878
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
28879
+ }
28880
+ }
28881
+ }
28882
+ }
28883
+ }
28884
+ },
28885
+ "x-github": {
28886
+ "githubCloudOnly": false,
28887
+ "enabledForGitHubApps": true,
28888
+ "category": "deployments",
28889
+ "subcategory": "branch-policies"
28890
+ },
28891
+ "x-octokit": {}
28892
+ },
28893
+ "delete": {
28894
+ "summary": "Delete a deployment branch policy",
28895
+ "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.",
28896
+ "tags": [
28897
+ "repos"
28898
+ ],
28899
+ "operationId": "repos/delete-deployment-branch-policy",
28900
+ "externalDocs": {
28901
+ "description": "API method documentation",
28902
+ "url": "https://docs.github.com/enterprise-server@3.2/rest/deployments/branch-policies#delete-deployment-branch-policy"
28903
+ },
28904
+ "parameters": [
28905
+ {
28906
+ "$ref": "#/components/parameters/owner"
28907
+ },
28908
+ {
28909
+ "$ref": "#/components/parameters/repo"
28910
+ },
28911
+ {
28912
+ "$ref": "#/components/parameters/environment-name"
28913
+ },
28914
+ {
28915
+ "$ref": "#/components/parameters/branch-policy-id"
28916
+ }
28917
+ ],
28918
+ "responses": {
28919
+ "204": {
28920
+ "description": "Response"
28921
+ }
28922
+ },
28923
+ "x-github": {
28924
+ "githubCloudOnly": false,
28925
+ "enabledForGitHubApps": true,
28926
+ "category": "deployments",
28927
+ "subcategory": "branch-policies"
28928
+ },
28929
+ "x-octokit": {}
28930
+ }
28931
+ },
28616
28932
  "/repos/{owner}/{repo}/events": {
28617
28933
  "get": {
28618
28934
  "summary": "List repository events",
@@ -49468,6 +49784,12 @@
49468
49784
  "text/plain": {
49469
49785
  "schema": {
49470
49786
  "type": "string"
49787
+ },
49788
+ "examples": {
49789
+ "default": {
49790
+ "summary": "Example response",
49791
+ "value": "Responsive is better than fast"
49792
+ }
49471
49793
  }
49472
49794
  }
49473
49795
  }
@@ -50991,6 +51313,14 @@
50991
51313
  "write"
50992
51314
  ]
50993
51315
  },
51316
+ "organization_custom_roles": {
51317
+ "type": "string",
51318
+ "description": "The level of permission to grant the access token for custom roles management.",
51319
+ "enum": [
51320
+ "read",
51321
+ "write"
51322
+ ]
51323
+ },
50994
51324
  "deployments": {
50995
51325
  "type": "string",
50996
51326
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -63956,7 +64286,13 @@
63956
64286
  "type": "object",
63957
64287
  "properties": {
63958
64288
  "type": {
63959
- "type": "string"
64289
+ "type": "string",
64290
+ "enum": [
64291
+ "dir",
64292
+ "file",
64293
+ "submodule",
64294
+ "symlink"
64295
+ ]
63960
64296
  },
63961
64297
  "size": {
63962
64298
  "type": "integer"
@@ -64037,7 +64373,10 @@
64037
64373
  "type": "object",
64038
64374
  "properties": {
64039
64375
  "type": {
64040
- "type": "string"
64376
+ "type": "string",
64377
+ "enum": [
64378
+ "file"
64379
+ ]
64041
64380
  },
64042
64381
  "encoding": {
64043
64382
  "type": "string"
@@ -64130,7 +64469,10 @@
64130
64469
  "type": "object",
64131
64470
  "properties": {
64132
64471
  "type": {
64133
- "type": "string"
64472
+ "type": "string",
64473
+ "enum": [
64474
+ "symlink"
64475
+ ]
64134
64476
  },
64135
64477
  "target": {
64136
64478
  "type": "string"
@@ -64206,12 +64548,15 @@
64206
64548
  ]
64207
64549
  },
64208
64550
  "content-submodule": {
64209
- "title": "Symlink Content",
64210
- "description": "An object describing a symlink",
64551
+ "title": "Submodule Content",
64552
+ "description": "An object describing a submodule",
64211
64553
  "type": "object",
64212
64554
  "properties": {
64213
64555
  "type": {
64214
- "type": "string"
64556
+ "type": "string",
64557
+ "enum": [
64558
+ "submodule"
64559
+ ]
64215
64560
  },
64216
64561
  "submodule_git_url": {
64217
64562
  "type": "string",
@@ -64635,7 +64980,7 @@
64635
64980
  "example": 30,
64636
64981
  "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)."
64637
64982
  },
64638
- "deployment-branch-policy": {
64983
+ "deployment-branch-policy-settings": {
64639
64984
  "type": "object",
64640
64985
  "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
64641
64986
  "properties": {
@@ -64792,7 +65137,7 @@
64792
65137
  }
64793
65138
  },
64794
65139
  "deployment_branch_policy": {
64795
- "$ref": "#/components/schemas/deployment-branch-policy"
65140
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
64796
65141
  }
64797
65142
  },
64798
65143
  "required": [
@@ -64805,6 +65150,41 @@
64805
65150
  "updated_at"
64806
65151
  ]
64807
65152
  },
65153
+ "deployment-branch-policy": {
65154
+ "title": "Deployment branch policy",
65155
+ "description": "Details of a deployment branch policy.",
65156
+ "type": "object",
65157
+ "properties": {
65158
+ "id": {
65159
+ "description": "The unique identifier of the branch policy.",
65160
+ "type": "integer",
65161
+ "example": 361471
65162
+ },
65163
+ "node_id": {
65164
+ "type": "string",
65165
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
65166
+ },
65167
+ "name": {
65168
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
65169
+ "type": "string",
65170
+ "example": "release/*"
65171
+ }
65172
+ }
65173
+ },
65174
+ "deployment-branch-policy-name-pattern": {
65175
+ "title": "Deployment branch policy name pattern",
65176
+ "type": "object",
65177
+ "properties": {
65178
+ "name": {
65179
+ "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).",
65180
+ "type": "string",
65181
+ "example": "release/*"
65182
+ }
65183
+ },
65184
+ "required": [
65185
+ "name"
65186
+ ]
65187
+ },
64808
65188
  "short-blob": {
64809
65189
  "title": "Short Blob",
64810
65190
  "description": "Short Blob",
@@ -86120,6 +86500,37 @@
86120
86500
  }
86121
86501
  }
86122
86502
  },
86503
+ "deployment-branch-policies-list": {
86504
+ "value": {
86505
+ "total_count": 2,
86506
+ "branch_policies": [
86507
+ {
86508
+ "id": 361471,
86509
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
86510
+ "name": "release/*"
86511
+ },
86512
+ {
86513
+ "id": 361472,
86514
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
86515
+ "name": "main"
86516
+ }
86517
+ ]
86518
+ }
86519
+ },
86520
+ "deployment-branch-policy-wildcard": {
86521
+ "value": {
86522
+ "id": 364662,
86523
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
86524
+ "name": "release/*"
86525
+ }
86526
+ },
86527
+ "deployment-branch-policy-single-branch": {
86528
+ "value": {
86529
+ "id": 364663,
86530
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
86531
+ "name": "main"
86532
+ }
86533
+ },
86123
86534
  "repo-events-items": {
86124
86535
  "value": [
86125
86536
  {
@@ -94489,11 +94900,20 @@
94489
94900
  "name": "environment_name",
94490
94901
  "in": "path",
94491
94902
  "required": true,
94492
- "description": "The name of the environment",
94903
+ "description": "The name of the environment.",
94493
94904
  "schema": {
94494
94905
  "type": "string"
94495
94906
  }
94496
94907
  },
94908
+ "branch-policy-id": {
94909
+ "name": "branch_policy_id",
94910
+ "in": "path",
94911
+ "required": true,
94912
+ "description": "The unique identifier of the branch policy.",
94913
+ "schema": {
94914
+ "type": "integer"
94915
+ }
94916
+ },
94497
94917
  "invitation-id": {
94498
94918
  "name": "invitation_id",
94499
94919
  "description": "The unique identifier of the invitation.",
@@ -458,6 +458,14 @@
458
458
  ],
459
459
  "type": "string"
460
460
  },
461
+ "organization_custom_roles": {
462
+ "description": "The level of permission to grant the access token for custom roles management.",
463
+ "enum": [
464
+ "read",
465
+ "write"
466
+ ],
467
+ "type": "string"
468
+ },
461
469
  "organization_hooks": {
462
470
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
463
471
  "enum": [
@@ -1225,6 +1233,14 @@
1225
1233
  ],
1226
1234
  "type": "string"
1227
1235
  },
1236
+ "organization_custom_roles": {
1237
+ "description": "The level of permission to grant the access token for custom roles management.",
1238
+ "enum": [
1239
+ "read",
1240
+ "write"
1241
+ ],
1242
+ "type": "string"
1243
+ },
1228
1244
  "organization_hooks": {
1229
1245
  "description": "The level of permission to grant the access token to manage the post-receive hooks for an organization.",
1230
1246
  "enum": [