@djangocfg/api 2.1.223 → 2.1.225
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 +212 -212
- package/dist/clients.d.ts +212 -212
- package/dist/hooks.d.cts +64 -64
- package/dist/hooks.d.ts +64 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -89
- package/dist/index.d.ts +89 -89
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +26 -26
- package/src/_api/generated/cfg_accounts/accounts__auth/models.ts +5 -5
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +53 -53
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +9 -9
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +65 -65
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +24 -24
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +25 -25
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +19 -19
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +12 -12
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// Auto-generated by DjangoCFG - see CLAUDE.md
|
|
3
3
|
/**
|
|
4
|
-
* Response serializer for setup
|
|
4
|
+
* Response serializer for setup initiation.
|
|
5
5
|
*
|
|
6
6
|
* Response model (includes read-only fields).
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
export interface SetupResponse {
|
|
9
|
+
/** Device ID to use for confirmation */
|
|
10
|
+
device_id: string;
|
|
11
|
+
/** Base32-encoded TOTP secret (for manual entry) */
|
|
12
|
+
secret: string;
|
|
13
|
+
/** otpauth:// URI for QR code generation */
|
|
14
|
+
provisioning_uri: string;
|
|
15
|
+
/** Base64-encoded QR code image (data URI) */
|
|
16
|
+
qr_code_base64: string;
|
|
17
|
+
/** Seconds until setup expires (typically 600 = 10 minutes) */
|
|
18
|
+
expires_in: number;
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
/**
|
|
@@ -26,21 +31,16 @@ export interface ConfirmSetupRequest {
|
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
/**
|
|
29
|
-
* Response serializer for setup
|
|
34
|
+
* Response serializer for setup confirmation.
|
|
30
35
|
*
|
|
31
36
|
* Response model (includes read-only fields).
|
|
32
37
|
*/
|
|
33
|
-
export interface
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
provisioning_uri: string;
|
|
40
|
-
/** Base64-encoded QR code image (data URI) */
|
|
41
|
-
qr_code_base64: string;
|
|
42
|
-
/** Seconds until setup expires (typically 600 = 10 minutes) */
|
|
43
|
-
expires_in: number;
|
|
38
|
+
export interface ConfirmSetupResponse {
|
|
39
|
+
message: string;
|
|
40
|
+
/** List of backup recovery codes (save these!) */
|
|
41
|
+
backup_codes: Array<string>;
|
|
42
|
+
/** Warning message about backup codes */
|
|
43
|
+
backup_codes_warning: string;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -1,17 +1,5 @@
|
|
|
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
|
-
|
|
15
3
|
/**
|
|
16
4
|
* Serializer for backup code verification during login.
|
|
17
5
|
*
|
|
@@ -42,6 +30,18 @@ export interface VerifyResponse {
|
|
|
42
30
|
warning?: string;
|
|
43
31
|
}
|
|
44
32
|
|
|
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
|
*
|