n8n 2.4.4 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/active-executions.js +1 -0
- package/dist/active-executions.js.map +1 -1
- package/dist/auth/auth.service.js +2 -1
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-service.d.ts +2 -1
- package/dist/chat/chat-service.js +33 -11
- package/dist/chat/chat-service.js.map +1 -1
- package/dist/chat/utils.d.ts +1 -1
- package/dist/chat/utils.js +5 -0
- package/dist/chat/utils.js.map +1 -1
- package/dist/commands/base-command.js +2 -0
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/export/credentials.d.ts +2 -2
- package/dist/commands/export/workflow.d.ts +2 -2
- package/dist/commands/import/entities.d.ts +3 -0
- package/dist/commands/import/entities.js +11 -1
- package/dist/commands/import/entities.js.map +1 -1
- package/dist/commands/start.js +1 -4
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/webhook.js +2 -0
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.js +1 -0
- package/dist/commands/worker.js.map +1 -1
- package/dist/config/index.js +0 -1
- package/dist/config/index.js.map +1 -1
- package/dist/controller.registry.js +6 -0
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/ai.controller.d.ts +1 -2
- package/dist/controllers/ai.controller.js +0 -18
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/auth.controller.js +2 -1
- package/dist/controllers/auth.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.d.ts +3 -3
- package/dist/controllers/e2e.controller.js +10 -8
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/me.controller.js +13 -15
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/controllers/node-types.controller.d.ts +2 -0
- package/dist/controllers/node-types.controller.js +40 -22
- package/dist/controllers/node-types.controller.js.map +1 -1
- package/dist/controllers/orchestration.controller.d.ts +2 -1
- package/dist/controllers/orchestration.controller.js +3 -3
- package/dist/controllers/orchestration.controller.js.map +1 -1
- package/dist/credentials-helper.js +3 -1
- package/dist/credentials-helper.js.map +1 -1
- package/dist/deprecation/deprecation.service.js +5 -0
- package/dist/deprecation/deprecation.service.js.map +1 -1
- package/dist/eventbus/message-event-bus/message-event-bus.d.ts +2 -21
- package/dist/eventbus/message-event-bus/message-event-bus.js +1 -110
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +6 -0
- package/dist/events/relays/telemetry.event-relay.d.ts +1 -0
- package/dist/events/relays/telemetry.event-relay.js +18 -4
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/events/relays/workflow-failure-notification.event-relay.d.ts +13 -0
- package/dist/events/relays/workflow-failure-notification.event-relay.js +78 -0
- package/dist/events/relays/workflow-failure-notification.event-relay.js.map +1 -0
- package/dist/executions/execution-data/types.d.ts +17 -0
- package/dist/executions/execution-data/types.js.map +1 -0
- package/dist/executions/{execution-data.service.d.ts → failed-run-factory.d.ts} +1 -1
- package/dist/executions/{execution-data.service.js → failed-run-factory.js} +6 -6
- package/dist/executions/failed-run-factory.js.map +1 -0
- package/dist/license/license.controller.js +6 -1
- package/dist/license/license.controller.js.map +1 -1
- package/dist/license/license.service.d.ts +2 -1
- package/dist/license/license.service.js +10 -2
- package/dist/license/license.service.js.map +1 -1
- package/dist/license.d.ts +2 -1
- package/dist/license.js +2 -2
- 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 -0
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/mfa/mfa.service.d.ts +5 -3
- package/dist/mfa/mfa.service.js +15 -10
- package/dist/mfa/mfa.service.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.module.js +1 -1
- package/dist/modules/breaking-changes/breaking-changes.module.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.service.d.ts +4 -3
- package/dist/modules/breaking-changes/breaking-changes.service.js +25 -6
- package/dist/modules/breaking-changes/breaking-changes.service.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +1 -1
- package/dist/modules/breaking-changes/rules/v2/index.d.ts +2 -3
- package/dist/modules/breaking-changes/rules/v2/index.js +0 -4
- package/dist/modules/breaking-changes/rules/v2/index.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-agent.service.d.ts +2 -2
- package/dist/modules/chat-hub/chat-hub-agent.service.js +2 -2
- package/dist/modules/chat-hub/chat-hub-agent.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-extractor.d.ts +22 -0
- package/dist/modules/chat-hub/chat-hub-extractor.js +64 -0
- package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub-message.entity.js +1 -1
- package/dist/modules/chat-hub/chat-hub-message.entity.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-session.entity.js +1 -1
- package/dist/modules/chat-hub/chat-hub-session.entity.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-workflow.service.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub-workflow.service.js +2 -2
- package/dist/modules/chat-hub/chat-hub-workflow.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.constants.d.ts +2 -0
- package/dist/modules/chat-hub/chat-hub.constants.js +8 -1
- package/dist/modules/chat-hub/chat-hub.constants.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.controller.js +17 -5
- package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.service.d.ts +16 -3
- package/dist/modules/chat-hub/chat-hub.service.js +290 -56
- package/dist/modules/chat-hub/chat-hub.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.types.d.ts +8 -2
- package/dist/modules/chat-hub/chat-hub.types.js.map +1 -1
- package/dist/modules/community-packages/community-node-types.service.js +2 -5
- package/dist/modules/community-packages/community-node-types.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.module.d.ts +1 -0
- package/dist/modules/community-packages/community-packages.module.js +3 -0
- package/dist/modules/community-packages/community-packages.module.js.map +1 -1
- package/dist/modules/community-packages/community-packages.service.js +4 -0
- package/dist/modules/community-packages/community-packages.service.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.d.ts +3 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.js +7 -2
- package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.d.ts +4 -0
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js +32 -0
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +9 -2
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +63 -7
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.d.ts +12 -0
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js +70 -0
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.d.ts +5 -2
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js +17 -3
- package/dist/modules/dynamic-credentials.ee/workflow-status.controller.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets.config.d.ts +1 -0
- package/dist/modules/external-secrets.ee/external-secrets.config.js +5 -0
- package/dist/modules/external-secrets.ee/external-secrets.config.js.map +1 -1
- package/dist/modules/log-streaming.ee/database/entities/event-destination.entity.d.ts +6 -0
- package/dist/modules/log-streaming.ee/database/entities/event-destination.entity.js +29 -0
- package/dist/modules/log-streaming.ee/database/entities/event-destination.entity.js.map +1 -0
- package/dist/modules/log-streaming.ee/database/entities/index.d.ts +1 -0
- package/dist/modules/log-streaming.ee/database/entities/index.js +6 -0
- package/dist/modules/log-streaming.ee/database/entities/index.js.map +1 -0
- package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.d.ts +5 -0
- package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.js +26 -0
- package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.js.map +1 -0
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-from-db.d.ts +2 -2
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.js.map +1 -0
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-sentry.ee.d.ts +1 -1
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-sentry.ee.js +3 -4
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.js.map +1 -0
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-syslog.ee.d.ts +1 -1
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-syslog.ee.js +1 -1
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-syslog.ee.js.map +1 -0
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-webhook.ee.d.ts +2 -2
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-webhook.ee.js +3 -3
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js.map +1 -0
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination.ee.d.ts +6 -12
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination.ee.js +9 -49
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.js.map +1 -0
- package/dist/modules/log-streaming.ee/log-streaming-destination.service.d.ts +32 -0
- package/dist/modules/log-streaming.ee/log-streaming-destination.service.js +176 -0
- package/dist/modules/log-streaming.ee/log-streaming-destination.service.js.map +1 -0
- package/dist/{eventbus/event-bus.controller.d.ts → modules/log-streaming.ee/log-streaming.controller.d.ts} +5 -3
- package/dist/{eventbus/event-bus.controller.js → modules/log-streaming.ee/log-streaming.controller.js} +19 -18
- package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -0
- package/dist/modules/log-streaming.ee/log-streaming.module.d.ts +5 -0
- package/dist/modules/log-streaming.ee/log-streaming.module.js +67 -0
- package/dist/modules/log-streaming.ee/log-streaming.module.js.map +1 -0
- package/dist/modules/mcp/mcp.errors.d.ts +5 -0
- package/dist/modules/mcp/mcp.errors.js +9 -1
- package/dist/modules/mcp/mcp.errors.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +7 -2
- package/dist/modules/mcp/mcp.service.js +13 -4
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +9 -5
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +3 -3
- package/dist/modules/mcp/tools/execute-workflow.tool.js +34 -10
- package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +4 -2
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +9 -3
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +10 -0
- package/dist/modules/mcp/tools/schemas.js +2 -0
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +25 -14
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js +5 -1
- package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-git.service.ee.d.ts +1 -0
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +40 -3
- package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-preferences.service.ee.d.ts +3 -1
- package/dist/modules/source-control.ee/source-control-preferences.service.ee.js +61 -11
- package/dist/modules/source-control.ee/source-control-preferences.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.js +35 -5
- package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.module.js +5 -1
- package/dist/modules/source-control.ee/source-control.module.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +4 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js +77 -5
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/sso-oidc/constants.js.map +1 -0
- package/dist/{sso.ee/oidc/routes → modules/sso-oidc}/oidc.controller.ee.d.ts +4 -4
- package/dist/{sso.ee/oidc/routes → modules/sso-oidc}/oidc.controller.ee.js +6 -6
- package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -0
- package/dist/{sso.ee/oidc → modules/sso-oidc}/oidc.service.ee.js +2 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -0
- package/dist/modules/sso-oidc/sso-oidc.module.d.ts +4 -0
- package/dist/modules/sso-oidc/sso-oidc.module.js +56 -0
- package/dist/modules/sso-oidc/sso-oidc.module.js.map +1 -0
- package/dist/modules/sso-saml/constants.js.map +1 -0
- package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.js.map +1 -0
- package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.js.map +1 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/middleware/saml-enabled-middleware.js +3 -3
- package/dist/modules/sso-saml/middleware/saml-enabled-middleware.js.map +1 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/saml-helpers.d.ts +0 -4
- package/dist/{sso.ee/saml → modules/sso-saml}/saml-helpers.js +1 -18
- package/dist/modules/sso-saml/saml-helpers.js.map +1 -0
- package/dist/modules/sso-saml/saml-validator.js.map +1 -0
- package/dist/{sso.ee/saml/routes → modules/sso-saml}/saml.controller.ee.d.ts +5 -5
- package/dist/{sso.ee/saml/routes → modules/sso-saml}/saml.controller.ee.js +12 -11
- package/dist/modules/sso-saml/saml.controller.ee.js.map +1 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/saml.service.ee.js +12 -12
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -0
- package/dist/modules/sso-saml/schema/metadata-exchange.xsd.js.map +1 -0
- package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.js.map +1 -0
- package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.js.map +1 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-assertion-2.0.xsd.js.map +1 -1
- package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-metadata-2.0.xsd.js.map +1 -1
- package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-protocol-2.0.xsd.js.map +1 -1
- package/dist/modules/sso-saml/schema/ws-addr.xsd.js.map +1 -0
- package/dist/modules/sso-saml/schema/ws-authorization.xsd.js.map +1 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-federation.xsd.js.map +1 -1
- package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-securitypolicy-1.2.xsd.js.map +1 -1
- package/dist/modules/sso-saml/schema/xenc-schema.xsd.js.map +1 -0
- package/dist/modules/sso-saml/schema/xml.xsd.js.map +1 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/schema/xmldsig-core-schema.xsd.js.map +1 -1
- package/dist/modules/sso-saml/service-provider.ee.js.map +1 -0
- package/dist/modules/sso-saml/sso-saml.module.d.ts +4 -0
- package/dist/modules/sso-saml/sso-saml.module.js +56 -0
- package/dist/modules/sso-saml/sso-saml.module.js.map +1 -0
- package/dist/modules/sso-saml/types.js +3 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/types.js.map +1 -1
- package/dist/modules/sso-saml/views/init-sso-post.js.map +1 -0
- package/dist/modules/workflow-index/workflow-index.service.js +8 -0
- package/dist/modules/workflow-index/workflow-index.service.js.map +1 -1
- package/dist/node-types.d.ts +1 -0
- package/dist/node-types.js +17 -0
- package/dist/node-types.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +7 -2
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/scaling/worker-status.service.ee.d.ts +7 -3
- package/dist/scaling/worker-status.service.ee.js +13 -7
- package/dist/scaling/worker-status.service.ee.js.map +1 -1
- package/dist/server.d.ts +0 -1
- package/dist/server.js +5 -22
- package/dist/server.js.map +1 -1
- package/dist/services/ai-workflow-builder.service.d.ts +2 -3
- package/dist/services/ai-workflow-builder.service.js +36 -36
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/cors-service.d.ts +7 -0
- package/dist/services/cors-service.js +51 -0
- package/dist/services/cors-service.js.map +1 -0
- package/dist/services/frontend.service.d.ts +3 -1
- package/dist/services/frontend.service.js +19 -4
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/import.service.d.ts +2 -4
- package/dist/services/import.service.js +11 -11
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +1 -3
- package/dist/services/project.service.ee.js +4 -12
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.d.ts +11 -6
- package/dist/services/pruning/workflow-history-compaction.service.js +72 -25
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/public-api-key.service.js +2 -1
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/services/role-cache.service.d.ts +2 -1
- package/dist/services/role-cache.service.js +4 -4
- package/dist/services/role-cache.service.js.map +1 -1
- package/dist/services/role.service.d.ts +2 -1
- package/dist/services/role.service.js +3 -3
- package/dist/services/role.service.js.map +1 -1
- package/dist/services/user.service.d.ts +5 -3
- package/dist/services/user.service.js +15 -1
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +4 -2
- package/dist/services/workflow-statistics.service.js +35 -4
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/sso.ee/sso-helpers.d.ts +4 -0
- package/dist/sso.ee/sso-helpers.js +17 -1
- package/dist/sso.ee/sso-helpers.js.map +1 -1
- package/dist/user-management/email/templates/workflow-failure.handlebars +211 -0
- package/dist/user-management/email/user-management-mailer.d.ts +7 -1
- package/dist/user-management/email/user-management-mailer.js +19 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/workflow-execute-additional-data.js +2 -2
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +2 -1
- package/dist/workflow-helpers.js +21 -0
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +3 -3
- package/dist/workflow-runner.js +5 -5
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +4 -4
- package/dist/workflows/workflow-execution.service.js +7 -7
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +0 -1
- package/dist/workflows/workflow-finder.service.js +2 -2
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow.service.js +10 -17
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +0 -8
- package/package.json +16 -16
- package/dist/eventbus/event-bus.controller.js.map +0 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-from-db.js.map +0 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-sentry.ee.js.map +0 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-syslog.ee.js.map +0 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.js.map +0 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.js.map +0 -1
- package/dist/executions/execution-data.service.js.map +0 -1
- package/dist/executions/legacy-sqlite-execution-recovery.service.d.ts +0 -11
- package/dist/executions/legacy-sqlite-execution-recovery.service.js +0 -48
- package/dist/executions/legacy-sqlite-execution-recovery.service.js.map +0 -1
- package/dist/modules/breaking-changes/rules/v2/git-node-bare-repos.rule.d.ts +0 -10
- package/dist/modules/breaking-changes/rules/v2/git-node-bare-repos.rule.js +0 -66
- package/dist/modules/breaking-changes/rules/v2/git-node-bare-repos.rule.js.map +0 -1
- package/dist/modules/breaking-changes/rules/v2/sqlite-legacy-driver.rule.d.ts +0 -9
- package/dist/modules/breaking-changes/rules/v2/sqlite-legacy-driver.rule.js +0 -75
- package/dist/modules/breaking-changes/rules/v2/sqlite-legacy-driver.rule.js.map +0 -1
- package/dist/sso.ee/oidc/constants.js.map +0 -1
- package/dist/sso.ee/oidc/oidc.service.ee.js.map +0 -1
- package/dist/sso.ee/oidc/routes/oidc.controller.ee.js.map +0 -1
- package/dist/sso.ee/saml/constants.js.map +0 -1
- package/dist/sso.ee/saml/errors/invalid-saml-metadata-url.error.js.map +0 -1
- package/dist/sso.ee/saml/errors/invalid-saml-metadata.error.js.map +0 -1
- package/dist/sso.ee/saml/middleware/saml-enabled-middleware.js.map +0 -1
- package/dist/sso.ee/saml/routes/saml.controller.ee.js.map +0 -1
- package/dist/sso.ee/saml/saml-helpers.js.map +0 -1
- package/dist/sso.ee/saml/saml-validator.js.map +0 -1
- package/dist/sso.ee/saml/saml.service.ee.js.map +0 -1
- package/dist/sso.ee/saml/schema/metadata-exchange.xsd.js.map +0 -1
- package/dist/sso.ee/saml/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.js.map +0 -1
- package/dist/sso.ee/saml/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.js.map +0 -1
- package/dist/sso.ee/saml/schema/ws-addr.xsd.js.map +0 -1
- package/dist/sso.ee/saml/schema/ws-authorization.xsd.js.map +0 -1
- package/dist/sso.ee/saml/schema/xenc-schema.xsd.js.map +0 -1
- package/dist/sso.ee/saml/schema/xml.xsd.js.map +0 -1
- package/dist/sso.ee/saml/service-provider.ee.js.map +0 -1
- package/dist/sso.ee/saml/views/init-sso-post.js.map +0 -1
- package/dist/{sso.ee/saml → executions/execution-data}/types.js +0 -0
- package/dist/{eventbus/message-event-bus-destination → modules/log-streaming.ee/destinations}/message-event-bus-destination-from-db.js +0 -0
- package/dist/{sso.ee/oidc → modules/sso-oidc}/constants.d.ts +0 -0
- package/dist/{sso.ee/oidc → modules/sso-oidc}/constants.js +0 -0
- package/dist/{sso.ee/oidc → modules/sso-oidc}/oidc.service.ee.d.ts +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/constants.d.ts +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/constants.js +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/errors/invalid-saml-metadata-url.error.d.ts +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/errors/invalid-saml-metadata-url.error.js +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/errors/invalid-saml-metadata.error.d.ts +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/errors/invalid-saml-metadata.error.js +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/middleware/saml-enabled-middleware.d.ts +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/saml-validator.d.ts +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/saml-validator.js +0 -0
- package/dist/{sso.ee/saml → modules/sso-saml}/saml.service.ee.d.ts +2 -2
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/metadata-exchange.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/metadata-exchange.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-assertion-2.0.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-assertion-2.0.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-metadata-2.0.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-metadata-2.0.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-protocol-2.0.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/saml-schema-protocol-2.0.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-addr.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-addr.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-authorization.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-authorization.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-federation.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-federation.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-securitypolicy-1.2.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/ws-securitypolicy-1.2.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/xenc-schema.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/xenc-schema.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/xml.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/xml.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/xmldsig-core-schema.xsd.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/schema/xmldsig-core-schema.xsd.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/service-provider.ee.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/service-provider.ee.js +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/types.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/views/init-sso-post.d.ts +0 -0
- /package/dist/{sso.ee/saml → modules/sso-saml}/views/init-sso-post.js +0 -0
|
@@ -19,13 +19,13 @@ const decorators_1 = require("@n8n/decorators");
|
|
|
19
19
|
const utils_1 = require("@n8n/utils");
|
|
20
20
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
21
21
|
const node_assert_1 = require("node:assert");
|
|
22
|
+
const response_error_1 = require("../../errors/response-errors/abstract/response.error");
|
|
23
|
+
const bad_request_error_1 = require("../../errors/response-errors/bad-request.error");
|
|
22
24
|
const chat_hub_agent_service_1 = require("./chat-hub-agent.service");
|
|
23
25
|
const chat_hub_attachment_service_1 = require("./chat-hub.attachment.service");
|
|
24
26
|
const chat_hub_models_service_1 = require("./chat-hub.models.service");
|
|
25
27
|
const chat_hub_service_1 = require("./chat-hub.service");
|
|
26
28
|
const chat_models_request_dto_1 = require("./dto/chat-models-request.dto");
|
|
27
|
-
const response_error_1 = require("../../errors/response-errors/abstract/response.error");
|
|
28
|
-
const bad_request_error_1 = require("../../errors/response-errors/bad-request.error");
|
|
29
29
|
let ChatHubController = class ChatHubController {
|
|
30
30
|
constructor(chatService, chatModelsService, chatAgentService, chatAttachmentService, logger) {
|
|
31
31
|
this.chatService = chatService;
|
|
@@ -68,6 +68,7 @@ let ChatHubController = class ChatHubController {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
async sendMessage(req, res, payload) {
|
|
71
|
+
let shouldRethrow = false;
|
|
71
72
|
try {
|
|
72
73
|
await this.chatService.sendHumanMessage(res, req.user, {
|
|
73
74
|
...payload,
|
|
@@ -79,6 +80,7 @@ let ChatHubController = class ChatHubController {
|
|
|
79
80
|
this.logger.error(`Error in chat send endpoint: ${error}`);
|
|
80
81
|
if (!res.headersSent) {
|
|
81
82
|
if (error instanceof response_error_1.ResponseError) {
|
|
83
|
+
shouldRethrow = true;
|
|
82
84
|
throw error;
|
|
83
85
|
}
|
|
84
86
|
res.status(500).json({
|
|
@@ -93,11 +95,14 @@ let ChatHubController = class ChatHubController {
|
|
|
93
95
|
}) + '\n');
|
|
94
96
|
res.flush();
|
|
95
97
|
}
|
|
96
|
-
|
|
98
|
+
}
|
|
99
|
+
finally {
|
|
100
|
+
if (!shouldRethrow && !res.writableEnded)
|
|
97
101
|
res.end();
|
|
98
102
|
}
|
|
99
103
|
}
|
|
100
104
|
async editMessage(req, res, sessionId, editId, payload) {
|
|
105
|
+
let shouldRethrow = false;
|
|
101
106
|
try {
|
|
102
107
|
await this.chatService.editMessage(res, req.user, {
|
|
103
108
|
...payload,
|
|
@@ -111,6 +116,7 @@ let ChatHubController = class ChatHubController {
|
|
|
111
116
|
this.logger.error(`Error in chat edit endpoint: ${error}`);
|
|
112
117
|
if (!res.headersSent) {
|
|
113
118
|
if (error instanceof response_error_1.ResponseError) {
|
|
119
|
+
shouldRethrow = true;
|
|
114
120
|
throw error;
|
|
115
121
|
}
|
|
116
122
|
res.status(500).json({
|
|
@@ -125,11 +131,14 @@ let ChatHubController = class ChatHubController {
|
|
|
125
131
|
}) + '\n');
|
|
126
132
|
res.flush();
|
|
127
133
|
}
|
|
128
|
-
|
|
134
|
+
}
|
|
135
|
+
finally {
|
|
136
|
+
if (!shouldRethrow && !res.writableEnded)
|
|
129
137
|
res.end();
|
|
130
138
|
}
|
|
131
139
|
}
|
|
132
140
|
async regenerateMessage(req, res, sessionId, retryId, payload) {
|
|
141
|
+
let shouldRethrow = false;
|
|
133
142
|
try {
|
|
134
143
|
await this.chatService.regenerateAIMessage(res, req.user, {
|
|
135
144
|
...payload,
|
|
@@ -143,6 +152,7 @@ let ChatHubController = class ChatHubController {
|
|
|
143
152
|
this.logger.error(`Error in chat retry endpoint: ${error}`);
|
|
144
153
|
if (!res.headersSent) {
|
|
145
154
|
if (error instanceof response_error_1.ResponseError) {
|
|
155
|
+
shouldRethrow = true;
|
|
146
156
|
throw error;
|
|
147
157
|
}
|
|
148
158
|
res.status(500).json({
|
|
@@ -157,7 +167,9 @@ let ChatHubController = class ChatHubController {
|
|
|
157
167
|
}) + '\n');
|
|
158
168
|
res.flush();
|
|
159
169
|
}
|
|
160
|
-
|
|
170
|
+
}
|
|
171
|
+
finally {
|
|
172
|
+
if (!shouldRethrow && !res.writableEnded)
|
|
161
173
|
res.end();
|
|
162
174
|
}
|
|
163
175
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-hub.controller.js","sourceRoot":"","sources":["../../../src/modules/chat-hub/chat-hub.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAcwB;AACxB,wDAA6C;AAE7C,gDAUyB;AACzB,sCAA8C;AAE9C,+CAA6C;AAC7C,6CAA+C;AAE/C,qEAA+D;AAC/D,+EAAyE;AACzE,uEAAiE;AACjE,yDAAoD;AACpD,2EAAqE;
|
|
1
|
+
{"version":3,"file":"chat-hub.controller.js","sourceRoot":"","sources":["../../../src/modules/chat-hub/chat-hub.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAcwB;AACxB,wDAA6C;AAE7C,gDAUyB;AACzB,sCAA8C;AAE9C,+CAA6C;AAC7C,6CAA+C;AAE/C,qFAAiF;AACjF,kFAA6E;AAE7E,qEAA+D;AAC/D,+EAAyE;AACzE,uEAAiE;AACjE,yDAAoD;AACpD,2EAAqE;AAG9D,IAAM,iBA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AFL,IAAA,gBAAG,EAAC,kBAAkB,CAAC;IACvB,IAAA,wBAAW,EAAC,mBAAmB,CAAC;IAC0B,WAAA,IAAA,kBAAK,EAAC,SAAS,CAAC,CAAA;;;;iDAE1E;AAIK;IAFL,IAAA,iBAAI,EAAC,SAAS,CAAC;IACf,IAAA,wBAAW,EAAC,qBAAqB,CAAC;IAIjC,WAAA,iBAAI,CAAA;;qDAAU,qCAAyB;;oDAGxC;AAIK;IAFL,IAAA,iBAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,wBAAW,EAAC,qBAAqB,CAAC;IAIjC,WAAA,IAAA,kBAAK,EAAC,SAAS,CAAC,CAAA;IAChB,WAAA,iBAAI,CAAA;;6DAAU,qCAAyB;;oDAGxC;AAIK;IAFL,IAAA,mBAAM,EAAC,kBAAkB,CAAC;IAC1B,IAAA,wBAAW,EAAC,qBAAqB,CAAC;IAIjC,WAAA,IAAA,kBAAK,EAAC,SAAS,CAAC,CAAA;;;;oDAKjB;4BA9SW,iBAAiB;IAD7B,IAAA,2BAAc,EAAC,OAAO,CAAC;qCAGQ,iCAAc;QACR,8CAAoB;QACrB,4CAAmB;QACd,sDAAwB;QACvC,uBAAM;GANpB,iBAAiB,CA+S7B"}
|
|
@@ -2,10 +2,11 @@ import { type ChatHubConversationsResponse, type ChatHubConversationResponse, ty
|
|
|
2
2
|
import { Logger } from '@n8n/backend-common';
|
|
3
3
|
import { GlobalConfig } from '@n8n/config';
|
|
4
4
|
import { ExecutionRepository, User, WorkflowRepository } from '@n8n/db';
|
|
5
|
-
import type { EntityManager } from '@n8n/
|
|
5
|
+
import type { EntityManager } from '@n8n/db';
|
|
6
6
|
import type { Response } from 'express';
|
|
7
7
|
import { ErrorReporter, InstanceSettings } from 'n8n-core';
|
|
8
8
|
import { ActiveExecutions } from '../../active-executions';
|
|
9
|
+
import { ChatExecutionManager } from '../../chat/chat-execution-manager';
|
|
9
10
|
import { ExecutionService } from '../../executions/execution.service';
|
|
10
11
|
import { WorkflowExecutionService } from '../../workflows/workflow-execution.service';
|
|
11
12
|
import { WorkflowFinderService } from '../../workflows/workflow-finder.service';
|
|
@@ -23,6 +24,7 @@ export declare class ChatHubService {
|
|
|
23
24
|
private readonly errorReporter;
|
|
24
25
|
private readonly executionService;
|
|
25
26
|
private readonly executionRepository;
|
|
27
|
+
private readonly executionManager;
|
|
26
28
|
private readonly workflowExecutionService;
|
|
27
29
|
private readonly workflowFinderService;
|
|
28
30
|
private readonly workflowRepository;
|
|
@@ -37,7 +39,7 @@ export declare class ChatHubService {
|
|
|
37
39
|
private readonly chatHubAttachmentService;
|
|
38
40
|
private readonly instanceSettings;
|
|
39
41
|
private readonly globalConfig;
|
|
40
|
-
constructor(logger: Logger, errorReporter: ErrorReporter, executionService: ExecutionService, executionRepository: ExecutionRepository, workflowExecutionService: WorkflowExecutionService, workflowFinderService: WorkflowFinderService, workflowRepository: WorkflowRepository, activeExecutions: ActiveExecutions, sessionRepository: ChatHubSessionRepository, messageRepository: ChatHubMessageRepository, chatHubAgentService: ChatHubAgentService, chatHubCredentialsService: ChatHubCredentialsService, chatHubWorkflowService: ChatHubWorkflowService, chatHubModelsService: ChatHubModelsService, chatHubSettingsService: ChatHubSettingsService, chatHubAttachmentService: ChatHubAttachmentService, instanceSettings: InstanceSettings, globalConfig: GlobalConfig);
|
|
42
|
+
constructor(logger: Logger, errorReporter: ErrorReporter, executionService: ExecutionService, executionRepository: ExecutionRepository, executionManager: ChatExecutionManager, workflowExecutionService: WorkflowExecutionService, workflowFinderService: WorkflowFinderService, workflowRepository: WorkflowRepository, activeExecutions: ActiveExecutions, sessionRepository: ChatHubSessionRepository, messageRepository: ChatHubMessageRepository, chatHubAgentService: ChatHubAgentService, chatHubCredentialsService: ChatHubCredentialsService, chatHubWorkflowService: ChatHubWorkflowService, chatHubModelsService: ChatHubModelsService, chatHubSettingsService: ChatHubSettingsService, chatHubAttachmentService: ChatHubAttachmentService, instanceSettings: InstanceSettings, globalConfig: GlobalConfig);
|
|
41
43
|
private deleteChatWorkflow;
|
|
42
44
|
private getErrorMessage;
|
|
43
45
|
private getAIOutput;
|
|
@@ -48,10 +50,21 @@ export declare class ChatHubService {
|
|
|
48
50
|
private prepareReplyWorkflow;
|
|
49
51
|
private prepareBaseChatWorkflow;
|
|
50
52
|
private prepareChatAgentWorkflow;
|
|
51
|
-
private
|
|
53
|
+
private prepareWorkflowAgentWorkflow;
|
|
52
54
|
private ensurePreviousMessage;
|
|
53
55
|
stopGeneration(user: User, sessionId: ChatSessionId, messageId: ChatMessageId): Promise<void>;
|
|
54
56
|
private executeChatWorkflow;
|
|
57
|
+
private executeLastNode;
|
|
58
|
+
private resumeChatExecution;
|
|
59
|
+
private getMessage;
|
|
60
|
+
private getLastNodeExecuted;
|
|
61
|
+
private getNodeOutputs;
|
|
62
|
+
private getFirstOutputEntry;
|
|
63
|
+
private extractMessage;
|
|
64
|
+
private beginResponse;
|
|
65
|
+
private endResponse;
|
|
66
|
+
private resumeExecution;
|
|
67
|
+
private executeWithStreaming;
|
|
55
68
|
private waitForExecutionCompletion;
|
|
56
69
|
private waitForExecutionPoller;
|
|
57
70
|
private waitForExecutionPromise;
|