@sixb/server 0.1.16 → 0.1.18

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 (99) hide show
  1. package/README.md +6 -0
  2. package/dist/auth/experience.d.ts +5 -1
  3. package/dist/auth/experience.d.ts.map +1 -1
  4. package/dist/auth/public-routes.d.ts.map +1 -1
  5. package/dist/auth/shared-access.d.ts.map +1 -1
  6. package/dist/files/content.d.ts +0 -1
  7. package/dist/files/content.d.ts.map +1 -1
  8. package/dist/index.js +603 -456
  9. package/dist/index.js.map +34 -33
  10. package/dist/registerRoutes.d.ts.map +1 -1
  11. package/dist/routes/agents.d.ts +56 -28
  12. package/dist/routes/agents.d.ts.map +1 -1
  13. package/dist/routes/ai-accounting.d.ts.map +1 -1
  14. package/dist/routes/auth.d.ts +4 -3
  15. package/dist/routes/auth.d.ts.map +1 -1
  16. package/dist/routes/datasets.d.ts +4 -1
  17. package/dist/routes/datasets.d.ts.map +1 -1
  18. package/dist/routes/file-downloads.d.ts +98 -0
  19. package/dist/routes/file-downloads.d.ts.map +1 -0
  20. package/dist/routes/files.d.ts.map +1 -1
  21. package/dist/routes/models.d.ts +1 -0
  22. package/dist/routes/models.d.ts.map +1 -1
  23. package/dist/routes/objects.d.ts +24 -4
  24. package/dist/routes/objects.d.ts.map +1 -1
  25. package/dist/routes/ontology.d.ts +4 -4
  26. package/dist/routes/project.d.ts +2 -0
  27. package/dist/routes/project.d.ts.map +1 -1
  28. package/dist/routes/status.d.ts +0 -4
  29. package/dist/routes/status.d.ts.map +1 -1
  30. package/dist/routes/workflows.d.ts +6 -0
  31. package/dist/routes/workflows.d.ts.map +1 -1
  32. package/dist/routes/ws/events.d.ts.map +1 -1
  33. package/dist/routes/ws/logs.d.ts +11 -0
  34. package/dist/routes/ws/logs.d.ts.map +1 -1
  35. package/dist/routes/ws/subscription-hub.d.ts +71 -0
  36. package/dist/routes/ws/subscription-hub.d.ts.map +1 -0
  37. package/dist/schemas/agents.d.ts +255 -123
  38. package/dist/schemas/agents.d.ts.map +1 -1
  39. package/dist/schemas/ai-accounting.d.ts +234 -110
  40. package/dist/schemas/ai-accounting.d.ts.map +1 -1
  41. package/dist/schemas/ai-usage.d.ts +3 -0
  42. package/dist/schemas/ai-usage.d.ts.map +1 -1
  43. package/dist/schemas/auth.d.ts +9 -2
  44. package/dist/schemas/auth.d.ts.map +1 -1
  45. package/dist/schemas/common.d.ts +8 -0
  46. package/dist/schemas/common.d.ts.map +1 -1
  47. package/dist/schemas/datasets.d.ts +18 -3
  48. package/dist/schemas/datasets.d.ts.map +1 -1
  49. package/dist/schemas/event-payloads.d.ts +39 -0
  50. package/dist/schemas/event-payloads.d.ts.map +1 -1
  51. package/dist/schemas/files.d.ts +1 -1
  52. package/dist/schemas/files.d.ts.map +1 -1
  53. package/dist/schemas/models.d.ts +10 -0
  54. package/dist/schemas/models.d.ts.map +1 -1
  55. package/dist/schemas/objects.d.ts +32 -0
  56. package/dist/schemas/objects.d.ts.map +1 -1
  57. package/dist/schemas/ontology.d.ts +18 -18
  58. package/dist/schemas/project.d.ts +8 -0
  59. package/dist/schemas/project.d.ts.map +1 -1
  60. package/dist/schemas/status.d.ts +0 -26
  61. package/dist/schemas/status.d.ts.map +1 -1
  62. package/dist/schemas/workflows.d.ts +52 -0
  63. package/dist/schemas/workflows.d.ts.map +1 -1
  64. package/dist/server.d.ts.map +1 -1
  65. package/package.json +6 -5
  66. package/src/auth/experience.ts +20 -2
  67. package/src/auth/public-routes.ts +10 -0
  68. package/src/auth/shared-access.ts +48 -6
  69. package/src/files/content.ts +43 -88
  70. package/src/registerRoutes.ts +2 -0
  71. package/src/routes/agents.ts +29 -9
  72. package/src/routes/ai-accounting.ts +1 -0
  73. package/src/routes/auth.ts +84 -19
  74. package/src/routes/datasets.ts +12 -43
  75. package/src/routes/file-downloads.ts +48 -0
  76. package/src/routes/files.ts +3 -1
  77. package/src/routes/models.ts +3 -0
  78. package/src/routes/objects.ts +25 -5
  79. package/src/routes/project.ts +2 -1
  80. package/src/routes/workflows.ts +5 -0
  81. package/src/routes/ws/events.ts +98 -133
  82. package/src/routes/ws/logs.ts +67 -5
  83. package/src/routes/ws/subscription-hub.ts +394 -0
  84. package/src/schemas/agents.ts +28 -3
  85. package/src/schemas/ai-accounting.ts +5 -0
  86. package/src/schemas/ai-usage.ts +3 -0
  87. package/src/schemas/auth.ts +5 -0
  88. package/src/schemas/common.ts +3 -0
  89. package/src/schemas/datasets.ts +23 -1
  90. package/src/schemas/event-payloads.ts +3 -1
  91. package/src/schemas/files.ts +7 -1
  92. package/src/schemas/models.ts +2 -0
  93. package/src/schemas/objects.ts +41 -2
  94. package/src/schemas/project.ts +4 -0
  95. package/src/schemas/status.ts +0 -6
  96. package/src/server.ts +7 -1
  97. package/dist/routes/ws/log-subscription-hub.d.ts +0 -50
  98. package/dist/routes/ws/log-subscription-hub.d.ts.map +0 -1
  99. package/src/routes/ws/log-subscription-hub.ts +0 -369
@@ -58,18 +58,21 @@ export declare const AgentObjectContextSchema: z.ZodObject<{
58
58
  objectTypeId: string;
59
59
  primaryId: string;
60
60
  }>;
61
+ label: z.ZodOptional<z.ZodString>;
61
62
  }, "strip", z.ZodTypeAny, {
62
63
  kind: "object";
63
64
  ref: {
64
65
  objectTypeId: string;
65
66
  primaryId: string;
66
67
  };
68
+ label?: string | undefined;
67
69
  }, {
68
70
  kind: "object";
69
71
  ref: {
70
72
  objectTypeId: string;
71
73
  primaryId: string;
72
74
  };
75
+ label?: string | undefined;
73
76
  }>;
74
77
  export declare const AgentAppStateContextSchema: z.ZodObject<{
75
78
  kind: z.ZodLiteral<"app-state">;
@@ -102,18 +105,21 @@ export declare const AgentContextInputSchema: z.ZodDiscriminatedUnion<"kind", [z
102
105
  objectTypeId: string;
103
106
  primaryId: string;
104
107
  }>;
108
+ label: z.ZodOptional<z.ZodString>;
105
109
  }, "strip", z.ZodTypeAny, {
106
110
  kind: "object";
107
111
  ref: {
108
112
  objectTypeId: string;
109
113
  primaryId: string;
110
114
  };
115
+ label?: string | undefined;
111
116
  }, {
112
117
  kind: "object";
113
118
  ref: {
114
119
  objectTypeId: string;
115
120
  primaryId: string;
116
121
  };
122
+ label?: string | undefined;
117
123
  }>, z.ZodObject<{
118
124
  kind: z.ZodLiteral<"app-state">;
119
125
  id: z.ZodString;
@@ -147,18 +153,21 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
147
153
  objectTypeId: string;
148
154
  primaryId: string;
149
155
  }>;
156
+ label: z.ZodOptional<z.ZodString>;
150
157
  }, "strip", z.ZodTypeAny, {
151
158
  kind: "object";
152
159
  ref: {
153
160
  objectTypeId: string;
154
161
  primaryId: string;
155
162
  };
163
+ label?: string | undefined;
156
164
  }, {
157
165
  kind: "object";
158
166
  ref: {
159
167
  objectTypeId: string;
160
168
  primaryId: string;
161
169
  };
170
+ label?: string | undefined;
162
171
  }>, z.ZodObject<{
163
172
  kind: z.ZodLiteral<"app-state">;
164
173
  id: z.ZodString;
@@ -187,6 +196,7 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
187
196
  objectTypeId: string;
188
197
  primaryId: string;
189
198
  };
199
+ label?: string | undefined;
190
200
  } | {
191
201
  id: string;
192
202
  kind: "app-state";
@@ -202,6 +212,7 @@ export declare const AgentContextEntryInputSchema: z.ZodObject<{
202
212
  objectTypeId: string;
203
213
  primaryId: string;
204
214
  };
215
+ label?: string | undefined;
205
216
  } | {
206
217
  id: string;
207
218
  kind: "app-state";
@@ -223,18 +234,21 @@ export declare const AgentContextPartSchema: z.ZodObject<{
223
234
  objectTypeId: string;
224
235
  primaryId: string;
225
236
  }>;
237
+ label: z.ZodOptional<z.ZodString>;
226
238
  }, "strip", z.ZodTypeAny, {
227
239
  kind: "object";
228
240
  ref: {
229
241
  objectTypeId: string;
230
242
  primaryId: string;
231
243
  };
244
+ label?: string | undefined;
232
245
  }, {
233
246
  kind: "object";
234
247
  ref: {
235
248
  objectTypeId: string;
236
249
  primaryId: string;
237
250
  };
251
+ label?: string | undefined;
238
252
  }>, z.ZodObject<{
239
253
  kind: z.ZodLiteral<"app-state">;
240
254
  id: z.ZodString;
@@ -265,6 +279,7 @@ export declare const AgentContextPartSchema: z.ZodObject<{
265
279
  objectTypeId: string;
266
280
  primaryId: string;
267
281
  };
282
+ label?: string | undefined;
268
283
  } | {
269
284
  id: string;
270
285
  kind: "app-state";
@@ -281,6 +296,7 @@ export declare const AgentContextPartSchema: z.ZodObject<{
281
296
  objectTypeId: string;
282
297
  primaryId: string;
283
298
  };
299
+ label?: string | undefined;
284
300
  } | {
285
301
  id: string;
286
302
  kind: "app-state";
@@ -681,6 +697,12 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
681
697
  type: "text";
682
698
  text: string;
683
699
  providerMetadata?: import("./common").JsonValue | undefined;
700
+ }>, z.ZodObject<{
701
+ type: z.ZodLiteral<"continuation">;
702
+ }, "strip", z.ZodTypeAny, {
703
+ type: "continuation";
704
+ }, {
705
+ type: "continuation";
684
706
  }>, z.ZodObject<{
685
707
  type: z.ZodLiteral<"reasoning">;
686
708
  text: z.ZodString;
@@ -771,18 +793,21 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
771
793
  objectTypeId: string;
772
794
  primaryId: string;
773
795
  }>;
796
+ label: z.ZodOptional<z.ZodString>;
774
797
  }, "strip", z.ZodTypeAny, {
775
798
  kind: "object";
776
799
  ref: {
777
800
  objectTypeId: string;
778
801
  primaryId: string;
779
802
  };
803
+ label?: string | undefined;
780
804
  }, {
781
805
  kind: "object";
782
806
  ref: {
783
807
  objectTypeId: string;
784
808
  primaryId: string;
785
809
  };
810
+ label?: string | undefined;
786
811
  }>, z.ZodObject<{
787
812
  kind: z.ZodLiteral<"app-state">;
788
813
  id: z.ZodString;
@@ -813,6 +838,7 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
813
838
  objectTypeId: string;
814
839
  primaryId: string;
815
840
  };
841
+ label?: string | undefined;
816
842
  } | {
817
843
  id: string;
818
844
  kind: "app-state";
@@ -829,6 +855,7 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
829
855
  objectTypeId: string;
830
856
  primaryId: string;
831
857
  };
858
+ label?: string | undefined;
832
859
  } | {
833
860
  id: string;
834
861
  kind: "app-state";
@@ -901,22 +928,22 @@ export declare const AgentMessagePartSchema: z.ZodUnion<[z.ZodObject<{
901
928
  providerExecuted?: boolean | undefined;
902
929
  }>]>;
903
930
  export declare const AgentRunDiagnosticSchema: z.ZodObject<{
904
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
931
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
905
932
  severity: z.ZodEnum<["warning", "error"]>;
906
- scope: z.ZodLiteral<"output">;
933
+ scope: z.ZodEnum<["output", "run"]>;
907
934
  path: z.ZodOptional<z.ZodString>;
908
935
  message: z.ZodString;
909
936
  }, "strip", z.ZodTypeAny, {
910
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
937
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
911
938
  message: string;
912
939
  severity: "error" | "warning";
913
- scope: "output";
940
+ scope: "output" | "run";
914
941
  path?: string | undefined;
915
942
  }, {
916
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
943
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
917
944
  message: string;
918
945
  severity: "error" | "warning";
919
- scope: "output";
946
+ scope: "output" | "run";
920
947
  path?: string | undefined;
921
948
  }>;
922
949
  export declare const AgentMessageCompactionSchema: z.ZodObject<{
@@ -961,6 +988,12 @@ export declare const AgentMessageSchema: z.ZodObject<{
961
988
  type: "text";
962
989
  text: string;
963
990
  providerMetadata?: import("./common").JsonValue | undefined;
991
+ }>, z.ZodObject<{
992
+ type: z.ZodLiteral<"continuation">;
993
+ }, "strip", z.ZodTypeAny, {
994
+ type: "continuation";
995
+ }, {
996
+ type: "continuation";
964
997
  }>, z.ZodObject<{
965
998
  type: z.ZodLiteral<"reasoning">;
966
999
  text: z.ZodString;
@@ -1051,18 +1084,21 @@ export declare const AgentMessageSchema: z.ZodObject<{
1051
1084
  objectTypeId: string;
1052
1085
  primaryId: string;
1053
1086
  }>;
1087
+ label: z.ZodOptional<z.ZodString>;
1054
1088
  }, "strip", z.ZodTypeAny, {
1055
1089
  kind: "object";
1056
1090
  ref: {
1057
1091
  objectTypeId: string;
1058
1092
  primaryId: string;
1059
1093
  };
1094
+ label?: string | undefined;
1060
1095
  }, {
1061
1096
  kind: "object";
1062
1097
  ref: {
1063
1098
  objectTypeId: string;
1064
1099
  primaryId: string;
1065
1100
  };
1101
+ label?: string | undefined;
1066
1102
  }>, z.ZodObject<{
1067
1103
  kind: z.ZodLiteral<"app-state">;
1068
1104
  id: z.ZodString;
@@ -1093,6 +1129,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
1093
1129
  objectTypeId: string;
1094
1130
  primaryId: string;
1095
1131
  };
1132
+ label?: string | undefined;
1096
1133
  } | {
1097
1134
  id: string;
1098
1135
  kind: "app-state";
@@ -1109,6 +1146,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
1109
1146
  objectTypeId: string;
1110
1147
  primaryId: string;
1111
1148
  };
1149
+ label?: string | undefined;
1112
1150
  } | {
1113
1151
  id: string;
1114
1152
  kind: "app-state";
@@ -1182,22 +1220,22 @@ export declare const AgentMessageSchema: z.ZodObject<{
1182
1220
  }>]>, "many">;
1183
1221
  /** Platform-authored annotations associated with this message's run. */
1184
1222
  annotations: z.ZodArray<z.ZodObject<{
1185
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
1223
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
1186
1224
  severity: z.ZodEnum<["warning", "error"]>;
1187
- scope: z.ZodLiteral<"output">;
1225
+ scope: z.ZodEnum<["output", "run"]>;
1188
1226
  path: z.ZodOptional<z.ZodString>;
1189
1227
  message: z.ZodString;
1190
1228
  }, "strip", z.ZodTypeAny, {
1191
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1229
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1192
1230
  message: string;
1193
1231
  severity: "error" | "warning";
1194
- scope: "output";
1232
+ scope: "output" | "run";
1195
1233
  path?: string | undefined;
1196
1234
  }, {
1197
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1235
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1198
1236
  message: string;
1199
1237
  severity: "error" | "warning";
1200
- scope: "output";
1238
+ scope: "output" | "run";
1201
1239
  path?: string | undefined;
1202
1240
  }>, "many">;
1203
1241
  /** A durable context summary created before this response's model call. */
@@ -1230,6 +1268,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
1230
1268
  objectTypeId: string;
1231
1269
  primaryId: string;
1232
1270
  };
1271
+ label?: string | undefined;
1233
1272
  } | {
1234
1273
  id: string;
1235
1274
  kind: "app-state";
@@ -1283,16 +1322,18 @@ export declare const AgentMessageSchema: z.ZodObject<{
1283
1322
  providerMetadata?: import("./common").JsonValue | undefined;
1284
1323
  dynamic?: boolean | undefined;
1285
1324
  providerExecuted?: boolean | undefined;
1325
+ } | {
1326
+ type: "continuation";
1286
1327
  })[];
1287
1328
  threadId: string;
1288
1329
  createdAt: string;
1289
1330
  role: "user" | "system" | "assistant";
1290
1331
  seq: number;
1291
1332
  annotations: {
1292
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1333
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1293
1334
  message: string;
1294
1335
  severity: "error" | "warning";
1295
- scope: "output";
1336
+ scope: "output" | "run";
1296
1337
  path?: string | undefined;
1297
1338
  }[];
1298
1339
  contentVersion: number;
@@ -1319,6 +1360,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
1319
1360
  objectTypeId: string;
1320
1361
  primaryId: string;
1321
1362
  };
1363
+ label?: string | undefined;
1322
1364
  } | {
1323
1365
  id: string;
1324
1366
  kind: "app-state";
@@ -1372,16 +1414,18 @@ export declare const AgentMessageSchema: z.ZodObject<{
1372
1414
  providerMetadata?: import("./common").JsonValue | undefined;
1373
1415
  dynamic?: boolean | undefined;
1374
1416
  providerExecuted?: boolean | undefined;
1417
+ } | {
1418
+ type: "continuation";
1375
1419
  })[];
1376
1420
  threadId: string;
1377
1421
  createdAt: string;
1378
1422
  role: "user" | "system" | "assistant";
1379
1423
  seq: number;
1380
1424
  annotations: {
1381
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1425
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1382
1426
  message: string;
1383
1427
  severity: "error" | "warning";
1384
- scope: "output";
1428
+ scope: "output" | "run";
1385
1429
  path?: string | undefined;
1386
1430
  }[];
1387
1431
  contentVersion: number;
@@ -1443,6 +1487,12 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1443
1487
  type: "text";
1444
1488
  text: string;
1445
1489
  providerMetadata?: import("./common").JsonValue | undefined;
1490
+ }>, z.ZodObject<{
1491
+ type: z.ZodLiteral<"continuation">;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ type: "continuation";
1494
+ }, {
1495
+ type: "continuation";
1446
1496
  }>, z.ZodObject<{
1447
1497
  type: z.ZodLiteral<"reasoning">;
1448
1498
  text: z.ZodString;
@@ -1533,18 +1583,21 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1533
1583
  objectTypeId: string;
1534
1584
  primaryId: string;
1535
1585
  }>;
1586
+ label: z.ZodOptional<z.ZodString>;
1536
1587
  }, "strip", z.ZodTypeAny, {
1537
1588
  kind: "object";
1538
1589
  ref: {
1539
1590
  objectTypeId: string;
1540
1591
  primaryId: string;
1541
1592
  };
1593
+ label?: string | undefined;
1542
1594
  }, {
1543
1595
  kind: "object";
1544
1596
  ref: {
1545
1597
  objectTypeId: string;
1546
1598
  primaryId: string;
1547
1599
  };
1600
+ label?: string | undefined;
1548
1601
  }>, z.ZodObject<{
1549
1602
  kind: z.ZodLiteral<"app-state">;
1550
1603
  id: z.ZodString;
@@ -1575,6 +1628,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1575
1628
  objectTypeId: string;
1576
1629
  primaryId: string;
1577
1630
  };
1631
+ label?: string | undefined;
1578
1632
  } | {
1579
1633
  id: string;
1580
1634
  kind: "app-state";
@@ -1591,6 +1645,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1591
1645
  objectTypeId: string;
1592
1646
  primaryId: string;
1593
1647
  };
1648
+ label?: string | undefined;
1594
1649
  } | {
1595
1650
  id: string;
1596
1651
  kind: "app-state";
@@ -1664,22 +1719,22 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1664
1719
  }>]>, "many">;
1665
1720
  /** Platform-authored annotations associated with this message's run. */
1666
1721
  annotations: z.ZodArray<z.ZodObject<{
1667
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
1722
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
1668
1723
  severity: z.ZodEnum<["warning", "error"]>;
1669
- scope: z.ZodLiteral<"output">;
1724
+ scope: z.ZodEnum<["output", "run"]>;
1670
1725
  path: z.ZodOptional<z.ZodString>;
1671
1726
  message: z.ZodString;
1672
1727
  }, "strip", z.ZodTypeAny, {
1673
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1728
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1674
1729
  message: string;
1675
1730
  severity: "error" | "warning";
1676
- scope: "output";
1731
+ scope: "output" | "run";
1677
1732
  path?: string | undefined;
1678
1733
  }, {
1679
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1734
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1680
1735
  message: string;
1681
1736
  severity: "error" | "warning";
1682
- scope: "output";
1737
+ scope: "output" | "run";
1683
1738
  path?: string | undefined;
1684
1739
  }>, "many">;
1685
1740
  /** A durable context summary created before this response's model call. */
@@ -1712,6 +1767,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1712
1767
  objectTypeId: string;
1713
1768
  primaryId: string;
1714
1769
  };
1770
+ label?: string | undefined;
1715
1771
  } | {
1716
1772
  id: string;
1717
1773
  kind: "app-state";
@@ -1765,16 +1821,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1765
1821
  providerMetadata?: import("./common").JsonValue | undefined;
1766
1822
  dynamic?: boolean | undefined;
1767
1823
  providerExecuted?: boolean | undefined;
1824
+ } | {
1825
+ type: "continuation";
1768
1826
  })[];
1769
1827
  threadId: string;
1770
1828
  createdAt: string;
1771
1829
  role: "user" | "system" | "assistant";
1772
1830
  seq: number;
1773
1831
  annotations: {
1774
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1832
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1775
1833
  message: string;
1776
1834
  severity: "error" | "warning";
1777
- scope: "output";
1835
+ scope: "output" | "run";
1778
1836
  path?: string | undefined;
1779
1837
  }[];
1780
1838
  contentVersion: number;
@@ -1801,6 +1859,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1801
1859
  objectTypeId: string;
1802
1860
  primaryId: string;
1803
1861
  };
1862
+ label?: string | undefined;
1804
1863
  } | {
1805
1864
  id: string;
1806
1865
  kind: "app-state";
@@ -1854,16 +1913,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1854
1913
  providerMetadata?: import("./common").JsonValue | undefined;
1855
1914
  dynamic?: boolean | undefined;
1856
1915
  providerExecuted?: boolean | undefined;
1916
+ } | {
1917
+ type: "continuation";
1857
1918
  })[];
1858
1919
  threadId: string;
1859
1920
  createdAt: string;
1860
1921
  role: "user" | "system" | "assistant";
1861
1922
  seq: number;
1862
1923
  annotations: {
1863
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
1924
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1864
1925
  message: string;
1865
1926
  severity: "error" | "warning";
1866
- scope: "output";
1927
+ scope: "output" | "run";
1867
1928
  path?: string | undefined;
1868
1929
  }[];
1869
1930
  contentVersion: number;
@@ -1896,6 +1957,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1896
1957
  objectTypeId: string;
1897
1958
  primaryId: string;
1898
1959
  };
1960
+ label?: string | undefined;
1899
1961
  } | {
1900
1962
  id: string;
1901
1963
  kind: "app-state";
@@ -1949,16 +2011,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1949
2011
  providerMetadata?: import("./common").JsonValue | undefined;
1950
2012
  dynamic?: boolean | undefined;
1951
2013
  providerExecuted?: boolean | undefined;
2014
+ } | {
2015
+ type: "continuation";
1952
2016
  })[];
1953
2017
  threadId: string;
1954
2018
  createdAt: string;
1955
2019
  role: "user" | "system" | "assistant";
1956
2020
  seq: number;
1957
2021
  annotations: {
1958
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2022
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
1959
2023
  message: string;
1960
2024
  severity: "error" | "warning";
1961
- scope: "output";
2025
+ scope: "output" | "run";
1962
2026
  path?: string | undefined;
1963
2027
  }[];
1964
2028
  contentVersion: number;
@@ -1989,6 +2053,7 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
1989
2053
  objectTypeId: string;
1990
2054
  primaryId: string;
1991
2055
  };
2056
+ label?: string | undefined;
1992
2057
  } | {
1993
2058
  id: string;
1994
2059
  kind: "app-state";
@@ -2042,16 +2107,18 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
2042
2107
  providerMetadata?: import("./common").JsonValue | undefined;
2043
2108
  dynamic?: boolean | undefined;
2044
2109
  providerExecuted?: boolean | undefined;
2110
+ } | {
2111
+ type: "continuation";
2045
2112
  })[];
2046
2113
  threadId: string;
2047
2114
  createdAt: string;
2048
2115
  role: "user" | "system" | "assistant";
2049
2116
  seq: number;
2050
2117
  annotations: {
2051
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2118
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2052
2119
  message: string;
2053
2120
  severity: "error" | "warning";
2054
- scope: "output";
2121
+ scope: "output" | "run";
2055
2122
  path?: string | undefined;
2056
2123
  }[];
2057
2124
  contentVersion: number;
@@ -2069,7 +2136,10 @@ export declare const AgentMessageListResponseSchema: z.ZodObject<{
2069
2136
  }[];
2070
2137
  }>;
2071
2138
  export declare const PostAgentMessageBodySchema: z.ZodObject<{
2072
- text: z.ZodString;
2139
+ /** Required unless `continue` is set. */
2140
+ text: z.ZodOptional<z.ZodString>;
2141
+ /** Continue the previous answer after it reached the turn limit, without text of its own. */
2142
+ continue: z.ZodOptional<z.ZodLiteral<true>>;
2073
2143
  model: z.ZodOptional<z.ZodObject<{
2074
2144
  provider: z.ZodString;
2075
2145
  modelId: z.ZodString;
@@ -2087,6 +2157,10 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2087
2157
  }, {
2088
2158
  budgetTokens: number;
2089
2159
  }>]>>;
2160
+ /** IANA time zone of the person asking. The Agent presents dates and times in it. */
2161
+ timeZone: z.ZodOptional<z.ZodString>;
2162
+ /** BCP 47 language of the person asking. */
2163
+ locale: z.ZodOptional<z.ZodString>;
2090
2164
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2091
2165
  blobId: z.ZodString;
2092
2166
  digest: z.ZodString;
@@ -2122,18 +2196,21 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2122
2196
  objectTypeId: string;
2123
2197
  primaryId: string;
2124
2198
  }>;
2199
+ label: z.ZodOptional<z.ZodString>;
2125
2200
  }, "strip", z.ZodTypeAny, {
2126
2201
  kind: "object";
2127
2202
  ref: {
2128
2203
  objectTypeId: string;
2129
2204
  primaryId: string;
2130
2205
  };
2206
+ label?: string | undefined;
2131
2207
  }, {
2132
2208
  kind: "object";
2133
2209
  ref: {
2134
2210
  objectTypeId: string;
2135
2211
  primaryId: string;
2136
2212
  };
2213
+ label?: string | undefined;
2137
2214
  }>, z.ZodObject<{
2138
2215
  kind: z.ZodLiteral<"app-state">;
2139
2216
  id: z.ZodString;
@@ -2162,6 +2239,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2162
2239
  objectTypeId: string;
2163
2240
  primaryId: string;
2164
2241
  };
2242
+ label?: string | undefined;
2165
2243
  } | {
2166
2244
  id: string;
2167
2245
  kind: "app-state";
@@ -2177,6 +2255,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2177
2255
  objectTypeId: string;
2178
2256
  primaryId: string;
2179
2257
  };
2258
+ label?: string | undefined;
2180
2259
  } | {
2181
2260
  id: string;
2182
2261
  kind: "app-state";
@@ -2187,7 +2266,8 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2187
2266
  }>, "many">>;
2188
2267
  messageId: z.ZodOptional<z.ZodString>;
2189
2268
  }, "strict", z.ZodTypeAny, {
2190
- text: string;
2269
+ locale?: string | undefined;
2270
+ timeZone?: string | undefined;
2191
2271
  context?: {
2192
2272
  origin: "ambient" | "explicit";
2193
2273
  context: {
@@ -2196,6 +2276,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2196
2276
  objectTypeId: string;
2197
2277
  primaryId: string;
2198
2278
  };
2279
+ label?: string | undefined;
2199
2280
  } | {
2200
2281
  id: string;
2201
2282
  kind: "app-state";
@@ -2204,6 +2285,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2204
2285
  label: string;
2205
2286
  };
2206
2287
  }[] | undefined;
2288
+ text?: string | undefined;
2207
2289
  model?: {
2208
2290
  modelId: string;
2209
2291
  provider: string;
@@ -2220,8 +2302,10 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2220
2302
  budgetTokens: number;
2221
2303
  } | undefined;
2222
2304
  messageId?: string | undefined;
2305
+ continue?: true | undefined;
2223
2306
  }, {
2224
- text: string;
2307
+ locale?: string | undefined;
2308
+ timeZone?: string | undefined;
2225
2309
  context?: {
2226
2310
  origin: "ambient" | "explicit";
2227
2311
  context: {
@@ -2230,6 +2314,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2230
2314
  objectTypeId: string;
2231
2315
  primaryId: string;
2232
2316
  };
2317
+ label?: string | undefined;
2233
2318
  } | {
2234
2319
  id: string;
2235
2320
  kind: "app-state";
@@ -2238,6 +2323,7 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2238
2323
  label: string;
2239
2324
  };
2240
2325
  }[] | undefined;
2326
+ text?: string | undefined;
2241
2327
  model?: {
2242
2328
  modelId: string;
2243
2329
  provider: string;
@@ -2254,6 +2340,19 @@ export declare const PostAgentMessageBodySchema: z.ZodObject<{
2254
2340
  budgetTokens: number;
2255
2341
  } | undefined;
2256
2342
  messageId?: string | undefined;
2343
+ continue?: true | undefined;
2344
+ }>;
2345
+ /** A refused message request, with the stable code of the reason, such as `invalid_locale`. */
2346
+ export declare const AgentRequestErrorResponseSchema: z.ZodObject<{
2347
+ error: z.ZodString;
2348
+ } & {
2349
+ code: z.ZodOptional<z.ZodString>;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ error: string;
2352
+ code?: string | undefined;
2353
+ }, {
2354
+ error: string;
2355
+ code?: string | undefined;
2257
2356
  }>;
2258
2357
  export declare const CancelAgentRunBodySchema: z.ZodObject<{
2259
2358
  runId: z.ZodString;
@@ -2263,7 +2362,7 @@ export declare const CancelAgentRunBodySchema: z.ZodObject<{
2263
2362
  runId: string;
2264
2363
  }>;
2265
2364
  export declare const AgentRunStatusSchema: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled"]>;
2266
- export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>;
2365
+ export declare const AgentRunFinishReasonSchema: z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>;
2267
2366
  export declare const AgentRunSchema: z.ZodObject<{
2268
2367
  id: z.ZodString;
2269
2368
  projectId: z.ZodString;
@@ -2298,7 +2397,7 @@ export declare const AgentRunSchema: z.ZodObject<{
2298
2397
  budgetTokens: number;
2299
2398
  }>]>>;
2300
2399
  modelId: z.ZodOptional<z.ZodString>;
2301
- finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
2400
+ finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
2302
2401
  usage: z.ZodOptional<z.ZodObject<{
2303
2402
  inputTokens: z.ZodOptional<z.ZodNumber>;
2304
2403
  outputTokens: z.ZodOptional<z.ZodNumber>;
@@ -2308,6 +2407,7 @@ export declare const AgentRunSchema: z.ZodObject<{
2308
2407
  cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
2309
2408
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
2310
2409
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
2410
+ audioDurationMs: z.ZodOptional<z.ZodNumber>;
2311
2411
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
2312
2412
  }, "strip", z.ZodTypeAny, {
2313
2413
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -2319,6 +2419,7 @@ export declare const AgentRunSchema: z.ZodObject<{
2319
2419
  cacheWriteInputTokens?: number | undefined;
2320
2420
  textOutputTokens?: number | undefined;
2321
2421
  reasoningOutputTokens?: number | undefined;
2422
+ audioDurationMs?: number | undefined;
2322
2423
  }, {
2323
2424
  reportingStatus: "partial" | "complete" | "unavailable";
2324
2425
  inputTokens?: number | undefined;
@@ -2329,6 +2430,7 @@ export declare const AgentRunSchema: z.ZodObject<{
2329
2430
  cacheWriteInputTokens?: number | undefined;
2330
2431
  textOutputTokens?: number | undefined;
2331
2432
  reasoningOutputTokens?: number | undefined;
2433
+ audioDurationMs?: number | undefined;
2332
2434
  }>>;
2333
2435
  cost: z.ZodOptional<z.ZodObject<{
2334
2436
  amounts: z.ZodArray<z.ZodObject<{
@@ -2362,22 +2464,22 @@ export declare const AgentRunSchema: z.ZodObject<{
2362
2464
  unvaluedCallCount: number;
2363
2465
  }>>;
2364
2466
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2365
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
2467
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
2366
2468
  severity: z.ZodEnum<["warning", "error"]>;
2367
- scope: z.ZodLiteral<"output">;
2469
+ scope: z.ZodEnum<["output", "run"]>;
2368
2470
  path: z.ZodOptional<z.ZodString>;
2369
2471
  message: z.ZodString;
2370
2472
  }, "strip", z.ZodTypeAny, {
2371
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2473
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2372
2474
  message: string;
2373
2475
  severity: "error" | "warning";
2374
- scope: "output";
2476
+ scope: "output" | "run";
2375
2477
  path?: string | undefined;
2376
2478
  }, {
2377
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2479
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2378
2480
  message: string;
2379
2481
  severity: "error" | "warning";
2380
- scope: "output";
2482
+ scope: "output" | "run";
2381
2483
  path?: string | undefined;
2382
2484
  }>, "many">>;
2383
2485
  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">>>;
@@ -2416,6 +2518,7 @@ export declare const AgentRunSchema: z.ZodObject<{
2416
2518
  cacheWriteInputTokens?: number | undefined;
2417
2519
  textOutputTokens?: number | undefined;
2418
2520
  reasoningOutputTokens?: number | undefined;
2521
+ audioDurationMs?: number | undefined;
2419
2522
  } | undefined;
2420
2523
  cost?: {
2421
2524
  amounts: {
@@ -2430,12 +2533,12 @@ export declare const AgentRunSchema: z.ZodObject<{
2430
2533
  id: string;
2431
2534
  type: "user" | "serviceAccount";
2432
2535
  } | undefined;
2433
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
2536
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
2434
2537
  diagnostics?: {
2435
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2538
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2436
2539
  message: string;
2437
2540
  severity: "error" | "warning";
2438
- scope: "output";
2541
+ scope: "output" | "run";
2439
2542
  path?: string | undefined;
2440
2543
  }[] | undefined;
2441
2544
  }, {
@@ -2468,6 +2571,7 @@ export declare const AgentRunSchema: z.ZodObject<{
2468
2571
  cacheWriteInputTokens?: number | undefined;
2469
2572
  textOutputTokens?: number | undefined;
2470
2573
  reasoningOutputTokens?: number | undefined;
2574
+ audioDurationMs?: number | undefined;
2471
2575
  } | undefined;
2472
2576
  cost?: {
2473
2577
  amounts: {
@@ -2482,12 +2586,12 @@ export declare const AgentRunSchema: z.ZodObject<{
2482
2586
  id: string;
2483
2587
  type: "user" | "serviceAccount";
2484
2588
  } | undefined;
2485
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
2589
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
2486
2590
  diagnostics?: {
2487
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2591
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2488
2592
  message: string;
2489
2593
  severity: "error" | "warning";
2490
- scope: "output";
2594
+ scope: "output" | "run";
2491
2595
  path?: string | undefined;
2492
2596
  }[] | undefined;
2493
2597
  }>;
@@ -2526,7 +2630,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2526
2630
  budgetTokens: number;
2527
2631
  }>]>>;
2528
2632
  modelId: z.ZodOptional<z.ZodString>;
2529
- finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
2633
+ finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
2530
2634
  usage: z.ZodOptional<z.ZodObject<{
2531
2635
  inputTokens: z.ZodOptional<z.ZodNumber>;
2532
2636
  outputTokens: z.ZodOptional<z.ZodNumber>;
@@ -2536,6 +2640,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2536
2640
  cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
2537
2641
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
2538
2642
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
2643
+ audioDurationMs: z.ZodOptional<z.ZodNumber>;
2539
2644
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
2540
2645
  }, "strip", z.ZodTypeAny, {
2541
2646
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -2547,6 +2652,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2547
2652
  cacheWriteInputTokens?: number | undefined;
2548
2653
  textOutputTokens?: number | undefined;
2549
2654
  reasoningOutputTokens?: number | undefined;
2655
+ audioDurationMs?: number | undefined;
2550
2656
  }, {
2551
2657
  reportingStatus: "partial" | "complete" | "unavailable";
2552
2658
  inputTokens?: number | undefined;
@@ -2557,6 +2663,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2557
2663
  cacheWriteInputTokens?: number | undefined;
2558
2664
  textOutputTokens?: number | undefined;
2559
2665
  reasoningOutputTokens?: number | undefined;
2666
+ audioDurationMs?: number | undefined;
2560
2667
  }>>;
2561
2668
  cost: z.ZodOptional<z.ZodObject<{
2562
2669
  amounts: z.ZodArray<z.ZodObject<{
@@ -2590,22 +2697,22 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2590
2697
  unvaluedCallCount: number;
2591
2698
  }>>;
2592
2699
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2593
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
2700
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
2594
2701
  severity: z.ZodEnum<["warning", "error"]>;
2595
- scope: z.ZodLiteral<"output">;
2702
+ scope: z.ZodEnum<["output", "run"]>;
2596
2703
  path: z.ZodOptional<z.ZodString>;
2597
2704
  message: z.ZodString;
2598
2705
  }, "strip", z.ZodTypeAny, {
2599
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2706
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2600
2707
  message: string;
2601
2708
  severity: "error" | "warning";
2602
- scope: "output";
2709
+ scope: "output" | "run";
2603
2710
  path?: string | undefined;
2604
2711
  }, {
2605
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2712
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2606
2713
  message: string;
2607
2714
  severity: "error" | "warning";
2608
- scope: "output";
2715
+ scope: "output" | "run";
2609
2716
  path?: string | undefined;
2610
2717
  }>, "many">>;
2611
2718
  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">>>;
@@ -2644,6 +2751,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2644
2751
  cacheWriteInputTokens?: number | undefined;
2645
2752
  textOutputTokens?: number | undefined;
2646
2753
  reasoningOutputTokens?: number | undefined;
2754
+ audioDurationMs?: number | undefined;
2647
2755
  } | undefined;
2648
2756
  cost?: {
2649
2757
  amounts: {
@@ -2658,12 +2766,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2658
2766
  id: string;
2659
2767
  type: "user" | "serviceAccount";
2660
2768
  } | undefined;
2661
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
2769
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
2662
2770
  diagnostics?: {
2663
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2771
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2664
2772
  message: string;
2665
2773
  severity: "error" | "warning";
2666
- scope: "output";
2774
+ scope: "output" | "run";
2667
2775
  path?: string | undefined;
2668
2776
  }[] | undefined;
2669
2777
  }, {
@@ -2696,6 +2804,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2696
2804
  cacheWriteInputTokens?: number | undefined;
2697
2805
  textOutputTokens?: number | undefined;
2698
2806
  reasoningOutputTokens?: number | undefined;
2807
+ audioDurationMs?: number | undefined;
2699
2808
  } | undefined;
2700
2809
  cost?: {
2701
2810
  amounts: {
@@ -2710,12 +2819,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2710
2819
  id: string;
2711
2820
  type: "user" | "serviceAccount";
2712
2821
  } | undefined;
2713
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
2822
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
2714
2823
  diagnostics?: {
2715
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2824
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2716
2825
  message: string;
2717
2826
  severity: "error" | "warning";
2718
- scope: "output";
2827
+ scope: "output" | "run";
2719
2828
  path?: string | undefined;
2720
2829
  }[] | undefined;
2721
2830
  }>;
@@ -2750,6 +2859,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2750
2859
  cacheWriteInputTokens?: number | undefined;
2751
2860
  textOutputTokens?: number | undefined;
2752
2861
  reasoningOutputTokens?: number | undefined;
2862
+ audioDurationMs?: number | undefined;
2753
2863
  } | undefined;
2754
2864
  cost?: {
2755
2865
  amounts: {
@@ -2764,12 +2874,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2764
2874
  id: string;
2765
2875
  type: "user" | "serviceAccount";
2766
2876
  } | undefined;
2767
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
2877
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
2768
2878
  diagnostics?: {
2769
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2879
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2770
2880
  message: string;
2771
2881
  severity: "error" | "warning";
2772
- scope: "output";
2882
+ scope: "output" | "run";
2773
2883
  path?: string | undefined;
2774
2884
  }[] | undefined;
2775
2885
  };
@@ -2804,6 +2914,7 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2804
2914
  cacheWriteInputTokens?: number | undefined;
2805
2915
  textOutputTokens?: number | undefined;
2806
2916
  reasoningOutputTokens?: number | undefined;
2917
+ audioDurationMs?: number | undefined;
2807
2918
  } | undefined;
2808
2919
  cost?: {
2809
2920
  amounts: {
@@ -2818,12 +2929,12 @@ export declare const PostAgentMessageResponseSchema: z.ZodObject<{
2818
2929
  id: string;
2819
2930
  type: "user" | "serviceAccount";
2820
2931
  } | undefined;
2821
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
2932
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
2822
2933
  diagnostics?: {
2823
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
2934
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2824
2935
  message: string;
2825
2936
  severity: "error" | "warning";
2826
- scope: "output";
2937
+ scope: "output" | "run";
2827
2938
  path?: string | undefined;
2828
2939
  }[] | undefined;
2829
2940
  };
@@ -2863,7 +2974,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2863
2974
  budgetTokens: number;
2864
2975
  }>]>>;
2865
2976
  modelId: z.ZodOptional<z.ZodString>;
2866
- finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
2977
+ finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
2867
2978
  usage: z.ZodOptional<z.ZodObject<{
2868
2979
  inputTokens: z.ZodOptional<z.ZodNumber>;
2869
2980
  outputTokens: z.ZodOptional<z.ZodNumber>;
@@ -2873,6 +2984,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2873
2984
  cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
2874
2985
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
2875
2986
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
2987
+ audioDurationMs: z.ZodOptional<z.ZodNumber>;
2876
2988
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
2877
2989
  }, "strip", z.ZodTypeAny, {
2878
2990
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -2884,6 +2996,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2884
2996
  cacheWriteInputTokens?: number | undefined;
2885
2997
  textOutputTokens?: number | undefined;
2886
2998
  reasoningOutputTokens?: number | undefined;
2999
+ audioDurationMs?: number | undefined;
2887
3000
  }, {
2888
3001
  reportingStatus: "partial" | "complete" | "unavailable";
2889
3002
  inputTokens?: number | undefined;
@@ -2894,6 +3007,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2894
3007
  cacheWriteInputTokens?: number | undefined;
2895
3008
  textOutputTokens?: number | undefined;
2896
3009
  reasoningOutputTokens?: number | undefined;
3010
+ audioDurationMs?: number | undefined;
2897
3011
  }>>;
2898
3012
  cost: z.ZodOptional<z.ZodObject<{
2899
3013
  amounts: z.ZodArray<z.ZodObject<{
@@ -2927,22 +3041,22 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2927
3041
  unvaluedCallCount: number;
2928
3042
  }>>;
2929
3043
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2930
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
3044
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
2931
3045
  severity: z.ZodEnum<["warning", "error"]>;
2932
- scope: z.ZodLiteral<"output">;
3046
+ scope: z.ZodEnum<["output", "run"]>;
2933
3047
  path: z.ZodOptional<z.ZodString>;
2934
3048
  message: z.ZodString;
2935
3049
  }, "strip", z.ZodTypeAny, {
2936
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3050
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2937
3051
  message: string;
2938
3052
  severity: "error" | "warning";
2939
- scope: "output";
3053
+ scope: "output" | "run";
2940
3054
  path?: string | undefined;
2941
3055
  }, {
2942
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3056
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
2943
3057
  message: string;
2944
3058
  severity: "error" | "warning";
2945
- scope: "output";
3059
+ scope: "output" | "run";
2946
3060
  path?: string | undefined;
2947
3061
  }>, "many">>;
2948
3062
  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">>>;
@@ -2981,6 +3095,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2981
3095
  cacheWriteInputTokens?: number | undefined;
2982
3096
  textOutputTokens?: number | undefined;
2983
3097
  reasoningOutputTokens?: number | undefined;
3098
+ audioDurationMs?: number | undefined;
2984
3099
  } | undefined;
2985
3100
  cost?: {
2986
3101
  amounts: {
@@ -2995,12 +3110,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
2995
3110
  id: string;
2996
3111
  type: "user" | "serviceAccount";
2997
3112
  } | undefined;
2998
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3113
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
2999
3114
  diagnostics?: {
3000
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3115
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3001
3116
  message: string;
3002
3117
  severity: "error" | "warning";
3003
- scope: "output";
3118
+ scope: "output" | "run";
3004
3119
  path?: string | undefined;
3005
3120
  }[] | undefined;
3006
3121
  }, {
@@ -3033,6 +3148,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
3033
3148
  cacheWriteInputTokens?: number | undefined;
3034
3149
  textOutputTokens?: number | undefined;
3035
3150
  reasoningOutputTokens?: number | undefined;
3151
+ audioDurationMs?: number | undefined;
3036
3152
  } | undefined;
3037
3153
  cost?: {
3038
3154
  amounts: {
@@ -3047,12 +3163,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
3047
3163
  id: string;
3048
3164
  type: "user" | "serviceAccount";
3049
3165
  } | undefined;
3050
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3166
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3051
3167
  diagnostics?: {
3052
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3168
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3053
3169
  message: string;
3054
3170
  severity: "error" | "warning";
3055
- scope: "output";
3171
+ scope: "output" | "run";
3056
3172
  path?: string | undefined;
3057
3173
  }[] | undefined;
3058
3174
  }>;
@@ -3087,6 +3203,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
3087
3203
  cacheWriteInputTokens?: number | undefined;
3088
3204
  textOutputTokens?: number | undefined;
3089
3205
  reasoningOutputTokens?: number | undefined;
3206
+ audioDurationMs?: number | undefined;
3090
3207
  } | undefined;
3091
3208
  cost?: {
3092
3209
  amounts: {
@@ -3101,12 +3218,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
3101
3218
  id: string;
3102
3219
  type: "user" | "serviceAccount";
3103
3220
  } | undefined;
3104
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3221
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3105
3222
  diagnostics?: {
3106
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3223
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3107
3224
  message: string;
3108
3225
  severity: "error" | "warning";
3109
- scope: "output";
3226
+ scope: "output" | "run";
3110
3227
  path?: string | undefined;
3111
3228
  }[] | undefined;
3112
3229
  };
@@ -3141,6 +3258,7 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
3141
3258
  cacheWriteInputTokens?: number | undefined;
3142
3259
  textOutputTokens?: number | undefined;
3143
3260
  reasoningOutputTokens?: number | undefined;
3261
+ audioDurationMs?: number | undefined;
3144
3262
  } | undefined;
3145
3263
  cost?: {
3146
3264
  amounts: {
@@ -3155,12 +3273,12 @@ export declare const CancelAgentRunResponseSchema: z.ZodObject<{
3155
3273
  id: string;
3156
3274
  type: "user" | "serviceAccount";
3157
3275
  } | undefined;
3158
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3276
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3159
3277
  diagnostics?: {
3160
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3278
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3161
3279
  message: string;
3162
3280
  severity: "error" | "warning";
3163
- scope: "output";
3281
+ scope: "output" | "run";
3164
3282
  path?: string | undefined;
3165
3283
  }[] | undefined;
3166
3284
  };
@@ -3200,7 +3318,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3200
3318
  budgetTokens: number;
3201
3319
  }>]>>;
3202
3320
  modelId: z.ZodOptional<z.ZodString>;
3203
- finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
3321
+ finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
3204
3322
  usage: z.ZodOptional<z.ZodObject<{
3205
3323
  inputTokens: z.ZodOptional<z.ZodNumber>;
3206
3324
  outputTokens: z.ZodOptional<z.ZodNumber>;
@@ -3210,6 +3328,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3210
3328
  cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
3211
3329
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
3212
3330
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
3331
+ audioDurationMs: z.ZodOptional<z.ZodNumber>;
3213
3332
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
3214
3333
  }, "strip", z.ZodTypeAny, {
3215
3334
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -3221,6 +3340,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3221
3340
  cacheWriteInputTokens?: number | undefined;
3222
3341
  textOutputTokens?: number | undefined;
3223
3342
  reasoningOutputTokens?: number | undefined;
3343
+ audioDurationMs?: number | undefined;
3224
3344
  }, {
3225
3345
  reportingStatus: "partial" | "complete" | "unavailable";
3226
3346
  inputTokens?: number | undefined;
@@ -3231,6 +3351,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3231
3351
  cacheWriteInputTokens?: number | undefined;
3232
3352
  textOutputTokens?: number | undefined;
3233
3353
  reasoningOutputTokens?: number | undefined;
3354
+ audioDurationMs?: number | undefined;
3234
3355
  }>>;
3235
3356
  cost: z.ZodOptional<z.ZodObject<{
3236
3357
  amounts: z.ZodArray<z.ZodObject<{
@@ -3264,22 +3385,22 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3264
3385
  unvaluedCallCount: number;
3265
3386
  }>>;
3266
3387
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
3267
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
3388
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
3268
3389
  severity: z.ZodEnum<["warning", "error"]>;
3269
- scope: z.ZodLiteral<"output">;
3390
+ scope: z.ZodEnum<["output", "run"]>;
3270
3391
  path: z.ZodOptional<z.ZodString>;
3271
3392
  message: z.ZodString;
3272
3393
  }, "strip", z.ZodTypeAny, {
3273
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3394
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3274
3395
  message: string;
3275
3396
  severity: "error" | "warning";
3276
- scope: "output";
3397
+ scope: "output" | "run";
3277
3398
  path?: string | undefined;
3278
3399
  }, {
3279
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3400
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3280
3401
  message: string;
3281
3402
  severity: "error" | "warning";
3282
- scope: "output";
3403
+ scope: "output" | "run";
3283
3404
  path?: string | undefined;
3284
3405
  }>, "many">>;
3285
3406
  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">>>;
@@ -3318,6 +3439,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3318
3439
  cacheWriteInputTokens?: number | undefined;
3319
3440
  textOutputTokens?: number | undefined;
3320
3441
  reasoningOutputTokens?: number | undefined;
3442
+ audioDurationMs?: number | undefined;
3321
3443
  } | undefined;
3322
3444
  cost?: {
3323
3445
  amounts: {
@@ -3332,12 +3454,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3332
3454
  id: string;
3333
3455
  type: "user" | "serviceAccount";
3334
3456
  } | undefined;
3335
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3457
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3336
3458
  diagnostics?: {
3337
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3459
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3338
3460
  message: string;
3339
3461
  severity: "error" | "warning";
3340
- scope: "output";
3462
+ scope: "output" | "run";
3341
3463
  path?: string | undefined;
3342
3464
  }[] | undefined;
3343
3465
  }, {
@@ -3370,6 +3492,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3370
3492
  cacheWriteInputTokens?: number | undefined;
3371
3493
  textOutputTokens?: number | undefined;
3372
3494
  reasoningOutputTokens?: number | undefined;
3495
+ audioDurationMs?: number | undefined;
3373
3496
  } | undefined;
3374
3497
  cost?: {
3375
3498
  amounts: {
@@ -3384,12 +3507,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3384
3507
  id: string;
3385
3508
  type: "user" | "serviceAccount";
3386
3509
  } | undefined;
3387
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3510
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3388
3511
  diagnostics?: {
3389
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3512
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3390
3513
  message: string;
3391
3514
  severity: "error" | "warning";
3392
- scope: "output";
3515
+ scope: "output" | "run";
3393
3516
  path?: string | undefined;
3394
3517
  }[] | undefined;
3395
3518
  }>;
@@ -3424,6 +3547,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3424
3547
  cacheWriteInputTokens?: number | undefined;
3425
3548
  textOutputTokens?: number | undefined;
3426
3549
  reasoningOutputTokens?: number | undefined;
3550
+ audioDurationMs?: number | undefined;
3427
3551
  } | undefined;
3428
3552
  cost?: {
3429
3553
  amounts: {
@@ -3438,12 +3562,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3438
3562
  id: string;
3439
3563
  type: "user" | "serviceAccount";
3440
3564
  } | undefined;
3441
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3565
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3442
3566
  diagnostics?: {
3443
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3567
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3444
3568
  message: string;
3445
3569
  severity: "error" | "warning";
3446
- scope: "output";
3570
+ scope: "output" | "run";
3447
3571
  path?: string | undefined;
3448
3572
  }[] | undefined;
3449
3573
  };
@@ -3478,6 +3602,7 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3478
3602
  cacheWriteInputTokens?: number | undefined;
3479
3603
  textOutputTokens?: number | undefined;
3480
3604
  reasoningOutputTokens?: number | undefined;
3605
+ audioDurationMs?: number | undefined;
3481
3606
  } | undefined;
3482
3607
  cost?: {
3483
3608
  amounts: {
@@ -3492,12 +3617,12 @@ export declare const RetryAgentRunResponseSchema: z.ZodObject<{
3492
3617
  id: string;
3493
3618
  type: "user" | "serviceAccount";
3494
3619
  } | undefined;
3495
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3620
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3496
3621
  diagnostics?: {
3497
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3622
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3498
3623
  message: string;
3499
3624
  severity: "error" | "warning";
3500
- scope: "output";
3625
+ scope: "output" | "run";
3501
3626
  path?: string | undefined;
3502
3627
  }[] | undefined;
3503
3628
  };
@@ -3553,7 +3678,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3553
3678
  budgetTokens: number;
3554
3679
  }>]>>;
3555
3680
  modelId: z.ZodOptional<z.ZodString>;
3556
- finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "error", "other", "unknown"]>>;
3681
+ finishReason: z.ZodOptional<z.ZodEnum<["stop", "length", "content-filter", "tool-calls", "timeout", "interrupted", "error", "other", "unknown"]>>;
3557
3682
  usage: z.ZodOptional<z.ZodObject<{
3558
3683
  inputTokens: z.ZodOptional<z.ZodNumber>;
3559
3684
  outputTokens: z.ZodOptional<z.ZodNumber>;
@@ -3563,6 +3688,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3563
3688
  cacheWriteInputTokens: z.ZodOptional<z.ZodNumber>;
3564
3689
  textOutputTokens: z.ZodOptional<z.ZodNumber>;
3565
3690
  reasoningOutputTokens: z.ZodOptional<z.ZodNumber>;
3691
+ audioDurationMs: z.ZodOptional<z.ZodNumber>;
3566
3692
  reportingStatus: z.ZodEnum<["complete", "partial", "unavailable"]>;
3567
3693
  }, "strip", z.ZodTypeAny, {
3568
3694
  reportingStatus: "partial" | "complete" | "unavailable";
@@ -3574,6 +3700,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3574
3700
  cacheWriteInputTokens?: number | undefined;
3575
3701
  textOutputTokens?: number | undefined;
3576
3702
  reasoningOutputTokens?: number | undefined;
3703
+ audioDurationMs?: number | undefined;
3577
3704
  }, {
3578
3705
  reportingStatus: "partial" | "complete" | "unavailable";
3579
3706
  inputTokens?: number | undefined;
@@ -3584,6 +3711,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3584
3711
  cacheWriteInputTokens?: number | undefined;
3585
3712
  textOutputTokens?: number | undefined;
3586
3713
  reasoningOutputTokens?: number | undefined;
3714
+ audioDurationMs?: number | undefined;
3587
3715
  }>>;
3588
3716
  cost: z.ZodOptional<z.ZodObject<{
3589
3717
  amounts: z.ZodArray<z.ZodObject<{
@@ -3617,22 +3745,22 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3617
3745
  unvaluedCallCount: number;
3618
3746
  }>>;
3619
3747
  diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
3620
- code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed"]>;
3748
+ code: z.ZodEnum<["output_file_limit_exceeded", "output_file_too_large", "output_budget_exhausted", "output_collection_failed", "output_file_changed", "output_storage_failed", "step_limit_reached"]>;
3621
3749
  severity: z.ZodEnum<["warning", "error"]>;
3622
- scope: z.ZodLiteral<"output">;
3750
+ scope: z.ZodEnum<["output", "run"]>;
3623
3751
  path: z.ZodOptional<z.ZodString>;
3624
3752
  message: z.ZodString;
3625
3753
  }, "strip", z.ZodTypeAny, {
3626
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3754
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3627
3755
  message: string;
3628
3756
  severity: "error" | "warning";
3629
- scope: "output";
3757
+ scope: "output" | "run";
3630
3758
  path?: string | undefined;
3631
3759
  }, {
3632
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3760
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3633
3761
  message: string;
3634
3762
  severity: "error" | "warning";
3635
- scope: "output";
3763
+ scope: "output" | "run";
3636
3764
  path?: string | undefined;
3637
3765
  }>, "many">>;
3638
3766
  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">>>;
@@ -3671,6 +3799,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3671
3799
  cacheWriteInputTokens?: number | undefined;
3672
3800
  textOutputTokens?: number | undefined;
3673
3801
  reasoningOutputTokens?: number | undefined;
3802
+ audioDurationMs?: number | undefined;
3674
3803
  } | undefined;
3675
3804
  cost?: {
3676
3805
  amounts: {
@@ -3685,12 +3814,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3685
3814
  id: string;
3686
3815
  type: "user" | "serviceAccount";
3687
3816
  } | undefined;
3688
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3817
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3689
3818
  diagnostics?: {
3690
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3819
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3691
3820
  message: string;
3692
3821
  severity: "error" | "warning";
3693
- scope: "output";
3822
+ scope: "output" | "run";
3694
3823
  path?: string | undefined;
3695
3824
  }[] | undefined;
3696
3825
  }, {
@@ -3723,6 +3852,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3723
3852
  cacheWriteInputTokens?: number | undefined;
3724
3853
  textOutputTokens?: number | undefined;
3725
3854
  reasoningOutputTokens?: number | undefined;
3855
+ audioDurationMs?: number | undefined;
3726
3856
  } | undefined;
3727
3857
  cost?: {
3728
3858
  amounts: {
@@ -3737,12 +3867,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3737
3867
  id: string;
3738
3868
  type: "user" | "serviceAccount";
3739
3869
  } | undefined;
3740
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3870
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3741
3871
  diagnostics?: {
3742
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3872
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3743
3873
  message: string;
3744
3874
  severity: "error" | "warning";
3745
- scope: "output";
3875
+ scope: "output" | "run";
3746
3876
  path?: string | undefined;
3747
3877
  }[] | undefined;
3748
3878
  }>, "many">;
@@ -3779,6 +3909,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3779
3909
  cacheWriteInputTokens?: number | undefined;
3780
3910
  textOutputTokens?: number | undefined;
3781
3911
  reasoningOutputTokens?: number | undefined;
3912
+ audioDurationMs?: number | undefined;
3782
3913
  } | undefined;
3783
3914
  cost?: {
3784
3915
  amounts: {
@@ -3793,12 +3924,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3793
3924
  id: string;
3794
3925
  type: "user" | "serviceAccount";
3795
3926
  } | undefined;
3796
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3927
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3797
3928
  diagnostics?: {
3798
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3929
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3799
3930
  message: string;
3800
3931
  severity: "error" | "warning";
3801
- scope: "output";
3932
+ scope: "output" | "run";
3802
3933
  path?: string | undefined;
3803
3934
  }[] | undefined;
3804
3935
  }[];
@@ -3835,6 +3966,7 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3835
3966
  cacheWriteInputTokens?: number | undefined;
3836
3967
  textOutputTokens?: number | undefined;
3837
3968
  reasoningOutputTokens?: number | undefined;
3969
+ audioDurationMs?: number | undefined;
3838
3970
  } | undefined;
3839
3971
  cost?: {
3840
3972
  amounts: {
@@ -3849,12 +3981,12 @@ export declare const AgentRunListResponseSchema: z.ZodObject<{
3849
3981
  id: string;
3850
3982
  type: "user" | "serviceAccount";
3851
3983
  } | undefined;
3852
- finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "other" | undefined;
3984
+ finishReason?: "error" | "length" | "unknown" | "stop" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "other" | undefined;
3853
3985
  diagnostics?: {
3854
- code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed";
3986
+ code: "output_file_limit_exceeded" | "output_file_too_large" | "output_budget_exhausted" | "output_collection_failed" | "output_file_changed" | "output_storage_failed" | "step_limit_reached";
3855
3987
  message: string;
3856
3988
  severity: "error" | "warning";
3857
- scope: "output";
3989
+ scope: "output" | "run";
3858
3990
  path?: string | undefined;
3859
3991
  }[] | undefined;
3860
3992
  }[];