@scalar/workspace-store 0.69.3 → 0.71.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 (298) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/channel-example/build-connection-url.d.ts +2 -2
  3. package/dist/channel-example/build-connection-url.d.ts.map +1 -1
  4. package/dist/channel-example/dedupe-requirements.d.ts.map +1 -1
  5. package/dist/channel-example/get-all-channel-messages.d.ts.map +1 -1
  6. package/dist/channel-example/get-async-api-protocols.d.ts +1 -1
  7. package/dist/channel-example/get-async-api-protocols.d.ts.map +1 -1
  8. package/dist/channel-example/get-asyncapi-security-requirements.d.ts.map +1 -1
  9. package/dist/channel-example/get-channel-connection-context.d.ts.map +1 -1
  10. package/dist/channel-example/get-channel-connection-security.d.ts.map +1 -1
  11. package/dist/channel-example/get-channel-operations.d.ts.map +1 -1
  12. package/dist/channel-example/get-channel-parameters.d.ts +1 -1
  13. package/dist/channel-example/get-channel-parameters.d.ts.map +1 -1
  14. package/dist/channel-example/resolve-channel.d.ts.map +1 -1
  15. package/dist/channel-example/resolve-operation-channel.d.ts.map +1 -1
  16. package/dist/channel-example/resolve-operation-with-traits.d.ts.map +1 -1
  17. package/dist/channel-example/servers.d.ts.map +1 -1
  18. package/dist/client.d.ts +13 -0
  19. package/dist/client.d.ts.map +1 -1
  20. package/dist/client.js +43 -5
  21. package/dist/entities/auth/index.d.ts.map +1 -1
  22. package/dist/entities/auth/schema.d.ts +155 -5
  23. package/dist/entities/auth/schema.d.ts.map +1 -1
  24. package/dist/entities/history/index.d.ts.map +1 -1
  25. package/dist/events/bus.d.ts.map +1 -1
  26. package/dist/events/definitions/operation.d.ts +9 -1
  27. package/dist/events/definitions/operation.d.ts.map +1 -1
  28. package/dist/helpers/asyncapi-chunk-groups.d.ts.map +1 -1
  29. package/dist/helpers/asyncapi-model-chunk-reference.d.ts.map +1 -1
  30. package/dist/helpers/auth-secret-fields.d.ts.map +1 -1
  31. package/dist/helpers/chunk-index.d.ts +2 -2
  32. package/dist/helpers/chunk-index.d.ts.map +1 -1
  33. package/dist/helpers/chunk-index.js +11 -7
  34. package/dist/helpers/create-chunk-writer.d.ts.map +1 -1
  35. package/dist/helpers/deep-clone.d.ts.map +1 -1
  36. package/dist/helpers/detect-changes-proxy.d.ts.map +1 -1
  37. package/dist/helpers/document-revision.d.ts.map +1 -1
  38. package/dist/helpers/dynamic-ref.d.ts.map +1 -1
  39. package/dist/helpers/encode-chunk-name.d.ts.map +1 -1
  40. package/dist/helpers/encode-path-parameter.d.ts +1 -1
  41. package/dist/helpers/encode-path-parameter.d.ts.map +1 -1
  42. package/dist/helpers/external-examples.d.ts.map +1 -1
  43. package/dist/helpers/for-each-path-item-operation.d.ts.map +1 -1
  44. package/dist/helpers/general.d.ts.map +1 -1
  45. package/dist/helpers/get-async-api-schema-view.d.ts.map +1 -1
  46. package/dist/helpers/get-boolean-schema.d.ts.map +1 -1
  47. package/dist/helpers/get-example-value.d.ts.map +1 -1
  48. package/dist/helpers/get-fetch.d.ts +1 -1
  49. package/dist/helpers/get-fetch.d.ts.map +1 -1
  50. package/dist/helpers/get-first-server.d.ts.map +1 -1
  51. package/dist/helpers/get-name-from-ref.d.ts.map +1 -1
  52. package/dist/helpers/get-parameter-example.d.ts.map +1 -1
  53. package/dist/helpers/get-path-entries.d.ts +3 -0
  54. package/dist/helpers/get-path-entries.d.ts.map +1 -0
  55. package/dist/helpers/get-path-entries.js +2 -0
  56. package/dist/helpers/get-resolved-async-api-ref.d.ts +1 -1
  57. package/dist/helpers/get-resolved-async-api-ref.d.ts.map +1 -1
  58. package/dist/helpers/get-resolved-ref-deep.d.ts.map +1 -1
  59. package/dist/helpers/get-resolved-ref.d.ts.map +1 -1
  60. package/dist/helpers/get-tag-kind.d.ts +1 -1
  61. package/dist/helpers/get-tag-kind.d.ts.map +1 -1
  62. package/dist/helpers/is-file-schema.d.ts +4 -0
  63. package/dist/helpers/is-file-schema.d.ts.map +1 -0
  64. package/dist/helpers/is-file-schema.js +53 -0
  65. package/dist/helpers/is-hidden.d.ts.map +1 -1
  66. package/dist/helpers/is-non-optional-security-requirement.d.ts.map +1 -1
  67. package/dist/helpers/merge-object.d.ts.map +1 -1
  68. package/dist/helpers/normalize-boolean-schemas.d.ts.map +1 -1
  69. package/dist/helpers/operation-examples.d.ts.map +1 -1
  70. package/dist/helpers/overrides-proxy.d.ts.map +1 -1
  71. package/dist/helpers/querystring-parameter.d.ts.map +1 -1
  72. package/dist/helpers/resolve-async-api-schema.d.ts.map +1 -1
  73. package/dist/helpers/resolve-form-schema.d.ts +1 -1
  74. package/dist/helpers/resolve-form-schema.d.ts.map +1 -1
  75. package/dist/helpers/resolve-form-schema.js +13 -3
  76. package/dist/helpers/resolve-schema-with-annotations.d.ts.map +1 -1
  77. package/dist/helpers/resolve-security-requirements.d.ts.map +1 -1
  78. package/dist/helpers/resolve-traits.d.ts.map +1 -1
  79. package/dist/helpers/serialize-stream-example.d.ts.map +1 -1
  80. package/dist/helpers/snapshot-request-bodies.d.ts +7 -0
  81. package/dist/helpers/snapshot-request-bodies.d.ts.map +1 -0
  82. package/dist/helpers/snapshot-request-bodies.js +45 -0
  83. package/dist/helpers/snapshot-schema.d.ts.map +1 -1
  84. package/dist/helpers/unpack-proxy.d.ts.map +1 -1
  85. package/dist/helpers/use-external-examples.d.ts.map +1 -1
  86. package/dist/mutators/auth.d.ts +18 -18
  87. package/dist/mutators/auth.d.ts.map +1 -1
  88. package/dist/mutators/auth.js +3 -2
  89. package/dist/mutators/cookie.d.ts +7 -4
  90. package/dist/mutators/cookie.d.ts.map +1 -1
  91. package/dist/mutators/document.d.ts +10 -10
  92. package/dist/mutators/document.d.ts.map +1 -1
  93. package/dist/mutators/environment.d.ts +16 -8
  94. package/dist/mutators/environment.d.ts.map +1 -1
  95. package/dist/mutators/helpers.d.ts.map +1 -1
  96. package/dist/mutators/index.d.ts +123 -121
  97. package/dist/mutators/index.d.ts.map +1 -1
  98. package/dist/mutators/operation/body.d.ts +3 -3
  99. package/dist/mutators/operation/body.d.ts.map +1 -1
  100. package/dist/mutators/operation/extensions.d.ts +1 -1
  101. package/dist/mutators/operation/extensions.d.ts.map +1 -1
  102. package/dist/mutators/operation/helpers/fetch-request-to-har.d.ts.map +1 -1
  103. package/dist/mutators/operation/helpers/fetch-response-to-har.d.ts.map +1 -1
  104. package/dist/mutators/operation/helpers/fetch-response-to-har.js +9 -5
  105. package/dist/mutators/operation/helpers/get-parameter-position.d.ts.map +1 -1
  106. package/dist/mutators/operation/helpers/har-to-operation.d.ts.map +1 -1
  107. package/dist/mutators/operation/helpers/sync-path-parameters.d.ts.map +1 -1
  108. package/dist/mutators/operation/history.d.ts +2 -2
  109. package/dist/mutators/operation/history.d.ts.map +1 -1
  110. package/dist/mutators/operation/index.d.ts +18 -17
  111. package/dist/mutators/operation/index.d.ts.map +1 -1
  112. package/dist/mutators/operation/index.js +2 -0
  113. package/dist/mutators/operation/operation.d.ts +7 -7
  114. package/dist/mutators/operation/operation.d.ts.map +1 -1
  115. package/dist/mutators/operation/parameters.d.ts +4 -4
  116. package/dist/mutators/operation/parameters.d.ts.map +1 -1
  117. package/dist/mutators/operation/reset-request-body.d.ts +5 -0
  118. package/dist/mutators/operation/reset-request-body.d.ts.map +1 -0
  119. package/dist/mutators/operation/reset-request-body.js +123 -0
  120. package/dist/mutators/server.d.ts +18 -18
  121. package/dist/mutators/server.d.ts.map +1 -1
  122. package/dist/mutators/tabs.d.ts +16 -16
  123. package/dist/mutators/tabs.d.ts.map +1 -1
  124. package/dist/mutators/tag.d.ts +6 -6
  125. package/dist/mutators/tag.d.ts.map +1 -1
  126. package/dist/mutators/tag.js +2 -1
  127. package/dist/mutators/workspace.d.ts +12 -12
  128. package/dist/mutators/workspace.d.ts.map +1 -1
  129. package/dist/navigation/get-navigation-options.d.ts.map +1 -1
  130. package/dist/navigation/helpers/get-navigation-tag-names.d.ts.map +1 -1
  131. package/dist/navigation/helpers/get-openapi-object.d.ts.map +1 -1
  132. package/dist/navigation/helpers/get-operation-entries.d.ts.map +1 -1
  133. package/dist/navigation/helpers/get-parent-entry.d.ts +1 -1
  134. package/dist/navigation/helpers/get-parent-entry.d.ts.map +1 -1
  135. package/dist/navigation/helpers/get-tag-entries.d.ts.map +1 -1
  136. package/dist/navigation/helpers/get-tag-external-docs.d.ts.map +1 -1
  137. package/dist/navigation/helpers/get-tag.d.ts +1 -1
  138. package/dist/navigation/helpers/get-tag.d.ts.map +1 -1
  139. package/dist/navigation/helpers/get-x-keys.d.ts.map +1 -1
  140. package/dist/navigation/helpers/traverse-asyncapi-document.d.ts.map +1 -1
  141. package/dist/navigation/helpers/traverse-description.d.ts +1 -1
  142. package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
  143. package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
  144. package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -1
  145. package/dist/navigation/helpers/traverse-paths.d.ts +1 -1
  146. package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
  147. package/dist/navigation/helpers/traverse-paths.js +2 -1
  148. package/dist/navigation/helpers/traverse-schemas.d.ts +1 -1
  149. package/dist/navigation/helpers/traverse-schemas.d.ts.map +1 -1
  150. package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
  151. package/dist/navigation/helpers/traverse-webhooks.d.ts +1 -1
  152. package/dist/navigation/helpers/traverse-webhooks.d.ts.map +1 -1
  153. package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -1
  154. package/dist/navigation/helpers/utils.d.ts.map +1 -1
  155. package/dist/persistence/index.d.ts +6 -6
  156. package/dist/persistence/index.d.ts.map +1 -1
  157. package/dist/persistence/indexdb.d.ts.map +1 -1
  158. package/dist/persistence/migrations/v2-team-to-local.d.ts.map +1 -1
  159. package/dist/plugins/bundler/helpers.d.ts.map +1 -1
  160. package/dist/plugins/bundler/index.d.ts.map +1 -1
  161. package/dist/plugins/bundler/index.js +1 -1
  162. package/dist/plugins/client/persistence.d.ts.map +1 -1
  163. package/dist/request-example/builder/body/build-multipart.d.ts +2 -2
  164. package/dist/request-example/builder/body/build-multipart.d.ts.map +1 -1
  165. package/dist/request-example/builder/body/build-request-body.d.ts.map +1 -1
  166. package/dist/request-example/builder/body/encode-multipart-body.d.ts.map +1 -1
  167. package/dist/request-example/builder/body/get-request-body-example.d.ts.map +1 -1
  168. package/dist/request-example/builder/body/get-selected-body-content-type.d.ts.map +1 -1
  169. package/dist/request-example/builder/body/schema-value-coercion.d.ts.map +1 -1
  170. package/dist/request-example/builder/body/serialize-form-property.d.ts.map +1 -1
  171. package/dist/request-example/builder/body/serialize-multipart-array.d.ts.map +1 -1
  172. package/dist/request-example/builder/build-request.d.ts +1 -1
  173. package/dist/request-example/builder/build-request.d.ts.map +1 -1
  174. package/dist/request-example/builder/header/build-request-cookie-header.d.ts.map +1 -1
  175. package/dist/request-example/builder/header/build-request-parameters.d.ts.map +1 -1
  176. package/dist/request-example/builder/header/de-serialize-parameter.d.ts +1 -1
  177. package/dist/request-example/builder/header/de-serialize-parameter.d.ts.map +1 -1
  178. package/dist/request-example/builder/header/filter-disabled-properties.d.ts.map +1 -1
  179. package/dist/request-example/builder/header/filter-global-cookies.d.ts.map +1 -1
  180. package/dist/request-example/builder/header/is-param-disabled.d.ts.map +1 -1
  181. package/dist/request-example/builder/header/matches-domain.d.ts.map +1 -1
  182. package/dist/request-example/builder/header/serialize-parameter.d.ts.map +1 -1
  183. package/dist/request-example/builder/helpers/apply-allow-reserved-to-url.d.ts.map +1 -1
  184. package/dist/request-example/builder/helpers/get-environment-variables.d.ts.map +1 -1
  185. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts +9 -10
  186. package/dist/request-example/builder/helpers/get-example-from-schema.d.ts.map +1 -1
  187. package/dist/request-example/builder/helpers/get-example-from-schema.js +578 -107
  188. package/dist/request-example/builder/helpers/get-example.d.ts.map +1 -1
  189. package/dist/request-example/builder/helpers/get-resolved-url.d.ts.map +1 -1
  190. package/dist/request-example/builder/helpers/get-server-variables.d.ts.map +1 -1
  191. package/dist/request-example/builder/request-factory.d.ts.map +1 -1
  192. package/dist/request-example/builder/resolve-request-factory-url.d.ts +2 -2
  193. package/dist/request-example/builder/resolve-request-factory-url.d.ts.map +1 -1
  194. package/dist/request-example/builder/security/broker-scheme-types.d.ts +2 -2
  195. package/dist/request-example/builder/security/broker-scheme-types.d.ts.map +1 -1
  196. package/dist/request-example/builder/security/build-request-security.d.ts.map +1 -1
  197. package/dist/request-example/builder/security/secret-types.d.ts +4 -0
  198. package/dist/request-example/builder/security/secret-types.d.ts.map +1 -1
  199. package/dist/request-example/context/environment.d.ts.map +1 -1
  200. package/dist/request-example/context/get-request-example-context.d.ts.map +1 -1
  201. package/dist/request-example/context/headers.d.ts.map +1 -1
  202. package/dist/request-example/context/helpers/combine-params.d.ts +1 -1
  203. package/dist/request-example/context/helpers/combine-params.d.ts.map +1 -1
  204. package/dist/request-example/context/proxy.d.ts +1 -1
  205. package/dist/request-example/context/proxy.d.ts.map +1 -1
  206. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts +5 -1
  207. package/dist/request-example/context/security/extract-security-scheme-secrets.d.ts.map +1 -1
  208. package/dist/request-example/context/security/extract-security-scheme-secrets.js +26 -6
  209. package/dist/request-example/context/security/get-security-requirements.d.ts +1 -1
  210. package/dist/request-example/context/security/get-security-requirements.d.ts.map +1 -1
  211. package/dist/request-example/context/security/get-security-schemes.d.ts.map +1 -1
  212. package/dist/request-example/context/security/get-selected-security.d.ts +1 -1
  213. package/dist/request-example/context/security/get-selected-security.d.ts.map +1 -1
  214. package/dist/request-example/context/security/get-selected-security.js +3 -3
  215. package/dist/request-example/context/security/is-auth-optional.d.ts +1 -1
  216. package/dist/request-example/context/security/is-auth-optional.d.ts.map +1 -1
  217. package/dist/request-example/context/security/merge-security.d.ts +1 -1
  218. package/dist/request-example/context/security/merge-security.d.ts.map +1 -1
  219. package/dist/request-example/context/security/resolve-credential-placeholders.d.ts +13 -0
  220. package/dist/request-example/context/security/resolve-credential-placeholders.d.ts.map +1 -0
  221. package/dist/request-example/context/security/resolve-credential-placeholders.js +73 -0
  222. package/dist/request-example/context/security/uses-api-key-name-override.d.ts.map +1 -1
  223. package/dist/request-example/context/servers.d.ts.map +1 -1
  224. package/dist/request-example/functions.d.ts +1 -1
  225. package/dist/request-example/functions.d.ts.map +1 -1
  226. package/dist/request-example/index.d.ts +3 -1
  227. package/dist/request-example/index.d.ts.map +1 -1
  228. package/dist/request-example/index.js +3 -1
  229. package/dist/request-example/xml/get-xml-body-example.d.ts.map +1 -1
  230. package/dist/request-example/xml/get-xml-example.d.ts.map +1 -1
  231. package/dist/request-example/xml/get-xml-example.js +2 -6
  232. package/dist/request-example/xml/match-xml-property-pattern.d.ts.map +1 -1
  233. package/dist/request-example/xml/serialize-xml-part.d.ts.map +1 -1
  234. package/dist/request-example/xml/write-xml.d.ts.map +1 -1
  235. package/dist/resolve.d.ts.map +1 -1
  236. package/dist/schemas/compose.d.ts.map +1 -1
  237. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts +4 -0
  238. package/dist/schemas/extensions/document/x-scalar-sdk-installation.d.ts.map +1 -1
  239. package/dist/schemas/extensions/document/x-scalar-sdk-installation.js +2 -0
  240. package/dist/schemas/extensions/operation/x-code-samples.d.ts +11 -0
  241. package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
  242. package/dist/schemas/extensions/operation/x-code-samples.js +2 -0
  243. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts +3 -3
  244. package/dist/schemas/extensions/operation/x-scalar-stability.d.ts.map +1 -1
  245. package/dist/schemas/extensions/security/x-scalar-credential-placeholders.d.ts +24 -0
  246. package/dist/schemas/extensions/security/x-scalar-credential-placeholders.d.ts.map +1 -0
  247. package/dist/schemas/extensions/security/x-scalar-credential-placeholders.js +17 -0
  248. package/dist/schemas/extensions.d.ts +8 -8
  249. package/dist/schemas/extensions.d.ts.map +1 -1
  250. package/dist/schemas/inmemory-workspace.d.ts +3 -0
  251. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  252. package/dist/schemas/reference-config/index.d.ts +32 -2
  253. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  254. package/dist/schemas/reference-config/settings.d.ts +31 -1
  255. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  256. package/dist/schemas/type-guards.d.ts +2 -2
  257. package/dist/schemas/type-guards.d.ts.map +1 -1
  258. package/dist/schemas/typebox-coerce.d.ts.map +1 -1
  259. package/dist/schemas/v3.1/strict/info.d.ts +1 -0
  260. package/dist/schemas/v3.1/strict/info.d.ts.map +1 -1
  261. package/dist/schemas/v3.1/strict/openapi-document.d.ts +1050 -0
  262. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  263. package/dist/schemas/v3.1/strict/operation.d.ts +4 -0
  264. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  265. package/dist/schemas/v3.1/strict/ref-definitions.d.ts +38 -38
  266. package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
  267. package/dist/schemas/v3.1/strict/reference.d.ts.map +1 -1
  268. package/dist/schemas/v3.1/strict/security-scheme.d.ts +27 -1
  269. package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
  270. package/dist/schemas/v3.1/strict/security-scheme.js +2 -1
  271. package/dist/schemas/v3.1/strict/type-guards.d.ts +4 -4
  272. package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
  273. package/dist/schemas/v3.2/openapi/index.d.ts +2 -1
  274. package/dist/schemas/v3.2/openapi/index.d.ts.map +1 -1
  275. package/dist/schemas/v3.2/openapi/index.js +9 -3
  276. package/dist/schemas/v3.2/openapi/reference.d.ts.map +1 -1
  277. package/dist/schemas/v3.2/strict/info.d.ts +1 -0
  278. package/dist/schemas/v3.2/strict/info.d.ts.map +1 -1
  279. package/dist/schemas/v3.2/strict/openapi-document.d.ts +1085 -35
  280. package/dist/schemas/v3.2/strict/openapi-document.d.ts.map +1 -1
  281. package/dist/schemas/v3.2/strict/operation.d.ts +4 -0
  282. package/dist/schemas/v3.2/strict/operation.d.ts.map +1 -1
  283. package/dist/schemas/v3.2/strict/paths.d.ts +1 -1
  284. package/dist/schemas/v3.2/strict/paths.d.ts.map +1 -1
  285. package/dist/schemas/v3.2/strict/paths.js +4 -2
  286. package/dist/schemas/v3.2/strict/ref-definitions.d.ts +38 -38
  287. package/dist/schemas/v3.2/strict/ref-definitions.d.ts.map +1 -1
  288. package/dist/schemas/v3.2/strict/reference.d.ts.map +1 -1
  289. package/dist/schemas/v3.2/strict/security-scheme.d.ts +27 -1
  290. package/dist/schemas/v3.2/strict/security-scheme.d.ts.map +1 -1
  291. package/dist/schemas/v3.2/strict/security-scheme.js +2 -1
  292. package/dist/schemas/v3.2/strict/type-guards.d.ts +4 -4
  293. package/dist/schemas/v3.2/strict/type-guards.d.ts.map +1 -1
  294. package/dist/schemas/workspace-specification/index.d.ts +1 -1
  295. package/dist/schemas/workspace.d.ts +1 -1
  296. package/dist/server.d.ts.map +1 -1
  297. package/dist/server.js +4 -0
  298. package/package.json +10 -9
@@ -1,16 +1,16 @@
1
1
  import type { SchemaObject } from './openapi-document.js';
2
2
  import type { ParameterObject, ParameterWithContentObject } from './parameter.js';
3
3
  export declare const isObjectSchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
4
- type: "object";
4
+ type: 'object';
5
5
  }>;
6
6
  export declare const isArraySchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
7
- type: "array";
7
+ type: 'array';
8
8
  }>;
9
9
  export declare const isStringSchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
10
- type: "string";
10
+ type: 'string';
11
11
  }>;
12
12
  export declare const isNumberSchema: (schema: SchemaObject) => schema is Extract<SchemaObject, {
13
- type: "number" | "integer";
13
+ type: 'number' | 'integer';
14
14
  }>;
15
15
  /** Special type guard to remove our internal type */
16
16
  export declare const isSchema: (schema: SchemaObject | undefined) => schema is Exclude<SchemaObject, {
@@ -1 +1 @@
1
- {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAElG,eAAO,MAAM,cAAc,GAAI,QAAQ,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAIvG,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,QAAQ,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAErG,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,QAAQ,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAIvG,CAAA;AAED,eAAO,MAAM,cAAc,GACzB,QAAQ,YAAY,KACnB,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,CAQhE,CAAA;AAED,qDAAqD;AACrD,eAAO,MAAM,QAAQ,GAAI,QAAQ,YAAY,GAAG,SAAS,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CACvE,CAAA;AAE1C;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GAAI,WAAW,eAAe,KAAG,SAAS,IAAI,0BAEtF,CAAA"}
1
+ {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/type-guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAElG,eAAO,MAAM,cAAc,WAAY,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAIvG,CAAA;AAED,eAAO,MAAM,aAAa,WAAY,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAErG,CAAA;AAED,eAAO,MAAM,cAAc,WAAY,YAAY,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAIvG,CAAA;AAED,eAAO,MAAM,cAAc,WACjB,YAAY,KACnB,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAA;CAAE,CAQhE,CAAA;AAED,qDAAqD;AACrD,eAAO,MAAM,QAAQ,WAAY,YAAY,GAAG,SAAS,KAAG,MAAM,IAAI,OAAO,CAAC,YAAY,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CACvE,CAAA;AAE1C;;;GAGG;AACH,eAAO,MAAM,4BAA4B,cAAe,eAAe,KAAG,SAAS,IAAI,0BAEtF,CAAA"}
@@ -38,6 +38,7 @@ export declare const generateSchema: (maybeRef: (inner: Schema) => Schema, optio
38
38
  }>, import("@scalar/validation").ObjectSchema<{
39
39
  'x-scalar-sdk-installation': import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").ObjectSchema<{
40
40
  lang: import("@scalar/validation").StringSchema;
41
+ label: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
41
42
  description: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
42
43
  source: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
43
44
  }>>>;
@@ -58,7 +59,7 @@ export declare const generateSchema: (maybeRef: (inner: Schema) => Schema, optio
58
59
  description: import("@scalar/validation").OptionalSchema<import("@scalar/validation").StringSchema>;
59
60
  }>>>;
60
61
  }>>>;
61
- paths: import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ObjectSchema<Record<string, any>>>>;
62
+ paths: import("@scalar/validation").OptionalSchema<import("@scalar/validation").EvaluateSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ObjectSchema<Record<string, any>>>>>;
62
63
  webhooks: import("@scalar/validation").OptionalSchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ObjectSchema<Record<string, any>>>>;
63
64
  components: import("@scalar/validation").OptionalSchema<import("@scalar/validation").ObjectSchema<Record<string, any>>>;
64
65
  security: import("@scalar/validation").OptionalSchema<import("@scalar/validation").ArraySchema<import("@scalar/validation").RecordSchema<import("@scalar/validation").StringSchema, import("@scalar/validation").ArraySchema<import("@scalar/validation").StringSchema>>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EAaZ,MAAM,oBAAoB,CAAA;AA8C3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAoED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MAyM1E,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,EAAE,UAAS,qBAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAu3BtG,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EAcZ,MAAM,oBAAoB,CAAA;AAgD3B,0CAA0C;AAC1C,KAAK,qBAAqB,GAAG;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAoED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,KAAG,MAyM1E,CAAA;AAED,eAAO,MAAM,cAAc,aAAc,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA43BjG,CAAA"}
@@ -1,4 +1,6 @@
1
- import { any, array, boolean, intersection, lazy, literal, number, object, optional, record, string, union, } from '@scalar/validation';
1
+ import { isObject } from '@scalar/helpers/object/is-object';
2
+ import { any, array, boolean, evaluate, intersection, lazy, literal, number, object, optional, record, string, union, } from '@scalar/validation';
3
+ import { getPathEntries } from '../../../helpers/get-path-entries.js';
2
4
  import { extensions } from '../../extensions.js';
3
5
  import { XInternal } from '../../extensions/document/x-internal.js';
4
6
  import { XScalarDefaultRequestBodyView } from '../../extensions/document/x-scalar-default-request-body-view.js';
@@ -33,6 +35,7 @@ import { XExamples } from '../../extensions/schema/x-examples.js';
33
35
  import { XOrder } from '../../extensions/schema/x-order.js';
34
36
  import { XVariable } from '../../extensions/schema/x-variable.js';
35
37
  import { XDefaultScopes } from '../../extensions/security/x-default-scopes.js';
38
+ import { XScalarCredentialPlaceholders } from '../../extensions/security/x-scalar-credential-placeholders.js';
36
39
  import { XScalarCredentialsLocation } from '../../extensions/security/x-scalar-credentials-location.js';
37
40
  import { XScalarSecurityBody } from '../../extensions/security/x-scalar-security-body.js';
38
41
  import { XScalarSecurityQuery } from '../../extensions/security/x-scalar-security-query.js';
@@ -311,6 +314,7 @@ export const generateSchema = (maybeRef, options = {}) => {
311
314
  typeComment: 'Lists the required security schemes to execute this operation. An empty object ({}) indicates anonymous access is supported.',
312
315
  });
313
316
  const securitySchemeBase = object({
317
+ ...XScalarCredentialPlaceholders.properties,
314
318
  deprecated: optional(boolean({ typeComment: 'Whether the security scheme is deprecated.' })),
315
319
  description: optional(string({
316
320
  typeComment: 'A description for security scheme. CommonMark syntax MAY be used for rich text representation.',
@@ -720,10 +724,12 @@ export const generateSchema = (maybeRef, options = {}) => {
720
724
  typeComment: 'An array of Server Objects, which provide connectivity information to a target server. If the servers field is not provided, or is an empty array, the default value would be a Server Object with a url value of /.',
721
725
  typeName: 'OpenApiServers',
722
726
  })),
723
- paths: optional(record(string(), pathItem, {
727
+ paths: optional(
728
+ // Extensions keep their original values when the coerced document is merged back.
729
+ evaluate((value) => Object.fromEntries(getPathEntries(isObject(value) ? value : undefined)), record(string(), pathItem, {
724
730
  typeComment: 'The available paths and operations for the API.',
725
731
  typeName: 'PathsObject',
726
- })),
732
+ }))),
727
733
  webhooks: optional(record(string(), pathItem, {
728
734
  typeComment: 'The incoming webhooks that MAY be received as part of this API and that the API consumer MAY choose to implement.',
729
735
  typeName: 'WebhooksObject',
@@ -1 +1 @@
1
- {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/reference.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,oBAAoB,CAAA;AAsC3B,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,KAAG,MAAoC,CAAA;AAkB/E,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,KAAG,MACkE,CAAA"}
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/openapi/reference.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,oBAAoB,CAAA;AAsC3B,eAAO,MAAM,SAAS,WAAY,MAAM,KAAG,MAAoC,CAAA;AAkB/E,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,MACkE,CAAA"}
@@ -23,6 +23,7 @@ export declare const InfoObjectSchemaDefinition: import("@scalar/typebox").TInte
23
23
  }>, import("@scalar/typebox").TObject<{
24
24
  'x-scalar-sdk-installation': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
25
25
  lang: import("@scalar/typebox").TString;
26
+ label: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
26
27
  description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
27
28
  source: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
28
29
  }>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/strict/info.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,8CAA8C,CAAA;AACpG,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,yDAAyD,CAAA;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG9C;;GAEG;AACH,eAAO,MAAM,0BAA0B;IAEnC,sCAAsC;;IAEtC,oMAAoM;;IAEpM,kCAAkC;;IAElC,4FAA4F;;IAE5F,qFAAqF;;IAErF,mDAAmD;;IAEnD,mDAAmD;;;;;;;;;;;;;IAKtD,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,oMAAoM;IACpM,OAAO,EAAE,MAAM,CAAA;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB,GAAG,sBAAsB,GACxB,YAAY,CAAA"}
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.2/strict/info.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,8CAA8C,CAAA;AACpG,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,yDAAyD,CAAA;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAG9C;;GAEG;AACH,eAAO,MAAM,0BAA0B;IAEnC,sCAAsC;;IAEtC,oMAAoM;;IAEpM,kCAAkC;;IAElC,4FAA4F;;IAE5F,qFAAqF;;IAErF,mDAAmD;;IAEnD,mDAAmD;;;;;;;;;;;;;;IAKtD,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,oMAAoM;IACpM,OAAO,EAAE,MAAM,CAAA;IACf,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAA;CACxB,GAAG,sBAAsB,GACxB,YAAY,CAAA"}