@scalar/workspace-store 0.14.2 → 0.15.1
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 +38 -0
- package/dist/client.d.ts +24 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +58 -52
- package/dist/client.js.map +2 -2
- package/dist/events/definitions.d.ts +155 -0
- package/dist/events/definitions.d.ts.map +1 -0
- package/dist/events/definitions.js +13 -0
- package/dist/events/definitions.js.map +7 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +7 -0
- package/dist/events/index.js.map +7 -0
- package/dist/events/listeners.d.ts +8 -0
- package/dist/events/listeners.d.ts.map +1 -0
- package/dist/events/listeners.js +23 -0
- package/dist/events/listeners.js.map +7 -0
- package/dist/helpers/apply-selective-updates.d.ts +1 -1
- package/dist/helpers/apply-selective-updates.d.ts.map +1 -1
- package/dist/helpers/apply-selective-updates.js +1 -1
- package/dist/helpers/apply-selective-updates.js.map +2 -2
- package/dist/helpers/deep-clone.d.ts.map +1 -1
- package/dist/helpers/general.d.ts.map +1 -1
- package/dist/helpers/get-resolved-ref.d.ts.map +1 -1
- package/dist/helpers/merge-object.d.ts.map +1 -1
- package/dist/helpers/merge-object.js.map +2 -2
- package/dist/helpers/overrides-proxy.d.ts.map +1 -1
- package/dist/helpers/overrides-proxy.js.map +2 -2
- package/dist/mutators/cookie.d.ts.map +1 -1
- package/dist/mutators/environment.d.ts +1 -1
- package/dist/mutators/environment.d.ts.map +1 -1
- package/dist/mutators/environment.js.map +1 -1
- package/dist/mutators/helpers.d.ts.map +1 -1
- package/dist/mutators/index.d.ts +9 -9
- package/dist/mutators/request-example.d.ts.map +1 -1
- package/dist/mutators/request.d.ts +1 -1
- package/dist/mutators/request.d.ts.map +1 -1
- package/dist/mutators/request.js.map +2 -2
- package/dist/mutators/security-schemes.d.ts +1 -2
- package/dist/mutators/security-schemes.d.ts.map +1 -1
- package/dist/mutators/security-schemes.js.map +2 -2
- package/dist/mutators/server.d.ts +2 -2
- package/dist/mutators/server.d.ts.map +1 -1
- package/dist/mutators/server.js +4 -2
- package/dist/mutators/server.js.map +2 -2
- package/dist/navigation/helpers/get-tag.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.d.ts +3 -1
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.d.ts +30 -30
- 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-paths.d.ts +5 -1
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +3 -3
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts +5 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js +1 -1
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +6 -2
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +6 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +2 -2
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/helpers/utils.d.ts.map +1 -1
- package/dist/navigation/helpers/utils.js.map +2 -2
- package/dist/navigation/index.d.ts +1 -1
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js.map +2 -2
- package/dist/navigation/types.d.ts +1 -2
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/plugins.d.ts +5 -37
- package/dist/plugins.d.ts.map +1 -1
- package/dist/plugins.js +0 -21
- package/dist/plugins.js.map +2 -2
- package/dist/preprocessing/server.d.ts +23 -0
- package/dist/preprocessing/server.d.ts.map +1 -0
- package/dist/preprocessing/server.js +84 -0
- package/dist/preprocessing/server.js.map +7 -0
- package/dist/schemas/compose.d.ts +1 -1
- package/dist/schemas/compose.d.ts.map +1 -1
- package/dist/schemas/compose.js +1 -1
- package/dist/schemas/compose.js.map +2 -2
- package/dist/schemas/extensions/document/x-internal.d.ts +2 -2
- package/dist/schemas/extensions/document/x-internal.js +1 -1
- package/dist/schemas/extensions/document/x-internal.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts +2 -2
- package/dist/schemas/extensions/document/x-scalar-icon.js +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +2 -2
- package/dist/schemas/extensions/document/x-scalar-ignore.js +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 +7 -5
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +2 -2
- package/dist/schemas/extensions/document/x-tags.d.ts +4 -0
- package/dist/schemas/extensions/document/x-tags.d.ts.map +1 -0
- package/dist/schemas/extensions/document/x-tags.js +8 -0
- package/dist/schemas/extensions/document/x-tags.js.map +7 -0
- package/dist/schemas/extensions/operation/x-badge.d.ts +10 -10
- package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-badge.js +1 -1
- package/dist/schemas/extensions/operation/x-badge.js.map +2 -2
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +17 -17
- package/dist/schemas/extensions/operation/x-code-samples.js +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.d.ts +2 -2
- package/dist/schemas/extensions/operation/x-post-response.js +1 -1
- package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +2 -2
- package/dist/schemas/extensions/operation/x-scalar-stability.js +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.js.map +1 -1
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +2 -2
- package/dist/schemas/extensions/schema/x-additional-properties-name.js +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 +2 -2
- package/dist/schemas/extensions/schema/x-enum-descriptions.js +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +1 -1
- package/dist/schemas/extensions/schema/x-variable.d.ts +2 -2
- package/dist/schemas/extensions/schema/x-variable.js +1 -1
- package/dist/schemas/extensions/schema/x-variable.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +2 -2
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js +1 -1
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +2 -2
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +1 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-body.js +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-query.js +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +5 -5
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +1 -1
- package/dist/schemas/extensions/security/x-tokenName.d.ts +2 -2
- package/dist/schemas/extensions/security/x-tokenName.js +1 -1
- package/dist/schemas/extensions/security/x-tokenName.js.map +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +2 -2
- package/dist/schemas/extensions/security/x-use-pkce.js +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.js.map +1 -1
- package/dist/schemas/extensions/tag/x-display-name.d.ts +2 -2
- package/dist/schemas/extensions/tag/x-display-name.js +1 -1
- package/dist/schemas/extensions/tag/x-display-name.js.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +7 -7
- package/dist/schemas/extensions/tag/x-tag-groups.js +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +1 -1
- package/dist/schemas/inmemory-workspace.d.ts +2470 -190
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +2 -3
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/navigation.d.ts +140 -134
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +13 -9
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/appearance.d.ts +9 -9
- package/dist/schemas/reference-config/appearance.d.ts.map +1 -1
- package/dist/schemas/reference-config/appearance.js +1 -1
- package/dist/schemas/reference-config/appearance.js.map +2 -2
- package/dist/schemas/reference-config/features.d.ts +11 -11
- package/dist/schemas/reference-config/features.d.ts.map +1 -1
- package/dist/schemas/reference-config/features.js +1 -1
- package/dist/schemas/reference-config/features.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +1247 -46
- 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 -8
- package/dist/schemas/reference-config/meta.d.ts.map +1 -1
- package/dist/schemas/reference-config/meta.js +1 -1
- package/dist/schemas/reference-config/meta.js.map +2 -2
- package/dist/schemas/reference-config/routing.d.ts +4 -4
- package/dist/schemas/reference-config/routing.d.ts.map +1 -1
- package/dist/schemas/reference-config/routing.js +1 -1
- package/dist/schemas/reference-config/routing.js.map +2 -2
- package/dist/schemas/reference-config/settings.d.ts +1215 -14
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js +2 -2
- package/dist/schemas/reference-config/settings.js.map +2 -2
- package/dist/schemas/typebox-coerce.d.ts +1 -1
- package/dist/schemas/typebox-coerce.d.ts.map +1 -1
- package/dist/schemas/typebox-coerce.js +2 -2
- package/dist/schemas/typebox-coerce.js.map +2 -2
- package/dist/schemas/v3.1/strict/callback.d.ts +1 -2
- package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/callback.js +5 -4
- 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 +11 -11
- 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 +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 +19 -19
- 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 +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/client-config-extensions/x-scalar-client-config-request-example.d.ts +27 -27
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +2 -2
- package/dist/schemas/v3.1/strict/components.d.ts +22 -42
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +24 -29
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.d.ts +4 -6
- package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/contact.js +3 -3
- package/dist/schemas/v3.1/strict/contact.js.map +2 -2
- package/dist/schemas/v3.1/strict/discriminator.d.ts +3 -5
- package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js +3 -3
- package/dist/schemas/v3.1/strict/discriminator.js.map +2 -2
- package/dist/schemas/v3.1/strict/encoding.d.ts +10 -4
- package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +5 -4
- package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
- package/dist/schemas/v3.1/strict/example.d.ts +5 -7
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +3 -3
- package/dist/schemas/v3.1/strict/example.js.map +2 -2
- package/dist/schemas/v3.1/strict/external-documentation.d.ts +3 -5
- 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 +39 -347
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +8 -11
- package/dist/schemas/v3.1/strict/header.js.map +2 -2
- package/dist/schemas/v3.1/strict/info.d.ts +13 -23
- package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +7 -8
- package/dist/schemas/v3.1/strict/info.js.map +2 -2
- package/dist/schemas/v3.1/strict/license.d.ts +4 -6
- package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/license.js +3 -3
- package/dist/schemas/v3.1/strict/license.js.map +2 -2
- package/dist/schemas/v3.1/strict/link.d.ts +7 -17
- package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/link.js +5 -5
- package/dist/schemas/v3.1/strict/link.js.map +2 -2
- package/dist/schemas/v3.1/strict/media-type.d.ts +10 -164
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +7 -10
- package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +59 -60
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +3 -3
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +30 -32
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js +6 -6
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +33908 -112
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +139 -24
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +52 -4946
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +22 -19
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +51 -1397
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +10 -11
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +15 -1412
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +15 -16
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/paths.d.ts +1 -4
- package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.js +5 -5
- package/dist/schemas/v3.1/strict/paths.js.map +2 -2
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts +63 -0
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/ref-definitions.js +88 -0
- package/dist/schemas/v3.1/strict/ref-definitions.js.map +7 -0
- package/dist/schemas/v3.1/strict/reference.d.ts +8 -8
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/reference.js +1 -1
- package/dist/schemas/v3.1/strict/reference.js.map +2 -2
- package/dist/schemas/v3.1/strict/request-body.d.ts +4 -520
- package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.js +5 -5
- package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
- package/dist/schemas/v3.1/strict/response.d.ts +5 -1231
- package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/response.js +7 -8
- package/dist/schemas/v3.1/strict/response.js.map +2 -2
- package/dist/schemas/v3.1/strict/responses.d.ts +1 -2461
- package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/responses.js +5 -5
- package/dist/schemas/v3.1/strict/responses.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +337 -192
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +215 -207
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-requirement.d.ts +1 -3
- package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js +3 -3
- package/dist/schemas/v3.1/strict/security-requirement.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +60 -130
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +5 -5
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/v3.1/strict/server-variable.d.ts +4 -6
- package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js +3 -3
- package/dist/schemas/v3.1/strict/server-variable.js.map +2 -2
- package/dist/schemas/v3.1/strict/server.d.ts +4 -10
- package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +5 -5
- package/dist/schemas/v3.1/strict/server.js.map +2 -2
- package/dist/schemas/v3.1/strict/tag.d.ts +10 -15
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +6 -6
- package/dist/schemas/v3.1/strict/tag.js.map +2 -2
- package/dist/schemas/v3.1/strict/xml.d.ts +6 -8
- package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js +3 -3
- package/dist/schemas/v3.1/strict/xml.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +1248 -47
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/config.js +1 -1
- package/dist/schemas/workspace-specification/config.js.map +2 -2
- package/dist/schemas/workspace-specification/index.d.ts +1260 -224
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.js +2 -3
- package/dist/schemas/workspace-specification/index.js.map +2 -2
- package/dist/schemas/workspace-specification/info.d.ts +3 -3
- package/dist/schemas/workspace-specification/info.js +1 -1
- package/dist/schemas/workspace-specification/info.js.map +1 -1
- package/dist/schemas/workspace.d.ts +8520 -199
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +6 -8
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -4
- package/dist/schemas.js.map +2 -2
- package/dist/server.d.ts +2 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +7 -5
- package/dist/server.js.map +2 -2
- package/package.json +12 -6
- package/dist/schemas/typebox-types.d.ts +0 -14
- package/dist/schemas/typebox-types.d.ts.map +0 -1
- package/dist/schemas/typebox-types.js +0 -19
- package/dist/schemas/typebox-types.js.map +0 -7
- package/dist/schemas/v3.1/loose/callback.d.ts +0 -10
- package/dist/schemas/v3.1/loose/callback.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/callback.js +0 -11
- package/dist/schemas/v3.1/loose/callback.js.map +0 -7
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts +0 -16
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js +0 -13
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js.map +0 -7
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts +0 -27
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js +0 -23
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js.map +0 -7
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts +0 -38
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js +0 -45
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js.map +0 -7
- package/dist/schemas/v3.1/loose/components.d.ts +0 -43
- package/dist/schemas/v3.1/loose/components.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/components.js +0 -41
- package/dist/schemas/v3.1/loose/components.js.map +0 -7
- package/dist/schemas/v3.1/loose/contact.d.ts +0 -10
- package/dist/schemas/v3.1/loose/contact.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/contact.js +0 -13
- package/dist/schemas/v3.1/loose/contact.js.map +0 -7
- package/dist/schemas/v3.1/loose/discriminator.d.ts +0 -12
- package/dist/schemas/v3.1/loose/discriminator.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/discriminator.js +0 -11
- package/dist/schemas/v3.1/loose/discriminator.js.map +0 -7
- package/dist/schemas/v3.1/loose/encoding.d.ts +0 -15
- package/dist/schemas/v3.1/loose/encoding.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/encoding.js +0 -12
- package/dist/schemas/v3.1/loose/encoding.js.map +0 -7
- package/dist/schemas/v3.1/loose/example.d.ts +0 -16
- package/dist/schemas/v3.1/loose/example.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/example.js +0 -15
- package/dist/schemas/v3.1/loose/example.js.map +0 -7
- package/dist/schemas/v3.1/loose/external-documentation.d.ts +0 -8
- package/dist/schemas/v3.1/loose/external-documentation.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/external-documentation.js +0 -11
- package/dist/schemas/v3.1/loose/external-documentation.js.map +0 -7
- package/dist/schemas/v3.1/loose/header.d.ts +0 -355
- package/dist/schemas/v3.1/loose/header.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/header.js +0 -43
- package/dist/schemas/v3.1/loose/header.js.map +0 -7
- package/dist/schemas/v3.1/loose/info.d.ts +0 -48
- package/dist/schemas/v3.1/loose/info.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/info.js +0 -29
- package/dist/schemas/v3.1/loose/info.js.map +0 -7
- package/dist/schemas/v3.1/loose/license.d.ts +0 -10
- package/dist/schemas/v3.1/loose/license.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/license.js +0 -13
- package/dist/schemas/v3.1/loose/license.js.map +0 -7
- package/dist/schemas/v3.1/loose/link.d.ts +0 -30
- package/dist/schemas/v3.1/loose/link.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/link.js +0 -20
- package/dist/schemas/v3.1/loose/link.js.map +0 -7
- package/dist/schemas/v3.1/loose/media-header-encoding.d.ts +0 -1012
- package/dist/schemas/v3.1/loose/media-header-encoding.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/media-header-encoding.js +0 -19
- package/dist/schemas/v3.1/loose/media-header-encoding.js.map +0 -7
- package/dist/schemas/v3.1/loose/media-type.d.ts +0 -161
- package/dist/schemas/v3.1/loose/media-type.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/media-type.js +0 -18
- package/dist/schemas/v3.1/loose/media-type.js.map +0 -7
- package/dist/schemas/v3.1/loose/oauth-flow.d.ts +0 -95
- package/dist/schemas/v3.1/loose/oauth-flow.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/oauth-flow.js +0 -57
- package/dist/schemas/v3.1/loose/oauth-flow.js.map +0 -7
- package/dist/schemas/v3.1/loose/oauthflows.d.ts +0 -43
- package/dist/schemas/v3.1/loose/oauthflows.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/oauthflows.js +0 -21
- package/dist/schemas/v3.1/loose/oauthflows.js.map +0 -7
- package/dist/schemas/v3.1/loose/openapi-document.d.ts +0 -115
- package/dist/schemas/v3.1/loose/openapi-document.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/openapi-document.js +0 -64
- package/dist/schemas/v3.1/loose/openapi-document.js.map +0 -7
- package/dist/schemas/v3.1/loose/operation.d.ts +0 -1645
- package/dist/schemas/v3.1/loose/operation.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/operation.js +0 -61
- package/dist/schemas/v3.1/loose/operation.js.map +0 -7
- package/dist/schemas/v3.1/loose/parameter.d.ts +0 -1074
- package/dist/schemas/v3.1/loose/parameter.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/parameter.js +0 -54
- package/dist/schemas/v3.1/loose/parameter.js.map +0 -7
- package/dist/schemas/v3.1/loose/path-item.d.ts +0 -551
- package/dist/schemas/v3.1/loose/path-item.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/path-item.js +0 -42
- package/dist/schemas/v3.1/loose/path-item.js.map +0 -7
- package/dist/schemas/v3.1/loose/path-operations.d.ts +0 -2196
- package/dist/schemas/v3.1/loose/path-operations.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/path-operations.js +0 -21
- package/dist/schemas/v3.1/loose/path-operations.js.map +0 -7
- package/dist/schemas/v3.1/loose/paths.d.ts +0 -20
- package/dist/schemas/v3.1/loose/paths.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/paths.js +0 -11
- package/dist/schemas/v3.1/loose/paths.js.map +0 -7
- package/dist/schemas/v3.1/loose/reference.d.ts +0 -26
- package/dist/schemas/v3.1/loose/reference.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/reference.js +0 -24
- package/dist/schemas/v3.1/loose/reference.js.map +0 -7
- package/dist/schemas/v3.1/loose/request-body.d.ts +0 -339
- package/dist/schemas/v3.1/loose/request-body.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/request-body.js +0 -14
- package/dist/schemas/v3.1/loose/request-body.js.map +0 -7
- package/dist/schemas/v3.1/loose/response.d.ts +0 -698
- package/dist/schemas/v3.1/loose/response.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/response.js +0 -18
- package/dist/schemas/v3.1/loose/response.js.map +0 -7
- package/dist/schemas/v3.1/loose/responses.d.ts +0 -710
- package/dist/schemas/v3.1/loose/responses.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/responses.js +0 -11
- package/dist/schemas/v3.1/loose/responses.js.map +0 -7
- package/dist/schemas/v3.1/loose/schema.d.ts +0 -373
- package/dist/schemas/v3.1/loose/schema.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/schema.js +0 -146
- package/dist/schemas/v3.1/loose/schema.js.map +0 -7
- package/dist/schemas/v3.1/loose/security-requirement.d.ts +0 -11
- package/dist/schemas/v3.1/loose/security-requirement.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/security-requirement.js +0 -10
- package/dist/schemas/v3.1/loose/security-requirement.js.map +0 -7
- package/dist/schemas/v3.1/loose/security-scheme.d.ts +0 -169
- package/dist/schemas/v3.1/loose/security-scheme.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/security-scheme.js +0 -64
- package/dist/schemas/v3.1/loose/security-scheme.js.map +0 -7
- package/dist/schemas/v3.1/loose/server-variable.d.ts +0 -10
- package/dist/schemas/v3.1/loose/server-variable.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/server-variable.js +0 -13
- package/dist/schemas/v3.1/loose/server-variable.js.map +0 -7
- package/dist/schemas/v3.1/loose/server.d.ts +0 -14
- package/dist/schemas/v3.1/loose/server.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/server.js +0 -14
- package/dist/schemas/v3.1/loose/server.js.map +0 -7
- package/dist/schemas/v3.1/loose/tag.d.ts +0 -19
- package/dist/schemas/v3.1/loose/tag.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/tag.js +0 -23
- package/dist/schemas/v3.1/loose/tag.js.map +0 -7
- package/dist/schemas/v3.1/loose/xml.d.ts +0 -18
- package/dist/schemas/v3.1/loose/xml.d.ts.map +0 -1
- package/dist/schemas/v3.1/loose/xml.js +0 -17
- package/dist/schemas/v3.1/loose/xml.js.map +0 -7
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +0 -1560
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/media-header-encoding.js +0 -19
- package/dist/schemas/v3.1/strict/media-header-encoding.js.map +0 -7
- package/dist/schemas/v3.1/strict/path-operations.d.ts +0 -10628
- package/dist/schemas/v3.1/strict/path-operations.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/path-operations.js +0 -21
- package/dist/schemas/v3.1/strict/path-operations.js.map +0 -7
|
@@ -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":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAI7C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,QAAQ,CAKlD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
2
|
+
import { ServerObjectSchema } from "../../schemas/v3.1/strict/openapi-document.js";
|
|
3
3
|
const SettingsSchema = Type.Partial(
|
|
4
4
|
Type.Object({
|
|
5
5
|
proxyUrl: Type.String(),
|
|
@@ -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 Static, Type } from '@scalar/typebox'\nimport type { RequiredDeep } from 'type-fest'\n\nimport { ServerObjectSchema } from '@/schemas/v3.1/strict/openapi-document'\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 = Static<typeof SettingsSchema>\n\nexport const defaultSettings: RequiredDeep<Settings> = {\n proxyUrl: 'https://proxy.scalar.com',\n searchKey: 'k',\n servers: [],\n baseServerUrl: '',\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAsB,YAAY;AAGlC,SAAS,0BAA0B;AAE5B,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;AAIO,MAAM,kBAA0C;AAAA,EACrD,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS,CAAC;AAAA,EACV,eAAe;AACjB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TSchema } from '@
|
|
1
|
+
import type { TSchema } from '@scalar/typebox';
|
|
2
2
|
/**
|
|
3
3
|
* Coerces a value to match the provided TypeBox schema by first converting and then casting the value.
|
|
4
4
|
* This is useful for ensuring values match their expected types, especially when dealing with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typebox-coerce.d.ts","sourceRoot":"","sources":["../../src/schemas/typebox-coerce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"typebox-coerce.d.ts","sourceRoot":"","sources":["../../src/schemas/typebox-coerce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAG9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,OAAO,EAAE,QAAQ,CAAC,EAAE,OAAO,OAAO;;YAA8B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Value } from "@
|
|
2
|
-
const coerceValue = (schema, value) => Value.Cast(schema,
|
|
1
|
+
import { Value } from "@scalar/typebox/value";
|
|
2
|
+
const coerceValue = (schema, value) => Value.Cast(schema, value);
|
|
3
3
|
export {
|
|
4
4
|
coerceValue
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/typebox-coerce.ts"],
|
|
4
|
-
"sourcesContent": ["import type { TSchema } from '@
|
|
5
|
-
"mappings": "AACA,SAAS,aAAa;AAuBf,MAAM,cAAc,CAAoB,QAAW,
|
|
4
|
+
"sourcesContent": ["import type { TSchema } from '@scalar/typebox'\nimport { Value } from '@scalar/typebox/value'\n\n/**\n * Coerces a value to match the provided TypeBox schema by first converting and then casting the value.\n * This is useful for ensuring values match their expected types, especially when dealing with\n * form inputs or API responses that may need type conversion.\n *\n * @param schema - The TypeBox schema to coerce the value against\n * @param value - The value to coerce\n * @returns The coerced value that matches the schema\n *\n * @example\n * // Convert string \"123\" to number\n * const schema = Type.Number()\n * const value = \"123\"\n * const coerced = coerceValue(schema, value) // Returns 123\n *\n * @example\n * // Convert string \"true\" to boolean\n * const schema = Type.Boolean()\n * const value = \"true\"\n * const coerced = coerceValue(schema, value) // Returns true\n */\nexport const coerceValue = <T extends TSchema>(schema: T, value: unknown) => Value.Cast(schema, value)\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,aAAa;AAuBf,MAAM,cAAc,CAAoB,QAAW,UAAmB,MAAM,KAAK,QAAQ,KAAK;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const callbackObjectSchemaBuilder: <P extends TSchema>(pathItem: P) => import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[P, import("../../../schemas/v3.1/strict/reference.js").ReferenceType<P>]>>;
|
|
1
|
+
export declare const CallbackObjectSchemaDefinition: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"PathItemObject">, import("../../../schemas/v3.1/strict/reference.js").ReferenceType<import("@scalar/typebox").TRef<"PathItemObject">>]>>;
|
|
3
2
|
//# 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":"AAKA,eAAO,MAAM,8BAA8B,uQAI1C,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Type } from "@
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
2
|
+
import { PathItemObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
|
|
2
3
|
import { reference } from "../../../schemas/v3.1/strict/reference.js";
|
|
3
|
-
const
|
|
4
|
+
const CallbackObjectSchemaDefinition = Type.Record(
|
|
4
5
|
Type.String(),
|
|
5
6
|
/** A Path Item Object used to define a callback request and expected responses. A complete example is available. */
|
|
6
|
-
Type.Union([
|
|
7
|
+
Type.Union([PathItemObjectRef, reference(PathItemObjectRef)])
|
|
7
8
|
);
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
CallbackObjectSchemaDefinition
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=callback.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/callback.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { PathItemObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport { reference } from '@/schemas/v3.1/strict/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"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,yBAAyB;AAClC,SAAS,iBAAiB;AAEnB,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,16 @@
|
|
|
1
|
-
import { type Static } from '@
|
|
2
|
-
export declare const xScalarClientConfigCookieSchema: import("@
|
|
3
|
-
name: import("@
|
|
4
|
-
value: import("@
|
|
5
|
-
domain: import("@
|
|
6
|
-
path: import("@
|
|
1
|
+
import { type Static } from '@scalar/typebox';
|
|
2
|
+
export declare const xScalarClientConfigCookieSchema: import("@scalar/typebox").TObject<{
|
|
3
|
+
name: import("@scalar/typebox").TString;
|
|
4
|
+
value: import("@scalar/typebox").TString;
|
|
5
|
+
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6
|
+
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
7
7
|
}>;
|
|
8
8
|
export type XScalarClientConfigCookie = Static<typeof xScalarClientConfigCookieSchema>;
|
|
9
|
-
export declare const xScalarClientConfigCookiesSchema: import("@
|
|
10
|
-
name: import("@
|
|
11
|
-
value: import("@
|
|
12
|
-
domain: import("@
|
|
13
|
-
path: import("@
|
|
9
|
+
export declare const xScalarClientConfigCookiesSchema: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
10
|
+
name: import("@scalar/typebox").TString;
|
|
11
|
+
value: import("@scalar/typebox").TString;
|
|
12
|
+
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
13
|
+
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
14
|
}>>;
|
|
15
15
|
export type XScalarClientConfigCookies = Static<typeof xScalarClientConfigCookiesSchema>;
|
|
16
16
|
//# 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":"AAAA,OAAO,
|
|
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":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAEnD,eAAO,MAAM,+BAA+B;;;;;EAK1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEtF,eAAO,MAAM,gCAAgC;;;;;GAA8D,CAAA;AAC3G,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,gCAAgC,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 Static, 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 = Static<typeof xScalarClientConfigCookieSchema>\n\nexport const xScalarClientConfigCookiesSchema = Type.Record(Type.String(), xScalarClientConfigCookieSchema)\nexport type XScalarClientConfigCookies = Static<typeof xScalarClientConfigCookiesSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAsB,YAAY;AAE3B,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;AAIM,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,27 +1,27 @@
|
|
|
1
|
-
import { type Static } from '@
|
|
2
|
-
export declare const xScalarClientConfigEnvVarSchema: import("@
|
|
3
|
-
description: import("@
|
|
4
|
-
default: import("@
|
|
5
|
-
}>, import("@
|
|
1
|
+
import { type Static } from '@scalar/typebox';
|
|
2
|
+
export declare const xScalarClientConfigEnvVarSchema: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
3
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
4
|
+
default: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
5
|
+
}>, import("@scalar/typebox").TString]>;
|
|
6
6
|
export type xScalarClientConfigEnvVar = Static<typeof xScalarClientConfigEnvVarSchema>;
|
|
7
|
-
export declare const xScalarClientConfigEnvironmentSchema: import("@
|
|
8
|
-
description: import("@
|
|
9
|
-
color: import("@
|
|
7
|
+
export declare const xScalarClientConfigEnvironmentSchema: import("@scalar/typebox").TObject<{
|
|
8
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
|
+
color: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10
10
|
/** A map of variables by name */
|
|
11
|
-
variables: import("@
|
|
12
|
-
description: import("@
|
|
13
|
-
default: import("@
|
|
14
|
-
}>, import("@
|
|
11
|
+
variables: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
12
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
13
|
+
default: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
|
+
}>, import("@scalar/typebox").TString]>>;
|
|
15
15
|
}>;
|
|
16
16
|
export type xScalarClientConfigEnvironment = Static<typeof xScalarClientConfigEnvironmentSchema>;
|
|
17
|
-
export declare const xScalarClientConfigEnvironmentsSchema: import("@
|
|
18
|
-
description: import("@
|
|
19
|
-
color: import("@
|
|
17
|
+
export declare const xScalarClientConfigEnvironmentsSchema: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
18
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
19
|
+
color: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
20
20
|
/** A map of variables by name */
|
|
21
|
-
variables: import("@
|
|
22
|
-
description: import("@
|
|
23
|
-
default: import("@
|
|
24
|
-
}>, import("@
|
|
21
|
+
variables: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
22
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
23
|
+
default: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
24
|
+
}>, import("@scalar/typebox").TString]>>;
|
|
25
25
|
}>>;
|
|
26
26
|
export type XScalarClientConfigEnvironments = Static<typeof xScalarClientConfigEnvironmentsSchema>;
|
|
27
27
|
//# 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":"AAAA,OAAO,
|
|
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":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAEnD,eAAO,MAAM,+BAA+B;;;uCAQ1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEtF,eAAO,MAAM,oCAAoC;;;IAG/C,iCAAiC;;;;;EAEjC,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEhG,eAAO,MAAM,qCAAqC;;;IANhD,iCAAiC;;;;;GAMkF,CAAA;AAErH,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,OAAO,qCAAqC,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 Static, 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 = Static<typeof xScalarClientConfigEnvVarSchema>\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 = Static<typeof xScalarClientConfigEnvironmentSchema>\n\nexport const xScalarClientConfigEnvironmentsSchema = Type.Record(Type.String(), xScalarClientConfigEnvironmentSchema)\n\nexport type XScalarClientConfigEnvironments = Static<typeof xScalarClientConfigEnvironmentsSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAsB,YAAY;AAE3B,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;AAIM,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;AAIM,MAAM,wCAAwC,KAAK,OAAO,KAAK,OAAO,GAAG,oCAAoC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { type Static } from '@
|
|
1
|
+
import { type Static, type TLiteral } from '@scalar/typebox';
|
|
2
2
|
export declare const exampleBodyMime: readonly ["application/json", "text/plain", "text/html", "application/javascript", "application/xml", "application/yaml", "application/edn", "application/octet-stream", "application/x-www-form-urlencoded", "multipart/form-data", "binary"];
|
|
3
|
-
declare const xScalarFileValueSchema: import("@
|
|
4
|
-
url: import("@
|
|
5
|
-
base64: import("@
|
|
6
|
-
}>, import("@
|
|
3
|
+
declare const xScalarFileValueSchema: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
4
|
+
url: import("@scalar/typebox").TString;
|
|
5
|
+
base64: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
6
|
+
}>, import("@scalar/typebox").TNull]>;
|
|
7
7
|
export type XScalarFileValue = Static<typeof xScalarFileValueSchema>;
|
|
8
|
-
declare const xScalarExampleBodySchema: import("@
|
|
9
|
-
encoding:
|
|
10
|
-
content: import("@
|
|
11
|
-
file: import("@
|
|
12
|
-
url: import("@
|
|
13
|
-
base64: import("@
|
|
14
|
-
}>, import("@
|
|
8
|
+
declare const xScalarExampleBodySchema: import("@scalar/typebox").TObject<{
|
|
9
|
+
encoding: TLiteral<(typeof exampleBodyMime)[number]>;
|
|
10
|
+
content: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TAny>, import("@scalar/typebox").TString]>;
|
|
11
|
+
file: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
12
|
+
url: import("@scalar/typebox").TString;
|
|
13
|
+
base64: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
|
+
}>, import("@scalar/typebox").TNull]>>;
|
|
15
15
|
}>;
|
|
16
16
|
export type XScalarExampleBody = Static<typeof xScalarExampleBodySchema>;
|
|
17
|
-
declare const xScalarExampleParameterSchema: import("@
|
|
17
|
+
declare const xScalarExampleParameterSchema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
18
18
|
export type XScalarExampleParameter = Static<typeof xScalarExampleParameterSchema>;
|
|
19
|
-
export declare const xScalarClientConfigRequestExampleSchema: import("@
|
|
20
|
-
name: import("@
|
|
21
|
-
body: import("@
|
|
22
|
-
encoding:
|
|
23
|
-
content: import("@
|
|
24
|
-
file: import("@
|
|
25
|
-
url: import("@
|
|
26
|
-
base64: import("@
|
|
27
|
-
}>, import("@
|
|
19
|
+
export declare const xScalarClientConfigRequestExampleSchema: import("@scalar/typebox").TObject<{
|
|
20
|
+
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
21
|
+
body: import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
22
|
+
encoding: TLiteral<(typeof exampleBodyMime)[number]>;
|
|
23
|
+
content: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TAny>, import("@scalar/typebox").TString]>;
|
|
24
|
+
file: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
25
|
+
url: import("@scalar/typebox").TString;
|
|
26
|
+
base64: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
27
|
+
}>, import("@scalar/typebox").TNull]>>;
|
|
28
28
|
}>>;
|
|
29
|
-
parameters: import("@
|
|
30
|
-
path: import("@
|
|
31
|
-
query: import("@
|
|
32
|
-
header: import("@
|
|
33
|
-
cookie: import("@
|
|
29
|
+
parameters: import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
30
|
+
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
31
|
+
query: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
32
|
+
header: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
33
|
+
cookie: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
34
34
|
}>>;
|
|
35
35
|
}>;
|
|
36
36
|
export type XScalarClientConfigRequestExample = Static<typeof xScalarClientConfigRequestExampleSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-scalar-client-config-request-example.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"x-scalar-client-config-request-example.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAElE,eAAO,MAAM,eAAe,gPAalB,CAAA;AAEV,QAAA,MAAM,sBAAsB;;;qCAM1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpE,QAAA,MAAM,wBAAwB;cACsD,QAAQ,CACxF,CAAC,OAAO,eAAe,EAAE,MAAM,CAAC,CACjC;;;;;;EAGD,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAExE,QAAA,MAAM,6BAA6B,8IAA2D,CAAA;AAE9F,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAElF,eAAO,MAAM,uCAAuC;;;kBAbgC,QAAQ,CACxF,CAAC,OAAO,eAAe,EAAE,MAAM,CAAC,CACjC;;;;;;;;;;;;;EAsBF,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG,MAAM,CAAC,OAAO,uCAAuC,CAAC,CAAA"}
|
|
@@ -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-request-example.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { type Static, type TLiteral, Type } from '@scalar/typebox'\n\nexport const exampleBodyMime = [\n 'application/json',\n 'text/plain',\n 'text/html',\n 'application/javascript',\n 'application/xml',\n 'application/yaml',\n 'application/edn',\n 'application/octet-stream',\n 'application/x-www-form-urlencoded',\n 'multipart/form-data',\n /** Used for direct files */\n 'binary',\n] as const\n\nconst xScalarFileValueSchema = Type.Union([\n Type.Object({\n url: Type.String(),\n base64: Type.Optional(Type.String()),\n }),\n Type.Null(),\n])\n\nexport type XScalarFileValue = Static<typeof xScalarFileValueSchema>\n\nconst xScalarExampleBodySchema = Type.Object({\n encoding: Type.Union(exampleBodyMime.map((it) => Type.Literal(it))) as unknown as TLiteral<\n (typeof exampleBodyMime)[number]\n >,\n content: Type.Union([Type.Record(Type.String(), Type.Any()), Type.String()]),\n file: Type.Optional(xScalarFileValueSchema),\n})\n\nexport type XScalarExampleBody = Static<typeof xScalarExampleBodySchema>\n\nconst xScalarExampleParameterSchema = Type.Optional(Type.Record(Type.String(), Type.String()))\n\nexport type XScalarExampleParameter = Static<typeof xScalarExampleParameterSchema>\n\nexport const xScalarClientConfigRequestExampleSchema = Type.Partial(\n Type.Object({\n name: Type.String(),\n body: xScalarExampleBodySchema,\n parameters: Type.Object({\n path: xScalarExampleParameterSchema,\n query: xScalarExampleParameterSchema,\n header: xScalarExampleParameterSchema,\n cookie: xScalarExampleParameterSchema,\n }),\n }),\n)\n\nexport type XScalarClientConfigRequestExample = Static<typeof xScalarClientConfigRequestExampleSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAqC,YAAY;AAE1C,MAAM,kBAAkB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AACF;AAEA,MAAM,yBAAyB,KAAK,MAAM;AAAA,EACxC,KAAK,OAAO;AAAA,IACV,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACrC,CAAC;AAAA,EACD,KAAK,KAAK;AACZ,CAAC;AAID,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAC3C,UAAU,KAAK,MAAM,gBAAgB,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC,CAAC;AAAA,EAGlE,SAAS,KAAK,MAAM,CAAC,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,IAAI,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC;AAAA,EAC3E,MAAM,KAAK,SAAS,sBAAsB;AAC5C,CAAC;AAID,MAAM,gCAAgC,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC,CAAC;AAItF,MAAM,0CAA0C,KAAK;AAAA,EAC1D,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,OAAO;AAAA,IAClB,MAAM;AAAA,IACN,YAAY,KAAK,OAAO;AAAA,MACtB,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,QAAQ;AAAA,IACV,CAAC;AAAA,EACH,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,44 +1,24 @@
|
|
|
1
|
-
import { type Static, type TObject, type TOptional, type TRecord, type TString, type TUnion } from '@sinclair/typebox';
|
|
2
|
-
import { SchemaObjectSchema } from './schema.js';
|
|
3
|
-
import { ResponseObjectSchema } from './response.js';
|
|
4
|
-
import { type ReferenceType } from './reference.js';
|
|
5
|
-
import { ParameterObjectSchema } from './parameter.js';
|
|
6
|
-
import { ExampleObjectSchema } from './example.js';
|
|
7
|
-
import { RequestBodyObjectSchema } from './request-body.js';
|
|
8
|
-
import { SecuritySchemeObjectSchema } from './security-scheme.js';
|
|
9
|
-
import { LinkObjectSchema } from './link.js';
|
|
10
|
-
import { HeaderObjectSchema } from '../../../schemas/v3.1/strict/media-header-encoding.js';
|
|
11
|
-
import { CallbackObjectSchema, PathItemObjectSchema } from '../../../schemas/v3.1/strict/path-operations.js';
|
|
12
|
-
/**
|
|
13
|
-
* The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.
|
|
14
|
-
* This is due to the complex nested structure of the Components Object schema, which includes multiple optional fields,
|
|
15
|
-
* arrays, and nested objects. The explicit type annotation helps TypeScript handle this large type definition.
|
|
16
|
-
*
|
|
17
|
-
* @see https://github.com/microsoft/TypeScript/issues/43817#issuecomment-827746462
|
|
18
|
-
*/
|
|
19
|
-
export type ComponentsObjectSchemaType = TObject<{
|
|
20
|
-
/** Schema Objects that define input and output data types. These can be objects, primitives, and arrays, and are a superset of JSON Schema Specification Draft 2020-12. */
|
|
21
|
-
schemas: TOptional<TRecord<TString, TUnion<[typeof SchemaObjectSchema, ReferenceType<typeof SchemaObjectSchema>]>>>;
|
|
22
|
-
/** Response Objects that describe a single response from an API operation, including headers, content, and links. */
|
|
23
|
-
responses: TOptional<TRecord<TString, TUnion<[typeof ResponseObjectSchema, ReferenceType<typeof ResponseObjectSchema>]>>>;
|
|
24
|
-
/** Parameter Objects that describe a single operation parameter with a unique combination of name and location (query, header, path, or cookie). */
|
|
25
|
-
parameters: TOptional<TRecord<TString, TUnion<[typeof ParameterObjectSchema, ReferenceType<typeof ParameterObjectSchema>]>>>;
|
|
26
|
-
/** Example Objects that group example values with metadata for demonstrating usage of properties, parameters, and objects. */
|
|
27
|
-
examples: TOptional<TRecord<TString, TUnion<[typeof ExampleObjectSchema, ReferenceType<typeof ExampleObjectSchema>]>>>;
|
|
28
|
-
/** Request Body Objects that describe a single request body with content and optional required flag. */
|
|
29
|
-
requestBodies: TOptional<TRecord<TString, TUnion<[typeof RequestBodyObjectSchema, ReferenceType<typeof RequestBodyObjectSchema>]>>>;
|
|
30
|
-
/** Header Objects that describe HTTP response headers and multipart representation headers, following Parameter Object structure. */
|
|
31
|
-
headers: TOptional<TRecord<TString, TUnion<[typeof HeaderObjectSchema, ReferenceType<typeof HeaderObjectSchema>]>>>;
|
|
32
|
-
/** Security Scheme Objects that define security mechanisms for API operations (apiKey, http, mutualTLS, oauth2, openIdConnect). */
|
|
33
|
-
securitySchemes: TOptional<TRecord<TString, TUnion<[typeof SecuritySchemeObjectSchema, ReferenceType<typeof SecuritySchemeObjectSchema>]>>>;
|
|
34
|
-
/** Link Objects that represent design-time links for responses, providing relationships and traversal mechanisms between operations. */
|
|
35
|
-
links: TOptional<TRecord<TString, TUnion<[typeof LinkObjectSchema, ReferenceType<typeof LinkObjectSchema>]>>>;
|
|
36
|
-
/** Callback Objects that describe out-of-band callbacks related to parent operations, with Path Item Objects for request definitions. */
|
|
37
|
-
callbacks: TOptional<TRecord<TString, TUnion<[typeof CallbackObjectSchema, ReferenceType<typeof CallbackObjectSchema>]>>>;
|
|
38
|
-
/** Path Item Objects that describe operations available on a single path, including HTTP methods and shared parameters. */
|
|
39
|
-
pathItems: TOptional<TRecord<TString, typeof PathItemObjectSchema>>;
|
|
40
|
-
}>;
|
|
41
1
|
/** 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. */
|
|
42
|
-
export declare const
|
|
43
|
-
|
|
2
|
+
export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
3
|
+
/** An object to hold reusable Schema Objects. */
|
|
4
|
+
schemas: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"SchemaObject">>]>>>;
|
|
5
|
+
/** An object to hold reusable Response Objects. */
|
|
6
|
+
responses: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ResponseObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"ResponseObject">>]>>>;
|
|
7
|
+
/** An object to hold reusable Parameter Objects. */
|
|
8
|
+
parameters: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ParameterObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"ParameterObject">>]>>>;
|
|
9
|
+
/** An object to hold reusable Example Objects. */
|
|
10
|
+
examples: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"ExampleObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"ExampleObject">>]>>>;
|
|
11
|
+
/** An object to hold reusable Request Body Objects. */
|
|
12
|
+
requestBodies: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"RequestBodyObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"RequestBodyObject">>]>>>;
|
|
13
|
+
/** An object to hold reusable Header Objects. */
|
|
14
|
+
headers: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"HeaderObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"HeaderObject">>]>>>;
|
|
15
|
+
/** An object to hold reusable Security Scheme Objects. */
|
|
16
|
+
securitySchemes: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SecuritySchemeObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"SecuritySchemeObject">>]>>>;
|
|
17
|
+
/** An object to hold reusable Link Objects. */
|
|
18
|
+
links: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"LinkObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"LinkObject">>]>>>;
|
|
19
|
+
/** An object to hold reusable Callback Objects. */
|
|
20
|
+
callbacks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"CallbackObject">, import("./reference.js").ReferenceType<import("@scalar/typebox").TRef<"CallbackObject">>]>>>;
|
|
21
|
+
/** An object to hold reusable Path Item Objects. */
|
|
22
|
+
pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
|
|
23
|
+
}>;
|
|
44
24
|
//# 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":"AAiBA,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"}
|
|
@@ -1,51 +1,46 @@
|
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
1
2
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
CallbackObjectRef,
|
|
4
|
+
ExampleObjectRef,
|
|
5
|
+
HeaderObjectRef,
|
|
6
|
+
LinkObjectRef,
|
|
7
|
+
ParameterObjectRef,
|
|
8
|
+
PathItemObjectRef,
|
|
9
|
+
RequestBodyObjectRef,
|
|
10
|
+
ResponseObjectRef,
|
|
11
|
+
SchemaObjectRef,
|
|
12
|
+
SecuritySchemeObjectRef
|
|
13
|
+
} from "../../../schemas/v3.1/strict/ref-definitions.js";
|
|
6
14
|
import { reference } from "./reference.js";
|
|
7
|
-
|
|
8
|
-
import { ExampleObjectSchema } from "./example.js";
|
|
9
|
-
import { RequestBodyObjectSchema } from "./request-body.js";
|
|
10
|
-
import { SecuritySchemeObjectSchema } from "./security-scheme.js";
|
|
11
|
-
import { LinkObjectSchema } from "./link.js";
|
|
12
|
-
import { HeaderObjectSchema } from "../../../schemas/v3.1/strict/media-header-encoding.js";
|
|
13
|
-
import { CallbackObjectSchema, PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
|
|
14
|
-
const ComponentsObjectSchema = Type.Object({
|
|
15
|
+
const ComponentsObjectSchemaDefinition = Type.Object({
|
|
15
16
|
/** An object to hold reusable Schema Objects. */
|
|
16
|
-
schemas: Type.Optional(Type.Record(Type.String(), Type.Union([
|
|
17
|
+
schemas: Type.Optional(Type.Record(Type.String(), Type.Union([SchemaObjectRef, reference(SchemaObjectRef)]))),
|
|
17
18
|
/** An object to hold reusable Response Objects. */
|
|
18
|
-
responses: Type.Optional(
|
|
19
|
-
Type.Record(Type.String(), Type.Union([ResponseObjectSchema, reference(ResponseObjectSchema)]))
|
|
20
|
-
),
|
|
19
|
+
responses: Type.Optional(Type.Record(Type.String(), Type.Union([ResponseObjectRef, reference(ResponseObjectRef)]))),
|
|
21
20
|
/** An object to hold reusable Parameter Objects. */
|
|
22
21
|
parameters: Type.Optional(
|
|
23
|
-
Type.Record(Type.String(), Type.Union([
|
|
22
|
+
Type.Record(Type.String(), Type.Union([ParameterObjectRef, reference(ParameterObjectRef)]))
|
|
24
23
|
),
|
|
25
24
|
/** An object to hold reusable Example Objects. */
|
|
26
|
-
examples: Type.Optional(
|
|
27
|
-
Type.Record(Type.String(), Type.Union([ExampleObjectSchema, reference(ExampleObjectSchema)]))
|
|
28
|
-
),
|
|
25
|
+
examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectRef, reference(ExampleObjectRef)]))),
|
|
29
26
|
/** An object to hold reusable Request Body Objects. */
|
|
30
27
|
requestBodies: Type.Optional(
|
|
31
|
-
Type.Record(Type.String(), Type.Union([
|
|
28
|
+
Type.Record(Type.String(), Type.Union([RequestBodyObjectRef, reference(RequestBodyObjectRef)]))
|
|
32
29
|
),
|
|
33
30
|
/** An object to hold reusable Header Objects. */
|
|
34
|
-
headers: Type.Optional(Type.Record(Type.String(), Type.Union([
|
|
31
|
+
headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectRef, reference(HeaderObjectRef)]))),
|
|
35
32
|
/** An object to hold reusable Security Scheme Objects. */
|
|
36
33
|
securitySchemes: Type.Optional(
|
|
37
|
-
Type.Record(Type.String(), Type.Union([
|
|
34
|
+
Type.Record(Type.String(), Type.Union([SecuritySchemeObjectRef, reference(SecuritySchemeObjectRef)]))
|
|
38
35
|
),
|
|
39
36
|
/** An object to hold reusable Link Objects. */
|
|
40
|
-
links: Type.Optional(Type.Record(Type.String(), Type.Union([
|
|
37
|
+
links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectRef, reference(LinkObjectRef)]))),
|
|
41
38
|
/** An object to hold reusable Callback Objects. */
|
|
42
|
-
callbacks: Type.Optional(
|
|
43
|
-
Type.Record(Type.String(), Type.Union([CallbackObjectSchema, reference(CallbackObjectSchema)]))
|
|
44
|
-
),
|
|
39
|
+
callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectRef, reference(CallbackObjectRef)]))),
|
|
45
40
|
/** An object to hold reusable Path Item Objects. */
|
|
46
|
-
pathItems: Type.Optional(Type.Record(Type.String(),
|
|
41
|
+
pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectRef))
|
|
47
42
|
});
|
|
48
43
|
export {
|
|
49
|
-
|
|
44
|
+
ComponentsObjectSchemaDefinition
|
|
50
45
|
};
|
|
51
46
|
//# sourceMappingURL=components.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/components.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n
|
|
5
|
-
"mappings": "AAAA;AAAA,EACE;AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport {\n CallbackObjectRef,\n ExampleObjectRef,\n HeaderObjectRef,\n LinkObjectRef,\n ParameterObjectRef,\n PathItemObjectRef,\n RequestBodyObjectRef,\n ResponseObjectRef,\n SchemaObjectRef,\n SecuritySchemeObjectRef,\n} from '@/schemas/v3.1/strict/ref-definitions'\n\nimport { reference } from './reference'\n\n/** 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. */\nexport const ComponentsObjectSchemaDefinition = Type.Object({\n /** An object to hold reusable Schema Objects. */\n schemas: Type.Optional(Type.Record(Type.String(), Type.Union([SchemaObjectRef, reference(SchemaObjectRef)]))),\n /** An object to hold reusable Response Objects. */\n responses: Type.Optional(Type.Record(Type.String(), Type.Union([ResponseObjectRef, reference(ResponseObjectRef)]))),\n /** An object to hold reusable Parameter Objects. */\n parameters: Type.Optional(\n Type.Record(Type.String(), Type.Union([ParameterObjectRef, reference(ParameterObjectRef)])),\n ),\n /** An object to hold reusable Example Objects. */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectRef, reference(ExampleObjectRef)]))),\n /** An object to hold reusable Request Body Objects. */\n requestBodies: Type.Optional(\n Type.Record(Type.String(), Type.Union([RequestBodyObjectRef, reference(RequestBodyObjectRef)])),\n ),\n /** An object to hold reusable Header Objects. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectRef, reference(HeaderObjectRef)]))),\n /** An object to hold reusable Security Scheme Objects. */\n securitySchemes: Type.Optional(\n Type.Record(Type.String(), Type.Union([SecuritySchemeObjectRef, reference(SecuritySchemeObjectRef)])),\n ),\n /** An object to hold reusable Link Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectRef, reference(LinkObjectRef)]))),\n /** An object to hold reusable Callback Objects. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectRef, reference(CallbackObjectRef)]))),\n /** An object to hold reusable Path Item Objects. */\n pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectRef)),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,iBAAiB;AAGnB,MAAM,mCAAmC,KAAK,OAAO;AAAA;AAAA,EAE1D,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE5G,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAElH,YAAY,KAAK;AAAA,IACf,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA,EAC5F;AAAA;AAAA,EAEA,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,UAAU,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE/G,eAAe,KAAK;AAAA,IAClB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,UAAU,oBAAoB,CAAC,CAAC,CAAC;AAAA,EAChG;AAAA;AAAA,EAEA,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE5G,iBAAiB,KAAK;AAAA,IACpB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,yBAAyB,UAAU,uBAAuB,CAAC,CAAC,CAAC;AAAA,EACtG;AAAA;AAAA,EAEA,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,eAAe,UAAU,aAAa,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAEtG,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAElH,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,iBAAiB,CAAC;AACxE,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|