@scalar/workspace-store 0.4.1 → 0.5.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 (286) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/client.d.ts +25035 -6283
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +5 -2
  5. package/dist/client.js.map +2 -2
  6. package/dist/helpers/general.d.ts +1 -0
  7. package/dist/helpers/general.d.ts.map +1 -1
  8. package/dist/helpers/general.js +5 -1
  9. package/dist/helpers/general.js.map +2 -2
  10. package/dist/navigation/helpers/traverse-document.d.ts +2 -2
  11. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  12. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  13. package/dist/navigation/helpers/traverse-paths.d.ts +2 -2
  14. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  15. package/dist/navigation/helpers/traverse-paths.js +4 -0
  16. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  17. package/dist/navigation/helpers/traverse-schemas.d.ts +2 -2
  18. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  19. package/dist/navigation/helpers/traverse-schemas.js +1 -1
  20. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  21. package/dist/navigation/helpers/traverse-tags.d.ts +2 -2
  22. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  23. package/dist/navigation/helpers/traverse-tags.js +2 -2
  24. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  25. package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -2
  26. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  27. package/dist/navigation/helpers/traverse-webhooks.js +4 -0
  28. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  29. package/dist/navigation/types.d.ts +11 -10
  30. package/dist/navigation/types.d.ts.map +1 -1
  31. package/dist/schemas/typebox-coerce.d.ts +26 -0
  32. package/dist/schemas/typebox-coerce.d.ts.map +1 -0
  33. package/dist/schemas/typebox-coerce.js +8 -0
  34. package/dist/schemas/typebox-coerce.js.map +7 -0
  35. package/dist/schemas/v3.1/compose.d.ts +6 -0
  36. package/dist/schemas/v3.1/compose.d.ts.map +1 -0
  37. package/dist/schemas/v3.1/compose.js +8 -0
  38. package/dist/schemas/v3.1/compose.js.map +7 -0
  39. package/dist/schemas/v3.1/strict/callback.d.ts +3 -0
  40. package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -0
  41. package/dist/schemas/v3.1/strict/callback.js +15 -0
  42. package/dist/schemas/v3.1/strict/callback.js.map +7 -0
  43. package/dist/schemas/v3.1/strict/components.d.ts +7824 -0
  44. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -0
  45. package/dist/schemas/v3.1/strict/components.js +46 -0
  46. package/dist/schemas/v3.1/strict/components.js.map +7 -0
  47. package/dist/schemas/{openapi-v3 → v3.1/strict}/contact.d.ts +4 -2
  48. package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -0
  49. package/dist/schemas/v3.1/strict/contact.js +18 -0
  50. package/dist/schemas/v3.1/strict/contact.js.map +7 -0
  51. package/dist/schemas/{openapi-v3 → v3.1/strict}/discriminator.d.ts +4 -2
  52. package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -0
  53. package/dist/schemas/v3.1/strict/discriminator.js +16 -0
  54. package/dist/schemas/v3.1/strict/discriminator.js.map +7 -0
  55. package/dist/schemas/{openapi-v3 → v3.1/strict}/encoding.d.ts +7 -16
  56. package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -0
  57. package/dist/schemas/v3.1/strict/encoding.js +17 -0
  58. package/dist/schemas/v3.1/strict/encoding.js.map +7 -0
  59. package/dist/schemas/{openapi-v3 → v3.1/strict}/example.d.ts +4 -2
  60. package/dist/schemas/v3.1/strict/example.d.ts.map +1 -0
  61. package/dist/schemas/v3.1/strict/example.js +20 -0
  62. package/dist/schemas/v3.1/strict/example.js.map +7 -0
  63. package/dist/schemas/v3.1/strict/extensions.d.ts +4 -0
  64. package/dist/schemas/v3.1/strict/extensions.d.ts.map +1 -0
  65. package/dist/schemas/v3.1/strict/extensions.js +6 -0
  66. package/dist/schemas/v3.1/strict/extensions.js.map +7 -0
  67. package/dist/schemas/v3.1/strict/external-documentation.d.ts +10 -0
  68. package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -0
  69. package/dist/schemas/v3.1/strict/external-documentation.js +16 -0
  70. package/dist/schemas/v3.1/strict/external-documentation.js.map +7 -0
  71. package/dist/schemas/v3.1/strict/header.d.ts +133 -0
  72. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -0
  73. package/dist/schemas/v3.1/strict/header.js +48 -0
  74. package/dist/schemas/v3.1/strict/header.js.map +7 -0
  75. package/dist/schemas/{openapi-v3 → v3.1/strict}/info.d.ts +8 -6
  76. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -0
  77. package/dist/schemas/v3.1/strict/info.js +28 -0
  78. package/dist/schemas/v3.1/strict/info.js.map +7 -0
  79. package/dist/schemas/{openapi-v3 → v3.1/strict}/license.d.ts +4 -2
  80. package/dist/schemas/v3.1/strict/license.d.ts.map +1 -0
  81. package/dist/schemas/v3.1/strict/license.js +18 -0
  82. package/dist/schemas/v3.1/strict/license.js.map +7 -0
  83. package/dist/schemas/{openapi-v3 → v3.1/strict}/link.d.ts +8 -6
  84. package/dist/schemas/v3.1/strict/link.d.ts.map +1 -0
  85. package/dist/schemas/v3.1/strict/link.js +25 -0
  86. package/dist/schemas/v3.1/strict/link.js.map +7 -0
  87. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +329 -0
  88. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -0
  89. package/dist/schemas/v3.1/strict/media-header-encoding.js +19 -0
  90. package/dist/schemas/v3.1/strict/media-header-encoding.js.map +7 -0
  91. package/dist/schemas/{openapi-v3 → v3.1/strict}/media-type.d.ts +20 -34
  92. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -0
  93. package/dist/schemas/v3.1/strict/media-type.js +27 -0
  94. package/dist/schemas/v3.1/strict/media-type.js.map +7 -0
  95. package/dist/schemas/{openapi-v3 → v3.1/strict}/oauth-flow.d.ts +4 -2
  96. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -0
  97. package/dist/schemas/v3.1/strict/oauth-flow.js +20 -0
  98. package/dist/schemas/v3.1/strict/oauth-flow.js.map +7 -0
  99. package/dist/schemas/{openapi-v3 → v3.1/strict}/oauthflows.d.ts +12 -10
  100. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -0
  101. package/dist/schemas/v3.1/strict/oauthflows.js +21 -0
  102. package/dist/schemas/v3.1/strict/oauthflows.js.map +7 -0
  103. package/dist/schemas/v3.1/strict/openapi-document.d.ts +49 -0
  104. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -0
  105. package/dist/schemas/v3.1/strict/openapi-document.js +55 -0
  106. package/dist/schemas/v3.1/strict/openapi-document.js.map +7 -0
  107. package/dist/schemas/v3.1/strict/operation.d.ts +572 -0
  108. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -0
  109. package/dist/schemas/v3.1/strict/operation.js +46 -0
  110. package/dist/schemas/v3.1/strict/operation.js.map +7 -0
  111. package/dist/schemas/v3.1/strict/parameter.d.ts +396 -0
  112. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -0
  113. package/dist/schemas/v3.1/strict/parameter.js +56 -0
  114. package/dist/schemas/v3.1/strict/parameter.js.map +7 -0
  115. package/dist/schemas/v3.1/strict/path-item.d.ts +205 -0
  116. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -0
  117. package/dist/schemas/v3.1/strict/path-item.js +41 -0
  118. package/dist/schemas/v3.1/strict/path-item.js.map +7 -0
  119. package/dist/schemas/v3.1/strict/path-operations.d.ts +7816 -0
  120. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -0
  121. package/dist/schemas/v3.1/strict/path-operations.js +19 -0
  122. package/dist/schemas/v3.1/strict/path-operations.js.map +7 -0
  123. package/dist/schemas/v3.1/strict/paths.d.ts +3536 -0
  124. package/dist/schemas/{openapi-v3/openapi-document.d.ts.map → v3.1/strict/paths.d.ts.map} +1 -1
  125. package/dist/schemas/v3.1/strict/paths.js +16 -0
  126. package/dist/schemas/v3.1/strict/paths.js.map +7 -0
  127. package/dist/schemas/{openapi-v3 → v3.1/strict}/reference.d.ts +15 -6
  128. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -0
  129. package/dist/schemas/v3.1/strict/reference.js +26 -0
  130. package/dist/schemas/v3.1/strict/reference.js.map +7 -0
  131. package/dist/schemas/v3.1/strict/request-body.d.ts +112 -0
  132. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -0
  133. package/dist/schemas/v3.1/strict/request-body.js +19 -0
  134. package/dist/schemas/v3.1/strict/request-body.js.map +7 -0
  135. package/dist/schemas/v3.1/strict/response.d.ts +242 -0
  136. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -0
  137. package/dist/schemas/v3.1/strict/response.js +23 -0
  138. package/dist/schemas/v3.1/strict/response.js.map +7 -0
  139. package/dist/schemas/v3.1/strict/responses.d.ts +254 -0
  140. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -0
  141. package/dist/schemas/v3.1/strict/responses.js +13 -0
  142. package/dist/schemas/v3.1/strict/responses.js.map +7 -0
  143. package/dist/schemas/{openapi-v3 → v3.1/strict}/schema.d.ts +12 -8
  144. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -0
  145. package/dist/schemas/v3.1/strict/schema.js +34 -0
  146. package/dist/schemas/v3.1/strict/schema.js.map +7 -0
  147. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-requirement.d.ts +3 -1
  148. package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -0
  149. package/dist/schemas/v3.1/strict/security-requirement.js +15 -0
  150. package/dist/schemas/v3.1/strict/security-requirement.js.map +7 -0
  151. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.d.ts +40 -38
  152. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -0
  153. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.js +21 -16
  154. package/dist/schemas/v3.1/strict/security-scheme.js.map +7 -0
  155. package/dist/schemas/{openapi-v3 → v3.1/strict}/server-variable.d.ts +4 -2
  156. package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -0
  157. package/dist/schemas/v3.1/strict/server-variable.js +18 -0
  158. package/dist/schemas/v3.1/strict/server-variable.js.map +7 -0
  159. package/dist/schemas/{openapi-v3 → v3.1/strict}/server.d.ts +6 -4
  160. package/dist/schemas/v3.1/strict/server.d.ts.map +1 -0
  161. package/dist/schemas/v3.1/strict/server.js +19 -0
  162. package/dist/schemas/v3.1/strict/server.js.map +7 -0
  163. package/dist/schemas/v3.1/strict/tag.d.ts +17 -0
  164. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -0
  165. package/dist/schemas/v3.1/strict/tag.js +25 -0
  166. package/dist/schemas/v3.1/strict/tag.js.map +7 -0
  167. package/dist/schemas/{openapi-v3 → v3.1/strict}/xml.d.ts +4 -2
  168. package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -0
  169. package/dist/schemas/v3.1/strict/xml.js +22 -0
  170. package/dist/schemas/v3.1/strict/xml.js.map +7 -0
  171. package/dist/schemas/v3.1/type-guard.d.ts +3 -0
  172. package/dist/schemas/v3.1/type-guard.d.ts.map +1 -0
  173. package/dist/schemas/v3.1/type-guard.js +7 -0
  174. package/dist/schemas/v3.1/type-guard.js.map +7 -0
  175. package/dist/schemas/workspace.d.ts +49 -14750
  176. package/dist/schemas/workspace.d.ts.map +1 -1
  177. package/dist/schemas/workspace.js +5 -4
  178. package/dist/schemas/workspace.js.map +2 -2
  179. package/dist/schemas.d.ts.map +1 -1
  180. package/dist/schemas.js.map +2 -2
  181. package/dist/server.d.ts +2579 -5
  182. package/dist/server.d.ts.map +1 -1
  183. package/dist/server.js +14 -6
  184. package/dist/server.js.map +2 -2
  185. package/package.json +5 -4
  186. package/dist/schemas/openapi-v3/callback.d.ts +0 -1156
  187. package/dist/schemas/openapi-v3/callback.d.ts.map +0 -1
  188. package/dist/schemas/openapi-v3/callback.js +0 -11
  189. package/dist/schemas/openapi-v3/callback.js.map +0 -7
  190. package/dist/schemas/openapi-v3/components.d.ts +0 -2597
  191. package/dist/schemas/openapi-v3/components.d.ts.map +0 -1
  192. package/dist/schemas/openapi-v3/components.js +0 -38
  193. package/dist/schemas/openapi-v3/components.js.map +0 -7
  194. package/dist/schemas/openapi-v3/contact.d.ts.map +0 -1
  195. package/dist/schemas/openapi-v3/contact.js +0 -13
  196. package/dist/schemas/openapi-v3/contact.js.map +0 -7
  197. package/dist/schemas/openapi-v3/discriminator.d.ts.map +0 -1
  198. package/dist/schemas/openapi-v3/discriminator.js +0 -11
  199. package/dist/schemas/openapi-v3/discriminator.js.map +0 -7
  200. package/dist/schemas/openapi-v3/encoding.d.ts.map +0 -1
  201. package/dist/schemas/openapi-v3/encoding.js +0 -13
  202. package/dist/schemas/openapi-v3/encoding.js.map +0 -7
  203. package/dist/schemas/openapi-v3/example.d.ts.map +0 -1
  204. package/dist/schemas/openapi-v3/example.js +0 -15
  205. package/dist/schemas/openapi-v3/example.js.map +0 -7
  206. package/dist/schemas/openapi-v3/external-documentation.d.ts +0 -8
  207. package/dist/schemas/openapi-v3/external-documentation.d.ts.map +0 -1
  208. package/dist/schemas/openapi-v3/external-documentation.js +0 -11
  209. package/dist/schemas/openapi-v3/external-documentation.js.map +0 -7
  210. package/dist/schemas/openapi-v3/header.d.ts +0 -18
  211. package/dist/schemas/openapi-v3/header.d.ts.map +0 -1
  212. package/dist/schemas/openapi-v3/header.js +0 -13
  213. package/dist/schemas/openapi-v3/header.js.map +0 -7
  214. package/dist/schemas/openapi-v3/info.d.ts.map +0 -1
  215. package/dist/schemas/openapi-v3/info.js +0 -23
  216. package/dist/schemas/openapi-v3/info.js.map +0 -7
  217. package/dist/schemas/openapi-v3/license.d.ts.map +0 -1
  218. package/dist/schemas/openapi-v3/license.js +0 -13
  219. package/dist/schemas/openapi-v3/license.js.map +0 -7
  220. package/dist/schemas/openapi-v3/link.d.ts.map +0 -1
  221. package/dist/schemas/openapi-v3/link.js +0 -20
  222. package/dist/schemas/openapi-v3/link.js.map +0 -7
  223. package/dist/schemas/openapi-v3/media-type.d.ts.map +0 -1
  224. package/dist/schemas/openapi-v3/media-type.js +0 -19
  225. package/dist/schemas/openapi-v3/media-type.js.map +0 -7
  226. package/dist/schemas/openapi-v3/oauth-flow.d.ts.map +0 -1
  227. package/dist/schemas/openapi-v3/oauth-flow.js +0 -15
  228. package/dist/schemas/openapi-v3/oauth-flow.js.map +0 -7
  229. package/dist/schemas/openapi-v3/oauthflows.d.ts.map +0 -1
  230. package/dist/schemas/openapi-v3/oauthflows.js +0 -16
  231. package/dist/schemas/openapi-v3/oauthflows.js.map +0 -7
  232. package/dist/schemas/openapi-v3/openapi-document.d.ts +0 -4941
  233. package/dist/schemas/openapi-v3/openapi-document.js +0 -35
  234. package/dist/schemas/openapi-v3/openapi-document.js.map +0 -7
  235. package/dist/schemas/openapi-v3/operation-without-callback.d.ts +0 -200
  236. package/dist/schemas/openapi-v3/operation-without-callback.d.ts.map +0 -1
  237. package/dist/schemas/openapi-v3/operation-without-callback.js +0 -39
  238. package/dist/schemas/openapi-v3/operation-without-callback.js.map +0 -7
  239. package/dist/schemas/openapi-v3/parameter.d.ts +0 -25
  240. package/dist/schemas/openapi-v3/parameter.d.ts.map +0 -1
  241. package/dist/schemas/openapi-v3/parameter.js +0 -22
  242. package/dist/schemas/openapi-v3/parameter.js.map +0 -7
  243. package/dist/schemas/openapi-v3/path-item.d.ts +0 -1167
  244. package/dist/schemas/openapi-v3/path-item.d.ts.map +0 -1
  245. package/dist/schemas/openapi-v3/path-item.js +0 -37
  246. package/dist/schemas/openapi-v3/path-item.js.map +0 -7
  247. package/dist/schemas/openapi-v3/paths.d.ts +0 -1154
  248. package/dist/schemas/openapi-v3/paths.d.ts.map +0 -1
  249. package/dist/schemas/openapi-v3/paths.js +0 -11
  250. package/dist/schemas/openapi-v3/paths.js.map +0 -7
  251. package/dist/schemas/openapi-v3/reference.d.ts.map +0 -1
  252. package/dist/schemas/openapi-v3/reference.js +0 -17
  253. package/dist/schemas/openapi-v3/reference.js.map +0 -7
  254. package/dist/schemas/openapi-v3/request-body.d.ts +0 -56
  255. package/dist/schemas/openapi-v3/request-body.d.ts.map +0 -1
  256. package/dist/schemas/openapi-v3/request-body.js +0 -14
  257. package/dist/schemas/openapi-v3/request-body.js.map +0 -7
  258. package/dist/schemas/openapi-v3/response.d.ts +0 -88
  259. package/dist/schemas/openapi-v3/response.d.ts.map +0 -1
  260. package/dist/schemas/openapi-v3/response.js +0 -19
  261. package/dist/schemas/openapi-v3/response.js.map +0 -7
  262. package/dist/schemas/openapi-v3/responses.d.ts +0 -99
  263. package/dist/schemas/openapi-v3/responses.d.ts.map +0 -1
  264. package/dist/schemas/openapi-v3/responses.js +0 -8
  265. package/dist/schemas/openapi-v3/responses.js.map +0 -7
  266. package/dist/schemas/openapi-v3/schema.d.ts.map +0 -1
  267. package/dist/schemas/openapi-v3/schema.js +0 -22
  268. package/dist/schemas/openapi-v3/schema.js.map +0 -7
  269. package/dist/schemas/openapi-v3/security-requirement.d.ts.map +0 -1
  270. package/dist/schemas/openapi-v3/security-requirement.js +0 -10
  271. package/dist/schemas/openapi-v3/security-requirement.js.map +0 -7
  272. package/dist/schemas/openapi-v3/security-scheme.d.ts.map +0 -1
  273. package/dist/schemas/openapi-v3/security-scheme.js.map +0 -7
  274. package/dist/schemas/openapi-v3/server-variable.d.ts.map +0 -1
  275. package/dist/schemas/openapi-v3/server-variable.js +0 -13
  276. package/dist/schemas/openapi-v3/server-variable.js.map +0 -7
  277. package/dist/schemas/openapi-v3/server.d.ts.map +0 -1
  278. package/dist/schemas/openapi-v3/server.js +0 -14
  279. package/dist/schemas/openapi-v3/server.js.map +0 -7
  280. package/dist/schemas/openapi-v3/tag.d.ts +0 -13
  281. package/dist/schemas/openapi-v3/tag.d.ts.map +0 -1
  282. package/dist/schemas/openapi-v3/tag.js +0 -14
  283. package/dist/schemas/openapi-v3/tag.js.map +0 -7
  284. package/dist/schemas/openapi-v3/xml.d.ts.map +0 -1
  285. package/dist/schemas/openapi-v3/xml.js +0 -17
  286. package/dist/schemas/openapi-v3/xml.js.map +0 -7
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEnD,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEpD,kDAAkD;;;;;;;;;;;;;;IAElD,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIvD,iDA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kJAIvD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { SchemaObjectSchema } from "./schema.js";
3
+ import { ResponseObjectSchema } from "./response.js";
4
+ import { ReferenceObjectSchema } from "./reference.js";
5
+ import { ParameterObjectSchema } from "./parameter.js";
6
+ import { ExampleObjectSchema } from "./example.js";
7
+ import { RequestBodyObjectSchema } from "./request-body.js";
8
+ import { SecuritySchemeObjectSchema } from "./security-scheme.js";
9
+ import { LinkObjectSchema } from "./link.js";
10
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
11
+ import { compose } from "../../../schemas/v3.1/compose.js";
12
+ import { HeaderObjectSchema } from "../../../schemas/v3.1/strict/media-header-encoding.js";
13
+ import { CallbackObjectSchema, PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
14
+ const ComponentsObjectSchema = compose(
15
+ Type.Object({
16
+ /** An object to hold reusable Schema Objects. */
17
+ schemas: Type.Optional(Type.Record(Type.String(), SchemaObjectSchema)),
18
+ /** An object to hold reusable Response Objects. */
19
+ responses: Type.Optional(Type.Record(Type.String(), Type.Union([ResponseObjectSchema, ReferenceObjectSchema]))),
20
+ /** An object to hold reusable Parameter Objects. */
21
+ parameters: Type.Optional(Type.Record(Type.String(), Type.Union([ParameterObjectSchema, ReferenceObjectSchema]))),
22
+ /** An object to hold reusable Example Objects. */
23
+ examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),
24
+ /** An object to hold reusable Request Body Objects. */
25
+ requestBodies: Type.Optional(
26
+ Type.Record(Type.String(), Type.Union([RequestBodyObjectSchema, ReferenceObjectSchema]))
27
+ ),
28
+ /** An object to hold reusable Header Objects. */
29
+ headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectSchema, ReferenceObjectSchema]))),
30
+ /** An object to hold reusable Security Scheme Objects. */
31
+ securitySchemes: Type.Optional(
32
+ Type.Record(Type.String(), Type.Union([SecuritySchemeObjectSchema, ReferenceObjectSchema]))
33
+ ),
34
+ /** An object to hold reusable Link Objects. */
35
+ links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectSchema, ReferenceObjectSchema]))),
36
+ /** An object to hold reusable Callback Objects. */
37
+ callbacks: Type.Optional(Type.Record(Type.String(), Type.Union([CallbackObjectSchema, ReferenceObjectSchema]))),
38
+ /** An object to hold reusable Path Item Objects. */
39
+ pathItems: Type.Optional(Type.Record(Type.String(), PathItemObjectSchema))
40
+ }),
41
+ ExtensionsSchema
42
+ );
43
+ export {
44
+ ComponentsObjectSchema
45
+ };
46
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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;AAC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oB,CAAC;AAAA,EAC3E,CAAC;AAAA,EACD;AACF;",
6
+ "names": []
7
+ }
@@ -1,10 +1,12 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /** Contact information for the exposed API. */
2
- export declare const ContactObject: import("@sinclair/typebox").TObject<{
3
+ export declare const ContactObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
3
4
  /** The identifying name of the contact person/organization. */
4
5
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
6
  /** The URI for the contact information. This MUST be in the form of a URI. */
6
7
  url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
8
  /** The email address of the contact person/organization. This MUST be in the form of an email address. */
8
9
  email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
- }>;
10
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
11
+ export type ContactObject = Static<typeof ContactObjectSchema>;
10
12
  //# sourceMappingURL=contact.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,18 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
+ 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
+ );
15
+ export {
16
+ ContactObjectSchema
17
+ };
18
+ //# sourceMappingURL=contact.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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"],
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
+ "names": []
7
+ }
@@ -1,12 +1,14 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /**
2
3
  * 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.
3
4
  *
4
5
  * Note that discriminator MUST NOT change the validation outcome of the schema.
5
6
  */
6
- export declare const DiscriminatorObject: import("@sinclair/typebox").TObject<{
7
+ export declare const DiscriminatorObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
7
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. */
8
9
  propertyName: import("@sinclair/typebox").TString;
9
10
  /** An object to hold mappings between payload values and schema names or URI references. */
10
11
  mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
11
- }>;
12
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
13
+ export type DiscriminatorObject = Static<typeof DiscriminatorObjectSchema>;
12
14
  //# sourceMappingURL=discriminator.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,16 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
+ 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
+ );
13
+ export {
14
+ DiscriminatorObjectSchema
15
+ };
16
+ //# sourceMappingURL=discriminator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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"],
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
+ "names": []
7
+ }
@@ -1,24 +1,15 @@
1
- /**
2
- * A single encoding definition applied to a single schema property. See Appendix B for a discussion of converting values of various types to string representations.
3
- *
4
- * Properties are correlated with multipart parts using the name parameter of Content-Disposition: form-data, and with application/x-www-form-urlencoded using the query string parameter names. In both cases, their order is implementation-defined.
5
- *
6
- * See Appendix E for a detailed examination of percent-encoding concerns for form media types.
7
- */
8
- export declare const EncodingObject: import("@sinclair/typebox").TObject<{
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<{
9
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. */
10
4
  contentType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
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. */
12
- headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
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>;
13
9
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
- required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15
- deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
16
10
  }>, import("@sinclair/typebox").TObject<{
17
- $ref: import("@sinclair/typebox").TString;
18
11
  $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
19
12
  $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
20
- summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
- description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
- }>]>>>;
23
- }>;
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>]>;
24
15
  //# sourceMappingURL=encoding.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,17 @@
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/v3.1/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
+ );
14
+ export {
15
+ encodingObjectSchemaBuilder
16
+ };
17
+ //# sourceMappingURL=encoding.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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"],
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
+ "names": []
7
+ }
@@ -1,9 +1,10 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /**
2
3
  * 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.
3
4
  *
4
5
  * Examples allow demonstration of the usage of properties, parameters and objects within OpenAPI.
5
6
  */
6
- export declare const ExampleObject: import("@sinclair/typebox").TObject<{
7
+ export declare const ExampleObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
7
8
  /** Short description for the example. */
8
9
  summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
10
  /** Long description for the example. CommonMark syntax MAY be used for rich text representation. */
@@ -12,5 +13,6 @@ export declare const ExampleObject: import("@sinclair/typebox").TObject<{
12
13
  value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
13
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. */
14
15
  externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
- }>;
16
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
17
+ export type ExampleObject = Static<typeof ExampleObjectSchema>;
16
18
  //# sourceMappingURL=example.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,20 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
+ 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
+ );
17
+ export {
18
+ ExampleObjectSchema
19
+ };
20
+ //# sourceMappingURL=example.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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"],
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
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ import { type Static } from '@sinclair/typebox';
2
+ export declare const ExtensionsSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>;
3
+ export type Extensions = Static<typeof ExtensionsSchema>;
4
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/extensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,gBAAgB,8IAAmE,CAAA;AAEhG,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const ExtensionsSchema = Type.Record(Type.TemplateLiteral("x-${string}"), Type.Unknown());
3
+ export {
4
+ ExtensionsSchema
5
+ };
6
+ //# sourceMappingURL=extensions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/extensions.ts"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\nexport const ExtensionsSchema = Type.Record(Type.TemplateLiteral('x-${string}'), Type.Unknown())\n\nexport type Extensions = Static<typeof ExtensionsSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAE3B,MAAM,mBAAmB,KAAK,OAAO,KAAK,gBAAgB,aAAa,GAAG,KAAK,QAAQ,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ import { type Static } from '@sinclair/typebox';
2
+ /** Allows referencing an external resource for extended documentation. */
3
+ export declare const ExternalDocumentationObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
4
+ /** A description of the target documentation. CommonMark syntax MAY be used for rich text representation. */
5
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
+ /** REQUIRED. The URI for the target documentation. This MUST be in the form of a URI. */
7
+ url: import("@sinclair/typebox").TString;
8
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
9
+ export type ExternalDocumentationObject = Static<typeof ExternalDocumentationObjectSchema>;
10
+ //# sourceMappingURL=external-documentation.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,16 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
+ 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
+ );
13
+ export {
14
+ ExternalDocumentationObjectSchema
15
+ };
16
+ //# sourceMappingURL=external-documentation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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"],
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
+ "names": []
7
+ }
@@ -0,0 +1,133 @@
1
+ import { type TSchema } from '@sinclair/typebox';
2
+ export declare const HeaderObjectSchemaBase: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
3
+ /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
4
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
+ /** Determines whether this header is mandatory. The default value is false. */
6
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
7
+ /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
8
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
9
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
10
+ export declare const HeaderObjectWithSchemaSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
11
+ /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
12
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
+ /** Determines whether this header is mandatory. The default value is false. */
14
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15
+ /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
16
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
18
+ /** Describes how the header value will be serialized. The default (and only legal value for headers) is "simple". */
19
+ style: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ /** 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. */
21
+ explode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
22
+ /** The schema defining the type used for the header. */
23
+ schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
24
+ discriminator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
25
+ propertyName: import("@sinclair/typebox").TString;
26
+ mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
27
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
28
+ xml: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
29
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
30
+ namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
31
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
32
+ attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
33
+ wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
34
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
35
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
36
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
37
+ url: import("@sinclair/typebox").TString;
38
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
39
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
40
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
41
+ 'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
42
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
43
+ $ref: import("@sinclair/typebox").TString;
44
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
46
+ }>, import("@sinclair/typebox").TObject<{
47
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
48
+ $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
49
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>;
50
+ /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
51
+ example: import("@sinclair/typebox").TAny;
52
+ /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
53
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
54
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
55
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
56
+ value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
57
+ externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
58
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
59
+ $ref: import("@sinclair/typebox").TString;
60
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
61
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
62
+ }>, import("@sinclair/typebox").TObject<{
63
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
64
+ $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
65
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
66
+ }>]>;
67
+ export declare const headerObjectSchemaBuilder: <T extends TSchema>(mediaType: T) => import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
68
+ /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
69
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
70
+ /** Determines whether this header is mandatory. The default value is false. */
71
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
72
+ /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
73
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
74
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
75
+ /** Describes how the header value will be serialized. The default (and only legal value for headers) is "simple". */
76
+ style: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
77
+ /** 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. */
78
+ explode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
79
+ /** The schema defining the type used for the header. */
80
+ schema: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
81
+ discriminator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
82
+ propertyName: import("@sinclair/typebox").TString;
83
+ mapping: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
84
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
85
+ xml: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
86
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
87
+ namespace: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
88
+ prefix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
89
+ attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
90
+ wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
91
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
92
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
93
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
94
+ url: import("@sinclair/typebox").TString;
95
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
96
+ example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
97
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
98
+ 'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
99
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
100
+ $ref: import("@sinclair/typebox").TString;
101
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
102
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
103
+ }>, import("@sinclair/typebox").TObject<{
104
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
105
+ $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
106
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>;
107
+ /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
108
+ example: import("@sinclair/typebox").TAny;
109
+ /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
110
+ examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
111
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
112
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
113
+ value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
114
+ externalValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
115
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
116
+ $ref: import("@sinclair/typebox").TString;
117
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
118
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
119
+ }>, import("@sinclair/typebox").TObject<{
120
+ $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
121
+ $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
122
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
123
+ }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
124
+ /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
125
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
126
+ /** Determines whether this header is mandatory. The default value is false. */
127
+ required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
128
+ /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
129
+ deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
130
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
131
+ content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, T>>;
132
+ }>]>]>;
133
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/header.ts"],"names":[],"mappings":"AAKA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAEtD,eAAO,MAAM,sBAAsB;IAE/B,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;kJAIlH,CAAA;AAED,eAAO,MAAM,4BAA4B;IAVrC,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;IAS/G,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAExD,kIAAkI;;IAElI,mIAAmI;;;;;;;;;;;;;;IAGtI,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IA1BrE,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;IAS/G,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAExD,kIAAkI;;IAElI,mIAAmI;;;;;;;;;;;;;;;IArBnI,yIAAyI;;IAEzI,+EAA+E;;IAE/E,+GAA+G;;;;MAgC/G,CAAA"}
@@ -0,0 +1,48 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExampleObjectSchema } from "../../../schemas/v3.1/strict/example.js";
3
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
+ import { ReferenceObjectSchema } from "../../../schemas/v3.1/strict/reference.js";
5
+ import { SchemaObjectSchema } from "../../../schemas/v3.1/strict/schema.js";
6
+ import { Type } from "@sinclair/typebox";
7
+ const HeaderObjectSchemaBase = compose(
8
+ Type.Object({
9
+ /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
10
+ description: Type.Optional(Type.String()),
11
+ /** Determines whether this header is mandatory. The default value is false. */
12
+ required: Type.Optional(Type.Boolean()),
13
+ /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */
14
+ deprecated: Type.Optional(Type.Boolean())
15
+ }),
16
+ ExtensionsSchema
17
+ );
18
+ const HeaderObjectWithSchemaSchema = compose(
19
+ HeaderObjectSchemaBase,
20
+ Type.Object({
21
+ /** Describes how the header value will be serialized. The default (and only legal value for headers) is "simple". */
22
+ style: Type.Optional(Type.String()),
23
+ /** 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. */
24
+ explode: Type.Optional(Type.Boolean()),
25
+ /** The schema defining the type used for the header. */
26
+ schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),
27
+ /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
28
+ example: Type.Any(),
29
+ /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */
30
+ examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema])))
31
+ })
32
+ );
33
+ const headerObjectSchemaBuilder = (mediaType) => Type.Union([
34
+ HeaderObjectWithSchemaSchema,
35
+ // @ts-ignore
36
+ compose(
37
+ HeaderObjectSchemaBase,
38
+ Type.Object({
39
+ content: Type.Optional(Type.Record(Type.String(), mediaType))
40
+ })
41
+ )
42
+ ]);
43
+ export {
44
+ HeaderObjectSchemaBase,
45
+ HeaderObjectWithSchemaSchema,
46
+ headerObjectSchemaBuilder
47
+ };
48
+ //# sourceMappingURL=header.js.map