@kubb/agent 4.33.1 → 4.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +18 -87
  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/@redocly/ajv/dist/2020.js +55 -0
  14. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
  15. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
  16. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
  17. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
  18. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
  19. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
  20. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
  21. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
  22. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
  23. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
  24. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
  25. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
  26. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
  27. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
  28. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
  29. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
  30. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
  31. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
  32. package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
  33. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
  34. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
  35. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  36. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  37. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  38. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  39. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  40. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  41. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  42. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  43. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  44. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
  45. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
  46. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
  47. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
  48. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
  49. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
  50. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  51. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
  52. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  53. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  54. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
  55. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  56. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  57. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
  58. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
  59. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
  60. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  61. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
  62. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  63. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
  103. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
  104. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
  105. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  106. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
  107. package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
  108. package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
  109. package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
  110. package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
  111. package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
  112. package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
  113. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +54 -0
  114. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
  115. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
  116. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +682 -0
  117. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
  118. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
  119. package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
  120. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
  121. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
  122. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
  123. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +25 -0
  124. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
  125. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
  126. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
  127. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
  128. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
  129. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
  130. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
  131. package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
  132. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
  133. package/.output/server/node_modules/@redocly/config/package.json +28 -0
  134. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
  135. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
  136. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
  137. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
  138. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
  139. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
  140. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
  141. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
  142. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
  143. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
  144. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +14 -0
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +14 -0
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
  342. package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
  343. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  344. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  345. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  346. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  347. package/.output/server/node_modules/colorette/index.js +82 -0
  348. package/.output/server/node_modules/colorette/package.json +39 -0
  349. package/.output/server/node_modules/js-levenshtein/index.js +105 -0
  350. package/.output/server/node_modules/js-levenshtein/package.json +49 -0
  351. package/.output/server/node_modules/pluralize/package.json +40 -0
  352. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  353. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
  354. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
  355. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
  356. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
  357. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
  358. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
  359. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
  360. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
  361. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
  362. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
  363. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
  364. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
  365. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
  366. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
  367. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
  368. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
  369. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
  370. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
  371. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
  372. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
  373. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
  374. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
  375. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
  376. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
  377. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
  378. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
  379. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
  380. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
  381. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
  382. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
  383. package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
  384. package/.output/server/package.json +9 -1
  385. package/package.json +16 -16
  386. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
  387. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
  388. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
  389. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
  390. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
  391. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
  392. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
@@ -0,0 +1,511 @@
1
+ import { isPlainObject } from '../utils/is-plain-object.js';
2
+ import { AsyncApi2Bindings, CorrelationId, Tag, ServerMap, ExternalDocs, SecuritySchemeFlows, ServerVariable, Contact, License, MessageExample, } from './asyncapi2.js';
3
+ import { listOf, mapOf } from './index.js';
4
+ import { Dependencies, Discriminator, DiscriminatorMapping, Schema, SchemaProperties, } from './json-schema-draft7.shared.js';
5
+ const Root = {
6
+ properties: {
7
+ asyncapi: {
8
+ type: 'string',
9
+ enum: ['3.0.0'],
10
+ description: 'REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document.',
11
+ },
12
+ info: 'Info',
13
+ id: {
14
+ type: 'string',
15
+ description: 'Identifier of the application the AsyncAPI document is defining.',
16
+ },
17
+ servers: 'ServerMap',
18
+ channels: 'NamedChannels',
19
+ components: 'Components',
20
+ operations: 'NamedOperations',
21
+ defaultContentType: {
22
+ type: 'string',
23
+ description: `Default content type to use when encoding/decoding a message's payload.`,
24
+ },
25
+ },
26
+ required: ['asyncapi', 'info'],
27
+ description: 'This is the root document object for the API specification. It combines resource listing and API declaration together into one document.',
28
+ };
29
+ const Channel = {
30
+ properties: {
31
+ address: {
32
+ type: 'string',
33
+ description: `An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`,
34
+ },
35
+ messages: 'NamedMessages',
36
+ title: {
37
+ type: 'string',
38
+ description: 'A human-friendly title for the channel.',
39
+ },
40
+ summary: {
41
+ type: 'string',
42
+ description: 'A short summary of the channel.',
43
+ },
44
+ description: {
45
+ type: 'string',
46
+ description: 'An optional description of this channel. CommonMark syntax can be used for rich text representation.',
47
+ },
48
+ servers: 'ServerList',
49
+ parameters: 'ParametersMap',
50
+ bindings: 'ChannelBindings',
51
+ tags: 'TagList',
52
+ externalDocs: 'ExternalDocs',
53
+ },
54
+ description: 'Describes a shared communication channel.',
55
+ };
56
+ const Server = {
57
+ properties: {
58
+ host: {
59
+ type: 'string',
60
+ description: 'REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}.',
61
+ },
62
+ pathname: {
63
+ type: 'string',
64
+ description: 'The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}.',
65
+ },
66
+ protocol: {
67
+ type: 'string',
68
+ description: 'REQUIRED. The protocol this server supports for connection.',
69
+ },
70
+ protocolVersion: {
71
+ type: 'string',
72
+ description: 'The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc.',
73
+ },
74
+ description: {
75
+ type: 'string',
76
+ description: 'An optional string describing the server. CommonMark syntax MAY be used for rich text representation.',
77
+ },
78
+ variables: 'ServerVariablesMap',
79
+ security: 'SecuritySchemeList',
80
+ bindings: 'ServerBindings',
81
+ externalDocs: 'ExternalDocs',
82
+ tags: 'TagList',
83
+ },
84
+ required: ['host', 'protocol'],
85
+ description: 'An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools.',
86
+ };
87
+ const Info = {
88
+ properties: {
89
+ title: {
90
+ type: 'string',
91
+ description: 'REQUIRED. The title of the application.',
92
+ },
93
+ version: {
94
+ type: 'string',
95
+ description: 'REQUIRED Provides the version of the application API (not to be confused with the specification version).',
96
+ },
97
+ description: {
98
+ type: 'string',
99
+ description: 'A short description of the application. CommonMark syntax can be used for rich text representation.',
100
+ },
101
+ termsOfService: {
102
+ type: 'string',
103
+ description: 'A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL.',
104
+ },
105
+ contact: 'Contact',
106
+ license: 'License',
107
+ tags: 'TagList',
108
+ externalDocs: 'ExternalDocs',
109
+ },
110
+ required: ['title', 'version'],
111
+ description: 'The object provides metadata about the API. The metadata can be used by the clients if needed.',
112
+ };
113
+ const Parameter = {
114
+ properties: {
115
+ description: {
116
+ type: 'string',
117
+ description: 'An optional description for the parameter. CommonMark syntax MAY be used for rich text representation.',
118
+ },
119
+ enum: {
120
+ type: 'array',
121
+ items: { type: 'string' },
122
+ description: 'An enumeration of string values to be used if the substitution options are from a limited set.',
123
+ },
124
+ default: {
125
+ type: 'string',
126
+ description: 'The default value to use for substitution, and to send, if an alternate value is not supplied.',
127
+ },
128
+ examples: {
129
+ type: 'array',
130
+ items: { type: 'string' },
131
+ description: 'An array of examples of the parameter value.',
132
+ },
133
+ location: {
134
+ type: 'string',
135
+ description: 'A runtime expression that specifies the location of the parameter value.',
136
+ },
137
+ },
138
+ description: 'Describes a parameter included in a channel address.',
139
+ };
140
+ const Message = {
141
+ properties: {
142
+ headers: 'Schema',
143
+ payload: (value) => {
144
+ if (!!value && value?.['schemaFormat']) {
145
+ return {
146
+ properties: {
147
+ schema: 'Schema',
148
+ schemaFormat: { type: 'string' },
149
+ },
150
+ required: ['schema', 'schemaFormat'],
151
+ };
152
+ }
153
+ else {
154
+ return 'Schema';
155
+ }
156
+ },
157
+ correlationId: 'CorrelationId',
158
+ contentType: {
159
+ type: 'string',
160
+ description: `The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field.`,
161
+ },
162
+ name: {
163
+ type: 'string',
164
+ description: 'A machine-friendly name for the message.',
165
+ },
166
+ title: {
167
+ type: 'string',
168
+ description: 'A human-friendly title for the message.',
169
+ },
170
+ summary: {
171
+ type: 'string',
172
+ description: 'A short summary of what the message is about.',
173
+ },
174
+ description: {
175
+ type: 'string',
176
+ description: 'A verbose explanation of the message. CommonMark syntax can be used for rich text representation.',
177
+ },
178
+ tags: 'TagList',
179
+ externalDocs: 'ExternalDocs',
180
+ bindings: 'MessageBindings',
181
+ examples: 'MessageExampleList',
182
+ traits: 'MessageTraitList',
183
+ },
184
+ additionalProperties: {},
185
+ description: 'Describes a message received on a given channel and operation.',
186
+ };
187
+ const OperationTrait = {
188
+ properties: {
189
+ tags: 'TagList',
190
+ title: {
191
+ type: 'string',
192
+ description: 'A human-friendly title for the operation.',
193
+ },
194
+ summary: {
195
+ type: 'string',
196
+ description: 'A short summary of what the operation is about.',
197
+ },
198
+ description: {
199
+ type: 'string',
200
+ description: 'A verbose explanation of the operation. CommonMark syntax can be used for rich text representation.',
201
+ },
202
+ externalDocs: 'ExternalDocs',
203
+ security: 'SecuritySchemeList',
204
+ bindings: 'OperationBindings',
205
+ },
206
+ required: [],
207
+ description: 'Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones.',
208
+ };
209
+ const MessageTrait = {
210
+ properties: {
211
+ headers: (value) => {
212
+ if (typeof value === 'function' || isPlainObject(value)) {
213
+ return {
214
+ properties: {
215
+ schema: 'Schema',
216
+ schemaFormat: { type: 'string' },
217
+ },
218
+ };
219
+ }
220
+ else {
221
+ return 'Schema';
222
+ }
223
+ },
224
+ correlationId: 'CorrelationId',
225
+ contentType: {
226
+ type: 'string',
227
+ description: `The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field.`,
228
+ },
229
+ name: {
230
+ type: 'string',
231
+ description: 'A machine-friendly name for the message.',
232
+ },
233
+ title: {
234
+ type: 'string',
235
+ description: 'A human-friendly title for the message.',
236
+ },
237
+ summary: {
238
+ type: 'string',
239
+ description: 'A short summary of what the message is about.',
240
+ },
241
+ description: {
242
+ type: 'string',
243
+ description: 'A verbose explanation of the message. CommonMark syntax can be used for rich text representation.',
244
+ },
245
+ tags: 'TagList',
246
+ externalDocs: 'ExternalDocs',
247
+ bindings: 'MessageBindings',
248
+ examples: 'MessageExampleList',
249
+ },
250
+ additionalProperties: {},
251
+ description: 'Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits.',
252
+ };
253
+ const Operation = {
254
+ properties: {
255
+ action: {
256
+ type: 'string',
257
+ enum: ['send', 'receive'],
258
+ description: `Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel.`,
259
+ },
260
+ channel: 'Channel',
261
+ title: {
262
+ type: 'string',
263
+ description: 'A human-friendly title for the operation.',
264
+ },
265
+ tags: 'TagList',
266
+ summary: {
267
+ type: 'string',
268
+ description: 'A short summary of what the operation is about.',
269
+ },
270
+ description: {
271
+ type: 'string',
272
+ description: 'A verbose explanation of the operation. CommonMark syntax can be used for rich text representation.',
273
+ },
274
+ externalDocs: 'ExternalDocs',
275
+ operationId: { type: 'string' },
276
+ security: 'SecuritySchemeList',
277
+ bindings: 'OperationBindings',
278
+ traits: 'OperationTraitList',
279
+ messages: 'MessageList',
280
+ reply: 'OperationReply',
281
+ },
282
+ required: ['action', 'channel'],
283
+ };
284
+ const OperationReply = {
285
+ properties: {
286
+ channel: 'Channel',
287
+ messages: 'MessageList',
288
+ address: 'OperationReplyAddress',
289
+ },
290
+ description: 'Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message.',
291
+ };
292
+ const OperationReplyAddress = {
293
+ properties: {
294
+ location: {
295
+ type: 'string',
296
+ description: 'REQUIRED. A runtime expression that specifies the location of the reply address.',
297
+ },
298
+ description: {
299
+ type: 'string',
300
+ description: 'An optional description of the address. CommonMark syntax can be used for rich text representation.',
301
+ },
302
+ },
303
+ required: ['location'],
304
+ description: 'An object that specifies where an operation has to send the reply.',
305
+ };
306
+ const Components = {
307
+ properties: {
308
+ messages: 'NamedMessages',
309
+ parameters: 'NamedParameters',
310
+ schemas: 'NamedSchemas',
311
+ replies: 'NamedOperationReplies',
312
+ replyAddresses: 'NamedOperationRelyAddresses',
313
+ correlationIds: 'NamedCorrelationIds',
314
+ messageTraits: 'NamedMessageTraits',
315
+ operationTraits: 'NamedOperationTraits',
316
+ tags: 'NamedTags',
317
+ externalDocs: 'NamedExternalDocs',
318
+ securitySchemes: 'NamedSecuritySchemes',
319
+ servers: 'ServerMap',
320
+ serverVariables: 'ServerVariablesMap',
321
+ channels: 'NamedChannels',
322
+ operations: 'NamedOperations',
323
+ serverBindings: 'ServerBindings',
324
+ channelBindings: 'ChannelBindings',
325
+ operationBindings: 'OperationBindings',
326
+ messageBindings: 'MessageBindings',
327
+ },
328
+ description: 'Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object.',
329
+ };
330
+ const ImplicitFlow = {
331
+ properties: {
332
+ refreshUrl: { type: 'string' },
333
+ availableScopes: { type: 'object', additionalProperties: { type: 'string' } },
334
+ authorizationUrl: { type: 'string' },
335
+ },
336
+ required: ['authorizationUrl', 'availableScopes'],
337
+ description: 'Configuration for the OAuth Implicit flow.',
338
+ };
339
+ const PasswordFlow = {
340
+ properties: {
341
+ refreshUrl: { type: 'string' },
342
+ availableScopes: { type: 'object', additionalProperties: { type: 'string' } },
343
+ tokenUrl: { type: 'string' },
344
+ },
345
+ required: ['tokenUrl', 'availableScopes'],
346
+ description: 'Configuration for the OAuth Resource Owner Protected Credentials flow.',
347
+ };
348
+ const ClientCredentials = {
349
+ properties: {
350
+ refreshUrl: { type: 'string' },
351
+ availableScopes: { type: 'object', additionalProperties: { type: 'string' } },
352
+ tokenUrl: { type: 'string' },
353
+ },
354
+ required: ['tokenUrl', 'availableScopes'],
355
+ description: 'Configuration for the OAuth Client Credentials flow.',
356
+ };
357
+ const AuthorizationCode = {
358
+ properties: {
359
+ refreshUrl: { type: 'string' },
360
+ authorizationUrl: { type: 'string' },
361
+ availableScopes: { type: 'object', additionalProperties: { type: 'string' } },
362
+ tokenUrl: { type: 'string' },
363
+ },
364
+ required: ['authorizationUrl', 'tokenUrl', 'availableScopes'],
365
+ description: 'Configuration for the OAuth Authorization Code flow.',
366
+ };
367
+ const SecurityScheme = {
368
+ properties: {
369
+ type: {
370
+ enum: [
371
+ 'userPassword',
372
+ 'apiKey',
373
+ 'X509',
374
+ 'symmetricEncryption',
375
+ 'asymmetricEncryption',
376
+ 'httpApiKey',
377
+ 'http',
378
+ 'oauth2',
379
+ 'openIdConnect',
380
+ 'plain',
381
+ 'scramSha256',
382
+ 'scramSha512',
383
+ 'gssapi',
384
+ ],
385
+ description: 'REQUIRED. The type of the security scheme. Valid values are "userPassword", "apiKey", "X509", "symmetricEncryption", "asymmetricEncryption", "httpApiKey", "http", "oauth2", "openIdConnect", "plain", "scramSha256", "scramSha512", and "gssapi".',
386
+ },
387
+ description: {
388
+ type: 'string',
389
+ description: 'A short description for security scheme. CommonMark syntax MAY be used for rich text representation.',
390
+ },
391
+ name: {
392
+ type: 'string',
393
+ description: 'REQUIRED. The name of the header, query or cookie parameter to be used.',
394
+ },
395
+ in: {
396
+ type: 'string',
397
+ enum: ['query', 'header', 'cookie', 'user', 'password'],
398
+ description: 'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.',
399
+ },
400
+ scheme: {
401
+ type: 'string',
402
+ description: 'REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.',
403
+ },
404
+ bearerFormat: {
405
+ type: 'string',
406
+ description: 'A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.',
407
+ },
408
+ flows: 'SecuritySchemeFlows',
409
+ openIdConnectUrl: {
410
+ type: 'string',
411
+ description: 'REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL.',
412
+ },
413
+ scopes: {
414
+ type: 'array',
415
+ items: { type: 'string' },
416
+ description: 'List of the needed scope names. An empty array means no scopes are needed.',
417
+ },
418
+ },
419
+ required(value) {
420
+ switch (value?.type) {
421
+ case 'apiKey':
422
+ return ['type', 'in'];
423
+ case 'httpApiKey':
424
+ return ['type', 'name', 'in'];
425
+ case 'http':
426
+ return ['type', 'scheme'];
427
+ case 'oauth2':
428
+ return ['type', 'flows'];
429
+ case 'openIdConnect':
430
+ return ['type', 'openIdConnectUrl'];
431
+ default:
432
+ return ['type'];
433
+ }
434
+ },
435
+ allowed(value) {
436
+ switch (value?.type) {
437
+ case 'apiKey':
438
+ return ['type', 'in', 'description'];
439
+ case 'httpApiKey':
440
+ return ['type', 'name', 'in', 'description'];
441
+ case 'http':
442
+ return ['type', 'scheme', 'bearerFormat', 'description'];
443
+ case 'oauth2':
444
+ return ['type', 'flows', 'description', 'scopes'];
445
+ case 'openIdConnect':
446
+ return ['type', 'openIdConnectUrl', 'description', 'scopes'];
447
+ default:
448
+ return ['type', 'description'];
449
+ }
450
+ },
451
+ extensionsPrefix: 'x-',
452
+ description: 'Defines a security scheme that can be used by the operations.',
453
+ };
454
+ export const AsyncApi3Types = {
455
+ // from asyncapi2
456
+ ...AsyncApi2Bindings,
457
+ CorrelationId,
458
+ SecuritySchemeFlows,
459
+ ServerVariable,
460
+ Contact,
461
+ License,
462
+ MessageExample,
463
+ Tag,
464
+ Dependencies,
465
+ Schema,
466
+ Discriminator,
467
+ DiscriminatorMapping,
468
+ SchemaProperties,
469
+ ServerMap,
470
+ ExternalDocs,
471
+ Root,
472
+ Channel,
473
+ Parameter,
474
+ Info,
475
+ Server,
476
+ MessageTrait,
477
+ Operation,
478
+ OperationReply,
479
+ OperationReplyAddress,
480
+ Components,
481
+ ImplicitFlow,
482
+ PasswordFlow,
483
+ ClientCredentials,
484
+ AuthorizationCode,
485
+ SecurityScheme,
486
+ Message,
487
+ OperationTrait,
488
+ ServerVariablesMap: mapOf('ServerVariable'),
489
+ NamedTags: mapOf('Tag'),
490
+ NamedExternalDocs: mapOf('ExternalDocs'),
491
+ NamedChannels: mapOf('Channel'),
492
+ ParametersMap: mapOf('Parameter'),
493
+ NamedOperations: mapOf('Operation'),
494
+ NamedOperationReplies: mapOf('OperationReply'),
495
+ NamedOperationRelyAddresses: mapOf('OperationReplyAddress'),
496
+ NamedSchemas: mapOf('Schema'),
497
+ NamedMessages: mapOf('Message'),
498
+ NamedMessageTraits: mapOf('MessageTrait'),
499
+ NamedOperationTraits: mapOf('OperationTrait'),
500
+ NamedParameters: mapOf('Parameter'),
501
+ NamedSecuritySchemes: mapOf('SecurityScheme'),
502
+ NamedCorrelationIds: mapOf('CorrelationId'),
503
+ ServerList: listOf('Server'),
504
+ SecuritySchemeList: listOf('SecurityScheme'),
505
+ MessageList: listOf('Message'),
506
+ OperationTraitList: listOf('OperationTrait'),
507
+ MessageTraitList: listOf('MessageTrait'),
508
+ MessageExampleList: listOf('MessageExample'),
509
+ TagList: listOf('Tag'),
510
+ };
511
+ //# sourceMappingURL=asyncapi3.js.map
@@ -0,0 +1,32 @@
1
+ import { isPlainObject } from '../utils/is-plain-object.js';
2
+ import { getNodeTypesFromJSONSchema } from './json-schema-adapter.js';
3
+ export const ENTITY_DISCRIMINATOR_PROPERTY_NAME = 'type';
4
+ export const ENTITY_TYPES_WITH_API_SUPPORT = ['api-description', 'api-operation', 'data-schema'];
5
+ export function createEntityTypes(entitySchema, entityDefaultSchema) {
6
+ const { ctx: defaultNodeTypes } = getNodeTypesFromJSONSchema('EntityFileDefault', entityDefaultSchema);
7
+ const { ctx: namedNodeTypes, discriminatorResolver: namedDiscriminatorResolver } = getNodeTypesFromJSONSchema('EntityFile', entitySchema);
8
+ const arrayNodeType = {
9
+ properties: {},
10
+ items: (value) => {
11
+ if (isPlainObject(value)) {
12
+ const typeValue = value[ENTITY_DISCRIMINATOR_PROPERTY_NAME];
13
+ if (!typeValue)
14
+ return 'Entity';
15
+ const resolvedType = namedDiscriminatorResolver?.(value, typeValue);
16
+ if (resolvedType && typeof resolvedType === 'string') {
17
+ return resolvedType;
18
+ }
19
+ }
20
+ return 'Entity';
21
+ },
22
+ };
23
+ return {
24
+ entityTypes: {
25
+ ...defaultNodeTypes,
26
+ ...namedNodeTypes,
27
+ EntityFileArray: arrayNodeType,
28
+ },
29
+ discriminatorResolver: namedDiscriminatorResolver,
30
+ };
31
+ }
32
+ //# sourceMappingURL=entity.js.map
@@ -0,0 +1,90 @@
1
+ export function listOf(typeName, opts = {}) {
2
+ return {
3
+ name: `${typeName}List`,
4
+ properties: {},
5
+ items: typeName,
6
+ ...opts,
7
+ };
8
+ }
9
+ export function mapOf(typeName, opts = {}) {
10
+ return {
11
+ name: `${typeName}Map`,
12
+ properties: {},
13
+ additionalProperties: () => typeName,
14
+ ...opts,
15
+ };
16
+ }
17
+ export const SpecExtension = {
18
+ name: 'SpecExtension',
19
+ properties: {},
20
+ // skip validation of additional properties for unknown extensions
21
+ additionalProperties: { resolvable: true },
22
+ };
23
+ export function normalizeTypes(types, options = {}) {
24
+ const normalizedTypes = {};
25
+ for (const typeName of Object.keys(types)) {
26
+ normalizedTypes[typeName] = {
27
+ ...types[typeName],
28
+ name: typeName,
29
+ };
30
+ }
31
+ for (const type of Object.values(normalizedTypes)) {
32
+ normalizeType(type);
33
+ }
34
+ // all type trees have a SpecExtension type by default
35
+ normalizedTypes['SpecExtension'] = SpecExtension;
36
+ return normalizedTypes;
37
+ function normalizeType(type) {
38
+ if (type.additionalProperties) {
39
+ type.additionalProperties = resolveType(type.additionalProperties);
40
+ }
41
+ if (type.items) {
42
+ type.items = resolveType(type.items);
43
+ }
44
+ if (type.properties) {
45
+ const mappedProps = {};
46
+ for (const [propName, prop] of Object.entries(type.properties)) {
47
+ mappedProps[propName] = resolveType(prop);
48
+ if (options.doNotResolveExamples && prop && prop.isExample) {
49
+ mappedProps[propName] = {
50
+ ...prop,
51
+ resolvable: false,
52
+ };
53
+ }
54
+ }
55
+ type.properties = mappedProps;
56
+ }
57
+ }
58
+ // typings are painful here...
59
+ function resolveType(type) {
60
+ if (typeof type === 'string') {
61
+ if (!normalizedTypes[type]) {
62
+ throw new Error(`Unknown type name found: ${type}`);
63
+ }
64
+ return normalizedTypes[type];
65
+ }
66
+ else if (typeof type === 'function') {
67
+ return (value, key) => {
68
+ return resolveType(type(value, key));
69
+ };
70
+ }
71
+ else if (type && type.name) {
72
+ type = { ...type };
73
+ normalizeType(type);
74
+ return type;
75
+ }
76
+ else if (type && type.directResolveAs) {
77
+ return {
78
+ ...type,
79
+ directResolveAs: resolveType(type.directResolveAs),
80
+ };
81
+ }
82
+ else {
83
+ return type;
84
+ }
85
+ }
86
+ }
87
+ export function isNamedType(t) {
88
+ return typeof t?.name === 'string';
89
+ }
90
+ //# sourceMappingURL=index.js.map