n8n 2.43.4 → 2.44.1

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 (1400) hide show
  1. package/dist/abstract-server.d.ts +2 -0
  2. package/dist/abstract-server.js +13 -2
  3. package/dist/abstract-server.js.map +1 -1
  4. package/dist/agent-library-bundle.js +8 -0
  5. package/dist/auth/auth.service.js +1 -1
  6. package/dist/auth/auth.service.js.map +1 -1
  7. package/dist/binary-data/binary-data-access.service.d.ts +4 -1
  8. package/dist/binary-data/binary-data-access.service.js +20 -6
  9. package/dist/binary-data/binary-data-access.service.js.map +1 -1
  10. package/dist/build.tsbuildinfo +1 -1
  11. package/dist/chat/chat-execution-manager.js +1 -0
  12. package/dist/chat/chat-execution-manager.js.map +1 -1
  13. package/dist/commands/base-command.d.ts +4 -0
  14. package/dist/commands/base-command.js +10 -3
  15. package/dist/commands/base-command.js.map +1 -1
  16. package/dist/commands/engine.d.ts +1 -0
  17. package/dist/commands/engine.js +16 -0
  18. package/dist/commands/engine.js.map +1 -1
  19. package/dist/commands/start.js +0 -4
  20. package/dist/commands/start.js.map +1 -1
  21. package/dist/commands/webhook.js +1 -0
  22. package/dist/commands/webhook.js.map +1 -1
  23. package/dist/controllers/e2e.controller.js +1 -0
  24. package/dist/controllers/e2e.controller.js.map +1 -1
  25. package/dist/crash-journal.js +1 -1
  26. package/dist/crash-journal.js.map +1 -1
  27. package/dist/credentials/credential-options.controller.d.ts +10 -0
  28. package/dist/credentials/credential-options.controller.js +64 -0
  29. package/dist/credentials/credential-options.controller.js.map +1 -0
  30. package/dist/credentials/credential-options.service.d.ts +21 -0
  31. package/dist/credentials/credential-options.service.js +105 -0
  32. package/dist/credentials/credential-options.service.js.map +1 -0
  33. package/dist/credentials/credentials.service.d.ts +12 -2
  34. package/dist/credentials/credentials.service.ee.d.ts +3 -1
  35. package/dist/credentials/credentials.service.ee.js +8 -2
  36. package/dist/credentials/credentials.service.ee.js.map +1 -1
  37. package/dist/credentials/credentials.service.js +44 -18
  38. package/dist/credentials/credentials.service.js.map +1 -1
  39. package/dist/credentials/pending-authorization-cleanup.task.js +5 -1
  40. package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
  41. package/dist/errors/job-returned-to-queue.error.d.ts +5 -0
  42. package/dist/errors/job-returned-to-queue.error.js +12 -0
  43. package/dist/errors/job-returned-to-queue.error.js.map +1 -0
  44. package/dist/errors/uninspectable-subworkflow-source.error.d.ts +5 -0
  45. package/dist/errors/uninspectable-subworkflow-source.error.js +11 -0
  46. package/dist/errors/uninspectable-subworkflow-source.error.js.map +1 -0
  47. package/dist/events/maps/relay.event-map.d.ts +24 -2
  48. package/dist/events/maps/system-task-metrics.event-map.d.ts +1 -1
  49. package/dist/events/maps/system-task-metrics.event-map.js.map +1 -1
  50. package/dist/events/relays/telemetry.event-relay.d.ts +2 -0
  51. package/dist/events/relays/telemetry.event-relay.js +66 -2
  52. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  53. package/dist/executions/engine-v2-execution-reader.service.d.ts +4 -0
  54. package/dist/executions/engine-v2-execution-reader.service.js +11 -0
  55. package/dist/executions/engine-v2-execution-reader.service.js.map +1 -1
  56. package/dist/executions/enqueued-execution-recovery.service.js +5 -1
  57. package/dist/executions/enqueued-execution-recovery.service.js.map +1 -1
  58. package/dist/executions/execution-crash.service.d.ts +3 -1
  59. package/dist/executions/execution-crash.service.js +4 -4
  60. package/dist/executions/execution-crash.service.js.map +1 -1
  61. package/dist/executions/execution-id.d.ts +1 -0
  62. package/dist/executions/execution-id.js +4 -1
  63. package/dist/executions/execution-id.js.map +1 -1
  64. package/dist/executions/execution-persistence.js +1 -1
  65. package/dist/executions/execution-persistence.js.map +1 -1
  66. package/dist/executions/execution-recovery.service.d.ts +1 -0
  67. package/dist/executions/execution-recovery.service.js +17 -5
  68. package/dist/executions/execution-recovery.service.js.map +1 -1
  69. package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +3 -1
  70. package/dist/executions/pre-execution-checks/credentials-permission-checker.js +34 -5
  71. package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
  72. package/dist/interfaces.d.ts +4 -1
  73. package/dist/license/license-renewal.task.d.ts +3 -0
  74. package/dist/license/license-renewal.task.js +4 -1
  75. package/dist/license/license-renewal.task.js.map +1 -1
  76. package/dist/license.js +14 -3
  77. package/dist/license.js.map +1 -1
  78. package/dist/load-nodes-and-credentials.d.ts +6 -0
  79. package/dist/load-nodes-and-credentials.js +28 -12
  80. package/dist/load-nodes-and-credentials.js.map +1 -1
  81. package/dist/manual-execution.service.d.ts +5 -3
  82. package/dist/manual-execution.service.js +7 -6
  83. package/dist/manual-execution.service.js.map +1 -1
  84. package/dist/metrics/prometheus/active-workflow-metrics.service.d.ts +3 -5
  85. package/dist/metrics/prometheus/active-workflow-metrics.service.js +6 -13
  86. package/dist/metrics/prometheus/active-workflow-metrics.service.js.map +1 -1
  87. package/dist/metrics/prometheus/cached-metric-query.d.ts +14 -3
  88. package/dist/metrics/prometheus/cached-metric-query.js +59 -7
  89. package/dist/metrics/prometheus/cached-metric-query.js.map +1 -1
  90. package/dist/metrics/prometheus/constant.d.ts +1 -0
  91. package/dist/metrics/prometheus/constant.js +2 -1
  92. package/dist/metrics/prometheus/constant.js.map +1 -1
  93. package/dist/metrics/prometheus/database-metric-query.service.d.ts +39 -0
  94. package/dist/metrics/prometheus/database-metric-query.service.js +88 -0
  95. package/dist/metrics/prometheus/database-metric-query.service.js.map +1 -0
  96. package/dist/metrics/prometheus/db-pool-metrics.service.js +21 -0
  97. package/dist/metrics/prometheus/db-pool-metrics.service.js.map +1 -1
  98. package/dist/metrics/prometheus/prometheus.service.d.ts +3 -1
  99. package/dist/metrics/prometheus/prometheus.service.js +7 -3
  100. package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
  101. package/dist/metrics/prometheus/scheduler-metrics.service.d.ts +7 -5
  102. package/dist/metrics/prometheus/scheduler-metrics.service.js +30 -23
  103. package/dist/metrics/prometheus/scheduler-metrics.service.js.map +1 -1
  104. package/dist/metrics/prometheus/system-task-metrics.service.d.ts +4 -6
  105. package/dist/metrics/prometheus/system-task-metrics.service.js +9 -22
  106. package/dist/metrics/prometheus/system-task-metrics.service.js.map +1 -1
  107. package/dist/metrics/prometheus/workflow-info-metrics.service.d.ts +3 -5
  108. package/dist/metrics/prometheus/workflow-info-metrics.service.js +14 -20
  109. package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
  110. package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +4 -5
  111. package/dist/metrics/prometheus/workflow-publication-metrics.service.js +10 -22
  112. package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
  113. package/dist/metrics/prometheus/workflow-statistics-metrics.service.d.ts +3 -5
  114. package/dist/metrics/prometheus/workflow-statistics-metrics.service.js +6 -13
  115. package/dist/metrics/prometheus/workflow-statistics-metrics.service.js.map +1 -1
  116. package/dist/middlewares/content-security-policy.js +45 -10
  117. package/dist/middlewares/content-security-policy.js.map +1 -1
  118. package/dist/middlewares/list-query/dtos/workflow.filter.dto.d.ts +2 -2
  119. package/dist/middlewares/list-query/dtos/workflow.filter.dto.js +6 -9
  120. package/dist/middlewares/list-query/dtos/workflow.filter.dto.js.map +1 -1
  121. package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +8 -2
  122. package/dist/modules/agent-evals/agent-eval-case-generation.service.js +113 -14
  123. package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -1
  124. package/dist/modules/agent-evals/agent-eval-fix-suggestion.d.ts +21 -0
  125. package/dist/modules/agent-evals/agent-eval-fix-suggestion.js +55 -0
  126. package/dist/modules/agent-evals/agent-eval-fix-suggestion.js.map +1 -0
  127. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.d.ts +22 -0
  128. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js +108 -0
  129. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js.map +1 -0
  130. package/dist/modules/agent-evals/agent-eval-judge.d.ts +22 -0
  131. package/dist/modules/agent-evals/agent-eval-judge.js +36 -0
  132. package/dist/modules/agent-evals/agent-eval-judge.js.map +1 -0
  133. package/dist/modules/agent-evals/agent-eval-record-mappers.js +8 -0
  134. package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -1
  135. package/dist/modules/agent-evals/agent-eval-runner.service.d.ts +12 -2
  136. package/dist/modules/agent-evals/agent-eval-runner.service.js +102 -2
  137. package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -1
  138. package/dist/modules/agent-evals/agent-eval.service.d.ts +20 -4
  139. package/dist/modules/agent-evals/agent-eval.service.js +204 -3
  140. package/dist/modules/agent-evals/agent-eval.service.js.map +1 -1
  141. package/dist/modules/agent-evals/agent-evals.controller.d.ts +16 -2
  142. package/dist/modules/agent-evals/agent-evals.controller.js +112 -3
  143. package/dist/modules/agent-evals/agent-evals.controller.js.map +1 -1
  144. package/dist/modules/agent-evals/case-generation/case-generation-prompt.d.ts +18 -1
  145. package/dist/modules/agent-evals/case-generation/case-generation-prompt.js +47 -9
  146. package/dist/modules/agent-evals/case-generation/case-generation-prompt.js.map +1 -1
  147. package/dist/modules/agents/agent-budget-alert.service.d.ts +21 -0
  148. package/dist/modules/agents/agent-budget-alert.service.js +82 -0
  149. package/dist/modules/agents/agent-budget-alert.service.js.map +1 -0
  150. package/dist/modules/agents/agent-chat-execution.service.d.ts +6 -2
  151. package/dist/modules/agents/agent-chat-execution.service.js +13 -15
  152. package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
  153. package/dist/modules/agents/agent-chat.controller.d.ts +36 -0
  154. package/dist/modules/agents/agent-chat.controller.js +149 -54
  155. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  156. package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +5 -2
  157. package/dist/modules/agents/agent-checkpoint-pruning.task.js +7 -4
  158. package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
  159. package/dist/modules/agents/agent-config-preparation.service.d.ts +325 -0
  160. package/dist/modules/agents/agent-config-preparation.service.js +100 -0
  161. package/dist/modules/agents/agent-config-preparation.service.js.map +1 -0
  162. package/dist/modules/agents/agent-config.service.d.ts +15 -18
  163. package/dist/modules/agents/agent-config.service.js +58 -129
  164. package/dist/modules/agents/agent-config.service.js.map +1 -1
  165. package/dist/modules/agents/agent-context-readers.js +1 -2
  166. package/dist/modules/agents/agent-context-readers.js.map +1 -1
  167. package/dist/modules/agents/agent-custom-tools.service.d.ts +8 -9
  168. package/dist/modules/agents/agent-custom-tools.service.js +14 -19
  169. package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
  170. package/dist/modules/agents/agent-definition.service.d.ts +19 -0
  171. package/dist/modules/agents/agent-definition.service.js +75 -0
  172. package/dist/modules/agents/agent-definition.service.js.map +1 -0
  173. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +10 -8
  174. package/dist/modules/agents/agent-execution-orchestrator.service.js +250 -146
  175. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  176. package/dist/modules/agents/agent-execution-update-broadcaster.js +2 -1
  177. package/dist/modules/agents/agent-execution-update-broadcaster.js.map +1 -1
  178. package/dist/modules/agents/agent-execution.service.d.ts +9 -1
  179. package/dist/modules/agents/agent-execution.service.js +22 -1
  180. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  181. package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -1
  182. package/dist/modules/agents/agent-integration-persistence.service.js +23 -15
  183. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  184. package/dist/modules/agents/agent-integrations.controller.d.ts +12 -2
  185. package/dist/modules/agents/agent-integrations.controller.js +49 -4
  186. package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
  187. package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +12 -0
  188. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +36 -0
  189. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -0
  190. package/dist/modules/agents/agent-interrupted-execution-sweeper.d.ts +3 -2
  191. package/dist/modules/agents/agent-interrupted-execution-sweeper.js +20 -7
  192. package/dist/modules/agents/agent-interrupted-execution-sweeper.js.map +1 -1
  193. package/dist/modules/agents/agent-message-queue-consumer.service.js +2 -5
  194. package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
  195. package/dist/modules/agents/agent-message-queue.service.d.ts +3 -1
  196. package/dist/modules/agents/agent-message-queue.service.js +7 -5
  197. package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
  198. package/dist/modules/agents/agent-message-steering.service.d.ts +2 -1
  199. package/dist/modules/agents/agent-message-steering.service.js +17 -9
  200. package/dist/modules/agents/agent-message-steering.service.js.map +1 -1
  201. package/dist/modules/agents/agent-model-catalog.service.js +5 -6
  202. package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
  203. package/dist/modules/agents/agent-modification-telemetry.service.d.ts +33 -3
  204. package/dist/modules/agents/agent-modification-telemetry.service.js +11 -8
  205. package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
  206. package/dist/modules/agents/agent-n8n-chat-unavailable.error.d.ts +4 -0
  207. package/dist/modules/agents/agent-n8n-chat-unavailable.error.js +11 -0
  208. package/dist/modules/agents/agent-n8n-chat-unavailable.error.js.map +1 -0
  209. package/dist/modules/agents/agent-policy.service.d.ts +10 -0
  210. package/dist/modules/agents/agent-policy.service.js +44 -0
  211. package/dist/modules/agents/agent-policy.service.js.map +1 -0
  212. package/dist/modules/agents/agent-publish.service.d.ts +17 -8
  213. package/dist/modules/agents/agent-publish.service.js +95 -113
  214. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  215. package/dist/modules/agents/agent-push-recipients.service.d.ts +1 -0
  216. package/dist/modules/agents/agent-push-recipients.service.js +5 -2
  217. package/dist/modules/agents/agent-push-recipients.service.js.map +1 -1
  218. package/dist/modules/agents/agent-runnable-state.service.d.ts +3 -1
  219. package/dist/modules/agents/agent-runnable-state.service.js +5 -3
  220. package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
  221. package/dist/modules/agents/agent-runtime-cache.service.d.ts +3 -1
  222. package/dist/modules/agents/agent-runtime-cache.service.js +7 -7
  223. package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
  224. package/dist/modules/agents/agent-runtime-instrumentation.d.ts +6 -0
  225. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +2 -2
  226. package/dist/modules/agents/agent-runtime-reconstruction.service.js +23 -16
  227. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  228. package/dist/modules/agents/agent-save-completion.service.d.ts +14 -0
  229. package/dist/modules/agents/agent-save-completion.service.js +51 -0
  230. package/dist/modules/agents/agent-save-completion.service.js.map +1 -0
  231. package/dist/modules/agents/agent-setup-completion.service.d.ts +2 -1
  232. package/dist/modules/agents/agent-setup-completion.service.js +5 -3
  233. package/dist/modules/agents/agent-setup-completion.service.js.map +1 -1
  234. package/dist/modules/agents/agent-skill-refs.service.d.ts +12 -0
  235. package/dist/modules/agents/agent-skill-refs.service.js +52 -0
  236. package/dist/modules/agents/agent-skill-refs.service.js.map +1 -0
  237. package/dist/modules/agents/agent-skills.service.d.ts +14 -8
  238. package/dist/modules/agents/agent-skills.service.js +64 -41
  239. package/dist/modules/agents/agent-skills.service.js.map +1 -1
  240. package/dist/modules/agents/agent-sse-stream.d.ts +1 -0
  241. package/dist/modules/agents/agent-sse-stream.js +15 -0
  242. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  243. package/dist/modules/agents/agent-task.service.d.ts +12 -7
  244. package/dist/modules/agents/agent-task.service.js +35 -31
  245. package/dist/modules/agents/agent-task.service.js.map +1 -1
  246. package/dist/modules/agents/agent-telemetry.d.ts +2 -2
  247. package/dist/modules/agents/agent-telemetry.js +3 -2
  248. package/dist/modules/agents/agent-telemetry.js.map +1 -1
  249. package/dist/modules/agents/agent-test-run.service.d.ts +4 -2
  250. package/dist/modules/agents/agent-test-run.service.js +2 -2
  251. package/dist/modules/agents/agent-test-run.service.js.map +1 -1
  252. package/dist/modules/agents/agent-threads.controller.js +2 -1
  253. package/dist/modules/agents/agent-threads.controller.js.map +1 -1
  254. package/dist/modules/agents/agent-tool-approval.service.d.ts +1 -1
  255. package/dist/modules/agents/agent-tool-approval.service.js +2 -1
  256. package/dist/modules/agents/agent-tool-approval.service.js.map +1 -1
  257. package/dist/modules/agents/agent-turn-execution.service.d.ts +4 -4
  258. package/dist/modules/agents/agent-turn-execution.service.js +27 -25
  259. package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
  260. package/dist/modules/agents/agent-validation.service.d.ts +11 -7
  261. package/dist/modules/agents/agent-validation.service.js +60 -30
  262. package/dist/modules/agents/agent-validation.service.js.map +1 -1
  263. package/dist/modules/agents/agent-workflow-execution.service.d.ts +13 -5
  264. package/dist/modules/agents/agent-workflow-execution.service.js +44 -20
  265. package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
  266. package/dist/modules/agents/agent-workflow-tool-resume.service.js +2 -3
  267. package/dist/modules/agents/agent-workflow-tool-resume.service.js.map +1 -1
  268. package/dist/modules/agents/agents-config.controller.d.ts +16 -0
  269. package/dist/modules/agents/agents-list.controller.d.ts +4 -1
  270. package/dist/modules/agents/agents-list.controller.js +45 -1
  271. package/dist/modules/agents/agents-list.controller.js.map +1 -1
  272. package/dist/modules/agents/agents.controller.js +1 -0
  273. package/dist/modules/agents/agents.controller.js.map +1 -1
  274. package/dist/modules/agents/agents.module.d.ts +1 -3
  275. package/dist/modules/agents/agents.module.js +9 -25
  276. package/dist/modules/agents/agents.module.js.map +1 -1
  277. package/dist/modules/agents/agents.service.d.ts +22 -6
  278. package/dist/modules/agents/agents.service.js +65 -15
  279. package/dist/modules/agents/agents.service.js.map +1 -1
  280. package/dist/modules/agents/background/agent-background-job.service.d.ts +3 -3
  281. package/dist/modules/agents/background/agent-background-job.service.js +39 -10
  282. package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
  283. package/dist/modules/agents/background/agent-wake.service.js +13 -5
  284. package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
  285. package/dist/modules/agents/background/background-job-tools.d.ts +2 -2
  286. package/dist/modules/agents/background/background-job-tools.js +9 -58
  287. package/dist/modules/agents/background/background-job-tools.js.map +1 -1
  288. package/dist/modules/agents/budget-guardrail.d.ts +1 -0
  289. package/dist/modules/agents/budget-guardrail.js +42 -1
  290. package/dist/modules/agents/budget-guardrail.js.map +1 -1
  291. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +5 -5
  292. package/dist/modules/agents/builder/agents-builder-prompts.js +52 -31
  293. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  294. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -1
  295. package/dist/modules/agents/builder/agents-builder-tools.service.js +189 -89
  296. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  297. package/dist/modules/agents/builder/builder-model-live-lookup.service.js +5 -1
  298. package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
  299. package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +2 -2
  300. package/dist/modules/agents/builder/model-lookup.types.d.ts +1 -0
  301. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +25 -12
  302. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  303. package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +1 -1
  304. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +1 -1
  305. package/dist/modules/agents/builder/skills/external-services.skill.js +4 -4
  306. package/dist/modules/agents/builder/skills/node-tools.skill.js +4 -4
  307. package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
  308. package/dist/modules/agents/builder/skills/target-skills.skill.js +14 -8
  309. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
  310. package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +9 -3
  311. package/dist/modules/agents/builder/verify-mcp-server.tool.js +16 -3
  312. package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
  313. package/dist/modules/agents/entities/agent-history.entity.d.ts +2 -2
  314. package/dist/modules/agents/entities/agent-history.entity.js.map +1 -1
  315. package/dist/modules/agents/entities/agent.entity.d.ts +2 -2
  316. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  317. package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +3 -1
  318. package/dist/modules/agents/instance-ai-agent-context.adapter.js +5 -3
  319. package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +1 -1
  320. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +4 -1
  321. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
  322. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
  323. package/dist/modules/agents/integrations/agent-chat-bridge.js +67 -20
  324. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  325. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +18 -3
  326. package/dist/modules/agents/integrations/agent-chat-integration.js +1 -0
  327. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  328. package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +4 -0
  329. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +81 -24
  330. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
  331. package/dist/modules/agents/integrations/channel-rate-limit.d.ts +6 -0
  332. package/dist/modules/agents/integrations/channel-rate-limit.js +11 -1
  333. package/dist/modules/agents/integrations/channel-rate-limit.js.map +1 -1
  334. package/dist/modules/agents/integrations/component-mapper.d.ts +6 -0
  335. package/dist/modules/agents/integrations/component-mapper.js +16 -3
  336. package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
  337. package/dist/modules/agents/integrations/esm-loader.d.ts +1 -0
  338. package/dist/modules/agents/integrations/esm-loader.js +4 -0
  339. package/dist/modules/agents/integrations/esm-loader.js.map +1 -1
  340. package/dist/modules/agents/integrations/integration-helpers.d.ts +1 -0
  341. package/dist/modules/agents/integrations/integration-helpers.js +7 -0
  342. package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
  343. package/dist/modules/agents/integrations/integration-tool-execution.d.ts +1 -0
  344. package/dist/modules/agents/integrations/integration-tool-execution.js +13 -0
  345. package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
  346. package/dist/modules/agents/integrations/integration-tool-factory.js +1 -0
  347. package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
  348. package/dist/modules/agents/integrations/n8n-memory.d.ts +7 -0
  349. package/dist/modules/agents/integrations/n8n-memory.js +24 -10
  350. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  351. package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +2 -2
  352. package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +2 -1
  353. package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
  354. package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +15 -1
  355. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +63 -2
  356. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
  357. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +11 -0
  358. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +5 -3
  359. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
  360. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  361. package/dist/modules/agents/integrations/platforms/whatsapp-integration.d.ts +43 -0
  362. package/dist/modules/agents/integrations/platforms/whatsapp-integration.js +337 -0
  363. package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +1 -0
  364. package/dist/modules/agents/json-config/agent-config-composition.d.ts +2 -1
  365. package/dist/modules/agents/json-config/agent-config-composition.js +3 -2
  366. package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -1
  367. package/dist/modules/agents/json-config/agent-document.d.ts +7 -0
  368. package/dist/modules/agents/json-config/agent-document.js +13 -0
  369. package/dist/modules/agents/json-config/agent-document.js.map +1 -0
  370. package/dist/modules/agents/json-config/credential-field-mapping.d.ts +1 -1
  371. package/dist/modules/agents/json-config/credential-field-mapping.js +33 -8
  372. package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
  373. package/dist/modules/agents/json-config/mcp-client-factory.js +6 -0
  374. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
  375. package/dist/modules/agents/json-config/model-config.js +13 -1
  376. package/dist/modules/agents/json-config/model-config.js.map +1 -1
  377. package/dist/modules/agents/json-config/prune-missing-config-references.d.ts +5 -0
  378. package/dist/modules/agents/json-config/prune-missing-config-references.js +20 -0
  379. package/dist/modules/agents/json-config/prune-missing-config-references.js.map +1 -0
  380. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +8 -94
  381. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
  382. package/dist/modules/agents/plans/agent-plan-tools.js +3 -3
  383. package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
  384. package/dist/modules/agents/register-favorite-resolver.js +2 -2
  385. package/dist/modules/agents/register-favorite-resolver.js.map +1 -1
  386. package/dist/modules/agents/repositories/agent-credential-dependency.repository.js +4 -1
  387. package/dist/modules/agents/repositories/agent-credential-dependency.repository.js.map +1 -1
  388. package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +10 -0
  389. package/dist/modules/agents/repositories/agent-execution-thread.repository.js +67 -8
  390. package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
  391. package/dist/modules/agents/repositories/agent-history.repository.d.ts +8 -9
  392. package/dist/modules/agents/repositories/agent-history.repository.js +9 -8
  393. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
  394. package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +15 -2
  395. package/dist/modules/agents/repositories/agent-message-queue.repository.js +9 -2
  396. package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
  397. package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +6 -5
  398. package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +9 -8
  399. package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -1
  400. package/dist/modules/agents/repositories/agent-task.repository.d.ts +9 -4
  401. package/dist/modules/agents/repositories/agent-task.repository.js +40 -6
  402. package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -1
  403. package/dist/modules/agents/repositories/agent-thread.repository.d.ts +6 -0
  404. package/dist/modules/agents/repositories/agent-thread.repository.js +20 -0
  405. package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -1
  406. package/dist/modules/agents/repositories/agent.repository.d.ts +23 -9
  407. package/dist/modules/agents/repositories/agent.repository.js +118 -15
  408. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  409. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +1 -0
  410. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +2 -1
  411. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
  412. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +3 -1
  413. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +8 -5
  414. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
  415. package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
  416. package/dist/modules/agents/tools/node-tool-factory.js +3 -14
  417. package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
  418. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +4 -2
  419. package/dist/modules/agents/tools/workflow-tool-factory.js +39 -13
  420. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  421. package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +5 -1
  422. package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -1
  423. package/dist/modules/agents/types/agent-queued-message.d.ts +1 -0
  424. package/dist/modules/agents/types/agent-queued-message.js +3 -1
  425. package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
  426. package/dist/modules/agents/utils/agent-config-hash.d.ts +1 -0
  427. package/dist/modules/agents/utils/agent-config-hash.js +4 -0
  428. package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
  429. package/dist/modules/agents/utils/agent-definition.d.ts +329 -0
  430. package/dist/modules/agents/utils/agent-definition.js +17 -0
  431. package/dist/modules/agents/utils/agent-definition.js.map +1 -0
  432. package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -3
  433. package/dist/modules/agents/utils/agent-draft.utils.js +2 -2
  434. package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
  435. package/dist/modules/agents/utils/agent-execution-counter.d.ts +2 -1
  436. package/dist/modules/agents/utils/agent-execution-counter.js +4 -1
  437. package/dist/modules/agents/utils/agent-execution-counter.js.map +1 -1
  438. package/dist/modules/agents/utils/agent-missing-skill-ids.d.ts +3 -2
  439. package/dist/modules/agents/utils/agent-missing-skill-ids.js +2 -2
  440. package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -1
  441. package/dist/modules/agents/utils/agent-published-snapshot.d.ts +8 -1
  442. package/dist/modules/agents/utils/agent-published-snapshot.js +21 -7
  443. package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
  444. package/dist/modules/agents/utils/agent-ref.d.ts +8 -0
  445. package/dist/modules/agents/utils/agent-ref.js +12 -0
  446. package/dist/modules/agents/utils/agent-ref.js.map +1 -0
  447. package/dist/modules/agents/utils/agent-thread-access.d.ts +3 -1
  448. package/dist/modules/agents/utils/agent-thread-access.js +7 -0
  449. package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
  450. package/dist/modules/agents/utils/extract-agent-credential-ids.d.ts +1 -2
  451. package/dist/modules/agents/utils/extract-agent-credential-ids.js +6 -33
  452. package/dist/modules/agents/utils/extract-agent-credential-ids.js.map +1 -1
  453. package/dist/modules/agents/utils/extract-agent-workflow-refs.d.ts +1 -1
  454. package/dist/modules/agents/utils/extract-agent-workflow-refs.js.map +1 -1
  455. package/dist/modules/agents/utils/parse-thread-list-limit.d.ts +1 -0
  456. package/dist/modules/agents/utils/parse-thread-list-limit.js +7 -0
  457. package/dist/modules/agents/utils/parse-thread-list-limit.js.map +1 -0
  458. package/dist/modules/agents/utils/skill-instruction-edits.d.ts +5 -0
  459. package/dist/modules/agents/utils/skill-instruction-edits.js +15 -0
  460. package/dist/modules/agents/utils/skill-instruction-edits.js.map +1 -0
  461. package/dist/modules/agents/utils/visit-agent-credential-references.d.ts +8 -0
  462. package/dist/modules/agents/utils/visit-agent-credential-references.js +67 -0
  463. package/dist/modules/agents/utils/visit-agent-credential-references.js.map +1 -0
  464. package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +17 -5
  465. package/dist/modules/breaking-changes/breaking-changes.controller.js +94 -8
  466. package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
  467. package/dist/modules/breaking-changes/breaking-changes.module.d.ts +1 -1
  468. package/dist/modules/breaking-changes/breaking-changes.module.js +2 -1
  469. package/dist/modules/breaking-changes/breaking-changes.module.js.map +1 -1
  470. package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.d.ts +14 -0
  471. package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js +57 -0
  472. package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js.map +1 -0
  473. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +12 -6
  474. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +104 -30
  475. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
  476. package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.d.ts +14 -0
  477. package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js +79 -0
  478. package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js.map +1 -0
  479. package/dist/modules/breaking-changes/migrations/index.js +1 -2
  480. package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
  481. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.d.ts +17 -0
  482. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js +64 -0
  483. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js.map +1 -0
  484. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.d.ts +16 -0
  485. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js +113 -0
  486. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js.map +1 -0
  487. package/dist/modules/breaking-changes/owners/workflow-owner.d.ts +3 -0
  488. package/dist/modules/breaking-changes/owners/workflow-owner.js +13 -0
  489. package/dist/modules/breaking-changes/owners/workflow-owner.js.map +1 -0
  490. package/dist/modules/breaking-changes/query/migration-finding-query.service.d.ts +16 -5
  491. package/dist/modules/breaking-changes/query/migration-finding-query.service.js +51 -16
  492. package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
  493. package/dist/modules/breaking-changes/rules/index.d.ts +0 -1
  494. package/dist/modules/breaking-changes/rules/index.js +0 -1
  495. package/dist/modules/breaking-changes/rules/index.js.map +1 -1
  496. package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -1
  497. package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
  498. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.d.ts +7 -3
  499. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +22 -15
  500. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
  501. package/dist/modules/breaking-changes/triage/migration-finding-triage.service.d.ts +11 -0
  502. package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js +47 -0
  503. package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js.map +1 -0
  504. package/dist/modules/chat-hub/chat-hub-agent.service.js +26 -20
  505. package/dist/modules/chat-hub/chat-hub-agent.service.js.map +1 -1
  506. package/dist/modules/chat-hub/chat-hub-execution.service.js +1 -0
  507. package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
  508. package/dist/modules/chat-hub/chat-hub-tool.repository.d.ts +1 -0
  509. package/dist/modules/chat-hub/chat-hub-tool.repository.js +11 -18
  510. package/dist/modules/chat-hub/chat-hub-tool.repository.js.map +1 -1
  511. package/dist/modules/chat-hub/chat-hub-tool.service.d.ts +3 -2
  512. package/dist/modules/chat-hub/chat-hub-tool.service.js +15 -4
  513. package/dist/modules/chat-hub/chat-hub-tool.service.js.map +1 -1
  514. package/dist/modules/chat-hub/chat-hub-workflow.service.d.ts +1 -0
  515. package/dist/modules/chat-hub/chat-hub-workflow.service.js +13 -1
  516. package/dist/modules/chat-hub/chat-hub-workflow.service.js.map +1 -1
  517. package/dist/modules/chat-hub/chat-hub.controller.js +2 -3
  518. package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
  519. package/dist/modules/chat-hub/chat-hub.service.js +8 -5
  520. package/dist/modules/chat-hub/chat-hub.service.js.map +1 -1
  521. package/dist/modules/community-packages/community-node.command.d.ts +1 -1
  522. package/dist/modules/data-table/data-table-column.repository.d.ts +12 -4
  523. package/dist/modules/data-table/data-table-column.repository.js +51 -6
  524. package/dist/modules/data-table/data-table-column.repository.js.map +1 -1
  525. package/dist/modules/data-table/data-table-file-cleanup.service.d.ts +5 -7
  526. package/dist/modules/data-table/data-table-file-cleanup.service.js +35 -37
  527. package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
  528. package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +14 -0
  529. package/dist/modules/data-table/data-table-file-cleanup.task.js +37 -0
  530. package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -0
  531. package/dist/modules/data-table/data-table.module.d.ts +2 -1
  532. package/dist/modules/data-table/data-table.module.js +4 -4
  533. package/dist/modules/data-table/data-table.module.js.map +1 -1
  534. package/dist/modules/data-table/data-table.repository.d.ts +1 -1
  535. package/dist/modules/data-table/data-table.repository.js +2 -1
  536. package/dist/modules/data-table/data-table.repository.js.map +1 -1
  537. package/dist/modules/data-table/data-table.service.d.ts +8 -1
  538. package/dist/modules/data-table/data-table.service.js +11 -2
  539. package/dist/modules/data-table/data-table.service.js.map +1 -1
  540. package/dist/modules/data-table/register-favorite-resolver.js +2 -2
  541. package/dist/modules/data-table/register-favorite-resolver.js.map +1 -1
  542. package/dist/modules/data-table/utils/pair-columns.d.ts +27 -0
  543. package/dist/modules/data-table/utils/pair-columns.js +48 -0
  544. package/dist/modules/data-table/utils/pair-columns.js.map +1 -0
  545. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +40 -52
  546. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +55 -40
  547. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
  548. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +1 -4
  549. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +2 -15
  550. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
  551. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +13 -0
  552. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +36 -0
  553. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -0
  554. package/dist/modules/external-secrets.ee/external-secrets.config.js +1 -1
  555. package/dist/modules/external-secrets.ee/external-secrets.config.js.map +1 -1
  556. package/dist/modules/external-secrets.ee/external-secrets.module.d.ts +1 -0
  557. package/dist/modules/external-secrets.ee/external-secrets.module.js +4 -0
  558. package/dist/modules/external-secrets.ee/external-secrets.module.js.map +1 -1
  559. package/dist/modules/external-secrets.ee/providers/one-password.js +1 -1
  560. package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
  561. package/dist/modules/external-secrets.ee/secrets-cache.service.d.ts +4 -2
  562. package/dist/modules/external-secrets.ee/secrets-cache.service.js +25 -8
  563. package/dist/modules/external-secrets.ee/secrets-cache.service.js.map +1 -1
  564. package/dist/modules/favorites/favorites.service.d.ts +1 -1
  565. package/dist/modules/favorites/favorites.service.js +2 -2
  566. package/dist/modules/favorites/favorites.service.js.map +1 -1
  567. package/dist/modules/inbound-auth-core/authentication-pipeline.d.ts +11 -0
  568. package/dist/modules/inbound-auth-core/authentication-pipeline.js +50 -0
  569. package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -0
  570. package/dist/modules/inbound-auth-core/authentication.service.d.ts +12 -0
  571. package/dist/modules/inbound-auth-core/authentication.service.js +86 -0
  572. package/dist/modules/inbound-auth-core/authentication.service.js.map +1 -0
  573. package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.d.ts +3 -0
  574. package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js +12 -0
  575. package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js.map +1 -1
  576. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.d.ts +20 -3
  577. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js +70 -2
  578. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js.map +1 -1
  579. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.d.ts +15 -3
  580. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +58 -2
  581. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
  582. package/dist/modules/inbound-auth-core/grant-authorization.d.ts +4 -0
  583. package/dist/modules/inbound-auth-core/grant-authorization.js +10 -0
  584. package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -0
  585. package/dist/modules/inbound-auth-core/identity/external-identity.d.ts +3 -0
  586. package/dist/modules/inbound-auth-core/identity/external-identity.js +86 -0
  587. package/dist/modules/inbound-auth-core/identity/external-identity.js.map +1 -0
  588. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +27 -0
  589. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +287 -0
  590. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -0
  591. package/dist/modules/inbound-auth-core/inbound-auth-core.module.d.ts +1 -0
  592. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +30 -20
  593. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
  594. package/dist/modules/inbound-auth-core/key.utils.d.ts +2 -0
  595. package/dist/modules/inbound-auth-core/key.utils.js +18 -0
  596. package/dist/modules/inbound-auth-core/key.utils.js.map +1 -0
  597. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +16 -0
  598. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +171 -0
  599. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -0
  600. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +52 -0
  601. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +74 -0
  602. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -0
  603. package/dist/modules/inbound-auth-core/trusted-source-discovery.service.d.ts +19 -0
  604. package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js +141 -0
  605. package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js.map +1 -0
  606. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +12 -0
  607. package/dist/modules/{insights/insights-compaction.task.js → inbound-auth-core/trusted-source-discovery.task.js} +14 -16
  608. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -0
  609. package/dist/modules/inbound-auth-core/trusted-source.gate.d.ts +13 -0
  610. package/dist/modules/inbound-auth-core/trusted-source.gate.js +53 -0
  611. package/dist/modules/inbound-auth-core/trusted-source.gate.js.map +1 -0
  612. package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +18 -16
  613. package/dist/modules/inbound-auth-core/trusted-source.store.js +107 -7
  614. package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
  615. package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +2 -1
  616. package/dist/modules/instance-ai/eval/agent-execution.service.js +42 -37
  617. package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
  618. package/dist/modules/instance-ai/eval/execution.service.d.ts +7 -2
  619. package/dist/modules/instance-ai/eval/execution.service.js +150 -22
  620. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  621. package/dist/modules/instance-ai/eval/mock-handler.js +6 -3
  622. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  623. package/dist/modules/instance-ai/eval/pin-data-generator.js +2 -1
  624. package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
  625. package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +1 -1
  626. package/dist/modules/instance-ai/eval/thread-restore.service.js +2 -1
  627. package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
  628. package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +1 -0
  629. package/dist/modules/instance-ai/eval/workflow-analysis.js +25 -9
  630. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  631. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +4 -2
  632. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +5 -2
  633. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
  634. package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +3 -0
  635. package/dist/modules/instance-ai/instance-ai-credit.service.js +18 -0
  636. package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
  637. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +1 -0
  638. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
  639. package/dist/modules/instance-ai/instance-ai-thread-tabs.service.d.ts +10 -1
  640. package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js +74 -5
  641. package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js.map +1 -1
  642. package/dist/modules/instance-ai/instance-ai.adapter.service.js +29 -7
  643. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  644. package/dist/modules/instance-ai/instance-ai.controller.d.ts +28 -2
  645. package/dist/modules/instance-ai/instance-ai.controller.js +5 -3
  646. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  647. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
  648. package/dist/modules/instance-ai/instance-ai.module.js +8 -0
  649. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  650. package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -1
  651. package/dist/modules/instance-ai/instance-ai.service.js +164 -24
  652. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  653. package/dist/modules/instance-ai/instance-context.service.js +4 -5
  654. package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
  655. package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.d.ts +5 -3
  656. package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js +24 -4
  657. package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js.map +1 -1
  658. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.d.ts +23 -0
  659. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js +100 -0
  660. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js.map +1 -0
  661. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +10 -0
  662. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +50 -0
  663. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -0
  664. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.d.ts +16 -0
  665. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js +77 -0
  666. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js.map +1 -0
  667. package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +33 -0
  668. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +178 -0
  669. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -0
  670. package/dist/modules/instance-ai/self-healing/self-healing-results.controller.d.ts +16 -0
  671. package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js +69 -0
  672. package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js.map +1 -0
  673. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.d.ts +3 -1
  674. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js +10 -0
  675. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js.map +1 -1
  676. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.d.ts +6 -1
  677. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js +20 -0
  678. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js.map +1 -1
  679. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.d.ts +5 -2
  680. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js +45 -1
  681. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js.map +1 -1
  682. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.d.ts +26 -0
  683. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js +173 -0
  684. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js.map +1 -0
  685. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.d.ts +6 -0
  686. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js +57 -0
  687. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js.map +1 -0
  688. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.d.ts +29 -5
  689. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js +86 -25
  690. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js.map +1 -1
  691. package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.d.ts +1 -1
  692. package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js +2 -2
  693. package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js.map +1 -1
  694. package/dist/modules/instance-reporting.ee/instance-reporting.service.d.ts +3 -2
  695. package/dist/modules/instance-reporting.ee/instance-reporting.service.js +23 -9
  696. package/dist/modules/instance-reporting.ee/instance-reporting.service.js.map +1 -1
  697. package/dist/modules/mcp/tools/agents/agent-reference.js +4 -3
  698. package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
  699. package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +1 -1
  700. package/dist/modules/mcp/tools/agents/agent-tools.service.d.ts +3 -1
  701. package/dist/modules/mcp/tools/agents/agent-tools.service.js +72 -43
  702. package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
  703. package/dist/modules/mcp/tools/execute-workflow.tool.js +1 -1
  704. package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
  705. package/dist/modules/mcp/tools/get-execution.tool.js +1 -1
  706. package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
  707. package/dist/modules/mcp/tools/get-workflow-details.tool.js +6 -1
  708. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  709. package/dist/modules/mcp/tools/publish-workflow.tool.js +1 -0
  710. package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
  711. package/dist/modules/mcp/tools/search-executions.tool.js +2 -2
  712. package/dist/modules/mcp/tools/search-executions.tool.js.map +1 -1
  713. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +2 -9
  714. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  715. package/dist/modules/mcp/tools/workflow-history.utils.js +1 -1
  716. package/dist/modules/mcp/tools/workflow-history.utils.js.map +1 -1
  717. package/dist/modules/mcp/tools/workflow-validation.utils.d.ts +2 -1
  718. package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
  719. package/dist/modules/modules.manifest.js +3 -1
  720. package/dist/modules/modules.manifest.js.map +1 -1
  721. package/dist/modules/n8n-packages/engine/credential-save-policy.d.ts +11 -0
  722. package/dist/modules/n8n-packages/engine/credential-save-policy.js +56 -0
  723. package/dist/modules/n8n-packages/engine/credential-save-policy.js.map +1 -0
  724. package/dist/modules/n8n-packages/engine/import-gates.d.ts +2 -0
  725. package/dist/modules/n8n-packages/engine/import-gates.js +9 -0
  726. package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
  727. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +4 -1
  728. package/dist/modules/n8n-packages/engine/import-orchestrator.js +106 -32
  729. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  730. package/dist/modules/n8n-packages/engine/import-result.d.ts +2 -2
  731. package/dist/modules/n8n-packages/engine/import-result.js +2 -2
  732. package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
  733. package/dist/modules/n8n-packages/engine/import-telemetry.js +2 -0
  734. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  735. package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +6 -0
  736. package/dist/modules/n8n-packages/engine/n8n-package-parser.js +72 -1
  737. package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
  738. package/dist/modules/n8n-packages/engine/project-package-importer.js +7 -1
  739. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  740. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +1 -0
  741. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  742. package/dist/modules/n8n-packages/entities/agent/agent-export.types.d.ts +39 -0
  743. package/dist/modules/n8n-packages/entities/agent/agent-export.types.js +3 -0
  744. package/dist/modules/n8n-packages/entities/agent/agent-export.types.js.map +1 -0
  745. package/dist/modules/n8n-packages/entities/agent/agent-import.types.d.ts +5 -0
  746. package/dist/modules/n8n-packages/entities/agent/agent-import.types.js +3 -0
  747. package/dist/modules/n8n-packages/entities/agent/agent-import.types.js.map +1 -0
  748. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.d.ts +12 -0
  749. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js +75 -0
  750. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js.map +1 -0
  751. package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.d.ts +20 -0
  752. package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js +173 -0
  753. package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js.map +1 -0
  754. package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +14 -0
  755. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +76 -0
  756. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -0
  757. package/dist/modules/n8n-packages/entities/agent/agent.serializer.d.ts +8 -0
  758. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js +50 -0
  759. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -0
  760. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +1 -12
  761. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
  762. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +1 -2
  763. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
  764. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +1 -0
  765. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +12 -1
  766. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
  767. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +5 -4
  768. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +18 -1
  769. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -1
  770. package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +2 -2
  771. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +19 -14
  772. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
  773. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +8 -5
  774. package/dist/modules/n8n-packages/entities/credential/credential.types.js +0 -1
  775. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  776. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.d.ts +14 -2
  777. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js +52 -0
  778. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js.map +1 -1
  779. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.d.ts +10 -2
  780. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js +136 -30
  781. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js.map +1 -1
  782. package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.d.ts +1 -1
  783. package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.js.map +1 -1
  784. package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.d.ts +9 -2
  785. package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js +11 -8
  786. package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js.map +1 -1
  787. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.d.ts +2 -7
  788. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js +16 -1
  789. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js.map +1 -1
  790. package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.d.ts +2 -3
  791. package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js +5 -19
  792. package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js.map +1 -1
  793. package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js +1 -0
  794. package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js.map +1 -1
  795. package/dist/modules/n8n-packages/entities/data-table/data-table.types.d.ts +46 -2
  796. package/dist/modules/n8n-packages/entities/data-table/data-table.types.js +0 -1
  797. package/dist/modules/n8n-packages/entities/data-table/data-table.types.js.map +1 -1
  798. package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +4 -4
  799. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +1 -1
  800. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
  801. package/dist/modules/n8n-packages/entities/project/project-export-access.d.ts +3 -0
  802. package/dist/modules/n8n-packages/entities/project/project-export-access.js +14 -0
  803. package/dist/modules/n8n-packages/entities/project/project-export-access.js.map +1 -0
  804. package/dist/modules/n8n-packages/entities/project/project-shell.exporter.d.ts +14 -0
  805. package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js +35 -0
  806. package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js.map +1 -0
  807. package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +7 -7
  808. package/dist/modules/n8n-packages/entities/project/project.exporter.js +20 -17
  809. package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
  810. package/dist/modules/n8n-packages/entities/requirement-source.d.ts +13 -0
  811. package/dist/modules/n8n-packages/entities/requirement-source.js +23 -0
  812. package/dist/modules/n8n-packages/entities/requirement-source.js.map +1 -0
  813. package/dist/modules/n8n-packages/entities/requirements.types.d.ts +10 -10
  814. package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
  815. package/dist/modules/n8n-packages/entities/tag/tag-import-decision.d.ts +1 -1
  816. package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js.map +1 -1
  817. package/dist/modules/n8n-packages/entities/tag/tag-importer.js +5 -19
  818. package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
  819. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +3 -3
  820. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
  821. package/dist/modules/n8n-packages/entities/tag/tag.types.d.ts +1 -6
  822. package/dist/modules/n8n-packages/entities/tag/tag.types.js +3 -11
  823. package/dist/modules/n8n-packages/entities/tag/tag.types.js.map +1 -1
  824. package/dist/modules/n8n-packages/entities/variable/variable-importer.js +7 -6
  825. package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
  826. package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.d.ts +1 -0
  827. package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js +9 -3
  828. package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js.map +1 -1
  829. package/dist/modules/n8n-packages/entities/variable/variable.exporter.d.ts +0 -1
  830. package/dist/modules/n8n-packages/entities/variable/variable.exporter.js +25 -28
  831. package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
  832. package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +6 -9
  833. package/dist/modules/n8n-packages/entities/variable/variable.types.js +1 -27
  834. package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
  835. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +9 -7
  836. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +17 -31
  837. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -1
  838. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +5 -6
  839. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +6 -17
  840. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
  841. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +2 -1
  842. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -1
  843. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.d.ts +7 -10
  844. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js +17 -13
  845. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js.map +1 -1
  846. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +4 -1
  847. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -1
  848. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.d.ts +2 -2
  849. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.js.map +1 -1
  850. package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js +2 -1
  851. package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js.map +1 -1
  852. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.d.ts +2 -2
  853. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js +1 -1
  854. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js.map +1 -1
  855. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.d.ts +2 -2
  856. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js +5 -11
  857. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js.map +1 -1
  858. package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.d.ts +3 -3
  859. package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js +5 -5
  860. package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js.map +1 -1
  861. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +4 -4
  862. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +3 -3
  863. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  864. package/dist/modules/n8n-packages/entities/workflow/workflow.types.d.ts +6 -0
  865. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.d.ts +8 -0
  866. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js +23 -0
  867. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js.map +1 -1
  868. package/dist/modules/n8n-packages/io/manifest-entry.d.ts +5 -0
  869. package/dist/modules/n8n-packages/io/manifest-entry.js +6 -0
  870. package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
  871. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
  872. package/dist/modules/n8n-packages/n8n-packages.service.js +124 -59
  873. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  874. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +29 -8
  875. package/dist/modules/n8n-packages/n8n-packages.types.js +5 -3
  876. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  877. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +471 -97
  878. package/dist/modules/n8n-packages/spec/manifest.schema.js +12 -1
  879. package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
  880. package/dist/modules/n8n-packages/spec/requirement-consumers.d.ts +5 -0
  881. package/dist/modules/n8n-packages/spec/requirement-consumers.js +16 -0
  882. package/dist/modules/n8n-packages/spec/requirement-consumers.js.map +1 -0
  883. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +457 -82
  884. package/dist/modules/n8n-packages/spec/requirements.schema.js +37 -10
  885. package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
  886. package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +3860 -0
  887. package/dist/modules/n8n-packages/spec/serialized/agent.schema.js +55 -0
  888. package/dist/modules/n8n-packages/spec/serialized/agent.schema.js.map +1 -0
  889. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.d.ts +10 -0
  890. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js +1 -0
  891. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js.map +1 -1
  892. package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +3 -15
  893. package/dist/modules/n8n-packages/utils/import-package-upload.js +4 -60
  894. package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -1
  895. package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +14 -0
  896. package/dist/modules/oauth-server/oauth-local-authorization-server.js +55 -0
  897. package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -0
  898. package/dist/modules/oauth-server/oauth-server.module.js +3 -0
  899. package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
  900. package/dist/modules/oauth-server/oauth-signing-key.constants.d.ts +3 -1
  901. package/dist/modules/oauth-server/oauth-signing-key.constants.js +4 -2
  902. package/dist/modules/oauth-server/oauth-signing-key.constants.js.map +1 -1
  903. package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +16 -4
  904. package/dist/modules/oauth-server/oauth-signing-key.service.js +95 -19
  905. package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
  906. package/dist/modules/oauth-server/oauth-token.service.d.ts +5 -3
  907. package/dist/modules/oauth-server/oauth-token.service.js +30 -21
  908. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  909. package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
  910. package/dist/modules/oauth-server/oauth.controller.js +17 -26
  911. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  912. package/dist/modules/oauth-server/resource-gate.d.ts +0 -2
  913. package/dist/modules/oauth-server/resource-gate.js +2 -8
  914. package/dist/modules/oauth-server/resource-gate.js.map +1 -1
  915. package/dist/modules/otel/execution-identity.d.ts +27 -0
  916. package/dist/modules/otel/execution-identity.js +43 -0
  917. package/dist/modules/otel/execution-identity.js.map +1 -0
  918. package/dist/modules/otel/execution-level-tracer.d.ts +1 -0
  919. package/dist/modules/otel/execution-level-tracer.js +75 -37
  920. package/dist/modules/otel/execution-level-tracer.js.map +1 -1
  921. package/dist/modules/otel/execution-level-tracer.types.d.ts +5 -0
  922. package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
  923. package/dist/modules/otel/otel-lifecycle-handler.d.ts +5 -1
  924. package/dist/modules/otel/otel-lifecycle-handler.js +44 -16
  925. package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
  926. package/dist/modules/otel/otel-settings.service.js +2 -0
  927. package/dist/modules/otel/otel-settings.service.js.map +1 -1
  928. package/dist/modules/otel/otel.config.d.ts +2 -0
  929. package/dist/modules/otel/otel.config.js +10 -0
  930. package/dist/modules/otel/otel.config.js.map +1 -1
  931. package/dist/modules/otel/otel.constants.d.ts +3 -0
  932. package/dist/modules/otel/otel.constants.js +3 -0
  933. package/dist/modules/otel/otel.constants.js.map +1 -1
  934. package/dist/modules/otel/otel.service.js +2 -1
  935. package/dist/modules/otel/otel.service.js.map +1 -1
  936. package/dist/modules/otel/tracing-context.d.ts +1 -0
  937. package/dist/modules/otel/tracing-context.js.map +1 -1
  938. package/dist/modules/policy-infrastructure/policy-decision-audit.d.ts +2 -0
  939. package/dist/modules/policy-infrastructure/policy-decision-audit.js +15 -11
  940. package/dist/modules/policy-infrastructure/policy-decision-audit.js.map +1 -1
  941. package/dist/modules/policy-infrastructure/policy-decision.service.js +1 -0
  942. package/dist/modules/policy-infrastructure/policy-decision.service.js.map +1 -1
  943. package/dist/modules/promotions.ee/base-branch-files.d.ts +3 -3
  944. package/dist/modules/promotions.ee/base-branch-files.js.map +1 -1
  945. package/dist/modules/promotions.ee/branch-placement.d.ts +6 -7
  946. package/dist/modules/promotions.ee/branch-placement.js +19 -18
  947. package/dist/modules/promotions.ee/branch-placement.js.map +1 -1
  948. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.d.ts +1 -0
  949. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +13 -0
  950. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -1
  951. package/dist/modules/promotions.ee/git-hosts/git-host-clients.d.ts +8 -0
  952. package/dist/modules/promotions.ee/git-hosts/git-host-clients.js +28 -0
  953. package/dist/modules/promotions.ee/git-hosts/git-host-clients.js.map +1 -0
  954. package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +7 -0
  955. package/dist/modules/promotions.ee/git-hosts/git-host.types.js +3 -0
  956. package/dist/modules/promotions.ee/git-hosts/git-host.types.js.map +1 -0
  957. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +10 -0
  958. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +151 -0
  959. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -0
  960. package/dist/modules/promotions.ee/import-manifest-bridge.d.ts +2 -0
  961. package/dist/modules/promotions.ee/import-manifest-bridge.js +20 -14
  962. package/dist/modules/promotions.ee/import-manifest-bridge.js.map +1 -1
  963. package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +6 -1
  964. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +35 -3
  965. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
  966. package/dist/modules/promotions.ee/promotion-change.service.js +12 -6
  967. package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -1
  968. package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -1
  969. package/dist/modules/promotions.ee/promotion-providers.service.d.ts +10 -4
  970. package/dist/modules/promotions.ee/promotion-providers.service.js +100 -29
  971. package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
  972. package/dist/modules/promotions.ee/promotions.service.js +41 -14
  973. package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
  974. package/dist/modules/promotions.ee/promotions.types.d.ts +2 -0
  975. package/dist/modules/promotions.ee/working-copy-updater.d.ts +3 -1
  976. package/dist/modules/promotions.ee/working-copy-updater.js +51 -29
  977. package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -1
  978. package/dist/modules/provisioning.ee/provisioning.module.js +9 -3
  979. package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
  980. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +5 -2
  981. package/dist/modules/provisioning.ee/provisioning.service.ee.js +2 -2
  982. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  983. package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +14 -0
  984. package/dist/modules/provisioning.ee/role-mapping-provider.ee.js +33 -0
  985. package/dist/modules/provisioning.ee/role-mapping-provider.ee.js.map +1 -0
  986. package/dist/modules/provisioning.ee/role-resolver-types.d.ts +2 -41
  987. package/dist/modules/provisioning.ee/role-resolver.service.ee.d.ts +2 -2
  988. package/dist/modules/provisioning.ee/role-resolver.service.ee.js +5 -9
  989. package/dist/modules/provisioning.ee/role-resolver.service.ee.js.map +1 -1
  990. package/dist/modules/scim/database/scim-api-key.repository.d.ts +11 -0
  991. package/dist/modules/scim/database/scim-api-key.repository.js +51 -0
  992. package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -0
  993. package/dist/modules/scim/scim-auth.middleware.d.ts +14 -0
  994. package/dist/modules/scim/scim-auth.middleware.js +80 -0
  995. package/dist/modules/scim/scim-auth.middleware.js.map +1 -0
  996. package/dist/modules/scim/scim-discovery.controller.d.ts +7 -0
  997. package/dist/modules/scim/scim-discovery.controller.js +90 -0
  998. package/dist/modules/scim/scim-discovery.controller.js.map +1 -0
  999. package/dist/modules/scim/scim-route.d.ts +9 -0
  1000. package/dist/modules/scim/scim-route.js +17 -0
  1001. package/dist/modules/scim/scim-route.js.map +1 -0
  1002. package/dist/modules/scim/scim-settings.service.d.ts +9 -0
  1003. package/dist/modules/scim/scim-settings.service.js +41 -0
  1004. package/dist/modules/scim/scim-settings.service.js.map +1 -0
  1005. package/dist/modules/scim/scim-token.controller.d.ts +17 -0
  1006. package/dist/modules/scim/scim-token.controller.js +115 -0
  1007. package/dist/modules/scim/scim-token.controller.js.map +1 -0
  1008. package/dist/modules/scim/scim-token.service.d.ts +23 -0
  1009. package/dist/modules/scim/scim-token.service.js +83 -0
  1010. package/dist/modules/scim/scim-token.service.js.map +1 -0
  1011. package/dist/modules/scim/scim.config.d.ts +3 -0
  1012. package/dist/modules/scim/scim.config.js +28 -0
  1013. package/dist/modules/scim/scim.config.js.map +1 -0
  1014. package/dist/modules/scim/scim.module.d.ts +8 -0
  1015. package/dist/modules/scim/scim.module.js +36 -0
  1016. package/dist/modules/scim/scim.module.js.map +1 -0
  1017. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +2 -1
  1018. package/dist/modules/source-control.ee/source-control-import.service.ee.js +23 -6
  1019. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  1020. package/dist/modules/source-control.ee/source-control.service.ee.js +1 -1
  1021. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  1022. package/dist/modules/sso-oidc/oidc.service.ee.js +12 -7
  1023. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  1024. package/dist/modules/token-exchange/services/jwks-resolver.js +1 -3
  1025. package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
  1026. package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
  1027. package/dist/modules/token-exchange/services/trusted-key.service.js +0 -2
  1028. package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -1
  1029. package/dist/modules/token-exchange/token-exchange.schemas.d.ts +6 -6
  1030. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +4 -4
  1031. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +3 -3
  1032. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
  1033. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +2 -2
  1034. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js +1 -1
  1035. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js.map +1 -1
  1036. package/dist/modules/type-availability-policies/credential-type-policy.check.d.ts +2 -1
  1037. package/dist/modules/type-availability-policies/credential-type-policy.check.js +5 -0
  1038. package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
  1039. package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.d.ts +25 -0
  1040. package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js +43 -0
  1041. package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js.map +1 -0
  1042. package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.d.ts +8 -0
  1043. package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js +49 -0
  1044. package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js.map +1 -0
  1045. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.d.ts +1 -0
  1046. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js +23 -19
  1047. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js.map +1 -1
  1048. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.d.ts +4 -0
  1049. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js +8 -0
  1050. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js.map +1 -1
  1051. package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -1
  1052. package/dist/modules/type-availability-policies/package-resolver.js +28 -4
  1053. package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
  1054. package/dist/modules/type-availability-policies/policy-evaluator.d.ts +1 -0
  1055. package/dist/modules/type-availability-policies/policy-evaluator.js +2 -0
  1056. package/dist/modules/type-availability-policies/policy-evaluator.js.map +1 -1
  1057. package/dist/modules/type-availability-policies/policy-shadow-lint.js +28 -6
  1058. package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
  1059. package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +15 -0
  1060. package/dist/modules/type-availability-policies/restricted-node-types.provider.js +64 -0
  1061. package/dist/modules/type-availability-policies/restricted-node-types.provider.js.map +1 -0
  1062. package/dist/modules/type-availability-policies/type-availability-policies.module.js +4 -0
  1063. package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
  1064. package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +8 -0
  1065. package/dist/modules/type-availability-policies/type-availability-policy.service.js +75 -21
  1066. package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
  1067. package/dist/modules/workflow-index/workflow-dependency-query.service.d.ts +3 -1
  1068. package/dist/modules/workflow-index/workflow-dependency-query.service.js +16 -2
  1069. package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
  1070. package/dist/modules/workflow-index/workflow-dependency.controller.js +1 -1
  1071. package/dist/modules/workflow-index/workflow-dependency.controller.js.map +1 -1
  1072. package/dist/node-catalog/index.d.ts +1 -0
  1073. package/dist/node-catalog/index.js +4 -1
  1074. package/dist/node-catalog/index.js.map +1 -1
  1075. package/dist/node-catalog/module-gated-node-types.d.ts +3 -0
  1076. package/dist/node-catalog/module-gated-node-types.js +26 -0
  1077. package/dist/node-catalog/module-gated-node-types.js.map +1 -0
  1078. package/dist/node-catalog/node-catalog.service.d.ts +3 -2
  1079. package/dist/node-catalog/node-catalog.service.js +15 -6
  1080. package/dist/node-catalog/node-catalog.service.js.map +1 -1
  1081. package/dist/node-execution/ephemeral-node-executor.d.ts +5 -1
  1082. package/dist/node-execution/ephemeral-node-executor.js +37 -12
  1083. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  1084. package/dist/node-execution/index.d.ts +1 -0
  1085. package/dist/node-execution/index.js +3 -1
  1086. package/dist/node-execution/index.js.map +1 -1
  1087. package/dist/node-execution/resolve-tool-node-type.d.ts +1 -0
  1088. package/dist/node-execution/resolve-tool-node-type.js +19 -0
  1089. package/dist/node-execution/resolve-tool-node-type.js.map +1 -0
  1090. package/dist/policy/policed-agent-nodes.d.ts +3 -0
  1091. package/dist/policy/policed-agent-nodes.js +91 -0
  1092. package/dist/policy/policed-agent-nodes.js.map +1 -0
  1093. package/dist/policy/policy-enforcement-backend.d.ts +2 -1
  1094. package/dist/policy/policy-enforcement.service.d.ts +3 -1
  1095. package/dist/policy/policy-enforcement.service.js +35 -10
  1096. package/dist/policy/policy-enforcement.service.js.map +1 -1
  1097. package/dist/policy/policy-violation.error.js +1 -6
  1098. package/dist/policy/policy-violation.error.js.map +1 -1
  1099. package/dist/posthog/index.js +1 -1
  1100. package/dist/posthog/index.js.map +1 -1
  1101. package/dist/public-api/idempotency-key-cleanup.task.d.ts +14 -0
  1102. package/dist/public-api/idempotency-key-cleanup.task.js +45 -0
  1103. package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -0
  1104. package/dist/public-api/idempotency-key.service.d.ts +7 -0
  1105. package/dist/public-api/idempotency-key.service.js +35 -0
  1106. package/dist/public-api/idempotency-key.service.js.map +1 -0
  1107. package/dist/public-api/index.js +1 -3
  1108. package/dist/public-api/index.js.map +1 -1
  1109. package/dist/public-api/media-types/binary-response.d.ts +3 -0
  1110. package/dist/public-api/media-types/binary-response.js +79 -0
  1111. package/dist/public-api/media-types/binary-response.js.map +1 -0
  1112. package/dist/public-api/public-api-controller.registry.js +6 -0
  1113. package/dist/public-api/public-api-controller.registry.js.map +1 -1
  1114. package/dist/public-api/public-api-route-resolver.d.ts +2 -1
  1115. package/dist/public-api/public-api-route-resolver.js +1 -0
  1116. package/dist/public-api/public-api-route-resolver.js.map +1 -1
  1117. package/dist/public-api/types.d.ts +1 -43
  1118. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +10 -10
  1119. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +13 -13
  1120. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
  1121. package/dist/public-api/v1/controllers/index.d.ts +1 -0
  1122. package/dist/public-api/v1/controllers/index.js +1 -0
  1123. package/dist/public-api/v1/controllers/index.js.map +1 -1
  1124. package/dist/public-api/v1/controllers/insights.public.controller.d.ts +1 -1
  1125. package/dist/public-api/v1/controllers/insights.public.controller.js +2 -2
  1126. package/dist/public-api/v1/controllers/insights.public.controller.js.map +1 -1
  1127. package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.d.ts +20 -20
  1128. package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.js +10 -10
  1129. package/dist/public-api/v1/controllers/log-streaming.mapper.js.map +1 -0
  1130. package/dist/public-api/v1/controllers/log-streaming.public.controller.d.ts +23 -1
  1131. package/dist/public-api/v1/controllers/log-streaming.public.controller.js +161 -1
  1132. package/dist/public-api/v1/controllers/log-streaming.public.controller.js.map +1 -1
  1133. package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +13 -0
  1134. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +134 -0
  1135. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -0
  1136. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +13 -6
  1137. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
  1138. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +9 -0
  1139. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +55 -0
  1140. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -0
  1141. package/dist/public-api/v1/controllers/otel.public.controller.js +1 -1
  1142. package/dist/public-api/v1/controllers/otel.public.controller.js.map +1 -1
  1143. package/dist/public-api/v1/controllers/promotions.public.controller.js +6 -5
  1144. package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
  1145. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -1
  1146. package/dist/public-api/v1/controllers/workflows.public.controller.js +35 -4
  1147. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
  1148. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +2 -20
  1149. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +17 -105
  1150. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  1151. package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +27 -1
  1152. package/dist/public-api/v1/openapi-gen/decorator-routes.js +37 -14
  1153. package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
  1154. package/dist/public-api/v1/openapi-gen/generate.js +2 -2
  1155. package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
  1156. package/dist/public-api/v1/openapi-gen/object-union-type.d.ts +1 -0
  1157. package/dist/public-api/v1/openapi-gen/object-union-type.js +33 -0
  1158. package/dist/public-api/v1/openapi-gen/object-union-type.js.map +1 -0
  1159. package/dist/public-api/v1/openapi-gen/schema-modifiers.d.ts +1 -0
  1160. package/dist/public-api/v1/openapi-gen/schema-modifiers.js +12 -0
  1161. package/dist/public-api/v1/openapi-gen/schema-modifiers.js.map +1 -0
  1162. package/dist/public-api/v1/openapi.yml +10389 -8020
  1163. package/dist/public-api/v1/shared/otel.mapper.js +2 -0
  1164. package/dist/public-api/v1/shared/otel.mapper.js.map +1 -1
  1165. package/dist/public-api/v1/shared/services/pagination.service.js +1 -1
  1166. package/dist/public-api/v1/shared/services/pagination.service.js.map +1 -1
  1167. package/dist/response-helper.js +3 -2
  1168. package/dist/response-helper.js.map +1 -1
  1169. package/dist/scaling/constants.d.ts +2 -2
  1170. package/dist/scaling/job-processor.d.ts +7 -1
  1171. package/dist/scaling/job-processor.js +32 -26
  1172. package/dist/scaling/job-processor.js.map +1 -1
  1173. package/dist/scaling/job-return.d.ts +3 -0
  1174. package/dist/scaling/job-return.js +33 -0
  1175. package/dist/scaling/job-return.js.map +1 -0
  1176. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  1177. package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
  1178. package/dist/scaling/scaling.service.d.ts +2 -0
  1179. package/dist/scaling/scaling.service.js +37 -3
  1180. package/dist/scaling/scaling.service.js.map +1 -1
  1181. package/dist/scheduling/durable-job-provisioner.d.ts +3 -2
  1182. package/dist/scheduling/durable-job-provisioner.js +34 -71
  1183. package/dist/scheduling/durable-job-provisioner.js.map +1 -1
  1184. package/dist/scheduling/durable-scheduler.js +0 -9
  1185. package/dist/scheduling/durable-scheduler.js.map +1 -1
  1186. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +1 -0
  1187. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +2 -0
  1188. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
  1189. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +5 -5
  1190. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +59 -95
  1191. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -1
  1192. package/dist/scheduling/system-tasks/main-system-tasks.js +17 -5
  1193. package/dist/scheduling/system-tasks/main-system-tasks.js.map +1 -1
  1194. package/dist/scheduling/system-tasks/system-task-handler.d.ts +2 -2
  1195. package/dist/scheduling/system-tasks/system-task-handler.js +4 -4
  1196. package/dist/scheduling/system-tasks/system-task-handler.js.map +1 -1
  1197. package/dist/scheduling/system-tasks/system-task-job-registrar.js +2 -1
  1198. package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
  1199. package/dist/scheduling/system-tasks/system-task-run-observer.d.ts +3 -3
  1200. package/dist/scheduling/system-tasks/system-task-run-observer.js +14 -6
  1201. package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
  1202. package/dist/server.d.ts +1 -0
  1203. package/dist/server.js +1 -0
  1204. package/dist/server.js.map +1 -1
  1205. package/dist/services/ai-preference.service.d.ts +2 -1
  1206. package/dist/services/ai-preference.service.js +10 -0
  1207. package/dist/services/ai-preference.service.js.map +1 -1
  1208. package/dist/services/database-independent-routes.service.d.ts +5 -0
  1209. package/dist/services/database-independent-routes.service.js +29 -0
  1210. package/dist/services/database-independent-routes.service.js.map +1 -0
  1211. package/dist/services/frontend.service.d.ts +3 -0
  1212. package/dist/services/frontend.service.js +12 -1
  1213. package/dist/services/frontend.service.js.map +1 -1
  1214. package/dist/services/jwt.service.d.ts +4 -3
  1215. package/dist/services/jwt.service.js +9 -6
  1216. package/dist/services/jwt.service.js.map +1 -1
  1217. package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -2
  1218. package/dist/services/oauth-token-verifier-proxy.service.js +0 -6
  1219. package/dist/services/oauth-token-verifier-proxy.service.js.map +1 -1
  1220. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +6 -1
  1221. package/dist/services/ownership-transfer/ownership-transfer.service.d.ts +9 -2
  1222. package/dist/services/ownership-transfer/ownership-transfer.service.js +27 -2
  1223. package/dist/services/ownership-transfer/ownership-transfer.service.js.map +1 -1
  1224. package/dist/services/ownership.service.d.ts +4 -4
  1225. package/dist/services/ownership.service.js +8 -28
  1226. package/dist/services/ownership.service.js.map +1 -1
  1227. package/dist/services/project.service.ee.d.ts +2 -0
  1228. package/dist/services/project.service.ee.js +13 -0
  1229. package/dist/services/project.service.ee.js.map +1 -1
  1230. package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +17 -0
  1231. package/dist/{modules/insights/insights-pruning.task.js → services/pruning/execution-pruning-hard-delete.task.js} +17 -15
  1232. package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -0
  1233. package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +4 -2
  1234. package/dist/services/pruning/execution-pruning-soft-delete.task.js +4 -2
  1235. package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
  1236. package/dist/services/pruning/executions-pruning.service.d.ts +6 -18
  1237. package/dist/services/pruning/executions-pruning.service.js +54 -88
  1238. package/dist/services/pruning/executions-pruning.service.js.map +1 -1
  1239. package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +1 -0
  1240. package/dist/services/pruning/workflow-history-compaction-optimize.task.js +1 -0
  1241. package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
  1242. package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -0
  1243. package/dist/services/pruning/workflow-history-compaction-trim.task.js +8 -6
  1244. package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
  1245. package/dist/services/pruning/workflow-history-compaction.service.d.ts +1 -5
  1246. package/dist/services/pruning/workflow-history-compaction.service.js +14 -19
  1247. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  1248. package/dist/services/pruning/workflow-history-compaction.utils.d.ts +6 -0
  1249. package/dist/services/pruning/workflow-history-compaction.utils.js +14 -0
  1250. package/dist/services/pruning/workflow-history-compaction.utils.js.map +1 -0
  1251. package/dist/services/pruning/workflow-history-pruning.task.d.ts +4 -1
  1252. package/dist/services/pruning/workflow-history-pruning.task.js +5 -2
  1253. package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
  1254. package/dist/services/role-mapping-proxy.service.d.ts +53 -0
  1255. package/dist/{modules/favorites/favorite-resource-resolver.registry.js → services/role-mapping-proxy.service.js} +11 -11
  1256. package/dist/services/role-mapping-proxy.service.js.map +1 -0
  1257. package/dist/services/token-purposes.d.ts +2 -0
  1258. package/dist/services/token-purposes.js +2 -0
  1259. package/dist/services/token-purposes.js.map +1 -1
  1260. package/dist/services/user.service.js +1 -0
  1261. package/dist/services/user.service.js.map +1 -1
  1262. package/dist/services/workflow-statistics-rollup.service.d.ts +6 -17
  1263. package/dist/services/workflow-statistics-rollup.service.js +26 -77
  1264. package/dist/services/workflow-statistics-rollup.service.js.map +1 -1
  1265. package/dist/services/workflow-statistics-rollup.task.d.ts +14 -0
  1266. package/dist/services/workflow-statistics-rollup.task.js +43 -0
  1267. package/dist/services/workflow-statistics-rollup.task.js.map +1 -0
  1268. package/dist/services/workflow-statistics.service.js +10 -18
  1269. package/dist/services/workflow-statistics.service.js.map +1 -1
  1270. package/dist/telemetry/index.d.ts +10 -4
  1271. package/dist/telemetry/index.js +51 -30
  1272. package/dist/telemetry/index.js.map +1 -1
  1273. package/dist/tool-generation/hitl-tools.js +5 -0
  1274. package/dist/tool-generation/hitl-tools.js.map +1 -1
  1275. package/dist/user-management/email/templates/agent-budget-alert.handlebars +196 -0
  1276. package/dist/user-management/email/user-management-mailer.d.ts +8 -1
  1277. package/dist/user-management/email/user-management-mailer.js +16 -0
  1278. package/dist/user-management/email/user-management-mailer.js.map +1 -1
  1279. package/dist/wait-tracker.js +1 -0
  1280. package/dist/wait-tracker.js.map +1 -1
  1281. package/dist/webhooks/waiting-webhooks.js +7 -6
  1282. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  1283. package/dist/webhooks/webhook-helpers.d.ts +4 -1
  1284. package/dist/webhooks/webhook-helpers.js +14 -3
  1285. package/dist/webhooks/webhook-helpers.js.map +1 -1
  1286. package/dist/webhooks/webhook-request-handler.d.ts +2 -1
  1287. package/dist/webhooks/webhook-request-handler.js +6 -3
  1288. package/dist/webhooks/webhook-request-handler.js.map +1 -1
  1289. package/dist/webhooks/webhook-response-headers.d.ts +3 -1
  1290. package/dist/webhooks/webhook-response-headers.js +16 -3
  1291. package/dist/webhooks/webhook-response-headers.js.map +1 -1
  1292. package/dist/workflow-execute-additional-data.d.ts +2 -1
  1293. package/dist/workflow-execute-additional-data.js +18 -8
  1294. package/dist/workflow-execute-additional-data.js.map +1 -1
  1295. package/dist/workflow-runner.d.ts +2 -2
  1296. package/dist/workflow-runner.js +9 -12
  1297. package/dist/workflow-runner.js.map +1 -1
  1298. package/dist/workflows/execution-timeout-validation.d.ts +2 -0
  1299. package/dist/workflows/execution-timeout-validation.js +16 -0
  1300. package/dist/workflows/execution-timeout-validation.js.map +1 -0
  1301. package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +9 -0
  1302. package/dist/workflows/restricted-node-types-provider-proxy.service.js +26 -0
  1303. package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +1 -0
  1304. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +8 -5
  1305. package/dist/workflows/triggers/trigger-execution-context.factory.js +9 -10
  1306. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  1307. package/dist/workflows/workflow-creation.service.js +8 -2
  1308. package/dist/workflows/workflow-creation.service.js.map +1 -1
  1309. package/dist/workflows/workflow-finder.service.d.ts +9 -3
  1310. package/dist/workflows/workflow-finder.service.js +6 -5
  1311. package/dist/workflows/workflow-finder.service.js.map +1 -1
  1312. package/dist/workflows/workflow-history/workflow-history.controller.d.ts +2 -2
  1313. package/dist/workflows/workflow-history/workflow-history.controller.js +9 -6
  1314. package/dist/workflows/workflow-history/workflow-history.controller.js.map +1 -1
  1315. package/dist/workflows/workflow-history/workflow-history.service.d.ts +27 -11
  1316. package/dist/workflows/workflow-history/workflow-history.service.js +56 -34
  1317. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  1318. package/dist/workflows/workflow-validation.service.d.ts +1 -1
  1319. package/dist/workflows/workflow-validation.service.js +2 -2
  1320. package/dist/workflows/workflow-validation.service.js.map +1 -1
  1321. package/dist/workflows/workflow.service.d.ts +46 -18
  1322. package/dist/workflows/workflow.service.ee.d.ts +19 -5
  1323. package/dist/workflows/workflow.service.ee.js +117 -20
  1324. package/dist/workflows/workflow.service.ee.js.map +1 -1
  1325. package/dist/workflows/workflow.service.js +100 -35
  1326. package/dist/workflows/workflow.service.js.map +1 -1
  1327. package/dist/workflows/workflows.controller.d.ts +2 -1
  1328. package/dist/workflows/workflows.controller.js +17 -1
  1329. package/dist/workflows/workflows.controller.js.map +1 -1
  1330. package/package.json +44 -42
  1331. package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.d.ts +0 -2
  1332. package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js +0 -159
  1333. package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js.map +0 -1
  1334. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.d.ts +0 -10
  1335. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js +0 -47
  1336. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js.map +0 -1
  1337. package/dist/modules/favorites/favorite-resource-resolver.registry.d.ts +0 -17
  1338. package/dist/modules/favorites/favorite-resource-resolver.registry.js.map +0 -1
  1339. package/dist/modules/insights/database/entities/insights-by-period.d.ts +0 -17
  1340. package/dist/modules/insights/database/entities/insights-by-period.js +0 -73
  1341. package/dist/modules/insights/database/entities/insights-by-period.js.map +0 -1
  1342. package/dist/modules/insights/database/entities/insights-metadata.d.ts +0 -8
  1343. package/dist/modules/insights/database/entities/insights-metadata.js +0 -40
  1344. package/dist/modules/insights/database/entities/insights-metadata.js.map +0 -1
  1345. package/dist/modules/insights/database/entities/insights-raw.d.ts +0 -13
  1346. package/dist/modules/insights/database/entities/insights-raw.js +0 -61
  1347. package/dist/modules/insights/database/entities/insights-raw.js.map +0 -1
  1348. package/dist/modules/insights/database/entities/insights-shared.d.ts +0 -21
  1349. package/dist/modules/insights/database/entities/insights-shared.js +0 -30
  1350. package/dist/modules/insights/database/entities/insights-shared.js.map +0 -1
  1351. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.d.ts +0 -15
  1352. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +0 -45
  1353. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js.map +0 -1
  1354. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +0 -100
  1355. package/dist/modules/insights/database/repositories/insights-by-period.repository.js +0 -347
  1356. package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +0 -1
  1357. package/dist/modules/insights/database/repositories/insights-metadata.repository.d.ts +0 -7
  1358. package/dist/modules/insights/database/repositories/insights-metadata.repository.js +0 -36
  1359. package/dist/modules/insights/database/repositories/insights-metadata.repository.js.map +0 -1
  1360. package/dist/modules/insights/database/repositories/insights-raw.repository.d.ts +0 -12
  1361. package/dist/modules/insights/database/repositories/insights-raw.repository.js +0 -36
  1362. package/dist/modules/insights/database/repositories/insights-raw.repository.js.map +0 -1
  1363. package/dist/modules/insights/insights-collection.service.d.ts +0 -30
  1364. package/dist/modules/insights/insights-collection.service.js +0 -280
  1365. package/dist/modules/insights/insights-collection.service.js.map +0 -1
  1366. package/dist/modules/insights/insights-compaction.service.d.ts +0 -19
  1367. package/dist/modules/insights/insights-compaction.service.js +0 -161
  1368. package/dist/modules/insights/insights-compaction.service.js.map +0 -1
  1369. package/dist/modules/insights/insights-compaction.task.d.ts +0 -14
  1370. package/dist/modules/insights/insights-compaction.task.js.map +0 -1
  1371. package/dist/modules/insights/insights-pruning.service.d.ts +0 -11
  1372. package/dist/modules/insights/insights-pruning.service.js +0 -49
  1373. package/dist/modules/insights/insights-pruning.service.js.map +0 -1
  1374. package/dist/modules/insights/insights-pruning.task.d.ts +0 -15
  1375. package/dist/modules/insights/insights-pruning.task.js.map +0 -1
  1376. package/dist/modules/insights/insights.config.d.ts +0 -13
  1377. package/dist/modules/insights/insights.config.js +0 -80
  1378. package/dist/modules/insights/insights.config.js.map +0 -1
  1379. package/dist/modules/insights/insights.constants.d.ts +0 -4
  1380. package/dist/modules/insights/insights.constants.js +0 -24
  1381. package/dist/modules/insights/insights.constants.js.map +0 -1
  1382. package/dist/modules/insights/insights.controller.d.ts +0 -16
  1383. package/dist/modules/insights/insights.controller.js +0 -159
  1384. package/dist/modules/insights/insights.controller.js.map +0 -1
  1385. package/dist/modules/insights/insights.module.d.ts +0 -17
  1386. package/dist/modules/insights/insights.module.js +0 -51
  1387. package/dist/modules/insights/insights.module.js.map +0 -1
  1388. package/dist/modules/insights/insights.service.d.ts +0 -73
  1389. package/dist/modules/insights/insights.service.js +0 -257
  1390. package/dist/modules/insights/insights.service.js.map +0 -1
  1391. package/dist/modules/insights/insights.settings.d.ts +0 -20
  1392. package/dist/modules/insights/insights.settings.js +0 -48
  1393. package/dist/modules/insights/insights.settings.js.map +0 -1
  1394. package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.d.ts +0 -12
  1395. package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js +0 -107
  1396. package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js.map +0 -1
  1397. package/dist/public-api/v1/handlers/log-streaming/log-streaming.mapper.js.map +0 -1
  1398. package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +0 -7
  1399. package/dist/public-api/v1/handlers/workflows/workflows.handler.js +0 -31
  1400. package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +0 -1
@@ -4,8 +4,12 @@ import { FolderFinderService } from '@n8n/backend-services';
4
4
  import { ProjectService } from '../../../../services/project.service.ee';
5
5
  import { WorkflowFinderService } from '../../../../workflows/workflow-finder.service';
6
6
  import type { WorkflowSubWorkflowRequirement } from './workflow.types';
7
- import type { WorkflowVersionPolicy } from '../../n8n-packages.types';
7
+ import type { ExportVersionPolicy } from '../../n8n-packages.types';
8
8
  export type WorkflowExportOrigin = 'top-level' | 'folder' | 'project';
9
+ export interface WorkflowExportSeed {
10
+ workflowId: string;
11
+ origin: WorkflowExportOrigin;
12
+ }
9
13
  export interface AutoIncludedWorkflow {
10
14
  workflow: WorkflowEntity;
11
15
  placement: WorkflowExportOrigin;
@@ -23,18 +27,16 @@ export declare class AutoIncludedWorkflowResolver {
23
27
  constructor(workflowFinder: WorkflowFinderService, folderFinder: FolderFinderService, projectService: ProjectService, sharedWorkflowRepository: SharedWorkflowRepository);
24
28
  resolve(options: {
25
29
  user: User;
30
+ exportedWorkflowIds: string[];
31
+ workflowSeeds: WorkflowExportSeed[];
26
32
  requirements: WorkflowSubWorkflowRequirement[];
27
- topLevelWorkflowIds: string[];
28
- folderWorkflowIds: string[];
29
- projectWorkflowIds: string[];
30
33
  includeTags: boolean;
31
- workflowVersionPolicy: WorkflowVersionPolicy;
34
+ versionPolicy: ExportVersionPolicy;
32
35
  }): Promise<AutoIncludedWorkflowResolution>;
33
- private seedExportedOrigins;
36
+ private seedOrigins;
34
37
  private propagateOrigins;
35
38
  private buildAutoIncludedWorkflows;
36
39
  private choosePlacement;
37
40
  private findExportableWorkflows;
38
41
  private findAccessibleFolderChains;
39
- private findAccessibleProjects;
40
42
  }
@@ -16,6 +16,7 @@ const backend_services_1 = require("@n8n/backend-services");
16
16
  const project_service_ee_1 = require("../../../../services/project.service.ee");
17
17
  const workflow_finder_service_1 = require("../../../../workflows/workflow-finder.service");
18
18
  const package_export_errors_1 = require("../package-export.errors");
19
+ const project_export_access_1 = require("../project/project-export-access");
19
20
  const workflow_version_policy_1 = require("./workflow-version-policy");
20
21
  let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
21
22
  constructor(workflowFinder, folderFinder, projectService, sharedWorkflowRepository) {
@@ -25,12 +26,8 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
25
26
  this.sharedWorkflowRepository = sharedWorkflowRepository;
26
27
  }
27
28
  async resolve(options) {
28
- const originsByWorkflowId = this.seedExportedOrigins({
29
- topLevelWorkflowIds: options.topLevelWorkflowIds,
30
- folderWorkflowIds: options.folderWorkflowIds,
31
- projectWorkflowIds: options.projectWorkflowIds,
32
- });
33
- const exportedWorkflowIds = new Set(originsByWorkflowId.keys());
29
+ const exportedWorkflowIds = new Set(options.exportedWorkflowIds);
30
+ const originsByWorkflowId = this.seedOrigins(options.workflowSeeds);
34
31
  this.propagateOrigins(originsByWorkflowId, options.requirements);
35
32
  const autoIncludedWorkflowIds = [...originsByWorkflowId.keys()].filter((workflowId) => !exportedWorkflowIds.has(workflowId));
36
33
  const autoIncludedWorkflows = await this.buildAutoIncludedWorkflows({
@@ -38,22 +35,17 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
38
35
  workflowIds: autoIncludedWorkflowIds,
39
36
  originsByWorkflowId,
40
37
  includeTags: options.includeTags,
41
- workflowVersionPolicy: options.workflowVersionPolicy,
38
+ versionPolicy: options.versionPolicy,
42
39
  });
43
40
  return { autoIncludedWorkflows };
44
41
  }
45
- seedExportedOrigins(options) {
42
+ seedOrigins(seeds) {
46
43
  const originsByWorkflowId = new Map();
47
- const add = (workflowIds, origin) => {
48
- for (const workflowId of workflowIds) {
49
- const origins = originsByWorkflowId.get(workflowId) ?? new Set();
50
- origins.add(origin);
51
- originsByWorkflowId.set(workflowId, origins);
52
- }
53
- };
54
- add(options.topLevelWorkflowIds, 'top-level');
55
- add(options.folderWorkflowIds, 'folder');
56
- add(options.projectWorkflowIds, 'project');
44
+ for (const { workflowId, origin } of seeds) {
45
+ const origins = originsByWorkflowId.get(workflowId) ?? new Set();
46
+ origins.add(origin);
47
+ originsByWorkflowId.set(workflowId, origins);
48
+ }
57
49
  return originsByWorkflowId;
58
50
  }
59
51
  propagateOrigins(originsByWorkflowId, requirements) {
@@ -89,7 +81,7 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
89
81
  async buildAutoIncludedWorkflows(options) {
90
82
  if (options.workflowIds.length === 0)
91
83
  return [];
92
- const workflows = await this.findExportableWorkflows(options.user, options.workflowIds, options.includeTags, options.workflowVersionPolicy);
84
+ const workflows = await this.findExportableWorkflows(options.user, options.workflowIds, options.includeTags, options.versionPolicy);
93
85
  const workflowsById = new Map(workflows.map((workflow) => [workflow.id, workflow]));
94
86
  const ownersByWorkflowId = await this.sharedWorkflowRepository.findOwnerProjectsByWorkflowIds(options.workflowIds);
95
87
  const placementsByWorkflowId = new Map(options.workflowIds.map((workflowId) => [
@@ -109,7 +101,8 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
109
101
  .map((workflowId) => ownersByWorkflowId.get(workflowId)?.id)
110
102
  .filter((projectId) => projectId !== undefined)),
111
103
  ];
112
- const accessibleProjectsById = await this.findAccessibleProjects(options.user, projectIds);
104
+ const accessibleProjects = await (0, project_export_access_1.findExportableProjects)(this.projectService, options.user, projectIds);
105
+ const accessibleProjectIds = new Set(accessibleProjects.map(({ id }) => id));
113
106
  return options.workflowIds.map((workflowId) => {
114
107
  const workflow = workflowsById.get(workflowId);
115
108
  const ownerProject = ownersByWorkflowId.get(workflowId);
@@ -120,7 +113,7 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
120
113
  if (placement === 'folder' && !workflow.parentFolder) {
121
114
  placement = 'top-level';
122
115
  }
123
- if (placement === 'project' && !accessibleProjectsById.has(ownerProject.id)) {
116
+ if (placement === 'project' && !accessibleProjectIds.has(ownerProject.id)) {
124
117
  throw new package_export_errors_1.PackageExportBlockedError('Static sub-workflow dependency project metadata is not accessible. Export aborted.');
125
118
  }
126
119
  const folderChain = workflow.parentFolder
@@ -139,14 +132,14 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
139
132
  return 'folder';
140
133
  return 'top-level';
141
134
  }
142
- async findExportableWorkflows(user, workflowIds, includeTags, workflowVersionPolicy) {
135
+ async findExportableWorkflows(user, workflowIds, includeTags, versionPolicy) {
143
136
  const workflows = await this.workflowFinder.findWorkflowsByIdsForUser(workflowIds, user, ['workflow:export'], {
144
137
  includeParentFolder: true,
145
138
  includeTags,
146
- includeActiveVersion: (0, workflow_version_policy_1.needsActiveVersion)(workflowVersionPolicy),
139
+ includeActiveVersion: (0, workflow_version_policy_1.needsActiveVersion)(versionPolicy),
147
140
  });
148
141
  await (0, package_export_errors_1.assertEveryRequestedEntityAccessible)('workflow', workflowIds, workflows, async (ids) => await this.workflowFinder.findExistingWorkflowIds(ids));
149
- const exportableWorkflows = (0, workflow_version_policy_1.applyWorkflowVersionPolicy)(workflows, workflowVersionPolicy);
142
+ const exportableWorkflows = (0, workflow_version_policy_1.applyWorkflowVersionPolicy)(workflows, versionPolicy);
150
143
  if (exportableWorkflows.length < workflows.length) {
151
144
  const exportableIds = new Set(exportableWorkflows.map(({ id }) => id));
152
145
  const droppedIds = workflows.map(({ id }) => id).filter((id) => !exportableIds.has(id));
@@ -167,13 +160,6 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
167
160
  .filter((folder) => folder !== undefined), async (ids) => await this.folderFinder.findExistingFolderIds(ids));
168
161
  return folderChainsByFolderId;
169
162
  }
170
- async findAccessibleProjects(user, projectIds) {
171
- const projects = await this.projectService.findProjectsByIdsForUser(user, projectIds, [
172
- 'project:export',
173
- ]);
174
- await (0, package_export_errors_1.assertEveryRequestedEntityAccessible)('project', projectIds, projects, async (ids) => await this.projectService.findExistingProjectIds(ids));
175
- return new Map(projects.map((project) => [project.id, project]));
176
- }
177
163
  };
178
164
  exports.AutoIncludedWorkflowResolver = AutoIncludedWorkflowResolver;
179
165
  exports.AutoIncludedWorkflowResolver = AutoIncludedWorkflowResolver = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"auto-included-workflow-resolver.js","sourceRoot":"","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,CAAC,qBAAqB,CAAC,GAAG,CAAC,CACjE,CAAC;QAEF,OAAO,sBAAsB,CAAC;IAC/B,CAAC;IAEO,KAAK,CAAC,sBAAsB,CACnC,IAAU,EACV,UAAoB;QAEpB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE;YACrF,gBAAgB;SAChB,CAAC,CAAC;QAEH,MAAM,IAAA,4DAAoC,EACzC,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,CACpE,CAAC;QAEF,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;CACD,CAAA;;uCAnSY,4BAA4B;IADxC,IAAA,YAAO,GAAE;qCAGyB,+CAAqB,EACvB,sCAAmB,EACjB,mCAAc,EACJ,6BAAwB;GALxD,4BAA4B,CAmSxC"}
1
+ {"version":3,"file":"auto-included-workflow-resolver.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAmD;AACnD,gCAAkC;AAElC,4DAA4D;AAC5D,sEAA+D;AAC/D,iFAA4E;AAE5E,oEAGkC;AAClC,4EAA0E;AAC1E,uEAA2F;AAuBpF,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACxC,YACkB,cAAqC,EACrC,YAAiC,EACjC,cAA8B,EAC9B,wBAAkD;8BAHlD,cAAc;4BACd,YAAY;8BACZ,cAAc;wCACd,wBAAwB;IACvC,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,OAOb;QACA,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,OAAO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AAU,EACV,SAAmB;QAEnB,MAAM,eAAe,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;QAChD,MAAM,sBAAsB,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,+BAA+B,CACrF,eAAe,EACf,IAAI,EACJ,CAAC,aAAa,CAAC,CACf,CAAC;QAEF,MAAM,IAAA,4DAAoC,EACzC,QAAQ,EACR,eAAe,EACf,CAAC,GAAG,sBAAsB,CAAC,MAAM,EAAE,CAAC;aAClC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aAC5B,MAAM,CAAC,CAAC,MAAM,EAAoB,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,EAC5D,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CACjE,CAAC;QAEF,OAAO,sBAAsB,CAAC;IAC/B,CAAC;CACD,CAAA;;uCAlQY,4BAA4B;IADxC,IAAA,YAAO,GAAE;qCAGyB,+CAAqB,EACvB,sCAAmB,EACjB,mCAAc,EACJ,6BAAwB;GALxD,4BAA4B,CAkQxC"}
@@ -5,8 +5,8 @@ import type { ManifestEntry } from '../../spec/manifest.schema';
5
5
  import { CredentialRequirementsExtractor } from '../credential/credential-requirements.extractor';
6
6
  import { DataTableRequirementsExtractor } from '../data-table/data-table-requirements.extractor';
7
7
  import { FolderSerializer } from '../folder/folder.serializer';
8
- import { ProjectSerializer } from '../project/project.serializer';
9
- import type { WorkflowExportRequirements } from '../requirements.types';
8
+ import { ProjectShellExporter } from '../project/project-shell.exporter';
9
+ import type { ExportRequirements } from '../requirements.types';
10
10
  import { TagRequirementsExtractor } from '../tag/tag-requirements.extractor';
11
11
  import { VariableRequirementsExtractor } from '../variable/variable-requirements.extractor';
12
12
  export interface AutoIncludedWorkflowExportRequest {
@@ -22,20 +22,19 @@ export interface AutoIncludedWorkflowExportResult {
22
22
  workflowEntries: ManifestEntry[];
23
23
  folderEntries: ManifestEntry[];
24
24
  projectEntries: ManifestEntry[];
25
- requirements: WorkflowExportRequirements;
25
+ requirements: ExportRequirements;
26
26
  projectTargetsById: Map<string, string>;
27
27
  }
28
28
  export declare class AutoIncludedWorkflowExporter {
29
29
  private readonly workflowSerializer;
30
30
  private readonly folderSerializer;
31
- private readonly projectSerializer;
31
+ private readonly projectShellExporter;
32
32
  private readonly credentialRequirementsExtractor;
33
33
  private readonly dataTableRequirementsExtractor;
34
34
  private readonly variableRequirementsExtractor;
35
35
  private readonly tagRequirementsExtractor;
36
- constructor(workflowSerializer: WorkflowSerializer, folderSerializer: FolderSerializer, projectSerializer: ProjectSerializer, credentialRequirementsExtractor: CredentialRequirementsExtractor, dataTableRequirementsExtractor: DataTableRequirementsExtractor, variableRequirementsExtractor: VariableRequirementsExtractor, tagRequirementsExtractor: TagRequirementsExtractor);
36
+ constructor(workflowSerializer: WorkflowSerializer, folderSerializer: FolderSerializer, projectShellExporter: ProjectShellExporter, credentialRequirementsExtractor: CredentialRequirementsExtractor, dataTableRequirementsExtractor: DataTableRequirementsExtractor, variableRequirementsExtractor: VariableRequirementsExtractor, tagRequirementsExtractor: TagRequirementsExtractor);
37
37
  export(request: AutoIncludedWorkflowExportRequest): Promise<AutoIncludedWorkflowExportResult>;
38
38
  private resolveWorkflowBaseDir;
39
- private ensureProjectShell;
40
39
  private ensureFolderChain;
41
40
  }
@@ -17,14 +17,14 @@ const manifest_entry_1 = require("../../io/manifest-entry");
17
17
  const credential_requirements_extractor_1 = require("../credential/credential-requirements.extractor");
18
18
  const data_table_requirements_extractor_1 = require("../data-table/data-table-requirements.extractor");
19
19
  const folder_serializer_1 = require("../folder/folder.serializer");
20
- const project_serializer_1 = require("../project/project.serializer");
20
+ const project_shell_exporter_1 = require("../project/project-shell.exporter");
21
21
  const tag_requirements_extractor_1 = require("../tag/tag-requirements.extractor");
22
22
  const variable_requirements_extractor_1 = require("../variable/variable-requirements.extractor");
23
23
  let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
24
- constructor(workflowSerializer, folderSerializer, projectSerializer, credentialRequirementsExtractor, dataTableRequirementsExtractor, variableRequirementsExtractor, tagRequirementsExtractor) {
24
+ constructor(workflowSerializer, folderSerializer, projectShellExporter, credentialRequirementsExtractor, dataTableRequirementsExtractor, variableRequirementsExtractor, tagRequirementsExtractor) {
25
25
  this.workflowSerializer = workflowSerializer;
26
26
  this.folderSerializer = folderSerializer;
27
- this.projectSerializer = projectSerializer;
27
+ this.projectShellExporter = projectShellExporter;
28
28
  this.credentialRequirementsExtractor = credentialRequirementsExtractor;
29
29
  this.dataTableRequirementsExtractor = dataTableRequirementsExtractor;
30
30
  this.variableRequirementsExtractor = variableRequirementsExtractor;
@@ -35,7 +35,6 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
35
35
  const shells = {
36
36
  writer: request.writer,
37
37
  folderEntriesById: new Map(request.existingFolderEntries.map((entry) => [entry.id, entry])),
38
- projectEntriesById: new Map(request.existingProjectEntries.map((entry) => [entry.id, entry])),
39
38
  projectTargetsById: new Map([
40
39
  ...(request.projectTargetsById ?? []),
41
40
  ...request.existingProjectEntries.map((entry) => [entry.id, entry.target]),
@@ -55,7 +54,7 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
55
54
  const entry = await (0, manifest_entry_1.writeWorkflowManifestEntry)(request.writer, await this.resolveWorkflowBaseDir(included, shells), included.workflow, this.workflowSerializer.serialize(included.workflow, { includeTags: request.includeTags }), this.workflowSerializer.serializeMetadata(included.workflow));
56
55
  workflowEntries.push(entry);
57
56
  workflowEntriesById.set(entry.id, entry);
58
- credentials.push(...this.credentialRequirementsExtractor.extract(included.workflow));
57
+ credentials.push(...this.credentialRequirementsExtractor.extractFromWorkflow(included.workflow));
59
58
  dataTables.push(...this.dataTableRequirementsExtractor.extract(included.workflow));
60
59
  variables.push(...this.variableRequirementsExtractor.extract(included.workflow));
61
60
  tags.push(...this.tagRequirementsExtractor.extract(included.workflow));
@@ -74,7 +73,7 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
74
73
  }
75
74
  async resolveWorkflowBaseDir(included, shells) {
76
75
  const scope = included.placement === 'project'
77
- ? await this.ensureProjectShell(included.ownerProject, shells)
76
+ ? await this.projectShellExporter.export(included.ownerProject, shells)
78
77
  : undefined;
79
78
  const chain = included.placement === 'top-level' ? [] : included.folderChain;
80
79
  const container = chain.length > 0
@@ -82,16 +81,6 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
82
81
  : scope;
83
82
  return (0, manifest_entry_1.packageDirectory)('workflows', container);
84
83
  }
85
- async ensureProjectShell(project, shells) {
86
- const existing = shells.projectEntriesById.get(project.id);
87
- if (existing)
88
- return existing.target;
89
- const entry = await (0, manifest_entry_1.writeManifestEntry)(shells.writer, 'projects', (0, manifest_entry_1.packageDirectory)('projects'), project, this.projectSerializer.serialize(project));
90
- shells.projectEntries.push(entry);
91
- shells.projectEntriesById.set(entry.id, entry);
92
- shells.projectTargetsById.set(entry.id, entry.target);
93
- return entry.target;
94
- }
95
84
  async ensureFolderChain(chain, baseDir, shells) {
96
85
  let parentTarget;
97
86
  let effectiveParentId = null;
@@ -119,6 +108,6 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
119
108
  exports.AutoIncludedWorkflowExporter = AutoIncludedWorkflowExporter;
120
109
  exports.AutoIncludedWorkflowExporter = AutoIncludedWorkflowExporter = __decorate([
121
110
  (0, di_1.Service)(),
122
- __metadata("design:paramtypes", [workflow_serializer_1.WorkflowSerializer, folder_serializer_1.FolderSerializer, project_serializer_1.ProjectSerializer, credential_requirements_extractor_1.CredentialRequirementsExtractor, data_table_requirements_extractor_1.DataTableRequirementsExtractor, variable_requirements_extractor_1.VariableRequirementsExtractor, tag_requirements_extractor_1.TagRequirementsExtractor])
111
+ __metadata("design:paramtypes", [workflow_serializer_1.WorkflowSerializer, folder_serializer_1.FolderSerializer, project_shell_exporter_1.ProjectShellExporter, credential_requirements_extractor_1.CredentialRequirementsExtractor, data_table_requirements_extractor_1.DataTableRequirementsExtractor, variable_requirements_extractor_1.VariableRequirementsExtractor, tag_requirements_extractor_1.TagRequirementsExtractor])
123
112
  ], AutoIncludedWorkflowExporter);
124
113
  //# sourceMappingURL=auto-included-workflow.exporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auto-included-workflow.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAClC,+CAA+C;AAI/C,+DAA2D;AAC3D,4DAIiC;AAGjC,uGAAkG;AAElG,uGAAiG;AAEjG,mEAA+D;AAC/D,sEAAkE;AAElE,kFAA6E;AAE7E,iGAA4F;AAyCrF,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACxC,YACkB,kBAAsC,EACtC,gBAAkC,EAClC,iBAAoC,EACpC,+BAAgE,EAChE,8BAA8D,EAC9D,6BAA4D,EAC5D,wBAAkD;kCANlD,kBAAkB;gCAClB,gBAAgB;iCAChB,iBAAiB;+CACjB,+BAA+B;8CAC/B,8BAA8B;6CAC9B,6BAA6B;wCAC7B,wBAAwB;IACvC,CAAC;IAEJ,KAAK,CAAC,MAAM,CACX,OAA0C;QAE1C,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAClC,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CACjE,CAAC;QACF,MAAM,MAAM,GAAkB;YAC7B,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,iBAAiB,EAAE,IAAI,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,E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ow.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAClC,+CAA+C;AAI/C,+DAA2D;AAC3D,4DAIiC;AAGjC,uGAAkG;AAElG,uGAAiG;AAEjG,mEAA+D;AAC/D,8EAG2C;AAE3C,kFAA6E;AAE7E,iGAA4F;AAqCrF,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACxC,YACkB,kBAAsC,EACtC,gBAAkC,EAClC,oBAA0C,EAC1C,+BAAgE,EAChE,8BAA8D,EAC9D,6BAA4D,EAC5D,wBAAkD;kCANlD,kBAAkB;gCAClB,gBAAgB;oCAChB,oBAAoB;+CACpB,+BAA+B;8CAC/B,8BAA8B;6CAC9B,6BAA6B;wCAC7B,wBAAwB;IACvC,CAAC;IAEJ,KAAK,CAAC,MAAM,CACX,OAA0C;QAE1C,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAClC,OAAO,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CACjE,CAAC;QACF,MAAM,MAAM,GAAkB;YAC7B,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,iBAAiB,EAAE,IAAI,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;YAC3F,kBAAkB,EAAE,IAAI,GAAG,CAAC;gBAC3B,GAAG,CAAC,OAAO,CAAC,kBAAkB,IAAI,EAAE,CAAC;gBACrC,GAAG,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,MAAM,CAAU,CAAC;aACnF,CAAC;YACF,aAAa,E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AA8B,EAC/B,+DAA6B,EAClC,qDAAwB;GARxD,4BAA4B,CAkIxC"}
@@ -4,6 +4,7 @@ exports.collectMissingNodeTypes = collectMissingNodeTypes;
4
4
  exports.missingNodeTypeBlockingFailures = missingNodeTypeBlockingFailures;
5
5
  exports.workflowsWithMissingNodeTypes = workflowsWithMissingNodeTypes;
6
6
  const node_type_usage_1 = require("./node-type-usage");
7
+ const requirement_consumers_1 = require("../../spec/requirement-consumers");
7
8
  function collectMissingNodeTypes(workflows, getSupportedVersions) {
8
9
  const usage = (0, node_type_usage_1.collectNodeTypeUsage)(workflows.map(({ entity, sourceWorkflowId }) => ({
9
10
  workflowId: sourceWorkflowId,
@@ -25,6 +26,6 @@ function missingNodeTypeBlockingFailures(mode, missing) {
25
26
  return BLOCKING_FAILURES[mode](missing);
26
27
  }
27
28
  function workflowsWithMissingNodeTypes(missing) {
28
- return new Set(missing.flatMap(({ usedByWorkflows }) => usedByWorkflows));
29
+ return new Set(missing.flatMap(requirement_consumers_1.getWorkflowConsumerIds));
29
30
  }
30
31
  //# sourceMappingURL=missing-node-type-mode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-node-type-mode.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/missing-node-type-mode.ts"],"names":[],"mappings":";;;;;AAAA,uDAA6E;AAW7E,iCACC,SAA6B,EAC7B,oBAAgE;IAEhE,MAAM,KAAK,GAAG,IAAA,sCAAoB,EACjC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC;QAChD,UAAU,EAAE,gBAAgB;QAC5B,KAAK,EAAE,MAAM,CAAC,KAAK;KACnB,CAAC,CAAC,CACH,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,GAAG,EAAgC,CAAC;IAChE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QAC7C,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,eAAe,CAAC,GAAG,CAAC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;QACvD,CAAC;QACD,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;AACJ,CAAC;AAGD,MAAM,iBAAiB,GAGnB;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO;IAC1B,eAAe,EAAE,GAAG,EAAE,CAAC,EAAE;CACzB,CAAC;AAGF,yCACC,IAAyB,EACzB,OAAqC;IAErC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAGD,uCAA8C,OAAqC;IAClF,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;AAC3E,CAAC"}
1
+ {"version":3,"file":"missing-node-type-mode.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/missing-node-type-mode.ts"],"names":[],"mappings":";;;;;AAAA,uDAA6E;AAG7E,4EAA0E;AAS1E,iCACC,SAA6B,EAC7B,oBAAgE;IAEhE,MAAM,KAAK,GAAG,IAAA,sCAAoB,EACjC,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC;QAChD,UAAU,EAAE,gBAAgB;QAC5B,KAAK,EAAE,MAAM,CAAC,KAAK;KACnB,CAAC,CAAC,CACH,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,GAAG,EAAgC,CAAC;IAChE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QAC7C,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAChC,eAAe,CAAC,GAAG,CAAC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;QACvD,CAAC;QACD,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;AACJ,CAAC;AAGD,MAAM,iBAAiB,GAGnB;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO;IAC1B,eAAe,EAAE,GAAG,EAAE,CAAC,EAAE;CACzB,CAAC;AAGF,yCACC,IAAyB,EACzB,OAAqC;IAErC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC;AAGD,uCAA8C,OAAqC;IAClF,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,8CAAsB,CAAC,CAAC,CAAC;AACzD,CAAC"}
@@ -1,11 +1,8 @@
1
1
  import type { INode } from 'n8n-workflow';
2
- export interface WorkflowNodeTypeSource {
3
- workflowId: string;
4
- nodes: INode[];
5
- }
6
- export interface NodeTypeUsage {
7
- type: string;
8
- typeVersion: number;
9
- usedByWorkflows: string[];
10
- }
11
- export declare function collectNodeTypeUsage(workflows: WorkflowNodeTypeSource[]): NodeTypeUsage[];
2
+ import type { PackageNodeTypeRequirement } from '../../spec/requirements.schema';
3
+ import type { RequirementSource } from '../requirement-source';
4
+ export type NodeTypeSource = RequirementSource & {
5
+ nodes: Array<Pick<INode, 'type' | 'typeVersion'>>;
6
+ };
7
+ export type NodeTypeUsage = PackageNodeTypeRequirement;
8
+ export declare function collectNodeTypeUsage(sources: NodeTypeSource[]): NodeTypeUsage[];
@@ -1,27 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.collectNodeTypeUsage = collectNodeTypeUsage;
4
- function collectNodeTypeUsage(workflows) {
4
+ function collectNodeTypeUsage(sources) {
5
5
  const usage = new Map();
6
- for (const { workflowId, nodes } of workflows) {
7
- for (const node of nodes) {
6
+ for (const source of sources) {
7
+ for (const node of source.nodes) {
8
8
  const key = `${node.type}@${node.typeVersion}`;
9
- const entry = usage.get(key);
10
- if (entry) {
11
- entry.workflowIds.add(workflowId);
12
- continue;
13
- }
14
- usage.set(key, {
9
+ const entry = usage.get(key) ?? {
15
10
  type: node.type,
16
11
  typeVersion: node.typeVersion,
17
- workflowIds: new Set([workflowId]),
18
- });
12
+ workflowIds: new Set(),
13
+ agentIds: new Set(),
14
+ };
15
+ if ('workflowId' in source)
16
+ entry.workflowIds.add(source.workflowId);
17
+ else
18
+ entry.agentIds.add(source.agentId);
19
+ usage.set(key, entry);
19
20
  }
20
21
  }
21
- return [...usage.values()].map(({ type, typeVersion, workflowIds }) => ({
22
+ return [...usage.values()].map(({ type, typeVersion, workflowIds, agentIds }) => ({
22
23
  type,
23
24
  typeVersion,
24
- usedByWorkflows: [...workflowIds],
25
+ usedBy: [
26
+ ...[...workflowIds].map((id) => ({ kind: 'workflow', id })),
27
+ ...[...agentIds].map((id) => ({ kind: 'agent', id })),
28
+ ],
25
29
  }));
26
30
  }
27
31
  //# sourceMappingURL=node-type-usage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-type-usage.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/node-type-usage.ts"],"names":[],"mappings":";;;AAoBA,8BAAqC,SAAmC;IACvE,MAAM,KAAK,GAAG,IAAI,GAAG,EAA2E,CAAC;IAEjG,KAAK,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,SAAS,EAAE,CAAC;QAC/C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YAC1B,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YAC/C,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,KAAK,EAAE,CAAC;gBACX,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;gBAClC,SAAS;YACV,CAAC;YAED,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE;gBACd,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC;aAClC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;QACvE,IAAI;QACJ,WAAW;QACX,eAAe,EAAE,CAAC,GAAG,WAAW,CAAC;KACjC,CAAC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"node-type-usage.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/node-type-usage.ts"],"names":[],"mappings":";;;AAmBA,8BAAqC,OAAyB;IAC7D,MAAM,KAAK,GAAG,IAAI,GAAG,EAQlB,CAAC;IAEJ,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC9B,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjC,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YAC/C,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI;gBAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,WAAW,EAAE,IAAI,GAAG,EAAU;gBAC9B,QAAQ,EAAE,IAAI,GAAG,EAAU;aAC3B,CAAC;YACF,IAAI,YAAY,IAAI,MAAM;gBAAE,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;;gBAChE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACxC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACvB,CAAC;IACF,CAAC;IAED,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;QACjF,IAAI;QACJ,WAAW;QACX,MAAM,EAAE;YACP,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,GAAG,CAA6B,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;YACvF,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,CAA6B,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;SACjF;KACD,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -2,5 +2,8 @@ import { type INode } from 'n8n-workflow';
2
2
  import type { EntityReference } from '../../reference';
3
3
  import type { WorkflowSubWorkflowRequirement } from '../workflow.types';
4
4
  export declare const subWorkflowNodeReference: EntityReference<WorkflowSubWorkflowRequirement>;
5
- export declare function getStaticSubworkflowId(node: INode): string | undefined;
5
+ export declare function getStaticSubworkflowId(node: {
6
+ type: string;
7
+ parameters: Record<string, unknown>;
8
+ }): string | undefined;
6
9
  export declare function setStaticSubworkflowId(node: INode, workflowId: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"sub-workflow-node.reference.js","sourceRoot":"","sources":["../../../../../../src/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.ts"],"names":[],"mappings":";;;;;AAAA,+CAKsB;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B;IACrE,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IAC1C,IAAI,IAAA,qCAAsB,EAAC,MAAM,CAAC,EAAE,CAAC;QACpC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC;IAC3B,CAAC;SAAM,CAAC;QACP,IAAI,CAAC,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;IACzC,CAAC;AACF,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IACjC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAE7B,IAAI,OAAO,KAAK,EAAE,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IAChE,OAAO,OAAO,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"sub-workflow-node.reference.js","sourceRoot":"","sources":["../../../../../../src/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.ts"],"names":[],"mappings":";;;;;AAAA,+CAKsB;AAUT,QAAA,wBAAwB,GAAoD;IACxF,OAAO,CAAC,QAAQ;QACf,MAAM,YAAY,GAAqC,EAAE,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;YACzC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;YAC1D,IAAI,oBAAoB,EAAE,CAAC;gBAC1B,YAAY,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC;YACtE,CAAC;QACF,CAAC;QACD,OAAO,YAAY,CAAC;IACrB,CAAC;IACD,KAAK,CAAC,QAAQ,EAAE,QAAQ;QACvB,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;YACzC,MAAM,SAAS,GAAG,sBA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1,2 @@
1
- import type { WorkflowSubWorkflowRequirement } from './workflow.types';
2
- export declare function assertStaticSubWorkflowsIncluded(workflowRequirements: WorkflowSubWorkflowRequirement[], exportedWorkflowIds: Set<string>): void;
1
+ import type { WorkflowDependencyRequirement } from './workflow.types';
2
+ export declare function assertStaticSubWorkflowsIncluded(workflowRequirements: WorkflowDependencyRequirement[], exportedWorkflowIds: Set<string>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"static-sub-workflow-requirements.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.ts"],"names":[],"mappings":";;;AAAA,oEAAqE;AAGrE,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAE3C,0CACC,oBAAsD,EACtD,mBAAgC;IAEhC,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAU,CAAC;IAEhD,KAAK,MAAM,WAAW,IAAI,oBAAoB,EAAE,CAAC;QAChD,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAChE,qBAAqB,CAAC,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QAC7D,CAAC;IACF,CAAC;IAED,IAAI,qBAAqB,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO;IAE7C,MAAM,oBAAoB,GAAG,CAAC,GAAG,qBAAqB,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,+BAA+B,CAAC,CAAC;IAClG,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,GAAG,oBAAoB,CAAC,MAAM,CAAC;IAC9E,MAAM,eAAe,GAAG,qBAAqB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;IAEzF,MAAM,IAAI,iDAAyB,CAClC,GAAG,qBAAqB,CAAC,IAAI,aAAa,eAAe,+CAA+C,EACxG;QACC,WAAW,EAAE,6CAA6C,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,GACxF,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,YAAY,OAAO,CAAC,CAAC,CAAC,EACnD,EAAE;KACF,CACD,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"static-sub-workflow-requirements.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.ts"],"names":[],"mappings":";;;AAAA,oEAAqE;AAGrE,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAE3C,0CACC,oBAAqD,EACrD,mBAAgC;IAEhC,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAU,CAAC;IAEhD,KAAK,MAAM,WAAW,IAAI,oBAAoB,EAAE,CAAC;QAChD,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAChE,qBAAqB,CAAC,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QAC7D,CAAC;IACF,CAAC;IAED,IAAI,qBAAqB,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO;IAE7C,MAAM,oBAAoB,GAAG,CAAC,GAAG,qBAAqB,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,+BAA+B,CAAC,CAAC;IAClG,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,GAAG,oBAAoB,CAAC,MAAM,CAAC;IAC9E,MAAM,eAAe,GAAG,qBAAqB,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC;IAEzF,MAAM,IAAI,iDAAyB,CAClC,GAAG,qBAAqB,CAAC,IAAI,aAAa,eAAe,+CAA+C,EACxG;QACC,WAAW,EAAE,6CAA6C,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,GACxF,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,YAAY,OAAO,CAAC,CAAC,CAAC,EACnD,EAAE;KACF,CACD,CAAC;AACH,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.orderBySubWorkflowDependencies = orderBySubWorkflowDependencies;
4
+ const requirement_consumers_1 = require("../../spec/requirement-consumers");
4
5
  function orderBySubWorkflowDependencies(workflows, requirements) {
5
6
  if (!requirements?.length)
6
7
  return workflows;
@@ -10,7 +11,7 @@ function orderBySubWorkflowDependencies(workflows, requirements) {
10
11
  for (const requirement of requirements) {
11
12
  if (!workflowsById.has(requirement.id))
12
13
  continue;
13
- for (const callerId of requirement.usedByWorkflows) {
14
+ for (const callerId of (0, requirement_consumers_1.getWorkflowConsumerIds)(requirement)) {
14
15
  if (!workflowsById.has(callerId) || callerId === requirement.id)
15
16
  continue;
16
17
  const existing = callers.get(requirement.id);
@@ -1 +1 @@
1
- {"version":3,"file":"sub-workflow-ordering.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/sub-workflow-ordering.ts"],"names":[],"mappings":";;;AAKA,wCACC,SAAc,EACd,YAAsD;IAEtD,IAAI,CAAC,YAAY,EAAE,MAAM;QAAE,OAAO,SAAS,CAAC;IAE5C,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAIlG,MAAM,OAAO,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC5C,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAClC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,CAC3D,CAAC;IAEF,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAAE,SAAS;QACjD,KAAK,MAAM,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,IAAI,OAAO,KAAK,CAAC;gBAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC,CAAC;QAC7D,CAAC;IACF,CAAC;IAGD,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC7E,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAClC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpE,CAAC;IACF,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import type { User } from '@n8n/db';
2
2
  import { WorkflowFinderService } from '../../../../workflows/workflow-finder.service';
3
3
  import type { WorkflowSubWorkflowRequirement } from './workflow.types';
4
- import type { WorkflowVersionPolicy } from '../../n8n-packages.types';
4
+ import type { ExportVersionPolicy } from '../../n8n-packages.types';
5
5
  export interface WorkflowDependencyResolveRequest {
6
6
  user: User;
7
7
  workflowIds: string[];
8
8
  traversal?: 'transitive' | 'direct';
9
- workflowVersionPolicy: WorkflowVersionPolicy;
9
+ versionPolicy: ExportVersionPolicy;
10
10
  }
11
11
  export declare class WorkflowDependencyResolver {
12
12
  private readonly workflowFinder;
@@ -20,7 +20,7 @@ let WorkflowDependencyResolver = class WorkflowDependencyResolver {
20
20
  }
21
21
  async resolve(request) {
22
22
  const traverse = (request.traversal ?? 'transitive') === 'transitive';
23
- const policy = request.workflowVersionPolicy;
23
+ const policy = request.versionPolicy;
24
24
  const queue = [...new Set(request.workflowIds)];
25
25
  const seenWorkflowIds = new Set(queue);
26
26
  const requirements = [];
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-dependency-resolver.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAElC,iFAA4E;AAE5E,8FAAyF;AACzF,uEAA2F;AAiBpF,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACtC,YAA6B,cAAqC;8BAArC,cAAc;IAA0B,CAAC;IAEtE,KAAK,CAAC,OAAO,CACZ,OAAyC;QAEzC,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,SAAS,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC;QACtE,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;QAC7C,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;QAChD,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QACvC,MAAM,YAAY,GAAqC,EAAE,CAAC;QAE1D,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzB,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAEpC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,yBAAyB,CACjE,WAAW,EACX,OAAO,CAAC,IAAI,EACZ,CAAC,iBAAiB,CAAC,EACnB,EAAE,oBAAoB,EAAE,IAAA,4CAAkB,EAAC,MAAM,CAAC,EAAE,CACpD,CAAC;YACF,MAAM,SAAS,GAAG,IAAA,oDAA0B,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC7D,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;YAEpF,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;gBACtC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;gBAI/C,IAAI,CAAC,QAAQ;oBAAE,SAAS;gBAExB,MAAM,qBAAqB,GAAG,IAAA,2DAA2B,EAAC,QAAQ,CAAC,CAAC;gBACpE,YAAY,CAAC,IAAI,CAAC,GAAG,qBAAqB,CAAC,CAAC;gBAE5C,IAAI,CAAC,QAAQ;oBAAE,SAAS;gBAExB,KAAK,MAAM,EAAE,oBAAoB,EAAE,IAAI,qBAAqB,EAAE,CAAC;oBAC9D,IAAI,eAAe,CAAC,GAAG,CAAC,oBAAoB,CAAC;wBAAE,SAAS;oBAExD,eAAe,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;oBAC1C,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;gBAClC,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,YAAY,CAAC;IACrB,CAAC;CACD,CAAA;;qCA/CY,0BAA0B;IADtC,IAAA,YAAO,GAAE;qCAEoC,+CAAqB;GADtD,0BAA0B,CA+CtC"}
1
+ {"version":3,"file":"workflow-dependency-resolver.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAElC,iFAA4E;AAE5E,8FAAyF;AACzF,uEAA2F;AAiBpF,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACtC,YAA6B,cAAqC;8BAArC,cAAc;IAA0B,CAAC;IAEtE,KAAK,CAAC,OAAO,CACZ,OAAyC;QAEzC,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,SAAS,IAAI,YAAY,CAAC,KAAK,YAAY,CAAC;QACtE,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;QACrC,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;QAChD,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AC;QACF,CAAC;QAED,OAAO,YAAY,CAAC;IACrB,CAAC;CACD,CAAA;;qCA/CY,0BAA0B;IADtC,IAAA,YAAO,GAAE;qCAEoC,+CAAqB;GADtD,0BAA0B,CA+CtC"}
@@ -1,11 +1,11 @@
1
1
  import type { User } from '@n8n/db';
2
2
  import { WorkflowFinderService } from '../../../../workflows/workflow-finder.service';
3
- import type { WorkflowSubWorkflowRequirement } from './workflow.types';
3
+ import type { WorkflowDependencyRequirement } from './workflow.types';
4
4
  import type { ManifestEntry } from '../../spec/manifest.schema';
5
5
  import type { PackageWorkflowRequirement } from '../../spec/requirements.schema';
6
6
  export interface WorkflowRequirementExportRequest {
7
7
  user: User;
8
- requirements: WorkflowSubWorkflowRequirement[];
8
+ requirements: WorkflowDependencyRequirement[];
9
9
  workflows: ManifestEntry[];
10
10
  }
11
11
  export interface WorkflowRequirementExportResult {
@@ -12,28 +12,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.WorkflowRequirementExporter = void 0;
13
13
  const di_1 = require("@n8n/di");
14
14
  const workflow_finder_service_1 = require("../../../../workflows/workflow-finder.service");
15
+ const requirement_source_1 = require("../requirement-source");
15
16
  let WorkflowRequirementExporter = class WorkflowRequirementExporter {
16
17
  constructor(workflowFinder) {
17
18
  this.workflowFinder = workflowFinder;
18
19
  }
19
20
  async export(request) {
20
21
  const workflowsById = new Map(request.workflows.map((workflow) => [workflow.id, workflow]));
21
- const usedByWorkflowsByReferencedId = new Map();
22
- for (const requirement of request.requirements) {
23
- const usedByWorkflows = usedByWorkflowsByReferencedId.get(requirement.referencedWorkflowId) ?? [];
24
- if (!usedByWorkflows.includes(requirement.workflowId)) {
25
- usedByWorkflows.push(requirement.workflowId);
26
- }
27
- usedByWorkflowsByReferencedId.set(requirement.referencedWorkflowId, usedByWorkflows);
28
- }
29
- const missingWorkflowNamesById = await this.findMissingReferencedWorkflowNames(request.user, [...usedByWorkflowsByReferencedId.keys()].filter((id) => !workflowsById.has(id)));
30
- const requirements = [...usedByWorkflowsByReferencedId].map(([referencedWorkflowId, usedByWorkflows]) => {
22
+ const usageByReferencedId = (0, requirement_source_1.groupRequirementUsage)(request.requirements, ({ referencedWorkflowId }) => referencedWorkflowId);
23
+ const missingWorkflowNamesById = await this.findMissingReferencedWorkflowNames(request.user, [...usageByReferencedId.keys()].filter((id) => !workflowsById.has(id)));
24
+ const requirements = [...usageByReferencedId].map(([referencedWorkflowId, { usedBy }]) => {
31
25
  const name = workflowsById.get(referencedWorkflowId)?.name ??
32
26
  missingWorkflowNamesById.get(referencedWorkflowId);
33
27
  return {
34
28
  id: referencedWorkflowId,
35
29
  ...(name ? { name } : {}),
36
- usedByWorkflows,
30
+ usedBy,
37
31
  };
38
32
  });
39
33
  return { requirements };
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-requirement.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAElC,iFAA4E;AAiBrE,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,YAA6B,cAAqC;8BAArC,cAAc;IAA0B,CAAC;IAEtE,KAAK,CAAC,MAAM,CACX,OAAyC;QAEzC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC5F,MAAM,6BAA6B,GAAG,IAAI,GAAG,EAAoB,CAAC;QAElE,KAAK,MAAM,WAAW,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YAChD,MAAM,eAAe,GACpB,6BAA6B,CAAC,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC,IAAI,EAAE,CAAC;YAE3E,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC;gBACv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E,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;CACD,CAAA;;sCA1DY,2BAA2B;IADvC,IAAA,YAAO,GAAE;qCAEoC,+CAAqB;GADtD,2BAA2B,CA0DvC"}
1
+ {"version":3,"file":"workflow-requirement.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAElC,iFAA4E;AAK5E,8DAA8D;AAavD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,YAA6B,cAAqC;8BAArC,cAAc;IAA0B,CAAC;IAEtE,KAAK,CAAC,MAAM,CACX,OAAyC;QAEzC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC5F,MAAM,mBAAmB,GAAG,IAAA,0CAAqB,EAChD,OAAO,CAAC,YAAY,EACpB,CAAC,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAAC,oBAAoB,CAClD,CAAC;QAEF,MAAM,wBAAwB,GAAG,MAAM,IAAI,CAAC,kCAAkC,CAC7E,OAAO,CAAC,IAAI,EACZ,CAAC,GAAG,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CACtE,CAAC;QAEF,MAAM,YAAY,GAAG,CAAC,GAAG,mBAAmB,CAAC,CAAC,GAAG,CAChD,CAAC,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,CAAC,EAA8B,EAAE;YAClE,MAAM,IAAI,GACT,aAAa,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,IAAI;gBAC7C,wBAAwB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;YAEpD,OAAO;gBACN,EAAE,EAAE,oBAAoB;gBACxB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACzB,MAAM;aACN,CAAC;QACH,CAAC,CACD,CAAC;QAEF,OAAO,EAAE,YAAY,EAAE,CAAC;IACzB,CAAC;IAOO,KAAK,CAAC,kCAAkC,CAC/C,IAAU,EACV,WAAqB;QAErB,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,GAAG,EAAE,CAAC;QAE/C,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,yBAAyB,CAAC,WAAW,EAAE,IAAI,EAAE;YACxF,iBAAiB;SACjB,CAAC,CAAC;QACH,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;CACD,CAAA;;sCAlDY,2BAA2B;IADvC,IAAA,YAAO,GAAE;qCAEoC,+CAAqB;GADtD,2BAA2B,CAkDvC"}
@@ -1,4 +1,4 @@
1
1
  import { WorkflowEntity } from '@n8n/db';
2
- import { WorkflowVersionPolicy } from '../../n8n-packages.types';
3
- export declare function needsActiveVersion(policy: WorkflowVersionPolicy): boolean;
4
- export declare function applyWorkflowVersionPolicy(workflows: WorkflowEntity[], policy: WorkflowVersionPolicy): WorkflowEntity[];
2
+ import { ExportVersionPolicy } from '../../n8n-packages.types';
3
+ export declare function needsActiveVersion(policy: ExportVersionPolicy): boolean;
4
+ export declare function applyWorkflowVersionPolicy(workflows: WorkflowEntity[], policy: ExportVersionPolicy): WorkflowEntity[];