codebuff 1.0.282 → 1.0.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +3 -3
- package/dist/client.js +5 -0
- package/dist/client.js.map +1 -1
- package/dist/code-map/parse.d.ts.map +1 -1
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +84 -84
- package/dist/common/constants/analytics-events.d.ts +2 -1
- package/dist/common/constants/analytics-events.js +2 -1
- package/dist/common/constants/analytics-events.js.map +1 -1
- package/dist/common/constants/tools.d.ts +1 -0
- package/dist/common/constants/tools.js +1 -0
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/db/schema.d.ts +4 -4
- package/dist/common/types/grant.d.ts +1 -1
- package/dist/common/types/grant.js.map +1 -1
- package/dist/common/types/usage.d.ts +7 -7
- package/dist/common/types/usage.js +2 -1
- package/dist/common/types/usage.js.map +1 -1
- package/dist/common/util/__tests__/saxy.test.js +182 -48
- package/dist/common/util/__tests__/saxy.test.js.map +1 -1
- package/dist/common/util/saxy.d.ts +0 -1
- package/dist/common/util/saxy.js +3 -15
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +146 -146
- package/dist/display.js.map +1 -1
- package/dist/tool-handlers.js +1 -0
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/__tests__/tool-renderers.test.js +4 -6
- package/dist/utils/__tests__/tool-renderers.test.js.map +1 -1
- package/dist/utils/terminal.js +1 -1
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +3 -0
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +1 -1
|
@@ -210,16 +210,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
210
210
|
type: "ephemeral";
|
|
211
211
|
}>>;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
name: string;
|
|
214
213
|
type: "tool_use";
|
|
214
|
+
name: string;
|
|
215
215
|
id: string;
|
|
216
216
|
input: Record<string, any>;
|
|
217
217
|
cache_control?: {
|
|
218
218
|
type: "ephemeral";
|
|
219
219
|
} | undefined;
|
|
220
220
|
}, {
|
|
221
|
-
name: string;
|
|
222
221
|
type: "tool_use";
|
|
222
|
+
name: string;
|
|
223
223
|
id: string;
|
|
224
224
|
input: Record<string, any>;
|
|
225
225
|
cache_control?: {
|
|
@@ -258,12 +258,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
258
258
|
data: z.ZodString;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
260
|
type: "base64";
|
|
261
|
-
media_type: "image/jpeg";
|
|
262
261
|
data: string;
|
|
262
|
+
media_type: "image/jpeg";
|
|
263
263
|
}, {
|
|
264
264
|
type: "base64";
|
|
265
|
-
media_type: "image/jpeg";
|
|
266
265
|
data: string;
|
|
266
|
+
media_type: "image/jpeg";
|
|
267
267
|
}>;
|
|
268
268
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
269
269
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -276,8 +276,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
276
276
|
type: "image";
|
|
277
277
|
source: {
|
|
278
278
|
type: "base64";
|
|
279
|
-
media_type: "image/jpeg";
|
|
280
279
|
data: string;
|
|
280
|
+
media_type: "image/jpeg";
|
|
281
281
|
};
|
|
282
282
|
cache_control?: {
|
|
283
283
|
type: "ephemeral";
|
|
@@ -286,8 +286,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
286
286
|
type: "image";
|
|
287
287
|
source: {
|
|
288
288
|
type: "base64";
|
|
289
|
-
media_type: "image/jpeg";
|
|
290
289
|
data: string;
|
|
290
|
+
media_type: "image/jpeg";
|
|
291
291
|
};
|
|
292
292
|
cache_control?: {
|
|
293
293
|
type: "ephemeral";
|
|
@@ -301,8 +301,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
301
301
|
type: "ephemeral";
|
|
302
302
|
} | undefined;
|
|
303
303
|
} | {
|
|
304
|
-
name: string;
|
|
305
304
|
type: "tool_use";
|
|
305
|
+
name: string;
|
|
306
306
|
id: string;
|
|
307
307
|
input: Record<string, any>;
|
|
308
308
|
cache_control?: {
|
|
@@ -319,8 +319,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
319
319
|
type: "image";
|
|
320
320
|
source: {
|
|
321
321
|
type: "base64";
|
|
322
|
-
media_type: "image/jpeg";
|
|
323
322
|
data: string;
|
|
323
|
+
media_type: "image/jpeg";
|
|
324
324
|
};
|
|
325
325
|
cache_control?: {
|
|
326
326
|
type: "ephemeral";
|
|
@@ -335,8 +335,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
335
335
|
type: "ephemeral";
|
|
336
336
|
} | undefined;
|
|
337
337
|
} | {
|
|
338
|
-
name: string;
|
|
339
338
|
type: "tool_use";
|
|
339
|
+
name: string;
|
|
340
340
|
id: string;
|
|
341
341
|
input: Record<string, any>;
|
|
342
342
|
cache_control?: {
|
|
@@ -353,8 +353,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
353
353
|
type: "image";
|
|
354
354
|
source: {
|
|
355
355
|
type: "base64";
|
|
356
|
-
media_type: "image/jpeg";
|
|
357
356
|
data: string;
|
|
357
|
+
media_type: "image/jpeg";
|
|
358
358
|
};
|
|
359
359
|
cache_control?: {
|
|
360
360
|
type: "ephemeral";
|
|
@@ -401,8 +401,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
401
401
|
type: "ephemeral";
|
|
402
402
|
} | undefined;
|
|
403
403
|
} | {
|
|
404
|
-
name: string;
|
|
405
404
|
type: "tool_use";
|
|
405
|
+
name: string;
|
|
406
406
|
id: string;
|
|
407
407
|
input: Record<string, any>;
|
|
408
408
|
cache_control?: {
|
|
@@ -419,8 +419,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
419
419
|
type: "image";
|
|
420
420
|
source: {
|
|
421
421
|
type: "base64";
|
|
422
|
-
media_type: "image/jpeg";
|
|
423
422
|
data: string;
|
|
423
|
+
media_type: "image/jpeg";
|
|
424
424
|
};
|
|
425
425
|
cache_control?: {
|
|
426
426
|
type: "ephemeral";
|
|
@@ -467,8 +467,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
467
467
|
type: "ephemeral";
|
|
468
468
|
} | undefined;
|
|
469
469
|
} | {
|
|
470
|
-
name: string;
|
|
471
470
|
type: "tool_use";
|
|
471
|
+
name: string;
|
|
472
472
|
id: string;
|
|
473
473
|
input: Record<string, any>;
|
|
474
474
|
cache_control?: {
|
|
@@ -485,8 +485,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
485
485
|
type: "image";
|
|
486
486
|
source: {
|
|
487
487
|
type: "base64";
|
|
488
|
-
media_type: "image/jpeg";
|
|
489
488
|
data: string;
|
|
489
|
+
media_type: "image/jpeg";
|
|
490
490
|
};
|
|
491
491
|
cache_control?: {
|
|
492
492
|
type: "ephemeral";
|
|
@@ -554,8 +554,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
554
554
|
type: "ephemeral";
|
|
555
555
|
} | undefined;
|
|
556
556
|
} | {
|
|
557
|
-
name: string;
|
|
558
557
|
type: "tool_use";
|
|
558
|
+
name: string;
|
|
559
559
|
id: string;
|
|
560
560
|
input: Record<string, any>;
|
|
561
561
|
cache_control?: {
|
|
@@ -572,8 +572,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
572
572
|
type: "image";
|
|
573
573
|
source: {
|
|
574
574
|
type: "base64";
|
|
575
|
-
media_type: "image/jpeg";
|
|
576
575
|
data: string;
|
|
576
|
+
media_type: "image/jpeg";
|
|
577
577
|
};
|
|
578
578
|
cache_control?: {
|
|
579
579
|
type: "ephemeral";
|
|
@@ -634,8 +634,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
634
634
|
type: "ephemeral";
|
|
635
635
|
} | undefined;
|
|
636
636
|
} | {
|
|
637
|
-
name: string;
|
|
638
637
|
type: "tool_use";
|
|
638
|
+
name: string;
|
|
639
639
|
id: string;
|
|
640
640
|
input: Record<string, any>;
|
|
641
641
|
cache_control?: {
|
|
@@ -652,8 +652,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
652
652
|
type: "image";
|
|
653
653
|
source: {
|
|
654
654
|
type: "base64";
|
|
655
|
-
media_type: "image/jpeg";
|
|
656
655
|
data: string;
|
|
656
|
+
media_type: "image/jpeg";
|
|
657
657
|
};
|
|
658
658
|
cache_control?: {
|
|
659
659
|
type: "ephemeral";
|
|
@@ -803,6 +803,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
803
803
|
}>;
|
|
804
804
|
}, "strip", z.ZodTypeAny, {
|
|
805
805
|
type: "init";
|
|
806
|
+
fingerprintId: string;
|
|
806
807
|
fileContext: {
|
|
807
808
|
currentWorkingDirectory: string;
|
|
808
809
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -831,10 +832,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
831
832
|
content: string;
|
|
832
833
|
}[][] | undefined;
|
|
833
834
|
};
|
|
834
|
-
fingerprintId: string;
|
|
835
835
|
authToken?: string | undefined;
|
|
836
836
|
}, {
|
|
837
837
|
type: "init";
|
|
838
|
+
fingerprintId: string;
|
|
838
839
|
fileContext: {
|
|
839
840
|
currentWorkingDirectory: string;
|
|
840
841
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -863,7 +864,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
863
864
|
content: string;
|
|
864
865
|
}[][] | undefined;
|
|
865
866
|
};
|
|
866
|
-
fingerprintId: string;
|
|
867
867
|
authToken?: string | undefined;
|
|
868
868
|
}>, z.ZodObject<{
|
|
869
869
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -926,8 +926,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
926
926
|
type: "ephemeral";
|
|
927
927
|
} | undefined;
|
|
928
928
|
} | {
|
|
929
|
-
name: string;
|
|
930
929
|
type: "tool_use";
|
|
930
|
+
name: string;
|
|
931
931
|
id: string;
|
|
932
932
|
input: Record<string, any>;
|
|
933
933
|
cache_control?: {
|
|
@@ -944,8 +944,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
944
944
|
type: "image";
|
|
945
945
|
source: {
|
|
946
946
|
type: "base64";
|
|
947
|
-
media_type: "image/jpeg";
|
|
948
947
|
data: string;
|
|
948
|
+
media_type: "image/jpeg";
|
|
949
949
|
};
|
|
950
950
|
cache_control?: {
|
|
951
951
|
type: "ephemeral";
|
|
@@ -970,6 +970,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
970
970
|
requestId?: string | undefined;
|
|
971
971
|
} | {
|
|
972
972
|
type: "init";
|
|
973
|
+
fingerprintId: string;
|
|
973
974
|
fileContext: {
|
|
974
975
|
currentWorkingDirectory: string;
|
|
975
976
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -998,7 +999,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
998
999
|
content: string;
|
|
999
1000
|
}[][] | undefined;
|
|
1000
1001
|
};
|
|
1001
|
-
fingerprintId: string;
|
|
1002
1002
|
authToken?: string | undefined;
|
|
1003
1003
|
} | {
|
|
1004
1004
|
type: "generate-commit-message";
|
|
@@ -1051,8 +1051,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1051
1051
|
type: "ephemeral";
|
|
1052
1052
|
} | undefined;
|
|
1053
1053
|
} | {
|
|
1054
|
-
name: string;
|
|
1055
1054
|
type: "tool_use";
|
|
1055
|
+
name: string;
|
|
1056
1056
|
id: string;
|
|
1057
1057
|
input: Record<string, any>;
|
|
1058
1058
|
cache_control?: {
|
|
@@ -1069,8 +1069,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1069
1069
|
type: "image";
|
|
1070
1070
|
source: {
|
|
1071
1071
|
type: "base64";
|
|
1072
|
-
media_type: "image/jpeg";
|
|
1073
1072
|
data: string;
|
|
1073
|
+
media_type: "image/jpeg";
|
|
1074
1074
|
};
|
|
1075
1075
|
cache_control?: {
|
|
1076
1076
|
type: "ephemeral";
|
|
@@ -1096,6 +1096,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1096
1096
|
requestId?: string | undefined;
|
|
1097
1097
|
} | {
|
|
1098
1098
|
type: "init";
|
|
1099
|
+
fingerprintId: string;
|
|
1099
1100
|
fileContext: {
|
|
1100
1101
|
currentWorkingDirectory: string;
|
|
1101
1102
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1124,7 +1125,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1124
1125
|
content: string;
|
|
1125
1126
|
}[][] | undefined;
|
|
1126
1127
|
};
|
|
1127
|
-
fingerprintId: string;
|
|
1128
1128
|
authToken?: string | undefined;
|
|
1129
1129
|
} | {
|
|
1130
1130
|
type: "generate-commit-message";
|
|
@@ -1341,16 +1341,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1341
1341
|
type: "ephemeral";
|
|
1342
1342
|
}>>;
|
|
1343
1343
|
}, "strip", z.ZodTypeAny, {
|
|
1344
|
-
name: string;
|
|
1345
1344
|
type: "tool_use";
|
|
1345
|
+
name: string;
|
|
1346
1346
|
id: string;
|
|
1347
1347
|
input: Record<string, any>;
|
|
1348
1348
|
cache_control?: {
|
|
1349
1349
|
type: "ephemeral";
|
|
1350
1350
|
} | undefined;
|
|
1351
1351
|
}, {
|
|
1352
|
-
name: string;
|
|
1353
1352
|
type: "tool_use";
|
|
1353
|
+
name: string;
|
|
1354
1354
|
id: string;
|
|
1355
1355
|
input: Record<string, any>;
|
|
1356
1356
|
cache_control?: {
|
|
@@ -1389,12 +1389,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1389
1389
|
data: z.ZodString;
|
|
1390
1390
|
}, "strip", z.ZodTypeAny, {
|
|
1391
1391
|
type: "base64";
|
|
1392
|
-
media_type: "image/jpeg";
|
|
1393
1392
|
data: string;
|
|
1393
|
+
media_type: "image/jpeg";
|
|
1394
1394
|
}, {
|
|
1395
1395
|
type: "base64";
|
|
1396
|
-
media_type: "image/jpeg";
|
|
1397
1396
|
data: string;
|
|
1397
|
+
media_type: "image/jpeg";
|
|
1398
1398
|
}>;
|
|
1399
1399
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1400
1400
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1407,8 +1407,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1407
1407
|
type: "image";
|
|
1408
1408
|
source: {
|
|
1409
1409
|
type: "base64";
|
|
1410
|
-
media_type: "image/jpeg";
|
|
1411
1410
|
data: string;
|
|
1411
|
+
media_type: "image/jpeg";
|
|
1412
1412
|
};
|
|
1413
1413
|
cache_control?: {
|
|
1414
1414
|
type: "ephemeral";
|
|
@@ -1417,8 +1417,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1417
1417
|
type: "image";
|
|
1418
1418
|
source: {
|
|
1419
1419
|
type: "base64";
|
|
1420
|
-
media_type: "image/jpeg";
|
|
1421
1420
|
data: string;
|
|
1421
|
+
media_type: "image/jpeg";
|
|
1422
1422
|
};
|
|
1423
1423
|
cache_control?: {
|
|
1424
1424
|
type: "ephemeral";
|
|
@@ -1432,8 +1432,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1432
1432
|
type: "ephemeral";
|
|
1433
1433
|
} | undefined;
|
|
1434
1434
|
} | {
|
|
1435
|
-
name: string;
|
|
1436
1435
|
type: "tool_use";
|
|
1436
|
+
name: string;
|
|
1437
1437
|
id: string;
|
|
1438
1438
|
input: Record<string, any>;
|
|
1439
1439
|
cache_control?: {
|
|
@@ -1450,8 +1450,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1450
1450
|
type: "image";
|
|
1451
1451
|
source: {
|
|
1452
1452
|
type: "base64";
|
|
1453
|
-
media_type: "image/jpeg";
|
|
1454
1453
|
data: string;
|
|
1454
|
+
media_type: "image/jpeg";
|
|
1455
1455
|
};
|
|
1456
1456
|
cache_control?: {
|
|
1457
1457
|
type: "ephemeral";
|
|
@@ -1466,8 +1466,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1466
1466
|
type: "ephemeral";
|
|
1467
1467
|
} | undefined;
|
|
1468
1468
|
} | {
|
|
1469
|
-
name: string;
|
|
1470
1469
|
type: "tool_use";
|
|
1470
|
+
name: string;
|
|
1471
1471
|
id: string;
|
|
1472
1472
|
input: Record<string, any>;
|
|
1473
1473
|
cache_control?: {
|
|
@@ -1484,8 +1484,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1484
1484
|
type: "image";
|
|
1485
1485
|
source: {
|
|
1486
1486
|
type: "base64";
|
|
1487
|
-
media_type: "image/jpeg";
|
|
1488
1487
|
data: string;
|
|
1488
|
+
media_type: "image/jpeg";
|
|
1489
1489
|
};
|
|
1490
1490
|
cache_control?: {
|
|
1491
1491
|
type: "ephemeral";
|
|
@@ -1532,8 +1532,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1532
1532
|
type: "ephemeral";
|
|
1533
1533
|
} | undefined;
|
|
1534
1534
|
} | {
|
|
1535
|
-
name: string;
|
|
1536
1535
|
type: "tool_use";
|
|
1536
|
+
name: string;
|
|
1537
1537
|
id: string;
|
|
1538
1538
|
input: Record<string, any>;
|
|
1539
1539
|
cache_control?: {
|
|
@@ -1550,8 +1550,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1550
1550
|
type: "image";
|
|
1551
1551
|
source: {
|
|
1552
1552
|
type: "base64";
|
|
1553
|
-
media_type: "image/jpeg";
|
|
1554
1553
|
data: string;
|
|
1554
|
+
media_type: "image/jpeg";
|
|
1555
1555
|
};
|
|
1556
1556
|
cache_control?: {
|
|
1557
1557
|
type: "ephemeral";
|
|
@@ -1598,8 +1598,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1598
1598
|
type: "ephemeral";
|
|
1599
1599
|
} | undefined;
|
|
1600
1600
|
} | {
|
|
1601
|
-
name: string;
|
|
1602
1601
|
type: "tool_use";
|
|
1602
|
+
name: string;
|
|
1603
1603
|
id: string;
|
|
1604
1604
|
input: Record<string, any>;
|
|
1605
1605
|
cache_control?: {
|
|
@@ -1616,8 +1616,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1616
1616
|
type: "image";
|
|
1617
1617
|
source: {
|
|
1618
1618
|
type: "base64";
|
|
1619
|
-
media_type: "image/jpeg";
|
|
1620
1619
|
data: string;
|
|
1620
|
+
media_type: "image/jpeg";
|
|
1621
1621
|
};
|
|
1622
1622
|
cache_control?: {
|
|
1623
1623
|
type: "ephemeral";
|
|
@@ -1685,8 +1685,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1685
1685
|
type: "ephemeral";
|
|
1686
1686
|
} | undefined;
|
|
1687
1687
|
} | {
|
|
1688
|
-
name: string;
|
|
1689
1688
|
type: "tool_use";
|
|
1689
|
+
name: string;
|
|
1690
1690
|
id: string;
|
|
1691
1691
|
input: Record<string, any>;
|
|
1692
1692
|
cache_control?: {
|
|
@@ -1703,8 +1703,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1703
1703
|
type: "image";
|
|
1704
1704
|
source: {
|
|
1705
1705
|
type: "base64";
|
|
1706
|
-
media_type: "image/jpeg";
|
|
1707
1706
|
data: string;
|
|
1707
|
+
media_type: "image/jpeg";
|
|
1708
1708
|
};
|
|
1709
1709
|
cache_control?: {
|
|
1710
1710
|
type: "ephemeral";
|
|
@@ -1765,8 +1765,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1765
1765
|
type: "ephemeral";
|
|
1766
1766
|
} | undefined;
|
|
1767
1767
|
} | {
|
|
1768
|
-
name: string;
|
|
1769
1768
|
type: "tool_use";
|
|
1769
|
+
name: string;
|
|
1770
1770
|
id: string;
|
|
1771
1771
|
input: Record<string, any>;
|
|
1772
1772
|
cache_control?: {
|
|
@@ -1783,8 +1783,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1783
1783
|
type: "image";
|
|
1784
1784
|
source: {
|
|
1785
1785
|
type: "base64";
|
|
1786
|
-
media_type: "image/jpeg";
|
|
1787
1786
|
data: string;
|
|
1787
|
+
media_type: "image/jpeg";
|
|
1788
1788
|
};
|
|
1789
1789
|
cache_control?: {
|
|
1790
1790
|
type: "ephemeral";
|
|
@@ -1934,6 +1934,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1934
1934
|
}>;
|
|
1935
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1936
1936
|
type: "init";
|
|
1937
|
+
fingerprintId: string;
|
|
1937
1938
|
fileContext: {
|
|
1938
1939
|
currentWorkingDirectory: string;
|
|
1939
1940
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1962,10 +1963,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1962
1963
|
content: string;
|
|
1963
1964
|
}[][] | undefined;
|
|
1964
1965
|
};
|
|
1965
|
-
fingerprintId: string;
|
|
1966
1966
|
authToken?: string | undefined;
|
|
1967
1967
|
}, {
|
|
1968
1968
|
type: "init";
|
|
1969
|
+
fingerprintId: string;
|
|
1969
1970
|
fileContext: {
|
|
1970
1971
|
currentWorkingDirectory: string;
|
|
1971
1972
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1994,7 +1995,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1994
1995
|
content: string;
|
|
1995
1996
|
}[][] | undefined;
|
|
1996
1997
|
};
|
|
1997
|
-
fingerprintId: string;
|
|
1998
1998
|
authToken?: string | undefined;
|
|
1999
1999
|
}>, z.ZodObject<{
|
|
2000
2000
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -2057,8 +2057,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2057
2057
|
type: "ephemeral";
|
|
2058
2058
|
} | undefined;
|
|
2059
2059
|
} | {
|
|
2060
|
-
name: string;
|
|
2061
2060
|
type: "tool_use";
|
|
2061
|
+
name: string;
|
|
2062
2062
|
id: string;
|
|
2063
2063
|
input: Record<string, any>;
|
|
2064
2064
|
cache_control?: {
|
|
@@ -2075,8 +2075,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2075
2075
|
type: "image";
|
|
2076
2076
|
source: {
|
|
2077
2077
|
type: "base64";
|
|
2078
|
-
media_type: "image/jpeg";
|
|
2079
2078
|
data: string;
|
|
2079
|
+
media_type: "image/jpeg";
|
|
2080
2080
|
};
|
|
2081
2081
|
cache_control?: {
|
|
2082
2082
|
type: "ephemeral";
|
|
@@ -2101,6 +2101,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2101
2101
|
requestId?: string | undefined;
|
|
2102
2102
|
} | {
|
|
2103
2103
|
type: "init";
|
|
2104
|
+
fingerprintId: string;
|
|
2104
2105
|
fileContext: {
|
|
2105
2106
|
currentWorkingDirectory: string;
|
|
2106
2107
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2129,7 +2130,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2129
2130
|
content: string;
|
|
2130
2131
|
}[][] | undefined;
|
|
2131
2132
|
};
|
|
2132
|
-
fingerprintId: string;
|
|
2133
2133
|
authToken?: string | undefined;
|
|
2134
2134
|
} | {
|
|
2135
2135
|
type: "generate-commit-message";
|
|
@@ -2182,8 +2182,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2182
2182
|
type: "ephemeral";
|
|
2183
2183
|
} | undefined;
|
|
2184
2184
|
} | {
|
|
2185
|
-
name: string;
|
|
2186
2185
|
type: "tool_use";
|
|
2186
|
+
name: string;
|
|
2187
2187
|
id: string;
|
|
2188
2188
|
input: Record<string, any>;
|
|
2189
2189
|
cache_control?: {
|
|
@@ -2200,8 +2200,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2200
2200
|
type: "image";
|
|
2201
2201
|
source: {
|
|
2202
2202
|
type: "base64";
|
|
2203
|
-
media_type: "image/jpeg";
|
|
2204
2203
|
data: string;
|
|
2204
|
+
media_type: "image/jpeg";
|
|
2205
2205
|
};
|
|
2206
2206
|
cache_control?: {
|
|
2207
2207
|
type: "ephemeral";
|
|
@@ -2227,6 +2227,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2227
2227
|
requestId?: string | undefined;
|
|
2228
2228
|
} | {
|
|
2229
2229
|
type: "init";
|
|
2230
|
+
fingerprintId: string;
|
|
2230
2231
|
fileContext: {
|
|
2231
2232
|
currentWorkingDirectory: string;
|
|
2232
2233
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2255,7 +2256,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2255
2256
|
content: string;
|
|
2256
2257
|
}[][] | undefined;
|
|
2257
2258
|
};
|
|
2258
|
-
fingerprintId: string;
|
|
2259
2259
|
authToken?: string | undefined;
|
|
2260
2260
|
} | {
|
|
2261
2261
|
type: "generate-commit-message";
|
|
@@ -2342,7 +2342,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2342
2342
|
}, {
|
|
2343
2343
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2344
2344
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2345
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
2345
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
2346
2346
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2347
2347
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2348
2348
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2366,7 +2366,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2366
2366
|
resetFileVersions: boolean;
|
|
2367
2367
|
usage?: number | undefined;
|
|
2368
2368
|
remainingBalance?: number | undefined;
|
|
2369
|
-
balanceBreakdown?: Partial<Record<
|
|
2369
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2370
2370
|
next_quota_reset?: Date | null | undefined;
|
|
2371
2371
|
autoTopupAdded?: number | undefined;
|
|
2372
2372
|
}, {
|
|
@@ -2390,7 +2390,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2390
2390
|
resetFileVersions: boolean;
|
|
2391
2391
|
usage?: number | undefined;
|
|
2392
2392
|
remainingBalance?: number | undefined;
|
|
2393
|
-
balanceBreakdown?: Partial<Record<
|
|
2393
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2394
2394
|
next_quota_reset?: Date | null | undefined;
|
|
2395
2395
|
autoTopupAdded?: number | undefined;
|
|
2396
2396
|
}>, z.ZodObject<{
|
|
@@ -2547,16 +2547,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2547
2547
|
type: "ephemeral";
|
|
2548
2548
|
}>>;
|
|
2549
2549
|
}, "strip", z.ZodTypeAny, {
|
|
2550
|
-
name: string;
|
|
2551
2550
|
type: "tool_use";
|
|
2551
|
+
name: string;
|
|
2552
2552
|
id: string;
|
|
2553
2553
|
input: Record<string, any>;
|
|
2554
2554
|
cache_control?: {
|
|
2555
2555
|
type: "ephemeral";
|
|
2556
2556
|
} | undefined;
|
|
2557
2557
|
}, {
|
|
2558
|
-
name: string;
|
|
2559
2558
|
type: "tool_use";
|
|
2559
|
+
name: string;
|
|
2560
2560
|
id: string;
|
|
2561
2561
|
input: Record<string, any>;
|
|
2562
2562
|
cache_control?: {
|
|
@@ -2595,12 +2595,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2595
2595
|
data: z.ZodString;
|
|
2596
2596
|
}, "strip", z.ZodTypeAny, {
|
|
2597
2597
|
type: "base64";
|
|
2598
|
-
media_type: "image/jpeg";
|
|
2599
2598
|
data: string;
|
|
2599
|
+
media_type: "image/jpeg";
|
|
2600
2600
|
}, {
|
|
2601
2601
|
type: "base64";
|
|
2602
|
-
media_type: "image/jpeg";
|
|
2603
2602
|
data: string;
|
|
2603
|
+
media_type: "image/jpeg";
|
|
2604
2604
|
}>;
|
|
2605
2605
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2606
2606
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -2613,8 +2613,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2613
2613
|
type: "image";
|
|
2614
2614
|
source: {
|
|
2615
2615
|
type: "base64";
|
|
2616
|
-
media_type: "image/jpeg";
|
|
2617
2616
|
data: string;
|
|
2617
|
+
media_type: "image/jpeg";
|
|
2618
2618
|
};
|
|
2619
2619
|
cache_control?: {
|
|
2620
2620
|
type: "ephemeral";
|
|
@@ -2623,8 +2623,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2623
2623
|
type: "image";
|
|
2624
2624
|
source: {
|
|
2625
2625
|
type: "base64";
|
|
2626
|
-
media_type: "image/jpeg";
|
|
2627
2626
|
data: string;
|
|
2627
|
+
media_type: "image/jpeg";
|
|
2628
2628
|
};
|
|
2629
2629
|
cache_control?: {
|
|
2630
2630
|
type: "ephemeral";
|
|
@@ -2638,8 +2638,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2638
2638
|
type: "ephemeral";
|
|
2639
2639
|
} | undefined;
|
|
2640
2640
|
} | {
|
|
2641
|
-
name: string;
|
|
2642
2641
|
type: "tool_use";
|
|
2642
|
+
name: string;
|
|
2643
2643
|
id: string;
|
|
2644
2644
|
input: Record<string, any>;
|
|
2645
2645
|
cache_control?: {
|
|
@@ -2656,8 +2656,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2656
2656
|
type: "image";
|
|
2657
2657
|
source: {
|
|
2658
2658
|
type: "base64";
|
|
2659
|
-
media_type: "image/jpeg";
|
|
2660
2659
|
data: string;
|
|
2660
|
+
media_type: "image/jpeg";
|
|
2661
2661
|
};
|
|
2662
2662
|
cache_control?: {
|
|
2663
2663
|
type: "ephemeral";
|
|
@@ -2672,8 +2672,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2672
2672
|
type: "ephemeral";
|
|
2673
2673
|
} | undefined;
|
|
2674
2674
|
} | {
|
|
2675
|
-
name: string;
|
|
2676
2675
|
type: "tool_use";
|
|
2676
|
+
name: string;
|
|
2677
2677
|
id: string;
|
|
2678
2678
|
input: Record<string, any>;
|
|
2679
2679
|
cache_control?: {
|
|
@@ -2690,8 +2690,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2690
2690
|
type: "image";
|
|
2691
2691
|
source: {
|
|
2692
2692
|
type: "base64";
|
|
2693
|
-
media_type: "image/jpeg";
|
|
2694
2693
|
data: string;
|
|
2694
|
+
media_type: "image/jpeg";
|
|
2695
2695
|
};
|
|
2696
2696
|
cache_control?: {
|
|
2697
2697
|
type: "ephemeral";
|
|
@@ -2738,8 +2738,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2738
2738
|
type: "ephemeral";
|
|
2739
2739
|
} | undefined;
|
|
2740
2740
|
} | {
|
|
2741
|
-
name: string;
|
|
2742
2741
|
type: "tool_use";
|
|
2742
|
+
name: string;
|
|
2743
2743
|
id: string;
|
|
2744
2744
|
input: Record<string, any>;
|
|
2745
2745
|
cache_control?: {
|
|
@@ -2756,8 +2756,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2756
2756
|
type: "image";
|
|
2757
2757
|
source: {
|
|
2758
2758
|
type: "base64";
|
|
2759
|
-
media_type: "image/jpeg";
|
|
2760
2759
|
data: string;
|
|
2760
|
+
media_type: "image/jpeg";
|
|
2761
2761
|
};
|
|
2762
2762
|
cache_control?: {
|
|
2763
2763
|
type: "ephemeral";
|
|
@@ -2804,8 +2804,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2804
2804
|
type: "ephemeral";
|
|
2805
2805
|
} | undefined;
|
|
2806
2806
|
} | {
|
|
2807
|
-
name: string;
|
|
2808
2807
|
type: "tool_use";
|
|
2808
|
+
name: string;
|
|
2809
2809
|
id: string;
|
|
2810
2810
|
input: Record<string, any>;
|
|
2811
2811
|
cache_control?: {
|
|
@@ -2822,8 +2822,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2822
2822
|
type: "image";
|
|
2823
2823
|
source: {
|
|
2824
2824
|
type: "base64";
|
|
2825
|
-
media_type: "image/jpeg";
|
|
2826
2825
|
data: string;
|
|
2826
|
+
media_type: "image/jpeg";
|
|
2827
2827
|
};
|
|
2828
2828
|
cache_control?: {
|
|
2829
2829
|
type: "ephemeral";
|
|
@@ -2839,12 +2839,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2839
2839
|
id: z.ZodString;
|
|
2840
2840
|
}, "strip", z.ZodTypeAny, {
|
|
2841
2841
|
name: string;
|
|
2842
|
-
parameters: Record<string, string>;
|
|
2843
2842
|
id: string;
|
|
2843
|
+
parameters: Record<string, string>;
|
|
2844
2844
|
}, {
|
|
2845
2845
|
name: string;
|
|
2846
|
-
parameters: Record<string, string>;
|
|
2847
2846
|
id: string;
|
|
2847
|
+
parameters: Record<string, string>;
|
|
2848
2848
|
}>, "many">;
|
|
2849
2849
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2850
2850
|
name: z.ZodString;
|
|
@@ -2900,8 +2900,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2900
2900
|
type: "ephemeral";
|
|
2901
2901
|
} | undefined;
|
|
2902
2902
|
} | {
|
|
2903
|
-
name: string;
|
|
2904
2903
|
type: "tool_use";
|
|
2904
|
+
name: string;
|
|
2905
2905
|
id: string;
|
|
2906
2906
|
input: Record<string, any>;
|
|
2907
2907
|
cache_control?: {
|
|
@@ -2918,8 +2918,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2918
2918
|
type: "image";
|
|
2919
2919
|
source: {
|
|
2920
2920
|
type: "base64";
|
|
2921
|
-
media_type: "image/jpeg";
|
|
2922
2921
|
data: string;
|
|
2922
|
+
media_type: "image/jpeg";
|
|
2923
2923
|
};
|
|
2924
2924
|
cache_control?: {
|
|
2925
2925
|
type: "ephemeral";
|
|
@@ -2936,8 +2936,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2936
2936
|
}[];
|
|
2937
2937
|
toolCalls: {
|
|
2938
2938
|
name: string;
|
|
2939
|
-
parameters: Record<string, string>;
|
|
2940
2939
|
id: string;
|
|
2940
|
+
parameters: Record<string, string>;
|
|
2941
2941
|
}[];
|
|
2942
2942
|
}, {
|
|
2943
2943
|
type: "prompt-response";
|
|
@@ -2980,8 +2980,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2980
2980
|
type: "ephemeral";
|
|
2981
2981
|
} | undefined;
|
|
2982
2982
|
} | {
|
|
2983
|
-
name: string;
|
|
2984
2983
|
type: "tool_use";
|
|
2984
|
+
name: string;
|
|
2985
2985
|
id: string;
|
|
2986
2986
|
input: Record<string, any>;
|
|
2987
2987
|
cache_control?: {
|
|
@@ -2998,8 +2998,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2998
2998
|
type: "image";
|
|
2999
2999
|
source: {
|
|
3000
3000
|
type: "base64";
|
|
3001
|
-
media_type: "image/jpeg";
|
|
3002
3001
|
data: string;
|
|
3002
|
+
media_type: "image/jpeg";
|
|
3003
3003
|
};
|
|
3004
3004
|
cache_control?: {
|
|
3005
3005
|
type: "ephemeral";
|
|
@@ -3016,8 +3016,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3016
3016
|
}[];
|
|
3017
3017
|
toolCalls: {
|
|
3018
3018
|
name: string;
|
|
3019
|
-
parameters: Record<string, string>;
|
|
3020
3019
|
id: string;
|
|
3020
|
+
parameters: Record<string, string>;
|
|
3021
3021
|
}[];
|
|
3022
3022
|
}>, z.ZodObject<{
|
|
3023
3023
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3163,7 +3163,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3163
3163
|
type: z.ZodLiteral<"usage-response">;
|
|
3164
3164
|
usage: z.ZodNumber;
|
|
3165
3165
|
remainingBalance: z.ZodNumber;
|
|
3166
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
3166
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
3167
3167
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3168
3168
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3169
3169
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -3171,20 +3171,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3171
3171
|
usage: number;
|
|
3172
3172
|
remainingBalance: number;
|
|
3173
3173
|
next_quota_reset: Date | null;
|
|
3174
|
-
balanceBreakdown?: Partial<Record<
|
|
3174
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3175
3175
|
autoTopupAdded?: number | undefined;
|
|
3176
3176
|
}, {
|
|
3177
3177
|
type: "init-response";
|
|
3178
3178
|
usage: number;
|
|
3179
3179
|
remainingBalance: number;
|
|
3180
3180
|
next_quota_reset: Date | null;
|
|
3181
|
-
balanceBreakdown?: Partial<Record<
|
|
3181
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3182
3182
|
autoTopupAdded?: number | undefined;
|
|
3183
3183
|
}>, z.ZodObject<{
|
|
3184
3184
|
type: z.ZodLiteral<"usage-response">;
|
|
3185
3185
|
usage: z.ZodNumber;
|
|
3186
3186
|
remainingBalance: z.ZodNumber;
|
|
3187
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
3187
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
3188
3188
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3189
3189
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3190
3190
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3192,14 +3192,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3192
3192
|
usage: number;
|
|
3193
3193
|
remainingBalance: number;
|
|
3194
3194
|
next_quota_reset: Date | null;
|
|
3195
|
-
balanceBreakdown?: Partial<Record<
|
|
3195
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3196
3196
|
autoTopupAdded?: number | undefined;
|
|
3197
3197
|
}, {
|
|
3198
3198
|
type: "usage-response";
|
|
3199
3199
|
usage: number;
|
|
3200
3200
|
remainingBalance: number;
|
|
3201
3201
|
next_quota_reset: Date | null;
|
|
3202
|
-
balanceBreakdown?: Partial<Record<
|
|
3202
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3203
3203
|
autoTopupAdded?: number | undefined;
|
|
3204
3204
|
}>, z.ZodObject<{
|
|
3205
3205
|
type: z.ZodLiteral<"message-cost-response">;
|
|
@@ -3221,13 +3221,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3221
3221
|
}, "strip", z.ZodTypeAny, {
|
|
3222
3222
|
message: string;
|
|
3223
3223
|
type: "action-error";
|
|
3224
|
-
remainingBalance?: number | undefined;
|
|
3225
3224
|
error?: string | undefined;
|
|
3225
|
+
remainingBalance?: number | undefined;
|
|
3226
3226
|
}, {
|
|
3227
3227
|
message: string;
|
|
3228
3228
|
type: "action-error";
|
|
3229
|
-
remainingBalance?: number | undefined;
|
|
3230
3229
|
error?: string | undefined;
|
|
3230
|
+
remainingBalance?: number | undefined;
|
|
3231
3231
|
}>, z.ZodObject<{
|
|
3232
3232
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3233
3233
|
commitMessage: z.ZodString;
|
|
@@ -3251,14 +3251,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3251
3251
|
usage: number;
|
|
3252
3252
|
remainingBalance: number;
|
|
3253
3253
|
next_quota_reset: Date | null;
|
|
3254
|
-
balanceBreakdown?: Partial<Record<
|
|
3254
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3255
3255
|
autoTopupAdded?: number | undefined;
|
|
3256
3256
|
} | {
|
|
3257
3257
|
type: "init-response";
|
|
3258
3258
|
usage: number;
|
|
3259
3259
|
remainingBalance: number;
|
|
3260
3260
|
next_quota_reset: Date | null;
|
|
3261
|
-
balanceBreakdown?: Partial<Record<
|
|
3261
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3262
3262
|
autoTopupAdded?: number | undefined;
|
|
3263
3263
|
} | {
|
|
3264
3264
|
type: "response-complete";
|
|
@@ -3281,7 +3281,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3281
3281
|
resetFileVersions: boolean;
|
|
3282
3282
|
usage?: number | undefined;
|
|
3283
3283
|
remainingBalance?: number | undefined;
|
|
3284
|
-
balanceBreakdown?: Partial<Record<
|
|
3284
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3285
3285
|
next_quota_reset?: Date | null | undefined;
|
|
3286
3286
|
autoTopupAdded?: number | undefined;
|
|
3287
3287
|
} | {
|
|
@@ -3329,8 +3329,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3329
3329
|
type: "ephemeral";
|
|
3330
3330
|
} | undefined;
|
|
3331
3331
|
} | {
|
|
3332
|
-
name: string;
|
|
3333
3332
|
type: "tool_use";
|
|
3333
|
+
name: string;
|
|
3334
3334
|
id: string;
|
|
3335
3335
|
input: Record<string, any>;
|
|
3336
3336
|
cache_control?: {
|
|
@@ -3347,8 +3347,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3347
3347
|
type: "image";
|
|
3348
3348
|
source: {
|
|
3349
3349
|
type: "base64";
|
|
3350
|
-
media_type: "image/jpeg";
|
|
3351
3350
|
data: string;
|
|
3351
|
+
media_type: "image/jpeg";
|
|
3352
3352
|
};
|
|
3353
3353
|
cache_control?: {
|
|
3354
3354
|
type: "ephemeral";
|
|
@@ -3365,8 +3365,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3365
3365
|
}[];
|
|
3366
3366
|
toolCalls: {
|
|
3367
3367
|
name: string;
|
|
3368
|
-
parameters: Record<string, string>;
|
|
3369
3368
|
id: string;
|
|
3369
|
+
parameters: Record<string, string>;
|
|
3370
3370
|
}[];
|
|
3371
3371
|
} | {
|
|
3372
3372
|
type: "response-chunk";
|
|
@@ -3411,8 +3411,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3411
3411
|
} | {
|
|
3412
3412
|
message: string;
|
|
3413
3413
|
type: "action-error";
|
|
3414
|
-
remainingBalance?: number | undefined;
|
|
3415
3414
|
error?: string | undefined;
|
|
3415
|
+
remainingBalance?: number | undefined;
|
|
3416
3416
|
} | {
|
|
3417
3417
|
type: "commit-message-response";
|
|
3418
3418
|
commitMessage: string;
|
|
@@ -3426,14 +3426,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3426
3426
|
usage: number;
|
|
3427
3427
|
remainingBalance: number;
|
|
3428
3428
|
next_quota_reset: Date | null;
|
|
3429
|
-
balanceBreakdown?: Partial<Record<
|
|
3429
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3430
3430
|
autoTopupAdded?: number | undefined;
|
|
3431
3431
|
} | {
|
|
3432
3432
|
type: "init-response";
|
|
3433
3433
|
usage: number;
|
|
3434
3434
|
remainingBalance: number;
|
|
3435
3435
|
next_quota_reset: Date | null;
|
|
3436
|
-
balanceBreakdown?: Partial<Record<
|
|
3436
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3437
3437
|
autoTopupAdded?: number | undefined;
|
|
3438
3438
|
} | {
|
|
3439
3439
|
type: "response-complete";
|
|
@@ -3456,7 +3456,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3456
3456
|
resetFileVersions: boolean;
|
|
3457
3457
|
usage?: number | undefined;
|
|
3458
3458
|
remainingBalance?: number | undefined;
|
|
3459
|
-
balanceBreakdown?: Partial<Record<
|
|
3459
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3460
3460
|
next_quota_reset?: Date | null | undefined;
|
|
3461
3461
|
autoTopupAdded?: number | undefined;
|
|
3462
3462
|
} | {
|
|
@@ -3504,8 +3504,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3504
3504
|
type: "ephemeral";
|
|
3505
3505
|
} | undefined;
|
|
3506
3506
|
} | {
|
|
3507
|
-
name: string;
|
|
3508
3507
|
type: "tool_use";
|
|
3508
|
+
name: string;
|
|
3509
3509
|
id: string;
|
|
3510
3510
|
input: Record<string, any>;
|
|
3511
3511
|
cache_control?: {
|
|
@@ -3522,8 +3522,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3522
3522
|
type: "image";
|
|
3523
3523
|
source: {
|
|
3524
3524
|
type: "base64";
|
|
3525
|
-
media_type: "image/jpeg";
|
|
3526
3525
|
data: string;
|
|
3526
|
+
media_type: "image/jpeg";
|
|
3527
3527
|
};
|
|
3528
3528
|
cache_control?: {
|
|
3529
3529
|
type: "ephemeral";
|
|
@@ -3540,8 +3540,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3540
3540
|
}[];
|
|
3541
3541
|
toolCalls: {
|
|
3542
3542
|
name: string;
|
|
3543
|
-
parameters: Record<string, string>;
|
|
3544
3543
|
id: string;
|
|
3544
|
+
parameters: Record<string, string>;
|
|
3545
3545
|
}[];
|
|
3546
3546
|
} | {
|
|
3547
3547
|
type: "response-chunk";
|
|
@@ -3586,8 +3586,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3586
3586
|
} | {
|
|
3587
3587
|
message: string;
|
|
3588
3588
|
type: "action-error";
|
|
3589
|
-
remainingBalance?: number | undefined;
|
|
3590
3589
|
error?: string | undefined;
|
|
3590
|
+
remainingBalance?: number | undefined;
|
|
3591
3591
|
} | {
|
|
3592
3592
|
type: "commit-message-response";
|
|
3593
3593
|
commitMessage: string;
|
|
@@ -3669,7 +3669,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3669
3669
|
}, {
|
|
3670
3670
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
3671
3671
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3672
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
3672
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
3673
3673
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3674
3674
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3675
3675
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -3693,7 +3693,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3693
3693
|
resetFileVersions: boolean;
|
|
3694
3694
|
usage?: number | undefined;
|
|
3695
3695
|
remainingBalance?: number | undefined;
|
|
3696
|
-
balanceBreakdown?: Partial<Record<
|
|
3696
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3697
3697
|
next_quota_reset?: Date | null | undefined;
|
|
3698
3698
|
autoTopupAdded?: number | undefined;
|
|
3699
3699
|
}, {
|
|
@@ -3717,7 +3717,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3717
3717
|
resetFileVersions: boolean;
|
|
3718
3718
|
usage?: number | undefined;
|
|
3719
3719
|
remainingBalance?: number | undefined;
|
|
3720
|
-
balanceBreakdown?: Partial<Record<
|
|
3720
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
3721
3721
|
next_quota_reset?: Date | null | undefined;
|
|
3722
3722
|
autoTopupAdded?: number | undefined;
|
|
3723
3723
|
}>, z.ZodObject<{
|
|
@@ -3874,16 +3874,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3874
3874
|
type: "ephemeral";
|
|
3875
3875
|
}>>;
|
|
3876
3876
|
}, "strip", z.ZodTypeAny, {
|
|
3877
|
-
name: string;
|
|
3878
3877
|
type: "tool_use";
|
|
3878
|
+
name: string;
|
|
3879
3879
|
id: string;
|
|
3880
3880
|
input: Record<string, any>;
|
|
3881
3881
|
cache_control?: {
|
|
3882
3882
|
type: "ephemeral";
|
|
3883
3883
|
} | undefined;
|
|
3884
3884
|
}, {
|
|
3885
|
-
name: string;
|
|
3886
3885
|
type: "tool_use";
|
|
3886
|
+
name: string;
|
|
3887
3887
|
id: string;
|
|
3888
3888
|
input: Record<string, any>;
|
|
3889
3889
|
cache_control?: {
|
|
@@ -3922,12 +3922,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3922
3922
|
data: z.ZodString;
|
|
3923
3923
|
}, "strip", z.ZodTypeAny, {
|
|
3924
3924
|
type: "base64";
|
|
3925
|
-
media_type: "image/jpeg";
|
|
3926
3925
|
data: string;
|
|
3926
|
+
media_type: "image/jpeg";
|
|
3927
3927
|
}, {
|
|
3928
3928
|
type: "base64";
|
|
3929
|
-
media_type: "image/jpeg";
|
|
3930
3929
|
data: string;
|
|
3930
|
+
media_type: "image/jpeg";
|
|
3931
3931
|
}>;
|
|
3932
3932
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3933
3933
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -3940,8 +3940,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3940
3940
|
type: "image";
|
|
3941
3941
|
source: {
|
|
3942
3942
|
type: "base64";
|
|
3943
|
-
media_type: "image/jpeg";
|
|
3944
3943
|
data: string;
|
|
3944
|
+
media_type: "image/jpeg";
|
|
3945
3945
|
};
|
|
3946
3946
|
cache_control?: {
|
|
3947
3947
|
type: "ephemeral";
|
|
@@ -3950,8 +3950,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3950
3950
|
type: "image";
|
|
3951
3951
|
source: {
|
|
3952
3952
|
type: "base64";
|
|
3953
|
-
media_type: "image/jpeg";
|
|
3954
3953
|
data: string;
|
|
3954
|
+
media_type: "image/jpeg";
|
|
3955
3955
|
};
|
|
3956
3956
|
cache_control?: {
|
|
3957
3957
|
type: "ephemeral";
|
|
@@ -3965,8 +3965,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3965
3965
|
type: "ephemeral";
|
|
3966
3966
|
} | undefined;
|
|
3967
3967
|
} | {
|
|
3968
|
-
name: string;
|
|
3969
3968
|
type: "tool_use";
|
|
3969
|
+
name: string;
|
|
3970
3970
|
id: string;
|
|
3971
3971
|
input: Record<string, any>;
|
|
3972
3972
|
cache_control?: {
|
|
@@ -3983,8 +3983,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3983
3983
|
type: "image";
|
|
3984
3984
|
source: {
|
|
3985
3985
|
type: "base64";
|
|
3986
|
-
media_type: "image/jpeg";
|
|
3987
3986
|
data: string;
|
|
3987
|
+
media_type: "image/jpeg";
|
|
3988
3988
|
};
|
|
3989
3989
|
cache_control?: {
|
|
3990
3990
|
type: "ephemeral";
|
|
@@ -3999,8 +3999,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3999
3999
|
type: "ephemeral";
|
|
4000
4000
|
} | undefined;
|
|
4001
4001
|
} | {
|
|
4002
|
-
name: string;
|
|
4003
4002
|
type: "tool_use";
|
|
4003
|
+
name: string;
|
|
4004
4004
|
id: string;
|
|
4005
4005
|
input: Record<string, any>;
|
|
4006
4006
|
cache_control?: {
|
|
@@ -4017,8 +4017,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4017
4017
|
type: "image";
|
|
4018
4018
|
source: {
|
|
4019
4019
|
type: "base64";
|
|
4020
|
-
media_type: "image/jpeg";
|
|
4021
4020
|
data: string;
|
|
4021
|
+
media_type: "image/jpeg";
|
|
4022
4022
|
};
|
|
4023
4023
|
cache_control?: {
|
|
4024
4024
|
type: "ephemeral";
|
|
@@ -4065,8 +4065,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4065
4065
|
type: "ephemeral";
|
|
4066
4066
|
} | undefined;
|
|
4067
4067
|
} | {
|
|
4068
|
-
name: string;
|
|
4069
4068
|
type: "tool_use";
|
|
4069
|
+
name: string;
|
|
4070
4070
|
id: string;
|
|
4071
4071
|
input: Record<string, any>;
|
|
4072
4072
|
cache_control?: {
|
|
@@ -4083,8 +4083,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4083
4083
|
type: "image";
|
|
4084
4084
|
source: {
|
|
4085
4085
|
type: "base64";
|
|
4086
|
-
media_type: "image/jpeg";
|
|
4087
4086
|
data: string;
|
|
4087
|
+
media_type: "image/jpeg";
|
|
4088
4088
|
};
|
|
4089
4089
|
cache_control?: {
|
|
4090
4090
|
type: "ephemeral";
|
|
@@ -4131,8 +4131,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4131
4131
|
type: "ephemeral";
|
|
4132
4132
|
} | undefined;
|
|
4133
4133
|
} | {
|
|
4134
|
-
name: string;
|
|
4135
4134
|
type: "tool_use";
|
|
4135
|
+
name: string;
|
|
4136
4136
|
id: string;
|
|
4137
4137
|
input: Record<string, any>;
|
|
4138
4138
|
cache_control?: {
|
|
@@ -4149,8 +4149,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4149
4149
|
type: "image";
|
|
4150
4150
|
source: {
|
|
4151
4151
|
type: "base64";
|
|
4152
|
-
media_type: "image/jpeg";
|
|
4153
4152
|
data: string;
|
|
4153
|
+
media_type: "image/jpeg";
|
|
4154
4154
|
};
|
|
4155
4155
|
cache_control?: {
|
|
4156
4156
|
type: "ephemeral";
|
|
@@ -4166,12 +4166,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4166
4166
|
id: z.ZodString;
|
|
4167
4167
|
}, "strip", z.ZodTypeAny, {
|
|
4168
4168
|
name: string;
|
|
4169
|
-
parameters: Record<string, string>;
|
|
4170
4169
|
id: string;
|
|
4170
|
+
parameters: Record<string, string>;
|
|
4171
4171
|
}, {
|
|
4172
4172
|
name: string;
|
|
4173
|
-
parameters: Record<string, string>;
|
|
4174
4173
|
id: string;
|
|
4174
|
+
parameters: Record<string, string>;
|
|
4175
4175
|
}>, "many">;
|
|
4176
4176
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4177
4177
|
name: z.ZodString;
|
|
@@ -4227,8 +4227,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4227
4227
|
type: "ephemeral";
|
|
4228
4228
|
} | undefined;
|
|
4229
4229
|
} | {
|
|
4230
|
-
name: string;
|
|
4231
4230
|
type: "tool_use";
|
|
4231
|
+
name: string;
|
|
4232
4232
|
id: string;
|
|
4233
4233
|
input: Record<string, any>;
|
|
4234
4234
|
cache_control?: {
|
|
@@ -4245,8 +4245,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4245
4245
|
type: "image";
|
|
4246
4246
|
source: {
|
|
4247
4247
|
type: "base64";
|
|
4248
|
-
media_type: "image/jpeg";
|
|
4249
4248
|
data: string;
|
|
4249
|
+
media_type: "image/jpeg";
|
|
4250
4250
|
};
|
|
4251
4251
|
cache_control?: {
|
|
4252
4252
|
type: "ephemeral";
|
|
@@ -4263,8 +4263,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4263
4263
|
}[];
|
|
4264
4264
|
toolCalls: {
|
|
4265
4265
|
name: string;
|
|
4266
|
-
parameters: Record<string, string>;
|
|
4267
4266
|
id: string;
|
|
4267
|
+
parameters: Record<string, string>;
|
|
4268
4268
|
}[];
|
|
4269
4269
|
}, {
|
|
4270
4270
|
type: "prompt-response";
|
|
@@ -4307,8 +4307,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4307
4307
|
type: "ephemeral";
|
|
4308
4308
|
} | undefined;
|
|
4309
4309
|
} | {
|
|
4310
|
-
name: string;
|
|
4311
4310
|
type: "tool_use";
|
|
4311
|
+
name: string;
|
|
4312
4312
|
id: string;
|
|
4313
4313
|
input: Record<string, any>;
|
|
4314
4314
|
cache_control?: {
|
|
@@ -4325,8 +4325,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4325
4325
|
type: "image";
|
|
4326
4326
|
source: {
|
|
4327
4327
|
type: "base64";
|
|
4328
|
-
media_type: "image/jpeg";
|
|
4329
4328
|
data: string;
|
|
4329
|
+
media_type: "image/jpeg";
|
|
4330
4330
|
};
|
|
4331
4331
|
cache_control?: {
|
|
4332
4332
|
type: "ephemeral";
|
|
@@ -4343,8 +4343,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4343
4343
|
}[];
|
|
4344
4344
|
toolCalls: {
|
|
4345
4345
|
name: string;
|
|
4346
|
-
parameters: Record<string, string>;
|
|
4347
4346
|
id: string;
|
|
4347
|
+
parameters: Record<string, string>;
|
|
4348
4348
|
}[];
|
|
4349
4349
|
}>, z.ZodObject<{
|
|
4350
4350
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4490,7 +4490,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4490
4490
|
type: z.ZodLiteral<"usage-response">;
|
|
4491
4491
|
usage: z.ZodNumber;
|
|
4492
4492
|
remainingBalance: z.ZodNumber;
|
|
4493
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
4493
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
4494
4494
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4495
4495
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4496
4496
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -4498,20 +4498,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4498
4498
|
usage: number;
|
|
4499
4499
|
remainingBalance: number;
|
|
4500
4500
|
next_quota_reset: Date | null;
|
|
4501
|
-
balanceBreakdown?: Partial<Record<
|
|
4501
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4502
4502
|
autoTopupAdded?: number | undefined;
|
|
4503
4503
|
}, {
|
|
4504
4504
|
type: "init-response";
|
|
4505
4505
|
usage: number;
|
|
4506
4506
|
remainingBalance: number;
|
|
4507
4507
|
next_quota_reset: Date | null;
|
|
4508
|
-
balanceBreakdown?: Partial<Record<
|
|
4508
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4509
4509
|
autoTopupAdded?: number | undefined;
|
|
4510
4510
|
}>, z.ZodObject<{
|
|
4511
4511
|
type: z.ZodLiteral<"usage-response">;
|
|
4512
4512
|
usage: z.ZodNumber;
|
|
4513
4513
|
remainingBalance: z.ZodNumber;
|
|
4514
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
4514
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
4515
4515
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4516
4516
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4517
4517
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4519,14 +4519,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4519
4519
|
usage: number;
|
|
4520
4520
|
remainingBalance: number;
|
|
4521
4521
|
next_quota_reset: Date | null;
|
|
4522
|
-
balanceBreakdown?: Partial<Record<
|
|
4522
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4523
4523
|
autoTopupAdded?: number | undefined;
|
|
4524
4524
|
}, {
|
|
4525
4525
|
type: "usage-response";
|
|
4526
4526
|
usage: number;
|
|
4527
4527
|
remainingBalance: number;
|
|
4528
4528
|
next_quota_reset: Date | null;
|
|
4529
|
-
balanceBreakdown?: Partial<Record<
|
|
4529
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4530
4530
|
autoTopupAdded?: number | undefined;
|
|
4531
4531
|
}>, z.ZodObject<{
|
|
4532
4532
|
type: z.ZodLiteral<"message-cost-response">;
|
|
@@ -4548,13 +4548,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4548
4548
|
}, "strip", z.ZodTypeAny, {
|
|
4549
4549
|
message: string;
|
|
4550
4550
|
type: "action-error";
|
|
4551
|
-
remainingBalance?: number | undefined;
|
|
4552
4551
|
error?: string | undefined;
|
|
4552
|
+
remainingBalance?: number | undefined;
|
|
4553
4553
|
}, {
|
|
4554
4554
|
message: string;
|
|
4555
4555
|
type: "action-error";
|
|
4556
|
-
remainingBalance?: number | undefined;
|
|
4557
4556
|
error?: string | undefined;
|
|
4557
|
+
remainingBalance?: number | undefined;
|
|
4558
4558
|
}>, z.ZodObject<{
|
|
4559
4559
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4560
4560
|
commitMessage: z.ZodString;
|
|
@@ -4578,14 +4578,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4578
4578
|
usage: number;
|
|
4579
4579
|
remainingBalance: number;
|
|
4580
4580
|
next_quota_reset: Date | null;
|
|
4581
|
-
balanceBreakdown?: Partial<Record<
|
|
4581
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4582
4582
|
autoTopupAdded?: number | undefined;
|
|
4583
4583
|
} | {
|
|
4584
4584
|
type: "init-response";
|
|
4585
4585
|
usage: number;
|
|
4586
4586
|
remainingBalance: number;
|
|
4587
4587
|
next_quota_reset: Date | null;
|
|
4588
|
-
balanceBreakdown?: Partial<Record<
|
|
4588
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4589
4589
|
autoTopupAdded?: number | undefined;
|
|
4590
4590
|
} | {
|
|
4591
4591
|
type: "response-complete";
|
|
@@ -4608,7 +4608,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4608
4608
|
resetFileVersions: boolean;
|
|
4609
4609
|
usage?: number | undefined;
|
|
4610
4610
|
remainingBalance?: number | undefined;
|
|
4611
|
-
balanceBreakdown?: Partial<Record<
|
|
4611
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4612
4612
|
next_quota_reset?: Date | null | undefined;
|
|
4613
4613
|
autoTopupAdded?: number | undefined;
|
|
4614
4614
|
} | {
|
|
@@ -4656,8 +4656,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4656
4656
|
type: "ephemeral";
|
|
4657
4657
|
} | undefined;
|
|
4658
4658
|
} | {
|
|
4659
|
-
name: string;
|
|
4660
4659
|
type: "tool_use";
|
|
4660
|
+
name: string;
|
|
4661
4661
|
id: string;
|
|
4662
4662
|
input: Record<string, any>;
|
|
4663
4663
|
cache_control?: {
|
|
@@ -4674,8 +4674,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4674
4674
|
type: "image";
|
|
4675
4675
|
source: {
|
|
4676
4676
|
type: "base64";
|
|
4677
|
-
media_type: "image/jpeg";
|
|
4678
4677
|
data: string;
|
|
4678
|
+
media_type: "image/jpeg";
|
|
4679
4679
|
};
|
|
4680
4680
|
cache_control?: {
|
|
4681
4681
|
type: "ephemeral";
|
|
@@ -4692,8 +4692,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4692
4692
|
}[];
|
|
4693
4693
|
toolCalls: {
|
|
4694
4694
|
name: string;
|
|
4695
|
-
parameters: Record<string, string>;
|
|
4696
4695
|
id: string;
|
|
4696
|
+
parameters: Record<string, string>;
|
|
4697
4697
|
}[];
|
|
4698
4698
|
} | {
|
|
4699
4699
|
type: "response-chunk";
|
|
@@ -4738,8 +4738,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4738
4738
|
} | {
|
|
4739
4739
|
message: string;
|
|
4740
4740
|
type: "action-error";
|
|
4741
|
-
remainingBalance?: number | undefined;
|
|
4742
4741
|
error?: string | undefined;
|
|
4742
|
+
remainingBalance?: number | undefined;
|
|
4743
4743
|
} | {
|
|
4744
4744
|
type: "commit-message-response";
|
|
4745
4745
|
commitMessage: string;
|
|
@@ -4753,14 +4753,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4753
4753
|
usage: number;
|
|
4754
4754
|
remainingBalance: number;
|
|
4755
4755
|
next_quota_reset: Date | null;
|
|
4756
|
-
balanceBreakdown?: Partial<Record<
|
|
4756
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4757
4757
|
autoTopupAdded?: number | undefined;
|
|
4758
4758
|
} | {
|
|
4759
4759
|
type: "init-response";
|
|
4760
4760
|
usage: number;
|
|
4761
4761
|
remainingBalance: number;
|
|
4762
4762
|
next_quota_reset: Date | null;
|
|
4763
|
-
balanceBreakdown?: Partial<Record<
|
|
4763
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4764
4764
|
autoTopupAdded?: number | undefined;
|
|
4765
4765
|
} | {
|
|
4766
4766
|
type: "response-complete";
|
|
@@ -4783,7 +4783,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4783
4783
|
resetFileVersions: boolean;
|
|
4784
4784
|
usage?: number | undefined;
|
|
4785
4785
|
remainingBalance?: number | undefined;
|
|
4786
|
-
balanceBreakdown?: Partial<Record<
|
|
4786
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
4787
4787
|
next_quota_reset?: Date | null | undefined;
|
|
4788
4788
|
autoTopupAdded?: number | undefined;
|
|
4789
4789
|
} | {
|
|
@@ -4831,8 +4831,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4831
4831
|
type: "ephemeral";
|
|
4832
4832
|
} | undefined;
|
|
4833
4833
|
} | {
|
|
4834
|
-
name: string;
|
|
4835
4834
|
type: "tool_use";
|
|
4835
|
+
name: string;
|
|
4836
4836
|
id: string;
|
|
4837
4837
|
input: Record<string, any>;
|
|
4838
4838
|
cache_control?: {
|
|
@@ -4849,8 +4849,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4849
4849
|
type: "image";
|
|
4850
4850
|
source: {
|
|
4851
4851
|
type: "base64";
|
|
4852
|
-
media_type: "image/jpeg";
|
|
4853
4852
|
data: string;
|
|
4853
|
+
media_type: "image/jpeg";
|
|
4854
4854
|
};
|
|
4855
4855
|
cache_control?: {
|
|
4856
4856
|
type: "ephemeral";
|
|
@@ -4867,8 +4867,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4867
4867
|
}[];
|
|
4868
4868
|
toolCalls: {
|
|
4869
4869
|
name: string;
|
|
4870
|
-
parameters: Record<string, string>;
|
|
4871
4870
|
id: string;
|
|
4871
|
+
parameters: Record<string, string>;
|
|
4872
4872
|
}[];
|
|
4873
4873
|
} | {
|
|
4874
4874
|
type: "response-chunk";
|
|
@@ -4913,8 +4913,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4913
4913
|
} | {
|
|
4914
4914
|
message: string;
|
|
4915
4915
|
type: "action-error";
|
|
4916
|
-
remainingBalance?: number | undefined;
|
|
4917
4916
|
error?: string | undefined;
|
|
4917
|
+
remainingBalance?: number | undefined;
|
|
4918
4918
|
} | {
|
|
4919
4919
|
type: "commit-message-response";
|
|
4920
4920
|
commitMessage: string;
|