@scalar/workspace-store 0.1.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 (198) hide show
  1. package/.turbo/turbo-build.log +10 -0
  2. package/CHANGELOG.md +13 -0
  3. package/README.md +199 -0
  4. package/dist/create-server-workspace-store.d.ts +151 -0
  5. package/dist/create-server-workspace-store.d.ts.map +1 -0
  6. package/dist/create-server-workspace-store.js +199 -0
  7. package/dist/create-server-workspace-store.js.map +7 -0
  8. package/dist/create-workspace-store.d.ts +19773 -0
  9. package/dist/create-workspace-store.d.ts.map +1 -0
  10. package/dist/create-workspace-store.js +186 -0
  11. package/dist/create-workspace-store.js.map +7 -0
  12. package/dist/helpers/general.d.ts +88 -0
  13. package/dist/helpers/general.d.ts.map +1 -0
  14. package/dist/helpers/general.js +38 -0
  15. package/dist/helpers/general.js.map +7 -0
  16. package/dist/helpers/json-path-utils.d.ts +23 -0
  17. package/dist/helpers/json-path-utils.d.ts.map +1 -0
  18. package/dist/helpers/json-path-utils.js +16 -0
  19. package/dist/helpers/json-path-utils.js.map +7 -0
  20. package/dist/helpers/proxy.d.ts +63 -0
  21. package/dist/helpers/proxy.d.ts.map +1 -0
  22. package/dist/helpers/proxy.js +100 -0
  23. package/dist/helpers/proxy.js.map +7 -0
  24. package/dist/index.d.ts +4 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +13 -0
  27. package/dist/index.js.map +7 -0
  28. package/dist/schemas/callback.d.ts +1095 -0
  29. package/dist/schemas/callback.d.ts.map +1 -0
  30. package/dist/schemas/callback.js +11 -0
  31. package/dist/schemas/callback.js.map +7 -0
  32. package/dist/schemas/components.d.ts +2461 -0
  33. package/dist/schemas/components.d.ts.map +1 -0
  34. package/dist/schemas/components.js +38 -0
  35. package/dist/schemas/components.js.map +7 -0
  36. package/dist/schemas/contact.d.ts +10 -0
  37. package/dist/schemas/contact.d.ts.map +1 -0
  38. package/dist/schemas/contact.js +13 -0
  39. package/dist/schemas/contact.js.map +7 -0
  40. package/dist/schemas/discriminator.d.ts +12 -0
  41. package/dist/schemas/discriminator.d.ts.map +1 -0
  42. package/dist/schemas/discriminator.js +11 -0
  43. package/dist/schemas/discriminator.js.map +7 -0
  44. package/dist/schemas/encoding.d.ts +23 -0
  45. package/dist/schemas/encoding.d.ts.map +1 -0
  46. package/dist/schemas/encoding.js +13 -0
  47. package/dist/schemas/encoding.js.map +7 -0
  48. package/dist/schemas/example.d.ts +16 -0
  49. package/dist/schemas/example.d.ts.map +1 -0
  50. package/dist/schemas/example.js +15 -0
  51. package/dist/schemas/example.js.map +7 -0
  52. package/dist/schemas/external-documentation.d.ts +8 -0
  53. package/dist/schemas/external-documentation.d.ts.map +1 -0
  54. package/dist/schemas/external-documentation.js +11 -0
  55. package/dist/schemas/external-documentation.js.map +7 -0
  56. package/dist/schemas/header.d.ts +18 -0
  57. package/dist/schemas/header.d.ts.map +1 -0
  58. package/dist/schemas/header.js +13 -0
  59. package/dist/schemas/header.js.map +7 -0
  60. package/dist/schemas/info.d.ts +28 -0
  61. package/dist/schemas/info.d.ts.map +1 -0
  62. package/dist/schemas/info.js +23 -0
  63. package/dist/schemas/info.js.map +7 -0
  64. package/dist/schemas/license.d.ts +10 -0
  65. package/dist/schemas/license.d.ts.map +1 -0
  66. package/dist/schemas/license.js +13 -0
  67. package/dist/schemas/license.js.map +7 -0
  68. package/dist/schemas/link.d.ts +30 -0
  69. package/dist/schemas/link.d.ts.map +1 -0
  70. package/dist/schemas/link.js +20 -0
  71. package/dist/schemas/link.js.map +7 -0
  72. package/dist/schemas/media-type.d.ts +55 -0
  73. package/dist/schemas/media-type.d.ts.map +1 -0
  74. package/dist/schemas/media-type.js +19 -0
  75. package/dist/schemas/media-type.js.map +7 -0
  76. package/dist/schemas/oauth-flow.d.ts +12 -0
  77. package/dist/schemas/oauth-flow.d.ts.map +1 -0
  78. package/dist/schemas/oauth-flow.js +15 -0
  79. package/dist/schemas/oauth-flow.js.map +7 -0
  80. package/dist/schemas/oauthflows.d.ts +34 -0
  81. package/dist/schemas/oauthflows.d.ts.map +1 -0
  82. package/dist/schemas/oauthflows.js +16 -0
  83. package/dist/schemas/oauthflows.js.map +7 -0
  84. package/dist/schemas/openapi-document.d.ts +4683 -0
  85. package/dist/schemas/openapi-document.d.ts.map +1 -0
  86. package/dist/schemas/openapi-document.js +35 -0
  87. package/dist/schemas/openapi-document.js.map +7 -0
  88. package/dist/schemas/operation-without-callback.d.ts +190 -0
  89. package/dist/schemas/operation-without-callback.d.ts.map +1 -0
  90. package/dist/schemas/operation-without-callback.js +39 -0
  91. package/dist/schemas/operation-without-callback.js.map +7 -0
  92. package/dist/schemas/parameter.d.ts +25 -0
  93. package/dist/schemas/parameter.d.ts.map +1 -0
  94. package/dist/schemas/parameter.js +22 -0
  95. package/dist/schemas/parameter.js.map +7 -0
  96. package/dist/schemas/path-item.d.ts +1106 -0
  97. package/dist/schemas/path-item.d.ts.map +1 -0
  98. package/dist/schemas/path-item.js +37 -0
  99. package/dist/schemas/path-item.js.map +7 -0
  100. package/dist/schemas/paths.d.ts +1093 -0
  101. package/dist/schemas/paths.d.ts.map +1 -0
  102. package/dist/schemas/paths.js +11 -0
  103. package/dist/schemas/paths.js.map +7 -0
  104. package/dist/schemas/reference.d.ts +17 -0
  105. package/dist/schemas/reference.d.ts.map +1 -0
  106. package/dist/schemas/reference.js +15 -0
  107. package/dist/schemas/reference.js.map +7 -0
  108. package/dist/schemas/request-body.d.ts +54 -0
  109. package/dist/schemas/request-body.d.ts.map +1 -0
  110. package/dist/schemas/request-body.js +14 -0
  111. package/dist/schemas/request-body.js.map +7 -0
  112. package/dist/schemas/response.d.ts +84 -0
  113. package/dist/schemas/response.d.ts.map +1 -0
  114. package/dist/schemas/response.js +19 -0
  115. package/dist/schemas/response.js.map +7 -0
  116. package/dist/schemas/responses.d.ts +94 -0
  117. package/dist/schemas/responses.d.ts.map +1 -0
  118. package/dist/schemas/responses.js +8 -0
  119. package/dist/schemas/responses.js.map +7 -0
  120. package/dist/schemas/schema.d.ts +34 -0
  121. package/dist/schemas/schema.d.ts.map +1 -0
  122. package/dist/schemas/schema.js +22 -0
  123. package/dist/schemas/schema.js.map +7 -0
  124. package/dist/schemas/security-requirement.d.ts +11 -0
  125. package/dist/schemas/security-requirement.d.ts.map +1 -0
  126. package/dist/schemas/security-requirement.js +10 -0
  127. package/dist/schemas/security-requirement.js.map +7 -0
  128. package/dist/schemas/security-scheme.d.ts +137 -0
  129. package/dist/schemas/security-scheme.d.ts.map +1 -0
  130. package/dist/schemas/security-scheme.js +56 -0
  131. package/dist/schemas/security-scheme.js.map +7 -0
  132. package/dist/schemas/server-variable.d.ts +10 -0
  133. package/dist/schemas/server-variable.d.ts.map +1 -0
  134. package/dist/schemas/server-variable.js +13 -0
  135. package/dist/schemas/server-variable.js.map +7 -0
  136. package/dist/schemas/server-workspace.d.ts +14043 -0
  137. package/dist/schemas/server-workspace.d.ts.map +1 -0
  138. package/dist/schemas/server-workspace.js +29 -0
  139. package/dist/schemas/server-workspace.js.map +7 -0
  140. package/dist/schemas/server.d.ts +14 -0
  141. package/dist/schemas/server.d.ts.map +1 -0
  142. package/dist/schemas/server.js +14 -0
  143. package/dist/schemas/server.js.map +7 -0
  144. package/dist/schemas/tag.d.ts +13 -0
  145. package/dist/schemas/tag.d.ts.map +1 -0
  146. package/dist/schemas/tag.js +14 -0
  147. package/dist/schemas/tag.js.map +7 -0
  148. package/dist/schemas/xml.d.ts +18 -0
  149. package/dist/schemas/xml.d.ts.map +1 -0
  150. package/dist/schemas/xml.js +17 -0
  151. package/dist/schemas/xml.js.map +7 -0
  152. package/esbuild.ts +6 -0
  153. package/package.json +54 -0
  154. package/src/create-server-workspace-store.test.ts +429 -0
  155. package/src/create-server-workspace-store.ts +339 -0
  156. package/src/create-workspace-store.test.ts +488 -0
  157. package/src/create-workspace-store.ts +282 -0
  158. package/src/helpers/general.ts +115 -0
  159. package/src/helpers/json-path-utils.test.ts +13 -0
  160. package/src/helpers/json-path-utils.ts +38 -0
  161. package/src/helpers/proxy.test.ts +61 -0
  162. package/src/helpers/proxy.ts +213 -0
  163. package/src/index.ts +8 -0
  164. package/src/schemas/callback.ts +13 -0
  165. package/src/schemas/components.ts +36 -0
  166. package/src/schemas/contact.ts +11 -0
  167. package/src/schemas/discriminator.ts +13 -0
  168. package/src/schemas/encoding.ts +17 -0
  169. package/src/schemas/example.ts +17 -0
  170. package/src/schemas/external-documentation.ts +9 -0
  171. package/src/schemas/header.ts +19 -0
  172. package/src/schemas/info.ts +23 -0
  173. package/src/schemas/license.ts +11 -0
  174. package/src/schemas/link.ts +24 -0
  175. package/src/schemas/media-type.ts +21 -0
  176. package/src/schemas/oauth-flow.ts +13 -0
  177. package/src/schemas/oauthflows.ts +16 -0
  178. package/src/schemas/openapi-document.ts +34 -0
  179. package/src/schemas/operation-without-callback.ts +37 -0
  180. package/src/schemas/parameter.ts +26 -0
  181. package/src/schemas/path-item.ts +35 -0
  182. package/src/schemas/paths.ts +11 -0
  183. package/src/schemas/reference.ts +18 -0
  184. package/src/schemas/request-body.ts +12 -0
  185. package/src/schemas/response.ts +16 -0
  186. package/src/schemas/responses.ts +14 -0
  187. package/src/schemas/schema.ts +26 -0
  188. package/src/schemas/security-requirement.ts +16 -0
  189. package/src/schemas/security-scheme.ts +58 -0
  190. package/src/schemas/server-variable.ts +11 -0
  191. package/src/schemas/server-workspace.ts +36 -0
  192. package/src/schemas/server.ts +12 -0
  193. package/src/schemas/tag.ts +12 -0
  194. package/src/schemas/xml.ts +19 -0
  195. package/test/helpers.ts +16 -0
  196. package/tsconfig.build.json +12 -0
  197. package/tsconfig.json +8 -0
  198. package/vite.config.ts +9 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/server-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAA;AAGrD,QAAA,MAAM,2BAA2B;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G,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { OpenAPIDocumentSchema } from "./openapi-document.js";
3
+ const WorkspaceDocumentMetaSchema = Type.Partial(
4
+ Type.Object({
5
+ "x-scalar-active-auth": Type.String(),
6
+ "x-scalar-active-server": Type.String()
7
+ })
8
+ );
9
+ const WorkspaceDocumentSchema = Type.Intersect([WorkspaceDocumentMetaSchema, OpenAPIDocumentSchema]);
10
+ const WorkspaceMetaSchema = Type.Partial(
11
+ Type.Object({
12
+ "x-scalar-dark-mode": Type.Boolean(),
13
+ "x-scalar-default-client": Type.String(),
14
+ "x-scalar-active-document": Type.String(),
15
+ "x-scalar-theme": Type.String()
16
+ })
17
+ );
18
+ const WorkspaceSchema = Type.Intersect([
19
+ WorkspaceMetaSchema,
20
+ Type.Object({
21
+ documents: Type.Record(Type.String(), Type.Partial(WorkspaceDocumentSchema)),
22
+ activeDocument: Type.Partial(WorkspaceDocumentSchema)
23
+ })
24
+ ]);
25
+ export {
26
+ WorkspaceDocumentSchema,
27
+ WorkspaceSchema
28
+ };
29
+ //# sourceMappingURL=server-workspace.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/server-workspace.ts"],
4
+ "sourcesContent": ["import { type Static, Type } from '@sinclair/typebox'\nimport { OpenAPIDocumentSchema } from './openapi-document'\n\nconst WorkspaceDocumentMetaSchema = Type.Partial(\n Type.Object({\n 'x-scalar-active-auth': Type.String(),\n 'x-scalar-active-server': Type.String(),\n }),\n)\n\nexport type WorkspaceDocumentMeta = Static<typeof WorkspaceDocumentMetaSchema>\n\nexport const WorkspaceDocumentSchema = Type.Intersect([WorkspaceDocumentMetaSchema, OpenAPIDocumentSchema])\n\nexport type WorkspaceDocument = Static<typeof WorkspaceDocumentSchema>\n\nconst WorkspaceMetaSchema = Type.Partial(\n Type.Object({\n 'x-scalar-dark-mode': Type.Boolean(),\n 'x-scalar-default-client': Type.String(),\n 'x-scalar-active-document': Type.String(),\n 'x-scalar-theme': Type.String(),\n }),\n)\n\nexport type WorkspaceMeta = Static<typeof WorkspaceMetaSchema>\n\nexport const WorkspaceSchema = Type.Intersect([\n WorkspaceMetaSchema,\n Type.Object({\n documents: Type.Record(Type.String(), Type.Partial(WorkspaceDocumentSchema)),\n activeDocument: Type.Partial(WorkspaceDocumentSchema),\n }),\n])\n\nexport type Workspace = Static<typeof WorkspaceSchema>\n"],
5
+ "mappings": "AAAA,SAAsB,YAAY;AAClC,SAAS,6BAA6B;AAEtC,MAAM,8BAA8B,KAAK;AAAA,EACvC,KAAK,OAAO;AAAA,IACV,wBAAwB,KAAK,OAAO;AAAA,IACpC,0BAA0B,KAAK,OAAO;AAAA,EACxC,CAAC;AACH;AAIO,MAAM,0BAA0B,KAAK,UAAU,CAAC,6BAA6B,qBAAqB,CAAC;AAI1G,MAAM,sBAAsB,KAAK;AAAA,EAC/B,KAAK,OAAO;AAAA,IACV,sBAAsB,KAAK,QAAQ;AAAA,IACnC,2BAA2B,KAAK,OAAO;AAAA,IACvC,4BAA4B,KAAK,OAAO;AAAA,IACxC,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AACH;AAIO,MAAM,kBAAkB,KAAK,UAAU;AAAA,EAC5C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,WAAW,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,QAAQ,uBAAuB,CAAC;AAAA,IAC3E,gBAAgB,KAAK,QAAQ,uBAAuB;AAAA,EACtD,CAAC;AACH,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ /** An object representing a Server. */
2
+ export declare const ServerObject: import("@sinclair/typebox").TObject<{
3
+ /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
4
+ url: import("@sinclair/typebox").TString;
5
+ /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
6
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
+ /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
8
+ variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
9
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
10
+ default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
12
+ }>>>;
13
+ }>;
14
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/schemas/server.ts"],"names":[],"mappings":"AAGA,uCAAuC;AACvC,eAAO,MAAM,YAAY;IACvB,4SAA4S;;IAE5S,gIAAgI;;IAEhI,oHAAoH;;;;;;EAEpH,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { ServerVariableObject } from "./server-variable.js";
3
+ const ServerObject = Type.Object({
4
+ /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
5
+ url: Type.String(),
6
+ /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
7
+ description: Type.Optional(Type.String()),
8
+ /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
9
+ variables: Type.Optional(Type.Record(Type.String(), ServerVariableObject))
10
+ });
11
+ export {
12
+ ServerObject
13
+ };
14
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/server.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { ServerVariableObject } from './server-variable'\n\n/** An object representing a Server. */\nexport const ServerObject = Type.Object({\n /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */\n url: Type.String(),\n /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */\n variables: Type.Optional(Type.Record(Type.String(), ServerVariableObject)),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,4BAA4B;AAG9B,MAAM,eAAe,KAAK,OAAO;AAAA;AAAA,EAEtC,KAAK,KAAK,OAAO;AAAA;AAAA,EAEjB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,oBAAoB,CAAC;AAC3E,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,13 @@
1
+ /** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */
2
+ export declare const TagObject: import("@sinclair/typebox").TObject<{
3
+ /** REQUIRED. The name of the tag. */
4
+ name: import("@sinclair/typebox").TString;
5
+ /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
6
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
+ /** Additional external documentation for this tag. */
8
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
9
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
+ url: import("@sinclair/typebox").TString;
11
+ }>>;
12
+ }>;
13
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/schemas/tag.ts"],"names":[],"mappings":"AAGA,sKAAsK;AACtK,eAAO,MAAM,SAAS;IACpB,qCAAqC;;IAErC,6FAA6F;;IAE7F,sDAAsD;;;;;EAEtD,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { ExternalDocumentationObject } from "./external-documentation.js";
3
+ const TagObject = Type.Object({
4
+ /** REQUIRED. The name of the tag. */
5
+ name: Type.String(),
6
+ /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
7
+ description: Type.Optional(Type.String()),
8
+ /** Additional external documentation for this tag. */
9
+ externalDocs: Type.Optional(ExternalDocumentationObject)
10
+ });
11
+ export {
12
+ TagObject
13
+ };
14
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/tag.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { ExternalDocumentationObject } from './external-documentation'\n\n/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */\nexport const TagObject = Type.Object({\n /** REQUIRED. The name of the tag. */\n name: Type.String(),\n /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this tag. */\n externalDocs: Type.Optional(ExternalDocumentationObject),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,mCAAmC;AAGrC,MAAM,YAAY,KAAK,OAAO;AAAA;AAAA,EAEnC,MAAM,KAAK,OAAO;AAAA;AAAA,EAElB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,cAAc,KAAK,SAAS,2BAA2B;AACzD,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * A metadata object that allows for more fine-tuned XML model definitions.
3
+ *
4
+ * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used to add that information. See examples for expected behavior.
5
+ */
6
+ export declare const XMLObject: import("@sinclair/typebox").TObject<{
7
+ /** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
8
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
+ /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
10
+ namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
+ /** The prefix to be used for the name. */
12
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
+ /** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */
14
+ attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15
+ /** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). */
16
+ wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17
+ }>;
18
+ //# sourceMappingURL=xml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../src/schemas/xml.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,SAAS;IACpB,wWAAwW;;IAExW,4FAA4F;;IAE5F,0CAA0C;;IAE1C,yHAAyH;;IAEzH,2RAA2R;;EAE3R,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XMLObject = Type.Object({
3
+ /** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
4
+ name: Type.Optional(Type.String()),
5
+ /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
6
+ namespace: Type.Optional(Type.String()),
7
+ /** The prefix to be used for the name. */
8
+ prefix: Type.Optional(Type.String()),
9
+ /** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */
10
+ attribute: Type.Optional(Type.Boolean()),
11
+ /** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). */
12
+ wrapped: Type.Optional(Type.Boolean())
13
+ });
14
+ export {
15
+ XMLObject
16
+ };
17
+ //# sourceMappingURL=xml.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/xml.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * A metadata object that allows for more fine-tuned XML model definitions.\n *\n * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used to add that information. See examples for expected behavior.\n */\nexport const XMLObject = Type.Object({\n /** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being \"array\" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */\n name: Type.Optional(Type.String()),\n /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */\n namespace: Type.Optional(Type.String()),\n /** The prefix to be used for the name. */\n prefix: Type.Optional(Type.String()),\n /** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */\n attribute: Type.Optional(Type.Boolean()),\n /** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being \"array\" (outside the items). */\n wrapped: Type.Optional(Type.Boolean()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAOd,MAAM,YAAY,KAAK,OAAO;AAAA;AAAA,EAEnC,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEjC,WAAW,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEtC,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEnC,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,EAEvC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AACvC,CAAC;",
6
+ "names": []
7
+ }
package/esbuild.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { build } from '@scalar/build-tooling/esbuild'
2
+
3
+ build({
4
+ entries: 'auto',
5
+ platform: 'node',
6
+ })
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@scalar/workspace-store",
3
+ "description": "Store interface for openapi documents",
4
+ "license": "MIT",
5
+ "author": "Scalar (https://github.com/scalar)",
6
+ "homepage": "https://github.com/scalar/scalar",
7
+ "bugs": "https://github.com/scalar/scalar/issues/new/choose",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/scalar/scalar.git",
11
+ "directory": "packages/workspace-store"
12
+ },
13
+ "keywords": [
14
+ "workspace",
15
+ "store",
16
+ "openapi",
17
+ "scalar"
18
+ ],
19
+ "version": "0.1.0",
20
+ "engines": {
21
+ "node": ">=18"
22
+ },
23
+ "type": "module",
24
+ "exports": {
25
+ ".": {
26
+ "import": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ }
30
+ },
31
+ "dependencies": {
32
+ "@sinclair/typebox": "0.34.3",
33
+ "vue": "^3.5.12",
34
+ "@scalar/openapi-parser": "0.13.0",
35
+ "@scalar/openapi-types": "0.3.1"
36
+ },
37
+ "devDependencies": {
38
+ "vite": "5.4.19",
39
+ "vitest": "^1.6.0",
40
+ "fastify": "^4.26.2",
41
+ "@scalar/build-tooling": "0.2.1"
42
+ },
43
+ "scripts": {
44
+ "dev": "vite-node ./src/index.ts",
45
+ "build": "scalar-build-esbuild",
46
+ "format": "scalar-format",
47
+ "format:check": "scalar-format-check",
48
+ "lint:check": "eslint .",
49
+ "lint:fix": "eslint . --fix",
50
+ "test:unit": "vitest",
51
+ "types:build": "scalar-types-build",
52
+ "types:check": "scalar-types-check"
53
+ }
54
+ }