@link-assistant/agent 0.26.3 → 0.26.4
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/package.json +1 -1
- package/src/auth/claude-oauth.ts +11 -2
package/package.json
CHANGED
package/src/auth/claude-oauth.ts
CHANGED
|
@@ -57,8 +57,17 @@ export namespace ClaudeOAuth {
|
|
|
57
57
|
refreshToken: z.string(),
|
|
58
58
|
expiresAt: z.number(),
|
|
59
59
|
scopes: z.array(z.string()).optional(),
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
// Claude Code writes null when subscription metadata is unavailable.
|
|
61
|
+
// Normalize that JSON representation to the same value as an omitted
|
|
62
|
+
// optional field while keeping every other non-string value invalid.
|
|
63
|
+
subscriptionType: z
|
|
64
|
+
.string()
|
|
65
|
+
.nullish()
|
|
66
|
+
.transform((value) => value ?? undefined),
|
|
67
|
+
rateLimitTier: z
|
|
68
|
+
.string()
|
|
69
|
+
.nullish()
|
|
70
|
+
.transform((value) => value ?? undefined),
|
|
62
71
|
})
|
|
63
72
|
.optional(),
|
|
64
73
|
});
|