n8n 2.25.6 → 2.26.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 (641) hide show
  1. package/dist/active-executions.js +1 -1
  2. package/dist/active-executions.js.map +1 -1
  3. package/dist/active-workflow-manager.d.ts +7 -7
  4. package/dist/active-workflow-manager.js +20 -20
  5. package/dist/active-workflow-manager.js.map +1 -1
  6. package/dist/agent-library-bundle.js +42 -10
  7. package/dist/build.tsbuildinfo +1 -1
  8. package/dist/chat/chat-execution-manager.d.ts +3 -1
  9. package/dist/chat/chat-execution-manager.js +6 -3
  10. package/dist/chat/chat-execution-manager.js.map +1 -1
  11. package/dist/chat/chat-service.types.d.ts +4 -4
  12. package/dist/commands/base-command.js +2 -2
  13. package/dist/commands/base-command.js.map +1 -1
  14. package/dist/commands/execute-batch.d.ts +2 -2
  15. package/dist/commands/execute.d.ts +2 -2
  16. package/dist/commands/export/credentials.d.ts +4 -4
  17. package/dist/commands/export/entities.d.ts +2 -2
  18. package/dist/commands/export/workflow.d.ts +4 -4
  19. package/dist/commands/import/credentials.d.ts +2 -2
  20. package/dist/commands/import/workflow.d.ts +2 -2
  21. package/dist/commands/start.js +1 -1
  22. package/dist/commands/start.js.map +1 -1
  23. package/dist/commands/ttwf/generate.d.ts +2 -2
  24. package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
  25. package/dist/controllers/api-keys.controller.d.ts +16 -4
  26. package/dist/controllers/api-keys.controller.js +11 -8
  27. package/dist/controllers/api-keys.controller.js.map +1 -1
  28. package/dist/controllers/e2e.controller.d.ts +15 -0
  29. package/dist/controllers/e2e.controller.js +60 -0
  30. package/dist/controllers/e2e.controller.js.map +1 -1
  31. package/dist/controllers/oauth/oauth1-credential.controller.js +7 -9
  32. package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
  33. package/dist/controllers/oauth/oauth2-credential.controller.js +3 -3
  34. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  35. package/dist/controllers/project.controller.d.ts +1 -1
  36. package/dist/controllers/project.controller.js +9 -1
  37. package/dist/controllers/project.controller.js.map +1 -1
  38. package/dist/controllers/security-settings.controller.d.ts +1 -1
  39. package/dist/controllers/security-settings.controller.js +18 -14
  40. package/dist/controllers/security-settings.controller.js.map +1 -1
  41. package/dist/controllers/telemetry.controller.d.ts +4 -1
  42. package/dist/controllers/telemetry.controller.js +61 -2
  43. package/dist/controllers/telemetry.controller.js.map +1 -1
  44. package/dist/controllers/users.controller.d.ts +2 -2
  45. package/dist/credentials/credential-connection-status-provider.interface.d.ts +1 -0
  46. package/dist/credentials/credential-connection-status-proxy.d.ts +1 -0
  47. package/dist/credentials/credential-connection-status-proxy.js +5 -0
  48. package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
  49. package/dist/credentials/credential-resolution-provider.interface.d.ts +1 -0
  50. package/dist/credentials/credentials.controller.d.ts +3 -1
  51. package/dist/credentials/credentials.controller.js +23 -2
  52. package/dist/credentials/credentials.controller.js.map +1 -1
  53. package/dist/credentials-helper.js +3 -0
  54. package/dist/credentials-helper.js.map +1 -1
  55. package/dist/errors/http-error-serializers.js +22 -2
  56. package/dist/errors/http-error-serializers.js.map +1 -1
  57. package/dist/errors/response-errors/conflict.error.d.ts +2 -1
  58. package/dist/errors/response-errors/conflict.error.js +2 -1
  59. package/dist/errors/response-errors/conflict.error.js.map +1 -1
  60. package/dist/evaluation.ee/evaluation-config-validator.d.ts +1 -0
  61. package/dist/evaluation.ee/evaluation-config-validator.js +69 -0
  62. package/dist/evaluation.ee/evaluation-config-validator.js.map +1 -1
  63. package/dist/evaluation.ee/test-runner/evaluation-metrics.ee.js +2 -1
  64. package/dist/evaluation.ee/test-runner/evaluation-metrics.ee.js.map +1 -1
  65. package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +6 -2
  66. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +59 -16
  67. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  68. package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +28 -1
  69. package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -1
  70. package/dist/evaluation.ee/test-runs.controller.ee.js +6 -1
  71. package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
  72. package/dist/events/event.service.d.ts +2 -1
  73. package/dist/events/event.service.js.map +1 -1
  74. package/dist/events/maps/execution-data.event-map.d.ts +14 -0
  75. package/dist/events/maps/execution-data.event-map.js +3 -0
  76. package/dist/events/maps/execution-data.event-map.js.map +1 -0
  77. package/dist/events/maps/relay.event-map.d.ts +19 -5
  78. package/dist/events/relays/log-streaming.event-relay.js +2 -0
  79. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  80. package/dist/events/relays/telemetry.event-relay.d.ts +3 -0
  81. package/dist/events/relays/telemetry.event-relay.js +47 -6
  82. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  83. package/dist/execution-lifecycle/save-execution-progress.js +3 -3
  84. package/dist/execution-lifecycle/save-execution-progress.js.map +1 -1
  85. package/dist/execution-lifecycle/shared/shared-hook-functions.js +3 -3
  86. package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
  87. package/dist/executions/execution-persistence.d.ts +8 -1
  88. package/dist/executions/execution-persistence.js +183 -42
  89. package/dist/executions/execution-persistence.js.map +1 -1
  90. package/dist/executions/execution-recovery.service.d.ts +3 -1
  91. package/dist/executions/execution-recovery.service.js +7 -4
  92. package/dist/executions/execution-recovery.service.js.map +1 -1
  93. package/dist/executions/execution.service.d.ts +1 -0
  94. package/dist/executions/execution.service.js +21 -7
  95. package/dist/executions/execution.service.js.map +1 -1
  96. package/dist/interfaces.d.ts +1 -1
  97. package/dist/load-nodes-and-credentials.js +6 -0
  98. package/dist/load-nodes-and-credentials.js.map +1 -1
  99. package/dist/metrics/prometheus-metrics.service.d.ts +5 -2
  100. package/dist/metrics/prometheus-metrics.service.js +74 -3
  101. package/dist/metrics/prometheus-metrics.service.js.map +1 -1
  102. package/dist/metrics/types.d.ts +1 -1
  103. package/dist/modules/agents/agent-execution.service.d.ts +2 -0
  104. package/dist/modules/agents/agent-execution.service.js +2 -2
  105. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  106. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +84 -0
  107. package/dist/modules/agents/agent-runtime-reconstruction.service.js +362 -0
  108. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -0
  109. package/dist/modules/agents/agent-sse-stream.js +15 -1
  110. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  111. package/dist/modules/agents/agents-tools.service.js +8 -1
  112. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  113. package/dist/modules/agents/agents.controller.d.ts +34 -19
  114. package/dist/modules/agents/agents.controller.js +39 -3
  115. package/dist/modules/agents/agents.controller.js.map +1 -1
  116. package/dist/modules/agents/agents.module.d.ts +1 -1
  117. package/dist/modules/agents/agents.service.d.ts +13 -31
  118. package/dist/modules/agents/agents.service.js +154 -282
  119. package/dist/modules/agents/agents.service.js.map +1 -1
  120. package/dist/modules/agents/builder/agents-builder-prompts.js +1 -0
  121. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  122. package/dist/modules/agents/builder/agents-builder-tools.service.js +21 -2
  123. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  124. package/dist/modules/agents/builder/agents-builder.service.js +3 -11
  125. package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
  126. package/dist/modules/agents/builder/builder-tool-names.d.ts +1 -0
  127. package/dist/modules/agents/builder/builder-tool-names.js +1 -0
  128. package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
  129. package/dist/modules/agents/builder/interactive/ask-question.tool.js +1 -1
  130. package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
  131. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +10 -0
  132. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -1
  133. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +5 -3
  134. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  135. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +7 -2
  136. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
  137. package/dist/modules/agents/builder/skills/index.js +2 -0
  138. package/dist/modules/agents/builder/skills/index.js.map +1 -1
  139. package/dist/modules/agents/builder/skills/sub-agents.skill.d.ts +2 -0
  140. package/dist/modules/agents/builder/skills/sub-agents.skill.js +101 -0
  141. package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -0
  142. package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +2 -0
  143. package/dist/modules/agents/entities/agent-execution-thread.entity.js +8 -0
  144. package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
  145. package/dist/modules/agents/entities/agent-execution.entity.js +1 -1
  146. package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
  147. package/dist/modules/agents/execution-recorder.d.ts +3 -0
  148. package/dist/modules/agents/execution-recorder.js +75 -10
  149. package/dist/modules/agents/execution-recorder.js.map +1 -1
  150. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +4 -7
  151. package/dist/modules/agents/integrations/agent-chat-bridge.js +138 -105
  152. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  153. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  154. package/dist/modules/agents/integrations/chat-integration.service.d.ts +5 -0
  155. package/dist/modules/agents/integrations/chat-integration.service.js +5 -0
  156. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  157. package/dist/modules/agents/integrations/component-mapper.d.ts +21 -11
  158. package/dist/modules/agents/integrations/component-mapper.js +50 -20
  159. package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
  160. package/dist/modules/agents/integrations/integration-action-executor.d.ts +1 -0
  161. package/dist/modules/agents/integrations/integration-action-executor.js +20 -9
  162. package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
  163. package/dist/modules/agents/integrations/integration-tools.js +176 -31
  164. package/dist/modules/agents/integrations/integration-tools.js.map +1 -1
  165. package/dist/modules/agents/integrations/platforms/slack-integration.js +1 -1
  166. package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
  167. package/dist/modules/agents/integrations/platforms/telegram-integration.js +1 -1
  168. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  169. package/dist/modules/agents/json-config/credential-field-mapping.js +1 -0
  170. package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
  171. package/dist/modules/agents/json-config/from-json-config.d.ts +2 -1
  172. package/dist/modules/agents/json-config/from-json-config.js +41 -15
  173. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  174. package/dist/modules/agents/json-config/mcp-client-factory.d.ts +0 -6
  175. package/dist/modules/agents/json-config/mcp-client-factory.js +2 -31
  176. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
  177. package/dist/modules/agents/json-config/model-config.d.ts +2 -0
  178. package/dist/modules/agents/json-config/model-config.js +11 -0
  179. package/dist/modules/agents/json-config/model-config.js.map +1 -0
  180. package/dist/modules/agents/json-config/model-id.d.ts +1 -0
  181. package/dist/modules/agents/json-config/model-id.js +8 -0
  182. package/dist/modules/agents/json-config/model-id.js.map +1 -0
  183. package/dist/modules/agents/json-config/native-web-search-provider-tools.d.ts +0 -1
  184. package/dist/modules/agents/json-config/native-web-search-provider-tools.js +3 -7
  185. package/dist/modules/agents/json-config/native-web-search-provider-tools.js.map +1 -1
  186. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.d.ts +1 -0
  187. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +63 -0
  188. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -0
  189. package/dist/modules/agents/model-catalog.d.ts +1 -0
  190. package/dist/modules/agents/model-catalog.js +15 -0
  191. package/dist/modules/agents/model-catalog.js.map +1 -0
  192. package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +5 -1
  193. package/dist/modules/agents/repositories/agent-execution-thread.repository.js +5 -3
  194. package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
  195. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +17 -0
  196. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +66 -0
  197. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -0
  198. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +27 -0
  199. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +235 -0
  200. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -0
  201. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +20 -0
  202. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +87 -0
  203. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -0
  204. package/dist/modules/agents/tools/knowledge/csv.operation.d.ts +2 -2
  205. package/dist/modules/agents/tools/knowledge/schemas.d.ts +91 -91
  206. package/dist/modules/agents/tools/node-tool-factory.js +9 -12
  207. package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
  208. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +2 -3
  209. package/dist/modules/agents/tools/workflow-tool-factory.js +6 -4
  210. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  211. package/dist/modules/agents/utils/agent-stream.d.ts +2 -0
  212. package/dist/modules/agents/utils/agent-stream.js +27 -0
  213. package/dist/modules/agents/utils/agent-stream.js.map +1 -0
  214. package/dist/modules/agents/utils/execution-to-message-mapper.js +2 -0
  215. package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
  216. package/dist/modules/agents/utils/structured-output-error.d.ts +1 -0
  217. package/dist/modules/agents/utils/structured-output-error.js +34 -0
  218. package/dist/modules/agents/utils/structured-output-error.js.map +1 -0
  219. package/dist/modules/chat-hub/chat-hub-execution-watcher.service.d.ts +3 -3
  220. package/dist/modules/chat-hub/chat-hub-execution-watcher.service.js +5 -5
  221. package/dist/modules/chat-hub/chat-hub-execution-watcher.service.js.map +1 -1
  222. package/dist/modules/chat-hub/chat-hub-execution.service.d.ts +3 -1
  223. package/dist/modules/chat-hub/chat-hub-execution.service.js +6 -3
  224. package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
  225. package/dist/modules/chat-hub/chat-hub-title.service.d.ts +4 -3
  226. package/dist/modules/chat-hub/chat-hub-title.service.js +5 -5
  227. package/dist/modules/chat-hub/chat-hub-title.service.js.map +1 -1
  228. package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
  229. package/dist/modules/chat-hub/chat-hub.service.d.ts +4 -3
  230. package/dist/modules/chat-hub/chat-hub.service.js +5 -5
  231. package/dist/modules/chat-hub/chat-hub.service.js.map +1 -1
  232. package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +4 -4
  233. package/dist/modules/chat-hub/chat-hub.types.d.ts +5 -5
  234. package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +1 -1
  235. package/dist/modules/data-table/data-table.module.d.ts +1 -1
  236. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.d.ts +2 -2
  237. package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.d.ts +1 -0
  238. package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js +3 -0
  239. package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js.map +1 -1
  240. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.d.ts +5 -0
  241. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js +15 -0
  242. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js.map +1 -1
  243. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +9 -1
  244. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +57 -3
  245. package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -1
  246. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +14 -3
  247. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
  248. package/dist/modules/external-secrets.ee/providers/infisical.d.ts +20 -14
  249. package/dist/modules/external-secrets.ee/providers/infisical.js +215 -90
  250. package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
  251. package/dist/modules/favorites/dto/add-favorite.dto.d.ts +1 -1
  252. package/dist/modules/insights/database/entities/insights-shared.d.ts +1 -1
  253. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.d.ts +2 -1
  254. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +2 -3
  255. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js.map +1 -1
  256. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +3 -3
  257. package/dist/modules/insights/insights.service.d.ts +3 -3
  258. package/dist/modules/instance-ai/entities/index.d.ts +1 -0
  259. package/dist/modules/instance-ai/entities/index.js +3 -1
  260. package/dist/modules/instance-ai/entities/index.js.map +1 -1
  261. package/dist/modules/instance-ai/entities/instance-ai-mcp-registry-connection.entity.d.ts +12 -0
  262. package/dist/modules/instance-ai/entities/instance-ai-mcp-registry-connection.entity.js +42 -0
  263. package/dist/modules/instance-ai/entities/instance-ai-mcp-registry-connection.entity.js.map +1 -0
  264. package/dist/modules/instance-ai/entities/instance-ai-thread.entity.d.ts +3 -1
  265. package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js +10 -0
  266. package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js.map +1 -1
  267. package/dist/modules/instance-ai/eval/execution.service.d.ts +8 -2
  268. package/dist/modules/instance-ai/eval/execution.service.js +183 -40
  269. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  270. package/dist/modules/instance-ai/eval/workflow-analysis.js +5 -0
  271. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  272. package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +1 -2
  273. package/dist/modules/instance-ai/extract-resolved-node-parameters.js +4 -2
  274. package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -1
  275. package/dist/modules/instance-ai/instance-ai-gateway.service.d.ts +31 -0
  276. package/dist/modules/instance-ai/instance-ai-gateway.service.js +84 -0
  277. package/dist/modules/instance-ai/instance-ai-gateway.service.js.map +1 -0
  278. package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +1 -1
  279. package/dist/modules/instance-ai/instance-ai-memory.service.js +5 -4
  280. package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
  281. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +10 -1
  282. package/dist/modules/instance-ai/instance-ai-settings.service.js +47 -5
  283. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  284. package/dist/modules/instance-ai/instance-ai-test.controller.d.ts +6 -2
  285. package/dist/modules/instance-ai/instance-ai-test.controller.js +17 -3
  286. package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
  287. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +5 -5
  288. package/dist/modules/instance-ai/instance-ai.adapter.service.js +104 -36
  289. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  290. package/dist/modules/instance-ai/instance-ai.controller.d.ts +8 -6
  291. package/dist/modules/instance-ai/instance-ai.controller.js +31 -36
  292. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  293. package/dist/modules/instance-ai/instance-ai.module.d.ts +4 -1
  294. package/dist/modules/instance-ai/instance-ai.module.js +7 -6
  295. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  296. package/dist/modules/instance-ai/instance-ai.service.d.ts +50 -41
  297. package/dist/modules/instance-ai/instance-ai.service.js +599 -246
  298. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  299. package/dist/modules/instance-ai/internal-messages.js +1 -1
  300. package/dist/modules/instance-ai/internal-messages.js.map +1 -1
  301. package/dist/modules/instance-ai/mcp/index.d.ts +1 -0
  302. package/dist/modules/instance-ai/mcp/index.js +18 -0
  303. package/dist/modules/instance-ai/mcp/index.js.map +1 -0
  304. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.d.ts +17 -0
  305. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js +125 -0
  306. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -0
  307. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +35 -0
  308. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +264 -0
  309. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -0
  310. package/dist/modules/instance-ai/planned-task-action-runner.d.ts +91 -0
  311. package/dist/modules/instance-ai/planned-task-action-runner.js +138 -0
  312. package/dist/modules/instance-ai/planned-task-action-runner.js.map +1 -0
  313. package/dist/modules/instance-ai/repositories/index.d.ts +1 -0
  314. package/dist/modules/instance-ai/repositories/index.js +3 -1
  315. package/dist/modules/instance-ai/repositories/index.js.map +1 -1
  316. package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
  317. package/dist/modules/instance-ai/repositories/instance-ai-mcp-registry-connection.repository.d.ts +5 -0
  318. package/dist/modules/instance-ai/repositories/instance-ai-mcp-registry-connection.repository.js +26 -0
  319. package/dist/modules/instance-ai/repositories/instance-ai-mcp-registry-connection.repository.js.map +1 -0
  320. package/dist/modules/instance-ai/sandbox-provider.d.ts +4 -0
  321. package/dist/modules/instance-ai/sandbox-provider.js +19 -0
  322. package/dist/modules/instance-ai/sandbox-provider.js.map +1 -0
  323. package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
  324. package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +4 -1
  325. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +103 -12
  326. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
  327. package/dist/modules/instance-ai/trace-replay-state.d.ts +2 -0
  328. package/dist/modules/instance-ai/trace-replay-state.js +56 -6
  329. package/dist/modules/instance-ai/trace-replay-state.js.map +1 -1
  330. package/dist/modules/instance-ai/workflow-verification-obligation-service.d.ts +20 -0
  331. package/dist/modules/instance-ai/workflow-verification-obligation-service.js +59 -0
  332. package/dist/modules/instance-ai/workflow-verification-obligation-service.js.map +1 -0
  333. package/dist/modules/instance-ai/workflow-verification-task-projector.d.ts +21 -0
  334. package/dist/modules/instance-ai/workflow-verification-task-projector.js +323 -0
  335. package/dist/modules/instance-ai/workflow-verification-task-projector.js.map +1 -0
  336. package/dist/modules/mcp/database/entities/oauth-authorization-code.entity.d.ts +1 -0
  337. package/dist/modules/mcp/database/entities/oauth-authorization-code.entity.js +4 -0
  338. package/dist/modules/mcp/database/entities/oauth-authorization-code.entity.js.map +1 -1
  339. package/dist/modules/mcp/mcp-oauth-authorization-code.service.d.ts +3 -1
  340. package/dist/modules/mcp/mcp-oauth-authorization-code.service.js +35 -5
  341. package/dist/modules/mcp/mcp-oauth-authorization-code.service.js.map +1 -1
  342. package/dist/modules/mcp/mcp-oauth-consent.service.js +1 -1
  343. package/dist/modules/mcp/mcp-oauth-consent.service.js.map +1 -1
  344. package/dist/modules/mcp/mcp-oauth-service.d.ts +4 -2
  345. package/dist/modules/mcp/mcp-oauth-service.js +60 -9
  346. package/dist/modules/mcp/mcp-oauth-service.js.map +1 -1
  347. package/dist/modules/mcp/mcp-oauth-token.service.d.ts +8 -6
  348. package/dist/modules/mcp/mcp-oauth-token.service.js +53 -16
  349. package/dist/modules/mcp/mcp-oauth-token.service.js.map +1 -1
  350. package/dist/modules/mcp/mcp-server-middleware.service.js +2 -1
  351. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  352. package/dist/modules/mcp/mcp.constants.d.ts +1 -0
  353. package/dist/modules/mcp/mcp.constants.js +2 -1
  354. package/dist/modules/mcp/mcp.constants.js.map +1 -1
  355. package/dist/modules/mcp/mcp.controller.js +1 -1
  356. package/dist/modules/mcp/mcp.controller.js.map +1 -1
  357. package/dist/modules/mcp/mcp.service.d.ts +7 -4
  358. package/dist/modules/mcp/mcp.service.js +60 -9
  359. package/dist/modules/mcp/mcp.service.js.map +1 -1
  360. package/dist/modules/mcp/mcp.types.d.ts +5 -4
  361. package/dist/modules/mcp/mcp.utils.d.ts +2 -4
  362. package/dist/modules/mcp/mcp.utils.js.map +1 -1
  363. package/dist/modules/mcp/oauth-session.service.d.ts +1 -0
  364. package/dist/modules/mcp/oauth-session.service.js.map +1 -1
  365. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +7 -7
  366. package/dist/modules/mcp/tools/get-execution.tool.d.ts +1 -1
  367. package/dist/modules/mcp/tools/get-execution.tool.js +3 -3
  368. package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
  369. package/dist/modules/mcp/tools/schemas.d.ts +28 -28
  370. package/dist/modules/mcp/tools/search-projects.tool.d.ts +2 -1
  371. package/dist/modules/mcp/tools/search-projects.tool.js +16 -7
  372. package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
  373. package/dist/modules/mcp/tools/workflow-builder/constants.d.ts +1 -1
  374. package/dist/modules/mcp/tools/workflow-builder/constants.js +2 -2
  375. package/dist/modules/mcp/tools/workflow-builder/constants.js.map +1 -1
  376. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +1 -0
  377. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +9 -2
  378. package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
  379. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.d.ts +27 -0
  380. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +123 -0
  381. package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -0
  382. package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +2 -2
  383. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +1 -1
  384. package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
  385. package/dist/modules/mcp/tools/workflow-builder/skills-used.d.ts +1 -0
  386. package/dist/modules/mcp/tools/workflow-builder/skills-used.js +26 -0
  387. package/dist/modules/mcp/tools/workflow-builder/skills-used.js.map +1 -0
  388. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +20 -19
  389. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +9 -2
  390. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  391. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +2 -2
  392. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +19 -19
  393. package/dist/modules/mcp-registry/mcp-registry-node-loader.js +3 -2
  394. package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -1
  395. package/dist/modules/mcp-registry/mcp-registry.controller.d.ts +7 -0
  396. package/dist/modules/mcp-registry/mcp-registry.controller.js +54 -0
  397. package/dist/modules/mcp-registry/mcp-registry.controller.js.map +1 -0
  398. package/dist/modules/mcp-registry/mcp-registry.module.js +1 -0
  399. package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -1
  400. package/dist/modules/mcp-registry/node-description-transform.d.ts +5 -3
  401. package/dist/modules/mcp-registry/node-description-transform.js +82 -24
  402. package/dist/modules/mcp-registry/node-description-transform.js.map +1 -1
  403. package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js +8 -4
  404. package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js.map +1 -1
  405. package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +1 -0
  406. package/dist/modules/mcp-registry/registry/mcp-registry.service.js +7 -0
  407. package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
  408. package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +35 -1
  409. package/dist/modules/mcp-registry/registry/mcp-registry.types.js +13 -0
  410. package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
  411. package/dist/modules/mcp-registry/registry/mock-servers.d.ts +2 -0
  412. package/dist/modules/mcp-registry/registry/mock-servers.js +45 -1
  413. package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
  414. package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +5 -3
  415. package/dist/modules/n8n-packages/engine/import-pipeline.js +36 -25
  416. package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -1
  417. package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +9 -0
  418. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +41 -0
  419. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -0
  420. package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.d.ts +8 -0
  421. package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.js +35 -0
  422. package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.js.map +1 -0
  423. package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +18 -0
  424. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +34 -0
  425. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -0
  426. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.d.ts +7 -0
  427. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.js +35 -0
  428. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.js.map +1 -0
  429. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +7 -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 -0
  432. package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.d.ts +3 -0
  433. package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.js +14 -0
  434. package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.js.map +1 -0
  435. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +30 -0
  436. package/dist/modules/n8n-packages/entities/credential/credential.types.js +12 -0
  437. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  438. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.d.ts +13 -0
  439. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js +47 -0
  440. package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js.map +1 -0
  441. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.d.ts +9 -0
  442. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.js +41 -0
  443. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.js.map +1 -0
  444. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.d.ts +10 -0
  445. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.js +20 -0
  446. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.js.map +1 -0
  447. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.d.ts +11 -0
  448. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.js +42 -0
  449. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.js.map +1 -0
  450. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.d.ts +9 -0
  451. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.js +33 -0
  452. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.js.map +1 -0
  453. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.d.ts +10 -0
  454. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.js +37 -0
  455. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.js.map +1 -0
  456. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.d.ts +20 -0
  457. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.js +3 -0
  458. package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.js.map +1 -0
  459. package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.d.ts +7 -0
  460. package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js +54 -0
  461. package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js.map +1 -0
  462. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +14 -0
  463. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +47 -0
  464. package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -0
  465. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +23 -1
  466. package/dist/modules/n8n-packages/n8n-packages.types.js +21 -0
  467. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  468. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +41 -31
  469. package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
  470. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +17 -7
  471. package/dist/modules/n8n-packages/spec/requirements.schema.js +17 -1
  472. package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
  473. package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +2 -2
  474. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +40 -33
  475. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +2 -1
  476. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
  477. package/dist/modules/n8n-packages/utils/import-package-upload.js +1 -1
  478. package/dist/modules/oauth-jwe/oauth-jwe.schemas.d.ts +18 -18
  479. package/dist/modules/otel/otel-lifecycle-handler.d.ts +6 -2
  480. package/dist/modules/otel/otel-lifecycle-handler.js +30 -17
  481. package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
  482. package/dist/modules/quick-connect/quick-connect.config.d.ts +29 -29
  483. package/dist/modules/quick-connect/quick-connect.module.d.ts +11 -11
  484. package/dist/modules/redaction/executions/execution-redaction.interfaces.d.ts +1 -1
  485. package/dist/modules/redaction/executions/execution-redaction.service.d.ts +1 -0
  486. package/dist/modules/redaction/executions/execution-redaction.service.js +25 -11
  487. package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
  488. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +1 -1
  489. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
  490. package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +9 -7
  491. package/dist/modules/redaction/instance-redaction-enforcement.service.js +32 -14
  492. package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
  493. package/dist/modules/redaction/redaction-context-hook.js +14 -16
  494. package/dist/modules/redaction/redaction-context-hook.js.map +1 -1
  495. package/dist/modules/redaction/redaction-enforcement.service.d.ts +5 -5
  496. package/dist/modules/redaction/redaction-enforcement.service.js +13 -11
  497. package/dist/modules/redaction/redaction-enforcement.service.js.map +1 -1
  498. package/dist/modules/redaction/redaction-policy.d.ts +7 -0
  499. package/dist/modules/redaction/redaction-policy.js +31 -0
  500. package/dist/modules/redaction/redaction-policy.js.map +1 -0
  501. package/dist/modules/redaction/redaction.module.js +1 -0
  502. package/dist/modules/redaction/redaction.module.js.map +1 -1
  503. package/dist/modules/source-control.ee/source-control-import.service.ee.js +1 -1
  504. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  505. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -4
  506. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -2
  507. package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +1 -1
  508. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +2 -1
  509. package/dist/modules/sso-oidc/oidc.service.ee.js +35 -18
  510. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  511. package/dist/modules/token-exchange/token-exchange.schemas.d.ts +12 -12
  512. package/dist/node-execution/ephemeral-node-executor.js +3 -0
  513. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  514. package/dist/oauth/oauth.service.d.ts +20 -6
  515. package/dist/oauth/oauth.service.js +80 -18
  516. package/dist/oauth/oauth.service.js.map +1 -1
  517. package/dist/public-api/v1/handlers/executions/executions.handler.js +4 -4
  518. package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
  519. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +3 -0
  520. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  521. package/dist/public-api/v1/handlers/users/users.service.ee.js +1 -0
  522. package/dist/public-api/v1/handlers/users/users.service.ee.js.map +1 -1
  523. package/dist/public-api/v1/handlers/workflows/workflows.service.js +2 -0
  524. package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -1
  525. package/dist/public-api/v1/openapi.yml +169 -6
  526. package/dist/response-helper.js +16 -1
  527. package/dist/response-helper.js.map +1 -1
  528. package/dist/scaling/constants.d.ts +2 -2
  529. package/dist/scaling/job-processor.d.ts +3 -1
  530. package/dist/scaling/job-processor.js +6 -3
  531. package/dist/scaling/job-processor.js.map +1 -1
  532. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  533. package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
  534. package/dist/scaling/scaling.service.d.ts +3 -1
  535. package/dist/scaling/scaling.service.js +5 -2
  536. package/dist/scaling/scaling.service.js.map +1 -1
  537. package/dist/security-audit/risk-reporters/credentials-risk-reporter.d.ts +4 -3
  538. package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +6 -4
  539. package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -1
  540. package/dist/services/ai-workflow-builder.service.d.ts +1 -2
  541. package/dist/services/ai-workflow-builder.service.js +2 -3
  542. package/dist/services/ai-workflow-builder.service.js.map +1 -1
  543. package/dist/services/dynamic-node-parameters.service.js +3 -5
  544. package/dist/services/dynamic-node-parameters.service.js.map +1 -1
  545. package/dist/services/frontend.service.js +2 -0
  546. package/dist/services/frontend.service.js.map +1 -1
  547. package/dist/services/project.service.ee.d.ts +1 -0
  548. package/dist/services/project.service.ee.js +34 -2
  549. package/dist/services/project.service.ee.js.map +1 -1
  550. package/dist/services/public-api-key.service.d.ts +25 -7
  551. package/dist/services/public-api-key.service.js +93 -14
  552. package/dist/services/public-api-key.service.js.map +1 -1
  553. package/dist/services/role.service.d.ts +3 -3
  554. package/dist/task-runners/errors/task-cancelled.error.d.ts +4 -0
  555. package/dist/task-runners/errors/task-cancelled.error.js +11 -0
  556. package/dist/task-runners/errors/task-cancelled.error.js.map +1 -0
  557. package/dist/task-runners/task-managers/task-requester.js +2 -1
  558. package/dist/task-runners/task-managers/task-requester.js.map +1 -1
  559. package/dist/telemetry/index.js +2 -2
  560. package/dist/tool-generation/hitl-tools.js +1 -1
  561. package/dist/tool-generation/hitl-tools.js.map +1 -1
  562. package/dist/utils/auth-fetch.d.ts +6 -0
  563. package/dist/utils/auth-fetch.js +33 -0
  564. package/dist/utils/auth-fetch.js.map +1 -0
  565. package/dist/wait-tracker.d.ts +6 -1
  566. package/dist/wait-tracker.js +43 -18
  567. package/dist/wait-tracker.js.map +1 -1
  568. package/dist/webhooks/waiting-webhooks.d.ts +3 -3
  569. package/dist/webhooks/waiting-webhooks.js +5 -5
  570. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  571. package/dist/webhooks/webhook-helpers.js +1 -19
  572. package/dist/webhooks/webhook-helpers.js.map +1 -1
  573. package/dist/webhooks/webhook-server.d.ts +1 -0
  574. package/dist/webhooks/webhook-server.js +39 -0
  575. package/dist/webhooks/webhook-server.js.map +1 -1
  576. package/dist/workflow-execute-additional-data.d.ts +3 -2
  577. package/dist/workflow-execute-additional-data.js +42 -15
  578. package/dist/workflow-execute-additional-data.js.map +1 -1
  579. package/dist/workflow-helpers.d.ts +2 -2
  580. package/dist/workflow-helpers.js +5 -3
  581. package/dist/workflow-helpers.js.map +1 -1
  582. package/dist/workflow-runner.d.ts +3 -1
  583. package/dist/workflow-runner.js +8 -2
  584. package/dist/workflow-runner.js.map +1 -1
  585. package/dist/workflows/utils.d.ts +2 -0
  586. package/dist/workflows/utils.js +6 -0
  587. package/dist/workflows/utils.js.map +1 -1
  588. package/dist/workflows/workflow-creation.service.d.ts +7 -3
  589. package/dist/workflows/workflow-creation.service.js +38 -14
  590. package/dist/workflows/workflow-creation.service.js.map +1 -1
  591. package/dist/workflows/workflow-finder.service.d.ts +9 -0
  592. package/dist/workflows/workflow-finder.service.js +60 -16
  593. package/dist/workflows/workflow-finder.service.js.map +1 -1
  594. package/dist/workflows/workflow-publication-outbox-consumer.d.ts +31 -0
  595. package/dist/workflows/workflow-publication-outbox-consumer.js +209 -0
  596. package/dist/workflows/workflow-publication-outbox-consumer.js.map +1 -0
  597. package/dist/workflows/workflow-validation.service.js +1 -1
  598. package/dist/workflows/workflow-validation.service.js.map +1 -1
  599. package/dist/workflows/workflow.service.d.ts +5 -5
  600. package/dist/workflows/workflow.service.js +1 -1
  601. package/dist/workflows/workflow.service.js.map +1 -1
  602. package/dist/workflows/workflows.controller.d.ts +29 -29
  603. package/dist/workflows/workflows.controller.js +3 -4
  604. package/dist/workflows/workflows.controller.js.map +1 -1
  605. package/package.json +37 -37
  606. package/dist/controllers/redaction-enforcement-mapper.d.ts +0 -3
  607. package/dist/controllers/redaction-enforcement-mapper.js +0 -27
  608. package/dist/controllers/redaction-enforcement-mapper.js.map +0 -1
  609. package/dist/modules/agents/integrations/rich-interaction-tool.d.ts +0 -47
  610. package/dist/modules/agents/integrations/rich-interaction-tool.js +0 -109
  611. package/dist/modules/agents/integrations/rich-interaction-tool.js.map +0 -1
  612. package/dist/modules/instance-ai/eval/sub-agent-eval.service.d.ts +0 -13
  613. package/dist/modules/instance-ai/eval/sub-agent-eval.service.js +0 -154
  614. package/dist/modules/instance-ai/eval/sub-agent-eval.service.js.map +0 -1
  615. package/dist/modules/instance-ai/eval/sub-agent-roles.d.ts +0 -7
  616. package/dist/modules/instance-ai/eval/sub-agent-roles.js +0 -21
  617. package/dist/modules/instance-ai/eval/sub-agent-roles.js.map +0 -1
  618. package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.d.ts +0 -10
  619. package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js +0 -64
  620. package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js.map +0 -1
  621. package/dist/modules/redaction/redaction.config.d.ts +0 -3
  622. package/dist/modules/redaction/redaction.config.js +0 -27
  623. package/dist/modules/redaction/redaction.config.js.map +0 -1
  624. package/dist/services/ssrf/dns-resolver.d.ts +0 -13
  625. package/dist/services/ssrf/dns-resolver.js +0 -93
  626. package/dist/services/ssrf/dns-resolver.js.map +0 -1
  627. package/dist/services/ssrf/hostname-matcher.d.ts +0 -6
  628. package/dist/services/ssrf/hostname-matcher.js +0 -38
  629. package/dist/services/ssrf/hostname-matcher.js.map +0 -1
  630. package/dist/services/ssrf/in-memory-dns-cache.service.d.ts +0 -11
  631. package/dist/services/ssrf/in-memory-dns-cache.service.js +0 -61
  632. package/dist/services/ssrf/in-memory-dns-cache.service.js.map +0 -1
  633. package/dist/services/ssrf/ip-range-builder.d.ts +0 -10
  634. package/dist/services/ssrf/ip-range-builder.js +0 -52
  635. package/dist/services/ssrf/ip-range-builder.js.map +0 -1
  636. package/dist/services/ssrf/ssrf-blocked-ip.error.d.ts +0 -6
  637. package/dist/services/ssrf/ssrf-blocked-ip.error.js +0 -21
  638. package/dist/services/ssrf/ssrf-blocked-ip.error.js.map +0 -1
  639. package/dist/services/ssrf/ssrf-protection.service.d.ts +0 -26
  640. package/dist/services/ssrf/ssrf-protection.service.js +0 -159
  641. package/dist/services/ssrf/ssrf-protection.service.js.map +0 -1
@@ -7,19 +7,19 @@ export declare const PublicJweJwkSchema: z.ZodDiscriminatedUnion<"kty", [z.ZodOb
7
7
  n: z.ZodString;
8
8
  e: z.ZodString;
9
9
  }, "strict", z.ZodTypeAny, {
10
- kid: string;
11
- use: "enc";
12
10
  e: string;
11
+ kid: string;
13
12
  n: string;
14
13
  kty: "RSA";
15
14
  alg: "RSA-OAEP-256";
16
- }, {
17
- kid: string;
18
15
  use: "enc";
16
+ }, {
19
17
  e: string;
18
+ kid: string;
20
19
  n: string;
21
20
  kty: "RSA";
22
21
  alg: "RSA-OAEP-256";
22
+ use: "enc";
23
23
  }>, z.ZodObject<{
24
24
  kty: z.ZodLiteral<"EC">;
25
25
  kid: z.ZodString;
@@ -31,19 +31,19 @@ export declare const PublicJweJwkSchema: z.ZodDiscriminatedUnion<"kty", [z.ZodOb
31
31
  }, "strict", z.ZodTypeAny, {
32
32
  y: string;
33
33
  kid: string;
34
- use: "enc";
35
34
  crv: "P-256" | "P-384" | "P-521";
36
35
  x: string;
37
36
  kty: "EC";
38
37
  alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
38
+ use: "enc";
39
39
  }, {
40
40
  y: string;
41
41
  kid: string;
42
- use: "enc";
43
42
  crv: "P-256" | "P-384" | "P-521";
44
43
  x: string;
45
44
  kty: "EC";
46
45
  alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
46
+ use: "enc";
47
47
  }>]>;
48
48
  export type PublicJweJwk = z.infer<typeof PublicJweJwkSchema>;
49
49
  export declare const JwksResponseSchema: z.ZodObject<{
@@ -55,19 +55,19 @@ export declare const JwksResponseSchema: z.ZodObject<{
55
55
  n: z.ZodString;
56
56
  e: z.ZodString;
57
57
  }, "strict", z.ZodTypeAny, {
58
- kid: string;
59
- use: "enc";
60
58
  e: string;
59
+ kid: string;
61
60
  n: string;
62
61
  kty: "RSA";
63
62
  alg: "RSA-OAEP-256";
64
- }, {
65
- kid: string;
66
63
  use: "enc";
64
+ }, {
67
65
  e: string;
66
+ kid: string;
68
67
  n: string;
69
68
  kty: "RSA";
70
69
  alg: "RSA-OAEP-256";
70
+ use: "enc";
71
71
  }>, z.ZodObject<{
72
72
  kty: z.ZodLiteral<"EC">;
73
73
  kid: z.ZodString;
@@ -79,53 +79,53 @@ export declare const JwksResponseSchema: z.ZodObject<{
79
79
  }, "strict", z.ZodTypeAny, {
80
80
  y: string;
81
81
  kid: string;
82
- use: "enc";
83
82
  crv: "P-256" | "P-384" | "P-521";
84
83
  x: string;
85
84
  kty: "EC";
86
85
  alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
86
+ use: "enc";
87
87
  }, {
88
88
  y: string;
89
89
  kid: string;
90
- use: "enc";
91
90
  crv: "P-256" | "P-384" | "P-521";
92
91
  x: string;
93
92
  kty: "EC";
94
93
  alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
94
+ use: "enc";
95
95
  }>]>, "many">;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  keys: ({
98
- kid: string;
99
- use: "enc";
100
98
  e: string;
99
+ kid: string;
101
100
  n: string;
102
101
  kty: "RSA";
103
102
  alg: "RSA-OAEP-256";
103
+ use: "enc";
104
104
  } | {
105
105
  y: string;
106
106
  kid: string;
107
- use: "enc";
108
107
  crv: "P-256" | "P-384" | "P-521";
109
108
  x: string;
110
109
  kty: "EC";
111
110
  alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
111
+ use: "enc";
112
112
  })[];
113
113
  }, {
114
114
  keys: ({
115
- kid: string;
116
- use: "enc";
117
115
  e: string;
116
+ kid: string;
118
117
  n: string;
119
118
  kty: "RSA";
120
119
  alg: "RSA-OAEP-256";
120
+ use: "enc";
121
121
  } | {
122
122
  y: string;
123
123
  kid: string;
124
- use: "enc";
125
124
  crv: "P-256" | "P-384" | "P-521";
126
125
  x: string;
127
126
  kty: "EC";
128
127
  alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
128
+ use: "enc";
129
129
  })[];
130
130
  }>;
131
131
  export type JwksResponse = z.infer<typeof JwksResponseSchema>;
@@ -1,5 +1,5 @@
1
1
  import type { WorkflowExecuteBeforeContext, WorkflowExecuteAfterContext, WorkflowExecuteResumeContext, NodeExecuteBeforeContext, NodeExecuteAfterContext } from '@n8n/decorators';
2
- import { Logger } from '@n8n/backend-common';
2
+ import { LicenseState, Logger } from '@n8n/backend-common';
3
3
  import { ExecutionLevelTracer } from './execution-level-tracer';
4
4
  import { OtelConfig } from './otel.config';
5
5
  import { TraceContextService } from './tracing-context';
@@ -10,14 +10,18 @@ export declare class OtelLifecycleHandler {
10
10
  private readonly config;
11
11
  private readonly ownershipService;
12
12
  private readonly logger;
13
- constructor(tracer: ExecutionLevelTracer, traceContextService: TraceContextService, config: OtelConfig, ownershipService: OwnershipService, logger: Logger);
13
+ private readonly licenseState;
14
+ constructor(tracer: ExecutionLevelTracer, traceContextService: TraceContextService, config: OtelConfig, ownershipService: OwnershipService, logger: Logger, licenseState: LicenseState);
14
15
  private isPublishedWorkflow;
15
16
  onWorkflowStart(ctx: WorkflowExecuteBeforeContext): Promise<void>;
16
17
  onWorkflowResume(ctx: WorkflowExecuteResumeContext): Promise<void>;
17
18
  onWorkflowEnd(ctx: WorkflowExecuteAfterContext): void;
18
19
  onNodeStart(ctx: NodeExecuteBeforeContext): void;
19
20
  onNodeEnd(ctx: NodeExecuteAfterContext): void;
21
+ private areCustomSpanAttributesLicensed;
20
22
  private buildWorkflowCustomAttributes;
23
+ private buildProjectCustomAttributes;
24
+ private buildNodeCustomAttributes;
21
25
  }
22
26
  export declare function countOutputItems(data: NodeExecuteAfterContext['taskData']['data']): number;
23
27
  export declare function countInputItems(ctx: NodeExecuteAfterContext): number;
@@ -36,12 +36,13 @@ const getCustomTelemetryTags = (value) => {
36
36
  return Array.isArray(tag) ? tag.filter(isCustomTelemetryTag) : undefined;
37
37
  };
38
38
  let OtelLifecycleHandler = class OtelLifecycleHandler {
39
- constructor(tracer, traceContextService, config, ownershipService, logger) {
39
+ constructor(tracer, traceContextService, config, ownershipService, logger, licenseState) {
40
40
  this.tracer = tracer;
41
41
  this.traceContextService = traceContextService;
42
42
  this.config = config;
43
43
  this.ownershipService = ownershipService;
44
44
  this.logger = logger;
45
+ this.licenseState = licenseState;
45
46
  }
46
47
  isPublishedWorkflow(workflow) {
47
48
  return !!(workflow.activeVersionId ?? workflow.active);
@@ -71,7 +72,7 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
71
72
  project: project
72
73
  ? {
73
74
  id: project.id,
74
- customAttributes: buildProjectCustomAttributes(project.customTelemetryTags),
75
+ customAttributes: this.buildProjectCustomAttributes(project.customTelemetryTags),
75
76
  }
76
77
  : undefined,
77
78
  workflow: {
@@ -104,7 +105,7 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
104
105
  project: project
105
106
  ? {
106
107
  id: project.id,
107
- customAttributes: buildProjectCustomAttributes(project.customTelemetryTags),
108
+ customAttributes: this.buildProjectCustomAttributes(project.customTelemetryTags),
108
109
  }
109
110
  : undefined,
110
111
  workflow: {
@@ -149,22 +150,24 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
149
150
  const node = ctx.workflow.nodes.find((n) => n.name === ctx.nodeName);
150
151
  if (!node)
151
152
  return;
152
- const customAttributes = ctx.taskData.metadata?.tracing
153
- ? Object.fromEntries(Object.entries(ctx.taskData.metadata.tracing).map(([key, value]) => [key, String(value)]))
154
- : undefined;
155
153
  this.tracer.endNode({
156
154
  executionId: ctx.executionId,
157
155
  node,
158
156
  inputItemCount: countInputItems(ctx),
159
157
  outputItemCount: countOutputItems(ctx.taskData.data),
160
158
  error: ctx.taskData.error ?? undefined,
161
- customAttributes,
159
+ customAttributes: this.buildNodeCustomAttributes(ctx),
162
160
  });
163
161
  }
162
+ areCustomSpanAttributesLicensed() {
163
+ return this.licenseState.isOtelCustomSpanAttributesLicensed();
164
+ }
164
165
  buildWorkflowCustomAttributes(ctx) {
165
166
  const tags = getCustomTelemetryTags(ctx.workflow.settings?.customTelemetryTags);
166
167
  if (!tags?.length)
167
168
  return;
169
+ if (!this.areCustomSpanAttributesLicensed())
170
+ return;
168
171
  const customAttributes = {};
169
172
  for (const { key, value } of tags) {
170
173
  const trimmedKey = key.trim();
@@ -176,6 +179,24 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
176
179
  return;
177
180
  return customAttributes;
178
181
  }
182
+ buildProjectCustomAttributes(tags) {
183
+ if (!this.areCustomSpanAttributesLicensed())
184
+ return undefined;
185
+ if (!tags?.length)
186
+ return undefined;
187
+ const attrs = {};
188
+ for (const { key, value } of tags) {
189
+ attrs[key] = value;
190
+ }
191
+ return attrs;
192
+ }
193
+ buildNodeCustomAttributes(ctx) {
194
+ if (!ctx.taskData.metadata?.tracing)
195
+ return undefined;
196
+ if (!this.areCustomSpanAttributesLicensed())
197
+ return undefined;
198
+ return Object.fromEntries(Object.entries(ctx.taskData.metadata.tracing).map(([key, value]) => [key, String(value)]));
199
+ }
179
200
  };
180
201
  exports.OtelLifecycleHandler = OtelLifecycleHandler;
181
202
  __decorate([
@@ -214,17 +235,9 @@ exports.OtelLifecycleHandler = OtelLifecycleHandler = __decorate([
214
235
  tracing_context_1.TraceContextService,
215
236
  otel_config_1.OtelConfig,
216
237
  ownership_service_1.OwnershipService,
217
- backend_common_1.Logger])
238
+ backend_common_1.Logger,
239
+ backend_common_1.LicenseState])
218
240
  ], OtelLifecycleHandler);
219
- function buildProjectCustomAttributes(tags) {
220
- if (!tags?.length)
221
- return undefined;
222
- const attrs = {};
223
- for (const { key, value } of tags) {
224
- attrs[key] = value;
225
- }
226
- return attrs;
227
- }
228
241
  function countOutputItems(data) {
229
242
  if (!data?.main)
230
243
  return 0;
@@ -1 +1 @@
1
- {"version":3,"file":"otel-lifecycle-handler.js","sourceRoot":"","sources":["../../../src/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,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1E,CAAC;AAED,SAAgB,eAAe,CAAC,GAA4B;IAC3D,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC;IACrD,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM;YAAE,SAAS;QACtB,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChD,IAAI,CAAC,UAAU;YAAE,SAAS;QAE1B,MAAM,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,eAAe,IAAI,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI;YAAE,SAAS;QAE/B,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,IAAI,CAAC,CAAC,CAAC;QAC7D,KAAK,IAAI,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
@@ -30,8 +30,8 @@ declare const firecrawlQuickConnectSchema: z.ZodObject<{
30
30
  }>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  packageName: string;
33
- text: string;
34
33
  credentialType: string;
34
+ text: string;
35
35
  quickConnectType: "firecrawl";
36
36
  consentText: string;
37
37
  backendFlowConfig: {
@@ -46,8 +46,8 @@ declare const firecrawlQuickConnectSchema: z.ZodObject<{
46
46
  } | undefined;
47
47
  }, {
48
48
  packageName: string;
49
- text: string;
50
49
  credentialType: string;
50
+ text: string;
51
51
  quickConnectType: "firecrawl";
52
52
  consentText: string;
53
53
  backendFlowConfig: {
@@ -93,8 +93,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
93
93
  }>;
94
94
  }, "strip", z.ZodTypeAny, {
95
95
  packageName: string;
96
- text: string;
97
96
  credentialType: string;
97
+ text: string;
98
98
  quickConnectType: "firecrawl";
99
99
  consentText: string;
100
100
  backendFlowConfig: {
@@ -109,8 +109,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
109
109
  } | undefined;
110
110
  }, {
111
111
  packageName: string;
112
- text: string;
113
112
  credentialType: string;
113
+ text: string;
114
114
  quickConnectType: "firecrawl";
115
115
  consentText: string;
116
116
  backendFlowConfig: {
@@ -157,8 +157,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
157
157
  config: {
158
158
  integrationId: string;
159
159
  };
160
- text: string;
161
160
  credentialType: string;
161
+ text: string;
162
162
  quickConnectType: "pinecone";
163
163
  consentText?: string | undefined;
164
164
  consentCheckbox?: string | undefined;
@@ -173,8 +173,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
173
173
  config: {
174
174
  integrationId: string;
175
175
  };
176
- text: string;
177
176
  credentialType: string;
177
+ text: string;
178
178
  quickConnectType: "pinecone";
179
179
  consentText?: string | undefined;
180
180
  consentCheckbox?: string | undefined;
@@ -208,8 +208,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
208
208
  backendFlowConfig: z.ZodOptional<z.ZodNever>;
209
209
  }, "strip", z.ZodTypeAny, {
210
210
  packageName: string;
211
- text: string;
212
211
  credentialType: string;
212
+ text: string;
213
213
  quickConnectType: string;
214
214
  config?: undefined;
215
215
  consentText?: string | undefined;
@@ -222,8 +222,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
222
222
  backendFlowConfig?: undefined;
223
223
  }, {
224
224
  packageName: string;
225
- text: string;
226
225
  credentialType: string;
226
+ text: string;
227
227
  quickConnectType: string;
228
228
  config?: undefined;
229
229
  consentText?: string | undefined;
@@ -267,8 +267,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
267
267
  }>;
268
268
  }, "strip", z.ZodTypeAny, {
269
269
  packageName: string;
270
- text: string;
271
270
  credentialType: string;
271
+ text: string;
272
272
  quickConnectType: "firecrawl";
273
273
  consentText: string;
274
274
  backendFlowConfig: {
@@ -283,8 +283,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
283
283
  } | undefined;
284
284
  }, {
285
285
  packageName: string;
286
- text: string;
287
286
  credentialType: string;
287
+ text: string;
288
288
  quickConnectType: "firecrawl";
289
289
  consentText: string;
290
290
  backendFlowConfig: {
@@ -331,8 +331,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
331
331
  config: {
332
332
  integrationId: string;
333
333
  };
334
- text: string;
335
334
  credentialType: string;
335
+ text: string;
336
336
  quickConnectType: "pinecone";
337
337
  consentText?: string | undefined;
338
338
  consentCheckbox?: string | undefined;
@@ -347,8 +347,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
347
347
  config: {
348
348
  integrationId: string;
349
349
  };
350
- text: string;
351
350
  credentialType: string;
351
+ text: string;
352
352
  quickConnectType: "pinecone";
353
353
  consentText?: string | undefined;
354
354
  consentCheckbox?: string | undefined;
@@ -382,8 +382,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
382
382
  backendFlowConfig: z.ZodOptional<z.ZodNever>;
383
383
  }, "strip", z.ZodTypeAny, {
384
384
  packageName: string;
385
- text: string;
386
385
  credentialType: string;
386
+ text: string;
387
387
  quickConnectType: string;
388
388
  config?: undefined;
389
389
  consentText?: string | undefined;
@@ -396,8 +396,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
396
396
  backendFlowConfig?: undefined;
397
397
  }, {
398
398
  packageName: string;
399
- text: string;
400
399
  credentialType: string;
400
+ text: string;
401
401
  quickConnectType: string;
402
402
  config?: undefined;
403
403
  consentText?: string | undefined;
@@ -410,8 +410,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
410
410
  backendFlowConfig?: undefined;
411
411
  }>]>, "many">, ({
412
412
  packageName: string;
413
- text: string;
414
413
  credentialType: string;
414
+ text: string;
415
415
  quickConnectType: string;
416
416
  config?: undefined;
417
417
  consentText?: string | undefined;
@@ -424,36 +424,36 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
424
424
  backendFlowConfig?: undefined;
425
425
  } | {
426
426
  packageName: string;
427
- config: {
428
- integrationId: string;
429
- };
430
- text: string;
431
427
  credentialType: string;
432
- quickConnectType: "pinecone";
433
- consentText?: string | undefined;
428
+ text: string;
429
+ quickConnectType: "firecrawl";
430
+ consentText: string;
431
+ backendFlowConfig: {
432
+ secret: string;
433
+ };
434
+ config?: undefined;
434
435
  consentCheckbox?: string | undefined;
435
436
  disclaimer?: {
436
437
  text: string;
437
438
  linkUrl: string;
438
439
  linkLabel?: string | undefined;
439
440
  } | undefined;
440
- backendFlowConfig?: undefined;
441
441
  } | {
442
442
  packageName: string;
443
- text: string;
444
- credentialType: string;
445
- quickConnectType: "firecrawl";
446
- consentText: string;
447
- backendFlowConfig: {
448
- secret: string;
443
+ config: {
444
+ integrationId: string;
449
445
  };
450
- config?: undefined;
446
+ credentialType: string;
447
+ text: string;
448
+ quickConnectType: "pinecone";
449
+ consentText?: string | undefined;
451
450
  consentCheckbox?: string | undefined;
452
451
  disclaimer?: {
453
452
  text: string;
454
453
  linkUrl: string;
455
454
  linkLabel?: string | undefined;
456
455
  } | undefined;
456
+ backendFlowConfig?: undefined;
457
457
  })[], unknown>>;
458
458
  export type QuickConnectOptions = z.infer<typeof quickConnectOptionsSchema>;
459
459
  export declare class QuickConnectConfig {
@@ -4,8 +4,8 @@ export declare class QuickConnectModule implements ModuleInterface {
4
4
  settings(): Promise<{
5
5
  options: ({
6
6
  packageName: string;
7
- text: string;
8
7
  credentialType: string;
8
+ text: string;
9
9
  quickConnectType: string;
10
10
  config?: undefined;
11
11
  consentText?: string | undefined;
@@ -17,13 +17,11 @@ export declare class QuickConnectModule implements ModuleInterface {
17
17
  } | undefined;
18
18
  } | {
19
19
  packageName: string;
20
- config: {
21
- integrationId: string;
22
- };
23
- text: string;
24
20
  credentialType: string;
25
- quickConnectType: "pinecone";
26
- consentText?: string | undefined;
21
+ text: string;
22
+ quickConnectType: "firecrawl";
23
+ consentText: string;
24
+ config?: undefined;
27
25
  consentCheckbox?: string | undefined;
28
26
  disclaimer?: {
29
27
  text: string;
@@ -32,11 +30,13 @@ export declare class QuickConnectModule implements ModuleInterface {
32
30
  } | undefined;
33
31
  } | {
34
32
  packageName: string;
35
- text: string;
33
+ config: {
34
+ integrationId: string;
35
+ };
36
36
  credentialType: string;
37
- quickConnectType: "firecrawl";
38
- consentText: string;
39
- config?: undefined;
37
+ text: string;
38
+ quickConnectType: "pinecone";
39
+ consentText?: string | undefined;
40
40
  consentCheckbox?: string | undefined;
41
41
  disclaimer?: {
42
42
  text: string;
@@ -4,7 +4,7 @@ export interface RedactionContext {
4
4
  readonly user: User;
5
5
  readonly redactExecutionData: boolean | undefined;
6
6
  readonly userCanReveal: boolean;
7
- readonly hasDynamicCredentials: boolean;
7
+ readonly enforceDynCredRedaction: boolean;
8
8
  readonly memo: Map<string, unknown>;
9
9
  }
10
10
  export interface IExecutionRedactionStrategy {
@@ -15,6 +15,7 @@ export declare class ExecutionRedactionService implements ExecutionRedaction {
15
15
  processExecutions(executions: RedactableExecution[], options: ExecutionRedactionOptions): Promise<void>;
16
16
  private buildPipeline;
17
17
  private hasDynamicCredentials;
18
+ private isOwnDynamicCredentialsExecution;
18
19
  private policyAllowsReveal;
19
20
  private resolvePolicy;
20
21
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ExecutionRedactionService = void 0;
13
13
  const backend_common_1 = require("@n8n/backend-common");
14
14
  const di_1 = require("@n8n/di");
15
+ const n8n_workflow_1 = require("n8n-workflow");
15
16
  const forbidden_error_1 = require("../../../errors/response-errors/forbidden.error");
16
17
  const scope_forbidden_error_1 = require("../../../errors/response-errors/scope-forbidden.error");
17
18
  const event_service_1 = require("../../../events/event.service");
@@ -48,11 +49,16 @@ let ExecutionRedactionService = class ExecutionRedactionService {
48
49
  }
49
50
  if (options.redactExecutionData === false) {
50
51
  for (const execution of processable) {
51
- if (this.hasDynamicCredentials(execution)) {
52
+ if (this.hasDynamicCredentials(execution) &&
53
+ !this.isOwnDynamicCredentialsExecution(execution, options.user.id)) {
52
54
  throw new forbidden_error_1.ForbiddenError();
53
55
  }
54
56
  }
55
57
  for (const execution of needsCheck) {
58
+ if (this.hasDynamicCredentials(execution) &&
59
+ this.isOwnDynamicCredentialsExecution(execution, options.user.id)) {
60
+ continue;
61
+ }
56
62
  if (!revealableIds.has(execution.workflowId)) {
57
63
  this.eventService.emit('execution-data-reveal-failure', {
58
64
  user: options.user,
@@ -72,21 +78,24 @@ let ExecutionRedactionService = class ExecutionRedactionService {
72
78
  if (execution.data === undefined || execution.data === null)
73
79
  continue;
74
80
  const hasDynCreds = this.hasDynamicCredentials(execution);
81
+ const isOwnDynCreds = hasDynCreds && this.isOwnDynamicCredentialsExecution(execution, options.user.id);
75
82
  const policyAllowsReveal = this.policyAllowsReveal(execution);
76
83
  const userCanReveal = hasDynCreds
77
- ? false
84
+ ? isOwnDynCreds
78
85
  : policyAllowsReveal || revealableIds.has(execution.workflowId);
86
+ const enforceDynCredRedaction = hasDynCreds && !isOwnDynCreds;
79
87
  const context = {
80
88
  user: options.user,
81
89
  redactExecutionData: options.redactExecutionData,
82
90
  userCanReveal,
83
- hasDynamicCredentials: hasDynCreds,
91
+ enforceDynCredRedaction,
84
92
  memo: new Map(),
85
93
  };
86
- const pipeline = this.buildPipeline(execution, context, policyAllowsReveal, hasDynCreds);
94
+ const pipeline = this.buildPipeline(execution, context, policyAllowsReveal, enforceDynCredRedaction);
95
+ const needsCredentialStrip = hasDynCreds && execution.data.executionData?.runtimeData?.credentials !== undefined;
87
96
  let target = execution;
88
97
  if (options.keepOriginal) {
89
- const needsClone = pipeline.some((s) => s.requiresRedaction(execution, context));
98
+ const needsClone = needsCredentialStrip || pipeline.some((s) => s.requiresRedaction(execution, context));
90
99
  if (!needsClone)
91
100
  continue;
92
101
  target = structuredClone(execution);
@@ -95,7 +104,7 @@ let ExecutionRedactionService = class ExecutionRedactionService {
95
104
  for (const strategy of pipeline) {
96
105
  await strategy.apply(target, context);
97
106
  }
98
- if (hasDynCreds && target.data.executionData?.runtimeData) {
107
+ if (needsCredentialStrip && target.data.executionData?.runtimeData) {
99
108
  delete target.data.executionData.runtimeData.credentials;
100
109
  }
101
110
  }
@@ -112,12 +121,12 @@ let ExecutionRedactionService = class ExecutionRedactionService {
112
121
  }
113
122
  }
114
123
  }
115
- buildPipeline(execution, context, policyAllowsReveal, hasDynamicCredentials) {
124
+ buildPipeline(execution, context, policyAllowsReveal, enforceDynCredRedaction) {
116
125
  const pipeline = [];
117
126
  const policy = this.resolvePolicy(execution);
118
127
  const shouldClearItems = context.redactExecutionData !== false &&
119
128
  (context.redactExecutionData === true ||
120
- hasDynamicCredentials ||
129
+ enforceDynCredRedaction ||
121
130
  (!policyAllowsReveal &&
122
131
  (policy === 'all' ||
123
132
  (policy === 'non-manual' && !MANUAL_MODES.has(execution.mode)) ||
@@ -130,6 +139,9 @@ let ExecutionRedactionService = class ExecutionRedactionService {
130
139
  hasDynamicCredentials(execution) {
131
140
  return Object.values(execution.data.resultData?.runData ?? {}).some((taskDataList) => taskDataList.some((taskData) => taskData.usedDynamicCredentials));
132
141
  }
142
+ isOwnDynamicCredentialsExecution(execution, userId) {
143
+ return execution.data.executionData?.runtimeData?.executedByUserId === userId;
144
+ }
133
145
  policyAllowsReveal(execution) {
134
146
  const policy = this.resolvePolicy(execution);
135
147
  return (policy === 'none' ||
@@ -139,9 +151,11 @@ let ExecutionRedactionService = class ExecutionRedactionService {
139
151
  resolvePolicy(execution) {
140
152
  if (!this.licenseState.isDataRedactionLicensed())
141
153
  return 'none';
142
- return (execution.data.executionData?.runtimeData?.redaction?.policy ??
143
- execution.workflowData.settings?.redactionPolicy ??
144
- 'none');
154
+ const redaction = execution.data.executionData?.runtimeData?.redaction;
155
+ if (redaction?.version === 2) {
156
+ return (0, n8n_workflow_1.channelsToPolicy)({ production: redaction.production, manual: redaction.manual });
157
+ }
158
+ return redaction?.policy ?? execution.workflowData.settings?.redactionPolicy ?? 'none';
145
159
  }
146
160
  };
147
161
  exports.ExecutionRedactionService = ExecutionRedactionService;