From 80c9b4132a2fab363dbd844d2741b743b1fcf271 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <github-actions[bot]@users.noreply.github.com> Date: Thu, 23 Feb 2023 12:03:02 +0000 Subject: [PATCH] fix(openapi): sync with openapi definition --- openapi.json | 19 +++++++++++++++++-- types/api.d.ts | 9 +++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/openapi.json b/openapi.json index d481d07..577ce66 100644 --- a/openapi.json +++ b/openapi.json @@ -5821,7 +5821,7 @@ ] }, "value": { - "$ref": "#/components/schemas/SocketRefNPM" + "$ref": "#/components/schemas/SocketRefPyPI" } } }, @@ -5854,6 +5854,21 @@ "$ref": "#/components/schemas/SocketRefWeb" } } + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "type": "string", + "enum": [ + "pypi" + ] + }, + "value": { + "$ref": "#/components/schemas/SocketRefPyPI" + } + } } ] }, @@ -5903,7 +5918,7 @@ "start" ] }, - "SocketRefNPM": { + "SocketRefPyPI": { "type": "object", "additionalProperties": false, "properties": { diff --git a/types/api.d.ts b/types/api.d.ts index dbd5112..92adff3 100644 --- a/types/api.d.ts +++ b/types/api.d.ts @@ -1764,7 +1764,7 @@ export interface components { Partial<{ /** @enum {string} */ type?: "npm"; - value?: components["schemas"]["SocketRefNPM"]; + value?: components["schemas"]["SocketRefPyPI"]; }> & Partial<{ /** @enum {string} */ @@ -1775,6 +1775,11 @@ export interface components { /** @enum {string} */ type?: "web"; value?: components["schemas"]["SocketRefWeb"]; + }> & + Partial<{ + /** @enum {string} */ + type?: "pypi"; + value?: components["schemas"]["SocketRefPyPI"]; }>; SocketRefTextRange: { /** @default 0 */ @@ -1792,7 +1797,7 @@ export interface components { /** @default 0 */ end: number; }; - SocketRefNPM: { + SocketRefPyPI: { /** @default */ package: string; /** @default */