codecane 1.0.251 → 1.0.252
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/common/actions.d.ts +32 -32
- package/dist/common/browser-actions.d.ts +260 -260
- package/dist/common/db/schema.d.ts +1 -1
- package/dist/common/types/agent-state.d.ts +24 -24
- package/dist/common/types/message.d.ts +22 -22
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/websockets/websocket-schema.d.ts +68 -68
- package/package.json +1 -1
- package/dist/common/actions.d.ts.map +0 -1
- package/dist/common/analytics/client.d.ts +0 -5
- package/dist/common/analytics/client.js +0 -65
- package/dist/common/analytics/client.js.map +0 -1
- package/dist/common/analytics/events.d.ts +0 -7
- package/dist/common/analytics/events.js +0 -14
- package/dist/common/analytics/events.js.map +0 -1
- package/dist/common/api-keys/constants.d.ts.map +0 -1
- package/dist/common/api-keys/crypto.d.ts.map +0 -1
- package/dist/common/bigquery/client.d.ts.map +0 -1
- package/dist/common/bigquery/schema.d.ts.map +0 -1
- package/dist/common/billing/auto-topup.d.ts +0 -8
- package/dist/common/billing/auto-topup.d.ts.map +0 -1
- package/dist/common/billing/auto-topup.js +0 -192
- package/dist/common/billing/auto-topup.js.map +0 -1
- package/dist/common/billing/balance-calculator.d.ts +0 -57
- package/dist/common/billing/balance-calculator.d.ts.map +0 -1
- package/dist/common/billing/balance-calculator.js +0 -218
- package/dist/common/billing/balance-calculator.js.map +0 -1
- package/dist/common/billing/conversion.d.ts +0 -9
- package/dist/common/billing/conversion.d.ts.map +0 -1
- package/dist/common/billing/conversion.js +0 -20
- package/dist/common/billing/conversion.js.map +0 -1
- package/dist/common/billing/credit-conversion.d.ts +0 -24
- package/dist/common/billing/credit-conversion.d.ts.map +0 -1
- package/dist/common/billing/credit-conversion.js +0 -48
- package/dist/common/billing/credit-conversion.js.map +0 -1
- package/dist/common/billing/grant-credits.d.ts +0 -43
- package/dist/common/billing/grant-credits.d.ts.map +0 -1
- package/dist/common/billing/grant-credits.js +0 -266
- package/dist/common/billing/grant-credits.js.map +0 -1
- package/dist/common/billing/plans.d.ts +0 -13
- package/dist/common/billing/plans.d.ts.map +0 -1
- package/dist/common/billing/plans.js +0 -44
- package/dist/common/billing/plans.js.map +0 -1
- package/dist/common/billing/utils.d.ts +0 -8
- package/dist/common/billing/utils.js +0 -14
- package/dist/common/billing/utils.js.map +0 -1
- package/dist/common/browser-actions.d.ts.map +0 -1
- package/dist/common/constants/analytics-events.d.ts.map +0 -1
- package/dist/common/constants/grant-priorities.d.ts.map +0 -1
- package/dist/common/constants/tools.d.ts.map +0 -1
- package/dist/common/constants.d.ts.map +0 -1
- package/dist/common/db/drizzle.config.d.mts +0 -2
- package/dist/common/db/drizzle.config.d.ts.map +0 -1
- package/dist/common/db/drizzle.config.mjs +0 -12
- package/dist/common/db/drizzle.config.mjs.map +0 -1
- package/dist/common/db/env.d.mts.map +0 -1
- package/dist/common/db/index.d.mts +0 -5
- package/dist/common/db/index.d.ts.map +0 -1
- package/dist/common/db/index.mjs +0 -10
- package/dist/common/db/index.mjs.map +0 -1
- package/dist/common/db/schema.d.ts.map +0 -1
- package/dist/common/db/transaction.d.ts.map +0 -1
- package/dist/common/env.d.mts.map +0 -1
- package/dist/common/env.d.ts +0 -9
- package/dist/common/env.js +0 -30
- package/dist/common/env.js.map +0 -1
- package/dist/common/json-config/__tests__/stringify-schema.test.d.ts.map +0 -1
- package/dist/common/json-config/constants.d.ts.map +0 -1
- package/dist/common/json-config/parser.d.ts.map +0 -1
- package/dist/common/json-config/stringify-schema.d.ts.map +0 -1
- package/dist/common/project-file-tree.d.ts.map +0 -1
- package/dist/common/types/agent-state.d.ts.map +0 -1
- package/dist/common/types/grant.d.ts.map +0 -1
- package/dist/common/types/message.d.ts.map +0 -1
- package/dist/common/types/plan.d.ts +0 -24
- package/dist/common/types/plan.d.ts.map +0 -1
- package/dist/common/types/plan.js +0 -3
- package/dist/common/types/plan.js.map +0 -1
- package/dist/common/types/referral.d.ts.map +0 -1
- package/dist/common/types/tools.d.ts.map +0 -1
- package/dist/common/types/usage.d.ts.map +0 -1
- package/dist/common/util/__tests__/messages.test.d.ts.map +0 -1
- package/dist/common/util/__tests__/saxy.test.d.ts.map +0 -1
- package/dist/common/util/__tests__/string.test.d.ts.map +0 -1
- package/dist/common/util/array.d.ts.map +0 -1
- package/dist/common/util/changes.d.ts.map +0 -1
- package/dist/common/util/credentials.d.ts.map +0 -1
- package/dist/common/util/dates.d.ts.map +0 -1
- package/dist/common/util/file.d.ts.map +0 -1
- package/dist/common/util/git.d.ts.map +0 -1
- package/dist/common/util/logger.d.ts.map +0 -1
- package/dist/common/util/lru-cache.d.ts.map +0 -1
- package/dist/common/util/messages.d.ts.map +0 -1
- package/dist/common/util/min-heap.d.ts.map +0 -1
- package/dist/common/util/object.d.ts.map +0 -1
- package/dist/common/util/patch.d.ts.map +0 -1
- package/dist/common/util/promise.d.ts.map +0 -1
- package/dist/common/util/referral.d.ts.map +0 -1
- package/dist/common/util/saxy.d.ts.map +0 -1
- package/dist/common/util/server/referral.d.ts +0 -14
- package/dist/common/util/server/referral.d.ts.map +0 -1
- package/dist/common/util/server/referral.js +0 -85
- package/dist/common/util/server/referral.js.map +0 -1
- package/dist/common/util/string.d.ts.map +0 -1
- package/dist/common/util/stripe.d.ts.map +0 -1
- package/dist/common/util/sync-failure.d.ts.map +0 -1
- package/dist/common/websockets/websocket-client.d.ts.map +0 -1
- package/dist/common/websockets/websocket-schema.d.ts.map +0 -1
|
@@ -1385,7 +1385,7 @@ export declare const encryptedApiKeys: import("drizzle-orm/pg-core").PgTableWith
|
|
|
1385
1385
|
tableName: "encrypted_api_keys";
|
|
1386
1386
|
dataType: "string";
|
|
1387
1387
|
columnType: "PgEnumColumn";
|
|
1388
|
-
data: "
|
|
1388
|
+
data: "gemini" | "anthropic" | "openai";
|
|
1389
1389
|
driverParam: string;
|
|
1390
1390
|
notNull: true;
|
|
1391
1391
|
hasDefault: false;
|
|
@@ -5,12 +5,12 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
5
5
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
6
6
|
id: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
id: string;
|
|
9
8
|
name: string;
|
|
9
|
+
id: string;
|
|
10
10
|
parameters: Record<string, string>;
|
|
11
11
|
}, {
|
|
12
|
-
id: string;
|
|
13
12
|
name: string;
|
|
13
|
+
id: string;
|
|
14
14
|
parameters: Record<string, string>;
|
|
15
15
|
}>;
|
|
16
16
|
export type ToolCall = z.infer<typeof ToolCallSchema>;
|
|
@@ -19,12 +19,12 @@ export declare const ToolResultSchema: z.ZodObject<{
|
|
|
19
19
|
result: z.ZodString;
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
id: string;
|
|
23
22
|
name: string;
|
|
23
|
+
id: string;
|
|
24
24
|
result: string;
|
|
25
25
|
}, {
|
|
26
|
-
id: string;
|
|
27
26
|
name: string;
|
|
27
|
+
id: string;
|
|
28
28
|
result: string;
|
|
29
29
|
}>;
|
|
30
30
|
export type ToolResult = z.infer<typeof ToolResultSchema>;
|
|
@@ -176,17 +176,17 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
176
176
|
type: "ephemeral";
|
|
177
177
|
}>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
id: string;
|
|
180
|
-
name: string;
|
|
181
179
|
type: "tool_use";
|
|
180
|
+
name: string;
|
|
181
|
+
id: string;
|
|
182
182
|
input: Record<string, any>;
|
|
183
183
|
cache_control?: {
|
|
184
184
|
type: "ephemeral";
|
|
185
185
|
} | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
id: string;
|
|
188
|
-
name: string;
|
|
189
187
|
type: "tool_use";
|
|
188
|
+
name: string;
|
|
189
|
+
id: string;
|
|
190
190
|
input: Record<string, any>;
|
|
191
191
|
cache_control?: {
|
|
192
192
|
type: "ephemeral";
|
|
@@ -223,13 +223,13 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
223
223
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
224
224
|
data: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
data: string;
|
|
227
226
|
type: "base64";
|
|
228
227
|
media_type: "image/jpeg";
|
|
229
|
-
}, {
|
|
230
228
|
data: string;
|
|
229
|
+
}, {
|
|
231
230
|
type: "base64";
|
|
232
231
|
media_type: "image/jpeg";
|
|
232
|
+
data: string;
|
|
233
233
|
}>;
|
|
234
234
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
235
235
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -241,9 +241,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
241
241
|
}, "strip", z.ZodTypeAny, {
|
|
242
242
|
type: "image";
|
|
243
243
|
source: {
|
|
244
|
-
data: string;
|
|
245
244
|
type: "base64";
|
|
246
245
|
media_type: "image/jpeg";
|
|
246
|
+
data: string;
|
|
247
247
|
};
|
|
248
248
|
cache_control?: {
|
|
249
249
|
type: "ephemeral";
|
|
@@ -251,9 +251,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
251
251
|
}, {
|
|
252
252
|
type: "image";
|
|
253
253
|
source: {
|
|
254
|
-
data: string;
|
|
255
254
|
type: "base64";
|
|
256
255
|
media_type: "image/jpeg";
|
|
256
|
+
data: string;
|
|
257
257
|
};
|
|
258
258
|
cache_control?: {
|
|
259
259
|
type: "ephemeral";
|
|
@@ -267,9 +267,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
267
267
|
type: "ephemeral";
|
|
268
268
|
} | undefined;
|
|
269
269
|
} | {
|
|
270
|
-
id: string;
|
|
271
|
-
name: string;
|
|
272
270
|
type: "tool_use";
|
|
271
|
+
name: string;
|
|
272
|
+
id: string;
|
|
273
273
|
input: Record<string, any>;
|
|
274
274
|
cache_control?: {
|
|
275
275
|
type: "ephemeral";
|
|
@@ -284,9 +284,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
284
284
|
} | {
|
|
285
285
|
type: "image";
|
|
286
286
|
source: {
|
|
287
|
-
data: string;
|
|
288
287
|
type: "base64";
|
|
289
288
|
media_type: "image/jpeg";
|
|
289
|
+
data: string;
|
|
290
290
|
};
|
|
291
291
|
cache_control?: {
|
|
292
292
|
type: "ephemeral";
|
|
@@ -301,9 +301,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
301
301
|
type: "ephemeral";
|
|
302
302
|
} | undefined;
|
|
303
303
|
} | {
|
|
304
|
-
id: string;
|
|
305
|
-
name: string;
|
|
306
304
|
type: "tool_use";
|
|
305
|
+
name: string;
|
|
306
|
+
id: string;
|
|
307
307
|
input: Record<string, any>;
|
|
308
308
|
cache_control?: {
|
|
309
309
|
type: "ephemeral";
|
|
@@ -318,9 +318,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
318
318
|
} | {
|
|
319
319
|
type: "image";
|
|
320
320
|
source: {
|
|
321
|
-
data: string;
|
|
322
321
|
type: "base64";
|
|
323
322
|
media_type: "image/jpeg";
|
|
323
|
+
data: string;
|
|
324
324
|
};
|
|
325
325
|
cache_control?: {
|
|
326
326
|
type: "ephemeral";
|
|
@@ -366,9 +366,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
366
366
|
type: "ephemeral";
|
|
367
367
|
} | undefined;
|
|
368
368
|
} | {
|
|
369
|
-
id: string;
|
|
370
|
-
name: string;
|
|
371
369
|
type: "tool_use";
|
|
370
|
+
name: string;
|
|
371
|
+
id: string;
|
|
372
372
|
input: Record<string, any>;
|
|
373
373
|
cache_control?: {
|
|
374
374
|
type: "ephemeral";
|
|
@@ -383,9 +383,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
383
383
|
} | {
|
|
384
384
|
type: "image";
|
|
385
385
|
source: {
|
|
386
|
-
data: string;
|
|
387
386
|
type: "base64";
|
|
388
387
|
media_type: "image/jpeg";
|
|
388
|
+
data: string;
|
|
389
389
|
};
|
|
390
390
|
cache_control?: {
|
|
391
391
|
type: "ephemeral";
|
|
@@ -431,9 +431,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
431
431
|
type: "ephemeral";
|
|
432
432
|
} | undefined;
|
|
433
433
|
} | {
|
|
434
|
-
id: string;
|
|
435
|
-
name: string;
|
|
436
434
|
type: "tool_use";
|
|
435
|
+
name: string;
|
|
436
|
+
id: string;
|
|
437
437
|
input: Record<string, any>;
|
|
438
438
|
cache_control?: {
|
|
439
439
|
type: "ephemeral";
|
|
@@ -448,9 +448,9 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
448
448
|
} | {
|
|
449
449
|
type: "image";
|
|
450
450
|
source: {
|
|
451
|
-
data: string;
|
|
452
451
|
type: "base64";
|
|
453
452
|
media_type: "image/jpeg";
|
|
453
|
+
data: string;
|
|
454
454
|
};
|
|
455
455
|
cache_control?: {
|
|
456
456
|
type: "ephemeral";
|
|
@@ -34,17 +34,17 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
34
34
|
type: "ephemeral";
|
|
35
35
|
}>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
37
|
type: "tool_use";
|
|
38
|
+
name: string;
|
|
39
|
+
id: string;
|
|
40
40
|
input: Record<string, any>;
|
|
41
41
|
cache_control?: {
|
|
42
42
|
type: "ephemeral";
|
|
43
43
|
} | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
id: string;
|
|
46
|
-
name: string;
|
|
47
45
|
type: "tool_use";
|
|
46
|
+
name: string;
|
|
47
|
+
id: string;
|
|
48
48
|
input: Record<string, any>;
|
|
49
49
|
cache_control?: {
|
|
50
50
|
type: "ephemeral";
|
|
@@ -81,13 +81,13 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
81
81
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
82
82
|
data: z.ZodString;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
data: string;
|
|
85
84
|
type: "base64";
|
|
86
85
|
media_type: "image/jpeg";
|
|
87
|
-
}, {
|
|
88
86
|
data: string;
|
|
87
|
+
}, {
|
|
89
88
|
type: "base64";
|
|
90
89
|
media_type: "image/jpeg";
|
|
90
|
+
data: string;
|
|
91
91
|
}>;
|
|
92
92
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
93
93
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -99,9 +99,9 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
type: "image";
|
|
101
101
|
source: {
|
|
102
|
-
data: string;
|
|
103
102
|
type: "base64";
|
|
104
103
|
media_type: "image/jpeg";
|
|
104
|
+
data: string;
|
|
105
105
|
};
|
|
106
106
|
cache_control?: {
|
|
107
107
|
type: "ephemeral";
|
|
@@ -109,9 +109,9 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
109
109
|
}, {
|
|
110
110
|
type: "image";
|
|
111
111
|
source: {
|
|
112
|
-
data: string;
|
|
113
112
|
type: "base64";
|
|
114
113
|
media_type: "image/jpeg";
|
|
114
|
+
data: string;
|
|
115
115
|
};
|
|
116
116
|
cache_control?: {
|
|
117
117
|
type: "ephemeral";
|
|
@@ -154,17 +154,17 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
154
154
|
type: "ephemeral";
|
|
155
155
|
}>>;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
id: string;
|
|
158
|
-
name: string;
|
|
159
157
|
type: "tool_use";
|
|
158
|
+
name: string;
|
|
159
|
+
id: string;
|
|
160
160
|
input: Record<string, any>;
|
|
161
161
|
cache_control?: {
|
|
162
162
|
type: "ephemeral";
|
|
163
163
|
} | undefined;
|
|
164
164
|
}, {
|
|
165
|
-
id: string;
|
|
166
|
-
name: string;
|
|
167
165
|
type: "tool_use";
|
|
166
|
+
name: string;
|
|
167
|
+
id: string;
|
|
168
168
|
input: Record<string, any>;
|
|
169
169
|
cache_control?: {
|
|
170
170
|
type: "ephemeral";
|
|
@@ -201,13 +201,13 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
201
201
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
202
202
|
data: z.ZodString;
|
|
203
203
|
}, "strip", z.ZodTypeAny, {
|
|
204
|
-
data: string;
|
|
205
204
|
type: "base64";
|
|
206
205
|
media_type: "image/jpeg";
|
|
207
|
-
}, {
|
|
208
206
|
data: string;
|
|
207
|
+
}, {
|
|
209
208
|
type: "base64";
|
|
210
209
|
media_type: "image/jpeg";
|
|
210
|
+
data: string;
|
|
211
211
|
}>;
|
|
212
212
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
213
213
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -219,9 +219,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
219
219
|
}, "strip", z.ZodTypeAny, {
|
|
220
220
|
type: "image";
|
|
221
221
|
source: {
|
|
222
|
-
data: string;
|
|
223
222
|
type: "base64";
|
|
224
223
|
media_type: "image/jpeg";
|
|
224
|
+
data: string;
|
|
225
225
|
};
|
|
226
226
|
cache_control?: {
|
|
227
227
|
type: "ephemeral";
|
|
@@ -229,9 +229,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
229
229
|
}, {
|
|
230
230
|
type: "image";
|
|
231
231
|
source: {
|
|
232
|
-
data: string;
|
|
233
232
|
type: "base64";
|
|
234
233
|
media_type: "image/jpeg";
|
|
234
|
+
data: string;
|
|
235
235
|
};
|
|
236
236
|
cache_control?: {
|
|
237
237
|
type: "ephemeral";
|
|
@@ -245,9 +245,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
245
245
|
type: "ephemeral";
|
|
246
246
|
} | undefined;
|
|
247
247
|
} | {
|
|
248
|
-
id: string;
|
|
249
|
-
name: string;
|
|
250
248
|
type: "tool_use";
|
|
249
|
+
name: string;
|
|
250
|
+
id: string;
|
|
251
251
|
input: Record<string, any>;
|
|
252
252
|
cache_control?: {
|
|
253
253
|
type: "ephemeral";
|
|
@@ -262,9 +262,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
262
262
|
} | {
|
|
263
263
|
type: "image";
|
|
264
264
|
source: {
|
|
265
|
-
data: string;
|
|
266
265
|
type: "base64";
|
|
267
266
|
media_type: "image/jpeg";
|
|
267
|
+
data: string;
|
|
268
268
|
};
|
|
269
269
|
cache_control?: {
|
|
270
270
|
type: "ephemeral";
|
|
@@ -279,9 +279,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
279
279
|
type: "ephemeral";
|
|
280
280
|
} | undefined;
|
|
281
281
|
} | {
|
|
282
|
-
id: string;
|
|
283
|
-
name: string;
|
|
284
282
|
type: "tool_use";
|
|
283
|
+
name: string;
|
|
284
|
+
id: string;
|
|
285
285
|
input: Record<string, any>;
|
|
286
286
|
cache_control?: {
|
|
287
287
|
type: "ephemeral";
|
|
@@ -296,9 +296,9 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
296
296
|
} | {
|
|
297
297
|
type: "image";
|
|
298
298
|
source: {
|
|
299
|
-
data: string;
|
|
300
299
|
type: "base64";
|
|
301
300
|
media_type: "image/jpeg";
|
|
301
|
+
data: string;
|
|
302
302
|
};
|
|
303
303
|
cache_control?: {
|
|
304
304
|
type: "ephemeral";
|
|
@@ -19,22 +19,22 @@ export declare const usageDataSchema: z.ZodObject<{
|
|
|
19
19
|
}>;
|
|
20
20
|
nextQuotaReset: z.ZodNullable<z.ZodDate>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
usageThisCycle: number;
|
|
23
22
|
balance: {
|
|
24
23
|
totalRemaining: number;
|
|
25
24
|
totalDebt: number;
|
|
26
25
|
netBalance: number;
|
|
27
26
|
breakdown?: Record<string, number> | undefined;
|
|
28
27
|
};
|
|
28
|
+
usageThisCycle: number;
|
|
29
29
|
nextQuotaReset: Date | null;
|
|
30
30
|
}, {
|
|
31
|
-
usageThisCycle: number;
|
|
32
31
|
balance: {
|
|
33
32
|
totalRemaining: number;
|
|
34
33
|
totalDebt: number;
|
|
35
34
|
netBalance: number;
|
|
36
35
|
breakdown?: Record<string, number> | undefined;
|
|
37
36
|
};
|
|
37
|
+
usageThisCycle: number;
|
|
38
38
|
nextQuotaReset: Date | null;
|
|
39
39
|
}>;
|
|
40
40
|
export type UsageData = z.infer<typeof usageDataSchema>;
|
|
@@ -7,16 +7,16 @@ export declare const userSchema: z.ZodObject<{
|
|
|
7
7
|
fingerprintId: z.ZodString;
|
|
8
8
|
fingerprintHash: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
id: string;
|
|
11
10
|
name: string | null;
|
|
12
11
|
email: string;
|
|
12
|
+
id: string;
|
|
13
13
|
fingerprintId: string;
|
|
14
14
|
authToken: string;
|
|
15
15
|
fingerprintHash: string;
|
|
16
16
|
}, {
|
|
17
|
-
id: string;
|
|
18
17
|
name: string | null;
|
|
19
18
|
email: string;
|
|
19
|
+
id: string;
|
|
20
20
|
fingerprintId: string;
|
|
21
21
|
authToken: string;
|
|
22
22
|
fingerprintHash: string;
|