n8n-workflow 2.28.0 → 2.29.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/cjs/build.tsbuildinfo +1 -1
- package/dist/cjs/common/index.d.ts +1 -0
- package/dist/cjs/common/index.d.ts.map +1 -1
- package/dist/cjs/common/index.js +2 -1
- package/dist/cjs/common/index.js.map +1 -1
- package/dist/cjs/common/resolve-variables.d.ts +25 -0
- package/dist/cjs/common/resolve-variables.d.ts.map +1 -0
- package/dist/cjs/common/resolve-variables.js +39 -0
- package/dist/cjs/common/resolve-variables.js.map +1 -0
- package/dist/cjs/errors/abstract/execution-base.error.d.ts +3 -3
- package/dist/cjs/errors/abstract/execution-base.error.d.ts.map +1 -1
- package/dist/cjs/errors/abstract/execution-base.error.js +3 -4
- package/dist/cjs/errors/abstract/execution-base.error.js.map +1 -1
- package/dist/cjs/errors/db-connection-timeout-error.d.ts +2 -2
- package/dist/cjs/errors/db-connection-timeout-error.d.ts.map +1 -1
- package/dist/cjs/errors/db-connection-timeout-error.js +3 -3
- package/dist/cjs/errors/db-connection-timeout-error.js.map +1 -1
- package/dist/cjs/errors/trigger-close.error.d.ts +3 -3
- package/dist/cjs/errors/trigger-close.error.d.ts.map +1 -1
- package/dist/cjs/errors/trigger-close.error.js +4 -5
- package/dist/cjs/errors/trigger-close.error.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces.d.ts +47 -2
- package/dist/cjs/interfaces.d.ts.map +1 -1
- package/dist/cjs/interfaces.js.map +1 -1
- package/dist/cjs/jmespath-query.d.ts +12 -0
- package/dist/cjs/jmespath-query.d.ts.map +1 -0
- package/dist/cjs/jmespath-query.js +72 -0
- package/dist/cjs/jmespath-query.js.map +1 -0
- package/dist/cjs/node-parameters/filter-parameter.d.ts +2 -2
- package/dist/cjs/node-parameters/filter-parameter.d.ts.map +1 -1
- package/dist/cjs/node-parameters/filter-parameter.js +4 -4
- package/dist/cjs/node-parameters/filter-parameter.js.map +1 -1
- package/dist/cjs/run-execution-data/run-execution-data.v0.d.ts +1 -1
- package/dist/cjs/run-execution-data/run-execution-data.v0.d.ts.map +1 -1
- package/dist/cjs/run-execution-data/run-execution-data.v1.d.ts +1 -9
- package/dist/cjs/run-execution-data/run-execution-data.v1.d.ts.map +1 -1
- package/dist/cjs/run-execution-data/run-execution-data.v1.js.map +1 -1
- package/dist/cjs/trigger-identity.d.ts +24 -0
- package/dist/cjs/trigger-identity.d.ts.map +1 -0
- package/dist/cjs/trigger-identity.js +55 -0
- package/dist/cjs/trigger-identity.js.map +1 -0
- package/dist/cjs/workflow-data-proxy.d.ts.map +1 -1
- package/dist/cjs/workflow-data-proxy.js +13 -2
- package/dist/cjs/workflow-data-proxy.js.map +1 -1
- package/dist/esm/common/index.d.ts +1 -0
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +1 -0
- package/dist/esm/common/index.js.map +1 -1
- package/dist/esm/common/resolve-variables.d.ts +25 -0
- package/dist/esm/common/resolve-variables.d.ts.map +1 -0
- package/dist/esm/common/resolve-variables.js +26 -0
- package/dist/esm/common/resolve-variables.js.map +1 -0
- package/dist/esm/errors/abstract/execution-base.error.d.ts +3 -3
- package/dist/esm/errors/abstract/execution-base.error.d.ts.map +1 -1
- package/dist/esm/errors/abstract/execution-base.error.js +2 -3
- package/dist/esm/errors/abstract/execution-base.error.js.map +1 -1
- package/dist/esm/errors/db-connection-timeout-error.d.ts +2 -2
- package/dist/esm/errors/db-connection-timeout-error.d.ts.map +1 -1
- package/dist/esm/errors/db-connection-timeout-error.js +2 -2
- package/dist/esm/errors/db-connection-timeout-error.js.map +1 -1
- package/dist/esm/errors/trigger-close.error.d.ts +3 -3
- package/dist/esm/errors/trigger-close.error.d.ts.map +1 -1
- package/dist/esm/errors/trigger-close.error.js +3 -4
- package/dist/esm/errors/trigger-close.error.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces.d.ts +47 -2
- package/dist/esm/interfaces.d.ts.map +1 -1
- package/dist/esm/interfaces.js.map +1 -1
- package/dist/esm/jmespath-query.d.ts +12 -0
- package/dist/esm/jmespath-query.d.ts.map +1 -0
- package/dist/esm/jmespath-query.js +24 -0
- package/dist/esm/jmespath-query.js.map +1 -0
- package/dist/esm/node-parameters/filter-parameter.d.ts +2 -2
- package/dist/esm/node-parameters/filter-parameter.d.ts.map +1 -1
- package/dist/esm/node-parameters/filter-parameter.js +3 -3
- package/dist/esm/node-parameters/filter-parameter.js.map +1 -1
- package/dist/esm/run-execution-data/run-execution-data.v0.d.ts +1 -1
- package/dist/esm/run-execution-data/run-execution-data.v0.d.ts.map +1 -1
- package/dist/esm/run-execution-data/run-execution-data.v1.d.ts +1 -9
- package/dist/esm/run-execution-data/run-execution-data.v1.d.ts.map +1 -1
- package/dist/esm/run-execution-data/run-execution-data.v1.js.map +1 -1
- package/dist/esm/trigger-identity.d.ts +24 -0
- package/dist/esm/trigger-identity.d.ts.map +1 -0
- package/dist/esm/trigger-identity.js +42 -0
- package/dist/esm/trigger-identity.js.map +1 -0
- package/dist/esm/typecheck.tsbuildinfo +1 -1
- package/dist/esm/workflow-data-proxy.d.ts.map +1 -1
- package/dist/esm/workflow-data-proxy.js +12 -1
- package/dist/esm/workflow-data-proxy.js.map +1 -1
- package/package.json +18 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC"}
|
package/dist/cjs/common/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
if (v !== undefined) module.exports = v;
|
|
19
19
|
}
|
|
20
20
|
else if (typeof define === "function" && define.amd) {
|
|
21
|
-
define(["require", "exports", "./find-ai-root-node-names", "./get-child-nodes", "./get-connected-nodes", "./get-node-by-name", "./get-parent-nodes", "./map-connections-by-destination"], factory);
|
|
21
|
+
define(["require", "exports", "./find-ai-root-node-names", "./get-child-nodes", "./get-connected-nodes", "./get-node-by-name", "./get-parent-nodes", "./map-connections-by-destination", "./resolve-variables"], factory);
|
|
22
22
|
}
|
|
23
23
|
})(function (require, exports) {
|
|
24
24
|
"use strict";
|
|
@@ -29,5 +29,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
__exportStar(require("./get-node-by-name"), exports);
|
|
30
30
|
__exportStar(require("./get-parent-nodes"), exports);
|
|
31
31
|
__exportStar(require("./map-connections-by-destination"), exports);
|
|
32
|
+
__exportStar(require("./resolve-variables"), exports);
|
|
32
33
|
});
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA0C;IAC1C,oDAAkC;IAClC,wDAAsC;IACtC,qDAAmC;IACnC,qDAAmC;IACnC,mEAAiD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA0C;IAC1C,oDAAkC;IAClC,wDAAsC;IACtC,qDAAmC;IACnC,qDAAmC;IACnC,mEAAiD;IACjD,sDAAoC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A variable that is either global (no `project`) or scoped to a project.
|
|
3
|
+
* Structural shape shared by the backend `Variables` entity and the
|
|
4
|
+
* frontend `EnvironmentVariable` type.
|
|
5
|
+
*/
|
|
6
|
+
export interface ScopedVariable {
|
|
7
|
+
key: string;
|
|
8
|
+
value: string | boolean | number;
|
|
9
|
+
project?: {
|
|
10
|
+
id: string;
|
|
11
|
+
} | null;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Resolves variables to a flat key→value map.
|
|
15
|
+
*
|
|
16
|
+
* Globals are applied first, then variables belonging to `projectId` overwrite
|
|
17
|
+
* them. This makes project variables win over same-key globals regardless of
|
|
18
|
+
* the input order, which would otherwise leave the result dependent on
|
|
19
|
+
* database row or store insertion order.
|
|
20
|
+
*
|
|
21
|
+
* @param variables Global and project-scoped variables, in any order
|
|
22
|
+
* @param projectId Project whose variables take precedence, if any
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveVariables(variables: ScopedVariable[], projectId?: string): Record<string, string | boolean | number>;
|
|
25
|
+
//# sourceMappingURL=resolve-variables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-variables.d.ts","sourceRoot":"","sources":["../../../src/common/resolve-variables.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAChC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC/B,SAAS,EAAE,cAAc,EAAE,EAC3B,SAAS,CAAC,EAAE,MAAM,GAChB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAgB3C"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.resolveVariables = resolveVariables;
|
|
13
|
+
/**
|
|
14
|
+
* Resolves variables to a flat key→value map.
|
|
15
|
+
*
|
|
16
|
+
* Globals are applied first, then variables belonging to `projectId` overwrite
|
|
17
|
+
* them. This makes project variables win over same-key globals regardless of
|
|
18
|
+
* the input order, which would otherwise leave the result dependent on
|
|
19
|
+
* database row or store insertion order.
|
|
20
|
+
*
|
|
21
|
+
* @param variables Global and project-scoped variables, in any order
|
|
22
|
+
* @param projectId Project whose variables take precedence, if any
|
|
23
|
+
*/
|
|
24
|
+
function resolveVariables(variables, projectId) {
|
|
25
|
+
const resolved = {};
|
|
26
|
+
for (const variable of variables) {
|
|
27
|
+
if (!variable.project) {
|
|
28
|
+
resolved[variable.key] = variable.value;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
for (const variable of variables) {
|
|
32
|
+
if (projectId && variable.project?.id === projectId) {
|
|
33
|
+
resolved[variable.key] = variable.value;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return resolved;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=resolve-variables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-variables.js","sourceRoot":"","sources":["../../../src/common/resolve-variables.ts"],"names":[],"mappings":";;;;;;;;;;;IAsBA,4CAmBC;IA9BD;;;;;;;;;;OAUG;IACH,SAAgB,gBAAgB,CAC/B,SAA2B,EAC3B,SAAkB;QAElB,MAAM,QAAQ,GAA8C,EAAE,CAAC;QAE/D,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAClC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACvB,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;YACzC,CAAC;QACF,CAAC;QAED,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAClC,IAAI,SAAS,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE,KAAK,SAAS,EAAE,CAAC;gBACrD,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;YACzC,CAAC;QACF,CAAC;QAED,OAAO,QAAQ,CAAC;IACjB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseError, type BaseErrorOptions } from '../base/base.error';
|
|
2
2
|
import type { Functionality, IDataObject, JsonObject } from '../../interfaces';
|
|
3
|
-
interface ExecutionBaseErrorOptions extends
|
|
3
|
+
interface ExecutionBaseErrorOptions extends BaseErrorOptions {
|
|
4
4
|
cause?: Error;
|
|
5
5
|
errorResponse?: JsonObject;
|
|
6
6
|
}
|
|
7
|
-
export declare abstract class ExecutionBaseError extends
|
|
7
|
+
export declare abstract class ExecutionBaseError extends BaseError {
|
|
8
8
|
description: string | null | undefined;
|
|
9
9
|
cause?: Error;
|
|
10
10
|
errorResponse?: JsonObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-base.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"execution-base.error.d.ts","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE/E,UAAU,yBAA0B,SAAQ,gBAAgB;IAC3D,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED,8BAAsB,kBAAmB,SAAQ,SAAS;IAIjD,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEtC,KAAK,CAAC,EAAE,KAAK,CAAC;IAEvB,aAAa,CAAC,EAAE,UAAU,CAAC;IAE3B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,WAAW,CAAM;IAE1B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B,aAAa,EAAE,aAAa,CAAa;gBAE7B,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,yBAA8B;IAgBpE,MAAM,CAAC;;;;;;;;;CAWP"}
|
|
@@ -4,15 +4,14 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "
|
|
7
|
+
define(["require", "exports", "../base/base.error"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ExecutionBaseError = void 0;
|
|
13
|
-
const
|
|
14
|
-
class ExecutionBaseError extends
|
|
15
|
-
description;
|
|
13
|
+
const base_error_1 = require("../base/base.error");
|
|
14
|
+
class ExecutionBaseError extends base_error_1.BaseError {
|
|
16
15
|
cause;
|
|
17
16
|
errorResponse;
|
|
18
17
|
timestamp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-base.error.js","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,
|
|
1
|
+
{"version":3,"file":"execution-base.error.js","sourceRoot":"","sources":["../../../../src/errors/abstract/execution-base.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,mDAAsE;IAQtE,MAAsB,kBAAmB,SAAQ,sBAAS;QAMhD,KAAK,CAAS;QAEvB,aAAa,CAAc;QAE3B,SAAS,CAAS;QAElB,OAAO,GAAgB,EAAE,CAAC;QAE1B,UAAU,CAAqB;QAE/B,aAAa,GAAkB,SAAS,CAAC;QAEzC,YAAY,OAAe,EAAE,UAAqC,EAAE;YACnE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAExB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;YAClC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAE5B,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;YACzC,IAAI,KAAK,YAAY,kBAAkB,EAAE,CAAC;gBACzC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;YAC9B,CAAC;iBAAM,IAAI,KAAK,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE,CAAC;gBAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACpB,CAAC;YAED,IAAI,aAAa;gBAAE,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACvD,CAAC;QAED,MAAM;YACL,OAAO;gBACN,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,KAAK,EAAE,IAAI,CAAC,KAAK;aACjB,CAAC;QACH,CAAC;KACD;IA7CD,gDA6CC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OperationalError } from './base/operational.error';
|
|
2
2
|
export type DbConnectionTimeoutErrorOpts = {
|
|
3
3
|
configuredTimeoutInMs: number;
|
|
4
4
|
cause: Error;
|
|
5
5
|
};
|
|
6
|
-
export declare class DbConnectionTimeoutError extends
|
|
6
|
+
export declare class DbConnectionTimeoutError extends OperationalError {
|
|
7
7
|
constructor(opts: DbConnectionTimeoutErrorOpts);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=db-connection-timeout-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-connection-timeout-error.d.ts","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"db-connection-timeout-error.d.ts","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,MAAM,4BAA4B,GAAG;IAC1C,qBAAqB,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,qBAAa,wBAAyB,SAAQ,gBAAgB;gBACjD,IAAI,EAAE,4BAA4B;CAK9C"}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "
|
|
7
|
+
define(["require", "exports", "./base/operational.error"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DbConnectionTimeoutError = void 0;
|
|
13
|
-
const
|
|
14
|
-
class DbConnectionTimeoutError extends
|
|
13
|
+
const operational_error_1 = require("./base/operational.error");
|
|
14
|
+
class DbConnectionTimeoutError extends operational_error_1.OperationalError {
|
|
15
15
|
constructor(opts) {
|
|
16
16
|
const numberFormat = Intl.NumberFormat();
|
|
17
17
|
const errorMessage = `Could not establish database connection within the configured timeout of ${numberFormat.format(opts.configuredTimeoutInMs)} ms. Please ensure the database is configured correctly and the server is reachable. You can increase the timeout by setting the 'DB_POSTGRESDB_CONNECTION_TIMEOUT' environment variable.`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-connection-timeout-error.js","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,
|
|
1
|
+
{"version":3,"file":"db-connection-timeout-error.js","sourceRoot":"","sources":["../../../src/errors/db-connection-timeout-error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,gEAA4D;IAO5D,MAAa,wBAAyB,SAAQ,oCAAgB;QAC7D,YAAY,IAAkC;YAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACzC,MAAM,YAAY,GAAG,4EAA4E,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,2LAA2L,CAAC;YAC5U,KAAK,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC5C,CAAC;KACD;IAND,4DAMC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ApplicationError, type ErrorLevel } from '@n8n/errors';
|
|
2
1
|
import type { INode } from '../interfaces';
|
|
2
|
+
import { OperationalError, type OperationalErrorOptions } from './base/operational.error';
|
|
3
3
|
interface TriggerCloseErrorOptions extends ErrorOptions {
|
|
4
|
-
level:
|
|
4
|
+
level: OperationalErrorOptions['level'];
|
|
5
5
|
}
|
|
6
|
-
export declare class TriggerCloseError extends
|
|
6
|
+
export declare class TriggerCloseError extends OperationalError {
|
|
7
7
|
readonly node: INode;
|
|
8
8
|
constructor(node: INode, { cause, level }: TriggerCloseErrorOptions);
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-close.error.d.ts","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"trigger-close.error.d.ts","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAE1F,UAAU,wBAAyB,SAAQ,YAAY;IACtD,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC;CACxC;AAED,qBAAa,iBAAkB,SAAQ,gBAAgB;IAErD,QAAQ,CAAC,IAAI,EAAE,KAAK;gBAAX,IAAI,EAAE,KAAK,EACpB,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,wBAAwB;CAI3C"}
|
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "
|
|
7
|
+
define(["require", "exports", "./base/operational.error"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TriggerCloseError = void 0;
|
|
13
|
-
const
|
|
14
|
-
class TriggerCloseError extends
|
|
13
|
+
const operational_error_1 = require("./base/operational.error");
|
|
14
|
+
class TriggerCloseError extends operational_error_1.OperationalError {
|
|
15
15
|
node;
|
|
16
16
|
constructor(node, { cause, level }) {
|
|
17
|
-
super('Trigger Close Failed', { cause, extra: { nodeName: node.name } });
|
|
17
|
+
super('Trigger Close Failed', { cause, level, extra: { nodeName: node.name } });
|
|
18
18
|
this.node = node;
|
|
19
|
-
this.level = level;
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
exports.TriggerCloseError = TriggerCloseError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-close.error.js","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"trigger-close.error.js","sourceRoot":"","sources":["../../../src/errors/trigger-close.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IACA,gEAA0F;IAM1F,MAAa,iBAAkB,SAAQ,oCAAgB;QAE5C;QADV,YACU,IAAW,EACpB,EAAE,KAAK,EAAE,KAAK,EAA4B;YAE1C,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAHvE,SAAI,GAAJ,IAAI,CAAO;QAIrB,CAAC;KACD;IAPD,8CAOC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './node-validation';
|
|
|
26
26
|
export * from './node-grouping-validation';
|
|
27
27
|
export * from './mcp-helpers';
|
|
28
28
|
export * from './tool-helpers';
|
|
29
|
+
export * from './trigger-identity';
|
|
29
30
|
export * from './node-reference-parser-utils';
|
|
30
31
|
export * from './metadata-utils';
|
|
31
32
|
export * from './highlighted-data';
|
|
@@ -56,6 +57,7 @@ export * from './node-parameters/path-utils';
|
|
|
56
57
|
export * from './evaluation-helpers';
|
|
57
58
|
export * from './workflow-diff';
|
|
58
59
|
export * from './workflow-environments-helper';
|
|
60
|
+
export { evaluateJmespathQuery, JmespathQueryError } from './jmespath-query';
|
|
59
61
|
export type { DocMetadata, NativeDoc, DocMetadataArgument, DocMetadataExample, Extension, } from './extensions';
|
|
60
62
|
declare module 'http' {
|
|
61
63
|
interface IncomingMessage {
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AAExD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yCAAyC,CAAC;AACxD,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAA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,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,YAAY,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,GACT,MAAM,cAAc,CAAC;AAEtB,OAAO,QAAQ,MAAM,CAAC;IACrB,UAAiB,eAAe;QAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,cAAc,CAAC;QACzB,kBAAkB,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACzD,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,KAAK,EAAE,OAAO,CAAC;QAGf,WAAW,CAAC,EAAE,MAAM,CAAC;QAGrB,GAAG,CAAC,EAAE,aAAa,CAAC;KACpB;CACD"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -40,12 +40,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
40
40
|
if (v !== undefined) module.exports = v;
|
|
41
41
|
}
|
|
42
42
|
else if (typeof define === "function" && define.amd) {
|
|
43
|
-
define(["require", "exports", "./logger-proxy", "./node-helpers", "./observable-object", "./telemetry-helpers", "./errors", "./constants", "./common", "./cron", "./data-table.types", "./deferred-promise", "./execution-context", "./execution-context-establishment-hooks", "./redaction-channels", "./global-state", "./interfaces", "./sub-workflow-output", "./run-execution-data-factory", "./message-event-bus", "./execution-status", "./trimmed-task-data", "./expression", "./expressions/expression-helpers", "./from-ai-parse-utils", "./node-helpers", "./node-validation", "./node-grouping-validation", "./mcp-helpers", "./tool-helpers", "./node-reference-parser-utils", "./metadata-utils", "./highlighted-data", "./workflow", "./workflow-checksum", "./workflow-data-proxy", "./workflow-data-proxy-env-provider", "./workflow-validation", "./workflow-structure-validation", "./versioned-node-type", "./type-validation", "./credential-domain-restrictions", "./result", "./schemas", "./run-execution-data/run-execution-data", "./workflow-expression", "./utils", "./type-guards", "./graph/graph-utils", "./extensions", "./extensions/expression-parser", "./native-methods", "./node-parameters/filter-parameter", "./node-parameters/parameter-type-validation", "./node-parameters/node-parameter-value-type-guard", "./node-parameters/path-utils", "./evaluation-helpers", "./workflow-diff", "./workflow-environments-helper"], factory);
|
|
43
|
+
define(["require", "exports", "./logger-proxy", "./node-helpers", "./observable-object", "./telemetry-helpers", "./errors", "./constants", "./common", "./cron", "./data-table.types", "./deferred-promise", "./execution-context", "./execution-context-establishment-hooks", "./redaction-channels", "./global-state", "./interfaces", "./sub-workflow-output", "./run-execution-data-factory", "./message-event-bus", "./execution-status", "./trimmed-task-data", "./expression", "./expressions/expression-helpers", "./from-ai-parse-utils", "./node-helpers", "./node-validation", "./node-grouping-validation", "./mcp-helpers", "./tool-helpers", "./trigger-identity", "./node-reference-parser-utils", "./metadata-utils", "./highlighted-data", "./workflow", "./workflow-checksum", "./workflow-data-proxy", "./workflow-data-proxy-env-provider", "./workflow-validation", "./workflow-structure-validation", "./versioned-node-type", "./type-validation", "./credential-domain-restrictions", "./result", "./schemas", "./run-execution-data/run-execution-data", "./workflow-expression", "./utils", "./type-guards", "./graph/graph-utils", "./extensions", "./extensions/expression-parser", "./native-methods", "./node-parameters/filter-parameter", "./node-parameters/parameter-type-validation", "./node-parameters/node-parameter-value-type-guard", "./node-parameters/path-utils", "./evaluation-helpers", "./workflow-diff", "./workflow-environments-helper", "./jmespath-query"], factory);
|
|
44
44
|
}
|
|
45
45
|
})(function (require, exports) {
|
|
46
46
|
"use strict";
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.NativeMethods = exports.ExpressionParser = exports.ExpressionExtensions = exports.buildAdjacencyList = exports.parseExtractableSubgraphSelection = exports.isBinaryValue = exports.isNodeConnectionType = exports.isFilterValue = exports.isResourceLocatorValue = exports.isResourceMapperValue = exports.isINodePropertyOptionsList = exports.isINodePropertyCollectionList = exports.isINodePropertiesList = exports.isINodePropertyCollection = exports.isINodePropertyOptions = exports.isINodeProperties = exports.generateSecureToken = exports.sanitizeXmlName = exports.sanitizeFilename = exports.dedupe = exports.isCommunityPackageName = exports.setSafeObjectProperty = exports.isSafeObjectProperty = exports.randomString = exports.randomInt = exports.updateDisplayOptions = exports.removeCircularRefs = exports.assert = exports.fileTypeFromMimeType = exports.sleepWithAbort = exports.sleep = exports.replaceCircularReferences = exports.jsonStringify = exports.base64DecodeUTF8 = exports.jsonParse = exports.deepCopy = exports.isObjectEmpty = exports.TelemetryHelpers = exports.ObservableObject = exports.NodeHelpers = exports.LoggerProxy = exports.WorkflowExpression = void 0;
|
|
48
|
+
exports.JmespathQueryError = exports.evaluateJmespathQuery = exports.NativeMethods = exports.ExpressionParser = exports.ExpressionExtensions = exports.buildAdjacencyList = exports.parseExtractableSubgraphSelection = exports.isBinaryValue = exports.isNodeConnectionType = exports.isFilterValue = exports.isResourceLocatorValue = exports.isResourceMapperValue = exports.isINodePropertyOptionsList = exports.isINodePropertyCollectionList = exports.isINodePropertiesList = exports.isINodePropertyCollection = exports.isINodePropertyOptions = exports.isINodeProperties = exports.generateSecureToken = exports.sanitizeXmlName = exports.sanitizeFilename = exports.dedupe = exports.isCommunityPackageName = exports.setSafeObjectProperty = exports.isSafeObjectProperty = exports.randomString = exports.randomInt = exports.updateDisplayOptions = exports.removeCircularRefs = exports.assert = exports.fileTypeFromMimeType = exports.sleepWithAbort = exports.sleep = exports.replaceCircularReferences = exports.jsonStringify = exports.base64DecodeUTF8 = exports.jsonParse = exports.deepCopy = exports.isObjectEmpty = exports.TelemetryHelpers = exports.ObservableObject = exports.NodeHelpers = exports.LoggerProxy = exports.WorkflowExpression = void 0;
|
|
49
49
|
const LoggerProxy = __importStar(require("./logger-proxy"));
|
|
50
50
|
exports.LoggerProxy = LoggerProxy;
|
|
51
51
|
const NodeHelpers = __importStar(require("./node-helpers"));
|
|
@@ -78,6 +78,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
78
78
|
__exportStar(require("./node-grouping-validation"), exports);
|
|
79
79
|
__exportStar(require("./mcp-helpers"), exports);
|
|
80
80
|
__exportStar(require("./tool-helpers"), exports);
|
|
81
|
+
__exportStar(require("./trigger-identity"), exports);
|
|
81
82
|
__exportStar(require("./node-reference-parser-utils"), exports);
|
|
82
83
|
__exportStar(require("./metadata-utils"), exports);
|
|
83
84
|
__exportStar(require("./highlighted-data"), exports);
|
|
@@ -144,5 +145,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
144
145
|
__exportStar(require("./evaluation-helpers"), exports);
|
|
145
146
|
__exportStar(require("./workflow-diff"), exports);
|
|
146
147
|
__exportStar(require("./workflow-environments-helper"), exports);
|
|
148
|
+
var jmespath_query_1 = require("./jmespath-query");
|
|
149
|
+
Object.defineProperty(exports, "evaluateJmespathQuery", { enumerable: true, get: function () { return jmespath_query_1.evaluateJmespathQuery; } });
|
|
150
|
+
Object.defineProperty(exports, "JmespathQueryError", { enumerable: true, get: function () { return jmespath_query_1.JmespathQueryError; } });
|
|
147
151
|
});
|
|
148
152
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA8C;IA8CrC,kCAAW;IA7CpB,4DAA8C;IA6CxB,kCAAW;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,OAAA;IACf,4GAAA,mBAAmB,OAAA;IAEpB,6CAYuB;IAXtB,gHAAA,iBAAiB,OAAA;IACjB,qHAAA,sBAAsB,OAAA;IACtB,wHAAA,yBAAyB,OAAA;IACzB,oHAAA,qBAAqB,OAAA;IACrB,4HAAA,6BAA6B,OAAA;IAC7B,yHAAA,0BAA0B,OAAA;IAC1B,oHAAA,qBAAqB,OAAA;IACrB,qHAAA,sBAAsB,OAAA;IACtB,4GAAA,aAAa,OAAA;IACb,mHAAA,oBAAoB,OAAA;IACpB,4GAAA,aAAa,OAAA;IAGd,mDAM6B;IAL5B,gIAAA,iCAAiC,OAAA;IACjC,iHAAA,kBAAkB,OAAA;IAKnB,2CAAsF;IAA7E,kHAAA,oBAAoB,OAAA;IAC7B,mFAAmE;IACnE,mDAAiD;IAAxC,+GAAA,aAAa,OAAA;IACtB,qEAAmD;IACnD,8EAA4D;IAC5D,oFAAkE;IAClE,+DAA6C;IAC7C,uDAAqC;IACrC,kDAAgC;IAChC,iEAA+C;IAC/C,mDAA6E;IAApE,uHAAA,qBAAqB,OAAA;IAAE,oHAAA,kBAAkB,OAAA"}
|
package/dist/cjs/interfaces.d.ts
CHANGED
|
@@ -608,7 +608,7 @@ export interface NodeEgressFilter {
|
|
|
608
608
|
export interface RequestHelperFunctions {
|
|
609
609
|
httpRequest(requestOptions: IHttpRequestOptions): Promise<any>;
|
|
610
610
|
httpRequestWithAuthentication(this: IAllExecuteFunctions, credentialsType: string, requestOptions: IHttpRequestOptions, additionalCredentialOptions?: IAdditionalCredentialOptions): Promise<any>;
|
|
611
|
-
requestWithAuthenticationPaginated(this: IAllExecuteFunctions, requestOptions: IRequestOptions, itemIndex: number, paginationOptions: PaginationOptions, credentialsType?: string, additionalCredentialOptions?: IAdditionalCredentialOptions): Promise<any[]>;
|
|
611
|
+
requestWithAuthenticationPaginated(this: IAllExecuteFunctions, requestOptions: IRequestOptions, itemIndex: number, paginationOptions: PaginationOptions, credentialsType?: string, additionalCredentialOptions?: IAdditionalCredentialOptions, sanitizedRequest?: IDataObject): Promise<any[]>;
|
|
612
612
|
/**
|
|
613
613
|
* @deprecated Use .httpRequest instead
|
|
614
614
|
* @see RequestHelperFunctions.httpRequest
|
|
@@ -1148,6 +1148,7 @@ export interface INodePropertyTypeOptions {
|
|
|
1148
1148
|
password?: boolean;
|
|
1149
1149
|
copyButton?: boolean;
|
|
1150
1150
|
redactJsonLeaves?: boolean;
|
|
1151
|
+
ignoreCredentialExpressionResolveError?: boolean;
|
|
1151
1152
|
rows?: number;
|
|
1152
1153
|
showAlpha?: boolean;
|
|
1153
1154
|
sortable?: boolean;
|
|
@@ -1472,6 +1473,43 @@ export interface ExecuteAgentInfo {
|
|
|
1472
1473
|
* surfaced on {@link ExecuteAgentData.structuredOutput}.
|
|
1473
1474
|
*/
|
|
1474
1475
|
outputSchema?: JSONSchema7;
|
|
1476
|
+
/**
|
|
1477
|
+
* Which slice of the calling node's input the agent's `fetch_input_data`
|
|
1478
|
+
* tool should expose: the single current item (`'item'`, default) or all
|
|
1479
|
+
* input items (`'all'`, used when the node invokes the agent once for the
|
|
1480
|
+
* whole batch).
|
|
1481
|
+
*/
|
|
1482
|
+
inputDataScope?: 'item' | 'all';
|
|
1483
|
+
/**
|
|
1484
|
+
* When true, the agent additionally gets the `fetch_workflow_context` tool,
|
|
1485
|
+
* which can read any executed node's output. Off by default.
|
|
1486
|
+
*/
|
|
1487
|
+
exposeWorkflowData?: boolean;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Context about the calling workflow execution, passed to the agent runtime so
|
|
1491
|
+
* it can expose the `fetch_input_data` and (opt-in) `fetch_workflow_context` tools to the agent. The
|
|
1492
|
+
* `runExecutionData` is a live reference to the calling execution's run data —
|
|
1493
|
+
* must be treated as read-only.
|
|
1494
|
+
*/
|
|
1495
|
+
export interface ExecuteAgentWorkflowContext {
|
|
1496
|
+
workflowId?: string;
|
|
1497
|
+
workflowName?: string;
|
|
1498
|
+
/** Name of the node that invoked the agent */
|
|
1499
|
+
callingNodeName: string;
|
|
1500
|
+
/** The calling node's input items, already scoped per {@link ExecuteAgentInfo.inputDataScope}. */
|
|
1501
|
+
inputData?: INodeExecutionData[];
|
|
1502
|
+
/** Which slice {@link inputData} represents. */
|
|
1503
|
+
inputDataScope?: 'item' | 'all';
|
|
1504
|
+
/** Whether to attach the `fetch_workflow_context` tool. */
|
|
1505
|
+
exposeWorkflowData?: boolean;
|
|
1506
|
+
/** Name and type of every node in the calling workflow. */
|
|
1507
|
+
nodes: Array<{
|
|
1508
|
+
name: string;
|
|
1509
|
+
type: string;
|
|
1510
|
+
}>;
|
|
1511
|
+
/** The calling execution's run data (read-only by convention). */
|
|
1512
|
+
runExecutionData: IRunExecutionData;
|
|
1475
1513
|
}
|
|
1476
1514
|
export interface ExecuteAgentOptions {
|
|
1477
1515
|
node?: INode;
|
|
@@ -2112,6 +2150,9 @@ export type IWorkflowDataProxyAdditionalKeys = IDataObject & {
|
|
|
2112
2150
|
resumeFormUrl: string;
|
|
2113
2151
|
customData?: IWorkflowExecutionCustomData;
|
|
2114
2152
|
};
|
|
2153
|
+
$evaluation?: {
|
|
2154
|
+
runId: string;
|
|
2155
|
+
};
|
|
2115
2156
|
$vars?: IDataObject;
|
|
2116
2157
|
$secrets?: IDataObject;
|
|
2117
2158
|
$pageCount?: number;
|
|
@@ -2488,6 +2529,8 @@ export interface IWorkflowExecutionDataProcess {
|
|
|
2488
2529
|
};
|
|
2489
2530
|
/** Encrypted credential context for a manual editor-triggered execution. */
|
|
2490
2531
|
encryptedRunnerIdentity?: string;
|
|
2532
|
+
/** Parent evaluation TestRun.id, exposed to expressions as `$evaluation.runId`. */
|
|
2533
|
+
evaluationRunId?: string;
|
|
2491
2534
|
}
|
|
2492
2535
|
export interface ExecuteWorkflowOptions {
|
|
2493
2536
|
node?: INode;
|
|
@@ -2523,7 +2566,7 @@ export interface AiAgentRequest {
|
|
|
2523
2566
|
export interface IWorkflowExecuteAdditionalData {
|
|
2524
2567
|
credentialsHelper: ICredentialsHelper;
|
|
2525
2568
|
executeWorkflow: (workflowInfo: IExecuteWorkflowInfo, additionalData: IWorkflowExecuteAdditionalData, options: ExecuteWorkflowOptions) => Promise<ExecuteWorkflowData>;
|
|
2526
|
-
executeAgent?: (agentId: string, message: string, executionId: string, threadId: string, additionalData: IWorkflowExecuteAdditionalData, executionMode: WorkflowExecuteMode, outputSchema?: JSONSchema7) => Promise<ExecuteAgentData>;
|
|
2569
|
+
executeAgent?: (agentId: string, message: string, executionId: string, threadId: string, additionalData: IWorkflowExecuteAdditionalData, executionMode: WorkflowExecuteMode, outputSchema?: JSONSchema7, workflowContext?: ExecuteAgentWorkflowContext) => Promise<ExecuteAgentData>;
|
|
2527
2570
|
listAgents?: (userId: string) => Promise<Array<{
|
|
2528
2571
|
id: string;
|
|
2529
2572
|
name: string;
|
|
@@ -2563,6 +2606,8 @@ export interface IWorkflowExecuteAdditionalData {
|
|
|
2563
2606
|
* data consistently across the entire execution tree.
|
|
2564
2607
|
*/
|
|
2565
2608
|
rootExecutionMode?: WorkflowExecuteMode;
|
|
2609
|
+
/** Parent evaluation TestRun.id, exposed to expressions as `$evaluation.runId`. */
|
|
2610
|
+
evaluationRunId?: string;
|
|
2566
2611
|
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>>;
|
|
2567
2612
|
getRunnerStatus?(taskType: string): {
|
|
2568
2613
|
available: true;
|