@octokit/openapi 7.5.0 → 7.8.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 +2249 -268
  2. package/generated/api.github.com.json +1222 -129
  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 +386 -28
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +43 -17
  7. package/generated/ghes-3.2.deref.json +778 -256
  8. package/generated/ghes-3.2.json +588 -40
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +0 -16
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +205 -225
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +445 -12
  12. package/generated/ghes-3.3.deref.json +785 -257
  13. package/generated/ghes-3.3.json +595 -41
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +153 -1
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +13 -1
  16. package/generated/ghes-3.4.deref.json +816 -243
  17. package/generated/ghes-3.4.json +603 -43
  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 +462 -42
  21. package/generated/ghes-3.5-diff-to-ghes-3.6.json +304 -18
  22. package/generated/ghes-3.5.deref.json +829 -243
  23. package/generated/ghes-3.5.json +603 -43
  24. package/generated/ghes-3.6-anicca-diff-to-api.github.com.deref.json +519 -89
  25. package/generated/ghes-3.6-diff-to-api.github.com.deref.json +18071 -6614
  26. package/generated/ghes-3.6-diff-to-api.github.com.json +6665 -4290
  27. package/generated/ghes-3.6.deref.json +1048 -256
  28. package/generated/ghes-3.6.json +826 -56
  29. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +347 -32
  30. package/generated/github.ae-diff-to-api.github.com.deref.json +11634 -3854
  31. package/generated/github.ae-diff-to-api.github.com.json +1185 -40
  32. package/generated/github.ae.deref.json +1087 -178
  33. package/generated/github.ae.json +865 -50
  34. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "7.5.0",
4
+ "version": "7.8.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": {
@@ -2710,6 +2710,11 @@
2710
2710
  "application/json": {
2711
2711
  "schema": {
2712
2712
  "$ref": "#/components/schemas/branch-with-protection"
2713
+ },
2714
+ "examples": {
2715
+ "default": {
2716
+ "$ref": "#/components/examples/branch-get"
2717
+ }
2713
2718
  }
2714
2719
  }
2715
2720
  }
@@ -3044,6 +3049,11 @@
3044
3049
  "application/json": {
3045
3050
  "schema": {
3046
3051
  "$ref": "#/components/schemas/protected-branch"
3052
+ },
3053
+ "examples": {
3054
+ "default": {
3055
+ "$ref": "#/components/examples/branch-protection-update"
3056
+ }
3047
3057
  }
3048
3058
  }
3049
3059
  }
@@ -5090,14 +5100,6 @@
5090
5100
  "write"
5091
5101
  ]
5092
5102
  },
5093
- "organization_custom_roles": {
5094
- "type": "string",
5095
- "description": "The level of permission to grant the access token for custom roles management.",
5096
- "enum": [
5097
- "read",
5098
- "write"
5099
- ]
5100
- },
5101
5103
  "deployments": {
5102
5104
  "type": "string",
5103
5105
  "description": "The level of permission to grant the access token for deployments and deployment statuses.",
@@ -6058,7 +6060,7 @@
6058
6060
  "example": "2017-08-17T12:37:15Z"
6059
6061
  },
6060
6062
  "organization": {
6061
- "$ref": "#/components/schemas/organization-full"
6063
+ "$ref": "#/components/schemas/team-organization"
6062
6064
  },
6063
6065
  "ldap_dn": {
6064
6066
  "description": "Distinguished Name (DN) that team maps to within LDAP environment",
@@ -7914,6 +7916,10 @@
7914
7916
  "starred_at": {
7915
7917
  "type": "string",
7916
7918
  "example": "\"2020-07-09T00:17:42Z\""
7919
+ },
7920
+ "anonymous_access_enabled": {
7921
+ "type": "boolean",
7922
+ "description": "Whether anonymous git access is enabled for this repository"
7917
7923
  }
7918
7924
  },
7919
7925
  "required": [
@@ -8113,6 +8119,258 @@
8113
8119
  ],
8114
8120
  "nullable": true
8115
8121
  },
8122
+ "team-organization": {
8123
+ "title": "Team Organization",
8124
+ "description": "Team Organization",
8125
+ "type": "object",
8126
+ "properties": {
8127
+ "login": {
8128
+ "type": "string",
8129
+ "example": "github"
8130
+ },
8131
+ "id": {
8132
+ "type": "integer",
8133
+ "example": 1
8134
+ },
8135
+ "node_id": {
8136
+ "type": "string",
8137
+ "example": "MDEyOk9yZ2FuaXphdGlvbjE="
8138
+ },
8139
+ "url": {
8140
+ "type": "string",
8141
+ "format": "uri",
8142
+ "example": "https://api.github.com/orgs/github"
8143
+ },
8144
+ "repos_url": {
8145
+ "type": "string",
8146
+ "format": "uri",
8147
+ "example": "https://api.github.com/orgs/github/repos"
8148
+ },
8149
+ "events_url": {
8150
+ "type": "string",
8151
+ "format": "uri",
8152
+ "example": "https://api.github.com/orgs/github/events"
8153
+ },
8154
+ "hooks_url": {
8155
+ "type": "string",
8156
+ "example": "https://api.github.com/orgs/github/hooks"
8157
+ },
8158
+ "issues_url": {
8159
+ "type": "string",
8160
+ "example": "https://api.github.com/orgs/github/issues"
8161
+ },
8162
+ "members_url": {
8163
+ "type": "string",
8164
+ "example": "https://api.github.com/orgs/github/members{/member}"
8165
+ },
8166
+ "public_members_url": {
8167
+ "type": "string",
8168
+ "example": "https://api.github.com/orgs/github/public_members{/member}"
8169
+ },
8170
+ "avatar_url": {
8171
+ "type": "string",
8172
+ "example": "https://github.com/images/error/octocat_happy.gif"
8173
+ },
8174
+ "description": {
8175
+ "type": "string",
8176
+ "example": "A great organization",
8177
+ "nullable": true
8178
+ },
8179
+ "name": {
8180
+ "type": "string",
8181
+ "example": "github"
8182
+ },
8183
+ "company": {
8184
+ "type": "string",
8185
+ "example": "GitHub"
8186
+ },
8187
+ "blog": {
8188
+ "type": "string",
8189
+ "format": "uri",
8190
+ "example": "https://github.com/blog"
8191
+ },
8192
+ "location": {
8193
+ "type": "string",
8194
+ "example": "San Francisco"
8195
+ },
8196
+ "email": {
8197
+ "type": "string",
8198
+ "format": "email",
8199
+ "example": "octocat@github.com"
8200
+ },
8201
+ "twitter_username": {
8202
+ "type": "string",
8203
+ "example": "github",
8204
+ "nullable": true
8205
+ },
8206
+ "is_verified": {
8207
+ "type": "boolean",
8208
+ "example": true
8209
+ },
8210
+ "has_organization_projects": {
8211
+ "type": "boolean",
8212
+ "example": true
8213
+ },
8214
+ "has_repository_projects": {
8215
+ "type": "boolean",
8216
+ "example": true
8217
+ },
8218
+ "public_repos": {
8219
+ "type": "integer",
8220
+ "example": 2
8221
+ },
8222
+ "public_gists": {
8223
+ "type": "integer",
8224
+ "example": 1
8225
+ },
8226
+ "followers": {
8227
+ "type": "integer",
8228
+ "example": 20
8229
+ },
8230
+ "following": {
8231
+ "type": "integer",
8232
+ "example": 0
8233
+ },
8234
+ "html_url": {
8235
+ "type": "string",
8236
+ "format": "uri",
8237
+ "example": "https://github.com/octocat"
8238
+ },
8239
+ "created_at": {
8240
+ "type": "string",
8241
+ "format": "date-time",
8242
+ "example": "2008-01-14T04:33:35Z"
8243
+ },
8244
+ "type": {
8245
+ "type": "string",
8246
+ "example": "Organization"
8247
+ },
8248
+ "total_private_repos": {
8249
+ "type": "integer",
8250
+ "example": 100
8251
+ },
8252
+ "owned_private_repos": {
8253
+ "type": "integer",
8254
+ "example": 100
8255
+ },
8256
+ "private_gists": {
8257
+ "type": "integer",
8258
+ "example": 81,
8259
+ "nullable": true
8260
+ },
8261
+ "disk_usage": {
8262
+ "type": "integer",
8263
+ "example": 10000,
8264
+ "nullable": true
8265
+ },
8266
+ "collaborators": {
8267
+ "type": "integer",
8268
+ "example": 8,
8269
+ "nullable": true
8270
+ },
8271
+ "billing_email": {
8272
+ "type": "string",
8273
+ "format": "email",
8274
+ "example": "org@example.com",
8275
+ "nullable": true
8276
+ },
8277
+ "plan": {
8278
+ "type": "object",
8279
+ "properties": {
8280
+ "name": {
8281
+ "type": "string"
8282
+ },
8283
+ "space": {
8284
+ "type": "integer"
8285
+ },
8286
+ "private_repos": {
8287
+ "type": "integer"
8288
+ },
8289
+ "filled_seats": {
8290
+ "type": "integer"
8291
+ },
8292
+ "seats": {
8293
+ "type": "integer"
8294
+ }
8295
+ },
8296
+ "required": [
8297
+ "name",
8298
+ "space",
8299
+ "private_repos"
8300
+ ]
8301
+ },
8302
+ "default_repository_permission": {
8303
+ "type": "string",
8304
+ "nullable": true
8305
+ },
8306
+ "members_can_create_repositories": {
8307
+ "type": "boolean",
8308
+ "example": true,
8309
+ "nullable": true
8310
+ },
8311
+ "two_factor_requirement_enabled": {
8312
+ "type": "boolean",
8313
+ "example": true,
8314
+ "nullable": true
8315
+ },
8316
+ "members_allowed_repository_creation_type": {
8317
+ "type": "string",
8318
+ "example": "all"
8319
+ },
8320
+ "members_can_create_public_repositories": {
8321
+ "type": "boolean",
8322
+ "example": true
8323
+ },
8324
+ "members_can_create_private_repositories": {
8325
+ "type": "boolean",
8326
+ "example": true
8327
+ },
8328
+ "members_can_create_internal_repositories": {
8329
+ "type": "boolean",
8330
+ "example": true
8331
+ },
8332
+ "members_can_create_pages": {
8333
+ "type": "boolean",
8334
+ "example": true
8335
+ },
8336
+ "members_can_create_public_pages": {
8337
+ "type": "boolean",
8338
+ "example": true
8339
+ },
8340
+ "members_can_create_private_pages": {
8341
+ "type": "boolean",
8342
+ "example": true
8343
+ },
8344
+ "updated_at": {
8345
+ "type": "string",
8346
+ "format": "date-time"
8347
+ }
8348
+ },
8349
+ "required": [
8350
+ "login",
8351
+ "url",
8352
+ "id",
8353
+ "node_id",
8354
+ "repos_url",
8355
+ "events_url",
8356
+ "hooks_url",
8357
+ "issues_url",
8358
+ "members_url",
8359
+ "public_members_url",
8360
+ "avatar_url",
8361
+ "description",
8362
+ "html_url",
8363
+ "has_organization_projects",
8364
+ "has_repository_projects",
8365
+ "public_repos",
8366
+ "public_gists",
8367
+ "followers",
8368
+ "following",
8369
+ "type",
8370
+ "created_at",
8371
+ "updated_at"
8372
+ ]
8373
+ },
8116
8374
  "commit": {
8117
8375
  "title": "Commit",
8118
8376
  "description": "Commit",
@@ -9165,6 +9423,11 @@
9165
9423
  "nullable": true,
9166
9424
  "type": "string",
9167
9425
  "description": "Detailed documentation for the rule as GitHub Flavored Markdown."
9426
+ },
9427
+ "help_uri": {
9428
+ "nullable": true,
9429
+ "type": "string",
9430
+ "description": "A link to the documentation for the rule used to detect the alert."
9168
9431
  }
9169
9432
  }
9170
9433
  }
@@ -10107,6 +10370,109 @@
10107
10370
  }
10108
10371
  ]
10109
10372
  },
10373
+ "branch-get": {
10374
+ "value": {
10375
+ "name": "main",
10376
+ "commit": {
10377
+ "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
10378
+ "node_id": "MDY6Q29tbWl0MTI5NjI2OTo3ZmQxYTYwYjAxZjkxYjMxNGY1OTk1NWE0ZTRkNGU4MGQ4ZWRmMTFk",
10379
+ "commit": {
10380
+ "author": {
10381
+ "name": "The Octocat",
10382
+ "email": "octocat@nowhere.com",
10383
+ "date": "2012-03-06T23:06:50Z"
10384
+ },
10385
+ "committer": {
10386
+ "name": "The Octocat",
10387
+ "email": "octocat@nowhere.com",
10388
+ "date": "2012-03-06T23:06:50Z"
10389
+ },
10390
+ "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
10391
+ "tree": {
10392
+ "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
10393
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
10394
+ },
10395
+ "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
10396
+ "comment_count": 77,
10397
+ "verification": {
10398
+ "verified": false,
10399
+ "reason": "unsigned",
10400
+ "signature": null,
10401
+ "payload": null
10402
+ }
10403
+ },
10404
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
10405
+ "html_url": "https://github.com/octocat/Hello-World/commit/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
10406
+ "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d/comments",
10407
+ "author": {
10408
+ "login": "octocat",
10409
+ "id": 583231,
10410
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
10411
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
10412
+ "gravatar_id": "",
10413
+ "url": "https://api.github.com/users/octocat",
10414
+ "html_url": "https://github.com/octocat",
10415
+ "followers_url": "https://api.github.com/users/octocat/followers",
10416
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
10417
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
10418
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
10419
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
10420
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
10421
+ "repos_url": "https://api.github.com/users/octocat/repos",
10422
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
10423
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
10424
+ "type": "User",
10425
+ "site_admin": false
10426
+ },
10427
+ "committer": {
10428
+ "login": "octocat",
10429
+ "id": 583231,
10430
+ "node_id": "MDQ6VXNlcjU4MzIzMQ==",
10431
+ "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
10432
+ "gravatar_id": "",
10433
+ "url": "https://api.github.com/users/octocat",
10434
+ "html_url": "https://github.com/octocat",
10435
+ "followers_url": "https://api.github.com/users/octocat/followers",
10436
+ "following_url": "https://api.github.com/users/octocat/following{/other_user}",
10437
+ "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
10438
+ "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
10439
+ "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
10440
+ "organizations_url": "https://api.github.com/users/octocat/orgs",
10441
+ "repos_url": "https://api.github.com/users/octocat/repos",
10442
+ "events_url": "https://api.github.com/users/octocat/events{/privacy}",
10443
+ "received_events_url": "https://api.github.com/users/octocat/received_events",
10444
+ "type": "User",
10445
+ "site_admin": false
10446
+ },
10447
+ "parents": [
10448
+ {
10449
+ "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
10450
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
10451
+ "html_url": "https://github.com/octocat/Hello-World/commit/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
10452
+ },
10453
+ {
10454
+ "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
10455
+ "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303",
10456
+ "html_url": "https://github.com/octocat/Hello-World/commit/762941318ee16e59dabbacb1b4049eec22f0d303"
10457
+ }
10458
+ ]
10459
+ },
10460
+ "_links": {
10461
+ "self": "https://api.github.com/repos/octocat/Hello-World/branches/main",
10462
+ "html": "https://github.com/octocat/Hello-World/tree/main"
10463
+ },
10464
+ "protected": false,
10465
+ "protection": {
10466
+ "enabled": false,
10467
+ "required_status_checks": {
10468
+ "enforcement_level": "off",
10469
+ "contexts": [],
10470
+ "checks": []
10471
+ }
10472
+ },
10473
+ "protection_url": "https://api.github.com/repos/octocat/Hello-World/branches/main/protection"
10474
+ }
10475
+ },
10110
10476
  "branch-protection": {
10111
10477
  "value": {
10112
10478
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection",
@@ -10303,6 +10669,71 @@
10303
10669
  }
10304
10670
  }
10305
10671
  },
10672
+ "branch-protection-update": {
10673
+ "value": {
10674
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection",
10675
+ "required_status_checks": {
10676
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks",
10677
+ "strict": true,
10678
+ "contexts": [
10679
+ "continuous-integration/travis-ci"
10680
+ ],
10681
+ "contexts_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_status_checks/contexts",
10682
+ "checks": [
10683
+ {
10684
+ "context": "continuous-integration/travis-ci",
10685
+ "app_id": null
10686
+ }
10687
+ ]
10688
+ },
10689
+ "restrictions": {
10690
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions",
10691
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/users",
10692
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/teams",
10693
+ "apps_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/restrictions/apps",
10694
+ "users": [],
10695
+ "teams": [],
10696
+ "apps": []
10697
+ },
10698
+ "required_pull_request_reviews": {
10699
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_pull_request_reviews",
10700
+ "dismiss_stale_reviews": true,
10701
+ "require_code_owner_reviews": true,
10702
+ "required_approving_review_count": 2,
10703
+ "dismissal_restrictions": {
10704
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions",
10705
+ "users_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/users",
10706
+ "teams_url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/dismissal_restrictions/teams",
10707
+ "users": [],
10708
+ "teams": [],
10709
+ "apps": []
10710
+ }
10711
+ },
10712
+ "required_signatures": {
10713
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/required_signatures",
10714
+ "enabled": false
10715
+ },
10716
+ "enforce_admins": {
10717
+ "url": "https://api.github.com/repos/octocat/hello-world/branches/main/protection/enforce_admins",
10718
+ "enabled": true
10719
+ },
10720
+ "required_linear_history": {
10721
+ "enabled": true
10722
+ },
10723
+ "allow_force_pushes": {
10724
+ "enabled": true
10725
+ },
10726
+ "allow_deletions": {
10727
+ "enabled": true
10728
+ },
10729
+ "block_creations": {
10730
+ "enabled": true
10731
+ },
10732
+ "required_conversation_resolution": {
10733
+ "enabled": true
10734
+ }
10735
+ }
10736
+ },
10306
10737
  "protected-branch-pull-request-review": {
10307
10738
  "value": {
10308
10739
  "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews",
@@ -10648,7 +11079,8 @@
10648
11079
  "security",
10649
11080
  "external/cwe/cwe-022"
10650
11081
  ],
10651
- "help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ..."
11082
+ "help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...",
11083
+ "help_uri": "https://codeql.github.com/"
10652
11084
  },
10653
11085
  "tool": {
10654
11086
  "name": "CodeQL",
@@ -10718,7 +11150,8 @@
10718
11150
  "security",
10719
11151
  "external/cwe/cwe-022"
10720
11152
  ],
10721
- "help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ..."
11153
+ "help": "# Arbitrary file write during zip extraction (\"Zip Slip\")\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...",
11154
+ "help_uri": "https://codeql.github.com/"
10722
11155
  },
10723
11156
  "tool": {
10724
11157
  "name": "CodeQL",