@djangocfg/api 2.1.228 → 2.1.230

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.
@@ -1,15 +1,5 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
- /**
4
- * Serializer for regenerating backup codes.
5
- *
6
- * Request model (no read-only fields).
7
- */
8
- export interface BackupCodesRegenerateRequest {
9
- /** TOTP code for verification */
10
- code: string;
11
- }
12
-
13
3
  /**
14
4
  * Response serializer for backup codes regeneration.
15
5
  *
@@ -22,6 +12,16 @@ export interface BackupCodesRegenerateResponse {
22
12
  warning: string;
23
13
  }
24
14
 
15
+ /**
16
+ * Serializer for regenerating backup codes.
17
+ *
18
+ * Request model (no read-only fields).
19
+ */
20
+ export interface BackupCodesRegenerateRequest {
21
+ /** TOTP code for verification */
22
+ code: string;
23
+ }
24
+
25
25
  /**
26
26
  * Serializer for backup codes status.
27
27
  *
@@ -2,16 +2,6 @@
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
-
15
5
  /**
16
6
  *
17
7
  * Response model (includes read-only fields).
@@ -37,6 +27,16 @@ export interface PaginatedDeviceListResponseList {
37
27
  results: Array<DeviceListResponse>;
38
28
  }
39
29
 
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
  *
@@ -1,16 +1,15 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
3
  /**
4
- * Response serializer for setup confirmation.
4
+ * Serializer for confirming 2FA setup with first code.
5
5
  *
6
- * Response model (includes read-only fields).
6
+ * Request model (no read-only fields).
7
7
  */
8
- export interface ConfirmSetupResponse {
9
- message: string;
10
- /** List of backup recovery codes (save these!) */
11
- backup_codes: Array<string>;
12
- /** Warning message about backup codes */
13
- backup_codes_warning: string;
8
+ export interface ConfirmSetupRequest {
9
+ /** Device ID from setup response */
10
+ device_id: string;
11
+ /** 6-digit TOTP code from authenticator app */
12
+ code: string;
14
13
  }
15
14
 
16
15
  /**
@@ -42,14 +41,15 @@ export interface SetupRequest {
42
41
  }
43
42
 
44
43
  /**
45
- * Serializer for confirming 2FA setup with first code.
44
+ * Response serializer for setup confirmation.
46
45
  *
47
- * Request model (no read-only fields).
46
+ * Response model (includes read-only fields).
48
47
  */
49
- export interface ConfirmSetupRequest {
50
- /** Device ID from setup response */
51
- device_id: string;
52
- /** 6-digit TOTP code from authenticator app */
53
- code: string;
48
+ export interface ConfirmSetupResponse {
49
+ message: string;
50
+ /** List of backup recovery codes (save these!) */
51
+ backup_codes: Array<string>;
52
+ /** Warning message about backup codes */
53
+ backup_codes_warning: string;
54
54
  }
55
55
 
@@ -1,5 +1,17 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
+ /**
4
+ * Serializer for TOTP code verification during login.
5
+ *
6
+ * Request model (no read-only fields).
7
+ */
8
+ export interface VerifyRequest {
9
+ /** 2FA session ID from login response */
10
+ session_id: string;
11
+ /** 6-digit TOTP code from authenticator app */
12
+ code: string;
13
+ }
14
+
3
15
  /**
4
16
  * Serializer for backup code verification during login.
5
17
  *
@@ -30,18 +42,6 @@ export interface VerifyResponse {
30
42
  warning?: string;
31
43
  }
32
44
 
33
- /**
34
- * Serializer for TOTP code verification during login.
35
- *
36
- * Request model (no read-only fields).
37
- */
38
- export interface VerifyRequest {
39
- /** 2FA session ID from login response */
40
- session_id: string;
41
- /** 6-digit TOTP code from authenticator app */
42
- code: string;
43
- }
44
-
45
45
  /**
46
46
  * User data returned after 2FA verification.
47
47
  *