n8n 2.43.4 → 2.44.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.d.ts +2 -0
- package/dist/abstract-server.js +12 -1
- package/dist/abstract-server.js.map +1 -1
- package/dist/agent-library-bundle.js +8 -0
- package/dist/auth/auth.service.js +1 -1
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/binary-data/binary-data-access.service.d.ts +4 -1
- package/dist/binary-data/binary-data-access.service.js +20 -6
- package/dist/binary-data/binary-data-access.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-execution-manager.js +1 -0
- package/dist/chat/chat-execution-manager.js.map +1 -1
- package/dist/commands/base-command.d.ts +4 -0
- package/dist/commands/base-command.js +10 -3
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/engine.d.ts +1 -0
- package/dist/commands/engine.js +16 -0
- package/dist/commands/engine.js.map +1 -1
- package/dist/commands/start.js +0 -4
- 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/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/crash-journal.js +1 -1
- package/dist/crash-journal.js.map +1 -1
- package/dist/credentials/credential-options.controller.d.ts +10 -0
- package/dist/credentials/credential-options.controller.js +64 -0
- package/dist/credentials/credential-options.controller.js.map +1 -0
- package/dist/credentials/credential-options.service.d.ts +21 -0
- package/dist/credentials/credential-options.service.js +105 -0
- package/dist/credentials/credential-options.service.js.map +1 -0
- package/dist/credentials/credentials.service.d.ts +12 -2
- package/dist/credentials/credentials.service.ee.d.ts +3 -1
- package/dist/credentials/credentials.service.ee.js +8 -2
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +44 -18
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/pending-authorization-cleanup.task.js +5 -1
- package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
- package/dist/errors/job-returned-to-queue.error.d.ts +5 -0
- package/dist/errors/job-returned-to-queue.error.js +12 -0
- package/dist/errors/job-returned-to-queue.error.js.map +1 -0
- package/dist/events/maps/relay.event-map.d.ts +24 -2
- package/dist/events/maps/system-task-metrics.event-map.d.ts +1 -1
- package/dist/events/maps/system-task-metrics.event-map.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +2 -0
- package/dist/events/relays/telemetry.event-relay.js +66 -2
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/executions/engine-v2-execution-reader.service.d.ts +4 -0
- package/dist/executions/engine-v2-execution-reader.service.js +11 -0
- package/dist/executions/engine-v2-execution-reader.service.js.map +1 -1
- package/dist/executions/enqueued-execution-recovery.service.js +5 -1
- package/dist/executions/enqueued-execution-recovery.service.js.map +1 -1
- package/dist/executions/execution-crash.service.d.ts +3 -1
- package/dist/executions/execution-crash.service.js +4 -4
- package/dist/executions/execution-crash.service.js.map +1 -1
- package/dist/executions/execution-id.d.ts +1 -0
- package/dist/executions/execution-id.js +4 -1
- package/dist/executions/execution-id.js.map +1 -1
- package/dist/executions/execution-persistence.js +1 -1
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution-recovery.service.d.ts +1 -0
- package/dist/executions/execution-recovery.service.js +17 -5
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +3 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +32 -3
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/interfaces.d.ts +4 -1
- package/dist/license/license-renewal.task.d.ts +3 -0
- package/dist/license/license-renewal.task.js +4 -1
- package/dist/license/license-renewal.task.js.map +1 -1
- package/dist/license.js +14 -3
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +6 -0
- package/dist/load-nodes-and-credentials.js +28 -12
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/manual-execution.service.d.ts +5 -3
- package/dist/manual-execution.service.js +7 -6
- package/dist/manual-execution.service.js.map +1 -1
- package/dist/metrics/prometheus/active-workflow-metrics.service.d.ts +3 -5
- package/dist/metrics/prometheus/active-workflow-metrics.service.js +6 -13
- package/dist/metrics/prometheus/active-workflow-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/cached-metric-query.d.ts +14 -3
- package/dist/metrics/prometheus/cached-metric-query.js +59 -7
- package/dist/metrics/prometheus/cached-metric-query.js.map +1 -1
- package/dist/metrics/prometheus/constant.d.ts +1 -0
- package/dist/metrics/prometheus/constant.js +2 -1
- package/dist/metrics/prometheus/constant.js.map +1 -1
- package/dist/metrics/prometheus/database-metric-query.service.d.ts +39 -0
- package/dist/metrics/prometheus/database-metric-query.service.js +88 -0
- package/dist/metrics/prometheus/database-metric-query.service.js.map +1 -0
- package/dist/metrics/prometheus/db-pool-metrics.service.js +21 -0
- package/dist/metrics/prometheus/db-pool-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/prometheus.service.d.ts +3 -1
- package/dist/metrics/prometheus/prometheus.service.js +7 -3
- package/dist/metrics/prometheus/prometheus.service.js.map +1 -1
- package/dist/metrics/prometheus/scheduler-metrics.service.d.ts +7 -5
- package/dist/metrics/prometheus/scheduler-metrics.service.js +30 -23
- package/dist/metrics/prometheus/scheduler-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/system-task-metrics.service.d.ts +4 -6
- package/dist/metrics/prometheus/system-task-metrics.service.js +9 -22
- package/dist/metrics/prometheus/system-task-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-info-metrics.service.d.ts +3 -5
- package/dist/metrics/prometheus/workflow-info-metrics.service.js +14 -20
- package/dist/metrics/prometheus/workflow-info-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-publication-metrics.service.d.ts +4 -5
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js +10 -22
- package/dist/metrics/prometheus/workflow-publication-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.d.ts +3 -5
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js +6 -13
- package/dist/metrics/prometheus/workflow-statistics-metrics.service.js.map +1 -1
- package/dist/middlewares/content-security-policy.js +45 -10
- package/dist/middlewares/content-security-policy.js.map +1 -1
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.d.ts +2 -0
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.js +9 -0
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +8 -2
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js +113 -14
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.d.ts +21 -0
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.js +55 -0
- package/dist/modules/agent-evals/agent-eval-fix-suggestion.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.d.ts +22 -0
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js +108 -0
- package/dist/modules/agent-evals/agent-eval-instructions-rewrite.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-judge.d.ts +22 -0
- package/dist/modules/agent-evals/agent-eval-judge.js +36 -0
- package/dist/modules/agent-evals/agent-eval-judge.js.map +1 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.js +8 -0
- package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-runner.service.d.ts +12 -2
- package/dist/modules/agent-evals/agent-eval-runner.service.js +102 -2
- package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval.service.d.ts +17 -3
- package/dist/modules/agent-evals/agent-eval.service.js +185 -2
- package/dist/modules/agent-evals/agent-eval.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-evals.controller.d.ts +16 -2
- package/dist/modules/agent-evals/agent-evals.controller.js +111 -2
- package/dist/modules/agent-evals/agent-evals.controller.js.map +1 -1
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.d.ts +18 -1
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.js +47 -9
- package/dist/modules/agent-evals/case-generation/case-generation-prompt.js.map +1 -1
- package/dist/modules/agents/agent-budget-alert.service.d.ts +21 -0
- package/dist/modules/agents/agent-budget-alert.service.js +82 -0
- package/dist/modules/agents/agent-budget-alert.service.js.map +1 -0
- package/dist/modules/agents/agent-chat-execution.service.d.ts +6 -2
- package/dist/modules/agents/agent-chat-execution.service.js +13 -15
- package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-chat.controller.d.ts +36 -0
- package/dist/modules/agents/agent-chat.controller.js +149 -54
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +5 -2
- package/dist/modules/agents/agent-checkpoint-pruning.task.js +7 -4
- package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/agents/agent-config-preparation.service.d.ts +325 -0
- package/dist/modules/agents/agent-config-preparation.service.js +100 -0
- package/dist/modules/agents/agent-config-preparation.service.js.map +1 -0
- package/dist/modules/agents/agent-config.service.d.ts +15 -18
- package/dist/modules/agents/agent-config.service.js +58 -129
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-context-readers.js +1 -2
- package/dist/modules/agents/agent-context-readers.js.map +1 -1
- package/dist/modules/agents/agent-custom-tools.service.d.ts +8 -9
- package/dist/modules/agents/agent-custom-tools.service.js +14 -19
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-definition.service.d.ts +19 -0
- package/dist/modules/agents/agent-definition.service.js +75 -0
- package/dist/modules/agents/agent-definition.service.js.map +1 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +10 -8
- package/dist/modules/agents/agent-execution-orchestrator.service.js +250 -146
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-update-broadcaster.js +2 -1
- package/dist/modules/agents/agent-execution-update-broadcaster.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +9 -1
- package/dist/modules/agents/agent-execution.service.js +22 -1
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -1
- package/dist/modules/agents/agent-integration-persistence.service.js +23 -15
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.d.ts +12 -2
- package/dist/modules/agents/agent-integrations.controller.js +49 -4
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +12 -0
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +36 -0
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -0
- package/dist/modules/agents/agent-interrupted-execution-sweeper.d.ts +3 -2
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js +20 -7
- package/dist/modules/agents/agent-interrupted-execution-sweeper.js.map +1 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.js +2 -5
- package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
- package/dist/modules/agents/agent-message-queue.service.d.ts +3 -1
- package/dist/modules/agents/agent-message-queue.service.js +7 -5
- package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
- package/dist/modules/agents/agent-message-steering.service.d.ts +2 -1
- package/dist/modules/agents/agent-message-steering.service.js +17 -9
- package/dist/modules/agents/agent-message-steering.service.js.map +1 -1
- package/dist/modules/agents/agent-modification-telemetry.service.d.ts +33 -3
- package/dist/modules/agents/agent-modification-telemetry.service.js +11 -8
- package/dist/modules/agents/agent-modification-telemetry.service.js.map +1 -1
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.d.ts +4 -0
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.js +11 -0
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.js.map +1 -0
- package/dist/modules/agents/agent-policy.service.d.ts +10 -0
- package/dist/modules/agents/agent-policy.service.js +44 -0
- package/dist/modules/agents/agent-policy.service.js.map +1 -0
- package/dist/modules/agents/agent-publish.service.d.ts +17 -8
- package/dist/modules/agents/agent-publish.service.js +95 -113
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-push-recipients.service.d.ts +1 -0
- package/dist/modules/agents/agent-push-recipients.service.js +5 -2
- package/dist/modules/agents/agent-push-recipients.service.js.map +1 -1
- package/dist/modules/agents/agent-runnable-state.service.d.ts +3 -1
- package/dist/modules/agents/agent-runnable-state.service.js +5 -3
- package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.d.ts +3 -1
- package/dist/modules/agents/agent-runtime-cache.service.js +7 -7
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-instrumentation.d.ts +6 -0
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +2 -2
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +23 -16
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-save-completion.service.d.ts +14 -0
- package/dist/modules/agents/agent-save-completion.service.js +51 -0
- package/dist/modules/agents/agent-save-completion.service.js.map +1 -0
- package/dist/modules/agents/agent-setup-completion.service.d.ts +2 -1
- package/dist/modules/agents/agent-setup-completion.service.js +5 -3
- package/dist/modules/agents/agent-setup-completion.service.js.map +1 -1
- package/dist/modules/agents/agent-skill-refs.service.d.ts +12 -0
- package/dist/modules/agents/agent-skill-refs.service.js +52 -0
- package/dist/modules/agents/agent-skill-refs.service.js.map +1 -0
- package/dist/modules/agents/agent-skills.service.d.ts +14 -8
- package/dist/modules/agents/agent-skills.service.js +64 -41
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-sse-stream.d.ts +1 -0
- package/dist/modules/agents/agent-sse-stream.js +15 -0
- package/dist/modules/agents/agent-sse-stream.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +12 -7
- package/dist/modules/agents/agent-task.service.js +35 -31
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-telemetry.d.ts +2 -2
- package/dist/modules/agents/agent-telemetry.js +3 -2
- package/dist/modules/agents/agent-telemetry.js.map +1 -1
- package/dist/modules/agents/agent-test-run.service.d.ts +4 -2
- package/dist/modules/agents/agent-test-run.service.js +2 -2
- package/dist/modules/agents/agent-test-run.service.js.map +1 -1
- package/dist/modules/agents/agent-threads.controller.js +2 -1
- package/dist/modules/agents/agent-threads.controller.js.map +1 -1
- package/dist/modules/agents/agent-tool-approval.service.d.ts +1 -1
- package/dist/modules/agents/agent-tool-approval.service.js +2 -1
- package/dist/modules/agents/agent-tool-approval.service.js.map +1 -1
- package/dist/modules/agents/agent-turn-execution.service.d.ts +4 -4
- package/dist/modules/agents/agent-turn-execution.service.js +27 -25
- package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +11 -7
- package/dist/modules/agents/agent-validation.service.js +60 -30
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +13 -5
- package/dist/modules/agents/agent-workflow-execution.service.js +44 -20
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-tool-resume.service.js +2 -3
- package/dist/modules/agents/agent-workflow-tool-resume.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +16 -0
- package/dist/modules/agents/agents-list.controller.d.ts +4 -1
- package/dist/modules/agents/agents-list.controller.js +44 -0
- package/dist/modules/agents/agents-list.controller.js.map +1 -1
- package/dist/modules/agents/agents.controller.js +1 -0
- package/dist/modules/agents/agents.controller.js.map +1 -1
- package/dist/modules/agents/agents.module.d.ts +1 -3
- package/dist/modules/agents/agents.module.js +9 -25
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +21 -5
- package/dist/modules/agents/agents.service.js +63 -12
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/background/agent-background-job.service.d.ts +3 -3
- package/dist/modules/agents/background/agent-background-job.service.js +39 -10
- package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
- package/dist/modules/agents/background/agent-wake.service.js +13 -5
- package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
- package/dist/modules/agents/background/background-job-tools.d.ts +2 -2
- package/dist/modules/agents/background/background-job-tools.js +9 -58
- package/dist/modules/agents/background/background-job-tools.js.map +1 -1
- package/dist/modules/agents/budget-guardrail.d.ts +1 -0
- package/dist/modules/agents/budget-guardrail.js +42 -1
- package/dist/modules/agents/budget-guardrail.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +5 -5
- package/dist/modules/agents/builder/agents-builder-prompts.js +52 -31
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +189 -89
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/get-resource-locator-options.tool.d.ts +2 -2
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +25 -12
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +1 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +4 -4
- package/dist/modules/agents/builder/skills/node-tools.skill.js +4 -4
- package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +14 -8
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/verify-mcp-server.tool.d.ts +9 -3
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +16 -3
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
- package/dist/modules/agents/entities/agent-history.entity.d.ts +2 -2
- package/dist/modules/agents/entities/agent-history.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +2 -2
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +3 -1
- package/dist/modules/agents/instance-ai-agent-context.adapter.js +5 -3
- package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +4 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js +67 -20
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +18 -3
- package/dist/modules/agents/integrations/agent-chat-integration.js +1 -0
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +4 -0
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +81 -24
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/channel-rate-limit.d.ts +6 -0
- package/dist/modules/agents/integrations/channel-rate-limit.js +11 -1
- package/dist/modules/agents/integrations/channel-rate-limit.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +6 -0
- package/dist/modules/agents/integrations/component-mapper.js +16 -3
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/esm-loader.d.ts +1 -0
- package/dist/modules/agents/integrations/esm-loader.js +4 -0
- package/dist/modules/agents/integrations/esm-loader.js.map +1 -1
- package/dist/modules/agents/integrations/integration-helpers.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-helpers.js +7 -0
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-execution.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js +13 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.js +1 -0
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +7 -0
- package/dist/modules/agents/integrations/n8n-memory.js +24 -10
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +2 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +2 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +15 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +63 -2
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +11 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +5 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.d.ts +43 -0
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.js +337 -0
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +1 -0
- package/dist/modules/agents/json-config/agent-config-composition.d.ts +2 -1
- package/dist/modules/agents/json-config/agent-config-composition.js +3 -2
- package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -1
- package/dist/modules/agents/json-config/agent-document.d.ts +7 -0
- package/dist/modules/agents/json-config/agent-document.js +13 -0
- package/dist/modules/agents/json-config/agent-document.js.map +1 -0
- package/dist/modules/agents/json-config/credential-field-mapping.d.ts +1 -1
- package/dist/modules/agents/json-config/credential-field-mapping.js +33 -8
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.js +6 -0
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.js +13 -1
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/json-config/prune-missing-config-references.d.ts +5 -0
- package/dist/modules/agents/json-config/prune-missing-config-references.js +20 -0
- package/dist/modules/agents/json-config/prune-missing-config-references.js.map +1 -0
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js +8 -94
- package/dist/modules/agents/json-config/sanitize-unknown-agent-credentials.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan-tools.js +3 -3
- package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
- package/dist/modules/agents/register-favorite-resolver.js +2 -2
- package/dist/modules/agents/register-favorite-resolver.js.map +1 -1
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js +4 -1
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +10 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +67 -8
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +8 -9
- package/dist/modules/agents/repositories/agent-history.repository.js +9 -8
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +15 -2
- package/dist/modules/agents/repositories/agent-message-queue.repository.js +9 -2
- package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +6 -5
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js +9 -8
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task.repository.d.ts +9 -4
- package/dist/modules/agents/repositories/agent-task.repository.js +40 -6
- package/dist/modules/agents/repositories/agent-task.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-thread.repository.d.ts +6 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js +20 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +23 -9
- package/dist/modules/agents/repositories/agent.repository.js +118 -15
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.d.ts +1 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +2 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.d.ts +3 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +8 -5
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +3 -14
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +4 -2
- package/dist/modules/agents/tools/workflow-tool-factory.js +39 -13
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +5 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -1
- package/dist/modules/agents/types/agent-queued-message.d.ts +1 -0
- package/dist/modules/agents/types/agent-queued-message.js +3 -1
- package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
- package/dist/modules/agents/utils/agent-config-hash.d.ts +1 -0
- package/dist/modules/agents/utils/agent-config-hash.js +4 -0
- package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
- package/dist/modules/agents/utils/agent-definition.d.ts +329 -0
- package/dist/modules/agents/utils/agent-definition.js +17 -0
- package/dist/modules/agents/utils/agent-definition.js.map +1 -0
- package/dist/modules/agents/utils/agent-draft.utils.d.ts +2 -3
- package/dist/modules/agents/utils/agent-draft.utils.js +2 -2
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
- package/dist/modules/agents/utils/agent-execution-counter.d.ts +2 -1
- package/dist/modules/agents/utils/agent-execution-counter.js +4 -1
- package/dist/modules/agents/utils/agent-execution-counter.js.map +1 -1
- package/dist/modules/agents/utils/agent-missing-skill-ids.d.ts +3 -2
- package/dist/modules/agents/utils/agent-missing-skill-ids.js +2 -2
- package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -1
- package/dist/modules/agents/utils/agent-published-snapshot.d.ts +8 -1
- package/dist/modules/agents/utils/agent-published-snapshot.js +21 -7
- package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
- package/dist/modules/agents/utils/agent-ref.d.ts +8 -0
- package/dist/modules/agents/utils/agent-ref.js +12 -0
- package/dist/modules/agents/utils/agent-ref.js.map +1 -0
- package/dist/modules/agents/utils/agent-thread-access.d.ts +3 -1
- package/dist/modules/agents/utils/agent-thread-access.js +7 -0
- package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
- package/dist/modules/agents/utils/extract-agent-credential-ids.d.ts +1 -2
- package/dist/modules/agents/utils/extract-agent-credential-ids.js +6 -33
- package/dist/modules/agents/utils/extract-agent-credential-ids.js.map +1 -1
- package/dist/modules/agents/utils/extract-agent-workflow-refs.d.ts +1 -1
- package/dist/modules/agents/utils/extract-agent-workflow-refs.js.map +1 -1
- package/dist/modules/agents/utils/parse-thread-list-limit.d.ts +1 -0
- package/dist/modules/agents/utils/parse-thread-list-limit.js +7 -0
- package/dist/modules/agents/utils/parse-thread-list-limit.js.map +1 -0
- package/dist/modules/agents/utils/skill-instruction-edits.d.ts +5 -0
- package/dist/modules/agents/utils/skill-instruction-edits.js +15 -0
- package/dist/modules/agents/utils/skill-instruction-edits.js.map +1 -0
- package/dist/modules/agents/utils/visit-agent-credential-references.d.ts +8 -0
- package/dist/modules/agents/utils/visit-agent-credential-references.js +67 -0
- package/dist/modules/agents/utils/visit-agent-credential-references.js.map +1 -0
- package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +17 -5
- package/dist/modules/breaking-changes/breaking-changes.controller.js +94 -8
- package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.module.d.ts +1 -1
- package/dist/modules/breaking-changes/breaking-changes.module.js +2 -1
- package/dist/modules/breaking-changes/breaking-changes.module.js.map +1 -1
- package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.d.ts +14 -0
- package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js +57 -0
- package/dist/modules/breaking-changes/database/entities/migration-workflow-owner.entity.js.map +1 -0
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +12 -6
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +104 -30
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
- package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.d.ts +14 -0
- package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js +79 -0
- package/dist/modules/breaking-changes/database/repositories/migration-workflow-owner.repository.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/index.js +1 -2
- package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
- package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.d.ts +17 -0
- package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js +64 -0
- package/dist/modules/breaking-changes/owners/migration-owner-assignment.service.js.map +1 -0
- package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.d.ts +16 -0
- package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js +113 -0
- package/dist/modules/breaking-changes/owners/migration-owner-suggestion.service.js.map +1 -0
- package/dist/modules/breaking-changes/owners/workflow-owner.d.ts +3 -0
- package/dist/modules/breaking-changes/owners/workflow-owner.js +13 -0
- package/dist/modules/breaking-changes/owners/workflow-owner.js.map +1 -0
- package/dist/modules/breaking-changes/query/migration-finding-query.service.d.ts +16 -5
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js +51 -16
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +0 -1
- package/dist/modules/breaking-changes/rules/index.js +0 -1
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -1
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.d.ts +7 -3
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +22 -15
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
- package/dist/modules/breaking-changes/triage/migration-finding-triage.service.d.ts +11 -0
- package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js +47 -0
- package/dist/modules/breaking-changes/triage/migration-finding-triage.service.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub-execution.service.js +1 -0
- package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
- package/dist/modules/community-packages/community-node.command.d.ts +1 -1
- package/dist/modules/data-table/data-table-column.repository.d.ts +12 -4
- package/dist/modules/data-table/data-table-column.repository.js +51 -6
- package/dist/modules/data-table/data-table-column.repository.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.d.ts +5 -7
- package/dist/modules/data-table/data-table-file-cleanup.service.js +35 -37
- package/dist/modules/data-table/data-table-file-cleanup.service.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +14 -0
- package/dist/modules/data-table/data-table-file-cleanup.task.js +37 -0
- package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -0
- package/dist/modules/data-table/data-table.module.d.ts +2 -1
- package/dist/modules/data-table/data-table.module.js +4 -4
- package/dist/modules/data-table/data-table.module.js.map +1 -1
- package/dist/modules/data-table/data-table.repository.d.ts +1 -1
- package/dist/modules/data-table/data-table.repository.js +2 -1
- package/dist/modules/data-table/data-table.repository.js.map +1 -1
- package/dist/modules/data-table/data-table.service.d.ts +8 -1
- package/dist/modules/data-table/data-table.service.js +11 -2
- package/dist/modules/data-table/data-table.service.js.map +1 -1
- package/dist/modules/data-table/register-favorite-resolver.js +2 -2
- package/dist/modules/data-table/register-favorite-resolver.js.map +1 -1
- package/dist/modules/data-table/utils/pair-columns.d.ts +27 -0
- package/dist/modules/data-table/utils/pair-columns.js +48 -0
- package/dist/modules/data-table/utils/pair-columns.js.map +1 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +40 -52
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +55 -40
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.d.ts +1 -4
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +2 -15
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +13 -0
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +36 -0
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -0
- package/dist/modules/external-secrets.ee/external-secrets.config.js +1 -1
- package/dist/modules/external-secrets.ee/external-secrets.config.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets.module.d.ts +1 -0
- package/dist/modules/external-secrets.ee/external-secrets.module.js +4 -0
- package/dist/modules/external-secrets.ee/external-secrets.module.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/one-password.js +1 -1
- package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
- package/dist/modules/external-secrets.ee/secrets-cache.service.d.ts +4 -2
- package/dist/modules/external-secrets.ee/secrets-cache.service.js +25 -8
- package/dist/modules/external-secrets.ee/secrets-cache.service.js.map +1 -1
- package/dist/modules/favorites/favorites.service.d.ts +1 -1
- package/dist/modules/favorites/favorites.service.js +2 -2
- package/dist/modules/favorites/favorites.service.js.map +1 -1
- package/dist/modules/inbound-auth-core/authentication-pipeline.d.ts +11 -0
- package/dist/modules/inbound-auth-core/authentication-pipeline.js +50 -0
- package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -0
- package/dist/modules/inbound-auth-core/authentication.service.d.ts +12 -0
- package/dist/modules/inbound-auth-core/authentication.service.js +86 -0
- package/dist/modules/inbound-auth-core/authentication.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.d.ts +3 -0
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js +12 -0
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js.map +1 -1
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.d.ts +20 -3
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js +70 -2
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source-identity.repository.js.map +1 -1
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.d.ts +15 -3
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +58 -2
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
- package/dist/modules/inbound-auth-core/grant-authorization.d.ts +4 -0
- package/dist/modules/inbound-auth-core/grant-authorization.js +10 -0
- package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -0
- package/dist/modules/inbound-auth-core/identity/external-identity.d.ts +3 -0
- package/dist/modules/inbound-auth-core/identity/external-identity.js +86 -0
- package/dist/modules/inbound-auth-core/identity/external-identity.js.map +1 -0
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +27 -0
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +287 -0
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.d.ts +1 -0
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +30 -20
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
- package/dist/modules/inbound-auth-core/key.utils.d.ts +2 -0
- package/dist/modules/inbound-auth-core/key.utils.js +18 -0
- package/dist/modules/inbound-auth-core/key.utils.js.map +1 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +16 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +171 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +52 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +74 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.d.ts +19 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js +141 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +12 -0
- package/dist/modules/{insights/insights-compaction.task.js → inbound-auth-core/trusted-source-discovery.task.js} +14 -16
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.gate.d.ts +13 -0
- package/dist/modules/inbound-auth-core/trusted-source.gate.js +53 -0
- package/dist/modules/inbound-auth-core/trusted-source.gate.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +18 -16
- package/dist/modules/inbound-auth-core/trusted-source.store.js +107 -7
- package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.d.ts +2 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.js +42 -37
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +7 -2
- package/dist/modules/instance-ai/eval/execution.service.js +150 -22
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +6 -3
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js +2 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.d.ts +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js +2 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.d.ts +1 -0
- package/dist/modules/instance-ai/eval/workflow-analysis.js +25 -9
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +4 -2
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +5 -2
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +3 -0
- package/dist/modules/instance-ai/instance-ai-credit.service.js +18 -0
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +1 -0
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.d.ts +10 -1
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js +74 -5
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +29 -7
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +28 -2
- package/dist/modules/instance-ai/instance-ai.controller.js +5 -3
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.module.js +8 -0
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +10 -1
- package/dist/modules/instance-ai/instance-ai.service.js +164 -24
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-context.service.js +4 -5
- package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.d.ts +5 -3
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js +24 -4
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.d.ts +23 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js +100 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.entity.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +10 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +50 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.d.ts +16 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js +77 -0
- package/dist/modules/instance-ai/self-healing/self-healing-execution-reference.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.d.ts +33 -0
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +178 -0
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -0
- package/dist/modules/instance-ai/self-healing/self-healing-results.controller.d.ts +16 -0
- package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js +69 -0
- package/dist/modules/instance-ai/self-healing/self-healing-results.controller.js.map +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.d.ts +3 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js +10 -0
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion-activity.entity.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.d.ts +6 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js +20 -0
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.entity.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.d.ts +5 -2
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js +45 -1
- package/dist/modules/instance-ai/workflow-suggestions/database/workflow-suggestion.repository.js.map +1 -1
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.d.ts +26 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js +173 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-actions.service.js.map +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.d.ts +6 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js +57 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion-event-relay.service.js.map +1 -0
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.d.ts +29 -5
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js +86 -25
- package/dist/modules/instance-ai/workflow-suggestions/workflow-suggestion.service.js.map +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.d.ts +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js +2 -2
- package/dist/modules/instance-reporting.ee/instance-reporting-settings.service.js.map +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting.service.d.ts +3 -2
- package/dist/modules/instance-reporting.ee/instance-reporting.service.js +23 -9
- package/dist/modules/instance-reporting.ee/instance-reporting.service.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +4 -3
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.d.ts +3 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +72 -43
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.js +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +6 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/publish-workflow.tool.js +1 -0
- package/dist/modules/mcp/tools/publish-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +2 -9
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-history.utils.js +1 -1
- package/dist/modules/mcp/tools/workflow-history.utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.d.ts +2 -1
- package/dist/modules/mcp/tools/workflow-validation.utils.js.map +1 -1
- package/dist/modules/modules.manifest.js +3 -1
- package/dist/modules/modules.manifest.js.map +1 -1
- package/dist/modules/n8n-packages/engine/credential-save-policy.d.ts +11 -0
- package/dist/modules/n8n-packages/engine/credential-save-policy.js +56 -0
- package/dist/modules/n8n-packages/engine/credential-save-policy.js.map +1 -0
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +2 -0
- package/dist/modules/n8n-packages/engine/import-gates.js +9 -0
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +4 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +106 -32
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/import-result.js +2 -2
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js +2 -0
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +6 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +72 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +7 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +1 -0
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-export.types.d.ts +39 -0
- package/dist/modules/n8n-packages/entities/agent/agent-export.types.js +3 -0
- package/dist/modules/n8n-packages/entities/agent/agent-export.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.d.ts +5 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js +3 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.d.ts +12 -0
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js +75 -0
- package/dist/modules/n8n-packages/entities/agent/agent-requirements.extractor.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js +173 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +76 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.d.ts +8 -0
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js +50 -0
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +1 -12
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +1 -2
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +12 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts +5 -4
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js +18 -1
- package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +19 -14
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +8 -5
- package/dist/modules/n8n-packages/entities/credential/credential.types.js +0 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-compat.d.ts +14 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js +52 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table-compat.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-importer.d.ts +10 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js +136 -30
- package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-matching-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.d.ts +9 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js +11 -8
- package/dist/modules/n8n-packages/entities/data-table/data-table-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.d.ts +2 -7
- package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js +16 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table-schema-conflict-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.d.ts +2 -3
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js +5 -19
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js +1 -0
- package/dist/modules/n8n-packages/entities/data-table/data-table.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.d.ts +46 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.js +0 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +4 -4
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project-export-access.d.ts +3 -0
- package/dist/modules/n8n-packages/entities/project/project-export-access.js +14 -0
- package/dist/modules/n8n-packages/entities/project/project-export-access.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project-shell.exporter.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js +35 -0
- package/dist/modules/n8n-packages/entities/project/project-shell.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +7 -7
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +20 -17
- package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/requirement-source.d.ts +13 -0
- package/dist/modules/n8n-packages/entities/requirement-source.js +23 -0
- package/dist/modules/n8n-packages/entities/requirement-source.js.map +1 -0
- package/dist/modules/n8n-packages/entities/requirements.types.d.ts +10 -10
- package/dist/modules/n8n-packages/entities/requirements.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-import-decision.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js +5 -19
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +3 -3
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.types.d.ts +1 -6
- package/dist/modules/n8n-packages/entities/tag/tag.types.js +3 -11
- package/dist/modules/n8n-packages/entities/tag/tag.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js +7 -6
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js +9 -3
- package/dist/modules/n8n-packages/entities/variable/variable-requirements.extractor.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.d.ts +0 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js +25 -28
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +6 -9
- package/dist/modules/n8n-packages/entities/variable/variable.types.js +1 -27
- package/dist/modules/n8n-packages/entities/variable/variable.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.d.ts +9 -7
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js +17 -31
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow-resolver.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +5 -6
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +6 -17
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +2 -1
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.d.ts +7 -10
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js +17 -13
- package/dist/modules/n8n-packages/entities/workflow/node-type-usage.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.d.ts +4 -1
- package/dist/modules/n8n-packages/entities/workflow/references/sub-workflow-node.reference.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/static-sub-workflow-requirements.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js +2 -1
- package/dist/modules/n8n-packages/entities/workflow/sub-workflow-ordering.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-dependency-resolver.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js +5 -11
- package/dist/modules/n8n-packages/entities/workflow/workflow-requirement.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.d.ts +3 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js +5 -5
- package/dist/modules/n8n-packages/entities/workflow/workflow-version-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.d.ts +4 -4
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +3 -3
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.types.d.ts +6 -0
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.d.ts +8 -0
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js +23 -0
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js.map +1 -1
- package/dist/modules/n8n-packages/io/manifest-entry.d.ts +5 -0
- package/dist/modules/n8n-packages/io/manifest-entry.js +6 -0
- package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +124 -59
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +29 -8
- package/dist/modules/n8n-packages/n8n-packages.types.js +5 -3
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +471 -97
- package/dist/modules/n8n-packages/spec/manifest.schema.js +12 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirement-consumers.d.ts +5 -0
- package/dist/modules/n8n-packages/spec/requirement-consumers.js +16 -0
- package/dist/modules/n8n-packages/spec/requirement-consumers.js.map +1 -0
- package/dist/modules/n8n-packages/spec/requirements.schema.d.ts +457 -82
- package/dist/modules/n8n-packages/spec/requirements.schema.js +37 -10
- package/dist/modules/n8n-packages/spec/requirements.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +3860 -0
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.js +55 -0
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.js.map +1 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.d.ts +10 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js +1 -0
- package/dist/modules/n8n-packages/spec/serialized/data-table.schema.js.map +1 -1
- package/dist/modules/n8n-packages/utils/import-package-upload.d.ts +3 -15
- package/dist/modules/n8n-packages/utils/import-package-upload.js +4 -60
- package/dist/modules/n8n-packages/utils/import-package-upload.js.map +1 -1
- package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +14 -0
- package/dist/modules/oauth-server/oauth-local-authorization-server.js +55 -0
- package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -0
- package/dist/modules/oauth-server/oauth-server.module.js +3 -0
- package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.constants.d.ts +3 -1
- package/dist/modules/oauth-server/oauth-signing-key.constants.js +4 -2
- package/dist/modules/oauth-server/oauth-signing-key.constants.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +16 -4
- package/dist/modules/oauth-server/oauth-signing-key.service.js +95 -19
- package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.d.ts +5 -3
- package/dist/modules/oauth-server/oauth-token.service.js +30 -21
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
- package/dist/modules/oauth-server/oauth.controller.js +17 -26
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/resource-gate.d.ts +0 -2
- package/dist/modules/oauth-server/resource-gate.js +2 -8
- package/dist/modules/oauth-server/resource-gate.js.map +1 -1
- package/dist/modules/otel/execution-identity.d.ts +27 -0
- package/dist/modules/otel/execution-identity.js +43 -0
- package/dist/modules/otel/execution-identity.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.d.ts +1 -0
- package/dist/modules/otel/execution-level-tracer.js +75 -37
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/execution-level-tracer.types.d.ts +5 -0
- package/dist/modules/otel/execution-level-tracer.types.js.map +1 -1
- package/dist/modules/otel/otel-lifecycle-handler.d.ts +5 -1
- package/dist/modules/otel/otel-lifecycle-handler.js +44 -16
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel-settings.service.js +2 -0
- package/dist/modules/otel/otel-settings.service.js.map +1 -1
- package/dist/modules/otel/otel.config.d.ts +2 -0
- package/dist/modules/otel/otel.config.js +10 -0
- package/dist/modules/otel/otel.config.js.map +1 -1
- package/dist/modules/otel/otel.constants.d.ts +3 -0
- package/dist/modules/otel/otel.constants.js +3 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/otel/otel.service.js +2 -1
- package/dist/modules/otel/otel.service.js.map +1 -1
- package/dist/modules/otel/tracing-context.d.ts +1 -0
- package/dist/modules/otel/tracing-context.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-decision-audit.d.ts +2 -0
- package/dist/modules/policy-infrastructure/policy-decision-audit.js +15 -11
- package/dist/modules/policy-infrastructure/policy-decision-audit.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-decision.service.js +1 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.js.map +1 -1
- package/dist/modules/promotions.ee/base-branch-files.d.ts +3 -3
- package/dist/modules/promotions.ee/base-branch-files.js.map +1 -1
- package/dist/modules/promotions.ee/branch-placement.d.ts +6 -7
- package/dist/modules/promotions.ee/branch-placement.js +19 -18
- package/dist/modules/promotions.ee/branch-placement.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.d.ts +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +13 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -1
- package/dist/modules/promotions.ee/git-hosts/git-host-clients.d.ts +8 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-clients.js +28 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-clients.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +7 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.js +3 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +10 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +151 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -0
- package/dist/modules/promotions.ee/import-manifest-bridge.d.ts +2 -0
- package/dist/modules/promotions.ee/import-manifest-bridge.js +20 -14
- package/dist/modules/promotions.ee/import-manifest-bridge.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +6 -1
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +35 -3
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-change.service.js +12 -6
- package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -1
- package/dist/modules/promotions.ee/promotion-providers.service.d.ts +10 -4
- package/dist/modules/promotions.ee/promotion-providers.service.js +100 -29
- package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.service.js +41 -14
- package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.types.d.ts +2 -0
- package/dist/modules/promotions.ee/working-copy-updater.d.ts +3 -1
- package/dist/modules/promotions.ee/working-copy-updater.js +51 -29
- package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js +9 -3
- package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +5 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +2 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +14 -0
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.js +33 -0
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.js.map +1 -0
- package/dist/modules/provisioning.ee/role-resolver-types.d.ts +2 -41
- package/dist/modules/provisioning.ee/role-resolver.service.ee.d.ts +2 -2
- package/dist/modules/provisioning.ee/role-resolver.service.ee.js +5 -9
- package/dist/modules/provisioning.ee/role-resolver.service.ee.js.map +1 -1
- package/dist/modules/scim/database/scim-api-key.repository.d.ts +11 -0
- package/dist/modules/scim/database/scim-api-key.repository.js +51 -0
- package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -0
- package/dist/modules/scim/scim-auth.middleware.d.ts +14 -0
- package/dist/modules/scim/scim-auth.middleware.js +80 -0
- package/dist/modules/scim/scim-auth.middleware.js.map +1 -0
- package/dist/modules/scim/scim-discovery.controller.d.ts +7 -0
- package/dist/modules/scim/scim-discovery.controller.js +90 -0
- package/dist/modules/scim/scim-discovery.controller.js.map +1 -0
- package/dist/modules/scim/scim-route.d.ts +9 -0
- package/dist/modules/scim/scim-route.js +17 -0
- package/dist/modules/scim/scim-route.js.map +1 -0
- package/dist/modules/scim/scim-settings.service.d.ts +9 -0
- package/dist/modules/scim/scim-settings.service.js +41 -0
- package/dist/modules/scim/scim-settings.service.js.map +1 -0
- package/dist/modules/scim/scim-token.controller.d.ts +17 -0
- package/dist/modules/scim/scim-token.controller.js +115 -0
- package/dist/modules/scim/scim-token.controller.js.map +1 -0
- package/dist/modules/scim/scim-token.service.d.ts +23 -0
- package/dist/modules/scim/scim-token.service.js +83 -0
- package/dist/modules/scim/scim-token.service.js.map +1 -0
- package/dist/modules/scim/scim.config.d.ts +3 -0
- package/dist/modules/scim/scim.config.js +28 -0
- package/dist/modules/scim/scim.config.js.map +1 -0
- package/dist/modules/scim/scim.module.d.ts +8 -0
- package/dist/modules/scim/scim.module.js +36 -0
- package/dist/modules/scim/scim.module.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +13 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.js +12 -7
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/services/jwks-resolver.js +1 -3
- package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
- package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
- package/dist/modules/token-exchange/services/trusted-key.service.js +0 -2
- package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -1
- package/dist/modules/token-exchange/token-exchange.schemas.d.ts +6 -6
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +4 -4
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +3 -3
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +2 -2
- package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy-project.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy.check.d.ts +2 -1
- package/dist/modules/type-availability-policies/credential-type-policy.check.js +5 -0
- package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
- package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.d.ts +25 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js +43 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-node-type-match.js.map +1 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.d.ts +8 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js +49 -0
- package/dist/modules/type-availability-policies/database/repositories/restricted-workflow.repository.js.map +1 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.d.ts +1 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js +23 -19
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js.map +1 -1
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.d.ts +4 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js +8 -0
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js.map +1 -1
- package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -1
- package/dist/modules/type-availability-policies/package-resolver.js +28 -4
- package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-evaluator.d.ts +1 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js +2 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-shadow-lint.js +28 -6
- package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
- package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +15 -0
- package/dist/modules/type-availability-policies/restricted-node-types.provider.js +64 -0
- package/dist/modules/type-availability-policies/restricted-node-types.provider.js.map +1 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +4 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +8 -0
- package/dist/modules/type-availability-policies/type-availability-policy.service.js +75 -21
- package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.d.ts +3 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +16 -2
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/modules/workflow-index/workflow-dependency.controller.js +1 -1
- package/dist/modules/workflow-index/workflow-dependency.controller.js.map +1 -1
- package/dist/node-catalog/index.d.ts +1 -0
- package/dist/node-catalog/index.js +4 -1
- package/dist/node-catalog/index.js.map +1 -1
- package/dist/node-catalog/module-gated-node-types.d.ts +3 -0
- package/dist/node-catalog/module-gated-node-types.js +26 -0
- package/dist/node-catalog/module-gated-node-types.js.map +1 -0
- package/dist/node-catalog/node-catalog.service.d.ts +3 -2
- package/dist/node-catalog/node-catalog.service.js +15 -6
- package/dist/node-catalog/node-catalog.service.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.d.ts +5 -1
- package/dist/node-execution/ephemeral-node-executor.js +37 -12
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/node-execution/index.d.ts +1 -0
- package/dist/node-execution/index.js +3 -1
- package/dist/node-execution/index.js.map +1 -1
- package/dist/node-execution/resolve-tool-node-type.d.ts +1 -0
- package/dist/node-execution/resolve-tool-node-type.js +19 -0
- package/dist/node-execution/resolve-tool-node-type.js.map +1 -0
- package/dist/policy/policed-agent-nodes.d.ts +3 -0
- package/dist/policy/policed-agent-nodes.js +91 -0
- package/dist/policy/policed-agent-nodes.js.map +1 -0
- package/dist/policy/policy-enforcement-backend.d.ts +2 -1
- package/dist/policy/policy-enforcement.service.d.ts +3 -1
- package/dist/policy/policy-enforcement.service.js +35 -10
- package/dist/policy/policy-enforcement.service.js.map +1 -1
- package/dist/policy/policy-violation.error.js +1 -6
- package/dist/policy/policy-violation.error.js.map +1 -1
- package/dist/posthog/index.js +1 -1
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/idempotency-key-cleanup.task.d.ts +14 -0
- package/dist/public-api/idempotency-key-cleanup.task.js +45 -0
- package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -0
- package/dist/public-api/idempotency-key.service.d.ts +7 -0
- package/dist/public-api/idempotency-key.service.js +35 -0
- package/dist/public-api/idempotency-key.service.js.map +1 -0
- package/dist/public-api/index.js +1 -3
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/media-types/binary-response.d.ts +3 -0
- package/dist/public-api/media-types/binary-response.js +79 -0
- package/dist/public-api/media-types/binary-response.js.map +1 -0
- package/dist/public-api/public-api-controller.registry.js +6 -0
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-route-resolver.d.ts +2 -1
- package/dist/public-api/public-api-route-resolver.js +1 -0
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/types.d.ts +1 -43
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +10 -10
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +13 -13
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/index.d.ts +1 -0
- package/dist/public-api/v1/controllers/index.js +1 -0
- package/dist/public-api/v1/controllers/index.js.map +1 -1
- package/dist/public-api/v1/controllers/insights.public.controller.d.ts +1 -1
- package/dist/public-api/v1/controllers/insights.public.controller.js +2 -2
- package/dist/public-api/v1/controllers/insights.public.controller.js.map +1 -1
- package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.d.ts +20 -20
- package/dist/public-api/v1/{handlers/log-streaming → controllers}/log-streaming.mapper.js +10 -10
- package/dist/public-api/v1/controllers/log-streaming.mapper.js.map +1 -0
- package/dist/public-api/v1/controllers/log-streaming.public.controller.d.ts +23 -1
- package/dist/public-api/v1/controllers/log-streaming.public.controller.js +161 -1
- package/dist/public-api/v1/controllers/log-streaming.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +13 -0
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +134 -0
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +13 -6
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +9 -0
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +55 -0
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -0
- package/dist/public-api/v1/controllers/otel.public.controller.js +1 -1
- package/dist/public-api/v1/controllers/otel.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.js +6 -5
- package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.js +35 -4
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +2 -20
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +17 -105
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +27 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +37 -14
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/generate.js +2 -2
- package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/object-union-type.d.ts +1 -0
- package/dist/public-api/v1/openapi-gen/object-union-type.js +33 -0
- package/dist/public-api/v1/openapi-gen/object-union-type.js.map +1 -0
- package/dist/public-api/v1/openapi-gen/schema-modifiers.d.ts +1 -0
- package/dist/public-api/v1/openapi-gen/schema-modifiers.js +12 -0
- package/dist/public-api/v1/openapi-gen/schema-modifiers.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +10389 -8020
- package/dist/public-api/v1/shared/otel.mapper.js +2 -0
- package/dist/public-api/v1/shared/otel.mapper.js.map +1 -1
- package/dist/public-api/v1/shared/services/pagination.service.js +1 -1
- package/dist/public-api/v1/shared/services/pagination.service.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/job-processor.d.ts +7 -1
- package/dist/scaling/job-processor.js +32 -26
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/job-return.d.ts +3 -0
- package/dist/scaling/job-return.js +33 -0
- package/dist/scaling/job-return.js.map +1 -0
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +2 -1
- package/dist/scaling/scaling.service.d.ts +2 -0
- package/dist/scaling/scaling.service.js +37 -3
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scheduling/durable-job-provisioner.d.ts +3 -2
- package/dist/scheduling/durable-job-provisioner.js +34 -71
- package/dist/scheduling/durable-job-provisioner.js.map +1 -1
- package/dist/scheduling/durable-scheduler.js +0 -9
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +1 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +2 -0
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +5 -5
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +59 -95
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -1
- package/dist/scheduling/system-tasks/main-system-tasks.js +17 -5
- package/dist/scheduling/system-tasks/main-system-tasks.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-handler.d.ts +2 -2
- package/dist/scheduling/system-tasks/system-task-handler.js +4 -4
- package/dist/scheduling/system-tasks/system-task-handler.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-job-registrar.js +2 -1
- package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-run-observer.d.ts +3 -3
- package/dist/scheduling/system-tasks/system-task-run-observer.js +14 -6
- package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.js +1 -0
- package/dist/server.js.map +1 -1
- package/dist/services/ai-preference.service.d.ts +2 -1
- package/dist/services/ai-preference.service.js +10 -0
- package/dist/services/ai-preference.service.js.map +1 -1
- package/dist/services/database-independent-routes.service.d.ts +5 -0
- package/dist/services/database-independent-routes.service.js +29 -0
- package/dist/services/database-independent-routes.service.js.map +1 -0
- package/dist/services/frontend.service.d.ts +3 -0
- package/dist/services/frontend.service.js +12 -1
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/jwt.service.d.ts +4 -3
- package/dist/services/jwt.service.js +9 -6
- package/dist/services/jwt.service.js.map +1 -1
- package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -2
- package/dist/services/oauth-token-verifier-proxy.service.js +0 -6
- package/dist/services/oauth-token-verifier-proxy.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +6 -1
- package/dist/services/ownership-transfer/ownership-transfer.service.d.ts +9 -2
- package/dist/services/ownership-transfer/ownership-transfer.service.js +27 -2
- package/dist/services/ownership-transfer/ownership-transfer.service.js.map +1 -1
- package/dist/services/ownership.service.d.ts +4 -6
- package/dist/services/ownership.service.js +7 -38
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +2 -0
- package/dist/services/project.service.ee.js +13 -0
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +17 -0
- package/dist/{modules/insights/insights-pruning.task.js → services/pruning/execution-pruning-hard-delete.task.js} +17 -15
- package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -0
- package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +4 -2
- package/dist/services/pruning/execution-pruning-soft-delete.task.js +4 -2
- package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
- package/dist/services/pruning/executions-pruning.service.d.ts +6 -18
- package/dist/services/pruning/executions-pruning.service.js +54 -88
- package/dist/services/pruning/executions-pruning.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +1 -0
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js +1 -0
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -0
- package/dist/services/pruning/workflow-history-compaction-trim.task.js +8 -6
- package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.d.ts +1 -5
- package/dist/services/pruning/workflow-history-compaction.service.js +14 -19
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.utils.d.ts +6 -0
- package/dist/services/pruning/workflow-history-compaction.utils.js +14 -0
- package/dist/services/pruning/workflow-history-compaction.utils.js.map +1 -0
- package/dist/services/pruning/workflow-history-pruning.task.d.ts +4 -1
- package/dist/services/pruning/workflow-history-pruning.task.js +5 -2
- package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
- package/dist/services/role-mapping-proxy.service.d.ts +53 -0
- package/dist/{modules/favorites/favorite-resource-resolver.registry.js → services/role-mapping-proxy.service.js} +11 -11
- package/dist/services/role-mapping-proxy.service.js.map +1 -0
- package/dist/services/token-purposes.d.ts +2 -0
- package/dist/services/token-purposes.js +2 -0
- package/dist/services/token-purposes.js.map +1 -1
- package/dist/services/user.service.js +1 -0
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.service.d.ts +6 -17
- package/dist/services/workflow-statistics-rollup.service.js +26 -77
- package/dist/services/workflow-statistics-rollup.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.task.d.ts +14 -0
- package/dist/services/workflow-statistics-rollup.task.js +43 -0
- package/dist/services/workflow-statistics-rollup.task.js.map +1 -0
- package/dist/services/workflow-statistics.service.js +10 -18
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +10 -4
- package/dist/telemetry/index.js +51 -30
- package/dist/telemetry/index.js.map +1 -1
- package/dist/tool-generation/hitl-tools.js +5 -0
- package/dist/tool-generation/hitl-tools.js.map +1 -1
- package/dist/user-management/email/templates/agent-budget-alert.handlebars +196 -0
- package/dist/user-management/email/user-management-mailer.d.ts +8 -1
- package/dist/user-management/email/user-management-mailer.js +16 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/wait-tracker.js +1 -0
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.js +7 -6
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +4 -1
- package/dist/webhooks/webhook-helpers.js +14 -3
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +2 -1
- package/dist/workflow-execute-additional-data.js +17 -8
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-runner.d.ts +2 -2
- package/dist/workflow-runner.js +9 -12
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/execution-timeout-validation.d.ts +2 -0
- package/dist/workflows/execution-timeout-validation.js +16 -0
- package/dist/workflows/execution-timeout-validation.js.map +1 -0
- package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +9 -0
- package/dist/workflows/restricted-node-types-provider-proxy.service.js +26 -0
- package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +1 -0
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +8 -5
- package/dist/workflows/triggers/trigger-execution-context.factory.js +9 -10
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +9 -3
- package/dist/workflows/workflow-finder.service.js +6 -5
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.controller.d.ts +2 -2
- package/dist/workflows/workflow-history/workflow-history.controller.js +9 -6
- package/dist/workflows/workflow-history/workflow-history.controller.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.d.ts +27 -11
- package/dist/workflows/workflow-history/workflow-history.service.js +56 -34
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.d.ts +1 -1
- package/dist/workflows/workflow-validation.service.js +2 -2
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +44 -17
- package/dist/workflows/workflow.service.ee.d.ts +5 -3
- package/dist/workflows/workflow.service.ee.js +35 -9
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +81 -24
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.js +5 -1
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +42 -40
- package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.d.ts +0 -2
- package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js +0 -159
- package/dist/modules/breaking-changes/migrations/execute-workflow-each-to-loop.migration.js.map +0 -1
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.d.ts +0 -10
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js +0 -47
- package/dist/modules/breaking-changes/rules/v3/execute-workflow-each-mode.rule.js.map +0 -1
- package/dist/modules/favorites/favorite-resource-resolver.registry.d.ts +0 -17
- package/dist/modules/favorites/favorite-resource-resolver.registry.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-by-period.d.ts +0 -17
- package/dist/modules/insights/database/entities/insights-by-period.js +0 -73
- package/dist/modules/insights/database/entities/insights-by-period.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-metadata.d.ts +0 -8
- package/dist/modules/insights/database/entities/insights-metadata.js +0 -40
- package/dist/modules/insights/database/entities/insights-metadata.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-raw.d.ts +0 -13
- package/dist/modules/insights/database/entities/insights-raw.js +0 -61
- package/dist/modules/insights/database/entities/insights-raw.js.map +0 -1
- package/dist/modules/insights/database/entities/insights-shared.d.ts +0 -21
- package/dist/modules/insights/database/entities/insights-shared.js +0 -30
- package/dist/modules/insights/database/entities/insights-shared.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.d.ts +0 -15
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +0 -45
- package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +0 -100
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js +0 -347
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-metadata.repository.d.ts +0 -7
- package/dist/modules/insights/database/repositories/insights-metadata.repository.js +0 -36
- package/dist/modules/insights/database/repositories/insights-metadata.repository.js.map +0 -1
- package/dist/modules/insights/database/repositories/insights-raw.repository.d.ts +0 -12
- package/dist/modules/insights/database/repositories/insights-raw.repository.js +0 -36
- package/dist/modules/insights/database/repositories/insights-raw.repository.js.map +0 -1
- package/dist/modules/insights/insights-collection.service.d.ts +0 -30
- package/dist/modules/insights/insights-collection.service.js +0 -280
- package/dist/modules/insights/insights-collection.service.js.map +0 -1
- package/dist/modules/insights/insights-compaction.service.d.ts +0 -19
- package/dist/modules/insights/insights-compaction.service.js +0 -161
- package/dist/modules/insights/insights-compaction.service.js.map +0 -1
- package/dist/modules/insights/insights-compaction.task.d.ts +0 -14
- package/dist/modules/insights/insights-compaction.task.js.map +0 -1
- package/dist/modules/insights/insights-pruning.service.d.ts +0 -11
- package/dist/modules/insights/insights-pruning.service.js +0 -49
- package/dist/modules/insights/insights-pruning.service.js.map +0 -1
- package/dist/modules/insights/insights-pruning.task.d.ts +0 -15
- package/dist/modules/insights/insights-pruning.task.js.map +0 -1
- package/dist/modules/insights/insights.config.d.ts +0 -13
- package/dist/modules/insights/insights.config.js +0 -80
- package/dist/modules/insights/insights.config.js.map +0 -1
- package/dist/modules/insights/insights.constants.d.ts +0 -4
- package/dist/modules/insights/insights.constants.js +0 -24
- package/dist/modules/insights/insights.constants.js.map +0 -1
- package/dist/modules/insights/insights.controller.d.ts +0 -16
- package/dist/modules/insights/insights.controller.js +0 -159
- package/dist/modules/insights/insights.controller.js.map +0 -1
- package/dist/modules/insights/insights.module.d.ts +0 -17
- package/dist/modules/insights/insights.module.js +0 -51
- package/dist/modules/insights/insights.module.js.map +0 -1
- package/dist/modules/insights/insights.service.d.ts +0 -73
- package/dist/modules/insights/insights.service.js +0 -257
- package/dist/modules/insights/insights.service.js.map +0 -1
- package/dist/modules/insights/insights.settings.d.ts +0 -20
- package/dist/modules/insights/insights.settings.js +0 -48
- package/dist/modules/insights/insights.settings.js.map +0 -1
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.d.ts +0 -12
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js +0 -107
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.handler.js.map +0 -1
- package/dist/public-api/v1/handlers/log-streaming/log-streaming.mapper.js.map +0 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +0 -7
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +0 -31
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-selection.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/agent/agent-selection.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAqD;AACrD,4DAA4D;AAE5D,gCAA6C;AAG7C,sEAA+D;AAQ/D,iFAA4E;AAE5E,iEAAuF;AAEvF,oEAGkC;AAClC,4EAA0E;AAC1E,8EAAyE;AACzE,8DAA4D;AAC5D,8DAA0D;AAC1D,iFAAyE;AAQlE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAClC,YACkB,cAA8B,EAC9B,mBAAwC,EACxC,cAA8B,EAC9B,oBAA0C,EAC1C,qBAAiD;8BAJjD,cAAc;mCACd,mBAAmB;8BACnB,cAAc;o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AI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI;oBACnC,EAAE;oBACF,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;oBACjD,MAAM,EAAE,EAAE;iBACV,CAAC;gBACF,IAAA,wCAAmB,EAAC,WAAW,EAAE;oBAChC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE;oBAC5B,SAAS,EAAE,QAAQ,CAAC,SAAS;iBAC7B,CAAC,CAAC;gBACH,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;YAC3B,CAAC;QACF,CAAC;QACD,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3B,CAAC;CACD,CAAA;;iCAvLY,sBAAsB;IADlC,IAAA,YAAO,GAAE;qCAGyB,+BAAc,EACT,sCAAmB,EACxB,mCAAc,EACR,6CAAoB,EACnB,yDAA0B;GANvD,sBAAsB,CAuLlC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AgentDefinitionService } from '../../../../modules/agents/agent-definition.service';
|
|
2
|
+
import type { Agent } from '../../../../modules/agents/entities/agent.entity';
|
|
3
|
+
import type { PreparedAgentExport } from './agent-export.types';
|
|
4
|
+
import { AgentSerializer } from './agent.serializer';
|
|
5
|
+
import type { PackageWriter } from '../../io/package-writer';
|
|
6
|
+
import { ExportVersionPolicy } from '../../n8n-packages.types';
|
|
7
|
+
import type { ManifestEntry } from '../../spec/manifest.schema';
|
|
8
|
+
export declare class AgentExporter {
|
|
9
|
+
private readonly definitionService;
|
|
10
|
+
private readonly serializer;
|
|
11
|
+
constructor(definitionService: AgentDefinitionService, serializer: AgentSerializer);
|
|
12
|
+
prepare(agent: Agent, policy?: ExportVersionPolicy): Promise<PreparedAgentExport | undefined>;
|
|
13
|
+
write(snapshot: PreparedAgentExport, writer: PackageWriter, basePrefix?: string): Promise<ManifestEntry>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AgentExporter = void 0;
|
|
13
|
+
const api_types_1 = require("@n8n/api-types");
|
|
14
|
+
const di_1 = require("@n8n/di");
|
|
15
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
16
|
+
const agent_definition_service_1 = require("../../../../modules/agents/agent-definition.service");
|
|
17
|
+
const agent_serializer_1 = require("./agent.serializer");
|
|
18
|
+
const entity_file_format_1 = require("../../io/entity-file-format");
|
|
19
|
+
const manifest_entry_1 = require("../../io/manifest-entry");
|
|
20
|
+
const n8n_packages_types_1 = require("../../n8n-packages.types");
|
|
21
|
+
const package_export_errors_1 = require("../package-export.errors");
|
|
22
|
+
let AgentExporter = class AgentExporter {
|
|
23
|
+
constructor(definitionService, serializer) {
|
|
24
|
+
this.definitionService = definitionService;
|
|
25
|
+
this.serializer = serializer;
|
|
26
|
+
}
|
|
27
|
+
async prepare(agent, policy = n8n_packages_types_1.ExportVersionPolicy.Latest) {
|
|
28
|
+
if (agent.activeVersionId === null) {
|
|
29
|
+
if (policy === n8n_packages_types_1.ExportVersionPolicy.IgnoreUnpublished)
|
|
30
|
+
return undefined;
|
|
31
|
+
if (policy === n8n_packages_types_1.ExportVersionPolicy.PublishedStrict) {
|
|
32
|
+
throw new package_export_errors_1.PackageExportBlockedError(`Agent "${agent.id}" has no published version. Export aborted.`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
let definition;
|
|
36
|
+
let versionId = agent.versionId;
|
|
37
|
+
let integrations = agent.integrations ?? [];
|
|
38
|
+
if (policy !== n8n_packages_types_1.ExportVersionPolicy.Latest && agent.activeVersionId !== null) {
|
|
39
|
+
const version = agent.activeVersion;
|
|
40
|
+
if (!version) {
|
|
41
|
+
throw new n8n_workflow_1.UnexpectedError('Published version was not loaded for Agent', {
|
|
42
|
+
extra: { agentId: agent.id, activeVersionId: agent.activeVersionId },
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
definition = await this.definitionService.readVersion(version);
|
|
46
|
+
versionId = version.versionId;
|
|
47
|
+
integrations = [
|
|
48
|
+
...integrations.filter(api_types_1.isCredentialAgentIntegration),
|
|
49
|
+
...(definition.schema?.integrations ?? []).filter(({ type }) => type === api_types_1.N8N_CHAT_INTEGRATION_TYPE),
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
definition = await this.definitionService.readDraft(agent);
|
|
54
|
+
}
|
|
55
|
+
const content = this.serializer.serialize(agent, definition, integrations);
|
|
56
|
+
return {
|
|
57
|
+
projectId: agent.projectId,
|
|
58
|
+
content,
|
|
59
|
+
metadata: this.serializer.serializeMetadata({
|
|
60
|
+
versionId,
|
|
61
|
+
activeVersionId: agent.activeVersionId,
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
async write(snapshot, writer, basePrefix = '') {
|
|
66
|
+
const entry = await (0, manifest_entry_1.writeManifestEntry)(writer, 'agents', (0, manifest_entry_1.packageDirectory)('agents', basePrefix), snapshot.content, snapshot.content);
|
|
67
|
+
await writer.writeFile((0, manifest_entry_1.agentMetadataFilePath)(entry.target), (0, entity_file_format_1.formatEntityFile)(snapshot.metadata));
|
|
68
|
+
return entry;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
exports.AgentExporter = AgentExporter;
|
|
72
|
+
exports.AgentExporter = AgentExporter = __decorate([
|
|
73
|
+
(0, di_1.Service)(),
|
|
74
|
+
__metadata("design:paramtypes", [agent_definition_service_1.AgentDefinitionService, agent_serializer_1.AgentSerializer])
|
|
75
|
+
], AgentExporter);
|
|
76
|
+
//# sourceMappingURL=agent.exporter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/agent/agent.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAyF;AACzF,gCAAkC;AAClC,+CAA+C;AAE/C,wFAAmF;AAKnF,yDAAqD;AACrD,oEAA+D;AAC/D,4DAIiC;AAEjC,iEAA+D;AAE/D,oEAAqE;AAG9D,IAAM,aAAa,GAAnB,MAAM,aAAa;IACzB,YACkB,iBAAyC,EACzC,UAA2B;iCAD3B,iBAAiB;0BACjB,UAAU;IACzB,CAAC;IAEJ,KAAK,CAAC,OAAO,CACZ,KAAY,EACZ,MAAM,GAAwB,wCAAmB,CAAC,MAAM;QAExD,IAAI,KAAK,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;YACpC,IAAI,MAAM,KAAK,wCAAmB,CAAC,iBAAiB;gBAAE,OAAO,SAAS,CAAC;YACvE,IAAI,MAAM,KAAK,wCAAmB,CAAC,eAAe,EAAE,CAAC;gBACpD,MAAM,IAAI,iDAAyB,CAClC,UAAU,KAAK,CAAC,EAAE,6CAA6C,CAC/D,CAAC;YACH,CAAC;QACF,CAAC;QAED,IAAI,UAA2B,CAAC;QAChC,IAAI,SAAS,GAAG,KAAK,C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V,QAA6B,EAC7B,MAAqB,EACrB,UAAU,GAAG,EAAE;QAEf,MAAM,KAAK,GAAG,MAAM,IAAA,mCAAkB,EACrC,MAAM,EACN,QAAQ,EACR,IAAA,iCAAgB,EAAC,QAAQ,EAAE,UAAU,CAAC,EACtC,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,OAAO,CAChB,CAAC;QACF,MAAM,MAAM,CAAC,SAAS,CACrB,IAAA,sCAAqB,EAAC,KAAK,CAAC,MAAM,CAAC,EACnC,IAAA,qCAAgB,EAAC,QAAQ,CAAC,QAAQ,CAAC,CACnC,CAAC;QACF,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;;wBAtEY,aAAa;IADzB,IAAA,YAAO,GAAE;qCAG4B,iDAAsB,EAC7B,kCAAe;GAHjC,aAAa,CAsEzB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Agent } from '../../../../modules/agents/entities/agent.entity';
|
|
2
|
+
import type { AgentDefinition } from '../../../../modules/agents/utils/agent-definition';
|
|
3
|
+
import { type SerializedAgent, type SerializedAgentMetadata } from '../../spec/serialized/agent.schema';
|
|
4
|
+
export declare class AgentSerializer {
|
|
5
|
+
serialize(agent: Pick<Agent, 'id' | 'name' | 'availableInMCP'>, definition: AgentDefinition, integrations: Agent['integrations']): SerializedAgent;
|
|
6
|
+
serializeMetadata(source: Pick<Agent, 'versionId' | 'activeVersionId'>): SerializedAgentMetadata;
|
|
7
|
+
private referencedBodies;
|
|
8
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AgentSerializer = void 0;
|
|
10
|
+
const di_1 = require("@n8n/di");
|
|
11
|
+
const agent_schema_1 = require("../../spec/serialized/agent.schema");
|
|
12
|
+
const package_export_errors_1 = require("../package-export.errors");
|
|
13
|
+
const package_serialization_types_1 = require("../package-serialization.types");
|
|
14
|
+
const serializePayload = (0, package_serialization_types_1.definePackageSerializationPayload)();
|
|
15
|
+
const serializeMetadataPayload = (0, package_serialization_types_1.definePackageSerializationPayload)();
|
|
16
|
+
let AgentSerializer = class AgentSerializer {
|
|
17
|
+
serialize(agent, definition, integrations) {
|
|
18
|
+
const config = definition.schema ? { ...definition.schema, integrations } : null;
|
|
19
|
+
const content = agent_schema_1.serializedAgentSchema.parse(serializePayload({
|
|
20
|
+
id: agent.id,
|
|
21
|
+
name: agent.name,
|
|
22
|
+
config,
|
|
23
|
+
availableInMCP: agent.availableInMCP,
|
|
24
|
+
skills: this.referencedBodies(agent.id, 'skill', config?.skills ?? [], definition.skills),
|
|
25
|
+
tools: this.referencedBodies(agent.id, 'custom tool', config?.tools?.filter((tool) => tool.type === 'custom') ?? [], definition.tools),
|
|
26
|
+
tasks: this.referencedBodies(agent.id, 'task', config?.tasks ?? [], Object.fromEntries(definition.tasks)),
|
|
27
|
+
}));
|
|
28
|
+
return structuredClone(content);
|
|
29
|
+
}
|
|
30
|
+
serializeMetadata(source) {
|
|
31
|
+
return agent_schema_1.serializedAgentMetadataSchema.parse(serializeMetadataPayload({
|
|
32
|
+
versionId: source.versionId,
|
|
33
|
+
publishedVersionId: source.activeVersionId,
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
referencedBodies(agentId, kind, references, bodies) {
|
|
37
|
+
return Object.fromEntries(references.map(({ id }) => {
|
|
38
|
+
const body = Object.hasOwn(bodies, id) ? bodies[id] : undefined;
|
|
39
|
+
if (body === undefined) {
|
|
40
|
+
throw new package_export_errors_1.PackageExportBlockedError(`Agent "${agentId}" references missing ${kind} "${id}". Export aborted.`);
|
|
41
|
+
}
|
|
42
|
+
return [id, body];
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.AgentSerializer = AgentSerializer;
|
|
47
|
+
exports.AgentSerializer = AgentSerializer = __decorate([
|
|
48
|
+
(0, di_1.Service)()
|
|
49
|
+
], AgentSerializer);
|
|
50
|
+
//# sourceMappingURL=agent.serializer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.serializer.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/agent/agent.serializer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gCAAkC;AAMlC,qEAK4C;AAC5C,oEAAqE;AACrE,gFAAmF;AAqBnF,MAAM,gBAAgB,GAAG,IAAA,+DAAiC,GAIvD,CAAC;AAUJ,MAAM,wBAAwB,GAAG,IAAA,+DAAiC,GAI/D,CAAC;AAGG,IAAM,eAAe,GAArB,MAAM,eAAe;IAC3B,SAAS,CACR,KAAoD,EACpD,UAA2B,EAC3B,YAAmC;QAGnC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACjF,MAAM,OAAO,GAAG,oCAAqB,CAAC,KAAK,CAC1C,gBAAgB,CAAC;YAChB,EAAE,EAAE,KAAK,CAAC,EAAE;YACZ,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM;YACN,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,MAAM,EAAE,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,EAAE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D,CAAA;;0BA7DY,eAAe;IAD3B,IAAA,YAAO,GAAE;GACG,eAAe,CA6D3B"}
|
|
@@ -36,11 +36,7 @@ let CredentialImporter = class CredentialImporter {
|
|
|
36
36
|
const bindings = new Map(resolution.successes);
|
|
37
37
|
const matched = [...resolution.successes.keys()];
|
|
38
38
|
const stubbed = [];
|
|
39
|
-
|
|
40
|
-
return { bindings, matched, stubbed };
|
|
41
|
-
}
|
|
42
|
-
const credentialsToStub = stubbableCredentialFailures(resolution.failures);
|
|
43
|
-
for (const credential of credentialsToStub) {
|
|
39
|
+
for (const credential of (0, credential_missing_mode_1.credentialsToStub)(request.missingMode, resolution)) {
|
|
44
40
|
const { sourceId, type, name } = credential;
|
|
45
41
|
if (type === undefined) {
|
|
46
42
|
throw new n8n_workflow_1.UnexpectedError(`Cannot create stub for credential "${sourceId}": missing credential type`);
|
|
@@ -62,11 +58,4 @@ exports.CredentialImporter = CredentialImporter = __decorate([
|
|
|
62
58
|
(0, di_1.Service)(),
|
|
63
59
|
__metadata("design:paramtypes", [credential_matcher_factory_1.CredentialMatcherFactory, credentials_service_1.CredentialsService])
|
|
64
60
|
], CredentialImporter);
|
|
65
|
-
function stubbableCredentialFailures(failures) {
|
|
66
|
-
return [
|
|
67
|
-
...new Map(failures
|
|
68
|
-
.filter((failure) => (0, credential_missing_mode_1.canStubNotFoundFailure)(failure))
|
|
69
|
-
.map((failure) => [failure.sourceId, failure])).values(),
|
|
70
|
-
];
|
|
71
|
-
}
|
|
72
61
|
//# sourceMappingURL=credential-importer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-importer.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential-importer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAClC,+CAA+C;AAE/C,2EAAuE;AAEvE,6EAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"credential-importer.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities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C;YACH,CAAC;YAED,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CACxE;gBAEC,EAAE,EAAE,OAAO,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;gBAC7D,IAAI,EAAE,IAAI,IAAI,QAAQ;gBACtB,IAAI;gBACJ,SAAS,EAAE,OAAO,CAAC,SAAS;aAC5B,EACD,OAAO,CAAC,IAAI,CACZ,CAAC;YAEF,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC;YAC1C,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,CAAC;QAED,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACvC,CAAC;CACD,CAAA;;6BA5EY,kBAAkB;IAD9B,IAAA,YAAO,GAAE;qCAGmC,qDAAwB,EAC9B,wCAAkB;GAH5C,kBAAkB,CA4E9B"}
|
|
@@ -73,7 +73,7 @@ function partitionByKnownType(requirements, credentialTypes) {
|
|
|
73
73
|
const known = [];
|
|
74
74
|
const unknownTypeFailures = [];
|
|
75
75
|
for (const reference of requirements ?? []) {
|
|
76
|
-
if (credentialTypes.recognizes(reference.type)) {
|
|
76
|
+
if (reference.type !== undefined && credentialTypes.recognizes(reference.type)) {
|
|
77
77
|
known.push(reference);
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
@@ -105,7 +105,6 @@ function orphanBindingFailures(bindings, requirements) {
|
|
|
105
105
|
kind: 'source_not_found',
|
|
106
106
|
sourceId,
|
|
107
107
|
targetId,
|
|
108
|
-
usedByWorkflows: [],
|
|
109
108
|
});
|
|
110
109
|
}
|
|
111
110
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-matcher.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential-matcher.ts"],"names":[],"mappings":";;;AAKA,y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,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAC3B,CAAC;AAED,SAAS,uBAAuB,CAC/B,KAAuB,EACvB,eAAoC;IAEpC,OAAO,IAAI,GAAG,CACb,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;QACzC,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACjD,IAAI,UAAU,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAU,CAAC,CAAC;IAC5D,CAAC,CAAC,CACF,CAAC;AACH,CAAC;AAED,SAAS,oBAAoB,CAC5B,YAAwD,EACxD,eAAgC;IAKhC,MAAM,KAAK,GAAmC,EAAE,CAAC;IACjD,MAAM,mBAAmB,GAAkC,EAAE,CAAC;IAE9D,KAAK,MAAM,SAAS,IAAI,YAAY,IAAI,EAAE,EAAE,CAAC;QAC5C,IAAI,eAAe,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"credential-matcher.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential-matcher.ts"],"names":[],"mappings":";;;AAKA,yDAI4B;AA4B5B;IACC,YACoB,eAAgC,EAChC,kBAAsC;+BADtC,eAAe;kCACf,kBAAkB;IACnC,CAAC;IAEJ,KAAK,CAAC,KAAK,CACV,YAAwD,EACxD,OAAiC;QAEjC,MAAM,cAAc,GAAG,qBAAqB,CAAC,OAAO,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;QACvF,MAAM,EAAE,KAAK,EAAE,mBAAmB,EAAE,GAAG,oBAAoB,CAAC,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAChG,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,0BAA0B,CAA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,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEhD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1F,MAAM,QAAQ,GAAkC,EAAE,CAAC;IAEnD,KAAK,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,QAAQ,EAAE,CAAC;QAC7C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnC,QAAQ,CAAC,IAAI,CAAC;gBACb,IAAI,EAAE,kBAAkB;gBACxB,QAAQ;gBACR,QAAQ;aACR,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC"}
|
|
@@ -3,4 +3,5 @@ import type { CredentialMissingMode } from '../../n8n-packages.types';
|
|
|
3
3
|
import type { PackageCredentialRequirement } from '../../spec/requirements.schema';
|
|
4
4
|
export declare function canStubNotFoundFailure(failure: CredentialResolutionFailure): boolean;
|
|
5
5
|
export declare function credentialBlockingFailures(mode: CredentialMissingMode, resolution: CredentialResolution): CredentialResolutionFailure[];
|
|
6
|
+
export declare function credentialsToStub(mode: CredentialMissingMode, resolution: CredentialResolution): CredentialResolutionFailure[];
|
|
6
7
|
export declare function workflowsBlockedFromPublish(requirements: PackageCredentialRequirement[] | undefined, stubbedSourceIds: ReadonlySet<string>): Set<string>;
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.canStubNotFoundFailure = canStubNotFoundFailure;
|
|
4
4
|
exports.credentialBlockingFailures = credentialBlockingFailures;
|
|
5
|
+
exports.credentialsToStub = credentialsToStub;
|
|
5
6
|
exports.workflowsBlockedFromPublish = workflowsBlockedFromPublish;
|
|
7
|
+
const requirement_consumers_1 = require("../../spec/requirement-consumers");
|
|
6
8
|
function canStubNotFoundFailure(failure) {
|
|
7
9
|
return failure.kind === 'not_found' && failure.targetId === undefined;
|
|
8
10
|
}
|
|
@@ -13,12 +15,21 @@ const BLOCKING_FAILURES = {
|
|
|
13
15
|
function credentialBlockingFailures(mode, resolution) {
|
|
14
16
|
return BLOCKING_FAILURES[mode](resolution);
|
|
15
17
|
}
|
|
18
|
+
function credentialsToStub(mode, resolution) {
|
|
19
|
+
if (mode !== 'create-stub')
|
|
20
|
+
return [];
|
|
21
|
+
return [
|
|
22
|
+
...new Map(resolution.failures
|
|
23
|
+
.filter((failure) => canStubNotFoundFailure(failure))
|
|
24
|
+
.map((failure) => [failure.sourceId, failure])).values(),
|
|
25
|
+
];
|
|
26
|
+
}
|
|
16
27
|
function workflowsBlockedFromPublish(requirements, stubbedSourceIds) {
|
|
17
28
|
const blocked = new Set();
|
|
18
29
|
for (const requirement of requirements ?? []) {
|
|
19
30
|
if (!stubbedSourceIds.has(requirement.id))
|
|
20
31
|
continue;
|
|
21
|
-
for (const sourceWorkflowId of
|
|
32
|
+
for (const sourceWorkflowId of (0, requirement_consumers_1.getWorkflowConsumerIds)(requirement)) {
|
|
22
33
|
blocked.add(sourceWorkflowId);
|
|
23
34
|
}
|
|
24
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-missing-mode.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential-missing-mode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credential-missing-mode.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential-missing-mode.ts"],"names":[],"mappings":";;;;;;AAEA,4EAA0E;AAG1E,gCAAuC,OAAoC;IAC1E,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC;AACvE,CAAC;AAOD,MAAM,iBAAiB,GAGnB;IACH,eAAe,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ;IACpD,aAAa,EAAE,CAAC,UAAU,EAAE,EAAE,CAC7B,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;CAC1E,CAAC;AAGF,oCACC,IAA2B,EAC3B,UAAgC;IAEhC,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;AAC5C,CAAC;AAOD,2BACC,IAA2B,EAC3B,UAAgC;IAEhC,IAAI,IAAI,KAAK,aAAa;QAAE,OAAO,EAAE,CAAC;IAEtC,OAAO;QACN,GAAG,IAAI,GAAG,CACT,UAAU,CAAC,QAAQ;aACjB,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;aACpD,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC,CACxD,CAAC,MAAM,EAAE;KACV,CAAC;AACH,CAAC;AAGD,qCACC,YAAwD,EACxD,gBAAqC;IAErC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAElC,KAAK,MAAM,WAAW,IAAI,YAAY,IAAI,EAAE,EAAE,CAAC;QAC9C,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAAE,SAAS;QAEpD,KAAK,MAAM,gBAAgB,IAAI,IAAA,8CAAsB,EAAC,WAAW,CAAC,EAAE,CAAC;YACpE,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;QAC/B,CAAC;IACF,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { AgentJsonConfig } from '@n8n/api-types';
|
|
1
2
|
import type { WorkflowEntity } from '@n8n/db';
|
|
2
|
-
import type { WorkflowCredentialRequirement } from './credential.types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import type { CredentialReference, WorkflowCredentialRequirement } from './credential.types';
|
|
4
|
+
export declare class CredentialRequirementsExtractor {
|
|
5
|
+
extractFromWorkflow(workflow: WorkflowEntity): WorkflowCredentialRequirement[];
|
|
6
|
+
extractFromAgent(config: AgentJsonConfig | null): CredentialReference[];
|
|
6
7
|
}
|
|
@@ -8,9 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.CredentialRequirementsExtractor = void 0;
|
|
10
10
|
const di_1 = require("@n8n/di");
|
|
11
|
+
const extract_agent_credential_ids_1 = require("../../../../modules/agents/utils/extract-agent-credential-ids");
|
|
11
12
|
const workflow_credential_references_1 = require("./workflow-credential-references");
|
|
12
13
|
let CredentialRequirementsExtractor = class CredentialRequirementsExtractor {
|
|
13
|
-
|
|
14
|
+
extractFromWorkflow(workflow) {
|
|
14
15
|
const byId = new Map();
|
|
15
16
|
(0, workflow_credential_references_1.visitWorkflowCredentials)(workflow.nodes, (credentialType, details) => {
|
|
16
17
|
if (!details.id || byId.has(details.id))
|
|
@@ -25,6 +26,22 @@ let CredentialRequirementsExtractor = class CredentialRequirementsExtractor {
|
|
|
25
26
|
});
|
|
26
27
|
return [...byId.values()];
|
|
27
28
|
}
|
|
29
|
+
extractFromAgent(config) {
|
|
30
|
+
const credentials = new Map([...(0, extract_agent_credential_ids_1.extractAgentCredentialIds)(config)].map((id) => [id, { credentialId: id }]));
|
|
31
|
+
const nodeCredentials = (config?.tools ?? [])
|
|
32
|
+
.filter((tool) => tool.type === 'node')
|
|
33
|
+
.flatMap(({ node }) => Object.entries(node.credentials ?? {}));
|
|
34
|
+
for (const [type, details] of nodeCredentials) {
|
|
35
|
+
const credential = details.id === null ? undefined : credentials.get(details.id);
|
|
36
|
+
if (!credential)
|
|
37
|
+
continue;
|
|
38
|
+
if (details.name)
|
|
39
|
+
credential.credentialName ??= details.name;
|
|
40
|
+
if (type)
|
|
41
|
+
credential.credentialType ??= type;
|
|
42
|
+
}
|
|
43
|
+
return [...credentials.values()];
|
|
44
|
+
}
|
|
28
45
|
};
|
|
29
46
|
exports.CredentialRequirementsExtractor = CredentialRequirementsExtractor;
|
|
30
47
|
exports.CredentialRequirementsExtractor = CredentialRequirementsExtractor = __decorate([
|
package/dist/modules/n8n-packages/entities/credential/credential-requirements.extractor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-requirements.extractor.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential-requirements.extractor.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"credential-requirements.extractor.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential-requirements.extractor.ts"],"names":[],"mappings":";;;;;;;;;AAEA,gCAAkC;AAElC,sGAAgG;AAGhG,qFAA4E;AAGrE,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAC3C,mBAAmB,CAAC,QAAwB;QAC3C,MAAM,IAAI,GAAG,IAAI,GAAG,EAAyC,CAAC;QAE9D,IAAA,yDAAwB,EAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,cAAc,EAAE,OAAO,EAAE,EAAE;YACpE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;gBAAE,OAAO,KAAK,CAAC;YAEtD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE;gBACpB,UAAU,EAAE,QAAQ,CAAC,EAAE;gBACvB,YAAY,EAAE,OAAO,CAAC,EAAE;gBACxB,cAAc,EAAE,OAAO,CAAC,IAAI;gBAC5B,cAAc;aACd,CAAC,CAAC;YACH,OAAO,KAAK,CAAC;QACd,CA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from '@n8n/db';
|
|
2
2
|
import { CredentialsFinderService } from '@n8n/backend-services';
|
|
3
3
|
import { CredentialSerializer } from './credential.serializer';
|
|
4
|
-
import type {
|
|
4
|
+
import type { CredentialRequirement } from './credential.types';
|
|
5
5
|
import type { PackageWriter } from '../../io/package-writer';
|
|
6
6
|
import type { CredentialExportPolicy } from '../../n8n-packages.types';
|
|
7
7
|
import type { ManifestEntry } from '../../spec/manifest.schema';
|
|
8
8
|
import type { PackageCredentialRequirement } from '../../spec/requirements.schema';
|
|
9
9
|
export interface CredentialExportRequest {
|
|
10
10
|
user: User;
|
|
11
|
-
requirements:
|
|
11
|
+
requirements: CredentialRequirement[];
|
|
12
12
|
writer: PackageWriter;
|
|
13
13
|
credentialExportPolicy: CredentialExportPolicy;
|
|
14
14
|
projectTargetsById?: Map<string, string>;
|
|
@@ -16,6 +16,7 @@ const backend_services_1 = require("@n8n/backend-services");
|
|
|
16
16
|
const credential_export_policy_1 = require("./credential-export-policy");
|
|
17
17
|
const credential_serializer_1 = require("./credential.serializer");
|
|
18
18
|
const manifest_entry_1 = require("../../io/manifest-entry");
|
|
19
|
+
const requirement_source_1 = require("../requirement-source");
|
|
19
20
|
let CredentialExporter = class CredentialExporter {
|
|
20
21
|
constructor(credentialsFinder, credentialSerializer) {
|
|
21
22
|
this.credentialsFinder = credentialsFinder;
|
|
@@ -24,7 +25,7 @@ let CredentialExporter = class CredentialExporter {
|
|
|
24
25
|
async export(request) {
|
|
25
26
|
const entries = [];
|
|
26
27
|
const requirements = [];
|
|
27
|
-
for (const [credentialId, { fallback,
|
|
28
|
+
for (const [credentialId, { fallback, usedBy }] of this.groupByCredentialId(request.requirements)) {
|
|
28
29
|
const credential = await this.credentialsFinder.findCredentialForUser(credentialId, request.user, ['credential:read']);
|
|
29
30
|
const { id, name, type } = credential ?? {
|
|
30
31
|
id: credentialId,
|
|
@@ -33,9 +34,14 @@ let CredentialExporter = class CredentialExporter {
|
|
|
33
34
|
};
|
|
34
35
|
if (credential) {
|
|
35
36
|
const data = await (0, credential_export_policy_1.selectCredentialDataForExport)(request.credentialExportPolicy, async () => await new n8n_core_1.Credentials({ id: credential.id, name: credential.name }, credential.type, credential.data).getData());
|
|
36
|
-
entries.push(await (0, manifest_entry_1.writeManifestEntry)(request.writer, 'credentials', (0, manifest_entry_1.projectScopedDirectory)('credentials', this.ownerProjectId(credential), request.projectTargetsById), { id, name }, this.credentialSerializer.serialize(credential, { data })));
|
|
37
|
+
entries.push(await (0, manifest_entry_1.writeManifestEntry)(request.writer, 'credentials', (0, manifest_entry_1.projectScopedDirectory)('credentials', this.ownerProjectId(credential), request.projectTargetsById), { id: credential.id, name: credential.name }, this.credentialSerializer.serialize(credential, { data })));
|
|
37
38
|
}
|
|
38
|
-
requirements.push({
|
|
39
|
+
requirements.push({
|
|
40
|
+
id,
|
|
41
|
+
name,
|
|
42
|
+
type,
|
|
43
|
+
usedBy,
|
|
44
|
+
});
|
|
39
45
|
}
|
|
40
46
|
return { entries, requirements };
|
|
41
47
|
}
|
|
@@ -45,18 +51,17 @@ let CredentialExporter = class CredentialExporter {
|
|
|
45
51
|
groupByCredentialId(requirements) {
|
|
46
52
|
const grouped = new Map();
|
|
47
53
|
for (const requirement of requirements) {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
else {
|
|
55
|
-
grouped.set(requirement.credentialId, {
|
|
56
|
-
fallback: requirement,
|
|
57
|
-
usedByWorkflows: [requirement.workflowId],
|
|
58
|
-
});
|
|
54
|
+
const group = grouped.get(requirement.credentialId) ?? {
|
|
55
|
+
fallback: { ...requirement },
|
|
56
|
+
usedBy: [],
|
|
57
|
+
};
|
|
58
|
+
if ('workflowId' in requirement && !('workflowId' in group.fallback)) {
|
|
59
|
+
group.fallback = { ...requirement };
|
|
59
60
|
}
|
|
61
|
+
group.fallback.credentialName ??= requirement.credentialName;
|
|
62
|
+
group.fallback.credentialType ??= requirement.credentialType;
|
|
63
|
+
(0, requirement_source_1.addRequirementUsage)(group, requirement);
|
|
64
|
+
grouped.set(requirement.credentialId, group);
|
|
60
65
|
}
|
|
61
66
|
return grouped;
|
|
62
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAClC,uCAAuC;AAEvC,4DAAiE;AAEjE,yEAA2E;AAC3E,mEAA+D;AAE/D,4DAAqF;
|
|
1
|
+
{"version":3,"file":"credential.exporter.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential.exporter.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAAkC;AAClC,uCAAuC;AAEvC,4DAAiE;AAEjE,yEAA2E;AAC3E,mEAA+D;AAE/D,4DAAqF;AAKrF,8DAAmF;AAsB5E,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,YACkB,iBAA2C,EAC3C,oBAA0C;iCAD1C,iBAAiB;oCACjB,oBAAoB;IACnC,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,OAAgC;QAC5C,MAAM,OAAO,GAAoB,EAAE,CAAC;QACpC,MAAM,YAAY,GAAmC,EAAE,CAAC;QAExD,KAAK,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,IAAI,IAAI,CAAC,mBAAmB,CAC1E,OAAO,CAAC,YAAY,CACpB,EAAE,CAAC;YACH,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CACpE,YAAY,EACZ,OAAO,CAAC,IAAI,EACZ,CAAC,iBAAiB,CAAC,CACnB,CAAC;YAGF,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,UAAU,IAAI;gBACxC,EAAE,EAAE,YAAY;gBAChB,IAAI,EAAE,QAAQ,CAAC,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xC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI;gBACtD,QAAQ,EAAE,EAAE,GAAG,WAAW,EAAE;gBAC5B,MAAM,EAAE,EAAE;aACV,CAAC;YAEF,IAAI,YAAY,IAAI,WAAW,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACtE,KAAK,CAAC,QAAQ,GAAG,EAAE,GAAG,WAAW,EAAE,CAAC;YACrC,CAAC;YACD,KAAK,CAAC,QAAQ,CAAC,cAAc,KAAK,WAAW,CAAC,cAAc,CAAC;YAC7D,KAAK,CAAC,QAAQ,CAAC,cAAc,KAAK,WAAW,CAAC,cAAc,CAAC;YAC7D,IAAA,wCAAmB,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YACxC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,OAAO,CAAC;IAChB,CAAC;CACD,CAAA;;6BAxFY,kBAAkB;IAD9B,IAAA,YAAO,GAAE;qCAG4B,2CAAwB,EACrB,4CAAoB;GAHhD,kBAAkB,CAwF9B"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { ImportBindingMap, CredentialMatchingMode, CredentialMissingMode } from '../../n8n-packages.types';
|
|
2
2
|
import type { PackageCredentialRequirement } from '../../spec/requirements.schema';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import type { AgentRequirementSource } from '../requirement-source';
|
|
4
|
+
export interface CredentialReference {
|
|
5
5
|
credentialId: string;
|
|
6
|
-
credentialName
|
|
7
|
-
credentialType
|
|
6
|
+
credentialName?: string;
|
|
7
|
+
credentialType?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface WorkflowCredentialRequirement extends Required<CredentialReference> {
|
|
10
|
+
workflowId: string;
|
|
8
11
|
}
|
|
12
|
+
export type CredentialRequirement = WorkflowCredentialRequirement | (AgentRequirementSource & CredentialReference);
|
|
9
13
|
export type CredentialResolutionFailureKind = 'not_found' | 'unknown_type' | 'source_not_found' | 'type_mismatch';
|
|
10
14
|
export type CredentialResolutionFailure = {
|
|
11
15
|
kind: CredentialResolutionFailureKind;
|
|
@@ -15,7 +19,6 @@ export type CredentialResolutionFailure = {
|
|
|
15
19
|
targetId?: string;
|
|
16
20
|
expectedType?: string;
|
|
17
21
|
actualType?: string;
|
|
18
|
-
usedByWorkflows: string[];
|
|
19
22
|
};
|
|
20
23
|
export interface CredentialResolution {
|
|
21
24
|
successes: ImportBindingMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.types.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"credential.types.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/credential/credential.types.ts"],"names":[],"mappings":";;;AA0DA,uBACC,SAAuC,EACvC,IAAqC;IAErC,OAAO;QACN,IAAI;QACJ,QAAQ,EAAE,SAAS,CAAC,EAAE;QACtB,IAAI,EAAE,SAAS,CAAC,IAAI;QACpB,IAAI,EAAE,SAAS,CAAC,IAAI;KACpB,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { DataTableColumnType } from 'n8n-workflow';
|
|
2
|
+
import type { DataTableColumnTypeMismatch, DataTableSchemaOperation } from './data-table.types';
|
|
3
|
+
import type { SerializedDataTable, SerializedDataTableColumn } from '../../spec/serialized/data-table.schema';
|
|
4
|
+
export type TargetColumn = {
|
|
5
|
+
id?: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: DataTableColumnType;
|
|
8
|
+
index: number;
|
|
9
|
+
};
|
|
3
10
|
export interface SchemaIncompatibility {
|
|
4
11
|
missingColumns: string[];
|
|
5
12
|
typeMismatches: DataTableColumnTypeMismatch[];
|
|
@@ -9,3 +16,8 @@ export declare function findSchemaIncompatibility(packageColumns: SerializedData
|
|
|
9
16
|
name: string;
|
|
10
17
|
type: string;
|
|
11
18
|
}>): SchemaIncompatibility | null;
|
|
19
|
+
export declare function diffDataTableSchema(packageTable: SerializedDataTable, target: {
|
|
20
|
+
name: string;
|
|
21
|
+
columns: TargetColumn[];
|
|
22
|
+
}): DataTableSchemaOperation[];
|
|
23
|
+
export declare function diffDataTableColumns(packageColumns: SerializedDataTableColumn[], targetColumns: TargetColumn[]): DataTableSchemaOperation[];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.findSchemaIncompatibility = findSchemaIncompatibility;
|
|
4
|
+
exports.diffDataTableSchema = diffDataTableSchema;
|
|
5
|
+
exports.diffDataTableColumns = diffDataTableColumns;
|
|
6
|
+
const pair_columns_1 = require("../../../../modules/data-table/utils/pair-columns");
|
|
4
7
|
function findSchemaIncompatibility(packageColumns, targetColumns) {
|
|
5
8
|
const targetTypeByName = new Map(targetColumns.map((column) => [column.name, column.type]));
|
|
6
9
|
const missingColumns = [];
|
|
@@ -22,4 +25,53 @@ function findSchemaIncompatibility(packageColumns, targetColumns) {
|
|
|
22
25
|
return null;
|
|
23
26
|
return { missingColumns, typeMismatches };
|
|
24
27
|
}
|
|
28
|
+
function diffDataTableSchema(packageTable, target) {
|
|
29
|
+
const operations = diffDataTableColumns(packageTable.columns, target.columns);
|
|
30
|
+
if (target.name !== packageTable.name) {
|
|
31
|
+
operations.push({
|
|
32
|
+
kind: 'rename-table',
|
|
33
|
+
from: target.name,
|
|
34
|
+
to: packageTable.name,
|
|
35
|
+
destructive: false,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return operations;
|
|
39
|
+
}
|
|
40
|
+
function diffDataTableColumns(packageColumns, targetColumns) {
|
|
41
|
+
const { pairs, added, removed } = (0, pair_columns_1.pairDataTableColumns)(packageColumns, [...targetColumns].sort((a, b) => a.index - b.index));
|
|
42
|
+
const operations = removed.map(({ name, type }) => ({
|
|
43
|
+
kind: 'remove-column',
|
|
44
|
+
column: name,
|
|
45
|
+
type,
|
|
46
|
+
destructive: true,
|
|
47
|
+
}));
|
|
48
|
+
for (const { source, target } of pairs) {
|
|
49
|
+
if (source.type !== target.type) {
|
|
50
|
+
operations.push({
|
|
51
|
+
kind: 'change-column-type',
|
|
52
|
+
column: source.name,
|
|
53
|
+
from: target.type,
|
|
54
|
+
to: source.type,
|
|
55
|
+
destructive: true,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
for (const { source, target } of pairs) {
|
|
60
|
+
if (source.name !== target.name) {
|
|
61
|
+
operations.push({
|
|
62
|
+
kind: 'rename-column',
|
|
63
|
+
from: target.name,
|
|
64
|
+
to: source.name,
|
|
65
|
+
destructive: false,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
for (const { name, type } of added) {
|
|
70
|
+
operations.push({ kind: 'add-column', column: name, type, destructive: false });
|
|
71
|
+
}
|
|
72
|
+
const isReordered = pairs.some(({ source }, position) => position > 0 && source.index <= pairs[position - 1].source.index);
|
|
73
|
+
if (isReordered)
|
|
74
|
+
operations.push({ kind: 'reorder-columns', destructive: false });
|
|
75
|
+
return operations;
|
|
76
|
+
}
|
|
25
77
|
//# sourceMappingURL=data-table-compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-compat.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/data-table/data-table-compat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-table-compat.js","sourceRoot":"","sources":["../../../../../src/modules/n8n-packages/entities/data-table/data-table-compat.ts"],"names":[],"mappings":";;;;;AAEA,0EAA+E;AAsB/E,mCACC,cAA2C,EAC3C,aAAoD;IAEpD,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,aAAa,CAA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