n8n 2.47.3 → 2.48.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 (517) hide show
  1. package/dist/active-workflow-manager.d.ts +4 -2
  2. package/dist/active-workflow-manager.js +29 -4
  3. package/dist/active-workflow-manager.js.map +1 -1
  4. package/dist/build.tsbuildinfo +1 -1
  5. package/dist/commands/engine.d.ts +1 -1
  6. package/dist/commands/engine.js +7 -4
  7. package/dist/commands/engine.js.map +1 -1
  8. package/dist/commands/start.js +4 -6
  9. package/dist/commands/start.js.map +1 -1
  10. package/dist/commands/webhook.js +2 -4
  11. package/dist/commands/webhook.js.map +1 -1
  12. package/dist/commands/worker.js +2 -4
  13. package/dist/commands/worker.js.map +1 -1
  14. package/dist/constants.d.ts +1 -0
  15. package/dist/constants.js +2 -1
  16. package/dist/constants.js.map +1 -1
  17. package/dist/controllers/ai.controller.js +8 -8
  18. package/dist/controllers/ai.controller.js.map +1 -1
  19. package/dist/controllers/api-keys.controller.d.ts +2 -2
  20. package/dist/controllers/auth.controller.js +1 -0
  21. package/dist/controllers/auth.controller.js.map +1 -1
  22. package/dist/controllers/project.controller.d.ts +3 -3
  23. package/dist/controllers/project.controller.js +7 -8
  24. package/dist/controllers/project.controller.js.map +1 -1
  25. package/dist/credentials-overwrites.js +1 -1
  26. package/dist/credentials-overwrites.js.map +1 -1
  27. package/dist/environments.ee/variables/variables.service.ee.js +4 -21
  28. package/dist/environments.ee/variables/variables.service.ee.js.map +1 -1
  29. package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +1 -2
  30. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +1 -2
  31. package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
  32. package/dist/eventbus/event-message-classes/index.d.ts +2 -2
  33. package/dist/eventbus/event-message-classes/index.js +1 -0
  34. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  35. package/dist/events/maps/relay.event-map.d.ts +6 -1
  36. package/dist/events/relays/log-streaming.event-relay.d.ts +1 -0
  37. package/dist/events/relays/log-streaming.event-relay.js +27 -4
  38. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  39. package/dist/events/relays/telemetry.event-relay.d.ts +10 -0
  40. package/dist/events/relays/telemetry.event-relay.js +98 -1
  41. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  42. package/dist/executions/execution.service.js +3 -14
  43. package/dist/executions/execution.service.js.map +1 -1
  44. package/dist/external-hooks.js +4 -3
  45. package/dist/external-hooks.js.map +1 -1
  46. package/dist/idempotency/idempotency-request.js +3 -2
  47. package/dist/idempotency/idempotency-request.js.map +1 -1
  48. package/dist/license.js +1 -1
  49. package/dist/license.js.map +1 -1
  50. package/dist/middlewares/body-parser.js +40 -6
  51. package/dist/middlewares/body-parser.js.map +1 -1
  52. package/dist/modules/agents/agent-change-publisher.service.d.ts +1 -2
  53. package/dist/modules/agents/agent-change-publisher.service.js +2 -2
  54. package/dist/modules/agents/agent-change-publisher.service.js.map +1 -1
  55. package/dist/modules/agents/agent-chat-attachment.service.d.ts +20 -2
  56. package/dist/modules/agents/agent-chat-attachment.service.js +85 -3
  57. package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
  58. package/dist/modules/agents/agent-chat-execution.service.d.ts +2 -2
  59. package/dist/modules/agents/agent-chat-execution.service.js +2 -2
  60. package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
  61. package/dist/modules/agents/agent-chat-relay.service.js +7 -2
  62. package/dist/modules/agents/agent-chat-relay.service.js.map +1 -1
  63. package/dist/modules/agents/agent-chat.controller.d.ts +12 -1
  64. package/dist/modules/agents/agent-chat.controller.js +55 -10
  65. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  66. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +1 -0
  67. package/dist/modules/agents/agent-execution-orchestrator.service.js +8 -0
  68. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  69. package/dist/modules/agents/agent-execution-update-broadcaster.d.ts +2 -2
  70. package/dist/modules/agents/agent-execution-update-broadcaster.js +2 -2
  71. package/dist/modules/agents/agent-execution-update-broadcaster.js.map +1 -1
  72. package/dist/modules/agents/agent-file-bridge.service.d.ts +3 -1
  73. package/dist/modules/agents/agent-file-bridge.service.js +29 -9
  74. package/dist/modules/agents/agent-file-bridge.service.js.map +1 -1
  75. package/dist/modules/agents/agent-knowledge-mirror.service.d.ts +2 -2
  76. package/dist/modules/agents/agent-knowledge-mirror.service.js +2 -2
  77. package/dist/modules/agents/agent-knowledge-mirror.service.js.map +1 -1
  78. package/dist/modules/agents/agent-knowledge-snapshot.service.d.ts +5 -2
  79. package/dist/modules/agents/agent-knowledge-snapshot.service.js +12 -4
  80. package/dist/modules/agents/agent-knowledge-snapshot.service.js.map +1 -1
  81. package/dist/modules/agents/agent-knowledge-storage.d.ts +2 -2
  82. package/dist/modules/agents/agent-knowledge-storage.js.map +1 -1
  83. package/dist/modules/agents/agent-knowledge.service.d.ts +2 -2
  84. package/dist/modules/agents/agent-knowledge.service.js +6 -2
  85. package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
  86. package/dist/modules/agents/agent-publish.service.d.ts +4 -2
  87. package/dist/modules/agents/agent-publish.service.js +8 -3
  88. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  89. package/dist/modules/agents/agent-queued-test-stream.service.d.ts +2 -3
  90. package/dist/modules/agents/agent-queued-test-stream.service.js +2 -3
  91. package/dist/modules/agents/agent-queued-test-stream.service.js.map +1 -1
  92. package/dist/modules/agents/agent-runtime-cache.service.d.ts +1 -1
  93. package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
  94. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +6 -2
  95. package/dist/modules/agents/agent-runtime-reconstruction.service.js +41 -22
  96. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  97. package/dist/modules/agents/agent-sandbox-files.service.d.ts +58 -0
  98. package/dist/modules/agents/agent-sandbox-files.service.js +266 -0
  99. package/dist/modules/agents/agent-sandbox-files.service.js.map +1 -0
  100. package/dist/modules/agents/agent-session-stop.service.d.ts +2 -2
  101. package/dist/modules/agents/agent-session-stop.service.js +2 -2
  102. package/dist/modules/agents/agent-session-stop.service.js.map +1 -1
  103. package/dist/modules/agents/agent-task.service.d.ts +1 -1
  104. package/dist/modules/agents/agent-task.service.js.map +1 -1
  105. package/dist/modules/agents/agent-turn-execution.service.d.ts +4 -1
  106. package/dist/modules/agents/agent-turn-execution.service.js +19 -2
  107. package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
  108. package/dist/modules/agents/agent-update-broadcaster.d.ts +2 -2
  109. package/dist/modules/agents/agent-update-broadcaster.js +2 -2
  110. package/dist/modules/agents/agent-update-broadcaster.js.map +1 -1
  111. package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -0
  112. package/dist/modules/agents/agent-workflow-execution.service.js +21 -4
  113. package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
  114. package/dist/modules/agents/agent-workflow-tool-resume.service.d.ts +1 -1
  115. package/dist/modules/agents/agent-workflow-tool-resume.service.js +2 -2
  116. package/dist/modules/agents/agent-workflow-tool-resume.service.js.map +1 -1
  117. package/dist/modules/agents/agents-settings.controller.d.ts +1 -1
  118. package/dist/modules/agents/agents-settings.controller.js +2 -2
  119. package/dist/modules/agents/agents-settings.controller.js.map +1 -1
  120. package/dist/modules/agents/agents.module.d.ts +1 -1
  121. package/dist/modules/agents/agents.module.js +0 -2
  122. package/dist/modules/agents/agents.module.js.map +1 -1
  123. package/dist/modules/agents/background/agent-background-job.service.d.ts +1 -1
  124. package/dist/modules/agents/background/agent-background-job.service.js +2 -2
  125. package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
  126. package/dist/modules/agents/background/agent-wake.service.d.ts +1 -1
  127. package/dist/modules/agents/background/agent-wake.service.js +2 -2
  128. package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
  129. package/dist/modules/agents/background/background-job-tools.js +9 -1
  130. package/dist/modules/agents/background/background-job-tools.js.map +1 -1
  131. package/dist/modules/agents/budget-guardrail.d.ts +1 -0
  132. package/dist/modules/agents/budget-guardrail.js +19 -10
  133. package/dist/modules/agents/budget-guardrail.js.map +1 -1
  134. package/dist/modules/agents/entities/agent-chat-attachment.entity.d.ts +1 -0
  135. package/dist/modules/agents/entities/agent-chat-attachment.entity.js +4 -0
  136. package/dist/modules/agents/entities/agent-chat-attachment.entity.js.map +1 -1
  137. package/dist/modules/agents/integrations/agent-chat-bridge.js +3 -1
  138. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  139. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +0 -1
  140. package/dist/modules/agents/integrations/agent-chat-integration.js +1 -2
  141. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  142. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +3 -1
  143. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
  144. package/dist/modules/agents/integrations/agent-chat-subscription-state.adapter.d.ts +1 -1
  145. package/dist/modules/agents/integrations/agent-chat-subscription-state.service.d.ts +1 -1
  146. package/dist/modules/agents/integrations/agent-chat-subscription-state.service.js.map +1 -1
  147. package/dist/modules/agents/integrations/agent-outbound-files.service.d.ts +3 -1
  148. package/dist/modules/agents/integrations/agent-outbound-files.service.js +21 -6
  149. package/dist/modules/agents/integrations/agent-outbound-files.service.js.map +1 -1
  150. package/dist/modules/agents/integrations/chat-integration.service.d.ts +1 -1
  151. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  152. package/dist/modules/agents/integrations/integration-tool-descriptions.d.ts +1 -1
  153. package/dist/modules/agents/integrations/integration-tool-descriptions.js +2 -2
  154. package/dist/modules/agents/integrations/integration-tool-descriptions.js.map +1 -1
  155. package/dist/modules/agents/integrations/leader-channel-relay.service.d.ts +2 -2
  156. package/dist/modules/agents/integrations/leader-channel-relay.service.js +2 -2
  157. package/dist/modules/agents/integrations/leader-channel-relay.service.js.map +1 -1
  158. package/dist/modules/agents/integrations/platforms/telegram/telegram-integration.js +14 -1
  159. package/dist/modules/agents/integrations/platforms/telegram/telegram-integration.js.map +1 -1
  160. package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +17 -0
  161. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +30 -0
  162. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -1
  163. package/dist/modules/agents/repositories/agent-history.repository.js +2 -1
  164. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
  165. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +11 -1
  166. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
  167. package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +4 -1
  168. package/dist/modules/agents/sub-agents/sub-agent-runner.js +34 -4
  169. package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
  170. package/dist/modules/agents/system-agents/system-agent-execution.service.d.ts +1 -0
  171. package/dist/modules/agents/system-agents/system-agent-execution.service.js +21 -9
  172. package/dist/modules/agents/system-agents/system-agent-execution.service.js.map +1 -1
  173. package/dist/modules/agents/system-agents/system-agent.types.d.ts +7 -0
  174. package/dist/modules/agents/tools/import-files.tool.d.ts +16 -0
  175. package/dist/modules/agents/tools/import-files.tool.js +28 -0
  176. package/dist/modules/agents/tools/import-files.tool.js.map +1 -0
  177. package/dist/modules/agents/tools/read-binary-data.tool.js +3 -1
  178. package/dist/modules/agents/tools/read-binary-data.tool.js.map +1 -1
  179. package/dist/modules/agents/utils/gateway-error-classifier.d.ts +2 -0
  180. package/dist/modules/agents/utils/gateway-error-classifier.js +19 -0
  181. package/dist/modules/agents/utils/gateway-error-classifier.js.map +1 -0
  182. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js +3 -2
  183. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js.map +1 -1
  184. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js +1 -3
  185. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js.map +1 -1
  186. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js +1 -1
  187. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js.map +1 -1
  188. package/dist/modules/breaking-changes/owners/workflow-owner.d.ts +3 -3
  189. package/dist/modules/breaking-changes/owners/workflow-owner.js +3 -8
  190. package/dist/modules/breaking-changes/owners/workflow-owner.js.map +1 -1
  191. package/dist/modules/chat-hub/chat-message.repository.js +1 -1
  192. package/dist/modules/chat-hub/chat-message.repository.js.map +1 -1
  193. package/dist/modules/chat-hub/chat-stream.service.d.ts +1 -1
  194. package/dist/modules/chat-hub/chat-stream.service.js +2 -2
  195. package/dist/modules/chat-hub/chat-stream.service.js.map +1 -1
  196. package/dist/modules/community-packages/community-packages.service.d.ts +1 -1
  197. package/dist/modules/community-packages/community-packages.service.js +2 -2
  198. package/dist/modules/community-packages/community-packages.service.js.map +1 -1
  199. package/dist/modules/engine-v2/engine-additional-data.d.ts +2 -2
  200. package/dist/modules/engine-v2/engine-additional-data.js +2 -1
  201. package/dist/modules/engine-v2/engine-additional-data.js.map +1 -1
  202. package/dist/modules/engine-v2/engine-data-plane-client.d.ts +3 -2
  203. package/dist/modules/engine-v2/engine-data-plane-client.js +5 -2
  204. package/dist/modules/engine-v2/engine-data-plane-client.js.map +1 -1
  205. package/dist/modules/engine-v2/engine-data-tables.contract.d.ts +388 -0
  206. package/dist/modules/engine-v2/engine-data-tables.contract.js +61 -1
  207. package/dist/modules/engine-v2/engine-data-tables.contract.js.map +1 -1
  208. package/dist/modules/engine-v2/engine-data-tables.controller.js +2 -1
  209. package/dist/modules/engine-v2/engine-data-tables.controller.js.map +1 -1
  210. package/dist/modules/engine-v2/engine-v2.constants.d.ts +1 -0
  211. package/dist/modules/engine-v2/engine-v2.constants.js +2 -1
  212. package/dist/modules/engine-v2/engine-v2.constants.js.map +1 -1
  213. package/dist/modules/engine-v2/engine-v2.module.d.ts +2 -2
  214. package/dist/modules/engine-v2/engine-v2.module.js +20 -14
  215. package/dist/modules/engine-v2/engine-v2.module.js.map +1 -1
  216. package/dist/modules/engine-v2/engine-v2.runtime.d.ts +4 -2
  217. package/dist/modules/engine-v2/engine-v2.runtime.js +15 -7
  218. package/dist/modules/engine-v2/engine-v2.runtime.js.map +1 -1
  219. package/dist/modules/engine-v2/execution-channel/execution-channel-receiver.d.ts +20 -0
  220. package/dist/modules/engine-v2/execution-channel/execution-channel-receiver.js +62 -0
  221. package/dist/modules/engine-v2/execution-channel/execution-channel-receiver.js.map +1 -0
  222. package/dist/modules/engine-v2/execution-channel/execution-channel-sender.d.ts +18 -0
  223. package/dist/modules/engine-v2/execution-channel/execution-channel-sender.js +40 -0
  224. package/dist/modules/engine-v2/execution-channel/execution-channel-sender.js.map +1 -0
  225. package/dist/modules/engine-v2/{response-channel → execution-channel}/execution-response-frame.d.ts +2 -9
  226. package/dist/modules/engine-v2/{response-channel → execution-channel}/execution-response-frame.js +9 -0
  227. package/dist/modules/engine-v2/execution-channel/execution-response-frame.js.map +1 -0
  228. package/dist/modules/engine-v2/{response-channel → execution-channel}/execution-response-receiver.d.ts +2 -2
  229. package/dist/modules/engine-v2/execution-channel/execution-response-receiver.js.map +1 -0
  230. package/dist/modules/engine-v2/execution-channel/in-memory-execution-channel.d.ts +12 -0
  231. package/dist/modules/engine-v2/execution-channel/in-memory-execution-channel.js +32 -0
  232. package/dist/modules/engine-v2/execution-channel/in-memory-execution-channel.js.map +1 -0
  233. package/dist/modules/engine-v2/execution-channel/redis-execution-channel-publisher.d.ts +19 -0
  234. package/dist/modules/engine-v2/{response-channel/redis-execution-response-sender.js → execution-channel/redis-execution-channel-publisher.js} +12 -17
  235. package/dist/modules/engine-v2/execution-channel/redis-execution-channel-publisher.js.map +1 -0
  236. package/dist/modules/engine-v2/{response-channel/redis-execution-response-receiver.d.ts → execution-channel/redis-execution-channel-subscriber.d.ts} +6 -7
  237. package/dist/modules/engine-v2/{response-channel/redis-execution-response-receiver.js → execution-channel/redis-execution-channel-subscriber.js} +16 -20
  238. package/dist/modules/engine-v2/execution-channel/redis-execution-channel-subscriber.js.map +1 -0
  239. package/dist/modules/engine-v2/execution-channel/redis-execution-channel.d.ts +5 -0
  240. package/dist/modules/engine-v2/execution-channel/redis-execution-channel.js +30 -0
  241. package/dist/modules/engine-v2/execution-channel/redis-execution-channel.js.map +1 -0
  242. package/dist/modules/engine-v2/remote-data-table-proxy-provider.d.ts +12 -0
  243. package/dist/modules/engine-v2/remote-data-table-proxy-provider.js +143 -0
  244. package/dist/modules/engine-v2/remote-data-table-proxy-provider.js.map +1 -0
  245. package/dist/modules/engine-v2/webhook-response/webhook-response-registry.service.d.ts +1 -1
  246. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +1 -2
  247. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +1 -2
  248. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
  249. package/dist/modules/inbound-auth-core/constants.d.ts +2 -2
  250. package/dist/modules/inbound-auth-core/constants.js +2 -2
  251. package/dist/modules/inbound-auth-core/constants.js.map +1 -1
  252. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.d.ts +2 -0
  253. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +11 -0
  254. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
  255. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +1 -1
  256. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -1
  257. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +6 -0
  258. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
  259. package/dist/modules/inbound-auth-core/trusted-source.controller.js +1 -2
  260. package/dist/modules/inbound-auth-core/trusted-source.controller.js.map +1 -1
  261. package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +3 -2
  262. package/dist/modules/inbound-auth-core/trusted-source.store.js +51 -13
  263. package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
  264. package/dist/modules/instance-ai/assistant-agent/assistant-agent.provider.d.ts +1 -1
  265. package/dist/modules/instance-ai/assistant-agent/assistant-agent.provider.js +13 -24
  266. package/dist/modules/instance-ai/assistant-agent/assistant-agent.provider.js.map +1 -1
  267. package/dist/modules/instance-ai/assistant-agent/assistant-turn-trace.d.ts +3 -2
  268. package/dist/modules/instance-ai/assistant-agent/assistant-turn-trace.js.map +1 -1
  269. package/dist/modules/instance-ai/assistant.controller.d.ts +1 -1
  270. package/dist/modules/instance-ai/assistant.controller.js +2 -2
  271. package/dist/modules/instance-ai/assistant.controller.js.map +1 -1
  272. package/dist/modules/instance-ai/event-bus/in-process-event-bus.d.ts +1 -1
  273. package/dist/modules/instance-ai/event-bus/in-process-event-bus.js +4 -5
  274. package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
  275. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +0 -2
  276. package/dist/modules/instance-ai/instance-ai.adapter.service.js +11 -14
  277. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  278. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
  279. package/dist/modules/instance-ai/instance-ai.service.d.ts +3 -3
  280. package/dist/modules/instance-ai/instance-ai.service.js +30 -10
  281. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  282. package/dist/modules/instance-ai/internal-messages.js +15 -0
  283. package/dist/modules/instance-ai/internal-messages.js.map +1 -1
  284. package/dist/modules/instance-ai/onboarding.js +2 -1
  285. package/dist/modules/instance-ai/onboarding.js.map +1 -1
  286. package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.d.ts +10 -4
  287. package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js +47 -4
  288. package/dist/modules/instance-ai/repositories/instance-ai-observation-lock.repository.js.map +1 -1
  289. package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.d.ts +2 -3
  290. package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.js +2 -2
  291. package/dist/modules/instance-ai/self-healing/self-healing-trigger.service.js.map +1 -1
  292. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js +5 -38
  293. package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -1
  294. package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.d.ts +0 -1
  295. package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js +5 -4
  296. package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js.map +1 -1
  297. package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js +3 -3
  298. package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js.map +1 -1
  299. package/dist/modules/instance-ai/turn-setup/assistant-turn-trace-input.d.ts +5 -1
  300. package/dist/modules/instance-ai/turn-setup/assistant-turn-trace-input.js +7 -1
  301. package/dist/modules/instance-ai/turn-setup/assistant-turn-trace-input.js.map +1 -1
  302. package/dist/modules/instance-ai/web-research/fetch-and-extract.js +6 -1
  303. package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
  304. package/dist/modules/{agents/entities/agent-file.entity.d.ts → knowledge/entities/knowledge-file.entity.d.ts} +1 -4
  305. package/dist/modules/{agents/entities/agent-file.entity.js → knowledge/entities/knowledge-file.entity.js} +12 -18
  306. package/dist/modules/knowledge/entities/knowledge-file.entity.js.map +1 -0
  307. package/dist/modules/knowledge/knowledge.module.js +2 -1
  308. package/dist/modules/knowledge/knowledge.module.js.map +1 -1
  309. package/dist/modules/{agents/repositories/agent-file.repository.d.ts → knowledge/repositories/knowledge-file.repository.d.ts} +5 -5
  310. package/dist/modules/{agents/repositories/agent-file.repository.js → knowledge/repositories/knowledge-file.repository.js} +18 -18
  311. package/dist/modules/knowledge/repositories/knowledge-file.repository.js.map +1 -0
  312. package/dist/modules/log-streaming.ee/log-streaming-destination.service.d.ts +1 -1
  313. package/dist/modules/log-streaming.ee/log-streaming-destination.service.js +2 -2
  314. package/dist/modules/log-streaming.ee/log-streaming-destination.service.js.map +1 -1
  315. package/dist/modules/mcp/mcp-protected-resource.d.ts +0 -1
  316. package/dist/modules/mcp/mcp-protected-resource.js +1 -12
  317. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  318. package/dist/modules/mcp/mcp-tool-availability.d.ts +0 -2
  319. package/dist/modules/mcp/mcp-tool-availability.js +0 -5
  320. package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
  321. package/dist/modules/mcp/mcp.service.d.ts +0 -1
  322. package/dist/modules/mcp/mcp.service.js +5 -9
  323. package/dist/modules/mcp/mcp.service.js.map +1 -1
  324. package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +1 -1
  325. package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +1 -1
  326. package/dist/modules/mcp-registry/registry/mcp-registry.service.js +2 -2
  327. package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
  328. package/dist/modules/modules.manifest.js +1 -0
  329. package/dist/modules/modules.manifest.js.map +1 -1
  330. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  331. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js +5 -1
  332. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -1
  333. package/dist/modules/oauth-server/database/repositories/oauth-client.repository.d.ts +14 -3
  334. package/dist/modules/oauth-server/database/repositories/oauth-client.repository.js +43 -4
  335. package/dist/modules/oauth-server/database/repositories/oauth-client.repository.js.map +1 -1
  336. package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.js +3 -2
  337. package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.js.map +1 -1
  338. package/dist/modules/oauth-server/oauth-clients.controller.js +2 -1
  339. package/dist/modules/oauth-server/oauth-clients.controller.js.map +1 -1
  340. package/dist/modules/oauth-server/oauth-consent.service.js +1 -3
  341. package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
  342. package/dist/modules/oauth-server/oauth-server.service.d.ts +2 -2
  343. package/dist/modules/oauth-server/oauth-server.service.js +19 -32
  344. package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
  345. package/dist/modules/oauth-server/oauth-signing-key.service.js +25 -10
  346. package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
  347. package/dist/modules/otel/otel.service.d.ts +1 -1
  348. package/dist/modules/otel/otel.service.js +2 -2
  349. package/dist/modules/otel/otel.service.js.map +1 -1
  350. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +2 -0
  351. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -1
  352. package/dist/modules/promotions.ee/promotion-review-changes.service.js +6 -3
  353. package/dist/modules/promotions.ee/promotion-review-changes.service.js.map +1 -1
  354. package/dist/modules/promotions.ee/promotion-review-inbox.service.js +2 -3
  355. package/dist/modules/promotions.ee/promotion-review-inbox.service.js.map +1 -1
  356. package/dist/modules/promotions.ee/promotion-review.utils.js +5 -1
  357. package/dist/modules/promotions.ee/promotion-review.utils.js.map +1 -1
  358. package/dist/modules/promotions.ee/promotions.service.js +2 -0
  359. package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
  360. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -2
  361. package/dist/modules/provisioning.ee/provisioning.service.ee.js +1 -2
  362. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  363. package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js +4 -3
  364. package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js.map +1 -1
  365. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.d.ts +0 -1
  366. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +4 -11
  367. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
  368. package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +1 -2
  369. package/dist/modules/redaction/instance-redaction-enforcement.service.js +1 -2
  370. package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
  371. package/dist/modules/scim/scim-body-parser.js +2 -1
  372. package/dist/modules/scim/scim-body-parser.js.map +1 -1
  373. package/dist/modules/skills/services/skill.service.js +1 -9
  374. package/dist/modules/skills/services/skill.service.js.map +1 -1
  375. package/dist/modules/source-control.ee/source-control-context.factory.js +1 -1
  376. package/dist/modules/source-control.ee/source-control-context.factory.js.map +1 -1
  377. package/dist/modules/source-control.ee/source-control-git.service.ee.js +2 -3
  378. package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
  379. package/dist/modules/source-control.ee/source-control-helper.ee.d.ts +5 -1
  380. package/dist/modules/source-control.ee/source-control-helper.ee.js +12 -0
  381. package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
  382. package/dist/modules/source-control.ee/source-control-preferences.service.ee.js +1 -1
  383. package/dist/modules/source-control.ee/source-control-preferences.service.ee.js.map +1 -1
  384. package/dist/modules/source-control.ee/source-control.service.ee.js +2 -3
  385. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  386. package/dist/modules/source-control.ee/types/source-control-context.d.ts +1 -1
  387. package/dist/modules/source-control.ee/types/source-control-context.js +3 -1
  388. package/dist/modules/source-control.ee/types/source-control-context.js.map +1 -1
  389. package/dist/modules/sso-oidc/oidc.controller.ee.js +1 -0
  390. package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
  391. package/dist/modules/sso-oidc/oidc.service.ee.js +1 -1
  392. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  393. package/dist/modules/sso-saml/saml.service.ee.js +1 -1
  394. package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
  395. package/dist/modules/type-availability-policies/type-availability-policy-snapshot.d.ts +1 -1
  396. package/dist/modules/type-availability-policies/type-availability-policy-snapshot.js +2 -2
  397. package/dist/modules/type-availability-policies/type-availability-policy-snapshot.js.map +1 -1
  398. package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js +2 -9
  399. package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js.map +1 -1
  400. package/dist/posthog/index.js +6 -3
  401. package/dist/posthog/index.js.map +1 -1
  402. package/dist/public-api/public-api-rate-limit-settings.service.d.ts +1 -2
  403. package/dist/public-api/public-api-rate-limit-settings.service.js +1 -2
  404. package/dist/public-api/public-api-rate-limit-settings.service.js.map +1 -1
  405. package/dist/public-api/v1/controllers/projects.public.controller.js +6 -4
  406. package/dist/public-api/v1/controllers/projects.public.controller.js.map +1 -1
  407. package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.js +4 -3
  408. package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.js.map +1 -1
  409. package/dist/push/index.d.ts +1 -1
  410. package/dist/push/index.js +4 -5
  411. package/dist/push/index.js.map +1 -1
  412. package/dist/scaling/constants.d.ts +0 -8
  413. package/dist/scaling/constants.js +1 -44
  414. package/dist/scaling/constants.js.map +1 -1
  415. package/dist/scaling/execution-stop.service.d.ts +1 -1
  416. package/dist/scaling/execution-stop.service.js +2 -2
  417. package/dist/scaling/execution-stop.service.js.map +1 -1
  418. package/dist/scaling/pubsub/pubsub.registry.d.ts +1 -1
  419. package/dist/scaling/pubsub/pubsub.registry.js +2 -2
  420. package/dist/scaling/pubsub/pubsub.registry.js.map +1 -1
  421. package/dist/scaling/scaling.service.js +1 -1
  422. package/dist/scaling/scaling.service.js.map +1 -1
  423. package/dist/scaling/worker-status.service.ee.d.ts +1 -1
  424. package/dist/scaling/worker-status.service.ee.js +2 -2
  425. package/dist/scaling/worker-status.service.ee.js.map +1 -1
  426. package/dist/services/dynamic-node-parameters.service.js +3 -2
  427. package/dist/services/dynamic-node-parameters.service.js.map +1 -1
  428. package/dist/services/engine-data-plane-proxy.service.d.ts +5 -3
  429. package/dist/services/engine-data-plane-proxy.service.js +5 -2
  430. package/dist/services/engine-data-plane-proxy.service.js.map +1 -1
  431. package/dist/services/engine-v2-dispatcher.service.js +1 -0
  432. package/dist/services/engine-v2-dispatcher.service.js.map +1 -1
  433. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
  434. package/dist/services/public-api-key.service.d.ts +2 -2
  435. package/dist/services/public-api-key.service.js +10 -9
  436. package/dist/services/public-api-key.service.js.map +1 -1
  437. package/dist/user-management/email/user-management-mailer.js +4 -3
  438. package/dist/user-management/email/user-management-mailer.js.map +1 -1
  439. package/dist/utils/sub-workflow-error.d.ts +5 -0
  440. package/dist/utils/sub-workflow-error.js +40 -0
  441. package/dist/utils/sub-workflow-error.js.map +1 -0
  442. package/dist/utils/to-user-like.d.ts +3 -0
  443. package/dist/utils/to-user-like.js +12 -0
  444. package/dist/utils/to-user-like.js.map +1 -0
  445. package/dist/webhooks/hitl-interaction-webhooks.d.ts +3 -2
  446. package/dist/webhooks/hitl-interaction-webhooks.js +34 -13
  447. package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
  448. package/dist/webhooks/slack-interaction-webhooks.d.ts +1 -2
  449. package/dist/webhooks/slack-interaction-webhooks.js +3 -3
  450. package/dist/webhooks/slack-interaction-webhooks.js.map +1 -1
  451. package/dist/webhooks/telegram-interaction-webhooks.d.ts +1 -2
  452. package/dist/webhooks/telegram-interaction-webhooks.js +2 -2
  453. package/dist/webhooks/telegram-interaction-webhooks.js.map +1 -1
  454. package/dist/webhooks/test-webhooks.d.ts +1 -1
  455. package/dist/webhooks/test-webhooks.js +2 -2
  456. package/dist/webhooks/test-webhooks.js.map +1 -1
  457. package/dist/webhooks/waiting-forms.d.ts +1 -1
  458. package/dist/webhooks/waiting-forms.js +2 -2
  459. package/dist/webhooks/waiting-forms.js.map +1 -1
  460. package/dist/webhooks/waiting-webhooks.d.ts +8 -3
  461. package/dist/webhooks/waiting-webhooks.js +45 -16
  462. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  463. package/dist/webhooks/webhook-helpers.js +2 -4
  464. package/dist/webhooks/webhook-helpers.js.map +1 -1
  465. package/dist/workflow-execute-additional-data.js +10 -17
  466. package/dist/workflow-execute-additional-data.js.map +1 -1
  467. package/dist/workflow-runner.js +5 -2
  468. package/dist/workflow-runner.js.map +1 -1
  469. package/dist/workflows/publication/publication-status-reporter.d.ts +1 -1
  470. package/dist/workflows/publication/publication-status-reporter.js +2 -2
  471. package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
  472. package/dist/workflows/publication/workflow-publication-notifier.d.ts +1 -1
  473. package/dist/workflows/publication/workflow-publication-notifier.js +2 -2
  474. package/dist/workflows/publication/workflow-publication-notifier.js.map +1 -1
  475. package/dist/workflows/workflow-history/workflow-history.service.js +2 -7
  476. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  477. package/dist/workflows/workflows.controller.js +2 -7
  478. package/dist/workflows/workflows.controller.js.map +1 -1
  479. package/package.json +42 -41
  480. package/dist/modules/agents/entities/agent-file.entity.js.map +0 -1
  481. package/dist/modules/agents/repositories/agent-file.repository.js.map +0 -1
  482. package/dist/modules/engine-v2/response-channel/execution-response-frame.js.map +0 -1
  483. package/dist/modules/engine-v2/response-channel/execution-response-receiver.js.map +0 -1
  484. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-channel.d.ts +0 -6
  485. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-channel.js +0 -18
  486. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-channel.js.map +0 -1
  487. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-receiver.d.ts +0 -13
  488. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-receiver.js +0 -45
  489. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-receiver.js.map +0 -1
  490. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-sender.d.ts +0 -13
  491. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-sender.js +0 -27
  492. package/dist/modules/engine-v2/response-channel/in-memory-execution-response-sender.js.map +0 -1
  493. package/dist/modules/engine-v2/response-channel/redis-execution-response-channel.d.ts +0 -4
  494. package/dist/modules/engine-v2/response-channel/redis-execution-response-channel.js +0 -31
  495. package/dist/modules/engine-v2/response-channel/redis-execution-response-channel.js.map +0 -1
  496. package/dist/modules/engine-v2/response-channel/redis-execution-response-receiver.js.map +0 -1
  497. package/dist/modules/engine-v2/response-channel/redis-execution-response-sender.d.ts +0 -20
  498. package/dist/modules/engine-v2/response-channel/redis-execution-response-sender.js.map +0 -1
  499. package/dist/scaling/pubsub/publisher.service.d.ts +0 -29
  500. package/dist/scaling/pubsub/publisher.service.js +0 -97
  501. package/dist/scaling/pubsub/publisher.service.js.map +0 -1
  502. package/dist/scaling/pubsub/pubsub.event-map.d.ts +0 -228
  503. package/dist/scaling/pubsub/pubsub.event-map.js +0 -3
  504. package/dist/scaling/pubsub/pubsub.event-map.js.map +0 -1
  505. package/dist/scaling/pubsub/pubsub.eventbus.d.ts +0 -4
  506. package/dist/scaling/pubsub/pubsub.eventbus.js +0 -18
  507. package/dist/scaling/pubsub/pubsub.eventbus.js.map +0 -1
  508. package/dist/scaling/pubsub/pubsub.types.d.ts +0 -91
  509. package/dist/scaling/pubsub/pubsub.types.js +0 -3
  510. package/dist/scaling/pubsub/pubsub.types.js.map +0 -1
  511. package/dist/scaling/pubsub/subscriber.service.d.ts +0 -42
  512. package/dist/scaling/pubsub/subscriber.service.js +0 -214
  513. package/dist/scaling/pubsub/subscriber.service.js.map +0 -1
  514. package/dist/utils/object-to-error.d.ts +0 -2
  515. package/dist/utils/object-to-error.js +0 -37
  516. package/dist/utils/object-to-error.js.map +0 -1
  517. /package/dist/modules/engine-v2/{response-channel → execution-channel}/execution-response-receiver.js +0 -0
@@ -1,228 +0,0 @@
1
- import type { AgentIntegrationConfig, AgentSseEvent, ChatHubMessageStatus, InstanceAiEvent, PushMessage, PushPayload, WorkerStatus, WorkflowPublicationStatusMessage } from '@n8n/api-types';
2
- import type { IWorkflowBase, RelatedAgentRun, WorkflowActivateMode } from 'n8n-workflow';
3
- export type PubSubCommandMap = {
4
- 'relay-agent-queued-chat': {
5
- queueId: string;
6
- sequence: number;
7
- event?: AgentSseEvent | null;
8
- };
9
- 'reload-license': never;
10
- 'restart-event-bus': never;
11
- 'reload-external-secrets-providers': never;
12
- 'reload-overwrite-credentials': never;
13
- 'reload-oidc-config': never;
14
- 'reload-saml-config': never;
15
- 'reload-sso-provisioning-configuration': never;
16
- 'reload-oauth-signing-keys': never;
17
- 'reload-source-control-config': never;
18
- 'reload-mcp-registry': never;
19
- 'reload-otel-config': never;
20
- 'reload-public-api-rate-limit-settings': never;
21
- 'reload-instance-ai-settings': never;
22
- 'self-healing-failure': {
23
- workflowId: string;
24
- executionId: string;
25
- };
26
- 'reload-agents-settings': never;
27
- 'community-package-install': {
28
- packageName: string;
29
- packageVersion: string;
30
- checksum?: string;
31
- };
32
- 'community-package-update': {
33
- packageName: string;
34
- packageVersion: string;
35
- checksum?: string;
36
- };
37
- 'community-package-uninstall': {
38
- packageName: string;
39
- };
40
- 'get-worker-id': never;
41
- 'get-worker-status': {
42
- requestingUserId: string;
43
- };
44
- 'stop-execution': {
45
- executionId: string;
46
- };
47
- 'add-webhooks-triggers-and-pollers': {
48
- workflowId: string;
49
- activeVersionId: string;
50
- activationMode: WorkflowActivateMode;
51
- };
52
- 'remove-triggers-and-pollers': {
53
- workflowId: string;
54
- };
55
- 'display-workflow-activation': {
56
- workflowId: string;
57
- activeVersionId: string;
58
- };
59
- 'display-workflow-deactivation': {
60
- workflowId: string;
61
- };
62
- 'workflow-publish-wake-up': never;
63
- 'display-workflow-activation-error': {
64
- workflowId: string;
65
- errorMessage: string;
66
- errorDescription?: string;
67
- nodeId?: string;
68
- };
69
- 'display-workflow-publication-status': WorkflowPublicationStatusMessage;
70
- 'relay-execution-lifecycle-event': PushMessage & {
71
- pushRef: string;
72
- asBinary: boolean;
73
- };
74
- 'relay-agent-execution-update': {
75
- data: PushPayload<'agentExecutionUpdated'>;
76
- userIds: string[];
77
- };
78
- 'cancel-agent-chat-execution': {
79
- projectId: string;
80
- agentId: string;
81
- threadId: string;
82
- executionId: string;
83
- userId: string;
84
- surface?: 'preview' | 'n8n-chat' | 'system';
85
- productionN8nChat?: boolean;
86
- };
87
- 'cancel-agent-chat-foreground': PubSubCommandMap['cancel-agent-chat-execution'];
88
- 'stop-agent-session': {
89
- agentId: string;
90
- threadId: string;
91
- executionIds: string[];
92
- queueIds?: string[];
93
- };
94
- 'relay-agent-message-queue-update': {
95
- data: PushPayload<'agentMessageQueueUpdated'>;
96
- userIds: string[];
97
- };
98
- 'relay-agent-background-tasks-update': {
99
- data: PushPayload<'agentBackgroundTasksUpdated'>;
100
- userIds: string[];
101
- };
102
- 'relay-agent-update': {
103
- data: PushPayload<'agentUpdated'>;
104
- userIds: string[];
105
- excludePushRef?: string;
106
- };
107
- 'resume-agent-workflow-tool': {
108
- agentRun: RelatedAgentRun;
109
- status: string;
110
- };
111
- 'cancel-agent-background-job': {
112
- jobId: string;
113
- };
114
- 'wake-agent-background-job': {
115
- threadId: string;
116
- };
117
- 'clear-test-webhooks': {
118
- webhookKey: string;
119
- workflowEntity: IWorkflowBase;
120
- pushRef: string;
121
- };
122
- 'relay-chat-stream-event': {
123
- eventType: 'execution-begin' | 'execution-end' | 'begin' | 'chunk' | 'end' | 'error';
124
- userId: string;
125
- sessionId: string;
126
- messageId: string;
127
- sequenceNumber: number;
128
- payload: {
129
- previousMessageId?: string | null;
130
- retryOfMessageId?: string | null;
131
- executionId?: number | null;
132
- content?: string;
133
- status?: ChatHubMessageStatus;
134
- error?: string;
135
- };
136
- };
137
- 'relay-instance-ai-event': {
138
- threadId: string;
139
- storedEvent: {
140
- id?: number;
141
- event: InstanceAiEvent;
142
- };
143
- };
144
- 'relay-instance-ai-task-control': {
145
- threadId: string;
146
- userId?: string;
147
- taskId?: string;
148
- action: 'correct' | 'cancel-task' | 'cancel-thread' | 'clear-thread';
149
- correction?: string;
150
- };
151
- 'relay-chat-human-message': {
152
- userId: string;
153
- sessionId: string;
154
- messageId: string;
155
- previousMessageId: string | null;
156
- content: string;
157
- attachments: Array<{
158
- id: string;
159
- fileName: string;
160
- mimeType: string;
161
- }>;
162
- };
163
- 'relay-chat-message-edit': {
164
- userId: string;
165
- sessionId: string;
166
- revisionOfMessageId: string;
167
- messageId: string;
168
- content: string;
169
- attachments: Array<{
170
- id: string;
171
- fileName: string;
172
- mimeType: string;
173
- }>;
174
- };
175
- 'cancel-test-run': {
176
- testRunId: string;
177
- };
178
- 'cancel-collection': {
179
- collectionId: string;
180
- };
181
- 'agent-chat-integration-changed': {
182
- agentId: string;
183
- integration: AgentIntegrationConfig;
184
- action: 'connect' | 'disconnect';
185
- };
186
- 'agent-chat-leader-channel-request': {
187
- requestId: string;
188
- replyTo: string;
189
- agentId: string;
190
- } & ({
191
- action: 'connect';
192
- integration: AgentIntegrationConfig;
193
- } | {
194
- action: 'disconnect';
195
- integration: {
196
- type: string;
197
- credentialId: string;
198
- };
199
- });
200
- 'agent-chat-leader-channel-result': {
201
- requestId: string;
202
- ok: boolean;
203
- error?: string;
204
- };
205
- 'agent-chat-subscription-changed': {
206
- agentId: string;
207
- integration: AgentIntegrationConfig;
208
- threadId: string;
209
- action: 'subscribe' | 'unsubscribe';
210
- };
211
- 'agent-config-changed': {
212
- agentId: string;
213
- };
214
- 'agent-tasks-changed': {
215
- agentId: string;
216
- };
217
- 'redaction-floor-changed': never;
218
- 'reload-type-availability-policies': never;
219
- };
220
- export type PubSubWorkerResponseMap = {
221
- 'response-to-get-worker-status': WorkerStatus & {
222
- requestingUserId: string;
223
- };
224
- };
225
- export type PubSubLocalEventMap = {
226
- 'pubsub-reconnected': never;
227
- };
228
- export type PubSubEventMap = PubSubCommandMap & PubSubWorkerResponseMap & PubSubLocalEventMap;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=pubsub.event-map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pubsub.event-map.js","sourceRoot":"","sources":["../../../src/scaling/pubsub/pubsub.event-map.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- import { TypedEmitter } from '@n8n/backend-common';
2
- import type { PubSubEventMap } from './pubsub.event-map';
3
- export declare class PubSubEventBus extends TypedEmitter<PubSubEventMap> {
4
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.PubSubEventBus = void 0;
10
- const backend_common_1 = require("@n8n/backend-common");
11
- const di_1 = require("@n8n/di");
12
- let PubSubEventBus = class PubSubEventBus extends backend_common_1.TypedEmitter {
13
- };
14
- exports.PubSubEventBus = PubSubEventBus;
15
- exports.PubSubEventBus = PubSubEventBus = __decorate([
16
- (0, di_1.Service)()
17
- ], PubSubEventBus);
18
- //# sourceMappingURL=pubsub.eventbus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pubsub.eventbus.js","sourceRoot":"","sources":["../../../src/scaling/pubsub/pubsub.eventbus.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wDAAmD;AACnD,gCAAkC;AAK3B,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,6BAA4B;CAAG,CAAA;;yBAAtD,cAAc;IAD1B,IAAA,YAAO,GAAE;GACG,cAAc,CAAwC"}
@@ -1,91 +0,0 @@
1
- import type { Resolve } from '../../utlity.types';
2
- import type { PubSubCommandMap, PubSubWorkerResponseMap } from './pubsub.event-map';
3
- import type { COMMAND_PUBSUB_CHANNEL, WORKER_RESPONSE_PUBSUB_CHANNEL } from '../constants';
4
- export declare namespace PubSub {
5
- export type Channel = typeof COMMAND_PUBSUB_CHANNEL | typeof WORKER_RESPONSE_PUBSUB_CHANNEL;
6
- export type HandlerFn = (msg: string) => void;
7
- type _ToCommand<CommandKey extends keyof PubSubCommandMap> = {
8
- command: CommandKey;
9
- senderId?: string;
10
- targets?: string[];
11
- selfSend?: boolean;
12
- debounce?: boolean;
13
- } & (PubSubCommandMap[CommandKey] extends never ? {
14
- payload?: never;
15
- } : {
16
- payload: PubSubCommandMap[CommandKey];
17
- });
18
- type ToCommand<CommandKey extends keyof PubSubCommandMap> = Resolve<_ToCommand<CommandKey>>;
19
- namespace Commands {
20
- type ReloadLicense = ToCommand<'reload-license'>;
21
- type ReloadOIDCConfiguration = ToCommand<'reload-oidc-config'>;
22
- type ReloadSamlConfiguration = ToCommand<'reload-saml-config'>;
23
- type ReloadOAuthSigningKeys = ToCommand<'reload-oauth-signing-keys'>;
24
- type ReloadCredentialsOverwrites = ToCommand<'reload-overwrite-credentials'>;
25
- type RestartEventBus = ToCommand<'restart-event-bus'>;
26
- type ReloadExternalSecretsProviders = ToCommand<'reload-external-secrets-providers'>;
27
- type CommunityPackageInstall = ToCommand<'community-package-install'>;
28
- type CommunityPackageUpdate = ToCommand<'community-package-update'>;
29
- type CommunityPackageUninstall = ToCommand<'community-package-uninstall'>;
30
- type GetWorkerId = ToCommand<'get-worker-id'>;
31
- type GetWorkerStatus = ToCommand<'get-worker-status'>;
32
- type StopExecution = ToCommand<'stop-execution'>;
33
- type AddWebhooksTriggersAndPollers = ToCommand<'add-webhooks-triggers-and-pollers'>;
34
- type RemoveTriggersAndPollers = ToCommand<'remove-triggers-and-pollers'>;
35
- type DisplayWorkflowActivation = ToCommand<'display-workflow-activation'>;
36
- type DisplayWorkflowDeactivation = ToCommand<'display-workflow-deactivation'>;
37
- type DisplayWorkflowActivationError = ToCommand<'display-workflow-activation-error'>;
38
- type DisplayWorkflowPublicationStatus = ToCommand<'display-workflow-publication-status'>;
39
- type WorkflowPublishWakeUp = ToCommand<'workflow-publish-wake-up'>;
40
- type RelayExecutionLifecycleEvent = ToCommand<'relay-execution-lifecycle-event'>;
41
- type RelayAgentExecutionUpdate = ToCommand<'relay-agent-execution-update'>;
42
- type RelayAgentQueuedChat = ToCommand<'relay-agent-queued-chat'>;
43
- type CancelAgentChatExecution = ToCommand<'cancel-agent-chat-execution'>;
44
- type CancelAgentChatForeground = ToCommand<'cancel-agent-chat-foreground'>;
45
- type StopAgentSession = ToCommand<'stop-agent-session'>;
46
- type RelayAgentMessageQueueUpdate = ToCommand<'relay-agent-message-queue-update'>;
47
- type RelayAgentBackgroundJobsUpdate = ToCommand<'relay-agent-background-tasks-update'>;
48
- type RelayAgentUpdate = ToCommand<'relay-agent-update'>;
49
- type ResumeAgentWorkflowTool = ToCommand<'resume-agent-workflow-tool'>;
50
- type CancelAgentBackgroundJob = ToCommand<'cancel-agent-background-job'>;
51
- type WakeAgentBackgroundJob = ToCommand<'wake-agent-background-job'>;
52
- type RelayChatStreamEvent = ToCommand<'relay-chat-stream-event'>;
53
- type RelayInstanceAiEvent = ToCommand<'relay-instance-ai-event'>;
54
- type RelayInstanceAiTaskControl = ToCommand<'relay-instance-ai-task-control'>;
55
- type RelayChatHumanMessage = ToCommand<'relay-chat-human-message'>;
56
- type RelayChatMessageEdit = ToCommand<'relay-chat-message-edit'>;
57
- type ClearTestWebhooks = ToCommand<'clear-test-webhooks'>;
58
- type ReloadSsoProvisioningConfiguration = ToCommand<'reload-sso-provisioning-configuration'>;
59
- type ReloadSourceControlConfiguration = ToCommand<'reload-source-control-config'>;
60
- type ReloadMcpRegistry = ToCommand<'reload-mcp-registry'>;
61
- type ReloadOtelConfig = ToCommand<'reload-otel-config'>;
62
- type ReloadPublicApiRateLimitSettings = ToCommand<'reload-public-api-rate-limit-settings'>;
63
- type ReloadInstanceAiSettings = ToCommand<'reload-instance-ai-settings'>;
64
- type SelfHealingFailure = ToCommand<'self-healing-failure'>;
65
- type ReloadAgentsSettings = ToCommand<'reload-agents-settings'>;
66
- type CancelTestRun = ToCommand<'cancel-test-run'>;
67
- type CancelCollection = ToCommand<'cancel-collection'>;
68
- type AgentChatIntegrationChanged = ToCommand<'agent-chat-integration-changed'>;
69
- type AgentChatSubscriptionChanged = ToCommand<'agent-chat-subscription-changed'>;
70
- type AgentChatLeaderChannelRequest = ToCommand<'agent-chat-leader-channel-request'>;
71
- type AgentChatLeaderChannelResult = ToCommand<'agent-chat-leader-channel-result'>;
72
- type AgentConfigChanged = ToCommand<'agent-config-changed'>;
73
- type AgentTasksChanged = ToCommand<'agent-tasks-changed'>;
74
- type RedactionFloorChanged = ToCommand<'redaction-floor-changed'>;
75
- type ReloadTypeAvailabilityPolicies = ToCommand<'reload-type-availability-policies'>;
76
- }
77
- export type Command = Commands.ReloadLicense | Commands.RestartEventBus | Commands.ReloadExternalSecretsProviders | Commands.CommunityPackageInstall | Commands.CommunityPackageUpdate | Commands.CommunityPackageUninstall | Commands.GetWorkerId | Commands.GetWorkerStatus | Commands.StopExecution | Commands.AddWebhooksTriggersAndPollers | Commands.RemoveTriggersAndPollers | Commands.DisplayWorkflowActivation | Commands.DisplayWorkflowDeactivation | Commands.DisplayWorkflowActivationError | Commands.DisplayWorkflowPublicationStatus | Commands.WorkflowPublishWakeUp | Commands.RelayExecutionLifecycleEvent | Commands.RelayAgentExecutionUpdate | Commands.RelayAgentQueuedChat | Commands.CancelAgentChatExecution | Commands.CancelAgentChatForeground | Commands.StopAgentSession | Commands.RelayAgentMessageQueueUpdate | Commands.RelayAgentBackgroundJobsUpdate | Commands.RelayAgentUpdate | Commands.ResumeAgentWorkflowTool | Commands.CancelAgentBackgroundJob | Commands.WakeAgentBackgroundJob | Commands.RelayChatStreamEvent | Commands.RelayInstanceAiEvent | Commands.RelayInstanceAiTaskControl | Commands.RelayChatHumanMessage | Commands.RelayChatMessageEdit | Commands.ClearTestWebhooks | Commands.ReloadOIDCConfiguration | Commands.ReloadSamlConfiguration | Commands.ReloadOAuthSigningKeys | Commands.ReloadCredentialsOverwrites | Commands.ReloadSsoProvisioningConfiguration | Commands.ReloadSourceControlConfiguration | Commands.ReloadMcpRegistry | Commands.ReloadOtelConfig | Commands.ReloadPublicApiRateLimitSettings | Commands.ReloadInstanceAiSettings | Commands.SelfHealingFailure | Commands.ReloadAgentsSettings | Commands.CancelTestRun | Commands.CancelCollection | Commands.AgentChatIntegrationChanged | Commands.AgentChatSubscriptionChanged | Commands.AgentChatLeaderChannelRequest | Commands.AgentChatLeaderChannelResult | Commands.AgentConfigChanged | Commands.AgentTasksChanged | Commands.RedactionFloorChanged | Commands.ReloadTypeAvailabilityPolicies;
78
- type _ToWorkerResponse<WorkerResponseKey extends keyof PubSubWorkerResponseMap> = {
79
- senderId: string;
80
- targets?: string[];
81
- response: WorkerResponseKey;
82
- debounce?: boolean;
83
- } & (PubSubWorkerResponseMap[WorkerResponseKey] extends never ? {
84
- payload?: never;
85
- } : {
86
- payload: PubSubWorkerResponseMap[WorkerResponseKey];
87
- });
88
- type ToWorkerResponse<WorkerResponseKey extends keyof PubSubWorkerResponseMap> = Resolve<_ToWorkerResponse<WorkerResponseKey>>;
89
- export type WorkerResponse = ToWorkerResponse<'response-to-get-worker-status'>;
90
- export {};
91
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=pubsub.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pubsub.types.js","sourceRoot":"","sources":["../../../src/scaling/pubsub/pubsub.types.ts"],"names":[],"mappings":""}
@@ -1,42 +0,0 @@
1
- import { Logger } from '@n8n/backend-common';
2
- import { ExecutionsConfig, GlobalConfig } from '@n8n/config';
3
- import type { Redis as SingleNodeClient, Cluster as MultiNodeClient } from 'ioredis';
4
- import { InstanceSettings } from 'n8n-core';
5
- import { RedisClientService } from '@n8n/backend-services';
6
- import { PubSubEventBus } from './pubsub.eventbus';
7
- export interface McpRelayMessage {
8
- sessionId: string;
9
- messageId: string;
10
- response: unknown;
11
- }
12
- export declare class Subscriber {
13
- private readonly logger;
14
- private readonly instanceSettings;
15
- private readonly pubsubEventBus;
16
- private readonly redisClientService;
17
- private readonly executionsConfig;
18
- private readonly globalConfig;
19
- private readonly client;
20
- private readonly commandChannel;
21
- private readonly workerResponseChannel;
22
- private readonly mcpRelayChannel;
23
- private mcpRelayHandler?;
24
- private readonly debouncedHandlers;
25
- private readonly channels;
26
- private lostConnection;
27
- private livenessTimer?;
28
- constructor(logger: Logger, instanceSettings: InstanceSettings, pubsubEventBus: PubSubEventBus, redisClientService: RedisClientService, executionsConfig: ExecutionsConfig, globalConfig: GlobalConfig);
29
- setMcpRelayHandler(handler: (msg: McpRelayMessage) => void): void;
30
- private handleMcpRelayMessage;
31
- getClient(): MultiNodeClient | SingleNodeClient;
32
- getCommandChannel(): string;
33
- getWorkerResponseChannel(): string;
34
- getMcpRelayChannel(): string;
35
- shutdown(): void;
36
- subscribe(channel: string): Promise<void>;
37
- private resubscribe;
38
- private checkLiveness;
39
- private eventNameFrom;
40
- private debounceKeyFrom;
41
- private parseMessage;
42
- }
@@ -1,214 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.Subscriber = void 0;
16
- const backend_common_1 = require("@n8n/backend-common");
17
- const config_1 = require("@n8n/config");
18
- const di_1 = require("@n8n/di");
19
- const debounce_1 = __importDefault(require("lodash/debounce"));
20
- const n8n_core_1 = require("n8n-core");
21
- const n8n_workflow_1 = require("n8n-workflow");
22
- const backend_services_1 = require("@n8n/backend-services");
23
- const pubsub_eventbus_1 = require("./pubsub.eventbus");
24
- const constants_1 = require("../constants");
25
- let Subscriber = class Subscriber {
26
- constructor(logger, instanceSettings, pubsubEventBus, redisClientService, executionsConfig, globalConfig) {
27
- this.logger = logger;
28
- this.instanceSettings = instanceSettings;
29
- this.pubsubEventBus = pubsubEventBus;
30
- this.redisClientService = redisClientService;
31
- this.executionsConfig = executionsConfig;
32
- this.globalConfig = globalConfig;
33
- this.debouncedHandlers = new Map();
34
- this.channels = new Set();
35
- this.lostConnection = false;
36
- if (this.executionsConfig.mode !== 'queue')
37
- return;
38
- this.logger = this.logger.scoped(['scaling', 'pubsub']);
39
- const prefix = this.globalConfig.redis.prefix;
40
- this.commandChannel = `${prefix}:${constants_1.COMMAND_PUBSUB_CHANNEL}`;
41
- this.workerResponseChannel = `${prefix}:${constants_1.WORKER_RESPONSE_PUBSUB_CHANNEL}`;
42
- this.mcpRelayChannel = `${prefix}:${constants_1.MCP_RELAY_PUBSUB_CHANNEL}`;
43
- this.client = this.redisClientService.createClient({ type: 'subscriber(n8n)' });
44
- this.client.on('close', () => {
45
- this.lostConnection = true;
46
- });
47
- this.client.on('ready', () => {
48
- if (!this.lostConnection)
49
- return;
50
- this.lostConnection = false;
51
- void this.resubscribe();
52
- });
53
- this.livenessTimer = setInterval(async () => {
54
- await this.checkLiveness();
55
- }, constants_1.SUBSCRIBER_LIVENESS_INTERVAL_MS).unref();
56
- const handlerFn = (msg) => {
57
- this.pubsubEventBus.emit(this.eventNameFrom(msg), msg.payload);
58
- };
59
- this.client.on('message', (channel, str) => {
60
- if (channel === this.mcpRelayChannel) {
61
- this.handleMcpRelayMessage(str);
62
- return;
63
- }
64
- const msg = this.parseMessage(str, channel);
65
- if (!msg)
66
- return;
67
- if (!msg.debounce)
68
- return handlerFn(msg);
69
- const debounceKey = this.debounceKeyFrom(msg);
70
- let handler = this.debouncedHandlers.get(debounceKey);
71
- if (!handler) {
72
- const debouncedHandler = (0, debounce_1.default)((message) => {
73
- try {
74
- handlerFn(message);
75
- }
76
- finally {
77
- if (this.debouncedHandlers.get(debounceKey) === debouncedHandler) {
78
- this.debouncedHandlers.delete(debounceKey);
79
- }
80
- }
81
- }, 300);
82
- handler = debouncedHandler;
83
- this.debouncedHandlers.set(debounceKey, handler);
84
- }
85
- handler(msg);
86
- });
87
- }
88
- setMcpRelayHandler(handler) {
89
- this.mcpRelayHandler = handler;
90
- }
91
- handleMcpRelayMessage(str) {
92
- const msg = (0, n8n_workflow_1.jsonParse)(str, { fallbackValue: null });
93
- if (!msg?.sessionId || !msg.messageId) {
94
- this.logger.error('Received malformed MCP relay message', { msg: str });
95
- return;
96
- }
97
- this.logger.debug('Received MCP relay message', {
98
- sessionId: msg.sessionId,
99
- messageId: msg.messageId,
100
- });
101
- if (this.mcpRelayHandler) {
102
- this.mcpRelayHandler(msg);
103
- }
104
- }
105
- getClient() {
106
- return this.client;
107
- }
108
- getCommandChannel() {
109
- return this.commandChannel;
110
- }
111
- getWorkerResponseChannel() {
112
- return this.workerResponseChannel;
113
- }
114
- getMcpRelayChannel() {
115
- return this.mcpRelayChannel;
116
- }
117
- shutdown() {
118
- clearInterval(this.livenessTimer);
119
- for (const handler of this.debouncedHandlers.values())
120
- handler.cancel();
121
- this.client.disconnect();
122
- }
123
- async subscribe(channel) {
124
- this.channels.add(channel);
125
- await this.client.subscribe(channel, (error) => {
126
- if (error) {
127
- this.logger.error(`Failed to subscribe to channel ${channel}`, { error });
128
- return;
129
- }
130
- this.logger.debug(`Subscribed to channel ${channel}`);
131
- });
132
- }
133
- async resubscribe() {
134
- if (this.channels.size === 0)
135
- return;
136
- try {
137
- for (const channel of this.channels)
138
- await this.subscribe(channel);
139
- this.logger.info('Resubscribed to pubsub channels after Redis reconnect', {
140
- channels: [...this.channels],
141
- });
142
- }
143
- catch (error) {
144
- this.lostConnection = true;
145
- this.logger.error('Failed to resubscribe to pubsub channels after Redis reconnect', {
146
- error,
147
- });
148
- return;
149
- }
150
- this.pubsubEventBus.emit('pubsub-reconnected');
151
- }
152
- async checkLiveness() {
153
- if (this.channels.size === 0)
154
- return;
155
- const timeout = new Promise((_, reject) => {
156
- setTimeout(() => reject(new Error('timeout')), constants_1.SUBSCRIBER_LIVENESS_TIMEOUT_MS).unref();
157
- });
158
- try {
159
- await Promise.race([this.client.subscribe(...this.channels), timeout]);
160
- }
161
- catch (error) {
162
- this.logger.warn('Pubsub subscriber connection is unresponsive, reconnecting', { error });
163
- this.client.disconnect(true);
164
- }
165
- }
166
- eventNameFrom(msg) {
167
- return 'command' in msg ? msg.command : msg.response;
168
- }
169
- debounceKeyFrom(msg) {
170
- const eventName = this.eventNameFrom(msg);
171
- if ('command' in msg &&
172
- (msg.command === 'community-package-install' ||
173
- msg.command === 'community-package-update' ||
174
- msg.command === 'community-package-uninstall')) {
175
- return `${eventName}:${msg.payload.packageName}`;
176
- }
177
- return eventName;
178
- }
179
- parseMessage(str, channel) {
180
- const msg = (0, n8n_workflow_1.jsonParse)(str, {
181
- fallbackValue: null,
182
- });
183
- if (!msg) {
184
- this.logger.error('Received malformed pubsub message', {
185
- msg: str,
186
- channel,
187
- });
188
- return null;
189
- }
190
- const { hostId } = this.instanceSettings;
191
- if ('command' in msg &&
192
- !msg.selfSend &&
193
- (msg.senderId === hostId || (msg.targets && !msg.targets.includes(hostId)))) {
194
- return null;
195
- }
196
- let msgName = this.eventNameFrom(msg);
197
- const metadata = { msg: msgName, channel };
198
- if ('command' in msg && msg.command === 'relay-execution-lifecycle-event') {
199
- const { data, type } = msg.payload;
200
- msgName += ` (${type})`;
201
- metadata.type = type;
202
- if ('executionId' in data)
203
- metadata.executionId = data.executionId;
204
- }
205
- this.logger.debug(`Received pubsub msg: ${msgName}`, metadata);
206
- return msg;
207
- }
208
- };
209
- exports.Subscriber = Subscriber;
210
- exports.Subscriber = Subscriber = __decorate([
211
- (0, di_1.Service)(),
212
- __metadata("design:paramtypes", [backend_common_1.Logger, n8n_core_1.InstanceSettings, pubsub_eventbus_1.PubSubEventBus, backend_services_1.RedisClientService, config_1.ExecutionsConfig, config_1.GlobalConfig])
213
- ], Subscriber);
214
- //# sourceMappingURL=subscriber.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscriber.service.js","sourceRoot":"","sources":["../../../src/scaling/pubsub/subscriber.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAA6C;AAC7C,wCAA6D;AAC7D,gCAAkC;AAElC,+DAAuC;AACvC,uCAA4C;AAC5C,+CAAyC;AAGzC,4DAA2D;AAE3D,uDAAmD;AAEnD,4CAMsB;AAgBf,IAAM,UAAU,GAAhB,MAAM,UAAU;IAoBtB,YACkB,MAAc,EACd,gBAAkC,EAClC,cAA8B,EAC9B,kBAAsC,EACtC,gBAAkC,EAClC,YAA0B;QAL1B,WAAM,GAAN,MAAM,CAAQ;QACd,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,iBAAY,GAAZ,YAAY,CAAc;QAd3B,sBAAiB,GAAG,IAAI,GAAG,EAAuC,CAAC;QAEnE,aAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;QAEtC,mBAAc,GAAG,KAAK,CAAC;QAa9B,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,KAAK,OAAO;YAAE,OAAO;QAEnD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;QAGxD,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,C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