@redocly/openapi-core 1.19.0 → 1.20.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 (338) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/__tests__/utils.ts +14 -7
  3. package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts +1 -0
  4. package/lib/benchmark/benches/lint-with-many-rules.bench.js +5 -1
  5. package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts +1 -0
  6. package/lib/benchmark/benches/lint-with-nested-rule.bench.js +5 -1
  7. package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts +1 -0
  8. package/lib/benchmark/benches/lint-with-no-rules.bench.js +5 -1
  9. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts +1 -0
  10. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js +17 -13
  11. package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts +1 -0
  12. package/lib/benchmark/benches/lint-with-top-level-rule.bench.js +16 -12
  13. package/lib/benchmark/utils.d.ts +3 -3
  14. package/lib/benchmark/utils.js +3 -3
  15. package/lib/config/all.js +4 -1
  16. package/lib/config/builtIn.js +15 -20
  17. package/lib/config/config-resolvers.d.ts +1 -1
  18. package/lib/config/config-resolvers.js +66 -24
  19. package/lib/config/config.d.ts +3 -2
  20. package/lib/config/load.d.ts +1 -1
  21. package/lib/config/minimal.js +4 -0
  22. package/lib/config/recommended-strict.js +5 -1
  23. package/lib/config/recommended.js +5 -1
  24. package/lib/config/types.d.ts +9 -2
  25. package/lib/config/utils.d.ts +3 -1
  26. package/lib/config/utils.js +8 -0
  27. package/lib/decorators/common/filters/filter-helper.d.ts +1 -1
  28. package/lib/decorators/common/filters/filter-in.d.ts +1 -1
  29. package/lib/decorators/common/filters/filter-out.d.ts +1 -1
  30. package/lib/decorators/common/info-description-override.d.ts +1 -1
  31. package/lib/decorators/common/info-override.d.ts +1 -1
  32. package/lib/decorators/common/media-type-examples-override.d.ts +1 -1
  33. package/lib/decorators/common/operation-description-override.d.ts +1 -1
  34. package/lib/decorators/common/registry-dependencies.d.ts +1 -1
  35. package/lib/decorators/common/remove-x-internal.d.ts +1 -1
  36. package/lib/decorators/common/tag-description-override.d.ts +1 -1
  37. package/lib/decorators/oas2/index.d.ts +1 -1
  38. package/lib/decorators/oas3/index.d.ts +1 -1
  39. package/lib/format/codeframes.d.ts +1 -1
  40. package/lib/format/format.d.ts +1 -1
  41. package/lib/format/format.js +1 -1
  42. package/lib/js-yaml/index.d.ts +1 -1
  43. package/lib/lint.d.ts +1 -1
  44. package/lib/logger.js +2 -2
  45. package/lib/oas-types.d.ts +2 -2
  46. package/lib/redocly/domains.d.ts +1 -1
  47. package/lib/redocly/index.d.ts +1 -1
  48. package/lib/ref-utils.d.ts +2 -2
  49. package/lib/ref-utils.js +1 -0
  50. package/lib/resolve.d.ts +2 -2
  51. package/lib/rules/ajv.d.ts +1 -1
  52. package/lib/rules/arazzo/index.js +2 -0
  53. package/lib/rules/async2/channels-kebab-case.d.ts +1 -1
  54. package/lib/rules/async2/index.js +2 -0
  55. package/lib/rules/async2/no-channel-trailing-slash.d.ts +1 -1
  56. package/lib/rules/async3/channels-kebab-case.d.ts +1 -1
  57. package/lib/rules/async3/index.js +2 -0
  58. package/lib/rules/async3/no-channel-trailing-slash.d.ts +1 -1
  59. package/lib/rules/common/assertions/asserts.d.ts +2 -2
  60. package/lib/rules/common/assertions/index.d.ts +1 -2
  61. package/lib/rules/common/assertions/utils.d.ts +1 -1
  62. package/lib/rules/common/info-contact.d.ts +1 -1
  63. package/lib/rules/common/info-license-strict.d.ts +2 -0
  64. package/lib/rules/common/info-license-strict.js +26 -0
  65. package/lib/rules/common/info-license-url.d.ts +1 -1
  66. package/lib/rules/common/info-license.d.ts +1 -1
  67. package/lib/rules/common/no-ambiguous-paths.d.ts +1 -1
  68. package/lib/rules/common/no-enum-type-mismatch.d.ts +1 -1
  69. package/lib/rules/common/no-http-verbs-in-paths.d.ts +1 -1
  70. package/lib/rules/common/no-identical-paths.d.ts +1 -1
  71. package/lib/rules/common/no-path-trailing-slash.d.ts +1 -1
  72. package/lib/rules/common/no-required-schema-properties-undefined.d.ts +1 -1
  73. package/lib/rules/common/operation-2xx-response.d.ts +1 -1
  74. package/lib/rules/common/operation-4xx-response.d.ts +1 -1
  75. package/lib/rules/common/operation-description.d.ts +1 -1
  76. package/lib/rules/common/operation-operationId-unique.d.ts +1 -1
  77. package/lib/rules/common/operation-operationId-url-safe.d.ts +1 -1
  78. package/lib/rules/common/operation-operationId-url-safe.js +1 -0
  79. package/lib/rules/common/operation-operationId.d.ts +1 -1
  80. package/lib/rules/common/operation-parameters-unique.d.ts +1 -1
  81. package/lib/rules/common/operation-singular-tag.d.ts +1 -1
  82. package/lib/rules/common/operation-summary.d.ts +1 -1
  83. package/lib/rules/common/operation-tag-defined.d.ts +1 -1
  84. package/lib/rules/common/parameter-description.d.ts +1 -1
  85. package/lib/rules/common/path-declaration-must-exist.d.ts +1 -1
  86. package/lib/rules/common/path-excludes-patterns.d.ts +1 -1
  87. package/lib/rules/common/path-http-verbs-order.d.ts +1 -1
  88. package/lib/rules/common/path-not-include-query.d.ts +1 -1
  89. package/lib/rules/common/path-params-defined.d.ts +1 -1
  90. package/lib/rules/common/path-segment-plural.d.ts +1 -1
  91. package/lib/rules/common/paths-kebab-case.d.ts +1 -1
  92. package/lib/rules/common/required-string-property-missing-min-length.d.ts +1 -1
  93. package/lib/rules/common/response-contains-header.d.ts +1 -1
  94. package/lib/rules/common/security-defined.d.ts +1 -1
  95. package/lib/rules/common/spec-strict-refs.d.ts +1 -1
  96. package/lib/rules/common/tag-description.d.ts +1 -1
  97. package/lib/rules/common/tags-alphabetical.d.ts +1 -1
  98. package/lib/rules/no-unresolved-refs.d.ts +3 -3
  99. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +1 -1
  100. package/lib/rules/oas2/index.d.ts +1 -1
  101. package/lib/rules/oas2/index.js +2 -0
  102. package/lib/rules/oas2/response-contains-property.d.ts +1 -1
  103. package/lib/rules/oas3/array-parameter-serialization.d.ts +1 -1
  104. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +1 -1
  105. package/lib/rules/oas3/component-name-unique.d.ts +1 -1
  106. package/lib/rules/oas3/index.d.ts +1 -1
  107. package/lib/rules/oas3/index.js +2 -0
  108. package/lib/rules/oas3/no-empty-servers.d.ts +1 -1
  109. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +1 -1
  110. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +1 -1
  111. package/lib/rules/oas3/no-server-example.com.d.ts +1 -1
  112. package/lib/rules/oas3/no-server-example.com.js +1 -0
  113. package/lib/rules/oas3/no-server-trailing-slash.d.ts +1 -1
  114. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +1 -1
  115. package/lib/rules/oas3/no-undefined-server-variable.d.ts +1 -1
  116. package/lib/rules/oas3/no-unused-components.d.ts +1 -1
  117. package/lib/rules/oas3/response-contains-property.d.ts +1 -1
  118. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +1 -1
  119. package/lib/rules/other/stats.d.ts +3 -3
  120. package/lib/rules/other/stats.js +5 -3
  121. package/lib/rules/spot/parameters-no-body-inside-in.d.ts +2 -0
  122. package/lib/rules/spot/parameters-no-body-inside-in.js +18 -0
  123. package/lib/rules/utils.d.ts +4 -2
  124. package/lib/rules/utils.js +27 -1
  125. package/lib/types/arazzo.d.ts +1 -2275
  126. package/lib/types/arazzo.js +246 -309
  127. package/lib/types/asyncapi2.d.ts +1 -1
  128. package/lib/types/asyncapi2.js +3 -1
  129. package/lib/types/asyncapi3.d.ts +1 -1
  130. package/lib/types/json-schema-adapter.d.ts +1 -1
  131. package/lib/types/oas3.d.ts +4 -0
  132. package/lib/types/oas3.js +9 -9
  133. package/lib/types/oas3_1.d.ts +3 -0
  134. package/lib/types/oas3_1.js +8 -8
  135. package/lib/types/redocly-yaml.d.ts +6 -6
  136. package/lib/types/redocly-yaml.js +4 -1
  137. package/lib/typings/arazzo.d.ts +145 -27
  138. package/lib/typings/common.d.ts +1 -1
  139. package/lib/typings/swagger.d.ts +2 -2
  140. package/lib/visitors.d.ts +18 -1
  141. package/lib/walk.d.ts +3 -3
  142. package/package.json +2 -2
  143. package/src/__tests__/bundle.test.ts +4 -4
  144. package/src/__tests__/lint.test.ts +29 -21
  145. package/src/__tests__/walk.test.ts +25 -25
  146. package/src/benchmark/benches/lint-with-many-rules.bench.ts +7 -1
  147. package/src/benchmark/benches/lint-with-nested-rule.bench.ts +7 -1
  148. package/src/benchmark/benches/lint-with-no-rules.bench.ts +8 -1
  149. package/src/benchmark/benches/lint-with-top-level-rule-report.bench.ts +18 -13
  150. package/src/benchmark/benches/lint-with-top-level-rule.bench.ts +17 -11
  151. package/src/benchmark/fork.js +4 -0
  152. package/src/benchmark/utils.ts +6 -5
  153. package/src/bundle.ts +2 -1
  154. package/src/config/__tests__/__snapshots__/config-resolvers.test.ts.snap +10 -2
  155. package/src/config/__tests__/config-resolvers.test.ts +82 -0
  156. package/src/config/__tests__/fixtures/resolve-config/local-config-with-commonjs-export-function.yaml +2 -0
  157. package/src/config/__tests__/fixtures/resolve-config/local-config-with-esm.yaml +2 -0
  158. package/src/config/__tests__/fixtures/resolve-config/plugin-esm.mjs +10 -0
  159. package/src/config/__tests__/fixtures/resolve-config/plugin-with-export-function.cjs +10 -0
  160. package/src/config/__tests__/resolve-plugins.test.ts +4 -1
  161. package/src/config/all.ts +4 -1
  162. package/src/config/builtIn.ts +5 -10
  163. package/src/config/config-resolvers.ts +77 -19
  164. package/src/config/config.ts +7 -8
  165. package/src/config/load.ts +2 -2
  166. package/src/config/minimal.ts +4 -0
  167. package/src/config/recommended-strict.ts +5 -1
  168. package/src/config/recommended.ts +5 -1
  169. package/src/config/types.ts +19 -3
  170. package/src/config/utils.ts +13 -2
  171. package/src/decorators/__tests__/filter-in.test.ts +29 -26
  172. package/src/decorators/__tests__/filter-out.test.ts +32 -23
  173. package/src/decorators/__tests__/media-type-examples-override.test.ts +45 -45
  174. package/src/decorators/__tests__/remove-x-internal.test.ts +8 -5
  175. package/src/decorators/common/filters/filter-helper.ts +2 -1
  176. package/src/decorators/common/filters/filter-in.ts +2 -1
  177. package/src/decorators/common/filters/filter-out.ts +2 -1
  178. package/src/decorators/common/info-description-override.ts +3 -2
  179. package/src/decorators/common/info-override.ts +1 -1
  180. package/src/decorators/common/media-type-examples-override.ts +4 -3
  181. package/src/decorators/common/operation-description-override.ts +5 -4
  182. package/src/decorators/common/registry-dependencies.ts +2 -2
  183. package/src/decorators/common/remove-x-internal.ts +3 -2
  184. package/src/decorators/common/tag-description-override.ts +3 -2
  185. package/src/decorators/oas2/__tests__/remove-unused-components.test.ts +3 -3
  186. package/src/decorators/oas2/index.ts +2 -1
  187. package/src/decorators/oas2/remove-unused-components.ts +1 -1
  188. package/src/decorators/oas3/__tests__/remove-unused-components.test.ts +4 -4
  189. package/src/decorators/oas3/index.ts +2 -1
  190. package/src/decorators/oas3/remove-unused-components.ts +1 -1
  191. package/src/format/codeframes.ts +2 -1
  192. package/src/format/format.ts +9 -4
  193. package/src/js-yaml/index.ts +3 -1
  194. package/src/lint.ts +2 -1
  195. package/src/logger.ts +2 -2
  196. package/src/oas-types.ts +14 -13
  197. package/src/redocly/domains.ts +1 -1
  198. package/src/redocly/index.ts +3 -3
  199. package/src/redocly/registry-api.ts +5 -3
  200. package/src/ref-utils.ts +4 -2
  201. package/src/resolve.ts +6 -4
  202. package/src/rules/__tests__/no-unresolved-refs.test.ts +21 -7
  203. package/src/rules/ajv.ts +2 -1
  204. package/src/rules/arazzo/__tests__/parameters-no-body-inside-in.test.ts +76 -0
  205. package/src/rules/arazzo/index.ts +5 -2
  206. package/src/rules/async2/__tests__/channels-kebab-case.test.ts +9 -5
  207. package/src/rules/async2/__tests__/no-channel-trailing-slash.test.ts +3 -3
  208. package/src/rules/async2/channels-kebab-case.ts +2 -2
  209. package/src/rules/async2/index.ts +4 -1
  210. package/src/rules/async2/no-channel-trailing-slash.ts +2 -2
  211. package/src/rules/async3/__tests__/channels-kebab-case.test.ts +9 -5
  212. package/src/rules/async3/__tests__/no-channel-trailing-slash.test.ts +3 -3
  213. package/src/rules/async3/channels-kebab-case.ts +3 -3
  214. package/src/rules/async3/index.ts +4 -1
  215. package/src/rules/async3/no-channel-trailing-slash.ts +3 -3
  216. package/src/rules/common/__tests__/info-license-strict.test.ts +141 -0
  217. package/src/rules/common/__tests__/info-license.test.ts +2 -2
  218. package/src/rules/common/__tests__/license-url.test.ts +2 -2
  219. package/src/rules/common/__tests__/no-ambiguous-paths.test.ts +1 -1
  220. package/src/rules/common/__tests__/no-enum-type-mismatch.test.ts +5 -5
  221. package/src/rules/common/__tests__/no-identical-paths.test.ts +1 -1
  222. package/src/rules/common/__tests__/no-invalid-parameter-examples.test.ts +1 -1
  223. package/src/rules/common/__tests__/no-invalid-schema-examples.test.ts +1 -1
  224. package/src/rules/common/__tests__/no-path-trailing-slash.test.ts +4 -4
  225. package/src/rules/common/__tests__/no-required-schema-properties-undefined.test.ts +11 -11
  226. package/src/rules/common/__tests__/operation-2xx-response.test.ts +8 -6
  227. package/src/rules/common/__tests__/operation-4xx-response.test.ts +9 -7
  228. package/src/rules/common/__tests__/operation-operationId-unique.test.ts +2 -2
  229. package/src/rules/common/__tests__/operation-operationId-url-safe.test.ts +1 -1
  230. package/src/rules/common/__tests__/operation-parameters-unique.test.ts +4 -4
  231. package/src/rules/common/__tests__/operation-singular-tag.test.ts +2 -2
  232. package/src/rules/common/__tests__/path-http-verbs-order.test.ts +2 -2
  233. package/src/rules/common/__tests__/path-not-include-query.test.ts +2 -2
  234. package/src/rules/common/__tests__/path-params-defined.test.ts +5 -5
  235. package/src/rules/common/__tests__/paths-kebab-case.test.ts +6 -4
  236. package/src/rules/common/__tests__/scalar-property-missing-example.test.ts +8 -8
  237. package/src/rules/common/__tests__/security-defined.test.ts +14 -8
  238. package/src/rules/common/__tests__/spec-strict-refs.test.ts +1 -1
  239. package/src/rules/common/__tests__/spec.test.ts +10 -10
  240. package/src/rules/common/__tests__/tag-description.test.ts +2 -2
  241. package/src/rules/common/__tests__/tags-alphabetical.test.ts +6 -4
  242. package/src/rules/common/assertions/asserts.ts +5 -9
  243. package/src/rules/common/assertions/index.ts +1 -2
  244. package/src/rules/common/assertions/utils.ts +4 -2
  245. package/src/rules/common/info-contact.ts +2 -1
  246. package/src/rules/common/info-license-strict.ts +24 -0
  247. package/src/rules/common/info-license-url.ts +2 -1
  248. package/src/rules/common/info-license.ts +2 -1
  249. package/src/rules/common/no-ambiguous-paths.ts +4 -4
  250. package/src/rules/common/no-enum-type-mismatch.ts +5 -4
  251. package/src/rules/common/no-http-verbs-in-paths.ts +5 -4
  252. package/src/rules/common/no-identical-paths.ts +4 -4
  253. package/src/rules/common/no-invalid-parameter-examples.ts +3 -2
  254. package/src/rules/common/no-path-trailing-slash.ts +2 -2
  255. package/src/rules/common/no-required-schema-properties-undefined.ts +5 -4
  256. package/src/rules/common/operation-2xx-response.ts +3 -2
  257. package/src/rules/common/operation-4xx-response.ts +3 -2
  258. package/src/rules/common/operation-description.ts +5 -4
  259. package/src/rules/common/operation-operationId-unique.ts +4 -4
  260. package/src/rules/common/operation-operationId-url-safe.ts +5 -4
  261. package/src/rules/common/operation-operationId.ts +5 -4
  262. package/src/rules/common/operation-parameters-unique.ts +4 -4
  263. package/src/rules/common/operation-singular-tag.ts +4 -4
  264. package/src/rules/common/operation-summary.ts +5 -4
  265. package/src/rules/common/operation-tag-defined.ts +4 -4
  266. package/src/rules/common/parameter-description.ts +4 -4
  267. package/src/rules/common/path-declaration-must-exist.ts +2 -2
  268. package/src/rules/common/path-excludes-patterns.ts +4 -4
  269. package/src/rules/common/path-http-verbs-order.ts +4 -4
  270. package/src/rules/common/path-not-include-query.ts +2 -2
  271. package/src/rules/common/path-params-defined.ts +4 -4
  272. package/src/rules/common/path-segment-plural.ts +3 -2
  273. package/src/rules/common/paths-kebab-case.ts +2 -2
  274. package/src/rules/common/required-string-property-missing-min-length.ts +4 -4
  275. package/src/rules/common/response-contains-header.ts +5 -4
  276. package/src/rules/common/scalar-property-missing-example.ts +2 -1
  277. package/src/rules/common/security-defined.ts +5 -5
  278. package/src/rules/common/spec-strict-refs.ts +2 -1
  279. package/src/rules/common/spec.ts +3 -2
  280. package/src/rules/common/tag-description.ts +2 -1
  281. package/src/rules/common/tags-alphabetical.ts +4 -4
  282. package/src/rules/no-unresolved-refs.ts +4 -3
  283. package/src/rules/oas2/__tests__/boolean-parameter-prefixes.test.ts +7 -5
  284. package/src/rules/oas2/__tests__/response-contains-header.test.ts +14 -8
  285. package/src/rules/oas2/__tests__/response-contains-property.test.ts +14 -8
  286. package/src/rules/oas2/__tests__/spec/referenceableScalars.test.ts +3 -1
  287. package/src/rules/oas2/boolean-parameter-prefixes.ts +1 -1
  288. package/src/rules/oas2/index.ts +4 -2
  289. package/src/rules/oas2/request-mime-type.ts +2 -1
  290. package/src/rules/oas2/response-contains-property.ts +3 -2
  291. package/src/rules/oas2/response-mime-type.ts +2 -1
  292. package/src/rules/oas3/__tests__/array-parameter-serialization.test.ts +18 -6
  293. package/src/rules/oas3/__tests__/boolean-parameter-prefixes.test.ts +7 -5
  294. package/src/rules/oas3/__tests__/no-empty-enum-servers.com.test.ts +6 -6
  295. package/src/rules/oas3/__tests__/no-example-value-and-externalValue.test.ts +2 -2
  296. package/src/rules/oas3/__tests__/no-invalid-media-type-examples.test.ts +34 -24
  297. package/src/rules/oas3/__tests__/no-server-example.com.test.ts +3 -3
  298. package/src/rules/oas3/__tests__/no-server-trailing-slash.test.ts +3 -3
  299. package/src/rules/oas3/__tests__/no-unused-components.test.ts +1 -1
  300. package/src/rules/oas3/__tests__/operation-4xx-problem-details-rfc7807.test.ts +3 -3
  301. package/src/rules/oas3/__tests__/response-contains-header.test.ts +34 -22
  302. package/src/rules/oas3/__tests__/response-contains-property.test.ts +34 -20
  303. package/src/rules/oas3/__tests__/spec/spec.test.ts +12 -3
  304. package/src/rules/oas3/__tests__/spec-components-invalid-map-name.test.ts +9 -3
  305. package/src/rules/oas3/__tests__/utils/lint-document-for-test.ts +1 -1
  306. package/src/rules/oas3/array-parameter-serialization.ts +3 -2
  307. package/src/rules/oas3/boolean-parameter-prefixes.ts +1 -1
  308. package/src/rules/oas3/component-name-unique.ts +3 -3
  309. package/src/rules/oas3/index.ts +3 -1
  310. package/src/rules/oas3/no-empty-servers.ts +1 -1
  311. package/src/rules/oas3/no-example-value-and-externalValue.ts +1 -1
  312. package/src/rules/oas3/no-invalid-media-type-examples.ts +6 -4
  313. package/src/rules/oas3/no-server-example.com.ts +2 -1
  314. package/src/rules/oas3/no-server-trailing-slash.ts +1 -1
  315. package/src/rules/oas3/no-server-variables-empty-enum.ts +2 -2
  316. package/src/rules/oas3/no-undefined-server-variable.ts +1 -1
  317. package/src/rules/oas3/no-unused-components.ts +2 -2
  318. package/src/rules/oas3/operation-4xx-problem-details-rfc7807.ts +2 -1
  319. package/src/rules/oas3/request-mime-type.ts +2 -1
  320. package/src/rules/oas3/response-contains-property.ts +3 -2
  321. package/src/rules/oas3/response-mime-type.ts +2 -1
  322. package/src/rules/oas3/spec-components-invalid-map-name.ts +3 -3
  323. package/src/rules/other/stats.ts +8 -6
  324. package/src/rules/spot/parameters-no-body-inside-in.ts +17 -0
  325. package/src/rules/utils.ts +41 -4
  326. package/src/types/arazzo.ts +257 -334
  327. package/src/types/asyncapi2.ts +4 -1
  328. package/src/types/asyncapi3.ts +3 -1
  329. package/src/types/json-schema-adapter.ts +2 -2
  330. package/src/types/oas3.ts +4 -4
  331. package/src/types/oas3_1.ts +3 -3
  332. package/src/types/redocly-yaml.ts +7 -4
  333. package/src/typings/arazzo.ts +169 -41
  334. package/src/typings/common.ts +1 -0
  335. package/src/typings/swagger.ts +2 -2
  336. package/src/visitors.ts +40 -1
  337. package/src/walk.ts +3 -3
  338. package/tsconfig.tsbuildinfo +1 -1
@@ -1,2276 +1,2 @@
1
- import type { NodeType } from '.';
2
- export declare const ARAZZO_ROOT_TYPE = "Root";
3
- export declare const operationMethod: {
4
- readonly type: "string";
5
- readonly enum: readonly ["get", "post", "put", "delete", "patch"];
6
- };
7
- export declare const expectSchema: {
8
- readonly type: "object";
9
- readonly properties: {
10
- readonly statusCode: {
11
- readonly type: "number";
12
- };
13
- readonly mimeType: {
14
- readonly type: "string";
15
- };
16
- readonly body: {};
17
- readonly schema: {
18
- readonly type: "object";
19
- readonly additionalProperties: true;
20
- };
21
- };
22
- readonly additionalProperties: false;
23
- readonly oneOf: readonly [{
24
- readonly required: readonly ["statusCode"];
25
- }, {
26
- readonly required: readonly ["mimeType"];
27
- }, {
28
- readonly required: readonly ["body"];
29
- }, {
30
- readonly required: readonly ["schema"];
31
- }];
32
- };
33
- export declare const sourceDescriptionSchema: {
34
- readonly type: "object";
35
- readonly oneOf: readonly [{
36
- readonly type: "object";
37
- readonly properties: {
38
- readonly name: {
39
- readonly type: "string";
40
- };
41
- readonly type: {
42
- readonly type: "string";
43
- readonly enum: readonly ["openapi"];
44
- };
45
- readonly url: {
46
- readonly type: "string";
47
- };
48
- readonly 'x-serverUrl': {
49
- readonly type: "string";
50
- };
51
- };
52
- readonly additionalProperties: false;
53
- readonly required: readonly ["name", "type", "url"];
54
- }, {
55
- readonly type: "object";
56
- readonly properties: {
57
- readonly name: {
58
- readonly type: "string";
59
- };
60
- readonly type: {
61
- readonly type: "string";
62
- readonly enum: readonly ["none"];
63
- };
64
- readonly 'x-serverUrl': {
65
- readonly type: "string";
66
- };
67
- };
68
- readonly additionalProperties: false;
69
- readonly required: readonly ["name", "type", "x-serverUrl"];
70
- }, {
71
- readonly type: "object";
72
- readonly properties: {
73
- readonly name: {
74
- readonly type: "string";
75
- };
76
- readonly type: {
77
- readonly type: "string";
78
- readonly enum: readonly ["arazzo"];
79
- };
80
- readonly url: {
81
- readonly type: "string";
82
- };
83
- };
84
- readonly additionalProperties: false;
85
- readonly required: readonly ["name", "type", "url"];
86
- }];
87
- };
88
- export declare const parameter: {
89
- readonly type: "object";
90
- readonly oneOf: readonly [{
91
- readonly type: "object";
92
- readonly properties: {
93
- readonly in: {
94
- readonly type: "string";
95
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
96
- };
97
- readonly name: {
98
- readonly type: "string";
99
- };
100
- readonly value: {
101
- readonly oneOf: readonly [{
102
- readonly type: "string";
103
- }, {
104
- readonly type: "number";
105
- }, {
106
- readonly type: "boolean";
107
- }];
108
- };
109
- };
110
- readonly required: readonly ["name", "value"];
111
- readonly additionalProperties: false;
112
- }, {
113
- readonly type: "object";
114
- readonly properties: {
115
- readonly reference: {
116
- readonly type: "string";
117
- };
118
- readonly value: {
119
- readonly oneOf: readonly [{
120
- readonly type: "string";
121
- }, {
122
- readonly type: "number";
123
- }, {
124
- readonly type: "boolean";
125
- }];
126
- };
127
- };
128
- readonly required: readonly ["reference"];
129
- readonly additionalProperties: false;
130
- }];
131
- };
132
- export declare const infoObject: {
133
- readonly type: "object";
134
- readonly properties: {
135
- readonly title: {
136
- readonly type: "string";
137
- };
138
- readonly description: {
139
- readonly type: "string";
140
- };
141
- readonly summary: {
142
- readonly type: "string";
143
- };
144
- readonly version: {
145
- readonly type: "string";
146
- };
147
- };
148
- readonly additionalProperties: false;
149
- readonly required: readonly ["title", "version"];
150
- };
151
- export declare const replacement: {
152
- readonly type: "object";
153
- readonly properties: {
154
- readonly target: {
155
- readonly type: "string";
156
- };
157
- readonly value: {
158
- readonly oneOf: readonly [{
159
- readonly type: "string";
160
- }, {
161
- readonly type: "object";
162
- }, {
163
- readonly type: "array";
164
- }, {
165
- readonly type: "number";
166
- }, {
167
- readonly type: "boolean";
168
- }];
169
- };
170
- };
171
- };
172
- export declare const requestBody: {
173
- readonly type: "object";
174
- readonly properties: {
175
- readonly contentType: {
176
- readonly type: "string";
177
- };
178
- readonly payload: {
179
- readonly oneOf: readonly [{
180
- readonly type: "string";
181
- }, {
182
- readonly type: "object";
183
- readonly additionalProperties: true;
184
- }, {
185
- readonly type: "array";
186
- }, {
187
- readonly type: "number";
188
- }, {
189
- readonly type: "boolean";
190
- }];
191
- };
192
- readonly encoding: {
193
- readonly type: "string";
194
- };
195
- readonly replacements: {
196
- readonly type: "array";
197
- readonly items: {
198
- readonly type: "object";
199
- readonly properties: {
200
- readonly target: {
201
- readonly type: "string";
202
- };
203
- readonly value: {
204
- readonly oneOf: readonly [{
205
- readonly type: "string";
206
- }, {
207
- readonly type: "object";
208
- }, {
209
- readonly type: "array";
210
- }, {
211
- readonly type: "number";
212
- }, {
213
- readonly type: "boolean";
214
- }];
215
- };
216
- };
217
- };
218
- };
219
- };
220
- readonly additionalProperties: false;
221
- readonly required: readonly ["payload"];
222
- };
223
- export declare const criteriaObject: {
224
- readonly type: "object";
225
- readonly properties: {
226
- readonly condition: {
227
- readonly type: "string";
228
- };
229
- readonly context: {
230
- readonly type: "string";
231
- };
232
- readonly type: {
233
- readonly oneOf: readonly [{
234
- readonly type: "string";
235
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
236
- }, {
237
- readonly type: "object";
238
- readonly properties: {
239
- readonly type: {
240
- readonly type: "string";
241
- readonly enum: readonly ["jsonpath"];
242
- };
243
- readonly version: {
244
- readonly type: "string";
245
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
246
- };
247
- };
248
- }, {
249
- readonly type: "object";
250
- readonly properties: {
251
- readonly type: {
252
- readonly type: "string";
253
- readonly enum: readonly ["xpath"];
254
- };
255
- readonly version: {
256
- readonly type: "string";
257
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
258
- };
259
- };
260
- }];
261
- };
262
- };
263
- readonly required: readonly ["condition"];
264
- readonly additionalProperties: false;
265
- };
266
- export declare const inherit: {
267
- readonly type: "string";
268
- readonly enum: readonly ["auto", "none"];
269
- };
270
- export declare const step: {
271
- readonly type: "object";
272
- readonly properties: {
273
- readonly stepId: {
274
- readonly type: "string";
275
- };
276
- readonly description: {
277
- readonly type: "string";
278
- };
279
- readonly operationId: {
280
- readonly type: "string";
281
- };
282
- readonly operationPath: {
283
- readonly type: "string";
284
- };
285
- readonly workflowId: {
286
- readonly type: "string";
287
- };
288
- readonly parameters: {
289
- readonly type: "array";
290
- readonly items: {
291
- readonly type: "object";
292
- readonly oneOf: readonly [{
293
- readonly type: "object";
294
- readonly properties: {
295
- readonly in: {
296
- readonly type: "string";
297
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
298
- };
299
- readonly name: {
300
- readonly type: "string";
301
- };
302
- readonly value: {
303
- readonly oneOf: readonly [{
304
- readonly type: "string";
305
- }, {
306
- readonly type: "number";
307
- }, {
308
- readonly type: "boolean";
309
- }];
310
- };
311
- };
312
- readonly required: readonly ["name", "value"];
313
- readonly additionalProperties: false;
314
- }, {
315
- readonly type: "object";
316
- readonly properties: {
317
- readonly reference: {
318
- readonly type: "string";
319
- };
320
- readonly value: {
321
- readonly oneOf: readonly [{
322
- readonly type: "string";
323
- }, {
324
- readonly type: "number";
325
- }, {
326
- readonly type: "boolean";
327
- }];
328
- };
329
- };
330
- readonly required: readonly ["reference"];
331
- readonly additionalProperties: false;
332
- }];
333
- };
334
- };
335
- readonly successCriteria: {
336
- readonly type: "array";
337
- readonly items: {
338
- readonly type: "object";
339
- readonly properties: {
340
- readonly condition: {
341
- readonly type: "string";
342
- };
343
- readonly context: {
344
- readonly type: "string";
345
- };
346
- readonly type: {
347
- readonly oneOf: readonly [{
348
- readonly type: "string";
349
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
350
- }, {
351
- readonly type: "object";
352
- readonly properties: {
353
- readonly type: {
354
- readonly type: "string";
355
- readonly enum: readonly ["jsonpath"];
356
- };
357
- readonly version: {
358
- readonly type: "string";
359
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
360
- };
361
- };
362
- }, {
363
- readonly type: "object";
364
- readonly properties: {
365
- readonly type: {
366
- readonly type: "string";
367
- readonly enum: readonly ["xpath"];
368
- };
369
- readonly version: {
370
- readonly type: "string";
371
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
372
- };
373
- };
374
- }];
375
- };
376
- };
377
- readonly required: readonly ["condition"];
378
- readonly additionalProperties: false;
379
- };
380
- };
381
- readonly onSuccess: {
382
- readonly type: "array";
383
- readonly items: {
384
- readonly type: "object";
385
- readonly properties: {
386
- readonly name: {
387
- readonly type: "string";
388
- };
389
- readonly type: {
390
- readonly type: "string";
391
- readonly enum: readonly ["goto", "end"];
392
- };
393
- readonly stepId: {
394
- readonly type: "string";
395
- };
396
- readonly workflowId: {
397
- readonly type: "string";
398
- };
399
- readonly criteria: {
400
- readonly type: "array";
401
- readonly items: {
402
- readonly type: "object";
403
- readonly properties: {
404
- readonly condition: {
405
- readonly type: "string";
406
- };
407
- readonly context: {
408
- readonly type: "string";
409
- };
410
- readonly type: {
411
- readonly oneOf: readonly [{
412
- readonly type: "string";
413
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
414
- }, {
415
- readonly type: "object";
416
- readonly properties: {
417
- readonly type: {
418
- readonly type: "string";
419
- readonly enum: readonly ["jsonpath"];
420
- };
421
- readonly version: {
422
- readonly type: "string";
423
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
424
- };
425
- };
426
- }, {
427
- readonly type: "object";
428
- readonly properties: {
429
- readonly type: {
430
- readonly type: "string";
431
- readonly enum: readonly ["xpath"];
432
- };
433
- readonly version: {
434
- readonly type: "string";
435
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
436
- };
437
- };
438
- }];
439
- };
440
- };
441
- readonly required: readonly ["condition"];
442
- readonly additionalProperties: false;
443
- };
444
- };
445
- };
446
- readonly additionalProperties: false;
447
- readonly required: readonly ["type", "name"];
448
- };
449
- };
450
- readonly onFailure: {
451
- readonly type: "array";
452
- readonly items: {
453
- readonly type: "object";
454
- readonly properties: {
455
- readonly name: {
456
- readonly type: "string";
457
- };
458
- readonly type: {
459
- readonly type: "string";
460
- readonly enum: readonly ["goto", "retry", "end"];
461
- };
462
- readonly workflowId: {
463
- readonly type: "string";
464
- };
465
- readonly stepId: {
466
- readonly type: "string";
467
- };
468
- readonly retryAfter: {
469
- readonly type: "number";
470
- };
471
- readonly retryLimit: {
472
- readonly type: "number";
473
- };
474
- readonly criteria: {
475
- readonly type: "array";
476
- readonly items: {
477
- readonly type: "object";
478
- readonly properties: {
479
- readonly condition: {
480
- readonly type: "string";
481
- };
482
- readonly context: {
483
- readonly type: "string";
484
- };
485
- readonly type: {
486
- readonly oneOf: readonly [{
487
- readonly type: "string";
488
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
489
- }, {
490
- readonly type: "object";
491
- readonly properties: {
492
- readonly type: {
493
- readonly type: "string";
494
- readonly enum: readonly ["jsonpath"];
495
- };
496
- readonly version: {
497
- readonly type: "string";
498
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
499
- };
500
- };
501
- }, {
502
- readonly type: "object";
503
- readonly properties: {
504
- readonly type: {
505
- readonly type: "string";
506
- readonly enum: readonly ["xpath"];
507
- };
508
- readonly version: {
509
- readonly type: "string";
510
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
511
- };
512
- };
513
- }];
514
- };
515
- };
516
- readonly required: readonly ["condition"];
517
- readonly additionalProperties: false;
518
- };
519
- };
520
- };
521
- readonly additionalProperties: false;
522
- readonly required: readonly ["type", "name"];
523
- };
524
- };
525
- readonly outputs: {
526
- readonly type: "object";
527
- readonly additionalProperties: {
528
- readonly oneOf: readonly [{
529
- readonly type: "string";
530
- }, {
531
- readonly type: "object";
532
- }, {
533
- readonly type: "array";
534
- }, {
535
- readonly type: "boolean";
536
- }, {
537
- readonly type: "number";
538
- }];
539
- };
540
- };
541
- readonly 'x-inherit': {
542
- readonly type: "string";
543
- readonly enum: readonly ["auto", "none"];
544
- };
545
- readonly 'x-expect': {
546
- readonly type: "object";
547
- readonly properties: {
548
- readonly statusCode: {
549
- readonly type: "number";
550
- };
551
- readonly mimeType: {
552
- readonly type: "string";
553
- };
554
- readonly body: {};
555
- readonly schema: {
556
- readonly type: "object";
557
- readonly additionalProperties: true;
558
- };
559
- };
560
- readonly additionalProperties: false;
561
- readonly oneOf: readonly [{
562
- readonly required: readonly ["statusCode"];
563
- }, {
564
- readonly required: readonly ["mimeType"];
565
- }, {
566
- readonly required: readonly ["body"];
567
- }, {
568
- readonly required: readonly ["schema"];
569
- }];
570
- };
571
- readonly 'x-assert': {
572
- readonly type: "string";
573
- };
574
- readonly 'x-operation': {
575
- readonly type: "object";
576
- readonly properties: {
577
- readonly path: {
578
- readonly type: "string";
579
- };
580
- readonly method: {
581
- readonly type: "string";
582
- readonly enum: readonly ["get", "post", "put", "delete", "patch"];
583
- };
584
- readonly sourceDescriptionName: {
585
- readonly type: "string";
586
- };
587
- readonly serverUrl: {
588
- readonly type: "string";
589
- };
590
- };
591
- readonly additionalProperties: false;
592
- readonly required: readonly ["path", "method"];
593
- };
594
- readonly requestBody: {
595
- readonly type: "object";
596
- readonly properties: {
597
- readonly contentType: {
598
- readonly type: "string";
599
- };
600
- readonly payload: {
601
- readonly oneOf: readonly [{
602
- readonly type: "string";
603
- }, {
604
- readonly type: "object";
605
- readonly additionalProperties: true;
606
- }, {
607
- readonly type: "array";
608
- }, {
609
- readonly type: "number";
610
- }, {
611
- readonly type: "boolean";
612
- }];
613
- };
614
- readonly encoding: {
615
- readonly type: "string";
616
- };
617
- readonly replacements: {
618
- readonly type: "array";
619
- readonly items: {
620
- readonly type: "object";
621
- readonly properties: {
622
- readonly target: {
623
- readonly type: "string";
624
- };
625
- readonly value: {
626
- readonly oneOf: readonly [{
627
- readonly type: "string";
628
- }, {
629
- readonly type: "object";
630
- }, {
631
- readonly type: "array";
632
- }, {
633
- readonly type: "number";
634
- }, {
635
- readonly type: "boolean";
636
- }];
637
- };
638
- };
639
- };
640
- };
641
- };
642
- readonly additionalProperties: false;
643
- readonly required: readonly ["payload"];
644
- };
645
- };
646
- readonly required: readonly ["stepId"];
647
- readonly oneOf: readonly [{
648
- readonly required: readonly ["x-operation"];
649
- }, {
650
- readonly required: readonly ["operationId"];
651
- }, {
652
- readonly required: readonly ["operationPath"];
653
- }, {
654
- readonly required: readonly ["workflowId"];
655
- }];
656
- };
657
- export declare const workflow: {
658
- readonly type: "object";
659
- readonly properties: {
660
- readonly workflowId: {
661
- readonly type: "string";
662
- };
663
- readonly summary: {
664
- readonly type: "string";
665
- };
666
- readonly description: {
667
- readonly type: "string";
668
- };
669
- readonly parameters: {
670
- readonly type: "array";
671
- readonly items: {
672
- readonly type: "object";
673
- readonly oneOf: readonly [{
674
- readonly type: "object";
675
- readonly properties: {
676
- readonly in: {
677
- readonly type: "string";
678
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
679
- };
680
- readonly name: {
681
- readonly type: "string";
682
- };
683
- readonly value: {
684
- readonly oneOf: readonly [{
685
- readonly type: "string";
686
- }, {
687
- readonly type: "number";
688
- }, {
689
- readonly type: "boolean";
690
- }];
691
- };
692
- };
693
- readonly required: readonly ["name", "value"];
694
- readonly additionalProperties: false;
695
- }, {
696
- readonly type: "object";
697
- readonly properties: {
698
- readonly reference: {
699
- readonly type: "string";
700
- };
701
- readonly value: {
702
- readonly oneOf: readonly [{
703
- readonly type: "string";
704
- }, {
705
- readonly type: "number";
706
- }, {
707
- readonly type: "boolean";
708
- }];
709
- };
710
- };
711
- readonly required: readonly ["reference"];
712
- readonly additionalProperties: false;
713
- }];
714
- };
715
- };
716
- readonly dependsOn: {
717
- readonly type: "array";
718
- readonly items: {
719
- readonly type: "string";
720
- };
721
- };
722
- readonly inputs: {
723
- readonly type: "object";
724
- readonly properties: {
725
- readonly type: {
726
- readonly type: "string";
727
- readonly enum: readonly ["object", "array", "string", "number", "integer", "boolean", "null"];
728
- };
729
- readonly properties: {
730
- readonly type: "object";
731
- readonly additionalProperties: true;
732
- };
733
- readonly required: {
734
- readonly type: "array";
735
- readonly items: {
736
- readonly type: "string";
737
- };
738
- };
739
- readonly items: {
740
- readonly type: "object";
741
- readonly additionalProperties: true;
742
- };
743
- };
744
- readonly required: readonly ["type"];
745
- readonly additionalProperties: true;
746
- };
747
- readonly outputs: {
748
- readonly type: "object";
749
- readonly additionalProperties: {
750
- readonly type: "string";
751
- };
752
- };
753
- readonly steps: {
754
- readonly type: "array";
755
- readonly items: {
756
- readonly type: "object";
757
- readonly properties: {
758
- readonly stepId: {
759
- readonly type: "string";
760
- };
761
- readonly description: {
762
- readonly type: "string";
763
- };
764
- readonly operationId: {
765
- readonly type: "string";
766
- };
767
- readonly operationPath: {
768
- readonly type: "string";
769
- };
770
- readonly workflowId: {
771
- readonly type: "string";
772
- };
773
- readonly parameters: {
774
- readonly type: "array";
775
- readonly items: {
776
- readonly type: "object";
777
- readonly oneOf: readonly [{
778
- readonly type: "object";
779
- readonly properties: {
780
- readonly in: {
781
- readonly type: "string";
782
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
783
- };
784
- readonly name: {
785
- readonly type: "string";
786
- };
787
- readonly value: {
788
- readonly oneOf: readonly [{
789
- readonly type: "string";
790
- }, {
791
- readonly type: "number";
792
- }, {
793
- readonly type: "boolean";
794
- }];
795
- };
796
- };
797
- readonly required: readonly ["name", "value"];
798
- readonly additionalProperties: false;
799
- }, {
800
- readonly type: "object";
801
- readonly properties: {
802
- readonly reference: {
803
- readonly type: "string";
804
- };
805
- readonly value: {
806
- readonly oneOf: readonly [{
807
- readonly type: "string";
808
- }, {
809
- readonly type: "number";
810
- }, {
811
- readonly type: "boolean";
812
- }];
813
- };
814
- };
815
- readonly required: readonly ["reference"];
816
- readonly additionalProperties: false;
817
- }];
818
- };
819
- };
820
- readonly successCriteria: {
821
- readonly type: "array";
822
- readonly items: {
823
- readonly type: "object";
824
- readonly properties: {
825
- readonly condition: {
826
- readonly type: "string";
827
- };
828
- readonly context: {
829
- readonly type: "string";
830
- };
831
- readonly type: {
832
- readonly oneOf: readonly [{
833
- readonly type: "string";
834
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
835
- }, {
836
- readonly type: "object";
837
- readonly properties: {
838
- readonly type: {
839
- readonly type: "string";
840
- readonly enum: readonly ["jsonpath"];
841
- };
842
- readonly version: {
843
- readonly type: "string";
844
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
845
- };
846
- };
847
- }, {
848
- readonly type: "object";
849
- readonly properties: {
850
- readonly type: {
851
- readonly type: "string";
852
- readonly enum: readonly ["xpath"];
853
- };
854
- readonly version: {
855
- readonly type: "string";
856
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
857
- };
858
- };
859
- }];
860
- };
861
- };
862
- readonly required: readonly ["condition"];
863
- readonly additionalProperties: false;
864
- };
865
- };
866
- readonly onSuccess: {
867
- readonly type: "array";
868
- readonly items: {
869
- readonly type: "object";
870
- readonly properties: {
871
- readonly name: {
872
- readonly type: "string";
873
- };
874
- readonly type: {
875
- readonly type: "string";
876
- readonly enum: readonly ["goto", "end"];
877
- };
878
- readonly stepId: {
879
- readonly type: "string";
880
- };
881
- readonly workflowId: {
882
- readonly type: "string";
883
- };
884
- readonly criteria: {
885
- readonly type: "array";
886
- readonly items: {
887
- readonly type: "object";
888
- readonly properties: {
889
- readonly condition: {
890
- readonly type: "string";
891
- };
892
- readonly context: {
893
- readonly type: "string";
894
- };
895
- readonly type: {
896
- readonly oneOf: readonly [{
897
- readonly type: "string";
898
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
899
- }, {
900
- readonly type: "object";
901
- readonly properties: {
902
- readonly type: {
903
- readonly type: "string";
904
- readonly enum: readonly ["jsonpath"];
905
- };
906
- readonly version: {
907
- readonly type: "string";
908
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
909
- };
910
- };
911
- }, {
912
- readonly type: "object";
913
- readonly properties: {
914
- readonly type: {
915
- readonly type: "string";
916
- readonly enum: readonly ["xpath"];
917
- };
918
- readonly version: {
919
- readonly type: "string";
920
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
921
- };
922
- };
923
- }];
924
- };
925
- };
926
- readonly required: readonly ["condition"];
927
- readonly additionalProperties: false;
928
- };
929
- };
930
- };
931
- readonly additionalProperties: false;
932
- readonly required: readonly ["type", "name"];
933
- };
934
- };
935
- readonly onFailure: {
936
- readonly type: "array";
937
- readonly items: {
938
- readonly type: "object";
939
- readonly properties: {
940
- readonly name: {
941
- readonly type: "string";
942
- };
943
- readonly type: {
944
- readonly type: "string";
945
- readonly enum: readonly ["goto", "retry", "end"];
946
- };
947
- readonly workflowId: {
948
- readonly type: "string";
949
- };
950
- readonly stepId: {
951
- readonly type: "string";
952
- };
953
- readonly retryAfter: {
954
- readonly type: "number";
955
- };
956
- readonly retryLimit: {
957
- readonly type: "number";
958
- };
959
- readonly criteria: {
960
- readonly type: "array";
961
- readonly items: {
962
- readonly type: "object";
963
- readonly properties: {
964
- readonly condition: {
965
- readonly type: "string";
966
- };
967
- readonly context: {
968
- readonly type: "string";
969
- };
970
- readonly type: {
971
- readonly oneOf: readonly [{
972
- readonly type: "string";
973
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
974
- }, {
975
- readonly type: "object";
976
- readonly properties: {
977
- readonly type: {
978
- readonly type: "string";
979
- readonly enum: readonly ["jsonpath"];
980
- };
981
- readonly version: {
982
- readonly type: "string";
983
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
984
- };
985
- };
986
- }, {
987
- readonly type: "object";
988
- readonly properties: {
989
- readonly type: {
990
- readonly type: "string";
991
- readonly enum: readonly ["xpath"];
992
- };
993
- readonly version: {
994
- readonly type: "string";
995
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
996
- };
997
- };
998
- }];
999
- };
1000
- };
1001
- readonly required: readonly ["condition"];
1002
- readonly additionalProperties: false;
1003
- };
1004
- };
1005
- };
1006
- readonly additionalProperties: false;
1007
- readonly required: readonly ["type", "name"];
1008
- };
1009
- };
1010
- readonly outputs: {
1011
- readonly type: "object";
1012
- readonly additionalProperties: {
1013
- readonly oneOf: readonly [{
1014
- readonly type: "string";
1015
- }, {
1016
- readonly type: "object";
1017
- }, {
1018
- readonly type: "array";
1019
- }, {
1020
- readonly type: "boolean";
1021
- }, {
1022
- readonly type: "number";
1023
- }];
1024
- };
1025
- };
1026
- readonly 'x-inherit': {
1027
- readonly type: "string";
1028
- readonly enum: readonly ["auto", "none"];
1029
- };
1030
- readonly 'x-expect': {
1031
- readonly type: "object";
1032
- readonly properties: {
1033
- readonly statusCode: {
1034
- readonly type: "number";
1035
- };
1036
- readonly mimeType: {
1037
- readonly type: "string";
1038
- };
1039
- readonly body: {};
1040
- readonly schema: {
1041
- readonly type: "object";
1042
- readonly additionalProperties: true;
1043
- };
1044
- };
1045
- readonly additionalProperties: false;
1046
- readonly oneOf: readonly [{
1047
- readonly required: readonly ["statusCode"];
1048
- }, {
1049
- readonly required: readonly ["mimeType"];
1050
- }, {
1051
- readonly required: readonly ["body"];
1052
- }, {
1053
- readonly required: readonly ["schema"];
1054
- }];
1055
- };
1056
- readonly 'x-assert': {
1057
- readonly type: "string";
1058
- };
1059
- readonly 'x-operation': {
1060
- readonly type: "object";
1061
- readonly properties: {
1062
- readonly path: {
1063
- readonly type: "string";
1064
- };
1065
- readonly method: {
1066
- readonly type: "string";
1067
- readonly enum: readonly ["get", "post", "put", "delete", "patch"];
1068
- };
1069
- readonly sourceDescriptionName: {
1070
- readonly type: "string";
1071
- };
1072
- readonly serverUrl: {
1073
- readonly type: "string";
1074
- };
1075
- };
1076
- readonly additionalProperties: false;
1077
- readonly required: readonly ["path", "method"];
1078
- };
1079
- readonly requestBody: {
1080
- readonly type: "object";
1081
- readonly properties: {
1082
- readonly contentType: {
1083
- readonly type: "string";
1084
- };
1085
- readonly payload: {
1086
- readonly oneOf: readonly [{
1087
- readonly type: "string";
1088
- }, {
1089
- readonly type: "object";
1090
- readonly additionalProperties: true;
1091
- }, {
1092
- readonly type: "array";
1093
- }, {
1094
- readonly type: "number";
1095
- }, {
1096
- readonly type: "boolean";
1097
- }];
1098
- };
1099
- readonly encoding: {
1100
- readonly type: "string";
1101
- };
1102
- readonly replacements: {
1103
- readonly type: "array";
1104
- readonly items: {
1105
- readonly type: "object";
1106
- readonly properties: {
1107
- readonly target: {
1108
- readonly type: "string";
1109
- };
1110
- readonly value: {
1111
- readonly oneOf: readonly [{
1112
- readonly type: "string";
1113
- }, {
1114
- readonly type: "object";
1115
- }, {
1116
- readonly type: "array";
1117
- }, {
1118
- readonly type: "number";
1119
- }, {
1120
- readonly type: "boolean";
1121
- }];
1122
- };
1123
- };
1124
- };
1125
- };
1126
- };
1127
- readonly additionalProperties: false;
1128
- readonly required: readonly ["payload"];
1129
- };
1130
- };
1131
- readonly required: readonly ["stepId"];
1132
- readonly oneOf: readonly [{
1133
- readonly required: readonly ["x-operation"];
1134
- }, {
1135
- readonly required: readonly ["operationId"];
1136
- }, {
1137
- readonly required: readonly ["operationPath"];
1138
- }, {
1139
- readonly required: readonly ["workflowId"];
1140
- }];
1141
- };
1142
- };
1143
- readonly successActions: {
1144
- readonly type: "array";
1145
- readonly items: {
1146
- readonly type: "object";
1147
- readonly properties: {
1148
- readonly name: {
1149
- readonly type: "string";
1150
- };
1151
- readonly type: {
1152
- readonly type: "string";
1153
- readonly enum: readonly ["goto", "end"];
1154
- };
1155
- readonly stepId: {
1156
- readonly type: "string";
1157
- };
1158
- readonly workflowId: {
1159
- readonly type: "string";
1160
- };
1161
- readonly criteria: {
1162
- readonly type: "array";
1163
- readonly items: {
1164
- readonly type: "object";
1165
- readonly properties: {
1166
- readonly condition: {
1167
- readonly type: "string";
1168
- };
1169
- readonly context: {
1170
- readonly type: "string";
1171
- };
1172
- readonly type: {
1173
- readonly oneOf: readonly [{
1174
- readonly type: "string";
1175
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
1176
- }, {
1177
- readonly type: "object";
1178
- readonly properties: {
1179
- readonly type: {
1180
- readonly type: "string";
1181
- readonly enum: readonly ["jsonpath"];
1182
- };
1183
- readonly version: {
1184
- readonly type: "string";
1185
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
1186
- };
1187
- };
1188
- }, {
1189
- readonly type: "object";
1190
- readonly properties: {
1191
- readonly type: {
1192
- readonly type: "string";
1193
- readonly enum: readonly ["xpath"];
1194
- };
1195
- readonly version: {
1196
- readonly type: "string";
1197
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
1198
- };
1199
- };
1200
- }];
1201
- };
1202
- };
1203
- readonly required: readonly ["condition"];
1204
- readonly additionalProperties: false;
1205
- };
1206
- };
1207
- };
1208
- readonly additionalProperties: false;
1209
- readonly required: readonly ["type", "name"];
1210
- };
1211
- };
1212
- readonly failureActions: {
1213
- readonly type: "array";
1214
- readonly items: {
1215
- readonly type: "object";
1216
- readonly properties: {
1217
- readonly name: {
1218
- readonly type: "string";
1219
- };
1220
- readonly type: {
1221
- readonly type: "string";
1222
- readonly enum: readonly ["goto", "retry", "end"];
1223
- };
1224
- readonly workflowId: {
1225
- readonly type: "string";
1226
- };
1227
- readonly stepId: {
1228
- readonly type: "string";
1229
- };
1230
- readonly retryAfter: {
1231
- readonly type: "number";
1232
- };
1233
- readonly retryLimit: {
1234
- readonly type: "number";
1235
- };
1236
- readonly criteria: {
1237
- readonly type: "array";
1238
- readonly items: {
1239
- readonly type: "object";
1240
- readonly properties: {
1241
- readonly condition: {
1242
- readonly type: "string";
1243
- };
1244
- readonly context: {
1245
- readonly type: "string";
1246
- };
1247
- readonly type: {
1248
- readonly oneOf: readonly [{
1249
- readonly type: "string";
1250
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
1251
- }, {
1252
- readonly type: "object";
1253
- readonly properties: {
1254
- readonly type: {
1255
- readonly type: "string";
1256
- readonly enum: readonly ["jsonpath"];
1257
- };
1258
- readonly version: {
1259
- readonly type: "string";
1260
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
1261
- };
1262
- };
1263
- }, {
1264
- readonly type: "object";
1265
- readonly properties: {
1266
- readonly type: {
1267
- readonly type: "string";
1268
- readonly enum: readonly ["xpath"];
1269
- };
1270
- readonly version: {
1271
- readonly type: "string";
1272
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
1273
- };
1274
- };
1275
- }];
1276
- };
1277
- };
1278
- readonly required: readonly ["condition"];
1279
- readonly additionalProperties: false;
1280
- };
1281
- };
1282
- };
1283
- readonly additionalProperties: false;
1284
- readonly required: readonly ["type", "name"];
1285
- };
1286
- };
1287
- };
1288
- readonly additionalProperties: false;
1289
- readonly required: readonly ["workflowId", "steps"];
1290
- };
1291
- export declare const arazzoSchema: {
1292
- readonly type: "object";
1293
- readonly properties: {
1294
- readonly arazzo: {
1295
- readonly type: "string";
1296
- readonly enum: readonly ["1.0.0"];
1297
- };
1298
- readonly info: {
1299
- readonly type: "object";
1300
- readonly properties: {
1301
- readonly title: {
1302
- readonly type: "string";
1303
- };
1304
- readonly description: {
1305
- readonly type: "string";
1306
- };
1307
- readonly summary: {
1308
- readonly type: "string";
1309
- };
1310
- readonly version: {
1311
- readonly type: "string";
1312
- };
1313
- };
1314
- readonly additionalProperties: false;
1315
- readonly required: readonly ["title", "version"];
1316
- };
1317
- readonly sourceDescriptions: {
1318
- readonly type: "array";
1319
- readonly items: {
1320
- readonly type: "object";
1321
- readonly oneOf: readonly [{
1322
- readonly type: "object";
1323
- readonly properties: {
1324
- readonly name: {
1325
- readonly type: "string";
1326
- };
1327
- readonly type: {
1328
- readonly type: "string";
1329
- readonly enum: readonly ["openapi"];
1330
- };
1331
- readonly url: {
1332
- readonly type: "string";
1333
- };
1334
- readonly 'x-serverUrl': {
1335
- readonly type: "string";
1336
- };
1337
- };
1338
- readonly additionalProperties: false;
1339
- readonly required: readonly ["name", "type", "url"];
1340
- }, {
1341
- readonly type: "object";
1342
- readonly properties: {
1343
- readonly name: {
1344
- readonly type: "string";
1345
- };
1346
- readonly type: {
1347
- readonly type: "string";
1348
- readonly enum: readonly ["none"];
1349
- };
1350
- readonly 'x-serverUrl': {
1351
- readonly type: "string";
1352
- };
1353
- };
1354
- readonly additionalProperties: false;
1355
- readonly required: readonly ["name", "type", "x-serverUrl"];
1356
- }, {
1357
- readonly type: "object";
1358
- readonly properties: {
1359
- readonly name: {
1360
- readonly type: "string";
1361
- };
1362
- readonly type: {
1363
- readonly type: "string";
1364
- readonly enum: readonly ["arazzo"];
1365
- };
1366
- readonly url: {
1367
- readonly type: "string";
1368
- };
1369
- };
1370
- readonly additionalProperties: false;
1371
- readonly required: readonly ["name", "type", "url"];
1372
- }];
1373
- };
1374
- };
1375
- readonly 'x-parameters': {
1376
- readonly type: "array";
1377
- readonly items: {
1378
- readonly type: "object";
1379
- readonly oneOf: readonly [{
1380
- readonly type: "object";
1381
- readonly properties: {
1382
- readonly in: {
1383
- readonly type: "string";
1384
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
1385
- };
1386
- readonly name: {
1387
- readonly type: "string";
1388
- };
1389
- readonly value: {
1390
- readonly oneOf: readonly [{
1391
- readonly type: "string";
1392
- }, {
1393
- readonly type: "number";
1394
- }, {
1395
- readonly type: "boolean";
1396
- }];
1397
- };
1398
- };
1399
- readonly required: readonly ["name", "value"];
1400
- readonly additionalProperties: false;
1401
- }, {
1402
- readonly type: "object";
1403
- readonly properties: {
1404
- readonly reference: {
1405
- readonly type: "string";
1406
- };
1407
- readonly value: {
1408
- readonly oneOf: readonly [{
1409
- readonly type: "string";
1410
- }, {
1411
- readonly type: "number";
1412
- }, {
1413
- readonly type: "boolean";
1414
- }];
1415
- };
1416
- };
1417
- readonly required: readonly ["reference"];
1418
- readonly additionalProperties: false;
1419
- }];
1420
- };
1421
- };
1422
- readonly workflows: {
1423
- readonly type: "array";
1424
- readonly items: {
1425
- readonly type: "object";
1426
- readonly properties: {
1427
- readonly workflowId: {
1428
- readonly type: "string";
1429
- };
1430
- readonly summary: {
1431
- readonly type: "string";
1432
- };
1433
- readonly description: {
1434
- readonly type: "string";
1435
- };
1436
- readonly parameters: {
1437
- readonly type: "array";
1438
- readonly items: {
1439
- readonly type: "object";
1440
- readonly oneOf: readonly [{
1441
- readonly type: "object";
1442
- readonly properties: {
1443
- readonly in: {
1444
- readonly type: "string";
1445
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
1446
- };
1447
- readonly name: {
1448
- readonly type: "string";
1449
- };
1450
- readonly value: {
1451
- readonly oneOf: readonly [{
1452
- readonly type: "string";
1453
- }, {
1454
- readonly type: "number";
1455
- }, {
1456
- readonly type: "boolean";
1457
- }];
1458
- };
1459
- };
1460
- readonly required: readonly ["name", "value"];
1461
- readonly additionalProperties: false;
1462
- }, {
1463
- readonly type: "object";
1464
- readonly properties: {
1465
- readonly reference: {
1466
- readonly type: "string";
1467
- };
1468
- readonly value: {
1469
- readonly oneOf: readonly [{
1470
- readonly type: "string";
1471
- }, {
1472
- readonly type: "number";
1473
- }, {
1474
- readonly type: "boolean";
1475
- }];
1476
- };
1477
- };
1478
- readonly required: readonly ["reference"];
1479
- readonly additionalProperties: false;
1480
- }];
1481
- };
1482
- };
1483
- readonly dependsOn: {
1484
- readonly type: "array";
1485
- readonly items: {
1486
- readonly type: "string";
1487
- };
1488
- };
1489
- readonly inputs: {
1490
- readonly type: "object";
1491
- readonly properties: {
1492
- readonly type: {
1493
- readonly type: "string";
1494
- readonly enum: readonly ["object", "array", "string", "number", "integer", "boolean", "null"];
1495
- };
1496
- readonly properties: {
1497
- readonly type: "object";
1498
- readonly additionalProperties: true;
1499
- };
1500
- readonly required: {
1501
- readonly type: "array";
1502
- readonly items: {
1503
- readonly type: "string";
1504
- };
1505
- };
1506
- readonly items: {
1507
- readonly type: "object";
1508
- readonly additionalProperties: true;
1509
- };
1510
- };
1511
- readonly required: readonly ["type"];
1512
- readonly additionalProperties: true;
1513
- };
1514
- readonly outputs: {
1515
- readonly type: "object";
1516
- readonly additionalProperties: {
1517
- readonly type: "string";
1518
- };
1519
- };
1520
- readonly steps: {
1521
- readonly type: "array";
1522
- readonly items: {
1523
- readonly type: "object";
1524
- readonly properties: {
1525
- readonly stepId: {
1526
- readonly type: "string";
1527
- };
1528
- readonly description: {
1529
- readonly type: "string";
1530
- };
1531
- readonly operationId: {
1532
- readonly type: "string";
1533
- };
1534
- readonly operationPath: {
1535
- readonly type: "string";
1536
- };
1537
- readonly workflowId: {
1538
- readonly type: "string";
1539
- };
1540
- readonly parameters: {
1541
- readonly type: "array";
1542
- readonly items: {
1543
- readonly type: "object";
1544
- readonly oneOf: readonly [{
1545
- readonly type: "object";
1546
- readonly properties: {
1547
- readonly in: {
1548
- readonly type: "string";
1549
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
1550
- };
1551
- readonly name: {
1552
- readonly type: "string";
1553
- };
1554
- readonly value: {
1555
- readonly oneOf: readonly [{
1556
- readonly type: "string";
1557
- }, {
1558
- readonly type: "number";
1559
- }, {
1560
- readonly type: "boolean";
1561
- }];
1562
- };
1563
- };
1564
- readonly required: readonly ["name", "value"];
1565
- readonly additionalProperties: false;
1566
- }, {
1567
- readonly type: "object";
1568
- readonly properties: {
1569
- readonly reference: {
1570
- readonly type: "string";
1571
- };
1572
- readonly value: {
1573
- readonly oneOf: readonly [{
1574
- readonly type: "string";
1575
- }, {
1576
- readonly type: "number";
1577
- }, {
1578
- readonly type: "boolean";
1579
- }];
1580
- };
1581
- };
1582
- readonly required: readonly ["reference"];
1583
- readonly additionalProperties: false;
1584
- }];
1585
- };
1586
- };
1587
- readonly successCriteria: {
1588
- readonly type: "array";
1589
- readonly items: {
1590
- readonly type: "object";
1591
- readonly properties: {
1592
- readonly condition: {
1593
- readonly type: "string";
1594
- };
1595
- readonly context: {
1596
- readonly type: "string";
1597
- };
1598
- readonly type: {
1599
- readonly oneOf: readonly [{
1600
- readonly type: "string";
1601
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
1602
- }, {
1603
- readonly type: "object";
1604
- readonly properties: {
1605
- readonly type: {
1606
- readonly type: "string";
1607
- readonly enum: readonly ["jsonpath"];
1608
- };
1609
- readonly version: {
1610
- readonly type: "string";
1611
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
1612
- };
1613
- };
1614
- }, {
1615
- readonly type: "object";
1616
- readonly properties: {
1617
- readonly type: {
1618
- readonly type: "string";
1619
- readonly enum: readonly ["xpath"];
1620
- };
1621
- readonly version: {
1622
- readonly type: "string";
1623
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
1624
- };
1625
- };
1626
- }];
1627
- };
1628
- };
1629
- readonly required: readonly ["condition"];
1630
- readonly additionalProperties: false;
1631
- };
1632
- };
1633
- readonly onSuccess: {
1634
- readonly type: "array";
1635
- readonly items: {
1636
- readonly type: "object";
1637
- readonly properties: {
1638
- readonly name: {
1639
- readonly type: "string";
1640
- };
1641
- readonly type: {
1642
- readonly type: "string";
1643
- readonly enum: readonly ["goto", "end"];
1644
- };
1645
- readonly stepId: {
1646
- readonly type: "string";
1647
- };
1648
- readonly workflowId: {
1649
- readonly type: "string";
1650
- };
1651
- readonly criteria: {
1652
- readonly type: "array";
1653
- readonly items: {
1654
- readonly type: "object";
1655
- readonly properties: {
1656
- readonly condition: {
1657
- readonly type: "string";
1658
- };
1659
- readonly context: {
1660
- readonly type: "string";
1661
- };
1662
- readonly type: {
1663
- readonly oneOf: readonly [{
1664
- readonly type: "string";
1665
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
1666
- }, {
1667
- readonly type: "object";
1668
- readonly properties: {
1669
- readonly type: {
1670
- readonly type: "string";
1671
- readonly enum: readonly ["jsonpath"];
1672
- };
1673
- readonly version: {
1674
- readonly type: "string";
1675
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
1676
- };
1677
- };
1678
- }, {
1679
- readonly type: "object";
1680
- readonly properties: {
1681
- readonly type: {
1682
- readonly type: "string";
1683
- readonly enum: readonly ["xpath"];
1684
- };
1685
- readonly version: {
1686
- readonly type: "string";
1687
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
1688
- };
1689
- };
1690
- }];
1691
- };
1692
- };
1693
- readonly required: readonly ["condition"];
1694
- readonly additionalProperties: false;
1695
- };
1696
- };
1697
- };
1698
- readonly additionalProperties: false;
1699
- readonly required: readonly ["type", "name"];
1700
- };
1701
- };
1702
- readonly onFailure: {
1703
- readonly type: "array";
1704
- readonly items: {
1705
- readonly type: "object";
1706
- readonly properties: {
1707
- readonly name: {
1708
- readonly type: "string";
1709
- };
1710
- readonly type: {
1711
- readonly type: "string";
1712
- readonly enum: readonly ["goto", "retry", "end"];
1713
- };
1714
- readonly workflowId: {
1715
- readonly type: "string";
1716
- };
1717
- readonly stepId: {
1718
- readonly type: "string";
1719
- };
1720
- readonly retryAfter: {
1721
- readonly type: "number";
1722
- };
1723
- readonly retryLimit: {
1724
- readonly type: "number";
1725
- };
1726
- readonly criteria: {
1727
- readonly type: "array";
1728
- readonly items: {
1729
- readonly type: "object";
1730
- readonly properties: {
1731
- readonly condition: {
1732
- readonly type: "string";
1733
- };
1734
- readonly context: {
1735
- readonly type: "string";
1736
- };
1737
- readonly type: {
1738
- readonly oneOf: readonly [{
1739
- readonly type: "string";
1740
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
1741
- }, {
1742
- readonly type: "object";
1743
- readonly properties: {
1744
- readonly type: {
1745
- readonly type: "string";
1746
- readonly enum: readonly ["jsonpath"];
1747
- };
1748
- readonly version: {
1749
- readonly type: "string";
1750
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
1751
- };
1752
- };
1753
- }, {
1754
- readonly type: "object";
1755
- readonly properties: {
1756
- readonly type: {
1757
- readonly type: "string";
1758
- readonly enum: readonly ["xpath"];
1759
- };
1760
- readonly version: {
1761
- readonly type: "string";
1762
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
1763
- };
1764
- };
1765
- }];
1766
- };
1767
- };
1768
- readonly required: readonly ["condition"];
1769
- readonly additionalProperties: false;
1770
- };
1771
- };
1772
- };
1773
- readonly additionalProperties: false;
1774
- readonly required: readonly ["type", "name"];
1775
- };
1776
- };
1777
- readonly outputs: {
1778
- readonly type: "object";
1779
- readonly additionalProperties: {
1780
- readonly oneOf: readonly [{
1781
- readonly type: "string";
1782
- }, {
1783
- readonly type: "object";
1784
- }, {
1785
- readonly type: "array";
1786
- }, {
1787
- readonly type: "boolean";
1788
- }, {
1789
- readonly type: "number";
1790
- }];
1791
- };
1792
- };
1793
- readonly 'x-inherit': {
1794
- readonly type: "string";
1795
- readonly enum: readonly ["auto", "none"];
1796
- };
1797
- readonly 'x-expect': {
1798
- readonly type: "object";
1799
- readonly properties: {
1800
- readonly statusCode: {
1801
- readonly type: "number";
1802
- };
1803
- readonly mimeType: {
1804
- readonly type: "string";
1805
- };
1806
- readonly body: {};
1807
- readonly schema: {
1808
- readonly type: "object";
1809
- readonly additionalProperties: true;
1810
- };
1811
- };
1812
- readonly additionalProperties: false;
1813
- readonly oneOf: readonly [{
1814
- readonly required: readonly ["statusCode"];
1815
- }, {
1816
- readonly required: readonly ["mimeType"];
1817
- }, {
1818
- readonly required: readonly ["body"];
1819
- }, {
1820
- readonly required: readonly ["schema"];
1821
- }];
1822
- };
1823
- readonly 'x-assert': {
1824
- readonly type: "string";
1825
- };
1826
- readonly 'x-operation': {
1827
- readonly type: "object";
1828
- readonly properties: {
1829
- readonly path: {
1830
- readonly type: "string";
1831
- };
1832
- readonly method: {
1833
- readonly type: "string";
1834
- readonly enum: readonly ["get", "post", "put", "delete", "patch"];
1835
- };
1836
- readonly sourceDescriptionName: {
1837
- readonly type: "string";
1838
- };
1839
- readonly serverUrl: {
1840
- readonly type: "string";
1841
- };
1842
- };
1843
- readonly additionalProperties: false;
1844
- readonly required: readonly ["path", "method"];
1845
- };
1846
- readonly requestBody: {
1847
- readonly type: "object";
1848
- readonly properties: {
1849
- readonly contentType: {
1850
- readonly type: "string";
1851
- };
1852
- readonly payload: {
1853
- readonly oneOf: readonly [{
1854
- readonly type: "string";
1855
- }, {
1856
- readonly type: "object";
1857
- readonly additionalProperties: true;
1858
- }, {
1859
- readonly type: "array";
1860
- }, {
1861
- readonly type: "number";
1862
- }, {
1863
- readonly type: "boolean";
1864
- }];
1865
- };
1866
- readonly encoding: {
1867
- readonly type: "string";
1868
- };
1869
- readonly replacements: {
1870
- readonly type: "array";
1871
- readonly items: {
1872
- readonly type: "object";
1873
- readonly properties: {
1874
- readonly target: {
1875
- readonly type: "string";
1876
- };
1877
- readonly value: {
1878
- readonly oneOf: readonly [{
1879
- readonly type: "string";
1880
- }, {
1881
- readonly type: "object";
1882
- }, {
1883
- readonly type: "array";
1884
- }, {
1885
- readonly type: "number";
1886
- }, {
1887
- readonly type: "boolean";
1888
- }];
1889
- };
1890
- };
1891
- };
1892
- };
1893
- };
1894
- readonly additionalProperties: false;
1895
- readonly required: readonly ["payload"];
1896
- };
1897
- };
1898
- readonly required: readonly ["stepId"];
1899
- readonly oneOf: readonly [{
1900
- readonly required: readonly ["x-operation"];
1901
- }, {
1902
- readonly required: readonly ["operationId"];
1903
- }, {
1904
- readonly required: readonly ["operationPath"];
1905
- }, {
1906
- readonly required: readonly ["workflowId"];
1907
- }];
1908
- };
1909
- };
1910
- readonly successActions: {
1911
- readonly type: "array";
1912
- readonly items: {
1913
- readonly type: "object";
1914
- readonly properties: {
1915
- readonly name: {
1916
- readonly type: "string";
1917
- };
1918
- readonly type: {
1919
- readonly type: "string";
1920
- readonly enum: readonly ["goto", "end"];
1921
- };
1922
- readonly stepId: {
1923
- readonly type: "string";
1924
- };
1925
- readonly workflowId: {
1926
- readonly type: "string";
1927
- };
1928
- readonly criteria: {
1929
- readonly type: "array";
1930
- readonly items: {
1931
- readonly type: "object";
1932
- readonly properties: {
1933
- readonly condition: {
1934
- readonly type: "string";
1935
- };
1936
- readonly context: {
1937
- readonly type: "string";
1938
- };
1939
- readonly type: {
1940
- readonly oneOf: readonly [{
1941
- readonly type: "string";
1942
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
1943
- }, {
1944
- readonly type: "object";
1945
- readonly properties: {
1946
- readonly type: {
1947
- readonly type: "string";
1948
- readonly enum: readonly ["jsonpath"];
1949
- };
1950
- readonly version: {
1951
- readonly type: "string";
1952
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
1953
- };
1954
- };
1955
- }, {
1956
- readonly type: "object";
1957
- readonly properties: {
1958
- readonly type: {
1959
- readonly type: "string";
1960
- readonly enum: readonly ["xpath"];
1961
- };
1962
- readonly version: {
1963
- readonly type: "string";
1964
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
1965
- };
1966
- };
1967
- }];
1968
- };
1969
- };
1970
- readonly required: readonly ["condition"];
1971
- readonly additionalProperties: false;
1972
- };
1973
- };
1974
- };
1975
- readonly additionalProperties: false;
1976
- readonly required: readonly ["type", "name"];
1977
- };
1978
- };
1979
- readonly failureActions: {
1980
- readonly type: "array";
1981
- readonly items: {
1982
- readonly type: "object";
1983
- readonly properties: {
1984
- readonly name: {
1985
- readonly type: "string";
1986
- };
1987
- readonly type: {
1988
- readonly type: "string";
1989
- readonly enum: readonly ["goto", "retry", "end"];
1990
- };
1991
- readonly workflowId: {
1992
- readonly type: "string";
1993
- };
1994
- readonly stepId: {
1995
- readonly type: "string";
1996
- };
1997
- readonly retryAfter: {
1998
- readonly type: "number";
1999
- };
2000
- readonly retryLimit: {
2001
- readonly type: "number";
2002
- };
2003
- readonly criteria: {
2004
- readonly type: "array";
2005
- readonly items: {
2006
- readonly type: "object";
2007
- readonly properties: {
2008
- readonly condition: {
2009
- readonly type: "string";
2010
- };
2011
- readonly context: {
2012
- readonly type: "string";
2013
- };
2014
- readonly type: {
2015
- readonly oneOf: readonly [{
2016
- readonly type: "string";
2017
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
2018
- }, {
2019
- readonly type: "object";
2020
- readonly properties: {
2021
- readonly type: {
2022
- readonly type: "string";
2023
- readonly enum: readonly ["jsonpath"];
2024
- };
2025
- readonly version: {
2026
- readonly type: "string";
2027
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
2028
- };
2029
- };
2030
- }, {
2031
- readonly type: "object";
2032
- readonly properties: {
2033
- readonly type: {
2034
- readonly type: "string";
2035
- readonly enum: readonly ["xpath"];
2036
- };
2037
- readonly version: {
2038
- readonly type: "string";
2039
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
2040
- };
2041
- };
2042
- }];
2043
- };
2044
- };
2045
- readonly required: readonly ["condition"];
2046
- readonly additionalProperties: false;
2047
- };
2048
- };
2049
- };
2050
- readonly additionalProperties: false;
2051
- readonly required: readonly ["type", "name"];
2052
- };
2053
- };
2054
- };
2055
- readonly additionalProperties: false;
2056
- readonly required: readonly ["workflowId", "steps"];
2057
- };
2058
- };
2059
- readonly components: {
2060
- readonly type: "object";
2061
- readonly properties: {
2062
- readonly inputs: {
2063
- readonly type: "object";
2064
- readonly additionalProperties: {
2065
- readonly type: "object";
2066
- readonly additionalProperties: true;
2067
- readonly properties: {
2068
- readonly type: {
2069
- readonly type: "string";
2070
- };
2071
- readonly properties: {
2072
- readonly type: "object";
2073
- readonly additionalProperties: true;
2074
- };
2075
- };
2076
- readonly required: readonly ["type"];
2077
- };
2078
- };
2079
- readonly parameters: {
2080
- readonly type: "object";
2081
- readonly additionalProperties: {
2082
- readonly type: "object";
2083
- readonly oneOf: readonly [{
2084
- readonly type: "object";
2085
- readonly properties: {
2086
- readonly in: {
2087
- readonly type: "string";
2088
- readonly enum: readonly ["header", "query", "path", "cookie", "body"];
2089
- };
2090
- readonly name: {
2091
- readonly type: "string";
2092
- };
2093
- readonly value: {
2094
- readonly oneOf: readonly [{
2095
- readonly type: "string";
2096
- }, {
2097
- readonly type: "number";
2098
- }, {
2099
- readonly type: "boolean";
2100
- }];
2101
- };
2102
- };
2103
- readonly required: readonly ["name", "value"];
2104
- readonly additionalProperties: false;
2105
- }, {
2106
- readonly type: "object";
2107
- readonly properties: {
2108
- readonly reference: {
2109
- readonly type: "string";
2110
- };
2111
- readonly value: {
2112
- readonly oneOf: readonly [{
2113
- readonly type: "string";
2114
- }, {
2115
- readonly type: "number";
2116
- }, {
2117
- readonly type: "boolean";
2118
- }];
2119
- };
2120
- };
2121
- readonly required: readonly ["reference"];
2122
- readonly additionalProperties: false;
2123
- }];
2124
- };
2125
- };
2126
- readonly successActions: {
2127
- readonly type: "object";
2128
- readonly additionalProperties: {
2129
- readonly type: "object";
2130
- readonly properties: {
2131
- readonly name: {
2132
- readonly type: "string";
2133
- };
2134
- readonly type: {
2135
- readonly type: "string";
2136
- readonly enum: readonly ["goto", "end"];
2137
- };
2138
- readonly stepId: {
2139
- readonly type: "string";
2140
- };
2141
- readonly workflowId: {
2142
- readonly type: "string";
2143
- };
2144
- readonly criteria: {
2145
- readonly type: "array";
2146
- readonly items: {
2147
- readonly type: "object";
2148
- readonly properties: {
2149
- readonly condition: {
2150
- readonly type: "string";
2151
- };
2152
- readonly context: {
2153
- readonly type: "string";
2154
- };
2155
- readonly type: {
2156
- readonly oneOf: readonly [{
2157
- readonly type: "string";
2158
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
2159
- }, {
2160
- readonly type: "object";
2161
- readonly properties: {
2162
- readonly type: {
2163
- readonly type: "string";
2164
- readonly enum: readonly ["jsonpath"];
2165
- };
2166
- readonly version: {
2167
- readonly type: "string";
2168
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
2169
- };
2170
- };
2171
- }, {
2172
- readonly type: "object";
2173
- readonly properties: {
2174
- readonly type: {
2175
- readonly type: "string";
2176
- readonly enum: readonly ["xpath"];
2177
- };
2178
- readonly version: {
2179
- readonly type: "string";
2180
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
2181
- };
2182
- };
2183
- }];
2184
- };
2185
- };
2186
- readonly required: readonly ["condition"];
2187
- readonly additionalProperties: false;
2188
- };
2189
- };
2190
- };
2191
- readonly additionalProperties: false;
2192
- readonly required: readonly ["type", "name"];
2193
- };
2194
- };
2195
- readonly failureActions: {
2196
- readonly type: "object";
2197
- readonly additionalProperties: {
2198
- readonly type: "object";
2199
- readonly properties: {
2200
- readonly name: {
2201
- readonly type: "string";
2202
- };
2203
- readonly type: {
2204
- readonly type: "string";
2205
- readonly enum: readonly ["goto", "retry", "end"];
2206
- };
2207
- readonly workflowId: {
2208
- readonly type: "string";
2209
- };
2210
- readonly stepId: {
2211
- readonly type: "string";
2212
- };
2213
- readonly retryAfter: {
2214
- readonly type: "number";
2215
- };
2216
- readonly retryLimit: {
2217
- readonly type: "number";
2218
- };
2219
- readonly criteria: {
2220
- readonly type: "array";
2221
- readonly items: {
2222
- readonly type: "object";
2223
- readonly properties: {
2224
- readonly condition: {
2225
- readonly type: "string";
2226
- };
2227
- readonly context: {
2228
- readonly type: "string";
2229
- };
2230
- readonly type: {
2231
- readonly oneOf: readonly [{
2232
- readonly type: "string";
2233
- readonly enum: readonly ["regex", "jsonpath", "simple", "xpath"];
2234
- }, {
2235
- readonly type: "object";
2236
- readonly properties: {
2237
- readonly type: {
2238
- readonly type: "string";
2239
- readonly enum: readonly ["jsonpath"];
2240
- };
2241
- readonly version: {
2242
- readonly type: "string";
2243
- readonly enum: readonly ["draft-goessner-dispatch-jsonpath-00"];
2244
- };
2245
- };
2246
- }, {
2247
- readonly type: "object";
2248
- readonly properties: {
2249
- readonly type: {
2250
- readonly type: "string";
2251
- readonly enum: readonly ["xpath"];
2252
- };
2253
- readonly version: {
2254
- readonly type: "string";
2255
- readonly enum: readonly ["xpath-30", "xpath-20", "xpath-10"];
2256
- };
2257
- };
2258
- }];
2259
- };
2260
- };
2261
- readonly required: readonly ["condition"];
2262
- readonly additionalProperties: false;
2263
- };
2264
- };
2265
- };
2266
- readonly additionalProperties: false;
2267
- readonly required: readonly ["type", "name"];
2268
- };
2269
- };
2270
- };
2271
- };
2272
- };
2273
- readonly additionalProperties: false;
2274
- readonly required: readonly ["arazzo", "info", "sourceDescriptions", "workflows"];
2275
- };
1
+ import { type NodeType } from '.';
2276
2
  export declare const ArazzoTypes: Record<string, NodeType>;