@scalar/workspace-store 0.12.0 → 0.14.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 +54 -0
- package/dist/client.d.ts +252 -30
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +144 -277
- package/dist/client.js.map +2 -2
- 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 +21 -0
- package/dist/helpers/deep-clone.d.ts.map +1 -0
- package/dist/helpers/deep-clone.js +18 -0
- package/dist/helpers/deep-clone.js.map +7 -0
- package/dist/helpers/get-resolved-ref.d.ts +19 -0
- package/dist/helpers/get-resolved-ref.d.ts.map +1 -0
- package/dist/helpers/get-resolved-ref.js +13 -0
- package/dist/helpers/get-resolved-ref.js.map +7 -0
- package/dist/helpers/merge-object.d.ts +9 -1
- package/dist/helpers/merge-object.d.ts.map +1 -1
- package/dist/helpers/merge-object.js +10 -2
- package/dist/helpers/merge-object.js.map +2 -2
- package/dist/helpers/overrides-proxy.d.ts +43 -1
- package/dist/helpers/overrides-proxy.d.ts.map +1 -1
- package/dist/helpers/overrides-proxy.js +2 -2
- package/dist/helpers/overrides-proxy.js.map +2 -2
- package/dist/mutators/helpers.d.ts +2 -34830
- package/dist/mutators/helpers.d.ts.map +1 -1
- package/dist/mutators/helpers.js.map +2 -2
- package/dist/mutators/request-example.d.ts.map +1 -1
- package/dist/mutators/request-example.js +4 -7
- package/dist/mutators/request-example.js.map +2 -2
- package/dist/navigation/helpers/traverse-document.js +2 -2
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +8 -5
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js +8 -5
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +9 -5
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/types.d.ts +3 -3
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/plugins.d.ts +93 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/plugins.js +107 -0
- package/dist/plugins.js.map +7 -0
- package/dist/schemas/extensions/document/x-internal.d.ts +4 -0
- package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -0
- package/dist/schemas/extensions/document/x-internal.js +8 -0
- package/dist/schemas/extensions/document/x-internal.js.map +7 -0
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -0
- package/dist/schemas/extensions/document/x-scalar-icon.js +8 -0
- package/dist/schemas/extensions/document/x-scalar-icon.js.map +7 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.js +8 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.js.map +7 -0
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +8 -0
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -0
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +16 -0
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +7 -0
- package/dist/schemas/extensions/operation/x-badge.d.ts +58 -0
- package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/x-badge.js +41 -0
- package/dist/schemas/extensions/operation/x-badge.js.map +7 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +23 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/x-code-samples.js +16 -0
- package/dist/schemas/extensions/operation/x-code-samples.js.map +7 -0
- package/dist/schemas/extensions/operation/x-post-response.d.ts +19 -0
- package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/x-post-response.js +8 -0
- package/dist/schemas/extensions/operation/x-post-response.js.map +7 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +18 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.js +16 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.js.map +7 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +11 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts.map +1 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.js +8 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +7 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +17 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.js +8 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +7 -0
- package/dist/schemas/extensions/schema/x-variable.d.ts +4 -0
- package/dist/schemas/extensions/schema/x-variable.d.ts.map +1 -0
- package/dist/schemas/extensions/schema/x-variable.js +8 -0
- package/dist/schemas/extensions/schema/x-variable.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +17 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js +8 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +4 -0
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +8 -0
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +15 -0
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-scalar-security-body.js +8 -0
- package/dist/schemas/extensions/security/x-scalar-security-body.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +15 -0
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-scalar-security-query.js +8 -0
- package/dist/schemas/extensions/security/x-scalar-security-query.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +18 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js +13 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +7 -0
- package/dist/schemas/extensions/security/x-tokenName.d.ts +12 -0
- package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-tokenName.js +8 -0
- package/dist/schemas/extensions/security/x-tokenName.js.map +7 -0
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +7 -0
- package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-use-pkce.js +13 -0
- package/dist/schemas/extensions/security/x-use-pkce.js.map +7 -0
- package/dist/schemas/extensions/tag/x-display-name.d.ts +12 -0
- package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -0
- package/dist/schemas/extensions/tag/x-display-name.js +8 -0
- package/dist/schemas/extensions/tag/x-display-name.js.map +7 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +28 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -0
- package/dist/schemas/extensions/tag/x-tag-groups.js +19 -0
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +7 -0
- package/dist/schemas/inmemory-workspace.d.ts +48 -5545
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +12 -3
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +12 -4
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.js +0 -6
- package/dist/schemas/reference-config/index.js.map +2 -2
- package/dist/schemas/reference-config/settings.d.ts +12 -1
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js +9 -2
- package/dist/schemas/reference-config/settings.js.map +2 -2
- package/dist/schemas/typebox-coerce.d.ts.map +1 -1
- package/dist/schemas/typebox-coerce.js +1 -3
- package/dist/schemas/typebox-coerce.js.map +2 -2
- package/dist/schemas/v3.1/loose/callback.d.ts +10 -0
- package/dist/schemas/v3.1/loose/callback.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/callback.js +11 -0
- package/dist/schemas/v3.1/loose/callback.js.map +7 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js +23 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
- package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
- package/dist/schemas/v3.1/loose/components.d.ts +43 -0
- package/dist/schemas/v3.1/loose/components.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/components.js +41 -0
- package/dist/schemas/v3.1/loose/components.js.map +7 -0
- package/dist/schemas/v3.1/loose/contact.d.ts +10 -0
- package/dist/schemas/v3.1/loose/contact.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/contact.js +13 -0
- package/dist/schemas/v3.1/loose/contact.js.map +7 -0
- package/dist/schemas/v3.1/loose/discriminator.d.ts +12 -0
- package/dist/schemas/v3.1/loose/discriminator.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/discriminator.js +11 -0
- package/dist/schemas/v3.1/loose/discriminator.js.map +7 -0
- package/dist/schemas/v3.1/loose/encoding.d.ts +15 -0
- package/dist/schemas/v3.1/loose/encoding.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/encoding.js +12 -0
- package/dist/schemas/v3.1/loose/encoding.js.map +7 -0
- package/dist/schemas/v3.1/loose/example.d.ts +16 -0
- package/dist/schemas/v3.1/loose/example.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/example.js +15 -0
- package/dist/schemas/v3.1/loose/example.js.map +7 -0
- package/dist/schemas/v3.1/loose/external-documentation.d.ts +8 -0
- package/dist/schemas/v3.1/loose/external-documentation.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/external-documentation.js +11 -0
- package/dist/schemas/v3.1/loose/external-documentation.js.map +7 -0
- package/dist/schemas/v3.1/loose/header.d.ts +355 -0
- package/dist/schemas/v3.1/loose/header.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/header.js +43 -0
- package/dist/schemas/v3.1/loose/header.js.map +7 -0
- package/dist/schemas/v3.1/loose/info.d.ts +48 -0
- package/dist/schemas/v3.1/loose/info.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/info.js +29 -0
- package/dist/schemas/v3.1/loose/info.js.map +7 -0
- package/dist/schemas/v3.1/loose/license.d.ts +10 -0
- package/dist/schemas/v3.1/loose/license.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/license.js +13 -0
- package/dist/schemas/v3.1/loose/license.js.map +7 -0
- package/dist/schemas/v3.1/loose/link.d.ts +30 -0
- package/dist/schemas/v3.1/loose/link.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/link.js +20 -0
- package/dist/schemas/v3.1/loose/link.js.map +7 -0
- package/dist/schemas/v3.1/loose/media-header-encoding.d.ts +1012 -0
- package/dist/schemas/v3.1/loose/media-header-encoding.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/media-header-encoding.js +19 -0
- package/dist/schemas/v3.1/loose/media-header-encoding.js.map +7 -0
- package/dist/schemas/v3.1/loose/media-type.d.ts +161 -0
- package/dist/schemas/v3.1/loose/media-type.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/media-type.js +18 -0
- package/dist/schemas/v3.1/loose/media-type.js.map +7 -0
- package/dist/schemas/v3.1/loose/oauth-flow.d.ts +95 -0
- package/dist/schemas/v3.1/loose/oauth-flow.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/oauth-flow.js +57 -0
- package/dist/schemas/v3.1/loose/oauth-flow.js.map +7 -0
- package/dist/schemas/v3.1/loose/oauthflows.d.ts +43 -0
- package/dist/schemas/v3.1/loose/oauthflows.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/oauthflows.js +21 -0
- package/dist/schemas/v3.1/loose/oauthflows.js.map +7 -0
- package/dist/schemas/v3.1/loose/openapi-document.d.ts +115 -0
- package/dist/schemas/v3.1/loose/openapi-document.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/openapi-document.js +64 -0
- package/dist/schemas/v3.1/loose/openapi-document.js.map +7 -0
- package/dist/schemas/v3.1/loose/operation.d.ts +1645 -0
- package/dist/schemas/v3.1/loose/operation.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/operation.js +61 -0
- package/dist/schemas/v3.1/loose/operation.js.map +7 -0
- package/dist/schemas/v3.1/loose/parameter.d.ts +1074 -0
- package/dist/schemas/v3.1/loose/parameter.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/parameter.js +54 -0
- package/dist/schemas/v3.1/loose/parameter.js.map +7 -0
- package/dist/schemas/v3.1/loose/path-item.d.ts +551 -0
- package/dist/schemas/v3.1/loose/path-item.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/path-item.js +42 -0
- package/dist/schemas/v3.1/loose/path-item.js.map +7 -0
- package/dist/schemas/v3.1/loose/path-operations.d.ts +2196 -0
- package/dist/schemas/v3.1/loose/path-operations.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/path-operations.js +21 -0
- package/dist/schemas/v3.1/loose/path-operations.js.map +7 -0
- package/dist/schemas/v3.1/loose/paths.d.ts +20 -0
- package/dist/schemas/v3.1/loose/paths.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/paths.js +11 -0
- package/dist/schemas/v3.1/loose/paths.js.map +7 -0
- package/dist/schemas/v3.1/loose/reference.d.ts +26 -0
- package/dist/schemas/v3.1/loose/reference.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/reference.js +24 -0
- package/dist/schemas/v3.1/loose/reference.js.map +7 -0
- package/dist/schemas/v3.1/loose/request-body.d.ts +339 -0
- package/dist/schemas/v3.1/loose/request-body.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/request-body.js +14 -0
- package/dist/schemas/v3.1/loose/request-body.js.map +7 -0
- package/dist/schemas/v3.1/loose/response.d.ts +698 -0
- package/dist/schemas/v3.1/loose/response.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/response.js +18 -0
- package/dist/schemas/v3.1/loose/response.js.map +7 -0
- package/dist/schemas/v3.1/loose/responses.d.ts +710 -0
- package/dist/schemas/v3.1/loose/responses.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/responses.js +11 -0
- package/dist/schemas/v3.1/loose/responses.js.map +7 -0
- package/dist/schemas/v3.1/loose/schema.d.ts +373 -0
- package/dist/schemas/v3.1/loose/schema.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/schema.js +146 -0
- package/dist/schemas/v3.1/loose/schema.js.map +7 -0
- package/dist/schemas/v3.1/loose/security-requirement.d.ts +11 -0
- package/dist/schemas/v3.1/loose/security-requirement.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/security-requirement.js +10 -0
- package/dist/schemas/v3.1/loose/security-requirement.js.map +7 -0
- package/dist/schemas/v3.1/loose/security-scheme.d.ts +169 -0
- package/dist/schemas/v3.1/loose/security-scheme.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/security-scheme.js +64 -0
- package/dist/schemas/v3.1/loose/security-scheme.js.map +7 -0
- package/dist/schemas/v3.1/loose/server-variable.d.ts +10 -0
- package/dist/schemas/v3.1/loose/server-variable.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/server-variable.js +13 -0
- package/dist/schemas/v3.1/loose/server-variable.js.map +7 -0
- package/dist/schemas/v3.1/loose/server.d.ts +14 -0
- package/dist/schemas/v3.1/loose/server.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/server.js +14 -0
- package/dist/schemas/v3.1/loose/server.js.map +7 -0
- package/dist/schemas/v3.1/loose/tag.d.ts +19 -0
- package/dist/schemas/v3.1/loose/tag.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/tag.js +23 -0
- package/dist/schemas/v3.1/loose/tag.js.map +7 -0
- package/dist/schemas/v3.1/loose/xml.d.ts +18 -0
- package/dist/schemas/v3.1/loose/xml.d.ts.map +1 -0
- package/dist/schemas/v3.1/loose/xml.js +17 -0
- package/dist/schemas/v3.1/loose/xml.js.map +7 -0
- package/dist/schemas/v3.1/strict/callback.d.ts +1 -8
- package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/callback.js +5 -10
- package/dist/schemas/v3.1/strict/callback.js.map +2 -2
- package/dist/schemas/v3.1/strict/components.d.ts +24 -28
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +35 -32
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.d.ts +2 -2
- package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/contact.js +8 -13
- package/dist/schemas/v3.1/strict/contact.js.map +2 -2
- package/dist/schemas/v3.1/strict/discriminator.d.ts +2 -2
- package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js +6 -11
- package/dist/schemas/v3.1/strict/discriminator.js.map +2 -2
- package/dist/schemas/v3.1/strict/encoding.d.ts +3 -10
- package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +7 -12
- package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
- package/dist/schemas/v3.1/strict/example.d.ts +2 -2
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +10 -15
- package/dist/schemas/v3.1/strict/example.js.map +2 -2
- package/dist/schemas/v3.1/strict/external-documentation.d.ts +2 -2
- package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js +6 -11
- package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
- package/dist/schemas/v3.1/strict/header.d.ts +292 -54
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +14 -17
- package/dist/schemas/v3.1/strict/header.js.map +2 -2
- package/dist/schemas/v3.1/strict/info.d.ts +11 -5
- package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +2 -2
- package/dist/schemas/v3.1/strict/info.js.map +2 -2
- package/dist/schemas/v3.1/strict/license.d.ts +2 -2
- package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/license.js +8 -13
- package/dist/schemas/v3.1/strict/license.js.map +2 -2
- package/dist/schemas/v3.1/strict/link.d.ts +6 -6
- package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/link.js +14 -19
- package/dist/schemas/v3.1/strict/link.js.map +2 -2
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +1389 -164
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.d.ts +145 -19
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +13 -20
- package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +24 -8
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +9 -9
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +12 -4
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js +10 -13
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +7 -5
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +0 -2
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +4711 -343
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +40 -35
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +1226 -164
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +23 -25
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +1320 -102
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +35 -40
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-operations.d.ts +10601 -11739
- package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-operations.js +3 -1
- package/dist/schemas/v3.1/strict/path-operations.js.map +2 -2
- package/dist/schemas/v3.1/strict/paths.d.ts +3 -5514
- package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.js +4 -9
- package/dist/schemas/v3.1/strict/paths.js.map +2 -2
- package/dist/schemas/v3.1/strict/reference.d.ts +12 -5
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/reference.js +4 -4
- package/dist/schemas/v3.1/strict/reference.js.map +2 -2
- package/dist/schemas/v3.1/strict/request-body.d.ts +468 -56
- package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.js +8 -13
- package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
- package/dist/schemas/v3.1/strict/response.d.ts +1121 -130
- package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/response.js +11 -16
- package/dist/schemas/v3.1/strict/response.js.map +2 -2
- package/dist/schemas/v3.1/strict/responses.d.ts +2352 -139
- package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/responses.js +4 -6
- package/dist/schemas/v3.1/strict/responses.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +232 -15
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +206 -31
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-requirement.d.ts +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js +4 -9
- package/dist/schemas/v3.1/strict/security-requirement.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +56 -26
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +11 -8
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/v3.1/strict/server-variable.d.ts +2 -2
- package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js +8 -13
- package/dist/schemas/v3.1/strict/server-variable.js.map +2 -2
- package/dist/schemas/v3.1/strict/server.d.ts +4 -4
- package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +8 -13
- package/dist/schemas/v3.1/strict/server.js.map +2 -2
- package/dist/schemas/v3.1/strict/tag.d.ts +7 -3
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +6 -8
- package/dist/schemas/v3.1/strict/tag.js.map +2 -2
- package/dist/schemas/v3.1/strict/xml.d.ts +2 -2
- package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js +12 -17
- package/dist/schemas/v3.1/strict/xml.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +10 -2
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +39 -13
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace.d.ts +63 -34
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +1 -0
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +2 -3290
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js.map +2 -2
- package/dist/types.d.ts +0 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +17 -11
- package/dist/schemas/v3.1/strict/extensions.d.ts +0 -4
- package/dist/schemas/v3.1/strict/extensions.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/extensions.js +0 -6
- package/dist/schemas/v3.1/strict/extensions.js.map +0 -7
- package/dist/schemas/v3.1/type-guard.d.ts +0 -10
- package/dist/schemas/v3.1/type-guard.d.ts.map +0 -1
- package/dist/schemas/v3.1/type-guard.js +0 -7
- package/dist/schemas/v3.1/type-guard.js.map +0 -7
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.
|
|
3
|
+
*
|
|
4
|
+
* A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.
|
|
5
|
+
*
|
|
6
|
+
* When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.
|
|
7
|
+
*
|
|
8
|
+
* An empty Security Requirement Object ({}) indicates anonymous access is supported.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SecurityRequirementObjectSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
11
|
+
//# sourceMappingURL=security-requirement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-requirement.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/loose/security-requirement.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B,mJAI3C,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const SecurityRequirementObjectSchema = Type.Record(
|
|
3
|
+
Type.String(),
|
|
4
|
+
/** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */
|
|
5
|
+
Type.Array(Type.String())
|
|
6
|
+
);
|
|
7
|
+
export {
|
|
8
|
+
SecurityRequirementObjectSchema
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=security-requirement.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/loose/security-requirement.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n */\nexport const SecurityRequirementObjectSchema = Type.Record(\n Type.String(),\n /** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type \"oauth2\" or \"openIdConnect\", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */\n Type.Array(Type.String()),\n)\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAWd,MAAM,kCAAkC,KAAK;AAAA,EAClD,KAAK,OAAO;AAAA;AAAA,EAEZ,KAAK,MAAM,KAAK,OAAO,CAAC;AAC1B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
export declare const DescriptionSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
3
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const ApiKeySchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
6
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
7
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
9
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
11
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
12
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"apiKey">>;
|
|
13
|
+
/** The name of the header, query or cookie parameter to be used. */
|
|
14
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
/** The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
16
|
+
in: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
}>]>;
|
|
18
|
+
export declare const HttpSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
19
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
20
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
22
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
24
|
+
'x-scalar-secret-username': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
|
+
'x-scalar-secret-password': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
26
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
27
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
28
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"http">>;
|
|
29
|
+
/** 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. */
|
|
30
|
+
scheme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
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. */
|
|
32
|
+
bearerFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
|
+
}>]>;
|
|
34
|
+
export declare const OAuth2: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
35
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
36
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
37
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
38
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
39
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"oauth2">>;
|
|
40
|
+
/** An object containing configuration information for the flow types supported. */
|
|
41
|
+
flows: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
42
|
+
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
43
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
44
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
45
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
46
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
47
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
48
|
+
authorizationUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
49
|
+
}>]>>;
|
|
50
|
+
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
51
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
52
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
53
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
54
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
55
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
56
|
+
tokenUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
57
|
+
}>]>>;
|
|
58
|
+
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
59
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
60
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
61
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
62
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
64
|
+
tokenUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
65
|
+
}>]>>;
|
|
66
|
+
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
67
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
68
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
69
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
70
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
71
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
72
|
+
authorizationUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
73
|
+
tokenUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
74
|
+
}>]>>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>]>;
|
|
77
|
+
export declare const OpenIdConnect: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
78
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
79
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
80
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
81
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
82
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"openIdConnect">>;
|
|
83
|
+
/** Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
84
|
+
openIdConnectUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
85
|
+
}>]>;
|
|
86
|
+
/**
|
|
87
|
+
* Defines a security scheme that can be used by the operations.
|
|
88
|
+
*
|
|
89
|
+
* 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.
|
|
90
|
+
*/
|
|
91
|
+
export declare const SecuritySchemeObjectSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
92
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
93
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
94
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
95
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
96
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
97
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
98
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"apiKey">>;
|
|
99
|
+
/** The name of the header, query or cookie parameter to be used. */
|
|
100
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
101
|
+
/** The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
102
|
+
in: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
103
|
+
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
104
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
105
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
106
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
107
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
108
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
109
|
+
'x-scalar-secret-username': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
110
|
+
'x-scalar-secret-password': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
111
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
112
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
113
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"http">>;
|
|
114
|
+
/** 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. */
|
|
115
|
+
scheme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
116
|
+
/** 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. */
|
|
117
|
+
bearerFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
118
|
+
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
119
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
120
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
121
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
122
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
123
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"oauth2">>;
|
|
124
|
+
/** An object containing configuration information for the flow types supported. */
|
|
125
|
+
flows: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
126
|
+
implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
127
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
128
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
129
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
130
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
131
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
132
|
+
authorizationUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
133
|
+
}>]>>;
|
|
134
|
+
password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
135
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
136
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
137
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
138
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
139
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
140
|
+
tokenUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
141
|
+
}>]>>;
|
|
142
|
+
clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
143
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
144
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
145
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
146
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
147
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
148
|
+
tokenUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
149
|
+
}>]>>;
|
|
150
|
+
authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
151
|
+
refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
152
|
+
scopes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
153
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
154
|
+
'x-scalar-secret-token': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
155
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
156
|
+
authorizationUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
157
|
+
tokenUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
158
|
+
}>]>>;
|
|
159
|
+
}>>;
|
|
160
|
+
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
161
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
162
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
163
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
164
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
165
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"openIdConnect">>;
|
|
166
|
+
/** Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
167
|
+
openIdConnectUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
168
|
+
}>]>]>;
|
|
169
|
+
//# sourceMappingURL=security-scheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/loose/security-scheme.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,iBAAiB;IAC5B,qGAAqG;;EAErG,CAAA;AAEF,eAAO,MAAM,YAAY;IAJvB,qGAAqG;;;;;IAQnG,kHAAkH;;IAElH,oEAAoE;;IAEpE,oFAAoF;;IAGvF,CAAA;AAED,eAAO,MAAM,UAAU;IAjBrB,qGAAqG;;;;;;;;IAsBnG,kHAAkH;;IAElH,sPAAsP;;IAEtP,uMAAuM;;IAG1M,CAAA;AAED,eAAO,MAAM,MAAM;IA/BjB,qGAAqG;;;IAkCnG,kHAAkH;;IAElH,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGtF,CAAA;AAED,eAAO,MAAM,aAAa;IAzCxB,qGAAqG;;;IA4CnG,kHAAkH;;IAElH,qFAAqF;;IAGxF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;IAxDrC,qGAAqG;;;;;IAQnG,kHAAkH;;IAElH,oEAAoE;;IAEpE,oFAAoF;;;IAZtF,qGAAqG;;;;;;;;IAsBnG,kHAAkH;;IAElH,sPAAsP;;IAEtP,uMAAuM;;;IA1BzM,qGAAqG;;;IAkCnG,kHAAkH;;IAElH,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IApCrF,qGAAqG;;;IA4CnG,kHAAkH;;IAElH,qFAAqF;;MAUc,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { compose } from "../../../schemas/compose.js";
|
|
3
|
+
import { OAuthFlowsObjectSchema } from "./oauthflows.js";
|
|
4
|
+
import {
|
|
5
|
+
XScalarSecretHTTPSchema,
|
|
6
|
+
XScalarSecretTokenSchema
|
|
7
|
+
} from "../../../schemas/extensions/security/x-scalar-security-secrets.js";
|
|
8
|
+
const DescriptionSchema = Type.Object({
|
|
9
|
+
/** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
|
|
10
|
+
description: Type.Optional(Type.String())
|
|
11
|
+
});
|
|
12
|
+
const ApiKeySchema = compose(
|
|
13
|
+
DescriptionSchema,
|
|
14
|
+
XScalarSecretTokenSchema,
|
|
15
|
+
Type.Object({
|
|
16
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
17
|
+
type: Type.Optional(Type.Literal("apiKey")),
|
|
18
|
+
/** The name of the header, query or cookie parameter to be used. */
|
|
19
|
+
name: Type.Optional(Type.String()),
|
|
20
|
+
/** The location of the API key. Valid values are "query", "header", or "cookie". */
|
|
21
|
+
in: Type.Optional(Type.String())
|
|
22
|
+
})
|
|
23
|
+
);
|
|
24
|
+
const HttpSchema = compose(
|
|
25
|
+
DescriptionSchema,
|
|
26
|
+
XScalarSecretTokenSchema,
|
|
27
|
+
XScalarSecretHTTPSchema,
|
|
28
|
+
Type.Object({
|
|
29
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
30
|
+
type: Type.Optional(Type.Literal("http")),
|
|
31
|
+
/** 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. */
|
|
32
|
+
scheme: Type.Optional(Type.String()),
|
|
33
|
+
/** 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. */
|
|
34
|
+
bearerFormat: Type.Optional(Type.String())
|
|
35
|
+
})
|
|
36
|
+
);
|
|
37
|
+
const OAuth2 = compose(
|
|
38
|
+
DescriptionSchema,
|
|
39
|
+
Type.Object({
|
|
40
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
41
|
+
type: Type.Optional(Type.Literal("oauth2")),
|
|
42
|
+
/** An object containing configuration information for the flow types supported. */
|
|
43
|
+
flows: Type.Optional(OAuthFlowsObjectSchema)
|
|
44
|
+
})
|
|
45
|
+
);
|
|
46
|
+
const OpenIdConnect = compose(
|
|
47
|
+
DescriptionSchema,
|
|
48
|
+
Type.Object({
|
|
49
|
+
/** The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
|
|
50
|
+
type: Type.Optional(Type.Literal("openIdConnect")),
|
|
51
|
+
/** Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
|
|
52
|
+
openIdConnectUrl: Type.Optional(Type.String())
|
|
53
|
+
})
|
|
54
|
+
);
|
|
55
|
+
const SecuritySchemeObjectSchema = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect]);
|
|
56
|
+
export {
|
|
57
|
+
ApiKeySchema,
|
|
58
|
+
DescriptionSchema,
|
|
59
|
+
HttpSchema,
|
|
60
|
+
OAuth2,
|
|
61
|
+
OpenIdConnect,
|
|
62
|
+
SecuritySchemeObjectSchema
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=security-scheme.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/loose/security-scheme.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nimport { compose } from '@/schemas/compose'\n\nimport { OAuthFlowsObjectSchema } from './oauthflows'\nimport {\n XScalarSecretHTTPSchema,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\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 /** The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Optional(Type.Literal('apiKey')),\n /** The name of the header, query or cookie parameter to be used. */\n name: Type.Optional(Type.String()),\n /** The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: Type.Optional(Type.String()),\n }),\n)\n\nexport const HttpSchema = compose(\n DescriptionSchema,\n XScalarSecretTokenSchema,\n XScalarSecretHTTPSchema,\n Type.Object({\n /** The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Optional(Type.Literal('http')),\n /** 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.Optional(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 /** The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Optional(Type.Literal('oauth2')),\n /** An object containing configuration information for the flow types supported. */\n flows: Type.Optional(OAuthFlowsObjectSchema),\n }),\n)\n\nexport const OpenIdConnect = compose(\n DescriptionSchema,\n Type.Object({\n /** The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Optional(Type.Literal('openIdConnect')),\n /** Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: Type.Optional(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 SecuritySchemeObjectSchema = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect])\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AAExB,SAAS,8BAA8B;AACvC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEA,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,SAAS,KAAK,QAAQ,QAAQ,CAAC;AAAA;AAAA,IAE1C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEjC,IAAI,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACjC,CAAC;AACH;AAEO,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,QAAQ,MAAM,CAAC;AAAA;AAAA,IAExC,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEnC,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC3C,CAAC;AACH;AAEO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,QAAQ,QAAQ,CAAC;AAAA;AAAA,IAE1C,OAAO,KAAK,SAAS,sBAAsB;AAAA,EAC7C,CAAC;AACH;AAEO,MAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,QAAQ,eAAe,CAAC;AAAA;AAAA,IAEjD,kBAAkB,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC/C,CAAC;AACH;AAOO,MAAM,6BAA6B,KAAK,MAAM,CAAC,cAAc,YAAY,QAAQ,aAAa,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** An object representing a Server Variable for server URL template substitution. */
|
|
2
|
+
export declare const ServerVariableObjectSchema: import("@sinclair/typebox").TObject<{
|
|
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
|
+
enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
5
|
+
/** 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. */
|
|
6
|
+
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
+
/** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */
|
|
8
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=server-variable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/loose/server-variable.ts"],"names":[],"mappings":"AAEA,qFAAqF;AACrF,eAAO,MAAM,0BAA0B;IACrC,kIAAkI;;IAElI,qVAAqV;;IAErV,mHAAmH;;EAEnH,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const ServerVariableObjectSchema = Type.Object({
|
|
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
|
+
enum: Type.Optional(Type.Array(Type.String())),
|
|
5
|
+
/** 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. */
|
|
6
|
+
default: Type.Optional(Type.String()),
|
|
7
|
+
/** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */
|
|
8
|
+
description: Type.Optional(Type.String())
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
ServerVariableObjectSchema
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=server-variable.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/loose/server-variable.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/** An object representing a Server Variable for server URL template substitution. */\nexport const ServerVariableObjectSchema = 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 /** 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,6BAA6B,KAAK,OAAO;AAAA;AAAA,EAEpD,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
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** An object representing a Server. */
|
|
2
|
+
export declare const ServerObjectSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
/** 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}. */
|
|
4
|
+
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
/** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
|
|
6
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
+
/** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
|
|
8
|
+
variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
9
|
+
enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
10
|
+
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
}>>>;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/loose/server.ts"],"names":[],"mappings":"AAIA,uCAAuC;AACvC,eAAO,MAAM,kBAAkB;IAC7B,kSAAkS;;IAElS,gIAAgI;;IAEhI,oHAAoH;;;;;;EAEpH,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { ServerVariableObjectSchema } from "./server-variable.js";
|
|
3
|
+
const ServerObjectSchema = Type.Object({
|
|
4
|
+
/** 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: Type.Optional(Type.String()),
|
|
6
|
+
/** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
|
|
7
|
+
description: Type.Optional(Type.String()),
|
|
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(), ServerVariableObjectSchema))
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
ServerObjectSchema
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=server.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/loose/server.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nimport { ServerVariableObjectSchema } from './server-variable'\n\n/** An object representing a Server. */\nexport const ServerObjectSchema = Type.Object({\n /** 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.Optional(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(), ServerVariableObjectSchema)),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,kCAAkC;AAGpC,MAAM,qBAAqB,KAAK,OAAO;AAAA;AAAA,EAE5C,KAAK,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEhC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,0BAA0B,CAAC;AACjF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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. */
|
|
2
|
+
export declare const TagObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
3
|
+
/** The name of the tag. */
|
|
4
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
6
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
+
/** Additional external documentation for this tag. */
|
|
8
|
+
externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
9
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
}>>;
|
|
12
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
13
|
+
'x-displayName': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
15
|
+
'x-internal': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
16
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
17
|
+
'x-scalar-ignore': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
18
|
+
}>]>;
|
|
19
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/loose/tag.ts"],"names":[],"mappings":"AASA,sKAAsK;AACtK,eAAO,MAAM,eAAe;IAExB,2BAA2B;;IAE3B,6FAA6F;;IAE7F,sDAAsD;;;;;;;;;;;IAMzD,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { compose } from "../../../schemas/compose.js";
|
|
3
|
+
import { ExternalDocumentationObjectSchema } from "./external-documentation.js";
|
|
4
|
+
import { XDisplayNameSchema } from "../../../schemas/extensions/tag/x-display-name.js";
|
|
5
|
+
import { XScalarIgnoreSchema } from "../../../schemas/extensions/document/x-scalar-ignore.js";
|
|
6
|
+
import { XInternalSchema } from "../../../schemas/extensions/document/x-internal.js";
|
|
7
|
+
const TagObjectSchema = compose(
|
|
8
|
+
Type.Object({
|
|
9
|
+
/** The name of the tag. */
|
|
10
|
+
name: Type.Optional(Type.String()),
|
|
11
|
+
/** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
|
|
12
|
+
description: Type.Optional(Type.String()),
|
|
13
|
+
/** Additional external documentation for this tag. */
|
|
14
|
+
externalDocs: Type.Optional(ExternalDocumentationObjectSchema)
|
|
15
|
+
}),
|
|
16
|
+
XDisplayNameSchema,
|
|
17
|
+
XInternalSchema,
|
|
18
|
+
XScalarIgnoreSchema
|
|
19
|
+
);
|
|
20
|
+
export {
|
|
21
|
+
TagObjectSchema
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=tag.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/loose/tag.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nimport { compose } from '@/schemas/compose'\n\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { XDisplayNameSchema } from '@/schemas/extensions/tag/x-display-name'\nimport { XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { XInternalSchema } from '@/schemas/extensions/document/x-internal'\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 TagObjectSchema = compose(\n Type.Object({\n /** The name of the tag. */\n name: Type.Optional(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(ExternalDocumentationObjectSchema),\n }),\n XDisplayNameSchema,\n XInternalSchema,\n XScalarIgnoreSchema,\n)\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AAExB,SAAS,yCAAyC;AAClD,SAAS,0BAA0B;AACnC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;AAGzB,MAAM,kBAAkB;AAAA,EAC7B,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEjC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,cAAc,KAAK,SAAS,iCAAiC;AAAA,EAC/D,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A metadata object that allows for more fine-tuned XML model definitions.
|
|
3
|
+
*
|
|
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.
|
|
5
|
+
*/
|
|
6
|
+
export declare const XMLObjectSchema: import("@sinclair/typebox").TObject<{
|
|
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. */
|
|
8
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
/** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
|
|
10
|
+
namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
/** The prefix to be used for the name. */
|
|
12
|
+
prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
/** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */
|
|
14
|
+
attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
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). */
|
|
16
|
+
wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=xml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/loose/xml.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAC1B,wWAAwW;;IAExW,4FAA4F;;IAE5F,0CAA0C;;IAE1C,yHAAyH;;IAEzH,2RAA2R;;EAE3R,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const XMLObjectSchema = Type.Object({
|
|
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
|
+
name: Type.Optional(Type.String()),
|
|
5
|
+
/** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
|
|
6
|
+
namespace: Type.Optional(Type.String()),
|
|
7
|
+
/** The prefix to be used for the name. */
|
|
8
|
+
prefix: Type.Optional(Type.String()),
|
|
9
|
+
/** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */
|
|
10
|
+
attribute: Type.Optional(Type.Boolean()),
|
|
11
|
+
/** 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). */
|
|
12
|
+
wrapped: Type.Optional(Type.Boolean())
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
XMLObjectSchema
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=xml.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/v3.1/loose/xml.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * A metadata object that allows for more fine-tuned XML model definitions.\n *\n * 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.\n */\nexport const XMLObjectSchema = Type.Object({\n /** 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. */\n name: Type.Optional(Type.String()),\n /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */\n namespace: Type.Optional(Type.String()),\n /** The prefix to be used for the name. */\n prefix: Type.Optional(Type.String()),\n /** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */\n attribute: Type.Optional(Type.Boolean()),\n /** 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). */\n wrapped: Type.Optional(Type.Boolean()),\n})\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,kBAAkB,KAAK,OAAO;AAAA;AAAA,EAEzC,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEjC,WAAW,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEtC,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEnC,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,EAEvC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AACvC,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import { type TSchema } from '@sinclair/typebox';
|
|
2
|
-
export declare const callbackObjectSchemaBuilder: <P extends TSchema>(pathItem: P) => import("@sinclair/typebox").
|
|
3
|
-
$ref: import("@sinclair/typebox").TString;
|
|
4
|
-
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
7
|
-
$status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
|
|
8
|
-
$global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
9
|
-
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
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>]>>;
|
|
10
3
|
//# 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":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/callback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAGtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,YAAY,CAAC,kLAKvE,CAAA"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Type.
|
|
7
|
-
Type.String(),
|
|
8
|
-
/** A Path Item Object used to define a callback request and expected responses. A complete example is available. */
|
|
9
|
-
Type.Union([pathItem, ReferenceObjectSchema])
|
|
10
|
-
),
|
|
11
|
-
ExtensionsSchema
|
|
2
|
+
import { reference } from "../../../schemas/v3.1/strict/reference.js";
|
|
3
|
+
const callbackObjectSchemaBuilder = (pathItem) => Type.Record(
|
|
4
|
+
Type.String(),
|
|
5
|
+
/** A Path Item Object used to define a callback request and expected responses. A complete example is available. */
|
|
6
|
+
Type.Union([pathItem, reference(pathItem)])
|
|
12
7
|
);
|
|
13
8
|
export {
|
|
14
9
|
callbackObjectSchemaBuilder
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/callback.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport {
|
|
5
|
-
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { reference } from '@/schemas/v3.1/strict/reference'\n\nexport const callbackObjectSchemaBuilder = <P extends TSchema>(pathItem: P) =>\n 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([pathItem, reference(pathItem)]),\n )\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,iBAAiB;AAEnB,MAAM,8BAA8B,CAAoB,aAC7D,KAAK;AAAA,EACH,KAAK,OAAO;AAAA;AAAA,EAEZ,KAAK,MAAM,CAAC,UAAU,UAAU,QAAQ,CAAC,CAAC;AAC5C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|