blob: 168d1383ae7d660be6713e8b808e40624b70749a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { OfflineAccount } from "./auth";
export type AccountStorage = { file_path: string };
/**
* Stored account data for persistence
*/
export type AccountStore = {
accounts: Array<StoredAccount>;
active_account_id: string | null;
};
export type StoredAccount =
| ({ type: "Offline" } & OfflineAccount)
| ({ type: "Microsoft" } & StoredMicrosoftAccount);
/**
* Microsoft account with refresh token for persistence
*/
export type StoredMicrosoftAccount = {
username: string;
uuid: string;
access_token: string;
refresh_token: string | null;
ms_refresh_token: string | null;
expires_at: bigint;
};
|