@scalar/workspace-store 0.7.0 → 0.9.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 (186) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +86 -1
  3. package/dist/client.d.ts +46 -45152
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +173 -14
  6. package/dist/client.js.map +2 -2
  7. package/dist/helpers/apply-selective-updates.d.ts +17 -0
  8. package/dist/helpers/apply-selective-updates.d.ts.map +1 -0
  9. package/dist/helpers/apply-selective-updates.js +13 -0
  10. package/dist/helpers/apply-selective-updates.js.map +7 -0
  11. package/dist/helpers/general.d.ts +58 -0
  12. package/dist/helpers/general.d.ts.map +1 -1
  13. package/dist/helpers/general.js +18 -1
  14. package/dist/helpers/general.js.map +2 -2
  15. package/dist/helpers/proxy.d.ts +1 -1
  16. package/dist/helpers/proxy.d.ts.map +1 -1
  17. package/dist/helpers/proxy.js.map +2 -2
  18. package/dist/mutators/cookie.d.ts +17 -0
  19. package/dist/mutators/cookie.d.ts.map +1 -0
  20. package/dist/mutators/cookie.js +31 -0
  21. package/dist/mutators/cookie.js.map +7 -0
  22. package/dist/mutators/environment.d.ts +17 -0
  23. package/dist/mutators/environment.d.ts.map +1 -0
  24. package/dist/mutators/environment.js +31 -0
  25. package/dist/mutators/environment.js.map +7 -0
  26. package/dist/mutators/helpers.d.ts +34580 -0
  27. package/dist/mutators/helpers.d.ts.map +1 -0
  28. package/dist/mutators/helpers.js +11 -0
  29. package/dist/mutators/helpers.js.map +7 -0
  30. package/dist/mutators/index.d.ts +108 -0
  31. package/dist/mutators/index.d.ts.map +1 -0
  32. package/dist/mutators/index.js +67 -0
  33. package/dist/mutators/index.js.map +7 -0
  34. package/dist/mutators/request-example.d.ts +21 -0
  35. package/dist/mutators/request-example.d.ts.map +1 -0
  36. package/dist/mutators/request-example.js +58 -0
  37. package/dist/mutators/request-example.js.map +7 -0
  38. package/dist/mutators/request.d.ts +22 -0
  39. package/dist/mutators/request.d.ts.map +1 -0
  40. package/dist/mutators/request.js +53 -0
  41. package/dist/mutators/request.js.map +7 -0
  42. package/dist/mutators/security-schemes.d.ts +14 -0
  43. package/dist/mutators/security-schemes.d.ts.map +1 -0
  44. package/dist/mutators/security-schemes.js +27 -0
  45. package/dist/mutators/security-schemes.js.map +7 -0
  46. package/dist/mutators/server.d.ts +12 -0
  47. package/dist/mutators/server.d.ts.map +1 -0
  48. package/dist/mutators/server.js +24 -0
  49. package/dist/mutators/server.js.map +7 -0
  50. package/dist/navigation/helpers/traverse-description.d.ts +2 -1
  51. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  52. package/dist/navigation/helpers/traverse-description.js.map +2 -2
  53. package/dist/navigation/helpers/traverse-document.d.ts +89 -2
  54. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  55. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  56. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  57. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  58. package/dist/navigation/helpers/traverse-schemas.d.ts +2 -1
  59. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  60. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  61. package/dist/navigation/helpers/traverse-tags.d.ts +2 -1
  62. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  63. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  64. package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -1
  65. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  66. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  67. package/dist/navigation/types.d.ts +1 -39
  68. package/dist/navigation/types.d.ts.map +1 -1
  69. package/dist/schemas/compose.d.ts.map +1 -0
  70. package/dist/schemas/{v3.1/compose.js.map → compose.js.map} +1 -1
  71. package/dist/schemas/inmemory-workspace.d.ts +68 -0
  72. package/dist/schemas/inmemory-workspace.d.ts.map +1 -0
  73. package/dist/schemas/inmemory-workspace.js +14 -0
  74. package/dist/schemas/inmemory-workspace.js.map +7 -0
  75. package/dist/schemas/navigation.d.ts +148 -0
  76. package/dist/schemas/navigation.d.ts.map +1 -0
  77. package/dist/schemas/navigation.js +76 -0
  78. package/dist/schemas/navigation.js.map +7 -0
  79. package/dist/schemas/reference-config/index.d.ts +1 -1
  80. package/dist/schemas/v3.1/strict/callback.js +1 -1
  81. package/dist/schemas/v3.1/strict/callback.js.map +1 -1
  82. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
  83. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
  84. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
  85. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
  86. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
  87. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
  88. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js +23 -0
  89. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
  90. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
  91. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
  92. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
  93. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
  94. package/dist/schemas/v3.1/strict/components.d.ts +45 -7948
  95. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  96. package/dist/schemas/v3.1/strict/components.js +4 -2
  97. package/dist/schemas/v3.1/strict/components.js.map +2 -2
  98. package/dist/schemas/v3.1/strict/contact.js +1 -1
  99. package/dist/schemas/v3.1/strict/contact.js.map +1 -1
  100. package/dist/schemas/v3.1/strict/discriminator.js +1 -1
  101. package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
  102. package/dist/schemas/v3.1/strict/encoding.js +1 -1
  103. package/dist/schemas/v3.1/strict/encoding.js.map +1 -1
  104. package/dist/schemas/v3.1/strict/example.js +1 -1
  105. package/dist/schemas/v3.1/strict/example.js.map +1 -1
  106. package/dist/schemas/v3.1/strict/external-documentation.js +1 -1
  107. package/dist/schemas/v3.1/strict/external-documentation.js.map +1 -1
  108. package/dist/schemas/v3.1/strict/header.js +1 -1
  109. package/dist/schemas/v3.1/strict/header.js.map +1 -1
  110. package/dist/schemas/v3.1/strict/info.js +1 -1
  111. package/dist/schemas/v3.1/strict/info.js.map +1 -1
  112. package/dist/schemas/v3.1/strict/license.js +1 -1
  113. package/dist/schemas/v3.1/strict/license.js.map +1 -1
  114. package/dist/schemas/v3.1/strict/link.js +1 -1
  115. package/dist/schemas/v3.1/strict/link.js.map +1 -1
  116. package/dist/schemas/v3.1/strict/media-type.js +1 -1
  117. package/dist/schemas/v3.1/strict/media-type.js.map +1 -1
  118. package/dist/schemas/v3.1/strict/oauth-flow.js +1 -1
  119. package/dist/schemas/v3.1/strict/oauth-flow.js.map +1 -1
  120. package/dist/schemas/v3.1/strict/oauthflows.js +1 -1
  121. package/dist/schemas/v3.1/strict/oauthflows.js.map +1 -1
  122. package/dist/schemas/v3.1/strict/openapi-document.d.ts +63 -0
  123. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  124. package/dist/schemas/v3.1/strict/openapi-document.js +12 -2
  125. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  126. package/dist/schemas/v3.1/strict/operation.d.ts +18 -0
  127. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  128. package/dist/schemas/v3.1/strict/operation.js +8 -1
  129. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  130. package/dist/schemas/v3.1/strict/parameter.js +1 -1
  131. package/dist/schemas/v3.1/strict/parameter.js.map +1 -1
  132. package/dist/schemas/v3.1/strict/path-item.d.ts +6 -0
  133. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  134. package/dist/schemas/v3.1/strict/path-item.js +7 -1
  135. package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
  136. package/dist/schemas/v3.1/strict/path-operations.d.ts +3975 -228
  137. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
  138. package/dist/schemas/v3.1/strict/paths.d.ts +1864 -1
  139. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  140. package/dist/schemas/v3.1/strict/paths.js +1 -1
  141. package/dist/schemas/v3.1/strict/paths.js.map +1 -1
  142. package/dist/schemas/v3.1/strict/reference.js +1 -1
  143. package/dist/schemas/v3.1/strict/reference.js.map +1 -1
  144. package/dist/schemas/v3.1/strict/request-body.js +1 -1
  145. package/dist/schemas/v3.1/strict/request-body.js.map +1 -1
  146. package/dist/schemas/v3.1/strict/response.js +1 -1
  147. package/dist/schemas/v3.1/strict/response.js.map +1 -1
  148. package/dist/schemas/v3.1/strict/responses.js +1 -1
  149. package/dist/schemas/v3.1/strict/responses.js.map +1 -1
  150. package/dist/schemas/v3.1/strict/schema.js +1 -1
  151. package/dist/schemas/v3.1/strict/schema.js.map +1 -1
  152. package/dist/schemas/v3.1/strict/security-requirement.js +1 -1
  153. package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
  154. package/dist/schemas/v3.1/strict/security-scheme.js +1 -1
  155. package/dist/schemas/v3.1/strict/security-scheme.js.map +1 -1
  156. package/dist/schemas/v3.1/strict/server-variable.js +1 -1
  157. package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
  158. package/dist/schemas/v3.1/strict/server.js +1 -1
  159. package/dist/schemas/v3.1/strict/server.js.map +1 -1
  160. package/dist/schemas/v3.1/strict/tag.js +1 -1
  161. package/dist/schemas/v3.1/strict/tag.js.map +1 -1
  162. package/dist/schemas/v3.1/strict/xml.js +1 -1
  163. package/dist/schemas/v3.1/strict/xml.js.map +1 -1
  164. package/dist/schemas/workspace-specification/config.d.ts +48 -0
  165. package/dist/schemas/workspace-specification/config.d.ts.map +1 -0
  166. package/dist/schemas/workspace-specification/config.js +11 -0
  167. package/dist/schemas/workspace-specification/config.js.map +7 -0
  168. package/dist/schemas/workspace-specification/index.d.ts +210 -0
  169. package/dist/schemas/workspace-specification/index.d.ts.map +1 -0
  170. package/dist/schemas/workspace-specification/index.js +27 -0
  171. package/dist/schemas/workspace-specification/index.js.map +7 -0
  172. package/dist/schemas/workspace-specification/info.d.ts +5 -0
  173. package/dist/schemas/workspace-specification/info.d.ts.map +1 -0
  174. package/dist/schemas/workspace-specification/info.js +9 -0
  175. package/dist/schemas/workspace-specification/info.js.map +7 -0
  176. package/dist/schemas/workspace.d.ts +147 -79
  177. package/dist/schemas/workspace.d.ts.map +1 -1
  178. package/dist/schemas/workspace.js +19 -4
  179. package/dist/schemas/workspace.js.map +2 -2
  180. package/dist/server.d.ts +860 -188
  181. package/dist/server.d.ts.map +1 -1
  182. package/dist/server.js.map +1 -1
  183. package/package.json +12 -10
  184. package/dist/schemas/v3.1/compose.d.ts.map +0 -1
  185. /package/dist/schemas/{v3.1/compose.d.ts → compose.d.ts} +0 -0
  186. /package/dist/schemas/{v3.1/compose.js → compose.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAcrD,kOAAkO;AAClO,eAAO,MAAM,sBAAsB;IAE/B,iDAAiD;;;;;;;;;;;;;;;;;;;;;;IAEjD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QACzG,wGAAwG;QACxG,aAAa,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,uBAAuB,EAAE,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAA;QAClH,qIAAqI;QACrI,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,kBAAkB,EAAE,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAA;QACvG,mIAAmI;QACnI,eAAe,EAAE,SAAS,CACxB,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,0BAA0B,EAAE,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAC5F,CAAA;QACD,wIAAwI;QACxI,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,gBAAgB,EAAE,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAA;QACnG,yIAAyI;QACzI,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,oBAAoB,EAAE,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAA;QAC3G,2HAA2H;QAC3H,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,oBAAoB,CAAC,CAAC,CAAA;KACpE,CAAC;IACF,OAAO,gBAAgB;CACxB,CACF,CAAA;AAED,kOAAkO;AAClO,eAAO,MAAM,sBAAsB,EAAE,0BA4BpC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
@@ -1,4 +1,6 @@
1
- import { Type } from "@sinclair/typebox";
1
+ import {
2
+ Type
3
+ } from "@sinclair/typebox";
2
4
  import { SchemaObjectSchema } from "./schema.js";
3
5
  import { ResponseObjectSchema } from "./response.js";
4
6
  import { ReferenceObjectSchema } from "./reference.js";
@@ -8,7 +10,7 @@ import { RequestBodyObjectSchema } from "./request-body.js";
8
10
  import { SecuritySchemeObjectSchema } from "./security-scheme.js";
9
11
  import { LinkObjectSchema } from "./link.js";
10
12
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
11
- import { compose } from "../../../schemas/v3.1/compose.js";
13
+ import { compose } from "../../../schemas/compose.js";
12
14
  import { HeaderObjectSchema } from "../../../schemas/v3.1/strict/media-header-encoding.js";
13
15
  import { CallbackObjectSchema, PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
14
16
  const ComponentsObjectSchema = compose(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/components.ts"],
4
- "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { SchemaObjectSchema } from './schema'\nimport { ResponseObjectSchema } from './response'\nimport { ReferenceObjectSchema } from './reference'\nimport { ParameterObjectSchema } from './parameter'\nimport { ExampleObjectSchema } from './example'\nimport { RequestBodyObjectSchema } from './request-body'\nimport { SecuritySchemeObjectSchema } from './security-scheme'\nimport { LinkObjectSchema } from './link'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\nimport { HeaderObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { CallbackObjectSchema, PathItemObjectSchema } from '@/schemas/v3.1/strict/path-operations'\n\n/** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */\nexport const ComponentsObjectSchema = compose(\n Type.Object({\n /** An object to hold reusable Schema Objects. */\n schemas: Type.Optional(Type.Record(Type.String(), SchemaObjectSchema)),\n /** An object to hold reusable Response Objects. */\n responses: Type.Optional(Type.Record(Type.String(), Type.Union([ResponseObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Parameter Objects. */\n parameters: Type.Optional(Type.Record(Type.String(), Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Example Objects. */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Request Body Objects. */\n requestBodies: Type.Optional(\n Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, ReferenceObjectSchema])),\n ),\n /** An object to hold reusable Header Objects. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Security Scheme Objects. */\n securitySchemes: Type.Optional(\n Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, ReferenceObjectSchema])),\n ),\n /** An object to hold reusable Link Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Callback Objects. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Path Item Objects. */\n pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema)),\n }),\n ExtensionsSchema,\n)\n\nexport type ComponentsObject = Static<typeof ComponentsObjectSchema>\n"],
5
- "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AACxC,SAAS,kCAAkC;AAC3C,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,0BAA0B;AACnC,SAAS,sBAAsB,4BAA4B;AAGpD,MAAM,yBAAyB;AAAA,EACpC,KAAK,OAAO;AAAA;AAAA,IAEV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC;AAAA;AAAA,IAErE,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE9G,YAAY,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAEhH,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE5G,eAAe,KAAK;AAAA,MAClB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,yBAAyB,qBAAqB,CAAC,CAAC;AAAA,IACzF;AAAA;AAAA,IAEA,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,oBAAoB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE1G,iBAAiB,KAAK;AAAA,MACpB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,4BAA4B,qBAAqB,CAAC,CAAC;AAAA,IAC5F;AAAA;AAAA,IAEA,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAEtG,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE9G,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,oBAAoB,CAAC;AAAA,EAC3E,CAAC;AAAA,EACD;AACF;",
4
+ "sourcesContent": ["import {\n Type,\n type Static,\n type TIntersect,\n type TObject,\n type TOptional,\n type TRecord,\n type TString,\n type TUnion,\n} from '@sinclair/typebox'\nimport { SchemaObjectSchema } from './schema'\nimport { ResponseObjectSchema } from './response'\nimport { ReferenceObjectSchema } from './reference'\nimport { ParameterObjectSchema } from './parameter'\nimport { ExampleObjectSchema } from './example'\nimport { RequestBodyObjectSchema } from './request-body'\nimport { SecuritySchemeObjectSchema } from './security-scheme'\nimport { LinkObjectSchema } from './link'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\nimport { HeaderObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { CallbackObjectSchema, PathItemObjectSchema } from '@/schemas/v3.1/strict/path-operations'\n\n/**\n * The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.\n * This is due to the complex nested structure of the Components Object schema, which includes multiple optional fields,\n * arrays, and nested objects. The explicit type annotation helps TypeScript handle this large type definition.\n *\n * @see https://github.com/microsoft/TypeScript/issues/43817#issuecomment-827746462\n */\nexport type ComponentsObjectSchemaType = TIntersect<\n [\n TObject<{\n /** Schema Objects that define input and output data types. These can be objects, primitives, and arrays, and are a superset of JSON Schema Specification Draft 2020-12. */\n schemas: TOptional<TRecord<TString, typeof SchemaObjectSchema>>\n /** Response Objects that describe a single response from an API operation, including headers, content, and links. */\n responses: TOptional<TRecord<TString, TUnion<[typeof ResponseObjectSchema, typeof ReferenceObjectSchema]>>>\n /** Parameter Objects that describe a single operation parameter with a unique combination of name and location (query, header, path, or cookie). */\n parameters: TOptional<TRecord<TString, TUnion<[typeof ParameterObjectSchema, typeof ReferenceObjectSchema]>>>\n /** Example Objects that group example values with metadata for demonstrating usage of properties, parameters, and objects. */\n examples: TOptional<TRecord<TString, TUnion<[typeof ExampleObjectSchema, typeof ReferenceObjectSchema]>>>\n /** Request Body Objects that describe a single request body with content and optional required flag. */\n requestBodies: TOptional<TRecord<TString, TUnion<[typeof RequestBodyObjectSchema, typeof ReferenceObjectSchema]>>>\n /** Header Objects that describe HTTP response headers and multipart representation headers, following Parameter Object structure. */\n headers: TOptional<TRecord<TString, TUnion<[typeof HeaderObjectSchema, typeof ReferenceObjectSchema]>>>\n /** Security Scheme Objects that define security mechanisms for API operations (apiKey, http, mutualTLS, oauth2, openIdConnect). */\n securitySchemes: TOptional<\n TRecord<TString, TUnion<[typeof SecuritySchemeObjectSchema, typeof ReferenceObjectSchema]>>\n >\n /** Link Objects that represent design-time links for responses, providing relationships and traversal mechanisms between operations. */\n links: TOptional<TRecord<TString, TUnion<[typeof LinkObjectSchema, typeof ReferenceObjectSchema]>>>\n /** Callback Objects that describe out-of-band callbacks related to parent operations, with Path Item Objects for request definitions. */\n callbacks: TOptional<TRecord<TString, TUnion<[typeof CallbackObjectSchema, typeof ReferenceObjectSchema]>>>\n /** Path Item Objects that describe operations available on a single path, including HTTP methods and shared parameters. */\n pathItems: TOptional<TRecord<TString, typeof PathItemObjectSchema>>\n }>,\n typeof ExtensionsSchema,\n ]\n>\n\n/** Holds a set of reusable objects for different aspects of the OAS. All objects defined within the Components Object will have no effect on the API unless they are explicitly referenced from outside the Components Object. */\nexport const ComponentsObjectSchema: ComponentsObjectSchemaType = compose(\n Type.Object({\n /** An object to hold reusable Schema Objects. */\n schemas: Type.Optional(Type.Record(Type.String(), SchemaObjectSchema)),\n /** An object to hold reusable Response Objects. */\n responses: Type.Optional(Type.Record(Type.String(), Type.Union([ResponseObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Parameter Objects. */\n parameters: Type.Optional(Type.Record(Type.String(), Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Example Objects. */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Request Body Objects. */\n requestBodies: Type.Optional(\n Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, ReferenceObjectSchema])),\n ),\n /** An object to hold reusable Header Objects. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Security Scheme Objects. */\n securitySchemes: Type.Optional(\n Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, ReferenceObjectSchema])),\n ),\n /** An object to hold reusable Link Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Callback Objects. */\n callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectSchema, ReferenceObjectSchema]))),\n /** An object to hold reusable Path Item Objects. */\n pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema)),\n }),\n ExtensionsSchema,\n)\n\nexport type ComponentsObject = Static<typeof ComponentsObjectSchema>\n"],
5
+ "mappings": "AAAA;AAAA,EACE;AAAA,OAQK;AACP,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AACxC,SAAS,kCAAkC;AAC3C,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,0BAA0B;AACnC,SAAS,sBAAsB,4BAA4B;AAwCpD,MAAM,yBAAqD;AAAA,EAChE,KAAK,OAAO;AAAA;AAAA,IAEV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC;AAAA;AAAA,IAErE,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE9G,YAAY,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAEhH,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE5G,eAAe,KAAK;AAAA,MAClB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,yBAAyB,qBAAqB,CAAC,CAAC;AAAA,IACzF;AAAA;AAAA,IAEA,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,oBAAoB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE1G,iBAAiB,KAAK;AAAA,MACpB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,4BAA4B,qBAAqB,CAAC,CAAC;AAAA,IAC5F;AAAA;AAAA,IAEA,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,kBAAkB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAEtG,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,sBAAsB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,IAE9G,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,oBAAoB,CAAC;AAAA,EAC3E,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
3
  import { Type } from "@sinclair/typebox";
4
4
  const ContactObjectSchema = compose(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/contact.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** Contact information for the exposed API. */\nexport const ContactObjectSchema = compose(\n Type.Object({\n /** The identifying name of the contact person/organization. */\n name: Type.Optional(Type.String()),\n /** The URI for the contact information. This MUST be in the form of a URI. */\n url: Type.Optional(Type.String()),\n /** The email address of the contact person/organization. This MUST be in the form of an email address. */\n email: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type ContactObject = Static<typeof ContactObjectSchema>\n"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** Contact information for the exposed API. */\nexport const ContactObjectSchema = compose(\n Type.Object({\n /** The identifying name of the contact person/organization. */\n name: Type.Optional(Type.String()),\n /** The URI for the contact information. This MUST be in the form of a URI. */\n url: Type.Optional(Type.String()),\n /** The email address of the contact person/organization. This MUST be in the form of an email address. */\n email: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type ContactObject = Static<typeof ContactObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAG3B,MAAM,sBAAsB;AAAA,EACjC,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEjC,KAAK,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEhC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACpC,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
3
  import { Type } from "@sinclair/typebox";
4
4
  const DiscriminatorObjectSchema = compose(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/discriminator.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/**\n * When request bodies or response payloads may be one of a number of different schemas, a Discriminator Object gives a hint about the expected schema of the document. This hint can be used to aid in serialization, deserialization, and validation. The Discriminator Object does this by implicitly or explicitly associating the possible values of a named property with alternative schemas.\n *\n * Note that discriminator MUST NOT change the validation outcome of the schema.\n */\nexport const DiscriminatorObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined. */\n propertyName: Type.String(),\n /** An object to hold mappings between payload values and schema names or URI references. */\n mapping: Type.Optional(Type.Record(Type.String(), Type.String())),\n }),\n ExtensionsSchema,\n)\n\nexport type DiscriminatorObject = Static<typeof DiscriminatorObjectSchema>\n"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/**\n * When request bodies or response payloads may be one of a number of different schemas, a Discriminator Object gives a hint about the expected schema of the document. This hint can be used to aid in serialization, deserialization, and validation. The Discriminator Object does this by implicitly or explicitly associating the possible values of a named property with alternative schemas.\n *\n * Note that discriminator MUST NOT change the validation outcome of the schema.\n */\nexport const DiscriminatorObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the property in the payload that will hold the discriminating value. This property SHOULD be required in the payload schema, as the behavior when the property is absent is undefined. */\n propertyName: Type.String(),\n /** An object to hold mappings between payload values and schema names or URI references. */\n mapping: Type.Optional(Type.Record(Type.String(), Type.String())),\n }),\n ExtensionsSchema,\n)\n\nexport type DiscriminatorObject = Static<typeof DiscriminatorObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAO3B,MAAM,4BAA4B;AAAA,EACvC,KAAK,OAAO;AAAA;AAAA,IAEV,cAAc,KAAK,OAAO;AAAA;AAAA,IAE1B,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC,CAAC;AAAA,EAClE,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { Type } from "@sinclair/typebox";
2
2
  import { ReferenceObjectSchema } from "./reference.js";
3
3
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
- import { compose } from "../../../schemas/v3.1/compose.js";
4
+ import { compose } from "../../../schemas/compose.js";
5
5
  const encodingObjectSchemaBuilder = (header) => compose(
6
6
  Type.Object({
7
7
  /** The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the property type as shown in the table below. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/encoding.ts"],
4
- "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ReferenceObjectSchema } from './reference'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\nexport const encodingObjectSchemaBuilder = <H extends TSchema>(header: H) =>\n compose(\n Type.Object({\n /** The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the property type as shown in the table below. */\n contentType: Type.Optional(Type.String()),\n /** A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([header, ReferenceObjectSchema]))),\n }),\n ExtensionsSchema,\n )\n"],
4
+ "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ReferenceObjectSchema } from './reference'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\n\nexport const encodingObjectSchemaBuilder = <H extends TSchema>(header: H) =>\n compose(\n Type.Object({\n /** The Content-Type for encoding a specific property. The value is a comma-separated list, each element of which is either a specific media type (e.g. image/png) or a wildcard media type (e.g. image/*). Default value depends on the property type as shown in the table below. */\n contentType: Type.Optional(Type.String()),\n /** A map allowing additional information to be provided as headers. Content-Type is described separately and SHALL be ignored in this section. This field SHALL be ignored if the request body media type is not a multipart. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([header, ReferenceObjectSchema]))),\n }),\n ExtensionsSchema,\n )\n"],
5
5
  "mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,8BAA8B,CAAoB,WAC7D;AAAA,EACE,KAAK,OAAO;AAAA;AAAA,IAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,QAAQ,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAChG,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
3
  import { Type } from "@sinclair/typebox";
4
4
  const ExampleObjectSchema = compose(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/example.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/**\n * An object grouping an internal or external example value with basic summary and description metadata. This object is typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n */\nexport const ExampleObjectSchema = compose(\n Type.Object({\n /** Short description for the example. */\n summary: Type.Optional(Type.String()),\n /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary. */\n value: Type.Optional(Type.Any()),\n /** A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules for resolving Relative References. */\n externalValue: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type ExampleObject = Static<typeof ExampleObjectSchema>\n"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/**\n * An object grouping an internal or external example value with basic summary and description metadata. This object is typically used in fields named examples (plural), and is a referenceable alternative to older example (singular) fields that do not support referencing or metadata.\n *\n * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.\n */\nexport const ExampleObjectSchema = compose(\n Type.Object({\n /** Short description for the example. */\n summary: Type.Optional(Type.String()),\n /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary. */\n value: Type.Optional(Type.Any()),\n /** A URI that identifies the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive. See the rules for resolving Relative References. */\n externalValue: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type ExampleObject = Static<typeof ExampleObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAO3B,MAAM,sBAAsB;AAAA,EACjC,KAAK,OAAO;AAAA;AAAA,IAEV,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,IAE/B,eAAe,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC5C,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
3
  import { Type } from "@sinclair/typebox";
4
4
  const ExternalDocumentationObjectSchema = compose(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/external-documentation.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** Allows referencing an external resource for extended documentation. */\nexport const ExternalDocumentationObjectSchema = compose(\n Type.Object({\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */\n url: Type.String(),\n }),\n ExtensionsSchema,\n)\n\nexport type ExternalDocumentationObject = Static<typeof ExternalDocumentationObjectSchema>\n"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** Allows referencing an external resource for extended documentation. */\nexport const ExternalDocumentationObjectSchema = compose(\n Type.Object({\n /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */\n url: Type.String(),\n }),\n ExtensionsSchema,\n)\n\nexport type ExternalDocumentationObject = Static<typeof ExternalDocumentationObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAG3B,MAAM,oCAAoC;AAAA,EAC/C,KAAK,OAAO;AAAA;AAAA,IAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,KAAK,KAAK,OAAO;AAAA,EACnB,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { ExampleObjectSchema } from "../../../schemas/v3.1/strict/example.js";
3
3
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
4
  import { ReferenceObjectSchema } from "../../../schemas/v3.1/strict/reference.js";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/header.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type TSchema } from '@sinclair/typebox'\n\nexport const HeaderObjectSchemaBase = compose(\n Type.Object({\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this header is mandatory. The default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport const HeaderObjectWithSchemaSchema = compose(\n HeaderObjectSchemaBase,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Any(),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n }),\n)\n\nexport const headerObjectSchemaBuilder = <T extends TSchema>(mediaType: T) =>\n Type.Union([\n HeaderObjectWithSchemaSchema,\n // @ts-ignore\n compose(\n HeaderObjectSchemaBase,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), mediaType)),\n }),\n ),\n ])\n"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type TSchema } from '@sinclair/typebox'\n\nexport const HeaderObjectSchemaBase = compose(\n Type.Object({\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this header is mandatory. The default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport const HeaderObjectWithSchemaSchema = compose(\n HeaderObjectSchemaBase,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Any(),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n }),\n)\n\nexport const headerObjectSchemaBuilder = <T extends TSchema>(mediaType: T) =>\n Type.Union([\n HeaderObjectWithSchemaSchema,\n // @ts-ignore\n compose(\n HeaderObjectSchemaBase,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), mediaType)),\n }),\n ),\n ])\n"],
5
5
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,YAA0B;AAE5B,MAAM,yBAAyB;AAAA,EACpC,KAAK,OAAO;AAAA;AAAA,IAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;AAEO,MAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,qBAAqB,CAAC,CAAC;AAAA;AAAA,IAE7E,SAAS,KAAK,IAAI;AAAA;AAAA,IAElB,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAC9G,CAAC;AACH;AAEO,MAAM,4BAA4B,CAAoB,cAC3D,KAAK,MAAM;AAAA,EACT;AAAA;AAAA,EAEA;AAAA,IACE;AAAA,IACA,KAAK,OAAO;AAAA,MACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,SAAS,CAAC;AAAA,IAC9D,CAAC;AAAA,EACH;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -2,7 +2,7 @@ import { Type } from "@sinclair/typebox";
2
2
  import { ContactObjectSchema } from "./contact.js";
3
3
  import { LicenseObjectSchema } from "./license.js";
4
4
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
5
- import { compose } from "../../../schemas/v3.1/compose.js";
5
+ import { compose } from "../../../schemas/compose.js";
6
6
  const InfoObjectSchema = compose(
7
7
  Type.Object({
8
8
  /** REQUIRED. The title of the API. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/info.ts"],
4
- "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ContactObjectSchema } from './contact'\nimport { LicenseObjectSchema } from './license'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\n/**\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.\n */\nexport const InfoObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The title of the API. */\n title: Type.String(),\n /** A short summary of the API. */\n summary: Type.Optional(Type.String()),\n /** A description of the API. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */\n termsOfService: Type.Optional(Type.String()),\n /** The contact information for the exposed API. */\n contact: Type.Optional(ContactObjectSchema),\n /** The license information for the exposed API. */\n license: Type.Optional(LicenseObjectSchema),\n /** REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description). */\n version: Type.String(),\n }),\n ExtensionsSchema,\n)\n\nexport type InfoObject = Static<typeof InfoObjectSchema>\n"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ContactObjectSchema } from './contact'\nimport { LicenseObjectSchema } from './license'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\n\n/**\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.\n */\nexport const InfoObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The title of the API. */\n title: Type.String(),\n /** A short summary of the API. */\n summary: Type.Optional(Type.String()),\n /** A description of the API. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */\n termsOfService: Type.Optional(Type.String()),\n /** The contact information for the exposed API. */\n contact: Type.Optional(ContactObjectSchema),\n /** The license information for the exposed API. */\n license: Type.Optional(LicenseObjectSchema),\n /** REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description). */\n version: Type.String(),\n }),\n ExtensionsSchema,\n)\n\nexport type InfoObject = Static<typeof InfoObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAKjB,MAAM,mBAAmB;AAAA,EAC9B,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,OAAO;AAAA;AAAA,IAEnB,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,gBAAgB,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAE3C,SAAS,KAAK,SAAS,mBAAmB;AAAA;AAAA,IAE1C,SAAS,KAAK,SAAS,mBAAmB;AAAA;AAAA,IAE1C,SAAS,KAAK,OAAO;AAAA,EACvB,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
3
  import { Type } from "@sinclair/typebox";
4
4
  const LicenseObjectSchema = compose(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/license.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** The license information for the exposed API. */\nexport const LicenseObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The license name used for the API. */\n name: Type.Optional(Type.String()),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: Type.Optional(Type.String()),\n /** A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. */\n url: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type LicenseObject = Static<typeof LicenseObjectSchema>\n"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** The license information for the exposed API. */\nexport const LicenseObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The license name used for the API. */\n name: Type.Optional(Type.String()),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: Type.Optional(Type.String()),\n /** A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. */\n url: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type LicenseObject = Static<typeof LicenseObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAG3B,MAAM,sBAAsB;AAAA,EACjC,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEjC,YAAY,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEvC,KAAK,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAClC,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { Type } from "@sinclair/typebox";
2
2
  import { ServerObjectSchema } from "./server.js";
3
3
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
- import { compose } from "../../../schemas/v3.1/compose.js";
4
+ import { compose } from "../../../schemas/compose.js";
5
5
  const LinkObjectSchema = compose(
6
6
  Type.Object({
7
7
  /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/link.ts"],
4
- "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ServerObjectSchema } from './server'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\n/**\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation.\n */\nexport const LinkObjectSchema = compose(\n Type.Object({\n /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */\n operationRef: Type.Optional(Type.String()),\n /** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */\n operationId: Type.Optional(Type.String()),\n /** A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated and passed to the linked operation. */\n parameters: Type.Optional(Type.Record(Type.String(), Type.Any())),\n /** A literal value or {expression} to use as a request body when calling the target operation. */\n requestBody: Type.Optional(Type.Any()),\n /** A description of the link. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A server object to be used by the target operation. */\n server: Type.Optional(ServerObjectSchema),\n }),\n ExtensionsSchema,\n)\n\nexport type LinkObject = Static<typeof LinkObjectSchema>\n"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ServerObjectSchema } from './server'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\n\n/**\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation.\n */\nexport const LinkObjectSchema = compose(\n Type.Object({\n /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */\n operationRef: Type.Optional(Type.String()),\n /** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */\n operationId: Type.Optional(Type.String()),\n /** A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated and passed to the linked operation. */\n parameters: Type.Optional(Type.Record(Type.String(), Type.Any())),\n /** A literal value or {expression} to use as a request body when calling the target operation. */\n requestBody: Type.Optional(Type.Any()),\n /** A description of the link. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A server object to be used by the target operation. */\n server: Type.Optional(ServerObjectSchema),\n }),\n ExtensionsSchema,\n)\n\nexport type LinkObject = Static<typeof LinkObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AASjB,MAAM,mBAAmB;AAAA,EAC9B,KAAK,OAAO;AAAA;AAAA,IAEV,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEzC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,YAAY,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC;AAAA;AAAA,IAEhE,aAAa,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,IAErC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,QAAQ,KAAK,SAAS,kBAAkB;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;",
6
6
  "names": []
7
7
  }
@@ -2,7 +2,7 @@ import { Type } from "@sinclair/typebox";
2
2
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
3
  import { ExampleObjectSchema } from "../../../schemas/v3.1/strict/example.js";
4
4
  import { ReferenceObjectSchema } from "../../../schemas/v3.1/strict/reference.js";
5
- import { compose } from "../../../schemas/v3.1/compose.js";
5
+ import { compose } from "../../../schemas/compose.js";
6
6
  import { SchemaObjectSchema } from "../../../schemas/v3.1/strict/schema.js";
7
7
  const mediaTypeObjectSchemaBuilder = (encoding) => (
8
8
  // @ts-ignore
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/media-type.ts"],
4
- "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { compose } from '@/schemas/v3.1/compose'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\n\nexport const mediaTypeObjectSchemaBuilder = <E extends TSchema>(encoding: E) =>\n // @ts-ignore\n compose(\n Type.Object({\n /** The schema defining the content of the request, response, parameter, or header. */\n // @ts-ignore\n schema: Type.Optional(SchemaObjectSchema),\n /** Example of the media type */\n example: Type.Optional(Type.Any()),\n /** Examples of the media type */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n /** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding field SHALL only apply to Request Body Objects, and only when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. */\n encoding: Type.Optional(Type.Record(Type.String(), encoding)),\n }),\n ExtensionsSchema,\n )\n"],
4
+ "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { compose } from '@/schemas/compose'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\n\nexport const mediaTypeObjectSchemaBuilder = <E extends TSchema>(encoding: E) =>\n // @ts-ignore\n compose(\n Type.Object({\n /** The schema defining the content of the request, response, parameter, or header. */\n // @ts-ignore\n schema: Type.Optional(SchemaObjectSchema),\n /** Example of the media type */\n example: Type.Optional(Type.Any()),\n /** Examples of the media type */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n /** A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The encoding field SHALL only apply to Request Body Objects, and only when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. */\n encoding: Type.Optional(Type.Record(Type.String(), encoding)),\n }),\n ExtensionsSchema,\n )\n"],
5
5
  "mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,eAAe;AACxB,SAAS,0BAA0B;AAE5B,MAAM,+BAA+B,CAAoB;AAAA;AAAA,EAE9D;AAAA,IACE,KAAK,OAAO;AAAA;AAAA;AAAA,MAGV,QAAQ,KAAK,SAAS,kBAAkB;AAAA;AAAA,MAExC,SAAS,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,MAEjC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA;AAAA,MAE5G,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,QAAQ,CAAC;AAAA,IAC9D,CAAC;AAAA,IACD;AAAA,EACF;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- import { compose } from "../../../schemas/v3.1/compose.js";
1
+ import { compose } from "../../../schemas/compose.js";
2
2
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
3
  import { Type } from "@sinclair/typebox";
4
4
  const OAuthFlowCommonSchema = Type.Object({
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** Common properties used across all OAuth flows */\nconst OAuthFlowCommonSchema = Type.Object({\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: Type.Optional(Type.String()),\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Type.Record(Type.String(), Type.String()),\n})\n\n/** Configuration for the OAuth Implicit flow */\nexport const OAuthFlowImplicitSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport const OAuthFlowPasswordSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport const OAuthFlowClientCredentialsSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport const OAuthFlowAuthorizationCodeSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Union of all OAuth flow schemas */\nexport const OAuthFlowObjectSchema = Type.Union([\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n])\n\nexport type OAuthFlowObject = Static<typeof OAuthFlowObjectSchema>\nexport type OAuthFlowImplicit = Static<typeof OAuthFlowImplicitSchema>\nexport type OAuthFlowPassword = Static<typeof OAuthFlowPasswordSchema>\nexport type OAuthFlowClientCredentials = Static<typeof OAuthFlowClientCredentialsSchema>\nexport type OAuthFlowAuthorizationCode = Static<typeof OAuthFlowAuthorizationCodeSchema>\n"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** Common properties used across all OAuth flows */\nconst OAuthFlowCommonSchema = Type.Object({\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: Type.Optional(Type.String()),\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Type.Record(Type.String(), Type.String()),\n})\n\n/** Configuration for the OAuth Implicit flow */\nexport const OAuthFlowImplicitSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport const OAuthFlowPasswordSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport const OAuthFlowClientCredentialsSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport const OAuthFlowAuthorizationCodeSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n ExtensionsSchema,\n)\n\n/** Union of all OAuth flow schemas */\nexport const OAuthFlowObjectSchema = Type.Union([\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n])\n\nexport type OAuthFlowObject = Static<typeof OAuthFlowObjectSchema>\nexport type OAuthFlowImplicit = Static<typeof OAuthFlowImplicitSchema>\nexport type OAuthFlowPassword = Static<typeof OAuthFlowPasswordSchema>\nexport type OAuthFlowClientCredentials = Static<typeof OAuthFlowClientCredentialsSchema>\nexport type OAuthFlowAuthorizationCode = Static<typeof OAuthFlowAuthorizationCodeSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAGlC,MAAM,wBAAwB,KAAK,OAAO;AAAA;AAAA,EAExC,YAAY,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEvC,QAAQ,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC;AAClD,CAAC;AAGM,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AAGO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AAGO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AAGO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA;AAAA,IAE9B,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AAGO,MAAM,wBAAwB,KAAK,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -5,7 +5,7 @@ import {
5
5
  OAuthFlowClientCredentialsSchema,
6
6
  OAuthFlowAuthorizationCodeSchema
7
7
  } from "./oauth-flow.js";
8
- import { compose } from "../../../schemas/v3.1/compose.js";
8
+ import { compose } from "../../../schemas/compose.js";
9
9
  const OAuthFlowsObjectSchema = compose(
10
10
  Type.Object({
11
11
  /** Configuration for the OAuth Implicit flow */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/oauthflows.ts"],
4
- "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport {\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n} from './oauth-flow'\nimport { compose } from '@/schemas/v3.1/compose'\n\n/**\n * Allows configuration of the supported OAuth Flows.\n */\nexport const OAuthFlowsObjectSchema = compose(\n Type.Object({\n /** Configuration for the OAuth Implicit flow */\n implicit: Type.Optional(OAuthFlowImplicitSchema),\n /** Configuration for the OAuth Resource Owner Password flow */\n password: Type.Optional(OAuthFlowPasswordSchema),\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials: Type.Optional(OAuthFlowClientCredentialsSchema),\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\n authorizationCode: Type.Optional(OAuthFlowAuthorizationCodeSchema),\n }),\n)\n\nexport type OAuthFlowsObject = Static<typeof OAuthFlowsObjectSchema>\n"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport {\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n} from './oauth-flow'\nimport { compose } from '@/schemas/compose'\n\n/**\n * Allows configuration of the supported OAuth Flows.\n */\nexport const OAuthFlowsObjectSchema = compose(\n Type.Object({\n /** Configuration for the OAuth Implicit flow */\n implicit: Type.Optional(OAuthFlowImplicitSchema),\n /** Configuration for the OAuth Resource Owner Password flow */\n password: Type.Optional(OAuthFlowPasswordSchema),\n /** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\n clientCredentials: Type.Optional(OAuthFlowClientCredentialsSchema),\n /** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\n authorizationCode: Type.Optional(OAuthFlowAuthorizationCodeSchema),\n }),\n)\n\nexport type OAuthFlowsObject = Static<typeof OAuthFlowsObjectSchema>\n"],
5
5
  "mappings": "AAAA,SAAS,YAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe;AAKjB,MAAM,yBAAyB;AAAA,EACpC,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,SAAS,uBAAuB;AAAA;AAAA,IAE/C,UAAU,KAAK,SAAS,uBAAuB;AAAA;AAAA,IAE/C,mBAAmB,KAAK,SAAS,gCAAgC;AAAA;AAAA,IAEjE,mBAAmB,KAAK,SAAS,gCAAgC;AAAA,EACnE,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -21,6 +21,69 @@ declare const OpenApiExtensionsSchema: TObject<{
21
21
  }>, TObject<{
22
22
  'x-displayName': TOptional<TString>;
23
23
  }>, TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
24
+ 'x-scalar-client-config-active-environment': TOptional<TString>;
25
+ 'x-scalar-client-config-icon': TOptional<TString>;
26
+ 'x-scalar-client-config-environments': TOptional<TRecord<TString, TObject<{
27
+ description: TOptional<TString>;
28
+ color: TOptional<TString>;
29
+ variables: TRecord<TString, import("@sinclair/typebox").TUnion<[TObject<{
30
+ description: TOptional<TString>;
31
+ default: TOptional<TString>;
32
+ }>, TString]>>;
33
+ }>>>;
34
+ 'x-scalar-client-config-cookies': TOptional<TRecord<TString, TObject<{
35
+ name: TString;
36
+ value: TString;
37
+ domain: TOptional<TString>;
38
+ path: TOptional<TString>;
39
+ }>>>;
40
+ "x-scalar-navigation": TOptional<TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TUnion<[TIntersect<[TObject<{
41
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"operation">, import("@sinclair/typebox").TLiteral<"model">, import("@sinclair/typebox").TLiteral<"tag">, import("@sinclair/typebox").TLiteral<"webhook">]>;
42
+ id: TString;
43
+ title: TString;
44
+ }>, TObject<{
45
+ type: import("@sinclair/typebox").TLiteral<"text">;
46
+ children: TOptional<TArray<TObject<{
47
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"operation">, import("@sinclair/typebox").TLiteral<"model">, import("@sinclair/typebox").TLiteral<"tag">, import("@sinclair/typebox").TLiteral<"webhook">]>;
48
+ id: TString;
49
+ title: TString;
50
+ }>>>;
51
+ }>]>, TIntersect<[TObject<{
52
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"operation">, import("@sinclair/typebox").TLiteral<"model">, import("@sinclair/typebox").TLiteral<"tag">, import("@sinclair/typebox").TLiteral<"webhook">]>;
53
+ id: TString;
54
+ title: TString;
55
+ }>, TObject<{
56
+ type: import("@sinclair/typebox").TLiteral<"operation">;
57
+ ref: TString;
58
+ method: TString;
59
+ path: TString;
60
+ }>]>, TIntersect<[TObject<{
61
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"operation">, import("@sinclair/typebox").TLiteral<"model">, import("@sinclair/typebox").TLiteral<"tag">, import("@sinclair/typebox").TLiteral<"webhook">]>;
62
+ id: TString;
63
+ title: TString;
64
+ }>, TObject<{
65
+ type: import("@sinclair/typebox").TLiteral<"model">;
66
+ ref: TString;
67
+ name: TString;
68
+ }>]>, TIntersect<[TObject<{
69
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"operation">, import("@sinclair/typebox").TLiteral<"model">, import("@sinclair/typebox").TLiteral<"tag">, import("@sinclair/typebox").TLiteral<"webhook">]>;
70
+ id: TString;
71
+ title: TString;
72
+ }>, TObject<{
73
+ type: import("@sinclair/typebox").TLiteral<"tag">;
74
+ name: TString;
75
+ children: TOptional<TArray<import("@sinclair/typebox").TThis>>;
76
+ isGroup: import("@sinclair/typebox").TBoolean;
77
+ }>]>, TIntersect<[TObject<{
78
+ type: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"operation">, import("@sinclair/typebox").TLiteral<"model">, import("@sinclair/typebox").TLiteral<"tag">, import("@sinclair/typebox").TLiteral<"webhook">]>;
79
+ id: TString;
80
+ title: TString;
81
+ }>, TObject<{
82
+ type: import("@sinclair/typebox").TLiteral<"webhook">;
83
+ ref: TString;
84
+ method: TString;
85
+ name: TString;
86
+ }>]>]>>>>;
24
87
  }>;
25
88
  /**
26
89
  * The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.
@@ -1 +1 @@
1
- {"version":3,"file":"openapi-document.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/openapi-document.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAA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,OAAO,gBAAgB,CAAA;QAC7B,iBAAiB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;QACrC,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAA;QACrD,KAAK,EAAE,SAAS,CAAC,OAAO,iBAAiB,CAAC,CAAA;QAC1C,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,oBAAoB,CAAC,CAAC,CAAA;QAClE,UAAU,EAAE,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAA;QACpD,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAC,CAAA;QACnE,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC,CAAA;QAC/C,YAAY,EAAE,SAAS,CAAC,OAAO,iCAAiC,CAAC,CAAA;KAClE,CAAC;IACF,OAAO,gBAAgB;IACvB,OAAO,uBAAuB;CAC/B,CACF,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,yBAyBnC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
@@ -9,8 +9,12 @@ import { SecurityRequirementObjectSchema } from "./security-requirement.js";
9
9
  import { TagObjectSchema } from "./tag.js";
10
10
  import { ExternalDocumentationObjectSchema } from "./external-documentation.js";
11
11
  import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
12
- import { compose } from "../../../schemas/v3.1/compose.js";
12
+ import { compose } from "../../../schemas/compose.js";
13
13
  import { PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
14
+ import { xScalarClientConfigEnvironmentsSchema } from "../../../schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js";
15
+ import { xScalarClientConfigCookiesSchema } from "../../../schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js";
16
+ import { extensions } from "../../../schemas/extensions.js";
17
+ import { TraversedEntrySchema } from "../../../schemas/navigation.js";
14
18
  const OpenApiExtensionsSchema = Type.Partial(
15
19
  Type.Object({
16
20
  "x-tagGroups": Type.Array(
@@ -20,7 +24,13 @@ const OpenApiExtensionsSchema = Type.Partial(
20
24
  }),
21
25
  TagObjectSchema
22
26
  )
23
- )
27
+ ),
28
+ "x-scalar-client-config-active-environment": Type.String(),
29
+ /** A custom icon representing the collection */
30
+ "x-scalar-client-config-icon": Type.String(),
31
+ "x-scalar-client-config-environments": xScalarClientConfigEnvironmentsSchema,
32
+ "x-scalar-client-config-cookies": xScalarClientConfigCookiesSchema,
33
+ [extensions.document.navigation]: Type.Array(TraversedEntrySchema)
24
34
  })
25
35
  );
26
36
  const OpenAPIDocumentSchema = compose(
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/openapi-document.ts"],
4
- "sourcesContent": ["import {\n Type,\n type Static,\n type TArray,\n type TIntersect,\n type TObject,\n type TOptional,\n type TRecord,\n type TString,\n} from '@sinclair/typebox'\nimport { InfoObjectSchema } from './info'\nimport { ServerObjectSchema } from './server'\nimport { PathsObjectSchema } from './paths'\nimport { ComponentsObjectSchema } from './components'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { TagObjectSchema } from './tag'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\nimport { PathItemObjectSchema } from '@/schemas/v3.1/strict/path-operations'\n\nconst OpenApiExtensionsSchema = Type.Partial(\n Type.Object({\n 'x-tagGroups': Type.Array(\n compose(\n Type.Object({\n tags: Type.Array(Type.String()),\n }),\n TagObjectSchema,\n ),\n ),\n }),\n)\n\n/**\n * The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.\n * This is due to the complex nested structure of the OpenAPI document schema, which includes multiple optional fields,\n * arrays, and nested objects. The explicit type annotation helps TypeScript handle this large type definition.\n */\nexport type OpenApiDocumentSchemaType = TIntersect<\n [\n TObject<{\n openapi: TString\n info: typeof InfoObjectSchema\n jsonSchemaDialect: TOptional<TString>\n servers: TOptional<TArray<typeof ServerObjectSchema>>\n paths: TOptional<typeof PathsObjectSchema>\n webhooks: TOptional<TRecord<TString, typeof PathItemObjectSchema>>\n components: TOptional<typeof ComponentsObjectSchema>\n security: TOptional<TArray<typeof SecurityRequirementObjectSchema>>\n tags: TOptional<TArray<typeof TagObjectSchema>>\n externalDocs: TOptional<typeof ExternalDocumentationObjectSchema>\n }>,\n typeof ExtensionsSchema,\n typeof OpenApiExtensionsSchema,\n ]\n>\n\nexport const OpenAPIDocumentSchema: OpenApiDocumentSchemaType = compose(\n Type.Object({\n /** REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string. */\n openapi: Type.String(),\n /** REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. */\n info: InfoObjectSchema,\n /** The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI. */\n jsonSchemaDialect: Type.Optional(Type.String()),\n /** An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** The available paths and operations for the API. */\n paths: Type.Optional(PathsObjectSchema),\n /** The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An example is available. */\n webhooks: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema)),\n /** An element to hold various Objects for the OpenAPI Description. */\n components: Type.Optional(ComponentsObjectSchema),\n /** A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. Individual operations can override this definition. The list can be incomplete, up to being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included in the array. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectSchema)),\n /** A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique. */\n tags: Type.Optional(Type.Array(TagObjectSchema)),\n /** Additional external documentation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectSchema),\n }),\n ExtensionsSchema,\n OpenApiExtensionsSchema,\n)\n\nexport type OpenApiDocument = Static<typeof OpenAPIDocumentSchema>\n"],
5
- "mappings": "AAAA;AAAA,EACE;AAAA,OAQK;AACP,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,uCAAuC;AAChD,SAAS,uBAAuB;AAChC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,4BAA4B;AAErC,MAAM,0BAA0B,KAAK;AAAA,EACnC,KAAK,OAAO;AAAA,IACV,eAAe,KAAK;AAAA,MAClB;AAAA,QACE,KAAK,OAAO;AAAA,UACV,MAAM,KAAK,MAAM,KAAK,OAAO,CAAC;AAAA,QAChC,CAAC;AAAA,QACD;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AACH;AA0BO,MAAM,wBAAmD;AAAA,EAC9D,KAAK,OAAO;AAAA;AAAA,IAEV,SAAS,KAAK,OAAO;AAAA;AAAA,IAErB,MAAM;AAAA;AAAA,IAEN,mBAAmB,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAE9C,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,IAErD,OAAO,KAAK,SAAS,iBAAiB;AAAA;AAAA,IAEtC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,oBAAoB,CAAC;AAAA;AAAA,IAExE,YAAY,KAAK,SAAS,sBAAsB;AAAA;AAAA,IAEhD,UAAU,KAAK,SAAS,KAAK,MAAM,+BAA+B,CAAC;AAAA;AAAA,IAEnE,MAAM,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAAA;AAAA,IAE/C,cAAc,KAAK,SAAS,iCAAiC;AAAA,EAC/D,CAAC;AAAA,EACD;AAAA,EACA;AACF;",
4
+ "sourcesContent": ["import {\n Type,\n type Static,\n type TArray,\n type TIntersect,\n type TObject,\n type TOptional,\n type TRecord,\n type TString,\n} from '@sinclair/typebox'\nimport { InfoObjectSchema } from './info'\nimport { ServerObjectSchema } from './server'\nimport { PathsObjectSchema } from './paths'\nimport { ComponentsObjectSchema } from './components'\nimport { SecurityRequirementObjectSchema } from './security-requirement'\nimport { TagObjectSchema } from './tag'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/compose'\nimport { PathItemObjectSchema } from '@/schemas/v3.1/strict/path-operations'\nimport { xScalarClientConfigEnvironmentsSchema } from '@/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments'\nimport { xScalarClientConfigCookiesSchema } from '@/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies'\nimport { extensions } from '@/schemas/extensions'\nimport { TraversedEntrySchema } from '@/schemas/navigation'\n\nconst OpenApiExtensionsSchema = Type.Partial(\n Type.Object({\n 'x-tagGroups': Type.Array(\n compose(\n Type.Object({\n tags: Type.Array(Type.String()),\n }),\n TagObjectSchema,\n ),\n ),\n 'x-scalar-client-config-active-environment': Type.String(),\n /** A custom icon representing the collection */\n 'x-scalar-client-config-icon': Type.String(),\n 'x-scalar-client-config-environments': xScalarClientConfigEnvironmentsSchema,\n 'x-scalar-client-config-cookies': xScalarClientConfigCookiesSchema,\n [extensions.document.navigation]: Type.Array(TraversedEntrySchema),\n }),\n)\n\n/**\n * The type annotation is needed because the inferred type of this node exceeds the maximum length the compiler will serialize.\n * This is due to the complex nested structure of the OpenAPI document schema, which includes multiple optional fields,\n * arrays, and nested objects. The explicit type annotation helps TypeScript handle this large type definition.\n */\nexport type OpenApiDocumentSchemaType = TIntersect<\n [\n TObject<{\n openapi: TString\n info: typeof InfoObjectSchema\n jsonSchemaDialect: TOptional<TString>\n servers: TOptional<TArray<typeof ServerObjectSchema>>\n paths: TOptional<typeof PathsObjectSchema>\n webhooks: TOptional<TRecord<TString, typeof PathItemObjectSchema>>\n components: TOptional<typeof ComponentsObjectSchema>\n security: TOptional<TArray<typeof SecurityRequirementObjectSchema>>\n tags: TOptional<TArray<typeof TagObjectSchema>>\n externalDocs: TOptional<typeof ExternalDocumentationObjectSchema>\n }>,\n typeof ExtensionsSchema,\n typeof OpenApiExtensionsSchema,\n ]\n>\n\nexport const OpenAPIDocumentSchema: OpenApiDocumentSchemaType = compose(\n Type.Object({\n /** REQUIRED. This string MUST be the version number of the OpenAPI Specification that the OpenAPI Document uses. The openapi field SHOULD be used by tooling to interpret the OpenAPI Document. This is not related to the API info.version string. */\n openapi: Type.String(),\n /** REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required. */\n info: InfoObjectSchema,\n /** The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI. */\n jsonSchemaDialect: Type.Optional(Type.String()),\n /** An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** The available paths and operations for the API. */\n paths: Type.Optional(PathsObjectSchema),\n /** The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement. Closely related to the callbacks feature, this section describes requests initiated other than by an API call, for example by an out of band registration. The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An example is available. */\n webhooks: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema)),\n /** An element to hold various Objects for the OpenAPI Description. */\n components: Type.Optional(ComponentsObjectSchema),\n /** A declaration of which security mechanisms can be used across the API. The list of values includes alternative Security Requirement Objects that can be used. Only one of the Security Requirement Objects need to be satisfied to authorize a request. Individual operations can override this definition. The list can be incomplete, up to being empty or absent. To make security explicitly optional, an empty security requirement ({}) can be included in the array. */\n security: Type.Optional(Type.Array(SecurityRequirementObjectSchema)),\n /** A list of tags used by the OpenAPI Description with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique. */\n tags: Type.Optional(Type.Array(TagObjectSchema)),\n /** Additional external documentation. */\n externalDocs: Type.Optional(ExternalDocumentationObjectSchema),\n }),\n ExtensionsSchema,\n OpenApiExtensionsSchema,\n)\n\nexport type OpenApiDocument = Static<typeof OpenAPIDocumentSchema>\n"],
5
+ "mappings": "AAAA;AAAA,EACE;AAAA,OAQK;AACP,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,uCAAuC;AAChD,SAAS,uBAAuB;AAChC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,4BAA4B;AACrC,SAAS,6CAA6C;AACtD,SAAS,wCAAwC;AACjD,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AAErC,MAAM,0BAA0B,KAAK;AAAA,EACnC,KAAK,OAAO;AAAA,IACV,eAAe,KAAK;AAAA,MAClB;AAAA,QACE,KAAK,OAAO;AAAA,UACV,MAAM,KAAK,MAAM,KAAK,OAAO,CAAC;AAAA,QAChC,CAAC;AAAA,QACD;AAAA,MACF;AAAA,IACF;AAAA,IACA,6CAA6C,KAAK,OAAO;AAAA;AAAA,IAEzD,+BAA+B,KAAK,OAAO;AAAA,IAC3C,uCAAuC;AAAA,IACvC,kCAAkC;AAAA,IAClC,CAAC,WAAW,SAAS,UAAU,GAAG,KAAK,MAAM,oBAAoB;AAAA,EACnE,CAAC;AACH;AA0BO,MAAM,wBAAmD;AAAA,EAC9D,KAAK,OAAO;AAAA;AAAA,IAEV,SAAS,KAAK,OAAO;AAAA;AAAA,IAErB,MAAM;AAAA;AAAA,IAEN,mBAAmB,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAE9C,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,IAErD,OAAO,KAAK,SAAS,iBAAiB;AAAA;AAAA,IAEtC,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,oBAAoB,CAAC;AAAA;AAAA,IAExE,YAAY,KAAK,SAAS,sBAAsB;AAAA;AAAA,IAEhD,UAAU,KAAK,SAAS,KAAK,MAAM,+BAA+B,CAAC;AAAA;AAAA,IAEnE,MAAM,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAAA;AAAA,IAE/C,cAAc,KAAK,SAAS,iCAAiC;AAAA,EAC/D,CAAC;AAAA,EACD;AAAA,EACA;AACF;",
6
6
  "names": []
7
7
  }
@@ -570,6 +570,24 @@ export declare const operationObjectSchemaBuilder: <C extends TSchema>(callback:
570
570
  $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
571
571
  $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
572
572
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
573
+ }>, import("@sinclair/typebox").TObject<{
574
+ 'x-scalar-client-config-request-example': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
575
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
576
+ body: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
577
+ encoding: import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"application/json" | "text/plain" | "text/html" | "application/javascript" | "application/xml" | "application/yaml" | "application/edn" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "binary">[]>;
578
+ content: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>, import("@sinclair/typebox").TString]>;
579
+ file: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
580
+ url: import("@sinclair/typebox").TString;
581
+ base64: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
582
+ }>, import("@sinclair/typebox").TNull]>>;
583
+ }>>;
584
+ parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
585
+ path: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
586
+ query: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
587
+ header: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
588
+ cookie: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
589
+ }>>;
590
+ }>>>;
573
591
  }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
574
592
  $ref: import("@sinclair/typebox").TString;
575
593
  summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;