n8n 2.46.4 → 2.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/n8n +7 -1
- package/dist/abstract-server.d.ts +4 -1
- package/dist/abstract-server.js +32 -0
- package/dist/abstract-server.js.map +1 -1
- package/dist/active-executions.d.ts +3 -1
- package/dist/active-executions.js +10 -4
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.js +9 -4
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/agent-library-bundle.js +19 -0
- package/dist/auth/auth.service.d.ts +13 -13
- package/dist/auth/auth.service.js +38 -46
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/auth/handlers/email.auth-handler.d.ts +4 -4
- package/dist/auth/handlers/email.auth-handler.js +9 -12
- package/dist/auth/handlers/email.auth-handler.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat/chat-execution-manager.js +2 -2
- package/dist/chat/chat-execution-manager.js.map +1 -1
- package/dist/chat/chat-service.js +3 -2
- package/dist/chat/chat-service.js.map +1 -1
- package/dist/collaboration/collaboration.service.js +1 -2
- package/dist/collaboration/collaboration.service.js.map +1 -1
- package/dist/commands/audit.js +2 -2
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/base-command.js +4 -30
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/cli-workflow-publisher.d.ts +22 -0
- package/dist/commands/cli-workflow-publisher.js +98 -0
- package/dist/commands/cli-workflow-publisher.js.map +1 -0
- package/dist/commands/engine.js +7 -6
- package/dist/commands/engine.js.map +1 -1
- package/dist/commands/execute-batch.js +2 -1
- package/dist/commands/execute-batch.js.map +1 -1
- package/dist/commands/execute.js +4 -3
- package/dist/commands/execute.js.map +1 -1
- package/dist/commands/export/credentials.js +2 -2
- package/dist/commands/export/credentials.js.map +1 -1
- package/dist/commands/export/workflow.js +7 -7
- package/dist/commands/export/workflow.js.map +1 -1
- package/dist/commands/import/credentials.d.ts +0 -1
- package/dist/commands/import/credentials.js +33 -58
- package/dist/commands/import/credentials.js.map +1 -1
- package/dist/commands/import/workflow.js +6 -5
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/ldap/reset.js +8 -8
- package/dist/commands/ldap/reset.js.map +1 -1
- package/dist/commands/publish/workflow.d.ts +2 -0
- package/dist/commands/publish/workflow.js +17 -5
- package/dist/commands/publish/workflow.js.map +1 -1
- package/dist/commands/start.js +2 -0
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/unpublish/workflow.d.ts +2 -0
- package/dist/commands/unpublish/workflow.js +18 -6
- package/dist/commands/unpublish/workflow.js.map +1 -1
- package/dist/commands/update/workflow.d.ts +2 -0
- package/dist/commands/update/workflow.js +20 -16
- package/dist/commands/update/workflow.js.map +1 -1
- package/dist/config/index.js +2 -3
- package/dist/config/index.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/controller.registry.d.ts +4 -2
- package/dist/controller.registry.js +6 -5
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/auth.controller.d.ts +3 -2
- package/dist/controllers/auth.controller.js +15 -11
- package/dist/controllers/auth.controller.js.map +1 -1
- package/dist/controllers/change-email.controller.d.ts +3 -2
- package/dist/controllers/change-email.controller.js +24 -20
- package/dist/controllers/change-email.controller.js.map +1 -1
- package/dist/controllers/e2e-coverage-windows.d.ts +8 -0
- package/dist/controllers/e2e-coverage-windows.js +32 -0
- package/dist/controllers/e2e-coverage-windows.js.map +1 -0
- package/dist/controllers/e2e.controller.d.ts +10 -13
- package/dist/controllers/e2e.controller.js +15 -47
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/folder.controller.js +2 -3
- package/dist/controllers/folder.controller.js.map +1 -1
- package/dist/controllers/invitation.controller.d.ts +3 -2
- package/dist/controllers/invitation.controller.js +16 -12
- package/dist/controllers/invitation.controller.js.map +1 -1
- package/dist/controllers/me.controller.d.ts +3 -2
- package/dist/controllers/me.controller.js +34 -22
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/controllers/mfa.controller.d.ts +3 -3
- package/dist/controllers/mfa.controller.js +9 -10
- package/dist/controllers/mfa.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +2 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +23 -0
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-dynamic-client-registration.schema.d.ts +3 -1
- package/dist/controllers/oauth/oauth2-dynamic-client-registration.schema.js +2 -1
- package/dist/controllers/oauth/oauth2-dynamic-client-registration.schema.js.map +1 -1
- package/dist/controllers/password-reset.controller.d.ts +3 -3
- package/dist/controllers/password-reset.controller.js +32 -31
- package/dist/controllers/password-reset.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +9 -2
- package/dist/controllers/users.controller.js +27 -16
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/credentials/credential-descriptions.service.d.ts +3 -0
- package/dist/credentials/credential-descriptions.service.js +3 -0
- package/dist/credentials/credential-descriptions.service.js.map +1 -1
- package/dist/credentials/credentials.controller.js +2 -0
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +8 -5
- package/dist/credentials/credentials.service.js +72 -8
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/dynamic-credentials-proxy.js +2 -1
- package/dist/credentials/dynamic-credentials-proxy.js.map +1 -1
- package/dist/credentials/instance-credential-use.registry.d.ts +1 -1
- package/dist/credentials/instance-credential-use.registry.js +6 -6
- package/dist/credentials/instance-credential-use.registry.js.map +1 -1
- package/dist/credentials/mock-node-types.js +2 -1
- package/dist/credentials/mock-node-types.js.map +1 -1
- package/dist/credentials/skill-source-credentials.d.ts +24 -0
- package/dist/credentials/skill-source-credentials.js +109 -0
- package/dist/credentials/skill-source-credentials.js.map +1 -0
- package/dist/credentials-helper.js +7 -6
- package/dist/credentials-helper.js.map +1 -1
- package/dist/credentials-overwrites.d.ts +1 -0
- package/dist/credentials-overwrites.js +14 -0
- package/dist/credentials-overwrites.js.map +1 -1
- package/dist/error-reporting/error-reporting-boot.d.ts +1 -0
- package/dist/error-reporting/error-reporting-boot.js +45 -0
- package/dist/error-reporting/error-reporting-boot.js.map +1 -0
- package/dist/errors/managed-app-unavailable.error.d.ts +1 -1
- package/dist/errors/managed-app-unavailable.error.js +2 -2
- package/dist/errors/managed-app-unavailable.error.js.map +1 -1
- package/dist/evaluation.ee/evaluation-collection.service.js +1 -2
- package/dist/evaluation.ee/evaluation-collection.service.js.map +1 -1
- package/dist/evaluation.ee/evaluation-config-validator.d.ts +1 -1
- package/dist/evaluation.ee/evaluation-config-validator.js +2 -2
- package/dist/evaluation.ee/evaluation-config-validator.js.map +1 -1
- package/dist/evaluation.ee/evaluation-dataset.service.d.ts +1 -1
- package/dist/evaluation.ee/evaluation-dataset.service.js +2 -2
- package/dist/evaluation.ee/evaluation-dataset.service.js.map +1 -1
- package/dist/evaluation.ee/test-runner/errors.ee.d.ts +1 -1
- package/dist/evaluation.ee/test-runner/errors.ee.js +3 -3
- package/dist/evaluation.ee/test-runner/errors.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js +7 -6
- package/dist/evaluation.ee/test-runner/workflow-compiler.service.js.map +1 -1
- package/dist/evaluation.ee/test-runs.controller.ee.js +1 -2
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/eventbus/message-event-bus-writer/resolve-event-log-path.js +3 -3
- package/dist/eventbus/message-event-bus-writer/resolve-event-log-path.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +131 -9
- package/dist/events/relays/log-streaming.event-relay.js +8 -8
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +16 -0
- package/dist/events/relays/telemetry.event-relay.js +196 -9
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/events/relays/workflow-failure-notification.event-relay.d.ts +3 -3
- package/dist/events/relays/workflow-failure-notification.event-relay.js +8 -8
- package/dist/events/relays/workflow-failure-notification.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +40 -11
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/execution-lifecycle/unsaved-manual-execution.service.d.ts +16 -0
- package/dist/execution-lifecycle/unsaved-manual-execution.service.js +78 -0
- package/dist/execution-lifecycle/unsaved-manual-execution.service.js.map +1 -0
- package/dist/executions/engine-v2-execution-reader.service.d.ts +4 -1
- package/dist/executions/engine-v2-execution-reader.service.js +4 -3
- package/dist/executions/engine-v2-execution-reader.service.js.map +1 -1
- package/dist/executions/enqueued-execution-recovery.service.d.ts +7 -1
- package/dist/executions/enqueued-execution-recovery.service.js +64 -31
- package/dist/executions/enqueued-execution-recovery.service.js.map +1 -1
- package/dist/executions/execution-crash.service.d.ts +2 -1
- package/dist/executions/execution-crash.service.js +9 -0
- package/dist/executions/execution-crash.service.js.map +1 -1
- package/dist/executions/execution-data/corrupted-execution-data.error.d.ts +1 -1
- package/dist/executions/execution-data/corrupted-execution-data.error.js +2 -2
- package/dist/executions/execution-data/corrupted-execution-data.error.js.map +1 -1
- package/dist/executions/execution-data/execution-data-write.error.d.ts +1 -1
- package/dist/executions/execution-data/execution-data-write.error.js +2 -2
- package/dist/executions/execution-data/execution-data-write.error.js.map +1 -1
- package/dist/executions/execution-data/missing-execution-data.error.d.ts +1 -1
- package/dist/executions/execution-data/missing-execution-data.error.js +2 -2
- package/dist/executions/execution-data/missing-execution-data.error.js.map +1 -1
- package/dist/executions/execution-data/unreadable-run-data.error.d.ts +1 -1
- package/dist/executions/execution-data/unreadable-run-data.error.js +2 -2
- package/dist/executions/execution-data/unreadable-run-data.error.js.map +1 -1
- package/dist/executions/execution-list-v2.service.js +2 -2
- package/dist/executions/execution-list-v2.service.js.map +1 -1
- package/dist/executions/execution-persistence.d.ts +2 -4
- package/dist/executions/execution-persistence.js +20 -29
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution-recovery.service.js +1 -0
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/execution-viewer-reader.d.ts +2 -1
- package/dist/executions/execution-viewer-reader.js +22 -2
- package/dist/executions/execution-viewer-reader.js.map +1 -1
- package/dist/executions/execution.service.d.ts +1 -4
- package/dist/executions/execution.service.js +11 -11
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/parse-range-query.middleware.js +1 -1
- package/dist/executions/parse-range-query.middleware.js.map +1 -1
- package/dist/executions/pre-execution-checks/credential-refusal.js +2 -2
- package/dist/executions/pre-execution-checks/credential-refusal.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +5 -4
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/executions/pre-execution-checks/subworkflow-policy-checker.js +2 -1
- package/dist/executions/pre-execution-checks/subworkflow-policy-checker.js.map +1 -1
- package/dist/executions/resume-attempt.service.d.ts +20 -0
- package/dist/executions/resume-attempt.service.js +74 -0
- package/dist/executions/resume-attempt.service.js.map +1 -0
- package/dist/expression-observability/expression-observability.constants.d.ts +0 -1
- package/dist/expression-observability/expression-observability.constants.js +1 -2
- package/dist/expression-observability/expression-observability.constants.js.map +1 -1
- package/dist/expression-observability/expression-observability.provider.d.ts +1 -3
- package/dist/expression-observability/expression-observability.provider.js +7 -8
- package/dist/expression-observability/expression-observability.provider.js.map +1 -1
- package/dist/external-hooks.d.ts +4 -2
- package/dist/external-hooks.js +6 -6
- package/dist/external-hooks.js.map +1 -1
- package/dist/instance-settings-loader/instance-bootstrapping.error.d.ts +1 -1
- package/dist/instance-settings-loader/instance-bootstrapping.error.js +2 -2
- package/dist/instance-settings-loader/instance-bootstrapping.error.js.map +1 -1
- package/dist/interfaces.d.ts +6 -1
- package/dist/license.d.ts +4 -0
- package/dist/license.js +48 -1
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.js +6 -8
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/manual-execution.service.js +2 -1
- package/dist/manual-execution.service.js.map +1 -1
- package/dist/memory-guard/memory-guard.service.d.ts +1 -0
- package/dist/memory-guard/memory-guard.service.js +11 -4
- package/dist/memory-guard/memory-guard.service.js.map +1 -1
- package/dist/memory-guard/memory-usage.d.ts +2 -1
- package/dist/memory-guard/memory-usage.js +40 -5
- package/dist/memory-guard/memory-usage.js.map +1 -1
- package/dist/memory-guard/production-hold.d.ts +4 -0
- package/dist/memory-guard/production-hold.js +19 -3
- package/dist/memory-guard/production-hold.js.map +1 -1
- package/dist/metrics/prometheus/database-metric-query.service.d.ts +1 -0
- package/dist/metrics/prometheus/database-metric-query.service.js +5 -2
- package/dist/metrics/prometheus/database-metric-query.service.js.map +1 -1
- package/dist/metrics/prometheus/memory-guard-metrics.service.js +12 -0
- package/dist/metrics/prometheus/memory-guard-metrics.service.js.map +1 -1
- package/dist/metrics/prometheus/system-task-metrics.service.js +8 -4
- package/dist/metrics/prometheus/system-task-metrics.service.js.map +1 -1
- package/dist/mfa/helpers.js +1 -1
- package/dist/mfa/helpers.js.map +1 -1
- package/dist/mfa/mfa.service.d.ts +5 -4
- package/dist/mfa/mfa.service.js +26 -26
- package/dist/mfa/mfa.service.js.map +1 -1
- package/dist/middlewares/cors.js +1 -1
- package/dist/middlewares/cors.js.map +1 -1
- package/dist/middlewares/list-query/dtos/base.filter.dto.js +3 -2
- package/dist/middlewares/list-query/dtos/base.filter.dto.js.map +1 -1
- package/dist/middlewares/list-query/dtos/base.select.dto.js +2 -1
- package/dist/middlewares/list-query/dtos/base.select.dto.js.map +1 -1
- package/dist/middlewares/list-query/dtos/pagination.dto.js +3 -3
- package/dist/middlewares/list-query/dtos/pagination.dto.js.map +1 -1
- package/dist/middlewares/list-query/pagination.js +2 -2
- package/dist/middlewares/list-query/pagination.js.map +1 -1
- package/dist/middlewares/list-query/sort-by.js +2 -2
- package/dist/middlewares/list-query/sort-by.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-case-generation.service.d.ts +1 -1
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js +6 -8
- package/dist/modules/agent-evals/agent-eval-case-generation.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-judge.d.ts +1 -0
- package/dist/modules/agent-evals/agent-eval-judge.js +8 -0
- package/dist/modules/agent-evals/agent-eval-judge.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-record-mappers.js +2 -2
- package/dist/modules/agent-evals/agent-eval-record-mappers.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval-runner.service.d.ts +1 -1
- package/dist/modules/agent-evals/agent-eval-runner.service.js +2 -2
- package/dist/modules/agent-evals/agent-eval-runner.service.js.map +1 -1
- package/dist/modules/agent-evals/agent-eval.service.js +1 -2
- package/dist/modules/agent-evals/agent-eval.service.js.map +1 -1
- package/dist/modules/agents/adapters/agents-credential-provider.js +2 -2
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
- package/dist/modules/agents/agent-chat-attachment.service.d.ts +27 -1
- package/dist/modules/agents/agent-chat-attachment.service.js +160 -37
- package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-execution.service.d.ts +6 -0
- package/dist/modules/agents/agent-chat-execution.service.js +54 -1
- package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-relay.service.d.ts +3 -2
- package/dist/modules/agents/agent-chat-relay.service.js +27 -2
- package/dist/modules/agents/agent-chat-relay.service.js.map +1 -1
- package/dist/modules/agents/agent-chat.controller.d.ts +146 -4
- package/dist/modules/agents/agent-chat.controller.js +143 -9
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-config-preparation.service.d.ts +8 -0
- package/dist/modules/agents/agent-config-preparation.service.js +9 -11
- package/dist/modules/agents/agent-config-preparation.service.js.map +1 -1
- package/dist/modules/agents/agent-config.service.d.ts +5 -2
- package/dist/modules/agents/agent-config.service.js +33 -11
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-context-readers.js +2 -2
- package/dist/modules/agents/agent-context-readers.js.map +1 -1
- package/dist/modules/agents/agent-context.contracts.d.ts +7 -0
- package/dist/modules/agents/agent-context.service.d.ts +7 -1
- package/dist/modules/agents/agent-context.service.js +26 -21
- package/dist/modules/agents/agent-context.service.js.map +1 -1
- package/dist/modules/agents/agent-conversation-state.service.d.ts +8 -0
- package/dist/modules/agents/agent-conversation-state.service.js +16 -0
- package/dist/modules/agents/agent-conversation-state.service.js.map +1 -1
- package/dist/modules/agents/agent-custom-tools.service.d.ts +5 -1
- package/dist/modules/agents/agent-custom-tools.service.js +14 -6
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-definition.service.d.ts +6 -2
- package/dist/modules/agents/agent-definition.service.js +38 -4
- package/dist/modules/agents/agent-definition.service.js.map +1 -1
- package/dist/modules/agents/agent-dependency-index.listener.js +3 -1
- package/dist/modules/agents/agent-dependency-index.listener.js.map +1 -1
- package/dist/modules/agents/agent-dependency-index.service.js +3 -5
- package/dist/modules/agents/agent-dependency-index.service.js.map +1 -1
- package/dist/modules/agents/agent-draft.contracts.d.ts +2 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +6 -0
- package/dist/modules/agents/agent-execution-orchestrator.service.js +31 -24
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-recording.error.d.ts +1 -1
- package/dist/modules/agents/agent-execution-recording.error.js +2 -2
- package/dist/modules/agents/agent-execution-recording.error.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +8 -1
- package/dist/modules/agents/agent-execution.service.js +55 -14
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-file-bridge.service.d.ts +38 -0
- package/dist/modules/agents/agent-file-bridge.service.js +183 -0
- package/dist/modules/agents/agent-file-bridge.service.js.map +1 -0
- package/dist/modules/agents/agent-integration-management.service.d.ts +1 -1
- package/dist/modules/agents/agent-integration-management.service.js +15 -1
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +5 -1
- package/dist/modules/agents/agent-integration-persistence.service.js +24 -14
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-integrations.controller.js +1 -1
- package/dist/modules/agents/agent-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-mirror.service.d.ts +3 -1
- package/dist/modules/agents/agent-knowledge-mirror.service.js +24 -10
- package/dist/modules/agents/agent-knowledge-mirror.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-retrieval.d.ts +1 -5
- package/dist/modules/agents/agent-knowledge-retrieval.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-snapshot.service.js +1 -1
- package/dist/modules/agents/agent-knowledge-snapshot.service.js.map +1 -1
- package/dist/modules/agents/agent-knowledge-usage-tracker.d.ts +9 -0
- package/dist/modules/agents/agent-knowledge-usage-tracker.js +111 -8
- package/dist/modules/agents/agent-knowledge-usage-tracker.js.map +1 -1
- package/dist/modules/agents/agent-knowledge.service.d.ts +3 -1
- package/dist/modules/agents/agent-knowledge.service.js +26 -20
- package/dist/modules/agents/agent-knowledge.service.js.map +1 -1
- package/dist/modules/agents/agent-memory-entries.service.d.ts +4 -3
- package/dist/modules/agents/agent-memory-entries.service.js +15 -9
- package/dist/modules/agents/agent-memory-entries.service.js.map +1 -1
- package/dist/modules/agents/agent-memory-trace.service.d.ts +25 -0
- package/dist/modules/agents/agent-memory-trace.service.js +149 -0
- package/dist/modules/agents/agent-memory-trace.service.js.map +1 -0
- package/dist/modules/agents/agent-memory.controller.d.ts +5 -0
- package/dist/modules/agents/agent-memory.controller.js +14 -0
- package/dist/modules/agents/agent-memory.controller.js.map +1 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.d.ts +2 -2
- package/dist/modules/agents/agent-message-queue-consumer.service.js +18 -11
- package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
- package/dist/modules/agents/agent-message-queue.service.d.ts +11 -0
- package/dist/modules/agents/agent-message-queue.service.js +107 -8
- package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
- package/dist/modules/agents/agent-message-steering.service.js +5 -5
- package/dist/modules/agents/agent-message-steering.service.js.map +1 -1
- package/dist/modules/agents/agent-model-catalog.service.d.ts +3 -1
- package/dist/modules/agents/agent-model-catalog.service.js +6 -3
- package/dist/modules/agents/agent-model-catalog.service.js.map +1 -1
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.d.ts +1 -1
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.js +2 -2
- package/dist/modules/agents/agent-n8n-chat-unavailable.error.js.map +1 -1
- package/dist/modules/agents/agent-plan.service.d.ts +37 -184
- package/dist/modules/agents/agent-plan.service.js +50 -19
- package/dist/modules/agents/agent-plan.service.js.map +1 -1
- package/dist/modules/agents/agent-project-cleanup.service.d.ts +24 -0
- package/dist/modules/agents/agent-project-cleanup.service.js +75 -0
- package/dist/modules/agents/agent-project-cleanup.service.js.map +1 -0
- package/dist/modules/agents/agent-publish.controller.d.ts +18 -1
- package/dist/modules/agents/agent-publish.controller.js +39 -1
- package/dist/modules/agents/agent-publish.controller.js.map +1 -1
- package/dist/modules/agents/agent-publish.service.d.ts +13 -15
- package/dist/modules/agents/agent-publish.service.js +167 -167
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/{agent-queued-preview-stream.service.d.ts → agent-queued-test-stream.service.d.ts} +2 -1
- package/dist/modules/agents/{agent-queued-preview-stream.service.js → agent-queued-test-stream.service.js} +19 -15
- package/dist/modules/agents/agent-queued-test-stream.service.js.map +1 -0
- package/dist/modules/agents/agent-run-tracing.service.d.ts +1 -3
- package/dist/modules/agents/agent-run-tracing.service.js +5 -6
- package/dist/modules/agents/agent-run-tracing.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 +11 -2
- package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-cache.service.js +2 -2
- package/dist/modules/agents/agent-runtime-cache.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +49 -19
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-sandbox-runtime.service.js +7 -7
- package/dist/modules/agents/agent-sandbox-runtime.service.js.map +1 -1
- package/dist/modules/agents/agent-session-langsmith-export.service.js +1 -2
- package/dist/modules/agents/agent-session-langsmith-export.service.js.map +1 -1
- package/dist/modules/agents/agent-session-read.d.ts +1 -0
- package/dist/modules/agents/agent-session-read.js +4 -0
- package/dist/modules/agents/agent-session-read.js.map +1 -1
- package/dist/modules/agents/agent-session-stop-reason.d.ts +1 -0
- package/dist/modules/agents/agent-session-stop-reason.js +5 -0
- package/dist/modules/agents/agent-session-stop-reason.js.map +1 -0
- package/dist/modules/agents/agent-session-stop.service.d.ts +26 -0
- package/dist/modules/agents/agent-session-stop.service.js +105 -0
- package/dist/modules/agents/agent-session-stop.service.js.map +1 -0
- package/dist/modules/agents/agent-skill-refs.service.d.ts +21 -9
- package/dist/modules/agents/agent-skill-refs.service.js +181 -91
- package/dist/modules/agents/agent-skill-refs.service.js.map +1 -1
- package/dist/modules/agents/agent-skill-usage.d.ts +26 -0
- package/dist/modules/agents/agent-skill-usage.js +110 -0
- package/dist/modules/agents/agent-skill-usage.js.map +1 -0
- package/dist/modules/agents/agent-skills.service.d.ts +5 -6
- package/dist/modules/agents/agent-skills.service.js +30 -44
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-task-cancellation.service.d.ts +36 -0
- package/dist/modules/agents/agent-task-cancellation.service.js +218 -0
- package/dist/modules/agents/agent-task-cancellation.service.js.map +1 -0
- package/dist/modules/agents/agent-task.service.d.ts +3 -1
- package/dist/modules/agents/agent-task.service.js +8 -3
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-test-run.service.d.ts +1 -1
- package/dist/modules/agents/agent-test-run.service.js +3 -4
- package/dist/modules/agents/agent-test-run.service.js.map +1 -1
- package/dist/modules/agents/agent-threads.controller.d.ts +11 -1
- package/dist/modules/agents/agent-threads.controller.js +28 -5
- package/dist/modules/agents/agent-threads.controller.js.map +1 -1
- package/dist/modules/agents/agent-tool-approval.service.js +2 -2
- package/dist/modules/agents/agent-tool-approval.service.js.map +1 -1
- package/dist/modules/agents/agent-turn-already-running.error.d.ts +1 -1
- package/dist/modules/agents/agent-turn-already-running.error.js +2 -2
- package/dist/modules/agents/agent-turn-already-running.error.js.map +1 -1
- package/dist/modules/agents/agent-turn-execution.service.d.ts +2 -1
- package/dist/modules/agents/agent-turn-execution.service.js +50 -17
- package/dist/modules/agents/agent-turn-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.js +2 -2
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-whatsapp-integrations.controller.d.ts +4 -1
- package/dist/modules/agents/agent-whatsapp-integrations.controller.js +13 -0
- package/dist/modules/agents/agent-whatsapp-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.js +9 -9
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-tool-resume.service.js +2 -1
- package/dist/modules/agents/agent-workflow-tool-resume.service.js.map +1 -1
- package/dist/modules/agents/agents-catalog.controller.d.ts +3 -1
- package/dist/modules/agents/agents-catalog.controller.js +6 -3
- package/dist/modules/agents/agents-catalog.controller.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +4 -0
- package/dist/modules/agents/agents.controller.d.ts +5 -0
- package/dist/modules/agents/agents.module.d.ts +1 -1
- package/dist/modules/agents/agents.module.js +6 -2
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +5 -2
- package/dist/modules/agents/agents.service.js +15 -9
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/azure-foundry-deployments.service.js +2 -2
- package/dist/modules/agents/azure-foundry-deployments.service.js.map +1 -1
- package/dist/modules/agents/background/agent-background-job.service.d.ts +72 -14
- package/dist/modules/agents/background/agent-background-job.service.js +170 -64
- package/dist/modules/agents/background/agent-background-job.service.js.map +1 -1
- package/dist/modules/agents/background/agent-wake.service.d.ts +6 -1
- package/dist/modules/agents/background/agent-wake.service.js +49 -13
- package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
- package/dist/modules/agents/background/background-job-messages.d.ts +1 -0
- package/dist/modules/agents/background/background-job-messages.js +8 -2
- package/dist/modules/agents/background/background-job-messages.js.map +1 -1
- package/dist/modules/agents/background/background-job-tools.d.ts +4 -3
- package/dist/modules/agents/background/background-job-tools.js +168 -106
- package/dist/modules/agents/background/background-job-tools.js.map +1 -1
- package/dist/modules/agents/background/sub-agent-background-runner.d.ts +9 -2
- package/dist/modules/agents/background/sub-agent-background-runner.js +41 -16
- package/dist/modules/agents/background/sub-agent-background-runner.js.map +1 -1
- package/dist/modules/agents/budget-guardrail.js +3 -3
- package/dist/modules/agents/budget-guardrail.js.map +1 -1
- package/dist/modules/agents/builder/agent-builder-session-context.d.ts +1 -1
- package/dist/modules/agents/builder/agent-builder-session-context.js +3 -8
- package/dist/modules/agents/builder/agent-builder-session-context.js.map +1 -1
- package/dist/modules/agents/builder/agent-builder-test-path.d.ts +1 -0
- package/dist/modules/agents/builder/{agent-builder-preview-path.js → agent-builder-test-path.js} +3 -3
- package/dist/modules/agents/builder/agent-builder-test-path.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.js +137 -163
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.js +3 -4
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +2 -2
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +0 -4
- package/dist/modules/agents/builder/builder-tool-names.js +0 -3
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js +17 -8
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js +59 -23
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/index.d.ts +0 -1
- package/dist/modules/agents/builder/interactive/index.js +1 -3
- package/dist/modules/agents/builder/interactive/index.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +56 -41
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +15 -9
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skill-body-template.d.ts +0 -1
- package/dist/modules/agents/builder/skill-body-template.js +1 -2
- package/dist/modules/agents/builder/skill-body-template.js.map +1 -1
- package/dist/modules/agents/builder/skills/custom-tools.skill.js +1 -1
- package/dist/modules/agents/builder/skills/custom-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +6 -6
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/memory.skill.js +3 -3
- package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/node-tools.skill.js +2 -2
- package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/resource-locators.skill.js +3 -3
- package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/sub-agents.skill.js +4 -8
- package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +9 -4
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +6 -4
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/builder/task-objective-template.d.ts +2 -1
- package/dist/modules/agents/builder/task-objective-template.js +47 -2
- package/dist/modules/agents/builder/task-objective-template.js.map +1 -1
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +22 -21
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
- package/dist/modules/agents/entities/agent-background-job.entity.d.ts +3 -1
- package/dist/modules/agents/entities/agent-background-job.entity.js +8 -0
- package/dist/modules/agents/entities/agent-background-job.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-chat-attachment.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent-chat-attachment.entity.js +4 -0
- package/dist/modules/agents/entities/agent-chat-attachment.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-file-grant.entity.d.ts +8 -0
- package/dist/modules/{data-table/data-table-column.entity.js → agents/entities/agent-file-grant.entity.js} +16 -24
- package/dist/modules/agents/entities/agent-file-grant.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-history.entity.d.ts +2 -0
- package/dist/modules/agents/entities/agent-history.entity.js +8 -0
- package/dist/modules/agents/entities/agent-history.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-memory-entry.entity.d.ts +3 -1
- package/dist/modules/agents/entities/agent-memory-entry.entity.js +15 -2
- package/dist/modules/agents/entities/agent-memory-entry.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-message.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent-message.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-publish-history.entity.d.ts +17 -0
- package/dist/modules/agents/entities/agent-publish-history.entity.js +67 -0
- package/dist/modules/agents/entities/agent-publish-history.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent.entity.js +4 -0
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/evaluation/agent-evaluation.service.js +2 -2
- package/dist/modules/agents/evaluation/agent-evaluation.service.js.map +1 -1
- package/dist/modules/agents/execution-log/agent-execution-log-write.error.d.ts +1 -1
- package/dist/modules/agents/execution-log/agent-execution-log-write.error.js +2 -2
- package/dist/modules/agents/execution-log/agent-execution-log-write.error.js.map +1 -1
- package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.d.ts +1 -1
- package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.js +2 -2
- package/dist/modules/agents/execution-log/corrupted-agent-execution-log.error.js.map +1 -1
- package/dist/modules/agents/execution-recorder.d.ts +1 -0
- package/dist/modules/agents/execution-recorder.js +19 -3
- package/dist/modules/agents/execution-recorder.js.map +1 -1
- package/dist/modules/{instance-ai → agents}/format-agent-session-context.d.ts +1 -1
- package/dist/modules/agents/format-agent-session-context.js.map +1 -0
- package/dist/modules/agents/integrations/agent-channel-reconciler.service.js +2 -2
- package/dist/modules/agents/integrations/agent-channel-reconciler.service.js.map +1 -1
- package/dist/modules/agents/integrations/agent-channel-status-reporter.js +6 -6
- package/dist/modules/agents/integrations/agent-channel-status-reporter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +13 -3
- package/dist/modules/agents/integrations/agent-chat-bridge.js +70 -7
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.d.ts +10 -1
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js +24 -0
- package/dist/modules/agents/integrations/agent-chat-hitl-resume-handler.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +23 -3
- package/dist/modules/agents/integrations/agent-chat-integration.js +6 -3
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.d.ts +1 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js +15 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.d.ts +18 -1
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js +73 -5
- package/dist/modules/agents/integrations/agent-chat-stream-consumer.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-subscription-state.adapter.js +4 -4
- package/dist/modules/agents/integrations/agent-chat-subscription-state.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-subscription-state.service.js +1 -1
- package/dist/modules/agents/integrations/agent-chat-subscription-state.service.js.map +1 -1
- package/dist/modules/agents/integrations/agent-outbound-files.service.d.ts +45 -0
- package/dist/modules/agents/integrations/agent-outbound-files.service.js +161 -0
- package/dist/modules/agents/integrations/agent-outbound-files.service.js.map +1 -0
- package/dist/modules/agents/integrations/channel-status-report.js +8 -1
- package/dist/modules/agents/integrations/channel-status-report.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.js +7 -6
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/component-mapper.d.ts +1 -0
- package/dist/modules/agents/integrations/component-mapper.js +3 -2
- package/dist/modules/agents/integrations/component-mapper.js.map +1 -1
- package/dist/modules/agents/integrations/credential-fields.js +2 -2
- package/dist/modules/agents/integrations/credential-fields.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +9 -1
- package/dist/modules/agents/integrations/integration-action-executor.js +73 -12
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-context-query-executor.js +2 -2
- package/dist/modules/agents/integrations/integration-context-query-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +2 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +2 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
- package/dist/modules/agents/integrations/integration-helpers.d.ts +5 -0
- package/dist/modules/agents/integrations/integration-helpers.js +19 -0
- package/dist/modules/agents/integrations/integration-helpers.js.map +1 -1
- package/dist/modules/agents/integrations/integration-message-context.js +8 -0
- package/dist/modules/agents/integrations/integration-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/integration-message-context.service.d.ts +2 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js +17 -0
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-definitions.d.ts +31 -0
- package/dist/modules/agents/integrations/integration-tool-definitions.js +27 -4
- package/dist/modules/agents/integrations/integration-tool-definitions.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-descriptions.d.ts +2 -0
- package/dist/modules/agents/integrations/integration-tool-descriptions.js +16 -0
- package/dist/modules/agents/integrations/integration-tool-descriptions.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-execution.d.ts +3 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js +33 -3
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-factory.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-tool-factory.js +5 -3
- package/dist/modules/agents/integrations/integration-tool-factory.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-types.d.ts +12 -2
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js +6 -5
- package/dist/modules/agents/integrations/n8n-checkpoint-storage.js.map +1 -1
- package/dist/modules/agents/integrations/n8n-memory.d.ts +11 -3
- package/dist/modules/agents/integrations/n8n-memory.js +78 -190
- package/dist/modules/agents/integrations/n8n-memory.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/discord/discord-integration.d.ts +4 -0
- package/dist/modules/agents/integrations/platforms/discord/discord-integration.js +1 -0
- package/dist/modules/agents/integrations/platforms/discord/discord-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-integration.d.ts +3 -3
- package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-integration.js +11 -11
- package/dist/modules/agents/integrations/platforms/n8n-chat/n8n-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +4 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js +5 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.js +3 -3
- package/dist/modules/agents/integrations/platforms/slack/slack-search-pagination.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js +5 -5
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.js +2 -2
- package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js +3 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js +8 -9
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js +5 -6
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js +8 -9
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js +3 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +4 -4
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js +1 -2
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js +3 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js +3 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js +2 -2
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram/telegram-integration.d.ts +11 -0
- package/dist/modules/agents/integrations/platforms/telegram/telegram-integration.js +18 -2
- package/dist/modules/agents/integrations/platforms/telegram/telegram-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.d.ts +6 -1
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js +77 -3
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-delivery-failures.d.ts +24 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-delivery-failures.js +97 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-delivery-failures.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.d.ts +29 -5
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js +278 -24
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-meta-status.d.ts +9 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-meta-status.js +43 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-meta-status.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-option-pages.store.d.ts +36 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-option-pages.store.js +87 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-option-pages.store.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-setup-telemetry.service.d.ts +6 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-setup-telemetry.service.js +36 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-setup-telemetry.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-templates.d.ts +32 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-templates.js +165 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-templates.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-tool-definitions.d.ts +88 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-tool-definitions.js +53 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-tool-definitions.js.map +1 -0
- package/dist/modules/agents/integrations/resolve-imported-channels.d.ts +14 -0
- package/dist/modules/agents/integrations/resolve-imported-channels.js +32 -0
- package/dist/modules/agents/integrations/resolve-imported-channels.js.map +1 -0
- package/dist/modules/agents/json-config/from-json-config.js +23 -16
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.js +8 -7
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.js +7 -4
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/json-config/web-search-credential.js +4 -4
- package/dist/modules/agents/json-config/web-search-credential.js.map +1 -1
- package/dist/modules/agents/plans/{agent-plan-work-state.d.ts → agent-plan-state.d.ts} +12 -5
- package/dist/modules/agents/plans/agent-plan-state.js +87 -0
- package/dist/modules/agents/plans/agent-plan-state.js.map +1 -0
- package/dist/modules/agents/plans/agent-plan-task-context.d.ts +3 -0
- package/dist/modules/agents/plans/agent-plan-task-context.js +12 -0
- package/dist/modules/agents/plans/agent-plan-task-context.js.map +1 -0
- package/dist/modules/agents/plans/agent-plan-tools.d.ts +10 -11
- package/dist/modules/agents/plans/agent-plan-tools.js +56 -37
- package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan.schema.d.ts +432 -30
- package/dist/modules/agents/plans/agent-plan.schema.js +62 -6
- package/dist/modules/agents/plans/agent-plan.schema.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan.validation.d.ts +3 -2
- package/dist/modules/agents/plans/agent-plan.validation.js +53 -17
- package/dist/modules/agents/plans/agent-plan.validation.js.map +1 -1
- package/dist/modules/agents/register-agent-usage-provider.js +1 -1
- package/dist/modules/agents/register-agent-usage-provider.js.map +1 -1
- package/dist/modules/agents/register-skill-usage.d.ts +1 -0
- package/dist/modules/agents/register-skill-usage.js +10 -0
- package/dist/modules/agents/register-skill-usage.js.map +1 -0
- package/dist/modules/agents/register-user-deletion-handler.js +24 -2
- package/dist/modules/agents/register-user-deletion-handler.js.map +1 -1
- package/dist/modules/agents/repositories/agent-background-job.repository.d.ts +15 -3
- package/dist/modules/agents/repositories/agent-background-job.repository.js +88 -19
- package/dist/modules/agents/repositories/agent-background-job.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-budget-spend.repository.d.ts +5 -5
- package/dist/modules/agents/repositories/agent-budget-spend.repository.js +15 -10
- package/dist/modules/agents/repositories/agent-budget-spend.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-channel-status.repository.d.ts +13 -11
- package/dist/modules/agents/repositories/agent-channel-status.repository.js +34 -20
- package/dist/modules/agents/repositories/agent-channel-status.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +27 -9
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +61 -16
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-chat-subscription.repository.d.ts +10 -9
- package/dist/modules/agents/repositories/agent-chat-subscription.repository.js +22 -14
- package/dist/modules/agents/repositories/agent-chat-subscription.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.d.ts +6 -5
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js +14 -9
- package/dist/modules/agents/repositories/agent-credential-dependency.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +42 -4
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +216 -17
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +5 -1
- package/dist/modules/agents/repositories/agent-execution.repository.js +18 -2
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-file-grant.repository.d.ts +9 -0
- package/dist/modules/agents/repositories/agent-file-grant.repository.js +56 -0
- package/dist/modules/agents/repositories/agent-file-grant.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-file.repository.d.ts +13 -8
- package/dist/modules/agents/repositories/agent-file.repository.js +33 -14
- package/dist/modules/agents/repositories/agent-file.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +13 -8
- package/dist/modules/agents/repositories/agent-history.repository.js +52 -22
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.d.ts +13 -8
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js +60 -30
- package/dist/modules/agents/repositories/agent-memory-entry-candidate.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js +16 -0
- package/dist/modules/agents/repositories/agent-memory-entry-source.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-memory-entry.repository.d.ts +21 -3
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js +164 -4
- package/dist/modules/agents/repositories/agent-memory-entry.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-memory-scope.repository.d.ts +9 -0
- package/dist/modules/agents/repositories/agent-memory-scope.repository.js +58 -0
- package/dist/modules/agents/repositories/agent-memory-scope.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +2 -0
- package/dist/modules/agents/repositories/agent-message-queue.repository.js +20 -0
- package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-message.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent-message.repository.js +6 -6
- package/dist/modules/agents/repositories/agent-message.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-plan.repository.d.ts +77 -2
- package/dist/modules/agents/repositories/agent-plan.repository.js +174 -11
- package/dist/modules/agents/repositories/agent-plan.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-project-deletion.repository.d.ts +12 -0
- package/dist/modules/agents/repositories/agent-project-deletion.repository.js +68 -0
- package/dist/modules/agents/repositories/agent-project-deletion.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-publish-history.repository.d.ts +11 -0
- package/dist/modules/agents/repositories/agent-publish-history.repository.js +82 -0
- package/dist/modules/agents/repositories/agent-publish-history.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent-skill.repository.d.ts +22 -8
- package/dist/modules/agents/repositories/agent-skill.repository.js +24 -36
- package/dist/modules/agents/repositories/agent-skill.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-thread.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js +5 -0
- package/dist/modules/agents/repositories/agent-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-user-deletion.repository.d.ts +12 -0
- package/dist/modules/agents/repositories/agent-user-deletion.repository.js +72 -0
- package/dist/modules/agents/repositories/agent-user-deletion.repository.js.map +1 -0
- package/dist/modules/agents/repositories/agent.repository.d.ts +6 -8
- package/dist/modules/agents/repositories/agent.repository.js +47 -18
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/scheduling/agent-task-task-handler.js +2 -2
- package/dist/modules/agents/scheduling/agent-task-task-handler.js.map +1 -1
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +6 -3
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/format-sub-agent-tool-output.js +2 -0
- package/dist/modules/agents/sub-agents/format-sub-agent-tool-output.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.d.ts +5 -1
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.js +14 -3
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +8 -2
- package/dist/modules/agents/sub-agents/sub-agent-runner.js +55 -11
- package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +8 -8
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
- package/dist/modules/agents/system-agents/system-agent-chat.controller.d.ts +12 -9
- package/dist/modules/agents/system-agents/system-agent-chat.controller.js +74 -16
- package/dist/modules/agents/system-agents/system-agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/system-agents/system-agent-execution.service.d.ts +10 -4
- package/dist/modules/agents/system-agents/system-agent-execution.service.js +86 -53
- package/dist/modules/agents/system-agents/system-agent-execution.service.js.map +1 -1
- package/dist/modules/agents/system-agents/system-agent-host-events.js +4 -4
- package/dist/modules/agents/system-agents/system-agent-host-events.js.map +1 -1
- package/dist/modules/agents/system-agents/system-agent-registry.js +2 -2
- package/dist/modules/agents/system-agents/system-agent-registry.js.map +1 -1
- package/dist/modules/agents/system-agents/system-agent-thread-metadata.service.d.ts +10 -0
- package/dist/modules/agents/system-agents/system-agent-thread-metadata.service.js +44 -0
- package/dist/modules/agents/system-agents/system-agent-thread-metadata.service.js.map +1 -0
- package/dist/modules/agents/system-agents/system-agent.types.d.ts +3 -2
- package/dist/modules/agents/tools/environment-tool.d.ts +1 -0
- package/dist/modules/agents/tools/environment-tool.js +3 -1
- package/dist/modules/agents/tools/environment-tool.js.map +1 -1
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js +30 -2
- package/dist/modules/agents/tools/knowledge/search-knowledge.tool.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.d.ts +1 -0
- package/dist/modules/agents/tools/node-tool-factory.js +50 -13
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/read-binary-data.tool.d.ts +34 -0
- package/dist/modules/agents/tools/read-binary-data.tool.js +85 -0
- package/dist/modules/agents/tools/read-binary-data.tool.js.map +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +9 -17
- package/dist/modules/agents/tools/workflow-tool-factory.js +104 -156
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/types/agent-queued-message.d.ts +2 -0
- package/dist/modules/agents/types/agent-queued-message.js +1 -2
- package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
- package/dist/modules/agents/types/agent-task-stop.d.ts +3 -2
- package/dist/modules/agents/utils/agent-channel.d.ts +4 -0
- package/dist/modules/agents/utils/agent-channel.js +5 -0
- package/dist/modules/agents/utils/agent-channel.js.map +1 -1
- package/dist/modules/agents/utils/agent-config-hash.d.ts +1 -1
- package/dist/modules/agents/utils/agent-config-hash.js +2 -2
- package/dist/modules/agents/utils/agent-config-hash.js.map +1 -1
- package/dist/modules/agents/utils/agent-definition.d.ts +8 -3
- package/dist/modules/agents/utils/agent-definition.js +0 -1
- package/dist/modules/agents/utils/agent-definition.js.map +1 -1
- package/dist/modules/agents/utils/agent-draft.utils.js +1 -3
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
- package/dist/modules/agents/utils/agent-published-snapshot.js +2 -2
- package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
- package/dist/modules/agents/utils/execution-input.js +2 -2
- package/dist/modules/agents/utils/execution-input.js.map +1 -1
- package/dist/modules/agents/utils/execution-to-message-mapper.d.ts +1 -1
- package/dist/modules/agents/utils/execution-to-message-mapper.js +10 -3
- package/dist/modules/agents/utils/execution-to-message-mapper.js.map +1 -1
- package/dist/modules/agents/utils/inbound-attachments.js +2 -2
- package/dist/modules/agents/utils/inbound-attachments.js.map +1 -1
- package/dist/modules/agents/utils/skill-instruction-edits.js +2 -2
- package/dist/modules/agents/utils/skill-instruction-edits.js.map +1 -1
- package/dist/modules/apps/bindings/app-agent.adapter.d.ts +20 -0
- package/dist/modules/apps/bindings/app-agent.adapter.js +180 -0
- package/dist/modules/apps/bindings/app-agent.adapter.js.map +1 -0
- package/dist/modules/apps/bindings/app-data-table.adapter.d.ts +18 -0
- package/dist/modules/apps/bindings/app-data-table.adapter.js +117 -0
- package/dist/modules/apps/bindings/app-data-table.adapter.js.map +1 -0
- package/dist/modules/apps/bindings/app-workflow.adapter.d.ts +37 -0
- package/dist/modules/apps/bindings/app-workflow.adapter.js +336 -0
- package/dist/modules/apps/bindings/app-workflow.adapter.js.map +1 -0
- package/dist/modules/apps/bindings/infer-output-schema.d.ts +6 -0
- package/dist/modules/apps/bindings/infer-output-schema.js +57 -0
- package/dist/modules/apps/bindings/infer-output-schema.js.map +1 -0
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +1 -1
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +13 -1
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js +2 -1
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +1 -0
- package/dist/modules/breaking-changes/rules/index.js +1 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.js +3 -3
- package/dist/modules/breaking-changes/rules/v3/always-output-data-multi-output.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/evaluate-expression-code-node.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/evaluate-expression-code-node.rule.js +55 -0
- package/dist/modules/breaking-changes/rules/v3/evaluate-expression-code-node.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/get-paired-item.rule.js +1 -1
- package/dist/modules/breaking-changes/rules/v3/get-paired-item.rule.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/pre-execute-error-creates-execution.rule.js +4 -4
- package/dist/modules/breaking-changes/rules/v3/pre-execute-error-creates-execution.rule.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-execution.service.js +3 -3
- package/dist/modules/chat-hub/chat-hub-execution.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-title.service.js +7 -7
- package/dist/modules/chat-hub/chat-hub-title.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-workflow.service.js +2 -2
- package/dist/modules/chat-hub/chat-hub-workflow.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub.service.js +3 -3
- package/dist/modules/chat-hub/chat-hub.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-message.repository.d.ts +1 -1
- package/dist/modules/chat-hub/chat-message.repository.js +3 -3
- package/dist/modules/chat-hub/chat-message.repository.js.map +1 -1
- package/dist/modules/community-packages/community-packages.service.js +22 -21
- package/dist/modules/community-packages/community-packages.service.js.map +1 -1
- package/dist/modules/community-packages/npm-utils.js +16 -15
- package/dist/modules/community-packages/npm-utils.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/credential-resolution.error.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/credential-resolution.error.js +2 -2
- package/dist/modules/dynamic-credentials.ee/errors/credential-resolution.error.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/credential-resolver-not-found.error.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/credential-resolver-not-found.error.js +2 -2
- package/dist/modules/dynamic-credentials.ee/errors/credential-resolver-not-found.error.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/credential-storage.error.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/credential-storage.error.js +2 -2
- package/dist/modules/dynamic-credentials.ee/errors/credential-storage.error.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js +2 -2
- package/dist/modules/dynamic-credentials.ee/errors/system-resolver-modification.error.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js +2 -1
- package/dist/modules/dynamic-credentials.ee/services/credential-resolver.service.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js +2 -2
- package/dist/modules/dynamic-credentials.ee/services/n8n-resolver-seeder.service.js.map +1 -1
- package/dist/modules/engine-v2/engine-additional-data.js +1 -1
- package/dist/modules/engine-v2/engine-additional-data.js.map +1 -1
- package/dist/modules/engine-v2/engine-control-plane-client.js +2 -2
- package/dist/modules/engine-v2/engine-control-plane-client.js.map +1 -1
- package/dist/modules/engine-v2/engine-control-plane-server.d.ts +5 -1
- package/dist/modules/engine-v2/engine-control-plane-server.js +8 -2
- package/dist/modules/engine-v2/engine-control-plane-server.js.map +1 -1
- package/dist/modules/engine-v2/engine-credentials-client.js +3 -3
- package/dist/modules/engine-v2/engine-credentials-client.js.map +1 -1
- package/dist/modules/engine-v2/engine-data-plane-client.d.ts +5 -2
- package/dist/modules/engine-v2/engine-data-plane-client.js +31 -3
- package/dist/modules/engine-v2/engine-data-plane-client.js.map +1 -1
- package/dist/modules/engine-v2/engine-data-tables.contract.d.ts +1505 -0
- package/dist/modules/engine-v2/engine-data-tables.contract.js +141 -0
- package/dist/modules/engine-v2/engine-data-tables.contract.js.map +1 -0
- package/dist/modules/engine-v2/engine-data-tables.controller.d.ts +7 -0
- package/dist/modules/engine-v2/engine-data-tables.controller.js +34 -0
- package/dist/modules/engine-v2/engine-data-tables.controller.js.map +1 -0
- package/dist/modules/engine-v2/engine-data-tables.service.d.ts +11 -0
- package/dist/modules/engine-v2/engine-data-tables.service.js +94 -0
- package/dist/modules/engine-v2/engine-data-tables.service.js.map +1 -0
- package/dist/modules/engine-v2/engine-sub-workflow-client.d.ts +7 -0
- package/dist/modules/engine-v2/engine-sub-workflow-client.js +62 -0
- package/dist/modules/engine-v2/engine-sub-workflow-client.js.map +1 -0
- package/dist/modules/engine-v2/engine-sub-workflow.contract.d.ts +106 -0
- package/dist/modules/engine-v2/engine-sub-workflow.contract.js +59 -0
- package/dist/modules/engine-v2/engine-sub-workflow.contract.js.map +1 -0
- package/dist/modules/engine-v2/engine-sub-workflow.controller.d.ts +7 -0
- package/dist/modules/engine-v2/engine-sub-workflow.controller.js +34 -0
- package/dist/modules/engine-v2/engine-sub-workflow.controller.js.map +1 -0
- package/dist/modules/engine-v2/engine-sub-workflow.service.d.ts +16 -0
- package/dist/modules/engine-v2/engine-sub-workflow.service.js +138 -0
- package/dist/modules/engine-v2/engine-sub-workflow.service.js.map +1 -0
- package/dist/modules/engine-v2/engine-v2.constants.d.ts +2 -0
- package/dist/modules/engine-v2/engine-v2.constants.js +3 -1
- package/dist/modules/engine-v2/engine-v2.constants.js.map +1 -1
- package/dist/modules/engine-v2/engine-v2.module.js +7 -4
- package/dist/modules/engine-v2/engine-v2.module.js.map +1 -1
- package/dist/modules/engine-v2/engine-v2.runtime.d.ts +4 -1
- package/dist/modules/engine-v2/engine-v2.runtime.js +15 -4
- package/dist/modules/engine-v2/engine-v2.runtime.js.map +1 -1
- package/dist/modules/engine-v2/remote-credentials-helper.js +5 -4
- package/dist/modules/engine-v2/remote-credentials-helper.js.map +1 -1
- package/dist/modules/engine-v2/response-channel/execution-response-frame.js +2 -2
- package/dist/modules/engine-v2/response-channel/execution-response-frame.js.map +1 -1
- package/dist/modules/engine-v2/response-channel/in-memory-execution-response-sender.js +2 -2
- package/dist/modules/engine-v2/response-channel/in-memory-execution-response-sender.js.map +1 -1
- package/dist/modules/engine-v2/response-channel/redis-execution-response-receiver.js +3 -3
- package/dist/modules/engine-v2/response-channel/redis-execution-response-receiver.js.map +1 -1
- package/dist/modules/engine-v2/response-channel/redis-execution-response-sender.js +2 -2
- package/dist/modules/engine-v2/response-channel/redis-execution-response-sender.js.map +1 -1
- package/dist/modules/engine-v2/webhook-response/webhook-outcome.js +4 -4
- package/dist/modules/engine-v2/webhook-response/webhook-outcome.js.map +1 -1
- package/dist/modules/engine-v2/webhook-response/webhook-response-registry.service.js +7 -7
- package/dist/modules/engine-v2/webhook-response/webhook-response-registry.service.js.map +1 -1
- package/dist/modules/external-secrets.ee/errors/unknown-auth-type.error.d.ts +1 -1
- package/dist/modules/external-secrets.ee/errors/unknown-auth-type.error.js +2 -2
- package/dist/modules/external-secrets.ee/errors/unknown-auth-type.error.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js +2 -2
- package/dist/modules/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js +3 -3
- package/dist/modules/external-secrets.ee/external-secrets-provider-connection-manager.ee.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +2 -1
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.d.ts +1 -1
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js +5 -4
- package/dist/modules/external-secrets.ee/providers/azure-key-vault/azure-key-vault.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.js +4 -2
- package/dist/modules/external-secrets.ee/providers/gcp-secrets-manager/gcp-secrets-manager.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/infisical.d.ts +1 -1
- package/dist/modules/external-secrets.ee/providers/infisical.js +6 -5
- package/dist/modules/external-secrets.ee/providers/infisical.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/one-password.d.ts +1 -1
- package/dist/modules/external-secrets.ee/providers/one-password.js +5 -4
- package/dist/modules/external-secrets.ee/providers/one-password.js.map +1 -1
- package/dist/modules/external-secrets.ee/providers/vault.d.ts +1 -1
- package/dist/modules/external-secrets.ee/providers/vault.js +9 -18
- package/dist/modules/external-secrets.ee/providers/vault.js.map +1 -1
- package/dist/modules/external-secrets.ee/secret-path.d.ts +1 -0
- package/dist/modules/external-secrets.ee/secret-path.js +13 -0
- package/dist/modules/external-secrets.ee/secret-path.js.map +1 -0
- package/dist/modules/external-secrets.ee/secrets-cache.service.js +2 -2
- package/dist/modules/external-secrets.ee/secrets-cache.service.js.map +1 -1
- package/dist/modules/external-secrets.ee/settings-store.service.js +2 -1
- package/dist/modules/external-secrets.ee/settings-store.service.js.map +1 -1
- package/dist/modules/external-secrets.ee/types.js.map +1 -1
- package/dist/modules/external-secrets.ee/with-timeout.d.ts +1 -1
- package/dist/modules/external-secrets.ee/with-timeout.js +2 -2
- package/dist/modules/external-secrets.ee/with-timeout.js.map +1 -1
- package/dist/modules/inbound-auth-core/authentication-pipeline.d.ts +6 -2
- package/dist/modules/inbound-auth-core/authentication-pipeline.js +24 -2
- package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -1
- package/dist/modules/inbound-auth-core/constants.d.ts +2 -1
- package/dist/modules/inbound-auth-core/constants.js +3 -2
- package/dist/modules/inbound-auth-core/constants.js.map +1 -1
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.d.ts +1 -0
- package/dist/modules/inbound-auth-core/database/entities/trusted-source.entity.js +4 -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.repository.d.ts +1 -0
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js +10 -0
- package/dist/modules/inbound-auth-core/database/repositories/trusted-source.repository.js.map +1 -1
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js +2 -2
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.js.map +1 -1
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js +2 -2
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.d.ts +3 -2
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js +23 -9
- package/dist/modules/inbound-auth-core/trusted-source-discovery.service.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source.controller.js +2 -0
- package/dist/modules/inbound-auth-core/trusted-source.controller.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +4 -1
- package/dist/modules/inbound-auth-core/trusted-source.store.js +40 -3
- package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
- package/dist/modules/instance-ai/{agent-preview-handoff.d.ts → agent-test-handoff.d.ts} +5 -5
- package/dist/modules/instance-ai/{agent-preview-handoff.js → agent-test-handoff.js} +15 -16
- package/dist/modules/instance-ai/agent-test-handoff.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-agent.controller.d.ts +10 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-agent.controller.js +54 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-agent.controller.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-agent.provider.d.ts +47 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-agent.provider.js +413 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-agent.provider.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-artifact-names.service.d.ts +9 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-artifact-names.service.js +40 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-artifact-names.service.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-event-sink.d.ts +14 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-event-sink.js +40 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-event-sink.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-temporary-workflow-markers.d.ts +4 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-temporary-workflow-markers.js +30 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-temporary-workflow-markers.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-thread-tabs.d.ts +4 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-thread-tabs.js +51 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-thread-tabs.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-thread-tabs.service.d.ts +17 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-thread-tabs.service.js +63 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-thread-tabs.service.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-turn-options.d.ts +18 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-turn-options.js +55 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-turn-options.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-turn-trace.d.ts +59 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-turn-trace.js +439 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-turn-trace.js.map +1 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-workspace-source.d.ts +25 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-workspace-source.js +64 -0
- package/dist/modules/instance-ai/assistant-agent/assistant-workspace-source.js.map +1 -0
- package/dist/modules/instance-ai/assistant.controller.d.ts +32 -0
- package/dist/modules/instance-ai/assistant.controller.js +187 -0
- package/dist/modules/instance-ai/assistant.controller.js.map +1 -0
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.d.ts +4 -8
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js +8 -86
- package/dist/modules/instance-ai/browser/browser-local-mcp-server.js.map +1 -1
- package/dist/modules/instance-ai/browser/browser.helpers.d.ts +21 -0
- package/dist/modules/instance-ai/browser/browser.helpers.js +142 -0
- package/dist/modules/instance-ai/browser/browser.helpers.js.map +1 -0
- package/dist/modules/instance-ai/browser/cloud-browser-local-mcp-server.d.ts +47 -0
- package/dist/modules/instance-ai/browser/cloud-browser-local-mcp-server.js +263 -0
- package/dist/modules/instance-ai/browser/cloud-browser-local-mcp-server.js.map +1 -0
- package/dist/modules/instance-ai/browser/cloud-browser-session-provider.d.ts +13 -0
- package/dist/modules/instance-ai/browser/cloud-browser-session-provider.js +3 -0
- package/dist/modules/instance-ai/browser/cloud-browser-session-provider.js.map +1 -0
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.d.ts +0 -1
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js +4 -35
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js.map +1 -1
- package/dist/modules/instance-ai/browser/instance-ai-cloud-browser.service.d.ts +21 -0
- package/dist/modules/instance-ai/browser/instance-ai-cloud-browser.service.js +112 -0
- package/dist/modules/instance-ai/browser/instance-ai-cloud-browser.service.js.map +1 -0
- package/dist/modules/instance-ai/conversation-history-content.d.ts +0 -2
- package/dist/modules/instance-ai/conversation-history-content.js +5 -5
- package/dist/modules/instance-ai/conversation-history-content.js.map +1 -1
- package/dist/modules/instance-ai/entities/index.d.ts +0 -1
- package/dist/modules/instance-ai/entities/index.js +1 -3
- package/dist/modules/instance-ai/entities/index.js.map +1 -1
- package/dist/modules/instance-ai/entities/instance-ai-thread-tabs.entity.d.ts +2 -2
- package/dist/modules/instance-ai/entities/instance-ai-thread-tabs.entity.js.map +1 -1
- package/dist/modules/instance-ai/eval/data-table-rows.d.ts +1 -1
- package/dist/modules/instance-ai/eval/data-table-rows.js +4 -3
- package/dist/modules/instance-ai/eval/data-table-rows.js.map +1 -1
- package/dist/modules/instance-ai/eval/eval-timings.js +1 -1
- package/dist/modules/instance-ai/eval/execution.service.d.ts +1 -1
- package/dist/modules/instance-ai/eval/execution.service.js +7 -6
- package/dist/modules/instance-ai/eval/execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/failed-execution-portability.service.js +16 -13
- package/dist/modules/instance-ai/eval/failed-execution-portability.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/llm-completion-mock.js +116 -50
- package/dist/modules/instance-ai/eval/llm-completion-mock.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +2 -1
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/node-run-mock.js +29 -18
- package/dist/modules/instance-ai/eval/node-run-mock.js.map +1 -1
- package/dist/modules/instance-ai/eval/pin-data-generator.js +3 -3
- 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 -2
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +2 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-agent-context.adapter.js +1 -1
- package/dist/modules/instance-ai/instance-ai-agent-context.adapter.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-conversation-history.service.js +3 -2
- package/dist/modules/instance-ai/instance-ai-conversation-history.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.js +2 -2
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-hub-skills.d.ts +8 -3
- package/dist/modules/instance-ai/instance-ai-hub-skills.js +24 -12
- package/dist/modules/instance-ai/instance-ai-hub-skills.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-model-catalog.service.d.ts +3 -1
- package/dist/modules/instance-ai/instance-ai-model-catalog.service.js +6 -3
- package/dist/modules/instance-ai/instance-ai-model-catalog.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-model.service.d.ts +4 -1
- package/dist/modules/instance-ai/instance-ai-model.service.js +26 -7
- package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +7 -2
- package/dist/modules/instance-ai/instance-ai-settings.service.js +26 -9
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-skill-telemetry.d.ts +37 -0
- package/dist/modules/instance-ai/instance-ai-skill-telemetry.js +129 -0
- package/dist/modules/instance-ai/instance-ai-skill-telemetry.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai-skills.adapter.d.ts +3 -3
- package/dist/modules/instance-ai/instance-ai-skills.adapter.js +18 -22
- package/dist/modules/instance-ai/instance-ai-skills.adapter.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-skills.service.d.ts +12 -7
- package/dist/modules/instance-ai/instance-ai-skills.service.js +29 -13
- package/dist/modules/instance-ai/instance-ai-skills.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js +2 -2
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.d.ts +6 -10
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js +8 -67
- package/dist/modules/instance-ai/instance-ai-thread-tabs.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-verification.service.js +3 -2
- package/dist/modules/instance-ai/instance-ai-verification.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +7 -3
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +138 -49
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +5 -22
- package/dist/modules/instance-ai/instance-ai.controller.js +3 -152
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +5 -1
- package/dist/modules/instance-ai/instance-ai.module.js +33 -2
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +0 -6
- package/dist/modules/instance-ai/instance-ai.service.js +63 -162
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-context.service.d.ts +3 -1
- package/dist/modules/instance-ai/instance-context.service.js +34 -43
- package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
- package/dist/modules/instance-ai/internal-messages.d.ts +6 -0
- package/dist/modules/instance-ai/internal-messages.js +26 -6
- package/dist/modules/instance-ai/internal-messages.js.map +1 -1
- package/dist/modules/instance-ai/repositories/conversation-history-search.d.ts +1 -6
- package/dist/modules/instance-ai/repositories/conversation-history-search.js +7 -5
- package/dist/modules/instance-ai/repositories/conversation-history-search.js.map +1 -1
- package/dist/modules/instance-ai/repositories/index.d.ts +0 -1
- package/dist/modules/instance-ai/repositories/index.js +1 -3
- package/dist/modules/instance-ai/repositories/index.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.d.ts +3 -3
- package/dist/modules/instance-ai/repositories/instance-ai-thread-tabs.repository.js.map +1 -1
- package/dist/modules/instance-ai/run-trace-metadata.d.ts +14 -0
- package/dist/modules/instance-ai/run-trace-metadata.js +51 -24
- package/dist/modules/instance-ai/run-trace-metadata.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.d.ts +2 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +5 -4
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/sandbox-provider.js +2 -2
- package/dist/modules/instance-ai/sandbox-provider.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.d.ts +1 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.js +4 -0
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.entity.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.d.ts +13 -3
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.js +134 -23
- package/dist/modules/instance-ai/self-healing/database/self-healing-configuration.repository.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +5 -4
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-agent.service.js +3 -3
- package/dist/modules/instance-ai/self-healing/self-healing-agent.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.js +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-candidate.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.d.ts +10 -2
- package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.js +53 -19
- package/dist/modules/instance-ai/self-healing/self-healing-configuration.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.d.ts +2 -1
- package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.js +14 -7
- package/dist/modules/instance-ai/self-healing/self-healing-configurations.controller.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +3 -4
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -1
- package/dist/modules/instance-ai/storage/index.d.ts +0 -1
- package/dist/modules/instance-ai/storage/index.js +1 -3
- package/dist/modules/instance-ai/storage/index.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js +3 -3
- package/dist/modules/instance-ai/storage/typeorm-agent-checkpoint-store.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +9 -7
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/suspended-run-restorer.service.js +2 -2
- package/dist/modules/instance-ai/suspended-run-restorer.service.js.map +1 -1
- package/dist/modules/instance-ai/temporary-workflow-markers.d.ts +6 -0
- package/dist/modules/instance-ai/temporary-workflow-markers.js +3 -0
- package/dist/modules/instance-ai/temporary-workflow-markers.js.map +1 -0
- package/dist/modules/instance-ai/tracing/resume-trace-input.d.ts +1 -0
- package/dist/modules/instance-ai/tracing/resume-trace-input.js +18 -0
- package/dist/modules/instance-ai/tracing/resume-trace-input.js.map +1 -0
- package/dist/modules/instance-ai/tracing/suspension-trace.d.ts +15 -0
- package/dist/modules/instance-ai/tracing/suspension-trace.js +25 -0
- package/dist/modules/instance-ai/tracing/suspension-trace.js.map +1 -0
- package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.d.ts +1 -0
- package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.js +16 -7
- package/dist/modules/instance-ai/turn-setup/assistant-agent.factory.js.map +1 -1
- package/dist/modules/instance-ai/turn-setup/assistant-credits.d.ts +1 -1
- package/dist/modules/instance-ai/turn-setup/assistant-credits.js +2 -2
- package/dist/modules/instance-ai/turn-setup/assistant-credits.js.map +1 -1
- package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.d.ts +1 -4
- package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js +21 -24
- package/dist/modules/instance-ai/turn-setup/assistant-turn-environment.factory.js.map +1 -1
- package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.d.ts +3 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js +40 -20
- package/dist/modules/instance-ai/turn-setup/assistant-turn-input.builder.js.map +1 -1
- package/dist/modules/instance-ai/turn-setup/assistant-turn-runtime.d.ts +4 -2
- package/dist/modules/instance-ai/turn-setup/assistant-turn-trace-input.d.ts +8 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-trace-input.js +37 -0
- package/dist/modules/instance-ai/turn-setup/assistant-turn-trace-input.js.map +1 -0
- package/dist/modules/instance-ai/user-facing-errors.d.ts +10 -0
- package/dist/modules/instance-ai/user-facing-errors.js +86 -0
- package/dist/modules/instance-ai/user-facing-errors.js.map +1 -0
- package/dist/modules/instance-reporting.ee/instance-reporting.module.js +2 -2
- package/dist/modules/instance-reporting.ee/instance-reporting.module.js.map +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting.service.js +3 -3
- package/dist/modules/instance-reporting.ee/instance-reporting.service.js.map +1 -1
- package/dist/modules/knowledge/vector-stores/embedding-credential.d.ts +5 -0
- package/dist/modules/knowledge/vector-stores/embedding-credential.js +9 -0
- package/dist/modules/knowledge/vector-stores/embedding-credential.js.map +1 -1
- package/dist/modules/knowledge/vector-stores/factory.js +5 -5
- package/dist/modules/knowledge/vector-stores/factory.js.map +1 -1
- package/dist/modules/ldap.ee/helpers.ee.d.ts +3 -3
- package/dist/modules/ldap.ee/helpers.ee.js +28 -36
- package/dist/modules/ldap.ee/helpers.ee.js.map +1 -1
- package/dist/modules/ldap.ee/ldap.errors.d.ts +1 -1
- package/dist/modules/ldap.ee/ldap.errors.js +3 -3
- package/dist/modules/ldap.ee/ldap.errors.js.map +1 -1
- package/dist/modules/ldap.ee/ldap.service.ee.js +5 -5
- package/dist/modules/ldap.ee/ldap.service.ee.js.map +1 -1
- package/dist/modules/log-streaming.ee/create-message-event-bus-destination.js +2 -2
- package/dist/modules/log-streaming.ee/create-message-event-bus-destination.js.map +1 -1
- package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.d.ts +2 -0
- package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.js +12 -0
- package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.js.map +1 -1
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.js +2 -0
- package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.js.map +1 -1
- package/dist/modules/log-streaming.ee/log-streaming-destination.service.d.ts +4 -0
- package/dist/modules/log-streaming.ee/log-streaming-destination.service.js +58 -14
- package/dist/modules/log-streaming.ee/log-streaming-destination.service.js.map +1 -1
- package/dist/modules/log-streaming.ee/log-streaming.controller.js +4 -1
- package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.js +7 -3
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp-scopes.js +5 -0
- package/dist/modules/mcp/mcp-scopes.js.map +1 -1
- package/dist/modules/mcp/mcp.constants.d.ts +1 -1
- package/dist/modules/mcp/mcp.constants.js +2 -1
- package/dist/modules/mcp/mcp.constants.js.map +1 -1
- package/dist/modules/mcp/mcp.errors.d.ts +1 -1
- package/dist/modules/mcp/mcp.errors.js +3 -3
- package/dist/modules/mcp/mcp.errors.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +4 -3
- package/dist/modules/mcp/mcp.service.js +13 -8
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +8 -2
- 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 +5 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +130 -30
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/data-table/add-data-table-column.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/add-data-table-rows.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/create-data-table.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/delete-data-table-column.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/get-data-table-rows.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/rename-data-table-column.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/rename-data-table.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/data-table/search-data-tables.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/execution-utils.d.ts +4 -0
- package/dist/modules/mcp/tools/execution-utils.js +23 -3
- package/dist/modules/mcp/tools/execution-utils.js.map +1 -1
- package/dist/modules/mcp/tools/get-workflow-details.tool.d.ts +3 -3
- package/dist/modules/mcp/tools/get-workflow-details.tool.js +4 -4
- package/dist/modules/mcp/tools/get-workflow-details.tool.js.map +1 -1
- package/dist/modules/mcp/tools/skills/skill-extension.service.d.ts +1 -1
- package/dist/modules/mcp/tools/skills/skill-extension.service.js +6 -3
- package/dist/modules/mcp/tools/skills/skill-extension.service.js.map +1 -1
- package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +5 -6
- package/dist/modules/mcp/tools/skills/skill-tools.service.js +50 -53
- package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/test-workflow.tool.d.ts +3 -2
- package/dist/modules/mcp/tools/test-workflow.tool.js +17 -7
- package/dist/modules/mcp/tools/test-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/update-credential-description.tool.d.ts +6 -0
- package/dist/modules/mcp/tools/update-credential-description.tool.js +48 -0
- package/dist/modules/mcp/tools/update-credential-description.tool.js.map +1 -0
- package/dist/modules/mcp/tools/webhook-utils.d.ts +3 -2
- package/dist/modules/mcp/tools/webhook-utils.js +37 -37
- package/dist/modules/mcp/tools/webhook-utils.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.d.ts +1 -1
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js +2 -2
- package/dist/modules/mcp/tools/workflow-builder/data-table-validation.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.d.ts +1 -1
- package/dist/modules/modules.manifest.js +13 -1
- package/dist/modules/modules.manifest.js.map +1 -1
- package/dist/modules/n8n-packages/engine/content-import-policy.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/content-import-policy.js +26 -23
- package/dist/modules/n8n-packages/engine/content-import-policy.js.map +1 -1
- package/dist/modules/n8n-packages/engine/credential-save-policy.d.ts +3 -3
- package/dist/modules/n8n-packages/engine/credential-save-policy.js +43 -39
- package/dist/modules/n8n-packages/engine/credential-save-policy.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +11 -7
- package/dist/modules/n8n-packages/engine/import-gates.js +37 -7
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +19 -5
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +130 -74
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +6 -1
- package/dist/modules/n8n-packages/engine/import-result.js +22 -2
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +2 -0
- package/dist/modules/n8n-packages/engine/import-telemetry.js +13 -8
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +3 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +36 -23
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/package-import-preflight.d.ts +15 -0
- package/dist/modules/n8n-packages/engine/package-import-preflight.js +70 -0
- package/dist/modules/n8n-packages/engine/package-import-preflight.js.map +1 -0
- package/dist/modules/n8n-packages/engine/package-layout.d.ts +0 -1
- package/dist/modules/n8n-packages/engine/package-layout.js +3 -8
- package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
- package/dist/modules/n8n-packages/engine/policy-verdict.d.ts +6 -0
- package/dist/modules/n8n-packages/engine/policy-verdict.js +20 -0
- package/dist/modules/n8n-packages/engine/policy-verdict.js.map +1 -0
- package/dist/modules/n8n-packages/engine/project-package-importer.d.ts +19 -6
- package/dist/modules/n8n-packages/engine/project-package-importer.js +47 -28
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.d.ts +3 -3
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +20 -30
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-body-issues.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-body-issues.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-export.types.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.d.ts +17 -3
- package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.js +54 -51
- package/dist/modules/n8n-packages/entities/agent/agent-import-bindings.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.d.ts +4 -3
- package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.js +13 -34
- package/dist/modules/n8n-packages/entities/agent/agent-import-match.service.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.d.ts +24 -21
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-import.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-importer.d.ts +10 -5
- package/dist/modules/n8n-packages/entities/agent/agent-importer.js +132 -104
- package/dist/modules/n8n-packages/entities/agent/agent-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent-publisher.d.ts +15 -0
- package/dist/modules/n8n-packages/entities/agent/agent-publisher.js +85 -0
- package/dist/modules/n8n-packages/entities/agent/agent-publisher.js.map +1 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js +12 -0
- package/dist/modules/n8n-packages/entities/agent/agent-selection.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +3 -3
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js +9 -2
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +4 -3
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/credential/credential-matcher.js +23 -4
- 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 +2 -2
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +4 -4
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +4 -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.js +2 -2
- 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 +5 -10
- package/dist/modules/n8n-packages/entities/data-table/data-table-importer.js +38 -42
- 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.exporter.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js +5 -5
- 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.d.ts +1 -1
- 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 +6 -1
- package/dist/modules/n8n-packages/entities/data-table/data-table.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder-import.types.d.ts +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder-importer.js +4 -2
- package/dist/modules/n8n-packages/entities/folder/folder-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/import-conflict-policy.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/import-conflict-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/import-id-policy.js +0 -2
- package/dist/modules/n8n-packages/entities/import-id-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/package-export.errors.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/package-export.errors.js +4 -4
- package/dist/modules/n8n-packages/entities/package-export.errors.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project-importer.d.ts +4 -2
- package/dist/modules/n8n-packages/entities/project/project-importer.js +33 -17
- package/dist/modules/n8n-packages/entities/project/project-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project.exporter.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/publishing.d.ts +10 -0
- package/dist/modules/n8n-packages/entities/publishing.js +9 -0
- package/dist/modules/n8n-packages/entities/publishing.js.map +1 -0
- package/dist/modules/n8n-packages/entities/skill/skill-import.types.d.ts +22 -0
- package/dist/modules/n8n-packages/entities/skill/skill-import.types.js +50 -0
- package/dist/modules/n8n-packages/entities/skill/skill-import.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/skill/skill-importer.d.ts +29 -0
- package/dist/modules/n8n-packages/entities/skill/skill-importer.js +245 -0
- package/dist/modules/n8n-packages/entities/skill/skill-importer.js.map +1 -0
- package/dist/modules/n8n-packages/entities/skill/skill.exporter.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/skill/skill.exporter.js +58 -0
- package/dist/modules/n8n-packages/entities/skill/skill.exporter.js.map +1 -0
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js +1 -2
- package/dist/modules/n8n-packages/entities/tag/tag-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js +9 -2
- package/dist/modules/n8n-packages/entities/variable/variable-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.types.d.ts +5 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +2 -2
- 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.d.ts +2 -1
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js +3 -3
- package/dist/modules/n8n-packages/entities/workflow/missing-node-type-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-import.types.d.ts +5 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js +9 -4
- package/dist/modules/n8n-packages/entities/workflow/workflow-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.d.ts +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js +9 -26
- package/dist/modules/n8n-packages/entities/workflow/workflow-publisher.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js +11 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +2 -9
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.js +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.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-version-policy.js +2 -2
- 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 +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.js +2 -2
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.js.map +1 -1
- package/dist/modules/n8n-packages/io/directory/package-directory-inventory-reader.js +7 -6
- 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 +7 -2
- package/dist/modules/n8n-packages/io/manifest-entry.js +24 -6
- package/dist/modules/n8n-packages/io/manifest-entry.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +11 -3
- package/dist/modules/n8n-packages/n8n-packages.service.js +56 -21
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +56 -16
- package/dist/modules/n8n-packages/n8n-packages.types.js +9 -3
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/package-failure-classifier.js +1 -2
- package/dist/modules/n8n-packages/package-failure-classifier.js.map +1 -1
- package/dist/modules/n8n-packages/spec/manifest.schema.d.ts +59 -5
- package/dist/modules/n8n-packages/spec/manifest.schema.js +7 -3
- package/dist/modules/n8n-packages/spec/manifest.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/requirement-consumers.d.ts +3 -0
- package/dist/modules/n8n-packages/spec/requirement-consumers.js +5 -1
- package/dist/modules/n8n-packages/spec/requirement-consumers.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +50 -87
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.js +0 -2
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/skill.schema.d.ts +97 -0
- package/dist/modules/n8n-packages/spec/serialized/skill.schema.js +16 -0
- package/dist/modules/n8n-packages/spec/serialized/skill.schema.js.map +1 -0
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js +3 -3
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-key.service.js +6 -5
- package/dist/modules/oauth-jwe/oauth-jwe-key.service.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.utils.js +2 -2
- package/dist/modules/oauth-jwe/oauth-jwe.utils.js.map +1 -1
- package/dist/modules/oauth-server/database/repositories/oauth-grant.repository.js +2 -2
- package/dist/modules/oauth-server/database/repositories/oauth-grant.repository.js.map +1 -1
- package/dist/modules/oauth-server/oauth-consent.controller.js +1 -2
- package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -1
- package/dist/modules/oauth-server/oauth-consent.service.js +4 -5
- package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-flow.service.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-flow.service.js +7 -7
- package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-server.service.js +3 -1
- package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.service.js +4 -3
- package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.js +2 -2
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/otel/caller-baggage.d.ts +3 -0
- package/dist/modules/otel/caller-baggage.js +27 -0
- package/dist/modules/otel/caller-baggage.js.map +1 -0
- package/dist/modules/otel/execution-level-tracer.d.ts +4 -7
- package/dist/modules/otel/execution-level-tracer.js +39 -14
- package/dist/modules/otel/execution-level-tracer.js.map +1 -1
- package/dist/modules/otel/otel-configure-hook.d.ts +20 -0
- package/dist/modules/otel/otel-configure-hook.js +79 -0
- package/dist/modules/otel/otel-configure-hook.js.map +1 -0
- package/dist/modules/otel/otel-exporter.factory.d.ts +21 -0
- package/dist/modules/otel/otel-exporter.factory.js +121 -0
- package/dist/modules/otel/otel-exporter.factory.js.map +1 -0
- package/dist/modules/otel/otel-lifecycle-handler.js +2 -1
- package/dist/modules/otel/otel-lifecycle-handler.js.map +1 -1
- package/dist/modules/otel/otel-settings.controller.d.ts +1 -7
- package/dist/modules/otel/otel-settings.controller.js +3 -11
- package/dist/modules/otel/otel-settings.controller.js.map +1 -1
- package/dist/modules/otel/otel-settings.service.d.ts +11 -2
- package/dist/modules/otel/otel-settings.service.js +37 -24
- package/dist/modules/otel/otel-settings.service.js.map +1 -1
- package/dist/modules/otel/otel-span-exporter.d.ts +4 -0
- package/dist/modules/otel/otel-span-exporter.js +38 -0
- package/dist/modules/otel/otel-span-exporter.js.map +1 -0
- package/dist/modules/otel/otel.constants.d.ts +1 -0
- package/dist/modules/otel/otel.constants.js +5 -0
- package/dist/modules/otel/otel.constants.js.map +1 -1
- package/dist/modules/otel/otel.module.js +11 -1
- package/dist/modules/otel/otel.module.js.map +1 -1
- package/dist/modules/otel/otel.service.d.ts +28 -26
- package/dist/modules/otel/otel.service.js +136 -202
- package/dist/modules/otel/otel.service.js.map +1 -1
- package/dist/modules/otel/tracing-context.d.ts +2 -5
- package/dist/modules/otel/tracing-context.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-check-failed.error.d.ts +1 -1
- package/dist/modules/policy-infrastructure/policy-check-failed.error.js +2 -2
- package/dist/modules/policy-infrastructure/policy-check-failed.error.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-decision.service.js +2 -2
- package/dist/modules/policy-infrastructure/policy-decision.service.js.map +1 -1
- package/dist/modules/promotions.ee/apply-preview.d.ts +21 -0
- package/dist/modules/promotions.ee/apply-preview.js +435 -0
- package/dist/modules/promotions.ee/apply-preview.js.map +1 -0
- package/dist/modules/promotions.ee/apply-preview.service.d.ts +37 -0
- package/dist/modules/promotions.ee/apply-preview.service.js +175 -0
- package/dist/modules/promotions.ee/apply-preview.service.js.map +1 -0
- package/dist/modules/promotions.ee/base-branch-files.js +2 -5
- package/dist/modules/promotions.ee/base-branch-files.js.map +1 -1
- package/dist/modules/promotions.ee/cross-project-moves.d.ts +2 -3
- package/dist/modules/promotions.ee/cross-project-moves.js +2 -9
- package/dist/modules/promotions.ee/cross-project-moves.js.map +1 -1
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +1 -1
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +1 -2
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -1
- package/dist/modules/promotions.ee/database/promotion-conflict.error.d.ts +1 -1
- package/dist/modules/promotions.ee/database/promotion-conflict.error.js +2 -2
- package/dist/modules/promotions.ee/database/promotion-conflict.error.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-environment.repository.d.ts +3 -3
- package/dist/modules/promotions.ee/database/repositories/promotion-environment.repository.js +5 -4
- package/dist/modules/promotions.ee/database/repositories/promotion-environment.repository.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.d.ts +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js +2 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-provider.repository.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +4 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -1
- package/dist/modules/promotions.ee/git-commit-package-reader.d.ts +9 -0
- package/dist/modules/promotions.ee/git-commit-package-reader.js +33 -0
- package/dist/modules/promotions.ee/git-commit-package-reader.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-remote.d.ts +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-remote.js +4 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-remote.js.map +1 -1
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +2 -2
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -1
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.js +6 -7
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.client.js.map +1 -1
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.d.ts +39 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.js +3 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-merge-request.types.js.map +1 -1
- package/dist/modules/promotions.ee/import-manifest-bridge.js +13 -6
- package/dist/modules/promotions.ee/import-manifest-bridge.js.map +1 -1
- package/dist/modules/promotions.ee/instance-package.d.ts +18 -0
- package/dist/modules/promotions.ee/instance-package.js +49 -0
- package/dist/modules/promotions.ee/instance-package.js.map +1 -0
- package/dist/modules/promotions.ee/local-package-entities.service.d.ts +27 -0
- package/dist/modules/promotions.ee/local-package-entities.service.js +63 -0
- package/dist/modules/promotions.ee/local-package-entities.service.js.map +1 -0
- package/dist/modules/promotions.ee/package-references.d.ts +25 -0
- package/dist/modules/promotions.ee/package-references.js +87 -0
- package/dist/modules/promotions.ee/package-references.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-change.service.d.ts +10 -18
- package/dist/modules/promotions.ee/promotion-change.service.js +140 -222
- package/dist/modules/promotions.ee/promotion-change.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-changes.controller.d.ts +2 -5
- package/dist/modules/promotions.ee/promotion-changes.controller.js +6 -21
- package/dist/modules/promotions.ee/promotion-changes.controller.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-environments.service.d.ts +11 -5
- package/dist/modules/promotions.ee/promotion-environments.service.js +78 -14
- package/dist/modules/promotions.ee/promotion-environments.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-preview.d.ts +4 -15
- package/dist/modules/promotions.ee/promotion-preview.js +26 -43
- package/dist/modules/promotions.ee/promotion-preview.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-providers.service.d.ts +9 -4
- package/dist/modules/promotions.ee/promotion-providers.service.js +44 -7
- package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-review-changes.service.js +65 -24
- package/dist/modules/promotions.ee/promotion-review-changes.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-review-commits-missing.error.d.ts +4 -0
- package/dist/modules/promotions.ee/promotion-review-commits-missing.error.js +11 -0
- package/dist/modules/promotions.ee/promotion-review-commits-missing.error.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-review-inbox.service.d.ts +5 -1
- package/dist/modules/promotions.ee/promotion-review-inbox.service.js +42 -8
- package/dist/modules/promotions.ee/promotion-review-inbox.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-reviews.controller.js +6 -6
- package/dist/modules/promotions.ee/promotion-reviews.controller.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-reviews.service.d.ts +3 -1
- package/dist/modules/promotions.ee/promotion-reviews.service.js +11 -3
- package/dist/modules/promotions.ee/promotion-reviews.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-telemetry.d.ts +12 -0
- package/dist/modules/promotions.ee/promotion-telemetry.js +46 -0
- package/dist/modules/promotions.ee/promotion-telemetry.js.map +1 -0
- package/dist/modules/promotions.ee/promotion-working-directory.service.js +2 -1
- package/dist/modules/promotions.ee/promotion-working-directory.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions-git.error.d.ts +5 -0
- package/dist/modules/promotions.ee/promotions-git.error.js +11 -0
- package/dist/modules/promotions.ee/promotions-git.error.js.map +1 -0
- package/dist/modules/promotions.ee/promotions-git.service.js +28 -9
- package/dist/modules/promotions.ee/promotions-git.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.module.d.ts +1 -1
- package/dist/modules/promotions.ee/promotions.module.js +1 -1
- package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.service.d.ts +20 -7
- package/dist/modules/promotions.ee/promotions.service.js +262 -208
- package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.types.d.ts +1 -0
- package/dist/modules/promotions.ee/working-copy-updater.js +8 -2
- package/dist/modules/promotions.ee/working-copy-updater.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +5 -0
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/redaction/instance-redaction-enforcement.service.js +2 -2
- package/dist/modules/redaction/instance-redaction-enforcement.service.js.map +1 -1
- package/dist/modules/scim/database/scim-transfer-target.repository.d.ts +18 -0
- package/dist/modules/scim/database/scim-transfer-target.repository.js +81 -0
- package/dist/modules/scim/database/scim-transfer-target.repository.js.map +1 -0
- package/dist/modules/scim/database/scim-user.repository.d.ts +2 -2
- package/dist/modules/scim/database/scim-user.repository.js +3 -3
- package/dist/modules/scim/database/scim-user.repository.js.map +1 -1
- package/dist/modules/scim/scim-deprovisioning.service.d.ts +27 -0
- package/dist/modules/scim/scim-deprovisioning.service.js +101 -0
- package/dist/modules/scim/scim-deprovisioning.service.js.map +1 -0
- package/dist/modules/scim/scim-opt-in.d.ts +3 -0
- package/dist/modules/scim/scim-opt-in.js +13 -0
- package/dist/modules/scim/scim-opt-in.js.map +1 -0
- package/dist/modules/scim/scim-route.js +2 -1
- package/dist/modules/scim/scim-route.js.map +1 -1
- package/dist/modules/scim/scim-settings.service.d.ts +4 -0
- package/dist/modules/scim/scim-settings.service.js +17 -1
- package/dist/modules/scim/scim-settings.service.js.map +1 -1
- package/dist/modules/scim/scim-token.controller.d.ts +8 -3
- package/dist/modules/scim/scim-token.controller.js +44 -3
- package/dist/modules/scim/scim-token.controller.js.map +1 -1
- package/dist/modules/scim/scim.errors.d.ts +1 -1
- package/dist/modules/scim/scim.errors.js +8 -8
- package/dist/modules/scim/scim.errors.js.map +1 -1
- package/dist/modules/scim/scim.module.d.ts +1 -0
- package/dist/modules/scim/scim.module.js +9 -1
- package/dist/modules/scim/scim.module.js.map +1 -1
- package/dist/modules/scim/scim.service.d.ts +6 -2
- package/dist/modules/scim/scim.service.js +91 -80
- package/dist/modules/scim/scim.service.js.map +1 -1
- package/dist/modules/skills/controllers/skill-source.controller.d.ts +21 -0
- package/dist/modules/skills/controllers/skill-source.controller.js +107 -0
- package/dist/modules/skills/controllers/skill-source.controller.js.map +1 -0
- package/dist/modules/skills/{skills.controller.d.ts → controllers/skills.controller.d.ts} +8 -6
- package/dist/modules/skills/{skills.controller.js → controllers/skills.controller.js} +44 -17
- package/dist/modules/skills/controllers/skills.controller.js.map +1 -0
- package/dist/modules/skills/database/entities/skill-file.entity.js.map +1 -0
- package/dist/modules/skills/database/entities/skill-source-connection.entity.d.ts +17 -0
- package/dist/modules/skills/database/entities/skill-source-connection.entity.js +66 -0
- package/dist/modules/skills/database/entities/skill-source-connection.entity.js.map +1 -0
- package/dist/modules/skills/database/entities/skill-source-link.entity.d.ts +16 -0
- package/dist/modules/skills/database/entities/skill-source-link.entity.js +70 -0
- package/dist/modules/skills/database/entities/skill-source-link.entity.js.map +1 -0
- package/dist/modules/skills/{skill-version.entity.d.ts → database/entities/skill-version.entity.d.ts} +1 -0
- package/dist/modules/skills/{skill-version.entity.js → database/entities/skill-version.entity.js} +4 -0
- package/dist/modules/skills/database/entities/skill-version.entity.js.map +1 -0
- package/dist/modules/skills/{skill.entity.d.ts → database/entities/skill.entity.d.ts} +0 -1
- package/dist/modules/skills/{skill.entity.js → database/entities/skill.entity.js} +0 -5
- package/dist/modules/skills/database/entities/skill.entity.js.map +1 -0
- package/dist/modules/skills/database/repositories/skill-source.repository.d.ts +63 -0
- package/dist/modules/skills/database/repositories/skill-source.repository.js +178 -0
- package/dist/modules/skills/database/repositories/skill-source.repository.js.map +1 -0
- package/dist/modules/skills/{skill.repository.d.ts → database/repositories/skill.repository.d.ts} +28 -33
- package/dist/modules/skills/{skill.repository.js → database/repositories/skill.repository.js} +102 -97
- package/dist/modules/skills/database/repositories/skill.repository.js.map +1 -0
- package/dist/modules/skills/errors/skill-name-taken.error.js.map +1 -0
- package/dist/modules/skills/errors/skill-parse.error.d.ts +3 -0
- package/dist/modules/skills/errors/skill-parse.error.js +8 -0
- package/dist/modules/skills/errors/skill-parse.error.js.map +1 -0
- package/dist/modules/skills/errors/skill-source-not-found.error.d.ts +7 -0
- package/dist/modules/skills/errors/skill-source-not-found.error.js +13 -0
- package/dist/modules/skills/errors/skill-source-not-found.error.js.map +1 -0
- package/dist/modules/skills/errors/skill-source-read.error.d.ts +9 -0
- package/dist/modules/skills/errors/skill-source-read.error.js +14 -0
- package/dist/modules/skills/errors/skill-source-read.error.js.map +1 -0
- package/dist/modules/skills/errors/skill-source-request.error.d.ts +13 -0
- package/dist/modules/skills/errors/skill-source-request.error.js +59 -0
- package/dist/modules/skills/errors/skill-source-request.error.js.map +1 -0
- package/dist/modules/skills/errors/skill-source-url.error.d.ts +3 -0
- package/dist/modules/skills/errors/skill-source-url.error.js +8 -0
- package/dist/modules/skills/errors/skill-source-url.error.js.map +1 -0
- package/dist/modules/skills/errors/skill-synced.error.d.ts +9 -0
- package/dist/modules/skills/errors/skill-synced.error.js +25 -0
- package/dist/modules/skills/errors/skill-synced.error.js.map +1 -0
- package/dist/modules/skills/errors/skill-tool-refusal.d.ts +14 -0
- package/dist/modules/skills/errors/skill-tool-refusal.js +24 -0
- package/dist/modules/skills/errors/skill-tool-refusal.js.map +1 -0
- package/dist/modules/skills/index.d.ts +15 -0
- package/dist/modules/skills/index.js +38 -0
- package/dist/modules/skills/index.js.map +1 -0
- package/dist/modules/skills/services/assistant-skills-flag-gate.d.ts +8 -0
- package/dist/modules/skills/{assistant-skills-rollout.js → services/assistant-skills-flag-gate.js} +12 -12
- package/dist/modules/skills/services/assistant-skills-flag-gate.js.map +1 -0
- package/dist/modules/skills/services/skill-access.service.d.ts +32 -0
- package/dist/modules/skills/services/skill-access.service.js +133 -0
- package/dist/modules/skills/services/skill-access.service.js.map +1 -0
- package/dist/modules/skills/services/skill-runtime.service.d.ts +47 -0
- package/dist/modules/skills/services/skill-runtime.service.js +155 -0
- package/dist/modules/skills/services/skill-runtime.service.js.map +1 -0
- package/dist/modules/skills/services/skill-security-scanner.service.d.ts +8 -0
- package/dist/modules/skills/services/skill-security-scanner.service.js +45 -0
- package/dist/modules/skills/services/skill-security-scanner.service.js.map +1 -0
- package/dist/modules/skills/services/skill-source-check.task.d.ts +12 -0
- package/dist/modules/skills/services/skill-source-check.task.js +36 -0
- package/dist/modules/skills/services/skill-source-check.task.js.map +1 -0
- package/dist/modules/skills/services/skill-source-credentials-proxy.service.d.ts +12 -0
- package/dist/modules/skills/services/skill-source-credentials-proxy.service.js +45 -0
- package/dist/modules/skills/services/skill-source-credentials-proxy.service.js.map +1 -0
- package/dist/modules/skills/services/skill-source-credentials.contracts.d.ts +17 -0
- package/dist/modules/skills/services/skill-source-credentials.contracts.js +7 -0
- package/dist/modules/skills/services/skill-source-credentials.contracts.js.map +1 -0
- package/dist/modules/skills/services/skill-source.policy.d.ts +4 -0
- package/dist/modules/skills/services/skill-source.policy.js +21 -0
- package/dist/modules/skills/services/skill-source.policy.js.map +1 -0
- package/dist/modules/skills/services/skill-source.service.d.ts +40 -0
- package/dist/modules/skills/services/skill-source.service.js +482 -0
- package/dist/modules/skills/services/skill-source.service.js.map +1 -0
- package/dist/modules/skills/services/skill-sync-flag-gate.d.ts +10 -0
- package/dist/modules/skills/services/skill-sync-flag-gate.js +39 -0
- package/dist/modules/skills/services/skill-sync-flag-gate.js.map +1 -0
- package/dist/modules/skills/services/skill-sync.service.d.ts +39 -0
- package/dist/modules/skills/services/skill-sync.service.js +345 -0
- package/dist/modules/skills/services/skill-sync.service.js.map +1 -0
- package/dist/modules/skills/services/skill-synced-from.service.d.ts +16 -0
- package/dist/modules/skills/services/skill-synced-from.service.js +58 -0
- package/dist/modules/skills/services/skill-synced-from.service.js.map +1 -0
- package/dist/modules/skills/services/skill-usage-proxy.service.d.ts +20 -0
- package/dist/modules/skills/services/skill-usage-proxy.service.js +71 -0
- package/dist/modules/skills/services/skill-usage-proxy.service.js.map +1 -0
- package/dist/modules/skills/services/skill-usage.contracts.d.ts +20 -0
- package/dist/modules/skills/services/skill-usage.contracts.js +7 -0
- package/dist/modules/skills/services/skill-usage.contracts.js.map +1 -0
- package/dist/modules/skills/services/skill.policy.d.ts +13 -0
- package/dist/modules/skills/services/skill.policy.js +67 -0
- package/dist/modules/skills/services/skill.policy.js.map +1 -0
- package/dist/modules/skills/services/skill.service.d.ts +81 -0
- package/dist/modules/skills/services/skill.service.js +550 -0
- package/dist/modules/skills/services/skill.service.js.map +1 -0
- package/dist/modules/skills/services/skills-gate.d.ts +6 -0
- package/dist/modules/{instance-ai/repositories/instance-ai-iteration-log.repository.js → skills/services/skills-gate.js} +13 -11
- package/dist/modules/skills/services/skills-gate.js.map +1 -0
- package/dist/modules/skills/services/skills-telemetry.service.d.ts +38 -0
- package/dist/modules/skills/{skills-telemetry.js → services/skills-telemetry.service.js} +57 -23
- package/dist/modules/skills/services/skills-telemetry.service.js.map +1 -0
- package/dist/modules/skills/skill-sync.config.d.ts +3 -0
- package/dist/modules/skills/skill-sync.config.js +28 -0
- package/dist/modules/skills/skill-sync.config.js.map +1 -0
- package/dist/modules/skills/skills.module.d.ts +2 -1
- package/dist/modules/skills/skills.module.js +15 -8
- package/dist/modules/skills/skills.module.js.map +1 -1
- package/dist/modules/skills/sources/github/git-refs.d.ts +7 -0
- package/dist/modules/skills/sources/github/git-refs.js +57 -0
- package/dist/modules/skills/sources/github/git-refs.js.map +1 -0
- package/dist/modules/skills/sources/github/github-archive.d.ts +20 -0
- package/dist/modules/skills/sources/github/github-archive.js +126 -0
- package/dist/modules/skills/sources/github/github-archive.js.map +1 -0
- package/dist/modules/skills/sources/github/github-link.d.ts +14 -0
- package/dist/modules/skills/sources/github/github-link.js +75 -0
- package/dist/modules/skills/sources/github/github-link.js.map +1 -0
- package/dist/modules/skills/sources/github/github-skill-source-client.d.ts +52 -0
- package/dist/modules/skills/sources/github/github-skill-source-client.js +411 -0
- package/dist/modules/skills/sources/github/github-skill-source-client.js.map +1 -0
- package/dist/modules/skills/sources/github/skill-discovery.d.ts +13 -0
- package/dist/modules/skills/sources/github/skill-discovery.js +85 -0
- package/dist/modules/skills/sources/github/skill-discovery.js.map +1 -0
- package/dist/modules/skills/sources/skill-source-client-registry.service.d.ts +7 -0
- package/dist/modules/skills/sources/skill-source-client-registry.service.js +33 -0
- package/dist/modules/skills/sources/skill-source-client-registry.service.js.map +1 -0
- package/dist/modules/skills/sources/skill-source-client.d.ts +75 -0
- package/dist/modules/skills/sources/skill-source-client.js +12 -0
- package/dist/modules/skills/sources/skill-source-client.js.map +1 -0
- package/dist/modules/skills/{skill-content-hash.d.ts → utils/skill-content-hash.d.ts} +1 -1
- package/dist/modules/skills/utils/skill-content-hash.js.map +1 -0
- package/dist/modules/skills/utils/skill-content.d.ts +156 -0
- package/dist/modules/skills/utils/skill-content.js +98 -0
- package/dist/modules/skills/utils/skill-content.js.map +1 -0
- package/dist/modules/skills/utils/skill-hash.js.map +1 -0
- package/dist/modules/skills/utils/skill-md.d.ts +11 -0
- package/dist/modules/skills/utils/skill-md.js +92 -0
- package/dist/modules/skills/utils/skill-md.js.map +1 -0
- package/dist/modules/skills/utils/skill-names.js.map +1 -0
- package/dist/modules/skills/utils/skill-security-rules.d.ts +16 -0
- package/dist/modules/skills/utils/skill-security-rules.js +306 -0
- package/dist/modules/skills/utils/skill-security-rules.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +13 -13
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +27 -27
- package/dist/modules/source-control.ee/source-control-git.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.js +2 -1
- package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +6 -6
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +32 -30
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-preferences.service.ee.js +14 -21
- package/dist/modules/source-control.ee/source-control-preferences.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-scoped.service.d.ts +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +1 -2
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js +5 -5
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/types/resource-owner.d.ts +1 -1
- package/dist/modules/source-control.ee/types/source-control-context.js +3 -1
- package/dist/modules/source-control.ee/types/source-control-context.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.d.ts +3 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js +13 -12
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.d.ts +1 -1
- package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.js +2 -2
- package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.js.map +1 -1
- package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.d.ts +1 -1
- package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.js +2 -2
- package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.js.map +1 -1
- package/dist/modules/sso-saml/saml-helpers.d.ts +2 -2
- package/dist/modules/sso-saml/saml-helpers.js +13 -16
- package/dist/modules/sso-saml/saml-helpers.js.map +1 -1
- package/dist/modules/sso-saml/saml.service.ee.d.ts +3 -3
- package/dist/modules/sso-saml/saml.service.ee.js +17 -17
- package/dist/modules/sso-saml/saml.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/database/repositories/trusted-key-source.repository.js +2 -1
- package/dist/modules/token-exchange/database/repositories/trusted-key-source.repository.js.map +1 -1
- package/dist/modules/token-exchange/services/identity-resolution.service.d.ts +3 -2
- package/dist/modules/token-exchange/services/identity-resolution.service.js +18 -19
- package/dist/modules/token-exchange/services/identity-resolution.service.js.map +1 -1
- package/dist/modules/token-exchange/services/jwks-resolver.js +6 -6
- package/dist/modules/token-exchange/services/jwks-resolver.js.map +1 -1
- package/dist/modules/token-exchange/services/trusted-key.service.js +12 -11
- package/dist/modules/token-exchange/services/trusted-key.service.js.map +1 -1
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-attachment.repository.js +4 -4
- 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.js +2 -2
- package/dist/modules/type-availability-policies/database/repositories/type-availability-policy-scope.repository.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy-snapshot.d.ts +1 -3
- package/dist/modules/type-availability-policies/type-availability-policy-snapshot.js +2 -11
- package/dist/modules/type-availability-policies/type-availability-policy-snapshot.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy.service.js +9 -9
- 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 +1 -1
- package/dist/modules/workflow-index/workflow-dependency-query.service.js +15 -18
- package/dist/modules/workflow-index/workflow-dependency-query.service.js.map +1 -1
- package/dist/modules/workflow-index/workflow-index.service.d.ts +1 -0
- package/dist/modules/workflow-index/workflow-index.service.js +20 -1
- package/dist/modules/workflow-index/workflow-index.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +2 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-request-submission.service.d.ts +3 -3
- package/dist/modules/workflow-reviews.ee/workflow-review-request-submission.service.js +6 -6
- package/dist/modules/workflow-reviews.ee/workflow-review-request-submission.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js +4 -0
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.js +14 -14
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/node-types.js +3 -2
- package/dist/node-types.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +12 -1
- package/dist/oauth/oauth.service.js +71 -13
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/observability/agent-365-provider.d.ts +3 -0
- package/dist/observability/agent-365-provider.js +55 -0
- package/dist/observability/agent-365-provider.js.map +1 -0
- package/dist/observability/customer-sampling.d.ts +22 -0
- package/dist/observability/customer-sampling.js +53 -0
- package/dist/observability/customer-sampling.js.map +1 -0
- package/dist/observability/observability-boot.d.ts +1 -0
- package/dist/observability/observability-boot.js +18 -0
- package/dist/observability/observability-boot.js.map +1 -0
- package/dist/observability/otel-sdk.d.ts +24 -0
- package/dist/observability/otel-sdk.js +162 -0
- package/dist/observability/otel-sdk.js.map +1 -0
- package/dist/observability/outbound-propagator.d.ts +7 -0
- package/dist/observability/outbound-propagator.js +33 -0
- package/dist/observability/outbound-propagator.js.map +1 -0
- package/dist/observability/span-resource.d.ts +3 -0
- package/dist/observability/span-resource.js +9 -0
- package/dist/observability/span-resource.js.map +1 -0
- package/dist/observability/swappable-pipeline.d.ts +31 -0
- package/dist/observability/swappable-pipeline.js +84 -0
- package/dist/observability/swappable-pipeline.js.map +1 -0
- package/dist/observability/tracer-gate.d.ts +10 -0
- package/dist/observability/tracer-gate.js +39 -0
- package/dist/observability/tracer-gate.js.map +1 -0
- package/dist/observability/tracer-names.d.ts +6 -0
- package/dist/observability/tracer-names.js +10 -0
- package/dist/observability/tracer-names.js.map +1 -0
- package/dist/permissions.ee/check-access.js +2 -3
- package/dist/permissions.ee/check-access.js.map +1 -1
- package/dist/policy/policy-enforcement-backend.d.ts +1 -1
- package/dist/policy/policy-enforcement.service.js +2 -2
- package/dist/policy/policy-enforcement.service.js.map +1 -1
- package/dist/policy/policy-violation.error.d.ts +1 -1
- package/dist/policy/policy-violation.error.js +2 -1
- package/dist/policy/policy-violation.error.js.map +1 -1
- package/dist/public-api/idempotency-key.service.js +3 -3
- package/dist/public-api/idempotency-key.service.js.map +1 -1
- package/dist/public-api/index.js +3 -1
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/public-api-client.d.ts +2 -0
- package/dist/public-api/public-api-client.js +9 -0
- package/dist/public-api/public-api-client.js.map +1 -0
- package/dist/public-api/public-api-controller.registry.js +3 -0
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-rate-limit-settings.service.d.ts +7 -1
- package/dist/public-api/public-api-rate-limit-settings.service.js +29 -2
- package/dist/public-api/public-api-rate-limit-settings.service.js.map +1 -1
- package/dist/public-api/public-api-rate-limit-store.factory.d.ts +1 -0
- package/dist/public-api/public-api-rate-limit-store.factory.js +4 -0
- package/dist/public-api/public-api-rate-limit-store.factory.js.map +1 -1
- package/dist/public-api/public-api-rate-limit.service.d.ts +8 -6
- package/dist/public-api/public-api-rate-limit.service.js +56 -32
- package/dist/public-api/public-api-rate-limit.service.js.map +1 -1
- package/dist/public-api/public-api-route-resolver.js +4 -4
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/swagger-spec.d.ts +4 -0
- package/dist/public-api/swagger-spec.js +25 -0
- package/dist/public-api/swagger-spec.js.map +1 -0
- package/dist/public-api/v1/controllers/credentials.public.controller.js +2 -0
- package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/data-tables.public.controller.d.ts +1 -2
- package/dist/public-api/v1/controllers/data-tables.public.controller.js +20 -19
- package/dist/public-api/v1/controllers/data-tables.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/folders.public.controller.js +1 -2
- package/dist/public-api/v1/controllers/folders.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.js +1 -2
- package/dist/public-api/v1/controllers/insights.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +2 -3
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +1 -2
- 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.js +53 -16
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -1
- package/dist/public-api/v1/controllers/otel.public.controller.d.ts +1 -5
- package/dist/public-api/v1/controllers/otel.public.controller.js +3 -9
- package/dist/public-api/v1/controllers/otel.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +9 -8
- package/dist/public-api/v1/controllers/promotions.public.controller.js +113 -93
- package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/rate-limits.public.controller.d.ts +10 -0
- package/dist/public-api/v1/controllers/rate-limits.public.controller.js +84 -0
- package/dist/public-api/v1/controllers/rate-limits.public.controller.js.map +1 -0
- package/dist/public-api/v1/handlers/discover/discover.service.d.ts +0 -1
- package/dist/public-api/v1/handlers/discover/discover.service.js +2 -3
- package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +3 -2
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +6 -18
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/generate.js +7 -7
- package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/request-body-json-schema.d.ts +3 -0
- package/dist/public-api/v1/openapi-gen/request-body-json-schema.js +19 -0
- package/dist/public-api/v1/openapi-gen/request-body-json-schema.js.map +1 -0
- package/dist/public-api/v1/openapi.yml +1282 -119
- package/dist/push/websocket.push.js +2 -2
- package/dist/push/websocket.push.js.map +1 -1
- package/dist/requests.d.ts +1 -0
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/constants.js +2 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/execution-stop.service.d.ts +3 -1
- package/dist/scaling/execution-stop.service.js +6 -2
- package/dist/scaling/execution-stop.service.js.map +1 -1
- package/dist/scaling/job-processor.d.ts +1 -0
- package/dist/scaling/job-processor.js +20 -7
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +7 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scaling/scaling.service.js +9 -7
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scaling/scaling.types.d.ts +1 -0
- package/dist/scaling/webhook-response-relay.js +3 -2
- package/dist/scaling/webhook-response-relay.js.map +1 -1
- package/dist/scheduling/agent-scheduled-job-owner.js +2 -2
- package/dist/scheduling/agent-scheduled-job-owner.js.map +1 -1
- package/dist/scheduling/durable-job-provisioner.js +2 -2
- package/dist/scheduling/durable-job-provisioner.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +3 -3
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -1
- package/dist/scheduling/resolve-task-trigger-node.js +2 -2
- package/dist/scheduling/resolve-task-trigger-node.js.map +1 -1
- package/dist/scheduling/schedule-columns.js +2 -2
- package/dist/scheduling/schedule-columns.js.map +1 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task-handler.js +2 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-task-handler.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-job-registrar.js +2 -2
- package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-runner.js +2 -2
- package/dist/scheduling/system-tasks/system-task-runner.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-timer.js +4 -4
- package/dist/scheduling/system-tasks/system-task-timer.js.map +1 -1
- package/dist/services/ai-gateway-browser-use.service.d.ts +30 -0
- package/dist/services/ai-gateway-browser-use.service.js +85 -0
- package/dist/services/ai-gateway-browser-use.service.js.map +1 -0
- package/dist/services/ai-gateway.service.d.ts +25 -4
- package/dist/services/ai-gateway.service.js +82 -39
- package/dist/services/ai-gateway.service.js.map +1 -1
- package/dist/services/dynamic-node-parameters.service.js +10 -5
- package/dist/services/dynamic-node-parameters.service.js.map +1 -1
- package/dist/services/engine-data-plane-proxy.service.d.ts +14 -2
- package/dist/services/engine-data-plane-proxy.service.js +14 -4
- package/dist/services/engine-data-plane-proxy.service.js.map +1 -1
- package/dist/services/engine-v2-dispatcher.service.d.ts +2 -1
- package/dist/services/engine-v2-dispatcher.service.js +47 -13
- package/dist/services/engine-v2-dispatcher.service.js.map +1 -1
- package/dist/services/engine-v2-manual-run-planner.js +7 -7
- package/dist/services/engine-v2-manual-run-planner.js.map +1 -1
- package/dist/services/engine-v2-workflow-payload.d.ts +14 -0
- package/dist/services/engine-v2-workflow-payload.js +14 -0
- package/dist/services/engine-v2-workflow-payload.js.map +1 -0
- package/dist/services/export.service.js +4 -4
- package/dist/services/export.service.js.map +1 -1
- package/dist/services/folder.service.js +4 -3
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/hooks.service.d.ts +7 -7
- package/dist/services/hooks.service.js +6 -6
- package/dist/services/hooks.service.js.map +1 -1
- package/dist/services/import.service.d.ts +1 -1
- package/dist/services/import.service.js +6 -7
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/node-resource-explorer.service.js +1 -1
- package/dist/services/node-resource-explorer.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +7 -2
- package/dist/services/ownership-transfer/ownership-transfer.service.d.ts +2 -0
- package/dist/services/ownership-transfer/ownership-transfer.service.js +5 -0
- package/dist/services/ownership-transfer/ownership-transfer.service.js.map +1 -1
- package/dist/services/ownership.service.d.ts +1 -0
- package/dist/services/ownership.service.js +10 -1
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/process-internals.service.js +1 -1
- package/dist/services/process-internals.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +7 -13
- package/dist/services/project.service.ee.js +37 -68
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/proxy-token-manager.js +2 -2
- package/dist/services/proxy-token-manager.js.map +1 -1
- package/dist/services/rate-limit.service.d.ts +4 -1
- package/dist/services/rate-limit.service.js +1 -0
- package/dist/services/rate-limit.service.js.map +1 -1
- package/dist/services/sandbox-settings.service.js +1 -2
- package/dist/services/sandbox-settings.service.js.map +1 -1
- package/dist/services/user.service.d.ts +19 -6
- package/dist/services/user.service.js +51 -36
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/workflow-loader.service.d.ts +1 -1
- package/dist/services/workflow-loader.service.js +2 -2
- package/dist/services/workflow-loader.service.js.map +1 -1
- package/dist/services/workflow-review-policy.service.js +2 -1
- package/dist/services/workflow-review-policy.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.service.js +2 -2
- package/dist/services/workflow-statistics-rollup.service.js.map +1 -1
- package/dist/services/workflow-statistics.service.js +10 -4
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/shutdown/shutdown.service.d.ts +1 -1
- package/dist/shutdown/shutdown.service.js +6 -5
- package/dist/shutdown/shutdown.service.js.map +1 -1
- package/dist/sso.ee/scim-switch-reader.js.map +1 -1
- package/dist/task-runners/errors/missing-requirements.error.d.ts +1 -1
- package/dist/task-runners/errors/missing-requirements.error.js +2 -2
- package/dist/task-runners/errors/missing-requirements.error.js.map +1 -1
- package/dist/task-runners/errors/task-cancelled.error.d.ts +1 -1
- package/dist/task-runners/errors/task-cancelled.error.js +2 -2
- package/dist/task-runners/errors/task-cancelled.error.js.map +1 -1
- package/dist/task-runners/errors/task-request-timeout.error.d.ts +1 -1
- package/dist/task-runners/errors/task-request-timeout.error.js +2 -2
- package/dist/task-runners/errors/task-request-timeout.error.js.map +1 -1
- package/dist/task-runners/errors/task-runner-disconnected-error.d.ts +1 -1
- package/dist/task-runners/errors/task-runner-disconnected-error.js +2 -2
- package/dist/task-runners/errors/task-runner-disconnected-error.js.map +1 -1
- package/dist/task-runners/errors/task-runner-failed-heartbeat.error.d.ts +1 -1
- package/dist/task-runners/errors/task-runner-failed-heartbeat.error.js +2 -2
- package/dist/task-runners/errors/task-runner-failed-heartbeat.error.js.map +1 -1
- package/dist/task-runners/errors/task-runner-oom-error.d.ts +1 -1
- package/dist/task-runners/errors/task-runner-oom-error.js +2 -2
- package/dist/task-runners/errors/task-runner-oom-error.js.map +1 -1
- package/dist/task-runners/errors/task-runner-restart-loop-error.d.ts +1 -1
- package/dist/task-runners/errors/task-runner-restart-loop-error.js +2 -2
- package/dist/task-runners/errors/task-runner-restart-loop-error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-deferred.error.d.ts +1 -1
- package/dist/task-runners/task-broker/errors/task-deferred.error.js +2 -2
- package/dist/task-runners/task-broker/errors/task-deferred.error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-reject.error.d.ts +1 -1
- package/dist/task-runners/task-broker/errors/task-reject.error.js +2 -2
- package/dist/task-runners/task-broker/errors/task-reject.error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.d.ts +1 -1
- package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.js +2 -2
- package/dist/task-runners/task-broker/errors/task-requester-accept-timeout.error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-accept-timeout.error.d.ts +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-accept-timeout.error.js +2 -2
- package/dist/task-runners/task-broker/errors/task-runner-accept-timeout.error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-execution-timeout.error.d.ts +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-execution-timeout.error.js +2 -2
- package/dist/task-runners/task-broker/errors/task-runner-execution-timeout.error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-shutdown-timeout.error.d.ts +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-shutdown-timeout.error.js +2 -2
- package/dist/task-runners/task-broker/errors/task-runner-shutdown-timeout.error.js.map +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.d.ts +1 -1
- package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.js +2 -2
- package/dist/task-runners/task-broker/errors/task-runner-unreachable.error.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker-server.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker-ws-server.js +2 -1
- package/dist/task-runners/task-broker/task-broker-ws-server.js.map +1 -1
- package/dist/task-runners/task-broker/task-broker.service.js +7 -7
- package/dist/task-runners/task-broker/task-broker.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +6 -0
- package/dist/telemetry/index.js +12 -4
- package/dist/telemetry/index.js.map +1 -1
- package/dist/user-management/email/user-management-mailer.d.ts +3 -3
- package/dist/user-management/email/user-management-mailer.js +10 -10
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/utils/ai-service-retry.js +3 -3
- package/dist/utils/ai-service-retry.js.map +1 -1
- package/dist/utils/auth-fetch.js +3 -2
- package/dist/utils/auth-fetch.js.map +1 -1
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +0 -10
- package/dist/utils.js.map +1 -1
- package/dist/wait-tracker.d.ts +7 -1
- package/dist/wait-tracker.js +56 -7
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/engine-v2-webhooks.d.ts +1 -0
- package/dist/webhooks/engine-v2-webhooks.js +19 -7
- package/dist/webhooks/engine-v2-webhooks.js.map +1 -1
- package/dist/webhooks/test-webhook-registrations.service.d.ts +1 -1
- package/dist/webhooks/test-webhook-registrations.service.js +2 -2
- package/dist/webhooks/test-webhook-registrations.service.js.map +1 -1
- package/dist/webhooks/test-webhooks.d.ts +4 -3
- package/dist/webhooks/test-webhooks.js +18 -5
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-forms.d.ts +13 -1
- package/dist/webhooks/waiting-forms.js +43 -0
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.d.ts +21 -2
- package/dist/webhooks/waiting-webhooks.js +97 -4
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +5 -1
- package/dist/webhooks/webhook-helpers.js +37 -18
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-last-node-response-extractor.d.ts +1 -1
- package/dist/webhooks/webhook-last-node-response-extractor.js +7 -6
- package/dist/webhooks/webhook-last-node-response-extractor.js.map +1 -1
- package/dist/webhooks/webhook.service.js +10 -2
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/webhooks/webhook.types.d.ts +4 -0
- package/dist/workflow-execute-additional-data.js +8 -7
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.js +1 -1
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +1 -1
- package/dist/workflow-runner.js +16 -5
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/callable/callable-workflow-input.d.ts +16 -0
- package/dist/workflows/callable/callable-workflow-input.js +118 -0
- package/dist/workflows/callable/callable-workflow-input.js.map +1 -0
- package/dist/{modules/agents/tools/workflow-tool-workflow-loader.service.d.ts → workflows/callable/callable-workflow-loader.service.d.ts} +4 -4
- package/dist/{modules/agents/tools/workflow-tool-workflow-loader.service.js → workflows/callable/callable-workflow-loader.service.js} +8 -8
- package/dist/workflows/callable/callable-workflow-loader.service.js.map +1 -0
- package/dist/workflows/callable/callable-workflow-result.d.ts +5 -0
- package/dist/workflows/callable/callable-workflow-result.js +45 -0
- package/dist/workflows/callable/callable-workflow-result.js.map +1 -0
- package/dist/{modules/agents/tools/workflow-tool-unavailable-error.d.ts → workflows/callable/callable-workflow-unavailable.error.d.ts} +2 -2
- package/dist/workflows/callable/callable-workflow-unavailable.error.js +12 -0
- package/dist/workflows/callable/callable-workflow-unavailable.error.js.map +1 -0
- package/dist/workflows/execution-timeout-validation.js +2 -2
- package/dist/workflows/execution-timeout-validation.js.map +1 -1
- package/dist/workflows/publication/publication-status-reporter.js +2 -2
- package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
- package/dist/workflows/publication/trigger-node-id-too-long.error.d.ts +2 -1
- package/dist/workflows/publication/trigger-node-id-too-long.error.js +2 -2
- package/dist/workflows/publication/trigger-node-id-too-long.error.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.js +2 -2
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js +8 -8
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
- package/dist/workflows/triggers/engine-v2-active-triggers.js +2 -2
- package/dist/workflows/triggers/engine-v2-active-triggers.js.map +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.js +3 -2
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/triggers/workflow-trigger-activator.js +3 -2
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +3 -1
- package/dist/workflows/workflow-creation.service.js +5 -2
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-engine-defaults.d.ts +11 -0
- package/dist/workflows/workflow-engine-defaults.js +35 -0
- package/dist/workflows/workflow-engine-defaults.js.map +1 -0
- package/dist/workflows/workflow-execution.service.d.ts +2 -5
- package/dist/workflows/workflow-execution.service.js +25 -17
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.js +5 -5
- package/dist/workflows/workflow-history/workflow-history.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +5 -2
- package/dist/workflows/workflow.service.ee.js +1 -1
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +10 -17
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +1 -5
- package/package.json +57 -53
- package/dist/modules/agents/agent-queued-preview-stream.service.js.map +0 -1
- package/dist/modules/agents/agent-skill-usage.service.d.ts +0 -40
- package/dist/modules/agents/agent-skill-usage.service.js +0 -137
- package/dist/modules/agents/agent-skill-usage.service.js.map +0 -1
- package/dist/modules/agents/builder/agent-builder-preview-path.d.ts +0 -1
- package/dist/modules/agents/builder/agent-builder-preview-path.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder-model-recommendations.d.ts +0 -4
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js +0 -123
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js.map +0 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.d.ts +0 -5
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js +0 -104
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js.map +0 -1
- package/dist/modules/agents/builder/skills/research.skill.d.ts +0 -2
- package/dist/modules/agents/builder/skills/research.skill.js +0 -45
- package/dist/modules/agents/builder/skills/research.skill.js.map +0 -1
- package/dist/modules/agents/episodic-memory.d.ts +0 -2
- package/dist/modules/agents/episodic-memory.js +0 -9
- package/dist/modules/agents/episodic-memory.js.map +0 -1
- package/dist/modules/agents/observation-log-observer.d.ts +0 -2
- package/dist/modules/agents/observation-log-observer.js +0 -10
- package/dist/modules/agents/observation-log-observer.js.map +0 -1
- package/dist/modules/agents/observation-log-reflector.d.ts +0 -2
- package/dist/modules/agents/observation-log-reflector.js +0 -9
- package/dist/modules/agents/observation-log-reflector.js.map +0 -1
- package/dist/modules/agents/plans/agent-plan-work-state.js +0 -13
- package/dist/modules/agents/plans/agent-plan-work-state.js.map +0 -1
- package/dist/modules/agents/register-skill-agents-provider.d.ts +0 -1
- package/dist/modules/agents/register-skill-agents-provider.js +0 -10
- package/dist/modules/agents/register-skill-agents-provider.js.map +0 -1
- package/dist/modules/agents/tools/workflow-tool-unavailable-error.js +0 -12
- package/dist/modules/agents/tools/workflow-tool-unavailable-error.js.map +0 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +0 -1
- package/dist/modules/data-table/csv-parser.service.d.ts +0 -34
- package/dist/modules/data-table/csv-parser.service.js +0 -179
- package/dist/modules/data-table/csv-parser.service.js.map +0 -1
- package/dist/modules/data-table/data-table-aggregate.controller.d.ts +0 -14
- package/dist/modules/data-table/data-table-aggregate.controller.js +0 -50
- package/dist/modules/data-table/data-table-aggregate.controller.js.map +0 -1
- package/dist/modules/data-table/data-table-aggregate.service.d.ts +0 -18
- package/dist/modules/data-table/data-table-aggregate.service.js +0 -56
- package/dist/modules/data-table/data-table-aggregate.service.js.map +0 -1
- package/dist/modules/data-table/data-table-column.entity.d.ts +0 -9
- package/dist/modules/data-table/data-table-column.entity.js.map +0 -1
- package/dist/modules/data-table/data-table-column.repository.d.ts +0 -38
- package/dist/modules/data-table/data-table-column.repository.js +0 -192
- package/dist/modules/data-table/data-table-column.repository.js.map +0 -1
- package/dist/modules/data-table/data-table-csv-import.service.d.ts +0 -21
- package/dist/modules/data-table/data-table-csv-import.service.js +0 -121
- package/dist/modules/data-table/data-table-csv-import.service.js.map +0 -1
- package/dist/modules/data-table/data-table-ddl.service.d.ts +0 -13
- package/dist/modules/data-table/data-table-ddl.service.js +0 -77
- package/dist/modules/data-table/data-table-ddl.service.js.map +0 -1
- package/dist/modules/data-table/data-table-file-cleanup.service.d.ts +0 -12
- package/dist/modules/data-table/data-table-file-cleanup.service.js +0 -83
- package/dist/modules/data-table/data-table-file-cleanup.service.js.map +0 -1
- package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +0 -13
- package/dist/modules/data-table/data-table-file-cleanup.task.js +0 -33
- package/dist/modules/data-table/data-table-file-cleanup.task.js.map +0 -1
- package/dist/modules/data-table/data-table-permissions.d.ts +0 -7
- package/dist/modules/data-table/data-table-permissions.js +0 -20
- package/dist/modules/data-table/data-table-permissions.js.map +0 -1
- package/dist/modules/data-table/data-table-proxy.service.d.ts +0 -64
- package/dist/modules/data-table/data-table-proxy.service.js +0 -213
- package/dist/modules/data-table/data-table-proxy.service.js.map +0 -1
- package/dist/modules/data-table/data-table-rows.repository.d.ts +0 -35
- package/dist/modules/data-table/data-table-rows.repository.js +0 -438
- package/dist/modules/data-table/data-table-rows.repository.js.map +0 -1
- package/dist/modules/data-table/data-table-size-validator.service.d.ts +0 -17
- package/dist/modules/data-table/data-table-size-validator.service.js +0 -86
- package/dist/modules/data-table/data-table-size-validator.service.js.map +0 -1
- package/dist/modules/data-table/data-table-uploads.controller.d.ts +0 -13
- package/dist/modules/data-table/data-table-uploads.controller.js +0 -68
- package/dist/modules/data-table/data-table-uploads.controller.js.map +0 -1
- package/dist/modules/data-table/data-table.controller.d.ts +0 -91
- package/dist/modules/data-table/data-table.controller.js +0 -474
- package/dist/modules/data-table/data-table.controller.js.map +0 -1
- package/dist/modules/data-table/data-table.entity.d.ts +0 -9
- package/dist/modules/data-table/data-table.entity.js +0 -46
- package/dist/modules/data-table/data-table.entity.js.map +0 -1
- package/dist/modules/data-table/data-table.module.d.ts +0 -10
- package/dist/modules/data-table/data-table.module.js +0 -67
- package/dist/modules/data-table/data-table.module.js.map +0 -1
- package/dist/modules/data-table/data-table.repository.d.ts +0 -38
- package/dist/modules/data-table/data-table.repository.js +0 -317
- package/dist/modules/data-table/data-table.repository.js.map +0 -1
- package/dist/modules/data-table/data-table.service.d.ts +0 -120
- package/dist/modules/data-table/data-table.service.js +0 -590
- package/dist/modules/data-table/data-table.service.js.map +0 -1
- package/dist/modules/data-table/data-table.types.d.ts +0 -3
- package/dist/modules/data-table/data-table.types.js +0 -10
- package/dist/modules/data-table/data-table.types.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-access-denied.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-access-denied.error.js +0 -13
- package/dist/modules/data-table/errors/data-table-access-denied.error.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-column-name-conflict.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-column-name-conflict.error.js +0 -13
- package/dist/modules/data-table/errors/data-table-column-name-conflict.error.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-column-not-found.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-column-not-found.error.js +0 -11
- package/dist/modules/data-table/errors/data-table-column-not-found.error.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-file-upload.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-file-upload.error.js +0 -13
- package/dist/modules/data-table/errors/data-table-file-upload.error.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-name-conflict.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-name-conflict.error.js +0 -13
- package/dist/modules/data-table/errors/data-table-name-conflict.error.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-not-found.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-not-found.error.js +0 -11
- package/dist/modules/data-table/errors/data-table-not-found.error.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-system-column-name-conflict.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-system-column-name-conflict.error.js +0 -13
- package/dist/modules/data-table/errors/data-table-system-column-name-conflict.error.js.map +0 -1
- package/dist/modules/data-table/errors/data-table-validation.error.d.ts +0 -4
- package/dist/modules/data-table/errors/data-table-validation.error.js +0 -13
- package/dist/modules/data-table/errors/data-table-validation.error.js.map +0 -1
- package/dist/modules/data-table/multer-upload-middleware.d.ts +0 -22
- package/dist/modules/data-table/multer-upload-middleware.js +0 -145
- package/dist/modules/data-table/multer-upload-middleware.js.map +0 -1
- package/dist/modules/data-table/register-favorite-resolver.d.ts +0 -1
- package/dist/modules/data-table/register-favorite-resolver.js +0 -18
- package/dist/modules/data-table/register-favorite-resolver.js.map +0 -1
- package/dist/modules/data-table/types.d.ts +0 -12
- package/dist/modules/data-table/types.js +0 -7
- package/dist/modules/data-table/types.js.map +0 -1
- package/dist/modules/data-table/utils/pair-columns.d.ts +0 -27
- package/dist/modules/data-table/utils/pair-columns.js +0 -48
- package/dist/modules/data-table/utils/pair-columns.js.map +0 -1
- package/dist/modules/data-table/utils/sql-utils.d.ts +0 -24
- package/dist/modules/data-table/utils/sql-utils.js +0 -284
- package/dist/modules/data-table/utils/sql-utils.js.map +0 -1
- package/dist/modules/instance-ai/agent-preview-handoff.js.map +0 -1
- package/dist/modules/instance-ai/entities/instance-ai-iteration-log.entity.d.ts +0 -7
- package/dist/modules/instance-ai/entities/instance-ai-iteration-log.entity.js +0 -38
- package/dist/modules/instance-ai/entities/instance-ai-iteration-log.entity.js.map +0 -1
- package/dist/modules/instance-ai/format-agent-session-context.js.map +0 -1
- package/dist/modules/instance-ai/repositories/instance-ai-iteration-log.repository.d.ts +0 -5
- package/dist/modules/instance-ai/repositories/instance-ai-iteration-log.repository.js.map +0 -1
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.d.ts +0 -9
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.js +0 -45
- package/dist/modules/instance-ai/storage/db-iteration-log-storage.js.map +0 -1
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +0 -39
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +0 -330
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +0 -1
- package/dist/modules/skills/assistant-skills-rollout.d.ts +0 -8
- package/dist/modules/skills/assistant-skills-rollout.js.map +0 -1
- package/dist/modules/skills/hub-assistant-skill-provider.service.d.ts +0 -12
- package/dist/modules/skills/hub-assistant-skill-provider.service.js +0 -45
- package/dist/modules/skills/hub-assistant-skill-provider.service.js.map +0 -1
- package/dist/modules/skills/skill-agents-proxy.service.d.ts +0 -39
- package/dist/modules/skills/skill-agents-proxy.service.js +0 -74
- package/dist/modules/skills/skill-agents-proxy.service.js.map +0 -1
- package/dist/modules/skills/skill-content-hash.js.map +0 -1
- package/dist/modules/skills/skill-file.entity.js.map +0 -1
- package/dist/modules/skills/skill-hash.js.map +0 -1
- package/dist/modules/skills/skill-name-taken.error.js.map +0 -1
- package/dist/modules/skills/skill-names.js.map +0 -1
- package/dist/modules/skills/skill-version.entity.js.map +0 -1
- package/dist/modules/skills/skill.entity.js.map +0 -1
- package/dist/modules/skills/skill.repository.js.map +0 -1
- package/dist/modules/skills/skill.service.d.ts +0 -90
- package/dist/modules/skills/skill.service.js +0 -404
- package/dist/modules/skills/skill.service.js.map +0 -1
- package/dist/modules/skills/skills-api.service.d.ts +0 -36
- package/dist/modules/skills/skills-api.service.js +0 -329
- package/dist/modules/skills/skills-api.service.js.map +0 -1
- package/dist/modules/skills/skills-telemetry.d.ts +0 -23
- package/dist/modules/skills/skills-telemetry.js.map +0 -1
- package/dist/modules/skills/skills.controller.js.map +0 -1
- /package/dist/modules/{instance-ai → agents}/format-agent-session-context.js +0 -0
- /package/dist/modules/skills/{skill-file.entity.d.ts → database/entities/skill-file.entity.d.ts} +0 -0
- /package/dist/modules/skills/{skill-file.entity.js → database/entities/skill-file.entity.js} +0 -0
- /package/dist/modules/skills/{skill-name-taken.error.d.ts → errors/skill-name-taken.error.d.ts} +0 -0
- /package/dist/modules/skills/{skill-name-taken.error.js → errors/skill-name-taken.error.js} +0 -0
- /package/dist/modules/skills/{skill-content-hash.js → utils/skill-content-hash.js} +0 -0
- /package/dist/modules/skills/{skill-hash.d.ts → utils/skill-hash.d.ts} +0 -0
- /package/dist/modules/skills/{skill-hash.js → utils/skill-hash.js} +0 -0
- /package/dist/modules/skills/{skill-names.d.ts → utils/skill-names.d.ts} +0 -0
- /package/dist/modules/skills/{skill-names.js → utils/skill-names.js} +0 -0
|
@@ -12,11 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.WhatsAppIntegration = void 0;
|
|
13
13
|
const api_types_1 = require("@n8n/api-types");
|
|
14
14
|
const backend_common_1 = require("@n8n/backend-common");
|
|
15
|
+
const backend_network_1 = require("@n8n/backend-network");
|
|
15
16
|
const di_1 = require("@n8n/di");
|
|
16
17
|
const is_record_1 = require("@n8n/utils/is-record");
|
|
17
18
|
const sleep_1 = require("@n8n/utils/sleep");
|
|
18
19
|
const n8n_core_1 = require("n8n-core");
|
|
19
|
-
const
|
|
20
|
+
const errors_1 = require("@n8n/errors");
|
|
21
|
+
const node_crypto_1 = require("node:crypto");
|
|
20
22
|
const agent_repository_1 = require("../../../repositories/agent.repository");
|
|
21
23
|
const agent_chat_integration_1 = require("../../agent-chat-integration");
|
|
22
24
|
const channel_rate_limit_1 = require("../../channel-rate-limit");
|
|
@@ -28,26 +30,45 @@ const integration_helpers_1 = require("../../integration-helpers");
|
|
|
28
30
|
const integration_tool_definitions_1 = require("../../integration-tool-definitions");
|
|
29
31
|
const integration_tool_factory_1 = require("../../integration-tool-factory");
|
|
30
32
|
const typing_indicator_1 = require("../typing-indicator");
|
|
33
|
+
const whatsapp_credential_check_service_1 = require("./whatsapp-credential-check.service");
|
|
34
|
+
const whatsapp_templates_1 = require("./whatsapp-templates");
|
|
35
|
+
const whatsapp_tool_definitions_1 = require("./whatsapp-tool-definitions");
|
|
36
|
+
const whatsapp_delivery_failures_1 = require("./whatsapp-delivery-failures");
|
|
37
|
+
const whatsapp_option_pages_store_1 = require("./whatsapp-option-pages.store");
|
|
38
|
+
const whatsapp_setup_telemetry_service_1 = require("./whatsapp-setup-telemetry.service");
|
|
31
39
|
const whatsapp_webhook_verification_store_1 = require("./whatsapp-webhook-verification.store");
|
|
32
40
|
const whatsapp_origin_1 = require("./whatsapp-origin");
|
|
33
41
|
const WHATSAPP_CUSTOMER_SERVICE_WINDOW_MS = 24 * 60 * 60 * 1000;
|
|
42
|
+
const WINDOW_CLOSED_MESSAGE = "WhatsApp only allows free-form messages within 24 hours of the customer's last message. " +
|
|
43
|
+
'That window has closed for this conversation, so this message cannot be sent. ' +
|
|
44
|
+
'To reach the customer, call list_templates, choose a template that fits, and send it with send_template. ' +
|
|
45
|
+
'If no template fits, tell the user that the customer cannot be reached until they message again.';
|
|
46
|
+
const DELIVERY_FAILURE_RECOVERY_WINDOW_MS = 60 * 60 * 1000;
|
|
47
|
+
const DELIVERY_FAILURE_MAX_RECOVERIES = 3;
|
|
48
|
+
const WHATSAPP_TEMPLATE_REQUEST_TIMEOUT_MS = 30_000;
|
|
34
49
|
const WHATSAPP_DEFAULT_SESSION_IDLE_TIMEOUT_MINUTES = 30;
|
|
50
|
+
const OPTIONS_EXPIRED_NOTICE = 'These options are no longer available. Ask again to see the list.';
|
|
35
51
|
const WHATSAPP_MAX_REPLY_BUTTONS = 3;
|
|
36
52
|
const WHATSAPP_TYPING_REFRESH_MS = 20 * 1000;
|
|
37
53
|
const WHATSAPP_BOT_USER_NAME = 'n8n-agent';
|
|
54
|
+
const META_APP_DASHBOARD_URL = 'https://developers.facebook.com/apps';
|
|
55
|
+
const REMOVAL_NUMBER_LOOKUP_TIMEOUT_MS = 3_000;
|
|
38
56
|
const WHATSAPP_RATE_LIMIT_ERROR_CODES = new Set([130429, 131048, 131056, 80007]);
|
|
39
57
|
const WHATSAPP_PAIR_RATE_LIMIT_CODE = 131056;
|
|
40
58
|
const WHATSAPP_RATE_LIMIT_MAX_ATTEMPTS = 4;
|
|
41
59
|
const WHATSAPP_RATE_LIMIT_BACKOFF_BASE_MS = 1_000;
|
|
42
60
|
const WHATSAPP_RATE_LIMIT_BACKOFF_CAP_MS = 8_000;
|
|
43
61
|
let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integration_1.AgentChatIntegration {
|
|
44
|
-
constructor(logger, agentRepository, instanceSettings, channelRateLimitGuard, webhookVerification) {
|
|
62
|
+
constructor(logger, agentRepository, instanceSettings, channelRateLimitGuard, webhookVerification, outboundHttp, optionPages, setupTelemetry) {
|
|
45
63
|
super();
|
|
46
64
|
this.logger = logger;
|
|
47
65
|
this.agentRepository = agentRepository;
|
|
48
66
|
this.instanceSettings = instanceSettings;
|
|
49
67
|
this.channelRateLimitGuard = channelRateLimitGuard;
|
|
50
68
|
this.webhookVerification = webhookVerification;
|
|
69
|
+
this.outboundHttp = outboundHttp;
|
|
70
|
+
this.optionPages = optionPages;
|
|
71
|
+
this.setupTelemetry = setupTelemetry;
|
|
51
72
|
this.type = 'whatsapp';
|
|
52
73
|
this.credentialTypes = ['whatsAppBotApi'];
|
|
53
74
|
this.displayLabel = 'WhatsApp';
|
|
@@ -59,16 +80,17 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
59
80
|
'Respond in the current WhatsApp conversation and send direct WhatsApp messages.',
|
|
60
81
|
'Add or remove emoji reactions on a WhatsApp message.',
|
|
61
82
|
'Render WhatsApp-compatible cards with reply buttons or list messages.',
|
|
83
|
+
'Send an approved utility template message to reach a customer outside the 24-hour customer service window.',
|
|
62
84
|
],
|
|
63
85
|
useIntegrationWhen: [
|
|
64
86
|
'The agent should be chatted with from WhatsApp or act as a WhatsApp Business bot.',
|
|
65
87
|
'The agent needs to reply to a WhatsApp customer in the same 1:1 conversation.',
|
|
66
|
-
'A scheduled Agent task should proactively message a known WhatsApp customer
|
|
88
|
+
'A scheduled Agent task should proactively message a known WhatsApp customer. Outside the 24-hour customer service window, it can only send an approved utility template.',
|
|
67
89
|
],
|
|
68
90
|
useNodeToolWhen: [
|
|
69
91
|
'WhatsApp is only a backend API step and the agent does not need to be connected as a WhatsApp chat surface.',
|
|
70
92
|
'The WhatsApp operation is performed by a non-Agent workflow, or the exact operation is not listed in the Agent integration capabilities.',
|
|
71
|
-
'The message must reach a customer outside the 24-hour window
|
|
93
|
+
'The message must reach a customer outside the 24-hour window with a marketing or authentication template. The agent can send only utility templates.',
|
|
72
94
|
],
|
|
73
95
|
};
|
|
74
96
|
this.supportedComponents = [
|
|
@@ -79,19 +101,58 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
79
101
|
'divider',
|
|
80
102
|
'fields',
|
|
81
103
|
];
|
|
82
|
-
this.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
104
|
+
this.contextToolDefinitions = [
|
|
105
|
+
...(0, integration_tool_definitions_1.resolveIntegrationContextQueryDefinitions)([
|
|
106
|
+
'get_current_message_context',
|
|
107
|
+
'get_current_subject',
|
|
108
|
+
]),
|
|
109
|
+
...whatsapp_tool_definitions_1.WHATSAPP_CONTEXT_QUERY_TOOL_DEFINITIONS,
|
|
110
|
+
];
|
|
111
|
+
this.actionToolDefinitions = [
|
|
112
|
+
...(0, integration_tool_definitions_1.resolveIntegrationActionDefinitions)(['respond', 'send_dm', 'add_reaction']),
|
|
113
|
+
...whatsapp_tool_definitions_1.WHATSAPP_ACTION_TOOL_DEFINITIONS,
|
|
114
|
+
];
|
|
87
115
|
this.actionToolGuidance = [
|
|
88
|
-
'For scheduled tasks without an inbound conversation, use send_dm with the known WhatsApp user ID (the customer phone number, WhatsApp "wa_id" format). This
|
|
116
|
+
'For scheduled tasks without an inbound conversation, use send_dm with the known WhatsApp user ID (the customer phone number, WhatsApp "wa_id" format). This fails outside the 24-hour customer service window.',
|
|
117
|
+
'When a send fails with an error that says the 24-hour window has closed, call list_templates, choose the template that best fits what you wanted to say, and send it with send_template. Use only facts you know as placeholder values. If no template fits, do not send one. For any other send error, do not send a template.',
|
|
118
|
+
'A template does not open the 24-hour window. Free-form messages to the customer still fail until the customer replies. Send a template only when its content is the message you want the customer to receive. Never send one as a placeholder or to try to open the window.',
|
|
89
119
|
'WhatsApp has no group conversations — every thread is a 1:1 DM.',
|
|
90
120
|
];
|
|
91
121
|
this.disableStreaming = true;
|
|
92
122
|
this.deleteActionMessageBeforeResume = false;
|
|
93
123
|
this.defaultSessionIdleTimeoutMinutes = WHATSAPP_DEFAULT_SESSION_IDLE_TIMEOUT_MINUTES;
|
|
94
124
|
}
|
|
125
|
+
async executeContextQuery(params) {
|
|
126
|
+
if (params.query !== 'list_templates')
|
|
127
|
+
return (0, integration_helpers_1.unsupportedQuery)(this.type, params.query);
|
|
128
|
+
const adapter = templateAdapter(params.chat);
|
|
129
|
+
if (!adapter)
|
|
130
|
+
return (0, integration_helpers_1.connectionUnavailable)();
|
|
131
|
+
const input = whatsapp_tool_definitions_1.listTemplatesQueryInputSchema.parse(params.input);
|
|
132
|
+
const result = await (0, whatsapp_templates_1.listWhatsAppTemplates)(async (qs) => await adapter.fetchMessageTemplates(qs), input);
|
|
133
|
+
return { ok: true, ...result };
|
|
134
|
+
}
|
|
135
|
+
async executeAction(params) {
|
|
136
|
+
if (params.action !== 'send_template')
|
|
137
|
+
return undefined;
|
|
138
|
+
const adapter = templateAdapter(params.chat);
|
|
139
|
+
if (!adapter)
|
|
140
|
+
return (0, integration_helpers_1.connectionUnavailable)();
|
|
141
|
+
const input = whatsapp_tool_definitions_1.sendTemplateInputSchema.parse(params.input);
|
|
142
|
+
const message = await (0, whatsapp_templates_1.buildWhatsAppTemplateMessage)(async (qs) => await adapter.fetchMessageTemplates(qs), input);
|
|
143
|
+
const threadId = await adapter.openDM(input.userId);
|
|
144
|
+
const sent = await adapter.sendTemplate(threadId, message);
|
|
145
|
+
return {
|
|
146
|
+
ok: true,
|
|
147
|
+
messageContext: {
|
|
148
|
+
integrationConnectionId: params.descriptor.integrationConnectionId,
|
|
149
|
+
platform: params.descriptor.integration.type,
|
|
150
|
+
target: { type: 'dm', userId: input.userId, threadId },
|
|
151
|
+
messageId: sent.id,
|
|
152
|
+
updatedAt: new Date().toISOString(),
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
}
|
|
95
156
|
async assertStartupPreconditions(ctx) {
|
|
96
157
|
await (0, credential_claim_1.assertCredentialNotClaimed)(this.agentRepository, this.displayLabel, this.type, ctx);
|
|
97
158
|
}
|
|
@@ -100,7 +161,30 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
100
161
|
}
|
|
101
162
|
async onRemove(ctx) {
|
|
102
163
|
await this.webhookVerification.clear(ctx.agentId);
|
|
103
|
-
|
|
164
|
+
if (!ctx.credentialId)
|
|
165
|
+
return undefined;
|
|
166
|
+
const displayPhoneNumber = await this.lookUpDisplayPhoneNumber(ctx);
|
|
167
|
+
return {
|
|
168
|
+
integrationType: this.type,
|
|
169
|
+
code: 'number_still_connected',
|
|
170
|
+
action: { type: 'open_url', url: META_APP_DASHBOARD_URL },
|
|
171
|
+
...(displayPhoneNumber ? { details: { displayPhoneNumber } } : {}),
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
async lookUpDisplayPhoneNumber(ctx) {
|
|
175
|
+
try {
|
|
176
|
+
const status = await Promise.race([
|
|
177
|
+
di_1.Container.get(whatsapp_credential_check_service_1.WhatsAppCredentialCheckService).getMetaStatus(ctx.user, ctx.projectId, ctx.credentialId),
|
|
178
|
+
(0, sleep_1.sleep)(REMOVAL_NUMBER_LOOKUP_TIMEOUT_MS).then(() => undefined),
|
|
179
|
+
]);
|
|
180
|
+
return status?.displayPhoneNumber;
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
this.logger.debug('[WhatsAppIntegration] Could not read the number for the removal warning', {
|
|
184
|
+
error: error instanceof Error ? error.message : String(error),
|
|
185
|
+
});
|
|
186
|
+
return undefined;
|
|
187
|
+
}
|
|
104
188
|
}
|
|
105
189
|
handleUnauthenticatedWebhook(context) {
|
|
106
190
|
if (context.method !== 'GET')
|
|
@@ -114,6 +198,7 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
114
198
|
return { status: 403, body: 'Forbidden', raw: true };
|
|
115
199
|
}
|
|
116
200
|
void this.webhookVerification.markVerified(context.agentId);
|
|
201
|
+
this.setupTelemetry.webhookVerified(context.agentId, 'setup');
|
|
117
202
|
return { status: 200, body: challenge, raw: true };
|
|
118
203
|
}
|
|
119
204
|
async createResumeExecutionContext(params) {
|
|
@@ -146,7 +231,7 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
146
231
|
userName: WHATSAPP_BOT_USER_NAME,
|
|
147
232
|
logger: this.createAdapterLogger(),
|
|
148
233
|
};
|
|
149
|
-
this.extractBusinessAccountId(ctx.credential);
|
|
234
|
+
const fetchMessageTemplates = this.createTemplateFetcher(this.extractBusinessAccountId(ctx.credential), config.accessToken, config.appSecret);
|
|
150
235
|
const [{ WhatsAppAdapter: AdapterClass }, sdk] = await Promise.all([
|
|
151
236
|
(0, esm_loader_1.loadWhatsAppAdapter)(),
|
|
152
237
|
(0, esm_loader_1.loadChatSdk)(),
|
|
@@ -155,21 +240,73 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
155
240
|
const channelRateLimitGuard = this.channelRateLimitGuard;
|
|
156
241
|
const connectionId = (0, integration_tool_factory_1.buildIntegrationConnectionId)(ctx.integration);
|
|
157
242
|
const webhookVerification = this.webhookVerification;
|
|
243
|
+
const setupTelemetry = this.setupTelemetry;
|
|
158
244
|
const agentId = ctx.agentId;
|
|
245
|
+
const deliveryFailureLimiter = new whatsapp_delivery_failures_1.DeliveryFailureRecoveryLimiter(DELIVERY_FAILURE_RECOVERY_WINDOW_MS, DELIVERY_FAILURE_MAX_RECOVERIES);
|
|
159
246
|
class ConversationWindowGuardedAdapter extends AdapterClass {
|
|
160
247
|
handleVerificationChallenge(request) {
|
|
161
248
|
const response = super.handleVerificationChallenge(request);
|
|
162
|
-
if (response.status === 200)
|
|
249
|
+
if (response.status === 200) {
|
|
163
250
|
void webhookVerification.markVerified(agentId);
|
|
251
|
+
setupTelemetry.webhookVerified(agentId, 'connected');
|
|
252
|
+
}
|
|
253
|
+
return response;
|
|
254
|
+
}
|
|
255
|
+
async openDM(userId) {
|
|
256
|
+
const waId = userId.replace(/\D/g, '');
|
|
257
|
+
if (!waId)
|
|
258
|
+
throw new errors_1.UserError('The WhatsApp user ID must be a phone number.');
|
|
259
|
+
return await super.openDM(waId);
|
|
260
|
+
}
|
|
261
|
+
async handleWebhook(request, options) {
|
|
262
|
+
const rawBody = request.method === 'POST' ? await request.clone().text() : undefined;
|
|
263
|
+
const response = await super.handleWebhook(request, options);
|
|
264
|
+
if (rawBody && response.ok)
|
|
265
|
+
this.reportWindowClosedFailures(rawBody, options);
|
|
164
266
|
return response;
|
|
165
267
|
}
|
|
268
|
+
reportWindowClosedFailures(rawBody, options) {
|
|
269
|
+
let payload;
|
|
270
|
+
try {
|
|
271
|
+
payload = JSON.parse(rawBody);
|
|
272
|
+
}
|
|
273
|
+
catch {
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
for (const failure of (0, whatsapp_delivery_failures_1.parseWindowClosedFailures)(payload)) {
|
|
277
|
+
if (!(0, whatsapp_delivery_failures_1.isRecentFailure)(failure))
|
|
278
|
+
continue;
|
|
279
|
+
if (!deliveryFailureLimiter.tryAcquire(failure))
|
|
280
|
+
continue;
|
|
281
|
+
logger.info('[WhatsAppIntegration] Free-form send failed outside the 24h window', {
|
|
282
|
+
agentId,
|
|
283
|
+
});
|
|
284
|
+
this.handleInboundMessage({
|
|
285
|
+
id: `${failure.messageId}${whatsapp_delivery_failures_1.DELIVERY_FAILURE_MESSAGE_ID_SUFFIX}`,
|
|
286
|
+
from: failure.recipientId,
|
|
287
|
+
timestamp: failure.timestamp,
|
|
288
|
+
type: 'text',
|
|
289
|
+
text: { body: whatsapp_delivery_failures_1.DELIVERY_FAILURE_NOTICE },
|
|
290
|
+
}, undefined, failure.phoneNumberId, options);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
166
293
|
async postMessage(threadId, message) {
|
|
167
294
|
await assertCustomerServiceWindowOpen(this.chat, sdk, threadId, logger);
|
|
168
295
|
return await super.postMessage(threadId, message);
|
|
169
296
|
}
|
|
170
297
|
async graphApiRequest(path, body) {
|
|
171
298
|
const recipient = (0, is_record_1.isRecord)(body) && typeof body.to === 'string' ? body.to : undefined;
|
|
172
|
-
|
|
299
|
+
try {
|
|
300
|
+
return await withWhatsAppRateLimitBackoff(async () => await super.graphApiRequest(path, body), logger, { guard: channelRateLimitGuard, connectionId, recipient });
|
|
301
|
+
}
|
|
302
|
+
catch (error) {
|
|
303
|
+
if (isReengagementError(error))
|
|
304
|
+
throw new errors_1.UserError(WINDOW_CLOSED_MESSAGE);
|
|
305
|
+
throw error;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
async fetchMessageTemplates(qs) {
|
|
309
|
+
return await fetchMessageTemplates(qs);
|
|
173
310
|
}
|
|
174
311
|
extractTextContent(message) {
|
|
175
312
|
if (message.type === 'contacts')
|
|
@@ -185,6 +322,17 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
185
322
|
}
|
|
186
323
|
return new ConversationWindowGuardedAdapter(config);
|
|
187
324
|
}
|
|
325
|
+
getFailedSendReport(message) {
|
|
326
|
+
if (!(0, whatsapp_delivery_failures_1.isDeliveryFailureNotice)(message))
|
|
327
|
+
return undefined;
|
|
328
|
+
return {
|
|
329
|
+
messageId: message.id.slice(0, -whatsapp_delivery_failures_1.DELIVERY_FAILURE_MESSAGE_ID_SUFFIX.length),
|
|
330
|
+
chatNotice: whatsapp_delivery_failures_1.DELIVERY_FAILURE_CHAT_NOTICE,
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
getReplyExpectation({ message }) {
|
|
334
|
+
return (0, whatsapp_delivery_failures_1.isDeliveryFailureNotice)(message) ? 'optional' : 'required';
|
|
335
|
+
}
|
|
188
336
|
formatActionDecisionMessage({ approved, selectedLabel, user, }) {
|
|
189
337
|
const responder = user.fullName || user.userName || user.userId;
|
|
190
338
|
return approved === undefined
|
|
@@ -193,7 +341,10 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
193
341
|
? `✅ Approved by ${responder}`
|
|
194
342
|
: `🚫 Declined by ${responder}`;
|
|
195
343
|
}
|
|
196
|
-
normalizeComponents(components, context) {
|
|
344
|
+
async normalizeComponents(components, context) {
|
|
345
|
+
return await this.paginateSelect(this.foldButtonsIntoSelect(components, context), context);
|
|
346
|
+
}
|
|
347
|
+
foldButtonsIntoSelect(components, context) {
|
|
197
348
|
const buttons = components.filter((c) => c.type === 'button');
|
|
198
349
|
if (buttons.length <= WHATSAPP_MAX_REPLY_BUTTONS)
|
|
199
350
|
return components;
|
|
@@ -219,6 +370,96 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
219
370
|
});
|
|
220
371
|
return normalized;
|
|
221
372
|
}
|
|
373
|
+
createTemplateFetcher(businessAccountId, accessToken, appSecret) {
|
|
374
|
+
const proof = (0, node_crypto_1.createHmac)('sha256', appSecret).update(accessToken).digest('hex');
|
|
375
|
+
const client = this.outboundHttp
|
|
376
|
+
.requests({ useDefaultSsrfPolicy: 'unsafe' });
|
|
377
|
+
return async (qs) => await client.request({
|
|
378
|
+
method: 'GET',
|
|
379
|
+
url: `${whatsapp_credential_check_service_1.GRAPH_API_BASE_URL}/${encodeURIComponent(businessAccountId)}/message_templates`,
|
|
380
|
+
qs: { ...qs, appsecret_proof: proof },
|
|
381
|
+
headers: { Authorization: `Bearer ${accessToken}` },
|
|
382
|
+
json: true,
|
|
383
|
+
returnFullResponse: true,
|
|
384
|
+
ignoreHttpStatusErrors: true,
|
|
385
|
+
timeout: WHATSAPP_TEMPLATE_REQUEST_TIMEOUT_MS,
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
async paginateSelect(components, context) {
|
|
389
|
+
const select = components.find((c) => c.type === 'select' || c.type === 'radio_select');
|
|
390
|
+
if (!select?.options || select.options.length <= whatsapp_option_pages_store_1.WHATSAPP_MAX_LIST_ROWS)
|
|
391
|
+
return components;
|
|
392
|
+
let options = select.options;
|
|
393
|
+
if (options.length > whatsapp_option_pages_store_1.WHATSAPP_MAX_PAGED_OPTIONS) {
|
|
394
|
+
this.logger.warn(`[WhatsAppIntegration] Dropping ${options.length - whatsapp_option_pages_store_1.WHATSAPP_MAX_PAGED_OPTIONS} list options — a list shows at most ${whatsapp_option_pages_store_1.WHATSAPP_MAX_PAGED_OPTIONS}.`);
|
|
395
|
+
options = options.slice(0, whatsapp_option_pages_store_1.WHATSAPP_MAX_PAGED_OPTIONS);
|
|
396
|
+
}
|
|
397
|
+
const prompt = components
|
|
398
|
+
.filter((c) => c.type === 'section')
|
|
399
|
+
.map((c) => (0, component_mapper_1.componentTextToString)(c.text))
|
|
400
|
+
.filter(Boolean)
|
|
401
|
+
.join('\n\n');
|
|
402
|
+
const key = await this.optionPages.save({
|
|
403
|
+
options,
|
|
404
|
+
label: select.label,
|
|
405
|
+
title: context.title,
|
|
406
|
+
prompt: prompt || undefined,
|
|
407
|
+
});
|
|
408
|
+
if (!key) {
|
|
409
|
+
return components.map((c) => c === select ? { ...c, options: options.slice(0, whatsapp_option_pages_store_1.WHATSAPP_MAX_LIST_ROWS) } : c);
|
|
410
|
+
}
|
|
411
|
+
const page = (0, whatsapp_option_pages_store_1.getOptionPage)(options, 0);
|
|
412
|
+
const rows = [...page.options, this.buildMoreOption(options, key, page.nextPage)];
|
|
413
|
+
return components.map((c) => (c === select ? { ...c, options: rows } : c));
|
|
414
|
+
}
|
|
415
|
+
buildMoreOption(options, key, nextPage) {
|
|
416
|
+
const next = (0, whatsapp_option_pages_store_1.getOptionPage)(options, nextPage ?? 0);
|
|
417
|
+
const first = next.start + 1;
|
|
418
|
+
const last = next.start + next.options.length;
|
|
419
|
+
return {
|
|
420
|
+
label: 'More…',
|
|
421
|
+
value: (0, whatsapp_option_pages_store_1.encodePageValue)(key, nextPage ?? 0),
|
|
422
|
+
description: `Options ${first}–${last} of ${options.length}`,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
async claimAction(event) {
|
|
426
|
+
const target = (0, whatsapp_option_pages_store_1.parsePageValue)(event.value);
|
|
427
|
+
if (!target)
|
|
428
|
+
return false;
|
|
429
|
+
const { thread } = event;
|
|
430
|
+
if (!thread)
|
|
431
|
+
return true;
|
|
432
|
+
const stored = await this.optionPages.get(target.key);
|
|
433
|
+
const page = stored && (0, whatsapp_option_pages_store_1.getOptionPage)(stored.options, target.pageIndex);
|
|
434
|
+
if (!stored || !page || page.options.length === 0) {
|
|
435
|
+
await thread.post(OPTIONS_EXPIRED_NOTICE);
|
|
436
|
+
return true;
|
|
437
|
+
}
|
|
438
|
+
const rows = page.nextPage === undefined
|
|
439
|
+
? page.options
|
|
440
|
+
: [...page.options, this.buildMoreOption(stored.options, target.key, page.nextPage)];
|
|
441
|
+
const first = page.start + 1;
|
|
442
|
+
const last = page.start + page.options.length;
|
|
443
|
+
const sdk = await (0, esm_loader_1.loadChatSdk)();
|
|
444
|
+
const card = sdk.Card({
|
|
445
|
+
title: stored.title,
|
|
446
|
+
children: [
|
|
447
|
+
...(stored.prompt ? [sdk.Section([sdk.CardText(stored.prompt)])] : []),
|
|
448
|
+
sdk.Section([
|
|
449
|
+
sdk.CardText(`Options ${first}–${last} of ${stored.options.length}`),
|
|
450
|
+
]),
|
|
451
|
+
sdk.Actions([
|
|
452
|
+
sdk.Select({
|
|
453
|
+
id: event.actionId,
|
|
454
|
+
label: stored.label ?? 'Choose an option',
|
|
455
|
+
options: rows,
|
|
456
|
+
}),
|
|
457
|
+
]),
|
|
458
|
+
],
|
|
459
|
+
});
|
|
460
|
+
await thread.post({ card });
|
|
461
|
+
return true;
|
|
462
|
+
}
|
|
222
463
|
createAdapterLogger() {
|
|
223
464
|
const forward = (level) => (message, ..._args) => {
|
|
224
465
|
this.logger[level](`[WhatsAppAdapter] ${message}`);
|
|
@@ -251,13 +492,13 @@ let WhatsAppIntegration = class WhatsAppIntegration extends agent_chat_integrati
|
|
|
251
492
|
const value = credential[field];
|
|
252
493
|
if (typeof value === 'string' && value.trim())
|
|
253
494
|
return value.trim();
|
|
254
|
-
throw new
|
|
495
|
+
throw new errors_1.UserError(message);
|
|
255
496
|
}
|
|
256
497
|
};
|
|
257
498
|
exports.WhatsAppIntegration = WhatsAppIntegration;
|
|
258
499
|
exports.WhatsAppIntegration = WhatsAppIntegration = __decorate([
|
|
259
500
|
(0, di_1.Service)(),
|
|
260
|
-
__metadata("design:paramtypes", [backend_common_1.Logger, agent_repository_1.AgentRepository, n8n_core_1.InstanceSettings, channel_rate_limit_guard_1.ChannelRateLimitGuard, whatsapp_webhook_verification_store_1.WhatsAppWebhookVerificationStore])
|
|
501
|
+
__metadata("design:paramtypes", [backend_common_1.Logger, agent_repository_1.AgentRepository, n8n_core_1.InstanceSettings, channel_rate_limit_guard_1.ChannelRateLimitGuard, whatsapp_webhook_verification_store_1.WhatsAppWebhookVerificationStore, backend_network_1.OutboundHttp, whatsapp_option_pages_store_1.WhatsAppOptionPagesStore, whatsapp_setup_telemetry_service_1.WhatsAppSetupTelemetryService])
|
|
261
502
|
], WhatsAppIntegration);
|
|
262
503
|
function whatsAppSettings(integration) {
|
|
263
504
|
return (0, api_types_1.resolveWhatsAppSettings)(integration?.type === 'whatsapp' ? integration.settings : undefined);
|
|
@@ -280,11 +521,19 @@ async function assertCustomerServiceWindowOpen(chat, sdk, threadId, logger) {
|
|
|
280
521
|
if (!lastInboundAt)
|
|
281
522
|
return;
|
|
282
523
|
if (Date.now() - lastInboundAt.getTime() > WHATSAPP_CUSTOMER_SERVICE_WINDOW_MS) {
|
|
283
|
-
throw new
|
|
284
|
-
'That window has closed for this conversation, so this message cannot be sent. ' +
|
|
285
|
-
'Template messages for re-engaging customers outside the window are not supported.');
|
|
524
|
+
throw new errors_1.UserError(WINDOW_CLOSED_MESSAGE);
|
|
286
525
|
}
|
|
287
526
|
}
|
|
527
|
+
function templateAdapter(chat) {
|
|
528
|
+
const adapter = chat?.getAdapter('whatsapp');
|
|
529
|
+
return isTemplateAdapter(adapter) ? adapter : undefined;
|
|
530
|
+
}
|
|
531
|
+
function isTemplateAdapter(adapter) {
|
|
532
|
+
return ((0, is_record_1.isRecord)(adapter) &&
|
|
533
|
+
typeof adapter.fetchMessageTemplates === 'function' &&
|
|
534
|
+
typeof adapter.openDM === 'function' &&
|
|
535
|
+
typeof adapter.sendTemplate === 'function');
|
|
536
|
+
}
|
|
288
537
|
const WHATSAPP_API_ERROR_MESSAGE = /^WhatsApp API error: (\d+) (.*)$/s;
|
|
289
538
|
function parseWhatsAppApiError(message) {
|
|
290
539
|
const match = WHATSAPP_API_ERROR_MESSAGE.exec(message);
|
|
@@ -312,8 +561,13 @@ function whatsAppRateLimitDetails(error) {
|
|
|
312
561
|
(details.code !== undefined && WHATSAPP_RATE_LIMIT_ERROR_CODES.has(details.code));
|
|
313
562
|
return isRateLimit ? details : undefined;
|
|
314
563
|
}
|
|
564
|
+
function isReengagementError(error) {
|
|
565
|
+
if (!(error instanceof Error) || error.name !== 'AdapterError')
|
|
566
|
+
return false;
|
|
567
|
+
return parseWhatsAppApiError(error.message)?.code === whatsapp_delivery_failures_1.WHATSAPP_REENGAGEMENT_ERROR_CODE;
|
|
568
|
+
}
|
|
315
569
|
function recipientRateLimitError(cause) {
|
|
316
|
-
return Object.assign(new
|
|
570
|
+
return Object.assign(new errors_1.OperationalError('WhatsApp is rate-limiting messages to this recipient. Wait before sending them more messages.', { cause }), {
|
|
317
571
|
response: { status: 429 },
|
|
318
572
|
rateLimitScope: 'recipient',
|
|
319
573
|
});
|
|
@@ -323,7 +577,7 @@ async function withWhatsAppRateLimitBackoff(send, logger, rateLimit) {
|
|
|
323
577
|
? `${rateLimit.connectionId}:${rateLimit.recipient}`
|
|
324
578
|
: undefined;
|
|
325
579
|
if (rateLimit.guard.isBlocked(rateLimit.connectionId)) {
|
|
326
|
-
throw Object.assign(new
|
|
580
|
+
throw Object.assign(new errors_1.OperationalError((0, channel_rate_limit_1.channelRateLimitMessage)('whatsapp')), {
|
|
327
581
|
response: { status: 429 },
|
|
328
582
|
});
|
|
329
583
|
}
|
|
@@ -344,7 +598,7 @@ async function withWhatsAppRateLimitBackoff(send, logger, rateLimit) {
|
|
|
344
598
|
throw recipientRateLimitError(error);
|
|
345
599
|
}
|
|
346
600
|
rateLimit.guard.record(rateLimit.connectionId);
|
|
347
|
-
throw Object.assign(new
|
|
601
|
+
throw Object.assign(new errors_1.OperationalError('WhatsApp is rate-limiting messages to this number, likely because of its Meta ' +
|
|
348
602
|
'quality rating or daily messaging limit. Wait before sending more messages.', { cause: error }), { response: { status: 429 } });
|
|
349
603
|
}
|
|
350
604
|
const delayMs = Math.min(WHATSAPP_RATE_LIMIT_BACKOFF_BASE_MS * 2 ** (attempt - 1), WHATSAPP_RATE_LIMIT_BACKOFF_CAP_MS);
|
|
@@ -364,7 +618,7 @@ async function lastInboundMessageAt(chat, sdk, threadId, logger) {
|
|
|
364
618
|
const messages = await history.getMessages(threadId);
|
|
365
619
|
let lastInboundAt;
|
|
366
620
|
for (const message of messages) {
|
|
367
|
-
if (message.author.isMe)
|
|
621
|
+
if (message.author.isMe || (0, whatsapp_delivery_failures_1.isDeliveryFailureNotice)(message))
|
|
368
622
|
continue;
|
|
369
623
|
lastInboundAt = message.metadata.dateSent;
|
|
370
624
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp-integration.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAIwB;AACxB,wDAA6C;AAC7C,gCAAkC;AAClC,oDAAgD;AAChD,4CAAyC;AAEzC,uCAA4C;AAC5C,+CAA2D;AAI3D,6EAAyE;AACzE,yEAUsC;AACtC,iEAGkC;AAClC,6EAAuE;AACvE,6DAIgC;AAChC,6DAAoE;AACpE,iDAAoE;AACpE,mEAAmG;AACnG,qFAAyF;AACzF,6EAA8E;AAC9E,0DAA2D;AAC3D,+FAAyF;AACzF,uDAA6D;AAY7D,MAAM,mCAAmC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAShE,MAAM,6CAA6C,GAAG,EAAE,CAAC;AAGzD,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAOrC,MAAM,0BAA0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C5D,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACrD,IAAI,aAA+B,CAAC;QACpC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAChC,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI;gBAAE,SAAS;YAClC,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC3C,CAAC;QACD,OAAO,aAAa,CAAC;IACtB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,CAAC,IAAI,CAAC,8EAA8E,EAAE;YAC3F,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;SAC7D,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"whatsapp-integration.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAKwB;AACxB,wDAA6C;AAC7C,0DAAoD;AACpD,gCAA6C;AAC7C,oDAAgD;AAChD,4CAAyC;AASzC,uCAA4C;AAC5C,wCAA0D;AAC1D,6CAAyC;AAIzC,6EAAyE;AACzE,yEAYsC;AACtC,iEAGkC;AAClC,6EAAuE;AACvE,6DAIgC;AAChC,6DAAoE;AACpE,iDAAoE;AACpE,mEAMmC;AACnC,qFAG4C;AAC5C,6EAA8E;AAE9E,0DAA2D;AAC3D,2FAG6C;AAC7C,6DAK8B;AAC9B,2EAKqC;AACrC,6EASsC;AACtC,+EAQuC;AACvC,yFAAmF;AACnF,+FAAyF;AACzF,uDAA6D;AAW7D,MAAM,mCAAmC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEhE,MAAM,qBAAqB,GAC1B,0FAA0F;IAC1F,gF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AAC;QAChB,MAAM,CAAC,IAAI,CAAC,8EAA8E,EAAE;YAC3F,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;SAC7D,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WhatsAppMetaState } from '@n8n/api-types';
|
|
2
|
+
export interface WhatsAppMetaSignals {
|
|
3
|
+
numberStatus?: string;
|
|
4
|
+
nameStatus?: string;
|
|
5
|
+
newNameStatus?: string;
|
|
6
|
+
messagingLimitTier?: string;
|
|
7
|
+
businessVerificationStatus?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function resolveWhatsAppMetaState(signals: WhatsAppMetaSignals): WhatsAppMetaState;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveWhatsAppMetaState = resolveWhatsAppMetaState;
|
|
4
|
+
const UNVERIFIED_MESSAGING_TIER = 'TIER_250';
|
|
5
|
+
const IN_REVIEW_VERIFICATION = new Set(['pending']);
|
|
6
|
+
const NOT_VERIFIED_VERIFICATION = new Set([
|
|
7
|
+
'not_verified',
|
|
8
|
+
'pending_submission',
|
|
9
|
+
'pending_need_more_info',
|
|
10
|
+
'rejected',
|
|
11
|
+
'failed',
|
|
12
|
+
'revoked',
|
|
13
|
+
'expired',
|
|
14
|
+
]);
|
|
15
|
+
const UNAVAILABLE_NUMBER_STATUSES = new Set(['BANNED', 'DISCONNECTED', 'DELETED', 'MIGRATED']);
|
|
16
|
+
const isPending = (status) => status === 'PENDING_REVIEW';
|
|
17
|
+
const isDeclined = (status) => status === 'DECLINED';
|
|
18
|
+
function resolveWhatsAppMetaState(signals) {
|
|
19
|
+
const { numberStatus, nameStatus, newNameStatus } = signals;
|
|
20
|
+
if (numberStatus && UNAVAILABLE_NUMBER_STATUSES.has(numberStatus))
|
|
21
|
+
return 'numberUnavailable';
|
|
22
|
+
if (numberStatus === 'PENDING')
|
|
23
|
+
return 'numberPending';
|
|
24
|
+
if (isDeclined(nameStatus))
|
|
25
|
+
return 'nameDeclinedBlocked';
|
|
26
|
+
if (isPending(nameStatus))
|
|
27
|
+
return 'nameInReviewBlocked';
|
|
28
|
+
if (numberStatus === 'RESTRICTED')
|
|
29
|
+
return 'dailyLimit';
|
|
30
|
+
if (isDeclined(newNameStatus))
|
|
31
|
+
return 'nameDeclined';
|
|
32
|
+
if (isPending(newNameStatus))
|
|
33
|
+
return 'nameInReview';
|
|
34
|
+
if (signals.messagingLimitTier === UNVERIFIED_MESSAGING_TIER) {
|
|
35
|
+
const verification = signals.businessVerificationStatus;
|
|
36
|
+
if (verification && IN_REVIEW_VERIFICATION.has(verification))
|
|
37
|
+
return 'businessInReview';
|
|
38
|
+
if (verification && NOT_VERIFIED_VERIFICATION.has(verification))
|
|
39
|
+
return 'businessNotVerified';
|
|
40
|
+
}
|
|
41
|
+
return 'connected';
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=whatsapp-meta-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp-meta-status.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/whatsapp/whatsapp-meta-status.ts"],"names":[],"mappings":";;;AAGA,MAAM,yBAAyB,GAAG,UAAU,CAAC;AAe7C,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAOpD,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC;IACzC,cAAc;IACd,oBAAoB;IACpB,wBAAwB;IACxB,UAAU;IACV,QAAQ;IACR,SAAS;IACT,SAAS;CACT,CAAC,CAAC;AAQH,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,cAAc,EAAE,S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