n8n 2.43.3 → 2.44.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 (1378) hide show
  1. package/dist/abstract-server.d.ts +2 -0
  2. package/dist/abstract-server.js +12 -1
  3. package/dist/abstract-server.js.map +1 -1
  4. package/dist/agent-library-bundle.js +8 -0
  5. package/dist/auth/auth.service.js +1 -1
  6. package/dist/auth/auth.service.js.map +1 -1
  7. package/dist/binary-data/binary-data-access.service.d.ts +4 -1
  8. package/dist/binary-data/binary-data-access.service.js +20 -6
  9. package/dist/binary-data/binary-data-access.service.js.map +1 -1
  10. package/dist/build.tsbuildinfo +1 -1
  11. package/dist/chat/chat-execution-manager.js +1 -0
  12. package/dist/chat/chat-execution-manager.js.map +1 -1
  13. package/dist/commands/base-command.d.ts +4 -0
  14. package/dist/commands/base-command.js +10 -3
  15. package/dist/commands/base-command.js.map +1 -1
  16. package/dist/commands/engine.d.ts +1 -0
  17. package/dist/commands/engine.js +16 -0
  18. package/dist/commands/engine.js.map +1 -1
  19. package/dist/commands/start.js +0 -4
  20. package/dist/commands/start.js.map +1 -1
  21. package/dist/commands/webhook.js +1 -0
  22. package/dist/commands/webhook.js.map +1 -1
  23. package/dist/controllers/e2e.controller.js +1 -0
  24. package/dist/controllers/e2e.controller.js.map +1 -1
  25. package/dist/crash-journal.js +1 -1
  26. package/dist/crash-journal.js.map +1 -1
  27. package/dist/credentials/credential-options.controller.d.ts +10 -0
  28. package/dist/credentials/credential-options.controller.js +64 -0
  29. package/dist/credentials/credential-options.controller.js.map +1 -0
  30. package/dist/credentials/credential-options.service.d.ts +21 -0
  31. package/dist/credentials/credential-options.service.js +105 -0
  32. package/dist/credentials/credential-options.service.js.map +1 -0
  33. package/dist/credentials/credentials.service.d.ts +12 -2
  34. package/dist/credentials/credentials.service.ee.d.ts +3 -1
  35. package/dist/credentials/credentials.service.ee.js +8 -2
  36. package/dist/credentials/credentials.service.ee.js.map +1 -1
  37. package/dist/credentials/credentials.service.js +44 -18
  38. package/dist/credentials/credentials.service.js.map +1 -1
  39. package/dist/credentials/pending-authorization-cleanup.task.js +5 -1
  40. package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
  41. package/dist/errors/job-returned-to-queue.error.d.ts +5 -0
  42. package/dist/errors/job-returned-to-queue.error.js +12 -0
  43. package/dist/errors/job-returned-to-queue.error.js.map +1 -0
  44. package/dist/errors/response-errors/incompatible-nodes-api-version.error.d.ts +4 -4
  45. package/dist/events/maps/relay.event-map.d.ts +24 -2
  46. package/dist/events/maps/system-task-metrics.event-map.d.ts +1 -1
  47. package/dist/events/maps/system-task-metrics.event-map.js.map +1 -1
  48. package/dist/events/relays/telemetry.event-relay.d.ts +2 -0
  49. package/dist/events/relays/telemetry.event-relay.js +66 -2
  50. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  51. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +3 -2
  52. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  53. package/dist/executions/engine-v2-execution-reader.service.d.ts +4 -0
  54. package/dist/executions/engine-v2-execution-reader.service.js +11 -0
  55. package/dist/executions/engine-v2-execution-reader.service.js.map +1 -1
  56. package/dist/executions/enqueued-execution-recovery.service.js +5 -1
  57. package/dist/executions/enqueued-execution-recovery.service.js.map +1 -1
  58. package/dist/executions/execution-crash.service.d.ts +3 -1
  59. package/dist/executions/execution-crash.service.js +4 -4
  60. package/dist/executions/execution-crash.service.js.map +1 -1
  61. package/dist/executions/execution-id.d.ts +1 -0
  62. package/dist/executions/execution-id.js +4 -1
  63. package/dist/executions/execution-id.js.map +1 -1
  64. package/dist/executions/execution-persistence.js +1 -1
  65. package/dist/executions/execution-persistence.js.map +1 -1
  66. package/dist/executions/execution-recovery.service.d.ts +1 -0
  67. package/dist/executions/execution-recovery.service.js +17 -5
  68. package/dist/executions/execution-recovery.service.js.map +1 -1
  69. package/dist/executions/execution.service.js +1 -0
  70. package/dist/executions/execution.service.js.map +1 -1
  71. package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +3 -1
  72. package/dist/executions/pre-execution-checks/credentials-permission-checker.js +32 -3
  73. package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
  74. package/dist/interfaces.d.ts +4 -1
  75. package/dist/license/license-renewal.task.d.ts +3 -0
  76. package/dist/license/license-renewal.task.js +4 -1
  77. package/dist/license/license-renewal.task.js.map +1 -1
  78. package/dist/license.js +14 -3
  79. package/dist/license.js.map +1 -1
  80. package/dist/load-nodes-and-credentials.d.ts +6 -0
  81. package/dist/load-nodes-and-credentials.js +28 -12
  82. package/dist/load-nodes-and-credentials.js.map +1 -1
  83. package/dist/manual-execution.service.d.ts +5 -3
  84. package/dist/manual-execution.service.js +7 -6
  85. package/dist/manual-execution.service.js.map +1 -1
  86. package/dist/metrics/prometheus/active-workflow-metrics.service.d.ts +3 -5
  87. package/dist/metrics/prometheus/active-workflow-metrics.service.js +6 -13
  88. package/dist/metrics/prometheus/active-workflow-metrics.service.js.map +1 -1
  89. package/dist/metrics/prometheus/cached-metric-query.d.ts +14 -3
  90. package/dist/metrics/prometheus/cached-metric-query.js +59 -7
  91. package/dist/metrics/prometheus/cached-metric-query.js.map +1 -1
  92. package/dist/metrics/prometheus/constant.d.ts +1 -0
  93. package/dist/metrics/prometheus/constant.js +2 -1
  94. package/dist/metrics/prometheus/constant.js.map +1 -1
  95. package/dist/metrics/prometheus/database-metric-query.service.d.ts +39 -0
  96. package/dist/metrics/prometheus/database-metric-query.service.js +88 -0
  97. package/dist/metrics/prometheus/database-metric-query.service.js.map +1 -0
  98. package/dist/metrics/prometheus/db-pool-metrics.service.js +21 -0
  99. package/dist/metrics/prometheus/db-pool-metrics.service.js.map +1 -1
  100. package/dist/metrics/prometheus/prometheus.service.d.ts +3 -1
  101. package/dist/metrics/prometheus/prometheus.service.js +7 -3
  102. package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
  103. package/dist/metrics/prometheus/scheduler-metrics.service.d.ts +7 -5
  104. package/dist/metrics/prometheus/scheduler-metrics.service.js +30 -23
  105. package/dist/metrics/prometheus/scheduler-metrics.service.js.map +1 -1
  106. package/dist/metrics/prometheus/system-task-metrics.service.d.ts +4 -6
  107. package/dist/metrics/prometheus/system-task-metrics.service.js +9 -22
  108. package/dist/metrics/prometheus/system-task-metrics.service.js.map +1 -1
  109. package/dist/metrics/prometheus/workflow-info-metrics.service.d.ts +3 -5
  110. package/dist/metrics/prometheus/workflow-info-metrics.service.js +14 -20
  111. package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
  112. package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +4 -5
  113. package/dist/metrics/prometheus/workflow-publication-metrics.service.js +10 -22
  114. package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
  115. package/dist/metrics/prometheus/workflow-statistics-metrics.service.d.ts +3 -5
  116. package/dist/metrics/prometheus/workflow-statistics-metrics.service.js +6 -13
  117. package/dist/metrics/prometheus/workflow-statistics-metrics.service.js.map +1 -1
  118. package/dist/middlewares/content-security-policy.js +45 -10
  119. package/dist/middlewares/content-security-policy.js.map +1 -1
  120. package/dist/middlewares/list-query/dtos/workflow.filter.dto.d.ts +2 -0
  121. package/dist/middlewares/list-query/dtos/workflow.filter.dto.js +9 -0
  122. package/dist/middlewares/list-query/dtos/workflow.filter.dto.js.map +1 -1
  123. package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +8 -2
  124. package/dist/modules/agent-evals/agent-eval-case-generation.service.js +113 -14
  125. package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -1
  126. package/dist/modules/agent-evals/agent-eval-fix-suggestion.d.ts +21 -0
  127. package/dist/modules/agent-evals/agent-eval-fix-suggestion.js +55 -0
  128. package/dist/modules/agent-evals/agent-eval-fix-suggestion.js.map +1 -0
  129. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.d.ts +22 -0
  130. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js +108 -0
  131. package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js.map +1 -0
  132. package/dist/modules/agent-evals/agent-eval-judge.d.ts +22 -0
  133. package/dist/modules/agent-evals/agent-eval-judge.js +36 -0
  134. package/dist/modules/agent-evals/agent-eval-judge.js.map +1 -0
  135. package/dist/modules/agent-evals/agent-eval-record-mappers.js +8 -0
  136. package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -1
  137. package/dist/modules/agent-evals/agent-eval-runner.service.d.ts +12 -2
  138. package/dist/modules/agent-evals/agent-eval-runner.service.js +102 -2
  139. package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -1
  140. package/dist/modules/agent-evals/agent-eval.service.d.ts +17 -3
  141. package/dist/modules/agent-evals/agent-eval.service.js +185 -2
  142. package/dist/modules/agent-evals/agent-eval.service.js.map +1 -1
  143. package/dist/modules/agent-evals/agent-evals.controller.d.ts +16 -2
  144. package/dist/modules/agent-evals/agent-evals.controller.js +111 -2
  145. package/dist/modules/agent-evals/agent-evals.controller.js.map +1 -1
  146. package/dist/modules/agent-evals/case-generation/case-generation-prompt.d.ts +18 -1
  147. package/dist/modules/agent-evals/case-generation/case-generation-prompt.js +47 -9
  148. package/dist/modules/agent-evals/case-generation/case-generation-prompt.js.map +1 -1
  149. package/dist/modules/agents/agent-budget-alert.service.d.ts +21 -0
  150. package/dist/modules/agents/agent-budget-alert.service.js +82 -0
  151. package/dist/modules/agents/agent-budget-alert.service.js.map +1 -0
  152. package/dist/modules/agents/agent-chat-execution.service.d.ts +6 -2
  153. package/dist/modules/agents/agent-chat-execution.service.js +13 -15
  154. package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
  155. package/dist/modules/agents/agent-chat.controller.d.ts +36 -0
  156. package/dist/modules/agents/agent-chat.controller.js +149 -54
  157. package/dist/modules/agents/agent-chat.controller.js.map +1 -1
  158. package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +5 -2
  159. package/dist/modules/agents/agent-checkpoint-pruning.task.js +7 -4
  160. package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
  161. package/dist/modules/agents/agent-config-preparation.service.d.ts +325 -0
  162. package/dist/modules/agents/agent-config-preparation.service.js +100 -0
  163. package/dist/modules/agents/agent-config-preparation.service.js.map +1 -0
  164. package/dist/modules/agents/agent-config.service.d.ts +15 -18
  165. package/dist/modules/agents/agent-config.service.js +58 -129
  166. package/dist/modules/agents/agent-config.service.js.map +1 -1
  167. package/dist/modules/agents/agent-context-readers.js +1 -2
  168. package/dist/modules/agents/agent-context-readers.js.map +1 -1
  169. package/dist/modules/agents/agent-custom-tools.service.d.ts +8 -9
  170. package/dist/modules/agents/agent-custom-tools.service.js +14 -19
  171. package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
  172. package/dist/modules/agents/agent-definition.service.d.ts +19 -0
  173. package/dist/modules/agents/agent-definition.service.js +75 -0
  174. package/dist/modules/agents/agent-definition.service.js.map +1 -0
  175. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +10 -8
  176. package/dist/modules/agents/agent-execution-orchestrator.service.js +250 -146
  177. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  178. package/dist/modules/agents/agent-execution-update-broadcaster.js +2 -1
  179. package/dist/modules/agents/agent-execution-update-broadcaster.js.map +1 -1
  180. package/dist/modules/agents/agent-execution.service.d.ts +9 -1
  181. package/dist/modules/agents/agent-execution.service.js +22 -1
  182. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  183. package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -1
  184. package/dist/modules/agents/agent-integration-persistence.service.js +23 -15
  185. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  186. package/dist/modules/agents/agent-integrations.controller.d.ts +12 -2
  187. package/dist/modules/agents/agent-integrations.controller.js +49 -4
  188. package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
  189. package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +12 -0
  190. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +36 -0
  191. package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -0
  192. package/dist/modules/agents/agent-interrupted-execution-sweeper.d.ts +3 -2
  193. package/dist/modules/agents/agent-interrupted-execution-sweeper.js +20 -7
  194. package/dist/modules/agents/agent-interrupted-execution-sweeper.js.map +1 -1
  195. package/dist/modules/agents/agent-message-queue-consumer.service.js +2 -5
  196. package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
  197. package/dist/modules/agents/agent-message-queue.service.d.ts +3 -1
  198. package/dist/modules/agents/agent-message-queue.service.js +7 -5
  199. package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
  200. package/dist/modules/agents/agent-message-steering.service.d.ts +2 -1
  201. package/dist/modules/agents/agent-message-steering.service.js +17 -9
  202. package/dist/modules/agents/agent-message-steering.service.js.map +1 -1
  203. package/dist/modules/agents/agent-modification-telemetry.service.d.ts +33 -3
  204. package/dist/modules/agents/agent-modification-telemetry.service.js +11 -8
  205. package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
  206. package/dist/modules/agents/agent-n8n-chat-unavailable.error.d.ts +4 -0
  207. package/dist/modules/agents/agent-n8n-chat-unavailable.error.js +11 -0
  208. package/dist/modules/agents/agent-n8n-chat-unavailable.error.js.map +1 -0
  209. package/dist/modules/agents/agent-policy.service.d.ts +10 -0
  210. package/dist/modules/agents/agent-policy.service.js +44 -0
  211. package/dist/modules/agents/agent-policy.service.js.map +1 -0
  212. package/dist/modules/agents/agent-publish.service.d.ts +17 -8
  213. package/dist/modules/agents/agent-publish.service.js +95 -113
  214. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  215. package/dist/modules/agents/agent-push-recipients.service.d.ts +1 -0
  216. package/dist/modules/agents/agent-push-recipients.service.js +5 -2
  217. package/dist/modules/agents/agent-push-recipients.service.js.map +1 -1
  218. package/dist/modules/agents/agent-runnable-state.service.d.ts +3 -1
  219. package/dist/modules/agents/agent-runnable-state.service.js +5 -3
  220. package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
  221. package/dist/modules/agents/agent-runtime-cache.service.d.ts +3 -1
  222. package/dist/modules/agents/agent-runtime-cache.service.js +7 -7
  223. package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
  224. package/dist/modules/agents/agent-runtime-instrumentation.d.ts +6 -0
  225. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +2 -2
  226. package/dist/modules/agents/agent-runtime-reconstruction.service.js +23 -16
  227. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  228. package/dist/modules/agents/agent-save-completion.service.d.ts +14 -0
  229. package/dist/modules/agents/agent-save-completion.service.js +51 -0
  230. package/dist/modules/agents/agent-save-completion.service.js.map +1 -0
  231. package/dist/modules/agents/agent-setup-completion.service.d.ts +2 -1
  232. package/dist/modules/agents/agent-setup-completion.service.js +5 -3
  233. package/dist/modules/agents/agent-setup-completion.service.js.map +1 -1
  234. package/dist/modules/agents/agent-skill-refs.service.d.ts +12 -0
  235. package/dist/modules/agents/agent-skill-refs.service.js +52 -0
  236. package/dist/modules/agents/agent-skill-refs.service.js.map +1 -0
  237. package/dist/modules/agents/agent-skills.service.d.ts +14 -8
  238. package/dist/modules/agents/agent-skills.service.js +64 -41
  239. package/dist/modules/agents/agent-skills.service.js.map +1 -1
  240. package/dist/modules/agents/agent-sse-stream.d.ts +1 -0
  241. package/dist/modules/agents/agent-sse-stream.js +15 -0
  242. package/dist/modules/agents/agent-sse-stream.js.map +1 -1
  243. package/dist/modules/agents/agent-task.service.d.ts +12 -7
  244. package/dist/modules/agents/agent-task.service.js +35 -31
  245. package/dist/modules/agents/agent-task.service.js.map +1 -1
  246. package/dist/modules/agents/agent-telemetry.d.ts +2 -2
  247. package/dist/modules/agents/agent-telemetry.js +3 -2
  248. package/dist/modules/agents/agent-telemetry.js.map +1 -1
  249. package/dist/modules/agents/agent-test-run.service.d.ts +4 -2
  250. package/dist/modules/agents/agent-test-run.service.js +2 -2
  251. package/dist/modules/agents/agent-test-run.service.js.map +1 -1
  252. package/dist/modules/agents/agent-threads.controller.js +2 -1
  253. package/dist/modules/agents/agent-threads.controller.js.map +1 -1
  254. package/dist/modules/agents/agent-tool-approval.service.d.ts +1 -1
  255. package/dist/modules/agents/agent-tool-approval.service.js +2 -1
  256. package/dist/modules/agents/agent-tool-approval.service.js.map +1 -1
  257. package/dist/modules/agents/agent-turn-execution.service.d.ts +4 -4
  258. package/dist/modules/agents/agent-turn-execution.service.js +27 -25
  259. package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
  260. package/dist/modules/agents/agent-validation.service.d.ts +11 -7
  261. package/dist/modules/agents/agent-validation.service.js +60 -30
  262. package/dist/modules/agents/agent-validation.service.js.map +1 -1
  263. package/dist/modules/agents/agent-workflow-execution.service.d.ts +13 -5
  264. package/dist/modules/agents/agent-workflow-execution.service.js +44 -20
  265. package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
  266. package/dist/modules/agents/agent-workflow-tool-resume.service.js +2 -3
  267. package/dist/modules/agents/agent-workflow-tool-resume.service.js.map +1 -1
  268. package/dist/modules/agents/agents-config.controller.d.ts +16 -0
  269. package/dist/modules/agents/agents-list.controller.d.ts +4 -1
  270. package/dist/modules/agents/agents-list.controller.js +44 -0
  271. package/dist/modules/agents/agents-list.controller.js.map +1 -1
  272. package/dist/modules/agents/agents.controller.js +1 -0
  273. package/dist/modules/agents/agents.controller.js.map +1 -1
  274. package/dist/modules/agents/agents.module.d.ts +1 -3
  275. package/dist/modules/agents/agents.module.js +9 -25
  276. package/dist/modules/agents/agents.module.js.map +1 -1
  277. package/dist/modules/agents/agents.service.d.ts +21 -5
  278. package/dist/modules/agents/agents.service.js +63 -12
  279. package/dist/modules/agents/agents.service.js.map +1 -1
  280. package/dist/modules/agents/background/agent-background-job.service.d.ts +3 -3
  281. package/dist/modules/agents/background/agent-background-job.service.js +39 -10
  282. package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
  283. package/dist/modules/agents/background/agent-wake.service.js +13 -5
  284. package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
  285. package/dist/modules/agents/background/background-job-tools.d.ts +2 -2
  286. package/dist/modules/agents/background/background-job-tools.js +9 -58
  287. package/dist/modules/agents/background/background-job-tools.js.map +1 -1
  288. package/dist/modules/agents/budget-guardrail.d.ts +1 -0
  289. package/dist/modules/agents/budget-guardrail.js +42 -1
  290. package/dist/modules/agents/budget-guardrail.js.map +1 -1
  291. package/dist/modules/agents/builder/agents-builder-prompts.d.ts +5 -5
  292. package/dist/modules/agents/builder/agents-builder-prompts.js +52 -31
  293. package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
  294. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -1
  295. package/dist/modules/agents/builder/agents-builder-tools.service.js +189 -89
  296. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  297. package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +2 -2
  298. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +25 -12
  299. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  300. package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +1 -1
  301. package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +1 -1
  302. package/dist/modules/agents/builder/skills/external-services.skill.js +4 -4
  303. package/dist/modules/agents/builder/skills/node-tools.skill.js +4 -4
  304. package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
  305. package/dist/modules/agents/builder/skills/target-skills.skill.js +14 -8
  306. package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
  307. package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +9 -3
  308. package/dist/modules/agents/builder/verify-mcp-server.tool.js +16 -3
  309. package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
  310. package/dist/modules/agents/entities/agent-history.entity.d.ts +2 -2
  311. package/dist/modules/agents/entities/agent-history.entity.js.map +1 -1
  312. package/dist/modules/agents/entities/agent.entity.d.ts +2 -2
  313. package/dist/modules/agents/entities/agent.entity.js.map +1 -1
  314. package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +3 -1
  315. package/dist/modules/agents/instance-ai-agent-context.adapter.js +5 -3
  316. package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +1 -1
  317. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +4 -1
  318. package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
  319. package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
  320. package/dist/modules/agents/integrations/agent-chat-bridge.js +67 -20
  321. package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
  322. package/dist/modules/agents/integrations/agent-chat-integration.d.ts +18 -3
  323. package/dist/modules/agents/integrations/agent-chat-integration.js +1 -0
  324. package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
  325. package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +4 -0
  326. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +81 -24
  327. package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
  328. package/dist/modules/agents/integrations/channel-rate-limit.d.ts +6 -0
  329. package/dist/modules/agents/integrations/channel-rate-limit.js +11 -1
  330. package/dist/modules/agents/integrations/channel-rate-limit.js.map +1 -1
  331. package/dist/modules/agents/integrations/component-mapper.d.ts +6 -0
  332. package/dist/modules/agents/integrations/component-mapper.js +16 -3
  333. package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
  334. package/dist/modules/agents/integrations/esm-loader.d.ts +1 -0
  335. package/dist/modules/agents/integrations/esm-loader.js +4 -0
  336. package/dist/modules/agents/integrations/esm-loader.js.map +1 -1
  337. package/dist/modules/agents/integrations/integration-helpers.d.ts +1 -0
  338. package/dist/modules/agents/integrations/integration-helpers.js +7 -0
  339. package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
  340. package/dist/modules/agents/integrations/integration-tool-execution.d.ts +1 -0
  341. package/dist/modules/agents/integrations/integration-tool-execution.js +13 -0
  342. package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
  343. package/dist/modules/agents/integrations/integration-tool-factory.js +1 -0
  344. package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
  345. package/dist/modules/agents/integrations/n8n-memory.d.ts +7 -0
  346. package/dist/modules/agents/integrations/n8n-memory.js +24 -10
  347. package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
  348. package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +2 -2
  349. package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +2 -1
  350. package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
  351. package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +15 -1
  352. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +63 -2
  353. package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
  354. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +11 -0
  355. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +5 -3
  356. package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
  357. package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
  358. package/dist/modules/agents/integrations/platforms/whatsapp-integration.d.ts +43 -0
  359. package/dist/modules/agents/integrations/platforms/whatsapp-integration.js +337 -0
  360. package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +1 -0
  361. package/dist/modules/agents/json-config/agent-config-composition.d.ts +2 -1
  362. package/dist/modules/agents/json-config/agent-config-composition.js +3 -2
  363. package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -1
  364. package/dist/modules/agents/json-config/agent-document.d.ts +7 -0
  365. package/dist/modules/agents/json-config/agent-document.js +13 -0
  366. package/dist/modules/agents/json-config/agent-document.js.map +1 -0
  367. package/dist/modules/agents/json-config/credential-field-mapping.d.ts +1 -1
  368. package/dist/modules/agents/json-config/credential-field-mapping.js +33 -8
  369. package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
  370. package/dist/modules/agents/json-config/mcp-client-factory.js +6 -0
  371. package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
  372. package/dist/modules/agents/json-config/model-config.js +13 -1
  373. package/dist/modules/agents/json-config/model-config.js.map +1 -1
  374. package/dist/modules/agents/json-config/prune-missing-config-references.d.ts +5 -0
  375. package/dist/modules/agents/json-config/prune-missing-config-references.js +20 -0
  376. package/dist/modules/agents/json-config/prune-missing-config-references.js.map +1 -0
  377. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +8 -94
  378. package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
  379. package/dist/modules/agents/plans/agent-plan-tools.js +3 -3
  380. package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
  381. package/dist/modules/agents/register-favorite-resolver.js +2 -2
  382. package/dist/modules/agents/register-favorite-resolver.js.map +1 -1
  383. package/dist/modules/agents/repositories/agent-credential-dependency.repository.js +4 -1
  384. package/dist/modules/agents/repositories/agent-credential-dependency.repository.js.map +1 -1
  385. package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +10 -0
  386. package/dist/modules/agents/repositories/agent-execution-thread.repository.js +67 -8
  387. package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
  388. package/dist/modules/agents/repositories/agent-history.repository.d.ts +8 -9
  389. package/dist/modules/agents/repositories/agent-history.repository.js +9 -8
  390. package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
  391. package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +15 -2
  392. package/dist/modules/agents/repositories/agent-message-queue.repository.js +9 -2
  393. package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
  394. package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +6 -5
  395. package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +9 -8
  396. package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -1
  397. package/dist/modules/agents/repositories/agent-task.repository.d.ts +9 -4
  398. package/dist/modules/agents/repositories/agent-task.repository.js +40 -6
  399. package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -1
  400. package/dist/modules/agents/repositories/agent-thread.repository.d.ts +6 -0
  401. package/dist/modules/agents/repositories/agent-thread.repository.js +20 -0
  402. package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -1
  403. package/dist/modules/agents/repositories/agent.repository.d.ts +23 -9
  404. package/dist/modules/agents/repositories/agent.repository.js +118 -15
  405. package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
  406. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +1 -0
  407. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +2 -1
  408. package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
  409. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +3 -1
  410. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +8 -5
  411. package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
  412. package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
  413. package/dist/modules/agents/tools/node-tool-factory.js +3 -14
  414. package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
  415. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +4 -2
  416. package/dist/modules/agents/tools/workflow-tool-factory.js +39 -13
  417. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  418. package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +5 -1
  419. package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -1
  420. package/dist/modules/agents/types/agent-queued-message.d.ts +1 -0
  421. package/dist/modules/agents/types/agent-queued-message.js +3 -1
  422. package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
  423. package/dist/modules/agents/utils/agent-config-hash.d.ts +1 -0
  424. package/dist/modules/agents/utils/agent-config-hash.js +4 -0
  425. package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
  426. package/dist/modules/agents/utils/agent-definition.d.ts +329 -0
  427. package/dist/modules/agents/utils/agent-definition.js +17 -0
  428. package/dist/modules/agents/utils/agent-definition.js.map +1 -0
  429. package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -3
  430. package/dist/modules/agents/utils/agent-draft.utils.js +2 -2
  431. package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
  432. package/dist/modules/agents/utils/agent-execution-counter.d.ts +2 -1
  433. package/dist/modules/agents/utils/agent-execution-counter.js +4 -1
  434. package/dist/modules/agents/utils/agent-execution-counter.js.map +1 -1
  435. package/dist/modules/agents/utils/agent-missing-skill-ids.d.ts +3 -2
  436. package/dist/modules/agents/utils/agent-missing-skill-ids.js +2 -2
  437. package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -1
  438. package/dist/modules/agents/utils/agent-published-snapshot.d.ts +8 -1
  439. package/dist/modules/agents/utils/agent-published-snapshot.js +21 -7
  440. package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
  441. package/dist/modules/agents/utils/agent-ref.d.ts +8 -0
  442. package/dist/modules/agents/utils/agent-ref.js +12 -0
  443. package/dist/modules/agents/utils/agent-ref.js.map +1 -0
  444. package/dist/modules/agents/utils/agent-thread-access.d.ts +3 -1
  445. package/dist/modules/agents/utils/agent-thread-access.js +7 -0
  446. package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
  447. package/dist/modules/agents/utils/extract-agent-credential-ids.d.ts +1 -2
  448. package/dist/modules/agents/utils/extract-agent-credential-ids.js +6 -33
  449. package/dist/modules/agents/utils/extract-agent-credential-ids.js.map +1 -1
  450. package/dist/modules/agents/utils/extract-agent-workflow-refs.d.ts +1 -1
  451. package/dist/modules/agents/utils/extract-agent-workflow-refs.js.map +1 -1
  452. package/dist/modules/agents/utils/parse-thread-list-limit.d.ts +1 -0
  453. package/dist/modules/agents/utils/parse-thread-list-limit.js +7 -0
  454. package/dist/modules/agents/utils/parse-thread-list-limit.js.map +1 -0
  455. package/dist/modules/agents/utils/skill-instruction-edits.d.ts +5 -0
  456. package/dist/modules/agents/utils/skill-instruction-edits.js +15 -0
  457. package/dist/modules/agents/utils/skill-instruction-edits.js.map +1 -0
  458. package/dist/modules/agents/utils/visit-agent-credential-references.d.ts +8 -0
  459. package/dist/modules/agents/utils/visit-agent-credential-references.js +67 -0
  460. package/dist/modules/agents/utils/visit-agent-credential-references.js.map +1 -0
  461. package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +17 -5
  462. package/dist/modules/breaking-changes/breaking-changes.controller.js +94 -8
  463. package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
  464. package/dist/modules/breaking-changes/breaking-changes.module.d.ts +1 -1
  465. package/dist/modules/breaking-changes/breaking-changes.module.js +2 -1
  466. package/dist/modules/breaking-changes/breaking-changes.module.js.map +1 -1
  467. package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.d.ts +14 -0
  468. package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js +57 -0
  469. package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js.map +1 -0
  470. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +12 -6
  471. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +104 -30
  472. package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
  473. package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.d.ts +14 -0
  474. package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js +79 -0
  475. package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js.map +1 -0
  476. package/dist/modules/breaking-changes/migrations/index.js +1 -2
  477. package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
  478. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.d.ts +17 -0
  479. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js +64 -0
  480. package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js.map +1 -0
  481. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.d.ts +16 -0
  482. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js +113 -0
  483. package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js.map +1 -0
  484. package/dist/modules/breaking-changes/owners/workflow-owner.d.ts +3 -0
  485. package/dist/modules/breaking-changes/owners/workflow-owner.js +13 -0
  486. package/dist/modules/breaking-changes/owners/workflow-owner.js.map +1 -0
  487. package/dist/modules/breaking-changes/query/migration-finding-query.service.d.ts +16 -5
  488. package/dist/modules/breaking-changes/query/migration-finding-query.service.js +51 -16
  489. package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
  490. package/dist/modules/breaking-changes/rules/index.d.ts +0 -1
  491. package/dist/modules/breaking-changes/rules/index.js +0 -1
  492. package/dist/modules/breaking-changes/rules/index.js.map +1 -1
  493. package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -1
  494. package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
  495. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.d.ts +7 -3
  496. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +22 -15
  497. package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
  498. package/dist/modules/breaking-changes/triage/migration-finding-triage.service.d.ts +11 -0
  499. package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js +47 -0
  500. package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js.map +1 -0
  501. package/dist/modules/chat-hub/chat-hub-execution-watcher.service.js +2 -0
  502. package/dist/modules/chat-hub/chat-hub-execution-watcher.service.js.map +1 -1
  503. package/dist/modules/chat-hub/chat-hub-execution.service.js +1 -0
  504. package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
  505. package/dist/modules/community-packages/community-node-types-utils.d.ts +2 -2
  506. package/dist/modules/community-packages/community-node.command.d.ts +1 -1
  507. package/dist/modules/community-packages/community-packages.config.d.ts +1 -1
  508. package/dist/modules/community-packages/community-packages.service.js +6 -6
  509. package/dist/modules/community-packages/community-packages.service.js.map +1 -1
  510. package/dist/modules/data-table/data-table-column.repository.d.ts +12 -4
  511. package/dist/modules/data-table/data-table-column.repository.js +51 -6
  512. package/dist/modules/data-table/data-table-column.repository.js.map +1 -1
  513. package/dist/modules/data-table/data-table-file-cleanup.service.d.ts +5 -7
  514. package/dist/modules/data-table/data-table-file-cleanup.service.js +35 -37
  515. package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
  516. package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +14 -0
  517. package/dist/modules/data-table/data-table-file-cleanup.task.js +37 -0
  518. package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -0
  519. package/dist/modules/data-table/data-table.module.d.ts +2 -1
  520. package/dist/modules/data-table/data-table.module.js +4 -4
  521. package/dist/modules/data-table/data-table.module.js.map +1 -1
  522. package/dist/modules/data-table/data-table.repository.d.ts +1 -1
  523. package/dist/modules/data-table/data-table.repository.js +2 -1
  524. package/dist/modules/data-table/data-table.repository.js.map +1 -1
  525. package/dist/modules/data-table/data-table.service.d.ts +8 -1
  526. package/dist/modules/data-table/data-table.service.js +11 -2
  527. package/dist/modules/data-table/data-table.service.js.map +1 -1
  528. package/dist/modules/data-table/register-favorite-resolver.js +2 -2
  529. package/dist/modules/data-table/register-favorite-resolver.js.map +1 -1
  530. package/dist/modules/data-table/utils/pair-columns.d.ts +27 -0
  531. package/dist/modules/data-table/utils/pair-columns.js +48 -0
  532. package/dist/modules/data-table/utils/pair-columns.js.map +1 -0
  533. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +40 -52
  534. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +55 -40
  535. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
  536. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +1 -4
  537. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +2 -15
  538. package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
  539. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +13 -0
  540. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +36 -0
  541. package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -0
  542. package/dist/modules/external-secrets.ee/external-secrets.config.js +1 -1
  543. package/dist/modules/external-secrets.ee/external-secrets.config.js.map +1 -1
  544. package/dist/modules/external-secrets.ee/external-secrets.module.d.ts +1 -0
  545. package/dist/modules/external-secrets.ee/external-secrets.module.js +4 -0
  546. package/dist/modules/external-secrets.ee/external-secrets.module.js.map +1 -1
  547. package/dist/modules/external-secrets.ee/providers/one-password.js +1 -1
  548. package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
  549. package/dist/modules/external-secrets.ee/secrets-cache.service.d.ts +4 -2
  550. package/dist/modules/external-secrets.ee/secrets-cache.service.js +25 -8
  551. package/dist/modules/external-secrets.ee/secrets-cache.service.js.map +1 -1
  552. package/dist/modules/favorites/favorites.service.d.ts +1 -1
  553. package/dist/modules/favorites/favorites.service.js +2 -2
  554. package/dist/modules/favorites/favorites.service.js.map +1 -1
  555. package/dist/modules/inbound-auth-core/authentication-pipeline.d.ts +11 -0
  556. package/dist/modules/inbound-auth-core/authentication-pipeline.js +50 -0
  557. package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -0
  558. package/dist/modules/inbound-auth-core/authentication.service.d.ts +12 -0
  559. package/dist/modules/inbound-auth-core/authentication.service.js +86 -0
  560. package/dist/modules/inbound-auth-core/authentication.service.js.map +1 -0
  561. package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.d.ts +3 -0
  562. package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js +12 -0
  563. package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js.map +1 -1
  564. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.d.ts +20 -3
  565. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js +70 -2
  566. package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js.map +1 -1
  567. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.d.ts +15 -3
  568. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +58 -2
  569. package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
  570. package/dist/modules/inbound-auth-core/grant-authorization.d.ts +4 -0
  571. package/dist/modules/inbound-auth-core/grant-authorization.js +10 -0
  572. package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -0
  573. package/dist/modules/inbound-auth-core/identity/external-identity.d.ts +3 -0
  574. package/dist/modules/inbound-auth-core/identity/external-identity.js +86 -0
  575. package/dist/modules/inbound-auth-core/identity/external-identity.js.map +1 -0
  576. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +27 -0
  577. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +287 -0
  578. package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -0
  579. package/dist/modules/inbound-auth-core/inbound-auth-core.module.d.ts +1 -0
  580. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +30 -20
  581. package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
  582. package/dist/modules/inbound-auth-core/key.utils.d.ts +2 -0
  583. package/dist/modules/inbound-auth-core/key.utils.js +18 -0
  584. package/dist/modules/inbound-auth-core/key.utils.js.map +1 -0
  585. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +16 -0
  586. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +171 -0
  587. package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -0
  588. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +52 -0
  589. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +74 -0
  590. package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -0
  591. package/dist/modules/inbound-auth-core/trusted-source-discovery.service.d.ts +19 -0
  592. package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js +141 -0
  593. package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js.map +1 -0
  594. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +12 -0
  595. package/dist/modules/{insights/insights-compaction.task.js → inbound-auth-core/trusted-source-discovery.task.js} +14 -16
  596. package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -0
  597. package/dist/modules/inbound-auth-core/trusted-source.gate.d.ts +13 -0
  598. package/dist/modules/inbound-auth-core/trusted-source.gate.js +53 -0
  599. package/dist/modules/inbound-auth-core/trusted-source.gate.js.map +1 -0
  600. package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +18 -16
  601. package/dist/modules/inbound-auth-core/trusted-source.store.js +107 -7
  602. package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
  603. package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +2 -1
  604. package/dist/modules/instance-ai/eval/agent-execution.service.js +42 -37
  605. package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
  606. package/dist/modules/instance-ai/eval/execution.service.d.ts +7 -2
  607. package/dist/modules/instance-ai/eval/execution.service.js +150 -22
  608. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  609. package/dist/modules/instance-ai/eval/mock-handler.js +6 -3
  610. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  611. package/dist/modules/instance-ai/eval/pin-data-generator.js +2 -1
  612. package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
  613. package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +1 -1
  614. package/dist/modules/instance-ai/eval/thread-restore.service.js +2 -1
  615. package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
  616. package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +1 -0
  617. package/dist/modules/instance-ai/eval/workflow-analysis.js +25 -9
  618. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  619. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +4 -2
  620. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +5 -2
  621. package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
  622. package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +3 -0
  623. package/dist/modules/instance-ai/instance-ai-credit.service.js +18 -0
  624. package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
  625. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +1 -0
  626. package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
  627. package/dist/modules/instance-ai/instance-ai-thread-tabs.service.d.ts +10 -1
  628. package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js +74 -5
  629. package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js.map +1 -1
  630. package/dist/modules/instance-ai/instance-ai.adapter.service.js +30 -7
  631. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  632. package/dist/modules/instance-ai/instance-ai.controller.d.ts +28 -2
  633. package/dist/modules/instance-ai/instance-ai.controller.js +5 -3
  634. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  635. package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
  636. package/dist/modules/instance-ai/instance-ai.module.js +8 -0
  637. package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
  638. package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -1
  639. package/dist/modules/instance-ai/instance-ai.service.js +164 -24
  640. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  641. package/dist/modules/instance-ai/instance-context.service.js +4 -5
  642. package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
  643. package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.d.ts +5 -3
  644. package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js +24 -4
  645. package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js.map +1 -1
  646. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.d.ts +23 -0
  647. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js +100 -0
  648. package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js.map +1 -0
  649. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +10 -0
  650. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +50 -0
  651. package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -0
  652. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.d.ts +16 -0
  653. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js +77 -0
  654. package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js.map +1 -0
  655. package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +33 -0
  656. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +178 -0
  657. package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -0
  658. package/dist/modules/instance-ai/self-healing/self-healing-results.controller.d.ts +16 -0
  659. package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js +69 -0
  660. package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js.map +1 -0
  661. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.d.ts +3 -1
  662. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js +10 -0
  663. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js.map +1 -1
  664. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.d.ts +6 -1
  665. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js +20 -0
  666. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js.map +1 -1
  667. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.d.ts +5 -2
  668. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js +45 -1
  669. package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js.map +1 -1
  670. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.d.ts +26 -0
  671. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js +173 -0
  672. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js.map +1 -0
  673. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.d.ts +6 -0
  674. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js +57 -0
  675. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js.map +1 -0
  676. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.d.ts +29 -5
  677. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js +86 -25
  678. package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js.map +1 -1
  679. package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.d.ts +1 -1
  680. package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js +2 -2
  681. package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js.map +1 -1
  682. package/dist/modules/instance-reporting.ee/instance-reporting.service.d.ts +3 -2
  683. package/dist/modules/instance-reporting.ee/instance-reporting.service.js +23 -9
  684. package/dist/modules/instance-reporting.ee/instance-reporting.service.js.map +1 -1
  685. package/dist/modules/mcp/tools/agents/agent-reference.js +4 -3
  686. package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
  687. package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +1 -1
  688. package/dist/modules/mcp/tools/agents/agent-tools.service.d.ts +3 -1
  689. package/dist/modules/mcp/tools/agents/agent-tools.service.js +72 -43
  690. package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
  691. package/dist/modules/mcp/tools/execute-workflow.tool.js +1 -1
  692. package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
  693. package/dist/modules/mcp/tools/get-workflow-details.tool.js +6 -1
  694. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  695. package/dist/modules/mcp/tools/publish-workflow.tool.js +1 -0
  696. package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
  697. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +2 -9
  698. package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
  699. package/dist/modules/mcp/tools/workflow-history.utils.js +1 -1
  700. package/dist/modules/mcp/tools/workflow-history.utils.js.map +1 -1
  701. package/dist/modules/mcp/tools/workflow-validation.utils.d.ts +2 -1
  702. package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
  703. package/dist/modules/modules.manifest.js +3 -1
  704. package/dist/modules/modules.manifest.js.map +1 -1
  705. package/dist/modules/n8n-packages/engine/credential-save-policy.d.ts +11 -0
  706. package/dist/modules/n8n-packages/engine/credential-save-policy.js +56 -0
  707. package/dist/modules/n8n-packages/engine/credential-save-policy.js.map +1 -0
  708. package/dist/modules/n8n-packages/engine/import-gates.d.ts +2 -0
  709. package/dist/modules/n8n-packages/engine/import-gates.js +9 -0
  710. package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
  711. package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +4 -1
  712. package/dist/modules/n8n-packages/engine/import-orchestrator.js +106 -32
  713. package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
  714. package/dist/modules/n8n-packages/engine/import-result.d.ts +2 -2
  715. package/dist/modules/n8n-packages/engine/import-result.js +2 -2
  716. package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
  717. package/dist/modules/n8n-packages/engine/import-telemetry.js +2 -0
  718. package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
  719. package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +6 -0
  720. package/dist/modules/n8n-packages/engine/n8n-package-parser.js +72 -1
  721. package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
  722. package/dist/modules/n8n-packages/engine/project-package-importer.js +7 -1
  723. package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
  724. package/dist/modules/n8n-packages/engine/workflow-package-importer.js +1 -0
  725. package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
  726. package/dist/modules/n8n-packages/entities/agent/agent-export.types.d.ts +39 -0
  727. package/dist/modules/n8n-packages/entities/agent/agent-export.types.js +3 -0
  728. package/dist/modules/n8n-packages/entities/agent/agent-export.types.js.map +1 -0
  729. package/dist/modules/n8n-packages/entities/agent/agent-import.types.d.ts +5 -0
  730. package/dist/modules/n8n-packages/entities/agent/agent-import.types.js +3 -0
  731. package/dist/modules/n8n-packages/entities/agent/agent-import.types.js.map +1 -0
  732. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.d.ts +12 -0
  733. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js +75 -0
  734. package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js.map +1 -0
  735. package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.d.ts +20 -0
  736. package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js +173 -0
  737. package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js.map +1 -0
  738. package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +14 -0
  739. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +76 -0
  740. package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -0
  741. package/dist/modules/n8n-packages/entities/agent/agent.serializer.d.ts +8 -0
  742. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js +50 -0
  743. package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -0
  744. package/dist/modules/n8n-packages/entities/credential/credential-importer.js +1 -12
  745. package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
  746. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +1 -2
  747. package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
  748. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +1 -0
  749. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +12 -1
  750. package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
  751. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +5 -4
  752. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +18 -1
  753. package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -1
  754. package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +2 -2
  755. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +19 -14
  756. package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
  757. package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +8 -5
  758. package/dist/modules/n8n-packages/entities/credential/credential.types.js +0 -1
  759. package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
  760. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.d.ts +14 -2
  761. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js +52 -0
  762. package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js.map +1 -1
  763. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.d.ts +10 -2
  764. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js +136 -30
  765. package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js.map +1 -1
  766. package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.d.ts +1 -1
  767. package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.js.map +1 -1
  768. package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.d.ts +9 -2
  769. package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js +11 -8
  770. package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js.map +1 -1
  771. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.d.ts +2 -7
  772. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js +16 -1
  773. package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js.map +1 -1
  774. package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.d.ts +2 -3
  775. package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js +5 -19
  776. package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js.map +1 -1
  777. package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js +1 -0
  778. package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js.map +1 -1
  779. package/dist/modules/n8n-packages/entities/data-table/data-table.types.d.ts +46 -2
  780. package/dist/modules/n8n-packages/entities/data-table/data-table.types.js +0 -1
  781. package/dist/modules/n8n-packages/entities/data-table/data-table.types.js.map +1 -1
  782. package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +4 -4
  783. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +1 -1
  784. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
  785. package/dist/modules/n8n-packages/entities/project/project-export-access.d.ts +3 -0
  786. package/dist/modules/n8n-packages/entities/project/project-export-access.js +14 -0
  787. package/dist/modules/n8n-packages/entities/project/project-export-access.js.map +1 -0
  788. package/dist/modules/n8n-packages/entities/project/project-shell.exporter.d.ts +14 -0
  789. package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js +35 -0
  790. package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js.map +1 -0
  791. package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +7 -7
  792. package/dist/modules/n8n-packages/entities/project/project.exporter.js +20 -17
  793. package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
  794. package/dist/modules/n8n-packages/entities/requirement-source.d.ts +13 -0
  795. package/dist/modules/n8n-packages/entities/requirement-source.js +23 -0
  796. package/dist/modules/n8n-packages/entities/requirement-source.js.map +1 -0
  797. package/dist/modules/n8n-packages/entities/requirements.types.d.ts +10 -10
  798. package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
  799. package/dist/modules/n8n-packages/entities/tag/tag-import-decision.d.ts +1 -1
  800. package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js.map +1 -1
  801. package/dist/modules/n8n-packages/entities/tag/tag-importer.js +5 -19
  802. package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
  803. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +3 -3
  804. package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
  805. package/dist/modules/n8n-packages/entities/tag/tag.types.d.ts +1 -6
  806. package/dist/modules/n8n-packages/entities/tag/tag.types.js +3 -11
  807. package/dist/modules/n8n-packages/entities/tag/tag.types.js.map +1 -1
  808. package/dist/modules/n8n-packages/entities/variable/variable-importer.js +7 -6
  809. package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
  810. package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.d.ts +1 -0
  811. package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js +9 -3
  812. package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js.map +1 -1
  813. package/dist/modules/n8n-packages/entities/variable/variable.exporter.d.ts +0 -1
  814. package/dist/modules/n8n-packages/entities/variable/variable.exporter.js +25 -28
  815. package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
  816. package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +6 -9
  817. package/dist/modules/n8n-packages/entities/variable/variable.types.js +1 -27
  818. package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
  819. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +9 -7
  820. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +17 -31
  821. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -1
  822. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +5 -6
  823. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +6 -17
  824. package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
  825. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +2 -1
  826. package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -1
  827. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.d.ts +7 -10
  828. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js +17 -13
  829. package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js.map +1 -1
  830. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +4 -1
  831. package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -1
  832. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.d.ts +2 -2
  833. package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.js.map +1 -1
  834. package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js +2 -1
  835. package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js.map +1 -1
  836. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.d.ts +2 -2
  837. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js +1 -1
  838. package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js.map +1 -1
  839. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.d.ts +2 -2
  840. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js +5 -11
  841. package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js.map +1 -1
  842. package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.d.ts +3 -3
  843. package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js +5 -5
  844. package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js.map +1 -1
  845. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +4 -4
  846. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +3 -3
  847. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  848. package/dist/modules/n8n-packages/entities/workflow/workflow.types.d.ts +6 -0
  849. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.d.ts +8 -0
  850. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js +23 -0
  851. package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js.map +1 -1
  852. package/dist/modules/n8n-packages/io/manifest-entry.d.ts +5 -0
  853. package/dist/modules/n8n-packages/io/manifest-entry.js +6 -0
  854. package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
  855. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
  856. package/dist/modules/n8n-packages/n8n-packages.service.js +124 -59
  857. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  858. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +29 -8
  859. package/dist/modules/n8n-packages/n8n-packages.types.js +5 -3
  860. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  861. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +471 -97
  862. package/dist/modules/n8n-packages/spec/manifest.schema.js +12 -1
  863. package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
  864. package/dist/modules/n8n-packages/spec/requirement-consumers.d.ts +5 -0
  865. package/dist/modules/n8n-packages/spec/requirement-consumers.js +16 -0
  866. package/dist/modules/n8n-packages/spec/requirement-consumers.js.map +1 -0
  867. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +457 -82
  868. package/dist/modules/n8n-packages/spec/requirements.schema.js +37 -10
  869. package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
  870. package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +3860 -0
  871. package/dist/modules/n8n-packages/spec/serialized/agent.schema.js +55 -0
  872. package/dist/modules/n8n-packages/spec/serialized/agent.schema.js.map +1 -0
  873. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.d.ts +10 -0
  874. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js +1 -0
  875. package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js.map +1 -1
  876. package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +3 -15
  877. package/dist/modules/n8n-packages/utils/import-package-upload.js +4 -60
  878. package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -1
  879. package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +14 -0
  880. package/dist/modules/oauth-server/oauth-local-authorization-server.js +55 -0
  881. package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -0
  882. package/dist/modules/oauth-server/oauth-server.module.js +3 -0
  883. package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
  884. package/dist/modules/oauth-server/oauth-signing-key.constants.d.ts +3 -1
  885. package/dist/modules/oauth-server/oauth-signing-key.constants.js +4 -2
  886. package/dist/modules/oauth-server/oauth-signing-key.constants.js.map +1 -1
  887. package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +16 -4
  888. package/dist/modules/oauth-server/oauth-signing-key.service.js +95 -19
  889. package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
  890. package/dist/modules/oauth-server/oauth-token.service.d.ts +5 -3
  891. package/dist/modules/oauth-server/oauth-token.service.js +30 -21
  892. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  893. package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
  894. package/dist/modules/oauth-server/oauth.controller.js +17 -26
  895. package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
  896. package/dist/modules/oauth-server/resource-gate.d.ts +0 -2
  897. package/dist/modules/oauth-server/resource-gate.js +2 -8
  898. package/dist/modules/oauth-server/resource-gate.js.map +1 -1
  899. package/dist/modules/otel/execution-identity.d.ts +27 -0
  900. package/dist/modules/otel/execution-identity.js +43 -0
  901. package/dist/modules/otel/execution-identity.js.map +1 -0
  902. package/dist/modules/otel/execution-level-tracer.d.ts +1 -0
  903. package/dist/modules/otel/execution-level-tracer.js +75 -37
  904. package/dist/modules/otel/execution-level-tracer.js.map +1 -1
  905. package/dist/modules/otel/execution-level-tracer.types.d.ts +5 -0
  906. package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
  907. package/dist/modules/otel/otel-lifecycle-handler.d.ts +5 -1
  908. package/dist/modules/otel/otel-lifecycle-handler.js +44 -16
  909. package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
  910. package/dist/modules/otel/otel-settings.service.js +2 -0
  911. package/dist/modules/otel/otel-settings.service.js.map +1 -1
  912. package/dist/modules/otel/otel.config.d.ts +2 -0
  913. package/dist/modules/otel/otel.config.js +10 -0
  914. package/dist/modules/otel/otel.config.js.map +1 -1
  915. package/dist/modules/otel/otel.constants.d.ts +3 -0
  916. package/dist/modules/otel/otel.constants.js +3 -0
  917. package/dist/modules/otel/otel.constants.js.map +1 -1
  918. package/dist/modules/otel/otel.service.js +2 -1
  919. package/dist/modules/otel/otel.service.js.map +1 -1
  920. package/dist/modules/otel/tracing-context.d.ts +1 -0
  921. package/dist/modules/otel/tracing-context.js.map +1 -1
  922. package/dist/modules/policy-infrastructure/policy-decision-audit.d.ts +2 -0
  923. package/dist/modules/policy-infrastructure/policy-decision-audit.js +15 -11
  924. package/dist/modules/policy-infrastructure/policy-decision-audit.js.map +1 -1
  925. package/dist/modules/policy-infrastructure/policy-decision.service.js +1 -0
  926. package/dist/modules/policy-infrastructure/policy-decision.service.js.map +1 -1
  927. package/dist/modules/promotions.ee/base-branch-files.d.ts +3 -3
  928. package/dist/modules/promotions.ee/base-branch-files.js.map +1 -1
  929. package/dist/modules/promotions.ee/branch-placement.d.ts +6 -7
  930. package/dist/modules/promotions.ee/branch-placement.js +19 -18
  931. package/dist/modules/promotions.ee/branch-placement.js.map +1 -1
  932. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.d.ts +1 -0
  933. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +13 -0
  934. package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -1
  935. package/dist/modules/promotions.ee/git-hosts/git-host-clients.d.ts +8 -0
  936. package/dist/modules/promotions.ee/git-hosts/git-host-clients.js +28 -0
  937. package/dist/modules/promotions.ee/git-hosts/git-host-clients.js.map +1 -0
  938. package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +7 -0
  939. package/dist/modules/promotions.ee/git-hosts/git-host.types.js +3 -0
  940. package/dist/modules/promotions.ee/git-hosts/git-host.types.js.map +1 -0
  941. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +10 -0
  942. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +151 -0
  943. package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -0
  944. package/dist/modules/promotions.ee/import-manifest-bridge.d.ts +2 -0
  945. package/dist/modules/promotions.ee/import-manifest-bridge.js +20 -14
  946. package/dist/modules/promotions.ee/import-manifest-bridge.js.map +1 -1
  947. package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +6 -1
  948. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +35 -3
  949. package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
  950. package/dist/modules/promotions.ee/promotion-change.service.js +12 -6
  951. package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -1
  952. package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -1
  953. package/dist/modules/promotions.ee/promotion-providers.service.d.ts +10 -4
  954. package/dist/modules/promotions.ee/promotion-providers.service.js +100 -29
  955. package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
  956. package/dist/modules/promotions.ee/promotions.service.js +41 -14
  957. package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
  958. package/dist/modules/promotions.ee/promotions.types.d.ts +2 -0
  959. package/dist/modules/promotions.ee/working-copy-updater.d.ts +3 -1
  960. package/dist/modules/promotions.ee/working-copy-updater.js +51 -29
  961. package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -1
  962. package/dist/modules/provisioning.ee/provisioning.module.js +9 -3
  963. package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
  964. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +5 -2
  965. package/dist/modules/provisioning.ee/provisioning.service.ee.js +2 -2
  966. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  967. package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +14 -0
  968. package/dist/modules/provisioning.ee/role-mapping-provider.ee.js +33 -0
  969. package/dist/modules/provisioning.ee/role-mapping-provider.ee.js.map +1 -0
  970. package/dist/modules/provisioning.ee/role-resolver-types.d.ts +2 -41
  971. package/dist/modules/provisioning.ee/role-resolver.service.ee.d.ts +2 -2
  972. package/dist/modules/provisioning.ee/role-resolver.service.ee.js +5 -9
  973. package/dist/modules/provisioning.ee/role-resolver.service.ee.js.map +1 -1
  974. package/dist/modules/scim/database/scim-api-key.repository.d.ts +11 -0
  975. package/dist/modules/scim/database/scim-api-key.repository.js +51 -0
  976. package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -0
  977. package/dist/modules/scim/scim-auth.middleware.d.ts +14 -0
  978. package/dist/modules/scim/scim-auth.middleware.js +80 -0
  979. package/dist/modules/scim/scim-auth.middleware.js.map +1 -0
  980. package/dist/modules/scim/scim-discovery.controller.d.ts +7 -0
  981. package/dist/modules/scim/scim-discovery.controller.js +90 -0
  982. package/dist/modules/scim/scim-discovery.controller.js.map +1 -0
  983. package/dist/modules/scim/scim-route.d.ts +9 -0
  984. package/dist/modules/scim/scim-route.js +17 -0
  985. package/dist/modules/scim/scim-route.js.map +1 -0
  986. package/dist/modules/scim/scim-settings.service.d.ts +9 -0
  987. package/dist/modules/scim/scim-settings.service.js +41 -0
  988. package/dist/modules/scim/scim-settings.service.js.map +1 -0
  989. package/dist/modules/scim/scim-token.controller.d.ts +17 -0
  990. package/dist/modules/scim/scim-token.controller.js +115 -0
  991. package/dist/modules/scim/scim-token.controller.js.map +1 -0
  992. package/dist/modules/scim/scim-token.service.d.ts +23 -0
  993. package/dist/modules/scim/scim-token.service.js +83 -0
  994. package/dist/modules/scim/scim-token.service.js.map +1 -0
  995. package/dist/modules/scim/scim.config.d.ts +3 -0
  996. package/dist/modules/scim/scim.config.js +28 -0
  997. package/dist/modules/scim/scim.config.js.map +1 -0
  998. package/dist/modules/scim/scim.module.d.ts +8 -0
  999. package/dist/modules/scim/scim.module.js +36 -0
  1000. package/dist/modules/scim/scim.module.js.map +1 -0
  1001. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +1 -1
  1002. package/dist/modules/source-control.ee/source-control-import.service.ee.js +13 -2
  1003. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  1004. package/dist/modules/source-control.ee/source-control.service.ee.js +1 -1
  1005. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  1006. package/dist/modules/sso-oidc/oidc.service.ee.js +12 -7
  1007. package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
  1008. package/dist/modules/token-exchange/services/jwks-resolver.js +1 -3
  1009. package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
  1010. package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
  1011. package/dist/modules/token-exchange/services/trusted-key.service.js +0 -2
  1012. package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -1
  1013. package/dist/modules/token-exchange/token-exchange.schemas.d.ts +6 -6
  1014. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +4 -4
  1015. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +3 -3
  1016. package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
  1017. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +2 -2
  1018. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js +1 -1
  1019. package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js.map +1 -1
  1020. package/dist/modules/type-availability-policies/credential-type-policy.check.d.ts +2 -1
  1021. package/dist/modules/type-availability-policies/credential-type-policy.check.js +5 -0
  1022. package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
  1023. package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.d.ts +25 -0
  1024. package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js +43 -0
  1025. package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js.map +1 -0
  1026. package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.d.ts +8 -0
  1027. package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js +49 -0
  1028. package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js.map +1 -0
  1029. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.d.ts +1 -0
  1030. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js +23 -19
  1031. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js.map +1 -1
  1032. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.d.ts +4 -0
  1033. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js +8 -0
  1034. package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js.map +1 -1
  1035. package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -1
  1036. package/dist/modules/type-availability-policies/package-resolver.js +28 -4
  1037. package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
  1038. package/dist/modules/type-availability-policies/policy-evaluator.d.ts +1 -0
  1039. package/dist/modules/type-availability-policies/policy-evaluator.js +2 -0
  1040. package/dist/modules/type-availability-policies/policy-evaluator.js.map +1 -1
  1041. package/dist/modules/type-availability-policies/policy-shadow-lint.js +28 -6
  1042. package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
  1043. package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +15 -0
  1044. package/dist/modules/type-availability-policies/restricted-node-types.provider.js +64 -0
  1045. package/dist/modules/type-availability-policies/restricted-node-types.provider.js.map +1 -0
  1046. package/dist/modules/type-availability-policies/type-availability-policies.module.js +4 -0
  1047. package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
  1048. package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +8 -0
  1049. package/dist/modules/type-availability-policies/type-availability-policy.service.js +75 -21
  1050. package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
  1051. package/dist/modules/workflow-index/workflow-dependency-query.service.d.ts +3 -1
  1052. package/dist/modules/workflow-index/workflow-dependency-query.service.js +16 -2
  1053. package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
  1054. package/dist/modules/workflow-index/workflow-dependency.controller.js +1 -1
  1055. package/dist/modules/workflow-index/workflow-dependency.controller.js.map +1 -1
  1056. package/dist/node-catalog/index.d.ts +1 -0
  1057. package/dist/node-catalog/index.js +4 -1
  1058. package/dist/node-catalog/index.js.map +1 -1
  1059. package/dist/node-catalog/module-gated-node-types.d.ts +3 -0
  1060. package/dist/node-catalog/module-gated-node-types.js +26 -0
  1061. package/dist/node-catalog/module-gated-node-types.js.map +1 -0
  1062. package/dist/node-catalog/node-catalog.service.d.ts +3 -2
  1063. package/dist/node-catalog/node-catalog.service.js +15 -6
  1064. package/dist/node-catalog/node-catalog.service.js.map +1 -1
  1065. package/dist/node-execution/ephemeral-node-executor.d.ts +5 -1
  1066. package/dist/node-execution/ephemeral-node-executor.js +37 -12
  1067. package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
  1068. package/dist/node-execution/index.d.ts +1 -0
  1069. package/dist/node-execution/index.js +3 -1
  1070. package/dist/node-execution/index.js.map +1 -1
  1071. package/dist/node-execution/resolve-tool-node-type.d.ts +1 -0
  1072. package/dist/node-execution/resolve-tool-node-type.js +19 -0
  1073. package/dist/node-execution/resolve-tool-node-type.js.map +1 -0
  1074. package/dist/policy/policed-agent-nodes.d.ts +3 -0
  1075. package/dist/policy/policed-agent-nodes.js +91 -0
  1076. package/dist/policy/policed-agent-nodes.js.map +1 -0
  1077. package/dist/policy/policy-enforcement-backend.d.ts +2 -1
  1078. package/dist/policy/policy-enforcement.service.d.ts +3 -1
  1079. package/dist/policy/policy-enforcement.service.js +35 -10
  1080. package/dist/policy/policy-enforcement.service.js.map +1 -1
  1081. package/dist/policy/policy-violation.error.js +1 -6
  1082. package/dist/policy/policy-violation.error.js.map +1 -1
  1083. package/dist/posthog/index.js +1 -1
  1084. package/dist/posthog/index.js.map +1 -1
  1085. package/dist/public-api/idempotency-key-cleanup.task.d.ts +14 -0
  1086. package/dist/public-api/idempotency-key-cleanup.task.js +45 -0
  1087. package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -0
  1088. package/dist/public-api/idempotency-key.service.d.ts +7 -0
  1089. package/dist/public-api/idempotency-key.service.js +35 -0
  1090. package/dist/public-api/idempotency-key.service.js.map +1 -0
  1091. package/dist/public-api/index.js +1 -3
  1092. package/dist/public-api/index.js.map +1 -1
  1093. package/dist/public-api/media-types/binary-response.d.ts +3 -0
  1094. package/dist/public-api/media-types/binary-response.js +79 -0
  1095. package/dist/public-api/media-types/binary-response.js.map +1 -0
  1096. package/dist/public-api/public-api-controller.registry.js +6 -0
  1097. package/dist/public-api/public-api-controller.registry.js.map +1 -1
  1098. package/dist/public-api/public-api-route-resolver.d.ts +2 -1
  1099. package/dist/public-api/public-api-route-resolver.js +1 -0
  1100. package/dist/public-api/public-api-route-resolver.js.map +1 -1
  1101. package/dist/public-api/types.d.ts +1 -43
  1102. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +10 -10
  1103. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +13 -13
  1104. package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
  1105. package/dist/public-api/v1/controllers/index.d.ts +1 -0
  1106. package/dist/public-api/v1/controllers/index.js +1 -0
  1107. package/dist/public-api/v1/controllers/index.js.map +1 -1
  1108. package/dist/public-api/v1/controllers/insights.public.controller.d.ts +1 -1
  1109. package/dist/public-api/v1/controllers/insights.public.controller.js +2 -2
  1110. package/dist/public-api/v1/controllers/insights.public.controller.js.map +1 -1
  1111. package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.d.ts +20 -20
  1112. package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.js +10 -10
  1113. package/dist/public-api/v1/controllers/log-streaming.mapper.js.map +1 -0
  1114. package/dist/public-api/v1/controllers/log-streaming.public.controller.d.ts +23 -1
  1115. package/dist/public-api/v1/controllers/log-streaming.public.controller.js +161 -1
  1116. package/dist/public-api/v1/controllers/log-streaming.public.controller.js.map +1 -1
  1117. package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +13 -0
  1118. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +134 -0
  1119. package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -0
  1120. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +13 -6
  1121. package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
  1122. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +9 -0
  1123. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +55 -0
  1124. package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -0
  1125. package/dist/public-api/v1/controllers/otel.public.controller.js +1 -1
  1126. package/dist/public-api/v1/controllers/otel.public.controller.js.map +1 -1
  1127. package/dist/public-api/v1/controllers/promotions.public.controller.js +6 -5
  1128. package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
  1129. package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -1
  1130. package/dist/public-api/v1/controllers/workflows.public.controller.js +35 -4
  1131. package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
  1132. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +2 -20
  1133. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +17 -105
  1134. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  1135. package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +27 -1
  1136. package/dist/public-api/v1/openapi-gen/decorator-routes.js +37 -14
  1137. package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
  1138. package/dist/public-api/v1/openapi-gen/generate.js +2 -2
  1139. package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
  1140. package/dist/public-api/v1/openapi-gen/object-union-type.d.ts +1 -0
  1141. package/dist/public-api/v1/openapi-gen/object-union-type.js +33 -0
  1142. package/dist/public-api/v1/openapi-gen/object-union-type.js.map +1 -0
  1143. package/dist/public-api/v1/openapi-gen/schema-modifiers.d.ts +1 -0
  1144. package/dist/public-api/v1/openapi-gen/schema-modifiers.js +12 -0
  1145. package/dist/public-api/v1/openapi-gen/schema-modifiers.js.map +1 -0
  1146. package/dist/public-api/v1/openapi.yml +10389 -8020
  1147. package/dist/public-api/v1/shared/otel.mapper.js +2 -0
  1148. package/dist/public-api/v1/shared/otel.mapper.js.map +1 -1
  1149. package/dist/public-api/v1/shared/services/pagination.service.js +1 -1
  1150. package/dist/public-api/v1/shared/services/pagination.service.js.map +1 -1
  1151. package/dist/scaling/constants.d.ts +2 -2
  1152. package/dist/scaling/job-processor.d.ts +7 -1
  1153. package/dist/scaling/job-processor.js +32 -26
  1154. package/dist/scaling/job-processor.js.map +1 -1
  1155. package/dist/scaling/job-return.d.ts +3 -0
  1156. package/dist/scaling/job-return.js +33 -0
  1157. package/dist/scaling/job-return.js.map +1 -0
  1158. package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
  1159. package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
  1160. package/dist/scaling/scaling.service.d.ts +2 -0
  1161. package/dist/scaling/scaling.service.js +37 -3
  1162. package/dist/scaling/scaling.service.js.map +1 -1
  1163. package/dist/scaling/scaling.types.d.ts +1 -0
  1164. package/dist/scheduling/durable-job-provisioner.d.ts +3 -2
  1165. package/dist/scheduling/durable-job-provisioner.js +34 -71
  1166. package/dist/scheduling/durable-job-provisioner.js.map +1 -1
  1167. package/dist/scheduling/durable-scheduler.js +0 -9
  1168. package/dist/scheduling/durable-scheduler.js.map +1 -1
  1169. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +1 -0
  1170. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +2 -0
  1171. package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
  1172. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +5 -5
  1173. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +59 -95
  1174. package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -1
  1175. package/dist/scheduling/system-tasks/main-system-tasks.js +17 -5
  1176. package/dist/scheduling/system-tasks/main-system-tasks.js.map +1 -1
  1177. package/dist/scheduling/system-tasks/system-task-handler.d.ts +2 -2
  1178. package/dist/scheduling/system-tasks/system-task-handler.js +4 -4
  1179. package/dist/scheduling/system-tasks/system-task-handler.js.map +1 -1
  1180. package/dist/scheduling/system-tasks/system-task-job-registrar.js +2 -1
  1181. package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
  1182. package/dist/scheduling/system-tasks/system-task-run-observer.d.ts +3 -3
  1183. package/dist/scheduling/system-tasks/system-task-run-observer.js +14 -6
  1184. package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
  1185. package/dist/server.d.ts +1 -0
  1186. package/dist/server.js +1 -0
  1187. package/dist/server.js.map +1 -1
  1188. package/dist/services/ai-preference.service.d.ts +2 -1
  1189. package/dist/services/ai-preference.service.js +10 -0
  1190. package/dist/services/ai-preference.service.js.map +1 -1
  1191. package/dist/services/database-independent-routes.service.d.ts +5 -0
  1192. package/dist/services/database-independent-routes.service.js +29 -0
  1193. package/dist/services/database-independent-routes.service.js.map +1 -0
  1194. package/dist/services/frontend.service.d.ts +3 -0
  1195. package/dist/services/frontend.service.js +12 -1
  1196. package/dist/services/frontend.service.js.map +1 -1
  1197. package/dist/services/jwt.service.d.ts +4 -3
  1198. package/dist/services/jwt.service.js +9 -6
  1199. package/dist/services/jwt.service.js.map +1 -1
  1200. package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -2
  1201. package/dist/services/oauth-token-verifier-proxy.service.js +0 -6
  1202. package/dist/services/oauth-token-verifier-proxy.service.js.map +1 -1
  1203. package/dist/services/ownership-transfer/ownership-transfer.manifest.json +6 -1
  1204. package/dist/services/ownership-transfer/ownership-transfer.service.d.ts +9 -2
  1205. package/dist/services/ownership-transfer/ownership-transfer.service.js +27 -2
  1206. package/dist/services/ownership-transfer/ownership-transfer.service.js.map +1 -1
  1207. package/dist/services/ownership.service.d.ts +4 -6
  1208. package/dist/services/ownership.service.js +7 -38
  1209. package/dist/services/ownership.service.js.map +1 -1
  1210. package/dist/services/project.service.ee.d.ts +2 -0
  1211. package/dist/services/project.service.ee.js +13 -0
  1212. package/dist/services/project.service.ee.js.map +1 -1
  1213. package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +17 -0
  1214. package/dist/{modules/insights/insights-pruning.task.js → services/pruning/execution-pruning-hard-delete.task.js} +17 -15
  1215. package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -0
  1216. package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +4 -2
  1217. package/dist/services/pruning/execution-pruning-soft-delete.task.js +4 -2
  1218. package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
  1219. package/dist/services/pruning/executions-pruning.service.d.ts +6 -18
  1220. package/dist/services/pruning/executions-pruning.service.js +54 -88
  1221. package/dist/services/pruning/executions-pruning.service.js.map +1 -1
  1222. package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +1 -0
  1223. package/dist/services/pruning/workflow-history-compaction-optimize.task.js +1 -0
  1224. package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
  1225. package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -0
  1226. package/dist/services/pruning/workflow-history-compaction-trim.task.js +8 -6
  1227. package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
  1228. package/dist/services/pruning/workflow-history-compaction.service.d.ts +1 -5
  1229. package/dist/services/pruning/workflow-history-compaction.service.js +14 -19
  1230. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  1231. package/dist/services/pruning/workflow-history-compaction.utils.d.ts +6 -0
  1232. package/dist/services/pruning/workflow-history-compaction.utils.js +14 -0
  1233. package/dist/services/pruning/workflow-history-compaction.utils.js.map +1 -0
  1234. package/dist/services/pruning/workflow-history-pruning.task.d.ts +4 -1
  1235. package/dist/services/pruning/workflow-history-pruning.task.js +5 -2
  1236. package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
  1237. package/dist/services/role-mapping-proxy.service.d.ts +53 -0
  1238. package/dist/{modules/favorites/favorite-resource-resolver.registry.js → services/role-mapping-proxy.service.js} +11 -11
  1239. package/dist/services/role-mapping-proxy.service.js.map +1 -0
  1240. package/dist/services/token-purposes.d.ts +2 -0
  1241. package/dist/services/token-purposes.js +2 -0
  1242. package/dist/services/token-purposes.js.map +1 -1
  1243. package/dist/services/user.service.js +1 -0
  1244. package/dist/services/user.service.js.map +1 -1
  1245. package/dist/services/workflow-statistics-rollup.service.d.ts +6 -17
  1246. package/dist/services/workflow-statistics-rollup.service.js +26 -77
  1247. package/dist/services/workflow-statistics-rollup.service.js.map +1 -1
  1248. package/dist/services/workflow-statistics-rollup.task.d.ts +14 -0
  1249. package/dist/services/workflow-statistics-rollup.task.js +43 -0
  1250. package/dist/services/workflow-statistics-rollup.task.js.map +1 -0
  1251. package/dist/services/workflow-statistics.service.js +10 -18
  1252. package/dist/services/workflow-statistics.service.js.map +1 -1
  1253. package/dist/telemetry/index.d.ts +10 -4
  1254. package/dist/telemetry/index.js +51 -30
  1255. package/dist/telemetry/index.js.map +1 -1
  1256. package/dist/tool-generation/hitl-tools.js +5 -0
  1257. package/dist/tool-generation/hitl-tools.js.map +1 -1
  1258. package/dist/user-management/email/templates/agent-budget-alert.handlebars +196 -0
  1259. package/dist/user-management/email/user-management-mailer.d.ts +8 -1
  1260. package/dist/user-management/email/user-management-mailer.js +16 -0
  1261. package/dist/user-management/email/user-management-mailer.js.map +1 -1
  1262. package/dist/utils/strapi-utils.d.ts +1 -1
  1263. package/dist/wait-tracker.js +2 -0
  1264. package/dist/wait-tracker.js.map +1 -1
  1265. package/dist/webhooks/waiting-webhooks.js +7 -6
  1266. package/dist/webhooks/waiting-webhooks.js.map +1 -1
  1267. package/dist/webhooks/webhook-helpers.d.ts +4 -1
  1268. package/dist/webhooks/webhook-helpers.js +21 -3
  1269. package/dist/webhooks/webhook-helpers.js.map +1 -1
  1270. package/dist/workflow-execute-additional-data.d.ts +2 -1
  1271. package/dist/workflow-execute-additional-data.js +17 -8
  1272. package/dist/workflow-execute-additional-data.js.map +1 -1
  1273. package/dist/workflow-runner.d.ts +2 -2
  1274. package/dist/workflow-runner.js +10 -12
  1275. package/dist/workflow-runner.js.map +1 -1
  1276. package/dist/workflows/execution-timeout-validation.d.ts +2 -0
  1277. package/dist/workflows/execution-timeout-validation.js +16 -0
  1278. package/dist/workflows/execution-timeout-validation.js.map +1 -0
  1279. package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +9 -0
  1280. package/dist/workflows/restricted-node-types-provider-proxy.service.js +26 -0
  1281. package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +1 -0
  1282. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +8 -5
  1283. package/dist/workflows/triggers/trigger-execution-context.factory.js +19 -13
  1284. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  1285. package/dist/workflows/workflow-execution.service.d.ts +3 -3
  1286. package/dist/workflows/workflow-execution.service.js +4 -2
  1287. package/dist/workflows/workflow-execution.service.js.map +1 -1
  1288. package/dist/workflows/workflow-finder.service.d.ts +9 -3
  1289. package/dist/workflows/workflow-finder.service.js +6 -5
  1290. package/dist/workflows/workflow-finder.service.js.map +1 -1
  1291. package/dist/workflows/workflow-history/workflow-history.controller.d.ts +2 -2
  1292. package/dist/workflows/workflow-history/workflow-history.controller.js +9 -6
  1293. package/dist/workflows/workflow-history/workflow-history.controller.js.map +1 -1
  1294. package/dist/workflows/workflow-history/workflow-history.service.d.ts +27 -11
  1295. package/dist/workflows/workflow-history/workflow-history.service.js +56 -34
  1296. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  1297. package/dist/workflows/workflow-validation.service.d.ts +1 -1
  1298. package/dist/workflows/workflow-validation.service.js +2 -2
  1299. package/dist/workflows/workflow-validation.service.js.map +1 -1
  1300. package/dist/workflows/workflow.service.d.ts +44 -17
  1301. package/dist/workflows/workflow.service.ee.d.ts +5 -3
  1302. package/dist/workflows/workflow.service.ee.js +35 -9
  1303. package/dist/workflows/workflow.service.ee.js.map +1 -1
  1304. package/dist/workflows/workflow.service.js +81 -24
  1305. package/dist/workflows/workflow.service.js.map +1 -1
  1306. package/dist/workflows/workflows.controller.js +5 -1
  1307. package/dist/workflows/workflows.controller.js.map +1 -1
  1308. package/package.json +44 -42
  1309. package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.d.ts +0 -2
  1310. package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js +0 -159
  1311. package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js.map +0 -1
  1312. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.d.ts +0 -10
  1313. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js +0 -47
  1314. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js.map +0 -1
  1315. package/dist/modules/favorites/favorite-resource-resolver.registry.d.ts +0 -17
  1316. package/dist/modules/favorites/favorite-resource-resolver.registry.js.map +0 -1
  1317. package/dist/modules/insights/database/entities/insights-by-period.d.ts +0 -17
  1318. package/dist/modules/insights/database/entities/insights-by-period.js +0 -73
  1319. package/dist/modules/insights/database/entities/insights-by-period.js.map +0 -1
  1320. package/dist/modules/insights/database/entities/insights-metadata.d.ts +0 -8
  1321. package/dist/modules/insights/database/entities/insights-metadata.js +0 -40
  1322. package/dist/modules/insights/database/entities/insights-metadata.js.map +0 -1
  1323. package/dist/modules/insights/database/entities/insights-raw.d.ts +0 -13
  1324. package/dist/modules/insights/database/entities/insights-raw.js +0 -61
  1325. package/dist/modules/insights/database/entities/insights-raw.js.map +0 -1
  1326. package/dist/modules/insights/database/entities/insights-shared.d.ts +0 -21
  1327. package/dist/modules/insights/database/entities/insights-shared.js +0 -30
  1328. package/dist/modules/insights/database/entities/insights-shared.js.map +0 -1
  1329. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.d.ts +0 -15
  1330. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +0 -45
  1331. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js.map +0 -1
  1332. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +0 -100
  1333. package/dist/modules/insights/database/repositories/insights-by-period.repository.js +0 -347
  1334. package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +0 -1
  1335. package/dist/modules/insights/database/repositories/insights-metadata.repository.d.ts +0 -7
  1336. package/dist/modules/insights/database/repositories/insights-metadata.repository.js +0 -36
  1337. package/dist/modules/insights/database/repositories/insights-metadata.repository.js.map +0 -1
  1338. package/dist/modules/insights/database/repositories/insights-raw.repository.d.ts +0 -12
  1339. package/dist/modules/insights/database/repositories/insights-raw.repository.js +0 -36
  1340. package/dist/modules/insights/database/repositories/insights-raw.repository.js.map +0 -1
  1341. package/dist/modules/insights/insights-collection.service.d.ts +0 -30
  1342. package/dist/modules/insights/insights-collection.service.js +0 -280
  1343. package/dist/modules/insights/insights-collection.service.js.map +0 -1
  1344. package/dist/modules/insights/insights-compaction.service.d.ts +0 -19
  1345. package/dist/modules/insights/insights-compaction.service.js +0 -161
  1346. package/dist/modules/insights/insights-compaction.service.js.map +0 -1
  1347. package/dist/modules/insights/insights-compaction.task.d.ts +0 -14
  1348. package/dist/modules/insights/insights-compaction.task.js.map +0 -1
  1349. package/dist/modules/insights/insights-pruning.service.d.ts +0 -11
  1350. package/dist/modules/insights/insights-pruning.service.js +0 -49
  1351. package/dist/modules/insights/insights-pruning.service.js.map +0 -1
  1352. package/dist/modules/insights/insights-pruning.task.d.ts +0 -15
  1353. package/dist/modules/insights/insights-pruning.task.js.map +0 -1
  1354. package/dist/modules/insights/insights.config.d.ts +0 -13
  1355. package/dist/modules/insights/insights.config.js +0 -80
  1356. package/dist/modules/insights/insights.config.js.map +0 -1
  1357. package/dist/modules/insights/insights.constants.d.ts +0 -4
  1358. package/dist/modules/insights/insights.constants.js +0 -24
  1359. package/dist/modules/insights/insights.constants.js.map +0 -1
  1360. package/dist/modules/insights/insights.controller.d.ts +0 -16
  1361. package/dist/modules/insights/insights.controller.js +0 -159
  1362. package/dist/modules/insights/insights.controller.js.map +0 -1
  1363. package/dist/modules/insights/insights.module.d.ts +0 -17
  1364. package/dist/modules/insights/insights.module.js +0 -51
  1365. package/dist/modules/insights/insights.module.js.map +0 -1
  1366. package/dist/modules/insights/insights.service.d.ts +0 -73
  1367. package/dist/modules/insights/insights.service.js +0 -257
  1368. package/dist/modules/insights/insights.service.js.map +0 -1
  1369. package/dist/modules/insights/insights.settings.d.ts +0 -20
  1370. package/dist/modules/insights/insights.settings.js +0 -48
  1371. package/dist/modules/insights/insights.settings.js.map +0 -1
  1372. package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.d.ts +0 -12
  1373. package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js +0 -107
  1374. package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js.map +0 -1
  1375. package/dist/public-api/v1/handlers/log-streaming/log-streaming.mapper.js.map +0 -1
  1376. package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +0 -7
  1377. package/dist/public-api/v1/handlers/workflows/workflows.handler.js +0 -31
  1378. package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +0 -1
@@ -0,0 +1,11 @@
1
+ import { ApiKey, BaseRepository, TransactionRunner, type OperationContext } from '@n8n/db';
2
+ import { DataSource } from '@n8n/typeorm';
3
+ export declare class ScimApiKeyRepository extends BaseRepository<ApiKey> {
4
+ private readonly audience;
5
+ private readonly label;
6
+ constructor(dataSource: DataSource, transactionRunner: TransactionRunner);
7
+ findByUserId(userId: string, ctx: OperationContext): Promise<ApiKey | null>;
8
+ findByKey(apiKey: string, ctx: OperationContext): Promise<ApiKey | null>;
9
+ replaceForUser(userId: string, apiKey: string, ctx: OperationContext): Promise<ApiKey>;
10
+ deleteAllForUser(userId: string, ctx: OperationContext): Promise<void>;
11
+ }
@@ -0,0 +1,51 @@
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.ScimApiKeyRepository = void 0;
13
+ const db_1 = require("@n8n/db");
14
+ const di_1 = require("@n8n/di");
15
+ const typeorm_1 = require("@n8n/typeorm");
16
+ const token_purposes_1 = require("../../../services/token-purposes");
17
+ let ScimApiKeyRepository = class ScimApiKeyRepository extends db_1.BaseRepository {
18
+ constructor(dataSource, transactionRunner) {
19
+ super(db_1.ApiKey, dataSource.manager, transactionRunner);
20
+ this.audience = token_purposes_1.TOKEN_PURPOSES.scimApiKey;
21
+ this.label = 'SCIM Provisioning API Key';
22
+ }
23
+ async findByUserId(userId, ctx) {
24
+ return await this.managerFor(ctx).findOne(db_1.ApiKey, {
25
+ where: { userId, audience: this.audience },
26
+ });
27
+ }
28
+ async findByKey(apiKey, ctx) {
29
+ return await this.managerFor(ctx).findOne(db_1.ApiKey, {
30
+ where: { apiKey, audience: this.audience },
31
+ relations: ['user'],
32
+ });
33
+ }
34
+ async replaceForUser(userId, apiKey, ctx) {
35
+ const { audience, label } = this;
36
+ return await this.runInTransaction(ctx, async (tx) => {
37
+ await tx.delete(db_1.ApiKey, { userId, audience });
38
+ await tx.insert(db_1.ApiKey, this.create({ userId, apiKey, audience, scopes: [], label }));
39
+ return await tx.findOneByOrFail(db_1.ApiKey, { apiKey });
40
+ });
41
+ }
42
+ async deleteAllForUser(userId, ctx) {
43
+ await this.managerFor(ctx).delete(db_1.ApiKey, { userId, audience: this.audience });
44
+ }
45
+ };
46
+ exports.ScimApiKeyRepository = ScimApiKeyRepository;
47
+ exports.ScimApiKeyRepository = ScimApiKeyRepository = __decorate([
48
+ (0, di_1.Service)(),
49
+ __metadata("design:paramtypes", [typeorm_1.DataSource, db_1.TransactionRunner])
50
+ ], ScimApiKeyRepository);
51
+ //# sourceMappingURL=scim-api-key.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scim-api-key.repository.js","sourceRoot":"","sources":["../../../../src/modules/scim/database/scim-api-key.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAA2F;AAC3F,gCAAkC;AAClC,0CAA0C;AAE1C,8DAA2D;AAYpD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mBAAsB;IAc/D,YAAY,UAAsB,EAAE,iBAAoC;QACvE,KAAK,CAAC,WAAM,EAAE,UAAU,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAdrC,aAAQ,GAAG,+BAAc,CAAC,UAAU,CAAC;QAWrC,UAAK,GAAG,2BAA2B,CAAC;IAIrD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAAc,EAAE,GAAqB;QACvD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,WAAM,EAAE;YACjD,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;SAC1C,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,MAAc,EAAE,GAAqB;QACpD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,WAAM,EAAE;YACjD,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YAC1C,SAAS,EAAE,CAAC,MAAM,CAAC;SACnB,CAAC,CAAC;IACJ,CAAC;IAYD,KAAK,CAAC,cAAc,CAAC,MAAc,EAAE,MAAc,EAAE,GAAqB;QACzE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAEjC,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YACpD,MAAM,EAAE,CAAC,MAAM,CAAC,WAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;YAC9C,MAAM,EAAE,CAAC,MAAM,CAAC,WAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YAEtF,OAAO,MAAM,EAAE,CAAC,eAAe,CAAC,WAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,MAAc,EAAE,GAAqB;QAC3D,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,WAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IAChF,CAAC;CACD,CAAA;;+BAvDY,oBAAoB;IADhC,IAAA,YAAO,GAAE;qCAee,oBAAU,EAAqB,sBAAiB;GAd5D,oBAAoB,CAuDhC"}
@@ -0,0 +1,14 @@
1
+ import { Logger } from '@n8n/backend-common';
2
+ import type { AuthenticatedRequest } from '@n8n/db';
3
+ import type { NextFunction, RequestHandler, Response } from 'express';
4
+ import { ScimSettingsService } from './scim-settings.service';
5
+ import { ScimTokenService } from './scim-token.service';
6
+ export declare class ScimAuthMiddleware {
7
+ private readonly logger;
8
+ private readonly scimTokenService;
9
+ private readonly scimSettingsService;
10
+ constructor(logger: Logger, scimTokenService: ScimTokenService, scimSettingsService: ScimSettingsService);
11
+ getAuthMiddleware(): RequestHandler;
12
+ authenticate(req: AuthenticatedRequest, res: Response, next: NextFunction): Promise<void | Response<any, Record<string, any>>>;
13
+ private unauthorized;
14
+ }
@@ -0,0 +1,80 @@
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.ScimAuthMiddleware = void 0;
13
+ const backend_common_1 = require("@n8n/backend-common");
14
+ const di_1 = require("@n8n/di");
15
+ const scim_settings_service_1 = require("./scim-settings.service");
16
+ const scim_token_service_1 = require("./scim-token.service");
17
+ let ScimAuthMiddleware = class ScimAuthMiddleware {
18
+ constructor(logger, scimTokenService, scimSettingsService) {
19
+ this.logger = logger;
20
+ this.scimTokenService = scimTokenService;
21
+ this.scimSettingsService = scimSettingsService;
22
+ }
23
+ getAuthMiddleware() {
24
+ return this.authenticate.bind(this);
25
+ }
26
+ async authenticate(req, res, next) {
27
+ try {
28
+ if (!(await this.scimSettingsService.isEnabled())) {
29
+ return res
30
+ .status(403)
31
+ .header('Content-Type', 'application/scim+json')
32
+ .json({
33
+ schemas: ['urn:ietf:params:scim:api:messages:2.0:Error'],
34
+ status: '403',
35
+ detail: 'SCIM provisioning is disabled',
36
+ });
37
+ }
38
+ const bearer = /^Bearer[ \t]+(.+)$/i.exec(req.headers.authorization ?? '');
39
+ if (!bearer) {
40
+ this.logger.warn('SCIM: Missing or invalid Authorization header');
41
+ return this.unauthorized(res, 'Authorization header with Bearer token required');
42
+ }
43
+ const token = bearer[1].trim();
44
+ const isValid = await this.scimTokenService.verifyApiKey(token);
45
+ if (!isValid) {
46
+ this.logger.warn('SCIM: Invalid API key provided');
47
+ return this.unauthorized(res, 'Invalid SCIM API key');
48
+ }
49
+ return next();
50
+ }
51
+ catch (error) {
52
+ this.logger.error('SCIM: Error during authentication', { error });
53
+ return res
54
+ .status(500)
55
+ .header('Content-Type', 'application/scim+json')
56
+ .json({
57
+ schemas: ['urn:ietf:params:scim:api:messages:2.0:Error'],
58
+ status: '500',
59
+ detail: 'Internal server error',
60
+ });
61
+ }
62
+ }
63
+ unauthorized(res, detail) {
64
+ return res
65
+ .status(401)
66
+ .header('WWW-Authenticate', 'Bearer realm="n8n SCIM"')
67
+ .header('Content-Type', 'application/scim+json')
68
+ .json({
69
+ schemas: ['urn:ietf:params:scim:api:messages:2.0:Error'],
70
+ status: '401',
71
+ detail,
72
+ });
73
+ }
74
+ };
75
+ exports.ScimAuthMiddleware = ScimAuthMiddleware;
76
+ exports.ScimAuthMiddleware = ScimAuthMiddleware = __decorate([
77
+ (0, di_1.Service)(),
78
+ __metadata("design:paramtypes", [backend_common_1.Logger, scim_token_service_1.ScimTokenService, scim_settings_service_1.ScimSettingsService])
79
+ ], ScimAuthMiddleware);
80
+ //# sourceMappingURL=scim-auth.middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scim-auth.middleware.js","sourceRoot":"","sources":["../../../src/modules/scim/scim-auth.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA6C;AAE7C,gCAAkC;AAGlC,mEAA8D;AAC9D,6DAAwD;AAMjD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,YACkB,MAAc,EACd,gBAAkC,EAClC,mBAAwC;sBAFxC,MAAM;gCACN,gBAAgB;mCAChB,mBAAmB;IAClC,CAAC;IAEJ,iBAAiB;QAChB,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAmB,CAAC;IACvD,CAAC;IAKD,KAAK,CAAC,YAAY,CAAC,GAAyB,EAAE,GAAa,EAAE,IAAkB;QAC9E,IAAI,CAAC;YACJ,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,CAAC,EAAE,CAAC;gBACnD,OAAO,GAAG;qBACR,MAAM,CAAC,GAAG,CAAC;qBACX,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;qBAC/C,IAAI,CAAC;oBACL,OAAO,EAAE,CAAC,6CAA6C,CAAC;oBACxD,MAAM,EAAE,KAAK;oBACb,MAAM,EAAE,+BAA+B;iBACvC,CAAC,CAAC;YACL,CAAC;YAID,MAAM,MAAM,GAAG,qBAAqB,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC;YAE3E,IAAI,CAAC,MAAM,EAAE,CAAC;gBACb,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+CAA+C,CAAC,CAAC;gBAClE,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,iDAAiD,CAAC,CAAC;YAClF,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAE/B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YAEhE,IAAI,CAAC,OAAO,EAAE,CAAC;gBACd,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;gBACnD,OAAO,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,sBAAsB,CAAC,CAAC;YACvD,CAAC;YAED,OAAO,IAAI,EAAE,CAAC;QACf,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YAClE,OAAO,GAAG;iBACR,MAAM,CAAC,GAAG,CAAC;iBACX,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;iBAC/C,IAAI,CAAC;gBACL,OAAO,EAAE,CAAC,6CAA6C,CAAC;gBACxD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,uBAAuB;aAC/B,CAAC,CAAC;QACL,CAAC;IACF,CAAC;IAEO,YAAY,CAAC,GAAa,EAAE,MAAc;QACjD,OAAO,GAAG;aACR,MAAM,CAAC,GAAG,CAAC;aACX,MAAM,CAAC,kBAAkB,EAAE,yBAAyB,CAAC;aACrD,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC;aAC/C,IAAI,CAAC;YACL,OAAO,EAAE,CAAC,6CAA6C,CAAC;YACxD,MAAM,EAAE,KAAK;YACb,MAAM;SACN,CAAC,CAAC;IACL,CAAC;CACD,CAAA;;6BAtEY,kBAAkB;IAD9B,IAAA,YAAO,GAAE;qCAGiB,uBAAM,EACI,qCAAgB,EACb,2CAAmB;GAJ9C,kBAAkB,CAsE9B"}
@@ -0,0 +1,7 @@
1
+ import type { AuthenticatedRequest } from '@n8n/db';
2
+ import type { Response } from 'express';
3
+ export declare class ScimDiscoveryController {
4
+ getServiceProviderConfig(_req: AuthenticatedRequest, res: Response): Response<any, Record<string, any>>;
5
+ getResourceTypes(_req: AuthenticatedRequest, res: Response): Response<any, Record<string, any>>;
6
+ getSchemas(_req: AuthenticatedRequest, res: Response): Response<any, Record<string, any>>;
7
+ }
@@ -0,0 +1,90 @@
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.ScimDiscoveryController = void 0;
13
+ const decorators_1 = require("@n8n/decorators");
14
+ const scim_route_1 = require("./scim-route");
15
+ let ScimDiscoveryController = class ScimDiscoveryController {
16
+ getServiceProviderConfig(_req, res) {
17
+ return res.header('Content-Type', 'application/scim+json').json({
18
+ schemas: ['urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig'],
19
+ documentationUri: 'https://docs.n8n.io/user-management/scim/',
20
+ patch: {
21
+ supported: false,
22
+ },
23
+ bulk: {
24
+ supported: false,
25
+ maxOperations: 0,
26
+ maxPayloadSize: 0,
27
+ },
28
+ filter: {
29
+ supported: false,
30
+ maxResults: 0,
31
+ },
32
+ changePassword: {
33
+ supported: false,
34
+ },
35
+ sort: {
36
+ supported: false,
37
+ },
38
+ etag: {
39
+ supported: false,
40
+ },
41
+ authenticationSchemes: [
42
+ {
43
+ type: 'oauthbearertoken',
44
+ name: 'OAuth Bearer Token',
45
+ description: 'Authentication scheme using the OAuth Bearer Token Standard',
46
+ specUri: 'https://tools.ietf.org/html/rfc6750',
47
+ documentationUri: 'https://docs.n8n.io/user-management/scim/',
48
+ primary: true,
49
+ },
50
+ ],
51
+ });
52
+ }
53
+ getResourceTypes(_req, res) {
54
+ return res.header('Content-Type', 'application/scim+json').json({
55
+ schemas: ['urn:ietf:params:scim:api:messages:2.0:ListResponse'],
56
+ totalResults: 0,
57
+ Resources: [],
58
+ });
59
+ }
60
+ getSchemas(_req, res) {
61
+ return res.header('Content-Type', 'application/scim+json').json({
62
+ schemas: ['urn:ietf:params:scim:api:messages:2.0:ListResponse'],
63
+ totalResults: 0,
64
+ Resources: [],
65
+ });
66
+ }
67
+ };
68
+ exports.ScimDiscoveryController = ScimDiscoveryController;
69
+ __decorate([
70
+ (0, decorators_1.Get)('/ServiceProviderConfig', scim_route_1.scimRoute),
71
+ __metadata("design:type", Function),
72
+ __metadata("design:paramtypes", [Object, Object]),
73
+ __metadata("design:returntype", void 0)
74
+ ], ScimDiscoveryController.prototype, "getServiceProviderConfig", null);
75
+ __decorate([
76
+ (0, decorators_1.Get)('/ResourceTypes', scim_route_1.scimRoute),
77
+ __metadata("design:type", Function),
78
+ __metadata("design:paramtypes", [Object, Object]),
79
+ __metadata("design:returntype", void 0)
80
+ ], ScimDiscoveryController.prototype, "getResourceTypes", null);
81
+ __decorate([
82
+ (0, decorators_1.Get)('/Schemas', scim_route_1.scimRoute),
83
+ __metadata("design:type", Function),
84
+ __metadata("design:paramtypes", [Object, Object]),
85
+ __metadata("design:returntype", void 0)
86
+ ], ScimDiscoveryController.prototype, "getSchemas", null);
87
+ exports.ScimDiscoveryController = ScimDiscoveryController = __decorate([
88
+ (0, decorators_1.RootLevelController)('/scim/v2')
89
+ ], ScimDiscoveryController);
90
+ //# sourceMappingURL=scim-discovery.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scim-discovery.controller.js","sourceRoot":"","sources":["../../../src/modules/scim/scim-discovery.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gDAA2D;AAG3D,6CAAyC;AAclC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAMnC,wBAAwB,CAAC,IAA0B,EAAE,GAAa;QACjE,OAAO,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC,CAAC,IAAI,CAAC;YAC/D,OAAO,EAAE,CAAC,6DAA6D,CAAC;YACxE,gBAAgB,EAAE,2CAA2C;YAC7D,KAAK,EAAE;gBACN,SAAS,EAAE,KAAK;aAChB;YACD,IAAI,EAAE;gBACL,SAAS,EAAE,KAAK;gBAChB,aAAa,EAAE,CAAC;gBAChB,cAAc,EAAE,CAAC;aACjB;YACD,MAAM,EAAE;gBACP,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE,CAAC;aACb;YACD,cAAc,EAAE;gBACf,SAAS,EAAE,KAAK;aAChB;YACD,IAAI,EAAE;gBACL,SAAS,EAAE,KAAK;aAChB;YACD,IAAI,EAAE;gBACL,SAAS,EAAE,KAAK;aAChB;YACD,qBAAqB,EAAE;gBACtB;oBACC,IAAI,EAAE,kBAAkB;oBACxB,IAAI,EAAE,oBAAoB;oBAC1B,WAAW,EAAE,6DAA6D;oBAC1E,OAAO,EAAE,qCAAqC;oBAC9C,gBAAgB,EAAE,2CAA2C;oBAC7D,OAAO,EAAE,IAAI;iBACb;aACD;SACD,CAAC,CAAC;IACJ,CAAC;IAOD,gBAAgB,CAAC,IAA0B,EAAE,GAAa;QACzD,OAAO,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC,CAAC,IAAI,CAAC;YAC/D,OAAO,EAAE,CAAC,oDAAoD,CAAC;YAC/D,YAAY,EAAE,CAAC;YACf,SAAS,EAAE,EAAE;SACb,CAAC,CAAC;IACJ,CAAC;IAOD,UAAU,CAAC,IAA0B,EAAE,GAAa;QACnD,OAAO,GAAG,CAAC,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAAC,CAAC,IAAI,CAAC;YAC/D,OAAO,EAAE,CAAC,oDAAoD,CAAC;YAC/D,YAAY,EAAE,CAAC;YACf,SAAS,EAAE,EAAE;SACb,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;;AA/DA;IADC,IAAA,gBAAG,EAAC,wBAAwB,EAAE,sBAAS,CAAC;;;;uEAqCxC;AAOD;IADC,IAAA,gBAAG,EAAC,gBAAgB,EAAE,sBAAS,CAAC;;;;+DAOhC;AAOD;IADC,IAAA,gBAAG,EAAC,UAAU,EAAE,sBAAS,CAAC;;;;yDAO1B;kCApEW,uBAAuB;IADnC,IAAA,gCAAmB,EAAC,UAAU,CAAC;GACnB,uBAAuB,CAqEnC"}
@@ -0,0 +1,9 @@
1
+ import { createIpRateLimit } from '@n8n/decorators';
2
+ import type { RequestHandler } from 'express';
3
+ export declare const scimRoute: {
4
+ skipAuth: boolean;
5
+ usesTemplates: boolean;
6
+ allowBots: boolean;
7
+ middlewares: RequestHandler[];
8
+ ipRateLimit: ReturnType<typeof createIpRateLimit>;
9
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scimRoute = void 0;
4
+ const decorators_1 = require("@n8n/decorators");
5
+ const di_1 = require("@n8n/di");
6
+ const scim_auth_middleware_1 = require("./scim-auth.middleware");
7
+ const scim_config_1 = require("./scim.config");
8
+ const scimAuth = () => di_1.Container.get(scim_auth_middleware_1.ScimAuthMiddleware).getAuthMiddleware();
9
+ const scimConfig = di_1.Container.get(scim_config_1.ScimConfig);
10
+ exports.scimRoute = {
11
+ skipAuth: true,
12
+ usesTemplates: true,
13
+ allowBots: true,
14
+ middlewares: [scimAuth()],
15
+ ipRateLimit: (0, decorators_1.createIpRateLimit)(scimConfig.rateLimit),
16
+ };
17
+ //# sourceMappingURL=scim-route.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scim-route.js","sourceRoot":"","sources":["../../../src/modules/scim/scim-route.ts"],"names":[],"mappings":";;;AAAA,gDAAoD;AACpD,gCAAoC;AAGpC,iEAA4D;AAC5D,+CAA2C;AAE3C,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,cAAS,CAAC,GAAG,CAAC,yCAAkB,CAAC,CAAC,iBAAiB,EAAE,CAAC;AAE7E,MAAM,UAAU,GAAG,cAAS,CAAC,GAAG,CAAC,wBAAU,CAAC,CAAC;AAOhC,QAAA,SAAS,GAMlB;IACH,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IAGnB,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC;IACzB,WAAW,EAAE,IAAA,8BAAiB,EAAC,UAAU,CAAC,SAAS,CAAC;CACpD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { SettingsRepository } from '@n8n/db';
2
+ import { CacheService } from '@n8n/backend-services';
3
+ export declare class ScimSettingsService {
4
+ private readonly settingsRepository;
5
+ private readonly cacheService;
6
+ constructor(settingsRepository: SettingsRepository, cacheService: CacheService);
7
+ isEnabled(): Promise<boolean>;
8
+ setEnabled(enabled: boolean): Promise<void>;
9
+ }
@@ -0,0 +1,41 @@
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.ScimSettingsService = void 0;
13
+ const db_1 = require("@n8n/db");
14
+ const di_1 = require("@n8n/di");
15
+ const backend_services_1 = require("@n8n/backend-services");
16
+ const ENABLED_KEY = 'scim.provisioning.enabled';
17
+ let ScimSettingsService = class ScimSettingsService {
18
+ constructor(settingsRepository, cacheService) {
19
+ this.settingsRepository = settingsRepository;
20
+ this.cacheService = cacheService;
21
+ }
22
+ async isEnabled() {
23
+ const cached = await this.cacheService.get(ENABLED_KEY);
24
+ if (cached !== undefined)
25
+ return cached === 'true';
26
+ const row = await this.settingsRepository.findByKey(ENABLED_KEY);
27
+ const enabled = row?.value === 'true';
28
+ await this.cacheService.set(ENABLED_KEY, enabled.toString());
29
+ return enabled;
30
+ }
31
+ async setEnabled(enabled) {
32
+ await this.settingsRepository.upsert({ key: ENABLED_KEY, value: enabled.toString(), loadOnStartup: true }, ['key']);
33
+ await this.cacheService.set(ENABLED_KEY, enabled.toString());
34
+ }
35
+ };
36
+ exports.ScimSettingsService = ScimSettingsService;
37
+ exports.ScimSettingsService = ScimSettingsService = __decorate([
38
+ (0, di_1.Service)(),
39
+ __metadata("design:paramtypes", [db_1.SettingsRepository, backend_services_1.CacheService])
40
+ ], ScimSettingsService);
41
+ //# sourceMappingURL=scim-settings.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scim-settings.service.js","sourceRoot":"","sources":["../../../src/modules/scim/scim-settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAA6C;AAC7C,gCAAkC;AAElC,4DAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAQzC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC/B,YACkB,kBAAsC,EACtC,YAA0B;kCAD1B,kBAAkB;4BAClB,YAAY;IAC3B,CAAC;IAEJ,KAAK,CAAC,SAAS;QACd,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAS,WAAW,CAAC,CAAC;QAChE,IAAI,MAAM,KAAK,SAAS;YAAE,OAAO,MAAM,KAAK,MAAM,CAAC;QAEnD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QACjE,MAAM,OAAO,GAAG,GAAG,EAAE,KAAK,KAAK,MAAM,CAAC;QAEtC,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE7D,OAAO,OAAO,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAAgB;QAChC,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,CACnC,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,EACpE,CAAC,KAAK,CAAC,CACP,CAAC;QAEF,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC9D,CAAC;CACD,CAAA;;8BA1BY,mBAAmB;IAD/B,IAAA,YAAO,GAAE;qCAG6B,uBAAkB,EACxB,+BAAY;GAHhC,mBAAmB,CA0B/B"}
@@ -0,0 +1,17 @@
1
+ import { ScimConfigPatchDto } from '@n8n/api-types';
2
+ import { Logger, ModuleRegistry } from '@n8n/backend-common';
3
+ import type { AuthenticatedRequest } from '@n8n/db';
4
+ import type { Response } from 'express';
5
+ import { ScimSettingsService } from './scim-settings.service';
6
+ import { ScimTokenService } from './scim-token.service';
7
+ export declare class ScimTokenController {
8
+ private readonly logger;
9
+ private readonly scimTokenService;
10
+ private readonly scimSettingsService;
11
+ private readonly moduleRegistry;
12
+ constructor(logger: Logger, scimTokenService: ScimTokenService, scimSettingsService: ScimSettingsService, moduleRegistry: ModuleRegistry);
13
+ getConfig(req: AuthenticatedRequest, res: Response): Promise<Response<any, Record<string, any>>>;
14
+ updateConfig(_req: AuthenticatedRequest, res: Response, body: ScimConfigPatchDto): Promise<Response<any, Record<string, any>>>;
15
+ generateToken(req: AuthenticatedRequest, res: Response): Promise<Response<any, Record<string, any>>>;
16
+ deleteToken(req: AuthenticatedRequest, res: Response): Promise<Response<any, Record<string, any>>>;
17
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ScimTokenController = void 0;
16
+ const api_types_1 = require("@n8n/api-types");
17
+ const backend_common_1 = require("@n8n/backend-common");
18
+ const decorators_1 = require("@n8n/decorators");
19
+ const scim_settings_service_1 = require("./scim-settings.service");
20
+ const scim_token_service_1 = require("./scim-token.service");
21
+ let ScimTokenController = class ScimTokenController {
22
+ constructor(logger, scimTokenService, scimSettingsService, moduleRegistry) {
23
+ this.logger = logger;
24
+ this.scimTokenService = scimTokenService;
25
+ this.scimSettingsService = scimSettingsService;
26
+ this.moduleRegistry = moduleRegistry;
27
+ }
28
+ async getConfig(req, res) {
29
+ try {
30
+ const [enabled, tokenInfo] = await Promise.all([
31
+ this.scimSettingsService.isEnabled(),
32
+ this.scimTokenService.getTokenInfoForUser(req.user),
33
+ ]);
34
+ return res.status(200).json({
35
+ data: {
36
+ enabled,
37
+ hasToken: tokenInfo.hasToken,
38
+ tokenHint: tokenInfo.lastFour,
39
+ baseUrl: this.scimTokenService.getScimBaseUrl(),
40
+ },
41
+ });
42
+ }
43
+ catch (error) {
44
+ this.logger.error('Error getting SCIM config', { error });
45
+ return res.status(500).json({ message: 'Internal server error' });
46
+ }
47
+ }
48
+ async updateConfig(_req, res, body) {
49
+ try {
50
+ await this.scimSettingsService.setEnabled(body.enabled);
51
+ await this.moduleRegistry.refreshModuleSettings('scim');
52
+ return res.status(200).json({ data: { enabled: body.enabled } });
53
+ }
54
+ catch (error) {
55
+ this.logger.error('Error updating SCIM config', { error });
56
+ return res.status(500).json({ message: 'Internal server error' });
57
+ }
58
+ }
59
+ async generateToken(req, res) {
60
+ try {
61
+ const apiKey = await this.scimTokenService.rotateScimApiKey(req.user);
62
+ const baseUrl = this.scimTokenService.getScimBaseUrl();
63
+ return res.status(201).json({ data: { token: apiKey.apiKey, baseUrl } });
64
+ }
65
+ catch (error) {
66
+ this.logger.error('Error generating SCIM token', { error });
67
+ return res.status(500).json({ message: 'Internal server error' });
68
+ }
69
+ }
70
+ async deleteToken(req, res) {
71
+ try {
72
+ await this.scimTokenService.deleteAllScimApiKeysForUser(req.user);
73
+ return res.status(200).json({ data: { success: true } });
74
+ }
75
+ catch (error) {
76
+ this.logger.error('Error deleting SCIM token', { error });
77
+ return res.status(500).json({ message: 'Internal server error' });
78
+ }
79
+ }
80
+ };
81
+ exports.ScimTokenController = ScimTokenController;
82
+ __decorate([
83
+ (0, decorators_1.Get)('/config'),
84
+ (0, decorators_1.GlobalScope)('scim:manage'),
85
+ __metadata("design:type", Function),
86
+ __metadata("design:paramtypes", [Object, Object]),
87
+ __metadata("design:returntype", Promise)
88
+ ], ScimTokenController.prototype, "getConfig", null);
89
+ __decorate([
90
+ (0, decorators_1.Patch)('/config'),
91
+ (0, decorators_1.GlobalScope)('scim:manage'),
92
+ __param(2, decorators_1.Body),
93
+ __metadata("design:type", Function),
94
+ __metadata("design:paramtypes", [Object, Object, api_types_1.ScimConfigPatchDto]),
95
+ __metadata("design:returntype", Promise)
96
+ ], ScimTokenController.prototype, "updateConfig", null);
97
+ __decorate([
98
+ (0, decorators_1.Post)('/token'),
99
+ (0, decorators_1.GlobalScope)('scim:manage'),
100
+ __metadata("design:type", Function),
101
+ __metadata("design:paramtypes", [Object, Object]),
102
+ __metadata("design:returntype", Promise)
103
+ ], ScimTokenController.prototype, "generateToken", null);
104
+ __decorate([
105
+ (0, decorators_1.Delete)('/token'),
106
+ (0, decorators_1.GlobalScope)('scim:manage'),
107
+ __metadata("design:type", Function),
108
+ __metadata("design:paramtypes", [Object, Object]),
109
+ __metadata("design:returntype", Promise)
110
+ ], ScimTokenController.prototype, "deleteToken", null);
111
+ exports.ScimTokenController = ScimTokenController = __decorate([
112
+ (0, decorators_1.RestController)('/scim'),
113
+ __metadata("design:paramtypes", [backend_common_1.Logger, scim_token_service_1.ScimTokenService, scim_settings_service_1.ScimSettingsService, backend_common_1.ModuleRegistry])
114
+ ], ScimTokenController);
115
+ //# sourceMappingURL=scim-token.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scim-token.controller.js","sourceRoot":"","sources":["../../../src/modules/scim/scim-token.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAAoD;AACpD,wDAA6D;AAE7D,gDAA8F;AAG9F,mEAA8D;AAC9D,6DAAwD;AAWjD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC/B,YACkB,MAAc,EACd,gBAAkC,EAClC,mBAAwC,EACxC,cAA8B;sBAH9B,MAAM;gCACN,gBAAgB;mCAChB,mBAAmB;8BACnB,cAAc;IAC7B,CAAC;IAQE,AAAN,KAAK,CAAC,SAAS,CAAC,GAAyB,EAAE,GAAa;QACvD,IAAI,CAAC;YACJ,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;gBAC9C,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE;gBACpC,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC;aACnD,CAAC,CAAC;YAEH,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;gBAC3B,IAAI,EAAE;oBACL,OAAO;oBACP,QAAQ,EAAE,SAAS,CAAC,QAAQ;oBAC5B,SAAS,EAAE,SAAS,CAAC,QAAQ;oBAC7B,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE;iBAC/C;aACD,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YAC1D,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;QACnE,CAAC;IACF,CAAC;IASK,AAAN,KAAK,CAAC,YAAY,CAAC,IAA0B,EAAE,GAAa,EAAQ,IAAwB;QAC3F,IAAI,CAAC;YACJ,MAAM,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAGxD,MAAM,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;YAExD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAClE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YAC3D,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;QACnE,CAAC;IACF,CAAC;IASK,AAAN,KAAK,CAAC,aAAa,CAAC,GAAyB,EAAE,GAAa;QAC3D,IAAI,CAAC;YACJ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACtE,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC;YAEvD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;QAC1E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YAC5D,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;QACnE,CAAC;IACF,CAAC;IAQK,AAAN,KAAK,CAAC,WAAW,CAAC,GAAyB,EAAE,GAAa;QACzD,IAAI,CAAC;YACJ,MAAM,IAAI,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAElE,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC1D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YAC1D,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC,CAAC;QACnE,CAAC;IACF,CAAC;CACD,CAAA;;AA7EM;IAFL,IAAA,gBAAG,EAAC,SAAS,CAAC;IACd,IAAA,wBAAW,EAAC,aAAa,CAAC;;;;oDAoB1B;AASK;IAFL,IAAA,kBAAK,EAAC,SAAS,CAAC;IAChB,IAAA,wBAAW,EAAC,aAAa,CAAC;IACoC,WAAA,iBAAI,CAAA;;qDAAO,8BAAkB;;uDAY3F;AASK;IAFL,IAAA,iBAAI,EAAC,QAAQ,CAAC;IACd,IAAA,wBAAW,EAAC,aAAa,CAAC;;;;wDAW1B;AAQK;IAFL,IAAA,mBAAM,EAAC,QAAQ,CAAC;IAChB,IAAA,wBAAW,EAAC,aAAa,CAAC;;;;sDAU1B;8BA1FW,mBAAmB;IAD/B,IAAA,2BAAc,EAAC,OAAO,CAAC;qCAGG,uBAAM,EACI,qCAAgB,EACb,2CAAmB,EACxB,+BAAc;GALpC,mBAAmB,CA2F/B"}
@@ -0,0 +1,23 @@
1
+ import { type OperationContext, type User } from '@n8n/db';
2
+ import { JwtService } from '../../services/jwt.service';
3
+ import { UrlService } from '@n8n/backend-services';
4
+ import { ScimApiKeyRepository } from './database/scim-api-key.repository';
5
+ export declare class ScimTokenService {
6
+ private readonly apiKeyRepository;
7
+ private readonly jwtService;
8
+ private readonly urlService;
9
+ constructor(apiKeyRepository: ScimApiKeyRepository, jwtService: JwtService, urlService: UrlService);
10
+ private signApiKey;
11
+ getTokenInfoForUser(user: User, ctx?: OperationContext): Promise<{
12
+ hasToken: boolean;
13
+ lastFour: string | null;
14
+ }>;
15
+ findScimApiKeyForUser(user: User, { redact }?: {
16
+ redact?: boolean | undefined;
17
+ }, ctx?: OperationContext): Promise<import("@n8n/db").ApiKey | null>;
18
+ verifyApiKey(apiKey: string, ctx?: OperationContext): Promise<boolean>;
19
+ deleteAllScimApiKeysForUser(user: User, ctx?: OperationContext): Promise<void>;
20
+ rotateScimApiKey(user: User, ctx?: OperationContext): Promise<import("@n8n/db").ApiKey>;
21
+ getScimBaseUrl(): string;
22
+ private redactApiKey;
23
+ }
@@ -0,0 +1,83 @@
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.ScimTokenService = void 0;
13
+ const di_1 = require("@n8n/di");
14
+ const crypto_1 = require("crypto");
15
+ const jwt_service_1 = require("../../services/jwt.service");
16
+ const backend_services_1 = require("@n8n/backend-services");
17
+ const scim_api_key_repository_1 = require("./database/scim-api-key.repository");
18
+ const API_KEY_PURPOSE = 'scimApiKey';
19
+ const API_KEY_ISSUER = 'n8n';
20
+ const REDACT_API_KEY_REVEAL_COUNT = 4;
21
+ const REDACT_API_KEY_MAX_LENGTH = 10;
22
+ const REDACT_API_KEY_MIN_HIDDEN_CHARS = 6;
23
+ let ScimTokenService = class ScimTokenService {
24
+ constructor(apiKeyRepository, jwtService, urlService) {
25
+ this.apiKeyRepository = apiKeyRepository;
26
+ this.jwtService = jwtService;
27
+ this.urlService = urlService;
28
+ }
29
+ signApiKey(user) {
30
+ return this.jwtService.sign(API_KEY_PURPOSE, {
31
+ sub: user.id,
32
+ iss: API_KEY_ISSUER,
33
+ jti: (0, crypto_1.randomUUID)(),
34
+ });
35
+ }
36
+ async getTokenInfoForUser(user, ctx = {}) {
37
+ const apiKey = await this.apiKeyRepository.findByUserId(user.id, ctx);
38
+ return {
39
+ hasToken: !!apiKey,
40
+ lastFour: apiKey ? apiKey.apiKey.slice(-REDACT_API_KEY_REVEAL_COUNT) : null,
41
+ };
42
+ }
43
+ async findScimApiKeyForUser(user, { redact = true } = {}, ctx = {}) {
44
+ const apiKey = await this.apiKeyRepository.findByUserId(user.id, ctx);
45
+ if (apiKey && redact) {
46
+ apiKey.apiKey = this.redactApiKey(apiKey.apiKey);
47
+ }
48
+ return apiKey;
49
+ }
50
+ async verifyApiKey(apiKey, ctx = {}) {
51
+ try {
52
+ this.jwtService.verify(API_KEY_PURPOSE, apiKey, { issuer: API_KEY_ISSUER });
53
+ }
54
+ catch {
55
+ return false;
56
+ }
57
+ const key = await this.apiKeyRepository.findByKey(apiKey, ctx);
58
+ return !!key && !!key.user && !key.user.disabled;
59
+ }
60
+ async deleteAllScimApiKeysForUser(user, ctx = {}) {
61
+ await this.apiKeyRepository.deleteAllForUser(user.id, ctx);
62
+ }
63
+ async rotateScimApiKey(user, ctx = {}) {
64
+ return await this.apiKeyRepository.replaceForUser(user.id, this.signApiKey(user), ctx);
65
+ }
66
+ getScimBaseUrl() {
67
+ return `${this.urlService.getInstanceBaseUrl()}/scim/v2`;
68
+ }
69
+ redactApiKey(apiKey) {
70
+ if (REDACT_API_KEY_REVEAL_COUNT >= apiKey.length - REDACT_API_KEY_MIN_HIDDEN_CHARS) {
71
+ return '*'.repeat(apiKey.length);
72
+ }
73
+ const visiblePart = apiKey.slice(-REDACT_API_KEY_REVEAL_COUNT);
74
+ const redactedPart = '*'.repeat(Math.max(0, REDACT_API_KEY_MAX_LENGTH - REDACT_API_KEY_REVEAL_COUNT));
75
+ return redactedPart + visiblePart;
76
+ }
77
+ };
78
+ exports.ScimTokenService = ScimTokenService;
79
+ exports.ScimTokenService = ScimTokenService = __decorate([
80
+ (0, di_1.Service)(),
81
+ __metadata("design:paramtypes", [scim_api_key_repository_1.ScimApiKeyRepository, jwt_service_1.JwtService, backend_services_1.UrlService])
82
+ ], ScimTokenService);
83
+ //# sourceMappingURL=scim-token.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scim-token.service.js","sourceRoot":"","sources":["../../../src/modules/scim/scim-token.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAClC,mCAAoC;AAEpC,wDAAoD;AACpD,4DAAmD;AAEnD,gFAA0E;AAE1E,MAAM,eAAe,GAAG,YAAqB,CAAC;AAC9C,MAAM,cAAc,GAAG,KAAK,CAAC;AAC7B,MAAM,2BAA2B,GAAG,CAAC,CAAC;AACtC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,+BAA+B,GAAG,CAAC,CAAC;AAMnC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC5B,YACkB,gBAAsC,EACtC,UAAsB,EACtB,UAAsB;gCAFtB,gBAAgB;0BAChB,UAAU;0BACV,UAAU;IACzB,CAAC;IAEI,UAAU,CAAC,IAAU;QAC5B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,EAAE;YAC5C,GAAG,EAAE,IAAI,CAAC,EAAE;YACZ,GAAG,EAAE,cAAc;YACnB,GAAG,EAAE,IAAA,mBAAU,GAAE;SACjB,CAAC,CAAC;IACJ,CAAC;IAMD,KAAK,CAAC,mBAAmB,CACxB,IAAU,EACV,GAAG,GAAqB,EAAE;QAE1B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;QAEtE,OAAO;YACN,QAAQ,EAAE,CAAC,CAAC,MAAM;YAClB,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,IAAI;SAC3E,CAAC;IACH,CAAC;IAKD,KAAK,CAAC,qBAAqB,CAAC,IAAU,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,EAAE,GAAG,GAAqB,EAAE;QACzF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;QAEtE,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;YACtB,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAMD,KAAK,CAAC,YAAY,CAAC,MAAc,EAAE,GAAG,GAAqB,EAAE;QAC5D,IAAI,CAAC;YACJ,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;QAC7E,CAAC;QAAC,MAAM,CAAC;YAER,OAAO,KAAK,CAAC;QACd,CAAC;QAKD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAE/D,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;IAClD,CAAC;IAKD,KAAK,CAAC,2BAA2B,CAAC,IAAU,EAAE,GAAG,GAAqB,EAAE;QACvE,MAAM,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IAC5D,CAAC;IAKD,KAAK,CAAC,gBAAgB,CAAC,IAAU,EAAE,GAAG,GAAqB,EAAE;QAC5D,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACxF,CAAC;IAKD,cAAc;QACb,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,EAAE,UAAU,CAAC;IAC1D,CAAC;IAKO,YAAY,CAAC,MAAc;QAClC,IAAI,2BAA2B,IAAI,MAAM,CAAC,MAAM,GAAG,+BAA+B,EAAE,CAAC;YACpF,OAAO,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAClC,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,2BAA2B,CAAC,CAAC;QAC/D,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,CAC9B,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,GAAG,2BAA2B,CAAC,CACpE,CAAC;QAEF,OAAO,YAAY,GAAG,WAAW,CAAC;IACnC,CAAC;CACD,CAAA;;2BApGY,gBAAgB;IAD5B,IAAA,YAAO,GAAE;qCAG2B,8CAAoB,EAC1B,wBAAU,EACV,6BAAU;GAJ5B,gBAAgB,CAoG5B"}
@@ -0,0 +1,3 @@
1
+ export declare class ScimConfig {
2
+ rateLimit: number;
3
+ }