@scalar/workspace-store 0.6.0 → 0.8.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 +48 -0
- package/README.md +116 -0
- package/dist/client.d.ts +71 -44614
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +146 -11
- package/dist/client.js.map +2 -2
- package/dist/helpers/apply-selective-updates.d.ts +17 -0
- package/dist/helpers/apply-selective-updates.d.ts.map +1 -0
- package/dist/helpers/apply-selective-updates.js +13 -0
- package/dist/helpers/apply-selective-updates.js.map +7 -0
- package/dist/helpers/general.d.ts +33 -0
- package/dist/helpers/general.d.ts.map +1 -1
- package/dist/helpers/general.js +14 -1
- package/dist/helpers/general.js.map +2 -2
- package/dist/helpers/json-path-utils.d.ts +1 -1
- package/dist/helpers/json-path-utils.d.ts.map +1 -1
- package/dist/helpers/json-path-utils.js.map +2 -2
- package/dist/helpers/merge-object.d.ts +23 -0
- package/dist/helpers/merge-object.d.ts.map +1 -0
- package/dist/helpers/merge-object.js +20 -0
- package/dist/helpers/merge-object.js.map +7 -0
- package/dist/helpers/proxy.d.ts +1 -1
- package/dist/helpers/proxy.d.ts.map +1 -1
- package/dist/helpers/proxy.js.map +2 -2
- package/dist/mutators/cookie.d.ts +17 -0
- package/dist/mutators/cookie.d.ts.map +1 -0
- package/dist/mutators/cookie.js +31 -0
- package/dist/mutators/cookie.js.map +7 -0
- package/dist/mutators/environment.d.ts +17 -0
- package/dist/mutators/environment.d.ts.map +1 -0
- package/dist/mutators/environment.js +31 -0
- package/dist/mutators/environment.js.map +7 -0
- package/dist/mutators/helpers.d.ts +34492 -0
- package/dist/mutators/helpers.d.ts.map +1 -0
- package/dist/mutators/helpers.js +11 -0
- package/dist/mutators/helpers.js.map +7 -0
- package/dist/mutators/index.d.ts +108 -0
- package/dist/mutators/index.d.ts.map +1 -0
- package/dist/mutators/index.js +67 -0
- package/dist/mutators/index.js.map +7 -0
- package/dist/mutators/request-example.d.ts +21 -0
- package/dist/mutators/request-example.d.ts.map +1 -0
- package/dist/mutators/request-example.js +58 -0
- package/dist/mutators/request-example.js.map +7 -0
- package/dist/mutators/request.d.ts +22 -0
- package/dist/mutators/request.d.ts.map +1 -0
- package/dist/mutators/request.js +53 -0
- package/dist/mutators/request.js.map +7 -0
- package/dist/mutators/security-schemes.d.ts +14 -0
- package/dist/mutators/security-schemes.d.ts.map +1 -0
- package/dist/mutators/security-schemes.js +27 -0
- package/dist/mutators/security-schemes.js.map +7 -0
- package/dist/mutators/server.d.ts +12 -0
- package/dist/mutators/server.d.ts.map +1 -0
- package/dist/mutators/server.js +24 -0
- package/dist/mutators/server.js.map +7 -0
- package/dist/schemas/compose.d.ts.map +1 -0
- package/dist/schemas/{v3.1/compose.js.map → compose.js.map} +1 -1
- package/dist/schemas/reference-config/appearance.d.ts +13 -0
- package/dist/schemas/reference-config/appearance.d.ts.map +1 -0
- package/dist/schemas/reference-config/appearance.js +26 -0
- package/dist/schemas/reference-config/appearance.js.map +7 -0
- package/dist/schemas/reference-config/features.d.ts +15 -0
- package/dist/schemas/reference-config/features.d.ts.map +1 -0
- package/dist/schemas/reference-config/features.js +30 -0
- package/dist/schemas/reference-config/features.js.map +7 -0
- package/dist/schemas/reference-config/index.d.ts +53 -0
- package/dist/schemas/reference-config/index.d.ts.map +1 -0
- package/dist/schemas/reference-config/index.js +66 -0
- package/dist/schemas/reference-config/index.js.map +7 -0
- package/dist/schemas/reference-config/meta.d.ts +12 -0
- package/dist/schemas/reference-config/meta.d.ts.map +1 -0
- package/dist/schemas/reference-config/meta.js +24 -0
- package/dist/schemas/reference-config/meta.js.map +7 -0
- package/dist/schemas/reference-config/routing.d.ts +8 -0
- package/dist/schemas/reference-config/routing.d.ts.map +1 -0
- package/dist/schemas/reference-config/routing.js +16 -0
- package/dist/schemas/reference-config/routing.js.map +7 -0
- package/dist/schemas/reference-config/settings.d.ts +8 -0
- package/dist/schemas/reference-config/settings.d.ts.map +1 -0
- package/dist/schemas/reference-config/settings.js +16 -0
- package/dist/schemas/reference-config/settings.js.map +7 -0
- package/dist/schemas/v3.1/strict/callback.js +1 -1
- package/dist/schemas/v3.1/strict/callback.js.map +1 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js +23 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
- package/dist/schemas/v3.1/strict/components.d.ts +45 -7821
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/components.js +4 -2
- package/dist/schemas/v3.1/strict/components.js.map +2 -2
- package/dist/schemas/v3.1/strict/contact.js +1 -1
- package/dist/schemas/v3.1/strict/contact.js.map +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js +1 -1
- package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
- package/dist/schemas/v3.1/strict/encoding.js +1 -1
- package/dist/schemas/v3.1/strict/encoding.js.map +1 -1
- package/dist/schemas/v3.1/strict/example.js +1 -1
- package/dist/schemas/v3.1/strict/example.js.map +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js +1 -1
- package/dist/schemas/v3.1/strict/external-documentation.js.map +1 -1
- package/dist/schemas/v3.1/strict/header.d.ts +2 -0
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +1 -1
- package/dist/schemas/v3.1/strict/header.js.map +1 -1
- package/dist/schemas/v3.1/strict/info.js +1 -1
- package/dist/schemas/v3.1/strict/info.js.map +1 -1
- package/dist/schemas/v3.1/strict/license.js +1 -1
- package/dist/schemas/v3.1/strict/license.js.map +1 -1
- package/dist/schemas/v3.1/strict/link.js +1 -1
- package/dist/schemas/v3.1/strict/link.js.map +1 -1
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +6 -0
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.d.ts +1 -0
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.js +1 -1
- package/dist/schemas/v3.1/strict/media-type.js.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +73 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +45 -8
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -10
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js +12 -9
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +16 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +9 -2
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +29 -2
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +8 -1
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +11 -5
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +2 -2
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +11 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-item.js +7 -1
- package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-operations.d.ts +4133 -260
- package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.d.ts +1935 -15
- 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 +1 -1
- package/dist/schemas/v3.1/strict/reference.js +1 -1
- package/dist/schemas/v3.1/strict/reference.js.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.d.ts +2 -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 +1 -1
- package/dist/schemas/v3.1/strict/response.d.ts +4 -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 +1 -1
- package/dist/schemas/v3.1/strict/responses.d.ts +4 -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 +1 -1
- package/dist/schemas/v3.1/strict/schema.d.ts +6 -1
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +8 -3
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-requirement.js +1 -1
- package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +22 -20
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js.map +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js +1 -1
- package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
- package/dist/schemas/v3.1/strict/server.js +1 -1
- package/dist/schemas/v3.1/strict/server.js.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +1 -1
- package/dist/schemas/v3.1/strict/tag.js.map +1 -1
- package/dist/schemas/v3.1/strict/xml.js +1 -1
- package/dist/schemas/v3.1/strict/xml.js.map +1 -1
- package/dist/schemas/v3.1/type-guard.d.ts +5 -0
- package/dist/schemas/v3.1/type-guard.d.ts.map +1 -1
- package/dist/schemas/v3.1/type-guard.js +1 -3
- package/dist/schemas/v3.1/type-guard.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +48 -0
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/config.js +11 -0
- package/dist/schemas/workspace-specification/config.js.map +7 -0
- package/dist/schemas/workspace-specification/index.d.ts +163 -0
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/index.js +27 -0
- package/dist/schemas/workspace-specification/index.js.map +7 -0
- package/dist/schemas/workspace-specification/info.d.ts +5 -0
- package/dist/schemas/workspace-specification/info.d.ts.map +1 -0
- package/dist/schemas/workspace-specification/info.js +9 -0
- package/dist/schemas/workspace-specification/info.js.map +7 -0
- package/dist/schemas/workspace.d.ts +147 -79
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +19 -4
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +1371 -673
- package/dist/server.d.ts.map +1 -1
- package/dist/types.d.ts +57 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +7 -0
- package/package.json +23 -9
- package/dist/schemas/v3.1/compose.d.ts.map +0 -1
- /package/dist/schemas/{v3.1/compose.d.ts → compose.d.ts} +0 -0
- /package/dist/schemas/{v3.1/compose.js → compose.js} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const AppearanceSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"modern">, import("@sinclair/typebox").TLiteral<"classic">]>>;
|
|
4
|
+
theme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
favicon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
initialColorMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"dark">, import("@sinclair/typebox").TLiteral<"light">]>>;
|
|
7
|
+
forceColorMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"dark">, import("@sinclair/typebox").TLiteral<"light">]>>;
|
|
8
|
+
css: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
loadDefaultFonts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
10
|
+
}>;
|
|
11
|
+
export type Appearance = Static<typeof AppearanceSchema>;
|
|
12
|
+
export declare const defaultAppearance: Required<Appearance>;
|
|
13
|
+
//# sourceMappingURL=appearance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/appearance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,gBAAgB;;;;;;;;EAU5B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAExD,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,UAAU,CAQlD,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const AppearanceSchema = Type.Partial(
|
|
3
|
+
Type.Object({
|
|
4
|
+
layout: Type.Union([Type.Literal("modern"), Type.Literal("classic")]),
|
|
5
|
+
theme: Type.String(),
|
|
6
|
+
favicon: Type.String(),
|
|
7
|
+
initialColorMode: Type.Union([Type.Literal("auto"), Type.Literal("dark"), Type.Literal("light")]),
|
|
8
|
+
forceColorMode: Type.Union([Type.Literal("dark"), Type.Literal("light")]),
|
|
9
|
+
css: Type.String(),
|
|
10
|
+
loadDefaultFonts: Type.Boolean()
|
|
11
|
+
})
|
|
12
|
+
);
|
|
13
|
+
const defaultAppearance = {
|
|
14
|
+
layout: "modern",
|
|
15
|
+
theme: "default",
|
|
16
|
+
favicon: "",
|
|
17
|
+
initialColorMode: "auto",
|
|
18
|
+
forceColorMode: "dark",
|
|
19
|
+
css: "",
|
|
20
|
+
loadDefaultFonts: true
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
AppearanceSchema,
|
|
24
|
+
defaultAppearance
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=appearance.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/schemas/reference-config/appearance.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/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 = Static<typeof AppearanceSchema>\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,YAAyB;AAE3B,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;AAIO,MAAM,oBAA0C;AAAA,EACrD,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,KAAK;AAAA,EACL,kBAAkB;AACpB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const FeaturesSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
showSidebar: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
4
|
+
showModels: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
5
|
+
showDownload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
6
|
+
showTestRequestButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
7
|
+
showSearch: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
8
|
+
showApiClientImport: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
9
|
+
showDarkModeToggle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
10
|
+
expandAllTagSections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
11
|
+
persistAuthenticationState: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
12
|
+
}>;
|
|
13
|
+
export type Features = Static<typeof FeaturesSchema>;
|
|
14
|
+
export declare const defaultFeatures: Required<Features>;
|
|
15
|
+
//# sourceMappingURL=features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,cAAc;;;;;;;;;;EAY1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,QAAQ,CAU9C,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const FeaturesSchema = Type.Partial(
|
|
3
|
+
Type.Object({
|
|
4
|
+
showSidebar: Type.Boolean(),
|
|
5
|
+
showModels: Type.Boolean(),
|
|
6
|
+
showDownload: Type.Boolean(),
|
|
7
|
+
showTestRequestButton: Type.Boolean(),
|
|
8
|
+
showSearch: Type.Boolean(),
|
|
9
|
+
showApiClientImport: Type.Boolean(),
|
|
10
|
+
showDarkModeToggle: Type.Boolean(),
|
|
11
|
+
expandAllTagSections: Type.Boolean(),
|
|
12
|
+
persistAuthenticationState: Type.Boolean()
|
|
13
|
+
})
|
|
14
|
+
);
|
|
15
|
+
const defaultFeatures = {
|
|
16
|
+
showSidebar: true,
|
|
17
|
+
showModels: true,
|
|
18
|
+
showDownload: true,
|
|
19
|
+
showTestRequestButton: true,
|
|
20
|
+
showSearch: true,
|
|
21
|
+
showApiClientImport: true,
|
|
22
|
+
showDarkModeToggle: true,
|
|
23
|
+
expandAllTagSections: false,
|
|
24
|
+
persistAuthenticationState: false
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
FeaturesSchema,
|
|
28
|
+
defaultFeatures
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=features.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/schemas/reference-config/features.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/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 = Static<typeof FeaturesSchema>\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,YAAyB;AAE3B,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;AAIO,MAAM,kBAAsC;AAAA,EACjD,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,uBAAuB;AAAA,EACvB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAC9B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
import type { DeepTransform } from '../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* ReferenceConfigSchema defines the shape of the configuration object
|
|
5
|
+
* for the API Reference. All properties are optional due to Type.Partial.
|
|
6
|
+
* This schema is used for validating and typing the configuration.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ReferenceConfigSchema: import("@sinclair/typebox").TObject<{
|
|
9
|
+
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
settings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
12
|
+
proxyUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
searchKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
}>>;
|
|
15
|
+
tagSort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<"alpha">>;
|
|
16
|
+
operationSort: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"method">, import("@sinclair/typebox").TLiteral<"alpha">]>>;
|
|
17
|
+
routing: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
18
|
+
basePath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
pathNotFound: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
+
}>>;
|
|
21
|
+
appearance: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
22
|
+
layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"modern">, import("@sinclair/typebox").TLiteral<"classic">]>>;
|
|
23
|
+
theme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
favicon: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
|
+
initialColorMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"dark">, import("@sinclair/typebox").TLiteral<"light">]>>;
|
|
26
|
+
forceColorMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"dark">, import("@sinclair/typebox").TLiteral<"light">]>>;
|
|
27
|
+
css: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
|
+
loadDefaultFonts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
29
|
+
}>>;
|
|
30
|
+
features: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
31
|
+
showSidebar: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32
|
+
showModels: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
33
|
+
showDownload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
34
|
+
showTestRequestButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
35
|
+
showSearch: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
36
|
+
showApiClientImport: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
37
|
+
showDarkModeToggle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
38
|
+
expandAllTagSections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
39
|
+
persistAuthenticationState: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
40
|
+
}>>;
|
|
41
|
+
meta: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
42
|
+
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
43
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
44
|
+
ogTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
|
+
ogDescription: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
46
|
+
ogImage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
47
|
+
twitterCard: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
48
|
+
}>>;
|
|
49
|
+
httpClients: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<import("@sinclair/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">[]>>>;
|
|
50
|
+
}>;
|
|
51
|
+
export type ReferenceConfig = Static<typeof ReferenceConfigSchema>;
|
|
52
|
+
export declare const defaultReferenceConfig: DeepTransform<ReferenceConfig, 'NonNullable'>;
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAOrD,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,SAAS,CAAA;AAE1D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBjC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAElE,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,eAAe,EAAE,aAAa,CAkChF,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { AVAILABLE_CLIENTS } from "@scalar/types/snippetz";
|
|
3
|
+
import { defaultMeta, MetaSchema } from "../../schemas/reference-config/meta.js";
|
|
4
|
+
import { defaultFeatures, FeaturesSchema } from "../../schemas/reference-config/features.js";
|
|
5
|
+
import { AppearanceSchema, defaultAppearance } from "../../schemas/reference-config/appearance.js";
|
|
6
|
+
import { defaultRouting, RoutingSchema } from "../../schemas/reference-config/routing.js";
|
|
7
|
+
import { defaultSettings, SettingsSchema } from "../../schemas/reference-config/settings.js";
|
|
8
|
+
const ReferenceConfigSchema = Type.Partial(
|
|
9
|
+
Type.Object({
|
|
10
|
+
/** Document level title */
|
|
11
|
+
title: Type.String(),
|
|
12
|
+
/** Unique slug to identify the document */
|
|
13
|
+
slug: Type.String(),
|
|
14
|
+
/** Settings for the API reference (controls behavior and options) */
|
|
15
|
+
settings: SettingsSchema,
|
|
16
|
+
/** Tag sorting method: currently only 'alpha' (alphabetical) is supported */
|
|
17
|
+
tagSort: Type.Union([Type.Literal("alpha")]),
|
|
18
|
+
/** Operation sorting method: by HTTP method or alphabetically */
|
|
19
|
+
operationSort: Type.Union([Type.Literal("method"), Type.Literal("alpha")]),
|
|
20
|
+
/** Routing configuration (controls navigation) */
|
|
21
|
+
routing: RoutingSchema,
|
|
22
|
+
/** Appearance configuration (controls theming and UI options) */
|
|
23
|
+
appearance: AppearanceSchema,
|
|
24
|
+
/** Features configuration (toggles for enabling/disabling features) */
|
|
25
|
+
features: FeaturesSchema,
|
|
26
|
+
/** Meta information */
|
|
27
|
+
meta: MetaSchema,
|
|
28
|
+
/** List of enabled HTTP clients for code samples */
|
|
29
|
+
httpClients: Type.Array(Type.Union(AVAILABLE_CLIENTS.map((client) => Type.Literal(client))))
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
const defaultReferenceConfig = {
|
|
33
|
+
title: "Scalar API Reference",
|
|
34
|
+
slug: "scalar-api-reference",
|
|
35
|
+
tagSort: "alpha",
|
|
36
|
+
operationSort: "method",
|
|
37
|
+
/**
|
|
38
|
+
* Default settings for the API reference.
|
|
39
|
+
*/
|
|
40
|
+
settings: defaultSettings,
|
|
41
|
+
/**
|
|
42
|
+
* Default routing configuration for the API reference.
|
|
43
|
+
*/
|
|
44
|
+
routing: defaultRouting,
|
|
45
|
+
/**
|
|
46
|
+
* Default appearance configuration for the API reference.
|
|
47
|
+
*/
|
|
48
|
+
appearance: defaultAppearance,
|
|
49
|
+
/**
|
|
50
|
+
* Default features configuration for the API reference.
|
|
51
|
+
*/
|
|
52
|
+
features: defaultFeatures,
|
|
53
|
+
/**
|
|
54
|
+
* Default meta configuration for the API reference.
|
|
55
|
+
*/
|
|
56
|
+
meta: defaultMeta,
|
|
57
|
+
/**
|
|
58
|
+
* Default HTTP clients for the API reference.
|
|
59
|
+
*/
|
|
60
|
+
httpClients: AVAILABLE_CLIENTS
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
ReferenceConfigSchema,
|
|
64
|
+
defaultReferenceConfig
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/schemas/reference-config/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { AVAILABLE_CLIENTS } from '@scalar/types/snippetz'\nimport { defaultMeta, MetaSchema } from '@/schemas/reference-config/meta'\nimport { defaultFeatures, FeaturesSchema } from '@/schemas/reference-config/features'\nimport { AppearanceSchema, defaultAppearance } from '@/schemas/reference-config/appearance'\nimport { defaultRouting, RoutingSchema } from '@/schemas/reference-config/routing'\nimport { defaultSettings, SettingsSchema } from '@/schemas/reference-config/settings'\nimport type { DeepTransform, MutableArray } from '@/types'\n\n/**\n * ReferenceConfigSchema defines the shape of the configuration object\n * for the API Reference. All properties are optional due to Type.Partial.\n * This schema is used for validating and typing the configuration.\n */\nexport const ReferenceConfigSchema = Type.Partial(\n Type.Object({\n /** Document level title */\n title: Type.String(),\n /** Unique slug to identify the document */\n slug: Type.String(),\n /** Settings for the API reference (controls behavior and options) */\n settings: SettingsSchema,\n /** Tag sorting method: currently only 'alpha' (alphabetical) is supported */\n tagSort: Type.Union([Type.Literal('alpha')]),\n /** Operation sorting method: by HTTP method or alphabetically */\n operationSort: Type.Union([Type.Literal('method'), Type.Literal('alpha')]),\n /** Routing configuration (controls navigation) */\n routing: RoutingSchema,\n /** Appearance configuration (controls theming and UI options) */\n appearance: AppearanceSchema,\n /** Features configuration (toggles for enabling/disabling features) */\n features: FeaturesSchema,\n /** Meta information */\n meta: MetaSchema,\n /** List of enabled HTTP clients for code samples */\n httpClients: Type.Array(Type.Union(AVAILABLE_CLIENTS.map((client) => Type.Literal(client)))),\n }),\n)\n\nexport type ReferenceConfig = Static<typeof ReferenceConfigSchema>\n\nexport const defaultReferenceConfig: DeepTransform<ReferenceConfig, 'NonNullable'> = {\n title: 'Scalar API Reference',\n slug: 'scalar-api-reference',\n tagSort: 'alpha',\n operationSort: 'method',\n\n /**\n * Default settings for the API reference.\n */\n settings: defaultSettings,\n\n /**\n * Default routing configuration for the API reference.\n */\n routing: defaultRouting,\n /**\n * Default appearance configuration for the API reference.\n */\n appearance: defaultAppearance,\n\n /**\n * Default features configuration for the API reference.\n */\n features: defaultFeatures,\n\n /**\n * Default meta configuration for the API reference.\n */\n meta: defaultMeta,\n\n /**\n * Default HTTP clients for the API reference.\n */\n httpClients: AVAILABLE_CLIENTS as MutableArray<typeof AVAILABLE_CLIENTS>,\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,yBAAyB;AAClC,SAAS,aAAa,kBAAkB;AACxC,SAAS,iBAAiB,sBAAsB;AAChD,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,gBAAgB,qBAAqB;AAC9C,SAAS,iBAAiB,sBAAsB;AAQzC,MAAM,wBAAwB,KAAK;AAAA,EACxC,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,OAAO;AAAA;AAAA,IAEnB,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,UAAU;AAAA;AAAA,IAEV,SAAS,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA;AAAA,IAE3C,eAAe,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC;AAAA;AAAA,IAEzE,SAAS;AAAA;AAAA,IAET,YAAY;AAAA;AAAA,IAEZ,UAAU;AAAA;AAAA,IAEV,MAAM;AAAA;AAAA,IAEN,aAAa,KAAK,MAAM,KAAK,MAAM,kBAAkB,IAAI,CAAC,WAAW,KAAK,QAAQ,MAAM,CAAC,CAAC,CAAC;AAAA,EAC7F,CAAC;AACH;AAIO,MAAM,yBAAwE;AAAA,EACnF,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,eAAe;AAAA;AAAA;AAAA;AAAA,EAKf,UAAU;AAAA;AAAA;AAAA;AAAA,EAKV,SAAS;AAAA;AAAA;AAAA;AAAA,EAIT,YAAY;AAAA;AAAA;AAAA;AAAA,EAKZ,UAAU;AAAA;AAAA;AAAA;AAAA,EAKV,MAAM;AAAA;AAAA;AAAA;AAAA,EAKN,aAAa;AACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const MetaSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
4
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
ogTitle: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
ogDescription: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
+
ogImage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
|
+
twitterCard: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
}>;
|
|
10
|
+
export type Meta = Static<typeof MetaSchema>;
|
|
11
|
+
export declare const defaultMeta: Required<Meta>;
|
|
12
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,UAAU;;;;;;;EAStB,CAAA;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAA;AAE5C,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,IAAI,CAOtC,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const MetaSchema = Type.Partial(
|
|
3
|
+
Type.Object({
|
|
4
|
+
title: Type.String(),
|
|
5
|
+
description: Type.String(),
|
|
6
|
+
ogTitle: Type.String(),
|
|
7
|
+
ogDescription: Type.String(),
|
|
8
|
+
ogImage: Type.String(),
|
|
9
|
+
twitterCard: Type.String()
|
|
10
|
+
})
|
|
11
|
+
);
|
|
12
|
+
const defaultMeta = {
|
|
13
|
+
title: "Scalar API Reference",
|
|
14
|
+
description: "Scalar API Reference",
|
|
15
|
+
ogTitle: "Scalar API Reference",
|
|
16
|
+
ogDescription: "Scalar API Reference",
|
|
17
|
+
ogImage: "https://scalar.com/images/scalar-logo.png",
|
|
18
|
+
twitterCard: "summary_large_image"
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
MetaSchema,
|
|
22
|
+
defaultMeta
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/schemas/reference-config/meta.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\nexport const MetaSchema = Type.Partial(\n Type.Object({\n title: Type.String(),\n description: Type.String(),\n ogTitle: Type.String(),\n ogDescription: Type.String(),\n ogImage: Type.String(),\n twitterCard: Type.String(),\n }),\n)\n\nexport type Meta = Static<typeof MetaSchema>\n\nexport const defaultMeta: Required<Meta> = {\n title: 'Scalar API Reference',\n description: 'Scalar API Reference',\n ogTitle: 'Scalar API Reference',\n ogDescription: 'Scalar API Reference',\n ogImage: 'https://scalar.com/images/scalar-logo.png',\n twitterCard: 'summary_large_image',\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAE3B,MAAM,aAAa,KAAK;AAAA,EAC7B,KAAK,OAAO;AAAA,IACV,OAAO,KAAK,OAAO;AAAA,IACnB,aAAa,KAAK,OAAO;AAAA,IACzB,SAAS,KAAK,OAAO;AAAA,IACrB,eAAe,KAAK,OAAO;AAAA,IAC3B,SAAS,KAAK,OAAO;AAAA,IACrB,aAAa,KAAK,OAAO;AAAA,EAC3B,CAAC;AACH;AAIO,MAAM,cAA8B;AAAA,EACzC,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,EACT,eAAe;AAAA,EACf,SAAS;AAAA,EACT,aAAa;AACf;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const RoutingSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
basePath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
4
|
+
pathNotFound: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
}>;
|
|
6
|
+
export type Routing = Static<typeof RoutingSchema>;
|
|
7
|
+
export declare const defaultRouting: Required<Routing>;
|
|
8
|
+
//# sourceMappingURL=routing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,aAAa;;;EAKzB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAA;AAElD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,OAAO,CAG5C,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const RoutingSchema = Type.Partial(
|
|
3
|
+
Type.Object({
|
|
4
|
+
basePath: Type.String(),
|
|
5
|
+
pathNotFound: Type.String()
|
|
6
|
+
})
|
|
7
|
+
);
|
|
8
|
+
const defaultRouting = {
|
|
9
|
+
basePath: "/",
|
|
10
|
+
pathNotFound: "/"
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
RoutingSchema,
|
|
14
|
+
defaultRouting
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=routing.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/schemas/reference-config/routing.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\nexport const RoutingSchema = Type.Partial(\n Type.Object({\n basePath: Type.String(),\n pathNotFound: Type.String(),\n }),\n)\n\nexport type Routing = Static<typeof RoutingSchema>\n\nexport const defaultRouting: Required<Routing> = {\n basePath: '/',\n pathNotFound: '/',\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAE3B,MAAM,gBAAgB,KAAK;AAAA,EAChC,KAAK,OAAO;AAAA,IACV,UAAU,KAAK,OAAO;AAAA,IACtB,cAAc,KAAK,OAAO;AAAA,EAC5B,CAAC;AACH;AAIO,MAAM,iBAAoC;AAAA,EAC/C,UAAU;AAAA,EACV,cAAc;AAChB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const SettingsSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
proxyUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
4
|
+
searchKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
}>;
|
|
6
|
+
export type Settings = Static<typeof SettingsSchema>;
|
|
7
|
+
export declare const defaultSettings: Required<Settings>;
|
|
8
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,cAAc;;;EAK1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,QAAQ,CAG9C,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const SettingsSchema = Type.Partial(
|
|
3
|
+
Type.Object({
|
|
4
|
+
proxyUrl: Type.String(),
|
|
5
|
+
searchKey: Type.String()
|
|
6
|
+
})
|
|
7
|
+
);
|
|
8
|
+
const defaultSettings = {
|
|
9
|
+
proxyUrl: "https://proxy.scalar.com",
|
|
10
|
+
searchKey: "k"
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
SettingsSchema,
|
|
14
|
+
defaultSettings
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/schemas/reference-config/settings.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\nexport const SettingsSchema = Type.Partial(\n Type.Object({\n proxyUrl: Type.String(),\n searchKey: Type.String(),\n }),\n)\n\nexport type Settings = Static<typeof SettingsSchema>\n\nexport const defaultSettings: Required<Settings> = {\n proxyUrl: 'https://proxy.scalar.com',\n searchKey: 'k',\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAE3B,MAAM,iBAAiB,KAAK;AAAA,EACjC,KAAK,OAAO;AAAA,IACV,UAAU,KAAK,OAAO;AAAA,IACtB,WAAW,KAAK,OAAO;AAAA,EACzB,CAAC;AACH;AAIO,MAAM,kBAAsC;AAAA,EACjD,UAAU;AAAA,EACV,WAAW;AACb;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type } from "@sinclair/typebox";
|
|
2
2
|
import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
|
|
3
|
-
import { compose } from "../../../schemas/
|
|
3
|
+
import { compose } from "../../../schemas/compose.js";
|
|
4
4
|
const callbackObjectSchemaBuilder = (pathItem) => compose(
|
|
5
5
|
Type.Record(
|
|
6
6
|
Type.String(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/callback.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/
|
|
4
|
+
"sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\n\nexport const callbackObjectSchemaBuilder = <P extends TSchema>(pathItem: P) =>\n compose(\n Type.Record(\n Type.String(),\n /** A Path Item Object used to define a callback request and expected responses. A complete example is available. */\n pathItem,\n ),\n ExtensionsSchema,\n )\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,8BAA8B,CAAoB,aAC7D;AAAA,EACE,KAAK;AAAA,IACH,KAAK,OAAO;AAAA;AAAA,IAEZ;AAAA,EACF;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const xScalarClientConfigCookieSchema: import("@sinclair/typebox").TObject<{
|
|
3
|
+
name: import("@sinclair/typebox").TString;
|
|
4
|
+
value: import("@sinclair/typebox").TString;
|
|
5
|
+
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
|
+
}>;
|
|
8
|
+
export type XScalarClientConfigCookie = Static<typeof xScalarClientConfigCookieSchema>;
|
|
9
|
+
export declare const xScalarClientConfigCookiesSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
10
|
+
name: import("@sinclair/typebox").TString;
|
|
11
|
+
value: import("@sinclair/typebox").TString;
|
|
12
|
+
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
}>>;
|
|
15
|
+
export type XScalarClientConfigCookies = Static<typeof xScalarClientConfigCookiesSchema>;
|
|
16
|
+
//# sourceMappingURL=x-scalar-client-config-cookies.d.ts.map
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-scalar-client-config-cookies.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,+BAA+B;;;;;EAK1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEtF,eAAO,MAAM,gCAAgC;;;;;GAA8D,CAAA;AAC3G,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,gCAAgC,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const xScalarClientConfigCookieSchema = Type.Object({
|
|
3
|
+
name: Type.String(),
|
|
4
|
+
value: Type.String(),
|
|
5
|
+
domain: Type.Optional(Type.String()),
|
|
6
|
+
path: Type.Optional(Type.String())
|
|
7
|
+
});
|
|
8
|
+
const xScalarClientConfigCookiesSchema = Type.Record(Type.String(), xScalarClientConfigCookieSchema);
|
|
9
|
+
export {
|
|
10
|
+
xScalarClientConfigCookieSchema,
|
|
11
|
+
xScalarClientConfigCookiesSchema
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=x-scalar-client-config-cookies.js.map
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\nexport const xScalarClientConfigCookieSchema = Type.Object({\n name: Type.String(),\n value: Type.String(),\n domain: Type.Optional(Type.String()),\n path: Type.Optional(Type.String()),\n})\n\nexport type XScalarClientConfigCookie = Static<typeof xScalarClientConfigCookieSchema>\n\nexport const xScalarClientConfigCookiesSchema = Type.Record(Type.String(), xScalarClientConfigCookieSchema)\nexport type XScalarClientConfigCookies = Static<typeof xScalarClientConfigCookiesSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAE3B,MAAM,kCAAkC,KAAK,OAAO;AAAA,EACzD,MAAM,KAAK,OAAO;AAAA,EAClB,OAAO,KAAK,OAAO;AAAA,EACnB,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACnC,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AACnC,CAAC;AAIM,MAAM,mCAAmC,KAAK,OAAO,KAAK,OAAO,GAAG,+BAA+B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const xScalarClientConfigEnvVarSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
3
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
4
|
+
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
}>, import("@sinclair/typebox").TString]>;
|
|
6
|
+
export type xScalarClientConfigEnvVar = Static<typeof xScalarClientConfigEnvVarSchema>;
|
|
7
|
+
export declare const xScalarClientConfigEnvironmentSchema: import("@sinclair/typebox").TObject<{
|
|
8
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
|
+
color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
/** A map of variables by name */
|
|
11
|
+
variables: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
12
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
}>, import("@sinclair/typebox").TString]>>;
|
|
15
|
+
}>;
|
|
16
|
+
export type xScalarClientConfigEnvironment = Static<typeof xScalarClientConfigEnvironmentSchema>;
|
|
17
|
+
export declare const xScalarClientConfigEnvironmentsSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
18
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
+
/** A map of variables by name */
|
|
21
|
+
variables: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
22
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
|
+
default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
}>, import("@sinclair/typebox").TString]>>;
|
|
25
|
+
}>>;
|
|
26
|
+
export type XScalarClientConfigEnvironments = Static<typeof xScalarClientConfigEnvironmentsSchema>;
|
|
27
|
+
//# sourceMappingURL=x-scalar-client-config-environments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-scalar-client-config-environments.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,+BAA+B;;;yCAQ1C,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEtF,eAAO,MAAM,oCAAoC;;;IAG/C,iCAAiC;;;;;EAEjC,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAEhG,eAAO,MAAM,qCAAqC;;;IANhD,iCAAiC;;;;;GAMkF,CAAA;AAErH,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,OAAO,qCAAqC,CAAC,CAAA"}
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
const xScalarClientConfigEnvVarSchema = Type.Union([
|
|
3
|
+
Type.Partial(
|
|
4
|
+
Type.Object({
|
|
5
|
+
description: Type.String(),
|
|
6
|
+
default: Type.String()
|
|
7
|
+
})
|
|
8
|
+
),
|
|
9
|
+
Type.String()
|
|
10
|
+
]);
|
|
11
|
+
const xScalarClientConfigEnvironmentSchema = Type.Object({
|
|
12
|
+
description: Type.Optional(Type.String()),
|
|
13
|
+
color: Type.Optional(Type.String()),
|
|
14
|
+
/** A map of variables by name */
|
|
15
|
+
variables: Type.Record(Type.String(), xScalarClientConfigEnvVarSchema)
|
|
16
|
+
});
|
|
17
|
+
const xScalarClientConfigEnvironmentsSchema = Type.Record(Type.String(), xScalarClientConfigEnvironmentSchema);
|
|
18
|
+
export {
|
|
19
|
+
xScalarClientConfigEnvVarSchema,
|
|
20
|
+
xScalarClientConfigEnvironmentSchema,
|
|
21
|
+
xScalarClientConfigEnvironmentsSchema
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=x-scalar-client-config-environments.js.map
|
package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\nexport const xScalarClientConfigEnvVarSchema = Type.Union([\n Type.Partial(\n Type.Object({\n description: Type.String(),\n default: Type.String(),\n }),\n ),\n Type.String(),\n])\n\nexport type xScalarClientConfigEnvVar = Static<typeof xScalarClientConfigEnvVarSchema>\n\nexport const xScalarClientConfigEnvironmentSchema = Type.Object({\n description: Type.Optional(Type.String()),\n color: Type.Optional(Type.String()),\n /** A map of variables by name */\n variables: Type.Record(Type.String(), xScalarClientConfigEnvVarSchema),\n})\n\nexport type xScalarClientConfigEnvironment = Static<typeof xScalarClientConfigEnvironmentSchema>\n\nexport const xScalarClientConfigEnvironmentsSchema = Type.Record(Type.String(), xScalarClientConfigEnvironmentSchema)\n\nexport type XScalarClientConfigEnvironments = Static<typeof xScalarClientConfigEnvironmentsSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAyB;AAE3B,MAAM,kCAAkC,KAAK,MAAM;AAAA,EACxD,KAAK;AAAA,IACH,KAAK,OAAO;AAAA,MACV,aAAa,KAAK,OAAO;AAAA,MACzB,SAAS,KAAK,OAAO;AAAA,IACvB,CAAC;AAAA,EACH;AAAA,EACA,KAAK,OAAO;AACd,CAAC;AAIM,MAAM,uCAAuC,KAAK,OAAO;AAAA,EAC9D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACxC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAElC,WAAW,KAAK,OAAO,KAAK,OAAO,GAAG,+BAA+B;AACvE,CAAC;AAIM,MAAM,wCAAwC,KAAK,OAAO,KAAK,OAAO,GAAG,oCAAoC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type Static } from '@sinclair/typebox';
|
|
2
|
+
export declare const exampleBodyMime: readonly ["application/json", "text/plain", "text/html", "application/javascript", "application/xml", "application/yaml", "application/edn", "application/octet-stream", "application/x-www-form-urlencoded", "multipart/form-data", "binary"];
|
|
3
|
+
declare const xScalarFileValueSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
4
|
+
url: import("@sinclair/typebox").TString;
|
|
5
|
+
base64: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
7
|
+
export type XScalarFileValue = Static<typeof xScalarFileValueSchema>;
|
|
8
|
+
declare const xScalarExampleBodySchema: import("@sinclair/typebox").TObject<{
|
|
9
|
+
encoding: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary">[]>;
|
|
10
|
+
content: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>, import("@sinclair/typebox").TString]>;
|
|
11
|
+
file: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
12
|
+
url: import("@sinclair/typebox").TString;
|
|
13
|
+
base64: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
}>, import("@sinclair/typebox").TNull]>>;
|
|
15
|
+
}>;
|
|
16
|
+
export type XScalarExampleBody = Static<typeof xScalarExampleBodySchema>;
|
|
17
|
+
declare const xScalarExampleParameterSchema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
18
|
+
export type XScalarExampleParameter = Static<typeof xScalarExampleParameterSchema>;
|
|
19
|
+
export declare const xScalarClientConfigRequestExampleSchema: import("@sinclair/typebox").TObject<{
|
|
20
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
|
+
body: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
22
|
+
encoding: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary">[]>;
|
|
23
|
+
content: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>, import("@sinclair/typebox").TString]>;
|
|
24
|
+
file: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
25
|
+
url: import("@sinclair/typebox").TString;
|
|
26
|
+
base64: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
27
|
+
}>, import("@sinclair/typebox").TNull]>>;
|
|
28
|
+
}>>;
|
|
29
|
+
parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
30
|
+
path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
31
|
+
query: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
32
|
+
header: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
33
|
+
cookie: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
34
|
+
}>>;
|
|
35
|
+
}>;
|
|
36
|
+
export type XScalarClientConfigRequestExample = Static<typeof xScalarClientConfigRequestExampleSchema>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=x-scalar-client-config-request-example.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-scalar-client-config-request-example.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,eAAe,gPAalB,CAAA;AAEV,QAAA,MAAM,sBAAsB;;;uCAM1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpE,QAAA,MAAM,wBAAwB;;;;;;;EAI5B,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAExE,QAAA,MAAM,6BAA6B,sJAA2D,CAAA;AAE9F,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAElF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;EAWnD,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG,MAAM,CAAC,OAAO,uCAAuC,CAAC,CAAA"}
|