n8n 2.14.2 → 2.16.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/abstract-server.js +1 -1
- package/dist/abstract-server.js.map +1 -1
- package/dist/active-workflow-manager.js +25 -12
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/auth/auth.service.js +1 -0
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.js +15 -7
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/execute-batch.js +2 -0
- package/dist/commands/execute-batch.js.map +1 -1
- package/dist/commands/execute.js +2 -0
- package/dist/commands/execute.js.map +1 -1
- package/dist/commands/start.js +1 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/webhook.js +1 -0
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.js +1 -0
- package/dist/commands/worker.js.map +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/controllers/ai.controller.js +2 -2
- package/dist/controllers/ai.controller.js.map +1 -1
- package/dist/controllers/binary-data.controller.js +1 -1
- package/dist/controllers/binary-data.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.js +2 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/me.controller.d.ts +3 -1
- package/dist/controllers/me.controller.js +6 -3
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/controllers/project.controller.d.ts +2 -0
- package/dist/credentials/credentials.controller.js +1 -1
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +7 -4
- package/dist/credentials/credentials.service.js +78 -17
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.js +7 -1
- package/dist/credentials-helper.js.map +1 -1
- package/dist/errors/http-error-classifier.d.ts +31 -0
- package/dist/errors/http-error-classifier.js +60 -0
- package/dist/errors/http-error-classifier.js.map +1 -0
- package/dist/errors/http-error-serializers.d.ts +18 -0
- package/dist/errors/http-error-serializers.js +64 -0
- package/dist/errors/http-error-serializers.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 +22 -0
- package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
- package/dist/events/relays/log-streaming.event-relay.js +21 -0
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +11 -8
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +4 -1
- package/dist/executions/execution-persistence.js +16 -2
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution.service.js +2 -1
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/executions.controller.d.ts +3 -5
- package/dist/executions/executions.controller.js +17 -9
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-workflow.service.d.ts +1 -0
- package/dist/modules/chat-hub/chat-hub-workflow.service.js +18 -2
- package/dist/modules/chat-hub/chat-hub-workflow.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.types.d.ts +5 -0
- package/dist/modules/chat-hub/chat-hub.types.js +1 -0
- package/dist/modules/chat-hub/chat-hub.types.js.map +1 -1
- package/dist/modules/chat-hub/context-limits.js +10 -0
- package/dist/modules/chat-hub/context-limits.js.map +1 -1
- package/dist/modules/community-packages/community-node-types-utils.d.ts +2 -2
- package/dist/modules/community-packages/community-node-types-utils.js +4 -4
- package/dist/modules/community-packages/community-node-types-utils.js.map +1 -1
- package/dist/modules/community-packages/community-packages.controller.d.ts +6 -19
- package/dist/modules/community-packages/community-packages.controller.js +8 -231
- package/dist/modules/community-packages/community-packages.controller.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.d.ts +32 -0
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +282 -0
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -0
- package/dist/modules/community-packages/community-packages.service.js +8 -8
- package/dist/modules/community-packages/community-packages.service.js.map +1 -1
- package/dist/modules/community-packages/npm-utils.d.ts +4 -0
- package/dist/modules/community-packages/npm-utils.js +4 -0
- package/dist/modules/community-packages/npm-utils.js.map +1 -1
- package/dist/modules/community-packages/strapi-utils.d.ts +1 -1
- package/dist/modules/data-table/data-table-proxy.service.d.ts +44 -2
- package/dist/modules/data-table/data-table-proxy.service.js +86 -2
- package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/index.d.ts +1 -0
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/index.js +1 -0
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/index.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/slack-signature-extractor.d.ts +11 -0
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/slack-signature-extractor.js +88 -0
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/slack-signature-extractor.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.d.ts +28 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.js +158 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/slack-signature-identifier.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/index.d.ts +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/index.js +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/index.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/slack-credential-resolver.d.ts +50 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/slack-credential-resolver.js +118 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/slack-credential-resolver.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/services/resolver-config-expression.service.js +10 -4
- package/dist/modules/dynamic-credentials.ee/services/resolver-config-expression.service.js.map +1 -1
- package/dist/modules/instance-ai/compaction.service.d.ts +19 -0
- package/dist/modules/instance-ai/compaction.service.js +213 -0
- package/dist/modules/instance-ai/compaction.service.js.map +1 -0
- package/dist/modules/instance-ai/entities/index.d.ts +7 -0
- package/dist/modules/instance-ai/entities/index.js +18 -0
- package/dist/modules/instance-ai/entities/index.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-iteration-log.entity.d.ts +7 -0
- package/dist/modules/instance-ai/entities/instance-ai-iteration-log.entity.js +38 -0
- package/dist/modules/instance-ai/entities/instance-ai-iteration-log.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-message.entity.d.ts +9 -0
- package/dist/modules/instance-ai/entities/instance-ai-message.entity.js +47 -0
- package/dist/modules/instance-ai/entities/instance-ai-message.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.d.ts +33 -0
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js +145 -0
- package/dist/modules/instance-ai/entities/instance-ai-observational-memory.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-resource.entity.d.ts +6 -0
- package/dist/modules/instance-ai/entities/instance-ai-resource.entity.js +33 -0
- package/dist/modules/instance-ai/entities/instance-ai-resource.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.d.ts +8 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js +43 -0
- package/dist/modules/instance-ai/entities/instance-ai-run-snapshot.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.d.ts +7 -0
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js +38 -0
- package/dist/modules/instance-ai/entities/instance-ai-thread.entity.js.map +1 -0
- package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.d.ts +8 -0
- package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.js +41 -0
- package/dist/modules/instance-ai/entities/instance-ai-workflow-snapshot.entity.js.map +1 -0
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.d.ts +19 -0
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js +98 -0
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -0
- package/dist/modules/instance-ai/filesystem/index.d.ts +4 -0
- package/dist/modules/instance-ai/filesystem/index.js +10 -0
- package/dist/modules/instance-ai/filesystem/index.js.map +1 -0
- package/dist/modules/instance-ai/filesystem/local-fs-provider.d.ts +26 -0
- package/dist/modules/instance-ai/filesystem/local-fs-provider.js +321 -0
- package/dist/modules/instance-ai/filesystem/local-fs-provider.js.map +1 -0
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.d.ts +29 -0
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js +137 -0
- package/dist/modules/instance-ai/filesystem/local-gateway-registry.js.map +1 -0
- package/dist/modules/instance-ai/filesystem/local-gateway.d.ts +35 -0
- package/dist/modules/instance-ai/filesystem/local-gateway.js +99 -0
- package/dist/modules/instance-ai/filesystem/local-gateway.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.d.ts +36 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.js +265 -0
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +55 -0
- package/dist/modules/instance-ai/instance-ai-settings.service.js +430 -0
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +86 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +1731 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +102 -0
- package/dist/modules/instance-ai/instance-ai.controller.js +613 -0
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.module.d.ts +13 -0
- package/dist/modules/instance-ai/instance-ai.module.js +119 -0
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.service.d.ts +132 -0
- package/dist/modules/instance-ai/instance-ai.service.js +1674 -0
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -0
- package/dist/modules/instance-ai/internal-messages.d.ts +2 -0
- package/dist/modules/instance-ai/internal-messages.js +11 -0
- package/dist/modules/instance-ai/internal-messages.js.map +1 -0
- package/dist/modules/instance-ai/message-parser.d.ts +12 -0
- package/dist/modules/instance-ai/message-parser.js +171 -0
- package/dist/modules/instance-ai/message-parser.js.map +1 -0
- package/dist/modules/instance-ai/node-definition-resolver.d.ts +19 -0
- package/dist/modules/instance-ai/node-definition-resolver.js +290 -0
- package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -0
- package/dist/modules/instance-ai/repositories/index.d.ts +7 -0
- package/dist/modules/instance-ai/repositories/index.js +18 -0
- package/dist/modules/instance-ai/repositories/index.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-iteration-log.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-iteration-log.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-iteration-log.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-observational-memory.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-resource.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-resource.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-resource.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-thread.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-thread.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-thread.repository.js.map +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.d.ts +5 -0
- package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.js +26 -0
- package/dist/modules/instance-ai/repositories/instance-ai-workflow-snapshot.repository.js.map +1 -0
- package/dist/modules/instance-ai/snapshot-pruning.service.d.ts +14 -0
- package/dist/modules/instance-ai/snapshot-pruning.service.js +77 -0
- package/dist/modules/instance-ai/snapshot-pruning.service.js.map +1 -0
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.d.ts +9 -0
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.js +45 -0
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.js.map +1 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +10 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +74 -0
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -0
- package/dist/modules/instance-ai/storage/index.d.ts +5 -0
- package/dist/modules/instance-ai/storage/index.js +14 -0
- package/dist/modules/instance-ai/storage/index.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-composite-store.d.ts +9 -0
- package/dist/modules/instance-ai/storage/typeorm-composite-store.js +33 -0
- package/dist/modules/instance-ai/storage/typeorm-composite-store.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.d.ts +96 -0
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js +853 -0
- package/dist/modules/instance-ai/storage/typeorm-memory-storage.js.map +1 -0
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.d.ts +44 -0
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js +156 -0
- package/dist/modules/instance-ai/storage/typeorm-workflows-storage.js.map +1 -0
- package/dist/modules/instance-ai/web-research/brave-search.d.ts +10 -0
- package/dist/modules/instance-ai/web-research/brave-search.js +43 -0
- package/dist/modules/instance-ai/web-research/brave-search.js.map +1 -0
- package/dist/modules/instance-ai/web-research/cache.d.ts +13 -0
- package/dist/modules/instance-ai/web-research/cache.js +43 -0
- package/dist/modules/instance-ai/web-research/cache.js.map +1 -0
- package/dist/modules/instance-ai/web-research/fetch-and-extract.d.ts +8 -0
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js +231 -0
- package/dist/modules/instance-ai/web-research/fetch-and-extract.js.map +1 -0
- package/dist/modules/instance-ai/web-research/index.d.ts +7 -0
- package/dist/modules/instance-ai/web-research/index.js +16 -0
- package/dist/modules/instance-ai/web-research/index.js.map +1 -0
- package/dist/modules/instance-ai/web-research/searxng-search.d.ts +6 -0
- package/dist/modules/instance-ai/web-research/searxng-search.js +39 -0
- package/dist/modules/instance-ai/web-research/searxng-search.js.map +1 -0
- package/dist/modules/instance-ai/web-research/ssrf-guard.d.ts +1 -0
- package/dist/modules/instance-ai/web-research/ssrf-guard.js +85 -0
- package/dist/modules/instance-ai/web-research/ssrf-guard.js.map +1 -0
- package/dist/modules/instance-ai/web-research/summarize-content.d.ts +4 -0
- package/dist/modules/instance-ai/web-research/summarize-content.js +34 -0
- package/dist/modules/instance-ai/web-research/summarize-content.js.map +1 -0
- package/dist/modules/instance-registry/instance-registry.types.d.ts +1 -0
- package/dist/modules/instance-registry/instance-registry.types.js +2 -1
- package/dist/modules/instance-registry/instance-registry.types.js.map +1 -1
- package/dist/modules/instance-registry/storage/instance-storage.interface.d.ts +1 -0
- package/dist/modules/instance-registry/storage/lua-scripts.d.ts +4 -0
- package/dist/modules/instance-registry/storage/lua-scripts.js +39 -0
- package/dist/modules/instance-registry/storage/lua-scripts.js.map +1 -0
- package/dist/modules/instance-registry/storage/memory-storage.d.ts +16 -0
- package/dist/modules/instance-registry/storage/memory-storage.js +42 -0
- package/dist/modules/instance-registry/storage/memory-storage.js.map +1 -0
- package/dist/modules/instance-registry/storage/redis-instance-storage.d.ts +25 -0
- package/dist/modules/instance-registry/storage/redis-instance-storage.js +185 -0
- package/dist/modules/instance-registry/storage/redis-instance-storage.js.map +1 -0
- package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
- package/dist/modules/mcp/mcp-oauth-service.d.ts +1 -1
- package/dist/modules/mcp/mcp-oauth-service.js +5 -1
- package/dist/modules/mcp/mcp-oauth-service.js.map +1 -1
- package/dist/modules/mcp/mcp.errors.js +1 -1
- package/dist/modules/mcp/mcp.oauth-clients.controller.js +1 -1
- package/dist/modules/mcp/mcp.oauth-clients.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +5 -1
- package/dist/modules/mcp/mcp.service.js +33 -5
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.d.ts +13 -0
- package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.js +69 -0
- package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.js.map +1 -0
- package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.d.ts +12 -0
- package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.js +77 -0
- package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.js.map +1 -0
- package/dist/modules/mcp/tools/data-table/create-data-table.tool.d.ts +21 -0
- package/dist/modules/mcp/tools/data-table/create-data-table.tool.js +92 -0
- package/dist/modules/mcp/tools/data-table/create-data-table.tool.js.map +1 -0
- package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.d.ts +12 -0
- package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.js +60 -0
- package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.js.map +1 -0
- package/dist/modules/mcp/tools/data-table/index.d.ts +7 -0
- package/dist/modules/mcp/tools/data-table/index.js +18 -0
- package/dist/modules/mcp/tools/data-table/index.js.map +1 -0
- package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.d.ts +13 -0
- package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.js +70 -0
- package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.js.map +1 -0
- package/dist/modules/mcp/tools/data-table/rename-data-table.tool.d.ts +12 -0
- package/dist/modules/mcp/tools/data-table/rename-data-table.tool.js +60 -0
- package/dist/modules/mcp/tools/data-table/rename-data-table.tool.js.map +1 -0
- package/dist/modules/mcp/tools/data-table/search-data-tables.tool.d.ts +12 -0
- package/dist/modules/mcp/tools/data-table/search-data-tables.tool.js +93 -0
- package/dist/modules/mcp/tools/data-table/search-data-tables.tool.js.map +1 -0
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +3 -4
- package/dist/modules/mcp/tools/execute-workflow.tool.js +15 -66
- package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/execution-utils.d.ts +5 -0
- package/dist/modules/mcp/tools/execution-utils.js +45 -0
- package/dist/modules/mcp/tools/execution-utils.js.map +1 -0
- package/dist/modules/mcp/tools/get-execution.tool.js +4 -8
- package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
- package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.d.ts +31 -0
- package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js +165 -0
- package/dist/modules/mcp/tools/prepare-workflow-pin-data.tool.js.map +1 -0
- package/dist/modules/mcp/tools/schemas.d.ts +73 -2
- package/dist/modules/mcp/tools/schemas.js +41 -1
- package/dist/modules/mcp/tools/schemas.js.map +1 -1
- package/dist/modules/mcp/tools/search-folders.tool.js +2 -7
- package/dist/modules/mcp/tools/search-folders.tool.js.map +1 -1
- package/dist/modules/mcp/tools/search-projects.tool.js +2 -7
- package/dist/modules/mcp/tools/search-projects.tool.js.map +1 -1
- package/dist/modules/mcp/tools/search-workflows.tool.js +2 -7
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/test-workflow.tool.d.ts +31 -0
- package/dist/modules/mcp/tools/test-workflow.tool.js +178 -0
- package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +1 -0
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.d.ts +2 -1
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js +15 -0
- package/dist/modules/mcp/tools/workflow-builder/credentials-auto-assign.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js +1 -37
- package/dist/modules/mcp/tools/workflow-builder/get-suggested-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js +1 -37
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js +1 -37
- package/dist/modules/mcp/tools/workflow-builder/search-workflow-nodes.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +1 -0
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-builder-tools.service.d.ts +17 -0
- package/dist/modules/mcp/tools/workflow-builder/workflow-builder-tools.service.js +48 -0
- package/dist/modules/mcp/tools/workflow-builder/workflow-builder-tools.service.js.map +1 -1
- package/dist/modules/otel/handlers/interfaces.d.ts +5 -0
- package/dist/modules/otel/handlers/interfaces.js +3 -0
- package/dist/modules/otel/handlers/interfaces.js.map +1 -0
- package/dist/modules/otel/handlers/node-end.handler.d.ts +8 -0
- package/dist/modules/otel/handlers/node-end.handler.js +71 -0
- package/dist/modules/otel/handlers/node-end.handler.js.map +1 -0
- package/dist/modules/otel/handlers/node-start.handler.d.ts +7 -0
- package/dist/modules/otel/handlers/node-start.handler.js +37 -0
- package/dist/modules/otel/handlers/node-start.handler.js.map +1 -0
- package/dist/modules/otel/handlers/workflow-end.handler.d.ts +8 -0
- package/dist/modules/otel/handlers/workflow-end.handler.js +73 -0
- package/dist/modules/otel/handlers/workflow-end.handler.js.map +1 -0
- package/dist/modules/otel/handlers/workflow-start.handler.d.ts +7 -0
- package/dist/modules/otel/handlers/workflow-start.handler.js +29 -0
- package/dist/modules/otel/handlers/workflow-start.handler.js.map +1 -0
- package/dist/modules/otel/n8n-instrumentation.d.ts +21 -0
- package/dist/modules/otel/n8n-instrumentation.js +103 -0
- package/dist/modules/otel/n8n-instrumentation.js.map +1 -0
- package/dist/modules/otel/otel.config.d.ts +10 -0
- package/dist/modules/otel/otel.config.js +62 -0
- package/dist/modules/otel/otel.config.js.map +1 -0
- package/dist/modules/otel/otel.constants.d.ts +22 -0
- package/dist/modules/otel/otel.constants.js +27 -0
- package/dist/modules/otel/otel.constants.js.map +1 -0
- package/dist/modules/otel/otel.module.d.ts +5 -0
- package/dist/modules/otel/otel.module.js +80 -0
- package/dist/modules/otel/otel.module.js.map +1 -0
- package/dist/modules/otel/otel.service.d.ts +18 -0
- package/dist/modules/otel/otel.service.js +120 -0
- package/dist/modules/otel/otel.service.js.map +1 -0
- package/dist/modules/otel/span-registry.d.ts +14 -0
- package/dist/modules/otel/span-registry.js +58 -0
- package/dist/modules/otel/span-registry.js.map +1 -0
- package/dist/modules/provisioning.ee/provisioning.module.js +1 -0
- package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +13 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +145 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.d.ts +18 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js +105 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js.map +1 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.d.ts +34 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js +221 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js.map +1 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.validation.d.ts +3 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.validation.js +29 -0
- package/dist/modules/provisioning.ee/role-mapping-rule.validation.js.map +1 -0
- package/dist/modules/redaction/executions/execution-redaction.service.d.ts +3 -2
- package/dist/modules/redaction/executions/execution-redaction.service.js +5 -1
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/redaction/redaction.module.js +0 -6
- package/dist/modules/redaction/redaction.module.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +6 -0
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/types/source-control-preferences.js +3 -0
- package/dist/modules/source-control.ee/types/source-control-preferences.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +4 -1
- package/dist/modules/sso-oidc/oidc.controller.ee.js +39 -3
- package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.d.ts +14 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js +86 -8
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/sso-oidc/views/oidc-test-result.d.ts +5 -0
- package/dist/modules/sso-oidc/views/oidc-test-result.js +58 -0
- package/dist/modules/sso-oidc/views/oidc-test-result.js.map +1 -0
- package/dist/modules/sso-saml/saml-helpers.d.ts +1 -0
- package/dist/modules/sso-saml/saml-helpers.js +2 -0
- package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
- package/dist/modules/sso-saml/saml.service.ee.d.ts +4 -1
- package/dist/modules/sso-saml/saml.service.ee.js +13 -7
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/controllers/embed-auth.controller.d.ts +15 -0
- package/dist/modules/token-exchange/controllers/embed-auth.controller.js +67 -0
- package/dist/modules/token-exchange/controllers/embed-auth.controller.js.map +1 -0
- package/dist/modules/token-exchange/database/entities/token-exchange-jti.entity.d.ts +5 -0
- package/dist/modules/token-exchange/database/entities/token-exchange-jti.entity.js +33 -0
- package/dist/modules/token-exchange/database/entities/token-exchange-jti.entity.js.map +1 -0
- package/dist/modules/token-exchange/database/repositories/token-exchange-jti.repository.d.ts +10 -0
- package/dist/modules/token-exchange/database/repositories/token-exchange-jti.repository.js +106 -0
- package/dist/modules/token-exchange/database/repositories/token-exchange-jti.repository.js.map +1 -0
- package/dist/modules/token-exchange/services/identity-resolution.service.d.ts +5 -0
- package/dist/modules/token-exchange/services/identity-resolution.service.js +21 -0
- package/dist/modules/token-exchange/services/identity-resolution.service.js.map +1 -0
- package/dist/modules/token-exchange/services/jti-cleanup.service.d.ts +18 -0
- package/dist/modules/token-exchange/services/jti-cleanup.service.js +90 -0
- package/dist/modules/token-exchange/services/jti-cleanup.service.js.map +1 -0
- package/dist/modules/token-exchange/services/jti-store.service.d.ts +6 -0
- package/dist/modules/token-exchange/services/jti-store.service.js +30 -0
- package/dist/modules/token-exchange/services/jti-store.service.js.map +1 -0
- package/dist/modules/token-exchange/services/token-exchange.service.d.ts +17 -0
- package/dist/modules/token-exchange/services/token-exchange.service.js +93 -0
- package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -0
- package/dist/modules/token-exchange/services/trusted-key.service.d.ts +13 -0
- package/dist/modules/token-exchange/services/trusted-key.service.js +123 -0
- package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -0
- package/dist/modules/token-exchange/token-exchange.config.d.ts +7 -0
- package/dist/modules/token-exchange/token-exchange.config.js +47 -0
- package/dist/modules/token-exchange/token-exchange.config.js.map +1 -0
- package/dist/modules/token-exchange/token-exchange.controller.d.ts +9 -0
- package/dist/modules/token-exchange/token-exchange.controller.js +103 -0
- package/dist/modules/token-exchange/token-exchange.controller.js.map +1 -0
- package/dist/modules/token-exchange/token-exchange.module.d.ts +5 -0
- package/dist/modules/token-exchange/token-exchange.module.js +74 -0
- package/dist/modules/token-exchange/token-exchange.module.js.map +1 -0
- package/dist/modules/token-exchange/token-exchange.schemas.d.ts +131 -0
- package/dist/modules/token-exchange/token-exchange.schemas.js +60 -0
- package/dist/modules/token-exchange/token-exchange.schemas.js.map +1 -0
- package/dist/modules/token-exchange/token-exchange.service.d.ts +9 -0
- package/dist/modules/token-exchange/token-exchange.service.js +66 -0
- package/dist/modules/token-exchange/token-exchange.service.js.map +1 -0
- package/dist/modules/token-exchange/token-exchange.types.d.ts +50 -0
- package/dist/modules/token-exchange/token-exchange.types.js +3 -0
- package/dist/modules/token-exchange/token-exchange.types.js.map +1 -0
- package/dist/modules/workflow-builder/workflow-builder-session.entity.d.ts +4 -0
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js +8 -0
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +1 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js +14 -2
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +26 -3
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/modules/workflow-index/workflow-index.service.d.ts +1 -0
- package/dist/modules/workflow-index/workflow-index.service.js +15 -3
- package/dist/modules/workflow-index/workflow-index.service.js.map +1 -1
- package/dist/posthog/index.d.ts +1 -0
- package/dist/posthog/index.js +32 -8
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/index.js +5 -5
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/types.d.ts +17 -0
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.d.ts +18 -0
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.js +71 -0
- package/dist/public-api/v1/handlers/community-packages/community-packages.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/community-packages/community-packages.mapper.d.ts +27 -0
- package/dist/public-api/v1/handlers/community-packages/community-packages.mapper.js +35 -0
- package/dist/public-api/v1/handlers/community-packages/community-packages.mapper.js.map +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js +6 -5
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.service.d.ts +2 -2
- package/dist/public-api/v1/handlers/credentials/credentials.service.js +3 -6
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js +48 -4
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +8 -0
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +44 -0
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +262 -3
- package/dist/public-api/v1/public-api-error-response.d.ts +2 -0
- package/dist/public-api/v1/public-api-error-response.js +11 -0
- package/dist/public-api/v1/public-api-error-response.js.map +1 -0
- package/dist/push/abstract.push.d.ts +1 -0
- package/dist/push/abstract.push.js +3 -0
- package/dist/push/abstract.push.js.map +1 -1
- package/dist/push/sse.push.js +5 -1
- package/dist/push/sse.push.js.map +1 -1
- package/dist/push/websocket.push.js +3 -1
- package/dist/push/websocket.push.js.map +1 -1
- package/dist/response-helper.js +6 -29
- package/dist/response-helper.js.map +1 -1
- package/dist/scaling/job-processor.js +3 -0
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/subscriber.service.d.ts +2 -0
- package/dist/scaling/pubsub/subscriber.service.js +17 -8
- package/dist/scaling/pubsub/subscriber.service.js.map +1 -1
- package/dist/scaling/redis/redis.types.d.ts +1 -1
- package/dist/scaling/scaling.service.js +1 -2
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scaling/worker-server.js +1 -1
- package/dist/scaling/worker-server.js.map +1 -1
- package/dist/services/ai-workflow-builder.service.d.ts +2 -2
- package/dist/services/ai-workflow-builder.service.js +5 -8
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/ai.service.d.ts +4 -0
- package/dist/services/ai.service.js +20 -18
- package/dist/services/ai.service.js.map +1 -1
- package/dist/services/auth-strategy.registry.d.ts +7 -0
- package/dist/services/auth-strategy.registry.js +32 -0
- package/dist/services/auth-strategy.registry.js.map +1 -0
- package/dist/services/auth-strategy.types.d.ts +4 -0
- package/dist/services/auth-strategy.types.js +3 -0
- package/dist/services/auth-strategy.types.js.map +1 -0
- package/dist/services/credentials-tester.service.js +2 -0
- package/dist/services/credentials-tester.service.js.map +1 -1
- package/dist/services/db-clock.service.d.ts +10 -0
- package/dist/services/db-clock.service.js +48 -0
- package/dist/services/db-clock.service.js.map +1 -0
- package/dist/services/frontend.service.js +4 -1
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/utils/health-endpoint.util.d.ts +2 -1
- package/dist/utils/health-endpoint.util.js +11 -3
- package/dist/utils/health-endpoint.util.js.map +1 -1
- package/dist/wait-tracker.d.ts +6 -2
- package/dist/wait-tracker.js +94 -63
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/live-webhooks.js +24 -18
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/test-webhooks.js +96 -78
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-forms.js +3 -1
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.js +27 -21
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +21 -6
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-last-node-response-extractor.d.ts +5 -2
- package/dist/webhooks/webhook-last-node-response-extractor.js +5 -8
- package/dist/webhooks/webhook-last-node-response-extractor.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/workflows/workflow-creation.service.js +4 -0
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-execution.service.js +1 -1
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.js +1 -0
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +3 -3
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +6 -1
- package/dist/workflows/workflow.service.js +34 -7
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +2 -2
- package/package.json +39 -29
|
@@ -27,5 +27,5 @@ export type CommunityNodesMetadata = Pick<StrapiCommunityNodeType, 'id' | 'name'
|
|
|
27
27
|
export declare function getCommunityNodeTypes(environment: 'staging' | 'production', qs: {
|
|
28
28
|
filters?: StrapiFilters;
|
|
29
29
|
fields?: string[];
|
|
30
|
-
} | undefined,
|
|
31
|
-
export declare function getCommunityNodesMetadata(environment: 'staging' | 'production',
|
|
30
|
+
} | undefined, maxAiNodeSdk: number): Promise<StrapiCommunityNodeType[]>;
|
|
31
|
+
export declare function getCommunityNodesMetadata(environment: 'staging' | 'production', maxAiNodeSdk: number): Promise<CommunityNodesMetadata[]>;
|
|
@@ -10,11 +10,11 @@ function getUrl(environment) {
|
|
|
10
10
|
? N8N_VETTED_NODE_TYPES_PRODUCTION_URL
|
|
11
11
|
: N8N_VETTED_NODE_TYPES_STAGING_URL;
|
|
12
12
|
}
|
|
13
|
-
async function getCommunityNodeTypes(environment, qs = {},
|
|
13
|
+
async function getCommunityNodeTypes(environment, qs = {}, maxAiNodeSdk) {
|
|
14
14
|
const url = getUrl(environment);
|
|
15
15
|
const params = {
|
|
16
16
|
...qs,
|
|
17
|
-
|
|
17
|
+
maxAiNodeSdk,
|
|
18
18
|
pagination: {
|
|
19
19
|
page: 1,
|
|
20
20
|
pageSize: 25,
|
|
@@ -22,11 +22,11 @@ async function getCommunityNodeTypes(environment, qs = {}, maxAiNodeSdkVersion)
|
|
|
22
22
|
};
|
|
23
23
|
return await (0, strapi_utils_1.paginatedRequest)(url, params);
|
|
24
24
|
}
|
|
25
|
-
async function getCommunityNodesMetadata(environment,
|
|
25
|
+
async function getCommunityNodesMetadata(environment, maxAiNodeSdk) {
|
|
26
26
|
const url = getUrl(environment);
|
|
27
27
|
const params = {
|
|
28
28
|
fields: ['npmVersion', 'name', 'updatedAt'],
|
|
29
|
-
|
|
29
|
+
maxAiNodeSdk,
|
|
30
30
|
pagination: {
|
|
31
31
|
page: 1,
|
|
32
32
|
pageSize: 500,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community-node-types-utils.js","sourceRoot":"","sources":["../../../src/modules/community-packages/community-node-types-utils.ts"],"names":[],"mappings":";;AAuCA,sDAeC;AAED,8DAiBC;AAvED,iDAAsE;AA4BtE,MAAM,iCAAiC,GAAG,gDAAgD,CAAC;AAC3F,MAAM,oCAAoC,GAAG,wCAAwC,CAAC;AAEtF,SAAS,MAAM,CAAC,WAAqC;IACpD,OAAO,WAAW,KAAK,YAAY;QAClC,CAAC,CAAC,oCAAoC;QACtC,CAAC,CAAC,iCAAiC,CAAC;AACtC,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAC1C,WAAqC,EACrC,KAAqD,EAAE,EACvD,
|
|
1
|
+
{"version":3,"file":"community-node-types-utils.js","sourceRoot":"","sources":["../../../src/modules/community-packages/community-node-types-utils.ts"],"names":[],"mappings":";;AAuCA,sDAeC;AAED,8DAiBC;AAvED,iDAAsE;AA4BtE,MAAM,iCAAiC,GAAG,gDAAgD,CAAC;AAC3F,MAAM,oCAAoC,GAAG,wCAAwC,CAAC;AAEtF,SAAS,MAAM,CAAC,WAAqC;IACpD,OAAO,WAAW,KAAK,YAAY;QAClC,CAAC,CAAC,oCAAoC;QACtC,CAAC,CAAC,iCAAiC,CAAC;AACtC,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAC1C,WAAqC,EACrC,KAAqD,EAAE,EACvD,YAAoB;IAEpB,MAAM,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAChC,MAAM,MAAM,GAAG;QACd,GAAG,EAAE;QACL,YAAY;QACZ,UAAU,EAAE;YACX,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,EAAE;SACZ;KACD,CAAC;IACF,OAAO,MAAM,IAAA,+BAAgB,EAA0B,GAAG,EAAE,MAAM,CAAC,CAAC;AACrE,CAAC;AAEM,KAAK,UAAU,yBAAyB,CAC9C,WAAqC,EACrC,YAAoB;IAEpB,MAAM,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAChC,MAAM,MAAM,GAAG;QACd,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC;QAC3C,YAAY;QACZ,UAAU,EAAE;YACX,IAAI,EAAE,CAAC;YACP,QAAQ,EAAE,GAAG;SACb;KACD,CAAC;IAEF,OAAO,MAAM,IAAA,+BAAgB,EAAyB,GAAG,EAAE,MAAM,EAAE;QAClE,YAAY,EAAE,IAAI;KAClB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
import { EventService } from '../../events/event.service';
|
|
2
|
-
import { Push } from '../../push';
|
|
3
1
|
import { NodeRequest } from '../../requests';
|
|
4
|
-
import {
|
|
5
|
-
import { CommunityPackagesService } from './community-packages.service';
|
|
6
|
-
import { InstalledPackages } from './installed-packages.entity';
|
|
7
|
-
import { InstanceSettings } from 'n8n-core';
|
|
8
|
-
export declare function isNpmError(error: unknown): error is {
|
|
9
|
-
code: number;
|
|
10
|
-
stdout: string;
|
|
11
|
-
};
|
|
2
|
+
import { CommunityPackagesLifecycleService } from './community-packages.lifecycle.service';
|
|
12
3
|
export declare class CommunityPackagesController {
|
|
13
|
-
private readonly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private readonly instanceSettings;
|
|
18
|
-
constructor(push: Push, communityPackagesService: CommunityPackagesService, eventService: EventService, communityNodeTypesService: CommunityNodeTypesService, instanceSettings: InstanceSettings);
|
|
19
|
-
installPackage(req: NodeRequest.Post): Promise<InstalledPackages>;
|
|
20
|
-
getInstalledPackages(): Promise<InstalledPackages[] | import("n8n-workflow").PublicInstalledPackage[]>;
|
|
4
|
+
private readonly communityPackagesLifecycle;
|
|
5
|
+
constructor(communityPackagesLifecycle: CommunityPackagesLifecycleService);
|
|
6
|
+
installPackage(req: NodeRequest.Post): Promise<import("./installed-packages.entity").InstalledPackages>;
|
|
7
|
+
getInstalledPackages(): Promise<import("./installed-packages.entity").InstalledPackages[] | import("n8n-workflow").PublicInstalledPackage[]>;
|
|
21
8
|
uninstallPackage(req: NodeRequest.Delete): Promise<void>;
|
|
22
|
-
updatePackage(req: NodeRequest.Update): Promise<InstalledPackages>;
|
|
9
|
+
updatePackage(req: NodeRequest.Update): Promise<import("./installed-packages.entity").InstalledPackages>;
|
|
23
10
|
}
|
|
@@ -10,245 +10,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CommunityPackagesController = void 0;
|
|
13
|
-
exports.isNpmError = isNpmError;
|
|
14
13
|
const decorators_1 = require("@n8n/decorators");
|
|
15
|
-
const
|
|
16
|
-
const constants_1 = require("../../constants");
|
|
17
|
-
const bad_request_error_1 = require("../../errors/response-errors/bad-request.error");
|
|
18
|
-
const internal_server_error_1 = require("../../errors/response-errors/internal-server.error");
|
|
19
|
-
const event_service_1 = require("../../events/event.service");
|
|
20
|
-
const push_1 = require("../../push");
|
|
21
|
-
const community_node_types_service_1 = require("./community-node-types.service");
|
|
22
|
-
const community_packages_service_1 = require("./community-packages.service");
|
|
23
|
-
const npm_utils_1 = require("./npm-utils");
|
|
24
|
-
const n8n_core_1 = require("n8n-core");
|
|
25
|
-
const { PACKAGE_NOT_INSTALLED, PACKAGE_NAME_NOT_PROVIDED, PACKAGE_VERSION_NOT_FOUND, PACKAGE_DOES_NOT_CONTAIN_NODES, PACKAGE_NOT_FOUND, } = constants_1.RESPONSE_ERROR_MESSAGES;
|
|
26
|
-
const isClientError = (error) => [PACKAGE_VERSION_NOT_FOUND, PACKAGE_DOES_NOT_CONTAIN_NODES, PACKAGE_NOT_FOUND].some((msg) => typeof error.message === 'string' && error.message.includes(msg));
|
|
27
|
-
function isNpmError(error) {
|
|
28
|
-
return typeof error === 'object' && error !== null && 'code' in error && 'stdout' in error;
|
|
29
|
-
}
|
|
14
|
+
const community_packages_lifecycle_service_1 = require("./community-packages.lifecycle.service");
|
|
30
15
|
let CommunityPackagesController = class CommunityPackagesController {
|
|
31
|
-
constructor(
|
|
32
|
-
this.
|
|
33
|
-
this.communityPackagesService = communityPackagesService;
|
|
34
|
-
this.eventService = eventService;
|
|
35
|
-
this.communityNodeTypesService = communityNodeTypesService;
|
|
36
|
-
this.instanceSettings = instanceSettings;
|
|
16
|
+
constructor(communityPackagesLifecycle) {
|
|
17
|
+
this.communityPackagesLifecycle = communityPackagesLifecycle;
|
|
37
18
|
}
|
|
38
19
|
async installPackage(req) {
|
|
39
20
|
const { name, verify, version } = req.body;
|
|
40
|
-
|
|
41
|
-
throw new bad_request_error_1.BadRequestError(PACKAGE_NAME_NOT_PROVIDED);
|
|
42
|
-
}
|
|
43
|
-
if (version && !(0, semver_1.valid)(version)) {
|
|
44
|
-
throw new bad_request_error_1.BadRequestError(`Invalid version: ${version}`);
|
|
45
|
-
}
|
|
46
|
-
let checksum = undefined;
|
|
47
|
-
if (verify) {
|
|
48
|
-
checksum = this.communityNodeTypesService.findVetted(name)?.checksum;
|
|
49
|
-
if (!checksum) {
|
|
50
|
-
throw new bad_request_error_1.BadRequestError(`Package ${name} is not vetted for installation`);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
let parsed;
|
|
54
|
-
try {
|
|
55
|
-
parsed = this.communityPackagesService.parseNpmPackageName(name);
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
throw new bad_request_error_1.BadRequestError(error instanceof Error ? error.message : 'Failed to parse package name');
|
|
59
|
-
}
|
|
60
|
-
if (parsed.packageName === constants_1.STARTER_TEMPLATE_NAME) {
|
|
61
|
-
throw new bad_request_error_1.BadRequestError([
|
|
62
|
-
`Package "${parsed.packageName}" is only a template`,
|
|
63
|
-
'Please enter an actual package to install',
|
|
64
|
-
].join('.'));
|
|
65
|
-
}
|
|
66
|
-
const isInstalled = await this.communityPackagesService.isPackageInstalled(parsed.packageName);
|
|
67
|
-
const hasLoaded = this.communityPackagesService.hasPackageLoaded(name);
|
|
68
|
-
if (isInstalled && hasLoaded) {
|
|
69
|
-
throw new bad_request_error_1.BadRequestError([
|
|
70
|
-
`Package "${parsed.packageName}" is already installed`,
|
|
71
|
-
'To update it, click the corresponding button in the UI',
|
|
72
|
-
].join('.'));
|
|
73
|
-
}
|
|
74
|
-
const packageStatus = await this.communityPackagesService.checkNpmPackageStatus(name);
|
|
75
|
-
if (packageStatus.status !== 'OK') {
|
|
76
|
-
throw new bad_request_error_1.BadRequestError(`Package "${name}" is banned so it cannot be installed`);
|
|
77
|
-
}
|
|
78
|
-
const packageVersion = version ?? parsed.version;
|
|
79
|
-
let installedPackage;
|
|
80
|
-
try {
|
|
81
|
-
installedPackage = await this.communityPackagesService.installPackage(parsed.packageName, packageVersion, checksum);
|
|
82
|
-
}
|
|
83
|
-
catch (error) {
|
|
84
|
-
const errorMessage = error instanceof Error ? error.message : constants_1.UNKNOWN_FAILURE_REASON;
|
|
85
|
-
this.eventService.emit('community-package-installed', {
|
|
86
|
-
user: req.user,
|
|
87
|
-
inputString: name,
|
|
88
|
-
packageName: parsed.packageName,
|
|
89
|
-
success: false,
|
|
90
|
-
packageVersion,
|
|
91
|
-
failureReason: errorMessage,
|
|
92
|
-
});
|
|
93
|
-
let message = [`Error loading package "${name}" `, errorMessage].join(':');
|
|
94
|
-
if (error instanceof Error && error.cause instanceof Error) {
|
|
95
|
-
message += `\nCause: ${error.cause.message}`;
|
|
96
|
-
}
|
|
97
|
-
const clientError = error instanceof Error ? isClientError(error) : false;
|
|
98
|
-
throw new (clientError ? bad_request_error_1.BadRequestError : internal_server_error_1.InternalServerError)(message);
|
|
99
|
-
}
|
|
100
|
-
if (!hasLoaded)
|
|
101
|
-
this.communityPackagesService.removePackageFromMissingList(name);
|
|
102
|
-
installedPackage.installedNodes.forEach((node) => {
|
|
103
|
-
this.push.broadcast({
|
|
104
|
-
type: 'reloadNodeType',
|
|
105
|
-
data: {
|
|
106
|
-
name: node.type,
|
|
107
|
-
version: node.latestVersion,
|
|
108
|
-
},
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
this.eventService.emit('community-package-installed', {
|
|
112
|
-
user: req.user,
|
|
113
|
-
inputString: name,
|
|
114
|
-
packageName: parsed.packageName,
|
|
115
|
-
success: true,
|
|
116
|
-
packageVersion,
|
|
117
|
-
packageNodeNames: installedPackage.installedNodes.map((node) => node.name),
|
|
118
|
-
packageAuthor: installedPackage.authorName,
|
|
119
|
-
packageAuthorEmail: installedPackage.authorEmail,
|
|
120
|
-
});
|
|
121
|
-
return installedPackage;
|
|
21
|
+
return await this.communityPackagesLifecycle.install({ name, verify, version }, req.user, 'ui');
|
|
122
22
|
}
|
|
123
23
|
async getInstalledPackages() {
|
|
124
|
-
|
|
125
|
-
if (installedPackages.length === 0)
|
|
126
|
-
return [];
|
|
127
|
-
let pendingUpdates;
|
|
128
|
-
try {
|
|
129
|
-
await (0, npm_utils_1.executeNpmCommand)(['outdated', '--json'], {
|
|
130
|
-
doNotHandleError: true,
|
|
131
|
-
cwd: this.instanceSettings.nodesDownloadDir,
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
catch (error) {
|
|
135
|
-
if (isNpmError(error) && error.code === 1) {
|
|
136
|
-
pendingUpdates = JSON.parse(error.stdout);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
let hydratedPackages = this.communityPackagesService.matchPackagesWithUpdates(installedPackages, pendingUpdates);
|
|
140
|
-
try {
|
|
141
|
-
if (this.communityPackagesService.hasMissingPackages) {
|
|
142
|
-
hydratedPackages = this.communityPackagesService.matchMissingPackages(hydratedPackages);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
catch {
|
|
146
|
-
}
|
|
147
|
-
return hydratedPackages;
|
|
24
|
+
return await this.communityPackagesLifecycle.listInstalledPackages();
|
|
148
25
|
}
|
|
149
26
|
async uninstallPackage(req) {
|
|
150
27
|
const { name } = req.query;
|
|
151
|
-
|
|
152
|
-
throw new bad_request_error_1.BadRequestError(PACKAGE_NAME_NOT_PROVIDED);
|
|
153
|
-
}
|
|
154
|
-
try {
|
|
155
|
-
this.communityPackagesService.parseNpmPackageName(name);
|
|
156
|
-
}
|
|
157
|
-
catch (error) {
|
|
158
|
-
const message = error instanceof Error ? error.message : constants_1.UNKNOWN_FAILURE_REASON;
|
|
159
|
-
throw new bad_request_error_1.BadRequestError(message);
|
|
160
|
-
}
|
|
161
|
-
const installedPackage = await this.communityPackagesService.findInstalledPackage(name);
|
|
162
|
-
if (!installedPackage) {
|
|
163
|
-
throw new bad_request_error_1.BadRequestError(PACKAGE_NOT_INSTALLED);
|
|
164
|
-
}
|
|
165
|
-
try {
|
|
166
|
-
await this.communityPackagesService.removePackage(name, installedPackage);
|
|
167
|
-
}
|
|
168
|
-
catch (error) {
|
|
169
|
-
const message = [
|
|
170
|
-
`Error removing package "${name}"`,
|
|
171
|
-
error instanceof Error ? error.message : constants_1.UNKNOWN_FAILURE_REASON,
|
|
172
|
-
].join(':');
|
|
173
|
-
throw new internal_server_error_1.InternalServerError(message, error);
|
|
174
|
-
}
|
|
175
|
-
installedPackage.installedNodes.forEach((node) => {
|
|
176
|
-
this.push.broadcast({
|
|
177
|
-
type: 'removeNodeType',
|
|
178
|
-
data: {
|
|
179
|
-
name: node.type,
|
|
180
|
-
version: node.latestVersion,
|
|
181
|
-
},
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
this.eventService.emit('community-package-deleted', {
|
|
185
|
-
user: req.user,
|
|
186
|
-
packageName: name,
|
|
187
|
-
packageVersion: installedPackage.installedVersion,
|
|
188
|
-
packageNodeNames: installedPackage.installedNodes.map((node) => node.name),
|
|
189
|
-
packageAuthor: installedPackage.authorName,
|
|
190
|
-
packageAuthorEmail: installedPackage.authorEmail,
|
|
191
|
-
});
|
|
28
|
+
await this.communityPackagesLifecycle.uninstall(name, req.user, 'badRequest');
|
|
192
29
|
}
|
|
193
30
|
async updatePackage(req) {
|
|
194
31
|
const { name, version, checksum } = req.body;
|
|
195
|
-
|
|
196
|
-
throw new bad_request_error_1.BadRequestError(PACKAGE_NAME_NOT_PROVIDED);
|
|
197
|
-
}
|
|
198
|
-
if (version && !(0, semver_1.valid)(version)) {
|
|
199
|
-
throw new bad_request_error_1.BadRequestError(`Invalid version: ${version}`);
|
|
200
|
-
}
|
|
201
|
-
const previouslyInstalledPackage = await this.communityPackagesService.findInstalledPackage(name);
|
|
202
|
-
if (!previouslyInstalledPackage) {
|
|
203
|
-
throw new bad_request_error_1.BadRequestError(PACKAGE_NOT_INSTALLED);
|
|
204
|
-
}
|
|
205
|
-
try {
|
|
206
|
-
const newInstalledPackage = await this.communityPackagesService.updatePackage(this.communityPackagesService.parseNpmPackageName(name).packageName, previouslyInstalledPackage, version, checksum);
|
|
207
|
-
previouslyInstalledPackage.installedNodes.forEach((node) => {
|
|
208
|
-
this.push.broadcast({
|
|
209
|
-
type: 'removeNodeType',
|
|
210
|
-
data: {
|
|
211
|
-
name: node.type,
|
|
212
|
-
version: node.latestVersion,
|
|
213
|
-
},
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
newInstalledPackage.installedNodes.forEach((node) => {
|
|
217
|
-
this.push.broadcast({
|
|
218
|
-
type: 'reloadNodeType',
|
|
219
|
-
data: {
|
|
220
|
-
name: node.type,
|
|
221
|
-
version: node.latestVersion,
|
|
222
|
-
},
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
this.eventService.emit('community-package-updated', {
|
|
226
|
-
user: req.user,
|
|
227
|
-
packageName: name,
|
|
228
|
-
packageVersionCurrent: previouslyInstalledPackage.installedVersion,
|
|
229
|
-
packageVersionNew: newInstalledPackage.installedVersion,
|
|
230
|
-
packageNodeNames: newInstalledPackage.installedNodes.map((n) => n.name),
|
|
231
|
-
packageAuthor: newInstalledPackage.authorName,
|
|
232
|
-
packageAuthorEmail: newInstalledPackage.authorEmail,
|
|
233
|
-
});
|
|
234
|
-
return newInstalledPackage;
|
|
235
|
-
}
|
|
236
|
-
catch (error) {
|
|
237
|
-
previouslyInstalledPackage.installedNodes.forEach((node) => {
|
|
238
|
-
this.push.broadcast({
|
|
239
|
-
type: 'removeNodeType',
|
|
240
|
-
data: {
|
|
241
|
-
name: node.type,
|
|
242
|
-
version: node.latestVersion,
|
|
243
|
-
},
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
const message = [
|
|
247
|
-
`Error removing package "${name}"`,
|
|
248
|
-
error instanceof Error ? error.message : constants_1.UNKNOWN_FAILURE_REASON,
|
|
249
|
-
].join(':');
|
|
250
|
-
throw new internal_server_error_1.InternalServerError(message, error);
|
|
251
|
-
}
|
|
32
|
+
return await this.communityPackagesLifecycle.update({ name, version, checksum }, req.user, 'badRequest');
|
|
252
33
|
}
|
|
253
34
|
};
|
|
254
35
|
exports.CommunityPackagesController = CommunityPackagesController;
|
|
@@ -282,10 +63,6 @@ __decorate([
|
|
|
282
63
|
], CommunityPackagesController.prototype, "updatePackage", null);
|
|
283
64
|
exports.CommunityPackagesController = CommunityPackagesController = __decorate([
|
|
284
65
|
(0, decorators_1.RestController)('/community-packages'),
|
|
285
|
-
__metadata("design:paramtypes", [
|
|
286
|
-
community_packages_service_1.CommunityPackagesService,
|
|
287
|
-
event_service_1.EventService,
|
|
288
|
-
community_node_types_service_1.CommunityNodeTypesService,
|
|
289
|
-
n8n_core_1.InstanceSettings])
|
|
66
|
+
__metadata("design:paramtypes", [community_packages_lifecycle_service_1.CommunityPackagesLifecycleService])
|
|
290
67
|
], CommunityPackagesController);
|
|
291
68
|
//# sourceMappingURL=community-packages.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community-packages.controller.js","sourceRoot":"","sources":["../../../src/modules/community-packages/community-packages.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"community-packages.controller.js","sourceRoot":"","sources":["../../../src/modules/community-packages/community-packages.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAAwF;AAIxF,iGAA2F;AAGpF,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACvC,YAA6B,0BAA6D;QAA7D,+BAA0B,GAA1B,0BAA0B,CAAmC;IAAG,CAAC;IAIxF,AAAN,KAAK,CAAC,cAAc,CAAC,GAAqB;QACzC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;QAE3C,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjG,CAAC;IAIK,AAAN,KAAK,CAAC,oBAAoB;QACzB,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,qBAAqB,EAAE,CAAC;IACtE,CAAC;IAIK,AAAN,KAAK,CAAC,gBAAgB,CAAC,GAAuB;QAC7C,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;QAE3B,MAAM,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;IAC/E,CAAC;IAIK,AAAN,KAAK,CAAC,aAAa,CAAC,GAAuB;QAC1C,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;QAE7C,OAAO,MAAM,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAClD,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,EAC3B,GAAG,CAAC,IAAI,EACR,YAAY,CACZ,CAAC;IACH,CAAC;CACD,CAAA;AApCY,kEAA2B;AAKjC;IAFL,IAAA,iBAAI,EAAC,GAAG,CAAC;IACT,IAAA,wBAAW,EAAC,0BAA0B,CAAC;;;;iEAKvC;AAIK;IAFL,IAAA,gBAAG,EAAC,GAAG,CAAC;IACR,IAAA,wBAAW,EAAC,uBAAuB,CAAC;;;;uEAGpC;AAIK;IAFL,IAAA,mBAAM,EAAC,GAAG,CAAC;IACX,IAAA,wBAAW,EAAC,4BAA4B,CAAC;;;;mEAKzC;AAIK;IAFL,IAAA,kBAAK,EAAC,GAAG,CAAC;IACV,IAAA,wBAAW,EAAC,yBAAyB,CAAC;;;;gEAStC;sCAnCW,2BAA2B;IADvC,IAAA,2BAAc,EAAC,qBAAqB,CAAC;qCAEoB,wEAAiC;GAD9E,2BAA2B,CAoCvC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import type { UserLike } from '../../events/maps/relay.event-map';
|
|
3
|
+
import { EventService } from '../../events/event.service';
|
|
4
|
+
import { Push } from '../../push';
|
|
5
|
+
import { InstanceSettings } from 'n8n-core';
|
|
6
|
+
import { type PublicInstalledPackage } from 'n8n-workflow';
|
|
7
|
+
import { CommunityNodeTypesService } from './community-node-types.service';
|
|
8
|
+
import { CommunityPackagesService } from './community-packages.service';
|
|
9
|
+
import type { InstalledPackages } from './installed-packages.entity';
|
|
10
|
+
export type CommunityPackageInstallPresentation = 'ui' | 'publicApi';
|
|
11
|
+
export type MissingInstalledPackageBehavior = 'badRequest' | 'notFound';
|
|
12
|
+
export declare class CommunityPackagesLifecycleService {
|
|
13
|
+
private readonly logger;
|
|
14
|
+
private readonly push;
|
|
15
|
+
private readonly communityPackagesService;
|
|
16
|
+
private readonly eventService;
|
|
17
|
+
private readonly communityNodeTypesService;
|
|
18
|
+
private readonly instanceSettings;
|
|
19
|
+
constructor(logger: Logger, push: Push, communityPackagesService: CommunityPackagesService, eventService: EventService, communityNodeTypesService: CommunityNodeTypesService, instanceSettings: InstanceSettings);
|
|
20
|
+
listInstalledPackages(): Promise<PublicInstalledPackage[] | InstalledPackages[]>;
|
|
21
|
+
install(args: {
|
|
22
|
+
name: string | undefined;
|
|
23
|
+
version?: string;
|
|
24
|
+
verify?: boolean;
|
|
25
|
+
}, user: UserLike, presentation: CommunityPackageInstallPresentation): Promise<InstalledPackages>;
|
|
26
|
+
update(args: {
|
|
27
|
+
name: string | undefined;
|
|
28
|
+
version?: string;
|
|
29
|
+
checksum?: string;
|
|
30
|
+
}, user: UserLike, whenMissing: MissingInstalledPackageBehavior): Promise<InstalledPackages>;
|
|
31
|
+
uninstall(packageName: string | undefined, user: UserLike, whenMissing: MissingInstalledPackageBehavior): Promise<void>;
|
|
32
|
+
}
|