n8n 2.29.7 → 2.30.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 (685) hide show
  1. package/README.md +9 -8
  2. package/dist/active-executions.d.ts +2 -1
  3. package/dist/active-executions.js +2 -1
  4. package/dist/active-executions.js.map +1 -1
  5. package/dist/active-workflow-manager.js +10 -5
  6. package/dist/active-workflow-manager.js.map +1 -1
  7. package/dist/blob-storage/azure-byte-store.ee.js +2 -2
  8. package/dist/blob-storage/azure-byte-store.ee.js.map +1 -1
  9. package/dist/blob-storage/s3-byte-store.ee.js +2 -2
  10. package/dist/blob-storage/s3-byte-store.ee.js.map +1 -1
  11. package/dist/build.tsbuildinfo +1 -1
  12. package/dist/chat/chat-service.js +5 -4
  13. package/dist/chat/chat-service.js.map +1 -1
  14. package/dist/chat/chat-service.types.d.ts +2 -2
  15. package/dist/commands/audit.js +3 -2
  16. package/dist/commands/audit.js.map +1 -1
  17. package/dist/commands/base-command.js +2 -1
  18. package/dist/commands/base-command.js.map +1 -1
  19. package/dist/commands/execute.d.ts +2 -2
  20. package/dist/commands/export/credentials.d.ts +4 -4
  21. package/dist/commands/export/entities.d.ts +2 -2
  22. package/dist/commands/export/workflow.d.ts +4 -4
  23. package/dist/commands/import/credentials.d.ts +2 -2
  24. package/dist/commands/import/workflow.d.ts +2 -2
  25. package/dist/commands/start.js +2 -0
  26. package/dist/commands/start.js.map +1 -1
  27. package/dist/commands/ttwf/generate.d.ts +2 -2
  28. package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
  29. package/dist/controllers/oauth/oauth1-credential.controller.d.ts +3 -1
  30. package/dist/controllers/oauth/oauth1-credential.controller.js +12 -6
  31. package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
  32. package/dist/controllers/oauth/oauth2-credential.controller.d.ts +3 -1
  33. package/dist/controllers/oauth/oauth2-credential.controller.js +12 -5
  34. package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
  35. package/dist/controllers/posthog.controller.d.ts +6 -0
  36. package/dist/controllers/posthog.controller.js +36 -8
  37. package/dist/controllers/posthog.controller.js.map +1 -1
  38. package/dist/controllers/project.controller.d.ts +2 -0
  39. package/dist/controllers/project.controller.js +12 -4
  40. package/dist/controllers/project.controller.js.map +1 -1
  41. package/dist/controllers/role.controller.d.ts +3 -2
  42. package/dist/controllers/role.controller.js +21 -7
  43. package/dist/controllers/role.controller.js.map +1 -1
  44. package/dist/controllers/users.controller.d.ts +3 -2
  45. package/dist/controllers/users.controller.js +5 -1
  46. package/dist/controllers/users.controller.js.map +1 -1
  47. package/dist/credentials/credentials.controller.d.ts +3 -1
  48. package/dist/credentials/credentials.controller.js +24 -18
  49. package/dist/credentials/credentials.controller.js.map +1 -1
  50. package/dist/credentials/credentials.service.d.ts +1 -0
  51. package/dist/credentials/credentials.service.js +11 -0
  52. package/dist/credentials/credentials.service.js.map +1 -1
  53. package/dist/credentials-overwrites.d.ts +2 -0
  54. package/dist/credentials-overwrites.js +10 -0
  55. package/dist/credentials-overwrites.js.map +1 -1
  56. package/dist/deprecation/deprecation.service.js +35 -6
  57. package/dist/deprecation/deprecation.service.js.map +1 -1
  58. package/dist/errors/response-errors/bad-request.error.d.ts +2 -1
  59. package/dist/errors/response-errors/bad-request.error.js +5 -2
  60. package/dist/errors/response-errors/bad-request.error.js.map +1 -1
  61. package/dist/evaluation.ee/test-runs.controller.ee.d.ts +1 -0
  62. package/dist/eventbus/event-message-classes/index.d.ts +2 -2
  63. package/dist/eventbus/event-message-classes/index.js +1 -0
  64. package/dist/eventbus/event-message-classes/index.js.map +1 -1
  65. package/dist/events/event.service.d.ts +2 -1
  66. package/dist/events/event.service.js.map +1 -1
  67. package/dist/events/maps/instance-ai.event-map.d.ts +1 -1
  68. package/dist/events/maps/relay.event-map.d.ts +21 -2
  69. package/dist/events/maps/workflow-publication-metrics.event-map.d.ts +26 -0
  70. package/dist/events/maps/workflow-publication-metrics.event-map.js +3 -0
  71. package/dist/events/maps/workflow-publication-metrics.event-map.js.map +1 -0
  72. package/dist/events/relays/log-streaming.event-relay.d.ts +2 -1
  73. package/dist/events/relays/log-streaming.event-relay.js +16 -3
  74. package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
  75. package/dist/events/relays/telemetry.event-relay.d.ts +3 -0
  76. package/dist/events/relays/telemetry.event-relay.js +44 -3
  77. package/dist/events/relays/telemetry.event-relay.js.map +1 -1
  78. package/dist/execution-lifecycle/execution-lifecycle-hooks.js +2 -0
  79. package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
  80. package/dist/execution-lifecycle/shared/shared-hook-functions.js +2 -2
  81. package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
  82. package/dist/executions/execution-data/azure-store.ee.js +2 -1
  83. package/dist/executions/execution-data/azure-store.ee.js.map +1 -1
  84. package/dist/executions/execution-data/s3-store.ee.js +2 -1
  85. package/dist/executions/execution-data/s3-store.ee.js.map +1 -1
  86. package/dist/executions/execution.service.js +13 -2
  87. package/dist/executions/execution.service.js.map +1 -1
  88. package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js +6 -6
  89. package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js.map +1 -1
  90. package/dist/interfaces.d.ts +2 -1
  91. package/dist/license/license.service.js +4 -4
  92. package/dist/license/license.service.js.map +1 -1
  93. package/dist/load-nodes-and-credentials.js +5 -4
  94. package/dist/load-nodes-and-credentials.js.map +1 -1
  95. package/dist/metrics/prometheus/active-workflow-metrics.service.js +8 -13
  96. package/dist/metrics/prometheus/active-workflow-metrics.service.js.map +1 -1
  97. package/dist/metrics/prometheus/cached-metric-query.d.ts +19 -0
  98. package/dist/metrics/prometheus/cached-metric-query.js +28 -0
  99. package/dist/metrics/prometheus/cached-metric-query.js.map +1 -0
  100. package/dist/metrics/prometheus/instance-ai-metrics.service.js +5 -3
  101. package/dist/metrics/prometheus/instance-ai-metrics.service.js.map +1 -1
  102. package/dist/metrics/prometheus/prometheus.service.d.ts +2 -1
  103. package/dist/metrics/prometheus/prometheus.service.js +5 -2
  104. package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
  105. package/dist/metrics/prometheus/workflow-info-metrics.service.js +8 -13
  106. package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
  107. package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +21 -0
  108. package/dist/metrics/prometheus/workflow-publication-metrics.service.js +160 -0
  109. package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -0
  110. package/dist/metrics/prometheus/workflow-statistics-metrics.service.d.ts +0 -4
  111. package/dist/metrics/prometheus/workflow-statistics-metrics.service.js +10 -42
  112. package/dist/metrics/prometheus/workflow-statistics-metrics.service.js.map +1 -1
  113. package/dist/middlewares/body-parser.js +21 -7
  114. package/dist/middlewares/body-parser.js.map +1 -1
  115. package/dist/modules/agents/agent-config.service.js +39 -18
  116. package/dist/modules/agents/agent-config.service.js.map +1 -1
  117. package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +2 -2
  118. package/dist/modules/agents/agent-execution-orchestrator.service.js +5 -8
  119. package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
  120. package/dist/modules/agents/agent-execution.service.d.ts +2 -2
  121. package/dist/modules/agents/agent-execution.service.js +11 -8
  122. package/dist/modules/agents/agent-execution.service.js.map +1 -1
  123. package/dist/modules/agents/agent-integration-persistence.service.d.ts +4 -1
  124. package/dist/modules/agents/agent-integration-persistence.service.js +4 -2
  125. package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
  126. package/dist/modules/agents/agent-integrations.controller.js +13 -3
  127. package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
  128. package/dist/modules/agents/agent-knowledge-commands.d.ts +3 -0
  129. package/dist/modules/agents/agent-knowledge-commands.js +32 -9
  130. package/dist/modules/agents/agent-knowledge-commands.js.map +1 -1
  131. package/dist/modules/agents/agent-knowledge-gate.d.ts +1 -1
  132. package/dist/modules/agents/agent-knowledge-gate.js +1 -3
  133. package/dist/modules/agents/agent-knowledge-gate.js.map +1 -1
  134. package/dist/modules/agents/agent-knowledge-retrieval.d.ts +13 -6
  135. package/dist/modules/agents/agent-knowledge-retrieval.js +16 -14
  136. package/dist/modules/agents/agent-knowledge-retrieval.js.map +1 -1
  137. package/dist/modules/agents/agent-knowledge-sandbox.service.d.ts +16 -11
  138. package/dist/modules/agents/agent-knowledge-sandbox.service.js +233 -140
  139. package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
  140. package/dist/modules/agents/agent-knowledge-storage.d.ts +4 -15
  141. package/dist/modules/agents/agent-knowledge-storage.js +13 -26
  142. package/dist/modules/agents/agent-knowledge-storage.js.map +1 -1
  143. package/dist/modules/agents/agent-knowledge.controller.d.ts +1 -1
  144. package/dist/modules/agents/agent-knowledge.controller.js +3 -3
  145. package/dist/modules/agents/agent-knowledge.controller.js.map +1 -1
  146. package/dist/modules/agents/agent-knowledge.service.d.ts +13 -12
  147. package/dist/modules/agents/agent-knowledge.service.js +93 -106
  148. package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
  149. package/dist/modules/agents/agent-model-catalog.service.d.ts +11 -0
  150. package/dist/modules/agents/agent-model-catalog.service.js +138 -0
  151. package/dist/modules/agents/agent-model-catalog.service.js.map +1 -0
  152. package/dist/modules/agents/agent-publish.service.js +6 -1
  153. package/dist/modules/agents/agent-publish.service.js.map +1 -1
  154. package/dist/modules/agents/agent-runtime-cache.service.d.ts +0 -1
  155. package/dist/modules/agents/agent-runtime-cache.service.js +4 -13
  156. package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
  157. package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +3 -7
  158. package/dist/modules/agents/agent-runtime-reconstruction.service.js +10 -26
  159. package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
  160. package/dist/modules/agents/agent-sandbox.controller.d.ts +1 -1
  161. package/dist/modules/agents/agent-sandbox.controller.js +4 -4
  162. package/dist/modules/agents/agent-sandbox.controller.js.map +1 -1
  163. package/dist/modules/agents/agent-task.service.d.ts +1 -4
  164. package/dist/modules/agents/agent-task.service.js +1 -23
  165. package/dist/modules/agents/agent-task.service.js.map +1 -1
  166. package/dist/modules/agents/agents-catalog.controller.d.ts +9 -2
  167. package/dist/modules/agents/agents-catalog.controller.js +25 -2
  168. package/dist/modules/agents/agents-catalog.controller.js.map +1 -1
  169. package/dist/modules/agents/agents-config.controller.d.ts +46 -30
  170. package/dist/modules/agents/agents.controller.js +1 -1
  171. package/dist/modules/agents/agents.controller.js.map +1 -1
  172. package/dist/modules/agents/agents.service.d.ts +1 -1
  173. package/dist/modules/agents/agents.service.js +8 -2
  174. package/dist/modules/agents/agents.service.js.map +1 -1
  175. package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +3 -3
  176. package/dist/modules/agents/builder/agents-builder-tools.service.js +32 -9
  177. package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
  178. package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +14 -0
  179. package/dist/modules/agents/builder/builder-model-live-lookup.service.js +91 -0
  180. package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -0
  181. package/dist/modules/agents/builder/interactive/llm-provider-defaults.d.ts +0 -12
  182. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +20 -40
  183. package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -1
  184. package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +1 -2
  185. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +3 -2
  186. package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
  187. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +6 -0
  188. package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
  189. package/dist/modules/agents/builder/prompts/config-rules.prompt.js +7 -0
  190. package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
  191. package/dist/modules/agents/entities/agent-execution.entity.d.ts +2 -4
  192. package/dist/modules/agents/entities/agent-execution.entity.js +2 -10
  193. package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
  194. package/dist/modules/agents/execution-recorder.d.ts +0 -8
  195. package/dist/modules/agents/execution-recorder.js +12 -27
  196. package/dist/modules/agents/execution-recorder.js.map +1 -1
  197. package/dist/modules/agents/integrations/agent-chat-suspension-cards.js +5 -5
  198. package/dist/modules/agents/integrations/agent-chat-suspension-cards.js.map +1 -1
  199. package/dist/modules/agents/integrations/chat-integration.service.d.ts +7 -6
  200. package/dist/modules/agents/integrations/chat-integration.service.js +51 -85
  201. package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
  202. package/dist/modules/agents/integrations/integration-action-executor.d.ts +116 -116
  203. package/dist/modules/agents/integrations/integration-helpers.js +5 -5
  204. package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
  205. package/dist/modules/agents/integrations/integration-message-context.service.js +2 -2
  206. package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
  207. package/dist/modules/agents/integrations/integration-tool-definitions.d.ts +949 -949
  208. package/dist/modules/agents/integrations/integration-tool-execution.js +4 -4
  209. package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
  210. package/dist/modules/agents/integrations/n8n-checkpoint-storage.d.ts +1 -0
  211. package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +9 -1
  212. package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -1
  213. package/dist/modules/agents/integrations/platforms/linear-operations.js +18 -18
  214. package/dist/modules/agents/integrations/platforms/linear-operations.js.map +1 -1
  215. package/dist/modules/agents/integrations/platforms/linear-tool-definitions.d.ts +30 -30
  216. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js +6 -6
  217. package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js.map +1 -1
  218. package/dist/modules/agents/integrations/platforms/slack-operations.js +3 -3
  219. package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -1
  220. package/dist/modules/agents/integrations/recording/channel-integration-recorder.d.ts +64 -0
  221. package/dist/modules/agents/integrations/recording/channel-integration-recorder.js +376 -0
  222. package/dist/modules/agents/integrations/recording/channel-integration-recorder.js.map +1 -0
  223. package/dist/modules/agents/integrations/recording/recording-adapter.d.ts +2 -0
  224. package/dist/modules/agents/integrations/recording/recording-adapter.js +98 -0
  225. package/dist/modules/agents/integrations/recording/recording-adapter.js.map +1 -0
  226. package/dist/modules/agents/integrations/slack-app-setup.service.js +5 -5
  227. package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
  228. package/dist/modules/agents/json-config/from-json-config.js +3 -0
  229. package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
  230. package/dist/modules/agents/repositories/agent-checkpoint.repository.d.ts +1 -0
  231. package/dist/modules/agents/repositories/agent-checkpoint.repository.js +4 -0
  232. package/dist/modules/agents/repositories/agent-checkpoint.repository.js.map +1 -1
  233. package/dist/modules/agents/repositories/agent-execution.repository.js +3 -1
  234. package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
  235. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +0 -1
  236. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +0 -1
  237. package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
  238. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.d.ts +12 -8
  239. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js +12 -10
  240. package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js.map +1 -1
  241. package/dist/modules/agents/tools/workflow-tool-factory.d.ts +2 -6
  242. package/dist/modules/agents/tools/workflow-tool-factory.js +11 -24
  243. package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
  244. package/dist/modules/agents/utils/agent-resource-id.js +2 -2
  245. package/dist/modules/agents/utils/agent-resource-id.js.map +1 -1
  246. package/dist/modules/agents/utils/execution-to-message-mapper.d.ts +1 -1
  247. package/dist/modules/agents/utils/execution-to-message-mapper.js +4 -31
  248. package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
  249. package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +4 -7
  250. package/dist/modules/breaking-changes/breaking-changes.controller.js +8 -7
  251. package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
  252. package/dist/modules/breaking-changes/rules/index.d.ts +2 -0
  253. package/dist/modules/breaking-changes/rules/index.js +2 -0
  254. package/dist/modules/breaking-changes/rules/index.js.map +1 -1
  255. package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.d.ts +14 -0
  256. package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.js +82 -0
  257. package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.js.map +1 -0
  258. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.d.ts +10 -0
  259. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js +53 -0
  260. package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js.map +1 -0
  261. package/dist/modules/chat-hub/chat-hub-extractor.js +2 -1
  262. package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -1
  263. package/dist/modules/chat-hub/chat-hub.attachment.service.js +3 -3
  264. package/dist/modules/chat-hub/chat-hub.attachment.service.js.map +1 -1
  265. package/dist/modules/chat-hub/chat-hub.controller.js +2 -2
  266. package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
  267. package/dist/modules/chat-hub/chat-hub.module.d.ts +1 -1
  268. package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +3 -3
  269. package/dist/modules/chat-hub/chat-hub.types.d.ts +4 -4
  270. package/dist/modules/community-packages/community-node-types.service.js +3 -2
  271. package/dist/modules/community-packages/community-node-types.service.js.map +1 -1
  272. package/dist/modules/community-packages/community-packages.lifecycle.service.js +2 -1
  273. package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
  274. package/dist/modules/community-packages/community-packages.service.d.ts +6 -0
  275. package/dist/modules/community-packages/community-packages.service.js +116 -25
  276. package/dist/modules/community-packages/community-packages.service.js.map +1 -1
  277. package/dist/modules/community-packages/installed-packages.repository.d.ts +2 -0
  278. package/dist/modules/community-packages/installed-packages.repository.js +9 -0
  279. package/dist/modules/community-packages/installed-packages.repository.js.map +1 -1
  280. package/dist/modules/community-packages/npm-utils.js +2 -2
  281. package/dist/modules/community-packages/npm-utils.js.map +1 -1
  282. package/dist/modules/data-table/data-table-column.repository.js +3 -2
  283. package/dist/modules/data-table/data-table-column.repository.js.map +1 -1
  284. package/dist/modules/data-table/data-table-proxy.service.d.ts +3 -0
  285. package/dist/modules/data-table/data-table-proxy.service.js +8 -0
  286. package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
  287. package/dist/modules/data-table/data-table-rows.repository.d.ts +3 -0
  288. package/dist/modules/data-table/data-table-rows.repository.js +15 -4
  289. package/dist/modules/data-table/data-table-rows.repository.js.map +1 -1
  290. package/dist/modules/data-table/data-table.controller.js +2 -1
  291. package/dist/modules/data-table/data-table.controller.js.map +1 -1
  292. package/dist/modules/data-table/data-table.module.d.ts +1 -1
  293. package/dist/modules/data-table/data-table.repository.js +10 -0
  294. package/dist/modules/data-table/data-table.repository.js.map +1 -1
  295. package/dist/modules/data-table/data-table.service.d.ts +3 -0
  296. package/dist/modules/data-table/data-table.service.js +10 -0
  297. package/dist/modules/data-table/data-table.service.js.map +1 -1
  298. package/dist/modules/data-table/multer-upload-middleware.js +4 -3
  299. package/dist/modules/data-table/multer-upload-middleware.js.map +1 -1
  300. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js +2 -1
  301. package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js.map +1 -1
  302. package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.d.ts +2 -2
  303. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +2 -1
  304. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
  305. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +5 -0
  306. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
  307. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.d.ts +2 -3
  308. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +1 -7
  309. package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -1
  310. package/dist/modules/dynamic-credentials.ee/services/shared-fields.d.ts +2 -1
  311. package/dist/modules/dynamic-credentials.ee/services/shared-fields.js +15 -0
  312. package/dist/modules/dynamic-credentials.ee/services/shared-fields.js.map +1 -1
  313. package/dist/modules/external-secrets.ee/errors/secrets-provider-errors.d.ts +33 -0
  314. package/dist/modules/external-secrets.ee/errors/secrets-provider-errors.js +58 -0
  315. package/dist/modules/external-secrets.ee/errors/secrets-provider-errors.js.map +1 -0
  316. package/dist/modules/external-secrets.ee/provider-lifecycle.service.js +4 -4
  317. package/dist/modules/external-secrets.ee/provider-lifecycle.service.js.map +1 -1
  318. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.d.ts +16 -3
  319. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +114 -23
  320. package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
  321. package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.d.ts +3 -0
  322. package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js +136 -32
  323. package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js.map +1 -1
  324. package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.d.ts +2 -0
  325. package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.js +134 -50
  326. package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.js.map +1 -1
  327. package/dist/modules/external-secrets.ee/providers/infisical.d.ts +31 -0
  328. package/dist/modules/external-secrets.ee/providers/infisical.js +97 -40
  329. package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
  330. package/dist/modules/external-secrets.ee/providers/one-password.d.ts +2 -0
  331. package/dist/modules/external-secrets.ee/providers/one-password.js +97 -41
  332. package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
  333. package/dist/modules/external-secrets.ee/providers/vault.d.ts +3 -1
  334. package/dist/modules/external-secrets.ee/providers/vault.js +126 -33
  335. package/dist/modules/external-secrets.ee/providers/vault.js.map +1 -1
  336. package/dist/modules/external-secrets.ee/secrets-cache.service.js +2 -1
  337. package/dist/modules/external-secrets.ee/secrets-cache.service.js.map +1 -1
  338. package/dist/modules/favorites/dto/add-favorite.dto.d.ts +1 -1
  339. package/dist/modules/insights/database/entities/insights-shared.d.ts +1 -1
  340. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +2 -2
  341. package/dist/modules/insights/insights-compaction.service.d.ts +4 -2
  342. package/dist/modules/insights/insights-compaction.service.js +46 -39
  343. package/dist/modules/insights/insights-compaction.service.js.map +1 -1
  344. package/dist/modules/insights/insights.service.d.ts +3 -3
  345. package/dist/modules/insights/insights.service.js +4 -4
  346. package/dist/modules/insights/insights.service.js.map +1 -1
  347. package/dist/modules/instance-ai/browser/browser-local-mcp-server.js +1 -1
  348. package/dist/modules/instance-ai/browser/browser-local-mcp-server.js.map +1 -1
  349. package/dist/modules/instance-ai/eval/date-anchors.d.ts +1 -0
  350. package/dist/modules/instance-ai/eval/date-anchors.js +24 -0
  351. package/dist/modules/instance-ai/eval/date-anchors.js.map +1 -0
  352. package/dist/modules/instance-ai/eval/eval-timings.d.ts +10 -0
  353. package/dist/modules/instance-ai/eval/eval-timings.js +50 -0
  354. package/dist/modules/instance-ai/eval/eval-timings.js.map +1 -0
  355. package/dist/modules/instance-ai/eval/execution.service.d.ts +1 -0
  356. package/dist/modules/instance-ai/eval/execution.service.js +175 -26
  357. package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
  358. package/dist/modules/instance-ai/eval/llm-completion-mock.d.ts +7 -0
  359. package/dist/modules/instance-ai/eval/llm-completion-mock.js +188 -0
  360. package/dist/modules/instance-ai/eval/llm-completion-mock.js.map +1 -0
  361. package/dist/modules/instance-ai/eval/llm-wire-server.js +14 -1
  362. package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
  363. package/dist/modules/instance-ai/eval/mock-handler.d.ts +9 -2
  364. package/dist/modules/instance-ai/eval/mock-handler.js +239 -41
  365. package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
  366. package/dist/modules/instance-ai/eval/mock-quirks.d.ts +1 -0
  367. package/dist/modules/instance-ai/eval/mock-quirks.js +47 -2
  368. package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
  369. package/dist/modules/instance-ai/eval/pin-data-generator.d.ts +7 -0
  370. package/dist/modules/instance-ai/eval/pin-data-generator.js +190 -8
  371. package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
  372. package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +2 -0
  373. package/dist/modules/instance-ai/eval/workflow-analysis.js +25 -3
  374. package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
  375. package/dist/modules/instance-ai/event-bus/in-process-event-bus.d.ts +15 -1
  376. package/dist/modules/instance-ai/event-bus/in-process-event-bus.js +51 -5
  377. package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
  378. package/dist/modules/instance-ai/instance-ai-error-reporter.service.d.ts +18 -0
  379. package/dist/modules/instance-ai/instance-ai-error-reporter.service.js +76 -0
  380. package/dist/modules/instance-ai/instance-ai-error-reporter.service.js.map +1 -0
  381. package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +4 -1
  382. package/dist/modules/instance-ai/instance-ai.adapter.service.js +71 -8
  383. package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
  384. package/dist/modules/instance-ai/instance-ai.controller.d.ts +5 -5
  385. package/dist/modules/instance-ai/instance-ai.controller.js +85 -55
  386. package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
  387. package/dist/modules/instance-ai/instance-ai.service.d.ts +24 -6
  388. package/dist/modules/instance-ai/instance-ai.service.js +303 -106
  389. package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
  390. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.d.ts +2 -1
  391. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js +12 -0
  392. package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -1
  393. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +3 -1
  394. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +78 -11
  395. package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
  396. package/dist/modules/instance-ai/message-parser.js +62 -15
  397. package/dist/modules/instance-ai/message-parser.js.map +1 -1
  398. package/dist/modules/instance-ai/node-definition-resolver.js +34 -4
  399. package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
  400. package/dist/modules/instance-ai/observability.d.ts +2 -1
  401. package/dist/modules/instance-ai/observability.js +2 -1
  402. package/dist/modules/instance-ai/observability.js.map +1 -1
  403. package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.d.ts +1 -0
  404. package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js +4 -0
  405. package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js.map +1 -1
  406. package/dist/modules/instance-ai/storage/db-iteration-log-storage.js +2 -2
  407. package/dist/modules/instance-ai/storage/db-iteration-log-storage.js.map +1 -1
  408. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +4 -4
  409. package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
  410. package/dist/modules/instance-ai/suspended-run-restorer.service.d.ts +3 -2
  411. package/dist/modules/instance-ai/suspended-run-restorer.service.js +9 -8
  412. package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
  413. package/dist/modules/instance-registry/storage/redis-instance-storage.js +9 -8
  414. package/dist/modules/instance-registry/storage/redis-instance-storage.js.map +1 -1
  415. package/dist/modules/mcp/mcp-api-key.service.js +2 -2
  416. package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
  417. package/dist/modules/mcp/mcp-server-middleware.service.js +3 -3
  418. package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
  419. package/dist/modules/mcp/mcp.service.d.ts +2 -1
  420. package/dist/modules/mcp/mcp.service.js +3 -2
  421. package/dist/modules/mcp/mcp.service.js.map +1 -1
  422. package/dist/modules/mcp/mcp.typeguards.js +9 -9
  423. package/dist/modules/mcp/mcp.typeguards.js.map +1 -1
  424. package/dist/modules/mcp/mcp.utils.js +2 -2
  425. package/dist/modules/mcp/mcp.utils.js.map +1 -1
  426. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +8 -8
  427. package/dist/modules/mcp/tools/execute-workflow.tool.js +2 -1
  428. package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
  429. package/dist/modules/mcp/tools/execution-utils.js +2 -1
  430. package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
  431. package/dist/modules/mcp/tools/get-execution.tool.js +2 -1
  432. package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
  433. package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +2 -2
  434. package/dist/modules/mcp/tools/get-workflow-details.tool.js +5 -5
  435. package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
  436. package/dist/modules/mcp/tools/get-workflow-history.tool.d.ts +4 -4
  437. package/dist/modules/mcp/tools/get-workflow-history.tool.js +2 -2
  438. package/dist/modules/mcp/tools/get-workflow-history.tool.js.map +1 -1
  439. package/dist/modules/mcp/tools/get-workflow-version.tool.js +2 -2
  440. package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -1
  441. package/dist/modules/mcp/tools/publish-workflow.tool.js +2 -1
  442. package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
  443. package/dist/modules/mcp/tools/schemas.d.ts +52 -52
  444. package/dist/modules/mcp/tools/test-workflow.tool.js +2 -1
  445. package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
  446. package/dist/modules/mcp/tools/unpublish-workflow.tool.js +2 -1
  447. package/dist/modules/mcp/tools/unpublish-workflow.tool.js.map +1 -1
  448. package/dist/modules/mcp/tools/webhook-utils.d.ts +2 -3
  449. package/dist/modules/mcp/tools/webhook-utils.js +15 -21
  450. package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
  451. package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +2 -2
  452. package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js +2 -2
  453. package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js.map +1 -1
  454. package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +2 -2
  455. package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +85 -85
  456. package/dist/modules/mcp-registry/mcp-registry-node-loader.js +2 -1
  457. package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -1
  458. package/dist/modules/n8n-packages/engine/import-pipeline.js +14 -1
  459. package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -1
  460. package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +31 -0
  461. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +115 -0
  462. package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -0
  463. package/dist/modules/n8n-packages/entities/folder/folder.serializer.d.ts +5 -0
  464. package/dist/modules/n8n-packages/entities/folder/folder.serializer.js +25 -0
  465. package/dist/modules/n8n-packages/entities/folder/folder.serializer.js.map +1 -0
  466. package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +20 -0
  467. package/dist/modules/n8n-packages/entities/project/project.exporter.js +59 -0
  468. package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -0
  469. package/dist/modules/n8n-packages/entities/project/project.serializer.d.ts +5 -0
  470. package/dist/modules/n8n-packages/entities/project/project.serializer.js +26 -0
  471. package/dist/modules/n8n-packages/entities/project/project.serializer.js.map +1 -0
  472. package/dist/modules/n8n-packages/entities/requirements.types.d.ts +5 -0
  473. package/dist/modules/n8n-packages/entities/requirements.types.js +8 -0
  474. package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -0
  475. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +2 -2
  476. package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
  477. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +3 -5
  478. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +2 -2
  479. package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
  480. package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -1
  481. package/dist/modules/n8n-packages/io/slug.utils.js +1 -2
  482. package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -1
  483. package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +3 -2
  484. package/dist/modules/n8n-packages/io/unique-filename-allocator.js +3 -0
  485. package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -1
  486. package/dist/modules/n8n-packages/n8n-packages.module.js +1 -1
  487. package/dist/modules/n8n-packages/n8n-packages.module.js.map +1 -1
  488. package/dist/modules/n8n-packages/n8n-packages.service.d.ts +11 -3
  489. package/dist/modules/n8n-packages/n8n-packages.service.js +77 -16
  490. package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
  491. package/dist/modules/n8n-packages/n8n-packages.types.d.ts +21 -2
  492. package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
  493. package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +88 -22
  494. package/dist/modules/n8n-packages/spec/manifest.schema.js +20 -12
  495. package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
  496. package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +8 -8
  497. package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +2 -2
  498. package/dist/modules/n8n-packages/spec/serialized/folder.schema.d.ts +15 -0
  499. package/dist/modules/n8n-packages/spec/serialized/folder.schema.js +12 -0
  500. package/dist/modules/n8n-packages/spec/serialized/folder.schema.js.map +1 -0
  501. package/dist/modules/n8n-packages/spec/serialized/project.schema.d.ts +33 -0
  502. package/dist/modules/n8n-packages/spec/serialized/project.schema.js +15 -0
  503. package/dist/modules/n8n-packages/spec/serialized/project.schema.js.map +1 -0
  504. package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +32 -32
  505. package/dist/modules/oauth-jwe/oauth-jwe-key.service.js +2 -2
  506. package/dist/modules/oauth-jwe/oauth-jwe-key.service.js.map +1 -1
  507. package/dist/modules/oauth-server/oauth-token.service.js +2 -1
  508. package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
  509. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js +2 -2
  510. package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
  511. package/dist/modules/otel/execution-level-tracer.js +32 -8
  512. package/dist/modules/otel/execution-level-tracer.js.map +1 -1
  513. package/dist/modules/otel/execution-level-tracer.types.d.ts +2 -0
  514. package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
  515. package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -0
  516. package/dist/modules/provisioning.ee/provisioning.service.ee.js +38 -15
  517. package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
  518. package/dist/modules/quick-connect/quick-connect.config.d.ts +19 -19
  519. package/dist/modules/quick-connect/quick-connect.module.d.ts +8 -8
  520. package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -1
  521. package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
  522. package/dist/modules/source-control.ee/source-control-helper.ee.js +2 -0
  523. package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
  524. package/dist/modules/source-control.ee/source-control-import.service.ee.js +15 -10
  525. package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
  526. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +6 -6
  527. package/dist/modules/source-control.ee/source-control.controller.ee.js +3 -3
  528. package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
  529. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -2
  530. package/dist/modules/source-control.ee/source-control.service.ee.js +2 -2
  531. package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
  532. package/dist/modules/source-control.ee/types/exportable-credential.d.ts +2 -0
  533. package/dist/modules/sso-saml/saml.controller.ee.d.ts +2 -2
  534. package/dist/modules/token-exchange/token-exchange.schemas.d.ts +8 -8
  535. package/dist/modules/workflow-index/workflow-index.service.js +3 -2
  536. package/dist/modules/workflow-index/workflow-index.service.js.map +1 -1
  537. package/dist/oauth/oauth.service.d.ts +5 -0
  538. package/dist/oauth/oauth.service.js +45 -15
  539. package/dist/oauth/oauth.service.js.map +1 -1
  540. package/dist/public-api/types.d.ts +28 -1
  541. package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.d.ts +1 -0
  542. package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js +15 -0
  543. package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js.map +1 -1
  544. package/dist/public-api/v1/handlers/discover/discover.service.js +11 -11
  545. package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
  546. package/dist/public-api/v1/handlers/evaluations/evaluations.handler.d.ts +9 -0
  547. package/dist/public-api/v1/handlers/evaluations/evaluations.handler.js +64 -0
  548. package/dist/public-api/v1/handlers/evaluations/evaluations.handler.js.map +1 -0
  549. package/dist/public-api/v1/handlers/evaluations/evaluations.mapper.d.ts +9 -0
  550. package/dist/public-api/v1/handlers/evaluations/evaluations.mapper.js +34 -0
  551. package/dist/public-api/v1/handlers/evaluations/evaluations.mapper.js.map +1 -0
  552. package/dist/public-api/v1/handlers/executions/executions.handler.js +1 -0
  553. package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
  554. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +5 -3
  555. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +53 -26
  556. package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
  557. package/dist/public-api/v1/handlers/projects/projects.handler.js +10 -0
  558. package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -1
  559. package/dist/public-api/v1/openapi.yml +300 -18
  560. package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +1 -0
  561. package/dist/public-api/v1/shared/middlewares/global.middleware.js +6 -0
  562. package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
  563. package/dist/push/index.js +3 -3
  564. package/dist/push/index.js.map +1 -1
  565. package/dist/requests.d.ts +1 -0
  566. package/dist/response-helper.js +2 -1
  567. package/dist/response-helper.js.map +1 -1
  568. package/dist/scaling/constants.d.ts +3 -2
  569. package/dist/scaling/constants.js +4 -1
  570. package/dist/scaling/constants.js.map +1 -1
  571. package/dist/scaling/job-processor.js +1 -0
  572. package/dist/scaling/job-processor.js.map +1 -1
  573. package/dist/scaling/leader-election-client.d.ts +1 -1
  574. package/dist/scaling/leader-election-client.js +13 -12
  575. package/dist/scaling/leader-election-client.js.map +1 -1
  576. package/dist/scaling/pubsub/pubsub.event-map.d.ts +11 -1
  577. package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
  578. package/dist/scaling/redis-lock.service.js +5 -5
  579. package/dist/scaling/redis-lock.service.js.map +1 -1
  580. package/dist/scaling/scaling.service.js +3 -2
  581. package/dist/scaling/scaling.service.js.map +1 -1
  582. package/dist/scaling/scaling.types.d.ts +1 -0
  583. package/dist/services/folder-finder.service.d.ts +12 -0
  584. package/dist/services/folder-finder.service.js +58 -0
  585. package/dist/services/folder-finder.service.js.map +1 -0
  586. package/dist/services/frontend.service.js +3 -0
  587. package/dist/services/frontend.service.js.map +1 -1
  588. package/dist/services/import.service.js +2 -2
  589. package/dist/services/import.service.js.map +1 -1
  590. package/dist/services/project.service.ee.d.ts +1 -0
  591. package/dist/services/project.service.ee.js +21 -1
  592. package/dist/services/project.service.ee.js.map +1 -1
  593. package/dist/services/protected-resource.registry.js +2 -2
  594. package/dist/services/protected-resource.registry.js.map +1 -1
  595. package/dist/services/proxy-token-manager.js +2 -2
  596. package/dist/services/proxy-token-manager.js.map +1 -1
  597. package/dist/services/pruning/executions-pruning.service.js +3 -3
  598. package/dist/services/pruning/executions-pruning.service.js.map +1 -1
  599. package/dist/services/pruning/workflow-history-compaction.service.js +2 -1
  600. package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
  601. package/dist/services/redis-client.service.js +5 -2
  602. package/dist/services/redis-client.service.js.map +1 -1
  603. package/dist/services/role.service.d.ts +3 -3
  604. package/dist/services/role.service.js +9 -3
  605. package/dist/services/role.service.js.map +1 -1
  606. package/dist/services/url.service.d.ts +1 -0
  607. package/dist/services/url.service.js +10 -5
  608. package/dist/services/url.service.js.map +1 -1
  609. package/dist/services/workflow-statistics-rollup.service.d.ts +31 -0
  610. package/dist/services/workflow-statistics-rollup.service.js +160 -0
  611. package/dist/services/workflow-statistics-rollup.service.js.map +1 -0
  612. package/dist/services/workflow-statistics.service.d.ts +5 -2
  613. package/dist/services/workflow-statistics.service.js +37 -15
  614. package/dist/services/workflow-statistics.service.js.map +1 -1
  615. package/dist/task-runners/task-managers/task-requester.d.ts +2 -1
  616. package/dist/task-runners/task-managers/task-requester.js +3 -3
  617. package/dist/task-runners/task-managers/task-requester.js.map +1 -1
  618. package/dist/wait-tracker.js +2 -1
  619. package/dist/wait-tracker.js.map +1 -1
  620. package/dist/webhooks/webhook-helpers.d.ts +2 -1
  621. package/dist/webhooks/webhook-helpers.js +5 -4
  622. package/dist/webhooks/webhook-helpers.js.map +1 -1
  623. package/dist/webhooks/webhook-last-node-response-extractor.d.ts +2 -1
  624. package/dist/webhooks/webhook-last-node-response-extractor.js +12 -11
  625. package/dist/webhooks/webhook-last-node-response-extractor.js.map +1 -1
  626. package/dist/webhooks/webhook-request-handler.js +2 -2
  627. package/dist/webhooks/webhook-request-handler.js.map +1 -1
  628. package/dist/webhooks/webhook-response-headers.js +2 -2
  629. package/dist/webhooks/webhook-response-headers.js.map +1 -1
  630. package/dist/webhooks/webhook.service.js +6 -5
  631. package/dist/webhooks/webhook.service.js.map +1 -1
  632. package/dist/workflow-execute-additional-data.js +6 -13
  633. package/dist/workflow-execute-additional-data.js.map +1 -1
  634. package/dist/workflow-runner.d.ts +2 -1
  635. package/dist/workflow-runner.js +1 -0
  636. package/dist/workflow-runner.js.map +1 -1
  637. package/dist/workflows/publication/workflow-publication-applier.js +2 -2
  638. package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
  639. package/dist/workflows/publication/workflow-publication-notifier.d.ts +12 -0
  640. package/dist/workflows/publication/workflow-publication-notifier.js +78 -0
  641. package/dist/workflows/publication/workflow-publication-notifier.js.map +1 -0
  642. package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.d.ts +3 -1
  643. package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js +13 -2
  644. package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js.map +1 -1
  645. package/dist/workflows/publication/workflow-publication-outbox-consumer.d.ts +4 -1
  646. package/dist/workflows/publication/workflow-publication-outbox-consumer.js +61 -11
  647. package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
  648. package/dist/workflows/publication/workflow-publication-status.service.d.ts +9 -0
  649. package/dist/workflows/publication/workflow-publication-status.service.js +54 -0
  650. package/dist/workflows/publication/workflow-publication-status.service.js.map +1 -0
  651. package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +1 -1
  652. package/dist/workflows/triggers/trigger-activation-retry.js +2 -1
  653. package/dist/workflows/triggers/trigger-activation-retry.js.map +1 -1
  654. package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +2 -2
  655. package/dist/workflows/triggers/trigger-execution-context.factory.js +1 -1
  656. package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
  657. package/dist/workflows/triggers/webhook-trigger-registrar.js +2 -1
  658. package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
  659. package/dist/workflows/triggers/workflow-trigger-activator.d.ts +7 -1
  660. package/dist/workflows/triggers/workflow-trigger-activator.js +64 -10
  661. package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
  662. package/dist/workflows/workflow-execution.service.d.ts +2 -1
  663. package/dist/workflows/workflow-execution.service.js.map +1 -1
  664. package/dist/workflows/workflow-finder.service.d.ts +1 -0
  665. package/dist/workflows/workflow-finder.service.js +21 -0
  666. package/dist/workflows/workflow-finder.service.js.map +1 -1
  667. package/dist/workflows/workflow-history/workflow-history.service.js +2 -1
  668. package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
  669. package/dist/workflows/workflow-published-data.service.js +2 -2
  670. package/dist/workflows/workflow-published-data.service.js.map +1 -1
  671. package/dist/workflows/workflow-validation.service.js +3 -2
  672. package/dist/workflows/workflow-validation.service.js.map +1 -1
  673. package/dist/workflows/workflow.service.d.ts +8 -6
  674. package/dist/workflows/workflow.service.js +9 -3
  675. package/dist/workflows/workflow.service.js.map +1 -1
  676. package/dist/workflows/workflows.controller.d.ts +31 -28
  677. package/dist/workflows/workflows.controller.js +28 -4
  678. package/dist/workflows/workflows.controller.js.map +1 -1
  679. package/package.json +39 -35
  680. package/dist/modules/agents/builder/builder-model-lookup.service.d.ts +0 -17
  681. package/dist/modules/agents/builder/builder-model-lookup.service.js +0 -67
  682. package/dist/modules/agents/builder/builder-model-lookup.service.js.map +0 -1
  683. package/dist/modules/n8n-packages/n8n-packages.controller.d.ts +0 -10
  684. package/dist/modules/n8n-packages/n8n-packages.controller.js +0 -44
  685. package/dist/modules/n8n-packages/n8n-packages.controller.js.map +0 -1
@@ -13,55 +13,116 @@ exports.N8nPackagesService = void 0;
13
13
  const di_1 = require("@n8n/di");
14
14
  const n8n_core_1 = require("n8n-core");
15
15
  const constants_1 = require("../../constants");
16
+ const event_service_1 = require("../../events/event.service");
16
17
  const import_pipeline_1 = require("./engine/import-pipeline");
17
18
  const credential_exporter_1 = require("./entities/credential/credential.exporter");
19
+ const folder_exporter_1 = require("./entities/folder/folder.exporter");
20
+ const project_exporter_1 = require("./entities/project/project.exporter");
21
+ const requirements_types_1 = require("./entities/requirements.types");
18
22
  const workflow_exporter_1 = require("./entities/workflow/workflow.exporter");
19
23
  const tar_package_writer_1 = require("./io/tar/tar-package-writer");
20
24
  const constants_2 = require("./spec/constants");
21
25
  const manifest_schema_1 = require("./spec/manifest.schema");
22
26
  let N8nPackagesService = class N8nPackagesService {
23
- constructor(workflowExporter, credentialExporter, instanceSettings, importPipeline) {
27
+ constructor(projectExporter, workflowExporter, folderExporter, credentialExporter, instanceSettings, importPipeline, eventService) {
28
+ this.projectExporter = projectExporter;
24
29
  this.workflowExporter = workflowExporter;
30
+ this.folderExporter = folderExporter;
25
31
  this.credentialExporter = credentialExporter;
26
32
  this.instanceSettings = instanceSettings;
27
33
  this.importPipeline = importPipeline;
34
+ this.eventService = eventService;
28
35
  }
29
- async exportWorkflows(request) {
36
+ async exportPackage(request) {
30
37
  const writer = new tar_package_writer_1.TarPackageWriter();
31
- const { entries: workflowEntries, requirements: workflowRequirements } = await this.workflowExporter.export({
38
+ const workflowIds = request.workflowIds ?? [];
39
+ const folderIds = request.folderIds ?? [];
40
+ const projectIds = request.projectIds ?? [];
41
+ const folderExportResult = folderIds.length > 0
42
+ ? await this.folderExporter.export({
43
+ user: request.user,
44
+ folderIds,
45
+ writer,
46
+ })
47
+ : undefined;
48
+ const workflowsForExport = this.filterWorkflowsAlreadyInFolders(folderExportResult?.workflowEntries, workflowIds);
49
+ const workflowExportResult = workflowsForExport.length > 0
50
+ ? await this.workflowExporter.export({
51
+ user: request.user,
52
+ workflowIds: workflowsForExport,
53
+ writer,
54
+ })
55
+ : undefined;
56
+ const projectExportResult = projectIds.length > 0
57
+ ? await this.projectExporter.export({
58
+ user: request.user,
59
+ projectIds,
60
+ writer,
61
+ })
62
+ : undefined;
63
+ const requirements = (0, requirements_types_1.mergeRequirements)(workflowExportResult?.requirements, folderExportResult?.requirements);
64
+ const credentialExportResult = await this.credentialExporter.export({
32
65
  user: request.user,
33
- workflowIds: request.workflowIds,
34
- writer,
35
- });
36
- const { entries: credentialEntries, requirements: credentialRequirements } = await this.credentialExporter.export({
37
- user: request.user,
38
- requirements: workflowRequirements.credentials,
66
+ requirements: requirements.credentials,
39
67
  writer,
40
68
  });
69
+ const allWorkflowsInPackage = [
70
+ ...(workflowExportResult?.entries ?? []),
71
+ ...(folderExportResult?.workflowEntries ?? []),
72
+ ];
41
73
  const manifest = manifest_schema_1.packageManifestSchema.parse({
42
74
  packageFormatVersion: constants_2.FORMAT_VERSION,
43
75
  exportedAt: new Date().toISOString(),
44
76
  sourceN8nVersion: constants_1.N8N_VERSION,
45
77
  sourceId: this.instanceSettings.instanceId,
46
- workflows: workflowEntries,
47
- ...(credentialEntries.length > 0 ? { credentials: credentialEntries } : {}),
48
- ...(credentialRequirements.length > 0
49
- ? { requirements: { credentials: credentialRequirements } }
78
+ ...(credentialExportResult.entries.length > 0
79
+ ? { credentials: credentialExportResult.entries }
50
80
  : {}),
81
+ ...(credentialExportResult.requirements.length > 0
82
+ ? { requirements: { credentials: credentialExportResult.requirements } }
83
+ : {}),
84
+ ...(allWorkflowsInPackage.length > 0 ? { workflows: allWorkflowsInPackage } : {}),
85
+ ...(folderExportResult?.entries ? { folders: folderExportResult.entries } : {}),
86
+ ...(projectExportResult?.entries ? { projects: projectExportResult.entries } : {}),
51
87
  });
52
88
  writer.writeFile('manifest.json', JSON.stringify(manifest, null, '\t'));
53
- return writer.finalize();
89
+ const stream = writer.finalize();
90
+ this.eventService.emit('n8n-package-exported', {
91
+ user: request.user,
92
+ ...(workflowExportResult?.entries.length
93
+ ? { workflowIds: workflowExportResult.entries.map(({ id }) => id) }
94
+ : {}),
95
+ ...(folderExportResult?.entries.length
96
+ ? { folderIds: folderExportResult.entries.map(({ id }) => id) }
97
+ : {}),
98
+ ...(projectExportResult?.entries.length
99
+ ? { projectIds: projectExportResult.entries.map(({ id }) => id) }
100
+ : {}),
101
+ counts: {
102
+ workflows: allWorkflowsInPackage.length,
103
+ folders: folderExportResult?.entries.length ?? 0,
104
+ credentials: credentialExportResult.entries.length,
105
+ },
106
+ });
107
+ return stream;
54
108
  }
55
109
  async importPackage(request) {
56
110
  return await this.importPipeline.run(request);
57
111
  }
112
+ filterWorkflowsAlreadyInFolders(workflowsInFolders = [], workflowIds) {
113
+ const folderWorkflowIds = new Set(workflowsInFolders.map((entry) => entry.id) ?? []);
114
+ return workflowIds.filter((id) => !folderWorkflowIds.has(id));
115
+ }
58
116
  };
59
117
  exports.N8nPackagesService = N8nPackagesService;
60
118
  exports.N8nPackagesService = N8nPackagesService = __decorate([
61
119
  (0, di_1.Service)(),
62
- __metadata("design:paramtypes", [workflow_exporter_1.WorkflowExporter,
120
+ __metadata("design:paramtypes", [project_exporter_1.ProjectExporter,
121
+ workflow_exporter_1.WorkflowExporter,
122
+ folder_exporter_1.FolderExporter,
63
123
  credential_exporter_1.CredentialExporter,
64
124
  n8n_core_1.InstanceSettings,
65
- import_pipeline_1.ImportPipeline])
125
+ import_pipeline_1.ImportPipeline,
126
+ event_service_1.EventService])
66
127
  ], N8nPackagesService);
67
128
  //# sourceMappingURL=n8n-packages.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"n8n-packages.service.js","sourceRoot":"","sources":["../../../src/modules/n8n-packages/n8n-packages.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAClC,uCAA4C;AAG5C,2CAA0C;AAE1C,8DAA0D;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AC,CAAC,EAAE,CAAC;YAC3E,GAAG,CAAC,sBAAsB,CAAC,MAAM,GAAG,CAAC;gBACpC,CAAC,CAAC,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,sBAAsB,EAAE,EAAE;gBAC3D,CAAC,CAAC,EAAE,CAAC;SACN,CAAC,CAAC;QAEH,MAAM,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QACxE,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAA6B;QAChD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;CACD,CAAA;AA5CY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,YAAO,GAAE;qCAG2B,oCAAgB;QACd,wCAAkB;QACpB,2BAAgB;QAClB,gCAAc;GALpC,kBAAkB,CA4C9B"}
1
+ {"version":3,"file":"n8n-packages.service.js","sourceRoot":"","sources":["../../../src/modules/n8n-packages/n8n-packages.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAClC,uCAA4C;AAG5C,2CAA0C;AAC1C,0DAAsD;AAEtD,8DAA0D;AAC1D,mFAA+E;AAC/E,uEAAmE;AACnE,0EAAsE;AACtE,sEAAkE;AAClE,6EAAyE;AACzE,oEAA+D;AAM/D,gDAAkD;AAClD,4DAAmF;AAG5E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,YACkB,eAAgC,EAChC,gBAAkC,EAClC,cAA8B,EAC9B,kBAAsC,EACtC,gBAAkC,EAClC,cAA8B,EAC9B,YAA0B;QAN1B,oBAAe,GAAf,eAAe,CAAiB;QAChC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,uBAAkB,GAAlB,kBAAkB,CAA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,CAAC;IACf,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAA6B;QAChD,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,+BAA+B,CAAC,qBAAsC,EAAE,EAAE,WAAqB;QAC9F,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QACrF,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/D,CAAC;CACD,CAAA;AAlHY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,YAAO,GAAE;qCAG0B,kCAAe;QACd,oCAAgB;QAClB,gCAAc;QACV,wCAAkB;QACpB,2BAAgB;QAClB,gCAAc;QAChB,4BAAY;GARhC,kBAAkB,CAkH9B"}
@@ -16,9 +16,11 @@ export declare const WorkflowIdPolicy: {
16
16
  };
17
17
  export type WorkflowConflictPolicy = (typeof WorkflowConflictPolicy)[keyof typeof WorkflowConflictPolicy];
18
18
  export type WorkflowIdPolicy = (typeof WorkflowIdPolicy)[keyof typeof WorkflowIdPolicy];
19
- export interface ExportWorkflowsRequest {
19
+ export interface ExportPackageRequest {
20
20
  user: User;
21
- workflowIds: string[];
21
+ workflowIds?: string[];
22
+ folderIds?: string[];
23
+ projectIds?: string[];
22
24
  }
23
25
  export type ImportPackageRequest = {
24
26
  user: User;
@@ -47,6 +49,23 @@ export type ImportAuditCredentialIds = {
47
49
  created: string[];
48
50
  updated: string[];
49
51
  };
52
+ export type ImportPackageEventCounts = {
53
+ workflows: {
54
+ created: number;
55
+ updated: number;
56
+ skipped: number;
57
+ };
58
+ credentials: {
59
+ matched: number;
60
+ created: number;
61
+ requirements: number;
62
+ };
63
+ };
64
+ export type ExportPackageEventCounts = {
65
+ workflows: number;
66
+ folders: number;
67
+ credentials: number;
68
+ };
50
69
  export interface ImportedWorkflowSummary {
51
70
  sourceWorkflowId: string;
52
71
  localId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"n8n-packages.types.js","sourceRoot":"","sources":["../../../src/modules/n8n-packages/n8n-packages.types.ts"],"names":[],"mappings":";;;AAoJA,wCAMC;AAMD,8CAKC;AA7JD,yGAAgG;AAAvF,4IAAA,wBAAwB,OAAA;AAOpB,QAAA,sBAAsB,GAAG;IAErC,UAAU,EAAE,aAAa;IAEzB,IAAI,EAAE,MAAM;IAEZ,IAAI,EAAE,MAAM;CACH,CAAC;AAEE,QAAA,gBAAgB,GAAG;IAE/B,GAAG,EAAE,KAAK;IAEV,MAAM,EAAE,QAAQ;CACP,CAAC;AAuHX,SAAgB,cAAc,CAAC,OAAuC,EAAE;IACvE,OAAO;QACN,SAAS,EAAE,IAAI,GAAG,EAAE;QACpB,WAAW,EAAE,IAAI,GAAG,EAAE;QACtB,GAAG,IAAI;KACP,CAAC;AACH,CAAC;AAMD,SAAgB,iBAAiB,CAAC,QAA+B;IAChE,OAAO;QACN,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC;QACjD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC;KACrD,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"n8n-packages.types.js","sourceRoot":"","sources":["../../../src/modules/n8n-packages/n8n-packages.types.ts"],"names":[],"mappings":";;;AA8KA,wCAMC;AAMD,8CAKC;AAvLD,yGAAgG;AAAvF,4IAAA,wBAAwB,OAAA;AAOpB,QAAA,sBAAsB,GAAG;IAErC,UAAU,EAAE,aAAa;IAEzB,IAAI,EAAE,MAAM;IAEZ,IAAI,EAAE,MAAM;CACH,CAAC;AAEE,QAAA,gBAAgB,GAAG;IAE/B,GAAG,EAAE,KAAK;IAEV,MAAM,EAAE,QAAQ;CACP,CAAC;AAiJX,SAAgB,cAAc,CAAC,OAAuC,EAAE;IACvE,OAAO;QACN,SAAS,EAAE,IAAI,GAAG,EAAE;QACpB,WAAW,EAAE,IAAI,GAAG,EAAE;QACtB,GAAG,IAAI;KACP,CAAC;AACH,CAAC;AAMD,SAAgB,iBAAiB,CAAC,QAA+B;IAChE,OAAO;QACN,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC;QACjD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC;KACrD,CAAC;AACH,CAAC"}
@@ -4,12 +4,12 @@ export declare const manifestEntrySchema: z.ZodObject<{
4
4
  name: z.ZodString;
5
5
  target: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- id: string;
8
7
  name: string;
8
+ id: string;
9
9
  target: string;
10
10
  }, {
11
- id: string;
12
11
  name: string;
12
+ id: string;
13
13
  target: string;
14
14
  }>;
15
15
  export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
@@ -22,12 +22,38 @@ export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
22
22
  name: z.ZodString;
23
23
  target: z.ZodString;
24
24
  }, "strip", z.ZodTypeAny, {
25
+ name: string;
25
26
  id: string;
27
+ target: string;
28
+ }, {
26
29
  name: string;
30
+ id: string;
31
+ target: string;
32
+ }>, "many">>;
33
+ folders: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
+ id: z.ZodString;
35
+ name: z.ZodString;
36
+ target: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ name: string;
39
+ id: string;
27
40
  target: string;
28
41
  }, {
42
+ name: string;
43
+ id: string;
44
+ target: string;
45
+ }>, "many">>;
46
+ projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
+ id: z.ZodString;
48
+ name: z.ZodString;
49
+ target: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ name: string;
29
52
  id: string;
53
+ target: string;
54
+ }, {
30
55
  name: string;
56
+ id: string;
31
57
  target: string;
32
58
  }>, "many">>;
33
59
  credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -35,12 +61,12 @@ export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
35
61
  name: z.ZodString;
36
62
  target: z.ZodString;
37
63
  }, "strip", z.ZodTypeAny, {
38
- id: string;
39
64
  name: string;
65
+ id: string;
40
66
  target: string;
41
67
  }, {
42
- id: string;
43
68
  name: string;
69
+ id: string;
44
70
  target: string;
45
71
  }>, "many">>;
46
72
  requirements: z.ZodOptional<z.ZodObject<{
@@ -50,37 +76,37 @@ export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
50
76
  type: z.ZodString;
51
77
  usedByWorkflows: z.ZodArray<z.ZodString, "many">;
52
78
  }, "strip", z.ZodTypeAny, {
53
- id: string;
54
79
  name: string;
80
+ id: string;
55
81
  type: string;
56
82
  usedByWorkflows: string[];
57
83
  }, {
58
- id: string;
59
84
  name: string;
85
+ id: string;
60
86
  type: string;
61
87
  usedByWorkflows: string[];
62
88
  }>, "many">>, {
63
- id: string;
64
89
  name: string;
90
+ id: string;
65
91
  type: string;
66
92
  usedByWorkflows: string[];
67
93
  }[] | undefined, {
68
- id: string;
69
94
  name: string;
95
+ id: string;
70
96
  type: string;
71
97
  usedByWorkflows: string[];
72
98
  }[] | undefined>;
73
99
  }, "strip", z.ZodTypeAny, {
74
100
  credentials?: {
75
- id: string;
76
101
  name: string;
102
+ id: string;
77
103
  type: string;
78
104
  usedByWorkflows: string[];
79
105
  }[] | undefined;
80
106
  }, {
81
107
  credentials?: {
82
- id: string;
83
108
  name: string;
109
+ id: string;
84
110
  type: string;
85
111
  usedByWorkflows: string[];
86
112
  }[] | undefined;
@@ -90,20 +116,30 @@ export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
90
116
  packageFormatVersion: "1";
91
117
  exportedAt: string;
92
118
  sourceN8nVersion: string;
93
- credentials?: {
119
+ workflows?: {
120
+ name: string;
94
121
  id: string;
122
+ target: string;
123
+ }[] | undefined;
124
+ credentials?: {
95
125
  name: string;
126
+ id: string;
96
127
  target: string;
97
128
  }[] | undefined;
98
- workflows?: {
129
+ projects?: {
130
+ name: string;
99
131
  id: string;
132
+ target: string;
133
+ }[] | undefined;
134
+ folders?: {
100
135
  name: string;
136
+ id: string;
101
137
  target: string;
102
138
  }[] | undefined;
103
139
  requirements?: {
104
140
  credentials?: {
105
- id: string;
106
141
  name: string;
142
+ id: string;
107
143
  type: string;
108
144
  usedByWorkflows: string[];
109
145
  }[] | undefined;
@@ -113,20 +149,30 @@ export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
113
149
  packageFormatVersion: "1";
114
150
  exportedAt: string;
115
151
  sourceN8nVersion: string;
116
- credentials?: {
152
+ workflows?: {
153
+ name: string;
117
154
  id: string;
155
+ target: string;
156
+ }[] | undefined;
157
+ credentials?: {
118
158
  name: string;
159
+ id: string;
119
160
  target: string;
120
161
  }[] | undefined;
121
- workflows?: {
162
+ projects?: {
163
+ name: string;
122
164
  id: string;
165
+ target: string;
166
+ }[] | undefined;
167
+ folders?: {
123
168
  name: string;
169
+ id: string;
124
170
  target: string;
125
171
  }[] | undefined;
126
172
  requirements?: {
127
173
  credentials?: {
128
- id: string;
129
174
  name: string;
175
+ id: string;
130
176
  type: string;
131
177
  usedByWorkflows: string[];
132
178
  }[] | undefined;
@@ -136,20 +182,30 @@ export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
136
182
  packageFormatVersion: "1";
137
183
  exportedAt: string;
138
184
  sourceN8nVersion: string;
139
- credentials?: {
185
+ workflows?: {
186
+ name: string;
140
187
  id: string;
188
+ target: string;
189
+ }[] | undefined;
190
+ credentials?: {
141
191
  name: string;
192
+ id: string;
142
193
  target: string;
143
194
  }[] | undefined;
144
- workflows?: {
195
+ projects?: {
196
+ name: string;
145
197
  id: string;
198
+ target: string;
199
+ }[] | undefined;
200
+ folders?: {
146
201
  name: string;
202
+ id: string;
147
203
  target: string;
148
204
  }[] | undefined;
149
205
  requirements?: {
150
206
  credentials?: {
151
- id: string;
152
207
  name: string;
208
+ id: string;
153
209
  type: string;
154
210
  usedByWorkflows: string[];
155
211
  }[] | undefined;
@@ -159,20 +215,30 @@ export declare const packageManifestSchema: z.ZodEffects<z.ZodObject<{
159
215
  packageFormatVersion: "1";
160
216
  exportedAt: string;
161
217
  sourceN8nVersion: string;
162
- credentials?: {
218
+ workflows?: {
219
+ name: string;
163
220
  id: string;
221
+ target: string;
222
+ }[] | undefined;
223
+ credentials?: {
164
224
  name: string;
225
+ id: string;
165
226
  target: string;
166
227
  }[] | undefined;
167
- workflows?: {
228
+ projects?: {
229
+ name: string;
168
230
  id: string;
231
+ target: string;
232
+ }[] | undefined;
233
+ folders?: {
169
234
  name: string;
235
+ id: string;
170
236
  target: string;
171
237
  }[] | undefined;
172
238
  requirements?: {
173
239
  credentials?: {
174
- id: string;
175
240
  name: string;
241
+ id: string;
176
242
  type: string;
177
243
  usedByWorkflows: string[];
178
244
  }[] | undefined;
@@ -9,6 +9,20 @@ exports.manifestEntrySchema = zod_1.z.object({
9
9
  name: zod_1.z.string(),
10
10
  target: zod_1.z.string().min(1),
11
11
  });
12
+ function assertNoDuplicateIds(entries, label, ctx) {
13
+ if (!entries)
14
+ return;
15
+ const seen = new Set();
16
+ for (const entry of entries) {
17
+ if (seen.has(entry.id)) {
18
+ ctx.addIssue({
19
+ code: zod_1.z.ZodIssueCode.custom,
20
+ message: `Duplicate ${label} id in manifest: ${entry.id}`,
21
+ });
22
+ }
23
+ seen.add(entry.id);
24
+ }
25
+ }
12
26
  exports.packageManifestSchema = zod_1.z
13
27
  .object({
14
28
  packageFormatVersion: zod_1.z.literal(constants_1.FORMAT_VERSION),
@@ -16,21 +30,15 @@ exports.packageManifestSchema = zod_1.z
16
30
  sourceN8nVersion: zod_1.z.string().min(1),
17
31
  sourceId: zod_1.z.string().min(1),
18
32
  workflows: zod_1.z.array(exports.manifestEntrySchema).optional(),
33
+ folders: zod_1.z.array(exports.manifestEntrySchema).optional(),
34
+ projects: zod_1.z.array(exports.manifestEntrySchema).optional(),
19
35
  credentials: zod_1.z.array(exports.manifestEntrySchema).optional(),
20
36
  requirements: requirements_schema_1.packageRequirementsSchema.optional(),
21
37
  })
22
38
  .superRefine((manifest, ctx) => {
23
- if (!manifest.workflows)
24
- return;
25
- const seen = new Set();
26
- for (const entry of manifest.workflows) {
27
- if (seen.has(entry.id)) {
28
- ctx.addIssue({
29
- code: zod_1.z.ZodIssueCode.custom,
30
- message: `Duplicate workflow id in manifest: ${entry.id}`,
31
- });
32
- }
33
- seen.add(entry.id);
34
- }
39
+ assertNoDuplicateIds(manifest.workflows, 'workflow', ctx);
40
+ assertNoDuplicateIds(manifest.folders, 'folder', ctx);
41
+ assertNoDuplicateIds(manifest.projects, 'project', ctx);
42
+ assertNoDuplicateIds(manifest.credentials, 'credential', ctx);
35
43
  });
36
44
  //# sourceMappingURL=manifest.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.schema.js","sourceRoot":"","sources":["../../../../src/modules/n8n-packages/spec/manifest.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,2CAA6C;AAC7C,+DAAkE;AAErD,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzB,CAAC,CAAC;AAEU,QAAA,qBAAqB,GAAG,OAAC;KACpC,MAAM,CAAC;IACP,oBAAoB,EAAE,OAAC,CAAC,OAAO,CAAC,0BAAc,CAAC;IAC/C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAA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;KACD,WAAW,CAAC,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE;IAC9B,oBAAoB,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;IAC1D,oBAAoB,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;IACtD,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;IACxD,oBAAoB,CAAC,QAAQ,CAAC,WAAW,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC"}
@@ -5,13 +5,13 @@ export declare const packageCredentialRequirementSchema: z.ZodObject<{
5
5
  type: z.ZodString;
6
6
  usedByWorkflows: z.ZodArray<z.ZodString, "many">;
7
7
  }, "strip", z.ZodTypeAny, {
8
- id: string;
9
8
  name: string;
9
+ id: string;
10
10
  type: string;
11
11
  usedByWorkflows: string[];
12
12
  }, {
13
- id: string;
14
13
  name: string;
14
+ id: string;
15
15
  type: string;
16
16
  usedByWorkflows: string[];
17
17
  }>;
@@ -22,37 +22,37 @@ export declare const packageRequirementsSchema: z.ZodObject<{
22
22
  type: z.ZodString;
23
23
  usedByWorkflows: z.ZodArray<z.ZodString, "many">;
24
24
  }, "strip", z.ZodTypeAny, {
25
- id: string;
26
25
  name: string;
26
+ id: string;
27
27
  type: string;
28
28
  usedByWorkflows: string[];
29
29
  }, {
30
- id: string;
31
30
  name: string;
31
+ id: string;
32
32
  type: string;
33
33
  usedByWorkflows: string[];
34
34
  }>, "many">>, {
35
- id: string;
36
35
  name: string;
36
+ id: string;
37
37
  type: string;
38
38
  usedByWorkflows: string[];
39
39
  }[] | undefined, {
40
- id: string;
41
40
  name: string;
41
+ id: string;
42
42
  type: string;
43
43
  usedByWorkflows: string[];
44
44
  }[] | undefined>;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  credentials?: {
47
- id: string;
48
47
  name: string;
48
+ id: string;
49
49
  type: string;
50
50
  usedByWorkflows: string[];
51
51
  }[] | undefined;
52
52
  }, {
53
53
  credentials?: {
54
- id: string;
55
54
  name: string;
55
+ id: string;
56
56
  type: string;
57
57
  usedByWorkflows: string[];
58
58
  }[] | undefined;
@@ -4,12 +4,12 @@ export declare const serializedCredentialSchema: z.ZodObject<{
4
4
  name: z.ZodString;
5
5
  type: z.ZodString;
6
6
  }, "strict", z.ZodTypeAny, {
7
- id: string;
8
7
  name: string;
8
+ id: string;
9
9
  type: string;
10
10
  }, {
11
- id: string;
12
11
  name: string;
12
+ id: string;
13
13
  type: string;
14
14
  }>;
15
15
  export type SerializedCredential = z.infer<typeof serializedCredentialSchema>;
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const serializedFolderSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ parentFolderId: z.ZodNullable<z.ZodString>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ name: string;
8
+ id: string;
9
+ parentFolderId: string | null;
10
+ }, {
11
+ name: string;
12
+ id: string;
13
+ parentFolderId: string | null;
14
+ }>;
15
+ export type SerializedFolder = z.infer<typeof serializedFolderSchema>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializedFolderSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.serializedFolderSchema = zod_1.z
6
+ .object({
7
+ id: zod_1.z.string().min(1),
8
+ name: zod_1.z.string().min(1),
9
+ parentFolderId: zod_1.z.string().nullable(),
10
+ })
11
+ .strict();
12
+ //# sourceMappingURL=folder.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder.schema.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/spec/serialized/folder.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,sBAAsB,GAAG,OAAC;KACrC,MAAM,CAAC;IACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAIvB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC;KACD,MAAM,EAAE,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ export declare const serializedProjectSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ name: z.ZodString;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ icon: z.ZodOptional<z.ZodObject<{
7
+ type: z.ZodEnum<["emoji", "icon"]>;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ value: string;
11
+ type: "icon" | "emoji";
12
+ }, {
13
+ value: string;
14
+ type: "icon" | "emoji";
15
+ }>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ name: string;
18
+ id: string;
19
+ description?: string | undefined;
20
+ icon?: {
21
+ value: string;
22
+ type: "icon" | "emoji";
23
+ } | undefined;
24
+ }, {
25
+ name: string;
26
+ id: string;
27
+ description?: string | undefined;
28
+ icon?: {
29
+ value: string;
30
+ type: "icon" | "emoji";
31
+ } | undefined;
32
+ }>;
33
+ export type SerializedProject = z.infer<typeof serializedProjectSchema>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializedProjectSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const projectIconSchema = zod_1.z.object({
6
+ type: zod_1.z.enum(['emoji', 'icon']),
7
+ value: zod_1.z.string(),
8
+ });
9
+ exports.serializedProjectSchema = zod_1.z.object({
10
+ id: zod_1.z.string().min(1),
11
+ name: zod_1.z.string().min(1),
12
+ description: zod_1.z.string().optional(),
13
+ icon: projectIconSchema.optional(),
14
+ });
15
+ //# sourceMappingURL=project.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.schema.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/spec/serialized/project.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,iBAAiB,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}