@n8n/api-types 1.32.2 → 1.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-sse.d.ts +7 -0
- package/dist/agents/agent-config-lifecycle.d.ts +6 -0
- package/dist/agents/agent-config-lifecycle.js +11 -0
- package/dist/agents/agent-config-lifecycle.js.map +1 -0
- package/dist/agents/agent-config-validation.schema.d.ts +16 -16
- package/dist/agents/agent-config-validation.schema.js +1 -0
- package/dist/agents/agent-config-validation.schema.js.map +1 -1
- package/dist/agents/agent-json-config.schema.d.ts +465 -42
- package/dist/agents/agent-json-config.schema.js +29 -9
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/agent-node-tool-operations.d.ts +1 -0
- package/dist/agents/agent-node-tool-operations.js +8 -0
- package/dist/agents/agent-node-tool-operations.js.map +1 -0
- package/dist/agents/dto.js +1 -1
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/index.d.ts +2 -0
- package/dist/agents/index.js +2 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/inline-agent-config.schema.d.ts +12 -12
- package/dist/agents/inline-agent-config.schema.js +2 -2
- package/dist/agents/inline-agent-config.schema.js.map +1 -1
- package/dist/agents/sanitize-agent-json-config.js +2 -2
- package/dist/agents/sanitize-agent-json-config.js.map +1 -1
- package/dist/agents/types.d.ts +1 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/dto/credentials/create-credential.dto.d.ts +2 -0
- package/dist/dto/credentials/create-credential.dto.js +1 -0
- package/dist/dto/credentials/create-credential.dto.js.map +1 -1
- package/dist/dto/index.d.ts +10 -1
- package/dist/dto/index.js +23 -4
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/oidc/config.dto.d.ts +41 -0
- package/dist/dto/oidc/config.dto.js +13 -1
- package/dist/dto/oidc/config.dto.js.map +1 -1
- package/dist/dto/otel/{test-otel-connection.dto.d.ts → test-otel-trace.dto.d.ts} +2 -2
- package/dist/dto/otel/{test-otel-connection.dto.js → test-otel-trace.dto.js} +4 -4
- package/dist/dto/otel/test-otel-trace.dto.js.map +1 -0
- package/dist/dto/packages/import-package-request.dto.d.ts +14 -10
- package/dist/dto/packages/import-package-request.dto.js +14 -21
- package/dist/dto/packages/import-package-request.dto.js.map +1 -1
- package/dist/dto/roles/role-delete-query.dto.d.ts +8 -0
- package/dist/dto/roles/role-delete-query.dto.js +11 -0
- package/dist/dto/roles/role-delete-query.dto.js.map +1 -0
- package/dist/dto/workflow-history/list-workflow-history-query.dto.d.ts +13 -0
- package/dist/dto/workflow-history/list-workflow-history-query.dto.js +13 -0
- package/dist/dto/workflow-history/list-workflow-history-query.dto.js.map +1 -0
- package/dist/dto/workflow-history/workflow-history-list-item.dto.d.ts +51 -0
- package/dist/dto/workflow-history/workflow-history-list-item.dto.js +19 -0
- package/dist/dto/workflow-history/workflow-history-list-item.dto.js.map +1 -0
- package/dist/dto/workflow-history/workflow-version-history-public.dto.d.ts +70 -0
- package/dist/dto/workflow-history/workflow-version-history-public.dto.js +16 -0
- package/dist/dto/workflow-history/workflow-version-history-public.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.d.ts +27 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js +20 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.d.ts +8 -0
- package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.js +11 -0
- package/dist/dto/workflow-reviews/get-eligible-reviewers-query.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.d.ts +31 -0
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js +14 -0
- package/dist/dto/workflow-reviews/list-workflow-review-inbox.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.d.ts +14 -0
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.js +15 -0
- package/dist/dto/workflow-reviews/list-workflow-review-requests-query.dto.js.map +1 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.d.ts +10 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js +12 -0
- package/dist/dto/workflow-reviews/update-workflow-review-request-version.dto.js.map +1 -0
- package/dist/frontend-settings.d.ts +2 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.js +22 -6
- package/dist/index.js.map +1 -1
- package/dist/push/index.d.ts +2 -1
- package/dist/push/workflow-review.d.ts +7 -0
- package/dist/push/workflow-review.js +3 -0
- package/dist/push/workflow-review.js.map +1 -0
- package/dist/schemas/agent-evals.schema.d.ts +1 -0
- package/dist/schemas/agent-evals.schema.js +5 -0
- package/dist/schemas/agent-evals.schema.js.map +1 -0
- package/dist/schemas/eval-collections.schema.d.ts +10 -1
- package/dist/schemas/eval-collections.schema.js +58 -4
- package/dist/schemas/eval-collections.schema.js.map +1 -1
- package/dist/schemas/eval-insights.schema.js +14 -10
- package/dist/schemas/eval-insights.schema.js.map +1 -1
- package/dist/schemas/id.schema.d.ts +2 -0
- package/dist/schemas/id.schema.js +6 -0
- package/dist/schemas/id.schema.js.map +1 -0
- package/dist/schemas/instance-ai.schema.d.ts +126 -9
- package/dist/schemas/instance-ai.schema.js +44 -12
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/mcp.schema.d.ts +1 -0
- package/dist/schemas/mcp.schema.js +2 -1
- package/dist/schemas/mcp.schema.js.map +1 -1
- package/dist/schemas/user.schema.d.ts +100 -0
- package/dist/schemas/user.schema.js +2 -0
- package/dist/schemas/user.schema.js.map +1 -1
- package/dist/workflow-review-eligible-reviewer.d.ts +10 -0
- package/dist/workflow-review-eligible-reviewer.js +3 -0
- package/dist/workflow-review-eligible-reviewer.js.map +1 -0
- package/dist/workflow-review-request-summary.d.ts +18 -0
- package/dist/workflow-review-request-summary.js +11 -0
- package/dist/workflow-review-request-summary.js.map +1 -0
- package/package.json +4 -4
- package/dist/dto/otel/test-otel-connection.dto.js.map +0 -1
package/dist/agent-sse.d.ts
CHANGED
|
@@ -70,6 +70,12 @@ export type AgentSseEvent = {
|
|
|
70
70
|
} | {
|
|
71
71
|
type: 'message';
|
|
72
72
|
message: AgentSseMessage;
|
|
73
|
+
} | {
|
|
74
|
+
type: 'warning';
|
|
75
|
+
message: string;
|
|
76
|
+
code?: string;
|
|
77
|
+
source?: 'mcp';
|
|
78
|
+
server?: string;
|
|
73
79
|
} | {
|
|
74
80
|
type: 'error';
|
|
75
81
|
message: string;
|
|
@@ -78,4 +84,5 @@ export type AgentSseEvent = {
|
|
|
78
84
|
} | {
|
|
79
85
|
type: 'done';
|
|
80
86
|
sessionId?: string;
|
|
87
|
+
executionId?: string;
|
|
81
88
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isDraftAgentConfig = isDraftAgentConfig;
|
|
4
|
+
exports.isDraftIntegration = isDraftIntegration;
|
|
5
|
+
function isDraftAgentConfig(config) {
|
|
6
|
+
return typeof config?.model !== 'string' || config.model.trim() === '';
|
|
7
|
+
}
|
|
8
|
+
function isDraftIntegration(integration) {
|
|
9
|
+
return integration.credentialId.trim() === '';
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=agent-config-lifecycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-config-lifecycle.js","sourceRoot":"","sources":["../../src/agents/agent-config-lifecycle.ts"],"names":[],"mappings":";;;;AAOA,4BAAmC,MAA6C;IAC/E,OAAO,OAAO,MAAM,EAAE,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AACxE,CAAC;AAGD,4BAAmC,WAAqC;IACvE,OAAO,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC/C,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const agentCapabilityKindSchema: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent"]>;
|
|
2
|
+
export declare const agentCapabilityKindSchema: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent", "vectorStore"]>;
|
|
3
3
|
export type AgentCapabilityKind = z.infer<typeof agentCapabilityKindSchema>;
|
|
4
4
|
export declare const agentConfigValidationIssueCodeSchema: z.ZodEnum<["missing_required", "invalid_value", "missing_credential", "invalid_credential", "incompatible_credential", "missing_reference", "incompatible_reference"]>;
|
|
5
5
|
export type AgentConfigValidationIssueCode = z.infer<typeof agentConfigValidationIssueCodeSchema>;
|
|
6
6
|
export declare const agentConfigValidationCapabilityRefSchema: z.ZodObject<{
|
|
7
|
-
kind: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent"]>;
|
|
7
|
+
kind: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent", "vectorStore"]>;
|
|
8
8
|
id: z.ZodOptional<z.ZodString>;
|
|
9
9
|
index: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
toolType: z.ZodOptional<z.ZodEnum<["custom", "workflow", "node"]>>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
12
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
13
13
|
id?: string | undefined;
|
|
14
14
|
index?: number | undefined;
|
|
15
15
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
16
16
|
}, {
|
|
17
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
17
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
18
18
|
id?: string | undefined;
|
|
19
19
|
index?: number | undefined;
|
|
20
20
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -24,17 +24,17 @@ export declare const agentConfigValidationIssueSchema: z.ZodObject<{
|
|
|
24
24
|
code: z.ZodEnum<["missing_required", "invalid_value", "missing_credential", "invalid_credential", "incompatible_credential", "missing_reference", "incompatible_reference"]>;
|
|
25
25
|
path: z.ZodString;
|
|
26
26
|
capability: z.ZodObject<{
|
|
27
|
-
kind: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent"]>;
|
|
27
|
+
kind: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent", "vectorStore"]>;
|
|
28
28
|
id: z.ZodOptional<z.ZodString>;
|
|
29
29
|
index: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
toolType: z.ZodOptional<z.ZodEnum<["custom", "workflow", "node"]>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
32
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
33
33
|
id?: string | undefined;
|
|
34
34
|
index?: number | undefined;
|
|
35
35
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
37
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
38
38
|
id?: string | undefined;
|
|
39
39
|
index?: number | undefined;
|
|
40
40
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -43,7 +43,7 @@ export declare const agentConfigValidationIssueSchema: z.ZodObject<{
|
|
|
43
43
|
code: "incompatible_credential" | "incompatible_reference" | "invalid_credential" | "invalid_value" | "missing_credential" | "missing_reference" | "missing_required";
|
|
44
44
|
path: string;
|
|
45
45
|
capability: {
|
|
46
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
46
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
47
47
|
id?: string | undefined;
|
|
48
48
|
index?: number | undefined;
|
|
49
49
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const agentConfigValidationIssueSchema: z.ZodObject<{
|
|
|
52
52
|
code: "incompatible_credential" | "incompatible_reference" | "invalid_credential" | "invalid_value" | "missing_credential" | "missing_reference" | "missing_required";
|
|
53
53
|
path: string;
|
|
54
54
|
capability: {
|
|
55
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
55
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
56
56
|
id?: string | undefined;
|
|
57
57
|
index?: number | undefined;
|
|
58
58
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -65,17 +65,17 @@ export declare const agentConfigValidationResponseSchema: z.ZodObject<{
|
|
|
65
65
|
code: z.ZodEnum<["missing_required", "invalid_value", "missing_credential", "invalid_credential", "incompatible_credential", "missing_reference", "incompatible_reference"]>;
|
|
66
66
|
path: z.ZodString;
|
|
67
67
|
capability: z.ZodObject<{
|
|
68
|
-
kind: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent"]>;
|
|
68
|
+
kind: z.ZodEnum<["agent", "channel", "tool", "mcpServer", "skill", "task", "subAgent", "vectorStore"]>;
|
|
69
69
|
id: z.ZodOptional<z.ZodString>;
|
|
70
70
|
index: z.ZodOptional<z.ZodNumber>;
|
|
71
71
|
toolType: z.ZodOptional<z.ZodEnum<["custom", "workflow", "node"]>>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
73
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
74
74
|
id?: string | undefined;
|
|
75
75
|
index?: number | undefined;
|
|
76
76
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
77
77
|
}, {
|
|
78
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
78
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
79
79
|
id?: string | undefined;
|
|
80
80
|
index?: number | undefined;
|
|
81
81
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -84,7 +84,7 @@ export declare const agentConfigValidationResponseSchema: z.ZodObject<{
|
|
|
84
84
|
code: "incompatible_credential" | "incompatible_reference" | "invalid_credential" | "invalid_value" | "missing_credential" | "missing_reference" | "missing_required";
|
|
85
85
|
path: string;
|
|
86
86
|
capability: {
|
|
87
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
87
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
88
88
|
id?: string | undefined;
|
|
89
89
|
index?: number | undefined;
|
|
90
90
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -93,7 +93,7 @@ export declare const agentConfigValidationResponseSchema: z.ZodObject<{
|
|
|
93
93
|
code: "incompatible_credential" | "incompatible_reference" | "invalid_credential" | "invalid_value" | "missing_credential" | "missing_reference" | "missing_required";
|
|
94
94
|
path: string;
|
|
95
95
|
capability: {
|
|
96
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
96
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
97
97
|
id?: string | undefined;
|
|
98
98
|
index?: number | undefined;
|
|
99
99
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -105,7 +105,7 @@ export declare const agentConfigValidationResponseSchema: z.ZodObject<{
|
|
|
105
105
|
code: "incompatible_credential" | "incompatible_reference" | "invalid_credential" | "invalid_value" | "missing_credential" | "missing_reference" | "missing_required";
|
|
106
106
|
path: string;
|
|
107
107
|
capability: {
|
|
108
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
108
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
109
109
|
id?: string | undefined;
|
|
110
110
|
index?: number | undefined;
|
|
111
111
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -117,7 +117,7 @@ export declare const agentConfigValidationResponseSchema: z.ZodObject<{
|
|
|
117
117
|
code: "incompatible_credential" | "incompatible_reference" | "invalid_credential" | "invalid_value" | "missing_credential" | "missing_reference" | "missing_required";
|
|
118
118
|
path: string;
|
|
119
119
|
capability: {
|
|
120
|
-
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool";
|
|
120
|
+
kind: "agent" | "channel" | "mcpServer" | "skill" | "subAgent" | "task" | "tool" | "vectorStore";
|
|
121
121
|
id?: string | undefined;
|
|
122
122
|
index?: number | undefined;
|
|
123
123
|
toolType?: "custom" | "node" | "workflow" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-config-validation.schema.js","sourceRoot":"","sources":["../../src/agents/agent-config-validation.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAQX,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,SAAS;IACT,MAAM;IACN,WAAW;IACX,OAAO;IACP,MAAM;IACN,UAAU;
|
|
1
|
+
{"version":3,"file":"agent-config-validation.schema.js","sourceRoot":"","sources":["../../src/agents/agent-config-validation.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAQX,QAAA,yBAAyB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,SAAS;IACT,MAAM;IACN,WAAW;IACX,OAAO;IACP,MAAM;IACN,UAAU;IACV,aAAa;CACb,CAAC,CAAC;AAIU,QAAA,oCAAoC,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1D,kBAAkB;IAClB,eAAe;IACf,oBAAoB;IACpB,oBAAoB;IACpB,yBAAyB;IACzB,mBAAmB;IACnB,wBAAwB;CACxB,CAAC,CAAC;AAGU,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAChE,IAAI,EAAE,QAAA,yBAAyB;IAE/B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAEzC,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC;AAKU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,IAAI,EAAE,QAAA,oCAAoC;IAE1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,QAAA,wCAAwC;CACpD,CAAC,CAAC;AAGU,QAAA,mCAAmC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACpC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,QAAA,gCAAgC,CAAC;CACjD,CAAC,CAAC"}
|