n8n 2.39.4 → 2.40.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/agent-library-bundle.js +178 -11
- package/dist/auth/auth.service.d.ts +5 -0
- package/dist/auth/auth.service.js +35 -2
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/binary-data/binary-data-access.service.d.ts +1 -1
- package/dist/binary-data/binary-data-access.service.js +15 -6
- package/dist/binary-data/binary-data-access.service.js.map +1 -1
- package/dist/binary-data/database.manager.js +1 -1
- package/dist/binary-data/database.manager.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.js +11 -1
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/execute-batch.js.map +1 -1
- package/dist/commands/list/workflow.js +1 -4
- package/dist/commands/list/workflow.js.map +1 -1
- package/dist/commands/publish/workflow.js +1 -5
- package/dist/commands/publish/workflow.js.map +1 -1
- package/dist/commands/start.js +1 -7
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/ttwf/generate.js +1 -4
- package/dist/commands/ttwf/generate.js.map +1 -1
- package/dist/commands/unpublish/workflow.js +1 -5
- package/dist/commands/unpublish/workflow.js.map +1 -1
- package/dist/commands/update/workflow.js +1 -5
- package/dist/commands/update/workflow.js.map +1 -1
- package/dist/controller.registry.d.ts +1 -1
- package/dist/controller.registry.js +3 -3
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/ai-preference.controller.d.ts +17 -0
- package/dist/controllers/ai-preference.controller.js +78 -0
- package/dist/controllers/ai-preference.controller.js.map +1 -0
- package/dist/controllers/change-email.controller.d.ts +31 -0
- package/dist/controllers/change-email.controller.js +164 -0
- package/dist/controllers/change-email.controller.js.map +1 -0
- package/dist/controllers/me.controller.d.ts +3 -2
- package/dist/controllers/me.controller.js +10 -42
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/credentials/dynamic-credentials-proxy.js.map +1 -1
- package/dist/credentials/executing-user-identifier-proxy.d.ts +7 -0
- package/dist/credentials/executing-user-identifier-proxy.js +25 -0
- package/dist/credentials/executing-user-identifier-proxy.js.map +1 -0
- package/dist/credentials/executing-user-identifier.interface.d.ts +4 -0
- package/dist/credentials/executing-user-identifier.interface.js +3 -0
- package/dist/credentials/executing-user-identifier.interface.js.map +1 -0
- package/dist/credentials/mock-node-types.d.ts +5 -0
- package/dist/credentials/mock-node-types.js +34 -0
- package/dist/credentials/mock-node-types.js.map +1 -0
- package/dist/credentials-helper.js +5 -27
- package/dist/credentials-helper.js.map +1 -1
- package/dist/deprecation/deprecation.service.js +6 -2
- package/dist/deprecation/deprecation.service.js.map +1 -1
- package/dist/encryption/key-manager.service.js +3 -1
- package/dist/encryption/key-manager.service.js.map +1 -1
- package/dist/encryption/key-rotation-flag.js +2 -1
- package/dist/encryption/key-rotation-flag.js.map +1 -1
- package/dist/errors/pre-execute-blocked.error.d.ts +6 -0
- package/dist/errors/pre-execute-blocked.error.js +15 -0
- package/dist/errors/pre-execute-blocked.error.js.map +1 -0
- package/dist/eventbus/event-message-classes/event-message-audit.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-generic.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-mcp.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-workflow.js.map +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +4 -2
- package/dist/eventbus/event-message-classes/index.js +6 -1
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/eventbus/message-event-bus/message-event-bus.d.ts +3 -1
- package/dist/eventbus/message-event-bus/message-event-bus.js +5 -3
- 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.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +24 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +2 -0
- package/dist/events/relays/log-streaming.event-relay.js +9 -0
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +6 -0
- package/dist/events/relays/telemetry.event-relay.js +88 -1
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +22 -10
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/execution-lifecycle/restore-binary-data-id.js +2 -2
- package/dist/execution-lifecycle/restore-binary-data-id.js.map +1 -1
- package/dist/executions/enqueued-execution-recovery.service.d.ts +3 -3
- package/dist/executions/enqueued-execution-recovery.service.js +6 -6
- package/dist/executions/enqueued-execution-recovery.service.js.map +1 -1
- package/dist/executions/execution-crash.service.d.ts +12 -0
- package/dist/executions/execution-crash.service.js +43 -0
- package/dist/executions/execution-crash.service.js.map +1 -0
- package/dist/executions/execution-recovery.service.d.ts +3 -1
- package/dist/executions/execution-recovery.service.js +6 -4
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +5 -2
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +20 -29
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/executions/pre-execution-checks/index.d.ts +1 -0
- package/dist/executions/pre-execution-checks/index.js +3 -1
- package/dist/executions/pre-execution-checks/index.js.map +1 -1
- package/dist/executions/pre-execution-checks/workflow-pre-execute.d.ts +16 -0
- package/dist/executions/pre-execution-checks/workflow-pre-execute.js +96 -0
- package/dist/executions/pre-execution-checks/workflow-pre-execute.js.map +1 -0
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js +25 -3
- package/dist/instance-settings-loader/loaders/sso/provisioning.instance-settings-loader.js.map +1 -1
- package/dist/license/license-renewal.task.d.ts +13 -0
- package/dist/license/license-renewal.task.js +38 -0
- package/dist/license/license-renewal.task.js.map +1 -0
- package/dist/license.d.ts +1 -2
- package/dist/license.js +5 -19
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +1 -0
- package/dist/load-nodes-and-credentials.js +7 -2
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/metrics/prometheus/encryption-metrics.service.d.ts +10 -0
- package/dist/metrics/prometheus/encryption-metrics.service.js +55 -0
- package/dist/metrics/prometheus/encryption-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/prometheus.service.d.ts +2 -1
- package/dist/metrics/prometheus/prometheus.service.js +4 -2
- package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
- package/dist/modules/agents/agent-chat.controller.d.ts +11 -2
- package/dist/modules/agents/agent-chat.controller.js +42 -2
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +14 -0
- package/dist/modules/agents/agent-checkpoint-pruning.task.js +38 -0
- package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -0
- package/dist/modules/agents/agent-config.service.d.ts +7 -7
- package/dist/modules/agents/agent-config.service.js +13 -3
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-custom-tools.service.d.ts +3 -1
- package/dist/modules/agents/agent-custom-tools.service.js +6 -2
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +34 -2
- package/dist/modules/agents/agent-execution-orchestrator.service.js +143 -16
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-update-broadcaster.d.ts +6 -1
- package/dist/modules/agents/agent-execution-update-broadcaster.js +34 -2
- package/dist/modules/agents/agent-execution-update-broadcaster.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +5 -2
- package/dist/modules/agents/agent-execution.service.js +2 -1
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-management.service.d.ts +2 -0
- package/dist/modules/agents/agent-integration-management.service.js +4 -0
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.d.ts +3 -1
- package/dist/modules/agents/agent-integrations.controller.js +7 -5
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-interrupted-execution-sweeper.d.ts +3 -1
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js +10 -2
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-commands.js +2 -2
- package/dist/modules/agents/agent-knowledge-commands.js.map +1 -1
- package/dist/modules/agents/agent-modification-telemetry.service.d.ts +1 -0
- package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
- package/dist/modules/agents/agent-publish.controller.d.ts +8 -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 +7 -5
- package/dist/modules/agents/agent-publish.service.js +12 -6
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-runnable-state.service.d.ts +2 -0
- package/dist/modules/agents/agent-runnable-state.service.js +8 -0
- package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.d.ts +3 -0
- package/dist/modules/agents/agent-runtime-cache.service.js +8 -3
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +7 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +34 -11
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-sandbox-principal.d.ts +2 -2
- package/dist/modules/agents/agent-sandbox-principal.js +2 -2
- package/dist/modules/agents/agent-sandbox-principal.js.map +1 -1
- package/dist/modules/agents/agent-sandbox-runtime.service.js +9 -8
- package/dist/modules/agents/agent-sandbox-runtime.service.js.map +1 -1
- package/dist/modules/agents/agent-session-langsmith-export.service.js +110 -10
- package/dist/modules/agents/agent-session-langsmith-export.service.js.map +1 -1
- package/dist/modules/agents/agent-skills.service.d.ts +4 -2
- package/dist/modules/agents/agent-skills.service.js +30 -6
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +6 -2
- package/dist/modules/agents/agent-task.service.js +79 -91
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-tasks.controller.js +3 -0
- package/dist/modules/agents/agent-tasks.controller.js.map +1 -1
- package/dist/modules/agents/agent-test-chat.service.js +8 -1
- package/dist/modules/agents/agent-test-chat.service.js.map +1 -1
- package/dist/modules/agents/agent-test-run.service.d.ts +3 -1
- package/dist/modules/agents/agent-test-run.service.js +5 -3
- package/dist/modules/agents/agent-test-run.service.js.map +1 -1
- package/dist/modules/agents/agent-update-broadcaster.d.ts +22 -0
- package/dist/modules/agents/agent-update-broadcaster.js +74 -0
- package/dist/modules/agents/agent-update-broadcaster.js.map +1 -0
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +3 -1
- package/dist/modules/agents/agent-workflow-execution.service.js +7 -3
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-tool-resume.service.js +1 -0
- package/dist/modules/agents/agent-workflow-tool-resume.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +214 -219
- 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 +6 -2
- package/dist/modules/agents/agents-skills.controller.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +4 -0
- package/dist/modules/agents/agents.controller.js +12 -1
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +2 -1
- package/dist/modules/agents/agents.module.js +25 -2
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +9 -4
- package/dist/modules/agents/agents.service.js +29 -7
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/background/agent-background-job.service.d.ts +16 -3
- package/dist/modules/agents/background/agent-background-job.service.js +105 -6
- package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
- package/dist/modules/agents/background/agent-wake.service.d.ts +47 -0
- package/dist/modules/agents/background/agent-wake.service.js +237 -0
- package/dist/modules/agents/background/agent-wake.service.js.map +1 -0
- package/dist/modules/agents/background/background-job-messages.d.ts +7 -0
- package/dist/modules/agents/background/background-job-messages.js +42 -0
- package/dist/modules/agents/background/background-job-messages.js.map +1 -0
- package/dist/modules/agents/background/background-job-tools.js +45 -12
- package/dist/modules/agents/background/background-job-tools.js.map +1 -1
- package/dist/modules/agents/background/sub-agent-background-runner.d.ts +1 -1
- package/dist/modules/agents/background/sub-agent-background-runner.js +3 -3
- package/dist/modules/agents/background/sub-agent-background-runner.js.map +1 -1
- package/dist/modules/agents/builder/agent-builder-preview-path.js +1 -1
- package/dist/modules/agents/builder/agent-builder-preview-path.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +3 -2
- package/dist/modules/agents/builder/agents-builder-tools.service.js +29 -17
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +4 -1
- package/dist/modules/agents/builder/agents-builder.service.js +12 -3
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +7 -2
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +21 -3
- 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/prompts/config-rules.prompt.js +2 -3
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +2 -2
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/memory.skill.js +4 -4
- package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +4 -2
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/entities/agent-background-job.entity.d.ts +3 -0
- package/dist/modules/agents/entities/agent-background-job.entity.js +14 -1
- package/dist/modules/agents/entities/agent-background-job.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +2 -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-memory-entry-candidate.entity.d.ts +15 -0
- package/dist/modules/agents/entities/agent-memory-entry-candidate.entity.js +70 -0
- package/dist/modules/agents/entities/agent-memory-entry-candidate.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.d.ts +2 -1
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.js +11 -2
- package/dist/modules/agents/entities/agent-memory-entry-source.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-message.entity.js +2 -1
- package/dist/modules/agents/entities/agent-message.entity.js.map +1 -1
- package/dist/modules/agents/episodic-memory.d.ts +2 -2
- package/dist/modules/agents/episodic-memory.js +1 -4
- package/dist/modules/agents/episodic-memory.js.map +1 -1
- package/dist/modules/agents/execution-recorder.d.ts +6 -2
- package/dist/modules/agents/execution-recorder.js +17 -6
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +3 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +5 -4
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +5 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.js +53 -13
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +5 -3
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +35 -25
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/channel-rate-limit.d.ts +14 -0
- package/dist/modules/agents/integrations/channel-rate-limit.guard.d.ts +5 -0
- package/dist/modules/agents/integrations/channel-rate-limit.guard.js +40 -0
- package/dist/modules/agents/integrations/channel-rate-limit.guard.js.map +1 -0
- package/dist/modules/agents/integrations/channel-rate-limit.js +69 -0
- package/dist/modules/agents/integrations/channel-rate-limit.js.map +1 -0
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/cron-validation.d.ts +2 -1
- package/dist/modules/agents/integrations/cron-validation.js +10 -1
- package/dist/modules/agents/integrations/cron-validation.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +3 -1
- package/dist/modules/agents/integrations/integration-action-executor.js +20 -4
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-context-query-executor.d.ts +3 -1
- package/dist/modules/agents/integrations/integration-context-query-executor.js +20 -4
- 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-helpers.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-helpers.js +4 -0
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.d.ts +3 -14
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +7 -64
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +14 -10
- package/dist/modules/agents/integrations/n8n-memory.js +119 -82
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/discord-integration.js +1 -1
- package/dist/modules/agents/integrations/platforms/discord-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-operations.js.map +1 -1
- package/dist/modules/agents/integrations/recording/channel-integration-recorder.js +2 -9
- package/dist/modules/agents/integrations/recording/channel-integration-recorder.js.map +1 -1
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.d.ts +1 -0
- package/dist/modules/agents/json-config/from-json-config.js +14 -25
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +0 -1
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
- package/dist/modules/agents/model-stream-stall-options.d.ts +3 -0
- package/dist/modules/agents/model-stream-stall-options.js +21 -0
- package/dist/modules/agents/model-stream-stall-options.js.map +1 -0
- package/dist/modules/agents/repositories/agent-background-job.repository.d.ts +8 -0
- package/dist/modules/agents/repositories/agent-background-job.repository.js +44 -1
- package/dist/modules/agents/repositories/agent-background-job.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js +3 -0
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.d.ts +22 -0
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js +75 -0
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-message.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-message.repository.js +11 -0
- package/dist/modules/agents/repositories/agent-message.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent.repository.js +14 -0
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/scheduling/agent-task-job-registrar.d.ts +23 -0
- package/dist/modules/agents/scheduling/agent-task-job-registrar.js +146 -0
- package/dist/modules/agents/scheduling/agent-task-job-registrar.js.map +1 -0
- package/dist/modules/agents/scheduling/agent-task-job.d.ts +7 -0
- package/dist/modules/agents/scheduling/agent-task-job.js +12 -0
- package/dist/modules/agents/scheduling/agent-task-job.js.map +1 -0
- package/dist/modules/agents/scheduling/agent-task-task-handler.d.ts +13 -0
- package/dist/modules/agents/scheduling/agent-task-task-handler.js +68 -0
- package/dist/modules/agents/scheduling/agent-task-task-handler.js.map +1 -0
- package/dist/modules/agents/scheduling/task-timezone.d.ts +2 -0
- package/dist/modules/agents/scheduling/task-timezone.js +13 -0
- package/dist/modules/agents/scheduling/task-timezone.js.map +1 -0
- package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +3 -1
- package/dist/modules/agents/sub-agents/sub-agent-runner.js +14 -5
- package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js +35 -6
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/utils/agent-config-hash.d.ts +4 -1
- package/dist/modules/agents/utils/agent-config-hash.js +10 -3
- package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +7 -0
- package/dist/modules/agents/utils/agent-memory-scope.js +30 -1
- package/dist/modules/agents/utils/agent-memory-scope.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 +11 -7
- package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
- package/dist/modules/agents/utils/mcp-attribution.d.ts +4 -0
- package/dist/modules/agents/utils/mcp-attribution.js +34 -0
- package/dist/modules/agents/utils/mcp-attribution.js.map +1 -0
- package/dist/modules/breaking-changes/rules/index.d.ts +4 -1
- package/dist/modules/breaking-changes/rules/index.js +4 -1
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/chat-hub-deprecated.rule.d.ts +9 -0
- package/dist/modules/breaking-changes/rules/v3/chat-hub-deprecated.rule.js +59 -0
- package/dist/modules/breaking-changes/rules/v3/chat-hub-deprecated.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/external-secrets-project-roles-default.rule.d.ts +12 -0
- package/dist/modules/breaking-changes/rules/v3/external-secrets-project-roles-default.rule.js +70 -0
- package/dist/modules/breaking-changes/rules/v3/external-secrets-project-roles-default.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/pre-execute-error-creates-execution.rule.d.ts +9 -0
- package/dist/modules/breaking-changes/rules/v3/pre-execute-error-creates-execution.rule.js +56 -0
- package/dist/modules/breaking-changes/rules/v3/pre-execute-error-creates-execution.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/{task-runner-internal-mode.rule.d.ts → storage-path-rename.rule.d.ts} +4 -1
- package/dist/modules/breaking-changes/rules/v3/storage-path-rename.rule.js +87 -0
- package/dist/modules/breaking-changes/rules/v3/storage-path-rename.rule.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub-extractor.d.ts +3 -1
- package/dist/modules/chat-hub/chat-hub-extractor.js +21 -14
- package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.attachment.service.js +1 -1
- package/dist/modules/chat-hub/chat-hub.attachment.service.js.map +1 -1
- package/dist/modules/data-table/data-table-aggregate.controller.js +0 -2
- package/dist/modules/data-table/data-table-aggregate.controller.js.map +1 -1
- package/dist/modules/data-table/data-table-aggregate.service.d.ts +5 -4
- package/dist/modules/data-table/data-table-aggregate.service.js +8 -6
- package/dist/modules/data-table/data-table-aggregate.service.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
- package/dist/modules/data-table/data-table-rows.repository.js +6 -0
- package/dist/modules/data-table/data-table-rows.repository.js.map +1 -1
- package/dist/modules/data-table/data-table.service.js +12 -0
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +4 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +30 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +5 -9
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +5 -1
- 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 +2 -2
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js +2 -2
- package/dist/modules/dynamic-credentials.ee/services/credential-check-proxy.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.d.ts +5 -2
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js +9 -9
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver-workflow.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js +1 -1
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js.map +1 -1
- package/dist/modules/engine-v2/engine-control-plane-auth.middleware.d.ts +2 -1
- package/dist/modules/engine-v2/engine-control-plane-auth.middleware.js +2 -2
- package/dist/modules/engine-v2/engine-control-plane-auth.middleware.js.map +1 -1
- package/dist/modules/engine-v2/engine-control-plane-client.d.ts +2 -4
- package/dist/modules/engine-v2/engine-control-plane-client.js +4 -13
- package/dist/modules/engine-v2/engine-control-plane-client.js.map +1 -1
- package/dist/modules/engine-v2/engine-control-plane-server.d.ts +3 -1
- package/dist/modules/engine-v2/engine-control-plane-server.js +7 -6
- package/dist/modules/engine-v2/engine-control-plane-server.js.map +1 -1
- package/dist/modules/engine-v2/engine-control-plane-transport.d.ts +10 -0
- package/dist/modules/engine-v2/engine-control-plane-transport.js +38 -0
- package/dist/modules/engine-v2/engine-control-plane-transport.js.map +1 -0
- package/dist/modules/engine-v2/engine-credentials-client.d.ts +8 -0
- package/dist/modules/engine-v2/engine-credentials-client.js +47 -0
- package/dist/modules/engine-v2/engine-credentials-client.js.map +1 -0
- package/dist/modules/engine-v2/engine-credentials.contract.d.ts +1 -0
- package/dist/modules/engine-v2/engine-credentials.contract.js +7 -0
- package/dist/modules/engine-v2/engine-credentials.contract.js.map +1 -1
- package/dist/modules/engine-v2/engine-credentials.controller.d.ts +7 -0
- package/dist/modules/engine-v2/engine-credentials.controller.js +35 -0
- package/dist/modules/engine-v2/engine-credentials.controller.js.map +1 -0
- package/dist/modules/engine-v2/engine-credentials.service.d.ts +12 -0
- package/dist/modules/engine-v2/engine-credentials.service.js +95 -0
- package/dist/modules/engine-v2/engine-credentials.service.js.map +1 -0
- package/dist/modules/engine-v2/engine-data-plane-client.js.map +1 -1
- package/dist/modules/engine-v2/remote-credentials-helper.d.ts +24 -0
- package/dist/modules/engine-v2/remote-credentials-helper.js +90 -0
- package/dist/modules/engine-v2/remote-credentials-helper.js.map +1 -0
- package/dist/modules/insights/database/entities/insights-shared.d.ts +4 -2
- package/dist/modules/insights/database/entities/insights-shared.js +1 -0
- package/dist/modules/insights/database/entities/insights-shared.js.map +1 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +3 -3
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js +8 -2
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +1 -1
- package/dist/modules/insights/insights-collection.service.js +8 -0
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/insights/insights-compaction.task.js +1 -2
- package/dist/modules/insights/insights-compaction.task.js.map +1 -1
- package/dist/modules/insights/insights-pruning.task.js +1 -2
- package/dist/modules/insights/insights-pruning.task.js.map +1 -1
- package/dist/modules/insights/insights.controller.js +4 -5
- package/dist/modules/insights/insights.controller.js.map +1 -1
- package/dist/modules/insights/insights.service.d.ts +12 -22
- package/dist/modules/insights/insights.service.js +49 -18
- package/dist/modules/insights/insights.service.js.map +1 -1
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js +2 -2
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js.map +1 -1
- package/dist/modules/instance-ai/drop-rejected-attachments.d.ts +1 -1
- package/dist/modules/instance-ai/entities/instance-ai-checkpoint.entity.d.ts +1 -1
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js +2 -1
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-scenario-seed.js +4 -2
- package/dist/modules/instance-ai/eval/agent-scenario-seed.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-completion-mock.js +16 -19
- package/dist/modules/instance-ai/eval/llm-completion-mock.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +3 -2
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-utils.js +2 -4
- package/dist/modules/instance-ai/eval/mock-utils.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js +9 -11
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js.map +1 -1
- package/dist/modules/instance-ai/eval/provider-shapes.js +30 -33
- package/dist/modules/instance-ai/eval/provider-shapes.js.map +1 -1
- package/dist/modules/instance-ai/eval/request-sanitizer.js.map +1 -1
- package/dist/modules/instance-ai/eval/structured-output-conformance.js +14 -16
- package/dist/modules/instance-ai/eval/structured-output-conformance.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +13 -3
- package/dist/modules/instance-ai/eval/thread-restore.service.js +95 -22
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +2 -4
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +4 -0
- package/dist/modules/instance-ai/event-bus/durable-event-log.js +4 -0
- package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +16 -0
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +40 -0
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-credit.service.js +12 -8
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +6 -3
- package/dist/modules/instance-ai/instance-ai-memory.service.js +36 -2
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-model.service.js +2 -2
- package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.d.ts +2 -0
- package/dist/modules/instance-ai/instance-ai-settings.service.js +8 -8
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-setup-telemetry.service.js +2 -2
- package/dist/modules/instance-ai/instance-ai-setup-telemetry.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.d.ts +2 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js +1 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-verification.service.js +3 -4
- package/dist/modules/instance-ai/instance-ai-verification.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +9 -4
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +194 -73
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +7 -1
- package/dist/modules/instance-ai/instance-ai.controller.js +38 -6
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +2 -1
- package/dist/modules/instance-ai/instance-ai.module.js +7 -0
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +15 -20
- package/dist/modules/instance-ai/instance-ai.service.js +267 -421
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-context.service.d.ts +48 -0
- package/dist/modules/instance-ai/instance-context.service.js +388 -0
- package/dist/modules/instance-ai/instance-context.service.js.map +1 -0
- package/dist/modules/instance-ai/internal-messages.d.ts +8 -0
- package/dist/modules/instance-ai/internal-messages.js +34 -3
- package/dist/modules/instance-ai/internal-messages.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.d.ts +4 -3
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +5 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +16 -0
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-thread.repository.d.ts +13 -3
- package/dist/modules/instance-ai/repositories/instance-ai-thread.repository.js +59 -4
- package/dist/modules/instance-ai/repositories/instance-ai-thread.repository.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +8 -2
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +91 -55
- 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 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +7 -2
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +53 -24
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.d.ts +1 -2
- package/dist/modules/instance-ai/storage/typeorm-observation-log-store.js.map +1 -1
- package/dist/modules/instance-ai/stream-transport-error.js +3 -1
- package/dist/modules/instance-ai/stream-transport-error.js.map +1 -1
- package/dist/modules/instance-ai/suspended-thread-persistence.service.js.map +1 -1
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -1
- package/dist/modules/instance-ai/workflow-templates.service.js +3 -5
- package/dist/modules/instance-ai/workflow-templates.service.js.map +1 -1
- package/dist/modules/instance-ai/workflow-verification-obligation-service.d.ts +2 -1
- package/dist/modules/instance-ai/workflow-verification-obligation-service.js +11 -3
- package/dist/modules/instance-ai/workflow-verification-obligation-service.js.map +1 -1
- package/dist/modules/instance-registry/checks/build-check-result.d.ts +13 -0
- package/dist/modules/instance-registry/checks/build-check-result.js +19 -0
- package/dist/modules/instance-registry/checks/build-check-result.js.map +1 -0
- package/dist/modules/instance-registry/checks/hostid-clash.check.js +13 -21
- package/dist/modules/instance-registry/checks/hostid-clash.check.js.map +1 -1
- package/dist/modules/instance-registry/checks/split-brain.check.js +14 -23
- package/dist/modules/instance-registry/checks/split-brain.check.js.map +1 -1
- package/dist/modules/instance-registry/checks/version-mismatch.check.js +17 -24
- package/dist/modules/instance-registry/checks/version-mismatch.check.js.map +1 -1
- package/dist/modules/instance-reporting.ee/database/entities/instance-monitoring-report.js.map +1 -0
- package/dist/modules/{instance-reporting → instance-reporting.ee}/database/repositories/instance-monitoring-report.repository.d.ts +1 -0
- package/dist/modules/{instance-reporting → instance-reporting.ee}/database/repositories/instance-monitoring-report.repository.js +8 -0
- package/dist/modules/instance-reporting.ee/database/repositories/instance-monitoring-report.repository.js.map +1 -0
- package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting-scheduler.service.d.ts +6 -6
- package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting-scheduler.service.js +10 -18
- package/dist/modules/instance-reporting.ee/instance-reporting-scheduler.service.js.map +1 -0
- package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js.map +1 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.config.js.map +1 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.constants.js.map +1 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.controller.d.ts +7 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.controller.js +35 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.controller.js.map +1 -0
- package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting.module.d.ts +8 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.module.js +49 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.module.js.map +1 -0
- package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting.service.d.ts +3 -1
- package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting.service.js +6 -2
- package/dist/modules/instance-reporting.ee/instance-reporting.service.js.map +1 -0
- package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +8 -6
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +9 -2
- package/dist/modules/mcp/mcp.service.js +28 -8
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +2 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +40 -10
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/get-data-table-rows.tool.d.ts +5 -5
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +3 -3
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-versions-diff.tool.js +2 -2
- package/dist/modules/mcp/tools/get-workflow-versions-diff.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +2 -1
- package/dist/modules/mcp/tools/schemas.js +6 -2
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/webhook-utils.js +8 -6
- package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +7 -2
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.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 +4 -3
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/top-level-items-warning.d.ts +13 -0
- package/dist/modules/mcp/tools/workflow-builder/top-level-items-warning.js +24 -0
- package/dist/modules/mcp/tools/workflow-builder/top-level-items-warning.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +23 -4
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +7 -9
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-connection.js +7 -2
- package/dist/modules/mcp-registry/mcp-registry-connection.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +32 -20
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js +8 -10
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mock-servers.js +2 -0
- package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +1 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +24 -7
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +27 -2
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +28 -8
- package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +2 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-published-state.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-published-state.js +9 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-published-state.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +5 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/entity-file-format.d.ts +1 -0
- package/dist/modules/n8n-packages/io/entity-file-format.js +7 -0
- package/dist/modules/n8n-packages/io/entity-file-format.js.map +1 -0
- package/dist/modules/n8n-packages/io/hashing-package-writer.d.ts +10 -0
- package/dist/modules/n8n-packages/io/hashing-package-writer.js +25 -0
- package/dist/modules/n8n-packages/io/hashing-package-writer.js.map +1 -0
- package/dist/modules/n8n-packages/io/manifest-entry.d.ts +38 -0
- package/dist/modules/n8n-packages/io/manifest-entry.js +26 -22
- package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +7 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js +10 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +5 -0
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/constants.d.ts +1 -0
- package/dist/modules/n8n-packages/spec/constants.js +2 -1
- package/dist/modules/n8n-packages/spec/constants.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.d.ts +9 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.js +8 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow-metadata.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +0 -3
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +0 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-key.service.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.module.js +2 -4
- package/dist/modules/oauth-jwe/oauth-jwe.module.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js +2 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +2 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +2 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +2 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +8 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js +2 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js +2 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +2 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js +2 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.js +3 -1
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-infrastructure.module.js.map +1 -1
- package/dist/modules/promotions.ee/base-branch-files.d.ts +67 -0
- package/dist/modules/promotions.ee/base-branch-files.js +75 -0
- package/dist/modules/promotions.ee/base-branch-files.js.map +1 -0
- package/dist/modules/promotions.ee/branch-placement.d.ts +15 -0
- package/dist/modules/promotions.ee/branch-placement.js +42 -0
- package/dist/modules/promotions.ee/branch-placement.js.map +1 -0
- package/dist/modules/{git-connections.ee → promotions.ee}/constants.d.ts +7 -1
- package/dist/modules/{git-connections.ee → promotions.ee}/constants.js +5 -2
- package/dist/modules/promotions.ee/constants.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-config.entity.d.ts +11 -0
- package/dist/modules/promotions.ee/database/entities/promotion-config.entity.js +44 -0
- package/dist/modules/promotions.ee/database/entities/promotion-config.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-connection-project.entity.d.ts +8 -0
- package/dist/modules/{git-connections.ee/database/entities/git-connection-project.entity.js → promotions.ee/database/entities/promotion-connection-project.entity.js} +13 -13
- package/dist/modules/promotions.ee/database/entities/promotion-connection-project.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +11 -0
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js +45 -0
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-provider.entity.d.ts +9 -0
- package/dist/modules/promotions.ee/database/entities/promotion-provider.entity.js +41 -0
- package/dist/modules/promotions.ee/database/entities/promotion-provider.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/promotion-conflict.error.d.ts +6 -0
- package/dist/modules/promotions.ee/database/promotion-conflict.error.js +12 -0
- package/dist/modules/promotions.ee/database/promotion-conflict.error.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.d.ts +19 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.js +67 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-config.repository.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection-project.repository.d.ts +10 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection-project.repository.js +54 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection-project.repository.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +27 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js +77 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.d.ts +19 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +71 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -0
- package/dist/modules/promotions.ee/diff-package-files.d.ts +13 -0
- package/dist/modules/promotions.ee/diff-package-files.js +48 -0
- package/dist/modules/promotions.ee/diff-package-files.js.map +1 -0
- package/dist/modules/promotions.ee/import-manifest-bridge.d.ts +8 -0
- package/dist/modules/promotions.ee/import-manifest-bridge.js +254 -0
- package/dist/modules/promotions.ee/import-manifest-bridge.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-change.service.d.ts +14 -0
- package/dist/modules/promotions.ee/promotion-change.service.js +211 -0
- package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-changes.controller.d.ts +9 -0
- package/dist/modules/promotions.ee/promotion-changes.controller.js +50 -0
- package/dist/modules/promotions.ee/promotion-changes.controller.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-config-settings.d.ts +6 -0
- package/dist/modules/promotions.ee/promotion-config-settings.js +13 -0
- package/dist/modules/promotions.ee/promotion-config-settings.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-config.resolver.d.ts +16 -0
- package/dist/modules/promotions.ee/promotion-config.resolver.js +97 -0
- package/dist/modules/promotions.ee/promotion-config.resolver.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-conflicts.d.ts +1 -0
- package/dist/modules/promotions.ee/promotion-conflicts.js +16 -0
- package/dist/modules/promotions.ee/promotion-conflicts.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-connections.service.d.ts +70 -0
- package/dist/modules/promotions.ee/promotion-connections.service.js +274 -0
- package/dist/modules/promotions.ee/promotion-connections.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-providers.service.d.ts +48 -0
- package/dist/modules/promotions.ee/promotion-providers.service.js +166 -0
- package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-working-directory.service.d.ts +19 -0
- package/dist/modules/promotions.ee/promotion-working-directory.service.js +82 -0
- package/dist/modules/promotions.ee/promotion-working-directory.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotions-git.service.d.ts +59 -0
- package/dist/modules/promotions.ee/promotions-git.service.js +402 -0
- package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotions-git.utils.d.ts +16 -0
- package/dist/modules/{git-connections.ee/git-connections-git.utils.js → promotions.ee/promotions-git.utils.js} +15 -3
- package/dist/modules/promotions.ee/promotions-git.utils.js.map +1 -0
- package/dist/modules/promotions.ee/promotions.module.d.ts +5 -0
- package/dist/modules/promotions.ee/promotions.module.js +35 -0
- package/dist/modules/promotions.ee/promotions.module.js.map +1 -0
- package/dist/modules/promotions.ee/promotions.service.d.ts +43 -0
- package/dist/modules/promotions.ee/promotions.service.js +413 -0
- package/dist/modules/promotions.ee/promotions.service.js.map +1 -0
- package/dist/modules/promotions.ee/promotions.types.d.ts +61 -0
- package/dist/modules/promotions.ee/promotions.types.js +15 -0
- package/dist/modules/promotions.ee/promotions.types.js.map +1 -0
- package/dist/modules/promotions.ee/working-copy-updater.d.ts +53 -0
- package/dist/modules/promotions.ee/working-copy-updater.js +487 -0
- package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -0
- package/dist/modules/redaction/dynamic-credentials-context-hook.d.ts +13 -0
- package/dist/modules/redaction/dynamic-credentials-context-hook.js +68 -0
- package/dist/modules/redaction/dynamic-credentials-context-hook.js.map +1 -0
- package/dist/modules/redaction/executions/execution-redaction.service.js +11 -1
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
- package/dist/modules/redaction/redaction.module.js +2 -1
- package/dist/modules/redaction/redaction.module.js.map +1 -1
- package/dist/modules/runtime-credentials/runtime-credentials.module.js +2 -4
- package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +7 -4
- package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.js +3 -6
- package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +7 -4
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +40 -9
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
- package/dist/modules/token-exchange/token-exchange.module.js +3 -5
- package/dist/modules/token-exchange/token-exchange.module.js.map +1 -1
- package/dist/modules/type-availability-policies/available-types.controller.d.ts +10 -0
- package/dist/modules/type-availability-policies/available-types.controller.js +57 -0
- package/dist/modules/type-availability-policies/available-types.controller.js.map +1 -0
- package/dist/modules/type-availability-policies/constants.d.ts +1 -0
- package/dist/modules/type-availability-policies/constants.js +5 -0
- package/dist/modules/type-availability-policies/constants.js.map +1 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.d.ts +1 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js +11 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js.map +1 -1
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy.repository.d.ts +2 -1
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy.repository.js +18 -5
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy.repository.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-evaluator.d.ts +15 -1
- package/dist/modules/type-availability-policies/policy-evaluator.js +74 -5
- package/dist/modules/type-availability-policies/policy-evaluator.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-rule.types.d.ts +2 -13
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +7 -1
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.d.ts +5 -8
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js +10 -13
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy-project.controller.d.ts +25 -0
- package/dist/modules/type-availability-policies/type-availability-policy-project.controller.js +67 -0
- package/dist/modules/type-availability-policies/type-availability-policy-project.controller.js.map +1 -0
- package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +7 -0
- package/dist/modules/type-availability-policies/type-availability-policy.service.js +78 -6
- package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/node-types.js +9 -6
- package/dist/node-types.js.map +1 -1
- package/dist/posthog/index.js +2 -1
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/public-api-controller.registry.js +17 -10
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-route-resolver.d.ts +11 -1
- package/dist/public-api/public-api-route-resolver.js +17 -2
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/public-api-validation-error.d.ts +1 -1
- package/dist/public-api/public-api-validation-error.js.map +1 -1
- package/dist/public-api/types.d.ts +1 -29
- package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +18 -2
- package/dist/public-api/v1/controllers/credentials.public.controller.js +210 -5
- package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/executions.public.controller.js +6 -17
- package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/index.d.ts +4 -1
- package/dist/public-api/v1/controllers/index.js +4 -1
- package/dist/public-api/v1/controllers/index.js.map +1 -1
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.d.ts +13 -0
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +141 -0
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/projects.public.controller.d.ts +19 -0
- package/dist/public-api/v1/controllers/projects.public.controller.js +231 -0
- package/dist/public-api/v1/controllers/projects.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +33 -0
- package/dist/public-api/v1/controllers/promotions.public.controller.js +503 -0
- package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.js +3 -3
- package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/roles.public.controller.d.ts +3 -3
- package/dist/public-api/v1/controllers/roles.public.controller.js +14 -14
- package/dist/public-api/v1/controllers/roles.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/source-control.public.controller.d.ts +5 -2
- package/dist/public-api/v1/controllers/source-control.public.controller.js +50 -4
- package/dist/public-api/v1/controllers/source-control.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/tags.public.controller.d.ts +3 -1
- package/dist/public-api/v1/controllers/tags.public.controller.js +56 -6
- package/dist/public-api/v1/controllers/tags.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/variables.public.controller.d.ts +12 -0
- package/dist/public-api/v1/controllers/variables.public.controller.js +127 -0
- package/dist/public-api/v1/controllers/variables.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.js +20 -29
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.handler.d.ts +0 -4
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js +0 -159
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.utils.d.ts +6 -0
- package/dist/public-api/v1/handlers/credentials/credentials.utils.js +30 -0
- package/dist/public-api/v1/handlers/credentials/credentials.utils.js.map +1 -1
- package/dist/public-api/v1/handlers/tags/tags.handler.d.ts +0 -2
- package/dist/public-api/v1/handlers/tags/tags.handler.js +0 -27
- package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +3 -2
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +4712 -2646
- package/dist/public-api/v1/shared/project.mapper.d.ts +3 -0
- package/dist/public-api/v1/shared/project.mapper.js +20 -0
- package/dist/public-api/v1/shared/project.mapper.js.map +1 -0
- package/dist/push/abstract.push.d.ts +3 -1
- package/dist/push/abstract.push.js +2 -2
- package/dist/push/abstract.push.js.map +1 -1
- package/dist/push/index.d.ts +3 -1
- package/dist/push/index.js +2 -2
- package/dist/push/index.js.map +1 -1
- package/dist/requests.d.ts +0 -8
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/constants.js +3 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/job-processor.d.ts +2 -0
- package/dist/scaling/job-processor.js +54 -9
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +13 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +4 -1
- package/dist/scaling/scaling.service.d.ts +3 -1
- package/dist/scaling/scaling.service.js +5 -3
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-task.d.ts +2 -5
- package/dist/scheduling/poll-trigger-node/poll-trigger-task.js +2 -3
- package/dist/scheduling/poll-trigger-node/poll-trigger-task.js.map +1 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task-handler.js.map +1 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task.d.ts +2 -5
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task.js +2 -3
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task.js.map +1 -1
- package/dist/scheduling/system-tasks/main-system-tasks.d.ts +2 -1
- package/dist/scheduling/system-tasks/main-system-tasks.js +19 -2
- package/dist/scheduling/system-tasks/main-system-tasks.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-runner.js +3 -3
- package/dist/scheduling/system-tasks/system-task-runner.js.map +1 -1
- package/dist/scheduling/workflow-node-task-payload.d.ts +5 -0
- package/dist/scheduling/workflow-node-task-payload.js +7 -0
- package/dist/scheduling/workflow-node-task-payload.js.map +1 -0
- package/dist/server.d.ts +2 -0
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/services/ai-preference.service.d.ts +46 -0
- package/dist/services/ai-preference.service.js +336 -0
- package/dist/services/ai-preference.service.js.map +1 -0
- package/dist/services/annotation-tag.service.ee.js.map +1 -1
- package/dist/services/credentials-tester.service.js +2 -24
- package/dist/services/credentials-tester.service.js.map +1 -1
- package/dist/services/dynamic-node-parameters.service.js +3 -1
- package/dist/services/dynamic-node-parameters.service.js.map +1 -1
- package/dist/services/email-change.service.d.ts +21 -0
- package/dist/services/email-change.service.js +84 -0
- package/dist/services/email-change.service.js.map +1 -0
- package/dist/services/engine-v2-dispatcher.service.js +1 -1
- package/dist/services/engine-v2-dispatcher.service.js.map +1 -1
- package/dist/services/engine-v2-payload-guard.service.d.ts +13 -0
- package/dist/services/engine-v2-payload-guard.service.js +49 -0
- package/dist/services/engine-v2-payload-guard.service.js.map +1 -0
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +8 -3
- package/dist/services/project.service.ee.js +2 -0
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +14 -0
- package/dist/services/pruning/execution-pruning-soft-delete.task.js +38 -0
- package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -0
- package/dist/services/pruning/executions-pruning.service.d.ts +0 -2
- package/dist/services/pruning/executions-pruning.service.js +5 -11
- package/dist/services/pruning/executions-pruning.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +14 -0
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js +38 -0
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -0
- package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +12 -0
- package/dist/services/pruning/workflow-history-compaction-trim.task.js +40 -0
- package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -0
- package/dist/services/pruning/workflow-history-compaction.service.d.ts +7 -10
- package/dist/services/pruning/workflow-history-compaction.service.js +41 -59
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +6 -0
- package/dist/services/workflow-statistics.service.js +40 -30
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker-ws-server.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
- package/dist/task-runners/task-managers/local-task-requester.js.map +1 -1
- package/dist/task-runners/task-runner-module.js.map +1 -1
- package/dist/user-management/email/interfaces.d.ts +11 -0
- package/dist/user-management/email/templates/email-change-completed.handlebars +183 -0
- package/dist/user-management/email/templates/email-change-requested.handlebars +206 -0
- package/dist/user-management/email/user-management-mailer.d.ts +4 -2
- package/dist/user-management/email/user-management-mailer.js +20 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/utils/is-billable-execution.d.ts +5 -0
- package/dist/utils/is-billable-execution.js +32 -0
- package/dist/utils/is-billable-execution.js.map +1 -0
- package/dist/utils/object-to-error.js.map +1 -1
- package/dist/webhooks/engine-v2-webhooks.d.ts +4 -7
- package/dist/webhooks/engine-v2-webhooks.js +6 -24
- package/dist/webhooks/engine-v2-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +9 -2
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/workflow-execute-additional-data.js +9 -2
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-runner.d.ts +7 -3
- package/dist/workflow-runner.js +54 -29
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/publication/published-workflow-trigger-deactivator.d.ts +1 -0
- package/dist/workflows/publication/published-workflow-trigger-deactivator.js +12 -4
- package/dist/workflows/publication/published-workflow-trigger-deactivator.js.map +1 -1
- package/dist/workflows/publication/trigger-diff.d.ts +4 -1
- package/dist/workflows/publication/trigger-diff.js +12 -2
- package/dist/workflows/publication/trigger-diff.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.js +3 -1
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-lifecycle-lock.d.ts +7 -1
- package/dist/workflows/publication/workflow-publication-lifecycle-lock.js +18 -4
- package/dist/workflows/publication/workflow-publication-lifecycle-lock.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.d.ts +3 -10
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js +4 -49
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.d.ts +15 -0
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js +38 -0
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js.map +1 -0
- package/dist/workflows/publication/workflow-publication-outbox-consumer.d.ts +2 -0
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js +62 -27
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-reconciler.service.d.ts +1 -0
- package/dist/workflows/publication/workflow-publication-reconciler.service.js +21 -8
- package/dist/workflows/publication/workflow-publication-reconciler.service.js.map +1 -1
- package/dist/workflows/triggers/engine-v2-active-triggers.d.ts +16 -0
- package/dist/workflows/triggers/engine-v2-active-triggers.js +39 -0
- package/dist/workflows/triggers/engine-v2-active-triggers.js.map +1 -0
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +4 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.js +41 -6
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +8 -3
- package/dist/workflows/workflow-execution.service.js +44 -5
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-finder.service.js +6 -2
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/package.json +49 -57
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.d.ts +0 -7
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js +0 -38
- package/dist/modules/agents/entities/agent-memory-entry-cursor.entity.js.map +0 -1
- package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.d.ts +0 -5
- package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.js +0 -26
- package/dist/modules/agents/repositories/agent-memory-entry-cursor.repository.js.map +0 -1
- package/dist/modules/breaking-changes/rules/v3/task-runner-internal-mode.rule.js +0 -51
- package/dist/modules/breaking-changes/rules/v3/task-runner-internal-mode.rule.js.map +0 -1
- package/dist/modules/git-connections.ee/constants.js.map +0 -1
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.d.ts +0 -8
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.js.map +0 -1
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.d.ts +0 -14
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.js +0 -61
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.js.map +0 -1
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.d.ts +0 -11
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.js +0 -58
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.js.map +0 -1
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.d.ts +0 -12
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.js +0 -37
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.js.map +0 -1
- package/dist/modules/git-connections.ee/git-connections-git.service.d.ts +0 -60
- package/dist/modules/git-connections.ee/git-connections-git.service.js +0 -281
- package/dist/modules/git-connections.ee/git-connections-git.service.js.map +0 -1
- package/dist/modules/git-connections.ee/git-connections-git.utils.d.ts +0 -13
- package/dist/modules/git-connections.ee/git-connections-git.utils.js.map +0 -1
- package/dist/modules/git-connections.ee/git-connections.module.d.ts +0 -5
- package/dist/modules/git-connections.ee/git-connections.module.js +0 -32
- package/dist/modules/git-connections.ee/git-connections.module.js.map +0 -1
- package/dist/modules/git-connections.ee/git-connections.service.d.ts +0 -70
- package/dist/modules/git-connections.ee/git-connections.service.js +0 -476
- package/dist/modules/git-connections.ee/git-connections.service.js.map +0 -1
- package/dist/modules/insights/whole-seconds.d.ts +0 -1
- package/dist/modules/insights/whole-seconds.js +0 -7
- package/dist/modules/insights/whole-seconds.js.map +0 -1
- package/dist/modules/instance-reporting/database/entities/instance-monitoring-report.js.map +0 -1
- package/dist/modules/instance-reporting/database/repositories/instance-monitoring-report.repository.js.map +0 -1
- package/dist/modules/instance-reporting/instance-reporting-scheduler.service.js.map +0 -1
- package/dist/modules/instance-reporting/instance-reporting-settings.service.js.map +0 -1
- package/dist/modules/instance-reporting/instance-reporting.config.js.map +0 -1
- package/dist/modules/instance-reporting/instance-reporting.constants.js.map +0 -1
- package/dist/modules/instance-reporting/instance-reporting.module.js +0 -26
- package/dist/modules/instance-reporting/instance-reporting.module.js.map +0 -1
- package/dist/modules/instance-reporting/instance-reporting.service.js.map +0 -1
- package/dist/modules/type-availability-policies/dto/create-policy-document.dto.d.ts +0 -80
- package/dist/modules/type-availability-policies/dto/create-policy-document.dto.js +0 -11
- package/dist/modules/type-availability-policies/dto/create-policy-document.dto.js.map +0 -1
- package/dist/modules/type-availability-policies/dto/policy-rule.schema.d.ts +0 -108
- package/dist/modules/type-availability-policies/dto/policy-rule.schema.js +0 -30
- package/dist/modules/type-availability-policies/dto/policy-rule.schema.js.map +0 -1
- package/dist/modules/type-availability-policies/dto/policy-selector.schema.d.ts +0 -20
- package/dist/modules/type-availability-policies/dto/policy-selector.schema.js +0 -9
- package/dist/modules/type-availability-policies/dto/policy-selector.schema.js.map +0 -1
- package/dist/modules/type-availability-policies/dto/put-instance-policy.dto.d.ts +0 -85
- package/dist/modules/type-availability-policies/dto/put-instance-policy.dto.js +0 -14
- package/dist/modules/type-availability-policies/dto/put-instance-policy.dto.js.map +0 -1
- package/dist/modules/type-availability-policies/dto/replace-attachments.dto.d.ts +0 -97
- package/dist/modules/type-availability-policies/dto/replace-attachments.dto.js +0 -36
- package/dist/modules/type-availability-policies/dto/replace-attachments.dto.js.map +0 -1
- package/dist/modules/type-availability-policies/dto/update-policy-document.dto.d.ts +0 -83
- package/dist/modules/type-availability-policies/dto/update-policy-document.dto.js +0 -13
- package/dist/modules/type-availability-policies/dto/update-policy-document.dto.js.map +0 -1
- package/dist/public-api/v1/controllers/git-connections.public.controller.d.ts +0 -21
- package/dist/public-api/v1/controllers/git-connections.public.controller.js +0 -302
- package/dist/public-api/v1/controllers/git-connections.public.controller.js.map +0 -1
- package/dist/public-api/v1/handlers/credentials/credentials.mapper.d.ts +0 -6
- package/dist/public-api/v1/handlers/credentials/credentials.mapper.js +0 -19
- package/dist/public-api/v1/handlers/credentials/credentials.mapper.js.map +0 -1
- package/dist/public-api/v1/handlers/credentials/credentials.middleware.d.ts +0 -6
- package/dist/public-api/v1/handlers/credentials/credentials.middleware.js +0 -91
- package/dist/public-api/v1/handlers/credentials/credentials.middleware.js.map +0 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.d.ts +0 -31
- package/dist/public-api/v1/handlers/projects/projects.handler.js +0 -165
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +0 -1
- package/dist/public-api/v1/handlers/source-control/source-control.handler.d.ts +0 -7
- package/dist/public-api/v1/handlers/source-control/source-control.handler.js +0 -46
- package/dist/public-api/v1/handlers/source-control/source-control.handler.js.map +0 -1
- package/dist/public-api/v1/handlers/variables/variables.handler.d.ts +0 -15
- package/dist/public-api/v1/handlers/variables/variables.handler.js +0 -56
- package/dist/public-api/v1/handlers/variables/variables.handler.js.map +0 -1
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/database/entities/instance-monitoring-report.d.ts +0 -0
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/database/entities/instance-monitoring-report.js +0 -0
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting-settings.service.d.ts +0 -0
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting-settings.service.js +0 -0
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting.config.d.ts +0 -0
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting.config.js +0 -0
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting.constants.d.ts +0 -0
- /package/dist/modules/{instance-reporting → instance-reporting.ee}/instance-reporting.constants.js +0 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.PromotionsService = void 0;
|
|
16
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
17
|
+
const db_1 = require("@n8n/db");
|
|
18
|
+
const di_1 = require("@n8n/di");
|
|
19
|
+
const promises_1 = require("node:fs/promises");
|
|
20
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
21
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
22
|
+
const bad_request_error_1 = require("../../errors/response-errors/bad-request.error");
|
|
23
|
+
const not_found_error_1 = require("../../errors/response-errors/not-found.error");
|
|
24
|
+
const n8n_packages_service_1 = require("../../modules/n8n-packages/n8n-packages.service");
|
|
25
|
+
const n8n_packages_types_1 = require("../../modules/n8n-packages/n8n-packages.types");
|
|
26
|
+
const constants_1 = require("../../modules/n8n-packages/spec/constants");
|
|
27
|
+
const project_service_ee_1 = require("../../services/project.service.ee");
|
|
28
|
+
const base_branch_files_1 = require("./base-branch-files");
|
|
29
|
+
const constants_2 = require("./constants");
|
|
30
|
+
const promotion_config_resolver_1 = require("./promotion-config.resolver");
|
|
31
|
+
const promotion_providers_service_1 = require("./promotion-providers.service");
|
|
32
|
+
const promotion_working_directory_service_1 = require("./promotion-working-directory.service");
|
|
33
|
+
const promotions_git_service_1 = require("./promotions-git.service");
|
|
34
|
+
const promotions_git_utils_1 = require("./promotions-git.utils");
|
|
35
|
+
const working_copy_updater_1 = require("./working-copy-updater");
|
|
36
|
+
const IMPORT_POLICY = {
|
|
37
|
+
projectConflictPolicy: n8n_packages_types_1.ProjectConflictPolicy.Overwrite,
|
|
38
|
+
workflowConflictPolicy: n8n_packages_types_1.WorkflowConflictPolicy.NewVersion,
|
|
39
|
+
workflowIdPolicy: n8n_packages_types_1.WorkflowIdPolicy.Source,
|
|
40
|
+
workflowPublishingPolicy: n8n_packages_types_1.WorkflowPublishingPolicy.MatchSource,
|
|
41
|
+
missingNodeTypeMode: n8n_packages_types_1.MissingNodeTypeMode.Fail,
|
|
42
|
+
credentialMatchingMode: 'id-only',
|
|
43
|
+
credentialMissingMode: 'create-stub',
|
|
44
|
+
folderConflictPolicy: n8n_packages_types_1.FolderConflictPolicy.Overwrite,
|
|
45
|
+
overwriteDeletionPolicy: n8n_packages_types_1.OverwriteDeletionPolicy.HardDelete,
|
|
46
|
+
dataTableMatchingMode: 'by-id',
|
|
47
|
+
dataTableMissingMode: n8n_packages_types_1.DataTableMissingMode.Create,
|
|
48
|
+
dataTableSchemaConflictPolicy: n8n_packages_types_1.DataTableSchemaConflictPolicy.Fail,
|
|
49
|
+
variableMissingMode: n8n_packages_types_1.VariableMissingMode.CreateWithValue,
|
|
50
|
+
variableConflictPolicy: n8n_packages_types_1.VariableConflictPolicy.Overwrite,
|
|
51
|
+
tagMissingMode: n8n_packages_types_1.TagMissingMode.Create,
|
|
52
|
+
tagConflictPolicy: n8n_packages_types_1.TagConflictPolicy.Rename,
|
|
53
|
+
};
|
|
54
|
+
let PromotionsService = class PromotionsService {
|
|
55
|
+
constructor(resolver, providersService, workingDirectory, workingCopy, gitService, projectRepository, projectService, n8nPackagesService, logger) {
|
|
56
|
+
this.resolver = resolver;
|
|
57
|
+
this.providersService = providersService;
|
|
58
|
+
this.workingDirectory = workingDirectory;
|
|
59
|
+
this.workingCopy = workingCopy;
|
|
60
|
+
this.gitService = gitService;
|
|
61
|
+
this.projectRepository = projectRepository;
|
|
62
|
+
this.projectService = projectService;
|
|
63
|
+
this.n8nPackagesService = n8nPackagesService;
|
|
64
|
+
this.logger = logger;
|
|
65
|
+
this.logger = this.logger.scoped('promotions');
|
|
66
|
+
}
|
|
67
|
+
async clone(connectionId, direction) {
|
|
68
|
+
const input = await this.resolver.resolveForConnection(connectionId, direction);
|
|
69
|
+
const branchName = (0, promotions_git_utils_1.checkoutBranchName)(input.config);
|
|
70
|
+
await this.gitService.clone({
|
|
71
|
+
remoteUrl: (0, promotions_git_utils_1.repositoryUrl)(input),
|
|
72
|
+
credentials: await this.credentialsFor(input),
|
|
73
|
+
paths: this.workingDirectory.paths(input.configId),
|
|
74
|
+
branchName,
|
|
75
|
+
configId: input.configId,
|
|
76
|
+
});
|
|
77
|
+
await this.workingDirectory.writeDescriptor(this.descriptorFor(input));
|
|
78
|
+
return { ...this.checkoutIdentity(input), branchName, hasCheckout: true };
|
|
79
|
+
}
|
|
80
|
+
async disconnect(connectionId, direction) {
|
|
81
|
+
const input = await this.resolver.resolveForConnection(connectionId, direction);
|
|
82
|
+
await this.workingDirectory.resetCheckout(input.configId);
|
|
83
|
+
return {
|
|
84
|
+
...this.checkoutIdentity(input),
|
|
85
|
+
branchName: (0, promotions_git_utils_1.checkoutBranchName)(input.config),
|
|
86
|
+
hasCheckout: false,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
async promote(connectionId, actor, request) {
|
|
90
|
+
const input = await this.resolver.resolveForConnection(connectionId, 'promote');
|
|
91
|
+
if (input.config.direction !== 'promote') {
|
|
92
|
+
throw new n8n_workflow_1.UnexpectedError('Resolved an invalid promotion direction');
|
|
93
|
+
}
|
|
94
|
+
this.assertInstanceScope(input, 'Promote');
|
|
95
|
+
await this.assertCheckoutReady(input, 'promoting');
|
|
96
|
+
const branchName = (0, promotions_git_utils_1.checkoutBranchName)(input.config);
|
|
97
|
+
const targetBranchName = input.config.settings.createBranchOnPromotion
|
|
98
|
+
? (0, promotions_git_utils_1.buildPromotionBranchName)(new Date())
|
|
99
|
+
: undefined;
|
|
100
|
+
const credentials = await this.credentialsFor(input);
|
|
101
|
+
if (targetBranchName) {
|
|
102
|
+
await this.gitService.validateBranchName(targetBranchName);
|
|
103
|
+
await this.gitService.prepareCheckoutForPromotion({
|
|
104
|
+
remoteUrl: (0, promotions_git_utils_1.repositoryUrl)(input),
|
|
105
|
+
credentials,
|
|
106
|
+
paths: this.workingDirectory.paths(input.configId),
|
|
107
|
+
branchName,
|
|
108
|
+
configId: input.configId,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
const { repositoryFolder } = this.workingDirectory.paths(input.configId);
|
|
112
|
+
const packageFolder = node_path_1.default.join(repositoryFolder, constants_2.PACKAGE_SUBFOLDER);
|
|
113
|
+
const projectIds = await this.projectRepository.findTeamProjectIds();
|
|
114
|
+
this.logger.info('Exporting projects for a promotion', {
|
|
115
|
+
connectionId,
|
|
116
|
+
configId: input.configId,
|
|
117
|
+
projectCount: projectIds.length,
|
|
118
|
+
});
|
|
119
|
+
await (0, promises_1.mkdir)(repositoryFolder, { recursive: true });
|
|
120
|
+
const stagingFolder = await (0, promises_1.mkdtemp)(node_path_1.default.join(repositoryFolder, `.${constants_2.PACKAGE_SUBFOLDER}-`));
|
|
121
|
+
try {
|
|
122
|
+
const exportResult = await this.n8nPackagesService.exportPackageToDirectory({
|
|
123
|
+
user: actor,
|
|
124
|
+
projectIds,
|
|
125
|
+
includeVariableValues: true,
|
|
126
|
+
canExportVariableValues: request.canExportVariableValues,
|
|
127
|
+
includeTags: true,
|
|
128
|
+
includeArchivedWorkflows: true,
|
|
129
|
+
missingWorkflowDependencyPolicy: n8n_packages_types_1.MissingWorkflowDependencyPolicy.Fail,
|
|
130
|
+
workflowVersionPolicy: n8n_packages_types_1.WorkflowVersionPolicy.Latest,
|
|
131
|
+
}, { targetDir: stagingFolder });
|
|
132
|
+
await (0, promises_1.rm)(packageFolder, { recursive: true, force: true });
|
|
133
|
+
await (0, promises_1.rename)(stagingFolder, packageFolder);
|
|
134
|
+
if (targetBranchName) {
|
|
135
|
+
await this.workingDirectory.invalidateDescriptor(input.configId);
|
|
136
|
+
}
|
|
137
|
+
const { commitSha } = await this.gitService.commitAndPush({
|
|
138
|
+
remoteUrl: (0, promotions_git_utils_1.repositoryUrl)(input),
|
|
139
|
+
credentials,
|
|
140
|
+
paths: this.workingDirectory.paths(input.configId),
|
|
141
|
+
branchName,
|
|
142
|
+
targetBranchName,
|
|
143
|
+
configId: input.configId,
|
|
144
|
+
author: this.commitAuthor(actor),
|
|
145
|
+
commitMessage: request.commitMessage,
|
|
146
|
+
force: targetBranchName ? false : (request.force ?? false),
|
|
147
|
+
stagePathspec: constants_2.PACKAGE_SUBFOLDER,
|
|
148
|
+
onCheckoutRestored: async () => await this.workingDirectory.writeDescriptor(this.descriptorFor(input)),
|
|
149
|
+
});
|
|
150
|
+
return {
|
|
151
|
+
connectionId: input.connectionId,
|
|
152
|
+
configId: input.configId,
|
|
153
|
+
counts: exportResult.counts,
|
|
154
|
+
git: { commitSha, branchName: targetBranchName ?? branchName },
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
finally {
|
|
158
|
+
await (0, promises_1.rm)(stagingFolder, { recursive: true, force: true });
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
async promoteSelection(connectionId, actor, request, selection) {
|
|
162
|
+
if (request.force) {
|
|
163
|
+
throw new bad_request_error_1.BadRequestError("Selective promotion doesn't support force. Set force to false and try again.");
|
|
164
|
+
}
|
|
165
|
+
const input = await this.resolver.resolveForConnection(connectionId, 'promote');
|
|
166
|
+
this.assertInstanceScope(input, 'Promote');
|
|
167
|
+
this.workingCopy.validateSelection(selection);
|
|
168
|
+
await this.assertTeamProject(selection.projectId);
|
|
169
|
+
await this.assertCheckoutReady(input, 'promoting');
|
|
170
|
+
const branchName = (0, promotions_git_utils_1.checkoutBranchName)(input.config);
|
|
171
|
+
const { repositoryFolder } = this.workingDirectory.paths(input.configId);
|
|
172
|
+
const packageFolder = node_path_1.default.join(repositoryFolder, constants_2.PACKAGE_SUBFOLDER);
|
|
173
|
+
if (!(await this.hasExportedPackage(packageFolder))) {
|
|
174
|
+
throw new bad_request_error_1.BadRequestError('The local checkout has no exported package. Promote the instance first, then promote a selection.');
|
|
175
|
+
}
|
|
176
|
+
const branch = await this.workingCopy.assertSelectionFitsBranch(packageFolder, selection);
|
|
177
|
+
const stagingFolder = await (0, promises_1.mkdtemp)(node_path_1.default.join(repositoryFolder, `.${constants_2.PACKAGE_SUBFOLDER}-`));
|
|
178
|
+
const prePushBackup = `${packageFolder}.pre-selection`;
|
|
179
|
+
let backedUp = false;
|
|
180
|
+
let keepPrePushBackup = false;
|
|
181
|
+
try {
|
|
182
|
+
await (0, promises_1.rm)(prePushBackup, { recursive: true, force: true });
|
|
183
|
+
await (0, promises_1.cp)(packageFolder, prePushBackup, { recursive: true, verbatimSymlinks: true });
|
|
184
|
+
backedUp = true;
|
|
185
|
+
const { manifest: staging, counts } = await this.n8nPackagesService.exportPackageToDirectory({
|
|
186
|
+
user: actor,
|
|
187
|
+
projectIds: [selection.projectId],
|
|
188
|
+
projectWorkflowIds: selection.workflowIds,
|
|
189
|
+
includeVariableValues: true,
|
|
190
|
+
canExportVariableValues: request.canExportVariableValues,
|
|
191
|
+
includeTags: true,
|
|
192
|
+
includeArchivedWorkflows: true,
|
|
193
|
+
missingWorkflowDependencyPolicy: n8n_packages_types_1.MissingWorkflowDependencyPolicy.ReferenceOnly,
|
|
194
|
+
workflowVersionPolicy: n8n_packages_types_1.WorkflowVersionPolicy.Latest,
|
|
195
|
+
}, { targetDir: stagingFolder });
|
|
196
|
+
await this.workingCopy.applySelection(packageFolder, stagingFolder, staging, selection, branch);
|
|
197
|
+
const { commitSha } = await this.gitService.commitAndPush({
|
|
198
|
+
remoteUrl: (0, promotions_git_utils_1.repositoryUrl)(input),
|
|
199
|
+
credentials: await this.credentialsFor(input),
|
|
200
|
+
paths: this.workingDirectory.paths(input.configId),
|
|
201
|
+
branchName,
|
|
202
|
+
configId: input.configId,
|
|
203
|
+
author: this.commitAuthor(actor),
|
|
204
|
+
commitMessage: request.commitMessage,
|
|
205
|
+
force: false,
|
|
206
|
+
stagePathspec: constants_2.PACKAGE_SUBFOLDER,
|
|
207
|
+
rollbackOnFailure: true,
|
|
208
|
+
onCheckoutRestored: async () => await this.workingDirectory.writeDescriptor(this.descriptorFor(input)),
|
|
209
|
+
});
|
|
210
|
+
return {
|
|
211
|
+
connectionId: input.connectionId,
|
|
212
|
+
configId: input.configId,
|
|
213
|
+
counts,
|
|
214
|
+
git: { commitSha, branchName },
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
if (backedUp) {
|
|
219
|
+
await (0, promises_1.rm)(packageFolder, { recursive: true, force: true }).catch((restoreError) => {
|
|
220
|
+
this.logger.warn('Failed to remove the incomplete selection after a failed promote', {
|
|
221
|
+
packageFolder,
|
|
222
|
+
error: restoreError,
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
try {
|
|
226
|
+
await (0, promises_1.rename)(prePushBackup, packageFolder);
|
|
227
|
+
}
|
|
228
|
+
catch (restoreError) {
|
|
229
|
+
keepPrePushBackup = true;
|
|
230
|
+
this.logger.warn('Failed to restore the package from the pre-selection copy. The copy is at the backup path.', { packageFolder, backupFolder: prePushBackup, error: restoreError });
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
throw error;
|
|
234
|
+
}
|
|
235
|
+
finally {
|
|
236
|
+
if (!keepPrePushBackup) {
|
|
237
|
+
await (0, promises_1.rm)(prePushBackup, { recursive: true, force: true }).catch((error) => {
|
|
238
|
+
this.logger.warn('Failed to remove the selection backup', { prePushBackup, error });
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
await (0, promises_1.rm)(stagingFolder, { recursive: true, force: true }).catch((error) => {
|
|
242
|
+
this.logger.warn('Failed to remove the selection staging folder', { stagingFolder, error });
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
async apply(connectionId, actor) {
|
|
247
|
+
const input = await this.resolver.resolveForConnection(connectionId, 'apply');
|
|
248
|
+
this.assertInstanceScope(input, 'Apply');
|
|
249
|
+
await this.assertCheckoutReady(input, 'applying');
|
|
250
|
+
const branchName = (0, promotions_git_utils_1.checkoutBranchName)(input.config);
|
|
251
|
+
const paths = this.workingDirectory.paths(input.configId);
|
|
252
|
+
const { commitSha } = await this.gitService.refreshCheckout({
|
|
253
|
+
remoteUrl: (0, promotions_git_utils_1.repositoryUrl)(input),
|
|
254
|
+
credentials: await this.credentialsFor(input),
|
|
255
|
+
paths,
|
|
256
|
+
branchName,
|
|
257
|
+
configId: input.configId,
|
|
258
|
+
});
|
|
259
|
+
const packageFolder = node_path_1.default.join(paths.repositoryFolder, constants_2.PACKAGE_SUBFOLDER);
|
|
260
|
+
if (!(await isDirectory(packageFolder))) {
|
|
261
|
+
throw new bad_request_error_1.BadRequestError('The remote branch has no exported package to import. Promote to it first.');
|
|
262
|
+
}
|
|
263
|
+
this.logger.info('Importing a package', { connectionId, configId: input.configId });
|
|
264
|
+
const result = await this.n8nPackagesService.importPackageFromDirectory({ user: actor, ...IMPORT_POLICY }, { sourceDir: packageFolder });
|
|
265
|
+
const importedProjectIds = result.projects.map((project) => project.localId);
|
|
266
|
+
const projectReconciliation = await this.reconcileTeamProjects(actor, importedProjectIds);
|
|
267
|
+
return {
|
|
268
|
+
connectionId: input.connectionId,
|
|
269
|
+
configId: input.configId,
|
|
270
|
+
counts: this.toApplyCounts({ importResult: result, projectReconciliation }),
|
|
271
|
+
git: { commitSha, branchName },
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
async listBaseBranchFiles(projectId) {
|
|
275
|
+
const input = await this.resolver.resolveForProject(projectId, 'promote');
|
|
276
|
+
await this.assertCheckoutReady(input, 'listing branch files');
|
|
277
|
+
const lsTreeOutput = await this.gitService.listBranchTree({
|
|
278
|
+
remoteUrl: (0, promotions_git_utils_1.repositoryUrl)(input),
|
|
279
|
+
credentials: await this.credentialsFor(input),
|
|
280
|
+
paths: this.workingDirectory.paths(input.configId),
|
|
281
|
+
branchName: (0, promotions_git_utils_1.checkoutBranchName)(input.config),
|
|
282
|
+
configId: input.configId,
|
|
283
|
+
pathspecs: base_branch_files_1.BASE_BRANCH_DIRECTORIES.map((directory) => `${constants_2.PACKAGE_SUBFOLDER}/${directory}/`),
|
|
284
|
+
});
|
|
285
|
+
return (0, base_branch_files_1.parseBaseBranchFiles)(lsTreeOutput, { exportRoot: constants_2.PACKAGE_SUBFOLDER, projectId });
|
|
286
|
+
}
|
|
287
|
+
assertInstanceScope(input, operation) {
|
|
288
|
+
if (input.connectionScope !== 'instance') {
|
|
289
|
+
throw new bad_request_error_1.BadRequestError(`${operation} is only available on the instance connection. Project connections are not supported yet.`);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
async assertTeamProject(projectId) {
|
|
293
|
+
const project = await this.projectRepository.findOneBy({ id: projectId });
|
|
294
|
+
if (!project)
|
|
295
|
+
throw new not_found_error_1.NotFoundError('Project not found');
|
|
296
|
+
if (project.type !== 'team') {
|
|
297
|
+
throw new bad_request_error_1.BadRequestError('Only team projects can use a promotion connection');
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
async hasExportedPackage(packageFolder) {
|
|
301
|
+
try {
|
|
302
|
+
return (await (0, promises_1.stat)(node_path_1.default.join(packageFolder, constants_1.MANIFEST_FILE))).isFile();
|
|
303
|
+
}
|
|
304
|
+
catch {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
async assertCheckoutReady(input, gerund) {
|
|
309
|
+
const { repositoryFolder } = this.workingDirectory.paths(input.configId);
|
|
310
|
+
const cloned = await this.gitService.hasCheckout(repositoryFolder);
|
|
311
|
+
const current = cloned && (await this.workingDirectory.matchesDescriptor(this.descriptorFor(input)));
|
|
312
|
+
if (!current) {
|
|
313
|
+
throw new bad_request_error_1.BadRequestError(`This ${input.config.direction} configuration is not cloned. Clone it before ${gerund}.`);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
descriptorFor(input) {
|
|
317
|
+
return {
|
|
318
|
+
schemaVersion: 1,
|
|
319
|
+
configId: input.configId,
|
|
320
|
+
connectionId: input.connectionId,
|
|
321
|
+
remoteUrl: (0, promotions_git_utils_1.repositoryUrl)(input),
|
|
322
|
+
checkoutBranchName: (0, promotions_git_utils_1.checkoutBranchName)(input.config),
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
checkoutIdentity(input) {
|
|
326
|
+
return {
|
|
327
|
+
connectionId: input.connectionId,
|
|
328
|
+
configId: input.configId,
|
|
329
|
+
direction: input.config.direction,
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
async credentialsFor(input) {
|
|
333
|
+
return await this.providersService.decryptCredentials({
|
|
334
|
+
authType: input.authType,
|
|
335
|
+
auth: input.encryptedAuth,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
async reconcileTeamProjects(actor, importedProjectIds) {
|
|
339
|
+
const imported = new Set(importedProjectIds);
|
|
340
|
+
const teamProjectIds = await this.projectRepository.findTeamProjectIds();
|
|
341
|
+
const removedProjectIds = teamProjectIds.filter((projectId) => !imported.has(projectId));
|
|
342
|
+
for (const projectId of removedProjectIds) {
|
|
343
|
+
await this.projectService.deleteProject(actor, projectId);
|
|
344
|
+
}
|
|
345
|
+
return { deletedProjectIds: removedProjectIds };
|
|
346
|
+
}
|
|
347
|
+
commitAuthor(user) {
|
|
348
|
+
const name = [user.firstName, user.lastName].filter(Boolean).join(' ') || constants_2.GIT_DEFAULT_COMMIT_NAME;
|
|
349
|
+
return { name, email: user.email ?? constants_2.GIT_DEFAULT_COMMIT_EMAIL };
|
|
350
|
+
}
|
|
351
|
+
toApplyCounts({ importResult, projectReconciliation, }) {
|
|
352
|
+
const tally = (rows, statuses) => {
|
|
353
|
+
const counts = Object.fromEntries(statuses.map((status) => [status, 0]));
|
|
354
|
+
for (const { status } of rows)
|
|
355
|
+
counts[status] += 1;
|
|
356
|
+
return counts;
|
|
357
|
+
};
|
|
358
|
+
return {
|
|
359
|
+
projects: {
|
|
360
|
+
...tally(importResult.projects, ['created', 'updated', 'skipped']),
|
|
361
|
+
deleted: projectReconciliation.deletedProjectIds.length,
|
|
362
|
+
},
|
|
363
|
+
folders: {
|
|
364
|
+
...tally(importResult.folders, ['created', 'skipped']),
|
|
365
|
+
removed: importResult.removedFolders.length,
|
|
366
|
+
},
|
|
367
|
+
workflows: {
|
|
368
|
+
...tally(importResult.workflows, ['created', 'updated', 'skipped']),
|
|
369
|
+
archived: importResult.removedWorkflows.filter(({ deletion }) => deletion === 'archived')
|
|
370
|
+
.length,
|
|
371
|
+
deleted: importResult.removedWorkflows.filter(({ deletion }) => deletion === 'deleted')
|
|
372
|
+
.length,
|
|
373
|
+
publishing: tally(importResult.workflows.map(({ publishing }) => ({ status: publishing.state })), ['published', 'unpublished', 'unchanged', 'blocked', 'failed']),
|
|
374
|
+
},
|
|
375
|
+
credentials: {
|
|
376
|
+
matched: importResult.credentials.matched.length,
|
|
377
|
+
stubbed: importResult.credentials.stubbed.length,
|
|
378
|
+
},
|
|
379
|
+
dataTables: {
|
|
380
|
+
matched: importResult.dataTables.matched,
|
|
381
|
+
created: importResult.dataTables.created,
|
|
382
|
+
},
|
|
383
|
+
variables: {
|
|
384
|
+
matched: importResult.variables.matched.length,
|
|
385
|
+
created: importResult.variables.created.length,
|
|
386
|
+
updated: importResult.variables.updated.length,
|
|
387
|
+
stubbed: importResult.variables.stubbed.length,
|
|
388
|
+
missing: importResult.variables.missing.length,
|
|
389
|
+
},
|
|
390
|
+
tags: {
|
|
391
|
+
matched: importResult.tags.matched.length,
|
|
392
|
+
created: importResult.tags.created.length,
|
|
393
|
+
renamed: importResult.tags.renamed.length,
|
|
394
|
+
reconciled: importResult.tags.reconciled.length,
|
|
395
|
+
skipped: importResult.tags.skipped.length,
|
|
396
|
+
},
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
exports.PromotionsService = PromotionsService;
|
|
401
|
+
exports.PromotionsService = PromotionsService = __decorate([
|
|
402
|
+
(0, di_1.Service)(),
|
|
403
|
+
__metadata("design:paramtypes", [promotion_config_resolver_1.PromotionConfigResolver, promotion_providers_service_1.PromotionProvidersService, promotion_working_directory_service_1.PromotionWorkingDirectoryService, working_copy_updater_1.WorkingCopyUpdater, promotions_git_service_1.PromotionsGitService, db_1.ProjectRepository, project_service_ee_1.ProjectService, n8n_packages_service_1.N8nPackagesService, backend_common_1.Logger])
|
|
404
|
+
], PromotionsService);
|
|
405
|
+
async function isDirectory(folder) {
|
|
406
|
+
try {
|
|
407
|
+
return (await (0, promises_1.stat)(folder)).isDirectory();
|
|
408
|
+
}
|
|
409
|
+
catch {
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
//# sourceMappingURL=promotions.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotions.service.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotions.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAOA,wDAA6C;AAC7C,gCAAuD;AACvD,gCAAkC;AAClC,+CAAwE;AACxE,0DAA6B;AAC7B,+CAA+C;AAE/C,kFAA6E;AAC7E,8EAAyE;AACzE,sFAAiF;AACjF,kFAkBmD;AACnD,qEAAsE;AACtE,sEAA+D;AAE/D,2DAI6B;AAC7B,2CAAmG;AACnG,2EAAsE;AACtE,+EAA0E;AAC1E,+FAAyF;AACzF,qEAAgE;AAChE,iEAIgC;AAEhC,iEAAuF;AAKvF,MAAM,aAAa,GAAgC;IAClD,qBAAqB,EAAE,0CAAqB,CAAC,SAAS;IACtD,sBAAsB,EAAE,2CAAsB,CAAC,UAAU;IACzD,gBAAgB,EAAE,qCAAgB,CAAC,MAAM;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AY,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM;aAC9C;YACD,IAAI,EAAE;gBACL,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;gBACzC,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;gBACzC,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;gBACzC,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM;gBAC/C,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;aACzC;SACD,CAAC;IACH,CAAC;CACD,CAAA;;4BApeY,iBAAiB;IAD7B,IAAA,YAAO,GAAE;qCAGmB,mDAAuB,EACf,uDAAyB,EACzB,sEAAgC,EACrC,yCAAkB,EACnB,6CAAoB,EACb,sBAAiB,EACpB,mCAAc,EACV,yCAAkB,EAC9B,uBAAM;GAVpB,iBAAiB,CAoe7B;AAED,KAAK,UAAU,WAAW,CAAC,MAAc;IACxC,IAAI,CAAC;QACJ,OAAO,CAAC,MAAM,IAAA,eAAI,EAAC,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,KAAK,CAAC;IACd,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { PromotionConnectionScope, PromotionConnectionTarget, PromotionProviderAuthType, PromotionProviderType, promotionGitApplySettingsSchema, promotionGitPromoteSettingsSchema } from '@n8n/api-types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export type PromotionGitApplySettings = z.infer<typeof promotionGitApplySettingsSchema>;
|
|
4
|
+
export type PromotionGitPromoteSettings = z.infer<typeof promotionGitPromoteSettingsSchema>;
|
|
5
|
+
export declare const promotionSshKeyAuthPayloadSchema: z.ZodObject<{
|
|
6
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
7
|
+
privateKey: z.ZodString;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
schemaVersion: 1;
|
|
10
|
+
privateKey: string;
|
|
11
|
+
}, {
|
|
12
|
+
schemaVersion: 1;
|
|
13
|
+
privateKey: string;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const promotionTokenAuthPayloadSchema: z.ZodObject<{
|
|
16
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
17
|
+
username: z.ZodString;
|
|
18
|
+
password: z.ZodString;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
schemaVersion: 1;
|
|
21
|
+
username: string;
|
|
22
|
+
password: string;
|
|
23
|
+
}, {
|
|
24
|
+
schemaVersion: 1;
|
|
25
|
+
username: string;
|
|
26
|
+
password: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type PromotionAuthPayload = z.infer<typeof promotionSshKeyAuthPayloadSchema> | z.infer<typeof promotionTokenAuthPayloadSchema>;
|
|
29
|
+
export type PromotionGitCredentials = {
|
|
30
|
+
authType: 'ssh-key';
|
|
31
|
+
privateKey: string;
|
|
32
|
+
} | {
|
|
33
|
+
authType: 'token';
|
|
34
|
+
username: string;
|
|
35
|
+
password: string;
|
|
36
|
+
};
|
|
37
|
+
export type ResolvedPromotionConfig = {
|
|
38
|
+
direction: 'apply';
|
|
39
|
+
settings: PromotionGitApplySettings;
|
|
40
|
+
} | {
|
|
41
|
+
direction: 'promote';
|
|
42
|
+
settings: PromotionGitPromoteSettings;
|
|
43
|
+
};
|
|
44
|
+
export type PromotionOperationInput = Readonly<{
|
|
45
|
+
connectionId: string;
|
|
46
|
+
connectionScope: PromotionConnectionScope;
|
|
47
|
+
configId: string;
|
|
48
|
+
providerId: string;
|
|
49
|
+
providerType: PromotionProviderType;
|
|
50
|
+
authType: PromotionProviderAuthType;
|
|
51
|
+
encryptedAuth: string;
|
|
52
|
+
target: PromotionConnectionTarget;
|
|
53
|
+
config: ResolvedPromotionConfig;
|
|
54
|
+
}>;
|
|
55
|
+
export type PromotionCacheDescriptor = {
|
|
56
|
+
schemaVersion: 1;
|
|
57
|
+
configId: string;
|
|
58
|
+
connectionId: string;
|
|
59
|
+
remoteUrl: string;
|
|
60
|
+
checkoutBranchName: string;
|
|
61
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.promotionTokenAuthPayloadSchema = exports.promotionSshKeyAuthPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.promotionSshKeyAuthPayloadSchema = zod_1.z
|
|
6
|
+
.object({ schemaVersion: zod_1.z.literal(1), privateKey: zod_1.z.string().min(1) })
|
|
7
|
+
.strict();
|
|
8
|
+
exports.promotionTokenAuthPayloadSchema = zod_1.z
|
|
9
|
+
.object({
|
|
10
|
+
schemaVersion: zod_1.z.literal(1),
|
|
11
|
+
username: zod_1.z.string().min(1),
|
|
12
|
+
password: zod_1.z.string().min(1),
|
|
13
|
+
})
|
|
14
|
+
.strict();
|
|
15
|
+
//# sourceMappingURL=promotions.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotions.types.js","sourceRoot":"","sources":["../../../src/modules/promotions.ee/promotions.types.ts"],"names":[],"mappings":";;;AAQA,6BAAwB;AAWX,QAAA,gCAAgC,GAAG,OAAC;KAC/C,MAAM,CAAC,EAAE,aAAa,EAAE,OAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;KACtE,MAAM,EAAE,CAAC;AAEE,QAAA,+BAA+B,GAAG,OAAC;KAC9C,MAAM,CAAC;IACP,aAAa,EAAE,OAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3B,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import { InstanceSettings } from 'n8n-core';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import type { PackageManifest } from '../../modules/n8n-packages/spec/manifest.schema';
|
|
5
|
+
import type { BranchLayout } from './branch-placement';
|
|
6
|
+
declare const selectivePushOptionsSchema: z.ZodObject<{
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
workflowIds: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
deletedWorkflowIds: z.ZodArray<z.ZodString, "many">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
projectId: string;
|
|
12
|
+
workflowIds: string[];
|
|
13
|
+
deletedWorkflowIds: string[];
|
|
14
|
+
}, {
|
|
15
|
+
projectId: string;
|
|
16
|
+
workflowIds: string[];
|
|
17
|
+
deletedWorkflowIds: string[];
|
|
18
|
+
}>;
|
|
19
|
+
export type SelectivePushOptions = z.infer<typeof selectivePushOptionsSchema>;
|
|
20
|
+
declare const DEPENDENCY_COLLECTIONS: readonly ['credentials', 'dataTables', 'tags'];
|
|
21
|
+
type DependencyCollection = (typeof DEPENDENCY_COLLECTIONS)[number];
|
|
22
|
+
interface DependencyRef {
|
|
23
|
+
collection: DependencyCollection;
|
|
24
|
+
id: string;
|
|
25
|
+
target: string;
|
|
26
|
+
}
|
|
27
|
+
export type ScannedBranch = {
|
|
28
|
+
state: BranchLayout;
|
|
29
|
+
dependencies: DependencyRef[];
|
|
30
|
+
};
|
|
31
|
+
export declare class WorkingCopyUpdater {
|
|
32
|
+
private readonly instanceSettings;
|
|
33
|
+
private readonly logger;
|
|
34
|
+
constructor(instanceSettings: InstanceSettings, logger: Logger);
|
|
35
|
+
validateSelection(selection: SelectivePushOptions): void;
|
|
36
|
+
assertStagingMatchesSelection(staging: PackageManifest, selection: SelectivePushOptions): void;
|
|
37
|
+
readBranchLayout(exportFolder: string): Promise<BranchLayout>;
|
|
38
|
+
private scanBranch;
|
|
39
|
+
private assertUniqueEntityIds;
|
|
40
|
+
private assertUniqueDependencyIds;
|
|
41
|
+
private readEntityFile;
|
|
42
|
+
assertSelectionFitsBranch(exportFolder: string, selection: SelectivePushOptions): Promise<ScannedBranch>;
|
|
43
|
+
assertDeletionsOnBranch(branch: BranchLayout, selection: SelectivePushOptions): void;
|
|
44
|
+
assertNoCrossProjectMoves(branch: BranchLayout, selection: SelectivePushOptions): void;
|
|
45
|
+
applySelection(exportFolder: string, stagingFolder: string, staging: PackageManifest, selection: SelectivePushOptions, branch: ScannedBranch): Promise<void>;
|
|
46
|
+
private assertRemovableLeafTarget;
|
|
47
|
+
private partitionChangedDependencies;
|
|
48
|
+
private readEntityId;
|
|
49
|
+
private resolveDependencyDir;
|
|
50
|
+
private overlayDirectory;
|
|
51
|
+
private resolveContained;
|
|
52
|
+
}
|
|
53
|
+
export {};
|