n8n 2.33.2 → 2.34.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.
- package/dist/active-executions.d.ts +2 -2
- package/dist/active-executions.js +18 -13
- package/dist/active-executions.js.map +1 -1
- package/dist/agent-library-bundle.js +158 -137
- package/dist/auth/auth.service.d.ts +1 -0
- package/dist/auth/auth.service.js +8 -1
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-execution-manager.js +8 -5
- package/dist/chat/chat-execution-manager.js.map +1 -1
- package/dist/commands/base-command.js +3 -2
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/import/workflow.js +1 -1
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/start.d.ts +0 -1
- package/dist/commands/start.js +4 -32
- package/dist/commands/start.js.map +1 -1
- package/dist/constants/oauth2-triggers.d.ts +2 -0
- package/dist/constants/oauth2-triggers.js +11 -0
- package/dist/constants/oauth2-triggers.js.map +1 -0
- package/dist/controllers/api-keys.controller.js +0 -3
- package/dist/controllers/api-keys.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.d.ts +7 -0
- package/dist/controllers/e2e.controller.js +12 -1
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/crash-journal.js +2 -2
- package/dist/crash-journal.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +2 -0
- package/dist/credentials/credentials.controller.js +23 -4
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +5 -1
- package/dist/credentials/credentials.service.js +45 -8
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.d.ts +3 -1
- package/dist/credentials-helper.js +39 -1
- package/dist/credentials-helper.js.map +1 -1
- package/dist/credentials-overwrites.d.ts +2 -1
- package/dist/credentials-overwrites.js +4 -5
- package/dist/credentials-overwrites.js.map +1 -1
- package/dist/environments.ee/variables/variables.service.ee.d.ts +4 -0
- package/dist/environments.ee/variables/variables.service.ee.js +10 -6
- package/dist/environments.ee/variables/variables.service.ee.js.map +1 -1
- package/dist/errors/http-error-serializers.js +10 -1
- package/dist/errors/http-error-serializers.js.map +1 -1
- package/dist/errors/response-errors/workflow-publish-blocked.error.d.ts +6 -0
- package/dist/errors/response-errors/workflow-publish-blocked.error.js +19 -0
- package/dist/errors/response-errors/workflow-publish-blocked.error.js.map +1 -0
- package/dist/errors/webhook-response-too-large.error.d.ts +7 -0
- package/dist/errors/webhook-response-too-large.error.js +11 -0
- package/dist/errors/webhook-response-too-large.error.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +33 -0
- package/dist/eventbus/event-message-classes/event-message-mcp.js +29 -0
- package/dist/eventbus/event-message-classes/event-message-mcp.js.map +1 -0
- package/dist/eventbus/event-message-classes/index.d.ts +6 -3
- package/dist/eventbus/event-message-classes/index.js +7 -1
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/eventbus/message-event-bus/message-event-bus.d.ts +2 -0
- package/dist/eventbus/message-event-bus/message-event-bus.js +4 -0
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js +3 -0
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +18 -1
- package/dist/events/maps/workflow-publication-metrics.event-map.d.ts +5 -0
- package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
- package/dist/events/relays/log-streaming.event-relay.js +33 -0
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.js +10 -0
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +46 -18
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/enqueued-execution-recovery.service.d.ts +21 -0
- package/dist/executions/enqueued-execution-recovery.service.js +79 -0
- package/dist/executions/enqueued-execution-recovery.service.js.map +1 -0
- package/dist/executions/execution-data/execution-data-json-store.d.ts +3 -6
- package/dist/executions/execution-data/execution-data-json-store.js +2 -15
- package/dist/executions/execution-data/execution-data-json-store.js.map +1 -1
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution-recovery.service.js +23 -12
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/external-hooks.d.ts +3 -2
- package/dist/external-hooks.js.map +1 -1
- package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js +4 -0
- package/dist/instance-settings-loader/loaders/sso/oidc.instance-settings-loader.js.map +1 -1
- package/dist/interfaces.d.ts +6 -0
- package/dist/metrics/prometheus/scheduler-metrics.service.d.ts +7 -2
- package/dist/metrics/prometheus/scheduler-metrics.service.js +29 -1
- package/dist/metrics/prometheus/scheduler-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +1 -0
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js +22 -1
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +25 -0
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js +192 -0
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-rating.service.d.ts +23 -0
- package/dist/modules/agent-evals/agent-eval-rating.service.js +124 -0
- package/dist/modules/agent-evals/agent-eval-rating.service.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.d.ts +5 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.js +68 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-runner.service.d.ts +42 -0
- package/dist/modules/agent-evals/agent-eval-runner.service.js +409 -0
- package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval.service.d.ts +31 -0
- package/dist/modules/agent-evals/agent-eval.service.js +138 -0
- package/dist/modules/agent-evals/agent-eval.service.js.map +1 -0
- package/dist/modules/agent-evals/agent-evals-flag-gate.d.ts +8 -0
- package/dist/{services/trigger-auth-identity-seeder-proxy.service.js → modules/agent-evals/agent-evals-flag-gate.js} +18 -16
- package/dist/modules/agent-evals/agent-evals-flag-gate.js.map +1 -0
- package/dist/modules/agent-evals/agent-evals-required-modules.d.ts +2 -0
- package/dist/modules/agent-evals/agent-evals-required-modules.js +12 -0
- package/dist/modules/agent-evals/agent-evals-required-modules.js.map +1 -0
- package/dist/modules/agent-evals/agent-evals.controller.d.ts +33 -0
- package/dist/modules/agent-evals/agent-evals.controller.js +172 -0
- package/dist/modules/agent-evals/agent-evals.controller.js.map +1 -0
- package/dist/modules/agent-evals/agent-evals.module.d.ts +4 -0
- package/dist/modules/agent-evals/agent-evals.module.js +24 -0
- package/dist/modules/agent-evals/agent-evals.module.js.map +1 -0
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.d.ts +37 -0
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.js +87 -0
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.js.map +1 -0
- package/dist/modules/agent-evals/case-generation/dimensions.d.ts +11 -0
- package/dist/modules/agent-evals/case-generation/dimensions.js +54 -0
- package/dist/modules/agent-evals/case-generation/dimensions.js.map +1 -0
- package/dist/modules/agents/adapters/agents-credential-provider.d.ts +3 -1
- package/dist/modules/agents/adapters/agents-credential-provider.js +15 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
- package/dist/modules/agents/agent-chat-attachment.service.d.ts +46 -0
- package/dist/modules/agents/agent-chat-attachment.service.js +144 -0
- package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -0
- package/dist/modules/agents/agent-chat.controller.d.ts +15 -1
- package/dist/modules/agents/agent-chat.controller.js +177 -34
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-config.service.d.ts +10 -3
- package/dist/modules/agents/agent-config.service.js +44 -5
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-custom-tools.service.d.ts +7 -3
- package/dist/modules/agents/agent-custom-tools.service.js +44 -7
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +14 -2
- package/dist/modules/agents/agent-execution-orchestrator.service.js +85 -9
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +4 -1
- package/dist/modules/agents/agent-execution.service.js +7 -2
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +14 -7
- package/dist/modules/agents/agent-integration-persistence.service.js +35 -7
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.d.ts +1 -9
- package/dist/modules/agents/agent-integrations.controller.js +12 -16
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-file-store.d.ts +24 -0
- package/dist/modules/agents/agent-knowledge-file-store.js +100 -0
- package/dist/modules/agents/agent-knowledge-file-store.js.map +1 -0
- package/dist/modules/agents/agent-knowledge-retrieval.d.ts +3 -1
- package/dist/modules/agents/agent-knowledge-retrieval.js +1 -1
- package/dist/modules/agents/agent-knowledge-retrieval.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-sandbox.service.d.ts +4 -3
- package/dist/modules/agents/agent-knowledge-sandbox.service.js +17 -8
- package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-storage.d.ts +0 -1
- package/dist/modules/agents/agent-knowledge-storage.js +0 -10
- package/dist/modules/agents/agent-knowledge-storage.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.service.d.ts +3 -4
- package/dist/modules/agents/agent-knowledge.service.js +25 -27
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
- package/dist/modules/agents/agent-mcp-access.controller.d.ts +14 -0
- package/dist/modules/agents/agent-mcp-access.controller.js +49 -0
- package/dist/modules/agents/agent-mcp-access.controller.js.map +1 -0
- package/dist/modules/agents/agent-mcp-access.service.d.ts +22 -0
- package/dist/modules/agents/agent-mcp-access.service.js +83 -0
- package/dist/modules/agents/agent-mcp-access.service.js.map +1 -0
- package/dist/modules/agents/agent-message-mapper.js +9 -0
- package/dist/modules/agents/agent-message-mapper.js.map +1 -1
- package/dist/modules/agents/agent-model-catalog.service.d.ts +1 -1
- package/dist/modules/agents/agent-model-catalog.service.js +22 -7
- package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
- package/dist/modules/agents/agent-modification-telemetry.service.d.ts +25 -0
- package/dist/modules/agents/agent-modification-telemetry.service.js +119 -0
- package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -0
- package/dist/modules/agents/agent-publish.controller.js +4 -4
- package/dist/modules/agents/agent-publish.controller.js.map +1 -1
- package/dist/modules/agents/agent-publish.service.d.ts +23 -9
- package/dist/modules/agents/agent-publish.service.js +146 -33
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.js +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +6 -2
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +16 -6
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-setup-completion.service.d.ts +19 -0
- package/dist/modules/agents/agent-setup-completion.service.js +79 -0
- package/dist/modules/agents/agent-setup-completion.service.js.map +1 -0
- package/dist/modules/agents/agent-skills.service.d.ts +8 -6
- package/dist/modules/agents/agent-skills.service.js +55 -12
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.js +35 -0
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +7 -5
- package/dist/modules/agents/agent-task.service.js +56 -21
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-tasks.controller.js +18 -6
- package/dist/modules/agents/agent-tasks.controller.js.map +1 -1
- package/dist/modules/agents/agent-test-chat.service.d.ts +3 -1
- package/dist/modules/agents/agent-test-chat.service.js +7 -3
- package/dist/modules/agents/agent-test-chat.service.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +5 -2
- package/dist/modules/agents/agent-validation.service.js +22 -4
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.js +13 -7
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +1 -5
- package/dist/modules/agents/agents-config.controller.js +7 -2
- package/dist/modules/agents/agents-config.controller.js.map +1 -1
- package/dist/modules/agents/agents-skills.controller.js +12 -3
- package/dist/modules/agents/agents-skills.controller.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.js +1 -5
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.js +3 -1
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +1 -1
- package/dist/modules/agents/agents.module.js +10 -11
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +12 -4
- package/dist/modules/agents/agents.service.js +52 -4
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +2 -2
- package/dist/modules/agents/builder/agents-builder-prompts.js +13 -11
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +3 -6
- package/dist/modules/agents/builder/agents-builder-tools.service.js +37 -84
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -7
- package/dist/modules/agents/builder/agents-builder.service.js +27 -34
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-config-telemetry.d.ts +1 -10
- package/dist/modules/agents/builder/builder-config-telemetry.js +0 -64
- package/dist/modules/agents/builder/builder-config-telemetry.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +5 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +23 -2
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/format-preview-context.js +3 -0
- package/dist/modules/agents/builder/format-preview-context.js.map +1 -1
- package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +2 -2
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js +6 -5
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +0 -5
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js +28 -45
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +1 -0
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +88 -8
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +1 -1
- package/dist/modules/agents/builder/prompts/initial-build.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js +8 -15
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +2 -2
- package/dist/modules/agents/builder/skills/external-services.skill.js +10 -11
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
- package/dist/modules/agents/entities/agent-chat-attachment.entity.d.ts +16 -0
- package/dist/modules/agents/entities/agent-chat-attachment.entity.js +70 -0
- package/dist/modules/agents/entities/agent-chat-attachment.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-execution.entity.js +4 -0
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-file.entity.d.ts +3 -2
- package/dist/modules/agents/entities/agent-file.entity.js +6 -3
- package/dist/modules/agents/entities/agent-file.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +2 -0
- package/dist/modules/agents/entities/agent.entity.js +8 -0
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/execution-log/agent-execution-log-store.d.ts +3 -6
- package/dist/modules/agents/execution-log/agent-execution-log-store.js +2 -15
- package/dist/modules/agents/execution-log/agent-execution-log-store.js.map +1 -1
- package/dist/modules/agents/execution-recorder.d.ts +11 -0
- package/dist/modules/agents/execution-recorder.js +69 -0
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +6 -2
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +8 -2
- package/dist/modules/agents/integrations/agent-chat-bridge.js +114 -16
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.d.ts +4 -1
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js +40 -7
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +16 -1
- package/dist/modules/agents/integrations/agent-chat-integration.js +1 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.d.ts +2 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.js +1 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +2 -0
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +27 -12
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.d.ts +7 -0
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.js +1 -0
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.js.map +1 -1
- package/dist/modules/agents/integrations/callback-store.d.ts +4 -1
- package/dist/modules/agents/integrations/callback-store.js +11 -3
- package/dist/modules/agents/integrations/callback-store.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +10 -4
- package/dist/modules/agents/integrations/chat-integration.service.js +108 -35
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +2 -0
- package/dist/modules/agents/integrations/integration-action-executor.js +52 -1
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-context-query-executor.js +2 -1
- package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-definitions.js +20 -0
- package/dist/modules/agents/integrations/integration-tool-definitions.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-descriptions.js +6 -0
- package/dist/modules/agents/integrations/integration-tool-descriptions.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-execution.js +5 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.d.ts +7 -7
- package/dist/modules/agents/integrations/integration-tool-factory.js +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-schema.d.ts +11 -8
- package/dist/modules/agents/integrations/integration-tool-schema.js +7 -7
- package/dist/modules/agents/integrations/integration-tool-schema.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-types.d.ts +3 -1
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.d.ts +8 -6
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +39 -14
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.js +2 -1
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.d.ts +6 -1
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js +36 -24
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +6 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js +3 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.d.ts +15 -2
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js +9 -0
- package/dist/modules/agents/integrations/platforms/slack-tool-definitions.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +4 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +22 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.d.ts +1 -3
- package/dist/modules/agents/integrations/slack-app-setup.service.js +9 -10
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.js +4 -3
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +4 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js +12 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.d.ts +5 -2
- package/dist/modules/agents/json-config/model-config.js +15 -1
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +22 -3
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
- package/dist/modules/agents/register-blob-byte-stores.d.ts +8 -0
- package/dist/modules/agents/register-blob-byte-stores.js +21 -0
- package/dist/modules/agents/register-blob-byte-stores.js.map +1 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +19 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +38 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.d.ts +6 -1
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js +22 -3
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +23 -1
- package/dist/modules/agents/repositories/agent.repository.js +85 -5
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +60 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +12 -3
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +124 -60
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.js +30 -1
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/utils/agent-capabilities.d.ts +14 -0
- package/dist/modules/agents/utils/agent-capabilities.js +35 -0
- package/dist/modules/agents/utils/agent-capabilities.js.map +1 -0
- package/dist/modules/agents/utils/agent-config-hash.d.ts +2 -0
- package/dist/modules/agents/utils/agent-config-hash.js +23 -0
- package/dist/modules/agents/utils/agent-config-hash.js.map +1 -0
- package/dist/modules/agents/utils/agent-execution-counter.d.ts +3 -1
- package/dist/modules/agents/utils/agent-execution-counter.js +4 -1
- package/dist/modules/agents/utils/agent-execution-counter.js.map +1 -1
- package/dist/modules/agents/utils/execution-to-message-mapper.d.ts +1 -1
- package/dist/modules/agents/utils/execution-to-message-mapper.js +33 -16
- package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
- package/dist/modules/agents/utils/inbound-attachments.d.ts +4 -0
- package/dist/modules/agents/utils/inbound-attachments.js +50 -0
- package/dist/modules/agents/utils/inbound-attachments.js.map +1 -0
- package/dist/modules/agents/utils/messages-envelope.js +5 -1
- package/dist/modules/agents/utils/messages-envelope.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +5 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.js +16 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.migration-registry.service.d.ts +10 -0
- package/dist/modules/breaking-changes/breaking-changes.migration-registry.service.js +42 -0
- package/dist/modules/breaking-changes/breaking-changes.migration-registry.service.js.map +1 -0
- package/dist/modules/breaking-changes/breaking-changes.migration.service.d.ts +31 -0
- package/dist/modules/breaking-changes/breaking-changes.migration.service.js +120 -0
- package/dist/modules/breaking-changes/breaking-changes.migration.service.js.map +1 -0
- package/dist/modules/breaking-changes/breaking-changes.module.js +2 -0
- package/dist/modules/breaking-changes/breaking-changes.module.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.service.d.ts +3 -2
- package/dist/modules/breaking-changes/breaking-changes.service.js +9 -13
- package/dist/modules/breaking-changes/breaking-changes.service.js.map +1 -1
- package/dist/modules/breaking-changes/group-nodes-by-type.d.ts +2 -0
- package/dist/modules/breaking-changes/group-nodes-by-type.js +15 -0
- package/dist/modules/breaking-changes/group-nodes-by-type.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js +24 -0
- package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/index.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/index.js +6 -0
- package/dist/modules/breaking-changes/migrations/index.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-migration.d.ts +10 -0
- package/dist/modules/breaking-changes/migrations/node-migration.js +3 -0
- package/dist/modules/breaking-changes/migrations/node-migration.js.map +1 -0
- package/dist/modules/breaking-changes/rules/index.d.ts +2 -0
- package/dist/modules/breaking-changes/rules/index.js +2 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/ai-transform-deprecated.rule.d.ts +11 -0
- package/dist/modules/breaking-changes/rules/v3/ai-transform-deprecated.rule.js +53 -0
- package/dist/modules/breaking-changes/rules/v3/ai-transform-deprecated.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-source-modes.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-source-modes.rule.js +62 -0
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-source-modes.rule.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub-execution.service.js +2 -1
- package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +0 -3
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.d.ts +4 -2
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js +7 -4
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +2 -4
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +27 -20
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.d.ts +24 -6
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js +184 -43
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js.map +1 -1
- package/dist/modules/insights/insights-collection.service.js +3 -0
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/insights/insights-compaction.service.js +2 -2
- package/dist/modules/insights/insights-compaction.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.js +16 -7
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +6 -1
- package/dist/modules/instance-ai/eval/execution.service.js +45 -3
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/ledger-snapshot.d.ts +1 -0
- package/dist/modules/instance-ai/eval/ledger-snapshot.js +11 -0
- package/dist/modules/instance-ai/eval/ledger-snapshot.js.map +1 -0
- package/dist/modules/instance-ai/eval/llm-wire-server.js +26 -2
- package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.d.ts +3 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +60 -2
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-quirks.js +5 -4
- package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js +11 -2
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js.map +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.d.ts +2 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js +28 -12
- package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
- package/dist/modules/instance-ai/eval/provider-shapes.js +101 -8
- package/dist/modules/instance-ai/eval/provider-shapes.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.d.ts +3 -1
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js +8 -1
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +2 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js +9 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js +3 -1
- package/dist/modules/instance-ai/event-bus/interrupted-run-sweeper.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.js +2 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.d.ts +9 -2
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.js +25 -11
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +33 -21
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.js +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.js +160 -38
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/node-definition-resolver.js +1 -5
- package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +2 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +20 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +5 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +1 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +3 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +2 -0
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +7 -2
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -1
- package/dist/modules/ldap.ee/helpers.ee.d.ts +2 -1
- package/dist/modules/ldap.ee/helpers.ee.js +11 -2
- package/dist/modules/ldap.ee/helpers.ee.js.map +1 -1
- package/dist/modules/ldap.ee/ldap.errors.d.ts +5 -0
- package/dist/modules/ldap.ee/ldap.errors.js +11 -0
- package/dist/modules/ldap.ee/ldap.errors.js.map +1 -0
- package/dist/modules/ldap.ee/ldap.service.ee.d.ts +2 -2
- package/dist/modules/ldap.ee/ldap.service.ee.js +29 -7
- package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.d.ts +1 -1
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js +10 -2
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.d.ts +4 -2
- package/dist/modules/mcp/mcp-protected-resource.js +17 -5
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp-scopes.d.ts +1 -0
- package/dist/modules/mcp/mcp-scopes.js +35 -7
- package/dist/modules/mcp/mcp-scopes.js.map +1 -1
- package/dist/modules/mcp/mcp-tool-availability.d.ts +3 -0
- package/dist/modules/mcp/mcp-tool-availability.js +7 -0
- package/dist/modules/mcp/mcp-tool-availability.js.map +1 -0
- package/dist/modules/mcp/mcp.constants.d.ts +1 -0
- package/dist/modules/mcp/mcp.constants.js +2 -1
- package/dist/modules/mcp/mcp.constants.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.d.ts +1 -1
- package/dist/modules/mcp/mcp.controller.js +10 -18
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +6 -2
- package/dist/modules/mcp/mcp.service.js +72 -4
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.settings.controller.d.ts +4 -2
- package/dist/modules/mcp/mcp.settings.controller.js +6 -3
- package/dist/modules/mcp/mcp.settings.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +2 -1
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.d.ts +9 -0
- package/dist/modules/mcp/tools/agents/agent-reference.js +169 -0
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -0
- package/dist/modules/mcp/tools/agents/agent-tools.service.d.ts +87 -0
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +1157 -0
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -0
- package/dist/modules/mcp/tools/get-execution.tool.js +4 -4
- package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +7 -4
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-version.tool.js +1 -1
- package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -1
- package/dist/modules/mcp/tools/list-credentials.tool.js +1 -1
- package/dist/modules/mcp/tools/list-credentials.tool.js.map +1 -1
- package/dist/modules/mcp/tools/list-tags.tool.js +3 -3
- package/dist/modules/mcp/tools/list-tags.tool.js.map +1 -1
- package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js +3 -3
- package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js.map +1 -1
- package/dist/modules/mcp/tools/publish-workflow.tool.js +14 -2
- package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +381 -0
- package/dist/modules/mcp/tools/schemas.js +25 -1
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/search-executions.tool.js +3 -3
- package/dist/modules/mcp/tools/search-executions.tool.js.map +1 -1
- package/dist/modules/mcp/tools/search-projects.tool.js +1 -1
- package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
- package/dist/modules/mcp/tools/test-workflow.tool.js +2 -2
- package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/webhook-utils.d.ts +1 -1
- package/dist/modules/mcp/tools/webhook-utils.js +5 -1
- package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +12 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js +55 -29
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-sdk-reference.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.d.ts +1 -0
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +27 -3
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.d.ts +10 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +14 -4
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +119 -15
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +15 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +46 -18
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-search.d.ts +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js +8 -6
- package/dist/modules/mcp-registry/registry/mcp-registry-search.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js +3 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js +3 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +11 -0
- package/dist/modules/n8n-packages/engine/import-gates.js +34 -0
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +17 -8
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +42 -24
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +16 -4
- package/dist/modules/n8n-packages/engine/import-result.js +56 -20
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +4 -2
- package/dist/modules/n8n-packages/engine/import-telemetry.js +25 -5
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +4 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/package-layout.d.ts +1 -0
- package/dist/modules/n8n-packages/engine/package-layout.js +9 -0
- package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.d.ts +3 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +68 -25
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.d.ts +3 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +54 -16
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project-import.types.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/project/project-importer.js +9 -1
- package/dist/modules/n8n-packages/entities/project/project-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +2 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project.serializer.js +3 -0
- package/dist/modules/n8n-packages/entities/project/project.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/reference.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/reference.js +3 -0
- package/dist/modules/n8n-packages/entities/reference.js.map +1 -0
- package/dist/modules/n8n-packages/entities/requirements.types.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/requirements.types.js +1 -0
- package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.d.ts +24 -0
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js +69 -0
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js.map +1 -0
- package/dist/modules/n8n-packages/entities/tag/tag-importer.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js +142 -0
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/tag/tag-requirements.extractor.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/tag/tag-requirements.extractor.js +23 -0
- package/dist/modules/n8n-packages/entities/tag/tag-requirements.extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.d.ts +15 -0
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +45 -0
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/tag/tag.types.d.ts +48 -0
- package/dist/modules/n8n-packages/entities/tag/tag.types.js +10 -0
- package/dist/modules/n8n-packages/entities/tag/tag.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable-importer.d.ts +8 -2
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js +82 -6
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js +9 -4
- package/dist/modules/n8n-packages/entities/variable/variable-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +31 -1
- package/dist/modules/n8n-packages/entities/variable/variable.types.js +36 -0
- package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +4 -3
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +4 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +10 -6
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/references/caller-ids.reference.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/workflow/references/caller-ids.reference.js +20 -0
- package/dist/modules/n8n-packages/entities/workflow/references/caller-ids.reference.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/references/error-workflow.reference.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/workflow/references/error-workflow.reference.js +25 -0
- package/dist/modules/n8n-packages/entities/workflow/references/error-workflow.reference.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.js +16 -0
- package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js +55 -0
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/references/workflow-references.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/workflow/references/workflow-references.js +12 -0
- package/dist/modules/n8n-packages/entities/workflow/references/workflow-references.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js +45 -0
- package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.d.ts +2 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js +7 -5
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +14 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +5 -6
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +25 -19
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +11 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +17 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.d.ts +7 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js +28 -7
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +4 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +11 -5
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +3 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +6 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +32 -9
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +49 -4
- package/dist/modules/n8n-packages/n8n-packages.types.js +15 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +95 -11
- package/dist/modules/n8n-packages/spec/manifest.schema.js +2 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +52 -7
- package/dist/modules/n8n-packages/spec/requirements.schema.js +10 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/project.schema.d.ts +18 -0
- package/dist/modules/n8n-packages/spec/serialized/project.schema.js +5 -0
- package/dist/modules/n8n-packages/spec/serialized/project.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/tag.schema.d.ts +12 -0
- package/dist/modules/n8n-packages/spec/serialized/tag.schema.js +11 -0
- package/dist/modules/n8n-packages/spec/serialized/tag.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +3 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
- package/dist/modules/oauth-server/database/entities/oauth-client.entity.d.ts +1 -0
- package/dist/modules/oauth-server/database/entities/oauth-client.entity.js +4 -0
- package/dist/modules/oauth-server/database/entities/oauth-client.entity.js.map +1 -1
- package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.d.ts +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.js +13 -1
- package/dist/modules/oauth-server/database/repositories/oauth-user-consent.repository.js.map +1 -1
- package/dist/modules/oauth-server/oauth-flow.service.d.ts +17 -0
- package/dist/modules/oauth-server/oauth-flow.service.js +100 -0
- package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -0
- package/dist/modules/oauth-server/oauth-server.module.js +5 -5
- package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
- package/dist/modules/oauth-server/oauth-server.service.d.ts +8 -2
- package/dist/modules/oauth-server/oauth-server.service.js +64 -11
- package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth.controller.js +3 -1
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.d.ts +38 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +95 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.d.ts +37 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +88 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/index.d.ts +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/index.js +20 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/index.js.map +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +5 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +16 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.d.ts +19 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +107 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.d.ts +21 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js +109 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -0
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +0 -1
- package/dist/modules/otel/otel-lifecycle-handler.js +1 -4
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +4 -0
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +102 -20
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-deletion-checker.ee.d.ts +3 -1
- package/dist/modules/provisioning.ee/role-deletion-checker.ee.js +13 -5
- package/dist/modules/provisioning.ee/role-deletion-checker.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +7 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +33 -7
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +8 -0
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +4 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js +5 -2
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/types/import-result.d.ts +2 -0
- package/dist/modules/sso-oidc/constants.d.ts +2 -0
- package/dist/modules/sso-oidc/constants.js +3 -1
- package/dist/modules/sso-oidc/constants.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +4 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.js +54 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.d.ts +9 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js +44 -15
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/sso-saml/saml-helpers.js +2 -3
- package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
- package/dist/modules/sso-saml/saml.service.ee.js +2 -3
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.d.ts +10 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js +54 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +31 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +219 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.d.ts +9 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.js +40 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +19 -18
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +163 -155
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +6 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +29 -4
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.d.ts +3 -0
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js +12 -0
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +4 -0
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
- package/dist/node-catalog/node-catalog.service.d.ts +1 -0
- package/dist/node-catalog/node-catalog.service.js +11 -3
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/permissions.ee/project-scope.service.d.ts +9 -0
- package/dist/permissions.ee/project-scope.service.js +34 -0
- package/dist/permissions.ee/project-scope.service.js.map +1 -0
- package/dist/public-api/types.d.ts +11 -1
- package/dist/public-api/v1/handlers/ldap/ldap.handler.d.ts +10 -0
- package/dist/public-api/v1/handlers/ldap/ldap.handler.js +76 -0
- package/dist/public-api/v1/handlers/ldap/ldap.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/ldap/ldap.mapper.d.ts +17 -0
- package/dist/public-api/v1/handlers/ldap/ldap.mapper.js +35 -0
- package/dist/public-api/v1/handlers/ldap/ldap.mapper.js.map +1 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +1 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +4 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.handler.d.ts +8 -0
- package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.handler.js +38 -0
- package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.mapper.d.ts +5 -0
- package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.mapper.js +12 -0
- package/dist/public-api/v1/handlers/sso-oidc/sso-oidc.mapper.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +789 -9
- package/dist/push/index.js +1 -1
- package/dist/push/index.js.map +1 -1
- package/dist/push/origin-validator.d.ts +2 -1
- package/dist/push/origin-validator.js +15 -2
- package/dist/push/origin-validator.js.map +1 -1
- package/dist/push/sse.push.js +2 -0
- package/dist/push/sse.push.js.map +1 -1
- package/dist/scaling/job-processor.d.ts +3 -2
- package/dist/scaling/job-processor.js +17 -14
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/scaling.service.d.ts +3 -2
- package/dist/scaling/scaling.service.js +19 -16
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scaling/webhook-response-relay.d.ts +34 -0
- package/dist/scaling/webhook-response-relay.js +323 -0
- package/dist/scaling/webhook-response-relay.js.map +1 -0
- package/dist/scheduling/durable-job-provisioner.d.ts +2 -1
- package/dist/scheduling/durable-job-provisioner.js +21 -3
- package/dist/scheduling/durable-job-provisioner.js.map +1 -1
- package/dist/scheduling/durable-scheduler.js +22 -0
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +2 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +11 -4
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
- package/dist/security-audit/security-audit.service.js +1 -1
- package/dist/security-audit/security-audit.service.js.map +1 -1
- package/dist/services/ai-gateway.service.d.ts +3 -0
- package/dist/services/ai-gateway.service.js +16 -0
- package/dist/services/ai-gateway.service.js.map +1 -1
- package/dist/services/credentials-tester.service.d.ts +7 -0
- package/dist/services/credentials-tester.service.js +69 -9
- package/dist/services/credentials-tester.service.js.map +1 -1
- package/dist/services/frontend.service.js +14 -0
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/oauth2-flow-proxy.service.d.ts +11 -0
- package/dist/services/oauth2-flow-proxy.service.js +34 -0
- package/dist/services/oauth2-flow-proxy.service.js.map +1 -0
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
- package/dist/services/project.service.ee.d.ts +5 -0
- package/dist/services/project.service.ee.js +15 -1
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/protected-resource.registry.d.ts +2 -1
- package/dist/services/protected-resource.registry.js +7 -2
- package/dist/services/protected-resource.registry.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.js +3 -2
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/tag.service.d.ts +2 -1
- package/dist/services/tag.service.js +14 -31
- package/dist/services/tag.service.js.map +1 -1
- package/dist/sso.ee/sso-helpers.d.ts +1 -0
- package/dist/sso.ee/sso-helpers.js +8 -0
- package/dist/sso.ee/sso-helpers.js.map +1 -1
- package/dist/task-runners/errors/task-request-timeout.error.d.ts +2 -2
- package/dist/task-runners/errors/task-request-timeout.error.js +3 -3
- package/dist/task-runners/errors/task-request-timeout.error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.d.ts +4 -0
- package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.js +11 -0
- package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.js.map +1 -0
- package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.d.ts +4 -0
- package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.js +11 -0
- package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.js.map +1 -0
- package/dist/task-runners/task-broker/task-broker-ws-server.d.ts +9 -1
- package/dist/task-runners/task-broker/task-broker-ws-server.js +61 -32
- package/dist/task-runners/task-broker/task-broker-ws-server.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker.service.d.ts +18 -1
- package/dist/task-runners/task-broker/task-broker.service.js +134 -63
- package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
- package/dist/task-runners/task-managers/task-requester.d.ts +1 -0
- package/dist/task-runners/task-managers/task-requester.js +4 -1
- package/dist/task-runners/task-managers/task-requester.js.map +1 -1
- package/dist/task-runners/task-runner-module.js +2 -2
- package/dist/task-runners/task-runner-module.js.map +1 -1
- package/dist/telemetry/index.d.ts +3 -1
- package/dist/telemetry/index.js +15 -8
- package/dist/telemetry/index.js.map +1 -1
- package/dist/utils/ai-service-retry.js +2 -4
- package/dist/utils/ai-service-retry.js.map +1 -1
- package/dist/wait-tracker.js +6 -2
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/test-webhooks.d.ts +1 -0
- package/dist/webhooks/test-webhooks.js +14 -9
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +69 -16
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook.service.d.ts +4 -0
- package/dist/webhooks/webhook.service.js +40 -12
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-execute-additional-data.js +2 -0
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +4 -1
- package/dist/workflow-helpers.js +22 -0
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +2 -1
- package/dist/workflow-runner.js +4 -4
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/publication/published-workflow-trigger-deactivator.d.ts +11 -3
- package/dist/workflows/publication/published-workflow-trigger-deactivator.js +66 -23
- package/dist/workflows/publication/published-workflow-trigger-deactivator.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-lifecycle-lock.d.ts +0 -5
- package/dist/workflows/publication/workflow-publication-lifecycle-lock.js +0 -44
- package/dist/workflows/publication/workflow-publication-lifecycle-lock.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js +3 -0
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-reconciler.service.d.ts +4 -2
- package/dist/workflows/publication/workflow-publication-reconciler.service.js +43 -30
- package/dist/workflows/publication/workflow-publication-reconciler.service.js.map +1 -1
- package/dist/workflows/triggers/trigger-activation-retry.js +2 -1
- package/dist/workflows/triggers/trigger-activation-retry.js.map +1 -1
- package/dist/workflows/triggers/workflow-trigger-activator.js +8 -1
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-finder.service.js +3 -1
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-publish-guard-proxy.service.d.ts +8 -0
- package/dist/workflows/workflow-publish-guard-proxy.service.js +26 -0
- package/dist/workflows/workflow-publish-guard-proxy.service.js.map +1 -0
- package/dist/workflows/workflow-validation.service.d.ts +1 -0
- package/dist/workflows/workflow-validation.service.js +23 -8
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +7 -3
- package/dist/workflows/workflow.service.ee.d.ts +4 -1
- package/dist/workflows/workflow.service.js +75 -30
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +4 -1
- package/package.json +39 -39
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.d.ts +0 -2
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.js +0 -19
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/index.js.map +0 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.d.ts +0 -20
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.js +0 -12
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/metadata.js.map +0 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.d.ts +0 -12
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js +0 -85
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js.map +0 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.d.ts +0 -10
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.js +0 -77
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-seeder.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.d.ts +0 -2
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js +0 -23
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-id.js.map +0 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.d.ts +0 -7
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js +0 -41
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirements.extractor.js.map +0 -1
- package/dist/services/trigger-auth-identity-seeder-proxy.service.d.ts +0 -10
- package/dist/services/trigger-auth-identity-seeder-proxy.service.js.map +0 -1
- package/dist/workflows/publication/published-workflow-enqueuer.d.ts +0 -13
- package/dist/workflows/publication/published-workflow-enqueuer.js +0 -50
- package/dist/workflows/publication/published-workflow-enqueuer.js.map +0 -1
|
@@ -18,16 +18,46 @@ export interface VariableExportResult {
|
|
|
18
18
|
entries: ManifestEntry[];
|
|
19
19
|
requirements: PackageVariableRequirement[];
|
|
20
20
|
}
|
|
21
|
+
export type PlacedVariableRequirement = PackageVariableRequirement & {
|
|
22
|
+
globalPlacement: boolean;
|
|
23
|
+
};
|
|
21
24
|
export interface VariableImportRequest {
|
|
22
|
-
requirements:
|
|
25
|
+
requirements: PlacedVariableRequirement[] | undefined;
|
|
23
26
|
missingMode: VariableMissingMode;
|
|
24
27
|
}
|
|
25
28
|
export interface VariableResolutionFailure {
|
|
26
29
|
name: string;
|
|
27
30
|
usedByWorkflows: string[];
|
|
28
31
|
}
|
|
32
|
+
export interface VariableCreation {
|
|
33
|
+
name: string;
|
|
34
|
+
projectId?: string;
|
|
35
|
+
usedByWorkflows: string[];
|
|
36
|
+
}
|
|
37
|
+
export interface VariableLimitFailure {
|
|
38
|
+
limit: number;
|
|
39
|
+
remaining: number;
|
|
40
|
+
requested: number;
|
|
41
|
+
names: string[];
|
|
42
|
+
usedByWorkflows: string[];
|
|
43
|
+
}
|
|
29
44
|
export declare function createFailure(requirement: PackageVariableRequirement): VariableResolutionFailure;
|
|
45
|
+
export declare function destinationKey(destination: {
|
|
46
|
+
name: string;
|
|
47
|
+
projectId?: string;
|
|
48
|
+
}): string;
|
|
49
|
+
export declare function dedupeCreationsByDestination(creations: VariableCreation[]): VariableCreation[];
|
|
50
|
+
export declare function computeVariableLimitFailure(creations: VariableCreation[], quota: {
|
|
51
|
+
limit: number;
|
|
52
|
+
remaining: number;
|
|
53
|
+
} | null): VariableLimitFailure | undefined;
|
|
30
54
|
export interface VariableImportPlan {
|
|
31
55
|
matched: string[];
|
|
32
56
|
missing: VariableResolutionFailure[];
|
|
57
|
+
creations: VariableCreation[];
|
|
58
|
+
}
|
|
59
|
+
export interface VariableApplyResult {
|
|
60
|
+
stubbed: string[];
|
|
61
|
+
skippedExisting: string[];
|
|
62
|
+
createdCount: number;
|
|
33
63
|
}
|
|
@@ -1,10 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createFailure = createFailure;
|
|
4
|
+
exports.destinationKey = destinationKey;
|
|
5
|
+
exports.dedupeCreationsByDestination = dedupeCreationsByDestination;
|
|
6
|
+
exports.computeVariableLimitFailure = computeVariableLimitFailure;
|
|
4
7
|
function createFailure(requirement) {
|
|
5
8
|
return {
|
|
6
9
|
name: requirement.name,
|
|
7
10
|
usedByWorkflows: [...new Set(requirement.usedByWorkflows)].sort(),
|
|
8
11
|
};
|
|
9
12
|
}
|
|
13
|
+
function destinationKey(destination) {
|
|
14
|
+
return destination.projectId
|
|
15
|
+
? `project:${destination.projectId}:${destination.name}`
|
|
16
|
+
: `global:${destination.name}`;
|
|
17
|
+
}
|
|
18
|
+
function dedupeCreationsByDestination(creations) {
|
|
19
|
+
const byDestination = new Map();
|
|
20
|
+
for (const creation of creations) {
|
|
21
|
+
const key = destinationKey(creation);
|
|
22
|
+
const existing = byDestination.get(key);
|
|
23
|
+
if (!existing) {
|
|
24
|
+
byDestination.set(key, { ...creation, usedByWorkflows: [...creation.usedByWorkflows] });
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
existing.usedByWorkflows = [
|
|
28
|
+
...new Set([...existing.usedByWorkflows, ...creation.usedByWorkflows]),
|
|
29
|
+
].sort();
|
|
30
|
+
}
|
|
31
|
+
return [...byDestination.values()];
|
|
32
|
+
}
|
|
33
|
+
function computeVariableLimitFailure(creations, quota) {
|
|
34
|
+
if (quota === null || creations.length === 0)
|
|
35
|
+
return undefined;
|
|
36
|
+
if (creations.length <= quota.remaining)
|
|
37
|
+
return undefined;
|
|
38
|
+
return {
|
|
39
|
+
limit: quota.limit,
|
|
40
|
+
remaining: quota.remaining,
|
|
41
|
+
requested: creations.length,
|
|
42
|
+
names: [...new Set(creations.map((creation) => creation.name))].sort(),
|
|
43
|
+
usedByWorkflows: [...new Set(creations.flatMap((creation) => creation.usedByWorkflows))].sort(),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
10
46
|
//# sourceMappingURL=variable.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variable.types.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/variable/variable.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variable.types.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/variable/variable.types.ts"],"names":[],"mappings":";;;;;;AAsDA,uBAA8B,WAAuC;IACpE,OAAO;QACN,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,eAAe,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,EAAE;KACjE,CAAC;AACH,CAAC;AAED,wBAA+B,WAAiD;IAC/E,OAAO,WAAW,CAAC,SAAS;QAC3B,CAAC,CAAC,WAAW,WAAW,CAAC,SAAS,IAAI,WAAW,CAAC,IAAI,EAAE;QACxD,CAAC,CAAC,UAAU,WAAW,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,sCAA6C,SAA6B;IACzE,MAAM,aAAa,GAAG,IAAI,GAAG,EAA4B,CAAC;IAC1D,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QAClC,MAAM,GAAG,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,EAAE,CAAC;YAEf,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,GAAG,QAAQ,EAAE,eAAe,EAAE,CAAC,GAAG,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;YACxF,SAAS;QACV,CAAC;QACD,QAAQ,CAAC,eAAe,GAAG;YAC1B,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,eAAe,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;SACtE,CAAC,IAAI,EAAE,CAAC;IACV,CAAC;IACD,OAAO,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC;AACpC,CAAC;AAGD,qCACC,SAA6B,EAC7B,KAAkD;IAElD,IAAI,KAAK,KAAK,IAAI,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC/D,IAAI,SAAS,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1D,OAAO;QACN,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,SAAS,EAAE,SAAS,CAAC,MAAM;QAC3B,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;QACtE,eAAe,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;KAC/F,CAAC;AACH,CAAC"}
|
|
@@ -26,6 +26,7 @@ export declare class AutoIncludedWorkflowResolver {
|
|
|
26
26
|
topLevelWorkflowIds: string[];
|
|
27
27
|
folderWorkflowIds: string[];
|
|
28
28
|
projectWorkflowIds: string[];
|
|
29
|
+
includeTags: boolean;
|
|
29
30
|
}): Promise<AutoIncludedWorkflowResolution>;
|
|
30
31
|
private seedExportedOrigins;
|
|
31
32
|
private propagateOrigins;
|
|
@@ -36,6 +36,7 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
|
|
|
36
36
|
user: options.user,
|
|
37
37
|
workflowIds: autoIncludedWorkflowIds,
|
|
38
38
|
originsByWorkflowId,
|
|
39
|
+
includeTags: options.includeTags,
|
|
39
40
|
});
|
|
40
41
|
return { autoIncludedWorkflows };
|
|
41
42
|
}
|
|
@@ -86,7 +87,7 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
|
|
|
86
87
|
async buildAutoIncludedWorkflows(options) {
|
|
87
88
|
if (options.workflowIds.length === 0)
|
|
88
89
|
return [];
|
|
89
|
-
const workflows = await this.findExportableWorkflows(options.user, options.workflowIds);
|
|
90
|
+
const workflows = await this.findExportableWorkflows(options.user, options.workflowIds, options.includeTags);
|
|
90
91
|
const workflowsById = new Map(workflows.map((workflow) => [workflow.id, workflow]));
|
|
91
92
|
const ownersByWorkflowId = await this.sharedWorkflowRepository.findOwnerProjectsByWorkflowIds(options.workflowIds);
|
|
92
93
|
const placementsByWorkflowId = new Map(options.workflowIds.map((workflowId) => [
|
|
@@ -136,8 +137,8 @@ let AutoIncludedWorkflowResolver = class AutoIncludedWorkflowResolver {
|
|
|
136
137
|
return 'folder';
|
|
137
138
|
return 'top-level';
|
|
138
139
|
}
|
|
139
|
-
async findExportableWorkflows(user, workflowIds) {
|
|
140
|
-
const workflows = await this.workflowFinder.findWorkflowsByIdsForUser(workflowIds, user, ['workflow:export'], { includeParentFolder: true });
|
|
140
|
+
async findExportableWorkflows(user, workflowIds, includeTags) {
|
|
141
|
+
const workflows = await this.workflowFinder.findWorkflowsByIdsForUser(workflowIds, user, ['workflow:export'], { includeParentFolder: true, includeTags });
|
|
141
142
|
await (0, package_export_errors_1.assertEveryRequestedEntityAccessible)('workflow', workflowIds, workflows, async (ids) => await this.workflowFinder.findExistingWorkflowIds(ids));
|
|
142
143
|
return workflows;
|
|
143
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-included-workflow-resolver.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAmD;AACnD,gCAAkC;AAElC,4EAAuE;AACvE,sEAA+D;AAC/D,iFAA4E;AAE5E,oEAGkC;AAiB3B,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACxC,YACkB,cAAqC,EACrC,YAAiC,EACjC,cAA8B,EAC9B,wBAAkD;8BAHlD,cAAc;4BACd,YAAY;8BACZ,cAAc;wCACd,wBAAwB;IACvC,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"auto-included-workflow-resolver.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAmD;AACnD,gCAAkC;AAElC,4EAAuE;AACvE,sEAA+D;AAC/D,iFAA4E;AAE5E,oEAGkC;AAiB3B,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACxC,YACkB,cAAqC,EACrC,YAAiC,EACjC,cAA8B,EAC9B,wBAAkD;8BAHlD,cAAc;4BACd,YAAY;8BACZ,cAAc;wCACd,wBAAwB;IACvC,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,OAOb;QACA,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC;YACpD,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;YAChD,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,kBAAkB,EAAE,OAAO,CAAC,kBAAkB;SAC9C,CAAC,CAAC;QACH,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC;QAEhE,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;QAEjE,MAAM,uBAAuB,GAAG,CAAC,GAAG,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CACrE,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAC,CACpD,CAAC;QAEF,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC;YACnE,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,uBAAuB;YACpC,mBAAmB;YACnB,WAAW,EAAE,OAAO,CAAC,WAAW;SAChC,CAAC,CAAC;QAEH,OA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AAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aAC5B,MAAM,CAAC,CAAC,MAAM,EAAoB,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,EAC5D,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CACjE,CAAC;QAEF,OAAO,sBAAsB,CAAC;IAC/B,CAAC;IAEO,KAAK,CAAC,sBAAsB,CACnC,IAAU,EACV,UAAoB;QAEpB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE;YACrF,gBAAgB;SAChB,CAAC,CAAC;QAEH,MAAM,IAAA,4DAAoC,EACzC,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,CACpE,CAAC;QAEF,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;CACD,CAAA;;uCArQY,4BAA4B;IADxC,IAAA,YAAO,GAAE;qCAGyB,+CAAqB,EACvB,2CAAmB,EACjB,mCAAc,EACJ,6BAAwB;GALxD,4BAA4B,CAqQxC"}
|
|
@@ -7,6 +7,7 @@ import { DataTableRequirementsExtractor } from '../data-table/data-table-require
|
|
|
7
7
|
import { FolderSerializer } from '../folder/folder.serializer';
|
|
8
8
|
import { ProjectSerializer } from '../project/project.serializer';
|
|
9
9
|
import type { WorkflowExportRequirements } from '../requirements.types';
|
|
10
|
+
import { TagRequirementsExtractor } from '../tag/tag-requirements.extractor';
|
|
10
11
|
import { VariableRequirementsExtractor } from '../variable/variable-requirements.extractor';
|
|
11
12
|
export interface AutoIncludedWorkflowExportRequest {
|
|
12
13
|
writer: PackageWriter;
|
|
@@ -14,6 +15,7 @@ export interface AutoIncludedWorkflowExportRequest {
|
|
|
14
15
|
existingWorkflowEntries: ManifestEntry[];
|
|
15
16
|
existingFolderEntries: ManifestEntry[];
|
|
16
17
|
existingProjectEntries: ManifestEntry[];
|
|
18
|
+
includeTags: boolean;
|
|
17
19
|
projectTargetsById?: Map<string, string>;
|
|
18
20
|
}
|
|
19
21
|
export interface AutoIncludedWorkflowExportResult {
|
|
@@ -30,7 +32,8 @@ export declare class AutoIncludedWorkflowExporter {
|
|
|
30
32
|
private readonly credentialRequirementsExtractor;
|
|
31
33
|
private readonly dataTableRequirementsExtractor;
|
|
32
34
|
private readonly variableRequirementsExtractor;
|
|
33
|
-
|
|
35
|
+
private readonly tagRequirementsExtractor;
|
|
36
|
+
constructor(workflowSerializer: WorkflowSerializer, folderSerializer: FolderSerializer, projectSerializer: ProjectSerializer, credentialRequirementsExtractor: CredentialRequirementsExtractor, dataTableRequirementsExtractor: DataTableRequirementsExtractor, variableRequirementsExtractor: VariableRequirementsExtractor, tagRequirementsExtractor: TagRequirementsExtractor);
|
|
34
37
|
export(request: AutoIncludedWorkflowExportRequest): AutoIncludedWorkflowExportResult;
|
|
35
38
|
private resolveWorkflowBaseDir;
|
|
36
39
|
private ensureProjectShell;
|
|
@@ -18,15 +18,17 @@ const credential_requirements_extractor_1 = require("../credential/credential-re
|
|
|
18
18
|
const data_table_requirements_extractor_1 = require("../data-table/data-table-requirements.extractor");
|
|
19
19
|
const folder_serializer_1 = require("../folder/folder.serializer");
|
|
20
20
|
const project_serializer_1 = require("../project/project.serializer");
|
|
21
|
+
const tag_requirements_extractor_1 = require("../tag/tag-requirements.extractor");
|
|
21
22
|
const variable_requirements_extractor_1 = require("../variable/variable-requirements.extractor");
|
|
22
23
|
let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
|
|
23
|
-
constructor(workflowSerializer, folderSerializer, projectSerializer, credentialRequirementsExtractor, dataTableRequirementsExtractor, variableRequirementsExtractor) {
|
|
24
|
+
constructor(workflowSerializer, folderSerializer, projectSerializer, credentialRequirementsExtractor, dataTableRequirementsExtractor, variableRequirementsExtractor, tagRequirementsExtractor) {
|
|
24
25
|
this.workflowSerializer = workflowSerializer;
|
|
25
26
|
this.folderSerializer = folderSerializer;
|
|
26
27
|
this.projectSerializer = projectSerializer;
|
|
27
28
|
this.credentialRequirementsExtractor = credentialRequirementsExtractor;
|
|
28
29
|
this.dataTableRequirementsExtractor = dataTableRequirementsExtractor;
|
|
29
30
|
this.variableRequirementsExtractor = variableRequirementsExtractor;
|
|
31
|
+
this.tagRequirementsExtractor = tagRequirementsExtractor;
|
|
30
32
|
}
|
|
31
33
|
export(request) {
|
|
32
34
|
const allocators = {
|
|
@@ -54,6 +56,7 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
|
|
|
54
56
|
const credentials = [];
|
|
55
57
|
const dataTables = [];
|
|
56
58
|
const variables = [];
|
|
59
|
+
const tags = [];
|
|
57
60
|
const nodeTypes = [];
|
|
58
61
|
for (const included of request.workflows) {
|
|
59
62
|
if (workflowEntriesById.has(included.workflow.id))
|
|
@@ -68,12 +71,13 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
|
|
|
68
71
|
projectEntries,
|
|
69
72
|
allocators,
|
|
70
73
|
});
|
|
71
|
-
const entry = this.writeWorkflow(included.workflow, baseDir, request.writer, allocators.workflows);
|
|
74
|
+
const entry = this.writeWorkflow(included.workflow, baseDir, request.writer, allocators.workflows, request.includeTags);
|
|
72
75
|
workflowEntries.push(entry);
|
|
73
76
|
workflowEntriesById.set(entry.id, entry);
|
|
74
77
|
credentials.push(...this.credentialRequirementsExtractor.extract(included.workflow));
|
|
75
78
|
dataTables.push(...this.dataTableRequirementsExtractor.extract(included.workflow));
|
|
76
79
|
variables.push(...this.variableRequirementsExtractor.extract(included.workflow));
|
|
80
|
+
tags.push(...this.tagRequirementsExtractor.extract(included.workflow));
|
|
77
81
|
nodeTypes.push({
|
|
78
82
|
workflowId: included.workflow.id,
|
|
79
83
|
nodes: included.workflow.nodes ?? [],
|
|
@@ -83,7 +87,7 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
|
|
|
83
87
|
workflowEntries,
|
|
84
88
|
folderEntries,
|
|
85
89
|
projectEntries,
|
|
86
|
-
requirements: { credentials, dataTables, variables, nodeTypes },
|
|
90
|
+
requirements: { credentials, dataTables, variables, tags, nodeTypes },
|
|
87
91
|
projectTargetsById,
|
|
88
92
|
};
|
|
89
93
|
}
|
|
@@ -171,9 +175,9 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
|
|
|
171
175
|
}
|
|
172
176
|
return parentTarget;
|
|
173
177
|
}
|
|
174
|
-
writeWorkflow(workflow, baseDir, writer, allocators) {
|
|
178
|
+
writeWorkflow(workflow, baseDir, writer, allocators, includeTags) {
|
|
175
179
|
const target = allocatorFor(allocators, baseDir, 'workflow').allocate(workflow.name);
|
|
176
|
-
const serialized = this.workflowSerializer.serialize(workflow);
|
|
180
|
+
const serialized = this.workflowSerializer.serialize(workflow, { includeTags });
|
|
177
181
|
writer.writeDirectory(target);
|
|
178
182
|
writer.writeFile(`${target}/workflow.json`, JSON.stringify(serialized, null, '\t'));
|
|
179
183
|
return { id: workflow.id, name: workflow.name, target };
|
|
@@ -182,7 +186,7 @@ let AutoIncludedWorkflowExporter = class AutoIncludedWorkflowExporter {
|
|
|
182
186
|
exports.AutoIncludedWorkflowExporter = AutoIncludedWorkflowExporter;
|
|
183
187
|
exports.AutoIncludedWorkflowExporter = AutoIncludedWorkflowExporter = __decorate([
|
|
184
188
|
(0, di_1.Service)(),
|
|
185
|
-
__metadata("design:paramtypes", [workflow_serializer_1.WorkflowSerializer, folder_serializer_1.FolderSerializer, project_serializer_1.ProjectSerializer, credential_requirements_extractor_1.CredentialRequirementsExtractor, data_table_requirements_extractor_1.DataTableRequirementsExtractor, variable_requirements_extractor_1.VariableRequirementsExtractor])
|
|
189
|
+
__metadata("design:paramtypes", [workflow_serializer_1.WorkflowSerializer, folder_serializer_1.FolderSerializer, project_serializer_1.ProjectSerializer, credential_requirements_extractor_1.CredentialRequirementsExtractor, data_table_requirements_extractor_1.DataTableRequirementsExtractor, variable_requirements_extractor_1.VariableRequirementsExtractor, tag_requirements_extractor_1.TagRequirementsExtractor])
|
|
186
190
|
], AutoIncludedWorkflowExporter);
|
|
187
191
|
function parentDir(path) {
|
|
188
192
|
return path.split('/').slice(0, -1).join('/');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-included-workflow.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAClC,+CAA+C;AAI/C,+DAA2D;AAE3D,kFAA6E;AAE7E,uGAAkG;AAElG,uGAAiG;AAEjG,mEAA+D;AAC/D,sEAAkE;AAElE,iGAA4F;
|
|
1
|
+
{"version":3,"file":"auto-included-workflow.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAClC,+CAA+C;AAI/C,+DAA2D;AAE3D,kFAA6E;AAE7E,uGAAkG;AAElG,uGAAiG;AAEjG,mEAA+D;AAC/D,sEAAkE;AAElE,kFAA6E;AAE7E,iGAA4F;AAgCrF,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACxC,YACkB,kBAAsC,EACtC,gBAAkC,EAClC,iBAAoC,EACpC,+BAAgE,EAChE,8BAA8D,EAC9D,6BAA4D,EAC5D,wBAAkD;kCANlD,kBAAkB;gCAClB,gBAAgB;iCAChB,iBAAiB;+CACjB,+BAA+B;8CAC/B,8BAA8B;6CAC9B,6BAA6B;wCAC7B,wBAAwB;IACvC,CAAC;IAEJ,MAAM,CAAC,OAA0C;QAChD,MAAM,UAAU,GAAqB;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0;
|
|
4
|
+
exports.callerIdsReference = {
|
|
5
|
+
extract() {
|
|
6
|
+
return [];
|
|
7
|
+
},
|
|
8
|
+
apply(workflow, bindings) {
|
|
9
|
+
const { settings } = workflow;
|
|
10
|
+
if (!settings?.callerIds || typeof settings.callerIds !== 'string')
|
|
11
|
+
return;
|
|
12
|
+
settings.callerIds = settings.callerIds
|
|
13
|
+
.split(',')
|
|
14
|
+
.map((raw) => raw.trim())
|
|
15
|
+
.filter((id) => id !== '')
|
|
16
|
+
.map((id) => bindings.workflows.get(id) ?? id)
|
|
17
|
+
.join(',');
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=caller-ids.reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caller-ids.reference.js","sourceRoot":"","sources":["../../../../../../src/modules/n8n-packages/entities/workflow/references/caller-ids.reference.ts"],"names":[],"mappings":";;;AAQa,QAAA,kBAAkB,GAAoD;IAClF,OAAO;QACN,OAAO,EAAE,CAAC;IACX,CAAC;IACD,KAAK,CAAC,QAAQ,EAAE,QAAQ;QACvB,MAAM,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;QAE9B,IAAI,CAAC,QAAQ,EAAE,SAAS,IAAI,OAAO,QAAQ,CAAC,SAAS,KAAK,QAAQ;YAAE,OAAO;QAE3E,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS;aACrC,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;aACxB,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;aACzB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;aAC7C,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.errorWorkflowReference = void 0;
|
|
4
|
+
exports.errorWorkflowReference = {
|
|
5
|
+
extract(workflow) {
|
|
6
|
+
const referencedWorkflowId = staticErrorWorkflowId(workflow);
|
|
7
|
+
return referencedWorkflowId ? [{ workflowId: workflow.id, referencedWorkflowId }] : [];
|
|
8
|
+
},
|
|
9
|
+
apply(workflow, bindings) {
|
|
10
|
+
const currentId = staticErrorWorkflowId(workflow);
|
|
11
|
+
if (!currentId || !workflow.settings)
|
|
12
|
+
return;
|
|
13
|
+
workflow.settings.errorWorkflow = bindings.workflows.get(currentId) ?? currentId;
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
function staticErrorWorkflowId(workflow) {
|
|
17
|
+
const errorWorkflow = workflow.settings?.errorWorkflow;
|
|
18
|
+
if (typeof errorWorkflow !== 'string' ||
|
|
19
|
+
errorWorkflow === 'DEFAULT' ||
|
|
20
|
+
errorWorkflow.startsWith('=')) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
return errorWorkflow;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=error-workflow.reference.js.map
|
package/dist/modules/n8n-packages/entities/workflow/references/error-workflow.reference.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-workflow.reference.js","sourceRoot":"","sources":["../../../../../../src/modules/n8n-packages/entities/workflow/references/error-workflow.reference.ts"],"names":[],"mappings":";;;AAQa,QAAA,sBAAsB,GAAoD;IACtF,OAAO,CAAC,QAAQ;QACf,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;QAC7D,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACxF,CAAC;IACD,KAAK,CAAC,QAAQ,EAAE,QAAQ;QACvB,MAAM,SAAS,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,CAAC,SAAS,IAAI,CAAC,QAAQ,CAAC,QAAQ;YAAE,OAAO;QAC7C,QAAQ,CAAC,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC;IAClF,CAAC;CACD,CAAC;AAEF,SAAS,qBAAqB,CAAC,QAAwB;IACtD,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IACvD,IACC,OAAO,aAAa,KAAK,QAAQ;QACjC,aAAa,KAAK,SAAS;QAC3B,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,EAC5B,CAAC;QACF,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,OAAO,aAAa,CAAC;AACtB,CAAC"}
|
package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractWorkflowRequirements = extractWorkflowRequirements;
|
|
4
|
+
const workflow_references_1 = require("./workflow-references");
|
|
5
|
+
function extractWorkflowRequirements(workflow) {
|
|
6
|
+
const byId = new Map();
|
|
7
|
+
for (const reference of workflow_references_1.workflowReferences) {
|
|
8
|
+
for (const requirement of reference.extract(workflow)) {
|
|
9
|
+
if (!byId.has(requirement.referencedWorkflowId)) {
|
|
10
|
+
byId.set(requirement.referencedWorkflowId, requirement);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return [...byId.values()];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=extract-workflow-requirements.js.map
|
package/dist/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-workflow-requirements.js","sourceRoot":"","sources":["../../../../../../src/modules/n8n-packages/entities/workflow/references/extract-workflow-requirements.ts"],"names":[],"mappings":";;;AAEA,+DAA2D;AAQ3D,qCACC,QAAwB;IAExB,MAAM,IAAI,GAAG,IAAI,GAAG,EAA0C,CAAC;IAC/D,KAAK,MAAM,SAAS,IAAI,wCAAkB,EAAE,CAAC;QAC5C,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YACvD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE,CAAC;gBACjD,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;YACzD,CAAC;QACF,CAAC;IACF,CAAC;IACD,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;AAC3B,CAAC"}
|
package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type INode } from 'n8n-workflow';
|
|
2
|
+
import type { EntityReference } from '../../reference';
|
|
3
|
+
import type { WorkflowSubWorkflowRequirement } from '../workflow.types';
|
|
4
|
+
export declare const subWorkflowNodeReference: EntityReference<WorkflowSubWorkflowRequirement>;
|
|
5
|
+
export declare function getStaticSubworkflowId(node: INode): string | undefined;
|
|
6
|
+
export declare function setStaticSubworkflowId(node: INode, workflowId: string): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subWorkflowNodeReference = void 0;
|
|
4
|
+
exports.getStaticSubworkflowId = getStaticSubworkflowId;
|
|
5
|
+
exports.setStaticSubworkflowId = setStaticSubworkflowId;
|
|
6
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
+
exports.subWorkflowNodeReference = {
|
|
8
|
+
extract(workflow) {
|
|
9
|
+
const requirements = [];
|
|
10
|
+
for (const node of workflow.nodes ?? []) {
|
|
11
|
+
const referencedWorkflowId = getStaticSubworkflowId(node);
|
|
12
|
+
if (referencedWorkflowId) {
|
|
13
|
+
requirements.push({ workflowId: workflow.id, referencedWorkflowId });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return requirements;
|
|
17
|
+
},
|
|
18
|
+
apply(workflow, bindings) {
|
|
19
|
+
for (const node of workflow.nodes ?? []) {
|
|
20
|
+
const currentId = getStaticSubworkflowId(node);
|
|
21
|
+
if (!currentId)
|
|
22
|
+
continue;
|
|
23
|
+
const targetId = bindings.workflows.get(currentId);
|
|
24
|
+
if (targetId)
|
|
25
|
+
setStaticSubworkflowId(node, targetId);
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
function getStaticSubworkflowId(node) {
|
|
30
|
+
if (!(0, n8n_workflow_1.isNodeWithWorkflowSelector)(node))
|
|
31
|
+
return undefined;
|
|
32
|
+
const { source = 'database' } = node.parameters;
|
|
33
|
+
if (source !== 'database')
|
|
34
|
+
return undefined;
|
|
35
|
+
const { workflowId: storedWorkflowId } = node.parameters;
|
|
36
|
+
return toStaticId((0, n8n_workflow_1.getSubworkflowId)(node) ?? storedWorkflowId);
|
|
37
|
+
}
|
|
38
|
+
function setStaticSubworkflowId(node, workflowId) {
|
|
39
|
+
const stored = node.parameters.workflowId;
|
|
40
|
+
if ((0, n8n_workflow_1.isResourceLocatorValue)(stored)) {
|
|
41
|
+
stored.value = workflowId;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
node.parameters.workflowId = workflowId;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function toStaticId(value) {
|
|
48
|
+
if (typeof value !== 'string')
|
|
49
|
+
return undefined;
|
|
50
|
+
const trimmed = value.trim();
|
|
51
|
+
if (trimmed === '' || trimmed.startsWith('='))
|
|
52
|
+
return undefined;
|
|
53
|
+
return trimmed;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=sub-workflow-node.reference.js.map
|
package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-workflow-node.reference.js","sourceRoot":"","sources":["../../../../../../src/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.ts"],"names":[],"mappings":";;;;;AAAA,+CAKsB;AAUT,QAAA,wBAAwB,GAAoD;IACxF,OAAO,CAAC,QAAQ;QACf,MAAM,YAAY,GAAqC,EAAE,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;YACzC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;YAC1D,IAAI,oBAAoB,EAAE,CAAC;gBAC1B,YAAY,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC;YACtE,CAAC;QACF,CAAC;QACD,OAAO,YAAY,CAAC;IACrB,CAAC;IACD,KAAK,CAAC,QAAQ,EAAE,QAAQ;QACvB,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;YACzC,MAAM,SAAS,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;YAC/C,IAAI,CAAC,SAAS;gBAAE,SAAS;YACzB,MAAM,QAAQ,GAAG,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACnD,IAAI,QAAQ;gBAAE,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACtD,CAAC;IACF,CAAC;CACD,CAAC;AAEF,gCAAuC,IAAW;IACjD,IAAI,CAAC,IAAA,yCAA0B,EAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IAExD,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;IAChD,IAAI,MAAM,KAAK,UAAU;QAAE,OAAO,SAAS,CAAC;IAE5C,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;IACzD,OAAO,UAAU,CAAC,IAAA,+BAAgB,EAAC,IAAI,CAAC,IAAI,gBAAgB,CAAC,CAAC;AAC/D,CAAC;AAED,gCAAuC,IAAW,EAAE,UAAkB;IACrE,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;IAC1C,IAAI,IAAA,qCAAsB,EAAC,MAAM,CAAC,EAAE,CAAC;QACpC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC;IAC3B,CAAC;SAAM,CAAC;QACP,IAAI,CAAC,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;IACzC,CAAC;AACF,CAAC;AAED,SAAS,UAAU,CAAC,KAAc;IACjC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAE7B,IAAI,OAAO,KAAK,EAAE,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,SAAS,CAAC;IAChE,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.workflowReferences = void 0;
|
|
4
|
+
const caller_ids_reference_1 = require("./caller-ids.reference");
|
|
5
|
+
const error_workflow_reference_1 = require("./error-workflow.reference");
|
|
6
|
+
const sub_workflow_node_reference_1 = require("./sub-workflow-node.reference");
|
|
7
|
+
exports.workflowReferences = [
|
|
8
|
+
sub_workflow_node_reference_1.subWorkflowNodeReference,
|
|
9
|
+
error_workflow_reference_1.errorWorkflowReference,
|
|
10
|
+
caller_ids_reference_1.callerIdsReference,
|
|
11
|
+
];
|
|
12
|
+
//# sourceMappingURL=workflow-references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-references.js","sourceRoot":"","sources":["../../../../../../src/modules/n8n-packages/entities/workflow/references/workflow-references.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAC5D,yEAAoE;AACpE,+EAAyE;AAK5D,QAAA,kBAAkB,GAA2D;IACzF,sDAAwB;IACxB,iDAAsB;IACtB,yCAAkB;CAClB,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderBySubWorkflowDependencies = orderBySubWorkflowDependencies;
|
|
4
|
+
function orderBySubWorkflowDependencies(workflows, requirements) {
|
|
5
|
+
if (!requirements?.length)
|
|
6
|
+
return workflows;
|
|
7
|
+
const workflowsById = new Map(workflows.map((workflow) => [workflow.sourceWorkflowId, workflow]));
|
|
8
|
+
const callers = new Map();
|
|
9
|
+
const pendingDependencies = new Map(workflows.map((workflow) => [workflow.sourceWorkflowId, 0]));
|
|
10
|
+
for (const requirement of requirements) {
|
|
11
|
+
if (!workflowsById.has(requirement.id))
|
|
12
|
+
continue;
|
|
13
|
+
for (const callerId of requirement.usedByWorkflows) {
|
|
14
|
+
if (!workflowsById.has(callerId) || callerId === requirement.id)
|
|
15
|
+
continue;
|
|
16
|
+
const existing = callers.get(requirement.id);
|
|
17
|
+
if (existing)
|
|
18
|
+
existing.push(callerId);
|
|
19
|
+
else
|
|
20
|
+
callers.set(requirement.id, [callerId]);
|
|
21
|
+
pendingDependencies.set(callerId, pendingDependencies.get(callerId) + 1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const queue = workflows.filter((workflow) => pendingDependencies.get(workflow.sourceWorkflowId) === 0);
|
|
25
|
+
const ordered = [];
|
|
26
|
+
for (let cursor = 0; cursor < queue.length; cursor++) {
|
|
27
|
+
const workflow = queue[cursor];
|
|
28
|
+
ordered.push(workflow);
|
|
29
|
+
for (const callerId of callers.get(workflow.sourceWorkflowId) ?? []) {
|
|
30
|
+
const pending = pendingDependencies.get(callerId) - 1;
|
|
31
|
+
pendingDependencies.set(callerId, pending);
|
|
32
|
+
if (pending === 0)
|
|
33
|
+
queue.push(workflowsById.get(callerId));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (ordered.length < workflows.length) {
|
|
37
|
+
const placed = new Set(ordered.map((workflow) => workflow.sourceWorkflowId));
|
|
38
|
+
for (const workflow of workflows) {
|
|
39
|
+
if (!placed.has(workflow.sourceWorkflowId))
|
|
40
|
+
ordered.push(workflow);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return ordered;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=sub-workflow-ordering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-workflow-ordering.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/workflow/sub-workflow-ordering.ts"],"names":[],"mappings":";;;AAKA,wCACC,SAAc,EACd,YAAsD;IAEtD,IAAI,CAAC,YAAY,EAAE,MAAM;QAAE,OAAO,SAAS,CAAC;IAE5C,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAIlG,MAAM,OAAO,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC5C,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAClC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,CAC3D,CAAC;IAEF,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACxC,IAAI,CAAC,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Q,EAAE,OAAO,CAAC,CAAC;YAC3C,IAAI,OAAO,KAAK,CAAC;gBAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC,CAAC;QAC7D,CAAC;IACF,CAAC;IAGD,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC7E,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAClC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpE,CAAC;IACF,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { User } from '@n8n/db';
|
|
2
2
|
import { WorkflowFinderService } from '../../../../workflows/workflow-finder.service';
|
|
3
|
-
import { WorkflowRequirementsExtractor } from './workflow-requirements.extractor';
|
|
4
3
|
import type { WorkflowSubWorkflowRequirement } from './workflow.types';
|
|
5
4
|
export interface WorkflowDependencyResolveRequest {
|
|
6
5
|
user: User;
|
|
7
6
|
workflowIds: string[];
|
|
7
|
+
traversal?: 'transitive' | 'direct';
|
|
8
8
|
}
|
|
9
9
|
export declare class WorkflowDependencyResolver {
|
|
10
10
|
private readonly workflowFinder;
|
|
11
|
-
|
|
12
|
-
constructor(workflowFinder: WorkflowFinderService, workflowRequirementsExtractor: WorkflowRequirementsExtractor);
|
|
11
|
+
constructor(workflowFinder: WorkflowFinderService);
|
|
13
12
|
resolve(request: WorkflowDependencyResolveRequest): Promise<WorkflowSubWorkflowRequirement[]>;
|
|
14
13
|
}
|
|
@@ -12,13 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WorkflowDependencyResolver = void 0;
|
|
13
13
|
const di_1 = require("@n8n/di");
|
|
14
14
|
const workflow_finder_service_1 = require("../../../../workflows/workflow-finder.service");
|
|
15
|
-
const
|
|
15
|
+
const extract_workflow_requirements_1 = require("./references/extract-workflow-requirements");
|
|
16
16
|
let WorkflowDependencyResolver = class WorkflowDependencyResolver {
|
|
17
|
-
constructor(workflowFinder
|
|
17
|
+
constructor(workflowFinder) {
|
|
18
18
|
this.workflowFinder = workflowFinder;
|
|
19
|
-
this.workflowRequirementsExtractor = workflowRequirementsExtractor;
|
|
20
19
|
}
|
|
21
20
|
async resolve(request) {
|
|
21
|
+
const traverse = (request.traversal ?? 'transitive') === 'transitive';
|
|
22
22
|
const queue = [...new Set(request.workflowIds)];
|
|
23
23
|
const seenWorkflowIds = new Set(queue);
|
|
24
24
|
const requirements = [];
|
|
@@ -30,8 +30,10 @@ let WorkflowDependencyResolver = class WorkflowDependencyResolver {
|
|
|
30
30
|
const workflow = workflowsById.get(workflowId);
|
|
31
31
|
if (!workflow)
|
|
32
32
|
continue;
|
|
33
|
-
const extractedRequirements =
|
|
33
|
+
const extractedRequirements = (0, extract_workflow_requirements_1.extractWorkflowRequirements)(workflow);
|
|
34
34
|
requirements.push(...extractedRequirements);
|
|
35
|
+
if (!traverse)
|
|
36
|
+
continue;
|
|
35
37
|
for (const { referencedWorkflowId } of extractedRequirements) {
|
|
36
38
|
if (seenWorkflowIds.has(referencedWorkflowId))
|
|
37
39
|
continue;
|
|
@@ -46,6 +48,6 @@ let WorkflowDependencyResolver = class WorkflowDependencyResolver {
|
|
|
46
48
|
exports.WorkflowDependencyResolver = WorkflowDependencyResolver;
|
|
47
49
|
exports.WorkflowDependencyResolver = WorkflowDependencyResolver = __decorate([
|
|
48
50
|
(0, di_1.Service)(),
|
|
49
|
-
__metadata("design:paramtypes", [workflow_finder_service_1.WorkflowFinderService
|
|
51
|
+
__metadata("design:paramtypes", [workflow_finder_service_1.WorkflowFinderService])
|
|
50
52
|
], WorkflowDependencyResolver);
|
|
51
53
|
//# sourceMappingURL=workflow-dependency-resolver.js.map
|