@atom8n/n8n-workflow 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/cjs/augment-object.d.ts +3 -0
- package/dist/cjs/augment-object.d.ts.map +1 -0
- package/dist/cjs/augment-object.js +157 -0
- package/dist/cjs/augment-object.js.map +1 -0
- package/dist/cjs/common/get-child-nodes.d.ts +3 -0
- package/dist/cjs/common/get-child-nodes.d.ts.map +1 -0
- package/dist/cjs/common/get-child-nodes.js +19 -0
- package/dist/cjs/common/get-child-nodes.js.map +1 -0
- package/dist/cjs/common/get-connected-nodes.d.ts +10 -0
- package/dist/cjs/common/get-connected-nodes.d.ts.map +1 -0
- package/dist/cjs/common/get-connected-nodes.js +84 -0
- package/dist/cjs/common/get-connected-nodes.js.map +1 -0
- package/dist/cjs/common/get-node-by-name.d.ts +9 -0
- package/dist/cjs/common/get-node-by-name.d.ts.map +1 -0
- package/dist/cjs/common/get-node-by-name.js +29 -0
- package/dist/cjs/common/get-node-by-name.js.map +1 -0
- package/dist/cjs/common/get-parent-nodes.d.ts +9 -0
- package/dist/cjs/common/get-parent-nodes.d.ts.map +1 -0
- package/dist/cjs/common/get-parent-nodes.js +25 -0
- package/dist/cjs/common/get-parent-nodes.js.map +1 -0
- package/dist/cjs/common/index.d.ts +6 -0
- package/dist/cjs/common/index.d.ts.map +1 -0
- package/dist/cjs/common/index.js +32 -0
- package/dist/cjs/common/index.js.map +1 -0
- package/dist/cjs/common/map-connections-by-destination.d.ts +3 -0
- package/dist/cjs/common/map-connections-by-destination.d.ts.map +1 -0
- package/dist/cjs/common/map-connections-by-destination.js +53 -0
- package/dist/cjs/common/map-connections-by-destination.js.map +1 -0
- package/dist/cjs/connections-diff.d.ts +16 -0
- package/dist/cjs/connections-diff.d.ts.map +1 -0
- package/dist/cjs/connections-diff.js +75 -0
- package/dist/cjs/connections-diff.js.map +1 -0
- package/dist/cjs/constants.d.ts +83 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +123 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/cron.d.ts +35 -0
- package/dist/cjs/cron.d.ts.map +1 -0
- package/dist/cjs/cron.js +37 -0
- package/dist/cjs/cron.js.map +1 -0
- package/dist/cjs/data-table.types.d.ts +140 -0
- package/dist/cjs/data-table.types.d.ts.map +1 -0
- package/dist/cjs/data-table.types.js +21 -0
- package/dist/cjs/data-table.types.js.map +1 -0
- package/dist/cjs/deferred-promise.d.ts +10 -0
- package/dist/cjs/deferred-promise.d.ts.map +1 -0
- package/dist/cjs/deferred-promise.js +22 -0
- package/dist/cjs/deferred-promise.js.map +1 -0
- package/dist/cjs/errors/abstract/execution-base.error.d.ts +27 -0
- package/dist/cjs/errors/abstract/execution-base.error.d.ts.map +1 -0
- package/dist/cjs/errors/abstract/execution-base.error.js +50 -0
- package/dist/cjs/errors/abstract/execution-base.error.js.map +1 -0
- package/dist/cjs/errors/abstract/node.error.d.ts +48 -0
- package/dist/cjs/errors/abstract/node.error.d.ts.map +1 -0
- package/dist/cjs/errors/abstract/node.error.js +177 -0
- package/dist/cjs/errors/abstract/node.error.js.map +1 -0
- package/dist/cjs/errors/base/base.error.d.ts +26 -0
- package/dist/cjs/errors/base/base.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/base.error.js +53 -0
- package/dist/cjs/errors/base/base.error.js.map +1 -0
- package/dist/cjs/errors/base/operational.error.d.ts +16 -0
- package/dist/cjs/errors/base/operational.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/operational.error.js +29 -0
- package/dist/cjs/errors/base/operational.error.js.map +1 -0
- package/dist/cjs/errors/base/unexpected.error.d.ts +16 -0
- package/dist/cjs/errors/base/unexpected.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/unexpected.error.js +29 -0
- package/dist/cjs/errors/base/unexpected.error.js.map +1 -0
- package/dist/cjs/errors/base/user.error.d.ts +18 -0
- package/dist/cjs/errors/base/user.error.d.ts.map +1 -0
- package/dist/cjs/errors/base/user.error.js +29 -0
- package/dist/cjs/errors/base/user.error.js.map +1 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.d.ts +4 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.js +18 -0
- package/dist/cjs/errors/cli-subworkflow-operation.error.js.map +1 -0
- package/dist/cjs/errors/db-connection-timeout-error.d.ts +9 -0
- package/dist/cjs/errors/db-connection-timeout-error.d.ts.map +1 -0
- package/dist/cjs/errors/db-connection-timeout-error.js +23 -0
- package/dist/cjs/errors/db-connection-timeout-error.js.map +1 -0
- package/dist/cjs/errors/ensure-error.d.ts +3 -0
- package/dist/cjs/errors/ensure-error.d.ts.map +1 -0
- package/dist/cjs/errors/ensure-error.js +23 -0
- package/dist/cjs/errors/ensure-error.js.map +1 -0
- package/dist/cjs/errors/execution-cancelled.error.d.ts +16 -0
- package/dist/cjs/errors/execution-cancelled.error.d.ts.map +1 -0
- package/dist/cjs/errors/execution-cancelled.error.js +48 -0
- package/dist/cjs/errors/execution-cancelled.error.js.map +1 -0
- package/dist/cjs/errors/expression-extension.error.d.ts +4 -0
- package/dist/cjs/errors/expression-extension.error.d.ts.map +1 -0
- package/dist/cjs/errors/expression-extension.error.js +18 -0
- package/dist/cjs/errors/expression-extension.error.js.map +1 -0
- package/dist/cjs/errors/expression.error.d.ts +22 -0
- package/dist/cjs/errors/expression.error.d.ts.map +1 -0
- package/dist/cjs/errors/expression.error.js +48 -0
- package/dist/cjs/errors/expression.error.js.map +1 -0
- package/dist/cjs/errors/index.d.ts +24 -0
- package/dist/cjs/errors/index.d.ts.map +1 -0
- package/dist/cjs/errors/index.js +63 -0
- package/dist/cjs/errors/index.js.map +1 -0
- package/dist/cjs/errors/node-api.error.d.ts +39 -0
- package/dist/cjs/errors/node-api.error.d.ts.map +1 -0
- package/dist/cjs/errors/node-api.error.js +257 -0
- package/dist/cjs/errors/node-api.error.js.map +1 -0
- package/dist/cjs/errors/node-operation.error.d.ts +11 -0
- package/dist/cjs/errors/node-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/node-operation.error.js +53 -0
- package/dist/cjs/errors/node-operation.error.js.map +1 -0
- package/dist/cjs/errors/node-ssl.error.d.ts +5 -0
- package/dist/cjs/errors/node-ssl.error.d.ts.map +1 -0
- package/dist/cjs/errors/node-ssl.error.js +21 -0
- package/dist/cjs/errors/node-ssl.error.js.map +1 -0
- package/dist/cjs/errors/subworkflow-operation.error.d.ts +7 -0
- package/dist/cjs/errors/subworkflow-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/subworkflow-operation.error.js +30 -0
- package/dist/cjs/errors/subworkflow-operation.error.js.map +1 -0
- package/dist/cjs/errors/trigger-close.error.d.ts +11 -0
- package/dist/cjs/errors/trigger-close.error.d.ts.map +1 -0
- package/dist/cjs/errors/trigger-close.error.js +24 -0
- package/dist/cjs/errors/trigger-close.error.js.map +1 -0
- package/dist/cjs/errors/webhook-taken.error.d.ts +5 -0
- package/dist/cjs/errors/webhook-taken.error.d.ts.map +1 -0
- package/dist/cjs/errors/webhook-taken.error.js +21 -0
- package/dist/cjs/errors/webhook-taken.error.js.map +1 -0
- package/dist/cjs/errors/workflow-activation.error.d.ts +20 -0
- package/dist/cjs/errors/workflow-activation.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-activation.error.js +54 -0
- package/dist/cjs/errors/workflow-activation.error.js.map +1 -0
- package/dist/cjs/errors/workflow-configuration.error.d.ts +7 -0
- package/dist/cjs/errors/workflow-configuration.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-configuration.error.js +21 -0
- package/dist/cjs/errors/workflow-configuration.error.js.map +1 -0
- package/dist/cjs/errors/workflow-deactivation.error.d.ts +4 -0
- package/dist/cjs/errors/workflow-deactivation.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-deactivation.error.js +18 -0
- package/dist/cjs/errors/workflow-deactivation.error.js.map +1 -0
- package/dist/cjs/errors/workflow-operation.error.d.ts +11 -0
- package/dist/cjs/errors/workflow-operation.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-operation.error.js +32 -0
- package/dist/cjs/errors/workflow-operation.error.js.map +1 -0
- package/dist/cjs/evaluation-helpers.d.ts +22 -0
- package/dist/cjs/evaluation-helpers.d.ts.map +1 -0
- package/dist/cjs/evaluation-helpers.js +38 -0
- package/dist/cjs/evaluation-helpers.js.map +1 -0
- package/dist/cjs/execution-context-establishment-hooks.d.ts +38 -0
- package/dist/cjs/execution-context-establishment-hooks.d.ts.map +1 -0
- package/dist/cjs/execution-context-establishment-hooks.js +52 -0
- package/dist/cjs/execution-context-establishment-hooks.js.map +1 -0
- package/dist/cjs/execution-context.d.ts +113 -0
- package/dist/cjs/execution-context.d.ts.map +1 -0
- package/dist/cjs/execution-context.js +127 -0
- package/dist/cjs/execution-context.js.map +1 -0
- package/dist/cjs/execution-status.d.ts +3 -0
- package/dist/cjs/execution-status.d.ts.map +1 -0
- package/dist/cjs/execution-status.js +24 -0
- package/dist/cjs/execution-status.js.map +1 -0
- package/dist/cjs/expression-evaluator-proxy.d.ts +6 -0
- package/dist/cjs/expression-evaluator-proxy.d.ts.map +1 -0
- package/dist/cjs/expression-evaluator-proxy.js +30 -0
- package/dist/cjs/expression-evaluator-proxy.js.map +1 -0
- package/dist/cjs/expression-sandboxing.d.ts +24 -0
- package/dist/cjs/expression-sandboxing.d.ts.map +1 -0
- package/dist/cjs/expression-sandboxing.js +210 -0
- package/dist/cjs/expression-sandboxing.js.map +1 -0
- package/dist/cjs/expression.d.ts +48 -0
- package/dist/cjs/expression.d.ts.map +1 -0
- package/dist/cjs/expression.js +362 -0
- package/dist/cjs/expression.js.map +1 -0
- package/dist/cjs/expressions/expression-helpers.d.ts +6 -0
- package/dist/cjs/expressions/expression-helpers.d.ts.map +1 -0
- package/dist/cjs/expressions/expression-helpers.js +24 -0
- package/dist/cjs/expressions/expression-helpers.js.map +1 -0
- package/dist/cjs/extensions/array-extensions.d.ts +34 -0
- package/dist/cjs/extensions/array-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/array-extensions.js +632 -0
- package/dist/cjs/extensions/array-extensions.js.map +1 -0
- package/dist/cjs/extensions/boolean-extensions.d.ts +6 -0
- package/dist/cjs/extensions/boolean-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/boolean-extensions.js +49 -0
- package/dist/cjs/extensions/boolean-extensions.js.map +1 -0
- package/dist/cjs/extensions/date-extensions.d.ts +3 -0
- package/dist/cjs/extensions/date-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/date-extensions.js +528 -0
- package/dist/cjs/extensions/date-extensions.js.map +1 -0
- package/dist/cjs/extensions/expression-extension.d.ts +32 -0
- package/dist/cjs/extensions/expression-extension.d.ts.map +1 -0
- package/dist/cjs/extensions/expression-extension.js +491 -0
- package/dist/cjs/extensions/expression-extension.js.map +1 -0
- package/dist/cjs/extensions/expression-parser.d.ts +14 -0
- package/dist/cjs/extensions/expression-parser.d.ts.map +1 -0
- package/dist/cjs/extensions/expression-parser.js +94 -0
- package/dist/cjs/extensions/expression-parser.js.map +1 -0
- package/dist/cjs/extensions/extended-functions.d.ts +28 -0
- package/dist/cjs/extensions/extended-functions.d.ts.map +1 -0
- package/dist/cjs/extensions/extended-functions.js +89 -0
- package/dist/cjs/extensions/extended-functions.js.map +1 -0
- package/dist/cjs/extensions/extensions.d.ts +52 -0
- package/dist/cjs/extensions/extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/extensions.js +13 -0
- package/dist/cjs/extensions/extensions.js.map +1 -0
- package/dist/cjs/extensions/index.d.ts +4 -0
- package/dist/cjs/extensions/index.d.ts.map +1 -0
- package/dist/cjs/extensions/index.js +21 -0
- package/dist/cjs/extensions/index.js.map +1 -0
- package/dist/cjs/extensions/number-extensions.d.ts +27 -0
- package/dist/cjs/extensions/number-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/number-extensions.js +236 -0
- package/dist/cjs/extensions/number-extensions.js.map +1 -0
- package/dist/cjs/extensions/object-extensions.d.ts +46 -0
- package/dist/cjs/extensions/object-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/object-extensions.js +297 -0
- package/dist/cjs/extensions/object-extensions.js.map +1 -0
- package/dist/cjs/extensions/string-extensions.d.ts +38 -0
- package/dist/cjs/extensions/string-extensions.d.ts.map +1 -0
- package/dist/cjs/extensions/string-extensions.js +791 -0
- package/dist/cjs/extensions/string-extensions.js.map +1 -0
- package/dist/cjs/extensions/utils.d.ts +4 -0
- package/dist/cjs/extensions/utils.d.ts.map +1 -0
- package/dist/cjs/extensions/utils.js +42 -0
- package/dist/cjs/extensions/utils.js.map +1 -0
- package/dist/cjs/from-ai-parse-utils.d.ts +44 -0
- package/dist/cjs/from-ai-parse-utils.d.ts.map +1 -0
- package/dist/cjs/from-ai-parse-utils.js +297 -0
- package/dist/cjs/from-ai-parse-utils.js.map +1 -0
- package/dist/cjs/global-state.d.ts +6 -0
- package/dist/cjs/global-state.d.ts.map +1 -0
- package/dist/cjs/global-state.js +23 -0
- package/dist/cjs/global-state.js.map +1 -0
- package/dist/cjs/graph/graph-utils.d.ts +57 -0
- package/dist/cjs/graph/graph-utils.d.ts.map +1 -0
- package/dist/cjs/graph/graph-utils.js +195 -0
- package/dist/cjs/graph/graph-utils.js.map +1 -0
- package/dist/cjs/index.d.ts +63 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +132 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interfaces.d.ts +2483 -0
- package/dist/cjs/interfaces.d.ts.map +1 -0
- package/dist/cjs/interfaces.js +54 -0
- package/dist/cjs/interfaces.js.map +1 -0
- package/dist/cjs/logger-proxy.d.ts +7 -0
- package/dist/cjs/logger-proxy.d.ts.map +1 -0
- package/dist/cjs/logger-proxy.js +26 -0
- package/dist/cjs/logger-proxy.js.map +1 -0
- package/dist/cjs/message-event-bus.d.ts +119 -0
- package/dist/cjs/message-event-bus.d.ts.map +1 -0
- package/dist/cjs/message-event-bus.js +96 -0
- package/dist/cjs/message-event-bus.js.map +1 -0
- package/dist/cjs/metadata-utils.d.ts +5 -0
- package/dist/cjs/metadata-utils.d.ts.map +1 -0
- package/dist/cjs/metadata-utils.js +37 -0
- package/dist/cjs/metadata-utils.js.map +1 -0
- package/dist/cjs/native-methods/array.methods.d.ts +3 -0
- package/dist/cjs/native-methods/array.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/array.methods.js +558 -0
- package/dist/cjs/native-methods/array.methods.js.map +1 -0
- package/dist/cjs/native-methods/boolean.methods.d.ts +3 -0
- package/dist/cjs/native-methods/boolean.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/boolean.methods.js +31 -0
- package/dist/cjs/native-methods/boolean.methods.js.map +1 -0
- package/dist/cjs/native-methods/index.d.ts +4 -0
- package/dist/cjs/native-methods/index.d.ts.map +1 -0
- package/dist/cjs/native-methods/index.js +27 -0
- package/dist/cjs/native-methods/index.js.map +1 -0
- package/dist/cjs/native-methods/number.methods.d.ts +3 -0
- package/dist/cjs/native-methods/number.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/number.methods.js +95 -0
- package/dist/cjs/native-methods/number.methods.js.map +1 -0
- package/dist/cjs/native-methods/object.methods.d.ts +3 -0
- package/dist/cjs/native-methods/object.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/object.methods.js +18 -0
- package/dist/cjs/native-methods/object.methods.js.map +1 -0
- package/dist/cjs/native-methods/string.methods.d.ts +3 -0
- package/dist/cjs/native-methods/string.methods.d.ts.map +1 -0
- package/dist/cjs/native-methods/string.methods.js +506 -0
- package/dist/cjs/native-methods/string.methods.js.map +1 -0
- package/dist/cjs/node-helpers.d.ts +153 -0
- package/dist/cjs/node-helpers.d.ts.map +1 -0
- package/dist/cjs/node-helpers.js +1419 -0
- package/dist/cjs/node-helpers.js.map +1 -0
- package/dist/cjs/node-parameters/filter-parameter.d.ts +21 -0
- package/dist/cjs/node-parameters/filter-parameter.d.ts.map +1 -0
- package/dist/cjs/node-parameters/filter-parameter.js +390 -0
- package/dist/cjs/node-parameters/filter-parameter.js.map +1 -0
- package/dist/cjs/node-parameters/parameter-type-validation.d.ts +22 -0
- package/dist/cjs/node-parameters/parameter-type-validation.d.ts.map +1 -0
- package/dist/cjs/node-parameters/parameter-type-validation.js +141 -0
- package/dist/cjs/node-parameters/parameter-type-validation.js.map +1 -0
- package/dist/cjs/node-parameters/path-utils.d.ts +11 -0
- package/dist/cjs/node-parameters/path-utils.d.ts.map +1 -0
- package/dist/cjs/node-parameters/path-utils.js +33 -0
- package/dist/cjs/node-parameters/path-utils.js.map +1 -0
- package/dist/cjs/node-parameters/rename-node-utils.d.ts +3 -0
- package/dist/cjs/node-parameters/rename-node-utils.d.ts.map +1 -0
- package/dist/cjs/node-parameters/rename-node-utils.js +36 -0
- package/dist/cjs/node-parameters/rename-node-utils.js.map +1 -0
- package/dist/cjs/node-reference-parser-utils.d.ts +20 -0
- package/dist/cjs/node-reference-parser-utils.d.ts.map +1 -0
- package/dist/cjs/node-reference-parser-utils.js +504 -0
- package/dist/cjs/node-reference-parser-utils.js.map +1 -0
- package/dist/cjs/observable-object.d.ts +7 -0
- package/dist/cjs/observable-object.d.ts.map +1 -0
- package/dist/cjs/observable-object.js +71 -0
- package/dist/cjs/observable-object.js.map +1 -0
- package/dist/cjs/result.d.ts +19 -0
- package/dist/cjs/result.d.ts.map +1 -0
- package/dist/cjs/result.js +41 -0
- package/dist/cjs/result.js.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.d.ts +24 -0
- package/dist/cjs/run-execution-data/run-execution-data.d.ts.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.js +34 -0
- package/dist/cjs/run-execution-data/run-execution-data.js.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.d.ts +38 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.d.ts.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.js +13 -0
- package/dist/cjs/run-execution-data/run-execution-data.v0.js.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.d.ts +40 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.d.ts.map +1 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.js +37 -0
- package/dist/cjs/run-execution-data/run-execution-data.v1.js.map +1 -0
- package/dist/cjs/run-execution-data-factory.d.ts +53 -0
- package/dist/cjs/run-execution-data-factory.d.ts.map +1 -0
- package/dist/cjs/run-execution-data-factory.js +122 -0
- package/dist/cjs/run-execution-data-factory.js.map +1 -0
- package/dist/cjs/schemas.d.ts +112 -0
- package/dist/cjs/schemas.d.ts.map +1 -0
- package/dist/cjs/schemas.js +361 -0
- package/dist/cjs/schemas.js.map +1 -0
- package/dist/cjs/telemetry-helpers.d.ts +59 -0
- package/dist/cjs/telemetry-helpers.d.ts.map +1 -0
- package/dist/cjs/telemetry-helpers.js +657 -0
- package/dist/cjs/telemetry-helpers.js.map +1 -0
- package/dist/cjs/tool-helpers.d.ts +7 -0
- package/dist/cjs/tool-helpers.d.ts.map +1 -0
- package/dist/cjs/tool-helpers.js +22 -0
- package/dist/cjs/tool-helpers.js.map +1 -0
- package/dist/cjs/type-guards.d.ts +13 -0
- package/dist/cjs/type-guards.d.ts.map +1 -0
- package/dist/cjs/type-guards.js +61 -0
- package/dist/cjs/type-guards.js.map +1 -0
- package/dist/cjs/type-validation.d.ts +22 -0
- package/dist/cjs/type-validation.d.ts.map +1 -0
- package/dist/cjs/type-validation.js +426 -0
- package/dist/cjs/type-validation.js.map +1 -0
- package/dist/cjs/typecheck.tsbuildinfo +1 -0
- package/dist/cjs/utils.d.ts +111 -0
- package/dist/cjs/utils.d.ts.map +1 -0
- package/dist/cjs/utils.js +476 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/cjs/versioned-node-type.d.ts +10 -0
- package/dist/cjs/versioned-node-type.d.ts.map +1 -0
- package/dist/cjs/versioned-node-type.js +36 -0
- package/dist/cjs/versioned-node-type.js.map +1 -0
- package/dist/cjs/workflow-checksum.d.ts +25 -0
- package/dist/cjs/workflow-checksum.d.ts.map +1 -0
- package/dist/cjs/workflow-checksum.js +85 -0
- package/dist/cjs/workflow-checksum.js.map +1 -0
- package/dist/cjs/workflow-data-proxy-env-provider.d.ts +25 -0
- package/dist/cjs/workflow-data-proxy-env-provider.d.ts.map +1 -0
- package/dist/cjs/workflow-data-proxy-env-provider.js +70 -0
- package/dist/cjs/workflow-data-proxy-env-provider.js.map +1 -0
- package/dist/cjs/workflow-data-proxy-helpers.d.ts +3 -0
- package/dist/cjs/workflow-data-proxy-helpers.d.ts.map +1 -0
- package/dist/cjs/workflow-data-proxy-helpers.js +20 -0
- package/dist/cjs/workflow-data-proxy-helpers.js.map +1 -0
- package/dist/cjs/workflow-data-proxy.d.ts +81 -0
- package/dist/cjs/workflow-data-proxy.d.ts.map +1 -0
- package/dist/cjs/workflow-data-proxy.js +1214 -0
- package/dist/cjs/workflow-data-proxy.js.map +1 -0
- package/dist/cjs/workflow-diff.d.ts +57 -0
- package/dist/cjs/workflow-diff.d.ts.map +1 -0
- package/dist/cjs/workflow-diff.js +275 -0
- package/dist/cjs/workflow-diff.js.map +1 -0
- package/dist/cjs/workflow-validation.d.ts +18 -0
- package/dist/cjs/workflow-validation.d.ts.map +1 -0
- package/dist/cjs/workflow-validation.js +53 -0
- package/dist/cjs/workflow-validation.js.map +1 -0
- package/dist/cjs/workflow.d.ts +155 -0
- package/dist/cjs/workflow.d.ts.map +1 -0
- package/dist/cjs/workflow.js +712 -0
- package/dist/cjs/workflow.js.map +1 -0
- package/dist/esm/augment-object.d.ts +3 -0
- package/dist/esm/augment-object.d.ts.map +1 -0
- package/dist/esm/augment-object.js +143 -0
- package/dist/esm/augment-object.js.map +1 -0
- package/dist/esm/common/get-child-nodes.d.ts +3 -0
- package/dist/esm/common/get-child-nodes.d.ts.map +1 -0
- package/dist/esm/common/get-child-nodes.js +6 -0
- package/dist/esm/common/get-child-nodes.js.map +1 -0
- package/dist/esm/common/get-connected-nodes.d.ts +10 -0
- package/dist/esm/common/get-connected-nodes.d.ts.map +1 -0
- package/dist/esm/common/get-connected-nodes.js +71 -0
- package/dist/esm/common/get-connected-nodes.js.map +1 -0
- package/dist/esm/common/get-node-by-name.d.ts +9 -0
- package/dist/esm/common/get-node-by-name.d.ts.map +1 -0
- package/dist/esm/common/get-node-by-name.js +16 -0
- package/dist/esm/common/get-node-by-name.js.map +1 -0
- package/dist/esm/common/get-parent-nodes.d.ts +9 -0
- package/dist/esm/common/get-parent-nodes.d.ts.map +1 -0
- package/dist/esm/common/get-parent-nodes.js +12 -0
- package/dist/esm/common/get-parent-nodes.js.map +1 -0
- package/dist/esm/common/index.d.ts +6 -0
- package/dist/esm/common/index.d.ts.map +1 -0
- package/dist/esm/common/index.js +6 -0
- package/dist/esm/common/index.js.map +1 -0
- package/dist/esm/common/map-connections-by-destination.d.ts +3 -0
- package/dist/esm/common/map-connections-by-destination.d.ts.map +1 -0
- package/dist/esm/common/map-connections-by-destination.js +40 -0
- package/dist/esm/common/map-connections-by-destination.js.map +1 -0
- package/dist/esm/connections-diff.d.ts +16 -0
- package/dist/esm/connections-diff.d.ts.map +1 -0
- package/dist/esm/connections-diff.js +62 -0
- package/dist/esm/connections-diff.js.map +1 -0
- package/dist/esm/constants.d.ts +83 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +110 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/cron.d.ts +35 -0
- package/dist/esm/cron.d.ts.map +1 -0
- package/dist/esm/cron.js +23 -0
- package/dist/esm/cron.js.map +1 -0
- package/dist/esm/data-table.types.d.ts +140 -0
- package/dist/esm/data-table.types.d.ts.map +1 -0
- package/dist/esm/data-table.types.js +8 -0
- package/dist/esm/data-table.types.js.map +1 -0
- package/dist/esm/deferred-promise.d.ts +10 -0
- package/dist/esm/deferred-promise.d.ts.map +1 -0
- package/dist/esm/deferred-promise.js +9 -0
- package/dist/esm/deferred-promise.js.map +1 -0
- package/dist/esm/errors/abstract/execution-base.error.d.ts +27 -0
- package/dist/esm/errors/abstract/execution-base.error.d.ts.map +1 -0
- package/dist/esm/errors/abstract/execution-base.error.js +36 -0
- package/dist/esm/errors/abstract/execution-base.error.js.map +1 -0
- package/dist/esm/errors/abstract/node.error.d.ts +48 -0
- package/dist/esm/errors/abstract/node.error.d.ts.map +1 -0
- package/dist/esm/errors/abstract/node.error.js +163 -0
- package/dist/esm/errors/abstract/node.error.js.map +1 -0
- package/dist/esm/errors/base/base.error.d.ts +26 -0
- package/dist/esm/errors/base/base.error.d.ts.map +1 -0
- package/dist/esm/errors/base/base.error.js +36 -0
- package/dist/esm/errors/base/base.error.js.map +1 -0
- package/dist/esm/errors/base/operational.error.d.ts +16 -0
- package/dist/esm/errors/base/operational.error.d.ts.map +1 -0
- package/dist/esm/errors/base/operational.error.js +15 -0
- package/dist/esm/errors/base/operational.error.js.map +1 -0
- package/dist/esm/errors/base/unexpected.error.d.ts +16 -0
- package/dist/esm/errors/base/unexpected.error.d.ts.map +1 -0
- package/dist/esm/errors/base/unexpected.error.js +15 -0
- package/dist/esm/errors/base/unexpected.error.js.map +1 -0
- package/dist/esm/errors/base/user.error.d.ts +18 -0
- package/dist/esm/errors/base/user.error.d.ts.map +1 -0
- package/dist/esm/errors/base/user.error.js +15 -0
- package/dist/esm/errors/base/user.error.js.map +1 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.d.ts +4 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.js +4 -0
- package/dist/esm/errors/cli-subworkflow-operation.error.js.map +1 -0
- package/dist/esm/errors/db-connection-timeout-error.d.ts +9 -0
- package/dist/esm/errors/db-connection-timeout-error.d.ts.map +1 -0
- package/dist/esm/errors/db-connection-timeout-error.js +9 -0
- package/dist/esm/errors/db-connection-timeout-error.js.map +1 -0
- package/dist/esm/errors/ensure-error.d.ts +3 -0
- package/dist/esm/errors/ensure-error.d.ts.map +1 -0
- package/dist/esm/errors/ensure-error.js +10 -0
- package/dist/esm/errors/ensure-error.js.map +1 -0
- package/dist/esm/errors/execution-cancelled.error.d.ts +16 -0
- package/dist/esm/errors/execution-cancelled.error.d.ts.map +1 -0
- package/dist/esm/errors/execution-cancelled.error.js +31 -0
- package/dist/esm/errors/execution-cancelled.error.js.map +1 -0
- package/dist/esm/errors/expression-extension.error.d.ts +4 -0
- package/dist/esm/errors/expression-extension.error.d.ts.map +1 -0
- package/dist/esm/errors/expression-extension.error.js +4 -0
- package/dist/esm/errors/expression-extension.error.js.map +1 -0
- package/dist/esm/errors/expression.error.d.ts +22 -0
- package/dist/esm/errors/expression.error.d.ts.map +1 -0
- package/dist/esm/errors/expression.error.js +34 -0
- package/dist/esm/errors/expression.error.js.map +1 -0
- package/dist/esm/errors/index.d.ts +24 -0
- package/dist/esm/errors/index.d.ts.map +1 -0
- package/dist/esm/errors/index.js +24 -0
- package/dist/esm/errors/index.js.map +1 -0
- package/dist/esm/errors/node-api.error.d.ts +39 -0
- package/dist/esm/errors/node-api.error.d.ts.map +1 -0
- package/dist/esm/errors/node-api.error.js +243 -0
- package/dist/esm/errors/node-api.error.js.map +1 -0
- package/dist/esm/errors/node-operation.error.d.ts +11 -0
- package/dist/esm/errors/node-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/node-operation.error.js +39 -0
- package/dist/esm/errors/node-operation.error.js.map +1 -0
- package/dist/esm/errors/node-ssl.error.d.ts +5 -0
- package/dist/esm/errors/node-ssl.error.d.ts.map +1 -0
- package/dist/esm/errors/node-ssl.error.js +7 -0
- package/dist/esm/errors/node-ssl.error.js.map +1 -0
- package/dist/esm/errors/subworkflow-operation.error.d.ts +7 -0
- package/dist/esm/errors/subworkflow-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/subworkflow-operation.error.js +16 -0
- package/dist/esm/errors/subworkflow-operation.error.js.map +1 -0
- package/dist/esm/errors/trigger-close.error.d.ts +11 -0
- package/dist/esm/errors/trigger-close.error.d.ts.map +1 -0
- package/dist/esm/errors/trigger-close.error.js +10 -0
- package/dist/esm/errors/trigger-close.error.js.map +1 -0
- package/dist/esm/errors/webhook-taken.error.d.ts +5 -0
- package/dist/esm/errors/webhook-taken.error.d.ts.map +1 -0
- package/dist/esm/errors/webhook-taken.error.js +7 -0
- package/dist/esm/errors/webhook-taken.error.js.map +1 -0
- package/dist/esm/errors/workflow-activation.error.d.ts +20 -0
- package/dist/esm/errors/workflow-activation.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-activation.error.js +40 -0
- package/dist/esm/errors/workflow-activation.error.js.map +1 -0
- package/dist/esm/errors/workflow-configuration.error.d.ts +7 -0
- package/dist/esm/errors/workflow-configuration.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-configuration.error.js +7 -0
- package/dist/esm/errors/workflow-configuration.error.js.map +1 -0
- package/dist/esm/errors/workflow-deactivation.error.d.ts +4 -0
- package/dist/esm/errors/workflow-deactivation.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-deactivation.error.js +4 -0
- package/dist/esm/errors/workflow-deactivation.error.js.map +1 -0
- package/dist/esm/errors/workflow-operation.error.d.ts +11 -0
- package/dist/esm/errors/workflow-operation.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-operation.error.js +18 -0
- package/dist/esm/errors/workflow-operation.error.js.map +1 -0
- package/dist/esm/evaluation-helpers.d.ts +22 -0
- package/dist/esm/evaluation-helpers.d.ts.map +1 -0
- package/dist/esm/evaluation-helpers.js +24 -0
- package/dist/esm/evaluation-helpers.js.map +1 -0
- package/dist/esm/execution-context-establishment-hooks.d.ts +38 -0
- package/dist/esm/execution-context-establishment-hooks.d.ts.map +1 -0
- package/dist/esm/execution-context-establishment-hooks.js +35 -0
- package/dist/esm/execution-context-establishment-hooks.js.map +1 -0
- package/dist/esm/execution-context.d.ts +113 -0
- package/dist/esm/execution-context.d.ts.map +1 -0
- package/dist/esm/execution-context.js +108 -0
- package/dist/esm/execution-context.js.map +1 -0
- package/dist/esm/execution-status.d.ts +3 -0
- package/dist/esm/execution-status.d.ts.map +1 -0
- package/dist/esm/execution-status.js +11 -0
- package/dist/esm/execution-status.js.map +1 -0
- package/dist/esm/expression-evaluator-proxy.d.ts +6 -0
- package/dist/esm/expression-evaluator-proxy.d.ts.map +1 -0
- package/dist/esm/expression-evaluator-proxy.js +15 -0
- package/dist/esm/expression-evaluator-proxy.js.map +1 -0
- package/dist/esm/expression-sandboxing.d.ts +24 -0
- package/dist/esm/expression-sandboxing.d.ts.map +1 -0
- package/dist/esm/expression-sandboxing.js +193 -0
- package/dist/esm/expression-sandboxing.js.map +1 -0
- package/dist/esm/expression.d.ts +48 -0
- package/dist/esm/expression.d.ts.map +1 -0
- package/dist/esm/expression.js +348 -0
- package/dist/esm/expression.js.map +1 -0
- package/dist/esm/expressions/expression-helpers.d.ts +6 -0
- package/dist/esm/expressions/expression-helpers.d.ts.map +1 -0
- package/dist/esm/expressions/expression-helpers.js +10 -0
- package/dist/esm/expressions/expression-helpers.js.map +1 -0
- package/dist/esm/extensions/array-extensions.d.ts +34 -0
- package/dist/esm/extensions/array-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/array-extensions.js +610 -0
- package/dist/esm/extensions/array-extensions.js.map +1 -0
- package/dist/esm/extensions/boolean-extensions.d.ts +6 -0
- package/dist/esm/extensions/boolean-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/boolean-extensions.js +33 -0
- package/dist/esm/extensions/boolean-extensions.js.map +1 -0
- package/dist/esm/extensions/date-extensions.d.ts +3 -0
- package/dist/esm/extensions/date-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/date-extensions.js +515 -0
- package/dist/esm/extensions/date-extensions.js.map +1 -0
- package/dist/esm/extensions/expression-extension.d.ts +32 -0
- package/dist/esm/extensions/expression-extension.d.ts.map +1 -0
- package/dist/esm/extensions/expression-extension.js +472 -0
- package/dist/esm/extensions/expression-extension.js.map +1 -0
- package/dist/esm/extensions/expression-parser.d.ts +14 -0
- package/dist/esm/extensions/expression-parser.d.ts.map +1 -0
- package/dist/esm/extensions/expression-parser.js +78 -0
- package/dist/esm/extensions/expression-parser.js.map +1 -0
- package/dist/esm/extensions/extended-functions.d.ts +28 -0
- package/dist/esm/extensions/extended-functions.d.ts.map +1 -0
- package/dist/esm/extensions/extended-functions.js +76 -0
- package/dist/esm/extensions/extended-functions.js.map +1 -0
- package/dist/esm/extensions/extensions.d.ts +52 -0
- package/dist/esm/extensions/extensions.d.ts.map +1 -0
- package/dist/esm/extensions/extensions.js +2 -0
- package/dist/esm/extensions/extensions.js.map +1 -0
- package/dist/esm/extensions/index.d.ts +4 -0
- package/dist/esm/extensions/index.d.ts.map +1 -0
- package/dist/esm/extensions/index.js +2 -0
- package/dist/esm/extensions/index.js.map +1 -0
- package/dist/esm/extensions/number-extensions.d.ts +27 -0
- package/dist/esm/extensions/number-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/number-extensions.js +222 -0
- package/dist/esm/extensions/number-extensions.js.map +1 -0
- package/dist/esm/extensions/object-extensions.d.ts +46 -0
- package/dist/esm/extensions/object-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/object-extensions.js +277 -0
- package/dist/esm/extensions/object-extensions.js.map +1 -0
- package/dist/esm/extensions/string-extensions.d.ts +38 -0
- package/dist/esm/extensions/string-extensions.d.ts.map +1 -0
- package/dist/esm/extensions/string-extensions.js +773 -0
- package/dist/esm/extensions/string-extensions.js.map +1 -0
- package/dist/esm/extensions/utils.d.ts +4 -0
- package/dist/esm/extensions/utils.d.ts.map +1 -0
- package/dist/esm/extensions/utils.js +27 -0
- package/dist/esm/extensions/utils.js.map +1 -0
- package/dist/esm/from-ai-parse-utils.d.ts +44 -0
- package/dist/esm/from-ai-parse-utils.d.ts.map +1 -0
- package/dist/esm/from-ai-parse-utils.js +281 -0
- package/dist/esm/from-ai-parse-utils.js.map +1 -0
- package/dist/esm/global-state.d.ts +6 -0
- package/dist/esm/global-state.d.ts.map +1 -0
- package/dist/esm/global-state.js +9 -0
- package/dist/esm/global-state.js.map +1 -0
- package/dist/esm/graph/graph-utils.d.ts +57 -0
- package/dist/esm/graph/graph-utils.d.ts.map +1 -0
- package/dist/esm/graph/graph-utils.js +176 -0
- package/dist/esm/graph/graph-utils.js.map +1 -0
- package/dist/esm/index.d.ts +63 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +47 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interfaces.d.ts +2483 -0
- package/dist/esm/interfaces.d.ts.map +1 -0
- package/dist/esm/interfaces.js +38 -0
- package/dist/esm/interfaces.js.map +1 -0
- package/dist/esm/logger-proxy.d.ts +7 -0
- package/dist/esm/logger-proxy.d.ts.map +1 -0
- package/dist/esm/logger-proxy.js +12 -0
- package/dist/esm/logger-proxy.js.map +1 -0
- package/dist/esm/message-event-bus.d.ts +119 -0
- package/dist/esm/message-event-bus.d.ts.map +1 -0
- package/dist/esm/message-event-bus.js +83 -0
- package/dist/esm/message-event-bus.js.map +1 -0
- package/dist/esm/metadata-utils.d.ts +5 -0
- package/dist/esm/metadata-utils.d.ts.map +1 -0
- package/dist/esm/metadata-utils.js +24 -0
- package/dist/esm/metadata-utils.js.map +1 -0
- package/dist/esm/native-methods/array.methods.d.ts +3 -0
- package/dist/esm/native-methods/array.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/array.methods.js +545 -0
- package/dist/esm/native-methods/array.methods.js.map +1 -0
- package/dist/esm/native-methods/boolean.methods.d.ts +3 -0
- package/dist/esm/native-methods/boolean.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/boolean.methods.js +18 -0
- package/dist/esm/native-methods/boolean.methods.js.map +1 -0
- package/dist/esm/native-methods/index.d.ts +4 -0
- package/dist/esm/native-methods/index.d.ts.map +1 -0
- package/dist/esm/native-methods/index.js +14 -0
- package/dist/esm/native-methods/index.js.map +1 -0
- package/dist/esm/native-methods/number.methods.d.ts +3 -0
- package/dist/esm/native-methods/number.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/number.methods.js +82 -0
- package/dist/esm/native-methods/number.methods.js.map +1 -0
- package/dist/esm/native-methods/object.methods.d.ts +3 -0
- package/dist/esm/native-methods/object.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/object.methods.js +5 -0
- package/dist/esm/native-methods/object.methods.js.map +1 -0
- package/dist/esm/native-methods/string.methods.d.ts +3 -0
- package/dist/esm/native-methods/string.methods.d.ts.map +1 -0
- package/dist/esm/native-methods/string.methods.js +493 -0
- package/dist/esm/native-methods/string.methods.js.map +1 -0
- package/dist/esm/node-helpers.d.ts +153 -0
- package/dist/esm/node-helpers.d.ts.map +1 -0
- package/dist/esm/node-helpers.js +1376 -0
- package/dist/esm/node-helpers.js.map +1 -0
- package/dist/esm/node-parameters/filter-parameter.d.ts +21 -0
- package/dist/esm/node-parameters/filter-parameter.d.ts.map +1 -0
- package/dist/esm/node-parameters/filter-parameter.js +339 -0
- package/dist/esm/node-parameters/filter-parameter.js.map +1 -0
- package/dist/esm/node-parameters/parameter-type-validation.d.ts +22 -0
- package/dist/esm/node-parameters/parameter-type-validation.d.ts.map +1 -0
- package/dist/esm/node-parameters/parameter-type-validation.js +123 -0
- package/dist/esm/node-parameters/parameter-type-validation.js.map +1 -0
- package/dist/esm/node-parameters/path-utils.d.ts +11 -0
- package/dist/esm/node-parameters/path-utils.d.ts.map +1 -0
- package/dist/esm/node-parameters/path-utils.js +20 -0
- package/dist/esm/node-parameters/path-utils.js.map +1 -0
- package/dist/esm/node-parameters/rename-node-utils.d.ts +3 -0
- package/dist/esm/node-parameters/rename-node-utils.d.ts.map +1 -0
- package/dist/esm/node-parameters/rename-node-utils.js +23 -0
- package/dist/esm/node-parameters/rename-node-utils.js.map +1 -0
- package/dist/esm/node-reference-parser-utils.d.ts +20 -0
- package/dist/esm/node-reference-parser-utils.d.ts.map +1 -0
- package/dist/esm/node-reference-parser-utils.js +484 -0
- package/dist/esm/node-reference-parser-utils.js.map +1 -0
- package/dist/esm/observable-object.d.ts +7 -0
- package/dist/esm/observable-object.d.ts.map +1 -0
- package/dist/esm/observable-object.js +58 -0
- package/dist/esm/observable-object.js.map +1 -0
- package/dist/esm/result.d.ts +19 -0
- package/dist/esm/result.d.ts.map +1 -0
- package/dist/esm/result.js +25 -0
- package/dist/esm/result.js.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.d.ts +24 -0
- package/dist/esm/run-execution-data/run-execution-data.d.ts.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.js +21 -0
- package/dist/esm/run-execution-data/run-execution-data.js.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.d.ts +38 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.d.ts.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.js +2 -0
- package/dist/esm/run-execution-data/run-execution-data.v0.js.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.d.ts +40 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.d.ts.map +1 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.js +24 -0
- package/dist/esm/run-execution-data/run-execution-data.v1.js.map +1 -0
- package/dist/esm/run-execution-data-factory.d.ts +53 -0
- package/dist/esm/run-execution-data-factory.d.ts.map +1 -0
- package/dist/esm/run-execution-data-factory.js +107 -0
- package/dist/esm/run-execution-data-factory.js.map +1 -0
- package/dist/esm/schemas.d.ts +112 -0
- package/dist/esm/schemas.d.ts.map +1 -0
- package/dist/esm/schemas.js +348 -0
- package/dist/esm/schemas.js.map +1 -0
- package/dist/esm/telemetry-helpers.d.ts +59 -0
- package/dist/esm/telemetry-helpers.d.ts.map +1 -0
- package/dist/esm/telemetry-helpers.js +633 -0
- package/dist/esm/telemetry-helpers.js.map +1 -0
- package/dist/esm/tool-helpers.d.ts +7 -0
- package/dist/esm/tool-helpers.d.ts.map +1 -0
- package/dist/esm/tool-helpers.js +9 -0
- package/dist/esm/tool-helpers.js.map +1 -0
- package/dist/esm/type-guards.d.ts +13 -0
- package/dist/esm/type-guards.d.ts.map +1 -0
- package/dist/esm/type-guards.js +37 -0
- package/dist/esm/type-guards.js.map +1 -0
- package/dist/esm/type-validation.d.ts +22 -0
- package/dist/esm/type-validation.d.ts.map +1 -0
- package/dist/esm/type-validation.js +397 -0
- package/dist/esm/type-validation.js.map +1 -0
- package/dist/esm/typecheck.tsbuildinfo +1 -0
- package/dist/esm/utils.d.ts +111 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/utils.js +405 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/esm/versioned-node-type.d.ts +10 -0
- package/dist/esm/versioned-node-type.d.ts.map +1 -0
- package/dist/esm/versioned-node-type.js +22 -0
- package/dist/esm/versioned-node-type.js.map +1 -0
- package/dist/esm/workflow-checksum.d.ts +25 -0
- package/dist/esm/workflow-checksum.d.ts.map +1 -0
- package/dist/esm/workflow-checksum.js +69 -0
- package/dist/esm/workflow-checksum.js.map +1 -0
- package/dist/esm/workflow-data-proxy-env-provider.d.ts +25 -0
- package/dist/esm/workflow-data-proxy-env-provider.d.ts.map +1 -0
- package/dist/esm/workflow-data-proxy-env-provider.js +56 -0
- package/dist/esm/workflow-data-proxy-env-provider.js.map +1 -0
- package/dist/esm/workflow-data-proxy-helpers.d.ts +3 -0
- package/dist/esm/workflow-data-proxy-helpers.d.ts.map +1 -0
- package/dist/esm/workflow-data-proxy-helpers.js +7 -0
- package/dist/esm/workflow-data-proxy-helpers.js.map +1 -0
- package/dist/esm/workflow-data-proxy.d.ts +81 -0
- package/dist/esm/workflow-data-proxy.d.ts.map +1 -0
- package/dist/esm/workflow-data-proxy.js +1167 -0
- package/dist/esm/workflow-data-proxy.js.map +1 -0
- package/dist/esm/workflow-diff.d.ts +57 -0
- package/dist/esm/workflow-diff.d.ts.map +1 -0
- package/dist/esm/workflow-diff.js +253 -0
- package/dist/esm/workflow-diff.js.map +1 -0
- package/dist/esm/workflow-validation.d.ts +18 -0
- package/dist/esm/workflow-validation.d.ts.map +1 -0
- package/dist/esm/workflow-validation.js +40 -0
- package/dist/esm/workflow-validation.js.map +1 -0
- package/dist/esm/workflow.d.ts +155 -0
- package/dist/esm/workflow.d.ts.map +1 -0
- package/dist/esm/workflow.js +665 -0
- package/dist/esm/workflow.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,2483 @@
|
|
|
1
|
+
import type { CallbackManager as CallbackManagerLC } from '@langchain/core/callbacks/manager';
|
|
2
|
+
import type { LogScope } from '@n8n/config';
|
|
3
|
+
import type { AxiosProxyConfig, GenericAbortSignal } from 'axios';
|
|
4
|
+
import type * as express from 'express';
|
|
5
|
+
import type FormData from 'form-data';
|
|
6
|
+
import type { PathLike } from 'fs';
|
|
7
|
+
import type { IncomingHttpHeaders } from 'http';
|
|
8
|
+
import type { ReplyHeaders, RequestBodyMatcher, RequestHeaderMatcher } from 'nock';
|
|
9
|
+
import type { Client as SSHClient } from 'ssh2';
|
|
10
|
+
import type { Readable } from 'stream';
|
|
11
|
+
import type { SecureContextOptions } from 'tls';
|
|
12
|
+
import type { URLSearchParams } from 'url';
|
|
13
|
+
import type { CODE_EXECUTION_MODES, CODE_LANGUAGES, LOG_LEVELS } from './constants';
|
|
14
|
+
import type { IDataTableProjectAggregateService, IDataTableProjectService } from './data-table.types';
|
|
15
|
+
import type { IDeferredPromise } from './deferred-promise';
|
|
16
|
+
import type { ExecutionCancelledError } from './errors';
|
|
17
|
+
import type { ExpressionError } from './errors/expression.error';
|
|
18
|
+
import type { NodeApiError } from './errors/node-api.error';
|
|
19
|
+
import type { NodeOperationError } from './errors/node-operation.error';
|
|
20
|
+
import type { WorkflowActivationError } from './errors/workflow-activation.error';
|
|
21
|
+
import type { WorkflowOperationError } from './errors/workflow-operation.error';
|
|
22
|
+
import type { IExecutionContext, WorkflowExecuteModeValues as WorkflowExecuteMode } from './execution-context';
|
|
23
|
+
import type { ExecutionStatus } from './execution-status';
|
|
24
|
+
import type { Result } from './result';
|
|
25
|
+
import type { Workflow } from './workflow';
|
|
26
|
+
import type { EnvProviderState } from './workflow-data-proxy-env-provider';
|
|
27
|
+
import type { IRunExecutionData } from './run-execution-data/run-execution-data';
|
|
28
|
+
export type { WorkflowExecuteModeValues as WorkflowExecuteMode } from './execution-context';
|
|
29
|
+
export interface IAdditionalCredentialOptions {
|
|
30
|
+
oauth2?: IOAuth2Options;
|
|
31
|
+
credentialsDecrypted?: ICredentialsDecrypted;
|
|
32
|
+
}
|
|
33
|
+
export type IAllExecuteFunctions = IExecuteFunctions | IExecutePaginationFunctions | IExecuteSingleFunctions | ISupplyDataFunctions | IHookFunctions | ILoadOptionsFunctions | IPollFunctions | ITriggerFunctions | IWebhookFunctions;
|
|
34
|
+
export type BinaryFileType = 'text' | 'json' | 'image' | 'audio' | 'video' | 'pdf' | 'html';
|
|
35
|
+
export interface IBinaryData {
|
|
36
|
+
[key: string]: string | number | undefined;
|
|
37
|
+
data: string;
|
|
38
|
+
mimeType: string;
|
|
39
|
+
fileType?: BinaryFileType;
|
|
40
|
+
fileName?: string;
|
|
41
|
+
directory?: string;
|
|
42
|
+
fileExtension?: string;
|
|
43
|
+
fileSize?: string;
|
|
44
|
+
id?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface IOAuth2Options {
|
|
47
|
+
includeCredentialsOnRefreshOnBody?: boolean;
|
|
48
|
+
property?: string;
|
|
49
|
+
tokenType?: string;
|
|
50
|
+
keepBearer?: boolean;
|
|
51
|
+
tokenExpiredStatusCode?: number;
|
|
52
|
+
keyToIncludeInAccessTokenHeader?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface IConnection {
|
|
55
|
+
node: string;
|
|
56
|
+
type: NodeConnectionType;
|
|
57
|
+
index: number;
|
|
58
|
+
}
|
|
59
|
+
export type ExecutionError = ExpressionError | WorkflowActivationError | WorkflowOperationError | ExecutionCancelledError | NodeOperationError | NodeApiError;
|
|
60
|
+
export interface IGetCredentials {
|
|
61
|
+
get(type: string, id: string | null): Promise<ICredentialsEncrypted>;
|
|
62
|
+
}
|
|
63
|
+
export declare abstract class ICredentials<T extends object = ICredentialDataDecryptedObject> {
|
|
64
|
+
id?: string;
|
|
65
|
+
name: string;
|
|
66
|
+
type: string;
|
|
67
|
+
data: string | undefined;
|
|
68
|
+
constructor(nodeCredentials: INodeCredentialsDetails, type: string, data?: string);
|
|
69
|
+
abstract getData(nodeType?: string): T;
|
|
70
|
+
abstract getDataToSave(): ICredentialsEncrypted;
|
|
71
|
+
abstract setData(data: T): void;
|
|
72
|
+
}
|
|
73
|
+
export interface IUser {
|
|
74
|
+
id: string;
|
|
75
|
+
email: string;
|
|
76
|
+
firstName: string;
|
|
77
|
+
lastName: string;
|
|
78
|
+
}
|
|
79
|
+
export type ProjectSharingData = {
|
|
80
|
+
id: string;
|
|
81
|
+
name: string | null;
|
|
82
|
+
icon: {
|
|
83
|
+
type: 'emoji' | 'icon';
|
|
84
|
+
value: string;
|
|
85
|
+
} | null;
|
|
86
|
+
type: 'personal' | 'team' | 'public';
|
|
87
|
+
createdAt: string;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
};
|
|
90
|
+
export interface ICredentialsDecrypted<T extends object = ICredentialDataDecryptedObject> {
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
type: string;
|
|
94
|
+
data?: T;
|
|
95
|
+
homeProject?: ProjectSharingData;
|
|
96
|
+
sharedWithProjects?: ProjectSharingData[];
|
|
97
|
+
isGlobal?: boolean;
|
|
98
|
+
isResolvable?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface ICredentialsEncrypted {
|
|
101
|
+
id?: string;
|
|
102
|
+
name: string;
|
|
103
|
+
type: string;
|
|
104
|
+
data?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface ICredentialsExpressionResolveValues {
|
|
107
|
+
connectionInputData: INodeExecutionData[];
|
|
108
|
+
itemIndex: number;
|
|
109
|
+
node: INode;
|
|
110
|
+
runExecutionData: IRunExecutionData | null;
|
|
111
|
+
runIndex: number;
|
|
112
|
+
workflow: Workflow;
|
|
113
|
+
}
|
|
114
|
+
export interface IRequestOptionsSimplified {
|
|
115
|
+
auth?: {
|
|
116
|
+
username: string;
|
|
117
|
+
password: string;
|
|
118
|
+
sendImmediately?: boolean;
|
|
119
|
+
};
|
|
120
|
+
body: IDataObject;
|
|
121
|
+
headers: IDataObject;
|
|
122
|
+
qs: IDataObject;
|
|
123
|
+
}
|
|
124
|
+
export interface IRequestOptionsSimplifiedAuth {
|
|
125
|
+
auth?: {
|
|
126
|
+
username: string;
|
|
127
|
+
password: string;
|
|
128
|
+
sendImmediately?: boolean;
|
|
129
|
+
};
|
|
130
|
+
body?: IDataObject;
|
|
131
|
+
headers?: IDataObject;
|
|
132
|
+
qs?: IDataObject;
|
|
133
|
+
url?: string;
|
|
134
|
+
skipSslCertificateValidation?: boolean | string;
|
|
135
|
+
}
|
|
136
|
+
export interface IHttpRequestHelper {
|
|
137
|
+
helpers: {
|
|
138
|
+
httpRequest: IAllExecuteFunctions['helpers']['httpRequest'];
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export declare abstract class ICredentialsHelper {
|
|
142
|
+
abstract getParentTypes(name: string): string[];
|
|
143
|
+
abstract authenticate(credentials: ICredentialDataDecryptedObject, typeName: string, requestOptions: IHttpRequestOptions | IRequestOptionsSimplified, workflow: Workflow, node: INode): Promise<IHttpRequestOptions>;
|
|
144
|
+
abstract preAuthentication(helpers: IHttpRequestHelper, credentials: ICredentialDataDecryptedObject, typeName: string, node: INode, credentialsExpired: boolean): Promise<ICredentialDataDecryptedObject | undefined>;
|
|
145
|
+
abstract getCredentials(nodeCredentials: INodeCredentialsDetails, type: string): Promise<ICredentials>;
|
|
146
|
+
abstract getDecrypted(additionalData: IWorkflowExecuteAdditionalData, nodeCredentials: INodeCredentialsDetails, type: string, mode: WorkflowExecuteMode, executeData?: IExecuteData, raw?: boolean, expressionResolveValues?: ICredentialsExpressionResolveValues): Promise<ICredentialDataDecryptedObject>;
|
|
147
|
+
abstract updateCredentials(nodeCredentials: INodeCredentialsDetails, type: string, data: ICredentialDataDecryptedObject): Promise<void>;
|
|
148
|
+
abstract updateCredentialsOauthTokenData(nodeCredentials: INodeCredentialsDetails, type: string, data: ICredentialDataDecryptedObject, additionalData: IWorkflowExecuteAdditionalData): Promise<void>;
|
|
149
|
+
abstract getCredentialsProperties(type: string): INodeProperties[];
|
|
150
|
+
}
|
|
151
|
+
export interface IAuthenticateBase {
|
|
152
|
+
type: string;
|
|
153
|
+
properties: {
|
|
154
|
+
[key: string]: string;
|
|
155
|
+
} | IRequestOptionsSimplifiedAuth;
|
|
156
|
+
}
|
|
157
|
+
export interface IAuthenticateGeneric extends IAuthenticateBase {
|
|
158
|
+
type: 'generic';
|
|
159
|
+
properties: IRequestOptionsSimplifiedAuth;
|
|
160
|
+
}
|
|
161
|
+
export type IAuthenticate = ((credentials: ICredentialDataDecryptedObject, requestOptions: IHttpRequestOptions) => Promise<IHttpRequestOptions>) | IAuthenticateGeneric;
|
|
162
|
+
export interface IAuthenticateRuleBase {
|
|
163
|
+
type: string;
|
|
164
|
+
properties: {
|
|
165
|
+
[key: string]: string | number;
|
|
166
|
+
};
|
|
167
|
+
errorMessage?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface IAuthenticateRuleResponseCode extends IAuthenticateRuleBase {
|
|
170
|
+
type: 'responseCode';
|
|
171
|
+
properties: {
|
|
172
|
+
value: number;
|
|
173
|
+
message: string;
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
export interface IAuthenticateRuleResponseSuccessBody extends IAuthenticateRuleBase {
|
|
177
|
+
type: 'responseSuccessBody';
|
|
178
|
+
properties: {
|
|
179
|
+
message: string;
|
|
180
|
+
key: string;
|
|
181
|
+
value: any;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
type Override<A extends object, B extends object> = Omit<A, keyof B> & B;
|
|
185
|
+
export declare namespace DeclarativeRestApiSettings {
|
|
186
|
+
type HttpRequestOptions = Override<IHttpRequestOptions, {
|
|
187
|
+
skipSslCertificateValidation?: string | boolean;
|
|
188
|
+
url?: string;
|
|
189
|
+
}>;
|
|
190
|
+
type ResultOptions = {
|
|
191
|
+
maxResults?: number | string;
|
|
192
|
+
options: HttpRequestOptions;
|
|
193
|
+
paginate?: boolean | string;
|
|
194
|
+
preSend: PreSendAction[];
|
|
195
|
+
postReceive: Array<{
|
|
196
|
+
data: {
|
|
197
|
+
parameterValue: string | IDataObject | undefined;
|
|
198
|
+
};
|
|
199
|
+
actions: PostReceiveAction[];
|
|
200
|
+
}>;
|
|
201
|
+
requestOperations?: IN8nRequestOperations;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
export interface ICredentialTestRequest {
|
|
205
|
+
request: DeclarativeRestApiSettings.HttpRequestOptions;
|
|
206
|
+
rules?: IAuthenticateRuleResponseCode[] | IAuthenticateRuleResponseSuccessBody[];
|
|
207
|
+
}
|
|
208
|
+
export interface ICredentialTestRequestData {
|
|
209
|
+
nodeType?: INodeType;
|
|
210
|
+
testRequest: ICredentialTestRequest;
|
|
211
|
+
}
|
|
212
|
+
type ICredentialHttpRequestNode = {
|
|
213
|
+
name: string;
|
|
214
|
+
docsUrl: string;
|
|
215
|
+
hidden?: boolean;
|
|
216
|
+
} & ({
|
|
217
|
+
apiBaseUrl: string;
|
|
218
|
+
} | {
|
|
219
|
+
apiBaseUrlPlaceholder: string;
|
|
220
|
+
});
|
|
221
|
+
export interface ICredentialType {
|
|
222
|
+
name: string;
|
|
223
|
+
displayName: string;
|
|
224
|
+
icon?: Icon;
|
|
225
|
+
iconColor?: ThemeIconColor;
|
|
226
|
+
iconUrl?: Themed<string>;
|
|
227
|
+
/**
|
|
228
|
+
* Base path for resolving file icons from expressions.
|
|
229
|
+
* Used when icon is an expression that resolves to `file:filename.svg`
|
|
230
|
+
* Format: `icons/${packageName}/${nodeDirPath}`
|
|
231
|
+
*/
|
|
232
|
+
iconBasePath?: string;
|
|
233
|
+
extends?: string[];
|
|
234
|
+
properties: INodeProperties[];
|
|
235
|
+
documentationUrl?: string;
|
|
236
|
+
__overwrittenProperties?: string[];
|
|
237
|
+
authenticate?: IAuthenticate;
|
|
238
|
+
preAuthentication?: (this: IHttpRequestHelper, credentials: ICredentialDataDecryptedObject) => Promise<IDataObject>;
|
|
239
|
+
test?: ICredentialTestRequest;
|
|
240
|
+
genericAuth?: boolean;
|
|
241
|
+
httpRequestNode?: ICredentialHttpRequestNode;
|
|
242
|
+
supportedNodes?: string[];
|
|
243
|
+
}
|
|
244
|
+
export interface ICredentialTypes {
|
|
245
|
+
recognizes(credentialType: string): boolean;
|
|
246
|
+
getByName(credentialType: string): ICredentialType;
|
|
247
|
+
getSupportedNodes(type: string): string[];
|
|
248
|
+
getParentTypes(typeName: string): string[];
|
|
249
|
+
}
|
|
250
|
+
export interface ICredentialData {
|
|
251
|
+
id?: string;
|
|
252
|
+
name: string;
|
|
253
|
+
data: string;
|
|
254
|
+
}
|
|
255
|
+
export type CredentialInformation = string | string[] | number | boolean | IDataObject | IDataObject[];
|
|
256
|
+
export interface ICredentialDataDecryptedObject {
|
|
257
|
+
[key: string]: CredentialInformation;
|
|
258
|
+
}
|
|
259
|
+
export type NodeInputConnections = Array<IConnection[] | null>;
|
|
260
|
+
export interface INodeConnection {
|
|
261
|
+
sourceIndex: number;
|
|
262
|
+
destinationIndex: number;
|
|
263
|
+
}
|
|
264
|
+
export interface INodeConnections {
|
|
265
|
+
[key: string]: NodeInputConnections;
|
|
266
|
+
}
|
|
267
|
+
export interface IConnections {
|
|
268
|
+
[key: string]: INodeConnections;
|
|
269
|
+
}
|
|
270
|
+
export type GenericValue = string | object | number | boolean | undefined | null;
|
|
271
|
+
export type CloseFunction = () => Promise<void>;
|
|
272
|
+
export interface IDataObject {
|
|
273
|
+
[key: string]: GenericValue | IDataObject | GenericValue[] | IDataObject[];
|
|
274
|
+
}
|
|
275
|
+
export type IExecuteResponsePromiseData = IDataObject | IN8nHttpFullResponse;
|
|
276
|
+
export interface INodeTypeNameVersion {
|
|
277
|
+
name: string;
|
|
278
|
+
version: number;
|
|
279
|
+
}
|
|
280
|
+
export interface IRunNodeResponse {
|
|
281
|
+
data: INodeExecutionData[][] | null | undefined;
|
|
282
|
+
hints?: NodeExecutionHint[];
|
|
283
|
+
closeFunction?: CloseFunction;
|
|
284
|
+
}
|
|
285
|
+
export interface ISourceDataConnections {
|
|
286
|
+
[key: string]: Array<ISourceData[] | null>;
|
|
287
|
+
}
|
|
288
|
+
export interface IExecuteData {
|
|
289
|
+
data: ITaskDataConnections;
|
|
290
|
+
metadata?: ITaskMetadata;
|
|
291
|
+
node: INode;
|
|
292
|
+
source: ITaskDataConnectionsSource | null;
|
|
293
|
+
runIndex?: number;
|
|
294
|
+
}
|
|
295
|
+
export type IContextObject = {
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
};
|
|
298
|
+
export interface IExecuteContextData {
|
|
299
|
+
[key: string]: IContextObject;
|
|
300
|
+
}
|
|
301
|
+
export type IHttpRequestMethods = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT';
|
|
302
|
+
/** used in helpers.httpRequest(WithAuthentication) */
|
|
303
|
+
export interface IHttpRequestOptions {
|
|
304
|
+
url: string;
|
|
305
|
+
baseURL?: string;
|
|
306
|
+
headers?: IDataObject;
|
|
307
|
+
method?: IHttpRequestMethods;
|
|
308
|
+
body?: FormData | GenericValue | GenericValue[] | Buffer | URLSearchParams;
|
|
309
|
+
qs?: IDataObject;
|
|
310
|
+
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma';
|
|
311
|
+
auth?: {
|
|
312
|
+
username: string;
|
|
313
|
+
password: string;
|
|
314
|
+
sendImmediately?: boolean;
|
|
315
|
+
};
|
|
316
|
+
disableFollowRedirect?: boolean;
|
|
317
|
+
encoding?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
|
|
318
|
+
skipSslCertificateValidation?: boolean;
|
|
319
|
+
returnFullResponse?: boolean;
|
|
320
|
+
ignoreHttpStatusErrors?: boolean;
|
|
321
|
+
proxy?: {
|
|
322
|
+
host: string;
|
|
323
|
+
port: number;
|
|
324
|
+
auth?: {
|
|
325
|
+
username: string;
|
|
326
|
+
password: string;
|
|
327
|
+
};
|
|
328
|
+
protocol?: string;
|
|
329
|
+
};
|
|
330
|
+
timeout?: number;
|
|
331
|
+
json?: boolean;
|
|
332
|
+
abortSignal?: GenericAbortSignal;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* used in helpers.request(WithAuthentication)
|
|
336
|
+
* @see IHttpRequestOptions
|
|
337
|
+
* @deprecated Prefer using IHttpRequestOptions
|
|
338
|
+
*/
|
|
339
|
+
export interface IRequestOptions {
|
|
340
|
+
baseURL?: string;
|
|
341
|
+
uri?: string;
|
|
342
|
+
url?: string;
|
|
343
|
+
method?: IHttpRequestMethods;
|
|
344
|
+
qs?: IDataObject;
|
|
345
|
+
qsStringifyOptions?: {
|
|
346
|
+
arrayFormat: 'repeat' | 'brackets' | 'indices';
|
|
347
|
+
};
|
|
348
|
+
useQuerystring?: boolean;
|
|
349
|
+
headers?: IDataObject;
|
|
350
|
+
auth?: Partial<{
|
|
351
|
+
sendImmediately: boolean;
|
|
352
|
+
bearer: string;
|
|
353
|
+
user: string;
|
|
354
|
+
username: string;
|
|
355
|
+
password: string;
|
|
356
|
+
pass: string;
|
|
357
|
+
}>;
|
|
358
|
+
body?: any;
|
|
359
|
+
formData?: IDataObject | FormData;
|
|
360
|
+
form?: IDataObject | FormData;
|
|
361
|
+
json?: boolean;
|
|
362
|
+
useStream?: boolean;
|
|
363
|
+
encoding?: string | null;
|
|
364
|
+
timeout?: number;
|
|
365
|
+
rejectUnauthorized?: boolean;
|
|
366
|
+
proxy?: string | AxiosProxyConfig;
|
|
367
|
+
simple?: boolean;
|
|
368
|
+
gzip?: boolean;
|
|
369
|
+
resolveWithFullResponse?: boolean;
|
|
370
|
+
/** Whether to follow GET or HEAD HTTP 3xx redirects @default true */
|
|
371
|
+
followRedirect?: boolean;
|
|
372
|
+
/** Whether to follow **All** HTTP 3xx redirects @default false */
|
|
373
|
+
followAllRedirects?: boolean;
|
|
374
|
+
/** Max number of redirects to follow @default 21 */
|
|
375
|
+
maxRedirects?: number;
|
|
376
|
+
agentOptions?: SecureContextOptions;
|
|
377
|
+
}
|
|
378
|
+
export interface PaginationOptions {
|
|
379
|
+
binaryResult?: boolean;
|
|
380
|
+
continue: boolean | string;
|
|
381
|
+
request: IRequestOptionsSimplifiedAuth;
|
|
382
|
+
requestInterval: number;
|
|
383
|
+
maxRequests?: number;
|
|
384
|
+
}
|
|
385
|
+
export type IN8nHttpResponse = IDataObject | Buffer | GenericValue | GenericValue[] | null;
|
|
386
|
+
export interface IN8nHttpFullResponse {
|
|
387
|
+
body: IN8nHttpResponse | Readable;
|
|
388
|
+
__bodyResolved?: boolean;
|
|
389
|
+
headers: IDataObject;
|
|
390
|
+
statusCode: number;
|
|
391
|
+
statusMessage?: string;
|
|
392
|
+
}
|
|
393
|
+
export interface IN8nRequestOperations {
|
|
394
|
+
pagination?: IN8nRequestOperationPaginationGeneric | IN8nRequestOperationPaginationOffset | ((this: IExecutePaginationFunctions, requestOptions: DeclarativeRestApiSettings.ResultOptions) => Promise<INodeExecutionData[]>);
|
|
395
|
+
}
|
|
396
|
+
export interface IN8nRequestOperationPaginationBase {
|
|
397
|
+
type: string;
|
|
398
|
+
properties: {
|
|
399
|
+
[key: string]: unknown;
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
export interface IN8nRequestOperationPaginationGeneric extends IN8nRequestOperationPaginationBase {
|
|
403
|
+
type: 'generic';
|
|
404
|
+
properties: {
|
|
405
|
+
continue: boolean | string;
|
|
406
|
+
request: IRequestOptionsSimplifiedAuth;
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
export interface IN8nRequestOperationPaginationOffset extends IN8nRequestOperationPaginationBase {
|
|
410
|
+
type: 'offset';
|
|
411
|
+
properties: {
|
|
412
|
+
limitParameter: string;
|
|
413
|
+
offsetParameter: string;
|
|
414
|
+
pageSize: number;
|
|
415
|
+
rootProperty?: string;
|
|
416
|
+
type: 'body' | 'query';
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
export type EnsureTypeOptions = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'json';
|
|
420
|
+
export interface IGetNodeParameterOptions {
|
|
421
|
+
contextNode?: INode;
|
|
422
|
+
ensureType?: EnsureTypeOptions;
|
|
423
|
+
extractValue?: boolean;
|
|
424
|
+
rawExpressions?: boolean;
|
|
425
|
+
skipValidation?: boolean;
|
|
426
|
+
}
|
|
427
|
+
declare namespace ExecuteFunctions {
|
|
428
|
+
namespace StringReturning {
|
|
429
|
+
type NodeParameter = 'binaryProperty' | 'binaryPropertyName' | 'binaryPropertyOutput' | 'dataPropertyName' | 'dataBinaryProperty' | 'resource' | 'operation' | 'filePath' | 'encodingType';
|
|
430
|
+
}
|
|
431
|
+
namespace NumberReturning {
|
|
432
|
+
type NodeParameter = 'limit';
|
|
433
|
+
}
|
|
434
|
+
namespace BooleanReturning {
|
|
435
|
+
type NodeParameter = 'binaryData' | 'download' | 'jsonParameters' | 'returnAll' | 'rawData' | 'resolveData';
|
|
436
|
+
}
|
|
437
|
+
namespace RecordReturning {
|
|
438
|
+
type NodeParameter = 'additionalFields' | 'filters' | 'options' | 'updateFields';
|
|
439
|
+
}
|
|
440
|
+
export type GetNodeParameterFn = {
|
|
441
|
+
getNodeParameter<T extends {
|
|
442
|
+
resource: string;
|
|
443
|
+
}>(parameterName: 'resource', itemIndex?: number): T['resource'];
|
|
444
|
+
getNodeParameter(parameterName: StringReturning.NodeParameter, itemIndex: number, fallbackValue?: string, options?: IGetNodeParameterOptions): string;
|
|
445
|
+
getNodeParameter(parameterName: RecordReturning.NodeParameter, itemIndex: number, fallbackValue?: IDataObject, options?: IGetNodeParameterOptions): IDataObject;
|
|
446
|
+
getNodeParameter(parameterName: BooleanReturning.NodeParameter, itemIndex: number, fallbackValue?: boolean, options?: IGetNodeParameterOptions): boolean;
|
|
447
|
+
getNodeParameter(parameterName: NumberReturning.NodeParameter, itemIndex: number, fallbackValue?: number, options?: IGetNodeParameterOptions): number;
|
|
448
|
+
getNodeParameter(parameterName: string, itemIndex: number, fallbackValue?: any, options?: IGetNodeParameterOptions): NodeParameterValueType | object;
|
|
449
|
+
};
|
|
450
|
+
export {};
|
|
451
|
+
}
|
|
452
|
+
export interface IExecuteWorkflowInfo {
|
|
453
|
+
code?: IWorkflowBase;
|
|
454
|
+
id?: string;
|
|
455
|
+
}
|
|
456
|
+
export type ICredentialTestFunction = (this: ICredentialTestFunctions, credential: ICredentialsDecrypted<ICredentialDataDecryptedObject>) => Promise<INodeCredentialTestResult>;
|
|
457
|
+
export interface ICredentialTestFunctions {
|
|
458
|
+
logger: Logger;
|
|
459
|
+
helpers: SSHTunnelFunctions & {
|
|
460
|
+
request: (uriOrObject: string | object, options?: object) => Promise<any>;
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
export interface BaseHelperFunctions {
|
|
464
|
+
createDeferredPromise: <T = void>() => IDeferredPromise<T>;
|
|
465
|
+
returnJsonArray(jsonData: IDataObject | IDataObject[]): INodeExecutionData[];
|
|
466
|
+
}
|
|
467
|
+
declare const __brand: unique symbol;
|
|
468
|
+
export type ResolvedFilePath = string & {
|
|
469
|
+
[__brand]: 'ResolvedFilePath';
|
|
470
|
+
};
|
|
471
|
+
export interface FileSystemHelperFunctions {
|
|
472
|
+
resolvePath(path: PathLike): Promise<ResolvedFilePath>;
|
|
473
|
+
/**
|
|
474
|
+
* Use {@link resolvePath} to resolve the path first.
|
|
475
|
+
*/
|
|
476
|
+
isFilePathBlocked(filePath: ResolvedFilePath): boolean;
|
|
477
|
+
/**
|
|
478
|
+
* Use {@link resolvePath} to resolve the path first.
|
|
479
|
+
*/
|
|
480
|
+
createReadStream(filePath: ResolvedFilePath): Promise<Readable>;
|
|
481
|
+
getStoragePath(): string;
|
|
482
|
+
/**
|
|
483
|
+
* Use {@link resolvePath} to resolve the path first.
|
|
484
|
+
*/
|
|
485
|
+
writeContentToFile(path: ResolvedFilePath, content: string | Buffer | Readable, flag?: number): Promise<void>;
|
|
486
|
+
}
|
|
487
|
+
export interface BinaryHelperFunctions {
|
|
488
|
+
prepareBinaryData(binaryData: Buffer | Readable, filePath?: string, mimeType?: string): Promise<IBinaryData>;
|
|
489
|
+
setBinaryDataBuffer(data: IBinaryData, binaryData: Buffer): Promise<IBinaryData>;
|
|
490
|
+
/** @deprecated */
|
|
491
|
+
copyBinaryFile(): Promise<never>;
|
|
492
|
+
binaryToBuffer(body: Buffer | Readable): Promise<Buffer>;
|
|
493
|
+
binaryToString(body: Buffer | Readable, encoding?: BufferEncoding): Promise<string>;
|
|
494
|
+
getBinaryPath(binaryDataId: string): string;
|
|
495
|
+
getBinaryStream(binaryDataId: string, chunkSize?: number): Promise<Readable>;
|
|
496
|
+
createBinarySignedUrl(binaryData: IBinaryData, expiresIn?: string): string;
|
|
497
|
+
getBinaryMetadata(binaryDataId: string): Promise<{
|
|
498
|
+
fileName?: string;
|
|
499
|
+
mimeType?: string;
|
|
500
|
+
fileSize: number;
|
|
501
|
+
}>;
|
|
502
|
+
}
|
|
503
|
+
export type DeduplicationScope = 'node' | 'workflow';
|
|
504
|
+
export type DeduplicationItemTypes = string | number;
|
|
505
|
+
export type DeduplicationMode = 'entries' | 'latestIncrementalKey' | 'latestDate';
|
|
506
|
+
export interface IProcessedDataLatest {
|
|
507
|
+
mode: DeduplicationMode;
|
|
508
|
+
data: DeduplicationItemTypes;
|
|
509
|
+
}
|
|
510
|
+
export interface IProcessedDataEntries {
|
|
511
|
+
mode: DeduplicationMode;
|
|
512
|
+
data: DeduplicationItemTypes[];
|
|
513
|
+
}
|
|
514
|
+
export interface IDeduplicationOutput {
|
|
515
|
+
new: DeduplicationItemTypes[];
|
|
516
|
+
processed: DeduplicationItemTypes[];
|
|
517
|
+
}
|
|
518
|
+
export interface IDeduplicationOutputItems {
|
|
519
|
+
new: IDataObject[];
|
|
520
|
+
processed: IDataObject[];
|
|
521
|
+
}
|
|
522
|
+
export interface ICheckProcessedOptions {
|
|
523
|
+
mode: DeduplicationMode;
|
|
524
|
+
maxEntries?: number;
|
|
525
|
+
}
|
|
526
|
+
export interface DeduplicationHelperFunctions {
|
|
527
|
+
checkProcessedAndRecord(items: DeduplicationItemTypes[], scope: DeduplicationScope, options: ICheckProcessedOptions): Promise<IDeduplicationOutput>;
|
|
528
|
+
checkProcessedItemsAndRecord(propertyName: string, items: IDataObject[], scope: DeduplicationScope, options: ICheckProcessedOptions): Promise<IDeduplicationOutputItems>;
|
|
529
|
+
removeProcessed(items: DeduplicationItemTypes[], scope: DeduplicationScope, options: ICheckProcessedOptions): Promise<void>;
|
|
530
|
+
clearAllProcessedItems(scope: DeduplicationScope, options: ICheckProcessedOptions): Promise<void>;
|
|
531
|
+
getProcessedDataCount(scope: DeduplicationScope, options: ICheckProcessedOptions): Promise<number>;
|
|
532
|
+
}
|
|
533
|
+
interface NodeHelperFunctions {
|
|
534
|
+
copyBinaryFile(filePath: string, fileName: string, mimeType?: string): Promise<IBinaryData>;
|
|
535
|
+
}
|
|
536
|
+
export interface RequestHelperFunctions {
|
|
537
|
+
httpRequest(requestOptions: IHttpRequestOptions): Promise<any>;
|
|
538
|
+
httpRequestWithAuthentication(this: IAllExecuteFunctions, credentialsType: string, requestOptions: IHttpRequestOptions, additionalCredentialOptions?: IAdditionalCredentialOptions): Promise<any>;
|
|
539
|
+
requestWithAuthenticationPaginated(this: IAllExecuteFunctions, requestOptions: IRequestOptions, itemIndex: number, paginationOptions: PaginationOptions, credentialsType?: string, additionalCredentialOptions?: IAdditionalCredentialOptions): Promise<any[]>;
|
|
540
|
+
/**
|
|
541
|
+
* @deprecated Use .httpRequest instead
|
|
542
|
+
* @see RequestHelperFunctions.httpRequest
|
|
543
|
+
*/
|
|
544
|
+
request(uriOrObject: string | IRequestOptions, options?: IRequestOptions): Promise<any>;
|
|
545
|
+
/**
|
|
546
|
+
* @deprecated Use .httpRequestWithAuthentication instead
|
|
547
|
+
* @see RequestHelperFunctions.requestWithAuthentication
|
|
548
|
+
*/
|
|
549
|
+
requestWithAuthentication(this: IAllExecuteFunctions, credentialsType: string, requestOptions: IRequestOptions, additionalCredentialOptions?: IAdditionalCredentialOptions, itemIndex?: number): Promise<any>;
|
|
550
|
+
/**
|
|
551
|
+
* @deprecated Use .httpRequestWithAuthentication instead
|
|
552
|
+
* @see RequestHelperFunctions.requestWithAuthentication
|
|
553
|
+
*/
|
|
554
|
+
requestOAuth1(this: IAllExecuteFunctions, credentialsType: string, requestOptions: IRequestOptions): Promise<any>;
|
|
555
|
+
/**
|
|
556
|
+
* @deprecated Use .httpRequestWithAuthentication instead
|
|
557
|
+
* @see RequestHelperFunctions.requestWithAuthentication
|
|
558
|
+
*/
|
|
559
|
+
requestOAuth2(this: IAllExecuteFunctions, credentialsType: string, requestOptions: IRequestOptions, oAuth2Options?: IOAuth2Options): Promise<any>;
|
|
560
|
+
refreshOAuth2Token(this: IAllExecuteFunctions, credentialsType: string, oAuth2Options?: IOAuth2Options): Promise<any>;
|
|
561
|
+
}
|
|
562
|
+
export type SSHCredentials = {
|
|
563
|
+
sshHost: string;
|
|
564
|
+
sshPort: number;
|
|
565
|
+
sshUser: string;
|
|
566
|
+
} & ({
|
|
567
|
+
sshAuthenticateWith: 'password';
|
|
568
|
+
sshPassword: string;
|
|
569
|
+
} | {
|
|
570
|
+
sshAuthenticateWith: 'privateKey';
|
|
571
|
+
privateKey: string;
|
|
572
|
+
passphrase?: string;
|
|
573
|
+
});
|
|
574
|
+
export interface SSHTunnelFunctions {
|
|
575
|
+
getSSHClient(credentials: SSHCredentials, abortController?: AbortController): Promise<SSHClient>;
|
|
576
|
+
updateLastUsed(client: SSHClient): void;
|
|
577
|
+
}
|
|
578
|
+
type CronUnit = number | '*' | `*/${number}`;
|
|
579
|
+
export type CronExpression = `${CronUnit} ${CronUnit} ${CronUnit} ${CronUnit} ${CronUnit} ${CronUnit}`;
|
|
580
|
+
type CronRecurrenceRule = {
|
|
581
|
+
activated: false;
|
|
582
|
+
} | {
|
|
583
|
+
activated: true;
|
|
584
|
+
index: number;
|
|
585
|
+
intervalSize: number;
|
|
586
|
+
typeInterval: 'hours' | 'days' | 'weeks' | 'months';
|
|
587
|
+
};
|
|
588
|
+
export type CronContext = {
|
|
589
|
+
nodeId: string;
|
|
590
|
+
workflowId: string;
|
|
591
|
+
timezone: string;
|
|
592
|
+
expression: CronExpression;
|
|
593
|
+
recurrence?: CronRecurrenceRule;
|
|
594
|
+
};
|
|
595
|
+
export type Cron = {
|
|
596
|
+
expression: CronExpression;
|
|
597
|
+
recurrence?: CronRecurrenceRule;
|
|
598
|
+
};
|
|
599
|
+
export interface SchedulingFunctions {
|
|
600
|
+
registerCron(cron: Cron, onTick: () => void): void;
|
|
601
|
+
}
|
|
602
|
+
export type NodeTypeAndVersion = {
|
|
603
|
+
name: string;
|
|
604
|
+
type: string;
|
|
605
|
+
typeVersion: number;
|
|
606
|
+
disabled: boolean;
|
|
607
|
+
parameters?: INodeParameters;
|
|
608
|
+
};
|
|
609
|
+
export interface FunctionsBase {
|
|
610
|
+
logger: Logger;
|
|
611
|
+
getCredentials<T extends object = ICredentialDataDecryptedObject>(type: string, itemIndex?: number): Promise<T>;
|
|
612
|
+
getCredentialsProperties(type: string): INodeProperties[];
|
|
613
|
+
getExecutionId(): string;
|
|
614
|
+
getNode(): INode;
|
|
615
|
+
getWorkflow(): IWorkflowMetadata;
|
|
616
|
+
getWorkflowStaticData(type: string): IDataObject;
|
|
617
|
+
getTimezone(): string;
|
|
618
|
+
getRestApiUrl(): string;
|
|
619
|
+
getInstanceBaseUrl(): string;
|
|
620
|
+
getInstanceId(): string;
|
|
621
|
+
/** Get the waiting resume url signed with the signature token */
|
|
622
|
+
getSignedResumeUrl(parameters?: Record<string, string>): string;
|
|
623
|
+
/** Set requirement in the execution for signature token validation */
|
|
624
|
+
setSignatureValidationRequired(): void;
|
|
625
|
+
getChildNodes(nodeName: string, options?: {
|
|
626
|
+
includeNodeParameters?: boolean;
|
|
627
|
+
}): NodeTypeAndVersion[];
|
|
628
|
+
getParentNodes(nodeName: string, options?: {
|
|
629
|
+
includeNodeParameters?: boolean;
|
|
630
|
+
connectionType?: NodeConnectionType;
|
|
631
|
+
depth?: number;
|
|
632
|
+
}): NodeTypeAndVersion[];
|
|
633
|
+
getKnownNodeTypes(): IDataObject;
|
|
634
|
+
getMode?: () => WorkflowExecuteMode;
|
|
635
|
+
getActivationMode?: () => WorkflowActivateMode;
|
|
636
|
+
getChatTrigger: () => INode | null;
|
|
637
|
+
isNodeFeatureEnabled(featureName: string): boolean;
|
|
638
|
+
getExecutionContext: () => IExecutionContext | undefined;
|
|
639
|
+
/** @deprecated */
|
|
640
|
+
prepareOutputData(outputData: INodeExecutionData[]): Promise<INodeExecutionData[][]>;
|
|
641
|
+
}
|
|
642
|
+
type FunctionsBaseWithRequiredKeys<Keys extends keyof FunctionsBase> = FunctionsBase & {
|
|
643
|
+
[K in Keys]: NonNullable<FunctionsBase[K]>;
|
|
644
|
+
};
|
|
645
|
+
export type ContextType = 'flow' | 'node';
|
|
646
|
+
export type DataTableProxyProvider = {
|
|
647
|
+
getDataTableAggregateProxy(workflow: Workflow, node: INode, projectId?: string): Promise<IDataTableProjectAggregateService>;
|
|
648
|
+
getDataTableProxy(workflow: Workflow, node: INode, dataTableId: string, projectId?: string): Promise<IDataTableProjectService>;
|
|
649
|
+
};
|
|
650
|
+
export type DataTableProxyFunctions = {
|
|
651
|
+
getDataTableAggregateProxy?(): Promise<IDataTableProjectAggregateService>;
|
|
652
|
+
getDataTableProxy?(dataTableId: string): Promise<IDataTableProjectService>;
|
|
653
|
+
};
|
|
654
|
+
type BaseExecutionFunctions = FunctionsBaseWithRequiredKeys<'getMode'> & {
|
|
655
|
+
continueOnFail(): boolean;
|
|
656
|
+
setMetadata(metadata: ITaskMetadata): void;
|
|
657
|
+
evaluateExpression(expression: string, itemIndex: number): NodeParameterValueType;
|
|
658
|
+
getContext(type: ContextType): IContextObject;
|
|
659
|
+
getExecuteData(): IExecuteData;
|
|
660
|
+
getWorkflowDataProxy(itemIndex: number): IWorkflowDataProxyData;
|
|
661
|
+
getInputSourceData(inputIndex?: number, connectionType?: NodeConnectionType): ISourceData;
|
|
662
|
+
getExecutionCancelSignal(): AbortSignal | undefined;
|
|
663
|
+
onExecutionCancellation(handler: () => unknown): void;
|
|
664
|
+
logAiEvent(eventName: AiEvent, msg?: string): void;
|
|
665
|
+
};
|
|
666
|
+
export type IExecuteFunctions = ExecuteFunctions.GetNodeParameterFn & BaseExecutionFunctions & {
|
|
667
|
+
executeWorkflow(workflowInfo: IExecuteWorkflowInfo, inputData?: INodeExecutionData[], parentCallbackManager?: CallbackManager, options?: {
|
|
668
|
+
doNotWaitToFinish?: boolean;
|
|
669
|
+
parentExecution?: RelatedExecution;
|
|
670
|
+
executionMode?: WorkflowExecuteMode;
|
|
671
|
+
}): Promise<ExecuteWorkflowData>;
|
|
672
|
+
getExecutionDataById(executionId: string): Promise<IRunExecutionData | undefined>;
|
|
673
|
+
getInputConnectionData(connectionType: AINodeConnectionType, itemIndex: number, inputIndex?: number): Promise<unknown>;
|
|
674
|
+
getInputData(inputIndex?: number, connectionType?: NodeConnectionType): INodeExecutionData[];
|
|
675
|
+
getNodeInputs(): INodeInputConfiguration[];
|
|
676
|
+
getNodeOutputs(): INodeOutputConfiguration[];
|
|
677
|
+
putExecutionToWait(waitTill: Date): Promise<void>;
|
|
678
|
+
sendMessageToUI(message: any): void;
|
|
679
|
+
sendResponse(response: IExecuteResponsePromiseData): void;
|
|
680
|
+
sendChunk(type: ChunkType, itemIndex: number, content?: IDataObject | string): void;
|
|
681
|
+
isStreaming(): boolean;
|
|
682
|
+
/** Returns true if the node is being executed as an AI Agent tool */
|
|
683
|
+
isToolExecution(): boolean;
|
|
684
|
+
addInputData(connectionType: NodeConnectionType, data: INodeExecutionData[][] | ExecutionError, runIndex?: number): {
|
|
685
|
+
index: number;
|
|
686
|
+
};
|
|
687
|
+
addOutputData(connectionType: NodeConnectionType, currentNodeRunIndex: number, data: INodeExecutionData[][] | ExecutionError, metadata?: ITaskMetadata, sourceNodeRunIndex?: number): void;
|
|
688
|
+
addExecutionHints(...hints: NodeExecutionHint[]): void;
|
|
689
|
+
nodeHelpers: NodeHelperFunctions;
|
|
690
|
+
helpers: RequestHelperFunctions & BaseHelperFunctions & BinaryHelperFunctions & DeduplicationHelperFunctions & FileSystemHelperFunctions & SSHTunnelFunctions & DataTableProxyFunctions & {
|
|
691
|
+
normalizeItems(items: INodeExecutionData | INodeExecutionData[]): INodeExecutionData[];
|
|
692
|
+
constructExecutionMetaData(inputData: INodeExecutionData[], options: {
|
|
693
|
+
itemData: IPairedItemData | IPairedItemData[];
|
|
694
|
+
}): NodeExecutionWithMetadata[];
|
|
695
|
+
assertBinaryData(itemIndex: number, parameterData: string | IBinaryData): IBinaryData;
|
|
696
|
+
getBinaryDataBuffer(itemIndex: number, parameterData: string | IBinaryData): Promise<Buffer>;
|
|
697
|
+
detectBinaryEncoding(buffer: Buffer): string;
|
|
698
|
+
copyInputItems(items: INodeExecutionData[], properties: string[]): IDataObject[];
|
|
699
|
+
};
|
|
700
|
+
getParentCallbackManager(): CallbackManager | undefined;
|
|
701
|
+
startJob<T = unknown, E = unknown>(jobType: string, settings: unknown, itemIndex: number): Promise<Result<T, E>>;
|
|
702
|
+
getRunnerStatus(taskType: string): {
|
|
703
|
+
available: true;
|
|
704
|
+
} | {
|
|
705
|
+
available: false;
|
|
706
|
+
reason?: string;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
export interface IExecuteSingleFunctions extends BaseExecutionFunctions {
|
|
710
|
+
getInputData(inputIndex?: number, connectionType?: NodeConnectionType): INodeExecutionData;
|
|
711
|
+
getItemIndex(): number;
|
|
712
|
+
getNodeParameter(parameterName: string, fallbackValue?: any, options?: IGetNodeParameterOptions): NodeParameterValueType | object;
|
|
713
|
+
helpers: RequestHelperFunctions & BaseHelperFunctions & BinaryHelperFunctions & {
|
|
714
|
+
assertBinaryData(propertyName: string, inputIndex?: number): IBinaryData;
|
|
715
|
+
getBinaryDataBuffer(propertyName: string, inputIndex?: number): Promise<Buffer>;
|
|
716
|
+
detectBinaryEncoding(buffer: Buffer): string;
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
export type ISupplyDataFunctions = ExecuteFunctions.GetNodeParameterFn & FunctionsBaseWithRequiredKeys<'getMode'> & Pick<IExecuteFunctions, 'addInputData' | 'addOutputData' | 'getInputConnectionData' | 'getInputData' | 'getNodeOutputs' | 'executeWorkflow' | 'sendMessageToUI' | 'startJob' | 'helpers' | 'isToolExecution'> & {
|
|
720
|
+
getNextRunIndex(): number;
|
|
721
|
+
continueOnFail(): boolean;
|
|
722
|
+
evaluateExpression(expression: string, itemIndex: number): NodeParameterValueType;
|
|
723
|
+
getWorkflowDataProxy(itemIndex: number): IWorkflowDataProxyData;
|
|
724
|
+
getExecutionCancelSignal(): AbortSignal | undefined;
|
|
725
|
+
onExecutionCancellation(handler: () => unknown): void;
|
|
726
|
+
logAiEvent(eventName: AiEvent, msg?: string): void;
|
|
727
|
+
addExecutionHints(...hints: NodeExecutionHint[]): void;
|
|
728
|
+
cloneWith(replacements: {
|
|
729
|
+
runIndex: number;
|
|
730
|
+
inputData: INodeExecutionData[][];
|
|
731
|
+
}): ISupplyDataFunctions;
|
|
732
|
+
};
|
|
733
|
+
export interface IExecutePaginationFunctions extends IExecuteSingleFunctions {
|
|
734
|
+
makeRoutingRequest(this: IAllExecuteFunctions, requestOptions: DeclarativeRestApiSettings.ResultOptions): Promise<INodeExecutionData[]>;
|
|
735
|
+
}
|
|
736
|
+
export interface ILoadOptionsFunctions extends FunctionsBase {
|
|
737
|
+
getNodeParameter(parameterName: string, fallbackValue?: any, options?: IGetNodeParameterOptions): NodeParameterValueType | object;
|
|
738
|
+
getCurrentNodeParameter(parameterName: string, options?: IGetNodeParameterOptions): NodeParameterValueType | object | undefined;
|
|
739
|
+
getCurrentNodeParameters(): INodeParameters | undefined;
|
|
740
|
+
helpers: RequestHelperFunctions & SSHTunnelFunctions & DataTableProxyFunctions;
|
|
741
|
+
}
|
|
742
|
+
export type FieldValueOption = {
|
|
743
|
+
name: string;
|
|
744
|
+
type: FieldType | 'any';
|
|
745
|
+
};
|
|
746
|
+
export type IWorkflowNodeContext = ExecuteFunctions.GetNodeParameterFn & Pick<FunctionsBase, 'getNode' | 'getWorkflow'>;
|
|
747
|
+
export interface ILocalLoadOptionsFunctions {
|
|
748
|
+
getWorkflowNodeContext(nodeType: string, useActiveVersion?: boolean): Promise<IWorkflowNodeContext | null>;
|
|
749
|
+
}
|
|
750
|
+
export interface IWorkflowLoader {
|
|
751
|
+
get(workflowId: string): Promise<IWorkflowBase>;
|
|
752
|
+
}
|
|
753
|
+
export interface IPollFunctions extends FunctionsBaseWithRequiredKeys<'getMode' | 'getActivationMode'> {
|
|
754
|
+
__emit(data: INodeExecutionData[][], responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>, donePromise?: IDeferredPromise<IRun>): void;
|
|
755
|
+
__emitError(error: Error, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): void;
|
|
756
|
+
getNodeParameter(parameterName: string, fallbackValue?: any, options?: IGetNodeParameterOptions): NodeParameterValueType | object;
|
|
757
|
+
helpers: RequestHelperFunctions & BaseHelperFunctions & BinaryHelperFunctions & SchedulingFunctions;
|
|
758
|
+
}
|
|
759
|
+
export interface ITriggerFunctions extends FunctionsBaseWithRequiredKeys<'getMode' | 'getActivationMode'> {
|
|
760
|
+
emit(data: INodeExecutionData[][], responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>, donePromise?: IDeferredPromise<IRun>): void;
|
|
761
|
+
emitError(error: Error, responsePromise?: IDeferredPromise<IExecuteResponsePromiseData>): void;
|
|
762
|
+
getNodeParameter(parameterName: string, fallbackValue?: any, options?: IGetNodeParameterOptions): NodeParameterValueType | object;
|
|
763
|
+
helpers: RequestHelperFunctions & BaseHelperFunctions & BinaryHelperFunctions & SSHTunnelFunctions & SchedulingFunctions;
|
|
764
|
+
}
|
|
765
|
+
export interface IHookFunctions extends FunctionsBaseWithRequiredKeys<'getMode' | 'getActivationMode'> {
|
|
766
|
+
getWebhookName(): string;
|
|
767
|
+
getWebhookDescription(name: WebhookType): IWebhookDescription | undefined;
|
|
768
|
+
getNodeWebhookUrl: (name: WebhookType) => string | undefined;
|
|
769
|
+
getNodeParameter(parameterName: string, fallbackValue?: any, options?: IGetNodeParameterOptions): NodeParameterValueType | object;
|
|
770
|
+
helpers: RequestHelperFunctions;
|
|
771
|
+
}
|
|
772
|
+
export interface IWebhookFunctions extends FunctionsBaseWithRequiredKeys<'getMode'> {
|
|
773
|
+
getBodyData(): IDataObject;
|
|
774
|
+
getHeaderData(): IncomingHttpHeaders;
|
|
775
|
+
getInputConnectionData(connectionType: AINodeConnectionType, itemIndex: number, inputIndex?: number): Promise<unknown>;
|
|
776
|
+
getNodeParameter(parameterName: string, fallbackValue?: any, options?: IGetNodeParameterOptions): NodeParameterValueType | object;
|
|
777
|
+
getNodeWebhookUrl: (name: WebhookType) => string | undefined;
|
|
778
|
+
evaluateExpression(expression: string, itemIndex?: number): NodeParameterValueType;
|
|
779
|
+
getParamsData(): object;
|
|
780
|
+
getQueryData(): object;
|
|
781
|
+
getRequestObject(): express.Request;
|
|
782
|
+
getResponseObject(): express.Response;
|
|
783
|
+
getWebhookName(): string;
|
|
784
|
+
nodeHelpers: NodeHelperFunctions;
|
|
785
|
+
helpers: RequestHelperFunctions & BaseHelperFunctions & BinaryHelperFunctions;
|
|
786
|
+
}
|
|
787
|
+
export interface INodeCredentialsDetails {
|
|
788
|
+
id: string | null;
|
|
789
|
+
name: string;
|
|
790
|
+
}
|
|
791
|
+
export interface INodeCredentials {
|
|
792
|
+
[key: string]: INodeCredentialsDetails;
|
|
793
|
+
}
|
|
794
|
+
export type OnError = 'continueErrorOutput' | 'continueRegularOutput' | 'stopWorkflow';
|
|
795
|
+
export interface INode {
|
|
796
|
+
id: string;
|
|
797
|
+
name: string;
|
|
798
|
+
typeVersion: number;
|
|
799
|
+
type: string;
|
|
800
|
+
position: [number, number];
|
|
801
|
+
disabled?: boolean;
|
|
802
|
+
notes?: string;
|
|
803
|
+
notesInFlow?: boolean;
|
|
804
|
+
retryOnFail?: boolean;
|
|
805
|
+
maxTries?: number;
|
|
806
|
+
waitBetweenTries?: number;
|
|
807
|
+
alwaysOutputData?: boolean;
|
|
808
|
+
executeOnce?: boolean;
|
|
809
|
+
onError?: OnError;
|
|
810
|
+
continueOnFail?: boolean;
|
|
811
|
+
parameters: INodeParameters;
|
|
812
|
+
credentials?: INodeCredentials;
|
|
813
|
+
webhookId?: string;
|
|
814
|
+
extendsCredential?: string;
|
|
815
|
+
rewireOutputLogTo?: NodeConnectionType;
|
|
816
|
+
forceCustomOperation?: {
|
|
817
|
+
resource: string;
|
|
818
|
+
operation: string;
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
export interface IPinData {
|
|
822
|
+
[nodeName: string]: INodeExecutionData[];
|
|
823
|
+
}
|
|
824
|
+
export interface INodes {
|
|
825
|
+
[key: string]: INode;
|
|
826
|
+
}
|
|
827
|
+
export interface IObservableObject {
|
|
828
|
+
[key: string]: any;
|
|
829
|
+
__dataChanged: boolean;
|
|
830
|
+
}
|
|
831
|
+
export interface IBinaryKeyData {
|
|
832
|
+
[key: string]: IBinaryData;
|
|
833
|
+
}
|
|
834
|
+
export interface IPairedItemData {
|
|
835
|
+
item: number;
|
|
836
|
+
input?: number;
|
|
837
|
+
sourceOverwrite?: ISourceData;
|
|
838
|
+
}
|
|
839
|
+
export interface INodeExecutionData {
|
|
840
|
+
[key: string]: IDataObject | IBinaryKeyData | IPairedItemData | IPairedItemData[] | NodeApiError | NodeOperationError | number | string | undefined;
|
|
841
|
+
json: IDataObject;
|
|
842
|
+
binary?: IBinaryKeyData;
|
|
843
|
+
error?: NodeApiError | NodeOperationError;
|
|
844
|
+
pairedItem?: IPairedItemData | IPairedItemData[] | number;
|
|
845
|
+
metadata?: {
|
|
846
|
+
subExecution: RelatedExecution;
|
|
847
|
+
};
|
|
848
|
+
evaluationData?: Record<string, GenericValue>;
|
|
849
|
+
/**
|
|
850
|
+
* Use this key to send a message to the chat.
|
|
851
|
+
*
|
|
852
|
+
* - Workflow has to be started by a chat node.
|
|
853
|
+
* - Put execution to wait after sending.
|
|
854
|
+
*
|
|
855
|
+
* See example in
|
|
856
|
+
* packages/@n8n/nodes-langchain/nodes/trigger/ChatTrigger/Chat.node.ts
|
|
857
|
+
*/
|
|
858
|
+
sendMessage?: string;
|
|
859
|
+
/**
|
|
860
|
+
* @deprecated This key was added by accident and should not be used as it
|
|
861
|
+
* will be removed in future. For more information see PR #12469.
|
|
862
|
+
*/
|
|
863
|
+
index?: number;
|
|
864
|
+
}
|
|
865
|
+
export type NodeParameterValue = string | number | boolean | undefined | null;
|
|
866
|
+
export type ResourceLocatorModes = 'id' | 'url' | 'list' | string;
|
|
867
|
+
export interface IResourceLocatorResult {
|
|
868
|
+
name: string;
|
|
869
|
+
value: string;
|
|
870
|
+
url?: string;
|
|
871
|
+
}
|
|
872
|
+
export interface INodeParameterResourceLocator {
|
|
873
|
+
__rl: true;
|
|
874
|
+
mode: ResourceLocatorModes;
|
|
875
|
+
value: Exclude<NodeParameterValue, boolean>;
|
|
876
|
+
cachedResultName?: string;
|
|
877
|
+
cachedResultUrl?: string;
|
|
878
|
+
__regex?: string;
|
|
879
|
+
}
|
|
880
|
+
export type NodeParameterValueType = NodeParameterValue | INodeParameters | INodeParameterResourceLocator | ResourceMapperValue | FilterValue | AssignmentCollectionValue | NodeParameterValue[] | INodeParameters[] | INodeParameterResourceLocator[] | ResourceMapperValue[];
|
|
881
|
+
export interface INodeParameters {
|
|
882
|
+
[key: string]: NodeParameterValueType;
|
|
883
|
+
}
|
|
884
|
+
export type NodePropertyTypes = 'boolean' | 'button' | 'collection' | 'color' | 'dateTime' | 'fixedCollection' | 'hidden' | 'json' | 'callout' | 'notice' | 'multiOptions' | 'number' | 'options' | 'string' | 'credentialsSelect' | 'resourceLocator' | 'curlImport' | 'resourceMapper' | 'filter' | 'assignmentCollection' | 'credentials' | 'workflowSelector';
|
|
885
|
+
export type CodeAutocompleteTypes = 'function' | 'functionItem';
|
|
886
|
+
export type EditorType = 'codeNodeEditor' | 'jsEditor' | 'htmlEditor' | 'sqlEditor' | 'cssEditor';
|
|
887
|
+
export type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];
|
|
888
|
+
export type CodeExecutionMode = (typeof CODE_EXECUTION_MODES)[number];
|
|
889
|
+
export type SQLDialect = 'StandardSQL' | 'PostgreSQL' | 'MySQL' | 'OracleDB' | 'MariaSQL' | 'MSSQL' | 'SQLite' | 'Cassandra' | 'PLSQL';
|
|
890
|
+
export interface ILoadOptions {
|
|
891
|
+
routing?: {
|
|
892
|
+
operations?: IN8nRequestOperations;
|
|
893
|
+
output?: INodeRequestOutput;
|
|
894
|
+
request?: DeclarativeRestApiSettings.HttpRequestOptions;
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
export type NodePropertyAction = {
|
|
898
|
+
type: 'askAiCodeGeneration';
|
|
899
|
+
handler?: string;
|
|
900
|
+
target?: string;
|
|
901
|
+
};
|
|
902
|
+
export interface CalloutActionBase {
|
|
903
|
+
type: string;
|
|
904
|
+
label: string;
|
|
905
|
+
icon?: string;
|
|
906
|
+
}
|
|
907
|
+
export interface CalloutActionOpenPreBuiltAgentsCollection extends CalloutActionBase {
|
|
908
|
+
type: 'openPreBuiltAgentsCollection';
|
|
909
|
+
}
|
|
910
|
+
export interface CalloutActionOpenSampleWorkflowTemplate extends CalloutActionBase {
|
|
911
|
+
type: 'openSampleWorkflowTemplate';
|
|
912
|
+
templateId: string;
|
|
913
|
+
}
|
|
914
|
+
export type CalloutAction = CalloutActionOpenPreBuiltAgentsCollection | CalloutActionOpenSampleWorkflowTemplate;
|
|
915
|
+
export interface INodePropertyTypeOptions {
|
|
916
|
+
buttonConfig?: {
|
|
917
|
+
action?: string | NodePropertyAction;
|
|
918
|
+
label?: string;
|
|
919
|
+
hasInputField?: boolean;
|
|
920
|
+
inputFieldMaxLength?: number;
|
|
921
|
+
};
|
|
922
|
+
containerClass?: string;
|
|
923
|
+
alwaysOpenEditWindow?: boolean;
|
|
924
|
+
codeAutocomplete?: CodeAutocompleteTypes;
|
|
925
|
+
editor?: EditorType;
|
|
926
|
+
editorIsReadOnly?: boolean;
|
|
927
|
+
sqlDialect?: SQLDialect;
|
|
928
|
+
loadOptionsDependsOn?: string[];
|
|
929
|
+
loadOptionsMethod?: string;
|
|
930
|
+
loadOptions?: ILoadOptions;
|
|
931
|
+
maxValue?: number;
|
|
932
|
+
minValue?: number;
|
|
933
|
+
multipleValues?: boolean;
|
|
934
|
+
multipleValueButtonText?: string;
|
|
935
|
+
numberPrecision?: number;
|
|
936
|
+
password?: boolean;
|
|
937
|
+
rows?: number;
|
|
938
|
+
showAlpha?: boolean;
|
|
939
|
+
sortable?: boolean;
|
|
940
|
+
expirable?: boolean;
|
|
941
|
+
dateOnly?: boolean;
|
|
942
|
+
resourceMapper?: ResourceMapperTypeOptions;
|
|
943
|
+
filter?: FilterTypeOptions;
|
|
944
|
+
assignment?: AssignmentTypeOptions;
|
|
945
|
+
minRequiredFields?: number;
|
|
946
|
+
maxAllowedFields?: number;
|
|
947
|
+
hideOptionalFields?: boolean;
|
|
948
|
+
addOptionalFieldButtonText?: string;
|
|
949
|
+
showEvenWhenOptional?: boolean;
|
|
950
|
+
calloutAction?: CalloutAction;
|
|
951
|
+
binaryDataProperty?: boolean;
|
|
952
|
+
[key: string]: any;
|
|
953
|
+
}
|
|
954
|
+
export interface ResourceMapperTypeOptionsBase {
|
|
955
|
+
mode: 'add' | 'update' | 'upsert' | 'map';
|
|
956
|
+
valuesLabel?: string;
|
|
957
|
+
fieldWords?: {
|
|
958
|
+
singular: string;
|
|
959
|
+
plural: string;
|
|
960
|
+
};
|
|
961
|
+
addAllFields?: boolean;
|
|
962
|
+
noFieldsError?: string;
|
|
963
|
+
multiKeyMatch?: boolean;
|
|
964
|
+
supportAutoMap?: boolean;
|
|
965
|
+
hideNoDataError?: boolean;
|
|
966
|
+
matchingFieldsLabels?: {
|
|
967
|
+
title?: string;
|
|
968
|
+
description?: string;
|
|
969
|
+
hint?: string;
|
|
970
|
+
};
|
|
971
|
+
showTypeConversionOptions?: boolean;
|
|
972
|
+
allowEmptyValues?: boolean;
|
|
973
|
+
}
|
|
974
|
+
export type ResourceMapperTypeOptionsLocal = {
|
|
975
|
+
resourceMapperMethod: string;
|
|
976
|
+
localResourceMapperMethod?: never;
|
|
977
|
+
};
|
|
978
|
+
export type ResourceMapperTypeOptionsExternal = {
|
|
979
|
+
localResourceMapperMethod: string;
|
|
980
|
+
resourceMapperMethod?: never;
|
|
981
|
+
};
|
|
982
|
+
export type ResourceMapperTypeOptions = ResourceMapperTypeOptionsBase & (ResourceMapperTypeOptionsLocal | ResourceMapperTypeOptionsExternal);
|
|
983
|
+
type NonEmptyArray<T> = [T, ...T[]];
|
|
984
|
+
export type FilterTypeCombinator = 'and' | 'or';
|
|
985
|
+
export type FilterTypeOptions = {
|
|
986
|
+
version: 1 | 2 | 3 | {};
|
|
987
|
+
caseSensitive?: boolean | string;
|
|
988
|
+
leftValue?: string;
|
|
989
|
+
allowedCombinators?: NonEmptyArray<FilterTypeCombinator>;
|
|
990
|
+
maxConditions?: number;
|
|
991
|
+
typeValidation?: 'strict' | 'loose' | {};
|
|
992
|
+
};
|
|
993
|
+
export type AssignmentTypeOptions = Partial<{
|
|
994
|
+
hideType?: boolean;
|
|
995
|
+
defaultType?: FieldType | 'string';
|
|
996
|
+
disableType?: boolean;
|
|
997
|
+
}>;
|
|
998
|
+
export type DisplayCondition = {
|
|
999
|
+
_cnd: {
|
|
1000
|
+
eq: NodeParameterValue;
|
|
1001
|
+
};
|
|
1002
|
+
} | {
|
|
1003
|
+
_cnd: {
|
|
1004
|
+
not: NodeParameterValue;
|
|
1005
|
+
};
|
|
1006
|
+
} | {
|
|
1007
|
+
_cnd: {
|
|
1008
|
+
gte: number | string;
|
|
1009
|
+
};
|
|
1010
|
+
} | {
|
|
1011
|
+
_cnd: {
|
|
1012
|
+
lte: number | string;
|
|
1013
|
+
};
|
|
1014
|
+
} | {
|
|
1015
|
+
_cnd: {
|
|
1016
|
+
gt: number | string;
|
|
1017
|
+
};
|
|
1018
|
+
} | {
|
|
1019
|
+
_cnd: {
|
|
1020
|
+
lt: number | string;
|
|
1021
|
+
};
|
|
1022
|
+
} | {
|
|
1023
|
+
_cnd: {
|
|
1024
|
+
between: {
|
|
1025
|
+
from: number | string;
|
|
1026
|
+
to: number | string;
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
} | {
|
|
1030
|
+
_cnd: {
|
|
1031
|
+
startsWith: string;
|
|
1032
|
+
};
|
|
1033
|
+
} | {
|
|
1034
|
+
_cnd: {
|
|
1035
|
+
endsWith: string;
|
|
1036
|
+
};
|
|
1037
|
+
} | {
|
|
1038
|
+
_cnd: {
|
|
1039
|
+
includes: string;
|
|
1040
|
+
};
|
|
1041
|
+
} | {
|
|
1042
|
+
_cnd: {
|
|
1043
|
+
regex: string;
|
|
1044
|
+
};
|
|
1045
|
+
} | {
|
|
1046
|
+
_cnd: {
|
|
1047
|
+
exists: true;
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
export type NodeFeatures = Record<string, boolean>;
|
|
1051
|
+
export type FeatureCondition = {
|
|
1052
|
+
'@version': Array<number | DisplayCondition>;
|
|
1053
|
+
};
|
|
1054
|
+
export type NodeFeaturesDefinition = Record<string, FeatureCondition>;
|
|
1055
|
+
export interface IDisplayOptions {
|
|
1056
|
+
hide?: {
|
|
1057
|
+
[key: string]: Array<NodeParameterValue | DisplayCondition> | undefined;
|
|
1058
|
+
};
|
|
1059
|
+
show?: {
|
|
1060
|
+
'@version'?: Array<number | DisplayCondition>;
|
|
1061
|
+
'@feature'?: Array<string | DisplayCondition>;
|
|
1062
|
+
'@tool'?: boolean[];
|
|
1063
|
+
[key: string]: Array<NodeParameterValue | DisplayCondition> | undefined;
|
|
1064
|
+
};
|
|
1065
|
+
hideOnCloud?: boolean;
|
|
1066
|
+
}
|
|
1067
|
+
export interface ICredentialsDisplayOptions {
|
|
1068
|
+
hide?: {
|
|
1069
|
+
[key: string]: NodeParameterValue[] | undefined;
|
|
1070
|
+
};
|
|
1071
|
+
show?: {
|
|
1072
|
+
'@version'?: number[];
|
|
1073
|
+
[key: string]: NodeParameterValue[] | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
hideOnCloud?: boolean;
|
|
1076
|
+
}
|
|
1077
|
+
export interface INodeProperties {
|
|
1078
|
+
displayName: string;
|
|
1079
|
+
name: string;
|
|
1080
|
+
type: NodePropertyTypes;
|
|
1081
|
+
typeOptions?: INodePropertyTypeOptions;
|
|
1082
|
+
default: NodeParameterValueType;
|
|
1083
|
+
description?: string;
|
|
1084
|
+
hint?: string;
|
|
1085
|
+
disabledOptions?: IDisplayOptions;
|
|
1086
|
+
displayOptions?: IDisplayOptions;
|
|
1087
|
+
options?: Array<INodePropertyOptions | INodeProperties | INodePropertyCollection>;
|
|
1088
|
+
placeholder?: string;
|
|
1089
|
+
isNodeSetting?: boolean;
|
|
1090
|
+
noDataExpression?: boolean;
|
|
1091
|
+
required?: boolean;
|
|
1092
|
+
routing?: INodePropertyRouting;
|
|
1093
|
+
credentialTypes?: Array<'extends:oAuth2Api' | 'extends:oAuth1Api' | 'has:authenticate' | 'has:genericAuth'>;
|
|
1094
|
+
extractValue?: INodePropertyValueExtractor;
|
|
1095
|
+
modes?: INodePropertyMode[];
|
|
1096
|
+
requiresDataPath?: 'single' | 'multiple';
|
|
1097
|
+
doNotInherit?: boolean;
|
|
1098
|
+
validateType?: FieldType;
|
|
1099
|
+
ignoreValidationDuringExecution?: boolean;
|
|
1100
|
+
allowArbitraryValues?: boolean;
|
|
1101
|
+
resolvableField?: boolean;
|
|
1102
|
+
}
|
|
1103
|
+
export interface INodePropertyModeTypeOptions {
|
|
1104
|
+
searchListMethod?: string;
|
|
1105
|
+
searchFilterRequired?: boolean;
|
|
1106
|
+
searchable?: boolean;
|
|
1107
|
+
/**
|
|
1108
|
+
* If provided, a slow load notice will be shown to the user if the resource locator takes longer than the timeout to load.
|
|
1109
|
+
* @example
|
|
1110
|
+
* {
|
|
1111
|
+
* message: 'If loading takes longer than expected, try selecting a resource using "By ID"',
|
|
1112
|
+
* timeout: 10000,
|
|
1113
|
+
* }
|
|
1114
|
+
*/
|
|
1115
|
+
slowLoadNotice?: {
|
|
1116
|
+
message: string;
|
|
1117
|
+
timeout: number;
|
|
1118
|
+
};
|
|
1119
|
+
/**
|
|
1120
|
+
* If true, the resource locator will not show an error if the credentials are not selected
|
|
1121
|
+
*/
|
|
1122
|
+
skipCredentialsCheckInRLC?: boolean;
|
|
1123
|
+
allowNewResource?: {
|
|
1124
|
+
label: string;
|
|
1125
|
+
} & ({
|
|
1126
|
+
method: string;
|
|
1127
|
+
url?: never;
|
|
1128
|
+
defaultName: string;
|
|
1129
|
+
} | {
|
|
1130
|
+
method?: never;
|
|
1131
|
+
url: string;
|
|
1132
|
+
defaultName?: never;
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
export interface INodePropertyMode {
|
|
1136
|
+
displayName: string;
|
|
1137
|
+
name: string;
|
|
1138
|
+
type: 'string' | 'list';
|
|
1139
|
+
hint?: string;
|
|
1140
|
+
validation?: Array<INodePropertyModeValidation | {
|
|
1141
|
+
(this: IExecuteSingleFunctions, value: string): void;
|
|
1142
|
+
}>;
|
|
1143
|
+
placeholder?: string;
|
|
1144
|
+
url?: string;
|
|
1145
|
+
extractValue?: INodePropertyValueExtractor;
|
|
1146
|
+
initType?: string;
|
|
1147
|
+
entryTypes?: {
|
|
1148
|
+
[name: string]: {
|
|
1149
|
+
selectable?: boolean;
|
|
1150
|
+
hidden?: boolean;
|
|
1151
|
+
queryable?: boolean;
|
|
1152
|
+
data?: {
|
|
1153
|
+
request?: IHttpRequestOptions;
|
|
1154
|
+
output?: INodeRequestOutput;
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
search?: INodePropertyRouting;
|
|
1159
|
+
typeOptions?: INodePropertyModeTypeOptions;
|
|
1160
|
+
}
|
|
1161
|
+
export interface INodePropertyModeValidation {
|
|
1162
|
+
type: string;
|
|
1163
|
+
properties: {};
|
|
1164
|
+
}
|
|
1165
|
+
export interface INodePropertyRegexValidation extends INodePropertyModeValidation {
|
|
1166
|
+
type: 'regex';
|
|
1167
|
+
properties: {
|
|
1168
|
+
regex: string;
|
|
1169
|
+
errorMessage: string;
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
export interface INodePropertyOptions {
|
|
1173
|
+
name: string;
|
|
1174
|
+
value: string | number | boolean;
|
|
1175
|
+
action?: string;
|
|
1176
|
+
description?: string;
|
|
1177
|
+
routing?: INodePropertyRouting;
|
|
1178
|
+
outputConnectionType?: NodeConnectionType;
|
|
1179
|
+
inputSchema?: any;
|
|
1180
|
+
displayOptions?: IDisplayOptions;
|
|
1181
|
+
disabledOptions?: undefined;
|
|
1182
|
+
}
|
|
1183
|
+
export interface INodeListSearchItems extends INodePropertyOptions {
|
|
1184
|
+
icon?: string;
|
|
1185
|
+
url?: string;
|
|
1186
|
+
}
|
|
1187
|
+
export interface INodeListSearchResult {
|
|
1188
|
+
results: INodeListSearchItems[];
|
|
1189
|
+
paginationToken?: unknown;
|
|
1190
|
+
}
|
|
1191
|
+
export interface INodePropertyCollection {
|
|
1192
|
+
displayName: string;
|
|
1193
|
+
name: string;
|
|
1194
|
+
values: INodeProperties[];
|
|
1195
|
+
}
|
|
1196
|
+
export interface INodePropertyValueExtractorBase {
|
|
1197
|
+
type: string;
|
|
1198
|
+
}
|
|
1199
|
+
export interface INodePropertyValueExtractorRegex extends INodePropertyValueExtractorBase {
|
|
1200
|
+
type: 'regex';
|
|
1201
|
+
regex: string | RegExp;
|
|
1202
|
+
}
|
|
1203
|
+
export interface INodePropertyValueExtractorFunction {
|
|
1204
|
+
(this: IExecuteSingleFunctions, value: string | NodeParameterValue): Promise<string | NodeParameterValue> | string;
|
|
1205
|
+
}
|
|
1206
|
+
export type INodePropertyValueExtractor = INodePropertyValueExtractorRegex;
|
|
1207
|
+
export interface IParameterDependencies {
|
|
1208
|
+
[key: string]: string[];
|
|
1209
|
+
}
|
|
1210
|
+
export type IParameterLabel = {
|
|
1211
|
+
size?: 'small' | 'medium';
|
|
1212
|
+
};
|
|
1213
|
+
export interface ITriggerResponse {
|
|
1214
|
+
closeFunction?: CloseFunction;
|
|
1215
|
+
manualTriggerFunction?: () => Promise<void>;
|
|
1216
|
+
manualTriggerResponse?: Promise<INodeExecutionData[][]>;
|
|
1217
|
+
}
|
|
1218
|
+
export interface ExecuteWorkflowData {
|
|
1219
|
+
executionId: string;
|
|
1220
|
+
data: Array<INodeExecutionData[] | null>;
|
|
1221
|
+
waitTill?: Date | null;
|
|
1222
|
+
}
|
|
1223
|
+
export type WebhookSetupMethodNames = 'checkExists' | 'create' | 'delete';
|
|
1224
|
+
export declare namespace MultiPartFormData {
|
|
1225
|
+
interface File {
|
|
1226
|
+
filepath: string;
|
|
1227
|
+
mimetype?: string;
|
|
1228
|
+
originalFilename?: string;
|
|
1229
|
+
newFilename: string;
|
|
1230
|
+
size?: number;
|
|
1231
|
+
}
|
|
1232
|
+
type Request = express.Request<{}, {}, {
|
|
1233
|
+
data: Record<string, string | string[]>;
|
|
1234
|
+
files: Record<string, File | File[]>;
|
|
1235
|
+
}>;
|
|
1236
|
+
}
|
|
1237
|
+
export interface SupplyData {
|
|
1238
|
+
metadata?: IDataObject;
|
|
1239
|
+
response: unknown;
|
|
1240
|
+
closeFunction?: CloseFunction;
|
|
1241
|
+
hints?: NodeExecutionHint[];
|
|
1242
|
+
}
|
|
1243
|
+
export type NodeOutput = INodeExecutionData[][] | NodeExecutionWithMetadata[][] | EngineRequest | null;
|
|
1244
|
+
export interface INodeType {
|
|
1245
|
+
description: INodeTypeDescription;
|
|
1246
|
+
supplyData?(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
|
|
1247
|
+
execute?(this: IExecuteFunctions, response?: EngineResponse): Promise<NodeOutput>;
|
|
1248
|
+
/**
|
|
1249
|
+
* A function called when a node receives a chat message. Allows it to react
|
|
1250
|
+
* to the message before it gets executed.
|
|
1251
|
+
*/
|
|
1252
|
+
onMessage?(context: IExecuteFunctions, data: INodeExecutionData): Promise<NodeOutput>;
|
|
1253
|
+
poll?(this: IPollFunctions): Promise<INodeExecutionData[][] | null>;
|
|
1254
|
+
trigger?(this: ITriggerFunctions): Promise<ITriggerResponse | undefined>;
|
|
1255
|
+
webhook?(this: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
1256
|
+
methods?: {
|
|
1257
|
+
loadOptions?: {
|
|
1258
|
+
[key: string]: (this: ILoadOptionsFunctions) => Promise<INodePropertyOptions[]>;
|
|
1259
|
+
};
|
|
1260
|
+
listSearch?: {
|
|
1261
|
+
[key: string]: (this: ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<INodeListSearchResult>;
|
|
1262
|
+
};
|
|
1263
|
+
credentialTest?: {
|
|
1264
|
+
[functionName: string]: ICredentialTestFunction;
|
|
1265
|
+
};
|
|
1266
|
+
resourceMapping?: {
|
|
1267
|
+
[functionName: string]: (this: ILoadOptionsFunctions) => Promise<ResourceMapperFields>;
|
|
1268
|
+
};
|
|
1269
|
+
localResourceMapping?: {
|
|
1270
|
+
[functionName: string]: (this: ILocalLoadOptionsFunctions) => Promise<ResourceMapperFields>;
|
|
1271
|
+
};
|
|
1272
|
+
actionHandler?: {
|
|
1273
|
+
[functionName: string]: (this: ILoadOptionsFunctions, payload: IDataObject | string | undefined) => Promise<NodeParameterValueType>;
|
|
1274
|
+
};
|
|
1275
|
+
};
|
|
1276
|
+
webhookMethods?: {
|
|
1277
|
+
[name in WebhookType]?: {
|
|
1278
|
+
[method in WebhookSetupMethodNames]: (this: IHookFunctions) => Promise<boolean>;
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
/**
|
|
1282
|
+
* Defines custom operations for nodes that do not implement an `execute` method, such as declarative nodes.
|
|
1283
|
+
* This function will be invoked instead of `execute` for a specific resource and operation.
|
|
1284
|
+
* Should be either `execute` or `customOperations` defined for a node, but not both.
|
|
1285
|
+
*
|
|
1286
|
+
* @property customOperations - Maps specific resource and operation to a custom function
|
|
1287
|
+
*/
|
|
1288
|
+
customOperations?: {
|
|
1289
|
+
[resource: string]: {
|
|
1290
|
+
[operation: string]: (this: IExecuteFunctions) => Promise<NodeOutput>;
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Represents a request to execute a specific node and receive the result back.
|
|
1296
|
+
* This action tells the engine to execute the specified node with the provided input
|
|
1297
|
+
* and then call back the requesting node with the execution result.
|
|
1298
|
+
*
|
|
1299
|
+
* @template T - The type of metadata associated with this action
|
|
1300
|
+
*/
|
|
1301
|
+
type ExecuteNodeAction<T> = {
|
|
1302
|
+
/** The type identifier for this action */
|
|
1303
|
+
actionType: 'ExecutionNodeAction';
|
|
1304
|
+
/** The name of the node to be executed */
|
|
1305
|
+
nodeName: string;
|
|
1306
|
+
/** Input data to be passed to the node for execution */
|
|
1307
|
+
input: IDataObject;
|
|
1308
|
+
/** The type of connection this execution request uses */
|
|
1309
|
+
type: NodeConnectionType;
|
|
1310
|
+
/** Unique identifier for this execution request */
|
|
1311
|
+
id: string;
|
|
1312
|
+
/** Additional metadata for this execution request */
|
|
1313
|
+
metadata: T;
|
|
1314
|
+
};
|
|
1315
|
+
/**
|
|
1316
|
+
* Union type of all possible actions that nodes can request from the workflow engine.
|
|
1317
|
+
* Currently only contains ExecuteNodeAction, but will be extended with additional
|
|
1318
|
+
* action types as they are implemented.
|
|
1319
|
+
*
|
|
1320
|
+
* @template T - The type of metadata associated with this action
|
|
1321
|
+
*/
|
|
1322
|
+
type EngineAction<T = unknown> = ExecuteNodeAction<T>;
|
|
1323
|
+
/**
|
|
1324
|
+
* A collection of actions that a node wants the engine to fulfill and call back with results.
|
|
1325
|
+
* The requesting node sends this to the engine and expects to receive an EngineResponse
|
|
1326
|
+
* containing the results of all requested actions.
|
|
1327
|
+
*
|
|
1328
|
+
* @template T - The type of metadata associated with this request
|
|
1329
|
+
*
|
|
1330
|
+
* @todo This should use `unknown`, but jest-mock-extended will turn this into
|
|
1331
|
+
* `Partial<unknown>` which `unknown` cannot be assigned to, which leads to a
|
|
1332
|
+
* lot of type errors in our tests.
|
|
1333
|
+
* The correct fix is to make a PR to jest-mock-extended and make it handle
|
|
1334
|
+
* `unknown` special, turning it into `unknown` instead of `Partial<unknown>`.
|
|
1335
|
+
*/
|
|
1336
|
+
export type EngineRequest<T = object> = {
|
|
1337
|
+
/** Array of actions that the requesting node wants the engine to fulfill */
|
|
1338
|
+
actions: Array<EngineAction<T>>;
|
|
1339
|
+
/** Metadata associated with this request */
|
|
1340
|
+
metadata: T;
|
|
1341
|
+
};
|
|
1342
|
+
/**
|
|
1343
|
+
* Result of executing a single node action within the workflow engine.
|
|
1344
|
+
* Contains the original action and the resulting task data.
|
|
1345
|
+
*
|
|
1346
|
+
* @template T - The type of metadata associated with this result
|
|
1347
|
+
*/
|
|
1348
|
+
export type ExecuteNodeResult<T = unknown> = {
|
|
1349
|
+
/** The action that was executed */
|
|
1350
|
+
action: ExecuteNodeAction<T>;
|
|
1351
|
+
/** The resulting task data from the execution */
|
|
1352
|
+
data: ITaskData;
|
|
1353
|
+
};
|
|
1354
|
+
/**
|
|
1355
|
+
* Union type of all possible results from engine actions.
|
|
1356
|
+
* Currently only contains ExecuteNodeResult, but will be extended with additional
|
|
1357
|
+
* result types as new action types are implemented.
|
|
1358
|
+
*
|
|
1359
|
+
* @template T - The type of metadata associated with this result
|
|
1360
|
+
*/
|
|
1361
|
+
type EngineResult<T> = ExecuteNodeResult<T>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Response structure returned from the workflow engine after execution.
|
|
1364
|
+
* Contains the results of all executed actions along with associated metadata.
|
|
1365
|
+
*
|
|
1366
|
+
* @template T - The type of metadata associated with this response
|
|
1367
|
+
*/
|
|
1368
|
+
export type EngineResponse<T = unknown> = {
|
|
1369
|
+
/** Array of results from each executed action */
|
|
1370
|
+
actionResponses: Array<EngineResult<T>>;
|
|
1371
|
+
/** Metadata associated with this response */
|
|
1372
|
+
metadata: T;
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* This class serves as the base for all nodes using the new context API
|
|
1376
|
+
* having this as a class enables us to identify these instances at runtime
|
|
1377
|
+
*/
|
|
1378
|
+
export declare abstract class Node {
|
|
1379
|
+
abstract description: INodeTypeDescription;
|
|
1380
|
+
execute?(context: IExecuteFunctions, response?: EngineResponse): Promise<INodeExecutionData[][] | EngineRequest>;
|
|
1381
|
+
webhook?(context: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
1382
|
+
poll?(context: IPollFunctions): Promise<INodeExecutionData[][] | null>;
|
|
1383
|
+
}
|
|
1384
|
+
export interface IVersionedNodeType {
|
|
1385
|
+
nodeVersions: {
|
|
1386
|
+
[key: number]: INodeType;
|
|
1387
|
+
};
|
|
1388
|
+
currentVersion: number;
|
|
1389
|
+
description: INodeTypeBaseDescription;
|
|
1390
|
+
getNodeType: (version?: number) => INodeType;
|
|
1391
|
+
}
|
|
1392
|
+
export interface INodeCredentialTestResult {
|
|
1393
|
+
status: 'OK' | 'Error';
|
|
1394
|
+
message: string;
|
|
1395
|
+
}
|
|
1396
|
+
export interface INodeCredentialTestRequest {
|
|
1397
|
+
credentials: ICredentialsDecrypted;
|
|
1398
|
+
}
|
|
1399
|
+
export interface INodeCredentialDescription {
|
|
1400
|
+
name: string;
|
|
1401
|
+
required?: boolean;
|
|
1402
|
+
displayName?: string;
|
|
1403
|
+
disabledOptions?: ICredentialsDisplayOptions;
|
|
1404
|
+
displayOptions?: ICredentialsDisplayOptions;
|
|
1405
|
+
testedBy?: ICredentialTestRequest | string;
|
|
1406
|
+
}
|
|
1407
|
+
export type INodeIssueTypes = 'credentials' | 'execution' | 'input' | 'parameters' | 'typeUnknown';
|
|
1408
|
+
export interface INodeIssueObjectProperty {
|
|
1409
|
+
[key: string]: string[];
|
|
1410
|
+
}
|
|
1411
|
+
export interface INodeIssueData {
|
|
1412
|
+
node: string;
|
|
1413
|
+
type: INodeIssueTypes;
|
|
1414
|
+
value: null | boolean | string | string[] | INodeIssueObjectProperty;
|
|
1415
|
+
}
|
|
1416
|
+
export interface INodeIssues {
|
|
1417
|
+
execution?: boolean;
|
|
1418
|
+
credentials?: INodeIssueObjectProperty;
|
|
1419
|
+
input?: INodeIssueObjectProperty;
|
|
1420
|
+
parameters?: INodeIssueObjectProperty;
|
|
1421
|
+
typeUnknown?: boolean;
|
|
1422
|
+
[key: string]: undefined | boolean | INodeIssueObjectProperty;
|
|
1423
|
+
}
|
|
1424
|
+
export interface IWorkflowIssues {
|
|
1425
|
+
[key: string]: INodeIssues;
|
|
1426
|
+
}
|
|
1427
|
+
export type ThemeIconColor = 'gray' | 'black' | 'blue' | 'light-blue' | 'dark-blue' | 'orange' | 'orange-red' | 'pink-red' | 'red' | 'light-green' | 'green' | 'dark-green' | 'azure' | 'purple' | 'crimson';
|
|
1428
|
+
export type Themed<T> = T | {
|
|
1429
|
+
light: T;
|
|
1430
|
+
dark: T;
|
|
1431
|
+
};
|
|
1432
|
+
export type IconRef = `fa:${string}` | `node:${string}.${string}`;
|
|
1433
|
+
export type IconFile = `file:${string}.png` | `file:${string}.svg` | ExpressionString;
|
|
1434
|
+
export type Icon = IconRef | Themed<IconFile> | IconFile;
|
|
1435
|
+
type NodeGroupType = 'input' | 'output' | 'organization' | 'schedule' | 'transform' | 'trigger';
|
|
1436
|
+
export interface INodeTypeBaseDescription {
|
|
1437
|
+
displayName: string;
|
|
1438
|
+
name: string;
|
|
1439
|
+
icon?: Icon;
|
|
1440
|
+
iconColor?: ThemeIconColor;
|
|
1441
|
+
iconUrl?: Themed<string>;
|
|
1442
|
+
/**
|
|
1443
|
+
* Base path for resolving file icons from expressions.
|
|
1444
|
+
* Used when icon is an expression that resolves to `file:filename.svg`
|
|
1445
|
+
* Format: `icons/${packageName}/${nodeDirPath}`
|
|
1446
|
+
*/
|
|
1447
|
+
iconBasePath?: string;
|
|
1448
|
+
badgeIconUrl?: Themed<string>;
|
|
1449
|
+
group: NodeGroupType[];
|
|
1450
|
+
description: string;
|
|
1451
|
+
documentationUrl?: string;
|
|
1452
|
+
subtitle?: string;
|
|
1453
|
+
defaultVersion?: number;
|
|
1454
|
+
codex?: CodexData;
|
|
1455
|
+
parameterPane?: 'wide';
|
|
1456
|
+
/**
|
|
1457
|
+
* Whether the node must be hidden in the node creator panel,
|
|
1458
|
+
* due to deprecation or as a special case (e.g. Start node)
|
|
1459
|
+
*/
|
|
1460
|
+
hidden?: true;
|
|
1461
|
+
/**
|
|
1462
|
+
* Whether the node will be wrapped for tool-use by AI Agents,
|
|
1463
|
+
* optionally replacing provided parts of the description
|
|
1464
|
+
*/
|
|
1465
|
+
usableAsTool?: true | UsableAsToolDescription;
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* NodeDescription entries that replace the base node entries when
|
|
1469
|
+
* the node is used as a tool
|
|
1470
|
+
*
|
|
1471
|
+
* Note that the new codex is hardcoded and may not behave as expected
|
|
1472
|
+
* without additional changes to the implementation.
|
|
1473
|
+
*/
|
|
1474
|
+
export type UsableAsToolDescription = {
|
|
1475
|
+
replacements?: Partial<Omit<INodeTypeBaseDescription, 'usableAsTool'>>;
|
|
1476
|
+
};
|
|
1477
|
+
export interface INodePropertyRouting {
|
|
1478
|
+
operations?: IN8nRequestOperations;
|
|
1479
|
+
output?: INodeRequestOutput;
|
|
1480
|
+
request?: DeclarativeRestApiSettings.HttpRequestOptions;
|
|
1481
|
+
send?: INodeRequestSend;
|
|
1482
|
+
}
|
|
1483
|
+
export type PostReceiveAction = ((this: IExecuteSingleFunctions, items: INodeExecutionData[], response: IN8nHttpFullResponse) => Promise<INodeExecutionData[]>) | IPostReceiveBinaryData | IPostReceiveFilter | IPostReceiveLimit | IPostReceiveRootProperty | IPostReceiveSet | IPostReceiveSetKeyValue | IPostReceiveSort;
|
|
1484
|
+
export type PreSendAction = (this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions) => Promise<IHttpRequestOptions>;
|
|
1485
|
+
export interface INodeRequestOutput {
|
|
1486
|
+
maxResults?: number | string;
|
|
1487
|
+
postReceive?: PostReceiveAction[];
|
|
1488
|
+
}
|
|
1489
|
+
export interface INodeRequestSend {
|
|
1490
|
+
preSend?: PreSendAction[];
|
|
1491
|
+
paginate?: boolean | string;
|
|
1492
|
+
property?: string;
|
|
1493
|
+
propertyInDotNotation?: boolean;
|
|
1494
|
+
type?: 'body' | 'query';
|
|
1495
|
+
value?: string;
|
|
1496
|
+
}
|
|
1497
|
+
export interface IPostReceiveBase {
|
|
1498
|
+
type: string;
|
|
1499
|
+
enabled?: boolean | string;
|
|
1500
|
+
properties: {
|
|
1501
|
+
[key: string]: string | number | boolean | IDataObject;
|
|
1502
|
+
};
|
|
1503
|
+
errorMessage?: string;
|
|
1504
|
+
}
|
|
1505
|
+
export interface IPostReceiveBinaryData extends IPostReceiveBase {
|
|
1506
|
+
type: 'binaryData';
|
|
1507
|
+
properties: {
|
|
1508
|
+
destinationProperty: string;
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
export interface IPostReceiveFilter extends IPostReceiveBase {
|
|
1512
|
+
type: 'filter';
|
|
1513
|
+
properties: {
|
|
1514
|
+
pass: boolean | string;
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
export interface IPostReceiveLimit extends IPostReceiveBase {
|
|
1518
|
+
type: 'limit';
|
|
1519
|
+
properties: {
|
|
1520
|
+
maxResults: number | string;
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
export interface IPostReceiveRootProperty extends IPostReceiveBase {
|
|
1524
|
+
type: 'rootProperty';
|
|
1525
|
+
properties: {
|
|
1526
|
+
property: string;
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
export interface IPostReceiveSet extends IPostReceiveBase {
|
|
1530
|
+
type: 'set';
|
|
1531
|
+
properties: {
|
|
1532
|
+
value: string;
|
|
1533
|
+
};
|
|
1534
|
+
}
|
|
1535
|
+
export interface IPostReceiveSetKeyValue extends IPostReceiveBase {
|
|
1536
|
+
type: 'setKeyValue';
|
|
1537
|
+
properties: {
|
|
1538
|
+
[key: string]: string | number;
|
|
1539
|
+
};
|
|
1540
|
+
}
|
|
1541
|
+
export interface IPostReceiveSort extends IPostReceiveBase {
|
|
1542
|
+
type: 'sort';
|
|
1543
|
+
properties: {
|
|
1544
|
+
key: string;
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
export declare const NodeConnectionTypes: {
|
|
1548
|
+
readonly AiAgent: "ai_agent";
|
|
1549
|
+
readonly AiChain: "ai_chain";
|
|
1550
|
+
readonly AiDocument: "ai_document";
|
|
1551
|
+
readonly AiEmbedding: "ai_embedding";
|
|
1552
|
+
readonly AiLanguageModel: "ai_languageModel";
|
|
1553
|
+
readonly AiMemory: "ai_memory";
|
|
1554
|
+
readonly AiOutputParser: "ai_outputParser";
|
|
1555
|
+
readonly AiRetriever: "ai_retriever";
|
|
1556
|
+
readonly AiReranker: "ai_reranker";
|
|
1557
|
+
readonly AiTextSplitter: "ai_textSplitter";
|
|
1558
|
+
readonly AiTool: "ai_tool";
|
|
1559
|
+
readonly AiVectorStore: "ai_vectorStore";
|
|
1560
|
+
readonly Main: "main";
|
|
1561
|
+
};
|
|
1562
|
+
export type NodeConnectionType = (typeof NodeConnectionTypes)[keyof typeof NodeConnectionTypes];
|
|
1563
|
+
export type AINodeConnectionType = Exclude<NodeConnectionType, typeof NodeConnectionTypes.Main>;
|
|
1564
|
+
export declare const nodeConnectionTypes: NodeConnectionType[];
|
|
1565
|
+
export interface INodeInputFilter {
|
|
1566
|
+
nodes?: string[];
|
|
1567
|
+
excludedNodes?: string[];
|
|
1568
|
+
}
|
|
1569
|
+
export interface INodeInputConfiguration {
|
|
1570
|
+
category?: string;
|
|
1571
|
+
displayName?: string;
|
|
1572
|
+
required?: boolean;
|
|
1573
|
+
type: NodeConnectionType;
|
|
1574
|
+
filter?: INodeInputFilter;
|
|
1575
|
+
maxConnections?: number;
|
|
1576
|
+
}
|
|
1577
|
+
export interface INodeOutputConfiguration {
|
|
1578
|
+
category?: 'error';
|
|
1579
|
+
displayName?: string;
|
|
1580
|
+
maxConnections?: number;
|
|
1581
|
+
required?: boolean;
|
|
1582
|
+
type: NodeConnectionType;
|
|
1583
|
+
}
|
|
1584
|
+
export type ExpressionString = `={{${string}}}`;
|
|
1585
|
+
export type NodeDefaults = Partial<{
|
|
1586
|
+
/**
|
|
1587
|
+
* @deprecated Use {@link INodeTypeBaseDescription.iconColor|iconColor} instead. `iconColor` supports dark mode and uses preset colors from n8n's design system.
|
|
1588
|
+
*/
|
|
1589
|
+
color: string;
|
|
1590
|
+
name: string;
|
|
1591
|
+
}>;
|
|
1592
|
+
export interface INodeTypeDescription extends INodeTypeBaseDescription {
|
|
1593
|
+
version: number | number[];
|
|
1594
|
+
defaults: NodeDefaults;
|
|
1595
|
+
eventTriggerDescription?: string;
|
|
1596
|
+
activationMessage?: string;
|
|
1597
|
+
inputs: Array<NodeConnectionType | INodeInputConfiguration> | ExpressionString;
|
|
1598
|
+
requiredInputs?: string | number[] | number;
|
|
1599
|
+
inputNames?: string[];
|
|
1600
|
+
outputs: Array<NodeConnectionType | INodeOutputConfiguration> | ExpressionString;
|
|
1601
|
+
outputNames?: string[];
|
|
1602
|
+
properties: INodeProperties[];
|
|
1603
|
+
credentials?: INodeCredentialDescription[];
|
|
1604
|
+
maxNodes?: number;
|
|
1605
|
+
polling?: true | undefined;
|
|
1606
|
+
supportsCORS?: true | undefined;
|
|
1607
|
+
requestDefaults?: DeclarativeRestApiSettings.HttpRequestOptions;
|
|
1608
|
+
requestOperations?: IN8nRequestOperations;
|
|
1609
|
+
hooks?: {
|
|
1610
|
+
[key: string]: INodeHookDescription[] | undefined;
|
|
1611
|
+
activate?: INodeHookDescription[];
|
|
1612
|
+
deactivate?: INodeHookDescription[];
|
|
1613
|
+
};
|
|
1614
|
+
webhooks?: IWebhookDescription[];
|
|
1615
|
+
translation?: {
|
|
1616
|
+
[key: string]: object;
|
|
1617
|
+
};
|
|
1618
|
+
mockManualExecution?: true;
|
|
1619
|
+
triggerPanel?: TriggerPanelDefinition | boolean;
|
|
1620
|
+
extendsCredential?: string;
|
|
1621
|
+
hints?: NodeHint[];
|
|
1622
|
+
communityNodePackageVersion?: string;
|
|
1623
|
+
waitingNodeTooltip?: string;
|
|
1624
|
+
__loadOptionsMethods?: string[];
|
|
1625
|
+
features?: NodeFeaturesDefinition;
|
|
1626
|
+
}
|
|
1627
|
+
export type TriggerPanelDefinition = {
|
|
1628
|
+
hideContent?: boolean | string;
|
|
1629
|
+
header?: string;
|
|
1630
|
+
executionsHelp?: string | {
|
|
1631
|
+
active: string;
|
|
1632
|
+
inactive: string;
|
|
1633
|
+
};
|
|
1634
|
+
activationHint?: string | {
|
|
1635
|
+
active: string;
|
|
1636
|
+
inactive: string;
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
export type NodeHint = {
|
|
1640
|
+
message: string;
|
|
1641
|
+
type?: 'info' | 'warning' | 'danger';
|
|
1642
|
+
location?: 'outputPane' | 'inputPane' | 'ndv';
|
|
1643
|
+
displayCondition?: string;
|
|
1644
|
+
whenToDisplay?: 'always' | 'beforeExecution' | 'afterExecution';
|
|
1645
|
+
};
|
|
1646
|
+
export type NodeExecutionHint = Omit<NodeHint, 'whenToDisplay' | 'displayCondition'>;
|
|
1647
|
+
export interface INodeHookDescription {
|
|
1648
|
+
method: string;
|
|
1649
|
+
}
|
|
1650
|
+
export interface IWebhookData {
|
|
1651
|
+
httpMethod: IHttpRequestMethods;
|
|
1652
|
+
node: string;
|
|
1653
|
+
path: string;
|
|
1654
|
+
webhookDescription: IWebhookDescription;
|
|
1655
|
+
workflowId: string;
|
|
1656
|
+
workflowExecuteAdditionalData: IWorkflowExecuteAdditionalData;
|
|
1657
|
+
webhookId?: string;
|
|
1658
|
+
isTest?: boolean;
|
|
1659
|
+
userId?: string;
|
|
1660
|
+
staticData?: Workflow['staticData'];
|
|
1661
|
+
}
|
|
1662
|
+
export type WebhookType = 'default' | 'setup';
|
|
1663
|
+
export interface IWebhookDescription {
|
|
1664
|
+
[key: string]: IHttpRequestMethods | WebhookResponseMode | boolean | string | undefined;
|
|
1665
|
+
httpMethod: IHttpRequestMethods | string;
|
|
1666
|
+
isFullPath?: boolean;
|
|
1667
|
+
name: WebhookType;
|
|
1668
|
+
path: string;
|
|
1669
|
+
responseBinaryPropertyName?: string;
|
|
1670
|
+
responseContentType?: string;
|
|
1671
|
+
responsePropertyName?: string;
|
|
1672
|
+
responseMode?: WebhookResponseMode | string;
|
|
1673
|
+
responseData?: WebhookResponseData | string;
|
|
1674
|
+
restartWebhook?: boolean;
|
|
1675
|
+
nodeType?: 'webhook' | 'form' | 'mcp';
|
|
1676
|
+
ndvHideUrl?: string | boolean;
|
|
1677
|
+
ndvHideMethod?: string | boolean;
|
|
1678
|
+
}
|
|
1679
|
+
export interface ProxyInput {
|
|
1680
|
+
all: () => INodeExecutionData[];
|
|
1681
|
+
context: any;
|
|
1682
|
+
first: () => INodeExecutionData | undefined;
|
|
1683
|
+
item: INodeExecutionData | undefined;
|
|
1684
|
+
last: () => INodeExecutionData | undefined;
|
|
1685
|
+
params?: INodeParameters;
|
|
1686
|
+
}
|
|
1687
|
+
export interface IWorkflowDataProxyData {
|
|
1688
|
+
[key: string]: any;
|
|
1689
|
+
$binary: INodeExecutionData['binary'];
|
|
1690
|
+
$data: any;
|
|
1691
|
+
$env: any;
|
|
1692
|
+
$evaluateExpression: (expression: string, itemIndex?: number) => NodeParameterValueType;
|
|
1693
|
+
$item: (itemIndex: number, runIndex?: number) => IWorkflowDataProxyData;
|
|
1694
|
+
$items: (nodeName?: string, outputIndex?: number, runIndex?: number) => INodeExecutionData[];
|
|
1695
|
+
$json: INodeExecutionData['json'];
|
|
1696
|
+
$node: any;
|
|
1697
|
+
$parameter: INodeParameters;
|
|
1698
|
+
$position: number;
|
|
1699
|
+
$workflow: any;
|
|
1700
|
+
$: any;
|
|
1701
|
+
$input: ProxyInput;
|
|
1702
|
+
$thisItem: any;
|
|
1703
|
+
$thisRunIndex: number;
|
|
1704
|
+
$thisItemIndex: number;
|
|
1705
|
+
$now: any;
|
|
1706
|
+
$today: any;
|
|
1707
|
+
$getPairedItem: (destinationNodeName: string, incomingSourceData: ISourceData | null, pairedItem: IPairedItemData) => INodeExecutionData | null;
|
|
1708
|
+
constructor: any;
|
|
1709
|
+
}
|
|
1710
|
+
export type IWorkflowDataProxyAdditionalKeys = IDataObject & {
|
|
1711
|
+
$execution?: {
|
|
1712
|
+
id: string;
|
|
1713
|
+
mode: 'test' | 'production';
|
|
1714
|
+
resumeUrl: string;
|
|
1715
|
+
resumeFormUrl: string;
|
|
1716
|
+
customData?: {
|
|
1717
|
+
set(key: string, value: string): void;
|
|
1718
|
+
setAll(obj: Record<string, string>): void;
|
|
1719
|
+
get(key: string): string;
|
|
1720
|
+
getAll(): Record<string, string>;
|
|
1721
|
+
};
|
|
1722
|
+
};
|
|
1723
|
+
$vars?: IDataObject;
|
|
1724
|
+
$secrets?: IDataObject;
|
|
1725
|
+
$pageCount?: number;
|
|
1726
|
+
/** @deprecated */
|
|
1727
|
+
$executionId?: string;
|
|
1728
|
+
/** @deprecated */
|
|
1729
|
+
$resumeWebhookUrl?: string;
|
|
1730
|
+
};
|
|
1731
|
+
export interface IWorkflowMetadata {
|
|
1732
|
+
id?: string;
|
|
1733
|
+
name?: string;
|
|
1734
|
+
active: boolean;
|
|
1735
|
+
}
|
|
1736
|
+
export interface IWebhookResponseData {
|
|
1737
|
+
workflowData?: INodeExecutionData[][];
|
|
1738
|
+
webhookResponse?: any;
|
|
1739
|
+
noWebhookResponse?: boolean;
|
|
1740
|
+
}
|
|
1741
|
+
export type WebhookResponseData = 'allEntries' | 'firstEntryJson' | 'firstEntryBinary' | 'noData';
|
|
1742
|
+
/**
|
|
1743
|
+
* Defines how and when response should be sent:
|
|
1744
|
+
*
|
|
1745
|
+
* onReceived: Response is sent immidiatly after node done executing
|
|
1746
|
+
*
|
|
1747
|
+
* lastNode: Response is sent after the last node finishes executing
|
|
1748
|
+
*
|
|
1749
|
+
* responseNode: Response is sent from the Responde to Webhook node
|
|
1750
|
+
*
|
|
1751
|
+
* formPage: Special response with executionId sent to the form trigger node
|
|
1752
|
+
*
|
|
1753
|
+
* hostedChat: Special response with executionId sent to the hosted chat trigger node
|
|
1754
|
+
*
|
|
1755
|
+
* streaming: Response added to runData to httpResponse and streamingEnabled set to true
|
|
1756
|
+
*/
|
|
1757
|
+
export type WebhookResponseMode = 'onReceived' | 'lastNode' | 'responseNode' | 'formPage' | 'hostedChat' | 'streaming';
|
|
1758
|
+
export interface INodeTypes {
|
|
1759
|
+
getByName(nodeType: string): INodeType | IVersionedNodeType;
|
|
1760
|
+
getByNameAndVersion(nodeType: string, version?: number): INodeType;
|
|
1761
|
+
getKnownTypes(): IDataObject;
|
|
1762
|
+
}
|
|
1763
|
+
export type LoadingDetails = {
|
|
1764
|
+
className: string;
|
|
1765
|
+
sourcePath: string;
|
|
1766
|
+
};
|
|
1767
|
+
export type CredentialLoadingDetails = LoadingDetails & {
|
|
1768
|
+
supportedNodes?: string[];
|
|
1769
|
+
extends?: string[];
|
|
1770
|
+
};
|
|
1771
|
+
export type NodeLoadingDetails = LoadingDetails;
|
|
1772
|
+
export type KnownNodesAndCredentials = {
|
|
1773
|
+
nodes: Record<string, NodeLoadingDetails>;
|
|
1774
|
+
credentials: Record<string, CredentialLoadingDetails>;
|
|
1775
|
+
};
|
|
1776
|
+
export interface LoadedNodesAndCredentials {
|
|
1777
|
+
nodes: INodeTypeData;
|
|
1778
|
+
credentials: ICredentialTypeData;
|
|
1779
|
+
}
|
|
1780
|
+
export interface LoadedClass<T> {
|
|
1781
|
+
sourcePath: string;
|
|
1782
|
+
type: T;
|
|
1783
|
+
}
|
|
1784
|
+
type LoadedData<T> = Record<string, LoadedClass<T>>;
|
|
1785
|
+
export type ICredentialTypeData = LoadedData<ICredentialType>;
|
|
1786
|
+
export type INodeTypeData = LoadedData<INodeType | IVersionedNodeType>;
|
|
1787
|
+
export interface IRun {
|
|
1788
|
+
data: IRunExecutionData;
|
|
1789
|
+
/**
|
|
1790
|
+
* @deprecated Use status instead
|
|
1791
|
+
*/
|
|
1792
|
+
finished?: boolean;
|
|
1793
|
+
mode: WorkflowExecuteMode;
|
|
1794
|
+
waitTill?: Date | null;
|
|
1795
|
+
startedAt: Date;
|
|
1796
|
+
stoppedAt?: Date;
|
|
1797
|
+
status: ExecutionStatus;
|
|
1798
|
+
/** ID of the job this execution belongs to. Only in scaling mode. */
|
|
1799
|
+
jobId?: string;
|
|
1800
|
+
}
|
|
1801
|
+
export type SchemaType = 'string' | 'number' | 'boolean' | 'bigint' | 'symbol' | 'array' | 'object' | 'function' | 'null' | 'undefined';
|
|
1802
|
+
export type Schema = {
|
|
1803
|
+
type: SchemaType;
|
|
1804
|
+
key?: string;
|
|
1805
|
+
value: string | Schema[];
|
|
1806
|
+
path: string;
|
|
1807
|
+
};
|
|
1808
|
+
export interface NodeExecutionSchema {
|
|
1809
|
+
nodeName: string;
|
|
1810
|
+
schema: Schema;
|
|
1811
|
+
}
|
|
1812
|
+
export interface IRunData {
|
|
1813
|
+
[key: string]: ITaskData[];
|
|
1814
|
+
}
|
|
1815
|
+
export interface ITaskSubRunMetadata {
|
|
1816
|
+
node: string;
|
|
1817
|
+
runIndex: number;
|
|
1818
|
+
}
|
|
1819
|
+
export interface RelatedExecution {
|
|
1820
|
+
executionId: string;
|
|
1821
|
+
workflowId: string;
|
|
1822
|
+
shouldResume?: boolean;
|
|
1823
|
+
executionContext?: IExecutionContext;
|
|
1824
|
+
}
|
|
1825
|
+
type SubNodeExecutionDataAction = {
|
|
1826
|
+
nodeName: string;
|
|
1827
|
+
runIndex: number;
|
|
1828
|
+
action: EngineRequest['actions'][number];
|
|
1829
|
+
response?: object;
|
|
1830
|
+
};
|
|
1831
|
+
export interface ITaskMetadata {
|
|
1832
|
+
subRun?: ITaskSubRunMetadata[];
|
|
1833
|
+
parentExecution?: RelatedExecution;
|
|
1834
|
+
subExecution?: RelatedExecution;
|
|
1835
|
+
subExecutionsCount?: number;
|
|
1836
|
+
subNodeExecutionData?: {
|
|
1837
|
+
actions: SubNodeExecutionDataAction[];
|
|
1838
|
+
metadata: object;
|
|
1839
|
+
};
|
|
1840
|
+
/**
|
|
1841
|
+
* When true, preserves sourceOverwrite information in pairedItem data during node execution.
|
|
1842
|
+
* This is used for AI tool nodes to maintain correct expression resolution context, allowing
|
|
1843
|
+
* tools to access data from nodes earlier in the workflow chain via $() expressions.
|
|
1844
|
+
*/
|
|
1845
|
+
preserveSourceOverwrite?: boolean;
|
|
1846
|
+
/**
|
|
1847
|
+
* Indicates that this node execution is resuming from a previous pause (e.g., AI agent
|
|
1848
|
+
* resuming after tool execution). When true, the nodeExecuteBefore hook is skipped to
|
|
1849
|
+
* prevent duplicate event emissions that would cause UI state issues.
|
|
1850
|
+
* @see AI-1414
|
|
1851
|
+
*/
|
|
1852
|
+
nodeWasResumed?: boolean;
|
|
1853
|
+
/**
|
|
1854
|
+
* Time saved by this workflow execution in minutes. Used by SavedTime nodes to track
|
|
1855
|
+
* dynamic time savings that can be calculated based on execution data (e.g., number of
|
|
1856
|
+
* items processed). The behavior determines how this value interacts with the workflow's
|
|
1857
|
+
* default timeSavedPerExecution setting.
|
|
1858
|
+
*/
|
|
1859
|
+
timeSaved?: {
|
|
1860
|
+
/** Time saved in minutes */
|
|
1861
|
+
minutes: number;
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
/** The data that gets returned when a node execution starts */
|
|
1865
|
+
export interface ITaskStartedData {
|
|
1866
|
+
startTime: number;
|
|
1867
|
+
/** This index tracks the order in which nodes are executed */
|
|
1868
|
+
executionIndex: number;
|
|
1869
|
+
source: Array<ISourceData | null>;
|
|
1870
|
+
hints?: NodeExecutionHint[];
|
|
1871
|
+
}
|
|
1872
|
+
/** The data that gets returned when a node execution ends */
|
|
1873
|
+
export interface ITaskData extends ITaskStartedData {
|
|
1874
|
+
executionTime: number;
|
|
1875
|
+
executionStatus?: ExecutionStatus;
|
|
1876
|
+
data?: ITaskDataConnections;
|
|
1877
|
+
inputOverride?: ITaskDataConnections;
|
|
1878
|
+
error?: ExecutionError;
|
|
1879
|
+
metadata?: ITaskMetadata;
|
|
1880
|
+
}
|
|
1881
|
+
export interface ISourceData {
|
|
1882
|
+
previousNode: string;
|
|
1883
|
+
previousNodeOutput?: number;
|
|
1884
|
+
previousNodeRun?: number;
|
|
1885
|
+
}
|
|
1886
|
+
export interface StartNodeData {
|
|
1887
|
+
name: string;
|
|
1888
|
+
sourceData: ISourceData | null;
|
|
1889
|
+
}
|
|
1890
|
+
export interface ITaskDataConnections {
|
|
1891
|
+
[key: string]: Array<INodeExecutionData[] | null>;
|
|
1892
|
+
}
|
|
1893
|
+
export interface IWaitingForExecution {
|
|
1894
|
+
[key: string]: {
|
|
1895
|
+
[key: number]: ITaskDataConnections;
|
|
1896
|
+
};
|
|
1897
|
+
}
|
|
1898
|
+
export interface ITaskDataConnectionsSource {
|
|
1899
|
+
[key: string]: Array<ISourceData | null>;
|
|
1900
|
+
}
|
|
1901
|
+
export interface IWaitingForExecutionSource {
|
|
1902
|
+
[key: string]: {
|
|
1903
|
+
[key: number]: ITaskDataConnectionsSource;
|
|
1904
|
+
};
|
|
1905
|
+
}
|
|
1906
|
+
export type WorkflowId = IWorkflowBase['id'];
|
|
1907
|
+
export interface IWorkflowBase {
|
|
1908
|
+
id: string;
|
|
1909
|
+
name: string;
|
|
1910
|
+
description?: string | null;
|
|
1911
|
+
active: boolean;
|
|
1912
|
+
isArchived: boolean;
|
|
1913
|
+
createdAt: Date;
|
|
1914
|
+
startedAt?: Date;
|
|
1915
|
+
updatedAt: Date;
|
|
1916
|
+
nodes: INode[];
|
|
1917
|
+
connections: IConnections;
|
|
1918
|
+
settings?: IWorkflowSettings;
|
|
1919
|
+
staticData?: IDataObject;
|
|
1920
|
+
pinData?: IPinData;
|
|
1921
|
+
versionId?: string;
|
|
1922
|
+
activeVersionId: string | null;
|
|
1923
|
+
activeVersion?: IWorkflowHistory | null;
|
|
1924
|
+
versionCounter?: number;
|
|
1925
|
+
meta?: WorkflowFEMeta;
|
|
1926
|
+
}
|
|
1927
|
+
interface IWorkflowHistory {
|
|
1928
|
+
versionId: string;
|
|
1929
|
+
workflowId: string;
|
|
1930
|
+
nodes: INode[];
|
|
1931
|
+
connections: IConnections;
|
|
1932
|
+
authors: string;
|
|
1933
|
+
name: string | null;
|
|
1934
|
+
description: string | null;
|
|
1935
|
+
createdAt: Date;
|
|
1936
|
+
updatedAt: Date;
|
|
1937
|
+
}
|
|
1938
|
+
export interface IWorkflowCredentials {
|
|
1939
|
+
[credentialType: string]: {
|
|
1940
|
+
[id: string]: ICredentialsEncrypted;
|
|
1941
|
+
};
|
|
1942
|
+
}
|
|
1943
|
+
export interface IDestinationNode {
|
|
1944
|
+
nodeName: string;
|
|
1945
|
+
/**
|
|
1946
|
+
* Execution mode for the destination node:
|
|
1947
|
+
* - 'inclusive': Execute up to and including the destination node
|
|
1948
|
+
* - 'exclusive': Execute up to but excluding the destination node
|
|
1949
|
+
*/
|
|
1950
|
+
mode: 'inclusive' | 'exclusive';
|
|
1951
|
+
}
|
|
1952
|
+
export interface IWorkflowExecutionDataProcess {
|
|
1953
|
+
destinationNode?: IDestinationNode;
|
|
1954
|
+
restartExecutionId?: string;
|
|
1955
|
+
executionMode: WorkflowExecuteMode;
|
|
1956
|
+
/**
|
|
1957
|
+
* The data that is sent in the body of the webhook that started this
|
|
1958
|
+
* execution.
|
|
1959
|
+
*/
|
|
1960
|
+
executionData?: IRunExecutionData;
|
|
1961
|
+
runData?: IRunData;
|
|
1962
|
+
pinData?: IPinData;
|
|
1963
|
+
retryOf?: string | null;
|
|
1964
|
+
pushRef?: string;
|
|
1965
|
+
startNodes?: StartNodeData[];
|
|
1966
|
+
workflowData: IWorkflowBase;
|
|
1967
|
+
userId?: string;
|
|
1968
|
+
projectId?: string;
|
|
1969
|
+
dirtyNodeNames?: string[];
|
|
1970
|
+
triggerToStartFrom?: {
|
|
1971
|
+
name: string;
|
|
1972
|
+
data?: ITaskData;
|
|
1973
|
+
};
|
|
1974
|
+
agentRequest?: AiAgentRequest;
|
|
1975
|
+
httpResponse?: express.Response;
|
|
1976
|
+
streamingEnabled?: boolean;
|
|
1977
|
+
startedAt?: Date;
|
|
1978
|
+
}
|
|
1979
|
+
export interface ExecuteWorkflowOptions {
|
|
1980
|
+
node?: INode;
|
|
1981
|
+
parentWorkflowId: string;
|
|
1982
|
+
inputData?: INodeExecutionData[];
|
|
1983
|
+
loadedWorkflowData?: IWorkflowBase;
|
|
1984
|
+
loadedRunData?: IWorkflowExecutionDataProcess;
|
|
1985
|
+
parentWorkflowSettings?: IWorkflowSettings;
|
|
1986
|
+
parentCallbackManager?: CallbackManager;
|
|
1987
|
+
doNotWaitToFinish?: boolean;
|
|
1988
|
+
parentExecution?: RelatedExecution;
|
|
1989
|
+
executionMode?: WorkflowExecuteMode;
|
|
1990
|
+
}
|
|
1991
|
+
export type AiEvent = 'ai-messages-retrieved-from-memory' | 'ai-message-added-to-memory' | 'ai-output-parsed' | 'ai-documents-retrieved' | 'ai-document-reranked' | 'ai-document-embedded' | 'ai-query-embedded' | 'ai-document-processed' | 'ai-text-split' | 'ai-tool-called' | 'ai-vector-store-searched' | 'ai-llm-generated-output' | 'ai-llm-errored' | 'ai-vector-store-populated' | 'ai-vector-store-updated';
|
|
1992
|
+
type AiEventPayload = {
|
|
1993
|
+
msg: string;
|
|
1994
|
+
workflowName: string;
|
|
1995
|
+
executionId: string;
|
|
1996
|
+
nodeName: string;
|
|
1997
|
+
workflowId?: string;
|
|
1998
|
+
nodeType?: string;
|
|
1999
|
+
};
|
|
2000
|
+
export interface AiAgentRequest {
|
|
2001
|
+
query: string | INodeParameters;
|
|
2002
|
+
tool: {
|
|
2003
|
+
name: string;
|
|
2004
|
+
};
|
|
2005
|
+
}
|
|
2006
|
+
export interface IWorkflowExecuteAdditionalData {
|
|
2007
|
+
credentialsHelper: ICredentialsHelper;
|
|
2008
|
+
executeWorkflow: (workflowInfo: IExecuteWorkflowInfo, additionalData: IWorkflowExecuteAdditionalData, options: ExecuteWorkflowOptions) => Promise<ExecuteWorkflowData>;
|
|
2009
|
+
getRunExecutionData: (executionId: string) => Promise<IRunExecutionData | undefined>;
|
|
2010
|
+
executionId?: string;
|
|
2011
|
+
restartExecutionId?: string;
|
|
2012
|
+
currentNodeExecutionIndex: number;
|
|
2013
|
+
httpResponse?: express.Response;
|
|
2014
|
+
httpRequest?: express.Request;
|
|
2015
|
+
streamingEnabled?: boolean;
|
|
2016
|
+
restApiUrl: string;
|
|
2017
|
+
instanceBaseUrl: string;
|
|
2018
|
+
setExecutionStatus?: (status: ExecutionStatus) => void;
|
|
2019
|
+
sendDataToUI?: (type: string, data: IDataObject | IDataObject[]) => void;
|
|
2020
|
+
formWaitingBaseUrl: string;
|
|
2021
|
+
webhookBaseUrl: string;
|
|
2022
|
+
webhookWaitingBaseUrl: string;
|
|
2023
|
+
webhookTestBaseUrl: string;
|
|
2024
|
+
currentNodeParameters?: INodeParameters;
|
|
2025
|
+
executionTimeoutTimestamp?: number;
|
|
2026
|
+
userId?: string;
|
|
2027
|
+
variables: IDataObject;
|
|
2028
|
+
logAiEvent: (eventName: AiEvent, payload: AiEventPayload) => void;
|
|
2029
|
+
parentCallbackManager?: CallbackManager;
|
|
2030
|
+
startRunnerTask<T, E = unknown>(additionalData: IWorkflowExecuteAdditionalData, jobType: string, settings: unknown, executeFunctions: IExecuteFunctions, inputData: ITaskDataConnections, node: INode, workflow: Workflow, runExecutionData: IRunExecutionData, runIndex: number, itemIndex: number, activeNodeName: string, connectionInputData: INodeExecutionData[], siblingParameters: INodeParameters, mode: WorkflowExecuteMode, envProviderState: EnvProviderState, executeData?: IExecuteData): Promise<Result<T, E>>;
|
|
2031
|
+
getRunnerStatus?(taskType: string): {
|
|
2032
|
+
available: true;
|
|
2033
|
+
} | {
|
|
2034
|
+
available: false;
|
|
2035
|
+
reason?: string;
|
|
2036
|
+
};
|
|
2037
|
+
}
|
|
2038
|
+
export type WorkflowActivateMode = 'init' | 'create' | 'update' | 'activate' | 'manual' | 'leadershipChange';
|
|
2039
|
+
export declare namespace WorkflowSettings {
|
|
2040
|
+
type CallerPolicy = 'any' | 'none' | 'workflowsFromAList' | 'workflowsFromSameOwner';
|
|
2041
|
+
type SaveDataExecution = 'DEFAULT' | 'all' | 'none';
|
|
2042
|
+
}
|
|
2043
|
+
export interface IWorkflowSettings {
|
|
2044
|
+
timezone?: 'DEFAULT' | string;
|
|
2045
|
+
errorWorkflow?: string;
|
|
2046
|
+
callerIds?: string;
|
|
2047
|
+
callerPolicy?: WorkflowSettings.CallerPolicy;
|
|
2048
|
+
saveDataErrorExecution?: WorkflowSettings.SaveDataExecution;
|
|
2049
|
+
saveDataSuccessExecution?: WorkflowSettings.SaveDataExecution;
|
|
2050
|
+
saveManualExecutions?: 'DEFAULT' | boolean;
|
|
2051
|
+
saveExecutionProgress?: 'DEFAULT' | boolean;
|
|
2052
|
+
executionTimeout?: number;
|
|
2053
|
+
executionOrder?: 'v0' | 'v1';
|
|
2054
|
+
timeSavedPerExecution?: number;
|
|
2055
|
+
timeSavedMode?: 'fixed' | 'dynamic';
|
|
2056
|
+
availableInMCP?: boolean;
|
|
2057
|
+
credentialResolverId?: string;
|
|
2058
|
+
}
|
|
2059
|
+
export interface WorkflowFEMeta {
|
|
2060
|
+
onboardingId?: string;
|
|
2061
|
+
templateId?: string;
|
|
2062
|
+
instanceId?: string;
|
|
2063
|
+
templateCredsSetupCompleted?: boolean;
|
|
2064
|
+
}
|
|
2065
|
+
export interface WorkflowTestData {
|
|
2066
|
+
description: string;
|
|
2067
|
+
input: {
|
|
2068
|
+
workflowData: {
|
|
2069
|
+
nodes: INode[];
|
|
2070
|
+
connections: IConnections;
|
|
2071
|
+
settings?: IWorkflowSettings;
|
|
2072
|
+
};
|
|
2073
|
+
};
|
|
2074
|
+
output: {
|
|
2075
|
+
assertBinaryData?: boolean;
|
|
2076
|
+
nodeExecutionOrder?: string[];
|
|
2077
|
+
nodeExecutionStack?: IExecuteData[];
|
|
2078
|
+
testAllOutputs?: boolean;
|
|
2079
|
+
nodeData: {
|
|
2080
|
+
[key: string]: any[][];
|
|
2081
|
+
};
|
|
2082
|
+
error?: string;
|
|
2083
|
+
};
|
|
2084
|
+
nock?: {
|
|
2085
|
+
baseUrl: string;
|
|
2086
|
+
mocks: Array<{
|
|
2087
|
+
method: 'delete' | 'get' | 'patch' | 'post' | 'put';
|
|
2088
|
+
path: string;
|
|
2089
|
+
requestBody?: RequestBodyMatcher;
|
|
2090
|
+
requestHeaders?: Record<string, RequestHeaderMatcher>;
|
|
2091
|
+
statusCode: number;
|
|
2092
|
+
responseBody: string | object;
|
|
2093
|
+
responseHeaders?: ReplyHeaders;
|
|
2094
|
+
}>;
|
|
2095
|
+
};
|
|
2096
|
+
trigger?: {
|
|
2097
|
+
mode: WorkflowExecuteMode;
|
|
2098
|
+
input: INodeExecutionData;
|
|
2099
|
+
};
|
|
2100
|
+
credentials?: Record<string, ICredentialDataDecryptedObject>;
|
|
2101
|
+
}
|
|
2102
|
+
export type LogLevel = (typeof LOG_LEVELS)[number];
|
|
2103
|
+
export type LogMetadata = {
|
|
2104
|
+
[key: string]: unknown;
|
|
2105
|
+
scopes?: LogScope[];
|
|
2106
|
+
file?: string;
|
|
2107
|
+
function?: string;
|
|
2108
|
+
};
|
|
2109
|
+
export type Logger = Record<Exclude<LogLevel, 'silent'>, (message: string, metadata?: LogMetadata) => void>;
|
|
2110
|
+
export type LogLocationMetadata = Pick<LogMetadata, 'file' | 'function'>;
|
|
2111
|
+
export interface IStatusCodeMessages {
|
|
2112
|
+
[key: string]: string;
|
|
2113
|
+
}
|
|
2114
|
+
export type DocumentationLink = {
|
|
2115
|
+
url: string;
|
|
2116
|
+
};
|
|
2117
|
+
export type CodexData = {
|
|
2118
|
+
categories?: string[];
|
|
2119
|
+
subcategories?: {
|
|
2120
|
+
[category: string]: string[];
|
|
2121
|
+
};
|
|
2122
|
+
resources?: {
|
|
2123
|
+
credentialDocumentation?: DocumentationLink[];
|
|
2124
|
+
primaryDocumentation?: DocumentationLink[];
|
|
2125
|
+
};
|
|
2126
|
+
alias?: string[];
|
|
2127
|
+
};
|
|
2128
|
+
export type JsonValue = string | number | boolean | null | JsonObject | JsonValue[];
|
|
2129
|
+
export type JsonObject = {
|
|
2130
|
+
[key: string]: JsonValue;
|
|
2131
|
+
};
|
|
2132
|
+
export type AllEntities<M> = M extends {
|
|
2133
|
+
[key: string]: string;
|
|
2134
|
+
} ? Entity<M, keyof M> : never;
|
|
2135
|
+
export type Entity<M, K> = K extends keyof M ? {
|
|
2136
|
+
resource: K;
|
|
2137
|
+
operation: M[K];
|
|
2138
|
+
} : never;
|
|
2139
|
+
export type PropertiesOf<M extends {
|
|
2140
|
+
resource: string;
|
|
2141
|
+
operation: string;
|
|
2142
|
+
}> = Array<Omit<INodeProperties, 'displayOptions'> & {
|
|
2143
|
+
displayOptions?: {
|
|
2144
|
+
[key in 'show' | 'hide']?: {
|
|
2145
|
+
resource?: Array<M['resource']>;
|
|
2146
|
+
operation?: Array<M['operation']>;
|
|
2147
|
+
[otherKey: string]: Array<NodeParameterValue | DisplayCondition> | undefined;
|
|
2148
|
+
};
|
|
2149
|
+
};
|
|
2150
|
+
}>;
|
|
2151
|
+
export interface ITelemetryTrackProperties {
|
|
2152
|
+
user_id?: string;
|
|
2153
|
+
[key: string]: GenericValue;
|
|
2154
|
+
}
|
|
2155
|
+
export interface INodesGraph {
|
|
2156
|
+
node_types: string[];
|
|
2157
|
+
node_connections: IDataObject[];
|
|
2158
|
+
nodes: INodesGraphNode;
|
|
2159
|
+
notes: INotesGraphNode;
|
|
2160
|
+
is_pinned: boolean;
|
|
2161
|
+
}
|
|
2162
|
+
export interface INodesGraphNode {
|
|
2163
|
+
[key: string]: INodeGraphItem;
|
|
2164
|
+
}
|
|
2165
|
+
export interface INotesGraphNode {
|
|
2166
|
+
[key: string]: INoteGraphItem;
|
|
2167
|
+
}
|
|
2168
|
+
export interface INoteGraphItem {
|
|
2169
|
+
overlapping: boolean;
|
|
2170
|
+
position: [number, number];
|
|
2171
|
+
height: number;
|
|
2172
|
+
width: number;
|
|
2173
|
+
}
|
|
2174
|
+
export interface INodeGraphItem {
|
|
2175
|
+
id: string;
|
|
2176
|
+
type: string;
|
|
2177
|
+
version?: number;
|
|
2178
|
+
resource?: string;
|
|
2179
|
+
operation?: string;
|
|
2180
|
+
domain?: string;
|
|
2181
|
+
domain_base?: string;
|
|
2182
|
+
domain_path?: string;
|
|
2183
|
+
position: [number, number];
|
|
2184
|
+
mode?: string;
|
|
2185
|
+
credential_type?: string;
|
|
2186
|
+
credential_set?: boolean;
|
|
2187
|
+
method?: string;
|
|
2188
|
+
src_node_id?: string;
|
|
2189
|
+
src_instance_id?: string;
|
|
2190
|
+
agent?: string;
|
|
2191
|
+
is_streaming?: boolean;
|
|
2192
|
+
prompts?: IDataObject[] | IDataObject;
|
|
2193
|
+
use_responses_api?: boolean;
|
|
2194
|
+
toolSettings?: IDataObject;
|
|
2195
|
+
sql?: string;
|
|
2196
|
+
workflow_id?: string;
|
|
2197
|
+
response_mode?: string;
|
|
2198
|
+
public_chat?: boolean;
|
|
2199
|
+
runs?: number;
|
|
2200
|
+
items_total?: number;
|
|
2201
|
+
metric_names?: string[];
|
|
2202
|
+
language?: string;
|
|
2203
|
+
package_version?: string;
|
|
2204
|
+
used_guardrails?: string[];
|
|
2205
|
+
}
|
|
2206
|
+
export interface INodeNameIndex {
|
|
2207
|
+
[name: string]: string;
|
|
2208
|
+
}
|
|
2209
|
+
export interface INodesGraphResult {
|
|
2210
|
+
nodeGraph: INodesGraph;
|
|
2211
|
+
nameIndices: INodeNameIndex;
|
|
2212
|
+
webhookNodeNames: string[];
|
|
2213
|
+
evaluationTriggerNodeNames: string[];
|
|
2214
|
+
}
|
|
2215
|
+
export interface FeatureFlags {
|
|
2216
|
+
[featureFlag: string]: string | boolean | undefined;
|
|
2217
|
+
}
|
|
2218
|
+
export interface IConnectedNode {
|
|
2219
|
+
name: string;
|
|
2220
|
+
indicies: number[];
|
|
2221
|
+
depth: number;
|
|
2222
|
+
}
|
|
2223
|
+
export type PublicInstalledPackage = {
|
|
2224
|
+
packageName: string;
|
|
2225
|
+
installedVersion: string;
|
|
2226
|
+
authorName?: string;
|
|
2227
|
+
authorEmail?: string;
|
|
2228
|
+
installedNodes: PublicInstalledNode[];
|
|
2229
|
+
createdAt: Date;
|
|
2230
|
+
updatedAt: Date;
|
|
2231
|
+
updateAvailable?: string;
|
|
2232
|
+
failedLoading?: boolean;
|
|
2233
|
+
};
|
|
2234
|
+
export type PublicInstalledNode = {
|
|
2235
|
+
name: string;
|
|
2236
|
+
type: string;
|
|
2237
|
+
latestVersion: number;
|
|
2238
|
+
package: PublicInstalledPackage;
|
|
2239
|
+
};
|
|
2240
|
+
export interface NodeExecutionWithMetadata extends INodeExecutionData {
|
|
2241
|
+
pairedItem: IPairedItemData | IPairedItemData[];
|
|
2242
|
+
}
|
|
2243
|
+
export type AnnotationVote = 'up' | 'down';
|
|
2244
|
+
export interface ExecutionSummary {
|
|
2245
|
+
id: string;
|
|
2246
|
+
/**
|
|
2247
|
+
* @deprecated Use status instead
|
|
2248
|
+
*/
|
|
2249
|
+
finished?: boolean;
|
|
2250
|
+
mode: WorkflowExecuteMode;
|
|
2251
|
+
retryOf?: string | null;
|
|
2252
|
+
retrySuccessId?: string | null;
|
|
2253
|
+
waitTill?: Date;
|
|
2254
|
+
createdAt: Date;
|
|
2255
|
+
startedAt: Date | null;
|
|
2256
|
+
stoppedAt?: Date;
|
|
2257
|
+
workflowId: string;
|
|
2258
|
+
workflowName?: string;
|
|
2259
|
+
status: ExecutionStatus;
|
|
2260
|
+
lastNodeExecuted?: string;
|
|
2261
|
+
executionError?: ExecutionError;
|
|
2262
|
+
nodeExecutionStatus?: {
|
|
2263
|
+
[key: string]: IExecutionSummaryNodeExecutionResult;
|
|
2264
|
+
};
|
|
2265
|
+
annotation?: {
|
|
2266
|
+
vote: AnnotationVote;
|
|
2267
|
+
tags: Array<{
|
|
2268
|
+
id: string;
|
|
2269
|
+
name: string;
|
|
2270
|
+
}>;
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
2273
|
+
export interface IExecutionSummaryNodeExecutionResult {
|
|
2274
|
+
executionStatus: ExecutionStatus;
|
|
2275
|
+
errors?: Array<{
|
|
2276
|
+
name?: string;
|
|
2277
|
+
message?: string;
|
|
2278
|
+
description?: string;
|
|
2279
|
+
}>;
|
|
2280
|
+
}
|
|
2281
|
+
export interface ResourceMapperFields {
|
|
2282
|
+
fields: ResourceMapperField[];
|
|
2283
|
+
emptyFieldsNotice?: string;
|
|
2284
|
+
}
|
|
2285
|
+
export interface WorkflowInputsData {
|
|
2286
|
+
fields: ResourceMapperField[];
|
|
2287
|
+
dataMode: string;
|
|
2288
|
+
subworkflowInfo?: {
|
|
2289
|
+
workflowId?: string;
|
|
2290
|
+
triggerId?: string;
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
export interface ResourceMapperField {
|
|
2294
|
+
id: string;
|
|
2295
|
+
displayName: string;
|
|
2296
|
+
defaultMatch: boolean;
|
|
2297
|
+
canBeUsedToMatch?: boolean;
|
|
2298
|
+
required: boolean;
|
|
2299
|
+
display: boolean;
|
|
2300
|
+
type?: FieldType;
|
|
2301
|
+
removed?: boolean;
|
|
2302
|
+
options?: INodePropertyOptions[];
|
|
2303
|
+
readOnly?: boolean;
|
|
2304
|
+
defaultValue?: string | number | boolean | null;
|
|
2305
|
+
}
|
|
2306
|
+
export type FormFieldsParameter = Array<{
|
|
2307
|
+
fieldLabel: string;
|
|
2308
|
+
elementName?: string;
|
|
2309
|
+
fieldType?: string;
|
|
2310
|
+
requiredField?: boolean;
|
|
2311
|
+
fieldOptions?: {
|
|
2312
|
+
values: Array<{
|
|
2313
|
+
option: string;
|
|
2314
|
+
}>;
|
|
2315
|
+
};
|
|
2316
|
+
multiselect?: boolean;
|
|
2317
|
+
multipleFiles?: boolean;
|
|
2318
|
+
acceptFileTypes?: string;
|
|
2319
|
+
formatDate?: string;
|
|
2320
|
+
html?: string;
|
|
2321
|
+
placeholder?: string;
|
|
2322
|
+
defaultValue?: string;
|
|
2323
|
+
fieldName?: string;
|
|
2324
|
+
fieldValue?: string;
|
|
2325
|
+
limitSelection?: 'exact' | 'range' | 'unlimited';
|
|
2326
|
+
numberOfSelections?: number;
|
|
2327
|
+
minSelections?: number;
|
|
2328
|
+
maxSelections?: number;
|
|
2329
|
+
}>;
|
|
2330
|
+
export type FieldTypeMap = {
|
|
2331
|
+
boolean: boolean;
|
|
2332
|
+
number: number;
|
|
2333
|
+
string: string;
|
|
2334
|
+
'string-alphanumeric': string;
|
|
2335
|
+
dateTime: string;
|
|
2336
|
+
time: string;
|
|
2337
|
+
array: unknown[];
|
|
2338
|
+
object: object;
|
|
2339
|
+
options: any;
|
|
2340
|
+
url: string;
|
|
2341
|
+
jwt: string;
|
|
2342
|
+
'form-fields': FormFieldsParameter;
|
|
2343
|
+
};
|
|
2344
|
+
export type FieldType = keyof FieldTypeMap;
|
|
2345
|
+
export type ValidationResult<T extends FieldType = FieldType> = {
|
|
2346
|
+
valid: false;
|
|
2347
|
+
errorMessage: string;
|
|
2348
|
+
} | {
|
|
2349
|
+
valid: true;
|
|
2350
|
+
newValue?: FieldTypeMap[T];
|
|
2351
|
+
};
|
|
2352
|
+
export type ResourceMapperValue = {
|
|
2353
|
+
mappingMode: string;
|
|
2354
|
+
value: {
|
|
2355
|
+
[key: string]: string | number | boolean | null;
|
|
2356
|
+
} | null;
|
|
2357
|
+
matchingColumns: string[];
|
|
2358
|
+
schema: ResourceMapperField[];
|
|
2359
|
+
attemptToConvertTypes: boolean;
|
|
2360
|
+
convertFieldsToString: boolean;
|
|
2361
|
+
};
|
|
2362
|
+
export type FilterOperatorType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'dateTime' | 'any';
|
|
2363
|
+
export interface FilterOperatorValue {
|
|
2364
|
+
type: FilterOperatorType;
|
|
2365
|
+
operation: string;
|
|
2366
|
+
rightType?: FilterOperatorType;
|
|
2367
|
+
singleValue?: boolean;
|
|
2368
|
+
}
|
|
2369
|
+
export type FilterConditionValue = {
|
|
2370
|
+
id: string;
|
|
2371
|
+
leftValue: NodeParameterValue | NodeParameterValue[];
|
|
2372
|
+
operator: FilterOperatorValue;
|
|
2373
|
+
rightValue: NodeParameterValue | NodeParameterValue[];
|
|
2374
|
+
};
|
|
2375
|
+
export type FilterOptionsValue = {
|
|
2376
|
+
caseSensitive: boolean;
|
|
2377
|
+
leftValue: string;
|
|
2378
|
+
typeValidation: 'strict' | 'loose';
|
|
2379
|
+
version: 1 | 2 | 3;
|
|
2380
|
+
};
|
|
2381
|
+
export type FilterValue = {
|
|
2382
|
+
options: FilterOptionsValue;
|
|
2383
|
+
conditions: FilterConditionValue[];
|
|
2384
|
+
combinator: FilterTypeCombinator;
|
|
2385
|
+
};
|
|
2386
|
+
export type AssignmentCollectionValue = {
|
|
2387
|
+
assignments: AssignmentValue[];
|
|
2388
|
+
};
|
|
2389
|
+
export type AssignmentValue = {
|
|
2390
|
+
id: string;
|
|
2391
|
+
name: string;
|
|
2392
|
+
value: NodeParameterValue;
|
|
2393
|
+
type?: string;
|
|
2394
|
+
};
|
|
2395
|
+
export interface ExecutionOptions {
|
|
2396
|
+
limit?: number;
|
|
2397
|
+
}
|
|
2398
|
+
export interface ExecutionFilters {
|
|
2399
|
+
/**
|
|
2400
|
+
* @deprecated Use status instead
|
|
2401
|
+
*/
|
|
2402
|
+
finished?: boolean;
|
|
2403
|
+
mode?: WorkflowExecuteMode[];
|
|
2404
|
+
retryOf?: string;
|
|
2405
|
+
retrySuccessId?: string;
|
|
2406
|
+
status?: ExecutionStatus[];
|
|
2407
|
+
waitTill?: boolean;
|
|
2408
|
+
workflowId?: number | string;
|
|
2409
|
+
}
|
|
2410
|
+
export type NpsSurveyRespondedState = {
|
|
2411
|
+
lastShownAt: number;
|
|
2412
|
+
responded: true;
|
|
2413
|
+
};
|
|
2414
|
+
export type NpsSurveyWaitingState = {
|
|
2415
|
+
lastShownAt: number;
|
|
2416
|
+
waitingForResponse: true;
|
|
2417
|
+
ignoredCount: number;
|
|
2418
|
+
};
|
|
2419
|
+
export type NpsSurveyState = NpsSurveyRespondedState | NpsSurveyWaitingState;
|
|
2420
|
+
export interface IUserSettings {
|
|
2421
|
+
isOnboarded?: boolean;
|
|
2422
|
+
firstSuccessfulWorkflowId?: string;
|
|
2423
|
+
userActivated?: boolean;
|
|
2424
|
+
userActivatedAt?: number;
|
|
2425
|
+
allowSSOManualLogin?: boolean;
|
|
2426
|
+
npsSurvey?: NpsSurveyState;
|
|
2427
|
+
easyAIWorkflowOnboarded?: boolean;
|
|
2428
|
+
userClaimedAiCredits?: boolean;
|
|
2429
|
+
dismissedCallouts?: Record<string, boolean>;
|
|
2430
|
+
}
|
|
2431
|
+
export interface IProcessedDataConfig {
|
|
2432
|
+
availableModes: string;
|
|
2433
|
+
mode: string;
|
|
2434
|
+
}
|
|
2435
|
+
export interface IDataDeduplicator {
|
|
2436
|
+
checkProcessedAndRecord(items: DeduplicationItemTypes[], context: DeduplicationScope, contextData: ICheckProcessedContextData, options: ICheckProcessedOptions): Promise<IDeduplicationOutput>;
|
|
2437
|
+
removeProcessed(items: DeduplicationItemTypes[], context: DeduplicationScope, contextData: ICheckProcessedContextData, options: ICheckProcessedOptions): Promise<void>;
|
|
2438
|
+
clearAllProcessedItems(context: DeduplicationScope, contextData: ICheckProcessedContextData, options: ICheckProcessedOptions): Promise<void>;
|
|
2439
|
+
getProcessedDataCount(context: DeduplicationScope, contextData: ICheckProcessedContextData, options: ICheckProcessedOptions): Promise<number>;
|
|
2440
|
+
}
|
|
2441
|
+
export interface ICheckProcessedContextData {
|
|
2442
|
+
node?: INode;
|
|
2443
|
+
workflow: {
|
|
2444
|
+
id: string;
|
|
2445
|
+
active: boolean;
|
|
2446
|
+
};
|
|
2447
|
+
}
|
|
2448
|
+
export type N8nAIProviderType = 'openai' | 'unknown';
|
|
2449
|
+
export type Functionality = 'regular' | 'configuration-node' | 'pairedItem';
|
|
2450
|
+
export type CallbackManager = CallbackManagerLC;
|
|
2451
|
+
export type IPersonalizationSurveyAnswersV4 = {
|
|
2452
|
+
version: 'v4';
|
|
2453
|
+
personalization_survey_submitted_at: string;
|
|
2454
|
+
personalization_survey_n8n_version: string;
|
|
2455
|
+
automationGoalDevops?: string[] | null;
|
|
2456
|
+
automationGoalDevopsOther?: string | null;
|
|
2457
|
+
companyIndustryExtended?: string[] | null;
|
|
2458
|
+
otherCompanyIndustryExtended?: string[] | null;
|
|
2459
|
+
companySize?: string | null;
|
|
2460
|
+
companyType?: string | null;
|
|
2461
|
+
automationGoalSm?: string[] | null;
|
|
2462
|
+
automationGoalSmOther?: string | null;
|
|
2463
|
+
usageModes?: string[] | null;
|
|
2464
|
+
email?: string | null;
|
|
2465
|
+
role?: string | null;
|
|
2466
|
+
roleOther?: string | null;
|
|
2467
|
+
reportedSource?: string | null;
|
|
2468
|
+
reportedSourceOther?: string | null;
|
|
2469
|
+
};
|
|
2470
|
+
export type ChunkType = 'begin' | 'item' | 'end' | 'error';
|
|
2471
|
+
export interface StructuredChunk {
|
|
2472
|
+
type: ChunkType;
|
|
2473
|
+
content?: string;
|
|
2474
|
+
metadata: {
|
|
2475
|
+
nodeId: string;
|
|
2476
|
+
nodeName: string;
|
|
2477
|
+
runIndex: number;
|
|
2478
|
+
itemIndex: number;
|
|
2479
|
+
timestamp: number;
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2482
|
+
export type ApiKeyAudience = 'public-api' | 'mcp-server-api';
|
|
2483
|
+
//# sourceMappingURL=interfaces.d.ts.map
|