n8n 2.44.4 → 2.45.0

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 (1448) hide show
  1. package/dist/activation-errors.service.d.ts +1 -1
  2. package/dist/active-executions.js +1 -1
  3. package/dist/active-executions.js.map +1 -1
  4. package/dist/active-workflow-manager.d.ts +1 -1
  5. package/dist/agent-library-bundle.js +5 -0
  6. package/dist/auth/auth.service.d.ts +1 -2
  7. package/dist/auth/auth.service.js +1 -2
  8. package/dist/auth/auth.service.js.map +1 -1
  9. package/dist/build.tsbuildinfo +1 -1
  10. package/dist/commands/execute-batch.js +1 -1
  11. package/dist/commands/execute-batch.js.map +1 -1
  12. package/dist/commands/execute.js +1 -1
  13. package/dist/commands/execute.js.map +1 -1
  14. package/dist/commands/start.js +1 -4
  15. package/dist/commands/start.js.map +1 -1
  16. package/dist/commands/webhook.js +2 -2
  17. package/dist/commands/webhook.js.map +1 -1
  18. package/dist/commands/worker.js +2 -2
  19. package/dist/commands/worker.js.map +1 -1
  20. package/dist/controllers/debug.controller.d.ts +1 -1
  21. package/dist/controllers/e2e.controller.js +1 -0
  22. package/dist/controllers/e2e.controller.js.map +1 -1
  23. package/dist/controllers/oauth/oauth2-credential.controller.d.ts +1 -1
  24. package/dist/controllers/oauth/oauth2-credential.controller.js +15 -3
  25. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  26. package/dist/controllers/users.controller.d.ts +1 -2
  27. package/dist/controllers/users.controller.js +1 -2
  28. package/dist/controllers/users.controller.js.map +1 -1
  29. package/dist/credentials/credential-data-merge.d.ts +7 -0
  30. package/dist/credentials/credential-data-merge.js +55 -0
  31. package/dist/credentials/credential-data-merge.js.map +1 -0
  32. package/dist/credentials/credential-dependency.service.d.ts +1 -1
  33. package/dist/credentials/credential-dependency.service.js +4 -4
  34. package/dist/credentials/credential-dependency.service.js.map +1 -1
  35. package/dist/credentials/credentials.controller.js +6 -2
  36. package/dist/credentials/credentials.controller.js.map +1 -1
  37. package/dist/credentials/credentials.service.d.ts +5 -1
  38. package/dist/credentials/credentials.service.js +11 -3
  39. package/dist/credentials/credentials.service.js.map +1 -1
  40. package/dist/credentials/pending-authorization-cleanup.task.d.ts +2 -3
  41. package/dist/credentials/pending-authorization-cleanup.task.js +6 -6
  42. package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
  43. package/dist/deprecation/deprecation.service.js +24 -0
  44. package/dist/deprecation/deprecation.service.js.map +1 -1
  45. package/dist/evaluation.ee/evaluation-dataset.service.d.ts +2 -5
  46. package/dist/evaluation.ee/evaluation-dataset.service.js +3 -11
  47. package/dist/evaluation.ee/evaluation-dataset.service.js.map +1 -1
  48. package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +1 -1
  49. package/dist/eventbus/event-message-classes/index.d.ts +2 -2
  50. package/dist/eventbus/event-message-classes/index.js +3 -0
  51. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  52. package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.d.ts +2 -3
  53. package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js +1 -5
  54. package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js.map +1 -1
  55. package/dist/events/maps/relay.event-map.d.ts +18 -2
  56. package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
  57. package/dist/events/relays/log-streaming.event-relay.js +39 -0
  58. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  59. package/dist/events/relays/telemetry.event-relay.js +15 -3
  60. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  61. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +1 -2
  62. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  63. package/dist/executions/execution.service.d.ts +1 -2
  64. package/dist/executions/execution.service.js +1 -2
  65. package/dist/executions/execution.service.js.map +1 -1
  66. package/dist/idempotency/idempotency-request.d.ts +29 -0
  67. package/dist/idempotency/idempotency-request.js +125 -0
  68. package/dist/idempotency/idempotency-request.js.map +1 -0
  69. package/dist/idempotency/idempotency.middleware.d.ts +7 -0
  70. package/dist/idempotency/idempotency.middleware.js +80 -0
  71. package/dist/idempotency/idempotency.middleware.js.map +1 -0
  72. package/dist/idempotency/idempotency.types.d.ts +21 -0
  73. package/dist/{modules/quick-connect/handlers/handler.interface.js → idempotency/idempotency.types.js} +1 -1
  74. package/dist/idempotency/idempotency.types.js.map +1 -0
  75. package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js +3 -0
  76. package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js.map +1 -1
  77. package/dist/jwks/jwks.controller.d.ts +1 -1
  78. package/dist/jwks/jwks.controller.js +4 -4
  79. package/dist/jwks/jwks.controller.js.map +1 -1
  80. package/dist/license/license-renewal.task.d.ts +2 -6
  81. package/dist/license/license-renewal.task.js +10 -8
  82. package/dist/license/license-renewal.task.js.map +1 -1
  83. package/dist/load-nodes-and-credentials.d.ts +1 -0
  84. package/dist/load-nodes-and-credentials.js +16 -1
  85. package/dist/load-nodes-and-credentials.js.map +1 -1
  86. package/dist/modules/agents/adapters/agents-credential-provider.js +1 -0
  87. package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
  88. package/dist/modules/agents/agent-channel-media-retention.task.d.ts +15 -0
  89. package/dist/modules/agents/agent-channel-media-retention.task.js +64 -0
  90. package/dist/modules/agents/agent-channel-media-retention.task.js.map +1 -0
  91. package/dist/modules/agents/agent-chat-attachment.service.d.ts +4 -0
  92. package/dist/modules/agents/agent-chat-attachment.service.js +15 -0
  93. package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
  94. package/dist/modules/agents/agent-chat-execution.service.d.ts +2 -1
  95. package/dist/modules/agents/agent-chat-execution.service.js +19 -10
  96. package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
  97. package/dist/modules/agents/agent-chat-relay.service.d.ts +31 -0
  98. package/dist/modules/agents/agent-chat-relay.service.js +164 -0
  99. package/dist/modules/agents/agent-chat-relay.service.js.map +1 -0
  100. package/dist/modules/agents/agent-chat.controller.d.ts +5 -9
  101. package/dist/modules/agents/agent-chat.controller.js +18 -150
  102. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  103. package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +2 -5
  104. package/dist/modules/agents/agent-checkpoint-pruning.task.js +10 -8
  105. package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
  106. package/dist/modules/agents/agent-config-preparation.service.d.ts +10 -13
  107. package/dist/modules/agents/agent-config.service.d.ts +1 -3
  108. package/dist/modules/agents/agent-config.service.js +8 -7
  109. package/dist/modules/agents/agent-config.service.js.map +1 -1
  110. package/dist/modules/agents/agent-definition.service.d.ts +1 -1
  111. package/dist/modules/agents/agent-definition.service.js +11 -6
  112. package/dist/modules/agents/agent-definition.service.js.map +1 -1
  113. package/dist/modules/agents/agent-dependency-index.listener.js +5 -0
  114. package/dist/modules/agents/agent-dependency-index.listener.js.map +1 -1
  115. package/dist/modules/agents/agent-dependency-index.service.d.ts +1 -0
  116. package/dist/modules/agents/agent-dependency-index.service.js +7 -0
  117. package/dist/modules/agents/agent-dependency-index.service.js.map +1 -1
  118. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +4 -4
  119. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  120. package/dist/modules/agents/agent-execution.service.js +4 -0
  121. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  122. package/dist/modules/agents/agent-integration-management.service.d.ts +5 -5
  123. package/dist/modules/agents/agent-integration-management.service.js +1 -1
  124. package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
  125. package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -3
  126. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  127. package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +2 -3
  128. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +4 -6
  129. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -1
  130. package/dist/modules/agents/agent-message-queue-consumer.service.js +1 -1
  131. package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
  132. package/dist/modules/agents/agent-message-queue.service.js +14 -6
  133. package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
  134. package/dist/modules/agents/agent-modification-telemetry.service.d.ts +13 -13
  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 +5 -2
  476. package/dist/modules/breaking-changes/breaking-changes.controller.js +16 -2
  477. package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
  478. package/dist/modules/breaking-changes/breaking-changes.module.d.ts +1 -1
  479. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +6 -6
  480. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +31 -21
  481. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
  482. package/dist/modules/breaking-changes/migrations/index.js +2 -2
  483. package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
  484. package/dist/modules/breaking-changes/migrations/node-migration.d.ts +1 -0
  485. package/dist/modules/breaking-changes/migrations/node-migration.js +17 -0
  486. package/dist/modules/breaking-changes/migrations/node-migration.js.map +1 -1
  487. package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.d.ts +2 -0
  488. package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.js.map +1 -0
  489. package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.d.ts +3 -0
  490. package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js +79 -0
  491. package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js.map +1 -0
  492. package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.d.ts +2 -0
  493. package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js +40 -0
  494. package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js.map +1 -0
  495. package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.d.ts +2 -0
  496. package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js +17 -0
  497. package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js.map +1 -0
  498. package/dist/modules/breaking-changes/migrations/node-removals/index.d.ts +2 -0
  499. package/dist/modules/breaking-changes/migrations/node-removals/index.js +32 -0
  500. package/dist/modules/breaking-changes/migrations/node-removals/index.js.map +1 -0
  501. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.d.ts +4 -0
  502. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js +46 -0
  503. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js.map +1 -0
  504. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.d.ts +10 -0
  505. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js +252 -0
  506. package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js.map +1 -0
  507. package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.d.ts +2 -0
  508. package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js +85 -0
  509. package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js.map +1 -0
  510. package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.d.ts +2 -0
  511. package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js +28 -0
  512. package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js.map +1 -0
  513. package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.d.ts +2 -0
  514. package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js +91 -0
  515. package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js.map +1 -0
  516. package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.d.ts +7 -0
  517. package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js +133 -0
  518. package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js.map +1 -0
  519. package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.d.ts +2 -0
  520. package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js +26 -0
  521. package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js.map +1 -0
  522. package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.d.ts +2 -0
  523. package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js +27 -0
  524. package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js.map +1 -0
  525. package/dist/modules/breaking-changes/migrations/parameter-readers.d.ts +10 -0
  526. package/dist/modules/breaking-changes/migrations/parameter-readers.js +51 -0
  527. package/dist/modules/breaking-changes/migrations/parameter-readers.js.map +1 -0
  528. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.d.ts +20 -0
  529. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js +136 -0
  530. package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js.map +1 -0
  531. package/dist/modules/breaking-changes/query/migration-finding-query.service.js +3 -2
  532. package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
  533. package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -2
  534. package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
  535. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +1 -1
  536. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
  537. package/dist/modules/chat-hub/chat-hub-extractor.d.ts +1 -1
  538. package/dist/modules/chat-hub/chat-hub-extractor.js +2 -2
  539. package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -1
  540. package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +2 -3
  541. package/dist/modules/data-table/data-table-file-cleanup.task.js +1 -5
  542. package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -1
  543. package/dist/modules/data-table/data-table-permissions.d.ts +2 -0
  544. package/dist/modules/data-table/data-table-permissions.js +6 -0
  545. package/dist/modules/data-table/data-table-permissions.js.map +1 -1
  546. package/dist/modules/data-table/data-table-proxy.service.d.ts +0 -1
  547. package/dist/modules/data-table/data-table-proxy.service.js +8 -17
  548. package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
  549. package/dist/modules/data-table/data-table.controller.d.ts +0 -1
  550. package/dist/modules/data-table/data-table.controller.js +7 -17
  551. package/dist/modules/data-table/data-table.controller.js.map +1 -1
  552. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +1 -1
  553. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +2 -2
  554. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
  555. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +1 -1
  556. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
  557. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +2 -3
  558. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +1 -5
  559. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -1
  560. package/dist/modules/inbound-auth-core/authentication-pipeline.js +7 -0
  561. package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -1
  562. package/dist/modules/inbound-auth-core/constants.d.ts +42 -0
  563. package/dist/modules/inbound-auth-core/constants.js +24 -0
  564. package/dist/modules/inbound-auth-core/constants.js.map +1 -0
  565. package/dist/modules/inbound-auth-core/grant-authorization.d.ts +2 -2
  566. package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -1
  567. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +1 -1
  568. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +2 -2
  569. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -1
  570. package/dist/modules/inbound-auth-core/inbound-auth-core.module.d.ts +3 -0
  571. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +32 -10
  572. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
  573. package/dist/modules/inbound-auth-core/local-authorization-server.proxy.d.ts +15 -0
  574. package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js +47 -0
  575. package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js.map +1 -0
  576. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +3 -2
  577. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +7 -2
  578. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -1
  579. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.d.ts +16 -0
  580. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js +71 -0
  581. package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js.map +1 -0
  582. package/dist/modules/inbound-auth-core/public-api-protected-resource.d.ts +21 -0
  583. package/dist/modules/inbound-auth-core/public-api-protected-resource.js +51 -0
  584. package/dist/modules/inbound-auth-core/public-api-protected-resource.js.map +1 -0
  585. package/dist/modules/inbound-auth-core/resource-admission.d.ts +12 -0
  586. package/dist/modules/inbound-auth-core/resource-admission.js +65 -0
  587. package/dist/modules/inbound-auth-core/resource-admission.js.map +1 -0
  588. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +0 -42
  589. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +7 -26
  590. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -1
  591. package/dist/modules/inbound-auth-core/trusted-source-directory.service.d.ts +7 -0
  592. package/dist/modules/inbound-auth-core/trusted-source-directory.service.js +32 -0
  593. package/dist/modules/inbound-auth-core/trusted-source-directory.service.js.map +1 -0
  594. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +2 -3
  595. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js +1 -2
  596. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -1
  597. package/dist/modules/inbound-auth-core/trusted-source.controller.d.ts +27 -0
  598. package/dist/modules/inbound-auth-core/trusted-source.controller.js +190 -0
  599. package/dist/modules/inbound-auth-core/trusted-source.controller.js.map +1 -0
  600. package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +1 -0
  601. package/dist/modules/inbound-auth-core/trusted-source.store.js +6 -3
  602. package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
  603. package/dist/modules/inbox/inbox-source.registry.d.ts +39 -0
  604. package/dist/modules/inbox/inbox-source.registry.js +64 -0
  605. package/dist/modules/inbox/inbox-source.registry.js.map +1 -0
  606. package/dist/modules/inbox/inbox.controller.d.ts +10 -0
  607. package/dist/modules/{quick-connect/quick-connect.controller.js → inbox/inbox.controller.js} +26 -17
  608. package/dist/modules/inbox/inbox.controller.js.map +1 -0
  609. package/dist/modules/inbox/inbox.module.d.ts +4 -0
  610. package/dist/modules/{workflow-builder/workflow-builder.module.js → inbox/inbox.module.js} +9 -10
  611. package/dist/modules/inbox/inbox.module.js.map +1 -0
  612. package/dist/modules/inbox/inbox.service.d.ts +17 -0
  613. package/dist/modules/inbox/inbox.service.js +184 -0
  614. package/dist/modules/inbox/inbox.service.js.map +1 -0
  615. package/dist/modules/instance-ai/agent-preview-handoff.js +1 -1
  616. package/dist/modules/instance-ai/agent-preview-handoff.js.map +1 -1
  617. package/dist/modules/instance-ai/agents-access.d.ts +2 -0
  618. package/dist/modules/instance-ai/agents-access.js +9 -0
  619. package/dist/modules/instance-ai/agents-access.js.map +1 -0
  620. package/dist/modules/instance-ai/conversation-history-content.d.ts +3 -2
  621. package/dist/modules/instance-ai/conversation-history-content.js +8 -2
  622. package/dist/modules/instance-ai/conversation-history-content.js.map +1 -1
  623. package/dist/modules/instance-ai/eval/agent-execution.service.js +14 -7
  624. package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
  625. package/dist/modules/instance-ai/eval/mock-handler.js +11 -10
  626. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  627. package/dist/modules/instance-ai/eval/mock-utils.js +2 -0
  628. package/dist/modules/instance-ai/eval/mock-utils.js.map +1 -1
  629. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.d.ts +8 -0
  630. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js +10 -0
  631. package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js.map +1 -1
  632. package/dist/modules/instance-ai/eval/thread-restore.service.js +1 -1
  633. package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
  634. package/dist/modules/instance-ai/eval/workflow-analysis.js +6 -6
  635. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  636. package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +1 -0
  637. package/dist/modules/instance-ai/event-bus/durable-event-log.js +65 -7
  638. package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
  639. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +2 -5
  640. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +10 -8
  641. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
  642. package/dist/modules/instance-ai/instance-ai-conversation-history.service.js +1 -1
  643. package/dist/modules/instance-ai/instance-ai-conversation-history.service.js.map +1 -1
  644. package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +1 -11
  645. package/dist/modules/instance-ai/instance-ai-credit.service.js +9 -52
  646. package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
  647. package/dist/modules/instance-ai/instance-ai-model.service.d.ts +9 -2
  648. package/dist/modules/instance-ai/instance-ai-model.service.js +35 -6
  649. package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
  650. package/dist/modules/instance-ai/instance-ai-pending-agent.service.d.ts +2 -0
  651. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +2 -1
  652. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
  653. package/dist/modules/instance-ai/instance-ai-run-pin-data.js +1 -1
  654. package/dist/modules/instance-ai/instance-ai-run-pin-data.js.map +1 -1
  655. package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +1 -2
  656. package/dist/modules/instance-ai/instance-ai-settings.service.js +5 -18
  657. package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
  658. package/dist/modules/instance-ai/instance-ai-skills.service.d.ts +26 -0
  659. package/dist/modules/instance-ai/instance-ai-skills.service.js +63 -0
  660. package/dist/modules/instance-ai/instance-ai-skills.service.js.map +1 -0
  661. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +17 -15
  662. package/dist/modules/instance-ai/instance-ai.adapter.service.js +13 -15
  663. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  664. package/dist/modules/instance-ai/instance-ai.controller.d.ts +7 -1
  665. package/dist/modules/instance-ai/instance-ai.controller.js +19 -0
  666. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  667. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -2
  668. package/dist/modules/instance-ai/instance-ai.module.js +9 -1
  669. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  670. package/dist/modules/instance-ai/instance-ai.service.d.ts +3 -3
  671. package/dist/modules/instance-ai/instance-ai.service.js +52 -73
  672. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  673. package/dist/modules/instance-ai/instance-context.service.js +3 -3
  674. package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
  675. package/dist/modules/instance-ai/internal-messages.js +5 -5
  676. package/dist/modules/instance-ai/internal-messages.js.map +1 -1
  677. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +2 -5
  678. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +8 -26
  679. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
  680. package/dist/modules/instance-ai/model-config-name.d.ts +5 -0
  681. package/dist/modules/instance-ai/model-config-name.js +25 -0
  682. package/dist/modules/instance-ai/model-config-name.js.map +1 -0
  683. package/dist/modules/instance-ai/onboarding.d.ts +0 -2
  684. package/dist/modules/instance-ai/onboarding.js +1 -14
  685. package/dist/modules/instance-ai/onboarding.js.map +1 -1
  686. package/dist/modules/instance-ai/repositories/conversation-history-search.d.ts +5 -1
  687. package/dist/modules/instance-ai/repositories/conversation-history-search.js +10 -5
  688. package/dist/modules/instance-ai/repositories/conversation-history-search.js.map +1 -1
  689. package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js +2 -2
  690. package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js.map +1 -1
  691. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +1 -0
  692. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +11 -0
  693. package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
  694. package/dist/modules/instance-ai/repositories/instance-ai-message.repository.d.ts +0 -1
  695. package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js +0 -10
  696. package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js.map +1 -1
  697. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +2 -1
  698. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +4 -1
  699. package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
  700. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +42 -2
  701. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +63 -2
  702. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -1
  703. package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +10 -3
  704. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +30 -2
  705. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -1
  706. package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.d.ts +2 -4
  707. package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js +4 -7
  708. package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js.map +1 -1
  709. package/dist/modules/instance-registry/instance-registry-heartbeat.task.d.ts +2 -3
  710. package/dist/modules/instance-registry/instance-registry-heartbeat.task.js +1 -5
  711. package/dist/modules/instance-registry/instance-registry-heartbeat.task.js.map +1 -1
  712. package/dist/modules/instance-registry/instance-registry.module.js +1 -1
  713. package/dist/modules/instance-registry/instance-registry.module.js.map +1 -1
  714. package/dist/modules/instance-registry/stale-member-cleanup.task.d.ts +2 -3
  715. package/dist/modules/instance-registry/stale-member-cleanup.task.js +1 -2
  716. package/dist/modules/instance-registry/stale-member-cleanup.task.js.map +1 -1
  717. package/dist/modules/instance-reporting.ee/instance-reporting.task.d.ts +2 -4
  718. package/dist/modules/instance-reporting.ee/instance-reporting.task.js +4 -7
  719. package/dist/modules/instance-reporting.ee/instance-reporting.task.js.map +1 -1
  720. package/dist/modules/log-streaming.ee/log-streaming.controller.js +12 -1
  721. package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
  722. package/dist/modules/mcp/mcp-api-key.service.d.ts +2 -3
  723. package/dist/modules/mcp/mcp-api-key.service.js +3 -3
  724. package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
  725. package/dist/modules/mcp/mcp-protected-resource.d.ts +2 -2
  726. package/dist/modules/mcp/mcp-protected-resource.js +5 -3
  727. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  728. package/dist/modules/mcp/mcp-scopes.d.ts +1 -0
  729. package/dist/modules/mcp/mcp-scopes.js +7 -1
  730. package/dist/modules/mcp/mcp-scopes.js.map +1 -1
  731. package/dist/modules/mcp/mcp-server-middleware.service.d.ts +2 -2
  732. package/dist/modules/mcp/mcp-server-middleware.service.js +3 -3
  733. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  734. package/dist/modules/mcp/mcp-tool-availability.d.ts +1 -0
  735. package/dist/modules/mcp/mcp-tool-availability.js +4 -0
  736. package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
  737. package/dist/modules/mcp/mcp.module.js +1 -1
  738. package/dist/modules/mcp/mcp.module.js.map +1 -1
  739. package/dist/modules/mcp/mcp.service.d.ts +1 -3
  740. package/dist/modules/mcp/mcp.service.js +5 -3
  741. package/dist/modules/mcp/mcp.service.js.map +1 -1
  742. package/dist/modules/mcp/mcp.types.d.ts +1 -1
  743. package/dist/modules/mcp/tools/agents/agent-reference.js +12 -8
  744. package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
  745. package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +5 -5
  746. package/dist/modules/mcp/tools/agents/agent-slack-setup.js.map +1 -1
  747. package/dist/modules/mcp/tools/agents/agent-tools.service.js +24 -9
  748. package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
  749. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +1 -1
  750. package/dist/modules/mcp/tools/get-execution.tool.d.ts +1 -1
  751. package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +11 -0
  752. package/dist/modules/mcp/tools/skills/skill-tools.service.js +242 -0
  753. package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -0
  754. package/dist/modules/mcp/tools/tool-result.utils.d.ts +8 -0
  755. package/dist/modules/mcp/tools/tool-result.utils.js +11 -0
  756. package/dist/modules/mcp/tools/tool-result.utils.js.map +1 -0
  757. package/dist/modules/mcp-registry/mcp-auth-fetch.d.ts +15 -0
  758. package/dist/modules/mcp-registry/mcp-auth-fetch.js +64 -0
  759. package/dist/modules/mcp-registry/mcp-auth-fetch.js.map +1 -0
  760. package/dist/modules/mcp-registry/mcp-connection-discovery.service.d.ts +23 -0
  761. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js +219 -0
  762. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js.map +1 -0
  763. package/dist/modules/mcp-registry/mcp-registry-refresh.task.d.ts +2 -3
  764. package/dist/modules/mcp-registry/mcp-registry-refresh.task.js +4 -6
  765. package/dist/modules/mcp-registry/mcp-registry-refresh.task.js.map +1 -1
  766. package/dist/modules/mcp-registry/mcp-registry-response.d.ts +3 -0
  767. package/dist/modules/mcp-registry/mcp-registry-response.js +35 -0
  768. package/dist/modules/mcp-registry/mcp-registry-response.js.map +1 -0
  769. package/dist/modules/mcp-registry/mcp-registry.controller.d.ts +6 -2
  770. package/dist/modules/mcp-registry/mcp-registry.controller.js +25 -28
  771. package/dist/modules/mcp-registry/mcp-registry.controller.js.map +1 -1
  772. package/dist/modules/mcp-registry/registry/mock-servers.js +3 -3
  773. package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
  774. package/dist/modules/modules.manifest.js +2 -0
  775. package/dist/modules/modules.manifest.js.map +1 -1
  776. package/dist/modules/n8n-packages/engine/import-blocked.error.js +1 -0
  777. package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
  778. package/dist/modules/n8n-packages/engine/import-gates.d.ts +6 -0
  779. package/dist/modules/n8n-packages/engine/import-gates.js +8 -0
  780. package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
  781. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +2 -2
  782. package/dist/modules/n8n-packages/engine/import-orchestrator.js +20 -1
  783. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  784. package/dist/modules/n8n-packages/engine/import-telemetry.js +3 -1
  785. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  786. package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +3 -0
  787. package/dist/modules/n8n-packages/engine/n8n-package-parser.js +38 -0
  788. package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
  789. package/dist/modules/n8n-packages/engine/package-layout.d.ts +10 -2
  790. package/dist/modules/n8n-packages/engine/package-layout.js +26 -0
  791. package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
  792. package/dist/modules/n8n-packages/engine/project-package-importer.js +29 -4
  793. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  794. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +19 -1
  795. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  796. package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +1 -1
  797. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +6 -0
  798. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -1
  799. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -1
  800. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.d.ts +20 -0
  801. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js +98 -0
  802. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js.map +1 -0
  803. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +16 -2
  804. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -1
  805. package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +7 -3
  806. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +95 -5
  807. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
  808. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +3 -1
  809. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +14 -4
  810. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
  811. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +13 -2
  812. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
  813. package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +2 -1
  814. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -1
  815. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
  816. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +39 -3
  817. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  818. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
  819. package/dist/modules/n8n-packages/n8n-packages.service.js +2 -1
  820. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  821. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +16 -2
  822. package/dist/modules/n8n-packages/n8n-packages.types.js +6 -1
  823. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  824. package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +133 -164
  825. package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +3 -0
  826. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +1 -0
  827. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -1
  828. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +1 -1
  829. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
  830. package/dist/modules/oauth-jwe/oauth-jwe-jwks.provider.d.ts +1 -1
  831. package/dist/modules/oauth-jwe/oauth-jwe.module.d.ts +1 -1
  832. package/dist/modules/oauth-jwe/oauth-jwe.module.js +4 -5
  833. package/dist/modules/oauth-jwe/oauth-jwe.module.js.map +1 -1
  834. package/dist/modules/oauth-jwe/oauth-jwe.schemas.js +3 -3
  835. package/dist/modules/oauth-jwe/oauth-jwe.schemas.js.map +1 -1
  836. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +1 -0
  837. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +3 -0
  838. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
  839. package/dist/modules/oauth-server/dto/approve-consent-request.dto.d.ts +3 -1
  840. package/dist/modules/oauth-server/dto/approve-consent-request.dto.js +8 -1
  841. package/dist/modules/oauth-server/dto/approve-consent-request.dto.js.map +1 -1
  842. package/dist/modules/oauth-server/oauth-consent.controller.d.ts +5 -1
  843. package/dist/modules/oauth-server/oauth-consent.controller.js +15 -14
  844. package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -1
  845. package/dist/modules/oauth-server/oauth-consent.service.d.ts +1 -1
  846. package/dist/modules/oauth-server/oauth-consent.service.js +2 -2
  847. package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
  848. package/dist/modules/oauth-server/oauth-flow.service.d.ts +23 -9
  849. package/dist/modules/oauth-server/oauth-flow.service.js +279 -43
  850. package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -1
  851. package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +5 -2
  852. package/dist/modules/oauth-server/oauth-local-authorization-server.js +8 -3
  853. package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -1
  854. package/dist/modules/oauth-server/oauth-server.module.js +6 -6
  855. package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
  856. package/dist/modules/oauth-server/oauth-server.service.d.ts +1 -1
  857. package/dist/modules/oauth-server/oauth-server.service.js +8 -6
  858. package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
  859. package/dist/modules/oauth-server/oauth-session.service.d.ts +13 -7
  860. package/dist/modules/oauth-server/oauth-session.service.js +48 -13
  861. package/dist/modules/oauth-server/oauth-session.service.js.map +1 -1
  862. package/dist/modules/oauth-server/oauth-signing-jwks.provider.d.ts +1 -1
  863. package/dist/modules/oauth-server/oauth-signing-key.schemas.js +2 -2
  864. package/dist/modules/oauth-server/oauth-signing-key.schemas.js.map +1 -1
  865. package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +1 -1
  866. package/dist/modules/oauth-server/oauth-signing-key.service.js +2 -2
  867. package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
  868. package/dist/modules/oauth-server/oauth-token.service.d.ts +2 -4
  869. package/dist/modules/oauth-server/oauth-token.service.js +2 -3
  870. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  871. package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
  872. package/dist/modules/oauth-server/oauth.controller.js +41 -8
  873. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  874. package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
  875. package/dist/modules/oauth-server/oauth.helpers.js +14 -0
  876. package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
  877. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.d.ts +1 -1
  878. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js +1 -0
  879. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js.map +1 -1
  880. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.d.ts +7 -5
  881. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +1 -0
  882. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -1
  883. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.d.ts +7 -5
  884. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +1 -0
  885. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
  886. package/dist/modules/oauth-server/protected-resource-resolvers/index.js +9 -9
  887. package/dist/modules/oauth-server/protected-resource-resolvers/index.js.map +1 -1
  888. package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +1 -0
  889. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +8 -0
  890. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
  891. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +3 -3
  892. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
  893. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +3 -3
  894. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
  895. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.d.ts +1 -1
  896. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +1 -1
  897. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
  898. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.d.ts +1 -1
  899. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
  900. package/dist/modules/oauth-server/resource-gate.d.ts +1 -1
  901. package/dist/modules/oauth-server/resource-gate.js.map +1 -1
  902. package/dist/modules/oauth-server/resource-identity.d.ts +1 -1
  903. package/dist/modules/promotions.ee/constants.d.ts +1 -1
  904. package/dist/modules/promotions.ee/constants.js +1 -1
  905. package/dist/modules/promotions.ee/constants.js.map +1 -1
  906. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +3 -2
  907. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +1 -1
  908. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +21 -0
  909. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +95 -0
  910. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -0
  911. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.d.ts +18 -0
  912. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js +82 -0
  913. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js.map +1 -0
  914. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +2 -1
  915. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js +6 -2
  916. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +1 -1
  917. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +18 -0
  918. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +61 -0
  919. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -0
  920. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.d.ts +9 -0
  921. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js +33 -0
  922. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js.map +1 -0
  923. package/dist/modules/promotions.ee/git-hosts/git-host-target.d.ts +30 -0
  924. package/dist/modules/promotions.ee/git-hosts/git-host-target.js +97 -0
  925. package/dist/modules/promotions.ee/git-hosts/git-host-target.js.map +1 -0
  926. package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +12 -0
  927. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +4 -1
  928. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +73 -6
  929. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -1
  930. package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +1 -0
  931. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +12 -0
  932. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
  933. package/dist/modules/promotions.ee/promotion-config.resolver.js +3 -5
  934. package/dist/modules/promotions.ee/promotion-config.resolver.js.map +1 -1
  935. package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -0
  936. package/dist/modules/promotions.ee/promotion-connections.service.js +39 -12
  937. package/dist/modules/promotions.ee/promotion-connections.service.js.map +1 -1
  938. package/dist/modules/promotions.ee/promotion-providers.service.d.ts +13 -0
  939. package/dist/modules/promotions.ee/promotion-providers.service.js +28 -0
  940. package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
  941. package/dist/modules/promotions.ee/promotions-git.service.d.ts +3 -0
  942. package/dist/modules/promotions.ee/promotions-git.service.js +30 -4
  943. package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -1
  944. package/dist/modules/promotions.ee/promotions.module.d.ts +1 -1
  945. package/dist/modules/promotions.ee/promotions.module.js +10 -1
  946. package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
  947. package/dist/modules/promotions.ee/promotions.service.d.ts +0 -1
  948. package/dist/modules/promotions.ee/promotions.service.js +45 -19
  949. package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
  950. package/dist/modules/provisioning.ee/provisioning.module.js +1 -1
  951. package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
  952. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -0
  953. package/dist/modules/provisioning.ee/provisioning.service.ee.js +14 -2
  954. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  955. package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +1 -1
  956. package/dist/modules/provisioning.ee/role-resolver-types.d.ts +1 -1
  957. package/dist/modules/redaction/dynamic-credentials-context-hook.d.ts +1 -1
  958. package/dist/modules/redaction/dynamic-credentials-context-hook.js +2 -2
  959. package/dist/modules/redaction/dynamic-credentials-context-hook.js.map +1 -1
  960. package/dist/modules/redaction/executions/execution-redaction.interfaces.d.ts +3 -1
  961. package/dist/modules/redaction/executions/execution-redaction.service.d.ts +4 -2
  962. package/dist/modules/redaction/executions/execution-redaction.service.js +35 -11
  963. package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
  964. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.d.ts +1 -1
  965. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +6 -1
  966. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
  967. package/dist/modules/redaction/executions/strategies/node-defined-field-redaction.strategy.d.ts +1 -1
  968. package/dist/modules/redaction/redaction.module.js +2 -2
  969. package/dist/modules/redaction/redaction.module.js.map +1 -1
  970. package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +1 -1
  971. package/dist/modules/runtime-credentials/runtime-credentials.module.js +2 -2
  972. package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -1
  973. package/dist/modules/scim/database/scim-api-key.repository.js +2 -2
  974. package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -1
  975. package/dist/modules/scim/database/scim-user.repository.d.ts +23 -0
  976. package/dist/modules/scim/database/scim-user.repository.js +53 -0
  977. package/dist/modules/scim/database/scim-user.repository.js.map +1 -0
  978. package/dist/modules/scim/scim-body-parser.d.ts +2 -0
  979. package/dist/modules/scim/scim-body-parser.js +19 -0
  980. package/dist/modules/scim/scim-body-parser.js.map +1 -0
  981. package/dist/modules/scim/scim-discovery.controller.js +84 -7
  982. package/dist/modules/scim/scim-discovery.controller.js.map +1 -1
  983. package/dist/modules/scim/scim-route.js +2 -1
  984. package/dist/modules/scim/scim-route.js.map +1 -1
  985. package/dist/modules/scim/scim-token.service.d.ts +1 -2
  986. package/dist/modules/scim/scim-token.service.js +1 -2
  987. package/dist/modules/scim/scim-token.service.js.map +1 -1
  988. package/dist/modules/scim/scim.controller.d.ts +19 -0
  989. package/dist/modules/scim/scim.controller.js +163 -0
  990. package/dist/modules/scim/scim.controller.js.map +1 -0
  991. package/dist/modules/scim/scim.errors.d.ts +13 -0
  992. package/dist/modules/scim/scim.errors.js +29 -0
  993. package/dist/modules/scim/scim.errors.js.map +1 -0
  994. package/dist/modules/scim/scim.module.js +1 -0
  995. package/dist/modules/scim/scim.module.js.map +1 -1
  996. package/dist/modules/scim/scim.service.d.ts +38 -0
  997. package/dist/modules/scim/scim.service.js +329 -0
  998. package/dist/modules/scim/scim.service.js.map +1 -0
  999. package/dist/modules/source-control.ee/source-control-git.service.ee.js +2 -0
  1000. package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
  1001. package/dist/modules/source-control.ee/source-control-helper.ee.js +6 -51
  1002. package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
  1003. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +3 -2
  1004. package/dist/modules/source-control.ee/source-control-import.service.ee.js +59 -13
  1005. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  1006. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -0
  1007. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -0
  1008. package/dist/modules/source-control.ee/source-control.service.ee.js +6 -1
  1009. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  1010. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +1 -2
  1011. package/dist/modules/sso-oidc/oidc.service.ee.js +1 -2
  1012. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  1013. package/dist/modules/token-exchange/services/jti-cleanup.task.d.ts +2 -3
  1014. package/dist/modules/token-exchange/services/jti-cleanup.task.js +1 -2
  1015. package/dist/modules/token-exchange/services/jti-cleanup.task.js.map +1 -1
  1016. package/dist/modules/token-exchange/services/scoped-jwt.strategy.d.ts +2 -2
  1017. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js +2 -2
  1018. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js.map +1 -1
  1019. package/dist/modules/token-exchange/services/token-exchange.service.d.ts +1 -1
  1020. package/dist/modules/token-exchange/services/token-exchange.service.js +2 -2
  1021. package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
  1022. package/dist/modules/token-exchange/services/trusted-key-refresh.task.d.ts +2 -3
  1023. package/dist/modules/token-exchange/services/trusted-key-refresh.task.js +1 -2
  1024. package/dist/modules/token-exchange/services/trusted-key-refresh.task.js.map +1 -1
  1025. package/dist/modules/token-exchange/token-exchange.module.js +1 -1
  1026. package/dist/modules/token-exchange/token-exchange.module.js.map +1 -1
  1027. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +5 -7
  1028. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +13 -1
  1029. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
  1030. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +1 -1
  1031. package/dist/modules/type-availability-policies/credential-type-policy.check.js +3 -14
  1032. package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
  1033. package/dist/modules/type-availability-policies/node-type-policy.check.js +2 -13
  1034. package/dist/modules/type-availability-policies/node-type-policy.check.js.map +1 -1
  1035. package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -0
  1036. package/dist/modules/type-availability-policies/package-resolver.js +17 -0
  1037. package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
  1038. package/dist/modules/type-availability-policies/policy-rule-lint.d.ts +14 -0
  1039. package/dist/modules/type-availability-policies/policy-rule-lint.js +19 -0
  1040. package/dist/modules/type-availability-policies/policy-rule-lint.js.map +1 -0
  1041. package/dist/modules/type-availability-policies/policy-shadow-lint.d.ts +1 -0
  1042. package/dist/modules/type-availability-policies/policy-shadow-lint.js +1 -1
  1043. package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
  1044. package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +1 -1
  1045. package/dist/modules/type-availability-policies/type-availability-policies.module.js +2 -2
  1046. package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
  1047. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.d.ts +5 -7
  1048. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js +13 -1
  1049. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js.map +1 -1
  1050. package/dist/modules/type-availability-policies/type-availability-policy-project.controller.d.ts +1 -1
  1051. package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +10 -7
  1052. package/dist/modules/type-availability-policies/type-availability-policy.service.js +39 -36
  1053. package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
  1054. package/dist/modules/type-availability-policies/type-violation.d.ts +10 -0
  1055. package/dist/modules/type-availability-policies/type-violation.js +29 -0
  1056. package/dist/modules/type-availability-policies/type-violation.js.map +1 -0
  1057. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +5 -5
  1058. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +12 -32
  1059. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
  1060. package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.d.ts +1 -2
  1061. package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js.map +1 -1
  1062. package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.d.ts +1 -1
  1063. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +1 -3
  1064. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +0 -21
  1065. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -1
  1066. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +12 -4
  1067. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
  1068. package/dist/node-execution/ephemeral-node-executor.d.ts +2 -0
  1069. package/dist/node-execution/ephemeral-node-executor.js +21 -6
  1070. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  1071. package/dist/oauth/oauth.service.d.ts +3 -1
  1072. package/dist/oauth/oauth.service.js +30 -3
  1073. package/dist/oauth/oauth.service.js.map +1 -1
  1074. package/dist/output-schema-parameter-defaults.d.ts +7 -0
  1075. package/dist/output-schema-parameter-defaults.js +23 -0
  1076. package/dist/output-schema-parameter-defaults.js.map +1 -0
  1077. package/dist/policy/policy-violation.error.d.ts +1 -0
  1078. package/dist/policy/policy-violation.error.js +12 -0
  1079. package/dist/policy/policy-violation.error.js.map +1 -1
  1080. package/dist/public-api/idempotency-key-cleanup.task.d.ts +2 -3
  1081. package/dist/public-api/idempotency-key-cleanup.task.js +6 -6
  1082. package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -1
  1083. package/dist/public-api/idempotency-key.service.d.ts +9 -1
  1084. package/dist/public-api/idempotency-key.service.js +41 -0
  1085. package/dist/public-api/idempotency-key.service.js.map +1 -1
  1086. package/dist/public-api/index.js +14 -138
  1087. package/dist/public-api/index.js.map +1 -1
  1088. package/dist/public-api/media-types/request-body/multipart-parser.js.map +1 -1
  1089. package/dist/public-api/public-api-controller.registry.d.ts +12 -2
  1090. package/dist/public-api/public-api-controller.registry.js +98 -12
  1091. package/dist/public-api/public-api-controller.registry.js.map +1 -1
  1092. package/dist/public-api/public-api-rate-limit.service.d.ts +17 -0
  1093. package/dist/public-api/public-api-rate-limit.service.js +127 -0
  1094. package/dist/public-api/public-api-rate-limit.service.js.map +1 -0
  1095. package/dist/public-api/public-api-route-resolver.d.ts +0 -3
  1096. package/dist/public-api/public-api-route-resolver.js +0 -19
  1097. package/dist/public-api/public-api-route-resolver.js.map +1 -1
  1098. package/dist/public-api/types.d.ts +1 -66
  1099. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +1 -0
  1100. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +54 -29
  1101. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
  1102. package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +3 -1
  1103. package/dist/public-api/v1/controllers/credentials.public.controller.js +22 -3
  1104. package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
  1105. package/dist/public-api/v1/controllers/executions.public.controller.d.ts +1 -2
  1106. package/dist/public-api/v1/controllers/executions.public.controller.js +3 -5
  1107. package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
  1108. package/dist/public-api/v1/controllers/log-streaming.mapper.d.ts +3 -3
  1109. package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +3 -1
  1110. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +95 -2
  1111. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -1
  1112. package/dist/public-api/v1/controllers/node-type-policies.public.controller.d.ts +1 -0
  1113. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +54 -29
  1114. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
  1115. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +5 -1
  1116. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +29 -2
  1117. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -1
  1118. package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +4 -1
  1119. package/dist/public-api/v1/controllers/promotions.public.controller.js +70 -4
  1120. package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
  1121. package/dist/public-api/v1/controllers/source-control.public.controller.d.ts +2 -2
  1122. package/dist/public-api/v1/controllers/source-control.public.controller.js +3 -2
  1123. package/dist/public-api/v1/controllers/source-control.public.controller.js.map +1 -1
  1124. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -2
  1125. package/dist/public-api/v1/controllers/workflows.public.controller.js +13 -2
  1126. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
  1127. package/dist/public-api/v1/handlers/discover/discover.service.js +7 -86
  1128. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  1129. package/dist/public-api/v1/openapi-gen/decorator-routes.js +15 -5
  1130. package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
  1131. package/dist/public-api/v1/openapi-gen/generate.d.ts +1 -1
  1132. package/dist/public-api/v1/openapi-gen/generate.js +28 -47
  1133. package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
  1134. package/dist/public-api/v1/openapi.yml +3915 -3646
  1135. package/dist/public-api/v1/public-api-error-response.d.ts +1 -2
  1136. package/dist/public-api/v1/public-api-error-response.js +46 -2
  1137. package/dist/public-api/v1/public-api-error-response.js.map +1 -1
  1138. package/dist/requests.d.ts +6 -1
  1139. package/dist/scaling/job-outcome-tracker.d.ts +7 -6
  1140. package/dist/scaling/job-outcome-tracker.js +59 -38
  1141. package/dist/scaling/job-outcome-tracker.js.map +1 -1
  1142. package/dist/scaling/job-processor.d.ts +3 -0
  1143. package/dist/scaling/job-processor.js +39 -0
  1144. package/dist/scaling/job-processor.js.map +1 -1
  1145. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  1146. package/dist/scaling/scaling.service.d.ts +1 -1
  1147. package/dist/scaling/scaling.service.js +8 -5
  1148. package/dist/scaling/scaling.service.js.map +1 -1
  1149. package/dist/scaling/scaling.types.d.ts +1 -0
  1150. package/dist/scaling/worker-status.service.ee.js +2 -2
  1151. package/dist/scaling/worker-status.service.ee.js.map +1 -1
  1152. package/dist/scheduling/durable-scheduler.js +3 -4
  1153. package/dist/scheduling/durable-scheduler.js.map +1 -1
  1154. package/dist/scheduling/poll-trigger-node/durable-poller-chain.js.map +1 -1
  1155. package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -1
  1156. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +0 -1
  1157. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +1 -3
  1158. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
  1159. package/dist/scheduling/system-tasks/in-memory-system-task-runner.d.ts +1 -0
  1160. package/dist/scheduling/system-tasks/in-memory-system-task-runner.js +2 -2
  1161. package/dist/scheduling/system-tasks/in-memory-system-task-runner.js.map +1 -1
  1162. package/dist/scheduling/system-tasks/system-task-job-registrar.d.ts +9 -3
  1163. package/dist/scheduling/system-tasks/system-task-job-registrar.js +16 -5
  1164. package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
  1165. package/dist/scheduling/system-tasks/system-task-run-observer.js +3 -3
  1166. package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
  1167. package/dist/scheduling/system-tasks/system-task-runner.d.ts +1 -1
  1168. package/dist/scheduling/system-tasks/system-task-runner.js +21 -21
  1169. package/dist/scheduling/system-tasks/system-task-runner.js.map +1 -1
  1170. package/dist/server.js +2 -2
  1171. package/dist/server.js.map +1 -1
  1172. package/dist/services/active-workflows.service.d.ts +6 -1
  1173. package/dist/services/active-workflows.service.js +22 -8
  1174. package/dist/services/active-workflows.service.js.map +1 -1
  1175. package/dist/services/ai-workflow-builder.service.d.ts +1 -1
  1176. package/dist/services/ai-workflow-builder.service.js +2 -2
  1177. package/dist/services/ai-workflow-builder.service.js.map +1 -1
  1178. package/dist/services/ai.service.d.ts +0 -1
  1179. package/dist/services/ai.service.js +0 -4
  1180. package/dist/services/ai.service.js.map +1 -1
  1181. package/dist/services/api-key-auth.strategy.d.ts +2 -2
  1182. package/dist/services/api-key-auth.strategy.js +4 -4
  1183. package/dist/services/api-key-auth.strategy.js.map +1 -1
  1184. package/dist/services/frontend.service.d.ts +3 -1
  1185. package/dist/services/frontend.service.js +7 -2
  1186. package/dist/services/frontend.service.js.map +1 -1
  1187. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
  1188. package/dist/services/pruning/activity-pruning.task.d.ts +2 -3
  1189. package/dist/services/pruning/activity-pruning.task.js +8 -6
  1190. package/dist/services/pruning/activity-pruning.task.js.map +1 -1
  1191. package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +2 -5
  1192. package/dist/services/pruning/execution-pruning-hard-delete.task.js +9 -4
  1193. package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -1
  1194. package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +2 -4
  1195. package/dist/services/pruning/execution-pruning-soft-delete.task.js +6 -3
  1196. package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
  1197. package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +2 -4
  1198. package/dist/services/pruning/workflow-history-compaction-optimize.task.js +6 -3
  1199. package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
  1200. package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -5
  1201. package/dist/services/pruning/workflow-history-compaction-trim.task.js +7 -4
  1202. package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
  1203. package/dist/services/pruning/workflow-history-compaction.service.d.ts +2 -10
  1204. package/dist/services/pruning/workflow-history-compaction.service.js +2 -46
  1205. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  1206. package/dist/services/pruning/workflow-history-pruning.task.d.ts +2 -4
  1207. package/dist/services/pruning/workflow-history-pruning.task.js +9 -7
  1208. package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
  1209. package/dist/services/public-api-key.service.d.ts +1 -1
  1210. package/dist/services/public-api-key.service.js +2 -2
  1211. package/dist/services/public-api-key.service.js.map +1 -1
  1212. package/dist/services/rate-limit.service.d.ts +5 -0
  1213. package/dist/services/rate-limit.service.js +14 -0
  1214. package/dist/services/rate-limit.service.js.map +1 -1
  1215. package/dist/services/session-cookie-auth.strategy.d.ts +1 -1
  1216. package/dist/services/user.service.d.ts +1 -2
  1217. package/dist/services/user.service.js +1 -2
  1218. package/dist/services/user.service.js.map +1 -1
  1219. package/dist/services/workflow-statistics-rollup.task.d.ts +4 -5
  1220. package/dist/services/workflow-statistics-rollup.task.js +9 -10
  1221. package/dist/services/workflow-statistics-rollup.task.js.map +1 -1
  1222. package/dist/services/workflow-statistics.service.d.ts +0 -1
  1223. package/dist/services/workflow-statistics.service.js +0 -5
  1224. package/dist/services/workflow-statistics.service.js.map +1 -1
  1225. package/dist/telemetry/telemetry-buffer-flush.task.d.ts +2 -3
  1226. package/dist/telemetry/telemetry-buffer-flush.task.js +1 -5
  1227. package/dist/telemetry/telemetry-buffer-flush.task.js.map +1 -1
  1228. package/dist/telemetry/telemetry-pulse.task.d.ts +2 -5
  1229. package/dist/telemetry/telemetry-pulse.task.js +7 -4
  1230. package/dist/telemetry/telemetry-pulse.task.js.map +1 -1
  1231. package/dist/user-management/email/node-mailer.js.map +1 -1
  1232. package/dist/user-management/email/templates/migration-findings.handlebars +212 -0
  1233. package/dist/user-management/email/user-management-mailer.d.ts +13 -1
  1234. package/dist/user-management/email/user-management-mailer.js +22 -0
  1235. package/dist/user-management/email/user-management-mailer.js.map +1 -1
  1236. package/dist/utils/container-limits.d.ts +9 -0
  1237. package/dist/utils/container-limits.js +59 -0
  1238. package/dist/utils/container-limits.js.map +1 -0
  1239. package/dist/utils/detect-runtime.d.ts +4 -0
  1240. package/dist/utils/detect-runtime.js +27 -0
  1241. package/dist/utils/detect-runtime.js.map +1 -0
  1242. package/dist/utils/object-to-error.js +1 -1
  1243. package/dist/utils/object-to-error.js.map +1 -1
  1244. package/dist/utils.js +8 -3
  1245. package/dist/utils.js.map +1 -1
  1246. package/dist/wait-tracker.js +8 -0
  1247. package/dist/wait-tracker.js.map +1 -1
  1248. package/dist/webhooks/hitl-interaction-webhooks.js +4 -1
  1249. package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
  1250. package/dist/webhooks/live-webhooks.d.ts +1 -1
  1251. package/dist/webhooks/live-webhooks.js +2 -2
  1252. package/dist/webhooks/live-webhooks.js.map +1 -1
  1253. package/dist/webhooks/test-webhook-registrations.service.d.ts +1 -1
  1254. package/dist/webhooks/waiting-forms.js +3 -2
  1255. package/dist/webhooks/waiting-forms.js.map +1 -1
  1256. package/dist/webhooks/waiting-webhooks.js +3 -0
  1257. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  1258. package/dist/webhooks/webhook-helpers.js +43 -27
  1259. package/dist/webhooks/webhook-helpers.js.map +1 -1
  1260. package/dist/webhooks/webhook-request-sanitizer.js +4 -2
  1261. package/dist/webhooks/webhook-request-sanitizer.js.map +1 -1
  1262. package/dist/webhooks/webhook.types.d.ts +2 -0
  1263. package/dist/workflow-execute-additional-data.js +12 -9
  1264. package/dist/workflow-execute-additional-data.js.map +1 -1
  1265. package/dist/workflow-helpers.js +19 -3
  1266. package/dist/workflow-helpers.js.map +1 -1
  1267. package/dist/workflow-runner.js +6 -5
  1268. package/dist/workflow-runner.js.map +1 -1
  1269. package/dist/workflows/error-workflow-validation.service.d.ts +1 -1
  1270. package/dist/workflows/error-workflow-validation.service.js +2 -2
  1271. package/dist/workflows/error-workflow-validation.service.js.map +1 -1
  1272. package/dist/workflows/publication/format-node-failures.d.ts +4 -0
  1273. package/dist/workflows/publication/format-node-failures.js +6 -0
  1274. package/dist/workflows/publication/format-node-failures.js.map +1 -1
  1275. package/dist/workflows/publication/publication-status-reporter.d.ts +1 -1
  1276. package/dist/workflows/publication/publication-status-reporter.js +9 -6
  1277. package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
  1278. package/dist/workflows/publication/workflow-publication-applier.d.ts +1 -1
  1279. package/dist/workflows/publication/workflow-publication-applier.js +3 -4
  1280. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  1281. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.d.ts +2 -4
  1282. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js +7 -7
  1283. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js.map +1 -1
  1284. package/dist/workflows/publication/workflow-publication-status.service.d.ts +2 -0
  1285. package/dist/workflows/publication/workflow-publication-status.service.js +14 -0
  1286. package/dist/workflows/publication/workflow-publication-status.service.js.map +1 -1
  1287. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -2
  1288. package/dist/workflows/triggers/trigger-execution-context.factory.js +1 -2
  1289. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  1290. package/dist/workflows/workflow-execution.service.d.ts +1 -2
  1291. package/dist/workflows/workflow-execution.service.js +1 -2
  1292. package/dist/workflows/workflow-execution.service.js.map +1 -1
  1293. package/dist/workflows/workflow-finder.service.d.ts +1 -0
  1294. package/dist/workflows/workflow-finder.service.js +2 -1
  1295. package/dist/workflows/workflow-finder.service.js.map +1 -1
  1296. package/dist/workflows/workflow.service.d.ts +1 -4
  1297. package/dist/workflows/workflow.service.ee.d.ts +8 -5
  1298. package/dist/workflows/workflow.service.ee.js +57 -12
  1299. package/dist/workflows/workflow.service.ee.js.map +1 -1
  1300. package/dist/workflows/workflow.service.js +1 -4
  1301. package/dist/workflows/workflow.service.js.map +1 -1
  1302. package/package.json +45 -44
  1303. package/templates/admin-consent-callback.handlebars +19 -0
  1304. package/dist/credentials/executing-user-identifier-proxy.d.ts +0 -7
  1305. package/dist/credentials/executing-user-identifier-proxy.js +0 -25
  1306. package/dist/credentials/executing-user-identifier-proxy.js.map +0 -1
  1307. package/dist/credentials/executing-user-identifier.interface.d.ts +0 -4
  1308. package/dist/credentials/executing-user-identifier.interface.js +0 -3
  1309. package/dist/credentials/executing-user-identifier.interface.js.map +0 -1
  1310. package/dist/executions/execution-redaction-proxy.service.d.ts +0 -7
  1311. package/dist/executions/execution-redaction-proxy.service.js +0 -31
  1312. package/dist/executions/execution-redaction-proxy.service.js.map +0 -1
  1313. package/dist/executions/execution-redaction.d.ts +0 -21
  1314. package/dist/executions/execution-redaction.js +0 -7
  1315. package/dist/executions/execution-redaction.js.map +0 -1
  1316. package/dist/jwks/jwks.registry.d.ts +0 -10
  1317. package/dist/jwks/jwks.registry.js +0 -31
  1318. package/dist/jwks/jwks.registry.js.map +0 -1
  1319. package/dist/jwks/jwks.schemas.d.ts +0 -178
  1320. package/dist/jwks/jwks.schemas.js +0 -31
  1321. package/dist/jwks/jwks.schemas.js.map +0 -1
  1322. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +0 -16
  1323. package/dist/modules/agents/builder/agents-builder-prompts.js +0 -425
  1324. package/dist/modules/agents/builder/agents-builder-prompts.js.map +0 -1
  1325. package/dist/modules/agents/builder/agents-builder.service.d.ts +0 -47
  1326. package/dist/modules/agents/builder/agents-builder.service.js +0 -222
  1327. package/dist/modules/agents/builder/agents-builder.service.js.map +0 -1
  1328. package/dist/modules/agents/builder/errors.d.ts +0 -9
  1329. package/dist/modules/agents/builder/errors.js +0 -22
  1330. package/dist/modules/agents/builder/errors.js.map +0 -1
  1331. package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +0 -1
  1332. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +0 -62
  1333. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +0 -1
  1334. package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +0 -1
  1335. package/dist/modules/agents/builder/prompts/memory.prompt.js +0 -43
  1336. package/dist/modules/agents/builder/prompts/memory.prompt.js.map +0 -1
  1337. package/dist/modules/agents/builder/prompts/planner-todos.prompt.d.ts +0 -2
  1338. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js +0 -22
  1339. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js.map +0 -1
  1340. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +0 -1
  1341. package/dist/modules/agents/builder/prompts/tools.prompt.js +0 -102
  1342. package/dist/modules/agents/builder/prompts/tools.prompt.js.map +0 -1
  1343. package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +0 -1
  1344. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.d.ts +0 -2
  1345. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js.map +0 -1
  1346. package/dist/modules/data-table/middleware/branch-write-access-middleware.d.ts +0 -2
  1347. package/dist/modules/data-table/middleware/branch-write-access-middleware.js +0 -14
  1348. package/dist/modules/data-table/middleware/branch-write-access-middleware.js.map +0 -1
  1349. package/dist/modules/instance-ai/eval/api-docs.d.ts +0 -1
  1350. package/dist/modules/instance-ai/eval/api-docs.js +0 -78
  1351. package/dist/modules/instance-ai/eval/api-docs.js.map +0 -1
  1352. package/dist/modules/instance-ai/instance-ai-credit-display.d.ts +0 -9
  1353. package/dist/modules/instance-ai/instance-ai-credit-display.js +0 -15
  1354. package/dist/modules/instance-ai/instance-ai-credit-display.js.map +0 -1
  1355. package/dist/modules/quick-connect/handlers/firecrawl.handler.d.ts +0 -13
  1356. package/dist/modules/quick-connect/handlers/firecrawl.handler.js +0 -50
  1357. package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +0 -1
  1358. package/dist/modules/quick-connect/handlers/handler.interface.d.ts +0 -9
  1359. package/dist/modules/quick-connect/handlers/handler.interface.js.map +0 -1
  1360. package/dist/modules/quick-connect/quick-connect.config.d.ts +0 -462
  1361. package/dist/modules/quick-connect/quick-connect.config.js +0 -72
  1362. package/dist/modules/quick-connect/quick-connect.config.js.map +0 -1
  1363. package/dist/modules/quick-connect/quick-connect.controller.d.ts +0 -10
  1364. package/dist/modules/quick-connect/quick-connect.controller.js.map +0 -1
  1365. package/dist/modules/quick-connect/quick-connect.errors.d.ts +0 -5
  1366. package/dist/modules/quick-connect/quick-connect.errors.js +0 -12
  1367. package/dist/modules/quick-connect/quick-connect.errors.js.map +0 -1
  1368. package/dist/modules/quick-connect/quick-connect.module.d.ts +0 -49
  1369. package/dist/modules/quick-connect/quick-connect.module.js +0 -36
  1370. package/dist/modules/quick-connect/quick-connect.module.js.map +0 -1
  1371. package/dist/modules/quick-connect/quick-connect.service.d.ts +0 -13
  1372. package/dist/modules/quick-connect/quick-connect.service.js +0 -61
  1373. package/dist/modules/quick-connect/quick-connect.service.js.map +0 -1
  1374. package/dist/modules/workflow-builder/index.d.ts +0 -3
  1375. package/dist/modules/workflow-builder/index.js +0 -10
  1376. package/dist/modules/workflow-builder/index.js.map +0 -1
  1377. package/dist/modules/workflow-builder/workflow-builder-session.entity.d.ts +0 -26
  1378. package/dist/modules/workflow-builder/workflow-builder-session.entity.js +0 -72
  1379. package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +0 -1
  1380. package/dist/modules/workflow-builder/workflow-builder-session.repository.d.ts +0 -10
  1381. package/dist/modules/workflow-builder/workflow-builder-session.repository.js +0 -79
  1382. package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +0 -1
  1383. package/dist/modules/workflow-builder/workflow-builder.module.d.ts +0 -4
  1384. package/dist/modules/workflow-builder/workflow-builder.module.js.map +0 -1
  1385. package/dist/oauth/oauth-jwe-service.proxy.d.ts +0 -19
  1386. package/dist/oauth/oauth-jwe-service.proxy.js +0 -32
  1387. package/dist/oauth/oauth-jwe-service.proxy.js.map +0 -1
  1388. package/dist/public-api/v1/handlers/decorator-routed.handler.d.ts +0 -2
  1389. package/dist/public-api/v1/handlers/decorator-routed.handler.js +0 -10
  1390. package/dist/public-api/v1/handlers/decorator-routed.handler.js.map +0 -1
  1391. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +0 -9
  1392. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +0 -113
  1393. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +0 -1
  1394. package/dist/public-api/v1/shared/handler.types.d.ts +0 -9
  1395. package/dist/public-api/v1/shared/handler.types.js +0 -3
  1396. package/dist/public-api/v1/shared/handler.types.js.map +0 -1
  1397. package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +0 -31
  1398. package/dist/public-api/v1/shared/middlewares/global.middleware.js +0 -126
  1399. package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +0 -1
  1400. package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +0 -5
  1401. package/dist/public-api/v1/shared/public-api-scope-lookup.js +0 -60
  1402. package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +0 -1
  1403. package/dist/services/auth-strategy.registry.d.ts +0 -8
  1404. package/dist/services/auth-strategy.registry.js +0 -44
  1405. package/dist/services/auth-strategy.registry.js.map +0 -1
  1406. package/dist/services/auth-strategy.types.d.ts +0 -10
  1407. package/dist/services/auth-strategy.types.js +0 -3
  1408. package/dist/services/auth-strategy.types.js.map +0 -1
  1409. package/dist/services/instance-activation.service.d.ts +0 -10
  1410. package/dist/services/instance-activation.service.js +0 -48
  1411. package/dist/services/instance-activation.service.js.map +0 -1
  1412. package/dist/services/instance-registry-proxy.service.d.ts +0 -11
  1413. package/dist/services/instance-registry-proxy.service.js +0 -33
  1414. package/dist/services/instance-registry-proxy.service.js.map +0 -1
  1415. package/dist/services/jwt.service.d.ts +0 -24
  1416. package/dist/services/jwt.service.js +0 -104
  1417. package/dist/services/jwt.service.js.map +0 -1
  1418. package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -33
  1419. package/dist/services/oauth-token-verifier-proxy.service.js +0 -36
  1420. package/dist/services/oauth-token-verifier-proxy.service.js.map +0 -1
  1421. package/dist/services/oauth2-flow-proxy.service.d.ts +0 -13
  1422. package/dist/services/oauth2-flow-proxy.service.js +0 -39
  1423. package/dist/services/oauth2-flow-proxy.service.js.map +0 -1
  1424. package/dist/services/protected-resource.registry.d.ts +0 -25
  1425. package/dist/services/protected-resource.registry.js +0 -124
  1426. package/dist/services/protected-resource.registry.js.map +0 -1
  1427. package/dist/services/role-mapping-proxy.service.d.ts +0 -53
  1428. package/dist/services/role-mapping-proxy.service.js +0 -26
  1429. package/dist/services/role-mapping-proxy.service.js.map +0 -1
  1430. package/dist/services/runtime-credential-proxy.service.d.ts +0 -9
  1431. package/dist/services/runtime-credential-proxy.service.js +0 -29
  1432. package/dist/services/runtime-credential-proxy.service.js.map +0 -1
  1433. package/dist/services/token-purposes.d.ts +0 -21
  1434. package/dist/services/token-purposes.js +0 -27
  1435. package/dist/services/token-purposes.js.map +0 -1
  1436. package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +0 -9
  1437. package/dist/workflows/restricted-node-types-provider-proxy.service.js +0 -26
  1438. package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +0 -1
  1439. package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +0 -24
  1440. package/dist/workflows/workflow-mutation-hooks-proxy.service.js +0 -38
  1441. package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +0 -1
  1442. package/dist/workflows/workflow-publish-guard-proxy.service.d.ts +0 -8
  1443. package/dist/workflows/workflow-publish-guard-proxy.service.js +0 -26
  1444. package/dist/workflows/workflow-publish-guard-proxy.service.js.map +0 -1
  1445. package/dist/workflows/workflow-published-data.service.d.ts +0 -19
  1446. package/dist/workflows/workflow-published-data.service.js +0 -70
  1447. package/dist/workflows/workflow-published-data.service.js.map +0 -1
  1448. /package/dist/modules/breaking-changes/migrations/{ai-transform-to-code.migration.js → node-removals/ai-transform-to-code.migration.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { type ExecutionRepository, type User } from '@n8n/db';
2
2
  import z from 'zod';
3
3
  import type { ToolDefinition } from '../mcp.types';
4
- import type { ExecutionRedactionServiceProxy } from '../../../executions/execution-redaction-proxy.service';
4
+ import type { ExecutionRedactionServiceProxy } from '@n8n/backend-services';
5
5
  import type { Telemetry } from '../../../telemetry';
6
6
  import type { WorkflowFinderService } from '../../../workflows/workflow-finder.service';
7
7
  declare const inputSchema: z.ZodObject<{
@@ -0,0 +1,11 @@
1
+ import type { User } from '@n8n/db';
2
+ import { SkillsApiService } from '../../../../modules/agents/skills/skills-api.service';
3
+ import { Telemetry } from '../../../../telemetry';
4
+ import type { RegisterToolFn } from '../../mcp.types';
5
+ export declare class McpSkillToolsService {
6
+ private readonly telemetry;
7
+ private readonly skillsApi;
8
+ constructor(telemetry: Telemetry, skillsApi: SkillsApiService);
9
+ registerTools(registerTool: RegisterToolFn, user: User): void;
10
+ private run;
11
+ }
@@ -0,0 +1,242 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.McpSkillToolsService = void 0;
13
+ const api_types_1 = require("@n8n/api-types");
14
+ const di_1 = require("@n8n/di");
15
+ const errors_1 = require("@n8n/errors");
16
+ const zod_1 = require("zod");
17
+ const skill_name_taken_error_1 = require("../../../../modules/agents/skills/skill-name-taken.error");
18
+ const skills_api_service_1 = require("../../../../modules/agents/skills/skills-api.service");
19
+ const telemetry_1 = require("../../../../telemetry");
20
+ const mcp_constants_1 = require("../../mcp.constants");
21
+ const tool_error_utils_1 = require("../tool-error.utils");
22
+ const tool_result_utils_1 = require("../tool-result.utils");
23
+ const searchSkillsInput = {
24
+ query: zod_1.z.string().trim().max(200).optional().describe('Filter by skill name or description'),
25
+ scope: api_types_1.skillScopeSchema.optional().describe('Only skills of this scope'),
26
+ projectId: zod_1.z.string().min(1).optional().describe('Only skills of this project'),
27
+ attachableToAgentId: zod_1.z
28
+ .string()
29
+ .min(1)
30
+ .optional()
31
+ .describe('Only the skills this Agent may attach. Do not combine with scope or projectId'),
32
+ limit: zod_1.z.number().int().min(1).max(api_types_1.SKILLS_MAX_PAGE_SIZE).optional().default(50),
33
+ skip: zod_1.z.number().int().min(0).optional().default(0).describe('Skills to skip, for the next page'),
34
+ };
35
+ const skillIdInput = {
36
+ skillId: zod_1.z.string().min(1).describe('The skill ID from search_skills'),
37
+ };
38
+ const createSkillInput = {
39
+ scope: zod_1.z
40
+ .enum(['project', 'instance'])
41
+ .describe('project: one project can use the skill. instance: every project can use it'),
42
+ projectId: zod_1.z.string().min(1).optional().describe('Required when scope is project'),
43
+ skill: api_types_1.CreateSkillDto.schema.shape.skill,
44
+ };
45
+ const updateSkillInput = {
46
+ ...skillIdInput,
47
+ ...api_types_1.SaveSkillDto.schema.shape,
48
+ baseSkillHash: api_types_1.SaveSkillDto.schema.shape.baseSkillHash.describe('skillHash from get_skill. The update is refused if the skill changed since'),
49
+ scope: api_types_1.SaveSkillDto.schema.shape.scope.describe('Moves the skill. Refused while an Agent uses it'),
50
+ };
51
+ function summary(item) {
52
+ return {
53
+ id: item.id,
54
+ name: item.name,
55
+ description: item.description,
56
+ scope: item.scope,
57
+ projectId: item.projectId,
58
+ projectName: item.projectName,
59
+ agentId: item.agentId,
60
+ agentName: item.agentName,
61
+ latestVersion: item.latestVersion,
62
+ usedByAgents: item.usedByAgents,
63
+ canEdit: item.canEdit,
64
+ canDelete: item.canDelete,
65
+ updatedAt: item.updatedAt,
66
+ };
67
+ }
68
+ function details(detail) {
69
+ return {
70
+ ...summary(detail),
71
+ skill: detail.skill,
72
+ skillHash: detail.skillHash,
73
+ usedBy: detail.usedBy,
74
+ };
75
+ }
76
+ let McpSkillToolsService = class McpSkillToolsService {
77
+ constructor(telemetry, skillsApi) {
78
+ this.telemetry = telemetry;
79
+ this.skillsApi = skillsApi;
80
+ }
81
+ registerTools(registerTool, user) {
82
+ registerTool({
83
+ name: 'search_skills',
84
+ config: {
85
+ description: 'Search the skills hub. Skills are reusable instructions.',
86
+ inputSchema: searchSkillsInput,
87
+ annotations: {
88
+ title: 'Search Skills',
89
+ readOnlyHint: true,
90
+ destructiveHint: false,
91
+ idempotentHint: true,
92
+ openWorldHint: false,
93
+ },
94
+ },
95
+ handler: async (input) => await this.run(user, 'search_skills', { scope: input.scope }, async () => {
96
+ const { count, data } = await this.skillsApi.list(user, api_types_1.ListSkillsQueryDto.parse({
97
+ search: input.query,
98
+ scope: input.scope,
99
+ projectId: input.projectId,
100
+ attachableTo: input.attachableToAgentId,
101
+ skip: String(input.skip),
102
+ take: String(input.limit),
103
+ }));
104
+ return { count, skills: data.map(summary) };
105
+ }),
106
+ });
107
+ registerTool({
108
+ name: 'get_skill',
109
+ config: {
110
+ description: 'Read a skill with its instructions, references, skillHash and the Agents that use it.',
111
+ inputSchema: skillIdInput,
112
+ annotations: {
113
+ title: 'Get Skill',
114
+ readOnlyHint: true,
115
+ destructiveHint: false,
116
+ idempotentHint: true,
117
+ openWorldHint: false,
118
+ },
119
+ },
120
+ handler: async ({ skillId }) => await this.run(user, 'get_skill', { skillId }, async () => details(await this.skillsApi.get(user, skillId))),
121
+ });
122
+ registerTool({
123
+ name: 'create_skill',
124
+ config: {
125
+ description: 'Create a skill in the skills hub.',
126
+ inputSchema: createSkillInput,
127
+ annotations: {
128
+ title: 'Create Skill',
129
+ readOnlyHint: false,
130
+ destructiveHint: false,
131
+ idempotentHint: false,
132
+ openWorldHint: false,
133
+ },
134
+ },
135
+ handler: async (input) => await this.run(user, 'create_skill', { scope: input.scope }, async () => {
136
+ try {
137
+ const detail = await this.skillsApi.create(user, api_types_1.CreateSkillDto.parse({
138
+ scope: input.scope,
139
+ projectId: input.projectId,
140
+ skill: input.skill,
141
+ }), 'mcp');
142
+ return details(detail);
143
+ }
144
+ catch (error) {
145
+ if (!(error instanceof skill_name_taken_error_1.SkillNameTakenError))
146
+ throw error;
147
+ return {
148
+ ok: false,
149
+ code: 'skill_name_taken',
150
+ message: (0, skill_name_taken_error_1.skillNameTakenToolMessage)(error.skillName),
151
+ };
152
+ }
153
+ }),
154
+ });
155
+ registerTool({
156
+ name: 'update_skill',
157
+ config: {
158
+ description: 'Update a skill. The update creates a new version of the skill. Pass only the fields to change.',
159
+ inputSchema: updateSkillInput,
160
+ annotations: {
161
+ title: 'Update Skill',
162
+ readOnlyHint: false,
163
+ destructiveHint: false,
164
+ idempotentHint: true,
165
+ openWorldHint: false,
166
+ },
167
+ },
168
+ handler: async ({ skillId, ...update }) => await this.run(user, 'update_skill', { skillId, scope: update.scope }, async () => {
169
+ try {
170
+ const { skill: _skill, ...saved } = await this.skillsApi.update(user, skillId, api_types_1.SaveSkillDto.parse(update), 'mcp');
171
+ return saved;
172
+ }
173
+ catch (error) {
174
+ if (error instanceof skill_name_taken_error_1.SkillNameTakenError) {
175
+ return {
176
+ ok: false,
177
+ code: 'skill_name_taken',
178
+ skillId,
179
+ message: (0, skill_name_taken_error_1.skillNameTakenToolMessage)(error.skillName),
180
+ };
181
+ }
182
+ if (!(error instanceof errors_1.ConflictError))
183
+ throw error;
184
+ const { skillHash } = await this.skillsApi.get(user, skillId);
185
+ if (skillHash === update.baseSkillHash)
186
+ throw error;
187
+ return {
188
+ ok: false,
189
+ code: 'stale_skill',
190
+ skillId,
191
+ skillHash,
192
+ message: 'The skill changed since you read it. Call get_skill before retrying.',
193
+ };
194
+ }
195
+ }),
196
+ });
197
+ registerTool({
198
+ name: 'delete_skill',
199
+ config: {
200
+ description: 'Permanently delete a skill from the skills hub. Refused while an Agent uses it.',
201
+ inputSchema: skillIdInput,
202
+ annotations: {
203
+ title: 'Delete Skill',
204
+ readOnlyHint: false,
205
+ destructiveHint: true,
206
+ idempotentHint: true,
207
+ openWorldHint: false,
208
+ },
209
+ },
210
+ handler: async ({ skillId }) => await this.run(user, 'delete_skill', { skillId }, async () => {
211
+ await this.skillsApi.delete(user, skillId, 'mcp');
212
+ return { deleted: true, skillId };
213
+ }),
214
+ });
215
+ }
216
+ async run(user, toolName, parameters, action) {
217
+ const telemetryPayload = {
218
+ user_id: user.id,
219
+ tool_name: toolName,
220
+ parameters,
221
+ };
222
+ try {
223
+ const data = await action();
224
+ telemetryPayload.results = { success: data.ok !== false };
225
+ this.telemetry.track(mcp_constants_1.USER_CALLED_MCP_TOOL_EVENT, telemetryPayload);
226
+ return (0, tool_result_utils_1.toolResult)(data, data.ok === false);
227
+ }
228
+ catch (error) {
229
+ return (0, tool_error_utils_1.trackAndReturnToolError)(this.telemetry, telemetryPayload, error, (message) => ({
230
+ ok: false,
231
+ code: 'skill_tool_error',
232
+ error: message,
233
+ }));
234
+ }
235
+ }
236
+ };
237
+ exports.McpSkillToolsService = McpSkillToolsService;
238
+ exports.McpSkillToolsService = McpSkillToolsService = __decorate([
239
+ (0, di_1.Service)(),
240
+ __metadata("design:paramtypes", [telemetry_1.Telemetry, skills_api_service_1.SkillsApiService])
241
+ ], McpSkillToolsService);
242
+ //# sourceMappingURL=skill-tools.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-tools.service.js","sourceRoot":"","sources":["../../../../../src/modules/mcp/tools/skills/skill-tools.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAQwB;AAExB,gCAAkC;AAClC,wCAA4C;AAC5C,6BAAwB;AAExB,2FAGwD;AACxD,mFAA8E;AAC9E,2CAAwC;AAExC,uDAAiE;AAEjE,0DAA8D;AAC9D,4DAAkD;AAElD,MAAM,iBAAiB,GAAG;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC5F,KAAK,EAAE,4BAAgB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACxE,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC/E,mBAAmB,EAAE,OAAC;SACpB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,+EAA+E,CAAC;IAC3F,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,gCAAoB,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/E,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC;CACzE,CAAC;AAE1B,MAAM,YAAY,GAAG;IACpB,OAAO,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AAK,CAAC,CAAC;gBAClD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;YACnC,CAAC,CAAC;SACH,CAAC,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,GAAG,CAChB,IAAU,EACV,QAAgB,EAChB,UAAmC,EACnC,MAA8C;QAE9C,MAAM,gBAAgB,GAAkC;YACvD,OAAO,EAAE,IAAI,CAAC,EAAE;YAChB,SAAS,EAAE,QAAQ;YACnB,UAAU;SACV,CAAC;QACF,IAAI,CAAC;YACJ,MAAM,IAAI,GAAG,MAAM,MAAM,EAAE,CAAC;YAC5B,gBAAgB,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,KAAK,KAAK,EAAE,CAAC;YAC1D,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,0CAA0B,EAAE,gBAAgB,CAAC,CAAC;YACnE,OAAO,IAAA,8BAAU,EAAC,IAAI,EAAE,IAAI,CAAC,EAAE,KAAK,KAAK,CAAC,CAAC;QAC5C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,OAAO,IAAA,0CAAuB,EAAC,IAAI,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBACrF,EAAE,EAAE,KAAK;gBACT,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,OAAO;aACd,CAAC,CAAC,CAAC;QACL,CAAC;IACF,CAAC;CACD,CAAA;;+BA3LY,oBAAoB;IADhC,IAAA,YAAO,GAAE;qCAGoB,qBAAS,EACT,qCAAgB;GAHjC,oBAAoB,CA2LhC"}
@@ -0,0 +1,8 @@
1
+ export declare function toolResult(data: Record<string, unknown>, isError?: boolean): {
2
+ content: {
3
+ type: 'text';
4
+ text: string;
5
+ }[];
6
+ structuredContent: Record<string, unknown>;
7
+ isError?: boolean | undefined;
8
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toolResult = toolResult;
4
+ function toolResult(data, isError = false) {
5
+ return {
6
+ content: [{ type: 'text', text: JSON.stringify(data) }],
7
+ structuredContent: data,
8
+ ...(isError ? { isError: true } : {}),
9
+ };
10
+ }
11
+ //# sourceMappingURL=tool-result.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-result.utils.js","sourceRoot":"","sources":["../../../../src/modules/mcp/tools/tool-result.utils.ts"],"names":[],"mappings":";;;AAAA,oBAA2B,IAA6B,EAAE,OAAO,GAAG,KAAK;IACxE,OAAO;QACN,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;QAChE,iBAAiB,EAAE,IAAI;QACvB,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACrC,CAAC;AACH,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { CustomFetch } from '@n8n/backend-network';
2
+ import type { ICredentialDataDecryptedObject } from 'n8n-workflow';
3
+ import type { OauthService } from '../../oauth/oauth.service';
4
+ import { type AuthFetchDomainPolicy } from '../../utils/auth-fetch';
5
+ export declare function resolveMcpAuthDomainPolicy(authentication: string, credentialData: ICredentialDataDecryptedObject, mcpHostname: string | undefined): AuthFetchDomainPolicy | undefined;
6
+ export declare function createMcpAuthFetch({ allowedDomains, authentication, baseFetch, credentialData, credentialId, initialHeaders, oauthService, projectId, }: {
7
+ allowedDomains?: AuthFetchDomainPolicy;
8
+ authentication: string;
9
+ baseFetch: CustomFetch;
10
+ credentialData: ICredentialDataDecryptedObject;
11
+ credentialId?: string;
12
+ initialHeaders: Record<string, string>;
13
+ oauthService: OauthService;
14
+ projectId: string | null;
15
+ }): CustomFetch;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveMcpAuthDomainPolicy = resolveMcpAuthDomainPolicy;
4
+ exports.createMcpAuthFetch = createMcpAuthFetch;
5
+ const is_record_1 = require("@n8n/utils/is-record");
6
+ const n8n_workflow_1 = require("n8n-workflow");
7
+ const auth_fetch_1 = require("../../utils/auth-fetch");
8
+ function isNativeOAuth2Credential(authentication) {
9
+ return ((0, n8n_workflow_1.isMcpOAuth2Authentication)(authentication) &&
10
+ authentication !== 'mcpOAuth2Api' &&
11
+ !authentication.endsWith('McpOAuth2Api'));
12
+ }
13
+ function resolveMcpAuthDomainPolicy(authentication, credentialData, mcpHostname) {
14
+ if (!isNativeOAuth2Credential(authentication) || !mcpHostname) {
15
+ return (0, auth_fetch_1.resolveAllowedDomains)(credentialData);
16
+ }
17
+ switch (credentialData.allowedHttpRequestDomains) {
18
+ case 'domains':
19
+ return (0, auth_fetch_1.resolveAllowedDomains)(credentialData);
20
+ case 'all':
21
+ return undefined;
22
+ default:
23
+ return { mode: 'domains', domains: mcpHostname };
24
+ }
25
+ }
26
+ function createMcpAuthFetch({ allowedDomains, authentication, baseFetch, credentialData, credentialId, initialHeaders, oauthService, projectId, }) {
27
+ const storedTokenData = credentialData.oauthTokenData;
28
+ const oauthTokenData = (0, is_record_1.isRecord)(storedTokenData) ? { ...storedTokenData } : undefined;
29
+ const refreshable = (0, n8n_workflow_1.isMcpOAuth2Authentication)(authentication) && credentialId !== undefined && projectId !== null;
30
+ const onUnauthorized = refreshable
31
+ ? async (currentHeaders) => {
32
+ if (!credentialId || !projectId)
33
+ return null;
34
+ const result = await oauthService.refreshOAuth2CredentialById(credentialId, projectId, (0, auth_fetch_1.getBearerTokenRevision)(currentHeaders, oauthTokenData?.n8n_expires_at));
35
+ if (result && oauthTokenData) {
36
+ if (result.expiresAt === undefined) {
37
+ delete oauthTokenData.n8n_expires_at;
38
+ }
39
+ else {
40
+ oauthTokenData.n8n_expires_at = String(result.expiresAt);
41
+ }
42
+ if (result.expiresInSeconds === undefined) {
43
+ delete oauthTokenData.expires_in;
44
+ }
45
+ else {
46
+ oauthTokenData.expires_in = result.expiresInSeconds;
47
+ }
48
+ }
49
+ return result?.headers ?? null;
50
+ }
51
+ : undefined;
52
+ return (0, auth_fetch_1.createAuthFetch)({
53
+ baseFetch,
54
+ initialHeaders,
55
+ onUnauthorized,
56
+ ...(onUnauthorized
57
+ ? {
58
+ shouldRefresh: () => (0, n8n_workflow_1.shouldRefreshMcpOAuth2Token)(oauthTokenData, credentialData.grantType),
59
+ }
60
+ : {}),
61
+ allowedDomains,
62
+ });
63
+ }
64
+ //# sourceMappingURL=mcp-auth-fetch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-auth-fetch.js","sourceRoot":"","sources":["../../../src/modules/mcp-registry/mcp-auth-fetch.ts"],"names":[],"mappings":";;;;AACA,oDAAgD;AAChD,+CAAsF;AAItF,mDAK4B;AAE5B,SAAS,wBAAwB,CAAC,cAAsB;IACvD,OAAO,CACN,IAAA,wCAAyB,EAAC,cAAc,CAAC;QACzC,cAAc,KAAK,cAAc;QACjC,CAAC,cAAc,CAAC,QAAQ,CAAC,cAAc,CAAC,CACxC,CAAC;AACH,CAAC;AAED,oCACC,cAAsB,EACtB,cAA8C,EAC9C,WAA+B;IAI/B,IAAI,CAAC,wBAAwB,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QAC/D,OAAO,IAAA,kCAAqB,EAAC,cAAc,CAAC,CAAC;IAC9C,CAAC;IAED,QAAQ,cAAc,CAAC,yBAAyB,EAAE,CAAC;QAClD,KAAK,SAAS;YACb,OAAO,IAAA,kCAAqB,EAAC,cAAc,CAAC,CAAC;QAC9C,KAAK,KAAK;YACT,OAAO,SAAS,CAAC;QAClB;YAEC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IACnD,CAAC;AACF,CAAC;AAED,4BAAmC,EAClC,cAAc,EACd,cAAc,EACd,SAAS,EACT,cAAc,EACd,Y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;QACd,GAAG,CAAC,cAAc;YACjB,CAAC,CAAC;gBACA,aAAa,EAAE,GAAG,EAAE,CACnB,IAAA,0CAA2B,EAAC,cAAc,EAAE,cAAc,CAAC,SAAS,CAAC;aACtE;YACF,CAAC,CAAC,EAAE,CAAC;QACN,cAAc;KACd,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { McpRegistryDiscoveryRequest, McpRegistryDiscoveryResponse } from '@n8n/api-types';
2
+ import { Logger } from '@n8n/backend-common';
3
+ import { OutboundHttp } from '@n8n/backend-network';
4
+ import { CredentialsFinderService } from '@n8n/backend-services';
5
+ import type { User } from '@n8n/db';
6
+ import { CredentialTypes } from '../../credential-types';
7
+ import { CredentialsHelper } from '../../credentials-helper';
8
+ import { OauthService } from '../../oauth/oauth.service';
9
+ import { McpRegistryService } from './registry/mcp-registry.service';
10
+ export declare class McpConnectionDiscoveryService {
11
+ private readonly registryService;
12
+ private readonly credentialsFinderService;
13
+ private readonly credentialsHelper;
14
+ private readonly credentialTypes;
15
+ private readonly oauthService;
16
+ private readonly outboundHttp;
17
+ private readonly logger;
18
+ constructor(logger: Logger, registryService: McpRegistryService, credentialsFinderService: CredentialsFinderService, credentialsHelper: CredentialsHelper, credentialTypes: CredentialTypes, oauthService: OauthService, outboundHttp: OutboundHttp);
19
+ discover(user: User, request: McpRegistryDiscoveryRequest): Promise<McpRegistryDiscoveryResponse>;
20
+ private prepareRegistrySource;
21
+ private resolveCredential;
22
+ private createCredentialFetch;
23
+ }
@@ -0,0 +1,219 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.McpConnectionDiscoveryService = void 0;
13
+ const agents_1 = require("@n8n/agents");
14
+ const agent_config_1 = require("@n8n/ai-utilities/agent-config");
15
+ const backend_common_1 = require("@n8n/backend-common");
16
+ const backend_network_1 = require("@n8n/backend-network");
17
+ const backend_services_1 = require("@n8n/backend-services");
18
+ const di_1 = require("@n8n/di");
19
+ const errors_1 = require("@n8n/errors");
20
+ const ensure_error_1 = require("@n8n/utils/errors/ensure-error");
21
+ const credential_types_1 = require("../../credential-types");
22
+ const credentials_helper_1 = require("../../credentials-helper");
23
+ const oauth_service_1 = require("../../oauth/oauth.service");
24
+ const ai_proxy_fetch_1 = require("../../utils/ai-proxy-fetch");
25
+ const mcp_auth_fetch_1 = require("./mcp-auth-fetch");
26
+ const mcp_registry_connection_1 = require("./mcp-registry-connection");
27
+ const mcp_registry_service_1 = require("./registry/mcp-registry.service");
28
+ const discoveryTimeoutMs = 10_000;
29
+ function disconnected(failureReason) {
30
+ return { status: 'disconnected', failureReason, tools: [] };
31
+ }
32
+ function stripServerPrefix(toolName, serverName) {
33
+ const prefix = `${serverName}_`;
34
+ return toolName.startsWith(prefix) ? toolName.slice(prefix.length) : toolName;
35
+ }
36
+ function safeServerName(name) {
37
+ const normalized = name.replace(/[^A-Za-z0-9_-]/g, '_');
38
+ return (normalized || 'mcp_server').slice(0, 64);
39
+ }
40
+ function toTool(tool, serverName) {
41
+ const name = tool.mcpToolName ?? stripServerPrefix(tool.name, serverName);
42
+ return {
43
+ name,
44
+ ...(tool.description ? { description: tool.description } : {}),
45
+ category: (0, agent_config_1.classifyMcpTool)({ name, annotations: tool.mcpAnnotations }),
46
+ };
47
+ }
48
+ function classifyResponseFailure(response, current) {
49
+ if (response.status === 401 || response.status === 403)
50
+ return 'authentication';
51
+ if (response.status >= 500)
52
+ return 'server_unavailable';
53
+ return current;
54
+ }
55
+ async function listToolsWithinDeadline(client, timeoutMs) {
56
+ let timeoutId;
57
+ const timeout = new Promise((_, reject) => {
58
+ timeoutId = setTimeout(() => reject(new Error(`MCP discovery timed out after ${timeoutMs}ms`)), timeoutMs);
59
+ });
60
+ try {
61
+ return await Promise.race([client.listTools(), timeout]);
62
+ }
63
+ finally {
64
+ if (timeoutId !== undefined)
65
+ clearTimeout(timeoutId);
66
+ }
67
+ }
68
+ let McpConnectionDiscoveryService = class McpConnectionDiscoveryService {
69
+ constructor(logger, registryService, credentialsFinderService, credentialsHelper, credentialTypes, oauthService, outboundHttp) {
70
+ this.registryService = registryService;
71
+ this.credentialsFinderService = credentialsFinderService;
72
+ this.credentialsHelper = credentialsHelper;
73
+ this.credentialTypes = credentialTypes;
74
+ this.oauthService = oauthService;
75
+ this.outboundHttp = outboundHttp;
76
+ this.logger = logger.scoped('mcp-registry');
77
+ }
78
+ async discover(user, request) {
79
+ let prepared;
80
+ try {
81
+ prepared = await this.prepareRegistrySource(user, request);
82
+ }
83
+ catch (error) {
84
+ if (error instanceof errors_1.NotFoundError)
85
+ throw error;
86
+ this.logger.warn('Failed to prepare MCP discovery', {
87
+ errorType: (0, ensure_error_1.ensureError)(error).name,
88
+ });
89
+ return disconnected('authentication');
90
+ }
91
+ let failureReason = 'unknown';
92
+ let receivedResponse = false;
93
+ const classifiedFetch = async (input, init) => {
94
+ try {
95
+ const response = await prepared.clientConfig.fetch(input, init);
96
+ receivedResponse = true;
97
+ failureReason = classifyResponseFailure(response, failureReason);
98
+ return response;
99
+ }
100
+ catch (error) {
101
+ failureReason = 'server_unavailable';
102
+ throw error;
103
+ }
104
+ };
105
+ const client = new agents_1.McpClient([
106
+ {
107
+ ...prepared.clientConfig,
108
+ fetch: classifiedFetch,
109
+ connectionTimeoutMs: discoveryTimeoutMs,
110
+ },
111
+ ]);
112
+ try {
113
+ const tools = (await listToolsWithinDeadline(client, discoveryTimeoutMs)).map((tool) => toTool(tool, prepared.clientConfig.name));
114
+ if (client.getConnectionFailures().length > 0)
115
+ return disconnected(failureReason);
116
+ return {
117
+ status: 'connected',
118
+ connection: prepared.responseConnection,
119
+ tools,
120
+ };
121
+ }
122
+ catch (error) {
123
+ if (failureReason === 'unknown' && !receivedResponse)
124
+ failureReason = 'server_unavailable';
125
+ this.logger.warn('MCP discovery connection failed', {
126
+ errorType: (0, ensure_error_1.ensureError)(error).name,
127
+ });
128
+ return disconnected(failureReason);
129
+ }
130
+ finally {
131
+ await client.close().catch((error) => {
132
+ this.logger.warn('Failed to close MCP discovery client', {
133
+ errorType: (0, ensure_error_1.ensureError)(error).name,
134
+ });
135
+ });
136
+ }
137
+ }
138
+ async prepareRegistrySource(user, source) {
139
+ const server = await this.registryService.get(source.slug);
140
+ if (server?.status !== 'active') {
141
+ throw new errors_1.NotFoundError('MCP registry server not found');
142
+ }
143
+ const connection = (0, mcp_registry_connection_1.resolveMcpRegistryConnection)(server);
144
+ if (!connection)
145
+ throw new errors_1.BadRequestError('MCP registry server has no supported connection');
146
+ const resolvedCredential = await this.resolveCredential(user, source.credentialId);
147
+ const { credential, data } = resolvedCredential;
148
+ if (!(0, mcp_registry_connection_1.isSupportedMcpRegistryCredentialType)(this.credentialTypes, credential.type) ||
149
+ !connection.credentialBindings.some((binding) => binding.credentialType === credential.type)) {
150
+ throw new errors_1.BadRequestError('Credential type is not supported by this MCP server');
151
+ }
152
+ const prepared = (0, mcp_registry_connection_1.prepareMcpRegistryConnection)({
153
+ connection,
154
+ credentialType: credential.type,
155
+ credentialData: data,
156
+ });
157
+ if (!prepared.ok)
158
+ throw new errors_1.BadRequestError('Credential cannot connect to this MCP server');
159
+ return {
160
+ clientConfig: {
161
+ name: safeServerName(source.slug),
162
+ url: prepared.value.endpointUrl,
163
+ transport: (0, mcp_registry_connection_1.toAgentMcpTransport)(prepared.value.transport),
164
+ fetch: this.createCredentialFetch(resolvedCredential, prepared.value.headers, {
165
+ mode: 'domains',
166
+ domains: prepared.value.allowedDomains,
167
+ }),
168
+ },
169
+ responseConnection: {
170
+ url: (0, mcp_registry_connection_1.getConfiguredEndpointUrl)(connection),
171
+ transport: (0, mcp_registry_connection_1.toAgentMcpTransport)(connection.transport),
172
+ authentication: credential.type,
173
+ credentialId: credential.id,
174
+ metadata: { nodeTypeName: connection.nodeTypeName },
175
+ },
176
+ };
177
+ }
178
+ async resolveCredential(user, credentialId) {
179
+ const readableCredential = await this.credentialsFinderService.findCredentialForUser(credentialId, user, ['credential:read']);
180
+ if (!readableCredential) {
181
+ throw new errors_1.NotFoundError('Credential not found or not accessible');
182
+ }
183
+ if (readableCredential.isResolvable) {
184
+ const connectableCredential = await this.credentialsFinderService.findCredentialForUser(credentialId, user, ['credential:connect']);
185
+ if (!connectableCredential) {
186
+ throw new errors_1.NotFoundError('Credential not found or not accessible');
187
+ }
188
+ }
189
+ const projectId = readableCredential.shared?.find((share) => share.role === 'credential:owner')?.projectId ??
190
+ readableCredential.shared?.[0]?.projectId;
191
+ if (!projectId)
192
+ throw new errors_1.BadRequestError('Credential has no owning project');
193
+ const { getBase } = await import('../../workflow-execute-additional-data.js');
194
+ const additionalData = await getBase({ projectId, userId: user.id });
195
+ const data = await this.credentialsHelper.getDecrypted(additionalData, { id: readableCredential.id, name: readableCredential.name }, readableCredential.type, 'internal');
196
+ if (!(0, backend_common_1.isObjectLiteral)(data) || Object.keys(data).length === 0) {
197
+ throw new errors_1.BadRequestError('Credential could not be resolved');
198
+ }
199
+ return { credential: readableCredential, data, projectId };
200
+ }
201
+ createCredentialFetch(resolved, initialHeaders, allowedDomains) {
202
+ return (0, mcp_auth_fetch_1.createMcpAuthFetch)({
203
+ authentication: resolved.credential.type,
204
+ baseFetch: (0, ai_proxy_fetch_1.createAiMcpFetch)(this.outboundHttp),
205
+ credentialData: resolved.data,
206
+ credentialId: resolved.credential.id,
207
+ initialHeaders,
208
+ oauthService: this.oauthService,
209
+ projectId: resolved.projectId,
210
+ allowedDomains,
211
+ });
212
+ }
213
+ };
214
+ exports.McpConnectionDiscoveryService = McpConnectionDiscoveryService;
215
+ exports.McpConnectionDiscoveryService = McpConnectionDiscoveryService = __decorate([
216
+ (0, di_1.Service)(),
217
+ __metadata("design:paramtypes", [backend_common_1.Logger, mcp_registry_service_1.McpRegistryService, backend_services_1.CredentialsFinderService, credentials_helper_1.CredentialsHelper, credential_types_1.CredentialTypes, oauth_service_1.OauthService, backend_network_1.OutboundHttp])
218
+ ], McpConnectionDiscoveryService);
219
+ //# sourceMappingURL=mcp-connection-discovery.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-connection-discovery.service.js","sourceRoot":"","sources":["../../../src/modules/mcp-registry/mcp-connection-discovery.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAwD;AACxD,iEAAiE;AAQjE,wDAA8D;AAC9D,0DAAsE;AACtE,4DAAiE;AAEjE,gCAAkC;AAClC,wCAA6D;AAC7D,iEAA6D;AAG7D,yDAAqD;AACrD,6DAAyD;AACzD,yDAAqD;AACrD,2DAA0D;AAG1D,qDAAsD;AACtD,uEAMmC;AACnC,0EAAqE;AAErE,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAkBlC,SAAS,YAAY,CACpB,aAAgD;IAEhD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AAC7D,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAgB,EAAE,UAAkB;IAC9D,MAAM,MAAM,GAAG,GAAG,UAAU,GAAG,CAAC;IAChC,OAAO,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC/E,CAAC;AAED,SAAS,cAAc,CAAC,IAAY;IACn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