diff options
Diffstat (limited to 'src/state/persisted/schema.ts')
-rw-r--r-- | src/state/persisted/schema.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/state/persisted/schema.ts b/src/state/persisted/schema.ts index 7d579d55d..b81cf5962 100644 --- a/src/state/persisted/schema.ts +++ b/src/state/persisted/schema.ts @@ -18,9 +18,12 @@ const accountSchema = z.object({ refreshJwt: z.string().optional(), // optional because it can expire accessJwt: z.string().optional(), // optional because it can expire signupQueued: z.boolean().optional(), - status: z - .enum(['active', 'takendown', 'suspended', 'deactivated']) - .optional(), + active: z.boolean().optional(), // optional for backwards compat + /** + * Known values: takendown, suspended, deactivated + * @see https://github.com/bluesky-social/atproto/blob/5441fbde9ed3b22463e91481ec80cb095643e141/lexicons/com/atproto/server/getSession.json + */ + status: z.string().optional(), pdsUrl: z.string().optional(), }) export type PersistedAccount = z.infer<typeof accountSchema> |