blob: 563a92437d551a466e35d8ec184e29c85d651afa (
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
29
30
31
32
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type Account =
| ({ type: "offline" } & OfflineAccount)
| ({ type: "microsoft" } & MicrosoftAccount);
export type DeviceCodeResponse = {
userCode: string;
deviceCode: string;
verificationUri: string;
expiresIn: bigint;
interval: bigint;
message: string | null;
};
export type MicrosoftAccount = {
username: string;
uuid: string;
accessToken: string;
refreshToken: string | null;
expiresAt: bigint;
};
export type MinecraftProfile = { id: string; name: string };
export type OfflineAccount = { username: string; uuid: string };
export type TokenResponse = {
access_token: string;
refresh_token: string | null;
expires_in: bigint;
};
|