n8n 2.44.4 → 2.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activation-errors.service.d.ts +1 -1
- package/dist/active-executions.js +1 -1
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.d.ts +1 -1
- package/dist/agent-library-bundle.js +5 -0
- package/dist/auth/auth.service.d.ts +1 -2
- package/dist/auth/auth.service.js +1 -2
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/execute-batch.js +1 -1
- package/dist/commands/execute-batch.js.map +1 -1
- package/dist/commands/execute.js +1 -1
- package/dist/commands/execute.js.map +1 -1
- package/dist/commands/start.js +1 -4
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/webhook.js +2 -2
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.js +2 -2
- package/dist/commands/worker.js.map +1 -1
- package/dist/controllers/debug.controller.d.ts +1 -1
- package/dist/controllers/e2e.controller.js +1 -0
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.d.ts +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +15 -3
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +1 -2
- package/dist/controllers/users.controller.js +1 -2
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/credentials/credential-data-merge.d.ts +7 -0
- package/dist/credentials/credential-data-merge.js +55 -0
- package/dist/credentials/credential-data-merge.js.map +1 -0
- package/dist/credentials/credential-dependency.service.d.ts +1 -1
- package/dist/credentials/credential-dependency.service.js +4 -4
- package/dist/credentials/credential-dependency.service.js.map +1 -1
- package/dist/credentials/credentials.controller.js +6 -2
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +5 -1
- package/dist/credentials/credentials.service.js +11 -3
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials/pending-authorization-cleanup.task.d.ts +2 -3
- package/dist/credentials/pending-authorization-cleanup.task.js +6 -6
- package/dist/credentials/pending-authorization-cleanup.task.js.map +1 -1
- package/dist/deprecation/deprecation.service.js +24 -0
- package/dist/deprecation/deprecation.service.js.map +1 -1
- package/dist/evaluation.ee/evaluation-dataset.service.d.ts +2 -5
- package/dist/evaluation.ee/evaluation-dataset.service.js +3 -11
- package/dist/evaluation.ee/evaluation-dataset.service.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +3 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.d.ts +2 -3
- package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js +1 -5
- package/dist/eventbus/message-event-bus/event-bus-unsent-message-flush.task.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +18 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +3 -0
- package/dist/events/relays/log-streaming.event-relay.js +39 -0
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.js +15 -3
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +1 -2
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/executions/execution.service.d.ts +1 -2
- package/dist/executions/execution.service.js +1 -2
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/idempotency/idempotency-request.d.ts +29 -0
- package/dist/idempotency/idempotency-request.js +125 -0
- package/dist/idempotency/idempotency-request.js.map +1 -0
- package/dist/idempotency/idempotency.middleware.d.ts +7 -0
- package/dist/idempotency/idempotency.middleware.js +80 -0
- package/dist/idempotency/idempotency.middleware.js.map +1 -0
- package/dist/idempotency/idempotency.types.d.ts +21 -0
- package/dist/{modules/quick-connect/handlers/handler.interface.js → idempotency/idempotency.types.js} +1 -1
- package/dist/idempotency/idempotency.types.js.map +1 -0
- package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js +3 -0
- package/dist/instance-settings-loader/loaders/log-streaming.instance-settings-loader.js.map +1 -1
- package/dist/jwks/jwks.controller.d.ts +1 -1
- package/dist/jwks/jwks.controller.js +4 -4
- package/dist/jwks/jwks.controller.js.map +1 -1
- package/dist/license/license-renewal.task.d.ts +2 -6
- package/dist/license/license-renewal.task.js +10 -8
- package/dist/license/license-renewal.task.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +1 -0
- package/dist/load-nodes-and-credentials.js +16 -1
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/modules/agents/adapters/agents-credential-provider.js +1 -0
- package/dist/modules/agents/adapters/agents-credential-provider.js.map +1 -1
- package/dist/modules/agents/agent-channel-media-retention.task.d.ts +15 -0
- package/dist/modules/agents/agent-channel-media-retention.task.js +64 -0
- package/dist/modules/agents/agent-channel-media-retention.task.js.map +1 -0
- package/dist/modules/agents/agent-chat-attachment.service.d.ts +4 -0
- package/dist/modules/agents/agent-chat-attachment.service.js +15 -0
- package/dist/modules/agents/agent-chat-attachment.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-execution.service.d.ts +2 -1
- package/dist/modules/agents/agent-chat-execution.service.js +19 -10
- package/dist/modules/agents/agent-chat-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-chat-relay.service.d.ts +31 -0
- package/dist/modules/agents/agent-chat-relay.service.js +164 -0
- package/dist/modules/agents/agent-chat-relay.service.js.map +1 -0
- package/dist/modules/agents/agent-chat.controller.d.ts +5 -9
- package/dist/modules/agents/agent-chat.controller.js +18 -150
- package/dist/modules/agents/agent-chat.controller.js.map +1 -1
- package/dist/modules/agents/agent-checkpoint-pruning.task.d.ts +2 -5
- package/dist/modules/agents/agent-checkpoint-pruning.task.js +10 -8
- package/dist/modules/agents/agent-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/agents/agent-config-preparation.service.d.ts +10 -13
- package/dist/modules/agents/agent-config.service.d.ts +1 -3
- package/dist/modules/agents/agent-config.service.js +8 -7
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-definition.service.d.ts +1 -1
- package/dist/modules/agents/agent-definition.service.js +11 -6
- package/dist/modules/agents/agent-definition.service.js.map +1 -1
- package/dist/modules/agents/agent-dependency-index.listener.js +5 -0
- package/dist/modules/agents/agent-dependency-index.listener.js.map +1 -1
- package/dist/modules/agents/agent-dependency-index.service.d.ts +1 -0
- package/dist/modules/agents/agent-dependency-index.service.js +7 -0
- package/dist/modules/agents/agent-dependency-index.service.js.map +1 -1
- package/dist/modules/agents/agent-execution-orchestrator.service.d.ts +4 -4
- package/dist/modules/agents/agent-execution-orchestrator.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.js +4 -0
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-management.service.d.ts +5 -5
- package/dist/modules/agents/agent-integration-management.service.js +1 -1
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-persistence.service.d.ts +3 -3
- package/dist/modules/agents/agent-integration-persistence.service.js.map +1 -1
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.d.ts +2 -3
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js +4 -6
- package/dist/modules/agents/agent-interrupted-execution-sweep.task.js.map +1 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.js +1 -1
- package/dist/modules/agents/agent-message-queue-consumer.service.js.map +1 -1
- package/dist/modules/agents/agent-message-queue.service.js +14 -6
- package/dist/modules/agents/agent-message-queue.service.js.map +1 -1
- package/dist/modules/agents/agent-modification-telemetry.service.d.ts +13 -13
- package/dist/modules/agents/agent-publish.controller.d.ts +8 -0
- package/dist/modules/agents/agent-publish.service.d.ts +6 -7
- package/dist/modules/agents/agent-publish.service.js +17 -28
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-runnable-state.service.d.ts +3 -0
- package/dist/modules/agents/agent-runnable-state.service.js +8 -2
- package/dist/modules/agents/agent-runnable-state.service.js.map +1 -1
- package/dist/modules/agents/agent-runtime-reconstruction.service.d.ts +5 -2
- package/dist/modules/agents/agent-runtime-reconstruction.service.js +35 -8
- package/dist/modules/agents/agent-runtime-reconstruction.service.js.map +1 -1
- package/dist/modules/agents/agent-skill-refs.service.d.ts +38 -6
- package/dist/modules/agents/agent-skill-refs.service.js +245 -18
- package/dist/modules/agents/agent-skill-refs.service.js.map +1 -1
- package/dist/modules/agents/agent-skills.service.d.ts +12 -13
- package/dist/modules/agents/agent-skills.service.js +211 -123
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-task.service.js +6 -5
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-teams-integrations.controller.d.ts +47 -3
- package/dist/modules/agents/agent-teams-integrations.controller.js +225 -3
- package/dist/modules/agents/agent-teams-integrations.controller.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +1 -0
- package/dist/modules/agents/agent-validation.service.js +17 -2
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-whatsapp-integrations.controller.d.ts +22 -0
- package/dist/modules/agents/agent-whatsapp-integrations.controller.js +74 -0
- package/dist/modules/agents/agent-whatsapp-integrations.controller.js.map +1 -0
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +1 -0
- package/dist/modules/agents/agent-workflow-execution.service.js +56 -23
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +10 -13
- package/dist/modules/agents/agents-skills.controller.d.ts +2 -2
- package/dist/modules/agents/agents-skills.controller.js +6 -5
- package/dist/modules/agents/agents-skills.controller.js.map +1 -1
- package/dist/modules/agents/agents-tools.service.js +12 -8
- package/dist/modules/agents/agents-tools.service.js.map +1 -1
- package/dist/modules/agents/agents.controller.d.ts +4 -0
- package/dist/modules/agents/agents.module.d.ts +3 -2
- package/dist/modules/agents/agents.module.js +25 -2
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/agents.service.d.ts +7 -6
- package/dist/modules/agents/agents.service.js +10 -8
- package/dist/modules/agents/agents.service.js.map +1 -1
- package/dist/modules/agents/background/agent-wake.service.js.map +1 -1
- package/dist/modules/agents/budget-guardrail.d.ts +2 -4
- package/dist/modules/agents/budget-guardrail.js +29 -10
- package/dist/modules/agents/budget-guardrail.js.map +1 -1
- package/dist/modules/agents/builder/agent-builder-session-context.d.ts +1 -0
- package/dist/modules/agents/builder/agent-builder-session-context.js +16 -0
- package/dist/modules/agents/builder/agent-builder-session-context.js.map +1 -0
- package/dist/modules/agents/builder/agents-builder-model-recommendations.js +4 -4
- package/dist/modules/agents/builder/agents-builder-tools.service.d.ts +4 -0
- package/dist/modules/agents/builder/agents-builder-tools.service.js +166 -33
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-tool-names.d.ts +17 -14
- package/dist/modules/agents/builder/builder-tool-names.js +18 -14
- package/dist/modules/agents/builder/builder-tool-names.js.map +1 -1
- package/dist/modules/agents/builder/call-agent-failure.js +2 -2
- package/dist/modules/agents/builder/call-agent-failure.js.map +1 -1
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js +7 -5
- package/dist/modules/agents/builder/get-resource-locator-options.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js +5 -3
- package/dist/modules/agents/builder/interactive/ask-credential.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js +2 -1
- package/dist/modules/agents/builder/interactive/ask-questions.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js +1 -0
- package/dist/modules/agents/builder/interactive/configure-channel.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/finish-setup.tool.d.ts +21 -0
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js +81 -12
- package/dist/modules/agents/builder/interactive/finish-setup.tool.js.map +1 -1
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js +6 -5
- package/dist/modules/agents/builder/interactive/resolve-llm.tool.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js +27 -18
- package/dist/modules/agents/builder/prompts/config-mutation.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js +2 -2
- package/dist/modules/agents/builder/prompts/config-rules.prompt.js.map +1 -1
- package/dist/modules/agents/builder/prompts/initial-build.prompt.d.ts +1 -2
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js +2 -70
- package/dist/modules/agents/builder/prompts/initial-build.prompt.js.map +1 -1
- package/dist/modules/agents/builder/skills/config.skill.d.ts +2 -0
- package/dist/modules/agents/builder/skills/config.skill.js +14 -0
- package/dist/modules/agents/builder/skills/config.skill.js.map +1 -0
- package/dist/modules/agents/builder/skills/custom-tools.skill.js +14 -10
- package/dist/modules/agents/builder/skills/custom-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/external-services.skill.js +81 -63
- package/dist/modules/agents/builder/skills/external-services.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/index.js +11 -1
- package/dist/modules/agents/builder/skills/index.js.map +1 -1
- package/dist/modules/agents/builder/skills/memory.skill.js +14 -14
- package/dist/modules/agents/builder/skills/memory.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/node-tools.skill.js +25 -22
- package/dist/modules/agents/builder/skills/node-tools.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/resource-locators.skill.js +32 -30
- package/dist/modules/agents/builder/skills/resource-locators.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/sub-agents.skill.js +14 -5
- package/dist/modules/agents/builder/skills/sub-agents.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-skills.skill.js +46 -41
- package/dist/modules/agents/builder/skills/target-skills.skill.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +33 -33
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/builder/verify-mcp-server.tool.js +13 -4
- package/dist/modules/agents/builder/verify-mcp-server.tool.js.map +1 -1
- package/dist/modules/agents/entities/agent-skill-dependency.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-skill-dependency.entity.js +34 -0
- package/dist/modules/agents/entities/agent-skill-dependency.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent-version-skill-dependency.entity.d.ts +6 -0
- package/dist/modules/agents/entities/agent-version-skill-dependency.entity.js +35 -0
- package/dist/modules/agents/entities/agent-version-skill-dependency.entity.js.map +1 -0
- package/dist/modules/agents/entities/agent.entity.d.ts +9 -2
- package/dist/modules/agents/entities/agent.entity.js +14 -4
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/entities/skill-file.entity.d.ts +6 -0
- package/dist/modules/agents/entities/skill-file.entity.js +33 -0
- package/dist/modules/agents/entities/skill-file.entity.js.map +1 -0
- package/dist/modules/agents/entities/skill-version.entity.d.ts +13 -0
- package/dist/modules/agents/entities/skill-version.entity.js +59 -0
- package/dist/modules/agents/entities/skill-version.entity.js.map +1 -0
- package/dist/modules/agents/entities/skill.entity.d.ts +9 -0
- package/dist/modules/agents/entities/skill.entity.js +43 -0
- package/dist/modules/agents/entities/skill.entity.js.map +1 -0
- package/dist/modules/agents/instance-ai-agent-context.adapter.d.ts +3 -1
- package/dist/modules/agents/instance-ai-agent-context.adapter.js +12 -5
- package/dist/modules/agents/instance-ai-agent-context.adapter.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.d.ts +7 -5
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +55 -92
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-channel-reconciler.service.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js +29 -4
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +16 -2
- package/dist/modules/agents/integrations/agent-chat-integration.js +9 -1
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-credential-lookup.service.js +1 -0
- package/dist/modules/agents/integrations/agent-credential-lookup.service.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +3 -3
- package/dist/modules/agents/integrations/chat-integration.service.js +4 -2
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.js +15 -2
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-error-codes.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.js +1 -0
- package/dist/modules/agents/integrations/integration-error-codes.js.map +1 -1
- package/dist/modules/agents/integrations/integrations-sync.d.ts +2 -2
- package/dist/modules/agents/integrations/integrations-sync.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/assets/n8n-bot-icon.png +0 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.d.ts +2 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js +2 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-managed-setup.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.d.ts +3 -3
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.d.ts +5 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.js +23 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-admin-consent.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.d.ts +15 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js +136 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-app-icons.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.d.ts +2 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-arm-template.service.js +3 -4
- 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.d.ts +14 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js +83 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-arm.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.d.ts +39 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js +202 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.d.ts +51 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js +241 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-catalog.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.d.ts +13 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.js +43 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-cleanup.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.d.ts +3 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.js +65 -24
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-check.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.d.ts +11 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.js +58 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-credential-notes.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.d.ts +36 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js +318 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-entra-provisioning.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.d.ts +4 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.js +10 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph-permissions.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.d.ts +19 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js +128 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-graph.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.d.ts +17 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js +63 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.d.ts +28 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js +146 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-managed-setup.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.d.ts +23 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js +155 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manager-token.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.d.ts +3 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js +18 -8
- package/dist/modules/agents/integrations/platforms/teams/teams-manifest.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.d.ts +18 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js +174 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-message-files.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.d.ts +7 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js +175 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-operations.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.d.ts +20 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js +68 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup-telemetry.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.d.ts +15 -1
- package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.js +77 -3
- package/dist/modules/agents/integrations/platforms/teams/teams-setup.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.d.ts +17 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js +148 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-credential-check.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/{whatsapp-integration.d.ts → whatsapp/whatsapp-integration.d.ts} +17 -7
- package/dist/modules/agents/integrations/platforms/{whatsapp-integration.js → whatsapp/whatsapp-integration.js} +48 -12
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-integration.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.d.ts +11 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.js +58 -0
- package/dist/modules/agents/integrations/platforms/whatsapp/whatsapp-webhook-verification.store.js.map +1 -0
- package/dist/modules/agents/json-config/agent-document.d.ts +1 -0
- package/dist/modules/agents/json-config/agent-document.js +5 -0
- package/dist/modules/agents/json-config/agent-document.js.map +1 -1
- package/dist/modules/agents/json-config/credential-field-mapping.js +11 -2
- package/dist/modules/agents/json-config/credential-field-mapping.js.map +1 -1
- package/dist/modules/agents/json-config/from-json-config.js +5 -6
- package/dist/modules/agents/json-config/from-json-config.js.map +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.d.ts +1 -1
- package/dist/modules/agents/json-config/mcp-client-factory.js +16 -69
- package/dist/modules/agents/json-config/mcp-client-factory.js.map +1 -1
- package/dist/modules/agents/json-config/model-config.js.map +1 -1
- package/dist/modules/agents/json-config/prune-missing-config-references.d.ts +1 -1
- package/dist/modules/agents/json-config/prune-missing-config-references.js +0 -4
- package/dist/modules/agents/json-config/prune-missing-config-references.js.map +1 -1
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.d.ts +4 -0
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js +31 -4
- package/dist/modules/agents/json-config/reconcile-node-tool-gateway-credentials.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan-tools.d.ts +50 -1
- package/dist/modules/agents/plans/agent-plan-tools.js +122 -9
- package/dist/modules/agents/plans/agent-plan-tools.js.map +1 -1
- package/dist/modules/agents/plans/agent-plan-work-state.d.ts +36 -0
- package/dist/modules/agents/plans/agent-plan-work-state.js +13 -0
- package/dist/modules/agents/plans/agent-plan-work-state.js.map +1 -0
- package/dist/modules/agents/plans/agent-plan.validation.d.ts +2 -1
- package/dist/modules/agents/plans/agent-plan.validation.js +6 -4
- package/dist/modules/agents/plans/agent-plan.validation.js.map +1 -1
- package/dist/modules/agents/register-favorite-resolver.js +1 -1
- package/dist/modules/agents/register-favorite-resolver.js.map +1 -1
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.d.ts +4 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js +7 -0
- package/dist/modules/agents/repositories/agent-chat-attachment.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +16 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +63 -0
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.js +1 -1
- package/dist/modules/agents/repositories/agent-history.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-message-queue.repository.d.ts +4 -0
- package/dist/modules/agents/repositories/agent-message-queue.repository.js +6 -1
- package/dist/modules/agents/repositories/agent-message-queue.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-thread-grant.repository.d.ts +1 -0
- package/dist/modules/agents/repositories/agent-thread-grant.repository.js +3 -0
- package/dist/modules/agents/repositories/agent-thread-grant.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-workflow-dependency.repository.js +1 -1
- package/dist/modules/agents/repositories/agent-workflow-dependency.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +22 -14
- package/dist/modules/agents/repositories/agent.repository.js +159 -40
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/repositories/skill.repository.d.ts +98 -0
- package/dist/modules/agents/repositories/skill.repository.js +569 -0
- package/dist/modules/agents/repositories/skill.repository.js.map +1 -0
- package/dist/modules/agents/scheduling/agent-task-job-registrar.js.map +1 -1
- package/dist/modules/agents/skills/skill-content-hash.d.ts +13 -0
- package/dist/modules/agents/skills/skill-content-hash.js +31 -0
- package/dist/modules/agents/skills/skill-content-hash.js.map +1 -0
- package/dist/modules/agents/skills/skill-name-taken.error.d.ts +6 -0
- package/dist/modules/agents/skills/skill-name-taken.error.js +18 -0
- package/dist/modules/agents/skills/skill-name-taken.error.js.map +1 -0
- package/dist/modules/agents/skills/skill-names.d.ts +3 -0
- package/dist/modules/agents/skills/skill-names.js +32 -0
- package/dist/modules/agents/skills/skill-names.js.map +1 -0
- package/dist/modules/agents/skills/skill.service.d.ts +82 -0
- package/dist/modules/agents/skills/skill.service.js +368 -0
- package/dist/modules/agents/skills/skill.service.js.map +1 -0
- package/dist/modules/agents/skills/skills-api.service.d.ts +28 -0
- package/dist/modules/agents/skills/skills-api.service.js +249 -0
- package/dist/modules/agents/skills/skills-api.service.js.map +1 -0
- package/dist/modules/agents/skills/skills-hub-rollout.d.ts +10 -0
- package/dist/modules/agents/skills/skills-hub-rollout.js +35 -0
- package/dist/modules/agents/skills/skills-hub-rollout.js.map +1 -0
- package/dist/modules/agents/skills/skills-hub-startup-copy.d.ts +40 -0
- package/dist/modules/agents/skills/skills-hub-startup-copy.js +402 -0
- package/dist/modules/agents/skills/skills-hub-startup-copy.js.map +1 -0
- package/dist/modules/agents/skills/skills-telemetry.d.ts +21 -0
- package/dist/modules/agents/skills/skills-telemetry.js +98 -0
- package/dist/modules/agents/skills/skills-telemetry.js.map +1 -0
- package/dist/modules/agents/skills.controller.d.ts +19 -0
- package/dist/modules/agents/skills.controller.js +106 -0
- package/dist/modules/agents/skills.controller.js.map +1 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js +6 -0
- package/dist/modules/agents/sub-agents/delegate-sub-agent-tool.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-runner.d.ts +2 -1
- package/dist/modules/agents/sub-agents/sub-agent-runner.js +23 -4
- package/dist/modules/agents/sub-agents/sub-agent-runner.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js +9 -6
- package/dist/modules/agents/sub-agents/sub-agent-source-resolver.js.map +1 -1
- package/dist/modules/agents/tools/node-tool-factory.js +4 -0
- package/dist/modules/agents/tools/node-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/policy-refusal.d.ts +8 -0
- package/dist/modules/agents/tools/policy-refusal.js +9 -0
- package/dist/modules/agents/tools/policy-refusal.js.map +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +1 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js +106 -52
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.d.ts +1 -1
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js +2 -2
- package/dist/modules/agents/tools/workflow-tool-workflow-loader.service.js.map +1 -1
- package/dist/modules/agents/types/agent-queued-message.d.ts +4 -1
- package/dist/modules/agents/types/agent-queued-message.js +1 -1
- package/dist/modules/agents/types/agent-queued-message.js.map +1 -1
- package/dist/modules/agents/utils/agent-definition.d.ts +15 -17
- package/dist/modules/agents/utils/agent-definition.js +2 -2
- package/dist/modules/agents/utils/agent-definition.js.map +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +2 -0
- package/dist/modules/agents/utils/agent-memory-scope.js +12 -0
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/agent-missing-skill-ids.js +0 -2
- package/dist/modules/agents/utils/agent-missing-skill-ids.js.map +1 -1
- package/dist/modules/agents/utils/agent-published-snapshot.d.ts +6 -4
- package/dist/modules/agents/utils/agent-published-snapshot.js +2 -3
- package/dist/modules/agents/utils/agent-published-snapshot.js.map +1 -1
- package/dist/modules/agents/utils/agent-runtime-assets.d.ts +3 -2
- package/dist/modules/agents/utils/agent-runtime-assets.js +2 -2
- package/dist/modules/agents/utils/agent-runtime-assets.js.map +1 -1
- package/dist/modules/agents/utils/agent-thread-access.d.ts +3 -1
- package/dist/modules/agents/utils/agent-thread-access.js +16 -4
- package/dist/modules/agents/utils/agent-thread-access.js.map +1 -1
- package/dist/modules/agents/utils/get-agent-or-throw.d.ts +2 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.d.ts +5 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.js +16 -2
- package/dist/modules/breaking-changes/breaking-changes.controller.js.map +1 -1
- package/dist/modules/breaking-changes/breaking-changes.module.d.ts +1 -1
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.d.ts +6 -6
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js +31 -21
- package/dist/modules/breaking-changes/database/repositories/migration-finding.repository.js.map +1 -1
- package/dist/modules/breaking-changes/migrations/index.js +2 -2
- package/dist/modules/breaking-changes/migrations/index.js.map +1 -1
- package/dist/modules/breaking-changes/migrations/node-migration.d.ts +1 -0
- package/dist/modules/breaking-changes/migrations/node-migration.js +17 -0
- package/dist/modules/breaking-changes/migrations/node-migration.js.map +1 -1
- package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ai-transform-to-code.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.d.ts +3 -0
- package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js +79 -0
- package/dist/modules/breaking-changes/migrations/node-removals/document-loaders.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js +40 -0
- package/dist/modules/breaking-changes/migrations/node-removals/html-extract-to-html.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js +17 -0
- package/dist/modules/breaking-changes/migrations/node-removals/ical-to-convert-to-file.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.js +32 -0
- package/dist/modules/breaking-changes/migrations/node-removals/index.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.d.ts +4 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js +46 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-checks.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.d.ts +10 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js +252 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists-legacy.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js +85 -0
- package/dist/modules/breaking-changes/migrations/node-removals/item-lists.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js +28 -0
- package/dist/modules/breaking-changes/migrations/node-removals/read-pdf-to-extract-from-file.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js +91 -0
- package/dist/modules/breaking-changes/migrations/node-removals/schedule-trigger.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.d.ts +7 -0
- package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js +133 -0
- package/dist/modules/breaking-changes/migrations/node-removals/vector-stores.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js +26 -0
- package/dist/modules/breaking-changes/migrations/node-removals/workflow-trigger-to-n8n-trigger.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.d.ts +2 -0
- package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js +27 -0
- package/dist/modules/breaking-changes/migrations/node-removals/write-binary-file-to-read-write-file.migration.js.map +1 -0
- package/dist/modules/breaking-changes/migrations/parameter-readers.d.ts +10 -0
- package/dist/modules/breaking-changes/migrations/parameter-readers.js +51 -0
- package/dist/modules/breaking-changes/migrations/parameter-readers.js.map +1 -0
- package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.d.ts +20 -0
- package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js +136 -0
- package/dist/modules/breaking-changes/notifications/migration-finding-notification.service.js.map +1 -0
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js +3 -2
- package/dist/modules/breaking-changes/query/migration-finding-query.service.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js +2 -2
- package/dist/modules/breaking-changes/sync/migration-finding-diff.js.map +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js +1 -1
- package/dist/modules/breaking-changes/sync/migration-finding-sync.service.js.map +1 -1
- package/dist/modules/chat-hub/chat-hub-extractor.d.ts +1 -1
- package/dist/modules/chat-hub/chat-hub-extractor.js +2 -2
- package/dist/modules/chat-hub/chat-hub-extractor.js.map +1 -1
- package/dist/modules/data-table/data-table-file-cleanup.task.d.ts +2 -3
- package/dist/modules/data-table/data-table-file-cleanup.task.js +1 -5
- package/dist/modules/data-table/data-table-file-cleanup.task.js.map +1 -1
- package/dist/modules/data-table/data-table-permissions.d.ts +2 -0
- package/dist/modules/data-table/data-table-permissions.js +6 -0
- package/dist/modules/data-table/data-table-permissions.js.map +1 -1
- package/dist/modules/data-table/data-table-proxy.service.d.ts +0 -1
- package/dist/modules/data-table/data-table-proxy.service.js +8 -17
- package/dist/modules/data-table/data-table-proxy.service.js.map +1 -1
- package/dist/modules/data-table/data-table.controller.d.ts +0 -1
- package/dist/modules/data-table/data-table.controller.js +7 -17
- package/dist/modules/data-table/data-table.controller.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js +1 -1
- package/dist/modules/dynamic-credentials.ee/dynamic-credentials.module.js.map +1 -1
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.d.ts +2 -3
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js +1 -5
- package/dist/modules/external-secrets.ee/external-secrets-refresh.task.js.map +1 -1
- package/dist/modules/inbound-auth-core/authentication-pipeline.js +7 -0
- package/dist/modules/inbound-auth-core/authentication-pipeline.js.map +1 -1
- package/dist/modules/inbound-auth-core/constants.d.ts +42 -0
- package/dist/modules/inbound-auth-core/constants.js +24 -0
- package/dist/modules/inbound-auth-core/constants.js.map +1 -0
- package/dist/modules/inbound-auth-core/grant-authorization.d.ts +2 -2
- package/dist/modules/inbound-auth-core/grant-authorization.js.map +1 -1
- package/dist/modules/inbound-auth-core/identity/trusted-source-identity.service.d.ts +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/inbound-auth-core.module.d.ts +3 -0
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js +32 -10
- package/dist/modules/inbound-auth-core/inbound-auth-core.module.js.map +1 -1
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.d.ts +15 -0
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js +47 -0
- package/dist/modules/inbound-auth-core/local-authorization-server.proxy.js.map +1 -0
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.d.ts +3 -2
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js +7 -2
- package/dist/modules/inbound-auth-core/oauth2-bearer.driver.js.map +1 -1
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.d.ts +16 -0
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js +71 -0
- package/dist/modules/inbound-auth-core/public-api-oauth.strategy.js.map +1 -0
- package/dist/modules/inbound-auth-core/public-api-protected-resource.d.ts +21 -0
- package/dist/modules/inbound-auth-core/public-api-protected-resource.js +51 -0
- package/dist/modules/inbound-auth-core/public-api-protected-resource.js.map +1 -0
- package/dist/modules/inbound-auth-core/resource-admission.d.ts +12 -0
- package/dist/modules/inbound-auth-core/resource-admission.js +65 -0
- package/dist/modules/inbound-auth-core/resource-admission.js.map +1 -0
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.d.ts +0 -42
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js +7 -26
- package/dist/modules/inbound-auth-core/system-trusted-source.seeder.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source-directory.service.d.ts +7 -0
- package/dist/modules/inbound-auth-core/trusted-source-directory.service.js +32 -0
- package/dist/modules/inbound-auth-core/trusted-source-directory.service.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.d.ts +2 -3
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js +1 -2
- package/dist/modules/inbound-auth-core/trusted-source-discovery.task.js.map +1 -1
- package/dist/modules/inbound-auth-core/trusted-source.controller.d.ts +27 -0
- package/dist/modules/inbound-auth-core/trusted-source.controller.js +190 -0
- package/dist/modules/inbound-auth-core/trusted-source.controller.js.map +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.store.d.ts +1 -0
- package/dist/modules/inbound-auth-core/trusted-source.store.js +6 -3
- package/dist/modules/inbound-auth-core/trusted-source.store.js.map +1 -1
- package/dist/modules/inbox/inbox-source.registry.d.ts +39 -0
- package/dist/modules/inbox/inbox-source.registry.js +64 -0
- package/dist/modules/inbox/inbox-source.registry.js.map +1 -0
- package/dist/modules/inbox/inbox.controller.d.ts +10 -0
- package/dist/modules/{quick-connect/quick-connect.controller.js → inbox/inbox.controller.js} +26 -17
- package/dist/modules/inbox/inbox.controller.js.map +1 -0
- package/dist/modules/inbox/inbox.module.d.ts +4 -0
- package/dist/modules/{workflow-builder/workflow-builder.module.js → inbox/inbox.module.js} +9 -10
- package/dist/modules/inbox/inbox.module.js.map +1 -0
- package/dist/modules/inbox/inbox.service.d.ts +17 -0
- package/dist/modules/inbox/inbox.service.js +184 -0
- package/dist/modules/inbox/inbox.service.js.map +1 -0
- package/dist/modules/instance-ai/agent-preview-handoff.js +1 -1
- package/dist/modules/instance-ai/agent-preview-handoff.js.map +1 -1
- package/dist/modules/instance-ai/agents-access.d.ts +2 -0
- package/dist/modules/instance-ai/agents-access.js +9 -0
- package/dist/modules/instance-ai/agents-access.js.map +1 -0
- package/dist/modules/instance-ai/conversation-history-content.d.ts +3 -2
- package/dist/modules/instance-ai/conversation-history-content.js +8 -2
- package/dist/modules/instance-ai/conversation-history-content.js.map +1 -1
- package/dist/modules/instance-ai/eval/agent-execution.service.js +14 -7
- package/dist/modules/instance-ai/eval/agent-execution.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-handler.js +11 -10
- package/dist/modules/instance-ai/eval/mock-handler.js.map +1 -1
- package/dist/modules/instance-ai/eval/mock-utils.js +2 -0
- package/dist/modules/instance-ai/eval/mock-utils.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.d.ts +8 -0
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js +10 -0
- package/dist/modules/instance-ai/eval/thread-credential-allowlist.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js +1 -1
- package/dist/modules/instance-ai/eval/thread-restore.service.js.map +1 -1
- package/dist/modules/instance-ai/eval/workflow-analysis.js +6 -6
- package/dist/modules/instance-ai/eval/workflow-analysis.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +1 -0
- package/dist/modules/instance-ai/event-bus/durable-event-log.js +65 -7
- package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.d.ts +2 -5
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js +10 -8
- package/dist/modules/instance-ai/instance-ai-checkpoint-pruning.task.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-conversation-history.service.js +1 -1
- package/dist/modules/instance-ai/instance-ai-conversation-history.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-credit.service.d.ts +1 -11
- package/dist/modules/instance-ai/instance-ai-credit.service.js +9 -52
- package/dist/modules/instance-ai/instance-ai-credit.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-model.service.d.ts +9 -2
- package/dist/modules/instance-ai/instance-ai-model.service.js +35 -6
- package/dist/modules/instance-ai/instance-ai-model.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.d.ts +2 -0
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js +2 -1
- package/dist/modules/instance-ai/instance-ai-pending-agent.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-run-pin-data.js +1 -1
- package/dist/modules/instance-ai/instance-ai-run-pin-data.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-settings.service.d.ts +1 -2
- package/dist/modules/instance-ai/instance-ai-settings.service.js +5 -18
- package/dist/modules/instance-ai/instance-ai-settings.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-skills.service.d.ts +26 -0
- package/dist/modules/instance-ai/instance-ai-skills.service.js +63 -0
- package/dist/modules/instance-ai/instance-ai-skills.service.js.map +1 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +17 -15
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +13 -15
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.controller.d.ts +7 -1
- package/dist/modules/instance-ai/instance-ai.controller.js +19 -0
- package/dist/modules/instance-ai/instance-ai.controller.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.d.ts +1 -2
- package/dist/modules/instance-ai/instance-ai.module.js +9 -1
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +3 -3
- package/dist/modules/instance-ai/instance-ai.service.js +52 -73
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-context.service.js +3 -3
- package/dist/modules/instance-ai/instance-context.service.js.map +1 -1
- package/dist/modules/instance-ai/internal-messages.js +5 -5
- package/dist/modules/instance-ai/internal-messages.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +2 -5
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +8 -26
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
- package/dist/modules/instance-ai/model-config-name.d.ts +5 -0
- package/dist/modules/instance-ai/model-config-name.js +25 -0
- package/dist/modules/instance-ai/model-config-name.js.map +1 -0
- package/dist/modules/instance-ai/onboarding.d.ts +0 -2
- package/dist/modules/instance-ai/onboarding.js +1 -14
- package/dist/modules/instance-ai/onboarding.js.map +1 -1
- package/dist/modules/instance-ai/repositories/conversation-history-search.d.ts +5 -1
- package/dist/modules/instance-ai/repositories/conversation-history-search.js +10 -5
- package/dist/modules/instance-ai/repositories/conversation-history-search.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js +2 -2
- package/dist/modules/instance-ai/repositories/instance-ai-conversation-history.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +1 -0
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +11 -0
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.d.ts +0 -1
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.js +0 -10
- package/dist/modules/instance-ai/repositories/instance-ai-message.repository.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 +4 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.d.ts +42 -2
- package/dist/modules/instance-ai/self-healing/database/self-healing-result.repository.js +63 -2
- 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-result.service.d.ts +10 -3
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js +30 -2
- package/dist/modules/instance-ai/self-healing/self-healing-result.service.js.map +1 -1
- package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.d.ts +2 -4
- package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js +4 -7
- package/dist/modules/instance-registry/checks/instance-registry-reconciliation.task.js.map +1 -1
- package/dist/modules/instance-registry/instance-registry-heartbeat.task.d.ts +2 -3
- package/dist/modules/instance-registry/instance-registry-heartbeat.task.js +1 -5
- package/dist/modules/instance-registry/instance-registry-heartbeat.task.js.map +1 -1
- package/dist/modules/instance-registry/instance-registry.module.js +1 -1
- package/dist/modules/instance-registry/instance-registry.module.js.map +1 -1
- package/dist/modules/instance-registry/stale-member-cleanup.task.d.ts +2 -3
- package/dist/modules/instance-registry/stale-member-cleanup.task.js +1 -2
- package/dist/modules/instance-registry/stale-member-cleanup.task.js.map +1 -1
- package/dist/modules/instance-reporting.ee/instance-reporting.task.d.ts +2 -4
- package/dist/modules/instance-reporting.ee/instance-reporting.task.js +4 -7
- package/dist/modules/instance-reporting.ee/instance-reporting.task.js.map +1 -1
- package/dist/modules/log-streaming.ee/log-streaming.controller.js +12 -1
- package/dist/modules/log-streaming.ee/log-streaming.controller.js.map +1 -1
- package/dist/modules/mcp/mcp-api-key.service.d.ts +2 -3
- package/dist/modules/mcp/mcp-api-key.service.js +3 -3
- package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
- package/dist/modules/mcp/mcp-protected-resource.d.ts +2 -2
- package/dist/modules/mcp/mcp-protected-resource.js +5 -3
- package/dist/modules/mcp/mcp-protected-resource.js.map +1 -1
- package/dist/modules/mcp/mcp-scopes.d.ts +1 -0
- package/dist/modules/mcp/mcp-scopes.js +7 -1
- package/dist/modules/mcp/mcp-scopes.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.d.ts +2 -2
- package/dist/modules/mcp/mcp-server-middleware.service.js +3 -3
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp-tool-availability.d.ts +1 -0
- package/dist/modules/mcp/mcp-tool-availability.js +4 -0
- package/dist/modules/mcp/mcp-tool-availability.js.map +1 -1
- package/dist/modules/mcp/mcp.module.js +1 -1
- package/dist/modules/mcp/mcp.module.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +1 -3
- package/dist/modules/mcp/mcp.service.js +5 -3
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +12 -8
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-slack-setup.d.ts +5 -5
- package/dist/modules/mcp/tools/agents/agent-slack-setup.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +24 -9
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/get-execution.tool.d.ts +1 -1
- package/dist/modules/mcp/tools/skills/skill-tools.service.d.ts +11 -0
- package/dist/modules/mcp/tools/skills/skill-tools.service.js +242 -0
- package/dist/modules/mcp/tools/skills/skill-tools.service.js.map +1 -0
- package/dist/modules/mcp/tools/tool-result.utils.d.ts +8 -0
- package/dist/modules/mcp/tools/tool-result.utils.js +11 -0
- package/dist/modules/mcp/tools/tool-result.utils.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-auth-fetch.d.ts +15 -0
- package/dist/modules/mcp-registry/mcp-auth-fetch.js +64 -0
- package/dist/modules/mcp-registry/mcp-auth-fetch.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.d.ts +23 -0
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.js +219 -0
- package/dist/modules/mcp-registry/mcp-connection-discovery.service.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry-refresh.task.d.ts +2 -3
- package/dist/modules/mcp-registry/mcp-registry-refresh.task.js +4 -6
- package/dist/modules/mcp-registry/mcp-registry-refresh.task.js.map +1 -1
- package/dist/modules/mcp-registry/mcp-registry-response.d.ts +3 -0
- package/dist/modules/mcp-registry/mcp-registry-response.js +35 -0
- package/dist/modules/mcp-registry/mcp-registry-response.js.map +1 -0
- package/dist/modules/mcp-registry/mcp-registry.controller.d.ts +6 -2
- package/dist/modules/mcp-registry/mcp-registry.controller.js +25 -28
- package/dist/modules/mcp-registry/mcp-registry.controller.js.map +1 -1
- package/dist/modules/mcp-registry/registry/mock-servers.js +3 -3
- package/dist/modules/mcp-registry/registry/mock-servers.js.map +1 -1
- package/dist/modules/modules.manifest.js +2 -0
- package/dist/modules/modules.manifest.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-blocked.error.js +1 -0
- package/dist/modules/n8n-packages/engine/import-blocked.error.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-gates.d.ts +6 -0
- package/dist/modules/n8n-packages/engine/import-gates.js +8 -0
- package/dist/modules/n8n-packages/engine/import-gates.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +20 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js +3 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +3 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +38 -0
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/package-layout.d.ts +10 -2
- package/dist/modules/n8n-packages/engine/package-layout.js +26 -0
- package/dist/modules/n8n-packages/engine/package-layout.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.js +29 -4
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +19 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js +6 -0
- package/dist/modules/n8n-packages/entities/agent/agent.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/agent/agent.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.d.ts +20 -0
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js +98 -0
- package/dist/modules/n8n-packages/entities/credential/credential-conflict-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +16 -2
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-importer.d.ts +7 -3
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js +95 -5
- package/dist/modules/n8n-packages/entities/credential/credential-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.d.ts +3 -1
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js +14 -4
- package/dist/modules/n8n-packages/entities/credential/credential-missing-mode.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +13 -2
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.d.ts +2 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js +2 -1
- package/dist/modules/n8n-packages/entities/credential/credential.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential.types.d.ts +39 -3
- package/dist/modules/n8n-packages/entities/credential/credential.types.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-publishing-policy.types.d.ts +1 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +2 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +16 -2
- package/dist/modules/n8n-packages/n8n-packages.types.js +6 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/agent.schema.d.ts +133 -164
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +3 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +1 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.d.ts +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-decrypt.service.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe-jwks.provider.d.ts +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.module.d.ts +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.module.js +4 -5
- package/dist/modules/oauth-jwe/oauth-jwe.module.js.map +1 -1
- package/dist/modules/oauth-jwe/oauth-jwe.schemas.js +3 -3
- package/dist/modules/oauth-jwe/oauth-jwe.schemas.js.map +1 -1
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.d.ts +1 -0
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js +3 -0
- package/dist/modules/oauth-server/database/repositories/oauth-access-token.repository.js.map +1 -1
- package/dist/modules/oauth-server/dto/approve-consent-request.dto.d.ts +3 -1
- package/dist/modules/oauth-server/dto/approve-consent-request.dto.js +8 -1
- package/dist/modules/oauth-server/dto/approve-consent-request.dto.js.map +1 -1
- package/dist/modules/oauth-server/oauth-consent.controller.d.ts +5 -1
- package/dist/modules/oauth-server/oauth-consent.controller.js +15 -14
- package/dist/modules/oauth-server/oauth-consent.controller.js.map +1 -1
- package/dist/modules/oauth-server/oauth-consent.service.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-consent.service.js +2 -2
- package/dist/modules/oauth-server/oauth-consent.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-flow.service.d.ts +23 -9
- package/dist/modules/oauth-server/oauth-flow.service.js +279 -43
- package/dist/modules/oauth-server/oauth-flow.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-local-authorization-server.d.ts +5 -2
- package/dist/modules/oauth-server/oauth-local-authorization-server.js +8 -3
- package/dist/modules/oauth-server/oauth-local-authorization-server.js.map +1 -1
- package/dist/modules/oauth-server/oauth-server.module.js +6 -6
- package/dist/modules/oauth-server/oauth-server.module.js.map +1 -1
- package/dist/modules/oauth-server/oauth-server.service.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-server.service.js +8 -6
- package/dist/modules/oauth-server/oauth-server.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-session.service.d.ts +13 -7
- package/dist/modules/oauth-server/oauth-session.service.js +48 -13
- package/dist/modules/oauth-server/oauth-session.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-jwks.provider.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.schemas.js +2 -2
- package/dist/modules/oauth-server/oauth-signing-key.schemas.js.map +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.service.d.ts +1 -1
- package/dist/modules/oauth-server/oauth-signing-key.service.js +2 -2
- package/dist/modules/oauth-server/oauth-signing-key.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.d.ts +2 -4
- package/dist/modules/oauth-server/oauth-token.service.js +2 -3
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/oauth.controller.d.ts +4 -2
- package/dist/modules/oauth-server/oauth.controller.js +41 -8
- package/dist/modules/oauth-server/oauth.controller.js.map +1 -1
- package/dist/modules/oauth-server/oauth.helpers.d.ts +1 -0
- package/dist/modules/oauth-server/oauth.helpers.js +14 -0
- package/dist/modules/oauth-server/oauth.helpers.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.d.ts +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/chat-trigger-resource.base.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.d.ts +7 -5
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.d.ts +7 -5
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/index.js +9 -9
- package/dist/modules/oauth-server/protected-resource-resolvers/index.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.d.ts +1 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js +8 -0
- package/dist/modules/oauth-server/protected-resource-resolvers/utils.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.d.ts +3 -3
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.d.ts +3 -3
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-mcp-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.d.ts +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-test-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.d.ts +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/workflow-webhook-trigger-resource.resolver.js.map +1 -1
- package/dist/modules/oauth-server/resource-gate.d.ts +1 -1
- package/dist/modules/oauth-server/resource-gate.js.map +1 -1
- package/dist/modules/oauth-server/resource-identity.d.ts +1 -1
- package/dist/modules/promotions.ee/constants.d.ts +1 -1
- package/dist/modules/promotions.ee/constants.js +1 -1
- package/dist/modules/promotions.ee/constants.js.map +1 -1
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.d.ts +3 -2
- package/dist/modules/promotions.ee/database/entities/promotion-connection.entity.js.map +1 -1
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.d.ts +21 -0
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js +95 -0
- package/dist/modules/promotions.ee/database/entities/promotion-review.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.d.ts +18 -0
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js +82 -0
- package/dist/modules/promotions.ee/database/entities/promotion-run.entity.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.d.ts +2 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js +6 -2
- package/dist/modules/promotions.ee/database/repositories/promotion-connection.repository.js.map +1 -1
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.d.ts +18 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js +61 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-review.repository.js.map +1 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.d.ts +9 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js +33 -0
- package/dist/modules/promotions.ee/database/repositories/promotion-run.repository.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-target.d.ts +30 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-target.js +97 -0
- package/dist/modules/promotions.ee/git-hosts/git-host-target.js.map +1 -0
- package/dist/modules/promotions.ee/git-hosts/git-host.types.d.ts +12 -0
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.d.ts +4 -1
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js +73 -6
- package/dist/modules/promotions.ee/git-hosts/gitlab-host.client.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.d.ts +1 -0
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js +12 -0
- package/dist/modules/promotions.ee/promotion-binding-preflight.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-config.resolver.js +3 -5
- package/dist/modules/promotions.ee/promotion-config.resolver.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-connections.service.d.ts +1 -0
- package/dist/modules/promotions.ee/promotion-connections.service.js +39 -12
- package/dist/modules/promotions.ee/promotion-connections.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotion-providers.service.d.ts +13 -0
- package/dist/modules/promotions.ee/promotion-providers.service.js +28 -0
- package/dist/modules/promotions.ee/promotion-providers.service.js.map +1 -1
- package/dist/modules/promotions.ee/promotions-git.service.d.ts +3 -0
- package/dist/modules/promotions.ee/promotions-git.service.js +30 -4
- 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 +10 -1
- package/dist/modules/promotions.ee/promotions.module.js.map +1 -1
- package/dist/modules/promotions.ee/promotions.service.d.ts +0 -1
- package/dist/modules/promotions.ee/promotions.service.js +45 -19
- package/dist/modules/promotions.ee/promotions.service.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js +1 -1
- package/dist/modules/provisioning.ee/provisioning.module.js.map +1 -1
- package/dist/modules/provisioning.ee/provisioning.service.ee.d.ts +1 -0
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +14 -2
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-provider.ee.d.ts +1 -1
- package/dist/modules/provisioning.ee/role-resolver-types.d.ts +1 -1
- package/dist/modules/redaction/dynamic-credentials-context-hook.d.ts +1 -1
- package/dist/modules/redaction/dynamic-credentials-context-hook.js +2 -2
- package/dist/modules/redaction/dynamic-credentials-context-hook.js.map +1 -1
- package/dist/modules/redaction/executions/execution-redaction.interfaces.d.ts +3 -1
- package/dist/modules/redaction/executions/execution-redaction.service.d.ts +4 -2
- package/dist/modules/redaction/executions/execution-redaction.service.js +35 -11
- package/dist/modules/redaction/executions/execution-redaction.service.js.map +1 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.d.ts +1 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js +6 -1
- package/dist/modules/redaction/executions/strategies/full-item-redaction.strategy.js.map +1 -1
- package/dist/modules/redaction/executions/strategies/node-defined-field-redaction.strategy.d.ts +1 -1
- package/dist/modules/redaction/redaction.module.js +2 -2
- package/dist/modules/redaction/redaction.module.js.map +1 -1
- package/dist/modules/runtime-credentials/runtime-credentials-access.service.d.ts +1 -1
- package/dist/modules/runtime-credentials/runtime-credentials.module.js +2 -2
- package/dist/modules/runtime-credentials/runtime-credentials.module.js.map +1 -1
- package/dist/modules/scim/database/scim-api-key.repository.js +2 -2
- package/dist/modules/scim/database/scim-api-key.repository.js.map +1 -1
- package/dist/modules/scim/database/scim-user.repository.d.ts +23 -0
- package/dist/modules/scim/database/scim-user.repository.js +53 -0
- package/dist/modules/scim/database/scim-user.repository.js.map +1 -0
- package/dist/modules/scim/scim-body-parser.d.ts +2 -0
- package/dist/modules/scim/scim-body-parser.js +19 -0
- package/dist/modules/scim/scim-body-parser.js.map +1 -0
- package/dist/modules/scim/scim-discovery.controller.js +84 -7
- package/dist/modules/scim/scim-discovery.controller.js.map +1 -1
- package/dist/modules/scim/scim-route.js +2 -1
- package/dist/modules/scim/scim-route.js.map +1 -1
- package/dist/modules/scim/scim-token.service.d.ts +1 -2
- package/dist/modules/scim/scim-token.service.js +1 -2
- package/dist/modules/scim/scim-token.service.js.map +1 -1
- package/dist/modules/scim/scim.controller.d.ts +19 -0
- package/dist/modules/scim/scim.controller.js +163 -0
- package/dist/modules/scim/scim.controller.js.map +1 -0
- package/dist/modules/scim/scim.errors.d.ts +13 -0
- package/dist/modules/scim/scim.errors.js +29 -0
- package/dist/modules/scim/scim.errors.js.map +1 -0
- package/dist/modules/scim/scim.module.js +1 -0
- package/dist/modules/scim/scim.module.js.map +1 -1
- package/dist/modules/scim/scim.service.d.ts +38 -0
- package/dist/modules/scim/scim.service.js +329 -0
- package/dist/modules/scim/scim.service.js.map +1 -0
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +2 -0
- 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 +6 -51
- 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 +3 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +59 -13
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +4 -0
- package/dist/modules/source-control.ee/source-control.service.ee.d.ts +2 -0
- package/dist/modules/source-control.ee/source-control.service.ee.js +6 -1
- package/dist/modules/source-control.ee/source-control.service.ee.js.map +1 -1
- package/dist/modules/sso-oidc/oidc.service.ee.d.ts +1 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js +1 -2
- package/dist/modules/sso-oidc/oidc.service.ee.js.map +1 -1
- package/dist/modules/token-exchange/services/jti-cleanup.task.d.ts +2 -3
- package/dist/modules/token-exchange/services/jti-cleanup.task.js +1 -2
- package/dist/modules/token-exchange/services/jti-cleanup.task.js.map +1 -1
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.d.ts +2 -2
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.js +2 -2
- package/dist/modules/token-exchange/services/scoped-jwt.strategy.js.map +1 -1
- package/dist/modules/token-exchange/services/token-exchange.service.d.ts +1 -1
- package/dist/modules/token-exchange/services/token-exchange.service.js +2 -2
- package/dist/modules/token-exchange/services/token-exchange.service.js.map +1 -1
- package/dist/modules/token-exchange/services/trusted-key-refresh.task.d.ts +2 -3
- package/dist/modules/token-exchange/services/trusted-key-refresh.task.js +1 -2
- package/dist/modules/token-exchange/services/trusted-key-refresh.task.js.map +1 -1
- package/dist/modules/token-exchange/token-exchange.module.js +1 -1
- package/dist/modules/token-exchange/token-exchange.module.js.map +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.d.ts +5 -7
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js +13 -1
- package/dist/modules/type-availability-policies/credential-type-policy-instance.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy-project.controller.d.ts +1 -1
- package/dist/modules/type-availability-policies/credential-type-policy.check.js +3 -14
- package/dist/modules/type-availability-policies/credential-type-policy.check.js.map +1 -1
- package/dist/modules/type-availability-policies/node-type-policy.check.js +2 -13
- package/dist/modules/type-availability-policies/node-type-policy.check.js.map +1 -1
- package/dist/modules/type-availability-policies/package-resolver.d.ts +2 -0
- package/dist/modules/type-availability-policies/package-resolver.js +17 -0
- package/dist/modules/type-availability-policies/package-resolver.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-rule-lint.d.ts +14 -0
- package/dist/modules/type-availability-policies/policy-rule-lint.js +19 -0
- package/dist/modules/type-availability-policies/policy-rule-lint.js.map +1 -0
- package/dist/modules/type-availability-policies/policy-shadow-lint.d.ts +1 -0
- package/dist/modules/type-availability-policies/policy-shadow-lint.js +1 -1
- package/dist/modules/type-availability-policies/policy-shadow-lint.js.map +1 -1
- package/dist/modules/type-availability-policies/restricted-node-types.provider.d.ts +1 -1
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +2 -2
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.d.ts +5 -7
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js +13 -1
- package/dist/modules/type-availability-policies/type-availability-policy-instance.controller.js.map +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy-project.controller.d.ts +1 -1
- package/dist/modules/type-availability-policies/type-availability-policy.service.d.ts +10 -7
- package/dist/modules/type-availability-policies/type-availability-policy.service.js +39 -36
- package/dist/modules/type-availability-policies/type-availability-policy.service.js.map +1 -1
- package/dist/modules/type-availability-policies/type-violation.d.ts +10 -0
- package/dist/modules/type-availability-policies/type-violation.js +29 -0
- package/dist/modules/type-availability-policies/type-violation.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +5 -5
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +12 -32
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.d.ts +1 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-publish-guard.service.d.ts +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.d.ts +1 -3
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js +0 -21
- package/dist/modules/workflow-reviews.ee/workflow-review-requests.controller.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +12 -4
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
- package/dist/node-execution/ephemeral-node-executor.d.ts +2 -0
- package/dist/node-execution/ephemeral-node-executor.js +21 -6
- package/dist/node-execution/ephemeral-node-executor.js.map +1 -1
- package/dist/oauth/oauth.service.d.ts +3 -1
- package/dist/oauth/oauth.service.js +30 -3
- package/dist/oauth/oauth.service.js.map +1 -1
- package/dist/output-schema-parameter-defaults.d.ts +7 -0
- package/dist/output-schema-parameter-defaults.js +23 -0
- package/dist/output-schema-parameter-defaults.js.map +1 -0
- package/dist/policy/policy-violation.error.d.ts +1 -0
- package/dist/policy/policy-violation.error.js +12 -0
- package/dist/policy/policy-violation.error.js.map +1 -1
- package/dist/public-api/idempotency-key-cleanup.task.d.ts +2 -3
- package/dist/public-api/idempotency-key-cleanup.task.js +6 -6
- package/dist/public-api/idempotency-key-cleanup.task.js.map +1 -1
- package/dist/public-api/idempotency-key.service.d.ts +9 -1
- package/dist/public-api/idempotency-key.service.js +41 -0
- package/dist/public-api/idempotency-key.service.js.map +1 -1
- package/dist/public-api/index.js +14 -138
- package/dist/public-api/index.js.map +1 -1
- package/dist/public-api/media-types/request-body/multipart-parser.js.map +1 -1
- package/dist/public-api/public-api-controller.registry.d.ts +12 -2
- package/dist/public-api/public-api-controller.registry.js +98 -12
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-rate-limit.service.d.ts +17 -0
- package/dist/public-api/public-api-rate-limit.service.js +127 -0
- package/dist/public-api/public-api-rate-limit.service.js.map +1 -0
- package/dist/public-api/public-api-route-resolver.d.ts +0 -3
- package/dist/public-api/public-api-route-resolver.js +0 -19
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/types.d.ts +1 -66
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.d.ts +1 -0
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js +54 -29
- package/dist/public-api/v1/controllers/credential-type-policies.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/credentials.public.controller.d.ts +3 -1
- package/dist/public-api/v1/controllers/credentials.public.controller.js +22 -3
- package/dist/public-api/v1/controllers/credentials.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/executions.public.controller.d.ts +1 -2
- package/dist/public-api/v1/controllers/executions.public.controller.js +3 -5
- package/dist/public-api/v1/controllers/executions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/log-streaming.mapper.d.ts +3 -3
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.d.ts +3 -1
- package/dist/public-api/v1/controllers/n8n-packages.public.controller.js +95 -2
- 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.d.ts +1 -0
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js +54 -29
- package/dist/public-api/v1/controllers/node-type-policies.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.d.ts +5 -1
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js +29 -2
- package/dist/public-api/v1/controllers/openapi/n8n-packages.openapi.js.map +1 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.d.ts +4 -1
- package/dist/public-api/v1/controllers/promotions.public.controller.js +70 -4
- package/dist/public-api/v1/controllers/promotions.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/source-control.public.controller.d.ts +2 -2
- package/dist/public-api/v1/controllers/source-control.public.controller.js +3 -2
- package/dist/public-api/v1/controllers/source-control.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +2 -2
- package/dist/public-api/v1/controllers/workflows.public.controller.js +13 -2
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/discover/discover.service.js +7 -86
- package/dist/public-api/v1/handlers/discover/discover.service.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +15 -5
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/generate.d.ts +1 -1
- package/dist/public-api/v1/openapi-gen/generate.js +28 -47
- package/dist/public-api/v1/openapi-gen/generate.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +3915 -3646
- package/dist/public-api/v1/public-api-error-response.d.ts +1 -2
- package/dist/public-api/v1/public-api-error-response.js +46 -2
- package/dist/public-api/v1/public-api-error-response.js.map +1 -1
- package/dist/requests.d.ts +6 -1
- package/dist/scaling/job-outcome-tracker.d.ts +7 -6
- package/dist/scaling/job-outcome-tracker.js +59 -38
- package/dist/scaling/job-outcome-tracker.js.map +1 -1
- package/dist/scaling/job-processor.d.ts +3 -0
- package/dist/scaling/job-processor.js +39 -0
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +1 -0
- package/dist/scaling/scaling.service.d.ts +1 -1
- package/dist/scaling/scaling.service.js +8 -5
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/scaling/scaling.types.d.ts +1 -0
- package/dist/scaling/worker-status.service.ee.js +2 -2
- package/dist/scaling/worker-status.service.ee.js.map +1 -1
- package/dist/scheduling/durable-scheduler.js +3 -4
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.d.ts +0 -1
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js +1 -3
- package/dist/scheduling/schedule-trigger-node/schedule-trigger-job-registrar.js.map +1 -1
- package/dist/scheduling/system-tasks/in-memory-system-task-runner.d.ts +1 -0
- package/dist/scheduling/system-tasks/in-memory-system-task-runner.js +2 -2
- package/dist/scheduling/system-tasks/in-memory-system-task-runner.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-job-registrar.d.ts +9 -3
- package/dist/scheduling/system-tasks/system-task-job-registrar.js +16 -5
- package/dist/scheduling/system-tasks/system-task-job-registrar.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-run-observer.js +3 -3
- package/dist/scheduling/system-tasks/system-task-run-observer.js.map +1 -1
- package/dist/scheduling/system-tasks/system-task-runner.d.ts +1 -1
- package/dist/scheduling/system-tasks/system-task-runner.js +21 -21
- package/dist/scheduling/system-tasks/system-task-runner.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/services/active-workflows.service.d.ts +6 -1
- package/dist/services/active-workflows.service.js +22 -8
- package/dist/services/active-workflows.service.js.map +1 -1
- package/dist/services/ai-workflow-builder.service.d.ts +1 -1
- package/dist/services/ai-workflow-builder.service.js +2 -2
- package/dist/services/ai-workflow-builder.service.js.map +1 -1
- package/dist/services/ai.service.d.ts +0 -1
- package/dist/services/ai.service.js +0 -4
- package/dist/services/ai.service.js.map +1 -1
- package/dist/services/api-key-auth.strategy.d.ts +2 -2
- package/dist/services/api-key-auth.strategy.js +4 -4
- package/dist/services/api-key-auth.strategy.js.map +1 -1
- package/dist/services/frontend.service.d.ts +3 -1
- package/dist/services/frontend.service.js +7 -2
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
- package/dist/services/pruning/activity-pruning.task.d.ts +2 -3
- package/dist/services/pruning/activity-pruning.task.js +8 -6
- package/dist/services/pruning/activity-pruning.task.js.map +1 -1
- package/dist/services/pruning/execution-pruning-hard-delete.task.d.ts +2 -5
- package/dist/services/pruning/execution-pruning-hard-delete.task.js +9 -4
- package/dist/services/pruning/execution-pruning-hard-delete.task.js.map +1 -1
- package/dist/services/pruning/execution-pruning-soft-delete.task.d.ts +2 -4
- package/dist/services/pruning/execution-pruning-soft-delete.task.js +6 -3
- package/dist/services/pruning/execution-pruning-soft-delete.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-optimize.task.d.ts +2 -4
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js +6 -3
- package/dist/services/pruning/workflow-history-compaction-optimize.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction-trim.task.d.ts +2 -5
- package/dist/services/pruning/workflow-history-compaction-trim.task.js +7 -4
- package/dist/services/pruning/workflow-history-compaction-trim.task.js.map +1 -1
- package/dist/services/pruning/workflow-history-compaction.service.d.ts +2 -10
- package/dist/services/pruning/workflow-history-compaction.service.js +2 -46
- package/dist/services/pruning/workflow-history-compaction.service.js.map +1 -1
- package/dist/services/pruning/workflow-history-pruning.task.d.ts +2 -4
- package/dist/services/pruning/workflow-history-pruning.task.js +9 -7
- package/dist/services/pruning/workflow-history-pruning.task.js.map +1 -1
- package/dist/services/public-api-key.service.d.ts +1 -1
- package/dist/services/public-api-key.service.js +2 -2
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/services/rate-limit.service.d.ts +5 -0
- package/dist/services/rate-limit.service.js +14 -0
- package/dist/services/rate-limit.service.js.map +1 -1
- package/dist/services/session-cookie-auth.strategy.d.ts +1 -1
- package/dist/services/user.service.d.ts +1 -2
- package/dist/services/user.service.js +1 -2
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/workflow-statistics-rollup.task.d.ts +4 -5
- package/dist/services/workflow-statistics-rollup.task.js +9 -10
- package/dist/services/workflow-statistics-rollup.task.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +0 -1
- package/dist/services/workflow-statistics.service.js +0 -5
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/telemetry/telemetry-buffer-flush.task.d.ts +2 -3
- package/dist/telemetry/telemetry-buffer-flush.task.js +1 -5
- package/dist/telemetry/telemetry-buffer-flush.task.js.map +1 -1
- package/dist/telemetry/telemetry-pulse.task.d.ts +2 -5
- package/dist/telemetry/telemetry-pulse.task.js +7 -4
- package/dist/telemetry/telemetry-pulse.task.js.map +1 -1
- package/dist/user-management/email/node-mailer.js.map +1 -1
- package/dist/user-management/email/templates/migration-findings.handlebars +212 -0
- package/dist/user-management/email/user-management-mailer.d.ts +13 -1
- package/dist/user-management/email/user-management-mailer.js +22 -0
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/utils/container-limits.d.ts +9 -0
- package/dist/utils/container-limits.js +59 -0
- package/dist/utils/container-limits.js.map +1 -0
- package/dist/utils/detect-runtime.d.ts +4 -0
- package/dist/utils/detect-runtime.js +27 -0
- package/dist/utils/detect-runtime.js.map +1 -0
- package/dist/utils/object-to-error.js +1 -1
- package/dist/utils/object-to-error.js.map +1 -1
- package/dist/utils.js +8 -3
- package/dist/utils.js.map +1 -1
- package/dist/wait-tracker.js +8 -0
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/hitl-interaction-webhooks.js +4 -1
- package/dist/webhooks/hitl-interaction-webhooks.js.map +1 -1
- package/dist/webhooks/live-webhooks.d.ts +1 -1
- package/dist/webhooks/live-webhooks.js +2 -2
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/test-webhook-registrations.service.d.ts +1 -1
- package/dist/webhooks/waiting-forms.js +3 -2
- package/dist/webhooks/waiting-forms.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.js +3 -0
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +43 -27
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-sanitizer.js +4 -2
- package/dist/webhooks/webhook-request-sanitizer.js.map +1 -1
- package/dist/webhooks/webhook.types.d.ts +2 -0
- package/dist/workflow-execute-additional-data.js +12 -9
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.js +19 -3
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.js +6 -5
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/error-workflow-validation.service.d.ts +1 -1
- package/dist/workflows/error-workflow-validation.service.js +2 -2
- package/dist/workflows/error-workflow-validation.service.js.map +1 -1
- package/dist/workflows/publication/format-node-failures.d.ts +4 -0
- package/dist/workflows/publication/format-node-failures.js +6 -0
- package/dist/workflows/publication/format-node-failures.js.map +1 -1
- package/dist/workflows/publication/publication-status-reporter.d.ts +1 -1
- package/dist/workflows/publication/publication-status-reporter.js +9 -6
- package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.d.ts +1 -1
- package/dist/workflows/publication/workflow-publication-applier.js +3 -4
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.d.ts +2 -4
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js +7 -7
- package/dist/workflows/publication/workflow-publication-outbox-cleanup.task.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-status.service.d.ts +2 -0
- package/dist/workflows/publication/workflow-publication-status.service.js +14 -0
- package/dist/workflows/publication/workflow-publication-status.service.js.map +1 -1
- package/dist/workflows/triggers/trigger-execution-context.factory.d.ts +1 -2
- package/dist/workflows/triggers/trigger-execution-context.factory.js +1 -2
- package/dist/workflows/triggers/trigger-execution-context.factory.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +1 -2
- package/dist/workflows/workflow-execution.service.js +1 -2
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow-finder.service.js +2 -1
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +1 -4
- package/dist/workflows/workflow.service.ee.d.ts +8 -5
- package/dist/workflows/workflow.service.ee.js +57 -12
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +1 -4
- package/dist/workflows/workflow.service.js.map +1 -1
- package/package.json +45 -44
- package/templates/admin-consent-callback.handlebars +19 -0
- package/dist/credentials/executing-user-identifier-proxy.d.ts +0 -7
- package/dist/credentials/executing-user-identifier-proxy.js +0 -25
- package/dist/credentials/executing-user-identifier-proxy.js.map +0 -1
- package/dist/credentials/executing-user-identifier.interface.d.ts +0 -4
- package/dist/credentials/executing-user-identifier.interface.js +0 -3
- package/dist/credentials/executing-user-identifier.interface.js.map +0 -1
- package/dist/executions/execution-redaction-proxy.service.d.ts +0 -7
- package/dist/executions/execution-redaction-proxy.service.js +0 -31
- package/dist/executions/execution-redaction-proxy.service.js.map +0 -1
- package/dist/executions/execution-redaction.d.ts +0 -21
- package/dist/executions/execution-redaction.js +0 -7
- package/dist/executions/execution-redaction.js.map +0 -1
- package/dist/jwks/jwks.registry.d.ts +0 -10
- package/dist/jwks/jwks.registry.js +0 -31
- package/dist/jwks/jwks.registry.js.map +0 -1
- package/dist/jwks/jwks.schemas.d.ts +0 -178
- package/dist/jwks/jwks.schemas.js +0 -31
- package/dist/jwks/jwks.schemas.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder-prompts.d.ts +0 -16
- package/dist/modules/agents/builder/agents-builder-prompts.js +0 -425
- package/dist/modules/agents/builder/agents-builder-prompts.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +0 -47
- package/dist/modules/agents/builder/agents-builder.service.js +0 -222
- package/dist/modules/agents/builder/agents-builder.service.js.map +0 -1
- package/dist/modules/agents/builder/errors.d.ts +0 -9
- package/dist/modules/agents/builder/errors.js +0 -22
- package/dist/modules/agents/builder/errors.js.map +0 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.d.ts +0 -1
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js +0 -62
- package/dist/modules/agents/builder/prompts/llm-selection.prompt.js.map +0 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.d.ts +0 -1
- package/dist/modules/agents/builder/prompts/memory.prompt.js +0 -43
- package/dist/modules/agents/builder/prompts/memory.prompt.js.map +0 -1
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.d.ts +0 -2
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.js +0 -22
- package/dist/modules/agents/builder/prompts/planner-todos.prompt.js.map +0 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.d.ts +0 -1
- package/dist/modules/agents/builder/prompts/tools.prompt.js +0 -102
- package/dist/modules/agents/builder/prompts/tools.prompt.js.map +0 -1
- package/dist/modules/agents/integrations/platforms/whatsapp-integration.js.map +0 -1
- package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.d.ts +0 -2
- package/dist/modules/breaking-changes/migrations/ai-transform-to-code.migration.js.map +0 -1
- package/dist/modules/data-table/middleware/branch-write-access-middleware.d.ts +0 -2
- package/dist/modules/data-table/middleware/branch-write-access-middleware.js +0 -14
- package/dist/modules/data-table/middleware/branch-write-access-middleware.js.map +0 -1
- package/dist/modules/instance-ai/eval/api-docs.d.ts +0 -1
- package/dist/modules/instance-ai/eval/api-docs.js +0 -78
- package/dist/modules/instance-ai/eval/api-docs.js.map +0 -1
- package/dist/modules/instance-ai/instance-ai-credit-display.d.ts +0 -9
- package/dist/modules/instance-ai/instance-ai-credit-display.js +0 -15
- package/dist/modules/instance-ai/instance-ai-credit-display.js.map +0 -1
- package/dist/modules/quick-connect/handlers/firecrawl.handler.d.ts +0 -13
- package/dist/modules/quick-connect/handlers/firecrawl.handler.js +0 -50
- package/dist/modules/quick-connect/handlers/firecrawl.handler.js.map +0 -1
- package/dist/modules/quick-connect/handlers/handler.interface.d.ts +0 -9
- package/dist/modules/quick-connect/handlers/handler.interface.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.config.d.ts +0 -462
- package/dist/modules/quick-connect/quick-connect.config.js +0 -72
- package/dist/modules/quick-connect/quick-connect.config.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.controller.d.ts +0 -10
- package/dist/modules/quick-connect/quick-connect.controller.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.errors.d.ts +0 -5
- package/dist/modules/quick-connect/quick-connect.errors.js +0 -12
- package/dist/modules/quick-connect/quick-connect.errors.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.module.d.ts +0 -49
- package/dist/modules/quick-connect/quick-connect.module.js +0 -36
- package/dist/modules/quick-connect/quick-connect.module.js.map +0 -1
- package/dist/modules/quick-connect/quick-connect.service.d.ts +0 -13
- package/dist/modules/quick-connect/quick-connect.service.js +0 -61
- package/dist/modules/quick-connect/quick-connect.service.js.map +0 -1
- package/dist/modules/workflow-builder/index.d.ts +0 -3
- package/dist/modules/workflow-builder/index.js +0 -10
- package/dist/modules/workflow-builder/index.js.map +0 -1
- package/dist/modules/workflow-builder/workflow-builder-session.entity.d.ts +0 -26
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js +0 -72
- package/dist/modules/workflow-builder/workflow-builder-session.entity.js.map +0 -1
- package/dist/modules/workflow-builder/workflow-builder-session.repository.d.ts +0 -10
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js +0 -79
- package/dist/modules/workflow-builder/workflow-builder-session.repository.js.map +0 -1
- package/dist/modules/workflow-builder/workflow-builder.module.d.ts +0 -4
- package/dist/modules/workflow-builder/workflow-builder.module.js.map +0 -1
- package/dist/oauth/oauth-jwe-service.proxy.d.ts +0 -19
- package/dist/oauth/oauth-jwe-service.proxy.js +0 -32
- package/dist/oauth/oauth-jwe-service.proxy.js.map +0 -1
- package/dist/public-api/v1/handlers/decorator-routed.handler.d.ts +0 -2
- package/dist/public-api/v1/handlers/decorator-routed.handler.js +0 -10
- package/dist/public-api/v1/handlers/decorator-routed.handler.js.map +0 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +0 -9
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +0 -113
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +0 -1
- package/dist/public-api/v1/shared/handler.types.d.ts +0 -9
- package/dist/public-api/v1/shared/handler.types.js +0 -3
- package/dist/public-api/v1/shared/handler.types.js.map +0 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.d.ts +0 -31
- package/dist/public-api/v1/shared/middlewares/global.middleware.js +0 -126
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +0 -1
- package/dist/public-api/v1/shared/public-api-scope-lookup.d.ts +0 -5
- package/dist/public-api/v1/shared/public-api-scope-lookup.js +0 -60
- package/dist/public-api/v1/shared/public-api-scope-lookup.js.map +0 -1
- package/dist/services/auth-strategy.registry.d.ts +0 -8
- package/dist/services/auth-strategy.registry.js +0 -44
- package/dist/services/auth-strategy.registry.js.map +0 -1
- package/dist/services/auth-strategy.types.d.ts +0 -10
- package/dist/services/auth-strategy.types.js +0 -3
- package/dist/services/auth-strategy.types.js.map +0 -1
- package/dist/services/instance-activation.service.d.ts +0 -10
- package/dist/services/instance-activation.service.js +0 -48
- package/dist/services/instance-activation.service.js.map +0 -1
- package/dist/services/instance-registry-proxy.service.d.ts +0 -11
- package/dist/services/instance-registry-proxy.service.js +0 -33
- package/dist/services/instance-registry-proxy.service.js.map +0 -1
- package/dist/services/jwt.service.d.ts +0 -24
- package/dist/services/jwt.service.js +0 -104
- package/dist/services/jwt.service.js.map +0 -1
- package/dist/services/oauth-token-verifier-proxy.service.d.ts +0 -33
- package/dist/services/oauth-token-verifier-proxy.service.js +0 -36
- package/dist/services/oauth-token-verifier-proxy.service.js.map +0 -1
- package/dist/services/oauth2-flow-proxy.service.d.ts +0 -13
- package/dist/services/oauth2-flow-proxy.service.js +0 -39
- package/dist/services/oauth2-flow-proxy.service.js.map +0 -1
- package/dist/services/protected-resource.registry.d.ts +0 -25
- package/dist/services/protected-resource.registry.js +0 -124
- package/dist/services/protected-resource.registry.js.map +0 -1
- package/dist/services/role-mapping-proxy.service.d.ts +0 -53
- package/dist/services/role-mapping-proxy.service.js +0 -26
- package/dist/services/role-mapping-proxy.service.js.map +0 -1
- package/dist/services/runtime-credential-proxy.service.d.ts +0 -9
- package/dist/services/runtime-credential-proxy.service.js +0 -29
- package/dist/services/runtime-credential-proxy.service.js.map +0 -1
- package/dist/services/token-purposes.d.ts +0 -21
- package/dist/services/token-purposes.js +0 -27
- package/dist/services/token-purposes.js.map +0 -1
- package/dist/workflows/restricted-node-types-provider-proxy.service.d.ts +0 -9
- package/dist/workflows/restricted-node-types-provider-proxy.service.js +0 -26
- package/dist/workflows/restricted-node-types-provider-proxy.service.js.map +0 -1
- package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +0 -24
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js +0 -38
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +0 -1
- package/dist/workflows/workflow-publish-guard-proxy.service.d.ts +0 -8
- package/dist/workflows/workflow-publish-guard-proxy.service.js +0 -26
- package/dist/workflows/workflow-publish-guard-proxy.service.js.map +0 -1
- package/dist/workflows/workflow-published-data.service.d.ts +0 -19
- package/dist/workflows/workflow-published-data.service.js +0 -70
- package/dist/workflows/workflow-published-data.service.js.map +0 -1
- /package/dist/modules/breaking-changes/migrations/{ai-transform-to-code.migration.js → node-removals/ai-transform-to-code.migration.js} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.adminConsentRedirectUri = adminConsentRedirectUri;
|
|
4
|
+
exports.adminConsentUrl = adminConsentUrl;
|
|
5
|
+
function adminConsentRedirectUri(instanceBaseUrl, scope) {
|
|
6
|
+
const url = URL.parse(`${instanceBaseUrl}/projects/${encodeURIComponent(scope.projectId)}/agents/${encodeURIComponent(scope.agentId)}`);
|
|
7
|
+
if (!url)
|
|
8
|
+
return undefined;
|
|
9
|
+
const localhost = url.hostname === 'localhost' || url.hostname === '127.0.0.1';
|
|
10
|
+
if (url.protocol !== 'https:' && !(url.protocol === 'http:' && localhost))
|
|
11
|
+
return undefined;
|
|
12
|
+
return url.href;
|
|
13
|
+
}
|
|
14
|
+
const CONSENT_STATE = 'teams-file-access';
|
|
15
|
+
function adminConsentUrl(tenantId, clientId, redirectUri) {
|
|
16
|
+
const query = new URLSearchParams({
|
|
17
|
+
client_id: clientId,
|
|
18
|
+
redirect_uri: redirectUri,
|
|
19
|
+
state: CONSENT_STATE,
|
|
20
|
+
});
|
|
21
|
+
return `https://login.microsoftonline.com/${encodeURIComponent(tenantId)}/adminconsent?${query.toString()}`;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=teams-admin-consent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams-admin-consent.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-admin-consent.ts"],"names":[],"mappings":";;;;AAOA,iCACC,eAAuB,EACvB,KAA6C;IAE7C,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CACpB,GAAG,eAAe,aAAa,kBAAkB,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,kBAAkB,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAChH,CAAC;IACF,IAAI,CAAC,GAAG;QAAE,OAAO,SAAS,CAAC;IAC3B,MAAM,SAAS,GAAG,GAAG,CAAC,QAAQ,KAAK,WAAW,IAAI,GAAG,CAAC,QAAQ,KAAK,WAAW,CAAC;IAC/E,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5F,OAAO,GAAG,CAAC,IAAI,CAAC;AACjB,CAAC;AAED,MAAM,aAAa,GAAgC,mBAAmB,CAAC;AAMvE,yBAAgC,QAAgB,EAAE,QAAgB,EAAE,WAAmB;IACtF,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC;QACjC,SAAS,EAAE,QAAQ;QACnB,YAAY,EAAE,WAAW;QACzB,KAAK,EAAE,aAAa;KACpB,CAAC,CAAC;IACH,OAAO,qCAAqC,kBAAkB,CAAC,QAAQ,CAAC,iBAAiB,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC;AAC7G,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AgentPersonalisation } from '@n8n/api-types';
|
|
2
|
+
export interface TeamsAppIcons {
|
|
3
|
+
color: Buffer;
|
|
4
|
+
outline: Buffer;
|
|
5
|
+
accentColor: string;
|
|
6
|
+
}
|
|
7
|
+
interface IconSvgs {
|
|
8
|
+
color: string;
|
|
9
|
+
outline: string;
|
|
10
|
+
accentColor: string;
|
|
11
|
+
}
|
|
12
|
+
type Gradient = AgentPersonalisation['gradient'];
|
|
13
|
+
export declare function renderTeamsAppIcons(personalisation?: AgentPersonalisation | null): Promise<TeamsAppIcons | undefined>;
|
|
14
|
+
export declare function buildTeamsIconSvgs(iconName: string, gradient: Gradient): Promise<IconSvgs | undefined>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderTeamsAppIcons = renderTeamsAppIcons;
|
|
4
|
+
exports.buildTeamsIconSvgs = buildTeamsIconSvgs;
|
|
5
|
+
const api_types_1 = require("@n8n/api-types");
|
|
6
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
7
|
+
const di_1 = require("@n8n/di");
|
|
8
|
+
const oklch_1 = require("@n8n/utils/color/oklch");
|
|
9
|
+
const is_record_1 = require("@n8n/utils/is-record");
|
|
10
|
+
const run_serially_1 = require("@n8n/utils/run-serially");
|
|
11
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
12
|
+
const node_worker_threads_1 = require("node:worker_threads");
|
|
13
|
+
const COLOR_SIZE = 192;
|
|
14
|
+
const OUTLINE_SIZE = 32;
|
|
15
|
+
const GLYPH_RATIO = 0.6;
|
|
16
|
+
const GRADIENT_STOPS = 16;
|
|
17
|
+
const RENDER_TIMEOUT_MS = 5_000;
|
|
18
|
+
const WORKER_LIMITS = {
|
|
19
|
+
maxYoungGenerationSizeMb: 2,
|
|
20
|
+
maxOldGenerationSizeMb: 16,
|
|
21
|
+
codeRangeSizeMb: 8,
|
|
22
|
+
stackSizeMb: 1,
|
|
23
|
+
};
|
|
24
|
+
const renders = new Map();
|
|
25
|
+
async function renderTeamsAppIcons(personalisation) {
|
|
26
|
+
const { icon, gradient } = (0, api_types_1.resolveAgentPersonalisation)(personalisation);
|
|
27
|
+
try {
|
|
28
|
+
const svgs = await buildTeamsIconSvgs(icon, gradient);
|
|
29
|
+
if (!svgs)
|
|
30
|
+
return undefined;
|
|
31
|
+
const { color, outline } = await (0, run_serially_1.runSerially)(renders, 'teams-app-icons', async () => await rasterise(svgs));
|
|
32
|
+
return { color, outline, accentColor: svgs.accentColor };
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
di_1.Container.get(backend_common_1.Logger).warn('Could not draw the agent icon for the Teams app', {
|
|
36
|
+
icon,
|
|
37
|
+
error,
|
|
38
|
+
});
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
async function buildTeamsIconSvgs(iconName, gradient) {
|
|
43
|
+
const { icons: lucide } = await import('@iconify-json/lucide');
|
|
44
|
+
if (!Object.hasOwn(lucide.icons, iconName))
|
|
45
|
+
return undefined;
|
|
46
|
+
const icon = lucide.icons[iconName];
|
|
47
|
+
const viewBox = `0 0 ${icon.width ?? lucide.width ?? 24} ${icon.height ?? lucide.height ?? 24}`;
|
|
48
|
+
const glyph = icon.body.replaceAll('currentColor', '#FFFFFF');
|
|
49
|
+
const colorAt = (0, oklch_1.oklchMixer)(gradient.from, gradient.to);
|
|
50
|
+
const glyphSize = COLOR_SIZE * GLYPH_RATIO;
|
|
51
|
+
const offset = (COLOR_SIZE - glyphSize) / 2;
|
|
52
|
+
return {
|
|
53
|
+
color: svg(COLOR_SIZE, `0 0 ${COLOR_SIZE} ${COLOR_SIZE}`, `${gradientDefinition(gradient, colorAt)}<rect width="${COLOR_SIZE}" height="${COLOR_SIZE}" fill="url(#g)"/>` +
|
|
54
|
+
`<svg x="${offset}" y="${offset}" width="${glyphSize}" height="${glyphSize}" viewBox="${viewBox}">${glyph}</svg>`),
|
|
55
|
+
outline: svg(OUTLINE_SIZE, viewBox, glyph),
|
|
56
|
+
accentColor: (0, oklch_1.rgbToHex)(colorAt(stopProgress(gradient, 0.5))),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function svg(size, viewBox, content) {
|
|
60
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="${viewBox}">${content}</svg>`;
|
|
61
|
+
}
|
|
62
|
+
function gradientDefinition(gradient, colorAt) {
|
|
63
|
+
const radians = (gradient.angle * Math.PI) / 180;
|
|
64
|
+
const [ux, uy] = [Math.sin(radians), -Math.cos(radians)];
|
|
65
|
+
const half = (COLOR_SIZE * (Math.abs(ux) + Math.abs(uy))) / 2;
|
|
66
|
+
const centre = COLOR_SIZE / 2;
|
|
67
|
+
const stops = Array.from({ length: GRADIENT_STOPS + 1 }, (_, i) => {
|
|
68
|
+
const progress = i / GRADIENT_STOPS;
|
|
69
|
+
const offset = (gradient.fromStop + (gradient.toStop - gradient.fromStop) * progress) / 100;
|
|
70
|
+
return `<stop offset="${offset}" stop-color="${(0, oklch_1.rgbToHex)(colorAt(progress))}"/>`;
|
|
71
|
+
}).join('');
|
|
72
|
+
return ('<defs><linearGradient id="g" gradientUnits="userSpaceOnUse" spreadMethod="pad" ' +
|
|
73
|
+
`x1="${centre - ux * half}" y1="${centre - uy * half}" x2="${centre + ux * half}" y2="${centre + uy * half}">` +
|
|
74
|
+
`${stops}</linearGradient></defs>`);
|
|
75
|
+
}
|
|
76
|
+
function stopProgress({ fromStop, toStop }, position) {
|
|
77
|
+
return Math.max(0, Math.min(1, (position - fromStop / 100) / ((toStop - fromStop) / 100)));
|
|
78
|
+
}
|
|
79
|
+
const WORKER_SOURCE = `
|
|
80
|
+
const { parentPort, workerData } = require('node:worker_threads');
|
|
81
|
+
const { readFileSync } = require('node:fs');
|
|
82
|
+
const { initWasm, Resvg } = require(workerData.modulePath);
|
|
83
|
+
initWasm(readFileSync(workerData.wasmPath)).then(() => {
|
|
84
|
+
const render = (svg) => {
|
|
85
|
+
const image = new Resvg(svg).render();
|
|
86
|
+
const png = image.asPng();
|
|
87
|
+
image.free();
|
|
88
|
+
return png;
|
|
89
|
+
};
|
|
90
|
+
parentPort.postMessage({ color: render(workerData.color), outline: render(workerData.outline) });
|
|
91
|
+
});
|
|
92
|
+
`;
|
|
93
|
+
async function rasterise(svgs) {
|
|
94
|
+
const worker = new node_worker_threads_1.Worker(WORKER_SOURCE, {
|
|
95
|
+
eval: true,
|
|
96
|
+
resourceLimits: WORKER_LIMITS,
|
|
97
|
+
workerData: {
|
|
98
|
+
modulePath: require.resolve('@resvg/resvg-wasm'),
|
|
99
|
+
wasmPath: require.resolve('@resvg/resvg-wasm/index_bg.wasm'),
|
|
100
|
+
color: svgs.color,
|
|
101
|
+
outline: svgs.outline,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
try {
|
|
105
|
+
const result = await new Promise((resolve, reject) => {
|
|
106
|
+
let timer;
|
|
107
|
+
worker.once('online', () => {
|
|
108
|
+
timer = setTimeout(() => reject(new n8n_workflow_1.UnexpectedError('Rendering the Teams app icons timed out')), RENDER_TIMEOUT_MS);
|
|
109
|
+
});
|
|
110
|
+
worker.once('message', (message) => {
|
|
111
|
+
clearTimeout(timer);
|
|
112
|
+
resolve(message);
|
|
113
|
+
});
|
|
114
|
+
worker.once('error', (error) => {
|
|
115
|
+
clearTimeout(timer);
|
|
116
|
+
reject(error);
|
|
117
|
+
});
|
|
118
|
+
worker.once('exit', (code) => {
|
|
119
|
+
if (code === 0)
|
|
120
|
+
return;
|
|
121
|
+
clearTimeout(timer);
|
|
122
|
+
reject(new n8n_workflow_1.UnexpectedError(`The icon renderer exited with code ${code}`));
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
if (!(0, is_record_1.isRecord)(result) ||
|
|
126
|
+
!(result.color instanceof Uint8Array) ||
|
|
127
|
+
!(result.outline instanceof Uint8Array)) {
|
|
128
|
+
throw new n8n_workflow_1.UnexpectedError('The icon renderer returned no images');
|
|
129
|
+
}
|
|
130
|
+
return { color: Buffer.from(result.color), outline: Buffer.from(result.outline) };
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
await worker.terminate();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=teams-app-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams-app-icons.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-app-icons.ts"],"names":[],"mappings":";;;;AAAA,8CAAwF;AACxF,wDAA6C;AAC7C,gCAAoC;AACpC,kDAAwE;AACxE,oDAAgD;AAChD,0DAAsD;AACtD,+CAA+C;AAC/C,6DAAkE;AA4BlE,MAAM,UAAU,GAAG,GAAG,CAAC;AACvB,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,iBAAiB,GA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EAAE,EAAE;gBAC5B,IAAI,IAAI,KAAK,CAAC;oBAAE,OAAO;gBACvB,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,MAAM,CAAC,IAAI,8BAAe,CAAC,sCAAsC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC3E,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,IACC,CAAC,IAAA,oBAAQ,EAAC,MAAM,CAAC;YACjB,CAAC,CAAC,MAAM,CAAC,KAAK,YAAY,UAAU,CAAC;YACrC,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,UAAU,CAAC,EACtC,CAAC;YACF,MAAM,IAAI,8BAAe,CAAC,sCAAsC,CAAC,CAAC;QACnE,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;IACnF,CAAC;YAAS,CAAC;QACV,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;AACF,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { JwtService } from '
|
|
2
|
-
import { UrlService } from '@n8n/backend-services';
|
|
1
|
+
import { JwtService, UrlService } from '@n8n/backend-services';
|
|
3
2
|
export interface TeamsArmTemplateOptions {
|
|
4
3
|
agentName: string;
|
|
5
4
|
agentId: string;
|
|
@@ -17,5 +16,5 @@ export declare class TeamsArmTemplateService {
|
|
|
17
16
|
buildTemplateUrl(projectId: string, agentId: string, credentialId: string): string;
|
|
18
17
|
verifyToken(projectId: string, agentId: string, credentialId: string, token: string): boolean;
|
|
19
18
|
private signToken;
|
|
20
|
-
|
|
19
|
+
botNameFor(agentName: string, agentId: string): string;
|
|
21
20
|
}
|
|
@@ -13,7 +13,6 @@ exports.TeamsArmTemplateService = void 0;
|
|
|
13
13
|
const di_1 = require("@n8n/di");
|
|
14
14
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
15
15
|
const node_crypto_1 = require("node:crypto");
|
|
16
|
-
const jwt_service_1 = require("../../../../../services/jwt.service");
|
|
17
16
|
const backend_services_1 = require("@n8n/backend-services");
|
|
18
17
|
const integration_helpers_1 = require("../../integration-helpers");
|
|
19
18
|
const TOKEN_TTL = '15m';
|
|
@@ -35,7 +34,7 @@ let TeamsArmTemplateService = class TeamsArmTemplateService {
|
|
|
35
34
|
parameters: {
|
|
36
35
|
botName: {
|
|
37
36
|
type: 'string',
|
|
38
|
-
defaultValue: this.
|
|
37
|
+
defaultValue: this.botNameFor(options.agentName, options.agentId),
|
|
39
38
|
metadata: { description: 'Name of the Azure Bot resource. Must be globally unique.' },
|
|
40
39
|
},
|
|
41
40
|
msaAppId: {
|
|
@@ -115,7 +114,7 @@ let TeamsArmTemplateService = class TeamsArmTemplateService {
|
|
|
115
114
|
signToken(projectId, agentId, credentialId) {
|
|
116
115
|
return this.jwtService.sign('teamsArmTemplate', { projectId, agentId, credentialId }, { expiresIn: TOKEN_TTL });
|
|
117
116
|
}
|
|
118
|
-
|
|
117
|
+
botNameFor(agentName, agentId) {
|
|
119
118
|
const suffix = (0, node_crypto_1.createHmac)('sha256', 'teams-bot-name').update(agentId).digest('hex').slice(0, 8);
|
|
120
119
|
const slug = agentName
|
|
121
120
|
.toLowerCase()
|
|
@@ -129,6 +128,6 @@ let TeamsArmTemplateService = class TeamsArmTemplateService {
|
|
|
129
128
|
exports.TeamsArmTemplateService = TeamsArmTemplateService;
|
|
130
129
|
exports.TeamsArmTemplateService = TeamsArmTemplateService = __decorate([
|
|
131
130
|
(0, di_1.Service)(),
|
|
132
|
-
__metadata("design:paramtypes", [
|
|
131
|
+
__metadata("design:paramtypes", [backend_services_1.JwtService, backend_services_1.UrlService])
|
|
133
132
|
], TeamsArmTemplateService);
|
|
134
133
|
//# sourceMappingURL=teams-arm-template.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teams-arm-template.service.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-arm-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAClC,+CAAyC;AACzC,6CAAyC;AAEzC,
|
|
1
|
+
{"version":3,"file":"teams-arm-template.service.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-arm-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAAkC;AAClC,+CAAyC;AACzC,6CAAyC;AAEzC,4DAA+D;AAE/D,mEAA4D;AAM5D,MAAM,SAAS,GAAG,KAAK,CAAC;AAQxB,MAAM,eAAe,GAAG,YAAY,CAAC;AAGrC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAuBtC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IACnC,YACkB,UAAsB,EACtB,UAAsB;0BADtB,UAAU;0BACV,UAAU;IACzB,CAAC;IAMJ,aAAa,CAAC,OAAgC;QAG7C,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YACvD,MAAM,IAAI,wBAAS,CAClB,2GAA2G,CAC3G,CAAC;QACH,CAAC;QAED,OAAO;YACN,OAAO,EAAE,iFAAiF;YAC1F,cAAc,EAAE,SAAS;YACzB,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC;oBACjE,QAAQ,EAAE,EAAE,WAAW,EAAE,0DAA0D,EAAE;iBACrF;gBAID,QAAQ,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE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SAAiB,EAAE,OAAe,EAAE,YAAoB;QACzE,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAC1B,kBAAkB,EAClB,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,EACpC,EAAE,SAAS,EAAE,SAAS,EAAE,CACxB,CAAC;IACH,CAAC;IAUD,UAAU,CAAC,SAAiB,EAAE,OAAe;QAC5C,MAAM,MAAM,GAAG,IAAA,wBAAU,EAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAChG,MAAM,IAAI,GAAG,SAAS;aACpB,WAAW,EAAE;aACb,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;aAC3B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;aAEvB,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;aACZ,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAErB,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,aAAa,MAAM,EAAE,CAAC;IAC1E,CAAC;CACD,CAAA;;kCA9JY,uBAAuB;IADnC,IAAA,YAAO,GAAE;qCAGqB,6BAAU,EACV,6BAAU;GAH5B,uBAAuB,CA8JnC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import { OutboundHttp } from '@n8n/backend-network';
|
|
3
|
+
export interface ArmResponse {
|
|
4
|
+
statusCode: number;
|
|
5
|
+
body: unknown;
|
|
6
|
+
ok: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function armNextLinkPath(nextLink: string): string | undefined;
|
|
9
|
+
export declare class TeamsArmService {
|
|
10
|
+
private readonly outboundHttp;
|
|
11
|
+
private readonly logger;
|
|
12
|
+
constructor(outboundHttp: OutboundHttp, logger: Logger);
|
|
13
|
+
request(accessToken: string, method: 'GET' | 'PUT' | 'POST', path: string, body?: unknown): Promise<ArmResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TeamsArmService = void 0;
|
|
13
|
+
exports.armNextLinkPath = armNextLinkPath;
|
|
14
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
15
|
+
const backend_network_1 = require("@n8n/backend-network");
|
|
16
|
+
const di_1 = require("@n8n/di");
|
|
17
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
18
|
+
const teams_graph_service_1 = require("./teams-graph.service");
|
|
19
|
+
const ARM_BASE_URL = 'https://management.azure.com';
|
|
20
|
+
const ARM_TIMEOUT_MS = 60_000;
|
|
21
|
+
function armUrl(path) {
|
|
22
|
+
let parsed;
|
|
23
|
+
try {
|
|
24
|
+
parsed = new URL(`${ARM_BASE_URL}${path}`);
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
throw new n8n_workflow_1.UnexpectedError('Refusing to send an Azure token to a path that is not a URL.');
|
|
28
|
+
}
|
|
29
|
+
if (parsed.origin !== ARM_BASE_URL) {
|
|
30
|
+
throw new n8n_workflow_1.UnexpectedError('Refusing to send an Azure token off Azure Resource Manager.');
|
|
31
|
+
}
|
|
32
|
+
return parsed.href;
|
|
33
|
+
}
|
|
34
|
+
function armNextLinkPath(nextLink) {
|
|
35
|
+
try {
|
|
36
|
+
const url = new URL(nextLink);
|
|
37
|
+
if (url.origin !== ARM_BASE_URL)
|
|
38
|
+
return undefined;
|
|
39
|
+
return `${url.pathname}${url.search}`;
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
let TeamsArmService = class TeamsArmService {
|
|
46
|
+
constructor(outboundHttp, logger) {
|
|
47
|
+
this.outboundHttp = outboundHttp;
|
|
48
|
+
this.logger = logger;
|
|
49
|
+
}
|
|
50
|
+
async request(accessToken, method, path, body) {
|
|
51
|
+
const url = armUrl(path);
|
|
52
|
+
const response = await this.outboundHttp
|
|
53
|
+
.requests({ useDefaultSsrfPolicy: 'unsafe' })
|
|
54
|
+
.request({
|
|
55
|
+
method,
|
|
56
|
+
url,
|
|
57
|
+
headers: {
|
|
58
|
+
authorization: `Bearer ${accessToken}`,
|
|
59
|
+
'content-type': 'application/json',
|
|
60
|
+
},
|
|
61
|
+
body: body === undefined ? undefined : JSON.stringify(body),
|
|
62
|
+
returnFullResponse: true,
|
|
63
|
+
ignoreHttpStatusErrors: true,
|
|
64
|
+
timeout: ARM_TIMEOUT_MS,
|
|
65
|
+
});
|
|
66
|
+
const ok = response.statusCode >= 200 && response.statusCode < 300;
|
|
67
|
+
if (!ok) {
|
|
68
|
+
this.logger.debug('[TeamsArm] Azure refused a call', {
|
|
69
|
+
method,
|
|
70
|
+
path,
|
|
71
|
+
statusCode: response.statusCode,
|
|
72
|
+
error: (0, teams_graph_service_1.graphErrorCode)(response.body),
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return { statusCode: response.statusCode, body: response.body, ok };
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
exports.TeamsArmService = TeamsArmService;
|
|
79
|
+
exports.TeamsArmService = TeamsArmService = __decorate([
|
|
80
|
+
(0, di_1.Service)(),
|
|
81
|
+
__metadata("design:paramtypes", [backend_network_1.OutboundHttp, backend_common_1.Logger])
|
|
82
|
+
], TeamsArmService);
|
|
83
|
+
//# sourceMappingURL=teams-arm.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams-arm.service.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-arm.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,wDAA6C;AAC7C,0DAAoD;AACpD,gCAAkC;AAClC,+CAA+C;AAG/C,+DAAuD;AAEvD,MAAM,YAAY,GAAG,8BAA8B,CAAC;AACpD,MAAM,cAAc,GAAG,MAAM,CAAC;AAS9B,SAAS,MAAM,CAAC,IAAY;IAC3B,IAAI,MAAW,CAAC;IAChB,IAAI,CAAC;QACJ,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,YAAY,GAAG,IAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;IAAC,MAAM,CAAC;QACR,MAAM,IAAI,8BAAe,CAAC,8DAA8D,CAAC,CAAC;IAC3F,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,KAAK,YAAY,EAAE,CAAC;QACpC,MAAM,IAAI,8BAAe,CAAC,6DAA6D,CAAC,CAAC;IAC1F,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACpB,CAAC;AAOD,yBAAgC,QAAgB;IAC/C,IAAI,CAAC;QACJ,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC9B,IAAI,GAAG,CAAC,MAAM,KAAK,YAAY;YAAE,OAAO,SAAS,CAAC;QAClD,OAAO,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MA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CAAC;IACrE,CAAC;CACD,CAAA;;0BA7CY,eAAe;IAD3B,IAAA,YAAO,GAAE;qCAGuB,8BAAY,EAClB,uBAAM;GAHpB,eAAe,CA6C3B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { TeamsAzureSubscription, TeamsProvisionedBotSummary } from '@n8n/api-types';
|
|
2
|
+
import type { User } from '@n8n/db';
|
|
3
|
+
import { CredentialsFinderService } from '@n8n/backend-services';
|
|
4
|
+
import { TeamsArmService } from './teams-arm.service';
|
|
5
|
+
import { TeamsArmTemplateService } from './teams-arm-template.service';
|
|
6
|
+
import { TeamsCredentialNotesService } from './teams-credential-notes.service';
|
|
7
|
+
import { TeamsManagerTokenService } from './teams-manager-token.service';
|
|
8
|
+
export declare function botResourceId(subscriptionId: string, botName: string): string;
|
|
9
|
+
export interface ListSubscriptionsOptions {
|
|
10
|
+
user: User;
|
|
11
|
+
managerCredentialId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ProvisionBotOptions extends ListSubscriptionsOptions {
|
|
14
|
+
projectId: string;
|
|
15
|
+
agentId: string;
|
|
16
|
+
agentName: string;
|
|
17
|
+
credentialId: string;
|
|
18
|
+
subscriptionId: string;
|
|
19
|
+
msaAppId: string;
|
|
20
|
+
msaAppTenantId: string;
|
|
21
|
+
messagingEndpoint: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class TeamsBotProvisioningService {
|
|
24
|
+
private readonly arm;
|
|
25
|
+
private readonly tokens;
|
|
26
|
+
private readonly armTemplateService;
|
|
27
|
+
private readonly credentialsFinderService;
|
|
28
|
+
private readonly notes;
|
|
29
|
+
constructor(arm: TeamsArmService, tokens: TeamsManagerTokenService, armTemplateService: TeamsArmTemplateService, credentialsFinderService: CredentialsFinderService, notes: TeamsCredentialNotesService);
|
|
30
|
+
listSubscriptions(options: ListSubscriptionsOptions): Promise<TeamsAzureSubscription[]>;
|
|
31
|
+
provisionBot(options: ProvisionBotOptions): Promise<TeamsProvisionedBotSummary>;
|
|
32
|
+
private findBotByAppId;
|
|
33
|
+
private registerProvider;
|
|
34
|
+
private ensureResourceGroup;
|
|
35
|
+
private subscriptionsError;
|
|
36
|
+
private botError;
|
|
37
|
+
private azureToken;
|
|
38
|
+
private managerCredential;
|
|
39
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TeamsBotProvisioningService = void 0;
|
|
13
|
+
exports.botResourceId = botResourceId;
|
|
14
|
+
const di_1 = require("@n8n/di");
|
|
15
|
+
const is_record_1 = require("@n8n/utils/is-record");
|
|
16
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
17
|
+
const teams_setup_telemetry_service_1 = require("./teams-setup-telemetry.service");
|
|
18
|
+
const backend_services_1 = require("@n8n/backend-services");
|
|
19
|
+
const errors_1 = require("@n8n/errors");
|
|
20
|
+
const teams_arm_service_1 = require("./teams-arm.service");
|
|
21
|
+
const teams_graph_service_1 = require("./teams-graph.service");
|
|
22
|
+
const teams_arm_template_service_1 = require("./teams-arm-template.service");
|
|
23
|
+
const teams_credential_notes_service_1 = require("./teams-credential-notes.service");
|
|
24
|
+
const teams_managed_setup_service_1 = require("./teams-managed-setup.service");
|
|
25
|
+
const teams_manager_token_service_1 = require("./teams-manager-token.service");
|
|
26
|
+
const integration_helpers_1 = require("../../integration-helpers");
|
|
27
|
+
const SUBSCRIPTIONS_API = '2022-12-01';
|
|
28
|
+
const RESOURCE_GROUP_API = '2021-04-01';
|
|
29
|
+
const PROVIDER_API = '2021-04-01';
|
|
30
|
+
const BOT_API = '2022-09-15';
|
|
31
|
+
const MAX_PAGES = 50;
|
|
32
|
+
const RESOURCE_GROUP = 'n8n-agents';
|
|
33
|
+
const RESOURCE_GROUP_LOCATION = 'westeurope';
|
|
34
|
+
function botResourceId(subscriptionId, botName) {
|
|
35
|
+
return `/subscriptions/${subscriptionId}/resourceGroups/${RESOURCE_GROUP}/providers/Microsoft.BotService/botServices/${botName}`;
|
|
36
|
+
}
|
|
37
|
+
function botAppIdOf(body) {
|
|
38
|
+
if (!(0, is_record_1.isRecord)(body))
|
|
39
|
+
return undefined;
|
|
40
|
+
const properties = body.properties;
|
|
41
|
+
return (0, is_record_1.isRecord)(properties) ? (0, integration_helpers_1.stringProperty)(properties, 'msaAppId') : undefined;
|
|
42
|
+
}
|
|
43
|
+
let TeamsBotProvisioningService = class TeamsBotProvisioningService {
|
|
44
|
+
constructor(arm, tokens, armTemplateService, credentialsFinderService, notes) {
|
|
45
|
+
this.arm = arm;
|
|
46
|
+
this.tokens = tokens;
|
|
47
|
+
this.armTemplateService = armTemplateService;
|
|
48
|
+
this.credentialsFinderService = credentialsFinderService;
|
|
49
|
+
this.notes = notes;
|
|
50
|
+
}
|
|
51
|
+
async listSubscriptions(options) {
|
|
52
|
+
const token = await this.azureToken(options);
|
|
53
|
+
const response = await this.arm.request(token, 'GET', `/subscriptions?api-version=${SUBSCRIPTIONS_API}`);
|
|
54
|
+
if (!response.ok) {
|
|
55
|
+
throw this.subscriptionsError(response.statusCode, (0, teams_graph_service_1.graphErrorCode)(response.body));
|
|
56
|
+
}
|
|
57
|
+
const subscriptions = [];
|
|
58
|
+
let page = response;
|
|
59
|
+
for (let read = 0; page && read < MAX_PAGES; read++) {
|
|
60
|
+
const value = (0, is_record_1.isRecord)(page.body) ? page.body.value : undefined;
|
|
61
|
+
if (Array.isArray(value)) {
|
|
62
|
+
for (const entry of value) {
|
|
63
|
+
const id = (0, integration_helpers_1.stringProperty)(entry, 'subscriptionId');
|
|
64
|
+
if (!id || (0, integration_helpers_1.stringProperty)(entry, 'state') !== 'Enabled')
|
|
65
|
+
continue;
|
|
66
|
+
subscriptions.push({ id, name: (0, integration_helpers_1.stringProperty)(entry, 'displayName') ?? id });
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
const next = (0, is_record_1.isRecord)(page.body)
|
|
70
|
+
? (0, integration_helpers_1.stringProperty)(page.body, 'nextLink')
|
|
71
|
+
: undefined;
|
|
72
|
+
const nextPath = next ? (0, teams_arm_service_1.armNextLinkPath)(next) : undefined;
|
|
73
|
+
page = nextPath ? await this.arm.request(token, 'GET', nextPath) : undefined;
|
|
74
|
+
if (page && !page.ok) {
|
|
75
|
+
throw this.subscriptionsError(page.statusCode, (0, teams_graph_service_1.graphErrorCode)(page.body));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return subscriptions;
|
|
79
|
+
}
|
|
80
|
+
async provisionBot(options) {
|
|
81
|
+
if (!options.messagingEndpoint.startsWith('https://')) {
|
|
82
|
+
throw (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.UserError("The Teams bot needs an HTTPS messaging endpoint. Set N8N_WEBHOOK_URL to this instance's public HTTPS URL."), 'endpoint_not_https');
|
|
83
|
+
}
|
|
84
|
+
const token = await this.azureToken(options);
|
|
85
|
+
await this.registerProvider(token, options.subscriptionId);
|
|
86
|
+
await this.ensureResourceGroup(token, options.subscriptionId);
|
|
87
|
+
const botName = (await this.findBotByAppId(token, options.subscriptionId, options.msaAppId)) ??
|
|
88
|
+
this.armTemplateService.botNameFor(options.agentName, options.agentId);
|
|
89
|
+
const scope = botResourceId(options.subscriptionId, botName);
|
|
90
|
+
const existing = await this.arm.request(token, 'GET', `${scope}?api-version=${BOT_API}`);
|
|
91
|
+
if (existing.ok) {
|
|
92
|
+
const boundAppId = botAppIdOf(existing.body);
|
|
93
|
+
if (boundAppId && boundAppId.toLowerCase() !== options.msaAppId.toLowerCase()) {
|
|
94
|
+
throw new n8n_workflow_1.UserError(`An Azure bot named ${botName} already exists and is tied to a different app registration. Azure fixes that at creation, so delete the bot or rename the agent, then try again.`);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
const bot = await this.arm.request(token, 'PUT', `${scope}?api-version=${BOT_API}`, {
|
|
98
|
+
location: 'global',
|
|
99
|
+
kind: 'azurebot',
|
|
100
|
+
sku: { name: 'F0' },
|
|
101
|
+
properties: {
|
|
102
|
+
displayName: botName,
|
|
103
|
+
endpoint: options.messagingEndpoint,
|
|
104
|
+
msaAppId: options.msaAppId,
|
|
105
|
+
msaAppType: 'SingleTenant',
|
|
106
|
+
msaAppTenantId: options.msaAppTenantId,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
if (!bot.ok)
|
|
110
|
+
throw this.botError(bot.statusCode, (0, teams_graph_service_1.graphErrorCode)(bot.body));
|
|
111
|
+
const channel = await this.arm.request(token, 'PUT', `${scope}/channels/MsTeamsChannel?api-version=${BOT_API}`, {
|
|
112
|
+
location: 'global',
|
|
113
|
+
properties: { channelName: 'MsTeamsChannel', properties: { isEnabled: true } },
|
|
114
|
+
});
|
|
115
|
+
if (!channel.ok) {
|
|
116
|
+
throw (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.OperationalError('The bot was created but its Microsoft Teams channel could not be turned on.'), 'teams_channel_failed');
|
|
117
|
+
}
|
|
118
|
+
await this.notes.write(options.user, options.credentialId, {
|
|
119
|
+
azureBotName: botName,
|
|
120
|
+
azureSubscriptionId: options.subscriptionId,
|
|
121
|
+
});
|
|
122
|
+
return { botName, resourceGroup: RESOURCE_GROUP, subscriptionId: options.subscriptionId };
|
|
123
|
+
}
|
|
124
|
+
async findBotByAppId(token, subscriptionId, msaAppId) {
|
|
125
|
+
let page = await this.arm.request(token, 'GET', `/subscriptions/${subscriptionId}/resourceGroups/${RESOURCE_GROUP}/providers/Microsoft.BotService/botServices?api-version=${BOT_API}`);
|
|
126
|
+
if (page.statusCode === 404)
|
|
127
|
+
return undefined;
|
|
128
|
+
if (!page.ok) {
|
|
129
|
+
throw this.botError(page.statusCode, (0, teams_graph_service_1.graphErrorCode)(page.body));
|
|
130
|
+
}
|
|
131
|
+
for (let read = 0; read < MAX_PAGES; read++) {
|
|
132
|
+
const value = (0, is_record_1.isRecord)(page.body) ? page.body.value : undefined;
|
|
133
|
+
if (Array.isArray(value)) {
|
|
134
|
+
const match = value.find((bot) => botAppIdOf(bot)?.toLowerCase() === msaAppId.toLowerCase());
|
|
135
|
+
if (match)
|
|
136
|
+
return (0, integration_helpers_1.stringProperty)(match, 'name');
|
|
137
|
+
}
|
|
138
|
+
const next = (0, is_record_1.isRecord)(page.body)
|
|
139
|
+
? (0, integration_helpers_1.stringProperty)(page.body, 'nextLink')
|
|
140
|
+
: undefined;
|
|
141
|
+
const nextPath = next ? (0, teams_arm_service_1.armNextLinkPath)(next) : undefined;
|
|
142
|
+
if (!nextPath)
|
|
143
|
+
return undefined;
|
|
144
|
+
page = await this.arm.request(token, 'GET', nextPath);
|
|
145
|
+
if (!page.ok) {
|
|
146
|
+
throw this.botError(page.statusCode, (0, teams_graph_service_1.graphErrorCode)(page.body));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return undefined;
|
|
150
|
+
}
|
|
151
|
+
async registerProvider(token, subscriptionId) {
|
|
152
|
+
await this.arm.request(token, 'POST', `/subscriptions/${subscriptionId}/providers/Microsoft.BotService/register?api-version=${PROVIDER_API}`);
|
|
153
|
+
}
|
|
154
|
+
async ensureResourceGroup(token, subscriptionId) {
|
|
155
|
+
const path = `/subscriptions/${subscriptionId}/resourcegroups/${RESOURCE_GROUP}?api-version=${RESOURCE_GROUP_API}`;
|
|
156
|
+
const existing = await this.arm.request(token, 'GET', path);
|
|
157
|
+
if (existing.ok)
|
|
158
|
+
return;
|
|
159
|
+
const code = (0, teams_graph_service_1.graphErrorCode)(existing.body);
|
|
160
|
+
if (existing.statusCode === 403 || code === 'AuthorizationFailed') {
|
|
161
|
+
throw this.botError(existing.statusCode, code);
|
|
162
|
+
}
|
|
163
|
+
const response = await this.arm.request(token, 'PUT', path, {
|
|
164
|
+
location: RESOURCE_GROUP_LOCATION,
|
|
165
|
+
});
|
|
166
|
+
if (!response.ok) {
|
|
167
|
+
throw this.botError(response.statusCode, (0, teams_graph_service_1.graphErrorCode)(response.body));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
subscriptionsError(statusCode, code) {
|
|
171
|
+
if (statusCode === 403 || code === 'AuthorizationFailed') {
|
|
172
|
+
return (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.UserError('This account cannot read the Azure subscriptions in this tenant.'), 'no_contributor_role');
|
|
173
|
+
}
|
|
174
|
+
return new n8n_workflow_1.OperationalError('Azure did not answer with the subscriptions. Try again.');
|
|
175
|
+
}
|
|
176
|
+
botError(statusCode, code) {
|
|
177
|
+
if (statusCode === 403 || code === 'AuthorizationFailed') {
|
|
178
|
+
return (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.UserError('This account cannot create resources in that Azure subscription. It needs the Contributor role.'), 'no_contributor_role');
|
|
179
|
+
}
|
|
180
|
+
if (code === 'MissingSubscriptionRegistration') {
|
|
181
|
+
return (0, teams_setup_telemetry_service_1.withTeamsFailure)(new n8n_workflow_1.OperationalError('Azure is still enabling Bot Service on this subscription. Try again in a minute.'), 'provider_registering');
|
|
182
|
+
}
|
|
183
|
+
return new n8n_workflow_1.OperationalError('Azure refused to create the bot. Try again.');
|
|
184
|
+
}
|
|
185
|
+
async azureToken(options) {
|
|
186
|
+
const credential = await this.managerCredential(options);
|
|
187
|
+
return await this.tokens.acquire(credential, teams_manager_token_service_1.AZURE_RESOURCE);
|
|
188
|
+
}
|
|
189
|
+
async managerCredential(options) {
|
|
190
|
+
const credential = await this.credentialsFinderService.findCredentialForUser(options.managerCredentialId, options.user, ['credential:use']);
|
|
191
|
+
if (!credential || credential.type !== teams_managed_setup_service_1.TEAMS_MANAGER_CREDENTIAL_TYPE) {
|
|
192
|
+
throw (0, teams_setup_telemetry_service_1.withTeamsFailure)(new errors_1.BadRequestError('Sign in with Microsoft before creating the bot.'), 'not_signed_in');
|
|
193
|
+
}
|
|
194
|
+
return credential;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
exports.TeamsBotProvisioningService = TeamsBotProvisioningService;
|
|
198
|
+
exports.TeamsBotProvisioningService = TeamsBotProvisioningService = __decorate([
|
|
199
|
+
(0, di_1.Service)(),
|
|
200
|
+
__metadata("design:paramtypes", [teams_arm_service_1.TeamsArmService, teams_manager_token_service_1.TeamsManagerTokenService, teams_arm_template_service_1.TeamsArmTemplateService, backend_services_1.CredentialsFinderService, teams_credential_notes_service_1.TeamsCredentialNotesService])
|
|
201
|
+
], TeamsBotProvisioningService);
|
|
202
|
+
//# sourceMappingURL=teams-bot-provisioning.service.js.map
|
package/dist/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams-bot-provisioning.service.js","sourceRoot":"","sources":["../../../../../../src/modules/agents/integrations/platforms/teams/teams-bot-provisioning.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,gCAAkC;AAClC,oDAAgD;AAChD,+CAA2D;AAC3D,mFAAmE;AAEnE,4DAAiE;AACjE,wCAA8C;AAE9C,2DAAyF;AACzF,+DAAuD;AACvD,6EAAuE;AACvE,qFAA+E;AAC/E,+EAA8E;AAC9E,+EAAyF;AACzF,mEAA2D;AAE3D,MAAM,iBAAiB,GAAG,YAAY,CAAC;AACvC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