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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AiPreferenceController = void 0;
|
|
16
|
+
const api_types_1 = require("@n8n/api-types");
|
|
17
|
+
const decorators_1 = require("@n8n/decorators");
|
|
18
|
+
const ai_preference_service_1 = require("../services/ai-preference.service");
|
|
19
|
+
let AiPreferenceController = class AiPreferenceController {
|
|
20
|
+
constructor(aiPreferenceService) {
|
|
21
|
+
this.aiPreferenceService = aiPreferenceService;
|
|
22
|
+
}
|
|
23
|
+
async getPreferences(req, _res, query) {
|
|
24
|
+
return await this.aiPreferenceService.list(req.user, query);
|
|
25
|
+
}
|
|
26
|
+
async countPreferences(req) {
|
|
27
|
+
return await this.aiPreferenceService.count(req.user);
|
|
28
|
+
}
|
|
29
|
+
async createPreference(req, _res, payload) {
|
|
30
|
+
return await this.aiPreferenceService.create(req.user, payload);
|
|
31
|
+
}
|
|
32
|
+
async updatePreference(req, _res, payload) {
|
|
33
|
+
return await this.aiPreferenceService.update(req.user, req.params.id, payload);
|
|
34
|
+
}
|
|
35
|
+
async deletePreference(req) {
|
|
36
|
+
await this.aiPreferenceService.delete(req.user, req.params.id);
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.AiPreferenceController = AiPreferenceController;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, decorators_1.Get)('/'),
|
|
43
|
+
__param(2, decorators_1.Query),
|
|
44
|
+
__metadata("design:type", Function),
|
|
45
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.AiPreferenceListQueryDto]),
|
|
46
|
+
__metadata("design:returntype", Promise)
|
|
47
|
+
], AiPreferenceController.prototype, "getPreferences", null);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, decorators_1.Get)('/count'),
|
|
50
|
+
__metadata("design:type", Function),
|
|
51
|
+
__metadata("design:paramtypes", [Object]),
|
|
52
|
+
__metadata("design:returntype", Promise)
|
|
53
|
+
], AiPreferenceController.prototype, "countPreferences", null);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, decorators_1.Post)('/'),
|
|
56
|
+
__param(2, decorators_1.Body),
|
|
57
|
+
__metadata("design:type", Function),
|
|
58
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.AiPreferenceRequestDto]),
|
|
59
|
+
__metadata("design:returntype", Promise)
|
|
60
|
+
], AiPreferenceController.prototype, "createPreference", null);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, decorators_1.Patch)('/:id'),
|
|
63
|
+
__param(2, decorators_1.Body),
|
|
64
|
+
__metadata("design:type", Function),
|
|
65
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.AiPreferenceRequestDto]),
|
|
66
|
+
__metadata("design:returntype", Promise)
|
|
67
|
+
], AiPreferenceController.prototype, "updatePreference", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, decorators_1.Delete)('/:id'),
|
|
70
|
+
__metadata("design:type", Function),
|
|
71
|
+
__metadata("design:paramtypes", [Object]),
|
|
72
|
+
__metadata("design:returntype", Promise)
|
|
73
|
+
], AiPreferenceController.prototype, "deletePreference", null);
|
|
74
|
+
exports.AiPreferenceController = AiPreferenceController = __decorate([
|
|
75
|
+
(0, decorators_1.RestController)('/ai-preferences'),
|
|
76
|
+
__metadata("design:paramtypes", [ai_preference_service_1.AiPreferenceService])
|
|
77
|
+
], AiPreferenceController);
|
|
78
|
+
//# sourceMappingURL=ai-preference.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-preference.controller.js","sourceRoot":"","sources":["../../src/controllers/ai-preference.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAAkF;AAElF,gDAAwF;AAGxF,4EAAuE;AAQhE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAClC,YAA6B,mBAAwC;mCAAxC,mBAAmB;IAAwB,CAAC;IAGnE,AAAN,KAAK,CAAC,cAAc,CACnB,GAAyB,EACzB,IAAc,EACP,KAA+B;QAEtC,OAAO,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CAAC,GAAyB;QAC/C,OAAO,MAAM,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACrB,GAAyB,EACzB,IAAc,EACR,OAA+B;QAErC,OAAO,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACrB,GAAyC,EACzC,IAAc,EACR,OAA+B;QAErC,OAAO,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CAAC,GAAyC;QAC/D,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;;AArCM;IADL,IAAA,gBAAG,EAAC,GAAG,CAAC;IAIP,WAAA,kBAAK,CAAA;;qDAAQ,oCAAwB;;4DAGtC;AAGK;IADL,IAAA,gBAAG,EAAC,QAAQ,CAAC;;;;8DAGb;AAGK;IADL,IAAA,iBAAI,EAAC,GAAG,CAAC;IAIR,WAAA,iBAAI,CAAA;;qDAAU,kCAAsB;;8DAGrC;AAGK;IADL,IAAA,kBAAK,EAAC,MAAM,CAAC;IAIZ,WAAA,iBAAI,CAAA;;qDAAU,kCAAsB;;8DAGrC;AAGK;IADL,IAAA,mBAAM,EAAC,MAAM,CAAC;;;;8DAKd;iCAxCW,sBAAsB;IADlC,IAAA,2BAAc,EAAC,iBAAiB,CAAC;qCAEiB,2CAAmB;GADzD,sBAAsB,CAyClC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeEmailRequestDto, ConfirmEmailChangeRequestDto, ResolveChangeEmailTokenQueryDto, type ChangeEmailResponse } from '@n8n/api-types';
|
|
2
|
+
import { Logger } from '@n8n/backend-common';
|
|
3
|
+
import { AuthenticatedRequest, UserRepository } from '@n8n/db';
|
|
4
|
+
import { Response } from 'express';
|
|
5
|
+
import { AuthService } from '../auth/auth.service';
|
|
6
|
+
import { EventService } from '../events/event.service';
|
|
7
|
+
import { ExternalHooks } from '../external-hooks';
|
|
8
|
+
import { AuthlessRequest } from '../requests';
|
|
9
|
+
import { EmailChangeService } from '../services/email-change.service';
|
|
10
|
+
import { UserService } from '../services/user.service';
|
|
11
|
+
import { UserManagementMailer } from '../user-management/email';
|
|
12
|
+
export declare class ChangeEmailController {
|
|
13
|
+
private readonly logger;
|
|
14
|
+
private readonly externalHooks;
|
|
15
|
+
private readonly authService;
|
|
16
|
+
private readonly userService;
|
|
17
|
+
private readonly userRepository;
|
|
18
|
+
private readonly mailer;
|
|
19
|
+
private readonly emailChangeService;
|
|
20
|
+
private readonly eventService;
|
|
21
|
+
constructor(logger: Logger, externalHooks: ExternalHooks, authService: AuthService, userService: UserService, userRepository: UserRepository, mailer: UserManagementMailer, emailChangeService: EmailChangeService, eventService: EventService);
|
|
22
|
+
requestEmailChange(req: AuthenticatedRequest, res: Response, payload: ChangeEmailRequestDto): Promise<ChangeEmailResponse>;
|
|
23
|
+
resolveChangeEmailToken(_req: AuthlessRequest, _res: Response, payload: ResolveChangeEmailTokenQueryDto): Promise<{
|
|
24
|
+
email: string;
|
|
25
|
+
}>;
|
|
26
|
+
confirmEmailChange(_req: AuthlessRequest, _res: Response, payload: ConfirmEmailChangeRequestDto): Promise<{
|
|
27
|
+
success: true;
|
|
28
|
+
}>;
|
|
29
|
+
private assertEmailAvailable;
|
|
30
|
+
private applyEmailChange;
|
|
31
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ChangeEmailController = void 0;
|
|
16
|
+
const api_types_1 = require("@n8n/api-types");
|
|
17
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
18
|
+
const db_1 = require("@n8n/db");
|
|
19
|
+
const decorators_1 = require("@n8n/decorators");
|
|
20
|
+
const auth_service_1 = require("../auth/auth.service");
|
|
21
|
+
const bad_request_error_1 = require("../errors/response-errors/bad-request.error");
|
|
22
|
+
const internal_server_error_1 = require("../errors/response-errors/internal-server.error");
|
|
23
|
+
const not_found_error_1 = require("../errors/response-errors/not-found.error");
|
|
24
|
+
const event_service_1 = require("../events/event.service");
|
|
25
|
+
const external_hooks_1 = require("../external-hooks");
|
|
26
|
+
const email_change_service_1 = require("../services/email-change.service");
|
|
27
|
+
const user_service_1 = require("../services/user.service");
|
|
28
|
+
const email_1 = require("../user-management/email");
|
|
29
|
+
let ChangeEmailController = class ChangeEmailController {
|
|
30
|
+
constructor(logger, externalHooks, authService, userService, userRepository, mailer, emailChangeService, eventService) {
|
|
31
|
+
this.logger = logger;
|
|
32
|
+
this.externalHooks = externalHooks;
|
|
33
|
+
this.authService = authService;
|
|
34
|
+
this.userService = userService;
|
|
35
|
+
this.userRepository = userRepository;
|
|
36
|
+
this.mailer = mailer;
|
|
37
|
+
this.emailChangeService = emailChangeService;
|
|
38
|
+
this.eventService = eventService;
|
|
39
|
+
}
|
|
40
|
+
async requestEmailChange(req, res, payload) {
|
|
41
|
+
const { user } = req;
|
|
42
|
+
const currentEmail = user.email;
|
|
43
|
+
const newEmail = payload.email;
|
|
44
|
+
if (newEmail === currentEmail) {
|
|
45
|
+
throw new bad_request_error_1.BadRequestError('The new email address matches the current one');
|
|
46
|
+
}
|
|
47
|
+
await this.emailChangeService.assertMayRequestEmailChange(user, {
|
|
48
|
+
currentPassword: payload.currentPassword,
|
|
49
|
+
mfaCode: payload.mfaCode,
|
|
50
|
+
});
|
|
51
|
+
await this.assertEmailAvailable(newEmail);
|
|
52
|
+
if (!this.mailer.isEmailSetUp) {
|
|
53
|
+
const publicUser = await this.applyEmailChange(user.id, currentEmail, newEmail);
|
|
54
|
+
this.authService.issueCookie(res, await this.userService.findUserWithAuthIdentities(user.id), req.authInfo?.usedMfa ?? false, req.browserId);
|
|
55
|
+
return { status: 'changed', user: publicUser };
|
|
56
|
+
}
|
|
57
|
+
const confirmationUrl = this.authService.generateEmailChangeUrl(user, newEmail);
|
|
58
|
+
try {
|
|
59
|
+
await this.mailer.emailChangeConfirmation({
|
|
60
|
+
email: currentEmail,
|
|
61
|
+
firstName: user.firstName,
|
|
62
|
+
newEmail,
|
|
63
|
+
confirmationUrl,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
this.eventService.emit('email-failed', {
|
|
68
|
+
user,
|
|
69
|
+
messageType: 'Email change confirmation',
|
|
70
|
+
publicApi: false,
|
|
71
|
+
});
|
|
72
|
+
if (error instanceof Error) {
|
|
73
|
+
throw new internal_server_error_1.InternalServerError(`Please contact your administrator: ${error.message}`, error);
|
|
74
|
+
}
|
|
75
|
+
throw error;
|
|
76
|
+
}
|
|
77
|
+
this.logger.info('Sent email change confirmation successfully', { userId: user.id });
|
|
78
|
+
this.eventService.emit('user-transactional-email-sent', {
|
|
79
|
+
userId: user.id,
|
|
80
|
+
messageType: 'Email change confirmation',
|
|
81
|
+
publicApi: false,
|
|
82
|
+
});
|
|
83
|
+
return { status: 'confirmation-sent' };
|
|
84
|
+
}
|
|
85
|
+
async resolveChangeEmailToken(_req, _res, payload) {
|
|
86
|
+
const resolved = await this.authService.resolveEmailChangeToken(payload.token);
|
|
87
|
+
if (!resolved)
|
|
88
|
+
throw new not_found_error_1.NotFoundError('');
|
|
89
|
+
return { email: resolved.newEmail };
|
|
90
|
+
}
|
|
91
|
+
async confirmEmailChange(_req, _res, payload) {
|
|
92
|
+
const resolved = await this.authService.resolveEmailChangeToken(payload.token);
|
|
93
|
+
if (!resolved)
|
|
94
|
+
throw new not_found_error_1.NotFoundError('');
|
|
95
|
+
const { user, newEmail } = resolved;
|
|
96
|
+
const oldEmail = user.email;
|
|
97
|
+
await this.emailChangeService.assertMayApplyEmailChange(user);
|
|
98
|
+
await this.assertEmailAvailable(newEmail);
|
|
99
|
+
await this.applyEmailChange(user.id, oldEmail, newEmail);
|
|
100
|
+
await this.mailer.emailChangeCompleted({
|
|
101
|
+
email: oldEmail,
|
|
102
|
+
firstName: user.firstName,
|
|
103
|
+
newEmail,
|
|
104
|
+
});
|
|
105
|
+
this.logger.info('Email change confirmed successfully', { userId: user.id });
|
|
106
|
+
return { success: true };
|
|
107
|
+
}
|
|
108
|
+
async assertEmailAvailable(email) {
|
|
109
|
+
const existing = await this.userRepository.findOneBy({ email });
|
|
110
|
+
if (existing) {
|
|
111
|
+
throw new bad_request_error_1.BadRequestError('This email address is already in use');
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async applyEmailChange(userId, oldEmail, newEmail) {
|
|
115
|
+
const current = await this.userRepository.findOneBy({ id: userId });
|
|
116
|
+
if (!current || current.email !== oldEmail)
|
|
117
|
+
throw new not_found_error_1.NotFoundError('');
|
|
118
|
+
await this.externalHooks.run('user.profile.beforeUpdate', [
|
|
119
|
+
userId,
|
|
120
|
+
oldEmail,
|
|
121
|
+
{ email: newEmail },
|
|
122
|
+
]);
|
|
123
|
+
const result = await this.userRepository.changeEmail(userId, oldEmail, newEmail);
|
|
124
|
+
if (result === 'stale')
|
|
125
|
+
throw new not_found_error_1.NotFoundError('');
|
|
126
|
+
if (result === 'email-taken') {
|
|
127
|
+
throw new bad_request_error_1.BadRequestError('This email address is already in use');
|
|
128
|
+
}
|
|
129
|
+
const user = await this.userService.findUserWithAuthIdentities(userId);
|
|
130
|
+
this.eventService.emit('user-updated', { user, fieldsChanged: ['email'] });
|
|
131
|
+
const publicUser = await this.userService.toPublic(user);
|
|
132
|
+
await this.externalHooks.run('user.profile.update', [oldEmail, publicUser]);
|
|
133
|
+
return publicUser;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
exports.ChangeEmailController = ChangeEmailController;
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, decorators_1.Post)('/change-email', {
|
|
139
|
+
keyedRateLimit: (0, decorators_1.createUserKeyedRateLimiter)({}),
|
|
140
|
+
}),
|
|
141
|
+
__param(2, decorators_1.Body),
|
|
142
|
+
__metadata("design:type", Function),
|
|
143
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.ChangeEmailRequestDto]),
|
|
144
|
+
__metadata("design:returntype", Promise)
|
|
145
|
+
], ChangeEmailController.prototype, "requestEmailChange", null);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, decorators_1.Get)('/resolve-change-email-token', { skipAuth: true, ipRateLimit: true }),
|
|
148
|
+
__param(2, decorators_1.Query),
|
|
149
|
+
__metadata("design:type", Function),
|
|
150
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.ResolveChangeEmailTokenQueryDto]),
|
|
151
|
+
__metadata("design:returntype", Promise)
|
|
152
|
+
], ChangeEmailController.prototype, "resolveChangeEmailToken", null);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, decorators_1.Post)('/confirm-email-change', { skipAuth: true, ipRateLimit: true }),
|
|
155
|
+
__param(2, decorators_1.Body),
|
|
156
|
+
__metadata("design:type", Function),
|
|
157
|
+
__metadata("design:paramtypes", [Object, Object, api_types_1.ConfirmEmailChangeRequestDto]),
|
|
158
|
+
__metadata("design:returntype", Promise)
|
|
159
|
+
], ChangeEmailController.prototype, "confirmEmailChange", null);
|
|
160
|
+
exports.ChangeEmailController = ChangeEmailController = __decorate([
|
|
161
|
+
(0, decorators_1.RestController)(),
|
|
162
|
+
__metadata("design:paramtypes", [backend_common_1.Logger, external_hooks_1.ExternalHooks, auth_service_1.AuthService, user_service_1.UserService, db_1.UserRepository, email_1.UserManagementMailer, email_change_service_1.EmailChangeService, event_service_1.EventService])
|
|
163
|
+
], ChangeEmailController);
|
|
164
|
+
//# sourceMappingURL=change-email.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-email.controller.js","sourceRoot":"","sources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C,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;QAE5E,OAAO,UAAU,CAAC;IACnB,CAAC;CACD,CAAA;;AA1JM;IAHL,IAAA,iBAAI,EAAC,eAAe,EAAE;QACtB,cAAc,EAAE,IAAA,uCAA0B,EAAC,EAAE,CAAC;KAC9C,CAAC;IAIA,WAAA,iBAAI,CAAA;;qDAAU,iCAAqB;;+DA4DpC;AAMK;IADL,IAAA,gBAAG,EAAC,6BAA6B,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAIxE,WAAA,kBAAK,CAAA;;qDAAU,2CAA+B;;oEAM/C;AAOK;IADL,IAAA,iBAAI,EAAC,uBAAuB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAInE,WAAA,iBAAI,CAAA;;qDAAU,wCAA4B;;+DAyB3C;gCArIW,qBAAqB;IADjC,IAAA,2BAAc,GAAE;qCAGU,uBAAM,EACC,8BAAa,EACf,0BAAW,EACX,0BAAW,EACR,mBAAc,EACtB,4BAAoB,EACR,yCAAkB,EACxB,4BAAY;GAThC,qBAAqB,CA8KjC"}
|
|
@@ -9,6 +9,7 @@ import { EventService } from '../events/event.service';
|
|
|
9
9
|
import { ExternalHooks } from '../external-hooks';
|
|
10
10
|
import { MfaService } from '../mfa/mfa.service';
|
|
11
11
|
import { MeRequest } from '../requests';
|
|
12
|
+
import { EmailChangeService } from '../services/email-change.service';
|
|
12
13
|
import { PasswordUtility } from '../services/password.utility';
|
|
13
14
|
import { UserService } from '../services/user.service';
|
|
14
15
|
export declare class MeController {
|
|
@@ -21,9 +22,9 @@ export declare class MeController {
|
|
|
21
22
|
private readonly eventService;
|
|
22
23
|
private readonly mfaService;
|
|
23
24
|
private readonly globalConfig;
|
|
24
|
-
|
|
25
|
+
private readonly emailChangeService;
|
|
26
|
+
constructor(logger: Logger, externalHooks: ExternalHooks, authService: AuthService, userService: UserService, passwordUtility: PasswordUtility, userRepository: UserRepository, eventService: EventService, mfaService: MfaService, globalConfig: GlobalConfig, emailChangeService: EmailChangeService);
|
|
25
27
|
updateCurrentUser(req: AuthenticatedRequest, res: Response, payload: UserUpdateRequestDto): Promise<PublicUser>;
|
|
26
|
-
private validateChangingUserEmail;
|
|
27
28
|
private isUserManagedByEnv;
|
|
28
29
|
private isAuthIdentityActive;
|
|
29
30
|
updatePassword(req: AuthenticatedRequest, res: Response, payload: PasswordUpdateRequestDto): Promise<{
|
|
@@ -27,12 +27,13 @@ const event_service_1 = require("../events/event.service");
|
|
|
27
27
|
const external_hooks_1 = require("../external-hooks");
|
|
28
28
|
const generic_helpers_1 = require("../generic-helpers");
|
|
29
29
|
const mfa_service_1 = require("../mfa/mfa.service");
|
|
30
|
+
const email_change_service_1 = require("../services/email-change.service");
|
|
30
31
|
const password_utility_1 = require("../services/password.utility");
|
|
31
32
|
const user_service_1 = require("../services/user.service");
|
|
32
33
|
const sso_helpers_1 = require("../sso.ee/sso-helpers");
|
|
33
34
|
const survey_answers_dto_1 = require("./survey-answers.dto");
|
|
34
35
|
let MeController = class MeController {
|
|
35
|
-
constructor(logger, externalHooks, authService, userService, passwordUtility, userRepository, eventService, mfaService, globalConfig) {
|
|
36
|
+
constructor(logger, externalHooks, authService, userService, passwordUtility, userRepository, eventService, mfaService, globalConfig, emailChangeService) {
|
|
36
37
|
this.logger = logger;
|
|
37
38
|
this.externalHooks = externalHooks;
|
|
38
39
|
this.authService = authService;
|
|
@@ -42,6 +43,7 @@ let MeController = class MeController {
|
|
|
42
43
|
this.eventService = eventService;
|
|
43
44
|
this.mfaService = mfaService;
|
|
44
45
|
this.globalConfig = globalConfig;
|
|
46
|
+
this.emailChangeService = emailChangeService;
|
|
45
47
|
}
|
|
46
48
|
async updateCurrentUser(req, res, payload) {
|
|
47
49
|
const { id: userId, email: currentEmail, firstName: currentFirstName, lastName: currentLastName, } = req.user;
|
|
@@ -63,7 +65,12 @@ let MeController = class MeController {
|
|
|
63
65
|
throw new bad_request_error_1.BadRequestError(`${ssoIdentity.providerType.toUpperCase()} user may not change their profile information`);
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
|
-
|
|
68
|
+
if (isEmailBeingChanged) {
|
|
69
|
+
await this.emailChangeService.assertMayRequestEmailChange(req.user, {
|
|
70
|
+
currentPassword,
|
|
71
|
+
mfaCode: payload.mfaCode,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
67
74
|
await this.externalHooks.run('user.profile.beforeUpdate', [
|
|
68
75
|
userId,
|
|
69
76
|
currentEmail,
|
|
@@ -81,45 +88,6 @@ let MeController = class MeController {
|
|
|
81
88
|
await this.externalHooks.run('user.profile.update', [currentEmail, publicUser]);
|
|
82
89
|
return publicUser;
|
|
83
90
|
}
|
|
84
|
-
async validateChangingUserEmail(currentUser, payload) {
|
|
85
|
-
if (!payload.email || payload.email === currentUser.email) {
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const { currentPassword: providedCurrentPassword, ...payloadWithoutPassword } = payload;
|
|
89
|
-
const { id: userId, mfaEnabled } = currentUser;
|
|
90
|
-
if ((0, sso_helpers_1.isSamlLicensedAndEnabled)()) {
|
|
91
|
-
this.logger.debug('Request to update user failed because SAML user may not change their email', {
|
|
92
|
-
userId: currentUser.id,
|
|
93
|
-
payload: payloadWithoutPassword,
|
|
94
|
-
});
|
|
95
|
-
throw new bad_request_error_1.BadRequestError('SAML user may not change their email');
|
|
96
|
-
}
|
|
97
|
-
if (mfaEnabled) {
|
|
98
|
-
if (!payload.mfaCode) {
|
|
99
|
-
throw new bad_request_error_1.BadRequestError('Two-factor code is required to change email');
|
|
100
|
-
}
|
|
101
|
-
const isMfaCodeValid = await this.mfaService.validateMfa(userId, payload.mfaCode, undefined);
|
|
102
|
-
if (!isMfaCodeValid) {
|
|
103
|
-
throw new invalid_mfa_code_error_1.InvalidMfaCodeError();
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
if (currentUser.password === null) {
|
|
108
|
-
this.logger.debug('User with no password changed their email', {
|
|
109
|
-
userId: currentUser.id,
|
|
110
|
-
payload: payloadWithoutPassword,
|
|
111
|
-
});
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
if (!providedCurrentPassword || typeof providedCurrentPassword !== 'string') {
|
|
115
|
-
throw new bad_request_error_1.BadRequestError('Current password is required to change email');
|
|
116
|
-
}
|
|
117
|
-
const isProvidedPasswordCorrect = await this.passwordUtility.compare(providedCurrentPassword, currentUser.password);
|
|
118
|
-
if (!isProvidedPasswordCorrect) {
|
|
119
|
-
throw new bad_request_error_1.BadRequestError('Unable to update profile. Please check your credentials and try again.');
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
91
|
isUserManagedByEnv(user) {
|
|
124
92
|
const { instanceSettingsLoader } = this.globalConfig;
|
|
125
93
|
return (instanceSettingsLoader.ownerManagedByEnv &&
|
|
@@ -232,6 +200,6 @@ __decorate([
|
|
|
232
200
|
], MeController.prototype, "updateCurrentUserSettings", null);
|
|
233
201
|
exports.MeController = MeController = __decorate([
|
|
234
202
|
(0, decorators_1.RestController)('/me'),
|
|
235
|
-
__metadata("design:paramtypes", [backend_common_1.Logger, external_hooks_1.ExternalHooks, auth_service_1.AuthService, user_service_1.UserService, password_utility_1.PasswordUtility, db_1.UserRepository, event_service_1.EventService, mfa_service_1.MfaService, config_1.GlobalConfig])
|
|
203
|
+
__metadata("design:paramtypes", [backend_common_1.Logger, external_hooks_1.ExternalHooks, auth_service_1.AuthService, user_service_1.UserService, password_utility_1.PasswordUtility, db_1.UserRepository, event_service_1.EventService, mfa_service_1.MfaService, config_1.GlobalConfig, email_change_service_1.EmailChangeService])
|
|
236
204
|
], MeController);
|
|
237
205
|
//# sourceMappingURL=me.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"me.controller.js","sourceRoot":"","sources":["../../src/controllers/me.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAKwB;AACxB,wDAA6C;AAC7C,wCAA2C;AAE3C,gCAA+D;AAC/D,gDAAgG;AAChG,yDAAoD;AAGpD,sDAAkD;AAClD,kFAA6E;AAC7E,8EAA0E;AAC1E,4FAAsF;AACtF,0DAAsD;AACtD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAE/C,kEAA8D;AAC9D,0DAAsD;AACtD,sDAAgG;AAEhG,6DAAsE;AAG/D,IAAM,YAAY,GAAlB,MAAM,YAAY;IACxB,YACkB,MAAc,EACd,aAA4B,EAC5B,WAAwB,EACxB,WAAwB,EACxB,eAAgC,EAChC,cAA8B,EAC9B,YAA0B,EAC1B,UAAsB,EACtB,YAA0B;
|
|
1
|
+
{"version":3,"file":"me.controller.js","sourceRoot":"","sources":["../../src/controllers/me.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAKwB;AACxB,wDAA6C;AAC7C,wCAA2C;AAE3C,gCAA+D;AAC/D,gDAAgG;AAChG,yDAAoD;AAGpD,sDAAkD;AAClD,kFAA6E;AAC7E,8EAA0E;AAC1E,4FAAsF;AACtF,0DAAsD;AACtD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAE/C,0EAAqE;AACrE,kEAA8D;AAC9D,0DAAsD;AACtD,sDAAgG;AAEhG,6DAAsE;AAG/D,IAAM,YAAY,GAAlB,MAAM,YAAY;IACxB,YACkB,MAAc,EACd,aAA4B,EAC5B,WAAwB,EACxB,WAAwB,EACxB,eAAgC,EAChC,cAA8B,EAC9B,YAA0B,EAC1B,UAAsB,EACtB,YAA0B,EAC1B,kBAAsC;sBATtC,MAAM;6BACN,aAAa;2BACb,WAAW;2BACX,WAAW;+BACX,eAAe;8BACf,cAAc;4BACd,YAAY;0BACZ,UAAU;4BACV,YAAY;kCACZ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B,EAC1B,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,CACX,CAAC;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CAClB,uBAAgD,EAChD,WAA2C,EAC3C,iBAAqC,EACrC,UAA2C,EAC3C,gBAAoC,EACpC,WAAoB;QAEpB,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YAC3B,IAAI,uBAAuB,CAAC,YAAY,EAAE,CAAC;gBAC1C,IAAI,CAAC,MAAM,CAAC,IAAI,CACf,0FAA0F,uBAAuB,CAAC,IAAI,GAAG,CACzH,CAAC;gBACF,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;YAC/D,CAAC;YACD,OAAO;QACR,CAAC;QACD,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,aAAa,CAC9C,uBAAuB,EACvB,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,WAAW,CACX,CAAC;IACH,CAAC;IAKD,KAAK,CAAC,2BAA2B,CAChC,uBAAgD,EAChD,cAA2B,EAC3B,gBAA+C,EAC/C,UAA0C,EAC1C,gBAAoC,EACpC,WAAoB;QAEpB,IAAI,CAAC,uBAAuB,CAAC,YAAY,IAAI,CAAC,uBAAuB,CAAC,UAAU,EAAE,CAAC;YAClF,OAAO;QACR,CAAC;QAED,MAAM,MAAM,GAAG,cAAS,CAAC,GAAG,CAAC,iBAAM,CAAC,CAAC;QAErC,IAAI,iBAA+D,CAAC;QAEpE,IAAI,gBAAgB,EAAE,WAAW,EAAE,CAAC;YACnC,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;YACvE,iBAAiB,GAAG,IAAA,kCAAmB,EAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"dynamic-credentials-proxy.js","sourceRoot":"","sources":["../../src/credentials/dynamic-credentials-proxy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA6C;AAC7C,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cAAc,EAAE,EAClB,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,WAAW,CACX,CAAC;IACH,CAAC;CACD,CAAA;;kCAtIY,uBAAuB;IADnC,IAAA,YAAO,GAAE;qCAO4B,uBAAM;GAN/B,uBAAuB,CAsInC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ICredentialContext } from 'n8n-workflow';
|
|
2
|
+
import type { IExecutingUserIdentifier } from './executing-user-identifier.interface';
|
|
3
|
+
export declare class ExecutingUserIdentifierProxy implements IExecutingUserIdentifier {
|
|
4
|
+
private provider?;
|
|
5
|
+
setProvider(provider: IExecutingUserIdentifier): void;
|
|
6
|
+
identify(context: ICredentialContext): Promise<string | undefined>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ExecutingUserIdentifierProxy = void 0;
|
|
10
|
+
const di_1 = require("@n8n/di");
|
|
11
|
+
let ExecutingUserIdentifierProxy = class ExecutingUserIdentifierProxy {
|
|
12
|
+
setProvider(provider) {
|
|
13
|
+
this.provider = provider;
|
|
14
|
+
}
|
|
15
|
+
async identify(context) {
|
|
16
|
+
if (!this.provider)
|
|
17
|
+
return undefined;
|
|
18
|
+
return await this.provider.identify(context);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.ExecutingUserIdentifierProxy = ExecutingUserIdentifierProxy;
|
|
22
|
+
exports.ExecutingUserIdentifierProxy = ExecutingUserIdentifierProxy = __decorate([
|
|
23
|
+
(0, di_1.Service)()
|
|
24
|
+
], ExecutingUserIdentifierProxy);
|
|
25
|
+
//# sourceMappingURL=executing-user-identifier-proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executing-user-identifier-proxy.js","sourceRoot":"","sources":["../../src/credentials/executing-user-identifier-proxy.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gCAAkC;AAY3B,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAGxC,WAAW,CAAC,QAAkC;QAC7C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,OAA2B;QACzC,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO,SAAS,CAAC;QACrC,OAAO,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;CACD,CAAA;;uCAXY,4BAA4B;IADxC,IAAA,YAAO,GAAE;GACG,4BAA4B,CAWxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executing-user-identifier.interface.js","sourceRoot":"","sources":["../../src/credentials/executing-user-identifier.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createMockNodeTypes = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const createMockNodeTypes = () => {
|
|
7
|
+
const nodesData = {
|
|
8
|
+
mock: {
|
|
9
|
+
sourcePath: '',
|
|
10
|
+
type: {
|
|
11
|
+
description: { properties: [] },
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
const nodeTypes = {
|
|
16
|
+
getKnownTypes() {
|
|
17
|
+
return {};
|
|
18
|
+
},
|
|
19
|
+
getByName(nodeType) {
|
|
20
|
+
return nodesData[nodeType]?.type;
|
|
21
|
+
},
|
|
22
|
+
getByNameAndVersion(nodeType, version) {
|
|
23
|
+
if (!nodesData[nodeType]) {
|
|
24
|
+
throw new n8n_workflow_1.UnexpectedError(constants_1.RESPONSE_ERROR_MESSAGES.NO_NODE, {
|
|
25
|
+
tags: { nodeType },
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
return n8n_workflow_1.NodeHelpers.getVersionedNodeType(nodesData[nodeType].type, version);
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
return { nodesData, nodeTypes };
|
|
32
|
+
};
|
|
33
|
+
exports.createMockNodeTypes = createMockNodeTypes;
|
|
34
|
+
//# sourceMappingURL=mock-node-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-node-types.js","sourceRoot":"","sources":["../../src/credentials/mock-node-types.ts"],"names":[],"mappings":";;;AAQA,+CAA4D;AAE5D,2CAAsD;AAO/C,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACvC,MAAM,SAAS,GAAkB;QAChC,IAAI,EAAE;YACL,UAAU,EAAE,EAAE;YACd,IAAI,EAAE;gBACL,WAAW,EAAE,EAAE,UAAU,EAAE,EAAuB,EAAE;aACvC;SACd;KACD,CAAC;IAEF,MAAM,SAAS,GAAe;QAC7B,aAAa;YACZ,OAAO,EAAE,CAAC;QACX,CAAC;QACD,SAAS,CAAC,QAAgB;YACzB,OAAO,SAAS,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;QAClC,CAAC;QACD,mBAAmB,CAAC,QAAgB,EAAE,OAAgB;YACrD,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC1B,MAAM,IAAI,8BAAe,CAAC,mCAAuB,CAAC,OAAO,EAAE;oBAC1D,IAAI,EAAE,EAAE,QAAQ,EAAE;iBAClB,CAAC,CAAC;YACJ,CAAC;YACD,OAAO,0BAAW,CAAC,oBAAoB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5E,CAAC;KACD,CAAC;IAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACjC,CAAC,CAAC;AA5BW,QAAA,mBAAmB,GAAnB,mBAAmB,CA4B9B"}
|
|
@@ -23,8 +23,8 @@ const dcr_managed_fields_1 = require("./oauth/dcr-managed-fields");
|
|
|
23
23
|
const external_secrets_config_1 = require("./modules/external-secrets.ee/external-secrets.config");
|
|
24
24
|
const policy_enforcement_service_1 = require("./policy/policy-enforcement.service");
|
|
25
25
|
const ai_gateway_service_1 = require("./services/ai-gateway.service");
|
|
26
|
-
const constants_1 = require("./constants");
|
|
27
26
|
const dynamic_credentials_proxy_1 = require("./credentials/dynamic-credentials-proxy");
|
|
27
|
+
const mock_node_types_1 = require("./credentials/mock-node-types");
|
|
28
28
|
const credential_missing_id_error_1 = require("./errors/credential-missing-id.error");
|
|
29
29
|
const credential_not_found_error_1 = require("./errors/credential-not-found.error");
|
|
30
30
|
const mockNode = {
|
|
@@ -34,30 +34,7 @@ const mockNode = {
|
|
|
34
34
|
position: [0, 0],
|
|
35
35
|
parameters: {},
|
|
36
36
|
};
|
|
37
|
-
const
|
|
38
|
-
mock: {
|
|
39
|
-
sourcePath: '',
|
|
40
|
-
type: {
|
|
41
|
-
description: { properties: [] },
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
const mockNodeTypes = {
|
|
46
|
-
getKnownTypes() {
|
|
47
|
-
return {};
|
|
48
|
-
},
|
|
49
|
-
getByName(nodeType) {
|
|
50
|
-
return mockNodesData[nodeType]?.type;
|
|
51
|
-
},
|
|
52
|
-
getByNameAndVersion(nodeType, version) {
|
|
53
|
-
if (!mockNodesData[nodeType]) {
|
|
54
|
-
throw new n8n_workflow_1.UnexpectedError(constants_1.RESPONSE_ERROR_MESSAGES.NO_NODE, {
|
|
55
|
-
tags: { nodeType },
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return n8n_workflow_1.NodeHelpers.getVersionedNodeType(mockNodesData[nodeType].type, version);
|
|
59
|
-
},
|
|
60
|
-
};
|
|
37
|
+
const { nodeTypes: mockNodeTypes } = (0, mock_node_types_1.createMockNodeTypes)();
|
|
61
38
|
const INVALID_JSON_VALUE = Symbol('invalidJsonValue');
|
|
62
39
|
let CredentialsHelper = class CredentialsHelper extends n8n_workflow_1.ICredentialsHelper {
|
|
63
40
|
constructor(credentialTypes, credentialsOverwrites, credentialsRepository, dynamicCredentialsProxy, secretsProviderConnectionRepository, licenseState, externalSecretsConfig, aiGatewayService, policyEnforcementService) {
|
|
@@ -278,6 +255,7 @@ let CredentialsHelper = class CredentialsHelper extends n8n_workflow_1.ICredenti
|
|
|
278
255
|
}
|
|
279
256
|
}
|
|
280
257
|
async getDecrypted(additionalData, nodeCredentials, type, mode, executeData, raw, expressionResolveValues) {
|
|
258
|
+
const consumerNode = expressionResolveValues?.node ?? executeData?.node;
|
|
281
259
|
if (nodeCredentials.__aiGatewayManaged) {
|
|
282
260
|
const { userId, workflowId, projectId, executionId } = additionalData;
|
|
283
261
|
return await this.aiGatewayService.getSyntheticCredential({
|
|
@@ -286,14 +264,14 @@ let CredentialsHelper = class CredentialsHelper extends n8n_workflow_1.ICredenti
|
|
|
286
264
|
workflowId,
|
|
287
265
|
projectId,
|
|
288
266
|
executionId,
|
|
289
|
-
node:
|
|
267
|
+
node: consumerNode,
|
|
290
268
|
});
|
|
291
269
|
}
|
|
292
270
|
const credentialsEntity = await this.getCredentialsEntity(nodeCredentials, type);
|
|
293
271
|
await this.policyEnforcementService.enforceCredentialDecrypt({
|
|
294
272
|
credentialType: type,
|
|
295
273
|
credentialId: credentialsEntity.id,
|
|
296
|
-
consumer:
|
|
274
|
+
consumer: consumerNode ? { nodeType: consumerNode.type } : null,
|
|
297
275
|
projectId: additionalData.projectId ?? null,
|
|
298
276
|
});
|
|
299
277
|
const credentials = new n8n_core_1.Credentials({ id: credentialsEntity.id, name: credentialsEntity.name }, credentialsEntity.type, credentialsEntity.data);
|