n8n 2.27.4 → 2.28.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 (638) hide show
  1. package/dist/active-workflow-manager.js +4 -1
  2. package/dist/active-workflow-manager.js.map +1 -1
  3. package/dist/agent-library-bundle.js +7 -3
  4. package/dist/build.tsbuildinfo +1 -1
  5. package/dist/commands/audit.js +6 -0
  6. package/dist/commands/audit.js.map +1 -1
  7. package/dist/commands/base-command.d.ts +1 -0
  8. package/dist/commands/base-command.js +36 -2
  9. package/dist/commands/base-command.js.map +1 -1
  10. package/dist/commands/start.js +18 -9
  11. package/dist/commands/start.js.map +1 -1
  12. package/dist/commands/worker.js +2 -0
  13. package/dist/commands/worker.js.map +1 -1
  14. package/dist/constants.d.ts +1 -0
  15. package/dist/constants.js +5 -1
  16. package/dist/constants.js.map +1 -1
  17. package/dist/controllers/api-keys.controller.d.ts +17 -0
  18. package/dist/controllers/api-keys.controller.js +19 -0
  19. package/dist/controllers/api-keys.controller.js.map +1 -1
  20. package/dist/controllers/e2e.controller.js +1 -0
  21. package/dist/controllers/e2e.controller.js.map +1 -1
  22. package/dist/controllers/telemetry.controller.d.ts +3 -1
  23. package/dist/controllers/telemetry.controller.js +17 -7
  24. package/dist/controllers/telemetry.controller.js.map +1 -1
  25. package/dist/controllers/users.controller.d.ts +1 -1
  26. package/dist/credentials/credentials.service.d.ts +5 -0
  27. package/dist/credentials/credentials.service.js +17 -3
  28. package/dist/credentials/credentials.service.js.map +1 -1
  29. package/dist/evaluation.ee/evaluation-config.controller.d.ts +7 -1
  30. package/dist/evaluation.ee/evaluation-config.controller.js +30 -1
  31. package/dist/evaluation.ee/evaluation-config.controller.js.map +1 -1
  32. package/dist/evaluation.ee/evaluation-dataset.service.d.ts +24 -0
  33. package/dist/evaluation.ee/evaluation-dataset.service.js +185 -0
  34. package/dist/evaluation.ee/evaluation-dataset.service.js.map +1 -0
  35. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +6 -6
  36. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  37. package/dist/evaluation.ee/test-runner/workflow-compiler.service.d.ts +2 -0
  38. package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +27 -0
  39. package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -1
  40. package/dist/eventbus/event-message-classes/index.d.ts +2 -2
  41. package/dist/eventbus/event-message-classes/index.js +2 -0
  42. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  43. package/dist/events/event.service.d.ts +2 -1
  44. package/dist/events/event.service.js.map +1 -1
  45. package/dist/events/maps/instance-ai.event-map.d.ts +15 -0
  46. package/dist/events/maps/instance-ai.event-map.js +3 -0
  47. package/dist/events/maps/instance-ai.event-map.js.map +1 -0
  48. package/dist/events/maps/relay.event-map.d.ts +8 -1
  49. package/dist/events/relays/log-streaming.event-relay.d.ts +2 -0
  50. package/dist/events/relays/log-streaming.event-relay.js +26 -0
  51. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  52. package/dist/events/relays/telemetry.event-relay.d.ts +1 -0
  53. package/dist/events/relays/telemetry.event-relay.js +11 -0
  54. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  55. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +1 -0
  56. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  57. package/dist/execution-lifecycle/shared/shared-hook-functions.d.ts +2 -1
  58. package/dist/execution-lifecycle/shared/shared-hook-functions.js +8 -3
  59. package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
  60. package/dist/executions/execution-data/azure-store.ee.d.ts +15 -0
  61. package/dist/executions/execution-data/azure-store.ee.js +116 -0
  62. package/dist/executions/execution-data/azure-store.ee.js.map +1 -0
  63. package/dist/executions/execution-data/db-store.d.ts +7 -0
  64. package/dist/executions/execution-data/db-store.js +21 -0
  65. package/dist/executions/execution-data/db-store.js.map +1 -1
  66. package/dist/executions/execution-data/types.d.ts +3 -0
  67. package/dist/executions/execution-persistence.d.ts +17 -3
  68. package/dist/executions/execution-persistence.js +121 -18
  69. package/dist/executions/execution-persistence.js.map +1 -1
  70. package/dist/executions/execution.service.d.ts +3 -1
  71. package/dist/executions/execution.service.js +10 -4
  72. package/dist/executions/execution.service.js.map +1 -1
  73. package/dist/executions/sum-binary-data-bytes.d.ts +2 -0
  74. package/dist/executions/sum-binary-data-bytes.js +46 -0
  75. package/dist/executions/sum-binary-data-bytes.js.map +1 -0
  76. package/dist/interfaces.d.ts +22 -0
  77. package/dist/license/license.service.d.ts +3 -1
  78. package/dist/license/license.service.js +36 -51
  79. package/dist/license/license.service.js.map +1 -1
  80. package/dist/metrics/prometheus/execution-data-metrics.service.js +2 -1
  81. package/dist/metrics/prometheus/execution-data-metrics.service.js.map +1 -1
  82. package/dist/metrics/prometheus/instance-ai-metrics.service.d.ts +12 -0
  83. package/dist/metrics/prometheus/instance-ai-metrics.service.js +101 -0
  84. package/dist/metrics/prometheus/instance-ai-metrics.service.js.map +1 -0
  85. package/dist/metrics/prometheus/instance-role-metrics.service.js +2 -2
  86. package/dist/metrics/prometheus/instance-role-metrics.service.js.map +1 -1
  87. package/dist/metrics/prometheus/prometheus.service.d.ts +4 -1
  88. package/dist/metrics/prometheus/prometheus.service.js +11 -2
  89. package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
  90. package/dist/metrics/prometheus/webhook-and-form-metrics.service.d.ts +23 -0
  91. package/dist/metrics/prometheus/webhook-and-form-metrics.service.js +72 -0
  92. package/dist/metrics/prometheus/webhook-and-form-metrics.service.js.map +1 -0
  93. package/dist/metrics/prometheus/workflow-info-metrics.service.d.ts +12 -0
  94. package/dist/metrics/prometheus/workflow-info-metrics.service.js +66 -0
  95. package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -0
  96. package/dist/middlewares/list-query/dtos/workflow.filter.dto.d.ts +2 -0
  97. package/dist/middlewares/list-query/dtos/workflow.filter.dto.js +12 -0
  98. package/dist/middlewares/list-query/dtos/workflow.filter.dto.js.map +1 -1
  99. package/dist/modules/agents/agent-execution.service.d.ts +8 -1
  100. package/dist/modules/agents/agent-execution.service.js +26 -2
  101. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  102. package/dist/modules/agents/agent-knowledge-commands.d.ts +27 -0
  103. package/dist/modules/agents/agent-knowledge-commands.js +415 -0
  104. package/dist/modules/agents/agent-knowledge-commands.js.map +1 -0
  105. package/dist/modules/agents/agent-knowledge-gate.d.ts +2 -0
  106. package/dist/modules/agents/agent-knowledge-gate.js +9 -0
  107. package/dist/modules/agents/agent-knowledge-gate.js.map +1 -0
  108. package/dist/modules/agents/agent-knowledge-retrieval.d.ts +184 -0
  109. package/dist/modules/agents/agent-knowledge-retrieval.js +172 -0
  110. package/dist/modules/agents/agent-knowledge-retrieval.js.map +1 -0
  111. package/dist/modules/agents/agent-knowledge-sandbox.service.d.ts +40 -0
  112. package/dist/modules/agents/agent-knowledge-sandbox.service.js +591 -0
  113. package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -0
  114. package/dist/modules/agents/agent-knowledge-storage.d.ts +21 -0
  115. package/dist/modules/agents/agent-knowledge-storage.js +89 -0
  116. package/dist/modules/agents/agent-knowledge-storage.js.map +1 -0
  117. package/dist/modules/agents/agent-knowledge.service.d.ts +25 -5
  118. package/dist/modules/agents/agent-knowledge.service.js +230 -7
  119. package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
  120. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +6 -2
  121. package/dist/modules/agents/agent-runtime-reconstruction.service.js +43 -10
  122. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  123. package/dist/modules/agents/agent-sandbox.controller.d.ts +18 -0
  124. package/dist/modules/agents/agent-sandbox.controller.js +71 -0
  125. package/dist/modules/agents/agent-sandbox.controller.js.map +1 -0
  126. package/dist/modules/agents/agent-telemetry.d.ts +5 -0
  127. package/dist/modules/agents/agent-telemetry.js +60 -0
  128. package/dist/modules/agents/agent-telemetry.js.map +1 -0
  129. package/dist/modules/agents/agents.controller.d.ts +4 -4
  130. package/dist/modules/agents/agents.controller.js +24 -23
  131. package/dist/modules/agents/agents.controller.js.map +1 -1
  132. package/dist/modules/agents/agents.module.d.ts +1 -1
  133. package/dist/modules/agents/agents.module.js +7 -1
  134. package/dist/modules/agents/agents.module.js.map +1 -1
  135. package/dist/modules/agents/agents.service.d.ts +5 -2
  136. package/dist/modules/agents/agents.service.js +68 -15
  137. package/dist/modules/agents/agents.service.js.map +1 -1
  138. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +1 -1
  139. package/dist/modules/agents/builder/agents-builder-prompts.js +7 -0
  140. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  141. package/dist/modules/agents/builder/agents-builder-settings.service.d.ts +12 -6
  142. package/dist/modules/agents/builder/agents-builder-settings.service.js +29 -12
  143. package/dist/modules/agents/builder/agents-builder-settings.service.js.map +1 -1
  144. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +7 -1
  145. package/dist/modules/agents/builder/agents-builder-tools.service.js +105 -6
  146. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  147. package/dist/modules/agents/builder/agents-builder.service.d.ts +7 -0
  148. package/dist/modules/agents/builder/agents-builder.service.js +24 -6
  149. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
  150. package/dist/modules/agents/builder/builder-tool-names.d.ts +1 -0
  151. package/dist/modules/agents/builder/builder-tool-names.js +1 -0
  152. package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
  153. package/dist/modules/agents/builder/from-ai-node-parameters.d.ts +7 -0
  154. package/dist/modules/agents/builder/from-ai-node-parameters.js +43 -0
  155. package/dist/modules/agents/builder/from-ai-node-parameters.js.map +1 -0
  156. package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +10 -0
  157. package/dist/modules/agents/builder/get-resource-locator-options.tool.js +148 -0
  158. package/dist/modules/agents/builder/get-resource-locator-options.tool.js.map +1 -0
  159. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
  160. package/dist/modules/agents/builder/prompts/tools.prompt.js +11 -0
  161. package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
  162. package/dist/modules/agents/builder/skills/index.js +2 -0
  163. package/dist/modules/agents/builder/skills/index.js.map +1 -1
  164. package/dist/modules/agents/builder/skills/resource-locators.skill.d.ts +2 -0
  165. package/dist/modules/agents/builder/skills/resource-locators.skill.js +107 -0
  166. package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -0
  167. package/dist/modules/agents/entities/agent-file.entity.d.ts +11 -0
  168. package/dist/modules/agents/entities/agent-file.entity.js +50 -0
  169. package/dist/modules/agents/entities/agent-file.entity.js.map +1 -0
  170. package/dist/modules/agents/execution-recorder.js +4 -7
  171. package/dist/modules/agents/execution-recorder.js.map +1 -1
  172. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -1
  173. package/dist/modules/agents/integrations/agent-chat-bridge.js +7 -9
  174. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  175. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +7 -3
  176. package/dist/modules/agents/integrations/agent-chat-integration.js +5 -0
  177. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  178. package/dist/modules/agents/integrations/integration-action-executor.d.ts +704 -0
  179. package/dist/modules/agents/integrations/integration-action-executor.js +36 -22
  180. package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
  181. package/dist/modules/agents/integrations/integration-context-query-executor.js +23 -4
  182. package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -1
  183. package/dist/modules/agents/integrations/integration-helpers.d.ts +12 -1
  184. package/dist/modules/agents/integrations/integration-helpers.js +17 -8
  185. package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
  186. package/dist/modules/agents/integrations/integration-message-context.service.js +2 -4
  187. package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
  188. package/dist/modules/agents/integrations/integration-tools.d.ts +11 -3
  189. package/dist/modules/agents/integrations/integration-tools.js +19 -118
  190. package/dist/modules/agents/integrations/integration-tools.js.map +1 -1
  191. package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +3 -1
  192. package/dist/modules/agents/integrations/platforms/linear-integration.js +22 -6
  193. package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -1
  194. package/dist/modules/agents/integrations/platforms/linear-operations.js +19 -29
  195. package/dist/modules/agents/integrations/platforms/linear-operations.js.map +1 -1
  196. package/dist/modules/agents/integrations/platforms/n8n-chat-integration.d.ts +20 -0
  197. package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js +99 -0
  198. package/dist/modules/agents/integrations/platforms/n8n-chat-integration.js.map +1 -0
  199. package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +2 -1
  200. package/dist/modules/agents/integrations/platforms/slack-integration.js +5 -0
  201. package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
  202. package/dist/modules/agents/integrations/platforms/slack-operations.js +3 -2
  203. package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -1
  204. package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +11 -2
  205. package/dist/modules/agents/integrations/platforms/telegram-integration.js +43 -14
  206. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  207. package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +3 -1
  208. package/dist/modules/agents/integrations/slack-app-setup.service.js +19 -11
  209. package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
  210. package/dist/modules/agents/json-config/from-json-config.d.ts +2 -1
  211. package/dist/modules/agents/json-config/from-json-config.js +11 -1
  212. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  213. package/dist/modules/agents/repositories/agent-file.repository.d.ts +8 -0
  214. package/dist/modules/agents/repositories/agent-file.repository.js +38 -0
  215. package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -0
  216. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +5 -0
  217. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
  218. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.d.ts +90 -0
  219. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js +209 -0
  220. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js.map +1 -0
  221. package/dist/modules/agents/tools/workflow-tool-factory.js +6 -8
  222. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  223. package/dist/modules/agents/tracing/builder-telemetry.d.ts +6 -1
  224. package/dist/modules/agents/tracing/builder-telemetry.js +26 -5
  225. package/dist/modules/agents/tracing/builder-telemetry.js.map +1 -1
  226. package/dist/modules/agents/utils/agent-memory-scope.d.ts +1 -0
  227. package/dist/modules/agents/utils/agent-memory-scope.js +6 -1
  228. package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
  229. package/dist/modules/agents/utils/execution-to-message-mapper.js +54 -5
  230. package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
  231. package/dist/modules/agents/utils/messages-envelope.d.ts +7 -0
  232. package/dist/modules/agents/utils/messages-envelope.js +97 -0
  233. package/dist/modules/agents/utils/messages-envelope.js.map +1 -0
  234. package/dist/modules/community-packages/community-packages.service.d.ts +3 -1
  235. package/dist/modules/community-packages/community-packages.service.js +17 -9
  236. package/dist/modules/community-packages/community-packages.service.js.map +1 -1
  237. package/dist/modules/community-packages/npm-utils.js +13 -6
  238. package/dist/modules/community-packages/npm-utils.js.map +1 -1
  239. package/dist/modules/data-table/multer-upload-middleware.d.ts +8 -1
  240. package/dist/modules/data-table/multer-upload-middleware.js +79 -30
  241. package/dist/modules/data-table/multer-upload-middleware.js.map +1 -1
  242. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.d.ts +2 -0
  243. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.js +19 -0
  244. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.js.map +1 -0
  245. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.d.ts +20 -0
  246. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.js +12 -0
  247. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.js.map +1 -0
  248. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.d.ts +12 -0
  249. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js +85 -0
  250. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js.map +1 -0
  251. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.d.ts +10 -0
  252. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.js +78 -0
  253. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.js.map +1 -0
  254. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +3 -1
  255. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +17 -2
  256. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
  257. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.d.ts +4 -2
  258. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js +20 -40
  259. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js.map +1 -1
  260. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.d.ts +21 -0
  261. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js +77 -0
  262. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js.map +1 -0
  263. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.d.ts +3 -1
  264. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js +18 -39
  265. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js.map +1 -1
  266. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +4 -2
  267. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +46 -2
  268. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
  269. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +3 -0
  270. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
  271. package/dist/modules/dynamic-credentials.ee/services/authorize-intent.service.d.ts +14 -0
  272. package/dist/modules/dynamic-credentials.ee/services/authorize-intent.service.js +39 -0
  273. package/dist/modules/dynamic-credentials.ee/services/authorize-intent.service.js.map +1 -0
  274. package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.d.ts +7 -3
  275. package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js +23 -21
  276. package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js.map +1 -1
  277. package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.d.ts +4 -0
  278. package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js +111 -63
  279. package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js.map +1 -1
  280. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +0 -1
  281. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
  282. package/dist/modules/dynamic-credentials.ee/services/index.d.ts +1 -0
  283. package/dist/modules/dynamic-credentials.ee/services/index.js +1 -0
  284. package/dist/modules/dynamic-credentials.ee/services/index.js.map +1 -1
  285. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.d.ts +3 -1
  286. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +4 -1
  287. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
  288. package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js.map +1 -1
  289. package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.js.map +1 -1
  290. package/dist/modules/external-secrets.ee/providers/infisical.d.ts +4 -1
  291. package/dist/modules/external-secrets.ee/providers/infisical.js +45 -30
  292. package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
  293. package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
  294. package/dist/modules/external-secrets.ee/providers/vault.d.ts +5 -1
  295. package/dist/modules/external-secrets.ee/providers/vault.js +66 -61
  296. package/dist/modules/external-secrets.ee/providers/vault.js.map +1 -1
  297. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +2 -2
  298. package/dist/modules/insights/insights.service.d.ts +2 -2
  299. package/dist/modules/instance-ai/entities/index.d.ts +1 -0
  300. package/dist/modules/instance-ai/entities/index.js +3 -1
  301. package/dist/modules/instance-ai/entities/index.js.map +1 -1
  302. package/dist/modules/instance-ai/entities/instance-ai-thread-grant.entity.d.ts +9 -0
  303. package/dist/modules/instance-ai/entities/instance-ai-thread-grant.entity.js +45 -0
  304. package/dist/modules/instance-ai/entities/instance-ai-thread-grant.entity.js.map +1 -0
  305. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +3 -3
  306. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +2 -2
  307. package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
  308. package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +2 -2
  309. package/dist/modules/instance-ai/eval/llm-wire-server.js +5 -5
  310. package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
  311. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.d.ts +6 -0
  312. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js +29 -0
  313. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js.map +1 -0
  314. package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +26 -0
  315. package/dist/modules/instance-ai/instance-ai-credit.service.js +210 -0
  316. package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -0
  317. package/dist/modules/instance-ai/instance-ai-model.service.d.ts +20 -0
  318. package/dist/modules/instance-ai/instance-ai-model.service.js +135 -0
  319. package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -0
  320. package/dist/modules/instance-ai/instance-ai-run-probe.d.ts +5 -0
  321. package/dist/modules/instance-ai/instance-ai-run-probe.js +26 -0
  322. package/dist/modules/instance-ai/instance-ai-run-probe.js.map +1 -0
  323. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +2 -0
  324. package/dist/modules/instance-ai/instance-ai-settings.service.js +12 -1
  325. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  326. package/dist/modules/instance-ai/instance-ai-temporary-workflow.service.d.ts +15 -0
  327. package/dist/modules/instance-ai/instance-ai-temporary-workflow.service.js +140 -0
  328. package/dist/modules/instance-ai/instance-ai-temporary-workflow.service.js.map +1 -0
  329. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +4 -2
  330. package/dist/modules/instance-ai/instance-ai.adapter.service.js +70 -28
  331. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  332. package/dist/modules/instance-ai/instance-ai.controller.d.ts +20 -2
  333. package/dist/modules/instance-ai/instance-ai.controller.js +62 -4
  334. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  335. package/dist/modules/instance-ai/instance-ai.module.d.ts +2 -1
  336. package/dist/modules/instance-ai/instance-ai.module.js +3 -0
  337. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  338. package/dist/modules/instance-ai/instance-ai.service.d.ts +42 -22
  339. package/dist/modules/instance-ai/instance-ai.service.js +411 -380
  340. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  341. package/dist/modules/instance-ai/internal-messages.d.ts +4 -0
  342. package/dist/modules/instance-ai/internal-messages.js +24 -3
  343. package/dist/modules/instance-ai/internal-messages.js.map +1 -1
  344. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.d.ts +1 -1
  345. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js +2 -6
  346. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -1
  347. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +3 -0
  348. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +44 -0
  349. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
  350. package/dist/modules/instance-ai/message-parser.js +2 -0
  351. package/dist/modules/instance-ai/message-parser.js.map +1 -1
  352. package/dist/modules/instance-ai/observability.d.ts +13 -0
  353. package/dist/modules/instance-ai/observability.js +23 -0
  354. package/dist/modules/instance-ai/observability.js.map +1 -0
  355. package/dist/modules/instance-ai/repositories/index.d.ts +1 -0
  356. package/dist/modules/instance-ai/repositories/index.js +3 -1
  357. package/dist/modules/instance-ai/repositories/index.js.map +1 -1
  358. package/dist/modules/instance-ai/repositories/instance-ai-thread-grant.repository.d.ts +7 -0
  359. package/dist/modules/instance-ai/repositories/instance-ai-thread-grant.repository.js +40 -0
  360. package/dist/modules/instance-ai/repositories/instance-ai-thread-grant.repository.js.map +1 -0
  361. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +2 -1
  362. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
  363. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +4 -6
  364. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
  365. package/dist/modules/instance-ai/trigger-run-data.d.ts +8 -0
  366. package/dist/modules/instance-ai/trigger-run-data.js +28 -0
  367. package/dist/modules/instance-ai/trigger-run-data.js.map +1 -0
  368. package/dist/modules/instance-ai/web-research/fetch-and-extract.d.ts +2 -3
  369. package/dist/modules/instance-ai/web-research/fetch-and-extract.js +34 -44
  370. package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
  371. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.d.ts +2 -1
  372. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.js +2 -2
  373. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.js.map +1 -1
  374. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.d.ts +8 -8
  375. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js +43 -60
  376. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js.map +1 -1
  377. package/dist/modules/log-streaming.ee/log-streaming-destination.service.d.ts +3 -1
  378. package/dist/modules/log-streaming.ee/log-streaming-destination.service.js +6 -3
  379. package/dist/modules/log-streaming.ee/log-streaming-destination.service.js.map +1 -1
  380. package/dist/modules/log-streaming.ee/log-streaming.controller.d.ts +3 -1
  381. package/dist/modules/log-streaming.ee/log-streaming.controller.js +6 -3
  382. package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
  383. package/dist/modules/mcp/dto/update-allowed-redirect-uris.dto.d.ts +9 -0
  384. package/dist/modules/mcp/dto/update-allowed-redirect-uris.dto.js +35 -0
  385. package/dist/modules/mcp/dto/update-allowed-redirect-uris.dto.js.map +1 -0
  386. package/dist/modules/mcp/mcp-protected-resource.d.ts +4 -1
  387. package/dist/modules/mcp/mcp-protected-resource.js +9 -3
  388. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  389. package/dist/modules/mcp/mcp.service.d.ts +5 -2
  390. package/dist/modules/mcp/mcp.service.js +8 -3
  391. package/dist/modules/mcp/mcp.service.js.map +1 -1
  392. package/dist/modules/mcp/mcp.settings.controller.d.ts +7 -0
  393. package/dist/modules/mcp/mcp.settings.controller.js +24 -0
  394. package/dist/modules/mcp/mcp.settings.controller.js.map +1 -1
  395. package/dist/modules/mcp/mcp.settings.service.d.ts +2 -0
  396. package/dist/modules/mcp/mcp.settings.service.js +15 -0
  397. package/dist/modules/mcp/mcp.settings.service.js.map +1 -1
  398. package/dist/modules/mcp/mcp.typeguards.d.ts +0 -1
  399. package/dist/modules/mcp/mcp.typeguards.js +9 -12
  400. package/dist/modules/mcp/mcp.typeguards.js.map +1 -1
  401. package/dist/modules/mcp/mcp.utils.js +2 -1
  402. package/dist/modules/mcp/mcp.utils.js.map +1 -1
  403. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +10 -8
  404. package/dist/modules/mcp/tools/execute-workflow.tool.js +25 -13
  405. package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
  406. package/dist/modules/mcp/tools/get-workflow-details.tool.js +2 -0
  407. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  408. package/dist/modules/mcp/tools/schemas.d.ts +128 -0
  409. package/dist/modules/mcp/tools/schemas.js +9 -0
  410. package/dist/modules/mcp/tools/schemas.js.map +1 -1
  411. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +15 -4
  412. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
  413. package/dist/modules/mcp/tools/workflow-builder/credential-validation.d.ts +13 -2
  414. package/dist/modules/mcp/tools/workflow-builder/credential-validation.js +144 -23
  415. package/dist/modules/mcp/tools/workflow-builder/credential-validation.js.map +1 -1
  416. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +23 -6
  417. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  418. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +31 -1
  419. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +22 -0
  420. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
  421. package/dist/modules/n8n-packages/engine/import-pipeline.js +40 -19
  422. package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -1
  423. package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +8 -4
  424. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +40 -6
  425. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
  426. package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +7 -3
  427. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +30 -5
  428. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
  429. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +3 -0
  430. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +17 -0
  431. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
  432. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +10 -4
  433. package/dist/modules/n8n-packages/entities/credential/credential.types.js +2 -0
  434. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  435. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.d.ts +3 -4
  436. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js +10 -11
  437. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js.map +1 -1
  438. package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +6 -6
  439. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +3 -3
  440. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +12 -10
  441. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
  442. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +6 -2
  443. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +33 -11
  444. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
  445. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +8 -0
  446. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +23 -3
  447. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  448. package/dist/modules/oauth-jwe/oauth-jwe.schemas.d.ts +12 -12
  449. package/dist/modules/oauth-server/oauth-consent.controller.js +1 -0
  450. package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -1
  451. package/dist/modules/oauth-server/oauth-consent.service.d.ts +1 -0
  452. package/dist/modules/oauth-server/oauth-consent.service.js +2 -0
  453. package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
  454. package/dist/modules/oauth-server/oauth-server.module.js +1 -1
  455. package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
  456. package/dist/modules/oauth-server/oauth-server.service.d.ts +2 -0
  457. package/dist/modules/oauth-server/oauth-server.service.js +48 -1
  458. package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
  459. package/dist/modules/oauth-server/oauth.controller.js +4 -1
  460. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  461. package/dist/modules/otel/otel.service.d.ts +3 -1
  462. package/dist/modules/otel/otel.service.js +6 -3
  463. package/dist/modules/otel/otel.service.js.map +1 -1
  464. package/dist/modules/quick-connect/handlers/firecrawl.handler.d.ts +3 -0
  465. package/dist/modules/quick-connect/handlers/firecrawl.handler.js +20 -7
  466. package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +1 -1
  467. package/dist/modules/quick-connect/quick-connect.config.d.ts +17 -17
  468. package/dist/modules/quick-connect/quick-connect.module.d.ts +3 -3
  469. package/dist/modules/source-control.ee/source-control-import.service.ee.js +1 -1
  470. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  471. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -4
  472. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -2
  473. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +3 -1
  474. package/dist/modules/sso-oidc/oidc.service.ee.js +15 -25
  475. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  476. package/dist/modules/sso-saml/saml.service.ee.d.ts +3 -1
  477. package/dist/modules/sso-saml/saml.service.ee.js +15 -15
  478. package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
  479. package/dist/modules/token-exchange/services/jwks-resolver.d.ts +3 -1
  480. package/dist/modules/token-exchange/services/jwks-resolver.js +11 -3
  481. package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
  482. package/dist/oauth/oauth.service.d.ts +8 -3
  483. package/dist/oauth/oauth.service.js +106 -47
  484. package/dist/oauth/oauth.service.js.map +1 -1
  485. package/dist/oauth/types.d.ts +1 -1
  486. package/dist/oauth/types.js.map +1 -1
  487. package/dist/posthog/index.js +4 -3
  488. package/dist/posthog/index.js.map +1 -1
  489. package/dist/public-api/index.js +46 -3
  490. package/dist/public-api/index.js.map +1 -1
  491. package/dist/public-api/swagger-theme.css +14 -0
  492. package/dist/public-api/types.d.ts +2 -0
  493. package/dist/public-api/v1/handlers/credentials/credentials.handler.js +1 -1
  494. package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
  495. package/dist/public-api/v1/handlers/data-tables/data-tables.handler.js +4 -3
  496. package/dist/public-api/v1/handlers/data-tables/data-tables.handler.js.map +1 -1
  497. package/dist/public-api/v1/handlers/discover/discover.service.js +9 -11
  498. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  499. package/dist/public-api/v1/handlers/executions/executions.handler.js +8 -4
  500. package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
  501. package/dist/public-api/v1/handlers/workflows/workflows.handler.js +3 -1
  502. package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
  503. package/dist/public-api/v1/handlers/workflows/workflows.service.d.ts +1 -2
  504. package/dist/public-api/v1/handlers/workflows/workflows.service.js +3 -2
  505. package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -1
  506. package/dist/public-api/v1/openapi.yml +124 -2
  507. package/dist/response-helper.d.ts +2 -1
  508. package/dist/response-helper.js +2 -17
  509. package/dist/response-helper.js.map +1 -1
  510. package/dist/scaling/constants.d.ts +2 -2
  511. package/dist/scaling/constants.js +3 -0
  512. package/dist/scaling/constants.js.map +1 -1
  513. package/dist/scaling/execution-stop.service.d.ts +15 -0
  514. package/dist/scaling/execution-stop.service.js +59 -0
  515. package/dist/scaling/execution-stop.service.js.map +1 -0
  516. package/dist/scaling/job-processor.js +8 -2
  517. package/dist/scaling/job-processor.js.map +1 -1
  518. package/dist/scaling/multi-main-setup.ee.d.ts +1 -0
  519. package/dist/scaling/multi-main-setup.ee.js +6 -6
  520. package/dist/scaling/multi-main-setup.ee.js.map +1 -1
  521. package/dist/scaling/pubsub/pubsub.event-map.d.ts +4 -0
  522. package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
  523. package/dist/security-audit/risk-reporters/instance-risk-reporter.d.ts +3 -1
  524. package/dist/security-audit/risk-reporters/instance-risk-reporter.js +27 -20
  525. package/dist/security-audit/risk-reporters/instance-risk-reporter.js.map +1 -1
  526. package/dist/services/ai-gateway.service.d.ts +5 -1
  527. package/dist/services/ai-gateway.service.js +53 -32
  528. package/dist/services/ai-gateway.service.js.map +1 -1
  529. package/dist/services/ai-workflow-builder.service.d.ts +4 -3
  530. package/dist/services/ai-workflow-builder.service.js +9 -5
  531. package/dist/services/ai-workflow-builder.service.js.map +1 -1
  532. package/dist/services/credentials-tester.service.js +16 -15
  533. package/dist/services/credentials-tester.service.js.map +1 -1
  534. package/dist/services/dynamic-templates.service.d.ts +3 -1
  535. package/dist/services/dynamic-templates.service.js +13 -9
  536. package/dist/services/dynamic-templates.service.js.map +1 -1
  537. package/dist/services/frontend.service.d.ts +6 -1
  538. package/dist/services/frontend.service.js +39 -2
  539. package/dist/services/frontend.service.js.map +1 -1
  540. package/dist/services/node-resource-explorer.service.js +4 -22
  541. package/dist/services/node-resource-explorer.service.js.map +1 -1
  542. package/dist/services/project.service.ee.d.ts +3 -2
  543. package/dist/services/project.service.ee.js +14 -3
  544. package/dist/services/project.service.ee.js.map +1 -1
  545. package/dist/services/protected-resource.registry.d.ts +1 -0
  546. package/dist/services/protected-resource.registry.js.map +1 -1
  547. package/dist/services/public-api-key.service.d.ts +6 -2
  548. package/dist/services/public-api-key.service.js +56 -10
  549. package/dist/services/public-api-key.service.js.map +1 -1
  550. package/dist/services/role.service.d.ts +2 -2
  551. package/dist/services/role.service.js.map +1 -1
  552. package/dist/services/trigger-auth-identity-seeder-proxy.service.d.ts +10 -0
  553. package/dist/services/trigger-auth-identity-seeder-proxy.service.js +33 -0
  554. package/dist/services/trigger-auth-identity-seeder-proxy.service.js.map +1 -0
  555. package/dist/services/workflow-statistics.service.d.ts +3 -13
  556. package/dist/services/workflow-statistics.service.js +77 -64
  557. package/dist/services/workflow-statistics.service.js.map +1 -1
  558. package/dist/task-runners/task-broker/task-broker-server.js +2 -1
  559. package/dist/task-runners/task-broker/task-broker-server.js.map +1 -1
  560. package/dist/task-runners/task-runner-module.js +2 -0
  561. package/dist/task-runners/task-runner-module.js.map +1 -1
  562. package/dist/telemetry/index.d.ts +25 -2
  563. package/dist/telemetry/index.js +80 -12
  564. package/dist/telemetry/index.js.map +1 -1
  565. package/dist/utils/strapi-utils.d.ts +8 -4
  566. package/dist/utils/strapi-utils.js +25 -9
  567. package/dist/utils/strapi-utils.js.map +1 -1
  568. package/dist/webhooks/live-webhooks.js +1 -0
  569. package/dist/webhooks/live-webhooks.js.map +1 -1
  570. package/dist/webhooks/webhook-form-data.js +9 -1
  571. package/dist/webhooks/webhook-form-data.js.map +1 -1
  572. package/dist/webhooks/webhook-helpers.js +16 -0
  573. package/dist/webhooks/webhook-helpers.js.map +1 -1
  574. package/dist/webhooks/webhook-request-handler.js +35 -0
  575. package/dist/webhooks/webhook-request-handler.js.map +1 -1
  576. package/dist/workflow-execute-additional-data.js +15 -0
  577. package/dist/workflow-execute-additional-data.js.map +1 -1
  578. package/dist/workflow-helpers.d.ts +7 -2
  579. package/dist/workflow-helpers.js +50 -1
  580. package/dist/workflow-helpers.js.map +1 -1
  581. package/dist/workflows/publication/publication-result.d.ts +2 -0
  582. package/dist/workflows/publication/publication-status-reporter.d.ts +1 -0
  583. package/dist/workflows/publication/publication-status-reporter.js +22 -1
  584. package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
  585. package/dist/workflows/publication/published-workflow-enqueuer.d.ts +13 -0
  586. package/dist/workflows/publication/published-workflow-enqueuer.js +53 -0
  587. package/dist/workflows/publication/published-workflow-enqueuer.js.map +1 -0
  588. package/dist/workflows/publication/published-workflow-trigger-deactivator.d.ts +16 -0
  589. package/dist/workflows/publication/published-workflow-trigger-deactivator.js +79 -0
  590. package/dist/workflows/publication/published-workflow-trigger-deactivator.js.map +1 -0
  591. package/dist/workflows/publication/workflow-publication-applier.d.ts +6 -1
  592. package/dist/workflows/publication/workflow-publication-applier.js +39 -3
  593. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  594. package/dist/workflows/publication/workflow-publication-lifecycle-lock.d.ts +13 -0
  595. package/dist/workflows/publication/workflow-publication-lifecycle-lock.js +104 -0
  596. package/dist/workflows/publication/workflow-publication-lifecycle-lock.js.map +1 -0
  597. package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.d.ts +19 -0
  598. package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js +109 -0
  599. package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js.map +1 -0
  600. package/dist/workflows/publication/workflow-publication-outbox-consumer.d.ts +11 -4
  601. package/dist/workflows/publication/workflow-publication-outbox-consumer.js +105 -45
  602. package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
  603. package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +4 -5
  604. package/dist/workflows/triggers/non-webhook-trigger-registrar.js +30 -9
  605. package/dist/workflows/triggers/non-webhook-trigger-registrar.js.map +1 -1
  606. package/dist/workflows/triggers/trigger-activation-retry.d.ts +2 -0
  607. package/dist/workflows/triggers/trigger-activation-retry.js +23 -0
  608. package/dist/workflows/triggers/trigger-activation-retry.js.map +1 -0
  609. package/dist/workflows/triggers/webhook-trigger-registrar.d.ts +3 -2
  610. package/dist/workflows/triggers/webhook-trigger-registrar.js +60 -32
  611. package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
  612. package/dist/workflows/triggers/workflow-trigger-activator.d.ts +6 -3
  613. package/dist/workflows/triggers/workflow-trigger-activator.js +126 -60
  614. package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
  615. package/dist/workflows/workflow-creation.service.d.ts +1 -0
  616. package/dist/workflows/workflow-creation.service.js +17 -8
  617. package/dist/workflows/workflow-creation.service.js.map +1 -1
  618. package/dist/workflows/workflow-entity-mapper.d.ts +5 -0
  619. package/dist/workflows/workflow-entity-mapper.js +22 -0
  620. package/dist/workflows/workflow-entity-mapper.js.map +1 -0
  621. package/dist/workflows/workflow-execution.service.d.ts +6 -2
  622. package/dist/workflows/workflow-execution.service.js +36 -13
  623. package/dist/workflows/workflow-execution.service.js.map +1 -1
  624. package/dist/workflows/workflow-history/workflow-history.service.js +1 -0
  625. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  626. package/dist/workflows/workflow-published-data.service.d.ts +1 -3
  627. package/dist/workflows/workflow-published-data.service.js +2 -9
  628. package/dist/workflows/workflow-published-data.service.js.map +1 -1
  629. package/dist/workflows/workflow-validation.service.js +2 -1
  630. package/dist/workflows/workflow-validation.service.js.map +1 -1
  631. package/dist/workflows/workflow.service.d.ts +4 -3
  632. package/dist/workflows/workflow.service.js +72 -33
  633. package/dist/workflows/workflow.service.js.map +1 -1
  634. package/dist/workflows/workflows.controller.d.ts +3 -2
  635. package/dist/workflows/workflows.controller.js +12 -23
  636. package/dist/workflows/workflows.controller.js.map +1 -1
  637. package/package.json +55 -37
  638. package/templates/form-trigger.handlebars +8 -1
@@ -62,6 +62,7 @@ const config_1 = require("@n8n/config");
62
62
  const constants_1 = require("@n8n/constants");
63
63
  const extract_resolved_node_parameters_1 = require("./extract-resolved-node-parameters");
64
64
  const instance_ai_settings_service_1 = require("./instance-ai-settings.service");
65
+ const trigger_run_data_1 = require("./trigger-run-data");
65
66
  const node_definition_resolver_1 = require("./node-definition-resolver");
66
67
  const web_research_1 = require("./web-research");
67
68
  const db_1 = require("@n8n/db");
@@ -123,7 +124,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
123
124
  });
124
125
  return await promise;
125
126
  }
126
- constructor(logger, globalConfig, workflowService, workflowFinderService, workflowRepository, sharedWorkflowRepository, projectRepository, executionRepository, credentialsService, credentialsFinderService, activeExecutions, workflowRunner, loadNodesAndCredentials, nodeTypes, instanceSettings, dataTableService, dataTableRepository, nodeResourceExplorerService, folderService, projectService, tagService, sourceControlPreferencesService, settingsService, workflowHistoryService, enterpriseWorkflowService, license, executionPersistence, eventService, roleService, telemetry, aiBuilderTemporaryWorkflowRepository, ssrfProtectionService) {
127
+ constructor(logger, globalConfig, workflowService, workflowFinderService, workflowRepository, sharedWorkflowRepository, projectRepository, executionRepository, credentialsService, credentialsFinderService, activeExecutions, workflowRunner, loadNodesAndCredentials, nodeTypes, instanceSettings, dataTableService, dataTableRepository, nodeResourceExplorerService, folderService, projectService, tagService, sourceControlPreferencesService, settingsService, workflowHistoryService, enterpriseWorkflowService, license, executionPersistence, eventService, roleService, telemetry, aiBuilderTemporaryWorkflowRepository, ssrfProtectionService, outboundHttp) {
127
128
  this.workflowService = workflowService;
128
129
  this.workflowFinderService = workflowFinderService;
129
130
  this.workflowRepository = workflowRepository;
@@ -154,6 +155,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
154
155
  this.telemetry = telemetry;
155
156
  this.aiBuilderTemporaryWorkflowRepository = aiBuilderTemporaryWorkflowRepository;
156
157
  this.ssrfProtectionService = ssrfProtectionService;
158
+ this.outboundHttp = outboundHttp;
157
159
  this.nodesCache = null;
158
160
  this.NODES_CACHE_TTL_MS = 5 * 60 * 1000;
159
161
  this.webResearchCache = new web_research_1.LRUCache({
@@ -168,13 +170,13 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
168
170
  this.allowSendingParameterValues = globalConfig.ai.allowSendingParameterValues;
169
171
  }
170
172
  createContext(user, options) {
171
- const { searchProxyConfig, pushRef, threadId, projectId } = options ?? {};
173
+ const { searchProxyConfig, pushRef, threadId, projectId, credentialIdAllowlist } = options ?? {};
172
174
  return {
173
175
  userId: user.id,
174
176
  projectId,
175
177
  workflowService: this.createWorkflowAdapter(user, threadId, projectId),
176
178
  executionService: this.createExecutionAdapter(user, pushRef, threadId),
177
- credentialService: this.createCredentialAdapter(user, projectId),
179
+ credentialService: this.createCredentialAdapter(user, projectId, credentialIdAllowlist),
178
180
  nodeService: this.createNodeAdapter(user),
179
181
  dataTableService: this.createDataTableAdapter(user, projectId),
180
182
  webResearchService: this.createWebResearchAdapter(user, searchProxyConfig),
@@ -429,6 +431,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
429
431
  connections: json.connections,
430
432
  settings,
431
433
  pinData: sdkPinDataToRuntime(json.pinData),
434
+ nodeGroups: sdkNodeGroupsToRuntime(json.nodeGroups),
432
435
  });
433
436
  let updated;
434
437
  try {
@@ -493,6 +496,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
493
496
  connections: json.connections,
494
497
  settings,
495
498
  pinData: sdkPinDataToRuntime(json.pinData),
499
+ nodeGroups: sdkNodeGroupsToRuntime(json.nodeGroups),
496
500
  });
497
501
  let updated;
498
502
  try {
@@ -569,6 +573,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
569
573
  const updateData = workflowRepository.create({
570
574
  nodes: version.nodes,
571
575
  connections: version.connections,
576
+ nodeGroups: version.nodeGroups,
572
577
  });
573
578
  await workflowService.update(user, updateData, workflowId, {
574
579
  source: 'n8n-ai',
@@ -584,7 +589,7 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
584
589
  };
585
590
  }
586
591
  createExecutionAdapter(user, pushRef, threadId) {
587
- const { workflowFinderService, workflowRunner, activeExecutions, executionRepository, nodeTypes, allowSendingParameterValues, license, roleService, telemetry, } = this;
592
+ const { workflowFinderService, workflowRunner, activeExecutions, executionRepository, nodeTypes, allowSendingParameterValues, license, roleService, telemetry, logger, } = this;
588
593
  const assertNotReadOnly = () => this.assertInstanceNotReadOnly('executions');
589
594
  const DEFAULT_TIMEOUT_MS = 5 * constants_1.Time.minutes.toMilliseconds;
590
595
  const MAX_TIMEOUT_MS = 10 * constants_1.Time.minutes.toMilliseconds;
@@ -686,31 +691,22 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
686
691
  if (inputData && triggerNode) {
687
692
  const triggerPinData = getPinDataForTrigger(triggerNode, inputData);
688
693
  const mergedPinData = { ...basePinData, ...triggerPinData };
694
+ const triggerItems = triggerPinData[triggerNode.name];
689
695
  runData.startNodes = [{ name: triggerNode.name, sourceData: null }];
690
696
  runData.pinData = mergedPinData;
691
- runData.executionData = (0, n8n_workflow_1.createRunExecutionData)({
692
- startData: {},
693
- resultData: { pinData: mergedPinData, runData: {} },
694
- executionData: {
695
- contextData: {},
696
- metadata: {},
697
- nodeExecutionStack: [
698
- {
699
- node: triggerNode,
700
- data: { main: [triggerPinData[triggerNode.name]] },
701
- source: null,
702
- },
703
- ],
704
- waitingExecution: {},
705
- waitingExecutionSource: {},
706
- },
697
+ runData.executionData = (0, trigger_run_data_1.createTriggerExecutionData)({
698
+ triggerNode,
699
+ pinData: mergedPinData,
700
+ triggerItems,
707
701
  });
708
702
  }
709
703
  else if (triggerNode) {
710
704
  runData.triggerToStartFrom = { name: triggerNode.name };
711
- if (Object.keys(basePinData).length > 0) {
712
- runData.pinData = basePinData;
705
+ const pinData = Object.keys(basePinData).length > 0 ? basePinData : undefined;
706
+ if (pinData) {
707
+ runData.pinData = pinData;
713
708
  }
709
+ runData.executionData = (0, trigger_run_data_1.createTriggerExecutionData)({ triggerNode, pinData });
714
710
  }
715
711
  else if (Object.keys(basePinData).length > 0) {
716
712
  runData.pinData = basePinData;
@@ -766,6 +762,30 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
766
762
  throw error;
767
763
  }
768
764
  }
765
+ if (options?.simulation && Object.keys(options.simulation).length > 0) {
766
+ try {
767
+ const execution = await executionRepository.findSingleExecution(executionId, {
768
+ includeData: true,
769
+ unflattenData: true,
770
+ });
771
+ if (execution?.data) {
772
+ const runData = execution.data.resultData.runData ?? {};
773
+ const simulation = Object.fromEntries(Object.entries(options.simulation).filter(([nodeName]) => Object.hasOwn(runData, nodeName)));
774
+ if (Object.keys(simulation).length > 0) {
775
+ execution.data.resultData.simulation = simulation;
776
+ await executionRepository.updateExistingExecution(executionId, {
777
+ data: execution.data,
778
+ });
779
+ }
780
+ }
781
+ }
782
+ catch (error) {
783
+ logger.warn('Failed to persist simulation metadata on execution', {
784
+ executionId,
785
+ error: error instanceof Error ? error.message : String(error),
786
+ });
787
+ }
788
+ }
769
789
  const result = await extractExecutionResult(executionId, allowSendingParameterValues);
770
790
  trackBuilderExecutedWorkflow(result.status);
771
791
  return result;
@@ -839,9 +859,9 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
839
859
  },
840
860
  };
841
861
  }
842
- createCredentialAdapter(user, boundProjectId) {
862
+ createCredentialAdapter(user, boundProjectId, credentialIdAllowlist) {
843
863
  const { credentialsService, credentialsFinderService, loadNodesAndCredentials } = this;
844
- return {
864
+ const adapter = {
845
865
  async list(options) {
846
866
  if (boundProjectId) {
847
867
  const scoped = await credentialsService.getCredentialsAUserCanUseInAWorkflow(user, {
@@ -1060,6 +1080,13 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
1060
1080
  }
1061
1081
  },
1062
1082
  };
1083
+ if (!credentialIdAllowlist)
1084
+ return adapter;
1085
+ const allowed = new Set(credentialIdAllowlist);
1086
+ return {
1087
+ ...adapter,
1088
+ list: async (options) => allowed.size === 0 ? [] : (await adapter.list(options)).filter((c) => allowed.has(c.id)),
1089
+ };
1063
1090
  }
1064
1091
  createDataTableAdapter(user, boundProjectId) {
1065
1092
  const { dataTableService, dataTableRepository } = this;
@@ -1217,7 +1244,8 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
1217
1244
  const fetchCache = this.webResearchCache;
1218
1245
  const searchCacheRef = this.searchCache;
1219
1246
  const settingsService = this.settingsService;
1220
- const ssrf = this.ssrfProtectionService;
1247
+ const { outboundHttp, ssrfProtectionService } = this;
1248
+ const sharedTransport = outboundHttp.transport({ ssrf: ssrfProtectionService });
1221
1249
  const userId = user.id;
1222
1250
  let resolvedSearchMethod;
1223
1251
  let searchResolved = false;
@@ -1246,12 +1274,18 @@ let InstanceAiAdapterService = class InstanceAiAdapterService {
1246
1274
  }
1247
1275
  return cached;
1248
1276
  }
1277
+ const authorizeUrl = options?.authorizeUrl;
1278
+ const transport = authorizeUrl
1279
+ ? outboundHttp.transport({
1280
+ ssrf: ssrfProtectionService,
1281
+ authorize: async (target) => await authorizeUrl(target.href),
1282
+ })
1283
+ : sharedTransport;
1249
1284
  const page = await (0, web_research_1.fetchAndExtract)(url, {
1250
1285
  maxContentLength: options?.maxContentLength,
1251
1286
  maxResponseBytes: options?.maxResponseBytes,
1252
1287
  timeoutMs: options?.timeoutMs,
1253
- authorizeUrl: options?.authorizeUrl,
1254
- ssrf,
1288
+ transport,
1255
1289
  });
1256
1290
  const result = await (0, web_research_1.maybeSummarize)(page);
1257
1291
  fetchCache.set(cacheKey, result);
@@ -1775,7 +1809,8 @@ exports.InstanceAiAdapterService = InstanceAiAdapterService = __decorate([
1775
1809
  role_service_1.RoleService,
1776
1810
  telemetry_1.Telemetry,
1777
1811
  db_1.AiBuilderTemporaryWorkflowRepository,
1778
- backend_network_1.SsrfProtectionService])
1812
+ backend_network_1.SsrfProtectionService,
1813
+ backend_network_1.OutboundHttp])
1779
1814
  ], InstanceAiAdapterService);
1780
1815
  const MAX_RESULT_CHARS = 20_000;
1781
1816
  const MAX_NODE_OUTPUT_CHARS = 1_000;
@@ -1856,6 +1891,7 @@ async function extractExecutionResult(executionId, includeOutputData = true) {
1856
1891
  ? 'waiting'
1857
1892
  : 'success';
1858
1893
  const resultData = {};
1894
+ const executedNodeNames = Object.keys(execution.data?.resultData?.runData ?? {});
1859
1895
  if (includeOutputData) {
1860
1896
  const runData = execution.data?.resultData?.runData;
1861
1897
  if (runData) {
@@ -1881,6 +1917,8 @@ async function extractExecutionResult(executionId, includeOutputData = true) {
1881
1917
  data: Object.keys(resultData).length > 0
1882
1918
  ? wrapResultDataEntries(truncateResultData(resultData))
1883
1919
  : undefined,
1920
+ executedNodeNames: executedNodeNames.length > 0 ? executedNodeNames : undefined,
1921
+ lastNodeExecuted: execution.data?.resultData?.lastNodeExecuted,
1884
1922
  error: errorMessage,
1885
1923
  startedAt: execution.startedAt?.toISOString(),
1886
1924
  finishedAt: execution.stoppedAt?.toISOString(),
@@ -2180,6 +2218,9 @@ function sdkPinDataToRuntime(pinData) {
2180
2218
  }
2181
2219
  return result;
2182
2220
  }
2221
+ function sdkNodeGroupsToRuntime(nodeGroups) {
2222
+ return nodeGroups ?? [];
2223
+ }
2183
2224
  function hasCredentialId(value) {
2184
2225
  if (typeof value !== 'object' || value === null)
2185
2226
  return false;
@@ -2232,6 +2273,7 @@ function toWorkflowJSON(workflow, options) {
2232
2273
  })),
2233
2274
  connections: workflow.connections,
2234
2275
  settings: workflow.settings,
2276
+ ...(workflow.nodeGroups ? { nodeGroups: workflow.nodeGroups } : {}),
2235
2277
  };
2236
2278
  }
2237
2279
  function toWorkflowDetail(workflow, options) {