@djangocfg/api 2.1.225 → 2.1.227

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,5 +1,16 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
+ /**
4
+ * Timeline response with hourly/daily breakdown for DRF.
5
+ *
6
+ * Response model (includes read-only fields).
7
+ */
8
+ export interface TimelineResponse {
9
+ timeline: Array<TimelineItem>;
10
+ period_hours: number;
11
+ interval: string;
12
+ }
13
+
3
14
  /**
4
15
  *
5
16
  * Response model (includes read-only fields).
@@ -26,14 +37,31 @@ export interface PaginatedPublishList {
26
37
  }
27
38
 
28
39
  /**
29
- * Timeline response with hourly/daily breakdown for DRF.
40
+ * List of channel statistics.
30
41
  *
31
42
  * Response model (includes read-only fields).
32
43
  */
33
- export interface TimelineResponse {
34
- timeline: Array<TimelineItem>;
35
- period_hours: number;
36
- interval: string;
44
+ export interface ChannelList {
45
+ /** Channel statistics */
46
+ channels: Array<ChannelStats>;
47
+ /** Total number of channels */
48
+ total_channels: number;
49
+ }
50
+
51
+ /**
52
+ * Health check response.
53
+ *
54
+ * Response model (includes read-only fields).
55
+ */
56
+ export interface CentrifugoHealthCheck {
57
+ /** Health status: healthy or unhealthy */
58
+ status: string;
59
+ /** Configured wrapper URL */
60
+ wrapper_url: string;
61
+ /** Whether API key is configured */
62
+ has_api_key: boolean;
63
+ /** Current timestamp */
64
+ timestamp: string;
37
65
  }
38
66
 
39
67
  /**
@@ -61,31 +89,16 @@ export interface CentrifugoOverviewStats {
61
89
  }
62
90
 
63
91
  /**
64
- * Health check response.
92
+ * Single timeline data point for DRF.
65
93
  *
66
94
  * Response model (includes read-only fields).
67
95
  */
68
- export interface CentrifugoHealthCheck {
69
- /** Health status: healthy or unhealthy */
70
- status: string;
71
- /** Configured wrapper URL */
72
- wrapper_url: string;
73
- /** Whether API key is configured */
74
- has_api_key: boolean;
75
- /** Current timestamp */
96
+ export interface TimelineItem {
76
97
  timestamp: string;
77
- }
78
-
79
- /**
80
- * List of channel statistics.
81
- *
82
- * Response model (includes read-only fields).
83
- */
84
- export interface ChannelList {
85
- /** Channel statistics */
86
- channels: Array<ChannelStats>;
87
- /** Total number of channels */
88
- total_channels: number;
98
+ count: number;
99
+ successful: number;
100
+ failed: number;
101
+ timeout: number;
89
102
  }
90
103
 
91
104
  /**
@@ -107,19 +120,6 @@ export interface Publish {
107
120
  error_message: string | null;
108
121
  }
109
122
 
110
- /**
111
- * Single timeline data point for DRF.
112
- *
113
- * Response model (includes read-only fields).
114
- */
115
- export interface TimelineItem {
116
- timestamp: string;
117
- count: number;
118
- successful: number;
119
- failed: number;
120
- timeout: number;
121
- }
122
-
123
123
  /**
124
124
  * Statistics per channel.
125
125
  *
@@ -1,5 +1,19 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
+ /**
4
+ * Response model for manual ACK.
5
+ *
6
+ * Response model (includes read-only fields).
7
+ */
8
+ export interface ManualAckResponse {
9
+ /** Whether ACK was sent successfully */
10
+ success: boolean;
11
+ /** Message ID that was acknowledged */
12
+ message_id: string;
13
+ /** Error message if failed */
14
+ error?: string | null;
15
+ }
16
+
3
17
  /**
4
18
  * Request model for test message publishing.
5
19
  *
@@ -48,17 +62,3 @@ export interface ManualAckRequestRequest {
48
62
  client_id: string;
49
63
  }
50
64
 
51
- /**
52
- * Response model for manual ACK.
53
- *
54
- * Response model (includes read-only fields).
55
- */
56
- export interface ManualAckResponse {
57
- /** Whether ACK was sent successfully */
58
- success: boolean;
59
- /** Message ID that was acknowledged */
60
- message_id: string;
61
- /** Error message if failed */
62
- error?: string | null;
63
- }
64
-
@@ -14,6 +14,16 @@ export interface BackupCodesStatus {
14
14
  warning?: string | null;
15
15
  }
16
16
 
17
+ /**
18
+ * Serializer for regenerating backup codes.
19
+ *
20
+ * Request model (no read-only fields).
21
+ */
22
+ export interface BackupCodesRegenerateRequest {
23
+ /** TOTP code for verification */
24
+ code: string;
25
+ }
26
+
17
27
  /**
18
28
  * Response serializer for backup codes regeneration.
19
29
  *
@@ -26,13 +36,3 @@ export interface BackupCodesRegenerateResponse {
26
36
  warning: string;
27
37
  }
28
38
 
29
- /**
30
- * Serializer for regenerating backup codes.
31
- *
32
- * Request model (no read-only fields).
33
- */
34
- export interface BackupCodesRegenerateRequest {
35
- /** TOTP code for verification */
36
- code: string;
37
- }
38
-
@@ -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
  *
@@ -1,5 +1,18 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
+ /**
4
+ * Response serializer for setup confirmation.
5
+ *
6
+ * Response model (includes read-only fields).
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;
14
+ }
15
+
3
16
  /**
4
17
  * Response serializer for setup initiation.
5
18
  *
@@ -30,19 +43,6 @@ export interface ConfirmSetupRequest {
30
43
  code: string;
31
44
  }
32
45
 
33
- /**
34
- * Response serializer for setup confirmation.
35
- *
36
- * Response model (includes read-only fields).
37
- */
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
- }
45
-
46
46
  /**
47
47
  * Serializer for starting 2FA setup.
48
48
  *
@@ -1,15 +1,15 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
3
  /**
4
- * Serializer for backup code verification during login.
4
+ * Serializer for TOTP code verification during login.
5
5
  *
6
6
  * Request model (no read-only fields).
7
7
  */
8
- export interface VerifyBackupRequest {
8
+ export interface VerifyRequest {
9
9
  /** 2FA session ID from login response */
10
10
  session_id: string;
11
- /** 8-character backup recovery code */
12
- backup_code: string;
11
+ /** 6-digit TOTP code from authenticator app */
12
+ code: string;
13
13
  }
14
14
 
15
15
  /**
@@ -31,15 +31,15 @@ export interface VerifyResponse {
31
31
  }
32
32
 
33
33
  /**
34
- * Serializer for TOTP code verification during login.
34
+ * Serializer for backup code verification during login.
35
35
  *
36
36
  * Request model (no read-only fields).
37
37
  */
38
- export interface VerifyRequest {
38
+ export interface VerifyBackupRequest {
39
39
  /** 2FA session ID from login response */
40
40
  session_id: string;
41
- /** 6-digit TOTP code from authenticator app */
42
- code: string;
41
+ /** 8-character backup recovery code */
42
+ backup_code: string;
43
43
  }
44
44
 
45
45
  /**