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