@scalar/workspace-store 0.11.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 +71 -0
- package/README.md +60 -7
- package/dist/client.d.ts +253 -32
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +181 -279
- package/dist/client.js.map +2 -2
- package/dist/helpers/apply-selective-updates.d.ts +2 -2
- package/dist/helpers/apply-selective-updates.d.ts.map +1 -1
- package/dist/helpers/apply-selective-updates.js +2 -2
- 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 +144 -8
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +13 -2
- 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/typebox-types.d.ts +14 -0
- package/dist/schemas/typebox-types.d.ts.map +1 -0
- package/dist/schemas/typebox-types.js +19 -0
- package/dist/schemas/typebox-types.js.map +7 -0
- 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 +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 +22 -12
- package/dist/helpers/proxy.d.ts +0 -63
- package/dist/helpers/proxy.d.ts.map +0 -1
- package/dist/helpers/proxy.js +0 -107
- package/dist/helpers/proxy.js.map +0 -7
- 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
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { type Static, type
|
|
1
|
+
import { type Static, type TObject, type TOptional, type TRecord, type TString, type TUnion } from '@sinclair/typebox';
|
|
2
2
|
import { SchemaObjectSchema } from './schema.js';
|
|
3
3
|
import { ResponseObjectSchema } from './response.js';
|
|
4
|
-
import {
|
|
4
|
+
import { type ReferenceType } from './reference.js';
|
|
5
5
|
import { ParameterObjectSchema } from './parameter.js';
|
|
6
6
|
import { ExampleObjectSchema } from './example.js';
|
|
7
7
|
import { RequestBodyObjectSchema } from './request-body.js';
|
|
8
8
|
import { SecuritySchemeObjectSchema } from './security-scheme.js';
|
|
9
9
|
import { LinkObjectSchema } from './link.js';
|
|
10
|
-
import { ExtensionsSchema } from '../../../schemas/v3.1/strict/extensions.js';
|
|
11
10
|
import { HeaderObjectSchema } from '../../../schemas/v3.1/strict/media-header-encoding.js';
|
|
12
11
|
import { CallbackObjectSchema, PathItemObjectSchema } from '../../../schemas/v3.1/strict/path-operations.js';
|
|
13
12
|
/**
|
|
@@ -17,31 +16,28 @@ import { CallbackObjectSchema, PathItemObjectSchema } from '../../../schemas/v3.
|
|
|
17
16
|
*
|
|
18
17
|
* @see https://github.com/microsoft/TypeScript/issues/43817#issuecomment-827746462
|
|
19
18
|
*/
|
|
20
|
-
export type ComponentsObjectSchemaType =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}>,
|
|
43
|
-
typeof ExtensionsSchema
|
|
44
|
-
]>;
|
|
19
|
+
export type ComponentsObjectSchemaType = TObject<{
|
|
20
|
+
/** Schema Objects that define input and output data types. These can be objects, primitives, and arrays, and are a superset of JSON Schema Specification Draft 2020-12. */
|
|
21
|
+
schemas: TOptional<TRecord<TString, TUnion<[typeof SchemaObjectSchema, ReferenceType<typeof SchemaObjectSchema>]>>>;
|
|
22
|
+
/** Response Objects that describe a single response from an API operation, including headers, content, and links. */
|
|
23
|
+
responses: TOptional<TRecord<TString, TUnion<[typeof ResponseObjectSchema, ReferenceType<typeof ResponseObjectSchema>]>>>;
|
|
24
|
+
/** Parameter Objects that describe a single operation parameter with a unique combination of name and location (query, header, path, or cookie). */
|
|
25
|
+
parameters: TOptional<TRecord<TString, TUnion<[typeof ParameterObjectSchema, ReferenceType<typeof ParameterObjectSchema>]>>>;
|
|
26
|
+
/** Example Objects that group example values with metadata for demonstrating usage of properties, parameters, and objects. */
|
|
27
|
+
examples: TOptional<TRecord<TString, TUnion<[typeof ExampleObjectSchema, ReferenceType<typeof ExampleObjectSchema>]>>>;
|
|
28
|
+
/** Request Body Objects that describe a single request body with content and optional required flag. */
|
|
29
|
+
requestBodies: TOptional<TRecord<TString, TUnion<[typeof RequestBodyObjectSchema, ReferenceType<typeof RequestBodyObjectSchema>]>>>;
|
|
30
|
+
/** Header Objects that describe HTTP response headers and multipart representation headers, following Parameter Object structure. */
|
|
31
|
+
headers: TOptional<TRecord<TString, TUnion<[typeof HeaderObjectSchema, ReferenceType<typeof HeaderObjectSchema>]>>>;
|
|
32
|
+
/** Security Scheme Objects that define security mechanisms for API operations (apiKey, http, mutualTLS, oauth2, openIdConnect). */
|
|
33
|
+
securitySchemes: TOptional<TRecord<TString, TUnion<[typeof SecuritySchemeObjectSchema, ReferenceType<typeof SecuritySchemeObjectSchema>]>>>;
|
|
34
|
+
/** Link Objects that represent design-time links for responses, providing relationships and traversal mechanisms between operations. */
|
|
35
|
+
links: TOptional<TRecord<TString, TUnion<[typeof LinkObjectSchema, ReferenceType<typeof LinkObjectSchema>]>>>;
|
|
36
|
+
/** Callback Objects that describe out-of-band callbacks related to parent operations, with Path Item Objects for request definitions. */
|
|
37
|
+
callbacks: TOptional<TRecord<TString, TUnion<[typeof CallbackObjectSchema, ReferenceType<typeof CallbackObjectSchema>]>>>;
|
|
38
|
+
/** Path Item Objects that describe operations available on a single path, including HTTP methods and shared parameters. */
|
|
39
|
+
pathItems: TOptional<TRecord<TString, typeof PathItemObjectSchema>>;
|
|
40
|
+
}>;
|
|
45
41
|
/** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */
|
|
46
42
|
export declare const ComponentsObjectSchema: ComponentsObjectSchemaType;
|
|
47
43
|
export type ComponentsObject = Static<typeof ComponentsObjectSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAa,KAAK,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAChF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAElG;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;IAC/C,2KAA2K;IAC3K,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,kBAAkB,EAAE,aAAa,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACnH,qHAAqH;IACrH,SAAS,EAAE,SAAS,CAClB,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,oBAAoB,EAAE,aAAa,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CACpG,CAAA;IACD,oJAAoJ;IACpJ,UAAU,EAAE,SAAS,CACnB,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,qBAAqB,EAAE,aAAa,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CACtG,CAAA;IACD,8HAA8H;IAC9H,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,mBAAmB,EAAE,aAAa,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACtH,wGAAwG;IACxG,aAAa,EAAE,SAAS,CACtB,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,uBAAuB,EAAE,aAAa,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAC1G,CAAA;IACD,qIAAqI;IACrI,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,kBAAkB,EAAE,aAAa,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACnH,mIAAmI;IACnI,eAAe,EAAE,SAAS,CACxB,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,0BAA0B,EAAE,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAChH,CAAA;IACD,wIAAwI;IACxI,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,gBAAgB,EAAE,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7G,yIAAyI;IACzI,SAAS,EAAE,SAAS,CAClB,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,oBAAoB,EAAE,aAAa,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CACpG,CAAA;IACD,2HAA2H;IAC3H,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,oBAAoB,CAAC,CAAC,CAAA;CACpE,CAAC,CAAA;AAEF,kOAAkO;AAClO,eAAO,MAAM,sBAAsB,EAAE,0BAiCnC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -3,45 +3,48 @@ import {
|
|
|
3
3
|
} from "@sinclair/typebox";
|
|
4
4
|
import { SchemaObjectSchema } from "./schema.js";
|
|
5
5
|
import { ResponseObjectSchema } from "./response.js";
|
|
6
|
-
import {
|
|
6
|
+
import { reference } from "./reference.js";
|
|
7
7
|
import { ParameterObjectSchema } from "./parameter.js";
|
|
8
8
|
import { ExampleObjectSchema } from "./example.js";
|
|
9
9
|
import { RequestBodyObjectSchema } from "./request-body.js";
|
|
10
10
|
import { SecuritySchemeObjectSchema } from "./security-scheme.js";
|
|
11
11
|
import { LinkObjectSchema } from "./link.js";
|
|
12
|
-
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
13
|
-
import { compose } from "../../../schemas/compose.js";
|
|
14
12
|
import { HeaderObjectSchema } from "../../../schemas/v3.1/strict/media-header-encoding.js";
|
|
15
13
|
import { CallbackObjectSchema, PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
|
|
16
|
-
const ComponentsObjectSchema =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
const ComponentsObjectSchema = Type.Object({
|
|
15
|
+
/** An object to hold reusable Schema Objects. */
|
|
16
|
+
schemas: Type.Optional(Type.Record(Type.String(), Type.Union([SchemaObjectSchema, reference(SchemaObjectSchema)]))),
|
|
17
|
+
/** An object to hold reusable Response Objects. */
|
|
18
|
+
responses: Type.Optional(
|
|
19
|
+
Type.Record(Type.String(), Type.Union([ResponseObjectSchema, reference(ResponseObjectSchema)]))
|
|
20
|
+
),
|
|
21
|
+
/** An object to hold reusable Parameter Objects. */
|
|
22
|
+
parameters: Type.Optional(
|
|
23
|
+
Type.Record(Type.String(), Type.Union([ParameterObjectSchema, reference(ParameterObjectSchema)]))
|
|
24
|
+
),
|
|
25
|
+
/** An object to hold reusable Example Objects. */
|
|
26
|
+
examples: Type.Optional(
|
|
27
|
+
Type.Record(Type.String(), Type.Union([ExampleObjectSchema, reference(ExampleObjectSchema)]))
|
|
28
|
+
),
|
|
29
|
+
/** An object to hold reusable Request Body Objects. */
|
|
30
|
+
requestBodies: Type.Optional(
|
|
31
|
+
Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, reference(RequestBodyObjectSchema)]))
|
|
32
|
+
),
|
|
33
|
+
/** An object to hold reusable Header Objects. */
|
|
34
|
+
headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, reference(HeaderObjectSchema)]))),
|
|
35
|
+
/** An object to hold reusable Security Scheme Objects. */
|
|
36
|
+
securitySchemes: Type.Optional(
|
|
37
|
+
Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, reference(SecuritySchemeObjectSchema)]))
|
|
38
|
+
),
|
|
39
|
+
/** An object to hold reusable Link Objects. */
|
|
40
|
+
links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, reference(LinkObjectSchema)]))),
|
|
41
|
+
/** An object to hold reusable Callback Objects. */
|
|
42
|
+
callbacks: Type.Optional(
|
|
43
|
+
Type.Record(Type.String(), Type.Union([CallbackObjectSchema, reference(CallbackObjectSchema)]))
|
|
44
|
+
),
|
|
45
|
+
/** An object to hold reusable Path Item Objects. */
|
|
46
|
+
pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema))
|
|
47
|
+
});
|
|
45
48
|
export {
|
|
46
49
|
ComponentsObjectSchema
|
|
47
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/components.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n Type,\n type Static,\n type
|
|
5
|
-
"mappings": "AAAA;AAAA,EACE;AAAA,
|
|
4
|
+
"sourcesContent": ["import {\n Type,\n type Static,\n type TObject,\n type TOptional,\n type TRecord,\n type TString,\n type TUnion,\n} from '@sinclair/typebox'\nimport { SchemaObjectSchema } from './schema'\nimport { ResponseObjectSchema } from './response'\nimport { reference, type ReferenceType } from './reference'\nimport { ParameterObjectSchema } from './parameter'\nimport { ExampleObjectSchema } from './example'\nimport { RequestBodyObjectSchema } from './request-body'\nimport { SecuritySchemeObjectSchema } from './security-scheme'\nimport { LinkObjectSchema } from './link'\nimport { HeaderObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { CallbackObjectSchema, PathItemObjectSchema } from '@/schemas/v3.1/strict/path-operations'\n\n/**\n * The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.\n * This is due to the complex nested structure of the Components Object schema, which includes multiple optional fields,\n * arrays, and nested objects. The explicit type annotation helps TypeScript handle this large type definition.\n *\n * @see https://github.com/microsoft/TypeScript/issues/43817#issuecomment-827746462\n */\nexport type ComponentsObjectSchemaType = TObject<{\n /** Schema Objects that define input and output data types. These can be objects, primitives, and arrays, and are a superset of JSON Schema Specification Draft 2020-12. */\n schemas: TOptional<TRecord<TString, TUnion<[typeof SchemaObjectSchema, ReferenceType<typeof SchemaObjectSchema>]>>>\n /** Response Objects that describe a single response from an API operation, including headers, content, and links. */\n responses: TOptional<\n TRecord<TString, TUnion<[typeof ResponseObjectSchema, ReferenceType<typeof ResponseObjectSchema>]>>\n >\n /** Parameter Objects that describe a single operation parameter with a unique combination of name and location (query, header, path, or cookie). */\n parameters: TOptional<\n TRecord<TString, TUnion<[typeof ParameterObjectSchema, ReferenceType<typeof ParameterObjectSchema>]>>\n >\n /** Example Objects that group example values with metadata for demonstrating usage of properties, parameters, and objects. */\n examples: TOptional<TRecord<TString, TUnion<[typeof ExampleObjectSchema, ReferenceType<typeof ExampleObjectSchema>]>>>\n /** Request Body Objects that describe a single request body with content and optional required flag. */\n requestBodies: TOptional<\n TRecord<TString, TUnion<[typeof RequestBodyObjectSchema, ReferenceType<typeof RequestBodyObjectSchema>]>>\n >\n /** Header Objects that describe HTTP response headers and multipart representation headers, following Parameter Object structure. */\n headers: TOptional<TRecord<TString, TUnion<[typeof HeaderObjectSchema, ReferenceType<typeof HeaderObjectSchema>]>>>\n /** Security Scheme Objects that define security mechanisms for API operations (apiKey, http, mutualTLS, oauth2, openIdConnect). */\n securitySchemes: TOptional<\n TRecord<TString, TUnion<[typeof SecuritySchemeObjectSchema, ReferenceType<typeof SecuritySchemeObjectSchema>]>>\n >\n /** Link Objects that represent design-time links for responses, providing relationships and traversal mechanisms between operations. */\n links: TOptional<TRecord<TString, TUnion<[typeof LinkObjectSchema, ReferenceType<typeof LinkObjectSchema>]>>>\n /** Callback Objects that describe out-of-band callbacks related to parent operations, with Path Item Objects for request definitions. */\n callbacks: TOptional<\n TRecord<TString, TUnion<[typeof CallbackObjectSchema, ReferenceType<typeof CallbackObjectSchema>]>>\n >\n /** Path Item Objects that describe operations available on a single path, including HTTP methods and shared parameters. */\n pathItems: TOptional<TRecord<TString, typeof PathItemObjectSchema>>\n}>\n\n/** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */\nexport const ComponentsObjectSchema: ComponentsObjectSchemaType = Type.Object({\n /** An object to hold reusable Schema Objects. */\n schemas: Type.Optional(Type.Record(Type.String(), Type.Union([SchemaObjectSchema, reference(SchemaObjectSchema)]))),\n /** An object to hold reusable Response Objects. */\n responses: Type.Optional(\n Type.Record(Type.String(), Type.Union([ResponseObjectSchema, reference(ResponseObjectSchema)])),\n ),\n /** An object to hold reusable Parameter Objects. */\n parameters: Type.Optional(\n Type.Record(Type.String(), Type.Union([ParameterObjectSchema, reference(ParameterObjectSchema)])),\n ),\n /** An object to hold reusable Example Objects. */\n examples: Type.Optional(\n Type.Record(Type.String(), Type.Union([ExampleObjectSchema, reference(ExampleObjectSchema)])),\n ),\n /** An object to hold reusable Request Body Objects. */\n requestBodies: Type.Optional(\n Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, reference(RequestBodyObjectSchema)])),\n ),\n /** An object to hold reusable Header Objects. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, reference(HeaderObjectSchema)]))),\n /** An object to hold reusable Security Scheme Objects. */\n securitySchemes: Type.Optional(\n Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, reference(SecuritySchemeObjectSchema)])),\n ),\n /** An object to hold reusable Link Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, reference(LinkObjectSchema)]))),\n /** An object to hold reusable Callback Objects. */\n callbacks: Type.Optional(\n Type.Record(Type.String(), Type.Union([CallbackObjectSchema, reference(CallbackObjectSchema)])),\n ),\n /** An object to hold reusable Path Item Objects. */\n pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema)),\n})\n\nexport type ComponentsObject = Static<typeof ComponentsObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA,EACE;AAAA,OAOK;AACP,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,SAAS,iBAAqC;AAC9C,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AACxC,SAAS,kCAAkC;AAC3C,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB,4BAA4B;AA2CpD,MAAM,yBAAqD,KAAK,OAAO;AAAA;AAAA,EAE5E,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAElH,WAAW,KAAK;AAAA,IACd,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,UAAU,oBAAoB,CAAC,CAAC,CAAC;AAAA,EAChG;AAAA;AAAA,EAEA,YAAY,KAAK;AAAA,IACf,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,uBAAuB,UAAU,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAClG;AAAA;AAAA,EAEA,UAAU,KAAK;AAAA,IACb,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,UAAU,mBAAmB,CAAC,CAAC,CAAC;AAAA,EAC9F;AAAA;AAAA,EAEA,eAAe,KAAK;AAAA,IAClB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,yBAAyB,UAAU,uBAAuB,CAAC,CAAC,CAAC;AAAA,EACtG;AAAA;AAAA,EAEA,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAElH,iBAAiB,KAAK;AAAA,IACpB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,4BAA4B,UAAU,0BAA0B,CAAC,CAAC,CAAC;AAAA,EAC5G;AAAA;AAAA,EAEA,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,UAAU,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE5G,WAAW,KAAK;AAAA,IACd,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,UAAU,oBAAoB,CAAC,CAAC,CAAC;AAAA,EAChG;AAAA;AAAA,EAEA,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,oBAAoB,CAAC;AAC3E,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type Static } from '@sinclair/typebox';
|
|
2
2
|
/** Contact information for the exposed API. */
|
|
3
|
-
export declare const ContactObjectSchema: import("@sinclair/typebox").
|
|
3
|
+
export declare const ContactObjectSchema: import("@sinclair/typebox").TObject<{
|
|
4
4
|
/** The identifying name of the contact person/organization. */
|
|
5
5
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
6
|
/** The URI for the contact information. This MUST be in the form of a URI. */
|
|
7
7
|
url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
8
|
/** The email address of the contact person/organization. This MUST be in the form of an email address. */
|
|
9
9
|
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
-
}
|
|
10
|
+
}>;
|
|
11
11
|
export type ContactObject = Static<typeof ContactObjectSchema>;
|
|
12
12
|
//# sourceMappingURL=contact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/contact.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,+CAA+C;AAC/C,eAAO,MAAM,mBAAmB;IAC9B,+DAA+D;;IAE/D,8EAA8E;;IAE9E,0GAA0G;;EAE1G,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { compose } from "../../../schemas/compose.js";
|
|
2
|
-
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
1
|
import { Type } from "@sinclair/typebox";
|
|
4
|
-
const ContactObjectSchema =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}),
|
|
13
|
-
ExtensionsSchema
|
|
14
|
-
);
|
|
2
|
+
const ContactObjectSchema = Type.Object({
|
|
3
|
+
/** The identifying name of the contact person/organization. */
|
|
4
|
+
name: Type.Optional(Type.String()),
|
|
5
|
+
/** The URI for the contact information. This MUST be in the form of a URI. */
|
|
6
|
+
url: Type.Optional(Type.String()),
|
|
7
|
+
/** The email address of the contact person/organization. This MUST be in the form of an email address. */
|
|
8
|
+
email: Type.Optional(Type.String())
|
|
9
|
+
});
|
|
15
10
|
export {
|
|
16
11
|
ContactObjectSchema
|
|
17
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/contact.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\n/** Contact information for the exposed API. */\nexport const ContactObjectSchema = Type.Object({\n /** The identifying name of the contact person/organization. */\n name: Type.Optional(Type.String()),\n /** The URI for the contact information. This MUST be in the form of a URI. */\n url: Type.Optional(Type.String()),\n /** The email address of the contact person/organization. This MUST be in the form of an email address. */\n email: Type.Optional(Type.String()),\n})\n\nexport type ContactObject = Static<typeof ContactObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAG3B,MAAM,sBAAsB,KAAK,OAAO;AAAA;AAAA,EAE7C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEjC,KAAK,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEhC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AACpC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,11 +4,11 @@ import { type Static } from '@sinclair/typebox';
|
|
|
4
4
|
*
|
|
5
5
|
* Note that discriminator MUST NOT change the validation outcome of the schema.
|
|
6
6
|
*/
|
|
7
|
-
export declare const DiscriminatorObjectSchema: import("@sinclair/typebox").
|
|
7
|
+
export declare const DiscriminatorObjectSchema: import("@sinclair/typebox").TObject<{
|
|
8
8
|
/** REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined. */
|
|
9
9
|
propertyName: import("@sinclair/typebox").TString;
|
|
10
10
|
/** An object to hold mappings between payload values and schema names or URI references. */
|
|
11
11
|
mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
export type DiscriminatorObject = Static<typeof DiscriminatorObjectSchema>;
|
|
14
14
|
//# sourceMappingURL=discriminator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discriminator.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/discriminator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"discriminator.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/discriminator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;IACpC,mNAAmN;;IAEnN,4FAA4F;;EAE5F,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { compose } from "../../../schemas/compose.js";
|
|
2
|
-
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
1
|
import { Type } from "@sinclair/typebox";
|
|
4
|
-
const DiscriminatorObjectSchema =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}),
|
|
11
|
-
ExtensionsSchema
|
|
12
|
-
);
|
|
2
|
+
const DiscriminatorObjectSchema = Type.Object({
|
|
3
|
+
/** REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined. */
|
|
4
|
+
propertyName: Type.String(),
|
|
5
|
+
/** An object to hold mappings between payload values and schema names or URI references. */
|
|
6
|
+
mapping: Type.Optional(Type.Record(Type.String(), Type.String()))
|
|
7
|
+
});
|
|
13
8
|
export {
|
|
14
9
|
DiscriminatorObjectSchema
|
|
15
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/discriminator.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\n/**\n * When request bodies or response payloads may be one of a number of different schemas, a Discriminator Object gives a hint about the expected schema of the document. This hint can be used to aid in serialization, deserialization, and validation. The Discriminator Object does this by implicitly or explicitly associating the possible values of a named property with alternative schemas.\n *\n * Note that discriminator MUST NOT change the validation outcome of the schema.\n */\nexport const DiscriminatorObjectSchema = Type.Object({\n /** REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined. */\n propertyName: Type.String(),\n /** An object to hold mappings between payload values and schema names or URI references. */\n mapping: Type.Optional(Type.Record(Type.String(), Type.String())),\n})\n\nexport type DiscriminatorObject = Static<typeof DiscriminatorObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAO3B,MAAM,4BAA4B,KAAK,OAAO;AAAA;AAAA,EAEnD,cAAc,KAAK,OAAO;AAAA;AAAA,EAE1B,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC,CAAC;AAClE,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { type TSchema } from '@sinclair/typebox';
|
|
2
|
-
export declare const encodingObjectSchemaBuilder: <H extends TSchema>(header: H) => import("@sinclair/typebox").
|
|
2
|
+
export declare const encodingObjectSchemaBuilder: <H extends TSchema>(header: H) => import("@sinclair/typebox").TObject<{
|
|
3
3
|
/** The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the property type as shown in the table below. */
|
|
4
4
|
contentType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
5
|
/** A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. */
|
|
6
|
-
headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[H, import("
|
|
7
|
-
|
|
8
|
-
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
-
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
-
}>, import("@sinclair/typebox").TObject<{
|
|
11
|
-
$status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
|
|
12
|
-
$global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13
|
-
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
|
|
14
|
-
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
|
|
6
|
+
headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[H, import("./reference.js").ReferenceType<H>]>>>;
|
|
7
|
+
}>;
|
|
15
8
|
//# sourceMappingURL=encoding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAGtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,UAAU,CAAC;IAEpE,sRAAsR;;IAEtR,iOAAiO;;EAEjO,CAAA"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Type.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/** A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. */
|
|
10
|
-
headers: Type.Optional(Type.Record(Type.String(), Type.Union([header, ReferenceObjectSchema])))
|
|
11
|
-
}),
|
|
12
|
-
ExtensionsSchema
|
|
13
|
-
);
|
|
2
|
+
import { reference } from "./reference.js";
|
|
3
|
+
const encodingObjectSchemaBuilder = (header) => Type.Object({
|
|
4
|
+
/** The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the property type as shown in the table below. */
|
|
5
|
+
contentType: Type.Optional(Type.String()),
|
|
6
|
+
/** A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. */
|
|
7
|
+
headers: Type.Optional(Type.Record(Type.String(), Type.Union([header, reference(header)])))
|
|
8
|
+
});
|
|
14
9
|
export {
|
|
15
10
|
encodingObjectSchemaBuilder
|
|
16
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/encoding.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 './reference'\n\nexport const encodingObjectSchemaBuilder = <H extends TSchema>(header: H) =>\n Type.Object({\n /** The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the property type as shown in the table below. */\n contentType: Type.Optional(Type.String()),\n /** A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([header, reference(header)]))),\n })\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,iBAAiB;AAEnB,MAAM,8BAA8B,CAAoB,WAC7D,KAAK,OAAO;AAAA;AAAA,EAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,QAAQ,UAAU,MAAM,CAAC,CAAC,CAAC,CAAC;AAC5F,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -4,7 +4,7 @@ import { type Static } from '@sinclair/typebox';
|
|
|
4
4
|
*
|
|
5
5
|
* Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ExampleObjectSchema: import("@sinclair/typebox").
|
|
7
|
+
export declare const ExampleObjectSchema: import("@sinclair/typebox").TObject<{
|
|
8
8
|
/** Short description for the example. */
|
|
9
9
|
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
10
|
/** Long description for the example. CommonMark syntax MAY be used for rich text representation. */
|
|
@@ -13,6 +13,6 @@ export declare const ExampleObjectSchema: import("@sinclair/typebox").TIntersect
|
|
|
13
13
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
14
14
|
/** A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules for resolving Relative References. */
|
|
15
15
|
externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
|
-
}
|
|
16
|
+
}>;
|
|
17
17
|
export type ExampleObject = Static<typeof ExampleObjectSchema>;
|
|
18
18
|
//# sourceMappingURL=example.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/example.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B,yCAAyC;;IAEzC,oGAAoG;;IAEpG,6PAA6P;;IAE7P,+QAA+Q;;EAE/Q,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { compose } from "../../../schemas/compose.js";
|
|
2
|
-
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
1
|
import { Type } from "@sinclair/typebox";
|
|
4
|
-
const ExampleObjectSchema =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}),
|
|
15
|
-
ExtensionsSchema
|
|
16
|
-
);
|
|
2
|
+
const ExampleObjectSchema = Type.Object({
|
|
3
|
+
/** Short description for the example. */
|
|
4
|
+
summary: Type.Optional(Type.String()),
|
|
5
|
+
/** Long description for the example. CommonMark syntax MAY be used for rich text representation. */
|
|
6
|
+
description: Type.Optional(Type.String()),
|
|
7
|
+
/** Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary. */
|
|
8
|
+
value: Type.Optional(Type.Any()),
|
|
9
|
+
/** A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules for resolving Relative References. */
|
|
10
|
+
externalValue: Type.Optional(Type.String())
|
|
11
|
+
});
|
|
17
12
|
export {
|
|
18
13
|
ExampleObjectSchema
|
|
19
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/example.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\n/**\n * An object grouping an internal or external example value with basic summary and description metadata. This object is typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n */\nexport const ExampleObjectSchema = Type.Object({\n /** Short description for the example. */\n summary: Type.Optional(Type.String()),\n /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary. */\n value: Type.Optional(Type.Any()),\n /** A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules for resolving Relative References. */\n externalValue: Type.Optional(Type.String()),\n})\n\nexport type ExampleObject = Static<typeof ExampleObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAO3B,MAAM,sBAAsB,KAAK,OAAO;AAAA;AAAA,EAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,EAE/B,eAAe,KAAK,SAAS,KAAK,OAAO,CAAC;AAC5C,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type Static } from '@sinclair/typebox';
|
|
2
2
|
/** Allows referencing an external resource for extended documentation. */
|
|
3
|
-
export declare const ExternalDocumentationObjectSchema: import("@sinclair/typebox").
|
|
3
|
+
export declare const ExternalDocumentationObjectSchema: import("@sinclair/typebox").TObject<{
|
|
4
4
|
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
5
5
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
6
|
/** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
|
|
7
7
|
url: import("@sinclair/typebox").TString;
|
|
8
|
-
}
|
|
8
|
+
}>;
|
|
9
9
|
export type ExternalDocumentationObject = Static<typeof ExternalDocumentationObjectSchema>;
|
|
10
10
|
//# sourceMappingURL=external-documentation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-documentation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/external-documentation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"external-documentation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/external-documentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC;IAC5C,6GAA6G;;IAE7G,yFAAyF;;EAEzF,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { compose } from "../../../schemas/compose.js";
|
|
2
|
-
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
1
|
import { Type } from "@sinclair/typebox";
|
|
4
|
-
const ExternalDocumentationObjectSchema =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}),
|
|
11
|
-
ExtensionsSchema
|
|
12
|
-
);
|
|
2
|
+
const ExternalDocumentationObjectSchema = Type.Object({
|
|
3
|
+
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
4
|
+
description: Type.Optional(Type.String()),
|
|
5
|
+
/** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
|
|
6
|
+
url: Type.String()
|
|
7
|
+
});
|
|
13
8
|
export {
|
|
14
9
|
ExternalDocumentationObjectSchema
|
|
15
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/external-documentation.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,SAAS,
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\n/** Allows referencing an external resource for extended documentation. */\nexport const ExternalDocumentationObjectSchema = Type.Object({\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */\n url: Type.String(),\n})\n\nexport type ExternalDocumentationObject = Static<typeof ExternalDocumentationObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAG3B,MAAM,oCAAoC,KAAK,OAAO;AAAA;AAAA,EAE3D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,KAAK,KAAK,OAAO;AACnB,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|