@scalar/workspace-store 0.15.8 → 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 +31 -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/index.d.ts +2 -0
- package/dist/schemas/extensions/operation/index.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/index.js +1 -0
- 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 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +1 -1
- 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 +33 -0
- package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-default-scopes.js +8 -0
- package/dist/schemas/extensions/security/x-default-scopes.js.map +7 -0
- 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 +68 -3
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js +15 -3
- 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 +7 -1
- package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.js +1 -3
- package/dist/schemas/extensions/security/x-use-pkce.js.map +2 -2
- 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 +207 -86
- 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 +114 -45
- 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 +105 -45
- 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 +171 -29
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +43 -15
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +78 -12
- 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 +3369 -1476
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +45 -44
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +44 -17
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +2 -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 +49 -8
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +3 -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 +101 -44
- 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 +110 -44
- 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 +707 -300
- 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 +9 -14
- 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 -4
- 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 → schemas/extensions/operation/index.js.map} +0 -0
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
import type { CallbackObject } from './callback.js';
|
|
2
|
+
import type { ExampleObject } from './example.js';
|
|
3
|
+
import type { HeaderObject } from './header.js';
|
|
4
|
+
import type { LinkObject } from './link.js';
|
|
5
|
+
import type { ParameterObject } from './parameter.js';
|
|
6
|
+
import type { PathItemObject } from './path-item.js';
|
|
7
|
+
import { type ReferenceType } from './reference.js';
|
|
8
|
+
import type { RequestBodyObject } from './request-body.js';
|
|
9
|
+
import type { ResponsesObject } from './responses.js';
|
|
10
|
+
import type { SchemaObject } from './schema.js';
|
|
11
|
+
import type { SecuritySchemeObject } from './security-scheme.js';
|
|
1
12
|
/** 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. */
|
|
2
13
|
export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox").TObject<{
|
|
3
14
|
/** An object to hold reusable Schema Objects. */
|
|
@@ -102,4 +113,27 @@ export declare const ComponentsObjectSchemaDefinition: import("@scalar/typebox")
|
|
|
102
113
|
/** An object to hold reusable Path Item Objects. */
|
|
103
114
|
pathItems: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>>;
|
|
104
115
|
}>;
|
|
116
|
+
/** 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. */
|
|
117
|
+
export type ComponentsObject = {
|
|
118
|
+
/** An object to hold reusable Schema Objects. */
|
|
119
|
+
schemas?: Record<string, ReferenceType<SchemaObject>>;
|
|
120
|
+
/** An object to hold reusable Response Objects. */
|
|
121
|
+
responses?: ResponsesObject;
|
|
122
|
+
/** An object to hold reusable Parameter Objects. */
|
|
123
|
+
parameters?: Record<string, ReferenceType<ParameterObject>>;
|
|
124
|
+
/** An object to hold reusable Example Objects. */
|
|
125
|
+
examples?: Record<string, ReferenceType<ExampleObject>>;
|
|
126
|
+
/** An object to hold reusable Request Body Objects. */
|
|
127
|
+
requestBodies?: Record<string, ReferenceType<RequestBodyObject>>;
|
|
128
|
+
/** An object to hold reusable Header Objects. */
|
|
129
|
+
headers?: Record<string, ReferenceType<HeaderObject>>;
|
|
130
|
+
/** An object to hold reusable Security Scheme Objects. */
|
|
131
|
+
securitySchemes?: Record<string, ReferenceType<SecuritySchemeObject>>;
|
|
132
|
+
/** An object to hold reusable Link Objects. */
|
|
133
|
+
links?: Record<string, ReferenceType<LinkObject>>;
|
|
134
|
+
/** An object to hold reusable Callback Objects. */
|
|
135
|
+
callbacks?: Record<string, ReferenceType<CallbackObject>>;
|
|
136
|
+
/** An object to hold reusable Path Item Objects. */
|
|
137
|
+
pathItems?: Record<string, PathItemObject>;
|
|
138
|
+
};
|
|
105
139
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAajD,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,kOAAkO;AAClO,eAAO,MAAM,gCAAgC;IAC3C,iDAAiD;;;;;;;;;;;IAEjD,mDAAmD;;;;;;;;;;;IAEnD,oDAAoD;;;;;;;;;;;IAIpD,kDAAkD;;;;;;;;;;;IAElD,uDAAuD;;;;;;;;;;;IAIvD,iDAAiD;;;;;;;;;;;IAEjD,0DAA0D;;;;;;;;;;;IAI1D,+CAA+C;;;;;;;;;;;IAE/C,mDAAmD;;;;;;;;;;;IAEnD,oDAAoD;;EAEpD,CAAA;AAEF,kOAAkO;AAClO,MAAM,MAAM,gBAAgB,GAAG;IAC7B,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,CAAA;IACrD,mDAAmD;IACnD,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,CAAA;IAC3D,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;IACvD,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAChE,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,CAAA;IACrD,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAA;IACrE,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC,CAAA;IACzD,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CAC3C,CAAA"}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ResponseObjectRef,
|
|
11
11
|
SchemaObjectRef,
|
|
12
12
|
SecuritySchemeObjectRef
|
|
13
|
-
} from "
|
|
13
|
+
} from "./ref-definitions.js";
|
|
14
14
|
import { reference } from "./reference.js";
|
|
15
15
|
const ComponentsObjectSchemaDefinition = Type.Object({
|
|
16
16
|
/** An object to hold reusable Schema Objects. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/components.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport {\n CallbackObjectRef,\n ExampleObjectRef,\n HeaderObjectRef,\n LinkObjectRef,\n ParameterObjectRef,\n PathItemObjectRef,\n RequestBodyObjectRef,\n ResponseObjectRef,\n SchemaObjectRef,\n SecuritySchemeObjectRef,\n} from '
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;
|
|
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\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(\n Type.Record(Type.String(), Type.Union([SecuritySchemeObjectRef, reference(SecuritySchemeObjectRef)])),\n ),\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?: Record<string, ReferenceType<SecuritySchemeObject>>\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;AAOvC,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;AAAA,IACpB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,yBAAyB,UAAU,uBAAuB,CAAC,CAAC,CAAC;AAAA,EACtG;AAAA;AAAA,EAEA,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -7,4 +7,13 @@ export declare const ContactObjectSchemaDefinition: import("@scalar/typebox").TO
|
|
|
7
7
|
/** The email address of the contact person/organization. This MUST be in the form of an email address. */
|
|
8
8
|
email: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
9
|
}>;
|
|
10
|
+
/** Contact information for the exposed API. */
|
|
11
|
+
export type ContactObject = {
|
|
12
|
+
/** The identifying name of the contact person/organization. */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** The URI for the contact information. This MUST be in the form of a URI. */
|
|
15
|
+
url?: string;
|
|
16
|
+
/** The email address of the contact person/organization. This MUST be in the form of an email address. */
|
|
17
|
+
email?: string;
|
|
18
|
+
};
|
|
10
19
|
//# sourceMappingURL=contact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/contact.ts"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,eAAO,MAAM,6BAA6B;IACxC,+DAA+D;;IAE/D,8EAA8E;;IAE9E,0GAA0G;;EAE1G,CAAA"}
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/contact.ts"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,eAAO,MAAM,6BAA6B;IACxC,+DAA+D;;IAE/D,8EAA8E;;IAE9E,0GAA0G;;EAE1G,CAAA;AAEF,+CAA+C;AAC/C,MAAM,MAAM,aAAa,GAAG;IAC1B,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8EAA8E;IAC9E,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,0GAA0G;IAC1G,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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"],
|
|
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
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -9,4 +9,15 @@ export declare const DiscriminatorObjectSchemaDefinition: import("@scalar/typebo
|
|
|
9
9
|
/** An object to hold mappings between payload values and schema names or URI references. */
|
|
10
10
|
mapping: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
11
11
|
}>;
|
|
12
|
+
/**
|
|
13
|
+
* 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.
|
|
14
|
+
*
|
|
15
|
+
* Note that discriminator MUST NOT change the validation outcome of the schema.
|
|
16
|
+
*/
|
|
17
|
+
export type DiscriminatorObject = {
|
|
18
|
+
/** 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. */
|
|
19
|
+
propertyName: string;
|
|
20
|
+
/** An object to hold mappings between payload values and schema names or URI references. */
|
|
21
|
+
mapping?: Record<string, string>;
|
|
22
|
+
};
|
|
12
23
|
//# sourceMappingURL=discriminator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discriminator.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/discriminator.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;IAC9C,mNAAmN;;IAEnN,4FAA4F;;EAE5F,CAAA"}
|
|
1
|
+
{"version":3,"file":"discriminator.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/discriminator.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;IAC9C,mNAAmN;;IAEnN,4FAA4F;;EAE5F,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,mNAAmN;IACnN,YAAY,EAAE,MAAM,CAAA;IACpB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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"],
|
|
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
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { HeaderObject } from './header.js';
|
|
2
|
+
import { type ReferenceType } from './reference.js';
|
|
1
3
|
/**
|
|
2
4
|
* 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.
|
|
3
5
|
*
|
|
@@ -20,4 +22,17 @@ export declare const EncodingObjectSchemaDefinition: import("@scalar/typebox").T
|
|
|
20
22
|
'$ref-value': import("@scalar/typebox").TRef<"HeaderObject">;
|
|
21
23
|
}>]>]>>>;
|
|
22
24
|
}>;
|
|
25
|
+
/**
|
|
26
|
+
* 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.
|
|
27
|
+
*
|
|
28
|
+
* 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.
|
|
29
|
+
*
|
|
30
|
+
* See Appendix E for a detailed examination of percent-encoding concerns for form media types.
|
|
31
|
+
*/
|
|
32
|
+
export type EncodingObject = {
|
|
33
|
+
/** 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. */
|
|
34
|
+
contentType?: string;
|
|
35
|
+
/** 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. */
|
|
36
|
+
headers?: Record<string, ReferenceType<HeaderObject>>;
|
|
37
|
+
};
|
|
23
38
|
//# sourceMappingURL=encoding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/encoding.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/encoding.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;IACzC,sRAAsR;;IAEtR,iOAAiO;;;;;;;;;;;EAEjO,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,sRAAsR;IACtR,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iOAAiO;IACjO,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,CAAA;CACtD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
|
-
import { HeaderObjectRef } from "
|
|
2
|
+
import { HeaderObjectRef } from "./ref-definitions.js";
|
|
3
3
|
import { reference } from "./reference.js";
|
|
4
4
|
const EncodingObjectSchemaDefinition = Type.Object({
|
|
5
5
|
/** 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. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/encoding.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { HeaderObjectRef } from '
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;
|
|
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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -13,4 +13,19 @@ export declare const ExampleObjectSchemaDefinition: import("@scalar/typebox").TO
|
|
|
13
13
|
/** 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. */
|
|
14
14
|
externalValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
15
15
|
}>;
|
|
16
|
+
/**
|
|
17
|
+
* 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.
|
|
18
|
+
*
|
|
19
|
+
* Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.
|
|
20
|
+
*/
|
|
21
|
+
export type ExampleObject = {
|
|
22
|
+
/** Short description for the example. */
|
|
23
|
+
summary?: string;
|
|
24
|
+
/** Long description for the example. CommonMark syntax MAY be used for rich text representation. */
|
|
25
|
+
description?: string;
|
|
26
|
+
/** 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. */
|
|
27
|
+
value?: any;
|
|
28
|
+
/** 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. */
|
|
29
|
+
externalValue?: string;
|
|
30
|
+
};
|
|
16
31
|
//# sourceMappingURL=example.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/example.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;IACxC,yCAAyC;;IAEzC,oGAAoG;;IAEpG,6PAA6P;;IAE7P,+QAA+Q;;EAE/Q,CAAA"}
|
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/example.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;IACxC,yCAAyC;;IAEzC,oGAAoG;;IAEpG,6PAA6P;;IAE7P,+QAA+Q;;EAE/Q,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oGAAoG;IACpG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,6PAA6P;IAC7P,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,+QAA+Q;IAC/Q,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA"}
|
|
@@ -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
|
}
|