n8n 2.25.6 → 2.26.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 -1
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.d.ts +7 -7
- package/dist/active-workflow-manager.js +20 -20
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/agent-library-bundle.js +42 -10
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-execution-manager.d.ts +3 -1
- package/dist/chat/chat-execution-manager.js +6 -3
- package/dist/chat/chat-execution-manager.js.map +1 -1
- package/dist/chat/chat-service.types.d.ts +4 -4
- package/dist/commands/base-command.js +2 -2
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/execute-batch.d.ts +2 -2
- package/dist/commands/execute.d.ts +2 -2
- package/dist/commands/export/credentials.d.ts +4 -4
- package/dist/commands/export/entities.d.ts +2 -2
- package/dist/commands/export/workflow.d.ts +4 -4
- package/dist/commands/import/credentials.d.ts +2 -2
- package/dist/commands/import/workflow.d.ts +2 -2
- package/dist/commands/start.js +1 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/ttwf/generate.d.ts +2 -2
- package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
- package/dist/controllers/api-keys.controller.d.ts +16 -4
- package/dist/controllers/api-keys.controller.js +11 -8
- package/dist/controllers/api-keys.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.d.ts +15 -0
- package/dist/controllers/e2e.controller.js +60 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.js +7 -9
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +3 -3
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/project.controller.d.ts +1 -1
- package/dist/controllers/project.controller.js +9 -1
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.d.ts +1 -1
- package/dist/controllers/security-settings.controller.js +18 -14
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/controllers/telemetry.controller.d.ts +4 -1
- package/dist/controllers/telemetry.controller.js +61 -2
- package/dist/controllers/telemetry.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +2 -2
- package/dist/credentials/credential-connection-status-provider.interface.d.ts +1 -0
- package/dist/credentials/credential-connection-status-proxy.d.ts +1 -0
- package/dist/credentials/credential-connection-status-proxy.js +5 -0
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
- package/dist/credentials/credential-resolution-provider.interface.d.ts +1 -0
- package/dist/credentials/credentials.controller.d.ts +3 -1
- package/dist/credentials/credentials.controller.js +23 -2
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials-helper.js +3 -0
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/http-error-serializers.js +22 -2
- package/dist/errors/http-error-serializers.js.map +1 -1
- package/dist/errors/response-errors/conflict.error.d.ts +2 -1
- package/dist/errors/response-errors/conflict.error.js +2 -1
- package/dist/errors/response-errors/conflict.error.js.map +1 -1
- package/dist/evaluation.ee/evaluation-config-validator.d.ts +1 -0
- package/dist/evaluation.ee/evaluation-config-validator.js +69 -0
- package/dist/evaluation.ee/evaluation-config-validator.js.map +1 -1
- package/dist/evaluation.ee/test-runner/evaluation-metrics.ee.js +2 -1
- package/dist/evaluation.ee/test-runner/evaluation-metrics.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +6 -2
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +59 -16
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +28 -1
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -1
- package/dist/evaluation.ee/test-runs.controller.ee.js +6 -1
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/events/event.service.d.ts +2 -1
- package/dist/events/event.service.js.map +1 -1
- package/dist/events/maps/execution-data.event-map.d.ts +14 -0
- package/dist/events/maps/execution-data.event-map.js +3 -0
- package/dist/events/maps/execution-data.event-map.js.map +1 -0
- package/dist/events/maps/relay.event-map.d.ts +19 -5
- package/dist/events/relays/log-streaming.event-relay.js +2 -0
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +3 -0
- package/dist/events/relays/telemetry.event-relay.js +47 -6
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/save-execution-progress.js +3 -3
- package/dist/execution-lifecycle/save-execution-progress.js.map +1 -1
- package/dist/execution-lifecycle/shared/shared-hook-functions.js +3 -3
- package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +8 -1
- package/dist/executions/execution-persistence.js +183 -42
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution-recovery.service.d.ts +3 -1
- package/dist/executions/execution-recovery.service.js +7 -4
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/execution.service.d.ts +1 -0
- package/dist/executions/execution.service.js +21 -7
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/interfaces.d.ts +1 -1
- package/dist/load-nodes-and-credentials.js +6 -0
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/metrics/prometheus-metrics.service.d.ts +5 -2
- package/dist/metrics/prometheus-metrics.service.js +74 -3
- package/dist/metrics/prometheus-metrics.service.js.map +1 -1
- package/dist/metrics/types.d.ts +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +2 -0
- package/dist/modules/agents/agent-execution.service.js +2 -2
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +84 -0
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +362 -0
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -0
- package/dist/modules/agents/agent-sse-stream.js +15 -1
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.js +8 -1
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +34 -19
- package/dist/modules/agents/agents.controller.js +39 -3
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +1 -1
- package/dist/modules/agents/agents.service.d.ts +13 -31
- package/dist/modules/agents/agents.service.js +154 -282
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.js +1 -0
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +21 -2
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.js +3 -11
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +1 -0
- package/dist/modules/agents/builder/builder-tool-names.js +1 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +10 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +5 -3
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +7 -2
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skills/index.js +2 -0
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/sub-agents.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/sub-agents.skill.js +101 -0
- package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +2 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js +8 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.js +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/execution-recorder.d.ts +3 -0
- package/dist/modules/agents/execution-recorder.js +75 -10
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +4 -7
- package/dist/modules/agents/integrations/agent-chat-bridge.js +138 -105
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +5 -0
- package/dist/modules/agents/integrations/chat-integration.service.js +5 -0
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +21 -11
- package/dist/modules/agents/integrations/component-mapper.js +50 -20
- package/dist/modules/agents/integrations/component-mapper.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 -9
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tools.js +176 -31
- package/dist/modules/agents/integrations/integration-tools.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js +1 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/json-config/credential-field-mapping.js +1 -0
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.d.ts +2 -1
- package/dist/modules/agents/json-config/from-json-config.js +41 -15
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +0 -6
- package/dist/modules/agents/json-config/mcp-client-factory.js +2 -31
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.d.ts +2 -0
- package/dist/modules/agents/json-config/model-config.js +11 -0
- package/dist/modules/agents/json-config/model-config.js.map +1 -0
- package/dist/modules/agents/json-config/model-id.d.ts +1 -0
- package/dist/modules/agents/json-config/model-id.js +8 -0
- package/dist/modules/agents/json-config/model-id.js.map +1 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.d.ts +0 -1
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js +3 -7
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js.map +1 -1
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.d.ts +1 -0
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +63 -0
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -0
- package/dist/modules/agents/model-catalog.d.ts +1 -0
- package/dist/modules/agents/model-catalog.js +15 -0
- package/dist/modules/agents/model-catalog.js.map +1 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +5 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +5 -3
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +17 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +66 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -0
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +27 -0
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +235 -0
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -0
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +20 -0
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +87 -0
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.d.ts +2 -2
- package/dist/modules/agents/tools/knowledge/schemas.d.ts +91 -91
- package/dist/modules/agents/tools/node-tool-factory.js +9 -12
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +2 -3
- package/dist/modules/agents/tools/workflow-tool-factory.js +6 -4
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/utils/agent-stream.d.ts +2 -0
- package/dist/modules/agents/utils/agent-stream.js +27 -0
- package/dist/modules/agents/utils/agent-stream.js.map +1 -0
- package/dist/modules/agents/utils/execution-to-message-mapper.js +2 -0
- package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
- package/dist/modules/agents/utils/structured-output-error.d.ts +1 -0
- package/dist/modules/agents/utils/structured-output-error.js +34 -0
- package/dist/modules/agents/utils/structured-output-error.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub-execution-watcher.service.d.ts +3 -3
- package/dist/modules/chat-hub/chat-hub-execution-watcher.service.js +5 -5
- package/dist/modules/chat-hub/chat-hub-execution-watcher.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-execution.service.d.ts +3 -1
- package/dist/modules/chat-hub/chat-hub-execution.service.js +6 -3
- package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-title.service.d.ts +4 -3
- package/dist/modules/chat-hub/chat-hub-title.service.js +5 -5
- package/dist/modules/chat-hub/chat-hub-title.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
- package/dist/modules/chat-hub/chat-hub.service.d.ts +4 -3
- package/dist/modules/chat-hub/chat-hub.service.js +5 -5
- package/dist/modules/chat-hub/chat-hub.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +4 -4
- package/dist/modules/chat-hub/chat-hub.types.d.ts +5 -5
- package/dist/modules/chat-hub/dto/chat-models-request.dto.d.ts +1 -1
- package/dist/modules/data-table/data-table.module.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.d.ts +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.d.ts +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js +3 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.d.ts +5 -0
- package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js +15 -0
- package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +9 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +57 -3
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +14 -3
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/infisical.d.ts +20 -14
- package/dist/modules/external-secrets.ee/providers/infisical.js +215 -90
- package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
- package/dist/modules/favorites/dto/add-favorite.dto.d.ts +1 -1
- package/dist/modules/insights/database/entities/insights-shared.d.ts +1 -1
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.d.ts +2 -1
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +2 -3
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js.map +1 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +3 -3
- package/dist/modules/insights/insights.service.d.ts +3 -3
- package/dist/modules/instance-ai/entities/index.d.ts +1 -0
- package/dist/modules/instance-ai/entities/index.js +3 -1
- package/dist/modules/instance-ai/entities/index.js.map +1 -1
- package/dist/modules/instance-ai/entities/instance-ai-mcp-registry-connection.entity.d.ts +12 -0
- package/dist/modules/instance-ai/entities/instance-ai-mcp-registry-connection.entity.js +42 -0
- package/dist/modules/instance-ai/entities/instance-ai-mcp-registry-connection.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.d.ts +3 -1
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js +10 -0
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +8 -2
- package/dist/modules/instance-ai/eval/execution.service.js +183 -40
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +5 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +1 -2
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js +4 -2
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-gateway.service.d.ts +31 -0
- package/dist/modules/instance-ai/instance-ai-gateway.service.js +84 -0
- package/dist/modules/instance-ai/instance-ai-gateway.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js +5 -4
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +10 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +47 -5
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-test.controller.d.ts +6 -2
- package/dist/modules/instance-ai/instance-ai-test.controller.js +17 -3
- package/dist/modules/instance-ai/instance-ai-test.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +5 -5
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +104 -36
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +8 -6
- package/dist/modules/instance-ai/instance-ai.controller.js +31 -36
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +4 -1
- package/dist/modules/instance-ai/instance-ai.module.js +7 -6
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +50 -41
- package/dist/modules/instance-ai/instance-ai.service.js +599 -246
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/internal-messages.js +1 -1
- package/dist/modules/instance-ai/internal-messages.js.map +1 -1
- package/dist/modules/instance-ai/mcp/index.d.ts +1 -0
- package/dist/modules/instance-ai/mcp/index.js +18 -0
- package/dist/modules/instance-ai/mcp/index.js.map +1 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.d.ts +17 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js +125 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +35 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +264 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -0
- package/dist/modules/instance-ai/planned-task-action-runner.d.ts +91 -0
- package/dist/modules/instance-ai/planned-task-action-runner.js +138 -0
- package/dist/modules/instance-ai/planned-task-action-runner.js.map +1 -0
- package/dist/modules/instance-ai/repositories/index.d.ts +1 -0
- package/dist/modules/instance-ai/repositories/index.js +3 -1
- package/dist/modules/instance-ai/repositories/index.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-mcp-registry-connection.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-mcp-registry-connection.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-mcp-registry-connection.repository.js.map +1 -0
- package/dist/modules/instance-ai/sandbox-provider.d.ts +4 -0
- package/dist/modules/instance-ai/sandbox-provider.js +19 -0
- package/dist/modules/instance-ai/sandbox-provider.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +4 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +103 -12
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/trace-replay-state.d.ts +2 -0
- package/dist/modules/instance-ai/trace-replay-state.js +56 -6
- package/dist/modules/instance-ai/trace-replay-state.js.map +1 -1
- package/dist/modules/instance-ai/workflow-verification-obligation-service.d.ts +20 -0
- package/dist/modules/instance-ai/workflow-verification-obligation-service.js +59 -0
- package/dist/modules/instance-ai/workflow-verification-obligation-service.js.map +1 -0
- package/dist/modules/instance-ai/workflow-verification-task-projector.d.ts +21 -0
- package/dist/modules/instance-ai/workflow-verification-task-projector.js +323 -0
- package/dist/modules/instance-ai/workflow-verification-task-projector.js.map +1 -0
- package/dist/modules/mcp/database/entities/oauth-authorization-code.entity.d.ts +1 -0
- package/dist/modules/mcp/database/entities/oauth-authorization-code.entity.js +4 -0
- package/dist/modules/mcp/database/entities/oauth-authorization-code.entity.js.map +1 -1
- package/dist/modules/mcp/mcp-oauth-authorization-code.service.d.ts +3 -1
- package/dist/modules/mcp/mcp-oauth-authorization-code.service.js +35 -5
- package/dist/modules/mcp/mcp-oauth-authorization-code.service.js.map +1 -1
- package/dist/modules/mcp/mcp-oauth-consent.service.js +1 -1
- package/dist/modules/mcp/mcp-oauth-consent.service.js.map +1 -1
- package/dist/modules/mcp/mcp-oauth-service.d.ts +4 -2
- package/dist/modules/mcp/mcp-oauth-service.js +60 -9
- package/dist/modules/mcp/mcp-oauth-service.js.map +1 -1
- package/dist/modules/mcp/mcp-oauth-token.service.d.ts +8 -6
- package/dist/modules/mcp/mcp-oauth-token.service.js +53 -16
- package/dist/modules/mcp/mcp-oauth-token.service.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js +2 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp.constants.d.ts +1 -0
- package/dist/modules/mcp/mcp.constants.js +2 -1
- package/dist/modules/mcp/mcp.constants.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +1 -1
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +7 -4
- package/dist/modules/mcp/mcp.service.js +60 -9
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +5 -4
- package/dist/modules/mcp/mcp.utils.d.ts +2 -4
- package/dist/modules/mcp/mcp.utils.js.map +1 -1
- package/dist/modules/mcp/oauth-session.service.d.ts +1 -0
- package/dist/modules/mcp/oauth-session.service.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +7 -7
- package/dist/modules/mcp/tools/get-execution.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/get-execution.tool.js +3 -3
- package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +28 -28
- package/dist/modules/mcp/tools/search-projects.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/search-projects.tool.js +16 -7
- package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.js +2 -2
- package/dist/modules/mcp/tools/workflow-builder/constants.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +1 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +9 -2
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.d.ts +27 -0
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js +123 -0
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-best-practices.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/skills-used.d.ts +1 -0
- package/dist/modules/mcp/tools/workflow-builder/skills-used.js +26 -0
- package/dist/modules/mcp/tools/workflow-builder/skills-used.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +20 -19
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +9 -2
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +19 -19
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js +3 -2
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry.controller.d.ts +7 -0
- package/dist/modules/mcp-registry/mcp-registry.controller.js +54 -0
- package/dist/modules/mcp-registry/mcp-registry.controller.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry.module.js +1 -0
- package/dist/modules/mcp-registry/mcp-registry.module.js.map +1 -1
- package/dist/modules/mcp-registry/node-description-transform.d.ts +5 -3
- package/dist/modules/mcp-registry/node-description-transform.js +82 -24
- package/dist/modules/mcp-registry/node-description-transform.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js +8 -4
- package/dist/modules/mcp-registry/registry/mcp-registry-api.client.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.service.d.ts +1 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js +7 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.service.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.d.ts +35 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js +13 -0
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mock-servers.d.ts +2 -0
- package/dist/modules/mcp-registry/registry/mock-servers.js +45 -1
- package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +5 -3
- package/dist/modules/n8n-packages/engine/import-pipeline.js +36 -25
- package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +9 -0
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +41 -0
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.d.ts +8 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.js +35 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher-factory.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +18 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +34 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.d.ts +7 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.js +35 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode-factory.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +7 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +17 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.js +14 -0
- package/dist/modules/n8n-packages/entities/credential/credential-resolution-error.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +30 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js +12 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.d.ts +13 -0
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js +47 -0
- package/dist/modules/n8n-packages/entities/credential/id-based-credential-matcher.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.d.ts +9 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.js +41 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-fail.handler.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.d.ts +10 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.js +20 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-handler.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.d.ts +11 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.js +42 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-new-version.handler.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.d.ts +9 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.js +33 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy-skip.handler.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.d.ts +10 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.js +37 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.factory.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.js +3 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-conflict-policy.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.d.ts +7 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js +54 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-import-match.service.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +47 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +23 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js +21 -0
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +41 -31
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +17 -7
- package/dist/modules/n8n-packages/spec/requirements.schema.js +17 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +2 -2
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +40 -33
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +2 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
- package/dist/modules/n8n-packages/utils/import-package-upload.js +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.schemas.d.ts +18 -18
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +6 -2
- package/dist/modules/otel/otel-lifecycle-handler.js +30 -17
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/quick-connect/quick-connect.config.d.ts +29 -29
- package/dist/modules/quick-connect/quick-connect.module.d.ts +11 -11
- package/dist/modules/redaction/executions/execution-redaction.interfaces.d.ts +1 -1
- package/dist/modules/redaction/executions/execution-redaction.service.d.ts +1 -0
- package/dist/modules/redaction/executions/execution-redaction.service.js +25 -11
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +1 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
- package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +9 -7
- package/dist/modules/redaction/instance-redaction-enforcement.service.js +32 -14
- package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
- package/dist/modules/redaction/redaction-context-hook.js +14 -16
- package/dist/modules/redaction/redaction-context-hook.js.map +1 -1
- package/dist/modules/redaction/redaction-enforcement.service.d.ts +5 -5
- package/dist/modules/redaction/redaction-enforcement.service.js +13 -11
- package/dist/modules/redaction/redaction-enforcement.service.js.map +1 -1
- package/dist/modules/redaction/redaction-policy.d.ts +7 -0
- package/dist/modules/redaction/redaction-policy.js +31 -0
- package/dist/modules/redaction/redaction-policy.js.map +1 -0
- package/dist/modules/redaction/redaction.module.js +1 -0
- package/dist/modules/redaction/redaction.module.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -4
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -2
- package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.d.ts +2 -1
- package/dist/modules/sso-oidc/oidc.service.ee.js +35 -18
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/token-exchange.schemas.d.ts +12 -12
- package/dist/node-execution/ephemeral-node-executor.js +3 -0
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +20 -6
- package/dist/oauth/oauth.service.js +80 -18
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js +4 -4
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +3 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/users/users.service.ee.js +1 -0
- package/dist/public-api/v1/handlers/users/users.service.ee.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.service.js +2 -0
- package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +169 -6
- package/dist/response-helper.js +16 -1
- package/dist/response-helper.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/job-processor.d.ts +3 -1
- package/dist/scaling/job-processor.js +6 -3
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/scaling/scaling.service.d.ts +3 -1
- package/dist/scaling/scaling.service.js +5 -2
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.d.ts +4 -3
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +6 -4
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -1
- package/dist/services/ai-workflow-builder.service.d.ts +1 -2
- package/dist/services/ai-workflow-builder.service.js +2 -3
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/dynamic-node-parameters.service.js +3 -5
- package/dist/services/dynamic-node-parameters.service.js.map +1 -1
- package/dist/services/frontend.service.js +2 -0
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +1 -0
- package/dist/services/project.service.ee.js +34 -2
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/public-api-key.service.d.ts +25 -7
- package/dist/services/public-api-key.service.js +93 -14
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/services/role.service.d.ts +3 -3
- package/dist/task-runners/errors/task-cancelled.error.d.ts +4 -0
- package/dist/task-runners/errors/task-cancelled.error.js +11 -0
- package/dist/task-runners/errors/task-cancelled.error.js.map +1 -0
- package/dist/task-runners/task-managers/task-requester.js +2 -1
- package/dist/task-runners/task-managers/task-requester.js.map +1 -1
- package/dist/telemetry/index.js +2 -2
- package/dist/tool-generation/hitl-tools.js +1 -1
- package/dist/tool-generation/hitl-tools.js.map +1 -1
- package/dist/utils/auth-fetch.d.ts +6 -0
- package/dist/utils/auth-fetch.js +33 -0
- package/dist/utils/auth-fetch.js.map +1 -0
- package/dist/wait-tracker.d.ts +6 -1
- package/dist/wait-tracker.js +43 -18
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.d.ts +3 -3
- package/dist/webhooks/waiting-webhooks.js +5 -5
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +1 -19
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-server.d.ts +1 -0
- package/dist/webhooks/webhook-server.js +39 -0
- package/dist/webhooks/webhook-server.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +3 -2
- package/dist/workflow-execute-additional-data.js +42 -15
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +2 -2
- package/dist/workflow-helpers.js +5 -3
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +3 -1
- package/dist/workflow-runner.js +8 -2
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/utils.d.ts +2 -0
- package/dist/workflows/utils.js +6 -0
- package/dist/workflows/utils.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +7 -3
- package/dist/workflows/workflow-creation.service.js +38 -14
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +9 -0
- package/dist/workflows/workflow-finder.service.js +60 -16
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-publication-outbox-consumer.d.ts +31 -0
- package/dist/workflows/workflow-publication-outbox-consumer.js +209 -0
- package/dist/workflows/workflow-publication-outbox-consumer.js.map +1 -0
- package/dist/workflows/workflow-validation.service.js +1 -1
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +5 -5
- package/dist/workflows/workflow.service.js +1 -1
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +29 -29
- package/dist/workflows/workflows.controller.js +3 -4
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +37 -37
- package/dist/controllers/redaction-enforcement-mapper.d.ts +0 -3
- package/dist/controllers/redaction-enforcement-mapper.js +0 -27
- package/dist/controllers/redaction-enforcement-mapper.js.map +0 -1
- package/dist/modules/agents/integrations/rich-interaction-tool.d.ts +0 -47
- package/dist/modules/agents/integrations/rich-interaction-tool.js +0 -109
- package/dist/modules/agents/integrations/rich-interaction-tool.js.map +0 -1
- package/dist/modules/instance-ai/eval/sub-agent-eval.service.d.ts +0 -13
- package/dist/modules/instance-ai/eval/sub-agent-eval.service.js +0 -154
- package/dist/modules/instance-ai/eval/sub-agent-eval.service.js.map +0 -1
- package/dist/modules/instance-ai/eval/sub-agent-roles.d.ts +0 -7
- package/dist/modules/instance-ai/eval/sub-agent-roles.js +0 -21
- package/dist/modules/instance-ai/eval/sub-agent-roles.js.map +0 -1
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.d.ts +0 -10
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js +0 -64
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js.map +0 -1
- package/dist/modules/redaction/redaction.config.d.ts +0 -3
- package/dist/modules/redaction/redaction.config.js +0 -27
- package/dist/modules/redaction/redaction.config.js.map +0 -1
- package/dist/services/ssrf/dns-resolver.d.ts +0 -13
- package/dist/services/ssrf/dns-resolver.js +0 -93
- package/dist/services/ssrf/dns-resolver.js.map +0 -1
- package/dist/services/ssrf/hostname-matcher.d.ts +0 -6
- package/dist/services/ssrf/hostname-matcher.js +0 -38
- package/dist/services/ssrf/hostname-matcher.js.map +0 -1
- package/dist/services/ssrf/in-memory-dns-cache.service.d.ts +0 -11
- package/dist/services/ssrf/in-memory-dns-cache.service.js +0 -61
- package/dist/services/ssrf/in-memory-dns-cache.service.js.map +0 -1
- package/dist/services/ssrf/ip-range-builder.d.ts +0 -10
- package/dist/services/ssrf/ip-range-builder.js +0 -52
- package/dist/services/ssrf/ip-range-builder.js.map +0 -1
- package/dist/services/ssrf/ssrf-blocked-ip.error.d.ts +0 -6
- package/dist/services/ssrf/ssrf-blocked-ip.error.js +0 -21
- package/dist/services/ssrf/ssrf-blocked-ip.error.js.map +0 -1
- package/dist/services/ssrf/ssrf-protection.service.d.ts +0 -26
- package/dist/services/ssrf/ssrf-protection.service.js +0 -159
- package/dist/services/ssrf/ssrf-protection.service.js.map +0 -1
|
@@ -7,19 +7,19 @@ export declare const PublicJweJwkSchema: z.ZodDiscriminatedUnion<"kty", [z.ZodOb
|
|
|
7
7
|
n: z.ZodString;
|
|
8
8
|
e: z.ZodString;
|
|
9
9
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
kid: string;
|
|
11
|
-
use: "enc";
|
|
12
10
|
e: string;
|
|
11
|
+
kid: string;
|
|
13
12
|
n: string;
|
|
14
13
|
kty: "RSA";
|
|
15
14
|
alg: "RSA-OAEP-256";
|
|
16
|
-
}, {
|
|
17
|
-
kid: string;
|
|
18
15
|
use: "enc";
|
|
16
|
+
}, {
|
|
19
17
|
e: string;
|
|
18
|
+
kid: string;
|
|
20
19
|
n: string;
|
|
21
20
|
kty: "RSA";
|
|
22
21
|
alg: "RSA-OAEP-256";
|
|
22
|
+
use: "enc";
|
|
23
23
|
}>, z.ZodObject<{
|
|
24
24
|
kty: z.ZodLiteral<"EC">;
|
|
25
25
|
kid: z.ZodString;
|
|
@@ -31,19 +31,19 @@ export declare const PublicJweJwkSchema: z.ZodDiscriminatedUnion<"kty", [z.ZodOb
|
|
|
31
31
|
}, "strict", z.ZodTypeAny, {
|
|
32
32
|
y: string;
|
|
33
33
|
kid: string;
|
|
34
|
-
use: "enc";
|
|
35
34
|
crv: "P-256" | "P-384" | "P-521";
|
|
36
35
|
x: string;
|
|
37
36
|
kty: "EC";
|
|
38
37
|
alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
|
|
38
|
+
use: "enc";
|
|
39
39
|
}, {
|
|
40
40
|
y: string;
|
|
41
41
|
kid: string;
|
|
42
|
-
use: "enc";
|
|
43
42
|
crv: "P-256" | "P-384" | "P-521";
|
|
44
43
|
x: string;
|
|
45
44
|
kty: "EC";
|
|
46
45
|
alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
|
|
46
|
+
use: "enc";
|
|
47
47
|
}>]>;
|
|
48
48
|
export type PublicJweJwk = z.infer<typeof PublicJweJwkSchema>;
|
|
49
49
|
export declare const JwksResponseSchema: z.ZodObject<{
|
|
@@ -55,19 +55,19 @@ export declare const JwksResponseSchema: z.ZodObject<{
|
|
|
55
55
|
n: z.ZodString;
|
|
56
56
|
e: z.ZodString;
|
|
57
57
|
}, "strict", z.ZodTypeAny, {
|
|
58
|
-
kid: string;
|
|
59
|
-
use: "enc";
|
|
60
58
|
e: string;
|
|
59
|
+
kid: string;
|
|
61
60
|
n: string;
|
|
62
61
|
kty: "RSA";
|
|
63
62
|
alg: "RSA-OAEP-256";
|
|
64
|
-
}, {
|
|
65
|
-
kid: string;
|
|
66
63
|
use: "enc";
|
|
64
|
+
}, {
|
|
67
65
|
e: string;
|
|
66
|
+
kid: string;
|
|
68
67
|
n: string;
|
|
69
68
|
kty: "RSA";
|
|
70
69
|
alg: "RSA-OAEP-256";
|
|
70
|
+
use: "enc";
|
|
71
71
|
}>, z.ZodObject<{
|
|
72
72
|
kty: z.ZodLiteral<"EC">;
|
|
73
73
|
kid: z.ZodString;
|
|
@@ -79,53 +79,53 @@ export declare const JwksResponseSchema: z.ZodObject<{
|
|
|
79
79
|
}, "strict", z.ZodTypeAny, {
|
|
80
80
|
y: string;
|
|
81
81
|
kid: string;
|
|
82
|
-
use: "enc";
|
|
83
82
|
crv: "P-256" | "P-384" | "P-521";
|
|
84
83
|
x: string;
|
|
85
84
|
kty: "EC";
|
|
86
85
|
alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
|
|
86
|
+
use: "enc";
|
|
87
87
|
}, {
|
|
88
88
|
y: string;
|
|
89
89
|
kid: string;
|
|
90
|
-
use: "enc";
|
|
91
90
|
crv: "P-256" | "P-384" | "P-521";
|
|
92
91
|
x: string;
|
|
93
92
|
kty: "EC";
|
|
94
93
|
alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
|
|
94
|
+
use: "enc";
|
|
95
95
|
}>]>, "many">;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
keys: ({
|
|
98
|
-
kid: string;
|
|
99
|
-
use: "enc";
|
|
100
98
|
e: string;
|
|
99
|
+
kid: string;
|
|
101
100
|
n: string;
|
|
102
101
|
kty: "RSA";
|
|
103
102
|
alg: "RSA-OAEP-256";
|
|
103
|
+
use: "enc";
|
|
104
104
|
} | {
|
|
105
105
|
y: string;
|
|
106
106
|
kid: string;
|
|
107
|
-
use: "enc";
|
|
108
107
|
crv: "P-256" | "P-384" | "P-521";
|
|
109
108
|
x: string;
|
|
110
109
|
kty: "EC";
|
|
111
110
|
alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
|
|
111
|
+
use: "enc";
|
|
112
112
|
})[];
|
|
113
113
|
}, {
|
|
114
114
|
keys: ({
|
|
115
|
-
kid: string;
|
|
116
|
-
use: "enc";
|
|
117
115
|
e: string;
|
|
116
|
+
kid: string;
|
|
118
117
|
n: string;
|
|
119
118
|
kty: "RSA";
|
|
120
119
|
alg: "RSA-OAEP-256";
|
|
120
|
+
use: "enc";
|
|
121
121
|
} | {
|
|
122
122
|
y: string;
|
|
123
123
|
kid: string;
|
|
124
|
-
use: "enc";
|
|
125
124
|
crv: "P-256" | "P-384" | "P-521";
|
|
126
125
|
x: string;
|
|
127
126
|
kty: "EC";
|
|
128
127
|
alg: "ECDH-ES" | "ECDH-ES+A128KW" | "ECDH-ES+A192KW" | "ECDH-ES+A256KW";
|
|
128
|
+
use: "enc";
|
|
129
129
|
})[];
|
|
130
130
|
}>;
|
|
131
131
|
export type JwksResponse = z.infer<typeof JwksResponseSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkflowExecuteBeforeContext, WorkflowExecuteAfterContext, WorkflowExecuteResumeContext, NodeExecuteBeforeContext, NodeExecuteAfterContext } from '@n8n/decorators';
|
|
2
|
-
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import { LicenseState, Logger } from '@n8n/backend-common';
|
|
3
3
|
import { ExecutionLevelTracer } from './execution-level-tracer';
|
|
4
4
|
import { OtelConfig } from './otel.config';
|
|
5
5
|
import { TraceContextService } from './tracing-context';
|
|
@@ -10,14 +10,18 @@ export declare class OtelLifecycleHandler {
|
|
|
10
10
|
private readonly config;
|
|
11
11
|
private readonly ownershipService;
|
|
12
12
|
private readonly logger;
|
|
13
|
-
|
|
13
|
+
private readonly licenseState;
|
|
14
|
+
constructor(tracer: ExecutionLevelTracer, traceContextService: TraceContextService, config: OtelConfig, ownershipService: OwnershipService, logger: Logger, licenseState: LicenseState);
|
|
14
15
|
private isPublishedWorkflow;
|
|
15
16
|
onWorkflowStart(ctx: WorkflowExecuteBeforeContext): Promise<void>;
|
|
16
17
|
onWorkflowResume(ctx: WorkflowExecuteResumeContext): Promise<void>;
|
|
17
18
|
onWorkflowEnd(ctx: WorkflowExecuteAfterContext): void;
|
|
18
19
|
onNodeStart(ctx: NodeExecuteBeforeContext): void;
|
|
19
20
|
onNodeEnd(ctx: NodeExecuteAfterContext): void;
|
|
21
|
+
private areCustomSpanAttributesLicensed;
|
|
20
22
|
private buildWorkflowCustomAttributes;
|
|
23
|
+
private buildProjectCustomAttributes;
|
|
24
|
+
private buildNodeCustomAttributes;
|
|
21
25
|
}
|
|
22
26
|
export declare function countOutputItems(data: NodeExecuteAfterContext['taskData']['data']): number;
|
|
23
27
|
export declare function countInputItems(ctx: NodeExecuteAfterContext): number;
|
|
@@ -36,12 +36,13 @@ const getCustomTelemetryTags = (value) => {
|
|
|
36
36
|
return Array.isArray(tag) ? tag.filter(isCustomTelemetryTag) : undefined;
|
|
37
37
|
};
|
|
38
38
|
let OtelLifecycleHandler = class OtelLifecycleHandler {
|
|
39
|
-
constructor(tracer, traceContextService, config, ownershipService, logger) {
|
|
39
|
+
constructor(tracer, traceContextService, config, ownershipService, logger, licenseState) {
|
|
40
40
|
this.tracer = tracer;
|
|
41
41
|
this.traceContextService = traceContextService;
|
|
42
42
|
this.config = config;
|
|
43
43
|
this.ownershipService = ownershipService;
|
|
44
44
|
this.logger = logger;
|
|
45
|
+
this.licenseState = licenseState;
|
|
45
46
|
}
|
|
46
47
|
isPublishedWorkflow(workflow) {
|
|
47
48
|
return !!(workflow.activeVersionId ?? workflow.active);
|
|
@@ -71,7 +72,7 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
|
|
|
71
72
|
project: project
|
|
72
73
|
? {
|
|
73
74
|
id: project.id,
|
|
74
|
-
customAttributes: buildProjectCustomAttributes(project.customTelemetryTags),
|
|
75
|
+
customAttributes: this.buildProjectCustomAttributes(project.customTelemetryTags),
|
|
75
76
|
}
|
|
76
77
|
: undefined,
|
|
77
78
|
workflow: {
|
|
@@ -104,7 +105,7 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
|
|
|
104
105
|
project: project
|
|
105
106
|
? {
|
|
106
107
|
id: project.id,
|
|
107
|
-
customAttributes: buildProjectCustomAttributes(project.customTelemetryTags),
|
|
108
|
+
customAttributes: this.buildProjectCustomAttributes(project.customTelemetryTags),
|
|
108
109
|
}
|
|
109
110
|
: undefined,
|
|
110
111
|
workflow: {
|
|
@@ -149,22 +150,24 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
|
|
|
149
150
|
const node = ctx.workflow.nodes.find((n) => n.name === ctx.nodeName);
|
|
150
151
|
if (!node)
|
|
151
152
|
return;
|
|
152
|
-
const customAttributes = ctx.taskData.metadata?.tracing
|
|
153
|
-
? Object.fromEntries(Object.entries(ctx.taskData.metadata.tracing).map(([key, value]) => [key, String(value)]))
|
|
154
|
-
: undefined;
|
|
155
153
|
this.tracer.endNode({
|
|
156
154
|
executionId: ctx.executionId,
|
|
157
155
|
node,
|
|
158
156
|
inputItemCount: countInputItems(ctx),
|
|
159
157
|
outputItemCount: countOutputItems(ctx.taskData.data),
|
|
160
158
|
error: ctx.taskData.error ?? undefined,
|
|
161
|
-
customAttributes,
|
|
159
|
+
customAttributes: this.buildNodeCustomAttributes(ctx),
|
|
162
160
|
});
|
|
163
161
|
}
|
|
162
|
+
areCustomSpanAttributesLicensed() {
|
|
163
|
+
return this.licenseState.isOtelCustomSpanAttributesLicensed();
|
|
164
|
+
}
|
|
164
165
|
buildWorkflowCustomAttributes(ctx) {
|
|
165
166
|
const tags = getCustomTelemetryTags(ctx.workflow.settings?.customTelemetryTags);
|
|
166
167
|
if (!tags?.length)
|
|
167
168
|
return;
|
|
169
|
+
if (!this.areCustomSpanAttributesLicensed())
|
|
170
|
+
return;
|
|
168
171
|
const customAttributes = {};
|
|
169
172
|
for (const { key, value } of tags) {
|
|
170
173
|
const trimmedKey = key.trim();
|
|
@@ -176,6 +179,24 @@ let OtelLifecycleHandler = class OtelLifecycleHandler {
|
|
|
176
179
|
return;
|
|
177
180
|
return customAttributes;
|
|
178
181
|
}
|
|
182
|
+
buildProjectCustomAttributes(tags) {
|
|
183
|
+
if (!this.areCustomSpanAttributesLicensed())
|
|
184
|
+
return undefined;
|
|
185
|
+
if (!tags?.length)
|
|
186
|
+
return undefined;
|
|
187
|
+
const attrs = {};
|
|
188
|
+
for (const { key, value } of tags) {
|
|
189
|
+
attrs[key] = value;
|
|
190
|
+
}
|
|
191
|
+
return attrs;
|
|
192
|
+
}
|
|
193
|
+
buildNodeCustomAttributes(ctx) {
|
|
194
|
+
if (!ctx.taskData.metadata?.tracing)
|
|
195
|
+
return undefined;
|
|
196
|
+
if (!this.areCustomSpanAttributesLicensed())
|
|
197
|
+
return undefined;
|
|
198
|
+
return Object.fromEntries(Object.entries(ctx.taskData.metadata.tracing).map(([key, value]) => [key, String(value)]));
|
|
199
|
+
}
|
|
179
200
|
};
|
|
180
201
|
exports.OtelLifecycleHandler = OtelLifecycleHandler;
|
|
181
202
|
__decorate([
|
|
@@ -214,17 +235,9 @@ exports.OtelLifecycleHandler = OtelLifecycleHandler = __decorate([
|
|
|
214
235
|
tracing_context_1.TraceContextService,
|
|
215
236
|
otel_config_1.OtelConfig,
|
|
216
237
|
ownership_service_1.OwnershipService,
|
|
217
|
-
backend_common_1.Logger
|
|
238
|
+
backend_common_1.Logger,
|
|
239
|
+
backend_common_1.LicenseState])
|
|
218
240
|
], OtelLifecycleHandler);
|
|
219
|
-
function buildProjectCustomAttributes(tags) {
|
|
220
|
-
if (!tags?.length)
|
|
221
|
-
return undefined;
|
|
222
|
-
const attrs = {};
|
|
223
|
-
for (const { key, value } of tags) {
|
|
224
|
-
attrs[key] = value;
|
|
225
|
-
}
|
|
226
|
-
return attrs;
|
|
227
|
-
}
|
|
228
241
|
function countOutputItems(data) {
|
|
229
242
|
if (!data?.main)
|
|
230
243
|
return 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otel-lifecycle-handler.js","sourceRoot":"","sources":["../../../src/modules/otel/otel-lifecycle-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"otel-lifecycle-handler.js","sourceRoot":"","sources":["../../../src/modules/otel/otel-lifecycle-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAmOA,4CAGC;AAED,0CAiBC;AAzPD,gDAAmD;AAQnD,wDAA2D;AAC3D,gCAAkC;AAGlC,qEAAgE;AAEhE,+CAA2C;AAC3C,uDAAwD;AACxD,wEAAoE;AAEpE,MAAM,oBAAoB,GAAG,CAAC,KAAc,EAAgC,EAAE,CAC7E,OAAO,KAAK,KAAK,QAAQ;IACzB,KAAK,KAAK,IAAI;IACd,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;IACrB,KAAK,IAAI,KAAK;IACd,OAAO,IAAI,KAAK;IAChB,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;IAC7B,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC;AAEjC,MAAM,sBAAsB,GAAG,CAAC,KAAc,EAAqC,EAAE;IACpF,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACpE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,EAAE,CAAC;QACtE,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IACtB,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,SAAS,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B,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1E,CAAC;AAED,SAAgB,eAAe,CAAC,GAA4B;IAC3D,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC;IACrD,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM;YAAE,SAAS;QACtB,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChD,IAAI,CAAC,UAAU;YAAE,SAAS;QAE1B,MAAM,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,eAAe,IAAI,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI;YAAE,SAAS;QAE/B,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,IAAI,CAAC,CAAC,CAAC;QAC7D,KAAK,IAAI,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -30,8 +30,8 @@ declare const firecrawlQuickConnectSchema: z.ZodObject<{
|
|
|
30
30
|
}>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
packageName: string;
|
|
33
|
-
text: string;
|
|
34
33
|
credentialType: string;
|
|
34
|
+
text: string;
|
|
35
35
|
quickConnectType: "firecrawl";
|
|
36
36
|
consentText: string;
|
|
37
37
|
backendFlowConfig: {
|
|
@@ -46,8 +46,8 @@ declare const firecrawlQuickConnectSchema: z.ZodObject<{
|
|
|
46
46
|
} | undefined;
|
|
47
47
|
}, {
|
|
48
48
|
packageName: string;
|
|
49
|
-
text: string;
|
|
50
49
|
credentialType: string;
|
|
50
|
+
text: string;
|
|
51
51
|
quickConnectType: "firecrawl";
|
|
52
52
|
consentText: string;
|
|
53
53
|
backendFlowConfig: {
|
|
@@ -93,8 +93,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
93
93
|
}>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
95
|
packageName: string;
|
|
96
|
-
text: string;
|
|
97
96
|
credentialType: string;
|
|
97
|
+
text: string;
|
|
98
98
|
quickConnectType: "firecrawl";
|
|
99
99
|
consentText: string;
|
|
100
100
|
backendFlowConfig: {
|
|
@@ -109,8 +109,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
109
109
|
} | undefined;
|
|
110
110
|
}, {
|
|
111
111
|
packageName: string;
|
|
112
|
-
text: string;
|
|
113
112
|
credentialType: string;
|
|
113
|
+
text: string;
|
|
114
114
|
quickConnectType: "firecrawl";
|
|
115
115
|
consentText: string;
|
|
116
116
|
backendFlowConfig: {
|
|
@@ -157,8 +157,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
157
157
|
config: {
|
|
158
158
|
integrationId: string;
|
|
159
159
|
};
|
|
160
|
-
text: string;
|
|
161
160
|
credentialType: string;
|
|
161
|
+
text: string;
|
|
162
162
|
quickConnectType: "pinecone";
|
|
163
163
|
consentText?: string | undefined;
|
|
164
164
|
consentCheckbox?: string | undefined;
|
|
@@ -173,8 +173,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
173
173
|
config: {
|
|
174
174
|
integrationId: string;
|
|
175
175
|
};
|
|
176
|
-
text: string;
|
|
177
176
|
credentialType: string;
|
|
177
|
+
text: string;
|
|
178
178
|
quickConnectType: "pinecone";
|
|
179
179
|
consentText?: string | undefined;
|
|
180
180
|
consentCheckbox?: string | undefined;
|
|
@@ -208,8 +208,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
208
208
|
backendFlowConfig: z.ZodOptional<z.ZodNever>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
210
|
packageName: string;
|
|
211
|
-
text: string;
|
|
212
211
|
credentialType: string;
|
|
212
|
+
text: string;
|
|
213
213
|
quickConnectType: string;
|
|
214
214
|
config?: undefined;
|
|
215
215
|
consentText?: string | undefined;
|
|
@@ -222,8 +222,8 @@ declare const quickConnectOptionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
222
222
|
backendFlowConfig?: undefined;
|
|
223
223
|
}, {
|
|
224
224
|
packageName: string;
|
|
225
|
-
text: string;
|
|
226
225
|
credentialType: string;
|
|
226
|
+
text: string;
|
|
227
227
|
quickConnectType: string;
|
|
228
228
|
config?: undefined;
|
|
229
229
|
consentText?: string | undefined;
|
|
@@ -267,8 +267,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
267
267
|
}>;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
269
|
packageName: string;
|
|
270
|
-
text: string;
|
|
271
270
|
credentialType: string;
|
|
271
|
+
text: string;
|
|
272
272
|
quickConnectType: "firecrawl";
|
|
273
273
|
consentText: string;
|
|
274
274
|
backendFlowConfig: {
|
|
@@ -283,8 +283,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
283
283
|
} | undefined;
|
|
284
284
|
}, {
|
|
285
285
|
packageName: string;
|
|
286
|
-
text: string;
|
|
287
286
|
credentialType: string;
|
|
287
|
+
text: string;
|
|
288
288
|
quickConnectType: "firecrawl";
|
|
289
289
|
consentText: string;
|
|
290
290
|
backendFlowConfig: {
|
|
@@ -331,8 +331,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
331
331
|
config: {
|
|
332
332
|
integrationId: string;
|
|
333
333
|
};
|
|
334
|
-
text: string;
|
|
335
334
|
credentialType: string;
|
|
335
|
+
text: string;
|
|
336
336
|
quickConnectType: "pinecone";
|
|
337
337
|
consentText?: string | undefined;
|
|
338
338
|
consentCheckbox?: string | undefined;
|
|
@@ -347,8 +347,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
347
347
|
config: {
|
|
348
348
|
integrationId: string;
|
|
349
349
|
};
|
|
350
|
-
text: string;
|
|
351
350
|
credentialType: string;
|
|
351
|
+
text: string;
|
|
352
352
|
quickConnectType: "pinecone";
|
|
353
353
|
consentText?: string | undefined;
|
|
354
354
|
consentCheckbox?: string | undefined;
|
|
@@ -382,8 +382,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
382
382
|
backendFlowConfig: z.ZodOptional<z.ZodNever>;
|
|
383
383
|
}, "strip", z.ZodTypeAny, {
|
|
384
384
|
packageName: string;
|
|
385
|
-
text: string;
|
|
386
385
|
credentialType: string;
|
|
386
|
+
text: string;
|
|
387
387
|
quickConnectType: string;
|
|
388
388
|
config?: undefined;
|
|
389
389
|
consentText?: string | undefined;
|
|
@@ -396,8 +396,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
396
396
|
backendFlowConfig?: undefined;
|
|
397
397
|
}, {
|
|
398
398
|
packageName: string;
|
|
399
|
-
text: string;
|
|
400
399
|
credentialType: string;
|
|
400
|
+
text: string;
|
|
401
401
|
quickConnectType: string;
|
|
402
402
|
config?: undefined;
|
|
403
403
|
consentText?: string | undefined;
|
|
@@ -410,8 +410,8 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
410
410
|
backendFlowConfig?: undefined;
|
|
411
411
|
}>]>, "many">, ({
|
|
412
412
|
packageName: string;
|
|
413
|
-
text: string;
|
|
414
413
|
credentialType: string;
|
|
414
|
+
text: string;
|
|
415
415
|
quickConnectType: string;
|
|
416
416
|
config?: undefined;
|
|
417
417
|
consentText?: string | undefined;
|
|
@@ -424,36 +424,36 @@ declare const quickConnectOptionsSchema: z.ZodPipeline<z.ZodString, z.ZodEffects
|
|
|
424
424
|
backendFlowConfig?: undefined;
|
|
425
425
|
} | {
|
|
426
426
|
packageName: string;
|
|
427
|
-
config: {
|
|
428
|
-
integrationId: string;
|
|
429
|
-
};
|
|
430
|
-
text: string;
|
|
431
427
|
credentialType: string;
|
|
432
|
-
|
|
433
|
-
|
|
428
|
+
text: string;
|
|
429
|
+
quickConnectType: "firecrawl";
|
|
430
|
+
consentText: string;
|
|
431
|
+
backendFlowConfig: {
|
|
432
|
+
secret: string;
|
|
433
|
+
};
|
|
434
|
+
config?: undefined;
|
|
434
435
|
consentCheckbox?: string | undefined;
|
|
435
436
|
disclaimer?: {
|
|
436
437
|
text: string;
|
|
437
438
|
linkUrl: string;
|
|
438
439
|
linkLabel?: string | undefined;
|
|
439
440
|
} | undefined;
|
|
440
|
-
backendFlowConfig?: undefined;
|
|
441
441
|
} | {
|
|
442
442
|
packageName: string;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
quickConnectType: "firecrawl";
|
|
446
|
-
consentText: string;
|
|
447
|
-
backendFlowConfig: {
|
|
448
|
-
secret: string;
|
|
443
|
+
config: {
|
|
444
|
+
integrationId: string;
|
|
449
445
|
};
|
|
450
|
-
|
|
446
|
+
credentialType: string;
|
|
447
|
+
text: string;
|
|
448
|
+
quickConnectType: "pinecone";
|
|
449
|
+
consentText?: string | undefined;
|
|
451
450
|
consentCheckbox?: string | undefined;
|
|
452
451
|
disclaimer?: {
|
|
453
452
|
text: string;
|
|
454
453
|
linkUrl: string;
|
|
455
454
|
linkLabel?: string | undefined;
|
|
456
455
|
} | undefined;
|
|
456
|
+
backendFlowConfig?: undefined;
|
|
457
457
|
})[], unknown>>;
|
|
458
458
|
export type QuickConnectOptions = z.infer<typeof quickConnectOptionsSchema>;
|
|
459
459
|
export declare class QuickConnectConfig {
|
|
@@ -4,8 +4,8 @@ export declare class QuickConnectModule implements ModuleInterface {
|
|
|
4
4
|
settings(): Promise<{
|
|
5
5
|
options: ({
|
|
6
6
|
packageName: string;
|
|
7
|
-
text: string;
|
|
8
7
|
credentialType: string;
|
|
8
|
+
text: string;
|
|
9
9
|
quickConnectType: string;
|
|
10
10
|
config?: undefined;
|
|
11
11
|
consentText?: string | undefined;
|
|
@@ -17,13 +17,11 @@ export declare class QuickConnectModule implements ModuleInterface {
|
|
|
17
17
|
} | undefined;
|
|
18
18
|
} | {
|
|
19
19
|
packageName: string;
|
|
20
|
-
config: {
|
|
21
|
-
integrationId: string;
|
|
22
|
-
};
|
|
23
|
-
text: string;
|
|
24
20
|
credentialType: string;
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
text: string;
|
|
22
|
+
quickConnectType: "firecrawl";
|
|
23
|
+
consentText: string;
|
|
24
|
+
config?: undefined;
|
|
27
25
|
consentCheckbox?: string | undefined;
|
|
28
26
|
disclaimer?: {
|
|
29
27
|
text: string;
|
|
@@ -32,11 +30,13 @@ export declare class QuickConnectModule implements ModuleInterface {
|
|
|
32
30
|
} | undefined;
|
|
33
31
|
} | {
|
|
34
32
|
packageName: string;
|
|
35
|
-
|
|
33
|
+
config: {
|
|
34
|
+
integrationId: string;
|
|
35
|
+
};
|
|
36
36
|
credentialType: string;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
text: string;
|
|
38
|
+
quickConnectType: "pinecone";
|
|
39
|
+
consentText?: string | undefined;
|
|
40
40
|
consentCheckbox?: string | undefined;
|
|
41
41
|
disclaimer?: {
|
|
42
42
|
text: string;
|
|
@@ -4,7 +4,7 @@ export interface RedactionContext {
|
|
|
4
4
|
readonly user: User;
|
|
5
5
|
readonly redactExecutionData: boolean | undefined;
|
|
6
6
|
readonly userCanReveal: boolean;
|
|
7
|
-
readonly
|
|
7
|
+
readonly enforceDynCredRedaction: boolean;
|
|
8
8
|
readonly memo: Map<string, unknown>;
|
|
9
9
|
}
|
|
10
10
|
export interface IExecutionRedactionStrategy {
|
|
@@ -15,6 +15,7 @@ export declare class ExecutionRedactionService implements ExecutionRedaction {
|
|
|
15
15
|
processExecutions(executions: RedactableExecution[], options: ExecutionRedactionOptions): Promise<void>;
|
|
16
16
|
private buildPipeline;
|
|
17
17
|
private hasDynamicCredentials;
|
|
18
|
+
private isOwnDynamicCredentialsExecution;
|
|
18
19
|
private policyAllowsReveal;
|
|
19
20
|
private resolvePolicy;
|
|
20
21
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ExecutionRedactionService = void 0;
|
|
13
13
|
const backend_common_1 = require("@n8n/backend-common");
|
|
14
14
|
const di_1 = require("@n8n/di");
|
|
15
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
15
16
|
const forbidden_error_1 = require("../../../errors/response-errors/forbidden.error");
|
|
16
17
|
const scope_forbidden_error_1 = require("../../../errors/response-errors/scope-forbidden.error");
|
|
17
18
|
const event_service_1 = require("../../../events/event.service");
|
|
@@ -48,11 +49,16 @@ let ExecutionRedactionService = class ExecutionRedactionService {
|
|
|
48
49
|
}
|
|
49
50
|
if (options.redactExecutionData === false) {
|
|
50
51
|
for (const execution of processable) {
|
|
51
|
-
if (this.hasDynamicCredentials(execution)
|
|
52
|
+
if (this.hasDynamicCredentials(execution) &&
|
|
53
|
+
!this.isOwnDynamicCredentialsExecution(execution, options.user.id)) {
|
|
52
54
|
throw new forbidden_error_1.ForbiddenError();
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
for (const execution of needsCheck) {
|
|
58
|
+
if (this.hasDynamicCredentials(execution) &&
|
|
59
|
+
this.isOwnDynamicCredentialsExecution(execution, options.user.id)) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
56
62
|
if (!revealableIds.has(execution.workflowId)) {
|
|
57
63
|
this.eventService.emit('execution-data-reveal-failure', {
|
|
58
64
|
user: options.user,
|
|
@@ -72,21 +78,24 @@ let ExecutionRedactionService = class ExecutionRedactionService {
|
|
|
72
78
|
if (execution.data === undefined || execution.data === null)
|
|
73
79
|
continue;
|
|
74
80
|
const hasDynCreds = this.hasDynamicCredentials(execution);
|
|
81
|
+
const isOwnDynCreds = hasDynCreds && this.isOwnDynamicCredentialsExecution(execution, options.user.id);
|
|
75
82
|
const policyAllowsReveal = this.policyAllowsReveal(execution);
|
|
76
83
|
const userCanReveal = hasDynCreds
|
|
77
|
-
?
|
|
84
|
+
? isOwnDynCreds
|
|
78
85
|
: policyAllowsReveal || revealableIds.has(execution.workflowId);
|
|
86
|
+
const enforceDynCredRedaction = hasDynCreds && !isOwnDynCreds;
|
|
79
87
|
const context = {
|
|
80
88
|
user: options.user,
|
|
81
89
|
redactExecutionData: options.redactExecutionData,
|
|
82
90
|
userCanReveal,
|
|
83
|
-
|
|
91
|
+
enforceDynCredRedaction,
|
|
84
92
|
memo: new Map(),
|
|
85
93
|
};
|
|
86
|
-
const pipeline = this.buildPipeline(execution, context, policyAllowsReveal,
|
|
94
|
+
const pipeline = this.buildPipeline(execution, context, policyAllowsReveal, enforceDynCredRedaction);
|
|
95
|
+
const needsCredentialStrip = hasDynCreds && execution.data.executionData?.runtimeData?.credentials !== undefined;
|
|
87
96
|
let target = execution;
|
|
88
97
|
if (options.keepOriginal) {
|
|
89
|
-
const needsClone = pipeline.some((s) => s.requiresRedaction(execution, context));
|
|
98
|
+
const needsClone = needsCredentialStrip || pipeline.some((s) => s.requiresRedaction(execution, context));
|
|
90
99
|
if (!needsClone)
|
|
91
100
|
continue;
|
|
92
101
|
target = structuredClone(execution);
|
|
@@ -95,7 +104,7 @@ let ExecutionRedactionService = class ExecutionRedactionService {
|
|
|
95
104
|
for (const strategy of pipeline) {
|
|
96
105
|
await strategy.apply(target, context);
|
|
97
106
|
}
|
|
98
|
-
if (
|
|
107
|
+
if (needsCredentialStrip && target.data.executionData?.runtimeData) {
|
|
99
108
|
delete target.data.executionData.runtimeData.credentials;
|
|
100
109
|
}
|
|
101
110
|
}
|
|
@@ -112,12 +121,12 @@ let ExecutionRedactionService = class ExecutionRedactionService {
|
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
}
|
|
115
|
-
buildPipeline(execution, context, policyAllowsReveal,
|
|
124
|
+
buildPipeline(execution, context, policyAllowsReveal, enforceDynCredRedaction) {
|
|
116
125
|
const pipeline = [];
|
|
117
126
|
const policy = this.resolvePolicy(execution);
|
|
118
127
|
const shouldClearItems = context.redactExecutionData !== false &&
|
|
119
128
|
(context.redactExecutionData === true ||
|
|
120
|
-
|
|
129
|
+
enforceDynCredRedaction ||
|
|
121
130
|
(!policyAllowsReveal &&
|
|
122
131
|
(policy === 'all' ||
|
|
123
132
|
(policy === 'non-manual' && !MANUAL_MODES.has(execution.mode)) ||
|
|
@@ -130,6 +139,9 @@ let ExecutionRedactionService = class ExecutionRedactionService {
|
|
|
130
139
|
hasDynamicCredentials(execution) {
|
|
131
140
|
return Object.values(execution.data.resultData?.runData ?? {}).some((taskDataList) => taskDataList.some((taskData) => taskData.usedDynamicCredentials));
|
|
132
141
|
}
|
|
142
|
+
isOwnDynamicCredentialsExecution(execution, userId) {
|
|
143
|
+
return execution.data.executionData?.runtimeData?.executedByUserId === userId;
|
|
144
|
+
}
|
|
133
145
|
policyAllowsReveal(execution) {
|
|
134
146
|
const policy = this.resolvePolicy(execution);
|
|
135
147
|
return (policy === 'none' ||
|
|
@@ -139,9 +151,11 @@ let ExecutionRedactionService = class ExecutionRedactionService {
|
|
|
139
151
|
resolvePolicy(execution) {
|
|
140
152
|
if (!this.licenseState.isDataRedactionLicensed())
|
|
141
153
|
return 'none';
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
154
|
+
const redaction = execution.data.executionData?.runtimeData?.redaction;
|
|
155
|
+
if (redaction?.version === 2) {
|
|
156
|
+
return (0, n8n_workflow_1.channelsToPolicy)({ production: redaction.production, manual: redaction.manual });
|
|
157
|
+
}
|
|
158
|
+
return redaction?.policy ?? execution.workflowData.settings?.redactionPolicy ?? 'none';
|
|
145
159
|
}
|
|
146
160
|
};
|
|
147
161
|
exports.ExecutionRedactionService = ExecutionRedactionService;
|