@scalar/oas-utils 0.6.2 → 0.6.4
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.
- package/CHANGELOG.md +31 -0
- package/dist/entities/cookie/cookie.d.ts +1 -1
- package/dist/entities/environment/environment.d.ts.map +1 -1
- package/dist/entities/environment/environment.js.map +2 -2
- package/dist/entities/environment/index.d.ts +2 -1
- package/dist/entities/environment/index.d.ts.map +1 -1
- package/dist/entities/environment/index.js.map +2 -2
- package/dist/entities/spec/collection.d.ts +1 -132
- package/dist/entities/spec/collection.d.ts.map +1 -1
- package/dist/entities/spec/collection.js +4 -7
- package/dist/entities/spec/collection.js.map +2 -2
- package/dist/entities/spec/index.d.ts +9 -8
- package/dist/entities/spec/index.d.ts.map +1 -1
- package/dist/entities/spec/index.js +22 -22
- package/dist/entities/spec/index.js.map +2 -2
- package/dist/entities/spec/operation.d.ts +4 -4
- package/dist/entities/spec/parameters.d.ts +1 -19
- package/dist/entities/spec/parameters.d.ts.map +1 -1
- package/dist/entities/spec/parameters.js +1 -5
- package/dist/entities/spec/parameters.js.map +2 -2
- package/dist/entities/spec/request-examples.d.ts +1 -130
- package/dist/entities/spec/request-examples.d.ts.map +1 -1
- package/dist/entities/spec/request-examples.js +1 -7
- package/dist/entities/spec/request-examples.js.map +2 -2
- package/dist/entities/spec/requests.d.ts +5 -87
- package/dist/entities/spec/requests.d.ts.map +1 -1
- package/dist/entities/spec/requests.js +4 -6
- package/dist/entities/spec/requests.js.map +2 -2
- package/dist/entities/spec/server.d.ts +1 -30
- package/dist/entities/spec/server.d.ts.map +1 -1
- package/dist/entities/spec/server.js +0 -2
- package/dist/entities/spec/server.js.map +2 -2
- package/dist/entities/spec/spec-objects.d.ts +1 -33
- package/dist/entities/spec/spec-objects.d.ts.map +1 -1
- package/dist/entities/spec/spec-objects.js +1 -3
- package/dist/entities/spec/spec-objects.js.map +2 -2
- package/dist/entities/spec/x-scalar-environments.d.ts +2 -6
- package/dist/entities/spec/x-scalar-environments.d.ts.map +1 -1
- package/dist/entities/spec/x-scalar-environments.js +0 -2
- package/dist/entities/spec/x-scalar-environments.js.map +2 -2
- package/dist/entities/spec/x-scalar-secrets.d.ts +0 -5
- package/dist/entities/spec/x-scalar-secrets.d.ts.map +1 -1
- package/dist/entities/spec/x-scalar-secrets.js +0 -1
- package/dist/entities/spec/x-scalar-secrets.js.map +2 -2
- package/dist/entities/workspace/workspace.d.ts +1 -1
- package/dist/helpers/security/get-schemes.d.ts.map +1 -1
- package/package.json +10 -21
|
@@ -144,38 +144,6 @@ export declare const oasExternalDocumentationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
144
144
|
url: string;
|
|
145
145
|
description?: string | undefined;
|
|
146
146
|
}>>;
|
|
147
|
-
export type ExternalDocumentation = z.infer<typeof oasExternalDocumentationSchema>;
|
|
148
|
-
export declare const xScalarNestedSchema: z.ZodArray<z.ZodObject<{
|
|
149
|
-
tagName: z.ZodString;
|
|
150
|
-
}, z.core.$strip>>;
|
|
151
|
-
/**
|
|
152
|
-
* Tag Object
|
|
153
|
-
*
|
|
154
|
-
* Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag
|
|
155
|
-
* defined in the Operation Object instances.
|
|
156
|
-
*
|
|
157
|
-
* @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object
|
|
158
|
-
*/
|
|
159
|
-
export declare const oasTagSchema: z.ZodObject<{
|
|
160
|
-
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"tag">>>;
|
|
161
|
-
name: z.ZodString;
|
|
162
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
163
|
-
externalDocs: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
164
|
-
description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
165
|
-
url: z.ZodString;
|
|
166
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
167
|
-
url: string;
|
|
168
|
-
description?: string | undefined;
|
|
169
|
-
}, {
|
|
170
|
-
url: string;
|
|
171
|
-
description?: string | undefined;
|
|
172
|
-
}>>>;
|
|
173
|
-
'x-scalar-children': z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
174
|
-
tagName: z.ZodString;
|
|
175
|
-
}, z.core.$strip>>>>;
|
|
176
|
-
'x-internal': z.ZodOptional<z.ZodBoolean>;
|
|
177
|
-
'x-scalar-ignore': z.ZodOptional<z.ZodBoolean>;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
147
|
export declare const tagSchema: z.ZodObject<{
|
|
180
148
|
type: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"tag">>>;
|
|
181
149
|
name: z.ZodString;
|
|
@@ -195,7 +163,7 @@ export declare const tagSchema: z.ZodObject<{
|
|
|
195
163
|
}, z.core.$strip>>>>;
|
|
196
164
|
'x-internal': z.ZodOptional<z.ZodBoolean>;
|
|
197
165
|
'x-scalar-ignore': z.ZodOptional<z.ZodBoolean>;
|
|
198
|
-
uid: z.core.$ZodBranded<z.ZodDefault<z.
|
|
166
|
+
uid: z.core.$ZodBranded<z.ZodDefault<z.ZodString>, "tag">;
|
|
199
167
|
children: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodString, "operation">, z.core.$ZodBranded<z.ZodString, "tag">]>>>;
|
|
200
168
|
}, z.core.$strip>;
|
|
201
169
|
export type Tag = z.infer<typeof tagSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec-objects.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/spec-objects.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;GAWI,CAAA;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;GASI,CAAA;AAEjC;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBO,CAAA;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;GAOV,CAAA;
|
|
1
|
+
{"version":3,"file":"spec-objects.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/spec-objects.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;GAWI,CAAA;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;GASI,CAAA;AAEjC;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBO,CAAA;AAEjC;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;GAOV,CAAA;AAqCjC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;iBAMpB,CAAA;AAEF,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA;AAC3C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/entities/spec/spec-objects.ts"],
|
|
4
|
-
"sourcesContent": ["import { omitUndefinedValues } from '@scalar/helpers/object/omit-undefined-values'\nimport { XScalarSdkInstallationSchema } from '@scalar/openapi-types/schemas/extensions'\nimport { type ENTITY_BRANDS, nanoidSchema } from '@scalar/types/utils'\nimport { z } from 'zod'\n\n/**\n * License Object\n *\n * License information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object\n */\nexport const oasLicenseSchema = z\n .object({\n /** REQUIRED. The license name used for the API. */\n name: z.string().optional().nullable().catch(null),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: z.string().optional().catch(undefined),\n /**\n * A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.\n */\n url: z.string().url().optional().catch(undefined),\n })\n .transform(omitUndefinedValues)\n\n/**\n * Contact Object\n *\n * Contact information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#contact-object\n */\nexport const oasContactSchema = z\n .object({\n /** The identifying name of the contact person/organization. */\n name: z.string().optional(),\n /** The URL pointing to the contact information. This MUST be in the form of a URL. */\n url: z.string().url().optional().catch(undefined),\n /** The email address of the contact person/organization. This MUST be in the form of an email address. */\n email: z.string().optional().catch(undefined),\n })\n .transform(omitUndefinedValues)\n\n/**\n * Info Object\n *\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed,\n * and MAY be presented in editing or documentation generation tools for convenience.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object\n */\nexport const oasInfoSchema = z\n .object({\n /** REQUIRED. The title of the API. */\n title: z.string().catch('API'),\n /** A short summary of the API. */\n summary: z.string().optional().catch(undefined),\n /** A description of the API. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional().catch(undefined),\n /** A URL to the Terms of Service for the API. This MUST be in the form of a URL. */\n termsOfService: z.string().url().optional().catch(undefined),\n /** The contact information for the exposed API. */\n contact: oasContactSchema.optional().catch(undefined),\n /** The license information for the exposed API. */\n license: oasLicenseSchema.optional().catch(undefined),\n /**\n * REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the\n * version of the API being described or the version of the OpenAPI Description).\n */\n version: z.string().catch('1.0'),\n })\n .merge(XScalarSdkInstallationSchema)\n .transform(omitUndefinedValues)\n\n/**\n * External Documentation Object\n *\n * Allows referencing an external resource for extended documentation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object\n */\nexport const oasExternalDocumentationSchema = z\n .object({\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional().catch(undefined),\n /** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */\n url: z.string(),\n })\n .transform(omitUndefinedValues)\n\
|
|
5
|
-
"mappings": "AAAA,SAAS,2BAA2B;AACpC,SAAS,oCAAoC;AAC7C,SAA6B,oBAAoB;AACjD,SAAS,SAAS;AASX,MAAM,mBAAmB,EAC7B,OAAO;AAAA;AAAA,EAEN,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,IAAI;AAAA;AAAA,EAEjD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIjD,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAClD,CAAC,EACA,UAAU,mBAAmB;AASzB,MAAM,mBAAmB,EAC7B,OAAO;AAAA;AAAA,EAEN,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAE1B,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAEhD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAC9C,CAAC,EACA,UAAU,mBAAmB;AAUzB,MAAM,gBAAgB,EAC1B,OAAO;AAAA;AAAA,EAEN,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK;AAAA;AAAA,EAE7B,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAE9C,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAElD,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAE3D,SAAS,iBAAiB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAEpD,SAAS,iBAAiB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpD,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK;AACjC,CAAC,EACA,MAAM,4BAA4B,EAClC,UAAU,mBAAmB;AASzB,MAAM,iCAAiC,EAC3C,OAAO;AAAA;AAAA,EAEN,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAElD,KAAK,EAAE,OAAO;AAChB,CAAC,EACA,UAAU,mBAAmB;
|
|
4
|
+
"sourcesContent": ["import { omitUndefinedValues } from '@scalar/helpers/object/omit-undefined-values'\nimport { XScalarSdkInstallationSchema } from '@scalar/openapi-types/schemas/extensions'\nimport { type ENTITY_BRANDS, nanoidSchema } from '@scalar/types/utils'\nimport { z } from 'zod'\n\n/**\n * License Object\n *\n * License information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object\n */\nexport const oasLicenseSchema = z\n .object({\n /** REQUIRED. The license name used for the API. */\n name: z.string().optional().nullable().catch(null),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: z.string().optional().catch(undefined),\n /**\n * A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field.\n */\n url: z.string().url().optional().catch(undefined),\n })\n .transform(omitUndefinedValues)\n\n/**\n * Contact Object\n *\n * Contact information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#contact-object\n */\nexport const oasContactSchema = z\n .object({\n /** The identifying name of the contact person/organization. */\n name: z.string().optional(),\n /** The URL pointing to the contact information. This MUST be in the form of a URL. */\n url: z.string().url().optional().catch(undefined),\n /** The email address of the contact person/organization. This MUST be in the form of an email address. */\n email: z.string().optional().catch(undefined),\n })\n .transform(omitUndefinedValues)\n\n/**\n * Info Object\n *\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed,\n * and MAY be presented in editing or documentation generation tools for convenience.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#info-object\n */\nexport const oasInfoSchema = z\n .object({\n /** REQUIRED. The title of the API. */\n title: z.string().catch('API'),\n /** A short summary of the API. */\n summary: z.string().optional().catch(undefined),\n /** A description of the API. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional().catch(undefined),\n /** A URL to the Terms of Service for the API. This MUST be in the form of a URL. */\n termsOfService: z.string().url().optional().catch(undefined),\n /** The contact information for the exposed API. */\n contact: oasContactSchema.optional().catch(undefined),\n /** The license information for the exposed API. */\n license: oasLicenseSchema.optional().catch(undefined),\n /**\n * REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the\n * version of the API being described or the version of the OpenAPI Description).\n */\n version: z.string().catch('1.0'),\n })\n .merge(XScalarSdkInstallationSchema)\n .transform(omitUndefinedValues)\n\n/**\n * External Documentation Object\n *\n * Allows referencing an external resource for extended documentation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#external-documentation-object\n */\nexport const oasExternalDocumentationSchema = z\n .object({\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: z.string().optional().catch(undefined),\n /** REQUIRED. The URL for the target documentation. This MUST be in the form of a URL. */\n url: z.string(),\n })\n .transform(omitUndefinedValues)\n\n// not used but kept for consistency\n// export type ExternalDocumentation = z.infer<typeof oasExternalDocumentationSchema>\n\nconst xScalarNestedSchema = z\n .object({\n tagName: z.string(),\n })\n .array()\n\n/**\n * Tag Object\n *\n * Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag\n * defined in the Operation Object instances.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#tag-object\n */\nconst oasTagSchema = z.object({\n // TODO: Remove\n /**\n * @deprecated Needs to be remove as it is not a spec property\n */\n 'type': z.literal('tag').optional().default('tag'),\n /** REQUIRED. The name of the tag. */\n 'name': z.string(),\n /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */\n 'description': z.string().optional().catch(undefined),\n /** Additional external documentation for this tag. */\n 'externalDocs': oasExternalDocumentationSchema.optional(),\n 'x-scalar-children': xScalarNestedSchema.default([]).optional(),\n /** Hide collections */\n 'x-internal': z.boolean().optional(),\n 'x-scalar-ignore': z.boolean().optional(),\n})\n\nexport const tagSchema = oasTagSchema.extend({\n uid: nanoidSchema.brand<ENTITY_BRANDS['TAG']>(),\n children: z\n .union([z.string().brand<ENTITY_BRANDS['OPERATION']>(), z.string().brand<ENTITY_BRANDS['TAG']>()])\n .array()\n .default([]),\n})\n\nexport type Tag = z.infer<typeof tagSchema>\nexport type TagPayload = z.input<typeof tagSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,2BAA2B;AACpC,SAAS,oCAAoC;AAC7C,SAA6B,oBAAoB;AACjD,SAAS,SAAS;AASX,MAAM,mBAAmB,EAC7B,OAAO;AAAA;AAAA,EAEN,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,IAAI;AAAA;AAAA,EAEjD,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA,EAIjD,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAClD,CAAC,EACA,UAAU,mBAAmB;AASzB,MAAM,mBAAmB,EAC7B,OAAO;AAAA;AAAA,EAEN,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAE1B,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAEhD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAC9C,CAAC,EACA,UAAU,mBAAmB;AAUzB,MAAM,gBAAgB,EAC1B,OAAO;AAAA;AAAA,EAEN,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK;AAAA;AAAA,EAE7B,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAE9C,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAElD,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAE3D,SAAS,iBAAiB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAEpD,SAAS,iBAAiB,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpD,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK;AACjC,CAAC,EACA,MAAM,4BAA4B,EAClC,UAAU,mBAAmB;AASzB,MAAM,iCAAiC,EAC3C,OAAO;AAAA;AAAA,EAEN,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAElD,KAAK,EAAE,OAAO;AAChB,CAAC,EACA,UAAU,mBAAmB;AAKhC,MAAM,sBAAsB,EACzB,OAAO;AAAA,EACN,SAAS,EAAE,OAAO;AACpB,CAAC,EACA,MAAM;AAUT,MAAM,eAAe,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAK5B,QAAQ,EAAE,QAAQ,KAAK,EAAE,SAAS,EAAE,QAAQ,KAAK;AAAA;AAAA,EAEjD,QAAQ,EAAE,OAAO;AAAA;AAAA,EAEjB,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAS;AAAA;AAAA,EAEpD,gBAAgB,+BAA+B,SAAS;AAAA,EACxD,qBAAqB,oBAAoB,QAAQ,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA,EAE9D,cAAc,EAAE,QAAQ,EAAE,SAAS;AAAA,EACnC,mBAAmB,EAAE,QAAQ,EAAE,SAAS;AAC1C,CAAC;AAEM,MAAM,YAAY,aAAa,OAAO;AAAA,EAC3C,KAAK,aAAa,MAA4B;AAAA,EAC9C,UAAU,EACP,MAAM,CAAC,EAAE,OAAO,EAAE,MAAkC,GAAG,EAAE,OAAO,EAAE,MAA4B,CAAC,CAAC,EAChG,MAAM,EACN,QAAQ,CAAC,CAAC;AACf,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare const xScalarEnvVarSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5
|
-
default: z.ZodDefault<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>, z.ZodString]>;
|
|
7
|
-
export declare const xScalarEnvironmentSchema: z.ZodObject<{
|
|
2
|
+
declare const xScalarEnvironmentSchema: z.ZodObject<{
|
|
8
3
|
description: z.ZodOptional<z.ZodString>;
|
|
9
4
|
color: z.ZodOptional<z.ZodString>;
|
|
10
5
|
variables: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -23,4 +18,5 @@ export declare const xScalarEnvironmentsSchema: z.ZodRecord<z.ZodString, z.ZodOb
|
|
|
23
18
|
}, z.core.$strip>>;
|
|
24
19
|
export type XScalarEnvironment = z.infer<typeof xScalarEnvironmentSchema>;
|
|
25
20
|
export type XScalarEnvironments = z.infer<typeof xScalarEnvironmentsSchema>;
|
|
21
|
+
export {};
|
|
26
22
|
//# sourceMappingURL=x-scalar-environments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-environments.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/x-scalar-environments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"x-scalar-environments.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/x-scalar-environments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAYvB,QAAA,MAAM,wBAAwB;;;;;;;iBAK5B,CAAA;AAEF,oCAAoC;AACpC,eAAO,MAAM,yBAAyB;;;;;;;kBAKrC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACzE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/entities/spec/x-scalar-environments.ts"],
|
|
4
|
-
"sourcesContent": ["import { z } from 'zod'\n\
|
|
5
|
-
"mappings": "AAAA,SAAS,SAAS;
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\n\nconst xScalarEnvVarSchema = z.union([\n z.object({\n description: z.string().optional(),\n default: z.string().default(''),\n }),\n z.string(),\n])\n// not used but kept for consistency\n// export type XScalarEnvVar = z.infer<typeof xScalarEnvVarSchema>\n\nconst xScalarEnvironmentSchema = z.object({\n description: z.string().optional(),\n color: z.string().optional(),\n /** A map of variables by name */\n variables: z.record(z.string(), xScalarEnvVarSchema),\n})\n\n/** A map of environments by name */\nexport const xScalarEnvironmentsSchema = z.record(\n /** Name */\n z.string(),\n /** Environment definition */\n xScalarEnvironmentSchema,\n)\n\nexport type XScalarEnvironment = z.infer<typeof xScalarEnvironmentSchema>\nexport type XScalarEnvironments = z.infer<typeof xScalarEnvironmentsSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AAElB,MAAM,sBAAsB,EAAE,MAAM;AAAA,EAClC,EAAE,OAAO;AAAA,IACP,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,IACjC,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE;AAAA,EAChC,CAAC;AAAA,EACD,EAAE,OAAO;AACX,CAAC;AAID,MAAM,2BAA2B,EAAE,OAAO;AAAA,EACxC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,OAAO,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAE3B,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB;AACrD,CAAC;AAGM,MAAM,4BAA4B,EAAE;AAAA;AAAA,EAEzC,EAAE,OAAO;AAAA;AAAA,EAET;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const xScalarSecretVarSchema: z.ZodObject<{
|
|
3
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4
|
-
example: z.ZodOptional<z.ZodString>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
2
|
export declare const xScalarSecretsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7
3
|
description: z.ZodOptional<z.ZodString>;
|
|
8
4
|
example: z.ZodOptional<z.ZodString>;
|
|
9
5
|
}, z.core.$strip>>;
|
|
10
|
-
export type XScalarSecrets = z.infer<typeof xScalarSecretsSchema>;
|
|
11
6
|
//# sourceMappingURL=x-scalar-secrets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-secrets.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/x-scalar-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"x-scalar-secrets.d.ts","sourceRoot":"","sources":["../../../src/entities/spec/x-scalar-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,oBAAoB;;;kBAA+C,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/entities/spec/x-scalar-secrets.ts"],
|
|
4
|
-
"sourcesContent": ["import { z } from 'zod'\n\
|
|
5
|
-
"mappings": "AAAA,SAAS,SAAS;
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\n\nconst xScalarSecretVarSchema = z.object({\n description: z.string().optional(),\n example: z.string().optional(),\n})\n\nexport const xScalarSecretsSchema = z.record(z.string(), xScalarSecretVarSchema)\n// not used but kept for consistency\n// export type XScalarSecrets = z.infer<typeof xScalarSecretsSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,SAAS;AAElB,MAAM,yBAAyB,EAAE,OAAO;AAAA,EACtC,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,SAAS,EAAE,OAAO,EAAE,SAAS;AAC/B,CAAC;AAEM,MAAM,uBAAuB,EAAE,OAAO,EAAE,OAAO,GAAG,sBAAsB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -100,7 +100,7 @@ declare const hotKeys: z.ZodRecord<z.ZodEnum<{
|
|
|
100
100
|
}, z.core.$strip>>;
|
|
101
101
|
export type HotKeyConfig = z.infer<typeof hotKeys>;
|
|
102
102
|
export declare const workspaceSchema: z.ZodObject<{
|
|
103
|
-
uid: z.core.$ZodBranded<z.ZodDefault<z.
|
|
103
|
+
uid: z.core.$ZodBranded<z.ZodDefault<z.ZodString>, "workspace">;
|
|
104
104
|
name: z.ZodDefault<z.ZodString>;
|
|
105
105
|
description: z.ZodDefault<z.ZodString>;
|
|
106
106
|
collections: z.ZodDefault<z.ZodArray<z.core.$ZodBranded<z.ZodString, "collection">>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-schemes.d.ts","sourceRoot":"","sources":["../../../src/helpers/security/get-schemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,2IAA2I;AAC3I,eAAO,MAAM,UAAU,GACrB,yBAAyB,SAAS,CAAC,4BAA4B,CAAC,EAChE,iBAAiB,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get-schemes.d.ts","sourceRoot":"","sources":["../../../src/helpers/security/get-schemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAG5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,2IAA2I;AAC3I,eAAO,MAAM,UAAU,GACrB,yBAAyB,SAAS,CAAC,4BAA4B,CAAC,EAChE,iBAAiB,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAOwxmB,CAAC;;;;;;;;;qCAAiV,CAAC;oCAA0E,CAAC;yBAA+D,CAAC;;gBAA6D,CAAC;;;;;;;;;;;qCAA0X,CAAC;oCAA0E,CAAC;yBAA+D,CAAC;2CAAiE,CAAC;;yBAAiF,CAAC;;;;;;;;;qCAAuU,CAAC;oCAA0E,CAAC;yBAA+D,CAAC;2CAAiE,CAAC;;yBAAiF,CAAC;;;;;;;;;;;;qCAA+c,CAAC;oCAA0E,CAAC;yBAA+D,CAAC;2CAAiE,CAAC;;;;;;;IADjxrB,CAAA"}
|
package/package.json
CHANGED
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
"specification",
|
|
17
17
|
"yaml"
|
|
18
18
|
],
|
|
19
|
-
"version": "0.6.
|
|
19
|
+
"version": "0.6.4",
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=20"
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "dist/index.js",
|
|
25
|
+
"module": "dist/index.js",
|
|
25
26
|
"exports": {
|
|
26
27
|
"./entities/cookie": {
|
|
27
28
|
"import": "./dist/entities/cookie/index.js",
|
|
@@ -58,11 +59,6 @@
|
|
|
58
59
|
"types": "./dist/helpers/index.d.ts",
|
|
59
60
|
"default": "./dist/helpers/index.js"
|
|
60
61
|
},
|
|
61
|
-
"./helpers/operation-to-har": {
|
|
62
|
-
"import": "./dist/helpers/operation-to-har/index.js",
|
|
63
|
-
"types": "./dist/helpers/operation-to-har/index.d.ts",
|
|
64
|
-
"default": "./dist/helpers/operation-to-har/index.js"
|
|
65
|
-
},
|
|
66
62
|
"./helpers/security": {
|
|
67
63
|
"import": "./dist/helpers/security/index.js",
|
|
68
64
|
"types": "./dist/helpers/security/index.d.ts",
|
|
@@ -88,33 +84,26 @@
|
|
|
88
84
|
"dist",
|
|
89
85
|
"CHANGELOG.md"
|
|
90
86
|
],
|
|
91
|
-
"module": "dist/index.js",
|
|
92
87
|
"dependencies": {
|
|
93
|
-
"@hyperjump/browser": "^1.1.0",
|
|
94
|
-
"@hyperjump/json-schema": "^1.9.6",
|
|
95
|
-
"@types/har-format": "^1.2.15",
|
|
96
88
|
"flatted": "^3.3.3",
|
|
97
|
-
"js-base64": "^3.7.8",
|
|
98
|
-
"microdiff": "^1.5.0",
|
|
99
|
-
"nanoid": "5.1.5",
|
|
100
89
|
"type-fest": "5.0.0",
|
|
101
90
|
"yaml": "2.8.0",
|
|
102
91
|
"zod": "4.1.11",
|
|
103
|
-
"@scalar/
|
|
104
|
-
"@scalar/
|
|
105
|
-
"@scalar/object-utils": "1.2.
|
|
106
|
-
"@scalar/themes": "0.13.23",
|
|
107
|
-
"@scalar/types": "0.4.0",
|
|
92
|
+
"@scalar/json-magic": "0.8.2",
|
|
93
|
+
"@scalar/helpers": "0.1.2",
|
|
94
|
+
"@scalar/object-utils": "1.2.12",
|
|
108
95
|
"@scalar/openapi-types": "0.5.1",
|
|
109
|
-
"@scalar/
|
|
96
|
+
"@scalar/types": "0.5.0",
|
|
97
|
+
"@scalar/themes": "0.13.24",
|
|
98
|
+
"@scalar/workspace-store": "0.21.0"
|
|
110
99
|
},
|
|
111
100
|
"devDependencies": {
|
|
112
101
|
"@types/node": "^22.9.0",
|
|
113
102
|
"vite": "7.1.11",
|
|
114
103
|
"vitest": "3.2.4",
|
|
115
104
|
"zod-to-ts": "github:amritk/zod-to-ts#build",
|
|
116
|
-
"@scalar/build-tooling": "0.
|
|
117
|
-
"@scalar/openapi-parser": "0.23.
|
|
105
|
+
"@scalar/build-tooling": "0.3.0",
|
|
106
|
+
"@scalar/openapi-parser": "0.23.3",
|
|
118
107
|
"@scalar/openapi-types": "0.5.1"
|
|
119
108
|
},
|
|
120
109
|
"scripts": {
|