n8n 2.23.2 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-persistence.js +4 -0
- 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 +36 -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/mcp-instructions.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +67 -6
- 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-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 +40 -32
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.service.js","sourceRoot":"","sources":["../../../../../src/public-api/v1/handlers/credentials/credentials.service.ts"],"names":[],"mappings":";;;AAsDA,4DAaC;AAED,sCAKC;AAMD,oDAWC;AAMD,wCAoCC;AAED,4CAwGC;AAED,4CAWC;AAED,8CAQC;AAOD,kDAYC;AASD,oCAkLC;AAldD,gCAAgG;AAChG,gCAAoC;AACpC,uCAAuC;AACvC,+CAOsB;AAEtB,2EAAuE;AACvE,yDAGkC;AAClC,0DAAsD;AACtD,qDAAiD;AACjD,mGAA8F;AAC9F,mIAA0H;AAE1H,6DAAqE;AAGrE,MAAa,8BAA+B,SAAQ,wBAAS;CAAG;AAAhE,wEAAgE;AAEhE,SAAS,qBAAqB,CAAC,OAAgB;IAC9C,OAAO,CACN,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;QACtB,OAAO,CAAC,KAAK,CACZ,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,CACxF,CACD,CAAC;AACH,CAAC;AAkBD,SAAgB,wBAAwB,CACvC,UAA6B;IAE7B,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,OAAO,MAAM;SACX,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,QAAQ,CAAC;SAClD,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACb,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE;QACjB,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI;QACrB,IAAI,EAAE,EAA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AAgB,GAAG;wBAClB,IAAI,EAAE,CAAC,cAAc,CAAC;qBACtB,CAAC;gBACH,CAAC;gBACD,4BAA4B,CAAC,aAAa,CAAC,GAAG;oBAC7C,EAAE,EAAE;wBACH,UAAU,EAAE;4BACX,CAAC,aAAa,CAAC,EAAE,gBAAgB;yBACjC;qBACD;oBACD,IAAI,EAAE;wBACL,KAAK,EAAE,EAAE;qBACT;oBACD,IAAI,EAAE;wBACL,KAAK,EAAE,EAAE;qBACT;iBACD,CAAC;gBACF,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACvC,CAAC;YAED,4BAA4B,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC5F,4BAA4B,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;gBAC5D,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;aAClC,CAAC,CAAC;YAEH,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC5E,CAAC;IACF,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IAExD,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;IAE/D,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAC9B,OAAO,UAAU,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,OAAO,UAAoC,CAAC;AAC7C,CAAC"}
|
|
1
|
+
{"version":3,"file":"credentials.service.js","sourceRoot":"","sources":["../../../../../src/public-api/v1/handlers/credentials/credentials.service.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,aAAa,CAAC,EAAE,gBAAgB;yBACjC;qBACD;oBACD,IAAI,EAAE;wBACL,KAAK,EAAE,EAAE;qBACT;oBACD,IAAI,EAAE;wBACL,KAAK,EAAE,EAAE;qBACT;iBACD,CAAC;gBACF,iBAAiB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACvC,CAAC;YAED,4BAA4B,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC5F,4BAA4B,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;gBAC5D,GAAG,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;aAClC,CAAC,CAAC;YAEH,cAAc,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC5E,CAAC;IACF,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IAExD,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC;IAE/D,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAC9B,OAAO,UAAU,CAAC,KAAK,CAAC;IACzB,CAAC;IAED,OAAO,UAAoC,CAAC;AAC7C,CAAC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { AuthenticatedRequest } from '@n8n/db';
|
|
2
|
+
import type { PackageRequest } from '../../../types';
|
|
2
3
|
import type { PublicAPIEndpoint } from '../../shared/handler.types';
|
|
3
4
|
type ExportWorkflowsRequest = AuthenticatedRequest<{}, {}, {
|
|
4
5
|
workflowIds: string[];
|
|
5
6
|
}>;
|
|
7
|
+
type ImportPackageRequest = PackageRequest.Import & {
|
|
8
|
+
files?: Express.Multer.File[];
|
|
9
|
+
};
|
|
6
10
|
type N8nPackagesHandlers = {
|
|
7
11
|
exportWorkflows: PublicAPIEndpoint<ExportWorkflowsRequest>;
|
|
12
|
+
importPackage: PublicAPIEndpoint<ImportPackageRequest>;
|
|
8
13
|
};
|
|
9
14
|
declare const n8nPackagesHandlers: N8nPackagesHandlers;
|
|
10
15
|
export = n8nPackagesHandlers;
|
|
@@ -5,6 +5,7 @@ const constants_1 = require("@n8n/constants");
|
|
|
5
5
|
const di_1 = require("@n8n/di");
|
|
6
6
|
const bad_request_error_1 = require("../../../../errors/response-errors/bad-request.error");
|
|
7
7
|
const not_found_error_1 = require("../../../../errors/response-errors/not-found.error");
|
|
8
|
+
const import_package_upload_1 = require("../../../../modules/n8n-packages/utils/import-package-upload");
|
|
8
9
|
const n8n_packages_service_1 = require("../../../../modules/n8n-packages/n8n-packages.service");
|
|
9
10
|
const global_middleware_1 = require("../../shared/middlewares/global.middleware");
|
|
10
11
|
const n8nPackagesHandlers = {
|
|
@@ -37,6 +38,27 @@ const n8nPackagesHandlers = {
|
|
|
37
38
|
});
|
|
38
39
|
},
|
|
39
40
|
],
|
|
41
|
+
importPackage: [
|
|
42
|
+
(0, global_middleware_1.isLicensed)(constants_1.LICENSE_FEATURES.N8N_PACKAGES),
|
|
43
|
+
(0, global_middleware_1.publicApiScope)('workflow:import'),
|
|
44
|
+
async (req, res) => {
|
|
45
|
+
if (!di_1.Container.get(config_1.GlobalConfig).publicApi.packagesEnabled) {
|
|
46
|
+
throw new not_found_error_1.NotFoundError('Not Found');
|
|
47
|
+
}
|
|
48
|
+
const packageFile = (0, import_package_upload_1.resolveImportPackageUpload)(req);
|
|
49
|
+
const payload = api_types_1.ImportPackageRequestDto.safeParse(req.body ?? {});
|
|
50
|
+
if (!payload.success) {
|
|
51
|
+
throw new bad_request_error_1.BadRequestError(payload.error.errors.map(({ message }) => message).join('; '));
|
|
52
|
+
}
|
|
53
|
+
const result = await di_1.Container.get(n8n_packages_service_1.N8nPackagesService).importPackage({
|
|
54
|
+
user: req.user,
|
|
55
|
+
projectId: payload.data.projectId,
|
|
56
|
+
folderId: payload.data.folderId,
|
|
57
|
+
packageBuffer: packageFile.buffer,
|
|
58
|
+
});
|
|
59
|
+
return res.status(200).json(result);
|
|
60
|
+
},
|
|
61
|
+
],
|
|
40
62
|
};
|
|
41
63
|
module.exports = n8nPackagesHandlers;
|
|
42
64
|
//# sourceMappingURL=n8n-packages.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"n8n-packages.handler.js","sourceRoot":"","sources":["../../../../../src/public-api/v1/handlers/n8n-packages/n8n-packages.handler.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"n8n-packages.handler.js","sourceRoot":"","sources":["../../../../../src/public-api/v1/handlers/n8n-packages/n8n-packages.handler.ts"],"names":[],"mappings":";AAAA,8CAAoF;AACpF,wCAA2C;AAC3C,8CAAkD;AAElD,gCAAoC;AAGpC,kFAA6E;AAC7E,8EAAyE;AACzE,8FAAgG;AAChG,sFAAiF;AAIjF,kFAAwF;AAaxF,MAAM,mBAAmB,GAAwB;IAChD,eAAe,EAAE;QAChB,IAAA,8BAAU,EAAC,4BAAgB,CAAC,YAAY,CAAC;QACzC,IAAA,kCAAc,EAAC,iBAAiB,CAAC;QACjC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;YAClB,IAAI,CAAC,cAAS,CAAC,GAAG,CAAC,qBAAY,CAAC,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC;gBAC5D,MAAM,IAAI,+BAAa,CAAC,WAAW,CAAC,CAAC;YACtC,CAAC;YAED,MAAM,OAAO,GAAG,qCAAyB,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC9D,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,mCAAe,CAAC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E,CAAC;gBAC5D,MAAM,IAAI,+BAAa,CAAC,WAAW,CAAC,CAAC;YACtC,CAAC;YAED,MAAM,WAAW,GAAG,IAAA,kDAA0B,EAAC,GAAG,CAAC,CAAC;YAEpD,MAAM,OAAO,GAAG,mCAAuB,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;YAClE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;gBACtB,MAAM,IAAI,mCAAe,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YAC1F,CAAC;YAED,MAAM,MAAM,GAAG,MAAM,cAAS,CAAC,GAAG,CAAC,yCAAkB,CAAC,CAAC,aAAa,CAAC;gBACpE,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,SAAS;gBACjC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ;gBAC/B,aAAa,EAAE,WAAW,CAAC,MAAM;aACjC,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrC,CAAC;KACD;CACD,CAAC;AAEF,iBAAS,mBAAmB,CAAC"}
|
|
@@ -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,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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
|
}
|