@kubb/agent 4.27.2 → 4.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +330 -194
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +10 -5
  5. package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
  6. package/.output/server/index.mjs +11 -6
  7. package/.output/server/index.mjs.map +1 -1
  8. package/.output/server/node_modules/anymatch/index.js +104 -0
  9. package/.output/server/node_modules/anymatch/package.json +48 -0
  10. package/.output/server/node_modules/chokidar/handler.js +632 -0
  11. package/.output/server/node_modules/chokidar/index.js +822 -0
  12. package/.output/server/node_modules/chokidar/package.json +63 -0
  13. package/.output/server/node_modules/normalize-path/index.js +35 -0
  14. package/.output/server/node_modules/normalize-path/package.json +77 -0
  15. package/.output/server/node_modules/picomatch/index.js +1 -15
  16. package/.output/server/node_modules/picomatch/lib/constants.js +5 -6
  17. package/.output/server/node_modules/picomatch/lib/parse.js +9 -3
  18. package/.output/server/node_modules/picomatch/lib/picomatch.js +4 -3
  19. package/.output/server/node_modules/picomatch/lib/utils.js +16 -24
  20. package/.output/server/node_modules/picomatch/package.json +5 -7
  21. package/.output/server/node_modules/readdirp/index.js +272 -0
  22. package/.output/server/node_modules/readdirp/package.json +66 -0
  23. package/.output/server/package.json +6 -10
  24. package/LICENSE +21 -0
  25. package/README.md +98 -42
  26. package/package.json +17 -24
  27. package/.output/server/node_modules/@redocly/ajv/dist/2020.js +0 -55
  28. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +0 -50
  29. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +0 -156
  30. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +0 -697
  31. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +0 -143
  32. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +0 -123
  33. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +0 -249
  34. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +0 -29
  35. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +0 -12
  36. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +0 -155
  37. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +0 -26
  38. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +0 -178
  39. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +0 -19
  40. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +0 -50
  41. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +0 -203
  42. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +0 -35
  43. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +0 -534
  44. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +0 -124
  45. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +0 -81
  46. package/.output/server/node_modules/@redocly/ajv/dist/core.js +0 -632
  47. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +0 -56
  48. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +0 -13
  49. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  50. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  51. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  52. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  53. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  54. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  55. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  56. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  57. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  58. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +0 -138
  59. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +0 -151
  60. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +0 -7
  61. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +0 -24
  62. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +0 -6
  63. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +0 -11
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -107
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +0 -95
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +0 -66
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +0 -44
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +0 -52
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +0 -26
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +0 -55
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +0 -138
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +0 -10
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +0 -16
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +0 -132
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +0 -139
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +0 -9
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +0 -23
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +0 -29
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +0 -17
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +0 -9
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +0 -92
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +0 -6
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +0 -26
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +0 -8
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +0 -26
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  103. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -84
  104. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +0 -25
  105. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  106. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +0 -43
  107. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +0 -19
  108. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +0 -48
  109. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +0 -37
  110. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  111. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  112. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  113. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  114. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  115. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  116. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +0 -24
  117. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +0 -20
  118. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +0 -86
  119. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  120. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +0 -20
  121. package/.output/server/node_modules/@redocly/ajv/package.json +0 -130
  122. package/.output/server/node_modules/@redocly/config/lib/common.js +0 -90
  123. package/.output/server/node_modules/@redocly/config/lib/constants.js +0 -73
  124. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +0 -54
  125. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +0 -186
  126. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +0 -283
  127. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +0 -661
  128. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +0 -88
  129. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +0 -157
  130. package/.output/server/node_modules/@redocly/config/lib/index.js +0 -38
  131. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +0 -43
  132. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +0 -120
  133. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +0 -518
  134. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +0 -25
  135. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +0 -103
  136. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +0 -551
  137. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +0 -244
  138. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +0 -3
  139. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +0 -3
  140. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +0 -3
  141. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +0 -3
  142. package/.output/server/node_modules/@redocly/config/lib/types/index.js +0 -21
  143. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +0 -18
  144. package/.output/server/node_modules/@redocly/config/package.json +0 -28
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +0 -85
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +0 -257
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +0 -74
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +0 -310
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +0 -58
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +0 -27
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +0 -335
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +0 -338
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +0 -13
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +0 -9
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +0 -51
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +0 -8
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +0 -98
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +0 -289
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +0 -289
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +0 -289
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +0 -35
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +0 -289
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +0 -2
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +0 -129
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +0 -88
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +0 -2
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +0 -2
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +0 -2
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +0 -65
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +0 -14
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +0 -14
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +0 -21
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +0 -14
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +0 -58
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +0 -27
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +0 -68
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +0 -23
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +0 -19
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +0 -88
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +0 -21
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +0 -116
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +0 -2
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +0 -2
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +0 -79
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +0 -5
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +0 -14
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +0 -177
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +0 -365
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +0 -49
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +0 -11
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +0 -171
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +0 -123
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +0 -56
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +0 -35
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +0 -106
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +0 -326
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +0 -106
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +0 -68
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +0 -52
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +0 -139
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +0 -27
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +0 -30
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +0 -19
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +0 -21
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +0 -15
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +0 -27
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +0 -27
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +0 -23
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +0 -53
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +0 -19
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +0 -16
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +0 -32
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +0 -13
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +0 -16
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +0 -32
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +0 -13
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +0 -39
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +0 -269
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +0 -22
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +0 -215
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +0 -14
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +0 -23
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +0 -14
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +0 -42
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +0 -21
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +0 -38
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +0 -31
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +0 -21
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +0 -32
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +0 -34
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +0 -13
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +0 -78
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +0 -19
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +0 -42
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +0 -20
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +0 -20
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +0 -9
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +0 -17
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +0 -15
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +0 -13
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +0 -37
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +0 -13
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +0 -9
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +0 -27
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +0 -19
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +0 -13
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +0 -23
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +0 -15
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +0 -125
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +0 -30
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +0 -17
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +0 -34
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +0 -26
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +0 -39
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +0 -62
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +0 -27
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +0 -150
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +0 -9
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +0 -18
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +0 -19
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +0 -93
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +0 -14
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +0 -34
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +0 -14
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +0 -26
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +0 -21
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +0 -130
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +0 -129
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +0 -20
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +0 -13
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +0 -59
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +0 -15
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +0 -15
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +0 -58
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +0 -28
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +0 -83
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +0 -15
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +0 -33
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +0 -28
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +0 -36
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +0 -28
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +0 -59
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +0 -32
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +0 -31
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +0 -16
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +0 -38
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +0 -65
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +0 -20
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +0 -82
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +0 -28
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +0 -31
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +0 -74
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +0 -12
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +0 -20
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +0 -30
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +0 -25
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +0 -18
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +0 -35
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +0 -60
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +0 -172
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +0 -482
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +0 -1157
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +0 -511
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +0 -32
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +0 -90
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +0 -174
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +0 -101
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +0 -454
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +0 -828
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +0 -292
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +0 -306
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +0 -360
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +0 -61
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +0 -555
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +0 -3
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +0 -28
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +0 -36
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +0 -7
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +0 -3
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +0 -11
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +0 -4
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +0 -4
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +0 -4
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +0 -4
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +0 -4
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +0 -4
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +0 -5
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +0 -4
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +0 -6
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +0 -5
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +0 -27
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +0 -4
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +0 -4
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +0 -4
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +0 -4
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +0 -6
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +0 -4
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +0 -6
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +0 -4
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +0 -8
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +0 -4
  342. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +0 -8
  343. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +0 -26
  344. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +0 -5
  345. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +0 -99
  346. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +0 -11
  347. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +0 -13
  348. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +0 -7
  349. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +0 -31
  350. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +0 -23
  351. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +0 -177
  352. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +0 -303
  353. package/.output/server/node_modules/@redocly/openapi-core/package.json +0 -74
  354. package/.output/server/node_modules/ajv-formats/dist/formats.js +0 -208
  355. package/.output/server/node_modules/ajv-formats/dist/index.js +0 -37
  356. package/.output/server/node_modules/ajv-formats/dist/limit.js +0 -69
  357. package/.output/server/node_modules/ajv-formats/package.json +0 -74
  358. package/.output/server/node_modules/colorette/index.js +0 -82
  359. package/.output/server/node_modules/colorette/package.json +0 -39
  360. package/.output/server/node_modules/js-levenshtein/index.js +0 -105
  361. package/.output/server/node_modules/js-levenshtein/package.json +0 -49
  362. package/.output/server/node_modules/pluralize/package.json +0 -40
  363. package/.output/server/node_modules/pluralize/pluralize.js +0 -503
  364. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +0 -45
  365. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +0 -644
  366. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +0 -40
  367. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +0 -22
  368. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +0 -1416
  369. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +0 -62
  370. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +0 -82
  371. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +0 -8
  372. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +0 -14
  373. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +0 -19
  374. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +0 -10
  375. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +0 -14
  376. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +0 -78
  377. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +0 -92
  378. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +0 -32
  379. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +0 -95
  380. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +0 -155
  381. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +0 -64
  382. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +0 -22
  383. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +0 -7
  384. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +0 -10
  385. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +0 -30
  386. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +0 -46
  387. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +0 -55
  388. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +0 -7
  389. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +0 -22
  390. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +0 -7
  391. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +0 -70
  392. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +0 -54
  393. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +0 -82
  394. package/.output/server/node_modules/yaml-ast-parser/package.json +0 -39
@@ -1,511 +0,0 @@
1
- import { listOf, mapOf } from './index.js';
2
- import { AsyncApi2Bindings, CorrelationId, Tag, ServerMap, ExternalDocs, SecuritySchemeFlows, ServerVariable, Contact, License, MessageExample, } from './asyncapi2.js';
3
- import { Dependencies, Discriminator, DiscriminatorMapping, Schema, SchemaProperties, } from './json-schema-draft7.shared.js';
4
- import { isPlainObject } from '../utils/is-plain-object.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
@@ -1,32 +0,0 @@
1
- import { getNodeTypesFromJSONSchema } from './json-schema-adapter.js';
2
- import { isPlainObject } from '../utils/is-plain-object.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
@@ -1,90 +0,0 @@
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