@scalar/workspace-store 0.14.2 → 0.15.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 (499) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/client.d.ts +24 -4
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +58 -52
  5. package/dist/client.js.map +2 -2
  6. package/dist/events/definitions.d.ts +155 -0
  7. package/dist/events/definitions.d.ts.map +1 -0
  8. package/dist/events/definitions.js +13 -0
  9. package/dist/events/definitions.js.map +7 -0
  10. package/dist/events/index.d.ts +3 -0
  11. package/dist/events/index.d.ts.map +1 -0
  12. package/dist/events/index.js +7 -0
  13. package/dist/events/index.js.map +7 -0
  14. package/dist/events/listeners.d.ts +8 -0
  15. package/dist/events/listeners.d.ts.map +1 -0
  16. package/dist/events/listeners.js +23 -0
  17. package/dist/events/listeners.js.map +7 -0
  18. package/dist/helpers/apply-selective-updates.d.ts +1 -1
  19. package/dist/helpers/apply-selective-updates.d.ts.map +1 -1
  20. package/dist/helpers/apply-selective-updates.js +1 -1
  21. package/dist/helpers/apply-selective-updates.js.map +2 -2
  22. package/dist/helpers/deep-clone.d.ts.map +1 -1
  23. package/dist/helpers/general.d.ts.map +1 -1
  24. package/dist/helpers/get-resolved-ref.d.ts.map +1 -1
  25. package/dist/helpers/merge-object.d.ts.map +1 -1
  26. package/dist/helpers/merge-object.js.map +2 -2
  27. package/dist/helpers/overrides-proxy.d.ts.map +1 -1
  28. package/dist/helpers/overrides-proxy.js.map +2 -2
  29. package/dist/mutators/cookie.d.ts.map +1 -1
  30. package/dist/mutators/environment.d.ts +1 -1
  31. package/dist/mutators/environment.d.ts.map +1 -1
  32. package/dist/mutators/environment.js.map +1 -1
  33. package/dist/mutators/helpers.d.ts.map +1 -1
  34. package/dist/mutators/index.d.ts +9 -9
  35. package/dist/mutators/request-example.d.ts.map +1 -1
  36. package/dist/mutators/request.d.ts +1 -1
  37. package/dist/mutators/request.d.ts.map +1 -1
  38. package/dist/mutators/request.js.map +2 -2
  39. package/dist/mutators/security-schemes.d.ts +1 -2
  40. package/dist/mutators/security-schemes.d.ts.map +1 -1
  41. package/dist/mutators/security-schemes.js.map +2 -2
  42. package/dist/mutators/server.d.ts +2 -2
  43. package/dist/mutators/server.d.ts.map +1 -1
  44. package/dist/mutators/server.js +4 -2
  45. package/dist/mutators/server.js.map +2 -2
  46. package/dist/navigation/helpers/get-tag.d.ts.map +1 -1
  47. package/dist/navigation/helpers/traverse-description.d.ts +3 -1
  48. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  49. package/dist/navigation/helpers/traverse-document.d.ts +30 -30
  50. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  51. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  52. package/dist/navigation/helpers/traverse-paths.d.ts +5 -1
  53. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  54. package/dist/navigation/helpers/traverse-paths.js +3 -3
  55. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  56. package/dist/navigation/helpers/traverse-schemas.d.ts +5 -1
  57. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  58. package/dist/navigation/helpers/traverse-schemas.js +1 -1
  59. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  60. package/dist/navigation/helpers/traverse-tags.d.ts +6 -2
  61. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  62. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  63. package/dist/navigation/helpers/traverse-webhooks.d.ts +6 -2
  64. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  65. package/dist/navigation/helpers/traverse-webhooks.js +2 -2
  66. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  67. package/dist/navigation/helpers/utils.d.ts.map +1 -1
  68. package/dist/navigation/helpers/utils.js.map +2 -2
  69. package/dist/navigation/index.d.ts +1 -1
  70. package/dist/navigation/index.d.ts.map +1 -1
  71. package/dist/navigation/index.js.map +2 -2
  72. package/dist/navigation/types.d.ts +1 -2
  73. package/dist/navigation/types.d.ts.map +1 -1
  74. package/dist/plugins.d.ts +5 -37
  75. package/dist/plugins.d.ts.map +1 -1
  76. package/dist/plugins.js +0 -21
  77. package/dist/plugins.js.map +2 -2
  78. package/dist/preprocessing/server.d.ts +23 -0
  79. package/dist/preprocessing/server.d.ts.map +1 -0
  80. package/dist/preprocessing/server.js +84 -0
  81. package/dist/preprocessing/server.js.map +7 -0
  82. package/dist/schemas/compose.d.ts +1 -1
  83. package/dist/schemas/compose.d.ts.map +1 -1
  84. package/dist/schemas/compose.js +1 -1
  85. package/dist/schemas/compose.js.map +2 -2
  86. package/dist/schemas/extensions/document/x-internal.d.ts +2 -2
  87. package/dist/schemas/extensions/document/x-internal.js +1 -1
  88. package/dist/schemas/extensions/document/x-internal.js.map +1 -1
  89. package/dist/schemas/extensions/document/x-scalar-icon.d.ts +2 -2
  90. package/dist/schemas/extensions/document/x-scalar-icon.js +1 -1
  91. package/dist/schemas/extensions/document/x-scalar-icon.js.map +1 -1
  92. package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +2 -2
  93. package/dist/schemas/extensions/document/x-scalar-ignore.js +1 -1
  94. package/dist/schemas/extensions/document/x-scalar-ignore.js.map +1 -1
  95. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +7 -5
  96. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
  97. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +1 -1
  98. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +2 -2
  99. package/dist/schemas/extensions/document/x-tags.d.ts +4 -0
  100. package/dist/schemas/extensions/document/x-tags.d.ts.map +1 -0
  101. package/dist/schemas/extensions/document/x-tags.js +8 -0
  102. package/dist/schemas/extensions/document/x-tags.js.map +7 -0
  103. package/dist/schemas/extensions/operation/x-badge.d.ts +10 -10
  104. package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -1
  105. package/dist/schemas/extensions/operation/x-badge.js +1 -1
  106. package/dist/schemas/extensions/operation/x-badge.js.map +2 -2
  107. package/dist/schemas/extensions/operation/x-code-samples.d.ts +17 -17
  108. package/dist/schemas/extensions/operation/x-code-samples.js +1 -1
  109. package/dist/schemas/extensions/operation/x-code-samples.js.map +1 -1
  110. package/dist/schemas/extensions/operation/x-post-response.d.ts +2 -2
  111. package/dist/schemas/extensions/operation/x-post-response.js +1 -1
  112. package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
  113. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +2 -2
  114. package/dist/schemas/extensions/operation/x-scalar-stability.js +1 -1
  115. package/dist/schemas/extensions/operation/x-scalar-stability.js.map +1 -1
  116. package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +2 -2
  117. package/dist/schemas/extensions/schema/x-additional-properties-name.js +1 -1
  118. package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +1 -1
  119. package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +2 -2
  120. package/dist/schemas/extensions/schema/x-enum-descriptions.js +1 -1
  121. package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +1 -1
  122. package/dist/schemas/extensions/schema/x-variable.d.ts +2 -2
  123. package/dist/schemas/extensions/schema/x-variable.js +1 -1
  124. package/dist/schemas/extensions/schema/x-variable.js.map +1 -1
  125. package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +2 -2
  126. package/dist/schemas/extensions/security/x-scalar-credentials-location.js +1 -1
  127. package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +1 -1
  128. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +2 -2
  129. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +1 -1
  130. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +1 -1
  131. package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +2 -2
  132. package/dist/schemas/extensions/security/x-scalar-security-body.js +1 -1
  133. package/dist/schemas/extensions/security/x-scalar-security-body.js.map +1 -1
  134. package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +2 -2
  135. package/dist/schemas/extensions/security/x-scalar-security-query.js +1 -1
  136. package/dist/schemas/extensions/security/x-scalar-security-query.js.map +1 -1
  137. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +5 -5
  138. package/dist/schemas/extensions/security/x-scalar-security-secrets.js +1 -1
  139. package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +1 -1
  140. package/dist/schemas/extensions/security/x-tokenName.d.ts +2 -2
  141. package/dist/schemas/extensions/security/x-tokenName.js +1 -1
  142. package/dist/schemas/extensions/security/x-tokenName.js.map +1 -1
  143. package/dist/schemas/extensions/security/x-use-pkce.d.ts +2 -2
  144. package/dist/schemas/extensions/security/x-use-pkce.js +1 -1
  145. package/dist/schemas/extensions/security/x-use-pkce.js.map +1 -1
  146. package/dist/schemas/extensions/tag/x-display-name.d.ts +2 -2
  147. package/dist/schemas/extensions/tag/x-display-name.js +1 -1
  148. package/dist/schemas/extensions/tag/x-display-name.js.map +1 -1
  149. package/dist/schemas/extensions/tag/x-tag-groups.d.ts +7 -7
  150. package/dist/schemas/extensions/tag/x-tag-groups.js +1 -1
  151. package/dist/schemas/extensions/tag/x-tag-groups.js.map +1 -1
  152. package/dist/schemas/inmemory-workspace.d.ts +2470 -190
  153. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  154. package/dist/schemas/inmemory-workspace.js +2 -3
  155. package/dist/schemas/inmemory-workspace.js.map +2 -2
  156. package/dist/schemas/navigation.d.ts +140 -134
  157. package/dist/schemas/navigation.d.ts.map +1 -1
  158. package/dist/schemas/navigation.js +13 -9
  159. package/dist/schemas/navigation.js.map +2 -2
  160. package/dist/schemas/reference-config/appearance.d.ts +9 -9
  161. package/dist/schemas/reference-config/appearance.d.ts.map +1 -1
  162. package/dist/schemas/reference-config/appearance.js +1 -1
  163. package/dist/schemas/reference-config/appearance.js.map +2 -2
  164. package/dist/schemas/reference-config/features.d.ts +11 -11
  165. package/dist/schemas/reference-config/features.d.ts.map +1 -1
  166. package/dist/schemas/reference-config/features.js +1 -1
  167. package/dist/schemas/reference-config/features.js.map +2 -2
  168. package/dist/schemas/reference-config/index.d.ts +1247 -46
  169. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  170. package/dist/schemas/reference-config/index.js +5 -5
  171. package/dist/schemas/reference-config/index.js.map +2 -2
  172. package/dist/schemas/reference-config/meta.d.ts +8 -8
  173. package/dist/schemas/reference-config/meta.d.ts.map +1 -1
  174. package/dist/schemas/reference-config/meta.js +1 -1
  175. package/dist/schemas/reference-config/meta.js.map +2 -2
  176. package/dist/schemas/reference-config/routing.d.ts +4 -4
  177. package/dist/schemas/reference-config/routing.d.ts.map +1 -1
  178. package/dist/schemas/reference-config/routing.js +1 -1
  179. package/dist/schemas/reference-config/routing.js.map +2 -2
  180. package/dist/schemas/reference-config/settings.d.ts +1215 -14
  181. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  182. package/dist/schemas/reference-config/settings.js +2 -2
  183. package/dist/schemas/reference-config/settings.js.map +2 -2
  184. package/dist/schemas/typebox-coerce.d.ts +1 -1
  185. package/dist/schemas/typebox-coerce.d.ts.map +1 -1
  186. package/dist/schemas/typebox-coerce.js +2 -2
  187. package/dist/schemas/typebox-coerce.js.map +2 -2
  188. package/dist/schemas/v3.1/strict/callback.d.ts +1 -2
  189. package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
  190. package/dist/schemas/v3.1/strict/callback.js +5 -4
  191. package/dist/schemas/v3.1/strict/callback.js.map +2 -2
  192. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +11 -11
  193. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -1
  194. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +1 -1
  195. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +2 -2
  196. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +19 -19
  197. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -1
  198. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js +1 -1
  199. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +2 -2
  200. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +27 -27
  201. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -1
  202. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +1 -1
  203. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +2 -2
  204. package/dist/schemas/v3.1/strict/components.d.ts +22 -42
  205. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  206. package/dist/schemas/v3.1/strict/components.js +24 -29
  207. package/dist/schemas/v3.1/strict/components.js.map +2 -2
  208. package/dist/schemas/v3.1/strict/contact.d.ts +4 -6
  209. package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
  210. package/dist/schemas/v3.1/strict/contact.js +3 -3
  211. package/dist/schemas/v3.1/strict/contact.js.map +2 -2
  212. package/dist/schemas/v3.1/strict/discriminator.d.ts +3 -5
  213. package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
  214. package/dist/schemas/v3.1/strict/discriminator.js +3 -3
  215. package/dist/schemas/v3.1/strict/discriminator.js.map +2 -2
  216. package/dist/schemas/v3.1/strict/encoding.d.ts +10 -4
  217. package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
  218. package/dist/schemas/v3.1/strict/encoding.js +5 -4
  219. package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
  220. package/dist/schemas/v3.1/strict/example.d.ts +5 -7
  221. package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
  222. package/dist/schemas/v3.1/strict/example.js +3 -3
  223. package/dist/schemas/v3.1/strict/example.js.map +2 -2
  224. package/dist/schemas/v3.1/strict/external-documentation.d.ts +3 -5
  225. package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
  226. package/dist/schemas/v3.1/strict/external-documentation.js +3 -3
  227. package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
  228. package/dist/schemas/v3.1/strict/header.d.ts +39 -347
  229. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  230. package/dist/schemas/v3.1/strict/header.js +8 -11
  231. package/dist/schemas/v3.1/strict/header.js.map +2 -2
  232. package/dist/schemas/v3.1/strict/info.d.ts +13 -23
  233. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  234. package/dist/schemas/v3.1/strict/info.js +7 -8
  235. package/dist/schemas/v3.1/strict/info.js.map +2 -2
  236. package/dist/schemas/v3.1/strict/license.d.ts +4 -6
  237. package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
  238. package/dist/schemas/v3.1/strict/license.js +3 -3
  239. package/dist/schemas/v3.1/strict/license.js.map +2 -2
  240. package/dist/schemas/v3.1/strict/link.d.ts +7 -17
  241. package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
  242. package/dist/schemas/v3.1/strict/link.js +5 -5
  243. package/dist/schemas/v3.1/strict/link.js.map +2 -2
  244. package/dist/schemas/v3.1/strict/media-type.d.ts +10 -164
  245. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
  246. package/dist/schemas/v3.1/strict/media-type.js +7 -10
  247. package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
  248. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +59 -60
  249. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  250. package/dist/schemas/v3.1/strict/oauth-flow.js +3 -3
  251. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  252. package/dist/schemas/v3.1/strict/oauthflows.d.ts +30 -32
  253. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  254. package/dist/schemas/v3.1/strict/oauthflows.js +6 -6
  255. package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
  256. package/dist/schemas/v3.1/strict/openapi-document.d.ts +33908 -112
  257. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  258. package/dist/schemas/v3.1/strict/openapi-document.js +139 -24
  259. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  260. package/dist/schemas/v3.1/strict/operation.d.ts +52 -4946
  261. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  262. package/dist/schemas/v3.1/strict/operation.js +22 -19
  263. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  264. package/dist/schemas/v3.1/strict/parameter.d.ts +51 -1397
  265. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  266. package/dist/schemas/v3.1/strict/parameter.js +10 -11
  267. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  268. package/dist/schemas/v3.1/strict/path-item.d.ts +15 -1412
  269. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  270. package/dist/schemas/v3.1/strict/path-item.js +15 -16
  271. package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
  272. package/dist/schemas/v3.1/strict/paths.d.ts +1 -4
  273. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  274. package/dist/schemas/v3.1/strict/paths.js +5 -5
  275. package/dist/schemas/v3.1/strict/paths.js.map +2 -2
  276. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +63 -0
  277. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -0
  278. package/dist/schemas/v3.1/strict/ref-definitions.js +88 -0
  279. package/dist/schemas/v3.1/strict/ref-definitions.js.map +7 -0
  280. package/dist/schemas/v3.1/strict/reference.d.ts +8 -8
  281. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
  282. package/dist/schemas/v3.1/strict/reference.js +1 -1
  283. package/dist/schemas/v3.1/strict/reference.js.map +2 -2
  284. package/dist/schemas/v3.1/strict/request-body.d.ts +4 -520
  285. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
  286. package/dist/schemas/v3.1/strict/request-body.js +5 -5
  287. package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
  288. package/dist/schemas/v3.1/strict/response.d.ts +5 -1231
  289. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
  290. package/dist/schemas/v3.1/strict/response.js +7 -8
  291. package/dist/schemas/v3.1/strict/response.js.map +2 -2
  292. package/dist/schemas/v3.1/strict/responses.d.ts +1 -2461
  293. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
  294. package/dist/schemas/v3.1/strict/responses.js +5 -5
  295. package/dist/schemas/v3.1/strict/responses.js.map +2 -2
  296. package/dist/schemas/v3.1/strict/schema.d.ts +337 -192
  297. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  298. package/dist/schemas/v3.1/strict/schema.js +215 -207
  299. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  300. package/dist/schemas/v3.1/strict/security-requirement.d.ts +1 -3
  301. package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
  302. package/dist/schemas/v3.1/strict/security-requirement.js +3 -3
  303. package/dist/schemas/v3.1/strict/security-requirement.js.map +2 -2
  304. package/dist/schemas/v3.1/strict/security-scheme.d.ts +60 -130
  305. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  306. package/dist/schemas/v3.1/strict/security-scheme.js +5 -5
  307. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  308. package/dist/schemas/v3.1/strict/server-variable.d.ts +4 -6
  309. package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
  310. package/dist/schemas/v3.1/strict/server-variable.js +3 -3
  311. package/dist/schemas/v3.1/strict/server-variable.js.map +2 -2
  312. package/dist/schemas/v3.1/strict/server.d.ts +4 -10
  313. package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
  314. package/dist/schemas/v3.1/strict/server.js +5 -5
  315. package/dist/schemas/v3.1/strict/server.js.map +2 -2
  316. package/dist/schemas/v3.1/strict/tag.d.ts +10 -15
  317. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
  318. package/dist/schemas/v3.1/strict/tag.js +6 -6
  319. package/dist/schemas/v3.1/strict/tag.js.map +2 -2
  320. package/dist/schemas/v3.1/strict/xml.d.ts +6 -8
  321. package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
  322. package/dist/schemas/v3.1/strict/xml.js +3 -3
  323. package/dist/schemas/v3.1/strict/xml.js.map +2 -2
  324. package/dist/schemas/workspace-specification/config.d.ts +1248 -47
  325. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  326. package/dist/schemas/workspace-specification/config.js +1 -1
  327. package/dist/schemas/workspace-specification/config.js.map +2 -2
  328. package/dist/schemas/workspace-specification/index.d.ts +1260 -224
  329. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  330. package/dist/schemas/workspace-specification/index.js +2 -3
  331. package/dist/schemas/workspace-specification/index.js.map +2 -2
  332. package/dist/schemas/workspace-specification/info.d.ts +3 -3
  333. package/dist/schemas/workspace-specification/info.js +1 -1
  334. package/dist/schemas/workspace-specification/info.js.map +1 -1
  335. package/dist/schemas/workspace.d.ts +8520 -199
  336. package/dist/schemas/workspace.d.ts.map +1 -1
  337. package/dist/schemas/workspace.js +6 -8
  338. package/dist/schemas/workspace.js.map +2 -2
  339. package/dist/schemas.d.ts +1 -1
  340. package/dist/schemas.d.ts.map +1 -1
  341. package/dist/schemas.js +1 -4
  342. package/dist/schemas.js.map +2 -2
  343. package/dist/server.d.ts +2 -4
  344. package/dist/server.d.ts.map +1 -1
  345. package/dist/server.js +7 -5
  346. package/dist/server.js.map +2 -2
  347. package/package.json +12 -6
  348. package/dist/schemas/typebox-types.d.ts +0 -14
  349. package/dist/schemas/typebox-types.d.ts.map +0 -1
  350. package/dist/schemas/typebox-types.js +0 -19
  351. package/dist/schemas/typebox-types.js.map +0 -7
  352. package/dist/schemas/v3.1/loose/callback.d.ts +0 -10
  353. package/dist/schemas/v3.1/loose/callback.d.ts.map +0 -1
  354. package/dist/schemas/v3.1/loose/callback.js +0 -11
  355. package/dist/schemas/v3.1/loose/callback.js.map +0 -7
  356. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts +0 -16
  357. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +0 -1
  358. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js +0 -13
  359. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js.map +0 -7
  360. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts +0 -27
  361. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts.map +0 -1
  362. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js +0 -23
  363. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js.map +0 -7
  364. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts +0 -38
  365. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +0 -1
  366. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js +0 -45
  367. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js.map +0 -7
  368. package/dist/schemas/v3.1/loose/components.d.ts +0 -43
  369. package/dist/schemas/v3.1/loose/components.d.ts.map +0 -1
  370. package/dist/schemas/v3.1/loose/components.js +0 -41
  371. package/dist/schemas/v3.1/loose/components.js.map +0 -7
  372. package/dist/schemas/v3.1/loose/contact.d.ts +0 -10
  373. package/dist/schemas/v3.1/loose/contact.d.ts.map +0 -1
  374. package/dist/schemas/v3.1/loose/contact.js +0 -13
  375. package/dist/schemas/v3.1/loose/contact.js.map +0 -7
  376. package/dist/schemas/v3.1/loose/discriminator.d.ts +0 -12
  377. package/dist/schemas/v3.1/loose/discriminator.d.ts.map +0 -1
  378. package/dist/schemas/v3.1/loose/discriminator.js +0 -11
  379. package/dist/schemas/v3.1/loose/discriminator.js.map +0 -7
  380. package/dist/schemas/v3.1/loose/encoding.d.ts +0 -15
  381. package/dist/schemas/v3.1/loose/encoding.d.ts.map +0 -1
  382. package/dist/schemas/v3.1/loose/encoding.js +0 -12
  383. package/dist/schemas/v3.1/loose/encoding.js.map +0 -7
  384. package/dist/schemas/v3.1/loose/example.d.ts +0 -16
  385. package/dist/schemas/v3.1/loose/example.d.ts.map +0 -1
  386. package/dist/schemas/v3.1/loose/example.js +0 -15
  387. package/dist/schemas/v3.1/loose/example.js.map +0 -7
  388. package/dist/schemas/v3.1/loose/external-documentation.d.ts +0 -8
  389. package/dist/schemas/v3.1/loose/external-documentation.d.ts.map +0 -1
  390. package/dist/schemas/v3.1/loose/external-documentation.js +0 -11
  391. package/dist/schemas/v3.1/loose/external-documentation.js.map +0 -7
  392. package/dist/schemas/v3.1/loose/header.d.ts +0 -355
  393. package/dist/schemas/v3.1/loose/header.d.ts.map +0 -1
  394. package/dist/schemas/v3.1/loose/header.js +0 -43
  395. package/dist/schemas/v3.1/loose/header.js.map +0 -7
  396. package/dist/schemas/v3.1/loose/info.d.ts +0 -48
  397. package/dist/schemas/v3.1/loose/info.d.ts.map +0 -1
  398. package/dist/schemas/v3.1/loose/info.js +0 -29
  399. package/dist/schemas/v3.1/loose/info.js.map +0 -7
  400. package/dist/schemas/v3.1/loose/license.d.ts +0 -10
  401. package/dist/schemas/v3.1/loose/license.d.ts.map +0 -1
  402. package/dist/schemas/v3.1/loose/license.js +0 -13
  403. package/dist/schemas/v3.1/loose/license.js.map +0 -7
  404. package/dist/schemas/v3.1/loose/link.d.ts +0 -30
  405. package/dist/schemas/v3.1/loose/link.d.ts.map +0 -1
  406. package/dist/schemas/v3.1/loose/link.js +0 -20
  407. package/dist/schemas/v3.1/loose/link.js.map +0 -7
  408. package/dist/schemas/v3.1/loose/media-header-encoding.d.ts +0 -1012
  409. package/dist/schemas/v3.1/loose/media-header-encoding.d.ts.map +0 -1
  410. package/dist/schemas/v3.1/loose/media-header-encoding.js +0 -19
  411. package/dist/schemas/v3.1/loose/media-header-encoding.js.map +0 -7
  412. package/dist/schemas/v3.1/loose/media-type.d.ts +0 -161
  413. package/dist/schemas/v3.1/loose/media-type.d.ts.map +0 -1
  414. package/dist/schemas/v3.1/loose/media-type.js +0 -18
  415. package/dist/schemas/v3.1/loose/media-type.js.map +0 -7
  416. package/dist/schemas/v3.1/loose/oauth-flow.d.ts +0 -95
  417. package/dist/schemas/v3.1/loose/oauth-flow.d.ts.map +0 -1
  418. package/dist/schemas/v3.1/loose/oauth-flow.js +0 -57
  419. package/dist/schemas/v3.1/loose/oauth-flow.js.map +0 -7
  420. package/dist/schemas/v3.1/loose/oauthflows.d.ts +0 -43
  421. package/dist/schemas/v3.1/loose/oauthflows.d.ts.map +0 -1
  422. package/dist/schemas/v3.1/loose/oauthflows.js +0 -21
  423. package/dist/schemas/v3.1/loose/oauthflows.js.map +0 -7
  424. package/dist/schemas/v3.1/loose/openapi-document.d.ts +0 -115
  425. package/dist/schemas/v3.1/loose/openapi-document.d.ts.map +0 -1
  426. package/dist/schemas/v3.1/loose/openapi-document.js +0 -64
  427. package/dist/schemas/v3.1/loose/openapi-document.js.map +0 -7
  428. package/dist/schemas/v3.1/loose/operation.d.ts +0 -1645
  429. package/dist/schemas/v3.1/loose/operation.d.ts.map +0 -1
  430. package/dist/schemas/v3.1/loose/operation.js +0 -61
  431. package/dist/schemas/v3.1/loose/operation.js.map +0 -7
  432. package/dist/schemas/v3.1/loose/parameter.d.ts +0 -1074
  433. package/dist/schemas/v3.1/loose/parameter.d.ts.map +0 -1
  434. package/dist/schemas/v3.1/loose/parameter.js +0 -54
  435. package/dist/schemas/v3.1/loose/parameter.js.map +0 -7
  436. package/dist/schemas/v3.1/loose/path-item.d.ts +0 -551
  437. package/dist/schemas/v3.1/loose/path-item.d.ts.map +0 -1
  438. package/dist/schemas/v3.1/loose/path-item.js +0 -42
  439. package/dist/schemas/v3.1/loose/path-item.js.map +0 -7
  440. package/dist/schemas/v3.1/loose/path-operations.d.ts +0 -2196
  441. package/dist/schemas/v3.1/loose/path-operations.d.ts.map +0 -1
  442. package/dist/schemas/v3.1/loose/path-operations.js +0 -21
  443. package/dist/schemas/v3.1/loose/path-operations.js.map +0 -7
  444. package/dist/schemas/v3.1/loose/paths.d.ts +0 -20
  445. package/dist/schemas/v3.1/loose/paths.d.ts.map +0 -1
  446. package/dist/schemas/v3.1/loose/paths.js +0 -11
  447. package/dist/schemas/v3.1/loose/paths.js.map +0 -7
  448. package/dist/schemas/v3.1/loose/reference.d.ts +0 -26
  449. package/dist/schemas/v3.1/loose/reference.d.ts.map +0 -1
  450. package/dist/schemas/v3.1/loose/reference.js +0 -24
  451. package/dist/schemas/v3.1/loose/reference.js.map +0 -7
  452. package/dist/schemas/v3.1/loose/request-body.d.ts +0 -339
  453. package/dist/schemas/v3.1/loose/request-body.d.ts.map +0 -1
  454. package/dist/schemas/v3.1/loose/request-body.js +0 -14
  455. package/dist/schemas/v3.1/loose/request-body.js.map +0 -7
  456. package/dist/schemas/v3.1/loose/response.d.ts +0 -698
  457. package/dist/schemas/v3.1/loose/response.d.ts.map +0 -1
  458. package/dist/schemas/v3.1/loose/response.js +0 -18
  459. package/dist/schemas/v3.1/loose/response.js.map +0 -7
  460. package/dist/schemas/v3.1/loose/responses.d.ts +0 -710
  461. package/dist/schemas/v3.1/loose/responses.d.ts.map +0 -1
  462. package/dist/schemas/v3.1/loose/responses.js +0 -11
  463. package/dist/schemas/v3.1/loose/responses.js.map +0 -7
  464. package/dist/schemas/v3.1/loose/schema.d.ts +0 -373
  465. package/dist/schemas/v3.1/loose/schema.d.ts.map +0 -1
  466. package/dist/schemas/v3.1/loose/schema.js +0 -146
  467. package/dist/schemas/v3.1/loose/schema.js.map +0 -7
  468. package/dist/schemas/v3.1/loose/security-requirement.d.ts +0 -11
  469. package/dist/schemas/v3.1/loose/security-requirement.d.ts.map +0 -1
  470. package/dist/schemas/v3.1/loose/security-requirement.js +0 -10
  471. package/dist/schemas/v3.1/loose/security-requirement.js.map +0 -7
  472. package/dist/schemas/v3.1/loose/security-scheme.d.ts +0 -169
  473. package/dist/schemas/v3.1/loose/security-scheme.d.ts.map +0 -1
  474. package/dist/schemas/v3.1/loose/security-scheme.js +0 -64
  475. package/dist/schemas/v3.1/loose/security-scheme.js.map +0 -7
  476. package/dist/schemas/v3.1/loose/server-variable.d.ts +0 -10
  477. package/dist/schemas/v3.1/loose/server-variable.d.ts.map +0 -1
  478. package/dist/schemas/v3.1/loose/server-variable.js +0 -13
  479. package/dist/schemas/v3.1/loose/server-variable.js.map +0 -7
  480. package/dist/schemas/v3.1/loose/server.d.ts +0 -14
  481. package/dist/schemas/v3.1/loose/server.d.ts.map +0 -1
  482. package/dist/schemas/v3.1/loose/server.js +0 -14
  483. package/dist/schemas/v3.1/loose/server.js.map +0 -7
  484. package/dist/schemas/v3.1/loose/tag.d.ts +0 -19
  485. package/dist/schemas/v3.1/loose/tag.d.ts.map +0 -1
  486. package/dist/schemas/v3.1/loose/tag.js +0 -23
  487. package/dist/schemas/v3.1/loose/tag.js.map +0 -7
  488. package/dist/schemas/v3.1/loose/xml.d.ts +0 -18
  489. package/dist/schemas/v3.1/loose/xml.d.ts.map +0 -1
  490. package/dist/schemas/v3.1/loose/xml.js +0 -17
  491. package/dist/schemas/v3.1/loose/xml.js.map +0 -7
  492. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +0 -1560
  493. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +0 -1
  494. package/dist/schemas/v3.1/strict/media-header-encoding.js +0 -19
  495. package/dist/schemas/v3.1/strict/media-header-encoding.js.map +0 -7
  496. package/dist/schemas/v3.1/strict/path-operations.d.ts +0 -10628
  497. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +0 -1
  498. package/dist/schemas/v3.1/strict/path-operations.js +0 -21
  499. package/dist/schemas/v3.1/strict/path-operations.js.map +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAKtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IAEvE;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,wDAAwD;;IAExD,wDAAwD;;IAExD,qDAAqD;;IAErD,sDAAsD;;IAEtD,6KAA6K;;;;;;;;;;IAE7K,6aAA6a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7a,CAAA"}
1
+ {"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,8BAA8B;IACzC;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,wDAAwD;;IAExD,wDAAwD;;IAExD,qDAAqD;;IAErD,sDAAsD;;IAEtD,6KAA6K;;IAE7K,6aAA6a;;EAE7a,CAAA"}
@@ -1,8 +1,7 @@
1
- import { Type } from "@sinclair/typebox";
2
- import { ParameterObjectSchema } from "./parameter.js";
1
+ import { Type } from "@scalar/typebox";
2
+ import { OperationObjectRef, ParameterObjectRef, ServerObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
3
3
  import { reference } from "./reference.js";
4
- import { ServerObjectSchema } from "./server.js";
5
- const pathItemObjectSchemaBuilder = (operation) => Type.Object({
4
+ const PathItemObjectSchemaDefinition = Type.Object({
6
5
  /**
7
6
  * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.
8
7
  *
@@ -14,29 +13,29 @@ const pathItemObjectSchemaBuilder = (operation) => Type.Object({
14
13
  /** An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation. */
15
14
  description: Type.Optional(Type.String()),
16
15
  /** A definition of a GET operation on this path. */
17
- get: Type.Optional(Type.Union([operation, reference(operation)])),
16
+ get: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
18
17
  /** A definition of a PUT operation on this path. */
19
- put: Type.Optional(Type.Union([operation, reference(operation)])),
18
+ put: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
20
19
  /** A definition of a POST operation on this path. */
21
- post: Type.Optional(Type.Union([operation, reference(operation)])),
20
+ post: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
22
21
  /** A definition of a DELETE operation on this path. */
23
- delete: Type.Optional(Type.Union([operation, reference(operation)])),
22
+ delete: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
24
23
  /** A definition of a PATCH operation on this path. */
25
- patch: Type.Optional(Type.Union([operation, reference(operation)])),
24
+ patch: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
26
25
  /** A definition of a CONNECT operation on this path. */
27
- connect: Type.Optional(Type.Union([operation, reference(operation)])),
26
+ connect: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
28
27
  /** A definition of a OPTIONS operation on this path. */
29
- options: Type.Optional(Type.Union([operation, reference(operation)])),
28
+ options: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
30
29
  /** A definition of a HEAD operation on this path. */
31
- head: Type.Optional(Type.Union([operation, reference(operation)])),
30
+ head: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
32
31
  /** A definition of a TRACE operation on this path. */
33
- trace: Type.Optional(Type.Union([operation, reference(operation)])),
32
+ trace: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),
34
33
  /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */
35
- servers: Type.Optional(Type.Array(ServerObjectSchema)),
34
+ servers: Type.Optional(Type.Array(ServerObjectRef)),
36
35
  /** A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */
37
- parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectSchema, reference(ParameterObjectSchema)])))
36
+ parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectRef, reference(ParameterObjectRef)])))
38
37
  });
39
38
  export {
40
- pathItemObjectSchemaBuilder
39
+ PathItemObjectSchemaDefinition
41
40
  };
42
41
  //# sourceMappingURL=path-item.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/path-item.ts"],
4
- "sourcesContent": ["import { Type, type TSchema } from '@sinclair/typebox'\nimport { ParameterObjectSchema } from './parameter'\nimport { reference } from './reference'\nimport { ServerObjectSchema } from './server'\n\nexport const pathItemObjectSchemaBuilder = <O extends TSchema>(operation: O) =>\n Type.Object({\n /**\n * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.\n *\n * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to bring it into closer alignment with the behavior of the Reference Object.\n */\n '$ref': Type.Optional(Type.String()),\n /** An optional string summary, intended to apply to all operations in this path. */\n summary: Type.Optional(Type.String()),\n /** An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A definition of a GET operation on this path. */\n get: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a PUT operation on this path. */\n put: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a POST operation on this path. */\n post: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a DELETE operation on this path. */\n delete: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a PATCH operation on this path. */\n patch: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a CONNECT operation on this path. */\n connect: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a OPTIONS operation on this path. */\n options: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a HEAD operation on this path. */\n head: Type.Optional(Type.Union([operation, reference(operation)])),\n /** A definition of a TRACE operation on this path. */\n trace: Type.Optional(Type.Union([operation, reference(operation)])),\n /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectSchema)),\n /** A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectSchema, reference(ParameterObjectSchema)]))),\n })\n"],
5
- "mappings": "AAAA,SAAS,YAA0B;AACnC,SAAS,6BAA6B;AACtC,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AAE5B,MAAM,8BAA8B,CAAoB,cAC7D,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMV,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEnC,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,KAAK,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAEhE,KAAK,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAEhE,MAAM,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAEjE,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAEnE,OAAO,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAElE,SAAS,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAEpE,SAAS,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAEpE,MAAM,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAEjE,OAAO,KAAK,SAAS,KAAK,MAAM,CAAC,WAAW,UAAU,SAAS,CAAC,CAAC,CAAC;AAAA;AAAA,EAElE,SAAS,KAAK,SAAS,KAAK,MAAM,kBAAkB,CAAC;AAAA;AAAA,EAErD,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,uBAAuB,UAAU,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAC7G,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { OperationObjectRef, ParameterObjectRef, ServerObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nimport { reference } from './reference'\n\nexport const PathItemObjectSchemaDefinition = Type.Object({\n /**\n * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.\n *\n * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to bring it into closer alignment with the behavior of the Reference Object.\n */\n '$ref': Type.Optional(Type.String()),\n /** An optional string summary, intended to apply to all operations in this path. */\n summary: Type.Optional(Type.String()),\n /** An optional string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A definition of a GET operation on this path. */\n get: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a PUT operation on this path. */\n put: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a POST operation on this path. */\n post: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a DELETE operation on this path. */\n delete: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a PATCH operation on this path. */\n patch: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a CONNECT operation on this path. */\n connect: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a OPTIONS operation on this path. */\n options: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a HEAD operation on this path. */\n head: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** A definition of a TRACE operation on this path. */\n trace: Type.Optional(Type.Union([OperationObjectRef, reference(OperationObjectRef)])),\n /** An alternative servers array to service all operations in this path. If a servers array is specified at the OpenAPI Object level, it will be overridden by this value. */\n servers: Type.Optional(Type.Array(ServerObjectRef)),\n /** A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */\n parameters: Type.Optional(Type.Array(Type.Union([ParameterObjectRef, reference(ParameterObjectRef)]))),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,oBAAoB,oBAAoB,uBAAuB;AAExE,SAAS,iBAAiB;AAEnB,MAAM,iCAAiC,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMxD,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEnC,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAExC,KAAK,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAElF,KAAK,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAElF,MAAM,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAEnF,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAErF,OAAO,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAEpF,SAAS,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAEtF,SAAS,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAEtF,MAAM,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAEnF,OAAO,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC;AAAA;AAAA,EAEpF,SAAS,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAAA;AAAA,EAElD,YAAY,KAAK,SAAS,KAAK,MAAM,KAAK,MAAM,CAAC,oBAAoB,UAAU,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACvG,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,5 @@
1
- import { type Static, type TRecord, type TString } from '@sinclair/typebox';
2
- import { PathItemObjectSchema } from '../../../schemas/v3.1/strict/path-operations.js';
3
1
  /**
4
2
  * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL) constraints.
5
3
  */
6
- export declare const PathsObjectSchema: TRecord<TString, typeof PathItemObjectSchema>;
7
- export type PathsObject = Static<typeof PathsObjectSchema>;
4
+ export declare const PathsObjectSchemaDefinition: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TRef<"PathItemObject">>;
8
5
  //# sourceMappingURL=paths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,oBAAoB,CAI3E,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/paths.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,2BAA2B,wHAIvC,CAAA"}
@@ -1,11 +1,11 @@
1
- import { Type } from "@sinclair/typebox";
2
- import { PathItemObjectSchema } from "../../../schemas/v3.1/strict/path-operations.js";
3
- const PathsObjectSchema = Type.Record(
1
+ import { Type } from "@scalar/typebox";
2
+ import { PathItemObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
3
+ const PathsObjectSchemaDefinition = Type.Record(
4
4
  Type.String(),
5
5
  /** A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. */
6
- PathItemObjectSchema
6
+ PathItemObjectRef
7
7
  );
8
8
  export {
9
- PathsObjectSchema
9
+ PathsObjectSchemaDefinition
10
10
  };
11
11
  //# sourceMappingURL=paths.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/paths.ts"],
4
- "sourcesContent": ["import { Type, type Static, type TRecord, type TString } from '@sinclair/typebox'\nimport { PathItemObjectSchema } from '@/schemas/v3.1/strict/path-operations'\n\n/**\n * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL) constraints.\n */\nexport const PathsObjectSchema: TRecord<TString, typeof PathItemObjectSchema> = Type.Record(\n Type.String(),\n /** A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. */\n PathItemObjectSchema,\n)\n\nexport type PathsObject = Static<typeof PathsObjectSchema>\n"],
5
- "mappings": "AAAA,SAAS,YAAqD;AAC9D,SAAS,4BAA4B;AAK9B,MAAM,oBAAmE,KAAK;AAAA,EACnF,KAAK,OAAO;AAAA;AAAA,EAEZ;AACF;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { PathItemObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\n/**\n * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL) constraints.\n */\nexport const PathsObjectSchemaDefinition = Type.Record(\n Type.String(),\n /** A relative path to an individual endpoint. The field name MUST begin with a forward slash (/). The path is appended (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use. */\n PathItemObjectRef,\n)\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,yBAAyB;AAK3B,MAAM,8BAA8B,KAAK;AAAA,EAC9C,KAAK,OAAO;AAAA;AAAA,EAEZ;AACF;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Reference definitions for OpenAPI 3.1 objects.
3
+ * These can be used with Type.Ref to create references to these objects in other schemas.
4
+ *
5
+ * Referencing them this way helps avoid circular dependencies in TypeBox schemas while keeping the overhead performance lower.
6
+ */
7
+ export declare const REF_DEFINITIONS: {
8
+ readonly ComponentsObject: "ComponentsObject";
9
+ readonly SecurityRequirementObject: "SecurityRequirementObject";
10
+ readonly TagObject: "TagObject";
11
+ readonly CallbackObject: "CallbackObject";
12
+ readonly PathsObject: "PathsObject";
13
+ readonly PathItemObject: "PathItemObject";
14
+ readonly OperationObject: "OperationObject";
15
+ readonly SchemaObject: "SchemaObject";
16
+ readonly EncodingObject: "EncodingObject";
17
+ readonly HeaderObject: "HeaderObject";
18
+ readonly MediaTypeObject: "MediaTypeObject";
19
+ readonly ServerObject: "ServerObject";
20
+ readonly ExternalDocumentationObject: "ExternalDocumentationObject";
21
+ readonly InfoObject: "InfoObject";
22
+ readonly ContactObject: "ContactObject";
23
+ readonly LicenseObject: "LicenseObject";
24
+ readonly ResponseObject: "ResponseObject";
25
+ readonly ResponsesObject: "ResponsesObject";
26
+ readonly ParameterObject: "ParameterObject";
27
+ readonly ExampleObject: "ExampleObject";
28
+ readonly RequestBodyObject: "RequestBodyObject";
29
+ readonly SecuritySchemeObject: "SecuritySchemeObject";
30
+ readonly LinkObject: "LinkObject";
31
+ readonly XMLObject: "XMLObject";
32
+ readonly DiscriminatorObject: "DiscriminatorObject";
33
+ readonly OAuthFlowsObject: "OAuthFlowsObject";
34
+ readonly ServerVariableObject: "ServerVariableObject";
35
+ };
36
+ export declare const ComponentsObjectRef: import("@scalar/typebox").TRef<"ComponentsObject">;
37
+ export declare const SecurityRequirementObjectRef: import("@scalar/typebox").TRef<"SecurityRequirementObject">;
38
+ export declare const TagObjectRef: import("@scalar/typebox").TRef<"TagObject">;
39
+ export declare const CallbackObjectRef: import("@scalar/typebox").TRef<"CallbackObject">;
40
+ export declare const PathItemObjectRef: import("@scalar/typebox").TRef<"PathItemObject">;
41
+ export declare const PathsObjectRef: import("@scalar/typebox").TRef<"PathsObject">;
42
+ export declare const OperationObjectRef: import("@scalar/typebox").TRef<"OperationObject">;
43
+ export declare const SchemaObjectRef: import("@scalar/typebox").TRef<"SchemaObject">;
44
+ export declare const EncodingObjectRef: import("@scalar/typebox").TRef<"EncodingObject">;
45
+ export declare const HeaderObjectRef: import("@scalar/typebox").TRef<"HeaderObject">;
46
+ export declare const MediaTypeObjectRef: import("@scalar/typebox").TRef<"MediaTypeObject">;
47
+ export declare const ServerObjectRef: import("@scalar/typebox").TRef<"ServerObject">;
48
+ export declare const ExternalDocumentationObjectRef: import("@scalar/typebox").TRef<"ExternalDocumentationObject">;
49
+ export declare const InfoObjectRef: import("@scalar/typebox").TRef<"InfoObject">;
50
+ export declare const ContactObjectRef: import("@scalar/typebox").TRef<"ContactObject">;
51
+ export declare const LicenseObjectRef: import("@scalar/typebox").TRef<"LicenseObject">;
52
+ export declare const ResponseObjectRef: import("@scalar/typebox").TRef<"ResponseObject">;
53
+ export declare const ResponsesObjectRef: import("@scalar/typebox").TRef<"ResponsesObject">;
54
+ export declare const ParameterObjectRef: import("@scalar/typebox").TRef<"ParameterObject">;
55
+ export declare const ExampleObjectRef: import("@scalar/typebox").TRef<"ExampleObject">;
56
+ export declare const RequestBodyObjectRef: import("@scalar/typebox").TRef<"RequestBodyObject">;
57
+ export declare const SecuritySchemeObjectRef: import("@scalar/typebox").TRef<"SecuritySchemeObject">;
58
+ export declare const LinkObjectRef: import("@scalar/typebox").TRef<"LinkObject">;
59
+ export declare const XMLObjectRef: import("@scalar/typebox").TRef<"XMLObject">;
60
+ export declare const DiscriminatorObjectRef: import("@scalar/typebox").TRef<"DiscriminatorObject">;
61
+ export declare const OAuthFlowsObjectRef: import("@scalar/typebox").TRef<"OAuthFlowsObject">;
62
+ export declare const ServerVariableObjectRef: import("@scalar/typebox").TRef<"ServerVariableObject">;
63
+ //# sourceMappingURL=ref-definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ref-definitions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/ref-definitions.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BlB,CAAA;AAGV,eAAO,MAAM,mBAAmB,oDAA6C,CAAA;AAC7E,eAAO,MAAM,4BAA4B,6DAAsD,CAAA;AAC/F,eAAO,MAAM,YAAY,6CAAsC,CAAA;AAC/D,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,cAAc,+CAAwC,CAAA;AACnE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,eAAe,gDAAyC,CAAA;AACrE,eAAO,MAAM,8BAA8B,+DAAwD,CAAA;AACnG,eAAO,MAAM,aAAa,8CAAuC,CAAA;AACjE,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,iBAAiB,kDAA2C,CAAA;AACzE,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,kBAAkB,mDAA4C,CAAA;AAC3E,eAAO,MAAM,gBAAgB,iDAA0C,CAAA;AACvE,eAAO,MAAM,oBAAoB,qDAA8C,CAAA;AAC/E,eAAO,MAAM,uBAAuB,wDAAiD,CAAA;AACrF,eAAO,MAAM,aAAa,8CAAuC,CAAA;AACjE,eAAO,MAAM,YAAY,6CAAsC,CAAA;AAC/D,eAAO,MAAM,sBAAsB,uDAAgD,CAAA;AACnF,eAAO,MAAM,mBAAmB,oDAA6C,CAAA;AAC7E,eAAO,MAAM,uBAAuB,wDAAiD,CAAA"}
@@ -0,0 +1,88 @@
1
+ import { Type } from "@scalar/typebox";
2
+ const REF_DEFINITIONS = {
3
+ ComponentsObject: "ComponentsObject",
4
+ SecurityRequirementObject: "SecurityRequirementObject",
5
+ TagObject: "TagObject",
6
+ CallbackObject: "CallbackObject",
7
+ PathsObject: "PathsObject",
8
+ PathItemObject: "PathItemObject",
9
+ OperationObject: "OperationObject",
10
+ SchemaObject: "SchemaObject",
11
+ EncodingObject: "EncodingObject",
12
+ HeaderObject: "HeaderObject",
13
+ MediaTypeObject: "MediaTypeObject",
14
+ ServerObject: "ServerObject",
15
+ ExternalDocumentationObject: "ExternalDocumentationObject",
16
+ InfoObject: "InfoObject",
17
+ ContactObject: "ContactObject",
18
+ LicenseObject: "LicenseObject",
19
+ ResponseObject: "ResponseObject",
20
+ ResponsesObject: "ResponsesObject",
21
+ ParameterObject: "ParameterObject",
22
+ ExampleObject: "ExampleObject",
23
+ RequestBodyObject: "RequestBodyObject",
24
+ SecuritySchemeObject: "SecuritySchemeObject",
25
+ LinkObject: "LinkObject",
26
+ XMLObject: "XMLObject",
27
+ DiscriminatorObject: "DiscriminatorObject",
28
+ OAuthFlowsObject: "OAuthFlowsObject",
29
+ ServerVariableObject: "ServerVariableObject"
30
+ };
31
+ const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject);
32
+ const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject);
33
+ const TagObjectRef = Type.Ref(REF_DEFINITIONS.TagObject);
34
+ const CallbackObjectRef = Type.Ref(REF_DEFINITIONS.CallbackObject);
35
+ const PathItemObjectRef = Type.Ref(REF_DEFINITIONS.PathItemObject);
36
+ const PathsObjectRef = Type.Ref(REF_DEFINITIONS.PathsObject);
37
+ const OperationObjectRef = Type.Ref(REF_DEFINITIONS.OperationObject);
38
+ const SchemaObjectRef = Type.Ref(REF_DEFINITIONS.SchemaObject);
39
+ const EncodingObjectRef = Type.Ref(REF_DEFINITIONS.EncodingObject);
40
+ const HeaderObjectRef = Type.Ref(REF_DEFINITIONS.HeaderObject);
41
+ const MediaTypeObjectRef = Type.Ref(REF_DEFINITIONS.MediaTypeObject);
42
+ const ServerObjectRef = Type.Ref(REF_DEFINITIONS.ServerObject);
43
+ const ExternalDocumentationObjectRef = Type.Ref(REF_DEFINITIONS.ExternalDocumentationObject);
44
+ const InfoObjectRef = Type.Ref(REF_DEFINITIONS.InfoObject);
45
+ const ContactObjectRef = Type.Ref(REF_DEFINITIONS.ContactObject);
46
+ const LicenseObjectRef = Type.Ref(REF_DEFINITIONS.LicenseObject);
47
+ const ResponseObjectRef = Type.Ref(REF_DEFINITIONS.ResponseObject);
48
+ const ResponsesObjectRef = Type.Ref(REF_DEFINITIONS.ResponsesObject);
49
+ const ParameterObjectRef = Type.Ref(REF_DEFINITIONS.ParameterObject);
50
+ const ExampleObjectRef = Type.Ref(REF_DEFINITIONS.ExampleObject);
51
+ const RequestBodyObjectRef = Type.Ref(REF_DEFINITIONS.RequestBodyObject);
52
+ const SecuritySchemeObjectRef = Type.Ref(REF_DEFINITIONS.SecuritySchemeObject);
53
+ const LinkObjectRef = Type.Ref(REF_DEFINITIONS.LinkObject);
54
+ const XMLObjectRef = Type.Ref(REF_DEFINITIONS.XMLObject);
55
+ const DiscriminatorObjectRef = Type.Ref(REF_DEFINITIONS.DiscriminatorObject);
56
+ const OAuthFlowsObjectRef = Type.Ref(REF_DEFINITIONS.OAuthFlowsObject);
57
+ const ServerVariableObjectRef = Type.Ref(REF_DEFINITIONS.ServerVariableObject);
58
+ export {
59
+ CallbackObjectRef,
60
+ ComponentsObjectRef,
61
+ ContactObjectRef,
62
+ DiscriminatorObjectRef,
63
+ EncodingObjectRef,
64
+ ExampleObjectRef,
65
+ ExternalDocumentationObjectRef,
66
+ HeaderObjectRef,
67
+ InfoObjectRef,
68
+ LicenseObjectRef,
69
+ LinkObjectRef,
70
+ MediaTypeObjectRef,
71
+ OAuthFlowsObjectRef,
72
+ OperationObjectRef,
73
+ ParameterObjectRef,
74
+ PathItemObjectRef,
75
+ PathsObjectRef,
76
+ REF_DEFINITIONS,
77
+ RequestBodyObjectRef,
78
+ ResponseObjectRef,
79
+ ResponsesObjectRef,
80
+ SchemaObjectRef,
81
+ SecurityRequirementObjectRef,
82
+ SecuritySchemeObjectRef,
83
+ ServerObjectRef,
84
+ ServerVariableObjectRef,
85
+ TagObjectRef,
86
+ XMLObjectRef
87
+ };
88
+ //# sourceMappingURL=ref-definitions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/ref-definitions.ts"],
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Reference definitions for OpenAPI 3.1 objects.\n * These can be used with Type.Ref to create references to these objects in other schemas.\n *\n * Referencing them this way helps avoid circular dependencies in TypeBox schemas while keeping the overhead performance lower.\n */\nexport const REF_DEFINITIONS = {\n ComponentsObject: 'ComponentsObject',\n SecurityRequirementObject: 'SecurityRequirementObject',\n TagObject: 'TagObject',\n CallbackObject: 'CallbackObject',\n PathsObject: 'PathsObject',\n PathItemObject: 'PathItemObject',\n OperationObject: 'OperationObject',\n SchemaObject: 'SchemaObject',\n EncodingObject: 'EncodingObject',\n HeaderObject: 'HeaderObject',\n MediaTypeObject: 'MediaTypeObject',\n ServerObject: 'ServerObject',\n ExternalDocumentationObject: 'ExternalDocumentationObject',\n InfoObject: 'InfoObject',\n ContactObject: 'ContactObject',\n LicenseObject: 'LicenseObject',\n ResponseObject: 'ResponseObject',\n ResponsesObject: 'ResponsesObject',\n ParameterObject: 'ParameterObject',\n ExampleObject: 'ExampleObject',\n RequestBodyObject: 'RequestBodyObject',\n SecuritySchemeObject: 'SecuritySchemeObject',\n LinkObject: 'LinkObject',\n XMLObject: 'XMLObject',\n DiscriminatorObject: 'DiscriminatorObject',\n OAuthFlowsObject: 'OAuthFlowsObject',\n ServerVariableObject: 'ServerVariableObject',\n} as const\n\n// Type alias for schema definitions\nexport const ComponentsObjectRef = Type.Ref(REF_DEFINITIONS.ComponentsObject)\nexport const SecurityRequirementObjectRef = Type.Ref(REF_DEFINITIONS.SecurityRequirementObject)\nexport const TagObjectRef = Type.Ref(REF_DEFINITIONS.TagObject)\nexport const CallbackObjectRef = Type.Ref(REF_DEFINITIONS.CallbackObject)\nexport const PathItemObjectRef = Type.Ref(REF_DEFINITIONS.PathItemObject)\nexport const PathsObjectRef = Type.Ref(REF_DEFINITIONS.PathsObject)\nexport const OperationObjectRef = Type.Ref(REF_DEFINITIONS.OperationObject)\nexport const SchemaObjectRef = Type.Ref(REF_DEFINITIONS.SchemaObject)\nexport const EncodingObjectRef = Type.Ref(REF_DEFINITIONS.EncodingObject)\nexport const HeaderObjectRef = Type.Ref(REF_DEFINITIONS.HeaderObject)\nexport const MediaTypeObjectRef = Type.Ref(REF_DEFINITIONS.MediaTypeObject)\nexport const ServerObjectRef = Type.Ref(REF_DEFINITIONS.ServerObject)\nexport const ExternalDocumentationObjectRef = Type.Ref(REF_DEFINITIONS.ExternalDocumentationObject)\nexport const InfoObjectRef = Type.Ref(REF_DEFINITIONS.InfoObject)\nexport const ContactObjectRef = Type.Ref(REF_DEFINITIONS.ContactObject)\nexport const LicenseObjectRef = Type.Ref(REF_DEFINITIONS.LicenseObject)\nexport const ResponseObjectRef = Type.Ref(REF_DEFINITIONS.ResponseObject)\nexport const ResponsesObjectRef = Type.Ref(REF_DEFINITIONS.ResponsesObject)\nexport const ParameterObjectRef = Type.Ref(REF_DEFINITIONS.ParameterObject)\nexport const ExampleObjectRef = Type.Ref(REF_DEFINITIONS.ExampleObject)\nexport const RequestBodyObjectRef = Type.Ref(REF_DEFINITIONS.RequestBodyObject)\nexport const SecuritySchemeObjectRef = Type.Ref(REF_DEFINITIONS.SecuritySchemeObject)\nexport const LinkObjectRef = Type.Ref(REF_DEFINITIONS.LinkObject)\nexport const XMLObjectRef = Type.Ref(REF_DEFINITIONS.XMLObject)\nexport const DiscriminatorObjectRef = Type.Ref(REF_DEFINITIONS.DiscriminatorObject)\nexport const OAuthFlowsObjectRef = Type.Ref(REF_DEFINITIONS.OAuthFlowsObject)\nexport const ServerVariableObjectRef = Type.Ref(REF_DEFINITIONS.ServerVariableObject)\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAQd,MAAM,kBAAkB;AAAA,EAC7B,kBAAkB;AAAA,EAClB,2BAA2B;AAAA,EAC3B,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,6BAA6B;AAAA,EAC7B,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,sBAAsB;AACxB;AAGO,MAAM,sBAAsB,KAAK,IAAI,gBAAgB,gBAAgB;AACrE,MAAM,+BAA+B,KAAK,IAAI,gBAAgB,yBAAyB;AACvF,MAAM,eAAe,KAAK,IAAI,gBAAgB,SAAS;AACvD,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,iBAAiB,KAAK,IAAI,gBAAgB,WAAW;AAC3D,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,kBAAkB,KAAK,IAAI,gBAAgB,YAAY;AAC7D,MAAM,iCAAiC,KAAK,IAAI,gBAAgB,2BAA2B;AAC3F,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,oBAAoB,KAAK,IAAI,gBAAgB,cAAc;AACjE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,qBAAqB,KAAK,IAAI,gBAAgB,eAAe;AACnE,MAAM,mBAAmB,KAAK,IAAI,gBAAgB,aAAa;AAC/D,MAAM,uBAAuB,KAAK,IAAI,gBAAgB,iBAAiB;AACvE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;AAC7E,MAAM,gBAAgB,KAAK,IAAI,gBAAgB,UAAU;AACzD,MAAM,eAAe,KAAK,IAAI,gBAAgB,SAAS;AACvD,MAAM,yBAAyB,KAAK,IAAI,gBAAgB,mBAAmB;AAC3E,MAAM,sBAAsB,KAAK,IAAI,gBAAgB,gBAAgB;AACrE,MAAM,0BAA0B,KAAK,IAAI,gBAAgB,oBAAoB;",
6
+ "names": []
7
+ }
@@ -1,9 +1,9 @@
1
- import { type Static, type TIntersect, type TObject, type TSchema } from '@sinclair/typebox';
1
+ import { type Static, type TIntersect, type TObject, type TSchema } from '@scalar/typebox';
2
2
  export declare const ReferenceObjectExtensionsSchema: TObject<{
3
3
  /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */
4
- $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
4
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
5
5
  /** Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context. */
6
- $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
6
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
7
7
  }>;
8
8
  /**
9
9
  * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.
@@ -13,16 +13,16 @@ export declare const ReferenceObjectExtensionsSchema: TObject<{
13
13
  * See the rules for resolving Relative References. */
14
14
  export declare const ReferenceObjectSchema: TIntersect<[TObject<{
15
15
  /** REQUIRED. The reference identifier. This MUST be in the form of a URI. */
16
- $ref: import("@sinclair/typebox").TString;
16
+ $ref: import("@scalar/typebox").TString;
17
17
  /** A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect. */
18
- summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
+ summary: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
19
19
  /** A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect. */
20
- description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
21
21
  }>, TObject<{
22
22
  /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */
23
- $status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"loading">, import("@sinclair/typebox").TLiteral<"error">]>>;
23
+ $status: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"loading">, import("@scalar/typebox").TLiteral<"error">]>>;
24
24
  /** Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context. */
25
- $global: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
25
+ $global: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
26
26
  }>]>;
27
27
  export type ReferenceObject = Static<typeof ReferenceObjectSchema>;
28
28
  export declare const reference: <T extends TSchema>(schema: T) => ReferenceType<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/reference.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAElG,eAAO,MAAM,+BAA+B;IAC1C,0JAA0J;;IAE1J,+IAA+I;;EAE/I,CAAA;AAEF;;;;;sDAKsD;AACtD,eAAO,MAAM,qBAAqB;IAE9B,6EAA6E;;IAE7E,sLAAsL;;IAEtL,oPAAoP;;;IAlBtP,0JAA0J;;IAE1J,+IAA+I;;IAoBhJ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAElE,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,OAAO,UAAU,CAAC,KAAG,aAAa,CAAC,CAAC,CACD,CAAA;AAEvE,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,OAAO,IAAI,UAAU,CAC5D;IACE,OAAO,qBAAqB;IAC5B,OAAO,CAAC;QACN,YAAY,EAAE,MAAM,CAAA;KACrB,CAAC;CACH,CACF,CAAA"}
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,iBAAiB,CAAA;AAIhG,eAAO,MAAM,+BAA+B;IAC1C,0JAA0J;;IAE1J,+IAA+I;;EAE/I,CAAA;AAEF;;;;;sDAKsD;AACtD,eAAO,MAAM,qBAAqB;IAE9B,6EAA6E;;IAE7E,sLAAsL;;IAEtL,oPAAoP;;;IAlBtP,0JAA0J;;IAE1J,+IAA+I;;IAoBhJ,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAElE,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,OAAO,EAAE,QAAQ,CAAC,KAAG,aAAa,CAAC,CAAC,CACD,CAAA;AAEvE,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,OAAO,IAAI,UAAU,CAC5D;IACE,OAAO,qBAAqB;IAC5B,OAAO,CAAC;QACN,YAAY,EAAE,MAAM,CAAA;KACrB,CAAC;CACH,CACF,CAAA"}
@@ -1,5 +1,5 @@
1
+ import { Type } from "@scalar/typebox";
1
2
  import { compose } from "../../../schemas/compose.js";
2
- import { Type } from "@sinclair/typebox";
3
3
  const ReferenceObjectExtensionsSchema = Type.Object({
4
4
  /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */
5
5
  "$status": Type.Optional(Type.Union([Type.Literal("loading"), Type.Literal("error")])),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/reference.ts"],
4
- "sourcesContent": ["import { compose } from '@/schemas/compose'\nimport { Type, type Static, type TIntersect, type TObject, type TSchema } from '@sinclair/typebox'\n\nexport const ReferenceObjectExtensionsSchema = Type.Object({\n /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */\n '$status': Type.Optional(Type.Union([Type.Literal('loading'), Type.Literal('error')])),\n /** Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context. */\n '$global': Type.Optional(Type.Boolean()),\n})\n\n/**\n * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.\n *\n * The $ref string value contains a URI RFC3986, which identifies the value being referenced.\n *\n * See the rules for resolving Relative References. */\nexport const ReferenceObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The reference identifier. This MUST be in the form of a URI. */\n '$ref': Type.String(),\n /** A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect. */\n summary: Type.Optional(Type.String()),\n /** A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect. */\n description: Type.Optional(Type.String()),\n }),\n ReferenceObjectExtensionsSchema,\n)\n\nexport type ReferenceObject = Static<typeof ReferenceObjectSchema>\n\nexport const reference = <T extends TSchema>(schema: T): ReferenceType<T> =>\n compose(ReferenceObjectSchema, Type.Object({ '$ref-value': schema }))\n\nexport type ReferenceType<Schema extends TSchema> = TIntersect<\n [\n typeof ReferenceObjectSchema,\n TObject<{\n '$ref-value': Schema\n }>,\n ]\n>\n"],
5
- "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,YAAsE;AAExE,MAAM,kCAAkC,KAAK,OAAO;AAAA;AAAA,EAEzD,WAAW,KAAK,SAAS,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC,CAAC;AAAA;AAAA,EAErF,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AACzC,CAAC;AAQM,MAAM,wBAAwB;AAAA,EACnC,KAAK,OAAO;AAAA;AAAA,IAEV,QAAQ,KAAK,OAAO;AAAA;AAAA,IAEpB,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;AAIO,MAAM,YAAY,CAAoB,WAC3C,QAAQ,uBAAuB,KAAK,OAAO,EAAE,cAAc,OAAO,CAAC,CAAC;",
4
+ "sourcesContent": ["import { type Static, type TIntersect, type TObject, type TSchema, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\n\nexport const ReferenceObjectExtensionsSchema = Type.Object({\n /** Indicates the current status of the reference resolution. Can be either 'loading' while fetching the reference or 'error' if the resolution failed. */\n '$status': Type.Optional(Type.Union([Type.Literal('loading'), Type.Literal('error')])),\n /** Indicates whether this reference should be resolved globally across all documents, rather than just within the current document context. */\n '$global': Type.Optional(Type.Boolean()),\n})\n\n/**\n * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.\n *\n * The $ref string value contains a URI RFC3986, which identifies the value being referenced.\n *\n * See the rules for resolving Relative References. */\nexport const ReferenceObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The reference identifier. This MUST be in the form of a URI. */\n '$ref': Type.String(),\n /** A short summary which by default SHOULD override that of the referenced component. If the referenced object-type does not allow a summary field, then this field has no effect. */\n summary: Type.Optional(Type.String()),\n /** A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for rich text representation. If the referenced object-type does not allow a description field, then this field has no effect. */\n description: Type.Optional(Type.String()),\n }),\n ReferenceObjectExtensionsSchema,\n)\n\nexport type ReferenceObject = Static<typeof ReferenceObjectSchema>\n\nexport const reference = <T extends TSchema>(schema: T): ReferenceType<T> =>\n compose(ReferenceObjectSchema, Type.Object({ '$ref-value': schema }))\n\nexport type ReferenceType<Schema extends TSchema> = TIntersect<\n [\n typeof ReferenceObjectSchema,\n TObject<{\n '$ref-value': Schema\n }>,\n ]\n>\n"],
5
+ "mappings": "AAAA,SAAmE,YAAY;AAE/E,SAAS,eAAe;AAEjB,MAAM,kCAAkC,KAAK,OAAO;AAAA;AAAA,EAEzD,WAAW,KAAK,SAAS,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS,GAAG,KAAK,QAAQ,OAAO,CAAC,CAAC,CAAC;AAAA;AAAA,EAErF,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AACzC,CAAC;AAQM,MAAM,wBAAwB;AAAA,EACnC,KAAK,OAAO;AAAA;AAAA,IAEV,QAAQ,KAAK,OAAO;AAAA;AAAA,IAEpB,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;AAIO,MAAM,YAAY,CAAoB,WAC3C,QAAQ,uBAAuB,KAAK,OAAO,EAAE,cAAc,OAAO,CAAC,CAAC;",
6
6
  "names": []
7
7
  }