@n8n/api-types 1.30.3 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/agent-builder-interactive.d.ts +5 -182
  2. package/dist/agent-builder-interactive.js +6 -50
  3. package/dist/agent-builder-interactive.js.map +1 -1
  4. package/dist/agents/agent-interaction.schema.d.ts +262 -0
  5. package/dist/agents/agent-interaction.schema.js +56 -0
  6. package/dist/agents/agent-interaction.schema.js.map +1 -0
  7. package/dist/agents/agent-json-config.schema.d.ts +1878 -752
  8. package/dist/agents/agent-json-config.schema.js +82 -1
  9. package/dist/agents/agent-json-config.schema.js.map +1 -1
  10. package/dist/agents/dto.d.ts +232 -103
  11. package/dist/agents/dto.js +8 -3
  12. package/dist/agents/dto.js.map +1 -1
  13. package/dist/agents/index.d.ts +2 -1
  14. package/dist/agents/index.js +2 -11
  15. package/dist/agents/index.js.map +1 -1
  16. package/dist/agents/rich-card.schema.d.ts +108 -108
  17. package/dist/agents/types.d.ts +39 -8
  18. package/dist/agents/types.js.map +1 -1
  19. package/dist/build.tsbuildinfo +1 -1
  20. package/dist/chat-hub.d.ts +85 -85
  21. package/dist/dto/ai/ai-ask-request.dto.d.ts +13 -13
  22. package/dist/dto/ai/ai-build-request.dto.d.ts +3 -3
  23. package/dist/dto/ai/ai-truncate-messages-request.dto.d.ts +1 -1
  24. package/dist/dto/api-keys/list-api-keys-query.dto.d.ts +1 -1
  25. package/dist/dto/data-table/list-data-table-query.dto.d.ts +4 -4
  26. package/dist/dto/dynamic-node-parameters/action-result-request.dto.d.ts +1 -1
  27. package/dist/dto/dynamic-node-parameters/base-dynamic-parameters-request.dto.d.ts +1 -1
  28. package/dist/dto/dynamic-node-parameters/options-request.dto.d.ts +1 -1
  29. package/dist/dto/dynamic-node-parameters/resource-locator-request.dto.d.ts +1 -1
  30. package/dist/dto/dynamic-node-parameters/resource-mapper-fields-request.dto.d.ts +1 -1
  31. package/dist/dto/evaluations/evaluation-config.dto.d.ts +78 -78
  32. package/dist/dto/folders/list-folder-query.dto.d.ts +2 -2
  33. package/dist/dto/index.d.ts +2 -0
  34. package/dist/dto/index.js +7 -3
  35. package/dist/dto/index.js.map +1 -1
  36. package/dist/dto/insights/list-workflow-query.dto.d.ts +1 -1
  37. package/dist/dto/instance-ai/instance-ai-confirm-request.dto.d.ts +8 -8
  38. package/dist/dto/instance-ai/instance-ai-rename-thread-request.dto.d.ts +1 -1
  39. package/dist/dto/oauth/oauth-client.dto.d.ts +4 -4
  40. package/dist/dto/oidc/config.dto.d.ts +1 -1
  41. package/dist/dto/packages/import-package-request.dto.d.ts +11 -5
  42. package/dist/dto/packages/import-package-request.dto.js +19 -19
  43. package/dist/dto/packages/import-package-request.dto.js.map +1 -1
  44. package/dist/dto/project/update-project.dto.d.ts +2 -2
  45. package/dist/dto/roles/role-member.schema.d.ts +2 -2
  46. package/dist/dto/roles/role-members-response.dto.d.ts +3 -3
  47. package/dist/dto/roles/role-project-members-response.dto.d.ts +3 -3
  48. package/dist/dto/roles/update-role.dto.d.ts +1 -1
  49. package/dist/dto/security-settings/security-policy.dto.d.ts +32 -0
  50. package/dist/dto/security-settings/security-policy.dto.js +17 -0
  51. package/dist/dto/security-settings/security-policy.dto.js.map +1 -0
  52. package/dist/dto/security-settings/security-settings.dto.d.ts +20 -0
  53. package/dist/dto/security-settings/security-settings.dto.js +4 -0
  54. package/dist/dto/security-settings/security-settings.dto.js.map +1 -1
  55. package/dist/dto/source-control/push-work-folder-request.dto.d.ts +9 -9
  56. package/dist/dto/variables/update-variable-request.dto.d.ts +1 -1
  57. package/dist/dto/workflow-history/update-workflow-history-version.dto.d.ts +1 -1
  58. package/dist/dto/workflows/activate-workflow.dto.d.ts +1 -1
  59. package/dist/dto/workflows/base-workflow.dto.d.ts +7 -7
  60. package/dist/dto/workflows/create-workflow.dto.d.ts +8 -8
  61. package/dist/dto/workflows/get-resource-dependencies.dto.d.ts +1 -1
  62. package/dist/dto/workflows/get-resource-dependency-counts.dto.d.ts +1 -1
  63. package/dist/dto/workflows/manual-run.dto.d.ts +112 -0
  64. package/dist/dto/workflows/manual-run.dto.js +51 -0
  65. package/dist/dto/workflows/manual-run.dto.js.map +1 -0
  66. package/dist/dto/workflows/update-workflow.dto.d.ts +8 -8
  67. package/dist/frontend-settings.d.ts +4 -0
  68. package/dist/index.d.ts +5 -3
  69. package/dist/index.js +8 -3
  70. package/dist/index.js.map +1 -1
  71. package/dist/instance-registry-types.d.ts +16 -16
  72. package/dist/schemas/agent-run-reducer.js +61 -1
  73. package/dist/schemas/agent-run-reducer.js.map +1 -1
  74. package/dist/schemas/breaking-changes.schema.d.ts +128 -128
  75. package/dist/schemas/credential-resolver.schema.d.ts +8 -8
  76. package/dist/schemas/credential-response.schema.d.ts +2 -2
  77. package/dist/schemas/data-table.schema.d.ts +6 -6
  78. package/dist/schemas/encryption-key.schema.d.ts +6 -6
  79. package/dist/schemas/eval-collections.schema.d.ts +3 -3
  80. package/dist/schemas/favorites.schema.d.ts +2 -2
  81. package/dist/schemas/favorites.schema.js +7 -1
  82. package/dist/schemas/favorites.schema.js.map +1 -1
  83. package/dist/schemas/insights.schema.d.ts +22 -22
  84. package/dist/schemas/instance-ai.schema.d.ts +599 -419
  85. package/dist/schemas/instance-ai.schema.js +55 -8
  86. package/dist/schemas/instance-ai.schema.js.map +1 -1
  87. package/dist/schemas/secrets-provider.schema.d.ts +16 -16
  88. package/dist/schemas/source-controlled-file.schema.d.ts +6 -6
  89. package/dist/schemas/user.schema.d.ts +18 -18
  90. package/dist/schemas/workflow-execution-status.schema.d.ts +4 -4
  91. package/dist/schemas/workflow-publication-status.schema.d.ts +2 -2
  92. package/dist/workflow-reviews-policy.d.ts +9 -0
  93. package/dist/workflow-reviews-policy.js +8 -0
  94. package/dist/workflow-reviews-policy.js.map +1 -0
  95. package/package.json +9 -8
@@ -24,15 +24,16 @@ export type ThreadId = string & {
24
24
  export type ToolCallId = string & {
25
25
  readonly __brand: 'ToolCallId';
26
26
  };
27
- export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "tool-call", "tool-result", "tool-error", "confirmation-request", "tasks-update", "filesystem-request", "thread-title-updated", "status", "error"]>;
27
+ export declare const instanceAiEventTypeSchema: z.ZodEnum<["run-start", "run-finish", "agent-spawned", "agent-completed", "text-delta", "reasoning-delta", "text-block", "reasoning-block", "tool-call", "tool-result", "tool-error", "tool-interrupted", "confirmation-request", "tasks-update", "filesystem-request", "thread-title-updated", "status", "error"]>;
28
28
  export type InstanceAiEventType = z.infer<typeof instanceAiEventTypeSchema>;
29
- export declare const instanceAiRunStatusSchema: z.ZodEnum<["completed", "cancelled", "error"]>;
29
+ export declare const INSTANCE_AI_EPHEMERAL_EVENT_TYPES: ReadonlySet<InstanceAiEventType>;
30
+ export declare const instanceAiRunStatusSchema: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
30
31
  export type InstanceAiRunStatus = z.infer<typeof instanceAiRunStatusSchema>;
31
32
  export declare const instanceAiConfirmationSeveritySchema: z.ZodEnum<["destructive", "warning", "info"]>;
32
33
  export type InstanceAiConfirmationSeverity = z.infer<typeof instanceAiConfirmationSeveritySchema>;
33
34
  export declare const instanceAiAgentStatusSchema: z.ZodEnum<["active", "completed", "cancelled", "error"]>;
34
35
  export type InstanceAiAgentStatus = z.infer<typeof instanceAiAgentStatusSchema>;
35
- export declare const instanceAiAgentKindSchema: z.ZodEnum<["builder", "data-table", "delegate", "planner", "eval-setup"]>;
36
+ export declare const instanceAiAgentKindSchema: z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>;
36
37
  export type InstanceAiAgentKind = z.infer<typeof instanceAiAgentKindSchema>;
37
38
  export declare const domainAccessActionSchema: z.ZodEnum<["allow_once", "allow_domain", "allow_all"]>;
38
39
  export type DomainAccessAction = z.infer<typeof domainAccessActionSchema>;
@@ -71,30 +72,33 @@ export declare const runStartPayloadSchema: z.ZodObject<{
71
72
  messageGroupId?: string | undefined;
72
73
  }>;
73
74
  export declare const runFinishPayloadSchema: z.ZodObject<{
74
- status: z.ZodEnum<["completed", "cancelled", "error"]>;
75
+ status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
75
76
  reason: z.ZodOptional<z.ZodString>;
76
77
  archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
78
  }, "strip", z.ZodTypeAny, {
78
- status: "error" | "cancelled" | "completed";
79
+ status: "error" | "completed" | "cancelled" | "interrupted";
79
80
  reason?: string | undefined;
80
81
  archivedWorkflowIds?: string[] | undefined;
81
82
  }, {
82
- status: "error" | "cancelled" | "completed";
83
+ status: "error" | "completed" | "cancelled" | "interrupted";
83
84
  reason?: string | undefined;
84
85
  archivedWorkflowIds?: string[] | undefined;
85
86
  }>;
86
87
  export declare const agentSpawnedTargetResourceSchema: z.ZodObject<{
87
- type: z.ZodEnum<["workflow", "data-table", "credential", "other"]>;
88
+ type: z.ZodEnum<["workflow", "data-table", "credential", "agent", "other"]>;
88
89
  id: z.ZodOptional<z.ZodString>;
89
90
  name: z.ZodOptional<z.ZodString>;
91
+ projectId: z.ZodOptional<z.ZodString>;
90
92
  }, "strip", z.ZodTypeAny, {
91
- type: "credential" | "workflow" | "other" | "data-table";
92
- name?: string | undefined;
93
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
93
94
  id?: string | undefined;
94
- }, {
95
- type: "credential" | "workflow" | "other" | "data-table";
96
95
  name?: string | undefined;
96
+ projectId?: string | undefined;
97
+ }, {
98
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
97
99
  id?: string | undefined;
100
+ name?: string | undefined;
101
+ projectId?: string | undefined;
98
102
  }>;
99
103
  export type InstanceAiTargetResource = z.infer<typeof agentSpawnedTargetResourceSchema>;
100
104
  export declare const agentSpawnedPayloadSchema: z.ZodObject<{
@@ -102,50 +106,55 @@ export declare const agentSpawnedPayloadSchema: z.ZodObject<{
102
106
  role: z.ZodString;
103
107
  tools: z.ZodArray<z.ZodString, "many">;
104
108
  taskId: z.ZodOptional<z.ZodString>;
105
- kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "delegate", "planner", "eval-setup"]>>;
109
+ kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>>;
106
110
  title: z.ZodOptional<z.ZodString>;
107
111
  subtitle: z.ZodOptional<z.ZodString>;
108
112
  goal: z.ZodOptional<z.ZodString>;
109
113
  targetResource: z.ZodOptional<z.ZodObject<{
110
- type: z.ZodEnum<["workflow", "data-table", "credential", "other"]>;
114
+ type: z.ZodEnum<["workflow", "data-table", "credential", "agent", "other"]>;
111
115
  id: z.ZodOptional<z.ZodString>;
112
116
  name: z.ZodOptional<z.ZodString>;
117
+ projectId: z.ZodOptional<z.ZodString>;
113
118
  }, "strip", z.ZodTypeAny, {
114
- type: "credential" | "workflow" | "other" | "data-table";
115
- name?: string | undefined;
119
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
116
120
  id?: string | undefined;
117
- }, {
118
- type: "credential" | "workflow" | "other" | "data-table";
119
121
  name?: string | undefined;
122
+ projectId?: string | undefined;
123
+ }, {
124
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
120
125
  id?: string | undefined;
126
+ name?: string | undefined;
127
+ projectId?: string | undefined;
121
128
  }>>;
122
129
  }, "strip", z.ZodTypeAny, {
123
- tools: string[];
124
- role: string;
125
130
  parentId: string;
126
- title?: string | undefined;
131
+ role: string;
132
+ tools: string[];
127
133
  taskId?: string | undefined;
128
- kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
134
+ kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
135
+ title?: string | undefined;
129
136
  subtitle?: string | undefined;
130
137
  goal?: string | undefined;
131
138
  targetResource?: {
132
- type: "credential" | "workflow" | "other" | "data-table";
133
- name?: string | undefined;
139
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
134
140
  id?: string | undefined;
141
+ name?: string | undefined;
142
+ projectId?: string | undefined;
135
143
  } | undefined;
136
144
  }, {
137
- tools: string[];
138
- role: string;
139
145
  parentId: string;
140
- title?: string | undefined;
146
+ role: string;
147
+ tools: string[];
141
148
  taskId?: string | undefined;
142
- kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
149
+ kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
150
+ title?: string | undefined;
143
151
  subtitle?: string | undefined;
144
152
  goal?: string | undefined;
145
153
  targetResource?: {
146
- type: "credential" | "workflow" | "other" | "data-table";
147
- name?: string | undefined;
154
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
148
155
  id?: string | undefined;
156
+ name?: string | undefined;
157
+ projectId?: string | undefined;
149
158
  } | undefined;
150
159
  }>;
151
160
  export declare const agentCompletedPayloadSchema: z.ZodObject<{
@@ -202,11 +211,11 @@ export declare const toolErrorPayloadSchema: z.ZodObject<{
202
211
  toolCallId: z.ZodString;
203
212
  error: z.ZodString;
204
213
  }, "strip", z.ZodTypeAny, {
205
- toolCallId: string;
206
214
  error: string;
207
- }, {
208
215
  toolCallId: string;
216
+ }, {
209
217
  error: string;
218
+ toolCallId: string;
210
219
  }>;
211
220
  export declare const credentialRequestSchema: z.ZodObject<{
212
221
  credentialType: z.ZodString;
@@ -215,27 +224,27 @@ export declare const credentialRequestSchema: z.ZodObject<{
215
224
  id: z.ZodString;
216
225
  name: z.ZodString;
217
226
  }, "strip", z.ZodTypeAny, {
218
- name: string;
219
227
  id: string;
220
- }, {
221
228
  name: string;
229
+ }, {
222
230
  id: string;
231
+ name: string;
223
232
  }>, "many">;
224
233
  suggestedName: z.ZodOptional<z.ZodString>;
225
234
  }, "strip", z.ZodTypeAny, {
226
- credentialType: string;
227
235
  reason: string;
236
+ credentialType: string;
228
237
  existingCredentials: {
229
- name: string;
230
238
  id: string;
239
+ name: string;
231
240
  }[];
232
241
  suggestedName?: string | undefined;
233
242
  }, {
234
- credentialType: string;
235
243
  reason: string;
244
+ credentialType: string;
236
245
  existingCredentials: {
237
- name: string;
238
246
  id: string;
247
+ name: string;
239
248
  }[];
240
249
  suggestedName?: string | undefined;
241
250
  }>;
@@ -258,54 +267,54 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
258
267
  id: z.ZodString;
259
268
  name: z.ZodString;
260
269
  }, "strip", z.ZodTypeAny, {
261
- name: string;
262
270
  id: string;
263
- }, {
264
271
  name: string;
272
+ }, {
265
273
  id: string;
274
+ name: string;
266
275
  }>, z.ZodObject<{
267
276
  id: z.ZodNull;
268
277
  name: z.ZodString;
269
278
  __aiGatewayManaged: z.ZodLiteral<true>;
270
279
  }, "strip", z.ZodTypeAny, {
271
- name: string;
272
280
  id: null;
281
+ name: string;
273
282
  __aiGatewayManaged: true;
274
283
  }, {
275
- name: string;
276
284
  id: null;
285
+ name: string;
277
286
  __aiGatewayManaged: true;
278
287
  }>]>>>;
279
288
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
280
289
  id: z.ZodString;
281
290
  }, "strip", z.ZodTypeAny, {
282
291
  type: string;
283
- name: string;
284
292
  id: string;
293
+ name: string;
285
294
  typeVersion: number;
286
295
  parameters: Record<string, unknown>;
287
296
  position: [number, number];
288
297
  credentials?: Record<string, {
289
- name: string;
290
298
  id: string;
291
- } | {
292
299
  name: string;
300
+ } | {
293
301
  id: null;
302
+ name: string;
294
303
  __aiGatewayManaged: true;
295
304
  }> | undefined;
296
305
  }, {
297
306
  type: string;
298
- name: string;
299
307
  id: string;
308
+ name: string;
300
309
  typeVersion: number;
301
310
  parameters: Record<string, unknown>;
302
311
  position: [number, number];
303
312
  credentials?: Record<string, {
304
- name: string;
305
313
  id: string;
306
- } | {
307
314
  name: string;
315
+ } | {
308
316
  id: null;
317
+ name: string;
309
318
  __aiGatewayManaged: true;
310
319
  }> | undefined;
311
320
  }>;
@@ -314,11 +323,11 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
314
323
  id: z.ZodString;
315
324
  name: z.ZodString;
316
325
  }, "strip", z.ZodTypeAny, {
317
- name: string;
318
326
  id: string;
319
- }, {
320
327
  name: string;
328
+ }, {
321
329
  id: string;
330
+ name: string;
322
331
  }>, "many">>;
323
332
  isTrigger: z.ZodBoolean;
324
333
  isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
@@ -369,8 +378,8 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
369
378
  value: string | number | boolean;
370
379
  name: string;
371
380
  }[] | undefined;
372
- default?: unknown;
373
381
  required?: boolean | undefined;
382
+ default?: unknown;
374
383
  }, {
375
384
  type: string;
376
385
  name: string;
@@ -379,8 +388,8 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
379
388
  value: string | number | boolean;
380
389
  name: string;
381
390
  }[] | undefined;
382
- default?: unknown;
383
391
  required?: boolean | undefined;
392
+ default?: unknown;
384
393
  }>, "many">>;
385
394
  needsAction: z.ZodOptional<z.ZodBoolean>;
386
395
  subnodeRootNode: z.ZodOptional<z.ZodObject<{
@@ -390,37 +399,37 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
390
399
  id: z.ZodString;
391
400
  }, "strip", z.ZodTypeAny, {
392
401
  type: string;
393
- name: string;
394
402
  id: string;
403
+ name: string;
395
404
  typeVersion: number;
396
405
  }, {
397
406
  type: string;
398
- name: string;
399
407
  id: string;
408
+ name: string;
400
409
  typeVersion: number;
401
410
  }>>;
402
411
  }, "strip", z.ZodTypeAny, {
403
412
  node: {
404
413
  type: string;
405
- name: string;
406
414
  id: string;
415
+ name: string;
407
416
  typeVersion: number;
408
417
  parameters: Record<string, unknown>;
409
418
  position: [number, number];
410
419
  credentials?: Record<string, {
411
- name: string;
412
420
  id: string;
413
- } | {
414
421
  name: string;
422
+ } | {
415
423
  id: null;
424
+ name: string;
416
425
  __aiGatewayManaged: true;
417
426
  }> | undefined;
418
427
  };
419
428
  isTrigger: boolean;
420
429
  credentialType?: string | undefined;
421
430
  existingCredentials?: {
422
- name: string;
423
431
  id: string;
432
+ name: string;
424
433
  }[] | undefined;
425
434
  isFirstTrigger?: boolean | undefined;
426
435
  isTestable?: boolean | undefined;
@@ -442,38 +451,38 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
442
451
  value: string | number | boolean;
443
452
  name: string;
444
453
  }[] | undefined;
445
- default?: unknown;
446
454
  required?: boolean | undefined;
455
+ default?: unknown;
447
456
  }[] | undefined;
448
457
  needsAction?: boolean | undefined;
449
458
  subnodeRootNode?: {
450
459
  type: string;
451
- name: string;
452
460
  id: string;
461
+ name: string;
453
462
  typeVersion: number;
454
463
  } | undefined;
455
464
  }, {
456
465
  node: {
457
466
  type: string;
458
- name: string;
459
467
  id: string;
468
+ name: string;
460
469
  typeVersion: number;
461
470
  parameters: Record<string, unknown>;
462
471
  position: [number, number];
463
472
  credentials?: Record<string, {
464
- name: string;
465
473
  id: string;
466
- } | {
467
474
  name: string;
475
+ } | {
468
476
  id: null;
477
+ name: string;
469
478
  __aiGatewayManaged: true;
470
479
  }> | undefined;
471
480
  };
472
481
  isTrigger: boolean;
473
482
  credentialType?: string | undefined;
474
483
  existingCredentials?: {
475
- name: string;
476
484
  id: string;
485
+ name: string;
477
486
  }[] | undefined;
478
487
  isFirstTrigger?: boolean | undefined;
479
488
  isTestable?: boolean | undefined;
@@ -495,14 +504,14 @@ export declare const workflowSetupNodeSchema: z.ZodObject<{
495
504
  value: string | number | boolean;
496
505
  name: string;
497
506
  }[] | undefined;
498
- default?: unknown;
499
507
  required?: boolean | undefined;
508
+ default?: unknown;
500
509
  }[] | undefined;
501
510
  needsAction?: boolean | undefined;
502
511
  subnodeRootNode?: {
503
512
  type: string;
504
- name: string;
505
513
  id: string;
514
+ name: string;
506
515
  typeVersion: number;
507
516
  } | undefined;
508
517
  }>;
@@ -513,14 +522,14 @@ export declare const taskItemSchema: z.ZodObject<{
513
522
  detail: z.ZodOptional<z.ZodString>;
514
523
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
515
524
  }, "strip", z.ZodTypeAny, {
516
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
517
- description: string;
525
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
518
526
  id: string;
527
+ description: string;
519
528
  detail?: string | undefined;
520
529
  }, {
521
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
522
- description: string;
530
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
523
531
  id: string;
532
+ description: string;
524
533
  detail?: string | undefined;
525
534
  }>;
526
535
  export type TaskItem = z.infer<typeof taskItemSchema>;
@@ -531,28 +540,28 @@ export declare const taskListSchema: z.ZodObject<{
531
540
  detail: z.ZodOptional<z.ZodString>;
532
541
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
533
542
  }, "strip", z.ZodTypeAny, {
534
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
535
- description: string;
543
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
536
544
  id: string;
545
+ description: string;
537
546
  detail?: string | undefined;
538
547
  }, {
539
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
540
- description: string;
548
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
541
549
  id: string;
550
+ description: string;
542
551
  detail?: string | undefined;
543
552
  }>, "many">;
544
553
  }, "strip", z.ZodTypeAny, {
545
554
  tasks: {
546
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
547
- description: string;
555
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
548
556
  id: string;
557
+ description: string;
549
558
  detail?: string | undefined;
550
559
  }[];
551
560
  }, {
552
561
  tasks: {
553
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
554
- description: string;
562
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
555
563
  id: string;
564
+ description: string;
556
565
  detail?: string | undefined;
557
566
  }[];
558
567
  }>;
@@ -568,8 +577,8 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
568
577
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
569
578
  }, "strip", z.ZodTypeAny, {
570
579
  id: string;
571
- title: string;
572
580
  kind: string;
581
+ title: string;
573
582
  spec: string;
574
583
  deps: string[];
575
584
  tools?: string[] | undefined;
@@ -577,8 +586,8 @@ export declare const plannedTaskArgSchema: z.ZodObject<{
577
586
  isSupportingWorkflow?: boolean | undefined;
578
587
  }, {
579
588
  id: string;
580
- title: string;
581
589
  kind: string;
590
+ title: string;
582
591
  spec: string;
583
592
  deps: string[];
584
593
  tools?: string[] | undefined;
@@ -624,6 +633,17 @@ export declare const gatewayConfirmationRequiredPayloadSchema: z.ZodObject<{
624
633
  resource: string;
625
634
  }>;
626
635
  export type GatewayConfirmationRequiredPayload = z.infer<typeof gatewayConfirmationRequiredPayloadSchema>;
636
+ export declare const channelConfigSchema: z.ZodObject<{
637
+ integrationType: z.ZodString;
638
+ agentId: z.ZodString;
639
+ }, "strip", z.ZodTypeAny, {
640
+ integrationType: string;
641
+ agentId: string;
642
+ }, {
643
+ integrationType: string;
644
+ agentId: string;
645
+ }>;
646
+ export type InstanceAiChannelConfig = z.infer<typeof channelConfigSchema>;
627
647
  export declare const confirmationInputTypeSchema: z.ZodEnum<["approval", "text", "questions", "plan-review", "resource-decision", "continue"]>;
628
648
  export type InstanceAiConfirmationInputType = z.infer<typeof confirmationInputTypeSchema>;
629
649
  export declare const confirmationRequestPayloadSchema: z.ZodObject<{
@@ -641,27 +661,27 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
641
661
  id: z.ZodString;
642
662
  name: z.ZodString;
643
663
  }, "strip", z.ZodTypeAny, {
644
- name: string;
645
664
  id: string;
646
- }, {
647
665
  name: string;
666
+ }, {
648
667
  id: string;
668
+ name: string;
649
669
  }>, "many">;
650
670
  suggestedName: z.ZodOptional<z.ZodString>;
651
671
  }, "strip", z.ZodTypeAny, {
652
- credentialType: string;
653
672
  reason: string;
673
+ credentialType: string;
654
674
  existingCredentials: {
655
- name: string;
656
675
  id: string;
676
+ name: string;
657
677
  }[];
658
678
  suggestedName?: string | undefined;
659
679
  }, {
660
- credentialType: string;
661
680
  reason: string;
681
+ credentialType: string;
662
682
  existingCredentials: {
663
- name: string;
664
683
  id: string;
684
+ name: string;
665
685
  }[];
666
686
  suggestedName?: string | undefined;
667
687
  }>, "many">>;
@@ -674,13 +694,13 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
674
694
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
675
695
  }, "strip", z.ZodTypeAny, {
676
696
  type: "text" | "single" | "multi";
677
- question: string;
678
697
  id: string;
698
+ question: string;
679
699
  options?: string[] | undefined;
680
700
  }, {
681
701
  type: "text" | "single" | "multi";
682
- question: string;
683
702
  id: string;
703
+ question: string;
684
704
  options?: string[] | undefined;
685
705
  }>, "many">>;
686
706
  introMessage: z.ZodOptional<z.ZodString>;
@@ -691,28 +711,28 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
691
711
  detail: z.ZodOptional<z.ZodString>;
692
712
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
693
713
  }, "strip", z.ZodTypeAny, {
694
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
695
- description: string;
714
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
696
715
  id: string;
716
+ description: string;
697
717
  detail?: string | undefined;
698
718
  }, {
699
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
700
- description: string;
719
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
701
720
  id: string;
721
+ description: string;
702
722
  detail?: string | undefined;
703
723
  }>, "many">;
704
724
  }, "strip", z.ZodTypeAny, {
705
725
  tasks: {
706
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
707
- description: string;
726
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
708
727
  id: string;
728
+ description: string;
709
729
  detail?: string | undefined;
710
730
  }[];
711
731
  }, {
712
732
  tasks: {
713
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
714
- description: string;
733
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
715
734
  id: string;
735
+ description: string;
716
736
  detail?: string | undefined;
717
737
  }[];
718
738
  }>>;
@@ -727,8 +747,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
727
747
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
728
748
  }, "strip", z.ZodTypeAny, {
729
749
  id: string;
730
- title: string;
731
750
  kind: string;
751
+ title: string;
732
752
  spec: string;
733
753
  deps: string[];
734
754
  tools?: string[] | undefined;
@@ -736,8 +756,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
736
756
  isSupportingWorkflow?: boolean | undefined;
737
757
  }, {
738
758
  id: string;
739
- title: string;
740
759
  kind: string;
760
+ title: string;
741
761
  spec: string;
742
762
  deps: string[];
743
763
  tools?: string[] | undefined;
@@ -778,54 +798,54 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
778
798
  id: z.ZodString;
779
799
  name: z.ZodString;
780
800
  }, "strip", z.ZodTypeAny, {
781
- name: string;
782
801
  id: string;
783
- }, {
784
802
  name: string;
803
+ }, {
785
804
  id: string;
805
+ name: string;
786
806
  }>, z.ZodObject<{
787
807
  id: z.ZodNull;
788
808
  name: z.ZodString;
789
809
  __aiGatewayManaged: z.ZodLiteral<true>;
790
810
  }, "strip", z.ZodTypeAny, {
791
- name: string;
792
811
  id: null;
812
+ name: string;
793
813
  __aiGatewayManaged: true;
794
814
  }, {
795
- name: string;
796
815
  id: null;
816
+ name: string;
797
817
  __aiGatewayManaged: true;
798
818
  }>]>>>;
799
819
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
800
820
  id: z.ZodString;
801
821
  }, "strip", z.ZodTypeAny, {
802
822
  type: string;
803
- name: string;
804
823
  id: string;
824
+ name: string;
805
825
  typeVersion: number;
806
826
  parameters: Record<string, unknown>;
807
827
  position: [number, number];
808
828
  credentials?: Record<string, {
809
- name: string;
810
829
  id: string;
811
- } | {
812
830
  name: string;
831
+ } | {
813
832
  id: null;
833
+ name: string;
814
834
  __aiGatewayManaged: true;
815
835
  }> | undefined;
816
836
  }, {
817
837
  type: string;
818
- name: string;
819
838
  id: string;
839
+ name: string;
820
840
  typeVersion: number;
821
841
  parameters: Record<string, unknown>;
822
842
  position: [number, number];
823
843
  credentials?: Record<string, {
824
- name: string;
825
844
  id: string;
826
- } | {
827
845
  name: string;
846
+ } | {
828
847
  id: null;
848
+ name: string;
829
849
  __aiGatewayManaged: true;
830
850
  }> | undefined;
831
851
  }>;
@@ -834,11 +854,11 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
834
854
  id: z.ZodString;
835
855
  name: z.ZodString;
836
856
  }, "strip", z.ZodTypeAny, {
837
- name: string;
838
857
  id: string;
839
- }, {
840
858
  name: string;
859
+ }, {
841
860
  id: string;
861
+ name: string;
842
862
  }>, "many">>;
843
863
  isTrigger: z.ZodBoolean;
844
864
  isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
@@ -889,8 +909,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
889
909
  value: string | number | boolean;
890
910
  name: string;
891
911
  }[] | undefined;
892
- default?: unknown;
893
912
  required?: boolean | undefined;
913
+ default?: unknown;
894
914
  }, {
895
915
  type: string;
896
916
  name: string;
@@ -899,8 +919,8 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
899
919
  value: string | number | boolean;
900
920
  name: string;
901
921
  }[] | undefined;
902
- default?: unknown;
903
922
  required?: boolean | undefined;
923
+ default?: unknown;
904
924
  }>, "many">>;
905
925
  needsAction: z.ZodOptional<z.ZodBoolean>;
906
926
  subnodeRootNode: z.ZodOptional<z.ZodObject<{
@@ -910,37 +930,37 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
910
930
  id: z.ZodString;
911
931
  }, "strip", z.ZodTypeAny, {
912
932
  type: string;
913
- name: string;
914
933
  id: string;
934
+ name: string;
915
935
  typeVersion: number;
916
936
  }, {
917
937
  type: string;
918
- name: string;
919
938
  id: string;
939
+ name: string;
920
940
  typeVersion: number;
921
941
  }>>;
922
942
  }, "strip", z.ZodTypeAny, {
923
943
  node: {
924
944
  type: string;
925
- name: string;
926
945
  id: string;
946
+ name: string;
927
947
  typeVersion: number;
928
948
  parameters: Record<string, unknown>;
929
949
  position: [number, number];
930
950
  credentials?: Record<string, {
931
- name: string;
932
951
  id: string;
933
- } | {
934
952
  name: string;
953
+ } | {
935
954
  id: null;
955
+ name: string;
936
956
  __aiGatewayManaged: true;
937
957
  }> | undefined;
938
958
  };
939
959
  isTrigger: boolean;
940
960
  credentialType?: string | undefined;
941
961
  existingCredentials?: {
942
- name: string;
943
962
  id: string;
963
+ name: string;
944
964
  }[] | undefined;
945
965
  isFirstTrigger?: boolean | undefined;
946
966
  isTestable?: boolean | undefined;
@@ -962,38 +982,38 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
962
982
  value: string | number | boolean;
963
983
  name: string;
964
984
  }[] | undefined;
965
- default?: unknown;
966
985
  required?: boolean | undefined;
986
+ default?: unknown;
967
987
  }[] | undefined;
968
988
  needsAction?: boolean | undefined;
969
989
  subnodeRootNode?: {
970
990
  type: string;
971
- name: string;
972
991
  id: string;
992
+ name: string;
973
993
  typeVersion: number;
974
994
  } | undefined;
975
995
  }, {
976
996
  node: {
977
997
  type: string;
978
- name: string;
979
998
  id: string;
999
+ name: string;
980
1000
  typeVersion: number;
981
1001
  parameters: Record<string, unknown>;
982
1002
  position: [number, number];
983
1003
  credentials?: Record<string, {
984
- name: string;
985
1004
  id: string;
986
- } | {
987
1005
  name: string;
1006
+ } | {
988
1007
  id: null;
1008
+ name: string;
989
1009
  __aiGatewayManaged: true;
990
1010
  }> | undefined;
991
1011
  };
992
1012
  isTrigger: boolean;
993
1013
  credentialType?: string | undefined;
994
1014
  existingCredentials?: {
995
- name: string;
996
1015
  id: string;
1016
+ name: string;
997
1017
  }[] | undefined;
998
1018
  isFirstTrigger?: boolean | undefined;
999
1019
  isTestable?: boolean | undefined;
@@ -1015,14 +1035,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1015
1035
  value: string | number | boolean;
1016
1036
  name: string;
1017
1037
  }[] | undefined;
1018
- default?: unknown;
1019
1038
  required?: boolean | undefined;
1039
+ default?: unknown;
1020
1040
  }[] | undefined;
1021
1041
  needsAction?: boolean | undefined;
1022
1042
  subnodeRootNode?: {
1023
1043
  type: string;
1024
- name: string;
1025
1044
  id: string;
1045
+ name: string;
1026
1046
  typeVersion: number;
1027
1047
  } | undefined;
1028
1048
  }>, "many">>;
@@ -1044,48 +1064,55 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1044
1064
  toolGroup: string;
1045
1065
  resource: string;
1046
1066
  }>>;
1067
+ channelConfig: z.ZodOptional<z.ZodObject<{
1068
+ integrationType: z.ZodString;
1069
+ agentId: z.ZodString;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ integrationType: string;
1072
+ agentId: string;
1073
+ }, {
1074
+ integrationType: string;
1075
+ agentId: string;
1076
+ }>>;
1047
1077
  }, "strip", z.ZodTypeAny, {
1048
1078
  message: string;
1049
1079
  toolCallId: string;
1050
1080
  toolName: string;
1051
1081
  args: Record<string, unknown>;
1052
1082
  requestId: string;
1053
- severity: "info" | "destructive" | "warning";
1083
+ severity: "destructive" | "warning" | "info";
1084
+ projectId?: string | undefined;
1054
1085
  tasks?: {
1055
1086
  tasks: {
1056
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1057
- description: string;
1087
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1058
1088
  id: string;
1089
+ description: string;
1059
1090
  detail?: string | undefined;
1060
1091
  }[];
1061
1092
  } | undefined;
1062
- webSearch?: {
1063
- query: string;
1064
- } | undefined;
1065
1093
  workflowId?: string | undefined;
1066
- projectId?: string | undefined;
1067
1094
  questions?: {
1068
1095
  type: "text" | "single" | "multi";
1069
- question: string;
1070
1096
  id: string;
1097
+ question: string;
1071
1098
  options?: string[] | undefined;
1072
1099
  }[] | undefined;
1073
1100
  inputThreadId?: string | undefined;
1074
1101
  credentialRequests?: {
1075
- credentialType: string;
1076
1102
  reason: string;
1103
+ credentialType: string;
1077
1104
  existingCredentials: {
1078
- name: string;
1079
1105
  id: string;
1106
+ name: string;
1080
1107
  }[];
1081
1108
  suggestedName?: string | undefined;
1082
1109
  }[] | undefined;
1083
- inputType?: "approval" | "text" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
1110
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
1084
1111
  introMessage?: string | undefined;
1085
1112
  planItems?: {
1086
1113
  id: string;
1087
- title: string;
1088
1114
  kind: string;
1115
+ title: string;
1089
1116
  spec: string;
1090
1117
  deps: string[];
1091
1118
  tools?: string[] | undefined;
@@ -1096,31 +1123,34 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1096
1123
  url: string;
1097
1124
  host: string;
1098
1125
  } | undefined;
1126
+ webSearch?: {
1127
+ query: string;
1128
+ } | undefined;
1099
1129
  credentialFlow?: {
1100
1130
  stage: "generic" | "finalize";
1101
1131
  } | undefined;
1102
1132
  setupRequests?: {
1103
1133
  node: {
1104
1134
  type: string;
1105
- name: string;
1106
1135
  id: string;
1136
+ name: string;
1107
1137
  typeVersion: number;
1108
1138
  parameters: Record<string, unknown>;
1109
1139
  position: [number, number];
1110
1140
  credentials?: Record<string, {
1111
- name: string;
1112
1141
  id: string;
1113
- } | {
1114
1142
  name: string;
1143
+ } | {
1115
1144
  id: null;
1145
+ name: string;
1116
1146
  __aiGatewayManaged: true;
1117
1147
  }> | undefined;
1118
1148
  };
1119
1149
  isTrigger: boolean;
1120
1150
  credentialType?: string | undefined;
1121
1151
  existingCredentials?: {
1122
- name: string;
1123
1152
  id: string;
1153
+ name: string;
1124
1154
  }[] | undefined;
1125
1155
  isFirstTrigger?: boolean | undefined;
1126
1156
  isTestable?: boolean | undefined;
@@ -1142,14 +1172,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1142
1172
  value: string | number | boolean;
1143
1173
  name: string;
1144
1174
  }[] | undefined;
1145
- default?: unknown;
1146
1175
  required?: boolean | undefined;
1176
+ default?: unknown;
1147
1177
  }[] | undefined;
1148
1178
  needsAction?: boolean | undefined;
1149
1179
  subnodeRootNode?: {
1150
1180
  type: string;
1151
- name: string;
1152
1181
  id: string;
1182
+ name: string;
1153
1183
  typeVersion: number;
1154
1184
  } | undefined;
1155
1185
  }[] | undefined;
@@ -1159,48 +1189,49 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1159
1189
  toolGroup: string;
1160
1190
  resource: string;
1161
1191
  } | undefined;
1192
+ channelConfig?: {
1193
+ integrationType: string;
1194
+ agentId: string;
1195
+ } | undefined;
1162
1196
  }, {
1163
1197
  message: string;
1164
1198
  toolCallId: string;
1165
1199
  toolName: string;
1166
1200
  args: Record<string, unknown>;
1167
1201
  requestId: string;
1168
- severity: "info" | "destructive" | "warning";
1202
+ severity: "destructive" | "warning" | "info";
1203
+ projectId?: string | undefined;
1169
1204
  tasks?: {
1170
1205
  tasks: {
1171
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1172
- description: string;
1206
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1173
1207
  id: string;
1208
+ description: string;
1174
1209
  detail?: string | undefined;
1175
1210
  }[];
1176
1211
  } | undefined;
1177
- webSearch?: {
1178
- query: string;
1179
- } | undefined;
1180
1212
  workflowId?: string | undefined;
1181
- projectId?: string | undefined;
1182
1213
  questions?: {
1183
1214
  type: "text" | "single" | "multi";
1184
- question: string;
1185
1215
  id: string;
1216
+ question: string;
1186
1217
  options?: string[] | undefined;
1187
1218
  }[] | undefined;
1188
1219
  inputThreadId?: string | undefined;
1189
1220
  credentialRequests?: {
1190
- credentialType: string;
1191
1221
  reason: string;
1222
+ credentialType: string;
1192
1223
  existingCredentials: {
1193
- name: string;
1194
1224
  id: string;
1225
+ name: string;
1195
1226
  }[];
1196
1227
  suggestedName?: string | undefined;
1197
1228
  }[] | undefined;
1198
- inputType?: "approval" | "text" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
1229
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
1199
1230
  introMessage?: string | undefined;
1200
1231
  planItems?: {
1201
1232
  id: string;
1202
- title: string;
1203
1233
  kind: string;
1234
+ title: string;
1204
1235
  spec: string;
1205
1236
  deps: string[];
1206
1237
  tools?: string[] | undefined;
@@ -1211,31 +1242,34 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1211
1242
  url: string;
1212
1243
  host: string;
1213
1244
  } | undefined;
1245
+ webSearch?: {
1246
+ query: string;
1247
+ } | undefined;
1214
1248
  credentialFlow?: {
1215
1249
  stage: "generic" | "finalize";
1216
1250
  } | undefined;
1217
1251
  setupRequests?: {
1218
1252
  node: {
1219
1253
  type: string;
1220
- name: string;
1221
1254
  id: string;
1255
+ name: string;
1222
1256
  typeVersion: number;
1223
1257
  parameters: Record<string, unknown>;
1224
1258
  position: [number, number];
1225
1259
  credentials?: Record<string, {
1226
- name: string;
1227
1260
  id: string;
1228
- } | {
1229
1261
  name: string;
1262
+ } | {
1230
1263
  id: null;
1264
+ name: string;
1231
1265
  __aiGatewayManaged: true;
1232
1266
  }> | undefined;
1233
1267
  };
1234
1268
  isTrigger: boolean;
1235
1269
  credentialType?: string | undefined;
1236
1270
  existingCredentials?: {
1237
- name: string;
1238
1271
  id: string;
1272
+ name: string;
1239
1273
  }[] | undefined;
1240
1274
  isFirstTrigger?: boolean | undefined;
1241
1275
  isTestable?: boolean | undefined;
@@ -1257,14 +1291,14 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1257
1291
  value: string | number | boolean;
1258
1292
  name: string;
1259
1293
  }[] | undefined;
1260
- default?: unknown;
1261
1294
  required?: boolean | undefined;
1295
+ default?: unknown;
1262
1296
  }[] | undefined;
1263
1297
  needsAction?: boolean | undefined;
1264
1298
  subnodeRootNode?: {
1265
1299
  type: string;
1266
- name: string;
1267
1300
  id: string;
1301
+ name: string;
1268
1302
  typeVersion: number;
1269
1303
  } | undefined;
1270
1304
  }[] | undefined;
@@ -1274,6 +1308,10 @@ export declare const confirmationRequestPayloadSchema: z.ZodObject<{
1274
1308
  toolGroup: string;
1275
1309
  resource: string;
1276
1310
  } | undefined;
1311
+ channelConfig?: {
1312
+ integrationType: string;
1313
+ agentId: string;
1314
+ } | undefined;
1277
1315
  }>;
1278
1316
  export type InstanceAiConfirmationRequestPayload = z.infer<typeof confirmationRequestPayloadSchema>;
1279
1317
  export declare function isDisplayableConfirmationRequest(payload: InstanceAiConfirmationRequestPayload): boolean;
@@ -1291,13 +1329,13 @@ export declare const errorPayloadSchema: z.ZodObject<{
1291
1329
  technicalDetails: z.ZodOptional<z.ZodString>;
1292
1330
  }, "strip", z.ZodTypeAny, {
1293
1331
  content: string;
1294
- provider?: string | undefined;
1295
1332
  statusCode?: number | undefined;
1333
+ provider?: string | undefined;
1296
1334
  technicalDetails?: string | undefined;
1297
1335
  }, {
1298
1336
  content: string;
1299
- provider?: string | undefined;
1300
1337
  statusCode?: number | undefined;
1338
+ provider?: string | undefined;
1301
1339
  technicalDetails?: string | undefined;
1302
1340
  }>;
1303
1341
  export declare const mcpToolAnnotationsSchema: z.ZodObject<{
@@ -1951,28 +1989,28 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1951
1989
  detail: z.ZodOptional<z.ZodString>;
1952
1990
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
1953
1991
  }, "strip", z.ZodTypeAny, {
1954
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1955
- description: string;
1992
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1956
1993
  id: string;
1994
+ description: string;
1957
1995
  detail?: string | undefined;
1958
1996
  }, {
1959
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1960
- description: string;
1997
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1961
1998
  id: string;
1999
+ description: string;
1962
2000
  detail?: string | undefined;
1963
2001
  }>, "many">;
1964
2002
  }, "strip", z.ZodTypeAny, {
1965
2003
  tasks: {
1966
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1967
- description: string;
2004
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1968
2005
  id: string;
2006
+ description: string;
1969
2007
  detail?: string | undefined;
1970
2008
  }[];
1971
2009
  }, {
1972
2010
  tasks: {
1973
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
1974
- description: string;
2011
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
1975
2012
  id: string;
2013
+ description: string;
1976
2014
  detail?: string | undefined;
1977
2015
  }[];
1978
2016
  }>;
@@ -1987,8 +2025,8 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1987
2025
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
1988
2026
  }, "strip", z.ZodTypeAny, {
1989
2027
  id: string;
1990
- title: string;
1991
2028
  kind: string;
2029
+ title: string;
1992
2030
  spec: string;
1993
2031
  deps: string[];
1994
2032
  tools?: string[] | undefined;
@@ -1996,8 +2034,8 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
1996
2034
  isSupportingWorkflow?: boolean | undefined;
1997
2035
  }, {
1998
2036
  id: string;
1999
- title: string;
2000
2037
  kind: string;
2038
+ title: string;
2001
2039
  spec: string;
2002
2040
  deps: string[];
2003
2041
  tools?: string[] | undefined;
@@ -2007,16 +2045,16 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
2007
2045
  }, "strip", z.ZodTypeAny, {
2008
2046
  tasks: {
2009
2047
  tasks: {
2010
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2011
- description: string;
2048
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2012
2049
  id: string;
2050
+ description: string;
2013
2051
  detail?: string | undefined;
2014
2052
  }[];
2015
2053
  };
2016
2054
  planItems?: {
2017
2055
  id: string;
2018
- title: string;
2019
2056
  kind: string;
2057
+ title: string;
2020
2058
  spec: string;
2021
2059
  deps: string[];
2022
2060
  tools?: string[] | undefined;
@@ -2026,16 +2064,16 @@ export declare const tasksUpdatePayloadSchema: z.ZodObject<{
2026
2064
  }, {
2027
2065
  tasks: {
2028
2066
  tasks: {
2029
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2030
- description: string;
2067
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2031
2068
  id: string;
2069
+ description: string;
2032
2070
  detail?: string | undefined;
2033
2071
  }[];
2034
2072
  };
2035
2073
  planItems?: {
2036
2074
  id: string;
2037
- title: string;
2038
2075
  kind: string;
2076
+ title: string;
2039
2077
  spec: string;
2040
2078
  deps: string[];
2041
2079
  tools?: string[] | undefined;
@@ -2072,36 +2110,36 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2072
2110
  }, "strip", z.ZodTypeAny, {
2073
2111
  type: "run-start";
2074
2112
  agentId: string;
2075
- runId: string;
2076
2113
  payload: {
2077
2114
  messageId: string;
2078
2115
  traceId?: string | undefined;
2079
2116
  messageGroupId?: string | undefined;
2080
2117
  };
2118
+ runId: string;
2081
2119
  userId?: string | undefined;
2082
2120
  responseId?: string | undefined;
2083
2121
  }, {
2084
2122
  type: "run-start";
2085
2123
  agentId: string;
2086
- runId: string;
2087
2124
  payload: {
2088
2125
  messageId: string;
2089
2126
  traceId?: string | undefined;
2090
2127
  messageGroupId?: string | undefined;
2091
2128
  };
2129
+ runId: string;
2092
2130
  userId?: string | undefined;
2093
2131
  responseId?: string | undefined;
2094
2132
  }>, z.ZodObject<{
2095
2133
  payload: z.ZodObject<{
2096
- status: z.ZodEnum<["completed", "cancelled", "error"]>;
2134
+ status: z.ZodEnum<["completed", "cancelled", "error", "interrupted"]>;
2097
2135
  reason: z.ZodOptional<z.ZodString>;
2098
2136
  archivedWorkflowIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2099
2137
  }, "strip", z.ZodTypeAny, {
2100
- status: "error" | "cancelled" | "completed";
2138
+ status: "error" | "completed" | "cancelled" | "interrupted";
2101
2139
  reason?: string | undefined;
2102
2140
  archivedWorkflowIds?: string[] | undefined;
2103
2141
  }, {
2104
- status: "error" | "cancelled" | "completed";
2142
+ status: "error" | "completed" | "cancelled" | "interrupted";
2105
2143
  reason?: string | undefined;
2106
2144
  archivedWorkflowIds?: string[] | undefined;
2107
2145
  }>;
@@ -2113,23 +2151,23 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2113
2151
  }, "strip", z.ZodTypeAny, {
2114
2152
  type: "run-finish";
2115
2153
  agentId: string;
2116
- runId: string;
2117
2154
  payload: {
2118
- status: "error" | "cancelled" | "completed";
2155
+ status: "error" | "completed" | "cancelled" | "interrupted";
2119
2156
  reason?: string | undefined;
2120
2157
  archivedWorkflowIds?: string[] | undefined;
2121
2158
  };
2159
+ runId: string;
2122
2160
  userId?: string | undefined;
2123
2161
  responseId?: string | undefined;
2124
2162
  }, {
2125
2163
  type: "run-finish";
2126
2164
  agentId: string;
2127
- runId: string;
2128
2165
  payload: {
2129
- status: "error" | "cancelled" | "completed";
2166
+ status: "error" | "completed" | "cancelled" | "interrupted";
2130
2167
  reason?: string | undefined;
2131
2168
  archivedWorkflowIds?: string[] | undefined;
2132
2169
  };
2170
+ runId: string;
2133
2171
  userId?: string | undefined;
2134
2172
  responseId?: string | undefined;
2135
2173
  }>, z.ZodObject<{
@@ -2138,50 +2176,55 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2138
2176
  role: z.ZodString;
2139
2177
  tools: z.ZodArray<z.ZodString, "many">;
2140
2178
  taskId: z.ZodOptional<z.ZodString>;
2141
- kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "delegate", "planner", "eval-setup"]>>;
2179
+ kind: z.ZodOptional<z.ZodEnum<["builder", "data-table", "planner", "eval-setup", "agent-builder"]>>;
2142
2180
  title: z.ZodOptional<z.ZodString>;
2143
2181
  subtitle: z.ZodOptional<z.ZodString>;
2144
2182
  goal: z.ZodOptional<z.ZodString>;
2145
2183
  targetResource: z.ZodOptional<z.ZodObject<{
2146
- type: z.ZodEnum<["workflow", "data-table", "credential", "other"]>;
2184
+ type: z.ZodEnum<["workflow", "data-table", "credential", "agent", "other"]>;
2147
2185
  id: z.ZodOptional<z.ZodString>;
2148
2186
  name: z.ZodOptional<z.ZodString>;
2187
+ projectId: z.ZodOptional<z.ZodString>;
2149
2188
  }, "strip", z.ZodTypeAny, {
2150
- type: "credential" | "workflow" | "other" | "data-table";
2151
- name?: string | undefined;
2189
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
2152
2190
  id?: string | undefined;
2153
- }, {
2154
- type: "credential" | "workflow" | "other" | "data-table";
2155
2191
  name?: string | undefined;
2192
+ projectId?: string | undefined;
2193
+ }, {
2194
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
2156
2195
  id?: string | undefined;
2196
+ name?: string | undefined;
2197
+ projectId?: string | undefined;
2157
2198
  }>>;
2158
2199
  }, "strip", z.ZodTypeAny, {
2159
- tools: string[];
2160
- role: string;
2161
2200
  parentId: string;
2162
- title?: string | undefined;
2201
+ role: string;
2202
+ tools: string[];
2163
2203
  taskId?: string | undefined;
2164
- kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
2204
+ kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2205
+ title?: string | undefined;
2165
2206
  subtitle?: string | undefined;
2166
2207
  goal?: string | undefined;
2167
2208
  targetResource?: {
2168
- type: "credential" | "workflow" | "other" | "data-table";
2169
- name?: string | undefined;
2209
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
2170
2210
  id?: string | undefined;
2211
+ name?: string | undefined;
2212
+ projectId?: string | undefined;
2171
2213
  } | undefined;
2172
2214
  }, {
2173
- tools: string[];
2174
- role: string;
2175
2215
  parentId: string;
2176
- title?: string | undefined;
2216
+ role: string;
2217
+ tools: string[];
2177
2218
  taskId?: string | undefined;
2178
- kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
2219
+ kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2220
+ title?: string | undefined;
2179
2221
  subtitle?: string | undefined;
2180
2222
  goal?: string | undefined;
2181
2223
  targetResource?: {
2182
- type: "credential" | "workflow" | "other" | "data-table";
2183
- name?: string | undefined;
2224
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
2184
2225
  id?: string | undefined;
2226
+ name?: string | undefined;
2227
+ projectId?: string | undefined;
2185
2228
  } | undefined;
2186
2229
  }>;
2187
2230
  runId: z.ZodString;
@@ -2192,43 +2235,45 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2192
2235
  }, "strip", z.ZodTypeAny, {
2193
2236
  type: "agent-spawned";
2194
2237
  agentId: string;
2195
- runId: string;
2196
2238
  payload: {
2197
- tools: string[];
2198
- role: string;
2199
2239
  parentId: string;
2200
- title?: string | undefined;
2240
+ role: string;
2241
+ tools: string[];
2201
2242
  taskId?: string | undefined;
2202
- kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
2243
+ kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2244
+ title?: string | undefined;
2203
2245
  subtitle?: string | undefined;
2204
2246
  goal?: string | undefined;
2205
2247
  targetResource?: {
2206
- type: "credential" | "workflow" | "other" | "data-table";
2207
- name?: string | undefined;
2248
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
2208
2249
  id?: string | undefined;
2250
+ name?: string | undefined;
2251
+ projectId?: string | undefined;
2209
2252
  } | undefined;
2210
2253
  };
2254
+ runId: string;
2211
2255
  userId?: string | undefined;
2212
2256
  responseId?: string | undefined;
2213
2257
  }, {
2214
2258
  type: "agent-spawned";
2215
2259
  agentId: string;
2216
- runId: string;
2217
2260
  payload: {
2218
- tools: string[];
2219
- role: string;
2220
2261
  parentId: string;
2221
- title?: string | undefined;
2262
+ role: string;
2263
+ tools: string[];
2222
2264
  taskId?: string | undefined;
2223
- kind?: "builder" | "data-table" | "delegate" | "planner" | "eval-setup" | undefined;
2265
+ kind?: "builder" | "data-table" | "planner" | "eval-setup" | "agent-builder" | undefined;
2266
+ title?: string | undefined;
2224
2267
  subtitle?: string | undefined;
2225
2268
  goal?: string | undefined;
2226
2269
  targetResource?: {
2227
- type: "credential" | "workflow" | "other" | "data-table";
2228
- name?: string | undefined;
2270
+ type: "data-table" | "workflow" | "credential" | "agent" | "other";
2229
2271
  id?: string | undefined;
2272
+ name?: string | undefined;
2273
+ projectId?: string | undefined;
2230
2274
  } | undefined;
2231
2275
  };
2276
+ runId: string;
2232
2277
  userId?: string | undefined;
2233
2278
  responseId?: string | undefined;
2234
2279
  }>, z.ZodObject<{
@@ -2253,23 +2298,23 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2253
2298
  }, "strip", z.ZodTypeAny, {
2254
2299
  type: "agent-completed";
2255
2300
  agentId: string;
2256
- runId: string;
2257
2301
  payload: {
2258
2302
  role: string;
2259
2303
  result: string;
2260
2304
  error?: string | undefined;
2261
2305
  };
2306
+ runId: string;
2262
2307
  userId?: string | undefined;
2263
2308
  responseId?: string | undefined;
2264
2309
  }, {
2265
2310
  type: "agent-completed";
2266
2311
  agentId: string;
2267
- runId: string;
2268
2312
  payload: {
2269
2313
  role: string;
2270
2314
  result: string;
2271
2315
  error?: string | undefined;
2272
2316
  };
2317
+ runId: string;
2273
2318
  userId?: string | undefined;
2274
2319
  responseId?: string | undefined;
2275
2320
  }>, z.ZodObject<{
@@ -2288,19 +2333,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2288
2333
  }, "strip", z.ZodTypeAny, {
2289
2334
  type: "text-delta";
2290
2335
  agentId: string;
2291
- runId: string;
2292
2336
  payload: {
2293
2337
  text: string;
2294
2338
  };
2339
+ runId: string;
2295
2340
  userId?: string | undefined;
2296
2341
  responseId?: string | undefined;
2297
2342
  }, {
2298
2343
  type: "text-delta";
2299
2344
  agentId: string;
2300
- runId: string;
2301
2345
  payload: {
2302
2346
  text: string;
2303
2347
  };
2348
+ runId: string;
2304
2349
  userId?: string | undefined;
2305
2350
  responseId?: string | undefined;
2306
2351
  }>, z.ZodObject<{
@@ -2319,19 +2364,81 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2319
2364
  }, "strip", z.ZodTypeAny, {
2320
2365
  type: "reasoning-delta";
2321
2366
  agentId: string;
2322
- runId: string;
2323
2367
  payload: {
2324
2368
  text: string;
2325
2369
  };
2370
+ runId: string;
2326
2371
  userId?: string | undefined;
2327
2372
  responseId?: string | undefined;
2328
2373
  }, {
2329
2374
  type: "reasoning-delta";
2330
2375
  agentId: string;
2376
+ payload: {
2377
+ text: string;
2378
+ };
2379
+ runId: string;
2380
+ userId?: string | undefined;
2381
+ responseId?: string | undefined;
2382
+ }>, z.ZodObject<{
2383
+ payload: z.ZodObject<{
2384
+ text: z.ZodString;
2385
+ }, "strip", z.ZodTypeAny, {
2386
+ text: string;
2387
+ }, {
2388
+ text: string;
2389
+ }>;
2390
+ runId: z.ZodString;
2391
+ agentId: z.ZodString;
2392
+ userId: z.ZodOptional<z.ZodString>;
2393
+ responseId: z.ZodOptional<z.ZodString>;
2394
+ type: z.ZodLiteral<"text-block">;
2395
+ }, "strip", z.ZodTypeAny, {
2396
+ type: "text-block";
2397
+ agentId: string;
2398
+ payload: {
2399
+ text: string;
2400
+ };
2401
+ runId: string;
2402
+ userId?: string | undefined;
2403
+ responseId?: string | undefined;
2404
+ }, {
2405
+ type: "text-block";
2406
+ agentId: string;
2407
+ payload: {
2408
+ text: string;
2409
+ };
2410
+ runId: string;
2411
+ userId?: string | undefined;
2412
+ responseId?: string | undefined;
2413
+ }>, z.ZodObject<{
2414
+ payload: z.ZodObject<{
2415
+ text: z.ZodString;
2416
+ }, "strip", z.ZodTypeAny, {
2417
+ text: string;
2418
+ }, {
2419
+ text: string;
2420
+ }>;
2421
+ runId: z.ZodString;
2422
+ agentId: z.ZodString;
2423
+ userId: z.ZodOptional<z.ZodString>;
2424
+ responseId: z.ZodOptional<z.ZodString>;
2425
+ type: z.ZodLiteral<"reasoning-block">;
2426
+ }, "strip", z.ZodTypeAny, {
2427
+ type: "reasoning-block";
2428
+ agentId: string;
2429
+ payload: {
2430
+ text: string;
2431
+ };
2331
2432
  runId: string;
2433
+ userId?: string | undefined;
2434
+ responseId?: string | undefined;
2435
+ }, {
2436
+ type: "reasoning-block";
2437
+ agentId: string;
2332
2438
  payload: {
2333
2439
  text: string;
2334
2440
  };
2441
+ runId: string;
2335
2442
  userId?: string | undefined;
2336
2443
  responseId?: string | undefined;
2337
2444
  }>, z.ZodObject<{
@@ -2356,23 +2463,23 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2356
2463
  }, "strip", z.ZodTypeAny, {
2357
2464
  type: "tool-call";
2358
2465
  agentId: string;
2359
- runId: string;
2360
2466
  payload: {
2361
2467
  toolCallId: string;
2362
2468
  toolName: string;
2363
2469
  args: Record<string, unknown>;
2364
2470
  };
2471
+ runId: string;
2365
2472
  userId?: string | undefined;
2366
2473
  responseId?: string | undefined;
2367
2474
  }, {
2368
2475
  type: "tool-call";
2369
2476
  agentId: string;
2370
- runId: string;
2371
2477
  payload: {
2372
2478
  toolCallId: string;
2373
2479
  toolName: string;
2374
2480
  args: Record<string, unknown>;
2375
2481
  };
2482
+ runId: string;
2376
2483
  userId?: string | undefined;
2377
2484
  responseId?: string | undefined;
2378
2485
  }>, z.ZodObject<{
@@ -2394,21 +2501,21 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2394
2501
  }, "strip", z.ZodTypeAny, {
2395
2502
  type: "tool-result";
2396
2503
  agentId: string;
2397
- runId: string;
2398
2504
  payload: {
2399
2505
  toolCallId: string;
2400
2506
  result?: unknown;
2401
2507
  };
2508
+ runId: string;
2402
2509
  userId?: string | undefined;
2403
2510
  responseId?: string | undefined;
2404
2511
  }, {
2405
2512
  type: "tool-result";
2406
2513
  agentId: string;
2407
- runId: string;
2408
2514
  payload: {
2409
2515
  toolCallId: string;
2410
2516
  result?: unknown;
2411
2517
  };
2518
+ runId: string;
2412
2519
  userId?: string | undefined;
2413
2520
  responseId?: string | undefined;
2414
2521
  }>, z.ZodObject<{
@@ -2416,11 +2523,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2416
2523
  toolCallId: z.ZodString;
2417
2524
  error: z.ZodString;
2418
2525
  }, "strip", z.ZodTypeAny, {
2419
- toolCallId: string;
2420
2526
  error: string;
2421
- }, {
2422
2527
  toolCallId: string;
2528
+ }, {
2423
2529
  error: string;
2530
+ toolCallId: string;
2424
2531
  }>;
2425
2532
  runId: z.ZodString;
2426
2533
  agentId: z.ZodString;
@@ -2430,21 +2537,57 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2430
2537
  }, "strip", z.ZodTypeAny, {
2431
2538
  type: "tool-error";
2432
2539
  agentId: string;
2433
- runId: string;
2434
2540
  payload: {
2435
- toolCallId: string;
2436
2541
  error: string;
2542
+ toolCallId: string;
2437
2543
  };
2544
+ runId: string;
2438
2545
  userId?: string | undefined;
2439
2546
  responseId?: string | undefined;
2440
2547
  }, {
2441
2548
  type: "tool-error";
2442
2549
  agentId: string;
2550
+ payload: {
2551
+ error: string;
2552
+ toolCallId: string;
2553
+ };
2443
2554
  runId: string;
2555
+ userId?: string | undefined;
2556
+ responseId?: string | undefined;
2557
+ }>, z.ZodObject<{
2558
+ payload: z.ZodObject<{
2559
+ toolCallId: z.ZodString;
2560
+ error: z.ZodString;
2561
+ }, "strip", z.ZodTypeAny, {
2562
+ error: string;
2563
+ toolCallId: string;
2564
+ }, {
2565
+ error: string;
2566
+ toolCallId: string;
2567
+ }>;
2568
+ runId: z.ZodString;
2569
+ agentId: z.ZodString;
2570
+ userId: z.ZodOptional<z.ZodString>;
2571
+ responseId: z.ZodOptional<z.ZodString>;
2572
+ type: z.ZodLiteral<"tool-interrupted">;
2573
+ }, "strip", z.ZodTypeAny, {
2574
+ type: "tool-interrupted";
2575
+ agentId: string;
2444
2576
  payload: {
2577
+ error: string;
2445
2578
  toolCallId: string;
2579
+ };
2580
+ runId: string;
2581
+ userId?: string | undefined;
2582
+ responseId?: string | undefined;
2583
+ }, {
2584
+ type: "tool-interrupted";
2585
+ agentId: string;
2586
+ payload: {
2446
2587
  error: string;
2588
+ toolCallId: string;
2447
2589
  };
2590
+ runId: string;
2448
2591
  userId?: string | undefined;
2449
2592
  responseId?: string | undefined;
2450
2593
  }>, z.ZodObject<{
@@ -2463,27 +2606,27 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2463
2606
  id: z.ZodString;
2464
2607
  name: z.ZodString;
2465
2608
  }, "strip", z.ZodTypeAny, {
2466
- name: string;
2467
2609
  id: string;
2468
- }, {
2469
2610
  name: string;
2611
+ }, {
2470
2612
  id: string;
2613
+ name: string;
2471
2614
  }>, "many">;
2472
2615
  suggestedName: z.ZodOptional<z.ZodString>;
2473
2616
  }, "strip", z.ZodTypeAny, {
2474
- credentialType: string;
2475
2617
  reason: string;
2618
+ credentialType: string;
2476
2619
  existingCredentials: {
2477
- name: string;
2478
2620
  id: string;
2621
+ name: string;
2479
2622
  }[];
2480
2623
  suggestedName?: string | undefined;
2481
2624
  }, {
2482
- credentialType: string;
2483
2625
  reason: string;
2626
+ credentialType: string;
2484
2627
  existingCredentials: {
2485
- name: string;
2486
2628
  id: string;
2629
+ name: string;
2487
2630
  }[];
2488
2631
  suggestedName?: string | undefined;
2489
2632
  }>, "many">>;
@@ -2496,13 +2639,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2496
2639
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2497
2640
  }, "strip", z.ZodTypeAny, {
2498
2641
  type: "text" | "single" | "multi";
2499
- question: string;
2500
2642
  id: string;
2643
+ question: string;
2501
2644
  options?: string[] | undefined;
2502
2645
  }, {
2503
2646
  type: "text" | "single" | "multi";
2504
- question: string;
2505
2647
  id: string;
2648
+ question: string;
2506
2649
  options?: string[] | undefined;
2507
2650
  }>, "many">>;
2508
2651
  introMessage: z.ZodOptional<z.ZodString>;
@@ -2513,28 +2656,28 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2513
2656
  detail: z.ZodOptional<z.ZodString>;
2514
2657
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
2515
2658
  }, "strip", z.ZodTypeAny, {
2516
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2517
- description: string;
2659
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2518
2660
  id: string;
2661
+ description: string;
2519
2662
  detail?: string | undefined;
2520
2663
  }, {
2521
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2522
- description: string;
2664
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2523
2665
  id: string;
2666
+ description: string;
2524
2667
  detail?: string | undefined;
2525
2668
  }>, "many">;
2526
2669
  }, "strip", z.ZodTypeAny, {
2527
2670
  tasks: {
2528
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2529
- description: string;
2671
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2530
2672
  id: string;
2673
+ description: string;
2531
2674
  detail?: string | undefined;
2532
2675
  }[];
2533
2676
  }, {
2534
2677
  tasks: {
2535
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2536
- description: string;
2678
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2537
2679
  id: string;
2680
+ description: string;
2538
2681
  detail?: string | undefined;
2539
2682
  }[];
2540
2683
  }>>;
@@ -2549,8 +2692,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2549
2692
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
2550
2693
  }, "strip", z.ZodTypeAny, {
2551
2694
  id: string;
2552
- title: string;
2553
2695
  kind: string;
2696
+ title: string;
2554
2697
  spec: string;
2555
2698
  deps: string[];
2556
2699
  tools?: string[] | undefined;
@@ -2558,8 +2701,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2558
2701
  isSupportingWorkflow?: boolean | undefined;
2559
2702
  }, {
2560
2703
  id: string;
2561
- title: string;
2562
2704
  kind: string;
2705
+ title: string;
2563
2706
  spec: string;
2564
2707
  deps: string[];
2565
2708
  tools?: string[] | undefined;
@@ -2600,54 +2743,54 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2600
2743
  id: z.ZodString;
2601
2744
  name: z.ZodString;
2602
2745
  }, "strip", z.ZodTypeAny, {
2603
- name: string;
2604
2746
  id: string;
2605
- }, {
2606
2747
  name: string;
2748
+ }, {
2607
2749
  id: string;
2750
+ name: string;
2608
2751
  }>, z.ZodObject<{
2609
2752
  id: z.ZodNull;
2610
2753
  name: z.ZodString;
2611
2754
  __aiGatewayManaged: z.ZodLiteral<true>;
2612
2755
  }, "strip", z.ZodTypeAny, {
2613
- name: string;
2614
2756
  id: null;
2757
+ name: string;
2615
2758
  __aiGatewayManaged: true;
2616
2759
  }, {
2617
- name: string;
2618
2760
  id: null;
2761
+ name: string;
2619
2762
  __aiGatewayManaged: true;
2620
2763
  }>]>>>;
2621
2764
  position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
2622
2765
  id: z.ZodString;
2623
2766
  }, "strip", z.ZodTypeAny, {
2624
2767
  type: string;
2625
- name: string;
2626
2768
  id: string;
2769
+ name: string;
2627
2770
  typeVersion: number;
2628
2771
  parameters: Record<string, unknown>;
2629
2772
  position: [number, number];
2630
2773
  credentials?: Record<string, {
2631
- name: string;
2632
2774
  id: string;
2633
- } | {
2634
2775
  name: string;
2776
+ } | {
2635
2777
  id: null;
2778
+ name: string;
2636
2779
  __aiGatewayManaged: true;
2637
2780
  }> | undefined;
2638
2781
  }, {
2639
2782
  type: string;
2640
- name: string;
2641
2783
  id: string;
2784
+ name: string;
2642
2785
  typeVersion: number;
2643
2786
  parameters: Record<string, unknown>;
2644
2787
  position: [number, number];
2645
2788
  credentials?: Record<string, {
2646
- name: string;
2647
2789
  id: string;
2648
- } | {
2649
2790
  name: string;
2791
+ } | {
2650
2792
  id: null;
2793
+ name: string;
2651
2794
  __aiGatewayManaged: true;
2652
2795
  }> | undefined;
2653
2796
  }>;
@@ -2656,11 +2799,11 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2656
2799
  id: z.ZodString;
2657
2800
  name: z.ZodString;
2658
2801
  }, "strip", z.ZodTypeAny, {
2659
- name: string;
2660
2802
  id: string;
2661
- }, {
2662
2803
  name: string;
2804
+ }, {
2663
2805
  id: string;
2806
+ name: string;
2664
2807
  }>, "many">>;
2665
2808
  isTrigger: z.ZodBoolean;
2666
2809
  isFirstTrigger: z.ZodOptional<z.ZodBoolean>;
@@ -2711,8 +2854,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2711
2854
  value: string | number | boolean;
2712
2855
  name: string;
2713
2856
  }[] | undefined;
2714
- default?: unknown;
2715
2857
  required?: boolean | undefined;
2858
+ default?: unknown;
2716
2859
  }, {
2717
2860
  type: string;
2718
2861
  name: string;
@@ -2721,8 +2864,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2721
2864
  value: string | number | boolean;
2722
2865
  name: string;
2723
2866
  }[] | undefined;
2724
- default?: unknown;
2725
2867
  required?: boolean | undefined;
2868
+ default?: unknown;
2726
2869
  }>, "many">>;
2727
2870
  needsAction: z.ZodOptional<z.ZodBoolean>;
2728
2871
  subnodeRootNode: z.ZodOptional<z.ZodObject<{
@@ -2732,37 +2875,37 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2732
2875
  id: z.ZodString;
2733
2876
  }, "strip", z.ZodTypeAny, {
2734
2877
  type: string;
2735
- name: string;
2736
2878
  id: string;
2879
+ name: string;
2737
2880
  typeVersion: number;
2738
2881
  }, {
2739
2882
  type: string;
2740
- name: string;
2741
2883
  id: string;
2884
+ name: string;
2742
2885
  typeVersion: number;
2743
2886
  }>>;
2744
2887
  }, "strip", z.ZodTypeAny, {
2745
2888
  node: {
2746
2889
  type: string;
2747
- name: string;
2748
2890
  id: string;
2891
+ name: string;
2749
2892
  typeVersion: number;
2750
2893
  parameters: Record<string, unknown>;
2751
2894
  position: [number, number];
2752
2895
  credentials?: Record<string, {
2753
- name: string;
2754
2896
  id: string;
2755
- } | {
2756
2897
  name: string;
2898
+ } | {
2757
2899
  id: null;
2900
+ name: string;
2758
2901
  __aiGatewayManaged: true;
2759
2902
  }> | undefined;
2760
2903
  };
2761
2904
  isTrigger: boolean;
2762
2905
  credentialType?: string | undefined;
2763
2906
  existingCredentials?: {
2764
- name: string;
2765
2907
  id: string;
2908
+ name: string;
2766
2909
  }[] | undefined;
2767
2910
  isFirstTrigger?: boolean | undefined;
2768
2911
  isTestable?: boolean | undefined;
@@ -2784,38 +2927,38 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2784
2927
  value: string | number | boolean;
2785
2928
  name: string;
2786
2929
  }[] | undefined;
2787
- default?: unknown;
2788
2930
  required?: boolean | undefined;
2931
+ default?: unknown;
2789
2932
  }[] | undefined;
2790
2933
  needsAction?: boolean | undefined;
2791
2934
  subnodeRootNode?: {
2792
2935
  type: string;
2793
- name: string;
2794
2936
  id: string;
2937
+ name: string;
2795
2938
  typeVersion: number;
2796
2939
  } | undefined;
2797
2940
  }, {
2798
2941
  node: {
2799
2942
  type: string;
2800
- name: string;
2801
2943
  id: string;
2944
+ name: string;
2802
2945
  typeVersion: number;
2803
2946
  parameters: Record<string, unknown>;
2804
2947
  position: [number, number];
2805
2948
  credentials?: Record<string, {
2806
- name: string;
2807
2949
  id: string;
2808
- } | {
2809
2950
  name: string;
2951
+ } | {
2810
2952
  id: null;
2953
+ name: string;
2811
2954
  __aiGatewayManaged: true;
2812
2955
  }> | undefined;
2813
2956
  };
2814
2957
  isTrigger: boolean;
2815
2958
  credentialType?: string | undefined;
2816
2959
  existingCredentials?: {
2817
- name: string;
2818
2960
  id: string;
2961
+ name: string;
2819
2962
  }[] | undefined;
2820
2963
  isFirstTrigger?: boolean | undefined;
2821
2964
  isTestable?: boolean | undefined;
@@ -2837,14 +2980,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2837
2980
  value: string | number | boolean;
2838
2981
  name: string;
2839
2982
  }[] | undefined;
2840
- default?: unknown;
2841
2983
  required?: boolean | undefined;
2984
+ default?: unknown;
2842
2985
  }[] | undefined;
2843
2986
  needsAction?: boolean | undefined;
2844
2987
  subnodeRootNode?: {
2845
2988
  type: string;
2846
- name: string;
2847
2989
  id: string;
2990
+ name: string;
2848
2991
  typeVersion: number;
2849
2992
  } | undefined;
2850
2993
  }>, "many">>;
@@ -2866,48 +3009,55 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2866
3009
  toolGroup: string;
2867
3010
  resource: string;
2868
3011
  }>>;
3012
+ channelConfig: z.ZodOptional<z.ZodObject<{
3013
+ integrationType: z.ZodString;
3014
+ agentId: z.ZodString;
3015
+ }, "strip", z.ZodTypeAny, {
3016
+ integrationType: string;
3017
+ agentId: string;
3018
+ }, {
3019
+ integrationType: string;
3020
+ agentId: string;
3021
+ }>>;
2869
3022
  }, "strip", z.ZodTypeAny, {
2870
3023
  message: string;
2871
3024
  toolCallId: string;
2872
3025
  toolName: string;
2873
3026
  args: Record<string, unknown>;
2874
3027
  requestId: string;
2875
- severity: "info" | "destructive" | "warning";
3028
+ severity: "destructive" | "warning" | "info";
3029
+ projectId?: string | undefined;
2876
3030
  tasks?: {
2877
3031
  tasks: {
2878
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2879
- description: string;
3032
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2880
3033
  id: string;
3034
+ description: string;
2881
3035
  detail?: string | undefined;
2882
3036
  }[];
2883
3037
  } | undefined;
2884
- webSearch?: {
2885
- query: string;
2886
- } | undefined;
2887
3038
  workflowId?: string | undefined;
2888
- projectId?: string | undefined;
2889
3039
  questions?: {
2890
3040
  type: "text" | "single" | "multi";
2891
- question: string;
2892
3041
  id: string;
3042
+ question: string;
2893
3043
  options?: string[] | undefined;
2894
3044
  }[] | undefined;
2895
3045
  inputThreadId?: string | undefined;
2896
3046
  credentialRequests?: {
2897
- credentialType: string;
2898
3047
  reason: string;
3048
+ credentialType: string;
2899
3049
  existingCredentials: {
2900
- name: string;
2901
3050
  id: string;
3051
+ name: string;
2902
3052
  }[];
2903
3053
  suggestedName?: string | undefined;
2904
3054
  }[] | undefined;
2905
- inputType?: "approval" | "text" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3055
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
2906
3056
  introMessage?: string | undefined;
2907
3057
  planItems?: {
2908
3058
  id: string;
2909
- title: string;
2910
3059
  kind: string;
3060
+ title: string;
2911
3061
  spec: string;
2912
3062
  deps: string[];
2913
3063
  tools?: string[] | undefined;
@@ -2918,31 +3068,34 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2918
3068
  url: string;
2919
3069
  host: string;
2920
3070
  } | undefined;
3071
+ webSearch?: {
3072
+ query: string;
3073
+ } | undefined;
2921
3074
  credentialFlow?: {
2922
3075
  stage: "generic" | "finalize";
2923
3076
  } | undefined;
2924
3077
  setupRequests?: {
2925
3078
  node: {
2926
3079
  type: string;
2927
- name: string;
2928
3080
  id: string;
3081
+ name: string;
2929
3082
  typeVersion: number;
2930
3083
  parameters: Record<string, unknown>;
2931
3084
  position: [number, number];
2932
3085
  credentials?: Record<string, {
2933
- name: string;
2934
3086
  id: string;
2935
- } | {
2936
3087
  name: string;
3088
+ } | {
2937
3089
  id: null;
3090
+ name: string;
2938
3091
  __aiGatewayManaged: true;
2939
3092
  }> | undefined;
2940
3093
  };
2941
3094
  isTrigger: boolean;
2942
3095
  credentialType?: string | undefined;
2943
3096
  existingCredentials?: {
2944
- name: string;
2945
3097
  id: string;
3098
+ name: string;
2946
3099
  }[] | undefined;
2947
3100
  isFirstTrigger?: boolean | undefined;
2948
3101
  isTestable?: boolean | undefined;
@@ -2964,14 +3117,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2964
3117
  value: string | number | boolean;
2965
3118
  name: string;
2966
3119
  }[] | undefined;
2967
- default?: unknown;
2968
3120
  required?: boolean | undefined;
3121
+ default?: unknown;
2969
3122
  }[] | undefined;
2970
3123
  needsAction?: boolean | undefined;
2971
3124
  subnodeRootNode?: {
2972
3125
  type: string;
2973
- name: string;
2974
3126
  id: string;
3127
+ name: string;
2975
3128
  typeVersion: number;
2976
3129
  } | undefined;
2977
3130
  }[] | undefined;
@@ -2981,48 +3134,49 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2981
3134
  toolGroup: string;
2982
3135
  resource: string;
2983
3136
  } | undefined;
3137
+ channelConfig?: {
3138
+ integrationType: string;
3139
+ agentId: string;
3140
+ } | undefined;
2984
3141
  }, {
2985
3142
  message: string;
2986
3143
  toolCallId: string;
2987
3144
  toolName: string;
2988
3145
  args: Record<string, unknown>;
2989
3146
  requestId: string;
2990
- severity: "info" | "destructive" | "warning";
3147
+ severity: "destructive" | "warning" | "info";
3148
+ projectId?: string | undefined;
2991
3149
  tasks?: {
2992
3150
  tasks: {
2993
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
2994
- description: string;
3151
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
2995
3152
  id: string;
3153
+ description: string;
2996
3154
  detail?: string | undefined;
2997
3155
  }[];
2998
3156
  } | undefined;
2999
- webSearch?: {
3000
- query: string;
3001
- } | undefined;
3002
3157
  workflowId?: string | undefined;
3003
- projectId?: string | undefined;
3004
3158
  questions?: {
3005
3159
  type: "text" | "single" | "multi";
3006
- question: string;
3007
3160
  id: string;
3161
+ question: string;
3008
3162
  options?: string[] | undefined;
3009
3163
  }[] | undefined;
3010
3164
  inputThreadId?: string | undefined;
3011
3165
  credentialRequests?: {
3012
- credentialType: string;
3013
3166
  reason: string;
3167
+ credentialType: string;
3014
3168
  existingCredentials: {
3015
- name: string;
3016
3169
  id: string;
3170
+ name: string;
3017
3171
  }[];
3018
3172
  suggestedName?: string | undefined;
3019
3173
  }[] | undefined;
3020
- inputType?: "approval" | "text" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3174
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3021
3175
  introMessage?: string | undefined;
3022
3176
  planItems?: {
3023
3177
  id: string;
3024
- title: string;
3025
3178
  kind: string;
3179
+ title: string;
3026
3180
  spec: string;
3027
3181
  deps: string[];
3028
3182
  tools?: string[] | undefined;
@@ -3033,31 +3187,34 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3033
3187
  url: string;
3034
3188
  host: string;
3035
3189
  } | undefined;
3190
+ webSearch?: {
3191
+ query: string;
3192
+ } | undefined;
3036
3193
  credentialFlow?: {
3037
3194
  stage: "generic" | "finalize";
3038
3195
  } | undefined;
3039
3196
  setupRequests?: {
3040
3197
  node: {
3041
3198
  type: string;
3042
- name: string;
3043
3199
  id: string;
3200
+ name: string;
3044
3201
  typeVersion: number;
3045
3202
  parameters: Record<string, unknown>;
3046
3203
  position: [number, number];
3047
3204
  credentials?: Record<string, {
3048
- name: string;
3049
3205
  id: string;
3050
- } | {
3051
3206
  name: string;
3207
+ } | {
3052
3208
  id: null;
3209
+ name: string;
3053
3210
  __aiGatewayManaged: true;
3054
3211
  }> | undefined;
3055
3212
  };
3056
3213
  isTrigger: boolean;
3057
3214
  credentialType?: string | undefined;
3058
3215
  existingCredentials?: {
3059
- name: string;
3060
3216
  id: string;
3217
+ name: string;
3061
3218
  }[] | undefined;
3062
3219
  isFirstTrigger?: boolean | undefined;
3063
3220
  isTestable?: boolean | undefined;
@@ -3079,14 +3236,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3079
3236
  value: string | number | boolean;
3080
3237
  name: string;
3081
3238
  }[] | undefined;
3082
- default?: unknown;
3083
3239
  required?: boolean | undefined;
3240
+ default?: unknown;
3084
3241
  }[] | undefined;
3085
3242
  needsAction?: boolean | undefined;
3086
3243
  subnodeRootNode?: {
3087
3244
  type: string;
3088
- name: string;
3089
3245
  id: string;
3246
+ name: string;
3090
3247
  typeVersion: number;
3091
3248
  } | undefined;
3092
3249
  }[] | undefined;
@@ -3096,6 +3253,10 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3096
3253
  toolGroup: string;
3097
3254
  resource: string;
3098
3255
  } | undefined;
3256
+ channelConfig?: {
3257
+ integrationType: string;
3258
+ agentId: string;
3259
+ } | undefined;
3099
3260
  }>;
3100
3261
  runId: z.ZodString;
3101
3262
  agentId: z.ZodString;
@@ -3105,49 +3266,45 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3105
3266
  }, "strip", z.ZodTypeAny, {
3106
3267
  type: "confirmation-request";
3107
3268
  agentId: string;
3108
- runId: string;
3109
3269
  payload: {
3110
3270
  message: string;
3111
3271
  toolCallId: string;
3112
3272
  toolName: string;
3113
3273
  args: Record<string, unknown>;
3114
3274
  requestId: string;
3115
- severity: "info" | "destructive" | "warning";
3275
+ severity: "destructive" | "warning" | "info";
3276
+ projectId?: string | undefined;
3116
3277
  tasks?: {
3117
3278
  tasks: {
3118
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3119
- description: string;
3279
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3120
3280
  id: string;
3281
+ description: string;
3121
3282
  detail?: string | undefined;
3122
3283
  }[];
3123
3284
  } | undefined;
3124
- webSearch?: {
3125
- query: string;
3126
- } | undefined;
3127
3285
  workflowId?: string | undefined;
3128
- projectId?: string | undefined;
3129
3286
  questions?: {
3130
3287
  type: "text" | "single" | "multi";
3131
- question: string;
3132
3288
  id: string;
3289
+ question: string;
3133
3290
  options?: string[] | undefined;
3134
3291
  }[] | undefined;
3135
3292
  inputThreadId?: string | undefined;
3136
3293
  credentialRequests?: {
3137
- credentialType: string;
3138
3294
  reason: string;
3295
+ credentialType: string;
3139
3296
  existingCredentials: {
3140
- name: string;
3141
3297
  id: string;
3298
+ name: string;
3142
3299
  }[];
3143
3300
  suggestedName?: string | undefined;
3144
3301
  }[] | undefined;
3145
- inputType?: "approval" | "text" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3302
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3146
3303
  introMessage?: string | undefined;
3147
3304
  planItems?: {
3148
3305
  id: string;
3149
- title: string;
3150
3306
  kind: string;
3307
+ title: string;
3151
3308
  spec: string;
3152
3309
  deps: string[];
3153
3310
  tools?: string[] | undefined;
@@ -3158,31 +3315,34 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3158
3315
  url: string;
3159
3316
  host: string;
3160
3317
  } | undefined;
3318
+ webSearch?: {
3319
+ query: string;
3320
+ } | undefined;
3161
3321
  credentialFlow?: {
3162
3322
  stage: "generic" | "finalize";
3163
3323
  } | undefined;
3164
3324
  setupRequests?: {
3165
3325
  node: {
3166
3326
  type: string;
3167
- name: string;
3168
3327
  id: string;
3328
+ name: string;
3169
3329
  typeVersion: number;
3170
3330
  parameters: Record<string, unknown>;
3171
3331
  position: [number, number];
3172
3332
  credentials?: Record<string, {
3173
- name: string;
3174
3333
  id: string;
3175
- } | {
3176
3334
  name: string;
3335
+ } | {
3177
3336
  id: null;
3337
+ name: string;
3178
3338
  __aiGatewayManaged: true;
3179
3339
  }> | undefined;
3180
3340
  };
3181
3341
  isTrigger: boolean;
3182
3342
  credentialType?: string | undefined;
3183
3343
  existingCredentials?: {
3184
- name: string;
3185
3344
  id: string;
3345
+ name: string;
3186
3346
  }[] | undefined;
3187
3347
  isFirstTrigger?: boolean | undefined;
3188
3348
  isTestable?: boolean | undefined;
@@ -3204,14 +3364,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3204
3364
  value: string | number | boolean;
3205
3365
  name: string;
3206
3366
  }[] | undefined;
3207
- default?: unknown;
3208
3367
  required?: boolean | undefined;
3368
+ default?: unknown;
3209
3369
  }[] | undefined;
3210
3370
  needsAction?: boolean | undefined;
3211
3371
  subnodeRootNode?: {
3212
3372
  type: string;
3213
- name: string;
3214
3373
  id: string;
3374
+ name: string;
3215
3375
  typeVersion: number;
3216
3376
  } | undefined;
3217
3377
  }[] | undefined;
@@ -3221,55 +3381,56 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3221
3381
  toolGroup: string;
3222
3382
  resource: string;
3223
3383
  } | undefined;
3384
+ channelConfig?: {
3385
+ integrationType: string;
3386
+ agentId: string;
3387
+ } | undefined;
3224
3388
  };
3389
+ runId: string;
3225
3390
  userId?: string | undefined;
3226
3391
  responseId?: string | undefined;
3227
3392
  }, {
3228
3393
  type: "confirmation-request";
3229
3394
  agentId: string;
3230
- runId: string;
3231
3395
  payload: {
3232
3396
  message: string;
3233
3397
  toolCallId: string;
3234
3398
  toolName: string;
3235
3399
  args: Record<string, unknown>;
3236
3400
  requestId: string;
3237
- severity: "info" | "destructive" | "warning";
3401
+ severity: "destructive" | "warning" | "info";
3402
+ projectId?: string | undefined;
3238
3403
  tasks?: {
3239
3404
  tasks: {
3240
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3241
- description: string;
3405
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3242
3406
  id: string;
3407
+ description: string;
3243
3408
  detail?: string | undefined;
3244
3409
  }[];
3245
3410
  } | undefined;
3246
- webSearch?: {
3247
- query: string;
3248
- } | undefined;
3249
3411
  workflowId?: string | undefined;
3250
- projectId?: string | undefined;
3251
3412
  questions?: {
3252
3413
  type: "text" | "single" | "multi";
3253
- question: string;
3254
3414
  id: string;
3415
+ question: string;
3255
3416
  options?: string[] | undefined;
3256
3417
  }[] | undefined;
3257
3418
  inputThreadId?: string | undefined;
3258
3419
  credentialRequests?: {
3259
- credentialType: string;
3260
3420
  reason: string;
3421
+ credentialType: string;
3261
3422
  existingCredentials: {
3262
- name: string;
3263
3423
  id: string;
3424
+ name: string;
3264
3425
  }[];
3265
3426
  suggestedName?: string | undefined;
3266
3427
  }[] | undefined;
3267
- inputType?: "approval" | "text" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3428
+ inputType?: "text" | "approval" | "questions" | "plan-review" | "resource-decision" | "continue" | undefined;
3268
3429
  introMessage?: string | undefined;
3269
3430
  planItems?: {
3270
3431
  id: string;
3271
- title: string;
3272
3432
  kind: string;
3433
+ title: string;
3273
3434
  spec: string;
3274
3435
  deps: string[];
3275
3436
  tools?: string[] | undefined;
@@ -3280,31 +3441,34 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3280
3441
  url: string;
3281
3442
  host: string;
3282
3443
  } | undefined;
3444
+ webSearch?: {
3445
+ query: string;
3446
+ } | undefined;
3283
3447
  credentialFlow?: {
3284
3448
  stage: "generic" | "finalize";
3285
3449
  } | undefined;
3286
3450
  setupRequests?: {
3287
3451
  node: {
3288
3452
  type: string;
3289
- name: string;
3290
3453
  id: string;
3454
+ name: string;
3291
3455
  typeVersion: number;
3292
3456
  parameters: Record<string, unknown>;
3293
3457
  position: [number, number];
3294
3458
  credentials?: Record<string, {
3295
- name: string;
3296
3459
  id: string;
3297
- } | {
3298
3460
  name: string;
3461
+ } | {
3299
3462
  id: null;
3463
+ name: string;
3300
3464
  __aiGatewayManaged: true;
3301
3465
  }> | undefined;
3302
3466
  };
3303
3467
  isTrigger: boolean;
3304
3468
  credentialType?: string | undefined;
3305
3469
  existingCredentials?: {
3306
- name: string;
3307
3470
  id: string;
3471
+ name: string;
3308
3472
  }[] | undefined;
3309
3473
  isFirstTrigger?: boolean | undefined;
3310
3474
  isTestable?: boolean | undefined;
@@ -3326,14 +3490,14 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3326
3490
  value: string | number | boolean;
3327
3491
  name: string;
3328
3492
  }[] | undefined;
3329
- default?: unknown;
3330
3493
  required?: boolean | undefined;
3494
+ default?: unknown;
3331
3495
  }[] | undefined;
3332
3496
  needsAction?: boolean | undefined;
3333
3497
  subnodeRootNode?: {
3334
3498
  type: string;
3335
- name: string;
3336
3499
  id: string;
3500
+ name: string;
3337
3501
  typeVersion: number;
3338
3502
  } | undefined;
3339
3503
  }[] | undefined;
@@ -3343,7 +3507,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3343
3507
  toolGroup: string;
3344
3508
  resource: string;
3345
3509
  } | undefined;
3510
+ channelConfig?: {
3511
+ integrationType: string;
3512
+ agentId: string;
3513
+ } | undefined;
3346
3514
  };
3515
+ runId: string;
3347
3516
  userId?: string | undefined;
3348
3517
  responseId?: string | undefined;
3349
3518
  }>, z.ZodObject<{
@@ -3355,28 +3524,28 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3355
3524
  detail: z.ZodOptional<z.ZodString>;
3356
3525
  status: z.ZodEnum<["todo", "in_progress", "done", "failed", "cancelled"]>;
3357
3526
  }, "strip", z.ZodTypeAny, {
3358
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3359
- description: string;
3527
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3360
3528
  id: string;
3529
+ description: string;
3361
3530
  detail?: string | undefined;
3362
3531
  }, {
3363
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3364
- description: string;
3532
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3365
3533
  id: string;
3534
+ description: string;
3366
3535
  detail?: string | undefined;
3367
3536
  }>, "many">;
3368
3537
  }, "strip", z.ZodTypeAny, {
3369
3538
  tasks: {
3370
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3371
- description: string;
3539
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3372
3540
  id: string;
3541
+ description: string;
3373
3542
  detail?: string | undefined;
3374
3543
  }[];
3375
3544
  }, {
3376
3545
  tasks: {
3377
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3378
- description: string;
3546
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3379
3547
  id: string;
3548
+ description: string;
3380
3549
  detail?: string | undefined;
3381
3550
  }[];
3382
3551
  }>;
@@ -3391,8 +3560,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3391
3560
  isSupportingWorkflow: z.ZodOptional<z.ZodBoolean>;
3392
3561
  }, "strip", z.ZodTypeAny, {
3393
3562
  id: string;
3394
- title: string;
3395
3563
  kind: string;
3564
+ title: string;
3396
3565
  spec: string;
3397
3566
  deps: string[];
3398
3567
  tools?: string[] | undefined;
@@ -3400,8 +3569,8 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3400
3569
  isSupportingWorkflow?: boolean | undefined;
3401
3570
  }, {
3402
3571
  id: string;
3403
- title: string;
3404
3572
  kind: string;
3573
+ title: string;
3405
3574
  spec: string;
3406
3575
  deps: string[];
3407
3576
  tools?: string[] | undefined;
@@ -3411,16 +3580,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3411
3580
  }, "strip", z.ZodTypeAny, {
3412
3581
  tasks: {
3413
3582
  tasks: {
3414
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3415
- description: string;
3583
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3416
3584
  id: string;
3585
+ description: string;
3417
3586
  detail?: string | undefined;
3418
3587
  }[];
3419
3588
  };
3420
3589
  planItems?: {
3421
3590
  id: string;
3422
- title: string;
3423
3591
  kind: string;
3592
+ title: string;
3424
3593
  spec: string;
3425
3594
  deps: string[];
3426
3595
  tools?: string[] | undefined;
@@ -3430,16 +3599,16 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3430
3599
  }, {
3431
3600
  tasks: {
3432
3601
  tasks: {
3433
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3434
- description: string;
3602
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3435
3603
  id: string;
3604
+ description: string;
3436
3605
  detail?: string | undefined;
3437
3606
  }[];
3438
3607
  };
3439
3608
  planItems?: {
3440
3609
  id: string;
3441
- title: string;
3442
3610
  kind: string;
3611
+ title: string;
3443
3612
  spec: string;
3444
3613
  deps: string[];
3445
3614
  tools?: string[] | undefined;
@@ -3455,20 +3624,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3455
3624
  }, "strip", z.ZodTypeAny, {
3456
3625
  type: "tasks-update";
3457
3626
  agentId: string;
3458
- runId: string;
3459
3627
  payload: {
3460
3628
  tasks: {
3461
3629
  tasks: {
3462
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3463
- description: string;
3630
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3464
3631
  id: string;
3632
+ description: string;
3465
3633
  detail?: string | undefined;
3466
3634
  }[];
3467
3635
  };
3468
3636
  planItems?: {
3469
3637
  id: string;
3470
- title: string;
3471
3638
  kind: string;
3639
+ title: string;
3472
3640
  spec: string;
3473
3641
  deps: string[];
3474
3642
  tools?: string[] | undefined;
@@ -3476,25 +3644,25 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3476
3644
  isSupportingWorkflow?: boolean | undefined;
3477
3645
  }[] | undefined;
3478
3646
  };
3647
+ runId: string;
3479
3648
  userId?: string | undefined;
3480
3649
  responseId?: string | undefined;
3481
3650
  }, {
3482
3651
  type: "tasks-update";
3483
3652
  agentId: string;
3484
- runId: string;
3485
3653
  payload: {
3486
3654
  tasks: {
3487
3655
  tasks: {
3488
- status: "done" | "cancelled" | "failed" | "todo" | "in_progress";
3489
- description: string;
3656
+ status: "cancelled" | "todo" | "in_progress" | "done" | "failed";
3490
3657
  id: string;
3658
+ description: string;
3491
3659
  detail?: string | undefined;
3492
3660
  }[];
3493
3661
  };
3494
3662
  planItems?: {
3495
3663
  id: string;
3496
- title: string;
3497
3664
  kind: string;
3665
+ title: string;
3498
3666
  spec: string;
3499
3667
  deps: string[];
3500
3668
  tools?: string[] | undefined;
@@ -3502,6 +3670,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3502
3670
  isSupportingWorkflow?: boolean | undefined;
3503
3671
  }[] | undefined;
3504
3672
  };
3673
+ runId: string;
3505
3674
  userId?: string | undefined;
3506
3675
  responseId?: string | undefined;
3507
3676
  }>, z.ZodObject<{
@@ -3520,19 +3689,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3520
3689
  }, "strip", z.ZodTypeAny, {
3521
3690
  type: "status";
3522
3691
  agentId: string;
3523
- runId: string;
3524
3692
  payload: {
3525
3693
  message: string;
3526
3694
  };
3695
+ runId: string;
3527
3696
  userId?: string | undefined;
3528
3697
  responseId?: string | undefined;
3529
3698
  }, {
3530
3699
  type: "status";
3531
3700
  agentId: string;
3532
- runId: string;
3533
3701
  payload: {
3534
3702
  message: string;
3535
3703
  };
3704
+ runId: string;
3536
3705
  userId?: string | undefined;
3537
3706
  responseId?: string | undefined;
3538
3707
  }>, z.ZodObject<{
@@ -3543,13 +3712,13 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3543
3712
  technicalDetails: z.ZodOptional<z.ZodString>;
3544
3713
  }, "strip", z.ZodTypeAny, {
3545
3714
  content: string;
3546
- provider?: string | undefined;
3547
3715
  statusCode?: number | undefined;
3716
+ provider?: string | undefined;
3548
3717
  technicalDetails?: string | undefined;
3549
3718
  }, {
3550
3719
  content: string;
3551
- provider?: string | undefined;
3552
3720
  statusCode?: number | undefined;
3721
+ provider?: string | undefined;
3553
3722
  technicalDetails?: string | undefined;
3554
3723
  }>;
3555
3724
  runId: z.ZodString;
@@ -3560,25 +3729,25 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3560
3729
  }, "strip", z.ZodTypeAny, {
3561
3730
  type: "error";
3562
3731
  agentId: string;
3563
- runId: string;
3564
3732
  payload: {
3565
3733
  content: string;
3566
- provider?: string | undefined;
3567
3734
  statusCode?: number | undefined;
3735
+ provider?: string | undefined;
3568
3736
  technicalDetails?: string | undefined;
3569
3737
  };
3738
+ runId: string;
3570
3739
  userId?: string | undefined;
3571
3740
  responseId?: string | undefined;
3572
3741
  }, {
3573
3742
  type: "error";
3574
3743
  agentId: string;
3575
- runId: string;
3576
3744
  payload: {
3577
3745
  content: string;
3578
- provider?: string | undefined;
3579
3746
  statusCode?: number | undefined;
3747
+ provider?: string | undefined;
3580
3748
  technicalDetails?: string | undefined;
3581
3749
  };
3750
+ runId: string;
3582
3751
  userId?: string | undefined;
3583
3752
  responseId?: string | undefined;
3584
3753
  }>, z.ZodObject<{
@@ -3615,7 +3784,6 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3615
3784
  }, "strip", z.ZodTypeAny, {
3616
3785
  type: "filesystem-request";
3617
3786
  agentId: string;
3618
- runId: string;
3619
3787
  payload: {
3620
3788
  requestId: string;
3621
3789
  toolCall: {
@@ -3623,12 +3791,12 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3623
3791
  arguments: Record<string, unknown>;
3624
3792
  };
3625
3793
  };
3794
+ runId: string;
3626
3795
  userId?: string | undefined;
3627
3796
  responseId?: string | undefined;
3628
3797
  }, {
3629
3798
  type: "filesystem-request";
3630
3799
  agentId: string;
3631
- runId: string;
3632
3800
  payload: {
3633
3801
  requestId: string;
3634
3802
  toolCall: {
@@ -3636,6 +3804,7 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3636
3804
  arguments: Record<string, unknown>;
3637
3805
  };
3638
3806
  };
3807
+ runId: string;
3639
3808
  userId?: string | undefined;
3640
3809
  responseId?: string | undefined;
3641
3810
  }>, z.ZodObject<{
@@ -3654,19 +3823,19 @@ export declare const instanceAiEventSchema: z.ZodDiscriminatedUnion<"type", [z.Z
3654
3823
  }, "strip", z.ZodTypeAny, {
3655
3824
  type: "thread-title-updated";
3656
3825
  agentId: string;
3657
- runId: string;
3658
3826
  payload: {
3659
3827
  title: string;
3660
3828
  };
3829
+ runId: string;
3661
3830
  userId?: string | undefined;
3662
3831
  responseId?: string | undefined;
3663
3832
  }, {
3664
3833
  type: "thread-title-updated";
3665
3834
  agentId: string;
3666
- runId: string;
3667
3835
  payload: {
3668
3836
  title: string;
3669
3837
  };
3838
+ runId: string;
3670
3839
  userId?: string | undefined;
3671
3840
  responseId?: string | undefined;
3672
3841
  }>]>;
@@ -3796,17 +3965,17 @@ export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
3796
3965
  }, "strip", z.ZodTypeAny, {
3797
3966
  credentialType: string;
3798
3967
  displayName: string;
3799
- nodeType?: string | undefined;
3800
3968
  id?: string | undefined;
3801
3969
  nodeName?: string | undefined;
3970
+ nodeType?: string | undefined;
3802
3971
  documentationUrl?: string | undefined;
3803
3972
  oauthRedirectUrl?: string | undefined;
3804
3973
  }, {
3805
3974
  credentialType: string;
3806
3975
  displayName: string;
3807
- nodeType?: string | undefined;
3808
3976
  id?: string | undefined;
3809
3977
  nodeName?: string | undefined;
3978
+ nodeType?: string | undefined;
3810
3979
  documentationUrl?: string | undefined;
3811
3980
  oauthRedirectUrl?: string | undefined;
3812
3981
  }>;
@@ -3814,9 +3983,9 @@ export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
3814
3983
  credential: {
3815
3984
  credentialType: string;
3816
3985
  displayName: string;
3817
- nodeType?: string | undefined;
3818
3986
  id?: string | undefined;
3819
3987
  nodeName?: string | undefined;
3988
+ nodeType?: string | undefined;
3820
3989
  documentationUrl?: string | undefined;
3821
3990
  oauthRedirectUrl?: string | undefined;
3822
3991
  };
@@ -3825,9 +3994,9 @@ export declare const instanceAiCredentialHandoffContextSchema: z.ZodObject<{
3825
3994
  credential: {
3826
3995
  credentialType: string;
3827
3996
  displayName: string;
3828
- nodeType?: string | undefined;
3829
3997
  id?: string | undefined;
3830
3998
  nodeName?: string | undefined;
3999
+ nodeType?: string | undefined;
3831
4000
  documentationUrl?: string | undefined;
3832
4001
  oauthRedirectUrl?: string | undefined;
3833
4002
  };
@@ -3847,17 +4016,17 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
3847
4016
  }, "strip", z.ZodTypeAny, {
3848
4017
  credentialType: string;
3849
4018
  displayName: string;
3850
- nodeType?: string | undefined;
3851
4019
  id?: string | undefined;
3852
4020
  nodeName?: string | undefined;
4021
+ nodeType?: string | undefined;
3853
4022
  documentationUrl?: string | undefined;
3854
4023
  oauthRedirectUrl?: string | undefined;
3855
4024
  }, {
3856
4025
  credentialType: string;
3857
4026
  displayName: string;
3858
- nodeType?: string | undefined;
3859
4027
  id?: string | undefined;
3860
4028
  nodeName?: string | undefined;
4029
+ nodeType?: string | undefined;
3861
4030
  documentationUrl?: string | undefined;
3862
4031
  oauthRedirectUrl?: string | undefined;
3863
4032
  }>;
@@ -3865,9 +4034,9 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
3865
4034
  credential: {
3866
4035
  credentialType: string;
3867
4036
  displayName: string;
3868
- nodeType?: string | undefined;
3869
4037
  id?: string | undefined;
3870
4038
  nodeName?: string | undefined;
4039
+ nodeType?: string | undefined;
3871
4040
  documentationUrl?: string | undefined;
3872
4041
  oauthRedirectUrl?: string | undefined;
3873
4042
  };
@@ -3876,9 +4045,9 @@ export declare const instanceAiHandoffContextSchema: z.ZodDiscriminatedUnion<"so
3876
4045
  credential: {
3877
4046
  credentialType: string;
3878
4047
  displayName: string;
3879
- nodeType?: string | undefined;
3880
4048
  id?: string | undefined;
3881
4049
  nodeName?: string | undefined;
4050
+ nodeType?: string | undefined;
3882
4051
  documentationUrl?: string | undefined;
3883
4052
  oauthRedirectUrl?: string | undefined;
3884
4053
  };
@@ -3903,9 +4072,9 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
3903
4072
  credential: {
3904
4073
  credentialType: string;
3905
4074
  displayName: string;
3906
- nodeType?: string | undefined;
3907
4075
  id?: string | undefined;
3908
4076
  nodeName?: string | undefined;
4077
+ nodeType?: string | undefined;
3909
4078
  documentationUrl?: string | undefined;
3910
4079
  oauthRedirectUrl?: string | undefined;
3911
4080
  };
@@ -3958,17 +4127,17 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
3958
4127
  }, "strip", z.ZodTypeAny, {
3959
4128
  credentialType: string;
3960
4129
  displayName: string;
3961
- nodeType?: string | undefined;
3962
4130
  id?: string | undefined;
3963
4131
  nodeName?: string | undefined;
4132
+ nodeType?: string | undefined;
3964
4133
  documentationUrl?: string | undefined;
3965
4134
  oauthRedirectUrl?: string | undefined;
3966
4135
  }, {
3967
4136
  credentialType: string;
3968
4137
  displayName: string;
3969
- nodeType?: string | undefined;
3970
4138
  id?: string | undefined;
3971
4139
  nodeName?: string | undefined;
4140
+ nodeType?: string | undefined;
3972
4141
  documentationUrl?: string | undefined;
3973
4142
  oauthRedirectUrl?: string | undefined;
3974
4143
  }>;
@@ -3976,9 +4145,9 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
3976
4145
  credential: {
3977
4146
  credentialType: string;
3978
4147
  displayName: string;
3979
- nodeType?: string | undefined;
3980
4148
  id?: string | undefined;
3981
4149
  nodeName?: string | undefined;
4150
+ nodeType?: string | undefined;
3982
4151
  documentationUrl?: string | undefined;
3983
4152
  oauthRedirectUrl?: string | undefined;
3984
4153
  };
@@ -3987,9 +4156,9 @@ declare const InstanceAiSendMessageRequest_base: import("../zod-class").ZodClass
3987
4156
  credential: {
3988
4157
  credentialType: string;
3989
4158
  displayName: string;
3990
- nodeType?: string | undefined;
3991
4159
  id?: string | undefined;
3992
4160
  nodeName?: string | undefined;
4161
+ nodeType?: string | undefined;
3993
4162
  documentationUrl?: string | undefined;
3994
4163
  oauthRedirectUrl?: string | undefined;
3995
4164
  };
@@ -4007,12 +4176,25 @@ declare const InstanceAiCorrectTaskRequest_base: import("../zod-class").ZodClass
4007
4176
  }>;
4008
4177
  export declare class InstanceAiCorrectTaskRequest extends InstanceAiCorrectTaskRequest_base {
4009
4178
  }
4179
+ export declare const INSTANCE_AI_THREAD_SOURCES: readonly ["website-template", "template-view"];
4180
+ export type InstanceAiThreadSource = (typeof INSTANCE_AI_THREAD_SOURCES)[number];
4181
+ export declare const INSTANCE_AI_THREAD_SOURCE_FALLBACK = "unknown";
4182
+ export type InstanceAiThreadSourcePersisted = InstanceAiThreadSource | typeof INSTANCE_AI_THREAD_SOURCE_FALLBACK;
4183
+ export declare const INSTANCE_AI_THREAD_ORIGINS: readonly ["internal", "external"];
4184
+ export type InstanceAiThreadOrigin = (typeof INSTANCE_AI_THREAD_ORIGINS)[number];
4185
+ export declare function normalizeInstanceAiThreadSource(value: string | undefined): InstanceAiThreadSourcePersisted;
4010
4186
  declare const InstanceAiEnsureThreadRequest_base: import("../zod-class").ZodClass<{
4011
4187
  projectId: string;
4188
+ source?: string | undefined;
4012
4189
  threadId?: string | undefined;
4190
+ origin?: "internal" | "external" | undefined;
4191
+ sourceContext?: Record<string, unknown> | undefined;
4013
4192
  }, {
4014
4193
  threadId: z.ZodOptional<z.ZodString>;
4015
4194
  projectId: z.ZodString;
4195
+ source: z.ZodOptional<z.ZodString>;
4196
+ origin: z.ZodOptional<z.ZodEnum<["internal", "external"]>>;
4197
+ sourceContext: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
4016
4198
  }>;
4017
4199
  export declare class InstanceAiEnsureThreadRequest extends InstanceAiEnsureThreadRequest_base {
4018
4200
  }
@@ -4068,6 +4250,7 @@ export interface InstanceAiConfirmation {
4068
4250
  introMessage?: string;
4069
4251
  tasks?: TaskList;
4070
4252
  resourceDecision?: GatewayConfirmationRequiredPayload;
4253
+ channelConfig?: InstanceAiChannelConfig;
4071
4254
  expired?: boolean;
4072
4255
  }
4073
4256
  export interface InstanceAiToolCallState {
@@ -4077,7 +4260,7 @@ export interface InstanceAiToolCallState {
4077
4260
  result?: unknown;
4078
4261
  error?: string;
4079
4262
  isLoading: boolean;
4080
- renderHint?: 'tasks' | 'delegate' | 'builder' | 'researcher' | 'data-table' | 'planner' | 'eval-setup' | 'skill' | 'default';
4263
+ renderHint?: 'tasks' | 'builder' | 'researcher' | 'data-table' | 'planner' | 'eval-setup' | 'skill' | 'default';
4081
4264
  confirmation?: InstanceAiConfirmation;
4082
4265
  confirmationStatus?: 'pending' | 'approved' | 'denied';
4083
4266
  startedAt?: string;
@@ -4128,7 +4311,7 @@ export interface InstanceAiAgentNode {
4128
4311
  };
4129
4312
  cancellationReason?: InstanceAiCancellationReason;
4130
4313
  }
4131
- export type InstanceAiCancellationReason = 'user' | 'timeout' | 'shutdown';
4314
+ export type InstanceAiCancellationReason = 'user' | 'timeout' | 'shutdown' | 'interrupted';
4132
4315
  export interface InstanceAiMessage {
4133
4316
  id: string;
4134
4317
  runId?: string;
@@ -4323,7 +4506,6 @@ export type InstanceAiSandboxProvider = z.infer<typeof instanceAiSandboxProvider
4323
4506
  export declare function isInstanceAiSandboxProvider(value: unknown): value is InstanceAiSandboxProvider;
4324
4507
  export interface InstanceAiAdminSettingsResponse {
4325
4508
  enabled: boolean;
4326
- subAgentMaxSteps: number;
4327
4509
  permissions: InstanceAiPermissions;
4328
4510
  mcpServers: string;
4329
4511
  mcpAccessEnabled: boolean;
@@ -4339,8 +4521,6 @@ export interface InstanceAiAdminSettingsResponse {
4339
4521
  }
4340
4522
  declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").ZodClass<{
4341
4523
  enabled?: boolean | undefined;
4342
- mcpServers?: string | undefined;
4343
- subAgentMaxSteps?: number | undefined;
4344
4524
  permissions?: {
4345
4525
  webSearch?: "require_approval" | "always_allow" | "blocked" | undefined;
4346
4526
  createWorkflow?: "require_approval" | "always_allow" | "blocked" | undefined;
@@ -4363,6 +4543,7 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
4363
4543
  restoreWorkflowVersion?: "require_approval" | "always_allow" | "blocked" | undefined;
4364
4544
  executeMcpTool?: "require_approval" | "always_allow" | "blocked" | undefined;
4365
4545
  } | undefined;
4546
+ mcpServers?: string | undefined;
4366
4547
  mcpAccessEnabled?: boolean | undefined;
4367
4548
  sandboxEnabled?: boolean | undefined;
4368
4549
  sandboxProvider?: "n8n-sandbox" | "daytona" | undefined;
@@ -4375,7 +4556,6 @@ declare const InstanceAiAdminSettingsUpdateRequest_base: import("../zod-class").
4375
4556
  browserUseEnabled?: boolean | undefined;
4376
4557
  }, {
4377
4558
  enabled: z.ZodOptional<z.ZodBoolean>;
4378
- subAgentMaxSteps: z.ZodOptional<z.ZodNumber>;
4379
4559
  permissions: z.ZodOptional<z.ZodObject<{
4380
4560
  createWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
4381
4561
  updateWorkflow: z.ZodOptional<z.ZodEnum<["require_approval", "always_allow", "blocked"]>>;
@@ -4462,9 +4642,9 @@ export interface InstanceAiUserPreferencesResponse {
4462
4642
  localGatewayDisabled: boolean;
4463
4643
  }
4464
4644
  declare const InstanceAiUserPreferencesUpdateRequest_base: import("../zod-class").ZodClass<{
4645
+ localGatewayDisabled?: boolean | undefined;
4465
4646
  credentialId?: string | null | undefined;
4466
4647
  modelName?: string | undefined;
4467
- localGatewayDisabled?: boolean | undefined;
4468
4648
  }, {
4469
4649
  credentialId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4470
4650
  modelName: z.ZodOptional<z.ZodString>;
@@ -4572,13 +4752,13 @@ declare const instanceAiEvalSeedWorkflowSchema: z.ZodObject<{
4572
4752
  nodes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
4573
4753
  connections: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4574
4754
  }, "strip", z.ZodTypeAny, {
4575
- name: string;
4576
4755
  id: string;
4756
+ name: string;
4577
4757
  nodes: Record<string, unknown>[];
4578
4758
  connections: Record<string, unknown>;
4579
4759
  }, {
4580
- name: string;
4581
4760
  id: string;
4761
+ name: string;
4582
4762
  nodes: Record<string, unknown>[];
4583
4763
  connections: Record<string, unknown>;
4584
4764
  }>;
@@ -4597,15 +4777,15 @@ declare const instanceAiEvalSeedDataTableSchema: z.ZodObject<{
4597
4777
  name: string;
4598
4778
  }>, "many">;
4599
4779
  }, "strip", z.ZodTypeAny, {
4600
- name: string;
4601
4780
  id: string;
4781
+ name: string;
4602
4782
  columns: {
4603
4783
  type: "string" | "number" | "boolean" | "date";
4604
4784
  name: string;
4605
4785
  }[];
4606
4786
  }, {
4607
- name: string;
4608
4787
  id: string;
4788
+ name: string;
4609
4789
  columns: {
4610
4790
  type: "string" | "number" | "boolean" | "date";
4611
4791
  name: string;
@@ -4616,16 +4796,16 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
4616
4796
  threadId: string;
4617
4797
  messages: Record<string, unknown>[];
4618
4798
  dataTables?: {
4619
- name: string;
4620
4799
  id: string;
4800
+ name: string;
4621
4801
  columns: {
4622
4802
  type: "string" | "number" | "boolean" | "date";
4623
4803
  name: string;
4624
4804
  }[];
4625
4805
  }[] | undefined;
4626
4806
  workflows?: {
4627
- name: string;
4628
4807
  id: string;
4808
+ name: string;
4629
4809
  nodes: Record<string, unknown>[];
4630
4810
  connections: Record<string, unknown>;
4631
4811
  }[] | undefined;
@@ -4646,15 +4826,15 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
4646
4826
  name: string;
4647
4827
  }>, "many">;
4648
4828
  }, "strip", z.ZodTypeAny, {
4649
- name: string;
4650
4829
  id: string;
4830
+ name: string;
4651
4831
  columns: {
4652
4832
  type: "string" | "number" | "boolean" | "date";
4653
4833
  name: string;
4654
4834
  }[];
4655
4835
  }, {
4656
- name: string;
4657
4836
  id: string;
4837
+ name: string;
4658
4838
  columns: {
4659
4839
  type: "string" | "number" | "boolean" | "date";
4660
4840
  name: string;
@@ -4666,13 +4846,13 @@ declare const InstanceAiEvalRestoreThreadRequest_base: import("../zod-class").Zo
4666
4846
  nodes: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
4667
4847
  connections: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4668
4848
  }, "strip", z.ZodTypeAny, {
4669
- name: string;
4670
4849
  id: string;
4850
+ name: string;
4671
4851
  nodes: Record<string, unknown>[];
4672
4852
  connections: Record<string, unknown>;
4673
4853
  }, {
4674
- name: string;
4675
4854
  id: string;
4855
+ name: string;
4676
4856
  nodes: Record<string, unknown>[];
4677
4857
  connections: Record<string, unknown>;
4678
4858
  }>, "many">>;