@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":"paths.d.ts","sourceRoot":"","sources":["../../src/schemas/paths.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIvB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { PathItemObject } from "./path-item.js";
3
+ const PathsObject = Type.Record(
4
+ Type.String({ pattern: "^/" }),
5
+ /** A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. */
6
+ PathItemObject
7
+ );
8
+ export {
9
+ PathsObject
10
+ };
11
+ //# sourceMappingURL=paths.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/paths.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { PathItemObject } from './path-item'\n\n/**\n * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL) constraints.\n */\nexport const PathsObject = Type.Record(\n Type.String({ pattern: '^/' }),\n /** A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. */\n PathItemObject,\n)\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAKxB,MAAM,cAAc,KAAK;AAAA,EAC9B,KAAK,OAAO,EAAE,SAAS,KAAK,CAAC;AAAA;AAAA,EAE7B;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.
3
+ *
4
+ * The $ref string value contains a URI RFC3986, which identifies the value being referenced.
5
+ *
6
+ * See the rules for resolving Relative References. */
7
+ export declare const ReferenceObject: import("@sinclair/typebox").TObject<{
8
+ /** REQUIRED. The reference identifier. This MUST be in the form of a URI. */
9
+ $ref: import("@sinclair/typebox").TString;
10
+ /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */
11
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
12
+ /** A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect. */
13
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
+ /** A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect. */
15
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
16
+ }>;
17
+ //# sourceMappingURL=reference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/schemas/reference.ts"],"names":[],"mappings":"AAEA;;;;;sDAKsD;AACtD,eAAO,MAAM,eAAe;IAC1B,6EAA6E;;IAE7E,0JAA0J;;IAE1J,sLAAsL;;IAEtL,oPAAoP;;EAEpP,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const ReferenceObject = Type.Object({
3
+ /** REQUIRED. The reference identifier. This MUST be in the form of a URI. */
4
+ "$ref": Type.String(),
5
+ /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */
6
+ "$status": Type.Optional(Type.Union([Type.Literal("loading"), Type.Literal("error")])),
7
+ /** A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect. */
8
+ summary: Type.Optional(Type.String()),
9
+ /** A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect. */
10
+ description: Type.Optional(Type.String())
11
+ });
12
+ export {
13
+ ReferenceObject
14
+ };
15
+ //# sourceMappingURL=reference.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/reference.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.\n *\n * The $ref string value contains a URI RFC3986, which identifies the value being referenced.\n *\n * See the rules for resolving Relative References. */\nexport const ReferenceObject = Type.Object({\n /** REQUIRED. The reference identifier. This MUST be in the form of a URI. */\n '$ref': Type.String(),\n /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */\n '$status': Type.Optional(Type.Union([Type.Literal('loading'), Type.Literal('error')])),\n /** A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect. */\n summary: Type.Optional(Type.String()),\n /** A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect. */\n description: Type.Optional(Type.String()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAQd,MAAM,kBAAkB,KAAK,OAAO;AAAA;AAAA,EAEzC,QAAQ,KAAK,OAAO;AAAA;AAAA,EAEpB,WAAW,KAAK,SAAS,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC,CAAC;AAAA;AAAA,EAErF,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAC1C,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,54 @@
1
+ /** Describes a single request body. */
2
+ export declare const RequestBodyObject: import("@sinclair/typebox").TObject<{
3
+ /** A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
4
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
+ /** REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. "text/plain" overrides "text/* */
6
+ content: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
7
+ schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
8
+ discriminator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
9
+ propertyName: import("@sinclair/typebox").TString;
10
+ mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
11
+ }>>;
12
+ xml: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
13
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
+ namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
16
+ attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17
+ wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
18
+ }>>;
19
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
20
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
+ url: import("@sinclair/typebox").TString;
22
+ }>>;
23
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
24
+ }>>;
25
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
26
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
27
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
28
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
29
+ value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
30
+ externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31
+ }>, import("@sinclair/typebox").TObject<{
32
+ $ref: import("@sinclair/typebox").TString;
33
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
34
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
35
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
36
+ }>]>>>;
37
+ encoding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
38
+ contentType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
39
+ headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
40
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
41
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
42
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
43
+ }>, import("@sinclair/typebox").TObject<{
44
+ $ref: import("@sinclair/typebox").TString;
45
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
46
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
47
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
48
+ }>]>>>;
49
+ }>>>;
50
+ }>>;
51
+ /** Determines if the request body is required in the request. Defaults to false. */
52
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
53
+ }>;
54
+ //# sourceMappingURL=request-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-body.d.ts","sourceRoot":"","sources":["../../src/schemas/request-body.ts"],"names":[],"mappings":"AAGA,uCAAuC;AACvC,eAAO,MAAM,iBAAiB;IAC5B,+IAA+I;;IAE/I,8OAA8O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE9O,oFAAoF;;EAEpF,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { MediaTypeObject } from "./media-type.js";
3
+ const RequestBodyObject = Type.Object({
4
+ /** A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
5
+ description: Type.Optional(Type.String()),
6
+ /** REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. "text/plain" overrides "text/* */
7
+ content: Type.Record(Type.String(), MediaTypeObject),
8
+ /** Determines if the request body is required in the request. Defaults to false. */
9
+ required: Type.Optional(Type.Boolean())
10
+ });
11
+ export {
12
+ RequestBodyObject
13
+ };
14
+ //# sourceMappingURL=request-body.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/request-body.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { MediaTypeObject } from './media-type'\n\n/** Describes a single request body. */\nexport const RequestBodyObject = Type.Object({\n /** A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** REQUIRED. The content of the request body. The key is a media type or media type range and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. \"text/plain\" overrides \"text/* */\n content: Type.Record(Type.String(), MediaTypeObject),\n /** Determines if the request body is required in the request. Defaults to false. */\n required: Type.Optional(Type.Boolean()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAGzB,MAAM,oBAAoB,KAAK,OAAO;AAAA;AAAA,EAE3C,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,eAAe;AAAA;AAAA,EAEnD,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AACxC,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,84 @@
1
+ export declare const ResponseObject: import("@sinclair/typebox").TObject<{
2
+ /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */
3
+ description: import("@sinclair/typebox").TString;
4
+ /** Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name "Content-Type", it SHALL be ignored. */
5
+ headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
6
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
8
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
+ }>, import("@sinclair/typebox").TObject<{
10
+ $ref: import("@sinclair/typebox").TString;
11
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
12
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
+ }>]>>>;
15
+ /** A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. "text/plain" overrides "text/*" */
16
+ content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
17
+ schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
18
+ discriminator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
19
+ propertyName: import("@sinclair/typebox").TString;
20
+ mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
21
+ }>>;
22
+ xml: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
23
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
24
+ namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
25
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
+ attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
27
+ wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
28
+ }>>;
29
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
30
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31
+ url: import("@sinclair/typebox").TString;
32
+ }>>;
33
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
34
+ }>>;
35
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
36
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
37
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
38
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
39
+ value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
40
+ externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
41
+ }>, import("@sinclair/typebox").TObject<{
42
+ $ref: import("@sinclair/typebox").TString;
43
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
44
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
46
+ }>]>>>;
47
+ encoding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
48
+ contentType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
49
+ headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
50
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
51
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
52
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
53
+ }>, import("@sinclair/typebox").TObject<{
54
+ $ref: import("@sinclair/typebox").TString;
55
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
56
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
57
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
58
+ }>]>>>;
59
+ }>>>;
60
+ }>>>;
61
+ /** A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects. */
62
+ links: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
63
+ operationRef: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
64
+ operationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
65
+ parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
66
+ requestBody: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
67
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
68
+ server: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
69
+ url: import("@sinclair/typebox").TString;
70
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
71
+ variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
72
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
73
+ default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
74
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
75
+ }>>>;
76
+ }>>;
77
+ }>, import("@sinclair/typebox").TObject<{
78
+ $ref: import("@sinclair/typebox").TString;
79
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
80
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
81
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
82
+ }>]>>>;
83
+ }>;
84
+ //# sourceMappingURL=response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/schemas/response.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;IACzB,2GAA2G;;IAE3G,iLAAiL;;;;;;;;;;;IAEjL,oQAAoQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEpQ,8LAA8L;;;;;;;;;;;;;;;;;;;;;;EAE9L,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { HeaderObject } from "./header.js";
3
+ import { ReferenceObject } from "./reference.js";
4
+ import { MediaTypeObject } from "./media-type.js";
5
+ import { LinkObject } from "./link.js";
6
+ const ResponseObject = Type.Object({
7
+ /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */
8
+ description: Type.String(),
9
+ /** Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name "Content-Type", it SHALL be ignored. */
10
+ headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObject, ReferenceObject]))),
11
+ /** A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. "text/plain" overrides "text/*" */
12
+ content: Type.Optional(Type.Record(Type.String(), MediaTypeObject)),
13
+ /** A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects. */
14
+ links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObject, ReferenceObject])))
15
+ });
16
+ export {
17
+ ResponseObject
18
+ };
19
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/response.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { HeaderObject } from './header'\nimport { ReferenceObject } from './reference'\nimport { MediaTypeObject } from './media-type'\nimport { LinkObject } from './link'\n\nexport const ResponseObject = Type.Object({\n /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */\n description: Type.String(),\n /** Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name \"Content-Type\", it SHALL be ignored. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObject, ReferenceObject]))),\n /** A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. \"text/plain\" overrides \"text/*\" */\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObject)),\n /** A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObject, ReferenceObject]))),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,uBAAuB;AAChC,SAAS,kBAAkB;AAEpB,MAAM,iBAAiB,KAAK,OAAO;AAAA;AAAA,EAExC,aAAa,KAAK,OAAO;AAAA;AAAA,EAEzB,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,cAAc,eAAe,CAAC,CAAC,CAAC;AAAA;AAAA,EAE9F,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,eAAe,CAAC;AAAA;AAAA,EAElE,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,YAAY,eAAe,CAAC,CAAC,CAAC;AAC5F,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.
3
+ *
4
+ * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors.
5
+ *
6
+ * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the Responses Object.
7
+ *
8
+ * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be the response for a successful operation call.
9
+ */
10
+ export declare const ResponsesObject: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
11
+ description: import("@sinclair/typebox").TString;
12
+ headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
13
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
16
+ }>, import("@sinclair/typebox").TObject<{
17
+ $ref: import("@sinclair/typebox").TString;
18
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
19
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
+ }>]>>>;
22
+ content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
23
+ schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
24
+ discriminator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
25
+ propertyName: import("@sinclair/typebox").TString;
26
+ mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
27
+ }>>;
28
+ xml: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
29
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
30
+ namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
32
+ attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33
+ wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
34
+ }>>;
35
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
36
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
37
+ url: import("@sinclair/typebox").TString;
38
+ }>>;
39
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
40
+ }>>;
41
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
42
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
43
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
44
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
+ value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
46
+ externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
47
+ }>, import("@sinclair/typebox").TObject<{
48
+ $ref: import("@sinclair/typebox").TString;
49
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
50
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
51
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
52
+ }>]>>>;
53
+ encoding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
54
+ contentType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
55
+ headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
56
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
57
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
58
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
59
+ }>, import("@sinclair/typebox").TObject<{
60
+ $ref: import("@sinclair/typebox").TString;
61
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
62
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
63
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
64
+ }>]>>>;
65
+ }>>>;
66
+ }>>>;
67
+ links: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
68
+ operationRef: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
69
+ operationId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
70
+ parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
71
+ requestBody: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
72
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
73
+ server: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
74
+ url: import("@sinclair/typebox").TString;
75
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
76
+ variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
77
+ enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
78
+ default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
79
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
80
+ }>>>;
81
+ }>>;
82
+ }>, import("@sinclair/typebox").TObject<{
83
+ $ref: import("@sinclair/typebox").TString;
84
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
85
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
86
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
87
+ }>]>>>;
88
+ }>, import("@sinclair/typebox").TObject<{
89
+ $ref: import("@sinclair/typebox").TString;
90
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
91
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
92
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
93
+ }>]>>;
94
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/schemas/responses.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA4E,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { ReferenceObject } from "./reference.js";
3
+ import { ResponseObject } from "./response.js";
4
+ const ResponsesObject = Type.Record(Type.String(), Type.Union([ResponseObject, ReferenceObject]));
5
+ export {
6
+ ResponsesObject
7
+ };
8
+ //# sourceMappingURL=responses.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/responses.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { ReferenceObject } from './reference'\nimport { ResponseObject } from './response'\n\n/**\n * A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.\n *\n * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors.\n *\n * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the Responses Object.\n *\n * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be the response for a successful operation call.\n */\nexport const ResponsesObject = Type.Record(Type.String(), Type.Union([ResponseObject, ReferenceObject]))\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAWxB,MAAM,kBAAkB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,gBAAgB,eAAe,CAAC,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the JSON Schema Specification Draft 2020-12. The empty schema (which allows any instance to validate) MAY be represented by the boolean value true and a schema which allows no instance to validate MAY be represented by the boolean value false.
3
+ *
4
+ * For more information about the keywords, see JSON Schema Core and JSON Schema Validation.
5
+ *
6
+ * Unless stated otherwise, the keyword definitions follow those of JSON Schema and do not add any additional semantics; this includes keywords such as $schema, $id, $ref, and $dynamicRef being URIs rather than URLs. Where JSON Schema indicates that behavior is defined by the application (e.g. for annotations), OAS also defers the definition of semantics to the application consuming the OpenAPI document.
7
+ */
8
+ export declare const SchemaObject: import("@sinclair/typebox").TObject<{
9
+ /** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */
10
+ discriminator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
11
+ propertyName: import("@sinclair/typebox").TString;
12
+ mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
13
+ }>>;
14
+ /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */
15
+ xml: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
16
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
17
+ namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
+ attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
20
+ wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
21
+ }>>;
22
+ /** Additional external documentation for this schema. */
23
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
24
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
25
+ url: import("@sinclair/typebox").TString;
26
+ }>>;
27
+ /**
28
+ * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.
29
+ *
30
+ * Deprecated: The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.
31
+ */
32
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
33
+ }>;
34
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/schemas/schema.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;IACvB,0LAA0L;;;;;IAE1L,iKAAiK;;;;;;;;IAEjK,yDAAyD;;;;;IAEzD;;;;OAIG;;EAEH,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { DiscriminatorObject } from "./discriminator.js";
3
+ import { XMLObject } from "./xml.js";
4
+ import { ExternalDocumentationObject } from "./external-documentation.js";
5
+ const SchemaObject = Type.Object({
6
+ /** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */
7
+ discriminator: Type.Optional(DiscriminatorObject),
8
+ /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */
9
+ xml: Type.Optional(XMLObject),
10
+ /** Additional external documentation for this schema. */
11
+ externalDocs: Type.Optional(ExternalDocumentationObject),
12
+ /**
13
+ * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.
14
+ *
15
+ * Deprecated: The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.
16
+ */
17
+ example: Type.Optional(Type.Any())
18
+ });
19
+ export {
20
+ SchemaObject
21
+ };
22
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/schema.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\nimport { DiscriminatorObject } from './discriminator'\nimport { XMLObject } from './xml'\nimport { ExternalDocumentationObject } from './external-documentation'\n\n/**\n * The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is a superset of the JSON Schema Specification Draft 2020-12. The empty schema (which allows any instance to validate) MAY be represented by the boolean value true and a schema which allows no instance to validate MAY be represented by the boolean value false.\n *\n * For more information about the keywords, see JSON Schema Core and JSON Schema Validation.\n *\n * Unless stated otherwise, the keyword definitions follow those of JSON Schema and do not add any additional semantics; this includes keywords such as $schema, $id, $ref, and $dynamicRef being URIs rather than URLs. Where JSON Schema indicates that behavior is defined by the application (e.g. for annotations), OAS also defers the definition of semantics to the application consuming the OpenAPI document.\n */\nexport const SchemaObject = Type.Object({\n /** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */\n discriminator: Type.Optional(DiscriminatorObject),\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml: Type.Optional(XMLObject),\n /** Additional external documentation for this schema. */\n externalDocs: Type.Optional(ExternalDocumentationObject),\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * Deprecated: The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example: Type.Optional(Type.Any()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,2BAA2B;AACpC,SAAS,iBAAiB;AAC1B,SAAS,mCAAmC;AASrC,MAAM,eAAe,KAAK,OAAO;AAAA;AAAA,EAEtC,eAAe,KAAK,SAAS,mBAAmB;AAAA;AAAA,EAEhD,KAAK,KAAK,SAAS,SAAS;AAAA;AAAA,EAE5B,cAAc,KAAK,SAAS,2BAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMvD,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AACnC,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.
3
+ *
4
+ * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.
5
+ *
6
+ * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.
7
+ *
8
+ * An empty Security Requirement Object ({}) indicates anonymous access is supported.
9
+ */
10
+ export declare const SecurityRequirementObject: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
11
+ //# sourceMappingURL=security-requirement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-requirement.d.ts","sourceRoot":"","sources":["../../src/schemas/security-requirement.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,mJAIrC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const SecurityRequirementObject = Type.Record(
3
+ Type.String(),
4
+ /** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */
5
+ Type.Array(Type.String())
6
+ );
7
+ export {
8
+ SecurityRequirementObject
9
+ };
10
+ //# sourceMappingURL=security-requirement.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/schemas/security-requirement.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n */\nexport const SecurityRequirementObject = Type.Record(\n Type.String(),\n /** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type \"oauth2\" or \"openIdConnect\", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */\n Type.Array(Type.String()),\n)\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAWd,MAAM,4BAA4B,KAAK;AAAA,EAC5C,KAAK,OAAO;AAAA;AAAA,EAEZ,KAAK,MAAM,KAAK,OAAO,CAAC;AAC1B;",
6
+ "names": []
7
+ }