@kubb/agent 4.33.1 → 4.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +18 -87
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  5. package/.output/server/index.mjs +1 -1
  6. package/.output/server/node_modules/.nitro/picomatch@4.0.3/index.js +17 -0
  7. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/constants.js +180 -0
  8. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/parse.js +1085 -0
  9. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/picomatch.js +341 -0
  10. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/scan.js +391 -0
  11. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/utils.js +72 -0
  12. package/.output/server/node_modules/.nitro/picomatch@4.0.3/package.json +83 -0
  13. package/.output/server/node_modules/@redocly/ajv/dist/2020.js +55 -0
  14. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
  15. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
  16. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
  17. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
  18. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
  19. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
  20. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
  21. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
  22. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
  23. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
  24. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
  25. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
  26. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
  27. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
  28. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
  29. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
  30. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
  31. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
  32. package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
  33. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
  34. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
  35. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  36. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  37. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  38. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  39. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  40. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  41. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  42. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  43. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  44. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
  45. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
  46. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
  47. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
  48. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
  49. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
  50. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  51. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
  52. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  53. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  54. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
  55. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  56. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  57. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
  58. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
  59. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
  60. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  61. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
  62. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  63. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
  103. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
  104. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
  105. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  106. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
  107. package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
  108. package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
  109. package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
  110. package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
  111. package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
  112. package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
  113. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +54 -0
  114. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
  115. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
  116. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +682 -0
  117. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
  118. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
  119. package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
  120. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
  121. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
  122. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
  123. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +25 -0
  124. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
  125. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
  126. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
  127. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
  128. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
  129. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
  130. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
  131. package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
  132. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
  133. package/.output/server/node_modules/@redocly/config/package.json +28 -0
  134. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
  135. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
  136. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
  137. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
  138. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
  139. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
  140. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
  141. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
  142. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
  143. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
  144. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +14 -0
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +14 -0
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
  342. package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
  343. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  344. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  345. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  346. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  347. package/.output/server/node_modules/colorette/index.js +82 -0
  348. package/.output/server/node_modules/colorette/package.json +39 -0
  349. package/.output/server/node_modules/js-levenshtein/index.js +105 -0
  350. package/.output/server/node_modules/js-levenshtein/package.json +49 -0
  351. package/.output/server/node_modules/pluralize/package.json +40 -0
  352. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  353. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
  354. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
  355. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
  356. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
  357. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
  358. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
  359. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
  360. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
  361. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
  362. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
  363. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
  364. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
  365. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
  366. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
  367. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
  368. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
  369. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
  370. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
  371. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
  372. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
  373. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
  374. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
  375. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
  376. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
  377. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
  378. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
  379. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
  380. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
  381. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
  382. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
  383. package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
  384. package/.output/server/package.json +9 -1
  385. package/package.json +16 -16
  386. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
  387. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
  388. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
  389. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
  390. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
  391. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
  392. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
@@ -0,0 +1,828 @@
1
+ import { isMappingRef } from '../ref-utils.js';
2
+ import { listOf, mapOf } from './index.js';
3
+ const responseCodeRegexp = /^[0-9][0-9Xx]{2}$/;
4
+ const Root = {
5
+ properties: {
6
+ openapi: null,
7
+ info: 'Info',
8
+ servers: 'ServerList',
9
+ security: 'SecurityRequirementList',
10
+ tags: 'TagList',
11
+ externalDocs: 'ExternalDocs',
12
+ paths: 'Paths',
13
+ components: 'Components',
14
+ 'x-webhooks': 'WebhooksMap',
15
+ 'x-tagGroups': 'TagGroups',
16
+ 'x-ignoredHeaderParameters': { type: 'array', items: { type: 'string' } },
17
+ },
18
+ required: ['openapi', 'paths', 'info'],
19
+ extensionsPrefix: 'x-',
20
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi',
21
+ description: 'REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string.',
22
+ };
23
+ const Tag = {
24
+ properties: {
25
+ name: {
26
+ type: 'string',
27
+ description: 'REQUIRED. The name of the tag.',
28
+ },
29
+ description: {
30
+ type: 'string',
31
+ description: 'A description for the tag.',
32
+ },
33
+ externalDocs: 'ExternalDocs',
34
+ 'x-traitTag': { type: 'boolean' },
35
+ 'x-displayName': { type: 'string' },
36
+ },
37
+ required: ['name'],
38
+ extensionsPrefix: 'x-',
39
+ description: `The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata.`,
40
+ };
41
+ const TagGroup = {
42
+ properties: {
43
+ name: {
44
+ type: 'string',
45
+ description: 'The display name for the tag, used in the navigation bar and as a section heading.',
46
+ },
47
+ tags: {
48
+ type: 'array',
49
+ description: 'List of tags to include in this group.',
50
+ items: { type: 'string' },
51
+ },
52
+ },
53
+ extensionsPrefix: 'x-',
54
+ description: 'The x-tagGroups extension is used at the top level of an OpenAPI description.',
55
+ documentationLink: 'https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object',
56
+ };
57
+ const ExternalDocs = {
58
+ properties: {
59
+ description: {
60
+ type: 'string',
61
+ description: 'A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text.',
62
+ },
63
+ url: {
64
+ type: 'string',
65
+ description: 'REQUIRED. The URL for the target documentation.',
66
+ },
67
+ },
68
+ required: ['url'],
69
+ extensionsPrefix: 'x-',
70
+ description: 'Additional external documentation for this operation.',
71
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/external-docs',
72
+ };
73
+ const Server = {
74
+ properties: {
75
+ url: {
76
+ type: 'string',
77
+ 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 OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }.',
78
+ },
79
+ description: {
80
+ type: 'string',
81
+ description: 'An optional string describing the host designated by the URL.',
82
+ },
83
+ variables: 'ServerVariablesMap',
84
+ },
85
+ required: ['url'],
86
+ extensionsPrefix: 'x-',
87
+ description: 'A server object to be used by the target operation.',
88
+ };
89
+ const ServerVariable = {
90
+ properties: {
91
+ enum: {
92
+ type: 'array',
93
+ items: { type: 'string' },
94
+ description: 'An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value.',
95
+ },
96
+ default: {
97
+ type: 'string',
98
+ description: `REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values.`,
99
+ },
100
+ description: {
101
+ type: 'string',
102
+ description: 'An optional description for the server variable.',
103
+ },
104
+ },
105
+ required: ['default'],
106
+ extensionsPrefix: 'x-',
107
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables',
108
+ description: 'Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant.',
109
+ };
110
+ const SecurityRequirement = {
111
+ properties: {},
112
+ additionalProperties: { type: 'array', items: { type: 'string' } },
113
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object',
114
+ description: 'A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array.',
115
+ };
116
+ const Info = {
117
+ properties: {
118
+ title: {
119
+ type: 'string',
120
+ description: 'REQUIRED. The title of the API.',
121
+ },
122
+ version: {
123
+ type: 'string',
124
+ description: 'REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version).',
125
+ },
126
+ description: {
127
+ type: 'string',
128
+ description: 'RECOMMENDED. A description of the API (Markdown may be used).',
129
+ },
130
+ termsOfService: {
131
+ type: 'string',
132
+ description: 'A URL to the Terms of Service for the API.',
133
+ },
134
+ contact: 'Contact',
135
+ license: 'License',
136
+ 'x-logo': 'Logo',
137
+ },
138
+ required: ['title', 'version'],
139
+ extensionsPrefix: 'x-',
140
+ description: 'REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.',
141
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/info#info',
142
+ };
143
+ const Logo = {
144
+ properties: {
145
+ url: { type: 'string' },
146
+ altText: { type: 'string' },
147
+ backgroundColor: { type: 'string' },
148
+ href: { type: 'string' },
149
+ },
150
+ documentationLink: 'https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo',
151
+ description: 'A commonly used specification extension containing the information about the API logo.',
152
+ };
153
+ const Contact = {
154
+ properties: {
155
+ name: {
156
+ type: 'string',
157
+ description: 'The identifying name of the contact person or organization.',
158
+ },
159
+ url: {
160
+ type: 'string',
161
+ description: 'The URL pointing to the contact information.',
162
+ },
163
+ email: {
164
+ type: 'string',
165
+ description: 'The email address of the contact person or organization.',
166
+ },
167
+ },
168
+ extensionsPrefix: 'x-',
169
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/contact',
170
+ description: 'The contact information for the exposed API.',
171
+ };
172
+ const License = {
173
+ properties: {
174
+ name: {
175
+ type: 'string',
176
+ description: 'REQUIRED. The license name used for the API.',
177
+ },
178
+ url: {
179
+ type: 'string',
180
+ description: 'The URL pointing to the contact information.',
181
+ },
182
+ },
183
+ required: ['name'],
184
+ extensionsPrefix: 'x-',
185
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/license#license',
186
+ description: 'The license information for the exposed API.',
187
+ };
188
+ const Paths = {
189
+ properties: {},
190
+ additionalProperties: (_value, key) => key.startsWith('/') ? 'PathItem' : undefined,
191
+ description: 'The Paths Object is a map of a paths to the path item object. A path starts with a /.',
192
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object',
193
+ };
194
+ const WebhooksMap = {
195
+ properties: {},
196
+ additionalProperties: () => 'PathItem',
197
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types',
198
+ };
199
+ const PathItem = {
200
+ properties: {
201
+ $ref: {
202
+ type: 'string',
203
+ description: 'Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.',
204
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/reference',
205
+ }, // TODO: verify special $ref handling for Path Item
206
+ servers: 'ServerList',
207
+ parameters: 'ParameterList',
208
+ summary: {
209
+ type: 'string',
210
+ description: 'An optional, string summary, intended to apply to all operations in this path.',
211
+ },
212
+ description: {
213
+ type: 'string',
214
+ description: 'An optional, string description, intended to apply to all operations in this path.',
215
+ },
216
+ get: 'Operation',
217
+ put: 'Operation',
218
+ post: 'Operation',
219
+ delete: 'Operation',
220
+ options: 'Operation',
221
+ head: 'Operation',
222
+ patch: 'Operation',
223
+ trace: 'Operation',
224
+ 'x-query': 'Operation',
225
+ },
226
+ extensionsPrefix: 'x-',
227
+ description: 'Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.',
228
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object',
229
+ };
230
+ const Parameter = {
231
+ properties: {
232
+ name: {
233
+ type: 'string',
234
+ description: 'REQUIRED. The name of the parameter. Parameter names are case sensitive.',
235
+ },
236
+ in: {
237
+ enum: ['query', 'header', 'path', 'cookie'],
238
+ description: 'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".',
239
+ },
240
+ description: {
241
+ type: 'string',
242
+ description: 'A brief description of the parameter. This could contain examples of use.',
243
+ },
244
+ required: {
245
+ type: 'boolean',
246
+ description: 'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.',
247
+ },
248
+ deprecated: {
249
+ type: 'boolean',
250
+ description: 'Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.',
251
+ },
252
+ allowEmptyValue: {
253
+ type: 'boolean',
254
+ description: 'Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision.',
255
+ },
256
+ style: {
257
+ enum: ['form', 'simple', 'label', 'matrix', 'spaceDelimited', 'pipeDelimited', 'deepObject'],
258
+ description: 'Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.',
259
+ },
260
+ explode: {
261
+ type: 'boolean',
262
+ description: 'When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.',
263
+ },
264
+ allowReserved: {
265
+ type: 'boolean',
266
+ description: `Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false.`,
267
+ },
268
+ schema: 'Schema',
269
+ example: { isExample: true },
270
+ examples: 'ExamplesMap',
271
+ content: 'MediaTypesMap',
272
+ },
273
+ required: ['name', 'in'],
274
+ requiredOneOf: ['schema', 'content'],
275
+ extensionsPrefix: 'x-',
276
+ description: 'Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.',
277
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/parameter',
278
+ };
279
+ const Operation = {
280
+ properties: {
281
+ tags: {
282
+ type: 'array',
283
+ items: { type: 'string' },
284
+ description: 'A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.',
285
+ },
286
+ summary: {
287
+ type: 'string',
288
+ description: 'A short summary of what the operation does.',
289
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary',
290
+ },
291
+ description: {
292
+ type: 'string',
293
+ description: 'A verbose explanation of the operation behavior.',
294
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/operation#description',
295
+ },
296
+ externalDocs: 'ExternalDocs',
297
+ operationId: {
298
+ type: 'string',
299
+ description: 'The operationId is path segment or path fragment in deep links to a specific operation.',
300
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid',
301
+ },
302
+ parameters: 'ParameterList',
303
+ security: 'SecurityRequirementList',
304
+ servers: 'ServerList',
305
+ requestBody: 'RequestBody',
306
+ responses: 'Responses',
307
+ deprecated: { type: 'boolean' },
308
+ callbacks: 'CallbacksMap',
309
+ 'x-codeSamples': 'XCodeSampleList',
310
+ 'x-code-samples': 'XCodeSampleList', // deprecated
311
+ 'x-hideTryItPanel': { type: 'boolean' },
312
+ },
313
+ required: ['responses'],
314
+ extensionsPrefix: 'x-',
315
+ description: `The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.`,
316
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/operation',
317
+ };
318
+ const XCodeSample = {
319
+ properties: {
320
+ lang: { type: 'string' },
321
+ label: { type: 'string' },
322
+ source: { type: 'string' },
323
+ },
324
+ documentationLink: 'https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples',
325
+ description: 'Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint.',
326
+ };
327
+ const RequestBody = {
328
+ properties: {
329
+ description: {
330
+ type: 'string',
331
+ description: 'A brief description of the request body. This could contain examples of use.',
332
+ },
333
+ required: {
334
+ type: 'boolean',
335
+ description: 'Determines if the request body is required in the request. Defaults to false.',
336
+ },
337
+ content: 'MediaTypesMap',
338
+ },
339
+ required: ['content'],
340
+ extensionsPrefix: 'x-',
341
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/request-body',
342
+ description: 'The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components.',
343
+ };
344
+ const MediaTypesMap = {
345
+ properties: {},
346
+ additionalProperties: 'MediaType',
347
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types',
348
+ };
349
+ const MediaType = {
350
+ properties: {
351
+ schema: 'Schema',
352
+ example: {
353
+ isExample: true,
354
+ description: 'Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.',
355
+ },
356
+ examples: 'ExamplesMap',
357
+ encoding: 'EncodingMap',
358
+ },
359
+ extensionsPrefix: 'x-',
360
+ description: 'The Media Type Object is one of the important building blocks of OpenAPI.',
361
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/media-type',
362
+ };
363
+ const Example = {
364
+ properties: {
365
+ value: {
366
+ resolvable: false,
367
+ description: 'Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary.',
368
+ },
369
+ summary: { type: 'string' },
370
+ description: { type: 'string', description: 'Long description for the example.' },
371
+ externalValue: {
372
+ type: 'string',
373
+ description: 'A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive.',
374
+ },
375
+ },
376
+ extensionsPrefix: 'x-',
377
+ description: 'Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.',
378
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/example',
379
+ };
380
+ const Encoding = {
381
+ properties: {
382
+ contentType: {
383
+ type: 'string',
384
+ description: `The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary – application/octet-stream; for other primitive types – text/plain; for object - application/json; for array – the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types.`,
385
+ },
386
+ headers: 'HeadersMap',
387
+ style: {
388
+ enum: ['form', 'simple', 'label', 'matrix', 'spaceDelimited', 'pipeDelimited', 'deepObject'],
389
+ description: 'Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded.',
390
+ },
391
+ explode: {
392
+ type: 'boolean',
393
+ description: 'When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded.',
394
+ },
395
+ allowReserved: {
396
+ type: 'boolean',
397
+ description: `Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded.`,
398
+ },
399
+ },
400
+ extensionsPrefix: 'x-',
401
+ description: 'A single encoding definition applied to a single schema property.',
402
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types',
403
+ };
404
+ const EnumDescriptions = {
405
+ properties: {},
406
+ additionalProperties: { type: 'string' },
407
+ description: 'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',
408
+ documentationLink: 'https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions',
409
+ };
410
+ const Header = {
411
+ properties: {
412
+ description: {
413
+ type: 'string',
414
+ description: 'A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.',
415
+ },
416
+ required: {
417
+ type: 'boolean',
418
+ description: 'Determines whether this parameter is mandatory. Its default value is false.',
419
+ },
420
+ deprecated: { type: 'boolean' },
421
+ allowEmptyValue: {
422
+ type: 'boolean',
423
+ description: 'Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false.',
424
+ },
425
+ style: {
426
+ enum: ['form', 'simple', 'label', 'matrix', 'spaceDelimited', 'pipeDelimited', 'deepObject'],
427
+ },
428
+ explode: { type: 'boolean' },
429
+ allowReserved: { type: 'boolean' },
430
+ schema: 'Schema',
431
+ example: {
432
+ isExample: true,
433
+ description: `Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary.`,
434
+ },
435
+ examples: 'ExamplesMap',
436
+ content: 'MediaTypesMap',
437
+ },
438
+ requiredOneOf: ['schema', 'content'],
439
+ extensionsPrefix: 'x-',
440
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object',
441
+ description: 'The header object is used to describe a response header in the headers map.',
442
+ };
443
+ const Responses = {
444
+ properties: { default: 'Response' },
445
+ additionalProperties: (_v, key) => responseCodeRegexp.test(key) ? 'Response' : undefined,
446
+ description: 'The list of possible responses as they are returned from executing this operation.',
447
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/named-responses',
448
+ };
449
+ const Response = {
450
+ properties: {
451
+ description: { type: 'string' },
452
+ headers: 'HeadersMap',
453
+ content: 'MediaTypesMap',
454
+ links: 'LinksMap',
455
+ 'x-summary': {
456
+ type: 'string',
457
+ documentationLink: 'https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary',
458
+ description: 'Use x-summary to add a short custom text to describe the response in the API documentation.',
459
+ },
460
+ },
461
+ required: ['description'],
462
+ extensionsPrefix: 'x-',
463
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/response',
464
+ description: 'The response object describes a single response in the Responses Map.',
465
+ };
466
+ const Link = {
467
+ properties: {
468
+ operationRef: {
469
+ type: 'string',
470
+ description: 'A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition.',
471
+ },
472
+ operationId: {
473
+ type: 'string',
474
+ description: 'The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.',
475
+ },
476
+ parameters: null, // TODO: figure out how to describe/validate this
477
+ requestBody: null, // TODO: figure out how to describe/validate this
478
+ description: { type: 'string', description: 'A description of the link.' },
479
+ server: 'Server',
480
+ },
481
+ extensionsPrefix: 'x-',
482
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/links',
483
+ description: 'The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.',
484
+ };
485
+ // draft-00
486
+ const Schema = {
487
+ properties: {
488
+ externalDocs: 'ExternalDocs',
489
+ discriminator: 'Discriminator',
490
+ title: {
491
+ type: 'string',
492
+ description: 'Value MUST be a string. Multiple types via an array are not supported.',
493
+ },
494
+ multipleOf: { type: 'number', minimum: 0 },
495
+ maximum: { type: 'number' },
496
+ minimum: { type: 'number' },
497
+ exclusiveMaximum: { type: 'boolean' },
498
+ exclusiveMinimum: { type: 'boolean' },
499
+ maxLength: { type: 'integer', minimum: 0 },
500
+ minLength: { type: 'integer', minimum: 0 },
501
+ pattern: {
502
+ type: 'string',
503
+ description: '(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)',
504
+ },
505
+ maxItems: { type: 'integer', minimum: 0 },
506
+ minItems: { type: 'integer', minimum: 0 },
507
+ uniqueItems: { type: 'boolean' },
508
+ maxProperties: { type: 'integer', minimum: 0 },
509
+ minProperties: { type: 'integer', minimum: 0 },
510
+ required: { type: 'array', items: { type: 'string' } },
511
+ enum: { type: 'array' },
512
+ type: {
513
+ enum: ['object', 'array', 'string', 'number', 'integer', 'boolean'],
514
+ description: 'Value MUST be a string. Multiple types via an array are not supported.',
515
+ },
516
+ allOf: listOf('Schema', {
517
+ description: 'Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.',
518
+ }),
519
+ anyOf: listOf('Schema', {
520
+ description: 'Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.',
521
+ }),
522
+ oneOf: listOf('Schema', {
523
+ description: 'Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.',
524
+ }),
525
+ not: 'Schema',
526
+ properties: 'SchemaProperties',
527
+ items: (value) => {
528
+ if (Array.isArray(value)) {
529
+ return listOf('Schema');
530
+ }
531
+ else {
532
+ return 'Schema';
533
+ }
534
+ },
535
+ additionalProperties: (value) => {
536
+ if (typeof value === 'boolean') {
537
+ return { type: 'boolean' };
538
+ }
539
+ else {
540
+ return 'Schema';
541
+ }
542
+ },
543
+ description: {
544
+ type: 'string',
545
+ description: 'CommonMark syntax MAY be used for rich text representation.',
546
+ },
547
+ format: {
548
+ type: 'string',
549
+ description: `See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats.`,
550
+ },
551
+ default: null,
552
+ nullable: { type: 'boolean' },
553
+ readOnly: { type: 'boolean' },
554
+ writeOnly: { type: 'boolean' },
555
+ xml: 'Xml',
556
+ example: { isExample: true },
557
+ deprecated: { type: 'boolean' },
558
+ 'x-tags': { type: 'array', items: { type: 'string' } },
559
+ 'x-additionalPropertiesName': { type: 'string' },
560
+ 'x-explicitMappingOnly': { type: 'boolean' },
561
+ },
562
+ extensionsPrefix: 'x-',
563
+ description: 'The schema defining the content of the request, response, or parameter.',
564
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/schemas',
565
+ };
566
+ const Xml = {
567
+ properties: {
568
+ name: { type: 'string' },
569
+ namespace: { type: 'string' },
570
+ prefix: { type: 'string' },
571
+ attribute: { type: 'boolean' },
572
+ wrapped: { type: 'boolean' },
573
+ },
574
+ extensionsPrefix: 'x-',
575
+ description: 'This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property.',
576
+ };
577
+ const SchemaProperties = {
578
+ properties: {},
579
+ additionalProperties: 'Schema',
580
+ };
581
+ const DiscriminatorMapping = {
582
+ properties: {},
583
+ additionalProperties: (value) => {
584
+ if (isMappingRef(value)) {
585
+ return { type: 'string', directResolveAs: 'Schema' };
586
+ }
587
+ else {
588
+ return { type: 'string' };
589
+ }
590
+ },
591
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types',
592
+ };
593
+ const Discriminator = {
594
+ properties: {
595
+ propertyName: {
596
+ type: 'string',
597
+ description: 'REQUIRED. The name of the property in the payload that will hold the discriminator value.',
598
+ },
599
+ mapping: 'DiscriminatorMapping',
600
+ },
601
+ required: ['propertyName'],
602
+ extensionsPrefix: 'x-',
603
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object',
604
+ description: 'When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it.',
605
+ };
606
+ const Components = {
607
+ properties: {
608
+ parameters: 'NamedParameters',
609
+ schemas: 'NamedSchemas',
610
+ responses: 'NamedResponses',
611
+ examples: 'NamedExamples',
612
+ requestBodies: 'NamedRequestBodies',
613
+ headers: 'NamedHeaders',
614
+ securitySchemes: 'NamedSecuritySchemes',
615
+ links: 'NamedLinks',
616
+ callbacks: 'NamedCallbacks',
617
+ },
618
+ extensionsPrefix: 'x-',
619
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/components#components',
620
+ };
621
+ const ImplicitFlow = {
622
+ properties: {
623
+ refreshUrl: { type: 'string' },
624
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
625
+ authorizationUrl: { type: 'string' },
626
+ },
627
+ required: ['authorizationUrl', 'scopes'],
628
+ extensionsPrefix: 'x-',
629
+ description: 'Configuration for the OAuth Implicit flow.',
630
+ };
631
+ const PasswordFlow = {
632
+ properties: {
633
+ refreshUrl: { type: 'string' },
634
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
635
+ tokenUrl: { type: 'string' },
636
+ },
637
+ required: ['tokenUrl', 'scopes'],
638
+ extensionsPrefix: 'x-',
639
+ description: 'Object Configuration for the OAuth Resource Owner Password flow.',
640
+ };
641
+ const ClientCredentials = {
642
+ properties: {
643
+ refreshUrl: { type: 'string' },
644
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
645
+ tokenUrl: { type: 'string' },
646
+ },
647
+ required: ['tokenUrl', 'scopes'],
648
+ extensionsPrefix: 'x-',
649
+ description: 'Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0.',
650
+ };
651
+ const AuthorizationCode = {
652
+ properties: {
653
+ refreshUrl: { type: 'string' },
654
+ authorizationUrl: { type: 'string' },
655
+ scopes: { type: 'object', additionalProperties: { type: 'string' } }, // TODO: validate scopes
656
+ tokenUrl: { type: 'string' },
657
+ 'x-usePkce': (value) => {
658
+ if (typeof value === 'boolean') {
659
+ return { type: 'boolean' };
660
+ }
661
+ else {
662
+ return 'XUsePkce';
663
+ }
664
+ },
665
+ },
666
+ required: ['authorizationUrl', 'tokenUrl', 'scopes'],
667
+ extensionsPrefix: 'x-',
668
+ description: 'Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.',
669
+ };
670
+ const OAuth2Flows = {
671
+ properties: {
672
+ implicit: 'ImplicitFlow',
673
+ password: 'PasswordFlow',
674
+ clientCredentials: 'ClientCredentials',
675
+ authorizationCode: 'AuthorizationCode',
676
+ },
677
+ extensionsPrefix: 'x-',
678
+ description: 'Configuration details for a supported OAuth Flow.',
679
+ };
680
+ const SecurityScheme = {
681
+ properties: {
682
+ type: {
683
+ enum: ['apiKey', 'http', 'oauth2', 'openIdConnect'],
684
+ description: 'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".',
685
+ },
686
+ description: {
687
+ type: 'string',
688
+ description: 'A short description for security scheme.',
689
+ },
690
+ name: {
691
+ type: 'string',
692
+ description: 'REQUIRED. The name of the header, query or cookie parameter to be used.',
693
+ },
694
+ in: {
695
+ type: 'string',
696
+ enum: ['query', 'header', 'cookie'],
697
+ description: 'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".',
698
+ },
699
+ scheme: {
700
+ type: 'string',
701
+ description: 'A short description for security scheme.',
702
+ },
703
+ bearerFormat: {
704
+ type: 'string',
705
+ 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.',
706
+ },
707
+ flows: 'OAuth2Flows',
708
+ openIdConnectUrl: {
709
+ type: 'string',
710
+ description: 'REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL.',
711
+ },
712
+ 'x-defaultClientId': { type: 'string' },
713
+ },
714
+ required(value) {
715
+ switch (value?.type) {
716
+ case 'apiKey':
717
+ return ['type', 'name', 'in'];
718
+ case 'http':
719
+ return ['type', 'scheme'];
720
+ case 'oauth2':
721
+ return ['type', 'flows'];
722
+ case 'openIdConnect':
723
+ return ['type', 'openIdConnectUrl'];
724
+ default:
725
+ return ['type'];
726
+ }
727
+ },
728
+ allowed(value) {
729
+ switch (value?.type) {
730
+ case 'apiKey':
731
+ return ['type', 'name', 'in', 'description'];
732
+ case 'http':
733
+ return ['type', 'scheme', 'bearerFormat', 'description'];
734
+ case 'oauth2':
735
+ return ['type', 'flows', 'description'];
736
+ case 'openIdConnect':
737
+ return ['type', 'openIdConnectUrl', 'description'];
738
+ default:
739
+ return ['type', 'description'];
740
+ }
741
+ },
742
+ extensionsPrefix: 'x-',
743
+ };
744
+ const XUsePkce = {
745
+ properties: {
746
+ disableManualConfiguration: { type: 'boolean' },
747
+ hideClientSecretInput: { type: 'boolean' },
748
+ },
749
+ description: 'The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.',
750
+ documentationLink: 'https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce',
751
+ };
752
+ export const Oas3Types = {
753
+ Root,
754
+ Tag,
755
+ TagList: listOf('Tag', {
756
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/tags',
757
+ description: `A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.`,
758
+ }),
759
+ TagGroups: listOf('TagGroup'),
760
+ TagGroup,
761
+ ExternalDocs,
762
+ Server,
763
+ ServerList: listOf('Server', {
764
+ description: 'A list of servers available to the API.',
765
+ documentationLink: 'https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers',
766
+ }),
767
+ ServerVariable,
768
+ ServerVariablesMap: mapOf('ServerVariable', {
769
+ description: `A map between a variable name and its value. The value is used for substitution in the server's URL template.`,
770
+ }),
771
+ SecurityRequirement,
772
+ SecurityRequirementList: listOf('SecurityRequirement'),
773
+ Info,
774
+ Contact,
775
+ License,
776
+ Paths,
777
+ PathItem,
778
+ Parameter,
779
+ ParameterList: listOf('Parameter', {
780
+ description: 'A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object’s components/parameters.',
781
+ }),
782
+ Operation,
783
+ Callback: mapOf('PathItem', {
784
+ description: 'https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object',
785
+ }),
786
+ CallbacksMap: mapOf('Callback'),
787
+ RequestBody,
788
+ MediaTypesMap,
789
+ MediaType,
790
+ Example,
791
+ ExamplesMap: mapOf('Example'),
792
+ Encoding,
793
+ EncodingMap: mapOf('Encoding'),
794
+ EnumDescriptions,
795
+ Header,
796
+ HeadersMap: mapOf('Header'),
797
+ Responses,
798
+ Response,
799
+ Link,
800
+ Logo,
801
+ Schema,
802
+ Xml,
803
+ SchemaProperties,
804
+ DiscriminatorMapping,
805
+ Discriminator,
806
+ Components,
807
+ LinksMap: mapOf('Link'),
808
+ NamedSchemas: mapOf('Schema'),
809
+ NamedResponses: mapOf('Response'),
810
+ NamedParameters: mapOf('Parameter'),
811
+ NamedExamples: mapOf('Example'),
812
+ NamedRequestBodies: mapOf('RequestBody'),
813
+ NamedHeaders: mapOf('Header'),
814
+ NamedSecuritySchemes: mapOf('SecurityScheme'),
815
+ NamedLinks: mapOf('Link'),
816
+ NamedCallbacks: mapOf('Callback'),
817
+ ImplicitFlow,
818
+ PasswordFlow,
819
+ ClientCredentials,
820
+ AuthorizationCode,
821
+ OAuth2Flows,
822
+ SecurityScheme,
823
+ XCodeSample,
824
+ XCodeSampleList: listOf('XCodeSample'),
825
+ XUsePkce,
826
+ WebhooksMap,
827
+ };
828
+ //# sourceMappingURL=oas3.js.map