@octokit/openapi 6.6.0 → 6.6.3

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": "6.6.0",
4
+ "version": "6.6.3",
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": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -13191,6 +13191,18 @@
13191
13191
  "type": "string"
13192
13192
  }
13193
13193
  }
13194
+ },
13195
+ "examples": {
13196
+ "default": {
13197
+ "summary": "Create an authorization",
13198
+ "value": {
13199
+ "scopes": ["public_repo"],
13200
+ "note": "optional note",
13201
+ "note_url": "http://optional/note/url",
13202
+ "client_id": "abcde12345fghij67890",
13203
+ "client_secret": "3ef4ad510c59ad37bac6bb4f80047fb3aee3cc7f"
13204
+ }
13205
+ }
13194
13206
  }
13195
13207
  }
13196
13208
  }
@@ -13819,9 +13831,9 @@
13819
13831
  "name": "client_id",
13820
13832
  "in": "path",
13821
13833
  "required": true,
13822
- "description": "The client ID of the GitHub app.",
13834
+ "description": "The client ID of the OAuth app.",
13823
13835
  "schema": { "type": "string" },
13824
- "examples": { "default": { "value": "Iv1.8a61f9b3a7aba766" } }
13836
+ "examples": { "default": { "value": "abcde12345fghij67890" } }
13825
13837
  }
13826
13838
  ],
13827
13839
  "requestBody": {
@@ -13858,6 +13870,17 @@
13858
13870
  },
13859
13871
  "required": ["client_secret"],
13860
13872
  "type": "object"
13873
+ },
13874
+ "examples": {
13875
+ "default": {
13876
+ "summary": "Create an authorization for an app",
13877
+ "value": {
13878
+ "client_secret": "3ef4ad510c59ad37bac6bb4f80047fb3aee3cc7f",
13879
+ "scopes": ["public_repo"],
13880
+ "note": "optional note",
13881
+ "note_url": "http://optional/note/url"
13882
+ }
13883
+ }
13861
13884
  }
13862
13885
  }
13863
13886
  }
@@ -14966,9 +14989,9 @@
14966
14989
  "name": "client_id",
14967
14990
  "in": "path",
14968
14991
  "required": true,
14969
- "description": "The client ID of the GitHub app.",
14992
+ "description": "The client ID of the OAuth app.",
14970
14993
  "schema": { "type": "string" },
14971
- "examples": { "default": { "value": "Iv1.8a61f9b3a7aba766" } }
14994
+ "examples": { "default": { "value": "abcde12345fghij67890" } }
14972
14995
  },
14973
14996
  {
14974
14997
  "name": "fingerprint",
@@ -15007,6 +15030,17 @@
15007
15030
  },
15008
15031
  "required": ["client_secret"],
15009
15032
  "type": "object"
15033
+ },
15034
+ "examples": {
15035
+ "default": {
15036
+ "summary": "Create an authorization for an app and fingerprint",
15037
+ "value": {
15038
+ "client_secret": "3ef4ad510c59ad37bac6bb4f80047fb3aee3cc7f",
15039
+ "scopes": ["public_repo"],
15040
+ "note": "optional note",
15041
+ "note_url": "http://optional/note/url"
15042
+ }
15043
+ }
15010
15044
  }
15011
15045
  }
15012
15046
  }
@@ -47563,7 +47597,7 @@
47563
47597
  },
47564
47598
  "members_allowed_repository_creation_type": {
47565
47599
  "type": "string",
47566
- "description": "Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
47600
+ "description": "Specifies which types of repositories non-admin organization members can create. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details.",
47567
47601
  "enum": ["all", "private", "none"]
47568
47602
  },
47569
47603
  "members_can_create_pages": {
@@ -69626,6 +69660,7 @@
69626
69660
  },
69627
69661
  "exclude": {
69628
69662
  "type": "array",
69663
+ "description": "Exclude related items from being returned in the response in order to improve performance of the request. The array can include any of: `\"repositories\"`.",
69629
69664
  "items": { "type": "string", "enum": ["repositories"] }
69630
69665
  }
69631
69666
  },
@@ -255692,7 +255727,7 @@
255692
255727
  "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": {
255693
255728
  "get": {
255694
255729
  "summary": "List requested reviewers for a pull request",
255695
- "description": "",
255730
+ "description": "Lists the users or teams whose review is requested for a pull request. Once a requested reviewer submits a review, they are no longer considered a requested reviewer. Their review will instead be returned by the [List reviews for a pull request](https://docs.github.com/enterprise-server@3.4/rest/pulls/reviews#list-reviews-for-a-pull-request) operation.",
255696
255731
  "tags": ["pulls"],
255697
255732
  "operationId": "pulls/list-requested-reviewers",
255698
255733
  "externalDocs": {
@@ -308238,6 +308273,14 @@
308238
308273
  },
308239
308274
  "required": ["repositories"],
308240
308275
  "type": "object"
308276
+ },
308277
+ "examples": {
308278
+ "default": {
308279
+ "value": {
308280
+ "repositories": ["octocat/Hello-World"],
308281
+ "lock_repositories": true
308282
+ }
308283
+ }
308241
308284
  }
308242
308285
  }
308243
308286
  }
@@ -343283,7 +343326,7 @@
343283
343326
  "/enterprises/{enterprise}/actions/cache/usage": {
343284
343327
  "get": {
343285
343328
  "summary": "Get GitHub Actions cache usage for an enterprise",
343286
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343329
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343287
343330
  "operationId": "actions/get-actions-cache-usage-for-enterprise",
343288
343331
  "tags": ["actions"],
343289
343332
  "externalDocs": {
@@ -343297,7 +343340,7 @@
343297
343340
  "/enterprises/{enterprise}/actions/cache/usage-policy": {
343298
343341
  "get": {
343299
343342
  "summary": "Get GitHub Actions cache usage policy for an enterprise",
343300
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343343
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343301
343344
  "tags": ["actions"],
343302
343345
  "operationId": "actions/get-actions-cache-usage-policy-for-enterprise",
343303
343346
  "externalDocs": {
@@ -343309,7 +343352,7 @@
343309
343352
  },
343310
343353
  "patch": {
343311
343354
  "summary": "Set GitHub Actions cache usage policy for an enterprise",
343312
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343355
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343313
343356
  "tags": ["actions"],
343314
343357
  "operationId": "actions/set-actions-cache-usage-policy-for-enterprise",
343315
343358
  "externalDocs": {
@@ -343323,7 +343366,7 @@
343323
343366
  "/orgs/{org}/actions/cache/usage": {
343324
343367
  "get": {
343325
343368
  "summary": "Get GitHub Actions cache usage for an organization",
343326
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343369
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343327
343370
  "tags": ["actions"],
343328
343371
  "operationId": "actions/get-actions-cache-usage-for-org",
343329
343372
  "externalDocs": {
@@ -343337,7 +343380,7 @@
343337
343380
  "/orgs/{org}/actions/cache/usage-by-repository": {
343338
343381
  "get": {
343339
343382
  "summary": "List repositories with GitHub Actions cache usage for an organization",
343340
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343383
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343341
343384
  "tags": ["actions"],
343342
343385
  "operationId": "actions/get-actions-cache-usage-by-repo-for-org",
343343
343386
  "externalDocs": {
@@ -343351,7 +343394,7 @@
343351
343394
  "/orgs/{org}/actions/permissions/workflow": {
343352
343395
  "get": {
343353
343396
  "summary": "Get default workflow permissions for an organization",
343354
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343397
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343355
343398
  "tags": ["actions"],
343356
343399
  "operationId": "actions/get-github-actions-default-workflow-permissions-organization",
343357
343400
  "externalDocs": {
@@ -343363,7 +343406,7 @@
343363
343406
  },
343364
343407
  "put": {
343365
343408
  "summary": "Set default workflow permissions for an organization",
343366
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343409
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343367
343410
  "tags": ["actions"],
343368
343411
  "operationId": "actions/set-github-actions-default-workflow-permissions-organization",
343369
343412
  "externalDocs": {
@@ -343377,7 +343420,7 @@
343377
343420
  "/orgs/{org}/code-scanning/alerts": {
343378
343421
  "get": {
343379
343422
  "summary": "List code scanning alerts for an organization",
343380
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343423
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343381
343424
  "tags": ["code-scanning"],
343382
343425
  "operationId": "code-scanning/list-alerts-for-org",
343383
343426
  "externalDocs": {
@@ -343391,7 +343434,7 @@
343391
343434
  "/repos/{owner}/{repo}/actions/cache/usage": {
343392
343435
  "get": {
343393
343436
  "summary": "Get GitHub Actions cache usage for a repository",
343394
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343437
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343395
343438
  "tags": ["actions"],
343396
343439
  "operationId": "actions/get-actions-cache-usage",
343397
343440
  "externalDocs": {
@@ -343405,7 +343448,7 @@
343405
343448
  "/repos/{owner}/{repo}/actions/cache/usage-policy": {
343406
343449
  "get": {
343407
343450
  "summary": "Get GitHub Actions cache usage policy for a repository",
343408
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343451
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343409
343452
  "tags": ["actions"],
343410
343453
  "operationId": "actions/get-actions-cache-usage-policy",
343411
343454
  "externalDocs": {
@@ -343417,7 +343460,7 @@
343417
343460
  },
343418
343461
  "patch": {
343419
343462
  "summary": "Set GitHub Actions cache usage policy for a repository",
343420
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343463
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343421
343464
  "tags": ["actions"],
343422
343465
  "operationId": "actions/set-actions-cache-usage-policy",
343423
343466
  "externalDocs": {
@@ -343431,7 +343474,7 @@
343431
343474
  "/repos/{owner}/{repo}/actions/jobs/{job_id}/rerun": {
343432
343475
  "post": {
343433
343476
  "summary": "Re-run a job from a workflow run",
343434
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343477
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343435
343478
  "tags": ["actions"],
343436
343479
  "operationId": "actions/re-run-job-for-workflow-run",
343437
343480
  "externalDocs": {
@@ -343445,7 +343488,7 @@
343445
343488
  "/repos/{owner}/{repo}/actions/permissions/access": {
343446
343489
  "get": {
343447
343490
  "summary": "Get the level of access for workflows outside of the repository",
343448
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343491
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343449
343492
  "tags": ["actions"],
343450
343493
  "operationId": "actions/get-workflow-access-to-repository",
343451
343494
  "externalDocs": {
@@ -343457,7 +343500,7 @@
343457
343500
  },
343458
343501
  "put": {
343459
343502
  "summary": "Set the level of access for workflows outside of the repository",
343460
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343503
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343461
343504
  "tags": ["actions"],
343462
343505
  "operationId": "actions/set-workflow-access-to-repository",
343463
343506
  "externalDocs": {
@@ -343471,7 +343514,7 @@
343471
343514
  "/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}": {
343472
343515
  "get": {
343473
343516
  "summary": "Get a workflow run attempt",
343474
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343517
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343475
343518
  "tags": ["actions"],
343476
343519
  "operationId": "actions/get-workflow-run-attempt",
343477
343520
  "externalDocs": {
@@ -343485,7 +343528,7 @@
343485
343528
  "/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs": {
343486
343529
  "get": {
343487
343530
  "summary": "List jobs for a workflow run attempt",
343488
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343531
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343489
343532
  "tags": ["actions"],
343490
343533
  "operationId": "actions/list-jobs-for-workflow-run-attempt",
343491
343534
  "externalDocs": {
@@ -343499,7 +343542,7 @@
343499
343542
  "/repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs": {
343500
343543
  "get": {
343501
343544
  "summary": "Download workflow run attempt logs",
343502
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343545
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343503
343546
  "tags": ["actions"],
343504
343547
  "operationId": "actions/download-workflow-run-attempt-logs",
343505
343548
  "externalDocs": {
@@ -343513,7 +343556,7 @@
343513
343556
  "/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs": {
343514
343557
  "post": {
343515
343558
  "summary": "Re-run failed jobs from a workflow run",
343516
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343559
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343517
343560
  "tags": ["actions"],
343518
343561
  "operationId": "actions/re-run-workflow-failed-jobs",
343519
343562
  "externalDocs": {
@@ -343527,7 +343570,7 @@
343527
343570
  "/repos/{owner}/{repo}/codeowners/errors": {
343528
343571
  "get": {
343529
343572
  "summary": "List CODEOWNERS errors",
343530
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343573
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343531
343574
  "tags": ["repos"],
343532
343575
  "operationId": "repos/codeowners-errors",
343533
343576
  "externalDocs": {
@@ -343541,7 +343584,7 @@
343541
343584
  "/repos/{owner}/{repo}/tags/protection": {
343542
343585
  "get": {
343543
343586
  "summary": "List tag protection states for a repository",
343544
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343587
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343545
343588
  "tags": ["repos"],
343546
343589
  "operationId": "repos/list-tag-protection",
343547
343590
  "externalDocs": {
@@ -343553,7 +343596,7 @@
343553
343596
  },
343554
343597
  "post": {
343555
343598
  "summary": "Create a tag protection state for a repository",
343556
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343599
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343557
343600
  "tags": ["repos"],
343558
343601
  "operationId": "repos/create-tag-protection",
343559
343602
  "externalDocs": {
@@ -343567,7 +343610,7 @@
343567
343610
  "/repos/{owner}/{repo}/tags/protection/{tag_protection_id}": {
343568
343611
  "delete": {
343569
343612
  "summary": "Delete a tag protection state for a repository",
343570
- "description": "This endpoint does not exist ghes-3.4. It was added in ghes-3.5",
343613
+ "description": "This endpoint does not exist in GitHub Enterprise Server 3.4. It was added in 3.5",
343571
343614
  "tags": ["repos"],
343572
343615
  "operationId": "repos/delete-tag-protection",
343573
343616
  "externalDocs": {