@octokit/openapi 18.1.0 → 18.2.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "18.1.0",
4
+ "version": "18.2.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": {
@@ -18639,6 +18639,15 @@
18639
18639
  {
18640
18640
  "$ref": "#/components/parameters/labels"
18641
18641
  },
18642
+ {
18643
+ "name": "type",
18644
+ "description": "Can be the name of an issue type.",
18645
+ "in": "query",
18646
+ "required": false,
18647
+ "schema": {
18648
+ "type": "string"
18649
+ }
18650
+ },
18642
18651
  {
18643
18652
  "name": "sort",
18644
18653
  "description": "What to sort results by.",
@@ -20976,6 +20985,9 @@
20976
20985
  },
20977
20986
  {
20978
20987
  "$ref": "#/components/parameters/personal-access-token-after"
20988
+ },
20989
+ {
20990
+ "$ref": "#/components/parameters/personal-access-token-token-id"
20979
20991
  }
20980
20992
  ],
20981
20993
  "responses": {
@@ -21323,6 +21335,9 @@
21323
21335
  },
21324
21336
  {
21325
21337
  "$ref": "#/components/parameters/personal-access-token-after"
21338
+ },
21339
+ {
21340
+ "$ref": "#/components/parameters/personal-access-token-token-id"
21326
21341
  }
21327
21342
  ],
21328
21343
  "responses": {
@@ -22055,7 +22070,7 @@
22055
22070
  },
22056
22071
  "patch": {
22057
22072
  "summary": "Create or update custom properties for an organization",
22058
- "description": "Creates new or updates existing custom properties defined for an organization in a batch.\n\nTo use this endpoint, the authenticated user must be one of:\n - An administrator for the organization.\n - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.",
22073
+ "description": "Creates new or updates existing custom properties defined for an organization in a batch.\n\nIf the property already exists, the existing property will be replaced with the new values.\nMissing optional values will fall back to default values, previous values will be overwritten.\nE.g. if a property exists with `values_editable_by: org_and_repo_actors` and it's updated without specifying `values_editable_by`, it will be updated to default value `org_actors`.\n\nTo use this endpoint, the authenticated user must be one of:\n - An administrator for the organization.\n - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.",
22059
22074
  "tags": [
22060
22075
  "orgs"
22061
22076
  ],
@@ -42127,7 +42142,7 @@
42127
42142
  },
42128
42143
  "post": {
42129
42144
  "summary": "Create a custom deployment protection rule on an environment",
42130
- "description": "Enable a custom deployment protection rule for an environment.\n\nThe authenticated user must have admin or owner permissions to the repository to use this endpoint.\n\nFor more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/enterprise-server@3.14/rest/apps/apps#get-an-app).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.",
42145
+ "description": "Enable a custom deployment protection rule for an environment.\n\nThe authenticated user must have admin or owner permissions to the repository to use this endpoint.\n\nFor more information about the app that is providing this custom deployment rule, see the [documentation for the `GET /apps/{app_slug}` endpoint](https://docs.github.com/enterprise-server@3.14/rest/apps/apps#get-an-app), as well as the [guide to creating custom deployment protection rules](https://docs.github.com/enterprise-server@3.14/actions/managing-workflow-runs-and-deployments/managing-deployments/creating-custom-deployment-protection-rules).\n\nOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.",
42131
42146
  "tags": [
42132
42147
  "repos"
42133
42148
  ],
@@ -45375,6 +45390,15 @@
45375
45390
  "type": "string"
45376
45391
  }
45377
45392
  },
45393
+ {
45394
+ "name": "type",
45395
+ "description": "Can be the name of an issue type. If the string `*` is passed, issues with any type are accepted. If the string `none` is passed, issues without type are returned.",
45396
+ "in": "query",
45397
+ "required": false,
45398
+ "schema": {
45399
+ "type": "string"
45400
+ }
45401
+ },
45378
45402
  {
45379
45403
  "name": "creator",
45380
45404
  "description": "The user that created the issue.",
@@ -45560,6 +45584,12 @@
45560
45584
  "items": {
45561
45585
  "type": "string"
45562
45586
  }
45587
+ },
45588
+ "type": {
45589
+ "type": "string",
45590
+ "description": "The name of the issue type to associate with this issue.",
45591
+ "nullable": true,
45592
+ "example": "Epic"
45563
45593
  }
45564
45594
  },
45565
45595
  "required": [
@@ -46415,6 +46445,12 @@
46415
46445
  "items": {
46416
46446
  "type": "string"
46417
46447
  }
46448
+ },
46449
+ "type": {
46450
+ "type": "string",
46451
+ "description": "The name of the issue type to associate with this issue or use `null` to remove the current issue type.",
46452
+ "nullable": true,
46453
+ "example": "Epic"
46418
46454
  }
46419
46455
  }
46420
46456
  },
@@ -94699,7 +94735,7 @@
94699
94735
  },
94700
94736
  "dependabot_secrets": {
94701
94737
  "type": "string",
94702
- "description": "The leve of permission to grant the access token to manage Dependabot secrets.",
94738
+ "description": "The level of permission to grant the access token to manage Dependabot secrets.",
94703
94739
  "enum": [
94704
94740
  "read",
94705
94741
  "write"
@@ -96020,6 +96056,7 @@
96020
96056
  "id": {
96021
96057
  "description": "Unique identifier of the webhook delivery.",
96022
96058
  "type": "integer",
96059
+ "format": "int64",
96023
96060
  "example": 42
96024
96061
  },
96025
96062
  "guid": {
@@ -96067,12 +96104,14 @@
96067
96104
  "installation_id": {
96068
96105
  "description": "The id of the GitHub App installation associated with this event.",
96069
96106
  "type": "integer",
96107
+ "format": "int64",
96070
96108
  "example": 123,
96071
96109
  "nullable": true
96072
96110
  },
96073
96111
  "repository_id": {
96074
96112
  "description": "The id of the repository associated with this event.",
96075
96113
  "type": "integer",
96114
+ "format": "int64",
96076
96115
  "example": 123,
96077
96116
  "nullable": true
96078
96117
  },
@@ -97847,12 +97886,12 @@
97847
97886
  "type": "object",
97848
97887
  "properties": {
97849
97888
  "id": {
97850
- "description": "The id of the runner.",
97889
+ "description": "The ID of the runner.",
97851
97890
  "type": "integer",
97852
97891
  "example": 5
97853
97892
  },
97854
97893
  "runner_group_id": {
97855
- "description": "The id of the runner group.",
97894
+ "description": "The ID of the runner group.",
97856
97895
  "type": "integer",
97857
97896
  "example": 1
97858
97897
  },
@@ -99516,6 +99555,66 @@
99516
99555
  ],
99517
99556
  "nullable": true
99518
99557
  },
99558
+ "issue-type": {
99559
+ "title": "Issue Type",
99560
+ "description": "The type of issue.",
99561
+ "type": "object",
99562
+ "nullable": true,
99563
+ "properties": {
99564
+ "id": {
99565
+ "type": "integer",
99566
+ "description": "The unique identifier of the issue type."
99567
+ },
99568
+ "node_id": {
99569
+ "type": "string",
99570
+ "description": "The node identifier of the issue type."
99571
+ },
99572
+ "name": {
99573
+ "type": "string",
99574
+ "description": "The name of the issue type."
99575
+ },
99576
+ "description": {
99577
+ "type": "string",
99578
+ "description": "The description of the issue type.",
99579
+ "nullable": true
99580
+ },
99581
+ "color": {
99582
+ "type": "string",
99583
+ "description": "The color of the issue type.",
99584
+ "enum": [
99585
+ "gray",
99586
+ "blue",
99587
+ "green",
99588
+ "yellow",
99589
+ "orange",
99590
+ "red",
99591
+ "pink",
99592
+ "purple"
99593
+ ],
99594
+ "nullable": true
99595
+ },
99596
+ "created_at": {
99597
+ "type": "string",
99598
+ "description": "The time the issue type created.",
99599
+ "format": "date-time"
99600
+ },
99601
+ "updated_at": {
99602
+ "type": "string",
99603
+ "description": "The time the issue type last updated.",
99604
+ "format": "date-time"
99605
+ },
99606
+ "is_enabled": {
99607
+ "type": "boolean",
99608
+ "description": "The enabled state of the issue type."
99609
+ }
99610
+ },
99611
+ "required": [
99612
+ "id",
99613
+ "node_id",
99614
+ "name",
99615
+ "description"
99616
+ ]
99617
+ },
99519
99618
  "nullable-integration": {
99520
99619
  "title": "GitHub app",
99521
99620
  "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
@@ -99938,6 +100037,9 @@
99938
100037
  "type": "string",
99939
100038
  "format": "uri"
99940
100039
  },
100040
+ "type": {
100041
+ "$ref": "#/components/schemas/issue-type"
100042
+ },
99941
100043
  "repository": {
99942
100044
  "$ref": "#/components/schemas/repository"
99943
100045
  },
@@ -105668,6 +105770,16 @@
105668
105770
  "maxItems": 200,
105669
105771
  "nullable": true,
105670
105772
  "description": "An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values."
105773
+ },
105774
+ "values_editable_by": {
105775
+ "type": "string",
105776
+ "nullable": true,
105777
+ "enum": [
105778
+ "org_actors",
105779
+ "org_and_repo_actors"
105780
+ ],
105781
+ "example": "org_actors",
105782
+ "description": "Who can edit the values of the property"
105671
105783
  }
105672
105784
  },
105673
105785
  "required": [
@@ -117186,6 +117298,9 @@
117186
117298
  "type": "string",
117187
117299
  "format": "uri"
117188
117300
  },
117301
+ "type": {
117302
+ "$ref": "#/components/schemas/issue-type"
117303
+ },
117189
117304
  "repository": {
117190
117305
  "$ref": "#/components/schemas/repository"
117191
117306
  },
@@ -122856,6 +122971,9 @@
122856
122971
  "type": "string",
122857
122972
  "format": "uri"
122858
122973
  },
122974
+ "type": {
122975
+ "$ref": "#/components/schemas/issue-type"
122976
+ },
122859
122977
  "performed_via_github_app": {
122860
122978
  "$ref": "#/components/schemas/nullable-integration"
122861
122979
  },
@@ -126103,6 +126221,33 @@
126103
126221
  }
126104
126222
  }
126105
126223
  },
126224
+ "dismissal-request-code-scanning": {
126225
+ "title": "Code scanning alert dismissal request data",
126226
+ "description": "Code scanning alerts that have dismissal requests.",
126227
+ "type": "object",
126228
+ "properties": {
126229
+ "type": {
126230
+ "type": "string",
126231
+ "description": "The type of request",
126232
+ "enum": [
126233
+ "code_scanning_alert_dismissal"
126234
+ ]
126235
+ },
126236
+ "data": {
126237
+ "type": "array",
126238
+ "description": "The data related to the code scanning alerts that have dismissal requests.",
126239
+ "items": {
126240
+ "type": "object",
126241
+ "properties": {
126242
+ "alert_number": {
126243
+ "type": "string",
126244
+ "description": "The number of the alert to be dismissed"
126245
+ }
126246
+ }
126247
+ }
126248
+ }
126249
+ }
126250
+ },
126106
126251
  "exemption-request-secret-scanning-metadata": {
126107
126252
  "title": "Secret Scanning Push Protection Exemption Request Metadata",
126108
126253
  "description": "Metadata for a secret scanning push protection exemption request.",
@@ -126144,6 +126289,26 @@
126144
126289
  }
126145
126290
  }
126146
126291
  },
126292
+ "dismissal-request-code-scanning-metadata": {
126293
+ "title": "Code scanning alert dismissal request metadata",
126294
+ "description": "Metadata for a code scanning alert dismissal request.",
126295
+ "type": "object",
126296
+ "properties": {
126297
+ "alert_title": {
126298
+ "type": "string",
126299
+ "description": "The title of the code scanning alert"
126300
+ },
126301
+ "reason": {
126302
+ "type": "string",
126303
+ "description": "The reason for the dismissal request",
126304
+ "enum": [
126305
+ "false positive",
126306
+ "won't fix",
126307
+ "used in tests"
126308
+ ]
126309
+ }
126310
+ }
126311
+ },
126147
126312
  "exemption-response": {
126148
126313
  "title": "Exemption response",
126149
126314
  "description": "A response to an exemption request by a delegated bypasser.",
@@ -126214,7 +126379,8 @@
126214
126379
  "enum": [
126215
126380
  "push_ruleset_bypass",
126216
126381
  "secret_scanning",
126217
- "secret_scanning_closure"
126382
+ "secret_scanning_closure",
126383
+ "code_scanning_alert_dismissal"
126218
126384
  ]
126219
126385
  },
126220
126386
  "exemption_request_data": {
@@ -126227,6 +126393,9 @@
126227
126393
  },
126228
126394
  {
126229
126395
  "$ref": "#/components/schemas/dismissal-request-secret-scanning"
126396
+ },
126397
+ {
126398
+ "$ref": "#/components/schemas/dismissal-request-code-scanning"
126230
126399
  }
126231
126400
  ]
126232
126401
  },
@@ -126254,12 +126423,15 @@
126254
126423
  "type": "object",
126255
126424
  "description": "Metadata about the exemption request.",
126256
126425
  "nullable": true,
126257
- "oneOf": [
126426
+ "anyOf": [
126258
126427
  {
126259
126428
  "$ref": "#/components/schemas/exemption-request-secret-scanning-metadata"
126260
126429
  },
126261
126430
  {
126262
126431
  "$ref": "#/components/schemas/dismissal-request-secret-scanning-metadata"
126432
+ },
126433
+ {
126434
+ "$ref": "#/components/schemas/dismissal-request-code-scanning-metadata"
126263
126435
  }
126264
126436
  ]
126265
126437
  },
@@ -129206,6 +129378,9 @@
129206
129378
  "description": "Title of the issue",
129207
129379
  "type": "string"
129208
129380
  },
129381
+ "type": {
129382
+ "$ref": "#/components/schemas/issue-type"
129383
+ },
129209
129384
  "updated_at": {
129210
129385
  "type": "string",
129211
129386
  "format": "date-time"
@@ -130597,6 +130772,9 @@
130597
130772
  "description": "Title of the issue",
130598
130773
  "type": "string"
130599
130774
  },
130775
+ "type": {
130776
+ "$ref": "#/components/schemas/issue-type"
130777
+ },
130600
130778
  "updated_at": {
130601
130779
  "type": "string",
130602
130780
  "format": "date-time"
@@ -154390,6 +154568,9 @@
154390
154568
  "description": "Title of the issue",
154391
154569
  "type": "string"
154392
154570
  },
154571
+ "type": {
154572
+ "$ref": "#/components/schemas/issue-type"
154573
+ },
154393
154574
  "updated_at": {
154394
154575
  "type": "string",
154395
154576
  "format": "date-time"
@@ -155972,6 +156153,9 @@
155972
156153
  "description": "Title of the issue",
155973
156154
  "type": "string"
155974
156155
  },
156156
+ "type": {
156157
+ "$ref": "#/components/schemas/issue-type"
156158
+ },
155975
156159
  "updated_at": {
155976
156160
  "type": "string",
155977
156161
  "format": "date-time"
@@ -157563,6 +157747,9 @@
157563
157747
  "description": "Title of the issue",
157564
157748
  "type": "string"
157565
157749
  },
157750
+ "type": {
157751
+ "$ref": "#/components/schemas/issue-type"
157752
+ },
157566
157753
  "updated_at": {
157567
157754
  "type": "string",
157568
157755
  "format": "date-time"
@@ -159188,6 +159375,9 @@
159188
159375
  "description": "Title of the issue",
159189
159376
  "type": "string"
159190
159377
  },
159378
+ "type": {
159379
+ "$ref": "#/components/schemas/issue-type"
159380
+ },
159191
159381
  "updated_at": {
159192
159382
  "type": "string",
159193
159383
  "format": "date-time"
@@ -160629,6 +160819,9 @@
160629
160819
  "description": "Title of the issue",
160630
160820
  "type": "string"
160631
160821
  },
160822
+ "type": {
160823
+ "$ref": "#/components/schemas/issue-type"
160824
+ },
160632
160825
  "updated_at": {
160633
160826
  "type": "string",
160634
160827
  "format": "date-time"
@@ -161891,6 +162084,9 @@
161891
162084
  "description": "Title of the issue",
161892
162085
  "type": "string"
161893
162086
  },
162087
+ "type": {
162088
+ "$ref": "#/components/schemas/issue-type"
162089
+ },
161894
162090
  "updated_at": {
161895
162091
  "type": "string",
161896
162092
  "format": "date-time"
@@ -163142,6 +163338,9 @@
163142
163338
  "type": "string",
163143
163339
  "format": "uri"
163144
163340
  },
163341
+ "type": {
163342
+ "$ref": "#/components/schemas/issue-type"
163343
+ },
163145
163344
  "title": {
163146
163345
  "description": "Title of the issue",
163147
163346
  "type": "string"
@@ -164390,6 +164589,9 @@
164390
164589
  "type": "string",
164391
164590
  "format": "uri"
164392
164591
  },
164592
+ "type": {
164593
+ "$ref": "#/components/schemas/issue-type"
164594
+ },
164393
164595
  "title": {
164394
164596
  "description": "Title of the issue",
164395
164597
  "type": "string"
@@ -165664,6 +165866,9 @@
165664
165866
  "type": "string",
165665
165867
  "format": "uri"
165666
165868
  },
165869
+ "type": {
165870
+ "$ref": "#/components/schemas/issue-type"
165871
+ },
165667
165872
  "title": {
165668
165873
  "description": "Title of the issue",
165669
165874
  "type": "string"
@@ -166906,6 +167111,9 @@
166906
167111
  "description": "Title of the issue",
166907
167112
  "type": "string"
166908
167113
  },
167114
+ "type": {
167115
+ "$ref": "#/components/schemas/issue-type"
167116
+ },
166909
167117
  "updated_at": {
166910
167118
  "type": "string",
166911
167119
  "format": "date-time"
@@ -169954,6 +170162,9 @@
169954
170162
  "description": "Title of the issue",
169955
170163
  "type": "string"
169956
170164
  },
170165
+ "type": {
170166
+ "$ref": "#/components/schemas/issue-type"
170167
+ },
169957
170168
  "updated_at": {
169958
170169
  "type": "string",
169959
170170
  "format": "date-time"
@@ -171360,6 +171571,9 @@
171360
171571
  "type": "string"
171361
171572
  }
171362
171573
  }
171574
+ },
171575
+ "type": {
171576
+ "$ref": "#/components/schemas/issue-type"
171363
171577
  }
171364
171578
  }
171365
171579
  },
@@ -172470,6 +172684,9 @@
172470
172684
  "description": "Title of the issue",
172471
172685
  "type": "string"
172472
172686
  },
172687
+ "type": {
172688
+ "$ref": "#/components/schemas/issue-type"
172689
+ },
172473
172690
  "updated_at": {
172474
172691
  "type": "string",
172475
172692
  "format": "date-time"
@@ -174440,6 +174657,9 @@
174440
174657
  "description": "Title of the issue",
174441
174658
  "type": "string"
174442
174659
  },
174660
+ "type": {
174661
+ "$ref": "#/components/schemas/issue-type"
174662
+ },
174443
174663
  "updated_at": {
174444
174664
  "type": "string",
174445
174665
  "format": "date-time"
@@ -285340,6 +285560,20 @@
285340
285560
  "format": "date-time"
285341
285561
  }
285342
285562
  },
285563
+ "personal-access-token-token-id": {
285564
+ "name": "token_id",
285565
+ "description": "The ID of the token",
285566
+ "in": "query",
285567
+ "required": false,
285568
+ "schema": {
285569
+ "type": "array",
285570
+ "maxItems": 50,
285571
+ "items": {
285572
+ "type": "string"
285573
+ },
285574
+ "example": "token_id[]=1,token_id[]=2"
285575
+ }
285576
+ },
285343
285577
  "fine-grained-personal-access-token-id": {
285344
285578
  "name": "pat_id",
285345
285579
  "description": "The unique identifier of the fine-grained personal access token.",