@kubb/agent 4.33.0 → 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 +3554 -2113
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +5 -5
  5. package/.output/server/index.mjs +5 -5
  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 +18 -17
  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,1157 @@
1
+ import { listOf, mapOf } from './index.js';
2
+ import { Dependencies, Discriminator, DiscriminatorMapping, Schema, SchemaProperties, } from './json-schema-draft7.shared.js';
3
+ const Root = {
4
+ properties: {
5
+ asyncapi: null, // TODO: validate semver format and supported version
6
+ info: 'Info',
7
+ id: {
8
+ type: 'string',
9
+ description: 'Identifier of the application the AsyncAPI document is defining.',
10
+ },
11
+ servers: 'ServerMap',
12
+ channels: 'ChannelMap',
13
+ components: 'Components',
14
+ tags: 'TagList',
15
+ externalDocs: 'ExternalDocs',
16
+ defaultContentType: { type: 'string' },
17
+ },
18
+ required: ['asyncapi', 'channels', 'info'],
19
+ };
20
+ const Channel = {
21
+ properties: {
22
+ description: {
23
+ type: 'string',
24
+ description: 'An optional description of this channel item. CommonMark syntax can be used for rich text representation.',
25
+ },
26
+ subscribe: 'Operation',
27
+ publish: 'Operation',
28
+ parameters: 'ParametersMap',
29
+ bindings: 'ChannelBindings',
30
+ servers: {
31
+ type: 'array',
32
+ items: { type: 'string' },
33
+ description: 'The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map).',
34
+ },
35
+ },
36
+ description: 'Describes the operations available on a single channel.',
37
+ };
38
+ const ChannelMap = {
39
+ properties: {},
40
+ additionalProperties: 'Channel',
41
+ };
42
+ const ChannelBindings = {
43
+ properties: {},
44
+ allowed() {
45
+ // allow all supported values, not all have deep linting
46
+ return [
47
+ 'http',
48
+ 'ws',
49
+ 'kafka',
50
+ 'anypointmq',
51
+ 'amqp',
52
+ 'amqp1',
53
+ 'mqtt',
54
+ 'mqtt5',
55
+ 'nats',
56
+ 'jms',
57
+ 'sns',
58
+ 'solace',
59
+ 'sqs',
60
+ 'stomp',
61
+ 'redis',
62
+ 'mercure',
63
+ 'ibmmq',
64
+ 'googlepubsub',
65
+ 'pulsar',
66
+ ];
67
+ },
68
+ additionalProperties: { type: 'object' },
69
+ description: 'Map describing protocol-specific definitions for a channel.',
70
+ };
71
+ export const Tag = {
72
+ properties: {
73
+ name: { type: 'string', description: 'REQUIRED. The name of the tag.' },
74
+ description: {
75
+ type: 'string',
76
+ description: 'A short description for the tag. CommonMark syntax can be used for rich text representation.',
77
+ },
78
+ externalDocs: 'ExternalDocs',
79
+ },
80
+ required: ['name'],
81
+ description: 'Allows adding meta data to a single tag.',
82
+ };
83
+ export const ExternalDocs = {
84
+ properties: {
85
+ description: {
86
+ type: 'string',
87
+ description: 'A short description of the target documentation. CommonMark syntax can be used for rich text representation.',
88
+ },
89
+ url: {
90
+ type: 'string',
91
+ description: 'REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL.',
92
+ },
93
+ },
94
+ required: ['url'],
95
+ description: 'Allows referencing an external resource for extended documentation.',
96
+ };
97
+ const SecurityRequirement = {
98
+ properties: {},
99
+ additionalProperties: { type: 'array', items: { type: 'string' } },
100
+ description: 'Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.',
101
+ };
102
+ const ServerBindings = {
103
+ properties: {},
104
+ allowed() {
105
+ // allow all supported values, not all have deep linting
106
+ return [
107
+ 'http',
108
+ 'ws',
109
+ 'kafka',
110
+ 'anypointmq',
111
+ 'amqp',
112
+ 'amqp1',
113
+ 'mqtt',
114
+ 'mqtt5',
115
+ 'nats',
116
+ 'jms',
117
+ 'sns',
118
+ 'solace',
119
+ 'sqs',
120
+ 'stomp',
121
+ 'redis',
122
+ 'mercure',
123
+ 'ibmmq',
124
+ 'googlepubsub',
125
+ 'pulsar',
126
+ ];
127
+ },
128
+ additionalProperties: { type: 'object' },
129
+ description: 'Map describing protocol-specific definitions for a server.',
130
+ };
131
+ const Server = {
132
+ properties: {
133
+ url: {
134
+ type: 'string',
135
+ description: 'REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}.',
136
+ },
137
+ protocol: {
138
+ type: 'string',
139
+ description: 'REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar.',
140
+ },
141
+ protocolVersion: {
142
+ type: 'string',
143
+ description: 'The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc.',
144
+ },
145
+ description: {
146
+ type: 'string',
147
+ description: 'An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation.',
148
+ },
149
+ variables: 'ServerVariablesMap',
150
+ security: 'SecurityRequirementList',
151
+ bindings: 'ServerBindings',
152
+ tags: 'TagList',
153
+ },
154
+ required: ['url', 'protocol'],
155
+ 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.',
156
+ };
157
+ export const ServerMap = {
158
+ properties: {},
159
+ additionalProperties: (_value, key) =>
160
+ // eslint-disable-next-line no-useless-escape
161
+ key.match(/^[A-Za-z0-9_\-]+$/) ? 'Server' : undefined,
162
+ };
163
+ export const ServerVariable = {
164
+ properties: {
165
+ enum: {
166
+ type: 'array',
167
+ items: { type: 'string' },
168
+ description: 'An enumeration of string values to be used if the substitution options are from a limited set.',
169
+ },
170
+ default: {
171
+ type: 'string',
172
+ description: 'The default value to use for substitution, and to send, if an alternate value is not supplied.',
173
+ },
174
+ description: {
175
+ type: 'string',
176
+ description: 'An optional description for the server variable. CommonMark syntax MAY be used for rich text representation.',
177
+ },
178
+ examples: {
179
+ type: 'array',
180
+ items: { type: 'string' },
181
+ description: 'An array of examples of the server variable.',
182
+ },
183
+ },
184
+ required: [],
185
+ description: 'An object representing a Server Variable for server URL template substitution.',
186
+ };
187
+ const Info = {
188
+ properties: {
189
+ title: {
190
+ type: 'string',
191
+ description: 'REQUIRED. The title of the application.',
192
+ },
193
+ version: {
194
+ type: 'string',
195
+ description: 'REQUIRED Provides the version of the application API (not to be confused with the specification version).',
196
+ },
197
+ description: {
198
+ type: 'string',
199
+ description: 'A short description of the application. CommonMark syntax can be used for rich text representation.',
200
+ },
201
+ termsOfService: {
202
+ type: 'string',
203
+ description: 'A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL.',
204
+ },
205
+ contact: 'Contact',
206
+ license: 'License',
207
+ },
208
+ required: ['title', 'version'],
209
+ description: 'The object provides metadata about the API. The metadata can be used by the clients if needed.',
210
+ };
211
+ export const Contact = {
212
+ properties: {
213
+ name: {
214
+ type: 'string',
215
+ description: 'The identifying name of the contact person/organization.',
216
+ },
217
+ url: {
218
+ type: 'string',
219
+ description: 'The URL pointing to the contact information. This MUST be in the form of an absolute URL.',
220
+ },
221
+ email: {
222
+ type: 'string',
223
+ description: 'The email address of the contact person/organization. MUST be in the format of an email address.',
224
+ },
225
+ },
226
+ description: 'Contact information for the exposed API.',
227
+ };
228
+ export const License = {
229
+ properties: {
230
+ name: {
231
+ type: 'string',
232
+ description: 'REQUIRED. The license name used for the API.',
233
+ },
234
+ url: {
235
+ type: 'string',
236
+ description: 'A URL to the license used for the API. This MUST be in the form of an absolute URL.',
237
+ },
238
+ },
239
+ required: ['name'],
240
+ description: 'License information for the exposed API.',
241
+ };
242
+ const Parameter = {
243
+ properties: {
244
+ description: {
245
+ type: 'string',
246
+ description: 'A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation.',
247
+ },
248
+ schema: 'Schema',
249
+ location: {
250
+ type: 'string',
251
+ description: 'A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used.',
252
+ },
253
+ },
254
+ description: 'Describes a parameter included in a channel name.',
255
+ };
256
+ export const CorrelationId = {
257
+ properties: {
258
+ description: {
259
+ type: 'string',
260
+ description: 'An optional description of the identifier. CommonMark syntax can be used for rich text representation.',
261
+ },
262
+ location: {
263
+ type: 'string',
264
+ description: 'REQUIRED. A runtime expression that specifies the location of the correlation ID.',
265
+ },
266
+ },
267
+ required: ['location'],
268
+ description: 'An object that specifies an identifier at design time that can used for message tracing and correlation.',
269
+ };
270
+ const Message = {
271
+ properties: {
272
+ messageId: {
273
+ type: 'string',
274
+ description: 'Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions.',
275
+ },
276
+ headers: 'Schema',
277
+ payload: 'Schema', // TODO: strictly this does not cover all cases
278
+ correlationId: 'CorrelationId',
279
+ schemaFormat: {
280
+ type: 'string',
281
+ description: 'A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly.',
282
+ }, // TODO: support official list of schema formats and custom values
283
+ contentType: {
284
+ type: 'string',
285
+ 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.`,
286
+ },
287
+ name: {
288
+ type: 'string',
289
+ description: 'A machine-friendly name for the message.',
290
+ },
291
+ title: {
292
+ type: 'string',
293
+ description: 'A human-friendly title for the message.',
294
+ },
295
+ summary: {
296
+ type: 'string',
297
+ description: 'A short summary of what the message is about.',
298
+ },
299
+ description: {
300
+ type: 'string',
301
+ description: 'A verbose explanation of the message. CommonMark syntax can be used for rich text representation.',
302
+ },
303
+ tags: 'TagList',
304
+ externalDocs: 'ExternalDocs',
305
+ bindings: 'MessageBindings',
306
+ examples: 'MessageExampleList',
307
+ traits: 'MessageTraitList',
308
+ },
309
+ additionalProperties: {},
310
+ description: 'Describes a message received on a given channel and operation.',
311
+ };
312
+ const MessageBindings = {
313
+ properties: {},
314
+ allowed() {
315
+ // allow all supported values, not all have deep linting
316
+ return [
317
+ 'http',
318
+ 'ws',
319
+ 'kafka',
320
+ 'anypointmq',
321
+ 'amqp',
322
+ 'amqp1',
323
+ 'mqtt',
324
+ 'mqtt5',
325
+ 'nats',
326
+ 'jms',
327
+ 'sns',
328
+ 'solace',
329
+ 'sqs',
330
+ 'stomp',
331
+ 'redis',
332
+ 'mercure',
333
+ 'ibmmq',
334
+ 'googlepubsub',
335
+ 'pulsar',
336
+ ];
337
+ },
338
+ additionalProperties: { type: 'object' },
339
+ description: 'Map describing protocol-specific definitions for a message.',
340
+ };
341
+ const OperationBindings = {
342
+ properties: {},
343
+ allowed() {
344
+ // allow all supported values, not all have deep linting
345
+ return [
346
+ 'http',
347
+ 'ws',
348
+ 'kafka',
349
+ 'anypointmq',
350
+ 'amqp',
351
+ 'amqp1',
352
+ 'mqtt',
353
+ 'mqtt5',
354
+ 'nats',
355
+ 'jms',
356
+ 'sns',
357
+ 'solace',
358
+ 'sqs',
359
+ 'stomp',
360
+ 'redis',
361
+ 'mercure',
362
+ 'ibmmq',
363
+ 'googlepubsub',
364
+ 'pulsar',
365
+ ];
366
+ },
367
+ additionalProperties: { type: 'object' },
368
+ description: 'Map describing protocol-specific definitions for an operation.',
369
+ };
370
+ const OperationTrait = {
371
+ properties: {
372
+ tags: 'TagList',
373
+ summary: {
374
+ type: 'string',
375
+ description: 'A short summary of what the operation is about.',
376
+ },
377
+ description: {
378
+ type: 'string',
379
+ description: 'A verbose explanation of the operation. CommonMark syntax can be used for rich text representation.',
380
+ },
381
+ externalDocs: 'ExternalDocs',
382
+ operationId: {
383
+ type: 'string',
384
+ description: 'Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions.',
385
+ },
386
+ security: 'SecurityRequirementList',
387
+ bindings: 'OperationBindings',
388
+ },
389
+ required: [],
390
+ description: 'Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits.',
391
+ };
392
+ const MessageTrait = {
393
+ properties: {
394
+ messageId: {
395
+ type: 'string',
396
+ description: 'Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions.',
397
+ },
398
+ headers: 'Schema',
399
+ correlationId: 'CorrelationId',
400
+ schemaFormat: {
401
+ type: 'string',
402
+ description: 'A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object.',
403
+ },
404
+ contentType: {
405
+ type: 'string',
406
+ 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.`,
407
+ },
408
+ name: {
409
+ type: 'string',
410
+ description: 'A verbose explanation of the message. CommonMark syntax can be used for rich text representation.',
411
+ },
412
+ title: {
413
+ type: 'string',
414
+ description: 'A human-friendly title for the message.',
415
+ },
416
+ summary: {
417
+ type: 'string',
418
+ description: 'A short summary of what the message is about.',
419
+ },
420
+ description: {
421
+ type: 'string',
422
+ description: 'A verbose explanation of the message. CommonMark syntax can be used for rich text representation.',
423
+ },
424
+ tags: 'TagList',
425
+ externalDocs: 'ExternalDocs',
426
+ bindings: 'MessageBindings',
427
+ examples: 'MessageExampleList',
428
+ },
429
+ additionalProperties: {},
430
+ 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.',
431
+ };
432
+ const Operation = {
433
+ properties: {
434
+ tags: 'TagList',
435
+ summary: {
436
+ type: 'string',
437
+ description: 'A short summary of what the operation is about.',
438
+ },
439
+ description: {
440
+ type: 'string',
441
+ description: 'A verbose explanation of the operation. CommonMark syntax can be used for rich text representation.',
442
+ },
443
+ externalDocs: 'ExternalDocs',
444
+ operationId: {
445
+ type: 'string',
446
+ description: 'Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions.',
447
+ },
448
+ security: 'SecurityRequirementList',
449
+ bindings: 'OperationBindings',
450
+ traits: 'OperationTraitList',
451
+ message: 'Message',
452
+ },
453
+ required: [],
454
+ description: 'Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received.',
455
+ };
456
+ export const MessageExample = {
457
+ properties: {
458
+ payload: {
459
+ isExample: true,
460
+ description: `The value of this field MUST validate against the Message Object's payload field.`,
461
+ },
462
+ summary: {
463
+ type: 'string',
464
+ description: 'A short summary of what the example is about.',
465
+ },
466
+ name: {
467
+ type: 'string',
468
+ description: 'A machine-friendly name.',
469
+ },
470
+ headers: {
471
+ type: 'object',
472
+ description: `The value of this field MUST validate against the Message Object's headers field.`,
473
+ },
474
+ },
475
+ description: 'Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields.',
476
+ };
477
+ const Components = {
478
+ properties: {
479
+ messages: 'NamedMessages',
480
+ parameters: 'NamedParameters',
481
+ schemas: 'NamedSchemas',
482
+ correlationIds: 'NamedCorrelationIds',
483
+ messageTraits: 'NamedMessageTraits',
484
+ operationTraits: 'NamedOperationTraits',
485
+ securitySchemes: 'NamedSecuritySchemes',
486
+ servers: 'ServerMap',
487
+ serverVariables: 'ServerVariablesMap',
488
+ channels: 'ChannelMap',
489
+ serverBindings: 'ServerBindings',
490
+ channelBindings: 'ChannelBindings',
491
+ operationBindings: 'OperationBindings',
492
+ messageBindings: 'MessageBindings',
493
+ },
494
+ };
495
+ const ImplicitFlow = {
496
+ properties: {
497
+ refreshUrl: { type: 'string' },
498
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
499
+ authorizationUrl: { type: 'string' },
500
+ },
501
+ required: ['authorizationUrl', 'scopes'],
502
+ description: 'Configuration for the OAuth Implicit flow.',
503
+ };
504
+ const PasswordFlow = {
505
+ properties: {
506
+ refreshUrl: { type: 'string' },
507
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
508
+ tokenUrl: { type: 'string' },
509
+ },
510
+ required: ['tokenUrl', 'scopes'],
511
+ description: 'Configuration for the OAuth Password flow.',
512
+ };
513
+ const ClientCredentials = {
514
+ properties: {
515
+ refreshUrl: { type: 'string' },
516
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
517
+ tokenUrl: { type: 'string' },
518
+ },
519
+ required: ['tokenUrl', 'scopes'],
520
+ description: 'Configuration for the OAuth Client Credentials flow.',
521
+ };
522
+ const AuthorizationCode = {
523
+ properties: {
524
+ refreshUrl: { type: 'string' },
525
+ authorizationUrl: { type: 'string' },
526
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
527
+ tokenUrl: { type: 'string' },
528
+ },
529
+ required: ['authorizationUrl', 'tokenUrl', 'scopes'],
530
+ description: 'Configuration for the OAuth Authorization Code flow.',
531
+ };
532
+ export const SecuritySchemeFlows = {
533
+ properties: {
534
+ implicit: 'ImplicitFlow',
535
+ password: 'PasswordFlow',
536
+ clientCredentials: 'ClientCredentials',
537
+ authorizationCode: 'AuthorizationCode',
538
+ },
539
+ };
540
+ const SecurityScheme = {
541
+ properties: {
542
+ type: {
543
+ enum: [
544
+ 'userPassword',
545
+ 'apiKey',
546
+ 'X509',
547
+ 'symmetricEncryption',
548
+ 'asymmetricEncryption',
549
+ 'httpApiKey',
550
+ 'http',
551
+ 'oauth2',
552
+ 'openIdConnect',
553
+ 'plain',
554
+ 'scramSha256',
555
+ 'scramSha512',
556
+ 'gssapi',
557
+ ],
558
+ },
559
+ description: {
560
+ type: 'string',
561
+ description: 'A short description for security scheme. CommonMark syntax MAY be used for rich text representation.',
562
+ },
563
+ name: {
564
+ type: 'string',
565
+ description: 'REQUIRED. The name of the header, query or cookie parameter to be used.',
566
+ },
567
+ in: {
568
+ type: 'string',
569
+ enum: ['query', 'header', 'cookie', 'user', 'password'],
570
+ description: 'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.',
571
+ },
572
+ scheme: {
573
+ type: 'string',
574
+ description: 'REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.',
575
+ },
576
+ bearerFormat: {
577
+ type: 'string',
578
+ 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.',
579
+ },
580
+ flows: 'SecuritySchemeFlows',
581
+ openIdConnectUrl: {
582
+ type: 'string',
583
+ description: 'REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL.',
584
+ },
585
+ },
586
+ required(value) {
587
+ switch (value?.type) {
588
+ case 'apiKey':
589
+ return ['type', 'in'];
590
+ case 'httpApiKey':
591
+ return ['type', 'name', 'in'];
592
+ case 'http':
593
+ return ['type', 'scheme'];
594
+ case 'oauth2':
595
+ return ['type', 'flows'];
596
+ case 'openIdConnect':
597
+ return ['type', 'openIdConnectUrl'];
598
+ default:
599
+ return ['type'];
600
+ }
601
+ },
602
+ allowed(value) {
603
+ switch (value?.type) {
604
+ case 'apiKey':
605
+ return ['type', 'in', 'description'];
606
+ case 'httpApiKey':
607
+ return ['type', 'name', 'in', 'description'];
608
+ case 'http':
609
+ return ['type', 'scheme', 'bearerFormat', 'description'];
610
+ case 'oauth2':
611
+ return ['type', 'flows', 'description'];
612
+ case 'openIdConnect':
613
+ return ['type', 'openIdConnectUrl', 'description'];
614
+ default:
615
+ return ['type', 'description'];
616
+ }
617
+ },
618
+ extensionsPrefix: 'x-',
619
+ description: 'Defines a security scheme that can be used by the operations.',
620
+ };
621
+ // --- Per-protocol node types
622
+ // http
623
+ const HttpChannelBinding = {
624
+ properties: {}, // empty object
625
+ description: 'Protocol-specific information for an HTTP channel.',
626
+ };
627
+ ChannelBindings.properties.http = HttpChannelBinding;
628
+ const HttpServerBinding = {
629
+ properties: {}, // empty object
630
+ description: 'Protocol-specific information for an HTTP server.',
631
+ };
632
+ ServerBindings.properties.http = HttpServerBinding;
633
+ const HttpMessageBinding = {
634
+ properties: {
635
+ headers: 'Schema',
636
+ bindingVersion: { type: 'string' },
637
+ },
638
+ description: 'Protocol-specific information for an HTTP message, i.e., a request or a response.',
639
+ };
640
+ MessageBindings.properties.http = HttpMessageBinding;
641
+ const HttpOperationBinding = {
642
+ properties: {
643
+ type: { type: 'string' },
644
+ method: {
645
+ type: 'string',
646
+ enum: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS', 'CONNECT', 'TRACE'],
647
+ },
648
+ headers: 'Schema',
649
+ bindingVersion: { type: 'string' },
650
+ },
651
+ description: 'Protocol-specific information for an HTTP operation.',
652
+ };
653
+ OperationBindings.properties.http = HttpOperationBinding;
654
+ // ws
655
+ const WsChannelBinding = {
656
+ properties: {
657
+ method: { type: 'string' },
658
+ query: 'Schema',
659
+ headers: 'Schema',
660
+ bindingVersion: { type: 'string' },
661
+ },
662
+ description: 'Protocol-specific information for a WebSockets channel.',
663
+ };
664
+ ChannelBindings.properties.ws = WsChannelBinding;
665
+ const WsServerBinding = {
666
+ properties: {}, // empty object
667
+ description: 'Protocol-specific information for a WebSockets server.',
668
+ };
669
+ ServerBindings.properties.ws = WsServerBinding;
670
+ const WsMessageBinding = {
671
+ properties: {}, // empty object
672
+ description: 'Protocol-specific information for a WebSockets message.',
673
+ };
674
+ MessageBindings.properties.ws = WsMessageBinding;
675
+ const WsOperationBinding = {
676
+ properties: {}, // empty object
677
+ description: 'Protocol-specific information for a WebSockets operation.',
678
+ };
679
+ OperationBindings.properties.ws = WsOperationBinding;
680
+ // kafka
681
+ const KafkaTopicConfiguration = {
682
+ properties: {
683
+ 'cleanup.policy': { type: 'array', items: { enum: ['delete', 'compact'] } },
684
+ 'retention.ms': { type: 'integer' },
685
+ 'retention.bytes': { type: 'integer' },
686
+ 'delete.retention.ms': { type: 'integer' },
687
+ 'max.message.bytes': { type: 'integer' },
688
+ },
689
+ };
690
+ const KafkaChannelBinding = {
691
+ properties: {
692
+ topic: { type: 'string' },
693
+ partitions: { type: 'integer' },
694
+ replicas: { type: 'integer' },
695
+ topicConfiguration: 'KafkaTopicConfiguration',
696
+ bindingVersion: { type: 'string' },
697
+ },
698
+ description: 'Protocol-specific information for a Kafka channel.',
699
+ };
700
+ ChannelBindings.properties.kafka = KafkaChannelBinding;
701
+ const KafkaServerBinding = {
702
+ properties: {}, // empty object
703
+ description: 'Protocol-specific information for a Kafka server.',
704
+ };
705
+ ServerBindings.properties.kafka = KafkaServerBinding;
706
+ const KafkaMessageBinding = {
707
+ properties: {
708
+ key: 'Schema', // TODO: add avro support
709
+ schemaIdLocation: { type: 'string' },
710
+ schemaIdPayloadEncoding: { type: 'string' },
711
+ schemaLookupStrategy: { type: 'string' },
712
+ bindingVersion: { type: 'string' },
713
+ },
714
+ description: 'Protocol-specific information for a Kafka message.',
715
+ };
716
+ MessageBindings.properties.kafka = KafkaMessageBinding;
717
+ const KafkaOperationBinding = {
718
+ properties: {
719
+ groupId: 'Schema',
720
+ clientId: 'Schema',
721
+ bindingVersion: { type: 'string' },
722
+ },
723
+ description: 'Protocol-specific information for a Kafka operation.',
724
+ };
725
+ OperationBindings.properties.kafka = KafkaOperationBinding;
726
+ // anypointmq
727
+ const AnypointmqChannelBinding = {
728
+ properties: {
729
+ destination: { type: 'string' },
730
+ destinationType: { type: 'string' },
731
+ bindingVersion: { type: 'string' },
732
+ },
733
+ description: 'Protocol-specific information for an Anypoint MQ channel.',
734
+ };
735
+ ChannelBindings.properties.anypointmq = AnypointmqChannelBinding;
736
+ const AnypointmqServerBinding = {
737
+ properties: {}, // empty object
738
+ description: 'Protocol-specific information for an Anypoint MQ server.',
739
+ };
740
+ ServerBindings.properties.anypointmq = AnypointmqServerBinding;
741
+ const AnypointmqMessageBinding = {
742
+ properties: {
743
+ headers: 'Schema',
744
+ bindingVersion: { type: 'string' },
745
+ },
746
+ description: 'Protocol-specific information for an Anypoint MQ message.',
747
+ };
748
+ MessageBindings.properties.anypointmq = AnypointmqMessageBinding;
749
+ const AnypointmqOperationBinding = {
750
+ properties: {}, // empty object
751
+ description: 'Protocol-specific information for an Anypoint MQ operation.',
752
+ };
753
+ OperationBindings.properties.anypointmq = AnypointmqOperationBinding;
754
+ // amqp
755
+ const AmqpChannelBinding = {
756
+ properties: {}, // empty object
757
+ description: 'Protocol-specific information for an AMQP 0-9-1 channel.',
758
+ };
759
+ ChannelBindings.properties.amqp = AmqpChannelBinding;
760
+ const AmqpServerBinding = {
761
+ properties: {}, // empty object
762
+ description: 'Protocol-specific information for an AMQP 0-9-1 server.',
763
+ };
764
+ ServerBindings.properties.amqp = AmqpServerBinding;
765
+ const AmqpMessageBinding = {
766
+ properties: {
767
+ contentEncoding: { type: 'string' },
768
+ messageType: { type: 'string' },
769
+ bindingVersion: { type: 'string' },
770
+ },
771
+ description: 'Protocol-specific information for an AMQP 0-9-1 message.',
772
+ };
773
+ MessageBindings.properties.amqp = AmqpMessageBinding;
774
+ const AmqpOperationBinding = {
775
+ // TODO: some fields are subscribe only
776
+ properties: {
777
+ expiration: { type: 'integer' },
778
+ userId: { type: 'string' },
779
+ cc: { type: 'array', items: { type: 'string' } },
780
+ priority: { type: 'integer' },
781
+ deliveryMode: { type: 'integer' }, // TODO: enum: [1, 2]
782
+ mandatory: { type: 'boolean' },
783
+ bcc: { type: 'array', items: { type: 'string' } },
784
+ replyTo: { type: 'string' },
785
+ timestamp: { type: 'boolean' },
786
+ ack: { type: 'boolean' },
787
+ bindingVersion: { type: 'string' },
788
+ },
789
+ description: 'Protocol-specific information for an AMQP 0-9-1 operation.',
790
+ };
791
+ OperationBindings.properties.amqp = AmqpOperationBinding;
792
+ // amqp1
793
+ const Amqp1ChannelBinding = {
794
+ properties: {}, // empty object
795
+ description: 'Protocol-specific information for an AMQP 1.0 channel.',
796
+ };
797
+ ChannelBindings.properties.amqp1 = Amqp1ChannelBinding;
798
+ const Amqp1ServerBinding = {
799
+ properties: {}, // empty object
800
+ description: 'Protocol-specific information for an AMQP 1.0 server.',
801
+ };
802
+ ServerBindings.properties.amqp1 = Amqp1ServerBinding;
803
+ const Amqp1MessageBinding = {
804
+ properties: {}, // empty object
805
+ description: 'Binding Protocol-specific information for an AMQP 1.0 message.',
806
+ };
807
+ MessageBindings.properties.amqp1 = Amqp1MessageBinding;
808
+ const Amqp1OperationBinding = {
809
+ properties: {}, // empty object,
810
+ description: 'Protocol-specific information for an AMQP 1.0 operation.',
811
+ };
812
+ OperationBindings.properties.amqp1 = Amqp1OperationBinding;
813
+ // mqtt
814
+ const MqttChannelBinding = {
815
+ properties: {
816
+ qos: { type: 'integer' },
817
+ retain: { type: 'boolean' },
818
+ bindingVersion: { type: 'string' },
819
+ },
820
+ description: 'Protocol-specific information for an MQTT channel.',
821
+ };
822
+ ChannelBindings.properties.mqtt = MqttChannelBinding;
823
+ const MqttServerBindingLastWill = {
824
+ properties: {
825
+ topic: { type: 'string' },
826
+ qos: { type: 'integer' },
827
+ message: { type: 'string' },
828
+ retain: { type: 'boolean' },
829
+ },
830
+ };
831
+ const MqttServerBinding = {
832
+ properties: {
833
+ clientId: { type: 'string' },
834
+ cleanSession: { type: 'boolean' },
835
+ lastWill: 'MqttServerBindingLastWill',
836
+ keepAlive: { type: 'integer' },
837
+ bindingVersion: { type: 'string' },
838
+ },
839
+ description: 'Protocol-specific information for an MQTT server.',
840
+ };
841
+ ServerBindings.properties.mqtt = MqttServerBinding;
842
+ const MqttMessageBinding = {
843
+ properties: {
844
+ bindingVersion: { type: 'string' },
845
+ },
846
+ description: 'Protocol-specific information for an MQTT message.',
847
+ };
848
+ MessageBindings.properties.mqtt = MqttMessageBinding;
849
+ const MqttOperationBinding = {
850
+ properties: {
851
+ qos: { type: 'integer' },
852
+ retain: { type: 'boolean' },
853
+ bindingVersion: { type: 'string' },
854
+ },
855
+ description: 'Protocol-specific information for an MQTT operation.',
856
+ };
857
+ OperationBindings.properties.mqtt = MqttOperationBinding;
858
+ // mqtt5
859
+ const Mqtt5ChannelBinding = {
860
+ properties: {}, // empty object
861
+ description: 'Protocol-specific information for an MQTT 5 channel.',
862
+ };
863
+ ChannelBindings.properties.mqtt5 = Mqtt5ChannelBinding;
864
+ const Mqtt5ServerBinding = {
865
+ properties: {}, // empty object
866
+ description: 'Protocol-specific information for an MQTT 5 server.',
867
+ };
868
+ ServerBindings.properties.mqtt5 = Mqtt5ServerBinding;
869
+ const Mqtt5MessageBinding = {
870
+ properties: {}, // empty object
871
+ description: 'Protocol-specific information for an MQTT 5 message.',
872
+ };
873
+ MessageBindings.properties.mqtt5 = Mqtt5MessageBinding;
874
+ const Mqtt5OperationBinding = {
875
+ properties: {}, // empty object
876
+ description: 'Protocol-specific information for an MQTT 5 operation.',
877
+ };
878
+ OperationBindings.properties.mqtt5 = Mqtt5OperationBinding;
879
+ // nats
880
+ const NatsChannelBinding = {
881
+ properties: {}, // empty object
882
+ description: 'Protocol-specific information for a NATS channel.',
883
+ };
884
+ ChannelBindings.properties.nats = NatsChannelBinding;
885
+ const NatsServerBinding = {
886
+ properties: {}, // empty object
887
+ description: 'Protocol-specific information for a NATS server.',
888
+ };
889
+ ServerBindings.properties.nats = NatsServerBinding;
890
+ const NatsMessageBinding = {
891
+ properties: {}, // empty object
892
+ description: 'Protocol-specific information for a NATS message.',
893
+ };
894
+ MessageBindings.properties.nats = NatsMessageBinding;
895
+ const NatsOperationBinding = {
896
+ properties: {
897
+ queue: { type: 'string' },
898
+ bindingVersion: { type: 'string' },
899
+ },
900
+ description: 'Protocol-specific information for a NATS operation.',
901
+ };
902
+ OperationBindings.properties.nats = NatsOperationBinding;
903
+ // jms
904
+ const JmsChannelBinding = {
905
+ properties: {
906
+ destination: { type: 'string' },
907
+ destinationType: { type: 'string' },
908
+ bindingVersion: { type: 'string' },
909
+ },
910
+ description: 'Protocol-specific information for a JMS channel.',
911
+ };
912
+ ChannelBindings.properties.jms = JmsChannelBinding;
913
+ const JmsServerBinding = {
914
+ properties: {}, // empty object
915
+ description: 'Protocol-specific information for a JMS server.',
916
+ };
917
+ ServerBindings.properties.jms = JmsServerBinding;
918
+ const JmsMessageBinding = {
919
+ properties: {
920
+ headers: 'Schema',
921
+ bindingVersion: { type: 'string' },
922
+ },
923
+ description: 'Protocol-specific information for a JMS message.',
924
+ };
925
+ MessageBindings.properties.jms = JmsMessageBinding;
926
+ const JmsOperationBinding = {
927
+ properties: {
928
+ headers: 'Schema',
929
+ bindingVersion: { type: 'string' },
930
+ },
931
+ description: 'Protocol-specific information for a JMS operation.',
932
+ };
933
+ OperationBindings.properties.jms = JmsOperationBinding;
934
+ // sns
935
+ // solace
936
+ const SolaceChannelBinding = {
937
+ properties: {}, // empty object
938
+ description: 'Protocol-specific information for a Solace channel.',
939
+ };
940
+ ChannelBindings.properties.solace = SolaceChannelBinding;
941
+ const SolaceServerBinding = {
942
+ properties: {
943
+ bindingVersion: { type: 'string' },
944
+ msgVpn: { type: 'string' },
945
+ },
946
+ description: 'Protocol-specific information for a Solace message.',
947
+ };
948
+ ServerBindings.properties.solace = SolaceServerBinding;
949
+ const SolaceMessageBinding = {
950
+ properties: {}, // empty object
951
+ description: 'Protocol-specific information for a Solace message.',
952
+ };
953
+ MessageBindings.properties.solace = SolaceMessageBinding;
954
+ const SolaceDestination = {
955
+ properties: {
956
+ destinationType: { type: 'string', enum: ['queue', 'topic'] },
957
+ deliveryMode: { type: 'string', enum: ['direct', 'persistent'] },
958
+ 'queue.name': { type: 'string' },
959
+ 'queue.topicSubscriptions': { type: 'array', items: { type: 'string' } },
960
+ 'queue.accessType': { type: 'string', enum: ['exclusive', 'nonexclusive'] },
961
+ 'queue.maxMsgSpoolSize': { type: 'string' },
962
+ 'queue.maxTtl': { type: 'string' },
963
+ 'topic.topicSubscriptions': { type: 'array', items: { type: 'string' } },
964
+ },
965
+ };
966
+ const SolaceOperationBinding = {
967
+ properties: {
968
+ bindingVersion: { type: 'string' },
969
+ destinations: listOf('SolaceDestination'),
970
+ },
971
+ description: 'Protocol-specific information for a Solace operation.',
972
+ };
973
+ OperationBindings.properties.solace = SolaceOperationBinding;
974
+ // sqs
975
+ // stomp
976
+ const StompChannelBinding = {
977
+ properties: {}, // empty object
978
+ description: 'Protocol-specific information for a STOMP channel.',
979
+ };
980
+ ChannelBindings.properties.stomp = StompChannelBinding;
981
+ const StompServerBinding = {
982
+ properties: {}, // empty object
983
+ description: 'Protocol-specific information for a STOMP server.',
984
+ };
985
+ ServerBindings.properties.stomp = StompServerBinding;
986
+ const StompMessageBinding = {
987
+ properties: {}, // empty object
988
+ description: 'Protocol-specific information for a STOMP message.',
989
+ };
990
+ MessageBindings.properties.stomp = StompMessageBinding;
991
+ const StompOperationBinding = {
992
+ properties: {}, // empty object
993
+ description: 'Protocol-specific information for a STOMP operation.',
994
+ };
995
+ OperationBindings.properties.stomp = StompOperationBinding;
996
+ // redis
997
+ const RedisChannelBinding = {
998
+ properties: {}, // empty object
999
+ description: 'Protocol-specific information for a Redis channel.',
1000
+ };
1001
+ ChannelBindings.properties.redis = RedisChannelBinding;
1002
+ const RedisServerBinding = {
1003
+ properties: {}, // empty object
1004
+ description: 'Protocol-specific information for a Redis server.',
1005
+ };
1006
+ ServerBindings.properties.redis = RedisServerBinding;
1007
+ const RedisMessageBinding = {
1008
+ properties: {}, // empty object
1009
+ description: 'Protocol-specific information for a Redis message.',
1010
+ };
1011
+ MessageBindings.properties.redis = RedisMessageBinding;
1012
+ const RedisOperationBinding = {
1013
+ properties: {}, // empty object
1014
+ description: 'Protocol-specific information for a Redis operation.',
1015
+ };
1016
+ OperationBindings.properties.redis = RedisOperationBinding;
1017
+ // mercure
1018
+ const MercureChannelBinding = {
1019
+ properties: {}, // empty object
1020
+ description: 'Protocol-specific information for a Mercure channel.',
1021
+ };
1022
+ ChannelBindings.properties.mercure = MercureChannelBinding;
1023
+ const MercureServerBinding = {
1024
+ properties: {}, // empty object
1025
+ description: 'Protocol-specific information for a Mercure server.',
1026
+ };
1027
+ ServerBindings.properties.mercure = MercureServerBinding;
1028
+ const MercureMessageBinding = {
1029
+ properties: {}, // empty object
1030
+ description: 'Protocol-specific information for a Mercure message.',
1031
+ };
1032
+ MessageBindings.properties.mercure = MercureMessageBinding;
1033
+ const MercureOperationBinding = {
1034
+ properties: {}, // empty object
1035
+ description: 'Protocol-specific information for a Mercure operation.',
1036
+ };
1037
+ OperationBindings.properties.mercure = MercureOperationBinding;
1038
+ // ibmmq
1039
+ // googlepubsub
1040
+ // pulsar
1041
+ // --- End per-protocol node types
1042
+ export const AsyncApi2Bindings = {
1043
+ HttpServerBinding,
1044
+ HttpChannelBinding,
1045
+ HttpMessageBinding,
1046
+ HttpOperationBinding,
1047
+ WsServerBinding,
1048
+ WsChannelBinding,
1049
+ WsMessageBinding,
1050
+ WsOperationBinding,
1051
+ KafkaServerBinding,
1052
+ KafkaTopicConfiguration,
1053
+ KafkaChannelBinding,
1054
+ KafkaMessageBinding,
1055
+ KafkaOperationBinding,
1056
+ AnypointmqServerBinding,
1057
+ AnypointmqChannelBinding,
1058
+ AnypointmqMessageBinding,
1059
+ AnypointmqOperationBinding,
1060
+ AmqpServerBinding,
1061
+ AmqpChannelBinding,
1062
+ AmqpMessageBinding,
1063
+ AmqpOperationBinding,
1064
+ Amqp1ServerBinding,
1065
+ Amqp1ChannelBinding,
1066
+ Amqp1MessageBinding,
1067
+ Amqp1OperationBinding,
1068
+ MqttServerBindingLastWill,
1069
+ MqttServerBinding,
1070
+ MqttChannelBinding,
1071
+ MqttMessageBinding,
1072
+ MqttOperationBinding,
1073
+ Mqtt5ServerBinding,
1074
+ Mqtt5ChannelBinding,
1075
+ Mqtt5MessageBinding,
1076
+ Mqtt5OperationBinding,
1077
+ NatsServerBinding,
1078
+ NatsChannelBinding,
1079
+ NatsMessageBinding,
1080
+ NatsOperationBinding,
1081
+ JmsServerBinding,
1082
+ JmsChannelBinding,
1083
+ JmsMessageBinding,
1084
+ JmsOperationBinding,
1085
+ SolaceServerBinding,
1086
+ SolaceChannelBinding,
1087
+ SolaceMessageBinding,
1088
+ SolaceDestination,
1089
+ SolaceOperationBinding,
1090
+ StompServerBinding,
1091
+ StompChannelBinding,
1092
+ StompMessageBinding,
1093
+ StompOperationBinding,
1094
+ RedisServerBinding,
1095
+ RedisChannelBinding,
1096
+ RedisMessageBinding,
1097
+ RedisOperationBinding,
1098
+ MercureServerBinding,
1099
+ MercureChannelBinding,
1100
+ MercureMessageBinding,
1101
+ MercureOperationBinding,
1102
+ ServerBindings,
1103
+ ChannelBindings,
1104
+ MessageBindings,
1105
+ OperationBindings,
1106
+ };
1107
+ export const AsyncApi2Types = {
1108
+ ...AsyncApi2Bindings,
1109
+ Root,
1110
+ Tag,
1111
+ TagList: listOf('Tag'),
1112
+ ServerMap,
1113
+ ExternalDocs,
1114
+ Server,
1115
+ ServerVariable,
1116
+ ServerVariablesMap: mapOf('ServerVariable'),
1117
+ SecurityRequirement,
1118
+ SecurityRequirementList: listOf('SecurityRequirement'),
1119
+ Info,
1120
+ Contact,
1121
+ License,
1122
+ ChannelMap,
1123
+ Channel,
1124
+ Parameter,
1125
+ ParametersMap: mapOf('Parameter'),
1126
+ Operation,
1127
+ Schema,
1128
+ MessageExample,
1129
+ SchemaProperties,
1130
+ DiscriminatorMapping,
1131
+ Discriminator,
1132
+ Components,
1133
+ NamedSchemas: mapOf('Schema'),
1134
+ NamedMessages: mapOf('Message'),
1135
+ NamedMessageTraits: mapOf('MessageTrait'),
1136
+ NamedOperationTraits: mapOf('OperationTrait'),
1137
+ NamedParameters: mapOf('Parameter'),
1138
+ NamedSecuritySchemes: mapOf('SecurityScheme'),
1139
+ NamedCorrelationIds: mapOf('CorrelationId'),
1140
+ ImplicitFlow,
1141
+ PasswordFlow,
1142
+ ClientCredentials,
1143
+ AuthorizationCode,
1144
+ SecuritySchemeFlows,
1145
+ SecurityScheme,
1146
+ Message,
1147
+ MessageBindings,
1148
+ OperationBindings,
1149
+ OperationTrait,
1150
+ OperationTraitList: listOf('OperationTrait'),
1151
+ MessageTrait,
1152
+ MessageTraitList: listOf('MessageTrait'),
1153
+ MessageExampleList: listOf('MessageExample'),
1154
+ CorrelationId,
1155
+ Dependencies,
1156
+ };
1157
+ //# sourceMappingURL=asyncapi2.js.map