@openapi-flow/n8n 0.0.0-stage → 0.3.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 (332) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +129 -2
  3. package/THIRD_PARTY_NOTICES.md +9 -0
  4. package/dist/legacy/workflow/common/plan-validation.d.ts +1 -0
  5. package/dist/legacy/workflow/common/plan-validation.js +11 -0
  6. package/dist/legacy/workflow/common/workflow-id.d.ts +1 -0
  7. package/dist/legacy/workflow/common/workflow-id.js +8 -0
  8. package/dist/legacy/workflow/inbound/build-inbound-workflow.d.ts +2 -0
  9. package/dist/legacy/workflow/inbound/build-inbound-workflow.js +60 -0
  10. package/dist/legacy/workflow/inbound/compile-inbound-workflow.d.ts +2 -0
  11. package/dist/legacy/workflow/inbound/compile-inbound-workflow.js +25 -0
  12. package/dist/legacy/workflow/inbound/inbound-response.d.ts +2 -0
  13. package/dist/legacy/workflow/inbound/inbound-response.js +51 -0
  14. package/dist/legacy/workflow/request/base-url.d.ts +1 -0
  15. package/dist/legacy/workflow/request/base-url.js +14 -0
  16. package/dist/legacy/workflow/request/build-request-workflow.d.ts +3 -0
  17. package/dist/legacy/workflow/request/build-request-workflow.js +47 -0
  18. package/dist/legacy/workflow/request/build-sequence-workflow.d.ts +3 -0
  19. package/dist/legacy/workflow/request/build-sequence-workflow.js +53 -0
  20. package/dist/legacy/workflow/request/compile-catalog-sequence.d.ts +2 -0
  21. package/dist/legacy/workflow/request/compile-catalog-sequence.js +122 -0
  22. package/dist/legacy/workflow/request/compile-sequence.d.ts +2 -0
  23. package/dist/legacy/workflow/request/compile-sequence.js +41 -0
  24. package/dist/legacy/workflow/request/compile-workflow.d.ts +4 -0
  25. package/dist/legacy/workflow/request/compile-workflow.js +93 -0
  26. package/dist/legacy/workflow/request/credential-binding.d.ts +5 -0
  27. package/dist/legacy/workflow/request/credential-binding.js +31 -0
  28. package/dist/legacy/workflow/request/effect-policy.d.ts +4 -0
  29. package/dist/legacy/workflow/request/effect-policy.js +16 -0
  30. package/dist/legacy/workflow/request/http-request-node.d.ts +2 -0
  31. package/dist/legacy/workflow/request/http-request-node.js +69 -0
  32. package/dist/legacy/workflow/request/prepare-sequence.d.ts +4 -0
  33. package/dist/legacy/workflow/request/prepare-sequence.js +103 -0
  34. package/dist/legacy/workflow/request/request-body.d.ts +4 -0
  35. package/dist/legacy/workflow/request/request-body.js +64 -0
  36. package/dist/legacy/workflow/request/request-headers.d.ts +4 -0
  37. package/dist/legacy/workflow/request/request-headers.js +30 -0
  38. package/dist/legacy/workflow/request/request-url.d.ts +4 -0
  39. package/dist/legacy/workflow/request/request-url.js +34 -0
  40. package/dist/legacy/workflow/request/response-assertion-code.d.ts +3 -0
  41. package/dist/legacy/workflow/request/response-assertion-code.js +28 -0
  42. package/dist/legacy/workflow/request/sequence-url.d.ts +4 -0
  43. package/dist/legacy/workflow/request/sequence-url.js +104 -0
  44. package/dist/legacy-api.d.ts +25 -0
  45. package/dist/legacy-api.js +20 -0
  46. package/dist/nodes/common/validation/compile-standalone-validator.d.ts +3 -0
  47. package/dist/nodes/common/validation/compile-standalone-validator.js +44 -0
  48. package/dist/nodes/gap/create-gap-node.d.ts +3 -0
  49. package/dist/nodes/gap/create-gap-node.js +35 -0
  50. package/dist/nodes/inputs/compile-template-input-validators.d.ts +3 -0
  51. package/dist/nodes/inputs/compile-template-input-validators.js +26 -0
  52. package/dist/nodes/inputs/create-template-input-nodes.d.ts +4 -0
  53. package/dist/nodes/inputs/create-template-input-nodes.js +61 -0
  54. package/dist/nodes/native/arrays/create-array-node-fragment.d.ts +4 -0
  55. package/dist/nodes/native/arrays/create-array-node-fragment.js +42 -0
  56. package/dist/nodes/native/arrays/create-array-reader-code.d.ts +3 -0
  57. package/dist/nodes/native/arrays/create-array-reader-code.js +12 -0
  58. package/dist/nodes/native/arrays/create-bound-native-array-capability.d.ts +4 -0
  59. package/dist/nodes/native/arrays/create-bound-native-array-capability.js +81 -0
  60. package/dist/nodes/native/arrays/create-native-array-capability.d.ts +4 -0
  61. package/dist/nodes/native/arrays/create-native-array-capability.js +12 -0
  62. package/dist/nodes/native/arrays/native-array-definition.d.ts +2 -0
  63. package/dist/nodes/native/arrays/native-array-definition.js +27 -0
  64. package/dist/nodes/native/common/create-material-planning-capability.d.ts +4 -0
  65. package/dist/nodes/native/common/create-material-planning-capability.js +14 -0
  66. package/dist/nodes/native/common/create-native-fragment.d.ts +2 -0
  67. package/dist/nodes/native/common/create-native-fragment.js +10 -0
  68. package/dist/nodes/native/common/define-material-bound-capability.d.ts +4 -0
  69. package/dist/nodes/native/common/define-material-bound-capability.js +33 -0
  70. package/dist/nodes/native/common/resolve-native-runtime-source.d.ts +3 -0
  71. package/dist/nodes/native/common/resolve-native-runtime-source.js +15 -0
  72. package/dist/nodes/native/common/response-reference-bindings.d.ts +4 -0
  73. package/dist/nodes/native/common/response-reference-bindings.js +15 -0
  74. package/dist/nodes/native/common/response-references.d.ts +3 -0
  75. package/dist/nodes/native/common/response-references.js +5 -0
  76. package/dist/nodes/native/create-exclusive-branch-merge-capability.d.ts +3 -0
  77. package/dist/nodes/native/create-exclusive-branch-merge-capability.js +43 -0
  78. package/dist/nodes/native/create-json-output-capability.d.ts +3 -0
  79. package/dist/nodes/native/create-json-output-capability.js +48 -0
  80. package/dist/nodes/native/create-native-capabilities.d.ts +2 -0
  81. package/dist/nodes/native/create-native-capabilities.js +15 -0
  82. package/dist/nodes/native/create-pass-through-capability.d.ts +3 -0
  83. package/dist/nodes/native/create-pass-through-capability.js +32 -0
  84. package/dist/nodes/native/create-response-array-capability.d.ts +3 -0
  85. package/dist/nodes/native/create-response-array-capability.js +78 -0
  86. package/dist/nodes/native/create-response-collection-capability.d.ts +3 -0
  87. package/dist/nodes/native/create-response-collection-capability.js +134 -0
  88. package/dist/nodes/native/if-capability.d.ts +2 -0
  89. package/dist/nodes/native/if-capability.js +80 -0
  90. package/dist/nodes/native/inputs/native-input-runtime.bundle.js +24 -0
  91. package/dist/nodes/native/inputs/prepend-native-parameter-guard.d.ts +4 -0
  92. package/dist/nodes/native/inputs/prepend-native-parameter-guard.js +52 -0
  93. package/dist/nodes/native/item-join/create-bound-item-join-capability.d.ts +3 -0
  94. package/dist/nodes/native/item-join/create-bound-item-join-capability.js +169 -0
  95. package/dist/nodes/native/item-join/create-item-join-capability.d.ts +4 -0
  96. package/dist/nodes/native/item-join/create-item-join-capability.js +10 -0
  97. package/dist/nodes/native/item-join/create-item-join-reader-code.d.ts +2 -0
  98. package/dist/nodes/native/item-join/create-item-join-reader-code.js +18 -0
  99. package/dist/nodes/native/item-join/item-join-definition.d.ts +2 -0
  100. package/dist/nodes/native/item-join/item-join-definition.js +33 -0
  101. package/dist/nodes/native/item-join/runtime/item-join-runtime.bundle.js +24 -0
  102. package/dist/nodes/native/item-join/runtime/join-api-items.d.ts +3 -0
  103. package/dist/nodes/native/item-join/runtime/join-api-items.js +37 -0
  104. package/dist/nodes/native/merge-append-capability.d.ts +2 -0
  105. package/dist/nodes/native/merge-append-capability.js +33 -0
  106. package/dist/nodes/native/registry/native-feature-definitions.d.ts +4 -0
  107. package/dist/nodes/native/registry/native-feature-definitions.js +93 -0
  108. package/dist/nodes/native/registry/native-feature-material-requirements.d.ts +3 -0
  109. package/dist/nodes/native/registry/native-feature-material-requirements.js +10 -0
  110. package/dist/nodes/native/registry/resolve-n8n-native-features.d.ts +3 -0
  111. package/dist/nodes/native/registry/resolve-n8n-native-features.js +6 -0
  112. package/dist/nodes/native/registry/resolve-n8n-native-planning-features.d.ts +3 -0
  113. package/dist/nodes/native/registry/resolve-n8n-native-planning-features.js +5 -0
  114. package/dist/nodes/native/registry/resolve-native-feature-registry.d.ts +3 -0
  115. package/dist/nodes/native/registry/resolve-native-feature-registry.js +99 -0
  116. package/dist/nodes/native/registry/validate-native-feature-context.d.ts +2 -0
  117. package/dist/nodes/native/registry/validate-native-feature-context.js +46 -0
  118. package/dist/nodes/native/response-array-definition.d.ts +2 -0
  119. package/dist/nodes/native/response-array-definition.js +27 -0
  120. package/dist/nodes/native/response-assertion-capability.d.ts +2 -0
  121. package/dist/nodes/native/response-assertion-capability.js +57 -0
  122. package/dist/nodes/native/response-check-code.d.ts +3 -0
  123. package/dist/nodes/native/response-check-code.js +65 -0
  124. package/dist/nodes/native/response-checks/create-response-check-guard.d.ts +4 -0
  125. package/dist/nodes/native/response-checks/create-response-check-guard.js +22 -0
  126. package/dist/nodes/native/response-checks/create-response-check-reader.d.ts +3 -0
  127. package/dist/nodes/native/response-checks/create-response-check-reader.js +23 -0
  128. package/dist/nodes/native/response-collection-definition.d.ts +2 -0
  129. package/dist/nodes/native/response-collection-definition.js +27 -0
  130. package/dist/nodes/native/stop-and-error-capability.d.ts +2 -0
  131. package/dist/nodes/native/stop-and-error-capability.js +43 -0
  132. package/dist/nodes/request/authentication/credential-field-name.d.ts +1 -0
  133. package/dist/nodes/request/authentication/credential-field-name.js +3 -0
  134. package/dist/nodes/request/authentication/resolve-http-request-authentication.d.ts +2 -0
  135. package/dist/nodes/request/authentication/resolve-http-request-authentication.js +42 -0
  136. package/dist/nodes/request/bindings/compile-native-output-validators.d.ts +3 -0
  137. package/dist/nodes/request/bindings/compile-native-output-validators.js +12 -0
  138. package/dist/nodes/request/bindings/compile-request-validator.d.ts +3 -0
  139. package/dist/nodes/request/bindings/compile-request-validator.js +13 -0
  140. package/dist/nodes/request/bindings/compile-source-response-validators.d.ts +2 -0
  141. package/dist/nodes/request/bindings/compile-source-response-validators.js +12 -0
  142. package/dist/nodes/request/bindings/create-bound-request-fragment.d.ts +3 -0
  143. package/dist/nodes/request/bindings/create-bound-request-fragment.js +82 -0
  144. package/dist/nodes/request/bindings/create-output-item-reader-code.d.ts +2 -0
  145. package/dist/nodes/request/bindings/create-output-item-reader-code.js +7 -0
  146. package/dist/nodes/request/bindings/create-output-reader-code.d.ts +3 -0
  147. package/dist/nodes/request/bindings/create-output-reader-code.js +26 -0
  148. package/dist/nodes/request/bindings/resolve-output-binding-sources.d.ts +3 -0
  149. package/dist/nodes/request/bindings/resolve-output-binding-sources.js +36 -0
  150. package/dist/nodes/request/create-http-request-node.d.ts +2 -0
  151. package/dist/nodes/request/create-http-request-node.js +73 -0
  152. package/dist/nodes/request/deployment/create-request-deployment-notes.d.ts +2 -0
  153. package/dist/nodes/request/deployment/create-request-deployment-notes.js +3 -0
  154. package/dist/nodes/request/deployment/resolve-http-request-deployment.d.ts +2 -0
  155. package/dist/nodes/request/deployment/resolve-http-request-deployment.js +33 -0
  156. package/dist/nodes/request/finalize-http-request-fragment.d.ts +3 -0
  157. package/dist/nodes/request/finalize-http-request-fragment.js +22 -0
  158. package/dist/nodes/request/resolve-http-request-node-configuration.d.ts +4 -0
  159. package/dist/nodes/request/resolve-http-request-node-configuration.js +41 -0
  160. package/dist/nodes/request/response/create-http-response-decoder.d.ts +4 -0
  161. package/dist/nodes/request/response/create-http-response-decoder.js +57 -0
  162. package/dist/nodes/request/response/decode-http-response.d.ts +3 -0
  163. package/dist/nodes/request/response/decode-http-response.js +42 -0
  164. package/dist/nodes/request/response/http-response-media.d.ts +2 -0
  165. package/dist/nodes/request/response/http-response-media.js +32 -0
  166. package/dist/nodes/request/response/http-response-node-name.d.ts +2 -0
  167. package/dist/nodes/request/response/http-response-node-name.js +4 -0
  168. package/dist/nodes/request/response/response-runtime.bundle.js +24 -0
  169. package/dist/nodes/request/runtime/materialize-http-request.d.ts +4 -0
  170. package/dist/nodes/request/runtime/materialize-http-request.js +35 -0
  171. package/dist/nodes/request/runtime/request-runtime.bundle.js +24 -0
  172. package/dist/nodes/request/serialization/create-serialized-http-request-node.d.ts +3 -0
  173. package/dist/nodes/request/serialization/create-serialized-http-request-node.js +17 -0
  174. package/dist/nodes/request/serialization/serialize-http-request.d.ts +5 -0
  175. package/dist/nodes/request/serialization/serialize-http-request.js +70 -0
  176. package/dist/public-api.d.ts +43 -0
  177. package/dist/public-api.js +26 -0
  178. package/dist/schemas/batch-execution-schema.d.ts +15 -0
  179. package/dist/schemas/batch-execution-schema.js +14 -0
  180. package/dist/schemas/create-native-comparison-planning-schema.d.ts +81 -0
  181. package/dist/schemas/create-native-comparison-planning-schema.js +36 -0
  182. package/dist/schemas/exclusive-branch-merge-schema.d.ts +4 -0
  183. package/dist/schemas/exclusive-branch-merge-schema.js +7 -0
  184. package/dist/schemas/item-join-schema.d.ts +13 -0
  185. package/dist/schemas/item-join-schema.js +26 -0
  186. package/dist/schemas/native-array-schema.d.ts +11 -0
  187. package/dist/schemas/native-array-schema.js +19 -0
  188. package/dist/schemas/native-capability-schemas.d.ts +100 -0
  189. package/dist/schemas/native-capability-schemas.js +62 -0
  190. package/dist/schemas/native-feature-registry-schema.d.ts +17 -0
  191. package/dist/schemas/native-feature-registry-schema.js +8 -0
  192. package/dist/schemas/native-runtime-input-schema.d.ts +5 -0
  193. package/dist/schemas/native-runtime-input-schema.js +5 -0
  194. package/dist/schemas/request-deployment-schema.d.ts +9 -0
  195. package/dist/schemas/request-deployment-schema.js +27 -0
  196. package/dist/schemas/response-array-schema.d.ts +11 -0
  197. package/dist/schemas/response-array-schema.js +19 -0
  198. package/dist/schemas/response-collection-schema.d.ts +11 -0
  199. package/dist/schemas/response-collection-schema.js +19 -0
  200. package/dist/schemas/template-deployment-selection-schema.d.ts +3 -0
  201. package/dist/schemas/template-deployment-selection-schema.js +10 -0
  202. package/dist/schemas/workflow-input-value-map-schema.d.ts +5 -0
  203. package/dist/schemas/workflow-input-value-map-schema.js +5 -0
  204. package/dist/schemas/workflow-template-schema.d.ts +11 -0
  205. package/dist/schemas/workflow-template-schema.js +10 -0
  206. package/dist/types/array-iteration.d.ts +8 -0
  207. package/dist/types/array-iteration.js +1 -0
  208. package/dist/types/array-split.d.ts +13 -0
  209. package/dist/types/array-split.js +1 -0
  210. package/dist/types/authentication.d.ts +14 -0
  211. package/dist/types/authentication.js +1 -0
  212. package/dist/types/batch-execution.d.ts +23 -0
  213. package/dist/types/batch-execution.js +1 -0
  214. package/dist/types/http-response-decoding.d.ts +16 -0
  215. package/dist/types/http-response-decoding.js +1 -0
  216. package/dist/types/item-join.d.ts +40 -0
  217. package/dist/types/item-join.js +1 -0
  218. package/dist/types/legacy/catalog-workflow.d.ts +37 -0
  219. package/dist/types/legacy/catalog-workflow.js +1 -0
  220. package/dist/types/legacy/inbound-workflow.d.ts +27 -0
  221. package/dist/types/legacy/inbound-workflow.js +1 -0
  222. package/dist/types/legacy/request-node.d.ts +23 -0
  223. package/dist/types/legacy/request-node.js +1 -0
  224. package/dist/types/legacy/request-workflow.d.ts +43 -0
  225. package/dist/types/legacy/request-workflow.js +1 -0
  226. package/dist/types/legacy/sequence-workflow.d.ts +57 -0
  227. package/dist/types/legacy/sequence-workflow.js +1 -0
  228. package/dist/types/native-array.d.ts +8 -0
  229. package/dist/types/native-array.js +1 -0
  230. package/dist/types/native-capability.d.ts +46 -0
  231. package/dist/types/native-capability.js +1 -0
  232. package/dist/types/native-feature-registry.d.ts +70 -0
  233. package/dist/types/native-feature-registry.js +14 -0
  234. package/dist/types/native-material-binding.d.ts +56 -0
  235. package/dist/types/native-material-binding.js +1 -0
  236. package/dist/types/native-runtime-parameters.d.ts +55 -0
  237. package/dist/types/native-runtime-parameters.js +1 -0
  238. package/dist/types/node-fragment.d.ts +51 -0
  239. package/dist/types/node-fragment.js +1 -0
  240. package/dist/types/output-binding-source.d.ts +27 -0
  241. package/dist/types/output-binding-source.js +1 -0
  242. package/dist/types/request-deployment.d.ts +17 -0
  243. package/dist/types/request-deployment.js +1 -0
  244. package/dist/types/request-materialization.d.ts +30 -0
  245. package/dist/types/request-materialization.js +1 -0
  246. package/dist/types/request-node-configuration.d.ts +13 -0
  247. package/dist/types/request-node-configuration.js +1 -0
  248. package/dist/types/response-check-compilation.d.ts +11 -0
  249. package/dist/types/response-check-compilation.js +1 -0
  250. package/dist/types/response-check-guard.d.ts +6 -0
  251. package/dist/types/response-check-guard.js +1 -0
  252. package/dist/types/response-collection.d.ts +7 -0
  253. package/dist/types/response-collection.js +1 -0
  254. package/dist/types/reviewable-workflow.d.ts +29 -0
  255. package/dist/types/reviewable-workflow.js +1 -0
  256. package/dist/types/schema-compilation.d.ts +5 -0
  257. package/dist/types/schema-compilation.js +1 -0
  258. package/dist/types/serialized-http-request.d.ts +4 -0
  259. package/dist/types/serialized-http-request.js +1 -0
  260. package/dist/types/workflow-compilation.d.ts +39 -0
  261. package/dist/types/workflow-compilation.js +1 -0
  262. package/dist/types/workflow-template.d.ts +121 -0
  263. package/dist/types/workflow-template.js +1 -0
  264. package/dist/utils/bundled-license-banner.d.ts +3 -0
  265. package/dist/utils/bundled-license-banner.js +32 -0
  266. package/dist/utils/javascript-json-literal.d.ts +2 -0
  267. package/dist/utils/javascript-json-literal.js +10 -0
  268. package/dist/utils/json-values-equal.cjs +24 -0
  269. package/dist/utils/json-values-equal.d.cts +1 -0
  270. package/dist/workflow/assemble-n8n-workflow.d.ts +2 -0
  271. package/dist/workflow/assemble-n8n-workflow.js +11 -0
  272. package/dist/workflow/batch/compile-batched-n8n-workflow.d.ts +3 -0
  273. package/dist/workflow/batch/compile-batched-n8n-workflow.js +36 -0
  274. package/dist/workflow/batch/create-batch-execution-scopes.d.ts +3 -0
  275. package/dist/workflow/batch/create-batch-execution-scopes.js +59 -0
  276. package/dist/workflow/batch/validate-batch-exclusive-rejoin.d.ts +3 -0
  277. package/dist/workflow/batch/validate-batch-exclusive-rejoin.js +49 -0
  278. package/dist/workflow/batch/validate-batch-item-flow.d.ts +3 -0
  279. package/dist/workflow/batch/validate-batch-item-flow.js +98 -0
  280. package/dist/workflow/build-n8n-workflow.d.ts +2 -0
  281. package/dist/workflow/build-n8n-workflow.js +140 -0
  282. package/dist/workflow/compile-native-material-fragments.d.ts +3 -0
  283. package/dist/workflow/compile-native-material-fragments.js +76 -0
  284. package/dist/workflow/compile-native-workflow-nodes.d.ts +3 -0
  285. package/dist/workflow/compile-native-workflow-nodes.js +25 -0
  286. package/dist/workflow/compile-planned-n8n-workflow.d.ts +3 -0
  287. package/dist/workflow/compile-planned-n8n-workflow.js +42 -0
  288. package/dist/workflow/compile-reviewable-n8n-workflow.d.ts +3 -0
  289. package/dist/workflow/compile-reviewable-n8n-workflow.js +92 -0
  290. package/dist/workflow/compile-validated-workflow-fragments.d.ts +3 -0
  291. package/dist/workflow/compile-validated-workflow-fragments.js +20 -0
  292. package/dist/workflow/compile-workflow-material-fragments.d.ts +4 -0
  293. package/dist/workflow/compile-workflow-material-fragments.js +18 -0
  294. package/dist/workflow/create-n8n-native-output-sources.d.ts +3 -0
  295. package/dist/workflow/create-n8n-native-output-sources.js +58 -0
  296. package/dist/workflow/entrypoint/manual-trigger.d.ts +4 -0
  297. package/dist/workflow/entrypoint/manual-trigger.js +16 -0
  298. package/dist/workflow/find-singleton-api-responses.d.ts +3 -0
  299. package/dist/workflow/find-singleton-api-responses.js +22 -0
  300. package/dist/workflow/inputs/compile-native-runtime-inputs.d.ts +5 -0
  301. package/dist/workflow/inputs/compile-native-runtime-inputs.js +129 -0
  302. package/dist/workflow/inputs/create-runtime-input-native-capabilities.d.ts +4 -0
  303. package/dist/workflow/inputs/create-runtime-input-native-capabilities.js +36 -0
  304. package/dist/workflow/resolve-n8n-native-materials.d.ts +2 -0
  305. package/dist/workflow/resolve-n8n-native-materials.js +16 -0
  306. package/dist/workflow/review/create-gap-review-content.d.ts +2 -0
  307. package/dist/workflow/review/create-gap-review-content.js +28 -0
  308. package/dist/workflow/review/create-gap-review-region.d.ts +2 -0
  309. package/dist/workflow/review/create-gap-review-region.js +23 -0
  310. package/dist/workflow/review/escape-review-markdown.d.ts +1 -0
  311. package/dist/workflow/review/escape-review-markdown.js +7 -0
  312. package/dist/workflow/review/gap-review-region-layout.d.ts +4 -0
  313. package/dist/workflow/review/gap-review-region-layout.js +21 -0
  314. package/dist/workflow/templates/compile-n8n-workflow-template.d.ts +3 -0
  315. package/dist/workflow/templates/compile-n8n-workflow-template.js +211 -0
  316. package/dist/workflow/templates/create-template-artifact-mapping.d.ts +2 -0
  317. package/dist/workflow/templates/create-template-artifact-mapping.js +58 -0
  318. package/dist/workflow/templates/create-template-gap-regions.d.ts +5 -0
  319. package/dist/workflow/templates/create-template-gap-regions.js +22 -0
  320. package/dist/workflow/templates/create-workflow-template-guide.d.ts +3 -0
  321. package/dist/workflow/templates/create-workflow-template-guide.js +44 -0
  322. package/dist/workflow/templates/prepare-template-api-fragments.d.ts +3 -0
  323. package/dist/workflow/templates/prepare-template-api-fragments.js +74 -0
  324. package/dist/workflow/templates/select-n8n-template-deployments.d.ts +3 -0
  325. package/dist/workflow/templates/select-n8n-template-deployments.js +12 -0
  326. package/dist/workflow/templates/workflow-template-identities.d.ts +5 -0
  327. package/dist/workflow/templates/workflow-template-identities.js +5 -0
  328. package/dist/workflow/validate-compiled-binding-sources.d.ts +4 -0
  329. package/dist/workflow/validate-compiled-binding-sources.js +40 -0
  330. package/dist/workflow/validate-node-fragments.d.ts +3 -0
  331. package/dist/workflow/validate-node-fragments.js +58 -0
  332. package/package.json +59 -4
@@ -0,0 +1,70 @@
1
+ import type { ApiBindingMaterial } from '@openapi-flow/core';
2
+ import type { CreateJsonOutputCapabilityInput, N8nNativeCapability, NativeItemExecutionOptions } from './native-capability.js';
3
+ import type { N8nNativeOutputSource } from './output-binding-source.js';
4
+ /** Supported OSS feature families, not every built-in node in n8n. */
5
+ export declare const N8nNativeFeature: Readonly<{
6
+ readonly If: "if";
7
+ readonly MergeAppend: "merge-append";
8
+ readonly AssertResponses: "assert-responses";
9
+ readonly StopAndError: "stop-and-error";
10
+ readonly PassThrough: "pass-through";
11
+ readonly RejoinExclusiveBranches: "rejoin-exclusive-branches";
12
+ readonly JsonOutput: "json-output";
13
+ readonly SplitApiResponseArray: "split-api-response-array";
14
+ readonly CollectApiResponses: "collect-api-responses";
15
+ readonly SplitNativeOutputArray: "split-native-output-array";
16
+ readonly JoinApiItems: "join-api-items";
17
+ }>;
18
+ export type N8nNativeFeature = (typeof N8nNativeFeature)[keyof typeof N8nNativeFeature];
19
+ export interface N8nNativeFeatureContext extends NativeItemExecutionOptions {
20
+ apiMaterials?: ApiBindingMaterial[];
21
+ nativeOutputSources?: N8nNativeOutputSource[];
22
+ /** The host owns the literal producer's name and original typed input contract. */
23
+ jsonOutput?: CreateJsonOutputCapabilityInput;
24
+ }
25
+ export interface ResolveN8nNativeFeaturesInput extends N8nNativeFeatureContext {
26
+ /** Omitted permits every registered family; [] permits none. */
27
+ features?: N8nNativeFeature[];
28
+ /** Explicit host implementations are retained, never inferred or replaced. */
29
+ extensions?: N8nNativeCapability[];
30
+ }
31
+ export interface ReadyN8nNativeFeature {
32
+ feature: N8nNativeFeature;
33
+ status: 'ready';
34
+ capability: N8nNativeCapability;
35
+ }
36
+ export interface PendingN8nNativeFeature {
37
+ feature: N8nNativeFeature;
38
+ status: 'requires-context';
39
+ missingContext: N8nNativeFeatureContextRequirement[];
40
+ }
41
+ export interface N8nNativeArrayContextRequirement {
42
+ field: 'apiMaterials' | 'nativeOutputSources';
43
+ minimumItems: number;
44
+ }
45
+ export interface N8nNativeJsonOutputContextRequirement {
46
+ field: 'jsonOutput';
47
+ }
48
+ export type N8nNativeFeatureContextRequirement = N8nNativeArrayContextRequirement | N8nNativeJsonOutputContextRequirement;
49
+ export type N8nNativeFeatureRegistration = ReadyN8nNativeFeature | PendingN8nNativeFeature;
50
+ export interface N8nNativeFeatureRegistry {
51
+ registrations: N8nNativeFeatureRegistration[];
52
+ /** Only ready registrations and explicitly supplied extensions. */
53
+ capabilities: N8nNativeCapability[];
54
+ }
55
+ export interface N8nNativePlanningFeatureRegistry extends N8nNativeFeatureRegistry {
56
+ /** Registered family provenance, separate from arbitrary explicit extensions. */
57
+ planningRegistrations: N8nNativeFeaturePlanningDefinition[];
58
+ /** Stable definitions are selectable, but their outputs/ports still require actual contracts. */
59
+ planningCapabilities: N8nNativeCapability[];
60
+ }
61
+ export interface N8nNativeFeaturePlanningDefinition {
62
+ feature: N8nNativeFeature;
63
+ capability: N8nNativeCapability;
64
+ }
65
+ export type N8nNativeFeatureResolutionMode = 'materials' | 'planning';
66
+ export interface N8nNativeFeatureDefinition {
67
+ requirements: N8nNativeFeatureContextRequirement[];
68
+ create: (context: N8nNativeFeatureContext) => N8nNativeCapability;
69
+ createPlanning?: (context: NativeItemExecutionOptions) => N8nNativeCapability;
70
+ }
@@ -0,0 +1,14 @@
1
+ /** Supported OSS feature families, not every built-in node in n8n. */
2
+ export const N8nNativeFeature = Object.freeze({
3
+ If: 'if',
4
+ MergeAppend: 'merge-append',
5
+ AssertResponses: 'assert-responses',
6
+ StopAndError: 'stop-and-error',
7
+ PassThrough: 'pass-through',
8
+ RejoinExclusiveBranches: 'rejoin-exclusive-branches',
9
+ JsonOutput: 'json-output',
10
+ SplitApiResponseArray: 'split-api-response-array',
11
+ CollectApiResponses: 'collect-api-responses',
12
+ SplitNativeOutputArray: 'split-native-output-array',
13
+ JoinApiItems: 'join-api-items',
14
+ });
@@ -0,0 +1,56 @@
1
+ import type { NativeOutputContract, ApiBindingMaterial, PlannedNativeNode, WorkflowNativeMaterialSources } from '@openapi-flow/core';
2
+ import type { N8nNativeOutputSource } from './output-binding-source.js';
3
+ import type { NativeItemExecutionOptions } from './native-capability.js';
4
+ import type { N8nNativeCapability } from './native-capability.js';
5
+ import type { N8nNodeFragment } from './node-fragment.js';
6
+ export type NativeRuntimeSourceBinding = {
7
+ kind: 'provided';
8
+ sources: N8nNativeOutputSource[];
9
+ } | {
10
+ kind: 'compiled';
11
+ };
12
+ export interface ResolveNativeRuntimeSourceInput {
13
+ binding: NativeRuntimeSourceBinding;
14
+ contract: NativeOutputContract;
15
+ compiledSources?: N8nNativeOutputSource[];
16
+ consumerId: string;
17
+ }
18
+ export interface BoundNativeArrayCapabilityInput extends NativeItemExecutionOptions {
19
+ sources: NativeOutputContract[];
20
+ runtime: NativeRuntimeSourceBinding;
21
+ }
22
+ export interface BoundItemJoinCapabilityInput {
23
+ materials: ApiBindingMaterial[];
24
+ scopes: NativeOutputContract[];
25
+ runtime: NativeRuntimeSourceBinding;
26
+ }
27
+ export interface ResolveN8nNativeMaterialsInput {
28
+ apiMaterials: ApiBindingMaterial[];
29
+ nativeOutputs: NativeOutputContract[];
30
+ nativeNodes: PlannedNativeNode[];
31
+ capabilities: N8nNativeCapability[];
32
+ }
33
+ export interface ResolvedN8nNativeMaterials {
34
+ capabilities: N8nNativeCapability[];
35
+ outputs: NativeOutputContract[];
36
+ }
37
+ export interface CompileNativeMaterialFragmentsInput {
38
+ nativeNodes: PlannedNativeNode[];
39
+ materials: ResolvedN8nNativeMaterials;
40
+ apiMaterials: ApiBindingMaterial[];
41
+ apiNodeNames: Record<string, string>;
42
+ singletonApiResponseIds?: string[];
43
+ externalNativeOutputSources: N8nNativeOutputSource[];
44
+ nodeIds: string[];
45
+ }
46
+ export interface CompiledNativeMaterialFragments {
47
+ fragments: N8nNodeFragment[];
48
+ outputSources: N8nNativeOutputSource[];
49
+ }
50
+ export interface MaterialBindableN8nCapability extends N8nNativeCapability {
51
+ bindMaterialContracts: NonNullable<N8nNativeCapability['bindMaterialContracts']>;
52
+ }
53
+ export interface MaterialBoundN8nCapability extends MaterialBindableN8nCapability {
54
+ materialSources: WorkflowNativeMaterialSources;
55
+ }
56
+ export type NativeMaterialFeatureDefinition = Pick<N8nNativeCapability, 'name' | 'description' | 'parametersSchema' | 'parameterReferenceSources' | 'referenceStructureSchema' | 'parameterReferenceBindings' | 'waitsForAllInputs' | 'exclusiveOutputPorts' | 'materialRequirements' | 'inputPorts' | 'outputPorts'>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,55 @@
1
+ import type { NativeRuntimeParameterMaterialization, NativeRuntimeInputSlot, NativeRuntimeInputValues, PlannedNativeNode, ApiBindingMaterial, NativeOutputContract } from '@openapi-flow/core';
2
+ import type { N8nTemplateInputSlotMapping } from './workflow-template.js';
3
+ import type { BuildN8nWorkflowInput, N8nWorkflowJSON } from './workflow-compilation.js';
4
+ import type { CompileNativeNodeInput, N8nNativeCapability } from './native-capability.js';
5
+ import type { N8nNodeFragment } from './node-fragment.js';
6
+ export interface N8nNativeRuntimeInput {
7
+ materialization: NativeRuntimeParameterMaterialization;
8
+ revision: number;
9
+ inputNodeName: string;
10
+ }
11
+ export interface PrependNativeParameterGuardInput {
12
+ input: CompileNativeNodeInput;
13
+ capability: N8nNativeCapability;
14
+ fragment: N8nNodeFragment;
15
+ }
16
+ export interface N8nNativeInputConfiguration {
17
+ revision: number;
18
+ /** Omission leaves actual execution values absent; no dummy values are generated. */
19
+ inputValues?: NativeRuntimeInputValues;
20
+ }
21
+ export type N8nNativeInputSlot = NativeRuntimeInputSlot & N8nTemplateInputSlotMapping;
22
+ export interface N8nNativeInputTemplate {
23
+ revision: number;
24
+ inputsReady: boolean;
25
+ inputSlots: N8nNativeInputSlot[];
26
+ guide: string;
27
+ }
28
+ export interface PrepareNativeRuntimeInputsInput {
29
+ nativeNodes: PlannedNativeNode[];
30
+ capabilities: N8nNativeCapability[];
31
+ apiMaterials: ApiBindingMaterial[];
32
+ nativeOutputs: NativeOutputContract[];
33
+ nativeInputs?: N8nNativeInputConfiguration;
34
+ }
35
+ export interface PreparedNativeRuntimeInputs {
36
+ revision: number;
37
+ inputValues: NativeRuntimeInputValues;
38
+ inputsReady: boolean;
39
+ slots: NativeRuntimeInputSlot[];
40
+ nativeParameters: NativeRuntimeParameterMaterialization[];
41
+ capabilities: N8nNativeCapability[];
42
+ }
43
+ export interface CreateRuntimeInputNativeCapabilitiesInput {
44
+ capabilities: N8nNativeCapability[];
45
+ slots: NativeRuntimeInputSlot[];
46
+ revision: number;
47
+ inputNodeName: string;
48
+ }
49
+ export interface AssembleNativeRuntimeInputsInput extends BuildN8nWorkflowInput {
50
+ nativeInputs: PreparedNativeRuntimeInputs;
51
+ }
52
+ export interface N8nNativeInputCompilationResult {
53
+ workflow: N8nWorkflowJSON;
54
+ nativeInputTemplate: N8nNativeInputTemplate;
55
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,51 @@
1
+ import type { NodeInstance } from '@n8n/workflow-sdk';
2
+ import type { ApiOperationContract, ApiCallArguments } from '@openapi-flow/core';
3
+ import type { HttpRequestDeploymentOptions, ResolvedHttpRequestDeployment } from './request-deployment.js';
4
+ import type { N8nNativeOutputSource, N8nOutputBindingSource } from './output-binding-source.js';
5
+ export type N8nSdkNode = NodeInstance<string, string, unknown>;
6
+ export interface N8nFragmentEdge {
7
+ from: string;
8
+ output: number;
9
+ to: string;
10
+ input: number;
11
+ }
12
+ export interface N8nFragmentInputEndpoint {
13
+ nodeId: string;
14
+ input: number;
15
+ }
16
+ export interface N8nItemAncestryJoin {
17
+ /** One output per shared scope ancestor, retaining every contributing link. */
18
+ scopeNodeId: string;
19
+ }
20
+ export interface N8nNodeFragment {
21
+ nodeId: string;
22
+ /** Compiler-owned contract: one linked output per input, or an execution error. */
23
+ preservesInputItems?: boolean;
24
+ /** Compiler-owned reduction of complete branches, not a positional or value join. */
25
+ joinsInputItemsByAncestry?: N8nItemAncestryJoin;
26
+ /** Exactly one linked item across the declared mutually exclusive output ports. */
27
+ partitionsInputItems?: boolean;
28
+ /** Append complete alternatives from the named partition producer. */
29
+ rejoinsExclusiveOutputs?: string;
30
+ nodes: N8nSdkNode[];
31
+ entry: N8nSdkNode;
32
+ exit: N8nSdkNode;
33
+ inputPorts: Record<string, number>;
34
+ /** Explicit per-port SDK entry nodes for fragments with independent input readers. */
35
+ inputEndpoints?: Record<string, N8nFragmentInputEndpoint>;
36
+ outputPorts: Record<string, number>;
37
+ internalEdges?: N8nFragmentEdge[];
38
+ bindingSources?: N8nOutputBindingSource[];
39
+ }
40
+ export interface CreateHttpRequestNodeInput extends HttpRequestDeploymentOptions {
41
+ operation: ApiOperationContract;
42
+ arguments: ApiCallArguments;
43
+ position: [number, number];
44
+ apiNodeNames?: Record<string, string>;
45
+ nativeOutputSources?: N8nNativeOutputSource[];
46
+ /** Linked mode uses n8n ancestry, never index-zipping independent source arrays. */
47
+ itemMode?: 'linked';
48
+ /** When supplied, every referenced API must have its original response contract. */
49
+ apiResponseContracts?: Record<string, ApiOperationContract>;
50
+ }
51
+ export type CreateBoundHttpRequestNodeInput = CreateHttpRequestNodeInput & ResolvedHttpRequestDeployment;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { NativeOutputContract } from '@openapi-flow/core';
2
+ import type { PlannedNativeNode } from '@openapi-flow/core';
3
+ import type { N8nNativeCapability } from './native-capability.js';
4
+ import type { ApiOperationContract } from '@openapi-flow/core';
5
+ import type { N8nNativeInputConfiguration } from './native-runtime-parameters.js';
6
+ export interface N8nNativeOutputSource extends NativeOutputContract {
7
+ nodeName: string;
8
+ }
9
+ export interface N8nApiResponseSource {
10
+ kind: 'api-response';
11
+ nodeId: string;
12
+ nodeName: string;
13
+ operation?: ApiOperationContract;
14
+ }
15
+ export interface N8nNativeJsonSource extends N8nNativeOutputSource {
16
+ kind: 'native-json';
17
+ }
18
+ export type N8nOutputBindingSource = N8nApiResponseSource | N8nNativeJsonSource;
19
+ export interface CreateN8nNativeOutputSourcesInput {
20
+ nativeNodes: PlannedNativeNode[];
21
+ capabilities: N8nNativeCapability[];
22
+ apiNodeNames: Record<string, string>;
23
+ apiResponseContracts?: Record<string, ApiOperationContract>;
24
+ /** Actual SDK output sources outside this explicitly supplied native subset. */
25
+ externalNativeOutputSources?: N8nNativeOutputSource[];
26
+ nativeInputs?: N8nNativeInputConfiguration;
27
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { CredentialBindings } from './legacy/request-workflow.js';
2
+ import type { HttpRequestAuthenticationMapping } from './authentication.js';
3
+ export interface HttpRequestDeploymentOptions {
4
+ baseUrl?: string;
5
+ credentialBindings?: CredentialBindings;
6
+ securityRequirementIndex?: number;
7
+ }
8
+ export interface ResolveHttpRequestDeploymentInput extends HttpRequestDeploymentOptions {
9
+ documentId: string;
10
+ authentication?: HttpRequestAuthenticationMapping;
11
+ }
12
+ export interface ResolvedHttpRequestDeployment {
13
+ baseUrl: string;
14
+ credentialBindings: CredentialBindings;
15
+ pendingFields: string[];
16
+ authentication?: HttpRequestAuthenticationMapping;
17
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import type { ApiCallArguments, ApiOperationContract, JsonValue } from '@openapi-flow/core';
2
+ import type { Operation } from '@openapi-flow/core/internal';
3
+ import type { DeferredApiInputSlot } from '@openapi-flow/core';
4
+ import type { PreparedRequestBody, RequestHeader } from './legacy/request-node.js';
5
+ export interface RequestMaterializationConfig {
6
+ contract: ApiOperationContract;
7
+ operation: Operation;
8
+ arguments: RequestMaterializationArguments;
9
+ templateUrl: string;
10
+ deferredInputs?: DeferredRequestRuntimeInputs;
11
+ }
12
+ export type RequestMaterializationArguments = Pick<ApiCallArguments, 'callId' | 'values' | 'bindings' | 'unresolvedInputs' | 'requestMediaType' | 'requestedInputs'>;
13
+ export interface DeferredRequestRuntimeInputs {
14
+ revision: number;
15
+ inputNodeName: string;
16
+ slots: DeferredApiInputSlot[];
17
+ }
18
+ export interface MaterializedHttpRequest {
19
+ url: string;
20
+ headers: RequestHeader[];
21
+ body?: PreparedRequestBody;
22
+ }
23
+ export type ResponseBodies = Record<string, JsonValue>;
24
+ export interface RuntimeHttpRequest extends MaterializedHttpRequest {
25
+ headersJson: string;
26
+ }
27
+ export interface RuntimeRequestValidator {
28
+ (value: unknown): boolean;
29
+ errors?: unknown;
30
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { CreateBoundHttpRequestNodeInput, N8nNodeFragment } from './node-fragment.js';
2
+ import type { RequestMaterializationConfig } from './request-materialization.js';
3
+ import type { ResolvedHttpRequestDeployment } from './request-deployment.js';
4
+ export interface ResolveHttpRequestNodeConfigurationResult {
5
+ input: CreateBoundHttpRequestNodeInput;
6
+ config: RequestMaterializationConfig;
7
+ }
8
+ export interface FinalizeHttpRequestFragmentInput {
9
+ fragment: N8nNodeFragment;
10
+ method: string;
11
+ documentId: string;
12
+ deployment: ResolvedHttpRequestDeployment;
13
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { CompileNativeNodeInput, NativeCheck } from './native-capability.js';
2
+ import type { N8nApiResponseSource } from './output-binding-source.js';
3
+ export interface CreateResponseCheckReaderInput extends Pick<CompileNativeNodeInput, 'apiNodeNames' | 'apiResponseContracts' | 'singletonApiResponseIds'> {
4
+ nodeId: string;
5
+ checks: NativeCheck[];
6
+ linked: boolean;
7
+ }
8
+ export interface CompiledResponseCheckReader {
9
+ code: string;
10
+ bindingSources: N8nApiResponseSource[];
11
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CreateResponseCheckGuardInput {
2
+ nodeId: string;
3
+ readerCode: string;
4
+ linked: boolean;
5
+ position: [number, number];
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { ApiBindingMaterial } from '@openapi-flow/core';
2
+ import type { z } from 'zod';
3
+ import type { responseCollectionParametersSchema } from '../schemas/response-collection-schema.js';
4
+ export type ResponseCollectionParameters = z.infer<typeof responseCollectionParametersSchema>;
5
+ export interface CreateResponseCollectionCapabilityInput {
6
+ materials: ApiBindingMaterial[];
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,29 @@
1
+ import type { ReviewableWorkflowGraphPlan, ReviewableWorkflowApiMaterial, WorkflowReviewGap, ApiOperationContract } from '@openapi-flow/core';
2
+ import type { N8nNativeCapability } from './native-capability.js';
3
+ import type { N8nNodeFragment, N8nSdkNode } from './node-fragment.js';
4
+ import type { N8nNativeInputConfiguration } from './native-runtime-parameters.js';
5
+ export interface CompileReviewableN8nWorkflowInput {
6
+ id: string;
7
+ name: string;
8
+ plan: ReviewableWorkflowGraphPlan;
9
+ materials: ReviewableWorkflowApiMaterial[];
10
+ apiNodes: N8nNodeFragment[];
11
+ capabilities: N8nNativeCapability[];
12
+ nativeInputs?: N8nNativeInputConfiguration;
13
+ }
14
+ export interface CreateGapNodeInput {
15
+ nodeId: string;
16
+ gaps: WorkflowReviewGap[];
17
+ position: [number, number];
18
+ operation?: ApiOperationContract;
19
+ }
20
+ export interface GapReviewRegionLayout {
21
+ nodePosition: [number, number];
22
+ notePosition: [number, number];
23
+ width: number;
24
+ height: number;
25
+ }
26
+ export interface GapReviewRegion {
27
+ fragment: N8nNodeFragment;
28
+ annotation: N8nSdkNode;
29
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { BindingSchema } from '@openapi-flow/core';
2
+ export interface CompileStandaloneValidatorInput {
3
+ schema: BindingSchema;
4
+ globalName: string;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { HttpRequestNodeInput } from './legacy/request-node.js';
2
+ export interface SerializedHttpRequestNodeInput extends HttpRequestNodeInput {
3
+ bodySource: 'literal' | 'materialized';
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import type { WorkflowJSON } from '@n8n/workflow-sdk';
2
+ import type { N8nNodeFragment } from './node-fragment.js';
3
+ import type { N8nSdkNode } from './node-fragment.js';
4
+ import type { WorkflowReviewGap } from '@openapi-flow/core';
5
+ import type { N8nBatchExecutionScope } from './batch-execution.js';
6
+ import type { N8nNativeInputTemplate } from './native-runtime-parameters.js';
7
+ export interface N8nGraphEdge {
8
+ from: string;
9
+ output: string;
10
+ to: string;
11
+ input: string;
12
+ }
13
+ export interface AssembleN8nWorkflowInput {
14
+ id: string;
15
+ name: string;
16
+ nodes: N8nNodeFragment[];
17
+ edges: N8nGraphEdge[];
18
+ starts: string[];
19
+ }
20
+ export interface N8nCompileResult {
21
+ status: 'complete';
22
+ workflow: WorkflowJSON;
23
+ nativeInputTemplate?: N8nNativeInputTemplate;
24
+ }
25
+ export interface BuildN8nWorkflowInput extends AssembleN8nWorkflowInput {
26
+ triggerConnections: 'connected' | 'detached';
27
+ annotations: N8nSdkNode[];
28
+ batchScopes?: N8nBatchExecutionScope[];
29
+ }
30
+ export interface N8nWorkflowJSON extends WorkflowJSON {
31
+ active?: false;
32
+ }
33
+ export interface N8nNeedsReviewResult {
34
+ status: 'needs-review';
35
+ workflow: N8nWorkflowJSON;
36
+ diagnostics: WorkflowReviewGap[];
37
+ nativeInputTemplate?: N8nNativeInputTemplate;
38
+ }
39
+ export type N8nWorkflowResult = N8nCompileResult | N8nNeedsReviewResult;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,121 @@
1
+ import type { WorkflowDraft, WorkflowDraftContext, WorkflowDraftReadiness, DeferredApiInputSlot, DeferredApiInputValues, WorkflowApiMaterial, WorkflowGraphPlan, ApiOperationContract, NativeRuntimeInputSlot, WorkflowRuntimeInputSlot, NativeRuntimeParameterMaterialization, WorkflowDraftCapabilityGap } from '@openapi-flow/core';
2
+ import type { N8nNativeCapability } from './native-capability.js';
3
+ import type { N8nNodeFragment } from './node-fragment.js';
4
+ import type { HttpRequestDeploymentOptions } from './request-deployment.js';
5
+ import type { RequestMaterializationConfig } from './request-materialization.js';
6
+ import type { N8nWorkflowJSON } from './workflow-compilation.js';
7
+ export interface N8nTemplateDeployment extends HttpRequestDeploymentOptions {
8
+ documentId: string;
9
+ }
10
+ export interface SelectN8nTemplateDeploymentsInput {
11
+ deployments: N8nTemplateDeployment[];
12
+ availableDocumentIds: string[];
13
+ selectedDocumentIds: string[];
14
+ }
15
+ export interface N8nTemplateContext extends Omit<WorkflowDraftContext, 'capabilities'> {
16
+ capabilities: N8nNativeCapability[];
17
+ }
18
+ export interface CompileN8nWorkflowTemplateInput {
19
+ draft: WorkflowDraft;
20
+ context: N8nTemplateContext;
21
+ name: string;
22
+ /** Resolve each request's declared references by actual n8n item ancestry. */
23
+ itemMode?: 'linked';
24
+ deployments?: N8nTemplateDeployment[];
25
+ /** Only explicit actual values; omission means no supplied runtime values. */
26
+ inputValues?: DeferredApiInputValues;
27
+ }
28
+ export interface N8nTemplateNodeMappingBase {
29
+ nodeId: string;
30
+ sdkNodeIds: string[];
31
+ entryNodeName: string;
32
+ exitNodeName: string;
33
+ }
34
+ export interface N8nTemplateApiNodeMapping extends N8nTemplateNodeMappingBase {
35
+ kind: 'api';
36
+ operation: N8nTemplateOperationMapping;
37
+ }
38
+ export interface N8nTemplateOperationMapping extends Pick<ApiOperationContract, 'key' | 'method' | 'path'> {
39
+ summary?: string;
40
+ }
41
+ export interface N8nTemplateNativeNodeMapping extends N8nTemplateNodeMappingBase {
42
+ kind: 'native';
43
+ capability: string;
44
+ }
45
+ export type N8nTemplateNodeMapping = N8nTemplateApiNodeMapping | N8nTemplateNativeNodeMapping | N8nTemplateGapNodeMapping;
46
+ export interface N8nTemplateGapNodeMapping extends N8nTemplateNodeMappingBase {
47
+ kind: 'capability-gap';
48
+ gap: WorkflowDraftCapabilityGap;
49
+ inventoryCurrent: boolean;
50
+ }
51
+ export interface N8nTemplateInputSlotMapping {
52
+ editNodeId: string;
53
+ editNodeName: string;
54
+ editParameter: 'jsCode';
55
+ materializerNodeName: string;
56
+ }
57
+ export type N8nTemplateInputSlot = WorkflowRuntimeInputSlot & N8nTemplateInputSlotMapping;
58
+ export interface N8nTemplateDeploymentRequirement {
59
+ callId: string;
60
+ documentId: string;
61
+ fields: string[];
62
+ materializerNodeName: string;
63
+ requestNodeName: string;
64
+ }
65
+ export interface N8nWorkflowTemplateResult {
66
+ revision: number;
67
+ workflow: N8nWorkflowJSON;
68
+ /** Canonical draft state, separate from supplied execution-time values. */
69
+ draftReadiness: WorkflowDraftReadiness;
70
+ requestInputsReady: boolean;
71
+ nativeInputsReady: boolean;
72
+ runtimeInputsReady: boolean;
73
+ /** References supplied, not proof of access to the user's n8n credentials. */
74
+ deploymentConfigured: boolean;
75
+ triggerConnected: boolean;
76
+ inputSlots: N8nTemplateInputSlot[];
77
+ deploymentRequirements: N8nTemplateDeploymentRequirement[];
78
+ nodeMappings: N8nTemplateNodeMapping[];
79
+ guide: string;
80
+ }
81
+ export interface CreateTemplateInputNodesInput {
82
+ revision: number;
83
+ slots: WorkflowRuntimeInputSlot[];
84
+ inputValues: DeferredApiInputValues;
85
+ requests: RequestMaterializationConfig[];
86
+ nativeParameters: NativeRuntimeParameterMaterialization[];
87
+ }
88
+ export interface CreateTemplateGuideInput {
89
+ draft: WorkflowDraft;
90
+ readiness: WorkflowDraftReadiness;
91
+ slots: N8nTemplateInputSlot[];
92
+ mappings: N8nTemplateNodeMapping[];
93
+ deploymentRequirements: N8nTemplateDeploymentRequirement[];
94
+ requestInputsReady: boolean;
95
+ nativeInputsReady: boolean;
96
+ triggerConnected: boolean;
97
+ }
98
+ export interface PrepareTemplateApiFragmentsInput {
99
+ template: CompileN8nWorkflowTemplateInput;
100
+ /** Runtime-bound compilers, separate from original planning/evidence context. */
101
+ capabilities: N8nNativeCapability[];
102
+ materials: WorkflowApiMaterial[];
103
+ slots: DeferredApiInputSlot[];
104
+ plan: WorkflowGraphPlan;
105
+ }
106
+ export interface PreparedTemplateApiFragments {
107
+ apiNodes: N8nNodeFragment[];
108
+ requests: RequestMaterializationConfig[];
109
+ deploymentRequirements: N8nTemplateDeploymentRequirement[];
110
+ }
111
+ export interface CreateTemplateArtifactMappingInput {
112
+ context: WorkflowDraftContext;
113
+ draft: WorkflowDraft;
114
+ materials: WorkflowApiMaterial[];
115
+ fragments: N8nNodeFragment[];
116
+ slots: (DeferredApiInputSlot | NativeRuntimeInputSlot)[];
117
+ }
118
+ export interface TemplateArtifactMapping {
119
+ mappings: N8nTemplateNodeMapping[];
120
+ inputSlots: N8nTemplateInputSlot[];
121
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { Metafile } from 'esbuild';
2
+ /** Preserve bundled dependencies' license notices in generated workflow code. */
3
+ export declare function bundledLicenseBanner(metadata: Metafile, generatedFrom: string[]): string;