@djangocfg/api 2.1.224 → 2.1.226
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/clients.d.cts +230 -230
- package/dist/clients.d.ts +230 -230
- package/dist/hooks.d.cts +61 -61
- package/dist/hooks.d.ts +61 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -76
- package/dist/index.d.ts +76 -76
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +14 -14
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +42 -42
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +24 -24
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +86 -86
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +30 -30
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +30 -30
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +12 -12
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +12 -12
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
// Auto-generated by DjangoCFG - see CLAUDE.md
|
|
3
3
|
import * as Enums from "../enums";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Serializer for completely disabling 2FA.
|
|
7
|
+
*
|
|
8
|
+
* Request model (no read-only fields).
|
|
9
|
+
*/
|
|
10
|
+
export interface DisableRequest {
|
|
11
|
+
/** TOTP code for verification */
|
|
12
|
+
code: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
5
15
|
/**
|
|
6
16
|
*
|
|
7
17
|
* Response model (includes read-only fields).
|
|
@@ -27,16 +37,6 @@ export interface PaginatedDeviceListResponseList {
|
|
|
27
37
|
results: Array<DeviceListResponse>;
|
|
28
38
|
}
|
|
29
39
|
|
|
30
|
-
/**
|
|
31
|
-
* Serializer for completely disabling 2FA.
|
|
32
|
-
*
|
|
33
|
-
* Request model (no read-only fields).
|
|
34
|
-
*/
|
|
35
|
-
export interface DisableRequest {
|
|
36
|
-
/** TOTP code for verification */
|
|
37
|
-
code: string;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
40
|
/**
|
|
41
41
|
* Response serializer for device list endpoint.
|
|
42
42
|
*
|
|
@@ -13,18 +13,6 @@ export interface ConfirmSetupResponse {
|
|
|
13
13
|
backup_codes_warning: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* Serializer for confirming 2FA setup with first code.
|
|
18
|
-
*
|
|
19
|
-
* Request model (no read-only fields).
|
|
20
|
-
*/
|
|
21
|
-
export interface ConfirmSetupRequest {
|
|
22
|
-
/** Device ID from setup response */
|
|
23
|
-
device_id: string;
|
|
24
|
-
/** 6-digit TOTP code from authenticator app */
|
|
25
|
-
code: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
16
|
/**
|
|
29
17
|
* Response serializer for setup initiation.
|
|
30
18
|
*
|
|
@@ -43,6 +31,18 @@ export interface SetupResponse {
|
|
|
43
31
|
expires_in: number;
|
|
44
32
|
}
|
|
45
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Serializer for confirming 2FA setup with first code.
|
|
36
|
+
*
|
|
37
|
+
* Request model (no read-only fields).
|
|
38
|
+
*/
|
|
39
|
+
export interface ConfirmSetupRequest {
|
|
40
|
+
/** Device ID from setup response */
|
|
41
|
+
device_id: string;
|
|
42
|
+
/** 6-digit TOTP code from authenticator app */
|
|
43
|
+
code: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
46
|
/**
|
|
47
47
|
* Serializer for starting 2FA setup.
|
|
48
48
|
*
|
|
@@ -12,18 +12,6 @@ export interface VerifyRequest {
|
|
|
12
12
|
code: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Serializer for backup code verification during login.
|
|
17
|
-
*
|
|
18
|
-
* Request model (no read-only fields).
|
|
19
|
-
*/
|
|
20
|
-
export interface VerifyBackupRequest {
|
|
21
|
-
/** 2FA session ID from login response */
|
|
22
|
-
session_id: string;
|
|
23
|
-
/** 8-character backup recovery code */
|
|
24
|
-
backup_code: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
15
|
/**
|
|
28
16
|
* Response serializer for successful 2FA verification.
|
|
29
17
|
*
|
|
@@ -42,6 +30,18 @@ export interface VerifyResponse {
|
|
|
42
30
|
warning?: string;
|
|
43
31
|
}
|
|
44
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Serializer for backup code verification during login.
|
|
35
|
+
*
|
|
36
|
+
* Request model (no read-only fields).
|
|
37
|
+
*/
|
|
38
|
+
export interface VerifyBackupRequest {
|
|
39
|
+
/** 2FA session ID from login response */
|
|
40
|
+
session_id: string;
|
|
41
|
+
/** 8-character backup recovery code */
|
|
42
|
+
backup_code: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
45
|
/**
|
|
46
46
|
* User data returned after 2FA verification.
|
|
47
47
|
*
|