@scalar/workspace-store 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/client.d.ts +25035 -6283
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +5 -2
  5. package/dist/client.js.map +2 -2
  6. package/dist/helpers/general.d.ts +1 -0
  7. package/dist/helpers/general.d.ts.map +1 -1
  8. package/dist/helpers/general.js +5 -1
  9. package/dist/helpers/general.js.map +2 -2
  10. package/dist/navigation/helpers/traverse-document.d.ts +2 -2
  11. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  12. package/dist/navigation/helpers/traverse-document.js.map +2 -2
  13. package/dist/navigation/helpers/traverse-paths.d.ts +2 -2
  14. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  15. package/dist/navigation/helpers/traverse-paths.js +4 -0
  16. package/dist/navigation/helpers/traverse-paths.js.map +2 -2
  17. package/dist/navigation/helpers/traverse-schemas.d.ts +2 -2
  18. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  19. package/dist/navigation/helpers/traverse-schemas.js +1 -1
  20. package/dist/navigation/helpers/traverse-schemas.js.map +2 -2
  21. package/dist/navigation/helpers/traverse-tags.d.ts +2 -2
  22. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  23. package/dist/navigation/helpers/traverse-tags.js +2 -2
  24. package/dist/navigation/helpers/traverse-tags.js.map +2 -2
  25. package/dist/navigation/helpers/traverse-webhooks.d.ts +2 -2
  26. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  27. package/dist/navigation/helpers/traverse-webhooks.js +4 -0
  28. package/dist/navigation/helpers/traverse-webhooks.js.map +2 -2
  29. package/dist/navigation/types.d.ts +11 -10
  30. package/dist/navigation/types.d.ts.map +1 -1
  31. package/dist/schemas/typebox-coerce.d.ts +26 -0
  32. package/dist/schemas/typebox-coerce.d.ts.map +1 -0
  33. package/dist/schemas/typebox-coerce.js +8 -0
  34. package/dist/schemas/typebox-coerce.js.map +7 -0
  35. package/dist/schemas/v3.1/compose.d.ts +6 -0
  36. package/dist/schemas/v3.1/compose.d.ts.map +1 -0
  37. package/dist/schemas/v3.1/compose.js +8 -0
  38. package/dist/schemas/v3.1/compose.js.map +7 -0
  39. package/dist/schemas/v3.1/strict/callback.d.ts +3 -0
  40. package/dist/schemas/v3.1/strict/callback.d.ts.map +1 -0
  41. package/dist/schemas/v3.1/strict/callback.js +15 -0
  42. package/dist/schemas/v3.1/strict/callback.js.map +7 -0
  43. package/dist/schemas/v3.1/strict/components.d.ts +7824 -0
  44. package/dist/schemas/v3.1/strict/components.d.ts.map +1 -0
  45. package/dist/schemas/v3.1/strict/components.js +46 -0
  46. package/dist/schemas/v3.1/strict/components.js.map +7 -0
  47. package/dist/schemas/{openapi-v3 → v3.1/strict}/contact.d.ts +4 -2
  48. package/dist/schemas/v3.1/strict/contact.d.ts.map +1 -0
  49. package/dist/schemas/v3.1/strict/contact.js +18 -0
  50. package/dist/schemas/v3.1/strict/contact.js.map +7 -0
  51. package/dist/schemas/{openapi-v3 → v3.1/strict}/discriminator.d.ts +4 -2
  52. package/dist/schemas/v3.1/strict/discriminator.d.ts.map +1 -0
  53. package/dist/schemas/v3.1/strict/discriminator.js +16 -0
  54. package/dist/schemas/v3.1/strict/discriminator.js.map +7 -0
  55. package/dist/schemas/{openapi-v3 → v3.1/strict}/encoding.d.ts +7 -16
  56. package/dist/schemas/v3.1/strict/encoding.d.ts.map +1 -0
  57. package/dist/schemas/v3.1/strict/encoding.js +17 -0
  58. package/dist/schemas/v3.1/strict/encoding.js.map +7 -0
  59. package/dist/schemas/{openapi-v3 → v3.1/strict}/example.d.ts +4 -2
  60. package/dist/schemas/v3.1/strict/example.d.ts.map +1 -0
  61. package/dist/schemas/v3.1/strict/example.js +20 -0
  62. package/dist/schemas/v3.1/strict/example.js.map +7 -0
  63. package/dist/schemas/v3.1/strict/extensions.d.ts +4 -0
  64. package/dist/schemas/v3.1/strict/extensions.d.ts.map +1 -0
  65. package/dist/schemas/v3.1/strict/extensions.js +6 -0
  66. package/dist/schemas/v3.1/strict/extensions.js.map +7 -0
  67. package/dist/schemas/v3.1/strict/external-documentation.d.ts +10 -0
  68. package/dist/schemas/v3.1/strict/external-documentation.d.ts.map +1 -0
  69. package/dist/schemas/v3.1/strict/external-documentation.js +16 -0
  70. package/dist/schemas/v3.1/strict/external-documentation.js.map +7 -0
  71. package/dist/schemas/v3.1/strict/header.d.ts +133 -0
  72. package/dist/schemas/v3.1/strict/header.d.ts.map +1 -0
  73. package/dist/schemas/v3.1/strict/header.js +48 -0
  74. package/dist/schemas/v3.1/strict/header.js.map +7 -0
  75. package/dist/schemas/{openapi-v3 → v3.1/strict}/info.d.ts +8 -6
  76. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -0
  77. package/dist/schemas/v3.1/strict/info.js +28 -0
  78. package/dist/schemas/v3.1/strict/info.js.map +7 -0
  79. package/dist/schemas/{openapi-v3 → v3.1/strict}/license.d.ts +4 -2
  80. package/dist/schemas/v3.1/strict/license.d.ts.map +1 -0
  81. package/dist/schemas/v3.1/strict/license.js +18 -0
  82. package/dist/schemas/v3.1/strict/license.js.map +7 -0
  83. package/dist/schemas/{openapi-v3 → v3.1/strict}/link.d.ts +8 -6
  84. package/dist/schemas/v3.1/strict/link.d.ts.map +1 -0
  85. package/dist/schemas/v3.1/strict/link.js +25 -0
  86. package/dist/schemas/v3.1/strict/link.js.map +7 -0
  87. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +329 -0
  88. package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -0
  89. package/dist/schemas/v3.1/strict/media-header-encoding.js +19 -0
  90. package/dist/schemas/v3.1/strict/media-header-encoding.js.map +7 -0
  91. package/dist/schemas/{openapi-v3 → v3.1/strict}/media-type.d.ts +20 -34
  92. package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -0
  93. package/dist/schemas/v3.1/strict/media-type.js +27 -0
  94. package/dist/schemas/v3.1/strict/media-type.js.map +7 -0
  95. package/dist/schemas/{openapi-v3 → v3.1/strict}/oauth-flow.d.ts +4 -2
  96. package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -0
  97. package/dist/schemas/v3.1/strict/oauth-flow.js +20 -0
  98. package/dist/schemas/v3.1/strict/oauth-flow.js.map +7 -0
  99. package/dist/schemas/{openapi-v3 → v3.1/strict}/oauthflows.d.ts +12 -10
  100. package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -0
  101. package/dist/schemas/v3.1/strict/oauthflows.js +21 -0
  102. package/dist/schemas/v3.1/strict/oauthflows.js.map +7 -0
  103. package/dist/schemas/v3.1/strict/openapi-document.d.ts +49 -0
  104. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -0
  105. package/dist/schemas/v3.1/strict/openapi-document.js +55 -0
  106. package/dist/schemas/v3.1/strict/openapi-document.js.map +7 -0
  107. package/dist/schemas/v3.1/strict/operation.d.ts +572 -0
  108. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -0
  109. package/dist/schemas/v3.1/strict/operation.js +46 -0
  110. package/dist/schemas/v3.1/strict/operation.js.map +7 -0
  111. package/dist/schemas/v3.1/strict/parameter.d.ts +396 -0
  112. package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -0
  113. package/dist/schemas/v3.1/strict/parameter.js +56 -0
  114. package/dist/schemas/v3.1/strict/parameter.js.map +7 -0
  115. package/dist/schemas/v3.1/strict/path-item.d.ts +205 -0
  116. package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -0
  117. package/dist/schemas/v3.1/strict/path-item.js +41 -0
  118. package/dist/schemas/v3.1/strict/path-item.js.map +7 -0
  119. package/dist/schemas/v3.1/strict/path-operations.d.ts +7816 -0
  120. package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -0
  121. package/dist/schemas/v3.1/strict/path-operations.js +19 -0
  122. package/dist/schemas/v3.1/strict/path-operations.js.map +7 -0
  123. package/dist/schemas/v3.1/strict/paths.d.ts +3536 -0
  124. package/dist/schemas/{openapi-v3/openapi-document.d.ts.map → v3.1/strict/paths.d.ts.map} +1 -1
  125. package/dist/schemas/v3.1/strict/paths.js +16 -0
  126. package/dist/schemas/v3.1/strict/paths.js.map +7 -0
  127. package/dist/schemas/{openapi-v3 → v3.1/strict}/reference.d.ts +15 -6
  128. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -0
  129. package/dist/schemas/v3.1/strict/reference.js +26 -0
  130. package/dist/schemas/v3.1/strict/reference.js.map +7 -0
  131. package/dist/schemas/v3.1/strict/request-body.d.ts +112 -0
  132. package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -0
  133. package/dist/schemas/v3.1/strict/request-body.js +19 -0
  134. package/dist/schemas/v3.1/strict/request-body.js.map +7 -0
  135. package/dist/schemas/v3.1/strict/response.d.ts +242 -0
  136. package/dist/schemas/v3.1/strict/response.d.ts.map +1 -0
  137. package/dist/schemas/v3.1/strict/response.js +23 -0
  138. package/dist/schemas/v3.1/strict/response.js.map +7 -0
  139. package/dist/schemas/v3.1/strict/responses.d.ts +254 -0
  140. package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -0
  141. package/dist/schemas/v3.1/strict/responses.js +13 -0
  142. package/dist/schemas/v3.1/strict/responses.js.map +7 -0
  143. package/dist/schemas/{openapi-v3 → v3.1/strict}/schema.d.ts +12 -8
  144. package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -0
  145. package/dist/schemas/v3.1/strict/schema.js +34 -0
  146. package/dist/schemas/v3.1/strict/schema.js.map +7 -0
  147. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-requirement.d.ts +3 -1
  148. package/dist/schemas/v3.1/strict/security-requirement.d.ts.map +1 -0
  149. package/dist/schemas/v3.1/strict/security-requirement.js +15 -0
  150. package/dist/schemas/v3.1/strict/security-requirement.js.map +7 -0
  151. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.d.ts +40 -38
  152. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -0
  153. package/dist/schemas/{openapi-v3 → v3.1/strict}/security-scheme.js +21 -16
  154. package/dist/schemas/v3.1/strict/security-scheme.js.map +7 -0
  155. package/dist/schemas/{openapi-v3 → v3.1/strict}/server-variable.d.ts +4 -2
  156. package/dist/schemas/v3.1/strict/server-variable.d.ts.map +1 -0
  157. package/dist/schemas/v3.1/strict/server-variable.js +18 -0
  158. package/dist/schemas/v3.1/strict/server-variable.js.map +7 -0
  159. package/dist/schemas/{openapi-v3 → v3.1/strict}/server.d.ts +6 -4
  160. package/dist/schemas/v3.1/strict/server.d.ts.map +1 -0
  161. package/dist/schemas/v3.1/strict/server.js +19 -0
  162. package/dist/schemas/v3.1/strict/server.js.map +7 -0
  163. package/dist/schemas/v3.1/strict/tag.d.ts +17 -0
  164. package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -0
  165. package/dist/schemas/v3.1/strict/tag.js +25 -0
  166. package/dist/schemas/v3.1/strict/tag.js.map +7 -0
  167. package/dist/schemas/{openapi-v3 → v3.1/strict}/xml.d.ts +4 -2
  168. package/dist/schemas/v3.1/strict/xml.d.ts.map +1 -0
  169. package/dist/schemas/v3.1/strict/xml.js +22 -0
  170. package/dist/schemas/v3.1/strict/xml.js.map +7 -0
  171. package/dist/schemas/v3.1/type-guard.d.ts +3 -0
  172. package/dist/schemas/v3.1/type-guard.d.ts.map +1 -0
  173. package/dist/schemas/v3.1/type-guard.js +7 -0
  174. package/dist/schemas/v3.1/type-guard.js.map +7 -0
  175. package/dist/schemas/workspace.d.ts +49 -14750
  176. package/dist/schemas/workspace.d.ts.map +1 -1
  177. package/dist/schemas/workspace.js +5 -4
  178. package/dist/schemas/workspace.js.map +2 -2
  179. package/dist/schemas.d.ts.map +1 -1
  180. package/dist/schemas.js.map +2 -2
  181. package/dist/server.d.ts +2579 -5
  182. package/dist/server.d.ts.map +1 -1
  183. package/dist/server.js +14 -6
  184. package/dist/server.js.map +2 -2
  185. package/package.json +5 -4
  186. package/dist/schemas/openapi-v3/callback.d.ts +0 -1156
  187. package/dist/schemas/openapi-v3/callback.d.ts.map +0 -1
  188. package/dist/schemas/openapi-v3/callback.js +0 -11
  189. package/dist/schemas/openapi-v3/callback.js.map +0 -7
  190. package/dist/schemas/openapi-v3/components.d.ts +0 -2597
  191. package/dist/schemas/openapi-v3/components.d.ts.map +0 -1
  192. package/dist/schemas/openapi-v3/components.js +0 -38
  193. package/dist/schemas/openapi-v3/components.js.map +0 -7
  194. package/dist/schemas/openapi-v3/contact.d.ts.map +0 -1
  195. package/dist/schemas/openapi-v3/contact.js +0 -13
  196. package/dist/schemas/openapi-v3/contact.js.map +0 -7
  197. package/dist/schemas/openapi-v3/discriminator.d.ts.map +0 -1
  198. package/dist/schemas/openapi-v3/discriminator.js +0 -11
  199. package/dist/schemas/openapi-v3/discriminator.js.map +0 -7
  200. package/dist/schemas/openapi-v3/encoding.d.ts.map +0 -1
  201. package/dist/schemas/openapi-v3/encoding.js +0 -13
  202. package/dist/schemas/openapi-v3/encoding.js.map +0 -7
  203. package/dist/schemas/openapi-v3/example.d.ts.map +0 -1
  204. package/dist/schemas/openapi-v3/example.js +0 -15
  205. package/dist/schemas/openapi-v3/example.js.map +0 -7
  206. package/dist/schemas/openapi-v3/external-documentation.d.ts +0 -8
  207. package/dist/schemas/openapi-v3/external-documentation.d.ts.map +0 -1
  208. package/dist/schemas/openapi-v3/external-documentation.js +0 -11
  209. package/dist/schemas/openapi-v3/external-documentation.js.map +0 -7
  210. package/dist/schemas/openapi-v3/header.d.ts +0 -18
  211. package/dist/schemas/openapi-v3/header.d.ts.map +0 -1
  212. package/dist/schemas/openapi-v3/header.js +0 -13
  213. package/dist/schemas/openapi-v3/header.js.map +0 -7
  214. package/dist/schemas/openapi-v3/info.d.ts.map +0 -1
  215. package/dist/schemas/openapi-v3/info.js +0 -23
  216. package/dist/schemas/openapi-v3/info.js.map +0 -7
  217. package/dist/schemas/openapi-v3/license.d.ts.map +0 -1
  218. package/dist/schemas/openapi-v3/license.js +0 -13
  219. package/dist/schemas/openapi-v3/license.js.map +0 -7
  220. package/dist/schemas/openapi-v3/link.d.ts.map +0 -1
  221. package/dist/schemas/openapi-v3/link.js +0 -20
  222. package/dist/schemas/openapi-v3/link.js.map +0 -7
  223. package/dist/schemas/openapi-v3/media-type.d.ts.map +0 -1
  224. package/dist/schemas/openapi-v3/media-type.js +0 -19
  225. package/dist/schemas/openapi-v3/media-type.js.map +0 -7
  226. package/dist/schemas/openapi-v3/oauth-flow.d.ts.map +0 -1
  227. package/dist/schemas/openapi-v3/oauth-flow.js +0 -15
  228. package/dist/schemas/openapi-v3/oauth-flow.js.map +0 -7
  229. package/dist/schemas/openapi-v3/oauthflows.d.ts.map +0 -1
  230. package/dist/schemas/openapi-v3/oauthflows.js +0 -16
  231. package/dist/schemas/openapi-v3/oauthflows.js.map +0 -7
  232. package/dist/schemas/openapi-v3/openapi-document.d.ts +0 -4941
  233. package/dist/schemas/openapi-v3/openapi-document.js +0 -35
  234. package/dist/schemas/openapi-v3/openapi-document.js.map +0 -7
  235. package/dist/schemas/openapi-v3/operation-without-callback.d.ts +0 -200
  236. package/dist/schemas/openapi-v3/operation-without-callback.d.ts.map +0 -1
  237. package/dist/schemas/openapi-v3/operation-without-callback.js +0 -39
  238. package/dist/schemas/openapi-v3/operation-without-callback.js.map +0 -7
  239. package/dist/schemas/openapi-v3/parameter.d.ts +0 -25
  240. package/dist/schemas/openapi-v3/parameter.d.ts.map +0 -1
  241. package/dist/schemas/openapi-v3/parameter.js +0 -22
  242. package/dist/schemas/openapi-v3/parameter.js.map +0 -7
  243. package/dist/schemas/openapi-v3/path-item.d.ts +0 -1167
  244. package/dist/schemas/openapi-v3/path-item.d.ts.map +0 -1
  245. package/dist/schemas/openapi-v3/path-item.js +0 -37
  246. package/dist/schemas/openapi-v3/path-item.js.map +0 -7
  247. package/dist/schemas/openapi-v3/paths.d.ts +0 -1154
  248. package/dist/schemas/openapi-v3/paths.d.ts.map +0 -1
  249. package/dist/schemas/openapi-v3/paths.js +0 -11
  250. package/dist/schemas/openapi-v3/paths.js.map +0 -7
  251. package/dist/schemas/openapi-v3/reference.d.ts.map +0 -1
  252. package/dist/schemas/openapi-v3/reference.js +0 -17
  253. package/dist/schemas/openapi-v3/reference.js.map +0 -7
  254. package/dist/schemas/openapi-v3/request-body.d.ts +0 -56
  255. package/dist/schemas/openapi-v3/request-body.d.ts.map +0 -1
  256. package/dist/schemas/openapi-v3/request-body.js +0 -14
  257. package/dist/schemas/openapi-v3/request-body.js.map +0 -7
  258. package/dist/schemas/openapi-v3/response.d.ts +0 -88
  259. package/dist/schemas/openapi-v3/response.d.ts.map +0 -1
  260. package/dist/schemas/openapi-v3/response.js +0 -19
  261. package/dist/schemas/openapi-v3/response.js.map +0 -7
  262. package/dist/schemas/openapi-v3/responses.d.ts +0 -99
  263. package/dist/schemas/openapi-v3/responses.d.ts.map +0 -1
  264. package/dist/schemas/openapi-v3/responses.js +0 -8
  265. package/dist/schemas/openapi-v3/responses.js.map +0 -7
  266. package/dist/schemas/openapi-v3/schema.d.ts.map +0 -1
  267. package/dist/schemas/openapi-v3/schema.js +0 -22
  268. package/dist/schemas/openapi-v3/schema.js.map +0 -7
  269. package/dist/schemas/openapi-v3/security-requirement.d.ts.map +0 -1
  270. package/dist/schemas/openapi-v3/security-requirement.js +0 -10
  271. package/dist/schemas/openapi-v3/security-requirement.js.map +0 -7
  272. package/dist/schemas/openapi-v3/security-scheme.d.ts.map +0 -1
  273. package/dist/schemas/openapi-v3/security-scheme.js.map +0 -7
  274. package/dist/schemas/openapi-v3/server-variable.d.ts.map +0 -1
  275. package/dist/schemas/openapi-v3/server-variable.js +0 -13
  276. package/dist/schemas/openapi-v3/server-variable.js.map +0 -7
  277. package/dist/schemas/openapi-v3/server.d.ts.map +0 -1
  278. package/dist/schemas/openapi-v3/server.js +0 -14
  279. package/dist/schemas/openapi-v3/server.js.map +0 -7
  280. package/dist/schemas/openapi-v3/tag.d.ts +0 -13
  281. package/dist/schemas/openapi-v3/tag.d.ts.map +0 -1
  282. package/dist/schemas/openapi-v3/tag.js +0 -14
  283. package/dist/schemas/openapi-v3/tag.js.map +0 -7
  284. package/dist/schemas/openapi-v3/xml.d.ts.map +0 -1
  285. package/dist/schemas/openapi-v3/xml.js +0 -17
  286. package/dist/schemas/openapi-v3/xml.js.map +0 -7
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/header.ts"],
4
+ "sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type TSchema } from '@sinclair/typebox'\n\nexport const HeaderObjectSchemaBase = compose(\n Type.Object({\n /** A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this header is mandatory. The default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that the header is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport const HeaderObjectWithSchemaSchema = compose(\n HeaderObjectSchemaBase,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Any(),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n }),\n)\n\nexport const headerObjectSchemaBuilder = <T extends TSchema>(mediaType: T) =>\n Type.Union([\n HeaderObjectWithSchemaSchema,\n // @ts-ignore\n compose(\n HeaderObjectSchemaBase,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), mediaType)),\n }),\n ),\n ])\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,YAA0B;AAE5B,MAAM,yBAAyB;AAAA,EACpC,KAAK,OAAO;AAAA;AAAA,IAEV,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;AAEO,MAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,qBAAqB,CAAC,CAAC;AAAA;AAAA,IAE7E,SAAS,KAAK,IAAI;AAAA;AAAA,IAElB,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAC9G,CAAC;AACH;AAEO,MAAM,4BAA4B,CAAoB,cAC3D,KAAK,MAAM;AAAA,EACT;AAAA;AAAA,EAEA;AAAA,IACE;AAAA,IACA,KAAK,OAAO;AAAA,MACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,SAAS,CAAC;AAAA,IAC9D,CAAC;AAAA,EACH;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -1,7 +1,8 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /**
2
3
  * The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.
3
4
  */
4
- export declare const InfoObject: import("@sinclair/typebox").TObject<{
5
+ export declare const InfoObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
5
6
  /** REQUIRED. The title of the API. */
6
7
  title: import("@sinclair/typebox").TString;
7
8
  /** A short summary of the API. */
@@ -11,18 +12,19 @@ export declare const InfoObject: import("@sinclair/typebox").TObject<{
11
12
  /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */
12
13
  termsOfService: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
14
  /** The contact information for the exposed API. */
14
- contact: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
15
+ contact: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
15
16
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
16
17
  url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
17
18
  email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
18
- }>>;
19
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
19
20
  /** The license information for the exposed API. */
20
- license: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
21
+ license: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
21
22
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
23
  identifier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
23
24
  url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
24
- }>>;
25
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
25
26
  /** REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description). */
26
27
  version: import("@sinclair/typebox").TString;
27
- }>;
28
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
29
+ export type InfoObject = Static<typeof InfoObjectSchema>;
28
30
  //# sourceMappingURL=info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAMrD;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAEzB,sCAAsC;;IAEtC,kCAAkC;;IAElC,4FAA4F;;IAE5F,qFAAqF;;IAErF,mDAAmD;;;;;;IAEnD,mDAAmD;;;;;;IAEnD,oMAAoM;;kJAIvM,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { ContactObjectSchema } from "./contact.js";
3
+ import { LicenseObjectSchema } from "./license.js";
4
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
5
+ import { compose } from "../../../schemas/v3.1/compose.js";
6
+ const InfoObjectSchema = compose(
7
+ Type.Object({
8
+ /** REQUIRED. The title of the API. */
9
+ title: Type.String(),
10
+ /** A short summary of the API. */
11
+ summary: Type.Optional(Type.String()),
12
+ /** A description of the API. CommonMark syntax MAY be used for rich text representation. */
13
+ description: Type.Optional(Type.String()),
14
+ /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */
15
+ termsOfService: Type.Optional(Type.String()),
16
+ /** The contact information for the exposed API. */
17
+ contact: Type.Optional(ContactObjectSchema),
18
+ /** The license information for the exposed API. */
19
+ license: Type.Optional(LicenseObjectSchema),
20
+ /** REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description). */
21
+ version: Type.String()
22
+ }),
23
+ ExtensionsSchema
24
+ );
25
+ export {
26
+ InfoObjectSchema
27
+ };
28
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/info.ts"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ContactObjectSchema } from './contact'\nimport { LicenseObjectSchema } from './license'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\n/**\n * The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.\n */\nexport const InfoObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The title of the API. */\n title: Type.String(),\n /** A short summary of the API. */\n summary: Type.Optional(Type.String()),\n /** A description of the API. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A URI for the Terms of Service for the API. This MUST be in the form of a URI. */\n termsOfService: Type.Optional(Type.String()),\n /** The contact information for the exposed API. */\n contact: Type.Optional(ContactObjectSchema),\n /** The license information for the exposed API. */\n license: Type.Optional(LicenseObjectSchema),\n /** REQUIRED. The version of the OpenAPI Document (which is distinct from the OpenAPI Specification version or the version of the API being described or the version of the OpenAPI Description). */\n version: Type.String(),\n }),\n ExtensionsSchema,\n)\n\nexport type InfoObject = Static<typeof InfoObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AAKjB,MAAM,mBAAmB;AAAA,EAC9B,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,OAAO;AAAA;AAAA,IAEnB,SAAS,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEpC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,gBAAgB,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAE3C,SAAS,KAAK,SAAS,mBAAmB;AAAA;AAAA,IAE1C,SAAS,KAAK,SAAS,mBAAmB;AAAA;AAAA,IAE1C,SAAS,KAAK,OAAO;AAAA,EACvB,CAAC;AAAA,EACD;AACF;",
6
+ "names": []
7
+ }
@@ -1,10 +1,12 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /** The license information for the exposed API. */
2
- export declare const LicenseObject: import("@sinclair/typebox").TObject<{
3
+ export declare const LicenseObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
3
4
  /** REQUIRED. The license name used for the API. */
4
5
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
6
  /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */
6
7
  identifier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
7
8
  /** A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. */
8
9
  url: 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 LicenseObject = Static<typeof LicenseObjectSchema>;
10
12
  //# sourceMappingURL=license.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/license.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,mDAAmD;AACnD,eAAO,MAAM,mBAAmB;IAE5B,mDAAmD;;IAEnD,2GAA2G;;IAE3G,8IAA8I;;kJAIjJ,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { compose } from "../../../schemas/v3.1/compose.js";
2
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
3
+ import { Type } from "@sinclair/typebox";
4
+ const LicenseObjectSchema = compose(
5
+ Type.Object({
6
+ /** REQUIRED. The license name used for the API. */
7
+ name: Type.Optional(Type.String()),
8
+ /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */
9
+ identifier: Type.Optional(Type.String()),
10
+ /** A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. */
11
+ url: Type.Optional(Type.String())
12
+ }),
13
+ ExtensionsSchema
14
+ );
15
+ export {
16
+ LicenseObjectSchema
17
+ };
18
+ //# sourceMappingURL=license.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/license.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/** The license information for the exposed API. */\nexport const LicenseObjectSchema = compose(\n Type.Object({\n /** REQUIRED. The license name used for the API. */\n name: Type.Optional(Type.String()),\n /** An SPDX license expression for the API. The identifier field is mutually exclusive of the url field. */\n identifier: Type.Optional(Type.String()),\n /** A URI for the license used for the API. This MUST be in the form of a URI. The url field is mutually exclusive of the identifier field. */\n url: Type.Optional(Type.String()),\n }),\n ExtensionsSchema,\n)\n\nexport type LicenseObject = Static<typeof LicenseObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,wBAAwB;AACjC,SAAS,YAAyB;AAG3B,MAAM,sBAAsB;AAAA,EACjC,KAAK,OAAO;AAAA;AAAA,IAEV,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEjC,YAAY,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEvC,KAAK,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA,EAClC,CAAC;AAAA,EACD;AACF;",
6
+ "names": []
7
+ }
@@ -1,3 +1,4 @@
1
+ import { type Static } from '@sinclair/typebox';
1
2
  /**
2
3
  * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.
3
4
  *
@@ -5,7 +6,7 @@
5
6
  *
6
7
  * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation.
7
8
  */
8
- export declare const LinkObject: import("@sinclair/typebox").TObject<{
9
+ export declare const LinkObjectSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
9
10
  /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */
10
11
  operationRef: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
11
12
  /** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */
@@ -17,14 +18,15 @@ export declare const LinkObject: import("@sinclair/typebox").TObject<{
17
18
  /** A description of the link. CommonMark syntax MAY be used for rich text representation. */
18
19
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
19
20
  /** A server object to be used by the target operation. */
20
- server: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
21
+ server: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
21
22
  url: import("@sinclair/typebox").TString;
22
23
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
23
- variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
24
+ variables: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
24
25
  enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
25
26
  default: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
26
27
  description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
27
- }>>>;
28
- }>>;
29
- }>;
28
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>>;
29
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
30
+ }>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>;
31
+ export type LinkObject = Static<typeof LinkObjectSchema>;
30
32
  //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAKrD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;IAEzB,yPAAyP;;IAEzP,2JAA2J;;IAE3J,8WAA8W;;IAE9W,kGAAkG;;IAElG,6FAA6F;;IAE7F,0DAA0D;;;;;;;;;;kJAI7D,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -0,0 +1,25 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { ServerObjectSchema } from "./server.js";
3
+ import { ExtensionsSchema } from "../../../schemas/v3.1/strict/extensions.js";
4
+ import { compose } from "../../../schemas/v3.1/compose.js";
5
+ const LinkObjectSchema = compose(
6
+ Type.Object({
7
+ /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */
8
+ operationRef: Type.Optional(Type.String()),
9
+ /** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */
10
+ operationId: Type.Optional(Type.String()),
11
+ /** A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated and passed to the linked operation. */
12
+ parameters: Type.Optional(Type.Record(Type.String(), Type.Any())),
13
+ /** A literal value or {expression} to use as a request body when calling the target operation. */
14
+ requestBody: Type.Optional(Type.Any()),
15
+ /** A description of the link. CommonMark syntax MAY be used for rich text representation. */
16
+ description: Type.Optional(Type.String()),
17
+ /** A server object to be used by the target operation. */
18
+ server: Type.Optional(ServerObjectSchema)
19
+ }),
20
+ ExtensionsSchema
21
+ );
22
+ export {
23
+ LinkObjectSchema
24
+ };
25
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/v3.1/strict/link.ts"],
4
+ "sourcesContent": ["import { Type, type Static } from '@sinclair/typebox'\nimport { ServerObjectSchema } from './server'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { compose } from '@/schemas/v3.1/compose'\n\n/**\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation.\n */\nexport const LinkObjectSchema = compose(\n Type.Object({\n /** A URI reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI Description. */\n operationRef: Type.Optional(Type.String()),\n /** The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field. */\n operationId: Type.Optional(Type.String()),\n /** A map representing parameters to pass to an operation as specified with operationId or identified via operationRef. The key is the parameter name to be used (optionally qualified with the parameter location, e.g. path.id for an id parameter in the path), whereas the value can be a constant or an expression to be evaluated and passed to the linked operation. */\n parameters: Type.Optional(Type.Record(Type.String(), Type.Any())),\n /** A literal value or {expression} to use as a request body when calling the target operation. */\n requestBody: Type.Optional(Type.Any()),\n /** A description of the link. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** A server object to be used by the target operation. */\n server: Type.Optional(ServerObjectSchema),\n }),\n ExtensionsSchema,\n)\n\nexport type LinkObject = Static<typeof LinkObjectSchema>\n"],
5
+ "mappings": "AAAA,SAAS,YAAyB;AAClC,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AASjB,MAAM,mBAAmB;AAAA,EAC9B,KAAK,OAAO;AAAA;AAAA,IAEV,cAAc,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAEzC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,YAAY,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC;AAAA;AAAA,IAEhE,aAAa,KAAK,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,IAErC,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,QAAQ,KAAK,SAAS,kBAAkB;AAAA,EAC1C,CAAC;AAAA,EACD;AACF;",
6
+ "names": []
7
+ }