@octokit/openapi 6.2.1 → 6.4.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 +7689 -7772
  2. package/generated/api.github.com.json +1344 -1295
  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 +73 -7
  8. package/generated/ghes-3.2.json +89 -28
  9. package/generated/ghes-3.3-anicca-diff-to-ghes-3.4.deref.json +31 -4
  10. package/generated/ghes-3.3-diff-to-ghes-3.4.deref.json +96 -1
  11. package/generated/ghes-3.3-diff-to-ghes-3.4.json +92 -1
  12. package/generated/ghes-3.3.deref.json +76 -10
  13. package/generated/ghes-3.3.json +92 -31
  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 +97 -19
  17. package/generated/ghes-3.4.json +105 -40
  18. package/generated/ghes-3.5-anicca-diff-to-api.github.com.deref.json +71 -25
  19. package/generated/ghes-3.5-diff-to-api.github.com.deref.json +328 -574
  20. package/generated/ghes-3.5-diff-to-api.github.com.json +206 -272
  21. package/generated/ghes-3.5.deref.json +115 -52
  22. package/generated/ghes-3.5.json +131 -77
  23. package/generated/github.ae-anicca-diff-to-api.github.com.deref.json +97 -4
  24. package/generated/github.ae-diff-to-api.github.com.deref.json +423 -1
  25. package/generated/github.ae-diff-to-api.github.com.json +294 -12
  26. package/generated/github.ae.deref.json +92 -119
  27. package/generated/github.ae.json +118 -95
  28. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "6.2.1",
4
+ "version": "6.4.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" },
@@ -2860,6 +2860,85 @@
2860
2860
  }
2861
2861
  }
2862
2862
  },
2863
+ "/orgs/{org}/actions/secrets/{secret_name}": {
2864
+ "put": {
2865
+ "summary": "Create or update an organization secret",
2866
+ "description": "Creates or updates an organization secret with an encrypted value. Encrypt your secret using\n[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access\ntoken with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to\nuse this endpoint.\n\n#### Example encrypting a secret using Node.js\n\nEncrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library.\n\n```\nconst sodium = require('tweetsodium');\n\nconst key = \"base64-encoded-public-key\";\nconst value = \"plain-text-secret\";\n\n// Convert the message and key to Uint8Array's (Buffer implements that interface)\nconst messageBytes = Buffer.from(value);\nconst keyBytes = Buffer.from(key, 'base64');\n\n// Encrypt using LibSodium.\nconst encryptedBytes = sodium.seal(messageBytes, keyBytes);\n\n// Base64 the encrypted secret\nconst encrypted = Buffer.from(encryptedBytes).toString('base64');\n\nconsole.log(encrypted);\n```\n\n\n#### Example encrypting a secret using Python\n\nEncrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/latest/public/#nacl-public-sealedbox) with Python 3.\n\n```\nfrom base64 import b64encode\nfrom nacl import encoding, public\n\ndef encrypt(public_key: str, secret_value: str) -> str:\n \"\"\"Encrypt a Unicode string using the public key.\"\"\"\n public_key = public.PublicKey(public_key.encode(\"utf-8\"), encoding.Base64Encoder())\n sealed_box = public.SealedBox(public_key)\n encrypted = sealed_box.encrypt(secret_value.encode(\"utf-8\"))\n return b64encode(encrypted).decode(\"utf-8\")\n```\n\n#### Example encrypting a secret using C#\n\nEncrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package.\n\n```\nvar secretValue = System.Text.Encoding.UTF8.GetBytes(\"mySecret\");\nvar publicKey = Convert.FromBase64String(\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU=\");\n\nvar sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey);\n\nConsole.WriteLine(Convert.ToBase64String(sealedPublicKeyBox));\n```\n\n#### Example encrypting a secret using Ruby\n\nEncrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem.\n\n```ruby\nrequire \"rbnacl\"\nrequire \"base64\"\n\nkey = Base64.decode64(\"+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=\")\npublic_key = RbNaCl::PublicKey.new(key)\n\nbox = RbNaCl::Boxes::Sealed.from_public_key(public_key)\nencrypted_secret = box.encrypt(\"my_secret\")\n\n# Print the base64 encoded secret\nputs Base64.strict_encode64(encrypted_secret)\n```",
2867
+ "tags": ["actions"],
2868
+ "operationId": "actions/create-or-update-org-secret",
2869
+ "externalDocs": {
2870
+ "description": "API method documentation",
2871
+ "url": "https://docs.github.com/github-ae@latest/rest/reference/actions#create-or-update-an-organization-secret"
2872
+ },
2873
+ "parameters": [
2874
+ { "$ref": "#/components/parameters/org" },
2875
+ { "$ref": "#/components/parameters/secret-name" }
2876
+ ],
2877
+ "requestBody": {
2878
+ "required": true,
2879
+ "content": {
2880
+ "application/json": {
2881
+ "schema": {
2882
+ "type": "object",
2883
+ "properties": {
2884
+ "encrypted_value": {
2885
+ "type": "string",
2886
+ "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/github-ae@latest/rest/reference/actions#get-an-organization-public-key) endpoint.",
2887
+ "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
2888
+ },
2889
+ "key_id": {
2890
+ "type": "string",
2891
+ "description": "ID of the key you used to encrypt the secret."
2892
+ },
2893
+ "visibility": {
2894
+ "type": "string",
2895
+ "description": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
2896
+ "enum": ["all", "private", "selected"]
2897
+ },
2898
+ "selected_repository_ids": {
2899
+ "type": "array",
2900
+ "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/github-ae@latest/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.",
2901
+ "items": { "type": "integer" }
2902
+ }
2903
+ },
2904
+ "required": ["visibility"]
2905
+ },
2906
+ "examples": {
2907
+ "default": {
2908
+ "value": {
2909
+ "encrypted_value": "c2VjcmV0",
2910
+ "key_id": "012345678912345678",
2911
+ "visibility": "selected",
2912
+ "selected_repository_ids": [1296269, 1296280]
2913
+ }
2914
+ }
2915
+ }
2916
+ }
2917
+ }
2918
+ },
2919
+ "responses": {
2920
+ "201": {
2921
+ "description": "Response when creating a secret",
2922
+ "content": {
2923
+ "application/json": {
2924
+ "schema": { "$ref": "#/components/schemas/empty-object" },
2925
+ "examples": { "default": { "value": null } }
2926
+ }
2927
+ }
2928
+ },
2929
+ "204": { "description": "Response when updating a secret" }
2930
+ },
2931
+ "x-github": {
2932
+ "githubCloudOnly": false,
2933
+ "enabledForGitHubApps": true,
2934
+ "category": "actions",
2935
+ "subcategory": "secrets"
2936
+ },
2937
+ "x-octokit": {
2938
+ "diff": { "api.github.com.json": { "type": "changed" } }
2939
+ }
2940
+ }
2941
+ },
2863
2942
  "/orgs/{org}/actions/secrets/{secret_name}/repositories": {
2864
2943
  "get": {
2865
2944
  "summary": "List selected repositories for an organization secret",
@@ -4168,6 +4247,160 @@
4168
4247
  }
4169
4248
  }
4170
4249
  },
4250
+ "/repos/{owner}/{repo}/autolinks": {
4251
+ "get": {
4252
+ "summary": "List all autolinks of a repository",
4253
+ "description": "This returns a list of autolinks configured for the given repository.\n\nInformation about autolinks are only available to repository administrators.",
4254
+ "tags": ["repos"],
4255
+ "operationId": "repos/list-autolinks",
4256
+ "externalDocs": {
4257
+ "description": "API method documentation",
4258
+ "url": "https://docs.github.com/github-ae@latest/v3/repos#list-autolinks"
4259
+ },
4260
+ "parameters": [
4261
+ { "$ref": "#/components/parameters/owner" },
4262
+ { "$ref": "#/components/parameters/repo" },
4263
+ { "$ref": "#/components/parameters/page" }
4264
+ ],
4265
+ "responses": {
4266
+ "200": {
4267
+ "description": "Response",
4268
+ "content": {
4269
+ "application/json": {
4270
+ "schema": {
4271
+ "type": "array",
4272
+ "items": { "$ref": "#/components/schemas/autolink" }
4273
+ },
4274
+ "examples": {
4275
+ "default": { "$ref": "#/components/examples/autolink-items" }
4276
+ }
4277
+ }
4278
+ }
4279
+ }
4280
+ },
4281
+ "x-github": {
4282
+ "githubCloudOnly": false,
4283
+ "enabledForGitHubApps": true,
4284
+ "category": "repos",
4285
+ "subcategory": "autolinks"
4286
+ },
4287
+ "x-octokit": {
4288
+ "diff": { "api.github.com.json": { "type": "changed" } }
4289
+ }
4290
+ },
4291
+ "post": {
4292
+ "summary": "Create an autolink reference for a repository",
4293
+ "description": "Users with admin access to the repository can create an autolink.",
4294
+ "tags": ["repos"],
4295
+ "operationId": "repos/create-autolink",
4296
+ "externalDocs": {
4297
+ "description": "API method documentation",
4298
+ "url": "https://docs.github.com/github-ae@latest/v3/repos#create-an-autolink"
4299
+ },
4300
+ "parameters": [
4301
+ { "$ref": "#/components/parameters/owner" },
4302
+ { "$ref": "#/components/parameters/repo" }
4303
+ ],
4304
+ "requestBody": {
4305
+ "required": true,
4306
+ "content": {
4307
+ "application/json": {
4308
+ "schema": {
4309
+ "type": "object",
4310
+ "properties": {
4311
+ "key_prefix": {
4312
+ "type": "string",
4313
+ "description": "The prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit."
4314
+ },
4315
+ "url_template": {
4316
+ "type": "string",
4317
+ "description": "The URL must contain `<num>` for the reference number."
4318
+ }
4319
+ },
4320
+ "required": ["key_prefix", "url_template"]
4321
+ },
4322
+ "examples": {
4323
+ "default": {
4324
+ "value": {
4325
+ "key_prefix": "TICKET-",
4326
+ "url_template": "https://example.com/TICKET?query=<num>"
4327
+ }
4328
+ }
4329
+ }
4330
+ }
4331
+ }
4332
+ },
4333
+ "responses": {
4334
+ "201": {
4335
+ "description": "response",
4336
+ "content": {
4337
+ "application/json": {
4338
+ "schema": { "$ref": "#/components/schemas/autolink" },
4339
+ "examples": {
4340
+ "default": { "$ref": "#/components/examples/autolink" }
4341
+ }
4342
+ }
4343
+ },
4344
+ "headers": {
4345
+ "Location": {
4346
+ "example": "https://api.github.com/repos/octocat/Hello-World/autolinks/1",
4347
+ "schema": { "type": "string" }
4348
+ }
4349
+ }
4350
+ },
4351
+ "422": { "$ref": "#/components/responses/validation_failed" }
4352
+ },
4353
+ "x-github": {
4354
+ "githubCloudOnly": false,
4355
+ "enabledForGitHubApps": true,
4356
+ "category": "repos",
4357
+ "subcategory": "autolinks"
4358
+ },
4359
+ "x-octokit": {
4360
+ "diff": { "api.github.com.json": { "type": "changed" } }
4361
+ }
4362
+ }
4363
+ },
4364
+ "/repos/{owner}/{repo}/autolinks/{autolink_id}": {
4365
+ "get": {
4366
+ "summary": "Get an autolink reference of a repository",
4367
+ "description": "This returns a single autolink reference by ID that was configured for the given repository.\n\nInformation about autolinks are only available to repository administrators.",
4368
+ "tags": ["repos"],
4369
+ "operationId": "repos/get-autolink",
4370
+ "externalDocs": {
4371
+ "description": "API method documentation",
4372
+ "url": "https://docs.github.com/github-ae@latest/v3/repos#get-autolink"
4373
+ },
4374
+ "parameters": [
4375
+ { "$ref": "#/components/parameters/owner" },
4376
+ { "$ref": "#/components/parameters/repo" },
4377
+ { "$ref": "#/components/parameters/autolink-id" }
4378
+ ],
4379
+ "responses": {
4380
+ "200": {
4381
+ "description": "Response",
4382
+ "content": {
4383
+ "application/json": {
4384
+ "schema": { "$ref": "#/components/schemas/autolink" },
4385
+ "examples": {
4386
+ "default": { "$ref": "#/components/examples/autolink" }
4387
+ }
4388
+ }
4389
+ }
4390
+ },
4391
+ "404": { "$ref": "#/components/responses/not_found" }
4392
+ },
4393
+ "x-github": {
4394
+ "githubCloudOnly": false,
4395
+ "enabledForGitHubApps": true,
4396
+ "category": "repos",
4397
+ "subcategory": "autolinks"
4398
+ },
4399
+ "x-octokit": {
4400
+ "diff": { "api.github.com.json": { "type": "changed" } }
4401
+ }
4402
+ }
4403
+ },
4171
4404
  "/repos/{owner}/{repo}/check-suites": {
4172
4405
  "post": {
4173
4406
  "summary": "Create a check suite",
@@ -8482,6 +8715,13 @@
8482
8715
  "required": true,
8483
8716
  "schema": { "oneOf": [{ "type": "integer" }, { "type": "string" }] }
8484
8717
  },
8718
+ "autolink-id": {
8719
+ "name": "autolink_id",
8720
+ "description": "The unique identifier of the autolink.",
8721
+ "in": "path",
8722
+ "required": true,
8723
+ "schema": { "type": "integer" }
8724
+ },
8485
8725
  "check-suite-id": {
8486
8726
  "name": "check_suite_id",
8487
8727
  "description": "The unique identifier of the check suite.",
@@ -10059,7 +10299,7 @@
10059
10299
  "$ref": "#/components/schemas/nullable-integration"
10060
10300
  },
10061
10301
  "author_association": {
10062
- "$ref": "#/components/schemas/author_association"
10302
+ "$ref": "#/components/schemas/author-association"
10063
10303
  },
10064
10304
  "reactions": { "$ref": "#/components/schemas/reaction-rollup" }
10065
10305
  },
@@ -10222,6 +10462,13 @@
10222
10462
  "allows_public_repositories"
10223
10463
  ]
10224
10464
  },
10465
+ "empty-object": {
10466
+ "title": "Empty Object",
10467
+ "description": "An object without any properties.",
10468
+ "type": "object",
10469
+ "properties": {},
10470
+ "additionalProperties": false
10471
+ },
10225
10472
  "minimal-repository": {
10226
10473
  "title": "Minimal Repository",
10227
10474
  "description": "Minimal Repository",
@@ -11476,7 +11723,7 @@
11476
11723
  "referenced_workflows": {
11477
11724
  "type": "array",
11478
11725
  "nullable": true,
11479
- "items": { "$ref": "#/components/schemas/referenced_workflow" }
11726
+ "items": { "$ref": "#/components/schemas/referenced-workflow" }
11480
11727
  },
11481
11728
  "event": { "type": "string", "example": "push" },
11482
11729
  "status": {
@@ -11595,6 +11842,25 @@
11595
11842
  "pull_requests"
11596
11843
  ]
11597
11844
  },
11845
+ "autolink": {
11846
+ "title": "Autolink reference",
11847
+ "description": "An autolink reference.",
11848
+ "type": "object",
11849
+ "properties": {
11850
+ "id": { "type": "integer", "example": 3 },
11851
+ "key_prefix": {
11852
+ "description": "The prefix of a key that is linkified.",
11853
+ "example": "TICKET-",
11854
+ "type": "string"
11855
+ },
11856
+ "url_template": {
11857
+ "description": "A template for the target URL that is generated if a key was found.",
11858
+ "example": "https://example.com/TICKET?query=<num>",
11859
+ "type": "string"
11860
+ }
11861
+ },
11862
+ "required": ["id", "key_prefix", "url_template"]
11863
+ },
11598
11864
  "check-suite": {
11599
11865
  "title": "CheckSuite",
11600
11866
  "description": "A suite of checks performed on the code of a given code change",
@@ -12207,9 +12473,9 @@
12207
12473
  ]
12208
12474
  },
12209
12475
  "author_association": {
12210
- "$ref": "#/components/schemas/author_association"
12476
+ "$ref": "#/components/schemas/author-association"
12211
12477
  },
12212
- "auto_merge": { "$ref": "#/components/schemas/auto_merge" },
12478
+ "auto_merge": { "$ref": "#/components/schemas/auto-merge" },
12213
12479
  "draft": {
12214
12480
  "description": "Indicates whether or not the pull request is a draft.",
12215
12481
  "example": false,
@@ -12382,7 +12648,7 @@
12382
12648
  },
12383
12649
  "rename": { "$ref": "#/components/schemas/issue-event-rename" },
12384
12650
  "author_association": {
12385
- "$ref": "#/components/schemas/author_association"
12651
+ "$ref": "#/components/schemas/author-association"
12386
12652
  },
12387
12653
  "lock_reason": { "type": "string", "nullable": true },
12388
12654
  "performed_via_github_app": {
@@ -12730,7 +12996,7 @@
12730
12996
  "body": { "type": "string" },
12731
12997
  "score": { "type": "number" },
12732
12998
  "author_association": {
12733
- "$ref": "#/components/schemas/author_association"
12999
+ "$ref": "#/components/schemas/author-association"
12734
13000
  },
12735
13001
  "draft": { "type": "boolean" },
12736
13002
  "repository": { "$ref": "#/components/schemas/repository" },
@@ -13382,7 +13648,7 @@
13382
13648
  ],
13383
13649
  "nullable": true
13384
13650
  },
13385
- "author_association": {
13651
+ "author-association": {
13386
13652
  "title": "author_association",
13387
13653
  "type": "string",
13388
13654
  "example": "OWNER",
@@ -14057,7 +14323,7 @@
14057
14323
  }
14058
14324
  }
14059
14325
  },
14060
- "referenced_workflow": {
14326
+ "referenced-workflow": {
14061
14327
  "title": "Referenced workflow",
14062
14328
  "description": "A workflow referenced/reused by the initial caller workflow",
14063
14329
  "type": "object",
@@ -14620,7 +14886,7 @@
14620
14886
  "properties": { "href": { "type": "string" } },
14621
14887
  "required": ["href"]
14622
14888
  },
14623
- "auto_merge": {
14889
+ "auto-merge": {
14624
14890
  "title": "Auto merge",
14625
14891
  "description": "The status of auto merging a pull request.",
14626
14892
  "type": "object",
@@ -14729,7 +14995,7 @@
14729
14995
  },
14730
14996
  "issue_url": { "type": "string", "format": "uri" },
14731
14997
  "author_association": {
14732
- "$ref": "#/components/schemas/author_association"
14998
+ "$ref": "#/components/schemas/author-association"
14733
14999
  },
14734
15000
  "performed_via_github_app": {
14735
15001
  "$ref": "#/components/schemas/nullable-integration"
@@ -14883,7 +15149,7 @@
14883
15149
  "$ref": "#/components/schemas/nullable-integration"
14884
15150
  },
14885
15151
  "author_association": {
14886
- "$ref": "#/components/schemas/author_association"
15152
+ "$ref": "#/components/schemas/author-association"
14887
15153
  },
14888
15154
  "reactions": { "$ref": "#/components/schemas/reaction-rollup" }
14889
15155
  },
@@ -18866,6 +19132,22 @@
18866
19132
  }
18867
19133
  }
18868
19134
  },
19135
+ "autolink-items": {
19136
+ "value": [
19137
+ {
19138
+ "id": 1,
19139
+ "key_prefix": "TICKET-",
19140
+ "url_template": "https://example.com/TICKET?query=<num>"
19141
+ }
19142
+ ]
19143
+ },
19144
+ "autolink": {
19145
+ "value": {
19146
+ "id": 1,
19147
+ "key_prefix": "TICKET-",
19148
+ "url_template": "https://example.com/TICKET?query=<num>"
19149
+ }
19150
+ },
18869
19151
  "check-suite": {
18870
19152
  "value": {
18871
19153
  "id": 5,