@blazingagents/sdk 0.7.0 → 0.9.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.
@@ -14,6 +14,84 @@ export declare const agentStatusSchema: z.ZodEnum<{
14
14
  disabled: "disabled";
15
15
  }>;
16
16
  export declare const agentSchema: z.ZodObject<{
17
+ approvalInChat: z.ZodDefault<z.ZodObject<{
18
+ default: z.ZodEnum<{
19
+ auto: "auto";
20
+ deny: "deny";
21
+ full: "full";
22
+ manual: "manual";
23
+ }>;
24
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
25
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
26
+ type: z.ZodLiteral<"builtin">;
27
+ name: z.ZodEnum<{
28
+ activate_skill: "activate_skill";
29
+ bash: "bash";
30
+ delete_memory: "delete_memory";
31
+ edit: "edit";
32
+ get_memory: "get_memory";
33
+ glob: "glob";
34
+ grep: "grep";
35
+ publish_artifacts: "publish_artifacts";
36
+ read: "read";
37
+ save_memory: "save_memory";
38
+ search_memories: "search_memories";
39
+ update_memory: "update_memory";
40
+ write: "write";
41
+ write_todos: "write_todos";
42
+ }>;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ type: z.ZodLiteral<"mcp">;
45
+ connectionId: z.ZodString;
46
+ name: z.ZodString;
47
+ }, z.core.$strict>], "type">;
48
+ decision: z.ZodEnum<{
49
+ auto: "auto";
50
+ deny: "deny";
51
+ full: "full";
52
+ manual: "manual";
53
+ }>;
54
+ }, z.core.$strict>>>;
55
+ }, z.core.$strict>>;
56
+ approvalInTasks: z.ZodDefault<z.ZodObject<{
57
+ default: z.ZodEnum<{
58
+ auto: "auto";
59
+ deny: "deny";
60
+ full: "full";
61
+ manual: "manual";
62
+ }>;
63
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
64
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
65
+ type: z.ZodLiteral<"builtin">;
66
+ name: z.ZodEnum<{
67
+ activate_skill: "activate_skill";
68
+ bash: "bash";
69
+ delete_memory: "delete_memory";
70
+ edit: "edit";
71
+ get_memory: "get_memory";
72
+ glob: "glob";
73
+ grep: "grep";
74
+ publish_artifacts: "publish_artifacts";
75
+ read: "read";
76
+ save_memory: "save_memory";
77
+ search_memories: "search_memories";
78
+ update_memory: "update_memory";
79
+ write: "write";
80
+ write_todos: "write_todos";
81
+ }>;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ type: z.ZodLiteral<"mcp">;
84
+ connectionId: z.ZodString;
85
+ name: z.ZodString;
86
+ }, z.core.$strict>], "type">;
87
+ decision: z.ZodEnum<{
88
+ auto: "auto";
89
+ deny: "deny";
90
+ full: "full";
91
+ manual: "manual";
92
+ }>;
93
+ }, z.core.$strict>>>;
94
+ }, z.core.$strict>>;
17
95
  id: z.ZodString;
18
96
  tenantId: z.ZodString;
19
97
  name: z.ZodString;
@@ -44,6 +122,84 @@ export declare const agentSchema: z.ZodObject<{
44
122
  }, z.core.$strip>;
45
123
  export declare const agentsResponseSchema: z.ZodObject<{
46
124
  agents: z.ZodArray<z.ZodObject<{
125
+ approvalInChat: z.ZodDefault<z.ZodObject<{
126
+ default: z.ZodEnum<{
127
+ auto: "auto";
128
+ deny: "deny";
129
+ full: "full";
130
+ manual: "manual";
131
+ }>;
132
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
133
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
134
+ type: z.ZodLiteral<"builtin">;
135
+ name: z.ZodEnum<{
136
+ activate_skill: "activate_skill";
137
+ bash: "bash";
138
+ delete_memory: "delete_memory";
139
+ edit: "edit";
140
+ get_memory: "get_memory";
141
+ glob: "glob";
142
+ grep: "grep";
143
+ publish_artifacts: "publish_artifacts";
144
+ read: "read";
145
+ save_memory: "save_memory";
146
+ search_memories: "search_memories";
147
+ update_memory: "update_memory";
148
+ write: "write";
149
+ write_todos: "write_todos";
150
+ }>;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ type: z.ZodLiteral<"mcp">;
153
+ connectionId: z.ZodString;
154
+ name: z.ZodString;
155
+ }, z.core.$strict>], "type">;
156
+ decision: z.ZodEnum<{
157
+ auto: "auto";
158
+ deny: "deny";
159
+ full: "full";
160
+ manual: "manual";
161
+ }>;
162
+ }, z.core.$strict>>>;
163
+ }, z.core.$strict>>;
164
+ approvalInTasks: z.ZodDefault<z.ZodObject<{
165
+ default: z.ZodEnum<{
166
+ auto: "auto";
167
+ deny: "deny";
168
+ full: "full";
169
+ manual: "manual";
170
+ }>;
171
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
172
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
173
+ type: z.ZodLiteral<"builtin">;
174
+ name: z.ZodEnum<{
175
+ activate_skill: "activate_skill";
176
+ bash: "bash";
177
+ delete_memory: "delete_memory";
178
+ edit: "edit";
179
+ get_memory: "get_memory";
180
+ glob: "glob";
181
+ grep: "grep";
182
+ publish_artifacts: "publish_artifacts";
183
+ read: "read";
184
+ save_memory: "save_memory";
185
+ search_memories: "search_memories";
186
+ update_memory: "update_memory";
187
+ write: "write";
188
+ write_todos: "write_todos";
189
+ }>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ type: z.ZodLiteral<"mcp">;
192
+ connectionId: z.ZodString;
193
+ name: z.ZodString;
194
+ }, z.core.$strict>], "type">;
195
+ decision: z.ZodEnum<{
196
+ auto: "auto";
197
+ deny: "deny";
198
+ full: "full";
199
+ manual: "manual";
200
+ }>;
201
+ }, z.core.$strict>>>;
202
+ }, z.core.$strict>>;
47
203
  id: z.ZodString;
48
204
  tenantId: z.ZodString;
49
205
  name: z.ZodString;
@@ -74,6 +230,84 @@ export declare const agentsResponseSchema: z.ZodObject<{
74
230
  }, z.core.$strip>>;
75
231
  }, z.core.$strip>;
76
232
  export declare const agentResponseSchema: z.ZodObject<{
233
+ approvalInChat: z.ZodDefault<z.ZodObject<{
234
+ default: z.ZodEnum<{
235
+ auto: "auto";
236
+ deny: "deny";
237
+ full: "full";
238
+ manual: "manual";
239
+ }>;
240
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
241
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
242
+ type: z.ZodLiteral<"builtin">;
243
+ name: z.ZodEnum<{
244
+ activate_skill: "activate_skill";
245
+ bash: "bash";
246
+ delete_memory: "delete_memory";
247
+ edit: "edit";
248
+ get_memory: "get_memory";
249
+ glob: "glob";
250
+ grep: "grep";
251
+ publish_artifacts: "publish_artifacts";
252
+ read: "read";
253
+ save_memory: "save_memory";
254
+ search_memories: "search_memories";
255
+ update_memory: "update_memory";
256
+ write: "write";
257
+ write_todos: "write_todos";
258
+ }>;
259
+ }, z.core.$strict>, z.ZodObject<{
260
+ type: z.ZodLiteral<"mcp">;
261
+ connectionId: z.ZodString;
262
+ name: z.ZodString;
263
+ }, z.core.$strict>], "type">;
264
+ decision: z.ZodEnum<{
265
+ auto: "auto";
266
+ deny: "deny";
267
+ full: "full";
268
+ manual: "manual";
269
+ }>;
270
+ }, z.core.$strict>>>;
271
+ }, z.core.$strict>>;
272
+ approvalInTasks: z.ZodDefault<z.ZodObject<{
273
+ default: z.ZodEnum<{
274
+ auto: "auto";
275
+ deny: "deny";
276
+ full: "full";
277
+ manual: "manual";
278
+ }>;
279
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
280
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
281
+ type: z.ZodLiteral<"builtin">;
282
+ name: z.ZodEnum<{
283
+ activate_skill: "activate_skill";
284
+ bash: "bash";
285
+ delete_memory: "delete_memory";
286
+ edit: "edit";
287
+ get_memory: "get_memory";
288
+ glob: "glob";
289
+ grep: "grep";
290
+ publish_artifacts: "publish_artifacts";
291
+ read: "read";
292
+ save_memory: "save_memory";
293
+ search_memories: "search_memories";
294
+ update_memory: "update_memory";
295
+ write: "write";
296
+ write_todos: "write_todos";
297
+ }>;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ type: z.ZodLiteral<"mcp">;
300
+ connectionId: z.ZodString;
301
+ name: z.ZodString;
302
+ }, z.core.$strict>], "type">;
303
+ decision: z.ZodEnum<{
304
+ auto: "auto";
305
+ deny: "deny";
306
+ full: "full";
307
+ manual: "manual";
308
+ }>;
309
+ }, z.core.$strict>>>;
310
+ }, z.core.$strict>>;
77
311
  id: z.ZodString;
78
312
  tenantId: z.ZodString;
79
313
  name: z.ZodString;
@@ -107,6 +341,84 @@ export declare const agentsListQuerySchema: z.ZodObject<{
107
341
  workspaceId: z.ZodOptional<z.ZodString>;
108
342
  }, z.core.$strict>;
109
343
  export declare const agentVersionSchema: z.ZodObject<{
344
+ approvalInChat: z.ZodDefault<z.ZodObject<{
345
+ default: z.ZodEnum<{
346
+ auto: "auto";
347
+ deny: "deny";
348
+ full: "full";
349
+ manual: "manual";
350
+ }>;
351
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
352
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
353
+ type: z.ZodLiteral<"builtin">;
354
+ name: z.ZodEnum<{
355
+ activate_skill: "activate_skill";
356
+ bash: "bash";
357
+ delete_memory: "delete_memory";
358
+ edit: "edit";
359
+ get_memory: "get_memory";
360
+ glob: "glob";
361
+ grep: "grep";
362
+ publish_artifacts: "publish_artifacts";
363
+ read: "read";
364
+ save_memory: "save_memory";
365
+ search_memories: "search_memories";
366
+ update_memory: "update_memory";
367
+ write: "write";
368
+ write_todos: "write_todos";
369
+ }>;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ type: z.ZodLiteral<"mcp">;
372
+ connectionId: z.ZodString;
373
+ name: z.ZodString;
374
+ }, z.core.$strict>], "type">;
375
+ decision: z.ZodEnum<{
376
+ auto: "auto";
377
+ deny: "deny";
378
+ full: "full";
379
+ manual: "manual";
380
+ }>;
381
+ }, z.core.$strict>>>;
382
+ }, z.core.$strict>>;
383
+ approvalInTasks: z.ZodDefault<z.ZodObject<{
384
+ default: z.ZodEnum<{
385
+ auto: "auto";
386
+ deny: "deny";
387
+ full: "full";
388
+ manual: "manual";
389
+ }>;
390
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
391
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
392
+ type: z.ZodLiteral<"builtin">;
393
+ name: z.ZodEnum<{
394
+ activate_skill: "activate_skill";
395
+ bash: "bash";
396
+ delete_memory: "delete_memory";
397
+ edit: "edit";
398
+ get_memory: "get_memory";
399
+ glob: "glob";
400
+ grep: "grep";
401
+ publish_artifacts: "publish_artifacts";
402
+ read: "read";
403
+ save_memory: "save_memory";
404
+ search_memories: "search_memories";
405
+ update_memory: "update_memory";
406
+ write: "write";
407
+ write_todos: "write_todos";
408
+ }>;
409
+ }, z.core.$strict>, z.ZodObject<{
410
+ type: z.ZodLiteral<"mcp">;
411
+ connectionId: z.ZodString;
412
+ name: z.ZodString;
413
+ }, z.core.$strict>], "type">;
414
+ decision: z.ZodEnum<{
415
+ auto: "auto";
416
+ deny: "deny";
417
+ full: "full";
418
+ manual: "manual";
419
+ }>;
420
+ }, z.core.$strict>>>;
421
+ }, z.core.$strict>>;
110
422
  agentId: z.ZodString;
111
423
  tenantId: z.ZodString;
112
424
  version: z.ZodNumber;
@@ -133,6 +445,84 @@ export declare const agentVersionsListQuerySchema: z.ZodObject<{
133
445
  }, z.core.$strict>;
134
446
  export declare const agentVersionsResponseSchema: z.ZodObject<{
135
447
  data: z.ZodArray<z.ZodObject<{
448
+ approvalInChat: z.ZodDefault<z.ZodObject<{
449
+ default: z.ZodEnum<{
450
+ auto: "auto";
451
+ deny: "deny";
452
+ full: "full";
453
+ manual: "manual";
454
+ }>;
455
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
456
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
457
+ type: z.ZodLiteral<"builtin">;
458
+ name: z.ZodEnum<{
459
+ activate_skill: "activate_skill";
460
+ bash: "bash";
461
+ delete_memory: "delete_memory";
462
+ edit: "edit";
463
+ get_memory: "get_memory";
464
+ glob: "glob";
465
+ grep: "grep";
466
+ publish_artifacts: "publish_artifacts";
467
+ read: "read";
468
+ save_memory: "save_memory";
469
+ search_memories: "search_memories";
470
+ update_memory: "update_memory";
471
+ write: "write";
472
+ write_todos: "write_todos";
473
+ }>;
474
+ }, z.core.$strict>, z.ZodObject<{
475
+ type: z.ZodLiteral<"mcp">;
476
+ connectionId: z.ZodString;
477
+ name: z.ZodString;
478
+ }, z.core.$strict>], "type">;
479
+ decision: z.ZodEnum<{
480
+ auto: "auto";
481
+ deny: "deny";
482
+ full: "full";
483
+ manual: "manual";
484
+ }>;
485
+ }, z.core.$strict>>>;
486
+ }, z.core.$strict>>;
487
+ approvalInTasks: z.ZodDefault<z.ZodObject<{
488
+ default: z.ZodEnum<{
489
+ auto: "auto";
490
+ deny: "deny";
491
+ full: "full";
492
+ manual: "manual";
493
+ }>;
494
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
495
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
496
+ type: z.ZodLiteral<"builtin">;
497
+ name: z.ZodEnum<{
498
+ activate_skill: "activate_skill";
499
+ bash: "bash";
500
+ delete_memory: "delete_memory";
501
+ edit: "edit";
502
+ get_memory: "get_memory";
503
+ glob: "glob";
504
+ grep: "grep";
505
+ publish_artifacts: "publish_artifacts";
506
+ read: "read";
507
+ save_memory: "save_memory";
508
+ search_memories: "search_memories";
509
+ update_memory: "update_memory";
510
+ write: "write";
511
+ write_todos: "write_todos";
512
+ }>;
513
+ }, z.core.$strict>, z.ZodObject<{
514
+ type: z.ZodLiteral<"mcp">;
515
+ connectionId: z.ZodString;
516
+ name: z.ZodString;
517
+ }, z.core.$strict>], "type">;
518
+ decision: z.ZodEnum<{
519
+ auto: "auto";
520
+ deny: "deny";
521
+ full: "full";
522
+ manual: "manual";
523
+ }>;
524
+ }, z.core.$strict>>>;
525
+ }, z.core.$strict>>;
136
526
  agentId: z.ZodString;
137
527
  tenantId: z.ZodString;
138
528
  version: z.ZodNumber;
@@ -156,6 +546,84 @@ export declare const agentVersionsResponseSchema: z.ZodObject<{
156
546
  nextCursor: z.ZodNullable<z.ZodString>;
157
547
  }, z.core.$strip>;
158
548
  export declare const createAgentBodySchema: z.ZodObject<{
549
+ approvalInChat: z.ZodDefault<z.ZodObject<{
550
+ default: z.ZodEnum<{
551
+ auto: "auto";
552
+ deny: "deny";
553
+ full: "full";
554
+ manual: "manual";
555
+ }>;
556
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
557
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
558
+ type: z.ZodLiteral<"builtin">;
559
+ name: z.ZodEnum<{
560
+ activate_skill: "activate_skill";
561
+ bash: "bash";
562
+ delete_memory: "delete_memory";
563
+ edit: "edit";
564
+ get_memory: "get_memory";
565
+ glob: "glob";
566
+ grep: "grep";
567
+ publish_artifacts: "publish_artifacts";
568
+ read: "read";
569
+ save_memory: "save_memory";
570
+ search_memories: "search_memories";
571
+ update_memory: "update_memory";
572
+ write: "write";
573
+ write_todos: "write_todos";
574
+ }>;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ type: z.ZodLiteral<"mcp">;
577
+ connectionId: z.ZodString;
578
+ name: z.ZodString;
579
+ }, z.core.$strict>], "type">;
580
+ decision: z.ZodEnum<{
581
+ auto: "auto";
582
+ deny: "deny";
583
+ full: "full";
584
+ manual: "manual";
585
+ }>;
586
+ }, z.core.$strict>>>;
587
+ }, z.core.$strict>>;
588
+ approvalInTasks: z.ZodDefault<z.ZodObject<{
589
+ default: z.ZodEnum<{
590
+ auto: "auto";
591
+ deny: "deny";
592
+ full: "full";
593
+ manual: "manual";
594
+ }>;
595
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
596
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
597
+ type: z.ZodLiteral<"builtin">;
598
+ name: z.ZodEnum<{
599
+ activate_skill: "activate_skill";
600
+ bash: "bash";
601
+ delete_memory: "delete_memory";
602
+ edit: "edit";
603
+ get_memory: "get_memory";
604
+ glob: "glob";
605
+ grep: "grep";
606
+ publish_artifacts: "publish_artifacts";
607
+ read: "read";
608
+ save_memory: "save_memory";
609
+ search_memories: "search_memories";
610
+ update_memory: "update_memory";
611
+ write: "write";
612
+ write_todos: "write_todos";
613
+ }>;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ type: z.ZodLiteral<"mcp">;
616
+ connectionId: z.ZodString;
617
+ name: z.ZodString;
618
+ }, z.core.$strict>], "type">;
619
+ decision: z.ZodEnum<{
620
+ auto: "auto";
621
+ deny: "deny";
622
+ full: "full";
623
+ manual: "manual";
624
+ }>;
625
+ }, z.core.$strict>>>;
626
+ }, z.core.$strict>>;
159
627
  name: z.ZodString;
160
628
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
161
629
  thinkingLevel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -175,6 +643,84 @@ export declare const createAgentBodySchema: z.ZodObject<{
175
643
  mcpConnectionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
176
644
  }, z.core.$strict>;
177
645
  export declare const updateAgentBodySchema: z.ZodObject<{
646
+ approvalInChat: z.ZodOptional<z.ZodObject<{
647
+ default: z.ZodEnum<{
648
+ auto: "auto";
649
+ deny: "deny";
650
+ full: "full";
651
+ manual: "manual";
652
+ }>;
653
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
654
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
655
+ type: z.ZodLiteral<"builtin">;
656
+ name: z.ZodEnum<{
657
+ activate_skill: "activate_skill";
658
+ bash: "bash";
659
+ delete_memory: "delete_memory";
660
+ edit: "edit";
661
+ get_memory: "get_memory";
662
+ glob: "glob";
663
+ grep: "grep";
664
+ publish_artifacts: "publish_artifacts";
665
+ read: "read";
666
+ save_memory: "save_memory";
667
+ search_memories: "search_memories";
668
+ update_memory: "update_memory";
669
+ write: "write";
670
+ write_todos: "write_todos";
671
+ }>;
672
+ }, z.core.$strict>, z.ZodObject<{
673
+ type: z.ZodLiteral<"mcp">;
674
+ connectionId: z.ZodString;
675
+ name: z.ZodString;
676
+ }, z.core.$strict>], "type">;
677
+ decision: z.ZodEnum<{
678
+ auto: "auto";
679
+ deny: "deny";
680
+ full: "full";
681
+ manual: "manual";
682
+ }>;
683
+ }, z.core.$strict>>>;
684
+ }, z.core.$strict>>;
685
+ approvalInTasks: z.ZodOptional<z.ZodObject<{
686
+ default: z.ZodEnum<{
687
+ auto: "auto";
688
+ deny: "deny";
689
+ full: "full";
690
+ manual: "manual";
691
+ }>;
692
+ overrides: z.ZodDefault<z.ZodArray<z.ZodObject<{
693
+ tool: z.ZodDiscriminatedUnion<[z.ZodObject<{
694
+ type: z.ZodLiteral<"builtin">;
695
+ name: z.ZodEnum<{
696
+ activate_skill: "activate_skill";
697
+ bash: "bash";
698
+ delete_memory: "delete_memory";
699
+ edit: "edit";
700
+ get_memory: "get_memory";
701
+ glob: "glob";
702
+ grep: "grep";
703
+ publish_artifacts: "publish_artifacts";
704
+ read: "read";
705
+ save_memory: "save_memory";
706
+ search_memories: "search_memories";
707
+ update_memory: "update_memory";
708
+ write: "write";
709
+ write_todos: "write_todos";
710
+ }>;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ type: z.ZodLiteral<"mcp">;
713
+ connectionId: z.ZodString;
714
+ name: z.ZodString;
715
+ }, z.core.$strict>], "type">;
716
+ decision: z.ZodEnum<{
717
+ auto: "auto";
718
+ deny: "deny";
719
+ full: "full";
720
+ manual: "manual";
721
+ }>;
722
+ }, z.core.$strict>>>;
723
+ }, z.core.$strict>>;
178
724
  name: z.ZodOptional<z.ZodString>;
179
725
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
726
  thinkingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -201,4 +747,4 @@ export type AgentStatus = z.infer<typeof agentStatusSchema>;
201
747
  export type AgentVersionsListQuery = z.infer<typeof agentVersionsListQuerySchema>;
202
748
  export type AgentVersionsResponse = z.infer<typeof agentVersionsResponseSchema>;
203
749
  export type CreateAgentBody = z.input<typeof createAgentBodySchema>;
204
- export type UpdateAgentBody = z.infer<typeof updateAgentBodySchema>;
750
+ export type UpdateAgentBody = z.input<typeof updateAgentBodySchema>;
@@ -3,8 +3,19 @@ import { cursorSchema, paginatedResponseSchema } from "../api.js";
3
3
  import { agentIdSchema, mcpConnectionIdSchema, providerIdSchema, tenantIdSchema, workspaceIdSchema, } from "../ids.js";
4
4
  import { DEFAULT_AGENT_VERSIONS_LIST_LIMIT, MAX_AGENT_INSTRUCTIONS_LENGTH, MAX_AGENT_NAME_LENGTH, MAX_AGENT_VERSIONS_LIST_LIMIT, MAX_MCP_CONNECTIONS_PER_AGENT, } from "../limitations.js";
5
5
  import { atLeastOneFieldMessage, hasObjectKeys, hasUniqueValues, } from "../utils.js";
6
+ import { approvalPolicySchema } from "./agent-approval.js";
6
7
  import { agentToolGroupIds } from "./agent-tools.js";
7
8
  import { metadataSchema, userIdSchema } from "./attribution.js";
9
+ const approvalFields = {
10
+ approvalInChat: approvalPolicySchema.default({
11
+ default: "full",
12
+ overrides: [],
13
+ }),
14
+ approvalInTasks: approvalPolicySchema.default({
15
+ default: "full",
16
+ overrides: [],
17
+ }),
18
+ };
8
19
  const agentNameSchema = z.string().trim().min(1).max(MAX_AGENT_NAME_LENGTH);
9
20
  export const agentInstructionsSchema = z
10
21
  .string()
@@ -34,6 +45,7 @@ function hasProviderModelPair(input) {
34
45
  }
35
46
  export const agentSchema = z
36
47
  .object({
48
+ ...approvalFields,
37
49
  id: agentIdSchema,
38
50
  tenantId: tenantIdSchema,
39
51
  name: agentNameSchema,
@@ -79,6 +91,7 @@ export const agentsListQuerySchema = z
79
91
  .strict();
80
92
  export const agentVersionSchema = z
81
93
  .object({
94
+ ...approvalFields,
82
95
  agentId: agentIdSchema,
83
96
  tenantId: tenantIdSchema,
84
97
  version: agentVersionNumberSchema,
@@ -114,6 +127,7 @@ export const agentVersionsListQuerySchema = z
114
127
  export const agentVersionsResponseSchema = paginatedResponseSchema(agentVersionSchema);
115
128
  export const createAgentBodySchema = z
116
129
  .object({
130
+ ...approvalFields,
117
131
  name: agentNameSchema,
118
132
  model: agentModelIdSchema.nullable().default(null),
119
133
  thinkingLevel: z.string().min(1).nullable().default(null),
@@ -135,6 +149,8 @@ export const createAgentBodySchema = z
135
149
  });
136
150
  export const updateAgentBodySchema = z
137
151
  .object({
152
+ approvalInChat: approvalPolicySchema.optional(),
153
+ approvalInTasks: approvalPolicySchema.optional(),
138
154
  name: agentNameSchema.optional(),
139
155
  model: agentModelIdSchema.nullable().optional(),
140
156
  thinkingLevel: z.string().min(1).nullable().optional(),