@scalar/workspace-store 0.12.0 → 0.14.1

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 (431) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/client.d.ts +261 -33
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +176 -282
  5. package/dist/client.js.map +2 -2
  6. package/dist/helpers/apply-selective-updates.d.ts +1 -1
  7. package/dist/helpers/apply-selective-updates.d.ts.map +1 -1
  8. package/dist/helpers/apply-selective-updates.js +1 -1
  9. package/dist/helpers/apply-selective-updates.js.map +2 -2
  10. package/dist/helpers/deep-clone.d.ts +21 -0
  11. package/dist/helpers/deep-clone.d.ts.map +1 -0
  12. package/dist/helpers/deep-clone.js +18 -0
  13. package/dist/helpers/deep-clone.js.map +7 -0
  14. package/dist/helpers/get-resolved-ref.d.ts +19 -0
  15. package/dist/helpers/get-resolved-ref.d.ts.map +1 -0
  16. package/dist/helpers/get-resolved-ref.js +13 -0
  17. package/dist/helpers/get-resolved-ref.js.map +7 -0
  18. package/dist/helpers/merge-object.d.ts +9 -1
  19. package/dist/helpers/merge-object.d.ts.map +1 -1
  20. package/dist/helpers/merge-object.js +10 -2
  21. package/dist/helpers/merge-object.js.map +2 -2
  22. package/dist/helpers/overrides-proxy.d.ts +43 -1
  23. package/dist/helpers/overrides-proxy.d.ts.map +1 -1
  24. package/dist/helpers/overrides-proxy.js +2 -2
  25. package/dist/helpers/overrides-proxy.js.map +2 -2
  26. package/dist/mutators/helpers.d.ts +2 -34830
  27. package/dist/mutators/helpers.d.ts.map +1 -1
  28. package/dist/mutators/helpers.js.map +2 -2
  29. package/dist/mutators/request-example.d.ts.map +1 -1
  30. package/dist/mutators/request-example.js +4 -7
  31. package/dist/mutators/request-example.js.map +2 -2
  32. package/dist/navigation/helpers/traverse-document.js +2 -2
  33. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  34. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  35. package/dist/navigation/helpers/traverse-paths.js +8 -5
  36. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  37. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  38. package/dist/navigation/helpers/traverse-schemas.js +8 -5
  39. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  40. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  41. package/dist/navigation/helpers/traverse-webhooks.js +9 -5
  42. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  43. package/dist/navigation/types.d.ts +3 -3
  44. package/dist/navigation/types.d.ts.map +1 -1
  45. package/dist/plugins.d.ts +93 -0
  46. package/dist/plugins.d.ts.map +1 -0
  47. package/dist/plugins.js +107 -0
  48. package/dist/plugins.js.map +7 -0
  49. package/dist/schemas/extensions/document/x-internal.d.ts +4 -0
  50. package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -0
  51. package/dist/schemas/extensions/document/x-internal.js +8 -0
  52. package/dist/schemas/extensions/document/x-internal.js.map +7 -0
  53. package/dist/schemas/extensions/document/x-scalar-icon.d.ts +4 -0
  54. package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -0
  55. package/dist/schemas/extensions/document/x-scalar-icon.js +8 -0
  56. package/dist/schemas/extensions/document/x-scalar-icon.js.map +7 -0
  57. package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -0
  58. package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -0
  59. package/dist/schemas/extensions/document/x-scalar-ignore.js +8 -0
  60. package/dist/schemas/extensions/document/x-scalar-ignore.js.map +7 -0
  61. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +8 -0
  62. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -0
  63. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +16 -0
  64. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +7 -0
  65. package/dist/schemas/extensions/operation/x-badge.d.ts +58 -0
  66. package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -0
  67. package/dist/schemas/extensions/operation/x-badge.js +41 -0
  68. package/dist/schemas/extensions/operation/x-badge.js.map +7 -0
  69. package/dist/schemas/extensions/operation/x-code-samples.d.ts +23 -0
  70. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -0
  71. package/dist/schemas/extensions/operation/x-code-samples.js +16 -0
  72. package/dist/schemas/extensions/operation/x-code-samples.js.map +7 -0
  73. package/dist/schemas/extensions/operation/x-post-response.d.ts +19 -0
  74. package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -0
  75. package/dist/schemas/extensions/operation/x-post-response.js +8 -0
  76. package/dist/schemas/extensions/operation/x-post-response.js.map +7 -0
  77. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +18 -0
  78. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -0
  79. package/dist/schemas/extensions/operation/x-scalar-stability.js +16 -0
  80. package/dist/schemas/extensions/operation/x-scalar-stability.js.map +7 -0
  81. package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +11 -0
  82. package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts.map +1 -0
  83. package/dist/schemas/extensions/schema/x-additional-properties-name.js +8 -0
  84. package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +7 -0
  85. package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +17 -0
  86. package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -0
  87. package/dist/schemas/extensions/schema/x-enum-descriptions.js +8 -0
  88. package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +7 -0
  89. package/dist/schemas/extensions/schema/x-variable.d.ts +4 -0
  90. package/dist/schemas/extensions/schema/x-variable.d.ts.map +1 -0
  91. package/dist/schemas/extensions/schema/x-variable.js +8 -0
  92. package/dist/schemas/extensions/schema/x-variable.js.map +7 -0
  93. package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +17 -0
  94. package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts.map +1 -0
  95. package/dist/schemas/extensions/security/x-scalar-credentials-location.js +8 -0
  96. package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +7 -0
  97. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +4 -0
  98. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +1 -0
  99. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +8 -0
  100. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +7 -0
  101. package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +15 -0
  102. package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -0
  103. package/dist/schemas/extensions/security/x-scalar-security-body.js +8 -0
  104. package/dist/schemas/extensions/security/x-scalar-security-body.js.map +7 -0
  105. package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +15 -0
  106. package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -0
  107. package/dist/schemas/extensions/security/x-scalar-security-query.js +8 -0
  108. package/dist/schemas/extensions/security/x-scalar-security-query.js.map +7 -0
  109. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +18 -0
  110. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -0
  111. package/dist/schemas/extensions/security/x-scalar-security-secrets.js +13 -0
  112. package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +7 -0
  113. package/dist/schemas/extensions/security/x-tokenName.d.ts +12 -0
  114. package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -0
  115. package/dist/schemas/extensions/security/x-tokenName.js +8 -0
  116. package/dist/schemas/extensions/security/x-tokenName.js.map +7 -0
  117. package/dist/schemas/extensions/security/x-use-pkce.d.ts +7 -0
  118. package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -0
  119. package/dist/schemas/extensions/security/x-use-pkce.js +13 -0
  120. package/dist/schemas/extensions/security/x-use-pkce.js.map +7 -0
  121. package/dist/schemas/extensions/tag/x-display-name.d.ts +12 -0
  122. package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -0
  123. package/dist/schemas/extensions/tag/x-display-name.js +8 -0
  124. package/dist/schemas/extensions/tag/x-display-name.js.map +7 -0
  125. package/dist/schemas/extensions/tag/x-tag-groups.d.ts +28 -0
  126. package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -0
  127. package/dist/schemas/extensions/tag/x-tag-groups.js +19 -0
  128. package/dist/schemas/extensions/tag/x-tag-groups.js.map +7 -0
  129. package/dist/schemas/inmemory-workspace.d.ts +48 -5545
  130. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  131. package/dist/schemas/inmemory-workspace.js +12 -3
  132. package/dist/schemas/inmemory-workspace.js.map +2 -2
  133. package/dist/schemas/reference-config/index.d.ts +12 -4
  134. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  135. package/dist/schemas/reference-config/index.js +0 -6
  136. package/dist/schemas/reference-config/index.js.map +2 -2
  137. package/dist/schemas/reference-config/settings.d.ts +12 -1
  138. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  139. package/dist/schemas/reference-config/settings.js +9 -2
  140. package/dist/schemas/reference-config/settings.js.map +2 -2
  141. package/dist/schemas/typebox-coerce.d.ts.map +1 -1
  142. package/dist/schemas/typebox-coerce.js +1 -3
  143. package/dist/schemas/typebox-coerce.js.map +2 -2
  144. package/dist/schemas/v3.1/loose/callback.d.ts +10 -0
  145. package/dist/schemas/v3.1/loose/callback.d.ts.map +1 -0
  146. package/dist/schemas/v3.1/loose/callback.js +11 -0
  147. package/dist/schemas/v3.1/loose/callback.js.map +7 -0
  148. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
  149. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
  150. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
  151. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
  152. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
  153. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
  154. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js +23 -0
  155. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
  156. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
  157. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
  158. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
  159. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
  160. package/dist/schemas/v3.1/loose/components.d.ts +43 -0
  161. package/dist/schemas/v3.1/loose/components.d.ts.map +1 -0
  162. package/dist/schemas/v3.1/loose/components.js +41 -0
  163. package/dist/schemas/v3.1/loose/components.js.map +7 -0
  164. package/dist/schemas/v3.1/loose/contact.d.ts +10 -0
  165. package/dist/schemas/v3.1/loose/contact.d.ts.map +1 -0
  166. package/dist/schemas/v3.1/loose/contact.js +13 -0
  167. package/dist/schemas/v3.1/loose/contact.js.map +7 -0
  168. package/dist/schemas/v3.1/loose/discriminator.d.ts +12 -0
  169. package/dist/schemas/v3.1/loose/discriminator.d.ts.map +1 -0
  170. package/dist/schemas/v3.1/loose/discriminator.js +11 -0
  171. package/dist/schemas/v3.1/loose/discriminator.js.map +7 -0
  172. package/dist/schemas/v3.1/loose/encoding.d.ts +15 -0
  173. package/dist/schemas/v3.1/loose/encoding.d.ts.map +1 -0
  174. package/dist/schemas/v3.1/loose/encoding.js +12 -0
  175. package/dist/schemas/v3.1/loose/encoding.js.map +7 -0
  176. package/dist/schemas/v3.1/loose/example.d.ts +16 -0
  177. package/dist/schemas/v3.1/loose/example.d.ts.map +1 -0
  178. package/dist/schemas/v3.1/loose/example.js +15 -0
  179. package/dist/schemas/v3.1/loose/example.js.map +7 -0
  180. package/dist/schemas/v3.1/loose/external-documentation.d.ts +8 -0
  181. package/dist/schemas/v3.1/loose/external-documentation.d.ts.map +1 -0
  182. package/dist/schemas/v3.1/loose/external-documentation.js +11 -0
  183. package/dist/schemas/v3.1/loose/external-documentation.js.map +7 -0
  184. package/dist/schemas/v3.1/loose/header.d.ts +355 -0
  185. package/dist/schemas/v3.1/loose/header.d.ts.map +1 -0
  186. package/dist/schemas/v3.1/loose/header.js +43 -0
  187. package/dist/schemas/v3.1/loose/header.js.map +7 -0
  188. package/dist/schemas/v3.1/loose/info.d.ts +48 -0
  189. package/dist/schemas/v3.1/loose/info.d.ts.map +1 -0
  190. package/dist/schemas/v3.1/loose/info.js +29 -0
  191. package/dist/schemas/v3.1/loose/info.js.map +7 -0
  192. package/dist/schemas/v3.1/loose/license.d.ts +10 -0
  193. package/dist/schemas/v3.1/loose/license.d.ts.map +1 -0
  194. package/dist/schemas/v3.1/loose/license.js +13 -0
  195. package/dist/schemas/v3.1/loose/license.js.map +7 -0
  196. package/dist/schemas/v3.1/loose/link.d.ts +30 -0
  197. package/dist/schemas/v3.1/loose/link.d.ts.map +1 -0
  198. package/dist/schemas/v3.1/loose/link.js +20 -0
  199. package/dist/schemas/v3.1/loose/link.js.map +7 -0
  200. package/dist/schemas/v3.1/loose/media-header-encoding.d.ts +1012 -0
  201. package/dist/schemas/v3.1/loose/media-header-encoding.d.ts.map +1 -0
  202. package/dist/schemas/v3.1/loose/media-header-encoding.js +19 -0
  203. package/dist/schemas/v3.1/loose/media-header-encoding.js.map +7 -0
  204. package/dist/schemas/v3.1/loose/media-type.d.ts +161 -0
  205. package/dist/schemas/v3.1/loose/media-type.d.ts.map +1 -0
  206. package/dist/schemas/v3.1/loose/media-type.js +18 -0
  207. package/dist/schemas/v3.1/loose/media-type.js.map +7 -0
  208. package/dist/schemas/v3.1/loose/oauth-flow.d.ts +95 -0
  209. package/dist/schemas/v3.1/loose/oauth-flow.d.ts.map +1 -0
  210. package/dist/schemas/v3.1/loose/oauth-flow.js +57 -0
  211. package/dist/schemas/v3.1/loose/oauth-flow.js.map +7 -0
  212. package/dist/schemas/v3.1/loose/oauthflows.d.ts +43 -0
  213. package/dist/schemas/v3.1/loose/oauthflows.d.ts.map +1 -0
  214. package/dist/schemas/v3.1/loose/oauthflows.js +21 -0
  215. package/dist/schemas/v3.1/loose/oauthflows.js.map +7 -0
  216. package/dist/schemas/v3.1/loose/openapi-document.d.ts +115 -0
  217. package/dist/schemas/v3.1/loose/openapi-document.d.ts.map +1 -0
  218. package/dist/schemas/v3.1/loose/openapi-document.js +64 -0
  219. package/dist/schemas/v3.1/loose/openapi-document.js.map +7 -0
  220. package/dist/schemas/v3.1/loose/operation.d.ts +1645 -0
  221. package/dist/schemas/v3.1/loose/operation.d.ts.map +1 -0
  222. package/dist/schemas/v3.1/loose/operation.js +61 -0
  223. package/dist/schemas/v3.1/loose/operation.js.map +7 -0
  224. package/dist/schemas/v3.1/loose/parameter.d.ts +1074 -0
  225. package/dist/schemas/v3.1/loose/parameter.d.ts.map +1 -0
  226. package/dist/schemas/v3.1/loose/parameter.js +54 -0
  227. package/dist/schemas/v3.1/loose/parameter.js.map +7 -0
  228. package/dist/schemas/v3.1/loose/path-item.d.ts +551 -0
  229. package/dist/schemas/v3.1/loose/path-item.d.ts.map +1 -0
  230. package/dist/schemas/v3.1/loose/path-item.js +42 -0
  231. package/dist/schemas/v3.1/loose/path-item.js.map +7 -0
  232. package/dist/schemas/v3.1/loose/path-operations.d.ts +2196 -0
  233. package/dist/schemas/v3.1/loose/path-operations.d.ts.map +1 -0
  234. package/dist/schemas/v3.1/loose/path-operations.js +21 -0
  235. package/dist/schemas/v3.1/loose/path-operations.js.map +7 -0
  236. package/dist/schemas/v3.1/loose/paths.d.ts +20 -0
  237. package/dist/schemas/v3.1/loose/paths.d.ts.map +1 -0
  238. package/dist/schemas/v3.1/loose/paths.js +11 -0
  239. package/dist/schemas/v3.1/loose/paths.js.map +7 -0
  240. package/dist/schemas/v3.1/loose/reference.d.ts +26 -0
  241. package/dist/schemas/v3.1/loose/reference.d.ts.map +1 -0
  242. package/dist/schemas/v3.1/loose/reference.js +24 -0
  243. package/dist/schemas/v3.1/loose/reference.js.map +7 -0
  244. package/dist/schemas/v3.1/loose/request-body.d.ts +339 -0
  245. package/dist/schemas/v3.1/loose/request-body.d.ts.map +1 -0
  246. package/dist/schemas/v3.1/loose/request-body.js +14 -0
  247. package/dist/schemas/v3.1/loose/request-body.js.map +7 -0
  248. package/dist/schemas/v3.1/loose/response.d.ts +698 -0
  249. package/dist/schemas/v3.1/loose/response.d.ts.map +1 -0
  250. package/dist/schemas/v3.1/loose/response.js +18 -0
  251. package/dist/schemas/v3.1/loose/response.js.map +7 -0
  252. package/dist/schemas/v3.1/loose/responses.d.ts +710 -0
  253. package/dist/schemas/v3.1/loose/responses.d.ts.map +1 -0
  254. package/dist/schemas/v3.1/loose/responses.js +11 -0
  255. package/dist/schemas/v3.1/loose/responses.js.map +7 -0
  256. package/dist/schemas/v3.1/loose/schema.d.ts +373 -0
  257. package/dist/schemas/v3.1/loose/schema.d.ts.map +1 -0
  258. package/dist/schemas/v3.1/loose/schema.js +146 -0
  259. package/dist/schemas/v3.1/loose/schema.js.map +7 -0
  260. package/dist/schemas/v3.1/loose/security-requirement.d.ts +11 -0
  261. package/dist/schemas/v3.1/loose/security-requirement.d.ts.map +1 -0
  262. package/dist/schemas/v3.1/loose/security-requirement.js +10 -0
  263. package/dist/schemas/v3.1/loose/security-requirement.js.map +7 -0
  264. package/dist/schemas/v3.1/loose/security-scheme.d.ts +169 -0
  265. package/dist/schemas/v3.1/loose/security-scheme.d.ts.map +1 -0
  266. package/dist/schemas/v3.1/loose/security-scheme.js +64 -0
  267. package/dist/schemas/v3.1/loose/security-scheme.js.map +7 -0
  268. package/dist/schemas/v3.1/loose/server-variable.d.ts +10 -0
  269. package/dist/schemas/v3.1/loose/server-variable.d.ts.map +1 -0
  270. package/dist/schemas/v3.1/loose/server-variable.js +13 -0
  271. package/dist/schemas/v3.1/loose/server-variable.js.map +7 -0
  272. package/dist/schemas/v3.1/loose/server.d.ts +14 -0
  273. package/dist/schemas/v3.1/loose/server.d.ts.map +1 -0
  274. package/dist/schemas/v3.1/loose/server.js +14 -0
  275. package/dist/schemas/v3.1/loose/server.js.map +7 -0
  276. package/dist/schemas/v3.1/loose/tag.d.ts +19 -0
  277. package/dist/schemas/v3.1/loose/tag.d.ts.map +1 -0
  278. package/dist/schemas/v3.1/loose/tag.js +23 -0
  279. package/dist/schemas/v3.1/loose/tag.js.map +7 -0
  280. package/dist/schemas/v3.1/loose/xml.d.ts +18 -0
  281. package/dist/schemas/v3.1/loose/xml.d.ts.map +1 -0
  282. package/dist/schemas/v3.1/loose/xml.js +17 -0
  283. package/dist/schemas/v3.1/loose/xml.js.map +7 -0
  284. package/dist/schemas/v3.1/strict/callback.d.ts +1 -8
  285. package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
  286. package/dist/schemas/v3.1/strict/callback.js +5 -10
  287. package/dist/schemas/v3.1/strict/callback.js.map +2 -2
  288. package/dist/schemas/v3.1/strict/components.d.ts +24 -28
  289. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  290. package/dist/schemas/v3.1/strict/components.js +35 -32
  291. package/dist/schemas/v3.1/strict/components.js.map +2 -2
  292. package/dist/schemas/v3.1/strict/contact.d.ts +2 -2
  293. package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
  294. package/dist/schemas/v3.1/strict/contact.js +8 -13
  295. package/dist/schemas/v3.1/strict/contact.js.map +2 -2
  296. package/dist/schemas/v3.1/strict/discriminator.d.ts +2 -2
  297. package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
  298. package/dist/schemas/v3.1/strict/discriminator.js +6 -11
  299. package/dist/schemas/v3.1/strict/discriminator.js.map +2 -2
  300. package/dist/schemas/v3.1/strict/encoding.d.ts +3 -10
  301. package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
  302. package/dist/schemas/v3.1/strict/encoding.js +7 -12
  303. package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
  304. package/dist/schemas/v3.1/strict/example.d.ts +2 -2
  305. package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
  306. package/dist/schemas/v3.1/strict/example.js +10 -15
  307. package/dist/schemas/v3.1/strict/example.js.map +2 -2
  308. package/dist/schemas/v3.1/strict/external-documentation.d.ts +2 -2
  309. package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
  310. package/dist/schemas/v3.1/strict/external-documentation.js +6 -11
  311. package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
  312. package/dist/schemas/v3.1/strict/header.d.ts +292 -54
  313. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  314. package/dist/schemas/v3.1/strict/header.js +14 -17
  315. package/dist/schemas/v3.1/strict/header.js.map +2 -2
  316. package/dist/schemas/v3.1/strict/info.d.ts +11 -5
  317. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  318. package/dist/schemas/v3.1/strict/info.js +2 -2
  319. package/dist/schemas/v3.1/strict/info.js.map +2 -2
  320. package/dist/schemas/v3.1/strict/license.d.ts +2 -2
  321. package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
  322. package/dist/schemas/v3.1/strict/license.js +8 -13
  323. package/dist/schemas/v3.1/strict/license.js.map +2 -2
  324. package/dist/schemas/v3.1/strict/link.d.ts +6 -6
  325. package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
  326. package/dist/schemas/v3.1/strict/link.js +14 -19
  327. package/dist/schemas/v3.1/strict/link.js.map +2 -2
  328. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +1389 -164
  329. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
  330. package/dist/schemas/v3.1/strict/media-type.d.ts +145 -19
  331. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
  332. package/dist/schemas/v3.1/strict/media-type.js +13 -20
  333. package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
  334. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +24 -8
  335. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  336. package/dist/schemas/v3.1/strict/oauth-flow.js +9 -9
  337. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  338. package/dist/schemas/v3.1/strict/oauthflows.d.ts +12 -4
  339. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  340. package/dist/schemas/v3.1/strict/oauthflows.js +10 -13
  341. package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
  342. package/dist/schemas/v3.1/strict/openapi-document.d.ts +7 -5
  343. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  344. package/dist/schemas/v3.1/strict/openapi-document.js +0 -2
  345. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  346. package/dist/schemas/v3.1/strict/operation.d.ts +4711 -343
  347. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  348. package/dist/schemas/v3.1/strict/operation.js +40 -35
  349. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  350. package/dist/schemas/v3.1/strict/parameter.d.ts +1226 -164
  351. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  352. package/dist/schemas/v3.1/strict/parameter.js +23 -25
  353. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  354. package/dist/schemas/v3.1/strict/path-item.d.ts +1320 -102
  355. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  356. package/dist/schemas/v3.1/strict/path-item.js +35 -40
  357. package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
  358. package/dist/schemas/v3.1/strict/path-operations.d.ts +10601 -11739
  359. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
  360. package/dist/schemas/v3.1/strict/path-operations.js +3 -1
  361. package/dist/schemas/v3.1/strict/path-operations.js.map +2 -2
  362. package/dist/schemas/v3.1/strict/paths.d.ts +3 -5514
  363. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  364. package/dist/schemas/v3.1/strict/paths.js +4 -9
  365. package/dist/schemas/v3.1/strict/paths.js.map +2 -2
  366. package/dist/schemas/v3.1/strict/reference.d.ts +12 -5
  367. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
  368. package/dist/schemas/v3.1/strict/reference.js +4 -4
  369. package/dist/schemas/v3.1/strict/reference.js.map +2 -2
  370. package/dist/schemas/v3.1/strict/request-body.d.ts +468 -56
  371. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
  372. package/dist/schemas/v3.1/strict/request-body.js +8 -13
  373. package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
  374. package/dist/schemas/v3.1/strict/response.d.ts +1121 -130
  375. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
  376. package/dist/schemas/v3.1/strict/response.js +11 -16
  377. package/dist/schemas/v3.1/strict/response.js.map +2 -2
  378. package/dist/schemas/v3.1/strict/responses.d.ts +2352 -139
  379. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
  380. package/dist/schemas/v3.1/strict/responses.js +4 -6
  381. package/dist/schemas/v3.1/strict/responses.js.map +2 -2
  382. package/dist/schemas/v3.1/strict/schema.d.ts +232 -15
  383. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  384. package/dist/schemas/v3.1/strict/schema.js +206 -31
  385. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  386. package/dist/schemas/v3.1/strict/security-requirement.d.ts +1 -1
  387. package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
  388. package/dist/schemas/v3.1/strict/security-requirement.js +4 -9
  389. package/dist/schemas/v3.1/strict/security-requirement.js.map +2 -2
  390. package/dist/schemas/v3.1/strict/security-scheme.d.ts +56 -26
  391. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  392. package/dist/schemas/v3.1/strict/security-scheme.js +11 -8
  393. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  394. package/dist/schemas/v3.1/strict/server-variable.d.ts +2 -2
  395. package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
  396. package/dist/schemas/v3.1/strict/server-variable.js +8 -13
  397. package/dist/schemas/v3.1/strict/server-variable.js.map +2 -2
  398. package/dist/schemas/v3.1/strict/server.d.ts +4 -4
  399. package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
  400. package/dist/schemas/v3.1/strict/server.js +8 -13
  401. package/dist/schemas/v3.1/strict/server.js.map +2 -2
  402. package/dist/schemas/v3.1/strict/tag.d.ts +7 -3
  403. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
  404. package/dist/schemas/v3.1/strict/tag.js +6 -8
  405. package/dist/schemas/v3.1/strict/tag.js.map +2 -2
  406. package/dist/schemas/v3.1/strict/xml.d.ts +2 -2
  407. package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
  408. package/dist/schemas/v3.1/strict/xml.js +12 -17
  409. package/dist/schemas/v3.1/strict/xml.js.map +2 -2
  410. package/dist/schemas/workspace-specification/config.d.ts +10 -2
  411. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  412. package/dist/schemas/workspace-specification/index.d.ts +39 -13
  413. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  414. package/dist/schemas/workspace.d.ts +63 -34
  415. package/dist/schemas/workspace.d.ts.map +1 -1
  416. package/dist/schemas/workspace.js +1 -0
  417. package/dist/schemas/workspace.js.map +2 -2
  418. package/dist/server.d.ts +2 -3290
  419. package/dist/server.d.ts.map +1 -1
  420. package/dist/server.js.map +2 -2
  421. package/dist/types.d.ts +0 -6
  422. package/dist/types.d.ts.map +1 -1
  423. package/package.json +17 -11
  424. package/dist/schemas/v3.1/strict/extensions.d.ts +0 -4
  425. package/dist/schemas/v3.1/strict/extensions.d.ts.map +0 -1
  426. package/dist/schemas/v3.1/strict/extensions.js +0 -6
  427. package/dist/schemas/v3.1/strict/extensions.js.map +0 -7
  428. package/dist/schemas/v3.1/type-guard.d.ts +0 -10
  429. package/dist/schemas/v3.1/type-guard.d.ts.map +0 -1
  430. package/dist/schemas/v3.1/type-guard.js +0 -7
  431. package/dist/schemas/v3.1/type-guard.js.map +0 -7
@@ -1,13 +1,12 @@
1
- import { type Static, type TIntersect, type TObject, type TOptional, type TRecord, type TString, type TUnion } from '@sinclair/typebox';
1
+ import { type Static, type TObject, type TOptional, type TRecord, type TString, type TUnion } from '@sinclair/typebox';
2
2
  import { SchemaObjectSchema } from './schema.js';
3
3
  import { ResponseObjectSchema } from './response.js';
4
- import { ReferenceObjectSchema } from './reference.js';
4
+ import { type ReferenceType } from './reference.js';
5
5
  import { ParameterObjectSchema } from './parameter.js';
6
6
  import { ExampleObjectSchema } from './example.js';
7
7
  import { RequestBodyObjectSchema } from './request-body.js';
8
8
  import { SecuritySchemeObjectSchema } from './security-scheme.js';
9
9
  import { LinkObjectSchema } from './link.js';
10
- import { ExtensionsSchema } from '../../../schemas/v3.1/strict/extensions.js';
11
10
  import { HeaderObjectSchema } from '../../../schemas/v3.1/strict/media-header-encoding.js';
12
11
  import { CallbackObjectSchema, PathItemObjectSchema } from '../../../schemas/v3.1/strict/path-operations.js';
13
12
  /**
@@ -17,31 +16,28 @@ import { CallbackObjectSchema, PathItemObjectSchema } from '../../../schemas/v3.
17
16
  *
18
17
  * @see https://github.com/microsoft/TypeScript/issues/43817#issuecomment-827746462
19
18
  */
20
- export type ComponentsObjectSchemaType = TIntersect<[
21
- TObject<{
22
- /** 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. */
23
- schemas: TOptional<TRecord<TString, typeof SchemaObjectSchema>>;
24
- /** Response Objects that describe a single response from an API operation, including headers, content, and links. */
25
- responses: TOptional<TRecord<TString, TUnion<[typeof ResponseObjectSchema, typeof ReferenceObjectSchema]>>>;
26
- /** Parameter Objects that describe a single operation parameter with a unique combination of name and location (query, header, path, or cookie). */
27
- parameters: TOptional<TRecord<TString, TUnion<[typeof ParameterObjectSchema, typeof ReferenceObjectSchema]>>>;
28
- /** Example Objects that group example values with metadata for demonstrating usage of properties, parameters, and objects. */
29
- examples: TOptional<TRecord<TString, TUnion<[typeof ExampleObjectSchema, typeof ReferenceObjectSchema]>>>;
30
- /** Request Body Objects that describe a single request body with content and optional required flag. */
31
- requestBodies: TOptional<TRecord<TString, TUnion<[typeof RequestBodyObjectSchema, typeof ReferenceObjectSchema]>>>;
32
- /** Header Objects that describe HTTP response headers and multipart representation headers, following Parameter Object structure. */
33
- headers: TOptional<TRecord<TString, TUnion<[typeof HeaderObjectSchema, typeof ReferenceObjectSchema]>>>;
34
- /** Security Scheme Objects that define security mechanisms for API operations (apiKey, http, mutualTLS, oauth2, openIdConnect). */
35
- securitySchemes: TOptional<TRecord<TString, TUnion<[typeof SecuritySchemeObjectSchema, typeof ReferenceObjectSchema]>>>;
36
- /** Link Objects that represent design-time links for responses, providing relationships and traversal mechanisms between operations. */
37
- links: TOptional<TRecord<TString, TUnion<[typeof LinkObjectSchema, typeof ReferenceObjectSchema]>>>;
38
- /** Callback Objects that describe out-of-band callbacks related to parent operations, with Path Item Objects for request definitions. */
39
- callbacks: TOptional<TRecord<TString, TUnion<[typeof CallbackObjectSchema, typeof ReferenceObjectSchema]>>>;
40
- /** Path Item Objects that describe operations available on a single path, including HTTP methods and shared parameters. */
41
- pathItems: TOptional<TRecord<TString, typeof PathItemObjectSchema>>;
42
- }>,
43
- typeof ExtensionsSchema
44
- ]>;
19
+ export type ComponentsObjectSchemaType = TObject<{
20
+ /** 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. */
21
+ schemas: TOptional<TRecord<TString, TUnion<[typeof SchemaObjectSchema, ReferenceType<typeof SchemaObjectSchema>]>>>;
22
+ /** Response Objects that describe a single response from an API operation, including headers, content, and links. */
23
+ responses: TOptional<TRecord<TString, TUnion<[typeof ResponseObjectSchema, ReferenceType<typeof ResponseObjectSchema>]>>>;
24
+ /** Parameter Objects that describe a single operation parameter with a unique combination of name and location (query, header, path, or cookie). */
25
+ parameters: TOptional<TRecord<TString, TUnion<[typeof ParameterObjectSchema, ReferenceType<typeof ParameterObjectSchema>]>>>;
26
+ /** Example Objects that group example values with metadata for demonstrating usage of properties, parameters, and objects. */
27
+ examples: TOptional<TRecord<TString, TUnion<[typeof ExampleObjectSchema, ReferenceType<typeof ExampleObjectSchema>]>>>;
28
+ /** Request Body Objects that describe a single request body with content and optional required flag. */
29
+ requestBodies: TOptional<TRecord<TString, TUnion<[typeof RequestBodyObjectSchema, ReferenceType<typeof RequestBodyObjectSchema>]>>>;
30
+ /** Header Objects that describe HTTP response headers and multipart representation headers, following Parameter Object structure. */
31
+ headers: TOptional<TRecord<TString, TUnion<[typeof HeaderObjectSchema, ReferenceType<typeof HeaderObjectSchema>]>>>;
32
+ /** Security Scheme Objects that define security mechanisms for API operations (apiKey, http, mutualTLS, oauth2, openIdConnect). */
33
+ securitySchemes: TOptional<TRecord<TString, TUnion<[typeof SecuritySchemeObjectSchema, ReferenceType<typeof SecuritySchemeObjectSchema>]>>>;
34
+ /** Link Objects that represent design-time links for responses, providing relationships and traversal mechanisms between operations. */
35
+ links: TOptional<TRecord<TString, TUnion<[typeof LinkObjectSchema, ReferenceType<typeof LinkObjectSchema>]>>>;
36
+ /** Callback Objects that describe out-of-band callbacks related to parent operations, with Path Item Objects for request definitions. */
37
+ callbacks: TOptional<TRecord<TString, TUnion<[typeof CallbackObjectSchema, ReferenceType<typeof CallbackObjectSchema>]>>>;
38
+ /** Path Item Objects that describe operations available on a single path, including HTTP methods and shared parameters. */
39
+ pathItems: TOptional<TRecord<TString, typeof PathItemObjectSchema>>;
40
+ }>;
45
41
  /** 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. */
46
42
  export declare const ComponentsObjectSchema: ComponentsObjectSchemaType;
47
43
  export type ComponentsObject = Static<typeof ComponentsObjectSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAEnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAA;AAChF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAElG;;;;;;GAMG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD;IACE,OAAO,CAAC;QACN,2KAA2K;QAC3K,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,kBAAkB,CAAC,CAAC,CAAA;QAC/D,qHAAqH;QACrH,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,oBAAoB,EAAE,OAAO,qBAAqB,CAAC,CAAC,CAAC,C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AAC,CAAC,CAAC,CACpG,CAAA;IACD,2HAA2H;IAC3H,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,oBAAoB,CAAC,CAAC,CAAA;CACpE,CAAC,CAAA;AAEF,kOAAkO;AAClO,eAAO,MAAM,sBAAsB,EAAE,0BAiCnC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
@@ -3,45 +3,48 @@ import {
3
3
  } from "@sinclair/typebox";
4
4
  import { SchemaObjectSchema } from "./schema.js";
5
5
  import { ResponseObjectSchema } from "./response.js";
6
- import { ReferenceObjectSchema } from "./reference.js";
6
+ import { reference } from "./reference.js";
7
7
  import { ParameterObjectSchema } from "./parameter.js";
8
8
  import { ExampleObjectSchema } from "./example.js";
9
9
  import { RequestBodyObjectSchema } from "./request-body.js";
10
10
  import { SecuritySchemeObjectSchema } from "./security-scheme.js";
11
11
  import { LinkObjectSchema } from "./link.js";
12
- import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
13
- import { compose } from "../../../schemas/compose.js";
14
12
  import { HeaderObjectSchema } from "../../../schemas/v3.1/strict/media-header-encoding.js";
15
13
  import { CallbackObjectSchema, PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
16
- const ComponentsObjectSchema = compose(
17
- Type.Object({
18
- /** An object to hold reusable Schema Objects. */
19
- schemas: Type.Optional(Type.Record(Type.String(), SchemaObjectSchema)),
20
- /** An object to hold reusable Response Objects. */
21
- responses: Type.Optional(Type.Record(Type.String(), Type.Union([ResponseObjectSchema, ReferenceObjectSchema]))),
22
- /** An object to hold reusable Parameter Objects. */
23
- parameters: Type.Optional(Type.Record(Type.String(), Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),
24
- /** An object to hold reusable Example Objects. */
25
- examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),
26
- /** An object to hold reusable Request Body Objects. */
27
- requestBodies: Type.Optional(
28
- Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, ReferenceObjectSchema]))
29
- ),
30
- /** An object to hold reusable Header Objects. */
31
- headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, ReferenceObjectSchema]))),
32
- /** An object to hold reusable Security Scheme Objects. */
33
- securitySchemes: Type.Optional(
34
- Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, ReferenceObjectSchema]))
35
- ),
36
- /** An object to hold reusable Link Objects. */
37
- links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, ReferenceObjectSchema]))),
38
- /** An object to hold reusable Callback Objects. */
39
- callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectSchema, ReferenceObjectSchema]))),
40
- /** An object to hold reusable Path Item Objects. */
41
- pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema))
42
- }),
43
- ExtensionsSchema
44
- );
14
+ const ComponentsObjectSchema = Type.Object({
15
+ /** An object to hold reusable Schema Objects. */
16
+ schemas: Type.Optional(Type.Record(Type.String(), Type.Union([SchemaObjectSchema, reference(SchemaObjectSchema)]))),
17
+ /** An object to hold reusable Response Objects. */
18
+ responses: Type.Optional(
19
+ Type.Record(Type.String(), Type.Union([ResponseObjectSchema, reference(ResponseObjectSchema)]))
20
+ ),
21
+ /** An object to hold reusable Parameter Objects. */
22
+ parameters: Type.Optional(
23
+ Type.Record(Type.String(), Type.Union([ParameterObjectSchema, reference(ParameterObjectSchema)]))
24
+ ),
25
+ /** An object to hold reusable Example Objects. */
26
+ examples: Type.Optional(
27
+ Type.Record(Type.String(), Type.Union([ExampleObjectSchema, reference(ExampleObjectSchema)]))
28
+ ),
29
+ /** An object to hold reusable Request Body Objects. */
30
+ requestBodies: Type.Optional(
31
+ Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, reference(RequestBodyObjectSchema)]))
32
+ ),
33
+ /** An object to hold reusable Header Objects. */
34
+ headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, reference(HeaderObjectSchema)]))),
35
+ /** An object to hold reusable Security Scheme Objects. */
36
+ securitySchemes: Type.Optional(
37
+ Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, reference(SecuritySchemeObjectSchema)]))
38
+ ),
39
+ /** An object to hold reusable Link Objects. */
40
+ links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, reference(LinkObjectSchema)]))),
41
+ /** An object to hold reusable Callback Objects. */
42
+ callbacks: Type.Optional(
43
+ Type.Record(Type.String(), Type.Union([CallbackObjectSchema, reference(CallbackObjectSchema)]))
44
+ ),
45
+ /** An object to hold reusable Path Item Objects. */
46
+ pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema))
47
+ });
45
48
  export {
46
49
  ComponentsObjectSchema
47
50
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/components.ts"],
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;A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,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 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 { reference, type ReferenceType } 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 { 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 = 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, TUnion<[typeof SchemaObjectSchema, ReferenceType<typeof SchemaObjectSchema>]>>>\n /** Response Objects that describe a single response from an API operation, including headers, content, and links. */\n responses: TOptional<\n TRecord<TString, TUnion<[typeof ResponseObjectSchema, ReferenceType<typeof ResponseObjectSchema>]>>\n >\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<\n TRecord<TString, TUnion<[typeof ParameterObjectSchema, ReferenceType<typeof ParameterObjectSchema>]>>\n >\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, ReferenceType<typeof ExampleObjectSchema>]>>>\n /** Request Body Objects that describe a single request body with content and optional required flag. */\n requestBodies: TOptional<\n TRecord<TString, TUnion<[typeof RequestBodyObjectSchema, ReferenceType<typeof RequestBodyObjectSchema>]>>\n >\n /** Header Objects that describe HTTP response headers and multipart representation headers, following Parameter Object structure. */\n headers: TOptional<TRecord<TString, TUnion<[typeof HeaderObjectSchema, ReferenceType<typeof HeaderObjectSchema>]>>>\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, ReferenceType<typeof SecuritySchemeObjectSchema>]>>\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, ReferenceType<typeof LinkObjectSchema>]>>>\n /** Callback Objects that describe out-of-band callbacks related to parent operations, with Path Item Objects for request definitions. */\n callbacks: TOptional<\n TRecord<TString, TUnion<[typeof CallbackObjectSchema, ReferenceType<typeof CallbackObjectSchema>]>>\n >\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\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 = Type.Object({\n /** An object to hold reusable Schema Objects. */\n schemas: Type.Optional(Type.Record(Type.String(), Type.Union([SchemaObjectSchema, reference(SchemaObjectSchema)]))),\n /** An object to hold reusable Response Objects. */\n responses: Type.Optional(\n Type.Record(Type.String(), Type.Union([ResponseObjectSchema, reference(ResponseObjectSchema)])),\n ),\n /** An object to hold reusable Parameter Objects. */\n parameters: Type.Optional(\n Type.Record(Type.String(), Type.Union([ParameterObjectSchema, reference(ParameterObjectSchema)])),\n ),\n /** An object to hold reusable Example Objects. */\n examples: Type.Optional(\n Type.Record(Type.String(), Type.Union([ExampleObjectSchema, reference(ExampleObjectSchema)])),\n ),\n /** An object to hold reusable Request Body Objects. */\n requestBodies: Type.Optional(\n Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, reference(RequestBodyObjectSchema)])),\n ),\n /** An object to hold reusable Header Objects. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, reference(HeaderObjectSchema)]))),\n /** An object to hold reusable Security Scheme Objects. */\n securitySchemes: Type.Optional(\n Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, reference(SecuritySchemeObjectSchema)])),\n ),\n /** An object to hold reusable Link Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, reference(LinkObjectSchema)]))),\n /** An object to hold reusable Callback Objects. */\n callbacks: Type.Optional(\n Type.Record(Type.String(), Type.Union([CallbackObjectSchema, reference(CallbackObjectSchema)])),\n ),\n /** An object to hold reusable Path Item Objects. */\n pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema)),\n})\n\nexport type ComponentsObject = Static<typeof ComponentsObjectSchema>\n"],
5
+ "mappings": "AAAA;AAAA,EACE;AAAA,OAOK;AACP,SAAS,0BAA0B;AACnC,SAAS,4BAA4B;AACrC,SAAS,iBAAqC;AAC9C,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,+BAA+B;AACxC,SAAS,kCAAkC;AAC3C,SAAS,wBAAwB;AACjC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB,4BAA4B;AA2CpD,MAAM,yBAAqD,KAAK,OAAO;AAAA;AAAA,EAE5E,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAElH,WAAW,KAAK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1
  import { type Static } from '@sinclair/typebox';
2
2
  /** Contact information for the exposed API. */
3
- export declare const ContactObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
3
+ export declare const ContactObjectSchema: import("@sinclair/typebox").TObject<{
4
4
  /** The identifying name of the contact person/organization. */
5
5
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
6
  /** The URI for the contact information. This MUST be in the form of a URI. */
7
7
  url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
8
  /** The email address of the contact person/organization. This MUST be in the form of an email address. */
9
9
  email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
- }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
10
+ }>;
11
11
  export type ContactObject = Static<typeof ContactObjectSchema>;
12
12
  //# sourceMappingURL=contact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/contact.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,+CAA+C;AAC/C,eAAO,MAAM,mBAAmB;IAE5B,+DAA+D;;IAE/D,8EAA8E;;IAE9E,0GAA0G;;kJAI7G,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,+CAA+C;AAC/C,eAAO,MAAM,mBAAmB;IAC9B,+DAA+D;;IAE/D,8EAA8E;;IAE9E,0GAA0G;;EAE1G,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -1,17 +1,12 @@
1
- import { compose } from "../../../schemas/compose.js";
2
- import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
1
  import { Type } from "@sinclair/typebox";
4
- const ContactObjectSchema = compose(
5
- Type.Object({
6
- /** The identifying name of the contact person/organization. */
7
- name: Type.Optional(Type.String()),
8
- /** The URI for the contact information. This MUST be in the form of a URI. */
9
- url: Type.Optional(Type.String()),
10
- /** The email address of the contact person/organization. This MUST be in the form of an email address. */
11
- email: Type.Optional(Type.String())
12
- }),
13
- ExtensionsSchema
14
- );
2
+ const ContactObjectSchema = Type.Object({
3
+ /** The identifying name of the contact person/organization. */
4
+ name: Type.Optional(Type.String()),
5
+ /** The URI for the contact information. This MUST be in the form of a URI. */
6
+ url: Type.Optional(Type.String()),
7
+ /** The email address of the contact person/organization. This MUST be in the form of an email address. */
8
+ email: Type.Optional(Type.String())
9
+ });
15
10
  export {
16
11
  ContactObjectSchema
17
12
  };
@@ -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/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
- "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;",
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\n/** Contact information for the exposed API. */\nexport const ContactObjectSchema = 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\nexport type ContactObject = Static<typeof ContactObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAG3B,MAAM,sBAAsB,KAAK,OAAO;AAAA;AAAA,EAE7C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEjC,KAAK,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEhC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AACpC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -4,11 +4,11 @@ import { type Static } from '@sinclair/typebox';
4
4
  *
5
5
  * Note that discriminator MUST NOT change the validation outcome of the schema.
6
6
  */
7
- export declare const DiscriminatorObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
7
+ export declare const DiscriminatorObjectSchema: import("@sinclair/typebox").TObject<{
8
8
  /** 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. */
9
9
  propertyName: import("@sinclair/typebox").TString;
10
10
  /** An object to hold mappings between payload values and schema names or URI references. */
11
11
  mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
12
- }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
12
+ }>;
13
13
  export type DiscriminatorObject = Static<typeof DiscriminatorObjectSchema>;
14
14
  //# sourceMappingURL=discriminator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"discriminator.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/discriminator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;IAElC,mNAAmN;;IAEnN,4FAA4F;;kJAI/F,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
1
+ {"version":3,"file":"discriminator.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/discriminator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;IACpC,mNAAmN;;IAEnN,4FAA4F;;EAE5F,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
@@ -1,15 +1,10 @@
1
- import { compose } from "../../../schemas/compose.js";
2
- import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
1
  import { Type } from "@sinclair/typebox";
4
- const DiscriminatorObjectSchema = compose(
5
- Type.Object({
6
- /** 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. */
7
- propertyName: Type.String(),
8
- /** An object to hold mappings between payload values and schema names or URI references. */
9
- mapping: Type.Optional(Type.Record(Type.String(), Type.String()))
10
- }),
11
- ExtensionsSchema
12
- );
2
+ const DiscriminatorObjectSchema = Type.Object({
3
+ /** 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. */
4
+ propertyName: Type.String(),
5
+ /** An object to hold mappings between payload values and schema names or URI references. */
6
+ mapping: Type.Optional(Type.Record(Type.String(), Type.String()))
7
+ });
13
8
  export {
14
9
  DiscriminatorObjectSchema
15
10
  };
@@ -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/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
- "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;",
4
+ "sourcesContent": ["import { 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 = 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\nexport type DiscriminatorObject = Static<typeof DiscriminatorObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAO3B,MAAM,4BAA4B,KAAK,OAAO;AAAA;AAAA,EAEnD,cAAc,KAAK,OAAO;AAAA;AAAA,EAE1B,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC,CAAC;AAClE,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,15 +1,8 @@
1
1
  import { type TSchema } from '@sinclair/typebox';
2
- export declare const encodingObjectSchemaBuilder: <H extends TSchema>(header: H) => import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
2
+ export declare const encodingObjectSchemaBuilder: <H extends TSchema>(header: H) => import("@sinclair/typebox").TObject<{
3
3
  /** 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. */
4
4
  contentType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
5
  /** 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. */
6
- headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[H, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
7
- $ref: import("@sinclair/typebox").TString;
8
- summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
- description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
- }>, import("@sinclair/typebox").TObject<{
11
- $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
12
- $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
13
- }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
14
- }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
6
+ headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[H, import("./reference.js").ReferenceType<H>]>>>;
7
+ }>;
15
8
  //# sourceMappingURL=encoding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAKtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,UAAU,CAAC;IAGlE,sRAAsR;;IAEtR,iOAAiO;;;;;;;;;kJAIpO,CAAA"}
1
+ {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAGtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,UAAU,CAAC;IAEpE,sRAAsR;;IAEtR,iOAAiO;;EAEjO,CAAA"}
@@ -1,16 +1,11 @@
1
1
  import { Type } from "@sinclair/typebox";
2
- import { ReferenceObjectSchema } from "./reference.js";
3
- import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
- import { compose } from "../../../schemas/compose.js";
5
- const encodingObjectSchemaBuilder = (header) => compose(
6
- Type.Object({
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. */
8
- contentType: Type.Optional(Type.String()),
9
- /** 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. */
10
- headers: Type.Optional(Type.Record(Type.String(), Type.Union([header, ReferenceObjectSchema])))
11
- }),
12
- ExtensionsSchema
13
- );
2
+ import { reference } from "./reference.js";
3
+ const encodingObjectSchemaBuilder = (header) => Type.Object({
4
+ /** 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. */
5
+ contentType: Type.Optional(Type.String()),
6
+ /** 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. */
7
+ headers: Type.Optional(Type.Record(Type.String(), Type.Union([header, reference(header)])))
8
+ });
14
9
  export {
15
10
  encodingObjectSchemaBuilder
16
11
  };
@@ -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/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
- "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;",
4
+ "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { reference } from './reference'\n\nexport const encodingObjectSchemaBuilder = <H extends TSchema>(header: H) =>\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, reference(header)]))),\n })\n"],
5
+ "mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,iBAAiB;AAEnB,MAAM,8BAA8B,CAAoB,WAC7D,KAAK,OAAO;AAAA;AAAA,EAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,QAAQ,UAAU,MAAM,CAAC,CAAC,CAAC,CAAC;AAC5F,CAAC;",
6
6
  "names": []
7
7
  }
@@ -4,7 +4,7 @@ import { type Static } from '@sinclair/typebox';
4
4
  *
5
5
  * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.
6
6
  */
7
- export declare const ExampleObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
7
+ export declare const ExampleObjectSchema: import("@sinclair/typebox").TObject<{
8
8
  /** Short description for the example. */
9
9
  summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
10
  /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */
@@ -13,6 +13,6 @@ export declare const ExampleObjectSchema: import("@sinclair/typebox").TIntersect
13
13
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
14
14
  /** 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. */
15
15
  externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
16
- }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
16
+ }>;
17
17
  export type ExampleObject = Static<typeof ExampleObjectSchema>;
18
18
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/example.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAE5B,yCAAyC;;IAEzC,oGAAoG;;IAEpG,6PAA6P;;IAE7P,+QAA+Q;;kJAIlR,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
1
+ {"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B,yCAAyC;;IAEzC,oGAAoG;;IAEpG,6PAA6P;;IAE7P,+QAA+Q;;EAE/Q,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -1,19 +1,14 @@
1
- import { compose } from "../../../schemas/compose.js";
2
- import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
1
  import { Type } from "@sinclair/typebox";
4
- const ExampleObjectSchema = compose(
5
- Type.Object({
6
- /** Short description for the example. */
7
- summary: Type.Optional(Type.String()),
8
- /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */
9
- description: Type.Optional(Type.String()),
10
- /** 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. */
11
- value: Type.Optional(Type.Any()),
12
- /** 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. */
13
- externalValue: Type.Optional(Type.String())
14
- }),
15
- ExtensionsSchema
16
- );
2
+ const ExampleObjectSchema = Type.Object({
3
+ /** Short description for the example. */
4
+ summary: Type.Optional(Type.String()),
5
+ /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */
6
+ description: Type.Optional(Type.String()),
7
+ /** 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. */
8
+ value: Type.Optional(Type.Any()),
9
+ /** 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. */
10
+ externalValue: Type.Optional(Type.String())
11
+ });
17
12
  export {
18
13
  ExampleObjectSchema
19
14
  };
@@ -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/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
- "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;",
4
+ "sourcesContent": ["import { 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 = 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\nexport type ExampleObject = Static<typeof ExampleObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAO3B,MAAM,sBAAsB,KAAK,OAAO;AAAA;AAAA,EAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,OAAO,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,EAE/B,eAAe,KAAK,SAAS,KAAK,OAAO,CAAC;AAC5C,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,10 @@
1
1
  import { type Static } from '@sinclair/typebox';
2
2
  /** Allows referencing an external resource for extended documentation. */
3
- export declare const ExternalDocumentationObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
3
+ export declare const ExternalDocumentationObjectSchema: import("@sinclair/typebox").TObject<{
4
4
  /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
5
5
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
6
  /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
7
7
  url: import("@sinclair/typebox").TString;
8
- }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
8
+ }>;
9
9
  export type ExternalDocumentationObject = Static<typeof ExternalDocumentationObjectSchema>;
10
10
  //# sourceMappingURL=external-documentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external-documentation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/external-documentation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC;IAE1C,6GAA6G;;IAE7G,yFAAyF;;kJAI5F,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
1
+ {"version":3,"file":"external-documentation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/external-documentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,0EAA0E;AAC1E,eAAO,MAAM,iCAAiC;IAC5C,6GAA6G;;IAE7G,yFAAyF;;EAEzF,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
@@ -1,15 +1,10 @@
1
- import { compose } from "../../../schemas/compose.js";
2
- import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
1
  import { Type } from "@sinclair/typebox";
4
- const ExternalDocumentationObjectSchema = compose(
5
- Type.Object({
6
- /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
7
- description: Type.Optional(Type.String()),
8
- /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
9
- url: Type.String()
10
- }),
11
- ExtensionsSchema
12
- );
2
+ const ExternalDocumentationObjectSchema = Type.Object({
3
+ /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
4
+ description: Type.Optional(Type.String()),
5
+ /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
6
+ url: Type.String()
7
+ });
13
8
  export {
14
9
  ExternalDocumentationObjectSchema
15
10
  };
@@ -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/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
- "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;",
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\n/** Allows referencing an external resource for extended documentation. */\nexport const ExternalDocumentationObjectSchema = 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\nexport type ExternalDocumentationObject = Static<typeof ExternalDocumentationObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAG3B,MAAM,oCAAoC,KAAK,OAAO;AAAA;AAAA,EAE3D,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,KAAK,KAAK,OAAO;AACnB,CAAC;",
6
6
  "names": []
7
7
  }