@scalar/workspace-store 0.16.0 → 0.17.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.
- package/CHANGELOG.md +35 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +2 -2
- package/dist/mutators/index.d.ts +6 -24
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/index.js +0 -2
- package/dist/mutators/index.js.map +2 -2
- package/dist/navigation/helpers/traverse-description.d.ts +1 -1
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.js.map +1 -1
- package/dist/navigation/helpers/traverse-document.d.ts +2 -182
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-examples.d.ts +8 -0
- package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -0
- package/dist/navigation/helpers/traverse-examples.js +46 -0
- package/dist/navigation/helpers/traverse-examples.js.map +7 -0
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +9 -1
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts +2 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +2 -1
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +1 -0
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -1
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/types.d.ts +2 -1
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-internal.d.ts +4 -0
- package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-internal.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +8 -2
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +2 -2
- package/dist/schemas/extensions/document/x-tags.d.ts +3 -0
- package/dist/schemas/extensions/document/x-tags.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-tags.js.map +1 -1
- package/dist/schemas/extensions/example/x-disabled.d.ts +18 -0
- package/dist/schemas/extensions/example/x-disabled.d.ts.map +1 -0
- package/dist/schemas/extensions/example/x-disabled.js +8 -0
- package/dist/schemas/extensions/example/x-disabled.js.map +7 -0
- package/dist/schemas/extensions/operation/x-badge.d.ts +62 -22
- package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-badge.js +24 -3
- package/dist/schemas/extensions/operation/x-badge.js.map +2 -2
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +10 -2
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
- package/dist/schemas/extensions/operation/x-post-response.d.ts +18 -0
- package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +11 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.js.map +1 -1
- package/dist/schemas/extensions/parameter/x-global.d.ts +13 -0
- package/dist/schemas/extensions/parameter/x-global.d.ts.map +1 -0
- package/dist/schemas/extensions/parameter/x-global.js +8 -0
- package/dist/schemas/extensions/parameter/x-global.js.map +7 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +10 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +30 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts +38 -0
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-varnames.js.map +1 -1
- package/dist/schemas/extensions/schema/x-variable.d.ts +3 -0
- package/dist/schemas/extensions/schema/x-variable.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-variable.js.map +1 -1
- package/dist/schemas/extensions/security/x-default-scopes.d.ts +16 -0
- package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-default-scopes.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +16 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +15 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.js +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-body.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +15 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.js +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-query.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +41 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +2 -2
- package/dist/schemas/extensions/security/x-tokenName.d.ts +12 -1
- package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-tokenName.js +2 -2
- package/dist/schemas/extensions/security/x-tokenName.js.map +2 -2
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +6 -0
- package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.js.map +1 -1
- package/dist/schemas/extensions/tag/x-display-name.d.ts +11 -0
- package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-display-name.js.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +18 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +95 -64
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +4 -1
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/navigation.d.ts +70 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +17 -11
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/appearance.d.ts +9 -2
- package/dist/schemas/reference-config/appearance.d.ts.map +1 -1
- package/dist/schemas/reference-config/appearance.js.map +2 -2
- package/dist/schemas/reference-config/features.d.ts +11 -2
- package/dist/schemas/reference-config/features.d.ts.map +1 -1
- package/dist/schemas/reference-config/features.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +58 -34
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.js +5 -5
- package/dist/schemas/reference-config/index.js.map +2 -2
- package/dist/schemas/reference-config/meta.d.ts +8 -2
- package/dist/schemas/reference-config/meta.d.ts.map +1 -1
- package/dist/schemas/reference-config/meta.js.map +2 -2
- package/dist/schemas/reference-config/routing.d.ts +4 -2
- package/dist/schemas/reference-config/routing.d.ts.map +1 -1
- package/dist/schemas/reference-config/routing.js.map +2 -2
- package/dist/schemas/reference-config/settings.d.ts +48 -33
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js.map +2 -2
- package/dist/schemas/v3.1/strict/callback.d.ts +4 -0
- package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/callback.js +2 -2
- package/dist/schemas/v3.1/strict/callback.js.map +2 -2
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +19 -3
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +2 -2
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +10 -4
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +2 -2
- package/dist/schemas/v3.1/strict/components.d.ts +34 -0
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +1 -1
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.d.ts +9 -0
- package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/contact.js.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.d.ts +11 -0
- package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.d.ts +15 -0
- package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +1 -1
- package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
- package/dist/schemas/v3.1/strict/example.d.ts +28 -2
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +15 -10
- package/dist/schemas/v3.1/strict/example.js.map +2 -2
- package/dist/schemas/v3.1/strict/external-documentation.d.ts +9 -2
- package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js +3 -3
- package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
- package/dist/schemas/v3.1/strict/header.d.ts +41 -0
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +2 -2
- package/dist/schemas/v3.1/strict/header.js.map +2 -2
- package/dist/schemas/v3.1/strict/info.d.ts +24 -2
- package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +7 -5
- package/dist/schemas/v3.1/strict/info.js.map +2 -2
- package/dist/schemas/v3.1/strict/license.d.ts +9 -0
- package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/license.js.map +1 -1
- package/dist/schemas/v3.1/strict/link.d.ts +22 -0
- package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/link.js.map +2 -2
- package/dist/schemas/v3.1/strict/media-type.d.ts +19 -0
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +2 -2
- package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +36 -5
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +13 -7
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -0
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +1431 -1068
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +45 -45
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +43 -17
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +1 -3
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +66 -6
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +21 -17
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +38 -0
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +1 -1
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/paths.d.ts +5 -0
- package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.js +1 -1
- package/dist/schemas/v3.1/strict/paths.js.map +2 -2
- package/dist/schemas/v3.1/strict/reference.d.ts +21 -4
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/reference.js.map +2 -2
- package/dist/schemas/v3.1/strict/request-body.d.ts +10 -0
- package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.js +1 -1
- package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
- package/dist/schemas/v3.1/strict/response.d.ts +17 -0
- package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/response.js +1 -1
- package/dist/schemas/v3.1/strict/response.js.map +2 -2
- package/dist/schemas/v3.1/strict/responses.d.ts +12 -0
- package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/responses.js +1 -1
- package/dist/schemas/v3.1/strict/responses.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +144 -1
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +40 -60
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-requirement.d.ts +12 -0
- package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +37 -0
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/v3.1/strict/server-variable.d.ts +9 -0
- package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
- package/dist/schemas/v3.1/strict/server.d.ts +10 -0
- package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +1 -1
- package/dist/schemas/v3.1/strict/server.js.map +2 -2
- package/dist/schemas/v3.1/strict/tag.d.ts +13 -0
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +1 -1
- package/dist/schemas/v3.1/strict/tag.js.map +2 -2
- package/dist/schemas/v3.1/strict/type-guards.d.ts +1 -1
- package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/type-guards.js.map +1 -1
- package/dist/schemas/v3.1/strict/xml.d.ts +17 -0
- package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js.map +1 -1
- package/dist/schemas/workspace-specification/config.d.ts +45 -33
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/config.js.map +2 -2
- package/dist/schemas/workspace-specification/index.d.ts +55 -34
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.js.map +2 -2
- package/dist/schemas/workspace-specification/info.d.ts +4 -0
- package/dist/schemas/workspace-specification/info.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/info.js.map +1 -1
- package/dist/schemas/workspace.d.ts +310 -218
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +11 -3
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +6 -5
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js.map +2 -2
- package/package.json +5 -5
- package/dist/mutators/request-example.d.ts +0 -21
- package/dist/mutators/request-example.d.ts.map +0 -1
- package/dist/mutators/request-example.js +0 -55
- package/dist/mutators/request-example.js.map +0 -7
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +0 -9
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +0 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +0 -8
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +0 -7
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +0 -38
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +0 -45
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +0 -7
- package/dist/types.d.ts +0 -18
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- package/dist/types.js.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/reference-config/index.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\nimport { AVAILABLE_CLIENTS, type AvailableClientsArray } from '@scalar/types/snippetz'\nimport type { RequiredDeep } from 'type-fest/source/required-deep'\n\nimport { type Appearance, AppearanceSchema, defaultAppearance } from './appearance'\nimport { type Features, FeaturesSchema, defaultFeatures } from './features'\nimport { type Meta, MetaSchema, defaultMeta } from './meta'\nimport { type Routing, RoutingSchema, defaultRouting } from './routing'\nimport { type Settings, SettingsSchema, defaultSettings } from './settings'\n\n/**\n * ReferenceConfigSchema defines the shape of the configuration object\n * for the API Reference. All properties are optional due to Type.Partial.\n * This schema is used for validating and typing the configuration.\n */\nexport const ReferenceConfigSchema = Type.Partial(\n Type.Object({\n /** Document level title */\n title: Type.String(),\n /** Unique slug to identify the document */\n slug: Type.String(),\n /** Settings for the API reference (controls behavior and options) */\n settings: SettingsSchema,\n /** Routing configuration (controls navigation) */\n routing: RoutingSchema,\n /** Appearance configuration (controls theming and UI options) */\n appearance: AppearanceSchema,\n /** Features configuration (toggles for enabling/disabling features) */\n features: FeaturesSchema,\n /** Meta information */\n meta: MetaSchema,\n /** List of enabled HTTP clients for code samples */\n httpClients: Type.Array(Type.Union(AVAILABLE_CLIENTS.map((client) => Type.Literal(client)))),\n }),\n)\n\nexport type ReferenceConfig = {\n title?: string\n slug?: string\n settings?: Settings\n routing?: Routing\n appearance?: Appearance\n features?: Features\n meta?: Meta\n httpClients?: AvailableClientsArray | typeof AVAILABLE_CLIENTS\n}\n\nexport const defaultReferenceConfig: RequiredDeep<ReferenceConfig> = {\n title: 'Scalar API Reference',\n slug: 'scalar-api-reference',\n\n /**\n * Default settings for the API reference.\n */\n settings: defaultSettings,\n\n /**\n * Default routing configuration for the API reference.\n */\n routing: defaultRouting,\n /**\n * Default appearance configuration for the API reference.\n */\n appearance: defaultAppearance,\n\n /**\n * Default features configuration for the API reference.\n */\n features: defaultFeatures,\n\n /**\n * Default meta configuration for the API reference.\n */\n meta: defaultMeta,\n\n /**\n * Default HTTP clients for the API reference.\n */\n httpClients: AVAILABLE_CLIENTS,\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,yBAAqD;AAG9D,SAA0B,kBAAkB,yBAAyB;AACrE,SAAwB,gBAAgB,uBAAuB;AAC/D,SAAoB,YAAY,mBAAmB;AACnD,SAAuB,eAAe,sBAAsB;AAC5D,SAAwB,gBAAgB,uBAAuB;AAOxD,MAAM,wBAAwB,KAAK;AAAA,EACxC,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,OAAO;AAAA;AAAA,IAEnB,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,UAAU;AAAA;AAAA,IAEV,SAAS;AAAA;AAAA,IAET,YAAY;AAAA;AAAA,IAEZ,UAAU;AAAA;AAAA,IAEV,MAAM;AAAA;AAAA,IAEN,aAAa,KAAK,MAAM,KAAK,MAAM,kBAAkB,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,CAAC,CAAC;AAAA,EAC7F,CAAC;AACH;AAaO,MAAM,yBAAwD;AAAA,EACnE,OAAO;AAAA,EACP,MAAM;AAAA;AAAA;AAAA;AAAA,EAKN,UAAU;AAAA;AAAA;AAAA;AAAA,EAKV,SAAS;AAAA;AAAA;AAAA;AAAA,EAIT,YAAY;AAAA;AAAA;AAAA;AAAA,EAKZ,UAAU;AAAA;AAAA;AAAA;AAAA,EAKV,MAAM;AAAA;AAAA;AAAA;AAAA,EAKN,aAAa;AACf;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type Static } from '@scalar/typebox';
|
|
2
1
|
export declare const MetaSchema: import("@scalar/typebox").TObject<{
|
|
3
2
|
title: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4
3
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -7,6 +6,13 @@ export declare const MetaSchema: import("@scalar/typebox").TObject<{
|
|
|
7
6
|
ogImage: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8
7
|
twitterCard: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
8
|
}>;
|
|
10
|
-
export type Meta =
|
|
9
|
+
export type Meta = {
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
ogTitle?: string;
|
|
13
|
+
ogDescription?: string;
|
|
14
|
+
ogImage?: string;
|
|
15
|
+
twitterCard?: string;
|
|
16
|
+
};
|
|
11
17
|
export declare const defaultMeta: Required<Meta>;
|
|
12
18
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/meta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;EAStB,CAAA;AAED,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,IAAI,CAOtC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/reference-config/meta.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const MetaSchema = Type.Partial(\n Type.Object({\n title: Type.String(),\n description: Type.String(),\n ogTitle: Type.String(),\n ogDescription: Type.String(),\n ogImage: Type.String(),\n twitterCard: Type.String(),\n }),\n)\n\nexport type Meta = {\n title?: string\n description?: string\n ogTitle?: string\n ogDescription?: string\n ogImage?: string\n twitterCard?: string\n}\n\nexport const defaultMeta: Required<Meta> = {\n title: 'Scalar API Reference',\n description: 'Scalar API Reference',\n ogTitle: 'Scalar API Reference',\n ogDescription: 'Scalar API Reference',\n ogImage: 'https://scalar.com/images/scalar-logo.png',\n twitterCard: 'summary_large_image',\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,aAAa,KAAK;AAAA,EAC7B,KAAK,OAAO;AAAA,IACV,OAAO,KAAK,OAAO;AAAA,IACnB,aAAa,KAAK,OAAO;AAAA,IACzB,SAAS,KAAK,OAAO;AAAA,IACrB,eAAe,KAAK,OAAO;AAAA,IAC3B,SAAS,KAAK,OAAO;AAAA,IACrB,aAAa,KAAK,OAAO;AAAA,EAC3B,CAAC;AACH;AAWO,MAAM,cAA8B;AAAA,EACzC,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,EACT,eAAe;AAAA,EACf,SAAS;AAAA,EACT,aAAa;AACf;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { type Static } from '@scalar/typebox';
|
|
2
1
|
export declare const RoutingSchema: import("@scalar/typebox").TObject<{
|
|
3
2
|
basePath: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4
3
|
pathNotFound: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
5
4
|
}>;
|
|
6
|
-
export type Routing =
|
|
5
|
+
export type Routing = {
|
|
6
|
+
basePath?: string;
|
|
7
|
+
pathNotFound?: string;
|
|
8
|
+
};
|
|
7
9
|
export declare const defaultRouting: Required<Routing>;
|
|
8
10
|
//# sourceMappingURL=routing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/routing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/routing.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;EAKzB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,OAAO,CAG5C,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/reference-config/routing.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const RoutingSchema = Type.Partial(\n Type.Object({\n basePath: Type.String(),\n pathNotFound: Type.String(),\n }),\n)\n\nexport type Routing = {\n basePath?: string\n pathNotFound?: string\n}\n\nexport const defaultRouting: Required<Routing> = {\n basePath: '/',\n pathNotFound: '/',\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,gBAAgB,KAAK;AAAA,EAChC,KAAK,OAAO;AAAA,IACV,UAAU,KAAK,OAAO;AAAA,IACtB,cAAc,KAAK,OAAO;AAAA,EAC5B,CAAC;AACH;AAOO,MAAM,iBAAoC;AAAA,EAC/C,UAAU;AAAA,EACV,cAAc;AAChB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import type { RequiredDeep } from 'type-fest/source/required-deep';
|
|
2
|
+
import type { ServerObject } from '../../schemas/v3.1/strict/server.js';
|
|
3
3
|
export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
4
4
|
proxyUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
5
5
|
searchKey: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -267,23 +267,6 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
267
267
|
'$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
|
|
268
268
|
}>]>]>>>;
|
|
269
269
|
}>, import("@scalar/typebox").TObject<{
|
|
270
|
-
'x-scalar-client-config-request-example': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
271
|
-
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
272
|
-
body: import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
273
|
-
encoding: import("@scalar/typebox").TLiteral<typeof import("../v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js").exampleBodyMime[number]>;
|
|
274
|
-
content: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TAny>, import("@scalar/typebox").TString]>;
|
|
275
|
-
file: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
276
|
-
url: import("@scalar/typebox").TString;
|
|
277
|
-
base64: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
278
|
-
}>, import("@scalar/typebox").TNull]>>;
|
|
279
|
-
}>>;
|
|
280
|
-
parameters: import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
281
|
-
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
282
|
-
query: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
283
|
-
header: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
284
|
-
cookie: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
285
|
-
}>>;
|
|
286
|
-
}>>>;
|
|
287
270
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
288
271
|
}>, import("@scalar/typebox").TObject<{
|
|
289
272
|
'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
@@ -486,7 +469,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
486
469
|
'x-tags': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
487
470
|
}>]>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
488
471
|
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"number">, import("@scalar/typebox").TLiteral<"integer">]>;
|
|
489
|
-
format: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
472
|
+
format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
490
473
|
multipleOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
491
474
|
maximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
492
475
|
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TBoolean, import("@scalar/typebox").TNumber]>>;
|
|
@@ -969,17 +952,17 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
969
952
|
variables: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"ServerVariableObject">>>;
|
|
970
953
|
}>;
|
|
971
954
|
ExternalDocumentationObject: import("@scalar/typebox").TObject<{
|
|
972
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
973
955
|
url: import("@scalar/typebox").TString;
|
|
956
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
974
957
|
}>;
|
|
975
958
|
InfoObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
976
959
|
title: import("@scalar/typebox").TString;
|
|
960
|
+
version: import("@scalar/typebox").TString;
|
|
977
961
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
978
962
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
979
963
|
termsOfService: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
980
964
|
contact: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ContactObject">>;
|
|
981
965
|
license: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"LicenseObject">>;
|
|
982
|
-
version: import("@scalar/typebox").TString;
|
|
983
966
|
}>, import("@scalar/typebox").TObject<{
|
|
984
967
|
'x-scalar-sdk-installation': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
985
968
|
lang: import("@scalar/typebox").TString;
|
|
@@ -1031,7 +1014,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1031
1014
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1032
1015
|
'$ref-value': import("@scalar/typebox").TRef<"ResponseObject">;
|
|
1033
1016
|
}>]>]>>;
|
|
1034
|
-
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1017
|
+
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1035
1018
|
name: import("@scalar/typebox").TString;
|
|
1036
1019
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
1037
1020
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1039,6 +1022,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1039
1022
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1040
1023
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1041
1024
|
}>, import("@scalar/typebox").TObject<{
|
|
1025
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1026
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1042
1027
|
style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1043
1028
|
explode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1044
1029
|
schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -1062,7 +1047,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1062
1047
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1063
1048
|
'$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
|
|
1064
1049
|
}>]>]>>>;
|
|
1065
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1050
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1066
1051
|
name: import("@scalar/typebox").TString;
|
|
1067
1052
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
1068
1053
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1070,14 +1055,18 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1070
1055
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1071
1056
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1072
1057
|
}>, import("@scalar/typebox").TObject<{
|
|
1058
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1059
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1073
1060
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
1074
1061
|
}>]>]>;
|
|
1075
|
-
ExampleObject: import("@scalar/typebox").TObject<{
|
|
1062
|
+
ExampleObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1076
1063
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1077
1064
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1078
1065
|
value: import("@scalar/typebox").TOptional<import("@scalar/typebox").TAny>;
|
|
1079
1066
|
externalValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1080
|
-
}
|
|
1067
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1068
|
+
'x-disabled': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1069
|
+
}>]>;
|
|
1081
1070
|
RequestBodyObject: import("@scalar/typebox").TObject<{
|
|
1082
1071
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1083
1072
|
content: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>;
|
|
@@ -1240,10 +1229,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1240
1229
|
security: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
1241
1230
|
tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TagObject">>>;
|
|
1242
1231
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
1243
|
-
}>, import("@scalar/typebox").TObject<{
|
|
1244
|
-
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1245
|
-
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
1246
|
-
}>, import("@scalar/typebox").TRef<"TagObject">]>>>;
|
|
1232
|
+
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1247
1233
|
'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1248
1234
|
'x-scalar-client-config-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1249
1235
|
'x-scalar-client-config-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
@@ -1263,7 +1249,12 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1263
1249
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1264
1250
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
1265
1251
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1266
|
-
}
|
|
1252
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1253
|
+
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
1254
|
+
name: import("@scalar/typebox").TString;
|
|
1255
|
+
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
1256
|
+
}>>>;
|
|
1257
|
+
}>]>]>;
|
|
1267
1258
|
TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1268
1259
|
id: import("@scalar/typebox").TString;
|
|
1269
1260
|
title: import("@scalar/typebox").TString;
|
|
@@ -1280,6 +1271,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1280
1271
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1281
1272
|
path: import("@scalar/typebox").TString;
|
|
1282
1273
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1274
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1283
1275
|
}>]>;
|
|
1284
1276
|
TraversedSchemaObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1285
1277
|
id: import("@scalar/typebox").TString;
|
|
@@ -1311,7 +1303,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1311
1303
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1312
1304
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
1313
1305
|
}>]>;
|
|
1314
|
-
TraversedEntryObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").
|
|
1306
|
+
TraversedEntryObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1315
1307
|
id: import("@scalar/typebox").TString;
|
|
1316
1308
|
title: import("@scalar/typebox").TString;
|
|
1317
1309
|
}>, import("@scalar/typebox").TObject<{
|
|
@@ -1326,6 +1318,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1326
1318
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1327
1319
|
path: import("@scalar/typebox").TString;
|
|
1328
1320
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1321
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1329
1322
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1330
1323
|
id: import("@scalar/typebox").TString;
|
|
1331
1324
|
title: import("@scalar/typebox").TString;
|
|
@@ -1336,16 +1329,38 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1336
1329
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1337
1330
|
id: import("@scalar/typebox").TString;
|
|
1338
1331
|
title: import("@scalar/typebox").TString;
|
|
1332
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1333
|
+
type: import("@scalar/typebox").TLiteral<"tag">;
|
|
1334
|
+
name: import("@scalar/typebox").TString;
|
|
1335
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1336
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1337
|
+
isGroup: import("@scalar/typebox").TBoolean;
|
|
1338
|
+
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1339
|
+
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
1340
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1341
|
+
id: import("@scalar/typebox").TString;
|
|
1342
|
+
title: import("@scalar/typebox").TString;
|
|
1339
1343
|
}>, import("@scalar/typebox").TObject<{
|
|
1340
1344
|
type: import("@scalar/typebox").TLiteral<"webhook">;
|
|
1341
1345
|
ref: import("@scalar/typebox").TString;
|
|
1342
1346
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1343
1347
|
name: import("@scalar/typebox").TString;
|
|
1344
1348
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1349
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1350
|
+
id: import("@scalar/typebox").TString;
|
|
1351
|
+
title: import("@scalar/typebox").TString;
|
|
1352
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1353
|
+
type: import("@scalar/typebox").TLiteral<"example">;
|
|
1354
|
+
name: import("@scalar/typebox").TString;
|
|
1345
1355
|
}>]>]>;
|
|
1346
1356
|
}, "ServerObject">>>;
|
|
1347
1357
|
baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1348
1358
|
}>;
|
|
1349
|
-
export type Settings =
|
|
1359
|
+
export type Settings = {
|
|
1360
|
+
proxyUrl?: string;
|
|
1361
|
+
searchKey?: string;
|
|
1362
|
+
servers?: ServerObject[];
|
|
1363
|
+
baseServerUrl?: string;
|
|
1364
|
+
};
|
|
1350
1365
|
export declare const defaultSettings: RequiredDeep<Settings>;
|
|
1351
1366
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,QAAQ,CAKlD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/reference-config/settings.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { RequiredDeep } from 'type-fest/source/required-deep'\n\nimport { ServerObjectSchema } from '@/schemas/v3.1/strict/openapi-document'\nimport type { ServerObject } from '@/schemas/v3.1/strict/server'\n\nexport const SettingsSchema = Type.Partial(\n Type.Object({\n proxyUrl: Type.String(),\n searchKey: Type.String(),\n /** Array of server configurations */\n servers: Type.Array(ServerObjectSchema),\n /** Base server URL for API requests */\n baseServerUrl: Type.String(),\n }),\n)\n\nexport type Settings = {\n proxyUrl?: string\n searchKey?: string\n servers?: ServerObject[]\n baseServerUrl?: string\n}\n\nexport const defaultSettings: RequiredDeep<Settings> = {\n proxyUrl: 'https://proxy.scalar.com',\n searchKey: 'k',\n servers: [],\n baseServerUrl: '',\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,0BAA0B;AAG5B,MAAM,iBAAiB,KAAK;AAAA,EACjC,KAAK,OAAO;AAAA,IACV,UAAU,KAAK,OAAO;AAAA,IACtB,WAAW,KAAK,OAAO;AAAA;AAAA,IAEvB,SAAS,KAAK,MAAM,kBAAkB;AAAA;AAAA,IAEtC,eAAe,KAAK,OAAO;AAAA,EAC7B,CAAC;AACH;AASO,MAAM,kBAA0C;AAAA,EACrD,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS,CAAC;AAAA,EACV,eAAe;AACjB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { PathItemObject } from './path-item.js';
|
|
2
|
+
import { type ReferenceType } from './reference.js';
|
|
1
3
|
export declare const CallbackObjectSchemaDefinition: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
2
4
|
$ref: import("@scalar/typebox").TString;
|
|
3
5
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -8,4 +10,6 @@ export declare const CallbackObjectSchemaDefinition: import("@scalar/typebox").T
|
|
|
8
10
|
}>]>, import("@scalar/typebox").TObject<{
|
|
9
11
|
'$ref-value': import("@scalar/typebox").TRef<"PathItemObject">;
|
|
10
12
|
}>]>]>>;
|
|
13
|
+
/** A Path Item Object used to define a callback request and expected responses. A complete example is available. */
|
|
14
|
+
export type CallbackObject = Record<string, ReferenceType<PathItemObject>>;
|
|
11
15
|
//# sourceMappingURL=callback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/callback.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/callback.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,8BAA8B;;;;;;;;;OAI1C,CAAA;AAED,oHAAoH;AACpH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
|
-
import { PathItemObjectRef } from "
|
|
3
|
-
import { reference } from "
|
|
2
|
+
import { PathItemObjectRef } from "./ref-definitions.js";
|
|
3
|
+
import { reference } from "./reference.js";
|
|
4
4
|
const CallbackObjectSchemaDefinition = Type.Record(
|
|
5
5
|
Type.String(),
|
|
6
6
|
/** A Path Item Object used to define a callback request and expected responses. A complete example is available. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/callback.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { PathItemObjectRef } from '
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport type { PathItemObject } from './path-item'\nimport { PathItemObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\n\nexport const CallbackObjectSchemaDefinition = Type.Record(\n Type.String(),\n /** A Path Item Object used to define a callback request and expected responses. A complete example is available. */\n Type.Union([PathItemObjectRef, reference(PathItemObjectRef)]),\n)\n\n/** A Path Item Object used to define a callback request and expected responses. A complete example is available. */\nexport type CallbackObject = Record<string, ReferenceType<PathItemObject>>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,yBAAyB;AAClC,SAA6B,iBAAiB;AAEvC,MAAM,iCAAiC,KAAK;AAAA,EACjD,KAAK,OAAO;AAAA;AAAA,EAEZ,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC;AAC9D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts
CHANGED
|
@@ -1,16 +1,32 @@
|
|
|
1
|
-
import { type Static } from '@scalar/typebox';
|
|
2
1
|
export declare const xScalarClientConfigCookieSchema: import("@scalar/typebox").TObject<{
|
|
3
2
|
name: import("@scalar/typebox").TString;
|
|
4
3
|
value: import("@scalar/typebox").TString;
|
|
5
4
|
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6
5
|
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
7
6
|
}>;
|
|
8
|
-
export type XScalarClientConfigCookie =
|
|
7
|
+
export type XScalarClientConfigCookie = {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the cookie name and its value. A cookie definition begins with a name-value pair.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the cookie value.
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the host to which the cookie will be sent.
|
|
18
|
+
*/
|
|
19
|
+
domain?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates the path that must exist in the requested URL for the browser to send the Cookie header.
|
|
22
|
+
*/
|
|
23
|
+
path?: string;
|
|
24
|
+
};
|
|
9
25
|
export declare const xScalarClientConfigCookiesSchema: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
10
26
|
name: import("@scalar/typebox").TString;
|
|
11
27
|
value: import("@scalar/typebox").TString;
|
|
12
28
|
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
13
29
|
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
30
|
}>>;
|
|
15
|
-
export type XScalarClientConfigCookies =
|
|
31
|
+
export type XScalarClientConfigCookies = Record<string, XScalarClientConfigCookie>;
|
|
16
32
|
//# sourceMappingURL=x-scalar-client-config-cookies.d.ts.map
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-client-config-cookies.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-client-config-cookies.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;EAK1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;GAA8D,CAAA;AAC3G,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAA"}
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const xScalarClientConfigCookieSchema = Type.Object({\n name: Type.String(),\n value: Type.String(),\n domain: Type.Optional(Type.String()),\n path: Type.Optional(Type.String()),\n})\n\nexport type XScalarClientConfigCookie = {\n /**\n * Defines the cookie name and its value. A cookie definition begins with a name-value pair.\n */\n name: string\n /**\n * Defines the cookie value.\n */\n value: string\n /**\n * Defines the host to which the cookie will be sent.\n */\n domain?: string\n /**\n * Indicates the path that must exist in the requested URL for the browser to send the Cookie header.\n */\n path?: string\n}\n\nexport const xScalarClientConfigCookiesSchema = Type.Record(Type.String(), xScalarClientConfigCookieSchema)\nexport type XScalarClientConfigCookies = Record<string, XScalarClientConfigCookie>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,kCAAkC,KAAK,OAAO;AAAA,EACzD,MAAM,KAAK,OAAO;AAAA,EAClB,OAAO,KAAK,OAAO;AAAA,EACnB,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACnC,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AACnC,CAAC;AAqBM,MAAM,mCAAmC,KAAK,OAAO,KAAK,OAAO,GAAG,+BAA+B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { type Static } from '@scalar/typebox';
|
|
2
1
|
export declare const xScalarClientConfigEnvVarSchema: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
3
2
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4
3
|
default: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
5
4
|
}>, import("@scalar/typebox").TString]>;
|
|
6
|
-
export type xScalarClientConfigEnvVar =
|
|
5
|
+
export type xScalarClientConfigEnvVar = {
|
|
6
|
+
description?: string;
|
|
7
|
+
default?: string;
|
|
8
|
+
} | string;
|
|
7
9
|
export declare const xScalarClientConfigEnvironmentSchema: import("@scalar/typebox").TObject<{
|
|
8
10
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
11
|
color: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -13,7 +15,11 @@ export declare const xScalarClientConfigEnvironmentSchema: import("@scalar/typeb
|
|
|
13
15
|
default: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
16
|
}>, import("@scalar/typebox").TString]>>;
|
|
15
17
|
}>;
|
|
16
|
-
export type xScalarClientConfigEnvironment =
|
|
18
|
+
export type xScalarClientConfigEnvironment = {
|
|
19
|
+
description?: string;
|
|
20
|
+
color?: string;
|
|
21
|
+
variables: Record<string, xScalarClientConfigEnvVar>;
|
|
22
|
+
};
|
|
17
23
|
export declare const xScalarClientConfigEnvironmentsSchema: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
18
24
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
19
25
|
color: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -23,5 +29,5 @@ export declare const xScalarClientConfigEnvironmentsSchema: import("@scalar/type
|
|
|
23
29
|
default: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
24
30
|
}>, import("@scalar/typebox").TString]>>;
|
|
25
31
|
}>>;
|
|
26
|
-
export type XScalarClientConfigEnvironments =
|
|
32
|
+
export type XScalarClientConfigEnvironments = Record<string, xScalarClientConfigEnvironment>;
|
|
27
33
|
//# sourceMappingURL=x-scalar-client-config-environments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-client-config-environments.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-scalar-client-config-environments.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;uCAQ1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GACjC;IACE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GACD,MAAM,CAAA;AAEV,eAAO,MAAM,oCAAoC;;;IAG/C,iCAAiC;;;;;EAEjC,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAA;CACrD,CAAA;AAED,eAAO,MAAM,qCAAqC;;;IAVhD,iCAAiC;;;;;GAUkF,CAAA;AAErH,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAA"}
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const xScalarClientConfigEnvVarSchema = Type.Union([\n Type.Partial(\n Type.Object({\n description: Type.String(),\n default: Type.String(),\n }),\n ),\n Type.String(),\n])\n\nexport type xScalarClientConfigEnvVar =\n | {\n description?: string\n default?: string\n }\n | string\n\nexport const xScalarClientConfigEnvironmentSchema = Type.Object({\n description: Type.Optional(Type.String()),\n color: Type.Optional(Type.String()),\n /** A map of variables by name */\n variables: Type.Record(Type.String(), xScalarClientConfigEnvVarSchema),\n})\n\nexport type xScalarClientConfigEnvironment = {\n description?: string\n color?: string\n variables: Record<string, xScalarClientConfigEnvVar>\n}\n\nexport const xScalarClientConfigEnvironmentsSchema = Type.Record(Type.String(), xScalarClientConfigEnvironmentSchema)\n\nexport type XScalarClientConfigEnvironments = Record<string, xScalarClientConfigEnvironment>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,kCAAkC,KAAK,MAAM;AAAA,EACxD,KAAK;AAAA,IACH,KAAK,OAAO;AAAA,MACV,aAAa,KAAK,OAAO;AAAA,MACzB,SAAS,KAAK,OAAO;AAAA,IACvB,CAAC;AAAA,EACH;AAAA,EACA,KAAK,OAAO;AACd,CAAC;AASM,MAAM,uCAAuC,KAAK,OAAO;AAAA,EAC9D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACxC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAElC,WAAW,KAAK,OAAO,KAAK,OAAO,GAAG,+BAA+B;AACvE,CAAC;AAQM,MAAM,wCAAwC,KAAK,OAAO,KAAK,OAAO,GAAG,oCAAoC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
import type { CallbackObject } from './callback.js';
|
|
2
|
+
import type { ExampleObject } from './example.js';
|
|
3
|
+
import type { HeaderObject } from './header.js';
|
|
4
|
+
import type { LinkObject } from './link.js';
|
|
5
|
+
import type { ParameterObject } from './parameter.js';
|
|
6
|
+
import type { PathItemObject } from './path-item.js';
|
|
7
|
+
import { type ReferenceType } from './reference.js';
|
|
8
|
+
import type { RequestBodyObject } from './request-body.js';
|
|
9
|
+
import type { ResponsesObject } from './responses.js';
|
|
10
|
+
import type { SchemaObject } from './schema.js';
|
|
11
|
+
import type { SecuritySchemeObject } from './security-scheme.js';
|
|
1
12
|
/** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */
|
|
2
13
|
export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
3
14
|
/** An object to hold reusable Schema Objects. */
|
|
@@ -102,4 +113,27 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
|
|
|
102
113
|
/** An object to hold reusable Path Item Objects. */
|
|
103
114
|
pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
|
|
104
115
|
}>;
|
|
116
|
+
/** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */
|
|
117
|
+
export type ComponentsObject = {
|
|
118
|
+
/** An object to hold reusable Schema Objects. */
|
|
119
|
+
schemas?: Record<string, ReferenceType<SchemaObject>>;
|
|
120
|
+
/** An object to hold reusable Response Objects. */
|
|
121
|
+
responses?: ResponsesObject;
|
|
122
|
+
/** An object to hold reusable Parameter Objects. */
|
|
123
|
+
parameters?: Record<string, ReferenceType<ParameterObject>>;
|
|
124
|
+
/** An object to hold reusable Example Objects. */
|
|
125
|
+
examples?: Record<string, ReferenceType<ExampleObject>>;
|
|
126
|
+
/** An object to hold reusable Request Body Objects. */
|
|
127
|
+
requestBodies?: Record<string, ReferenceType<RequestBodyObject>>;
|
|
128
|
+
/** An object to hold reusable Header Objects. */
|
|
129
|
+
headers?: Record<string, ReferenceType<HeaderObject>>;
|
|
130
|
+
/** An object to hold reusable Security Scheme Objects. */
|
|
131
|
+
securitySchemes?: Record<string, ReferenceType<SecuritySchemeObject>>;
|
|
132
|
+
/** An object to hold reusable Link Objects. */
|
|
133
|
+
links?: Record<string, ReferenceType<LinkObject>>;
|
|
134
|
+
/** An object to hold reusable Callback Objects. */
|
|
135
|
+
callbacks?: Record<string, ReferenceType<CallbackObject>>;
|
|
136
|
+
/** An object to hold reusable Path Item Objects. */
|
|
137
|
+
pathItems?: Record<string, PathItemObject>;
|
|
138
|
+
};
|
|
105
139
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAajD,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,kOAAkO;AAClO,eAAO,MAAM,gCAAgC;IAC3C,iDAAiD;;;;;;;;;;;IAEjD,mDAAmD;;;;;;;;;;;IAEnD,oDAAoD;;;;;;;;;;;IAIpD,kDAAkD;;;;;;;;;;;IAElD,uDAAuD;;;;;;;;;;;IAIvD,iDAAiD;;;;;;;;;;;IAEjD,0DAA0D;;;;;;;;;;;IAI1D,+CAA+C;;;;;;;;;;;IAE/C,mDAAmD;;;;;;;;;;;IAEnD,oDAAoD;;EAEpD,CAAA;AAEF,kOAAkO;AAClO,MAAM,MAAM,gBAAgB,GAAG;IAC7B,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,CAAA;IACrD,mDAAmD;IACnD,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,CAAA;IAC3D,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;IACvD,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAChE,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,CAAA;IACrD,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAA;IACrE,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC,CAAA;IACzD,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CAC3C,CAAA"}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ResponseObjectRef,
|
|
11
11
|
SchemaObjectRef,
|
|
12
12
|
SecuritySchemeObjectRef
|
|
13
|
-
} from "
|
|
13
|
+
} from "./ref-definitions.js";
|
|
14
14
|
import { reference } from "./reference.js";
|
|
15
15
|
const ComponentsObjectSchemaDefinition = Type.Object({
|
|
16
16
|
/** An object to hold reusable Schema Objects. */
|