n8n 2.29.6 → 2.30.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/README.md +9 -8
- package/dist/active-executions.d.ts +2 -1
- package/dist/active-executions.js +2 -1
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.js +10 -5
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/blob-storage/azure-byte-store.ee.js +2 -2
- package/dist/blob-storage/azure-byte-store.ee.js.map +1 -1
- package/dist/blob-storage/s3-byte-store.ee.js +2 -2
- package/dist/blob-storage/s3-byte-store.ee.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-service.js +5 -4
- package/dist/chat/chat-service.js.map +1 -1
- package/dist/chat/chat-service.types.d.ts +2 -2
- package/dist/command-registry.js +12 -4
- package/dist/command-registry.js.map +1 -1
- package/dist/commands/audit.js +3 -2
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/base-command.js +2 -1
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/execute.d.ts +2 -2
- package/dist/commands/export/credentials.d.ts +4 -4
- package/dist/commands/export/entities.d.ts +2 -2
- package/dist/commands/export/workflow.d.ts +4 -4
- package/dist/commands/import/credentials.d.ts +2 -2
- package/dist/commands/import/workflow.d.ts +2 -2
- package/dist/commands/start.js +2 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/ttwf/generate.d.ts +2 -2
- package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.d.ts +3 -1
- package/dist/controllers/oauth/oauth1-credential.controller.js +12 -6
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +3 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +12 -5
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/posthog.controller.d.ts +6 -0
- package/dist/controllers/posthog.controller.js +36 -8
- package/dist/controllers/posthog.controller.js.map +1 -1
- package/dist/controllers/project.controller.d.ts +2 -0
- package/dist/controllers/project.controller.js +12 -4
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/role.controller.d.ts +3 -2
- package/dist/controllers/role.controller.js +21 -7
- package/dist/controllers/role.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +3 -2
- package/dist/controllers/users.controller.js +5 -1
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +3 -1
- package/dist/credentials/credentials.controller.js +24 -18
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +1 -0
- package/dist/credentials/credentials.service.js +11 -0
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-overwrites.d.ts +2 -0
- package/dist/credentials-overwrites.js +10 -0
- package/dist/credentials-overwrites.js.map +1 -1
- package/dist/deprecation/deprecation.service.js +35 -6
- package/dist/deprecation/deprecation.service.js.map +1 -1
- package/dist/errors/response-errors/bad-request.error.d.ts +2 -1
- package/dist/errors/response-errors/bad-request.error.js +5 -2
- package/dist/errors/response-errors/bad-request.error.js.map +1 -1
- package/dist/evaluation.ee/test-runs.controller.ee.d.ts +1 -0
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +1 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/event.service.d.ts +2 -1
- package/dist/events/event.service.js.map +1 -1
- package/dist/events/maps/instance-ai.event-map.d.ts +1 -1
- package/dist/events/maps/relay.event-map.d.ts +21 -2
- package/dist/events/maps/workflow-publication-metrics.event-map.d.ts +26 -0
- package/dist/events/maps/workflow-publication-metrics.event-map.js +3 -0
- package/dist/events/maps/workflow-publication-metrics.event-map.js.map +1 -0
- package/dist/events/relays/log-streaming.event-relay.d.ts +2 -1
- package/dist/events/relays/log-streaming.event-relay.js +16 -3
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +3 -0
- package/dist/events/relays/telemetry.event-relay.js +44 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +2 -0
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/execution-lifecycle/shared/shared-hook-functions.js +2 -2
- package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
- package/dist/executions/execution-data/azure-store.ee.js +2 -1
- package/dist/executions/execution-data/azure-store.ee.js.map +1 -1
- package/dist/executions/execution-data/s3-store.ee.js +2 -1
- package/dist/executions/execution-data/s3-store.ee.js.map +1 -1
- package/dist/executions/execution.service.js +13 -2
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js +6 -6
- package/dist/instance-settings-loader/loaders/community-packages.instance-settings-loader.js.map +1 -1
- package/dist/interfaces.d.ts +2 -1
- package/dist/license/license.service.js +4 -4
- package/dist/license/license.service.js.map +1 -1
- package/dist/load-nodes-and-credentials.js +5 -4
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/metrics/prometheus/active-workflow-metrics.service.js +8 -13
- package/dist/metrics/prometheus/active-workflow-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/cached-metric-query.d.ts +19 -0
- package/dist/metrics/prometheus/cached-metric-query.js +28 -0
- package/dist/metrics/prometheus/cached-metric-query.js.map +1 -0
- package/dist/metrics/prometheus/instance-ai-metrics.service.js +5 -3
- package/dist/metrics/prometheus/instance-ai-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/prometheus.service.d.ts +2 -1
- package/dist/metrics/prometheus/prometheus.service.js +5 -2
- package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-info-metrics.service.js +8 -13
- package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +21 -0
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js +160 -0
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -0
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.d.ts +0 -4
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js +10 -42
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js.map +1 -1
- package/dist/middlewares/body-parser.js +21 -7
- package/dist/middlewares/body-parser.js.map +1 -1
- package/dist/modules/agents/agent-config.service.js +39 -18
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +2 -2
- package/dist/modules/agents/agent-execution-orchestrator.service.js +5 -8
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +2 -2
- package/dist/modules/agents/agent-execution.service.js +11 -8
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +4 -1
- package/dist/modules/agents/agent-integration-persistence.service.js +4 -2
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.js +13 -3
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-commands.d.ts +3 -0
- package/dist/modules/agents/agent-knowledge-commands.js +32 -9
- package/dist/modules/agents/agent-knowledge-commands.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-gate.d.ts +1 -1
- package/dist/modules/agents/agent-knowledge-gate.js +1 -3
- package/dist/modules/agents/agent-knowledge-gate.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-retrieval.d.ts +13 -6
- package/dist/modules/agents/agent-knowledge-retrieval.js +16 -14
- package/dist/modules/agents/agent-knowledge-retrieval.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-sandbox.service.d.ts +16 -11
- package/dist/modules/agents/agent-knowledge-sandbox.service.js +233 -140
- package/dist/modules/agents/agent-knowledge-sandbox.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-storage.d.ts +4 -15
- package/dist/modules/agents/agent-knowledge-storage.js +13 -26
- package/dist/modules/agents/agent-knowledge-storage.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.controller.d.ts +1 -1
- package/dist/modules/agents/agent-knowledge.controller.js +3 -3
- package/dist/modules/agents/agent-knowledge.controller.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.service.d.ts +13 -12
- package/dist/modules/agents/agent-knowledge.service.js +93 -106
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
- package/dist/modules/agents/agent-model-catalog.service.d.ts +11 -0
- package/dist/modules/agents/agent-model-catalog.service.js +138 -0
- package/dist/modules/agents/agent-model-catalog.service.js.map +1 -0
- package/dist/modules/agents/agent-publish.service.js +6 -1
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.d.ts +0 -1
- package/dist/modules/agents/agent-runtime-cache.service.js +4 -13
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +3 -7
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +10 -26
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-sandbox.controller.d.ts +1 -1
- package/dist/modules/agents/agent-sandbox.controller.js +4 -4
- package/dist/modules/agents/agent-sandbox.controller.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +1 -4
- package/dist/modules/agents/agent-task.service.js +1 -23
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agents-catalog.controller.d.ts +9 -2
- package/dist/modules/agents/agents-catalog.controller.js +25 -2
- package/dist/modules/agents/agents-catalog.controller.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +46 -30
- package/dist/modules/agents/agents.controller.js +1 -1
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +1 -1
- package/dist/modules/agents/agents.service.js +8 -2
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +3 -3
- package/dist/modules/agents/builder/agents-builder-tools.service.js +32 -9
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +14 -0
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +91 -0
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -0
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.d.ts +0 -12
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js +20 -40
- package/dist/modules/agents/builder/interactive/llm-provider-defaults.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.d.ts +1 -2
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +3 -2
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +6 -0
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +7 -0
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +2 -4
- package/dist/modules/agents/entities/agent-execution.entity.js +2 -10
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/execution-recorder.d.ts +0 -8
- package/dist/modules/agents/execution-recorder.js +12 -27
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.js +5 -5
- package/dist/modules/agents/integrations/agent-chat-suspension-cards.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +7 -6
- package/dist/modules/agents/integrations/chat-integration.service.js +51 -85
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +116 -116
- package/dist/modules/agents/integrations/integration-helpers.js +5 -5
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
- package/dist/modules/agents/integrations/integration-message-context.service.js +2 -2
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-definitions.d.ts +949 -949
- package/dist/modules/agents/integrations/integration-tool-execution.js +4 -4
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.d.ts +1 -0
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +9 -1
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-operations.js +18 -18
- package/dist/modules/agents/integrations/platforms/linear-operations.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/linear-tool-definitions.d.ts +30 -30
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js +6 -6
- package/dist/modules/agents/integrations/platforms/slack-bridge-behavior.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack-operations.js +3 -3
- package/dist/modules/agents/integrations/platforms/slack-operations.js.map +1 -1
- package/dist/modules/agents/integrations/recording/channel-integration-recorder.d.ts +64 -0
- package/dist/modules/agents/integrations/recording/channel-integration-recorder.js +376 -0
- package/dist/modules/agents/integrations/recording/channel-integration-recorder.js.map +1 -0
- package/dist/modules/agents/integrations/recording/recording-adapter.d.ts +2 -0
- package/dist/modules/agents/integrations/recording/recording-adapter.js +98 -0
- package/dist/modules/agents/integrations/recording/recording-adapter.js.map +1 -0
- package/dist/modules/agents/integrations/slack-app-setup.service.js +5 -5
- package/dist/modules/agents/integrations/slack-app-setup.service.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.js +3 -0
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/repositories/agent-checkpoint.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js +4 -0
- package/dist/modules/agents/repositories/agent-checkpoint.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution.repository.js +3 -1
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.d.ts +0 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js +0 -1
- package/dist/modules/agents/sub-agents/sub-agent-foreground-runner.js.map +1 -1
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.d.ts +12 -8
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js +12 -10
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +2 -6
- package/dist/modules/agents/tools/workflow-tool-factory.js +11 -24
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/utils/agent-resource-id.js +2 -2
- package/dist/modules/agents/utils/agent-resource-id.js.map +1 -1
- package/dist/modules/agents/utils/execution-to-message-mapper.d.ts +1 -1
- package/dist/modules/agents/utils/execution-to-message-mapper.js +4 -31
- package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +4 -7
- package/dist/modules/breaking-changes/breaking-changes.controller.js +8 -7
- package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +2 -0
- package/dist/modules/breaking-changes/rules/index.js +2 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.d.ts +14 -0
- package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.js +82 -0
- package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js +53 -0
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub-extractor.js +2 -1
- package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.attachment.service.js +3 -3
- package/dist/modules/chat-hub/chat-hub.attachment.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.controller.js +2 -2
- package/dist/modules/chat-hub/chat-hub.controller.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.module.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub.settings.controller.d.ts +3 -3
- package/dist/modules/chat-hub/chat-hub.types.d.ts +4 -4
- package/dist/modules/community-packages/community-node-types.service.js +3 -2
- package/dist/modules/community-packages/community-node-types.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +2 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.service.d.ts +6 -0
- package/dist/modules/community-packages/community-packages.service.js +116 -25
- package/dist/modules/community-packages/community-packages.service.js.map +1 -1
- package/dist/modules/community-packages/installed-packages.repository.d.ts +2 -0
- package/dist/modules/community-packages/installed-packages.repository.js +9 -0
- package/dist/modules/community-packages/installed-packages.repository.js.map +1 -1
- package/dist/modules/community-packages/npm-utils.js +2 -2
- package/dist/modules/community-packages/npm-utils.js.map +1 -1
- package/dist/modules/data-table/data-table-column.repository.js +3 -2
- package/dist/modules/data-table/data-table-column.repository.js.map +1 -1
- package/dist/modules/data-table/data-table-proxy.service.d.ts +3 -0
- package/dist/modules/data-table/data-table-proxy.service.js +8 -0
- package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
- package/dist/modules/data-table/data-table-rows.repository.d.ts +3 -0
- package/dist/modules/data-table/data-table-rows.repository.js +15 -4
- package/dist/modules/data-table/data-table-rows.repository.js.map +1 -1
- package/dist/modules/data-table/data-table.controller.js +2 -1
- package/dist/modules/data-table/data-table.controller.js.map +1 -1
- package/dist/modules/data-table/data-table.module.d.ts +1 -1
- package/dist/modules/data-table/data-table.repository.js +10 -0
- package/dist/modules/data-table/data-table.repository.js.map +1 -1
- package/dist/modules/data-table/data-table.service.d.ts +3 -0
- package/dist/modules/data-table/data-table.service.js +10 -0
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/data-table/multer-upload-middleware.js +4 -3
- package/dist/modules/data-table/multer-upload-middleware.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js +2 -1
- package/dist/modules/dynamic-credentials.ee/context-establishment-hooks/n8n-oauth/n8n-oauth-extractor.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.d.ts +2 -2
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js +2 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js +5 -0
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-storage.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.d.ts +2 -3
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +1 -7
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/shared-fields.d.ts +2 -1
- package/dist/modules/dynamic-credentials.ee/services/shared-fields.js +15 -0
- package/dist/modules/dynamic-credentials.ee/services/shared-fields.js.map +1 -1
- package/dist/modules/external-secrets.ee/errors/secrets-provider-errors.d.ts +33 -0
- package/dist/modules/external-secrets.ee/errors/secrets-provider-errors.js +58 -0
- package/dist/modules/external-secrets.ee/errors/secrets-provider-errors.js.map +1 -0
- package/dist/modules/external-secrets.ee/provider-lifecycle.service.js +4 -4
- package/dist/modules/external-secrets.ee/provider-lifecycle.service.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.d.ts +16 -3
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +114 -23
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.d.ts +3 -0
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js +136 -32
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.d.ts +2 -0
- package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.js +134 -50
- package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/infisical.d.ts +31 -0
- package/dist/modules/external-secrets.ee/providers/infisical.js +97 -40
- package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/one-password.d.ts +2 -0
- package/dist/modules/external-secrets.ee/providers/one-password.js +97 -41
- package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/vault.d.ts +3 -1
- package/dist/modules/external-secrets.ee/providers/vault.js +126 -33
- package/dist/modules/external-secrets.ee/providers/vault.js.map +1 -1
- package/dist/modules/external-secrets.ee/secrets-cache.service.js +2 -1
- package/dist/modules/external-secrets.ee/secrets-cache.service.js.map +1 -1
- package/dist/modules/favorites/dto/add-favorite.dto.d.ts +1 -1
- package/dist/modules/insights/database/entities/insights-shared.d.ts +1 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +2 -2
- package/dist/modules/insights/insights-compaction.service.d.ts +4 -2
- package/dist/modules/insights/insights-compaction.service.js +46 -39
- package/dist/modules/insights/insights-compaction.service.js.map +1 -1
- package/dist/modules/insights/insights.service.d.ts +3 -3
- package/dist/modules/insights/insights.service.js +4 -4
- package/dist/modules/insights/insights.service.js.map +1 -1
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js +1 -1
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js.map +1 -1
- package/dist/modules/instance-ai/eval/date-anchors.d.ts +1 -0
- package/dist/modules/instance-ai/eval/date-anchors.js +24 -0
- package/dist/modules/instance-ai/eval/date-anchors.js.map +1 -0
- package/dist/modules/instance-ai/eval/eval-timings.d.ts +10 -0
- package/dist/modules/instance-ai/eval/eval-timings.js +50 -0
- package/dist/modules/instance-ai/eval/eval-timings.js.map +1 -0
- package/dist/modules/instance-ai/eval/execution.service.d.ts +1 -0
- package/dist/modules/instance-ai/eval/execution.service.js +175 -26
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-completion-mock.d.ts +7 -0
- package/dist/modules/instance-ai/eval/llm-completion-mock.js +188 -0
- package/dist/modules/instance-ai/eval/llm-completion-mock.js.map +1 -0
- package/dist/modules/instance-ai/eval/llm-wire-server.js +14 -1
- package/dist/modules/instance-ai/eval/llm-wire-server.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.d.ts +9 -2
- package/dist/modules/instance-ai/eval/mock-handler.js +239 -41
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-quirks.d.ts +1 -0
- package/dist/modules/instance-ai/eval/mock-quirks.js +47 -2
- package/dist/modules/instance-ai/eval/mock-quirks.js.map +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.d.ts +7 -0
- package/dist/modules/instance-ai/eval/pin-data-generator.js +190 -8
- package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +2 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js +25 -3
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.d.ts +15 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js +51 -5
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.d.ts +18 -0
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.js +76 -0
- package/dist/modules/instance-ai/instance-ai-error-reporter.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +4 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +71 -8
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +5 -5
- package/dist/modules/instance-ai/instance-ai.controller.js +85 -55
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +24 -6
- package/dist/modules/instance-ai/instance-ai.service.js +303 -106
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.d.ts +2 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js +12 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +3 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +78 -11
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
- package/dist/modules/instance-ai/message-parser.js +62 -15
- package/dist/modules/instance-ai/message-parser.js.map +1 -1
- package/dist/modules/instance-ai/node-definition-resolver.js +34 -4
- package/dist/modules/instance-ai/node-definition-resolver.js.map +1 -1
- package/dist/modules/instance-ai/observability.d.ts +2 -1
- package/dist/modules/instance-ai/observability.js +2 -1
- package/dist/modules/instance-ai/observability.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.d.ts +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js +4 -0
- package/dist/modules/instance-ai/repositories/instance-ai-pending-confirmation.repository.js.map +1 -1
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.js +2 -2
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +4 -4
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/suspended-run-restorer.service.d.ts +3 -2
- package/dist/modules/instance-ai/suspended-run-restorer.service.js +9 -8
- package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
- package/dist/modules/instance-registry/storage/redis-instance-storage.js +9 -8
- package/dist/modules/instance-registry/storage/redis-instance-storage.js.map +1 -1
- package/dist/modules/mcp/mcp-api-key.service.js +2 -2
- package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js +3 -3
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +2 -1
- package/dist/modules/mcp/mcp.service.js +3 -2
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.typeguards.js +9 -9
- package/dist/modules/mcp/mcp.typeguards.js.map +1 -1
- package/dist/modules/mcp/mcp.utils.js +2 -2
- package/dist/modules/mcp/mcp.utils.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +8 -8
- package/dist/modules/mcp/tools/execute-workflow.tool.js +2 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/execution-utils.js +2 -1
- package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
- package/dist/modules/mcp/tools/get-execution.tool.js +2 -1
- package/dist/modules/mcp/tools/get-execution.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +5 -5
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-history.tool.d.ts +4 -4
- package/dist/modules/mcp/tools/get-workflow-history.tool.js +2 -2
- package/dist/modules/mcp/tools/get-workflow-history.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-version.tool.js +2 -2
- package/dist/modules/mcp/tools/get-workflow-version.tool.js.map +1 -1
- package/dist/modules/mcp/tools/publish-workflow.tool.js +2 -1
- package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/schemas.d.ts +52 -52
- package/dist/modules/mcp/tools/test-workflow.tool.js +2 -1
- package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/unpublish-workflow.tool.js +2 -1
- package/dist/modules/mcp/tools/unpublish-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/webhook-utils.d.ts +2 -3
- package/dist/modules/mcp/tools/webhook-utils.js +15 -21
- package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/get-workflow-node-types.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js +2 -2
- package/dist/modules/mcp/tools/workflow-builder/restore-workflow-version.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-node.tool.d.ts +2 -2
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.d.ts +85 -85
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js +2 -1
- package/dist/modules/mcp-registry/mcp-registry-node-loader.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-pipeline.js +14 -1
- package/dist/modules/n8n-packages/engine/import-pipeline.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +31 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +115 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/folder/folder.serializer.js +25 -0
- package/dist/modules/n8n-packages/entities/folder/folder.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +59 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project.serializer.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/project/project.serializer.js +26 -0
- package/dist/modules/n8n-packages/entities/project/project.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/requirements.types.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/requirements.types.js +8 -0
- package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +3 -5
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/io/slug.utils.d.ts +1 -1
- package/dist/modules/n8n-packages/io/slug.utils.js +1 -2
- package/dist/modules/n8n-packages/io/slug.utils.js.map +1 -1
- package/dist/modules/n8n-packages/io/unique-filename-allocator.d.ts +3 -2
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js +3 -0
- package/dist/modules/n8n-packages/io/unique-filename-allocator.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.module.js +1 -1
- package/dist/modules/n8n-packages/n8n-packages.module.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +11 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js +77 -16
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +21 -2
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +88 -22
- package/dist/modules/n8n-packages/spec/manifest.schema.js +20 -12
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +8 -8
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +2 -2
- package/dist/modules/n8n-packages/spec/serialized/folder.schema.d.ts +15 -0
- package/dist/modules/n8n-packages/spec/serialized/folder.schema.js +12 -0
- package/dist/modules/n8n-packages/spec/serialized/folder.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/project.schema.d.ts +33 -0
- package/dist/modules/n8n-packages/spec/serialized/project.schema.js +15 -0
- package/dist/modules/n8n-packages/spec/serialized/project.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +32 -32
- package/dist/modules/oauth-jwe/oauth-jwe-key.service.js +2 -2
- package/dist/modules/oauth-jwe/oauth-jwe-key.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.js +2 -1
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js +2 -2
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.js +32 -8
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +2 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -0
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +38 -15
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/quick-connect/quick-connect.config.d.ts +19 -19
- package/dist/modules/quick-connect/quick-connect.module.d.ts +8 -8
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +3 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.js +2 -0
- package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +15 -10
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +6 -6
- package/dist/modules/source-control.ee/source-control.controller.ee.js +3 -3
- package/dist/modules/source-control.ee/source-control.controller.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -2
- package/dist/modules/source-control.ee/source-control.service.ee.js +2 -2
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/types/exportable-credential.d.ts +2 -0
- package/dist/modules/sso-saml/saml.controller.ee.d.ts +2 -2
- package/dist/modules/token-exchange/token-exchange.schemas.d.ts +8 -8
- package/dist/modules/workflow-index/workflow-index.service.js +3 -2
- package/dist/modules/workflow-index/workflow-index.service.js.map +1 -1
- package/dist/node-types.d.ts +1 -0
- package/dist/node-types.js +17 -3
- package/dist/node-types.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +5 -0
- package/dist/oauth/oauth.service.js +45 -15
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/public-api/types.d.ts +28 -1
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.d.ts +1 -0
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js +15 -0
- package/dist/public-api/v1/handlers/data-tables/data-tables.rows.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/discover/discover.service.js +11 -11
- package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
- package/dist/public-api/v1/handlers/evaluations/evaluations.handler.d.ts +9 -0
- package/dist/public-api/v1/handlers/evaluations/evaluations.handler.js +64 -0
- package/dist/public-api/v1/handlers/evaluations/evaluations.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/evaluations/evaluations.mapper.d.ts +9 -0
- package/dist/public-api/v1/handlers/evaluations/evaluations.mapper.js +34 -0
- package/dist/public-api/v1/handlers/evaluations/evaluations.mapper.js.map +1 -0
- package/dist/public-api/v1/handlers/executions/executions.handler.js +1 -0
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +5 -3
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +53 -26
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.js +10 -0
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +300 -18
- package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +1 -0
- package/dist/public-api/v1/shared/middlewares/global.middleware.js +6 -0
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
- package/dist/push/index.js +3 -3
- package/dist/push/index.js.map +1 -1
- package/dist/requests.d.ts +1 -0
- package/dist/response-helper.js +2 -1
- package/dist/response-helper.js.map +1 -1
- package/dist/scaling/constants.d.ts +3 -2
- package/dist/scaling/constants.js +4 -1
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/job-processor.js +1 -0
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/leader-election-client.d.ts +1 -1
- package/dist/scaling/leader-election-client.js +13 -12
- package/dist/scaling/leader-election-client.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +11 -1
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scaling/redis-lock.service.js +5 -5
- package/dist/scaling/redis-lock.service.js.map +1 -1
- package/dist/scaling/scaling.service.js +3 -2
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scaling/scaling.types.d.ts +1 -0
- package/dist/services/folder-finder.service.d.ts +12 -0
- package/dist/services/folder-finder.service.js +58 -0
- package/dist/services/folder-finder.service.js.map +1 -0
- package/dist/services/frontend.service.js +3 -0
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/import.service.js +2 -2
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +1 -0
- package/dist/services/project.service.ee.js +21 -1
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/protected-resource.registry.js +2 -2
- package/dist/services/protected-resource.registry.js.map +1 -1
- package/dist/services/proxy-token-manager.js +2 -2
- package/dist/services/proxy-token-manager.js.map +1 -1
- package/dist/services/pruning/executions-pruning.service.js +3 -3
- package/dist/services/pruning/executions-pruning.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.js +2 -1
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/redis-client.service.js +5 -2
- package/dist/services/redis-client.service.js.map +1 -1
- package/dist/services/role.service.d.ts +3 -3
- package/dist/services/role.service.js +9 -3
- package/dist/services/role.service.js.map +1 -1
- package/dist/services/url.service.d.ts +1 -0
- package/dist/services/url.service.js +10 -5
- package/dist/services/url.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.service.d.ts +31 -0
- package/dist/services/workflow-statistics-rollup.service.js +160 -0
- package/dist/services/workflow-statistics-rollup.service.js.map +1 -0
- package/dist/services/workflow-statistics.service.d.ts +5 -2
- package/dist/services/workflow-statistics.service.js +37 -15
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/task-runners/task-managers/task-requester.d.ts +2 -1
- package/dist/task-runners/task-managers/task-requester.js +3 -3
- package/dist/task-runners/task-managers/task-requester.js.map +1 -1
- package/dist/wait-tracker.js +2 -1
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +2 -1
- package/dist/webhooks/webhook-helpers.js +5 -4
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-last-node-response-extractor.d.ts +2 -1
- package/dist/webhooks/webhook-last-node-response-extractor.js +12 -11
- package/dist/webhooks/webhook-last-node-response-extractor.js.map +1 -1
- package/dist/webhooks/webhook-request-handler.js +2 -2
- package/dist/webhooks/webhook-request-handler.js.map +1 -1
- package/dist/webhooks/webhook-response-headers.js +2 -2
- package/dist/webhooks/webhook-response-headers.js.map +1 -1
- package/dist/webhooks/webhook.service.js +6 -5
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-execute-additional-data.js +6 -13
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-runner.d.ts +2 -1
- package/dist/workflow-runner.js +1 -0
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.js +2 -2
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-notifier.d.ts +12 -0
- package/dist/workflows/publication/workflow-publication-notifier.js +78 -0
- package/dist/workflows/publication/workflow-publication-notifier.js.map +1 -0
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.d.ts +3 -1
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js +13 -2
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.service.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.d.ts +4 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js +61 -11
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-status.service.d.ts +9 -0
- package/dist/workflows/publication/workflow-publication-status.service.js +54 -0
- package/dist/workflows/publication/workflow-publication-status.service.js.map +1 -0
- package/dist/workflows/triggers/non-webhook-trigger-registrar.d.ts +1 -1
- package/dist/workflows/triggers/trigger-activation-retry.js +2 -1
- package/dist/workflows/triggers/trigger-activation-retry.js.map +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +2 -2
- package/dist/workflows/triggers/trigger-execution-context.factory.js +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/triggers/webhook-trigger-registrar.js +2 -1
- package/dist/workflows/triggers/webhook-trigger-registrar.js.map +1 -1
- package/dist/workflows/triggers/workflow-trigger-activator.d.ts +7 -1
- package/dist/workflows/triggers/workflow-trigger-activator.js +64 -10
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +2 -1
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-finder.service.js +21 -0
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.js +2 -1
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-published-data.service.js +2 -2
- package/dist/workflows/workflow-published-data.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +3 -2
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +8 -6
- package/dist/workflows/workflow.service.js +9 -3
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +31 -28
- package/dist/workflows/workflows.controller.js +28 -4
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +41 -37
- package/dist/modules/agents/builder/builder-model-lookup.service.d.ts +0 -17
- package/dist/modules/agents/builder/builder-model-lookup.service.js +0 -67
- package/dist/modules/agents/builder/builder-model-lookup.service.js.map +0 -1
- package/dist/modules/n8n-packages/n8n-packages.controller.d.ts +0 -10
- package/dist/modules/n8n-packages/n8n-packages.controller.js +0 -44
- package/dist/modules/n8n-packages/n8n-packages.controller.js.map +0 -1
|
@@ -6,6 +6,7 @@ const backend_network_1 = require("@n8n/backend-network");
|
|
|
6
6
|
const di_1 = require("@n8n/di");
|
|
7
7
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
8
|
const constants_1 = require("../constants");
|
|
9
|
+
const secrets_provider_errors_1 = require("../errors/secrets-provider-errors");
|
|
9
10
|
const types_1 = require("../types");
|
|
10
11
|
const TOKEN_REFRESH_LEEWAY_SECONDS = 60;
|
|
11
12
|
const MIN_REFRESH_DELAY_MS = 60 * 1000;
|
|
@@ -111,8 +112,12 @@ class InfisicalProvider extends types_1.SecretsProvider {
|
|
|
111
112
|
return;
|
|
112
113
|
this.setupTokenRefresh();
|
|
113
114
|
}
|
|
114
|
-
catch {
|
|
115
|
-
this.
|
|
115
|
+
catch (error) {
|
|
116
|
+
this.logOperationFailure('Failed to refresh Infisical token. Attempting reconnect.', {
|
|
117
|
+
operation: 'tokenRefresh',
|
|
118
|
+
error,
|
|
119
|
+
context: (0, secrets_provider_errors_1.buildHttpProviderErrorContext)(error),
|
|
120
|
+
});
|
|
116
121
|
void this.connect();
|
|
117
122
|
}
|
|
118
123
|
};
|
|
@@ -129,17 +134,25 @@ class InfisicalProvider extends types_1.SecretsProvider {
|
|
|
129
134
|
}
|
|
130
135
|
async doConnect() {
|
|
131
136
|
this.refreshAbort = new AbortController();
|
|
132
|
-
|
|
133
|
-
if (
|
|
134
|
-
|
|
137
|
+
try {
|
|
138
|
+
if (this.settings.authMethod === 'universalAuth') {
|
|
139
|
+
if (!this.settings.clientId || !this.settings.clientSecret) {
|
|
140
|
+
throw new n8n_workflow_1.UnexpectedError('Client ID and Client Secret are required for Universal Auth');
|
|
141
|
+
}
|
|
142
|
+
await this.loginUniversalAuth();
|
|
135
143
|
}
|
|
136
|
-
await this.
|
|
144
|
+
await this.verifyWorkspaceAccess();
|
|
145
|
+
this.setupTokenRefresh();
|
|
137
146
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
147
|
+
catch (error) {
|
|
148
|
+
const context = error instanceof n8n_workflow_1.UnexpectedError ? undefined : (0, secrets_provider_errors_1.buildHttpProviderErrorContext)(error);
|
|
149
|
+
this.logOperationFailure('Failed to connect Infisical provider', {
|
|
150
|
+
operation: 'connect',
|
|
151
|
+
error,
|
|
152
|
+
context,
|
|
153
|
+
});
|
|
154
|
+
throw error;
|
|
141
155
|
}
|
|
142
|
-
this.setupTokenRefresh();
|
|
143
156
|
}
|
|
144
157
|
async disconnect() {
|
|
145
158
|
if (this.refreshTimeout !== null) {
|
|
@@ -153,30 +166,18 @@ class InfisicalProvider extends types_1.SecretsProvider {
|
|
|
153
166
|
}
|
|
154
167
|
async test() {
|
|
155
168
|
try {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
method: 'GET',
|
|
159
|
-
returnFullResponse: true,
|
|
160
|
-
ignoreHttpStatusErrors: true,
|
|
161
|
-
});
|
|
162
|
-
if (resp.statusCode >= 200 && resp.statusCode < 300) {
|
|
163
|
-
return [true];
|
|
164
|
-
}
|
|
165
|
-
if (resp.statusCode === 401) {
|
|
166
|
-
return [false, 'Invalid credentials'];
|
|
167
|
-
}
|
|
168
|
-
if (resp.statusCode === 403) {
|
|
169
|
-
return [
|
|
170
|
-
false,
|
|
171
|
-
'Permission denied. Verify the machine identity has access to this project.',
|
|
172
|
-
];
|
|
173
|
-
}
|
|
174
|
-
if (resp.statusCode === 404) {
|
|
175
|
-
return [false, 'Project not found. Check the Project ID and Site URL.'];
|
|
176
|
-
}
|
|
177
|
-
return [false, `Unexpected response from Infisical (status ${resp.statusCode}).`];
|
|
169
|
+
await this.verifyWorkspaceAccess();
|
|
170
|
+
return [true];
|
|
178
171
|
}
|
|
179
172
|
catch (error) {
|
|
173
|
+
this.logOperationFailure('Infisical provider test failed', {
|
|
174
|
+
operation: 'test',
|
|
175
|
+
error,
|
|
176
|
+
context: {
|
|
177
|
+
...(0, secrets_provider_errors_1.buildHttpProviderErrorContext)(error),
|
|
178
|
+
endpoint: 'workspace',
|
|
179
|
+
},
|
|
180
|
+
});
|
|
180
181
|
if ((0, backend_network_1.isConnectionRefusedError)(error)) {
|
|
181
182
|
return [false, 'Connection refused. Check the Site URL.'];
|
|
182
183
|
}
|
|
@@ -187,17 +188,30 @@ class InfisicalProvider extends types_1.SecretsProvider {
|
|
|
187
188
|
if (!this.currentToken) {
|
|
188
189
|
throw new n8n_workflow_1.UnexpectedError('Update attempted on Infisical before authentication');
|
|
189
190
|
}
|
|
190
|
-
await this.ensureTokenFresh();
|
|
191
191
|
try {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
catch (error) {
|
|
195
|
-
if ((0, backend_network_1.httpStatusFromError)(error) === 401) {
|
|
196
|
-
this.logger.debug('Infisical token rejected during update; re-authenticating and retrying');
|
|
197
|
-
await this.loginUniversalAuth();
|
|
192
|
+
await this.ensureTokenFresh();
|
|
193
|
+
try {
|
|
198
194
|
this.cacheSecrets(await this.fetchSecrets());
|
|
199
|
-
return;
|
|
200
195
|
}
|
|
196
|
+
catch (error) {
|
|
197
|
+
if ((0, backend_network_1.httpStatusFromError)(error) === 401) {
|
|
198
|
+
this.logger.debug('Infisical token rejected during update; re-authenticating and retrying');
|
|
199
|
+
await this.loginUniversalAuth();
|
|
200
|
+
this.cacheSecrets(await this.fetchSecrets());
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
throw error;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
catch (error) {
|
|
207
|
+
this.logOperationFailure('Failed to update Infisical provider secrets', {
|
|
208
|
+
operation: 'update',
|
|
209
|
+
error,
|
|
210
|
+
context: {
|
|
211
|
+
...(0, secrets_provider_errors_1.buildHttpProviderErrorContext)(error),
|
|
212
|
+
endpoint: 'secrets',
|
|
213
|
+
},
|
|
214
|
+
});
|
|
201
215
|
throw error;
|
|
202
216
|
}
|
|
203
217
|
}
|
|
@@ -281,6 +295,49 @@ class InfisicalProvider extends types_1.SecretsProvider {
|
|
|
281
295
|
}
|
|
282
296
|
return {};
|
|
283
297
|
}
|
|
298
|
+
async verifyWorkspaceAccess() {
|
|
299
|
+
const resp = await this.http.request({
|
|
300
|
+
url: `/api/v1/workspace/${encodeURIComponent(this.settings.projectId)}`,
|
|
301
|
+
method: 'GET',
|
|
302
|
+
returnFullResponse: true,
|
|
303
|
+
ignoreHttpStatusErrors: true,
|
|
304
|
+
});
|
|
305
|
+
if (resp.statusCode >= 200 && resp.statusCode < 300) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (resp.statusCode === 401) {
|
|
309
|
+
throw new Error('Invalid credentials');
|
|
310
|
+
}
|
|
311
|
+
if (resp.statusCode === 403) {
|
|
312
|
+
throw new Error('Permission denied. Verify the machine identity has access to this project.');
|
|
313
|
+
}
|
|
314
|
+
if (resp.statusCode === 404) {
|
|
315
|
+
throw new Error('Project not found. Check the Project ID and Site URL.');
|
|
316
|
+
}
|
|
317
|
+
throw new Error(`Unexpected response from Infisical (status ${resp.statusCode}).`);
|
|
318
|
+
}
|
|
319
|
+
logOperationFailure(message, params) {
|
|
320
|
+
const context = { ...params.context };
|
|
321
|
+
if (this.settings) {
|
|
322
|
+
const { siteURL, projectId, authMethod, environment, secretPath } = this.settings;
|
|
323
|
+
Object.assign(context, { siteURL, projectId });
|
|
324
|
+
if (params.operation === 'connect' || params.operation === 'tokenRefresh') {
|
|
325
|
+
context.authMethod = authMethod;
|
|
326
|
+
}
|
|
327
|
+
else if (params.operation === 'update') {
|
|
328
|
+
Object.assign(context, { environment, secretPath });
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
(0, secrets_provider_errors_1.logSecretsProviderOperationFailure)({
|
|
332
|
+
logger: this.logger,
|
|
333
|
+
message,
|
|
334
|
+
providerName: this.name,
|
|
335
|
+
providerDisplayName: this.displayName,
|
|
336
|
+
operation: params.operation,
|
|
337
|
+
error: params.error,
|
|
338
|
+
context,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
284
341
|
}
|
|
285
342
|
exports.InfisicalProvider = InfisicalProvider;
|
|
286
343
|
//# sourceMappingURL=infisical.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infisical.js","sourceRoot":"","sources":["../../../../src/modules/external-secrets.ee/providers/infisical.ts"],"names":[],"mappings":";;;AAAA,wDAA6C;AAC7C,0DAK8B;AAC9B,gCAAoC;AACpC,+CAAqE;AAErE,4CAAgD;
|
|
1
|
+
{"version":3,"file":"infisical.js","sourceRoot":"","sources":["../../../../src/modules/external-secrets.ee/providers/infisical.ts"],"names":[],"mappings":";;;AAAA,wDAA6C;AAC7C,0DAK8B;AAC9B,gCAAoC;AACpC,+CAAqE;AAErE,4CAAgD;AAChD,+EAK2C;AAE3C,oCAA2C;AAuC3C,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,CAAC;AAEvC,MAAa,iBAAkB,SAAQ,uBAAe;IAuGrD,YACU,SAAS,cAAS,CAAC,GAAG,CAAC,uBAAM,CAAC,EACtB,eAAe,cAAS,CAAC,GAAG,CAAC,8BAAY,CAAC;QAE3D,KAAK,EAAE,CAAC;QAHC,WAAM,GAAN,MAAM,CAAwB;QACtB,iBAAY,GAAZ,YAAY,CAA8B;QAxG5D,eAAU,GAAsB;YAC/B,4BAAgB;YAChB;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,8FAA8F;gBACpG,QAAQ,EAAE,IAAI;gBACd,gBAAgB,EAAE,IAAI;gBACtB,WAAW,EAAE,2BAA2B;gBACxC,OAAO,EAAE,2BAA2B;aACpC;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,4CAA4C;gBAClD,QAAQ,EAAE,IAAI;gBACd,gBAAgB,EAAE,IAAI;gBACtB,WAAW,EAAE,2CAA2C;gBACxD,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,4CAA4C;gBAClD,QAAQ,EAAE,IAAI;gBACd,gBAAgB,EAAE,IAAI;gBACtB,WAAW,EAAE,KAAK;gBAClB,OAAO,EAAE,KAAK;aACd;YACD;gBACC,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rC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,OAAO;SACP,CAAC,CAAC;IACJ,CAAC;CACD;AAvXD,8CAuXC"}
|
|
@@ -38,6 +38,7 @@ const backend_common_1 = require("@n8n/backend-common");
|
|
|
38
38
|
const di_1 = require("@n8n/di");
|
|
39
39
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
40
40
|
const constants_1 = require("../constants");
|
|
41
|
+
const secrets_provider_errors_1 = require("../errors/secrets-provider-errors");
|
|
41
42
|
const types_1 = require("../types");
|
|
42
43
|
class OnePasswordProvider extends types_1.SecretsProvider {
|
|
43
44
|
constructor(logger = di_1.Container.get(backend_common_1.Logger)) {
|
|
@@ -73,71 +74,108 @@ class OnePasswordProvider extends types_1.SecretsProvider {
|
|
|
73
74
|
this.logger = this.logger.scoped('external-secrets');
|
|
74
75
|
}
|
|
75
76
|
async init(context) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
try {
|
|
78
|
+
const trimmedServerUrl = context.settings.serverUrl?.trim();
|
|
79
|
+
const trimmedAccessToken = context.settings.accessToken?.trim();
|
|
80
|
+
if (!trimmedServerUrl) {
|
|
81
|
+
throw new n8n_workflow_1.UserError('Connect Server URL is required.');
|
|
82
|
+
}
|
|
83
|
+
if (!trimmedAccessToken) {
|
|
84
|
+
throw new n8n_workflow_1.UserError('Access Token is required.');
|
|
85
|
+
}
|
|
86
|
+
this.settings = {
|
|
87
|
+
serverUrl: trimmedServerUrl,
|
|
88
|
+
accessToken: trimmedAccessToken,
|
|
89
|
+
};
|
|
80
90
|
}
|
|
81
|
-
|
|
82
|
-
|
|
91
|
+
catch (error) {
|
|
92
|
+
this.logOperationFailure('Failed to initialize 1Password provider', {
|
|
93
|
+
operation: 'initialize',
|
|
94
|
+
error,
|
|
95
|
+
});
|
|
96
|
+
throw error;
|
|
83
97
|
}
|
|
84
|
-
this.settings = {
|
|
85
|
-
serverUrl: trimmedServerUrl,
|
|
86
|
-
accessToken: trimmedAccessToken,
|
|
87
|
-
};
|
|
88
98
|
}
|
|
89
99
|
async doConnect() {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
try {
|
|
101
|
+
const { OnePasswordConnect } = await Promise.resolve().then(() => __importStar(require('@1password/connect')));
|
|
102
|
+
this.client = OnePasswordConnect({
|
|
103
|
+
serverURL: this.settings.serverUrl,
|
|
104
|
+
token: this.settings.accessToken,
|
|
105
|
+
keepAlive: true,
|
|
106
|
+
});
|
|
107
|
+
await this.verifyConnection();
|
|
108
|
+
this.logger.debug('1Password provider connected');
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
this.logOperationFailure('Failed to connect 1Password provider', {
|
|
112
|
+
operation: 'connect',
|
|
113
|
+
error,
|
|
114
|
+
context: (0, secrets_provider_errors_1.buildHttpProviderErrorContext)(error),
|
|
115
|
+
});
|
|
116
|
+
throw error;
|
|
99
117
|
}
|
|
100
|
-
this.logger.debug('1Password provider connected');
|
|
101
118
|
}
|
|
102
119
|
async test() {
|
|
103
120
|
if (!this.client)
|
|
104
121
|
return [false, 'Client not initialized'];
|
|
105
122
|
try {
|
|
106
|
-
await this.
|
|
123
|
+
await this.verifyConnection();
|
|
107
124
|
return [true];
|
|
108
125
|
}
|
|
109
126
|
catch (error) {
|
|
127
|
+
this.logOperationFailure('1Password provider test failed', {
|
|
128
|
+
operation: 'test',
|
|
129
|
+
error,
|
|
130
|
+
context: {
|
|
131
|
+
...(0, secrets_provider_errors_1.buildHttpProviderErrorContext)(error),
|
|
132
|
+
endpoint: 'vaults',
|
|
133
|
+
},
|
|
134
|
+
});
|
|
110
135
|
return [false, error instanceof Error ? error.message : 'Unknown error'];
|
|
111
136
|
}
|
|
112
137
|
}
|
|
113
138
|
async disconnect() {
|
|
114
139
|
}
|
|
115
140
|
async update() {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
const items = await this.client.listItems(vault.id);
|
|
122
|
-
for (const item of items) {
|
|
123
|
-
if (!item.id || !item.title)
|
|
124
|
-
continue;
|
|
125
|
-
const fullItem = await this.client.getItemById(vault.id, item.id);
|
|
126
|
-
if (!fullItem.fields?.length)
|
|
141
|
+
try {
|
|
142
|
+
const vaults = await this.client.listVaults();
|
|
143
|
+
const secrets = {};
|
|
144
|
+
for (const vault of vaults) {
|
|
145
|
+
if (!vault.id)
|
|
127
146
|
continue;
|
|
128
|
-
const
|
|
129
|
-
for (const
|
|
130
|
-
if (
|
|
131
|
-
|
|
147
|
+
const items = await this.client.listItems(vault.id);
|
|
148
|
+
for (const item of items) {
|
|
149
|
+
if (!item.id || !item.title)
|
|
150
|
+
continue;
|
|
151
|
+
const fullItem = await this.client.getItemById(vault.id, item.id);
|
|
152
|
+
if (!fullItem.fields?.length)
|
|
153
|
+
continue;
|
|
154
|
+
const fieldValues = {};
|
|
155
|
+
for (const field of fullItem.fields) {
|
|
156
|
+
if (field.label && field.value) {
|
|
157
|
+
fieldValues[field.label] = field.value;
|
|
158
|
+
}
|
|
132
159
|
}
|
|
160
|
+
if (Object.keys(fieldValues).length === 0)
|
|
161
|
+
continue;
|
|
162
|
+
secrets[item.title] = fieldValues;
|
|
133
163
|
}
|
|
134
|
-
if (Object.keys(fieldValues).length === 0)
|
|
135
|
-
continue;
|
|
136
|
-
secrets[item.title] = fieldValues;
|
|
137
164
|
}
|
|
165
|
+
this.cachedSecrets = secrets;
|
|
166
|
+
this.logger.debug('1Password provider secrets updated');
|
|
167
|
+
}
|
|
168
|
+
catch (error) {
|
|
169
|
+
this.logOperationFailure('Failed to update 1Password provider secrets', {
|
|
170
|
+
operation: 'update',
|
|
171
|
+
error,
|
|
172
|
+
context: {
|
|
173
|
+
...(0, secrets_provider_errors_1.buildHttpProviderErrorContext)(error),
|
|
174
|
+
endpoint: 'secrets',
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
throw error;
|
|
138
178
|
}
|
|
139
|
-
this.cachedSecrets = secrets;
|
|
140
|
-
this.logger.debug('1Password provider secrets updated');
|
|
141
179
|
}
|
|
142
180
|
getSecret(name) {
|
|
143
181
|
return this.cachedSecrets[name];
|
|
@@ -148,6 +186,24 @@ class OnePasswordProvider extends types_1.SecretsProvider {
|
|
|
148
186
|
getSecretNames() {
|
|
149
187
|
return Object.keys(this.cachedSecrets);
|
|
150
188
|
}
|
|
189
|
+
async verifyConnection() {
|
|
190
|
+
await this.client.listVaults();
|
|
191
|
+
}
|
|
192
|
+
logOperationFailure(message, params) {
|
|
193
|
+
const context = { ...params.context };
|
|
194
|
+
if (this.settings?.serverUrl) {
|
|
195
|
+
context.serverUrl = this.settings.serverUrl;
|
|
196
|
+
}
|
|
197
|
+
(0, secrets_provider_errors_1.logSecretsProviderOperationFailure)({
|
|
198
|
+
logger: this.logger,
|
|
199
|
+
message,
|
|
200
|
+
providerName: this.name,
|
|
201
|
+
providerDisplayName: this.displayName,
|
|
202
|
+
operation: params.operation,
|
|
203
|
+
error: params.error,
|
|
204
|
+
context,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
151
207
|
}
|
|
152
208
|
exports.OnePasswordProvider = OnePasswordProvider;
|
|
153
209
|
//# sourceMappingURL=one-password.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-password.js","sourceRoot":"","sources":["../../../../src/modules/external-secrets.ee/providers/one-password.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAA6C;AAC7C,gCAAoC;AACpC,+CAAiF;AAEjF,4CAAgD;AAChD,oCAAyE;
|
|
1
|
+
{"version":3,"file":"one-password.js","sourceRoot":"","sources":["../../../../src/modules/external-secrets.ee/providers/one-password.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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ClD,IAAI,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAC;YAC9B,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC7C,CAAC;QAED,IAAA,4DAAkC,EAAC;YAClC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,OAAO;YACP,YAAY,EAAE,IAAI,CAAC,IAAI;YACvB,mBAAmB,EAAE,IAAI,CAAC,WAAW;YACrC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,OAAO;SACP,CAAC,CAAC;IACJ,CAAC;CACD;AAtMD,kDAsMC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '@n8n/backend-common';
|
|
2
2
|
import { OutboundHttp } from '@n8n/backend-network';
|
|
3
|
-
import type
|
|
3
|
+
import { type IDataObject, type INodeProperties } from 'n8n-workflow';
|
|
4
4
|
import type { SecretsProviderSettings } from '../types';
|
|
5
5
|
import { SecretsProvider } from '../types';
|
|
6
6
|
export declare class VaultProvider extends SecretsProvider {
|
|
@@ -34,4 +34,6 @@ export declare class VaultProvider extends SecretsProvider {
|
|
|
34
34
|
getSecretNames(): string[];
|
|
35
35
|
private buildAuthHeaders;
|
|
36
36
|
private requestFull;
|
|
37
|
+
private isVaultAuthFailure;
|
|
38
|
+
private logOperationFailure;
|
|
37
39
|
}
|