@scalar/workspace-store 0.40.2 → 0.40.3
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 +7 -0
- package/dist/client.d.ts +7 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +820 -681
- package/dist/entities/auth/index.js +96 -101
- package/dist/entities/auth/schema.js +42 -116
- package/dist/entities/history/index.js +80 -60
- package/dist/entities/history/schema.js +94 -88
- package/dist/events/bus.js +146 -93
- package/dist/events/definitions/analytics.js +1 -1
- package/dist/events/definitions/auth.js +1 -1
- package/dist/events/definitions/common.js +1 -1
- package/dist/events/definitions/cookie.js +1 -1
- package/dist/events/definitions/document.js +1 -1
- package/dist/events/definitions/environment.js +1 -1
- package/dist/events/definitions/hooks.js +1 -1
- package/dist/events/definitions/index.js +1 -1
- package/dist/events/definitions/meta.js +1 -1
- package/dist/events/definitions/operation.js +1 -1
- package/dist/events/definitions/server.js +1 -1
- package/dist/events/definitions/tabs.js +1 -1
- package/dist/events/definitions/tag.js +1 -1
- package/dist/events/definitions/ui.js +1 -1
- package/dist/events/definitions/workspace.js +1 -1
- package/dist/events/index.js +3 -9
- package/dist/events/listeners.js +20 -22
- package/dist/events/old-definitions.js +15 -12
- package/dist/helpers/deep-clone.js +33 -17
- package/dist/helpers/detect-changes-proxy.js +95 -57
- package/dist/helpers/general.js +78 -23
- package/dist/helpers/generate-unique-value.js +77 -45
- package/dist/helpers/get-fetch.js +12 -10
- package/dist/helpers/get-resolved-ref.js +11 -10
- package/dist/helpers/is-non-optional-security-requirement.js +3 -6
- package/dist/helpers/merge-object.js +71 -30
- package/dist/helpers/overrides-proxy.js +98 -58
- package/dist/helpers/unpack-proxy.js +60 -58
- package/dist/mutators/auth.js +358 -230
- package/dist/mutators/cookie.js +59 -42
- package/dist/mutators/document.js +104 -66
- package/dist/mutators/environment.js +97 -72
- package/dist/mutators/helpers.js +9 -13
- package/dist/mutators/index.js +62 -49
- package/dist/mutators/operation/body.js +88 -57
- package/dist/mutators/operation/extensions.js +20 -12
- package/dist/mutators/operation/helpers/fetch-request-to-har.js +144 -107
- package/dist/mutators/operation/helpers/fetch-response-to-har.js +143 -95
- package/dist/mutators/operation/helpers/get-parameter-position.js +12 -12
- package/dist/mutators/operation/helpers/har-to-operation.js +169 -132
- package/dist/mutators/operation/helpers/sync-path-parameters.js +109 -60
- package/dist/mutators/operation/history.js +60 -64
- package/dist/mutators/operation/index.js +25 -49
- package/dist/mutators/operation/operation.js +349 -240
- package/dist/mutators/operation/parameters.js +157 -93
- package/dist/mutators/server.js +213 -152
- package/dist/mutators/tabs.js +173 -130
- package/dist/mutators/tag.js +131 -97
- package/dist/mutators/workspace.js +72 -42
- package/dist/navigation/get-navigation-options.js +97 -84
- package/dist/navigation/helpers/get-openapi-object.js +46 -29
- package/dist/navigation/helpers/get-operation-entries.js +72 -32
- package/dist/navigation/helpers/get-parent-entry.js +16 -12
- package/dist/navigation/helpers/get-tag-entries.js +56 -29
- package/dist/navigation/helpers/get-tag.js +22 -23
- package/dist/navigation/helpers/get-x-keys.js +13 -9
- package/dist/navigation/helpers/traverse-description.js +90 -72
- package/dist/navigation/helpers/traverse-document.js +111 -98
- package/dist/navigation/helpers/traverse-examples.js +35 -31
- package/dist/navigation/helpers/traverse-paths.js +118 -106
- package/dist/navigation/helpers/traverse-schemas.js +65 -64
- package/dist/navigation/helpers/traverse-tags.js +158 -129
- package/dist/navigation/helpers/traverse-webhooks.js +96 -90
- package/dist/navigation/helpers/update-order-ids.js +59 -51
- package/dist/navigation/helpers/utils.js +71 -21
- package/dist/navigation/index.js +5 -13
- package/dist/navigation/types.js +1 -1
- package/dist/persistence/index.js +283 -285
- package/dist/persistence/indexdb.js +263 -126
- package/dist/plugins/bundler/helpers.js +21 -12
- package/dist/plugins/bundler/index.d.ts +7 -0
- package/dist/plugins/bundler/index.d.ts.map +1 -1
- package/dist/plugins/bundler/index.js +305 -171
- package/dist/plugins/client/index.js +1 -5
- package/dist/plugins/client/persistence.js +95 -90
- package/dist/resolve.js +18 -25
- package/dist/schemas/compose.js +6 -7
- package/dist/schemas/extensions/document/x-internal.js +3 -7
- package/dist/schemas/extensions/document/x-scalar-environments.js +16 -22
- package/dist/schemas/extensions/document/x-scalar-icon.js +3 -7
- package/dist/schemas/extensions/document/x-scalar-ignore.js +3 -7
- package/dist/schemas/extensions/document/x-scalar-is-dirty.js +21 -8
- package/dist/schemas/extensions/document/x-scalar-original-document-hash.js +17 -8
- package/dist/schemas/extensions/document/x-scalar-registry-meta.js +15 -21
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +5 -13
- package/dist/schemas/extensions/document/x-scalar-watch-mode.js +4 -8
- package/dist/schemas/extensions/document/x-tags.js +3 -7
- package/dist/schemas/extensions/example/x-disabled.js +17 -7
- package/dist/schemas/extensions/general/x-scalar-active-environment.js +4 -7
- package/dist/schemas/extensions/general/x-scalar-cookies.js +9 -14
- package/dist/schemas/extensions/general/x-scalar-order.js +8 -7
- package/dist/schemas/extensions/operation/index.js +4 -23
- package/dist/schemas/extensions/operation/x-badge.js +42 -50
- package/dist/schemas/extensions/operation/x-code-samples.js +8 -12
- package/dist/schemas/extensions/operation/x-draft-examples.js +3 -7
- package/dist/schemas/extensions/operation/x-post-response.js +18 -7
- package/dist/schemas/extensions/operation/x-scalar-disable-parameters.js +57 -13
- package/dist/schemas/extensions/operation/x-scalar-selected-content-type.js +9 -7
- package/dist/schemas/extensions/operation/x-scalar-stability.js +15 -14
- package/dist/schemas/extensions/parameter/x-global.js +12 -7
- package/dist/schemas/extensions/schema/x-additional-properties-name.js +10 -7
- package/dist/schemas/extensions/schema/x-enum-descriptions.js +17 -12
- package/dist/schemas/extensions/schema/x-enum-varnames.js +21 -8
- package/dist/schemas/extensions/schema/x-examples.js +3 -7
- package/dist/schemas/extensions/schema/x-variable.js +3 -7
- package/dist/schemas/extensions/security/index.js +1 -1
- package/dist/schemas/extensions/security/x-default-scopes.js +16 -7
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js +16 -7
- package/dist/schemas/extensions/security/x-scalar-security-body.js +14 -7
- package/dist/schemas/extensions/security/x-scalar-security-query.js +14 -7
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js +66 -37
- package/dist/schemas/extensions/security/x-tokenName.js +11 -7
- package/dist/schemas/extensions/security/x-use-pkce.js +6 -10
- package/dist/schemas/extensions/server/x-scalar-selected-server.js +3 -7
- package/dist/schemas/extensions/tag/index.js +1 -1
- package/dist/schemas/extensions/tag/x-display-name.js +11 -7
- package/dist/schemas/extensions/tag/x-tag-groups.js +13 -15
- package/dist/schemas/extensions/workspace/index.js +2 -11
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js +13 -7
- package/dist/schemas/extensions/workspace/x-scalar-tabs.js +15 -13
- package/dist/schemas/extensions.js +11 -15
- package/dist/schemas/inmemory-workspace.js +13 -21
- package/dist/schemas/navigation.js +48 -85
- package/dist/schemas/reference-config/appearance.js +15 -22
- package/dist/schemas/reference-config/features.js +14 -21
- package/dist/schemas/reference-config/index.js +42 -44
- package/dist/schemas/reference-config/meta.js +11 -18
- package/dist/schemas/reference-config/routing.js +7 -14
- package/dist/schemas/reference-config/settings.js +10 -17
- package/dist/schemas/typebox-coerce.js +23 -6
- package/dist/schemas/v3.1/strict/callback.js +6 -12
- package/dist/schemas/v3.1/strict/components.js +26 -48
- package/dist/schemas/v3.1/strict/contact.js +9 -12
- package/dist/schemas/v3.1/strict/discriminator.js +11 -10
- package/dist/schemas/v3.1/strict/encoding.js +15 -12
- package/dist/schemas/v3.1/strict/example.js +11 -13
- package/dist/schemas/v3.1/strict/external-documentation.js +7 -10
- package/dist/schemas/v3.1/strict/header.js +27 -28
- package/dist/schemas/v3.1/strict/info.js +10 -16
- package/dist/schemas/v3.1/strict/license.js +9 -12
- package/dist/schemas/v3.1/strict/link.js +22 -19
- package/dist/schemas/v3.1/strict/media-type.js +17 -16
- package/dist/schemas/v3.1/strict/oauth-flow.js +28 -62
- package/dist/schemas/v3.1/strict/oauthflows.js +14 -20
- package/dist/schemas/v3.1/strict/openapi-document.js +126 -210
- package/dist/schemas/v3.1/strict/operation.js +16 -43
- package/dist/schemas/v3.1/strict/parameter.js +27 -35
- package/dist/schemas/v3.1/strict/path-item.js +36 -40
- package/dist/schemas/v3.1/strict/paths.js +8 -11
- package/dist/schemas/v3.1/strict/ref-definitions.js +76 -100
- package/dist/schemas/v3.1/strict/reference.js +18 -21
- package/dist/schemas/v3.1/strict/request-body.js +8 -16
- package/dist/schemas/v3.1/strict/response.js +12 -16
- package/dist/schemas/v3.1/strict/responses.js +13 -11
- package/dist/schemas/v3.1/strict/schema.js +149 -157
- package/dist/schemas/v3.1/strict/security-requirement.js +13 -12
- package/dist/schemas/v3.1/strict/security-scheme.js +29 -41
- package/dist/schemas/v3.1/strict/server-variable.js +9 -12
- package/dist/schemas/v3.1/strict/server.js +10 -13
- package/dist/schemas/v3.1/strict/tag.js +11 -20
- package/dist/schemas/v3.1/strict/type-guards.js +20 -20
- package/dist/schemas/v3.1/strict/xml.js +17 -16
- package/dist/schemas/workspace-specification/index.js +11 -23
- package/dist/schemas/workspace-specification/info.js +4 -8
- package/dist/schemas/workspace.js +25 -51
- package/dist/schemas.js +2 -6
- package/dist/server.js +286 -176
- package/dist/workspace-plugin.js +1 -1
- package/package.json +13 -19
- package/dist/client.js.map +0 -7
- package/dist/entities/auth/index.js.map +0 -7
- package/dist/entities/auth/schema.js.map +0 -7
- package/dist/entities/history/index.js.map +0 -7
- package/dist/entities/history/schema.js.map +0 -7
- package/dist/events/bus.js.map +0 -7
- package/dist/events/definitions/analytics.js.map +0 -7
- package/dist/events/definitions/auth.js.map +0 -7
- package/dist/events/definitions/common.js.map +0 -7
- package/dist/events/definitions/cookie.js.map +0 -7
- package/dist/events/definitions/document.js.map +0 -7
- package/dist/events/definitions/environment.js.map +0 -7
- package/dist/events/definitions/hooks.js.map +0 -7
- package/dist/events/definitions/index.js.map +0 -7
- package/dist/events/definitions/meta.js.map +0 -7
- package/dist/events/definitions/operation.js.map +0 -7
- package/dist/events/definitions/server.js.map +0 -7
- package/dist/events/definitions/tabs.js.map +0 -7
- package/dist/events/definitions/tag.js.map +0 -7
- package/dist/events/definitions/ui.js.map +0 -7
- package/dist/events/definitions/workspace.js.map +0 -7
- package/dist/events/index.js.map +0 -7
- package/dist/events/listeners.js.map +0 -7
- package/dist/events/old-definitions.js.map +0 -7
- package/dist/helpers/apply-selective-updates.d.ts +0 -19
- package/dist/helpers/apply-selective-updates.d.ts.map +0 -1
- package/dist/helpers/apply-selective-updates.js +0 -37
- package/dist/helpers/apply-selective-updates.js.map +0 -7
- package/dist/helpers/deep-clone.js.map +0 -7
- package/dist/helpers/detect-changes-proxy.js.map +0 -7
- package/dist/helpers/general.js.map +0 -7
- package/dist/helpers/generate-unique-value.js.map +0 -7
- package/dist/helpers/get-fetch.js.map +0 -7
- package/dist/helpers/get-resolved-ref.js.map +0 -7
- package/dist/helpers/is-non-optional-security-requirement.js.map +0 -7
- package/dist/helpers/merge-object.js.map +0 -7
- package/dist/helpers/overrides-proxy.js.map +0 -7
- package/dist/helpers/unpack-proxy.js.map +0 -7
- package/dist/mutators/auth.js.map +0 -7
- package/dist/mutators/cookie.js.map +0 -7
- package/dist/mutators/document.js.map +0 -7
- package/dist/mutators/environment.js.map +0 -7
- package/dist/mutators/helpers.js.map +0 -7
- package/dist/mutators/index.js.map +0 -7
- package/dist/mutators/operation/body.js.map +0 -7
- package/dist/mutators/operation/extensions.js.map +0 -7
- package/dist/mutators/operation/helpers/fetch-request-to-har.js.map +0 -7
- package/dist/mutators/operation/helpers/fetch-response-to-har.js.map +0 -7
- package/dist/mutators/operation/helpers/get-parameter-position.js.map +0 -7
- package/dist/mutators/operation/helpers/har-to-operation.js.map +0 -7
- package/dist/mutators/operation/helpers/sync-path-parameters.js.map +0 -7
- package/dist/mutators/operation/history.js.map +0 -7
- package/dist/mutators/operation/index.js.map +0 -7
- package/dist/mutators/operation/operation.js.map +0 -7
- package/dist/mutators/operation/parameters.js.map +0 -7
- package/dist/mutators/server.js.map +0 -7
- package/dist/mutators/tabs.js.map +0 -7
- package/dist/mutators/tag.js.map +0 -7
- package/dist/mutators/workspace.js.map +0 -7
- package/dist/navigation/get-navigation-options.js.map +0 -7
- package/dist/navigation/helpers/get-openapi-object.js.map +0 -7
- package/dist/navigation/helpers/get-operation-entries.js.map +0 -7
- package/dist/navigation/helpers/get-parent-entry.js.map +0 -7
- package/dist/navigation/helpers/get-tag-entries.js.map +0 -7
- package/dist/navigation/helpers/get-tag.js.map +0 -7
- package/dist/navigation/helpers/get-x-keys.js.map +0 -7
- package/dist/navigation/helpers/traverse-description.js.map +0 -7
- package/dist/navigation/helpers/traverse-document.js.map +0 -7
- package/dist/navigation/helpers/traverse-examples.js.map +0 -7
- package/dist/navigation/helpers/traverse-paths.js.map +0 -7
- package/dist/navigation/helpers/traverse-schemas.js.map +0 -7
- package/dist/navigation/helpers/traverse-tags.js.map +0 -7
- package/dist/navigation/helpers/traverse-webhooks.js.map +0 -7
- package/dist/navigation/helpers/update-order-ids.js.map +0 -7
- package/dist/navigation/helpers/utils.js.map +0 -7
- package/dist/navigation/index.js.map +0 -7
- package/dist/navigation/types.js.map +0 -7
- package/dist/persistence/index.js.map +0 -7
- package/dist/persistence/indexdb.js.map +0 -7
- package/dist/plugins/bundler/helpers.js.map +0 -7
- package/dist/plugins/bundler/index.js.map +0 -7
- package/dist/plugins/client/index.js.map +0 -7
- package/dist/plugins/client/persistence.js.map +0 -7
- package/dist/resolve.js.map +0 -7
- package/dist/schemas/compose.js.map +0 -7
- package/dist/schemas/extensions/document/x-internal.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-environments.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-icon.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-ignore.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-is-dirty.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-original-document-hash.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-registry-meta.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +0 -7
- package/dist/schemas/extensions/document/x-scalar-watch-mode.js.map +0 -7
- package/dist/schemas/extensions/document/x-tags.js.map +0 -7
- package/dist/schemas/extensions/example/x-disabled.js.map +0 -7
- package/dist/schemas/extensions/general/x-scalar-active-environment.js.map +0 -7
- package/dist/schemas/extensions/general/x-scalar-cookies.js.map +0 -7
- package/dist/schemas/extensions/general/x-scalar-order.js.map +0 -7
- package/dist/schemas/extensions/operation/index.js.map +0 -7
- package/dist/schemas/extensions/operation/x-badge.js.map +0 -7
- package/dist/schemas/extensions/operation/x-code-samples.js.map +0 -7
- package/dist/schemas/extensions/operation/x-draft-examples.js.map +0 -7
- package/dist/schemas/extensions/operation/x-post-response.js.map +0 -7
- package/dist/schemas/extensions/operation/x-scalar-disable-parameters.js.map +0 -7
- package/dist/schemas/extensions/operation/x-scalar-selected-content-type.js.map +0 -7
- package/dist/schemas/extensions/operation/x-scalar-stability.js.map +0 -7
- package/dist/schemas/extensions/parameter/x-global.js.map +0 -7
- package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +0 -7
- package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +0 -7
- package/dist/schemas/extensions/schema/x-enum-varnames.js.map +0 -7
- package/dist/schemas/extensions/schema/x-examples.js.map +0 -7
- package/dist/schemas/extensions/schema/x-variable.js.map +0 -7
- package/dist/schemas/extensions/security/index.js.map +0 -7
- package/dist/schemas/extensions/security/x-default-scopes.js.map +0 -7
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +0 -7
- package/dist/schemas/extensions/security/x-scalar-security-body.js.map +0 -7
- package/dist/schemas/extensions/security/x-scalar-security-query.js.map +0 -7
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +0 -7
- package/dist/schemas/extensions/security/x-tokenName.js.map +0 -7
- package/dist/schemas/extensions/security/x-use-pkce.js.map +0 -7
- package/dist/schemas/extensions/server/x-scalar-selected-server.js.map +0 -7
- package/dist/schemas/extensions/tag/index.js.map +0 -7
- package/dist/schemas/extensions/tag/x-display-name.js.map +0 -7
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +0 -7
- package/dist/schemas/extensions/workspace/index.js.map +0 -7
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js.map +0 -7
- package/dist/schemas/extensions/workspace/x-scalar-tabs.js.map +0 -7
- package/dist/schemas/extensions.js.map +0 -7
- package/dist/schemas/inmemory-workspace.js.map +0 -7
- package/dist/schemas/navigation.js.map +0 -7
- package/dist/schemas/reference-config/appearance.js.map +0 -7
- package/dist/schemas/reference-config/features.js.map +0 -7
- package/dist/schemas/reference-config/index.js.map +0 -7
- package/dist/schemas/reference-config/meta.js.map +0 -7
- package/dist/schemas/reference-config/routing.js.map +0 -7
- package/dist/schemas/reference-config/settings.js.map +0 -7
- package/dist/schemas/typebox-coerce.js.map +0 -7
- package/dist/schemas/v3.1/strict/callback.js.map +0 -7
- package/dist/schemas/v3.1/strict/components.js.map +0 -7
- package/dist/schemas/v3.1/strict/contact.js.map +0 -7
- package/dist/schemas/v3.1/strict/discriminator.js.map +0 -7
- package/dist/schemas/v3.1/strict/encoding.js.map +0 -7
- package/dist/schemas/v3.1/strict/example.js.map +0 -7
- package/dist/schemas/v3.1/strict/external-documentation.js.map +0 -7
- package/dist/schemas/v3.1/strict/header.js.map +0 -7
- package/dist/schemas/v3.1/strict/info.js.map +0 -7
- package/dist/schemas/v3.1/strict/license.js.map +0 -7
- package/dist/schemas/v3.1/strict/link.js.map +0 -7
- package/dist/schemas/v3.1/strict/media-type.js.map +0 -7
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +0 -7
- package/dist/schemas/v3.1/strict/oauthflows.js.map +0 -7
- package/dist/schemas/v3.1/strict/openapi-document.js.map +0 -7
- package/dist/schemas/v3.1/strict/operation.js.map +0 -7
- package/dist/schemas/v3.1/strict/parameter.js.map +0 -7
- package/dist/schemas/v3.1/strict/path-item.js.map +0 -7
- package/dist/schemas/v3.1/strict/paths.js.map +0 -7
- package/dist/schemas/v3.1/strict/ref-definitions.js.map +0 -7
- package/dist/schemas/v3.1/strict/reference.js.map +0 -7
- package/dist/schemas/v3.1/strict/request-body.js.map +0 -7
- package/dist/schemas/v3.1/strict/response.js.map +0 -7
- package/dist/schemas/v3.1/strict/responses.js.map +0 -7
- package/dist/schemas/v3.1/strict/schema.js.map +0 -7
- package/dist/schemas/v3.1/strict/security-requirement.js.map +0 -7
- package/dist/schemas/v3.1/strict/security-scheme.js.map +0 -7
- package/dist/schemas/v3.1/strict/server-variable.js.map +0 -7
- package/dist/schemas/v3.1/strict/server.js.map +0 -7
- package/dist/schemas/v3.1/strict/tag.js.map +0 -7
- package/dist/schemas/v3.1/strict/type-guards.js.map +0 -7
- package/dist/schemas/v3.1/strict/xml.js.map +0 -7
- package/dist/schemas/workspace-specification/index.js.map +0 -7
- package/dist/schemas/workspace-specification/info.js.map +0 -7
- package/dist/schemas/workspace.js.map +0 -7
- package/dist/schemas.js.map +0 -7
- package/dist/server.js.map +0 -7
- package/dist/workspace-plugin.js.map +0 -7
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/security/x-scalar-security-secrets.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * A scalar secret token\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretTokenSchema = Type.Object({\n 'x-scalar-secret-token': Type.String(),\n})\n\n/**\n * A scalar secret token\n *\n * We should not export this when exporting the document\n */\nexport type XScalarSecretToken = {\n 'x-scalar-secret-token': string\n}\n\n/**\n * OAuth refresh token\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretRefreshTokenSchema = Type.Object({\n 'x-scalar-secret-refresh-token': Type.Optional(Type.String()),\n})\n\n/**\n * OAuth refresh token\n *\n * We should not export this when exporting the document\n */\nexport type XScalarSecretRefreshToken = {\n 'x-scalar-secret-refresh-token'?: string\n}\n\n/**\n * OAuth auth url\n *\n * We should not export this when exporting the document\n */\nexport const XScalarAuthUrlSchema = Type.Object({\n 'x-scalar-secret-auth-url': Type.Optional(Type.String()),\n})\n\n/**\n * OAuth auth url\n *\n * We should not export this when exporting the document\n */\nexport type XScalarAuthUrl = {\n 'x-scalar-secret-auth-url'?: string\n}\n\n/**\n * OAuth token url\n *\n * We should not export this when exporting the document\n */\nexport const XScalarTokenUrlSchema = Type.Object({\n 'x-scalar-secret-token-url': Type.Optional(Type.String()),\n})\n\n/**\n * OAuth token url\n *\n * We should not export this when exporting the document\n */\nexport type XScalarTokenUrl = {\n 'x-scalar-secret-token-url'?: string\n}\n\n/**\n * Username and password for HTTP authentication\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretHTTPSchema = Type.Object({\n 'x-scalar-secret-username': Type.String(),\n 'x-scalar-secret-password': Type.String(),\n})\n\n/**\n * Username and password for HTTP authentication\n *\n * We should not export this when exporting the document\n */\nexport type XScalarSecretHTTP = {\n 'x-scalar-secret-username': string\n 'x-scalar-secret-password': string\n}\n\n/**\n * Oauth client secret\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretClientSecretSchema = Type.Object({\n 'x-scalar-secret-client-secret': Type.String(),\n})\n\n/**\n * Oauth client secret\n *\n * We should not export this when exporting the document\n */\nexport type XScalarSecretClientSecret = {\n 'x-scalar-secret-client-secret': string\n}\n\n/**\n * Oauth client ID\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretClientIdSchema = Type.Object({\n 'x-scalar-secret-client-id': Type.String(),\n})\n\n/**\n * Oauth client ID\n *\n * We should not export this when exporting the document\n */\nexport type XScalarSecretClientId = {\n 'x-scalar-secret-client-id': string\n}\n\n/**\n * Oauth Redirect URI\n *\n * We should not export this when exporting the document\n */\nexport const XScalarSecretRedirectUriSchema = Type.Object({\n 'x-scalar-secret-redirect-uri': Type.String(),\n})\n\n/**\n * Oauth Redirect URI\n *\n * We should not export this when exporting the document\n */\nexport type XScalarSecretRedirectUri = {\n 'x-scalar-secret-redirect-uri': string\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAClD,yBAAyB,KAAK,OAAO;AACvC,CAAC;AAgBM,MAAM,kCAAkC,KAAK,OAAO;AAAA,EACzD,iCAAiC,KAAK,SAAS,KAAK,OAAO,CAAC;AAC9D,CAAC;AAgBM,MAAM,uBAAuB,KAAK,OAAO;AAAA,EAC9C,4BAA4B,KAAK,SAAS,KAAK,OAAO,CAAC;AACzD,CAAC;AAgBM,MAAM,wBAAwB,KAAK,OAAO;AAAA,EAC/C,6BAA6B,KAAK,SAAS,KAAK,OAAO,CAAC;AAC1D,CAAC;AAgBM,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,4BAA4B,KAAK,OAAO;AAAA,EACxC,4BAA4B,KAAK,OAAO;AAC1C,CAAC;AAiBM,MAAM,kCAAkC,KAAK,OAAO;AAAA,EACzD,iCAAiC,KAAK,OAAO;AAC/C,CAAC;AAgBM,MAAM,8BAA8B,KAAK,OAAO;AAAA,EACrD,6BAA6B,KAAK,OAAO;AAC3C,CAAC;AAgBM,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,gCAAgC,KAAK,OAAO;AAC9C,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/security/x-tokenName.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * An OpenAPI extension to specify a custom token name for OAuth2 flows\n *\n * @example\n * ```yaml\n * x-tokenName: 'custom_access_token'\n * ```\n */\nexport const XTokenNameSchema = Type.Object({\n 'x-tokenName': Type.Optional(Type.String()),\n})\n\n/**\n * An OpenAPI extension to specify a custom token name for OAuth2 flows\n *\n * @example\n * ```yaml\n * x-tokenName: 'custom_access_token'\n * ```\n */\nexport type XTokenName = {\n 'x-tokenName'?: string\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAUd,MAAM,mBAAmB,KAAK,OAAO;AAAA,EAC1C,eAAe,KAAK,SAAS,KAAK,OAAO,CAAC;AAC5C,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/security/x-use-pkce.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XusePkceSchema = Type.Object({\n /**\n * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.\n */\n 'x-usePkce': Type.Union([Type.Literal('SHA-256'), Type.Literal('plain'), Type.Literal('no')], { default: 'no' }),\n})\n\nexport type XusePkce = {\n /**\n * Use x-usePkce to enable Proof Key for Code Exchange (PKCE) for the Oauth2 authorization code flow.\n */\n 'x-usePkce': 'SHA-256' | 'plain' | 'no'\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,iBAAiB,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxC,aAAa,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS,GAAG,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,GAAG,EAAE,SAAS,KAAK,CAAC;AACjH,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/server/x-scalar-selected-server.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XScalarSelectedServerSchema = Type.Object({\n 'x-scalar-selected-server': Type.Optional(Type.String()),\n})\n\nexport type XScalarSelectedServer = {\n /** The URL of the currently selected server */\n 'x-scalar-selected-server'?: string\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,8BAA8B,KAAK,OAAO;AAAA,EACrD,4BAA4B,KAAK,SAAS,KAAK,OAAO,CAAC;AACzD,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/tag/x-display-name.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * An OpenAPI extension to overwrite tag names with a display-friendly version\n *\n * @example\n * ```yaml\n * x-displayName: planets\n * ```\n */\nexport const XDisplayNameSchema = Type.Object({\n 'x-displayName': Type.Optional(Type.String()),\n})\n\n/**\n * An OpenAPI extension to overwrite tag names with a display-friendly version\n *\n * @example\n * ```yaml\n * x-displayName: planets\n * ```\n */\nexport type XDisplayName = {\n 'x-displayName'?: string\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAUd,MAAM,qBAAqB,KAAK,OAAO;AAAA,EAC5C,iBAAiB,KAAK,SAAS,KAAK,OAAO,CAAC;AAC9C,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/tag/x-tag-groups.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XScalarOrder, XScalarOrderSchema } from '@/schemas/extensions/general/x-scalar-order'\n\nconst XTagGroupSchema = compose(\n Type.Object({\n /**\n * The group name.\n */\n name: Type.String(),\n /**\n * List of tags to include in this group.\n */\n tags: Type.Array(Type.String()),\n }),\n XScalarOrderSchema,\n)\n\nexport type XTagGroup = {\n /**\n * The group name.\n */\n name: string\n /**\n * List of tags to include in this group.\n */\n tags: string[]\n} & XScalarOrder\n\n/**\n * x-tagGroups\n *\n * List of tags to include in this group.\n */\nexport const XTagGroupsSchema = Type.Object({\n 'x-tagGroups': Type.Optional(Type.Array(XTagGroupSchema)),\n})\n\nexport type XTagGroups = {\n /**\n * x-tagGroups\n *\n * List of tags to include in this group.\n */\n 'x-tagGroups'?: XTagGroup[]\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAA4B,0BAA0B;AAEtD,MAAM,kBAAkB;AAAA,EACtB,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA,IAIV,MAAM,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA,IAIlB,MAAM,KAAK,MAAM,KAAK,OAAO,CAAC;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AAkBO,MAAM,mBAAmB,KAAK,OAAO;AAAA,EAC1C,eAAe,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAC1D,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/workspace/index.ts"],
|
|
4
|
-
"sourcesContent": ["export {\n type XScalarActiveProxy,\n XScalarActiveProxySchema,\n} from './x-scalar-active-proxy'\nexport {\n type Tab,\n type XScalarTabs,\n XScalarTabsSchema,\n} from './x-scalar-tabs'\n"],
|
|
5
|
-
"mappings": "AAAA;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAGE;AAAA,OACK;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/workspace/x-scalar-active-proxy.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Schema for the x-scalar-active-proxy extension.\n *\n * This property indicates the currently selected proxy's identifier.\n *\n * @example\n * {\n * \"x-scalar-active-proxy\": \"my-proxy-id\"\n * }\n */\nexport const XScalarActiveProxySchema = Type.Object({\n 'x-scalar-active-proxy': Type.Optional(Type.Union([Type.String(), Type.Null()])),\n})\n\nexport type XScalarActiveProxy = {\n /** The currently selected proxy */\n 'x-scalar-active-proxy'?: string | null\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAYd,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAClD,yBAAyB,KAAK,SAAS,KAAK,MAAM,CAAC,KAAK,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC;AACjF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/extensions/workspace/x-scalar-tabs.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\ntype TabIcon = 'request' | 'document'\n\nconst TabSchema = Type.Object({\n path: Type.String(),\n title: Type.String(),\n icon: Type.Optional(Type.String()),\n})\n\nexport type Tab = {\n path: string\n title: string\n icon?: TabIcon\n}\n\n/**\n * Schema for workspace tab configuration.\n *\n * This extension allows storing the list of open tabs and which tab is currently active.\n * Useful for preserving user's workspace state across sessions.\n */\nexport const XScalarTabsSchema = Type.Object({\n /** Array of tab identifiers that are currently open in the workspace */\n 'x-scalar-tabs': Type.Optional(Type.Array(TabSchema)),\n /** The identifier of the currently active/focused tab */\n 'x-scalar-active-tab': Type.Optional(Type.Number()),\n})\n\n/**\n * TypeScript type for workspace tab configuration.\n *\n * Used to persist which tabs are open and which one is active,\n * allowing users to restore their workspace state when returning to the application.\n */\nexport type XScalarTabs = {\n /** Array of tab identifiers that are currently open in the workspace */\n 'x-scalar-tabs'?: Tab[]\n /** The identifier of the currently active/focused tab */\n 'x-scalar-active-tab'?: number\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAIrB,MAAM,YAAY,KAAK,OAAO;AAAA,EAC5B,MAAM,KAAK,OAAO;AAAA,EAClB,OAAO,KAAK,OAAO;AAAA,EACnB,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AACnC,CAAC;AAcM,MAAM,oBAAoB,KAAK,OAAO;AAAA;AAAA,EAE3C,iBAAiB,KAAK,SAAS,KAAK,MAAM,SAAS,CAAC;AAAA;AAAA,EAEpD,uBAAuB,KAAK,SAAS,KAAK,OAAO,CAAC;AACpD,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/schemas/extensions.ts"],
|
|
4
|
-
"sourcesContent": ["export const extensions = {\n document: {\n navigation: 'x-scalar-navigation',\n },\n workspace: {\n colorMode: 'x-scalar-color-mode',\n sidebarWidth: 'x-scalar-sidebar-width',\n defaultClient: 'x-scalar-default-client',\n activeDocument: 'x-scalar-active-document',\n theme: 'x-scalar-theme',\n },\n} as const\n"],
|
|
5
|
-
"mappings": "AAAO,MAAM,aAAa;AAAA,EACxB,UAAU;AAAA,IACR,YAAY;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACT,WAAW;AAAA,IACX,cAAc;AAAA,IACd,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACT;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/schemas/inmemory-workspace.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { type DocumentAuth, DocumentAuthSchema } from '@/entities/auth/schema'\nimport { type DocumentHistory, DocumentHistorySchema } from '@/entities/history/schema'\nimport { compose } from '@/schemas/compose'\nimport {\n type WorkspaceDocument,\n WorkspaceDocumentSchema,\n type WorkspaceExtensions,\n WorkspaceExtensionsSchema,\n type WorkspaceMeta,\n WorkspaceMetaSchema,\n} from '@/schemas/workspace'\n\nconst UnknownObjectSchema = Type.Record(Type.String(), Type.Unknown())\n\nexport const InMemoryWorkspaceSchema = Type.Object({\n meta: compose(WorkspaceMetaSchema, WorkspaceExtensionsSchema),\n documents: Type.Record(Type.String(), WorkspaceDocumentSchema),\n originalDocuments: Type.Record(Type.String(), UnknownObjectSchema),\n intermediateDocuments: Type.Record(Type.String(), UnknownObjectSchema),\n overrides: Type.Record(Type.String(), Type.Any()),\n history: DocumentHistorySchema,\n auth: DocumentAuthSchema,\n})\n\nexport type InMemoryWorkspace = {\n meta: WorkspaceMeta & WorkspaceExtensions\n documents: Record<string, WorkspaceDocument>\n originalDocuments: Record<string, Record<string, unknown>>\n intermediateDocuments: Record<string, Record<string, unknown>>\n overrides: Record<string, any>\n history: DocumentHistory\n auth: DocumentAuth\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAA4B,0BAA0B;AACtD,SAA+B,6BAA6B;AAC5D,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AAEP,MAAM,sBAAsB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,QAAQ,CAAC;AAE9D,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,MAAM,QAAQ,qBAAqB,yBAAyB;AAAA,EAC5D,WAAW,KAAK,OAAO,KAAK,OAAO,GAAG,uBAAuB;AAAA,EAC7D,mBAAmB,KAAK,OAAO,KAAK,OAAO,GAAG,mBAAmB;AAAA,EACjE,uBAAuB,KAAK,OAAO,KAAK,OAAO,GAAG,mBAAmB;AAAA,EACrE,WAAW,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,IAAI,CAAC;AAAA,EAChD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/schemas/navigation.ts"],
|
|
4
|
-
"sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport type { InfoObject } from '@/schemas/v3.1/strict/info'\nimport type { OperationObject } from '@/schemas/v3.1/strict/operation'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\nimport type { SchemaObject } from '@/schemas/v3.1/strict/schema'\nimport type { TagObject } from '@/schemas/v3.1/strict/tag'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n /**\n * The unique identifier for the entry\n *\n * Must be unique across the entire navigation structure.\n */\n id: string\n /** The user readable title of the entry */\n title: string\n}\n\nexport const TraversedDocumentSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('document'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n icon: Type.Optional(Type.String()),\n }),\n)\n\n/**\n * An entry representing an OpenAPI in the navigation structure.\n *\n * Used in the client to represent the root document and its operations or tags.\n */\nexport type TraversedDocument = BaseSchema & {\n type: 'document'\n /** Document name */\n name: string\n /** Child entries under the document */\n children?: TraversedEntry[]\n icon?: string\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\n/**\n * An entry representing a markdown description in the navigation structure.\n */\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedExampleSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('example'),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing an operation example in the navigation structure.\n */\nexport type TraversedExample = BaseSchema & {\n type: 'example'\n name: string\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * An entry representing an operation in the navigation structure.\n */\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n children?: TraversedEntry[]\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\n/**\n * An entry representing a model in the navigation structure.\n */\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\n/**\n * An entry representing a webhook in the navigation structure.\n */\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\n/**\n * An entry representing a tag in the navigation structure.\n *\n * Used to group operations or webhooks under a common heading.\n */\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedModelsSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('models'),\n name: Type.String(),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n/**\n * Top level models navigation entry.\n */\nexport type TraversedModels = BaseSchema & {\n type: 'models'\n name: string\n children?: TraversedEntry[]\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n TraversedExampleSchemaDefinition,\n TraversedDocumentSchemaDefinition,\n TraversedModelsSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | TraversedWebhook\n | TraversedExample\n | TraversedDocument\n | TraversedModels\n\n/**\n * Type helper for when we are storing the parent entry in the entry itself.\n * The parent is recursively defined to also include its own parent, except for\n * TraversedDocument which can be a terminal parent without requiring its own parent.\n */\nexport type WithParent<Entry extends TraversedEntry> = Entry & {\n parent: WithParent<TraversedEntry> | TraversedDocument\n}\n\nexport type DocumentIdProps = {\n name: string\n info: InfoObject\n type: 'document'\n}\n\ntype DescriptionIdProps = {\n info: InfoObject\n type: 'text'\n slug?: string\n depth?: number\n value: string\n parentId: string\n}\n\nexport type ParentTag = {\n tag: TagObject\n id: string\n}\n\ntype TagProps = {\n parentId: string\n tag: TagObject\n type: 'tag'\n}\n\ntype OperationProps = {\n parentId: string\n operation: OperationObject\n path: string\n method: string\n type: 'operation'\n parentTag?: ParentTag\n}\n\ntype WebhookProps = {\n parentId: string\n webhook?: OperationObject\n name: string\n method?: string\n type: 'webhook'\n parentTag?: ParentTag\n}\n\ntype ModelProps = {\n parentId: string\n schema?: SchemaObject\n name?: string\n type: 'model'\n parentTag?: ParentTag\n}\n\ntype ExampleProps = {\n parentId: string\n name: string\n type: 'example'\n}\n\nexport type IdGeneratorProps =\n | DocumentIdProps\n | DescriptionIdProps\n | TagProps\n | OperationProps\n | WebhookProps\n | ModelProps\n | ExampleProps\n\nexport type IdGenerator = (props: IdGeneratorProps) => string\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/schemas/reference-config/appearance.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const AppearanceSchema = Type.Partial(\n Type.Object({\n layout: Type.Union([Type.Literal('modern'), Type.Literal('classic')]),\n theme: Type.String(),\n favicon: Type.String(),\n initialColorMode: Type.Union([Type.Literal('auto'), Type.Literal('dark'), Type.Literal('light')]),\n forceColorMode: Type.Union([Type.Literal('dark'), Type.Literal('light')]),\n css: Type.String(),\n loadDefaultFonts: Type.Boolean(),\n }),\n)\n\nexport type Appearance = {\n layout?: 'modern' | 'classic'\n theme?: string\n favicon?: string\n initialColorMode?: 'auto' | 'dark' | 'light'\n forceColorMode?: 'dark' | 'light'\n css?: string\n loadDefaultFonts?: boolean\n}\n\nexport const defaultAppearance: Required<Appearance> = {\n layout: 'modern',\n theme: 'default',\n favicon: '',\n initialColorMode: 'auto',\n forceColorMode: 'dark',\n css: '',\n loadDefaultFonts: true,\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,mBAAmB,KAAK;AAAA,EACnC,KAAK,OAAO;AAAA,IACV,QAAQ,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,SAAS,CAAC,CAAC;AAAA,IACpE,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,KAAK,OAAO;AAAA,IACrB,kBAAkB,KAAK,MAAM,CAAC,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA,IAChG,gBAAgB,KAAK,MAAM,CAAC,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA,IACxE,KAAK,KAAK,OAAO;AAAA,IACjB,kBAAkB,KAAK,QAAQ;AAAA,EACjC,CAAC;AACH;AAYO,MAAM,oBAA0C;AAAA,EACrD,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,KAAK;AAAA,EACL,kBAAkB;AACpB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/schemas/reference-config/features.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const FeaturesSchema = Type.Partial(\n Type.Object({\n showSidebar: Type.Boolean(),\n showModels: Type.Boolean(),\n showDownload: Type.Boolean(),\n showTestRequestButton: Type.Boolean(),\n showSearch: Type.Boolean(),\n showApiClientImport: Type.Boolean(),\n showDarkModeToggle: Type.Boolean(),\n expandAllTagSections: Type.Boolean(),\n persistAuthenticationState: Type.Boolean(),\n }),\n)\n\nexport type Features = {\n showSidebar?: boolean\n showModels?: boolean\n showDownload?: boolean\n showTestRequestButton?: boolean\n showSearch?: boolean\n showApiClientImport?: boolean\n showDarkModeToggle?: boolean\n expandAllTagSections?: boolean\n persistAuthenticationState?: boolean\n}\n\nexport const defaultFeatures: Required<Features> = {\n showSidebar: true,\n showModels: true,\n showDownload: true,\n showTestRequestButton: true,\n showSearch: true,\n showApiClientImport: true,\n showDarkModeToggle: true,\n expandAllTagSections: false,\n persistAuthenticationState: false,\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,iBAAiB,KAAK;AAAA,EACjC,KAAK,OAAO;AAAA,IACV,aAAa,KAAK,QAAQ;AAAA,IAC1B,YAAY,KAAK,QAAQ;AAAA,IACzB,cAAc,KAAK,QAAQ;AAAA,IAC3B,uBAAuB,KAAK,QAAQ;AAAA,IACpC,YAAY,KAAK,QAAQ;AAAA,IACzB,qBAAqB,KAAK,QAAQ;AAAA,IAClC,oBAAoB,KAAK,QAAQ;AAAA,IACjC,sBAAsB,KAAK,QAAQ;AAAA,IACnC,4BAA4B,KAAK,QAAQ;AAAA,EAC3C,CAAC;AACH;AAcO,MAAM,kBAAsC;AAAA,EACjD,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,uBAAuB;AAAA,EACvB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAC9B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/schemas/reference-config/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { type TArray, type TLiteral, Type } from '@scalar/typebox'\nimport { AVAILABLE_CLIENTS, type AvailableClient, type AvailableClients } from '@scalar/types/snippetz'\nimport type { RequiredDeep } from 'type-fest'\n\nimport { type Appearance, AppearanceSchema, defaultAppearance } from './appearance'\nimport { type Features, FeaturesSchema, defaultFeatures } from './features'\nimport { type Meta, MetaSchema, defaultMeta } from './meta'\nimport { type Routing, RoutingSchema, defaultRouting } from './routing'\nimport { type Settings, SettingsSchema, defaultSettings } from './settings'\n\n/**\n * ReferenceConfigSchema defines the shape of the configuration object\n * for the API Reference. All properties are optional due to Type.Partial.\n * This schema is used for validating and typing the configuration.\n */\nexport const ReferenceConfigSchema = Type.Partial(\n Type.Object({\n /** Document level title */\n title: Type.String(),\n /** Unique slug to identify the document */\n slug: Type.String(),\n /** Settings for the API reference (controls behavior and options) */\n settings: SettingsSchema,\n /** Routing configuration (controls navigation) */\n routing: RoutingSchema,\n /** Appearance configuration (controls theming and UI options) */\n appearance: AppearanceSchema,\n /** Features configuration (toggles for enabling/disabling features) */\n features: FeaturesSchema,\n /** Meta information */\n meta: MetaSchema,\n /** List of enabled HTTP clients for code samples */\n httpClients: Type.Array(Type.Union(AVAILABLE_CLIENTS.map((client) => Type.Literal(client)))) as unknown as TArray<\n TLiteral<AvailableClient>\n >,\n }),\n)\n\nexport type ReferenceConfig = {\n title?: string\n slug?: string\n settings?: Settings\n routing?: Routing\n appearance?: Appearance\n features?: Features\n meta?: Meta\n httpClients?: AvailableClients\n}\n\nexport const defaultReferenceConfig: RequiredDeep<ReferenceConfig> = {\n title: 'Scalar API Reference',\n slug: 'scalar-api-reference',\n\n /**\n * Default settings for the API reference.\n */\n settings: defaultSettings,\n\n /**\n * Default routing configuration for the API reference.\n */\n routing: defaultRouting,\n /**\n * Default appearance configuration for the API reference.\n */\n appearance: defaultAppearance,\n\n /**\n * Default features configuration for the API reference.\n */\n features: defaultFeatures,\n\n /**\n * Default meta configuration for the API reference.\n */\n meta: defaultMeta,\n\n /**\n * Default HTTP clients for the API reference.\n */\n httpClients: AVAILABLE_CLIENTS as AvailableClients,\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAqC,YAAY;AACjD,SAAS,yBAAsE;AAG/E,SAA0B,kBAAkB,yBAAyB;AACrE,SAAwB,gBAAgB,uBAAuB;AAC/D,SAAoB,YAAY,mBAAmB;AACnD,SAAuB,eAAe,sBAAsB;AAC5D,SAAwB,gBAAgB,uBAAuB;AAOxD,MAAM,wBAAwB,KAAK;AAAA,EACxC,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,OAAO;AAAA;AAAA,IAEnB,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,UAAU;AAAA;AAAA,IAEV,SAAS;AAAA;AAAA,IAET,YAAY;AAAA;AAAA,IAEZ,UAAU;AAAA;AAAA,IAEV,MAAM;AAAA;AAAA,IAEN,aAAa,KAAK,MAAM,KAAK,MAAM,kBAAkB,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,CAAC,CAAC;AAAA,EAG7F,CAAC;AACH;AAaO,MAAM,yBAAwD;AAAA,EACnE,OAAO;AAAA,EACP,MAAM;AAAA;AAAA;AAAA;AAAA,EAKN,UAAU;AAAA;AAAA;AAAA;AAAA,EAKV,SAAS;AAAA;AAAA;AAAA;AAAA,EAIT,YAAY;AAAA;AAAA;AAAA;AAAA,EAKZ,UAAU;AAAA;AAAA;AAAA;AAAA,EAKV,MAAM;AAAA;AAAA;AAAA;AAAA,EAKN,aAAa;AACf;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/schemas/reference-config/meta.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const MetaSchema = Type.Partial(\n Type.Object({\n title: Type.String(),\n description: Type.String(),\n ogTitle: Type.String(),\n ogDescription: Type.String(),\n ogImage: Type.String(),\n twitterCard: Type.String(),\n }),\n)\n\nexport type Meta = {\n title?: string\n description?: string\n ogTitle?: string\n ogDescription?: string\n ogImage?: string\n twitterCard?: string\n}\n\nexport const defaultMeta: Required<Meta> = {\n title: 'Scalar API Reference',\n description: 'Scalar API Reference',\n ogTitle: 'Scalar API Reference',\n ogDescription: 'Scalar API Reference',\n ogImage: 'https://scalar.com/images/scalar-logo.png',\n twitterCard: 'summary_large_image',\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,aAAa,KAAK;AAAA,EAC7B,KAAK,OAAO;AAAA,IACV,OAAO,KAAK,OAAO;AAAA,IACnB,aAAa,KAAK,OAAO;AAAA,IACzB,SAAS,KAAK,OAAO;AAAA,IACrB,eAAe,KAAK,OAAO;AAAA,IAC3B,SAAS,KAAK,OAAO;AAAA,IACrB,aAAa,KAAK,OAAO;AAAA,EAC3B,CAAC;AACH;AAWO,MAAM,cAA8B;AAAA,EACzC,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,EACT,eAAe;AAAA,EACf,SAAS;AAAA,EACT,aAAa;AACf;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/schemas/reference-config/routing.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const RoutingSchema = Type.Partial(\n Type.Object({\n basePath: Type.String(),\n pathNotFound: Type.String(),\n }),\n)\n\nexport type Routing = {\n basePath?: string\n pathNotFound?: string\n}\n\nexport const defaultRouting: Required<Routing> = {\n basePath: '/',\n pathNotFound: '/',\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,gBAAgB,KAAK;AAAA,EAChC,KAAK,OAAO;AAAA,IACV,UAAU,KAAK,OAAO;AAAA,IACtB,cAAc,KAAK,OAAO;AAAA,EAC5B,CAAC;AACH;AAOO,MAAM,iBAAoC;AAAA,EAC/C,UAAU;AAAA,EACV,cAAc;AAChB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/schemas/reference-config/settings.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\nimport type { RequiredDeep } from 'type-fest'\n\nimport { ServerObjectSchema } from '@/schemas/v3.1/strict/openapi-document'\nimport type { ServerObject } from '@/schemas/v3.1/strict/server'\n\nexport const SettingsSchema = Type.Partial(\n Type.Object({\n /** Custom proxy configuration */\n proxyUrl: Type.String(),\n /** Hotkey used to open the search menu */\n searchKey: Type.String(),\n /** Array of server configurations */\n servers: Type.Array(ServerObjectSchema),\n /** Base server URL for API requests */\n baseServerUrl: Type.String(),\n }),\n)\n\nexport type Settings = {\n proxyUrl?: string\n searchKey?: string\n servers?: ServerObject[]\n baseServerUrl?: string\n}\n\nexport const defaultSettings: RequiredDeep<Settings> = {\n proxyUrl: '',\n searchKey: 'k',\n servers: [],\n baseServerUrl: '',\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,0BAA0B;AAG5B,MAAM,iBAAiB,KAAK;AAAA,EACjC,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA;AAAA,IAEtB,WAAW,KAAK,OAAO;AAAA;AAAA,IAEvB,SAAS,KAAK,MAAM,kBAAkB;AAAA;AAAA,IAEtC,eAAe,KAAK,OAAO;AAAA,EAC7B,CAAC;AACH;AASO,MAAM,kBAA0C;AAAA,EACrD,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS,CAAC;AAAA,EACV,eAAe;AACjB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/schemas/typebox-coerce.ts"],
|
|
4
|
-
"sourcesContent": ["import type { TSchema } from '@scalar/typebox'\nimport { Value } from '@scalar/typebox/value'\n\n/**\n * Coerces a value to match the provided TypeBox schema by first converting and then casting the value.\n * This is useful for ensuring values match their expected types, especially when dealing with\n * form inputs or API responses that may need type conversion.\n *\n * @param schema - The TypeBox schema to coerce the value against\n * @param value - The value to coerce\n * @returns The coerced value that matches the schema\n *\n * @example\n * // Convert string \"123\" to number\n * const schema = Type.Number()\n * const value = \"123\"\n * const coerced = coerceValue(schema, value) // Returns 123\n *\n * @example\n * // Convert string \"true\" to boolean\n * const schema = Type.Boolean()\n * const value = \"true\"\n * const coerced = coerceValue(schema, value) // Returns true\n */\nexport const coerceValue = <T extends TSchema>(schema: T, value: unknown) => Value.Cast(schema, value)\n"],
|
|
5
|
-
"mappings": "AACA,SAAS,aAAa;AAuBf,MAAM,cAAc,CAAoB,QAAW,UAAmB,MAAM,KAAK,QAAQ,KAAK;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/callback.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport type { PathItemObject } from './path-item'\nimport { PathItemObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\n\nexport const CallbackObjectSchemaDefinition = Type.Record(\n Type.String(),\n /** A Path Item Object used to define a callback request and expected responses. A complete example is available. */\n Type.Union([PathItemObjectRef, reference(PathItemObjectRef)]),\n)\n\n/** A Path Item Object used to define a callback request and expected responses. A complete example is available. */\nexport type CallbackObject = Record<string, ReferenceType<PathItemObject>>\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,yBAAyB;AAClC,SAA6B,iBAAiB;AAEvC,MAAM,iCAAiC,KAAK;AAAA,EACjD,KAAK,OAAO;AAAA;AAAA,EAEZ,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC;AAC9D;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/components.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport type { CallbackObject } from './callback'\nimport type { ExampleObject } from './example'\nimport type { HeaderObject } from './header'\nimport type { LinkObject } from './link'\nimport type { ParameterObject } from './parameter'\nimport type { PathItemObject } from './path-item'\nimport {\n CallbackObjectRef,\n ExampleObjectRef,\n HeaderObjectRef,\n LinkObjectRef,\n ParameterObjectRef,\n PathItemObjectRef,\n RequestBodyObjectRef,\n ResponseObjectRef,\n SchemaObjectRef,\n SecuritySchemeObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { RequestBodyObject } from './request-body'\nimport type { ResponsesObject } from './responses'\nimport type { SchemaObject } from './schema'\nimport type { SecuritySchemeObject } from './security-scheme'\n\nexport const SecuritySchemesSchemaDefinition = Type.Record(\n Type.String(),\n Type.Union([SecuritySchemeObjectRef, reference(SecuritySchemeObjectRef)]),\n)\nexport type SecuritySchemes = Record<string, ReferenceType<SecuritySchemeObject>>\n\n/** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */\nexport const ComponentsObjectSchemaDefinition = Type.Object({\n /** An object to hold reusable Schema Objects. */\n schemas: Type.Optional(Type.Record(Type.String(), Type.Union([SchemaObjectRef, reference(SchemaObjectRef)]))),\n /** An object to hold reusable Response Objects. */\n responses: Type.Optional(Type.Record(Type.String(), Type.Union([ResponseObjectRef, reference(ResponseObjectRef)]))),\n /** An object to hold reusable Parameter Objects. */\n parameters: Type.Optional(\n Type.Record(Type.String(), Type.Union([ParameterObjectRef, reference(ParameterObjectRef)])),\n ),\n /** An object to hold reusable Example Objects. */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectRef, reference(ExampleObjectRef)]))),\n /** An object to hold reusable Request Body Objects. */\n requestBodies: Type.Optional(\n Type.Record(Type.String(), Type.Union([RequestBodyObjectRef, reference(RequestBodyObjectRef)])),\n ),\n /** An object to hold reusable Header Objects. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectRef, reference(HeaderObjectRef)]))),\n /** An object to hold reusable Security Scheme Objects. */\n securitySchemes: Type.Optional(SecuritySchemesSchemaDefinition),\n /** An object to hold reusable Link Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectRef, reference(LinkObjectRef)]))),\n /** An object to hold reusable Callback Objects. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectRef, reference(CallbackObjectRef)]))),\n /** An object to hold reusable Path Item Objects. */\n pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectRef)),\n})\n\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 type ComponentsObject = {\n /** An object to hold reusable Schema Objects. */\n schemas?: Record<string, ReferenceType<SchemaObject>>\n /** An object to hold reusable Response Objects. */\n responses?: ResponsesObject\n /** An object to hold reusable Parameter Objects. */\n parameters?: Record<string, ReferenceType<ParameterObject>>\n /** An object to hold reusable Example Objects. */\n examples?: Record<string, ReferenceType<ExampleObject>>\n /** An object to hold reusable Request Body Objects. */\n requestBodies?: Record<string, ReferenceType<RequestBodyObject>>\n /** An object to hold reusable Header Objects. */\n headers?: Record<string, ReferenceType<HeaderObject>>\n /** An object to hold reusable Security Scheme Objects. */\n securitySchemes?: SecuritySchemes\n /** An object to hold reusable Link Objects. */\n links?: Record<string, ReferenceType<LinkObject>>\n /** An object to hold reusable Callback Objects. */\n callbacks?: Record<string, ReferenceType<CallbackObject>>\n /** An object to hold reusable Path Item Objects. */\n pathItems?: Record<string, PathItemObject>\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAQrB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA6B,iBAAiB;AAMvC,MAAM,kCAAkC,KAAK;AAAA,EAClD,KAAK,OAAO;AAAA,EACZ,KAAK,MAAM,CAAC,yBAAyB,UAAU,uBAAuB,CAAC,CAAC;AAC1E;AAIO,MAAM,mCAAmC,KAAK,OAAO;AAAA;AAAA,EAE1D,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE5G,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAElH,YAAY,KAAK;AAAA,IACf,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA,EAC5F;AAAA;AAAA,EAEA,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,UAAU,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE/G,eAAe,KAAK;AAAA,IAClB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,UAAU,oBAAoB,CAAC,CAAC,CAAC;AAAA,EAChG;AAAA;AAAA,EAEA,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE5G,iBAAiB,KAAK,SAAS,+BAA+B;AAAA;AAAA,EAE9D,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,eAAe,UAAU,aAAa,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAEtG,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAElH,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,iBAAiB,CAAC;AACxE,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/contact.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/** Contact information for the exposed API. */\nexport const ContactObjectSchemaDefinition = 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\n/** Contact information for the exposed API. */\nexport type ContactObject = {\n /** The identifying name of the contact person/organization. */\n name?: string\n /** The URI for the contact information. This MUST be in the form of a URI. */\n url?: string\n /** The email address of the contact person/organization. This MUST be in the form of an email address. */\n email?: string\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAGd,MAAM,gCAAgC,KAAK,OAAO;AAAA;AAAA,EAEvD,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
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/discriminator.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/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 DiscriminatorObjectSchemaDefinition = 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\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 type DiscriminatorObject = {\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: string\n /** An object to hold mappings between payload values and schema names or URI references. */\n mapping?: Record<string, string>\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,sCAAsC,KAAK,OAAO;AAAA;AAAA,EAE7D,cAAc,KAAK,OAAO;AAAA;AAAA,EAE1B,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC,CAAC;AAClE,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/encoding.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport type { HeaderObject } from './header'\nimport { HeaderObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\n\n/**\n * A single encoding definition applied to a single schema property. See Appendix B for a discussion of converting values of various types to string representations.\n *\n * Properties are correlated with multipart parts using the name parameter of Content-Disposition: form-data, and with application/x-www-form-urlencoded using the query string parameter names. In both cases, their order is implementation-defined.\n *\n * See Appendix E for a detailed examination of percent-encoding concerns for form media types.\n */\nexport const EncodingObjectSchemaDefinition = 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([HeaderObjectRef, reference(HeaderObjectRef)]))),\n})\n\n/**\n * A single encoding definition applied to a single schema property. See Appendix B for a discussion of converting values of various types to string representations.\n *\n * Properties are correlated with multipart parts using the name parameter of Content-Disposition: form-data, and with application/x-www-form-urlencoded using the query string parameter names. In both cases, their order is implementation-defined.\n *\n * See Appendix E for a detailed examination of percent-encoding concerns for form media types.\n */\nexport type EncodingObject = {\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?: 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?: Record<string, ReferenceType<HeaderObject>>\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAGrB,SAAS,uBAAuB;AAChC,SAA6B,iBAAiB;AASvC,MAAM,iCAAiC,KAAK,OAAO;AAAA;AAAA,EAExD,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;AAC9G,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/example.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { XDisabled } from '@/schemas/extensions/example/x-disabled'\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 ExampleObjectSchemaDefinition = compose(\n 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 XDisabled,\n)\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 type ExampleObject = {\n /** Short description for the example. */\n summary?: string\n /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */\n description?: 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?: 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?: string\n /**\n * OpenAPI extension to control whether a parameter example is enabled (checkbox on) or disabled (checkbox off).\n *\n * This extension is typically used in API tools to determine if a parameter (such as a header, query, or cookie)\n * should be included in the request when sending an example. If `x-disabled: true`, the parameter example is considered\n * \"off\" (checkbox unchecked) and will not be sent with the request. If `x-disabled: false` or omitted, the parameter\n * example is \"on\" (checkbox checked) and will be sent.\n */\n 'x-disabled'?: boolean\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAOnB,MAAM,gCAAgC;AAAA,EAC3C,KAAK,OAAO;AAAA;AAAA,IAEV,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,IAE/B,eAAe,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC5C,CAAC;AAAA,EACD;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/external-documentation.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/** Allows referencing an external resource for extended documentation. */\nexport const ExternalDocumentationObjectSchemaDefinition = Type.Object({\n /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */\n url: Type.String(),\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n})\n\n/** Allows referencing an external resource for extended documentation. */\nexport type ExternalDocumentationObject = {\n /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */\n url: string\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAGd,MAAM,8CAA8C,KAAK,OAAO;AAAA;AAAA,EAErE,KAAK,KAAK,OAAO;AAAA;AAAA,EAEjB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAC1C,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/header.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\n\nimport type { ExampleObject } from './example'\nimport type { MediaTypeObject } from './media-type'\nimport { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { SchemaObject } from './schema'\n\nconst HeaderObjectSchemaBase = Type.Object({\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this header is mandatory. The default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n})\n\n/** Common properties in both sides of the union */\ntype HeaderBase = {\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** Determines whether this header is mandatory. The default value is false. */\n required?: boolean\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated?: boolean\n}\n\nconst HeaderObjectWithSchemaSchema = compose(\n HeaderObjectSchemaBase,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Optional(Type.Any()),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectRef, reference(ExampleObjectRef)]))),\n }),\n)\n\n/** Header object that uses schema */\ntype HeaderWithSchemaObject = HeaderBase & {\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style?: string\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode?: boolean\n /** The schema defining the type used for the header. */\n schema?: ReferenceType<SchemaObject>\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example?: any\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples?: Record<string, ReferenceType<ExampleObject>>\n}\n\n/**\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to \"simple\".\n */\nexport const HeaderObjectSchemaDefinition = Type.Union([\n HeaderObjectWithSchemaSchema,\n compose(\n HeaderObjectSchemaBase,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectRef)),\n }),\n ),\n])\n\n/** Header object that uses content */\ntype HeaderWithContent = HeaderBase & {\n content?: Record<string, MediaTypeObject>\n}\n\n/**\n * Describes a single header for HTTP responses and for individual parts in multipart representations; see the relevant Response Object and Encoding Object documentation for restrictions on which headers can be described.\n *\n * The Header Object follows the structure of the Parameter Object, including determining its serialization strategy based on whether schema or content is present, with the following changes:\n *\n * - name MUST NOT be specified, it is given in the corresponding headers map.\n * - in MUST NOT be specified, it is implicitly in header.\n * - All traits that are affected by the location MUST be applicable to a location of header (for example, style). This means that allowEmptyValue and allowReserved MUST NOT be used, and style, if used, MUST be limited to \"simple\".\n */\nexport type HeaderObject = HeaderWithSchemaObject | HeaderWithContent\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AAIxB,SAAS,kBAAkB,oBAAoB,uBAAuB;AACtE,SAA6B,iBAAiB;AAG9C,MAAM,yBAAyB,KAAK,OAAO;AAAA;AAAA,EAEzC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,EAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAC1C,CAAC;AAYD,MAAM,+BAA+B;AAAA,EACnC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC;AAAA;AAAA,IAE/E,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,IAEjC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,UAAU,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAAA,EACjH,CAAC;AACH;AAyBO,MAAM,+BAA+B,KAAK,MAAM;AAAA,EACrD;AAAA,EACA;AAAA,IACE;AAAA,IACA,KAAK,OAAO;AAAA,MACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC;AAAA,IACvE,CAAC;AAAA,EACH;AACF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/info.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {\n type XScalarSdkInstallation,\n XScalarSdkInstallationSchema,\n} from '@/schemas/extensions/document/x-scalar-sdk-installation'\n\nimport type { ContactObject } from './contact'\nimport type { LicenseObject } from './license'\nimport { ContactObjectRef, LicenseObjectRef } from './ref-definitions'\n\n/**\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.\n */\nexport const InfoObjectSchemaDefinition = compose(\n Type.Object({\n /** REQUIRED. The title of the API. */\n title: Type.String(),\n /** REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description). */\n version: Type.String(),\n /** A short summary of the API. */\n summary: Type.Optional(Type.String()),\n /** A description of the API. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */\n termsOfService: Type.Optional(Type.String()),\n /** The contact information for the exposed API. */\n contact: Type.Optional(ContactObjectRef),\n /** The license information for the exposed API. */\n license: Type.Optional(LicenseObjectRef),\n }),\n XScalarSdkInstallationSchema,\n)\n\n/**\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.\n */\nexport type InfoObject = {\n /** REQUIRED. The title of the API. */\n title: string\n /** REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description). */\n version: string\n /** A short summary of the API. */\n summary?: string\n /** A description of the API. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */\n termsOfService?: string\n /** The contact information for the exposed API. */\n contact?: ContactObject\n /** The license information for the exposed API. */\n license?: LicenseObject\n} & XScalarSdkInstallation\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,OACK;AAIP,SAAS,kBAAkB,wBAAwB;AAK5C,MAAM,6BAA6B;AAAA,EACxC,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,OAAO;AAAA;AAAA,IAEnB,SAAS,KAAK,OAAO;AAAA;AAAA,IAErB,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,gBAAgB,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAE3C,SAAS,KAAK,SAAS,gBAAgB;AAAA;AAAA,IAEvC,SAAS,KAAK,SAAS,gBAAgB;AAAA,EACzC,CAAC;AAAA,EACD;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/license.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/** The license information for the exposed API. */\nexport const LicenseObjectSchemaDefinition = Type.Object({\n /** REQUIRED. The license name used for the API. */\n name: Type.Optional(Type.String()),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: Type.Optional(Type.String()),\n /** A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. */\n url: Type.Optional(Type.String()),\n})\n\n/** The license information for the exposed API. */\nexport type LicenseObject = {\n /** REQUIRED. The license name used for the API. */\n name?: string\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier?: string\n /** A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. */\n url?: string\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAGd,MAAM,gCAAgC,KAAK,OAAO;AAAA;AAAA,EAEvD,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEjC,YAAY,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEvC,KAAK,KAAK,SAAS,KAAK,OAAO,CAAC;AAClC,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/link.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { ServerObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nimport type { ServerObject } from './server'\n\n/**\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation.\n */\nexport const LinkObjectSchemaDefinition = Type.Object({\n /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */\n operationRef: Type.Optional(Type.String()),\n /** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */\n operationId: Type.Optional(Type.String()),\n /** A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated and passed to the linked operation. */\n parameters: Type.Optional(Type.Record(Type.String(), Type.Any())),\n /** A literal value or {expression} to use as a request body when calling the target operation. */\n requestBody: Type.Optional(Type.Any()),\n /** A description of the link. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A server object to be used by the target operation. */\n server: Type.Optional(ServerObjectRef),\n})\n\n/**\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation.\n */\nexport type LinkObject = {\n /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */\n operationRef?: string\n /** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */\n operationId?: string\n /** A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated and passed to the linked operation. */\n parameters?: Record<string, any>\n /** A literal value or {expression} to use as a request body when calling the target operation. */\n requestBody?: any\n /** A description of the link. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** A server object to be used by the target operation. */\n server?: ServerObject\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,uBAAuB;AAWzB,MAAM,6BAA6B,KAAK,OAAO;AAAA;AAAA,EAEpD,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEzC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,YAAY,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC;AAAA;AAAA,EAEhE,aAAa,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,EAErC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,QAAQ,KAAK,SAAS,eAAe;AACvC,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/media-type.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport type { EncodingObject } from './encoding'\nimport type { ExampleObject } from './example'\nimport { EncodingObjectRef, ExampleObjectRef, SchemaObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { SchemaObject } from './schema'\n\n/**\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * When example or examples are provided, the example SHOULD match the specified schema and be in the correct format as specified by the media type and its encoding. The example and examples fields are mutually exclusive, and if either is present it SHALL override any example in the schema. See Working With Examples for further guidance regarding the different ways of specifying examples, including non-JSON/YAML values.\n */\nexport const MediaTypeObjectSchemaDefinition = Type.Object({\n /** The schema defining the content of the request, response, parameter, or header. */\n schema: Type.Optional(Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])),\n /** Example of the media type */\n example: Type.Optional(Type.Any()),\n /** Examples of the media type */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectRef, reference(ExampleObjectRef)]))),\n /** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding field SHALL only apply to Request Body Objects, and only when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. */\n encoding: Type.Optional(Type.Record(Type.String(), EncodingObjectRef)),\n})\n\n/**\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * When example or examples are provided, the example SHOULD match the specified schema and be in the correct format as specified by the media type and its encoding. The example and examples fields are mutually exclusive, and if either is present it SHALL override any example in the schema. See Working With Examples for further guidance regarding the different ways of specifying examples, including non-JSON/YAML values.\n */\nexport type MediaTypeObject = {\n /** The schema defining the content of the request, response, parameter, or header. */\n schema?: ReferenceType<SchemaObject>\n /** Example of the media type */\n example?: any\n /** Examples of the media type */\n examples?: Record<string, ReferenceType<ExampleObject>>\n /** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding field SHALL only apply to Request Body Objects, and only when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. */\n encoding?: Record<string, EncodingObject>\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAIrB,SAAS,mBAAmB,kBAAkB,uBAAuB;AACrE,SAA6B,iBAAiB;AAQvC,MAAM,kCAAkC,KAAK,OAAO;AAAA;AAAA,EAEzD,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC;AAAA;AAAA,EAE/E,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,EAEjC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,UAAU,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE/G,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,iBAAiB,CAAC;AACvE,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {\n type XScalarCredentialsLocation,\n XScalarCredentialsLocationSchema,\n} from '@/schemas/extensions/security/x-scalar-credentials-location'\nimport {\n type XScalarSecurityBody,\n XScalarSecurityBodySchema,\n} from '@/schemas/extensions/security/x-scalar-security-body'\nimport {\n type XScalarSecurityQuery,\n XScalarSecurityQuerySchema,\n} from '@/schemas/extensions/security/x-scalar-security-query'\nimport {\n type XScalarAuthUrl,\n XScalarAuthUrlSchema,\n type XScalarTokenUrl,\n XScalarTokenUrlSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport { type XTokenName, XTokenNameSchema } from '@/schemas/extensions/security/x-tokenName'\nimport { type XusePkce, XusePkceSchema } from '@/schemas/extensions/security/x-use-pkce'\n\n/** Common properties used across all OAuth flows */\nconst OAuthFlowCommonSchema = compose(\n Type.Object({\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: Type.String(),\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Type.Record(Type.String(), Type.String()),\n }),\n XScalarSecurityQuerySchema,\n XScalarSecurityBodySchema,\n XTokenNameSchema,\n XScalarAuthUrlSchema,\n XScalarTokenUrlSchema,\n)\n\n/** Common properties used across all OAuth flows */\ntype OAuthFlowCommon = {\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: string\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Record<string, string>\n} & XScalarSecurityQuery &\n XScalarSecurityBody &\n XTokenName &\n XScalarTokenUrl &\n XScalarAuthUrl\n\n/** Configuration for the OAuth Implicit flow */\nexport const OAuthFlowImplicitSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n }),\n)\n\n/** Configuration for the OAuth Implicit flow */\nexport type OAuthFlowImplicit = OAuthFlowCommon & {\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: string\n}\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport const OAuthFlowPasswordSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarCredentialsLocationSchema,\n)\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport type OAuthFlowPassword = OAuthFlowCommon & {\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarCredentialsLocation\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport const OAuthFlowClientCredentialsSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarCredentialsLocationSchema,\n)\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport type OAuthFlowClientCredentials = OAuthFlowCommon & {\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XScalarCredentialsLocation\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport const OAuthFlowAuthorizationCodeSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XusePkceSchema,\n XScalarCredentialsLocationSchema,\n)\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport type OAuthFlowAuthorizationCode = OAuthFlowCommon & {\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: string\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: string\n} & XusePkce &\n XScalarCredentialsLocation\n\nexport type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EAEA;AAAA,OACK;AACP,SAA0B,wBAAwB;AAClD,SAAwB,sBAAsB;AAG9C,MAAM,wBAAwB;AAAA,EAC5B,KAAK,OAAO;AAAA;AAAA,IAEV,YAAY,KAAK,OAAO;AAAA;AAAA,IAExB,QAAQ,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC;AAAA,EAClD,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAeO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AACH;AASO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AASO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AASO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA;AAAA,IAE9B,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/oauthflows.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport {\n type OAuthFlowAuthorizationCode,\n OAuthFlowAuthorizationCodeSchema,\n type OAuthFlowClientCredentials,\n OAuthFlowClientCredentialsSchema,\n type OAuthFlowImplicit,\n OAuthFlowImplicitSchema,\n type OAuthFlowPassword,\n OAuthFlowPasswordSchema,\n} from './oauth-flow'\n\n/**\n * Allows configuration of the supported OAuth Flows.\n */\nexport const OAuthFlowsObjectSchemaDefinition = Type.Object({\n /** Configuration for the OAuth Implicit flow */\n implicit: Type.Optional(OAuthFlowImplicitSchema),\n /** Configuration for the OAuth Resource Owner Password flow */\n password: Type.Optional(OAuthFlowPasswordSchema),\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials: Type.Optional(OAuthFlowClientCredentialsSchema),\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\n authorizationCode: Type.Optional(OAuthFlowAuthorizationCodeSchema),\n})\n\nexport type OAuthFlowsObject = {\n /** Configuration for the OAuth Implicit flow */\n implicit?: OAuthFlowImplicit\n /** Configuration for the OAuth Resource Owner Password flow */\n password?: OAuthFlowPassword\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials?: OAuthFlowClientCredentials\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\n authorizationCode?: OAuthFlowAuthorizationCode\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB;AAAA,EAEE;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AAKA,MAAM,mCAAmC,KAAK,OAAO;AAAA;AAAA,EAE1D,UAAU,KAAK,SAAS,uBAAuB;AAAA;AAAA,EAE/C,UAAU,KAAK,SAAS,uBAAuB;AAAA;AAAA,EAE/C,mBAAmB,KAAK,SAAS,gCAAgC;AAAA;AAAA,EAEjE,mBAAmB,KAAK,SAAS,gCAAgC;AACnE,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/openapi-document.ts"],
|
|
4
|
-
"sourcesContent": ["import { type TSchema, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { extensions } from '@/schemas/extensions'\nimport {\n type XScalarEnvironments,\n xScalarEnvironmentsSchema,\n} from '@/schemas/extensions/document/x-scalar-environments'\nimport { type XScalarIcon, XScalarIconSchema } from '@/schemas/extensions/document/x-scalar-icon'\nimport { type XScalarIsDirty, XScalarIsDirtySchema } from '@/schemas/extensions/document/x-scalar-is-dirty'\nimport {\n type XScalarOriginalDocumentHash,\n XScalarOriginalDocumentHashSchema,\n} from '@/schemas/extensions/document/x-scalar-original-document-hash'\nimport {\n type XScalarRegistryMeta,\n XScalarRegistryMetaSchema,\n} from '@/schemas/extensions/document/x-scalar-registry-meta'\nimport { type XScalarWatchMode, XScalarWatchModeSchema } from '@/schemas/extensions/document/x-scalar-watch-mode'\nimport {\n type XScalarActiveEnvironment,\n XScalarActiveEnvironmentSchema,\n} from '@/schemas/extensions/general/x-scalar-active-environment'\nimport { type XScalarCookies, xScalarCookiesSchema } from '@/schemas/extensions/general/x-scalar-cookies'\nimport { type XScalarOrder, XScalarOrderSchema } from '@/schemas/extensions/general/x-scalar-order'\nimport {\n type XScalarSelectedServer,\n XScalarSelectedServerSchema,\n} from '@/schemas/extensions/server/x-scalar-selected-server'\nimport { type XTagGroups, XTagGroupsSchema } from '@/schemas/extensions/tag/x-tag-groups'\nimport {\n TraversedDescriptionSchemaDefinition,\n type TraversedDocument,\n TraversedDocumentSchemaDefinition,\n TraversedEntrySchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n} from '@/schemas/navigation'\n\nimport { CallbackObjectSchemaDefinition } from './callback'\nimport { type ComponentsObject, ComponentsObjectSchemaDefinition, SecuritySchemesSchemaDefinition } from './components'\nimport { ContactObjectSchemaDefinition } from './contact'\nimport { DiscriminatorObjectSchemaDefinition } from './discriminator'\nimport { EncodingObjectSchemaDefinition } from './encoding'\nimport { ExampleObjectSchemaDefinition } from './example'\nimport { type ExternalDocumentationObject, ExternalDocumentationObjectSchemaDefinition } from './external-documentation'\nimport { HeaderObjectSchemaDefinition } from './header'\nimport { type InfoObject, InfoObjectSchemaDefinition } from './info'\nimport { LicenseObjectSchemaDefinition } from './license'\nimport { LinkObjectSchemaDefinition } from './link'\nimport { MediaTypeObjectSchemaDefinition } from './media-type'\nimport { OAuthFlowsObjectSchemaDefinition } from './oauthflows'\nimport { OperationObjectSchemaDefinition } from './operation'\nimport { ParameterObjectSchemaDefinition } from './parameter'\nimport { PathItemObjectSchemaDefinition } from './path-item'\nimport { type PathsObject, PathsObjectSchemaDefinition } from './paths'\nimport {\n ComponentsObjectRef,\n ExternalDocumentationObjectRef,\n InfoObjectRef,\n PathItemObjectRef,\n PathsObjectRef,\n REF_DEFINITIONS,\n SecurityRequirementObjectRef,\n ServerObjectRef,\n TagObjectRef,\n TraversedDocumentObjectRef,\n} from './ref-definitions'\nimport { RequestBodyObjectSchemaDefinition } from './request-body'\nimport { ResponseObjectSchemaDefinition } from './response'\nimport { ResponsesObjectSchemaDefinition } from './responses'\nimport { SchemaObjectSchemaDefinition } from './schema'\nimport { type SecurityRequirementObject, SecurityRequirementObjectSchemaDefinition } from './security-requirement'\nimport { SecuritySchemeObjectSchemaDefinition } from './security-scheme'\nimport { type ServerObject, ServerObjectSchemaDefinition } from './server'\nimport { ServerVariableObjectSchemaDefinition } from './server-variable'\nimport { type TagObject, TagObjectSchemaDefinition } from './tag'\nimport { XMLObjectSchemaDefinition } from './xml'\n\nexport const OpenApiExtensionsSchema = compose(\n Type.Partial(\n Type.Object({\n 'x-original-oas-version': Type.String(),\n 'x-scalar-original-source-url': Type.String(),\n [extensions.document.navigation]: TraversedDocumentObjectRef,\n }),\n ),\n XTagGroupsSchema,\n xScalarEnvironmentsSchema,\n XScalarSelectedServerSchema,\n XScalarIconSchema,\n XScalarOrderSchema,\n xScalarCookiesSchema,\n XScalarOriginalDocumentHashSchema,\n XScalarIsDirtySchema,\n XScalarActiveEnvironmentSchema,\n XScalarWatchModeSchema,\n XScalarRegistryMetaSchema,\n)\n\nexport type OpenAPIExtensions = Partial<{\n 'x-original-oas-version': string\n /** Original document source url / when loading a document from an external source */\n 'x-scalar-original-source-url': string\n [extensions.document.navigation]: TraversedDocument\n}> &\n XScalarOriginalDocumentHash &\n XTagGroups &\n XScalarEnvironments &\n XScalarActiveEnvironment &\n XScalarSelectedServer &\n XScalarIcon &\n XScalarOrder &\n XScalarCookies &\n XScalarIsDirty &\n XScalarWatchMode &\n XScalarRegistryMeta\n\nconst OpenApiDocumentSchemaDefinition = compose(\n Type.Object({\n /** REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string. */\n openapi: Type.String(),\n /** REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. */\n info: InfoObjectRef,\n /** The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI. */\n jsonSchemaDialect: Type.Optional(Type.String()),\n /** An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /. */\n servers: Type.Optional(Type.Array(ServerObjectRef)),\n /** The available paths and operations for the API. */\n paths: Type.Optional(PathsObjectRef),\n /** The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An example is available. */\n webhooks: Type.Optional(Type.Record(Type.String(), PathItemObjectRef)),\n /** An element to hold various Objects for the OpenAPI Description. */\n components: Type.Optional(ComponentsObjectRef),\n /** A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. Individual operations can override this definition. The list can be incomplete, up to being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included in the array. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectRef)),\n /** A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique. */\n tags: Type.Optional(Type.Array(TagObjectRef)),\n /** Additional external documentation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n }),\n OpenApiExtensionsSchema,\n)\n\nexport type OpenApiDocument = {\n /** REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string. */\n openapi: string\n /** REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. */\n info: InfoObject\n /** The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI. */\n jsonSchemaDialect?: string\n /** An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /. */\n servers?: ServerObject[]\n /** The available paths and operations for the API. */\n paths?: PathsObject\n /** The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An example is available. */\n webhooks?: PathsObject\n /** An element to hold various Objects for the OpenAPI Description. */\n components?: ComponentsObject\n /** A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. Individual operations can override this definition. The list can be incomplete, up to being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included in the array. */\n security?: SecurityRequirementObject[]\n /** A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique. */\n tags?: TagObject[]\n /** Additional external documentation. */\n externalDocs?: ExternalDocumentationObject\n} & OpenAPIExtensions\n\n// ----- Module Definition ----\nconst module = Type.Module({\n [REF_DEFINITIONS.ComponentsObject]: ComponentsObjectSchemaDefinition,\n [REF_DEFINITIONS.SecurityRequirementObject]: SecurityRequirementObjectSchemaDefinition,\n [REF_DEFINITIONS.TagObject]: TagObjectSchemaDefinition,\n\n [REF_DEFINITIONS.CallbackObject]: CallbackObjectSchemaDefinition,\n [REF_DEFINITIONS.PathItemObject]: PathItemObjectSchemaDefinition,\n [REF_DEFINITIONS.PathsObject]: PathsObjectSchemaDefinition,\n [REF_DEFINITIONS.OperationObject]: OperationObjectSchemaDefinition,\n\n [REF_DEFINITIONS.SchemaObject]: SchemaObjectSchemaDefinition,\n\n [REF_DEFINITIONS.EncodingObject]: EncodingObjectSchemaDefinition,\n [REF_DEFINITIONS.MediaTypeObject]: MediaTypeObjectSchemaDefinition,\n [REF_DEFINITIONS.HeaderObject]: HeaderObjectSchemaDefinition,\n\n [REF_DEFINITIONS.ServerObject]: ServerObjectSchemaDefinition,\n [REF_DEFINITIONS.ExternalDocumentationObject]: ExternalDocumentationObjectSchemaDefinition,\n\n [REF_DEFINITIONS.InfoObject]: InfoObjectSchemaDefinition,\n [REF_DEFINITIONS.ContactObject]: ContactObjectSchemaDefinition,\n [REF_DEFINITIONS.LicenseObject]: LicenseObjectSchemaDefinition,\n [REF_DEFINITIONS.ResponseObject]: ResponseObjectSchemaDefinition,\n [REF_DEFINITIONS.ResponsesObject]: ResponsesObjectSchemaDefinition,\n [REF_DEFINITIONS.ParameterObject]: ParameterObjectSchemaDefinition,\n [REF_DEFINITIONS.ExampleObject]: ExampleObjectSchemaDefinition,\n [REF_DEFINITIONS.RequestBodyObject]: RequestBodyObjectSchemaDefinition,\n [REF_DEFINITIONS.SecuritySchemes]: SecuritySchemesSchemaDefinition,\n [REF_DEFINITIONS.SecuritySchemeObject]: SecuritySchemeObjectSchemaDefinition,\n [REF_DEFINITIONS.LinkObject]: LinkObjectSchemaDefinition,\n [REF_DEFINITIONS.XMLObject]: XMLObjectSchemaDefinition,\n [REF_DEFINITIONS.DiscriminatorObject]: DiscriminatorObjectSchemaDefinition,\n [REF_DEFINITIONS.OAuthFlowsObject]: OAuthFlowsObjectSchemaDefinition,\n [REF_DEFINITIONS.ServerVariableObject]: ServerVariableObjectSchemaDefinition,\n OpenApiDocument: OpenApiDocumentSchemaDefinition,\n\n // Navigation schemas\n [REF_DEFINITIONS.TraversedDescriptionObject]: TraversedDescriptionSchemaDefinition,\n [REF_DEFINITIONS.TraversedOperationObject]: TraversedOperationSchemaDefinition,\n [REF_DEFINITIONS.TraversedSchemaObject]: TraversedSchemaSchemaDefinition,\n [REF_DEFINITIONS.TraversedWebhookObject]: TraversedWebhookSchemaDefinition,\n [REF_DEFINITIONS.TraversedTagObject]: TraversedTagSchemaDefinition,\n [REF_DEFINITIONS.TraversedEntryObject]: TraversedEntrySchemaDefinition,\n [REF_DEFINITIONS.TraversedDocumentObject]: TraversedDocumentSchemaDefinition,\n\n // Enforces that all references are included in the module\n} satisfies Record<keyof typeof REF_DEFINITIONS, TSchema> & Record<'OpenApiDocument', TSchema>)\n\n// ----- Schemas ----\nexport const OpenAPIDocumentSchema = module.Import('OpenApiDocument')\n\nexport const ComponentsObjectSchema = module.Import('ComponentsObject')\nexport const SecurityRequirementObjectSchema = module.Import('SecurityRequirementObject')\nexport const TagObjectSchema = module.Import('TagObject')\n\nexport const CallbackObjectSchema = module.Import('CallbackObject')\nexport const PathItemObjectSchema = module.Import('PathItemObject')\nexport const PathsObjectSchema = module.Import('PathsObject')\nexport const OperationObjectSchema = module.Import('OperationObject')\n\nexport const SchemaObjectSchema = module.Import('SchemaObject')\n\nexport const EncodingObjectSchema = module.Import('EncodingObject')\nexport const MediaTypeObjectSchema = module.Import('MediaTypeObject')\nexport const HeaderObjectSchema = module.Import('HeaderObject')\n\nexport const ServerObjectSchema = module.Import('ServerObject')\nexport const ExternalDocumentationObjectSchema = module.Import('ExternalDocumentationObject')\n\nexport const InfoObjectSchema = module.Import('InfoObject')\nexport const ContactObjectSchema = module.Import('ContactObject')\nexport const LicenseObjectSchema = module.Import('LicenseObject')\nexport const ResponseObjectSchema = module.Import('ResponseObject')\nexport const ResponsesObjectSchema = module.Import('ResponsesObject')\nexport const ParameterObjectSchema = module.Import('ParameterObject')\nexport const ExampleObjectSchema = module.Import('ExampleObject')\nexport const RequestBodyObjectSchema = module.Import('RequestBodyObject')\nexport const SecuritySchemesSchema = module.Import('SecuritySchemes')\nexport const SecuritySchemeObjectSchema = module.Import('SecuritySchemeObject')\nexport const LinkObjectSchema = module.Import('LinkObject')\nexport const XMLObjectSchema = module.Import('XMLObject')\nexport const DiscriminatorObjectSchema = module.Import('DiscriminatorObject')\nexport const OAuthFlowsObjectSchema = module.Import('OAuthFlowsObject')\nexport const ServerVariableObjectSchema = module.Import('ServerVariableObject')\n\nexport const TraversedDescriptionSchema = module.Import('TraversedDescriptionObject')\nexport const TraversedEntrySchema = module.Import('TraversedEntryObject')\nexport const TraversedTagSchema = module.Import('TraversedTagObject')\nexport const TraversedOperationSchema = module.Import('TraversedOperationObject')\nexport const TraversedSchemaSchema = module.Import('TraversedSchemaObject')\nexport const TraversedWebhookSchema = module.Import('TraversedWebhookObject')\n\n// ----- Type re-exports ----\nexport type { ExternalDocumentationObject }\nexport type { InfoObject }\nexport type { PathsObject }\nexport type { SecurityRequirementObject }\nexport type { ServerObject }\nexport type { TagObject }\n\nexport type { CallbackObject } from './callback'\nexport type { ComponentsObject, SecuritySchemes } from './components'\nexport type { ContactObject } from './contact'\nexport type { DiscriminatorObject } from './discriminator'\nexport type { EncodingObject } from './encoding'\nexport type { ExampleObject } from './example'\nexport type { HeaderObject } from './header'\nexport type { LicenseObject } from './license'\nexport type { LinkObject } from './link'\nexport type { MediaTypeObject } from './media-type'\nexport type { OAuthFlow } from './oauth-flow'\nexport type { OAuthFlowsObject } from './oauthflows'\nexport type { OperationObject } from './operation'\nexport type { ParameterObject, ParameterWithContentObject, ParameterWithSchemaObject } from './parameter'\nexport type { PathItemObject } from './path-item'\nexport type { ReferenceType } from './reference'\nexport type { RequestBodyObject } from './request-body'\nexport type { ResponseObject } from './response'\nexport type { ResponsesObject } from './responses'\nexport type { SchemaObject, SchemaReferenceType } from './schema'\nexport type {\n ApiKeyObject,\n HttpObject,\n OAuth2Object,\n OpenIdConnectObject,\n SecuritySchemeObject,\n} from './security-scheme'\nexport type { ServerVariableObject } from './server-variable'\nexport type { XMLObject } from './xml'\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/schemas/v3.1/strict/operation.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XInternal, XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { type XScalarIgnore, XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { type XBadges, XBadgesSchema } from '@/schemas/extensions/operation/x-badge'\nimport { type XCodeSamples, XCodeSamplesSchema } from '@/schemas/extensions/operation/x-code-samples'\nimport { type XDraftExamples, XDraftExamplesSchema } from '@/schemas/extensions/operation/x-draft-examples'\nimport { type XPostResponse, XPostResponseSchema } from '@/schemas/extensions/operation/x-post-response'\nimport {\n type XScalarDisableParameters,\n XScalarDisableParametersSchema,\n} from '@/schemas/extensions/operation/x-scalar-disable-parameters'\nimport { type XScalarStability, XScalarStabilitySchema } from '@/schemas/extensions/operation/x-scalar-stability'\nimport {\n type XScalarSelectedServer,\n XScalarSelectedServerSchema,\n} from '@/schemas/extensions/server/x-scalar-selected-server'\n\nimport type { CallbackObject } from './callback'\nimport type { ExternalDocumentationObject } from './external-documentation'\nimport type { ParameterObject } from './parameter'\nimport {\n CallbackObjectRef,\n ExternalDocumentationObjectRef,\n ParameterObjectRef,\n RequestBodyObjectRef,\n ResponsesObjectRef,\n SecurityRequirementObjectRef,\n ServerObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { RequestBodyObject } from './request-body'\nimport type { ResponsesObject } from './responses'\nimport type { SecurityRequirementObject } from './security-requirement'\nimport type { ServerObject } from './server'\n\nexport const OperationObjectSchemaDefinition = compose(\n Type.Object({\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags: Type.Optional(Type.Array(Type.String())),\n /** A short summary of what the operation does. */\n summary: Type.Optional(Type.String()),\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this operation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n /** Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions. */\n operationId: Type.Optional(Type.String()),\n /** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectRef, reference(ParameterObjectRef)]))),\n /** The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible. */\n requestBody: Type.Optional(Type.Union([RequestBodyObjectRef, reference(RequestBodyObjectRef)])),\n /** The list of possible responses as they are returned from executing this operation. */\n responses: Type.Optional(ResponsesObjectRef),\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectRef)),\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectRef)),\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectRef, reference(CallbackObjectRef)]))),\n }),\n XBadgesSchema,\n XInternalSchema,\n XScalarIgnoreSchema,\n XCodeSamplesSchema,\n XScalarStabilitySchema,\n XScalarDisableParametersSchema,\n XPostResponseSchema,\n XDraftExamplesSchema,\n XScalarSelectedServerSchema,\n)\n\nexport type OperationObject = {\n /** A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier. */\n tags?: string[]\n /** A short summary of what the operation does. */\n summary?: string\n /** A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation. */\n description?: string\n /** Additional external documentation for this operation. */\n externalDocs?: ExternalDocumentationObject\n /** Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions. */\n operationId?: string\n /** A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters?: ReferenceType<ParameterObject>[]\n /** The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible. */\n requestBody?: ReferenceType<RequestBodyObject>\n /** The list of possible responses as they are returned from executing this operation. */\n responses?: ResponsesObject\n /** Declares this operation to be deprecated. Consumers SHOULD refrain from usage of the declared operation. Default value is false. */\n deprecated?: boolean\n /** A declaration of which security mechanisms can be used for this operation. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. To make security optional, an empty security requirement ({}) can be included in the array. This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used. */\n security?: SecurityRequirementObject[]\n /** An alternative servers array to service this operation. If a servers array is specified at the Path Item Object or OpenAPI Object level, it will be overridden by this value. */\n servers?: ServerObject[]\n /** A map of possible out-of band callbacks related to the parent operation. The key is a unique identifier for the Callback Object. Each value in the map is a Callback Object that describes a request that may be initiated by the API provider and the expected responses. */\n callbacks?: Record<string, ReferenceType<CallbackObject>>\n} & XBadges &\n XInternal &\n XScalarIgnore &\n XCodeSamples &\n XScalarStability &\n XScalarDisableParameters &\n XPostResponse &\n XDraftExamples &\n XScalarSelectedServer\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAuB,qBAAqB;AAC5C,SAA4B,0BAA0B;AACtD,SAA8B,4BAA4B;AAC1D,SAA6B,2BAA2B;AACxD;AAAA,EAEE;AAAA,OACK;AACP,SAAgC,8BAA8B;AAC9D;AAAA,EAEE;AAAA,OACK;AAKP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA6B,iBAAiB;AAMvC,MAAM,kCAAkC;AAAA,EAC7C,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,IAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,cAAc,KAAK,SAAS,8BAA8B;AAAA;AAAA,IAE1D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,IAErG,aAAa,KAAK,SAAS,KAAK,MAAM,CAAC,sBAAsB,UAAU,oBAAoB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE9F,WAAW,KAAK,SAAS,kBAAkB;AAAA;AAAA,IAE3C,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAExC,UAAU,KAAK,SAAS,KAAK,MAAM,4BAA4B,CAAC;AAAA;AAAA,IAEhE,SAAS,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAAA;AAAA,IAElD,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAAA,EACpH,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|