@scalar/workspace-store 0.16.0 → 0.17.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 (292) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/client.d.ts +1 -1
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -2
  5. package/dist/client.js.map +2 -2
  6. package/dist/mutators/index.d.ts +6 -24
  7. package/dist/mutators/index.d.ts.map +1 -1
  8. package/dist/mutators/index.js +0 -2
  9. package/dist/mutators/index.js.map +2 -2
  10. package/dist/navigation/helpers/traverse-description.d.ts +1 -1
  11. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  12. package/dist/navigation/helpers/traverse-description.js.map +1 -1
  13. package/dist/navigation/helpers/traverse-document.d.ts +2 -182
  14. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  15. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  16. package/dist/navigation/helpers/traverse-examples.d.ts +8 -0
  17. package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -0
  18. package/dist/navigation/helpers/traverse-examples.js +46 -0
  19. package/dist/navigation/helpers/traverse-examples.js.map +7 -0
  20. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  21. package/dist/navigation/helpers/traverse-paths.js +9 -1
  22. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  23. package/dist/navigation/helpers/traverse-schemas.d.ts +2 -1
  24. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  25. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  26. package/dist/navigation/helpers/traverse-tags.d.ts +2 -1
  27. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  28. package/dist/navigation/helpers/traverse-tags.js +1 -0
  29. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  30. package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -1
  31. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  32. package/dist/navigation/helpers/traverse-webhooks.js +1 -1
  33. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  34. package/dist/navigation/types.d.ts +2 -1
  35. package/dist/navigation/types.d.ts.map +1 -1
  36. package/dist/schemas/extensions/document/x-internal.d.ts +4 -0
  37. package/dist/schemas/extensions/document/x-internal.d.ts.map +1 -1
  38. package/dist/schemas/extensions/document/x-internal.js.map +1 -1
  39. package/dist/schemas/extensions/document/x-scalar-icon.d.ts +4 -0
  40. package/dist/schemas/extensions/document/x-scalar-icon.d.ts.map +1 -1
  41. package/dist/schemas/extensions/document/x-scalar-icon.js.map +1 -1
  42. package/dist/schemas/extensions/document/x-scalar-ignore.d.ts +4 -0
  43. package/dist/schemas/extensions/document/x-scalar-ignore.d.ts.map +1 -1
  44. package/dist/schemas/extensions/document/x-scalar-ignore.js.map +1 -1
  45. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +8 -2
  46. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
  47. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js.map +2 -2
  48. package/dist/schemas/extensions/document/x-tags.d.ts +3 -0
  49. package/dist/schemas/extensions/document/x-tags.d.ts.map +1 -1
  50. package/dist/schemas/extensions/document/x-tags.js.map +1 -1
  51. package/dist/schemas/extensions/example/x-disabled.d.ts +18 -0
  52. package/dist/schemas/extensions/example/x-disabled.d.ts.map +1 -0
  53. package/dist/schemas/extensions/example/x-disabled.js +8 -0
  54. package/dist/schemas/extensions/example/x-disabled.js.map +7 -0
  55. package/dist/schemas/extensions/operation/x-badge.d.ts +62 -22
  56. package/dist/schemas/extensions/operation/x-badge.d.ts.map +1 -1
  57. package/dist/schemas/extensions/operation/x-badge.js +24 -3
  58. package/dist/schemas/extensions/operation/x-badge.js.map +2 -2
  59. package/dist/schemas/extensions/operation/x-code-samples.d.ts +10 -2
  60. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  61. package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
  62. package/dist/schemas/extensions/operation/x-post-response.d.ts +18 -0
  63. package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
  64. package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
  65. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +11 -0
  66. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -1
  67. package/dist/schemas/extensions/operation/x-scalar-stability.js.map +1 -1
  68. package/dist/schemas/extensions/parameter/x-global.d.ts +13 -0
  69. package/dist/schemas/extensions/parameter/x-global.d.ts.map +1 -0
  70. package/dist/schemas/extensions/parameter/x-global.js +8 -0
  71. package/dist/schemas/extensions/parameter/x-global.js.map +7 -0
  72. package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts +10 -0
  73. package/dist/schemas/extensions/schema/x-additional-properties-name.d.ts.map +1 -1
  74. package/dist/schemas/extensions/schema/x-additional-properties-name.js.map +1 -1
  75. package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts +30 -0
  76. package/dist/schemas/extensions/schema/x-enum-descriptions.d.ts.map +1 -1
  77. package/dist/schemas/extensions/schema/x-enum-descriptions.js.map +1 -1
  78. package/dist/schemas/extensions/schema/x-enum-varnames.d.ts +38 -0
  79. package/dist/schemas/extensions/schema/x-enum-varnames.d.ts.map +1 -1
  80. package/dist/schemas/extensions/schema/x-enum-varnames.js.map +1 -1
  81. package/dist/schemas/extensions/schema/x-variable.d.ts +3 -0
  82. package/dist/schemas/extensions/schema/x-variable.d.ts.map +1 -1
  83. package/dist/schemas/extensions/schema/x-variable.js.map +1 -1
  84. package/dist/schemas/extensions/security/x-default-scopes.d.ts +16 -0
  85. package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -1
  86. package/dist/schemas/extensions/security/x-default-scopes.js.map +1 -1
  87. package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts +16 -0
  88. package/dist/schemas/extensions/security/x-scalar-credentials-location.d.ts.map +1 -1
  89. package/dist/schemas/extensions/security/x-scalar-credentials-location.js.map +1 -1
  90. package/dist/schemas/extensions/security/x-scalar-security-body.d.ts +15 -1
  91. package/dist/schemas/extensions/security/x-scalar-security-body.d.ts.map +1 -1
  92. package/dist/schemas/extensions/security/x-scalar-security-body.js +2 -2
  93. package/dist/schemas/extensions/security/x-scalar-security-body.js.map +2 -2
  94. package/dist/schemas/extensions/security/x-scalar-security-query.d.ts +15 -1
  95. package/dist/schemas/extensions/security/x-scalar-security-query.d.ts.map +1 -1
  96. package/dist/schemas/extensions/security/x-scalar-security-query.js +2 -2
  97. package/dist/schemas/extensions/security/x-scalar-security-query.js.map +2 -2
  98. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +41 -0
  99. package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
  100. package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +2 -2
  101. package/dist/schemas/extensions/security/x-tokenName.d.ts +12 -1
  102. package/dist/schemas/extensions/security/x-tokenName.d.ts.map +1 -1
  103. package/dist/schemas/extensions/security/x-tokenName.js +2 -2
  104. package/dist/schemas/extensions/security/x-tokenName.js.map +2 -2
  105. package/dist/schemas/extensions/security/x-use-pkce.d.ts +6 -0
  106. package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
  107. package/dist/schemas/extensions/security/x-use-pkce.js.map +1 -1
  108. package/dist/schemas/extensions/tag/x-display-name.d.ts +11 -0
  109. package/dist/schemas/extensions/tag/x-display-name.d.ts.map +1 -1
  110. package/dist/schemas/extensions/tag/x-display-name.js.map +1 -1
  111. package/dist/schemas/extensions/tag/x-tag-groups.d.ts +18 -0
  112. package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
  113. package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
  114. package/dist/schemas/inmemory-workspace.d.ts +95 -64
  115. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  116. package/dist/schemas/inmemory-workspace.js +4 -1
  117. package/dist/schemas/inmemory-workspace.js.map +2 -2
  118. package/dist/schemas/navigation.d.ts +70 -1
  119. package/dist/schemas/navigation.d.ts.map +1 -1
  120. package/dist/schemas/navigation.js +17 -11
  121. package/dist/schemas/navigation.js.map +2 -2
  122. package/dist/schemas/reference-config/appearance.d.ts +9 -2
  123. package/dist/schemas/reference-config/appearance.d.ts.map +1 -1
  124. package/dist/schemas/reference-config/appearance.js.map +2 -2
  125. package/dist/schemas/reference-config/features.d.ts +11 -2
  126. package/dist/schemas/reference-config/features.d.ts.map +1 -1
  127. package/dist/schemas/reference-config/features.js.map +2 -2
  128. package/dist/schemas/reference-config/index.d.ts +58 -34
  129. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  130. package/dist/schemas/reference-config/index.js +5 -5
  131. package/dist/schemas/reference-config/index.js.map +2 -2
  132. package/dist/schemas/reference-config/meta.d.ts +8 -2
  133. package/dist/schemas/reference-config/meta.d.ts.map +1 -1
  134. package/dist/schemas/reference-config/meta.js.map +2 -2
  135. package/dist/schemas/reference-config/routing.d.ts +4 -2
  136. package/dist/schemas/reference-config/routing.d.ts.map +1 -1
  137. package/dist/schemas/reference-config/routing.js.map +2 -2
  138. package/dist/schemas/reference-config/settings.d.ts +48 -33
  139. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  140. package/dist/schemas/reference-config/settings.js.map +2 -2
  141. package/dist/schemas/v3.1/strict/callback.d.ts +4 -0
  142. package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -1
  143. package/dist/schemas/v3.1/strict/callback.js +2 -2
  144. package/dist/schemas/v3.1/strict/callback.js.map +2 -2
  145. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +19 -3
  146. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +1 -1
  147. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +2 -2
  148. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts +10 -4
  149. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.d.ts.map +1 -1
  150. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-environments.js.map +2 -2
  151. package/dist/schemas/v3.1/strict/components.d.ts +34 -0
  152. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
  153. package/dist/schemas/v3.1/strict/components.js +1 -1
  154. package/dist/schemas/v3.1/strict/components.js.map +2 -2
  155. package/dist/schemas/v3.1/strict/contact.d.ts +9 -0
  156. package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -1
  157. package/dist/schemas/v3.1/strict/contact.js.map +1 -1
  158. package/dist/schemas/v3.1/strict/discriminator.d.ts +11 -0
  159. package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -1
  160. package/dist/schemas/v3.1/strict/discriminator.js.map +1 -1
  161. package/dist/schemas/v3.1/strict/encoding.d.ts +15 -0
  162. package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -1
  163. package/dist/schemas/v3.1/strict/encoding.js +1 -1
  164. package/dist/schemas/v3.1/strict/encoding.js.map +2 -2
  165. package/dist/schemas/v3.1/strict/example.d.ts +28 -2
  166. package/dist/schemas/v3.1/strict/example.d.ts.map +1 -1
  167. package/dist/schemas/v3.1/strict/example.js +15 -10
  168. package/dist/schemas/v3.1/strict/example.js.map +2 -2
  169. package/dist/schemas/v3.1/strict/external-documentation.d.ts +9 -2
  170. package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -1
  171. package/dist/schemas/v3.1/strict/external-documentation.js +3 -3
  172. package/dist/schemas/v3.1/strict/external-documentation.js.map +2 -2
  173. package/dist/schemas/v3.1/strict/header.d.ts +41 -0
  174. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
  175. package/dist/schemas/v3.1/strict/header.js +2 -2
  176. package/dist/schemas/v3.1/strict/header.js.map +2 -2
  177. package/dist/schemas/v3.1/strict/info.d.ts +24 -2
  178. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  179. package/dist/schemas/v3.1/strict/info.js +7 -5
  180. package/dist/schemas/v3.1/strict/info.js.map +2 -2
  181. package/dist/schemas/v3.1/strict/license.d.ts +9 -0
  182. package/dist/schemas/v3.1/strict/license.d.ts.map +1 -1
  183. package/dist/schemas/v3.1/strict/license.js.map +1 -1
  184. package/dist/schemas/v3.1/strict/link.d.ts +22 -0
  185. package/dist/schemas/v3.1/strict/link.d.ts.map +1 -1
  186. package/dist/schemas/v3.1/strict/link.js.map +2 -2
  187. package/dist/schemas/v3.1/strict/media-type.d.ts +19 -0
  188. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
  189. package/dist/schemas/v3.1/strict/media-type.js +2 -2
  190. package/dist/schemas/v3.1/strict/media-type.js.map +2 -2
  191. package/dist/schemas/v3.1/strict/oauth-flow.d.ts +36 -5
  192. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
  193. package/dist/schemas/v3.1/strict/oauth-flow.js +13 -7
  194. package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
  195. package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -0
  196. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
  197. package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
  198. package/dist/schemas/v3.1/strict/openapi-document.d.ts +1431 -1068
  199. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  200. package/dist/schemas/v3.1/strict/openapi-document.js +45 -45
  201. package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
  202. package/dist/schemas/v3.1/strict/operation.d.ts +43 -17
  203. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  204. package/dist/schemas/v3.1/strict/operation.js +1 -3
  205. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  206. package/dist/schemas/v3.1/strict/parameter.d.ts +66 -6
  207. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
  208. package/dist/schemas/v3.1/strict/parameter.js +21 -17
  209. package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
  210. package/dist/schemas/v3.1/strict/path-item.d.ts +38 -0
  211. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
  212. package/dist/schemas/v3.1/strict/path-item.js +1 -1
  213. package/dist/schemas/v3.1/strict/path-item.js.map +2 -2
  214. package/dist/schemas/v3.1/strict/paths.d.ts +5 -0
  215. package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
  216. package/dist/schemas/v3.1/strict/paths.js +1 -1
  217. package/dist/schemas/v3.1/strict/paths.js.map +2 -2
  218. package/dist/schemas/v3.1/strict/reference.d.ts +21 -4
  219. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
  220. package/dist/schemas/v3.1/strict/reference.js.map +2 -2
  221. package/dist/schemas/v3.1/strict/request-body.d.ts +10 -0
  222. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
  223. package/dist/schemas/v3.1/strict/request-body.js +1 -1
  224. package/dist/schemas/v3.1/strict/request-body.js.map +2 -2
  225. package/dist/schemas/v3.1/strict/response.d.ts +17 -0
  226. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
  227. package/dist/schemas/v3.1/strict/response.js +1 -1
  228. package/dist/schemas/v3.1/strict/response.js.map +2 -2
  229. package/dist/schemas/v3.1/strict/responses.d.ts +12 -0
  230. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
  231. package/dist/schemas/v3.1/strict/responses.js +1 -1
  232. package/dist/schemas/v3.1/strict/responses.js.map +2 -2
  233. package/dist/schemas/v3.1/strict/schema.d.ts +144 -1
  234. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
  235. package/dist/schemas/v3.1/strict/schema.js +40 -60
  236. package/dist/schemas/v3.1/strict/schema.js.map +2 -2
  237. package/dist/schemas/v3.1/strict/security-requirement.d.ts +12 -0
  238. package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -1
  239. package/dist/schemas/v3.1/strict/security-requirement.js.map +1 -1
  240. package/dist/schemas/v3.1/strict/security-scheme.d.ts +37 -0
  241. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  242. package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
  243. package/dist/schemas/v3.1/strict/server-variable.d.ts +9 -0
  244. package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -1
  245. package/dist/schemas/v3.1/strict/server-variable.js.map +1 -1
  246. package/dist/schemas/v3.1/strict/server.d.ts +10 -0
  247. package/dist/schemas/v3.1/strict/server.d.ts.map +1 -1
  248. package/dist/schemas/v3.1/strict/server.js +1 -1
  249. package/dist/schemas/v3.1/strict/server.js.map +2 -2
  250. package/dist/schemas/v3.1/strict/tag.d.ts +13 -0
  251. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
  252. package/dist/schemas/v3.1/strict/tag.js +1 -1
  253. package/dist/schemas/v3.1/strict/tag.js.map +2 -2
  254. package/dist/schemas/v3.1/strict/type-guards.d.ts +1 -1
  255. package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
  256. package/dist/schemas/v3.1/strict/type-guards.js.map +1 -1
  257. package/dist/schemas/v3.1/strict/xml.d.ts +17 -0
  258. package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -1
  259. package/dist/schemas/v3.1/strict/xml.js.map +1 -1
  260. package/dist/schemas/workspace-specification/config.d.ts +45 -33
  261. package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
  262. package/dist/schemas/workspace-specification/config.js.map +2 -2
  263. package/dist/schemas/workspace-specification/index.d.ts +55 -34
  264. package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
  265. package/dist/schemas/workspace-specification/index.js.map +2 -2
  266. package/dist/schemas/workspace-specification/info.d.ts +4 -0
  267. package/dist/schemas/workspace-specification/info.d.ts.map +1 -1
  268. package/dist/schemas/workspace-specification/info.js.map +1 -1
  269. package/dist/schemas/workspace.d.ts +310 -218
  270. package/dist/schemas/workspace.d.ts.map +1 -1
  271. package/dist/schemas/workspace.js +11 -3
  272. package/dist/schemas/workspace.js.map +2 -2
  273. package/dist/server.d.ts +6 -5
  274. package/dist/server.d.ts.map +1 -1
  275. package/dist/server.js.map +2 -2
  276. package/package.json +5 -5
  277. package/dist/mutators/request-example.d.ts +0 -21
  278. package/dist/mutators/request-example.d.ts.map +0 -1
  279. package/dist/mutators/request-example.js +0 -55
  280. package/dist/mutators/request-example.js.map +0 -7
  281. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +0 -9
  282. package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +0 -1
  283. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +0 -8
  284. package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +0 -7
  285. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts +0 -38
  286. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.d.ts.map +0 -1
  287. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js +0 -45
  288. package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-request-example.js.map +0 -7
  289. package/dist/types.d.ts +0 -18
  290. package/dist/types.d.ts.map +0 -1
  291. package/dist/types.js +0 -1
  292. package/dist/types.js.map +0 -7
@@ -1,3 +1,7 @@
1
+ import type { HeaderObject } from '../../../schemas/v3.1/strict/header.js';
2
+ import type { MediaTypeObject } from '../../../schemas/v3.1/strict/media-type.js';
3
+ import type { LinkObject } from './link.js';
4
+ import { type ReferenceType } from './reference.js';
1
5
  export declare const ResponseObjectSchemaDefinition: import("@scalar/typebox").TObject<{
2
6
  /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */
3
7
  description: import("@scalar/typebox").TString;
@@ -26,4 +30,17 @@ export declare const ResponseObjectSchemaDefinition: import("@scalar/typebox").T
26
30
  '$ref-value': import("@scalar/typebox").TRef<"LinkObject">;
27
31
  }>]>]>>>;
28
32
  }>;
33
+ /**
34
+ * Describes a single response from an API operation, including design-time, static links to operations based on the response.
35
+ */
36
+ export type ResponseObject = {
37
+ /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */
38
+ description: string;
39
+ /** Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name "Content-Type", it SHALL be ignored. */
40
+ headers?: Record<string, ReferenceType<HeaderObject>>;
41
+ /** A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. "text/plain" overrides "text/*" */
42
+ content?: Record<string, MediaTypeObject>;
43
+ /** A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects. */
44
+ links?: Record<string, ReferenceType<LinkObject>>;
45
+ };
29
46
  //# sourceMappingURL=response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/response.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,8BAA8B;IACzC,2GAA2G;;IAE3G,iLAAiL;;;;;;;;;;;IAEjL,oQAAoQ;;IAEpQ,8LAA8L;;;;;;;;;;;EAE9L,CAAA"}
1
+ {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/response.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAE3D,eAAO,MAAM,8BAA8B;IACzC,2GAA2G;;IAE3G,iLAAiL;;;;;;;;;;;IAEjL,oQAAoQ;;IAEpQ,8LAA8L;;;;;;;;;;;EAE9L,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,2GAA2G;IAC3G,WAAW,EAAE,MAAM,CAAA;IACnB,iLAAiL;IACjL,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC,CAAA;IACrD,oQAAoQ;IACpQ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IACzC,8LAA8L;IAC9L,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,CAAA;CAClD,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Type } from "@scalar/typebox";
2
- import { HeaderObjectRef, LinkObjectRef, MediaTypeObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
2
+ import { HeaderObjectRef, LinkObjectRef, MediaTypeObjectRef } from "./ref-definitions.js";
3
3
  import { reference } from "./reference.js";
4
4
  const ResponseObjectSchemaDefinition = Type.Object({
5
5
  /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/response.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { HeaderObjectRef, LinkObjectRef, MediaTypeObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nimport { reference } from './reference'\n\nexport const ResponseObjectSchemaDefinition = Type.Object({\n /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */\n description: Type.String(),\n /** Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name \"Content-Type\", it SHALL be ignored. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectRef, reference(HeaderObjectRef)]))),\n /** A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. \"text/plain\" overrides \"text/*\" */\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectRef)),\n /** A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectRef, reference(LinkObjectRef)]))),\n})\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,iBAAiB,eAAe,0BAA0B;AAEnE,SAAS,iBAAiB;AAEnB,MAAM,iCAAiC,KAAK,OAAO;AAAA;AAAA,EAExD,aAAa,KAAK,OAAO;AAAA;AAAA,EAEzB,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE5G,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC;AAAA;AAAA,EAErE,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,eAAe,UAAU,aAAa,CAAC,CAAC,CAAC,CAAC;AACxG,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport type { HeaderObject } from '@/schemas/v3.1/strict/header'\nimport type { MediaTypeObject } from '@/schemas/v3.1/strict/media-type'\n\nimport type { LinkObject } from './link'\nimport { HeaderObjectRef, LinkObjectRef, MediaTypeObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\n\nexport const ResponseObjectSchemaDefinition = Type.Object({\n /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */\n description: Type.String(),\n /** Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name \"Content-Type\", it SHALL be ignored. */\n headers: Type.Optional(Type.Record(Type.String(), Type.Union([HeaderObjectRef, reference(HeaderObjectRef)]))),\n /** A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. \"text/plain\" overrides \"text/*\" */\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectRef)),\n /** A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects. */\n links: Type.Optional(Type.Record(Type.String(), Type.Union([LinkObjectRef, reference(LinkObjectRef)]))),\n})\n\n/**\n * Describes a single response from an API operation, including design-time, static links to operations based on the response.\n */\nexport type ResponseObject = {\n /** REQUIRED. A description of the response. CommonMark syntax MAY be used for rich text representation. */\n description: string\n /** Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is defined with the name \"Content-Type\", it SHALL be ignored. */\n headers?: Record<string, ReferenceType<HeaderObject>>\n /** A map containing descriptions of potential response payloads. The key is a media type or media type range and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. \"text/plain\" overrides \"text/*\" */\n content?: Record<string, MediaTypeObject>\n /** A map of operations links that can be followed from the response. The key of the map is a short name for the link, following the naming constraints of the names for Component Objects. */\n links?: Record<string, ReferenceType<LinkObject>>\n}\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAMrB,SAAS,iBAAiB,eAAe,0BAA0B;AACnE,SAA6B,iBAAiB;AAEvC,MAAM,iCAAiC,KAAK,OAAO;AAAA;AAAA,EAExD,aAAa,KAAK,OAAO;AAAA;AAAA,EAEzB,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAE5G,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,kBAAkB,CAAC;AAAA;AAAA,EAErE,OAAO,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,eAAe,UAAU,aAAa,CAAC,CAAC,CAAC,CAAC;AACxG,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,5 @@
1
+ import { type ReferenceType } from './reference.js';
2
+ import type { ResponseObject } from './response.js';
1
3
  /**
2
4
  * A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.
3
5
  *
@@ -17,4 +19,14 @@ export declare const ResponsesObjectSchemaDefinition: import("@scalar/typebox").
17
19
  }>]>, import("@scalar/typebox").TObject<{
18
20
  '$ref-value': import("@scalar/typebox").TRef<"ResponseObject">;
19
21
  }>]>]>>;
22
+ /**
23
+ * A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.
24
+ *
25
+ * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors.
26
+ *
27
+ * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the Responses Object.
28
+ *
29
+ * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be the response for a successful operation call.
30
+ */
31
+ export type ResponsesObject = Record<string, ReferenceType<ResponseObject>>;
20
32
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/responses.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;OAG3C,CAAA"}
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;OAG3C,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { Type } from "@scalar/typebox";
2
- import { ResponseObjectRef } from "../../../schemas/v3.1/strict/ref-definitions.js";
2
+ import { ResponseObjectRef } from "./ref-definitions.js";
3
3
  import { reference } from "./reference.js";
4
4
  const ResponsesObjectSchemaDefinition = Type.Record(
5
5
  Type.String(),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/responses.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { ResponseObjectRef } from '@/schemas/v3.1/strict/ref-definitions'\n\nimport { reference } from './reference'\n\n/**\n * A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.\n *\n * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors.\n *\n * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the Responses Object.\n *\n * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be the response for a successful operation call.\n */\nexport const ResponsesObjectSchemaDefinition = Type.Record(\n Type.String(),\n Type.Union([ResponseObjectRef, reference(ResponseObjectRef)]),\n)\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,yBAAyB;AAElC,SAAS,iBAAiB;AAWnB,MAAM,kCAAkC,KAAK;AAAA,EAClD,KAAK,OAAO;AAAA,EACZ,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC;AAC9D;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { ResponseObjectRef } from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\nimport type { ResponseObject } from './response'\n\n/**\n * A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.\n *\n * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors.\n *\n * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the Responses Object.\n *\n * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be the response for a successful operation call.\n */\nexport const ResponsesObjectSchemaDefinition = Type.Record(\n Type.String(),\n Type.Union([ResponseObjectRef, reference(ResponseObjectRef)]),\n)\n\n/**\n * A container for the expected responses of an operation. The container maps a HTTP response code to the expected response.\n *\n * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors.\n *\n * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the Responses Object.\n *\n * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be the response for a successful operation call.\n */\nexport type ResponsesObject = Record<string, ReferenceType<ResponseObject>>\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,yBAAyB;AAClC,SAA6B,iBAAiB;AAYvC,MAAM,kCAAkC,KAAK;AAAA,EAClD,KAAK,OAAO;AAAA,EACZ,KAAK,MAAM,CAAC,mBAAmB,UAAU,iBAAiB,CAAC,CAAC;AAC9D;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,144 @@
1
+ import { type XInternal } from '../../../schemas/extensions/document/x-internal.js';
2
+ import { type XScalarIgnore } from '../../../schemas/extensions/document/x-scalar-ignore.js';
3
+ import { XTags } from '../../../schemas/extensions/document/x-tags.js';
4
+ import { type XAdditionalPropertiesName } from '../../../schemas/extensions/schema/x-additional-properties-name.js';
5
+ import { type XEnumDescriptions } from '../../../schemas/extensions/schema/x-enum-descriptions.js';
6
+ import { type XEnumVarNames } from '../../../schemas/extensions/schema/x-enum-varnames.js';
7
+ import { type XVariable } from '../../../schemas/extensions/schema/x-variable.js';
8
+ import type { ExternalDocumentationObject } from '../../../schemas/v3.1/strict/external-documentation.js';
9
+ import type { XMLObject } from '../../../schemas/v3.1/strict/xml.js';
10
+ import type { DiscriminatorObject } from './discriminator.js';
11
+ import { type ReferenceType } from './reference.js';
12
+ /** We use this type to ensure that we are parsing a schema object as every property can be optional */
13
+ type _InternalType = CoreProperties & {
14
+ _: string;
15
+ } & Extensions;
16
+ /**
17
+ * Primitive types that don't have additional validation properties.
18
+ * These types (null, boolean, string, number, integer, object, array) can be used
19
+ * without additional validation constraints.
20
+ *
21
+ * TODO: Type array will actually validate against every union type but we can cross that bridge when we come to it
22
+ */
23
+ declare const OtherTypes: import("@scalar/typebox").TObject<{
24
+ type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"null">, import("@scalar/typebox").TLiteral<"boolean">, import("@scalar/typebox").TArray<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"null">, import("@scalar/typebox").TLiteral<"boolean">, import("@scalar/typebox").TLiteral<"string">, import("@scalar/typebox").TLiteral<"number">, import("@scalar/typebox").TLiteral<"integer">, import("@scalar/typebox").TLiteral<"object">, import("@scalar/typebox").TLiteral<"array">]>>]>;
25
+ }>;
26
+ type OtherType = 'boolean' | 'null' | ('string' | 'number' | 'boolean' | 'object' | 'null' | 'integer' | 'array')[];
27
+ type OtherTypes = CoreProperties & {
28
+ type: OtherType;
29
+ } & Extensions;
30
+ export type Extensions = XScalarIgnore & XInternal & XVariable & XEnumDescriptions & XEnumVarNames & XAdditionalPropertiesName & XTags;
31
+ export type CoreProperties = {
32
+ name?: string;
33
+ /** A title for the schema. */
34
+ title?: string;
35
+ /** A description of the schema. */
36
+ description?: string;
37
+ /** Default value for the schema. */
38
+ default?: unknown;
39
+ /** Array of allowed values. */
40
+ enum?: unknown[];
41
+ /** Constant value that must match exactly. */
42
+ const?: unknown;
43
+ /** Media type for content validation. */
44
+ contentMediaType?: string;
45
+ /** Content encoding. */
46
+ contentEncoding?: string;
47
+ /** Schema for content validation. */
48
+ contentSchema?: ReferenceType<SchemaObject>;
49
+ /** Whether the schema is deprecated. */
50
+ deprecated?: boolean;
51
+ /** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */
52
+ discriminator?: DiscriminatorObject;
53
+ /** Whether the schema is read-only. */
54
+ readOnly?: boolean;
55
+ /** Whether the schema is write-only. */
56
+ writeOnly?: boolean;
57
+ /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */
58
+ xml?: XMLObject;
59
+ /** Additional external documentation for this schema. */
60
+ externalDocs?: ExternalDocumentationObject;
61
+ /**
62
+ * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.
63
+ *
64
+ * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.
65
+ */
66
+ example?: unknown;
67
+ /**
68
+ * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.
69
+ * Each example should be a valid instance of the schema.
70
+ */
71
+ examples?: unknown[];
72
+ /** All schemas must be valid. */
73
+ allOf?: ReferenceType<SchemaObject>[];
74
+ /** Exactly one schema must be valid. */
75
+ oneOf?: ReferenceType<SchemaObject>[];
76
+ /** At least one schema must be valid. */
77
+ anyOf?: ReferenceType<SchemaObject>[];
78
+ /** Schema must not be valid. */
79
+ not?: ReferenceType<SchemaObject>;
80
+ };
81
+ export type NumericObject = CoreProperties & {
82
+ type: 'number' | 'integer';
83
+ /** Different subtypes */
84
+ format?: 'int8' | 'int16' | 'int32' | 'int64' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'double-int' | 'float' | 'double' | 'decimal' | 'decimal128' | 'sf-integer' | 'sf-decimal' | (string & {});
85
+ /** Number must be a multiple of this value. */
86
+ multipleOf?: number;
87
+ /** Maximum value (inclusive). */
88
+ maximum?: number;
89
+ /** Maximum value (exclusive). */
90
+ exclusiveMaximum?: boolean | number;
91
+ /** Minimum value (inclusive). */
92
+ minimum?: number;
93
+ /** Minimum value (exclusive). */
94
+ exclusiveMinimum?: boolean | number;
95
+ } & Extensions;
96
+ /**
97
+ * Supported string formats in OpenAPI schemas.
98
+ *
99
+ * These provide better type safety for string format validation. We wanted to allow any arbitrary string
100
+ * in the schema, so we type it in typescript instead. This gives us autocomplete while allowing any string!
101
+ */
102
+ export type StringFormat = 'date' | 'date-time' | 'date-time-local' | 'time' | 'time-local' | 'duration' | 'http-date' | 'email' | 'idn-email' | 'hostname' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'uri' | 'uri-reference' | 'uri-template' | 'iri' | 'iri-reference' | 'uuid' | 'binary' | 'byte' | 'base64url' | 'html' | 'commonmark' | 'password' | 'regex' | 'json-pointer' | 'relative-json-pointer' | 'media-range' | 'char' | 'sf-string' | 'sf-token' | 'sf-binary' | 'sf-boolean' | (string & {});
103
+ export type StringObject = CoreProperties & {
104
+ type: 'string';
105
+ /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */
106
+ format?: StringFormat;
107
+ /** Maximum string length. */
108
+ maxLength?: number;
109
+ /** Minimum string length. */
110
+ minLength?: number;
111
+ /** Regular expression pattern. */
112
+ pattern?: string;
113
+ } & Extensions;
114
+ export type ArrayObject = CoreProperties & {
115
+ type: 'array';
116
+ /** Maximum number of items in array. */
117
+ maxItems?: number;
118
+ /** Minimum number of items in array. */
119
+ minItems?: number;
120
+ /** Whether array items must be unique. */
121
+ uniqueItems?: boolean;
122
+ /** Schema for array items. */
123
+ items?: ReferenceType<SchemaObject>;
124
+ /** Schema for tuple validation. */
125
+ prefixItems?: ReferenceType<SchemaObject>[];
126
+ } & Extensions;
127
+ export type ObjectObject = CoreProperties & {
128
+ type: 'object';
129
+ /** Maximum number of properties. */
130
+ maxProperties?: number;
131
+ /** Minimum number of properties. */
132
+ minProperties?: number;
133
+ /** Array of required property names. */
134
+ required?: string[];
135
+ /** Object property definitions. */
136
+ properties?: Record<string, ReferenceType<SchemaObject>>;
137
+ /** Schema for additional properties. */
138
+ additionalProperties?: boolean | ReferenceType<SchemaObject>;
139
+ /** Properties matching regex patterns. */
140
+ patternProperties?: Record<string, ReferenceType<SchemaObject>>;
141
+ } & Extensions;
1
142
  /** Builds the recursive schema schema */
2
143
  export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3
144
  _: import("@scalar/typebox").TString;
@@ -226,7 +367,7 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
226
367
  }>]>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
227
368
  type: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"number">, import("@scalar/typebox").TLiteral<"integer">]>;
228
369
  /** Different subtypes */
229
- format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"int8">, import("@scalar/typebox").TLiteral<"int16">, import("@scalar/typebox").TLiteral<"int32">, import("@scalar/typebox").TLiteral<"int64">, import("@scalar/typebox").TLiteral<"uint8">, import("@scalar/typebox").TLiteral<"uint16">, import("@scalar/typebox").TLiteral<"uint32">, import("@scalar/typebox").TLiteral<"uint64">, import("@scalar/typebox").TLiteral<"double-int">, import("@scalar/typebox").TLiteral<"float">, import("@scalar/typebox").TLiteral<"double">, import("@scalar/typebox").TLiteral<"decimal">, import("@scalar/typebox").TLiteral<"decimal128">, import("@scalar/typebox").TLiteral<"sf-integer">, import("@scalar/typebox").TLiteral<"sf-decimal">]>>;
370
+ format: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
230
371
  /** Number must be a multiple of this value. */
231
372
  multipleOf: import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
232
373
  /** Maximum value (inclusive). */
@@ -759,4 +900,6 @@ export declare const SchemaObjectSchemaDefinition: import("@scalar/typebox").TUn
759
900
  }>, import("@scalar/typebox").TObject<{
760
901
  'x-tags': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
761
902
  }>]>]>]>;
903
+ export type SchemaObject = _InternalType | OtherTypes | NumericObject | StringObject | ObjectObject | ArrayObject;
904
+ export {};
762
905
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/schema.ts"],"names":[],"mappings":"AAkMA,yCAAyC;AACzC,eAAO,MAAM,4BAA4B;;;;IA7FvC,8BAA8B;;IAE9B,mCAAmC;;IAEnC,oCAAoC;;IAEpC,+BAA+B;;IAE/B,8CAA8C;;IAI9C,yCAAyC;;IAEzC,wBAAwB;;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;;;;;;;;IAEjC,wCAAwC;;;;;;;;;;;IAExC,yCAAyC;;;;;;;;;;;IAEzC,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuLhC,wCAAwC;;IAExC,wCAAwC;;IAExC,0CAA0C;;IAE1C,8BAA8B;;;;;;;;;;;IAE9B,mCAAmC;;;;;;;;;;;;;IA5OnC,8BAA8B;;IAE9B,mCAAmC;;IAEnC,oCAAoC;;IAEpC,+BAA+B;;IAE/B,8CAA8C;;IAE9C,yCAAyC;;IAEzC,wBAAwB;;IAExB,qCAAqC;;;;;;;;;;;IAErC,wCAAwC;;IAExC,0LAA0L;;IAE1L,uCAAuC;;IAEvC,wCAAwC;;IAExC,iKAAiK;;IAEjK,yDAAyD;;IAEzD;;;;OAIG;;IAEH;;;OAGG;;IAEH,iCAAiC;;;;;;;;;;;IAEjC,wCAAwC;;;;;;;;;;;IAExC,yCAAyC;;;;;;;;;;;IAEzC,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;QA6PhC,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,UAAU,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAAA"}
@@ -3,7 +3,9 @@ import { compose } from "../../../schemas/compose.js";
3
3
  import { XInternalSchema } from "../../../schemas/extensions/document/x-internal.js";
4
4
  import { XScalarIgnoreSchema } from "../../../schemas/extensions/document/x-scalar-ignore.js";
5
5
  import { XTags } from "../../../schemas/extensions/document/x-tags.js";
6
- import { XAdditionalPropertiesNameSchema } from "../../../schemas/extensions/schema/x-additional-properties-name.js";
6
+ import {
7
+ XAdditionalPropertiesNameSchema
8
+ } from "../../../schemas/extensions/schema/x-additional-properties-name.js";
7
9
  import { XEnumDescriptionsSchema } from "../../../schemas/extensions/schema/x-enum-descriptions.js";
8
10
  import { XEnumVarNamesSchema } from "../../../schemas/extensions/schema/x-enum-varnames.js";
9
11
  import { XVariableSchema } from "../../../schemas/extensions/schema/x-variable.js";
@@ -12,8 +14,8 @@ import {
12
14
  ExternalDocumentationObjectRef,
13
15
  SchemaObjectRef,
14
16
  XMLObjectRef
15
- } from "../../../schemas/v3.1/strict/ref-definitions.js";
16
- import { reference } from "../../../schemas/v3.1/strict/reference.js";
17
+ } from "./ref-definitions.js";
18
+ import { reference } from "./reference.js";
17
19
  const schemaOrReference = Type.Union([SchemaObjectRef, reference(SchemaObjectRef)]);
18
20
  const OtherTypes = Type.Object({
19
21
  type: Type.Union([
@@ -32,53 +34,15 @@ const OtherTypes = Type.Object({
32
34
  )
33
35
  ])
34
36
  });
35
- const NumericProperties = Type.Object({
36
- type: Type.Union([Type.Literal("number"), Type.Literal("integer")]),
37
- /** Different subtypes */
38
- format: Type.Optional(
39
- Type.Union([
40
- // Integer formats
41
- Type.Literal("int8"),
42
- Type.Literal("int16"),
43
- Type.Literal("int32"),
44
- Type.Literal("int64"),
45
- Type.Literal("uint8"),
46
- Type.Literal("uint16"),
47
- Type.Literal("uint32"),
48
- Type.Literal("uint64"),
49
- Type.Literal("double-int"),
50
- // Number formats
51
- Type.Literal("float"),
52
- Type.Literal("double"),
53
- Type.Literal("decimal"),
54
- Type.Literal("decimal128"),
55
- // Structured field number formats
56
- Type.Literal("sf-integer"),
57
- Type.Literal("sf-decimal")
58
- ])
59
- ),
60
- /** Number must be a multiple of this value. */
61
- multipleOf: Type.Optional(Type.Number()),
62
- /** Maximum value (inclusive). */
63
- maximum: Type.Optional(Type.Number()),
64
- /** Maximum value (exclusive). */
65
- exclusiveMaximum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),
66
- /** Minimum value (inclusive). */
67
- minimum: Type.Optional(Type.Number()),
68
- /** Minimum value (exclusive). */
69
- exclusiveMinimum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()]))
70
- });
71
- const StringValidationProperties = Type.Object({
72
- type: Type.Literal("string"),
73
- /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */
74
- format: Type.Optional(Type.String()),
75
- /** Maximum string length. */
76
- maxLength: Type.Optional(Type.Integer({ minimum: 0 })),
77
- /** Minimum string length. */
78
- minLength: Type.Optional(Type.Integer({ minimum: 0 })),
79
- /** Regular expression pattern. */
80
- pattern: Type.Optional(Type.String())
81
- });
37
+ const Extensions = compose(
38
+ XScalarIgnoreSchema,
39
+ XInternalSchema,
40
+ XVariableSchema,
41
+ XEnumDescriptionsSchema,
42
+ XEnumVarNamesSchema,
43
+ XAdditionalPropertiesNameSchema,
44
+ XTags
45
+ );
82
46
  const CorePropertiesWithSchema = Type.Object({
83
47
  name: Type.Optional(Type.String()),
84
48
  /** A title for the schema. */
@@ -91,7 +55,6 @@ const CorePropertiesWithSchema = Type.Object({
91
55
  enum: Type.Optional(Type.Array(Type.Unknown())),
92
56
  /** Constant value that must match exactly. */
93
57
  const: Type.Optional(Type.Unknown()),
94
- // OpenAPI 3.1
95
58
  /** Media type for content validation. */
96
59
  contentMediaType: Type.Optional(Type.String()),
97
60
  /** Content encoding. */
@@ -130,6 +93,32 @@ const CorePropertiesWithSchema = Type.Object({
130
93
  /** Schema must not be valid. */
131
94
  not: Type.Optional(schemaOrReference)
132
95
  });
96
+ const NumericProperties = Type.Object({
97
+ type: Type.Union([Type.Literal("number"), Type.Literal("integer")]),
98
+ /** Different subtypes */
99
+ format: Type.Optional(Type.String()),
100
+ /** Number must be a multiple of this value. */
101
+ multipleOf: Type.Optional(Type.Number()),
102
+ /** Maximum value (inclusive). */
103
+ maximum: Type.Optional(Type.Number()),
104
+ /** Maximum value (exclusive). */
105
+ exclusiveMaximum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),
106
+ /** Minimum value (inclusive). */
107
+ minimum: Type.Optional(Type.Number()),
108
+ /** Minimum value (exclusive). */
109
+ exclusiveMinimum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()]))
110
+ });
111
+ const StringValidationProperties = Type.Object({
112
+ type: Type.Literal("string"),
113
+ /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */
114
+ format: Type.Optional(Type.String()),
115
+ /** Maximum string length. */
116
+ maxLength: Type.Optional(Type.Integer({ minimum: 0 })),
117
+ /** Minimum string length. */
118
+ minLength: Type.Optional(Type.Integer({ minimum: 0 })),
119
+ /** Regular expression pattern. */
120
+ pattern: Type.Optional(Type.String())
121
+ });
133
122
  const ArrayValidationPropertiesWithSchema = Type.Object({
134
123
  type: Type.Literal("array"),
135
124
  /** Maximum number of items in array. */
@@ -158,15 +147,6 @@ const ObjectValidationPropertiesWithSchema = Type.Object({
158
147
  /** Properties matching regex patterns. */
159
148
  patternProperties: Type.Optional(Type.Record(Type.String(), schemaOrReference))
160
149
  });
161
- const Extensions = compose(
162
- XScalarIgnoreSchema,
163
- XInternalSchema,
164
- XVariableSchema,
165
- XEnumDescriptionsSchema,
166
- XEnumVarNamesSchema,
167
- XAdditionalPropertiesNameSchema,
168
- XTags
169
- );
170
150
  const SchemaObjectSchemaDefinition = Type.Union([
171
151
  // Keep compositions first so they get priority when union is evaluated
172
152
  // Make sure there is always a required field so not all properties are optional
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/schema.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { XTags } from '@/schemas/extensions/document/x-tags'\nimport { XAdditionalPropertiesNameSchema } from '@/schemas/extensions/schema/x-additional-properties-name'\nimport { XEnumDescriptionsSchema } from '@/schemas/extensions/schema/x-enum-descriptions'\nimport { XEnumVarNamesSchema } from '@/schemas/extensions/schema/x-enum-varnames'\nimport { XVariableSchema } from '@/schemas/extensions/schema/x-variable'\nimport {\n DiscriminatorObjectRef,\n ExternalDocumentationObjectRef,\n SchemaObjectRef,\n XMLObjectRef,\n} from '@/schemas/v3.1/strict/ref-definitions'\nimport { reference } from '@/schemas/v3.1/strict/reference'\n\nconst schemaOrReference = Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])\n\n/**\n * Primitive types that don't have additional validation properties.\n * These types (null, boolean, string, number, integer, object, array) can be used\n * without additional validation constraints.\n *\n * TODO: Type array will actually validate against every union type but we can cross that bridge when we come to it\n */\nconst OtherTypes = Type.Object({\n type: Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Array(\n Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Literal('string'),\n Type.Literal('number'),\n Type.Literal('integer'),\n Type.Literal('object'),\n Type.Literal('array'),\n ]),\n ),\n ]),\n})\n\n/**\n * Numeric validation properties for number and integer types.\n */\nconst NumericProperties = Type.Object({\n type: Type.Union([Type.Literal('number'), Type.Literal('integer')]),\n /** Different subtypes */\n format: Type.Optional(\n Type.Union([\n // Integer formats\n Type.Literal('int8'),\n Type.Literal('int16'),\n Type.Literal('int32'),\n Type.Literal('int64'),\n Type.Literal('uint8'),\n Type.Literal('uint16'),\n Type.Literal('uint32'),\n Type.Literal('uint64'),\n Type.Literal('double-int'),\n // Number formats\n Type.Literal('float'),\n Type.Literal('double'),\n Type.Literal('decimal'),\n Type.Literal('decimal128'),\n // Structured field number formats\n Type.Literal('sf-integer'),\n Type.Literal('sf-decimal'),\n ]),\n ),\n /** Number must be a multiple of this value. */\n multipleOf: Type.Optional(Type.Number()),\n /** Maximum value (inclusive). */\n maximum: Type.Optional(Type.Number()),\n /** Maximum value (exclusive). */\n exclusiveMaximum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n /** Minimum value (inclusive). */\n minimum: Type.Optional(Type.Number()),\n /** Minimum value (exclusive). */\n exclusiveMinimum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n})\n\n/**\n * String validation properties for string types.\n */\nconst StringValidationProperties = Type.Object({\n type: Type.Literal('string'),\n /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */\n format: Type.Optional(Type.String()),\n /** Maximum string length. */\n maxLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum string length. */\n minLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Regular expression pattern. */\n pattern: Type.Optional(Type.String()),\n})\n\nconst CorePropertiesWithSchema = Type.Object({\n name: Type.Optional(Type.String()),\n /** A title for the schema. */\n title: Type.Optional(Type.String()),\n /** A description of the schema. */\n description: Type.Optional(Type.String()),\n /** Default value for the schema. */\n default: Type.Optional(Type.Unknown()),\n /** Array of allowed values. */\n enum: Type.Optional(Type.Array(Type.Unknown())),\n /** Constant value that must match exactly. */\n const: Type.Optional(Type.Unknown()),\n\n // OpenAPI 3.1\n /** Media type for content validation. */\n contentMediaType: Type.Optional(Type.String()),\n /** Content encoding. */\n contentEncoding: Type.Optional(Type.String()),\n /** Schema for content validation. */\n contentSchema: Type.Optional(schemaOrReference),\n /** Whether the schema is deprecated. */\n deprecated: Type.Optional(Type.Boolean()),\n /** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */\n discriminator: Type.Optional(DiscriminatorObjectRef),\n /** Whether the schema is read-only. */\n readOnly: Type.Optional(Type.Boolean()),\n /** Whether the schema is write-only. */\n writeOnly: Type.Optional(Type.Boolean()),\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml: Type.Optional(XMLObjectRef),\n /** Additional external documentation for this schema. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example: Type.Optional(Type.Unknown()),\n /**\n * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.\n * Each example should be a valid instance of the schema.\n */\n examples: Type.Optional(Type.Array(Type.Unknown())),\n\n /** All schemas must be valid. */\n allOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Exactly one schema must be valid. */\n oneOf: Type.Optional(Type.Array(schemaOrReference)),\n /** At least one schema must be valid. */\n anyOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Schema must not be valid. */\n not: Type.Optional(schemaOrReference),\n})\n\nconst ArrayValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('array'),\n /** Maximum number of items in array. */\n maxItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of items in array. */\n minItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Whether array items must be unique. */\n uniqueItems: Type.Optional(Type.Boolean()),\n /** Schema for array items. */\n items: Type.Optional(schemaOrReference),\n /** Schema for tuple validation. */\n prefixItems: Type.Optional(Type.Array(schemaOrReference)),\n})\n\nconst ObjectValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('object'),\n /** Maximum number of properties. */\n maxProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of properties. */\n minProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Array of required property names. */\n required: Type.Optional(Type.Array(Type.String())),\n /** Object property definitions. */\n properties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n /** Schema for additional properties. */\n additionalProperties: Type.Optional(Type.Union([Type.Boolean(), schemaOrReference])),\n /** Properties matching regex patterns. */\n patternProperties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n})\n\nconst Extensions = compose(\n XScalarIgnoreSchema,\n XInternalSchema,\n XVariableSchema,\n XEnumDescriptionsSchema,\n XEnumVarNamesSchema,\n XAdditionalPropertiesNameSchema,\n XTags,\n)\n\n/** Builds the recursive schema schema */\nexport const SchemaObjectSchemaDefinition = Type.Union([\n // Keep compositions first so they get priority when union is evaluated\n // Make sure there is always a required field so not all properties are optional\n // When all properties are optional (1) typescript will not throw any warnings/error and accepts anything\n // even a non resolved ref and (2) it will match any schema so it will not validate the refs correctly\n compose(Type.Object({ _: Type.String() }), CorePropertiesWithSchema, Extensions),\n compose(OtherTypes, CorePropertiesWithSchema, Extensions),\n compose(NumericProperties, CorePropertiesWithSchema, Extensions),\n compose(StringValidationProperties, CorePropertiesWithSchema, Extensions),\n compose(ObjectValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n compose(ArrayValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n])\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;AACpC,SAAS,aAAa;AACtB,SAAS,uCAAuC;AAChD,SAAS,+BAA+B;AACxC,SAAS,2BAA2B;AACpC,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,iBAAiB;AAE1B,MAAM,oBAAoB,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC;AASlF,MAAM,aAAa,KAAK,OAAO;AAAA,EAC7B,MAAM,KAAK,MAAM;AAAA,IACf,KAAK,QAAQ,MAAM;AAAA,IACnB,KAAK,QAAQ,SAAS;AAAA,IACtB,KAAK;AAAA,MACH,KAAK,MAAM;AAAA,QACT,KAAK,QAAQ,MAAM;AAAA,QACnB,KAAK,QAAQ,SAAS;AAAA,QACtB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,SAAS;AAAA,QACtB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,OAAO;AAAA,MACtB,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH,CAAC;AAKD,MAAM,oBAAoB,KAAK,OAAO;AAAA,EACpC,MAAM,KAAK,MAAM,CAAC,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,SAAS,CAAC,CAAC;AAAA;AAAA,EAElE,QAAQ,KAAK;AAAA,IACX,KAAK,MAAM;AAAA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AK,OAAO,EAAE,GAAG,KAAK,OAAO,EAAE,CAAC,GAAG,0BAA0B,UAAU;AAAA,EAC/E,QAAQ,YAAY,0BAA0B,UAAU;AAAA,EACxD,QAAQ,mBAAmB,0BAA0B,UAAU;AAAA,EAC/D,QAAQ,4BAA4B,0BAA0B,UAAU;AAAA,EACxE,QAAQ,sCAAsC,0BAA0B,UAAU;AAAA,EAClF,QAAQ,qCAAqC,0BAA0B,UAAU;AACnF,CAAC;",
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XInternal, XInternalSchema } from '@/schemas/extensions/document/x-internal'\nimport { type XScalarIgnore, XScalarIgnoreSchema } from '@/schemas/extensions/document/x-scalar-ignore'\nimport { XTags } from '@/schemas/extensions/document/x-tags'\nimport {\n type XAdditionalPropertiesName,\n XAdditionalPropertiesNameSchema,\n} from '@/schemas/extensions/schema/x-additional-properties-name'\nimport { type XEnumDescriptions, XEnumDescriptionsSchema } from '@/schemas/extensions/schema/x-enum-descriptions'\nimport { type XEnumVarNames, XEnumVarNamesSchema } from '@/schemas/extensions/schema/x-enum-varnames'\nimport { type XVariable, XVariableSchema } from '@/schemas/extensions/schema/x-variable'\nimport type { ExternalDocumentationObject } from '@/schemas/v3.1/strict/external-documentation'\nimport type { XMLObject } from '@/schemas/v3.1/strict/xml'\n\nimport type { DiscriminatorObject } from './discriminator'\nimport {\n DiscriminatorObjectRef,\n ExternalDocumentationObjectRef,\n SchemaObjectRef,\n XMLObjectRef,\n} from './ref-definitions'\nimport { type ReferenceType, reference } from './reference'\n\nconst schemaOrReference = Type.Union([SchemaObjectRef, reference(SchemaObjectRef)])\n\n/** We use this type to ensure that we are parsing a schema object as every property can be optional */\ntype _InternalType = CoreProperties & {\n _: string\n} & Extensions\n\n/**\n * Primitive types that don't have additional validation properties.\n * These types (null, boolean, string, number, integer, object, array) can be used\n * without additional validation constraints.\n *\n * TODO: Type array will actually validate against every union type but we can cross that bridge when we come to it\n */\nconst OtherTypes = Type.Object({\n type: Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Array(\n Type.Union([\n Type.Literal('null'),\n Type.Literal('boolean'),\n Type.Literal('string'),\n Type.Literal('number'),\n Type.Literal('integer'),\n Type.Literal('object'),\n Type.Literal('array'),\n ]),\n ),\n ]),\n})\n\ntype OtherType = 'boolean' | 'null' | ('string' | 'number' | 'boolean' | 'object' | 'null' | 'integer' | 'array')[]\n\ntype OtherTypes = CoreProperties & {\n type: OtherType\n} & Extensions\n\nconst Extensions = compose(\n XScalarIgnoreSchema,\n XInternalSchema,\n XVariableSchema,\n XEnumDescriptionsSchema,\n XEnumVarNamesSchema,\n XAdditionalPropertiesNameSchema,\n XTags,\n)\n\nexport type Extensions = XScalarIgnore &\n XInternal &\n XVariable &\n XEnumDescriptions &\n XEnumVarNames &\n XAdditionalPropertiesName &\n XTags\n\nconst CorePropertiesWithSchema = Type.Object({\n name: Type.Optional(Type.String()),\n /** A title for the schema. */\n title: Type.Optional(Type.String()),\n /** A description of the schema. */\n description: Type.Optional(Type.String()),\n /** Default value for the schema. */\n default: Type.Optional(Type.Unknown()),\n /** Array of allowed values. */\n enum: Type.Optional(Type.Array(Type.Unknown())),\n /** Constant value that must match exactly. */\n const: Type.Optional(Type.Unknown()),\n /** Media type for content validation. */\n contentMediaType: Type.Optional(Type.String()),\n /** Content encoding. */\n contentEncoding: Type.Optional(Type.String()),\n /** Schema for content validation. */\n contentSchema: Type.Optional(schemaOrReference),\n /** Whether the schema is deprecated. */\n deprecated: Type.Optional(Type.Boolean()),\n /** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */\n discriminator: Type.Optional(DiscriminatorObjectRef),\n /** Whether the schema is read-only. */\n readOnly: Type.Optional(Type.Boolean()),\n /** Whether the schema is write-only. */\n writeOnly: Type.Optional(Type.Boolean()),\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml: Type.Optional(XMLObjectRef),\n /** Additional external documentation for this schema. */\n externalDocs: Type.Optional(ExternalDocumentationObjectRef),\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example: Type.Optional(Type.Unknown()),\n /**\n * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.\n * Each example should be a valid instance of the schema.\n */\n examples: Type.Optional(Type.Array(Type.Unknown())),\n /** All schemas must be valid. */\n allOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Exactly one schema must be valid. */\n oneOf: Type.Optional(Type.Array(schemaOrReference)),\n /** At least one schema must be valid. */\n anyOf: Type.Optional(Type.Array(schemaOrReference)),\n /** Schema must not be valid. */\n not: Type.Optional(schemaOrReference),\n})\n\nexport type CoreProperties = {\n name?: string\n /** A title for the schema. */\n title?: string\n /** A description of the schema. */\n description?: string\n /** Default value for the schema. */\n default?: unknown\n /** Array of allowed values. */\n enum?: unknown[]\n /** Constant value that must match exactly. */\n const?: unknown\n /** Media type for content validation. */\n contentMediaType?: string\n /** Content encoding. */\n contentEncoding?: string\n /** Schema for content validation. */\n contentSchema?: ReferenceType<SchemaObject>\n /** Whether the schema is deprecated. */\n deprecated?: boolean\n /** Adds support for polymorphism. The discriminator is used to determine which of a set of schemas a payload is expected to satisfy. See Composition and Inheritance for more details. */\n discriminator?: DiscriminatorObject\n /** Whether the schema is read-only. */\n readOnly?: boolean\n /** Whether the schema is write-only. */\n writeOnly?: boolean\n /** This MAY be used only on property schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property. */\n xml?: XMLObject\n /** Additional external documentation for this schema. */\n externalDocs?: ExternalDocumentationObject\n /**\n * A free-form field to include an example of an instance for this schema. To represent examples that cannot be naturally represented in JSON or YAML, a string value can be used to contain the example with escaping where necessary.\n *\n * @deprecated The example field has been deprecated in favor of the JSON Schema examples keyword. Use of example is discouraged, and later versions of this specification may remove it.\n */\n example?: unknown\n /**\n * An array of examples of valid instances for this schema. This keyword follows the JSON Schema Draft 2020-12 specification.\n * Each example should be a valid instance of the schema.\n */\n examples?: unknown[]\n /** All schemas must be valid. */\n allOf?: ReferenceType<SchemaObject>[]\n /** Exactly one schema must be valid. */\n oneOf?: ReferenceType<SchemaObject>[]\n /** At least one schema must be valid. */\n anyOf?: ReferenceType<SchemaObject>[]\n /** Schema must not be valid. */\n not?: ReferenceType<SchemaObject>\n}\n\n/**\n * Numeric validation properties for number and integer types.\n */\nconst NumericProperties = Type.Object({\n type: Type.Union([Type.Literal('number'), Type.Literal('integer')]),\n /** Different subtypes */\n format: Type.Optional(Type.String()),\n /** Number must be a multiple of this value. */\n multipleOf: Type.Optional(Type.Number()),\n /** Maximum value (inclusive). */\n maximum: Type.Optional(Type.Number()),\n /** Maximum value (exclusive). */\n exclusiveMaximum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n /** Minimum value (inclusive). */\n minimum: Type.Optional(Type.Number()),\n /** Minimum value (exclusive). */\n exclusiveMinimum: Type.Optional(Type.Union([Type.Boolean(), Type.Number()])),\n})\n\nexport type NumericObject = CoreProperties & {\n type: 'number' | 'integer'\n /** Different subtypes */\n format?:\n | 'int8'\n | 'int16'\n | 'int32'\n | 'int64'\n | 'uint8'\n | 'uint16'\n | 'uint32'\n | 'uint64'\n | 'double-int'\n | 'float'\n | 'double'\n | 'decimal'\n | 'decimal128'\n | 'sf-integer'\n | 'sf-decimal'\n | (string & {})\n /** Number must be a multiple of this value. */\n multipleOf?: number\n /** Maximum value (inclusive). */\n maximum?: number\n /** Maximum value (exclusive). */\n exclusiveMaximum?: boolean | number\n /** Minimum value (inclusive). */\n minimum?: number\n /** Minimum value (exclusive). */\n exclusiveMinimum?: boolean | number\n} & Extensions\n\n/**\n * String validation properties for string types.\n */\nconst StringValidationProperties = Type.Object({\n type: Type.Literal('string'),\n /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */\n format: Type.Optional(Type.String()),\n /** Maximum string length. */\n maxLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum string length. */\n minLength: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Regular expression pattern. */\n pattern: Type.Optional(Type.String()),\n})\n\n/**\n * Supported string formats in OpenAPI schemas.\n *\n * These provide better type safety for string format validation. We wanted to allow any arbitrary string\n * in the schema, so we type it in typescript instead. This gives us autocomplete while allowing any string!\n */\nexport type StringFormat =\n // Date and time formats\n | 'date'\n | 'date-time'\n | 'date-time-local'\n | 'time'\n | 'time-local'\n | 'duration'\n | 'http-date'\n // Network formats\n | 'email'\n | 'idn-email'\n | 'hostname'\n | 'idn-hostname'\n | 'ipv4'\n | 'ipv6'\n | 'uri'\n | 'uri-reference'\n | 'uri-template'\n | 'iri'\n | 'iri-reference'\n | 'uuid'\n // Content formats\n | 'binary'\n | 'byte'\n | 'base64url'\n | 'html'\n | 'commonmark'\n | 'password'\n | 'regex'\n | 'json-pointer'\n | 'relative-json-pointer'\n | 'media-range'\n // Character formats\n | 'char'\n // Structured field string formats\n | 'sf-string'\n | 'sf-token'\n | 'sf-binary'\n | 'sf-boolean'\n | (string & {})\n\nexport type StringObject = CoreProperties & {\n type: 'string'\n /** Different subtypes - allow any arbitrary string, this negates the purpose of having a union of formats so we type it in typescript instead */\n format?: StringFormat\n /** Maximum string length. */\n maxLength?: number\n /** Minimum string length. */\n minLength?: number\n /** Regular expression pattern. */\n pattern?: string\n} & Extensions\n\nconst ArrayValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('array'),\n /** Maximum number of items in array. */\n maxItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of items in array. */\n minItems: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Whether array items must be unique. */\n uniqueItems: Type.Optional(Type.Boolean()),\n /** Schema for array items. */\n items: Type.Optional(schemaOrReference),\n /** Schema for tuple validation. */\n prefixItems: Type.Optional(Type.Array(schemaOrReference)),\n})\n\nexport type ArrayObject = CoreProperties & {\n type: 'array'\n /** Maximum number of items in array. */\n maxItems?: number\n /** Minimum number of items in array. */\n minItems?: number\n /** Whether array items must be unique. */\n uniqueItems?: boolean\n /** Schema for array items. */\n items?: ReferenceType<SchemaObject>\n /** Schema for tuple validation. */\n prefixItems?: ReferenceType<SchemaObject>[]\n} & Extensions\n\nconst ObjectValidationPropertiesWithSchema = Type.Object({\n type: Type.Literal('object'),\n /** Maximum number of properties. */\n maxProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Minimum number of properties. */\n minProperties: Type.Optional(Type.Integer({ minimum: 0 })),\n /** Array of required property names. */\n required: Type.Optional(Type.Array(Type.String())),\n /** Object property definitions. */\n properties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n /** Schema for additional properties. */\n additionalProperties: Type.Optional(Type.Union([Type.Boolean(), schemaOrReference])),\n /** Properties matching regex patterns. */\n patternProperties: Type.Optional(Type.Record(Type.String(), schemaOrReference)),\n})\n\nexport type ObjectObject = CoreProperties & {\n type: 'object'\n /** Maximum number of properties. */\n maxProperties?: number\n /** Minimum number of properties. */\n minProperties?: number\n /** Array of required property names. */\n required?: string[]\n /** Object property definitions. */\n properties?: Record<string, ReferenceType<SchemaObject>>\n /** Schema for additional properties. */\n additionalProperties?: boolean | ReferenceType<SchemaObject>\n /** Properties matching regex patterns. */\n patternProperties?: Record<string, ReferenceType<SchemaObject>>\n} & Extensions\n\n/** Builds the recursive schema schema */\nexport const SchemaObjectSchemaDefinition = Type.Union([\n // Keep compositions first so they get priority when union is evaluated\n // Make sure there is always a required field so not all properties are optional\n // When all properties are optional (1) typescript will not throw any warnings/error and accepts anything\n // even a non resolved ref and (2) it will match any schema so it will not validate the refs correctly\n compose(Type.Object({ _: Type.String() }), CorePropertiesWithSchema, Extensions),\n compose(OtherTypes, CorePropertiesWithSchema, Extensions),\n compose(NumericProperties, CorePropertiesWithSchema, Extensions),\n compose(StringValidationProperties, CorePropertiesWithSchema, Extensions),\n compose(ObjectValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n compose(ArrayValidationPropertiesWithSchema, CorePropertiesWithSchema, Extensions),\n])\n\nexport type SchemaObject = _InternalType | OtherTypes | NumericObject | StringObject | ObjectObject | ArrayObject\n"],
5
+ "mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAyB,uBAAuB;AAChD,SAA6B,2BAA2B;AACxD,SAAS,aAAa;AACtB;AAAA,EAEE;AAAA,OACK;AACP,SAAiC,+BAA+B;AAChE,SAA6B,2BAA2B;AACxD,SAAyB,uBAAuB;AAKhD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAA6B,iBAAiB;AAE9C,MAAM,oBAAoB,KAAK,MAAM,CAAC,iBAAiB,UAAU,eAAe,CAAC,CAAC;AAclF,MAAM,aAAa,KAAK,OAAO;AAAA,EAC7B,MAAM,KAAK,MAAM;AAAA,IACf,KAAK,QAAQ,MAAM;AAAA,IACnB,KAAK,QAAQ,SAAS;AAAA,IACtB,KAAK;AAAA,MACH,KAAK,MAAM;AAAA,QACT,KAAK,QAAQ,MAAM;AAAA,QACnB,KAAK,QAAQ,SAAS;AAAA,QACtB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,SAAS;AAAA,QACtB,KAAK,QAAQ,QAAQ;AAAA,QACrB,KAAK,QAAQ,OAAO;AAAA,MACtB,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AACH,CAAC;AAQD,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAUA,MAAM,2BAA2B,KAAK,OAAO;AAAA,EAC3C,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,EAEjC,OAAO,KAAK,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AAiB,CAAC;AAC1D,CAAC;AAgBD,MAAM,uCAAuC,KAAK,OAAO;AAAA,EACvD,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,EAE3B,eAAe,KAAK,SAAS,KAAK,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA;AAAA,EAEzD,eAAe,KAAK,SAAS,KAAK,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;AAAA;AAAA,EAEzD,UAAU,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,EAEjD,YAAY,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,iBAAiB,CAAC;AAAA;AAAA,EAEvE,sBAAsB,KAAK,SAAS,KAAK,MAAM,CAAC,KAAK,QAAQ,GAAG,iBAAiB,CAAC,CAAC;AAAA;AAAA,EAEnF,mBAAmB,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,iBAAiB,CAAC;AAChF,CAAC;AAmBM,MAAM,+BAA+B,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAKrD,QAAQ,KAAK,OAAO,EAAE,GAAG,KAAK,OAAO,EAAE,CAAC,GAAG,0BAA0B,UAAU;AAAA,EAC/E,QAAQ,YAAY,0BAA0B,UAAU;AAAA,EACxD,QAAQ,mBAAmB,0BAA0B,UAAU;AAAA,EAC/D,QAAQ,4BAA4B,0BAA0B,UAAU;AAAA,EACxE,QAAQ,sCAAsC,0BAA0B,UAAU;AAAA,EAClF,QAAQ,qCAAqC,0BAA0B,UAAU;AACnF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -8,4 +8,16 @@
8
8
  * An empty Security Requirement Object ({}) indicates anonymous access is supported.
9
9
  */
10
10
  export declare const SecurityRequirementObjectSchemaDefinition: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
11
+ /**
12
+ * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.
13
+ *
14
+ * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.
15
+ *
16
+ * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.
17
+ *
18
+ * An empty Security Requirement Object ({}) indicates anonymous access is supported.
19
+ */
20
+ export type SecurityRequirementObject = Record<string,
21
+ /** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type "oauth2" or "openIdConnect", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */
22
+ string[]>;
11
23
  //# sourceMappingURL=security-requirement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"security-requirement.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-requirement.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,yCAAyC,2IAIrD,CAAA"}
1
+ {"version":3,"file":"security-requirement.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-requirement.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,yCAAyC,2IAIrD,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAC5C,MAAM;AACN,ofAAof;AACpf,MAAM,EAAE,CACT,CAAA"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/schemas/v3.1/strict/security-requirement.ts"],
4
- "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n */\nexport const SecurityRequirementObjectSchemaDefinition = Type.Record(\n Type.String(),\n /** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type \"oauth2\" or \"openIdConnect\", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */\n Type.Array(Type.String()),\n)\n"],
4
+ "sourcesContent": ["import { Type } from '@scalar/typebox'\n\n/**\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n */\nexport const SecurityRequirementObjectSchemaDefinition = Type.Record(\n Type.String(),\n /** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type \"oauth2\" or \"openIdConnect\", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */\n Type.Array(Type.String()),\n)\n\n/**\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n */\nexport type SecurityRequirementObject = Record<\n string,\n /** Each name MUST correspond to a security scheme which is declared in the Security Schemes under the Components Object. If the security scheme is of type \"oauth2\" or \"openIdConnect\", then the value is a list of scope names required for the execution, and the list MAY be empty if authorization does not require a specified scope. For other security scheme types, the array MAY contain a list of role names which are required for the execution, but are not otherwise defined or exchanged in-band. */\n string[]\n>\n"],
5
5
  "mappings": "AAAA,SAAS,YAAY;AAWd,MAAM,4CAA4C,KAAK;AAAA,EAC5D,KAAK,OAAO;AAAA;AAAA,EAEZ,KAAK,MAAM,KAAK,OAAO,CAAC;AAC1B;",
6
6
  "names": []
7
7
  }