We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d94dea2 + 0ebf80e commit 4bce388Copy full SHA for 4bce388
1 file changed
lib/usage.ts
@@ -13,7 +13,7 @@ const tokensSchema = z.object({
13
const detailSchema = z.object({
14
timestamp: z.string().optional(),
15
source: z.string().optional(),
16
- // auth_index 可能是字符串或数字,统一保留原值并在后续转为字符串
+ // 保留 auth_index 原值(字符串或数字),避免历史/异构格式被丢弃
17
auth_index: z.union([z.string(), z.number()]).optional(),
18
tokens: tokensSchema.optional(),
19
failed: z.boolean().optional(),
0 commit comments