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
package/dist/common/actions.d.ts
CHANGED
|
@@ -199,16 +199,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
199
199
|
type: "ephemeral";
|
|
200
200
|
}>>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
name: string;
|
|
203
202
|
type: "tool_use";
|
|
203
|
+
name: string;
|
|
204
204
|
id: string;
|
|
205
205
|
input: Record<string, any>;
|
|
206
206
|
cache_control?: {
|
|
207
207
|
type: "ephemeral";
|
|
208
208
|
} | undefined;
|
|
209
209
|
}, {
|
|
210
|
-
name: string;
|
|
211
210
|
type: "tool_use";
|
|
211
|
+
name: string;
|
|
212
212
|
id: string;
|
|
213
213
|
input: Record<string, any>;
|
|
214
214
|
cache_control?: {
|
|
@@ -247,12 +247,12 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
247
247
|
data: z.ZodString;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
249
|
type: "base64";
|
|
250
|
-
media_type: "image/jpeg";
|
|
251
250
|
data: string;
|
|
251
|
+
media_type: "image/jpeg";
|
|
252
252
|
}, {
|
|
253
253
|
type: "base64";
|
|
254
|
-
media_type: "image/jpeg";
|
|
255
254
|
data: string;
|
|
255
|
+
media_type: "image/jpeg";
|
|
256
256
|
}>;
|
|
257
257
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
258
258
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -265,8 +265,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
265
265
|
type: "image";
|
|
266
266
|
source: {
|
|
267
267
|
type: "base64";
|
|
268
|
-
media_type: "image/jpeg";
|
|
269
268
|
data: string;
|
|
269
|
+
media_type: "image/jpeg";
|
|
270
270
|
};
|
|
271
271
|
cache_control?: {
|
|
272
272
|
type: "ephemeral";
|
|
@@ -275,8 +275,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
275
275
|
type: "image";
|
|
276
276
|
source: {
|
|
277
277
|
type: "base64";
|
|
278
|
-
media_type: "image/jpeg";
|
|
279
278
|
data: string;
|
|
279
|
+
media_type: "image/jpeg";
|
|
280
280
|
};
|
|
281
281
|
cache_control?: {
|
|
282
282
|
type: "ephemeral";
|
|
@@ -290,8 +290,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
290
290
|
type: "ephemeral";
|
|
291
291
|
} | undefined;
|
|
292
292
|
} | {
|
|
293
|
-
name: string;
|
|
294
293
|
type: "tool_use";
|
|
294
|
+
name: string;
|
|
295
295
|
id: string;
|
|
296
296
|
input: Record<string, any>;
|
|
297
297
|
cache_control?: {
|
|
@@ -308,8 +308,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
308
308
|
type: "image";
|
|
309
309
|
source: {
|
|
310
310
|
type: "base64";
|
|
311
|
-
media_type: "image/jpeg";
|
|
312
311
|
data: string;
|
|
312
|
+
media_type: "image/jpeg";
|
|
313
313
|
};
|
|
314
314
|
cache_control?: {
|
|
315
315
|
type: "ephemeral";
|
|
@@ -324,8 +324,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
324
324
|
type: "ephemeral";
|
|
325
325
|
} | undefined;
|
|
326
326
|
} | {
|
|
327
|
-
name: string;
|
|
328
327
|
type: "tool_use";
|
|
328
|
+
name: string;
|
|
329
329
|
id: string;
|
|
330
330
|
input: Record<string, any>;
|
|
331
331
|
cache_control?: {
|
|
@@ -342,8 +342,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
342
342
|
type: "image";
|
|
343
343
|
source: {
|
|
344
344
|
type: "base64";
|
|
345
|
-
media_type: "image/jpeg";
|
|
346
345
|
data: string;
|
|
346
|
+
media_type: "image/jpeg";
|
|
347
347
|
};
|
|
348
348
|
cache_control?: {
|
|
349
349
|
type: "ephemeral";
|
|
@@ -390,8 +390,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
390
390
|
type: "ephemeral";
|
|
391
391
|
} | undefined;
|
|
392
392
|
} | {
|
|
393
|
-
name: string;
|
|
394
393
|
type: "tool_use";
|
|
394
|
+
name: string;
|
|
395
395
|
id: string;
|
|
396
396
|
input: Record<string, any>;
|
|
397
397
|
cache_control?: {
|
|
@@ -408,8 +408,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
408
408
|
type: "image";
|
|
409
409
|
source: {
|
|
410
410
|
type: "base64";
|
|
411
|
-
media_type: "image/jpeg";
|
|
412
411
|
data: string;
|
|
412
|
+
media_type: "image/jpeg";
|
|
413
413
|
};
|
|
414
414
|
cache_control?: {
|
|
415
415
|
type: "ephemeral";
|
|
@@ -456,8 +456,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
456
456
|
type: "ephemeral";
|
|
457
457
|
} | undefined;
|
|
458
458
|
} | {
|
|
459
|
-
name: string;
|
|
460
459
|
type: "tool_use";
|
|
460
|
+
name: string;
|
|
461
461
|
id: string;
|
|
462
462
|
input: Record<string, any>;
|
|
463
463
|
cache_control?: {
|
|
@@ -474,8 +474,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
474
474
|
type: "image";
|
|
475
475
|
source: {
|
|
476
476
|
type: "base64";
|
|
477
|
-
media_type: "image/jpeg";
|
|
478
477
|
data: string;
|
|
478
|
+
media_type: "image/jpeg";
|
|
479
479
|
};
|
|
480
480
|
cache_control?: {
|
|
481
481
|
type: "ephemeral";
|
|
@@ -543,8 +543,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
543
543
|
type: "ephemeral";
|
|
544
544
|
} | undefined;
|
|
545
545
|
} | {
|
|
546
|
-
name: string;
|
|
547
546
|
type: "tool_use";
|
|
547
|
+
name: string;
|
|
548
548
|
id: string;
|
|
549
549
|
input: Record<string, any>;
|
|
550
550
|
cache_control?: {
|
|
@@ -561,8 +561,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
561
561
|
type: "image";
|
|
562
562
|
source: {
|
|
563
563
|
type: "base64";
|
|
564
|
-
media_type: "image/jpeg";
|
|
565
564
|
data: string;
|
|
565
|
+
media_type: "image/jpeg";
|
|
566
566
|
};
|
|
567
567
|
cache_control?: {
|
|
568
568
|
type: "ephemeral";
|
|
@@ -623,8 +623,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
623
623
|
type: "ephemeral";
|
|
624
624
|
} | undefined;
|
|
625
625
|
} | {
|
|
626
|
-
name: string;
|
|
627
626
|
type: "tool_use";
|
|
627
|
+
name: string;
|
|
628
628
|
id: string;
|
|
629
629
|
input: Record<string, any>;
|
|
630
630
|
cache_control?: {
|
|
@@ -641,8 +641,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
641
641
|
type: "image";
|
|
642
642
|
source: {
|
|
643
643
|
type: "base64";
|
|
644
|
-
media_type: "image/jpeg";
|
|
645
644
|
data: string;
|
|
645
|
+
media_type: "image/jpeg";
|
|
646
646
|
};
|
|
647
647
|
cache_control?: {
|
|
648
648
|
type: "ephemeral";
|
|
@@ -792,6 +792,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
792
792
|
}>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
794
|
type: "init";
|
|
795
|
+
fingerprintId: string;
|
|
795
796
|
fileContext: {
|
|
796
797
|
currentWorkingDirectory: string;
|
|
797
798
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -820,10 +821,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
820
821
|
content: string;
|
|
821
822
|
}[][] | undefined;
|
|
822
823
|
};
|
|
823
|
-
fingerprintId: string;
|
|
824
824
|
authToken?: string | undefined;
|
|
825
825
|
}, {
|
|
826
826
|
type: "init";
|
|
827
|
+
fingerprintId: string;
|
|
827
828
|
fileContext: {
|
|
828
829
|
currentWorkingDirectory: string;
|
|
829
830
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -852,7 +853,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
852
853
|
content: string;
|
|
853
854
|
}[][] | undefined;
|
|
854
855
|
};
|
|
855
|
-
fingerprintId: string;
|
|
856
856
|
authToken?: string | undefined;
|
|
857
857
|
}>, z.ZodObject<{
|
|
858
858
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -875,7 +875,7 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
875
875
|
type: z.ZodLiteral<"usage-response">;
|
|
876
876
|
usage: z.ZodNumber;
|
|
877
877
|
remainingBalance: z.ZodNumber;
|
|
878
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
878
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
879
879
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
880
880
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
881
881
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -883,14 +883,14 @@ export declare const UsageReponseSchema: z.ZodObject<{
|
|
|
883
883
|
usage: number;
|
|
884
884
|
remainingBalance: number;
|
|
885
885
|
next_quota_reset: Date | null;
|
|
886
|
-
balanceBreakdown?: Partial<Record<
|
|
886
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
887
887
|
autoTopupAdded?: number | undefined;
|
|
888
888
|
}, {
|
|
889
889
|
type: "usage-response";
|
|
890
890
|
usage: number;
|
|
891
891
|
remainingBalance: number;
|
|
892
892
|
next_quota_reset: Date | null;
|
|
893
|
-
balanceBreakdown?: Partial<Record<
|
|
893
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
894
894
|
autoTopupAdded?: number | undefined;
|
|
895
895
|
}>;
|
|
896
896
|
export type UsageResponse = z.infer<typeof UsageReponseSchema>;
|
|
@@ -900,7 +900,7 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
900
900
|
type: z.ZodLiteral<"usage-response">;
|
|
901
901
|
usage: z.ZodNumber;
|
|
902
902
|
remainingBalance: z.ZodNumber;
|
|
903
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
903
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
904
904
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
905
905
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
906
906
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -908,14 +908,14 @@ export declare const InitResponseSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
908
908
|
usage: number;
|
|
909
909
|
remainingBalance: number;
|
|
910
910
|
next_quota_reset: Date | null;
|
|
911
|
-
balanceBreakdown?: Partial<Record<
|
|
911
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
912
912
|
autoTopupAdded?: number | undefined;
|
|
913
913
|
}, {
|
|
914
914
|
type: "init-response";
|
|
915
915
|
usage: number;
|
|
916
916
|
remainingBalance: number;
|
|
917
917
|
next_quota_reset: Date | null;
|
|
918
|
-
balanceBreakdown?: Partial<Record<
|
|
918
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
919
919
|
autoTopupAdded?: number | undefined;
|
|
920
920
|
}>;
|
|
921
921
|
export type InitResponse = z.infer<typeof InitResponseSchema>;
|
|
@@ -963,7 +963,7 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
963
963
|
}, {
|
|
964
964
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
965
965
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
966
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
966
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
967
967
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
968
968
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
969
969
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -987,7 +987,7 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
987
987
|
resetFileVersions: boolean;
|
|
988
988
|
usage?: number | undefined;
|
|
989
989
|
remainingBalance?: number | undefined;
|
|
990
|
-
balanceBreakdown?: Partial<Record<
|
|
990
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
991
991
|
next_quota_reset?: Date | null | undefined;
|
|
992
992
|
autoTopupAdded?: number | undefined;
|
|
993
993
|
}, {
|
|
@@ -1011,7 +1011,7 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1011
1011
|
resetFileVersions: boolean;
|
|
1012
1012
|
usage?: number | undefined;
|
|
1013
1013
|
remainingBalance?: number | undefined;
|
|
1014
|
-
balanceBreakdown?: Partial<Record<
|
|
1014
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
1015
1015
|
next_quota_reset?: Date | null | undefined;
|
|
1016
1016
|
autoTopupAdded?: number | undefined;
|
|
1017
1017
|
}>;
|
|
@@ -1183,16 +1183,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1183
1183
|
type: "ephemeral";
|
|
1184
1184
|
}>>;
|
|
1185
1185
|
}, "strip", z.ZodTypeAny, {
|
|
1186
|
-
name: string;
|
|
1187
1186
|
type: "tool_use";
|
|
1187
|
+
name: string;
|
|
1188
1188
|
id: string;
|
|
1189
1189
|
input: Record<string, any>;
|
|
1190
1190
|
cache_control?: {
|
|
1191
1191
|
type: "ephemeral";
|
|
1192
1192
|
} | undefined;
|
|
1193
1193
|
}, {
|
|
1194
|
-
name: string;
|
|
1195
1194
|
type: "tool_use";
|
|
1195
|
+
name: string;
|
|
1196
1196
|
id: string;
|
|
1197
1197
|
input: Record<string, any>;
|
|
1198
1198
|
cache_control?: {
|
|
@@ -1231,12 +1231,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1231
1231
|
data: z.ZodString;
|
|
1232
1232
|
}, "strip", z.ZodTypeAny, {
|
|
1233
1233
|
type: "base64";
|
|
1234
|
-
media_type: "image/jpeg";
|
|
1235
1234
|
data: string;
|
|
1235
|
+
media_type: "image/jpeg";
|
|
1236
1236
|
}, {
|
|
1237
1237
|
type: "base64";
|
|
1238
|
-
media_type: "image/jpeg";
|
|
1239
1238
|
data: string;
|
|
1239
|
+
media_type: "image/jpeg";
|
|
1240
1240
|
}>;
|
|
1241
1241
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1242
1242
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1249,8 +1249,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1249
1249
|
type: "image";
|
|
1250
1250
|
source: {
|
|
1251
1251
|
type: "base64";
|
|
1252
|
-
media_type: "image/jpeg";
|
|
1253
1252
|
data: string;
|
|
1253
|
+
media_type: "image/jpeg";
|
|
1254
1254
|
};
|
|
1255
1255
|
cache_control?: {
|
|
1256
1256
|
type: "ephemeral";
|
|
@@ -1259,8 +1259,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1259
1259
|
type: "image";
|
|
1260
1260
|
source: {
|
|
1261
1261
|
type: "base64";
|
|
1262
|
-
media_type: "image/jpeg";
|
|
1263
1262
|
data: string;
|
|
1263
|
+
media_type: "image/jpeg";
|
|
1264
1264
|
};
|
|
1265
1265
|
cache_control?: {
|
|
1266
1266
|
type: "ephemeral";
|
|
@@ -1274,8 +1274,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1274
1274
|
type: "ephemeral";
|
|
1275
1275
|
} | undefined;
|
|
1276
1276
|
} | {
|
|
1277
|
-
name: string;
|
|
1278
1277
|
type: "tool_use";
|
|
1278
|
+
name: string;
|
|
1279
1279
|
id: string;
|
|
1280
1280
|
input: Record<string, any>;
|
|
1281
1281
|
cache_control?: {
|
|
@@ -1292,8 +1292,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1292
1292
|
type: "image";
|
|
1293
1293
|
source: {
|
|
1294
1294
|
type: "base64";
|
|
1295
|
-
media_type: "image/jpeg";
|
|
1296
1295
|
data: string;
|
|
1296
|
+
media_type: "image/jpeg";
|
|
1297
1297
|
};
|
|
1298
1298
|
cache_control?: {
|
|
1299
1299
|
type: "ephemeral";
|
|
@@ -1308,8 +1308,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1308
1308
|
type: "ephemeral";
|
|
1309
1309
|
} | undefined;
|
|
1310
1310
|
} | {
|
|
1311
|
-
name: string;
|
|
1312
1311
|
type: "tool_use";
|
|
1312
|
+
name: string;
|
|
1313
1313
|
id: string;
|
|
1314
1314
|
input: Record<string, any>;
|
|
1315
1315
|
cache_control?: {
|
|
@@ -1326,8 +1326,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1326
1326
|
type: "image";
|
|
1327
1327
|
source: {
|
|
1328
1328
|
type: "base64";
|
|
1329
|
-
media_type: "image/jpeg";
|
|
1330
1329
|
data: string;
|
|
1330
|
+
media_type: "image/jpeg";
|
|
1331
1331
|
};
|
|
1332
1332
|
cache_control?: {
|
|
1333
1333
|
type: "ephemeral";
|
|
@@ -1374,8 +1374,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1374
1374
|
type: "ephemeral";
|
|
1375
1375
|
} | undefined;
|
|
1376
1376
|
} | {
|
|
1377
|
-
name: string;
|
|
1378
1377
|
type: "tool_use";
|
|
1378
|
+
name: string;
|
|
1379
1379
|
id: string;
|
|
1380
1380
|
input: Record<string, any>;
|
|
1381
1381
|
cache_control?: {
|
|
@@ -1392,8 +1392,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1392
1392
|
type: "image";
|
|
1393
1393
|
source: {
|
|
1394
1394
|
type: "base64";
|
|
1395
|
-
media_type: "image/jpeg";
|
|
1396
1395
|
data: string;
|
|
1396
|
+
media_type: "image/jpeg";
|
|
1397
1397
|
};
|
|
1398
1398
|
cache_control?: {
|
|
1399
1399
|
type: "ephemeral";
|
|
@@ -1440,8 +1440,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1440
1440
|
type: "ephemeral";
|
|
1441
1441
|
} | undefined;
|
|
1442
1442
|
} | {
|
|
1443
|
-
name: string;
|
|
1444
1443
|
type: "tool_use";
|
|
1444
|
+
name: string;
|
|
1445
1445
|
id: string;
|
|
1446
1446
|
input: Record<string, any>;
|
|
1447
1447
|
cache_control?: {
|
|
@@ -1458,8 +1458,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1458
1458
|
type: "image";
|
|
1459
1459
|
source: {
|
|
1460
1460
|
type: "base64";
|
|
1461
|
-
media_type: "image/jpeg";
|
|
1462
1461
|
data: string;
|
|
1462
|
+
media_type: "image/jpeg";
|
|
1463
1463
|
};
|
|
1464
1464
|
cache_control?: {
|
|
1465
1465
|
type: "ephemeral";
|
|
@@ -1475,12 +1475,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1475
1475
|
id: z.ZodString;
|
|
1476
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1477
1477
|
name: string;
|
|
1478
|
-
parameters: Record<string, string>;
|
|
1479
1478
|
id: string;
|
|
1479
|
+
parameters: Record<string, string>;
|
|
1480
1480
|
}, {
|
|
1481
1481
|
name: string;
|
|
1482
|
-
parameters: Record<string, string>;
|
|
1483
1482
|
id: string;
|
|
1483
|
+
parameters: Record<string, string>;
|
|
1484
1484
|
}>, "many">;
|
|
1485
1485
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1486
1486
|
name: z.ZodString;
|
|
@@ -1536,8 +1536,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1536
1536
|
type: "ephemeral";
|
|
1537
1537
|
} | undefined;
|
|
1538
1538
|
} | {
|
|
1539
|
-
name: string;
|
|
1540
1539
|
type: "tool_use";
|
|
1540
|
+
name: string;
|
|
1541
1541
|
id: string;
|
|
1542
1542
|
input: Record<string, any>;
|
|
1543
1543
|
cache_control?: {
|
|
@@ -1554,8 +1554,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1554
1554
|
type: "image";
|
|
1555
1555
|
source: {
|
|
1556
1556
|
type: "base64";
|
|
1557
|
-
media_type: "image/jpeg";
|
|
1558
1557
|
data: string;
|
|
1558
|
+
media_type: "image/jpeg";
|
|
1559
1559
|
};
|
|
1560
1560
|
cache_control?: {
|
|
1561
1561
|
type: "ephemeral";
|
|
@@ -1572,8 +1572,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1572
1572
|
}[];
|
|
1573
1573
|
toolCalls: {
|
|
1574
1574
|
name: string;
|
|
1575
|
-
parameters: Record<string, string>;
|
|
1576
1575
|
id: string;
|
|
1576
|
+
parameters: Record<string, string>;
|
|
1577
1577
|
}[];
|
|
1578
1578
|
}, {
|
|
1579
1579
|
type: "prompt-response";
|
|
@@ -1616,8 +1616,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1616
1616
|
type: "ephemeral";
|
|
1617
1617
|
} | undefined;
|
|
1618
1618
|
} | {
|
|
1619
|
-
name: string;
|
|
1620
1619
|
type: "tool_use";
|
|
1620
|
+
name: string;
|
|
1621
1621
|
id: string;
|
|
1622
1622
|
input: Record<string, any>;
|
|
1623
1623
|
cache_control?: {
|
|
@@ -1634,8 +1634,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1634
1634
|
type: "image";
|
|
1635
1635
|
source: {
|
|
1636
1636
|
type: "base64";
|
|
1637
|
-
media_type: "image/jpeg";
|
|
1638
1637
|
data: string;
|
|
1638
|
+
media_type: "image/jpeg";
|
|
1639
1639
|
};
|
|
1640
1640
|
cache_control?: {
|
|
1641
1641
|
type: "ephemeral";
|
|
@@ -1652,8 +1652,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1652
1652
|
}[];
|
|
1653
1653
|
toolCalls: {
|
|
1654
1654
|
name: string;
|
|
1655
|
-
parameters: Record<string, string>;
|
|
1656
1655
|
id: string;
|
|
1656
|
+
parameters: Record<string, string>;
|
|
1657
1657
|
}[];
|
|
1658
1658
|
}>;
|
|
1659
1659
|
export type PromptResponse = z.infer<typeof PromptResponseSchema>;
|
|
@@ -1713,7 +1713,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1713
1713
|
}, {
|
|
1714
1714
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
1715
1715
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
1716
|
-
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
1716
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>>;
|
|
1717
1717
|
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
1718
1718
|
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1719
1719
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1737,7 +1737,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1737
1737
|
resetFileVersions: boolean;
|
|
1738
1738
|
usage?: number | undefined;
|
|
1739
1739
|
remainingBalance?: number | undefined;
|
|
1740
|
-
balanceBreakdown?: Partial<Record<
|
|
1740
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
1741
1741
|
next_quota_reset?: Date | null | undefined;
|
|
1742
1742
|
autoTopupAdded?: number | undefined;
|
|
1743
1743
|
}, {
|
|
@@ -1761,7 +1761,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1761
1761
|
resetFileVersions: boolean;
|
|
1762
1762
|
usage?: number | undefined;
|
|
1763
1763
|
remainingBalance?: number | undefined;
|
|
1764
|
-
balanceBreakdown?: Partial<Record<
|
|
1764
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
1765
1765
|
next_quota_reset?: Date | null | undefined;
|
|
1766
1766
|
autoTopupAdded?: number | undefined;
|
|
1767
1767
|
}>, z.ZodObject<{
|
|
@@ -1918,16 +1918,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1918
1918
|
type: "ephemeral";
|
|
1919
1919
|
}>>;
|
|
1920
1920
|
}, "strip", z.ZodTypeAny, {
|
|
1921
|
-
name: string;
|
|
1922
1921
|
type: "tool_use";
|
|
1922
|
+
name: string;
|
|
1923
1923
|
id: string;
|
|
1924
1924
|
input: Record<string, any>;
|
|
1925
1925
|
cache_control?: {
|
|
1926
1926
|
type: "ephemeral";
|
|
1927
1927
|
} | undefined;
|
|
1928
1928
|
}, {
|
|
1929
|
-
name: string;
|
|
1930
1929
|
type: "tool_use";
|
|
1930
|
+
name: string;
|
|
1931
1931
|
id: string;
|
|
1932
1932
|
input: Record<string, any>;
|
|
1933
1933
|
cache_control?: {
|
|
@@ -1966,12 +1966,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1966
1966
|
data: z.ZodString;
|
|
1967
1967
|
}, "strip", z.ZodTypeAny, {
|
|
1968
1968
|
type: "base64";
|
|
1969
|
-
media_type: "image/jpeg";
|
|
1970
1969
|
data: string;
|
|
1970
|
+
media_type: "image/jpeg";
|
|
1971
1971
|
}, {
|
|
1972
1972
|
type: "base64";
|
|
1973
|
-
media_type: "image/jpeg";
|
|
1974
1973
|
data: string;
|
|
1974
|
+
media_type: "image/jpeg";
|
|
1975
1975
|
}>;
|
|
1976
1976
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1977
1977
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1984,8 +1984,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1984
1984
|
type: "image";
|
|
1985
1985
|
source: {
|
|
1986
1986
|
type: "base64";
|
|
1987
|
-
media_type: "image/jpeg";
|
|
1988
1987
|
data: string;
|
|
1988
|
+
media_type: "image/jpeg";
|
|
1989
1989
|
};
|
|
1990
1990
|
cache_control?: {
|
|
1991
1991
|
type: "ephemeral";
|
|
@@ -1994,8 +1994,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1994
1994
|
type: "image";
|
|
1995
1995
|
source: {
|
|
1996
1996
|
type: "base64";
|
|
1997
|
-
media_type: "image/jpeg";
|
|
1998
1997
|
data: string;
|
|
1998
|
+
media_type: "image/jpeg";
|
|
1999
1999
|
};
|
|
2000
2000
|
cache_control?: {
|
|
2001
2001
|
type: "ephemeral";
|
|
@@ -2009,8 +2009,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2009
2009
|
type: "ephemeral";
|
|
2010
2010
|
} | undefined;
|
|
2011
2011
|
} | {
|
|
2012
|
-
name: string;
|
|
2013
2012
|
type: "tool_use";
|
|
2013
|
+
name: string;
|
|
2014
2014
|
id: string;
|
|
2015
2015
|
input: Record<string, any>;
|
|
2016
2016
|
cache_control?: {
|
|
@@ -2027,8 +2027,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2027
2027
|
type: "image";
|
|
2028
2028
|
source: {
|
|
2029
2029
|
type: "base64";
|
|
2030
|
-
media_type: "image/jpeg";
|
|
2031
2030
|
data: string;
|
|
2031
|
+
media_type: "image/jpeg";
|
|
2032
2032
|
};
|
|
2033
2033
|
cache_control?: {
|
|
2034
2034
|
type: "ephemeral";
|
|
@@ -2043,8 +2043,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2043
2043
|
type: "ephemeral";
|
|
2044
2044
|
} | undefined;
|
|
2045
2045
|
} | {
|
|
2046
|
-
name: string;
|
|
2047
2046
|
type: "tool_use";
|
|
2047
|
+
name: string;
|
|
2048
2048
|
id: string;
|
|
2049
2049
|
input: Record<string, any>;
|
|
2050
2050
|
cache_control?: {
|
|
@@ -2061,8 +2061,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2061
2061
|
type: "image";
|
|
2062
2062
|
source: {
|
|
2063
2063
|
type: "base64";
|
|
2064
|
-
media_type: "image/jpeg";
|
|
2065
2064
|
data: string;
|
|
2065
|
+
media_type: "image/jpeg";
|
|
2066
2066
|
};
|
|
2067
2067
|
cache_control?: {
|
|
2068
2068
|
type: "ephemeral";
|
|
@@ -2109,8 +2109,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2109
2109
|
type: "ephemeral";
|
|
2110
2110
|
} | undefined;
|
|
2111
2111
|
} | {
|
|
2112
|
-
name: string;
|
|
2113
2112
|
type: "tool_use";
|
|
2113
|
+
name: string;
|
|
2114
2114
|
id: string;
|
|
2115
2115
|
input: Record<string, any>;
|
|
2116
2116
|
cache_control?: {
|
|
@@ -2127,8 +2127,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2127
2127
|
type: "image";
|
|
2128
2128
|
source: {
|
|
2129
2129
|
type: "base64";
|
|
2130
|
-
media_type: "image/jpeg";
|
|
2131
2130
|
data: string;
|
|
2131
|
+
media_type: "image/jpeg";
|
|
2132
2132
|
};
|
|
2133
2133
|
cache_control?: {
|
|
2134
2134
|
type: "ephemeral";
|
|
@@ -2175,8 +2175,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2175
2175
|
type: "ephemeral";
|
|
2176
2176
|
} | undefined;
|
|
2177
2177
|
} | {
|
|
2178
|
-
name: string;
|
|
2179
2178
|
type: "tool_use";
|
|
2179
|
+
name: string;
|
|
2180
2180
|
id: string;
|
|
2181
2181
|
input: Record<string, any>;
|
|
2182
2182
|
cache_control?: {
|
|
@@ -2193,8 +2193,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2193
2193
|
type: "image";
|
|
2194
2194
|
source: {
|
|
2195
2195
|
type: "base64";
|
|
2196
|
-
media_type: "image/jpeg";
|
|
2197
2196
|
data: string;
|
|
2197
|
+
media_type: "image/jpeg";
|
|
2198
2198
|
};
|
|
2199
2199
|
cache_control?: {
|
|
2200
2200
|
type: "ephemeral";
|
|
@@ -2210,12 +2210,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2210
2210
|
id: z.ZodString;
|
|
2211
2211
|
}, "strip", z.ZodTypeAny, {
|
|
2212
2212
|
name: string;
|
|
2213
|
-
parameters: Record<string, string>;
|
|
2214
2213
|
id: string;
|
|
2214
|
+
parameters: Record<string, string>;
|
|
2215
2215
|
}, {
|
|
2216
2216
|
name: string;
|
|
2217
|
-
parameters: Record<string, string>;
|
|
2218
2217
|
id: string;
|
|
2218
|
+
parameters: Record<string, string>;
|
|
2219
2219
|
}>, "many">;
|
|
2220
2220
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2221
2221
|
name: z.ZodString;
|
|
@@ -2271,8 +2271,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2271
2271
|
type: "ephemeral";
|
|
2272
2272
|
} | undefined;
|
|
2273
2273
|
} | {
|
|
2274
|
-
name: string;
|
|
2275
2274
|
type: "tool_use";
|
|
2275
|
+
name: string;
|
|
2276
2276
|
id: string;
|
|
2277
2277
|
input: Record<string, any>;
|
|
2278
2278
|
cache_control?: {
|
|
@@ -2289,8 +2289,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2289
2289
|
type: "image";
|
|
2290
2290
|
source: {
|
|
2291
2291
|
type: "base64";
|
|
2292
|
-
media_type: "image/jpeg";
|
|
2293
2292
|
data: string;
|
|
2293
|
+
media_type: "image/jpeg";
|
|
2294
2294
|
};
|
|
2295
2295
|
cache_control?: {
|
|
2296
2296
|
type: "ephemeral";
|
|
@@ -2307,8 +2307,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2307
2307
|
}[];
|
|
2308
2308
|
toolCalls: {
|
|
2309
2309
|
name: string;
|
|
2310
|
-
parameters: Record<string, string>;
|
|
2311
2310
|
id: string;
|
|
2311
|
+
parameters: Record<string, string>;
|
|
2312
2312
|
}[];
|
|
2313
2313
|
}, {
|
|
2314
2314
|
type: "prompt-response";
|
|
@@ -2351,8 +2351,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2351
2351
|
type: "ephemeral";
|
|
2352
2352
|
} | undefined;
|
|
2353
2353
|
} | {
|
|
2354
|
-
name: string;
|
|
2355
2354
|
type: "tool_use";
|
|
2355
|
+
name: string;
|
|
2356
2356
|
id: string;
|
|
2357
2357
|
input: Record<string, any>;
|
|
2358
2358
|
cache_control?: {
|
|
@@ -2369,8 +2369,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2369
2369
|
type: "image";
|
|
2370
2370
|
source: {
|
|
2371
2371
|
type: "base64";
|
|
2372
|
-
media_type: "image/jpeg";
|
|
2373
2372
|
data: string;
|
|
2373
|
+
media_type: "image/jpeg";
|
|
2374
2374
|
};
|
|
2375
2375
|
cache_control?: {
|
|
2376
2376
|
type: "ephemeral";
|
|
@@ -2387,8 +2387,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2387
2387
|
}[];
|
|
2388
2388
|
toolCalls: {
|
|
2389
2389
|
name: string;
|
|
2390
|
-
parameters: Record<string, string>;
|
|
2391
2390
|
id: string;
|
|
2391
|
+
parameters: Record<string, string>;
|
|
2392
2392
|
}[];
|
|
2393
2393
|
}>, z.ZodObject<{
|
|
2394
2394
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -2534,7 +2534,7 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2534
2534
|
type: z.ZodLiteral<"usage-response">;
|
|
2535
2535
|
usage: z.ZodNumber;
|
|
2536
2536
|
remainingBalance: z.ZodNumber;
|
|
2537
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
2537
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
2538
2538
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
2539
2539
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2540
2540
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
@@ -2542,20 +2542,20 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2542
2542
|
usage: number;
|
|
2543
2543
|
remainingBalance: number;
|
|
2544
2544
|
next_quota_reset: Date | null;
|
|
2545
|
-
balanceBreakdown?: Partial<Record<
|
|
2545
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2546
2546
|
autoTopupAdded?: number | undefined;
|
|
2547
2547
|
}, {
|
|
2548
2548
|
type: "init-response";
|
|
2549
2549
|
usage: number;
|
|
2550
2550
|
remainingBalance: number;
|
|
2551
2551
|
next_quota_reset: Date | null;
|
|
2552
|
-
balanceBreakdown?: Partial<Record<
|
|
2552
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2553
2553
|
autoTopupAdded?: number | undefined;
|
|
2554
2554
|
}>, z.ZodObject<{
|
|
2555
2555
|
type: z.ZodLiteral<"usage-response">;
|
|
2556
2556
|
usage: z.ZodNumber;
|
|
2557
2557
|
remainingBalance: z.ZodNumber;
|
|
2558
|
-
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
2558
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<["free", ...("free" | "referral" | "purchase" | "admin")[]]>, z.ZodNumber>>;
|
|
2559
2559
|
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
2560
2560
|
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
2561
2561
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2563,14 +2563,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2563
2563
|
usage: number;
|
|
2564
2564
|
remainingBalance: number;
|
|
2565
2565
|
next_quota_reset: Date | null;
|
|
2566
|
-
balanceBreakdown?: Partial<Record<
|
|
2566
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2567
2567
|
autoTopupAdded?: number | undefined;
|
|
2568
2568
|
}, {
|
|
2569
2569
|
type: "usage-response";
|
|
2570
2570
|
usage: number;
|
|
2571
2571
|
remainingBalance: number;
|
|
2572
2572
|
next_quota_reset: Date | null;
|
|
2573
|
-
balanceBreakdown?: Partial<Record<
|
|
2573
|
+
balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin", number>> | undefined;
|
|
2574
2574
|
autoTopupAdded?: number | undefined;
|
|
2575
2575
|
}>, z.ZodObject<{
|
|
2576
2576
|
type: z.ZodLiteral<"message-cost-response">;
|
|
@@ -2592,13 +2592,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2592
2592
|
}, "strip", z.ZodTypeAny, {
|
|
2593
2593
|
message: string;
|
|
2594
2594
|
type: "action-error";
|
|
2595
|
-
remainingBalance?: number | undefined;
|
|
2596
2595
|
error?: string | undefined;
|
|
2596
|
+
remainingBalance?: number | undefined;
|
|
2597
2597
|
}, {
|
|
2598
2598
|
message: string;
|
|
2599
2599
|
type: "action-error";
|
|
2600
|
-
remainingBalance?: number | undefined;
|
|
2601
2600
|
error?: string | undefined;
|
|
2601
|
+
remainingBalance?: number | undefined;
|
|
2602
2602
|
}>, z.ZodObject<{
|
|
2603
2603
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2604
2604
|
commitMessage: z.ZodString;
|