n8n 2.44.5 → 2.45.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 (1478) hide show
  1. package/dist/activation-errors.service.d.ts +1 -1
  2. package/dist/active-workflow-manager.d.ts +1 -1
  3. package/dist/agent-library-bundle.js +5 -0
  4. package/dist/auth/auth.service.d.ts +4 -3
  5. package/dist/auth/auth.service.js +8 -4
  6. package/dist/auth/auth.service.js.map +1 -1
  7. package/dist/build.tsbuildinfo +1 -1
  8. package/dist/commands/execute-batch.js +1 -1
  9. package/dist/commands/execute-batch.js.map +1 -1
  10. package/dist/commands/execute.js +1 -1
  11. package/dist/commands/execute.js.map +1 -1
  12. package/dist/commands/start.js +1 -4
  13. package/dist/commands/start.js.map +1 -1
  14. package/dist/commands/webhook.js +2 -2
  15. package/dist/commands/webhook.js.map +1 -1
  16. package/dist/commands/worker.js +2 -2
  17. package/dist/commands/worker.js.map +1 -1
  18. package/dist/controllers/debug.controller.d.ts +1 -1
  19. package/dist/controllers/e2e.controller.js +1 -0
  20. package/dist/controllers/e2e.controller.js.map +1 -1
  21. package/dist/controllers/oauth/oauth2-credential.controller.d.ts +1 -1
  22. package/dist/controllers/oauth/oauth2-credential.controller.js +15 -3
  23. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  24. package/dist/controllers/users.controller.d.ts +1 -2
  25. package/dist/controllers/users.controller.js +1 -2
  26. package/dist/controllers/users.controller.js.map +1 -1
  27. package/dist/credentials/credential-data-merge.d.ts +7 -0
  28. package/dist/credentials/credential-data-merge.js +55 -0
  29. package/dist/credentials/credential-data-merge.js.map +1 -0
  30. package/dist/credentials/credential-dependency.service.d.ts +1 -1
  31. package/dist/credentials/credential-dependency.service.js +4 -4
  32. package/dist/credentials/credential-dependency.service.js.map +1 -1
  33. package/dist/credentials/credentials.controller.js +6 -2
  34. package/dist/credentials/credentials.controller.js.map +1 -1
  35. package/dist/credentials/credentials.service.d.ts +5 -1
  36. package/dist/credentials/credentials.service.js +11 -3
  37. package/dist/credentials/credentials.service.js.map +1 -1
  38. package/dist/credentials/pending-authorization-cleanup.task.d.ts +2 -3
  39. package/dist/credentials/pending-authorization-cleanup.task.js +6 -6
  40. package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
  41. package/dist/deprecation/deprecation.service.js +24 -0
  42. package/dist/deprecation/deprecation.service.js.map +1 -1
  43. package/dist/evaluation.ee/evaluation-dataset.service.d.ts +2 -5
  44. package/dist/evaluation.ee/evaluation-dataset.service.js +3 -11
  45. package/dist/evaluation.ee/evaluation-dataset.service.js.map +1 -1
  46. package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +1 -1
  47. package/dist/eventbus/event-message-classes/index.d.ts +2 -2
  48. package/dist/eventbus/event-message-classes/index.js +3 -0
  49. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  50. package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.d.ts +2 -3
  51. package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js +1 -5
  52. package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js.map +1 -1
  53. package/dist/events/maps/relay.event-map.d.ts +18 -2
  54. package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
  55. package/dist/events/relays/log-streaming.event-relay.js +39 -0
  56. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  57. package/dist/events/relays/telemetry.event-relay.js +15 -3
  58. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  59. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +1 -2
  60. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  61. package/dist/executions/execution.service.d.ts +1 -2
  62. package/dist/executions/execution.service.js +1 -2
  63. package/dist/executions/execution.service.js.map +1 -1
  64. package/dist/idempotency/idempotency-request.d.ts +29 -0
  65. package/dist/idempotency/idempotency-request.js +125 -0
  66. package/dist/idempotency/idempotency-request.js.map +1 -0
  67. package/dist/idempotency/idempotency.middleware.d.ts +7 -0
  68. package/dist/idempotency/idempotency.middleware.js +80 -0
  69. package/dist/idempotency/idempotency.middleware.js.map +1 -0
  70. package/dist/idempotency/idempotency.types.d.ts +21 -0
  71. package/dist/{modules/quick-connect/handlers/handler.interface.js → idempotency/idempotency.types.js} +1 -1
  72. package/dist/idempotency/idempotency.types.js.map +1 -0
  73. package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js +3 -0
  74. package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js.map +1 -1
  75. package/dist/jwks/jwks.controller.d.ts +1 -1
  76. package/dist/jwks/jwks.controller.js +4 -4
  77. package/dist/jwks/jwks.controller.js.map +1 -1
  78. package/dist/license/license-renewal.task.d.ts +2 -6
  79. package/dist/license/license-renewal.task.js +10 -8
  80. package/dist/license/license-renewal.task.js.map +1 -1
  81. package/dist/load-nodes-and-credentials.d.ts +1 -1
  82. package/dist/load-nodes-and-credentials.js +18 -9
  83. package/dist/load-nodes-and-credentials.js.map +1 -1
  84. package/dist/modules/agents/adapters/agents-credential-provider.js +1 -0
  85. package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
  86. package/dist/modules/agents/agent-channel-media-retention.task.d.ts +15 -0
  87. package/dist/modules/agents/agent-channel-media-retention.task.js +64 -0
  88. package/dist/modules/agents/agent-channel-media-retention.task.js.map +1 -0
  89. package/dist/modules/agents/agent-chat-attachment.service.d.ts +4 -0
  90. package/dist/modules/agents/agent-chat-attachment.service.js +15 -0
  91. package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
  92. package/dist/modules/agents/agent-chat-execution.service.d.ts +2 -1
  93. package/dist/modules/agents/agent-chat-execution.service.js +19 -10
  94. package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
  95. package/dist/modules/agents/agent-chat-relay.service.d.ts +31 -0
  96. package/dist/modules/agents/agent-chat-relay.service.js +164 -0
  97. package/dist/modules/agents/agent-chat-relay.service.js.map +1 -0
  98. package/dist/modules/agents/agent-chat.controller.d.ts +5 -9
  99. package/dist/modules/agents/agent-chat.controller.js +18 -150
  100. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  101. package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +2 -5
  102. package/dist/modules/agents/agent-checkpoint-pruning.task.js +10 -8
  103. package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
  104. package/dist/modules/agents/agent-config-preparation.service.d.ts +10 -13
  105. package/dist/modules/agents/agent-config.service.d.ts +1 -3
  106. package/dist/modules/agents/agent-config.service.js +8 -7
  107. package/dist/modules/agents/agent-config.service.js.map +1 -1
  108. package/dist/modules/agents/agent-definition.service.d.ts +1 -1
  109. package/dist/modules/agents/agent-definition.service.js +11 -6
  110. package/dist/modules/agents/agent-definition.service.js.map +1 -1
  111. package/dist/modules/agents/agent-dependency-index.listener.js +5 -0
  112. package/dist/modules/agents/agent-dependency-index.listener.js.map +1 -1
  113. package/dist/modules/agents/agent-dependency-index.service.d.ts +1 -0
  114. package/dist/modules/agents/agent-dependency-index.service.js +7 -0
  115. package/dist/modules/agents/agent-dependency-index.service.js.map +1 -1
  116. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +4 -4
  117. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  118. package/dist/modules/agents/agent-execution.service.js +4 -0
  119. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  120. package/dist/modules/agents/agent-integration-management.service.d.ts +5 -5
  121. package/dist/modules/agents/agent-integration-management.service.js +1 -1
  122. package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
  123. package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -3
  124. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  125. package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +2 -3
  126. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +4 -6
  127. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -1
  128. package/dist/modules/agents/agent-message-queue-consumer.service.js +1 -1
  129. package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
  130. package/dist/modules/agents/agent-message-queue.service.js +14 -6
  131. package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
  132. package/dist/modules/agents/agent-modification-telemetry.service.d.ts +16 -14
  133. package/dist/modules/agents/agent-modification-telemetry.service.js +10 -2
  134. package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
  135. package/dist/modules/agents/agent-publish.controller.d.ts +8 -0
  136. package/dist/modules/agents/agent-publish.service.d.ts +6 -7
  137. package/dist/modules/agents/agent-publish.service.js +17 -28
  138. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  139. package/dist/modules/agents/agent-runnable-state.service.d.ts +3 -0
  140. package/dist/modules/agents/agent-runnable-state.service.js +8 -2
  141. package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
  142. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +5 -2
  143. package/dist/modules/agents/agent-runtime-reconstruction.service.js +35 -8
  144. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  145. package/dist/modules/agents/agent-skill-refs.service.d.ts +38 -6
  146. package/dist/modules/agents/agent-skill-refs.service.js +245 -18
  147. package/dist/modules/agents/agent-skill-refs.service.js.map +1 -1
  148. package/dist/modules/agents/agent-skills.service.d.ts +12 -13
  149. package/dist/modules/agents/agent-skills.service.js +211 -123
  150. package/dist/modules/agents/agent-skills.service.js.map +1 -1
  151. package/dist/modules/agents/agent-task.service.js +6 -5
  152. package/dist/modules/agents/agent-task.service.js.map +1 -1
  153. package/dist/modules/agents/agent-teams-integrations.controller.d.ts +47 -3
  154. package/dist/modules/agents/agent-teams-integrations.controller.js +225 -3
  155. package/dist/modules/agents/agent-teams-integrations.controller.js.map +1 -1
  156. package/dist/modules/agents/agent-validation.service.d.ts +1 -0
  157. package/dist/modules/agents/agent-validation.service.js +17 -2
  158. package/dist/modules/agents/agent-validation.service.js.map +1 -1
  159. package/dist/modules/agents/agent-whatsapp-integrations.controller.d.ts +22 -0
  160. package/dist/modules/agents/agent-whatsapp-integrations.controller.js +74 -0
  161. package/dist/modules/agents/agent-whatsapp-integrations.controller.js.map +1 -0
  162. package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -0
  163. package/dist/modules/agents/agent-workflow-execution.service.js +56 -23
  164. package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
  165. package/dist/modules/agents/agents-config.controller.d.ts +10 -13
  166. package/dist/modules/agents/agents-skills.controller.d.ts +2 -2
  167. package/dist/modules/agents/agents-skills.controller.js +6 -5
  168. package/dist/modules/agents/agents-skills.controller.js.map +1 -1
  169. package/dist/modules/agents/agents-tools.service.js +12 -8
  170. package/dist/modules/agents/agents-tools.service.js.map +1 -1
  171. package/dist/modules/agents/agents.controller.d.ts +4 -0
  172. package/dist/modules/agents/agents.module.d.ts +3 -2
  173. package/dist/modules/agents/agents.module.js +25 -2
  174. package/dist/modules/agents/agents.module.js.map +1 -1
  175. package/dist/modules/agents/agents.service.d.ts +7 -6
  176. package/dist/modules/agents/agents.service.js +10 -8
  177. package/dist/modules/agents/agents.service.js.map +1 -1
  178. package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
  179. package/dist/modules/agents/budget-guardrail.d.ts +2 -4
  180. package/dist/modules/agents/budget-guardrail.js +29 -10
  181. package/dist/modules/agents/budget-guardrail.js.map +1 -1
  182. package/dist/modules/agents/builder/agent-builder-session-context.d.ts +1 -0
  183. package/dist/modules/agents/builder/agent-builder-session-context.js +16 -0
  184. package/dist/modules/agents/builder/agent-builder-session-context.js.map +1 -0
  185. package/dist/modules/agents/builder/agents-builder-model-recommendations.js +4 -4
  186. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -0
  187. package/dist/modules/agents/builder/agents-builder-tools.service.js +166 -33
  188. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  189. package/dist/modules/agents/builder/builder-model-live-lookup.service.js +1 -1
  190. package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
  191. package/dist/modules/agents/builder/builder-tool-names.d.ts +17 -14
  192. package/dist/modules/agents/builder/builder-tool-names.js +18 -14
  193. package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
  194. package/dist/modules/agents/builder/call-agent-failure.js +2 -2
  195. package/dist/modules/agents/builder/call-agent-failure.js.map +1 -1
  196. package/dist/modules/agents/builder/get-resource-locator-options.tool.js +7 -5
  197. package/dist/modules/agents/builder/get-resource-locator-options.tool.js.map +1 -1
  198. package/dist/modules/agents/builder/interactive/ask-credential.tool.js +5 -3
  199. package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
  200. package/dist/modules/agents/builder/interactive/ask-questions.tool.js +2 -1
  201. package/dist/modules/agents/builder/interactive/ask-questions.tool.js.map +1 -1
  202. package/dist/modules/agents/builder/interactive/configure-channel.tool.js +1 -0
  203. package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
  204. package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +21 -0
  205. package/dist/modules/agents/builder/interactive/finish-setup.tool.js +81 -12
  206. package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
  207. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +6 -5
  208. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  209. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +27 -18
  210. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  211. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +2 -2
  212. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
  213. package/dist/modules/agents/builder/prompts/initial-build.prompt.d.ts +1 -2
  214. package/dist/modules/agents/builder/prompts/initial-build.prompt.js +2 -70
  215. package/dist/modules/agents/builder/prompts/initial-build.prompt.js.map +1 -1
  216. package/dist/modules/agents/builder/skills/config.skill.d.ts +2 -0
  217. package/dist/modules/agents/builder/skills/config.skill.js +14 -0
  218. package/dist/modules/agents/builder/skills/config.skill.js.map +1 -0
  219. package/dist/modules/agents/builder/skills/custom-tools.skill.js +14 -10
  220. package/dist/modules/agents/builder/skills/custom-tools.skill.js.map +1 -1
  221. package/dist/modules/agents/builder/skills/external-services.skill.js +81 -63
  222. package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
  223. package/dist/modules/agents/builder/skills/index.js +11 -1
  224. package/dist/modules/agents/builder/skills/index.js.map +1 -1
  225. package/dist/modules/agents/builder/skills/memory.skill.js +14 -14
  226. package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
  227. package/dist/modules/agents/builder/skills/node-tools.skill.js +25 -22
  228. package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
  229. package/dist/modules/agents/builder/skills/resource-locators.skill.js +32 -30
  230. package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
  231. package/dist/modules/agents/builder/skills/sub-agents.skill.js +14 -5
  232. package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -1
  233. package/dist/modules/agents/builder/skills/target-skills.skill.js +46 -41
  234. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
  235. package/dist/modules/agents/builder/skills/target-tasks.skill.js +33 -33
  236. package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
  237. package/dist/modules/agents/builder/verify-mcp-server.tool.js +13 -4
  238. package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
  239. package/dist/modules/agents/entities/agent-skill-dependency.entity.d.ts +6 -0
  240. package/dist/modules/agents/entities/agent-skill-dependency.entity.js +34 -0
  241. package/dist/modules/agents/entities/agent-skill-dependency.entity.js.map +1 -0
  242. package/dist/modules/agents/entities/agent-version-skill-dependency.entity.d.ts +6 -0
  243. package/dist/modules/agents/entities/agent-version-skill-dependency.entity.js +35 -0
  244. package/dist/modules/agents/entities/agent-version-skill-dependency.entity.js.map +1 -0
  245. package/dist/modules/agents/entities/agent.entity.d.ts +9 -2
  246. package/dist/modules/agents/entities/agent.entity.js +14 -4
  247. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  248. package/dist/modules/agents/entities/skill-file.entity.d.ts +6 -0
  249. package/dist/modules/agents/entities/skill-file.entity.js +33 -0
  250. package/dist/modules/agents/entities/skill-file.entity.js.map +1 -0
  251. package/dist/modules/agents/entities/skill-version.entity.d.ts +13 -0
  252. package/dist/modules/agents/entities/skill-version.entity.js +59 -0
  253. package/dist/modules/agents/entities/skill-version.entity.js.map +1 -0
  254. package/dist/modules/agents/entities/skill.entity.d.ts +9 -0
  255. package/dist/modules/agents/entities/skill.entity.js +43 -0
  256. package/dist/modules/agents/entities/skill.entity.js.map +1 -0
  257. package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +3 -1
  258. package/dist/modules/agents/instance-ai-agent-context.adapter.js +12 -5
  259. package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +1 -1
  260. package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +7 -5
  261. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +55 -92
  262. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
  263. package/dist/modules/agents/integrations/agent-channel-reconciler.service.js.map +1 -1
  264. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
  265. package/dist/modules/agents/integrations/agent-chat-bridge.js +29 -4
  266. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  267. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +16 -2
  268. package/dist/modules/agents/integrations/agent-chat-integration.js +9 -1
  269. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  270. package/dist/modules/agents/integrations/agent-credential-lookup.service.js +1 -0
  271. package/dist/modules/agents/integrations/agent-credential-lookup.service.js.map +1 -1
  272. package/dist/modules/agents/integrations/chat-integration.service.d.ts +3 -3
  273. package/dist/modules/agents/integrations/chat-integration.service.js +4 -2
  274. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  275. package/dist/modules/agents/integrations/integration-action-executor.js +15 -2
  276. package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
  277. package/dist/modules/agents/integrations/integration-error-codes.d.ts +1 -0
  278. package/dist/modules/agents/integrations/integration-error-codes.js +1 -0
  279. package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
  280. package/dist/modules/agents/integrations/integrations-sync.d.ts +2 -2
  281. package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
  282. package/dist/modules/agents/integrations/platforms/slack/assets/n8n-bot-icon.png +0 -0
  283. package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.d.ts +2 -2
  284. package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js +2 -2
  285. package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js.map +1 -1
  286. package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.d.ts +3 -3
  287. package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js.map +1 -1
  288. package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.d.ts +5 -0
  289. package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.js +23 -0
  290. package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.js.map +1 -0
  291. package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.d.ts +15 -0
  292. package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js +136 -0
  293. package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js.map +1 -0
  294. package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.d.ts +2 -3
  295. package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.js +3 -4
  296. package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.js.map +1 -1
  297. package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.d.ts +14 -0
  298. package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js +83 -0
  299. package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js.map +1 -0
  300. package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.d.ts +39 -0
  301. package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js +202 -0
  302. package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js.map +1 -0
  303. package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.d.ts +51 -0
  304. package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js +241 -0
  305. package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js.map +1 -0
  306. package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.d.ts +13 -0
  307. package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.js +43 -0
  308. package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.js.map +1 -0
  309. package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.d.ts +3 -1
  310. package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.js +65 -24
  311. package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.js.map +1 -1
  312. package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.d.ts +11 -0
  313. package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.js +58 -0
  314. package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.js.map +1 -0
  315. package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.d.ts +36 -0
  316. package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js +318 -0
  317. package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js.map +1 -0
  318. package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.d.ts +4 -0
  319. package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.js +10 -0
  320. package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.js.map +1 -0
  321. package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.d.ts +19 -0
  322. package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js +128 -0
  323. package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js.map +1 -0
  324. package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +17 -3
  325. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +63 -0
  326. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
  327. package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.d.ts +28 -0
  328. package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js +146 -0
  329. package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js.map +1 -0
  330. package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.d.ts +23 -0
  331. package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js +155 -0
  332. package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js.map +1 -0
  333. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +3 -0
  334. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +18 -8
  335. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
  336. package/dist/modules/agents/integrations/platforms/teams/teams-message-files.d.ts +18 -0
  337. package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js +174 -0
  338. package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js.map +1 -0
  339. package/dist/modules/agents/integrations/platforms/teams/teams-operations.d.ts +7 -0
  340. package/dist/modules/agents/integrations/platforms/teams/teams-operations.js +175 -0
  341. package/dist/modules/agents/integrations/platforms/teams/teams-operations.js.map +1 -0
  342. package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.d.ts +20 -0
  343. package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js +68 -0
  344. package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js.map +1 -0
  345. package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.d.ts +15 -1
  346. package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.js +77 -3
  347. package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.js.map +1 -1
  348. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.d.ts +17 -0
  349. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js +148 -0
  350. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js.map +1 -0
  351. package/dist/modules/agents/integrations/platforms/{whatsapp-integration.d.ts → whatsapp/whatsapp-integration.d.ts} +17 -7
  352. package/dist/modules/agents/integrations/platforms/{whatsapp-integration.js → whatsapp/whatsapp-integration.js} +48 -12
  353. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js.map +1 -0
  354. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.d.ts +11 -0
  355. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.js +58 -0
  356. package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.js.map +1 -0
  357. package/dist/modules/agents/json-config/agent-document.d.ts +1 -0
  358. package/dist/modules/agents/json-config/agent-document.js +5 -0
  359. package/dist/modules/agents/json-config/agent-document.js.map +1 -1
  360. package/dist/modules/agents/json-config/credential-field-mapping.js +11 -2
  361. package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
  362. package/dist/modules/agents/json-config/from-json-config.js +5 -6
  363. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  364. package/dist/modules/agents/json-config/mcp-client-factory.d.ts +1 -1
  365. package/dist/modules/agents/json-config/mcp-client-factory.js +16 -69
  366. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
  367. package/dist/modules/agents/json-config/model-config.js.map +1 -1
  368. package/dist/modules/agents/json-config/prune-missing-config-references.d.ts +1 -1
  369. package/dist/modules/agents/json-config/prune-missing-config-references.js +0 -4
  370. package/dist/modules/agents/json-config/prune-missing-config-references.js.map +1 -1
  371. package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.d.ts +4 -0
  372. package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js +31 -4
  373. package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js.map +1 -1
  374. package/dist/modules/agents/plans/agent-plan-tools.d.ts +50 -1
  375. package/dist/modules/agents/plans/agent-plan-tools.js +122 -9
  376. package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
  377. package/dist/modules/agents/plans/agent-plan-work-state.d.ts +36 -0
  378. package/dist/modules/agents/plans/agent-plan-work-state.js +13 -0
  379. package/dist/modules/agents/plans/agent-plan-work-state.js.map +1 -0
  380. package/dist/modules/agents/plans/agent-plan.validation.d.ts +2 -1
  381. package/dist/modules/agents/plans/agent-plan.validation.js +6 -4
  382. package/dist/modules/agents/plans/agent-plan.validation.js.map +1 -1
  383. package/dist/modules/agents/register-favorite-resolver.js +1 -1
  384. package/dist/modules/agents/register-favorite-resolver.js.map +1 -1
  385. package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +4 -0
  386. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +7 -0
  387. package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -1
  388. package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +16 -0
  389. package/dist/modules/agents/repositories/agent-execution-thread.repository.js +63 -0
  390. package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
  391. package/dist/modules/agents/repositories/agent-history.repository.d.ts +1 -1
  392. package/dist/modules/agents/repositories/agent-history.repository.js +1 -1
  393. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
  394. package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +4 -0
  395. package/dist/modules/agents/repositories/agent-message-queue.repository.js +6 -1
  396. package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
  397. package/dist/modules/agents/repositories/agent-thread-grant.repository.d.ts +1 -0
  398. package/dist/modules/agents/repositories/agent-thread-grant.repository.js +3 -0
  399. package/dist/modules/agents/repositories/agent-thread-grant.repository.js.map +1 -1
  400. package/dist/modules/agents/repositories/agent-workflow-dependency.repository.js +1 -1
  401. package/dist/modules/agents/repositories/agent-workflow-dependency.repository.js.map +1 -1
  402. package/dist/modules/agents/repositories/agent.repository.d.ts +22 -14
  403. package/dist/modules/agents/repositories/agent.repository.js +159 -40
  404. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  405. package/dist/modules/agents/repositories/skill.repository.d.ts +98 -0
  406. package/dist/modules/agents/repositories/skill.repository.js +569 -0
  407. package/dist/modules/agents/repositories/skill.repository.js.map +1 -0
  408. package/dist/modules/agents/scheduling/agent-task-job-registrar.js.map +1 -1
  409. package/dist/modules/agents/skills/skill-content-hash.d.ts +13 -0
  410. package/dist/modules/agents/skills/skill-content-hash.js +31 -0
  411. package/dist/modules/agents/skills/skill-content-hash.js.map +1 -0
  412. package/dist/modules/agents/skills/skill-name-taken.error.d.ts +6 -0
  413. package/dist/modules/agents/skills/skill-name-taken.error.js +18 -0
  414. package/dist/modules/agents/skills/skill-name-taken.error.js.map +1 -0
  415. package/dist/modules/agents/skills/skill-names.d.ts +3 -0
  416. package/dist/modules/agents/skills/skill-names.js +32 -0
  417. package/dist/modules/agents/skills/skill-names.js.map +1 -0
  418. package/dist/modules/agents/skills/skill.service.d.ts +82 -0
  419. package/dist/modules/agents/skills/skill.service.js +368 -0
  420. package/dist/modules/agents/skills/skill.service.js.map +1 -0
  421. package/dist/modules/agents/skills/skills-api.service.d.ts +28 -0
  422. package/dist/modules/agents/skills/skills-api.service.js +249 -0
  423. package/dist/modules/agents/skills/skills-api.service.js.map +1 -0
  424. package/dist/modules/agents/skills/skills-hub-rollout.d.ts +10 -0
  425. package/dist/modules/agents/skills/skills-hub-rollout.js +35 -0
  426. package/dist/modules/agents/skills/skills-hub-rollout.js.map +1 -0
  427. package/dist/modules/agents/skills/skills-hub-startup-copy.d.ts +40 -0
  428. package/dist/modules/agents/skills/skills-hub-startup-copy.js +402 -0
  429. package/dist/modules/agents/skills/skills-hub-startup-copy.js.map +1 -0
  430. package/dist/modules/agents/skills/skills-telemetry.d.ts +21 -0
  431. package/dist/modules/agents/skills/skills-telemetry.js +98 -0
  432. package/dist/modules/agents/skills/skills-telemetry.js.map +1 -0
  433. package/dist/modules/agents/skills.controller.d.ts +19 -0
  434. package/dist/modules/agents/skills.controller.js +106 -0
  435. package/dist/modules/agents/skills.controller.js.map +1 -0
  436. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +6 -0
  437. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
  438. package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +2 -1
  439. package/dist/modules/agents/sub-agents/sub-agent-runner.js +23 -4
  440. package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
  441. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +9 -6
  442. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
  443. package/dist/modules/agents/tools/node-tool-factory.js +4 -0
  444. package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
  445. package/dist/modules/agents/tools/policy-refusal.d.ts +8 -0
  446. package/dist/modules/agents/tools/policy-refusal.js +9 -0
  447. package/dist/modules/agents/tools/policy-refusal.js.map +1 -0
  448. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +1 -0
  449. package/dist/modules/agents/tools/workflow-tool-factory.js +106 -52
  450. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  451. package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.d.ts +1 -1
  452. package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +2 -2
  453. package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -1
  454. package/dist/modules/agents/types/agent-queued-message.d.ts +4 -1
  455. package/dist/modules/agents/types/agent-queued-message.js +1 -1
  456. package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
  457. package/dist/modules/agents/utils/agent-definition.d.ts +15 -17
  458. package/dist/modules/agents/utils/agent-definition.js +2 -2
  459. package/dist/modules/agents/utils/agent-definition.js.map +1 -1
  460. package/dist/modules/agents/utils/agent-memory-scope.d.ts +2 -0
  461. package/dist/modules/agents/utils/agent-memory-scope.js +12 -0
  462. package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
  463. package/dist/modules/agents/utils/agent-missing-skill-ids.js +0 -2
  464. package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -1
  465. package/dist/modules/agents/utils/agent-published-snapshot.d.ts +6 -4
  466. package/dist/modules/agents/utils/agent-published-snapshot.js +2 -3
  467. package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
  468. package/dist/modules/agents/utils/agent-runtime-assets.d.ts +3 -2
  469. package/dist/modules/agents/utils/agent-runtime-assets.js +2 -2
  470. package/dist/modules/agents/utils/agent-runtime-assets.js.map +1 -1
  471. package/dist/modules/agents/utils/agent-thread-access.d.ts +3 -1
  472. package/dist/modules/agents/utils/agent-thread-access.js +16 -4
  473. package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
  474. package/dist/modules/agents/utils/get-agent-or-throw.d.ts +2 -2
  475. package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +14 -7
  476. package/dist/modules/breaking-changes/breaking-changes.controller.js +58 -14
  477. package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
  478. package/dist/modules/breaking-changes/breaking-changes.migration.service.d.ts +1 -0
  479. package/dist/modules/breaking-changes/breaking-changes.migration.service.js +3 -2
  480. package/dist/modules/breaking-changes/breaking-changes.migration.service.js.map +1 -1
  481. package/dist/modules/breaking-changes/breaking-changes.module.d.ts +1 -1
  482. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +6 -6
  483. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +31 -21
  484. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
  485. package/dist/modules/breaking-changes/migrations/index.js +2 -2
  486. package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
  487. package/dist/modules/breaking-changes/migrations/node-migration.d.ts +1 -0
  488. package/dist/modules/breaking-changes/migrations/node-migration.js +17 -0
  489. package/dist/modules/breaking-changes/migrations/node-migration.js.map +1 -1
  490. package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.d.ts +2 -0
  491. package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.js.map +1 -0
  492. package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.d.ts +3 -0
  493. package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js +79 -0
  494. package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js.map +1 -0
  495. package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.d.ts +2 -0
  496. package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js +40 -0
  497. package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js.map +1 -0
  498. package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.d.ts +2 -0
  499. package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js +17 -0
  500. package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js.map +1 -0
  501. package/dist/modules/breaking-changes/migrations/node-removals/index.d.ts +2 -0
  502. package/dist/modules/breaking-changes/migrations/node-removals/index.js +32 -0
  503. package/dist/modules/breaking-changes/migrations/node-removals/index.js.map +1 -0
  504. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.d.ts +4 -0
  505. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js +46 -0
  506. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js.map +1 -0
  507. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.d.ts +10 -0
  508. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js +252 -0
  509. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js.map +1 -0
  510. package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.d.ts +2 -0
  511. package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js +85 -0
  512. package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js.map +1 -0
  513. package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.d.ts +2 -0
  514. package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js +28 -0
  515. package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js.map +1 -0
  516. package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.d.ts +2 -0
  517. package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js +91 -0
  518. package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js.map +1 -0
  519. package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.d.ts +7 -0
  520. package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js +133 -0
  521. package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js.map +1 -0
  522. package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.d.ts +2 -0
  523. package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js +26 -0
  524. package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js.map +1 -0
  525. package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.d.ts +2 -0
  526. package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js +27 -0
  527. package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js.map +1 -0
  528. package/dist/modules/breaking-changes/migrations/parameter-readers.d.ts +10 -0
  529. package/dist/modules/breaking-changes/migrations/parameter-readers.js +51 -0
  530. package/dist/modules/breaking-changes/migrations/parameter-readers.js.map +1 -0
  531. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.d.ts +20 -0
  532. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js +136 -0
  533. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js.map +1 -0
  534. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.d.ts +2 -1
  535. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js +18 -1
  536. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js.map +1 -1
  537. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js +2 -1
  538. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js.map +1 -1
  539. package/dist/modules/breaking-changes/owners/workflow-owner.d.ts +1 -0
  540. package/dist/modules/breaking-changes/owners/workflow-owner.js +4 -0
  541. package/dist/modules/breaking-changes/owners/workflow-owner.js.map +1 -1
  542. package/dist/modules/breaking-changes/query/migration-finding-query.service.js +3 -2
  543. package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
  544. package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -2
  545. package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
  546. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +1 -1
  547. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
  548. package/dist/modules/chat-hub/chat-hub-extractor.d.ts +1 -1
  549. package/dist/modules/chat-hub/chat-hub-extractor.js +2 -2
  550. package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -1
  551. package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +2 -3
  552. package/dist/modules/data-table/data-table-file-cleanup.task.js +1 -5
  553. package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -1
  554. package/dist/modules/data-table/data-table-permissions.d.ts +2 -0
  555. package/dist/modules/data-table/data-table-permissions.js +6 -0
  556. package/dist/modules/data-table/data-table-permissions.js.map +1 -1
  557. package/dist/modules/data-table/data-table-proxy.service.d.ts +0 -1
  558. package/dist/modules/data-table/data-table-proxy.service.js +8 -17
  559. package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
  560. package/dist/modules/data-table/data-table.controller.d.ts +0 -1
  561. package/dist/modules/data-table/data-table.controller.js +7 -17
  562. package/dist/modules/data-table/data-table.controller.js.map +1 -1
  563. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +1 -1
  564. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +2 -2
  565. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
  566. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +1 -1
  567. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
  568. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +2 -3
  569. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +1 -5
  570. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -1
  571. package/dist/modules/inbound-auth-core/authentication-pipeline.js +7 -0
  572. package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -1
  573. package/dist/modules/inbound-auth-core/constants.d.ts +42 -0
  574. package/dist/modules/inbound-auth-core/constants.js +24 -0
  575. package/dist/modules/inbound-auth-core/constants.js.map +1 -0
  576. package/dist/modules/inbound-auth-core/grant-authorization.d.ts +2 -2
  577. package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -1
  578. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +1 -1
  579. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +2 -2
  580. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -1
  581. package/dist/modules/inbound-auth-core/inbound-auth-core.module.d.ts +3 -0
  582. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +32 -10
  583. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
  584. package/dist/modules/inbound-auth-core/local-authorization-server.proxy.d.ts +15 -0
  585. package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js +47 -0
  586. package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js.map +1 -0
  587. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +3 -2
  588. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +7 -2
  589. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -1
  590. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.d.ts +16 -0
  591. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js +71 -0
  592. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js.map +1 -0
  593. package/dist/modules/inbound-auth-core/public-api-protected-resource.d.ts +21 -0
  594. package/dist/modules/inbound-auth-core/public-api-protected-resource.js +51 -0
  595. package/dist/modules/inbound-auth-core/public-api-protected-resource.js.map +1 -0
  596. package/dist/modules/inbound-auth-core/resource-admission.d.ts +12 -0
  597. package/dist/modules/inbound-auth-core/resource-admission.js +65 -0
  598. package/dist/modules/inbound-auth-core/resource-admission.js.map +1 -0
  599. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +0 -42
  600. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +7 -26
  601. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -1
  602. package/dist/modules/inbound-auth-core/trusted-source-directory.service.d.ts +7 -0
  603. package/dist/modules/inbound-auth-core/trusted-source-directory.service.js +32 -0
  604. package/dist/modules/inbound-auth-core/trusted-source-directory.service.js.map +1 -0
  605. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +2 -3
  606. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js +1 -2
  607. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -1
  608. package/dist/modules/inbound-auth-core/trusted-source.controller.d.ts +27 -0
  609. package/dist/modules/inbound-auth-core/trusted-source.controller.js +190 -0
  610. package/dist/modules/inbound-auth-core/trusted-source.controller.js.map +1 -0
  611. package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +1 -0
  612. package/dist/modules/inbound-auth-core/trusted-source.store.js +6 -3
  613. package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
  614. package/dist/modules/inbox/inbox-source.registry.d.ts +39 -0
  615. package/dist/modules/inbox/inbox-source.registry.js +64 -0
  616. package/dist/modules/inbox/inbox-source.registry.js.map +1 -0
  617. package/dist/modules/inbox/inbox.controller.d.ts +10 -0
  618. package/dist/modules/inbox/inbox.controller.js +48 -0
  619. package/dist/modules/inbox/inbox.controller.js.map +1 -0
  620. package/dist/modules/inbox/inbox.module.d.ts +4 -0
  621. package/dist/modules/{workflow-builder/workflow-builder.module.js → inbox/inbox.module.js} +9 -10
  622. package/dist/modules/inbox/inbox.module.js.map +1 -0
  623. package/dist/modules/inbox/inbox.service.d.ts +17 -0
  624. package/dist/modules/inbox/inbox.service.js +184 -0
  625. package/dist/modules/inbox/inbox.service.js.map +1 -0
  626. package/dist/modules/instance-ai/agent-preview-handoff.js +1 -1
  627. package/dist/modules/instance-ai/agent-preview-handoff.js.map +1 -1
  628. package/dist/modules/instance-ai/agents-access.d.ts +2 -0
  629. package/dist/modules/instance-ai/agents-access.js +9 -0
  630. package/dist/modules/instance-ai/agents-access.js.map +1 -0
  631. package/dist/modules/instance-ai/conversation-history-content.d.ts +3 -2
  632. package/dist/modules/instance-ai/conversation-history-content.js +8 -2
  633. package/dist/modules/instance-ai/conversation-history-content.js.map +1 -1
  634. package/dist/modules/instance-ai/eval/agent-execution.service.js +14 -7
  635. package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
  636. package/dist/modules/instance-ai/eval/mock-handler.js +11 -10
  637. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  638. package/dist/modules/instance-ai/eval/mock-utils.js +2 -0
  639. package/dist/modules/instance-ai/eval/mock-utils.js.map +1 -1
  640. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.d.ts +8 -0
  641. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js +10 -0
  642. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js.map +1 -1
  643. package/dist/modules/instance-ai/eval/thread-restore.service.js +1 -1
  644. package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
  645. package/dist/modules/instance-ai/eval/workflow-analysis.js +6 -6
  646. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  647. package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +1 -0
  648. package/dist/modules/instance-ai/event-bus/durable-event-log.js +65 -7
  649. package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
  650. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +2 -5
  651. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +10 -8
  652. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
  653. package/dist/modules/instance-ai/instance-ai-conversation-history.service.js +1 -1
  654. package/dist/modules/instance-ai/instance-ai-conversation-history.service.js.map +1 -1
  655. package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +1 -11
  656. package/dist/modules/instance-ai/instance-ai-credit.service.js +9 -52
  657. package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
  658. package/dist/modules/instance-ai/instance-ai-model.service.d.ts +9 -2
  659. package/dist/modules/instance-ai/instance-ai-model.service.js +35 -6
  660. package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
  661. package/dist/modules/instance-ai/instance-ai-pending-agent.service.d.ts +2 -0
  662. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +2 -1
  663. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
  664. package/dist/modules/instance-ai/instance-ai-run-pin-data.js +1 -1
  665. package/dist/modules/instance-ai/instance-ai-run-pin-data.js.map +1 -1
  666. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +1 -2
  667. package/dist/modules/instance-ai/instance-ai-settings.service.js +5 -18
  668. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  669. package/dist/modules/instance-ai/instance-ai-skills.service.d.ts +26 -0
  670. package/dist/modules/instance-ai/instance-ai-skills.service.js +63 -0
  671. package/dist/modules/instance-ai/instance-ai-skills.service.js.map +1 -0
  672. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +17 -15
  673. package/dist/modules/instance-ai/instance-ai.adapter.service.js +22 -16
  674. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  675. package/dist/modules/instance-ai/instance-ai.controller.d.ts +7 -1
  676. package/dist/modules/instance-ai/instance-ai.controller.js +19 -0
  677. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  678. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -2
  679. package/dist/modules/instance-ai/instance-ai.module.js +9 -1
  680. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  681. package/dist/modules/instance-ai/instance-ai.service.d.ts +3 -3
  682. package/dist/modules/instance-ai/instance-ai.service.js +52 -73
  683. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  684. package/dist/modules/instance-ai/instance-context.service.js +3 -3
  685. package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
  686. package/dist/modules/instance-ai/internal-messages.js +5 -5
  687. package/dist/modules/instance-ai/internal-messages.js.map +1 -1
  688. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +2 -5
  689. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +8 -26
  690. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
  691. package/dist/modules/instance-ai/model-config-name.d.ts +5 -0
  692. package/dist/modules/instance-ai/model-config-name.js +25 -0
  693. package/dist/modules/instance-ai/model-config-name.js.map +1 -0
  694. package/dist/modules/instance-ai/onboarding.d.ts +0 -2
  695. package/dist/modules/instance-ai/onboarding.js +1 -14
  696. package/dist/modules/instance-ai/onboarding.js.map +1 -1
  697. package/dist/modules/instance-ai/repositories/conversation-history-search.d.ts +5 -1
  698. package/dist/modules/instance-ai/repositories/conversation-history-search.js +10 -5
  699. package/dist/modules/instance-ai/repositories/conversation-history-search.js.map +1 -1
  700. package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js +2 -2
  701. package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js.map +1 -1
  702. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +1 -0
  703. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +11 -0
  704. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
  705. package/dist/modules/instance-ai/repositories/instance-ai-message.repository.d.ts +0 -1
  706. package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js +0 -10
  707. package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js.map +1 -1
  708. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +2 -1
  709. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +4 -1
  710. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
  711. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +42 -2
  712. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +63 -2
  713. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -1
  714. package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +10 -3
  715. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +30 -2
  716. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -1
  717. package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.d.ts +2 -4
  718. package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js +4 -7
  719. package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js.map +1 -1
  720. package/dist/modules/instance-registry/instance-registry-heartbeat.task.d.ts +2 -3
  721. package/dist/modules/instance-registry/instance-registry-heartbeat.task.js +1 -5
  722. package/dist/modules/instance-registry/instance-registry-heartbeat.task.js.map +1 -1
  723. package/dist/modules/instance-registry/instance-registry.module.js +1 -1
  724. package/dist/modules/instance-registry/instance-registry.module.js.map +1 -1
  725. package/dist/modules/instance-registry/stale-member-cleanup.task.d.ts +2 -3
  726. package/dist/modules/instance-registry/stale-member-cleanup.task.js +1 -2
  727. package/dist/modules/instance-registry/stale-member-cleanup.task.js.map +1 -1
  728. package/dist/modules/instance-reporting.ee/instance-reporting.task.d.ts +2 -4
  729. package/dist/modules/instance-reporting.ee/instance-reporting.task.js +4 -7
  730. package/dist/modules/instance-reporting.ee/instance-reporting.task.js.map +1 -1
  731. package/dist/modules/log-streaming.ee/log-streaming.controller.js +12 -1
  732. package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
  733. package/dist/modules/mcp/mcp-api-key.service.d.ts +2 -3
  734. package/dist/modules/mcp/mcp-api-key.service.js +7 -4
  735. package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
  736. package/dist/modules/mcp/mcp-protected-resource.d.ts +2 -2
  737. package/dist/modules/mcp/mcp-protected-resource.js +5 -3
  738. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  739. package/dist/modules/mcp/mcp-scopes.d.ts +1 -0
  740. package/dist/modules/mcp/mcp-scopes.js +7 -1
  741. package/dist/modules/mcp/mcp-scopes.js.map +1 -1
  742. package/dist/modules/mcp/mcp-server-middleware.service.d.ts +2 -2
  743. package/dist/modules/mcp/mcp-server-middleware.service.js +3 -3
  744. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  745. package/dist/modules/mcp/mcp-tool-availability.d.ts +1 -0
  746. package/dist/modules/mcp/mcp-tool-availability.js +4 -0
  747. package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
  748. package/dist/modules/mcp/mcp.controller.js +2 -0
  749. package/dist/modules/mcp/mcp.controller.js.map +1 -1
  750. package/dist/modules/mcp/mcp.module.js +1 -1
  751. package/dist/modules/mcp/mcp.module.js.map +1 -1
  752. package/dist/modules/mcp/mcp.service.d.ts +2 -3
  753. package/dist/modules/mcp/mcp.service.js +23 -5
  754. package/dist/modules/mcp/mcp.service.js.map +1 -1
  755. package/dist/modules/mcp/mcp.types.d.ts +1 -1
  756. package/dist/modules/mcp/tools/agents/agent-reference.js +12 -8
  757. package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
  758. package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +5 -5
  759. package/dist/modules/mcp/tools/agents/agent-slack-setup.js.map +1 -1
  760. package/dist/modules/mcp/tools/agents/agent-tools.service.js +24 -9
  761. package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
  762. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +1 -1
  763. package/dist/modules/mcp/tools/get-execution.tool.d.ts +1 -1
  764. package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +11 -0
  765. package/dist/modules/mcp/tools/skills/skill-tools.service.js +242 -0
  766. package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -0
  767. package/dist/modules/mcp/tools/tool-result.utils.d.ts +8 -0
  768. package/dist/modules/mcp/tools/tool-result.utils.js +11 -0
  769. package/dist/modules/mcp/tools/tool-result.utils.js.map +1 -0
  770. package/dist/modules/mcp-discovery/activity-events.service.d.ts +14 -0
  771. package/dist/modules/mcp-discovery/activity-events.service.js +67 -0
  772. package/dist/modules/mcp-discovery/activity-events.service.js.map +1 -0
  773. package/dist/modules/mcp-discovery/activity.service.d.ts +16 -0
  774. package/dist/modules/mcp-discovery/activity.service.js +71 -0
  775. package/dist/modules/mcp-discovery/activity.service.js.map +1 -0
  776. package/dist/modules/mcp-discovery/eligibility.d.ts +21 -0
  777. package/dist/modules/mcp-discovery/eligibility.js +31 -0
  778. package/dist/modules/mcp-discovery/eligibility.js.map +1 -0
  779. package/dist/modules/mcp-discovery/enrollment.service.d.ts +19 -0
  780. package/dist/modules/mcp-discovery/enrollment.service.js +100 -0
  781. package/dist/modules/mcp-discovery/enrollment.service.js.map +1 -0
  782. package/dist/modules/mcp-discovery/events.d.ts +29 -0
  783. package/dist/{public-api/v1/shared/handler.types.js → modules/mcp-discovery/events.js} +1 -1
  784. package/dist/modules/mcp-discovery/events.js.map +1 -0
  785. package/dist/modules/mcp-discovery/mcp-discovery.controller.d.ts +9 -0
  786. package/dist/modules/{quick-connect/quick-connect.controller.js → mcp-discovery/mcp-discovery.controller.js} +17 -17
  787. package/dist/modules/mcp-discovery/mcp-discovery.controller.js.map +1 -0
  788. package/dist/modules/mcp-discovery/mcp-discovery.dto.d.ts +11 -0
  789. package/dist/modules/mcp-discovery/mcp-discovery.dto.js +12 -0
  790. package/dist/modules/mcp-discovery/mcp-discovery.dto.js.map +1 -0
  791. package/dist/modules/mcp-discovery/mcp-discovery.module.d.ts +4 -0
  792. package/dist/modules/mcp-discovery/mcp-discovery.module.js +26 -0
  793. package/dist/modules/mcp-discovery/mcp-discovery.module.js.map +1 -0
  794. package/dist/modules/mcp-discovery/types.d.ts +6 -0
  795. package/dist/{services/auth-strategy.types.js → modules/mcp-discovery/types.js} +1 -1
  796. package/dist/modules/mcp-discovery/types.js.map +1 -0
  797. package/dist/modules/mcp-registry/mcp-auth-fetch.d.ts +15 -0
  798. package/dist/modules/mcp-registry/mcp-auth-fetch.js +64 -0
  799. package/dist/modules/mcp-registry/mcp-auth-fetch.js.map +1 -0
  800. package/dist/modules/mcp-registry/mcp-connection-discovery.service.d.ts +23 -0
  801. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js +219 -0
  802. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js.map +1 -0
  803. package/dist/modules/mcp-registry/mcp-registry-refresh.task.d.ts +2 -3
  804. package/dist/modules/mcp-registry/mcp-registry-refresh.task.js +4 -6
  805. package/dist/modules/mcp-registry/mcp-registry-refresh.task.js.map +1 -1
  806. package/dist/modules/mcp-registry/mcp-registry-response.d.ts +3 -0
  807. package/dist/modules/mcp-registry/mcp-registry-response.js +35 -0
  808. package/dist/modules/mcp-registry/mcp-registry-response.js.map +1 -0
  809. package/dist/modules/mcp-registry/mcp-registry.controller.d.ts +6 -2
  810. package/dist/modules/mcp-registry/mcp-registry.controller.js +25 -28
  811. package/dist/modules/mcp-registry/mcp-registry.controller.js.map +1 -1
  812. package/dist/modules/mcp-registry/registry/mock-servers.js +3 -3
  813. package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
  814. package/dist/modules/modules.manifest.js +2 -0
  815. package/dist/modules/modules.manifest.js.map +1 -1
  816. package/dist/modules/n8n-packages/engine/import-blocked.error.js +1 -0
  817. package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
  818. package/dist/modules/n8n-packages/engine/import-gates.d.ts +6 -0
  819. package/dist/modules/n8n-packages/engine/import-gates.js +8 -0
  820. package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
  821. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +2 -2
  822. package/dist/modules/n8n-packages/engine/import-orchestrator.js +20 -1
  823. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  824. package/dist/modules/n8n-packages/engine/import-telemetry.js +3 -1
  825. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  826. package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +3 -0
  827. package/dist/modules/n8n-packages/engine/n8n-package-parser.js +38 -0
  828. package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
  829. package/dist/modules/n8n-packages/engine/package-layout.d.ts +10 -2
  830. package/dist/modules/n8n-packages/engine/package-layout.js +26 -0
  831. package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
  832. package/dist/modules/n8n-packages/engine/project-package-importer.js +29 -4
  833. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  834. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +19 -1
  835. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  836. package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +1 -1
  837. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +6 -0
  838. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -1
  839. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -1
  840. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.d.ts +20 -0
  841. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js +98 -0
  842. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js.map +1 -0
  843. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +16 -2
  844. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -1
  845. package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +7 -3
  846. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +95 -5
  847. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
  848. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +3 -1
  849. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +14 -4
  850. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
  851. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +13 -2
  852. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
  853. package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +2 -1
  854. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -1
  855. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
  856. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +39 -3
  857. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  858. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
  859. package/dist/modules/n8n-packages/n8n-packages.service.js +2 -1
  860. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  861. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +16 -2
  862. package/dist/modules/n8n-packages/n8n-packages.types.js +6 -1
  863. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  864. package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +133 -164
  865. package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +3 -0
  866. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +1 -0
  867. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -1
  868. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +1 -1
  869. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
  870. package/dist/modules/oauth-jwe/oauth-jwe-jwks.provider.d.ts +1 -1
  871. package/dist/modules/oauth-jwe/oauth-jwe.module.d.ts +1 -1
  872. package/dist/modules/oauth-jwe/oauth-jwe.module.js +4 -5
  873. package/dist/modules/oauth-jwe/oauth-jwe.module.js.map +1 -1
  874. package/dist/modules/oauth-jwe/oauth-jwe.schemas.js +3 -3
  875. package/dist/modules/oauth-jwe/oauth-jwe.schemas.js.map +1 -1
  876. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +1 -0
  877. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +3 -0
  878. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
  879. package/dist/modules/oauth-server/dto/approve-consent-request.dto.d.ts +3 -1
  880. package/dist/modules/oauth-server/dto/approve-consent-request.dto.js +8 -1
  881. package/dist/modules/oauth-server/dto/approve-consent-request.dto.js.map +1 -1
  882. package/dist/modules/oauth-server/oauth-consent.controller.d.ts +5 -1
  883. package/dist/modules/oauth-server/oauth-consent.controller.js +15 -14
  884. package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -1
  885. package/dist/modules/oauth-server/oauth-consent.service.d.ts +1 -1
  886. package/dist/modules/oauth-server/oauth-consent.service.js +2 -2
  887. package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
  888. package/dist/modules/oauth-server/oauth-flow.service.d.ts +23 -9
  889. package/dist/modules/oauth-server/oauth-flow.service.js +279 -43
  890. package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -1
  891. package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +5 -2
  892. package/dist/modules/oauth-server/oauth-local-authorization-server.js +8 -3
  893. package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -1
  894. package/dist/modules/oauth-server/oauth-server.module.js +6 -6
  895. package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
  896. package/dist/modules/oauth-server/oauth-server.service.d.ts +1 -1
  897. package/dist/modules/oauth-server/oauth-server.service.js +8 -6
  898. package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
  899. package/dist/modules/oauth-server/oauth-session.service.d.ts +13 -7
  900. package/dist/modules/oauth-server/oauth-session.service.js +48 -13
  901. package/dist/modules/oauth-server/oauth-session.service.js.map +1 -1
  902. package/dist/modules/oauth-server/oauth-signing-jwks.provider.d.ts +1 -1
  903. package/dist/modules/oauth-server/oauth-signing-key.schemas.js +2 -2
  904. package/dist/modules/oauth-server/oauth-signing-key.schemas.js.map +1 -1
  905. package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +1 -1
  906. package/dist/modules/oauth-server/oauth-signing-key.service.js +2 -2
  907. package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
  908. package/dist/modules/oauth-server/oauth-token.service.d.ts +2 -4
  909. package/dist/modules/oauth-server/oauth-token.service.js +2 -3
  910. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  911. package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
  912. package/dist/modules/oauth-server/oauth.controller.js +41 -8
  913. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  914. package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
  915. package/dist/modules/oauth-server/oauth.helpers.js +14 -0
  916. package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
  917. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.d.ts +1 -1
  918. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js +1 -0
  919. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js.map +1 -1
  920. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.d.ts +7 -5
  921. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +1 -0
  922. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -1
  923. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.d.ts +7 -5
  924. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +1 -0
  925. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
  926. package/dist/modules/oauth-server/protected-resource-resolvers/index.js +9 -9
  927. package/dist/modules/oauth-server/protected-resource-resolvers/index.js.map +1 -1
  928. package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +1 -0
  929. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +8 -0
  930. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
  931. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +3 -3
  932. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
  933. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +3 -3
  934. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
  935. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.d.ts +1 -1
  936. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +1 -1
  937. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
  938. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.d.ts +1 -1
  939. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
  940. package/dist/modules/oauth-server/resource-gate.d.ts +1 -1
  941. package/dist/modules/oauth-server/resource-gate.js.map +1 -1
  942. package/dist/modules/oauth-server/resource-identity.d.ts +1 -1
  943. package/dist/modules/promotions.ee/constants.d.ts +1 -1
  944. package/dist/modules/promotions.ee/constants.js +1 -1
  945. package/dist/modules/promotions.ee/constants.js.map +1 -1
  946. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +3 -2
  947. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +1 -1
  948. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +21 -0
  949. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +95 -0
  950. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -0
  951. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.d.ts +18 -0
  952. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js +82 -0
  953. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js.map +1 -0
  954. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +2 -1
  955. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js +6 -2
  956. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +1 -1
  957. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +18 -0
  958. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +61 -0
  959. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -0
  960. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.d.ts +9 -0
  961. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js +33 -0
  962. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js.map +1 -0
  963. package/dist/modules/promotions.ee/git-hosts/git-host-target.d.ts +30 -0
  964. package/dist/modules/promotions.ee/git-hosts/git-host-target.js +97 -0
  965. package/dist/modules/promotions.ee/git-hosts/git-host-target.js.map +1 -0
  966. package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +12 -0
  967. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +4 -1
  968. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +73 -6
  969. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -1
  970. package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +1 -0
  971. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +12 -0
  972. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
  973. package/dist/modules/promotions.ee/promotion-config.resolver.js +3 -5
  974. package/dist/modules/promotions.ee/promotion-config.resolver.js.map +1 -1
  975. package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -0
  976. package/dist/modules/promotions.ee/promotion-connections.service.js +39 -12
  977. package/dist/modules/promotions.ee/promotion-connections.service.js.map +1 -1
  978. package/dist/modules/promotions.ee/promotion-providers.service.d.ts +13 -0
  979. package/dist/modules/promotions.ee/promotion-providers.service.js +28 -0
  980. package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
  981. package/dist/modules/promotions.ee/promotions-git.service.d.ts +3 -0
  982. package/dist/modules/promotions.ee/promotions-git.service.js +30 -4
  983. package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -1
  984. package/dist/modules/promotions.ee/promotions.module.d.ts +1 -1
  985. package/dist/modules/promotions.ee/promotions.module.js +10 -1
  986. package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
  987. package/dist/modules/promotions.ee/promotions.service.d.ts +0 -1
  988. package/dist/modules/promotions.ee/promotions.service.js +45 -19
  989. package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
  990. package/dist/modules/provisioning.ee/provisioning.module.js +1 -1
  991. package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
  992. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -0
  993. package/dist/modules/provisioning.ee/provisioning.service.ee.js +14 -2
  994. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  995. package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +1 -1
  996. package/dist/modules/provisioning.ee/role-resolver-types.d.ts +1 -1
  997. package/dist/modules/redaction/dynamic-credentials-context-hook.d.ts +1 -1
  998. package/dist/modules/redaction/dynamic-credentials-context-hook.js +2 -2
  999. package/dist/modules/redaction/dynamic-credentials-context-hook.js.map +1 -1
  1000. package/dist/modules/redaction/executions/execution-redaction.interfaces.d.ts +3 -1
  1001. package/dist/modules/redaction/executions/execution-redaction.service.d.ts +4 -2
  1002. package/dist/modules/redaction/executions/execution-redaction.service.js +35 -11
  1003. package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
  1004. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.d.ts +1 -1
  1005. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +6 -1
  1006. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
  1007. package/dist/modules/redaction/executions/strategies/node-defined-field-redaction.strategy.d.ts +1 -1
  1008. package/dist/modules/redaction/redaction.module.js +2 -2
  1009. package/dist/modules/redaction/redaction.module.js.map +1 -1
  1010. package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +1 -1
  1011. package/dist/modules/runtime-credentials/runtime-credentials.module.js +2 -2
  1012. package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -1
  1013. package/dist/modules/scim/database/scim-api-key.repository.js +2 -2
  1014. package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -1
  1015. package/dist/modules/scim/database/scim-user.repository.d.ts +23 -0
  1016. package/dist/modules/scim/database/scim-user.repository.js +53 -0
  1017. package/dist/modules/scim/database/scim-user.repository.js.map +1 -0
  1018. package/dist/modules/scim/scim-body-parser.d.ts +2 -0
  1019. package/dist/modules/scim/scim-body-parser.js +19 -0
  1020. package/dist/modules/scim/scim-body-parser.js.map +1 -0
  1021. package/dist/modules/scim/scim-discovery.controller.js +84 -7
  1022. package/dist/modules/scim/scim-discovery.controller.js.map +1 -1
  1023. package/dist/modules/scim/scim-route.js +2 -1
  1024. package/dist/modules/scim/scim-route.js.map +1 -1
  1025. package/dist/modules/scim/scim-token.service.d.ts +1 -2
  1026. package/dist/modules/scim/scim-token.service.js +1 -2
  1027. package/dist/modules/scim/scim-token.service.js.map +1 -1
  1028. package/dist/modules/scim/scim.controller.d.ts +19 -0
  1029. package/dist/modules/scim/scim.controller.js +163 -0
  1030. package/dist/modules/scim/scim.controller.js.map +1 -0
  1031. package/dist/modules/scim/scim.errors.d.ts +13 -0
  1032. package/dist/modules/scim/scim.errors.js +29 -0
  1033. package/dist/modules/scim/scim.errors.js.map +1 -0
  1034. package/dist/modules/scim/scim.module.js +1 -0
  1035. package/dist/modules/scim/scim.module.js.map +1 -1
  1036. package/dist/modules/scim/scim.service.d.ts +38 -0
  1037. package/dist/modules/scim/scim.service.js +329 -0
  1038. package/dist/modules/scim/scim.service.js.map +1 -0
  1039. package/dist/modules/source-control.ee/source-control-git.service.ee.js +2 -0
  1040. package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
  1041. package/dist/modules/source-control.ee/source-control-helper.ee.js +6 -51
  1042. package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
  1043. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +3 -2
  1044. package/dist/modules/source-control.ee/source-control-import.service.ee.js +59 -13
  1045. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  1046. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -0
  1047. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -0
  1048. package/dist/modules/source-control.ee/source-control.service.ee.js +6 -1
  1049. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  1050. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +1 -2
  1051. package/dist/modules/sso-oidc/oidc.service.ee.js +1 -2
  1052. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  1053. package/dist/modules/token-exchange/services/jti-cleanup.task.d.ts +2 -3
  1054. package/dist/modules/token-exchange/services/jti-cleanup.task.js +1 -2
  1055. package/dist/modules/token-exchange/services/jti-cleanup.task.js.map +1 -1
  1056. package/dist/modules/token-exchange/services/scoped-jwt.strategy.d.ts +2 -2
  1057. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js +2 -2
  1058. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js.map +1 -1
  1059. package/dist/modules/token-exchange/services/token-exchange.service.d.ts +1 -1
  1060. package/dist/modules/token-exchange/services/token-exchange.service.js +2 -2
  1061. package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
  1062. package/dist/modules/token-exchange/services/trusted-key-refresh.task.d.ts +2 -3
  1063. package/dist/modules/token-exchange/services/trusted-key-refresh.task.js +1 -2
  1064. package/dist/modules/token-exchange/services/trusted-key-refresh.task.js.map +1 -1
  1065. package/dist/modules/token-exchange/token-exchange.module.js +1 -1
  1066. package/dist/modules/token-exchange/token-exchange.module.js.map +1 -1
  1067. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +5 -7
  1068. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +13 -1
  1069. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
  1070. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +1 -1
  1071. package/dist/modules/type-availability-policies/credential-type-policy.check.js +3 -14
  1072. package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
  1073. package/dist/modules/type-availability-policies/node-type-policy.check.js +2 -13
  1074. package/dist/modules/type-availability-policies/node-type-policy.check.js.map +1 -1
  1075. package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -0
  1076. package/dist/modules/type-availability-policies/package-resolver.js +17 -0
  1077. package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
  1078. package/dist/modules/type-availability-policies/policy-rule-lint.d.ts +14 -0
  1079. package/dist/modules/type-availability-policies/policy-rule-lint.js +19 -0
  1080. package/dist/modules/type-availability-policies/policy-rule-lint.js.map +1 -0
  1081. package/dist/modules/type-availability-policies/policy-shadow-lint.d.ts +1 -0
  1082. package/dist/modules/type-availability-policies/policy-shadow-lint.js +1 -1
  1083. package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
  1084. package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +1 -1
  1085. package/dist/modules/type-availability-policies/type-availability-policies.module.js +2 -2
  1086. package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
  1087. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.d.ts +5 -7
  1088. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js +13 -1
  1089. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js.map +1 -1
  1090. package/dist/modules/type-availability-policies/type-availability-policy-project.controller.d.ts +1 -1
  1091. package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +10 -7
  1092. package/dist/modules/type-availability-policies/type-availability-policy.service.js +39 -36
  1093. package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
  1094. package/dist/modules/type-availability-policies/type-violation.d.ts +10 -0
  1095. package/dist/modules/type-availability-policies/type-violation.js +29 -0
  1096. package/dist/modules/type-availability-policies/type-violation.js.map +1 -0
  1097. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +5 -5
  1098. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +12 -32
  1099. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
  1100. package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.d.ts +1 -2
  1101. package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js.map +1 -1
  1102. package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.d.ts +1 -1
  1103. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +1 -3
  1104. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +0 -21
  1105. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -1
  1106. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +12 -4
  1107. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
  1108. package/dist/node-execution/ephemeral-node-executor.d.ts +2 -0
  1109. package/dist/node-execution/ephemeral-node-executor.js +21 -6
  1110. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  1111. package/dist/oauth/oauth.service.d.ts +3 -1
  1112. package/dist/oauth/oauth.service.js +30 -3
  1113. package/dist/oauth/oauth.service.js.map +1 -1
  1114. package/dist/output-schema-parameter-defaults.d.ts +7 -0
  1115. package/dist/output-schema-parameter-defaults.js +23 -0
  1116. package/dist/output-schema-parameter-defaults.js.map +1 -0
  1117. package/dist/policy/policy-violation.error.d.ts +1 -0
  1118. package/dist/policy/policy-violation.error.js +12 -0
  1119. package/dist/policy/policy-violation.error.js.map +1 -1
  1120. package/dist/public-api/idempotency-key-cleanup.task.d.ts +2 -3
  1121. package/dist/public-api/idempotency-key-cleanup.task.js +6 -6
  1122. package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -1
  1123. package/dist/public-api/idempotency-key.service.d.ts +9 -1
  1124. package/dist/public-api/idempotency-key.service.js +41 -0
  1125. package/dist/public-api/idempotency-key.service.js.map +1 -1
  1126. package/dist/public-api/index.js +14 -138
  1127. package/dist/public-api/index.js.map +1 -1
  1128. package/dist/public-api/media-types/request-body/multipart-parser.js.map +1 -1
  1129. package/dist/public-api/public-api-controller.registry.d.ts +12 -2
  1130. package/dist/public-api/public-api-controller.registry.js +98 -12
  1131. package/dist/public-api/public-api-controller.registry.js.map +1 -1
  1132. package/dist/public-api/public-api-rate-limit.service.d.ts +17 -0
  1133. package/dist/public-api/public-api-rate-limit.service.js +127 -0
  1134. package/dist/public-api/public-api-rate-limit.service.js.map +1 -0
  1135. package/dist/public-api/public-api-route-resolver.d.ts +0 -3
  1136. package/dist/public-api/public-api-route-resolver.js +0 -19
  1137. package/dist/public-api/public-api-route-resolver.js.map +1 -1
  1138. package/dist/public-api/types.d.ts +1 -66
  1139. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +1 -0
  1140. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +54 -29
  1141. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
  1142. package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +3 -1
  1143. package/dist/public-api/v1/controllers/credentials.public.controller.js +22 -3
  1144. package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
  1145. package/dist/public-api/v1/controllers/executions.public.controller.d.ts +1 -2
  1146. package/dist/public-api/v1/controllers/executions.public.controller.js +3 -5
  1147. package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
  1148. package/dist/public-api/v1/controllers/log-streaming.mapper.d.ts +3 -3
  1149. package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +3 -1
  1150. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +95 -2
  1151. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -1
  1152. package/dist/public-api/v1/controllers/node-type-policies.public.controller.d.ts +1 -0
  1153. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +54 -29
  1154. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
  1155. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +5 -1
  1156. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +29 -2
  1157. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -1
  1158. package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +4 -1
  1159. package/dist/public-api/v1/controllers/promotions.public.controller.js +70 -4
  1160. package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
  1161. package/dist/public-api/v1/controllers/source-control.public.controller.d.ts +2 -2
  1162. package/dist/public-api/v1/controllers/source-control.public.controller.js +3 -2
  1163. package/dist/public-api/v1/controllers/source-control.public.controller.js.map +1 -1
  1164. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -2
  1165. package/dist/public-api/v1/controllers/workflows.public.controller.js +13 -2
  1166. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
  1167. package/dist/public-api/v1/handlers/discover/discover.service.js +7 -86
  1168. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  1169. package/dist/public-api/v1/openapi-gen/decorator-routes.js +15 -5
  1170. package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
  1171. package/dist/public-api/v1/openapi-gen/generate.d.ts +1 -1
  1172. package/dist/public-api/v1/openapi-gen/generate.js +28 -47
  1173. package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
  1174. package/dist/public-api/v1/openapi.yml +3915 -3646
  1175. package/dist/public-api/v1/public-api-error-response.d.ts +1 -2
  1176. package/dist/public-api/v1/public-api-error-response.js +46 -2
  1177. package/dist/public-api/v1/public-api-error-response.js.map +1 -1
  1178. package/dist/requests.d.ts +6 -1
  1179. package/dist/scaling/job-processor.d.ts +3 -0
  1180. package/dist/scaling/job-processor.js +39 -0
  1181. package/dist/scaling/job-processor.js.map +1 -1
  1182. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  1183. package/dist/scaling/scaling.service.js +3 -0
  1184. package/dist/scaling/scaling.service.js.map +1 -1
  1185. package/dist/scaling/scaling.types.d.ts +1 -0
  1186. package/dist/scaling/worker-status.service.ee.js +2 -2
  1187. package/dist/scaling/worker-status.service.ee.js.map +1 -1
  1188. package/dist/scheduling/durable-scheduler.js +3 -4
  1189. package/dist/scheduling/durable-scheduler.js.map +1 -1
  1190. package/dist/scheduling/poll-trigger-node/durable-poller-chain.js.map +1 -1
  1191. package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -1
  1192. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +0 -1
  1193. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +1 -3
  1194. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
  1195. package/dist/scheduling/system-tasks/in-memory-system-task-runner.d.ts +1 -0
  1196. package/dist/scheduling/system-tasks/in-memory-system-task-runner.js +2 -2
  1197. package/dist/scheduling/system-tasks/in-memory-system-task-runner.js.map +1 -1
  1198. package/dist/scheduling/system-tasks/system-task-job-registrar.d.ts +9 -3
  1199. package/dist/scheduling/system-tasks/system-task-job-registrar.js +16 -5
  1200. package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
  1201. package/dist/scheduling/system-tasks/system-task-run-observer.js +3 -3
  1202. package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
  1203. package/dist/scheduling/system-tasks/system-task-runner.d.ts +1 -1
  1204. package/dist/scheduling/system-tasks/system-task-runner.js +21 -21
  1205. package/dist/scheduling/system-tasks/system-task-runner.js.map +1 -1
  1206. package/dist/server.js +2 -2
  1207. package/dist/server.js.map +1 -1
  1208. package/dist/services/active-workflows.service.d.ts +6 -1
  1209. package/dist/services/active-workflows.service.js +22 -8
  1210. package/dist/services/active-workflows.service.js.map +1 -1
  1211. package/dist/services/ai-workflow-builder.service.d.ts +1 -1
  1212. package/dist/services/ai-workflow-builder.service.js +2 -2
  1213. package/dist/services/ai-workflow-builder.service.js.map +1 -1
  1214. package/dist/services/ai.service.d.ts +0 -1
  1215. package/dist/services/ai.service.js +0 -4
  1216. package/dist/services/ai.service.js.map +1 -1
  1217. package/dist/services/api-key-auth.strategy.d.ts +2 -2
  1218. package/dist/services/api-key-auth.strategy.js +4 -4
  1219. package/dist/services/api-key-auth.strategy.js.map +1 -1
  1220. package/dist/services/frontend.service.d.ts +3 -1
  1221. package/dist/services/frontend.service.js +7 -2
  1222. package/dist/services/frontend.service.js.map +1 -1
  1223. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
  1224. package/dist/services/pruning/activity-pruning.task.d.ts +2 -3
  1225. package/dist/services/pruning/activity-pruning.task.js +8 -6
  1226. package/dist/services/pruning/activity-pruning.task.js.map +1 -1
  1227. package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +2 -5
  1228. package/dist/services/pruning/execution-pruning-hard-delete.task.js +9 -4
  1229. package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -1
  1230. package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +2 -4
  1231. package/dist/services/pruning/execution-pruning-soft-delete.task.js +6 -3
  1232. package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
  1233. package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +2 -4
  1234. package/dist/services/pruning/workflow-history-compaction-optimize.task.js +6 -3
  1235. package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
  1236. package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -5
  1237. package/dist/services/pruning/workflow-history-compaction-trim.task.js +7 -4
  1238. package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
  1239. package/dist/services/pruning/workflow-history-compaction.service.d.ts +2 -10
  1240. package/dist/services/pruning/workflow-history-compaction.service.js +2 -46
  1241. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  1242. package/dist/services/pruning/workflow-history-pruning.task.d.ts +2 -4
  1243. package/dist/services/pruning/workflow-history-pruning.task.js +9 -7
  1244. package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
  1245. package/dist/services/public-api-key.service.d.ts +1 -1
  1246. package/dist/services/public-api-key.service.js +2 -2
  1247. package/dist/services/public-api-key.service.js.map +1 -1
  1248. package/dist/services/rate-limit.service.d.ts +5 -0
  1249. package/dist/services/rate-limit.service.js +14 -0
  1250. package/dist/services/rate-limit.service.js.map +1 -1
  1251. package/dist/services/session-cookie-auth.strategy.d.ts +1 -1
  1252. package/dist/services/user.service.d.ts +1 -2
  1253. package/dist/services/user.service.js +1 -2
  1254. package/dist/services/user.service.js.map +1 -1
  1255. package/dist/services/workflow-statistics-rollup.task.d.ts +4 -5
  1256. package/dist/services/workflow-statistics-rollup.task.js +9 -10
  1257. package/dist/services/workflow-statistics-rollup.task.js.map +1 -1
  1258. package/dist/services/workflow-statistics.service.d.ts +0 -1
  1259. package/dist/services/workflow-statistics.service.js +0 -5
  1260. package/dist/services/workflow-statistics.service.js.map +1 -1
  1261. package/dist/telemetry/telemetry-buffer-flush.task.d.ts +2 -3
  1262. package/dist/telemetry/telemetry-buffer-flush.task.js +1 -5
  1263. package/dist/telemetry/telemetry-buffer-flush.task.js.map +1 -1
  1264. package/dist/telemetry/telemetry-pulse.task.d.ts +2 -5
  1265. package/dist/telemetry/telemetry-pulse.task.js +7 -4
  1266. package/dist/telemetry/telemetry-pulse.task.js.map +1 -1
  1267. package/dist/user-management/email/node-mailer.js.map +1 -1
  1268. package/dist/user-management/email/templates/migration-findings.handlebars +212 -0
  1269. package/dist/user-management/email/user-management-mailer.d.ts +13 -1
  1270. package/dist/user-management/email/user-management-mailer.js +22 -0
  1271. package/dist/user-management/email/user-management-mailer.js.map +1 -1
  1272. package/dist/utils/container-limits.d.ts +9 -0
  1273. package/dist/utils/container-limits.js +59 -0
  1274. package/dist/utils/container-limits.js.map +1 -0
  1275. package/dist/utils/detect-runtime.d.ts +4 -0
  1276. package/dist/utils/detect-runtime.js +27 -0
  1277. package/dist/utils/detect-runtime.js.map +1 -0
  1278. package/dist/utils/object-to-error.js +1 -1
  1279. package/dist/utils/object-to-error.js.map +1 -1
  1280. package/dist/utils.js +8 -3
  1281. package/dist/utils.js.map +1 -1
  1282. package/dist/webhooks/hitl-interaction-webhooks.js +4 -1
  1283. package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
  1284. package/dist/webhooks/live-webhooks.d.ts +1 -1
  1285. package/dist/webhooks/live-webhooks.js +2 -2
  1286. package/dist/webhooks/live-webhooks.js.map +1 -1
  1287. package/dist/webhooks/test-webhook-registrations.service.d.ts +1 -1
  1288. package/dist/webhooks/waiting-forms.js +3 -2
  1289. package/dist/webhooks/waiting-forms.js.map +1 -1
  1290. package/dist/webhooks/waiting-webhooks.js +3 -0
  1291. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  1292. package/dist/webhooks/webhook-helpers.js +43 -27
  1293. package/dist/webhooks/webhook-helpers.js.map +1 -1
  1294. package/dist/webhooks/webhook-request-sanitizer.js +4 -2
  1295. package/dist/webhooks/webhook-request-sanitizer.js.map +1 -1
  1296. package/dist/webhooks/webhook.types.d.ts +2 -0
  1297. package/dist/workflow-execute-additional-data.js +12 -9
  1298. package/dist/workflow-execute-additional-data.js.map +1 -1
  1299. package/dist/workflow-helpers.js +19 -3
  1300. package/dist/workflow-helpers.js.map +1 -1
  1301. package/dist/workflows/error-workflow-validation.service.d.ts +1 -1
  1302. package/dist/workflows/error-workflow-validation.service.js +2 -2
  1303. package/dist/workflows/error-workflow-validation.service.js.map +1 -1
  1304. package/dist/workflows/publication/format-node-failures.d.ts +4 -0
  1305. package/dist/workflows/publication/format-node-failures.js +6 -0
  1306. package/dist/workflows/publication/format-node-failures.js.map +1 -1
  1307. package/dist/workflows/publication/publication-status-reporter.d.ts +1 -1
  1308. package/dist/workflows/publication/publication-status-reporter.js +9 -6
  1309. package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
  1310. package/dist/workflows/publication/workflow-publication-applier.d.ts +1 -1
  1311. package/dist/workflows/publication/workflow-publication-applier.js +3 -4
  1312. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  1313. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.d.ts +2 -4
  1314. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js +7 -7
  1315. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js.map +1 -1
  1316. package/dist/workflows/publication/workflow-publication-status.service.d.ts +2 -0
  1317. package/dist/workflows/publication/workflow-publication-status.service.js +14 -0
  1318. package/dist/workflows/publication/workflow-publication-status.service.js.map +1 -1
  1319. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -2
  1320. package/dist/workflows/triggers/trigger-execution-context.factory.js +1 -2
  1321. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  1322. package/dist/workflows/workflow-execution.service.d.ts +1 -2
  1323. package/dist/workflows/workflow-execution.service.js +1 -2
  1324. package/dist/workflows/workflow-execution.service.js.map +1 -1
  1325. package/dist/workflows/workflow-finder.service.d.ts +1 -0
  1326. package/dist/workflows/workflow-finder.service.js +2 -1
  1327. package/dist/workflows/workflow-finder.service.js.map +1 -1
  1328. package/dist/workflows/workflow.service.d.ts +1 -4
  1329. package/dist/workflows/workflow.service.ee.d.ts +8 -5
  1330. package/dist/workflows/workflow.service.ee.js +57 -12
  1331. package/dist/workflows/workflow.service.ee.js.map +1 -1
  1332. package/dist/workflows/workflow.service.js +1 -4
  1333. package/dist/workflows/workflow.service.js.map +1 -1
  1334. package/package.json +45 -44
  1335. package/templates/admin-consent-callback.handlebars +19 -0
  1336. package/dist/credentials/executing-user-identifier-proxy.d.ts +0 -7
  1337. package/dist/credentials/executing-user-identifier-proxy.js +0 -25
  1338. package/dist/credentials/executing-user-identifier-proxy.js.map +0 -1
  1339. package/dist/credentials/executing-user-identifier.interface.d.ts +0 -4
  1340. package/dist/credentials/executing-user-identifier.interface.js +0 -3
  1341. package/dist/credentials/executing-user-identifier.interface.js.map +0 -1
  1342. package/dist/executions/execution-redaction-proxy.service.d.ts +0 -7
  1343. package/dist/executions/execution-redaction-proxy.service.js +0 -31
  1344. package/dist/executions/execution-redaction-proxy.service.js.map +0 -1
  1345. package/dist/executions/execution-redaction.d.ts +0 -21
  1346. package/dist/executions/execution-redaction.js +0 -7
  1347. package/dist/executions/execution-redaction.js.map +0 -1
  1348. package/dist/jwks/jwks.registry.d.ts +0 -10
  1349. package/dist/jwks/jwks.registry.js +0 -31
  1350. package/dist/jwks/jwks.registry.js.map +0 -1
  1351. package/dist/jwks/jwks.schemas.d.ts +0 -178
  1352. package/dist/jwks/jwks.schemas.js +0 -31
  1353. package/dist/jwks/jwks.schemas.js.map +0 -1
  1354. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +0 -16
  1355. package/dist/modules/agents/builder/agents-builder-prompts.js +0 -425
  1356. package/dist/modules/agents/builder/agents-builder-prompts.js.map +0 -1
  1357. package/dist/modules/agents/builder/agents-builder.service.d.ts +0 -47
  1358. package/dist/modules/agents/builder/agents-builder.service.js +0 -222
  1359. package/dist/modules/agents/builder/agents-builder.service.js.map +0 -1
  1360. package/dist/modules/agents/builder/errors.d.ts +0 -9
  1361. package/dist/modules/agents/builder/errors.js +0 -22
  1362. package/dist/modules/agents/builder/errors.js.map +0 -1
  1363. package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +0 -1
  1364. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +0 -62
  1365. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +0 -1
  1366. package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +0 -1
  1367. package/dist/modules/agents/builder/prompts/memory.prompt.js +0 -43
  1368. package/dist/modules/agents/builder/prompts/memory.prompt.js.map +0 -1
  1369. package/dist/modules/agents/builder/prompts/planner-todos.prompt.d.ts +0 -2
  1370. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js +0 -22
  1371. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js.map +0 -1
  1372. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +0 -1
  1373. package/dist/modules/agents/builder/prompts/tools.prompt.js +0 -102
  1374. package/dist/modules/agents/builder/prompts/tools.prompt.js.map +0 -1
  1375. package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +0 -1
  1376. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.d.ts +0 -2
  1377. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js.map +0 -1
  1378. package/dist/modules/data-table/middleware/branch-write-access-middleware.d.ts +0 -2
  1379. package/dist/modules/data-table/middleware/branch-write-access-middleware.js +0 -14
  1380. package/dist/modules/data-table/middleware/branch-write-access-middleware.js.map +0 -1
  1381. package/dist/modules/instance-ai/eval/api-docs.d.ts +0 -1
  1382. package/dist/modules/instance-ai/eval/api-docs.js +0 -78
  1383. package/dist/modules/instance-ai/eval/api-docs.js.map +0 -1
  1384. package/dist/modules/instance-ai/instance-ai-credit-display.d.ts +0 -9
  1385. package/dist/modules/instance-ai/instance-ai-credit-display.js +0 -15
  1386. package/dist/modules/instance-ai/instance-ai-credit-display.js.map +0 -1
  1387. package/dist/modules/quick-connect/handlers/firecrawl.handler.d.ts +0 -13
  1388. package/dist/modules/quick-connect/handlers/firecrawl.handler.js +0 -50
  1389. package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +0 -1
  1390. package/dist/modules/quick-connect/handlers/handler.interface.d.ts +0 -9
  1391. package/dist/modules/quick-connect/handlers/handler.interface.js.map +0 -1
  1392. package/dist/modules/quick-connect/quick-connect.config.d.ts +0 -462
  1393. package/dist/modules/quick-connect/quick-connect.config.js +0 -72
  1394. package/dist/modules/quick-connect/quick-connect.config.js.map +0 -1
  1395. package/dist/modules/quick-connect/quick-connect.controller.d.ts +0 -10
  1396. package/dist/modules/quick-connect/quick-connect.controller.js.map +0 -1
  1397. package/dist/modules/quick-connect/quick-connect.errors.d.ts +0 -5
  1398. package/dist/modules/quick-connect/quick-connect.errors.js +0 -12
  1399. package/dist/modules/quick-connect/quick-connect.errors.js.map +0 -1
  1400. package/dist/modules/quick-connect/quick-connect.module.d.ts +0 -49
  1401. package/dist/modules/quick-connect/quick-connect.module.js +0 -36
  1402. package/dist/modules/quick-connect/quick-connect.module.js.map +0 -1
  1403. package/dist/modules/quick-connect/quick-connect.service.d.ts +0 -13
  1404. package/dist/modules/quick-connect/quick-connect.service.js +0 -61
  1405. package/dist/modules/quick-connect/quick-connect.service.js.map +0 -1
  1406. package/dist/modules/workflow-builder/index.d.ts +0 -3
  1407. package/dist/modules/workflow-builder/index.js +0 -10
  1408. package/dist/modules/workflow-builder/index.js.map +0 -1
  1409. package/dist/modules/workflow-builder/workflow-builder-session.entity.d.ts +0 -26
  1410. package/dist/modules/workflow-builder/workflow-builder-session.entity.js +0 -72
  1411. package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +0 -1
  1412. package/dist/modules/workflow-builder/workflow-builder-session.repository.d.ts +0 -10
  1413. package/dist/modules/workflow-builder/workflow-builder-session.repository.js +0 -79
  1414. package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +0 -1
  1415. package/dist/modules/workflow-builder/workflow-builder.module.d.ts +0 -4
  1416. package/dist/modules/workflow-builder/workflow-builder.module.js.map +0 -1
  1417. package/dist/oauth/oauth-jwe-service.proxy.d.ts +0 -19
  1418. package/dist/oauth/oauth-jwe-service.proxy.js +0 -32
  1419. package/dist/oauth/oauth-jwe-service.proxy.js.map +0 -1
  1420. package/dist/public-api/v1/handlers/decorator-routed.handler.d.ts +0 -2
  1421. package/dist/public-api/v1/handlers/decorator-routed.handler.js +0 -10
  1422. package/dist/public-api/v1/handlers/decorator-routed.handler.js.map +0 -1
  1423. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +0 -9
  1424. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +0 -113
  1425. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +0 -1
  1426. package/dist/public-api/v1/shared/handler.types.d.ts +0 -9
  1427. package/dist/public-api/v1/shared/handler.types.js.map +0 -1
  1428. package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +0 -31
  1429. package/dist/public-api/v1/shared/middlewares/global.middleware.js +0 -126
  1430. package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +0 -1
  1431. package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +0 -5
  1432. package/dist/public-api/v1/shared/public-api-scope-lookup.js +0 -60
  1433. package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +0 -1
  1434. package/dist/services/auth-strategy.registry.d.ts +0 -8
  1435. package/dist/services/auth-strategy.registry.js +0 -44
  1436. package/dist/services/auth-strategy.registry.js.map +0 -1
  1437. package/dist/services/auth-strategy.types.d.ts +0 -10
  1438. package/dist/services/auth-strategy.types.js.map +0 -1
  1439. package/dist/services/instance-activation.service.d.ts +0 -10
  1440. package/dist/services/instance-activation.service.js +0 -48
  1441. package/dist/services/instance-activation.service.js.map +0 -1
  1442. package/dist/services/instance-registry-proxy.service.d.ts +0 -11
  1443. package/dist/services/instance-registry-proxy.service.js +0 -33
  1444. package/dist/services/instance-registry-proxy.service.js.map +0 -1
  1445. package/dist/services/jwt.service.d.ts +0 -24
  1446. package/dist/services/jwt.service.js +0 -104
  1447. package/dist/services/jwt.service.js.map +0 -1
  1448. package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -33
  1449. package/dist/services/oauth-token-verifier-proxy.service.js +0 -36
  1450. package/dist/services/oauth-token-verifier-proxy.service.js.map +0 -1
  1451. package/dist/services/oauth2-flow-proxy.service.d.ts +0 -13
  1452. package/dist/services/oauth2-flow-proxy.service.js +0 -39
  1453. package/dist/services/oauth2-flow-proxy.service.js.map +0 -1
  1454. package/dist/services/protected-resource.registry.d.ts +0 -25
  1455. package/dist/services/protected-resource.registry.js +0 -124
  1456. package/dist/services/protected-resource.registry.js.map +0 -1
  1457. package/dist/services/role-mapping-proxy.service.d.ts +0 -53
  1458. package/dist/services/role-mapping-proxy.service.js +0 -26
  1459. package/dist/services/role-mapping-proxy.service.js.map +0 -1
  1460. package/dist/services/runtime-credential-proxy.service.d.ts +0 -9
  1461. package/dist/services/runtime-credential-proxy.service.js +0 -29
  1462. package/dist/services/runtime-credential-proxy.service.js.map +0 -1
  1463. package/dist/services/token-purposes.d.ts +0 -21
  1464. package/dist/services/token-purposes.js +0 -27
  1465. package/dist/services/token-purposes.js.map +0 -1
  1466. package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +0 -9
  1467. package/dist/workflows/restricted-node-types-provider-proxy.service.js +0 -26
  1468. package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +0 -1
  1469. package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +0 -24
  1470. package/dist/workflows/workflow-mutation-hooks-proxy.service.js +0 -38
  1471. package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +0 -1
  1472. package/dist/workflows/workflow-publish-guard-proxy.service.d.ts +0 -8
  1473. package/dist/workflows/workflow-publish-guard-proxy.service.js +0 -26
  1474. package/dist/workflows/workflow-publish-guard-proxy.service.js.map +0 -1
  1475. package/dist/workflows/workflow-published-data.service.d.ts +0 -19
  1476. package/dist/workflows/workflow-published-data.service.js +0 -70
  1477. package/dist/workflows/workflow-published-data.service.js.map +0 -1
  1478. /package/dist/modules/breaking-changes/migrations/{ai-transform-to-code.migration.js → node-removals/ai-transform-to-code.migration.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAgentRuntimeAssets = getAgentRuntimeAssets;
4
- function getAgentRuntimeAssets(agent) {
4
+ function getAgentRuntimeAssets(agent, skills) {
5
5
  const toolDescriptors = {};
6
6
  const toolCodeByName = {};
7
7
  for (const [toolId, toolEntry] of Object.entries(agent.tools ?? {})) {
8
8
  toolDescriptors[toolId] = toolEntry.descriptor;
9
9
  toolCodeByName[toolEntry.descriptor.name] = toolEntry.code;
10
10
  }
11
- return { toolDescriptors, toolCodeByName, skills: agent.skills ?? {} };
11
+ return { toolDescriptors, toolCodeByName, skills };
12
12
  }
13
13
  //# sourceMappingURL=agent-runtime-assets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-runtime-assets.js","sourceRoot":"","sources":["../../../../src/modules/agents/utils/agent-runtime-assets.ts"],"names":[],"mappings":";;;AAOA,+BAAsC,KAAqD;IAC1F,MAAM,eAAe,GAAmC,EAAE,CAAC;IAC3D,MAAM,cAAc,GAA2B,EAAE,CAAC;IAElD,KAAK,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC;QACrE,eAAe,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC;QAC/C,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC;IAC5D,CAAC;IAED,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;AACxE,CAAC"}
1
+ {"version":3,"file":"agent-runtime-assets.js","sourceRoot":"","sources":["../../../../src/modules/agents/utils/agent-runtime-assets.ts"],"names":[],"mappings":";;;AASA,+BACC,KAA0C,EAC1C,MAAkC;IAElC,MAAM,eAAe,GAAmC,EAAE,CAAC;IAC3D,MAAM,cAAc,GAA2B,EAAE,CAAC;IAElD,KAAK,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC;QACrE,eAAe,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC;QAC/C,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC;IAC5D,CAAC;IAED,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC;AACpD,CAAC"}
@@ -2,9 +2,11 @@ import type { AgentExecutionThread } from '../entities/agent-execution-thread.en
2
2
  export type AgentSessionMode = 'new' | 'existing';
3
3
  export declare const PREVIEW_THREAD_SOURCES: readonly ['', 'chat', 'n8n_chat'];
4
4
  export declare const N8N_CHAT_PRODUCTION_SOURCE: 'n8n_chat_production';
5
- export type AgentChatSurface = 'preview' | 'n8n-chat';
5
+ export declare const SYSTEM_CHAT_SOURCE: 'system_chat';
6
+ export type AgentChatSurface = 'preview' | 'n8n-chat' | 'system';
6
7
  export declare function chatSurfaceMemoryResourceId(surface: AgentChatSurface, userId: string): string;
7
8
  export declare function threadBelongsTo(thread: AgentExecutionThread, projectId: string, agentId: string, userId: string): boolean;
8
9
  export declare function canContinueThreadInPreview(thread: AgentExecutionThread, userId: string, source?: string | null): boolean;
9
10
  export declare function canContinueThreadInN8nChat(thread: AgentExecutionThread, userId: string, source?: string | null): boolean;
11
+ export declare function canContinueSystemThread(thread: AgentExecutionThread, userId: string, source?: string | null): boolean;
10
12
  export declare function canUseTopLevelDraftThread(thread: AgentExecutionThread, userId: string): boolean;
@@ -1,18 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.N8N_CHAT_PRODUCTION_SOURCE = exports.PREVIEW_THREAD_SOURCES = void 0;
3
+ exports.SYSTEM_CHAT_SOURCE = exports.N8N_CHAT_PRODUCTION_SOURCE = exports.PREVIEW_THREAD_SOURCES = void 0;
4
4
  exports.chatSurfaceMemoryResourceId = chatSurfaceMemoryResourceId;
5
5
  exports.threadBelongsTo = threadBelongsTo;
6
6
  exports.canContinueThreadInPreview = canContinueThreadInPreview;
7
7
  exports.canContinueThreadInN8nChat = canContinueThreadInN8nChat;
8
+ exports.canContinueSystemThread = canContinueSystemThread;
8
9
  exports.canUseTopLevelDraftThread = canUseTopLevelDraftThread;
9
10
  const agent_memory_scope_1 = require("./agent-memory-scope");
10
11
  exports.PREVIEW_THREAD_SOURCES = ['', 'chat', 'n8n_chat'];
11
12
  exports.N8N_CHAT_PRODUCTION_SOURCE = 'n8n_chat_production';
13
+ exports.SYSTEM_CHAT_SOURCE = 'system_chat';
12
14
  function chatSurfaceMemoryResourceId(surface, userId) {
13
- return surface === 'n8n-chat'
14
- ? (0, agent_memory_scope_1.productionChatMemoryResourceId)(userId)
15
- : (0, agent_memory_scope_1.draftChatMemoryResourceId)(userId);
15
+ switch (surface) {
16
+ case 'n8n-chat':
17
+ return (0, agent_memory_scope_1.productionChatMemoryResourceId)(userId);
18
+ case 'system':
19
+ return (0, agent_memory_scope_1.systemChatMemoryResourceId)(userId);
20
+ case 'preview':
21
+ return (0, agent_memory_scope_1.draftChatMemoryResourceId)(userId);
22
+ }
16
23
  }
17
24
  function threadBelongsTo(thread, projectId, agentId, userId) {
18
25
  return (thread.projectId === projectId &&
@@ -30,6 +37,11 @@ function canContinueThreadInN8nChat(thread, userId, source) {
30
37
  thread.taskId === null &&
31
38
  source === exports.N8N_CHAT_PRODUCTION_SOURCE);
32
39
  }
40
+ function canContinueSystemThread(thread, userId, source) {
41
+ return (canUseTopLevelDraftThread(thread, userId) &&
42
+ thread.taskId === null &&
43
+ source === exports.SYSTEM_CHAT_SOURCE);
44
+ }
33
45
  function canUseTopLevelDraftThread(thread, userId) {
34
46
  return (thread.accessScope === 'user' && thread.ownerId === userId && thread.parentThreadId === null);
35
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agent-thread-access.js","sourceRoot":"","sources":["../../../../src/modules/agents/utils/agent-thread-access.ts"],"names":[],"mappings":";;;;;;;;AACA,6DAAiG;AAIpF,QAAA,sBAAsB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,CAAU,CAAC;AAC3D,QAAA,0BAA0B,GAAG,qBAA8B,CAAC;AAMzE,qCAA4C,OAAyB,EAAE,MAAc;IACpF,OAAO,OAAO,KAAK,UAAU;QAC5B,CAAC,CAAC,IAAA,mDAA8B,EAAC,MAAM,CAAC;QACxC,CAAC,CAAC,IAAA,8CAAyB,EAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,yBACC,MAA4B,EAC5B,SAAiB,EACjB,OAAe,EACf,MAAc;IAEd,OAAO,CACN,MAAM,CAAC,SAAS,KAAK,SAAS;QAC9B,MAAM,CAAC,OAAO,KAAK,OAAO;QAC1B,CAAC,MAAM,CAAC,WAAW,KAAK,SAAS;YAChC,CAAC,MAAM,CAAC,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,OAAO,KAAK,IAAI,IAAI,MAAM,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CACzF,CAAC;AACH,CAAC;AAED,oCACC,MAA4B,EAC5B,MAAc,EACd,MAAsB;IAEtB,OAAO,CACN,yBAAyB,CAAC,MAAM,EAAE,MAAM,CAAC;QACzC,MAAM,CAAC,MAAM,KAAK,IAAI;QACtB,QAAA,sBAAsB,CAAC,IAAI,CAC1B,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CACzE,CACD,CAAC;AACH,CAAC;AAED,oCACC,MAA4B,EAC5B,MAAc,EACd,MAAsB;IAEtB,OAAO,CACN,yBAAyB,CAAC,MAAM,EAAE,MAAM,CAAC;QACzC,MAAM,CAAC,MAAM,KAAK,IAAI;QACtB,MAAM,KAAK,QAAA,0BAA0B,CACrC,CAAC;AACH,CAAC;AAED,mCAA0C,MAA4B,EAAE,MAAc;IACrF,OAAO,CACN,MAAM,CAAC,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,OAAO,KAAK,MAAM,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,CAC5F,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"agent-thread-access.js","sourceRoot":"","sources":["../../../../src/modules/agents/utils/agent-thread-access.ts"],"names":[],"mappings":";;;;;;;;;AACA,6DAI8B;AAIjB,QAAA,sBAAsB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,CAAU,CAAC;AAC3D,QAAA,0BAA0B,GAAG,qBAA8B,CAAC;AAE5D,QAAA,kBAAkB,GAAG,aAAsB,CAAC;AASzD,qCAA4C,OAAyB,EAAE,MAAc;IACpF,QAAQ,OAAO,EAAE,CAAC;QACjB,KAAK,UAAU;YACd,OAAO,IAAA,mDAA8B,EAAC,MAAM,CAAC,CAAC;QAC/C,KAAK,QAAQ;YACZ,OAAO,IAAA,+CAA0B,EAAC,MAAM,CAAC,CAAC;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AM,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,CAC5F,CAAC;AACH,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { Agent } from '../entities/agent.entity';
1
+ import type { ProjectAgent } from '../entities/agent.entity';
2
2
  import type { AgentRepository } from '../repositories/agent.repository';
3
- export declare function getAgentOrThrow(repository: AgentRepository, agentId: string, projectId: string, message?: string): Promise<Agent>;
3
+ export declare function getAgentOrThrow(repository: AgentRepository, agentId: string, projectId: string, message?: string): Promise<ProjectAgent>;
@@ -1,9 +1,11 @@
1
- import { AssignMigrationOwnerDto, BreakingChangeLightReportResult, BreakingChangeReportQueryDto, BreakingChangeRuleDetailResult, MigrationWorkflowOwnerResponse, UpdateMigrationFindingStatusRequestDto, UpdateMigrationFindingStatusesRequestDto, WorkflowMigrationResult } from '@n8n/api-types';
2
- import { EventService, WorkflowSharingService } from '@n8n/backend-services';
1
+ import { AssignMigrationOwnerDto, BreakingChangeLightReportResult, BreakingChangeReportQueryDto, BreakingChangeRuleDetailResult, MigrationNotifyResult, MigrationOwnerCandidate, MigrationWorkflowOwnerResponse, NotifyMigrationOwnersRequestDto, UpdateMigrationFindingStatusRequestDto, UpdateMigrationFindingStatusesRequestDto, WorkflowMigrationResult } from '@n8n/api-types';
2
+ import { EventService } from '@n8n/backend-services';
3
3
  import { AuthenticatedRequest } from '@n8n/db';
4
4
  import { Response } from 'express';
5
+ import { WorkflowFinderService } from '../../workflows/workflow-finder.service';
5
6
  import { BreakingChangeMigrationService } from './breaking-changes.migration.service';
6
7
  import { RuleRegistry } from './breaking-changes.rule-registry.service';
8
+ import { MigrationFindingNotificationService } from './notifications/migration-finding-notification.service';
7
9
  import { MigrationOwnerAssignmentService } from './owners/migration-owner-assignment.service';
8
10
  import { MigrationFindingQueryService } from './query/migration-finding-query.service';
9
11
  import { MigrationFindingSyncService } from './sync/migration-finding-sync.service';
@@ -14,17 +16,22 @@ export declare class BreakingChangesController {
14
16
  private readonly queryService;
15
17
  private readonly ruleRegistry;
16
18
  private readonly triageService;
17
- private readonly workflowSharingService;
18
19
  private readonly eventService;
19
20
  private readonly ownerAssignmentService;
20
- constructor(migrationService: BreakingChangeMigrationService, syncService: MigrationFindingSyncService, queryService: MigrationFindingQueryService, ruleRegistry: RuleRegistry, triageService: MigrationFindingTriageService, workflowSharingService: WorkflowSharingService, eventService: EventService, ownerAssignmentService: MigrationOwnerAssignmentService);
21
+ private readonly notificationService;
22
+ private readonly workflowFinderService;
23
+ constructor(migrationService: BreakingChangeMigrationService, syncService: MigrationFindingSyncService, queryService: MigrationFindingQueryService, ruleRegistry: RuleRegistry, triageService: MigrationFindingTriageService, eventService: EventService, ownerAssignmentService: MigrationOwnerAssignmentService, notificationService: MigrationFindingNotificationService, workflowFinderService: WorkflowFinderService);
21
24
  private scopeFor;
25
+ private editableWorkflowIds;
26
+ private assertCanEdit;
22
27
  getDetectionReport(req: AuthenticatedRequest, _res: Response, query: BreakingChangeReportQueryDto): Promise<BreakingChangeLightReportResult>;
23
28
  regenerate(req: AuthenticatedRequest, _res: Response, query: BreakingChangeReportQueryDto): Promise<BreakingChangeLightReportResult>;
24
29
  getDetectionReportForRule(req: AuthenticatedRequest, _res: Response, ruleId: string): Promise<BreakingChangeRuleDetailResult>;
25
- updateFindingStatuses(_req: AuthenticatedRequest, _res: Response, ruleId: string, body: UpdateMigrationFindingStatusesRequestDto): Promise<void>;
26
- updateFindingStatus(_req: AuthenticatedRequest, _res: Response, ruleId: string, workflowId: string, body: UpdateMigrationFindingStatusRequestDto): Promise<void>;
30
+ updateFindingStatuses(req: AuthenticatedRequest, _res: Response, ruleId: string, body: UpdateMigrationFindingStatusesRequestDto): Promise<void>;
31
+ notifyOwners(req: AuthenticatedRequest, _res: Response, ruleId: string, body: NotifyMigrationOwnersRequestDto): Promise<MigrationNotifyResult>;
32
+ updateFindingStatus(req: AuthenticatedRequest, _res: Response, ruleId: string, workflowId: string, body: UpdateMigrationFindingStatusRequestDto): Promise<void>;
33
+ listOwnerCandidates(req: AuthenticatedRequest, _res: Response, workflowId: string): Promise<MigrationOwnerCandidate[]>;
27
34
  assignOwner(req: AuthenticatedRequest, _res: Response, workflowId: string, body: AssignMigrationOwnerDto): Promise<MigrationWorkflowOwnerResponse>;
28
- unassignOwner(_req: AuthenticatedRequest, _res: Response, workflowId: string): Promise<MigrationWorkflowOwnerResponse>;
35
+ unassignOwner(req: AuthenticatedRequest, _res: Response, workflowId: string): Promise<MigrationWorkflowOwnerResponse>;
29
36
  migrateWorkflow(req: AuthenticatedRequest, _res: Response, ruleId: string, workflowId: string): Promise<WorkflowMigrationResult>;
30
37
  }
@@ -18,8 +18,10 @@ const backend_services_1 = require("@n8n/backend-services");
18
18
  const decorators_1 = require("@n8n/decorators");
19
19
  const errors_1 = require("@n8n/errors");
20
20
  const permissions_1 = require("@n8n/permissions");
21
+ const workflow_finder_service_1 = require("../../workflows/workflow-finder.service");
21
22
  const breaking_changes_migration_service_1 = require("./breaking-changes.migration.service");
22
23
  const breaking_changes_rule_registry_service_1 = require("./breaking-changes.rule-registry.service");
24
+ const migration_finding_notification_service_1 = require("./notifications/migration-finding-notification.service");
23
25
  const migration_owner_assignment_service_1 = require("./owners/migration-owner-assignment.service");
24
26
  const migration_finding_query_service_1 = require("./query/migration-finding-query.service");
25
27
  const migration_finding_sync_service_1 = require("./sync/migration-finding-sync.service");
@@ -27,23 +29,35 @@ const migration_finding_triage_service_1 = require("./triage/migration-finding-t
27
29
  const types_1 = require("./types");
28
30
  const DEFAULT_TARGET_VERSION = 'v2';
29
31
  let BreakingChangesController = class BreakingChangesController {
30
- constructor(migrationService, syncService, queryService, ruleRegistry, triageService, workflowSharingService, eventService, ownerAssignmentService) {
32
+ constructor(migrationService, syncService, queryService, ruleRegistry, triageService, eventService, ownerAssignmentService, notificationService, workflowFinderService) {
31
33
  this.migrationService = migrationService;
32
34
  this.syncService = syncService;
33
35
  this.queryService = queryService;
34
36
  this.ruleRegistry = ruleRegistry;
35
37
  this.triageService = triageService;
36
- this.workflowSharingService = workflowSharingService;
37
38
  this.eventService = eventService;
38
39
  this.ownerAssignmentService = ownerAssignmentService;
40
+ this.notificationService = notificationService;
41
+ this.workflowFinderService = workflowFinderService;
39
42
  }
40
43
  async scopeFor(user) {
41
44
  if ((0, permissions_1.hasGlobalScope)(user, 'workflow:update'))
42
45
  return { kind: 'instance' };
43
- const workflowIds = await this.workflowSharingService.getSharedWorkflowIdsForScopes(user, [
46
+ const workflowIds = await this.workflowFinderService.findAllWorkflowIdsForUser(user, [
44
47
  'workflow:update',
45
48
  ]);
46
- return { kind: 'workflows', workflowIds: [...new Set(workflowIds)] };
49
+ return { kind: 'workflows', workflowIds };
50
+ }
51
+ async editableWorkflowIds(user, workflowIds) {
52
+ if ((0, permissions_1.hasGlobalScope)(user, 'workflow:update'))
53
+ return workflowIds;
54
+ const editable = await this.workflowFinderService.findWorkflowIdsWithScopeForUser(workflowIds, user, ['workflow:update']);
55
+ return workflowIds.filter((workflowId) => editable.has(workflowId));
56
+ }
57
+ async assertCanEdit(user, workflowId) {
58
+ const [editable] = await this.editableWorkflowIds(user, [workflowId]);
59
+ if (!editable)
60
+ throw new errors_1.NotFoundError(breaking_changes_migration_service_1.WORKFLOW_NOT_EDITABLE_MESSAGE);
47
61
  }
48
62
  async getDetectionReport(req, _res, query) {
49
63
  const version = query.version ?? DEFAULT_TARGET_VERSION;
@@ -84,17 +98,30 @@ let BreakingChangesController = class BreakingChangesController {
84
98
  await this.syncService.syncIfStale(version);
85
99
  return await this.queryService.getRuleFindings(version, ruleId, scope);
86
100
  }
87
- async updateFindingStatuses(_req, _res, ruleId, body) {
88
- await this.triageService.setStatuses(ruleId, body.workflowIds, body.status);
101
+ async updateFindingStatuses(req, _res, ruleId, body) {
102
+ const workflowIds = await this.editableWorkflowIds(req.user, body.workflowIds);
103
+ if (workflowIds.length === 0)
104
+ return;
105
+ await this.triageService.setStatuses(ruleId, workflowIds, body.status);
106
+ }
107
+ async notifyOwners(req, _res, ruleId, body) {
108
+ return await this.notificationService.notifyOwners(ruleId, body.workflowIds, req.user);
89
109
  }
90
- async updateFindingStatus(_req, _res, ruleId, workflowId, body) {
110
+ async updateFindingStatus(req, _res, ruleId, workflowId, body) {
111
+ await this.assertCanEdit(req.user, workflowId);
91
112
  await this.triageService.setStatus(ruleId, workflowId, body.status);
92
113
  }
114
+ async listOwnerCandidates(req, _res, workflowId) {
115
+ await this.assertCanEdit(req.user, workflowId);
116
+ return await this.ownerAssignmentService.candidates(workflowId);
117
+ }
93
118
  async assignOwner(req, _res, workflowId, body) {
119
+ await this.assertCanEdit(req.user, workflowId);
94
120
  const owner = await this.ownerAssignmentService.assign(workflowId, body.userId, req.user);
95
121
  return { owner };
96
122
  }
97
- async unassignOwner(_req, _res, workflowId) {
123
+ async unassignOwner(req, _res, workflowId) {
124
+ await this.assertCanEdit(req.user, workflowId);
98
125
  const owner = await this.ownerAssignmentService.unassign(workflowId);
99
126
  return { owner };
100
127
  }
@@ -129,7 +156,7 @@ __decorate([
129
156
  ], BreakingChangesController.prototype, "getDetectionReportForRule", null);
130
157
  __decorate([
131
158
  (0, decorators_1.Patch)('/report/:ruleId/workflows'),
132
- (0, decorators_1.GlobalScope)('breakingChanges:migrate'),
159
+ (0, decorators_1.GlobalScope)('breakingChanges:list'),
133
160
  __param(2, (0, decorators_1.Param)('ruleId')),
134
161
  __param(3, decorators_1.Body),
135
162
  __metadata("design:type", Function),
@@ -137,18 +164,35 @@ __decorate([
137
164
  __metadata("design:returntype", Promise)
138
165
  ], BreakingChangesController.prototype, "updateFindingStatuses", null);
139
166
  __decorate([
140
- (0, decorators_1.Patch)('/report/:ruleId/workflows/:workflowId'),
167
+ (0, decorators_1.Post)('/report/:ruleId/workflows/notify'),
141
168
  (0, decorators_1.GlobalScope)('breakingChanges:migrate'),
142
169
  __param(2, (0, decorators_1.Param)('ruleId')),
170
+ __param(3, decorators_1.Body),
171
+ __metadata("design:type", Function),
172
+ __metadata("design:paramtypes", [Object, Object, String, api_types_1.NotifyMigrationOwnersRequestDto]),
173
+ __metadata("design:returntype", Promise)
174
+ ], BreakingChangesController.prototype, "notifyOwners", null);
175
+ __decorate([
176
+ (0, decorators_1.Patch)('/report/:ruleId/workflows/:workflowId'),
177
+ (0, decorators_1.GlobalScope)('breakingChanges:list'),
178
+ __param(2, (0, decorators_1.Param)('ruleId')),
143
179
  __param(3, (0, decorators_1.Param)('workflowId')),
144
180
  __param(4, decorators_1.Body),
145
181
  __metadata("design:type", Function),
146
182
  __metadata("design:paramtypes", [Object, Object, String, String, api_types_1.UpdateMigrationFindingStatusRequestDto]),
147
183
  __metadata("design:returntype", Promise)
148
184
  ], BreakingChangesController.prototype, "updateFindingStatus", null);
185
+ __decorate([
186
+ (0, decorators_1.Get)('/workflows/:workflowId/owner/candidates'),
187
+ (0, decorators_1.GlobalScope)('breakingChanges:list'),
188
+ __param(2, (0, decorators_1.Param)('workflowId')),
189
+ __metadata("design:type", Function),
190
+ __metadata("design:paramtypes", [Object, Object, String]),
191
+ __metadata("design:returntype", Promise)
192
+ ], BreakingChangesController.prototype, "listOwnerCandidates", null);
149
193
  __decorate([
150
194
  (0, decorators_1.Put)('/workflows/:workflowId/owner'),
151
- (0, decorators_1.GlobalScope)('breakingChanges:migrate'),
195
+ (0, decorators_1.GlobalScope)('breakingChanges:list'),
152
196
  __param(2, (0, decorators_1.Param)('workflowId')),
153
197
  __param(3, decorators_1.Body),
154
198
  __metadata("design:type", Function),
@@ -157,7 +201,7 @@ __decorate([
157
201
  ], BreakingChangesController.prototype, "assignOwner", null);
158
202
  __decorate([
159
203
  (0, decorators_1.Delete)('/workflows/:workflowId/owner'),
160
- (0, decorators_1.GlobalScope)('breakingChanges:migrate'),
204
+ (0, decorators_1.GlobalScope)('breakingChanges:list'),
161
205
  __param(2, (0, decorators_1.Param)('workflowId')),
162
206
  __metadata("design:type", Function),
163
207
  __metadata("design:paramtypes", [Object, Object, String]),
@@ -165,7 +209,7 @@ __decorate([
165
209
  ], BreakingChangesController.prototype, "unassignOwner", null);
166
210
  __decorate([
167
211
  (0, decorators_1.Post)('/report/:ruleId/workflows/:workflowId/migrate'),
168
- (0, decorators_1.GlobalScope)('breakingChanges:migrate'),
212
+ (0, decorators_1.GlobalScope)('breakingChanges:list'),
169
213
  __param(2, (0, decorators_1.Param)('ruleId')),
170
214
  __param(3, (0, decorators_1.Param)('workflowId')),
171
215
  __metadata("design:type", Function),
@@ -174,6 +218,6 @@ __decorate([
174
218
  ], BreakingChangesController.prototype, "migrateWorkflow", null);
175
219
  exports.BreakingChangesController = BreakingChangesController = __decorate([
176
220
  (0, decorators_1.RestController)('/breaking-changes'),
177
- __metadata("design:paramtypes", [breaking_changes_migration_service_1.BreakingChangeMigrationService, migration_finding_sync_service_1.MigrationFindingSyncService, migration_finding_query_service_1.MigrationFindingQueryService, breaking_changes_rule_registry_service_1.RuleRegistry, migration_finding_triage_service_1.MigrationFindingTriageService, backend_services_1.WorkflowSharingService, backend_services_1.EventService, migration_owner_assignment_service_1.MigrationOwnerAssignmentService])
221
+ __metadata("design:paramtypes", [breaking_changes_migration_service_1.BreakingChangeMigrationService, migration_finding_sync_service_1.MigrationFindingSyncService, migration_finding_query_service_1.MigrationFindingQueryService, breaking_changes_rule_registry_service_1.RuleRegistry, migration_finding_triage_service_1.MigrationFindingTriageService, backend_services_1.EventService, migration_owner_assignment_service_1.MigrationOwnerAssignmentService, migration_finding_notification_service_1.MigrationFindingNotificationService, workflow_finder_service_1.WorkflowFinderService])
178
222
  ], BreakingChangesController);
179
223
  //# sourceMappingURL=breaking-changes.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"breaking-changes.controller.js","sourceRoot":"","sources":["../../../src/modules/breaking-changes/breaking-changes.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAUwB;AACxB,4DAA6E;AAE7E,gDAWyB;AACzB,wCAA4D;AAC5D,kDAAkD;AAGlD,6FAAsF;AACtF,qGAAwE;AACxE,oGAA8F;AAC9F,6FAGiD;AACjD,0FAAoF;AACpF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AAC,CAAA;;;;8DAIpB;AAQK;IAFL,IAAA,iBAAI,EAAC,+CAA+C,CAAC;IACrD,IAAA,wBAAW,EAAC,yBAAyB,CAAC;IAIrC,WAAA,IAAA,kBAAK,EAAC,QAAQ,CAAC,CAAA;IACf,WAAA,IAAA,kBAAK,EAAC,YAAY,CAAC,CAAA;;;;gEAGpB;oCAlKW,yBAAyB;IADrC,IAAA,2BAAc,EAAC,mBAAmB,CAAC;qCAGC,mEAA8B,EACnC,4DAA2B,EAC1B,8DAA4B,EAC5B,qDAAY,EACX,gEAA6B,EACpB,yCAAsB,EAChC,+BAAY,EACF,oEAA+B;GAT7D,yBAAyB,CAmKrC"}
1
+ {"version":3,"file":"breaking-changes.controller.js","sourceRoot":"","sources":["../../../src/modules/breaking-changes/breaking-changes.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAawB;AACxB,4DAAqD;AAErD,gDAWyB;AACzB,wCAA4D;AAC5D,kDAAkD;AAGlD,iFAA4E;AAE5E,6FAG8C;AAC9C,qGAAwE;AACxE,mHAA6G;AAC7G,oGAA8F;AAC9F,6FAGiD;AACjD,0FAAoF;AACpF,gGAA0F;AAC1F,mCAA8C;AAG9C,MAAM,sBAAsB,GAA0B,IAAI,CAAC;AAGpD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACrC,YACkB,gBAAgD,EAChD,WAAwC,EACxC,YAA0C,EAC1C,YAA0B,EAC1B,aAA4C,EAC5C,YAA0B,EAC1B,sBAAuD,EACvD,mBAAwD,EACxD,qBAA4C;gCAR5C,gBAAgB;2BAChB,WAAW;4BACX,YAAY;4BACZ,YAAY;6BACZ,aAAa;4BACb,YAAY;sCACZ,sBAAsB;mCACtB,mBAAmB;qCACnB,qBAAqB;IACpC,CAAC;IAMI,KAAK,CAAC,QAAQ,CAAC,IAAU;QAChC,IAAI,IAAA,4BAAc,EAAC,IAAI,EAAE,iBAAiB,CAAC;YAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAA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IlC,WAAA,IAAA,kBAAK,EAAC,YAAY,CAAC,CAAA;;;;8DAKpB;AASK;IAFL,IAAA,iBAAI,EAAC,+CAA+C,CAAC;IACrD,IAAA,wBAAW,EAAC,sBAAsB,CAAC;IAIlC,WAAA,IAAA,kBAAK,EAAC,QAAQ,CAAC,CAAA;IACf,WAAA,IAAA,kBAAK,EAAC,YAAY,CAAC,CAAA;;;;gEAGpB;oCAvNW,yBAAyB;IADrC,IAAA,2BAAc,EAAC,mBAAmB,CAAC;qCAGC,mEAA8B,EACnC,4DAA2B,EAC1B,8DAA4B,EAC5B,qDAAY,EACX,gEAA6B,EAC9B,+BAAY,EACF,oEAA+B,EAClC,4EAAmC,EACjC,+CAAqB;GAVlD,yBAAyB,CAwNrC"}
@@ -9,6 +9,7 @@ import { MigrationRegistry } from './breaking-changes.migration-registry.service
9
9
  import { RuleRegistry } from './breaking-changes.rule-registry.service';
10
10
  import { WorkflowMigrationNodeError } from './migrations/node-migration';
11
11
  export { WorkflowMigrationNodeError };
12
+ export declare const WORKFLOW_NOT_EDITABLE_MESSAGE = "Workflow not found, or you do not have permission to update it.";
12
13
  export declare class BreakingChangeMigrationService {
13
14
  private readonly ruleRegistry;
14
15
  private readonly migrationRegistry;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BreakingChangeMigrationService = exports.WorkflowMigrationNodeError = void 0;
12
+ exports.BreakingChangeMigrationService = exports.WORKFLOW_NOT_EDITABLE_MESSAGE = exports.WorkflowMigrationNodeError = void 0;
13
13
  const backend_common_1 = require("@n8n/backend-common");
14
14
  const di_1 = require("@n8n/di");
15
15
  const n8n_workflow_1 = require("n8n-workflow");
@@ -23,6 +23,7 @@ const breaking_changes_rule_registry_service_1 = require("./breaking-changes.rul
23
23
  const group_nodes_by_type_1 = require("./group-nodes-by-type");
24
24
  const node_migration_1 = require("./migrations/node-migration");
25
25
  Object.defineProperty(exports, "WorkflowMigrationNodeError", { enumerable: true, get: function () { return node_migration_1.WorkflowMigrationNodeError; } });
26
+ exports.WORKFLOW_NOT_EDITABLE_MESSAGE = 'Workflow not found, or you do not have permission to update it.';
26
27
  let BreakingChangeMigrationService = class BreakingChangeMigrationService {
27
28
  constructor(ruleRegistry, migrationRegistry, workflowFinderService, workflowService, workflowValidationService, nodeTypes, logger) {
28
29
  this.ruleRegistry = ruleRegistry;
@@ -47,7 +48,7 @@ let BreakingChangeMigrationService = class BreakingChangeMigrationService {
47
48
  'workflow:update',
48
49
  ]);
49
50
  if (!workflow) {
50
- throw new errors_1.NotFoundError('You do not have permission to update this workflow. Ask the owner to share it with you.');
51
+ throw new errors_1.NotFoundError(exports.WORKFLOW_NOT_EDITABLE_MESSAGE);
51
52
  }
52
53
  const wasPublishedVersion = !!workflow.activeVersionId && workflow.activeVersionId === workflow.versionId;
53
54
  const detection = await rule.detectWorkflow(workflow, (0, group_nodes_by_type_1.groupNodesByType)(workflow.nodes));
@@ -1 +1 @@
1
- {"version":3,"file":"breaking-changes.migration.service.js","sourceRoot":"","sources":["../../../src/modules/breaking-changes/breaking-changes.migration.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wDAA6C;AAE7C,gCAAkC;AAClC,+CAAyD;AAGzD,wCAA6D;AAC7D,6CAAyC;AACzC,iFAA4E;AAC5E,yFAAoF;AACpF,mEAA+D;AAE/D,+GAAkF;AAClF,qGAAwE;AACxE,+DAAyD;AAMzD,gEAA8F;2GAAhE,2CAA0B;AAKjD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAC1C,YACkB,YAA0B,EAC1B,iBAAoC,EACpC,qBAA4C,EAC5C,eAAgC,EAChC,yBAAoD,EACpD,SAAoB,EACpB,MAAc;4BANd,YAAY;iCACZ,iBAAiB;qCACjB,qBAAqB;+BACrB,eAAe;yCACf,yBAAyB;yBACzB,SAAS;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GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;YAGtD,OAAO;gBACN,GAAG,IAAI;gBACP,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI;gBACtB,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,WAAW;gBACpC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU;aAClB,CAAC;QACnB,CAAC,CAAC,CAAC;QAEH,OAAO;YACN,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,eAAe;YACf,QAAQ;YACR,KAAK;SACL,CAAC;IACH,CAAC;IAGO,sBAAsB,CAC7B,SAA4B,EAC5B,QAAwB,EACxB,eAA4B;QAE5B,IAAI,CAAC;YACJ,OAAO,SAAS,CAAC,eAAe,CAAC;gBAChC,KAAK,EAAE,QAAQ,CAAC,KAAK;gBACrB,WAAW,EAAE,QAAQ,CAAC,WAAW;gBACjC,eAAe;aACf,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,KAAK,YAAY,2CAA0B;gBAAE,MAAM,KAAK,CAAC;YAC7D,MAAM,IAAI,wBAAe,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;QACzF,CAAC;IACF,CAAC;CACD,CAAA;;yCAvKY,8BAA8B;IAD1C,IAAA,YAAO,GAAE;qCAGuB,qDAAY,EACP,+DAAiB,EACb,+CAAqB,EAC3B,kCAAe,EACL,uDAAyB,EACzC,sBAAS,EACZ,uBAAM;GARpB,8BAA8B,CAuK1C"}
1
+ {"version":3,"file":"breaking-changes.migration.service.js","sourceRoot":"","sources":["../../../src/modules/breaking-changes/breaking-changes.migration.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wDAA6C;AAE7C,gCAAkC;AAClC,+CAAyD;AAGzD,wCAA6D;AAC7D,6CAAyC;AACzC,iFAA4E;AAC5E,y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AA;;yCArKY,8BAA8B;IAD1C,IAAA,YAAO,GAAE;qCAGuB,qDAAY,EACP,+DAAiB,EACb,+CAAqB,EAC3B,kCAAe,EACL,uDAAyB,EACzC,sBAAS,EACZ,uBAAM;GARpB,8BAA8B,CAqK1C"}
@@ -1,5 +1,5 @@
1
1
  import type { ModuleInterface } from '@n8n/decorators';
2
2
  export declare class BreakingChangesModule implements ModuleInterface {
3
3
  init(): Promise<void>;
4
- entities(): Promise<(typeof import("./database/entities/migration-workflow-owner.entity.js").MigrationWorkflowOwner | typeof import("./database/entities/migration-finding-sync.entity.js").MigrationFindingSync | typeof import("./database/entities/migration-finding.entity.js").MigrationFinding)[]>;
4
+ entities(): Promise<(typeof import("./database/entities/migration-finding.entity.js").MigrationFinding | typeof import("./database/entities/migration-workflow-owner.entity.js").MigrationWorkflowOwner | typeof import("./database/entities/migration-finding-sync.entity.js").MigrationFindingSync)[]>;
5
5
  }
@@ -1,10 +1,10 @@
1
- import { type BreakingChangeVersion, type MigrationFindingStatus, type MigrationFindingTriageStatus } from '@n8n/api-types';
1
+ import { type BreakingChangeVersion, type MigrationFindingListedStatus, type MigrationFindingStatus, type MigrationFindingTriageStatus } from '@n8n/api-types';
2
2
  import { BaseRepository, type OperationContext, TransactionRunner, type WorkflowEntity } from '@n8n/db';
3
3
  import { DataSource } from '@n8n/typeorm';
4
4
  import { MigrationFinding, type MigrationFindingId } from '../entities/migration-finding.entity';
5
5
  export type NewMigrationFinding = Pick<MigrationFinding, 'targetVersion' | 'ruleId' | 'workflowId'>;
6
- export type TriageableMigrationFinding = Pick<MigrationFinding, 'id' | 'ruleId' | 'workflowId'> & {
7
- status: MigrationFindingTriageStatus;
6
+ export type TriageableMigrationFinding = Pick<MigrationFinding, 'id' | 'ruleId' | 'workflowId' | 'notifiedAt'> & {
7
+ status: MigrationFindingListedStatus;
8
8
  workflow: Pick<WorkflowEntity, 'id' | 'name' | 'activeVersionId' | 'updatedAt'>;
9
9
  };
10
10
  export interface RuleFindingCount {
@@ -14,10 +14,10 @@ export interface RuleFindingCount {
14
14
  export declare class MigrationFindingRepository extends BaseRepository<MigrationFinding> {
15
15
  constructor(dataSource: DataSource, transactionRunner: TransactionRunner);
16
16
  listForWorkflows(targetVersion: BreakingChangeVersion, workflowIds: string[], ctx: OperationContext): Promise<MigrationFinding[]>;
17
- countOpenByRule(targetVersion: BreakingChangeVersion, workflowIds: string[] | undefined, ctx: OperationContext): Promise<RuleFindingCount[]>;
17
+ countUnresolvedByRule(targetVersion: BreakingChangeVersion, workflowIds: string[] | undefined, ctx: OperationContext): Promise<RuleFindingCount[]>;
18
18
  countWontFixByRule(targetVersion: BreakingChangeVersion, workflowIds: string[] | undefined, ctx: OperationContext): Promise<RuleFindingCount[]>;
19
- countDistinctOpenWorkflows(targetVersion: BreakingChangeVersion, workflowIds: string[] | undefined, ctx: OperationContext): Promise<number>;
20
- listWorkflowIdsWithOpenFindings(targetVersion: BreakingChangeVersion, workflowIds: string[], ctx: OperationContext): Promise<string[]>;
19
+ countDistinctUnresolvedWorkflows(targetVersion: BreakingChangeVersion, workflowIds: string[] | undefined, ctx: OperationContext): Promise<number>;
20
+ listWorkflowIdsWithUnresolvedFindings(targetVersion: BreakingChangeVersion, workflowIds: string[], ctx: OperationContext): Promise<string[]>;
21
21
  listTriageableForRule(targetVersion: BreakingChangeVersion, ruleId: string, workflowIds: string[] | undefined, ctx: OperationContext): Promise<TriageableMigrationFinding[]>;
22
22
  setTriageStatus(targetVersion: BreakingChangeVersion, ruleId: string, workflowId: string, status: MigrationFindingTriageStatus, ctx: OperationContext): Promise<boolean>;
23
23
  setTriageStatusForWorkflows(targetVersion: BreakingChangeVersion, ruleId: string, workflowIds: string[], status: MigrationFindingTriageStatus, ctx: OperationContext): Promise<void>;
@@ -15,9 +15,17 @@ const db_1 = require("@n8n/db");
15
15
  const di_1 = require("@n8n/di");
16
16
  const typeorm_1 = require("@n8n/typeorm");
17
17
  const migration_finding_entity_1 = require("../entities/migration-finding.entity");
18
- const TRIAGE_STATUSES = api_types_1.migrationFindingTriageStatusSchema.options;
19
- function hasTriageStatus(finding) {
20
- return api_types_1.migrationFindingTriageStatusSchema.safeParse(finding.status).success;
18
+ const LISTED_STATUSES = api_types_1.migrationFindingListedStatusSchema.options;
19
+ const UNRESOLVED_STATUSES = ['open', 'notified'];
20
+ function hasListedStatus(finding) {
21
+ return api_types_1.migrationFindingListedStatusSchema.safeParse(finding.status).success;
22
+ }
23
+ function triagePatch(status) {
24
+ return {
25
+ status,
26
+ statusChangedAt: new Date(),
27
+ ...(status === 'open' ? { notifiedAt: null } : {}),
28
+ };
21
29
  }
22
30
  function chunksOrAll(workflowIds) {
23
31
  return workflowIds === undefined ? [undefined] : (0, db_1.chunkIds)(workflowIds);
@@ -34,20 +42,20 @@ let MigrationFindingRepository = class MigrationFindingRepository extends db_1.B
34
42
  order: { id: 'ASC' },
35
43
  });
36
44
  }
37
- async countOpenByRule(targetVersion, workflowIds, ctx) {
38
- return await this.countByRuleWithStatus(targetVersion, 'open', workflowIds, ctx);
45
+ async countUnresolvedByRule(targetVersion, workflowIds, ctx) {
46
+ return await this.countByRuleWithStatus(targetVersion, UNRESOLVED_STATUSES, workflowIds, ctx);
39
47
  }
40
48
  async countWontFixByRule(targetVersion, workflowIds, ctx) {
41
- return await this.countByRuleWithStatus(targetVersion, 'wont_fix', workflowIds, ctx);
49
+ return await this.countByRuleWithStatus(targetVersion, ['wont_fix'], workflowIds, ctx);
42
50
  }
43
- async countDistinctOpenWorkflows(targetVersion, workflowIds, ctx) {
51
+ async countDistinctUnresolvedWorkflows(targetVersion, workflowIds, ctx) {
44
52
  let total = 0;
45
53
  for (const chunk of chunksOrAll(workflowIds)) {
46
54
  const query = this.managerFor(ctx)
47
55
  .createQueryBuilder(migration_finding_entity_1.MigrationFinding, 'finding')
48
56
  .select('COUNT(DISTINCT finding.workflowId)', 'count')
49
57
  .where('finding.targetVersion = :targetVersion', { targetVersion })
50
- .andWhere('finding.status = :status', { status: 'open' });
58
+ .andWhere('finding.status IN (:...statuses)', { statuses: UNRESOLVED_STATUSES });
51
59
  if (chunk)
52
60
  query.andWhere('finding.workflowId IN (:...workflowIds)', { workflowIds: chunk });
53
61
  const row = await query.getRawOne();
@@ -55,12 +63,12 @@ let MigrationFindingRepository = class MigrationFindingRepository extends db_1.B
55
63
  }
56
64
  return total;
57
65
  }
58
- async listWorkflowIdsWithOpenFindings(targetVersion, workflowIds, ctx) {
66
+ async listWorkflowIdsWithUnresolvedFindings(targetVersion, workflowIds, ctx) {
59
67
  if (workflowIds.length === 0)
60
68
  return [];
61
69
  const rows = await this.managerFor(ctx).find(migration_finding_entity_1.MigrationFinding, {
62
70
  select: { workflowId: true },
63
- where: { targetVersion, status: 'open', workflowId: (0, typeorm_1.In)(workflowIds) },
71
+ where: { targetVersion, status: (0, typeorm_1.In)(UNRESOLVED_STATUSES), workflowId: (0, typeorm_1.In)(workflowIds) },
64
72
  });
65
73
  return [...new Set(rows.map((row) => row.workflowId))];
66
74
  }
@@ -73,38 +81,39 @@ let MigrationFindingRepository = class MigrationFindingRepository extends db_1.B
73
81
  ruleId: true,
74
82
  workflowId: true,
75
83
  status: true,
84
+ notifiedAt: true,
76
85
  workflow: { id: true, name: true, activeVersionId: true, updatedAt: true },
77
86
  },
78
87
  where: {
79
88
  targetVersion,
80
89
  ruleId,
81
- status: (0, typeorm_1.In)(TRIAGE_STATUSES),
90
+ status: (0, typeorm_1.In)(LISTED_STATUSES),
82
91
  ...(chunk ? { workflowId: (0, typeorm_1.In)(chunk) } : {}),
83
92
  },
84
93
  relations: { workflow: true },
85
94
  });
86
95
  findings.push(...rows);
87
96
  }
88
- return findings.sort((a, b) => a.id - b.id).filter(hasTriageStatus);
97
+ return findings.sort((a, b) => a.id - b.id).filter(hasListedStatus);
89
98
  }
90
99
  async setTriageStatus(targetVersion, ruleId, workflowId, status, ctx) {
91
100
  const manager = this.managerFor(ctx);
92
101
  const finding = await manager.findOne(migration_finding_entity_1.MigrationFinding, {
93
102
  select: { id: true, status: true },
94
- where: { targetVersion, ruleId, workflowId, status: (0, typeorm_1.In)(TRIAGE_STATUSES) },
103
+ where: { targetVersion, ruleId, workflowId, status: (0, typeorm_1.In)(LISTED_STATUSES) },
95
104
  });
96
105
  if (!finding)
97
106
  return false;
98
107
  if (finding.status === status)
99
108
  return true;
100
- const result = await manager.update(migration_finding_entity_1.MigrationFinding, { id: finding.id, status: (0, typeorm_1.In)(TRIAGE_STATUSES) }, { status, statusChangedAt: new Date() });
109
+ const result = await manager.update(migration_finding_entity_1.MigrationFinding, { id: finding.id, status: (0, typeorm_1.In)(LISTED_STATUSES) }, triagePatch(status));
101
110
  return (result.affected ?? 0) > 0;
102
111
  }
103
112
  async setTriageStatusForWorkflows(targetVersion, ruleId, workflowIds, status, ctx) {
104
- const otherTriageStatuses = TRIAGE_STATUSES.filter((triageStatus) => triageStatus !== status);
113
+ const otherListedStatuses = LISTED_STATUSES.filter((listed) => listed !== status);
105
114
  await this.runInTransaction(ctx, async (manager) => {
106
115
  for (const chunk of (0, db_1.chunkIds)(workflowIds)) {
107
- await manager.update(migration_finding_entity_1.MigrationFinding, { targetVersion, ruleId, workflowId: (0, typeorm_1.In)(chunk), status: (0, typeorm_1.In)(otherTriageStatuses) }, { status, statusChangedAt: new Date() });
116
+ await manager.update(migration_finding_entity_1.MigrationFinding, { targetVersion, ruleId, workflowId: (0, typeorm_1.In)(chunk), status: (0, typeorm_1.In)(otherListedStatuses) }, triagePatch(status));
108
117
  }
109
118
  });
110
119
  }
@@ -129,7 +138,7 @@ let MigrationFindingRepository = class MigrationFindingRepository extends db_1.B
129
138
  await manager.update(migration_finding_entity_1.MigrationFinding, { id: (0, typeorm_1.In)(ids) }, { note });
130
139
  }
131
140
  }
132
- async countByRuleWithStatus(targetVersion, status, workflowIds, ctx) {
141
+ async countByRuleWithStatus(targetVersion, statuses, workflowIds, ctx) {
133
142
  const countByRule = new Map();
134
143
  for (const chunk of chunksOrAll(workflowIds)) {
135
144
  const query = this.managerFor(ctx)
@@ -137,7 +146,7 @@ let MigrationFindingRepository = class MigrationFindingRepository extends db_1.B
137
146
  .select('finding.ruleId', 'ruleId')
138
147
  .addSelect('COUNT(finding.id)', 'count')
139
148
  .where('finding.targetVersion = :targetVersion', { targetVersion })
140
- .andWhere('finding.status = :status', { status })
149
+ .andWhere('finding.status IN (:...statuses)', { statuses })
141
150
  .groupBy('finding.ruleId');
142
151
  if (chunk)
143
152
  query.andWhere('finding.workflowId IN (:...workflowIds)', { workflowIds: chunk });
@@ -157,9 +166,10 @@ let MigrationFindingRepository = class MigrationFindingRepository extends db_1.B
157
166
  async markNotifiedForIds(ids, ctx) {
158
167
  if (ids.length === 0)
159
168
  return;
160
- const manager = this.managerFor(ctx);
161
- await this.transitionStatus(manager, ids, 'notified');
162
- await manager.update(migration_finding_entity_1.MigrationFinding, { id: (0, typeorm_1.In)(ids) }, { notifiedAt: new Date() });
169
+ await this.runInTransaction(ctx, async (manager) => {
170
+ await manager.update(migration_finding_entity_1.MigrationFinding, { id: (0, typeorm_1.In)(ids), status: 'open' }, { status: 'notified', statusChangedAt: new Date() });
171
+ await manager.update(migration_finding_entity_1.MigrationFinding, { id: (0, typeorm_1.In)(ids), status: 'notified' }, { notifiedAt: new Date() });
172
+ });
163
173
  }
164
174
  };
165
175
  exports.MigrationFindingRepository = MigrationFindingRepository;