@sixb/server 0.1.5 → 0.1.7

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 (74) hide show
  1. package/dist/auth/public-routes.d.ts.map +1 -1
  2. package/dist/auth/scope.d.ts +6 -2
  3. package/dist/auth/scope.d.ts.map +1 -1
  4. package/dist/files/content.d.ts +8 -0
  5. package/dist/files/content.d.ts.map +1 -1
  6. package/dist/index.js +2507 -1573
  7. package/dist/index.js.map +22 -20
  8. package/dist/models/display.d.ts +22 -0
  9. package/dist/models/display.d.ts.map +1 -0
  10. package/dist/routes/action-runs.d.ts +2 -0
  11. package/dist/routes/action-runs.d.ts.map +1 -1
  12. package/dist/routes/actions.d.ts +1 -0
  13. package/dist/routes/actions.d.ts.map +1 -1
  14. package/dist/routes/agent-api-gateway.d.ts.map +1 -1
  15. package/dist/routes/agents.d.ts +99 -89
  16. package/dist/routes/agents.d.ts.map +1 -1
  17. package/dist/routes/ai-accounting.d.ts.map +1 -1
  18. package/dist/routes/auth.d.ts +139 -15
  19. package/dist/routes/auth.d.ts.map +1 -1
  20. package/dist/routes/events.d.ts +3 -3
  21. package/dist/routes/files.d.ts +1 -0
  22. package/dist/routes/files.d.ts.map +1 -1
  23. package/dist/routes/models.d.ts +18 -1
  24. package/dist/routes/models.d.ts.map +1 -1
  25. package/dist/routes/objects.d.ts +3 -1
  26. package/dist/routes/objects.d.ts.map +1 -1
  27. package/dist/routes/pipelines.d.ts +2 -1
  28. package/dist/routes/pipelines.d.ts.map +1 -1
  29. package/dist/routes/rules.d.ts +1 -1
  30. package/dist/routes/syncs.d.ts +1 -0
  31. package/dist/routes/syncs.d.ts.map +1 -1
  32. package/dist/routes/workflows.d.ts +57 -54
  33. package/dist/routes/workflows.d.ts.map +1 -1
  34. package/dist/routes/ws/logs.d.ts +4 -4
  35. package/dist/schemas/agents.d.ts +378 -215
  36. package/dist/schemas/agents.d.ts.map +1 -1
  37. package/dist/schemas/ai-accounting.d.ts +1847 -295
  38. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  39. package/dist/schemas/ai-limits.d.ts +2210 -0
  40. package/dist/schemas/ai-limits.d.ts.map +1 -0
  41. package/dist/schemas/auth.d.ts +202 -72
  42. package/dist/schemas/auth.d.ts.map +1 -1
  43. package/dist/schemas/events.d.ts +6 -6
  44. package/dist/schemas/files.d.ts +3 -0
  45. package/dist/schemas/files.d.ts.map +1 -1
  46. package/dist/schemas/models.d.ts +214 -14
  47. package/dist/schemas/models.d.ts.map +1 -1
  48. package/dist/schemas/objects.d.ts +4 -4
  49. package/dist/schemas/pipelines.d.ts +6 -6
  50. package/dist/schemas/rules.d.ts +6 -6
  51. package/dist/schemas/workflows.d.ts +196 -206
  52. package/dist/schemas/workflows.d.ts.map +1 -1
  53. package/dist/utils/http.d.ts +8 -4
  54. package/dist/utils/http.d.ts.map +1 -1
  55. package/package.json +6 -6
  56. package/src/auth/public-routes.ts +18 -0
  57. package/src/auth/scope.ts +3 -2
  58. package/src/files/content.ts +39 -6
  59. package/src/models/display.ts +91 -0
  60. package/src/routes/agent-api-gateway.ts +137 -38
  61. package/src/routes/agents.ts +58 -83
  62. package/src/routes/ai-accounting.ts +414 -23
  63. package/src/routes/auth.ts +297 -2
  64. package/src/routes/models.ts +12 -4
  65. package/src/routes/workflows.ts +3 -5
  66. package/src/routes/ws/agents.ts +17 -6
  67. package/src/schemas/agents.ts +40 -49
  68. package/src/schemas/ai-accounting.ts +88 -19
  69. package/src/schemas/ai-limits.ts +116 -0
  70. package/src/schemas/auth.ts +39 -0
  71. package/src/schemas/files.ts +1 -0
  72. package/src/schemas/models.ts +33 -5
  73. package/src/schemas/workflows.ts +0 -2
  74. package/src/utils/http.ts +33 -2
@@ -1,13 +1,6 @@
1
1
  import { type AgentRunFailureCode, type SixbFailure } from "@sixb/core/storage";
2
2
  import { z } from "zod";
3
3
  export declare const AgentRunFailureSchema: z.ZodType<SixbFailure<AgentRunFailureCode>>;
4
- export declare const AgentIdParamsSchema: z.ZodObject<{
5
- agentId: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- agentId: string;
8
- }, {
9
- agentId: string;
10
- }>;
11
4
  export declare const AgentThreadParamsSchema: z.ZodObject<{
12
5
  threadId: z.ZodString;
13
6
  }, "strip", z.ZodTypeAny, {
@@ -297,166 +290,69 @@ export declare const AgentContextPartSchema: z.ZodObject<{
297
290
  label: string;
298
291
  };
299
292
  }>;
300
- export declare const AgentLoopConfigSchema: z.ZodObject<{
301
- stopWhen: z.ZodOptional<z.ZodObject<{
302
- maxSteps: z.ZodOptional<z.ZodNumber>;
303
- }, "strip", z.ZodTypeAny, {
304
- maxSteps?: number | undefined;
305
- }, {
306
- maxSteps?: number | undefined;
307
- }>>;
308
- context: z.ZodOptional<z.ZodObject<{
309
- windowTokens: z.ZodOptional<z.ZodNumber>;
310
- reserveTokens: z.ZodOptional<z.ZodNumber>;
311
- keepRecentTokens: z.ZodOptional<z.ZodNumber>;
312
- }, "strip", z.ZodTypeAny, {
313
- windowTokens?: number | undefined;
314
- reserveTokens?: number | undefined;
315
- keepRecentTokens?: number | undefined;
316
- }, {
317
- windowTokens?: number | undefined;
318
- reserveTokens?: number | undefined;
319
- keepRecentTokens?: number | undefined;
320
- }>>;
321
- }, "strip", z.ZodTypeAny, {
322
- context?: {
323
- windowTokens?: number | undefined;
324
- reserveTokens?: number | undefined;
325
- keepRecentTokens?: number | undefined;
326
- } | undefined;
327
- stopWhen?: {
328
- maxSteps?: number | undefined;
329
- } | undefined;
293
+ export declare const AgentReasoningLevelSchema: z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>;
294
+ export declare const AgentReasoningSchema: z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
295
+ budgetTokens: z.ZodNumber;
296
+ }, "strict", z.ZodTypeAny, {
297
+ budgetTokens: number;
330
298
  }, {
331
- context?: {
332
- windowTokens?: number | undefined;
333
- reserveTokens?: number | undefined;
334
- keepRecentTokens?: number | undefined;
335
- } | undefined;
336
- stopWhen?: {
337
- maxSteps?: number | undefined;
338
- } | undefined;
339
- }>;
340
- export declare const AgentReasoningLevelSchema: z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh"]>;
341
- export declare const AgentCatalogItemSchema: z.ZodObject<{
342
- id: z.ZodString;
299
+ budgetTokens: number;
300
+ }>]>;
301
+ export declare const AgentDescriptorSchema: z.ZodObject<{
343
302
  name: z.ZodString;
344
- description: z.ZodOptional<z.ZodString>;
345
- modelId: z.ZodOptional<z.ZodString>;
346
- reasoning: z.ZodOptional<z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh"]>>;
347
- groupIds: z.ZodArray<z.ZodString, "many">;
348
- loop: z.ZodOptional<z.ZodObject<{
349
- stopWhen: z.ZodOptional<z.ZodObject<{
350
- maxSteps: z.ZodOptional<z.ZodNumber>;
351
- }, "strip", z.ZodTypeAny, {
352
- maxSteps?: number | undefined;
353
- }, {
354
- maxSteps?: number | undefined;
355
- }>>;
356
- context: z.ZodOptional<z.ZodObject<{
357
- windowTokens: z.ZodOptional<z.ZodNumber>;
358
- reserveTokens: z.ZodOptional<z.ZodNumber>;
359
- keepRecentTokens: z.ZodOptional<z.ZodNumber>;
360
- }, "strip", z.ZodTypeAny, {
361
- windowTokens?: number | undefined;
362
- reserveTokens?: number | undefined;
363
- keepRecentTokens?: number | undefined;
364
- }, {
365
- windowTokens?: number | undefined;
366
- reserveTokens?: number | undefined;
367
- keepRecentTokens?: number | undefined;
368
- }>>;
303
+ model: z.ZodObject<{
304
+ provider: z.ZodString;
305
+ modelId: z.ZodString;
369
306
  }, "strip", z.ZodTypeAny, {
370
- context?: {
371
- windowTokens?: number | undefined;
372
- reserveTokens?: number | undefined;
373
- keepRecentTokens?: number | undefined;
374
- } | undefined;
375
- stopWhen?: {
376
- maxSteps?: number | undefined;
377
- } | undefined;
307
+ provider: string;
308
+ modelId: string;
378
309
  }, {
379
- context?: {
380
- windowTokens?: number | undefined;
381
- reserveTokens?: number | undefined;
382
- keepRecentTokens?: number | undefined;
383
- } | undefined;
384
- stopWhen?: {
385
- maxSteps?: number | undefined;
386
- } | undefined;
387
- }>>;
310
+ provider: string;
311
+ modelId: string;
312
+ }>;
388
313
  }, "strip", z.ZodTypeAny, {
389
- id: string;
390
314
  name: string;
391
- groupIds: string[];
392
- description?: string | undefined;
393
- modelId?: string | undefined;
394
- reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
395
- loop?: {
396
- context?: {
397
- windowTokens?: number | undefined;
398
- reserveTokens?: number | undefined;
399
- keepRecentTokens?: number | undefined;
400
- } | undefined;
401
- stopWhen?: {
402
- maxSteps?: number | undefined;
403
- } | undefined;
404
- } | undefined;
315
+ model: {
316
+ provider: string;
317
+ modelId: string;
318
+ };
405
319
  }, {
406
- id: string;
407
320
  name: string;
408
- groupIds: string[];
409
- description?: string | undefined;
410
- modelId?: string | undefined;
411
- reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
412
- loop?: {
413
- context?: {
414
- windowTokens?: number | undefined;
415
- reserveTokens?: number | undefined;
416
- keepRecentTokens?: number | undefined;
417
- } | undefined;
418
- stopWhen?: {
419
- maxSteps?: number | undefined;
420
- } | undefined;
421
- } | undefined;
321
+ model: {
322
+ provider: string;
323
+ modelId: string;
324
+ };
422
325
  }>;
423
326
  export declare const AgentThreadStatusSchema: z.ZodEnum<["active", "archived"]>;
424
327
  export declare const AgentThreadListQuerySchema: z.ZodObject<{
425
- agentId: z.ZodOptional<z.ZodString>;
426
328
  status: z.ZodOptional<z.ZodEnum<["active", "archived"]>>;
427
329
  limit: z.ZodOptional<z.ZodString>;
428
330
  offset: z.ZodOptional<z.ZodString>;
429
331
  order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
430
- }, "strip", z.ZodTypeAny, {
332
+ }, "strict", z.ZodTypeAny, {
431
333
  status?: "active" | "archived" | undefined;
432
334
  limit?: string | undefined;
433
335
  offset?: string | undefined;
434
336
  order?: "asc" | "desc" | undefined;
435
- agentId?: string | undefined;
436
337
  }, {
437
338
  status?: "active" | "archived" | undefined;
438
339
  limit?: string | undefined;
439
340
  offset?: string | undefined;
440
341
  order?: "asc" | "desc" | undefined;
441
- agentId?: string | undefined;
442
342
  }>;
443
343
  export declare const CreateAgentThreadBodySchema: z.ZodObject<{
444
- agentId: z.ZodString;
445
344
  title: z.ZodOptional<z.ZodString>;
446
345
  threadId: z.ZodOptional<z.ZodString>;
447
- }, "strip", z.ZodTypeAny, {
448
- agentId: string;
346
+ }, "strict", z.ZodTypeAny, {
449
347
  title?: string | undefined;
450
348
  threadId?: string | undefined;
451
349
  }, {
452
- agentId: string;
453
350
  title?: string | undefined;
454
351
  threadId?: string | undefined;
455
352
  }>;
456
353
  export declare const AgentThreadSchema: z.ZodObject<{
457
354
  id: z.ZodString;
458
355
  projectId: z.ZodString;
459
- agentId: z.ZodString;
460
356
  ownerPrincipal: z.ZodObject<{
461
357
  type: z.ZodEnum<["user", "serviceAccount", "system"]>;
462
358
  id: z.ZodString;
@@ -478,7 +374,6 @@ export declare const AgentThreadSchema: z.ZodObject<{
478
374
  status: "active" | "archived";
479
375
  projectId: string;
480
376
  id: string;
481
- agentId: string;
482
377
  ownerPrincipal: {
483
378
  id: string;
484
379
  type: "user" | "serviceAccount" | "system";
@@ -493,7 +388,6 @@ export declare const AgentThreadSchema: z.ZodObject<{
493
388
  status: "active" | "archived";
494
389
  projectId: string;
495
390
  id: string;
496
- agentId: string;
497
391
  ownerPrincipal: {
498
392
  id: string;
499
393
  type: "user" | "serviceAccount" | "system";
@@ -509,7 +403,6 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
509
403
  threads: z.ZodArray<z.ZodObject<{
510
404
  id: z.ZodString;
511
405
  projectId: z.ZodString;
512
- agentId: z.ZodString;
513
406
  ownerPrincipal: z.ZodObject<{
514
407
  type: z.ZodEnum<["user", "serviceAccount", "system"]>;
515
408
  id: z.ZodString;
@@ -531,7 +424,6 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
531
424
  status: "active" | "archived";
532
425
  projectId: string;
533
426
  id: string;
534
- agentId: string;
535
427
  ownerPrincipal: {
536
428
  id: string;
537
429
  type: "user" | "serviceAccount" | "system";
@@ -546,7 +438,6 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
546
438
  status: "active" | "archived";
547
439
  projectId: string;
548
440
  id: string;
549
- agentId: string;
550
441
  ownerPrincipal: {
551
442
  id: string;
552
443
  type: "user" | "serviceAccount" | "system";
@@ -567,7 +458,6 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
567
458
  status: "active" | "archived";
568
459
  projectId: string;
569
460
  id: string;
570
- agentId: string;
571
461
  ownerPrincipal: {
572
462
  id: string;
573
463
  type: "user" | "serviceAccount" | "system";
@@ -586,7 +476,6 @@ export declare const AgentThreadListResponseSchema: z.ZodObject<{
586
476
  status: "active" | "archived";
587
477
  projectId: string;
588
478
  id: string;
589
- agentId: string;
590
479
  ownerPrincipal: {
591
480
  id: string;
592
481
  type: "user" | "serviceAccount" | "system";
@@ -603,7 +492,6 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
603
492
  thread: z.ZodObject<{
604
493
  id: z.ZodString;
605
494
  projectId: z.ZodString;
606
- agentId: z.ZodString;
607
495
  ownerPrincipal: z.ZodObject<{
608
496
  type: z.ZodEnum<["user", "serviceAccount", "system"]>;
609
497
  id: z.ZodString;
@@ -625,7 +513,6 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
625
513
  status: "active" | "archived";
626
514
  projectId: string;
627
515
  id: string;
628
- agentId: string;
629
516
  ownerPrincipal: {
630
517
  id: string;
631
518
  type: "user" | "serviceAccount" | "system";
@@ -640,7 +527,6 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
640
527
  status: "active" | "archived";
641
528
  projectId: string;
642
529
  id: string;
643
- agentId: string;
644
530
  ownerPrincipal: {
645
531
  id: string;
646
532
  type: "user" | "serviceAccount" | "system";
@@ -657,7 +543,6 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
657
543
  status: "active" | "archived";
658
544
  projectId: string;
659
545
  id: string;
660
- agentId: string;
661
546
  ownerPrincipal: {
662
547
  id: string;
663
548
  type: "user" | "serviceAccount" | "system";
@@ -674,7 +559,6 @@ export declare const CreateAgentThreadResponseSchema: z.ZodObject<{
674
559
  status: "active" | "archived";
675
560
  projectId: string;
676
561
  id: string;
677
- agentId: string;
678
562
  ownerPrincipal: {
679
563
  id: string;
680
564
  type: "user" | "serviceAccount" | "system";
@@ -765,6 +649,18 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
765
649
  logicalPath?: string | undefined;
766
650
  };
767
651
  providerMetadata?: import("./common").JsonValue | undefined;
652
+ }>, z.ZodObject<{
653
+ type: z.ZodLiteral<"provider-state">;
654
+ providerId: z.ZodString;
655
+ data: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ type: "provider-state";
658
+ providerId: string;
659
+ data: import("./common").JsonValue;
660
+ }, {
661
+ type: "provider-state";
662
+ providerId: string;
663
+ data: import("./common").JsonValue;
768
664
  }>, z.ZodObject<{
769
665
  context: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
770
666
  kind: z.ZodLiteral<"object">;
@@ -858,9 +754,9 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
858
754
  }, "strip", z.ZodTypeAny, {
859
755
  type: "tool-call";
860
756
  output: import("./common").JsonValue;
757
+ input: import("./common").JsonValue;
861
758
  toolCallId: string;
862
759
  toolName: string;
863
- input: import("./common").JsonValue;
864
760
  state: "output-available";
865
761
  providerMetadata?: import("./common").JsonValue | undefined;
866
762
  dynamic?: boolean | undefined;
@@ -868,9 +764,9 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
868
764
  }, {
869
765
  type: "tool-call";
870
766
  output: import("./common").JsonValue;
767
+ input: import("./common").JsonValue;
871
768
  toolCallId: string;
872
769
  toolName: string;
873
- input: import("./common").JsonValue;
874
770
  state: "output-available";
875
771
  providerMetadata?: import("./common").JsonValue | undefined;
876
772
  dynamic?: boolean | undefined;
@@ -888,9 +784,9 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
888
784
  errorText: z.ZodString;
889
785
  }, "strip", z.ZodTypeAny, {
890
786
  type: "tool-call";
787
+ input: import("./common").JsonValue;
891
788
  toolCallId: string;
892
789
  toolName: string;
893
- input: import("./common").JsonValue;
894
790
  state: "output-error";
895
791
  errorText: string;
896
792
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -898,9 +794,9 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
898
794
  providerExecuted?: boolean | undefined;
899
795
  }, {
900
796
  type: "tool-call";
797
+ input: import("./common").JsonValue;
901
798
  toolCallId: string;
902
799
  toolName: string;
903
- input: import("./common").JsonValue;
904
800
  state: "output-error";
905
801
  errorText: string;
906
802
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1033,6 +929,18 @@ export declare const AgentMessageSchema: z.ZodObject<{
1033
929
  logicalPath?: string | undefined;
1034
930
  };
1035
931
  providerMetadata?: import("./common").JsonValue | undefined;
932
+ }>, z.ZodObject<{
933
+ type: z.ZodLiteral<"provider-state">;
934
+ providerId: z.ZodString;
935
+ data: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
936
+ }, "strip", z.ZodTypeAny, {
937
+ type: "provider-state";
938
+ providerId: string;
939
+ data: import("./common").JsonValue;
940
+ }, {
941
+ type: "provider-state";
942
+ providerId: string;
943
+ data: import("./common").JsonValue;
1036
944
  }>, z.ZodObject<{
1037
945
  context: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1038
946
  kind: z.ZodLiteral<"object">;
@@ -1126,9 +1034,9 @@ export declare const AgentMessageSchema: z.ZodObject<{
1126
1034
  }, "strip", z.ZodTypeAny, {
1127
1035
  type: "tool-call";
1128
1036
  output: import("./common").JsonValue;
1037
+ input: import("./common").JsonValue;
1129
1038
  toolCallId: string;
1130
1039
  toolName: string;
1131
- input: import("./common").JsonValue;
1132
1040
  state: "output-available";
1133
1041
  providerMetadata?: import("./common").JsonValue | undefined;
1134
1042
  dynamic?: boolean | undefined;
@@ -1136,9 +1044,9 @@ export declare const AgentMessageSchema: z.ZodObject<{
1136
1044
  }, {
1137
1045
  type: "tool-call";
1138
1046
  output: import("./common").JsonValue;
1047
+ input: import("./common").JsonValue;
1139
1048
  toolCallId: string;
1140
1049
  toolName: string;
1141
- input: import("./common").JsonValue;
1142
1050
  state: "output-available";
1143
1051
  providerMetadata?: import("./common").JsonValue | undefined;
1144
1052
  dynamic?: boolean | undefined;
@@ -1156,9 +1064,9 @@ export declare const AgentMessageSchema: z.ZodObject<{
1156
1064
  errorText: z.ZodString;
1157
1065
  }, "strip", z.ZodTypeAny, {
1158
1066
  type: "tool-call";
1067
+ input: import("./common").JsonValue;
1159
1068
  toolCallId: string;
1160
1069
  toolName: string;
1161
- input: import("./common").JsonValue;
1162
1070
  state: "output-error";
1163
1071
  errorText: string;
1164
1072
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1166,9 +1074,9 @@ export declare const AgentMessageSchema: z.ZodObject<{
1166
1074
  providerExecuted?: boolean | undefined;
1167
1075
  }, {
1168
1076
  type: "tool-call";
1077
+ input: import("./common").JsonValue;
1169
1078
  toolCallId: string;
1170
1079
  toolName: string;
1171
- input: import("./common").JsonValue;
1172
1080
  state: "output-error";
1173
1081
  errorText: string;
1174
1082
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1254,21 +1162,25 @@ export declare const AgentMessageSchema: z.ZodObject<{
1254
1162
  logicalPath?: string | undefined;
1255
1163
  };
1256
1164
  providerMetadata?: import("./common").JsonValue | undefined;
1165
+ } | {
1166
+ type: "provider-state";
1167
+ providerId: string;
1168
+ data: import("./common").JsonValue;
1257
1169
  } | {
1258
1170
  type: "tool-call";
1259
1171
  output: import("./common").JsonValue;
1172
+ input: import("./common").JsonValue;
1260
1173
  toolCallId: string;
1261
1174
  toolName: string;
1262
- input: import("./common").JsonValue;
1263
1175
  state: "output-available";
1264
1176
  providerMetadata?: import("./common").JsonValue | undefined;
1265
1177
  dynamic?: boolean | undefined;
1266
1178
  providerExecuted?: boolean | undefined;
1267
1179
  } | {
1268
1180
  type: "tool-call";
1181
+ input: import("./common").JsonValue;
1269
1182
  toolCallId: string;
1270
1183
  toolName: string;
1271
- input: import("./common").JsonValue;
1272
1184
  state: "output-error";
1273
1185
  errorText: string;
1274
1186
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1339,21 +1251,25 @@ export declare const AgentMessageSchema: z.ZodObject<{
1339
1251
  logicalPath?: string | undefined;
1340
1252
  };
1341
1253
  providerMetadata?: import("./common").JsonValue | undefined;
1254
+ } | {
1255
+ type: "provider-state";
1256
+ providerId: string;
1257
+ data: import("./common").JsonValue;
1342
1258
  } | {
1343
1259
  type: "tool-call";
1344
1260
  output: import("./common").JsonValue;
1261
+ input: import("./common").JsonValue;
1345
1262
  toolCallId: string;
1346
1263
  toolName: string;
1347
- input: import("./common").JsonValue;
1348
1264
  state: "output-available";
1349
1265
  providerMetadata?: import("./common").JsonValue | undefined;
1350
1266
  dynamic?: boolean | undefined;
1351
1267
  providerExecuted?: boolean | undefined;
1352
1268
  } | {
1353
1269
  type: "tool-call";
1270
+ input: import("./common").JsonValue;
1354
1271
  toolCallId: string;
1355
1272
  toolName: string;
1356
- input: import("./common").JsonValue;
1357
1273
  state: "output-error";
1358
1274
  errorText: string;
1359
1275
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1495,6 +1411,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1495
1411
  logicalPath?: string | undefined;
1496
1412
  };
1497
1413
  providerMetadata?: import("./common").JsonValue | undefined;
1414
+ }>, z.ZodObject<{
1415
+ type: z.ZodLiteral<"provider-state">;
1416
+ providerId: z.ZodString;
1417
+ data: z.ZodType<import("./common").JsonValue, z.ZodTypeDef, import("./common").JsonValue>;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ type: "provider-state";
1420
+ providerId: string;
1421
+ data: import("./common").JsonValue;
1422
+ }, {
1423
+ type: "provider-state";
1424
+ providerId: string;
1425
+ data: import("./common").JsonValue;
1498
1426
  }>, z.ZodObject<{
1499
1427
  context: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1500
1428
  kind: z.ZodLiteral<"object">;
@@ -1588,9 +1516,9 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1588
1516
  }, "strip", z.ZodTypeAny, {
1589
1517
  type: "tool-call";
1590
1518
  output: import("./common").JsonValue;
1519
+ input: import("./common").JsonValue;
1591
1520
  toolCallId: string;
1592
1521
  toolName: string;
1593
- input: import("./common").JsonValue;
1594
1522
  state: "output-available";
1595
1523
  providerMetadata?: import("./common").JsonValue | undefined;
1596
1524
  dynamic?: boolean | undefined;
@@ -1598,9 +1526,9 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1598
1526
  }, {
1599
1527
  type: "tool-call";
1600
1528
  output: import("./common").JsonValue;
1529
+ input: import("./common").JsonValue;
1601
1530
  toolCallId: string;
1602
1531
  toolName: string;
1603
- input: import("./common").JsonValue;
1604
1532
  state: "output-available";
1605
1533
  providerMetadata?: import("./common").JsonValue | undefined;
1606
1534
  dynamic?: boolean | undefined;
@@ -1618,9 +1546,9 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1618
1546
  errorText: z.ZodString;
1619
1547
  }, "strip", z.ZodTypeAny, {
1620
1548
  type: "tool-call";
1549
+ input: import("./common").JsonValue;
1621
1550
  toolCallId: string;
1622
1551
  toolName: string;
1623
- input: import("./common").JsonValue;
1624
1552
  state: "output-error";
1625
1553
  errorText: string;
1626
1554
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1628,9 +1556,9 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1628
1556
  providerExecuted?: boolean | undefined;
1629
1557
  }, {
1630
1558
  type: "tool-call";
1559
+ input: import("./common").JsonValue;
1631
1560
  toolCallId: string;
1632
1561
  toolName: string;
1633
- input: import("./common").JsonValue;
1634
1562
  state: "output-error";
1635
1563
  errorText: string;
1636
1564
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1716,21 +1644,25 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1716
1644
  logicalPath?: string | undefined;
1717
1645
  };
1718
1646
  providerMetadata?: import("./common").JsonValue | undefined;
1647
+ } | {
1648
+ type: "provider-state";
1649
+ providerId: string;
1650
+ data: import("./common").JsonValue;
1719
1651
  } | {
1720
1652
  type: "tool-call";
1721
1653
  output: import("./common").JsonValue;
1654
+ input: import("./common").JsonValue;
1722
1655
  toolCallId: string;
1723
1656
  toolName: string;
1724
- input: import("./common").JsonValue;
1725
1657
  state: "output-available";
1726
1658
  providerMetadata?: import("./common").JsonValue | undefined;
1727
1659
  dynamic?: boolean | undefined;
1728
1660
  providerExecuted?: boolean | undefined;
1729
1661
  } | {
1730
1662
  type: "tool-call";
1663
+ input: import("./common").JsonValue;
1731
1664
  toolCallId: string;
1732
1665
  toolName: string;
1733
- input: import("./common").JsonValue;
1734
1666
  state: "output-error";
1735
1667
  errorText: string;
1736
1668
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1801,21 +1733,25 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1801
1733
  logicalPath?: string | undefined;
1802
1734
  };
1803
1735
  providerMetadata?: import("./common").JsonValue | undefined;
1736
+ } | {
1737
+ type: "provider-state";
1738
+ providerId: string;
1739
+ data: import("./common").JsonValue;
1804
1740
  } | {
1805
1741
  type: "tool-call";
1806
1742
  output: import("./common").JsonValue;
1743
+ input: import("./common").JsonValue;
1807
1744
  toolCallId: string;
1808
1745
  toolName: string;
1809
- input: import("./common").JsonValue;
1810
1746
  state: "output-available";
1811
1747
  providerMetadata?: import("./common").JsonValue | undefined;
1812
1748
  dynamic?: boolean | undefined;
1813
1749
  providerExecuted?: boolean | undefined;
1814
1750
  } | {
1815
1751
  type: "tool-call";
1752
+ input: import("./common").JsonValue;
1816
1753
  toolCallId: string;
1817
1754
  toolName: string;
1818
- input: import("./common").JsonValue;
1819
1755
  state: "output-error";
1820
1756
  errorText: string;
1821
1757
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1892,21 +1828,25 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1892
1828
  logicalPath?: string | undefined;
1893
1829
  };
1894
1830
  providerMetadata?: import("./common").JsonValue | undefined;
1831
+ } | {
1832
+ type: "provider-state";
1833
+ providerId: string;
1834
+ data: import("./common").JsonValue;
1895
1835
  } | {
1896
1836
  type: "tool-call";
1897
1837
  output: import("./common").JsonValue;
1838
+ input: import("./common").JsonValue;
1898
1839
  toolCallId: string;
1899
1840
  toolName: string;
1900
- input: import("./common").JsonValue;
1901
1841
  state: "output-available";
1902
1842
  providerMetadata?: import("./common").JsonValue | undefined;
1903
1843
  dynamic?: boolean | undefined;
1904
1844
  providerExecuted?: boolean | undefined;
1905
1845
  } | {
1906
1846
  type: "tool-call";
1847
+ input: import("./common").JsonValue;
1907
1848
  toolCallId: string;
1908
1849
  toolName: string;
1909
- input: import("./common").JsonValue;
1910
1850
  state: "output-error";
1911
1851
  errorText: string;
1912
1852
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -1981,21 +1921,25 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1981
1921
  logicalPath?: string | undefined;
1982
1922
  };
1983
1923
  providerMetadata?: import("./common").JsonValue | undefined;
1924
+ } | {
1925
+ type: "provider-state";
1926
+ providerId: string;
1927
+ data: import("./common").JsonValue;
1984
1928
  } | {
1985
1929
  type: "tool-call";
1986
1930
  output: import("./common").JsonValue;
1931
+ input: import("./common").JsonValue;
1987
1932
  toolCallId: string;
1988
1933
  toolName: string;
1989
- input: import("./common").JsonValue;
1990
1934
  state: "output-available";
1991
1935
  providerMetadata?: import("./common").JsonValue | undefined;
1992
1936
  dynamic?: boolean | undefined;
1993
1937
  providerExecuted?: boolean | undefined;
1994
1938
  } | {
1995
1939
  type: "tool-call";
1940
+ input: import("./common").JsonValue;
1996
1941
  toolCallId: string;
1997
1942
  toolName: string;
1998
- input: import("./common").JsonValue;
1999
1943
  state: "output-error";
2000
1944
  errorText: string;
2001
1945
  providerMetadata?: import("./common").JsonValue | undefined;
@@ -2029,6 +1973,23 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
2029
1973
  }>;
2030
1974
  export declare const PostAgentMessageBodySchema: z.ZodObject<{
2031
1975
  text: z.ZodString;
1976
+ model: z.ZodOptional<z.ZodObject<{
1977
+ provider: z.ZodString;
1978
+ modelId: z.ZodString;
1979
+ }, "strip", z.ZodTypeAny, {
1980
+ provider: string;
1981
+ modelId: string;
1982
+ }, {
1983
+ provider: string;
1984
+ modelId: string;
1985
+ }>>;
1986
+ reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
1987
+ budgetTokens: z.ZodNumber;
1988
+ }, "strict", z.ZodTypeAny, {
1989
+ budgetTokens: number;
1990
+ }, {
1991
+ budgetTokens: number;
1992
+ }>]>>;
2032
1993
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2033
1994
  blobId: z.ZodString;
2034
1995
  digest: z.ZodString;
@@ -2128,8 +2089,12 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2128
2089
  };
2129
2090
  }>, "many">>;
2130
2091
  messageId: z.ZodOptional<z.ZodString>;
2131
- }, "strip", z.ZodTypeAny, {
2092
+ }, "strict", z.ZodTypeAny, {
2132
2093
  text: string;
2094
+ model?: {
2095
+ provider: string;
2096
+ modelId: string;
2097
+ } | undefined;
2133
2098
  context?: {
2134
2099
  origin: "ambient" | "explicit";
2135
2100
  context: {
@@ -2146,7 +2111,6 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2146
2111
  label: string;
2147
2112
  };
2148
2113
  }[] | undefined;
2149
- messageId?: string | undefined;
2150
2114
  attachments?: {
2151
2115
  blobId: string;
2152
2116
  digest: string;
@@ -2155,8 +2119,16 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2155
2119
  mediaType?: string | undefined;
2156
2120
  logicalPath?: string | undefined;
2157
2121
  }[] | undefined;
2122
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2123
+ budgetTokens: number;
2124
+ } | undefined;
2125
+ messageId?: string | undefined;
2158
2126
  }, {
2159
2127
  text: string;
2128
+ model?: {
2129
+ provider: string;
2130
+ modelId: string;
2131
+ } | undefined;
2160
2132
  context?: {
2161
2133
  origin: "ambient" | "explicit";
2162
2134
  context: {
@@ -2173,7 +2145,6 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2173
2145
  label: string;
2174
2146
  };
2175
2147
  }[] | undefined;
2176
- messageId?: string | undefined;
2177
2148
  attachments?: {
2178
2149
  blobId: string;
2179
2150
  digest: string;
@@ -2182,6 +2153,10 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2182
2153
  mediaType?: string | undefined;
2183
2154
  logicalPath?: string | undefined;
2184
2155
  }[] | undefined;
2156
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2157
+ budgetTokens: number;
2158
+ } | undefined;
2159
+ messageId?: string | undefined;
2185
2160
  }>;
2186
2161
  export declare const CancelAgentRunBodySchema: z.ZodObject<{
2187
2162
  runId: z.ZodString;
@@ -2196,7 +2171,6 @@ export declare const AgentRunSchema: z.ZodObject<{
2196
2171
  id: z.ZodString;
2197
2172
  projectId: z.ZodString;
2198
2173
  threadId: z.ZodString;
2199
- agentId: z.ZodString;
2200
2174
  triggerMessageId: z.ZodString;
2201
2175
  requestedBy: z.ZodOptional<z.ZodObject<{
2202
2176
  type: z.ZodEnum<["user", "serviceAccount"]>;
@@ -2209,6 +2183,23 @@ export declare const AgentRunSchema: z.ZodObject<{
2209
2183
  type: "user" | "serviceAccount";
2210
2184
  }>>;
2211
2185
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
2186
+ model: z.ZodOptional<z.ZodObject<{
2187
+ provider: z.ZodString;
2188
+ modelId: z.ZodString;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ provider: string;
2191
+ modelId: string;
2192
+ }, {
2193
+ provider: string;
2194
+ modelId: string;
2195
+ }>>;
2196
+ reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
2197
+ budgetTokens: z.ZodNumber;
2198
+ }, "strict", z.ZodTypeAny, {
2199
+ budgetTokens: number;
2200
+ }, {
2201
+ budgetTokens: number;
2202
+ }>]>>;
2212
2203
  modelId: z.ZodOptional<z.ZodString>;
2213
2204
  finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
2214
2205
  usage: z.ZodOptional<z.ZodObject<{
@@ -2292,7 +2283,7 @@ export declare const AgentRunSchema: z.ZodObject<{
2292
2283
  scope: "output";
2293
2284
  path?: string | undefined;
2294
2285
  }>, "many">>;
2295
- error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
2286
+ error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
2296
2287
  attempt: z.ZodNumber;
2297
2288
  streamId: z.ZodString;
2298
2289
  createdAt: z.ZodString;
@@ -2302,16 +2293,22 @@ export declare const AgentRunSchema: z.ZodObject<{
2302
2293
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2303
2294
  projectId: string;
2304
2295
  id: string;
2305
- agentId: string;
2306
2296
  attempt: number;
2307
2297
  threadId: string;
2308
2298
  createdAt: string;
2309
2299
  triggerMessageId: string;
2310
2300
  streamId: string;
2311
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2301
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2312
2302
  startedAt?: string | undefined;
2313
2303
  completedAt?: string | undefined;
2304
+ model?: {
2305
+ provider: string;
2306
+ modelId: string;
2307
+ } | undefined;
2314
2308
  modelId?: string | undefined;
2309
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2310
+ budgetTokens: number;
2311
+ } | undefined;
2315
2312
  usage?: {
2316
2313
  reportingStatus: "complete" | "partial" | "unavailable";
2317
2314
  inputTokens?: number | undefined;
@@ -2348,16 +2345,22 @@ export declare const AgentRunSchema: z.ZodObject<{
2348
2345
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2349
2346
  projectId: string;
2350
2347
  id: string;
2351
- agentId: string;
2352
2348
  attempt: number;
2353
2349
  threadId: string;
2354
2350
  createdAt: string;
2355
2351
  triggerMessageId: string;
2356
2352
  streamId: string;
2357
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2353
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2358
2354
  startedAt?: string | undefined;
2359
2355
  completedAt?: string | undefined;
2356
+ model?: {
2357
+ provider: string;
2358
+ modelId: string;
2359
+ } | undefined;
2360
2360
  modelId?: string | undefined;
2361
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2362
+ budgetTokens: number;
2363
+ } | undefined;
2361
2364
  usage?: {
2362
2365
  reportingStatus: "complete" | "partial" | "unavailable";
2363
2366
  inputTokens?: number | undefined;
@@ -2396,7 +2399,6 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2396
2399
  id: z.ZodString;
2397
2400
  projectId: z.ZodString;
2398
2401
  threadId: z.ZodString;
2399
- agentId: z.ZodString;
2400
2402
  triggerMessageId: z.ZodString;
2401
2403
  requestedBy: z.ZodOptional<z.ZodObject<{
2402
2404
  type: z.ZodEnum<["user", "serviceAccount"]>;
@@ -2409,6 +2411,23 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2409
2411
  type: "user" | "serviceAccount";
2410
2412
  }>>;
2411
2413
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
2414
+ model: z.ZodOptional<z.ZodObject<{
2415
+ provider: z.ZodString;
2416
+ modelId: z.ZodString;
2417
+ }, "strip", z.ZodTypeAny, {
2418
+ provider: string;
2419
+ modelId: string;
2420
+ }, {
2421
+ provider: string;
2422
+ modelId: string;
2423
+ }>>;
2424
+ reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
2425
+ budgetTokens: z.ZodNumber;
2426
+ }, "strict", z.ZodTypeAny, {
2427
+ budgetTokens: number;
2428
+ }, {
2429
+ budgetTokens: number;
2430
+ }>]>>;
2412
2431
  modelId: z.ZodOptional<z.ZodString>;
2413
2432
  finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
2414
2433
  usage: z.ZodOptional<z.ZodObject<{
@@ -2492,7 +2511,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2492
2511
  scope: "output";
2493
2512
  path?: string | undefined;
2494
2513
  }>, "many">>;
2495
- error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
2514
+ error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
2496
2515
  attempt: z.ZodNumber;
2497
2516
  streamId: z.ZodString;
2498
2517
  createdAt: z.ZodString;
@@ -2502,16 +2521,22 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2502
2521
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2503
2522
  projectId: string;
2504
2523
  id: string;
2505
- agentId: string;
2506
2524
  attempt: number;
2507
2525
  threadId: string;
2508
2526
  createdAt: string;
2509
2527
  triggerMessageId: string;
2510
2528
  streamId: string;
2511
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2529
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2512
2530
  startedAt?: string | undefined;
2513
2531
  completedAt?: string | undefined;
2532
+ model?: {
2533
+ provider: string;
2534
+ modelId: string;
2535
+ } | undefined;
2514
2536
  modelId?: string | undefined;
2537
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2538
+ budgetTokens: number;
2539
+ } | undefined;
2515
2540
  usage?: {
2516
2541
  reportingStatus: "complete" | "partial" | "unavailable";
2517
2542
  inputTokens?: number | undefined;
@@ -2548,16 +2573,22 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2548
2573
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2549
2574
  projectId: string;
2550
2575
  id: string;
2551
- agentId: string;
2552
2576
  attempt: number;
2553
2577
  threadId: string;
2554
2578
  createdAt: string;
2555
2579
  triggerMessageId: string;
2556
2580
  streamId: string;
2557
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2581
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2558
2582
  startedAt?: string | undefined;
2559
2583
  completedAt?: string | undefined;
2584
+ model?: {
2585
+ provider: string;
2586
+ modelId: string;
2587
+ } | undefined;
2560
2588
  modelId?: string | undefined;
2589
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2590
+ budgetTokens: number;
2591
+ } | undefined;
2561
2592
  usage?: {
2562
2593
  reportingStatus: "complete" | "partial" | "unavailable";
2563
2594
  inputTokens?: number | undefined;
@@ -2596,16 +2627,22 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2596
2627
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2597
2628
  projectId: string;
2598
2629
  id: string;
2599
- agentId: string;
2600
2630
  attempt: number;
2601
2631
  threadId: string;
2602
2632
  createdAt: string;
2603
2633
  triggerMessageId: string;
2604
2634
  streamId: string;
2605
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2635
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2606
2636
  startedAt?: string | undefined;
2607
2637
  completedAt?: string | undefined;
2638
+ model?: {
2639
+ provider: string;
2640
+ modelId: string;
2641
+ } | undefined;
2608
2642
  modelId?: string | undefined;
2643
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2644
+ budgetTokens: number;
2645
+ } | undefined;
2609
2646
  usage?: {
2610
2647
  reportingStatus: "complete" | "partial" | "unavailable";
2611
2648
  inputTokens?: number | undefined;
@@ -2644,16 +2681,22 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2644
2681
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2645
2682
  projectId: string;
2646
2683
  id: string;
2647
- agentId: string;
2648
2684
  attempt: number;
2649
2685
  threadId: string;
2650
2686
  createdAt: string;
2651
2687
  triggerMessageId: string;
2652
2688
  streamId: string;
2653
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2689
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2654
2690
  startedAt?: string | undefined;
2655
2691
  completedAt?: string | undefined;
2692
+ model?: {
2693
+ provider: string;
2694
+ modelId: string;
2695
+ } | undefined;
2656
2696
  modelId?: string | undefined;
2697
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2698
+ budgetTokens: number;
2699
+ } | undefined;
2657
2700
  usage?: {
2658
2701
  reportingStatus: "complete" | "partial" | "unavailable";
2659
2702
  inputTokens?: number | undefined;
@@ -2693,7 +2736,6 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2693
2736
  id: z.ZodString;
2694
2737
  projectId: z.ZodString;
2695
2738
  threadId: z.ZodString;
2696
- agentId: z.ZodString;
2697
2739
  triggerMessageId: z.ZodString;
2698
2740
  requestedBy: z.ZodOptional<z.ZodObject<{
2699
2741
  type: z.ZodEnum<["user", "serviceAccount"]>;
@@ -2706,6 +2748,23 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2706
2748
  type: "user" | "serviceAccount";
2707
2749
  }>>;
2708
2750
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
2751
+ model: z.ZodOptional<z.ZodObject<{
2752
+ provider: z.ZodString;
2753
+ modelId: z.ZodString;
2754
+ }, "strip", z.ZodTypeAny, {
2755
+ provider: string;
2756
+ modelId: string;
2757
+ }, {
2758
+ provider: string;
2759
+ modelId: string;
2760
+ }>>;
2761
+ reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
2762
+ budgetTokens: z.ZodNumber;
2763
+ }, "strict", z.ZodTypeAny, {
2764
+ budgetTokens: number;
2765
+ }, {
2766
+ budgetTokens: number;
2767
+ }>]>>;
2709
2768
  modelId: z.ZodOptional<z.ZodString>;
2710
2769
  finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
2711
2770
  usage: z.ZodOptional<z.ZodObject<{
@@ -2789,7 +2848,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2789
2848
  scope: "output";
2790
2849
  path?: string | undefined;
2791
2850
  }>, "many">>;
2792
- error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
2851
+ error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
2793
2852
  attempt: z.ZodNumber;
2794
2853
  streamId: z.ZodString;
2795
2854
  createdAt: z.ZodString;
@@ -2799,16 +2858,22 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2799
2858
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2800
2859
  projectId: string;
2801
2860
  id: string;
2802
- agentId: string;
2803
2861
  attempt: number;
2804
2862
  threadId: string;
2805
2863
  createdAt: string;
2806
2864
  triggerMessageId: string;
2807
2865
  streamId: string;
2808
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2866
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2809
2867
  startedAt?: string | undefined;
2810
2868
  completedAt?: string | undefined;
2869
+ model?: {
2870
+ provider: string;
2871
+ modelId: string;
2872
+ } | undefined;
2811
2873
  modelId?: string | undefined;
2874
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2875
+ budgetTokens: number;
2876
+ } | undefined;
2812
2877
  usage?: {
2813
2878
  reportingStatus: "complete" | "partial" | "unavailable";
2814
2879
  inputTokens?: number | undefined;
@@ -2845,16 +2910,22 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2845
2910
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2846
2911
  projectId: string;
2847
2912
  id: string;
2848
- agentId: string;
2849
2913
  attempt: number;
2850
2914
  threadId: string;
2851
2915
  createdAt: string;
2852
2916
  triggerMessageId: string;
2853
2917
  streamId: string;
2854
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2918
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2855
2919
  startedAt?: string | undefined;
2856
2920
  completedAt?: string | undefined;
2921
+ model?: {
2922
+ provider: string;
2923
+ modelId: string;
2924
+ } | undefined;
2857
2925
  modelId?: string | undefined;
2926
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2927
+ budgetTokens: number;
2928
+ } | undefined;
2858
2929
  usage?: {
2859
2930
  reportingStatus: "complete" | "partial" | "unavailable";
2860
2931
  inputTokens?: number | undefined;
@@ -2893,16 +2964,22 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2893
2964
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2894
2965
  projectId: string;
2895
2966
  id: string;
2896
- agentId: string;
2897
2967
  attempt: number;
2898
2968
  threadId: string;
2899
2969
  createdAt: string;
2900
2970
  triggerMessageId: string;
2901
2971
  streamId: string;
2902
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2972
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2903
2973
  startedAt?: string | undefined;
2904
2974
  completedAt?: string | undefined;
2975
+ model?: {
2976
+ provider: string;
2977
+ modelId: string;
2978
+ } | undefined;
2905
2979
  modelId?: string | undefined;
2980
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
2981
+ budgetTokens: number;
2982
+ } | undefined;
2906
2983
  usage?: {
2907
2984
  reportingStatus: "complete" | "partial" | "unavailable";
2908
2985
  inputTokens?: number | undefined;
@@ -2941,16 +3018,22 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2941
3018
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
2942
3019
  projectId: string;
2943
3020
  id: string;
2944
- agentId: string;
2945
3021
  attempt: number;
2946
3022
  threadId: string;
2947
3023
  createdAt: string;
2948
3024
  triggerMessageId: string;
2949
3025
  streamId: string;
2950
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3026
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
2951
3027
  startedAt?: string | undefined;
2952
3028
  completedAt?: string | undefined;
3029
+ model?: {
3030
+ provider: string;
3031
+ modelId: string;
3032
+ } | undefined;
2953
3033
  modelId?: string | undefined;
3034
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3035
+ budgetTokens: number;
3036
+ } | undefined;
2954
3037
  usage?: {
2955
3038
  reportingStatus: "complete" | "partial" | "unavailable";
2956
3039
  inputTokens?: number | undefined;
@@ -2990,7 +3073,6 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
2990
3073
  id: z.ZodString;
2991
3074
  projectId: z.ZodString;
2992
3075
  threadId: z.ZodString;
2993
- agentId: z.ZodString;
2994
3076
  triggerMessageId: z.ZodString;
2995
3077
  requestedBy: z.ZodOptional<z.ZodObject<{
2996
3078
  type: z.ZodEnum<["user", "serviceAccount"]>;
@@ -3003,6 +3085,23 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3003
3085
  type: "user" | "serviceAccount";
3004
3086
  }>>;
3005
3087
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
3088
+ model: z.ZodOptional<z.ZodObject<{
3089
+ provider: z.ZodString;
3090
+ modelId: z.ZodString;
3091
+ }, "strip", z.ZodTypeAny, {
3092
+ provider: string;
3093
+ modelId: string;
3094
+ }, {
3095
+ provider: string;
3096
+ modelId: string;
3097
+ }>>;
3098
+ reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
3099
+ budgetTokens: z.ZodNumber;
3100
+ }, "strict", z.ZodTypeAny, {
3101
+ budgetTokens: number;
3102
+ }, {
3103
+ budgetTokens: number;
3104
+ }>]>>;
3006
3105
  modelId: z.ZodOptional<z.ZodString>;
3007
3106
  finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
3008
3107
  usage: z.ZodOptional<z.ZodObject<{
@@ -3086,7 +3185,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3086
3185
  scope: "output";
3087
3186
  path?: string | undefined;
3088
3187
  }>, "many">>;
3089
- error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
3188
+ error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
3090
3189
  attempt: z.ZodNumber;
3091
3190
  streamId: z.ZodString;
3092
3191
  createdAt: z.ZodString;
@@ -3096,16 +3195,22 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3096
3195
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3097
3196
  projectId: string;
3098
3197
  id: string;
3099
- agentId: string;
3100
3198
  attempt: number;
3101
3199
  threadId: string;
3102
3200
  createdAt: string;
3103
3201
  triggerMessageId: string;
3104
3202
  streamId: string;
3105
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3203
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3106
3204
  startedAt?: string | undefined;
3107
3205
  completedAt?: string | undefined;
3206
+ model?: {
3207
+ provider: string;
3208
+ modelId: string;
3209
+ } | undefined;
3108
3210
  modelId?: string | undefined;
3211
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3212
+ budgetTokens: number;
3213
+ } | undefined;
3109
3214
  usage?: {
3110
3215
  reportingStatus: "complete" | "partial" | "unavailable";
3111
3216
  inputTokens?: number | undefined;
@@ -3142,16 +3247,22 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3142
3247
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3143
3248
  projectId: string;
3144
3249
  id: string;
3145
- agentId: string;
3146
3250
  attempt: number;
3147
3251
  threadId: string;
3148
3252
  createdAt: string;
3149
3253
  triggerMessageId: string;
3150
3254
  streamId: string;
3151
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3255
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3152
3256
  startedAt?: string | undefined;
3153
3257
  completedAt?: string | undefined;
3258
+ model?: {
3259
+ provider: string;
3260
+ modelId: string;
3261
+ } | undefined;
3154
3262
  modelId?: string | undefined;
3263
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3264
+ budgetTokens: number;
3265
+ } | undefined;
3155
3266
  usage?: {
3156
3267
  reportingStatus: "complete" | "partial" | "unavailable";
3157
3268
  inputTokens?: number | undefined;
@@ -3190,16 +3301,22 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3190
3301
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3191
3302
  projectId: string;
3192
3303
  id: string;
3193
- agentId: string;
3194
3304
  attempt: number;
3195
3305
  threadId: string;
3196
3306
  createdAt: string;
3197
3307
  triggerMessageId: string;
3198
3308
  streamId: string;
3199
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3309
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3200
3310
  startedAt?: string | undefined;
3201
3311
  completedAt?: string | undefined;
3312
+ model?: {
3313
+ provider: string;
3314
+ modelId: string;
3315
+ } | undefined;
3202
3316
  modelId?: string | undefined;
3317
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3318
+ budgetTokens: number;
3319
+ } | undefined;
3203
3320
  usage?: {
3204
3321
  reportingStatus: "complete" | "partial" | "unavailable";
3205
3322
  inputTokens?: number | undefined;
@@ -3238,16 +3355,22 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3238
3355
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3239
3356
  projectId: string;
3240
3357
  id: string;
3241
- agentId: string;
3242
3358
  attempt: number;
3243
3359
  threadId: string;
3244
3360
  createdAt: string;
3245
3361
  triggerMessageId: string;
3246
3362
  streamId: string;
3247
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3363
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3248
3364
  startedAt?: string | undefined;
3249
3365
  completedAt?: string | undefined;
3366
+ model?: {
3367
+ provider: string;
3368
+ modelId: string;
3369
+ } | undefined;
3250
3370
  modelId?: string | undefined;
3371
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3372
+ budgetTokens: number;
3373
+ } | undefined;
3251
3374
  usage?: {
3252
3375
  reportingStatus: "complete" | "partial" | "unavailable";
3253
3376
  inputTokens?: number | undefined;
@@ -3303,7 +3426,6 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3303
3426
  id: z.ZodString;
3304
3427
  projectId: z.ZodString;
3305
3428
  threadId: z.ZodString;
3306
- agentId: z.ZodString;
3307
3429
  triggerMessageId: z.ZodString;
3308
3430
  requestedBy: z.ZodOptional<z.ZodObject<{
3309
3431
  type: z.ZodEnum<["user", "serviceAccount"]>;
@@ -3316,6 +3438,23 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3316
3438
  type: "user" | "serviceAccount";
3317
3439
  }>>;
3318
3440
  status: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
3441
+ model: z.ZodOptional<z.ZodObject<{
3442
+ provider: z.ZodString;
3443
+ modelId: z.ZodString;
3444
+ }, "strip", z.ZodTypeAny, {
3445
+ provider: string;
3446
+ modelId: string;
3447
+ }, {
3448
+ provider: string;
3449
+ modelId: string;
3450
+ }>>;
3451
+ reasoning: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["provider-default", "none", "minimal", "low", "medium", "high", "xhigh", "max"]>, z.ZodObject<{
3452
+ budgetTokens: z.ZodNumber;
3453
+ }, "strict", z.ZodTypeAny, {
3454
+ budgetTokens: number;
3455
+ }, {
3456
+ budgetTokens: number;
3457
+ }>]>>;
3319
3458
  modelId: z.ZodOptional<z.ZodString>;
3320
3459
  finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
3321
3460
  usage: z.ZodOptional<z.ZodObject<{
@@ -3399,7 +3538,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3399
3538
  scope: "output";
3400
3539
  path?: string | undefined;
3401
3540
  }>, "many">>;
3402
- error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled">>>;
3541
+ error: z.ZodOptional<z.ZodType<SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">, z.ZodTypeDef, SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled">>>;
3403
3542
  attempt: z.ZodNumber;
3404
3543
  streamId: z.ZodString;
3405
3544
  createdAt: z.ZodString;
@@ -3409,16 +3548,22 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3409
3548
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3410
3549
  projectId: string;
3411
3550
  id: string;
3412
- agentId: string;
3413
3551
  attempt: number;
3414
3552
  threadId: string;
3415
3553
  createdAt: string;
3416
3554
  triggerMessageId: string;
3417
3555
  streamId: string;
3418
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3556
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3419
3557
  startedAt?: string | undefined;
3420
3558
  completedAt?: string | undefined;
3559
+ model?: {
3560
+ provider: string;
3561
+ modelId: string;
3562
+ } | undefined;
3421
3563
  modelId?: string | undefined;
3564
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3565
+ budgetTokens: number;
3566
+ } | undefined;
3422
3567
  usage?: {
3423
3568
  reportingStatus: "complete" | "partial" | "unavailable";
3424
3569
  inputTokens?: number | undefined;
@@ -3455,16 +3600,22 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3455
3600
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3456
3601
  projectId: string;
3457
3602
  id: string;
3458
- agentId: string;
3459
3603
  attempt: number;
3460
3604
  threadId: string;
3461
3605
  createdAt: string;
3462
3606
  triggerMessageId: string;
3463
3607
  streamId: string;
3464
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3608
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3465
3609
  startedAt?: string | undefined;
3466
3610
  completedAt?: string | undefined;
3611
+ model?: {
3612
+ provider: string;
3613
+ modelId: string;
3614
+ } | undefined;
3467
3615
  modelId?: string | undefined;
3616
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3617
+ budgetTokens: number;
3618
+ } | undefined;
3468
3619
  usage?: {
3469
3620
  reportingStatus: "complete" | "partial" | "unavailable";
3470
3621
  inputTokens?: number | undefined;
@@ -3505,16 +3656,22 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3505
3656
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3506
3657
  projectId: string;
3507
3658
  id: string;
3508
- agentId: string;
3509
3659
  attempt: number;
3510
3660
  threadId: string;
3511
3661
  createdAt: string;
3512
3662
  triggerMessageId: string;
3513
3663
  streamId: string;
3514
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3664
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3515
3665
  startedAt?: string | undefined;
3516
3666
  completedAt?: string | undefined;
3667
+ model?: {
3668
+ provider: string;
3669
+ modelId: string;
3670
+ } | undefined;
3517
3671
  modelId?: string | undefined;
3672
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3673
+ budgetTokens: number;
3674
+ } | undefined;
3518
3675
  usage?: {
3519
3676
  reportingStatus: "complete" | "partial" | "unavailable";
3520
3677
  inputTokens?: number | undefined;
@@ -3555,16 +3712,22 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3555
3712
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
3556
3713
  projectId: string;
3557
3714
  id: string;
3558
- agentId: string;
3559
3715
  attempt: number;
3560
3716
  threadId: string;
3561
3717
  createdAt: string;
3562
3718
  triggerMessageId: string;
3563
3719
  streamId: string;
3564
- error?: SixbFailure<"agent.execution_failed" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3720
+ error?: SixbFailure<"agent.execution_failed" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "internal.unexpected" | "runtime.cancelled"> | undefined;
3565
3721
  startedAt?: string | undefined;
3566
3722
  completedAt?: string | undefined;
3723
+ model?: {
3724
+ provider: string;
3725
+ modelId: string;
3726
+ } | undefined;
3567
3727
  modelId?: string | undefined;
3728
+ reasoning?: "none" | "provider-default" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
3729
+ budgetTokens: number;
3730
+ } | undefined;
3568
3731
  usage?: {
3569
3732
  reportingStatus: "complete" | "partial" | "unavailable";
3570
3733
  inputTokens?: number | undefined;