@scalar/workspace-store 0.14.2 → 0.15.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 +28 -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,171 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const DescriptionSchema: import("@sinclair/typebox").TObject<{
|
|
1
|
+
export declare const DescriptionSchema: import("@scalar/typebox").TObject<{
|
|
3
2
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
4
|
-
description: import("@
|
|
3
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
5
4
|
}>;
|
|
6
|
-
export declare const ApiKeySchema: import("@
|
|
5
|
+
export declare const ApiKeySchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
7
6
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
8
|
-
description: import("@
|
|
9
|
-
}>, import("@
|
|
10
|
-
'x-scalar-secret-token': import("@
|
|
11
|
-
}>, import("@
|
|
7
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8
|
+
}>, import("@scalar/typebox").TObject<{
|
|
9
|
+
'x-scalar-secret-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10
|
+
}>, import("@scalar/typebox").TObject<{
|
|
12
11
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
13
|
-
type: import("@
|
|
12
|
+
type: import("@scalar/typebox").TLiteral<"apiKey">;
|
|
14
13
|
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
15
|
-
name: import("@
|
|
14
|
+
name: import("@scalar/typebox").TString;
|
|
16
15
|
/** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
17
|
-
in: import("@
|
|
16
|
+
in: import("@scalar/typebox").TString;
|
|
18
17
|
}>]>;
|
|
19
|
-
export declare const HttpSchema: import("@
|
|
18
|
+
export declare const HttpSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
20
19
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
21
|
-
description: import("@
|
|
22
|
-
}>, import("@
|
|
23
|
-
'x-scalar-secret-token': import("@
|
|
24
|
-
}>, import("@
|
|
25
|
-
'x-scalar-secret-username': import("@
|
|
26
|
-
'x-scalar-secret-password': import("@
|
|
27
|
-
}>, import("@
|
|
20
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
21
|
+
}>, import("@scalar/typebox").TObject<{
|
|
22
|
+
'x-scalar-secret-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
23
|
+
}>, import("@scalar/typebox").TObject<{
|
|
24
|
+
'x-scalar-secret-username': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
25
|
+
'x-scalar-secret-password': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
26
|
+
}>, import("@scalar/typebox").TObject<{
|
|
28
27
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
29
|
-
type: import("@
|
|
28
|
+
type: import("@scalar/typebox").TLiteral<"http">;
|
|
30
29
|
/** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */
|
|
31
|
-
scheme: import("@
|
|
30
|
+
scheme: import("@scalar/typebox").TString;
|
|
32
31
|
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
33
|
-
bearerFormat: import("@
|
|
32
|
+
bearerFormat: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
34
33
|
}>]>;
|
|
35
|
-
export declare const OAuth2: import("@
|
|
34
|
+
export declare const OAuth2: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
36
35
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
37
|
-
description: import("@
|
|
38
|
-
}>, import("@
|
|
36
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
37
|
+
}>, import("@scalar/typebox").TObject<{
|
|
39
38
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
40
|
-
type: import("@
|
|
39
|
+
type: import("@scalar/typebox").TLiteral<"oauth2">;
|
|
41
40
|
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
42
|
-
flows: import("@
|
|
43
|
-
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
44
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
46
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
47
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
48
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
49
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
50
|
-
}>]>>;
|
|
51
|
-
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
52
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
53
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
54
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
55
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
56
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
57
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
58
|
-
}>]>>;
|
|
59
|
-
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
60
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
61
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
62
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
63
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
64
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
65
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
66
|
-
}>]>>;
|
|
67
|
-
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
68
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
69
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
70
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
71
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
72
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
73
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
74
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
75
|
-
}>]>>;
|
|
76
|
-
}>;
|
|
41
|
+
flows: import("@scalar/typebox").TRef<"OAuthFlowsObject">;
|
|
77
42
|
}>]>;
|
|
78
|
-
export declare const OpenIdConnect: import("@
|
|
43
|
+
export declare const OpenIdConnect: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
79
44
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
80
|
-
description: import("@
|
|
81
|
-
}>, import("@
|
|
45
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
46
|
+
}>, import("@scalar/typebox").TObject<{
|
|
82
47
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
83
|
-
type: import("@
|
|
48
|
+
type: import("@scalar/typebox").TLiteral<"openIdConnect">;
|
|
84
49
|
/** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
85
|
-
openIdConnectUrl: import("@
|
|
50
|
+
openIdConnectUrl: import("@scalar/typebox").TString;
|
|
86
51
|
}>]>;
|
|
87
52
|
/**
|
|
88
53
|
* Defines a security scheme that can be used by the operations.
|
|
89
54
|
*
|
|
90
55
|
* Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.
|
|
91
56
|
*/
|
|
92
|
-
export declare const
|
|
57
|
+
export declare const SecuritySchemeObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
93
58
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
94
|
-
description: import("@
|
|
95
|
-
}>, import("@
|
|
96
|
-
'x-scalar-secret-token': import("@
|
|
97
|
-
}>, import("@
|
|
59
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
60
|
+
}>, import("@scalar/typebox").TObject<{
|
|
61
|
+
'x-scalar-secret-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
62
|
+
}>, import("@scalar/typebox").TObject<{
|
|
98
63
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
99
|
-
type: import("@
|
|
64
|
+
type: import("@scalar/typebox").TLiteral<"apiKey">;
|
|
100
65
|
/** REQUIRED. The name of the header, query or cookie parameter to be used. */
|
|
101
|
-
name: import("@
|
|
66
|
+
name: import("@scalar/typebox").TString;
|
|
102
67
|
/** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
103
|
-
in: import("@
|
|
104
|
-
}>]>, import("@
|
|
68
|
+
in: import("@scalar/typebox").TString;
|
|
69
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
105
70
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
106
|
-
description: import("@
|
|
107
|
-
}>, import("@
|
|
108
|
-
'x-scalar-secret-token': import("@
|
|
109
|
-
}>, import("@
|
|
110
|
-
'x-scalar-secret-username': import("@
|
|
111
|
-
'x-scalar-secret-password': import("@
|
|
112
|
-
}>, import("@
|
|
71
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
72
|
+
}>, import("@scalar/typebox").TObject<{
|
|
73
|
+
'x-scalar-secret-token': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
74
|
+
}>, import("@scalar/typebox").TObject<{
|
|
75
|
+
'x-scalar-secret-username': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
76
|
+
'x-scalar-secret-password': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
77
|
+
}>, import("@scalar/typebox").TObject<{
|
|
113
78
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
114
|
-
type: import("@
|
|
79
|
+
type: import("@scalar/typebox").TLiteral<"http">;
|
|
115
80
|
/** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */
|
|
116
|
-
scheme: import("@
|
|
81
|
+
scheme: import("@scalar/typebox").TString;
|
|
117
82
|
/** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
|
|
118
|
-
bearerFormat: import("@
|
|
119
|
-
}>]>, import("@
|
|
83
|
+
bearerFormat: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
84
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
120
85
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
121
|
-
description: import("@
|
|
122
|
-
}>, import("@
|
|
86
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
87
|
+
}>, import("@scalar/typebox").TObject<{
|
|
123
88
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
124
|
-
type: import("@
|
|
89
|
+
type: import("@scalar/typebox").TLiteral<"oauth2">;
|
|
125
90
|
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
126
|
-
flows: import("@
|
|
127
|
-
|
|
128
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
129
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
130
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
131
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
132
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
133
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
134
|
-
}>]>>;
|
|
135
|
-
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
136
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
137
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
138
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
139
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
140
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
141
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
142
|
-
}>]>>;
|
|
143
|
-
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
144
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
145
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
146
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
147
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
148
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
149
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
150
|
-
}>]>>;
|
|
151
|
-
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
152
|
-
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
153
|
-
scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
154
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
155
|
-
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
156
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
157
|
-
authorizationUrl: import("@sinclair/typebox").TString;
|
|
158
|
-
tokenUrl: import("@sinclair/typebox").TString;
|
|
159
|
-
}>]>>;
|
|
160
|
-
}>;
|
|
161
|
-
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
91
|
+
flows: import("@scalar/typebox").TRef<"OAuthFlowsObject">;
|
|
92
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
162
93
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
163
|
-
description: import("@
|
|
164
|
-
}>, import("@
|
|
94
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
95
|
+
}>, import("@scalar/typebox").TObject<{
|
|
165
96
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
166
|
-
type: import("@
|
|
97
|
+
type: import("@scalar/typebox").TLiteral<"openIdConnect">;
|
|
167
98
|
/** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
168
|
-
openIdConnectUrl: import("@
|
|
99
|
+
openIdConnectUrl: import("@scalar/typebox").TString;
|
|
169
100
|
}>]>]>;
|
|
170
|
-
export type SecuritySchemeObject = Static<typeof SecuritySchemeObjectSchema>;
|
|
171
101
|
//# sourceMappingURL=security-scheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,iBAAiB;IAC5B,qGAAqG;;EAErG,CAAA;AAEF,eAAO,MAAM,YAAY;IAJvB,qGAAqG;;;;;IAQnG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;IAGjG,CAAA;AAED,eAAO,MAAM,UAAU;IAjBrB,qGAAqG;;;;;;;;IAsBnG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;IAG1M,CAAA;AAED,eAAO,MAAM,MAAM;IA/BjB,qGAAqG;;;IAkCnG,4HAA4H;;IAE5H,6FAA6F;;IAGhG,CAAA;AAED,eAAO,MAAM,aAAa;IAzCxB,qGAAqG;;;IA4CnG,4HAA4H;;IAE5H,+FAA+F;;IAGlG,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,oCAAoC;IAxD/C,qGAAqG;;;;;IAQnG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;;IAZhG,qGAAqG;;;;;;;;IAsBnG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;;IA1BzM,qGAAqG;;;IAkCnG,4HAA4H;;IAE5H,6FAA6F;;;IApC/F,qGAAqG;;;IA4CnG,4HAA4H;;IAE5H,+FAA+F;;MAUc,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Type } from "@
|
|
2
|
-
import { OAuthFlowsObjectSchema } from "./oauthflows.js";
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
3
2
|
import { compose } from "../../../schemas/compose.js";
|
|
4
3
|
import {
|
|
5
4
|
XScalarSecretHTTPSchema,
|
|
6
5
|
XScalarSecretTokenSchema
|
|
7
6
|
} from "../../../schemas/extensions/security/x-scalar-security-secrets.js";
|
|
7
|
+
import { OAuthFlowsObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
|
|
8
8
|
const DescriptionSchema = Type.Object({
|
|
9
9
|
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
10
10
|
description: Type.Optional(Type.String())
|
|
@@ -40,7 +40,7 @@ const OAuth2 = compose(
|
|
|
40
40
|
/** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
41
41
|
type: Type.Literal("oauth2"),
|
|
42
42
|
/** REQUIRED. An object containing configuration information for the flow types supported. */
|
|
43
|
-
flows:
|
|
43
|
+
flows: OAuthFlowsObjectRef
|
|
44
44
|
})
|
|
45
45
|
);
|
|
46
46
|
const OpenIdConnect = compose(
|
|
@@ -52,13 +52,13 @@ const OpenIdConnect = compose(
|
|
|
52
52
|
openIdConnectUrl: Type.String()
|
|
53
53
|
})
|
|
54
54
|
);
|
|
55
|
-
const
|
|
55
|
+
const SecuritySchemeObjectSchemaDefinition = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect]);
|
|
56
56
|
export {
|
|
57
57
|
ApiKeySchema,
|
|
58
58
|
DescriptionSchema,
|
|
59
59
|
HttpSchema,
|
|
60
60
|
OAuth2,
|
|
61
61
|
OpenIdConnect,
|
|
62
|
-
|
|
62
|
+
SecuritySchemeObjectSchemaDefinition
|
|
63
63
|
};
|
|
64
64
|
//# sourceMappingURL=security-scheme.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/security-scheme.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {\n XScalarSecretHTTPSchema,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport { OAuthFlowsObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nexport const DescriptionSchema = Type.Object({\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n})\n\nexport const ApiKeySchema = compose(\n DescriptionSchema,\n XScalarSecretTokenSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: Type.String(),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: Type.String(),\n }),\n)\n\nexport const HttpSchema = compose(\n DescriptionSchema,\n XScalarSecretTokenSchema,\n XScalarSecretHTTPSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('http'),\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: Type.String(),\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat: Type.Optional(Type.String()),\n }),\n)\n\nexport const OAuth2 = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('oauth2'),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObjectRef,\n }),\n)\n\nexport const OpenIdConnect = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('openIdConnect'),\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: Type.String(),\n }),\n)\n\n/**\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.\n */\nexport const SecuritySchemeObjectSchemaDefinition = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect])\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,2BAA2B;AAE7B,MAAM,oBAAoB,KAAK,OAAO;AAAA;AAAA,EAE3C,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAC1C,CAAC;AAEM,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,OAAO;AAAA,EAClB,CAAC;AACH;AAEO,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,MAAM;AAAA;AAAA,IAEzB,QAAQ,KAAK,OAAO;AAAA;AAAA,IAEpB,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC3C,CAAC;AACH;AAEO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,OAAO;AAAA,EACT,CAAC;AACH;AAEO,MAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,eAAe;AAAA;AAAA,IAElC,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AACH;AAOO,MAAM,uCAAuC,KAAK,MAAM,CAAC,cAAc,YAAY,QAAQ,aAAa,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { type Static } from '@sinclair/typebox';
|
|
2
1
|
/** An object representing a Server Variable for server URL template substitution. */
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const ServerVariableObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
4
3
|
/** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */
|
|
5
|
-
enum: import("@
|
|
4
|
+
enum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
6
5
|
/** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */
|
|
7
|
-
default: import("@
|
|
6
|
+
default: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8
7
|
/** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */
|
|
9
|
-
description: import("@
|
|
8
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10
9
|
}>;
|
|
11
|
-
export type ServerVariableObject = Static<typeof ServerVariableObjectSchema>;
|
|
12
10
|
//# sourceMappingURL=server-variable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server-variable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server-variable.ts"],"names":[],"mappings":"AAEA,qFAAqF;AACrF,eAAO,MAAM,oCAAoC;IAC/C,kIAAkI;;IAElI,+VAA+V;;IAE/V,mHAAmH;;EAEnH,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Type } from "@
|
|
2
|
-
const
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
2
|
+
const ServerVariableObjectSchemaDefinition = Type.Object({
|
|
3
3
|
/** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */
|
|
4
4
|
enum: Type.Optional(Type.Array(Type.String())),
|
|
5
5
|
/** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */
|
|
@@ -8,6 +8,6 @@ const ServerVariableObjectSchema = Type.Object({
|
|
|
8
8
|
description: Type.Optional(Type.String())
|
|
9
9
|
});
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
ServerVariableObjectSchemaDefinition
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=server-variable.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/server-variable.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/** An object representing a Server Variable for server URL template substitution. */\nexport const ServerVariableObjectSchemaDefinition = Type.Object({\n /** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */\n enum: Type.Optional(Type.Array(Type.String())),\n /** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */\n default: Type.Optional(Type.String()),\n /** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAGd,MAAM,uCAAuC,KAAK,OAAO;AAAA;AAAA,EAE9D,MAAM,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,EAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAC1C,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { type Static } from '@sinclair/typebox';
|
|
2
1
|
/** An object representing a Server. */
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const ServerObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
4
3
|
/** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
|
|
5
|
-
url: import("@
|
|
4
|
+
url: import("@scalar/typebox").TString;
|
|
6
5
|
/** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
|
|
7
|
-
description: import("@
|
|
6
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8
7
|
/** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
|
|
9
|
-
variables: import("@
|
|
10
|
-
enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
11
|
-
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
-
}>>>;
|
|
8
|
+
variables: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"ServerVariableObject">>>;
|
|
14
9
|
}>;
|
|
15
|
-
export type ServerObject = Static<typeof ServerObjectSchema>;
|
|
16
10
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server.ts"],"names":[],"mappings":"AAIA,uCAAuC;AACvC,eAAO,MAAM,4BAA4B;IACvC,4SAA4S;;IAE5S,gIAAgI;;IAEhI,oHAAoH;;EAEpH,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Type } from "@
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
2
|
+
import { ServerVariableObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
|
|
3
|
+
const ServerObjectSchemaDefinition = Type.Object({
|
|
4
4
|
/** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
|
|
5
5
|
url: Type.String(),
|
|
6
6
|
/** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
|
|
7
7
|
description: Type.Optional(Type.String()),
|
|
8
8
|
/** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
|
|
9
|
-
variables: Type.Optional(Type.Record(Type.String(),
|
|
9
|
+
variables: Type.Optional(Type.Record(Type.String(), ServerVariableObjectRef))
|
|
10
10
|
});
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
ServerObjectSchemaDefinition
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=server.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/server.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { ServerVariableObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\n/** An object representing a Server. */\nexport const ServerObjectSchemaDefinition = Type.Object({\n /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */\n url: Type.String(),\n /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */\n variables: Type.Optional(Type.Record(Type.String(), ServerVariableObjectRef)),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,+BAA+B;AAGjC,MAAM,+BAA+B,KAAK,OAAO;AAAA;AAAA,EAEtD,KAAK,KAAK,OAAO;AAAA;AAAA,EAEjB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,uBAAuB,CAAC;AAC9E,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { type Static } from '@sinclair/typebox';
|
|
2
1
|
/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const TagObjectSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
4
3
|
/** REQUIRED. The name of the tag. */
|
|
5
|
-
name: import("@
|
|
4
|
+
name: import("@scalar/typebox").TString;
|
|
6
5
|
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
7
|
-
description: import("@
|
|
6
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
8
7
|
/** Additional external documentation for this tag. */
|
|
9
|
-
externalDocs: import("@
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'x-internal': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
18
|
-
'x-scalar-ignore': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
8
|
+
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
9
|
+
}>, import("@scalar/typebox").TObject<{
|
|
10
|
+
'x-displayName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
11
|
+
}>, import("@scalar/typebox").TObject<{
|
|
12
|
+
'x-internal': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
13
|
+
}>, import("@scalar/typebox").TObject<{
|
|
14
|
+
'x-scalar-ignore': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
19
15
|
}>]>;
|
|
20
|
-
export type TagObject = Static<typeof TagObjectSchema>;
|
|
21
16
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/tag.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/tag.ts"],"names":[],"mappings":"AAQA,sKAAsK;AACtK,eAAO,MAAM,yBAAyB;IAElC,qCAAqC;;IAErC,6FAA6F;;IAE7F,sDAAsD;;;;;;;;IAMzD,CAAA"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Type } from "@
|
|
2
|
-
import { ExternalDocumentationObjectSchema } from "./external-documentation.js";
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
3
2
|
import { compose } from "../../../schemas/compose.js";
|
|
4
|
-
import { XDisplayNameSchema } from "../../../schemas/extensions/tag/x-display-name.js";
|
|
5
3
|
import { XInternalSchema } from "../../../schemas/extensions/document/x-internal.js";
|
|
6
4
|
import { XScalarIgnoreSchema } from "../../../schemas/extensions/document/x-scalar-ignore.js";
|
|
7
|
-
|
|
5
|
+
import { XDisplayNameSchema } from "../../../schemas/extensions/tag/x-display-name.js";
|
|
6
|
+
import { ExternalDocumentationObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
|
|
7
|
+
const TagObjectSchemaDefinition = compose(
|
|
8
8
|
Type.Object({
|
|
9
9
|
/** REQUIRED. The name of the tag. */
|
|
10
10
|
name: Type.String(),
|
|
11
11
|
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
12
12
|
description: Type.Optional(Type.String()),
|
|
13
13
|
/** Additional external documentation for this tag. */
|
|
14
|
-
externalDocs: Type.Optional(
|
|
14
|
+
externalDocs: Type.Optional(ExternalDocumentationObjectRef)
|
|
15
15
|
}),
|
|
16
16
|
XDisplayNameSchema,
|
|
17
17
|
XInternalSchema,
|
|
18
18
|
XScalarIgnoreSchema
|
|
19
19
|
);
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
TagObjectSchemaDefinition
|
|
22
22
|
};
|
|
23
23
|
//# sourceMappingURL=tag.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/tag.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { XDisplayNameSchema } from '@/schemas/extensions/tag/x-display-name'\nimport { ExternalDocumentationObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\n/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */\nexport const TagObjectSchemaDefinition = compose(\n Type.Object({\n /** REQUIRED. The name of the tag. */\n name: Type.String(),\n /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this tag. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n }),\n XDisplayNameSchema,\n XInternalSchema,\n XScalarIgnoreSchema,\n)\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;AACpC,SAAS,0BAA0B;AACnC,SAAS,sCAAsC;AAGxC,MAAM,4BAA4B;AAAA,EACvC,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,cAAc,KAAK,SAAS,8BAA8B;AAAA,EAC5D,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { type Static } from '@sinclair/typebox';
|
|
2
1
|
/**
|
|
3
2
|
* A metadata object that allows for more fine-tuned XML model definitions.
|
|
4
3
|
*
|
|
5
4
|
* When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used to add that information. See examples for expected behavior.
|
|
6
5
|
*/
|
|
7
|
-
export declare const
|
|
6
|
+
export declare const XMLObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
8
7
|
/** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
|
|
9
|
-
name: import("@
|
|
8
|
+
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10
9
|
/** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
|
|
11
|
-
namespace: import("@
|
|
10
|
+
namespace: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
12
11
|
/** The prefix to be used for the name. */
|
|
13
|
-
prefix: import("@
|
|
12
|
+
prefix: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
14
13
|
/** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */
|
|
15
|
-
attribute: import("@
|
|
14
|
+
attribute: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
16
15
|
/** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). */
|
|
17
|
-
wrapped: import("@
|
|
16
|
+
wrapped: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
18
17
|
}>;
|
|
19
|
-
export type XMLObject = Static<typeof XMLObjectSchema>;
|
|
20
18
|
//# sourceMappingURL=xml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/xml.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/xml.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;IACpC,wWAAwW;;IAExW,4FAA4F;;IAE5F,0CAA0C;;IAE1C,yHAAyH;;IAEzH,2RAA2R;;EAE3R,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Type } from "@
|
|
2
|
-
const
|
|
1
|
+
import { Type } from "@scalar/typebox";
|
|
2
|
+
const XMLObjectSchemaDefinition = Type.Object({
|
|
3
3
|
/** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
|
|
4
4
|
name: Type.Optional(Type.String()),
|
|
5
5
|
/** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
|
|
@@ -12,6 +12,6 @@ const XMLObjectSchema = Type.Object({
|
|
|
12
12
|
wrapped: Type.Optional(Type.Boolean())
|
|
13
13
|
});
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
XMLObjectSchemaDefinition
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=xml.js.map
|