@octokit/openapi 6.3.1 → 6.6.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 (28) hide show
  1. package/generated/api.github.com.deref.json +79 -8
  2. package/generated/api.github.com.json +75 -9
  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 +50 -3
  6. package/generated/ghes-3.2-diff-to-ghes-3.3.json +53 -3
  7. package/generated/ghes-3.2.deref.json +61 -5
  8. package/generated/ghes-3.2.json +64 -5
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +8 -4
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +1 -1
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +1 -1
  12. package/generated/ghes-3.3.deref.json +61 -5
  13. package/generated/ghes-3.3.json +64 -5
  14. package/generated/ghes-3.4-diff-to-ghes-3.5.deref.json +1 -1
  15. package/generated/ghes-3.4-diff-to-ghes-3.5.json +1 -1
  16. package/generated/ghes-3.4.deref.json +73 -9
  17. package/generated/ghes-3.4.json +68 -9
  18. package/generated/ghes-3.5-anicca-diff-to-api.github.com.deref.json +11008 -112568
  19. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +220 -574
  20. package/generated/ghes-3.5-diff-to-api.github.com.json +147 -263
  21. package/generated/ghes-3.5.deref.json +2645 -297
  22. package/generated/ghes-3.5.json +3178 -609
  23. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +41 -3
  24. package/generated/github.ae-diff-to-api.github.com.deref.json +220 -1
  25. package/generated/github.ae-diff-to-api.github.com.json +147 -1
  26. package/generated/github.ae.deref.json +3814 -315
  27. package/generated/github.ae.json +4253 -557
  28. package/package.json +7 -4
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "6.3.1",
4
+ "version": "6.6.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": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -4802,6 +4802,58 @@
4802
4802
  }
4803
4803
  }
4804
4804
  },
4805
+ "/rate_limit": {
4806
+ "get": {
4807
+ "summary": "Get rate limit status for the authenticated user",
4808
+ "description": "**Note:** Accessing this endpoint does not count against your REST API rate limit.\n\n**Note:** The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object.",
4809
+ "tags": ["rate-limit"],
4810
+ "operationId": "rate-limit/get",
4811
+ "externalDocs": {
4812
+ "description": "API method documentation",
4813
+ "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/rate-limit#get-rate-limit-status-for-the-authenticated-user"
4814
+ },
4815
+ "parameters": [],
4816
+ "responses": {
4817
+ "200": {
4818
+ "description": "Response",
4819
+ "content": {
4820
+ "application/json": {
4821
+ "schema": {
4822
+ "$ref": "#/components/schemas/rate-limit-overview"
4823
+ },
4824
+ "examples": {
4825
+ "default": {
4826
+ "$ref": "#/components/examples/rate-limit-overview"
4827
+ }
4828
+ }
4829
+ }
4830
+ },
4831
+ "headers": {
4832
+ "X-RateLimit-Limit": {
4833
+ "$ref": "#/components/headers/x-rate-limit-limit"
4834
+ },
4835
+ "X-RateLimit-Remaining": {
4836
+ "$ref": "#/components/headers/x-rate-limit-remaining"
4837
+ },
4838
+ "X-RateLimit-Reset": {
4839
+ "$ref": "#/components/headers/x-rate-limit-reset"
4840
+ }
4841
+ }
4842
+ },
4843
+ "304": { "$ref": "#/components/responses/not_modified" },
4844
+ "404": { "$ref": "#/components/responses/not_found" }
4845
+ },
4846
+ "x-github": {
4847
+ "githubCloudOnly": false,
4848
+ "enabledForGitHubApps": true,
4849
+ "category": "rate-limit",
4850
+ "subcategory": null
4851
+ },
4852
+ "x-octokit": {
4853
+ "diff": { "api.github.com.json": { "type": "changed" } }
4854
+ }
4855
+ }
4856
+ },
4805
4857
  "/repos/{owner}/{repo}": {
4806
4858
  "get": {
4807
4859
  "summary": "Get a repository",
@@ -5963,83 +6015,6 @@
5963
6015
  }
5964
6016
  }
5965
6017
  },
5966
- "/repos/{owner}/{repo}/code-scanning/alerts": {
5967
- "get": {
5968
- "summary": "List code scanning alerts for a repository",
5969
- "description": "Lists all open code scanning alerts for the default branch (usually `main`\nor `master`). You must use an access token with the `security_events` scope to use\nthis endpoint with private repos, the `public_repo` scope also grants permission to read\nsecurity events on public repos only. GitHub Apps must have the `security_events` read\npermission to use this endpoint.\n\nThe response includes a `most_recent_instance` object.\nThis provides details of the most recent instance of this alert\nfor the default branch or for the specified Git reference\n(if you used `ref` in the request).",
5970
- "tags": ["code-scanning"],
5971
- "operationId": "code-scanning/list-alerts-for-repo",
5972
- "externalDocs": {
5973
- "description": "API method documentation",
5974
- "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository"
5975
- },
5976
- "parameters": [
5977
- { "$ref": "#/components/parameters/owner" },
5978
- { "$ref": "#/components/parameters/repo" },
5979
- { "$ref": "#/components/parameters/tool-name" },
5980
- { "$ref": "#/components/parameters/tool-guid" },
5981
- { "$ref": "#/components/parameters/page" },
5982
- { "$ref": "#/components/parameters/per-page" },
5983
- { "$ref": "#/components/parameters/git-ref" },
5984
- { "$ref": "#/components/parameters/direction" },
5985
- {
5986
- "name": "sort",
5987
- "description": "The property by which to sort the results.",
5988
- "in": "query",
5989
- "required": false,
5990
- "schema": {
5991
- "type": "string",
5992
- "enum": ["created", "updated", "number"],
5993
- "default": "number"
5994
- }
5995
- },
5996
- {
5997
- "name": "state",
5998
- "description": "Set to `open`, `closed, `fixed`, or `dismissed` to list code scanning alerts in a specific state.",
5999
- "in": "query",
6000
- "required": false,
6001
- "schema": {
6002
- "$ref": "#/components/schemas/code-scanning-alert-state"
6003
- }
6004
- }
6005
- ],
6006
- "responses": {
6007
- "200": {
6008
- "description": "Response",
6009
- "content": {
6010
- "application/json": {
6011
- "schema": {
6012
- "type": "array",
6013
- "items": {
6014
- "$ref": "#/components/schemas/code-scanning-alert-items"
6015
- }
6016
- },
6017
- "examples": {
6018
- "default": {
6019
- "$ref": "#/components/examples/code-scanning-alert-items"
6020
- }
6021
- }
6022
- }
6023
- }
6024
- },
6025
- "304": { "$ref": "#/components/responses/not_modified" },
6026
- "403": {
6027
- "$ref": "#/components/responses/code_scanning_forbidden_read"
6028
- },
6029
- "404": { "$ref": "#/components/responses/not_found" },
6030
- "503": { "$ref": "#/components/responses/service_unavailable" }
6031
- },
6032
- "x-github": {
6033
- "githubCloudOnly": false,
6034
- "enabledForGitHubApps": true,
6035
- "category": "code-scanning",
6036
- "subcategory": null
6037
- },
6038
- "x-octokit": {
6039
- "diff": { "api.github.com.json": { "type": "changed" } }
6040
- }
6041
- }
6042
- },
6043
6018
  "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": {
6044
6019
  "get": {
6045
6020
  "summary": "Get a code scanning alert",
@@ -11351,13 +11326,6 @@
11351
11326
  "required": true,
11352
11327
  "schema": { "type": "integer" }
11353
11328
  },
11354
- "git-ref": {
11355
- "name": "ref",
11356
- "description": "The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`.",
11357
- "in": "query",
11358
- "required": false,
11359
- "schema": { "$ref": "#/components/schemas/code-scanning-ref" }
11360
- },
11361
11329
  "alert-number": {
11362
11330
  "name": "alert_number",
11363
11331
  "in": "path",
@@ -14716,6 +14684,35 @@
14716
14684
  "updated_at"
14717
14685
  ]
14718
14686
  },
14687
+ "rate-limit-overview": {
14688
+ "title": "Rate Limit Overview",
14689
+ "description": "Rate Limit Overview",
14690
+ "type": "object",
14691
+ "properties": {
14692
+ "resources": {
14693
+ "type": "object",
14694
+ "properties": {
14695
+ "core": { "$ref": "#/components/schemas/rate-limit" },
14696
+ "graphql": { "$ref": "#/components/schemas/rate-limit" },
14697
+ "search": { "$ref": "#/components/schemas/rate-limit" },
14698
+ "source_import": { "$ref": "#/components/schemas/rate-limit" },
14699
+ "integration_manifest": {
14700
+ "$ref": "#/components/schemas/rate-limit"
14701
+ },
14702
+ "code_scanning_upload": {
14703
+ "$ref": "#/components/schemas/rate-limit"
14704
+ },
14705
+ "actions_runner_registration": {
14706
+ "$ref": "#/components/schemas/rate-limit"
14707
+ },
14708
+ "scim": { "$ref": "#/components/schemas/rate-limit" }
14709
+ },
14710
+ "required": ["core", "search"]
14711
+ },
14712
+ "rate": { "$ref": "#/components/schemas/rate-limit" }
14713
+ },
14714
+ "required": ["rate", "resources"]
14715
+ },
14719
14716
  "full-repository": {
14720
14717
  "title": "Full Repository",
14721
14718
  "description": "Full Repository",
@@ -15422,55 +15419,6 @@
15422
15419
  "repository": { "$ref": "#/components/schemas/minimal-repository" }
15423
15420
  }
15424
15421
  },
15425
- "code-scanning-alert-items": {
15426
- "type": "object",
15427
- "properties": {
15428
- "number": { "$ref": "#/components/schemas/alert-number" },
15429
- "created_at": { "$ref": "#/components/schemas/alert-created-at" },
15430
- "updated_at": { "$ref": "#/components/schemas/alert-updated-at" },
15431
- "url": { "$ref": "#/components/schemas/alert-url" },
15432
- "html_url": { "$ref": "#/components/schemas/alert-html-url" },
15433
- "instances_url": {
15434
- "$ref": "#/components/schemas/alert-instances-url"
15435
- },
15436
- "state": { "$ref": "#/components/schemas/code-scanning-alert-state" },
15437
- "fixed_at": {
15438
- "$ref": "#/components/schemas/code-scanning-alert-fixed-at"
15439
- },
15440
- "dismissed_by": {
15441
- "$ref": "#/components/schemas/nullable-simple-user"
15442
- },
15443
- "dismissed_at": {
15444
- "$ref": "#/components/schemas/code-scanning-alert-dismissed-at"
15445
- },
15446
- "dismissed_reason": {
15447
- "$ref": "#/components/schemas/code-scanning-alert-dismissed-reason"
15448
- },
15449
- "rule": {
15450
- "$ref": "#/components/schemas/code-scanning-alert-rule-summary"
15451
- },
15452
- "tool": {
15453
- "$ref": "#/components/schemas/code-scanning-analysis-tool"
15454
- },
15455
- "most_recent_instance": {
15456
- "$ref": "#/components/schemas/code-scanning-alert-instance"
15457
- }
15458
- },
15459
- "required": [
15460
- "number",
15461
- "created_at",
15462
- "url",
15463
- "html_url",
15464
- "instances_url",
15465
- "state",
15466
- "dismissed_by",
15467
- "dismissed_at",
15468
- "dismissed_reason",
15469
- "rule",
15470
- "tool",
15471
- "most_recent_instance"
15472
- ]
15473
- },
15474
15422
  "code-scanning-alert": {
15475
15423
  "type": "object",
15476
15424
  "properties": {
@@ -18374,6 +18322,17 @@
18374
18322
  ],
18375
18323
  "nullable": true
18376
18324
  },
18325
+ "rate-limit": {
18326
+ "title": "Rate Limit",
18327
+ "type": "object",
18328
+ "properties": {
18329
+ "limit": { "type": "integer" },
18330
+ "remaining": { "type": "integer" },
18331
+ "reset": { "type": "integer" },
18332
+ "used": { "type": "integer" }
18333
+ },
18334
+ "required": ["limit", "remaining", "reset", "used"]
18335
+ },
18377
18336
  "code-of-conduct-simple": {
18378
18337
  "title": "Code Of Conduct Simple",
18379
18338
  "description": "Code of Conduct Simple",
@@ -18538,36 +18497,6 @@
18538
18497
  "committer"
18539
18498
  ]
18540
18499
  },
18541
- "code-scanning-alert-rule-summary": {
18542
- "type": "object",
18543
- "properties": {
18544
- "id": {
18545
- "nullable": true,
18546
- "type": "string",
18547
- "description": "A unique identifier for the rule used to detect the alert."
18548
- },
18549
- "name": {
18550
- "type": "string",
18551
- "description": "The name of the rule used to detect the alert."
18552
- },
18553
- "tags": {
18554
- "nullable": true,
18555
- "type": "array",
18556
- "description": "A set of tags applicable for the rule.",
18557
- "items": { "type": "string" }
18558
- },
18559
- "severity": {
18560
- "nullable": true,
18561
- "type": "string",
18562
- "description": "The severity of the alert.",
18563
- "enum": ["none", "note", "warning", "error"]
18564
- },
18565
- "description": {
18566
- "type": "string",
18567
- "description": "A short description of the rule used to detect the alert."
18568
- }
18569
- }
18570
- },
18571
18500
  "nullable-collaborator": {
18572
18501
  "title": "Collaborator",
18573
18502
  "description": "Collaborator",
@@ -22599,6 +22528,48 @@
22599
22528
  "watchers": 1
22600
22529
  }
22601
22530
  },
22531
+ "rate-limit-overview": {
22532
+ "value": {
22533
+ "resources": {
22534
+ "core": {
22535
+ "limit": 5000,
22536
+ "remaining": 4999,
22537
+ "reset": 1372700873,
22538
+ "used": 1
22539
+ },
22540
+ "search": {
22541
+ "limit": 30,
22542
+ "remaining": 18,
22543
+ "reset": 1372697452,
22544
+ "used": 12
22545
+ },
22546
+ "graphql": {
22547
+ "limit": 5000,
22548
+ "remaining": 4993,
22549
+ "reset": 1372700389,
22550
+ "used": 7
22551
+ },
22552
+ "integration_manifest": {
22553
+ "limit": 5000,
22554
+ "remaining": 4999,
22555
+ "reset": 1551806725,
22556
+ "used": 1
22557
+ },
22558
+ "code_scanning_upload": {
22559
+ "limit": 500,
22560
+ "remaining": 499,
22561
+ "reset": 1551806725,
22562
+ "used": 1
22563
+ }
22564
+ },
22565
+ "rate": {
22566
+ "limit": 5000,
22567
+ "remaining": 4999,
22568
+ "reset": 1372700873,
22569
+ "used": 1
22570
+ }
22571
+ }
22572
+ },
22602
22573
  "full-repository-default-response": {
22603
22574
  "summary": "Default response",
22604
22575
  "value": {
@@ -24496,105 +24467,6 @@
24496
24467
  }
24497
24468
  }
24498
24469
  },
24499
- "code-scanning-alert-items": {
24500
- "value": [
24501
- {
24502
- "number": 4,
24503
- "created_at": "2020-02-13T12:29:18Z",
24504
- "url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4",
24505
- "html_url": "https://github.com/octocat/hello-world/code-scanning/4",
24506
- "state": "open",
24507
- "fixed_at": null,
24508
- "dismissed_by": null,
24509
- "dismissed_at": null,
24510
- "dismissed_reason": null,
24511
- "rule": {
24512
- "id": "js/zipslip",
24513
- "severity": "error",
24514
- "tags": ["security", "external/cwe/cwe-022"],
24515
- "description": "Arbitrary file write during zip extraction",
24516
- "name": "js/zipslip"
24517
- },
24518
- "tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" },
24519
- "most_recent_instance": {
24520
- "ref": "refs/heads/main",
24521
- "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
24522
- "environment": "{}",
24523
- "state": "open",
24524
- "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
24525
- "message": {
24526
- "text": "This path depends on a user-provided value."
24527
- },
24528
- "location": {
24529
- "path": "spec-main/api-session-spec.ts",
24530
- "start_line": 917,
24531
- "end_line": 917,
24532
- "start_column": 7,
24533
- "end_column": 18
24534
- },
24535
- "classifications": ["test"]
24536
- },
24537
- "instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/4/instances"
24538
- },
24539
- {
24540
- "number": 3,
24541
- "created_at": "2020-02-13T12:29:18Z",
24542
- "url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3",
24543
- "html_url": "https://github.com/octocat/hello-world/code-scanning/3",
24544
- "state": "dismissed",
24545
- "fixed_at": null,
24546
- "dismissed_by": {
24547
- "login": "octocat",
24548
- "id": 1,
24549
- "node_id": "MDQ6VXNlcjE=",
24550
- "avatar_url": "https://github.com/images/error/octocat_happy.gif",
24551
- "gravatar_id": "",
24552
- "url": "https://api.github.com/users/octocat",
24553
- "html_url": "https://github.com/octocat",
24554
- "followers_url": "https://api.github.com/users/octocat/followers",
24555
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
24556
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
24557
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
24558
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
24559
- "organizations_url": "https://api.github.com/users/octocat/orgs",
24560
- "repos_url": "https://api.github.com/users/octocat/repos",
24561
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
24562
- "received_events_url": "https://api.github.com/users/octocat/received_events",
24563
- "type": "User",
24564
- "site_admin": false
24565
- },
24566
- "dismissed_at": "2020-02-14T12:29:18Z",
24567
- "dismissed_reason": "false positive",
24568
- "rule": {
24569
- "id": "js/zipslip",
24570
- "severity": "error",
24571
- "tags": ["security", "external/cwe/cwe-022"],
24572
- "description": "Arbitrary file write during zip extraction",
24573
- "name": "js/zipslip"
24574
- },
24575
- "tool": { "name": "CodeQL", "guid": null, "version": "2.4.0" },
24576
- "most_recent_instance": {
24577
- "ref": "refs/heads/main",
24578
- "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build",
24579
- "environment": "{}",
24580
- "state": "open",
24581
- "commit_sha": "39406e42cb832f683daa691dd652a8dc36ee8930",
24582
- "message": {
24583
- "text": "This path depends on a user-provided value."
24584
- },
24585
- "location": {
24586
- "path": "lib/ab12-gen.js",
24587
- "start_line": 917,
24588
- "end_line": 917,
24589
- "start_column": 7,
24590
- "end_column": 18
24591
- },
24592
- "classifications": []
24593
- },
24594
- "instances_url": "https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances"
24595
- }
24596
- ]
24597
- },
24598
24470
  "code-scanning-alert": {
24599
24471
  "value": {
24600
24472
  "number": 42,
@@ -29691,6 +29563,18 @@
29691
29563
  "link": {
29692
29564
  "example": "<https://api.github.com/resource?page=2>; rel=\"next\", <https://api.github.com/resource?page=5>; rel=\"last\"",
29693
29565
  "schema": { "type": "string" }
29566
+ },
29567
+ "x-rate-limit-limit": {
29568
+ "example": 5000,
29569
+ "schema": { "type": "integer" }
29570
+ },
29571
+ "x-rate-limit-remaining": {
29572
+ "example": 4999,
29573
+ "schema": { "type": "integer" }
29574
+ },
29575
+ "x-rate-limit-reset": {
29576
+ "example": 1590701888,
29577
+ "schema": { "type": "integer", "format": "timestamp" }
29694
29578
  }
29695
29579
  },
29696
29580
  "responses": {