n8n 2.36.7 → 2.37.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/README.md +4 -4
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/start.js +1 -2
- package/dist/commands/start.js.map +1 -1
- package/dist/constants/oauth2-triggers.d.ts +1 -1
- package/dist/constants/oauth2-triggers.js +3 -3
- package/dist/constants/workflow-reviews.d.ts +0 -3
- package/dist/constants/workflow-reviews.js +1 -10
- package/dist/constants/workflow-reviews.js.map +1 -1
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +4 -1
- package/dist/constants.js.map +1 -1
- package/dist/controller.registry.js +11 -1
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/binary-data.controller.d.ts +2 -5
- package/dist/controllers/binary-data.controller.js +3 -11
- package/dist/controllers/binary-data.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.d.ts +2 -0
- package/dist/controllers/e2e.controller.js +7 -1
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/project.controller.js +3 -3
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/role.controller.d.ts +0 -1
- package/dist/controllers/role.controller.js +24 -17
- package/dist/controllers/role.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.js +1 -2
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/credentials/credential-resolution-provider.interface.d.ts +1 -1
- package/dist/credentials/dynamic-credentials-proxy.d.ts +1 -1
- package/dist/credentials/dynamic-credentials-proxy.js +2 -2
- package/dist/credentials/dynamic-credentials-proxy.js.map +1 -1
- package/dist/credentials-helper.js +1 -1
- package/dist/credentials-helper.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-audit.d.ts +1 -1
- package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +2 -0
- package/dist/eventbus/event-message-classes/event-message-mcp.js.map +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +7 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/poll-trigger-metrics.event-map.d.ts +3 -0
- package/dist/events/maps/relay.event-map.d.ts +42 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +4 -0
- package/dist/events/relays/log-streaming.event-relay.js +72 -1
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +5 -0
- package/dist/events/relays/telemetry.event-relay.js +55 -1
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +1 -1
- package/dist/executions/execution-data/db-store.js +3 -2
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/types.d.ts +4 -2
- package/dist/executions/execution-data/types.js +4 -0
- package/dist/executions/execution-data/types.js.map +1 -1
- package/dist/executions/execution-data/unreadable-run-data.error.d.ts +5 -0
- package/dist/executions/execution-data/unreadable-run-data.error.js +11 -0
- package/dist/executions/execution-data/unreadable-run-data.error.js.map +1 -0
- package/dist/executions/execution-persistence.d.ts +3 -1
- package/dist/executions/execution-persistence.js +23 -10
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution.service.d.ts +4 -1
- package/dist/executions/execution.service.js +9 -7
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/execution.types.d.ts +1 -7
- package/dist/executions/executions.controller.d.ts +4 -1
- package/dist/executions/executions.controller.js +8 -3
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +3 -21
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/metrics/prometheus/poll-trigger-metrics.service.js +8 -0
- package/dist/metrics/prometheus/poll-trigger-metrics.service.js.map +1 -1
- package/dist/modules/agents/agent-config.service.js +1 -1
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-custom-tools.service.js +2 -2
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +5 -1
- package/dist/modules/agents/agent-execution.service.js +33 -5
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-management.service.d.ts +1 -0
- package/dist/modules/agents/agent-integration-management.service.js +16 -4
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
- package/dist/modules/agents/agent-publish.service.d.ts +1 -1
- package/dist/modules/agents/agent-publish.service.js +56 -20
- package/dist/modules/agents/agent-publish.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 +2 -2
- package/dist/modules/agents/agent-sandbox-runtime.service.js.map +1 -1
- package/dist/modules/agents/agent-skills.service.js +3 -3
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +2 -0
- package/dist/modules/agents/agent-task.service.js +45 -10
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-threads.controller.d.ts +3 -4
- package/dist/modules/agents/agent-threads.controller.js +10 -4
- package/dist/modules/agents/agent-threads.controller.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +2 -6
- package/dist/modules/agents/agent-validation.service.js +5 -9
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +3 -2
- package/dist/modules/agents/agent-workflow-execution.service.js +31 -14
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +9 -0
- package/dist/modules/agents/agents.module.js +0 -3
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +5 -2
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +2 -0
- package/dist/modules/agents/builder/agents-builder.service.js +18 -5
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +4 -3
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +11 -10
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +3 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.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-task-snapshot.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js +10 -1
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-task.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent-task.entity.js +10 -1
- package/dist/modules/agents/entities/agent-task.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent.entity.js +4 -0
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +1 -0
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js +22 -8
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +13 -2
- package/dist/modules/agents/integrations/agent-chat-integration.js +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.d.ts +2 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.js +15 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +14 -1
- package/dist/modules/agents/integrations/chat-integration.service.js +128 -11
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-action-executor.js +20 -6
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-message-context.service.d.ts +8 -1
- package/dist/modules/agents/integrations/integration-message-context.service.js +87 -3
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-execution.js +7 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-types.d.ts +8 -0
- package/dist/modules/agents/integrations/leader-channel-relay.service.d.ts +25 -0
- package/dist/modules/agents/integrations/leader-channel-relay.service.js +123 -0
- package/dist/modules/agents/integrations/leader-channel-relay.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js +8 -4
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +12 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +34 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.d.ts +4 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js +37 -9
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +3 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +2 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/json-config/agent-config-composition.d.ts +1 -1
- package/dist/modules/agents/json-config/agent-config-composition.js +3 -10
- package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +5 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +89 -8
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +5 -2
- package/dist/modules/agents/repositories/agent-execution.repository.js +41 -2
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +6 -1
- package/dist/modules/agents/repositories/agent.repository.js +38 -0
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.d.ts +1 -0
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.js +20 -7
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +11 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js +109 -40
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/utils/agent-draft.utils.d.ts +4 -0
- package/dist/modules/agents/utils/agent-draft.utils.js +9 -0
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +1 -0
- package/dist/modules/agents/utils/agent-memory-scope.js +4 -0
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/execution-failure-summary.d.ts +23 -0
- package/dist/modules/agents/utils/execution-failure-summary.js +54 -0
- package/dist/modules/agents/utils/execution-failure-summary.js.map +1 -0
- package/dist/modules/agents/workflow-agent-stream.d.ts +41 -0
- package/dist/modules/agents/workflow-agent-stream.js +132 -0
- package/dist/modules/agents/workflow-agent-stream.js.map +1 -0
- package/dist/modules/breaking-changes/breaking-changes.service.js +1 -1
- package/dist/modules/breaking-changes/breaking-changes.service.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +4 -0
- package/dist/modules/breaking-changes/rules/index.js +4 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/agent-node-mode.d.ts +4 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-mode.js +26 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-mode.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-version.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-version.rule.js +53 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-version.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/agent-removed-modes.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/agent-removed-modes.rule.js +56 -0
- package/dist/modules/breaking-changes/rules/v3/agent-removed-modes.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-any-removed.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-any-removed.rule.js +54 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-any-removed.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-default-any.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-default-any.rule.js +63 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-default-any.rule.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub.models.service.js +1 -69
- package/dist/modules/chat-hub/chat-hub.models.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +4 -14
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.service.d.ts +8 -6
- package/dist/modules/community-packages/community-packages.service.js +263 -177
- package/dist/modules/community-packages/community-packages.service.js.map +1 -1
- package/dist/modules/data-table/data-table-size-validator.service.js +2 -2
- package/dist/modules/data-table/data-table-size-validator.service.js.map +1 -1
- package/dist/modules/data-table/multer-upload-middleware.js +2 -2
- package/dist/modules/data-table/multer-upload-middleware.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/identifier-interface.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +13 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +33 -3
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.d.ts +3 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js +14 -16
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.d.ts +2 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.d.ts +12 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js +135 -19
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-utils.d.ts +6 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-utils.js +29 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-utils.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.d.ts +5 -5
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js +12 -12
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/oauth-credential-resolver.d.ts +15 -4
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/oauth-credential-resolver.js +8 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/oauth-credential-resolver.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +3 -3
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/engine-v2/engine-data-plane-client.d.ts +15 -0
- package/dist/modules/engine-v2/engine-data-plane-client.js +76 -0
- package/dist/modules/engine-v2/engine-data-plane-client.js.map +1 -0
- package/dist/modules/engine-v2/engine-v2.module.d.ts +5 -0
- package/dist/modules/engine-v2/engine-v2.module.js +48 -0
- package/dist/modules/engine-v2/engine-v2.module.js.map +1 -0
- package/dist/modules/engine-v2/engine-v2.runtime.d.ts +20 -0
- package/dist/modules/engine-v2/engine-v2.runtime.js +164 -0
- package/dist/modules/engine-v2/engine-v2.runtime.js.map +1 -0
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +1 -1
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
- package/dist/modules/git-connections.ee/constants.d.ts +7 -0
- package/dist/modules/git-connections.ee/constants.js +11 -0
- package/dist/modules/git-connections.ee/constants.js.map +1 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.d.ts +8 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.js +36 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.js.map +1 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.d.ts +14 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.js +61 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.js.map +1 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.d.ts +9 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.js +46 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.js.map +1 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.d.ts +12 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.js +37 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections-git.service.d.ts +33 -0
- package/dist/modules/git-connections.ee/git-connections-git.service.js +191 -0
- package/dist/modules/git-connections.ee/git-connections-git.service.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections-git.utils.d.ts +13 -0
- package/dist/modules/git-connections.ee/git-connections-git.utils.js +49 -0
- package/dist/modules/git-connections.ee/git-connections-git.utils.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections.module.d.ts +5 -0
- package/dist/modules/git-connections.ee/git-connections.module.js +32 -0
- package/dist/modules/git-connections.ee/git-connections.module.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections.service.d.ts +64 -0
- package/dist/modules/git-connections.ee/git-connections.service.js +331 -0
- package/dist/modules/git-connections.ee/git-connections.service.js.map +1 -0
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.d.ts +2 -0
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.js +10 -1
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.js.map +1 -1
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.d.ts +2 -0
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js +19 -2
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +2 -0
- package/dist/modules/instance-ai/event-bus/durable-event-log.js +30 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.d.ts +3 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js +33 -23
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js +49 -7
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -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 -2
- package/dist/modules/instance-ai/instance-ai-verification.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +4 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +91 -32
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.js +5 -0
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.service.js +36 -87
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +3 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +14 -6
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.d.ts +3 -2
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js +10 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +4 -2
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +47 -4
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +9 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +34 -2
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.d.ts +4 -0
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.js +14 -0
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.js.map +1 -1
- package/dist/modules/instance-ai/run-trace-metadata.js +2 -1
- package/dist/modules/instance-ai/run-trace-metadata.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +5 -0
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +4 -1
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +2 -5
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +2 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +6 -2
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/tracing/index.d.ts +1 -1
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +9 -6
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +18 -3
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -1
- package/dist/modules/mcp/mcp-api-key.service.js +1 -1
- package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +7 -3
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +3 -3
- package/dist/modules/mcp/mcp.service.js +7 -5
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +14 -1
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/tool-schema.util.js +2 -3
- package/dist/modules/mcp/tool-schema.util.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.d.ts +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +2 -0
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +1 -0
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/search-folders.tool.js +1 -1
- package/dist/modules/mcp/tools/search-folders.tool.js.map +1 -1
- package/dist/modules/mcp/tools/search-workflows.tool.d.ts +5 -2
- package/dist/modules/mcp/tools/search-workflows.tool.js +58 -7
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/credential-validation.js +2 -21
- package/dist/modules/mcp/tools/workflow-builder/credential-validation.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +2 -2
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +3 -25
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +62 -13
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +13 -3
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +33 -3
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +3 -1
- package/dist/modules/n8n-packages/engine/import-result.js +2 -0
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/import-telemetry.js +9 -0
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +6 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +16 -2
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/project-package-importer.js +11 -0
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +2 -0
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +43 -0
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +5 -2
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +4 -2
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js +2 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.d.ts +5 -1
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.js +24 -0
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder-removal.types.d.ts +11 -0
- package/dist/modules/n8n-packages/entities/folder/folder-removal.types.js +3 -0
- package/dist/modules/n8n-packages/entities/folder/folder-removal.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder-remover.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/folder/folder-remover.js +110 -0
- package/dist/modules/n8n-packages/entities/folder/folder-remover.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +4 -4
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +4 -4
- package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +3 -3
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js +2 -2
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +16 -16
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-removal.types.d.ts +21 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-removal.types.js +3 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-removal.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.d.ts +12 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js +109 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.d.ts +9 -0
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.js +39 -0
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.js.map +1 -0
- package/dist/modules/n8n-packages/io/package-writer.d.ts +2 -4
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +41 -16
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +57 -4
- package/dist/modules/n8n-packages/n8n-packages.types.js +10 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +8 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +12 -1
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +28 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +7 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.d.ts +1 -0
- package/dist/modules/oauth-server/oauth-token.service.js +12 -1
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +0 -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 +0 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-check-failed.error.d.ts +10 -0
- package/dist/modules/policy-infrastructure/policy-check-failed.error.js +14 -0
- package/dist/modules/policy-infrastructure/policy-check-failed.error.js.map +1 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.d.ts +14 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.js +121 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.js.map +1 -0
- package/dist/modules/policy-infrastructure/policy-infrastructure.module.d.ts +4 -0
- package/dist/modules/policy-infrastructure/policy-infrastructure.module.js +23 -0
- package/dist/modules/policy-infrastructure/policy-infrastructure.module.js.map +1 -0
- package/dist/modules/provisioning.ee/constants.d.ts +1 -0
- package/dist/modules/provisioning.ee/constants.js +3 -1
- package/dist/modules/provisioning.ee/constants.js.map +1 -1
- package/dist/modules/provisioning.ee/errors/sso-access-denied.error.d.ts +4 -0
- package/dist/modules/provisioning.ee/errors/sso-access-denied.error.js +11 -0
- package/dist/modules/provisioning.ee/errors/sso-access-denied.error.js.map +1 -0
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +4 -4
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.d.ts +1 -3
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js +16 -23
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.d.ts +17 -5
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js +31 -9
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +1 -0
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +7 -19
- 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.d.ts +3 -5
- package/dist/modules/source-control.ee/source-control-helper.ee.js +10 -40
- 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.js +7 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/types/exportable-workflow.d.ts +1 -0
- package/dist/modules/source-control.ee/types/source-control-workflow-version-id.d.ts +1 -0
- package/dist/modules/sso-oidc/oidc.controller.ee.js +23 -7
- package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
- package/dist/modules/sso-saml/saml.controller.ee.js +5 -0
- package/dist/modules/sso-saml/saml.controller.ee.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-evaluator.d.ts +2 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js +28 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js.map +1 -0
- package/dist/modules/type-availability-policies/policy-rule.types.d.ts +23 -0
- package/dist/modules/type-availability-policies/policy-rule.types.js +3 -0
- package/dist/modules/type-availability-policies/policy-rule.types.js.map +1 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.d.ts +4 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +18 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-access.service.d.ts +4 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-access.service.js +25 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-access.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-activity.service.d.ts +5 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-activity.service.js +14 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-activity.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-eligibility.service.js +9 -9
- package/dist/modules/workflow-reviews.ee/workflow-review-eligibility.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js +1 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +2 -3
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +5 -5
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.d.ts +30 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js +256 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +6 -6
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +61 -52
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.d.ts +3 -2
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js +24 -1
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +2 -5
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
- package/dist/policy/policy-cleared.d.ts +20 -0
- package/dist/policy/policy-cleared.js +22 -0
- package/dist/policy/policy-cleared.js.map +1 -0
- package/dist/policy/policy-enforcement-backend.d.ts +15 -0
- package/dist/policy/policy-enforcement-backend.js +3 -0
- package/dist/policy/policy-enforcement-backend.js.map +1 -0
- package/dist/policy/policy-enforcement.service.d.ts +21 -0
- package/dist/policy/policy-enforcement.service.js +87 -0
- package/dist/policy/policy-enforcement.service.js.map +1 -0
- package/dist/policy/policy-violation.error.d.ts +13 -0
- package/dist/policy/policy-violation.error.js +22 -0
- package/dist/policy/policy-violation.error.js.map +1 -0
- package/dist/posthog/index.js +1 -1
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/public-api-controller.registry.js +2 -1
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-route-resolver.d.ts +2 -2
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/public-api-validation-error.d.ts +2 -0
- package/dist/public-api/public-api-validation-error.js +17 -0
- package/dist/public-api/public-api-validation-error.js.map +1 -0
- package/dist/public-api/types.d.ts +2 -9
- package/dist/public-api/v1/controllers/git-connections.public.controller.d.ts +20 -0
- package/dist/public-api/v1/controllers/git-connections.public.controller.js +278 -0
- package/dist/public-api/v1/controllers/git-connections.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/index.d.ts +1 -0
- package/dist/public-api/v1/controllers/index.js +1 -0
- package/dist/public-api/v1/controllers/index.js.map +1 -1
- package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.d.ts +6 -1
- package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.js +117 -11
- 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 +2 -1
- package/dist/public-api/v1/controllers/roles.public.controller.js +46 -2
- package/dist/public-api/v1/controllers/roles.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/tags.public.controller.js +1 -18
- package/dist/public-api/v1/controllers/tags.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +16 -3
- package/dist/public-api/v1/controllers/workflows.public.controller.js +169 -5
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js +3 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +1 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +2 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.js +3 -3
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +0 -6
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +0 -72
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +32 -0
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +37 -9
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +5196 -1873
- package/dist/push/index.js +3 -3
- package/dist/push/index.js.map +1 -1
- package/dist/response-helper.js +1 -2
- package/dist/response-helper.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/constants.js +2 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +19 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scaling/pubsub/subscriber.service.d.ts +1 -0
- package/dist/scaling/pubsub/subscriber.service.js +24 -4
- package/dist/scaling/pubsub/subscriber.service.js.map +1 -1
- package/dist/scheduling/durable-job-provisioner.js +1 -1
- package/dist/scheduling/durable-job-provisioner.js.map +1 -1
- package/dist/scheduling/durable-scheduler.js +9 -0
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.d.ts +2 -0
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.js +9 -0
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.js.map +1 -0
- package/dist/scheduling/poll-trigger-node/poll-job-provider.d.ts +1 -3
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js +4 -8
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +3 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +9 -3
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +8 -3
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +86 -7
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -1
- package/dist/services/engine-data-plane-proxy.service.d.ts +10 -0
- package/dist/services/engine-data-plane-proxy.service.js +33 -0
- package/dist/services/engine-data-plane-proxy.service.js.map +1 -0
- package/dist/services/engine-v2-dispatcher.service.d.ts +14 -0
- package/dist/services/engine-v2-dispatcher.service.js +93 -0
- package/dist/services/engine-v2-dispatcher.service.js.map +1 -0
- package/dist/services/folder-finder.service.d.ts +1 -0
- package/dist/services/folder-finder.service.js +9 -0
- package/dist/services/folder-finder.service.js.map +1 -1
- package/dist/services/folder.service.d.ts +5 -0
- package/dist/services/folder.service.js +7 -0
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/frontend.service.d.ts +3 -4
- package/dist/services/frontend.service.js +5 -13
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/node-resource-explorer.service.d.ts +1 -0
- package/dist/services/node-resource-explorer.service.js +72 -13
- package/dist/services/node-resource-explorer.service.js.map +1 -1
- package/dist/services/oauth-token-verifier-proxy.service.d.ts +11 -1
- package/dist/services/oauth-token-verifier-proxy.service.js +6 -0
- package/dist/services/oauth-token-verifier-proxy.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
- package/dist/services/role-authorization.d.ts +11 -2
- package/dist/services/role-authorization.js +15 -6
- package/dist/services/role-authorization.js.map +1 -1
- package/dist/services/role.service.d.ts +5 -1
- package/dist/services/role.service.js +7 -2
- package/dist/services/role.service.js.map +1 -1
- package/dist/utils/ai-service-retry.js +3 -4
- package/dist/utils/ai-service-retry.js.map +1 -1
- package/dist/webhooks/webhook-blank-file-inputs.d.ts +4 -0
- package/dist/webhooks/webhook-blank-file-inputs.js +32 -0
- package/dist/webhooks/webhook-blank-file-inputs.js.map +1 -0
- package/dist/webhooks/webhook-form-data.js +29 -15
- package/dist/webhooks/webhook-form-data.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +2 -2
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-sanitizer.js +10 -4
- package/dist/webhooks/webhook-request-sanitizer.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +2 -2
- package/dist/workflow-execute-additional-data.js +17 -6
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +2 -7
- package/dist/workflow-helpers.js +3 -34
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +3 -1
- package/dist/workflow-runner.js +7 -2
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/publication/heal-node-ids.d.ts +26 -0
- package/dist/workflows/publication/heal-node-ids.js +65 -0
- package/dist/workflows/publication/heal-node-ids.js.map +1 -0
- package/dist/workflows/publication/publication-result.d.ts +1 -1
- package/dist/workflows/publication/publication-status-reporter.js +8 -3
- package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.d.ts +10 -1
- package/dist/workflows/publication/workflow-publication-applier.js +56 -3
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
- package/dist/workflows/triggers/enabled-trigger-nodes.d.ts +2 -1
- package/dist/workflows/triggers/enabled-trigger-nodes.js +5 -1
- package/dist/workflows/triggers/enabled-trigger-nodes.js.map +1 -1
- package/dist/workflows/triggers/poll-backoff-policy.d.ts +15 -0
- package/dist/workflows/triggers/poll-backoff-policy.js +78 -0
- package/dist/workflows/triggers/poll-backoff-policy.js.map +1 -0
- package/dist/workflows/triggers/poll-backoff.service.d.ts +30 -0
- package/dist/workflows/triggers/poll-backoff.service.js +121 -0
- package/dist/workflows/triggers/poll-backoff.service.js.map +1 -0
- package/dist/workflows/triggers/poll-cursor.service.d.ts +7 -5
- package/dist/workflows/triggers/poll-cursor.service.js +14 -6
- package/dist/workflows/triggers/poll-cursor.service.js.map +1 -1
- package/dist/workflows/triggers/workflow-trigger-activator.d.ts +1 -0
- package/dist/workflows/triggers/workflow-trigger-activator.js +31 -3
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +3 -1
- package/dist/workflows/workflow-creation.service.js +9 -2
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +8 -0
- package/dist/workflows/workflow-finder.service.js +20 -0
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +16 -6
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js +9 -6
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +2 -5
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +15 -1
- package/dist/workflows/workflow.service.ee.d.ts +3 -1
- package/dist/workflows/workflow.service.ee.js +12 -6
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +77 -25
- package/dist/workflows/workflow.service.js.map +1 -1
- package/package.json +64 -62
- package/templates/form-shell.handlebars +92 -7
- package/templates/form-trigger-completion.handlebars +5 -3
- package/templates/form-trigger.handlebars +11 -4
- package/templates/partials/formHostNavigation.handlebars +44 -0
- package/dist/binary-data/binary-data-access.service.d.ts +0 -11
- package/dist/binary-data/binary-data-access.service.js +0 -50
- package/dist/binary-data/binary-data-access.service.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder-settings.controller.d.ts +0 -10
- package/dist/modules/agents/builder/agents-builder-settings.controller.js +0 -52
- package/dist/modules/agents/builder/agents-builder-settings.controller.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder-settings.service.d.ts +0 -38
- package/dist/modules/agents/builder/agents-builder-settings.service.js +0 -174
- package/dist/modules/agents/builder/agents-builder-settings.service.js.map +0 -1
- package/dist/modules/data-table/utils/size-utils.d.ts +0 -2
- package/dist/modules/data-table/utils/size-utils.js +0 -19
- package/dist/modules/data-table/utils/size-utils.js.map +0 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.d.ts +0 -18
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.js +0 -114
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.js.map +0 -1
- package/dist/workflows/triggers/durable-poller-gate.service.d.ts +0 -19
- package/dist/workflows/triggers/durable-poller-gate.service.js +0 -78
- package/dist/workflows/triggers/durable-poller-gate.service.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oidc.controller.ee.js","sourceRoot":"","sources":["../../../src/modules/sso-oidc/oidc.controller.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAA+C;AAC/C,wDAA6C;AAC7C,wCAAyE;AACzE,8CAAsC;AAEtC,gDAAyF;AAGzF,sDAAkD;AAClD,2CAA6E;AAC7E,kFAA6E;AAC7E,8EAA0E;AAC1E,0DAAsD;
|
|
1
|
+
{"version":3,"file":"oidc.controller.ee.js","sourceRoot":"","sources":["../../../src/modules/sso-oidc/oidc.controller.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8CAA+C;AAC/C,wDAA6C;AAC7C,wCAAyE;AACzE,8CAAsC;AAEtC,gDAAyF;AAGzF,sDAAkD;AAClD,2CAA6E;AAC7E,kFAA6E;AAC7E,8EAA0E;AAC1E,0DAAsD;AACtD,mEAAsF;AACtF,sGAAgG;AAEhG,wDAAoD;AACpD,sDAAyE;AAEzE,2CAIqB;AACrB,uDAAgD;AAChD,+DAAwF;AAGjF,IAAM,cAAc,GAApB,MAAM,cAAc;IAC1B,YACkB,WAAwB,EACxB,WAAwB,EACxB,YAA0B,EAC1B,UAAsB,EACtB,YAA0B,EAC1B,MAAc,EACd,4BAA0D;2BAN1D,WAAW;2BACX,WAAW;4BACX,YAAY;0BACZ,UAAU;4BACV,YAAY;sBACZ,MAAM;4CACN,4BAA4B;IAC3C,CAAC;IAKE,AAAN,KAAK,CAAC,qBAAqB,CAAC,IAA0B;QACrD,MAAM,MAAM,GAAG,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;;;;2DAO1B;AAKK;IAHL,IAAA,iBAAI,EAAC,SAAS,CAAC;IACf,IAAA,qBAAQ,EAAC,WAAW,CAAC;IACrB,IAAA,wBAAW,EAAC,aAAa,CAAC;IAIzB,WAAA,iBAAI,CAAA;;qDAAU,yBAAa;;uDAU5B;AAKK;IAHL,IAAA,iBAAI,EAAC,cAAc,CAAC;IACpB,IAAA,qBAAQ,EAAC,WAAW,CAAC;IACrB,IAAA,wBAAW,EAAC,aAAa,CAAC;;;;oDAmB1B;AAIK;IAFL,IAAA,gBAAG,EAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjC,IAAA,qBAAQ,EAAC,WAAW,CAAC;;;;4DAkBrB;AAIK;IAFL,IAAA,gBAAG,EAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IACzD,IAAA,qBAAQ,EAAC,WAAW,CAAC;;;;qDAqFrB;AAkBK;IAFL,IAAA,iBAAI,EAAC,SAAS,CAAC;IACf,IAAA,qBAAQ,EAAC,WAAW,CAAC;;;;4CAiCrB;yBA5NW,cAAc;IAD1B,IAAA,2BAAc,EAAC,WAAW,CAAC;qCAGI,6BAAW,EACX,0BAAW,EACV,4BAAY,EACd,wBAAU,EACR,qBAAY,EAClB,uBAAM,EACgB,qCAA4B;GARhE,cAAc,CA6N1B"}
|
|
@@ -26,6 +26,8 @@ const auth_service_1 = require("../../auth/auth.service");
|
|
|
26
26
|
const auth_error_1 = require("../../errors/response-errors/auth.error");
|
|
27
27
|
const forbidden_error_1 = require("../../errors/response-errors/forbidden.error");
|
|
28
28
|
const event_service_1 = require("../../events/event.service");
|
|
29
|
+
const constants_1 = require("../../modules/provisioning.ee/constants");
|
|
30
|
+
const sso_access_denied_error_1 = require("../../modules/provisioning.ee/errors/sso-access-denied.error");
|
|
29
31
|
const response_helper_1 = require("../../response-helper");
|
|
30
32
|
const url_service_1 = require("../../services/url.service");
|
|
31
33
|
const sso_helpers_1 = require("../../sso.ee/sso-helpers");
|
|
@@ -143,6 +145,9 @@ let SamlController = class SamlController {
|
|
|
143
145
|
userEmail: 'unknown',
|
|
144
146
|
authenticationMethod: 'saml',
|
|
145
147
|
});
|
|
148
|
+
if (error instanceof sso_access_denied_error_1.SsoAccessDeniedError) {
|
|
149
|
+
return res.redirect(this.urlService.getInstanceBaseUrl() + constants_1.SSO_ACCESS_DENIED_REDIRECT_PATH);
|
|
150
|
+
}
|
|
146
151
|
return (0, response_helper_1.sendErrorResponse)(res, new auth_error_1.AuthError('SAML Authentication failed: ' + error.message));
|
|
147
152
|
}
|
|
148
153
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saml.controller.ee.js","sourceRoot":"","sources":["../../../src/modules/sso-saml/saml.controller.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,8CAA4E;AAC5E,wCAA2D;AAE3D,gDAA+E;AAE/E,+CAAyD;AACzD,8DAAsC;AAEtC,8CAAsB;AAEtB,sDAAkD;AAClD,oEAAgE;AAChE,8EAA0E;AAC1E,0DAAsD;
|
|
1
|
+
{"version":3,"file":"saml.controller.ee.js","sourceRoot":"","sources":["../../../src/modules/sso-saml/saml.controller.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,8CAA4E;AAC5E,wCAA2D;AAE3D,gDAA+E;AAE/E,+CAAyD;AACzD,8DAAsC;AAEtC,8CAAsB;AAEtB,sDAAkD;AAClD,oEAAgE;AAChE,8EAA0E;AAC1E,0DAAsD;AACtD,mEAAsF;AACtF,sGAAgG;AAEhG,uDAAsD;AACtD,wDAAoD;AACpD,sDAAgE;AAChE,yEAAoE;AAEpE,kFAG8C;AAC9C,iDAAsF;AACtF,uDAAgD;AAChD,+DAI+B;AAE/B,yDAA2D;AAGpD,IAAM,cAAc,GAApB,MAAM,cAAc;IAC1B,YACkB,WAAwB,EACxB,WAAwB,EACxB,UAAsB,EACtB,YAA0B,E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
3
|
+
exports.evaluateType = evaluateType;
|
|
4
|
+
function selectorMatches(selector, typeName) {
|
|
5
|
+
switch (selector.kind) {
|
|
6
|
+
case 'name':
|
|
7
|
+
return selector.value === typeName;
|
|
8
|
+
case 'package':
|
|
9
|
+
return typeName.split('.')[0] === selector.value;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function orderedAttachments(attachments) {
|
|
13
|
+
const byPriority = (a, b) => a.priority - b.priority;
|
|
14
|
+
const floor = attachments.filter((a) => a.isFloor).sort(byPriority);
|
|
15
|
+
const normal = attachments.filter((a) => !a.isFloor).sort(byPriority);
|
|
16
|
+
return [...floor, ...normal];
|
|
17
|
+
}
|
|
18
|
+
function evaluateType(attachments, defaultAction, typeName) {
|
|
19
|
+
for (const attachment of orderedAttachments(attachments)) {
|
|
20
|
+
for (const rule of attachment.rules) {
|
|
21
|
+
if (selectorMatches(rule.selector, typeName)) {
|
|
22
|
+
return { action: rule.action, matchedRuleId: rule.id };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return { action: defaultAction, matchedRuleId: null };
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=policy-evaluator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy-evaluator.js","sourceRoot":"","sources":["../../../src/modules/type-availability-policies/policy-evaluator.ts"],"names":[],"mappings":";;;AAYA,SAAS,eAAe,CAAC,QAAwB,EAAE,QAAgB;IAClE,QAAQ,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvB,KAAK,MAAM;YACV,OAAO,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC;QACpC,KAAK,SAAS;YACb,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,KAAK,CAAC;IACnD,CAAC;AACF,CAAC;AAOD,SAAS,kBAAkB,CAAC,WAAwC;IACnE,MAAM,UAAU,GAAG,CAAC,CAAmB,EAAE,CAAmB,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC;IAEzF,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpE,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAEtE,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,CAAC;AAC9B,CAAC;AAUD,sBACC,WAAwC,EACxC,aAA2B,EAC3B,QAAgB;IAEhB,KAAK,MAAM,UAAU,IAAI,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;QAC1D,KAAK,MAAM,IAAI,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;YACrC,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC;gBAC9C,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;YACxD,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type PolicySelector = {
|
|
2
|
+
readonly kind: 'name';
|
|
3
|
+
readonly value: string;
|
|
4
|
+
} | {
|
|
5
|
+
readonly kind: 'package';
|
|
6
|
+
readonly value: string;
|
|
7
|
+
};
|
|
8
|
+
export type PolicyAction = 'allow' | 'deny' | 'delegate';
|
|
9
|
+
export type PolicyRule = {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly action: PolicyAction;
|
|
12
|
+
readonly selector: PolicySelector;
|
|
13
|
+
};
|
|
14
|
+
export type PolicyAttachment = {
|
|
15
|
+
readonly policyId: string;
|
|
16
|
+
readonly rules: readonly PolicyRule[];
|
|
17
|
+
readonly priority: number;
|
|
18
|
+
readonly isFloor: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type PolicyVerdict = {
|
|
21
|
+
readonly action: PolicyAction;
|
|
22
|
+
readonly matchedRuleId: string | null;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy-rule.types.js","sourceRoot":"","sources":["../../../src/modules/type-availability-policies/policy-rule.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.TypeAvailabilityPoliciesModule = void 0;
|
|
10
|
+
const decorators_1 = require("@n8n/decorators");
|
|
11
|
+
let TypeAvailabilityPoliciesModule = class TypeAvailabilityPoliciesModule {
|
|
12
|
+
async init() { }
|
|
13
|
+
};
|
|
14
|
+
exports.TypeAvailabilityPoliciesModule = TypeAvailabilityPoliciesModule;
|
|
15
|
+
exports.TypeAvailabilityPoliciesModule = TypeAvailabilityPoliciesModule = __decorate([
|
|
16
|
+
(0, decorators_1.BackendModule)({ name: 'type-availability-policies' })
|
|
17
|
+
], TypeAvailabilityPoliciesModule);
|
|
18
|
+
//# sourceMappingURL=type-availability-policies.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-availability-policies.module.js","sourceRoot":"","sources":["../../../src/modules/type-availability-policies/type-availability-policies.module.ts"],"names":[],"mappings":";;;;;;;;;AACA,gDAAgD;AAGzC,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAC1C,KAAK,CAAC,IAAI,KAAI,CAAC;CACf,CAAA;;yCAFY,8BAA8B;IAD1C,IAAA,0BAAa,EAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC;GACzC,8BAA8B,CAE1C"}
|
|
@@ -23,5 +23,9 @@ export declare class WorkflowReviewAccessService {
|
|
|
23
23
|
private resolveReadableProjectIds;
|
|
24
24
|
findReadableRequestOrFail(user: User, workflowReviewRequestId: string): Promise<ReadableWorkflowReviewRequest>;
|
|
25
25
|
private canAccessRequest;
|
|
26
|
+
resolveOpenableRequestIds(user: User, requests: Array<{
|
|
27
|
+
id: string;
|
|
28
|
+
projectId: string;
|
|
29
|
+
}>): Promise<Set<string>>;
|
|
26
30
|
private filterReadableWorkflowRows;
|
|
27
31
|
}
|
|
@@ -91,6 +91,31 @@ let WorkflowReviewAccessService = class WorkflowReviewAccessService {
|
|
|
91
91
|
]);
|
|
92
92
|
return isAuthor || isReviewer;
|
|
93
93
|
}
|
|
94
|
+
async resolveOpenableRequestIds(user, requests) {
|
|
95
|
+
if (requests.length === 0) {
|
|
96
|
+
return new Set();
|
|
97
|
+
}
|
|
98
|
+
const visibility = await this.resolveInboxVisibility(user);
|
|
99
|
+
if (visibility.scope === 'all') {
|
|
100
|
+
return new Set(requests.map((request) => request.id));
|
|
101
|
+
}
|
|
102
|
+
const adminProjectIds = new Set(visibility.adminProjectIds);
|
|
103
|
+
const openable = new Set(requests
|
|
104
|
+
.filter((request) => adminProjectIds.has(request.projectId))
|
|
105
|
+
.map((request) => request.id));
|
|
106
|
+
const remainingIds = requests.map((request) => request.id).filter((id) => !openable.has(id));
|
|
107
|
+
if (remainingIds.length > 0) {
|
|
108
|
+
const [authoredIds, reviewingIds] = await Promise.all([
|
|
109
|
+
this.workflowReviewRequestAuthorRepository.findRequestIdsForUser(remainingIds, user.id),
|
|
110
|
+
this.workflowReviewRequestReviewerRepository.findRequestIdsForUser(remainingIds, user.id),
|
|
111
|
+
]);
|
|
112
|
+
for (const id of authoredIds)
|
|
113
|
+
openable.add(id);
|
|
114
|
+
for (const id of reviewingIds)
|
|
115
|
+
openable.add(id);
|
|
116
|
+
}
|
|
117
|
+
return openable;
|
|
118
|
+
}
|
|
94
119
|
async filterReadableWorkflowRows(user, rows) {
|
|
95
120
|
const readable = await Promise.all(rows.map(async (row) => (await this.workflowFinderService.findWorkflowForUser(row.workflowId, user, [
|
|
96
121
|
'workflow:read',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-review-access.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAWiB;AACjB,gCAAkC;AAClC,kDAK0B;AAE1B,8EAAyE;AACzE,sEAA+D;AAC/D,0DAAsD;AACtD,iFAA4E;AAerE,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,YACkB,qBAA4C,EAC5C,cAA8B,EAC9B,WAAwB,EACxB,iBAAoC,EACpC,yBAAoD,EACpD,+BAAgE,EAChE,uCAAgF,EAChF,qCAA4E,EAC5E,uCAAgF;qCARhF,qBAAqB;8BACrB,cAAc;2BACd,WAAW;iCACX,iBAAiB;yCACjB,yBAAyB;+CACzB,+BAA+B;uDAC/B,uCAAuC;qDACvC,qCAAqC;uDACrC,uCAAuC;IACtD,CAAC;IAWJ,KAAK,CAAC,sBAAsB,CAAC,IAAU;QACtC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,oCAAsB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,oCAAsB,EAAE,CAAC;YAC5F,O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AAI,CAAC,EAAE,EAAE,CAAC;QAC7E,MAAM,CAAC,QAAQ,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YAChD,IAAI,CAAC,qCAAqC,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;YACpE,IAAI,CAAC,uCAAuC,CAAC,UAAU,CAAC,WAAW,EAAE,EAAE,CAAC;SACxE,CAAC,CAAC;QAEH,OAAO,QAAQ,IAAI,UAAU,CAAC;IAC/B,CAAC;IAWO,KAAK,CAAC,0BAA0B,CACvC,IAAU,EACV,IAA8C;QAE9C,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CACjC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CACtB,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE;YAC3E,eAAe;SACf,CAAC,CAAC;YACF,CAAC,CAAC,GAAG;YACL,CAAC,CAAC,IAAI,CACP,CACD,CAAC;QAEF,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAiD,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC;IAC9F,CAAC;CACD,CAAA;;
|
|
1
|
+
{"version":3,"file":"workflow-review-access.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAWiB;AACjB,gCAAkC;AAClC,kDAK0B;AAE1B,8EAAyE;AACzE,sEAA+D;AAC/D,0DAAsD;AACtD,iFAA4E;AAerE,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,YACkB,qBAA4C,EAC5C,cAA8B,EAC9B,WAAwB,EACxB,iBAAoC,EACpC,yBAAoD,EACpD,+BAAgE,EAChE,uCAAgF,EAChF,qCAA4E,EAC5E,uCAAgF;qCARhF,qBAAqB;8BACrB,cAAc;2BACd,WAAW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AG,EAAiD,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC;IAC9F,CAAC;CACD,CAAA;;sCAvMY,2BAA2B;IADvC,IAAA,YAAO,GAAE;qCAGgC,+CAAqB,EAC5B,mCAAc,EACjB,0BAAW,EACL,sBAAiB,EACT,8BAAyB,EACnB,oCAA+B,EACvB,4CAAuC,EACzC,0CAAqC,EACnC,4CAAuC;GAVtF,2BAA2B,CAuMvC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CreateWorkflowReviewCommentDto, ListWorkflowReviewActivityQueryDto, ListWorkflowReviewActivityResponse, WorkflowReviewActivityEntry } from '@n8n/api-types';
|
|
2
2
|
import { Logger } from '@n8n/backend-common';
|
|
3
|
-
import { TransactionRunner, UserRepository, WorkflowReviewActivityCommentRepository, WorkflowReviewActivityRepository, type User } from '@n8n/db';
|
|
3
|
+
import { TransactionRunner, UserRepository, WorkflowReviewActivityCommentRepository, WorkflowReviewActivityRepository, WorkflowReviewRequestRepository, type User } from '@n8n/db';
|
|
4
|
+
import { EventService } from '../../events/event.service';
|
|
4
5
|
import { WorkflowReviewAccessService } from './workflow-review-access.service';
|
|
5
6
|
import { WorkflowReviewEligibilityService } from './workflow-review-eligibility.service';
|
|
6
7
|
import { WorkflowReviewFeatureGate } from './workflow-review-feature-gate.service';
|
|
@@ -10,10 +11,12 @@ export declare class WorkflowReviewActivityService {
|
|
|
10
11
|
private readonly eligibilityService;
|
|
11
12
|
private readonly activityRepository;
|
|
12
13
|
private readonly activityCommentRepository;
|
|
14
|
+
private readonly requestRepository;
|
|
13
15
|
private readonly userRepository;
|
|
14
16
|
private readonly txRunner;
|
|
15
17
|
private readonly logger;
|
|
16
|
-
|
|
18
|
+
private readonly eventService;
|
|
19
|
+
constructor(featureGate: WorkflowReviewFeatureGate, accessService: WorkflowReviewAccessService, eligibilityService: WorkflowReviewEligibilityService, activityRepository: WorkflowReviewActivityRepository, activityCommentRepository: WorkflowReviewActivityCommentRepository, requestRepository: WorkflowReviewRequestRepository, userRepository: UserRepository, txRunner: TransactionRunner, logger: Logger, eventService: EventService);
|
|
17
20
|
listActivity(user: User, workflowReviewRequestId: string, query: ListWorkflowReviewActivityQueryDto): Promise<ListWorkflowReviewActivityResponse>;
|
|
18
21
|
createComment(user: User, workflowReviewRequestId: string, dto: CreateWorkflowReviewCommentDto): Promise<WorkflowReviewActivityEntry>;
|
|
19
22
|
private hydrate;
|
|
@@ -14,21 +14,25 @@ const backend_common_1 = require("@n8n/backend-common");
|
|
|
14
14
|
const db_1 = require("@n8n/db");
|
|
15
15
|
const di_1 = require("@n8n/di");
|
|
16
16
|
const bad_request_error_1 = require("../../errors/response-errors/bad-request.error");
|
|
17
|
+
const conflict_error_1 = require("../../errors/response-errors/conflict.error");
|
|
17
18
|
const forbidden_error_1 = require("../../errors/response-errors/forbidden.error");
|
|
19
|
+
const event_service_1 = require("../../events/event.service");
|
|
18
20
|
const workflow_review_access_service_1 = require("./workflow-review-access.service");
|
|
19
21
|
const workflow_review_eligibility_service_1 = require("./workflow-review-eligibility.service");
|
|
20
22
|
const workflow_review_feature_gate_service_1 = require("./workflow-review-feature-gate.service");
|
|
21
23
|
const workflow_review_mapper_1 = require("./workflow-review.mapper");
|
|
22
24
|
let WorkflowReviewActivityService = class WorkflowReviewActivityService {
|
|
23
|
-
constructor(featureGate, accessService, eligibilityService, activityRepository, activityCommentRepository, userRepository, txRunner, logger) {
|
|
25
|
+
constructor(featureGate, accessService, eligibilityService, activityRepository, activityCommentRepository, requestRepository, userRepository, txRunner, logger, eventService) {
|
|
24
26
|
this.featureGate = featureGate;
|
|
25
27
|
this.accessService = accessService;
|
|
26
28
|
this.eligibilityService = eligibilityService;
|
|
27
29
|
this.activityRepository = activityRepository;
|
|
28
30
|
this.activityCommentRepository = activityCommentRepository;
|
|
31
|
+
this.requestRepository = requestRepository;
|
|
29
32
|
this.userRepository = userRepository;
|
|
30
33
|
this.txRunner = txRunner;
|
|
31
34
|
this.logger = logger;
|
|
35
|
+
this.eventService = eventService;
|
|
32
36
|
}
|
|
33
37
|
async listActivity(user, workflowReviewRequestId, query) {
|
|
34
38
|
await this.featureGate.assertAvailable();
|
|
@@ -50,6 +54,10 @@ let WorkflowReviewActivityService = class WorkflowReviewActivityService {
|
|
|
50
54
|
throw new forbidden_error_1.ForbiddenError('You are not allowed to comment on this review');
|
|
51
55
|
}
|
|
52
56
|
const { activity, message } = await this.txRunner.run({}, async (ctx) => {
|
|
57
|
+
const request = await this.requestRepository.findById(workflowReviewRequestId, ctx);
|
|
58
|
+
if (!request || request.state === 'closed') {
|
|
59
|
+
throw new conflict_error_1.ConflictError('The review request is no longer open');
|
|
60
|
+
}
|
|
53
61
|
const activity = await this.activityRepository.createActivity({
|
|
54
62
|
workflowReviewRequestId,
|
|
55
63
|
type: 'comment.created',
|
|
@@ -59,6 +67,10 @@ let WorkflowReviewActivityService = class WorkflowReviewActivityService {
|
|
|
59
67
|
const message = await this.activityCommentRepository.createComment({ activityId: activity.id, createdById: user.id, body: dto.body }, ctx);
|
|
60
68
|
return { activity, message };
|
|
61
69
|
});
|
|
70
|
+
this.eventService.emit('workflow-review-comment-created', {
|
|
71
|
+
user,
|
|
72
|
+
workflowReviewRequestId,
|
|
73
|
+
});
|
|
62
74
|
return (0, workflow_review_mapper_1.toActivityEntry)(activity, [message], new Map([[user.id, (0, workflow_review_mapper_1.toEligibleReviewer)(user)]]), this.logger);
|
|
63
75
|
}
|
|
64
76
|
async hydrate(entries) {
|
|
@@ -94,6 +106,6 @@ let WorkflowReviewActivityService = class WorkflowReviewActivityService {
|
|
|
94
106
|
exports.WorkflowReviewActivityService = WorkflowReviewActivityService;
|
|
95
107
|
exports.WorkflowReviewActivityService = WorkflowReviewActivityService = __decorate([
|
|
96
108
|
(0, di_1.Service)(),
|
|
97
|
-
__metadata("design:paramtypes", [workflow_review_feature_gate_service_1.WorkflowReviewFeatureGate, workflow_review_access_service_1.WorkflowReviewAccessService, workflow_review_eligibility_service_1.WorkflowReviewEligibilityService, db_1.WorkflowReviewActivityRepository, db_1.WorkflowReviewActivityCommentRepository, db_1.UserRepository, db_1.TransactionRunner, backend_common_1.Logger])
|
|
109
|
+
__metadata("design:paramtypes", [workflow_review_feature_gate_service_1.WorkflowReviewFeatureGate, workflow_review_access_service_1.WorkflowReviewAccessService, workflow_review_eligibility_service_1.WorkflowReviewEligibilityService, db_1.WorkflowReviewActivityRepository, db_1.WorkflowReviewActivityCommentRepository, db_1.WorkflowReviewRequestRepository, db_1.UserRepository, db_1.TransactionRunner, backend_common_1.Logger, event_service_1.EventService])
|
|
98
110
|
], WorkflowReviewActivityService);
|
|
99
111
|
//# sourceMappingURL=workflow-review-activity.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-review-activity.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-activity.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,wDAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"workflow-review-activity.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-activity.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,wDAA6C;AAC7C,gCAQiB;AACjB,gCAAkC;AAElC,kFAA6E;AAC7E,4EAAwE;AACxE,8EAA0E;AAC1E,0DAAsD;AAEtD,qFAA+E;AAC/E,+FAAyF;AACzF,iGAAmF;AACnF,qEAA+E;AAGxE,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IACzC,YACkB,WAAsC,EACtC,aAA0C,EAC1C,kBAAoD,EACpD,kBAAoD,EACpD,yBAAkE,EAClE,iBAAkD,EAClD,cAA8B,EAC9B,QAA2B,EAC3B,MAAc,EACd,YAA0B;2BAT1B,WAAW;6BACX,aAAa;kCACb,kBAAkB;kCAClB,kBAAkB;yCAClB,yBAAyB;iCACzB,iBAAiB;8BACjB,cAAc;wBACd,QAAQ;sBACR,MAAM;4BACN,YAAY;IAC3B,CAAC;IAEJ,KAA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AAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,mCAAe,CAAC,2BAA2B,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;QAC3B,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;YAC1C,MAAM,IAAI,mCAAe,CAAC,2BAA2B,CAAC,CAAC;QACxD,CAAC;QAED,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAA;;wCAhJY,6BAA6B;IADzC,IAAA,YAAO,GAAE;qCAGsB,gEAAyB,EACvB,4DAA2B,EACtB,sEAAgC,EAChC,qCAAgC,EACzB,4CAAuC,EAC/C,oCAA+B,EAClC,mBAAc,EACpB,sBAAiB,EACnB,uBAAM,EACA,4BAAY;GAXhC,6BAA6B,CAgJzC"}
|
|
@@ -51,6 +51,10 @@ let WorkflowReviewEligibilityService = class WorkflowReviewEligibilityService {
|
|
|
51
51
|
if (await this.hasAdminOverride(user, request.projectId)) {
|
|
52
52
|
return { canDecide: true, decisionIneligibilityReason: null, canComment: true };
|
|
53
53
|
}
|
|
54
|
+
const isAssignedReviewer = await this.workflowReviewRequestReviewerRepository.isReviewer({ workflowReviewRequestId: request.id, userId: user.id }, {});
|
|
55
|
+
if (isAssignedReviewer) {
|
|
56
|
+
return { canDecide: true, decisionIneligibilityReason: null, canComment: true };
|
|
57
|
+
}
|
|
54
58
|
if (isAuthor) {
|
|
55
59
|
return {
|
|
56
60
|
canDecide: false,
|
|
@@ -58,15 +62,11 @@ let WorkflowReviewEligibilityService = class WorkflowReviewEligibilityService {
|
|
|
58
62
|
canComment: canReadPinnedWorkflow,
|
|
59
63
|
};
|
|
60
64
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
canComment: false,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
return { canDecide: true, decisionIneligibilityReason: null, canComment: true };
|
|
65
|
+
return {
|
|
66
|
+
canDecide: false,
|
|
67
|
+
decisionIneligibilityReason: 'missing_reviewer_permission',
|
|
68
|
+
canComment: false,
|
|
69
|
+
};
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
exports.WorkflowReviewEligibilityService = WorkflowReviewEligibilityService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-review-eligibility.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-eligibility.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAKiB;AACjB,gCAAkC;AAClC,kDAI0B;AAE1B,iFAA4E;AAerE,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAC5C,YACkB,qBAA4C,EAC5C,qCAA4E,EAC5E,uCAAgF,EAChF,yBAAoD;qCAHpD,qBAAqB;qDACrB,qCAAqC;uDACrC,uCAAuC;yCACvC,yBAAyB;IACxC,CAAC;IAMJ,KAAK,CAAC,gBAAgB,CAAC,IAAU,EAAE,SAAiB;QACnD,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,oCAAsB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,oCAAsB,EAAE,CAAC;YAC5F,OAAO,IAAI,CAAC;QACb,CAAC;QAED,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,4BAA4B,CACxF,IAAI,CAAC,EAAE,EACP,CAAC,qCAAuB,CAAC,CACzB,CAAC;QACF,OAAO,eAAe,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC5C,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow-review-eligibility.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-revi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ty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WorkflowReviewFeatureGate = void 0;
|
|
13
13
|
const backend_common_1 = require("@n8n/backend-common");
|
|
14
14
|
const di_1 = require("@n8n/di");
|
|
15
|
-
const workflow_reviews_1 = require("../../constants/workflow-reviews");
|
|
16
15
|
const forbidden_error_1 = require("../../errors/response-errors/forbidden.error");
|
|
17
16
|
const workflow_review_policy_service_1 = require("../../services/workflow-review-policy.service");
|
|
18
17
|
let WorkflowReviewFeatureGate = class WorkflowReviewFeatureGate {
|
|
@@ -30,7 +29,7 @@ let WorkflowReviewFeatureGate = class WorkflowReviewFeatureGate {
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
async getAvailability() {
|
|
33
|
-
if (!
|
|
32
|
+
if (!this.licenseState.isWorkflowReviewsLicensed()) {
|
|
34
33
|
return {
|
|
35
34
|
available: false,
|
|
36
35
|
errorMessage: 'Workflow reviews are not available on this instance',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-review-feature-gate.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-feature-gate.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAmD;AACnD,gCAAkC;AAElC,
|
|
1
|
+
{"version":3,"file":"workflow-review-feature-gate.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-feature-gate.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAmD;AACnD,gCAAkC;AAElC,8EAA0E;AAC1E,8FAAwF;AAWjF,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACrC,YACkB,YAA0B,EAC1B,2BAAwD;4BADxD,YAAY;2CACZ,2BAA2B;IAC1C,CAAC;IAEJ,KAAK,CAAC,WAAW;QAChB,OAAO,CAAC,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,eAAe;QACpB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAClD,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,gCAAc,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QACrD,CAAC;IACF,CAAC;IAEO,KAAK,CAAC,eAAe;QAC5B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,yBAAyB,EAAE,EAAE,CAAC;YACpD,OAAO;gBACN,SAAS,EAAE,KAAK;gBAChB,YAAY,EAAE,qDAAqD;aACnE,CAAC;QACH,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,GAAG,EAAE,CAAC;QAC5D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO;gBACN,SAAS,EAAE,KAAK;gBAChB,YAAY,EAAE,gDAAgD;aAC9D,CAAC;QACH,CAAC;QAED,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAC5B,CAAC;CACD,CAAA;;oCAnCY,yBAAyB;IADrC,IAAA,YAAO,GAAE;qCAGuB,6BAAY,EACG,4DAA2B;GAH9D,yBAAyB,CAmCrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GetWorkflowReviewInboxSummaryResponse, ListWorkflowReviewInboxQueryDto, ListWorkflowReviewInboxResponse, WorkflowReviewRequestDetail } from '@n8n/api-types';
|
|
2
|
-
import { UserRepository,
|
|
2
|
+
import { UserRepository, WorkflowReviewRequestAuthorRepository, WorkflowReviewRequestRepository, WorkflowReviewRequestReviewerRepository, WorkflowReviewRequestWorkflowRepository, type User } from '@n8n/db';
|
|
3
3
|
import { WorkflowHistoryService } from '../../workflows/workflow-history/workflow-history.service';
|
|
4
4
|
import { WorkflowReviewAccessService } from './workflow-review-access.service';
|
|
5
5
|
import { WorkflowReviewEligibilityService } from './workflow-review-eligibility.service';
|
|
@@ -8,14 +8,13 @@ export declare class WorkflowReviewInboxService {
|
|
|
8
8
|
private readonly featureGate;
|
|
9
9
|
private readonly accessService;
|
|
10
10
|
private readonly workflowHistoryService;
|
|
11
|
-
private readonly workflowPublishedVersionRepository;
|
|
12
11
|
private readonly workflowReviewRequestRepository;
|
|
13
12
|
private readonly workflowReviewRequestWorkflowRepository;
|
|
14
13
|
private readonly workflowReviewRequestReviewerRepository;
|
|
15
14
|
private readonly workflowReviewRequestAuthorRepository;
|
|
16
15
|
private readonly userRepository;
|
|
17
16
|
private readonly eligibilityService;
|
|
18
|
-
constructor(featureGate: WorkflowReviewFeatureGate, accessService: WorkflowReviewAccessService, workflowHistoryService: WorkflowHistoryService,
|
|
17
|
+
constructor(featureGate: WorkflowReviewFeatureGate, accessService: WorkflowReviewAccessService, workflowHistoryService: WorkflowHistoryService, workflowReviewRequestRepository: WorkflowReviewRequestRepository, workflowReviewRequestWorkflowRepository: WorkflowReviewRequestWorkflowRepository, workflowReviewRequestReviewerRepository: WorkflowReviewRequestReviewerRepository, workflowReviewRequestAuthorRepository: WorkflowReviewRequestAuthorRepository, userRepository: UserRepository, eligibilityService: WorkflowReviewEligibilityService);
|
|
19
18
|
listForInbox(user: User, query: ListWorkflowReviewInboxQueryDto): Promise<ListWorkflowReviewInboxResponse>;
|
|
20
19
|
getInboxSummaryForUser(user: User): Promise<GetWorkflowReviewInboxSummaryResponse>;
|
|
21
20
|
getDetail(user: User, workflowReviewRequestId: string): Promise<WorkflowReviewRequestDetail>;
|
|
@@ -19,11 +19,10 @@ const workflow_review_eligibility_service_1 = require("./workflow-review-eligibi
|
|
|
19
19
|
const workflow_review_feature_gate_service_1 = require("./workflow-review-feature-gate.service");
|
|
20
20
|
const workflow_review_mapper_1 = require("./workflow-review.mapper");
|
|
21
21
|
let WorkflowReviewInboxService = class WorkflowReviewInboxService {
|
|
22
|
-
constructor(featureGate, accessService, workflowHistoryService,
|
|
22
|
+
constructor(featureGate, accessService, workflowHistoryService, workflowReviewRequestRepository, workflowReviewRequestWorkflowRepository, workflowReviewRequestReviewerRepository, workflowReviewRequestAuthorRepository, userRepository, eligibilityService) {
|
|
23
23
|
this.featureGate = featureGate;
|
|
24
24
|
this.accessService = accessService;
|
|
25
25
|
this.workflowHistoryService = workflowHistoryService;
|
|
26
|
-
this.workflowPublishedVersionRepository = workflowPublishedVersionRepository;
|
|
27
26
|
this.workflowReviewRequestRepository = workflowReviewRequestRepository;
|
|
28
27
|
this.workflowReviewRequestWorkflowRepository = workflowReviewRequestWorkflowRepository;
|
|
29
28
|
this.workflowReviewRequestReviewerRepository = workflowReviewRequestReviewerRepository;
|
|
@@ -102,16 +101,17 @@ let WorkflowReviewInboxService = class WorkflowReviewInboxService {
|
|
|
102
101
|
return await this.hydrateParticipants([request], reviewerRows, authorRows);
|
|
103
102
|
}
|
|
104
103
|
async toWorkflowDetail(row) {
|
|
105
|
-
const
|
|
104
|
+
const baselineVersionId = row.baselineVersionId ?? (row.requestState === 'closed' ? null : row.activeVersionId);
|
|
106
105
|
const [pinnedVersion, baselineVersion] = await Promise.all([
|
|
107
106
|
this.findVersionSnapshot(row.workflowId, row.workflowVersionId),
|
|
108
|
-
this.findVersionSnapshot(row.workflowId,
|
|
107
|
+
this.findVersionSnapshot(row.workflowId, baselineVersionId),
|
|
109
108
|
]);
|
|
110
109
|
return {
|
|
111
110
|
workflowId: row.workflowId,
|
|
112
111
|
workflowName: row.workflowName,
|
|
113
112
|
workflowVersionId: row.workflowVersionId,
|
|
114
113
|
pinnedVersion,
|
|
114
|
+
publishedVersionId: row.activeVersionId,
|
|
115
115
|
baselineVersion,
|
|
116
116
|
};
|
|
117
117
|
}
|
|
@@ -192,7 +192,7 @@ let WorkflowReviewInboxService = class WorkflowReviewInboxService {
|
|
|
192
192
|
exports.WorkflowReviewInboxService = WorkflowReviewInboxService;
|
|
193
193
|
exports.WorkflowReviewInboxService = WorkflowReviewInboxService = __decorate([
|
|
194
194
|
(0, di_1.Service)(),
|
|
195
|
-
__metadata("design:paramtypes", [workflow_review_feature_gate_service_1.WorkflowReviewFeatureGate, workflow_review_access_service_1.WorkflowReviewAccessService, workflow_history_service_1.WorkflowHistoryService, db_1.
|
|
195
|
+
__metadata("design:paramtypes", [workflow_review_feature_gate_service_1.WorkflowReviewFeatureGate, workflow_review_access_service_1.WorkflowReviewAccessService, workflow_history_service_1.WorkflowHistoryService, db_1.WorkflowReviewRequestRepository, db_1.WorkflowReviewRequestWorkflowRepository, db_1.WorkflowReviewRequestReviewerRepository, db_1.WorkflowReviewRequestAuthorRepository, db_1.UserRepository, workflow_review_eligibility_service_1.WorkflowReviewEligibilityService])
|
|
196
196
|
], WorkflowReviewInboxService);
|
|
197
197
|
function groupUserIdsByRequestId(rows) {
|
|
198
198
|
const idsByRequestId = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-review-inbox.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-inbox.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,
|
|
1
|
+
{"version":3,"file":"workflow-review-inbox.service.js","sourceRoot":"","sources":["../../../src/modules/workflow-reviews.ee/workflow-review-inbox.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,gCAciB;AACjB,gCAAkC;AAElC,kFAA6E;AAC7E,oGAA+F;AAE/F,qFAA+E;AAC/E,+FAAyF;AACzF,iGAAmF;AACnF,qEAA8D;AASvD,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACtC,YACkB,WAAsC,EACtC,aAA0C,EAC1C,sBAA8C,EAC9C,+BAAgE,EAChE,uCAAgF,EAChF,uCAAgF,EAChF,qCAA4E,EAC5E,cAA8B,EAC9B,kBAAoD;2BARpD,WAAW;6BACX,aAAa;sCACb,sBAAsB;+CACtB,+BAA+B;uDAC/B,uCAAuC;uDACvC,uCAAuC;qDACvC,qCAAqC;8BACrC,cAAc;kCACd,kBAAkB;IACjC,CAAC;IAEJ,KAAK,CAAC,YAAY,CACjB,IAAU,EACV,KAAsC;QAEtC,MAAM,IAAI,CA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nD,KAAK,MAAM,EAAE,uBAAuB,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;QACxD,MAAM,GAAG,GAAG,cAAc,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;QAC9D,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjB,cAAc,CAAC,GAAG,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;IAClD,CAAC;IAED,OAAO,cAAc,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import { DbLockService, WorkflowReviewActivityRepository, WorkflowReviewRequestRepository, WorkflowReviewRequestWorkflowRepository } from '@n8n/db';
|
|
3
|
+
import { CollaborationService } from '../../collaboration/collaboration.service';
|
|
4
|
+
import { EventService } from '../../events/event.service';
|
|
5
|
+
import type { WorkflowMutationHooks } from '../../workflows/workflow-mutation-hooks-proxy.service';
|
|
6
|
+
export declare class WorkflowReviewLifecycleService implements WorkflowMutationHooks {
|
|
7
|
+
private readonly logger;
|
|
8
|
+
private readonly workflowReviewRequestRepository;
|
|
9
|
+
private readonly workflowReviewRequestWorkflowRepository;
|
|
10
|
+
private readonly activityRepository;
|
|
11
|
+
private readonly dbLockService;
|
|
12
|
+
private readonly collaborationService;
|
|
13
|
+
private readonly eventService;
|
|
14
|
+
private readonly pendingDeleteCaptures;
|
|
15
|
+
constructor(logger: Logger, workflowReviewRequestRepository: WorkflowReviewRequestRepository, workflowReviewRequestWorkflowRepository: WorkflowReviewRequestWorkflowRepository, activityRepository: WorkflowReviewActivityRepository, dbLockService: DbLockService, collaborationService: CollaborationService, eventService: EventService);
|
|
16
|
+
afterWorkflowArchived(workflowId: string, userId: string | null): Promise<void>;
|
|
17
|
+
afterWorkflowsTransferred(workflowIds: string[], userId: string | null): Promise<void>;
|
|
18
|
+
beforeWorkflowDeleted(workflowId: string, userId: string | null): Promise<void>;
|
|
19
|
+
afterWorkflowsDeleted(workflowIds: string[]): Promise<void>;
|
|
20
|
+
afterWorkflowPublished(event: {
|
|
21
|
+
workflowId: string;
|
|
22
|
+
versionId: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
private reconcileUnreviewableOpenRequests;
|
|
26
|
+
private recordCauseEventsAndApplyClosePolicy;
|
|
27
|
+
private recordCapturedDeletions;
|
|
28
|
+
private applyClosePolicy;
|
|
29
|
+
private broadcastReviewStateChanged;
|
|
30
|
+
}
|