@scalar/workspace-store 0.12.0 → 0.14.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 (431) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/client.d.ts +252 -30
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +144 -277
  5. package/dist/client.js.map +2 -2
  6. package/dist/helpers/apply-selective-updates.d.ts +1 -1
  7. package/dist/helpers/apply-selective-updates.d.ts.map +1 -1
  8. package/dist/helpers/apply-selective-updates.js +1 -1
  9. package/dist/helpers/apply-selective-updates.js.map +2 -2
  10. package/dist/helpers/deep-clone.d.ts +21 -0
  11. package/dist/helpers/deep-clone.d.ts.map +1 -0
  12. package/dist/helpers/deep-clone.js +18 -0
  13. package/dist/helpers/deep-clone.js.map +7 -0
  14. package/dist/helpers/get-resolved-ref.d.ts +19 -0
  15. package/dist/helpers/get-resolved-ref.d.ts.map +1 -0
  16. package/dist/helpers/get-resolved-ref.js +13 -0
  17. package/dist/helpers/get-resolved-ref.js.map +7 -0
  18. package/dist/helpers/merge-object.d.ts +9 -1
  19. package/dist/helpers/merge-object.d.ts.map +1 -1
  20. package/dist/helpers/merge-object.js +10 -2
  21. package/dist/helpers/merge-object.js.map +2 -2
  22. package/dist/helpers/overrides-proxy.d.ts +43 -1
  23. package/dist/helpers/overrides-proxy.d.ts.map +1 -1
  24. package/dist/helpers/overrides-proxy.js +2 -2
  25. package/dist/helpers/overrides-proxy.js.map +2 -2
  26. package/dist/mutators/helpers.d.ts +2 -34830
  27. package/dist/mutators/helpers.d.ts.map +1 -1
  28. package/dist/mutators/helpers.js.map +2 -2
  29. package/dist/mutators/request-example.d.ts.map +1 -1
  30. package/dist/mutators/request-example.js +4 -7
  31. package/dist/mutators/request-example.js.map +2 -2
  32. package/dist/navigation/helpers/traverse-document.js +2 -2
  33. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  34. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  35. package/dist/navigation/helpers/traverse-paths.js +8 -5
  36. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  37. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  38. package/dist/navigation/helpers/traverse-schemas.js +8 -5
  39. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  40. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  41. package/dist/navigation/helpers/traverse-webhooks.js +9 -5
  42. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  43. package/dist/navigation/types.d.ts +3 -3
  44. package/dist/navigation/types.d.ts.map +1 -1
  45. package/dist/plugins.d.ts +93 -0
  46. package/dist/plugins.d.ts.map +1 -0
  47. package/dist/plugins.js +107 -0
  48. package/dist/plugins.js.map +7 -0
  49. package/dist/schemas/extensions/document/x-internal.d.ts +4 -0
  50. package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -0
  51. package/dist/schemas/extensions/document/x-internal.js +8 -0
  52. package/dist/schemas/extensions/document/x-internal.js.map +7 -0
  53. package/dist/schemas/extensions/document/x-scalar-icon.d.ts +4 -0
  54. package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -0
  55. package/dist/schemas/extensions/document/x-scalar-icon.js +8 -0
  56. package/dist/schemas/extensions/document/x-scalar-icon.js.map +7 -0
  57. package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -0
  58. package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -0
  59. package/dist/schemas/extensions/document/x-scalar-ignore.js +8 -0
  60. package/dist/schemas/extensions/document/x-scalar-ignore.js.map +7 -0
  61. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +8 -0
  62. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -0
  63. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +16 -0
  64. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +7 -0
  65. package/dist/schemas/extensions/operation/x-badge.d.ts +58 -0
  66. package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -0
  67. package/dist/schemas/extensions/operation/x-badge.js +41 -0
  68. package/dist/schemas/extensions/operation/x-badge.js.map +7 -0
  69. package/dist/schemas/extensions/operation/x-code-samples.d.ts +23 -0
  70. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -0
  71. package/dist/schemas/extensions/operation/x-code-samples.js +16 -0
  72. package/dist/schemas/extensions/operation/x-code-samples.js.map +7 -0
  73. package/dist/schemas/extensions/operation/x-post-response.d.ts +19 -0
  74. package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -0
  75. package/dist/schemas/extensions/operation/x-post-response.js +8 -0
  76. package/dist/schemas/extensions/operation/x-post-response.js.map +7 -0
  77. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +18 -0
  78. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -0
  79. package/dist/schemas/extensions/operation/x-scalar-stability.js +16 -0
  80. package/dist/schemas/extensions/operation/x-scalar-stability.js.map +7 -0
  81. package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +11 -0
  82. package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts.map +1 -0
  83. package/dist/schemas/extensions/schema/x-additional-properties-name.js +8 -0
  84. package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +7 -0
  85. package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +17 -0
  86. package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -0
  87. package/dist/schemas/extensions/schema/x-enum-descriptions.js +8 -0
  88. package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +7 -0
  89. package/dist/schemas/extensions/schema/x-variable.d.ts +4 -0
  90. package/dist/schemas/extensions/schema/x-variable.d.ts.map +1 -0
  91. package/dist/schemas/extensions/schema/x-variable.js +8 -0
  92. package/dist/schemas/extensions/schema/x-variable.js.map +7 -0
  93. package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +17 -0
  94. package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts.map +1 -0
  95. package/dist/schemas/extensions/security/x-scalar-credentials-location.js +8 -0
  96. package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +7 -0
  97. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +4 -0
  98. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +1 -0
  99. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +8 -0
  100. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +7 -0
  101. package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +15 -0
  102. package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -0
  103. package/dist/schemas/extensions/security/x-scalar-security-body.js +8 -0
  104. package/dist/schemas/extensions/security/x-scalar-security-body.js.map +7 -0
  105. package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +15 -0
  106. package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -0
  107. package/dist/schemas/extensions/security/x-scalar-security-query.js +8 -0
  108. package/dist/schemas/extensions/security/x-scalar-security-query.js.map +7 -0
  109. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +18 -0
  110. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -0
  111. package/dist/schemas/extensions/security/x-scalar-security-secrets.js +13 -0
  112. package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +7 -0
  113. package/dist/schemas/extensions/security/x-tokenName.d.ts +12 -0
  114. package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -0
  115. package/dist/schemas/extensions/security/x-tokenName.js +8 -0
  116. package/dist/schemas/extensions/security/x-tokenName.js.map +7 -0
  117. package/dist/schemas/extensions/security/x-use-pkce.d.ts +7 -0
  118. package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -0
  119. package/dist/schemas/extensions/security/x-use-pkce.js +13 -0
  120. package/dist/schemas/extensions/security/x-use-pkce.js.map +7 -0
  121. package/dist/schemas/extensions/tag/x-display-name.d.ts +12 -0
  122. package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -0
  123. package/dist/schemas/extensions/tag/x-display-name.js +8 -0
  124. package/dist/schemas/extensions/tag/x-display-name.js.map +7 -0
  125. package/dist/schemas/extensions/tag/x-tag-groups.d.ts +28 -0
  126. package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -0
  127. package/dist/schemas/extensions/tag/x-tag-groups.js +19 -0
  128. package/dist/schemas/extensions/tag/x-tag-groups.js.map +7 -0
  129. package/dist/schemas/inmemory-workspace.d.ts +48 -5545
  130. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  131. package/dist/schemas/inmemory-workspace.js +12 -3
  132. package/dist/schemas/inmemory-workspace.js.map +2 -2
  133. package/dist/schemas/reference-config/index.d.ts +12 -4
  134. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  135. package/dist/schemas/reference-config/index.js +0 -6
  136. package/dist/schemas/reference-config/index.js.map +2 -2
  137. package/dist/schemas/reference-config/settings.d.ts +12 -1
  138. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  139. package/dist/schemas/reference-config/settings.js +9 -2
  140. package/dist/schemas/reference-config/settings.js.map +2 -2
  141. package/dist/schemas/typebox-coerce.d.ts.map +1 -1
  142. package/dist/schemas/typebox-coerce.js +1 -3
  143. package/dist/schemas/typebox-coerce.js.map +2 -2
  144. package/dist/schemas/v3.1/loose/callback.d.ts +10 -0
  145. package/dist/schemas/v3.1/loose/callback.d.ts.map +1 -0
  146. package/dist/schemas/v3.1/loose/callback.js +11 -0
  147. package/dist/schemas/v3.1/loose/callback.js.map +7 -0
  148. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts +16 -0
  149. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -0
  150. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js +13 -0
  151. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-cookies.js.map +7 -0
  152. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts +27 -0
  153. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -0
  154. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js +23 -0
  155. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-environments.js.map +7 -0
  156. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts +38 -0
  157. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +1 -0
  158. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js +45 -0
  159. package/dist/schemas/v3.1/loose/client-config-extensions/x-scalar-client-config-request-example.js.map +7 -0
  160. package/dist/schemas/v3.1/loose/components.d.ts +43 -0
  161. package/dist/schemas/v3.1/loose/components.d.ts.map +1 -0
  162. package/dist/schemas/v3.1/loose/components.js +41 -0
  163. package/dist/schemas/v3.1/loose/components.js.map +7 -0
  164. package/dist/schemas/v3.1/loose/contact.d.ts +10 -0
  165. package/dist/schemas/v3.1/loose/contact.d.ts.map +1 -0
  166. package/dist/schemas/v3.1/loose/contact.js +13 -0
  167. package/dist/schemas/v3.1/loose/contact.js.map +7 -0
  168. package/dist/schemas/v3.1/loose/discriminator.d.ts +12 -0
  169. package/dist/schemas/v3.1/loose/discriminator.d.ts.map +1 -0
  170. package/dist/schemas/v3.1/loose/discriminator.js +11 -0
  171. package/dist/schemas/v3.1/loose/discriminator.js.map +7 -0
  172. package/dist/schemas/v3.1/loose/encoding.d.ts +15 -0
  173. package/dist/schemas/v3.1/loose/encoding.d.ts.map +1 -0
  174. package/dist/schemas/v3.1/loose/encoding.js +12 -0
  175. package/dist/schemas/v3.1/loose/encoding.js.map +7 -0
  176. package/dist/schemas/v3.1/loose/example.d.ts +16 -0
  177. package/dist/schemas/v3.1/loose/example.d.ts.map +1 -0
  178. package/dist/schemas/v3.1/loose/example.js +15 -0
  179. package/dist/schemas/v3.1/loose/example.js.map +7 -0
  180. package/dist/schemas/v3.1/loose/external-documentation.d.ts +8 -0
  181. package/dist/schemas/v3.1/loose/external-documentation.d.ts.map +1 -0
  182. package/dist/schemas/v3.1/loose/external-documentation.js +11 -0
  183. package/dist/schemas/v3.1/loose/external-documentation.js.map +7 -0
  184. package/dist/schemas/v3.1/loose/header.d.ts +355 -0
  185. package/dist/schemas/v3.1/loose/header.d.ts.map +1 -0
  186. package/dist/schemas/v3.1/loose/header.js +43 -0
  187. package/dist/schemas/v3.1/loose/header.js.map +7 -0
  188. package/dist/schemas/v3.1/loose/info.d.ts +48 -0
  189. package/dist/schemas/v3.1/loose/info.d.ts.map +1 -0
  190. package/dist/schemas/v3.1/loose/info.js +29 -0
  191. package/dist/schemas/v3.1/loose/info.js.map +7 -0
  192. package/dist/schemas/v3.1/loose/license.d.ts +10 -0
  193. package/dist/schemas/v3.1/loose/license.d.ts.map +1 -0
  194. package/dist/schemas/v3.1/loose/license.js +13 -0
  195. package/dist/schemas/v3.1/loose/license.js.map +7 -0
  196. package/dist/schemas/v3.1/loose/link.d.ts +30 -0
  197. package/dist/schemas/v3.1/loose/link.d.ts.map +1 -0
  198. package/dist/schemas/v3.1/loose/link.js +20 -0
  199. package/dist/schemas/v3.1/loose/link.js.map +7 -0
  200. package/dist/schemas/v3.1/loose/media-header-encoding.d.ts +1012 -0
  201. package/dist/schemas/v3.1/loose/media-header-encoding.d.ts.map +1 -0
  202. package/dist/schemas/v3.1/loose/media-header-encoding.js +19 -0
  203. package/dist/schemas/v3.1/loose/media-header-encoding.js.map +7 -0
  204. package/dist/schemas/v3.1/loose/media-type.d.ts +161 -0
  205. package/dist/schemas/v3.1/loose/media-type.d.ts.map +1 -0
  206. package/dist/schemas/v3.1/loose/media-type.js +18 -0
  207. package/dist/schemas/v3.1/loose/media-type.js.map +7 -0
  208. package/dist/schemas/v3.1/loose/oauth-flow.d.ts +95 -0
  209. package/dist/schemas/v3.1/loose/oauth-flow.d.ts.map +1 -0
  210. package/dist/schemas/v3.1/loose/oauth-flow.js +57 -0
  211. package/dist/schemas/v3.1/loose/oauth-flow.js.map +7 -0
  212. package/dist/schemas/v3.1/loose/oauthflows.d.ts +43 -0
  213. package/dist/schemas/v3.1/loose/oauthflows.d.ts.map +1 -0
  214. package/dist/schemas/v3.1/loose/oauthflows.js +21 -0
  215. package/dist/schemas/v3.1/loose/oauthflows.js.map +7 -0
  216. package/dist/schemas/v3.1/loose/openapi-document.d.ts +115 -0
  217. package/dist/schemas/v3.1/loose/openapi-document.d.ts.map +1 -0
  218. package/dist/schemas/v3.1/loose/openapi-document.js +64 -0
  219. package/dist/schemas/v3.1/loose/openapi-document.js.map +7 -0
  220. package/dist/schemas/v3.1/loose/operation.d.ts +1645 -0
  221. package/dist/schemas/v3.1/loose/operation.d.ts.map +1 -0
  222. package/dist/schemas/v3.1/loose/operation.js +61 -0
  223. package/dist/schemas/v3.1/loose/operation.js.map +7 -0
  224. package/dist/schemas/v3.1/loose/parameter.d.ts +1074 -0
  225. package/dist/schemas/v3.1/loose/parameter.d.ts.map +1 -0
  226. package/dist/schemas/v3.1/loose/parameter.js +54 -0
  227. package/dist/schemas/v3.1/loose/parameter.js.map +7 -0
  228. package/dist/schemas/v3.1/loose/path-item.d.ts +551 -0
  229. package/dist/schemas/v3.1/loose/path-item.d.ts.map +1 -0
  230. package/dist/schemas/v3.1/loose/path-item.js +42 -0
  231. package/dist/schemas/v3.1/loose/path-item.js.map +7 -0
  232. package/dist/schemas/v3.1/loose/path-operations.d.ts +2196 -0
  233. package/dist/schemas/v3.1/loose/path-operations.d.ts.map +1 -0
  234. package/dist/schemas/v3.1/loose/path-operations.js +21 -0
  235. package/dist/schemas/v3.1/loose/path-operations.js.map +7 -0
  236. package/dist/schemas/v3.1/loose/paths.d.ts +20 -0
  237. package/dist/schemas/v3.1/loose/paths.d.ts.map +1 -0
  238. package/dist/schemas/v3.1/loose/paths.js +11 -0
  239. package/dist/schemas/v3.1/loose/paths.js.map +7 -0
  240. package/dist/schemas/v3.1/loose/reference.d.ts +26 -0
  241. package/dist/schemas/v3.1/loose/reference.d.ts.map +1 -0
  242. package/dist/schemas/v3.1/loose/reference.js +24 -0
  243. package/dist/schemas/v3.1/loose/reference.js.map +7 -0
  244. package/dist/schemas/v3.1/loose/request-body.d.ts +339 -0
  245. package/dist/schemas/v3.1/loose/request-body.d.ts.map +1 -0
  246. package/dist/schemas/v3.1/loose/request-body.js +14 -0
  247. package/dist/schemas/v3.1/loose/request-body.js.map +7 -0
  248. package/dist/schemas/v3.1/loose/response.d.ts +698 -0
  249. package/dist/schemas/v3.1/loose/response.d.ts.map +1 -0
  250. package/dist/schemas/v3.1/loose/response.js +18 -0
  251. package/dist/schemas/v3.1/loose/response.js.map +7 -0
  252. package/dist/schemas/v3.1/loose/responses.d.ts +710 -0
  253. package/dist/schemas/v3.1/loose/responses.d.ts.map +1 -0
  254. package/dist/schemas/v3.1/loose/responses.js +11 -0
  255. package/dist/schemas/v3.1/loose/responses.js.map +7 -0
  256. package/dist/schemas/v3.1/loose/schema.d.ts +373 -0
  257. package/dist/schemas/v3.1/loose/schema.d.ts.map +1 -0
  258. package/dist/schemas/v3.1/loose/schema.js +146 -0
  259. package/dist/schemas/v3.1/loose/schema.js.map +7 -0
  260. package/dist/schemas/v3.1/loose/security-requirement.d.ts +11 -0
  261. package/dist/schemas/v3.1/loose/security-requirement.d.ts.map +1 -0
  262. package/dist/schemas/v3.1/loose/security-requirement.js +10 -0
  263. package/dist/schemas/v3.1/loose/security-requirement.js.map +7 -0
  264. package/dist/schemas/v3.1/loose/security-scheme.d.ts +169 -0
  265. package/dist/schemas/v3.1/loose/security-scheme.d.ts.map +1 -0
  266. package/dist/schemas/v3.1/loose/security-scheme.js +64 -0
  267. package/dist/schemas/v3.1/loose/security-scheme.js.map +7 -0
  268. package/dist/schemas/v3.1/loose/server-variable.d.ts +10 -0
  269. package/dist/schemas/v3.1/loose/server-variable.d.ts.map +1 -0
  270. package/dist/schemas/v3.1/loose/server-variable.js +13 -0
  271. package/dist/schemas/v3.1/loose/server-variable.js.map +7 -0
  272. package/dist/schemas/v3.1/loose/server.d.ts +14 -0
  273. package/dist/schemas/v3.1/loose/server.d.ts.map +1 -0
  274. package/dist/schemas/v3.1/loose/server.js +14 -0
  275. package/dist/schemas/v3.1/loose/server.js.map +7 -0
  276. package/dist/schemas/v3.1/loose/tag.d.ts +19 -0
  277. package/dist/schemas/v3.1/loose/tag.d.ts.map +1 -0
  278. package/dist/schemas/v3.1/loose/tag.js +23 -0
  279. package/dist/schemas/v3.1/loose/tag.js.map +7 -0
  280. package/dist/schemas/v3.1/loose/xml.d.ts +18 -0
  281. package/dist/schemas/v3.1/loose/xml.d.ts.map +1 -0
  282. package/dist/schemas/v3.1/loose/xml.js +17 -0
  283. package/dist/schemas/v3.1/loose/xml.js.map +7 -0
  284. package/dist/schemas/v3.1/strict/callback.d.ts +1 -8
  285. package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
  286. package/dist/schemas/v3.1/strict/callback.js +5 -10
  287. package/dist/schemas/v3.1/strict/callback.js.map +2 -2
  288. package/dist/schemas/v3.1/strict/components.d.ts +24 -28
  289. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  290. package/dist/schemas/v3.1/strict/components.js +35 -32
  291. package/dist/schemas/v3.1/strict/components.js.map +2 -2
  292. package/dist/schemas/v3.1/strict/contact.d.ts +2 -2
  293. package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
  294. package/dist/schemas/v3.1/strict/contact.js +8 -13
  295. package/dist/schemas/v3.1/strict/contact.js.map +2 -2
  296. package/dist/schemas/v3.1/strict/discriminator.d.ts +2 -2
  297. package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
  298. package/dist/schemas/v3.1/strict/discriminator.js +6 -11
  299. package/dist/schemas/v3.1/strict/discriminator.js.map +2 -2
  300. package/dist/schemas/v3.1/strict/encoding.d.ts +3 -10
  301. package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
  302. package/dist/schemas/v3.1/strict/encoding.js +7 -12
  303. package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
  304. package/dist/schemas/v3.1/strict/example.d.ts +2 -2
  305. package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
  306. package/dist/schemas/v3.1/strict/example.js +10 -15
  307. package/dist/schemas/v3.1/strict/example.js.map +2 -2
  308. package/dist/schemas/v3.1/strict/external-documentation.d.ts +2 -2
  309. package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
  310. package/dist/schemas/v3.1/strict/external-documentation.js +6 -11
  311. package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
  312. package/dist/schemas/v3.1/strict/header.d.ts +292 -54
  313. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  314. package/dist/schemas/v3.1/strict/header.js +14 -17
  315. package/dist/schemas/v3.1/strict/header.js.map +2 -2
  316. package/dist/schemas/v3.1/strict/info.d.ts +11 -5
  317. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  318. package/dist/schemas/v3.1/strict/info.js +2 -2
  319. package/dist/schemas/v3.1/strict/info.js.map +2 -2
  320. package/dist/schemas/v3.1/strict/license.d.ts +2 -2
  321. package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
  322. package/dist/schemas/v3.1/strict/license.js +8 -13
  323. package/dist/schemas/v3.1/strict/license.js.map +2 -2
  324. package/dist/schemas/v3.1/strict/link.d.ts +6 -6
  325. package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
  326. package/dist/schemas/v3.1/strict/link.js +14 -19
  327. package/dist/schemas/v3.1/strict/link.js.map +2 -2
  328. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +1389 -164
  329. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
  330. package/dist/schemas/v3.1/strict/media-type.d.ts +145 -19
  331. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
  332. package/dist/schemas/v3.1/strict/media-type.js +13 -20
  333. package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
  334. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +24 -8
  335. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  336. package/dist/schemas/v3.1/strict/oauth-flow.js +9 -9
  337. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  338. package/dist/schemas/v3.1/strict/oauthflows.d.ts +12 -4
  339. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  340. package/dist/schemas/v3.1/strict/oauthflows.js +10 -13
  341. package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
  342. package/dist/schemas/v3.1/strict/openapi-document.d.ts +7 -5
  343. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  344. package/dist/schemas/v3.1/strict/openapi-document.js +0 -2
  345. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  346. package/dist/schemas/v3.1/strict/operation.d.ts +4711 -343
  347. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  348. package/dist/schemas/v3.1/strict/operation.js +40 -35
  349. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  350. package/dist/schemas/v3.1/strict/parameter.d.ts +1226 -164
  351. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  352. package/dist/schemas/v3.1/strict/parameter.js +23 -25
  353. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  354. package/dist/schemas/v3.1/strict/path-item.d.ts +1320 -102
  355. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  356. package/dist/schemas/v3.1/strict/path-item.js +35 -40
  357. package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
  358. package/dist/schemas/v3.1/strict/path-operations.d.ts +10601 -11739
  359. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
  360. package/dist/schemas/v3.1/strict/path-operations.js +3 -1
  361. package/dist/schemas/v3.1/strict/path-operations.js.map +2 -2
  362. package/dist/schemas/v3.1/strict/paths.d.ts +3 -5514
  363. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  364. package/dist/schemas/v3.1/strict/paths.js +4 -9
  365. package/dist/schemas/v3.1/strict/paths.js.map +2 -2
  366. package/dist/schemas/v3.1/strict/reference.d.ts +12 -5
  367. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
  368. package/dist/schemas/v3.1/strict/reference.js +4 -4
  369. package/dist/schemas/v3.1/strict/reference.js.map +2 -2
  370. package/dist/schemas/v3.1/strict/request-body.d.ts +468 -56
  371. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
  372. package/dist/schemas/v3.1/strict/request-body.js +8 -13
  373. package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
  374. package/dist/schemas/v3.1/strict/response.d.ts +1121 -130
  375. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
  376. package/dist/schemas/v3.1/strict/response.js +11 -16
  377. package/dist/schemas/v3.1/strict/response.js.map +2 -2
  378. package/dist/schemas/v3.1/strict/responses.d.ts +2352 -139
  379. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
  380. package/dist/schemas/v3.1/strict/responses.js +4 -6
  381. package/dist/schemas/v3.1/strict/responses.js.map +2 -2
  382. package/dist/schemas/v3.1/strict/schema.d.ts +232 -15
  383. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  384. package/dist/schemas/v3.1/strict/schema.js +206 -31
  385. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  386. package/dist/schemas/v3.1/strict/security-requirement.d.ts +1 -1
  387. package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
  388. package/dist/schemas/v3.1/strict/security-requirement.js +4 -9
  389. package/dist/schemas/v3.1/strict/security-requirement.js.map +2 -2
  390. package/dist/schemas/v3.1/strict/security-scheme.d.ts +56 -26
  391. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  392. package/dist/schemas/v3.1/strict/security-scheme.js +11 -8
  393. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  394. package/dist/schemas/v3.1/strict/server-variable.d.ts +2 -2
  395. package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
  396. package/dist/schemas/v3.1/strict/server-variable.js +8 -13
  397. package/dist/schemas/v3.1/strict/server-variable.js.map +2 -2
  398. package/dist/schemas/v3.1/strict/server.d.ts +4 -4
  399. package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
  400. package/dist/schemas/v3.1/strict/server.js +8 -13
  401. package/dist/schemas/v3.1/strict/server.js.map +2 -2
  402. package/dist/schemas/v3.1/strict/tag.d.ts +7 -3
  403. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
  404. package/dist/schemas/v3.1/strict/tag.js +6 -8
  405. package/dist/schemas/v3.1/strict/tag.js.map +2 -2
  406. package/dist/schemas/v3.1/strict/xml.d.ts +2 -2
  407. package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
  408. package/dist/schemas/v3.1/strict/xml.js +12 -17
  409. package/dist/schemas/v3.1/strict/xml.js.map +2 -2
  410. package/dist/schemas/workspace-specification/config.d.ts +10 -2
  411. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  412. package/dist/schemas/workspace-specification/index.d.ts +39 -13
  413. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  414. package/dist/schemas/workspace.d.ts +63 -34
  415. package/dist/schemas/workspace.d.ts.map +1 -1
  416. package/dist/schemas/workspace.js +1 -0
  417. package/dist/schemas/workspace.js.map +2 -2
  418. package/dist/server.d.ts +2 -3290
  419. package/dist/server.d.ts.map +1 -1
  420. package/dist/server.js.map +2 -2
  421. package/dist/types.d.ts +0 -6
  422. package/dist/types.d.ts.map +1 -1
  423. package/package.json +17 -11
  424. package/dist/schemas/v3.1/strict/extensions.d.ts +0 -4
  425. package/dist/schemas/v3.1/strict/extensions.d.ts.map +0 -1
  426. package/dist/schemas/v3.1/strict/extensions.js +0 -6
  427. package/dist/schemas/v3.1/strict/extensions.js.map +0 -7
  428. package/dist/schemas/v3.1/type-guard.d.ts +0 -10
  429. package/dist/schemas/v3.1/type-guard.d.ts.map +0 -1
  430. package/dist/schemas/v3.1/type-guard.js +0 -7
  431. package/dist/schemas/v3.1/type-guard.js.map +0 -7
@@ -0,0 +1,107 @@
1
+ import { isLocalRef } from "./helpers/general.js";
2
+ const loadingStatus = () => {
3
+ return {
4
+ type: "lifecycle",
5
+ onResolveStart: (node) => {
6
+ node["$status"] = "loading";
7
+ },
8
+ onResolveError: (node) => {
9
+ node["$status"] = "error";
10
+ },
11
+ onResolveSuccess: (node) => {
12
+ delete node["$status"];
13
+ }
14
+ };
15
+ };
16
+ const externalValueResolver = () => {
17
+ return {
18
+ type: "lifecycle",
19
+ onAfterNodeProcess: async (node, context) => {
20
+ const externalValue = node["externalValue"];
21
+ const cache = context.resolutionCache;
22
+ if (typeof externalValue !== "string") {
23
+ return;
24
+ }
25
+ const loader = context.loaders.find((it) => it.validate(externalValue));
26
+ if (!loader) {
27
+ return;
28
+ }
29
+ if (!cache.has(externalValue)) {
30
+ cache.set(externalValue, loader.exec(externalValue));
31
+ }
32
+ const result = await cache.get(externalValue);
33
+ if (result?.ok) {
34
+ node["value"] = result.data;
35
+ }
36
+ }
37
+ };
38
+ };
39
+ const refsEverywhere = () => {
40
+ return {
41
+ type: "lifecycle",
42
+ onBeforeNodeProcess: async (node, context) => {
43
+ const { path, resolutionCache, parentNode } = context;
44
+ const ref = node["$ref"];
45
+ if (typeof ref !== "string") {
46
+ return;
47
+ }
48
+ if (!parentNode || !path.length) {
49
+ return;
50
+ }
51
+ const loader = context.loaders.find((it) => it.validate(ref));
52
+ if (!loader) {
53
+ return;
54
+ }
55
+ if (path[0] === "info") {
56
+ if (!resolutionCache.has(ref)) {
57
+ resolutionCache.set(ref, loader.exec(ref));
58
+ }
59
+ const result = await resolutionCache.get(ref);
60
+ if (result?.ok) {
61
+ parentNode[path.at(-1)] = result.data;
62
+ }
63
+ }
64
+ }
65
+ };
66
+ };
67
+ const restoreOriginalRefs = () => {
68
+ return {
69
+ type: "lifecycle",
70
+ onBeforeNodeProcess: (node, context) => {
71
+ const ref = node["$ref"];
72
+ const root = context.rootNode;
73
+ const extUrls = root["x-ext-urls"];
74
+ if (typeof ref !== "string" || typeof extUrls !== "object" || extUrls === null || !isLocalRef(ref)) {
75
+ return;
76
+ }
77
+ const segments = ref.split("/");
78
+ const key = segments.at(-1) ?? "";
79
+ node["$ref"] = extUrls[key] ?? ref;
80
+ }
81
+ };
82
+ };
83
+ const cleanUp = () => {
84
+ return {
85
+ type: "lifecycle",
86
+ onBeforeNodeProcess: (node) => {
87
+ if ("properties" in node && !("type" in node)) {
88
+ node["type"] = "object";
89
+ }
90
+ const arrayKeywords = ["items", "prefixItems", "minItems", "maxItems", "uniqueItems"];
91
+ if (arrayKeywords.some((it) => Object.hasOwn(node, it)) && !("type" in node)) {
92
+ node["type"] = "array";
93
+ }
94
+ if ("pattern" in node && !("type" in node)) {
95
+ node["type"] = "string";
96
+ }
97
+ }
98
+ };
99
+ };
100
+ export {
101
+ cleanUp,
102
+ externalValueResolver,
103
+ loadingStatus,
104
+ refsEverywhere,
105
+ restoreOriginalRefs
106
+ };
107
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/plugins.ts"],
4
+ "sourcesContent": ["/**\n * This file contains a collection of plugins used for the bundler.\n * Plugins defined here can extend or modify the behavior of the bundling process,\n * such as adding lifecycle hooks or custom processing logic.\n */\nimport { isLocalRef } from '@/helpers/general'\nimport type { LifecyclePlugin } from '@scalar/json-magic/bundle'\n\n/**\n * A lifecycle plugin that adds a `$status` property to nodes during resolution.\n * - Sets `$status` to 'loading' when resolution starts.\n * - Sets `$status` to 'error' if resolution fails.\n * - Removes `$status` when resolution succeeds.\n */\nexport const loadingStatus = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onResolveStart: (node) => {\n node['$status'] = 'loading'\n },\n onResolveError: (node) => {\n node['$status'] = 'error'\n },\n onResolveSuccess: (node) => {\n delete node['$status']\n },\n }\n}\n\n/**\n * Lifecycle plugin to resolve and embed external content referenced by an 'externalValue' property in a node.\n *\n * When a node contains an 'externalValue' property (as a string), this plugin will:\n * - Fetch the external resource (such as a URL or file) using the fetchUrls plugin.\n * - If the fetch is successful, assign the fetched data to the node's 'value' property.\n *\n * This is useful for inlining external content (like examples or schemas) into the OpenAPI document during bundling.\n *\n * @param node - The node being processed, which may contain an 'externalValue' property.\n */\nexport const externalValueResolver = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onAfterNodeProcess: async (node, context) => {\n const externalValue = node['externalValue']\n const cache = context.resolutionCache\n\n // Only process if 'externalValue' is a string\n if (typeof externalValue !== 'string') {\n return\n }\n\n const loader = context.loaders.find((it) => it.validate(externalValue))\n\n // We can not process the external value\n if (!loader) {\n return\n }\n\n if (!cache.has(externalValue)) {\n cache.set(externalValue, loader.exec(externalValue))\n }\n\n const result = await cache.get(externalValue)\n\n // If fetch is successful, assign the data to the node's 'value' property\n if (result?.ok) {\n node['value'] = result.data\n }\n },\n }\n}\n\n/**\n * Lifecycle plugin to resolve $ref on any object, including non-standard locations like the info object.\n *\n * This plugin will:\n * - Detect if a node contains a $ref property (as a string).\n * - If the node is under the 'info' path, attempt to resolve the reference using fetchUrls.\n * - Replace the node's properties with the resolved data if successful.\n *\n * Note: This currently only supports refs on the 'info' object and does not handle primitive types.\n */\nexport const refsEverywhere = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: async (node, context) => {\n const { path, resolutionCache, parentNode } = context\n const ref = node['$ref']\n\n // Only process nodes that have a $ref property as a string\n if (typeof ref !== 'string') {\n return\n }\n\n // Can not resolve top level refs\n if (!parentNode || !path.length) {\n return\n }\n\n const loader = context.loaders.find((it) => it.validate(ref))\n\n // Can not load the external ref\n if (!loader) {\n return\n }\n\n // Support resolving $ref on the info object\n if (path[0] === 'info') {\n // Use the cache to avoid duplicate fetches\n if (!resolutionCache.has(ref)) {\n resolutionCache.set(ref, loader.exec(ref))\n }\n\n const result = await resolutionCache.get(ref)\n\n if (result?.ok) {\n // Replace the ref with the resolved data\n parentNode[path.at(-1)!] = result.data\n }\n }\n },\n }\n}\n\n/**\n * Lifecycle plugin to restore original $ref values after processing.\n *\n * This plugin is intended to be used as a \"lifecycle\" plugin in the bundling process.\n * It operates in the `onAfterNodeProcess` hook, and its main purpose is to restore\n * the original $ref values for external references that may have been replaced or\n * rewritten during the bundling process.\n *\n * How it works:\n * - For each node processed, if the node contains a $ref property (as a string),\n * and the root document contains an \"x-ext-urls\" mapping object,\n * the plugin will attempt to restore the original $ref value.\n * - The \"x-ext-urls\" object is expected to be a mapping from the rewritten $ref\n * (e.g., a hashed or compressed reference) back to the original external URL or path.\n * - If a mapping exists for the current $ref, the plugin replaces the $ref value\n * with the original value from the mapping. If no mapping exists (e.g., for local refs),\n * the $ref value is left unchanged.\n *\n * This is useful for scenarios where you want to present or export the bundled document\n * with the original external $ref values, rather than the internal or rewritten ones.\n *\n * @returns {LifecyclePlugin} The plugin object for use in the bundler.\n */\nexport const restoreOriginalRefs = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: (node, context) => {\n const ref = node['$ref']\n const root = context.rootNode\n const extUrls = root['x-ext-urls']\n\n // Only process if $ref is a string and x-ext-urls is a valid object\n if (typeof ref !== 'string' || typeof extUrls !== 'object' || extUrls === null || !isLocalRef(ref)) {\n return\n }\n\n // Working with local refs\n\n const segments = ref.split('/')\n const key = segments.at(-1) ?? ''\n\n // Replace the $ref with the original version from the mapping,\n // or keep the current version if there is no mapping (e.g., for local refs)\n node['$ref'] = (extUrls as Record<string, string>)[key] ?? ref\n },\n }\n}\n\n/**\n * Lifecycle plugin to automatically add missing \"type\" fields to OpenAPI/JSON Schema nodes.\n *\n * This plugin is intended for use as a \"lifecycle\" plugin during the bundling process.\n * It ensures that schema objects are explicitly typed, improving compatibility with OpenAPI tools and validators.\n *\n * Behavior:\n * - If a schema object has a \"properties\" field but no \"type\", it sets \"type\" to \"object\".\n * This is required for schemas that define properties but omit the type.\n *\n * - If a schema object contains any array-related keywords (\"items\", \"prefixItems\", \"minItems\", \"maxItems\", or \"uniqueItems\")\n * and lacks a \"type\", it sets \"type\" to \"array\". This clarifies the intent for array schemas missing an explicit type.\n *\n * - If a schema object has a \"pattern\" field but no \"type\", it sets \"type\" to \"string\".\n * This ensures that pattern constraints are only applied to string-typed schemas.\n *\n * Usage:\n * Add this plugin to the bundler to automatically fix schemas missing \"type: object\", \"type: array\", or \"type: string\"\n * when defining properties, array-related keywords, or pattern constraints.\n *\n * Examples:\n * // Before:\n * { properties: { foo: { type: \"string\" } } }\n * // After:\n * { type: \"object\", properties: { foo: { type: \"string\" } } }\n *\n * // Before:\n * { items: { type: \"string\" } }\n * // After:\n * { type: \"array\", items: { type: \"string\" } }\n *\n * // Before:\n * { pattern: \"^[a-z]+$\" }\n * // After:\n * { type: \"string\", pattern: \"^[a-z]+$\" }\n */\nexport const cleanUp = (): LifecyclePlugin => {\n return {\n type: 'lifecycle',\n onBeforeNodeProcess: (node) => {\n // If the node has \"properties\" but no \"type\", set \"type\" to \"object\"\n if ('properties' in node && !('type' in node)) {\n node['type'] = 'object'\n }\n\n // Set type to 'array' for schemas that have array-related keywords but are missing a type\n const arrayKeywords = ['items', 'prefixItems', 'minItems', 'maxItems', 'uniqueItems']\n if (arrayKeywords.some((it) => Object.hasOwn(node, it)) && !('type' in node)) {\n node['type'] = 'array'\n }\n\n // If the node has \"pattern\" but no \"type\", set \"type\" to \"string\"\n if ('pattern' in node && !('type' in node)) {\n node['type'] = 'string'\n }\n },\n }\n}\n"],
5
+ "mappings": "AAKA,SAAS,kBAAkB;AASpB,MAAM,gBAAgB,MAAuB;AAClD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,gBAAgB,CAAC,SAAS;AACxB,WAAK,SAAS,IAAI;AAAA,IACpB;AAAA,IACA,gBAAgB,CAAC,SAAS;AACxB,WAAK,SAAS,IAAI;AAAA,IACpB;AAAA,IACA,kBAAkB,CAAC,SAAS;AAC1B,aAAO,KAAK,SAAS;AAAA,IACvB;AAAA,EACF;AACF;AAaO,MAAM,wBAAwB,MAAuB;AAC1D,SAAO;AAAA,IACL,MAAM;AAAA,IACN,oBAAoB,OAAO,MAAM,YAAY;AAC3C,YAAM,gBAAgB,KAAK,eAAe;AAC1C,YAAM,QAAQ,QAAQ;AAGtB,UAAI,OAAO,kBAAkB,UAAU;AACrC;AAAA,MACF;AAEA,YAAM,SAAS,QAAQ,QAAQ,KAAK,CAAC,OAAO,GAAG,SAAS,aAAa,CAAC;AAGtE,UAAI,CAAC,QAAQ;AACX;AAAA,MACF;AAEA,UAAI,CAAC,MAAM,IAAI,aAAa,GAAG;AAC7B,cAAM,IAAI,eAAe,OAAO,KAAK,aAAa,CAAC;AAAA,MACrD;AAEA,YAAM,SAAS,MAAM,MAAM,IAAI,aAAa;AAG5C,UAAI,QAAQ,IAAI;AACd,aAAK,OAAO,IAAI,OAAO;AAAA,MACzB;AAAA,IACF;AAAA,EACF;AACF;AAYO,MAAM,iBAAiB,MAAuB;AACnD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,qBAAqB,OAAO,MAAM,YAAY;AAC5C,YAAM,EAAE,MAAM,iBAAiB,WAAW,IAAI;AAC9C,YAAM,MAAM,KAAK,MAAM;AAGvB,UAAI,OAAO,QAAQ,UAAU;AAC3B;AAAA,MACF;AAGA,UAAI,CAAC,cAAc,CAAC,KAAK,QAAQ;AAC/B;AAAA,MACF;AAEA,YAAM,SAAS,QAAQ,QAAQ,KAAK,CAAC,OAAO,GAAG,SAAS,GAAG,CAAC;AAG5D,UAAI,CAAC,QAAQ;AACX;AAAA,MACF;AAGA,UAAI,KAAK,CAAC,MAAM,QAAQ;AAEtB,YAAI,CAAC,gBAAgB,IAAI,GAAG,GAAG;AAC7B,0BAAgB,IAAI,KAAK,OAAO,KAAK,GAAG,CAAC;AAAA,QAC3C;AAEA,cAAM,SAAS,MAAM,gBAAgB,IAAI,GAAG;AAE5C,YAAI,QAAQ,IAAI;AAEd,qBAAW,KAAK,GAAG,EAAE,CAAE,IAAI,OAAO;AAAA,QACpC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAyBO,MAAM,sBAAsB,MAAuB;AACxD,SAAO;AAAA,IACL,MAAM;AAAA,IACN,qBAAqB,CAAC,MAAM,YAAY;AACtC,YAAM,MAAM,KAAK,MAAM;AACvB,YAAM,OAAO,QAAQ;AACrB,YAAM,UAAU,KAAK,YAAY;AAGjC,UAAI,OAAO,QAAQ,YAAY,OAAO,YAAY,YAAY,YAAY,QAAQ,CAAC,WAAW,GAAG,GAAG;AAClG;AAAA,MACF;AAIA,YAAM,WAAW,IAAI,MAAM,GAAG;AAC9B,YAAM,MAAM,SAAS,GAAG,EAAE,KAAK;AAI/B,WAAK,MAAM,IAAK,QAAmC,GAAG,KAAK;AAAA,IAC7D;AAAA,EACF;AACF;AAsCO,MAAM,UAAU,MAAuB;AAC5C,SAAO;AAAA,IACL,MAAM;AAAA,IACN,qBAAqB,CAAC,SAAS;AAE7B,UAAI,gBAAgB,QAAQ,EAAE,UAAU,OAAO;AAC7C,aAAK,MAAM,IAAI;AAAA,MACjB;AAGA,YAAM,gBAAgB,CAAC,SAAS,eAAe,YAAY,YAAY,aAAa;AACpF,UAAI,cAAc,KAAK,CAAC,OAAO,OAAO,OAAO,MAAM,EAAE,CAAC,KAAK,EAAE,UAAU,OAAO;AAC5E,aAAK,MAAM,IAAI;AAAA,MACjB;AAGA,UAAI,aAAa,QAAQ,EAAE,UAAU,OAAO;AAC1C,aAAK,MAAM,IAAI;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare const XInternalSchema: import("@sinclair/typebox").TObject<{
2
+ 'x-internal': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
3
+ }>;
4
+ //# sourceMappingURL=x-internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-internal.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/document/x-internal.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;EAE1B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XInternalSchema = Type.Object({
3
+ "x-internal": Type.Optional(Type.Boolean())
4
+ });
5
+ export {
6
+ XInternalSchema
7
+ };
8
+ //# sourceMappingURL=x-internal.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/document/x-internal.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nexport const XInternalSchema = Type.Object({\n 'x-internal': Type.Optional(Type.Boolean()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,kBAAkB,KAAK,OAAO;AAAA,EACzC,cAAc,KAAK,SAAS,KAAK,QAAQ,CAAC;AAC5C,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare const XScalarIconSchema: import("@sinclair/typebox").TObject<{
2
+ 'x-scalar-icon': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
3
+ }>;
4
+ //# sourceMappingURL=x-scalar-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-scalar-icon.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/document/x-scalar-icon.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;EAE5B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XScalarIconSchema = Type.Object({
3
+ "x-scalar-icon": Type.Optional(Type.String())
4
+ });
5
+ export {
6
+ XScalarIconSchema
7
+ };
8
+ //# sourceMappingURL=x-scalar-icon.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/document/x-scalar-icon.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nexport const XScalarIconSchema = Type.Object({\n 'x-scalar-icon': Type.Optional(Type.String()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,oBAAoB,KAAK,OAAO;AAAA,EAC3C,iBAAiB,KAAK,SAAS,KAAK,OAAO,CAAC;AAC9C,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare const XScalarIgnoreSchema: import("@sinclair/typebox").TObject<{
2
+ 'x-scalar-ignore': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
3
+ }>;
4
+ //# sourceMappingURL=x-scalar-ignore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-scalar-ignore.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/document/x-scalar-ignore.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;EAE9B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XScalarIgnoreSchema = Type.Object({
3
+ "x-scalar-ignore": Type.Optional(Type.Boolean())
4
+ });
5
+ export {
6
+ XScalarIgnoreSchema
7
+ };
8
+ //# sourceMappingURL=x-scalar-ignore.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/document/x-scalar-ignore.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nexport const XScalarIgnoreSchema = Type.Object({\n 'x-scalar-ignore': Type.Optional(Type.Boolean()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,sBAAsB,KAAK,OAAO;AAAA,EAC7C,mBAAmB,KAAK,SAAS,KAAK,QAAQ,CAAC;AACjD,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ export declare const XScalarSdkInstallationSchema: import("@sinclair/typebox").TObject<{
2
+ 'x-scalar-sdk-installation': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
3
+ lang: import("@sinclair/typebox").TString;
4
+ source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
6
+ }>>>;
7
+ }>;
8
+ //# sourceMappingURL=x-scalar-sdk-installation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-scalar-sdk-installation.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/document/x-scalar-sdk-installation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,4BAA4B;;;;;;EAUvC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XScalarSdkInstallationSchema = Type.Object({
3
+ "x-scalar-sdk-installation": Type.Optional(
4
+ Type.Array(
5
+ Type.Object({
6
+ lang: Type.String(),
7
+ source: Type.Optional(Type.String()),
8
+ description: Type.Optional(Type.String())
9
+ })
10
+ )
11
+ )
12
+ });
13
+ export {
14
+ XScalarSdkInstallationSchema
15
+ };
16
+ //# sourceMappingURL=x-scalar-sdk-installation.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/document/x-scalar-sdk-installation.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nexport const XScalarSdkInstallationSchema = Type.Object({\n 'x-scalar-sdk-installation': Type.Optional(\n Type.Array(\n Type.Object({\n lang: Type.String(),\n source: Type.Optional(Type.String()),\n description: Type.Optional(Type.String()),\n }),\n ),\n ),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,+BAA+B,KAAK,OAAO;AAAA,EACtD,6BAA6B,KAAK;AAAA,IAChC,KAAK;AAAA,MACH,KAAK,OAAO;AAAA,QACV,MAAM,KAAK,OAAO;AAAA,QAClB,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,QACnC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,MAC1C,CAAC;AAAA,IACH;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,58 @@
1
+ import { type Static } from '@sinclair/typebox';
2
+ /**
3
+ * Schema for individual badge configuration in x-badges extension.
4
+ * Badges are indicators that can be displayed in API documentation.
5
+ */
6
+ export declare const BadgeSchema: import("@sinclair/typebox").TObject<{
7
+ /** The text that displays in the badge. This is required for all badges. */
8
+ name: import("@sinclair/typebox").TString;
9
+ /**
10
+ * The position of the badge in relation to the header.
11
+ * Defaults to 'after' if not specified.
12
+ */
13
+ position: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"before">, import("@sinclair/typebox").TLiteral<"after">]>>;
14
+ /**
15
+ * The color of the badge. Can be defined in various formats such as color keywords,
16
+ * RGB, RGBA, HSL, HSLA, and Hexadecimal.
17
+ */
18
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
+ }>;
20
+ export type XBadge = Static<typeof BadgeSchema>;
21
+ /**
22
+ * You can add badges to operations to use as indicators in documentation. Each operation can have multiple badges, and the displayed color is also configurable. The following example sets badges on the GET `/hello-world` operation:
23
+ *
24
+ * ```yaml
25
+ * openapi: 3.1.0
26
+ * info:
27
+ * title: x-badges
28
+ * version: 1.0.0
29
+ * paths:
30
+ * /hello-world:
31
+ * get:
32
+ * summary: Hello World
33
+ * x-badges:
34
+ * - name: 'Alpha'
35
+ * - name: 'Beta'
36
+ * position: before
37
+ * - name: 'Gamma'
38
+ * position: after
39
+ * color: '#ffcc00'
40
+ ```
41
+ */
42
+ export declare const XBadgesSchema: import("@sinclair/typebox").TObject<{
43
+ 'x-badges': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
44
+ /** The text that displays in the badge. This is required for all badges. */
45
+ name: import("@sinclair/typebox").TString;
46
+ /**
47
+ * The position of the badge in relation to the header.
48
+ * Defaults to 'after' if not specified.
49
+ */
50
+ position: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"before">, import("@sinclair/typebox").TLiteral<"after">]>>;
51
+ /**
52
+ * The color of the badge. Can be defined in various formats such as color keywords,
53
+ * RGB, RGBA, HSL, HSLA, and Hexadecimal.
54
+ */
55
+ color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
56
+ }>>>;
57
+ }>;
58
+ //# sourceMappingURL=x-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-badge.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-badge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;GAGG;AACH,eAAO,MAAM,WAAW;IAEpB,4EAA4E;;IAK5E;;;OAGG;;IAOH;;;OAGG;;EAYN,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa;;QAvDtB,4EAA4E;;QAK5E;;;WAGG;;QAOH;;;WAGG;;;EAuCL,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const BadgeSchema = Type.Object(
3
+ {
4
+ /** The text that displays in the badge. This is required for all badges. */
5
+ name: Type.String({
6
+ description: "The text that displays in the badge",
7
+ minLength: 1
8
+ }),
9
+ /**
10
+ * The position of the badge in relation to the header.
11
+ * Defaults to 'after' if not specified.
12
+ */
13
+ position: Type.Optional(
14
+ Type.Union([Type.Literal("before"), Type.Literal("after")], {
15
+ description: "The position of the badge in relation to the header",
16
+ default: "after"
17
+ })
18
+ ),
19
+ /**
20
+ * The color of the badge. Can be defined in various formats such as color keywords,
21
+ * RGB, RGBA, HSL, HSLA, and Hexadecimal.
22
+ */
23
+ color: Type.Optional(
24
+ Type.String({
25
+ description: "The color of the badge in various formats (keywords, RGB, RGBA, HSL, HSLA, Hexadecimal)",
26
+ pattern: "^(#([0-9A-Fa-f]{3}){1,2}|rgb\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*\\)|rgba\\(\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*\\d+\\s*,\\s*[0-9.]*\\s*\\)|hsl\\(\\s*\\d+\\s*,\\s*\\d+%\\s*,\\s*\\d+%\\s*\\)|hsla\\(\\s*\\d+\\s*,\\s*\\d+%\\s*,\\s*\\d+%\\s*,\\s*[0-9.]*\\s*\\)|[a-zA-Z]+)$"
27
+ })
28
+ )
29
+ },
30
+ {
31
+ description: "Configuration for a single badge in the x-badges extension"
32
+ }
33
+ );
34
+ const XBadgesSchema = Type.Object({
35
+ "x-badges": Type.Optional(Type.Array(BadgeSchema))
36
+ });
37
+ export {
38
+ BadgeSchema,
39
+ XBadgesSchema
40
+ };
41
+ //# sourceMappingURL=x-badge.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/operation/x-badge.ts"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\n\n/**\n * Schema for individual badge configuration in x-badges extension.\n * Badges are indicators that can be displayed in API documentation.\n */\nexport const BadgeSchema = Type.Object(\n {\n /** The text that displays in the badge. This is required for all badges. */\n name: Type.String({\n description: 'The text that displays in the badge',\n minLength: 1,\n }),\n /**\n * The position of the badge in relation to the header.\n * Defaults to 'after' if not specified.\n */\n position: Type.Optional(\n Type.Union([Type.Literal('before'), Type.Literal('after')], {\n description: 'The position of the badge in relation to the header',\n default: 'after',\n }),\n ),\n /**\n * The color of the badge. Can be defined in various formats such as color keywords,\n * RGB, RGBA, HSL, HSLA, and Hexadecimal.\n */\n color: Type.Optional(\n Type.String({\n description: 'The color of the badge in various formats (keywords, RGB, RGBA, HSL, HSLA, Hexadecimal)',\n pattern:\n '^(#([0-9A-Fa-f]{3}){1,2}|rgb\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*\\\\)|rgba\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+\\\\s*,\\\\s*[0-9.]*\\\\s*\\\\)|hsl\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+%\\\\s*,\\\\s*\\\\d+%\\\\s*\\\\)|hsla\\\\(\\\\s*\\\\d+\\\\s*,\\\\s*\\\\d+%\\\\s*,\\\\s*\\\\d+%\\\\s*,\\\\s*[0-9.]*\\\\s*\\\\)|[a-zA-Z]+)$',\n }),\n ),\n },\n {\n description: 'Configuration for a single badge in the x-badges extension',\n },\n)\n\nexport type XBadge = Static<typeof BadgeSchema>\n\n/**\n * You can add badges to operations to use as indicators in documentation. Each operation can have multiple badges, and the displayed color is also configurable. The following example sets badges on the GET `/hello-world` operation:\n *\n * ```yaml\n * openapi: 3.1.0\n * info:\n * title: x-badges\n * version: 1.0.0\n * paths:\n * /hello-world:\n * get:\n * summary: Hello World\n * x-badges:\n * - name: 'Alpha'\n * - name: 'Beta'\n * position: before\n * - name: 'Gamma'\n * position: after\n * color: '#ffcc00'\n```\n */\nexport const XBadgesSchema = Type.Object({\n 'x-badges': Type.Optional(Type.Array(BadgeSchema)),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAM3B,MAAM,cAAc,KAAK;AAAA,EAC9B;AAAA;AAAA,IAEE,MAAM,KAAK,OAAO;AAAA,MAChB,aAAa;AAAA,MACb,WAAW;AAAA,IACb,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,IAKD,UAAU,KAAK;AAAA,MACb,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,OAAO,CAAC,GAAG;AAAA,QAC1D,aAAa;AAAA,QACb,SAAS;AAAA,MACX,CAAC;AAAA,IACH;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,OAAO,KAAK;AAAA,MACV,KAAK,OAAO;AAAA,QACV,aAAa;AAAA,QACb,SACE;AAAA,MACJ,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,EACf;AACF;AAyBO,MAAM,gBAAgB,KAAK,OAAO;AAAA,EACvC,YAAY,KAAK,SAAS,KAAK,MAAM,WAAW,CAAC;AACnD,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,23 @@
1
+ export declare const XCodeSampleSchema: import("@sinclair/typebox").TObject<{
2
+ lang: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
3
+ label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
4
+ source: import("@sinclair/typebox").TString;
5
+ }>;
6
+ export declare const XCodeSamplesSchema: import("@sinclair/typebox").TObject<{
7
+ 'x-codeSamples': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
8
+ lang: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
+ label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
+ source: import("@sinclair/typebox").TString;
11
+ }>>>;
12
+ 'x-code-samples': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
13
+ lang: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
14
+ label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
+ source: import("@sinclair/typebox").TString;
16
+ }>>>;
17
+ 'x-custom-examples': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
18
+ lang: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
+ label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ source: import("@sinclair/typebox").TString;
21
+ }>>>;
22
+ }>;
23
+ //# sourceMappingURL=x-code-samples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-code-samples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-code-samples.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;EAI5B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;EAI7B,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XCodeSampleSchema = Type.Object({
3
+ lang: Type.Optional(Type.String()),
4
+ label: Type.Optional(Type.String()),
5
+ source: Type.String()
6
+ });
7
+ const XCodeSamplesSchema = Type.Object({
8
+ "x-codeSamples": Type.Optional(Type.Array(XCodeSampleSchema)),
9
+ "x-code-samples": Type.Optional(Type.Array(XCodeSampleSchema)),
10
+ "x-custom-examples": Type.Optional(Type.Array(XCodeSampleSchema))
11
+ });
12
+ export {
13
+ XCodeSampleSchema,
14
+ XCodeSamplesSchema
15
+ };
16
+ //# sourceMappingURL=x-code-samples.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/operation/x-code-samples.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nexport const XCodeSampleSchema = Type.Object({\n lang: Type.Optional(Type.String()),\n label: Type.Optional(Type.String()),\n source: Type.String(),\n})\n\nexport const XCodeSamplesSchema = Type.Object({\n 'x-codeSamples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-code-samples': Type.Optional(Type.Array(XCodeSampleSchema)),\n 'x-custom-examples': Type.Optional(Type.Array(XCodeSampleSchema)),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,oBAAoB,KAAK,OAAO;AAAA,EAC3C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EACjC,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAClC,QAAQ,KAAK,OAAO;AACtB,CAAC;AAEM,MAAM,qBAAqB,KAAK,OAAO;AAAA,EAC5C,iBAAiB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC5D,kBAAkB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAAA,EAC7D,qBAAqB,KAAK,SAAS,KAAK,MAAM,iBAAiB,CAAC;AAClE,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Post response scripts allow to execute arbitrary code after a response is received
3
+ *
4
+ * This is useful for:
5
+ * - Extracting data from the response, or
6
+ * - Testing the response
7
+ *
8
+ * @example
9
+ * ```yaml
10
+ * x-post-response: |
11
+ * pm.test("Status code is 200", () => {
12
+ * pm.response.to.have.status(200)
13
+ * })
14
+ * ```
15
+ */
16
+ export declare const XPostResponseSchema: import("@sinclair/typebox").TObject<{
17
+ 'x-post-response': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
+ }>;
19
+ //# sourceMappingURL=x-post-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-post-response.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-post-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB;;EAE9B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XPostResponseSchema = Type.Object({
3
+ "x-post-response": Type.Optional(Type.String())
4
+ });
5
+ export {
6
+ XPostResponseSchema
7
+ };
8
+ //# sourceMappingURL=x-post-response.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/operation/x-post-response.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * Post response scripts allow to execute arbitrary code after a response is received\n *\n * This is useful for:\n * - Extracting data from the response, or\n * - Testing the response\n *\n * @example\n * ```yaml\n * x-post-response: |\n * pm.test(\"Status code is 200\", () => {\n * pm.response.to.have.status(200)\n * })\n * ```\n */\nexport const XPostResponseSchema = Type.Object({\n 'x-post-response': Type.Optional(Type.String()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAiBd,MAAM,sBAAsB,KAAK,OAAO;AAAA,EAC7C,mBAAmB,KAAK,SAAS,KAAK,OAAO,CAAC;AAChD,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
1
+ export declare const XScalarStabilityValues: {
2
+ readonly Deprecated: "deprecated";
3
+ readonly Experimental: "experimental";
4
+ readonly Stable: "stable";
5
+ };
6
+ export type XScalarStabilityValues = (typeof XScalarStabilityValues)[keyof typeof XScalarStabilityValues];
7
+ /**
8
+ * An OpenAPI extension to indicate the stability of the operation
9
+ *
10
+ * @example
11
+ * ```yaml
12
+ * x-scalar-stability: deprecated
13
+ * ```
14
+ */
15
+ export declare const XScalarStabilitySchema: import("@sinclair/typebox").TObject<{
16
+ 'x-scalar-stability': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"deprecated">, import("@sinclair/typebox").TLiteral<"experimental">, import("@sinclair/typebox").TLiteral<"stable">]>>;
17
+ }>;
18
+ //# sourceMappingURL=x-scalar-stability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-scalar-stability.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-scalar-stability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEzG;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;EAIjC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XScalarStabilityValues = {
3
+ Deprecated: "deprecated",
4
+ Experimental: "experimental",
5
+ Stable: "stable"
6
+ };
7
+ const XScalarStabilitySchema = Type.Object({
8
+ "x-scalar-stability": Type.Optional(
9
+ Type.Union([Type.Literal("deprecated"), Type.Literal("experimental"), Type.Literal("stable")])
10
+ )
11
+ });
12
+ export {
13
+ XScalarStabilitySchema,
14
+ XScalarStabilityValues
15
+ };
16
+ //# sourceMappingURL=x-scalar-stability.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/operation/x-scalar-stability.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\nexport const XScalarStabilityValues = {\n Deprecated: 'deprecated',\n Experimental: 'experimental',\n Stable: 'stable',\n} as const\n\nexport type XScalarStabilityValues = (typeof XScalarStabilityValues)[keyof typeof XScalarStabilityValues]\n\n/**\n * An OpenAPI extension to indicate the stability of the operation\n *\n * @example\n * ```yaml\n * x-scalar-stability: deprecated\n * ```\n */\nexport const XScalarStabilitySchema = Type.Object({\n 'x-scalar-stability': Type.Optional(\n Type.Union([Type.Literal('deprecated'), Type.Literal('experimental'), Type.Literal('stable')]),\n ),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,yBAAyB;AAAA,EACpC,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,QAAQ;AACV;AAYO,MAAM,yBAAyB,KAAK,OAAO;AAAA,EAChD,sBAAsB,KAAK;AAAA,IACzB,KAAK,MAAM,CAAC,KAAK,QAAQ,YAAY,GAAG,KAAK,QAAQ,cAAc,GAAG,KAAK,QAAQ,QAAQ,CAAC,CAAC;AAAA,EAC/F;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * x-additionalPropertiesName
3
+ *
4
+ * Custom attribute name for additionalProperties in a schema.
5
+ * This allows specifying a descriptive name for additional properties
6
+ * that may be present in an object.
7
+ */
8
+ export declare const XAdditionalPropertiesNameSchema: import("@sinclair/typebox").TObject<{
9
+ 'x-additionalPropertiesName': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
+ }>;
11
+ //# sourceMappingURL=x-additional-properties-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-additional-properties-name.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-additional-properties-name.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;EAE1C,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XAdditionalPropertiesNameSchema = Type.Object({
3
+ "x-additionalPropertiesName": Type.Optional(Type.String())
4
+ });
5
+ export {
6
+ XAdditionalPropertiesNameSchema
7
+ };
8
+ //# sourceMappingURL=x-additional-properties-name.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/schema/x-additional-properties-name.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * x-additionalPropertiesName\n *\n * Custom attribute name for additionalProperties in a schema.\n * This allows specifying a descriptive name for additional properties\n * that may be present in an object.\n */\nexport const XAdditionalPropertiesNameSchema = Type.Object({\n 'x-additionalPropertiesName': Type.Optional(Type.String()),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AASd,MAAM,kCAAkC,KAAK,OAAO;AAAA,EACzD,8BAA8B,KAAK,SAAS,KAAK,OAAO,CAAC;AAC3D,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * x-enumDescriptions
3
+ *
4
+ * Maps enum values to their descriptions. Each key should correspond to
5
+ * an enum value, and the value is the description for that enum value.
6
+ *
7
+ * Example:
8
+ * x-enumDescriptions:
9
+ * missing_features: "Missing features"
10
+ * too_expensive: "Too expensive"
11
+ * unused: "Unused"
12
+ * other: "Other"
13
+ */
14
+ export declare const XEnumDescriptionsSchema: import("@sinclair/typebox").TObject<{
15
+ 'x-enumDescriptions': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
16
+ }>;
17
+ //# sourceMappingURL=x-enum-descriptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-enum-descriptions.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-enum-descriptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;EAElC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ const XEnumDescriptionsSchema = Type.Object({
3
+ "x-enumDescriptions": Type.Optional(Type.Record(Type.String(), Type.String(), { default: {} }))
4
+ });
5
+ export {
6
+ XEnumDescriptionsSchema
7
+ };
8
+ //# sourceMappingURL=x-enum-descriptions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/extensions/schema/x-enum-descriptions.ts"],
4
+ "sourcesContent": ["import { Type } from '@sinclair/typebox'\n\n/**\n * x-enumDescriptions\n *\n * Maps enum values to their descriptions. Each key should correspond to\n * an enum value, and the value is the description for that enum value.\n *\n * Example:\n * x-enumDescriptions:\n * missing_features: \"Missing features\"\n * too_expensive: \"Too expensive\"\n * unused: \"Unused\"\n * other: \"Other\"\n */\nexport const XEnumDescriptionsSchema = Type.Object({\n 'x-enumDescriptions': Type.Optional(Type.Record(Type.String(), Type.String(), { default: {} })),\n})\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAed,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,sBAAsB,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,GAAG,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;AAChG,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ export declare const XVariableSchema: import("@sinclair/typebox").TObject<{
2
+ 'x-variable': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
3
+ }>;
4
+ //# sourceMappingURL=x-variable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/schema/x-variable.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;EAE1B,CAAA"}