@scalar/workspace-store 0.4.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/client.d.ts +39257 -4989
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +8 -4
  5. package/dist/client.js.map +2 -2
  6. package/dist/helpers/general.d.ts +1 -0
  7. package/dist/helpers/general.d.ts.map +1 -1
  8. package/dist/helpers/general.js +5 -1
  9. package/dist/helpers/general.js.map +2 -2
  10. package/dist/navigation/helpers/traverse-document.d.ts +2 -2
  11. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  12. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  13. package/dist/navigation/helpers/traverse-paths.d.ts +2 -2
  14. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  15. package/dist/navigation/helpers/traverse-paths.js +4 -0
  16. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  17. package/dist/navigation/helpers/traverse-schemas.d.ts +2 -2
  18. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  19. package/dist/navigation/helpers/traverse-schemas.js +1 -1
  20. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  21. package/dist/navigation/helpers/traverse-tags.d.ts +2 -2
  22. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  23. package/dist/navigation/helpers/traverse-tags.js +2 -2
  24. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  25. package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -2
  26. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  27. package/dist/navigation/helpers/traverse-webhooks.js +4 -0
  28. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  29. package/dist/navigation/types.d.ts +11 -10
  30. package/dist/navigation/types.d.ts.map +1 -1
  31. package/dist/schemas/typebox-coerce.d.ts +26 -0
  32. package/dist/schemas/typebox-coerce.d.ts.map +1 -0
  33. package/dist/schemas/typebox-coerce.js +8 -0
  34. package/dist/schemas/typebox-coerce.js.map +7 -0
  35. package/dist/schemas/v3.1/compose.d.ts +6 -0
  36. package/dist/schemas/v3.1/compose.d.ts.map +1 -0
  37. package/dist/schemas/v3.1/compose.js +8 -0
  38. package/dist/schemas/v3.1/compose.js.map +7 -0
  39. package/dist/schemas/v3.1/strict/callback.d.ts +3 -0
  40. package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -0
  41. package/dist/schemas/v3.1/strict/callback.js +15 -0
  42. package/dist/schemas/v3.1/strict/callback.js.map +7 -0
  43. package/dist/schemas/v3.1/strict/components.d.ts +7824 -0
  44. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -0
  45. package/dist/schemas/v3.1/strict/components.js +46 -0
  46. package/dist/schemas/v3.1/strict/components.js.map +7 -0
  47. package/dist/schemas/{openapi-v3 → v3.1/strict}/contact.d.ts +4 -2
  48. package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -0
  49. package/dist/schemas/v3.1/strict/contact.js +18 -0
  50. package/dist/schemas/v3.1/strict/contact.js.map +7 -0
  51. package/dist/schemas/{openapi-v3 → v3.1/strict}/discriminator.d.ts +4 -2
  52. package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -0
  53. package/dist/schemas/v3.1/strict/discriminator.js +16 -0
  54. package/dist/schemas/v3.1/strict/discriminator.js.map +7 -0
  55. package/dist/schemas/{openapi-v3 → v3.1/strict}/encoding.d.ts +7 -16
  56. package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -0
  57. package/dist/schemas/v3.1/strict/encoding.js +17 -0
  58. package/dist/schemas/v3.1/strict/encoding.js.map +7 -0
  59. package/dist/schemas/{openapi-v3 → v3.1/strict}/example.d.ts +4 -2
  60. package/dist/schemas/v3.1/strict/example.d.ts.map +1 -0
  61. package/dist/schemas/v3.1/strict/example.js +20 -0
  62. package/dist/schemas/v3.1/strict/example.js.map +7 -0
  63. package/dist/schemas/v3.1/strict/extensions.d.ts +4 -0
  64. package/dist/schemas/v3.1/strict/extensions.d.ts.map +1 -0
  65. package/dist/schemas/v3.1/strict/extensions.js +6 -0
  66. package/dist/schemas/v3.1/strict/extensions.js.map +7 -0
  67. package/dist/schemas/v3.1/strict/external-documentation.d.ts +10 -0
  68. package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -0
  69. package/dist/schemas/v3.1/strict/external-documentation.js +16 -0
  70. package/dist/schemas/v3.1/strict/external-documentation.js.map +7 -0
  71. package/dist/schemas/v3.1/strict/header.d.ts +133 -0
  72. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -0
  73. package/dist/schemas/v3.1/strict/header.js +48 -0
  74. package/dist/schemas/v3.1/strict/header.js.map +7 -0
  75. package/dist/schemas/{openapi-v3 → v3.1/strict}/info.d.ts +8 -6
  76. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -0
  77. package/dist/schemas/v3.1/strict/info.js +28 -0
  78. package/dist/schemas/v3.1/strict/info.js.map +7 -0
  79. package/dist/schemas/{openapi-v3 → v3.1/strict}/license.d.ts +4 -2
  80. package/dist/schemas/v3.1/strict/license.d.ts.map +1 -0
  81. package/dist/schemas/v3.1/strict/license.js +18 -0
  82. package/dist/schemas/v3.1/strict/license.js.map +7 -0
  83. package/dist/schemas/{openapi-v3 → v3.1/strict}/link.d.ts +8 -6
  84. package/dist/schemas/v3.1/strict/link.d.ts.map +1 -0
  85. package/dist/schemas/v3.1/strict/link.js +25 -0
  86. package/dist/schemas/v3.1/strict/link.js.map +7 -0
  87. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +329 -0
  88. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -0
  89. package/dist/schemas/v3.1/strict/media-header-encoding.js +19 -0
  90. package/dist/schemas/v3.1/strict/media-header-encoding.js.map +7 -0
  91. package/dist/schemas/{openapi-v3 → v3.1/strict}/media-type.d.ts +20 -34
  92. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -0
  93. package/dist/schemas/v3.1/strict/media-type.js +27 -0
  94. package/dist/schemas/v3.1/strict/media-type.js.map +7 -0
  95. package/dist/schemas/{openapi-v3 → v3.1/strict}/oauth-flow.d.ts +4 -2
  96. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -0
  97. package/dist/schemas/v3.1/strict/oauth-flow.js +20 -0
  98. package/dist/schemas/v3.1/strict/oauth-flow.js.map +7 -0
  99. package/dist/schemas/{openapi-v3 → v3.1/strict}/oauthflows.d.ts +12 -10
  100. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -0
  101. package/dist/schemas/v3.1/strict/oauthflows.js +21 -0
  102. package/dist/schemas/v3.1/strict/oauthflows.js.map +7 -0
  103. package/dist/schemas/v3.1/strict/openapi-document.d.ts +49 -0
  104. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -0
  105. package/dist/schemas/v3.1/strict/openapi-document.js +55 -0
  106. package/dist/schemas/v3.1/strict/openapi-document.js.map +7 -0
  107. package/dist/schemas/v3.1/strict/operation.d.ts +572 -0
  108. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -0
  109. package/dist/schemas/v3.1/strict/operation.js +46 -0
  110. package/dist/schemas/v3.1/strict/operation.js.map +7 -0
  111. package/dist/schemas/v3.1/strict/parameter.d.ts +396 -0
  112. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -0
  113. package/dist/schemas/v3.1/strict/parameter.js +56 -0
  114. package/dist/schemas/v3.1/strict/parameter.js.map +7 -0
  115. package/dist/schemas/v3.1/strict/path-item.d.ts +205 -0
  116. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -0
  117. package/dist/schemas/v3.1/strict/path-item.js +41 -0
  118. package/dist/schemas/v3.1/strict/path-item.js.map +7 -0
  119. package/dist/schemas/v3.1/strict/path-operations.d.ts +7816 -0
  120. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -0
  121. package/dist/schemas/v3.1/strict/path-operations.js +19 -0
  122. package/dist/schemas/v3.1/strict/path-operations.js.map +7 -0
  123. package/dist/schemas/v3.1/strict/paths.d.ts +3536 -0
  124. package/dist/schemas/{openapi-v3/openapi-document.d.ts.map → v3.1/strict/paths.d.ts.map} +1 -1
  125. package/dist/schemas/v3.1/strict/paths.js +16 -0
  126. package/dist/schemas/v3.1/strict/paths.js.map +7 -0
  127. package/dist/schemas/{openapi-v3 → v3.1/strict}/reference.d.ts +15 -6
  128. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -0
  129. package/dist/schemas/v3.1/strict/reference.js +26 -0
  130. package/dist/schemas/v3.1/strict/reference.js.map +7 -0
  131. package/dist/schemas/v3.1/strict/request-body.d.ts +112 -0
  132. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -0
  133. package/dist/schemas/v3.1/strict/request-body.js +19 -0
  134. package/dist/schemas/v3.1/strict/request-body.js.map +7 -0
  135. package/dist/schemas/v3.1/strict/response.d.ts +242 -0
  136. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -0
  137. package/dist/schemas/v3.1/strict/response.js +23 -0
  138. package/dist/schemas/v3.1/strict/response.js.map +7 -0
  139. package/dist/schemas/v3.1/strict/responses.d.ts +254 -0
  140. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -0
  141. package/dist/schemas/v3.1/strict/responses.js +13 -0
  142. package/dist/schemas/v3.1/strict/responses.js.map +7 -0
  143. package/dist/schemas/{openapi-v3 → v3.1/strict}/schema.d.ts +12 -8
  144. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -0
  145. package/dist/schemas/v3.1/strict/schema.js +34 -0
  146. package/dist/schemas/v3.1/strict/schema.js.map +7 -0
  147. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-requirement.d.ts +3 -1
  148. package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -0
  149. package/dist/schemas/v3.1/strict/security-requirement.js +15 -0
  150. package/dist/schemas/v3.1/strict/security-requirement.js.map +7 -0
  151. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.d.ts +40 -38
  152. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -0
  153. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.js +21 -16
  154. package/dist/schemas/v3.1/strict/security-scheme.js.map +7 -0
  155. package/dist/schemas/{openapi-v3 → v3.1/strict}/server-variable.d.ts +4 -2
  156. package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -0
  157. package/dist/schemas/v3.1/strict/server-variable.js +18 -0
  158. package/dist/schemas/v3.1/strict/server-variable.js.map +7 -0
  159. package/dist/schemas/{openapi-v3 → v3.1/strict}/server.d.ts +6 -4
  160. package/dist/schemas/v3.1/strict/server.d.ts.map +1 -0
  161. package/dist/schemas/v3.1/strict/server.js +19 -0
  162. package/dist/schemas/v3.1/strict/server.js.map +7 -0
  163. package/dist/schemas/v3.1/strict/tag.d.ts +17 -0
  164. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -0
  165. package/dist/schemas/v3.1/strict/tag.js +25 -0
  166. package/dist/schemas/v3.1/strict/tag.js.map +7 -0
  167. package/dist/schemas/{openapi-v3 → v3.1/strict}/xml.d.ts +4 -2
  168. package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -0
  169. package/dist/schemas/v3.1/strict/xml.js +22 -0
  170. package/dist/schemas/v3.1/strict/xml.js.map +7 -0
  171. package/dist/schemas/v3.1/type-guard.d.ts +3 -0
  172. package/dist/schemas/v3.1/type-guard.d.ts.map +1 -0
  173. package/dist/schemas/v3.1/type-guard.js +7 -0
  174. package/dist/schemas/v3.1/type-guard.js.map +7 -0
  175. package/dist/schemas/workspace.d.ts +49 -14750
  176. package/dist/schemas/workspace.d.ts.map +1 -1
  177. package/dist/schemas/workspace.js +5 -4
  178. package/dist/schemas/workspace.js.map +2 -2
  179. package/dist/schemas.d.ts.map +1 -1
  180. package/dist/schemas.js.map +2 -2
  181. package/dist/server.d.ts +2579 -5
  182. package/dist/server.d.ts.map +1 -1
  183. package/dist/server.js +16 -8
  184. package/dist/server.js.map +2 -2
  185. package/package.json +5 -4
  186. package/dist/schemas/openapi-v3/callback.d.ts +0 -1156
  187. package/dist/schemas/openapi-v3/callback.d.ts.map +0 -1
  188. package/dist/schemas/openapi-v3/callback.js +0 -11
  189. package/dist/schemas/openapi-v3/callback.js.map +0 -7
  190. package/dist/schemas/openapi-v3/components.d.ts +0 -2597
  191. package/dist/schemas/openapi-v3/components.d.ts.map +0 -1
  192. package/dist/schemas/openapi-v3/components.js +0 -38
  193. package/dist/schemas/openapi-v3/components.js.map +0 -7
  194. package/dist/schemas/openapi-v3/contact.d.ts.map +0 -1
  195. package/dist/schemas/openapi-v3/contact.js +0 -13
  196. package/dist/schemas/openapi-v3/contact.js.map +0 -7
  197. package/dist/schemas/openapi-v3/discriminator.d.ts.map +0 -1
  198. package/dist/schemas/openapi-v3/discriminator.js +0 -11
  199. package/dist/schemas/openapi-v3/discriminator.js.map +0 -7
  200. package/dist/schemas/openapi-v3/encoding.d.ts.map +0 -1
  201. package/dist/schemas/openapi-v3/encoding.js +0 -13
  202. package/dist/schemas/openapi-v3/encoding.js.map +0 -7
  203. package/dist/schemas/openapi-v3/example.d.ts.map +0 -1
  204. package/dist/schemas/openapi-v3/example.js +0 -15
  205. package/dist/schemas/openapi-v3/example.js.map +0 -7
  206. package/dist/schemas/openapi-v3/external-documentation.d.ts +0 -8
  207. package/dist/schemas/openapi-v3/external-documentation.d.ts.map +0 -1
  208. package/dist/schemas/openapi-v3/external-documentation.js +0 -11
  209. package/dist/schemas/openapi-v3/external-documentation.js.map +0 -7
  210. package/dist/schemas/openapi-v3/header.d.ts +0 -18
  211. package/dist/schemas/openapi-v3/header.d.ts.map +0 -1
  212. package/dist/schemas/openapi-v3/header.js +0 -13
  213. package/dist/schemas/openapi-v3/header.js.map +0 -7
  214. package/dist/schemas/openapi-v3/info.d.ts.map +0 -1
  215. package/dist/schemas/openapi-v3/info.js +0 -23
  216. package/dist/schemas/openapi-v3/info.js.map +0 -7
  217. package/dist/schemas/openapi-v3/license.d.ts.map +0 -1
  218. package/dist/schemas/openapi-v3/license.js +0 -13
  219. package/dist/schemas/openapi-v3/license.js.map +0 -7
  220. package/dist/schemas/openapi-v3/link.d.ts.map +0 -1
  221. package/dist/schemas/openapi-v3/link.js +0 -20
  222. package/dist/schemas/openapi-v3/link.js.map +0 -7
  223. package/dist/schemas/openapi-v3/media-type.d.ts.map +0 -1
  224. package/dist/schemas/openapi-v3/media-type.js +0 -19
  225. package/dist/schemas/openapi-v3/media-type.js.map +0 -7
  226. package/dist/schemas/openapi-v3/oauth-flow.d.ts.map +0 -1
  227. package/dist/schemas/openapi-v3/oauth-flow.js +0 -15
  228. package/dist/schemas/openapi-v3/oauth-flow.js.map +0 -7
  229. package/dist/schemas/openapi-v3/oauthflows.d.ts.map +0 -1
  230. package/dist/schemas/openapi-v3/oauthflows.js +0 -16
  231. package/dist/schemas/openapi-v3/oauthflows.js.map +0 -7
  232. package/dist/schemas/openapi-v3/openapi-document.d.ts +0 -4941
  233. package/dist/schemas/openapi-v3/openapi-document.js +0 -35
  234. package/dist/schemas/openapi-v3/openapi-document.js.map +0 -7
  235. package/dist/schemas/openapi-v3/operation-without-callback.d.ts +0 -200
  236. package/dist/schemas/openapi-v3/operation-without-callback.d.ts.map +0 -1
  237. package/dist/schemas/openapi-v3/operation-without-callback.js +0 -39
  238. package/dist/schemas/openapi-v3/operation-without-callback.js.map +0 -7
  239. package/dist/schemas/openapi-v3/parameter.d.ts +0 -25
  240. package/dist/schemas/openapi-v3/parameter.d.ts.map +0 -1
  241. package/dist/schemas/openapi-v3/parameter.js +0 -22
  242. package/dist/schemas/openapi-v3/parameter.js.map +0 -7
  243. package/dist/schemas/openapi-v3/path-item.d.ts +0 -1167
  244. package/dist/schemas/openapi-v3/path-item.d.ts.map +0 -1
  245. package/dist/schemas/openapi-v3/path-item.js +0 -37
  246. package/dist/schemas/openapi-v3/path-item.js.map +0 -7
  247. package/dist/schemas/openapi-v3/paths.d.ts +0 -1154
  248. package/dist/schemas/openapi-v3/paths.d.ts.map +0 -1
  249. package/dist/schemas/openapi-v3/paths.js +0 -11
  250. package/dist/schemas/openapi-v3/paths.js.map +0 -7
  251. package/dist/schemas/openapi-v3/reference.d.ts.map +0 -1
  252. package/dist/schemas/openapi-v3/reference.js +0 -17
  253. package/dist/schemas/openapi-v3/reference.js.map +0 -7
  254. package/dist/schemas/openapi-v3/request-body.d.ts +0 -56
  255. package/dist/schemas/openapi-v3/request-body.d.ts.map +0 -1
  256. package/dist/schemas/openapi-v3/request-body.js +0 -14
  257. package/dist/schemas/openapi-v3/request-body.js.map +0 -7
  258. package/dist/schemas/openapi-v3/response.d.ts +0 -88
  259. package/dist/schemas/openapi-v3/response.d.ts.map +0 -1
  260. package/dist/schemas/openapi-v3/response.js +0 -19
  261. package/dist/schemas/openapi-v3/response.js.map +0 -7
  262. package/dist/schemas/openapi-v3/responses.d.ts +0 -99
  263. package/dist/schemas/openapi-v3/responses.d.ts.map +0 -1
  264. package/dist/schemas/openapi-v3/responses.js +0 -8
  265. package/dist/schemas/openapi-v3/responses.js.map +0 -7
  266. package/dist/schemas/openapi-v3/schema.d.ts.map +0 -1
  267. package/dist/schemas/openapi-v3/schema.js +0 -22
  268. package/dist/schemas/openapi-v3/schema.js.map +0 -7
  269. package/dist/schemas/openapi-v3/security-requirement.d.ts.map +0 -1
  270. package/dist/schemas/openapi-v3/security-requirement.js +0 -10
  271. package/dist/schemas/openapi-v3/security-requirement.js.map +0 -7
  272. package/dist/schemas/openapi-v3/security-scheme.d.ts.map +0 -1
  273. package/dist/schemas/openapi-v3/security-scheme.js.map +0 -7
  274. package/dist/schemas/openapi-v3/server-variable.d.ts.map +0 -1
  275. package/dist/schemas/openapi-v3/server-variable.js +0 -13
  276. package/dist/schemas/openapi-v3/server-variable.js.map +0 -7
  277. package/dist/schemas/openapi-v3/server.d.ts.map +0 -1
  278. package/dist/schemas/openapi-v3/server.js +0 -14
  279. package/dist/schemas/openapi-v3/server.js.map +0 -7
  280. package/dist/schemas/openapi-v3/tag.d.ts +0 -13
  281. package/dist/schemas/openapi-v3/tag.d.ts.map +0 -1
  282. package/dist/schemas/openapi-v3/tag.js +0 -14
  283. package/dist/schemas/openapi-v3/tag.js.map +0 -7
  284. package/dist/schemas/openapi-v3/xml.d.ts.map +0 -1
  285. package/dist/schemas/openapi-v3/xml.js +0 -17
  286. package/dist/schemas/openapi-v3/xml.js.map +0 -7
@@ -1,11 +1,12 @@
1
- export declare const DescriptionSchema: import("@sinclair/typebox").TObject<{
1
+ import { type Static } from '@sinclair/typebox';
2
+ export declare const DescriptionSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
2
3
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
3
4
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
4
- }>;
5
- export declare const ApiKeySchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
5
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
6
+ export declare const ApiKeySchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
6
7
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
7
8
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
- }>, import("@sinclair/typebox").TObject<{
9
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
9
10
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
10
11
  type: import("@sinclair/typebox").TLiteral<"apiKey">;
11
12
  /** REQUIRED. The name of the header, query or cookie parameter to be used. */
@@ -13,10 +14,10 @@ export declare const ApiKeySchema: import("@sinclair/typebox").TIntersect<[impor
13
14
  /** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
14
15
  in: import("@sinclair/typebox").TString;
15
16
  }>]>;
16
- export declare const HttpSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
17
+ export declare const HttpSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
17
18
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
18
19
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
- }>, import("@sinclair/typebox").TObject<{
20
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
20
21
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
21
22
  type: import("@sinclair/typebox").TLiteral<"http">;
22
23
  /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */
@@ -24,44 +25,44 @@ export declare const HttpSchema: import("@sinclair/typebox").TIntersect<[import(
24
25
  /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
25
26
  bearerFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
27
  }>]>;
27
- export declare const OAuth2: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
28
+ export declare const OAuth2: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
28
29
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
29
30
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
30
- }>, import("@sinclair/typebox").TObject<{
31
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
31
32
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
32
33
  type: import("@sinclair/typebox").TLiteral<"oauth2">;
33
34
  /** REQUIRED. An object containing configuration information for the flow types supported. */
34
- flows: import("@sinclair/typebox").TObject<{
35
- implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
35
+ flows: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
36
+ implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
36
37
  authorizationUrl: import("@sinclair/typebox").TString;
37
38
  tokenUrl: import("@sinclair/typebox").TString;
38
39
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
39
40
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
40
- }>>;
41
- password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
41
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
42
+ password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
42
43
  authorizationUrl: import("@sinclair/typebox").TString;
43
44
  tokenUrl: import("@sinclair/typebox").TString;
44
45
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
45
46
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
46
- }>>;
47
- clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
47
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
48
+ clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
48
49
  authorizationUrl: import("@sinclair/typebox").TString;
49
50
  tokenUrl: import("@sinclair/typebox").TString;
50
51
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
51
52
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
52
- }>>;
53
- authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
53
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
54
+ authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
54
55
  authorizationUrl: import("@sinclair/typebox").TString;
55
56
  tokenUrl: import("@sinclair/typebox").TString;
56
57
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
57
58
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
58
- }>>;
59
- }>;
59
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
60
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
60
61
  }>]>;
61
- export declare const OpenIdConnect: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
62
+ export declare const OpenIdConnect: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
62
63
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
63
64
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
64
- }>, import("@sinclair/typebox").TObject<{
65
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
65
66
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
66
67
  type: import("@sinclair/typebox").TLiteral<"openIdConnect">;
67
68
  /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
@@ -72,66 +73,67 @@ export declare const OpenIdConnect: import("@sinclair/typebox").TIntersect<[impo
72
73
  *
73
74
  * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.
74
75
  */
75
- export declare const SecuritySchemeObject: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
76
+ export declare const SecuritySchemeObjectSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
76
77
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
77
78
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
78
- }>, import("@sinclair/typebox").TObject<{
79
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
79
80
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
80
81
  type: import("@sinclair/typebox").TLiteral<"apiKey">;
81
82
  /** REQUIRED. The name of the header, query or cookie parameter to be used. */
82
83
  name: import("@sinclair/typebox").TString;
83
84
  /** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
84
85
  in: import("@sinclair/typebox").TString;
85
- }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
86
+ }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
86
87
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
87
88
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
88
- }>, import("@sinclair/typebox").TObject<{
89
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
89
90
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
90
91
  type: import("@sinclair/typebox").TLiteral<"http">;
91
92
  /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */
92
93
  scheme: import("@sinclair/typebox").TString;
93
94
  /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
94
95
  bearerFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
95
- }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
96
+ }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
96
97
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
97
98
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
98
- }>, import("@sinclair/typebox").TObject<{
99
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
99
100
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
100
101
  type: import("@sinclair/typebox").TLiteral<"oauth2">;
101
102
  /** REQUIRED. An object containing configuration information for the flow types supported. */
102
- flows: import("@sinclair/typebox").TObject<{
103
- implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
103
+ flows: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
104
+ implicit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
104
105
  authorizationUrl: import("@sinclair/typebox").TString;
105
106
  tokenUrl: import("@sinclair/typebox").TString;
106
107
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
107
108
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
108
- }>>;
109
- password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
109
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
110
+ password: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
110
111
  authorizationUrl: import("@sinclair/typebox").TString;
111
112
  tokenUrl: import("@sinclair/typebox").TString;
112
113
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
113
114
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
114
- }>>;
115
- clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
115
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
116
+ clientCredentials: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
116
117
  authorizationUrl: import("@sinclair/typebox").TString;
117
118
  tokenUrl: import("@sinclair/typebox").TString;
118
119
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
119
120
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
120
- }>>;
121
- authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
121
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
122
+ authorizationCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
122
123
  authorizationUrl: import("@sinclair/typebox").TString;
123
124
  tokenUrl: import("@sinclair/typebox").TString;
124
125
  refreshUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
125
126
  scopes: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
126
- }>>;
127
- }>;
128
- }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
127
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
128
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
129
+ }>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
129
130
  /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
130
131
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
131
- }>, import("@sinclair/typebox").TObject<{
132
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TObject<{
132
133
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
133
134
  type: import("@sinclair/typebox").TLiteral<"openIdConnect">;
134
135
  /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
135
136
  openIdConnectUrl: import("@sinclair/typebox").TString;
136
137
  }>]>]>;
138
+ export type SecuritySchemeObject = Static<typeof SecuritySchemeObjectSchema>;
137
139
  //# sourceMappingURL=security-scheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-scheme.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/security-scheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAKrD,eAAO,MAAM,iBAAiB;IAE1B,qGAAqG;;kJAIxG,CAAA;AAED,eAAO,MAAM,YAAY;IANrB,qGAAqG;;;IASrG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;IAGjG,CAAA;AAED,eAAO,MAAM,UAAU;IAlBnB,qGAAqG;;;IAqBrG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;IAG1M,CAAA;AAED,eAAO,MAAM,MAAM;IA9Bf,qGAAqG;;;IAiCrG,4HAA4H;;IAE5H,6FAA6F;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGhG,CAAA;AAED,eAAO,MAAM,aAAa;IAxCtB,qGAAqG;;;IA2CrG,4HAA4H;;IAE5H,+FAA+F;;IAGlG,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;IAvDnC,qGAAqG;;;IASrG,4HAA4H;;IAE5H,8EAA8E;;IAE9E,8FAA8F;;;IAb9F,qGAAqG;;;IAqBrG,4HAA4H;;IAE5H,gQAAgQ;;IAEhQ,uMAAuM;;;IAzBvM,qGAAqG;;;IAiCrG,4HAA4H;;IAE5H,6FAA6F;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAnC7F,qGAAqG;;;IA2CrG,4HAA4H;;IAE5H,+FAA+F;;MAUI,CAAA;AAEvG,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
@@ -1,10 +1,15 @@
1
1
  import { Type } from "@sinclair/typebox";
2
- import { OAuthFlowsObject } from "./oauthflows.js";
3
- const DescriptionSchema = Type.Object({
4
- /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
5
- description: Type.Optional(Type.String())
6
- });
7
- const ApiKeySchema = Type.Intersect([
2
+ import { OAuthFlowsObjectSchema } from "./oauthflows.js";
3
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
+ import { compose } from "../../../schemas/v3.1/compose.js";
5
+ const DescriptionSchema = compose(
6
+ Type.Object({
7
+ /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */
8
+ description: Type.Optional(Type.String())
9
+ }),
10
+ ExtensionsSchema
11
+ );
12
+ const ApiKeySchema = compose(
8
13
  DescriptionSchema,
9
14
  Type.Object({
10
15
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
@@ -14,8 +19,8 @@ const ApiKeySchema = Type.Intersect([
14
19
  /** REQUIRED. The location of the API key. Valid values are "query", "header", or "cookie". */
15
20
  in: Type.String()
16
21
  })
17
- ]);
18
- const HttpSchema = Type.Intersect([
22
+ );
23
+ const HttpSchema = compose(
19
24
  DescriptionSchema,
20
25
  Type.Object({
21
26
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
@@ -25,17 +30,17 @@ const HttpSchema = Type.Intersect([
25
30
  /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */
26
31
  bearerFormat: Type.Optional(Type.String())
27
32
  })
28
- ]);
29
- const OAuth2 = Type.Intersect([
33
+ );
34
+ const OAuth2 = compose(
30
35
  DescriptionSchema,
31
36
  Type.Object({
32
37
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
33
38
  type: Type.Literal("oauth2"),
34
39
  /** REQUIRED. An object containing configuration information for the flow types supported. */
35
- flows: OAuthFlowsObject
40
+ flows: OAuthFlowsObjectSchema
36
41
  })
37
- ]);
38
- const OpenIdConnect = Type.Intersect([
42
+ );
43
+ const OpenIdConnect = compose(
39
44
  DescriptionSchema,
40
45
  Type.Object({
41
46
  /** REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "mutualTLS", "oauth2", "openIdConnect". */
@@ -43,14 +48,14 @@ const OpenIdConnect = Type.Intersect([
43
48
  /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */
44
49
  openIdConnectUrl: Type.String()
45
50
  })
46
- ]);
47
- const SecuritySchemeObject = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect]);
51
+ );
52
+ const SecuritySchemeObjectSchema = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect]);
48
53
  export {
49
54
  ApiKeySchema,
50
55
  DescriptionSchema,
51
56
  HttpSchema,
52
57
  OAuth2,
53
58
  OpenIdConnect,
54
- SecuritySchemeObject
59
+ SecuritySchemeObjectSchema
55
60
  };
56
61
  //# sourceMappingURL=security-scheme.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/security-scheme.ts"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { OAuthFlowsObjectSchema } from './oauthflows'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\nexport const DescriptionSchema = compose(\n Type.Object({\n /** A description for security scheme. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport const ApiKeySchema = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('apiKey'),\n /** REQUIRED. The name of the header, query or cookie parameter to be used. */\n name: Type.String(),\n /** REQUIRED. The location of the API key. Valid values are \"query\", \"header\", or \"cookie\". */\n in: Type.String(),\n }),\n)\n\nexport const HttpSchema = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('http'),\n /** REQUIRED. The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. */\n scheme: Type.String(),\n /** A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. */\n bearerFormat: Type.Optional(Type.String()),\n }),\n)\n\nexport const OAuth2 = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('oauth2'),\n /** REQUIRED. An object containing configuration information for the flow types supported. */\n flows: OAuthFlowsObjectSchema,\n }),\n)\n\nexport const OpenIdConnect = compose(\n DescriptionSchema,\n Type.Object({\n /** REQUIRED. The type of the security scheme. Valid values are \"apiKey\", \"http\", \"mutualTLS\", \"oauth2\", \"openIdConnect\". */\n type: Type.Literal('openIdConnect'),\n /** REQUIRED. Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. */\n openIdConnectUrl: Type.String(),\n }),\n)\n\n/**\n * Defines a security scheme that can be used by the operations.\n *\n * Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), mutual TLS (use of a client certificate), OAuth2's common flows (implicit, password, client credentials and authorization code) as defined in RFC6749, and [[OpenID-Connect-Core]]. Please note that as of 2020, the implicit flow is about to be deprecated by OAuth 2.0 Security Best Current Practice. Recommended for most use cases is Authorization Code Grant flow with PKCE.\n */\nexport const SecuritySchemeObjectSchema = Type.Union([ApiKeySchema, HttpSchema, OAuth2, OpenIdConnect])\n\nexport type SecuritySchemeObject = Static<typeof SecuritySchemeObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAEjB,MAAM,oBAAoB;AAAA,EAC/B,KAAK,OAAO;AAAA;AAAA,IAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;AAEO,MAAM,eAAe;AAAA,EAC1B;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,OAAO;AAAA,EAClB,CAAC;AACH;AAEO,MAAM,aAAa;AAAA,EACxB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,MAAM;AAAA;AAAA,IAEzB,QAAQ,KAAK,OAAO;AAAA;AAAA,IAEpB,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC3C,CAAC;AACH;AAEO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,QAAQ;AAAA;AAAA,IAE3B,OAAO;AAAA,EACT,CAAC;AACH;AAEO,MAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,QAAQ,eAAe;AAAA;AAAA,IAElC,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AACH;AAOO,MAAM,6BAA6B,KAAK,MAAM,CAAC,cAAc,YAAY,QAAQ,aAAa,CAAC;",
6
+ "names": []
7
+ }
@@ -1,10 +1,12 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /** An object representing a Server Variable for server URL template substitution. */
2
- export declare const ServerVariableObject: import("@sinclair/typebox").TObject<{
3
+ export declare const ServerVariableObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
3
4
  /** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */
4
5
  enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
5
6
  /** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */
6
7
  default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
8
  /** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */
8
9
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
- }>;
10
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
11
+ export type ServerVariableObject = Static<typeof ServerVariableObjectSchema>;
10
12
  //# sourceMappingURL=server-variable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-variable.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server-variable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,qFAAqF;AACrF,eAAO,MAAM,0BAA0B;IAEnC,kIAAkI;;IAElI,+VAA+V;;IAE/V,mHAAmH;;kJAItH,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
+ import { Type } from "@sinclair/typebox";
4
+ const ServerVariableObjectSchema = compose(
5
+ Type.Object({
6
+ /** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */
7
+ enum: Type.Optional(Type.Array(Type.String())),
8
+ /** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */
9
+ default: Type.Optional(Type.String()),
10
+ /** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */
11
+ description: Type.Optional(Type.String())
12
+ }),
13
+ ExtensionsSchema
14
+ );
15
+ export {
16
+ ServerVariableObjectSchema
17
+ };
18
+ //# sourceMappingURL=server-variable.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/server-variable.ts"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/** An object representing a Server Variable for server URL template substitution. */\nexport const ServerVariableObjectSchema = compose(\n Type.Object({\n /** An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. */\n enum: Type.Optional(Type.Array(Type.String())),\n /** REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. If the enum is defined, the value MUST exist in the enum's values. Note that this behavior is different from the Schema Object's default keyword, which documents the receiver's behavior rather than inserting the value into the data. */\n default: Type.Optional(Type.String()),\n /** An optional description for the server variable. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type ServerVariableObject = Static<typeof ServerVariableObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAG3B,MAAM,6BAA6B;AAAA,EACxC,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA;AAAA,IAE7C,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;",
6
+ "names": []
7
+ }
@@ -1,14 +1,16 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /** An object representing a Server. */
2
- export declare const ServerObject: import("@sinclair/typebox").TObject<{
3
+ export declare const ServerObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
3
4
  /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
4
5
  url: import("@sinclair/typebox").TString;
5
6
  /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
6
7
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
8
  /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
8
- variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
9
+ variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
9
10
  enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
10
11
  default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
12
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
12
- }>>>;
13
- }>;
13
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>>;
14
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
15
+ export type ServerObject = Static<typeof ServerObjectSchema>;
14
16
  //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAKrD,uCAAuC;AACvC,eAAO,MAAM,kBAAkB;IAE3B,4SAA4S;;IAE5S,gIAAgI;;IAEhI,oHAAoH;;;;;;kJAIvH,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { ServerVariableObjectSchema } from "./server-variable.js";
3
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
+ import { compose } from "../../../schemas/v3.1/compose.js";
5
+ const ServerObjectSchema = compose(
6
+ Type.Object({
7
+ /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */
8
+ url: Type.String(),
9
+ /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */
10
+ description: Type.Optional(Type.String()),
11
+ /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */
12
+ variables: Type.Optional(Type.Record(Type.String(), ServerVariableObjectSchema))
13
+ }),
14
+ ExtensionsSchema
15
+ );
16
+ export {
17
+ ServerObjectSchema
18
+ };
19
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/server.ts"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ServerVariableObjectSchema } from './server-variable'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\n/** An object representing a Server. */\nexport const ServerObjectSchema = compose(\n Type.Object({\n /** REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the document containing the Server Object is being served. Variable substitutions will be made when a variable is named in {braces}. */\n url: Type.String(),\n /** An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A map between a variable name and its value. The value is used for substitution in the server's URL template. */\n variables: Type.Optional(Type.Record(Type.String(), ServerVariableObjectSchema)),\n }),\n ExtensionsSchema,\n)\n\nexport type ServerObject = Static<typeof ServerObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,kCAAkC;AAC3C,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAGjB,MAAM,qBAAqB;AAAA,EAChC,KAAK,OAAO;AAAA;AAAA,IAEV,KAAK,KAAK,OAAO;AAAA;AAAA,IAEjB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,WAAW,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,0BAA0B,CAAC;AAAA,EACjF,CAAC;AAAA,EACD;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ import { type Static } from '@sinclair/typebox';
2
+ /** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */
3
+ export declare const TagObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
4
+ /** REQUIRED. The name of the tag. */
5
+ name: import("@sinclair/typebox").TString;
6
+ /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
7
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
8
+ /** Additional external documentation for this tag. */
9
+ externalDocs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
10
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
+ url: import("@sinclair/typebox").TString;
12
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
13
+ }>, import("@sinclair/typebox").TObject<{
14
+ 'x-displayName': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
16
+ export type TagObject = Static<typeof TagObjectSchema>;
17
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAWrD,sKAAsK;AACtK,eAAO,MAAM,eAAe;IAExB,qCAAqC;;IAErC,6FAA6F;;IAE7F,sDAAsD;;;;;;;kJAKzD,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { ExternalDocumentationObjectSchema } from "./external-documentation.js";
3
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
+ import { compose } from "../../../schemas/v3.1/compose.js";
5
+ const TagExtensionsSchema = Type.Partial(
6
+ Type.Object({
7
+ "x-displayName": Type.String()
8
+ })
9
+ );
10
+ const TagObjectSchema = compose(
11
+ Type.Object({
12
+ /** REQUIRED. The name of the tag. */
13
+ name: Type.String(),
14
+ /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */
15
+ description: Type.Optional(Type.String()),
16
+ /** Additional external documentation for this tag. */
17
+ externalDocs: Type.Optional(ExternalDocumentationObjectSchema)
18
+ }),
19
+ TagExtensionsSchema,
20
+ ExtensionsSchema
21
+ );
22
+ export {
23
+ TagObjectSchema
24
+ };
25
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/tag.ts"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ExternalDocumentationObjectSchema } from './external-documentation'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\nconst TagExtensionsSchema = Type.Partial(\n Type.Object({\n 'x-displayName': Type.String(),\n }),\n)\n\n/** Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. */\nexport const TagObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the tag. */\n name: Type.String(),\n /** A description for the tag. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Additional external documentation for this tag. */\n externalDocs: Type.Optional(ExternalDocumentationObjectSchema),\n }),\n TagExtensionsSchema,\n ExtensionsSchema,\n)\n\nexport type TagObject = Static<typeof TagObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,yCAAyC;AAClD,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAExB,MAAM,sBAAsB,KAAK;AAAA,EAC/B,KAAK,OAAO;AAAA,IACV,iBAAiB,KAAK,OAAO;AAAA,EAC/B,CAAC;AACH;AAGO,MAAM,kBAAkB;AAAA,EAC7B,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,cAAc,KAAK,SAAS,iCAAiC;AAAA,EAC/D,CAAC;AAAA,EACD;AAAA,EACA;AACF;",
6
+ "names": []
7
+ }
@@ -1,9 +1,10 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /**
2
3
  * A metadata object that allows for more fine-tuned XML model definitions.
3
4
  *
4
5
  * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used to add that information. See examples for expected behavior.
5
6
  */
6
- export declare const XMLObject: import("@sinclair/typebox").TObject<{
7
+ export declare const XMLObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
7
8
  /** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
8
9
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
10
  /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
@@ -14,5 +15,6 @@ export declare const XMLObject: import("@sinclair/typebox").TObject<{
14
15
  attribute: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
15
16
  /** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). */
16
17
  wrapped: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17
- }>;
18
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
19
+ export type XMLObject = Static<typeof XMLObjectSchema>;
18
20
  //# sourceMappingURL=xml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/xml.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAExB,wWAAwW;;IAExW,4FAA4F;;IAE5F,0CAA0C;;IAE1C,yHAAyH;;IAEzH,2RAA2R;;kJAI9R,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
+ import { Type } from "@sinclair/typebox";
4
+ const XMLObjectSchema = compose(
5
+ Type.Object({
6
+ /** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being "array" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */
7
+ name: Type.Optional(Type.String()),
8
+ /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */
9
+ namespace: Type.Optional(Type.String()),
10
+ /** The prefix to be used for the name. */
11
+ prefix: Type.Optional(Type.String()),
12
+ /** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */
13
+ attribute: Type.Optional(Type.Boolean()),
14
+ /** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). */
15
+ wrapped: Type.Optional(Type.Boolean())
16
+ }),
17
+ ExtensionsSchema
18
+ );
19
+ export {
20
+ XMLObjectSchema
21
+ };
22
+ //# sourceMappingURL=xml.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/xml.ts"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { Type, type Static } from '@sinclair/typebox'\n\n/**\n * A metadata object that allows for more fine-tuned XML model definitions.\n *\n * When using arrays, XML element names are not inferred (for singular/plural forms) and the name field SHOULD be used to add that information. See examples for expected behavior.\n */\nexport const XMLObjectSchema = compose(\n Type.Object({\n /** Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being \"array\" (outside the items), it will affect the wrapping element if and only if wrapped is true. If wrapped is false, it will be ignored. */\n name: Type.Optional(Type.String()),\n /** The URI of the namespace definition. Value MUST be in the form of a non-relative URI. */\n namespace: Type.Optional(Type.String()),\n /** The prefix to be used for the name. */\n prefix: Type.Optional(Type.String()),\n /** Declares whether the property definition translates to an attribute instead of an element. Default value is false. */\n attribute: Type.Optional(Type.Boolean()),\n /** MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being \"array\" (outside the items). */\n wrapped: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport type XMLObject = Static<typeof XMLObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAO3B,MAAM,kBAAkB;AAAA,EAC7B,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEjC,WAAW,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEtC,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEnC,WAAW,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAEvC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EACvC,CAAC;AAAA,EACD;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,3 @@
1
+ import type { ReferenceObject } from '../../schemas/v3.1/strict/reference.js';
2
+ export declare const isReference: (value: unknown) => value is ReferenceObject;
3
+ //# sourceMappingURL=type-guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-guard.d.ts","sourceRoot":"","sources":["../../../src/schemas/v3.1/type-guard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEtE,eAAO,MAAM,WAAW,UAAW,OAAO,KAAG,KAAK,IAAI,eAErD,CAAA"}
@@ -0,0 +1,7 @@
1
+ const isReference = (value) => {
2
+ return typeof value === "object" && value !== null && "$ref" in value;
3
+ };
4
+ export {
5
+ isReference
6
+ };
7
+ //# sourceMappingURL=type-guard.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/schemas/v3.1/type-guard.ts"],
4
+ "sourcesContent": ["import type { ReferenceObject } from '@/schemas/v3.1/strict/reference'\n\nexport const isReference = (value: unknown): value is ReferenceObject => {\n return typeof value === 'object' && value !== null && '$ref' in value\n}\n"],
5
+ "mappings": "AAEO,MAAM,cAAc,CAAC,UAA6C;AACvE,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU;AAClE;",
6
+ "names": []
7
+ }