lemmy-js-client 0.17.2-rc.1 → 0.17.2-rc.3
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.
@@ -3,6 +3,10 @@ import { CommentReplyView, CommentView, CommunityModeratorView, PersonMentionVie
|
|
3
3
|
export interface Login {
|
4
4
|
username_or_email: string;
|
5
5
|
password: string;
|
6
|
+
/**
|
7
|
+
* If your user has 2fa set up, they must provide the token, otherwise you will receive the error "missing_totp_token"
|
8
|
+
*/
|
9
|
+
totp_2fa_token?: string;
|
6
10
|
}
|
7
11
|
/**
|
8
12
|
* Register a new user.
|
@@ -84,6 +88,15 @@ export interface SaveUserSettings {
|
|
84
88
|
show_read_posts?: boolean;
|
85
89
|
show_new_post_notifs?: boolean;
|
86
90
|
discussion_languages?: number[];
|
91
|
+
/**
|
92
|
+
* If this is set to true, lemmy will generate or regenerate a 2-factor (totp) authentication secret.
|
93
|
+
* You can then use the `totp_2fa_url` from [[LocalUserSettings]] to set up your authenticator app.
|
94
|
+
*
|
95
|
+
* If this is set to false, it will remove 2-factor for your account.
|
96
|
+
*
|
97
|
+
* If this is undefined, it leaves your 2-factor setup as is.
|
98
|
+
*/
|
99
|
+
generate_totp_2fa?: boolean;
|
87
100
|
auth: string;
|
88
101
|
}
|
89
102
|
export interface ChangePassword {
|
@@ -16,6 +16,10 @@ export interface LocalUserSettings {
|
|
16
16
|
show_new_post_notifs: boolean;
|
17
17
|
email_verified: boolean;
|
18
18
|
accepted_application: boolean;
|
19
|
+
/**
|
20
|
+
* An installation url for your 2-factor authenticator app.
|
21
|
+
*/
|
22
|
+
totp_2fa_url?: string;
|
19
23
|
}
|
20
24
|
export interface PersonSafe {
|
21
25
|
id: number;
|