@scalar/workspace-store 0.16.0 → 0.16.2
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 +19 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +2 -2
- package/dist/mutators/index.d.ts +6 -24
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/index.js +0 -2
- package/dist/mutators/index.js.map +2 -2
- package/dist/navigation/helpers/traverse-description.d.ts +1 -1
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.js.map +1 -1
- package/dist/navigation/helpers/traverse-document.d.ts +2 -182
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +1 -1
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-schemas.d.ts +2 -1
- package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +2 -1
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +1 -0
- package/dist/navigation/helpers/traverse-tags.js.map +2 -2
- package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -1
- package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js +1 -1
- package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
- package/dist/navigation/types.d.ts +2 -1
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-internal.d.ts +4 -0
- package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-internal.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-icon.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -0
- package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-ignore.js.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +8 -2
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +2 -2
- package/dist/schemas/extensions/document/x-tags.d.ts +3 -0
- package/dist/schemas/extensions/document/x-tags.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-tags.js.map +1 -1
- package/dist/schemas/extensions/operation/x-badge.d.ts +62 -22
- package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-badge.js +24 -3
- package/dist/schemas/extensions/operation/x-badge.js.map +2 -2
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +10 -2
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
- package/dist/schemas/extensions/operation/x-post-response.d.ts +18 -0
- package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +11 -0
- package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-scalar-stability.js.map +1 -1
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +10 -0
- package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +30 -0
- package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts +38 -0
- package/dist/schemas/extensions/schema/x-enum-varnames.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-enum-varnames.js.map +1 -1
- package/dist/schemas/extensions/schema/x-variable.d.ts +3 -0
- package/dist/schemas/extensions/schema/x-variable.d.ts.map +1 -1
- package/dist/schemas/extensions/schema/x-variable.js.map +1 -1
- package/dist/schemas/extensions/security/x-default-scopes.d.ts +16 -0
- package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-default-scopes.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +16 -0
- package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +15 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-body.js +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-body.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +15 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-query.js +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-query.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +41 -0
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +2 -2
- package/dist/schemas/extensions/security/x-tokenName.d.ts +12 -1
- package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-tokenName.js +2 -2
- package/dist/schemas/extensions/security/x-tokenName.js.map +2 -2
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +6 -0
- package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.js.map +1 -1
- package/dist/schemas/extensions/tag/x-display-name.d.ts +11 -0
- package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-display-name.js.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +18 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +57 -54
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +4 -1
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/navigation.d.ts +50 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +5 -9
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/appearance.d.ts +9 -2
- package/dist/schemas/reference-config/appearance.d.ts.map +1 -1
- package/dist/schemas/reference-config/appearance.js.map +2 -2
- package/dist/schemas/reference-config/features.d.ts +11 -2
- package/dist/schemas/reference-config/features.d.ts.map +1 -1
- package/dist/schemas/reference-config/features.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +39 -29
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.js +5 -5
- package/dist/schemas/reference-config/index.js.map +2 -2
- package/dist/schemas/reference-config/meta.d.ts +8 -2
- package/dist/schemas/reference-config/meta.d.ts.map +1 -1
- package/dist/schemas/reference-config/meta.js.map +2 -2
- package/dist/schemas/reference-config/routing.d.ts +4 -2
- package/dist/schemas/reference-config/routing.d.ts.map +1 -1
- package/dist/schemas/reference-config/routing.js.map +2 -2
- package/dist/schemas/reference-config/settings.d.ts +30 -29
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js.map +2 -2
- package/dist/schemas/v3.1/strict/callback.d.ts +4 -0
- package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/callback.js +2 -2
- package/dist/schemas/v3.1/strict/callback.js.map +2 -2
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +19 -3
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +2 -2
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +10 -4
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +2 -2
- package/dist/schemas/v3.1/strict/components.d.ts +34 -0
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +1 -1
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.d.ts +9 -0
- package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/contact.js.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.d.ts +11 -0
- package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.d.ts +15 -0
- package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +1 -1
- package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
- package/dist/schemas/v3.1/strict/example.d.ts +15 -0
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/example.js.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.d.ts +9 -2
- package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js +3 -3
- package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
- package/dist/schemas/v3.1/strict/header.d.ts +41 -0
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +2 -2
- package/dist/schemas/v3.1/strict/header.js.map +2 -2
- package/dist/schemas/v3.1/strict/info.d.ts +24 -2
- package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +7 -5
- package/dist/schemas/v3.1/strict/info.js.map +2 -2
- package/dist/schemas/v3.1/strict/license.d.ts +9 -0
- package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/license.js.map +1 -1
- package/dist/schemas/v3.1/strict/link.d.ts +22 -0
- package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/link.js.map +2 -2
- package/dist/schemas/v3.1/strict/media-type.d.ts +19 -0
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +2 -2
- package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +36 -5
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +13 -7
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -0
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +819 -932
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +45 -45
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +43 -17
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +1 -3
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +45 -0
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +38 -0
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +1 -1
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/paths.d.ts +5 -0
- package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.js +1 -1
- package/dist/schemas/v3.1/strict/paths.js.map +2 -2
- package/dist/schemas/v3.1/strict/reference.d.ts +21 -4
- package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/reference.js.map +2 -2
- package/dist/schemas/v3.1/strict/request-body.d.ts +10 -0
- package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.js +1 -1
- package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
- package/dist/schemas/v3.1/strict/response.d.ts +17 -0
- package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/response.js +1 -1
- package/dist/schemas/v3.1/strict/response.js.map +2 -2
- package/dist/schemas/v3.1/strict/responses.d.ts +12 -0
- package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/responses.js +1 -1
- package/dist/schemas/v3.1/strict/responses.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +144 -1
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +40 -60
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-requirement.d.ts +12 -0
- package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +37 -0
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/v3.1/strict/server-variable.d.ts +9 -0
- package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
- package/dist/schemas/v3.1/strict/server.d.ts +10 -0
- package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +1 -1
- package/dist/schemas/v3.1/strict/server.js.map +2 -2
- package/dist/schemas/v3.1/strict/tag.d.ts +13 -0
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +1 -1
- package/dist/schemas/v3.1/strict/tag.js.map +2 -2
- package/dist/schemas/v3.1/strict/type-guards.d.ts +1 -1
- package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/type-guards.js.map +1 -1
- package/dist/schemas/v3.1/strict/xml.d.ts +17 -0
- package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js.map +1 -1
- package/dist/schemas/workspace-specification/config.d.ts +26 -28
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/config.js.map +2 -2
- package/dist/schemas/workspace-specification/index.d.ts +35 -28
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.js.map +2 -2
- package/dist/schemas/workspace-specification/info.d.ts +4 -0
- package/dist/schemas/workspace-specification/info.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/info.js.map +1 -1
- package/dist/schemas/workspace.d.ts +182 -188
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +11 -3
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +6 -5
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js.map +2 -2
- package/package.json +5 -5
- package/dist/mutators/request-example.d.ts +0 -21
- package/dist/mutators/request-example.d.ts.map +0 -1
- package/dist/mutators/request-example.js +0 -55
- package/dist/mutators/request-example.js.map +0 -7
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +0 -9
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +0 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +0 -8
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +0 -7
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +0 -38
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +0 -45
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +0 -7
- package/dist/types.d.ts +0 -18
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- package/dist/types.js.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/example.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * An object grouping an internal or external example value with basic summary and description metadata. This object is typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n */\nexport const ExampleObjectSchemaDefinition = 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"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * An object grouping an internal or external example value with basic summary and description metadata. This object is typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n */\nexport const ExampleObjectSchemaDefinition = 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\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"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,gCAAgC,KAAK,OAAO;AAAA;AAAA,EAEvD,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,EAE/B,eAAe,KAAK,SAAS,KAAK,OAAO,CAAC;AAC5C,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
/** Allows referencing an external resource for extended documentation. */
|
|
2
2
|
export declare const ExternalDocumentationObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
3
|
-
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
4
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
5
3
|
/** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
|
|
6
4
|
url: import("@scalar/typebox").TString;
|
|
5
|
+
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
6
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
7
7
|
}>;
|
|
8
|
+
/** Allows referencing an external resource for extended documentation. */
|
|
9
|
+
export type ExternalDocumentationObject = {
|
|
10
|
+
/** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
|
|
11
|
+
url: string;
|
|
12
|
+
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
13
|
+
description?: string;
|
|
14
|
+
};
|
|
8
15
|
//# sourceMappingURL=external-documentation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-documentation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/external-documentation.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,eAAO,MAAM,2CAA2C;IACtD,6GAA6G;;
|
|
1
|
+
{"version":3,"file":"external-documentation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/external-documentation.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,eAAO,MAAM,2CAA2C;IACtD,yFAAyF;;IAEzF,6GAA6G;;EAE7G,CAAA;AAEF,0EAA0E;AAC1E,MAAM,MAAM,2BAA2B,GAAG;IACxC,yFAAyF;IACzF,GAAG,EAAE,MAAM,CAAA;IACX,6GAA6G;IAC7G,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
2
|
const ExternalDocumentationObjectSchemaDefinition = Type.Object({
|
|
3
|
-
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
4
|
-
description: Type.Optional(Type.String()),
|
|
5
3
|
/** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
|
|
6
|
-
url: Type.String()
|
|
4
|
+
url: Type.String(),
|
|
5
|
+
/** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
|
|
6
|
+
description: Type.Optional(Type.String())
|
|
7
7
|
});
|
|
8
8
|
export {
|
|
9
9
|
ExternalDocumentationObjectSchemaDefinition
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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 /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */\n url:
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAGd,MAAM,8CAA8C,KAAK,OAAO;AAAA;AAAA,EAErE,
|
|
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { ExampleObject } from './example.js';
|
|
2
|
+
import type { MediaTypeObject } from './media-type.js';
|
|
3
|
+
import { type ReferenceType } from './reference.js';
|
|
4
|
+
import type { SchemaObject } from './schema.js';
|
|
1
5
|
export declare const HeaderObjectSchemaBase: import("@scalar/typebox").TObject<{
|
|
2
6
|
/** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
3
7
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -6,6 +10,15 @@ export declare const HeaderObjectSchemaBase: import("@scalar/typebox").TObject<{
|
|
|
6
10
|
/** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
|
|
7
11
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
8
12
|
}>;
|
|
13
|
+
/** Common properties in both sides of the union */
|
|
14
|
+
type HeaderBase = {
|
|
15
|
+
/** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
16
|
+
description?: string;
|
|
17
|
+
/** Determines whether this header is mandatory. The default value is false. */
|
|
18
|
+
required?: boolean;
|
|
19
|
+
/** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
|
|
20
|
+
deprecated?: boolean;
|
|
21
|
+
};
|
|
9
22
|
export declare const HeaderObjectWithSchemaSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
10
23
|
/** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
11
24
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -43,6 +56,19 @@ export declare const HeaderObjectWithSchemaSchema: import("@scalar/typebox").TIn
|
|
|
43
56
|
'$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
|
|
44
57
|
}>]>]>>>;
|
|
45
58
|
}>]>;
|
|
59
|
+
/** Header object that uses schema */
|
|
60
|
+
type HeaderWithSchemaObject = HeaderBase & {
|
|
61
|
+
/** Describes how the header value will be serialized. The default (and only legal value for headers) is "simple". */
|
|
62
|
+
style?: string;
|
|
63
|
+
/** 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. */
|
|
64
|
+
explode?: boolean;
|
|
65
|
+
/** The schema defining the type used for the header. */
|
|
66
|
+
schema?: ReferenceType<SchemaObject>;
|
|
67
|
+
/** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
|
|
68
|
+
example?: any;
|
|
69
|
+
/** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
|
|
70
|
+
examples?: Record<string, ReferenceType<ExampleObject>>;
|
|
71
|
+
};
|
|
46
72
|
/**
|
|
47
73
|
* 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.
|
|
48
74
|
*
|
|
@@ -98,4 +124,19 @@ export declare const HeaderObjectSchemaDefinition: import("@scalar/typebox").TUn
|
|
|
98
124
|
}>, import("@scalar/typebox").TObject<{
|
|
99
125
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
100
126
|
}>]>]>;
|
|
127
|
+
/** Header object that uses content */
|
|
128
|
+
type HeaderWithContent = HeaderBase & {
|
|
129
|
+
content?: Record<string, MediaTypeObject>;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* 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.
|
|
133
|
+
*
|
|
134
|
+
* 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:
|
|
135
|
+
*
|
|
136
|
+
* - name MUST NOT be specified, it is given in the corresponding headers map.
|
|
137
|
+
* - in MUST NOT be specified, it is implicitly in header.
|
|
138
|
+
* - 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".
|
|
139
|
+
*/
|
|
140
|
+
export type HeaderObject = HeaderWithSchemaObject | HeaderWithContent;
|
|
141
|
+
export {};
|
|
101
142
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/header.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/header.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,eAAO,MAAM,sBAAsB;IACjC,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;EAE/G,CAAA;AAEF,mDAAmD;AACnD,KAAK,UAAU,GAAG;IAChB,yIAAyI;IACzI,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+GAA+G;IAC/G,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,4BAA4B;IAlBvC,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;IAiB7G,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD;;;;;;;;;;;IAExD,kIAAkI;;IAElI,mIAAmI;;;;;;;;;;;IAGtI,CAAA;AAED,qCAAqC;AACrC,KAAK,sBAAsB,GAAG,UAAU,GAAG;IACzC,qHAAqH;IACrH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,+QAA+Q;IAC/Q,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wDAAwD;IACxD,MAAM,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;IACpC,kIAAkI;IAClI,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,mIAAmI;IACnI,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;CACxD,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B;IAzDvC,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;IAiB7G,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD;;;;;;;;;;;IAExD,kIAAkI;;IAElI,mIAAmI;;;;;;;;;;;;IA7BrI,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;;MA6D/G,CAAA;AAEF,sCAAsC;AACtC,KAAK,iBAAiB,GAAG,UAAU,GAAG;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;CAC1C,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG,sBAAsB,GAAG,iBAAiB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
2
|
import { compose } from "../../../schemas/compose.js";
|
|
3
|
-
import { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from "
|
|
4
|
-
import { reference } from "
|
|
3
|
+
import { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from "./ref-definitions.js";
|
|
4
|
+
import { reference } from "./reference.js";
|
|
5
5
|
const HeaderObjectSchemaBase = Type.Object({
|
|
6
6
|
/** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
7
7
|
description: Type.Optional(Type.String()),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/header.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { ExampleObjectRef, MediaTypeObjectRef, SchemaObjectRef } from '
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;
|
|
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\nexport const 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\nexport const 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;AAGvC,MAAM,yBAAyB,KAAK,OAAO;AAAA;AAAA,EAEhD,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;AAYM,MAAM,+BAA+B;AAAA,EAC1C;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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { type XScalarSdkInstallation } from '../../../schemas/extensions/document/x-scalar-sdk-installation.js';
|
|
2
|
+
import type { ContactObject } from './contact.js';
|
|
3
|
+
import type { LicenseObject } from './license.js';
|
|
1
4
|
/**
|
|
2
5
|
* 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.
|
|
3
6
|
*/
|
|
4
7
|
export declare const InfoObjectSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
5
8
|
/** REQUIRED. The title of the API. */
|
|
6
9
|
title: import("@scalar/typebox").TString;
|
|
10
|
+
/** 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). */
|
|
11
|
+
version: import("@scalar/typebox").TString;
|
|
7
12
|
/** A short summary of the API. */
|
|
8
13
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
14
|
/** A description of the API. CommonMark syntax MAY be used for rich text representation. */
|
|
@@ -14,8 +19,6 @@ export declare const InfoObjectSchemaDefinition: import("@scalar/typebox").TInte
|
|
|
14
19
|
contact: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ContactObject">>;
|
|
15
20
|
/** The license information for the exposed API. */
|
|
16
21
|
license: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"LicenseObject">>;
|
|
17
|
-
/** 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). */
|
|
18
|
-
version: import("@scalar/typebox").TString;
|
|
19
22
|
}>, import("@scalar/typebox").TObject<{
|
|
20
23
|
'x-scalar-sdk-installation': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
21
24
|
lang: import("@scalar/typebox").TString;
|
|
@@ -23,4 +26,23 @@ export declare const InfoObjectSchemaDefinition: import("@scalar/typebox").TInte
|
|
|
23
26
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
24
27
|
}>>>;
|
|
25
28
|
}>]>;
|
|
29
|
+
/**
|
|
30
|
+
* 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.
|
|
31
|
+
*/
|
|
32
|
+
export type InfoObject = {
|
|
33
|
+
/** REQUIRED. The title of the API. */
|
|
34
|
+
title: string;
|
|
35
|
+
/** 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). */
|
|
36
|
+
version: string;
|
|
37
|
+
/** A short summary of the API. */
|
|
38
|
+
summary?: string;
|
|
39
|
+
/** A description of the API. CommonMark syntax MAY be used for rich text representation. */
|
|
40
|
+
description?: string;
|
|
41
|
+
/** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */
|
|
42
|
+
termsOfService?: string;
|
|
43
|
+
/** The contact information for the exposed API. */
|
|
44
|
+
contact?: ContactObject;
|
|
45
|
+
/** The license information for the exposed API. */
|
|
46
|
+
license?: LicenseObject;
|
|
47
|
+
} & XScalarSdkInstallation;
|
|
26
48
|
//# sourceMappingURL=info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/info.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,yDAAyD,CAAA;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG9C;;GAEG;AACH,eAAO,MAAM,0BAA0B;IAEnC,sCAAsC;;IAEtC,oMAAoM;;IAEpM,kCAAkC;;IAElC,4FAA4F;;IAE5F,qFAAqF;;IAErF,mDAAmD;;IAEnD,mDAAmD;;;;;;;;IAItD,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,oMAAoM;IACpM,OAAO,EAAE,MAAM,CAAA;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB,GAAG,sBAAsB,CAAA"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
2
|
import { compose } from "../../../schemas/compose.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
XScalarSdkInstallationSchema
|
|
5
|
+
} from "../../../schemas/extensions/document/x-scalar-sdk-installation.js";
|
|
6
|
+
import { ContactObjectRef, LicenseObjectRef } from "./ref-definitions.js";
|
|
5
7
|
const InfoObjectSchemaDefinition = compose(
|
|
6
8
|
Type.Object({
|
|
7
9
|
/** REQUIRED. The title of the API. */
|
|
8
10
|
title: Type.String(),
|
|
11
|
+
/** 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). */
|
|
12
|
+
version: Type.String(),
|
|
9
13
|
/** A short summary of the API. */
|
|
10
14
|
summary: Type.Optional(Type.String()),
|
|
11
15
|
/** A description of the API. CommonMark syntax MAY be used for rich text representation. */
|
|
@@ -15,9 +19,7 @@ const InfoObjectSchemaDefinition = compose(
|
|
|
15
19
|
/** The contact information for the exposed API. */
|
|
16
20
|
contact: Type.Optional(ContactObjectRef),
|
|
17
21
|
/** The license information for the exposed API. */
|
|
18
|
-
license: Type.Optional(LicenseObjectRef)
|
|
19
|
-
/** 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). */
|
|
20
|
-
version: Type.String()
|
|
22
|
+
license: Type.Optional(LicenseObjectRef)
|
|
21
23
|
}),
|
|
22
24
|
XScalarSdkInstallationSchema
|
|
23
25
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/info.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { XScalarSdkInstallationSchema
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,
|
|
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,4 +7,13 @@ export declare const LicenseObjectSchemaDefinition: import("@scalar/typebox").TO
|
|
|
7
7
|
/** 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. */
|
|
8
8
|
url: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
9
|
}>;
|
|
10
|
+
/** The license information for the exposed API. */
|
|
11
|
+
export type LicenseObject = {
|
|
12
|
+
/** REQUIRED. The license name used for the API. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */
|
|
15
|
+
identifier?: string;
|
|
16
|
+
/** 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. */
|
|
17
|
+
url?: string;
|
|
18
|
+
};
|
|
10
19
|
//# sourceMappingURL=license.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/license.ts"],"names":[],"mappings":"AAEA,mDAAmD;AACnD,eAAO,MAAM,6BAA6B;IACxC,mDAAmD;;IAEnD,2GAA2G;;IAE3G,8IAA8I;;EAE9I,CAAA"}
|
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/license.ts"],"names":[],"mappings":"AAEA,mDAAmD;AACnD,eAAO,MAAM,6BAA6B;IACxC,mDAAmD;;IAEnD,2GAA2G;;IAE3G,8IAA8I;;EAE9I,CAAA;AAEF,mDAAmD;AACnD,MAAM,MAAM,aAAa,GAAG;IAC1B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2GAA2G;IAC3G,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8IAA8I;IAC9I,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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"],
|
|
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
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ServerObject } from './server.js';
|
|
1
2
|
/**
|
|
2
3
|
* 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.
|
|
3
4
|
*
|
|
@@ -19,4 +20,25 @@ export declare const LinkObjectSchemaDefinition: import("@scalar/typebox").TObje
|
|
|
19
20
|
/** A server object to be used by the target operation. */
|
|
20
21
|
server: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ServerObject">>;
|
|
21
22
|
}>;
|
|
23
|
+
/**
|
|
24
|
+
* 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.
|
|
25
|
+
*
|
|
26
|
+
* Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link information in the runtime response.
|
|
27
|
+
*
|
|
28
|
+
* 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.
|
|
29
|
+
*/
|
|
30
|
+
export type LinkObject = {
|
|
31
|
+
/** 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. */
|
|
32
|
+
operationRef?: string;
|
|
33
|
+
/** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */
|
|
34
|
+
operationId?: string;
|
|
35
|
+
/** 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. */
|
|
36
|
+
parameters?: Record<string, any>;
|
|
37
|
+
/** A literal value or {expression} to use as a request body when calling the target operation. */
|
|
38
|
+
requestBody?: any;
|
|
39
|
+
/** A description of the link. CommonMark syntax MAY be used for rich text representation. */
|
|
40
|
+
description?: string;
|
|
41
|
+
/** A server object to be used by the target operation. */
|
|
42
|
+
server?: ServerObject;
|
|
43
|
+
};
|
|
22
44
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/link.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;IACrC,yPAAyP;;IAEzP,2JAA2J;;IAE3J,8WAA8W;;IAE9W,kGAAkG;;IAElG,6FAA6F;;IAE7F,0DAA0D;;EAE1D,CAAA"}
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/link.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;IACrC,yPAAyP;;IAEzP,2JAA2J;;IAE3J,8WAA8W;;IAE9W,kGAAkG;;IAElG,6FAA6F;;IAE7F,0DAA0D;;EAE1D,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,yPAAyP;IACzP,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,2JAA2J;IAC3J,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8WAA8W;IAC9W,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAChC,kGAAkG;IAClG,WAAW,CAAC,EAAE,GAAG,CAAA;IACjB,6FAA6F;IAC7F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,YAAY,CAAA;CACtB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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\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"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,uBAAuB;
|
|
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { EncodingObject } from './encoding.js';
|
|
2
|
+
import type { ExampleObject } from './example.js';
|
|
3
|
+
import { type ReferenceType } from './reference.js';
|
|
4
|
+
import type { SchemaObject } from './schema.js';
|
|
1
5
|
/**
|
|
2
6
|
* Each Media Type Object provides schema and examples for the media type identified by its key.
|
|
3
7
|
*
|
|
@@ -31,4 +35,19 @@ export declare const MediaTypeObjectSchemaDefinition: import("@scalar/typebox").
|
|
|
31
35
|
/** 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. */
|
|
32
36
|
encoding: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"EncodingObject">>>;
|
|
33
37
|
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Each Media Type Object provides schema and examples for the media type identified by its key.
|
|
40
|
+
*
|
|
41
|
+
* 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.
|
|
42
|
+
*/
|
|
43
|
+
export type MediaTypeObject = {
|
|
44
|
+
/** The schema defining the content of the request, response, parameter, or header. */
|
|
45
|
+
schema?: ReferenceType<SchemaObject>;
|
|
46
|
+
/** Example of the media type */
|
|
47
|
+
example?: any;
|
|
48
|
+
/** Examples of the media type */
|
|
49
|
+
examples?: Record<string, ReferenceType<ExampleObject>>;
|
|
50
|
+
/** 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. */
|
|
51
|
+
encoding?: Record<string, EncodingObject>;
|
|
52
|
+
};
|
|
34
53
|
//# sourceMappingURL=media-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-type.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/media-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"media-type.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/media-type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAE9C,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C;;;;GAIG;AACH,eAAO,MAAM,+BAA+B;IAC1C,sFAAsF;;;;;;;;;;;IAEtF,gCAAgC;;IAEhC,iCAAiC;;;;;;;;;;;IAEjC,gaAAga;;EAEha,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,sFAAsF;IACtF,MAAM,CAAC,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;IACpC,gCAAgC;IAChC,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;IACvD,gaAAga;IACha,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CAC1C,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
|
-
import { EncodingObjectRef, ExampleObjectRef, SchemaObjectRef } from "
|
|
3
|
-
import { reference } from "
|
|
2
|
+
import { EncodingObjectRef, ExampleObjectRef, SchemaObjectRef } from "./ref-definitions.js";
|
|
3
|
+
import { reference } from "./reference.js";
|
|
4
4
|
const MediaTypeObjectSchemaDefinition = Type.Object({
|
|
5
5
|
/** The schema defining the content of the request, response, parameter, or header. */
|
|
6
6
|
schema: Type.Optional(Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/media-type.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { EncodingObjectRef, ExampleObjectRef, SchemaObjectRef } from '
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;
|
|
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type XScalarCredentialsLocation } from '../../../schemas/extensions/security/x-scalar-credentials-location.js';
|
|
2
|
+
import { type XScalarSecurityBody } from '../../../schemas/extensions/security/x-scalar-security-body.js';
|
|
3
|
+
import { type XScalarSecurityQuery } from '../../../schemas/extensions/security/x-scalar-security-query.js';
|
|
4
|
+
import { type XScalarSecretClientId, type XScalarSecretClientSecret, type XScalarSecretHTTP, type XScalarSecretRedirectUri, type XScalarSecretToken } from '../../../schemas/extensions/security/x-scalar-security-secrets.js';
|
|
5
|
+
import { type XTokenName } from '../../../schemas/extensions/security/x-tokenName.js';
|
|
6
|
+
import { type XusePkce } from '../../../schemas/extensions/security/x-use-pkce.js';
|
|
7
|
+
/** Common properties used across all OAuth flows */
|
|
8
|
+
type OAuthFlowCommon = {
|
|
9
|
+
/** 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. */
|
|
10
|
+
refreshUrl: string;
|
|
11
|
+
/** 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. */
|
|
12
|
+
scopes: Record<string, string>;
|
|
13
|
+
} & XScalarSecretClientId & XScalarSecretToken & XScalarSecurityQuery & XScalarSecurityBody & XTokenName & XScalarCredentialsLocation;
|
|
2
14
|
/** Configuration for the OAuth Implicit flow */
|
|
3
15
|
export declare const OAuthFlowImplicitSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
4
16
|
/** 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. */
|
|
@@ -23,6 +35,11 @@ export declare const OAuthFlowImplicitSchema: import("@scalar/typebox").TInterse
|
|
|
23
35
|
}>, import("@scalar/typebox").TObject<{
|
|
24
36
|
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
25
37
|
}>]>;
|
|
38
|
+
/** Configuration for the OAuth Implicit flow */
|
|
39
|
+
export type OAuthFlowImplicit = OAuthFlowCommon & {
|
|
40
|
+
/** 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. */
|
|
41
|
+
authorizationUrl: string;
|
|
42
|
+
} & XScalarSecretRedirectUri;
|
|
26
43
|
/** Configuration for the OAuth Resource Owner Password flow */
|
|
27
44
|
export declare const OAuthFlowPasswordSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
28
45
|
/** 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. */
|
|
@@ -50,6 +67,11 @@ export declare const OAuthFlowPasswordSchema: import("@scalar/typebox").TInterse
|
|
|
50
67
|
}>, import("@scalar/typebox").TObject<{
|
|
51
68
|
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
52
69
|
}>]>;
|
|
70
|
+
/** Configuration for the OAuth Resource Owner Password flow */
|
|
71
|
+
export type OAuthFlowPassword = OAuthFlowCommon & {
|
|
72
|
+
/** 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. */
|
|
73
|
+
tokenUrl: string;
|
|
74
|
+
} & XScalarSecretHTTP & XScalarSecretClientSecret;
|
|
53
75
|
/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */
|
|
54
76
|
export declare const OAuthFlowClientCredentialsSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
55
77
|
/** 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. */
|
|
@@ -74,6 +96,11 @@ export declare const OAuthFlowClientCredentialsSchema: import("@scalar/typebox")
|
|
|
74
96
|
}>, import("@scalar/typebox").TObject<{
|
|
75
97
|
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
76
98
|
}>]>;
|
|
99
|
+
/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */
|
|
100
|
+
export type OAuthFlowClientCredentials = OAuthFlowCommon & {
|
|
101
|
+
/** 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. */
|
|
102
|
+
tokenUrl: string;
|
|
103
|
+
} & XScalarSecretClientSecret;
|
|
77
104
|
/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */
|
|
78
105
|
export declare const OAuthFlowAuthorizationCodeSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
79
106
|
/** 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. */
|
|
@@ -104,6 +131,13 @@ export declare const OAuthFlowAuthorizationCodeSchema: import("@scalar/typebox")
|
|
|
104
131
|
}>, import("@scalar/typebox").TObject<{
|
|
105
132
|
'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
|
|
106
133
|
}>]>;
|
|
134
|
+
/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */
|
|
135
|
+
export type OAuthFlowAuthorizationCode = OAuthFlowCommon & {
|
|
136
|
+
/** 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. */
|
|
137
|
+
authorizationUrl: string;
|
|
138
|
+
/** 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. */
|
|
139
|
+
tokenUrl: string;
|
|
140
|
+
} & XScalarSecretClientSecret & XScalarSecretRedirectUri & XusePkce;
|
|
107
141
|
/** Union of all OAuth flow schemas */
|
|
108
142
|
export declare const OAuthFlowObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
109
143
|
/** 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. */
|
|
@@ -203,9 +237,6 @@ export declare const OAuthFlowObjectSchemaDefinition: import("@scalar/typebox").
|
|
|
203
237
|
}>, import("@scalar/typebox").TObject<{
|
|
204
238
|
'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
|
|
205
239
|
}>]>]>;
|
|
206
|
-
export type OAuthFlowImplicit = Static<typeof OAuthFlowImplicitSchema>;
|
|
207
|
-
export type OAuthFlowPassword = Static<typeof OAuthFlowPasswordSchema>;
|
|
208
|
-
export type OAuthFlowClientCredentials = Static<typeof OAuthFlowClientCredentialsSchema>;
|
|
209
|
-
export type OAuthFlowAuthorizationCode = Static<typeof OAuthFlowAuthorizationCodeSchema>;
|
|
210
240
|
export type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode;
|
|
241
|
+
export {};
|
|
211
242
|
//# sourceMappingURL=oauth-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,6DAA6D,CAAA;AACpE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,uDAAuD,CAAA;AAC9D,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,wBAAwB,EAE7B,KAAK,kBAAkB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,2CAA2C,CAAA;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,0CAA0C,CAAA;AAkBxF,oDAAoD;AACpD,KAAK,eAAe,GAAG;IACrB,uIAAuI;IACvI,UAAU,EAAE,MAAM,CAAA;IAClB,wJAAwJ;IACxJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B,GAAG,qBAAqB,GACvB,kBAAkB,GAClB,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,GACV,0BAA0B,CAAA;AAE5B,gDAAgD;AAChD,eAAO,MAAM,uBAAuB;IA3BhC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4BxJ,gJAAgJ;;;;IAInJ,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,gJAAgJ;IAChJ,gBAAgB,EAAE,MAAM,CAAA;CACzB,GAAG,wBAAwB,CAAA;AAE5B,+DAA+D;AAC/D,eAAO,MAAM,uBAAuB;IA3ChC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4CxJ,wIAAwI;;;;;;;IAK3I,CAAA;AAED,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,iBAAiB,GACnB,yBAAyB,CAAA;AAE3B,yGAAyG;AACzG,eAAO,MAAM,gCAAgC;IA7DzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8DxJ,wIAAwI;;;;IAI3I,CAAA;AAED,yGAAyG;AACzG,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG;IACzD,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,yBAAyB,CAAA;AAE7B,wGAAwG;AACxG,eAAO,MAAM,gCAAgC;IA7EzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8ExJ,gJAAgJ;;IAEhJ,wIAAwI;;;;;;;;IAM3I,CAAA;AAED,wGAAwG;AACxG,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG;IACzD,gJAAgJ;IAChJ,gBAAgB,EAAE,MAAM,CAAA;IACxB,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,yBAAyB,GAC3B,wBAAwB,GACxB,QAAQ,CAAA;AAEV,sCAAsC;AACtC,eAAO,MAAM,+BAA+B;IArGxC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4BxJ,gJAAgJ;;;;;IA9BhJ,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4CxJ,wIAAwI;;;;;;;;IA9CxI,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8DxJ,wIAAwI;;;;;IAhExI,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8ExJ,gJAAgJ;;IAEhJ,wIAAwI;;;;;;;;MAwB1I,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,0BAA0B,GAAG,0BAA0B,CAAA"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
2
|
import { compose } from "../../../schemas/compose.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import {
|
|
4
|
+
XScalarCredentialsLocationSchema
|
|
5
|
+
} from "../../../schemas/extensions/security/x-scalar-credentials-location.js";
|
|
6
|
+
import {
|
|
7
|
+
XScalarSecurityBodySchema
|
|
8
|
+
} from "../../../schemas/extensions/security/x-scalar-security-body.js";
|
|
9
|
+
import {
|
|
10
|
+
XScalarSecurityQuerySchema
|
|
11
|
+
} from "../../../schemas/extensions/security/x-scalar-security-query.js";
|
|
6
12
|
import {
|
|
7
13
|
XScalarSecretClientIdSchema,
|
|
8
14
|
XScalarSecretClientSecretSchema,
|
|
@@ -10,7 +16,7 @@ import {
|
|
|
10
16
|
XScalarSecretRedirectUriSchema,
|
|
11
17
|
XScalarSecretTokenSchema
|
|
12
18
|
} from "../../../schemas/extensions/security/x-scalar-security-secrets.js";
|
|
13
|
-
import {
|
|
19
|
+
import { XTokenNameSchema } from "../../../schemas/extensions/security/x-tokenName.js";
|
|
14
20
|
import { XusePkceSchema } from "../../../schemas/extensions/security/x-use-pkce.js";
|
|
15
21
|
const OAuthFlowCommonSchema = compose(
|
|
16
22
|
Type.Object({
|
|
@@ -21,9 +27,9 @@ const OAuthFlowCommonSchema = compose(
|
|
|
21
27
|
}),
|
|
22
28
|
XScalarSecretClientIdSchema,
|
|
23
29
|
XScalarSecretTokenSchema,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
XScalarSecurityQuerySchema,
|
|
31
|
+
XScalarSecurityBodySchema,
|
|
32
|
+
XTokenNameSchema,
|
|
27
33
|
XScalarCredentialsLocationSchema
|
|
28
34
|
);
|
|
29
35
|
const OAuthFlowImplicitSchema = compose(
|