@scalar/workspace-store 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -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-examples.d.ts +8 -0
- package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -0
- package/dist/navigation/helpers/traverse-examples.js +46 -0
- package/dist/navigation/helpers/traverse-examples.js.map +7 -0
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +9 -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/example/x-disabled.d.ts +18 -0
- package/dist/schemas/extensions/example/x-disabled.d.ts.map +1 -0
- package/dist/schemas/extensions/example/x-disabled.js +8 -0
- package/dist/schemas/extensions/example/x-disabled.js.map +7 -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 -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/parameter/x-global.d.ts +13 -0
- package/dist/schemas/extensions/parameter/x-global.d.ts.map +1 -0
- package/dist/schemas/extensions/parameter/x-global.js +8 -0
- package/dist/schemas/extensions/parameter/x-global.js.map +7 -0
- 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 +95 -64
- 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 +70 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +17 -11
- 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 +58 -34
- 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 +48 -33
- 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 +28 -2
- package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +15 -10
- package/dist/schemas/v3.1/strict/example.js.map +2 -2
- 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 +1431 -1068
- 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 +66 -6
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +21 -17
- 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 +45 -33
- 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 +55 -34
- 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 +310 -218
- 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
|
@@ -4,6 +4,10 @@ export declare const NavigationBaseSchemaDefinition: import("@scalar/typebox").T
|
|
|
4
4
|
id: import("@scalar/typebox").TString;
|
|
5
5
|
title: import("@scalar/typebox").TString;
|
|
6
6
|
}>;
|
|
7
|
+
type BaseSchema = {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
};
|
|
7
11
|
export declare const TraversedDescriptionSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
8
12
|
id: import("@scalar/typebox").TString;
|
|
9
13
|
title: import("@scalar/typebox").TString;
|
|
@@ -11,6 +15,21 @@ export declare const TraversedDescriptionSchemaDefinition: import("@scalar/typeb
|
|
|
11
15
|
type: TLiteral<"text">;
|
|
12
16
|
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
13
17
|
}>]>;
|
|
18
|
+
export type TraversedDescription = BaseSchema & {
|
|
19
|
+
type: 'text';
|
|
20
|
+
children?: TraversedEntry[];
|
|
21
|
+
};
|
|
22
|
+
export declare const TraversedExampleSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
23
|
+
id: import("@scalar/typebox").TString;
|
|
24
|
+
title: import("@scalar/typebox").TString;
|
|
25
|
+
}>, import("@scalar/typebox").TObject<{
|
|
26
|
+
type: TLiteral<"example">;
|
|
27
|
+
name: import("@scalar/typebox").TString;
|
|
28
|
+
}>]>;
|
|
29
|
+
export type TraversedExample = BaseSchema & {
|
|
30
|
+
type: 'example';
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
14
33
|
export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
15
34
|
id: import("@scalar/typebox").TString;
|
|
16
35
|
title: import("@scalar/typebox").TString;
|
|
@@ -20,7 +39,16 @@ export declare const TraversedOperationSchemaDefinition: import("@scalar/typebox
|
|
|
20
39
|
method: TLiteral<HttpMethod>;
|
|
21
40
|
path: import("@scalar/typebox").TString;
|
|
22
41
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
42
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
23
43
|
}>]>;
|
|
44
|
+
export type TraversedOperation = BaseSchema & {
|
|
45
|
+
type: 'operation';
|
|
46
|
+
ref: string;
|
|
47
|
+
method: HttpMethod;
|
|
48
|
+
path: string;
|
|
49
|
+
isDeprecated?: boolean;
|
|
50
|
+
children?: TraversedEntry[];
|
|
51
|
+
};
|
|
24
52
|
export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
25
53
|
id: import("@scalar/typebox").TString;
|
|
26
54
|
title: import("@scalar/typebox").TString;
|
|
@@ -29,6 +57,11 @@ export declare const TraversedSchemaSchemaDefinition: import("@scalar/typebox").
|
|
|
29
57
|
ref: import("@scalar/typebox").TString;
|
|
30
58
|
name: import("@scalar/typebox").TString;
|
|
31
59
|
}>]>;
|
|
60
|
+
export type TraversedSchema = BaseSchema & {
|
|
61
|
+
type: 'model';
|
|
62
|
+
ref: string;
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
32
65
|
export declare const TraversedWebhookSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
33
66
|
id: import("@scalar/typebox").TString;
|
|
34
67
|
title: import("@scalar/typebox").TString;
|
|
@@ -39,6 +72,13 @@ export declare const TraversedWebhookSchemaDefinition: import("@scalar/typebox")
|
|
|
39
72
|
name: import("@scalar/typebox").TString;
|
|
40
73
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
41
74
|
}>]>;
|
|
75
|
+
export type TraversedWebhook = BaseSchema & {
|
|
76
|
+
type: 'webhook';
|
|
77
|
+
ref: string;
|
|
78
|
+
method: HttpMethod;
|
|
79
|
+
name: string;
|
|
80
|
+
isDeprecated?: boolean;
|
|
81
|
+
};
|
|
42
82
|
export declare const TraversedTagSchemaDefinition: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
43
83
|
id: import("@scalar/typebox").TString;
|
|
44
84
|
title: import("@scalar/typebox").TString;
|
|
@@ -51,7 +91,16 @@ export declare const TraversedTagSchemaDefinition: import("@scalar/typebox").TIn
|
|
|
51
91
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
52
92
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
53
93
|
}>]>;
|
|
54
|
-
export
|
|
94
|
+
export type TraversedTag = BaseSchema & {
|
|
95
|
+
type: 'tag';
|
|
96
|
+
name: string;
|
|
97
|
+
description?: string;
|
|
98
|
+
children?: TraversedEntry[];
|
|
99
|
+
isGroup: boolean;
|
|
100
|
+
isWebhooks?: boolean;
|
|
101
|
+
xKeys?: Record<string, unknown>;
|
|
102
|
+
};
|
|
103
|
+
export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
55
104
|
id: import("@scalar/typebox").TString;
|
|
56
105
|
title: import("@scalar/typebox").TString;
|
|
57
106
|
}>, import("@scalar/typebox").TObject<{
|
|
@@ -66,6 +115,7 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
66
115
|
method: TLiteral<HttpMethod>;
|
|
67
116
|
path: import("@scalar/typebox").TString;
|
|
68
117
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
118
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
69
119
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
70
120
|
id: import("@scalar/typebox").TString;
|
|
71
121
|
title: import("@scalar/typebox").TString;
|
|
@@ -76,11 +126,30 @@ export declare const TraversedEntrySchemaDefinition: import("@scalar/typebox").T
|
|
|
76
126
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
77
127
|
id: import("@scalar/typebox").TString;
|
|
78
128
|
title: import("@scalar/typebox").TString;
|
|
129
|
+
}>, import("@scalar/typebox").TObject<{
|
|
130
|
+
type: TLiteral<"tag">;
|
|
131
|
+
name: import("@scalar/typebox").TString;
|
|
132
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
133
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
134
|
+
isGroup: import("@scalar/typebox").TBoolean;
|
|
135
|
+
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
136
|
+
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
137
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
138
|
+
id: import("@scalar/typebox").TString;
|
|
139
|
+
title: import("@scalar/typebox").TString;
|
|
79
140
|
}>, import("@scalar/typebox").TObject<{
|
|
80
141
|
type: TLiteral<"webhook">;
|
|
81
142
|
ref: import("@scalar/typebox").TString;
|
|
82
143
|
method: TLiteral<HttpMethod>;
|
|
83
144
|
name: import("@scalar/typebox").TString;
|
|
84
145
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
146
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
147
|
+
id: import("@scalar/typebox").TString;
|
|
148
|
+
title: import("@scalar/typebox").TString;
|
|
149
|
+
}>, import("@scalar/typebox").TObject<{
|
|
150
|
+
type: TLiteral<"example">;
|
|
151
|
+
name: import("@scalar/typebox").TString;
|
|
85
152
|
}>]>]>;
|
|
153
|
+
export type TraversedEntry = TraversedDescription | TraversedOperation | TraversedSchema | TraversedTag | TraversedWebhook | TraversedExample;
|
|
154
|
+
export {};
|
|
86
155
|
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/schemas/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACjF,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAKrD,eAAO,MAAM,8BAA8B;;;EAGzC,CAAA;AAEF,KAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,oCAAoC;;;;;;IAMhD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;IAM5C,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG;IAC1C,IAAI,EAAE,SAAS,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;YAK0C,QAAQ,CAAC,UAAU,CAAC;;;;IAK5G,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C,IAAI,EAAE,WAAW,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,+BAA+B;;;;;;;IAO3C,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;YAK4C,QAAQ,CAAC,UAAU,CAAC;;;IAI5G,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG;IAC1C,IAAI,EAAE,SAAS,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;IAWxC,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IACtC,IAAI,EAAE,KAAK,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;YAzE8C,QAAQ,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoCpB,QAAQ,CAAC,UAAU,CAAC;;;;;;;;;MA4C3G,CAAA;AAEF,MAAM,MAAM,cAAc,GACtB,oBAAoB,GACpB,kBAAkB,GAClB,eAAe,GACf,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTTP_METHODS } from "@scalar/helpers/http/http-methods";
|
|
2
2
|
import { Type } from "@scalar/typebox";
|
|
3
3
|
import { compose } from "../schemas/compose.js";
|
|
4
|
-
import { TraversedEntryObjectRef
|
|
4
|
+
import { TraversedEntryObjectRef } from "../schemas/v3.1/strict/ref-definitions.js";
|
|
5
5
|
const NavigationBaseSchemaDefinition = Type.Object({
|
|
6
6
|
id: Type.String(),
|
|
7
7
|
title: Type.String()
|
|
@@ -13,16 +13,22 @@ const TraversedDescriptionSchemaDefinition = compose(
|
|
|
13
13
|
children: Type.Optional(Type.Array(TraversedEntryObjectRef))
|
|
14
14
|
})
|
|
15
15
|
);
|
|
16
|
+
const TraversedExampleSchemaDefinition = compose(
|
|
17
|
+
NavigationBaseSchemaDefinition,
|
|
18
|
+
Type.Object({
|
|
19
|
+
type: Type.Literal("example"),
|
|
20
|
+
name: Type.String()
|
|
21
|
+
})
|
|
22
|
+
);
|
|
16
23
|
const TraversedOperationSchemaDefinition = compose(
|
|
17
24
|
NavigationBaseSchemaDefinition,
|
|
18
25
|
Type.Object({
|
|
19
26
|
type: Type.Literal("operation"),
|
|
20
27
|
ref: Type.String(),
|
|
21
|
-
method: Type.Union(
|
|
22
|
-
Array.from(httpMethods.keys()).map((method) => Type.Literal(method))
|
|
23
|
-
),
|
|
28
|
+
method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))),
|
|
24
29
|
path: Type.String(),
|
|
25
|
-
isDeprecated: Type.Optional(Type.Boolean())
|
|
30
|
+
isDeprecated: Type.Optional(Type.Boolean()),
|
|
31
|
+
children: Type.Optional(Type.Array(TraversedEntryObjectRef))
|
|
26
32
|
})
|
|
27
33
|
);
|
|
28
34
|
const TraversedSchemaSchemaDefinition = compose(
|
|
@@ -38,9 +44,7 @@ const TraversedWebhookSchemaDefinition = compose(
|
|
|
38
44
|
Type.Object({
|
|
39
45
|
type: Type.Literal("webhook"),
|
|
40
46
|
ref: Type.String(),
|
|
41
|
-
method: Type.Union(
|
|
42
|
-
Array.from(httpMethods.keys()).map((method) => Type.Literal(method))
|
|
43
|
-
),
|
|
47
|
+
method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))),
|
|
44
48
|
name: Type.String(),
|
|
45
49
|
isDeprecated: Type.Optional(Type.Boolean())
|
|
46
50
|
})
|
|
@@ -58,16 +62,18 @@ const TraversedTagSchemaDefinition = compose(
|
|
|
58
62
|
})
|
|
59
63
|
);
|
|
60
64
|
const TraversedEntrySchemaDefinition = Type.Union([
|
|
61
|
-
TraversedTagObjectRef,
|
|
62
65
|
TraversedDescriptionSchemaDefinition,
|
|
63
66
|
TraversedOperationSchemaDefinition,
|
|
64
67
|
TraversedSchemaSchemaDefinition,
|
|
65
|
-
|
|
68
|
+
TraversedTagSchemaDefinition,
|
|
69
|
+
TraversedWebhookSchemaDefinition,
|
|
70
|
+
TraversedExampleSchemaDefinition
|
|
66
71
|
]);
|
|
67
72
|
export {
|
|
68
73
|
NavigationBaseSchemaDefinition,
|
|
69
74
|
TraversedDescriptionSchemaDefinition,
|
|
70
75
|
TraversedEntrySchemaDefinition,
|
|
76
|
+
TraversedExampleSchemaDefinition,
|
|
71
77
|
TraversedOperationSchemaDefinition,
|
|
72
78
|
TraversedSchemaSchemaDefinition,
|
|
73
79
|
TraversedTagSchemaDefinition,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/navigation.ts"],
|
|
4
|
-
"sourcesContent": ["import { type HttpMethod
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { HTTP_METHODS, type HttpMethod } from '@scalar/helpers/http/http-methods'\nimport { type TLiteral, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { TraversedEntryObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nexport const NavigationBaseSchemaDefinition = Type.Object({\n id: Type.String(),\n title: Type.String(),\n})\n\ntype BaseSchema = {\n id: string\n title: string\n}\n\nexport const TraversedDescriptionSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('text'),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\nexport type TraversedDescription = BaseSchema & {\n type: 'text'\n children?: TraversedEntry[]\n}\n\nexport const TraversedExampleSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('example'),\n name: Type.String(),\n }),\n)\n\nexport type TraversedExample = BaseSchema & {\n type: 'example'\n name: string\n}\n\nexport const TraversedOperationSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('operation'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n path: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n }),\n)\n\nexport type TraversedOperation = BaseSchema & {\n type: 'operation'\n ref: string\n method: HttpMethod\n path: string\n isDeprecated?: boolean\n children?: TraversedEntry[]\n}\n\nexport const TraversedSchemaSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('model'),\n ref: Type.String(),\n name: Type.String(),\n }),\n)\n\nexport type TraversedSchema = BaseSchema & {\n type: 'model'\n ref: string\n name: string\n}\n\nexport const TraversedWebhookSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('webhook'),\n ref: Type.String(),\n method: Type.Union(HTTP_METHODS.map((method) => Type.Literal(method))) as unknown as TLiteral<HttpMethod>,\n name: Type.String(),\n isDeprecated: Type.Optional(Type.Boolean()),\n }),\n)\n\nexport type TraversedWebhook = BaseSchema & {\n type: 'webhook'\n ref: string\n method: HttpMethod\n name: string\n isDeprecated?: boolean\n}\n\nexport const TraversedTagSchemaDefinition = compose(\n NavigationBaseSchemaDefinition,\n Type.Object({\n type: Type.Literal('tag'),\n name: Type.String(),\n description: Type.Optional(Type.String()),\n children: Type.Optional(Type.Array(TraversedEntryObjectRef)),\n isGroup: Type.Boolean(),\n isWebhooks: Type.Optional(Type.Boolean()),\n xKeys: Type.Optional(Type.Record(Type.String(), Type.Unknown())),\n }),\n)\n\nexport type TraversedTag = BaseSchema & {\n type: 'tag'\n name: string\n description?: string\n children?: TraversedEntry[]\n isGroup: boolean\n isWebhooks?: boolean\n xKeys?: Record<string, unknown>\n}\n\nexport const TraversedEntrySchemaDefinition = Type.Union([\n TraversedDescriptionSchemaDefinition,\n TraversedOperationSchemaDefinition,\n TraversedSchemaSchemaDefinition,\n TraversedTagSchemaDefinition,\n TraversedWebhookSchemaDefinition,\n TraversedExampleSchemaDefinition,\n])\n\nexport type TraversedEntry =\n | TraversedDescription\n | TraversedOperation\n | TraversedSchema\n | TraversedTag\n | TraversedWebhook\n | TraversedExample\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,oBAAqC;AAC9C,SAAwB,YAAY;AAEpC,SAAS,eAAe;AACxB,SAAS,+BAA+B;AAEjC,MAAM,iCAAiC,KAAK,OAAO;AAAA,EACxD,IAAI,KAAK,OAAO;AAAA,EAChB,OAAO,KAAK,OAAO;AACrB,CAAC;AAOM,MAAM,uCAAuC;AAAA,EAClD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,MAAM;AAAA,IACzB,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAOO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,SAAS;AAAA,IAC5B,MAAM,KAAK,OAAO;AAAA,EACpB,CAAC;AACH;AAOO,MAAM,qCAAqC;AAAA,EAChD;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,WAAW;AAAA,IAC9B,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,MAAM,aAAa,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,CAAC;AAAA,IACrE,MAAM,KAAK,OAAO;AAAA,IAClB,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IAC1C,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,EAC7D,CAAC;AACH;AAWO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,OAAO;AAAA,IAC1B,KAAK,KAAK,OAAO;AAAA,IACjB,MAAM,KAAK,OAAO;AAAA,EACpB,CAAC;AACH;AAQO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,SAAS;AAAA,IAC5B,KAAK,KAAK,OAAO;AAAA,IACjB,QAAQ,KAAK,MAAM,aAAa,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,CAAC;AAAA,IACrE,MAAM,KAAK,OAAO;AAAA,IAClB,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC5C,CAAC;AACH;AAUO,MAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,MAAM,KAAK,QAAQ,KAAK;AAAA,IACxB,MAAM,KAAK,OAAO;AAAA,IAClB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,IACxC,UAAU,KAAK,SAAS,KAAK,MAAM,uBAAuB,CAAC;AAAA,IAC3D,SAAS,KAAK,QAAQ;AAAA,IACtB,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,IACxC,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC;AAAA,EACjE,CAAC;AACH;AAYO,MAAM,iCAAiC,KAAK,MAAM;AAAA,EACvD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type Static } from '@scalar/typebox';
|
|
2
1
|
export declare const AppearanceSchema: import("@scalar/typebox").TObject<{
|
|
3
2
|
layout: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"modern">, import("@scalar/typebox").TLiteral<"classic">]>>;
|
|
4
3
|
theme: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -8,6 +7,14 @@ export declare const AppearanceSchema: import("@scalar/typebox").TObject<{
|
|
|
8
7
|
css: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
8
|
loadDefaultFonts: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
10
9
|
}>;
|
|
11
|
-
export type Appearance =
|
|
10
|
+
export type Appearance = {
|
|
11
|
+
layout?: 'modern' | 'classic';
|
|
12
|
+
theme?: string;
|
|
13
|
+
favicon?: string;
|
|
14
|
+
initialColorMode?: 'auto' | 'dark' | 'light';
|
|
15
|
+
forceColorMode?: 'dark' | 'light';
|
|
16
|
+
css?: string;
|
|
17
|
+
loadDefaultFonts?: boolean;
|
|
18
|
+
};
|
|
12
19
|
export declare const defaultAppearance: Required<Appearance>;
|
|
13
20
|
//# sourceMappingURL=appearance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/appearance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/appearance.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;EAU5B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;IAC5C,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACjC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,UAAU,CAQlD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/reference-config/appearance.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const AppearanceSchema = Type.Partial(\n Type.Object({\n layout: Type.Union([Type.Literal('modern'), Type.Literal('classic')]),\n theme: Type.String(),\n favicon: Type.String(),\n initialColorMode: Type.Union([Type.Literal('auto'), Type.Literal('dark'), Type.Literal('light')]),\n forceColorMode: Type.Union([Type.Literal('dark'), Type.Literal('light')]),\n css: Type.String(),\n loadDefaultFonts: Type.Boolean(),\n }),\n)\n\nexport type Appearance = {\n layout?: 'modern' | 'classic'\n theme?: string\n favicon?: string\n initialColorMode?: 'auto' | 'dark' | 'light'\n forceColorMode?: 'dark' | 'light'\n css?: string\n loadDefaultFonts?: boolean\n}\n\nexport const defaultAppearance: Required<Appearance> = {\n layout: 'modern',\n theme: 'default',\n favicon: '',\n initialColorMode: 'auto',\n forceColorMode: 'dark',\n css: '',\n loadDefaultFonts: true,\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,mBAAmB,KAAK;AAAA,EACnC,KAAK,OAAO;AAAA,IACV,QAAQ,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,SAAS,CAAC,CAAC;AAAA,IACpE,OAAO,KAAK,OAAO;AAAA,IACnB,SAAS,KAAK,OAAO;AAAA,IACrB,kBAAkB,KAAK,MAAM,CAAC,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA,IAChG,gBAAgB,KAAK,MAAM,CAAC,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA,IACxE,KAAK,KAAK,OAAO;AAAA,IACjB,kBAAkB,KAAK,QAAQ;AAAA,EACjC,CAAC;AACH;AAYO,MAAM,oBAA0C;AAAA,EACrD,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,KAAK;AAAA,EACL,kBAAkB;AACpB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type Static } from '@scalar/typebox';
|
|
2
1
|
export declare const FeaturesSchema: import("@scalar/typebox").TObject<{
|
|
3
2
|
showSidebar: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
4
3
|
showModels: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
@@ -10,6 +9,16 @@ export declare const FeaturesSchema: import("@scalar/typebox").TObject<{
|
|
|
10
9
|
expandAllTagSections: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
11
10
|
persistAuthenticationState: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
12
11
|
}>;
|
|
13
|
-
export type Features =
|
|
12
|
+
export type Features = {
|
|
13
|
+
showSidebar?: boolean;
|
|
14
|
+
showModels?: boolean;
|
|
15
|
+
showDownload?: boolean;
|
|
16
|
+
showTestRequestButton?: boolean;
|
|
17
|
+
showSearch?: boolean;
|
|
18
|
+
showApiClientImport?: boolean;
|
|
19
|
+
showDarkModeToggle?: boolean;
|
|
20
|
+
expandAllTagSections?: boolean;
|
|
21
|
+
persistAuthenticationState?: boolean;
|
|
22
|
+
};
|
|
14
23
|
export declare const defaultFeatures: Required<Features>;
|
|
15
24
|
//# sourceMappingURL=features.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/features.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/features.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;EAY1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,0BAA0B,CAAC,EAAE,OAAO,CAAA;CACrC,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,QAAQ,CAU9C,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/schemas/reference-config/features.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const FeaturesSchema = Type.Partial(\n Type.Object({\n showSidebar: Type.Boolean(),\n showModels: Type.Boolean(),\n showDownload: Type.Boolean(),\n showTestRequestButton: Type.Boolean(),\n showSearch: Type.Boolean(),\n showApiClientImport: Type.Boolean(),\n showDarkModeToggle: Type.Boolean(),\n expandAllTagSections: Type.Boolean(),\n persistAuthenticationState: Type.Boolean(),\n }),\n)\n\nexport type Features = {\n showSidebar?: boolean\n showModels?: boolean\n showDownload?: boolean\n showTestRequestButton?: boolean\n showSearch?: boolean\n showApiClientImport?: boolean\n showDarkModeToggle?: boolean\n expandAllTagSections?: boolean\n persistAuthenticationState?: boolean\n}\n\nexport const defaultFeatures: Required<Features> = {\n showSidebar: true,\n showModels: true,\n showDownload: true,\n showTestRequestButton: true,\n showSearch: true,\n showApiClientImport: true,\n showDarkModeToggle: true,\n expandAllTagSections: false,\n persistAuthenticationState: false,\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,iBAAiB,KAAK;AAAA,EACjC,KAAK,OAAO;AAAA,IACV,aAAa,KAAK,QAAQ;AAAA,IAC1B,YAAY,KAAK,QAAQ;AAAA,IACzB,cAAc,KAAK,QAAQ;AAAA,IAC3B,uBAAuB,KAAK,QAAQ;AAAA,IACpC,YAAY,KAAK,QAAQ;AAAA,IACzB,qBAAqB,KAAK,QAAQ;AAAA,IAClC,oBAAoB,KAAK,QAAQ;AAAA,IACjC,sBAAsB,KAAK,QAAQ;AAAA,IACnC,4BAA4B,KAAK,QAAQ;AAAA,EAC3C,CAAC;AACH;AAcO,MAAM,kBAAsC;AAAA,EACjD,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,uBAAuB;AAAA,EACvB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAC9B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type { RequiredDeep } from 'type-fest';
|
|
1
|
+
import { AVAILABLE_CLIENTS, type AvailableClientsArray } from '@scalar/types/snippetz';
|
|
2
|
+
import type { RequiredDeep } from 'type-fest/source/required-deep';
|
|
3
|
+
import { type Appearance } from './appearance.js';
|
|
4
|
+
import { type Features } from './features.js';
|
|
5
|
+
import { type Meta } from './meta.js';
|
|
6
|
+
import { type Routing } from './routing.js';
|
|
7
|
+
import { type Settings } from './settings.js';
|
|
3
8
|
/**
|
|
4
9
|
* ReferenceConfigSchema defines the shape of the configuration object
|
|
5
10
|
* for the API Reference. All properties are optional due to Type.Partial.
|
|
@@ -275,23 +280,6 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
275
280
|
'$ref-value': import("@scalar/typebox").TRef<"CallbackObject">;
|
|
276
281
|
}>]>]>>>;
|
|
277
282
|
}>, import("@scalar/typebox").TObject<{
|
|
278
|
-
'x-scalar-client-config-request-example': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
279
|
-
name: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
280
|
-
body: import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
281
|
-
encoding: import("@scalar/typebox").TLiteral<typeof import("../v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js").exampleBodyMime[number]>;
|
|
282
|
-
content: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TAny>, import("@scalar/typebox").TString]>;
|
|
283
|
-
file: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
284
|
-
url: import("@scalar/typebox").TString;
|
|
285
|
-
base64: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
286
|
-
}>, import("@scalar/typebox").TNull]>>;
|
|
287
|
-
}>>;
|
|
288
|
-
parameters: import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
289
|
-
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
290
|
-
query: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
291
|
-
header: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
292
|
-
cookie: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
293
|
-
}>>;
|
|
294
|
-
}>>>;
|
|
295
283
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
296
284
|
}>, import("@scalar/typebox").TObject<{
|
|
297
285
|
'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
@@ -494,7 +482,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
494
482
|
'x-tags': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
495
483
|
}>]>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
496
484
|
type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"number">, import("@scalar/typebox").TLiteral<"integer">]>;
|
|
497
|
-
format: import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
485
|
+
format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
498
486
|
multipleOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
499
487
|
maximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
500
488
|
exclusiveMaximum: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TBoolean, import("@scalar/typebox").TNumber]>>;
|
|
@@ -977,17 +965,17 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
977
965
|
variables: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"ServerVariableObject">>>;
|
|
978
966
|
}>;
|
|
979
967
|
ExternalDocumentationObject: import("@scalar/typebox").TObject<{
|
|
980
|
-
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
981
968
|
url: import("@scalar/typebox").TString;
|
|
969
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
982
970
|
}>;
|
|
983
971
|
InfoObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
984
972
|
title: import("@scalar/typebox").TString;
|
|
973
|
+
version: import("@scalar/typebox").TString;
|
|
985
974
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
986
975
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
987
976
|
termsOfService: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
988
977
|
contact: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ContactObject">>;
|
|
989
978
|
license: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"LicenseObject">>;
|
|
990
|
-
version: import("@scalar/typebox").TString;
|
|
991
979
|
}>, import("@scalar/typebox").TObject<{
|
|
992
980
|
'x-scalar-sdk-installation': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
993
981
|
lang: import("@scalar/typebox").TString;
|
|
@@ -1039,7 +1027,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1039
1027
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1040
1028
|
'$ref-value': import("@scalar/typebox").TRef<"ResponseObject">;
|
|
1041
1029
|
}>]>]>>;
|
|
1042
|
-
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1030
|
+
ParameterObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1043
1031
|
name: import("@scalar/typebox").TString;
|
|
1044
1032
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
1045
1033
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1047,6 +1035,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1047
1035
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1048
1036
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1049
1037
|
}>, import("@scalar/typebox").TObject<{
|
|
1038
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1039
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1050
1040
|
style: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1051
1041
|
explode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1052
1042
|
schema: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -1070,7 +1060,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1070
1060
|
}>]>, import("@scalar/typebox").TObject<{
|
|
1071
1061
|
'$ref-value': import("@scalar/typebox").TRef<"ExampleObject">;
|
|
1072
1062
|
}>]>]>>>;
|
|
1073
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1063
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1074
1064
|
name: import("@scalar/typebox").TString;
|
|
1075
1065
|
in: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"query">, import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"path">, import("@scalar/typebox").TLiteral<"cookie">]>;
|
|
1076
1066
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1078,14 +1068,18 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1078
1068
|
deprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1079
1069
|
allowEmptyValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1080
1070
|
}>, import("@scalar/typebox").TObject<{
|
|
1071
|
+
'x-global': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1072
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1081
1073
|
content: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>>;
|
|
1082
1074
|
}>]>]>;
|
|
1083
|
-
ExampleObject: import("@scalar/typebox").TObject<{
|
|
1075
|
+
ExampleObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1084
1076
|
summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1085
1077
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1086
1078
|
value: import("@scalar/typebox").TOptional<import("@scalar/typebox").TAny>;
|
|
1087
1079
|
externalValue: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1088
|
-
}
|
|
1080
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1081
|
+
'x-disabled': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1082
|
+
}>]>;
|
|
1089
1083
|
RequestBodyObject: import("@scalar/typebox").TObject<{
|
|
1090
1084
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1091
1085
|
content: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"MediaTypeObject">>;
|
|
@@ -1248,10 +1242,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1248
1242
|
security: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
1249
1243
|
tags: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TagObject">>>;
|
|
1250
1244
|
externalDocs: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRef<"ExternalDocumentationObject">>;
|
|
1251
|
-
}>, import("@scalar/typebox").TObject<{
|
|
1252
|
-
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1253
|
-
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
1254
|
-
}>, import("@scalar/typebox").TRef<"TagObject">]>>>;
|
|
1245
|
+
}>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1255
1246
|
'x-scalar-client-config-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1256
1247
|
'x-scalar-client-config-icon': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1257
1248
|
'x-scalar-client-config-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
@@ -1271,7 +1262,12 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1271
1262
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1272
1263
|
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
1273
1264
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1274
|
-
}
|
|
1265
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1266
|
+
'x-tagGroups': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
1267
|
+
name: import("@scalar/typebox").TString;
|
|
1268
|
+
tags: import("@scalar/typebox").TArray<import("@scalar/typebox").TString>;
|
|
1269
|
+
}>>>;
|
|
1270
|
+
}>]>]>;
|
|
1275
1271
|
TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1276
1272
|
id: import("@scalar/typebox").TString;
|
|
1277
1273
|
title: import("@scalar/typebox").TString;
|
|
@@ -1288,6 +1284,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1288
1284
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1289
1285
|
path: import("@scalar/typebox").TString;
|
|
1290
1286
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1287
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1291
1288
|
}>]>;
|
|
1292
1289
|
TraversedSchemaObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1293
1290
|
id: import("@scalar/typebox").TString;
|
|
@@ -1319,7 +1316,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1319
1316
|
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1320
1317
|
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
1321
1318
|
}>]>;
|
|
1322
|
-
TraversedEntryObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").
|
|
1319
|
+
TraversedEntryObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1323
1320
|
id: import("@scalar/typebox").TString;
|
|
1324
1321
|
title: import("@scalar/typebox").TString;
|
|
1325
1322
|
}>, import("@scalar/typebox").TObject<{
|
|
@@ -1334,6 +1331,7 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1334
1331
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1335
1332
|
path: import("@scalar/typebox").TString;
|
|
1336
1333
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1334
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1337
1335
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1338
1336
|
id: import("@scalar/typebox").TString;
|
|
1339
1337
|
title: import("@scalar/typebox").TString;
|
|
@@ -1344,12 +1342,29 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1344
1342
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1345
1343
|
id: import("@scalar/typebox").TString;
|
|
1346
1344
|
title: import("@scalar/typebox").TString;
|
|
1345
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1346
|
+
type: import("@scalar/typebox").TLiteral<"tag">;
|
|
1347
|
+
name: import("@scalar/typebox").TString;
|
|
1348
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1349
|
+
children: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1350
|
+
isGroup: import("@scalar/typebox").TBoolean;
|
|
1351
|
+
isWebhooks: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1352
|
+
xKeys: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnknown>>;
|
|
1353
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1354
|
+
id: import("@scalar/typebox").TString;
|
|
1355
|
+
title: import("@scalar/typebox").TString;
|
|
1347
1356
|
}>, import("@scalar/typebox").TObject<{
|
|
1348
1357
|
type: import("@scalar/typebox").TLiteral<"webhook">;
|
|
1349
1358
|
ref: import("@scalar/typebox").TString;
|
|
1350
1359
|
method: import("@scalar/typebox").TLiteral<import("@scalar/helpers/http/http-methods").HttpMethod>;
|
|
1351
1360
|
name: import("@scalar/typebox").TString;
|
|
1352
1361
|
isDeprecated: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
1362
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1363
|
+
id: import("@scalar/typebox").TString;
|
|
1364
|
+
title: import("@scalar/typebox").TString;
|
|
1365
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1366
|
+
type: import("@scalar/typebox").TLiteral<"example">;
|
|
1367
|
+
name: import("@scalar/typebox").TString;
|
|
1353
1368
|
}>]>]>;
|
|
1354
1369
|
}, "ServerObject">>>;
|
|
1355
1370
|
baseServerUrl: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
@@ -1386,8 +1401,17 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
1386
1401
|
ogImage: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1387
1402
|
twitterCard: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1388
1403
|
}>>;
|
|
1389
|
-
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>>;
|
|
1404
|
+
httpClients: import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "clojure/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "dart/http" | "fsharp/httpclient" | "go/native" | "http/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "kotlin/okhttp" | "node/axios" | "node/fetch" | "node/ofetch" | "node/undici" | "objc/nsurlsession" | "ocaml/cohttp" | "php/curl" | "php/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "r/httr" | "ruby/native" | "rust/reqwest" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession">[]>>>;
|
|
1390
1405
|
}>;
|
|
1391
|
-
export type ReferenceConfig =
|
|
1406
|
+
export type ReferenceConfig = {
|
|
1407
|
+
title?: string;
|
|
1408
|
+
slug?: string;
|
|
1409
|
+
settings?: Settings;
|
|
1410
|
+
routing?: Routing;
|
|
1411
|
+
appearance?: Appearance;
|
|
1412
|
+
features?: Features;
|
|
1413
|
+
meta?: Meta;
|
|
1414
|
+
httpClients?: AvailableClientsArray | typeof AVAILABLE_CLIENTS;
|
|
1415
|
+
};
|
|
1392
1416
|
export declare const defaultReferenceConfig: RequiredDeep<ReferenceConfig>;
|
|
1393
1417
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,KAAK,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AACtF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAElE,OAAO,EAAE,KAAK,UAAU,EAAuC,MAAM,cAAc,CAAA;AACnF,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAC3E,OAAO,EAAE,KAAK,IAAI,EAA2B,MAAM,QAAQ,CAAA;AAC3D,OAAO,EAAE,KAAK,OAAO,EAAiC,MAAM,WAAW,CAAA;AACvE,OAAO,EAAE,KAAK,QAAQ,EAAmC,MAAM,YAAY,CAAA;AAE3E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBjC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,qBAAqB,GAAG,OAAO,iBAAiB,CAAA;CAC/D,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,eAAe,CAgChE,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
2
|
import { AVAILABLE_CLIENTS } from "@scalar/types/snippetz";
|
|
3
|
-
import { AppearanceSchema, defaultAppearance } from "
|
|
4
|
-
import { FeaturesSchema, defaultFeatures } from "
|
|
5
|
-
import { MetaSchema, defaultMeta } from "
|
|
6
|
-
import { RoutingSchema, defaultRouting } from "
|
|
7
|
-
import { SettingsSchema, defaultSettings } from "
|
|
3
|
+
import { AppearanceSchema, defaultAppearance } from "./appearance.js";
|
|
4
|
+
import { FeaturesSchema, defaultFeatures } from "./features.js";
|
|
5
|
+
import { MetaSchema, defaultMeta } from "./meta.js";
|
|
6
|
+
import { RoutingSchema, defaultRouting } from "./routing.js";
|
|
7
|
+
import { SettingsSchema, defaultSettings } from "./settings.js";
|
|
8
8
|
const ReferenceConfigSchema = Type.Partial(
|
|
9
9
|
Type.Object({
|
|
10
10
|
/** Document level title */
|