@kubb/agent 4.33.1 → 4.33.3

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 (790) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +29 -92
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  5. package/.output/server/index.mjs +1 -1
  6. package/.output/server/node_modules/.nitro/picomatch@4.0.3/index.js +17 -0
  7. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/constants.js +180 -0
  8. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/parse.js +1085 -0
  9. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/picomatch.js +341 -0
  10. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/scan.js +391 -0
  11. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/utils.js +72 -0
  12. package/.output/server/node_modules/.nitro/picomatch@4.0.3/package.json +83 -0
  13. package/.output/server/node_modules/@babel/runtime/package.json +1 -1
  14. package/.output/server/node_modules/@readme/openapi-parser/package.json +3 -3
  15. package/.output/server/node_modules/@redocly/ajv/dist/2020.js +55 -0
  16. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
  17. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
  18. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
  19. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
  20. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
  21. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
  22. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
  23. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
  24. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
  25. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
  26. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
  27. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
  28. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
  29. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
  30. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
  31. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
  32. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
  33. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
  34. package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
  35. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
  36. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
  37. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  38. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  39. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  40. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  41. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  42. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  43. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  44. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  45. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  46. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
  47. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
  48. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
  49. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
  50. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
  51. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
  52. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  53. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
  54. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  55. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  56. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
  57. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  58. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  59. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
  60. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
  61. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
  62. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  63. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  103. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  104. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
  105. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
  106. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
  107. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  108. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
  109. package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
  110. package/.output/server/node_modules/@redocly/config/lib/asyncapi-config-schema.js +53 -0
  111. package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
  112. package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
  113. package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
  114. package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
  115. package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
  116. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +56 -0
  117. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
  118. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
  119. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +683 -0
  120. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
  121. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
  122. package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
  123. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
  124. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
  125. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
  126. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +28 -0
  127. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
  128. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
  129. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
  130. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
  131. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
  132. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
  133. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
  134. package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
  135. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
  136. package/.output/server/node_modules/@redocly/config/package.json +28 -0
  137. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
  138. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
  139. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
  140. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
  141. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
  142. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
  143. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
  144. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +67 -0
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +67 -0
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
  342. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
  343. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
  344. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
  345. package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
  346. package/.output/server/node_modules/ajv/.runkit_example.js +23 -0
  347. package/.output/server/node_modules/ajv/LICENSE +22 -0
  348. package/.output/server/node_modules/ajv/README.md +207 -0
  349. package/.output/server/node_modules/ajv/dist/2019.d.ts +19 -0
  350. package/.output/server/node_modules/ajv/dist/2019.js +61 -0
  351. package/.output/server/node_modules/ajv/dist/2019.js.map +1 -0
  352. package/.output/server/node_modules/ajv/dist/2020.d.ts +19 -0
  353. package/.output/server/node_modules/ajv/dist/2020.js.map +1 -0
  354. package/.output/server/node_modules/ajv/dist/ajv.d.ts +18 -0
  355. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  356. package/.output/server/node_modules/ajv/dist/ajv.js.map +1 -0
  357. package/.output/server/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  358. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  359. package/.output/server/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  360. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  361. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  362. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  363. package/.output/server/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  364. package/.output/server/node_modules/ajv/dist/compile/errors.js.map +1 -0
  365. package/.output/server/node_modules/ajv/dist/compile/index.d.ts +80 -0
  366. package/.output/server/node_modules/ajv/dist/compile/index.js.map +1 -0
  367. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  368. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  369. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  370. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  371. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js +229 -0
  372. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  373. package/.output/server/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  374. package/.output/server/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  375. package/.output/server/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  376. package/.output/server/node_modules/ajv/dist/compile/names.d.ts +20 -0
  377. package/.output/server/node_modules/ajv/dist/compile/names.js.map +1 -0
  378. package/.output/server/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  379. package/.output/server/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  380. package/.output/server/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  381. package/.output/server/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  382. package/.output/server/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  383. package/.output/server/node_modules/ajv/dist/compile/rules.js.map +1 -0
  384. package/.output/server/node_modules/ajv/dist/compile/util.d.ts +40 -0
  385. package/.output/server/node_modules/ajv/dist/compile/util.js.map +1 -0
  386. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  387. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  388. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  389. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  390. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  391. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  392. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  393. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  394. package/.output/server/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  395. package/.output/server/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  396. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  397. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  398. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  399. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  400. package/.output/server/node_modules/ajv/dist/core.d.ts +173 -0
  401. package/.output/server/node_modules/ajv/dist/core.js.map +1 -0
  402. package/.output/server/node_modules/ajv/dist/jtd.d.ts +47 -0
  403. package/.output/server/node_modules/ajv/dist/jtd.js +72 -0
  404. package/.output/server/node_modules/ajv/dist/jtd.js.map +1 -0
  405. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  406. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  407. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  408. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  409. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  410. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  411. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  412. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  413. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  414. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  415. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  416. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  417. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  418. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  419. package/.output/server/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  420. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  421. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  422. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  423. package/.output/server/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  424. package/.output/server/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  425. package/.output/server/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  426. package/.output/server/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  427. package/.output/server/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  428. package/.output/server/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  429. package/.output/server/node_modules/ajv/dist/runtime/quote.js +30 -0
  430. package/.output/server/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  431. package/.output/server/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  432. package/.output/server/node_modules/ajv/dist/runtime/re2.js +6 -0
  433. package/.output/server/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  434. package/.output/server/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  435. package/.output/server/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  436. package/.output/server/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  437. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  438. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  439. package/.output/server/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  440. package/.output/server/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  441. package/.output/server/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  442. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  443. package/.output/server/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  444. package/.output/server/node_modules/ajv/dist/standalone/index.js +90 -0
  445. package/.output/server/node_modules/ajv/dist/standalone/index.js.map +1 -0
  446. package/.output/server/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  447. package/.output/server/node_modules/ajv/dist/standalone/instance.js +35 -0
  448. package/.output/server/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  449. package/.output/server/node_modules/ajv/dist/types/index.d.ts +183 -0
  450. package/.output/server/node_modules/ajv/dist/types/index.js +3 -0
  451. package/.output/server/node_modules/ajv/dist/types/index.js.map +1 -0
  452. package/.output/server/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  453. package/.output/server/node_modules/ajv/dist/types/json-schema.js +3 -0
  454. package/.output/server/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  455. package/.output/server/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  456. package/.output/server/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  457. package/.output/server/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  458. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  459. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  460. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  461. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  462. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  463. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  464. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  465. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  466. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  467. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  468. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  469. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  470. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  471. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  472. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  473. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  474. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  475. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  476. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  477. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  478. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  479. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  480. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  481. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  482. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  483. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  484. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  485. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  486. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  487. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  488. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  489. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  490. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  491. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  492. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  493. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  494. package/.output/server/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  495. package/.output/server/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  496. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  497. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  498. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  499. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  500. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  501. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  502. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  503. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  504. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  505. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  506. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  507. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  508. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  509. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  510. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  511. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  512. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  513. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  514. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  515. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  516. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  517. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  518. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  519. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  520. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  521. package/.output/server/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  522. package/.output/server/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  523. package/.output/server/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  524. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  525. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  526. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  527. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  528. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  529. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  530. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  531. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  532. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  533. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  534. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  535. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  536. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  537. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  538. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  539. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  540. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  541. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  542. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  543. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  544. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  545. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  546. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  547. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  548. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  549. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  550. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  551. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  552. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  553. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  554. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  555. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  556. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  557. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  558. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  559. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  560. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  561. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  562. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  563. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  564. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  565. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  566. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  567. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  568. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  569. package/.output/server/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  570. package/.output/server/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  571. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  572. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  573. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  574. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  575. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  576. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  577. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  578. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  579. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  580. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  581. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  582. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  583. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  584. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  585. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  586. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  587. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  588. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  589. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  590. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  591. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  592. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  593. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  594. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  595. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  596. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  597. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  598. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  599. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  600. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  601. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  602. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  603. package/.output/server/node_modules/ajv/lib/2019.ts +81 -0
  604. package/.output/server/node_modules/ajv/lib/2020.ts +75 -0
  605. package/.output/server/node_modules/ajv/lib/ajv.ts +70 -0
  606. package/.output/server/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  607. package/.output/server/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  608. package/.output/server/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  609. package/.output/server/node_modules/ajv/lib/compile/errors.ts +184 -0
  610. package/.output/server/node_modules/ajv/lib/compile/index.ts +324 -0
  611. package/.output/server/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  612. package/.output/server/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  613. package/.output/server/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  614. package/.output/server/node_modules/ajv/lib/compile/names.ts +27 -0
  615. package/.output/server/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  616. package/.output/server/node_modules/ajv/lib/compile/resolve.ts +149 -0
  617. package/.output/server/node_modules/ajv/lib/compile/rules.ts +50 -0
  618. package/.output/server/node_modules/ajv/lib/compile/util.ts +213 -0
  619. package/.output/server/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  620. package/.output/server/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  621. package/.output/server/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  622. package/.output/server/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  623. package/.output/server/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  624. package/.output/server/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  625. package/.output/server/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  626. package/.output/server/node_modules/ajv/lib/core.ts +891 -0
  627. package/.output/server/node_modules/ajv/lib/jtd.ts +132 -0
  628. package/.output/server/node_modules/ajv/lib/refs/data.json +13 -0
  629. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  630. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  631. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  632. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  633. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  634. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  635. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  636. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  637. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  638. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  639. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  640. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  641. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  642. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  643. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  644. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  645. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  646. package/.output/server/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  647. package/.output/server/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  648. package/.output/server/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  649. package/.output/server/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  650. package/.output/server/node_modules/ajv/lib/runtime/equal.ts +7 -0
  651. package/.output/server/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  652. package/.output/server/node_modules/ajv/lib/runtime/quote.ts +31 -0
  653. package/.output/server/node_modules/ajv/lib/runtime/re2.ts +6 -0
  654. package/.output/server/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  655. package/.output/server/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  656. package/.output/server/node_modules/ajv/lib/runtime/uri.ts +6 -0
  657. package/.output/server/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  658. package/.output/server/node_modules/ajv/lib/standalone/index.ts +100 -0
  659. package/.output/server/node_modules/ajv/lib/standalone/instance.ts +36 -0
  660. package/.output/server/node_modules/ajv/lib/types/index.ts +244 -0
  661. package/.output/server/node_modules/ajv/lib/types/json-schema.ts +187 -0
  662. package/.output/server/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  663. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  664. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  665. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  666. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  667. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  668. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  669. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  670. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  671. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  672. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  673. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  674. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  675. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  676. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  677. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  678. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  679. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  680. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  681. package/.output/server/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  682. package/.output/server/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  683. package/.output/server/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  684. package/.output/server/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  685. package/.output/server/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  686. package/.output/server/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  687. package/.output/server/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  688. package/.output/server/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  689. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  690. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  691. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  692. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  693. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  694. package/.output/server/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  695. package/.output/server/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  696. package/.output/server/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  697. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  698. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  699. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  700. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  701. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  702. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  703. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  704. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  705. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  706. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  707. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  708. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  709. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  710. package/.output/server/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  711. package/.output/server/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  712. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  713. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  714. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  715. package/.output/server/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  716. package/.output/server/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  717. package/.output/server/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  718. package/.output/server/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  719. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  720. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  721. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  722. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  723. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  724. package/.output/server/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  725. package/.output/server/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  726. package/.output/server/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  727. package/.output/server/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  728. package/.output/server/node_modules/ajv/package.json +1 -1
  729. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  730. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  731. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  732. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  733. package/.output/server/node_modules/colorette/index.js +82 -0
  734. package/.output/server/node_modules/colorette/package.json +39 -0
  735. package/.output/server/node_modules/js-levenshtein/index.js +105 -0
  736. package/.output/server/node_modules/js-levenshtein/package.json +49 -0
  737. package/.output/server/node_modules/oas/dist/{chunk-SH63AK3O.js → chunk-5EP6HY2E.js} +159 -70
  738. package/.output/server/node_modules/oas/dist/{chunk-L3V5TF63.js → chunk-7MARUOFZ.js} +1 -9
  739. package/.output/server/node_modules/oas/dist/{chunk-BOVZLW7Q.js → chunk-HGVFNEKW.js} +517 -126
  740. package/.output/server/node_modules/oas/dist/{chunk-JMLIY2LK.js → chunk-LSH3X5NA.js} +124 -191
  741. package/.output/server/node_modules/oas/dist/{chunk-TTCGKV5E.js → chunk-S27IGTVG.js} +4 -1
  742. package/.output/server/node_modules/oas/dist/chunk-VA3NKXX7.js +9 -0
  743. package/.output/server/node_modules/oas/dist/index.js +6 -6
  744. package/.output/server/node_modules/oas/dist/types.js +1 -5
  745. package/.output/server/node_modules/oas/dist/utils.js +6 -6
  746. package/.output/server/node_modules/oas/package.json +8 -6
  747. package/.output/server/node_modules/oas-normalize/package.json +5 -5
  748. package/.output/server/node_modules/pluralize/package.json +40 -0
  749. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  750. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
  751. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
  752. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
  753. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
  754. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
  755. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
  756. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
  757. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
  758. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
  759. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
  760. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
  761. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
  762. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
  763. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
  764. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
  765. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
  766. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
  767. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
  768. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
  769. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
  770. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
  771. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
  772. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
  773. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
  774. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
  775. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
  776. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
  777. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
  778. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
  779. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
  780. package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
  781. package/.output/server/package.json +13 -5
  782. package/package.json +16 -16
  783. package/.output/server/node_modules/oas/dist/chunk-LV26LN7C.js +0 -27
  784. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
  785. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
  786. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
  787. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
  788. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
  789. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
  790. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
@@ -0,0 +1,350 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("./types");
4
+ const __1 = require("..");
5
+ const codegen_1 = require("../codegen");
6
+ const ref_error_1 = require("../ref_error");
7
+ const names_1 = require("../names");
8
+ const code_1 = require("../../vocabularies/code");
9
+ const ref_1 = require("../../vocabularies/jtd/ref");
10
+ const type_1 = require("../../vocabularies/jtd/type");
11
+ const parseJson_1 = require("../../runtime/parseJson");
12
+ const util_1 = require("../util");
13
+ const timestamp_1 = require("../../runtime/timestamp");
14
+ const genParse = {
15
+ elements: parseElements,
16
+ values: parseValues,
17
+ discriminator: parseDiscriminator,
18
+ properties: parseProperties,
19
+ optionalProperties: parseProperties,
20
+ enum: parseEnum,
21
+ type: parseType,
22
+ ref: parseRef,
23
+ };
24
+ function compileParser(sch, definitions) {
25
+ const _sch = __1.getCompilingSchema.call(this, sch);
26
+ if (_sch)
27
+ return _sch;
28
+ const { es5, lines } = this.opts.code;
29
+ const { ownProperties } = this.opts;
30
+ const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties });
31
+ const parseName = gen.scopeName("parse");
32
+ const cxt = {
33
+ self: this,
34
+ gen,
35
+ schema: sch.schema,
36
+ schemaEnv: sch,
37
+ definitions,
38
+ data: names_1.default.data,
39
+ parseName,
40
+ char: gen.name("c"),
41
+ };
42
+ let sourceCode;
43
+ try {
44
+ this._compilations.add(sch);
45
+ sch.parseName = parseName;
46
+ parserFunction(cxt);
47
+ gen.optimize(this.opts.code.optimize);
48
+ const parseFuncCode = gen.toString();
49
+ sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${parseFuncCode}`;
50
+ const makeParse = new Function(`${names_1.default.scope}`, sourceCode);
51
+ const parse = makeParse(this.scope.get());
52
+ this.scope.value(parseName, { ref: parse });
53
+ sch.parse = parse;
54
+ }
55
+ catch (e) {
56
+ if (sourceCode)
57
+ this.logger.error("Error compiling parser, function code:", sourceCode);
58
+ delete sch.parse;
59
+ delete sch.parseName;
60
+ throw e;
61
+ }
62
+ finally {
63
+ this._compilations.delete(sch);
64
+ }
65
+ return sch;
66
+ }
67
+ exports.default = compileParser;
68
+ const undef = (0, codegen_1._) `undefined`;
69
+ function parserFunction(cxt) {
70
+ const { gen, parseName, char } = cxt;
71
+ gen.func(parseName, (0, codegen_1._) `${names_1.default.json}, ${names_1.default.jsonPos}, ${names_1.default.jsonPart}`, false, () => {
72
+ gen.let(names_1.default.data);
73
+ gen.let(char);
74
+ gen.assign((0, codegen_1._) `${parseName}.message`, undef);
75
+ gen.assign((0, codegen_1._) `${parseName}.position`, undef);
76
+ gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${names_1.default.jsonPos} || 0`);
77
+ gen.const(names_1.default.jsonLen, (0, codegen_1._) `${names_1.default.json}.length`);
78
+ parseCode(cxt);
79
+ skipWhitespace(cxt);
80
+ gen.if(names_1.default.jsonPart, () => {
81
+ gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos);
82
+ gen.return(names_1.default.data);
83
+ });
84
+ gen.if((0, codegen_1._) `${names_1.default.jsonPos} === ${names_1.default.jsonLen}`, () => gen.return(names_1.default.data));
85
+ jsonSyntaxError(cxt);
86
+ });
87
+ }
88
+ function parseCode(cxt) {
89
+ let form;
90
+ for (const key of types_1.jtdForms) {
91
+ if (key in cxt.schema) {
92
+ form = key;
93
+ break;
94
+ }
95
+ }
96
+ if (form)
97
+ parseNullable(cxt, genParse[form]);
98
+ else
99
+ parseEmpty(cxt);
100
+ }
101
+ const parseBoolean = parseBooleanToken(true, parseBooleanToken(false, jsonSyntaxError));
102
+ function parseNullable(cxt, parseForm) {
103
+ const { gen, schema, data } = cxt;
104
+ if (!schema.nullable)
105
+ return parseForm(cxt);
106
+ tryParseToken(cxt, "null", parseForm, () => gen.assign(data, null));
107
+ }
108
+ function parseElements(cxt) {
109
+ const { gen, schema, data } = cxt;
110
+ parseToken(cxt, "[");
111
+ const ix = gen.let("i", 0);
112
+ gen.assign(data, (0, codegen_1._) `[]`);
113
+ parseItems(cxt, "]", () => {
114
+ const el = gen.let("el");
115
+ parseCode({ ...cxt, schema: schema.elements, data: el });
116
+ gen.assign((0, codegen_1._) `${data}[${ix}++]`, el);
117
+ });
118
+ }
119
+ function parseValues(cxt) {
120
+ const { gen, schema, data } = cxt;
121
+ parseToken(cxt, "{");
122
+ gen.assign(data, (0, codegen_1._) `{}`);
123
+ parseItems(cxt, "}", () => parseKeyValue(cxt, schema.values));
124
+ }
125
+ function parseItems(cxt, endToken, block) {
126
+ tryParseItems(cxt, endToken, block);
127
+ parseToken(cxt, endToken);
128
+ }
129
+ function tryParseItems(cxt, endToken, block) {
130
+ const { gen } = cxt;
131
+ gen.for((0, codegen_1._) `;${names_1.default.jsonPos}<${names_1.default.jsonLen} && ${jsonSlice(1)}!==${endToken};`, () => {
132
+ block();
133
+ tryParseToken(cxt, ",", () => gen.break(), hasItem);
134
+ });
135
+ function hasItem() {
136
+ tryParseToken(cxt, endToken, () => { }, jsonSyntaxError);
137
+ }
138
+ }
139
+ function parseKeyValue(cxt, schema) {
140
+ const { gen } = cxt;
141
+ const key = gen.let("key");
142
+ parseString({ ...cxt, data: key });
143
+ parseToken(cxt, ":");
144
+ parsePropertyValue(cxt, key, schema);
145
+ }
146
+ function parseDiscriminator(cxt) {
147
+ const { gen, data, schema } = cxt;
148
+ const { discriminator, mapping } = schema;
149
+ parseToken(cxt, "{");
150
+ gen.assign(data, (0, codegen_1._) `{}`);
151
+ const startPos = gen.const("pos", names_1.default.jsonPos);
152
+ const value = gen.let("value");
153
+ const tag = gen.let("tag");
154
+ tryParseItems(cxt, "}", () => {
155
+ const key = gen.let("key");
156
+ parseString({ ...cxt, data: key });
157
+ parseToken(cxt, ":");
158
+ gen.if((0, codegen_1._) `${key} === ${discriminator}`, () => {
159
+ parseString({ ...cxt, data: tag });
160
+ gen.assign((0, codegen_1._) `${data}[${key}]`, tag);
161
+ gen.break();
162
+ }, () => parseEmpty({ ...cxt, data: value }) // can be discarded/skipped
163
+ );
164
+ });
165
+ gen.assign(names_1.default.jsonPos, startPos);
166
+ gen.if((0, codegen_1._) `${tag} === undefined`);
167
+ parsingError(cxt, (0, codegen_1.str) `discriminator tag not found`);
168
+ for (const tagValue in mapping) {
169
+ gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`);
170
+ parseSchemaProperties({ ...cxt, schema: mapping[tagValue] }, discriminator);
171
+ }
172
+ gen.else();
173
+ parsingError(cxt, (0, codegen_1.str) `discriminator value not in schema`);
174
+ gen.endIf();
175
+ }
176
+ function parseProperties(cxt) {
177
+ const { gen, data } = cxt;
178
+ parseToken(cxt, "{");
179
+ gen.assign(data, (0, codegen_1._) `{}`);
180
+ parseSchemaProperties(cxt);
181
+ }
182
+ function parseSchemaProperties(cxt, discriminator) {
183
+ const { gen, schema, data } = cxt;
184
+ const { properties, optionalProperties, additionalProperties } = schema;
185
+ parseItems(cxt, "}", () => {
186
+ const key = gen.let("key");
187
+ parseString({ ...cxt, data: key });
188
+ parseToken(cxt, ":");
189
+ gen.if(false);
190
+ parseDefinedProperty(cxt, key, properties);
191
+ parseDefinedProperty(cxt, key, optionalProperties);
192
+ if (discriminator) {
193
+ gen.elseIf((0, codegen_1._) `${key} === ${discriminator}`);
194
+ const tag = gen.let("tag");
195
+ parseString({ ...cxt, data: tag }); // can be discarded, it is already assigned
196
+ }
197
+ gen.else();
198
+ if (additionalProperties) {
199
+ parseEmpty({ ...cxt, data: (0, codegen_1._) `${data}[${key}]` });
200
+ }
201
+ else {
202
+ parsingError(cxt, (0, codegen_1.str) `property ${key} not allowed`);
203
+ }
204
+ gen.endIf();
205
+ });
206
+ if (properties) {
207
+ const hasProp = (0, code_1.hasPropFunc)(gen);
208
+ const allProps = (0, codegen_1.and)(...Object.keys(properties).map((p) => (0, codegen_1._) `${hasProp}.call(${data}, ${p})`));
209
+ gen.if((0, codegen_1.not)(allProps), () => parsingError(cxt, (0, codegen_1.str) `missing required properties`));
210
+ }
211
+ }
212
+ function parseDefinedProperty(cxt, key, schemas = {}) {
213
+ const { gen } = cxt;
214
+ for (const prop in schemas) {
215
+ gen.elseIf((0, codegen_1._) `${key} === ${prop}`);
216
+ parsePropertyValue(cxt, key, schemas[prop]);
217
+ }
218
+ }
219
+ function parsePropertyValue(cxt, key, schema) {
220
+ parseCode({ ...cxt, schema, data: (0, codegen_1._) `${cxt.data}[${key}]` });
221
+ }
222
+ function parseType(cxt) {
223
+ const { gen, schema, data, self } = cxt;
224
+ switch (schema.type) {
225
+ case "boolean":
226
+ parseBoolean(cxt);
227
+ break;
228
+ case "string":
229
+ parseString(cxt);
230
+ break;
231
+ case "timestamp": {
232
+ parseString(cxt);
233
+ const vts = (0, util_1.useFunc)(gen, timestamp_1.default);
234
+ const { allowDate, parseDate } = self.opts;
235
+ const notValid = allowDate ? (0, codegen_1._) `!${vts}(${data}, true)` : (0, codegen_1._) `!${vts}(${data})`;
236
+ const fail = parseDate
237
+ ? (0, codegen_1.or)(notValid, (0, codegen_1._) `(${data} = new Date(${data}), false)`, (0, codegen_1._) `isNaN(${data}.valueOf())`)
238
+ : notValid;
239
+ gen.if(fail, () => parsingError(cxt, (0, codegen_1.str) `invalid timestamp`));
240
+ break;
241
+ }
242
+ case "float32":
243
+ case "float64":
244
+ parseNumber(cxt);
245
+ break;
246
+ default: {
247
+ const t = schema.type;
248
+ if (!self.opts.int32range && (t === "int32" || t === "uint32")) {
249
+ parseNumber(cxt, 16); // 2 ** 53 - max safe integer
250
+ if (t === "uint32") {
251
+ gen.if((0, codegen_1._) `${data} < 0`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`));
252
+ }
253
+ }
254
+ else {
255
+ const [min, max, maxDigits] = type_1.intRange[t];
256
+ parseNumber(cxt, maxDigits);
257
+ gen.if((0, codegen_1._) `${data} < ${min} || ${data} > ${max}`, () => parsingError(cxt, (0, codegen_1.str) `integer out of range`));
258
+ }
259
+ }
260
+ }
261
+ }
262
+ function parseString(cxt) {
263
+ parseToken(cxt, '"');
264
+ parseWith(cxt, parseJson_1.parseJsonString);
265
+ }
266
+ function parseEnum(cxt) {
267
+ const { gen, data, schema } = cxt;
268
+ const enumSch = schema.enum;
269
+ parseToken(cxt, '"');
270
+ // TODO loopEnum
271
+ gen.if(false);
272
+ for (const value of enumSch) {
273
+ const valueStr = JSON.stringify(value).slice(1); // remove starting quote
274
+ gen.elseIf((0, codegen_1._) `${jsonSlice(valueStr.length)} === ${valueStr}`);
275
+ gen.assign(data, (0, codegen_1.str) `${value}`);
276
+ gen.add(names_1.default.jsonPos, valueStr.length);
277
+ }
278
+ gen.else();
279
+ jsonSyntaxError(cxt);
280
+ gen.endIf();
281
+ }
282
+ function parseNumber(cxt, maxDigits) {
283
+ const { gen } = cxt;
284
+ skipWhitespace(cxt);
285
+ gen.if((0, codegen_1._) `"-0123456789".indexOf(${jsonSlice(1)}) < 0`, () => jsonSyntaxError(cxt), () => parseWith(cxt, parseJson_1.parseJsonNumber, maxDigits));
286
+ }
287
+ function parseBooleanToken(bool, fail) {
288
+ return (cxt) => {
289
+ const { gen, data } = cxt;
290
+ tryParseToken(cxt, `${bool}`, () => fail(cxt), () => gen.assign(data, bool));
291
+ };
292
+ }
293
+ function parseRef(cxt) {
294
+ const { gen, self, definitions, schema, schemaEnv } = cxt;
295
+ const { ref } = schema;
296
+ const refSchema = definitions[ref];
297
+ if (!refSchema)
298
+ throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`);
299
+ if (!(0, ref_1.hasRef)(refSchema))
300
+ return parseCode({ ...cxt, schema: refSchema });
301
+ const { root } = schemaEnv;
302
+ const sch = compileParser.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions);
303
+ partialParse(cxt, getParser(gen, sch), true);
304
+ }
305
+ function getParser(gen, sch) {
306
+ return sch.parse
307
+ ? gen.scopeValue("parse", { ref: sch.parse })
308
+ : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.parse`;
309
+ }
310
+ function parseEmpty(cxt) {
311
+ parseWith(cxt, parseJson_1.parseJson);
312
+ }
313
+ function parseWith(cxt, parseFunc, args) {
314
+ partialParse(cxt, (0, util_1.useFunc)(cxt.gen, parseFunc), args);
315
+ }
316
+ function partialParse(cxt, parseFunc, args) {
317
+ const { gen, data } = cxt;
318
+ gen.assign(data, (0, codegen_1._) `${parseFunc}(${names_1.default.json}, ${names_1.default.jsonPos}${args ? (0, codegen_1._) `, ${args}` : codegen_1.nil})`);
319
+ gen.assign(names_1.default.jsonPos, (0, codegen_1._) `${parseFunc}.position`);
320
+ gen.if((0, codegen_1._) `${data} === undefined`, () => parsingError(cxt, (0, codegen_1._) `${parseFunc}.message`));
321
+ }
322
+ function parseToken(cxt, tok) {
323
+ tryParseToken(cxt, tok, jsonSyntaxError);
324
+ }
325
+ function tryParseToken(cxt, tok, fail, success) {
326
+ const { gen } = cxt;
327
+ const n = tok.length;
328
+ skipWhitespace(cxt);
329
+ gen.if((0, codegen_1._) `${jsonSlice(n)} === ${tok}`, () => {
330
+ gen.add(names_1.default.jsonPos, n);
331
+ success === null || success === void 0 ? void 0 : success(cxt);
332
+ }, () => fail(cxt));
333
+ }
334
+ function skipWhitespace({ gen, char: c }) {
335
+ gen.code((0, codegen_1._) `while((${c}=${names_1.default.json}[${names_1.default.jsonPos}],${c}===" "||${c}==="\\n"||${c}==="\\r"||${c}==="\\t"))${names_1.default.jsonPos}++;`);
336
+ }
337
+ function jsonSlice(len) {
338
+ return len === 1
339
+ ? (0, codegen_1._) `${names_1.default.json}[${names_1.default.jsonPos}]`
340
+ : (0, codegen_1._) `${names_1.default.json}.slice(${names_1.default.jsonPos}, ${names_1.default.jsonPos}+${len})`;
341
+ }
342
+ function jsonSyntaxError(cxt) {
343
+ parsingError(cxt, (0, codegen_1._) `"unexpected token " + ${names_1.default.json}[${names_1.default.jsonPos}]`);
344
+ }
345
+ function parsingError({ gen, parseName }, msg) {
346
+ gen.assign((0, codegen_1._) `${parseName}.message`, msg);
347
+ gen.assign((0, codegen_1._) `${parseName}.position`, names_1.default.jsonPos);
348
+ gen.return(undef);
349
+ }
350
+ //# sourceMappingURL=parse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../lib/compile/jtd/parse.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAmF;AACnF,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAmD;AACnD,oDAAiD;AACjD,sDAA6D;AAC7D,uDAAmF;AACnF,kCAA+B;AAC/B,uDAAoD;AAIpD,MAAM,QAAQ,GAA+B;IAC3C,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,WAAW;IACnB,aAAa,EAAE,kBAAkB;IACjC,UAAU,EAAE,eAAe;IAC3B,kBAAkB,EAAE,eAAe;IACnC,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,GAAG,EAAE,QAAQ;CACd,CAAA;AAaD,SAAwB,aAAa,CAEnC,GAAc,EACd,WAA4B;IAE5B,MAAM,IAAI,GAAG,sBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IAC/C,IAAI,IAAI;QAAE,OAAO,IAAI,CAAA;IACrB,MAAM,EAAC,GAAG,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;IACnC,MAAM,EAAC,aAAa,EAAC,GAAG,IAAI,CAAC,IAAI,CAAA;IACjC,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,aAAa,EAAC,CAAC,CAAA;IAChE,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;IACxC,MAAM,GAAG,GAAa;QACpB,IAAI,EAAE,IAAI;QACV,GAAG;QACH,MAAM,EAAE,GAAG,CAAC,MAAsB;QAClC,SAAS,EAAE,GAAG;QACd,WAAW;QACX,IAAI,EA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AA,WAAC,EAAA,GAAG,SAAS,UAAU,EAAE,GAAG,CAAC,CAAA;IACxC,GAAG,CAAC,MAAM,CAAC,IAAA,WAAC,EAAA,GAAG,SAAS,WAAW,EAAE,eAAC,CAAC,OAAO,CAAC,CAAA;IAC/C,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type Ajv from "../../core";
2
+ import { SchemaObjectMap } from "./types";
3
+ import { SchemaEnv } from "..";
4
+ export default function compileSerializer(this: Ajv, sch: SchemaEnv, definitions: SchemaObjectMap): SchemaEnv;
@@ -0,0 +1,229 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const types_1 = require("./types");
4
+ const __1 = require("..");
5
+ const codegen_1 = require("../codegen");
6
+ const ref_error_1 = require("../ref_error");
7
+ const names_1 = require("../names");
8
+ const code_1 = require("../../vocabularies/code");
9
+ const ref_1 = require("../../vocabularies/jtd/ref");
10
+ const util_1 = require("../util");
11
+ const quote_1 = require("../../runtime/quote");
12
+ const genSerialize = {
13
+ elements: serializeElements,
14
+ values: serializeValues,
15
+ discriminator: serializeDiscriminator,
16
+ properties: serializeProperties,
17
+ optionalProperties: serializeProperties,
18
+ enum: serializeString,
19
+ type: serializeType,
20
+ ref: serializeRef,
21
+ };
22
+ function compileSerializer(sch, definitions) {
23
+ const _sch = __1.getCompilingSchema.call(this, sch);
24
+ if (_sch)
25
+ return _sch;
26
+ const { es5, lines } = this.opts.code;
27
+ const { ownProperties } = this.opts;
28
+ const gen = new codegen_1.CodeGen(this.scope, { es5, lines, ownProperties });
29
+ const serializeName = gen.scopeName("serialize");
30
+ const cxt = {
31
+ self: this,
32
+ gen,
33
+ schema: sch.schema,
34
+ schemaEnv: sch,
35
+ definitions,
36
+ data: names_1.default.data,
37
+ };
38
+ let sourceCode;
39
+ try {
40
+ this._compilations.add(sch);
41
+ sch.serializeName = serializeName;
42
+ gen.func(serializeName, names_1.default.data, false, () => {
43
+ gen.let(names_1.default.json, (0, codegen_1.str) ``);
44
+ serializeCode(cxt);
45
+ gen.return(names_1.default.json);
46
+ });
47
+ gen.optimize(this.opts.code.optimize);
48
+ const serializeFuncCode = gen.toString();
49
+ sourceCode = `${gen.scopeRefs(names_1.default.scope)}return ${serializeFuncCode}`;
50
+ const makeSerialize = new Function(`${names_1.default.scope}`, sourceCode);
51
+ const serialize = makeSerialize(this.scope.get());
52
+ this.scope.value(serializeName, { ref: serialize });
53
+ sch.serialize = serialize;
54
+ }
55
+ catch (e) {
56
+ if (sourceCode)
57
+ this.logger.error("Error compiling serializer, function code:", sourceCode);
58
+ delete sch.serialize;
59
+ delete sch.serializeName;
60
+ throw e;
61
+ }
62
+ finally {
63
+ this._compilations.delete(sch);
64
+ }
65
+ return sch;
66
+ }
67
+ exports.default = compileSerializer;
68
+ function serializeCode(cxt) {
69
+ let form;
70
+ for (const key of types_1.jtdForms) {
71
+ if (key in cxt.schema) {
72
+ form = key;
73
+ break;
74
+ }
75
+ }
76
+ serializeNullable(cxt, form ? genSerialize[form] : serializeEmpty);
77
+ }
78
+ function serializeNullable(cxt, serializeForm) {
79
+ const { gen, schema, data } = cxt;
80
+ if (!schema.nullable)
81
+ return serializeForm(cxt);
82
+ gen.if((0, codegen_1._) `${data} === undefined || ${data} === null`, () => gen.add(names_1.default.json, (0, codegen_1._) `"null"`), () => serializeForm(cxt));
83
+ }
84
+ function serializeElements(cxt) {
85
+ const { gen, schema, data } = cxt;
86
+ gen.add(names_1.default.json, (0, codegen_1.str) `[`);
87
+ const first = gen.let("first", true);
88
+ gen.forOf("el", data, (el) => {
89
+ addComma(cxt, first);
90
+ serializeCode({ ...cxt, schema: schema.elements, data: el });
91
+ });
92
+ gen.add(names_1.default.json, (0, codegen_1.str) `]`);
93
+ }
94
+ function serializeValues(cxt) {
95
+ const { gen, schema, data } = cxt;
96
+ gen.add(names_1.default.json, (0, codegen_1.str) `{`);
97
+ const first = gen.let("first", true);
98
+ gen.forIn("key", data, (key) => serializeKeyValue(cxt, key, schema.values, first));
99
+ gen.add(names_1.default.json, (0, codegen_1.str) `}`);
100
+ }
101
+ function serializeKeyValue(cxt, key, schema, first) {
102
+ const { gen, data } = cxt;
103
+ addComma(cxt, first);
104
+ serializeString({ ...cxt, data: key });
105
+ gen.add(names_1.default.json, (0, codegen_1.str) `:`);
106
+ const value = gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`);
107
+ serializeCode({ ...cxt, schema, data: value });
108
+ }
109
+ function serializeDiscriminator(cxt) {
110
+ const { gen, schema, data } = cxt;
111
+ const { discriminator } = schema;
112
+ gen.add(names_1.default.json, (0, codegen_1.str) `{${JSON.stringify(discriminator)}:`);
113
+ const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(discriminator)}`);
114
+ serializeString({ ...cxt, data: tag });
115
+ gen.if(false);
116
+ for (const tagValue in schema.mapping) {
117
+ gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`);
118
+ const sch = schema.mapping[tagValue];
119
+ serializeSchemaProperties({ ...cxt, schema: sch }, discriminator);
120
+ }
121
+ gen.endIf();
122
+ gen.add(names_1.default.json, (0, codegen_1.str) `}`);
123
+ }
124
+ function serializeProperties(cxt) {
125
+ const { gen } = cxt;
126
+ gen.add(names_1.default.json, (0, codegen_1.str) `{`);
127
+ serializeSchemaProperties(cxt);
128
+ gen.add(names_1.default.json, (0, codegen_1.str) `}`);
129
+ }
130
+ function serializeSchemaProperties(cxt, discriminator) {
131
+ const { gen, schema, data } = cxt;
132
+ const { properties, optionalProperties } = schema;
133
+ const props = keys(properties);
134
+ const optProps = keys(optionalProperties);
135
+ const allProps = allProperties(props.concat(optProps));
136
+ let first = !discriminator;
137
+ let firstProp;
138
+ for (const key of props) {
139
+ if (first)
140
+ first = false;
141
+ else
142
+ gen.add(names_1.default.json, (0, codegen_1.str) `,`);
143
+ serializeProperty(key, properties[key], keyValue(key));
144
+ }
145
+ if (first)
146
+ firstProp = gen.let("first", true);
147
+ for (const key of optProps) {
148
+ const value = keyValue(key);
149
+ gen.if((0, codegen_1.and)((0, codegen_1._) `${value} !== undefined`, (0, code_1.isOwnProperty)(gen, data, key)), () => {
150
+ addComma(cxt, firstProp);
151
+ serializeProperty(key, optionalProperties[key], value);
152
+ });
153
+ }
154
+ if (schema.additionalProperties) {
155
+ gen.forIn("key", data, (key) => gen.if(isAdditional(key, allProps), () => serializeKeyValue(cxt, key, {}, firstProp)));
156
+ }
157
+ function keys(ps) {
158
+ return ps ? Object.keys(ps) : [];
159
+ }
160
+ function allProperties(ps) {
161
+ if (discriminator)
162
+ ps.push(discriminator);
163
+ if (new Set(ps).size !== ps.length) {
164
+ throw new Error("JTD: properties/optionalProperties/disciminator overlap");
165
+ }
166
+ return ps;
167
+ }
168
+ function keyValue(key) {
169
+ return gen.const("value", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(key)}`);
170
+ }
171
+ function serializeProperty(key, propSchema, value) {
172
+ gen.add(names_1.default.json, (0, codegen_1.str) `${JSON.stringify(key)}:`);
173
+ serializeCode({ ...cxt, schema: propSchema, data: value });
174
+ }
175
+ function isAdditional(key, ps) {
176
+ return ps.length ? (0, codegen_1.and)(...ps.map((p) => (0, codegen_1._) `${key} !== ${p}`)) : true;
177
+ }
178
+ }
179
+ function serializeType(cxt) {
180
+ const { gen, schema, data } = cxt;
181
+ switch (schema.type) {
182
+ case "boolean":
183
+ gen.add(names_1.default.json, (0, codegen_1._) `${data} ? "true" : "false"`);
184
+ break;
185
+ case "string":
186
+ serializeString(cxt);
187
+ break;
188
+ case "timestamp":
189
+ gen.if((0, codegen_1._) `${data} instanceof Date`, () => gen.add(names_1.default.json, (0, codegen_1._) `'"' + ${data}.toISOString() + '"'`), () => serializeString(cxt));
190
+ break;
191
+ default:
192
+ serializeNumber(cxt);
193
+ }
194
+ }
195
+ function serializeString({ gen, data }) {
196
+ gen.add(names_1.default.json, (0, codegen_1._) `${(0, util_1.useFunc)(gen, quote_1.default)}(${data})`);
197
+ }
198
+ function serializeNumber({ gen, data }) {
199
+ gen.add(names_1.default.json, (0, codegen_1._) `"" + ${data}`);
200
+ }
201
+ function serializeRef(cxt) {
202
+ const { gen, self, data, definitions, schema, schemaEnv } = cxt;
203
+ const { ref } = schema;
204
+ const refSchema = definitions[ref];
205
+ if (!refSchema)
206
+ throw new ref_error_1.default(self.opts.uriResolver, "", ref, `No definition ${ref}`);
207
+ if (!(0, ref_1.hasRef)(refSchema))
208
+ return serializeCode({ ...cxt, schema: refSchema });
209
+ const { root } = schemaEnv;
210
+ const sch = compileSerializer.call(self, new __1.SchemaEnv({ schema: refSchema, root }), definitions);
211
+ gen.add(names_1.default.json, (0, codegen_1._) `${getSerialize(gen, sch)}(${data})`);
212
+ }
213
+ function getSerialize(gen, sch) {
214
+ return sch.serialize
215
+ ? gen.scopeValue("serialize", { ref: sch.serialize })
216
+ : (0, codegen_1._) `${gen.scopeValue("wrapper", { ref: sch })}.serialize`;
217
+ }
218
+ function serializeEmpty({ gen, data }) {
219
+ gen.add(names_1.default.json, (0, codegen_1._) `JSON.stringify(${data})`);
220
+ }
221
+ function addComma({ gen }, first) {
222
+ if (first) {
223
+ gen.if(first, () => gen.assign(first, false), () => gen.add(names_1.default.json, (0, codegen_1.str) `,`));
224
+ }
225
+ else {
226
+ gen.add(names_1.default.json, (0, codegen_1.str) `,`);
227
+ }
228
+ }
229
+ //# sourceMappingURL=serialize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../lib/compile/jtd/serialize.ts"],"names":[],"mappings":";;AAEA,mCAA0D;AAC1D,0BAAgD;AAChD,wCAAwE;AACxE,4CAA0C;AAC1C,oCAAwB;AACxB,kDAAqD;AACrD,oDAAiD;AACjD,kCAA+B;AAC/B,+CAAuC;AAEvC,MAAM,YAAY,GAAkD;IAClE,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE,eAAe;IACvB,aAAa,EAAE,sBAAsB;I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EAAA,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,EAAE,EAAC,GAAG,EAAE,GAAG,EAAC,CAAC,YAAY,CAAA;AAC3D,CAAC;AAED,SAAS,cAAc,CAAC,EAAC,GAAG,EAAE,IAAI,EAAe;IAC/C,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,WAAC,EAAA,kBAAkB,IAAI,GAAG,CAAC,CAAA;AAC7C,CAAC;AAED,SAAS,QAAQ,CAAC,EAAC,GAAG,EAAe,EAAE,KAAY;IACjD,IAAI,KAAK,EAAE,CAAC;QACV,GAAG,CAAC,EAAE,CACJ,KAAK,EACL,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9B,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,aAAG,EAAA,GAAG,CAAC,CAC9B,CAAA;IACH,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,GAAG,CAAC,eAAC,CAAC,IAAI,EAAE,IAAA,aAAG,EAAA,GAAG,CAAC,CAAA;IACzB,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { SchemaObject } from "../../types";
2
+ export type SchemaObjectMap = {
3
+ [Ref in string]?: SchemaObject;
4
+ };
5
+ export declare const jtdForms: readonly ["elements", "values", "discriminator", "properties", "optionalProperties", "enum", "type", "ref"];
6
+ export type JTDForm = (typeof jtdForms)[number];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.jtdForms = void 0;
4
+ exports.jtdForms = [
5
+ "elements",
6
+ "values",
7
+ "discriminator",
8
+ "properties",
9
+ "optionalProperties",
10
+ "enum",
11
+ "type",
12
+ "ref",
13
+ ];
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../lib/compile/jtd/types.ts"],"names":[],"mappings":";;;AAIa,QAAA,QAAQ,GAAG;IACtB,UAAU;IACV,QAAQ;IACR,eAAe;IACf,YAAY;IACZ,oBAAoB;IACpB,MAAM;IACN,MAAM;IACN,KAAK;CACG,CAAA"}