@octokit/openapi 7.12.0 → 7.13.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 (34) hide show
  1. package/generated/api.github.com.deref.json +767 -33
  2. package/generated/api.github.com.json +312 -24
  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 +33 -15
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +23 -14
  7. package/generated/ghes-3.2.deref.json +48 -30
  8. package/generated/ghes-3.2.json +33 -24
  9. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +2 -2
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.json +2 -2
  11. package/generated/ghes-3.3.deref.json +49 -31
  12. package/generated/ghes-3.3.json +33 -24
  13. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +8 -8
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.json +3 -3
  15. package/generated/ghes-3.4.deref.json +50 -32
  16. package/generated/ghes-3.4.json +33 -24
  17. package/generated/ghes-3.5-anicca-diff-to-ghes-3.6.deref.json +11 -0
  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 +19 -19
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.json +14 -14
  22. package/generated/ghes-3.5.deref.json +166 -33
  23. package/generated/ghes-3.5.json +139 -24
  24. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +6 -11
  25. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +3 -3
  26. package/generated/ghes-3.6-diff-to-api.github.com.json +2 -2
  27. package/generated/ghes-3.6.deref.json +815 -139
  28. package/generated/ghes-3.6.json +556 -130
  29. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +6 -0
  30. package/generated/github.ae-diff-to-api.github.com.deref.json +17 -17
  31. package/generated/github.ae-diff-to-api.github.com.json +14 -14
  32. package/generated/github.ae.deref.json +102 -31
  33. package/generated/github.ae.json +77 -24
  34. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.12.0",
4
+ "version": "7.13.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": {
@@ -32618,7 +32618,7 @@
32618
32618
  "description": "The REST API URL of the code locations for this alert."
32619
32619
  },
32620
32620
  "state": {
32621
- "description": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
32621
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
32622
32622
  "type": "string",
32623
32623
  "enum": [
32624
32624
  "open",
@@ -48612,7 +48612,7 @@
48612
48612
  },
48613
48613
  {
48614
48614
  "name": "state",
48615
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
48615
+ "description": "Indicates the state of the issues to return.",
48616
48616
  "in": "query",
48617
48617
  "required": false,
48618
48618
  "schema": {
@@ -48636,7 +48636,7 @@
48636
48636
  },
48637
48637
  {
48638
48638
  "name": "sort",
48639
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
48639
+ "description": "What to sort results by.",
48640
48640
  "in": "query",
48641
48641
  "required": false,
48642
48642
  "schema": {
@@ -51868,7 +51868,7 @@
51868
51868
  "type": "string"
51869
51869
  },
51870
51870
  "mode": {
51871
- "description": "The rendering mode. Can be either `markdown` or `gfm`.",
51871
+ "description": "The rendering mode.",
51872
51872
  "enum": [
51873
51873
  "markdown",
51874
51874
  "gfm"
@@ -84343,7 +84343,7 @@
84343
84343
  },
84344
84344
  {
84345
84345
  "name": "state",
84346
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
84346
+ "description": "Indicates the state of the issues to return.",
84347
84347
  "in": "query",
84348
84348
  "required": false,
84349
84349
  "schema": {
@@ -84367,7 +84367,7 @@
84367
84367
  },
84368
84368
  {
84369
84369
  "name": "sort",
84370
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
84370
+ "description": "What to sort results by.",
84371
84371
  "in": "query",
84372
84372
  "required": false,
84373
84373
  "schema": {
@@ -94183,7 +94183,7 @@
94183
94183
  },
94184
94184
  {
94185
94185
  "name": "state",
94186
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
94186
+ "description": "Indicates the state of the projects to return.",
94187
94187
  "in": "query",
94188
94188
  "required": false,
94189
94189
  "schema": {
@@ -98938,7 +98938,7 @@
98938
98938
  "description": "The REST API URL of the code locations for this alert."
98939
98939
  },
98940
98940
  "state": {
98941
- "description": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
98941
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
98942
98942
  "type": "string",
98943
98943
  "enum": [
98944
98944
  "open",
@@ -129913,7 +129913,16 @@
129913
129913
  "description": "The outcome of the job.",
129914
129914
  "example": "success",
129915
129915
  "type": "string",
129916
- "nullable": true
129916
+ "nullable": true,
129917
+ "enum": [
129918
+ "success",
129919
+ "failure",
129920
+ "neutral",
129921
+ "cancelled",
129922
+ "skipped",
129923
+ "timed_out",
129924
+ "action_required"
129925
+ ]
129917
129926
  },
129918
129927
  "started_at": {
129919
129928
  "description": "The time that the job started, in ISO 8601 format.",
@@ -148265,7 +148274,16 @@
148265
148274
  "description": "The outcome of the job.",
148266
148275
  "example": "success",
148267
148276
  "type": "string",
148268
- "nullable": true
148277
+ "nullable": true,
148278
+ "enum": [
148279
+ "success",
148280
+ "failure",
148281
+ "neutral",
148282
+ "cancelled",
148283
+ "skipped",
148284
+ "timed_out",
148285
+ "action_required"
148286
+ ]
148269
148287
  },
148270
148288
  "started_at": {
148271
148289
  "description": "The time that the job started, in ISO 8601 format.",
@@ -148881,7 +148899,16 @@
148881
148899
  "description": "The outcome of the job.",
148882
148900
  "example": "success",
148883
148901
  "type": "string",
148884
- "nullable": true
148902
+ "nullable": true,
148903
+ "enum": [
148904
+ "success",
148905
+ "failure",
148906
+ "neutral",
148907
+ "cancelled",
148908
+ "skipped",
148909
+ "timed_out",
148910
+ "action_required"
148911
+ ]
148885
148912
  },
148886
148913
  "started_at": {
148887
148914
  "description": "The time that the job started, in ISO 8601 format.",
@@ -193176,7 +193203,7 @@
193176
193203
  }
193177
193204
  },
193178
193205
  "403": {
193179
- "description": "Response if the repository is archived or if github advanced security is not enabled for this repository",
193206
+ "description": "Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository",
193180
193207
  "content": {
193181
193208
  "application/json": {
193182
193209
  "schema": {
@@ -194378,7 +194405,7 @@
194378
194405
  }
194379
194406
  },
194380
194407
  "403": {
194381
- "description": "Response if the repository is archived or if github advanced security is not enabled for this repository",
194408
+ "description": "Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository",
194382
194409
  "content": {
194383
194410
  "application/json": {
194384
194411
  "schema": {
@@ -194584,7 +194611,7 @@
194584
194611
  "description": "Bad Request if the sarif field is invalid"
194585
194612
  },
194586
194613
  "403": {
194587
- "description": "Response if the repository is archived or if github advanced security is not enabled for this repository",
194614
+ "description": "Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository",
194588
194615
  "content": {
194589
194616
  "application/json": {
194590
194617
  "schema": {
@@ -216012,7 +216039,7 @@
216012
216039
  },
216013
216040
  "put": {
216014
216041
  "summary": "Create or update file contents",
216015
- "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.",
216042
+ "description": "Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.\n\n**Note:** If you use this endpoint and the \"[Delete a file](https://docs.github.com/enterprise-server@3.5/rest/reference/repos/#delete-file)\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.",
216016
216043
  "tags": [
216017
216044
  "repos"
216018
216045
  ],
@@ -216717,7 +216744,7 @@
216717
216744
  },
216718
216745
  "delete": {
216719
216746
  "summary": "Delete a file",
216720
- "description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.",
216747
+ "description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.\n\n**Note:** If you use this endpoint and the \"[Create or update file contents](https://docs.github.com/enterprise-server@3.5/rest/reference/repos/#create-or-update-file-contents)\" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead.",
216721
216748
  "tags": [
216722
216749
  "repos"
216723
216750
  ],
@@ -227739,7 +227766,7 @@
227739
227766
  },
227740
227767
  {
227741
227768
  "name": "sort",
227742
- "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.",
227769
+ "description": "The sort order. `stargazers` will sort by star count.",
227743
227770
  "in": "query",
227744
227771
  "required": false,
227745
227772
  "schema": {
@@ -246082,7 +246109,7 @@
246082
246109
  },
246083
246110
  {
246084
246111
  "name": "state",
246085
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
246112
+ "description": "Indicates the state of the issues to return.",
246086
246113
  "in": "query",
246087
246114
  "required": false,
246088
246115
  "schema": {
@@ -246133,7 +246160,7 @@
246133
246160
  },
246134
246161
  {
246135
246162
  "name": "sort",
246136
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
246163
+ "description": "What to sort results by.",
246137
246164
  "in": "query",
246138
246165
  "required": false,
246139
246166
  "schema": {
@@ -305783,7 +305810,7 @@
305783
305810
  },
305784
305811
  {
305785
305812
  "name": "state",
305786
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
305813
+ "description": "Indicates the state of the projects to return.",
305787
305814
  "in": "query",
305788
305815
  "required": false,
305789
305816
  "schema": {
@@ -306763,7 +306790,7 @@
306763
306790
  },
306764
306791
  {
306765
306792
  "name": "sort",
306766
- "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month).",
306793
+ "description": "What to sort results by. `popularity` will sort by the number of comments. `long-running` will sort by date created and will limit the results to pull requests that have been open for more than a month and have had activity within the past month.",
306767
306794
  "in": "query",
306768
306795
  "required": false,
306769
306796
  "schema": {
@@ -306779,7 +306806,7 @@
306779
306806
  },
306780
306807
  {
306781
306808
  "name": "direction",
306782
- "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
306809
+ "description": "The direction of the sort. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.",
306783
306810
  "in": "query",
306784
306811
  "required": false,
306785
306812
  "schema": {
@@ -314771,7 +314798,7 @@
314771
314798
  },
314772
314799
  {
314773
314800
  "name": "direction",
314774
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
314801
+ "description": "The direction to sort results. Ignored without `sort` parameter.",
314775
314802
  "in": "query",
314776
314803
  "required": false,
314777
314804
  "schema": {
@@ -324208,7 +324235,7 @@
324208
324235
  },
324209
324236
  {
324210
324237
  "name": "direction",
324211
- "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.",
324238
+ "description": "The direction to sort results. Ignored without `sort` parameter.",
324212
324239
  "in": "query",
324213
324240
  "required": false,
324214
324241
  "schema": {
@@ -347717,7 +347744,7 @@
347717
347744
  "description": "The REST API URL of the code locations for this alert."
347718
347745
  },
347719
347746
  "state": {
347720
- "description": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
347747
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
347721
347748
  "type": "string",
347722
347749
  "enum": [
347723
347750
  "open",
@@ -348059,7 +348086,7 @@
348059
348086
  "description": "The REST API URL of the code locations for this alert."
348060
348087
  },
348061
348088
  "state": {
348062
- "description": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
348089
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
348063
348090
  "type": "string",
348064
348091
  "enum": [
348065
348092
  "open",
@@ -348328,7 +348355,7 @@
348328
348355
  "type": "object",
348329
348356
  "properties": {
348330
348357
  "state": {
348331
- "description": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
348358
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
348332
348359
  "type": "string",
348333
348360
  "enum": [
348334
348361
  "open",
@@ -348406,7 +348433,7 @@
348406
348433
  "description": "The REST API URL of the code locations for this alert."
348407
348434
  },
348408
348435
  "state": {
348409
- "description": "Sets the state of the secret scanning alert. Can be either `open` or `resolved`. You must provide `resolution` when you set the state to `resolved`.",
348436
+ "description": "Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`.",
348410
348437
  "type": "string",
348411
348438
  "enum": [
348412
348439
  "open",
@@ -387614,7 +387641,7 @@
387614
387641
  },
387615
387642
  {
387616
387643
  "name": "state",
387617
- "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.",
387644
+ "description": "Indicates the state of the issues to return.",
387618
387645
  "in": "query",
387619
387646
  "required": false,
387620
387647
  "schema": {
@@ -387638,7 +387665,7 @@
387638
387665
  },
387639
387666
  {
387640
387667
  "name": "sort",
387641
- "description": "What to sort results by. Can be either `created`, `updated`, `comments`.",
387668
+ "description": "What to sort results by.",
387642
387669
  "in": "query",
387643
387670
  "required": false,
387644
387671
  "schema": {
@@ -391167,7 +391194,7 @@
391167
391194
  "parameters": [
391168
391195
  {
391169
391196
  "name": "state",
391170
- "description": "Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships.",
391197
+ "description": "Indicates the state of the memberships to return. If not specified, the API returns both active and pending memberships.",
391171
391198
  "in": "query",
391172
391199
  "required": false,
391173
391200
  "schema": {
@@ -422671,7 +422698,7 @@
422671
422698
  },
422672
422699
  {
422673
422700
  "name": "state",
422674
- "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.",
422701
+ "description": "Indicates the state of the projects to return.",
422675
422702
  "in": "query",
422676
422703
  "required": false,
422677
422704
  "schema": {
@@ -437786,6 +437813,112 @@
437786
437813
  }
437787
437814
  }
437788
437815
  },
437816
+ "/orgs/{org}/external-group/{group_id}": {
437817
+ "get": {
437818
+ "summary": "Get an external group",
437819
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.5. It was added in 3.6",
437820
+ "tags": [
437821
+ "teams"
437822
+ ],
437823
+ "operationId": "teams/external-idp-group-info-for-org",
437824
+ "externalDocs": {
437825
+ "description": "API method documentation",
437826
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/teams#external-idp-group-info-for-an-organization"
437827
+ },
437828
+ "x-octokit": {
437829
+ "ghes-3.6": "removed"
437830
+ },
437831
+ "responses": {
437832
+ "501": {
437833
+ "description": "Not Implemented"
437834
+ }
437835
+ }
437836
+ }
437837
+ },
437838
+ "/orgs/{org}/external-groups": {
437839
+ "get": {
437840
+ "summary": "List external groups in an organization",
437841
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.5. It was added in 3.6",
437842
+ "tags": [
437843
+ "teams"
437844
+ ],
437845
+ "operationId": "teams/list-external-idp-groups-for-org",
437846
+ "externalDocs": {
437847
+ "description": "API method documentation",
437848
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/teams#list-external-idp-groups-for-an-organization"
437849
+ },
437850
+ "x-octokit": {
437851
+ "ghes-3.6": "removed"
437852
+ },
437853
+ "responses": {
437854
+ "501": {
437855
+ "description": "Not Implemented"
437856
+ }
437857
+ }
437858
+ }
437859
+ },
437860
+ "/orgs/{org}/teams/{team_slug}/external-groups": {
437861
+ "get": {
437862
+ "summary": "List a connection between an external group and a team",
437863
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.5. It was added in 3.6",
437864
+ "tags": [
437865
+ "teams"
437866
+ ],
437867
+ "operationId": "teams/list-linked-external-idp-groups-to-team-for-org",
437868
+ "externalDocs": {
437869
+ "description": "API method documentation",
437870
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/teams#list-external-idp-group-team-connection"
437871
+ },
437872
+ "x-octokit": {
437873
+ "ghes-3.6": "removed"
437874
+ },
437875
+ "responses": {
437876
+ "501": {
437877
+ "description": "Not Implemented"
437878
+ }
437879
+ }
437880
+ },
437881
+ "delete": {
437882
+ "summary": "Remove the connection between an external group and a team",
437883
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.5. It was added in 3.6",
437884
+ "tags": [
437885
+ "teams"
437886
+ ],
437887
+ "operationId": "teams/unlink-external-idp-group-from-team-for-org",
437888
+ "externalDocs": {
437889
+ "description": "API method documentation",
437890
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/teams#unlink-external-idp-group-team-connection"
437891
+ },
437892
+ "x-octokit": {
437893
+ "ghes-3.6": "removed"
437894
+ },
437895
+ "responses": {
437896
+ "501": {
437897
+ "description": "Not Implemented"
437898
+ }
437899
+ }
437900
+ },
437901
+ "patch": {
437902
+ "summary": "Update the connection between an external group and a team",
437903
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.5. It was added in 3.6",
437904
+ "tags": [
437905
+ "teams"
437906
+ ],
437907
+ "operationId": "teams/link-external-idp-group-to-team-for-org",
437908
+ "externalDocs": {
437909
+ "description": "API method documentation",
437910
+ "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/teams#link-external-idp-group-team-connection"
437911
+ },
437912
+ "x-octokit": {
437913
+ "ghes-3.6": "removed"
437914
+ },
437915
+ "responses": {
437916
+ "501": {
437917
+ "description": "Not Implemented"
437918
+ }
437919
+ }
437920
+ }
437921
+ },
437789
437922
  "/repos/{owner}/{repo}/actions/permissions/workflow": {
437790
437923
  "get": {
437791
437924
  "summary": "Get default workflow permissions for a repository",