@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": {
@@ -18297,13 +18297,6 @@
18297
18297
  "permission": {
18298
18298
  "type": "string",
18299
18299
  "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.",
18300
- "enum": [
18301
- "pull",
18302
- "push",
18303
- "admin",
18304
- "maintain",
18305
- "triage"
18306
- ],
18307
18300
  "default": "push"
18308
18301
  }
18309
18302
  }
@@ -21007,7 +21000,7 @@
21007
21000
  "/repos/{owner}/{repo}/actions/permissions/access": {
21008
21001
  "get": {
21009
21002
  "summary": "Get the level of access for workflows outside of the repository",
21010
- "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.\nFor more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.6/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.",
21003
+ "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/enterprise-server@3.6/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.",
21011
21004
  "tags": [
21012
21005
  "actions"
21013
21006
  ],
@@ -21048,17 +21041,11 @@
21048
21041
  "category": "actions",
21049
21042
  "subcategory": "permissions"
21050
21043
  },
21051
- "x-octokit": {
21052
- "diff": {
21053
- "api.github.com": {
21054
- "type": "changed"
21055
- }
21056
- }
21057
- }
21044
+ "x-octokit": {}
21058
21045
  },
21059
21046
  "put": {
21060
21047
  "summary": "Set the level of access for workflows outside of the repository",
21061
- "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.\nFor more information, see \"[Managing GitHub Actions settings for a repository](https://docs.github.com/enterprise-server@3.6/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.",
21048
+ "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/enterprise-server@3.6/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.",
21062
21049
  "tags": [
21063
21050
  "actions"
21064
21051
  ],
@@ -21102,13 +21089,7 @@
21102
21089
  "category": "actions",
21103
21090
  "subcategory": "permissions"
21104
21091
  },
21105
- "x-octokit": {
21106
- "diff": {
21107
- "api.github.com": {
21108
- "type": "changed"
21109
- }
21110
- }
21111
- }
21092
+ "x-octokit": {}
21112
21093
  }
21113
21094
  },
21114
21095
  "/repos/{owner}/{repo}/actions/permissions/selected-actions": {
@@ -28703,13 +28684,6 @@
28703
28684
  "permission": {
28704
28685
  "type": "string",
28705
28686
  "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.**",
28706
- "enum": [
28707
- "pull",
28708
- "push",
28709
- "admin",
28710
- "maintain",
28711
- "triage"
28712
- ],
28713
28687
  "default": "push"
28714
28688
  }
28715
28689
  }
@@ -31706,15 +31680,15 @@
31706
31680
  },
31707
31681
  "/repos/{owner}/{repo}/environments": {
31708
31682
  "get": {
31709
- "summary": "Get all environments",
31710
- "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.",
31683
+ "summary": "List environments",
31684
+ "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.",
31711
31685
  "tags": [
31712
31686
  "repos"
31713
31687
  ],
31714
31688
  "operationId": "repos/get-all-environments",
31715
31689
  "externalDocs": {
31716
31690
  "description": "API method documentation",
31717
- "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-all-environments"
31691
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/environments#list-environments"
31718
31692
  },
31719
31693
  "parameters": [
31720
31694
  {
@@ -31763,7 +31737,7 @@
31763
31737
  "x-github": {
31764
31738
  "githubCloudOnly": false,
31765
31739
  "enabledForGitHubApps": true,
31766
- "category": "repos",
31740
+ "category": "deployments",
31767
31741
  "subcategory": "environments"
31768
31742
  },
31769
31743
  "x-octokit": {}
@@ -31772,7 +31746,7 @@
31772
31746
  "/repos/{owner}/{repo}/environments/{environment_name}": {
31773
31747
  "get": {
31774
31748
  "summary": "Get an environment",
31775
- "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.",
31749
+ "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.",
31776
31750
  "tags": [
31777
31751
  "repos"
31778
31752
  ],
@@ -31819,7 +31793,7 @@
31819
31793
  },
31820
31794
  "put": {
31821
31795
  "summary": "Create or update an environment",
31822
- "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.",
31796
+ "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.",
31823
31797
  "tags": [
31824
31798
  "repos"
31825
31799
  ],
@@ -31869,10 +31843,31 @@
31869
31843
  }
31870
31844
  },
31871
31845
  "deployment_branch_policy": {
31872
- "$ref": "#/components/schemas/deployment-branch-policy"
31846
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
31873
31847
  }
31874
31848
  },
31875
31849
  "additionalProperties": false
31850
+ },
31851
+ "examples": {
31852
+ "default": {
31853
+ "value": {
31854
+ "wait_timer": 30,
31855
+ "reviewers": [
31856
+ {
31857
+ "type": "User",
31858
+ "id": 1
31859
+ },
31860
+ {
31861
+ "type": "Team",
31862
+ "id": 1
31863
+ }
31864
+ ],
31865
+ "deployment_branch_policy": {
31866
+ "protected_branches": false,
31867
+ "custom_branch_policies": true
31868
+ }
31869
+ }
31870
+ }
31876
31871
  }
31877
31872
  }
31878
31873
  }
@@ -31948,6 +31943,315 @@
31948
31943
  "x-octokit": {}
31949
31944
  }
31950
31945
  },
31946
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies": {
31947
+ "get": {
31948
+ "summary": "List deployment branch policies",
31949
+ "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.",
31950
+ "tags": [
31951
+ "repos"
31952
+ ],
31953
+ "operationId": "repos/list-deployment-branch-policies",
31954
+ "externalDocs": {
31955
+ "description": "API method documentation",
31956
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#list-deployment-branch-policies"
31957
+ },
31958
+ "parameters": [
31959
+ {
31960
+ "$ref": "#/components/parameters/owner"
31961
+ },
31962
+ {
31963
+ "$ref": "#/components/parameters/repo"
31964
+ },
31965
+ {
31966
+ "$ref": "#/components/parameters/environment-name"
31967
+ },
31968
+ {
31969
+ "$ref": "#/components/parameters/per-page"
31970
+ },
31971
+ {
31972
+ "$ref": "#/components/parameters/page"
31973
+ }
31974
+ ],
31975
+ "responses": {
31976
+ "200": {
31977
+ "description": "Response",
31978
+ "content": {
31979
+ "application/json": {
31980
+ "schema": {
31981
+ "type": "object",
31982
+ "properties": {
31983
+ "total_count": {
31984
+ "description": "The number of deployment branch policies for the environment.",
31985
+ "type": "integer",
31986
+ "example": 2
31987
+ },
31988
+ "branch_policies": {
31989
+ "type": "array",
31990
+ "items": {
31991
+ "$ref": "#/components/schemas/deployment-branch-policy"
31992
+ }
31993
+ }
31994
+ },
31995
+ "required": [
31996
+ "total_count",
31997
+ "branch_policies"
31998
+ ]
31999
+ },
32000
+ "examples": {
32001
+ "default": {
32002
+ "$ref": "#/components/examples/deployment-branch-policies-list"
32003
+ }
32004
+ }
32005
+ }
32006
+ }
32007
+ }
32008
+ },
32009
+ "x-github": {
32010
+ "githubCloudOnly": false,
32011
+ "enabledForGitHubApps": true,
32012
+ "category": "deployments",
32013
+ "subcategory": "branch-policies"
32014
+ },
32015
+ "x-octokit": {}
32016
+ },
32017
+ "post": {
32018
+ "summary": "Create a deployment branch policy",
32019
+ "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.",
32020
+ "tags": [
32021
+ "repos"
32022
+ ],
32023
+ "operationId": "repos/create-deployment-branch-policy",
32024
+ "externalDocs": {
32025
+ "description": "API method documentation",
32026
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#create-deployment-branch-policy"
32027
+ },
32028
+ "parameters": [
32029
+ {
32030
+ "$ref": "#/components/parameters/owner"
32031
+ },
32032
+ {
32033
+ "$ref": "#/components/parameters/repo"
32034
+ },
32035
+ {
32036
+ "$ref": "#/components/parameters/environment-name"
32037
+ }
32038
+ ],
32039
+ "requestBody": {
32040
+ "required": true,
32041
+ "content": {
32042
+ "application/json": {
32043
+ "schema": {
32044
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
32045
+ },
32046
+ "examples": {
32047
+ "example-wildcard": {
32048
+ "summary": "Example of a wildcard name pattern",
32049
+ "value": {
32050
+ "name": "release/*"
32051
+ }
32052
+ },
32053
+ "example-single-branch": {
32054
+ "summary": "Example of a single branch name pattern",
32055
+ "value": {
32056
+ "name": "main"
32057
+ }
32058
+ }
32059
+ }
32060
+ }
32061
+ }
32062
+ },
32063
+ "responses": {
32064
+ "200": {
32065
+ "description": "Response",
32066
+ "content": {
32067
+ "application/json": {
32068
+ "schema": {
32069
+ "$ref": "#/components/schemas/deployment-branch-policy"
32070
+ },
32071
+ "examples": {
32072
+ "example-wildcard": {
32073
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
32074
+ },
32075
+ "example-single-branch": {
32076
+ "$ref": "#/components/examples/deployment-branch-policy-single-branch"
32077
+ }
32078
+ }
32079
+ }
32080
+ }
32081
+ },
32082
+ "303": {
32083
+ "description": "Response if the same branch name pattern already exists"
32084
+ },
32085
+ "404": {
32086
+ "description": "Not Found or `deployment_branch_policy.custom_branch_policies` property for the environment is set to false"
32087
+ }
32088
+ },
32089
+ "x-github": {
32090
+ "githubCloudOnly": false,
32091
+ "enabledForGitHubApps": true,
32092
+ "category": "deployments",
32093
+ "subcategory": "branch-policies"
32094
+ },
32095
+ "x-octokit": {}
32096
+ }
32097
+ },
32098
+ "/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}": {
32099
+ "get": {
32100
+ "summary": "Get a deployment branch policy",
32101
+ "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.",
32102
+ "tags": [
32103
+ "repos"
32104
+ ],
32105
+ "operationId": "repos/get-deployment-branch-policy",
32106
+ "externalDocs": {
32107
+ "description": "API method documentation",
32108
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#get-deployment-branch-policy"
32109
+ },
32110
+ "parameters": [
32111
+ {
32112
+ "$ref": "#/components/parameters/owner"
32113
+ },
32114
+ {
32115
+ "$ref": "#/components/parameters/repo"
32116
+ },
32117
+ {
32118
+ "$ref": "#/components/parameters/environment-name"
32119
+ },
32120
+ {
32121
+ "$ref": "#/components/parameters/branch-policy-id"
32122
+ }
32123
+ ],
32124
+ "responses": {
32125
+ "200": {
32126
+ "description": "Response",
32127
+ "content": {
32128
+ "application/json": {
32129
+ "schema": {
32130
+ "$ref": "#/components/schemas/deployment-branch-policy"
32131
+ },
32132
+ "examples": {
32133
+ "default": {
32134
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
32135
+ }
32136
+ }
32137
+ }
32138
+ }
32139
+ }
32140
+ },
32141
+ "x-github": {
32142
+ "githubCloudOnly": false,
32143
+ "enabledForGitHubApps": true,
32144
+ "category": "deployments",
32145
+ "subcategory": "branch-policies"
32146
+ },
32147
+ "x-octokit": {}
32148
+ },
32149
+ "put": {
32150
+ "summary": "Update a deployment branch policy",
32151
+ "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.",
32152
+ "tags": [
32153
+ "repos"
32154
+ ],
32155
+ "operationId": "repos/update-deployment-branch-policy",
32156
+ "externalDocs": {
32157
+ "description": "API method documentation",
32158
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#update-deployment-branch-policy"
32159
+ },
32160
+ "parameters": [
32161
+ {
32162
+ "$ref": "#/components/parameters/owner"
32163
+ },
32164
+ {
32165
+ "$ref": "#/components/parameters/repo"
32166
+ },
32167
+ {
32168
+ "$ref": "#/components/parameters/environment-name"
32169
+ },
32170
+ {
32171
+ "$ref": "#/components/parameters/branch-policy-id"
32172
+ }
32173
+ ],
32174
+ "requestBody": {
32175
+ "required": true,
32176
+ "content": {
32177
+ "application/json": {
32178
+ "schema": {
32179
+ "$ref": "#/components/schemas/deployment-branch-policy-name-pattern"
32180
+ },
32181
+ "examples": {
32182
+ "default": {
32183
+ "value": {
32184
+ "name": "release/*"
32185
+ }
32186
+ }
32187
+ }
32188
+ }
32189
+ }
32190
+ },
32191
+ "responses": {
32192
+ "200": {
32193
+ "description": "Response",
32194
+ "content": {
32195
+ "application/json": {
32196
+ "schema": {
32197
+ "$ref": "#/components/schemas/deployment-branch-policy"
32198
+ },
32199
+ "examples": {
32200
+ "default": {
32201
+ "$ref": "#/components/examples/deployment-branch-policy-wildcard"
32202
+ }
32203
+ }
32204
+ }
32205
+ }
32206
+ }
32207
+ },
32208
+ "x-github": {
32209
+ "githubCloudOnly": false,
32210
+ "enabledForGitHubApps": true,
32211
+ "category": "deployments",
32212
+ "subcategory": "branch-policies"
32213
+ },
32214
+ "x-octokit": {}
32215
+ },
32216
+ "delete": {
32217
+ "summary": "Delete a deployment branch policy",
32218
+ "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.",
32219
+ "tags": [
32220
+ "repos"
32221
+ ],
32222
+ "operationId": "repos/delete-deployment-branch-policy",
32223
+ "externalDocs": {
32224
+ "description": "API method documentation",
32225
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/deployments/branch-policies#delete-deployment-branch-policy"
32226
+ },
32227
+ "parameters": [
32228
+ {
32229
+ "$ref": "#/components/parameters/owner"
32230
+ },
32231
+ {
32232
+ "$ref": "#/components/parameters/repo"
32233
+ },
32234
+ {
32235
+ "$ref": "#/components/parameters/environment-name"
32236
+ },
32237
+ {
32238
+ "$ref": "#/components/parameters/branch-policy-id"
32239
+ }
32240
+ ],
32241
+ "responses": {
32242
+ "204": {
32243
+ "description": "Response"
32244
+ }
32245
+ },
32246
+ "x-github": {
32247
+ "githubCloudOnly": false,
32248
+ "enabledForGitHubApps": true,
32249
+ "category": "deployments",
32250
+ "subcategory": "branch-policies"
32251
+ },
32252
+ "x-octokit": {}
32253
+ }
32254
+ },
31951
32255
  "/repos/{owner}/{repo}/events": {
31952
32256
  "get": {
31953
32257
  "summary": "List repository events",
@@ -53243,6 +53547,12 @@
53243
53547
  "text/plain": {
53244
53548
  "schema": {
53245
53549
  "type": "string"
53550
+ },
53551
+ "examples": {
53552
+ "default": {
53553
+ "summary": "Example response",
53554
+ "value": "Responsive is better than fast"
53555
+ }
53246
53556
  }
53247
53557
  }
53248
53558
  }
@@ -53398,6 +53708,50 @@
53398
53708
  }
53399
53709
  }
53400
53710
  },
53711
+ "/enterprises/{enterprise}/consumed-licenses": {
53712
+ "get": {
53713
+ "summary": "List enterprise consumed licenses",
53714
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.6. It was added in api.github.com",
53715
+ "tags": [
53716
+ "enterprise-admin"
53717
+ ],
53718
+ "operationId": "enterprise-admin/get-consumed-licenses",
53719
+ "externalDocs": {
53720
+ "description": "API method documentation",
53721
+ "url": "https://docs.github.com/rest/reference/enterprise-admin#list-enterprise-consumed-licenses"
53722
+ },
53723
+ "x-octokit": {
53724
+ "api.github.com": "removed"
53725
+ },
53726
+ "responses": {
53727
+ "501": {
53728
+ "description": "Not Implemented"
53729
+ }
53730
+ }
53731
+ }
53732
+ },
53733
+ "/enterprises/{enterprise}/license-sync-status": {
53734
+ "get": {
53735
+ "summary": "Get a license sync status",
53736
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.6. It was added in api.github.com",
53737
+ "tags": [
53738
+ "enterprise-admin"
53739
+ ],
53740
+ "operationId": "enterprise-admin/get-license-sync-status",
53741
+ "externalDocs": {
53742
+ "description": "API method documentation",
53743
+ "url": "https://docs.github.com/rest/reference/enterprise-admin#get-a-license-sync-status"
53744
+ },
53745
+ "x-octokit": {
53746
+ "api.github.com": "removed"
53747
+ },
53748
+ "responses": {
53749
+ "501": {
53750
+ "description": "Not Implemented"
53751
+ }
53752
+ }
53753
+ }
53754
+ },
53401
53755
  "/enterprises/{enterprise}/settings/billing/actions": {
53402
53756
  "get": {
53403
53757
  "summary": "Get GitHub Actions billing for an enterprise",
@@ -58002,6 +58356,14 @@
58002
58356
  "write"
58003
58357
  ]
58004
58358
  },
58359
+ "organization_custom_roles": {
58360
+ "type": "string",
58361
+ "description": "The level of permission to grant the access token for custom roles management.",
58362
+ "enum": [
58363
+ "read",
58364
+ "write"
58365
+ ]
58366
+ },
58005
58367
  "deployments": {
58006
58368
  "type": "string",
58007
58369
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -72245,7 +72607,13 @@
72245
72607
  "type": "object",
72246
72608
  "properties": {
72247
72609
  "type": {
72248
- "type": "string"
72610
+ "type": "string",
72611
+ "enum": [
72612
+ "dir",
72613
+ "file",
72614
+ "submodule",
72615
+ "symlink"
72616
+ ]
72249
72617
  },
72250
72618
  "size": {
72251
72619
  "type": "integer"
@@ -72326,7 +72694,10 @@
72326
72694
  "type": "object",
72327
72695
  "properties": {
72328
72696
  "type": {
72329
- "type": "string"
72697
+ "type": "string",
72698
+ "enum": [
72699
+ "file"
72700
+ ]
72330
72701
  },
72331
72702
  "encoding": {
72332
72703
  "type": "string"
@@ -72419,7 +72790,10 @@
72419
72790
  "type": "object",
72420
72791
  "properties": {
72421
72792
  "type": {
72422
- "type": "string"
72793
+ "type": "string",
72794
+ "enum": [
72795
+ "symlink"
72796
+ ]
72423
72797
  },
72424
72798
  "target": {
72425
72799
  "type": "string"
@@ -72495,12 +72869,15 @@
72495
72869
  ]
72496
72870
  },
72497
72871
  "content-submodule": {
72498
- "title": "Symlink Content",
72499
- "description": "An object describing a symlink",
72872
+ "title": "Submodule Content",
72873
+ "description": "An object describing a submodule",
72500
72874
  "type": "object",
72501
72875
  "properties": {
72502
72876
  "type": {
72503
- "type": "string"
72877
+ "type": "string",
72878
+ "enum": [
72879
+ "submodule"
72880
+ ]
72504
72881
  },
72505
72882
  "submodule_git_url": {
72506
72883
  "type": "string",
@@ -73038,7 +73415,7 @@
73038
73415
  "example": 30,
73039
73416
  "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)."
73040
73417
  },
73041
- "deployment-branch-policy": {
73418
+ "deployment-branch-policy-settings": {
73042
73419
  "type": "object",
73043
73420
  "description": "The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`.",
73044
73421
  "properties": {
@@ -73195,7 +73572,7 @@
73195
73572
  }
73196
73573
  },
73197
73574
  "deployment_branch_policy": {
73198
- "$ref": "#/components/schemas/deployment-branch-policy"
73575
+ "$ref": "#/components/schemas/deployment-branch-policy-settings"
73199
73576
  }
73200
73577
  },
73201
73578
  "required": [
@@ -73208,6 +73585,41 @@
73208
73585
  "updated_at"
73209
73586
  ]
73210
73587
  },
73588
+ "deployment-branch-policy": {
73589
+ "title": "Deployment branch policy",
73590
+ "description": "Details of a deployment branch policy.",
73591
+ "type": "object",
73592
+ "properties": {
73593
+ "id": {
73594
+ "description": "The unique identifier of the branch policy.",
73595
+ "type": "integer",
73596
+ "example": 361471
73597
+ },
73598
+ "node_id": {
73599
+ "type": "string",
73600
+ "example": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE="
73601
+ },
73602
+ "name": {
73603
+ "description": "The name pattern that branches must match in order to deploy to the environment.",
73604
+ "type": "string",
73605
+ "example": "release/*"
73606
+ }
73607
+ }
73608
+ },
73609
+ "deployment-branch-policy-name-pattern": {
73610
+ "title": "Deployment branch policy name pattern",
73611
+ "type": "object",
73612
+ "properties": {
73613
+ "name": {
73614
+ "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).",
73615
+ "type": "string",
73616
+ "example": "release/*"
73617
+ }
73618
+ },
73619
+ "required": [
73620
+ "name"
73621
+ ]
73622
+ },
73211
73623
  "short-blob": {
73212
73624
  "title": "Short Blob",
73213
73625
  "description": "Short Blob",
@@ -95767,6 +96179,37 @@
95767
96179
  }
95768
96180
  }
95769
96181
  },
96182
+ "deployment-branch-policies-list": {
96183
+ "value": {
96184
+ "total_count": 2,
96185
+ "branch_policies": [
96186
+ {
96187
+ "id": 361471,
96188
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzE=",
96189
+ "name": "release/*"
96190
+ },
96191
+ {
96192
+ "id": 361472,
96193
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjE0NzI=",
96194
+ "name": "main"
96195
+ }
96196
+ ]
96197
+ }
96198
+ },
96199
+ "deployment-branch-policy-wildcard": {
96200
+ "value": {
96201
+ "id": 364662,
96202
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI=",
96203
+ "name": "release/*"
96204
+ }
96205
+ },
96206
+ "deployment-branch-policy-single-branch": {
96207
+ "value": {
96208
+ "id": 364663,
96209
+ "node_id": "MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjM=",
96210
+ "name": "main"
96211
+ }
96212
+ },
95770
96213
  "repo-events-items": {
95771
96214
  "value": [
95772
96215
  {
@@ -104759,11 +105202,20 @@
104759
105202
  "name": "environment_name",
104760
105203
  "in": "path",
104761
105204
  "required": true,
104762
- "description": "The name of the environment",
105205
+ "description": "The name of the environment.",
104763
105206
  "schema": {
104764
105207
  "type": "string"
104765
105208
  }
104766
105209
  },
105210
+ "branch-policy-id": {
105211
+ "name": "branch_policy_id",
105212
+ "in": "path",
105213
+ "required": true,
105214
+ "description": "The unique identifier of the branch policy.",
105215
+ "schema": {
105216
+ "type": "integer"
105217
+ }
105218
+ },
104767
105219
  "invitation-id": {
104768
105220
  "name": "invitation_id",
104769
105221
  "description": "The unique identifier of the invitation.",