@djangocfg/api 2.1.309 → 2.1.312
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/dist/auth-server.cjs +18 -7
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +18 -7
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +54 -21
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +54 -21
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +54 -21
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +144 -144
- package/dist/clients.d.ts +144 -144
- package/dist/clients.mjs +54 -21
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +18 -7
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +92 -92
- package/dist/hooks.d.ts +92 -92
- package/dist/hooks.mjs +18 -7
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +36 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +111 -105
- package/dist/index.d.ts +111 -105
- package/dist/index.mjs +36 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +25 -25
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +62 -62
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +24 -24
- package/src/_api/generated/cfg_accounts/client.ts +3 -0
- package/src/_api/generated/cfg_accounts/http.ts +30 -7
- package/src/_api/generated/cfg_centrifugo/client.ts +3 -0
- package/src/_api/generated/cfg_centrifugo/http.ts +30 -7
- package/src/_api/generated/cfg_totp/client.ts +3 -0
- package/src/_api/generated/cfg_totp/http.ts +30 -7
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +18 -18
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +18 -18
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// Auto-generated by DjangoCFG - see CLAUDE.md
|
|
3
|
+
/**
|
|
4
|
+
* Response serializer for successful 2FA verification.
|
|
5
|
+
*
|
|
6
|
+
* Response model (includes read-only fields).
|
|
7
|
+
*/
|
|
8
|
+
export interface VerifyResponse {
|
|
9
|
+
message: string;
|
|
10
|
+
/** JWT access token */
|
|
11
|
+
access_token: string;
|
|
12
|
+
/** JWT refresh token */
|
|
13
|
+
refresh_token: string;
|
|
14
|
+
user: TotpVerifyUser;
|
|
15
|
+
/** Number of remaining backup codes (if backup code was used) */
|
|
16
|
+
remaining_backup_codes?: number;
|
|
17
|
+
/** Warning message (e.g., low backup codes) */
|
|
18
|
+
warning?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
3
21
|
/**
|
|
4
22
|
* Serializer for TOTP code verification during login.
|
|
5
23
|
*
|
|
@@ -24,24 +42,6 @@ export interface VerifyBackupRequest {
|
|
|
24
42
|
backup_code: string;
|
|
25
43
|
}
|
|
26
44
|
|
|
27
|
-
/**
|
|
28
|
-
* Response serializer for successful 2FA verification.
|
|
29
|
-
*
|
|
30
|
-
* Response model (includes read-only fields).
|
|
31
|
-
*/
|
|
32
|
-
export interface VerifyResponse {
|
|
33
|
-
message: string;
|
|
34
|
-
/** JWT access token */
|
|
35
|
-
access_token: string;
|
|
36
|
-
/** JWT refresh token */
|
|
37
|
-
refresh_token: string;
|
|
38
|
-
user: TotpVerifyUser;
|
|
39
|
-
/** Number of remaining backup codes (if backup code was used) */
|
|
40
|
-
remaining_backup_codes?: number;
|
|
41
|
-
/** Warning message (e.g., low backup codes) */
|
|
42
|
-
warning?: string;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
45
|
/**
|
|
46
46
|
* User data returned after 2FA verification.
|
|
47
47
|
*
|