n8n 2.23.2 → 2.25.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-workflow-manager.d.ts +8 -4
- package/dist/active-workflow-manager.js +26 -9
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/auth/auth.service.js +2 -1
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/controllers/ai.controller.js +1 -1
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/api-keys.controller.d.ts +20 -15
- package/dist/controllers/api-keys.controller.js +7 -4
- package/dist/controllers/api-keys.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +4 -2
- package/dist/controllers/oauth/oauth1-credential.controller.js +15 -5
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +4 -2
- package/dist/controllers/oauth/oauth2-credential.controller.js +15 -6
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/project.controller.d.ts +8 -0
- package/dist/controllers/project.controller.js +2 -1
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.js +18 -1
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/controllers/telemetry.controller.js +4 -1
- package/dist/controllers/telemetry.controller.js.map +1 -1
- package/dist/credentials/credential-connection-status-provider.interface.d.ts +3 -0
- package/dist/credentials/credential-connection-status-proxy.d.ts +3 -0
- package/dist/credentials/credential-connection-status-proxy.js +10 -0
- package/dist/credentials/credential-connection-status-proxy.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +6 -0
- package/dist/credentials/credentials.controller.js +39 -2
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +29 -13
- package/dist/credentials/credentials.service.ee.d.ts +2 -0
- package/dist/credentials/credentials.service.ee.js +3 -0
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +27 -6
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.d.ts +1 -0
- package/dist/credentials-helper.js +14 -4
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/credential-missing-id.error.d.ts +4 -0
- package/dist/errors/credential-missing-id.error.js +14 -0
- package/dist/errors/credential-missing-id.error.js.map +1 -0
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +3 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +54 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
- package/dist/events/relays/log-streaming.event-relay.js +39 -1
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +6 -0
- package/dist/events/relays/telemetry.event-relay.js +74 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +6 -5
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +1 -0
- package/dist/executions/execution-data/db-store.js +26 -0
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/fs-store.d.ts +2 -0
- package/dist/executions/execution-data/fs-store.js +27 -0
- package/dist/executions/execution-data/fs-store.js.map +1 -1
- package/dist/executions/execution-data/types.d.ts +1 -0
- package/dist/executions/execution-persistence.d.ts +38 -4
- package/dist/executions/execution-persistence.js +127 -2
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/expression-observability/expression-observability.provider.d.ts +3 -1
- package/dist/expression-observability/expression-observability.provider.js +48 -46
- package/dist/expression-observability/expression-observability.provider.js.map +1 -1
- package/dist/interfaces.d.ts +3 -1
- package/dist/modules/agents/agent-execution.service.d.ts +4 -2
- package/dist/modules/agents/agent-execution.service.js +3 -3
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-command.service.d.ts +40 -0
- package/dist/modules/agents/agent-knowledge-command.service.js +221 -0
- package/dist/modules/agents/agent-knowledge-command.service.js.map +1 -0
- package/dist/modules/agents/agent-knowledge.service.d.ts +42 -0
- package/dist/modules/agents/agent-knowledge.service.js +300 -0
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -0
- package/dist/modules/agents/agent-task.service.d.ts +52 -0
- package/dist/modules/agents/agent-task.service.js +487 -0
- package/dist/modules/agents/agent-task.service.js.map +1 -0
- package/dist/modules/agents/agent-upload.middleware.d.ts +7 -0
- package/dist/modules/agents/agent-upload.middleware.js +62 -0
- package/dist/modules/agents/agent-upload.middleware.js.map +1 -0
- package/dist/modules/agents/agents-tools.service.d.ts +1 -1
- package/dist/modules/agents/agents-tools.service.js +12 -3
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +138 -45
- package/dist/modules/agents/agents.controller.js +176 -48
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +2 -2
- package/dist/modules/agents/agents.module.js +13 -5
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +43 -7
- package/dist/modules/agents/agents.service.js +341 -57
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +6 -5
- package/dist/modules/agents/builder/agents-builder-prompts.js +92 -18
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +11 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +164 -26
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +3 -1
- package/dist/modules/agents/builder/agents-builder.service.js +8 -3
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +3 -0
- package/dist/modules/agents/builder/builder-tool-names.js +3 -0
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.d.ts +1 -0
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +25 -4
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-question.tool.js +6 -5
- package/dist/modules/agents/builder/interactive/ask-question.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +20 -5
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +23 -4
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +18 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.js +5 -3
- package/dist/modules/agents/builder/prompts/memory.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.js +11 -2
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +1 -1
- package/dist/modules/agents/builder/search-mcp-servers.tool.d.ts +6 -0
- package/dist/modules/agents/builder/search-mcp-servers.tool.js +85 -0
- package/dist/modules/agents/builder/search-mcp-servers.tool.js.map +1 -0
- package/dist/modules/agents/builder/skill-body-template.d.ts +4 -0
- package/dist/modules/agents/builder/skill-body-template.js +31 -0
- package/dist/modules/agents/builder/skill-body-template.js.map +1 -0
- package/dist/modules/agents/builder/skills/index.js +6 -1
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/integrations.skill.js +39 -18
- package/dist/modules/agents/builder/skills/integrations.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/mcp.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/mcp.skill.js +110 -0
- package/dist/modules/agents/builder/skills/mcp.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/research.skill.js +8 -5
- package/dist/modules/agents/builder/skills/research.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +41 -13
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +82 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -0
- package/dist/modules/agents/builder/task-objective-template.d.ts +3 -0
- package/dist/modules/agents/builder/task-objective-template.js +27 -0
- package/dist/modules/agents/builder/task-objective-template.js.map +1 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +8 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +79 -0
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.d.ts +4 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js +26 -0
- package/dist/modules/agents/entities/agent-execution-thread.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-file.entity.d.ts +11 -0
- package/dist/modules/agents/entities/agent-file.entity.js +48 -0
- package/dist/modules/agents/entities/agent-file.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.d.ts +10 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.js +54 -0
- package/dist/modules/agents/entities/agent-task-run-lock.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.d.ts +12 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js +70 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-task.entity.d.ts +11 -0
- package/dist/modules/agents/entities/agent-task.entity.js +64 -0
- package/dist/modules/agents/entities/agent-task.entity.js.map +1 -0
- package/dist/modules/agents/execution-recorder.d.ts +1 -0
- package/dist/modules/agents/execution-recorder.js +9 -5
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +16 -4
- package/dist/modules/agents/integrations/agent-chat-bridge.js +372 -116
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +27 -2
- package/dist/modules/agents/integrations/agent-chat-integration.js +5 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +15 -6
- package/dist/modules/agents/integrations/chat-integration.service.js +9 -10
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +14 -0
- package/dist/modules/agents/integrations/component-mapper.js +9 -1
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +22 -0
- package/dist/modules/agents/integrations/integration-action-executor.js +171 -0
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.d.ts +18 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.js +58 -0
- package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +13 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +16 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -0
- package/dist/modules/agents/integrations/integration-helpers.d.ts +21 -0
- package/dist/modules/agents/integrations/integration-helpers.js +72 -0
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -0
- package/dist/modules/agents/integrations/integration-message-context.service.d.ts +13 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js +129 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -0
- package/dist/modules/agents/integrations/integration-tools.d.ts +205 -0
- package/dist/modules/agents/integrations/integration-tools.js +955 -0
- package/dist/modules/agents/integrations/integration-tools.js.map +1 -0
- package/dist/modules/agents/integrations/integrations-sync.d.ts +1 -1
- package/dist/modules/agents/integrations/integrations-sync.js +1 -29
- package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +2 -0
- package/dist/modules/agents/integrations/n8n-memory.js +18 -11
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-integration.d.ts +13 -2
- package/dist/modules/agents/integrations/platforms/linear-integration.js +70 -15
- package/dist/modules/agents/integrations/platforms/linear-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-operations.d.ts +18 -0
- package/dist/modules/agents/integrations/platforms/linear-operations.js +679 -0
- package/dist/modules/agents/integrations/platforms/linear-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack-integration.d.ts +11 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js +53 -1
- package/dist/modules/agents/integrations/platforms/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-operations.d.ts +17 -0
- package/dist/modules/agents/integrations/platforms/slack-operations.js +288 -0
- package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +9 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +17 -0
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js +7 -1
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.d.ts +4 -2
- package/dist/modules/agents/json-config/from-json-config.js +88 -11
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +16 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js +155 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.d.ts +8 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js +59 -0
- package/dist/modules/agents/json-config/native-web-search-provider-tools.js.map +1 -0
- package/dist/modules/agents/json-config/schema-text-serializer.js +12 -2
- package/dist/modules/agents/json-config/schema-text-serializer.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +1 -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/repositories/agent-file.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent-file.repository.js +35 -0
- package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent-history.repository.js +18 -0
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.d.ts +12 -0
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.js +72 -0
- package/dist/modules/agents/repositories/agent-task-run-lock.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +11 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +45 -0
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-task.repository.d.ts +7 -0
- package/dist/modules/agents/repositories/agent-task.repository.js +32 -0
- package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.js +1 -2
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/tools/knowledge/csv-helpers.d.ts +73 -0
- package/dist/modules/agents/tools/knowledge/csv-helpers.js +341 -0
- package/dist/modules/agents/tools/knowledge/csv-helpers.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.d.ts +61 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.js +207 -0
- package/dist/modules/agents/tools/knowledge/csv.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/file-references.d.ts +16 -0
- package/dist/modules/agents/tools/knowledge/file-references.js +35 -0
- package/dist/modules/agents/tools/knowledge/file-references.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/read.operation.d.ts +8 -0
- package/dist/modules/agents/tools/knowledge/read.operation.js +38 -0
- package/dist/modules/agents/tools/knowledge/read.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/schemas.d.ts +1505 -0
- package/dist/modules/agents/tools/knowledge/schemas.js +441 -0
- package/dist/modules/agents/tools/knowledge/schemas.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/search.operation.d.ts +9 -0
- package/dist/modules/agents/tools/knowledge/search.operation.js +332 -0
- package/dist/modules/agents/tools/knowledge/search.operation.js.map +1 -0
- package/dist/modules/agents/tools/knowledge/tool.d.ts +8 -0
- package/dist/modules/agents/tools/knowledge/tool.js +121 -0
- package/dist/modules/agents/tools/knowledge/tool.js.map +1 -0
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.js +4 -4
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/agent-resource-id.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub.module.d.ts +2 -2
- 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/dynamic-credentials.ee/constants.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/constants.js +2 -1
- package/dist/modules/dynamic-credentials.ee/constants.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.d.ts +9 -2
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +45 -14
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.d.ts +4 -0
- package/dist/modules/dynamic-credentials.ee/services/credential-connection-status.service.js +16 -0
- 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 +6 -2
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.d.ts +1 -0
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js +21 -2
- package/dist/modules/instance-ai/eval/eval-mocked-credentials-helper.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +4 -1
- package/dist/modules/instance-ai/eval/execution.service.js +118 -24
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-wire-server.d.ts +8 -3
- package/dist/modules/instance-ai/eval/llm-wire-server.js +147 -50
- package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +45 -8
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-quirks.d.ts +4 -2
- package/dist/modules/instance-ai/eval/mock-quirks.js +83 -4
- package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-envelope.d.ts +8 -0
- package/dist/modules/instance-ai/eval/openai-envelope.js +121 -8
- package/dist/modules/instance-ai/eval/openai-envelope.js.map +1 -1
- package/dist/modules/instance-ai/eval/openai-responses-envelope.d.ts +11 -0
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js +238 -0
- package/dist/modules/instance-ai/eval/openai-responses-envelope.js.map +1 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.d.ts +1 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.js +74 -0
- package/dist/modules/instance-ai/eval/request-binary-redactor.js.map +1 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +19 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +159 -76
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/extract-resolved-node-parameters.d.ts +7 -0
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js +221 -0
- package/dist/modules/instance-ai/extract-resolved-node-parameters.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +7 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js +80 -3
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.js +1 -16
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +67 -7
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +24 -1
- package/dist/modules/instance-ai/instance-ai.service.js +400 -26
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +1 -0
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.d.ts +2 -0
- package/dist/modules/instance-ai/message-parser.js +165 -36
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.d.ts +2 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js +13 -0
- package/dist/modules/instance-ai/repositories/instance-ai-checkpoint.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.d.ts +12 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js +80 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js.map +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +23 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.d.ts +10 -4
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +49 -37
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
- package/dist/modules/instance-ai/web-research/index.d.ts +0 -2
- package/dist/modules/instance-ai/web-research/index.js +1 -5
- package/dist/modules/instance-ai/web-research/index.js.map +1 -1
- package/dist/modules/ldap.ee/helpers.ee.js +6 -2
- package/dist/modules/ldap.ee/helpers.ee.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +13 -6
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +10 -2
- package/dist/modules/mcp/mcp.service.js +39 -6
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.settings.controller.d.ts +2 -0
- package/dist/modules/mcp/mcp.settings.service.d.ts +2 -0
- package/dist/modules/mcp/mcp.settings.service.js +6 -5
- package/dist/modules/mcp/mcp.settings.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +6 -0
- package/dist/modules/mcp/mcp.types.js +9 -0
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +6 -6
- package/dist/modules/mcp/tools/search-workflows.tool.d.ts +2 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +12 -4
- package/dist/modules/mcp/tools/search-workflows.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 -1
- package/dist/modules/mcp/tools/workflow-builder/constants.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js +6 -4
- package/dist/modules/mcp/tools/workflow-builder/mcp-instructions.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +67 -6
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +30 -0
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js +161 -0
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +67 -6
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +51 -0
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mcp-registry.types.js.map +1 -1
- package/dist/modules/mcp-registry/synthesize-type-def.d.ts +2 -0
- package/dist/modules/mcp-registry/synthesize-type-def.js +35 -0
- package/dist/modules/mcp-registry/synthesize-type-def.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.d.ts +24 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.js +206 -0
- package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +33 -0
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +23 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +68 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +25 -0
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +6 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js +3 -0
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.js +3 -0
- package/dist/modules/n8n-packages/entities/requirements-extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +12 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +11 -20
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +10 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/package-reader.d.ts +6 -0
- package/dist/modules/n8n-packages/io/package-reader.js +3 -0
- package/dist/modules/n8n-packages/io/package-reader.js.map +1 -0
- package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -1
- package/dist/modules/n8n-packages/io/slug.utils.js +3 -3
- package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -1
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.d.ts +13 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js +84 -0
- package/dist/modules/n8n-packages/io/tar/tar-package-reader.js.map +1 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +7 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js +27 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -0
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +7 -2
- package/dist/modules/n8n-packages/n8n-packages.service.js +21 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +22 -0
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +121 -4
- package/dist/modules/n8n-packages/spec/manifest.schema.js +22 -3
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +51 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js +14 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +15 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +12 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +4 -4
- package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +13 -0
- package/dist/modules/n8n-packages/utils/import-package-upload.js +59 -0
- package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.js +15 -6
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +3 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +4 -2
- package/dist/modules/otel/otel-lifecycle-handler.js +69 -4
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel.config.d.ts +1 -0
- package/dist/modules/otel/otel.config.js +5 -0
- package/dist/modules/otel/otel.config.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +2 -0
- package/dist/modules/otel/otel.constants.js +2 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/redaction/instance-redaction-enforcement.service.d.ts +4 -0
- package/dist/modules/redaction/instance-redaction-enforcement.service.js +8 -0
- package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
- package/dist/modules/redaction/redaction-context-hook.d.ts +9 -0
- package/dist/modules/redaction/redaction-context-hook.js +57 -0
- package/dist/modules/redaction/redaction-context-hook.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/constants.d.ts +1 -0
- package/dist/modules/source-control.ee/constants.js +2 -1
- package/dist/modules/source-control.ee/constants.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +5 -0
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -2
- package/dist/modules/source-control.ee/source-control.controller.ee.js +32 -5
- package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js +2 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js +2 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +1 -1
- package/dist/node-catalog/node-catalog.service.d.ts +2 -0
- package/dist/node-catalog/node-catalog.service.js +38 -2
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/oauth/oauth-browser-binding.service.d.ts +18 -0
- package/dist/oauth/oauth-browser-binding.service.js +68 -0
- package/dist/oauth/oauth-browser-binding.service.js.map +1 -0
- package/dist/oauth/oauth.service.d.ts +10 -4
- package/dist/oauth/oauth.service.js +87 -4
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/oauth/types.d.ts +1 -0
- package/dist/oauth/types.js.map +1 -1
- package/dist/public-api/index.js +5 -1
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/types.d.ts +6 -0
- package/dist/public-api/v1/handlers/credentials/credentials.service.js +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +5 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +22 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +207 -59
- package/dist/requests.d.ts +4 -0
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +5 -2
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/services/ai-workflow-builder.service.d.ts +6 -3
- package/dist/services/ai-workflow-builder.service.js +13 -5
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/api-key-auth.strategy.d.ts +4 -1
- package/dist/services/api-key-auth.strategy.js +18 -2
- package/dist/services/api-key-auth.strategy.js.map +1 -1
- package/dist/services/ownership.service.d.ts +1 -0
- package/dist/services/ownership.service.js +7 -0
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +6 -2
- package/dist/services/project.service.ee.js +30 -8
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/public-api-key.service.d.ts +21 -14
- package/dist/services/public-api-key.service.js +14 -9
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +6 -9
- package/dist/telemetry/index.js +23 -9
- package/dist/telemetry/index.js.map +1 -1
- package/dist/webhooks/constants.js +5 -1
- package/dist/webhooks/constants.js.map +1 -1
- package/dist/webhooks/live-webhooks.d.ts +8 -1
- package/dist/webhooks/live-webhooks.js +37 -22
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-forms.js +8 -1
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +1 -1
- package/dist/webhooks/webhook-helpers.js +20 -10
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-handler.js +1 -1
- package/dist/webhooks/webhook-request-handler.js.map +1 -1
- package/dist/workflow-helpers.d.ts +6 -1
- package/dist/workflow-helpers.js +9 -1
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +4 -1
- package/dist/workflows/workflow-creation.service.js +12 -3
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-execution.service.js +2 -0
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-published-data.service.d.ts +11 -0
- package/dist/workflows/workflow-published-data.service.js +39 -0
- package/dist/workflows/workflow-published-data.service.js.map +1 -0
- package/dist/workflows/workflow-validation.service.d.ts +5 -1
- package/dist/workflows/workflow-validation.service.js +55 -2
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.js +4 -0
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +8 -0
- package/package.json +45 -37
- package/templates/form-trigger-completion.handlebars +12 -1
- package/dist/modules/agents/integrations/agent-schedule.service.d.ts +0 -30
- package/dist/modules/agents/integrations/agent-schedule.service.js +0 -331
- package/dist/modules/agents/integrations/agent-schedule.service.js.map +0 -1
- package/dist/modules/instance-ai/web-research/brave-search.d.ts +0 -10
- package/dist/modules/instance-ai/web-research/brave-search.js +0 -44
- package/dist/modules/instance-ai/web-research/brave-search.js.map +0 -1
- package/dist/modules/instance-ai/web-research/searxng-search.d.ts +0 -6
- package/dist/modules/instance-ai/web-research/searxng-search.js +0 -39
- package/dist/modules/instance-ai/web-research/searxng-search.js.map +0 -1
|
@@ -1284,15 +1284,20 @@ paths:
|
|
|
1284
1284
|
$ref: '#/components/schemas/pull'
|
|
1285
1285
|
responses:
|
|
1286
1286
|
'200':
|
|
1287
|
-
description:
|
|
1287
|
+
description: Pull result containing the list of files that were pulled from the remote repository.
|
|
1288
1288
|
content:
|
|
1289
1289
|
application/json:
|
|
1290
1290
|
schema:
|
|
1291
|
-
$ref: '#/components/schemas/
|
|
1291
|
+
$ref: '#/components/schemas/pullResult'
|
|
1292
1292
|
'400':
|
|
1293
1293
|
$ref: '#/components/responses/badRequest'
|
|
1294
1294
|
'409':
|
|
1295
|
-
|
|
1295
|
+
description: |
|
|
1296
|
+
Conflict due to uncommitted local changes or merge conflicts. The response body lists every file in the pull diff; files causing the conflict have `conflict: true` or `status: modified`. Retry with `force=true` to discard local changes.
|
|
1297
|
+
content:
|
|
1298
|
+
application/json:
|
|
1299
|
+
schema:
|
|
1300
|
+
$ref: '#/components/schemas/pullResult'
|
|
1296
1301
|
/variables:
|
|
1297
1302
|
post:
|
|
1298
1303
|
x-eov-operation-id: createVariable
|
|
@@ -2718,6 +2723,109 @@ paths:
|
|
|
2718
2723
|
$ref: '#/components/responses/forbidden'
|
|
2719
2724
|
'404':
|
|
2720
2725
|
$ref: '#/components/responses/notFound'
|
|
2726
|
+
/n8n-packages/import:
|
|
2727
|
+
post:
|
|
2728
|
+
x-eov-operation-id: importPackage
|
|
2729
|
+
x-eov-operation-handler: v1/handlers/n8n-packages/n8n-packages.handler
|
|
2730
|
+
tags:
|
|
2731
|
+
- N8nPackage
|
|
2732
|
+
summary: 'Beta: Import an n8n package into a project'
|
|
2733
|
+
description: |
|
|
2734
|
+
**Beta — disabled by default.** Set `N8N_PUBLIC_API_PACKAGES_ENABLED=true` on the
|
|
2735
|
+
instance to enable this endpoint. While disabled, requests return `404`.
|
|
2736
|
+
|
|
2737
|
+
Imports a gzip-compressed tar package (`.n8np`) into the target project. Send the
|
|
2738
|
+
archive as the multipart field `package`. Optional routing uses form fields
|
|
2739
|
+
`projectId` and `folderId` (omit or leave empty for defaults). Maximum upload size
|
|
2740
|
+
is `N8N_ENDPOINTS_PAYLOAD_SIZE_MAX` MB (default 16).
|
|
2741
|
+
|
|
2742
|
+
The package must declare its manifest at `manifest.json` and include every file
|
|
2743
|
+
referenced by the manifest. The caller is authorised through the `workflow:import`
|
|
2744
|
+
scope. Each imported workflow is created with a fresh local id and arrives inactive.
|
|
2745
|
+
requestBody:
|
|
2746
|
+
required: true
|
|
2747
|
+
content:
|
|
2748
|
+
multipart/form-data:
|
|
2749
|
+
schema:
|
|
2750
|
+
type: object
|
|
2751
|
+
required:
|
|
2752
|
+
- package
|
|
2753
|
+
properties:
|
|
2754
|
+
package:
|
|
2755
|
+
type: string
|
|
2756
|
+
format: binary
|
|
2757
|
+
description: Gzip-compressed tar package (`.n8np`).
|
|
2758
|
+
projectId:
|
|
2759
|
+
type: string
|
|
2760
|
+
description: |
|
|
2761
|
+
Target project id. Omit or send empty to import into the caller's personal project.
|
|
2762
|
+
folderId:
|
|
2763
|
+
type: string
|
|
2764
|
+
description: |
|
|
2765
|
+
Optional folder within the target project. Omit or send empty for project root.
|
|
2766
|
+
responses:
|
|
2767
|
+
'200':
|
|
2768
|
+
description: Import succeeded.
|
|
2769
|
+
content:
|
|
2770
|
+
application/json:
|
|
2771
|
+
schema:
|
|
2772
|
+
type: object
|
|
2773
|
+
required:
|
|
2774
|
+
- package
|
|
2775
|
+
- workflows
|
|
2776
|
+
properties:
|
|
2777
|
+
package:
|
|
2778
|
+
type: object
|
|
2779
|
+
required:
|
|
2780
|
+
- sourceN8nVersion
|
|
2781
|
+
- sourceId
|
|
2782
|
+
- exportedAt
|
|
2783
|
+
properties:
|
|
2784
|
+
sourceN8nVersion:
|
|
2785
|
+
type: string
|
|
2786
|
+
sourceId:
|
|
2787
|
+
type: string
|
|
2788
|
+
exportedAt:
|
|
2789
|
+
type: string
|
|
2790
|
+
format: date-time
|
|
2791
|
+
workflows:
|
|
2792
|
+
type: array
|
|
2793
|
+
items:
|
|
2794
|
+
type: object
|
|
2795
|
+
required:
|
|
2796
|
+
- sourceId
|
|
2797
|
+
- localId
|
|
2798
|
+
- name
|
|
2799
|
+
- projectId
|
|
2800
|
+
- parentFolderId
|
|
2801
|
+
- activeVersionId
|
|
2802
|
+
properties:
|
|
2803
|
+
sourceId:
|
|
2804
|
+
type: string
|
|
2805
|
+
description: Workflow id as it appeared in the package.
|
|
2806
|
+
localId:
|
|
2807
|
+
type: string
|
|
2808
|
+
description: Newly minted workflow id on the target instance.
|
|
2809
|
+
name:
|
|
2810
|
+
type: string
|
|
2811
|
+
projectId:
|
|
2812
|
+
type: string
|
|
2813
|
+
parentFolderId:
|
|
2814
|
+
type: string
|
|
2815
|
+
nullable: true
|
|
2816
|
+
activeVersionId:
|
|
2817
|
+
type: string
|
|
2818
|
+
nullable: true
|
|
2819
|
+
description: |
|
|
2820
|
+
Published version on the target instance. Always null immediately after import.
|
|
2821
|
+
'400':
|
|
2822
|
+
$ref: '#/components/responses/badRequest'
|
|
2823
|
+
'401':
|
|
2824
|
+
$ref: '#/components/responses/unauthorized'
|
|
2825
|
+
'403':
|
|
2826
|
+
$ref: '#/components/responses/forbidden'
|
|
2827
|
+
'404':
|
|
2828
|
+
$ref: '#/components/responses/notFound'
|
|
2721
2829
|
components:
|
|
2722
2830
|
schemas:
|
|
2723
2831
|
audit:
|
|
@@ -3307,6 +3415,19 @@ components:
|
|
|
3307
3415
|
Security note: When a workflow is available in MCP, it can be discovered and executed
|
|
3308
3416
|
by any MCP client that has the appropriate API credentials for your n8n instance.
|
|
3309
3417
|
example: false
|
|
3418
|
+
customTelemetryTags:
|
|
3419
|
+
type: array
|
|
3420
|
+
items:
|
|
3421
|
+
type: object
|
|
3422
|
+
additionalProperties: false
|
|
3423
|
+
required:
|
|
3424
|
+
- key
|
|
3425
|
+
- value
|
|
3426
|
+
properties:
|
|
3427
|
+
key:
|
|
3428
|
+
type: string
|
|
3429
|
+
value:
|
|
3430
|
+
type: string
|
|
3310
3431
|
sharedWorkflow:
|
|
3311
3432
|
type: object
|
|
3312
3433
|
additionalProperties: false
|
|
@@ -3720,66 +3841,91 @@ components:
|
|
|
3720
3841
|
- `all`: Publish all imported workflows
|
|
3721
3842
|
- `published`: Publish only workflows that were published locally before import
|
|
3722
3843
|
example: published
|
|
3723
|
-
|
|
3724
|
-
type: object
|
|
3725
|
-
example:
|
|
3726
|
-
foo: bar
|
|
3727
|
-
importResult:
|
|
3844
|
+
sourceControlledFile:
|
|
3728
3845
|
type: object
|
|
3729
|
-
|
|
3846
|
+
required:
|
|
3847
|
+
- file
|
|
3848
|
+
- id
|
|
3849
|
+
- name
|
|
3850
|
+
- type
|
|
3851
|
+
- status
|
|
3852
|
+
- location
|
|
3853
|
+
- conflict
|
|
3854
|
+
- updatedAt
|
|
3730
3855
|
properties:
|
|
3731
|
-
|
|
3732
|
-
type:
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3856
|
+
file:
|
|
3857
|
+
type: string
|
|
3858
|
+
id:
|
|
3859
|
+
type: string
|
|
3860
|
+
name:
|
|
3861
|
+
type: string
|
|
3862
|
+
type:
|
|
3863
|
+
type: string
|
|
3864
|
+
enum:
|
|
3865
|
+
- credential
|
|
3866
|
+
- workflow
|
|
3867
|
+
- tags
|
|
3868
|
+
- variables
|
|
3869
|
+
- file
|
|
3870
|
+
- folders
|
|
3871
|
+
- project
|
|
3872
|
+
- datatable
|
|
3873
|
+
status:
|
|
3874
|
+
type: string
|
|
3875
|
+
enum:
|
|
3876
|
+
- new
|
|
3877
|
+
- modified
|
|
3878
|
+
- deleted
|
|
3879
|
+
- created
|
|
3880
|
+
- renamed
|
|
3881
|
+
- conflicted
|
|
3882
|
+
- ignored
|
|
3883
|
+
- staged
|
|
3884
|
+
- unknown
|
|
3885
|
+
location:
|
|
3886
|
+
type: string
|
|
3887
|
+
enum:
|
|
3888
|
+
- local
|
|
3889
|
+
- remote
|
|
3890
|
+
conflict:
|
|
3891
|
+
type: boolean
|
|
3892
|
+
updatedAt:
|
|
3893
|
+
type: string
|
|
3894
|
+
pushed:
|
|
3895
|
+
type: boolean
|
|
3896
|
+
isLocalPublished:
|
|
3897
|
+
type: boolean
|
|
3898
|
+
isRemoteArchived:
|
|
3899
|
+
type: boolean
|
|
3900
|
+
parentFolderId:
|
|
3901
|
+
type: string
|
|
3902
|
+
nullable: true
|
|
3903
|
+
folderPath:
|
|
3754
3904
|
type: array
|
|
3755
3905
|
items:
|
|
3756
|
-
type:
|
|
3757
|
-
|
|
3758
|
-
id:
|
|
3759
|
-
type: string
|
|
3760
|
-
name:
|
|
3761
|
-
type: string
|
|
3762
|
-
tags:
|
|
3906
|
+
type: string
|
|
3907
|
+
owner:
|
|
3763
3908
|
type: object
|
|
3909
|
+
required:
|
|
3910
|
+
- type
|
|
3911
|
+
- projectId
|
|
3912
|
+
- projectName
|
|
3764
3913
|
properties:
|
|
3765
|
-
|
|
3766
|
-
type:
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
type: string
|
|
3781
|
-
tagId:
|
|
3782
|
-
type: string
|
|
3914
|
+
type:
|
|
3915
|
+
type: string
|
|
3916
|
+
enum:
|
|
3917
|
+
- personal
|
|
3918
|
+
- team
|
|
3919
|
+
projectId:
|
|
3920
|
+
type: string
|
|
3921
|
+
projectName:
|
|
3922
|
+
type: string
|
|
3923
|
+
publishingError:
|
|
3924
|
+
type: string
|
|
3925
|
+
pullResult:
|
|
3926
|
+
type: array
|
|
3927
|
+
items:
|
|
3928
|
+
$ref: '#/components/schemas/sourceControlledFile'
|
|
3783
3929
|
project:
|
|
3784
3930
|
type: object
|
|
3785
3931
|
additionalProperties: false
|
|
@@ -4541,8 +4687,10 @@ components:
|
|
|
4541
4687
|
$ref: '#/components/schemas/audit'
|
|
4542
4688
|
Pull:
|
|
4543
4689
|
$ref: '#/components/schemas/pull'
|
|
4544
|
-
|
|
4545
|
-
$ref: '#/components/schemas/
|
|
4690
|
+
PullResult:
|
|
4691
|
+
$ref: '#/components/schemas/pullResult'
|
|
4692
|
+
SourceControlledFile:
|
|
4693
|
+
$ref: '#/components/schemas/sourceControlledFile'
|
|
4546
4694
|
UserList:
|
|
4547
4695
|
$ref: '#/components/schemas/userList'
|
|
4548
4696
|
User:
|
package/dist/requests.d.ts
CHANGED
|
@@ -243,6 +243,10 @@ export declare namespace ProjectRequest {
|
|
|
243
243
|
icon: ProjectIcon | null;
|
|
244
244
|
type: ProjectType;
|
|
245
245
|
description: string | null;
|
|
246
|
+
customTelemetryTags: Array<{
|
|
247
|
+
key: string;
|
|
248
|
+
value: string;
|
|
249
|
+
}>;
|
|
246
250
|
relations: ProjectRelationResponse[];
|
|
247
251
|
scopes: Scope[];
|
|
248
252
|
};
|
|
@@ -3,5 +3,5 @@ export declare const JOB_TYPE_NAME = "job";
|
|
|
3
3
|
export declare const COMMAND_PUBSUB_CHANNEL = "n8n.commands";
|
|
4
4
|
export declare const WORKER_RESPONSE_PUBSUB_CHANNEL = "n8n.worker-response";
|
|
5
5
|
export declare const MCP_RELAY_PUBSUB_CHANNEL = "n8n.mcp-relay";
|
|
6
|
-
export declare const SELF_SEND_COMMANDS: Set<"reload-license" | "restart-event-bus" | "reload-external-secrets-providers" | "community-package-install" | "community-package-update" | "community-package-uninstall" | "get-worker-id" | "get-worker-status" | "add-webhooks-triggers-and-pollers" | "remove-triggers-and-pollers" | "display-workflow-activation" | "display-workflow-deactivation" | "display-workflow-activation-error" | "relay-execution-lifecycle-event" | "relay-chat-stream-event" | "relay-chat-human-message" | "relay-chat-message-edit" | "clear-test-webhooks" | "reload-oidc-config" | "reload-saml-config" | "reload-overwrite-credentials" | "reload-sso-provisioning-configuration" | "reload-source-control-config" | "reload-mcp-registry" | "cancel-test-run" | "cancel-collection" | "agent-chat-integration-changed" | "agent-config-changed">;
|
|
7
|
-
export declare const IMMEDIATE_COMMANDS: Set<"reload-license" | "restart-event-bus" | "reload-external-secrets-providers" | "community-package-install" | "community-package-update" | "community-package-uninstall" | "get-worker-id" | "get-worker-status" | "add-webhooks-triggers-and-pollers" | "remove-triggers-and-pollers" | "display-workflow-activation" | "display-workflow-deactivation" | "display-workflow-activation-error" | "relay-execution-lifecycle-event" | "relay-chat-stream-event" | "relay-chat-human-message" | "relay-chat-message-edit" | "clear-test-webhooks" | "reload-oidc-config" | "reload-saml-config" | "reload-overwrite-credentials" | "reload-sso-provisioning-configuration" | "reload-source-control-config" | "reload-mcp-registry" | "cancel-test-run" | "cancel-collection" | "agent-chat-integration-changed" | "agent-config-changed">;
|
|
6
|
+
export declare const SELF_SEND_COMMANDS: Set<"reload-license" | "restart-event-bus" | "reload-external-secrets-providers" | "community-package-install" | "community-package-update" | "community-package-uninstall" | "get-worker-id" | "get-worker-status" | "add-webhooks-triggers-and-pollers" | "remove-triggers-and-pollers" | "display-workflow-activation" | "display-workflow-deactivation" | "display-workflow-activation-error" | "relay-execution-lifecycle-event" | "relay-chat-stream-event" | "relay-chat-human-message" | "relay-chat-message-edit" | "clear-test-webhooks" | "reload-oidc-config" | "reload-saml-config" | "reload-overwrite-credentials" | "reload-sso-provisioning-configuration" | "reload-source-control-config" | "reload-mcp-registry" | "cancel-test-run" | "cancel-collection" | "agent-chat-integration-changed" | "agent-config-changed" | "agent-tasks-changed">;
|
|
7
|
+
export declare const IMMEDIATE_COMMANDS: Set<"reload-license" | "restart-event-bus" | "reload-external-secrets-providers" | "community-package-install" | "community-package-update" | "community-package-uninstall" | "get-worker-id" | "get-worker-status" | "add-webhooks-triggers-and-pollers" | "remove-triggers-and-pollers" | "display-workflow-activation" | "display-workflow-deactivation" | "display-workflow-activation-error" | "relay-execution-lifecycle-event" | "relay-chat-stream-event" | "relay-chat-human-message" | "relay-chat-message-edit" | "clear-test-webhooks" | "reload-oidc-config" | "reload-saml-config" | "reload-overwrite-credentials" | "reload-sso-provisioning-configuration" | "reload-source-control-config" | "reload-mcp-registry" | "cancel-test-run" | "cancel-collection" | "agent-chat-integration-changed" | "agent-config-changed" | "agent-tasks-changed">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AgentIntegrationConfig, ChatHubMessageStatus, PushMessage, WorkerStatus } from '@n8n/api-types';
|
|
2
2
|
import type { IWorkflowBase, WorkflowActivateMode } from 'n8n-workflow';
|
|
3
3
|
export type PubSubCommandMap = {
|
|
4
4
|
'reload-license': never;
|
|
@@ -102,12 +102,15 @@ export type PubSubCommandMap = {
|
|
|
102
102
|
};
|
|
103
103
|
'agent-chat-integration-changed': {
|
|
104
104
|
agentId: string;
|
|
105
|
-
integration:
|
|
105
|
+
integration: AgentIntegrationConfig;
|
|
106
106
|
action: 'connect' | 'disconnect';
|
|
107
107
|
};
|
|
108
108
|
'agent-config-changed': {
|
|
109
109
|
agentId: string;
|
|
110
110
|
};
|
|
111
|
+
'agent-tasks-changed': {
|
|
112
|
+
agentId: string;
|
|
113
|
+
};
|
|
111
114
|
};
|
|
112
115
|
export type PubSubWorkerResponseMap = {
|
|
113
116
|
'response-to-get-worker-status': WorkerStatus & {
|
|
@@ -45,8 +45,9 @@ export declare namespace PubSub {
|
|
|
45
45
|
type CancelCollection = ToCommand<'cancel-collection'>;
|
|
46
46
|
type AgentChatIntegrationChanged = ToCommand<'agent-chat-integration-changed'>;
|
|
47
47
|
type AgentConfigChanged = ToCommand<'agent-config-changed'>;
|
|
48
|
+
type AgentTasksChanged = ToCommand<'agent-tasks-changed'>;
|
|
48
49
|
}
|
|
49
|
-
export type Command = Commands.ReloadLicense | Commands.RestartEventBus | Commands.ReloadExternalSecretsProviders | Commands.CommunityPackageInstall | Commands.CommunityPackageUpdate | Commands.CommunityPackageUninstall | Commands.GetWorkerId | Commands.GetWorkerStatus | Commands.AddWebhooksTriggersAndPollers | Commands.RemoveTriggersAndPollers | Commands.DisplayWorkflowActivation | Commands.DisplayWorkflowDeactivation | Commands.DisplayWorkflowActivationError | Commands.RelayExecutionLifecycleEvent | Commands.RelayChatStreamEvent | Commands.RelayChatHumanMessage | Commands.RelayChatMessageEdit | Commands.ClearTestWebhooks | Commands.ReloadOIDCConfiguration | Commands.ReloadSamlConfiguration | Commands.ReloadCredentialsOverwrites | Commands.ReloadSsoProvisioningConfiguration | Commands.ReloadSourceControlConfiguration | Commands.ReloadMcpRegistry | Commands.CancelTestRun | Commands.CancelCollection | Commands.AgentChatIntegrationChanged | Commands.AgentConfigChanged;
|
|
50
|
+
export type Command = Commands.ReloadLicense | Commands.RestartEventBus | Commands.ReloadExternalSecretsProviders | Commands.CommunityPackageInstall | Commands.CommunityPackageUpdate | Commands.CommunityPackageUninstall | Commands.GetWorkerId | Commands.GetWorkerStatus | Commands.AddWebhooksTriggersAndPollers | Commands.RemoveTriggersAndPollers | Commands.DisplayWorkflowActivation | Commands.DisplayWorkflowDeactivation | Commands.DisplayWorkflowActivationError | Commands.RelayExecutionLifecycleEvent | Commands.RelayChatStreamEvent | Commands.RelayChatHumanMessage | Commands.RelayChatMessageEdit | Commands.ClearTestWebhooks | Commands.ReloadOIDCConfiguration | Commands.ReloadSamlConfiguration | Commands.ReloadCredentialsOverwrites | Commands.ReloadSsoProvisioningConfiguration | Commands.ReloadSourceControlConfiguration | Commands.ReloadMcpRegistry | Commands.CancelTestRun | Commands.CancelCollection | Commands.AgentChatIntegrationChanged | Commands.AgentConfigChanged | Commands.AgentTasksChanged;
|
|
50
51
|
type _ToWorkerResponse<WorkerResponseKey extends keyof PubSubWorkerResponseMap> = {
|
|
51
52
|
senderId: string;
|
|
52
53
|
targets?: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChatPayload } from '@n8n/ai-workflow-builder/dist/workflow-builder-agent';
|
|
2
2
|
import { Logger } from '@n8n/backend-common';
|
|
3
|
-
import { GlobalConfig } from '@n8n/config';
|
|
3
|
+
import { GlobalConfig, SsrfProtectionConfig } from '@n8n/config';
|
|
4
4
|
import { InstanceSettings } from 'n8n-core';
|
|
5
5
|
import type { IUser } from 'n8n-workflow';
|
|
6
6
|
import { License } from '../license';
|
|
@@ -8,6 +8,7 @@ import { LoadNodesAndCredentials } from '../load-nodes-and-credentials';
|
|
|
8
8
|
import { WorkflowBuilderSessionRepository } from '../modules/workflow-builder';
|
|
9
9
|
import { Push } from '../push';
|
|
10
10
|
import { DynamicNodeParametersService } from '../services/dynamic-node-parameters.service';
|
|
11
|
+
import { SsrfProtectionService } from '../services/ssrf/ssrf-protection.service';
|
|
11
12
|
import { UrlService } from '../services/url.service';
|
|
12
13
|
import { Telemetry } from '../telemetry';
|
|
13
14
|
export declare class WorkflowBuilderService {
|
|
@@ -21,16 +22,18 @@ export declare class WorkflowBuilderService {
|
|
|
21
22
|
private readonly instanceSettings;
|
|
22
23
|
private readonly dynamicNodeParametersService;
|
|
23
24
|
private readonly sessionRepository;
|
|
25
|
+
private readonly ssrfConfig;
|
|
26
|
+
private readonly ssrfProtectionService;
|
|
24
27
|
private service;
|
|
25
28
|
private client;
|
|
26
29
|
private initPromise;
|
|
27
|
-
constructor(loadNodesAndCredentials: LoadNodesAndCredentials, license: License, config: GlobalConfig, logger: Logger, urlService: UrlService, push: Push, telemetry: Telemetry, instanceSettings: InstanceSettings, dynamicNodeParametersService: DynamicNodeParametersService, sessionRepository: WorkflowBuilderSessionRepository);
|
|
30
|
+
constructor(loadNodesAndCredentials: LoadNodesAndCredentials, license: License, config: GlobalConfig, logger: Logger, urlService: UrlService, push: Push, telemetry: Telemetry, instanceSettings: InstanceSettings, dynamicNodeParametersService: DynamicNodeParametersService, sessionRepository: WorkflowBuilderSessionRepository, ssrfConfig: SsrfProtectionConfig, ssrfProtectionService: SsrfProtectionService);
|
|
28
31
|
refreshNodeTypes(): Promise<void>;
|
|
29
32
|
private getService;
|
|
30
33
|
private initializeService;
|
|
31
34
|
private resolveBuiltinNodeDefinitionDirs;
|
|
32
35
|
chat(payload: ChatPayload, user: IUser, abortSignal?: AbortSignal): AsyncGenerator<import("@n8n/ai-workflow-builder").StreamOutput, void, unknown>;
|
|
33
|
-
getSessions(workflowId: string | undefined, user: IUser): Promise<{
|
|
36
|
+
getSessions(workflowId: string | undefined, user: IUser, isCodeBuilder?: boolean): Promise<{
|
|
34
37
|
sessions: import("@n8n/ai-workflow-builder").Session[];
|
|
35
38
|
}>;
|
|
36
39
|
getBuilderInstanceCredits(user: IUser): Promise<import("@n8n_io/ai-assistant-sdk").AiAssistantSDK.BuilderInstanceCreditsResponse>;
|
|
@@ -57,11 +57,12 @@ const load_nodes_and_credentials_1 = require("../load-nodes-and-credentials");
|
|
|
57
57
|
const workflow_builder_1 = require("../modules/workflow-builder");
|
|
58
58
|
const push_1 = require("../push");
|
|
59
59
|
const dynamic_node_parameters_service_1 = require("../services/dynamic-node-parameters.service");
|
|
60
|
+
const ssrf_protection_service_1 = require("../services/ssrf/ssrf-protection.service");
|
|
60
61
|
const url_service_1 = require("../services/url.service");
|
|
61
62
|
const telemetry_1 = require("../telemetry");
|
|
62
63
|
const workflow_execute_additional_data_1 = require("../workflow-execute-additional-data");
|
|
63
64
|
let WorkflowBuilderService = class WorkflowBuilderService {
|
|
64
|
-
constructor(loadNodesAndCredentials, license, config, logger, urlService, push, telemetry, instanceSettings, dynamicNodeParametersService, sessionRepository) {
|
|
65
|
+
constructor(loadNodesAndCredentials, license, config, logger, urlService, push, telemetry, instanceSettings, dynamicNodeParametersService, sessionRepository, ssrfConfig, ssrfProtectionService) {
|
|
65
66
|
this.loadNodesAndCredentials = loadNodesAndCredentials;
|
|
66
67
|
this.license = license;
|
|
67
68
|
this.config = config;
|
|
@@ -72,6 +73,8 @@ let WorkflowBuilderService = class WorkflowBuilderService {
|
|
|
72
73
|
this.instanceSettings = instanceSettings;
|
|
73
74
|
this.dynamicNodeParametersService = dynamicNodeParametersService;
|
|
74
75
|
this.sessionRepository = sessionRepository;
|
|
76
|
+
this.ssrfConfig = ssrfConfig;
|
|
77
|
+
this.ssrfProtectionService = ssrfProtectionService;
|
|
75
78
|
this.loadNodesAndCredentials.addPostProcessor(async () => await this.refreshNodeTypes());
|
|
76
79
|
}
|
|
77
80
|
async refreshNodeTypes() {
|
|
@@ -125,7 +128,10 @@ let WorkflowBuilderService = class WorkflowBuilderService {
|
|
|
125
128
|
};
|
|
126
129
|
await this.loadNodesAndCredentials.postProcessLoaders();
|
|
127
130
|
const { nodes: nodeTypeDescriptions } = await this.loadNodesAndCredentials.collectTypes();
|
|
128
|
-
|
|
131
|
+
const ssrfGuard = this.ssrfConfig.enabled
|
|
132
|
+
? this.ssrfProtectionService
|
|
133
|
+
: (0, ai_workflow_builder_1.createPassthroughSsrfGuard)();
|
|
134
|
+
this.service = new ai_workflow_builder_1.AiWorkflowBuilderService(nodeTypeDescriptions, this.sessionRepository, this.client, this.logger, this.instanceSettings.instanceId, this.urlService.getInstanceBaseUrl(), constants_1.N8N_VERSION, onCreditsUpdated, onTelemetryEvent, this.resolveBuiltinNodeDefinitionDirs(), resourceLocatorCallbackFactory, ssrfGuard);
|
|
129
135
|
return this.service;
|
|
130
136
|
}
|
|
131
137
|
resolveBuiltinNodeDefinitionDirs() {
|
|
@@ -148,9 +154,9 @@ let WorkflowBuilderService = class WorkflowBuilderService {
|
|
|
148
154
|
const service = await this.getService();
|
|
149
155
|
yield* service.chat(payload, user, abortSignal);
|
|
150
156
|
}
|
|
151
|
-
async getSessions(workflowId, user) {
|
|
157
|
+
async getSessions(workflowId, user, isCodeBuilder) {
|
|
152
158
|
const service = await this.getService();
|
|
153
|
-
const sessions = await service.getSessions(workflowId, user);
|
|
159
|
+
const sessions = await service.getSessions(workflowId, user, isCodeBuilder);
|
|
154
160
|
return sessions;
|
|
155
161
|
}
|
|
156
162
|
async getBuilderInstanceCredits(user) {
|
|
@@ -178,6 +184,8 @@ exports.WorkflowBuilderService = WorkflowBuilderService = __decorate([
|
|
|
178
184
|
telemetry_1.Telemetry,
|
|
179
185
|
n8n_core_1.InstanceSettings,
|
|
180
186
|
dynamic_node_parameters_service_1.DynamicNodeParametersService,
|
|
181
|
-
workflow_builder_1.WorkflowBuilderSessionRepository
|
|
187
|
+
workflow_builder_1.WorkflowBuilderSessionRepository,
|
|
188
|
+
config_1.SsrfProtectionConfig,
|
|
189
|
+
ssrf_protection_service_1.SsrfProtectionService])
|
|
182
190
|
], WorkflowBuilderService);
|
|
183
191
|
//# sourceMappingURL=ai-workflow-builder.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-workflow-builder.service.js","sourceRoot":"","sources":["../../src/services/ai-workflow-builder.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ai-workflow-builder.service.js","sourceRoot":"","sources":["../../src/services/ai-workflow-builder.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAgG;AAGhG,wDAA6C;AAC7C,wCAAiE;AACjE,gCAAkC;AAClC,+DAA6D;AAC7D,uCAAyB;AACzB,uCAA4C;AAC5C,2CAA6B;AAS7B,2CAA0C;AAC1C,uCAAoC;AACpC,6EAAuE;AACvE,iEAA8E;AAC9E,iCAA8B;AAC9B,gGAA0F;AAC1F,qFAAgF;AAChF,wDAAoD;AACpD,2CAAwC;AACxC,yFAA6D;AAOtD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAOlC,YACkB,uBAAgD,EAChD,OAAgB,EAChB,MAAoB,EACpB,MAAc,EACd,UAAsB,EACtB,IAAU,EACV,SAAoB,EACpB,gBAAkC,EAClC,4BAA0D,EAC1D,iBAAmD,EACnD,UAAgC,EAChC,qBAA4C;QAX5C,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,YAAO,GAAP,OAAO,CAAS;QAChB,WAAM,GAAN,MAAM,CAAc;QACpB,WAAM,GAAN,MAAM,CAAQ;QACd,eAAU,GAAV,UAAU,CAAY;QACtB,SAAI,GAAJ,IAAI,CAAM;QACV,cAAS,GAAT,SAAS,CAAW;QACpB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,iCAA4B,GAA5B,4BAA4B,CAA8B;QAC1D,sBAAiB,GAAjB,iBAAiB,CAAkC;QACnD,eAAU,GAAV,UA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;QACrF,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QACxC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QAC5E,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,IAAW;QAC1C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QACxC,OAAO,MAAM,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAAkB,EAAE,IAAW;QACjD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QACxC,MAAM,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,qBAAqB,CAC1B,UAAkB,EAClB,IAAW,EACX,SAAiB,EACjB,aAAsB;QAEtB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QACxC,OAAO,MAAM,OAAO,CAAC,qBAAqB,CAAC,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;IACxF,CAAC;CACD,CAAA;AA/LY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,YAAO,GAAE;qCASkC,oDAAuB;QACvC,iBAAO;QACR,qBAAY;QACZ,uBAAM;QACF,wBAAU;QAChB,WAAI;QACC,qBAAS;QACF,2BAAgB;QACJ,8DAA4B;QACvC,mDAAgC;QACvC,6BAAoB;QACT,+CAAqB;GAnBlD,sBAAsB,CA+LlC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
1
2
|
import type { AuthenticatedRequest, TokenGrant } from '@n8n/db';
|
|
2
3
|
import { ApiKeyRepository } from '@n8n/db';
|
|
3
4
|
import type { AuthStrategy, AuthStrategyOptions } from './auth-strategy.types';
|
|
@@ -5,7 +6,9 @@ import { JwtService } from './jwt.service';
|
|
|
5
6
|
export declare class ApiKeyAuthStrategy implements AuthStrategy {
|
|
6
7
|
private readonly apiKeyRepository;
|
|
7
8
|
private readonly jwtService;
|
|
8
|
-
|
|
9
|
+
private readonly logger;
|
|
10
|
+
constructor(apiKeyRepository: ApiKeyRepository, jwtService: JwtService, logger: Logger);
|
|
9
11
|
buildTokenGrant(token: string, options?: AuthStrategyOptions): Promise<TokenGrant | false | null>;
|
|
12
|
+
private touchLastUsedAt;
|
|
10
13
|
authenticate(req: AuthenticatedRequest): Promise<boolean | null>;
|
|
11
14
|
}
|
|
@@ -10,16 +10,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ApiKeyAuthStrategy = void 0;
|
|
13
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
14
|
+
const constants_1 = require("@n8n/constants");
|
|
13
15
|
const db_1 = require("@n8n/db");
|
|
14
16
|
const di_1 = require("@n8n/di");
|
|
15
17
|
const jsonwebtoken_1 = require("jsonwebtoken");
|
|
16
18
|
const jwt_service_1 = require("./jwt.service");
|
|
17
19
|
const public_api_key_service_1 = require("./public-api-key.service");
|
|
18
20
|
const API_KEY_HEADER = 'x-n8n-api-key';
|
|
21
|
+
const LAST_USED_AT_THROTTLE_MS = 1 * constants_1.Time.minutes.toMilliseconds;
|
|
19
22
|
let ApiKeyAuthStrategy = class ApiKeyAuthStrategy {
|
|
20
|
-
constructor(apiKeyRepository, jwtService) {
|
|
23
|
+
constructor(apiKeyRepository, jwtService, logger) {
|
|
21
24
|
this.apiKeyRepository = apiKeyRepository;
|
|
22
25
|
this.jwtService = jwtService;
|
|
26
|
+
this.logger = logger;
|
|
23
27
|
}
|
|
24
28
|
async buildTokenGrant(token, options) {
|
|
25
29
|
if (typeof token !== 'string' || !token)
|
|
@@ -54,12 +58,23 @@ let ApiKeyAuthStrategy = class ApiKeyAuthStrategy {
|
|
|
54
58
|
throw e;
|
|
55
59
|
}
|
|
56
60
|
}
|
|
61
|
+
this.touchLastUsedAt(apiKeyRecord.id, apiKeyRecord.lastUsedAt);
|
|
57
62
|
return {
|
|
58
63
|
scopes: apiKeyRecord.user.role.scopes.map((s) => s.slug),
|
|
59
64
|
subject: apiKeyRecord.user,
|
|
60
65
|
apiKeyScopes: apiKeyRecord.scopes ?? [],
|
|
61
66
|
};
|
|
62
67
|
}
|
|
68
|
+
touchLastUsedAt(apiKeyId, previous) {
|
|
69
|
+
const previousMs = previous?.getTime() ?? 0;
|
|
70
|
+
if (Date.now() - previousMs < LAST_USED_AT_THROTTLE_MS)
|
|
71
|
+
return;
|
|
72
|
+
void this.apiKeyRepository
|
|
73
|
+
.update({ id: apiKeyId }, { lastUsedAt: new Date() })
|
|
74
|
+
.catch((error) => {
|
|
75
|
+
this.logger.warn('Failed to update lastUsedAt on API key', { apiKeyId, error });
|
|
76
|
+
});
|
|
77
|
+
}
|
|
63
78
|
async authenticate(req) {
|
|
64
79
|
const providedApiKey = req.headers[API_KEY_HEADER];
|
|
65
80
|
if (typeof providedApiKey !== 'string' || !providedApiKey)
|
|
@@ -77,6 +92,7 @@ exports.ApiKeyAuthStrategy = ApiKeyAuthStrategy;
|
|
|
77
92
|
exports.ApiKeyAuthStrategy = ApiKeyAuthStrategy = __decorate([
|
|
78
93
|
(0, di_1.Service)(),
|
|
79
94
|
__metadata("design:paramtypes", [db_1.ApiKeyRepository,
|
|
80
|
-
jwt_service_1.JwtService
|
|
95
|
+
jwt_service_1.JwtService,
|
|
96
|
+
backend_common_1.Logger])
|
|
81
97
|
], ApiKeyAuthStrategy);
|
|
82
98
|
//# sourceMappingURL=api-key-auth.strategy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key-auth.strategy.js","sourceRoot":"","sources":["../../src/services/api-key-auth.strategy.ts"],"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KAAK,EAAE,EAAE;YAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,wCAAwC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,GAAyB;QAC3C,MAAM,cAAc,GAAG,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAEnD,IAAI,OAAO,cAAc,KAAK,QAAQ,IAAI,CAAC,cAAc;YAAE,OAAO,IAAI,CAAC;QAEvE,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;QAE9D,IAAI,UAAU,KAAK,KAAK,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;YACjD,OAAO,UAAU,CAAC;QACnB,CAAC;QAED,GAAG,CAAC,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC;QAC9B,GAAG,CAAC,UAAU,GAAG,UAAU,CAAC;QAE5B,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AApFY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,YAAO,GAAE;qCAG2B,qBAAgB;QACtB,wBAAU;QACd,uBAAM;GAJpB,kBAAkB,CAoF9B"}
|
|
@@ -24,6 +24,7 @@ export declare class OwnershipService {
|
|
|
24
24
|
setWorkflowProjectCacheEntry(workflowId: string, project: Project): Promise<Project>;
|
|
25
25
|
getPersonalProjectOwnerCached(projectId: string): Promise<User | null>;
|
|
26
26
|
invalidateProjectOwnerCacheByUserId(userId: string): Promise<void>;
|
|
27
|
+
invalidateWorkflowProjectCacheForProject(projectId: string): Promise<void>;
|
|
27
28
|
addOwnedByAndSharedWith(rawWorkflow: ListQueryDb.Workflow.WithSharing): ListQueryDb.Workflow.WithOwnedByAndSharedWith;
|
|
28
29
|
addOwnedByAndSharedWith(rawCredential: ListQueryDb.Credentials.WithSharing): ListQueryDb.Credentials.WithOwnedByAndSharedWith;
|
|
29
30
|
getInstanceOwner(): Promise<User>;
|
|
@@ -111,6 +111,13 @@ let OwnershipService = class OwnershipService {
|
|
|
111
111
|
await this.cacheService.deleteFromHash('project-owner', personalProject.id);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
async invalidateWorkflowProjectCacheForProject(projectId) {
|
|
115
|
+
const rows = await this.sharedWorkflowRepository.find({
|
|
116
|
+
where: { projectId, role: 'workflow:owner' },
|
|
117
|
+
select: ['workflowId'],
|
|
118
|
+
});
|
|
119
|
+
await Promise.all(rows.map(async ({ workflowId }) => await this.cacheService.deleteFromHash('workflow-project', workflowId)));
|
|
120
|
+
}
|
|
114
121
|
addOwnedByAndSharedWith(rawEntity) {
|
|
115
122
|
const shared = rawEntity.shared;
|
|
116
123
|
const entity = rawEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership.service.js","sourceRoot":"","sources":["../../src/services/ownership.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gCAWiB;AACjB,gCAAkC;AAClC,wDAA6C;AAC7C,kEAA8D;AAE9D,kFAA6E;AAC7E,0DAAsD;AACtD,yDAAqD;AACrD,sEAAmE;AACnE,gEAA6D;AAC7D,sDAA8B;AAGvB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC5B,YACS,YAA0B,EAC1B,YAA0B,EAC1B,MAAc,EACd,eAAgC,EAChC,yBAAoD,EACpD,iBAAoC,EACpC,wBAAkD,EAClD,cAA8B,EAC9B,kBAAsC;QARtC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,WAAM,GAAN,MAAM,CAAQ;QACd,oBAAe,GAAf,eAAe,CAAiB;QAChC,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,mBAAc,GAAd,cAAc,CAAgB;QAC9B,uBAAkB,GAAlB,kBAAkB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