@n8n/api-types 1.25.2 → 1.26.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-builder-interactive.d.ts +27 -6
- package/dist/agent-builder-interactive.js +8 -2
- package/dist/agent-builder-interactive.js.map +1 -1
- package/dist/agent-builder-tool-node-types.d.ts +2 -0
- package/dist/agent-builder-tool-node-types.js +15 -0
- package/dist/agent-builder-tool-node-types.js.map +1 -0
- package/dist/agent-sse.d.ts +8 -0
- package/dist/agents/agent-integration.schema.d.ts +54 -1
- package/dist/agents/agent-integration.schema.js +18 -1
- package/dist/agents/agent-integration.schema.js.map +1 -1
- package/dist/agents/agent-json-config.schema.d.ts +635 -425
- package/dist/agents/agent-json-config.schema.js +39 -16
- package/dist/agents/agent-json-config.schema.js.map +1 -1
- package/dist/agents/dto.d.ts +23 -0
- package/dist/agents/dto.js +8 -1
- package/dist/agents/dto.js.map +1 -1
- package/dist/agents/index.d.ts +5 -1
- package/dist/agents/index.js +9 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-providers.d.ts +3 -0
- package/dist/agents/model-providers.js +24 -0
- package/dist/agents/model-providers.js.map +1 -0
- package/dist/agents/sanitize-agent-json-config.d.ts +1 -0
- package/dist/agents/sanitize-agent-json-config.js +154 -0
- package/dist/agents/sanitize-agent-json-config.js.map +1 -0
- package/dist/agents/sub-agent.schema.d.ts +27 -0
- package/dist/agents/sub-agent.schema.js +7 -0
- package/dist/agents/sub-agent.schema.js.map +1 -0
- package/dist/agents/types.d.ts +3 -0
- package/dist/agents/types.js.map +1 -1
- package/dist/api-keys.d.ts +16 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/chat-hub.d.ts +25 -25
- package/dist/dto/ai/ai-ask-request.dto.d.ts +11 -11
- package/dist/dto/ai/ai-build-request.dto.d.ts +0 -12
- package/dist/dto/ai/ai-build-request.dto.js +0 -2
- package/dist/dto/ai/ai-build-request.dto.js.map +1 -1
- package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +19 -0
- package/dist/dto/api-keys/list-api-keys-query.dto.js +25 -0
- package/dist/dto/api-keys/list-api-keys-query.dto.js.map +1 -0
- package/dist/dto/api-keys/update-api-key-request.dto.js +3 -1
- package/dist/dto/api-keys/update-api-key-request.dto.js.map +1 -1
- package/dist/dto/data-table/list-data-table-query.dto.d.ts +6 -6
- package/dist/dto/evaluations/evaluation-config.dto.d.ts +720 -100
- package/dist/dto/evaluations/evaluation-config.dto.js +37 -2
- package/dist/dto/evaluations/evaluation-config.dto.js.map +1 -1
- package/dist/dto/evaluations/evaluation-error-code.d.ts +1 -0
- package/dist/dto/evaluations/evaluation-error-code.js +1 -0
- package/dist/dto/evaluations/evaluation-error-code.js.map +1 -1
- package/dist/dto/folders/list-folder-query.dto.d.ts +3 -3
- package/dist/dto/index.d.ts +3 -0
- package/dist/dto/index.js +11 -3
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.d.ts +11 -0
- package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.js +12 -0
- package/dist/dto/instance-ai/instance-ai-mcp-create-connection-request.dto.js.map +1 -0
- package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.d.ts +13 -0
- package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.js +13 -0
- package/dist/dto/instance-ai/instance-ai-mcp-update-connection-request.dto.js.map +1 -0
- package/dist/dto/log-streaming/create-destination.dto.d.ts +96 -96
- package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
- package/dist/dto/oidc/config.dto.d.ts +3 -1
- package/dist/dto/oidc/config.dto.js +1 -0
- package/dist/dto/oidc/config.dto.js.map +1 -1
- package/dist/dto/owner/owner-setup-request.dto.d.ts +1 -1
- package/dist/dto/packages/import-package-request.dto.d.ts +7 -1
- package/dist/dto/packages/import-package-request.dto.js +10 -1
- package/dist/dto/packages/import-package-request.dto.js.map +1 -1
- package/dist/dto/project/update-project.dto.js +1 -1
- package/dist/dto/project/update-project.dto.js.map +1 -1
- package/dist/dto/roles/role-project-members-response.dto.d.ts +5 -5
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +6 -6
- package/dist/dto/user/user-update-request.dto.js +2 -2
- package/dist/dto/user/user-update-request.dto.js.map +1 -1
- package/dist/dto/user/users-list-filter.dto.d.ts +3 -3
- package/dist/dto/workflows/base-workflow.dto.d.ts +9 -9
- package/dist/dto/workflows/base-workflow.dto.js +4 -4
- package/dist/dto/workflows/base-workflow.dto.js.map +1 -1
- package/dist/dto/workflows/create-workflow.dto.d.ts +9 -9
- package/dist/dto/workflows/update-workflow.dto.d.ts +9 -9
- package/dist/frontend-settings.d.ts +4 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/instance-registry-types.d.ts +22 -22
- package/dist/redaction-enforcement.d.ts +2 -16
- package/dist/redaction-enforcement.js +2 -12
- package/dist/redaction-enforcement.js.map +1 -1
- package/dist/schemas/breaking-changes.schema.d.ts +92 -92
- package/dist/schemas/credential-resolver.schema.d.ts +12 -12
- package/dist/schemas/credential-response.schema.d.ts +2 -2
- package/dist/schemas/data-table.schema.d.ts +2 -2
- package/dist/schemas/encryption-key.schema.d.ts +6 -6
- package/dist/schemas/evaluations.schema.d.ts +10 -0
- package/dist/schemas/evaluations.schema.js +2 -0
- package/dist/schemas/evaluations.schema.js.map +1 -1
- package/dist/schemas/instance-ai.schema.d.ts +332 -279
- package/dist/schemas/instance-ai.schema.js +12 -13
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/mcp-registry.schema.d.ts +29 -0
- package/dist/schemas/mcp-registry.schema.js +3 -0
- package/dist/schemas/mcp-registry.schema.js.map +1 -0
- package/dist/schemas/secrets-provider.schema.d.ts +12 -12
- package/dist/schemas/source-controlled-file.schema.d.ts +4 -4
- package/dist/schemas/usage.schema.d.ts +14 -14
- package/dist/schemas/user.schema.d.ts +18 -18
- package/package.json +7 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { McpRegistryServerIconResponse } from './mcp-registry.schema';
|
|
2
3
|
export declare const UNLIMITED_CREDITS = -1;
|
|
3
4
|
export type RunId = string & {
|
|
4
5
|
readonly __brand: 'RunId';
|
|
@@ -60,11 +61,11 @@ export declare const runFinishPayloadSchema: z.ZodObject<{
|
|
|
60
61
|
reason: z.ZodOptional<z.ZodString>;
|
|
61
62
|
archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
62
63
|
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
status: "
|
|
64
|
+
status: "cancelled" | "error" | "completed";
|
|
64
65
|
reason?: string | undefined;
|
|
65
66
|
archivedWorkflowIds?: string[] | undefined;
|
|
66
67
|
}, {
|
|
67
|
-
status: "
|
|
68
|
+
status: "cancelled" | "error" | "completed";
|
|
68
69
|
reason?: string | undefined;
|
|
69
70
|
archivedWorkflowIds?: string[] | undefined;
|
|
70
71
|
}>;
|
|
@@ -74,12 +75,12 @@ export declare const agentSpawnedTargetResourceSchema: z.ZodObject<{
|
|
|
74
75
|
name: z.ZodOptional<z.ZodString>;
|
|
75
76
|
}, "strip", z.ZodTypeAny, {
|
|
76
77
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
77
|
-
id?: string | undefined;
|
|
78
78
|
name?: string | undefined;
|
|
79
|
+
id?: string | undefined;
|
|
79
80
|
}, {
|
|
80
81
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
81
|
-
id?: string | undefined;
|
|
82
82
|
name?: string | undefined;
|
|
83
|
+
id?: string | undefined;
|
|
83
84
|
}>;
|
|
84
85
|
export type InstanceAiTargetResource = z.infer<typeof agentSpawnedTargetResourceSchema>;
|
|
85
86
|
export declare const agentSpawnedPayloadSchema: z.ZodObject<{
|
|
@@ -97,40 +98,40 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
|
|
|
97
98
|
name: z.ZodOptional<z.ZodString>;
|
|
98
99
|
}, "strip", z.ZodTypeAny, {
|
|
99
100
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
100
|
-
id?: string | undefined;
|
|
101
101
|
name?: string | undefined;
|
|
102
|
+
id?: string | undefined;
|
|
102
103
|
}, {
|
|
103
104
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
104
|
-
id?: string | undefined;
|
|
105
105
|
name?: string | undefined;
|
|
106
|
+
id?: string | undefined;
|
|
106
107
|
}>>;
|
|
107
108
|
}, "strip", z.ZodTypeAny, {
|
|
108
109
|
tools: string[];
|
|
109
110
|
role: string;
|
|
110
111
|
parentId: string;
|
|
111
112
|
title?: string | undefined;
|
|
112
|
-
taskId?: string | undefined;
|
|
113
113
|
kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
|
|
114
|
+
taskId?: string | undefined;
|
|
114
115
|
subtitle?: string | undefined;
|
|
115
116
|
goal?: string | undefined;
|
|
116
117
|
targetResource?: {
|
|
117
118
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
118
|
-
id?: string | undefined;
|
|
119
119
|
name?: string | undefined;
|
|
120
|
+
id?: string | undefined;
|
|
120
121
|
} | undefined;
|
|
121
122
|
}, {
|
|
122
123
|
tools: string[];
|
|
123
124
|
role: string;
|
|
124
125
|
parentId: string;
|
|
125
126
|
title?: string | undefined;
|
|
126
|
-
taskId?: string | undefined;
|
|
127
127
|
kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
|
|
128
|
+
taskId?: string | undefined;
|
|
128
129
|
subtitle?: string | undefined;
|
|
129
130
|
goal?: string | undefined;
|
|
130
131
|
targetResource?: {
|
|
131
132
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
132
|
-
id?: string | undefined;
|
|
133
133
|
name?: string | undefined;
|
|
134
|
+
id?: string | undefined;
|
|
134
135
|
} | undefined;
|
|
135
136
|
}>;
|
|
136
137
|
export declare const agentCompletedPayloadSchema: z.ZodObject<{
|
|
@@ -200,27 +201,27 @@ export declare const credentialRequestSchema: z.ZodObject<{
|
|
|
200
201
|
id: z.ZodString;
|
|
201
202
|
name: z.ZodString;
|
|
202
203
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
id: string;
|
|
204
204
|
name: string;
|
|
205
|
-
}, {
|
|
206
205
|
id: string;
|
|
206
|
+
}, {
|
|
207
207
|
name: string;
|
|
208
|
+
id: string;
|
|
208
209
|
}>, "many">;
|
|
209
210
|
suggestedName: z.ZodOptional<z.ZodString>;
|
|
210
211
|
}, "strip", z.ZodTypeAny, {
|
|
211
212
|
credentialType: string;
|
|
212
213
|
reason: string;
|
|
213
214
|
existingCredentials: {
|
|
214
|
-
id: string;
|
|
215
215
|
name: string;
|
|
216
|
+
id: string;
|
|
216
217
|
}[];
|
|
217
218
|
suggestedName?: string | undefined;
|
|
218
219
|
}, {
|
|
219
220
|
credentialType: string;
|
|
220
221
|
reason: string;
|
|
221
222
|
existingCredentials: {
|
|
222
|
-
id: string;
|
|
223
223
|
name: string;
|
|
224
|
+
id: string;
|
|
224
225
|
}[];
|
|
225
226
|
suggestedName?: string | undefined;
|
|
226
227
|
}>;
|
|
@@ -243,35 +244,35 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
243
244
|
id: z.ZodString;
|
|
244
245
|
name: z.ZodString;
|
|
245
246
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
id: string;
|
|
247
247
|
name: string;
|
|
248
|
-
}, {
|
|
249
248
|
id: string;
|
|
249
|
+
}, {
|
|
250
250
|
name: string;
|
|
251
|
+
id: string;
|
|
251
252
|
}>>>;
|
|
252
253
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
253
254
|
id: z.ZodString;
|
|
254
255
|
}, "strip", z.ZodTypeAny, {
|
|
255
256
|
type: string;
|
|
256
|
-
id: string;
|
|
257
257
|
name: string;
|
|
258
|
+
id: string;
|
|
258
259
|
typeVersion: number;
|
|
259
260
|
parameters: Record<string, unknown>;
|
|
260
261
|
position: [number, number];
|
|
261
262
|
credentials?: Record<string, {
|
|
262
|
-
id: string;
|
|
263
263
|
name: string;
|
|
264
|
+
id: string;
|
|
264
265
|
}> | undefined;
|
|
265
266
|
}, {
|
|
266
267
|
type: string;
|
|
267
|
-
id: string;
|
|
268
268
|
name: string;
|
|
269
|
+
id: string;
|
|
269
270
|
typeVersion: number;
|
|
270
271
|
parameters: Record<string, unknown>;
|
|
271
272
|
position: [number, number];
|
|
272
273
|
credentials?: Record<string, {
|
|
273
|
-
id: string;
|
|
274
274
|
name: string;
|
|
275
|
+
id: string;
|
|
275
276
|
}> | undefined;
|
|
276
277
|
}>;
|
|
277
278
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
@@ -279,11 +280,11 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
279
280
|
id: z.ZodString;
|
|
280
281
|
name: z.ZodString;
|
|
281
282
|
}, "strip", z.ZodTypeAny, {
|
|
282
|
-
id: string;
|
|
283
283
|
name: string;
|
|
284
|
-
}, {
|
|
285
284
|
id: string;
|
|
285
|
+
}, {
|
|
286
286
|
name: string;
|
|
287
|
+
id: string;
|
|
287
288
|
}>, "many">>;
|
|
288
289
|
isTrigger: z.ZodBoolean;
|
|
289
290
|
isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -303,10 +304,10 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
303
304
|
status: z.ZodEnum<["success", "error", "listening"]>;
|
|
304
305
|
error: z.ZodOptional<z.ZodString>;
|
|
305
306
|
}, "strip", z.ZodTypeAny, {
|
|
306
|
-
status: "
|
|
307
|
+
status: "success" | "error" | "listening";
|
|
307
308
|
error?: string | undefined;
|
|
308
309
|
}, {
|
|
309
|
-
status: "
|
|
310
|
+
status: "success" | "error" | "listening";
|
|
310
311
|
error?: string | undefined;
|
|
311
312
|
}>>;
|
|
312
313
|
parameterIssues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -355,33 +356,33 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
355
356
|
id: z.ZodString;
|
|
356
357
|
}, "strip", z.ZodTypeAny, {
|
|
357
358
|
type: string;
|
|
358
|
-
id: string;
|
|
359
359
|
name: string;
|
|
360
|
+
id: string;
|
|
360
361
|
typeVersion: number;
|
|
361
362
|
}, {
|
|
362
363
|
type: string;
|
|
363
|
-
id: string;
|
|
364
364
|
name: string;
|
|
365
|
+
id: string;
|
|
365
366
|
typeVersion: number;
|
|
366
367
|
}>>;
|
|
367
368
|
}, "strip", z.ZodTypeAny, {
|
|
368
369
|
node: {
|
|
369
370
|
type: string;
|
|
370
|
-
id: string;
|
|
371
371
|
name: string;
|
|
372
|
+
id: string;
|
|
372
373
|
typeVersion: number;
|
|
373
374
|
parameters: Record<string, unknown>;
|
|
374
375
|
position: [number, number];
|
|
375
376
|
credentials?: Record<string, {
|
|
376
|
-
id: string;
|
|
377
377
|
name: string;
|
|
378
|
+
id: string;
|
|
378
379
|
}> | undefined;
|
|
379
380
|
};
|
|
380
381
|
isTrigger: boolean;
|
|
381
382
|
credentialType?: string | undefined;
|
|
382
383
|
existingCredentials?: {
|
|
383
|
-
id: string;
|
|
384
384
|
name: string;
|
|
385
|
+
id: string;
|
|
385
386
|
}[] | undefined;
|
|
386
387
|
isFirstTrigger?: boolean | undefined;
|
|
387
388
|
isTestable?: boolean | undefined;
|
|
@@ -391,7 +392,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
391
392
|
message?: string | undefined;
|
|
392
393
|
} | undefined;
|
|
393
394
|
triggerTestResult?: {
|
|
394
|
-
status: "
|
|
395
|
+
status: "success" | "error" | "listening";
|
|
395
396
|
error?: string | undefined;
|
|
396
397
|
} | undefined;
|
|
397
398
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -409,28 +410,28 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
409
410
|
needsAction?: boolean | undefined;
|
|
410
411
|
subnodeRootNode?: {
|
|
411
412
|
type: string;
|
|
412
|
-
id: string;
|
|
413
413
|
name: string;
|
|
414
|
+
id: string;
|
|
414
415
|
typeVersion: number;
|
|
415
416
|
} | undefined;
|
|
416
417
|
}, {
|
|
417
418
|
node: {
|
|
418
419
|
type: string;
|
|
419
|
-
id: string;
|
|
420
420
|
name: string;
|
|
421
|
+
id: string;
|
|
421
422
|
typeVersion: number;
|
|
422
423
|
parameters: Record<string, unknown>;
|
|
423
424
|
position: [number, number];
|
|
424
425
|
credentials?: Record<string, {
|
|
425
|
-
id: string;
|
|
426
426
|
name: string;
|
|
427
|
+
id: string;
|
|
427
428
|
}> | undefined;
|
|
428
429
|
};
|
|
429
430
|
isTrigger: boolean;
|
|
430
431
|
credentialType?: string | undefined;
|
|
431
432
|
existingCredentials?: {
|
|
432
|
-
id: string;
|
|
433
433
|
name: string;
|
|
434
|
+
id: string;
|
|
434
435
|
}[] | undefined;
|
|
435
436
|
isFirstTrigger?: boolean | undefined;
|
|
436
437
|
isTestable?: boolean | undefined;
|
|
@@ -440,7 +441,7 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
440
441
|
message?: string | undefined;
|
|
441
442
|
} | undefined;
|
|
442
443
|
triggerTestResult?: {
|
|
443
|
-
status: "
|
|
444
|
+
status: "success" | "error" | "listening";
|
|
444
445
|
error?: string | undefined;
|
|
445
446
|
} | undefined;
|
|
446
447
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -458,8 +459,8 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
|
|
|
458
459
|
needsAction?: boolean | undefined;
|
|
459
460
|
subnodeRootNode?: {
|
|
460
461
|
type: string;
|
|
461
|
-
id: string;
|
|
462
462
|
name: string;
|
|
463
|
+
id: string;
|
|
463
464
|
typeVersion: number;
|
|
464
465
|
} | undefined;
|
|
465
466
|
}>;
|
|
@@ -467,42 +468,50 @@ export type InstanceAiWorkflowSetupNode = z.infer<typeof workflowSetupNodeSchema
|
|
|
467
468
|
export declare const taskItemSchema: z.ZodObject<{
|
|
468
469
|
id: z.ZodString;
|
|
469
470
|
description: z.ZodString;
|
|
471
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
470
472
|
status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
|
|
471
473
|
}, "strip", z.ZodTypeAny, {
|
|
472
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
473
474
|
description: string;
|
|
475
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
474
476
|
id: string;
|
|
477
|
+
detail?: string | undefined;
|
|
475
478
|
}, {
|
|
476
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
477
479
|
description: string;
|
|
480
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
478
481
|
id: string;
|
|
482
|
+
detail?: string | undefined;
|
|
479
483
|
}>;
|
|
480
484
|
export type TaskItem = z.infer<typeof taskItemSchema>;
|
|
481
485
|
export declare const taskListSchema: z.ZodObject<{
|
|
482
486
|
tasks: z.ZodArray<z.ZodObject<{
|
|
483
487
|
id: z.ZodString;
|
|
484
488
|
description: z.ZodString;
|
|
489
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
485
490
|
status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
|
|
486
491
|
}, "strip", z.ZodTypeAny, {
|
|
487
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
488
492
|
description: string;
|
|
493
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
489
494
|
id: string;
|
|
495
|
+
detail?: string | undefined;
|
|
490
496
|
}, {
|
|
491
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
492
497
|
description: string;
|
|
498
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
493
499
|
id: string;
|
|
500
|
+
detail?: string | undefined;
|
|
494
501
|
}>, "many">;
|
|
495
502
|
}, "strip", z.ZodTypeAny, {
|
|
496
503
|
tasks: {
|
|
497
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
498
504
|
description: string;
|
|
505
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
499
506
|
id: string;
|
|
507
|
+
detail?: string | undefined;
|
|
500
508
|
}[];
|
|
501
509
|
}, {
|
|
502
510
|
tasks: {
|
|
503
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
504
511
|
description: string;
|
|
512
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
505
513
|
id: string;
|
|
514
|
+
detail?: string | undefined;
|
|
506
515
|
}[];
|
|
507
516
|
}>;
|
|
508
517
|
export type TaskList = z.infer<typeof taskListSchema>;
|
|
@@ -514,6 +523,7 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
|
|
|
514
523
|
deps: z.ZodArray<z.ZodString, "many">;
|
|
515
524
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
516
525
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
526
|
+
isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
517
527
|
}, "strip", z.ZodTypeAny, {
|
|
518
528
|
id: string;
|
|
519
529
|
title: string;
|
|
@@ -522,6 +532,7 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
|
|
|
522
532
|
deps: string[];
|
|
523
533
|
tools?: string[] | undefined;
|
|
524
534
|
workflowId?: string | undefined;
|
|
535
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
525
536
|
}, {
|
|
526
537
|
id: string;
|
|
527
538
|
title: string;
|
|
@@ -530,6 +541,7 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
|
|
|
530
541
|
deps: string[];
|
|
531
542
|
tools?: string[] | undefined;
|
|
532
543
|
workflowId?: string | undefined;
|
|
544
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
533
545
|
}>;
|
|
534
546
|
export type PlannedTaskArg = z.infer<typeof plannedTaskArgSchema>;
|
|
535
547
|
export declare const GATEWAY_CONFIRMATION_REQUIRED_PREFIX = "GATEWAY_CONFIRMATION_REQUIRED::";
|
|
@@ -541,15 +553,15 @@ export declare const gatewayConfirmationRequiredWirePayloadSchema: z.ZodObject<{
|
|
|
541
553
|
description: z.ZodString;
|
|
542
554
|
options: z.ZodArray<z.ZodString, "many">;
|
|
543
555
|
}, "strip", z.ZodTypeAny, {
|
|
544
|
-
options: string[];
|
|
545
556
|
description: string;
|
|
546
|
-
|
|
557
|
+
options: string[];
|
|
547
558
|
toolGroup: string;
|
|
559
|
+
resource: string;
|
|
548
560
|
}, {
|
|
549
|
-
options: string[];
|
|
550
561
|
description: string;
|
|
551
|
-
|
|
562
|
+
options: string[];
|
|
552
563
|
toolGroup: string;
|
|
564
|
+
resource: string;
|
|
553
565
|
}>;
|
|
554
566
|
export type GatewayConfirmationRequiredWirePayload = z.infer<typeof gatewayConfirmationRequiredWirePayloadSchema>;
|
|
555
567
|
export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
|
|
@@ -559,15 +571,15 @@ export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
|
|
|
559
571
|
} & {
|
|
560
572
|
options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
|
|
561
573
|
}, "strip", z.ZodTypeAny, {
|
|
562
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
563
574
|
description: string;
|
|
564
|
-
|
|
575
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
565
576
|
toolGroup: string;
|
|
577
|
+
resource: string;
|
|
566
578
|
}, {
|
|
567
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
568
579
|
description: string;
|
|
569
|
-
|
|
580
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
570
581
|
toolGroup: string;
|
|
582
|
+
resource: string;
|
|
571
583
|
}>;
|
|
572
584
|
export type GatewayConfirmationRequiredPayload = z.infer<typeof gatewayConfirmationRequiredPayloadSchema>;
|
|
573
585
|
export declare const confirmationInputTypeSchema: z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision", "continue"]>;
|
|
@@ -587,27 +599,27 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
587
599
|
id: z.ZodString;
|
|
588
600
|
name: z.ZodString;
|
|
589
601
|
}, "strip", z.ZodTypeAny, {
|
|
590
|
-
id: string;
|
|
591
602
|
name: string;
|
|
592
|
-
}, {
|
|
593
603
|
id: string;
|
|
604
|
+
}, {
|
|
594
605
|
name: string;
|
|
606
|
+
id: string;
|
|
595
607
|
}>, "many">;
|
|
596
608
|
suggestedName: z.ZodOptional<z.ZodString>;
|
|
597
609
|
}, "strip", z.ZodTypeAny, {
|
|
598
610
|
credentialType: string;
|
|
599
611
|
reason: string;
|
|
600
612
|
existingCredentials: {
|
|
601
|
-
id: string;
|
|
602
613
|
name: string;
|
|
614
|
+
id: string;
|
|
603
615
|
}[];
|
|
604
616
|
suggestedName?: string | undefined;
|
|
605
617
|
}, {
|
|
606
618
|
credentialType: string;
|
|
607
619
|
reason: string;
|
|
608
620
|
existingCredentials: {
|
|
609
|
-
id: string;
|
|
610
621
|
name: string;
|
|
622
|
+
id: string;
|
|
611
623
|
}[];
|
|
612
624
|
suggestedName?: string | undefined;
|
|
613
625
|
}>, "many">>;
|
|
@@ -634,27 +646,32 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
634
646
|
tasks: z.ZodArray<z.ZodObject<{
|
|
635
647
|
id: z.ZodString;
|
|
636
648
|
description: z.ZodString;
|
|
649
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
637
650
|
status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
|
|
638
651
|
}, "strip", z.ZodTypeAny, {
|
|
639
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
640
652
|
description: string;
|
|
653
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
641
654
|
id: string;
|
|
655
|
+
detail?: string | undefined;
|
|
642
656
|
}, {
|
|
643
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
644
657
|
description: string;
|
|
658
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
645
659
|
id: string;
|
|
660
|
+
detail?: string | undefined;
|
|
646
661
|
}>, "many">;
|
|
647
662
|
}, "strip", z.ZodTypeAny, {
|
|
648
663
|
tasks: {
|
|
649
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
650
664
|
description: string;
|
|
665
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
651
666
|
id: string;
|
|
667
|
+
detail?: string | undefined;
|
|
652
668
|
}[];
|
|
653
669
|
}, {
|
|
654
670
|
tasks: {
|
|
655
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
656
671
|
description: string;
|
|
672
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
657
673
|
id: string;
|
|
674
|
+
detail?: string | undefined;
|
|
658
675
|
}[];
|
|
659
676
|
}>>;
|
|
660
677
|
planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -665,6 +682,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
665
682
|
deps: z.ZodArray<z.ZodString, "many">;
|
|
666
683
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
667
684
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
685
|
+
isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
668
686
|
}, "strip", z.ZodTypeAny, {
|
|
669
687
|
id: string;
|
|
670
688
|
title: string;
|
|
@@ -673,6 +691,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
673
691
|
deps: string[];
|
|
674
692
|
tools?: string[] | undefined;
|
|
675
693
|
workflowId?: string | undefined;
|
|
694
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
676
695
|
}, {
|
|
677
696
|
id: string;
|
|
678
697
|
title: string;
|
|
@@ -681,6 +700,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
681
700
|
deps: string[];
|
|
682
701
|
tools?: string[] | undefined;
|
|
683
702
|
workflowId?: string | undefined;
|
|
703
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
684
704
|
}>, "many">>;
|
|
685
705
|
domainAccess: z.ZodOptional<z.ZodObject<{
|
|
686
706
|
url: z.ZodString;
|
|
@@ -716,35 +736,35 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
716
736
|
id: z.ZodString;
|
|
717
737
|
name: z.ZodString;
|
|
718
738
|
}, "strip", z.ZodTypeAny, {
|
|
719
|
-
id: string;
|
|
720
739
|
name: string;
|
|
721
|
-
}, {
|
|
722
740
|
id: string;
|
|
741
|
+
}, {
|
|
723
742
|
name: string;
|
|
743
|
+
id: string;
|
|
724
744
|
}>>>;
|
|
725
745
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
726
746
|
id: z.ZodString;
|
|
727
747
|
}, "strip", z.ZodTypeAny, {
|
|
728
748
|
type: string;
|
|
729
|
-
id: string;
|
|
730
749
|
name: string;
|
|
750
|
+
id: string;
|
|
731
751
|
typeVersion: number;
|
|
732
752
|
parameters: Record<string, unknown>;
|
|
733
753
|
position: [number, number];
|
|
734
754
|
credentials?: Record<string, {
|
|
735
|
-
id: string;
|
|
736
755
|
name: string;
|
|
756
|
+
id: string;
|
|
737
757
|
}> | undefined;
|
|
738
758
|
}, {
|
|
739
759
|
type: string;
|
|
740
|
-
id: string;
|
|
741
760
|
name: string;
|
|
761
|
+
id: string;
|
|
742
762
|
typeVersion: number;
|
|
743
763
|
parameters: Record<string, unknown>;
|
|
744
764
|
position: [number, number];
|
|
745
765
|
credentials?: Record<string, {
|
|
746
|
-
id: string;
|
|
747
766
|
name: string;
|
|
767
|
+
id: string;
|
|
748
768
|
}> | undefined;
|
|
749
769
|
}>;
|
|
750
770
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
@@ -752,11 +772,11 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
752
772
|
id: z.ZodString;
|
|
753
773
|
name: z.ZodString;
|
|
754
774
|
}, "strip", z.ZodTypeAny, {
|
|
755
|
-
id: string;
|
|
756
775
|
name: string;
|
|
757
|
-
}, {
|
|
758
776
|
id: string;
|
|
777
|
+
}, {
|
|
759
778
|
name: string;
|
|
779
|
+
id: string;
|
|
760
780
|
}>, "many">>;
|
|
761
781
|
isTrigger: z.ZodBoolean;
|
|
762
782
|
isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -776,10 +796,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
776
796
|
status: z.ZodEnum<["success", "error", "listening"]>;
|
|
777
797
|
error: z.ZodOptional<z.ZodString>;
|
|
778
798
|
}, "strip", z.ZodTypeAny, {
|
|
779
|
-
status: "
|
|
799
|
+
status: "success" | "error" | "listening";
|
|
780
800
|
error?: string | undefined;
|
|
781
801
|
}, {
|
|
782
|
-
status: "
|
|
802
|
+
status: "success" | "error" | "listening";
|
|
783
803
|
error?: string | undefined;
|
|
784
804
|
}>>;
|
|
785
805
|
parameterIssues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -828,33 +848,33 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
828
848
|
id: z.ZodString;
|
|
829
849
|
}, "strip", z.ZodTypeAny, {
|
|
830
850
|
type: string;
|
|
831
|
-
id: string;
|
|
832
851
|
name: string;
|
|
852
|
+
id: string;
|
|
833
853
|
typeVersion: number;
|
|
834
854
|
}, {
|
|
835
855
|
type: string;
|
|
836
|
-
id: string;
|
|
837
856
|
name: string;
|
|
857
|
+
id: string;
|
|
838
858
|
typeVersion: number;
|
|
839
859
|
}>>;
|
|
840
860
|
}, "strip", z.ZodTypeAny, {
|
|
841
861
|
node: {
|
|
842
862
|
type: string;
|
|
843
|
-
id: string;
|
|
844
863
|
name: string;
|
|
864
|
+
id: string;
|
|
845
865
|
typeVersion: number;
|
|
846
866
|
parameters: Record<string, unknown>;
|
|
847
867
|
position: [number, number];
|
|
848
868
|
credentials?: Record<string, {
|
|
849
|
-
id: string;
|
|
850
869
|
name: string;
|
|
870
|
+
id: string;
|
|
851
871
|
}> | undefined;
|
|
852
872
|
};
|
|
853
873
|
isTrigger: boolean;
|
|
854
874
|
credentialType?: string | undefined;
|
|
855
875
|
existingCredentials?: {
|
|
856
|
-
id: string;
|
|
857
876
|
name: string;
|
|
877
|
+
id: string;
|
|
858
878
|
}[] | undefined;
|
|
859
879
|
isFirstTrigger?: boolean | undefined;
|
|
860
880
|
isTestable?: boolean | undefined;
|
|
@@ -864,7 +884,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
864
884
|
message?: string | undefined;
|
|
865
885
|
} | undefined;
|
|
866
886
|
triggerTestResult?: {
|
|
867
|
-
status: "
|
|
887
|
+
status: "success" | "error" | "listening";
|
|
868
888
|
error?: string | undefined;
|
|
869
889
|
} | undefined;
|
|
870
890
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -882,28 +902,28 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
882
902
|
needsAction?: boolean | undefined;
|
|
883
903
|
subnodeRootNode?: {
|
|
884
904
|
type: string;
|
|
885
|
-
id: string;
|
|
886
905
|
name: string;
|
|
906
|
+
id: string;
|
|
887
907
|
typeVersion: number;
|
|
888
908
|
} | undefined;
|
|
889
909
|
}, {
|
|
890
910
|
node: {
|
|
891
911
|
type: string;
|
|
892
|
-
id: string;
|
|
893
912
|
name: string;
|
|
913
|
+
id: string;
|
|
894
914
|
typeVersion: number;
|
|
895
915
|
parameters: Record<string, unknown>;
|
|
896
916
|
position: [number, number];
|
|
897
917
|
credentials?: Record<string, {
|
|
898
|
-
id: string;
|
|
899
918
|
name: string;
|
|
919
|
+
id: string;
|
|
900
920
|
}> | undefined;
|
|
901
921
|
};
|
|
902
922
|
isTrigger: boolean;
|
|
903
923
|
credentialType?: string | undefined;
|
|
904
924
|
existingCredentials?: {
|
|
905
|
-
id: string;
|
|
906
925
|
name: string;
|
|
926
|
+
id: string;
|
|
907
927
|
}[] | undefined;
|
|
908
928
|
isFirstTrigger?: boolean | undefined;
|
|
909
929
|
isTestable?: boolean | undefined;
|
|
@@ -913,7 +933,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
913
933
|
message?: string | undefined;
|
|
914
934
|
} | undefined;
|
|
915
935
|
triggerTestResult?: {
|
|
916
|
-
status: "
|
|
936
|
+
status: "success" | "error" | "listening";
|
|
917
937
|
error?: string | undefined;
|
|
918
938
|
} | undefined;
|
|
919
939
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -931,8 +951,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
931
951
|
needsAction?: boolean | undefined;
|
|
932
952
|
subnodeRootNode?: {
|
|
933
953
|
type: string;
|
|
934
|
-
id: string;
|
|
935
954
|
name: string;
|
|
955
|
+
id: string;
|
|
936
956
|
typeVersion: number;
|
|
937
957
|
} | undefined;
|
|
938
958
|
}>, "many">>;
|
|
@@ -944,28 +964,29 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
944
964
|
} & {
|
|
945
965
|
options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
|
|
946
966
|
}, "strip", z.ZodTypeAny, {
|
|
947
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
948
967
|
description: string;
|
|
949
|
-
|
|
968
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
950
969
|
toolGroup: string;
|
|
970
|
+
resource: string;
|
|
951
971
|
}, {
|
|
952
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
953
972
|
description: string;
|
|
954
|
-
|
|
973
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
955
974
|
toolGroup: string;
|
|
975
|
+
resource: string;
|
|
956
976
|
}>>;
|
|
957
977
|
}, "strip", z.ZodTypeAny, {
|
|
958
978
|
message: string;
|
|
959
979
|
toolCallId: string;
|
|
980
|
+
requestId: string;
|
|
960
981
|
toolName: string;
|
|
961
982
|
args: Record<string, unknown>;
|
|
962
|
-
|
|
963
|
-
severity: "info" | "destructive" | "warning";
|
|
983
|
+
severity: "destructive" | "warning" | "info";
|
|
964
984
|
tasks?: {
|
|
965
985
|
tasks: {
|
|
966
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
967
986
|
description: string;
|
|
987
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
968
988
|
id: string;
|
|
989
|
+
detail?: string | undefined;
|
|
969
990
|
}[];
|
|
970
991
|
} | undefined;
|
|
971
992
|
webSearch?: {
|
|
@@ -984,8 +1005,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
984
1005
|
credentialType: string;
|
|
985
1006
|
reason: string;
|
|
986
1007
|
existingCredentials: {
|
|
987
|
-
id: string;
|
|
988
1008
|
name: string;
|
|
1009
|
+
id: string;
|
|
989
1010
|
}[];
|
|
990
1011
|
suggestedName?: string | undefined;
|
|
991
1012
|
}[] | undefined;
|
|
@@ -999,6 +1020,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
999
1020
|
deps: string[];
|
|
1000
1021
|
tools?: string[] | undefined;
|
|
1001
1022
|
workflowId?: string | undefined;
|
|
1023
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
1002
1024
|
}[] | undefined;
|
|
1003
1025
|
domainAccess?: {
|
|
1004
1026
|
url: string;
|
|
@@ -1010,21 +1032,21 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1010
1032
|
setupRequests?: {
|
|
1011
1033
|
node: {
|
|
1012
1034
|
type: string;
|
|
1013
|
-
id: string;
|
|
1014
1035
|
name: string;
|
|
1036
|
+
id: string;
|
|
1015
1037
|
typeVersion: number;
|
|
1016
1038
|
parameters: Record<string, unknown>;
|
|
1017
1039
|
position: [number, number];
|
|
1018
1040
|
credentials?: Record<string, {
|
|
1019
|
-
id: string;
|
|
1020
1041
|
name: string;
|
|
1042
|
+
id: string;
|
|
1021
1043
|
}> | undefined;
|
|
1022
1044
|
};
|
|
1023
1045
|
isTrigger: boolean;
|
|
1024
1046
|
credentialType?: string | undefined;
|
|
1025
1047
|
existingCredentials?: {
|
|
1026
|
-
id: string;
|
|
1027
1048
|
name: string;
|
|
1049
|
+
id: string;
|
|
1028
1050
|
}[] | undefined;
|
|
1029
1051
|
isFirstTrigger?: boolean | undefined;
|
|
1030
1052
|
isTestable?: boolean | undefined;
|
|
@@ -1034,7 +1056,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1034
1056
|
message?: string | undefined;
|
|
1035
1057
|
} | undefined;
|
|
1036
1058
|
triggerTestResult?: {
|
|
1037
|
-
status: "
|
|
1059
|
+
status: "success" | "error" | "listening";
|
|
1038
1060
|
error?: string | undefined;
|
|
1039
1061
|
} | undefined;
|
|
1040
1062
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -1052,29 +1074,30 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1052
1074
|
needsAction?: boolean | undefined;
|
|
1053
1075
|
subnodeRootNode?: {
|
|
1054
1076
|
type: string;
|
|
1055
|
-
id: string;
|
|
1056
1077
|
name: string;
|
|
1078
|
+
id: string;
|
|
1057
1079
|
typeVersion: number;
|
|
1058
1080
|
} | undefined;
|
|
1059
1081
|
}[] | undefined;
|
|
1060
1082
|
resourceDecision?: {
|
|
1061
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
1062
1083
|
description: string;
|
|
1063
|
-
|
|
1084
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
1064
1085
|
toolGroup: string;
|
|
1086
|
+
resource: string;
|
|
1065
1087
|
} | undefined;
|
|
1066
1088
|
}, {
|
|
1067
1089
|
message: string;
|
|
1068
1090
|
toolCallId: string;
|
|
1091
|
+
requestId: string;
|
|
1069
1092
|
toolName: string;
|
|
1070
1093
|
args: Record<string, unknown>;
|
|
1071
|
-
|
|
1072
|
-
severity: "info" | "destructive" | "warning";
|
|
1094
|
+
severity: "destructive" | "warning" | "info";
|
|
1073
1095
|
tasks?: {
|
|
1074
1096
|
tasks: {
|
|
1075
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
1076
1097
|
description: string;
|
|
1098
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
1077
1099
|
id: string;
|
|
1100
|
+
detail?: string | undefined;
|
|
1078
1101
|
}[];
|
|
1079
1102
|
} | undefined;
|
|
1080
1103
|
webSearch?: {
|
|
@@ -1093,8 +1116,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1093
1116
|
credentialType: string;
|
|
1094
1117
|
reason: string;
|
|
1095
1118
|
existingCredentials: {
|
|
1096
|
-
id: string;
|
|
1097
1119
|
name: string;
|
|
1120
|
+
id: string;
|
|
1098
1121
|
}[];
|
|
1099
1122
|
suggestedName?: string | undefined;
|
|
1100
1123
|
}[] | undefined;
|
|
@@ -1108,6 +1131,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1108
1131
|
deps: string[];
|
|
1109
1132
|
tools?: string[] | undefined;
|
|
1110
1133
|
workflowId?: string | undefined;
|
|
1134
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
1111
1135
|
}[] | undefined;
|
|
1112
1136
|
domainAccess?: {
|
|
1113
1137
|
url: string;
|
|
@@ -1119,21 +1143,21 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1119
1143
|
setupRequests?: {
|
|
1120
1144
|
node: {
|
|
1121
1145
|
type: string;
|
|
1122
|
-
id: string;
|
|
1123
1146
|
name: string;
|
|
1147
|
+
id: string;
|
|
1124
1148
|
typeVersion: number;
|
|
1125
1149
|
parameters: Record<string, unknown>;
|
|
1126
1150
|
position: [number, number];
|
|
1127
1151
|
credentials?: Record<string, {
|
|
1128
|
-
id: string;
|
|
1129
1152
|
name: string;
|
|
1153
|
+
id: string;
|
|
1130
1154
|
}> | undefined;
|
|
1131
1155
|
};
|
|
1132
1156
|
isTrigger: boolean;
|
|
1133
1157
|
credentialType?: string | undefined;
|
|
1134
1158
|
existingCredentials?: {
|
|
1135
|
-
id: string;
|
|
1136
1159
|
name: string;
|
|
1160
|
+
id: string;
|
|
1137
1161
|
}[] | undefined;
|
|
1138
1162
|
isFirstTrigger?: boolean | undefined;
|
|
1139
1163
|
isTestable?: boolean | undefined;
|
|
@@ -1143,7 +1167,7 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1143
1167
|
message?: string | undefined;
|
|
1144
1168
|
} | undefined;
|
|
1145
1169
|
triggerTestResult?: {
|
|
1146
|
-
status: "
|
|
1170
|
+
status: "success" | "error" | "listening";
|
|
1147
1171
|
error?: string | undefined;
|
|
1148
1172
|
} | undefined;
|
|
1149
1173
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -1161,16 +1185,16 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
|
|
|
1161
1185
|
needsAction?: boolean | undefined;
|
|
1162
1186
|
subnodeRootNode?: {
|
|
1163
1187
|
type: string;
|
|
1164
|
-
id: string;
|
|
1165
1188
|
name: string;
|
|
1189
|
+
id: string;
|
|
1166
1190
|
typeVersion: number;
|
|
1167
1191
|
} | undefined;
|
|
1168
1192
|
}[] | undefined;
|
|
1169
1193
|
resourceDecision?: {
|
|
1170
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
1171
1194
|
description: string;
|
|
1172
|
-
|
|
1195
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
1173
1196
|
toolGroup: string;
|
|
1197
|
+
resource: string;
|
|
1174
1198
|
} | undefined;
|
|
1175
1199
|
}>;
|
|
1176
1200
|
export type InstanceAiConfirmationRequestPayload = z.infer<typeof confirmationRequestPayloadSchema>;
|
|
@@ -1743,27 +1767,32 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
|
|
|
1743
1767
|
tasks: z.ZodArray<z.ZodObject<{
|
|
1744
1768
|
id: z.ZodString;
|
|
1745
1769
|
description: z.ZodString;
|
|
1770
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1746
1771
|
status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
|
|
1747
1772
|
}, "strip", z.ZodTypeAny, {
|
|
1748
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
1749
1773
|
description: string;
|
|
1774
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
1750
1775
|
id: string;
|
|
1776
|
+
detail?: string | undefined;
|
|
1751
1777
|
}, {
|
|
1752
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
1753
1778
|
description: string;
|
|
1779
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
1754
1780
|
id: string;
|
|
1781
|
+
detail?: string | undefined;
|
|
1755
1782
|
}>, "many">;
|
|
1756
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1757
1784
|
tasks: {
|
|
1758
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
1759
1785
|
description: string;
|
|
1786
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
1760
1787
|
id: string;
|
|
1788
|
+
detail?: string | undefined;
|
|
1761
1789
|
}[];
|
|
1762
1790
|
}, {
|
|
1763
1791
|
tasks: {
|
|
1764
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
1765
1792
|
description: string;
|
|
1793
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
1766
1794
|
id: string;
|
|
1795
|
+
detail?: string | undefined;
|
|
1767
1796
|
}[];
|
|
1768
1797
|
}>;
|
|
1769
1798
|
planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1774,6 +1803,7 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
|
|
|
1774
1803
|
deps: z.ZodArray<z.ZodString, "many">;
|
|
1775
1804
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1776
1805
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
1806
|
+
isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
1777
1807
|
}, "strip", z.ZodTypeAny, {
|
|
1778
1808
|
id: string;
|
|
1779
1809
|
title: string;
|
|
@@ -1782,6 +1812,7 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
|
|
|
1782
1812
|
deps: string[];
|
|
1783
1813
|
tools?: string[] | undefined;
|
|
1784
1814
|
workflowId?: string | undefined;
|
|
1815
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
1785
1816
|
}, {
|
|
1786
1817
|
id: string;
|
|
1787
1818
|
title: string;
|
|
@@ -1790,13 +1821,15 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
|
|
|
1790
1821
|
deps: string[];
|
|
1791
1822
|
tools?: string[] | undefined;
|
|
1792
1823
|
workflowId?: string | undefined;
|
|
1824
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
1793
1825
|
}>, "many">>;
|
|
1794
1826
|
}, "strip", z.ZodTypeAny, {
|
|
1795
1827
|
tasks: {
|
|
1796
1828
|
tasks: {
|
|
1797
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
1798
1829
|
description: string;
|
|
1830
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
1799
1831
|
id: string;
|
|
1832
|
+
detail?: string | undefined;
|
|
1800
1833
|
}[];
|
|
1801
1834
|
};
|
|
1802
1835
|
planItems?: {
|
|
@@ -1807,13 +1840,15 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
|
|
|
1807
1840
|
deps: string[];
|
|
1808
1841
|
tools?: string[] | undefined;
|
|
1809
1842
|
workflowId?: string | undefined;
|
|
1843
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
1810
1844
|
}[] | undefined;
|
|
1811
1845
|
}, {
|
|
1812
1846
|
tasks: {
|
|
1813
1847
|
tasks: {
|
|
1814
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
1815
1848
|
description: string;
|
|
1849
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
1816
1850
|
id: string;
|
|
1851
|
+
detail?: string | undefined;
|
|
1817
1852
|
}[];
|
|
1818
1853
|
};
|
|
1819
1854
|
planItems?: {
|
|
@@ -1824,6 +1859,7 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
|
|
|
1824
1859
|
deps: string[];
|
|
1825
1860
|
tools?: string[] | undefined;
|
|
1826
1861
|
workflowId?: string | undefined;
|
|
1862
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
1827
1863
|
}[] | undefined;
|
|
1828
1864
|
}>;
|
|
1829
1865
|
export declare const threadTitleUpdatedPayloadSchema: z.ZodObject<{
|
|
@@ -1851,8 +1887,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1851
1887
|
type: z.ZodLiteral<"run-start">;
|
|
1852
1888
|
}, "strip", z.ZodTypeAny, {
|
|
1853
1889
|
type: "run-start";
|
|
1854
|
-
runId: string;
|
|
1855
1890
|
agentId: string;
|
|
1891
|
+
runId: string;
|
|
1856
1892
|
payload: {
|
|
1857
1893
|
messageId: string;
|
|
1858
1894
|
messageGroupId?: string | undefined;
|
|
@@ -1861,8 +1897,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1861
1897
|
responseId?: string | undefined;
|
|
1862
1898
|
}, {
|
|
1863
1899
|
type: "run-start";
|
|
1864
|
-
runId: string;
|
|
1865
1900
|
agentId: string;
|
|
1901
|
+
runId: string;
|
|
1866
1902
|
payload: {
|
|
1867
1903
|
messageId: string;
|
|
1868
1904
|
messageGroupId?: string | undefined;
|
|
@@ -1875,11 +1911,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1875
1911
|
reason: z.ZodOptional<z.ZodString>;
|
|
1876
1912
|
archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1877
1913
|
}, "strip", z.ZodTypeAny, {
|
|
1878
|
-
status: "
|
|
1914
|
+
status: "cancelled" | "error" | "completed";
|
|
1879
1915
|
reason?: string | undefined;
|
|
1880
1916
|
archivedWorkflowIds?: string[] | undefined;
|
|
1881
1917
|
}, {
|
|
1882
|
-
status: "
|
|
1918
|
+
status: "cancelled" | "error" | "completed";
|
|
1883
1919
|
reason?: string | undefined;
|
|
1884
1920
|
archivedWorkflowIds?: string[] | undefined;
|
|
1885
1921
|
}>;
|
|
@@ -1890,10 +1926,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1890
1926
|
type: z.ZodLiteral<"run-finish">;
|
|
1891
1927
|
}, "strip", z.ZodTypeAny, {
|
|
1892
1928
|
type: "run-finish";
|
|
1893
|
-
runId: string;
|
|
1894
1929
|
agentId: string;
|
|
1930
|
+
runId: string;
|
|
1895
1931
|
payload: {
|
|
1896
|
-
status: "
|
|
1932
|
+
status: "cancelled" | "error" | "completed";
|
|
1897
1933
|
reason?: string | undefined;
|
|
1898
1934
|
archivedWorkflowIds?: string[] | undefined;
|
|
1899
1935
|
};
|
|
@@ -1901,10 +1937,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1901
1937
|
responseId?: string | undefined;
|
|
1902
1938
|
}, {
|
|
1903
1939
|
type: "run-finish";
|
|
1904
|
-
runId: string;
|
|
1905
1940
|
agentId: string;
|
|
1941
|
+
runId: string;
|
|
1906
1942
|
payload: {
|
|
1907
|
-
status: "
|
|
1943
|
+
status: "cancelled" | "error" | "completed";
|
|
1908
1944
|
reason?: string | undefined;
|
|
1909
1945
|
archivedWorkflowIds?: string[] | undefined;
|
|
1910
1946
|
};
|
|
@@ -1926,40 +1962,40 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1926
1962
|
name: z.ZodOptional<z.ZodString>;
|
|
1927
1963
|
}, "strip", z.ZodTypeAny, {
|
|
1928
1964
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
1929
|
-
id?: string | undefined;
|
|
1930
1965
|
name?: string | undefined;
|
|
1966
|
+
id?: string | undefined;
|
|
1931
1967
|
}, {
|
|
1932
1968
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
1933
|
-
id?: string | undefined;
|
|
1934
1969
|
name?: string | undefined;
|
|
1970
|
+
id?: string | undefined;
|
|
1935
1971
|
}>>;
|
|
1936
1972
|
}, "strip", z.ZodTypeAny, {
|
|
1937
1973
|
tools: string[];
|
|
1938
1974
|
role: string;
|
|
1939
1975
|
parentId: string;
|
|
1940
1976
|
title?: string | undefined;
|
|
1941
|
-
taskId?: string | undefined;
|
|
1942
1977
|
kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
|
|
1978
|
+
taskId?: string | undefined;
|
|
1943
1979
|
subtitle?: string | undefined;
|
|
1944
1980
|
goal?: string | undefined;
|
|
1945
1981
|
targetResource?: {
|
|
1946
1982
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
1947
|
-
id?: string | undefined;
|
|
1948
1983
|
name?: string | undefined;
|
|
1984
|
+
id?: string | undefined;
|
|
1949
1985
|
} | undefined;
|
|
1950
1986
|
}, {
|
|
1951
1987
|
tools: string[];
|
|
1952
1988
|
role: string;
|
|
1953
1989
|
parentId: string;
|
|
1954
1990
|
title?: string | undefined;
|
|
1955
|
-
taskId?: string | undefined;
|
|
1956
1991
|
kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
|
|
1992
|
+
taskId?: string | undefined;
|
|
1957
1993
|
subtitle?: string | undefined;
|
|
1958
1994
|
goal?: string | undefined;
|
|
1959
1995
|
targetResource?: {
|
|
1960
1996
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
1961
|
-
id?: string | undefined;
|
|
1962
1997
|
name?: string | undefined;
|
|
1998
|
+
id?: string | undefined;
|
|
1963
1999
|
} | undefined;
|
|
1964
2000
|
}>;
|
|
1965
2001
|
runId: z.ZodString;
|
|
@@ -1969,42 +2005,42 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
1969
2005
|
type: z.ZodLiteral<"agent-spawned">;
|
|
1970
2006
|
}, "strip", z.ZodTypeAny, {
|
|
1971
2007
|
type: "agent-spawned";
|
|
1972
|
-
runId: string;
|
|
1973
2008
|
agentId: string;
|
|
2009
|
+
runId: string;
|
|
1974
2010
|
payload: {
|
|
1975
2011
|
tools: string[];
|
|
1976
2012
|
role: string;
|
|
1977
2013
|
parentId: string;
|
|
1978
2014
|
title?: string | undefined;
|
|
1979
|
-
taskId?: string | undefined;
|
|
1980
2015
|
kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
|
|
2016
|
+
taskId?: string | undefined;
|
|
1981
2017
|
subtitle?: string | undefined;
|
|
1982
2018
|
goal?: string | undefined;
|
|
1983
2019
|
targetResource?: {
|
|
1984
2020
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
1985
|
-
id?: string | undefined;
|
|
1986
2021
|
name?: string | undefined;
|
|
2022
|
+
id?: string | undefined;
|
|
1987
2023
|
} | undefined;
|
|
1988
2024
|
};
|
|
1989
2025
|
userId?: string | undefined;
|
|
1990
2026
|
responseId?: string | undefined;
|
|
1991
2027
|
}, {
|
|
1992
2028
|
type: "agent-spawned";
|
|
1993
|
-
runId: string;
|
|
1994
2029
|
agentId: string;
|
|
2030
|
+
runId: string;
|
|
1995
2031
|
payload: {
|
|
1996
2032
|
tools: string[];
|
|
1997
2033
|
role: string;
|
|
1998
2034
|
parentId: string;
|
|
1999
2035
|
title?: string | undefined;
|
|
2000
|
-
taskId?: string | undefined;
|
|
2001
2036
|
kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
|
|
2037
|
+
taskId?: string | undefined;
|
|
2002
2038
|
subtitle?: string | undefined;
|
|
2003
2039
|
goal?: string | undefined;
|
|
2004
2040
|
targetResource?: {
|
|
2005
2041
|
type: "credential" | "workflow" | "data-table" | "other";
|
|
2006
|
-
id?: string | undefined;
|
|
2007
2042
|
name?: string | undefined;
|
|
2043
|
+
id?: string | undefined;
|
|
2008
2044
|
} | undefined;
|
|
2009
2045
|
};
|
|
2010
2046
|
userId?: string | undefined;
|
|
@@ -2030,8 +2066,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2030
2066
|
type: z.ZodLiteral<"agent-completed">;
|
|
2031
2067
|
}, "strip", z.ZodTypeAny, {
|
|
2032
2068
|
type: "agent-completed";
|
|
2033
|
-
runId: string;
|
|
2034
2069
|
agentId: string;
|
|
2070
|
+
runId: string;
|
|
2035
2071
|
payload: {
|
|
2036
2072
|
role: string;
|
|
2037
2073
|
result: string;
|
|
@@ -2041,8 +2077,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2041
2077
|
responseId?: string | undefined;
|
|
2042
2078
|
}, {
|
|
2043
2079
|
type: "agent-completed";
|
|
2044
|
-
runId: string;
|
|
2045
2080
|
agentId: string;
|
|
2081
|
+
runId: string;
|
|
2046
2082
|
payload: {
|
|
2047
2083
|
role: string;
|
|
2048
2084
|
result: string;
|
|
@@ -2065,8 +2101,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2065
2101
|
type: z.ZodLiteral<"text-delta">;
|
|
2066
2102
|
}, "strip", z.ZodTypeAny, {
|
|
2067
2103
|
type: "text-delta";
|
|
2068
|
-
runId: string;
|
|
2069
2104
|
agentId: string;
|
|
2105
|
+
runId: string;
|
|
2070
2106
|
payload: {
|
|
2071
2107
|
text: string;
|
|
2072
2108
|
};
|
|
@@ -2074,8 +2110,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2074
2110
|
responseId?: string | undefined;
|
|
2075
2111
|
}, {
|
|
2076
2112
|
type: "text-delta";
|
|
2077
|
-
runId: string;
|
|
2078
2113
|
agentId: string;
|
|
2114
|
+
runId: string;
|
|
2079
2115
|
payload: {
|
|
2080
2116
|
text: string;
|
|
2081
2117
|
};
|
|
@@ -2096,8 +2132,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2096
2132
|
type: z.ZodLiteral<"reasoning-delta">;
|
|
2097
2133
|
}, "strip", z.ZodTypeAny, {
|
|
2098
2134
|
type: "reasoning-delta";
|
|
2099
|
-
runId: string;
|
|
2100
2135
|
agentId: string;
|
|
2136
|
+
runId: string;
|
|
2101
2137
|
payload: {
|
|
2102
2138
|
text: string;
|
|
2103
2139
|
};
|
|
@@ -2105,8 +2141,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2105
2141
|
responseId?: string | undefined;
|
|
2106
2142
|
}, {
|
|
2107
2143
|
type: "reasoning-delta";
|
|
2108
|
-
runId: string;
|
|
2109
2144
|
agentId: string;
|
|
2145
|
+
runId: string;
|
|
2110
2146
|
payload: {
|
|
2111
2147
|
text: string;
|
|
2112
2148
|
};
|
|
@@ -2133,8 +2169,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2133
2169
|
type: z.ZodLiteral<"tool-call">;
|
|
2134
2170
|
}, "strip", z.ZodTypeAny, {
|
|
2135
2171
|
type: "tool-call";
|
|
2136
|
-
runId: string;
|
|
2137
2172
|
agentId: string;
|
|
2173
|
+
runId: string;
|
|
2138
2174
|
payload: {
|
|
2139
2175
|
toolCallId: string;
|
|
2140
2176
|
toolName: string;
|
|
@@ -2144,8 +2180,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2144
2180
|
responseId?: string | undefined;
|
|
2145
2181
|
}, {
|
|
2146
2182
|
type: "tool-call";
|
|
2147
|
-
runId: string;
|
|
2148
2183
|
agentId: string;
|
|
2184
|
+
runId: string;
|
|
2149
2185
|
payload: {
|
|
2150
2186
|
toolCallId: string;
|
|
2151
2187
|
toolName: string;
|
|
@@ -2171,8 +2207,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2171
2207
|
type: z.ZodLiteral<"tool-result">;
|
|
2172
2208
|
}, "strip", z.ZodTypeAny, {
|
|
2173
2209
|
type: "tool-result";
|
|
2174
|
-
runId: string;
|
|
2175
2210
|
agentId: string;
|
|
2211
|
+
runId: string;
|
|
2176
2212
|
payload: {
|
|
2177
2213
|
toolCallId: string;
|
|
2178
2214
|
result?: unknown;
|
|
@@ -2181,8 +2217,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2181
2217
|
responseId?: string | undefined;
|
|
2182
2218
|
}, {
|
|
2183
2219
|
type: "tool-result";
|
|
2184
|
-
runId: string;
|
|
2185
2220
|
agentId: string;
|
|
2221
|
+
runId: string;
|
|
2186
2222
|
payload: {
|
|
2187
2223
|
toolCallId: string;
|
|
2188
2224
|
result?: unknown;
|
|
@@ -2207,8 +2243,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2207
2243
|
type: z.ZodLiteral<"tool-error">;
|
|
2208
2244
|
}, "strip", z.ZodTypeAny, {
|
|
2209
2245
|
type: "tool-error";
|
|
2210
|
-
runId: string;
|
|
2211
2246
|
agentId: string;
|
|
2247
|
+
runId: string;
|
|
2212
2248
|
payload: {
|
|
2213
2249
|
toolCallId: string;
|
|
2214
2250
|
error: string;
|
|
@@ -2217,8 +2253,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2217
2253
|
responseId?: string | undefined;
|
|
2218
2254
|
}, {
|
|
2219
2255
|
type: "tool-error";
|
|
2220
|
-
runId: string;
|
|
2221
2256
|
agentId: string;
|
|
2257
|
+
runId: string;
|
|
2222
2258
|
payload: {
|
|
2223
2259
|
toolCallId: string;
|
|
2224
2260
|
error: string;
|
|
@@ -2241,27 +2277,27 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2241
2277
|
id: z.ZodString;
|
|
2242
2278
|
name: z.ZodString;
|
|
2243
2279
|
}, "strip", z.ZodTypeAny, {
|
|
2244
|
-
id: string;
|
|
2245
2280
|
name: string;
|
|
2246
|
-
}, {
|
|
2247
2281
|
id: string;
|
|
2282
|
+
}, {
|
|
2248
2283
|
name: string;
|
|
2284
|
+
id: string;
|
|
2249
2285
|
}>, "many">;
|
|
2250
2286
|
suggestedName: z.ZodOptional<z.ZodString>;
|
|
2251
2287
|
}, "strip", z.ZodTypeAny, {
|
|
2252
2288
|
credentialType: string;
|
|
2253
2289
|
reason: string;
|
|
2254
2290
|
existingCredentials: {
|
|
2255
|
-
id: string;
|
|
2256
2291
|
name: string;
|
|
2292
|
+
id: string;
|
|
2257
2293
|
}[];
|
|
2258
2294
|
suggestedName?: string | undefined;
|
|
2259
2295
|
}, {
|
|
2260
2296
|
credentialType: string;
|
|
2261
2297
|
reason: string;
|
|
2262
2298
|
existingCredentials: {
|
|
2263
|
-
id: string;
|
|
2264
2299
|
name: string;
|
|
2300
|
+
id: string;
|
|
2265
2301
|
}[];
|
|
2266
2302
|
suggestedName?: string | undefined;
|
|
2267
2303
|
}>, "many">>;
|
|
@@ -2288,27 +2324,32 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2288
2324
|
tasks: z.ZodArray<z.ZodObject<{
|
|
2289
2325
|
id: z.ZodString;
|
|
2290
2326
|
description: z.ZodString;
|
|
2327
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2291
2328
|
status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
|
|
2292
2329
|
}, "strip", z.ZodTypeAny, {
|
|
2293
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2294
2330
|
description: string;
|
|
2331
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2295
2332
|
id: string;
|
|
2333
|
+
detail?: string | undefined;
|
|
2296
2334
|
}, {
|
|
2297
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2298
2335
|
description: string;
|
|
2336
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2299
2337
|
id: string;
|
|
2338
|
+
detail?: string | undefined;
|
|
2300
2339
|
}>, "many">;
|
|
2301
2340
|
}, "strip", z.ZodTypeAny, {
|
|
2302
2341
|
tasks: {
|
|
2303
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2304
2342
|
description: string;
|
|
2343
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2305
2344
|
id: string;
|
|
2345
|
+
detail?: string | undefined;
|
|
2306
2346
|
}[];
|
|
2307
2347
|
}, {
|
|
2308
2348
|
tasks: {
|
|
2309
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2310
2349
|
description: string;
|
|
2350
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2311
2351
|
id: string;
|
|
2352
|
+
detail?: string | undefined;
|
|
2312
2353
|
}[];
|
|
2313
2354
|
}>>;
|
|
2314
2355
|
planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2319,6 +2360,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2319
2360
|
deps: z.ZodArray<z.ZodString, "many">;
|
|
2320
2361
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2321
2362
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
2363
|
+
isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
2322
2364
|
}, "strip", z.ZodTypeAny, {
|
|
2323
2365
|
id: string;
|
|
2324
2366
|
title: string;
|
|
@@ -2327,6 +2369,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2327
2369
|
deps: string[];
|
|
2328
2370
|
tools?: string[] | undefined;
|
|
2329
2371
|
workflowId?: string | undefined;
|
|
2372
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
2330
2373
|
}, {
|
|
2331
2374
|
id: string;
|
|
2332
2375
|
title: string;
|
|
@@ -2335,6 +2378,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2335
2378
|
deps: string[];
|
|
2336
2379
|
tools?: string[] | undefined;
|
|
2337
2380
|
workflowId?: string | undefined;
|
|
2381
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
2338
2382
|
}>, "many">>;
|
|
2339
2383
|
domainAccess: z.ZodOptional<z.ZodObject<{
|
|
2340
2384
|
url: z.ZodString;
|
|
@@ -2370,35 +2414,35 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2370
2414
|
id: z.ZodString;
|
|
2371
2415
|
name: z.ZodString;
|
|
2372
2416
|
}, "strip", z.ZodTypeAny, {
|
|
2373
|
-
id: string;
|
|
2374
2417
|
name: string;
|
|
2375
|
-
}, {
|
|
2376
2418
|
id: string;
|
|
2419
|
+
}, {
|
|
2377
2420
|
name: string;
|
|
2421
|
+
id: string;
|
|
2378
2422
|
}>>>;
|
|
2379
2423
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2380
2424
|
id: z.ZodString;
|
|
2381
2425
|
}, "strip", z.ZodTypeAny, {
|
|
2382
2426
|
type: string;
|
|
2383
|
-
id: string;
|
|
2384
2427
|
name: string;
|
|
2428
|
+
id: string;
|
|
2385
2429
|
typeVersion: number;
|
|
2386
2430
|
parameters: Record<string, unknown>;
|
|
2387
2431
|
position: [number, number];
|
|
2388
2432
|
credentials?: Record<string, {
|
|
2389
|
-
id: string;
|
|
2390
2433
|
name: string;
|
|
2434
|
+
id: string;
|
|
2391
2435
|
}> | undefined;
|
|
2392
2436
|
}, {
|
|
2393
2437
|
type: string;
|
|
2394
|
-
id: string;
|
|
2395
2438
|
name: string;
|
|
2439
|
+
id: string;
|
|
2396
2440
|
typeVersion: number;
|
|
2397
2441
|
parameters: Record<string, unknown>;
|
|
2398
2442
|
position: [number, number];
|
|
2399
2443
|
credentials?: Record<string, {
|
|
2400
|
-
id: string;
|
|
2401
2444
|
name: string;
|
|
2445
|
+
id: string;
|
|
2402
2446
|
}> | undefined;
|
|
2403
2447
|
}>;
|
|
2404
2448
|
credentialType: z.ZodOptional<z.ZodString>;
|
|
@@ -2406,11 +2450,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2406
2450
|
id: z.ZodString;
|
|
2407
2451
|
name: z.ZodString;
|
|
2408
2452
|
}, "strip", z.ZodTypeAny, {
|
|
2409
|
-
id: string;
|
|
2410
2453
|
name: string;
|
|
2411
|
-
}, {
|
|
2412
2454
|
id: string;
|
|
2455
|
+
}, {
|
|
2413
2456
|
name: string;
|
|
2457
|
+
id: string;
|
|
2414
2458
|
}>, "many">>;
|
|
2415
2459
|
isTrigger: z.ZodBoolean;
|
|
2416
2460
|
isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2430,10 +2474,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2430
2474
|
status: z.ZodEnum<["success", "error", "listening"]>;
|
|
2431
2475
|
error: z.ZodOptional<z.ZodString>;
|
|
2432
2476
|
}, "strip", z.ZodTypeAny, {
|
|
2433
|
-
status: "
|
|
2477
|
+
status: "success" | "error" | "listening";
|
|
2434
2478
|
error?: string | undefined;
|
|
2435
2479
|
}, {
|
|
2436
|
-
status: "
|
|
2480
|
+
status: "success" | "error" | "listening";
|
|
2437
2481
|
error?: string | undefined;
|
|
2438
2482
|
}>>;
|
|
2439
2483
|
parameterIssues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -2482,33 +2526,33 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2482
2526
|
id: z.ZodString;
|
|
2483
2527
|
}, "strip", z.ZodTypeAny, {
|
|
2484
2528
|
type: string;
|
|
2485
|
-
id: string;
|
|
2486
2529
|
name: string;
|
|
2530
|
+
id: string;
|
|
2487
2531
|
typeVersion: number;
|
|
2488
2532
|
}, {
|
|
2489
2533
|
type: string;
|
|
2490
|
-
id: string;
|
|
2491
2534
|
name: string;
|
|
2535
|
+
id: string;
|
|
2492
2536
|
typeVersion: number;
|
|
2493
2537
|
}>>;
|
|
2494
2538
|
}, "strip", z.ZodTypeAny, {
|
|
2495
2539
|
node: {
|
|
2496
2540
|
type: string;
|
|
2497
|
-
id: string;
|
|
2498
2541
|
name: string;
|
|
2542
|
+
id: string;
|
|
2499
2543
|
typeVersion: number;
|
|
2500
2544
|
parameters: Record<string, unknown>;
|
|
2501
2545
|
position: [number, number];
|
|
2502
2546
|
credentials?: Record<string, {
|
|
2503
|
-
id: string;
|
|
2504
2547
|
name: string;
|
|
2548
|
+
id: string;
|
|
2505
2549
|
}> | undefined;
|
|
2506
2550
|
};
|
|
2507
2551
|
isTrigger: boolean;
|
|
2508
2552
|
credentialType?: string | undefined;
|
|
2509
2553
|
existingCredentials?: {
|
|
2510
|
-
id: string;
|
|
2511
2554
|
name: string;
|
|
2555
|
+
id: string;
|
|
2512
2556
|
}[] | undefined;
|
|
2513
2557
|
isFirstTrigger?: boolean | undefined;
|
|
2514
2558
|
isTestable?: boolean | undefined;
|
|
@@ -2518,7 +2562,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2518
2562
|
message?: string | undefined;
|
|
2519
2563
|
} | undefined;
|
|
2520
2564
|
triggerTestResult?: {
|
|
2521
|
-
status: "
|
|
2565
|
+
status: "success" | "error" | "listening";
|
|
2522
2566
|
error?: string | undefined;
|
|
2523
2567
|
} | undefined;
|
|
2524
2568
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -2536,28 +2580,28 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2536
2580
|
needsAction?: boolean | undefined;
|
|
2537
2581
|
subnodeRootNode?: {
|
|
2538
2582
|
type: string;
|
|
2539
|
-
id: string;
|
|
2540
2583
|
name: string;
|
|
2584
|
+
id: string;
|
|
2541
2585
|
typeVersion: number;
|
|
2542
2586
|
} | undefined;
|
|
2543
2587
|
}, {
|
|
2544
2588
|
node: {
|
|
2545
2589
|
type: string;
|
|
2546
|
-
id: string;
|
|
2547
2590
|
name: string;
|
|
2591
|
+
id: string;
|
|
2548
2592
|
typeVersion: number;
|
|
2549
2593
|
parameters: Record<string, unknown>;
|
|
2550
2594
|
position: [number, number];
|
|
2551
2595
|
credentials?: Record<string, {
|
|
2552
|
-
id: string;
|
|
2553
2596
|
name: string;
|
|
2597
|
+
id: string;
|
|
2554
2598
|
}> | undefined;
|
|
2555
2599
|
};
|
|
2556
2600
|
isTrigger: boolean;
|
|
2557
2601
|
credentialType?: string | undefined;
|
|
2558
2602
|
existingCredentials?: {
|
|
2559
|
-
id: string;
|
|
2560
2603
|
name: string;
|
|
2604
|
+
id: string;
|
|
2561
2605
|
}[] | undefined;
|
|
2562
2606
|
isFirstTrigger?: boolean | undefined;
|
|
2563
2607
|
isTestable?: boolean | undefined;
|
|
@@ -2567,7 +2611,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2567
2611
|
message?: string | undefined;
|
|
2568
2612
|
} | undefined;
|
|
2569
2613
|
triggerTestResult?: {
|
|
2570
|
-
status: "
|
|
2614
|
+
status: "success" | "error" | "listening";
|
|
2571
2615
|
error?: string | undefined;
|
|
2572
2616
|
} | undefined;
|
|
2573
2617
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -2585,8 +2629,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2585
2629
|
needsAction?: boolean | undefined;
|
|
2586
2630
|
subnodeRootNode?: {
|
|
2587
2631
|
type: string;
|
|
2588
|
-
id: string;
|
|
2589
2632
|
name: string;
|
|
2633
|
+
id: string;
|
|
2590
2634
|
typeVersion: number;
|
|
2591
2635
|
} | undefined;
|
|
2592
2636
|
}>, "many">>;
|
|
@@ -2598,28 +2642,29 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2598
2642
|
} & {
|
|
2599
2643
|
options: z.ZodArray<z.ZodEnum<["denyOnce", "allowOnce", "allowForSession"]>, "many">;
|
|
2600
2644
|
}, "strip", z.ZodTypeAny, {
|
|
2601
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2602
2645
|
description: string;
|
|
2603
|
-
|
|
2646
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2604
2647
|
toolGroup: string;
|
|
2648
|
+
resource: string;
|
|
2605
2649
|
}, {
|
|
2606
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2607
2650
|
description: string;
|
|
2608
|
-
|
|
2651
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2609
2652
|
toolGroup: string;
|
|
2653
|
+
resource: string;
|
|
2610
2654
|
}>>;
|
|
2611
2655
|
}, "strip", z.ZodTypeAny, {
|
|
2612
2656
|
message: string;
|
|
2613
2657
|
toolCallId: string;
|
|
2658
|
+
requestId: string;
|
|
2614
2659
|
toolName: string;
|
|
2615
2660
|
args: Record<string, unknown>;
|
|
2616
|
-
|
|
2617
|
-
severity: "info" | "destructive" | "warning";
|
|
2661
|
+
severity: "destructive" | "warning" | "info";
|
|
2618
2662
|
tasks?: {
|
|
2619
2663
|
tasks: {
|
|
2620
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2621
2664
|
description: string;
|
|
2665
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2622
2666
|
id: string;
|
|
2667
|
+
detail?: string | undefined;
|
|
2623
2668
|
}[];
|
|
2624
2669
|
} | undefined;
|
|
2625
2670
|
webSearch?: {
|
|
@@ -2638,8 +2683,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2638
2683
|
credentialType: string;
|
|
2639
2684
|
reason: string;
|
|
2640
2685
|
existingCredentials: {
|
|
2641
|
-
id: string;
|
|
2642
2686
|
name: string;
|
|
2687
|
+
id: string;
|
|
2643
2688
|
}[];
|
|
2644
2689
|
suggestedName?: string | undefined;
|
|
2645
2690
|
}[] | undefined;
|
|
@@ -2653,6 +2698,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2653
2698
|
deps: string[];
|
|
2654
2699
|
tools?: string[] | undefined;
|
|
2655
2700
|
workflowId?: string | undefined;
|
|
2701
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
2656
2702
|
}[] | undefined;
|
|
2657
2703
|
domainAccess?: {
|
|
2658
2704
|
url: string;
|
|
@@ -2664,21 +2710,21 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2664
2710
|
setupRequests?: {
|
|
2665
2711
|
node: {
|
|
2666
2712
|
type: string;
|
|
2667
|
-
id: string;
|
|
2668
2713
|
name: string;
|
|
2714
|
+
id: string;
|
|
2669
2715
|
typeVersion: number;
|
|
2670
2716
|
parameters: Record<string, unknown>;
|
|
2671
2717
|
position: [number, number];
|
|
2672
2718
|
credentials?: Record<string, {
|
|
2673
|
-
id: string;
|
|
2674
2719
|
name: string;
|
|
2720
|
+
id: string;
|
|
2675
2721
|
}> | undefined;
|
|
2676
2722
|
};
|
|
2677
2723
|
isTrigger: boolean;
|
|
2678
2724
|
credentialType?: string | undefined;
|
|
2679
2725
|
existingCredentials?: {
|
|
2680
|
-
id: string;
|
|
2681
2726
|
name: string;
|
|
2727
|
+
id: string;
|
|
2682
2728
|
}[] | undefined;
|
|
2683
2729
|
isFirstTrigger?: boolean | undefined;
|
|
2684
2730
|
isTestable?: boolean | undefined;
|
|
@@ -2688,7 +2734,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2688
2734
|
message?: string | undefined;
|
|
2689
2735
|
} | undefined;
|
|
2690
2736
|
triggerTestResult?: {
|
|
2691
|
-
status: "
|
|
2737
|
+
status: "success" | "error" | "listening";
|
|
2692
2738
|
error?: string | undefined;
|
|
2693
2739
|
} | undefined;
|
|
2694
2740
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -2706,29 +2752,30 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2706
2752
|
needsAction?: boolean | undefined;
|
|
2707
2753
|
subnodeRootNode?: {
|
|
2708
2754
|
type: string;
|
|
2709
|
-
id: string;
|
|
2710
2755
|
name: string;
|
|
2756
|
+
id: string;
|
|
2711
2757
|
typeVersion: number;
|
|
2712
2758
|
} | undefined;
|
|
2713
2759
|
}[] | undefined;
|
|
2714
2760
|
resourceDecision?: {
|
|
2715
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2716
2761
|
description: string;
|
|
2717
|
-
|
|
2762
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2718
2763
|
toolGroup: string;
|
|
2764
|
+
resource: string;
|
|
2719
2765
|
} | undefined;
|
|
2720
2766
|
}, {
|
|
2721
2767
|
message: string;
|
|
2722
2768
|
toolCallId: string;
|
|
2769
|
+
requestId: string;
|
|
2723
2770
|
toolName: string;
|
|
2724
2771
|
args: Record<string, unknown>;
|
|
2725
|
-
|
|
2726
|
-
severity: "info" | "destructive" | "warning";
|
|
2772
|
+
severity: "destructive" | "warning" | "info";
|
|
2727
2773
|
tasks?: {
|
|
2728
2774
|
tasks: {
|
|
2729
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2730
2775
|
description: string;
|
|
2776
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2731
2777
|
id: string;
|
|
2778
|
+
detail?: string | undefined;
|
|
2732
2779
|
}[];
|
|
2733
2780
|
} | undefined;
|
|
2734
2781
|
webSearch?: {
|
|
@@ -2747,8 +2794,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2747
2794
|
credentialType: string;
|
|
2748
2795
|
reason: string;
|
|
2749
2796
|
existingCredentials: {
|
|
2750
|
-
id: string;
|
|
2751
2797
|
name: string;
|
|
2798
|
+
id: string;
|
|
2752
2799
|
}[];
|
|
2753
2800
|
suggestedName?: string | undefined;
|
|
2754
2801
|
}[] | undefined;
|
|
@@ -2762,6 +2809,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2762
2809
|
deps: string[];
|
|
2763
2810
|
tools?: string[] | undefined;
|
|
2764
2811
|
workflowId?: string | undefined;
|
|
2812
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
2765
2813
|
}[] | undefined;
|
|
2766
2814
|
domainAccess?: {
|
|
2767
2815
|
url: string;
|
|
@@ -2773,21 +2821,21 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2773
2821
|
setupRequests?: {
|
|
2774
2822
|
node: {
|
|
2775
2823
|
type: string;
|
|
2776
|
-
id: string;
|
|
2777
2824
|
name: string;
|
|
2825
|
+
id: string;
|
|
2778
2826
|
typeVersion: number;
|
|
2779
2827
|
parameters: Record<string, unknown>;
|
|
2780
2828
|
position: [number, number];
|
|
2781
2829
|
credentials?: Record<string, {
|
|
2782
|
-
id: string;
|
|
2783
2830
|
name: string;
|
|
2831
|
+
id: string;
|
|
2784
2832
|
}> | undefined;
|
|
2785
2833
|
};
|
|
2786
2834
|
isTrigger: boolean;
|
|
2787
2835
|
credentialType?: string | undefined;
|
|
2788
2836
|
existingCredentials?: {
|
|
2789
|
-
id: string;
|
|
2790
2837
|
name: string;
|
|
2838
|
+
id: string;
|
|
2791
2839
|
}[] | undefined;
|
|
2792
2840
|
isFirstTrigger?: boolean | undefined;
|
|
2793
2841
|
isTestable?: boolean | undefined;
|
|
@@ -2797,7 +2845,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2797
2845
|
message?: string | undefined;
|
|
2798
2846
|
} | undefined;
|
|
2799
2847
|
triggerTestResult?: {
|
|
2800
|
-
status: "
|
|
2848
|
+
status: "success" | "error" | "listening";
|
|
2801
2849
|
error?: string | undefined;
|
|
2802
2850
|
} | undefined;
|
|
2803
2851
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -2815,16 +2863,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2815
2863
|
needsAction?: boolean | undefined;
|
|
2816
2864
|
subnodeRootNode?: {
|
|
2817
2865
|
type: string;
|
|
2818
|
-
id: string;
|
|
2819
2866
|
name: string;
|
|
2867
|
+
id: string;
|
|
2820
2868
|
typeVersion: number;
|
|
2821
2869
|
} | undefined;
|
|
2822
2870
|
}[] | undefined;
|
|
2823
2871
|
resourceDecision?: {
|
|
2824
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2825
2872
|
description: string;
|
|
2826
|
-
|
|
2873
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2827
2874
|
toolGroup: string;
|
|
2875
|
+
resource: string;
|
|
2828
2876
|
} | undefined;
|
|
2829
2877
|
}>;
|
|
2830
2878
|
runId: z.ZodString;
|
|
@@ -2834,20 +2882,21 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2834
2882
|
type: z.ZodLiteral<"confirmation-request">;
|
|
2835
2883
|
}, "strip", z.ZodTypeAny, {
|
|
2836
2884
|
type: "confirmation-request";
|
|
2837
|
-
runId: string;
|
|
2838
2885
|
agentId: string;
|
|
2886
|
+
runId: string;
|
|
2839
2887
|
payload: {
|
|
2840
2888
|
message: string;
|
|
2841
2889
|
toolCallId: string;
|
|
2890
|
+
requestId: string;
|
|
2842
2891
|
toolName: string;
|
|
2843
2892
|
args: Record<string, unknown>;
|
|
2844
|
-
|
|
2845
|
-
severity: "info" | "destructive" | "warning";
|
|
2893
|
+
severity: "destructive" | "warning" | "info";
|
|
2846
2894
|
tasks?: {
|
|
2847
2895
|
tasks: {
|
|
2848
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2849
2896
|
description: string;
|
|
2897
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2850
2898
|
id: string;
|
|
2899
|
+
detail?: string | undefined;
|
|
2851
2900
|
}[];
|
|
2852
2901
|
} | undefined;
|
|
2853
2902
|
webSearch?: {
|
|
@@ -2866,8 +2915,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2866
2915
|
credentialType: string;
|
|
2867
2916
|
reason: string;
|
|
2868
2917
|
existingCredentials: {
|
|
2869
|
-
id: string;
|
|
2870
2918
|
name: string;
|
|
2919
|
+
id: string;
|
|
2871
2920
|
}[];
|
|
2872
2921
|
suggestedName?: string | undefined;
|
|
2873
2922
|
}[] | undefined;
|
|
@@ -2881,6 +2930,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2881
2930
|
deps: string[];
|
|
2882
2931
|
tools?: string[] | undefined;
|
|
2883
2932
|
workflowId?: string | undefined;
|
|
2933
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
2884
2934
|
}[] | undefined;
|
|
2885
2935
|
domainAccess?: {
|
|
2886
2936
|
url: string;
|
|
@@ -2892,21 +2942,21 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2892
2942
|
setupRequests?: {
|
|
2893
2943
|
node: {
|
|
2894
2944
|
type: string;
|
|
2895
|
-
id: string;
|
|
2896
2945
|
name: string;
|
|
2946
|
+
id: string;
|
|
2897
2947
|
typeVersion: number;
|
|
2898
2948
|
parameters: Record<string, unknown>;
|
|
2899
2949
|
position: [number, number];
|
|
2900
2950
|
credentials?: Record<string, {
|
|
2901
|
-
id: string;
|
|
2902
2951
|
name: string;
|
|
2952
|
+
id: string;
|
|
2903
2953
|
}> | undefined;
|
|
2904
2954
|
};
|
|
2905
2955
|
isTrigger: boolean;
|
|
2906
2956
|
credentialType?: string | undefined;
|
|
2907
2957
|
existingCredentials?: {
|
|
2908
|
-
id: string;
|
|
2909
2958
|
name: string;
|
|
2959
|
+
id: string;
|
|
2910
2960
|
}[] | undefined;
|
|
2911
2961
|
isFirstTrigger?: boolean | undefined;
|
|
2912
2962
|
isTestable?: boolean | undefined;
|
|
@@ -2916,7 +2966,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2916
2966
|
message?: string | undefined;
|
|
2917
2967
|
} | undefined;
|
|
2918
2968
|
triggerTestResult?: {
|
|
2919
|
-
status: "
|
|
2969
|
+
status: "success" | "error" | "listening";
|
|
2920
2970
|
error?: string | undefined;
|
|
2921
2971
|
} | undefined;
|
|
2922
2972
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -2934,36 +2984,37 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2934
2984
|
needsAction?: boolean | undefined;
|
|
2935
2985
|
subnodeRootNode?: {
|
|
2936
2986
|
type: string;
|
|
2937
|
-
id: string;
|
|
2938
2987
|
name: string;
|
|
2988
|
+
id: string;
|
|
2939
2989
|
typeVersion: number;
|
|
2940
2990
|
} | undefined;
|
|
2941
2991
|
}[] | undefined;
|
|
2942
2992
|
resourceDecision?: {
|
|
2943
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2944
2993
|
description: string;
|
|
2945
|
-
|
|
2994
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
2946
2995
|
toolGroup: string;
|
|
2996
|
+
resource: string;
|
|
2947
2997
|
} | undefined;
|
|
2948
2998
|
};
|
|
2949
2999
|
userId?: string | undefined;
|
|
2950
3000
|
responseId?: string | undefined;
|
|
2951
3001
|
}, {
|
|
2952
3002
|
type: "confirmation-request";
|
|
2953
|
-
runId: string;
|
|
2954
3003
|
agentId: string;
|
|
3004
|
+
runId: string;
|
|
2955
3005
|
payload: {
|
|
2956
3006
|
message: string;
|
|
2957
3007
|
toolCallId: string;
|
|
3008
|
+
requestId: string;
|
|
2958
3009
|
toolName: string;
|
|
2959
3010
|
args: Record<string, unknown>;
|
|
2960
|
-
|
|
2961
|
-
severity: "info" | "destructive" | "warning";
|
|
3011
|
+
severity: "destructive" | "warning" | "info";
|
|
2962
3012
|
tasks?: {
|
|
2963
3013
|
tasks: {
|
|
2964
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
2965
3014
|
description: string;
|
|
3015
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
2966
3016
|
id: string;
|
|
3017
|
+
detail?: string | undefined;
|
|
2967
3018
|
}[];
|
|
2968
3019
|
} | undefined;
|
|
2969
3020
|
webSearch?: {
|
|
@@ -2982,8 +3033,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2982
3033
|
credentialType: string;
|
|
2983
3034
|
reason: string;
|
|
2984
3035
|
existingCredentials: {
|
|
2985
|
-
id: string;
|
|
2986
3036
|
name: string;
|
|
3037
|
+
id: string;
|
|
2987
3038
|
}[];
|
|
2988
3039
|
suggestedName?: string | undefined;
|
|
2989
3040
|
}[] | undefined;
|
|
@@ -2997,6 +3048,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
2997
3048
|
deps: string[];
|
|
2998
3049
|
tools?: string[] | undefined;
|
|
2999
3050
|
workflowId?: string | undefined;
|
|
3051
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
3000
3052
|
}[] | undefined;
|
|
3001
3053
|
domainAccess?: {
|
|
3002
3054
|
url: string;
|
|
@@ -3008,21 +3060,21 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3008
3060
|
setupRequests?: {
|
|
3009
3061
|
node: {
|
|
3010
3062
|
type: string;
|
|
3011
|
-
id: string;
|
|
3012
3063
|
name: string;
|
|
3064
|
+
id: string;
|
|
3013
3065
|
typeVersion: number;
|
|
3014
3066
|
parameters: Record<string, unknown>;
|
|
3015
3067
|
position: [number, number];
|
|
3016
3068
|
credentials?: Record<string, {
|
|
3017
|
-
id: string;
|
|
3018
3069
|
name: string;
|
|
3070
|
+
id: string;
|
|
3019
3071
|
}> | undefined;
|
|
3020
3072
|
};
|
|
3021
3073
|
isTrigger: boolean;
|
|
3022
3074
|
credentialType?: string | undefined;
|
|
3023
3075
|
existingCredentials?: {
|
|
3024
|
-
id: string;
|
|
3025
3076
|
name: string;
|
|
3077
|
+
id: string;
|
|
3026
3078
|
}[] | undefined;
|
|
3027
3079
|
isFirstTrigger?: boolean | undefined;
|
|
3028
3080
|
isTestable?: boolean | undefined;
|
|
@@ -3032,7 +3084,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3032
3084
|
message?: string | undefined;
|
|
3033
3085
|
} | undefined;
|
|
3034
3086
|
triggerTestResult?: {
|
|
3035
|
-
status: "
|
|
3087
|
+
status: "success" | "error" | "listening";
|
|
3036
3088
|
error?: string | undefined;
|
|
3037
3089
|
} | undefined;
|
|
3038
3090
|
parameterIssues?: Record<string, string[]> | undefined;
|
|
@@ -3050,16 +3102,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3050
3102
|
needsAction?: boolean | undefined;
|
|
3051
3103
|
subnodeRootNode?: {
|
|
3052
3104
|
type: string;
|
|
3053
|
-
id: string;
|
|
3054
3105
|
name: string;
|
|
3106
|
+
id: string;
|
|
3055
3107
|
typeVersion: number;
|
|
3056
3108
|
} | undefined;
|
|
3057
3109
|
}[] | undefined;
|
|
3058
3110
|
resourceDecision?: {
|
|
3059
|
-
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
3060
3111
|
description: string;
|
|
3061
|
-
|
|
3112
|
+
options: ("denyOnce" | "allowOnce" | "allowForSession")[];
|
|
3062
3113
|
toolGroup: string;
|
|
3114
|
+
resource: string;
|
|
3063
3115
|
} | undefined;
|
|
3064
3116
|
};
|
|
3065
3117
|
userId?: string | undefined;
|
|
@@ -3070,27 +3122,32 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3070
3122
|
tasks: z.ZodArray<z.ZodObject<{
|
|
3071
3123
|
id: z.ZodString;
|
|
3072
3124
|
description: z.ZodString;
|
|
3125
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3073
3126
|
status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
|
|
3074
3127
|
}, "strip", z.ZodTypeAny, {
|
|
3075
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3076
3128
|
description: string;
|
|
3129
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3077
3130
|
id: string;
|
|
3131
|
+
detail?: string | undefined;
|
|
3078
3132
|
}, {
|
|
3079
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3080
3133
|
description: string;
|
|
3134
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3081
3135
|
id: string;
|
|
3136
|
+
detail?: string | undefined;
|
|
3082
3137
|
}>, "many">;
|
|
3083
3138
|
}, "strip", z.ZodTypeAny, {
|
|
3084
3139
|
tasks: {
|
|
3085
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3086
3140
|
description: string;
|
|
3141
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3087
3142
|
id: string;
|
|
3143
|
+
detail?: string | undefined;
|
|
3088
3144
|
}[];
|
|
3089
3145
|
}, {
|
|
3090
3146
|
tasks: {
|
|
3091
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3092
3147
|
description: string;
|
|
3148
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3093
3149
|
id: string;
|
|
3150
|
+
detail?: string | undefined;
|
|
3094
3151
|
}[];
|
|
3095
3152
|
}>;
|
|
3096
3153
|
planItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3101,6 +3158,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3101
3158
|
deps: z.ZodArray<z.ZodString, "many">;
|
|
3102
3159
|
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3103
3160
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
3161
|
+
isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
|
|
3104
3162
|
}, "strip", z.ZodTypeAny, {
|
|
3105
3163
|
id: string;
|
|
3106
3164
|
title: string;
|
|
@@ -3109,6 +3167,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3109
3167
|
deps: string[];
|
|
3110
3168
|
tools?: string[] | undefined;
|
|
3111
3169
|
workflowId?: string | undefined;
|
|
3170
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
3112
3171
|
}, {
|
|
3113
3172
|
id: string;
|
|
3114
3173
|
title: string;
|
|
@@ -3117,13 +3176,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3117
3176
|
deps: string[];
|
|
3118
3177
|
tools?: string[] | undefined;
|
|
3119
3178
|
workflowId?: string | undefined;
|
|
3179
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
3120
3180
|
}>, "many">>;
|
|
3121
3181
|
}, "strip", z.ZodTypeAny, {
|
|
3122
3182
|
tasks: {
|
|
3123
3183
|
tasks: {
|
|
3124
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3125
3184
|
description: string;
|
|
3185
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3126
3186
|
id: string;
|
|
3187
|
+
detail?: string | undefined;
|
|
3127
3188
|
}[];
|
|
3128
3189
|
};
|
|
3129
3190
|
planItems?: {
|
|
@@ -3134,13 +3195,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3134
3195
|
deps: string[];
|
|
3135
3196
|
tools?: string[] | undefined;
|
|
3136
3197
|
workflowId?: string | undefined;
|
|
3198
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
3137
3199
|
}[] | undefined;
|
|
3138
3200
|
}, {
|
|
3139
3201
|
tasks: {
|
|
3140
3202
|
tasks: {
|
|
3141
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3142
3203
|
description: string;
|
|
3204
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3143
3205
|
id: string;
|
|
3206
|
+
detail?: string | undefined;
|
|
3144
3207
|
}[];
|
|
3145
3208
|
};
|
|
3146
3209
|
planItems?: {
|
|
@@ -3151,6 +3214,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3151
3214
|
deps: string[];
|
|
3152
3215
|
tools?: string[] | undefined;
|
|
3153
3216
|
workflowId?: string | undefined;
|
|
3217
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
3154
3218
|
}[] | undefined;
|
|
3155
3219
|
}>;
|
|
3156
3220
|
runId: z.ZodString;
|
|
@@ -3160,14 +3224,15 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3160
3224
|
type: z.ZodLiteral<"tasks-update">;
|
|
3161
3225
|
}, "strip", z.ZodTypeAny, {
|
|
3162
3226
|
type: "tasks-update";
|
|
3163
|
-
runId: string;
|
|
3164
3227
|
agentId: string;
|
|
3228
|
+
runId: string;
|
|
3165
3229
|
payload: {
|
|
3166
3230
|
tasks: {
|
|
3167
3231
|
tasks: {
|
|
3168
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3169
3232
|
description: string;
|
|
3233
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3170
3234
|
id: string;
|
|
3235
|
+
detail?: string | undefined;
|
|
3171
3236
|
}[];
|
|
3172
3237
|
};
|
|
3173
3238
|
planItems?: {
|
|
@@ -3178,20 +3243,22 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3178
3243
|
deps: string[];
|
|
3179
3244
|
tools?: string[] | undefined;
|
|
3180
3245
|
workflowId?: string | undefined;
|
|
3246
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
3181
3247
|
}[] | undefined;
|
|
3182
3248
|
};
|
|
3183
3249
|
userId?: string | undefined;
|
|
3184
3250
|
responseId?: string | undefined;
|
|
3185
3251
|
}, {
|
|
3186
3252
|
type: "tasks-update";
|
|
3187
|
-
runId: string;
|
|
3188
3253
|
agentId: string;
|
|
3254
|
+
runId: string;
|
|
3189
3255
|
payload: {
|
|
3190
3256
|
tasks: {
|
|
3191
3257
|
tasks: {
|
|
3192
|
-
status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
|
|
3193
3258
|
description: string;
|
|
3259
|
+
status: "failed" | "todo" | "in_progress" | "done" | "cancelled";
|
|
3194
3260
|
id: string;
|
|
3261
|
+
detail?: string | undefined;
|
|
3195
3262
|
}[];
|
|
3196
3263
|
};
|
|
3197
3264
|
planItems?: {
|
|
@@ -3202,6 +3269,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3202
3269
|
deps: string[];
|
|
3203
3270
|
tools?: string[] | undefined;
|
|
3204
3271
|
workflowId?: string | undefined;
|
|
3272
|
+
isSupportingWorkflow?: boolean | undefined;
|
|
3205
3273
|
}[] | undefined;
|
|
3206
3274
|
};
|
|
3207
3275
|
userId?: string | undefined;
|
|
@@ -3221,8 +3289,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3221
3289
|
type: z.ZodLiteral<"status">;
|
|
3222
3290
|
}, "strip", z.ZodTypeAny, {
|
|
3223
3291
|
type: "status";
|
|
3224
|
-
runId: string;
|
|
3225
3292
|
agentId: string;
|
|
3293
|
+
runId: string;
|
|
3226
3294
|
payload: {
|
|
3227
3295
|
message: string;
|
|
3228
3296
|
};
|
|
@@ -3230,8 +3298,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3230
3298
|
responseId?: string | undefined;
|
|
3231
3299
|
}, {
|
|
3232
3300
|
type: "status";
|
|
3233
|
-
runId: string;
|
|
3234
3301
|
agentId: string;
|
|
3302
|
+
runId: string;
|
|
3235
3303
|
payload: {
|
|
3236
3304
|
message: string;
|
|
3237
3305
|
};
|
|
@@ -3261,8 +3329,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3261
3329
|
type: z.ZodLiteral<"error">;
|
|
3262
3330
|
}, "strip", z.ZodTypeAny, {
|
|
3263
3331
|
type: "error";
|
|
3264
|
-
runId: string;
|
|
3265
3332
|
agentId: string;
|
|
3333
|
+
runId: string;
|
|
3266
3334
|
payload: {
|
|
3267
3335
|
content: string;
|
|
3268
3336
|
provider?: string | undefined;
|
|
@@ -3273,8 +3341,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3273
3341
|
responseId?: string | undefined;
|
|
3274
3342
|
}, {
|
|
3275
3343
|
type: "error";
|
|
3276
|
-
runId: string;
|
|
3277
3344
|
agentId: string;
|
|
3345
|
+
runId: string;
|
|
3278
3346
|
payload: {
|
|
3279
3347
|
content: string;
|
|
3280
3348
|
provider?: string | undefined;
|
|
@@ -3316,8 +3384,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3316
3384
|
type: z.ZodLiteral<"filesystem-request">;
|
|
3317
3385
|
}, "strip", z.ZodTypeAny, {
|
|
3318
3386
|
type: "filesystem-request";
|
|
3319
|
-
runId: string;
|
|
3320
3387
|
agentId: string;
|
|
3388
|
+
runId: string;
|
|
3321
3389
|
payload: {
|
|
3322
3390
|
requestId: string;
|
|
3323
3391
|
toolCall: {
|
|
@@ -3329,8 +3397,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3329
3397
|
responseId?: string | undefined;
|
|
3330
3398
|
}, {
|
|
3331
3399
|
type: "filesystem-request";
|
|
3332
|
-
runId: string;
|
|
3333
3400
|
agentId: string;
|
|
3401
|
+
runId: string;
|
|
3334
3402
|
payload: {
|
|
3335
3403
|
requestId: string;
|
|
3336
3404
|
toolCall: {
|
|
@@ -3355,8 +3423,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3355
3423
|
type: z.ZodLiteral<"thread-title-updated">;
|
|
3356
3424
|
}, "strip", z.ZodTypeAny, {
|
|
3357
3425
|
type: "thread-title-updated";
|
|
3358
|
-
runId: string;
|
|
3359
3426
|
agentId: string;
|
|
3427
|
+
runId: string;
|
|
3360
3428
|
payload: {
|
|
3361
3429
|
title: string;
|
|
3362
3430
|
};
|
|
@@ -3364,8 +3432,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
3364
3432
|
responseId?: string | undefined;
|
|
3365
3433
|
}, {
|
|
3366
3434
|
type: "thread-title-updated";
|
|
3367
|
-
runId: string;
|
|
3368
3435
|
agentId: string;
|
|
3436
|
+
runId: string;
|
|
3369
3437
|
payload: {
|
|
3370
3438
|
title: string;
|
|
3371
3439
|
};
|
|
@@ -3435,12 +3503,12 @@ declare const instanceAiAttachmentSchema: z.ZodObject<{
|
|
|
3435
3503
|
export type InstanceAiAttachment = z.infer<typeof instanceAiAttachmentSchema>;
|
|
3436
3504
|
declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass<{
|
|
3437
3505
|
message: string;
|
|
3438
|
-
timeZone?: string | undefined;
|
|
3439
3506
|
attachments?: {
|
|
3440
3507
|
data: string;
|
|
3441
3508
|
mimeType: string;
|
|
3442
3509
|
fileName: string;
|
|
3443
3510
|
}[] | undefined;
|
|
3511
|
+
timeZone?: string | undefined;
|
|
3444
3512
|
pushRef?: string | undefined;
|
|
3445
3513
|
}, {
|
|
3446
3514
|
message: z.ZodDefault<z.ZodString>;
|
|
@@ -3470,9 +3538,11 @@ declare const InstanceAiCorrectTaskRequest_base: import("../zod-class").ZodClass
|
|
|
3470
3538
|
export declare class InstanceAiCorrectTaskRequest extends InstanceAiCorrectTaskRequest_base {
|
|
3471
3539
|
}
|
|
3472
3540
|
declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClass<{
|
|
3541
|
+
projectId: string;
|
|
3473
3542
|
threadId?: string | undefined;
|
|
3474
3543
|
}, {
|
|
3475
3544
|
threadId: z.ZodOptional<z.ZodString>;
|
|
3545
|
+
projectId: z.ZodString;
|
|
3476
3546
|
}>;
|
|
3477
3547
|
export declare class InstanceAiEnsureThreadRequest extends InstanceAiEnsureThreadRequest_base {
|
|
3478
3548
|
}
|
|
@@ -3608,6 +3678,7 @@ export interface InstanceAiThreadInfo {
|
|
|
3608
3678
|
id: string;
|
|
3609
3679
|
title?: string;
|
|
3610
3680
|
resourceId: string;
|
|
3681
|
+
projectId?: string;
|
|
3611
3682
|
createdAt: string;
|
|
3612
3683
|
updatedAt: string;
|
|
3613
3684
|
metadata?: Record<string, unknown>;
|
|
@@ -3635,6 +3706,7 @@ export interface InstanceAiThreadMessagesResponse {
|
|
|
3635
3706
|
}
|
|
3636
3707
|
export interface InstanceAiRichMessagesResponse {
|
|
3637
3708
|
threadId: string;
|
|
3709
|
+
projectId?: string;
|
|
3638
3710
|
messages: InstanceAiMessage[];
|
|
3639
3711
|
nextEventId: number;
|
|
3640
3712
|
}
|
|
@@ -3717,13 +3789,16 @@ declare const instanceAiPermissionsSchema: z.ZodObject<{
|
|
|
3717
3789
|
export type InstanceAiPermissions = z.infer<typeof instanceAiPermissionsSchema>;
|
|
3718
3790
|
export declare const DEFAULT_INSTANCE_AI_PERMISSIONS: InstanceAiPermissions;
|
|
3719
3791
|
export declare function applyBranchReadOnlyOverrides(permissions: InstanceAiPermissions): InstanceAiPermissions;
|
|
3792
|
+
export declare const instanceAiSandboxProviderSchema: z.ZodEnum<["n8n-sandbox", "daytona"]>;
|
|
3793
|
+
export type InstanceAiSandboxProvider = z.infer<typeof instanceAiSandboxProviderSchema>;
|
|
3794
|
+
export declare function isInstanceAiSandboxProvider(value: unknown): value is InstanceAiSandboxProvider;
|
|
3720
3795
|
export interface InstanceAiAdminSettingsResponse {
|
|
3721
3796
|
enabled: boolean;
|
|
3722
3797
|
subAgentMaxSteps: number;
|
|
3723
3798
|
permissions: InstanceAiPermissions;
|
|
3724
3799
|
mcpServers: string;
|
|
3725
3800
|
sandboxEnabled: boolean;
|
|
3726
|
-
sandboxProvider:
|
|
3801
|
+
sandboxProvider: InstanceAiSandboxProvider;
|
|
3727
3802
|
sandboxImage: string;
|
|
3728
3803
|
sandboxTimeout: number;
|
|
3729
3804
|
daytonaCredentialId: string | null;
|
|
@@ -3757,7 +3832,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
|
|
|
3757
3832
|
restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
|
|
3758
3833
|
} | undefined;
|
|
3759
3834
|
sandboxEnabled?: boolean | undefined;
|
|
3760
|
-
sandboxProvider?:
|
|
3835
|
+
sandboxProvider?: "n8n-sandbox" | "daytona" | undefined;
|
|
3761
3836
|
sandboxImage?: string | undefined;
|
|
3762
3837
|
sandboxTimeout?: number | undefined;
|
|
3763
3838
|
daytonaCredentialId?: string | null | undefined;
|
|
@@ -3830,7 +3905,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
|
|
|
3830
3905
|
}>>;
|
|
3831
3906
|
mcpServers: z.ZodOptional<z.ZodString>;
|
|
3832
3907
|
sandboxEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
3833
|
-
sandboxProvider: z.ZodOptional<z.
|
|
3908
|
+
sandboxProvider: z.ZodOptional<z.ZodEnum<["n8n-sandbox", "daytona"]>>;
|
|
3834
3909
|
sandboxImage: z.ZodOptional<z.ZodString>;
|
|
3835
3910
|
sandboxTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3836
3911
|
daytonaCredentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -3864,6 +3939,17 @@ export interface InstanceAiModelCredential {
|
|
|
3864
3939
|
type: string;
|
|
3865
3940
|
provider: string;
|
|
3866
3941
|
}
|
|
3942
|
+
export interface InstanceAiMcpConnectionResponse {
|
|
3943
|
+
id: string;
|
|
3944
|
+
serverSlug: string;
|
|
3945
|
+
serverTitle: string;
|
|
3946
|
+
serverIcons: McpRegistryServerIconResponse[];
|
|
3947
|
+
credentialId: string;
|
|
3948
|
+
credentialName: string;
|
|
3949
|
+
credentialType: string;
|
|
3950
|
+
createdAt: string;
|
|
3951
|
+
updatedAt: string;
|
|
3952
|
+
}
|
|
3867
3953
|
export declare function getRenderHint(toolName: string): InstanceAiToolCallState['renderHint'];
|
|
3868
3954
|
export type InstanceAiEvalNodeExecutionMode = 'mocked' | 'pinned' | 'real';
|
|
3869
3955
|
export interface InstanceAiEvalInterceptedRequest {
|
|
@@ -3923,37 +4009,4 @@ declare const InstanceAiEvalExecutionRequest_base: import("../zod-class").ZodCla
|
|
|
3923
4009
|
}>;
|
|
3924
4010
|
export declare class InstanceAiEvalExecutionRequest extends InstanceAiEvalExecutionRequest_base {
|
|
3925
4011
|
}
|
|
3926
|
-
declare const InstanceAiEvalSubAgentRequest_base: import("../zod-class").ZodClass<{
|
|
3927
|
-
role: string;
|
|
3928
|
-
prompt: string;
|
|
3929
|
-
modelId?: string | undefined;
|
|
3930
|
-
maxSteps?: number | undefined;
|
|
3931
|
-
timeoutMs?: number | undefined;
|
|
3932
|
-
}, {
|
|
3933
|
-
role: z.ZodString;
|
|
3934
|
-
prompt: z.ZodString;
|
|
3935
|
-
modelId: z.ZodOptional<z.ZodString>;
|
|
3936
|
-
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
3937
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
3938
|
-
}>;
|
|
3939
|
-
export declare class InstanceAiEvalSubAgentRequest extends InstanceAiEvalSubAgentRequest_base {
|
|
3940
|
-
}
|
|
3941
|
-
export interface InstanceAiEvalToolCall {
|
|
3942
|
-
toolName: string;
|
|
3943
|
-
args: unknown;
|
|
3944
|
-
}
|
|
3945
|
-
export interface InstanceAiEvalToolResult {
|
|
3946
|
-
toolName: string;
|
|
3947
|
-
result: unknown;
|
|
3948
|
-
isError: boolean;
|
|
3949
|
-
}
|
|
3950
|
-
export interface InstanceAiEvalSubAgentResponse {
|
|
3951
|
-
text: string;
|
|
3952
|
-
toolCalls: InstanceAiEvalToolCall[];
|
|
3953
|
-
toolResults: InstanceAiEvalToolResult[];
|
|
3954
|
-
capturedWorkflowIds: string[];
|
|
3955
|
-
durationMs: number;
|
|
3956
|
-
stopReason?: string;
|
|
3957
|
-
error?: string;
|
|
3958
|
-
}
|
|
3959
4012
|
export {};
|