Skip to content

Commit cc159e8

Browse files
authored
feat: scarlet-witch preview graduated. Replace any types with unknown (#122)
1 parent 4c4dd49 commit cc159e8

File tree

15 files changed

+192
-242
lines changed

15 files changed

+192
-242
lines changed

cache/api.github.com.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "2.24.1",
4+
"version": "2.25.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -1916,19 +1916,11 @@
19161916
}
19171917
}
19181918
},
1919-
"304": { "$ref": "#/components/responses/not_modified" },
1920-
"415": { "$ref": "#/components/responses/preview_header_missing" }
1919+
"304": { "$ref": "#/components/responses/not_modified" }
19211920
},
19221921
"x-github": {
19231922
"githubCloudOnly": false,
19241923
"enabledForGitHubApps": true,
1925-
"previews": [
1926-
{
1927-
"required": true,
1928-
"name": "scarlet-witch",
1929-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
1930-
}
1931-
],
19321924
"category": "codes-of-conduct",
19331925
"subcategory": null
19341926
},
@@ -1966,19 +1958,11 @@
19661958
}
19671959
},
19681960
"304": { "$ref": "#/components/responses/not_modified" },
1969-
"404": { "$ref": "#/components/responses/not_found" },
1970-
"415": { "$ref": "#/components/responses/preview_header_missing" }
1961+
"404": { "$ref": "#/components/responses/not_found" }
19711962
},
19721963
"x-github": {
19731964
"githubCloudOnly": false,
19741965
"enabledForGitHubApps": true,
1975-
"previews": [
1976-
{
1977-
"required": true,
1978-
"name": "scarlet-witch",
1979-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
1980-
}
1981-
],
19821966
"category": "codes-of-conduct",
19831967
"subcategory": null
19841968
},
@@ -41167,7 +41151,7 @@
4116741151
"$ref": "#/components/schemas/selected-actions-url"
4116841152
}
4116941153
},
41170-
"required": ["enabled_organizations", "allowed_actions"]
41154+
"required": ["enabled_organizations"]
4117141155
},
4117241156
"organization-simple": {
4117341157
"title": "Organization Simple",
@@ -45904,7 +45888,7 @@
4590445888
"$ref": "#/components/schemas/selected-actions-url"
4590545889
}
4590645890
},
45907-
"required": ["enabled", "allowed_actions"]
45891+
"required": ["enabled"]
4590845892
},
4590945893
"pull-request-minimal": {
4591045894
"title": "Pull Request Minimal",

cache/ghes-2.22.json

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "2.24.1",
4+
"version": "2.25.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -3489,19 +3489,11 @@
34893489
}
34903490
}
34913491
},
3492-
"304": { "$ref": "#/components/responses/not_modified" },
3493-
"415": { "$ref": "#/components/responses/preview_header_missing" }
3492+
"304": { "$ref": "#/components/responses/not_modified" }
34943493
},
34953494
"x-github": {
34963495
"githubCloudOnly": false,
34973496
"enabledForGitHubApps": true,
3498-
"previews": [
3499-
{
3500-
"required": true,
3501-
"name": "scarlet-witch",
3502-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@2.22/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
3503-
}
3504-
],
35053497
"category": "codes-of-conduct",
35063498
"subcategory": null
35073499
},
@@ -3539,19 +3531,11 @@
35393531
}
35403532
},
35413533
"304": { "$ref": "#/components/responses/not_modified" },
3542-
"404": { "$ref": "#/components/responses/not_found" },
3543-
"415": { "$ref": "#/components/responses/preview_header_missing" }
3534+
"404": { "$ref": "#/components/responses/not_found" }
35443535
},
35453536
"x-github": {
35463537
"githubCloudOnly": false,
35473538
"enabledForGitHubApps": true,
3548-
"previews": [
3549-
{
3550-
"required": true,
3551-
"name": "scarlet-witch",
3552-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@2.22/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
3553-
}
3554-
],
35553539
"category": "codes-of-conduct",
35563540
"subcategory": null
35573541
},

cache/ghes-3.0.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "2.24.1",
4+
"version": "2.25.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -3655,19 +3655,11 @@
36553655
}
36563656
}
36573657
},
3658-
"304": { "$ref": "#/components/responses/not_modified" },
3659-
"415": { "$ref": "#/components/responses/preview_header_missing" }
3658+
"304": { "$ref": "#/components/responses/not_modified" }
36603659
},
36613660
"x-github": {
36623661
"githubCloudOnly": false,
36633662
"enabledForGitHubApps": true,
3664-
"previews": [
3665-
{
3666-
"required": true,
3667-
"name": "scarlet-witch",
3668-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.0/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
3669-
}
3670-
],
36713663
"category": "codes-of-conduct",
36723664
"subcategory": null
36733665
},
@@ -3705,19 +3697,11 @@
37053697
}
37063698
},
37073699
"304": { "$ref": "#/components/responses/not_modified" },
3708-
"404": { "$ref": "#/components/responses/not_found" },
3709-
"415": { "$ref": "#/components/responses/preview_header_missing" }
3700+
"404": { "$ref": "#/components/responses/not_found" }
37103701
},
37113702
"x-github": {
37123703
"githubCloudOnly": false,
37133704
"enabledForGitHubApps": true,
3714-
"previews": [
3715-
{
3716-
"required": true,
3717-
"name": "scarlet-witch",
3718-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.0/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
3719-
}
3720-
],
37213705
"category": "codes-of-conduct",
37223706
"subcategory": null
37233707
},
@@ -38094,7 +38078,7 @@
3809438078
"$ref": "#/components/schemas/selected-actions-url"
3809538079
}
3809638080
},
38097-
"required": ["enabled_organizations", "allowed_actions"]
38081+
"required": ["enabled_organizations"]
3809838082
},
3809938083
"selected-actions": {
3810038084
"type": "object",
@@ -42032,7 +42016,7 @@
4203242016
"$ref": "#/components/schemas/selected-actions-url"
4203342017
}
4203442018
},
42035-
"required": ["enabled", "allowed_actions"]
42019+
"required": ["enabled"]
4203642020
},
4203742021
"pull-request-minimal": {
4203842022
"title": "Pull Request Minimal",

cache/ghes-3.1.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "2.24.1",
4+
"version": "2.25.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -3655,19 +3655,11 @@
36553655
}
36563656
}
36573657
},
3658-
"304": { "$ref": "#/components/responses/not_modified" },
3659-
"415": { "$ref": "#/components/responses/preview_header_missing" }
3658+
"304": { "$ref": "#/components/responses/not_modified" }
36603659
},
36613660
"x-github": {
36623661
"githubCloudOnly": false,
36633662
"enabledForGitHubApps": true,
3664-
"previews": [
3665-
{
3666-
"required": true,
3667-
"name": "scarlet-witch",
3668-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.1/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
3669-
}
3670-
],
36713663
"category": "codes-of-conduct",
36723664
"subcategory": null
36733665
},
@@ -3705,19 +3697,11 @@
37053697
}
37063698
},
37073699
"304": { "$ref": "#/components/responses/not_modified" },
3708-
"404": { "$ref": "#/components/responses/not_found" },
3709-
"415": { "$ref": "#/components/responses/preview_header_missing" }
3700+
"404": { "$ref": "#/components/responses/not_found" }
37103701
},
37113702
"x-github": {
37123703
"githubCloudOnly": false,
37133704
"enabledForGitHubApps": true,
3714-
"previews": [
3715-
{
3716-
"required": true,
3717-
"name": "scarlet-witch",
3718-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/enterprise-server@3.1/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
3719-
}
3720-
],
37213705
"category": "codes-of-conduct",
37223706
"subcategory": null
37233707
},
@@ -38573,7 +38557,7 @@
3857338557
"$ref": "#/components/schemas/selected-actions-url"
3857438558
}
3857538559
},
38576-
"required": ["enabled_organizations", "allowed_actions"]
38560+
"required": ["enabled_organizations"]
3857738561
},
3857838562
"selected-actions": {
3857938563
"type": "object",
@@ -42603,7 +42587,7 @@
4260342587
"$ref": "#/components/schemas/selected-actions-url"
4260442588
}
4260542589
},
42606-
"required": ["enabled", "allowed_actions"]
42590+
"required": ["enabled"]
4260742591
},
4260842592
"pull-request-minimal": {
4260942593
"title": "Pull Request Minimal",

cache/github.ae.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "2.24.1",
4+
"version": "2.25.0",
55
"title": "GitHub's official OpenAPI spec + Octokit extension",
66
"description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs",
77
"license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" },
@@ -2457,19 +2457,11 @@
24572457
}
24582458
}
24592459
},
2460-
"304": { "$ref": "#/components/responses/not_modified" },
2461-
"415": { "$ref": "#/components/responses/preview_header_missing" }
2460+
"304": { "$ref": "#/components/responses/not_modified" }
24622461
},
24632462
"x-github": {
24642463
"githubCloudOnly": false,
24652464
"enabledForGitHubApps": true,
2466-
"previews": [
2467-
{
2468-
"required": true,
2469-
"name": "scarlet-witch",
2470-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
2471-
}
2472-
],
24732465
"category": "codes-of-conduct",
24742466
"subcategory": null
24752467
},
@@ -2507,19 +2499,11 @@
25072499
}
25082500
},
25092501
"304": { "$ref": "#/components/responses/not_modified" },
2510-
"404": { "$ref": "#/components/responses/not_found" },
2511-
"415": { "$ref": "#/components/responses/preview_header_missing" }
2502+
"404": { "$ref": "#/components/responses/not_found" }
25122503
},
25132504
"x-github": {
25142505
"githubCloudOnly": false,
25152506
"enabledForGitHubApps": true,
2516-
"previews": [
2517-
{
2518-
"required": true,
2519-
"name": "scarlet-witch",
2520-
"note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/github-ae@latest/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```"
2521-
}
2522-
],
25232507
"category": "codes-of-conduct",
25242508
"subcategory": null
25252509
},
@@ -35112,7 +35096,7 @@
3511235096
"$ref": "#/components/schemas/selected-actions-url"
3511335097
}
3511435098
},
35115-
"required": ["enabled_organizations", "allowed_actions"]
35099+
"required": ["enabled_organizations"]
3511635100
},
3511735101
"selected-actions": {
3511835102
"type": "object",
@@ -38739,7 +38723,7 @@
3873938723
"$ref": "#/components/schemas/selected-actions-url"
3874038724
}
3874138725
},
38742-
"required": ["enabled", "allowed_actions"]
38726+
"required": ["enabled"]
3874338727
},
3874438728
"pull-request-minimal": {
3874538729
"title": "Pull Request Minimal",

packages/openapi-types-ghes-2.22/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"types": "types.d.ts",
1313
"author": "Gregor Martynus (https://twitter.com/gr2m)",
1414
"license": "MIT",
15-
"octokit": { "openapi-version": "2.24.1" }
15+
"octokit": { "openapi-version": "2.25.0" }
1616
}

0 commit comments

Comments
 (0)