n8n 2.36.7 → 2.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/start.js +1 -2
- package/dist/commands/start.js.map +1 -1
- package/dist/constants/oauth2-triggers.d.ts +1 -1
- package/dist/constants/oauth2-triggers.js +3 -3
- package/dist/constants/workflow-reviews.d.ts +0 -3
- package/dist/constants/workflow-reviews.js +1 -10
- package/dist/constants/workflow-reviews.js.map +1 -1
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +4 -1
- package/dist/constants.js.map +1 -1
- package/dist/controller.registry.js +11 -1
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/binary-data.controller.d.ts +2 -5
- package/dist/controllers/binary-data.controller.js +3 -11
- package/dist/controllers/binary-data.controller.js.map +1 -1
- package/dist/controllers/e2e.controller.d.ts +2 -0
- package/dist/controllers/e2e.controller.js +7 -1
- package/dist/controllers/e2e.controller.js.map +1 -1
- package/dist/controllers/project.controller.js +3 -3
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/role.controller.d.ts +0 -1
- package/dist/controllers/role.controller.js +24 -17
- package/dist/controllers/role.controller.js.map +1 -1
- package/dist/controllers/security-settings.controller.js +1 -2
- package/dist/controllers/security-settings.controller.js.map +1 -1
- package/dist/credentials/credential-resolution-provider.interface.d.ts +1 -1
- package/dist/credentials/dynamic-credentials-proxy.d.ts +1 -1
- package/dist/credentials/dynamic-credentials-proxy.js +2 -2
- package/dist/credentials/dynamic-credentials-proxy.js.map +1 -1
- package/dist/credentials-helper.js +1 -1
- package/dist/credentials-helper.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-audit.d.ts +1 -1
- package/dist/eventbus/event-message-classes/event-message-mcp.d.ts +2 -0
- package/dist/eventbus/event-message-classes/event-message-mcp.js.map +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +7 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/events/maps/poll-trigger-metrics.event-map.d.ts +3 -0
- package/dist/events/maps/relay.event-map.d.ts +42 -2
- package/dist/events/relays/log-streaming.event-relay.d.ts +4 -0
- package/dist/events/relays/log-streaming.event-relay.js +72 -1
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +5 -0
- package/dist/events/relays/telemetry.event-relay.js +55 -1
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/executions/execution-data/db-store.d.ts +1 -1
- package/dist/executions/execution-data/db-store.js +3 -2
- package/dist/executions/execution-data/db-store.js.map +1 -1
- package/dist/executions/execution-data/types.d.ts +4 -2
- package/dist/executions/execution-data/types.js +4 -0
- package/dist/executions/execution-data/types.js.map +1 -1
- package/dist/executions/execution-data/unreadable-run-data.error.d.ts +5 -0
- package/dist/executions/execution-data/unreadable-run-data.error.js +11 -0
- package/dist/executions/execution-data/unreadable-run-data.error.js.map +1 -0
- package/dist/executions/execution-persistence.d.ts +3 -1
- package/dist/executions/execution-persistence.js +23 -10
- package/dist/executions/execution-persistence.js.map +1 -1
- package/dist/executions/execution.service.d.ts +4 -1
- package/dist/executions/execution.service.js +9 -7
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/execution.types.d.ts +1 -7
- package/dist/executions/executions.controller.d.ts +4 -1
- package/dist/executions/executions.controller.js +8 -3
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +3 -21
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/metrics/prometheus/poll-trigger-metrics.service.js +8 -0
- package/dist/metrics/prometheus/poll-trigger-metrics.service.js.map +1 -1
- package/dist/modules/agents/agent-config.service.js +1 -1
- package/dist/modules/agents/agent-config.service.js.map +1 -1
- package/dist/modules/agents/agent-custom-tools.service.js +2 -2
- package/dist/modules/agents/agent-custom-tools.service.js.map +1 -1
- package/dist/modules/agents/agent-execution.service.d.ts +5 -1
- package/dist/modules/agents/agent-execution.service.js +33 -5
- package/dist/modules/agents/agent-execution.service.js.map +1 -1
- package/dist/modules/agents/agent-integration-management.service.d.ts +1 -0
- package/dist/modules/agents/agent-integration-management.service.js +16 -4
- package/dist/modules/agents/agent-integration-management.service.js.map +1 -1
- package/dist/modules/agents/agent-publish.service.d.ts +1 -1
- package/dist/modules/agents/agent-publish.service.js +56 -20
- package/dist/modules/agents/agent-publish.service.js.map +1 -1
- package/dist/modules/agents/agent-sandbox-principal.d.ts +2 -2
- package/dist/modules/agents/agent-sandbox-principal.js +2 -2
- package/dist/modules/agents/agent-sandbox-principal.js.map +1 -1
- package/dist/modules/agents/agent-sandbox-runtime.service.js +2 -2
- package/dist/modules/agents/agent-sandbox-runtime.service.js.map +1 -1
- package/dist/modules/agents/agent-skills.service.js +3 -3
- package/dist/modules/agents/agent-skills.service.js.map +1 -1
- package/dist/modules/agents/agent-task.service.d.ts +2 -0
- package/dist/modules/agents/agent-task.service.js +45 -10
- package/dist/modules/agents/agent-task.service.js.map +1 -1
- package/dist/modules/agents/agent-threads.controller.d.ts +3 -4
- package/dist/modules/agents/agent-threads.controller.js +10 -4
- package/dist/modules/agents/agent-threads.controller.js.map +1 -1
- package/dist/modules/agents/agent-validation.service.d.ts +2 -6
- package/dist/modules/agents/agent-validation.service.js +5 -9
- package/dist/modules/agents/agent-validation.service.js.map +1 -1
- package/dist/modules/agents/agent-workflow-execution.service.d.ts +3 -2
- package/dist/modules/agents/agent-workflow-execution.service.js +31 -14
- package/dist/modules/agents/agent-workflow-execution.service.js.map +1 -1
- package/dist/modules/agents/agents-config.controller.d.ts +9 -0
- package/dist/modules/agents/agents.module.js +0 -3
- package/dist/modules/agents/agents.module.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder-tools.service.js +5 -2
- package/dist/modules/agents/builder/agents-builder-tools.service.js.map +1 -1
- package/dist/modules/agents/builder/agents-builder.service.d.ts +2 -0
- package/dist/modules/agents/builder/agents-builder.service.js +18 -5
- package/dist/modules/agents/builder/agents-builder.service.js.map +1 -1
- package/dist/modules/agents/builder/builder-model-live-lookup.service.d.ts +4 -3
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js +11 -10
- package/dist/modules/agents/builder/builder-model-live-lookup.service.js.map +1 -1
- package/dist/modules/agents/builder/skills/target-tasks.skill.js +3 -0
- package/dist/modules/agents/builder/skills/target-tasks.skill.js.map +1 -1
- package/dist/modules/agents/entities/agent-execution.entity.d.ts +2 -0
- package/dist/modules/agents/entities/agent-execution.entity.js +4 -0
- package/dist/modules/agents/entities/agent-execution.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-task-snapshot.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js +10 -1
- package/dist/modules/agents/entities/agent-task-snapshot.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent-task.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent-task.entity.js +10 -1
- package/dist/modules/agents/entities/agent-task.entity.js.map +1 -1
- package/dist/modules/agents/entities/agent.entity.d.ts +1 -0
- package/dist/modules/agents/entities/agent.entity.js +4 -0
- package/dist/modules/agents/entities/agent.entity.js.map +1 -1
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js +1 -0
- package/dist/modules/agents/instance-ai-builder-delegate.adapter.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-bridge.d.ts +1 -0
- package/dist/modules/agents/integrations/agent-chat-bridge.js +22 -8
- package/dist/modules/agents/integrations/agent-chat-bridge.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.d.ts +13 -2
- package/dist/modules/agents/integrations/agent-chat-integration.js +1 -1
- package/dist/modules/agents/integrations/agent-chat-integration.js.map +1 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.d.ts +2 -1
- package/dist/modules/agents/integrations/agent-chat-message-context.js +15 -0
- package/dist/modules/agents/integrations/agent-chat-message-context.js.map +1 -1
- package/dist/modules/agents/integrations/chat-integration.service.d.ts +14 -1
- package/dist/modules/agents/integrations/chat-integration.service.js +128 -11
- package/dist/modules/agents/integrations/chat-integration.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-action-executor.d.ts +1 -0
- package/dist/modules/agents/integrations/integration-action-executor.js +20 -6
- package/dist/modules/agents/integrations/integration-action-executor.js.map +1 -1
- package/dist/modules/agents/integrations/integration-message-context.service.d.ts +8 -1
- package/dist/modules/agents/integrations/integration-message-context.service.js +87 -3
- package/dist/modules/agents/integrations/integration-message-context.service.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-execution.js +7 -0
- package/dist/modules/agents/integrations/integration-tool-execution.js.map +1 -1
- package/dist/modules/agents/integrations/integration-tool-types.d.ts +8 -0
- package/dist/modules/agents/integrations/leader-channel-relay.service.d.ts +25 -0
- package/dist/modules/agents/integrations/leader-channel-relay.service.js +123 -0
- package/dist/modules/agents/integrations/leader-channel-relay.service.js.map +1 -0
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js +8 -4
- package/dist/modules/agents/integrations/platforms/slack/slack-bridge-behavior.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.d.ts +12 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js +34 -2
- package/dist/modules/agents/integrations/platforms/slack/slack-integration.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.d.ts +4 -1
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js +37 -9
- package/dist/modules/agents/integrations/platforms/slack/slack-methods.service.js.map +1 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.d.ts +3 -1
- package/dist/modules/agents/integrations/platforms/telegram-integration.js +2 -2
- package/dist/modules/agents/integrations/platforms/telegram-integration.js.map +1 -1
- package/dist/modules/agents/json-config/agent-config-composition.d.ts +1 -1
- package/dist/modules/agents/json-config/agent-config-composition.js +3 -10
- package/dist/modules/agents/json-config/agent-config-composition.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.d.ts +5 -1
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js +89 -8
- package/dist/modules/agents/repositories/agent-execution-thread.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-execution.repository.d.ts +5 -2
- package/dist/modules/agents/repositories/agent-execution.repository.js +41 -2
- package/dist/modules/agents/repositories/agent-execution.repository.js.map +1 -1
- package/dist/modules/agents/repositories/agent-task-snapshot.repository.d.ts +1 -1
- package/dist/modules/agents/repositories/agent.repository.d.ts +6 -1
- package/dist/modules/agents/repositories/agent.repository.js +38 -0
- package/dist/modules/agents/repositories/agent.repository.js.map +1 -1
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.d.ts +1 -0
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.js +20 -7
- package/dist/modules/agents/sub-agents/sub-agent-cleanup.service.js.map +1 -1
- package/dist/modules/agents/tools/workflow-tool-factory.d.ts +11 -0
- package/dist/modules/agents/tools/workflow-tool-factory.js +109 -40
- package/dist/modules/agents/tools/workflow-tool-factory.js.map +1 -1
- package/dist/modules/agents/utils/agent-draft.utils.d.ts +4 -0
- package/dist/modules/agents/utils/agent-draft.utils.js +9 -0
- package/dist/modules/agents/utils/agent-draft.utils.js.map +1 -1
- package/dist/modules/agents/utils/agent-memory-scope.d.ts +1 -0
- package/dist/modules/agents/utils/agent-memory-scope.js +4 -0
- package/dist/modules/agents/utils/agent-memory-scope.js.map +1 -1
- package/dist/modules/agents/utils/execution-failure-summary.d.ts +23 -0
- package/dist/modules/agents/utils/execution-failure-summary.js +54 -0
- package/dist/modules/agents/utils/execution-failure-summary.js.map +1 -0
- package/dist/modules/agents/workflow-agent-stream.d.ts +41 -0
- package/dist/modules/agents/workflow-agent-stream.js +132 -0
- package/dist/modules/agents/workflow-agent-stream.js.map +1 -0
- package/dist/modules/breaking-changes/breaking-changes.service.js +1 -1
- package/dist/modules/breaking-changes/breaking-changes.service.js.map +1 -1
- package/dist/modules/breaking-changes/rules/index.d.ts +4 -0
- package/dist/modules/breaking-changes/rules/index.js +4 -0
- package/dist/modules/breaking-changes/rules/index.js.map +1 -1
- package/dist/modules/breaking-changes/rules/v3/agent-node-mode.d.ts +4 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-mode.js +26 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-mode.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-version.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-version.rule.js +53 -0
- package/dist/modules/breaking-changes/rules/v3/agent-node-version.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/agent-removed-modes.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/agent-removed-modes.rule.js +56 -0
- package/dist/modules/breaking-changes/rules/v3/agent-removed-modes.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-any-removed.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-any-removed.rule.js +54 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-any-removed.rule.js.map +1 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-default-any.rule.d.ts +10 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-default-any.rule.js +63 -0
- package/dist/modules/breaking-changes/rules/v3/caller-policy-default-any.rule.js.map +1 -0
- package/dist/modules/chat-hub/chat-hub.models.service.js +1 -69
- package/dist/modules/chat-hub/chat-hub.models.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.lifecycle.service.js +4 -14
- package/dist/modules/community-packages/community-packages.lifecycle.service.js.map +1 -1
- package/dist/modules/community-packages/community-packages.service.d.ts +8 -6
- package/dist/modules/community-packages/community-packages.service.js +263 -177
- package/dist/modules/community-packages/community-packages.service.js.map +1 -1
- package/dist/modules/data-table/data-table-size-validator.service.js +2 -2
- package/dist/modules/data-table/data-table-size-validator.service.js.map +1 -1
- package/dist/modules/data-table/multer-upload-middleware.js +2 -2
- package/dist/modules/data-table/multer-upload-middleware.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/identifier-interface.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.d.ts +13 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js +33 -3
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/n8n-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.d.ts +3 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js +14 -16
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-introspection-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.d.ts +2 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js +2 -2
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-metadata-http-client.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.d.ts +12 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js +135 -19
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-userinfo-identifier.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-utils.d.ts +6 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-utils.js +29 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/identifiers/oauth2-utils.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.d.ts +5 -5
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js +12 -12
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/n8n-credential-resolver.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/oauth-credential-resolver.d.ts +15 -4
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/oauth-credential-resolver.js +8 -0
- package/dist/modules/dynamic-credentials.ee/credential-resolvers/oauth-credential-resolver.js.map +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.d.ts +1 -1
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js +3 -3
- package/dist/modules/dynamic-credentials.ee/services/dynamic-credential.service.js.map +1 -1
- package/dist/modules/engine-v2/engine-data-plane-client.d.ts +15 -0
- package/dist/modules/engine-v2/engine-data-plane-client.js +76 -0
- package/dist/modules/engine-v2/engine-data-plane-client.js.map +1 -0
- package/dist/modules/engine-v2/engine-v2.module.d.ts +5 -0
- package/dist/modules/engine-v2/engine-v2.module.js +48 -0
- package/dist/modules/engine-v2/engine-v2.module.js.map +1 -0
- package/dist/modules/engine-v2/engine-v2.runtime.d.ts +20 -0
- package/dist/modules/engine-v2/engine-v2.runtime.js +164 -0
- package/dist/modules/engine-v2/engine-v2.runtime.js.map +1 -0
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js +1 -1
- package/dist/modules/external-secrets.ee/providers/aws-secrets-manager.js.map +1 -1
- package/dist/modules/git-connections.ee/constants.d.ts +7 -0
- package/dist/modules/git-connections.ee/constants.js +11 -0
- package/dist/modules/git-connections.ee/constants.js.map +1 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.d.ts +8 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.js +36 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection-project.entity.js.map +1 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.d.ts +14 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.js +61 -0
- package/dist/modules/git-connections.ee/database/entities/git-connection.entity.js.map +1 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.d.ts +9 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.js +46 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection-project.repository.js.map +1 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.d.ts +12 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.js +37 -0
- package/dist/modules/git-connections.ee/database/repositories/git-connection.repository.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections-git.service.d.ts +33 -0
- package/dist/modules/git-connections.ee/git-connections-git.service.js +191 -0
- package/dist/modules/git-connections.ee/git-connections-git.service.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections-git.utils.d.ts +13 -0
- package/dist/modules/git-connections.ee/git-connections-git.utils.js +49 -0
- package/dist/modules/git-connections.ee/git-connections-git.utils.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections.module.d.ts +5 -0
- package/dist/modules/git-connections.ee/git-connections.module.js +32 -0
- package/dist/modules/git-connections.ee/git-connections.module.js.map +1 -0
- package/dist/modules/git-connections.ee/git-connections.service.d.ts +64 -0
- package/dist/modules/git-connections.ee/git-connections.service.js +331 -0
- package/dist/modules/git-connections.ee/git-connections.service.js.map +1 -0
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.d.ts +2 -0
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.js +10 -1
- package/dist/modules/instance-ai/browser/browser-use-ws.constants.js.map +1 -1
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.d.ts +2 -0
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js +19 -2
- package/dist/modules/instance-ai/browser/instance-ai-browser-session.service.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.d.ts +2 -0
- package/dist/modules/instance-ai/event-bus/durable-event-log.js +30 -1
- package/dist/modules/instance-ai/event-bus/durable-event-log.js.map +1 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.d.ts +3 -1
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js +33 -23
- package/dist/modules/instance-ai/event-bus/in-process-event-bus.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-memory.service.js +49 -7
- package/dist/modules/instance-ai/instance-ai-memory.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js +1 -1
- package/dist/modules/instance-ai/instance-ai-terminal-outcome.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai-verification.service.js +3 -2
- package/dist/modules/instance-ai/instance-ai-verification.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.adapter.service.d.ts +4 -0
- package/dist/modules/instance-ai/instance-ai.adapter.service.js +91 -32
- package/dist/modules/instance-ai/instance-ai.adapter.service.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.module.js +5 -0
- package/dist/modules/instance-ai/instance-ai.module.js.map +1 -1
- package/dist/modules/instance-ai/instance-ai.service.d.ts +1 -1
- package/dist/modules/instance-ai/instance-ai.service.js +36 -87
- package/dist/modules/instance-ai/instance-ai.service.js.map +1 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.d.ts +3 -1
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js +14 -6
- package/dist/modules/instance-ai/liveness/instance-ai-liveness.service.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.d.ts +3 -2
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js +10 -0
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-connection.controller.js.map +1 -1
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.d.ts +4 -2
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js +47 -4
- package/dist/modules/instance-ai/mcp/instance-ai-mcp-registry.service.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.d.ts +9 -1
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js +34 -2
- package/dist/modules/instance-ai/repositories/instance-ai-event-log.repository.js.map +1 -1
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.d.ts +4 -0
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.js +14 -0
- package/dist/modules/instance-ai/repositories/instance-ai-run-snapshot.repository.js.map +1 -1
- package/dist/modules/instance-ai/run-trace-metadata.js +2 -1
- package/dist/modules/instance-ai/run-trace-metadata.js.map +1 -1
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js +5 -0
- package/dist/modules/instance-ai/sandbox/instance-ai-sandbox.service.js.map +1 -1
- package/dist/modules/instance-ai/storage/db-snapshot-storage.d.ts +4 -1
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js +2 -5
- package/dist/modules/instance-ai/storage/db-snapshot-storage.js.map +1 -1
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.d.ts +2 -0
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js +6 -2
- package/dist/modules/instance-ai/storage/typeorm-agent-memory.js.map +1 -1
- package/dist/modules/instance-ai/tracing/index.d.ts +1 -1
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.d.ts +9 -6
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js +18 -3
- package/dist/modules/instance-ai/tracing/instance-ai-tracing.service.js.map +1 -1
- package/dist/modules/mcp/mcp-api-key.service.js +1 -1
- package/dist/modules/mcp/mcp-api-key.service.js.map +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js +1 -1
- package/dist/modules/mcp/mcp-server-middleware.service.js.map +1 -1
- package/dist/modules/mcp/mcp.controller.js +7 -3
- package/dist/modules/mcp/mcp.controller.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +3 -3
- package/dist/modules/mcp/mcp.service.js +7 -5
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/mcp.types.d.ts +14 -1
- package/dist/modules/mcp/mcp.types.js.map +1 -1
- package/dist/modules/mcp/tool-schema.util.js +2 -3
- package/dist/modules/mcp/tool-schema.util.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.d.ts +1 -1
- package/dist/modules/mcp/tools/agents/agent-reference.js +2 -0
- package/dist/modules/mcp/tools/agents/agent-reference.js.map +1 -1
- package/dist/modules/mcp/tools/agents/agent-tools.service.js +1 -0
- package/dist/modules/mcp/tools/agents/agent-tools.service.js.map +1 -1
- package/dist/modules/mcp/tools/search-folders.tool.js +1 -1
- package/dist/modules/mcp/tools/search-folders.tool.js.map +1 -1
- package/dist/modules/mcp/tools/search-workflows.tool.d.ts +5 -2
- package/dist/modules/mcp/tools/search-workflows.tool.js +58 -7
- package/dist/modules/mcp/tools/search-workflows.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js +1 -1
- package/dist/modules/mcp/tools/workflow-builder/create-workflow-from-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/credential-validation.js +2 -21
- package/dist/modules/mcp/tools/workflow-builder/credential-validation.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js +2 -2
- package/dist/modules/mcp/tools/workflow-builder/update-workflow.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js +3 -25
- package/dist/modules/mcp/tools/workflow-builder/validate-workflow-code.tool.js.map +1 -1
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js +62 -13
- package/dist/modules/mcp/tools/workflow-builder/workflow-operations.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-orchestrator.d.ts +13 -3
- package/dist/modules/n8n-packages/engine/import-orchestrator.js +33 -3
- package/dist/modules/n8n-packages/engine/import-orchestrator.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-result.d.ts +3 -1
- package/dist/modules/n8n-packages/engine/import-result.js +2 -0
- package/dist/modules/n8n-packages/engine/import-result.js.map +1 -1
- package/dist/modules/n8n-packages/engine/import-telemetry.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/import-telemetry.js +9 -0
- package/dist/modules/n8n-packages/engine/import-telemetry.js.map +1 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.d.ts +6 -1
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js +16 -2
- package/dist/modules/n8n-packages/engine/n8n-package-parser.js.map +1 -1
- package/dist/modules/n8n-packages/engine/project-package-importer.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/project-package-importer.js +11 -0
- package/dist/modules/n8n-packages/engine/project-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/engine/workflow-package-importer.d.ts +2 -2
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js +2 -0
- package/dist/modules/n8n-packages/engine/workflow-package-importer.js.map +1 -1
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.d.ts +4 -0
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js +43 -0
- package/dist/modules/n8n-packages/entities/credential/credential-export-policy.js.map +1 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.d.ts +2 -0
- package/dist/modules/n8n-packages/entities/credential/credential.exporter.js +5 -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 +4 -2
- 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/data-table/data-table.exporter.js +2 -2
- package/dist/modules/n8n-packages/entities/data-table/data-table.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.d.ts +5 -1
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.js +24 -0
- package/dist/modules/n8n-packages/entities/folder/folder-conflict-policy.js.map +1 -1
- package/dist/modules/n8n-packages/entities/folder/folder-removal.types.d.ts +11 -0
- package/dist/modules/n8n-packages/entities/folder/folder-removal.types.js +3 -0
- package/dist/modules/n8n-packages/entities/folder/folder-removal.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder-remover.d.ts +14 -0
- package/dist/modules/n8n-packages/entities/folder/folder-remover.js +110 -0
- package/dist/modules/n8n-packages/entities/folder/folder-remover.js.map +1 -0
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js +4 -4
- package/dist/modules/n8n-packages/entities/folder/folder.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/project/project.exporter.js +4 -4
- package/dist/modules/n8n-packages/entities/project/project.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js +3 -3
- package/dist/modules/n8n-packages/entities/tag/tag.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js +2 -2
- package/dist/modules/n8n-packages/entities/variable/variable.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js +16 -16
- package/dist/modules/n8n-packages/entities/workflow/auto-included-workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow-removal.types.d.ts +21 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-removal.types.js +3 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-removal.types.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.d.ts +12 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js +109 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow-remover.js.map +1 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js +2 -2
- package/dist/modules/n8n-packages/entities/workflow/workflow.exporter.js.map +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.d.ts +1 -1
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js +2 -0
- package/dist/modules/n8n-packages/entities/workflow/workflow.serializer.js.map +1 -1
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.d.ts +9 -0
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.js +39 -0
- package/dist/modules/n8n-packages/io/directory/directory-package-writer.js.map +1 -0
- package/dist/modules/n8n-packages/io/package-writer.d.ts +2 -4
- package/dist/modules/n8n-packages/n8n-packages.service.d.ts +5 -1
- package/dist/modules/n8n-packages/n8n-packages.service.js +41 -16
- package/dist/modules/n8n-packages/n8n-packages.service.js.map +1 -1
- package/dist/modules/n8n-packages/n8n-packages.types.d.ts +57 -4
- package/dist/modules/n8n-packages/n8n-packages.types.js +10 -1
- package/dist/modules/n8n-packages/n8n-packages.types.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.d.ts +8 -0
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js +12 -1
- package/dist/modules/n8n-packages/spec/serialized/credential.schema.js.map +1 -1
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.d.ts +28 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js +7 -0
- package/dist/modules/n8n-packages/spec/serialized/workflow.schema.js.map +1 -1
- package/dist/modules/oauth-server/oauth-token.service.d.ts +1 -0
- package/dist/modules/oauth-server/oauth-token.service.js +12 -1
- package/dist/modules/oauth-server/oauth-token.service.js.map +1 -1
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-resource.resolver.js +0 -4
- 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.js +0 -4
- package/dist/modules/oauth-server/protected-resource-resolvers/form-trigger-test-resource.resolver.js.map +1 -1
- package/dist/modules/policy-infrastructure/policy-check-failed.error.d.ts +10 -0
- package/dist/modules/policy-infrastructure/policy-check-failed.error.js +14 -0
- package/dist/modules/policy-infrastructure/policy-check-failed.error.js.map +1 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.d.ts +14 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.js +121 -0
- package/dist/modules/policy-infrastructure/policy-decision.service.js.map +1 -0
- package/dist/modules/policy-infrastructure/policy-infrastructure.module.d.ts +4 -0
- package/dist/modules/policy-infrastructure/policy-infrastructure.module.js +23 -0
- package/dist/modules/policy-infrastructure/policy-infrastructure.module.js.map +1 -0
- package/dist/modules/provisioning.ee/constants.d.ts +1 -0
- package/dist/modules/provisioning.ee/constants.js +3 -1
- package/dist/modules/provisioning.ee/constants.js.map +1 -1
- package/dist/modules/provisioning.ee/errors/sso-access-denied.error.d.ts +4 -0
- package/dist/modules/provisioning.ee/errors/sso-access-denied.error.js +11 -0
- package/dist/modules/provisioning.ee/errors/sso-access-denied.error.js.map +1 -0
- package/dist/modules/provisioning.ee/provisioning.service.ee.js +4 -4
- package/dist/modules/provisioning.ee/provisioning.service.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.d.ts +1 -3
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js +16 -23
- package/dist/modules/provisioning.ee/role-mapping-rule.controller.ee.js.map +1 -1
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.d.ts +17 -5
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js +31 -9
- package/dist/modules/provisioning.ee/role-mapping-rule.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-export.service.ee.js +1 -0
- package/dist/modules/source-control.ee/source-control-export.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-git.service.ee.js +7 -19
- 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.d.ts +3 -5
- package/dist/modules/source-control.ee/source-control-helper.ee.js +10 -40
- package/dist/modules/source-control.ee/source-control-helper.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-import.service.ee.js +7 -2
- package/dist/modules/source-control.ee/source-control-import.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js +1 -1
- package/dist/modules/source-control.ee/source-control-status.service.ee.js.map +1 -1
- package/dist/modules/source-control.ee/types/exportable-workflow.d.ts +1 -0
- package/dist/modules/source-control.ee/types/source-control-workflow-version-id.d.ts +1 -0
- package/dist/modules/sso-oidc/oidc.controller.ee.js +23 -7
- package/dist/modules/sso-oidc/oidc.controller.ee.js.map +1 -1
- package/dist/modules/sso-saml/saml.controller.ee.js +5 -0
- package/dist/modules/sso-saml/saml.controller.ee.js.map +1 -1
- package/dist/modules/type-availability-policies/policy-evaluator.d.ts +2 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js +28 -0
- package/dist/modules/type-availability-policies/policy-evaluator.js.map +1 -0
- package/dist/modules/type-availability-policies/policy-rule.types.d.ts +23 -0
- package/dist/modules/type-availability-policies/policy-rule.types.js +3 -0
- package/dist/modules/type-availability-policies/policy-rule.types.js.map +1 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.d.ts +4 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js +18 -0
- package/dist/modules/type-availability-policies/type-availability-policies.module.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-access.service.d.ts +4 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-access.service.js +25 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-access.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-activity.service.d.ts +5 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-activity.service.js +14 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-activity.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-eligibility.service.js +9 -9
- package/dist/modules/workflow-reviews.ee/workflow-review-eligibility.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js +1 -2
- package/dist/modules/workflow-reviews.ee/workflow-review-feature-gate.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.d.ts +2 -3
- package/dist/modules/workflow-reviews.ee/workflow-review-inbox.service.js +5 -5
- 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 +30 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js +256 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-lifecycle.service.js.map +1 -0
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.d.ts +6 -6
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js +61 -52
- package/dist/modules/workflow-reviews.ee/workflow-review-request.service.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.d.ts +3 -2
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js +24 -1
- package/dist/modules/workflow-reviews.ee/workflow-review.mapper.js.map +1 -1
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js +2 -5
- package/dist/modules/workflow-reviews.ee/workflow-reviews.module.js.map +1 -1
- package/dist/policy/policy-cleared.d.ts +20 -0
- package/dist/policy/policy-cleared.js +22 -0
- package/dist/policy/policy-cleared.js.map +1 -0
- package/dist/policy/policy-enforcement-backend.d.ts +15 -0
- package/dist/policy/policy-enforcement-backend.js +3 -0
- package/dist/policy/policy-enforcement-backend.js.map +1 -0
- package/dist/policy/policy-enforcement.service.d.ts +21 -0
- package/dist/policy/policy-enforcement.service.js +87 -0
- package/dist/policy/policy-enforcement.service.js.map +1 -0
- package/dist/policy/policy-violation.error.d.ts +13 -0
- package/dist/policy/policy-violation.error.js +22 -0
- package/dist/policy/policy-violation.error.js.map +1 -0
- package/dist/posthog/index.js +1 -1
- package/dist/posthog/index.js.map +1 -1
- package/dist/public-api/public-api-controller.registry.js +2 -1
- package/dist/public-api/public-api-controller.registry.js.map +1 -1
- package/dist/public-api/public-api-route-resolver.d.ts +2 -2
- package/dist/public-api/public-api-route-resolver.js.map +1 -1
- package/dist/public-api/public-api-validation-error.d.ts +2 -0
- package/dist/public-api/public-api-validation-error.js +17 -0
- package/dist/public-api/public-api-validation-error.js.map +1 -0
- package/dist/public-api/types.d.ts +2 -9
- package/dist/public-api/v1/controllers/git-connections.public.controller.d.ts +20 -0
- package/dist/public-api/v1/controllers/git-connections.public.controller.js +278 -0
- package/dist/public-api/v1/controllers/git-connections.public.controller.js.map +1 -0
- package/dist/public-api/v1/controllers/index.d.ts +1 -0
- package/dist/public-api/v1/controllers/index.js +1 -0
- package/dist/public-api/v1/controllers/index.js.map +1 -1
- package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.d.ts +6 -1
- package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.js +117 -11
- package/dist/public-api/v1/controllers/role-mapping-rules.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/roles.public.controller.d.ts +2 -1
- package/dist/public-api/v1/controllers/roles.public.controller.js +46 -2
- package/dist/public-api/v1/controllers/roles.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/tags.public.controller.js +1 -18
- package/dist/public-api/v1/controllers/tags.public.controller.js.map +1 -1
- package/dist/public-api/v1/controllers/workflows.public.controller.d.ts +16 -3
- package/dist/public-api/v1/controllers/workflows.public.controller.js +169 -5
- package/dist/public-api/v1/controllers/workflows.public.controller.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js +3 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.d.ts +1 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js +2 -0
- package/dist/public-api/v1/handlers/n8n-packages/n8n-packages.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.js +3 -3
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.d.ts +0 -6
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +0 -72
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/openapi-gen/decorator-routes.d.ts +32 -0
- package/dist/public-api/v1/openapi-gen/decorator-routes.js +37 -9
- package/dist/public-api/v1/openapi-gen/decorator-routes.js.map +1 -1
- package/dist/public-api/v1/openapi.yml +5196 -1873
- package/dist/push/index.js +3 -3
- package/dist/push/index.js.map +1 -1
- package/dist/response-helper.js +1 -2
- package/dist/response-helper.js.map +1 -1
- package/dist/scaling/constants.d.ts +2 -2
- package/dist/scaling/constants.js +2 -0
- package/dist/scaling/constants.js.map +1 -1
- package/dist/scaling/pubsub/pubsub.event-map.d.ts +19 -0
- package/dist/scaling/pubsub/pubsub.types.d.ts +3 -1
- package/dist/scaling/pubsub/subscriber.service.d.ts +1 -0
- package/dist/scaling/pubsub/subscriber.service.js +24 -4
- package/dist/scaling/pubsub/subscriber.service.js.map +1 -1
- package/dist/scheduling/durable-job-provisioner.js +1 -1
- package/dist/scheduling/durable-job-provisioner.js.map +1 -1
- package/dist/scheduling/durable-scheduler.js +9 -0
- package/dist/scheduling/durable-scheduler.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.d.ts +2 -0
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.js +9 -0
- package/dist/scheduling/poll-trigger-node/durable-poller-chain.js.map +1 -0
- package/dist/scheduling/poll-trigger-node/poll-job-provider.d.ts +1 -3
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js +4 -8
- package/dist/scheduling/poll-trigger-node/poll-job-provider.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.d.ts +3 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js +9 -3
- package/dist/scheduling/poll-trigger-node/poll-trigger-job-registrar.js.map +1 -1
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.d.ts +8 -3
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js +86 -7
- package/dist/scheduling/poll-trigger-node/poll-trigger-task-handler.js.map +1 -1
- package/dist/services/engine-data-plane-proxy.service.d.ts +10 -0
- package/dist/services/engine-data-plane-proxy.service.js +33 -0
- package/dist/services/engine-data-plane-proxy.service.js.map +1 -0
- package/dist/services/engine-v2-dispatcher.service.d.ts +14 -0
- package/dist/services/engine-v2-dispatcher.service.js +93 -0
- package/dist/services/engine-v2-dispatcher.service.js.map +1 -0
- package/dist/services/folder-finder.service.d.ts +1 -0
- package/dist/services/folder-finder.service.js +9 -0
- package/dist/services/folder-finder.service.js.map +1 -1
- package/dist/services/folder.service.d.ts +5 -0
- package/dist/services/folder.service.js +7 -0
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/frontend.service.d.ts +3 -4
- package/dist/services/frontend.service.js +5 -13
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/node-resource-explorer.service.d.ts +1 -0
- package/dist/services/node-resource-explorer.service.js +72 -13
- package/dist/services/node-resource-explorer.service.js.map +1 -1
- package/dist/services/oauth-token-verifier-proxy.service.d.ts +11 -1
- package/dist/services/oauth-token-verifier-proxy.service.js +6 -0
- package/dist/services/oauth-token-verifier-proxy.service.js.map +1 -1
- package/dist/services/ownership-transfer/ownership-transfer.manifest.json +5 -0
- package/dist/services/role-authorization.d.ts +11 -2
- package/dist/services/role-authorization.js +15 -6
- package/dist/services/role-authorization.js.map +1 -1
- package/dist/services/role.service.d.ts +5 -1
- package/dist/services/role.service.js +7 -2
- package/dist/services/role.service.js.map +1 -1
- package/dist/utils/ai-service-retry.js +3 -4
- package/dist/utils/ai-service-retry.js.map +1 -1
- package/dist/webhooks/webhook-blank-file-inputs.d.ts +4 -0
- package/dist/webhooks/webhook-blank-file-inputs.js +32 -0
- package/dist/webhooks/webhook-blank-file-inputs.js.map +1 -0
- package/dist/webhooks/webhook-form-data.js +29 -15
- package/dist/webhooks/webhook-form-data.js.map +1 -1
- package/dist/webhooks/webhook-helpers.js +2 -2
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-sanitizer.js +10 -4
- package/dist/webhooks/webhook-request-sanitizer.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +2 -2
- package/dist/workflow-execute-additional-data.js +17 -6
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +2 -7
- package/dist/workflow-helpers.js +3 -34
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +3 -1
- package/dist/workflow-runner.js +7 -2
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/publication/heal-node-ids.d.ts +26 -0
- package/dist/workflows/publication/heal-node-ids.js +65 -0
- package/dist/workflows/publication/heal-node-ids.js.map +1 -0
- package/dist/workflows/publication/publication-result.d.ts +1 -1
- package/dist/workflows/publication/publication-status-reporter.js +8 -3
- package/dist/workflows/publication/publication-status-reporter.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-applier.d.ts +10 -1
- package/dist/workflows/publication/workflow-publication-applier.js +56 -3
- package/dist/workflows/publication/workflow-publication-applier.js.map +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js +1 -1
- package/dist/workflows/publication/workflow-publication-outbox-consumer.js.map +1 -1
- package/dist/workflows/triggers/enabled-trigger-nodes.d.ts +2 -1
- package/dist/workflows/triggers/enabled-trigger-nodes.js +5 -1
- package/dist/workflows/triggers/enabled-trigger-nodes.js.map +1 -1
- package/dist/workflows/triggers/poll-backoff-policy.d.ts +15 -0
- package/dist/workflows/triggers/poll-backoff-policy.js +78 -0
- package/dist/workflows/triggers/poll-backoff-policy.js.map +1 -0
- package/dist/workflows/triggers/poll-backoff.service.d.ts +30 -0
- package/dist/workflows/triggers/poll-backoff.service.js +121 -0
- package/dist/workflows/triggers/poll-backoff.service.js.map +1 -0
- package/dist/workflows/triggers/poll-cursor.service.d.ts +7 -5
- package/dist/workflows/triggers/poll-cursor.service.js +14 -6
- package/dist/workflows/triggers/poll-cursor.service.js.map +1 -1
- package/dist/workflows/triggers/workflow-trigger-activator.d.ts +1 -0
- package/dist/workflows/triggers/workflow-trigger-activator.js +31 -3
- package/dist/workflows/triggers/workflow-trigger-activator.js.map +1 -1
- package/dist/workflows/workflow-creation.service.d.ts +3 -1
- package/dist/workflows/workflow-creation.service.js +9 -2
- package/dist/workflows/workflow-creation.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +8 -0
- package/dist/workflows/workflow-finder.service.js +20 -0
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-mutation-hooks-proxy.service.d.ts +16 -6
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js +9 -6
- package/dist/workflows/workflow-mutation-hooks-proxy.service.js.map +1 -1
- package/dist/workflows/workflow-validation.service.js +2 -5
- package/dist/workflows/workflow-validation.service.js.map +1 -1
- package/dist/workflows/workflow.service.d.ts +15 -1
- package/dist/workflows/workflow.service.ee.d.ts +3 -1
- package/dist/workflows/workflow.service.ee.js +12 -6
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +77 -25
- package/dist/workflows/workflow.service.js.map +1 -1
- package/package.json +64 -62
- package/templates/form-shell.handlebars +92 -7
- package/templates/form-trigger-completion.handlebars +5 -3
- package/templates/form-trigger.handlebars +11 -4
- package/templates/partials/formHostNavigation.handlebars +44 -0
- package/dist/binary-data/binary-data-access.service.d.ts +0 -11
- package/dist/binary-data/binary-data-access.service.js +0 -50
- package/dist/binary-data/binary-data-access.service.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder-settings.controller.d.ts +0 -10
- package/dist/modules/agents/builder/agents-builder-settings.controller.js +0 -52
- package/dist/modules/agents/builder/agents-builder-settings.controller.js.map +0 -1
- package/dist/modules/agents/builder/agents-builder-settings.service.d.ts +0 -38
- package/dist/modules/agents/builder/agents-builder-settings.service.js +0 -174
- package/dist/modules/agents/builder/agents-builder-settings.service.js.map +0 -1
- package/dist/modules/data-table/utils/size-utils.d.ts +0 -2
- package/dist/modules/data-table/utils/size-utils.js +0 -19
- package/dist/modules/data-table/utils/size-utils.js.map +0 -1
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.d.ts +0 -18
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.js +0 -114
- package/dist/modules/workflow-reviews.ee/workflow-review-auto-close.service.js.map +0 -1
- package/dist/workflows/triggers/durable-poller-gate.service.d.ts +0 -19
- package/dist/workflows/triggers/durable-poller-gate.service.js +0 -78
- package/dist/workflows/triggers/durable-poller-gate.service.js.map +0 -1
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import type { WorkflowRequest } from '../../../types';
|
|
2
2
|
import type { PublicAPIEndpoint } from '../../shared/handler.types';
|
|
3
3
|
type WorkflowHandlers = {
|
|
4
|
-
createWorkflow: PublicAPIEndpoint<WorkflowRequest.Create>;
|
|
5
|
-
transferWorkflow: PublicAPIEndpoint<WorkflowRequest.Transfer>;
|
|
6
4
|
deleteWorkflow: PublicAPIEndpoint<WorkflowRequest.Get>;
|
|
7
5
|
getWorkflowVersion: PublicAPIEndpoint<WorkflowRequest.GetVersion>;
|
|
8
6
|
updateWorkflow: PublicAPIEndpoint<WorkflowRequest.Update>;
|
|
9
|
-
publishWorkflow: PublicAPIEndpoint<WorkflowRequest.Activate>;
|
|
10
|
-
unpublishWorkflow: PublicAPIEndpoint<WorkflowRequest.Activate>;
|
|
11
7
|
activateWorkflow: PublicAPIEndpoint<WorkflowRequest.Activate>;
|
|
12
8
|
deactivateWorkflow: PublicAPIEndpoint<WorkflowRequest.Activate>;
|
|
13
|
-
archiveWorkflow: PublicAPIEndpoint<WorkflowRequest.Get>;
|
|
14
|
-
unarchiveWorkflow: PublicAPIEndpoint<WorkflowRequest.Get>;
|
|
15
9
|
};
|
|
16
10
|
declare const workflowHandlers: WorkflowHandlers;
|
|
17
11
|
export = workflowHandlers;
|
|
@@ -2,18 +2,13 @@
|
|
|
2
2
|
const db_1 = require("@n8n/db");
|
|
3
3
|
const di_1 = require("@n8n/di");
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
5
|
const folder_not_found_error_1 = require("../../../../errors/folder-not-found.error");
|
|
7
6
|
const response_error_1 = require("../../../../errors/response-errors/abstract/response.error");
|
|
8
7
|
const bad_request_error_1 = require("../../../../errors/response-errors/bad-request.error");
|
|
9
8
|
const not_found_error_1 = require("../../../../errors/response-errors/not-found.error");
|
|
10
9
|
const event_service_1 = require("../../../../events/event.service");
|
|
11
|
-
const redaction_enforcement_service_1 = require("../../../../modules/redaction/redaction-enforcement.service");
|
|
12
|
-
const workflow_creation_service_1 = require("../../../../workflows/workflow-creation.service");
|
|
13
|
-
const workflow_entity_mapper_1 = require("../../../../workflows/workflow-entity-mapper");
|
|
14
10
|
const workflow_history_service_1 = require("../../../../workflows/workflow-history/workflow-history.service");
|
|
15
11
|
const workflow_service_1 = require("../../../../workflows/workflow.service");
|
|
16
|
-
const workflow_service_ee_1 = require("../../../../workflows/workflow.service.ee");
|
|
17
12
|
const global_middleware_1 = require("../../shared/middlewares/global.middleware");
|
|
18
13
|
const handleError = (error) => {
|
|
19
14
|
if (error instanceof folder_not_found_error_1.FolderNotFoundError) {
|
|
@@ -64,37 +59,6 @@ const unpublishWorkflow = [
|
|
|
64
59
|
},
|
|
65
60
|
];
|
|
66
61
|
const workflowHandlers = {
|
|
67
|
-
createWorkflow: [
|
|
68
|
-
(0, global_middleware_1.publicApiScope)('workflow:create'),
|
|
69
|
-
async (req, res) => {
|
|
70
|
-
const { projectId, parentFolderId, ...rest } = req.body;
|
|
71
|
-
if (rest.settings?.binaryMode !== undefined) {
|
|
72
|
-
delete rest.settings.binaryMode;
|
|
73
|
-
}
|
|
74
|
-
if (rest.settings?.credentialResolverId !== undefined) {
|
|
75
|
-
delete rest.settings.credentialResolverId;
|
|
76
|
-
}
|
|
77
|
-
const workflow = (0, workflow_entity_mapper_1.createWorkflowEntityFromPayload)(rest);
|
|
78
|
-
await di_1.Container.get(redaction_enforcement_service_1.RedactionEnforcementService).assertNewPolicyAllowed(workflow.settings?.redactionPolicy);
|
|
79
|
-
const createdWorkflow = await di_1.Container.get(workflow_creation_service_1.WorkflowCreationService).createWorkflow(req.user, workflow, {
|
|
80
|
-
projectId,
|
|
81
|
-
parentFolderId: parentFolderId ?? undefined,
|
|
82
|
-
publicApi: true,
|
|
83
|
-
source: 'api',
|
|
84
|
-
});
|
|
85
|
-
return res.json(createdWorkflow);
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
transferWorkflow: [
|
|
89
|
-
(0, global_middleware_1.publicApiScope)('workflow:move'),
|
|
90
|
-
(0, global_middleware_1.projectScope)('workflow:move', 'workflow'),
|
|
91
|
-
async (req, res) => {
|
|
92
|
-
const { id: workflowId } = req.params;
|
|
93
|
-
const body = zod_1.z.object({ destinationProjectId: zod_1.z.string() }).parse(req.body);
|
|
94
|
-
await di_1.Container.get(workflow_service_ee_1.EnterpriseWorkflowService).transferWorkflow(req.user, workflowId, body.destinationProjectId);
|
|
95
|
-
return res.status(204).send();
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
62
|
deleteWorkflow: [
|
|
99
63
|
(0, global_middleware_1.publicApiScope)('workflow:delete'),
|
|
100
64
|
(0, global_middleware_1.projectScope)('workflow:delete', 'workflow'),
|
|
@@ -157,47 +121,11 @@ const workflowHandlers = {
|
|
|
157
121
|
}
|
|
158
122
|
},
|
|
159
123
|
],
|
|
160
|
-
publishWorkflow,
|
|
161
|
-
unpublishWorkflow,
|
|
162
124
|
activateWorkflow: [(0, global_middleware_1.deprecated)({ since: new Date('2026-07-23T00:00:00Z') }), ...publishWorkflow],
|
|
163
125
|
deactivateWorkflow: [
|
|
164
126
|
(0, global_middleware_1.deprecated)({ since: new Date('2026-07-23T00:00:00Z') }),
|
|
165
127
|
...unpublishWorkflow,
|
|
166
128
|
],
|
|
167
|
-
archiveWorkflow: [
|
|
168
|
-
(0, global_middleware_1.publicApiScope)('workflow:delete'),
|
|
169
|
-
(0, global_middleware_1.projectScope)('workflow:delete', 'workflow'),
|
|
170
|
-
async (req, res) => {
|
|
171
|
-
const { id } = req.params;
|
|
172
|
-
try {
|
|
173
|
-
const workflow = await di_1.Container.get(workflow_service_1.WorkflowService).archiveForPublicApi(req.user, id);
|
|
174
|
-
if (!workflow) {
|
|
175
|
-
throw new not_found_error_1.NotFoundError('Workflow not found');
|
|
176
|
-
}
|
|
177
|
-
return res.json(workflow);
|
|
178
|
-
}
|
|
179
|
-
catch (error) {
|
|
180
|
-
return handleError(error);
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
unarchiveWorkflow: [
|
|
185
|
-
(0, global_middleware_1.publicApiScope)('workflow:delete'),
|
|
186
|
-
(0, global_middleware_1.projectScope)('workflow:delete', 'workflow'),
|
|
187
|
-
async (req, res) => {
|
|
188
|
-
const { id } = req.params;
|
|
189
|
-
try {
|
|
190
|
-
const workflow = await di_1.Container.get(workflow_service_1.WorkflowService).unarchiveForPublicApi(req.user, id);
|
|
191
|
-
if (!workflow) {
|
|
192
|
-
throw new not_found_error_1.NotFoundError('Workflow not found');
|
|
193
|
-
}
|
|
194
|
-
return res.json(workflow);
|
|
195
|
-
}
|
|
196
|
-
catch (error) {
|
|
197
|
-
return handleError(error);
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
129
|
};
|
|
202
130
|
module.exports = workflowHandlers;
|
|
203
131
|
//# sourceMappingURL=workflows.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.handler.js","sourceRoot":"","sources":["../../../../../src/public-api/v1/handlers/workflows/workflows.handler.ts"],"names":[],"mappings":";AAAA,gCAAyC;AACzC,gCAAoC;AACpC,+CAA4C;
|
|
1
|
+
{"version":3,"file":"workflows.handler.js","sourceRoot":"","sources":["../../../../../src/public-api/v1/handlers/workflows/workflows.handler.ts"],"names":[],"mappings":";AAAA,gCAAyC;AACzC,gCAAoC;AACpC,+CAA4C;AAE5C,4EAAsE;AACtE,qFAAiF;AACjF,kFAA6E;AAC7E,8EAAyE;AACzE,0D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AE,eAAe,GAAG,IAAI,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC;YAM7C,IAAI,UAAU,CAAC,QAAQ,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;gBACnD,OAAO,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC;YACvC,CAAC;YACD,IAAI,UAAU,CAAC,QAAQ,EAAE,oBAAoB,KAAK,SAAS,EAAE,CAAC;gBAC7D,OAAO,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC;YACjD,CAAC;YAED,IAAI,CAAC;gBAEJ,MAAM,eAAe,GAAG,MAAM,cAAS,CAAC,GAAG,CAAC,kCAAe,CAAC,CAAC,MAAM,CAClE,GAAG,CAAC,IAAI,EACR,UAAU,EACV,EAAE,EACF;oBACC,cAAc,EAAE,sBAAsB;oBACtC,SAAS,EAAE,IAAI;oBACf,SAAS,EAAE,IAAI;oBACf,eAAe;oBACf,MAAM,EAAE,KAAK;iBACb,CACD,CAAC;gBAEF,OAAO,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YAClC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC;QACF,CAAC;KACD;IACD,gBAAgB,EAAE,CAAC,IAAA,8BAAU,EAAC,EAAE,KAAK,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC,EAAE,CAAC,EAAE,GAAG,eAAe,CAAC;IAC/F,kBAAkB,EAAE;QACnB,IAAA,8BAAU,EAAC,EAAE,KAAK,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC,EAAE,CAAC;QACvD,GAAG,iBAAiB;KACpB;CACD,CAAC;AAEF,iBAAS,gBAAgB,CAAC"}
|
|
@@ -4,6 +4,37 @@ import type { RouteConfig } from '@asteasolutions/zod-to-openapi';
|
|
|
4
4
|
import type { ResponseDtoClass } from '@n8n/decorators';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import type { ResolvedPublicApiRoute } from '../../../public-api/public-api-route-resolver';
|
|
7
|
+
export declare const ERROR_RESPONSE_REFS: {
|
|
8
|
+
readonly 400: {
|
|
9
|
+
readonly $ref: '../../../../shared/spec/responses/badRequest.yml';
|
|
10
|
+
};
|
|
11
|
+
readonly 401: {
|
|
12
|
+
readonly $ref: '../../../../shared/spec/responses/unauthorized.yml';
|
|
13
|
+
};
|
|
14
|
+
readonly 402: {
|
|
15
|
+
readonly $ref: '../../../../shared/spec/responses/paymentRequired.yml';
|
|
16
|
+
};
|
|
17
|
+
readonly 403: {
|
|
18
|
+
readonly $ref: '../../../../shared/spec/responses/forbidden.yml';
|
|
19
|
+
};
|
|
20
|
+
readonly 404: {
|
|
21
|
+
readonly $ref: '../../../../shared/spec/responses/notFound.yml';
|
|
22
|
+
};
|
|
23
|
+
readonly 409: {
|
|
24
|
+
readonly $ref: '../../../../shared/spec/responses/conflict.yml';
|
|
25
|
+
};
|
|
26
|
+
readonly 415: {
|
|
27
|
+
readonly $ref: '../../../../shared/spec/responses/unsupportedMediaType.yml';
|
|
28
|
+
};
|
|
29
|
+
readonly 422: {
|
|
30
|
+
readonly $ref: '../../../../shared/spec/responses/unprocessableEntity.yml';
|
|
31
|
+
};
|
|
32
|
+
readonly 503: {
|
|
33
|
+
readonly $ref: '../../../../shared/spec/responses/serviceUnavailable.yml';
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type DocumentedErrorStatus = keyof typeof ERROR_RESPONSE_REFS;
|
|
37
|
+
export declare const ERROR_RESPONSE_DESCRIPTIONS: Record<DocumentedErrorStatus, string>;
|
|
7
38
|
export type NamedResponseDto = ResponseDtoClass & {
|
|
8
39
|
schema: z.ZodTypeAny;
|
|
9
40
|
name: string;
|
|
@@ -18,3 +49,4 @@ export interface GeneratedDecoratorOperation {
|
|
|
18
49
|
config: RouteConfig;
|
|
19
50
|
}
|
|
20
51
|
export declare function getDecoratorGeneratedOperations(resolveSchema?: SchemaResolver): GeneratedDecoratorOperation[];
|
|
52
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERROR_RESPONSE_DESCRIPTIONS = exports.ERROR_RESPONSE_REFS = void 0;
|
|
3
4
|
exports.getSharedResponseSchemas = getSharedResponseSchemas;
|
|
4
5
|
exports.buildRequestBodyJsonSchema = buildRequestBodyJsonSchema;
|
|
5
6
|
exports.getDecoratorGeneratedOperations = getDecoratorGeneratedOperations;
|
|
@@ -16,7 +17,7 @@ const SHARED_PAGINATION_PARAMS = {
|
|
|
16
17
|
cursor: { $ref: '../../../../shared/spec/parameters/cursor.yml' },
|
|
17
18
|
offset: { $ref: '../../../../shared/spec/parameters/offset.yml' },
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
+
exports.ERROR_RESPONSE_REFS = {
|
|
20
21
|
400: { $ref: '../../../../shared/spec/responses/badRequest.yml' },
|
|
21
22
|
401: { $ref: '../../../../shared/spec/responses/unauthorized.yml' },
|
|
22
23
|
402: { $ref: '../../../../shared/spec/responses/paymentRequired.yml' },
|
|
@@ -24,6 +25,22 @@ const ERROR_RESPONSE_REFS = {
|
|
|
24
25
|
404: { $ref: '../../../../shared/spec/responses/notFound.yml' },
|
|
25
26
|
409: { $ref: '../../../../shared/spec/responses/conflict.yml' },
|
|
26
27
|
415: { $ref: '../../../../shared/spec/responses/unsupportedMediaType.yml' },
|
|
28
|
+
422: { $ref: '../../../../shared/spec/responses/unprocessableEntity.yml' },
|
|
29
|
+
503: { $ref: '../../../../shared/spec/responses/serviceUnavailable.yml' },
|
|
30
|
+
};
|
|
31
|
+
function isDocumentedErrorStatus(status) {
|
|
32
|
+
return status in exports.ERROR_RESPONSE_REFS;
|
|
33
|
+
}
|
|
34
|
+
exports.ERROR_RESPONSE_DESCRIPTIONS = {
|
|
35
|
+
400: 'The request is invalid or provides malformed data.',
|
|
36
|
+
401: 'Unauthorized',
|
|
37
|
+
402: 'Payment required',
|
|
38
|
+
403: 'Forbidden',
|
|
39
|
+
404: 'The specified resource was not found.',
|
|
40
|
+
409: 'Conflict',
|
|
41
|
+
415: 'Unsupported media type.',
|
|
42
|
+
422: 'Unprocessable Entity',
|
|
43
|
+
503: 'The requested service is temporarily unavailable.',
|
|
27
44
|
};
|
|
28
45
|
function hasNamedSchema(dto) {
|
|
29
46
|
if (dto === null || (typeof dto !== 'object' && typeof dto !== 'function')) {
|
|
@@ -113,23 +130,34 @@ function buildResponses(route, resolveSchema) {
|
|
|
113
130
|
},
|
|
114
131
|
};
|
|
115
132
|
if (route.requestBodyDto ?? route.requestQueryDto) {
|
|
116
|
-
responses[400] = ERROR_RESPONSE_REFS[400];
|
|
133
|
+
responses[400] = exports.ERROR_RESPONSE_REFS[400];
|
|
117
134
|
}
|
|
118
135
|
if (route.requestBodyDto) {
|
|
119
|
-
responses[415] = ERROR_RESPONSE_REFS[415];
|
|
136
|
+
responses[415] = exports.ERROR_RESPONSE_REFS[415];
|
|
120
137
|
}
|
|
121
|
-
responses[401] = ERROR_RESPONSE_REFS[401];
|
|
138
|
+
responses[401] = exports.ERROR_RESPONSE_REFS[401];
|
|
122
139
|
if (route.apiKeyScope) {
|
|
123
|
-
responses[403] = ERROR_RESPONSE_REFS[403];
|
|
140
|
+
responses[403] = exports.ERROR_RESPONSE_REFS[403];
|
|
124
141
|
}
|
|
125
|
-
for (const status of route.errorResponses ?? []) {
|
|
126
|
-
|
|
127
|
-
if (!ref) {
|
|
142
|
+
for (const { status, dto, description } of route.errorResponses ?? []) {
|
|
143
|
+
if (!isDocumentedErrorStatus(status)) {
|
|
128
144
|
throw new n8n_workflow_1.UnexpectedError(`@ApiErrorResponse(${status}) on ${route.controllerName}.${route.handlerName} has no ` +
|
|
129
145
|
'matching shared response file in ERROR_RESPONSE_REFS - add one to shared/spec/responses/ ' +
|
|
130
146
|
'and register it there.');
|
|
131
147
|
}
|
|
132
|
-
|
|
148
|
+
const ref = exports.ERROR_RESPONSE_REFS[status];
|
|
149
|
+
if (dto && hasNamedSchema(dto)) {
|
|
150
|
+
responses[status] = {
|
|
151
|
+
description: description ?? exports.ERROR_RESPONSE_DESCRIPTIONS[status],
|
|
152
|
+
content: { 'application/json': { schema: dto.schema } },
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
else if (description) {
|
|
156
|
+
responses[status] = { description };
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
responses[status] = ref;
|
|
160
|
+
}
|
|
133
161
|
}
|
|
134
162
|
return responses;
|
|
135
163
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator-routes.js","sourceRoot":"","sources":["../../../../src/public-api/v1/openapi-gen/decorator-routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decorator-routes.js","sourceRoot":"","sources":["../../../../src/public-api/v1/openapi-gen/decorator-routes.ts"],"names":[],"mappings":";;;;;;AACA,wBAAsB;AAItB,0BAAwB;AAExB,mEAAqF;AAGrF,oDAAgD;AAChD,+CAA+C;AAC/C,6BAAwB;AAGxB,sFAKgD;AAEhD,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAG7C,MAAM,wBAAwB,GAAqC;IAClE,KAAK,EAAE,EAAE,IAAI,EAAE,8CAA8C,EAAE;IAC/D,MAAM,EAAE,EAAE,IAAI,EAAE,+CAA+C,EAAE;IACjE,MAAM,EAAE,EAAE,IAAI,EAAE,+CAA+C,EAAE;CACjE,CAAC;AAGW,QAAA,mBAAmB,GAAG;IAClC,GAAG,EAAE,EAAE,IAAI,EAAE,kDAAkD,EAAE;IACjE,GAAG,EAAE,EAAE,IAAI,EAAE,oDAAoD,EAAE;IACnE,GAAG,EAAE,EAAE,IAAI,EAAE,uDAAuD,EAAE;IACtE,GAAG,EAAE,EAAE,IAAI,EAAE,iDAAiD,EAAE;IAChE,GAAG,EAAE,EAAE,IAAI,EAAE,gDAAgD,EAAE;IAC/D,GAAG,EAAE,EAAE,IAAI,EAAE,g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