n8n 2.44.3 → 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 (1451) 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/destinations/message-event-bus-destination-webhook.ee.d.ts +4 -0
  721. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js +20 -11
  722. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js.map +1 -1
  723. package/dist/modules/log-streaming.ee/log-streaming.controller.js +12 -1
  724. package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
  725. package/dist/modules/mcp/mcp-api-key.service.d.ts +2 -3
  726. package/dist/modules/mcp/mcp-api-key.service.js +3 -3
  727. package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
  728. package/dist/modules/mcp/mcp-protected-resource.d.ts +2 -2
  729. package/dist/modules/mcp/mcp-protected-resource.js +5 -3
  730. package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
  731. package/dist/modules/mcp/mcp-scopes.d.ts +1 -0
  732. package/dist/modules/mcp/mcp-scopes.js +7 -1
  733. package/dist/modules/mcp/mcp-scopes.js.map +1 -1
  734. package/dist/modules/mcp/mcp-server-middleware.service.d.ts +2 -2
  735. package/dist/modules/mcp/mcp-server-middleware.service.js +3 -3
  736. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  737. package/dist/modules/mcp/mcp-tool-availability.d.ts +1 -0
  738. package/dist/modules/mcp/mcp-tool-availability.js +4 -0
  739. package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
  740. package/dist/modules/mcp/mcp.module.js +1 -1
  741. package/dist/modules/mcp/mcp.module.js.map +1 -1
  742. package/dist/modules/mcp/mcp.service.d.ts +1 -3
  743. package/dist/modules/mcp/mcp.service.js +5 -3
  744. package/dist/modules/mcp/mcp.service.js.map +1 -1
  745. package/dist/modules/mcp/mcp.types.d.ts +1 -1
  746. package/dist/modules/mcp/tools/agents/agent-reference.js +12 -8
  747. package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
  748. package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +5 -5
  749. package/dist/modules/mcp/tools/agents/agent-slack-setup.js.map +1 -1
  750. package/dist/modules/mcp/tools/agents/agent-tools.service.js +24 -9
  751. package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
  752. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +1 -1
  753. package/dist/modules/mcp/tools/get-execution.tool.d.ts +1 -1
  754. package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +11 -0
  755. package/dist/modules/mcp/tools/skills/skill-tools.service.js +242 -0
  756. package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -0
  757. package/dist/modules/mcp/tools/tool-result.utils.d.ts +8 -0
  758. package/dist/modules/mcp/tools/tool-result.utils.js +11 -0
  759. package/dist/modules/mcp/tools/tool-result.utils.js.map +1 -0
  760. package/dist/modules/mcp-registry/mcp-auth-fetch.d.ts +15 -0
  761. package/dist/modules/mcp-registry/mcp-auth-fetch.js +64 -0
  762. package/dist/modules/mcp-registry/mcp-auth-fetch.js.map +1 -0
  763. package/dist/modules/mcp-registry/mcp-connection-discovery.service.d.ts +23 -0
  764. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js +219 -0
  765. package/dist/modules/mcp-registry/mcp-connection-discovery.service.js.map +1 -0
  766. package/dist/modules/mcp-registry/mcp-registry-refresh.task.d.ts +2 -3
  767. package/dist/modules/mcp-registry/mcp-registry-refresh.task.js +4 -6
  768. package/dist/modules/mcp-registry/mcp-registry-refresh.task.js.map +1 -1
  769. package/dist/modules/mcp-registry/mcp-registry-response.d.ts +3 -0
  770. package/dist/modules/mcp-registry/mcp-registry-response.js +35 -0
  771. package/dist/modules/mcp-registry/mcp-registry-response.js.map +1 -0
  772. package/dist/modules/mcp-registry/mcp-registry.controller.d.ts +6 -2
  773. package/dist/modules/mcp-registry/mcp-registry.controller.js +25 -28
  774. package/dist/modules/mcp-registry/mcp-registry.controller.js.map +1 -1
  775. package/dist/modules/mcp-registry/registry/mock-servers.js +3 -3
  776. package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
  777. package/dist/modules/modules.manifest.js +2 -0
  778. package/dist/modules/modules.manifest.js.map +1 -1
  779. package/dist/modules/n8n-packages/engine/import-blocked.error.js +1 -0
  780. package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
  781. package/dist/modules/n8n-packages/engine/import-gates.d.ts +6 -0
  782. package/dist/modules/n8n-packages/engine/import-gates.js +8 -0
  783. package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
  784. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +2 -2
  785. package/dist/modules/n8n-packages/engine/import-orchestrator.js +20 -1
  786. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  787. package/dist/modules/n8n-packages/engine/import-telemetry.js +3 -1
  788. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  789. package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +3 -0
  790. package/dist/modules/n8n-packages/engine/n8n-package-parser.js +38 -0
  791. package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
  792. package/dist/modules/n8n-packages/engine/package-layout.d.ts +10 -2
  793. package/dist/modules/n8n-packages/engine/package-layout.js +26 -0
  794. package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
  795. package/dist/modules/n8n-packages/engine/project-package-importer.js +29 -4
  796. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  797. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +19 -1
  798. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  799. package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +1 -1
  800. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +6 -0
  801. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -1
  802. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -1
  803. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.d.ts +20 -0
  804. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js +98 -0
  805. package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js.map +1 -0
  806. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +16 -2
  807. package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -1
  808. package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +7 -3
  809. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +95 -5
  810. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
  811. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +3 -1
  812. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +14 -4
  813. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
  814. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +13 -2
  815. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
  816. package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +2 -1
  817. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -1
  818. package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
  819. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +39 -3
  820. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  821. package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
  822. package/dist/modules/n8n-packages/n8n-packages.service.js +2 -1
  823. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  824. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +16 -2
  825. package/dist/modules/n8n-packages/n8n-packages.types.js +6 -1
  826. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  827. package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +133 -164
  828. package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +3 -0
  829. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +1 -0
  830. package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -1
  831. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +1 -1
  832. package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
  833. package/dist/modules/oauth-jwe/oauth-jwe-jwks.provider.d.ts +1 -1
  834. package/dist/modules/oauth-jwe/oauth-jwe.module.d.ts +1 -1
  835. package/dist/modules/oauth-jwe/oauth-jwe.module.js +4 -5
  836. package/dist/modules/oauth-jwe/oauth-jwe.module.js.map +1 -1
  837. package/dist/modules/oauth-jwe/oauth-jwe.schemas.js +3 -3
  838. package/dist/modules/oauth-jwe/oauth-jwe.schemas.js.map +1 -1
  839. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +1 -0
  840. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +3 -0
  841. package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
  842. package/dist/modules/oauth-server/dto/approve-consent-request.dto.d.ts +3 -1
  843. package/dist/modules/oauth-server/dto/approve-consent-request.dto.js +8 -1
  844. package/dist/modules/oauth-server/dto/approve-consent-request.dto.js.map +1 -1
  845. package/dist/modules/oauth-server/oauth-consent.controller.d.ts +5 -1
  846. package/dist/modules/oauth-server/oauth-consent.controller.js +15 -14
  847. package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -1
  848. package/dist/modules/oauth-server/oauth-consent.service.d.ts +1 -1
  849. package/dist/modules/oauth-server/oauth-consent.service.js +2 -2
  850. package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
  851. package/dist/modules/oauth-server/oauth-flow.service.d.ts +23 -9
  852. package/dist/modules/oauth-server/oauth-flow.service.js +279 -43
  853. package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -1
  854. package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +5 -2
  855. package/dist/modules/oauth-server/oauth-local-authorization-server.js +8 -3
  856. package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -1
  857. package/dist/modules/oauth-server/oauth-server.module.js +6 -6
  858. package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
  859. package/dist/modules/oauth-server/oauth-server.service.d.ts +1 -1
  860. package/dist/modules/oauth-server/oauth-server.service.js +8 -6
  861. package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
  862. package/dist/modules/oauth-server/oauth-session.service.d.ts +13 -7
  863. package/dist/modules/oauth-server/oauth-session.service.js +48 -13
  864. package/dist/modules/oauth-server/oauth-session.service.js.map +1 -1
  865. package/dist/modules/oauth-server/oauth-signing-jwks.provider.d.ts +1 -1
  866. package/dist/modules/oauth-server/oauth-signing-key.schemas.js +2 -2
  867. package/dist/modules/oauth-server/oauth-signing-key.schemas.js.map +1 -1
  868. package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +1 -1
  869. package/dist/modules/oauth-server/oauth-signing-key.service.js +2 -2
  870. package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
  871. package/dist/modules/oauth-server/oauth-token.service.d.ts +2 -4
  872. package/dist/modules/oauth-server/oauth-token.service.js +2 -3
  873. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  874. package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
  875. package/dist/modules/oauth-server/oauth.controller.js +41 -8
  876. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  877. package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
  878. package/dist/modules/oauth-server/oauth.helpers.js +14 -0
  879. package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
  880. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.d.ts +1 -1
  881. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js +1 -0
  882. package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js.map +1 -1
  883. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.d.ts +7 -5
  884. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +1 -0
  885. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -1
  886. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.d.ts +7 -5
  887. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +1 -0
  888. package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
  889. package/dist/modules/oauth-server/protected-resource-resolvers/index.js +9 -9
  890. package/dist/modules/oauth-server/protected-resource-resolvers/index.js.map +1 -1
  891. package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +1 -0
  892. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +8 -0
  893. package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
  894. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +3 -3
  895. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
  896. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +3 -3
  897. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
  898. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.d.ts +1 -1
  899. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +1 -1
  900. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
  901. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.d.ts +1 -1
  902. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
  903. package/dist/modules/oauth-server/resource-gate.d.ts +1 -1
  904. package/dist/modules/oauth-server/resource-gate.js.map +1 -1
  905. package/dist/modules/oauth-server/resource-identity.d.ts +1 -1
  906. package/dist/modules/promotions.ee/constants.d.ts +1 -1
  907. package/dist/modules/promotions.ee/constants.js +1 -1
  908. package/dist/modules/promotions.ee/constants.js.map +1 -1
  909. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +3 -2
  910. package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +1 -1
  911. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +21 -0
  912. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +95 -0
  913. package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -0
  914. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.d.ts +18 -0
  915. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js +82 -0
  916. package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js.map +1 -0
  917. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +2 -1
  918. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js +6 -2
  919. package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +1 -1
  920. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +18 -0
  921. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +61 -0
  922. package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -0
  923. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.d.ts +9 -0
  924. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js +33 -0
  925. package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js.map +1 -0
  926. package/dist/modules/promotions.ee/git-hosts/git-host-target.d.ts +30 -0
  927. package/dist/modules/promotions.ee/git-hosts/git-host-target.js +97 -0
  928. package/dist/modules/promotions.ee/git-hosts/git-host-target.js.map +1 -0
  929. package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +12 -0
  930. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +4 -1
  931. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +73 -6
  932. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -1
  933. package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +1 -0
  934. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +12 -0
  935. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
  936. package/dist/modules/promotions.ee/promotion-config.resolver.js +3 -5
  937. package/dist/modules/promotions.ee/promotion-config.resolver.js.map +1 -1
  938. package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -0
  939. package/dist/modules/promotions.ee/promotion-connections.service.js +39 -12
  940. package/dist/modules/promotions.ee/promotion-connections.service.js.map +1 -1
  941. package/dist/modules/promotions.ee/promotion-providers.service.d.ts +13 -0
  942. package/dist/modules/promotions.ee/promotion-providers.service.js +28 -0
  943. package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
  944. package/dist/modules/promotions.ee/promotions-git.service.d.ts +3 -0
  945. package/dist/modules/promotions.ee/promotions-git.service.js +30 -4
  946. package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -1
  947. package/dist/modules/promotions.ee/promotions.module.d.ts +1 -1
  948. package/dist/modules/promotions.ee/promotions.module.js +10 -1
  949. package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
  950. package/dist/modules/promotions.ee/promotions.service.d.ts +0 -1
  951. package/dist/modules/promotions.ee/promotions.service.js +45 -19
  952. package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
  953. package/dist/modules/provisioning.ee/provisioning.module.js +1 -1
  954. package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
  955. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -0
  956. package/dist/modules/provisioning.ee/provisioning.service.ee.js +14 -2
  957. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  958. package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +1 -1
  959. package/dist/modules/provisioning.ee/role-resolver-types.d.ts +1 -1
  960. package/dist/modules/redaction/dynamic-credentials-context-hook.d.ts +1 -1
  961. package/dist/modules/redaction/dynamic-credentials-context-hook.js +2 -2
  962. package/dist/modules/redaction/dynamic-credentials-context-hook.js.map +1 -1
  963. package/dist/modules/redaction/executions/execution-redaction.interfaces.d.ts +3 -1
  964. package/dist/modules/redaction/executions/execution-redaction.service.d.ts +4 -2
  965. package/dist/modules/redaction/executions/execution-redaction.service.js +35 -11
  966. package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
  967. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.d.ts +1 -1
  968. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +6 -1
  969. package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
  970. package/dist/modules/redaction/executions/strategies/node-defined-field-redaction.strategy.d.ts +1 -1
  971. package/dist/modules/redaction/redaction.module.js +2 -2
  972. package/dist/modules/redaction/redaction.module.js.map +1 -1
  973. package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +1 -1
  974. package/dist/modules/runtime-credentials/runtime-credentials.module.js +2 -2
  975. package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -1
  976. package/dist/modules/scim/database/scim-api-key.repository.js +2 -2
  977. package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -1
  978. package/dist/modules/scim/database/scim-user.repository.d.ts +23 -0
  979. package/dist/modules/scim/database/scim-user.repository.js +53 -0
  980. package/dist/modules/scim/database/scim-user.repository.js.map +1 -0
  981. package/dist/modules/scim/scim-body-parser.d.ts +2 -0
  982. package/dist/modules/scim/scim-body-parser.js +19 -0
  983. package/dist/modules/scim/scim-body-parser.js.map +1 -0
  984. package/dist/modules/scim/scim-discovery.controller.js +84 -7
  985. package/dist/modules/scim/scim-discovery.controller.js.map +1 -1
  986. package/dist/modules/scim/scim-route.js +2 -1
  987. package/dist/modules/scim/scim-route.js.map +1 -1
  988. package/dist/modules/scim/scim-token.service.d.ts +1 -2
  989. package/dist/modules/scim/scim-token.service.js +1 -2
  990. package/dist/modules/scim/scim-token.service.js.map +1 -1
  991. package/dist/modules/scim/scim.controller.d.ts +19 -0
  992. package/dist/modules/scim/scim.controller.js +163 -0
  993. package/dist/modules/scim/scim.controller.js.map +1 -0
  994. package/dist/modules/scim/scim.errors.d.ts +13 -0
  995. package/dist/modules/scim/scim.errors.js +29 -0
  996. package/dist/modules/scim/scim.errors.js.map +1 -0
  997. package/dist/modules/scim/scim.module.js +1 -0
  998. package/dist/modules/scim/scim.module.js.map +1 -1
  999. package/dist/modules/scim/scim.service.d.ts +38 -0
  1000. package/dist/modules/scim/scim.service.js +329 -0
  1001. package/dist/modules/scim/scim.service.js.map +1 -0
  1002. package/dist/modules/source-control.ee/source-control-git.service.ee.js +2 -0
  1003. package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
  1004. package/dist/modules/source-control.ee/source-control-helper.ee.js +6 -51
  1005. package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
  1006. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +3 -2
  1007. package/dist/modules/source-control.ee/source-control-import.service.ee.js +59 -13
  1008. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  1009. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -0
  1010. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -0
  1011. package/dist/modules/source-control.ee/source-control.service.ee.js +6 -1
  1012. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  1013. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +1 -2
  1014. package/dist/modules/sso-oidc/oidc.service.ee.js +1 -2
  1015. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  1016. package/dist/modules/token-exchange/services/jti-cleanup.task.d.ts +2 -3
  1017. package/dist/modules/token-exchange/services/jti-cleanup.task.js +1 -2
  1018. package/dist/modules/token-exchange/services/jti-cleanup.task.js.map +1 -1
  1019. package/dist/modules/token-exchange/services/scoped-jwt.strategy.d.ts +2 -2
  1020. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js +2 -2
  1021. package/dist/modules/token-exchange/services/scoped-jwt.strategy.js.map +1 -1
  1022. package/dist/modules/token-exchange/services/token-exchange.service.d.ts +1 -1
  1023. package/dist/modules/token-exchange/services/token-exchange.service.js +2 -2
  1024. package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
  1025. package/dist/modules/token-exchange/services/trusted-key-refresh.task.d.ts +2 -3
  1026. package/dist/modules/token-exchange/services/trusted-key-refresh.task.js +1 -2
  1027. package/dist/modules/token-exchange/services/trusted-key-refresh.task.js.map +1 -1
  1028. package/dist/modules/token-exchange/token-exchange.module.js +1 -1
  1029. package/dist/modules/token-exchange/token-exchange.module.js.map +1 -1
  1030. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +5 -7
  1031. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +13 -1
  1032. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
  1033. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +1 -1
  1034. package/dist/modules/type-availability-policies/credential-type-policy.check.js +3 -14
  1035. package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
  1036. package/dist/modules/type-availability-policies/node-type-policy.check.js +2 -13
  1037. package/dist/modules/type-availability-policies/node-type-policy.check.js.map +1 -1
  1038. package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -0
  1039. package/dist/modules/type-availability-policies/package-resolver.js +17 -0
  1040. package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
  1041. package/dist/modules/type-availability-policies/policy-rule-lint.d.ts +14 -0
  1042. package/dist/modules/type-availability-policies/policy-rule-lint.js +19 -0
  1043. package/dist/modules/type-availability-policies/policy-rule-lint.js.map +1 -0
  1044. package/dist/modules/type-availability-policies/policy-shadow-lint.d.ts +1 -0
  1045. package/dist/modules/type-availability-policies/policy-shadow-lint.js +1 -1
  1046. package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
  1047. package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +1 -1
  1048. package/dist/modules/type-availability-policies/type-availability-policies.module.js +2 -2
  1049. package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
  1050. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.d.ts +5 -7
  1051. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js +13 -1
  1052. package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js.map +1 -1
  1053. package/dist/modules/type-availability-policies/type-availability-policy-project.controller.d.ts +1 -1
  1054. package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +10 -7
  1055. package/dist/modules/type-availability-policies/type-availability-policy.service.js +39 -36
  1056. package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
  1057. package/dist/modules/type-availability-policies/type-violation.d.ts +10 -0
  1058. package/dist/modules/type-availability-policies/type-violation.js +29 -0
  1059. package/dist/modules/type-availability-policies/type-violation.js.map +1 -0
  1060. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +5 -5
  1061. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +12 -32
  1062. package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
  1063. package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.d.ts +1 -2
  1064. package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js.map +1 -1
  1065. package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.d.ts +1 -1
  1066. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +1 -3
  1067. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +0 -21
  1068. package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -1
  1069. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +12 -4
  1070. package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
  1071. package/dist/node-execution/ephemeral-node-executor.d.ts +2 -0
  1072. package/dist/node-execution/ephemeral-node-executor.js +21 -6
  1073. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  1074. package/dist/oauth/oauth.service.d.ts +3 -1
  1075. package/dist/oauth/oauth.service.js +30 -3
  1076. package/dist/oauth/oauth.service.js.map +1 -1
  1077. package/dist/output-schema-parameter-defaults.d.ts +7 -0
  1078. package/dist/output-schema-parameter-defaults.js +23 -0
  1079. package/dist/output-schema-parameter-defaults.js.map +1 -0
  1080. package/dist/policy/policy-violation.error.d.ts +1 -0
  1081. package/dist/policy/policy-violation.error.js +12 -0
  1082. package/dist/policy/policy-violation.error.js.map +1 -1
  1083. package/dist/public-api/idempotency-key-cleanup.task.d.ts +2 -3
  1084. package/dist/public-api/idempotency-key-cleanup.task.js +6 -6
  1085. package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -1
  1086. package/dist/public-api/idempotency-key.service.d.ts +9 -1
  1087. package/dist/public-api/idempotency-key.service.js +41 -0
  1088. package/dist/public-api/idempotency-key.service.js.map +1 -1
  1089. package/dist/public-api/index.js +14 -138
  1090. package/dist/public-api/index.js.map +1 -1
  1091. package/dist/public-api/media-types/request-body/multipart-parser.js.map +1 -1
  1092. package/dist/public-api/public-api-controller.registry.d.ts +12 -2
  1093. package/dist/public-api/public-api-controller.registry.js +98 -12
  1094. package/dist/public-api/public-api-controller.registry.js.map +1 -1
  1095. package/dist/public-api/public-api-rate-limit.service.d.ts +17 -0
  1096. package/dist/public-api/public-api-rate-limit.service.js +127 -0
  1097. package/dist/public-api/public-api-rate-limit.service.js.map +1 -0
  1098. package/dist/public-api/public-api-route-resolver.d.ts +0 -3
  1099. package/dist/public-api/public-api-route-resolver.js +0 -19
  1100. package/dist/public-api/public-api-route-resolver.js.map +1 -1
  1101. package/dist/public-api/types.d.ts +1 -66
  1102. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +1 -0
  1103. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +54 -29
  1104. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
  1105. package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +3 -1
  1106. package/dist/public-api/v1/controllers/credentials.public.controller.js +22 -3
  1107. package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
  1108. package/dist/public-api/v1/controllers/executions.public.controller.d.ts +1 -2
  1109. package/dist/public-api/v1/controllers/executions.public.controller.js +3 -5
  1110. package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
  1111. package/dist/public-api/v1/controllers/log-streaming.mapper.d.ts +3 -3
  1112. package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +3 -1
  1113. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +95 -2
  1114. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -1
  1115. package/dist/public-api/v1/controllers/node-type-policies.public.controller.d.ts +1 -0
  1116. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +54 -29
  1117. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
  1118. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +5 -1
  1119. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +29 -2
  1120. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -1
  1121. package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +4 -1
  1122. package/dist/public-api/v1/controllers/promotions.public.controller.js +70 -4
  1123. package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
  1124. package/dist/public-api/v1/controllers/source-control.public.controller.d.ts +2 -2
  1125. package/dist/public-api/v1/controllers/source-control.public.controller.js +3 -2
  1126. package/dist/public-api/v1/controllers/source-control.public.controller.js.map +1 -1
  1127. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -2
  1128. package/dist/public-api/v1/controllers/workflows.public.controller.js +13 -2
  1129. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
  1130. package/dist/public-api/v1/handlers/discover/discover.service.js +7 -86
  1131. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  1132. package/dist/public-api/v1/openapi-gen/decorator-routes.js +15 -5
  1133. package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
  1134. package/dist/public-api/v1/openapi-gen/generate.d.ts +1 -1
  1135. package/dist/public-api/v1/openapi-gen/generate.js +28 -47
  1136. package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
  1137. package/dist/public-api/v1/openapi.yml +3915 -3646
  1138. package/dist/public-api/v1/public-api-error-response.d.ts +1 -2
  1139. package/dist/public-api/v1/public-api-error-response.js +46 -2
  1140. package/dist/public-api/v1/public-api-error-response.js.map +1 -1
  1141. package/dist/requests.d.ts +6 -1
  1142. package/dist/scaling/job-outcome-tracker.d.ts +7 -6
  1143. package/dist/scaling/job-outcome-tracker.js +59 -38
  1144. package/dist/scaling/job-outcome-tracker.js.map +1 -1
  1145. package/dist/scaling/job-processor.d.ts +3 -0
  1146. package/dist/scaling/job-processor.js +39 -0
  1147. package/dist/scaling/job-processor.js.map +1 -1
  1148. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  1149. package/dist/scaling/scaling.service.d.ts +1 -1
  1150. package/dist/scaling/scaling.service.js +8 -5
  1151. package/dist/scaling/scaling.service.js.map +1 -1
  1152. package/dist/scaling/scaling.types.d.ts +1 -0
  1153. package/dist/scaling/worker-status.service.ee.js +2 -2
  1154. package/dist/scaling/worker-status.service.ee.js.map +1 -1
  1155. package/dist/scheduling/durable-scheduler.js +3 -4
  1156. package/dist/scheduling/durable-scheduler.js.map +1 -1
  1157. package/dist/scheduling/poll-trigger-node/durable-poller-chain.js.map +1 -1
  1158. package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -1
  1159. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +0 -1
  1160. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +1 -3
  1161. package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
  1162. package/dist/scheduling/system-tasks/in-memory-system-task-runner.d.ts +1 -0
  1163. package/dist/scheduling/system-tasks/in-memory-system-task-runner.js +2 -2
  1164. package/dist/scheduling/system-tasks/in-memory-system-task-runner.js.map +1 -1
  1165. package/dist/scheduling/system-tasks/system-task-job-registrar.d.ts +9 -3
  1166. package/dist/scheduling/system-tasks/system-task-job-registrar.js +16 -5
  1167. package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
  1168. package/dist/scheduling/system-tasks/system-task-run-observer.js +3 -3
  1169. package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
  1170. package/dist/scheduling/system-tasks/system-task-runner.d.ts +1 -1
  1171. package/dist/scheduling/system-tasks/system-task-runner.js +21 -21
  1172. package/dist/scheduling/system-tasks/system-task-runner.js.map +1 -1
  1173. package/dist/server.js +2 -2
  1174. package/dist/server.js.map +1 -1
  1175. package/dist/services/active-workflows.service.d.ts +6 -1
  1176. package/dist/services/active-workflows.service.js +22 -8
  1177. package/dist/services/active-workflows.service.js.map +1 -1
  1178. package/dist/services/ai-workflow-builder.service.d.ts +1 -1
  1179. package/dist/services/ai-workflow-builder.service.js +2 -2
  1180. package/dist/services/ai-workflow-builder.service.js.map +1 -1
  1181. package/dist/services/ai.service.d.ts +0 -1
  1182. package/dist/services/ai.service.js +0 -4
  1183. package/dist/services/ai.service.js.map +1 -1
  1184. package/dist/services/api-key-auth.strategy.d.ts +2 -2
  1185. package/dist/services/api-key-auth.strategy.js +4 -4
  1186. package/dist/services/api-key-auth.strategy.js.map +1 -1
  1187. package/dist/services/frontend.service.d.ts +3 -1
  1188. package/dist/services/frontend.service.js +7 -2
  1189. package/dist/services/frontend.service.js.map +1 -1
  1190. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
  1191. package/dist/services/pruning/activity-pruning.task.d.ts +2 -3
  1192. package/dist/services/pruning/activity-pruning.task.js +8 -6
  1193. package/dist/services/pruning/activity-pruning.task.js.map +1 -1
  1194. package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +2 -5
  1195. package/dist/services/pruning/execution-pruning-hard-delete.task.js +9 -4
  1196. package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -1
  1197. package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +2 -4
  1198. package/dist/services/pruning/execution-pruning-soft-delete.task.js +6 -3
  1199. package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
  1200. package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +2 -4
  1201. package/dist/services/pruning/workflow-history-compaction-optimize.task.js +6 -3
  1202. package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
  1203. package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -5
  1204. package/dist/services/pruning/workflow-history-compaction-trim.task.js +7 -4
  1205. package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
  1206. package/dist/services/pruning/workflow-history-compaction.service.d.ts +2 -10
  1207. package/dist/services/pruning/workflow-history-compaction.service.js +2 -46
  1208. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  1209. package/dist/services/pruning/workflow-history-pruning.task.d.ts +2 -4
  1210. package/dist/services/pruning/workflow-history-pruning.task.js +9 -7
  1211. package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
  1212. package/dist/services/public-api-key.service.d.ts +1 -1
  1213. package/dist/services/public-api-key.service.js +2 -2
  1214. package/dist/services/public-api-key.service.js.map +1 -1
  1215. package/dist/services/rate-limit.service.d.ts +5 -0
  1216. package/dist/services/rate-limit.service.js +14 -0
  1217. package/dist/services/rate-limit.service.js.map +1 -1
  1218. package/dist/services/session-cookie-auth.strategy.d.ts +1 -1
  1219. package/dist/services/user.service.d.ts +1 -2
  1220. package/dist/services/user.service.js +1 -2
  1221. package/dist/services/user.service.js.map +1 -1
  1222. package/dist/services/workflow-statistics-rollup.task.d.ts +4 -5
  1223. package/dist/services/workflow-statistics-rollup.task.js +9 -10
  1224. package/dist/services/workflow-statistics-rollup.task.js.map +1 -1
  1225. package/dist/services/workflow-statistics.service.d.ts +0 -1
  1226. package/dist/services/workflow-statistics.service.js +0 -5
  1227. package/dist/services/workflow-statistics.service.js.map +1 -1
  1228. package/dist/telemetry/telemetry-buffer-flush.task.d.ts +2 -3
  1229. package/dist/telemetry/telemetry-buffer-flush.task.js +1 -5
  1230. package/dist/telemetry/telemetry-buffer-flush.task.js.map +1 -1
  1231. package/dist/telemetry/telemetry-pulse.task.d.ts +2 -5
  1232. package/dist/telemetry/telemetry-pulse.task.js +7 -4
  1233. package/dist/telemetry/telemetry-pulse.task.js.map +1 -1
  1234. package/dist/user-management/email/node-mailer.js.map +1 -1
  1235. package/dist/user-management/email/templates/migration-findings.handlebars +212 -0
  1236. package/dist/user-management/email/user-management-mailer.d.ts +13 -1
  1237. package/dist/user-management/email/user-management-mailer.js +22 -0
  1238. package/dist/user-management/email/user-management-mailer.js.map +1 -1
  1239. package/dist/utils/container-limits.d.ts +9 -0
  1240. package/dist/utils/container-limits.js +59 -0
  1241. package/dist/utils/container-limits.js.map +1 -0
  1242. package/dist/utils/detect-runtime.d.ts +4 -0
  1243. package/dist/utils/detect-runtime.js +27 -0
  1244. package/dist/utils/detect-runtime.js.map +1 -0
  1245. package/dist/utils/object-to-error.js +1 -1
  1246. package/dist/utils/object-to-error.js.map +1 -1
  1247. package/dist/utils.js +8 -3
  1248. package/dist/utils.js.map +1 -1
  1249. package/dist/wait-tracker.js +8 -0
  1250. package/dist/wait-tracker.js.map +1 -1
  1251. package/dist/webhooks/hitl-interaction-webhooks.js +4 -1
  1252. package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
  1253. package/dist/webhooks/live-webhooks.d.ts +1 -1
  1254. package/dist/webhooks/live-webhooks.js +2 -2
  1255. package/dist/webhooks/live-webhooks.js.map +1 -1
  1256. package/dist/webhooks/test-webhook-registrations.service.d.ts +1 -1
  1257. package/dist/webhooks/waiting-forms.js +3 -2
  1258. package/dist/webhooks/waiting-forms.js.map +1 -1
  1259. package/dist/webhooks/waiting-webhooks.js +3 -0
  1260. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  1261. package/dist/webhooks/webhook-helpers.js +43 -27
  1262. package/dist/webhooks/webhook-helpers.js.map +1 -1
  1263. package/dist/webhooks/webhook-request-sanitizer.js +4 -2
  1264. package/dist/webhooks/webhook-request-sanitizer.js.map +1 -1
  1265. package/dist/webhooks/webhook.types.d.ts +2 -0
  1266. package/dist/workflow-execute-additional-data.js +12 -9
  1267. package/dist/workflow-execute-additional-data.js.map +1 -1
  1268. package/dist/workflow-helpers.js +19 -3
  1269. package/dist/workflow-helpers.js.map +1 -1
  1270. package/dist/workflow-runner.js +6 -5
  1271. package/dist/workflow-runner.js.map +1 -1
  1272. package/dist/workflows/error-workflow-validation.service.d.ts +1 -1
  1273. package/dist/workflows/error-workflow-validation.service.js +2 -2
  1274. package/dist/workflows/error-workflow-validation.service.js.map +1 -1
  1275. package/dist/workflows/publication/format-node-failures.d.ts +4 -0
  1276. package/dist/workflows/publication/format-node-failures.js +6 -0
  1277. package/dist/workflows/publication/format-node-failures.js.map +1 -1
  1278. package/dist/workflows/publication/publication-status-reporter.d.ts +1 -1
  1279. package/dist/workflows/publication/publication-status-reporter.js +9 -6
  1280. package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
  1281. package/dist/workflows/publication/workflow-publication-applier.d.ts +1 -1
  1282. package/dist/workflows/publication/workflow-publication-applier.js +3 -4
  1283. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  1284. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.d.ts +2 -4
  1285. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js +7 -7
  1286. package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js.map +1 -1
  1287. package/dist/workflows/publication/workflow-publication-status.service.d.ts +2 -0
  1288. package/dist/workflows/publication/workflow-publication-status.service.js +14 -0
  1289. package/dist/workflows/publication/workflow-publication-status.service.js.map +1 -1
  1290. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -2
  1291. package/dist/workflows/triggers/trigger-execution-context.factory.js +1 -2
  1292. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  1293. package/dist/workflows/workflow-execution.service.d.ts +1 -2
  1294. package/dist/workflows/workflow-execution.service.js +1 -2
  1295. package/dist/workflows/workflow-execution.service.js.map +1 -1
  1296. package/dist/workflows/workflow-finder.service.d.ts +1 -0
  1297. package/dist/workflows/workflow-finder.service.js +2 -1
  1298. package/dist/workflows/workflow-finder.service.js.map +1 -1
  1299. package/dist/workflows/workflow.service.d.ts +1 -4
  1300. package/dist/workflows/workflow.service.ee.d.ts +8 -5
  1301. package/dist/workflows/workflow.service.ee.js +57 -12
  1302. package/dist/workflows/workflow.service.ee.js.map +1 -1
  1303. package/dist/workflows/workflow.service.js +1 -4
  1304. package/dist/workflows/workflow.service.js.map +1 -1
  1305. package/package.json +45 -44
  1306. package/templates/admin-consent-callback.handlebars +19 -0
  1307. package/dist/credentials/executing-user-identifier-proxy.d.ts +0 -7
  1308. package/dist/credentials/executing-user-identifier-proxy.js +0 -25
  1309. package/dist/credentials/executing-user-identifier-proxy.js.map +0 -1
  1310. package/dist/credentials/executing-user-identifier.interface.d.ts +0 -4
  1311. package/dist/credentials/executing-user-identifier.interface.js +0 -3
  1312. package/dist/credentials/executing-user-identifier.interface.js.map +0 -1
  1313. package/dist/executions/execution-redaction-proxy.service.d.ts +0 -7
  1314. package/dist/executions/execution-redaction-proxy.service.js +0 -31
  1315. package/dist/executions/execution-redaction-proxy.service.js.map +0 -1
  1316. package/dist/executions/execution-redaction.d.ts +0 -21
  1317. package/dist/executions/execution-redaction.js +0 -7
  1318. package/dist/executions/execution-redaction.js.map +0 -1
  1319. package/dist/jwks/jwks.registry.d.ts +0 -10
  1320. package/dist/jwks/jwks.registry.js +0 -31
  1321. package/dist/jwks/jwks.registry.js.map +0 -1
  1322. package/dist/jwks/jwks.schemas.d.ts +0 -178
  1323. package/dist/jwks/jwks.schemas.js +0 -31
  1324. package/dist/jwks/jwks.schemas.js.map +0 -1
  1325. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +0 -16
  1326. package/dist/modules/agents/builder/agents-builder-prompts.js +0 -425
  1327. package/dist/modules/agents/builder/agents-builder-prompts.js.map +0 -1
  1328. package/dist/modules/agents/builder/agents-builder.service.d.ts +0 -47
  1329. package/dist/modules/agents/builder/agents-builder.service.js +0 -222
  1330. package/dist/modules/agents/builder/agents-builder.service.js.map +0 -1
  1331. package/dist/modules/agents/builder/errors.d.ts +0 -9
  1332. package/dist/modules/agents/builder/errors.js +0 -22
  1333. package/dist/modules/agents/builder/errors.js.map +0 -1
  1334. package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +0 -1
  1335. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +0 -62
  1336. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +0 -1
  1337. package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +0 -1
  1338. package/dist/modules/agents/builder/prompts/memory.prompt.js +0 -43
  1339. package/dist/modules/agents/builder/prompts/memory.prompt.js.map +0 -1
  1340. package/dist/modules/agents/builder/prompts/planner-todos.prompt.d.ts +0 -2
  1341. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js +0 -22
  1342. package/dist/modules/agents/builder/prompts/planner-todos.prompt.js.map +0 -1
  1343. package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +0 -1
  1344. package/dist/modules/agents/builder/prompts/tools.prompt.js +0 -102
  1345. package/dist/modules/agents/builder/prompts/tools.prompt.js.map +0 -1
  1346. package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +0 -1
  1347. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.d.ts +0 -2
  1348. package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js.map +0 -1
  1349. package/dist/modules/data-table/middleware/branch-write-access-middleware.d.ts +0 -2
  1350. package/dist/modules/data-table/middleware/branch-write-access-middleware.js +0 -14
  1351. package/dist/modules/data-table/middleware/branch-write-access-middleware.js.map +0 -1
  1352. package/dist/modules/instance-ai/eval/api-docs.d.ts +0 -1
  1353. package/dist/modules/instance-ai/eval/api-docs.js +0 -78
  1354. package/dist/modules/instance-ai/eval/api-docs.js.map +0 -1
  1355. package/dist/modules/instance-ai/instance-ai-credit-display.d.ts +0 -9
  1356. package/dist/modules/instance-ai/instance-ai-credit-display.js +0 -15
  1357. package/dist/modules/instance-ai/instance-ai-credit-display.js.map +0 -1
  1358. package/dist/modules/quick-connect/handlers/firecrawl.handler.d.ts +0 -13
  1359. package/dist/modules/quick-connect/handlers/firecrawl.handler.js +0 -50
  1360. package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +0 -1
  1361. package/dist/modules/quick-connect/handlers/handler.interface.d.ts +0 -9
  1362. package/dist/modules/quick-connect/handlers/handler.interface.js.map +0 -1
  1363. package/dist/modules/quick-connect/quick-connect.config.d.ts +0 -462
  1364. package/dist/modules/quick-connect/quick-connect.config.js +0 -72
  1365. package/dist/modules/quick-connect/quick-connect.config.js.map +0 -1
  1366. package/dist/modules/quick-connect/quick-connect.controller.d.ts +0 -10
  1367. package/dist/modules/quick-connect/quick-connect.controller.js.map +0 -1
  1368. package/dist/modules/quick-connect/quick-connect.errors.d.ts +0 -5
  1369. package/dist/modules/quick-connect/quick-connect.errors.js +0 -12
  1370. package/dist/modules/quick-connect/quick-connect.errors.js.map +0 -1
  1371. package/dist/modules/quick-connect/quick-connect.module.d.ts +0 -49
  1372. package/dist/modules/quick-connect/quick-connect.module.js +0 -36
  1373. package/dist/modules/quick-connect/quick-connect.module.js.map +0 -1
  1374. package/dist/modules/quick-connect/quick-connect.service.d.ts +0 -13
  1375. package/dist/modules/quick-connect/quick-connect.service.js +0 -61
  1376. package/dist/modules/quick-connect/quick-connect.service.js.map +0 -1
  1377. package/dist/modules/workflow-builder/index.d.ts +0 -3
  1378. package/dist/modules/workflow-builder/index.js +0 -10
  1379. package/dist/modules/workflow-builder/index.js.map +0 -1
  1380. package/dist/modules/workflow-builder/workflow-builder-session.entity.d.ts +0 -26
  1381. package/dist/modules/workflow-builder/workflow-builder-session.entity.js +0 -72
  1382. package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +0 -1
  1383. package/dist/modules/workflow-builder/workflow-builder-session.repository.d.ts +0 -10
  1384. package/dist/modules/workflow-builder/workflow-builder-session.repository.js +0 -79
  1385. package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +0 -1
  1386. package/dist/modules/workflow-builder/workflow-builder.module.d.ts +0 -4
  1387. package/dist/modules/workflow-builder/workflow-builder.module.js.map +0 -1
  1388. package/dist/oauth/oauth-jwe-service.proxy.d.ts +0 -19
  1389. package/dist/oauth/oauth-jwe-service.proxy.js +0 -32
  1390. package/dist/oauth/oauth-jwe-service.proxy.js.map +0 -1
  1391. package/dist/public-api/v1/handlers/decorator-routed.handler.d.ts +0 -2
  1392. package/dist/public-api/v1/handlers/decorator-routed.handler.js +0 -10
  1393. package/dist/public-api/v1/handlers/decorator-routed.handler.js.map +0 -1
  1394. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +0 -9
  1395. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +0 -113
  1396. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +0 -1
  1397. package/dist/public-api/v1/shared/handler.types.d.ts +0 -9
  1398. package/dist/public-api/v1/shared/handler.types.js +0 -3
  1399. package/dist/public-api/v1/shared/handler.types.js.map +0 -1
  1400. package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +0 -31
  1401. package/dist/public-api/v1/shared/middlewares/global.middleware.js +0 -126
  1402. package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +0 -1
  1403. package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +0 -5
  1404. package/dist/public-api/v1/shared/public-api-scope-lookup.js +0 -60
  1405. package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +0 -1
  1406. package/dist/services/auth-strategy.registry.d.ts +0 -8
  1407. package/dist/services/auth-strategy.registry.js +0 -44
  1408. package/dist/services/auth-strategy.registry.js.map +0 -1
  1409. package/dist/services/auth-strategy.types.d.ts +0 -10
  1410. package/dist/services/auth-strategy.types.js +0 -3
  1411. package/dist/services/auth-strategy.types.js.map +0 -1
  1412. package/dist/services/instance-activation.service.d.ts +0 -10
  1413. package/dist/services/instance-activation.service.js +0 -48
  1414. package/dist/services/instance-activation.service.js.map +0 -1
  1415. package/dist/services/instance-registry-proxy.service.d.ts +0 -11
  1416. package/dist/services/instance-registry-proxy.service.js +0 -33
  1417. package/dist/services/instance-registry-proxy.service.js.map +0 -1
  1418. package/dist/services/jwt.service.d.ts +0 -24
  1419. package/dist/services/jwt.service.js +0 -104
  1420. package/dist/services/jwt.service.js.map +0 -1
  1421. package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -33
  1422. package/dist/services/oauth-token-verifier-proxy.service.js +0 -36
  1423. package/dist/services/oauth-token-verifier-proxy.service.js.map +0 -1
  1424. package/dist/services/oauth2-flow-proxy.service.d.ts +0 -13
  1425. package/dist/services/oauth2-flow-proxy.service.js +0 -39
  1426. package/dist/services/oauth2-flow-proxy.service.js.map +0 -1
  1427. package/dist/services/protected-resource.registry.d.ts +0 -25
  1428. package/dist/services/protected-resource.registry.js +0 -124
  1429. package/dist/services/protected-resource.registry.js.map +0 -1
  1430. package/dist/services/role-mapping-proxy.service.d.ts +0 -53
  1431. package/dist/services/role-mapping-proxy.service.js +0 -26
  1432. package/dist/services/role-mapping-proxy.service.js.map +0 -1
  1433. package/dist/services/runtime-credential-proxy.service.d.ts +0 -9
  1434. package/dist/services/runtime-credential-proxy.service.js +0 -29
  1435. package/dist/services/runtime-credential-proxy.service.js.map +0 -1
  1436. package/dist/services/token-purposes.d.ts +0 -21
  1437. package/dist/services/token-purposes.js +0 -27
  1438. package/dist/services/token-purposes.js.map +0 -1
  1439. package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +0 -9
  1440. package/dist/workflows/restricted-node-types-provider-proxy.service.js +0 -26
  1441. package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +0 -1
  1442. package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +0 -24
  1443. package/dist/workflows/workflow-mutation-hooks-proxy.service.js +0 -38
  1444. package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +0 -1
  1445. package/dist/workflows/workflow-publish-guard-proxy.service.d.ts +0 -8
  1446. package/dist/workflows/workflow-publish-guard-proxy.service.js +0 -26
  1447. package/dist/workflows/workflow-publish-guard-proxy.service.js.map +0 -1
  1448. package/dist/workflows/workflow-published-data.service.d.ts +0 -19
  1449. package/dist/workflows/workflow-published-data.service.js +0 -70
  1450. package/dist/workflows/workflow-published-data.service.js.map +0 -1
  1451. /package/dist/modules/breaking-changes/migrations/{ai-transform-to-code.migration.js → node-removals/ai-transform-to-code.migration.js} +0 -0
@@ -0,0 +1,36 @@
1
+ import type { TeamsProvisionedAppSummary } from '@n8n/api-types';
2
+ import type { User } from '@n8n/db';
3
+ import { CredentialsFinderService, UrlService } from '@n8n/backend-services';
4
+ import { CredentialsService } from '../../../../../credentials/credentials.service';
5
+ import { TeamsGraphService } from './teams-graph.service';
6
+ import { TeamsManagerTokenService } from './teams-manager-token.service';
7
+ export declare const BOT_CREDENTIAL_TYPE = "microsoftEntraServicePrincipalApi";
8
+ export interface ProvisionEntraAppOptions {
9
+ user: User;
10
+ projectId: string;
11
+ agentId: string;
12
+ agentName: string;
13
+ managerCredentialId: string;
14
+ }
15
+ export declare class TeamsEntraProvisioningService {
16
+ private readonly graph;
17
+ private readonly tokens;
18
+ private readonly credentialsService;
19
+ private readonly credentialsFinderService;
20
+ private readonly urlService;
21
+ constructor(graph: TeamsGraphService, tokens: TeamsManagerTokenService, credentialsService: CredentialsService, credentialsFinderService: CredentialsFinderService, urlService: UrlService);
22
+ provision(options: ProvisionEntraAppOptions): Promise<TeamsProvisionedAppSummary>;
23
+ private managerCredential;
24
+ private readTenant;
25
+ private rememberTenant;
26
+ private createApp;
27
+ private findAppByUniqueName;
28
+ private declareFileAccess;
29
+ private mergeFileAccess;
30
+ private dropExpiredSecrets;
31
+ private addSecret;
32
+ private createServicePrincipal;
33
+ private registrationError;
34
+ private findProvisionedCredential;
35
+ private writeBotCredential;
36
+ }
@@ -0,0 +1,318 @@
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.TeamsEntraProvisioningService = exports.BOT_CREDENTIAL_TYPE = void 0;
13
+ const di_1 = require("@n8n/di");
14
+ const is_record_1 = require("@n8n/utils/is-record");
15
+ const n8n_workflow_1 = require("n8n-workflow");
16
+ const teams_setup_telemetry_service_1 = require("./teams-setup-telemetry.service");
17
+ const backend_services_1 = require("@n8n/backend-services");
18
+ const credentials_service_1 = require("../../../../../credentials/credentials.service");
19
+ const errors_1 = require("@n8n/errors");
20
+ const teams_admin_consent_1 = require("./teams-admin-consent");
21
+ const teams_graph_permissions_1 = require("./teams-graph-permissions");
22
+ const teams_graph_service_1 = require("./teams-graph.service");
23
+ const teams_managed_setup_service_1 = require("./teams-managed-setup.service");
24
+ const teams_manager_token_service_1 = require("./teams-manager-token.service");
25
+ const integration_helpers_1 = require("../../integration-helpers");
26
+ exports.BOT_CREDENTIAL_TYPE = 'microsoftEntraServicePrincipalApi';
27
+ const SECRET_RENEW_BEFORE_MS = 7 * 24 * 60 * 60 * 1000;
28
+ function usableSecret(data) {
29
+ const value = (0, integration_helpers_1.stringProperty)(data, 'clientSecret');
30
+ const expiresAt = (0, integration_helpers_1.stringProperty)(data, 'secretExpiresAt');
31
+ if (!value || !expiresAt)
32
+ return undefined;
33
+ const expiry = Date.parse(expiresAt);
34
+ if (Number.isNaN(expiry) || expiry - Date.now() < SECRET_RENEW_BEFORE_MS)
35
+ return undefined;
36
+ return { value, expiresAt };
37
+ }
38
+ const GRAPH_APP_ID = '00000003-0000-0000-c000-000000000000';
39
+ function withGraphPermissions(requiredResourceAccess) {
40
+ const entries = Array.isArray(requiredResourceAccess) ? requiredResourceAccess : [];
41
+ const graph = entries.find((entry) => (0, is_record_1.isRecord)(entry) && entry.resourceAppId === GRAPH_APP_ID);
42
+ const roles = (0, is_record_1.isRecord)(graph) && Array.isArray(graph.resourceAccess) ? graph.resourceAccess : [];
43
+ const missing = teams_graph_permissions_1.GRAPH_APP_ROLES.filter(({ id }) => !roles.some((role) => (0, is_record_1.isRecord)(role) && role.id === id)).map(({ id }) => ({ id, type: 'Role' }));
44
+ if (missing.length === 0)
45
+ return entries;
46
+ return [
47
+ ...entries.filter((entry) => entry !== graph),
48
+ { resourceAppId: GRAPH_APP_ID, resourceAccess: [...roles, ...missing] },
49
+ ];
50
+ }
51
+ const ENTRA_APP_URL = 'https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/~/Overview/appId';
52
+ const SECRET_LIFETIMES_MONTHS = [24, 12, 6, 3];
53
+ const UNIQUE_NAME_PREFIX = 'n8n-agent-';
54
+ const APP_NAME_MAX = 120;
55
+ let TeamsEntraProvisioningService = class TeamsEntraProvisioningService {
56
+ constructor(graph, tokens, credentialsService, credentialsFinderService, urlService) {
57
+ this.graph = graph;
58
+ this.tokens = tokens;
59
+ this.credentialsService = credentialsService;
60
+ this.credentialsFinderService = credentialsFinderService;
61
+ this.urlService = urlService;
62
+ }
63
+ async provision(options) {
64
+ const manager = await this.managerCredential(options);
65
+ const token = await this.tokens.acquire(manager, teams_manager_token_service_1.GRAPH_RESOURCE);
66
+ const tenant = await this.readTenant(token);
67
+ await this.rememberTenant(options.user, manager, tenant);
68
+ const existing = await this.findProvisionedCredential(options);
69
+ const app = await this.createApp(token, options.agentId, options.agentName);
70
+ const secret = (existing?.objectId === app.objectId ? existing.secret : undefined) ??
71
+ (await this.addSecret(token, app.objectId));
72
+ await this.createServicePrincipal(token, app.appId);
73
+ const redirectUri = (0, teams_admin_consent_1.adminConsentRedirectUri)(this.urlService.getInstanceBaseUrl(), options);
74
+ const fileAccessDeclared = await this.declareFileAccess(token, app.objectId, redirectUri);
75
+ const credentialId = await this.writeBotCredential({
76
+ options,
77
+ app,
78
+ secret,
79
+ tenantId: tenant.tenantId,
80
+ existingCredential: existing?.credential,
81
+ });
82
+ return {
83
+ credentialId,
84
+ appId: app.appId,
85
+ appName: app.displayName,
86
+ organizationName: tenant.organizationName,
87
+ entraAppUrl: `${ENTRA_APP_URL}/${app.appId}`,
88
+ fileAccessConsentUrl: fileAccessDeclared && redirectUri
89
+ ? (0, teams_admin_consent_1.adminConsentUrl)(tenant.tenantId, app.appId, redirectUri)
90
+ : null,
91
+ secretExpiresAt: secret.expiresAt,
92
+ };
93
+ }
94
+ async managerCredential(options) {
95
+ const credential = await this.credentialsFinderService.findCredentialForUser(options.managerCredentialId, options.user, ['credential:use']);
96
+ if (!credential || credential.type !== teams_managed_setup_service_1.TEAMS_MANAGER_CREDENTIAL_TYPE) {
97
+ throw (0, teams_setup_telemetry_service_1.withTeamsFailure)(new errors_1.BadRequestError('Sign in with Microsoft before creating the Teams app.'), 'not_signed_in');
98
+ }
99
+ return credential;
100
+ }
101
+ async readTenant(token) {
102
+ const organization = await this.graph.request(token, 'GET', '/organization?$select=id,displayName');
103
+ if (!organization.ok) {
104
+ throw new n8n_workflow_1.OperationalError('Could not read the organization this account belongs to.');
105
+ }
106
+ const first = (0, is_record_1.isRecord)(organization.body)
107
+ ? organization.body.value?.[0]
108
+ : undefined;
109
+ const tenantId = (0, integration_helpers_1.stringProperty)(first, 'id');
110
+ if (!tenantId) {
111
+ throw (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.UserError('Teams apps need a work or school account. Sign in again with your organization’s account.'), 'personal_account');
112
+ }
113
+ return { tenantId, organizationName: (0, integration_helpers_1.stringProperty)(first, 'displayName') ?? null };
114
+ }
115
+ async rememberTenant(user, manager, tenant) {
116
+ const rawData = await this.credentialsService.decrypt(manager, true);
117
+ const current = rawData;
118
+ if (current.tenantId === tenant.tenantId &&
119
+ current.organizationName === (tenant.organizationName ?? '')) {
120
+ return;
121
+ }
122
+ const updated = {
123
+ ...rawData,
124
+ tenantId: tenant.tenantId,
125
+ organizationName: tenant.organizationName ?? '',
126
+ };
127
+ const encrypted = await this.credentialsService.createEncryptedData({
128
+ id: manager.id,
129
+ name: manager.name,
130
+ type: manager.type,
131
+ data: updated,
132
+ });
133
+ await this.credentialsService.update(manager.id, encrypted, { kind: 'user', user }, updated);
134
+ }
135
+ async createApp(token, agentId, agentName) {
136
+ const displayName = (0, integration_helpers_1.sanitiseAppName)(`${agentName || 'n8n Agent'} (n8n)`, APP_NAME_MAX, 'n8n Agent (n8n)');
137
+ const uniqueName = `${UNIQUE_NAME_PREFIX}${agentId}`;
138
+ const response = await this.graph.request(token, 'PATCH', `/applications(uniqueName='${encodeURIComponent((0, teams_graph_service_1.odataLiteral)(uniqueName))}')`, {
139
+ displayName,
140
+ signInAudience: 'AzureADMyOrg',
141
+ tags: [uniqueName],
142
+ }, { Prefer: 'create-if-missing' });
143
+ if (!response.ok) {
144
+ throw this.registrationError(response.statusCode, (0, teams_graph_service_1.graphErrorCode)(response.body));
145
+ }
146
+ const objectId = (0, integration_helpers_1.stringProperty)(response.body, 'id');
147
+ const appId = (0, integration_helpers_1.stringProperty)(response.body, 'appId');
148
+ if (objectId && appId)
149
+ return { objectId, appId, displayName };
150
+ return await this.findAppByUniqueName(token, uniqueName, displayName);
151
+ }
152
+ async findAppByUniqueName(token, uniqueName, displayName) {
153
+ const query = new URLSearchParams({
154
+ $filter: `uniqueName eq '${(0, teams_graph_service_1.odataLiteral)(uniqueName)}'`,
155
+ $select: 'id,appId,displayName',
156
+ });
157
+ const response = await this.graph.request(token, 'GET', `/applications?${query.toString()}`);
158
+ if (!response.ok) {
159
+ throw this.registrationError(response.statusCode, (0, teams_graph_service_1.graphErrorCode)(response.body));
160
+ }
161
+ const value = (0, is_record_1.isRecord)(response.body) ? response.body.value : undefined;
162
+ const first = Array.isArray(value) ? value[0] : undefined;
163
+ const objectId = (0, integration_helpers_1.stringProperty)(first, 'id');
164
+ const appId = (0, integration_helpers_1.stringProperty)(first, 'appId');
165
+ if (!objectId || !appId) {
166
+ throw new n8n_workflow_1.OperationalError('Microsoft updated the app but would not say which one.');
167
+ }
168
+ return { objectId, appId, displayName: (0, integration_helpers_1.stringProperty)(first, 'displayName') ?? displayName };
169
+ }
170
+ async declareFileAccess(token, objectId, redirectUri) {
171
+ try {
172
+ return await this.mergeFileAccess(token, objectId, redirectUri);
173
+ }
174
+ catch {
175
+ return false;
176
+ }
177
+ }
178
+ async mergeFileAccess(token, objectId, redirectUri) {
179
+ const current = await this.graph.request(token, 'GET', `/applications/${objectId}?$select=requiredResourceAccess,web`);
180
+ if (!current.ok)
181
+ return false;
182
+ const app = (0, is_record_1.isRecord)(current.body) ? current.body : {};
183
+ const web = (0, is_record_1.isRecord)(app.web) ? app.web : {};
184
+ const redirectUris = Array.isArray(web.redirectUris) ? web.redirectUris : [];
185
+ const response = await this.graph.request(token, 'PATCH', `/applications/${objectId}`, {
186
+ requiredResourceAccess: withGraphPermissions(app.requiredResourceAccess),
187
+ ...(redirectUri && !redirectUris.includes(redirectUri)
188
+ ? { web: { redirectUris: [...redirectUris, redirectUri] } }
189
+ : {}),
190
+ });
191
+ return response.ok;
192
+ }
193
+ async dropExpiredSecrets(token, objectId) {
194
+ const response = await this.graph.request(token, 'GET', `/applications/${objectId}`);
195
+ if (!response.ok)
196
+ return;
197
+ const credentials = (0, is_record_1.isRecord)(response.body) ? response.body.passwordCredentials : undefined;
198
+ if (!Array.isArray(credentials))
199
+ return;
200
+ const now = Date.now();
201
+ for (const credential of credentials) {
202
+ const keyId = (0, integration_helpers_1.stringProperty)(credential, 'keyId');
203
+ const endDateTime = (0, integration_helpers_1.stringProperty)(credential, 'endDateTime');
204
+ if (!keyId || !endDateTime)
205
+ continue;
206
+ const expiry = Date.parse(endDateTime);
207
+ if (Number.isNaN(expiry) || expiry > now)
208
+ continue;
209
+ await this.graph.request(token, 'POST', `/applications/${objectId}/removePassword`, {
210
+ keyId,
211
+ });
212
+ }
213
+ }
214
+ async addSecret(token, objectId) {
215
+ await this.dropExpiredSecrets(token, objectId);
216
+ let lastCode;
217
+ for (const months of SECRET_LIFETIMES_MONTHS) {
218
+ const endDateTime = new Date();
219
+ endDateTime.setMonth(endDateTime.getMonth() + months);
220
+ const response = await this.graph.request(token, 'POST', `/applications/${objectId}/addPassword`, {
221
+ passwordCredential: {
222
+ displayName: 'n8n agent channel',
223
+ endDateTime: endDateTime.toISOString(),
224
+ },
225
+ });
226
+ if (response.ok) {
227
+ const value = (0, integration_helpers_1.stringProperty)(response.body, 'secretText');
228
+ if (!value) {
229
+ throw new n8n_workflow_1.OperationalError('Microsoft created a secret but did not return it.');
230
+ }
231
+ return {
232
+ value,
233
+ expiresAt: (0, integration_helpers_1.stringProperty)(response.body, 'endDateTime') ?? endDateTime.toISOString(),
234
+ };
235
+ }
236
+ lastCode = (0, teams_graph_service_1.graphErrorCode)(response.body);
237
+ }
238
+ throw (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.UserError(lastCode === 'Authorization_RequestDenied'
239
+ ? 'This organization does not allow n8n to add a client secret. Use the manual setup.'
240
+ : 'This organization refused every client secret lifetime n8n offered. Use the manual setup.'), 'secrets_refused');
241
+ }
242
+ async createServicePrincipal(token, appId) {
243
+ const response = await this.graph.request(token, 'POST', '/servicePrincipals', { appId });
244
+ if (!response.ok &&
245
+ (0, teams_graph_service_1.graphErrorCode)(response.body) !== 'Request_MultipleObjectsWithSameKeyValue') {
246
+ throw new n8n_workflow_1.OperationalError('Could not finish registering the app in this organization.');
247
+ }
248
+ }
249
+ registrationError(statusCode, code) {
250
+ if (statusCode === 403 || code === 'Authorization_RequestDenied') {
251
+ return (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.UserError('This organization doesn’t let you register apps. Ask an admin to register the app.'), 'cannot_register_apps');
252
+ }
253
+ return new n8n_workflow_1.OperationalError('Microsoft refused to register the app. Try again.');
254
+ }
255
+ async findProvisionedCredential(options) {
256
+ const usable = await this.credentialsService.getCredentialsAUserCanUseInAWorkflow(options.user, { projectId: options.projectId });
257
+ for (const candidate of usable) {
258
+ if (candidate.type !== exports.BOT_CREDENTIAL_TYPE)
259
+ continue;
260
+ const credential = await this.credentialsFinderService.findCredentialForUser(candidate.id, options.user, ['credential:read']);
261
+ if (!credential)
262
+ continue;
263
+ const data = await this.credentialsService.decrypt(credential, true);
264
+ const objectId = (0, integration_helpers_1.stringProperty)(data, 'entraAppObjectId');
265
+ if (objectId && (0, integration_helpers_1.stringProperty)(data, 'provisionedForAgentId') === options.agentId) {
266
+ return { credential, objectId, secret: usableSecret(data) };
267
+ }
268
+ }
269
+ return undefined;
270
+ }
271
+ async writeBotCredential(input) {
272
+ const existingData = input.existingCredential
273
+ ? (await this.credentialsService.decrypt(input.existingCredential, true))
274
+ : {};
275
+ const movedIdentity = (existingData.tenantId !== undefined && existingData.tenantId !== input.tenantId) ||
276
+ (existingData.clientId !== undefined && existingData.clientId !== input.app.appId);
277
+ if (movedIdentity) {
278
+ delete existingData.publishedTeamsAppId;
279
+ delete existingData.publishedTeamsAppState;
280
+ delete existingData.publishedTeamsAppAt;
281
+ delete existingData.azureBotName;
282
+ delete existingData.azureSubscriptionId;
283
+ }
284
+ const data = {
285
+ ...existingData,
286
+ tenantId: input.tenantId,
287
+ clientId: input.app.appId,
288
+ clientSecret: input.secret.value,
289
+ entraAppObjectId: input.app.objectId,
290
+ provisionedForAgentId: input.options.agentId,
291
+ managerCredentialId: input.options.managerCredentialId,
292
+ secretExpiresAt: input.secret.expiresAt,
293
+ };
294
+ if (input.existingCredential) {
295
+ const encrypted = await this.credentialsService.createEncryptedData({
296
+ id: input.existingCredential.id,
297
+ name: input.existingCredential.name,
298
+ type: exports.BOT_CREDENTIAL_TYPE,
299
+ data,
300
+ });
301
+ await this.credentialsService.update(input.existingCredential.id, encrypted, { kind: 'user', user: input.options.user }, data);
302
+ return input.existingCredential.id;
303
+ }
304
+ const created = await this.credentialsService.createUnmanagedCredential({
305
+ name: input.app.displayName,
306
+ type: exports.BOT_CREDENTIAL_TYPE,
307
+ data,
308
+ projectId: input.options.projectId,
309
+ }, input.options.user);
310
+ return created.id;
311
+ }
312
+ };
313
+ exports.TeamsEntraProvisioningService = TeamsEntraProvisioningService;
314
+ exports.TeamsEntraProvisioningService = TeamsEntraProvisioningService = __decorate([
315
+ (0, di_1.Service)(),
316
+ __metadata("design:paramtypes", [teams_graph_service_1.TeamsGraphService, teams_manager_token_service_1.TeamsManagerTokenService, credentials_service_1.CredentialsService, backend_services_1.CredentialsFinderService, backend_services_1.UrlService])
317
+ ], TeamsEntraProvisioningService);
318
+ //# sourceMappingURL=teams-entra-provisioning.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams-entra-provisioning.service.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,gCAAkC;AAClC,oDAAgD;AAChD,+CAA2D;AAC3D,mFAAmE;AAEnE,4DAA6E;AAC7E,2EAAuE;AACvE,wCAA8C;AAE9C,+DAAiF;AACjF,uEAA4D;AAC5D,+DAAwF;AACxF,+EAA8E;AAC9E,+EAAyF;AACzF,mEAA4E;AAE/D,QAAA,mBAAmB,GAAG,mCAAmC,CAAC;AAGvE,MAAM,sBAAsB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAA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,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CACnC,KAAK,CAAC,kBAAkB,CAAC,EAAE,EAC3B,SAAS,EACT,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAC1C,IAAI,CACJ,CAAC;YACF,OAAO,KAAK,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACpC,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,yBAAyB,CACtE;YACC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW;YAC3B,IAAI,EAAE,QAAA,mBAAmB;YACzB,IAAI;YACJ,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS;SAClC,EACD,KAAK,CAAC,OAAO,CAAC,IAAI,CAClB,CAAC;QACF,OAAO,OAAO,CAAC,EAAE,CAAC;IACnB,CAAC;CACD,CAAA;;wCAjeY,6BAA6B;IADzC,IAAA,YAAO,GAAE;qCAGgB,uCAAiB,EAChB,sDAAwB,EACZ,wCAAkB,EACZ,2CAAwB,EACtC,6BAAU;GAN5B,6BAA6B,CAiezC"}
@@ -0,0 +1,4 @@
1
+ export declare const GRAPH_APP_ROLES: ReadonlyArray<{
2
+ permission: string;
3
+ id: string;
4
+ }>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GRAPH_APP_ROLES = void 0;
4
+ exports.GRAPH_APP_ROLES = [
5
+ { permission: 'Files.Read.All', id: '01d4889c-1287-42c6-ac1f-5d1e02578ef6' },
6
+ { permission: 'User.ReadBasic.All', id: '97235f07-e226-4f63-ace3-39588e11d3a1' },
7
+ { permission: 'Team.ReadBasic.All', id: '2280dda6-0bfd-44ee-a2f4-cb867cfc4c1e' },
8
+ { permission: 'Channel.ReadBasic.All', id: '59a6b24b-4225-4393-8165-ebaec5f55d7a' },
9
+ ];
10
+ //# sourceMappingURL=teams-graph-permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams-graph-permissions.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-graph-permissions.ts"],"names":[],"mappings":";;;AACa,QAAA,eAAe,GAAsD;IACjF,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE,EAAE,sCAAsC,EAAE;IAC5E,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,EAAE,sCAAsC,EAAE;IAChF,EAAE,UAAU,EAAE,oBAAoB,EAAE,EAAE,EAAE,sCAAsC,EAAE;IAChF,EAAE,UAAU,EAAE,uBAAuB,EAAE,EAAE,EAAE,sCAAsC,EAAE;CACnF,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Logger } from '@n8n/backend-common';
2
+ import { OutboundHttp } from '@n8n/backend-network';
3
+ export interface GraphResponse {
4
+ statusCode: number;
5
+ body: unknown;
6
+ ok: boolean;
7
+ }
8
+ export declare class TeamsGraphService {
9
+ private readonly outboundHttp;
10
+ private readonly logger;
11
+ constructor(outboundHttp: OutboundHttp, logger: Logger);
12
+ request(accessToken: string, method: 'GET' | 'POST' | 'PATCH' | 'DELETE', path: string, body?: unknown, headers?: Record<string, string>): Promise<GraphResponse>;
13
+ postZip(accessToken: string, path: string, archive: Buffer): Promise<GraphResponse>;
14
+ }
15
+ export declare const odataLiteral: (value: string) => string;
16
+ export declare function graphErrorCode(body: unknown): string | undefined;
17
+ export declare function graphErrorMessage(body: unknown): string | undefined;
18
+ export declare function graphInnerErrorCode(body: unknown): string | undefined;
19
+ export declare function describeGraphError(body: unknown): string | undefined;
@@ -0,0 +1,128 @@
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.odataLiteral = exports.TeamsGraphService = void 0;
13
+ exports.graphErrorCode = graphErrorCode;
14
+ exports.graphErrorMessage = graphErrorMessage;
15
+ exports.graphInnerErrorCode = graphInnerErrorCode;
16
+ exports.describeGraphError = describeGraphError;
17
+ const backend_common_1 = require("@n8n/backend-common");
18
+ const backend_network_1 = require("@n8n/backend-network");
19
+ const di_1 = require("@n8n/di");
20
+ const is_record_1 = require("@n8n/utils/is-record");
21
+ const n8n_workflow_1 = require("n8n-workflow");
22
+ const integration_helpers_1 = require("../../integration-helpers");
23
+ const GRAPH_BASE_URL = 'https://graph.microsoft.com/v1.0';
24
+ const GRAPH_TIMEOUT_MS = 30_000;
25
+ function graphUrl(path) {
26
+ let parsed;
27
+ try {
28
+ parsed = new URL(`${GRAPH_BASE_URL}${path}`);
29
+ }
30
+ catch {
31
+ throw new n8n_workflow_1.UnexpectedError('Refusing to send a Microsoft Graph token to a path that is not a URL.');
32
+ }
33
+ if (!parsed.href.startsWith(`${GRAPH_BASE_URL}/`)) {
34
+ throw new n8n_workflow_1.UnexpectedError('Refusing to send a Microsoft Graph token elsewhere.');
35
+ }
36
+ return parsed.href;
37
+ }
38
+ let TeamsGraphService = class TeamsGraphService {
39
+ constructor(outboundHttp, logger) {
40
+ this.outboundHttp = outboundHttp;
41
+ this.logger = logger;
42
+ }
43
+ async request(accessToken, method, path, body, headers = {}) {
44
+ const response = await this.outboundHttp
45
+ .requests({ useDefaultSsrfPolicy: 'unsafe' })
46
+ .request({
47
+ method,
48
+ url: graphUrl(path),
49
+ headers: {
50
+ authorization: `Bearer ${accessToken}`,
51
+ 'content-type': 'application/json',
52
+ ...headers,
53
+ },
54
+ body: body === undefined ? undefined : JSON.stringify(body),
55
+ returnFullResponse: true,
56
+ ignoreHttpStatusErrors: true,
57
+ timeout: GRAPH_TIMEOUT_MS,
58
+ });
59
+ const ok = response.statusCode >= 200 && response.statusCode < 300;
60
+ if (!ok) {
61
+ this.logger.debug('[TeamsGraph] Graph refused a call', {
62
+ method,
63
+ path,
64
+ statusCode: response.statusCode,
65
+ error: describeGraphError(response.body) ?? graphErrorCode(response.body),
66
+ });
67
+ }
68
+ return { statusCode: response.statusCode, body: response.body, ok };
69
+ }
70
+ async postZip(accessToken, path, archive) {
71
+ const response = await this.outboundHttp
72
+ .requests({ useDefaultSsrfPolicy: 'unsafe' })
73
+ .request({
74
+ method: 'POST',
75
+ url: graphUrl(path),
76
+ headers: {
77
+ authorization: `Bearer ${accessToken}`,
78
+ 'content-type': 'application/zip',
79
+ },
80
+ body: archive,
81
+ returnFullResponse: true,
82
+ ignoreHttpStatusErrors: true,
83
+ timeout: GRAPH_TIMEOUT_MS,
84
+ });
85
+ const ok = response.statusCode >= 200 && response.statusCode < 300;
86
+ if (!ok) {
87
+ this.logger.warn('[TeamsGraph] Graph refused the app package', {
88
+ path,
89
+ statusCode: response.statusCode,
90
+ error: describeGraphError(response.body) ?? graphErrorCode(response.body),
91
+ });
92
+ }
93
+ return { statusCode: response.statusCode, body: response.body, ok };
94
+ }
95
+ };
96
+ exports.TeamsGraphService = TeamsGraphService;
97
+ exports.TeamsGraphService = TeamsGraphService = __decorate([
98
+ (0, di_1.Service)(),
99
+ __metadata("design:paramtypes", [backend_network_1.OutboundHttp, backend_common_1.Logger])
100
+ ], TeamsGraphService);
101
+ const odataLiteral = (value) => value.replace(/'/g, "''");
102
+ exports.odataLiteral = odataLiteral;
103
+ function graphErrorCode(body) {
104
+ if (!(0, is_record_1.isRecord)(body))
105
+ return undefined;
106
+ const error = body.error;
107
+ return (0, is_record_1.isRecord)(error) ? (0, integration_helpers_1.stringProperty)(error, 'code') : undefined;
108
+ }
109
+ function graphErrorMessage(body) {
110
+ if (!(0, is_record_1.isRecord)(body))
111
+ return undefined;
112
+ const error = body.error;
113
+ return (0, is_record_1.isRecord)(error) ? (0, integration_helpers_1.stringProperty)(error, 'message') : undefined;
114
+ }
115
+ function graphInnerErrorCode(body) {
116
+ if (!(0, is_record_1.isRecord)(body))
117
+ return undefined;
118
+ const error = body.error;
119
+ if (!(0, is_record_1.isRecord)(error))
120
+ return undefined;
121
+ const inner = error.innerError;
122
+ return (0, is_record_1.isRecord)(inner) ? (0, integration_helpers_1.stringProperty)(inner, 'code') : undefined;
123
+ }
124
+ function describeGraphError(body) {
125
+ const parts = [graphInnerErrorCode(body) ?? graphErrorCode(body), graphErrorMessage(body)].filter((part) => typeof part === 'string' && part.length > 0);
126
+ return parts.length > 0 ? parts.join(': ') : undefined;
127
+ }
128
+ //# sourceMappingURL=teams-graph.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teams-graph.service.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-graph.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAA6C;AAC7C,0DAAoD;AACpD,gCAAkC;AAClC,oDAAgD;AAChD,+CAA+C;AAE/C,mEAA2D;AAE3D,MAAM,cAAc,GAAG,kCAAkC,CAAC;AAC1D,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAQhC,SAAS,QAAQ,CAAC,IAAY;IAC7B,IAAI,MAAW,CAAC;IAChB,IAAI,CAAC;QACJ,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,cAAc,GAAG,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAAC,MAAM,CAAC;QACR,MAAM,IAAI,8BAAe,CACxB,uEAAuE,CACvE,CAAC;IACH,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,cAAc,GAAG,CAAC,EAAE,CAAC;Q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C,CAAC,CAAC,MAAM,CAChG,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CACrE,CAAC;IACF,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
@@ -1,13 +1,15 @@
1
- import type { AgentIntegrationConfig, RichCardComponentType } from '@n8n/api-types';
1
+ import type { AgentIntegrationConfig, AgentIntegrationDisconnectWarning, RichCardComponentType } from '@n8n/api-types';
2
2
  import { Logger } from '@n8n/backend-common';
3
+ import type { Attachment, Message, Thread } from 'chat';
3
4
  import { AgentRepository } from '../../../repositories/agent.repository';
4
- import { AgentChatIntegration, type AgentChannelPreconditionContext, type AgentChatIntegrationContext, type BridgeExecutionContext, type BridgeMessageContextParams, type BridgeResumeExecutionContext } from '../../agent-chat-integration';
5
+ import { AgentChatIntegration, type AgentChannelPreconditionContext, type AgentChatIntegrationContext, type AgentIntegrationRemovalContext, type BridgeExecutionContext, type BridgeMessageContextParams, type BridgeResumeExecutionContext, type PlatformContextQueryParams } from '../../agent-chat-integration';
5
6
  import { type SuspendComponent } from '../../component-mapper';
6
- import type { ReplyExpectation } from '../../integration-tool-types';
7
+ import type { IntegrationAction, ReplyExpectation } from '../../integration-tool-types';
7
8
  export declare class TeamsIntegration extends AgentChatIntegration {
8
9
  private readonly logger;
9
10
  private readonly agentRepository;
10
11
  readonly type = "teams";
12
+ onRemove(ctx: AgentIntegrationRemovalContext): Promise<AgentIntegrationDisconnectWarning | undefined>;
11
13
  readonly credentialTypes: string[];
12
14
  readonly displayLabel = "Microsoft Teams";
13
15
  readonly displayIcon = "teams";
@@ -18,6 +20,8 @@ export declare class TeamsIntegration extends AgentChatIntegration {
18
20
  useNodeToolWhen: string[];
19
21
  };
20
22
  readonly supportedComponents: readonly RichCardComponentType[];
23
+ readonly contextToolDefinitions: import("../../integration-tool-types").IntegrationContextQueryDefinition[];
24
+ readonly contextToolGuidance: string[];
21
25
  readonly actionToolDefinitions: import("../../integration-tool-types").IntegrationActionDefinition[];
22
26
  readonly actionToolGuidance: string[];
23
27
  readonly targetSuspensionCardAtActingUser = true;
@@ -36,6 +40,16 @@ export declare class TeamsIntegration extends AgentChatIntegration {
36
40
  };
37
41
  isNewMention: boolean;
38
42
  }): ReplyExpectation;
43
+ normalizeChannelId(channelId: string, adapter: unknown): string;
44
+ describeActionError(action: IntegrationAction, error: unknown): {
45
+ code: "PERMISSION_NOT_GRANTED";
46
+ message: string;
47
+ } | undefined;
48
+ executeContextQuery(params: PlatformContextQueryParams): Promise<unknown>;
49
+ fetchInboundAttachments({ thread, message, }: {
50
+ thread: Thread<unknown, unknown>;
51
+ message: Message<unknown>;
52
+ }): Promise<Attachment[]>;
39
53
  constructor(logger: Logger, agentRepository: AgentRepository);
40
54
  createAdapter(ctx: AgentChatIntegrationContext): Promise<unknown>;
41
55
  assertStartupPreconditions(ctx: AgentChannelPreconditionContext): Promise<void>;