@scalar/workspace-store 0.6.0 → 0.7.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +47 -1
  3. package/dist/client.d.ts +11713 -11143
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +27 -2
  6. package/dist/client.js.map +2 -2
  7. package/dist/helpers/json-path-utils.d.ts +1 -1
  8. package/dist/helpers/json-path-utils.d.ts.map +1 -1
  9. package/dist/helpers/json-path-utils.js.map +2 -2
  10. package/dist/helpers/merge-object.d.ts +23 -0
  11. package/dist/helpers/merge-object.d.ts.map +1 -0
  12. package/dist/helpers/merge-object.js +20 -0
  13. package/dist/helpers/merge-object.js.map +7 -0
  14. package/dist/schemas/reference-config/appearance.d.ts +13 -0
  15. package/dist/schemas/reference-config/appearance.d.ts.map +1 -0
  16. package/dist/schemas/reference-config/appearance.js +26 -0
  17. package/dist/schemas/reference-config/appearance.js.map +7 -0
  18. package/dist/schemas/reference-config/features.d.ts +15 -0
  19. package/dist/schemas/reference-config/features.d.ts.map +1 -0
  20. package/dist/schemas/reference-config/features.js +30 -0
  21. package/dist/schemas/reference-config/features.js.map +7 -0
  22. package/dist/schemas/reference-config/index.d.ts +53 -0
  23. package/dist/schemas/reference-config/index.d.ts.map +1 -0
  24. package/dist/schemas/reference-config/index.js +66 -0
  25. package/dist/schemas/reference-config/index.js.map +7 -0
  26. package/dist/schemas/reference-config/meta.d.ts +12 -0
  27. package/dist/schemas/reference-config/meta.d.ts.map +1 -0
  28. package/dist/schemas/reference-config/meta.js +24 -0
  29. package/dist/schemas/reference-config/meta.js.map +7 -0
  30. package/dist/schemas/reference-config/routing.d.ts +8 -0
  31. package/dist/schemas/reference-config/routing.d.ts.map +1 -0
  32. package/dist/schemas/reference-config/routing.js +16 -0
  33. package/dist/schemas/reference-config/routing.js.map +7 -0
  34. package/dist/schemas/reference-config/settings.d.ts +8 -0
  35. package/dist/schemas/reference-config/settings.d.ts.map +1 -0
  36. package/dist/schemas/reference-config/settings.js +16 -0
  37. package/dist/schemas/reference-config/settings.js.map +7 -0
  38. package/dist/schemas/v3.1/strict/components.d.ts +167 -40
  39. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  40. package/dist/schemas/v3.1/strict/header.d.ts +2 -0
  41. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  42. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +6 -0
  43. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
  44. package/dist/schemas/v3.1/strict/media-type.d.ts +1 -0
  45. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
  46. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +73 -2
  47. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  48. package/dist/schemas/v3.1/strict/oauth-flow.js +44 -7
  49. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  50. package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -10
  51. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  52. package/dist/schemas/v3.1/strict/oauthflows.js +11 -8
  53. package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
  54. package/dist/schemas/v3.1/strict/operation.d.ts +11 -2
  55. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  56. package/dist/schemas/v3.1/strict/parameter.d.ts +11 -5
  57. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  58. package/dist/schemas/v3.1/strict/parameter.js +1 -1
  59. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  60. package/dist/schemas/v3.1/strict/path-item.d.ts +5 -2
  61. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  62. package/dist/schemas/v3.1/strict/path-operations.d.ts +158 -32
  63. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
  64. package/dist/schemas/v3.1/strict/paths.d.ts +71 -14
  65. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  66. package/dist/schemas/v3.1/strict/request-body.d.ts +2 -0
  67. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
  68. package/dist/schemas/v3.1/strict/response.d.ts +4 -0
  69. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
  70. package/dist/schemas/v3.1/strict/responses.d.ts +4 -0
  71. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
  72. package/dist/schemas/v3.1/strict/schema.d.ts +6 -1
  73. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  74. package/dist/schemas/v3.1/strict/schema.js +7 -2
  75. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  76. package/dist/schemas/v3.1/strict/security-scheme.d.ts +22 -20
  77. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  78. package/dist/schemas/v3.1/type-guard.d.ts +5 -0
  79. package/dist/schemas/v3.1/type-guard.d.ts.map +1 -1
  80. package/dist/schemas/v3.1/type-guard.js +1 -3
  81. package/dist/schemas/v3.1/type-guard.js.map +2 -2
  82. package/dist/server.d.ts +640 -614
  83. package/dist/server.d.ts.map +1 -1
  84. package/dist/types.d.ts +57 -0
  85. package/dist/types.d.ts.map +1 -0
  86. package/dist/types.js +1 -0
  87. package/dist/types.js.map +7 -0
  88. package/package.json +18 -6
@@ -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" | "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" | "shell/curl" | "shell/httpie" | "shell/wget" | "swift/nsurlsession" | "dart/http">[]>>>;
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
+ }