@djangocfg/api 2.1.229 → 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,30 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
3
  /**
4
- * List of channel statistics.
4
+ * Timeline response with hourly/daily breakdown for DRF.
5
5
  *
6
6
  * Response model (includes read-only fields).
7
7
  */
8
- export interface ChannelList {
9
- /** Channel statistics */
10
- channels: Array<ChannelStats>;
11
- /** Total number of channels */
12
- total_channels: number;
8
+ export interface TimelineResponse {
9
+ timeline: Array<TimelineItem>;
10
+ period_hours: number;
11
+ interval: string;
12
+ }
13
+
14
+ /**
15
+ * Health check response.
16
+ *
17
+ * Response model (includes read-only fields).
18
+ */
19
+ export interface CentrifugoHealthCheck {
20
+ /** Health status: healthy or unhealthy */
21
+ status: string;
22
+ /** Configured wrapper URL */
23
+ wrapper_url: string;
24
+ /** Whether API key is configured */
25
+ has_api_key: boolean;
26
+ /** Current timestamp */
27
+ timestamp: string;
13
28
  }
14
29
 
15
30
  /**
@@ -38,19 +53,15 @@ export interface PaginatedPublishList {
38
53
  }
39
54
 
40
55
  /**
41
- * Health check response.
56
+ * List of channel statistics.
42
57
  *
43
58
  * Response model (includes read-only fields).
44
59
  */
45
- export interface CentrifugoHealthCheck {
46
- /** Health status: healthy or unhealthy */
47
- status: string;
48
- /** Configured wrapper URL */
49
- wrapper_url: string;
50
- /** Whether API key is configured */
51
- has_api_key: boolean;
52
- /** Current timestamp */
53
- timestamp: string;
60
+ export interface ChannelList {
61
+ /** Channel statistics */
62
+ channels: Array<ChannelStats>;
63
+ /** Total number of channels */
64
+ total_channels: number;
54
65
  }
55
66
 
56
67
  /**
@@ -78,36 +89,16 @@ export interface CentrifugoOverviewStats {
78
89
  }
79
90
 
80
91
  /**
81
- * Timeline response with hourly/daily breakdown for DRF.
82
- *
83
- * Response model (includes read-only fields).
84
- */
85
- export interface TimelineResponse {
86
- timeline: Array<TimelineItem>;
87
- period_hours: number;
88
- interval: string;
89
- }
90
-
91
- /**
92
- * Statistics per channel.
92
+ * Single timeline data point for DRF.
93
93
  *
94
94
  * Response model (includes read-only fields).
95
95
  */
96
- export interface ChannelStats {
97
- /** Channel name */
98
- channel: string;
99
- /** Total publishes to this channel */
100
- total: number;
101
- /** Successful publishes */
96
+ export interface TimelineItem {
97
+ timestamp: string;
98
+ count: number;
102
99
  successful: number;
103
- /** Failed publishes */
104
100
  failed: number;
105
- /** Average duration */
106
- avg_duration_ms: number;
107
- /** Average ACKs received */
108
- avg_acks: number;
109
- /** Last activity timestamp (ISO format) */
110
- last_activity_at: string | null;
101
+ timeout: number;
111
102
  }
112
103
 
113
104
  /**
@@ -130,15 +121,24 @@ export interface Publish {
130
121
  }
131
122
 
132
123
  /**
133
- * Single timeline data point for DRF.
124
+ * Statistics per channel.
134
125
  *
135
126
  * Response model (includes read-only fields).
136
127
  */
137
- export interface TimelineItem {
138
- timestamp: string;
139
- count: number;
128
+ export interface ChannelStats {
129
+ /** Channel name */
130
+ channel: string;
131
+ /** Total publishes to this channel */
132
+ total: number;
133
+ /** Successful publishes */
140
134
  successful: number;
135
+ /** Failed publishes */
141
136
  failed: number;
142
- timeout: number;
137
+ /** Average duration */
138
+ avg_duration_ms: number;
139
+ /** Average ACKs received */
140
+ avg_acks: number;
141
+ /** Last activity timestamp (ISO format) */
142
+ last_activity_at: string | null;
143
143
  }
144
144
 
@@ -1,19 +1,23 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
3
  /**
4
- * Request model for test message publishing.
4
+ * Response model for test message publishing.
5
5
  *
6
- * Request model (no read-only fields).
6
+ * Response model (includes read-only fields).
7
7
  */
8
- export interface PublishTestRequestRequest {
9
- /** Target channel name */
8
+ export interface PublishTestResponse {
9
+ /** Whether publish succeeded */
10
+ success: boolean;
11
+ /** Unique message ID */
12
+ message_id: string;
13
+ /** Target channel */
10
14
  channel: string;
11
- /** Message data (any JSON object) */
12
- data: Record<string, any>;
13
- /** Wait for client acknowledgment */
14
- wait_for_ack?: boolean;
15
- /** ACK timeout in seconds */
16
- ack_timeout?: number;
15
+ /** Number of ACKs received */
16
+ acks_received?: number;
17
+ /** Whether message was delivered */
18
+ delivered?: boolean;
19
+ /** Error message if failed */
20
+ error?: string | null;
17
21
  }
18
22
 
19
23
  /**
@@ -43,22 +47,18 @@ export interface ManualAckRequestRequest {
43
47
  }
44
48
 
45
49
  /**
46
- * Response model for test message publishing.
50
+ * Request model for test message publishing.
47
51
  *
48
- * Response model (includes read-only fields).
52
+ * Request model (no read-only fields).
49
53
  */
50
- export interface PublishTestResponse {
51
- /** Whether publish succeeded */
52
- success: boolean;
53
- /** Unique message ID */
54
- message_id: string;
55
- /** Target channel */
54
+ export interface PublishTestRequestRequest {
55
+ /** Target channel name */
56
56
  channel: string;
57
- /** Number of ACKs received */
58
- acks_received?: number;
59
- /** Whether message was delivered */
60
- delivered?: boolean;
61
- /** Error message if failed */
62
- error?: string | null;
57
+ /** Message data (any JSON object) */
58
+ data: Record<string, any>;
59
+ /** Wait for client acknowledgment */
60
+ wait_for_ack?: boolean;
61
+ /** ACK timeout in seconds */
62
+ ack_timeout?: number;
63
63
  }
64
64
 
@@ -1,17 +1,15 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
3
  /**
4
- * Serializer for backup codes status.
4
+ * Response serializer for backup codes regeneration.
5
5
  *
6
6
  * Response model (includes read-only fields).
7
7
  */
8
- export interface BackupCodesStatus {
9
- /** Number of unused backup codes */
10
- remaining_count: number;
11
- /** Total number of codes generated */
12
- total_generated: number;
13
- /** Warning if running low on codes */
14
- warning?: string | null;
8
+ export interface BackupCodesRegenerateResponse {
9
+ /** List of new backup codes (save these!) */
10
+ backup_codes: Array<string>;
11
+ /** Warning about previous codes being invalidated */
12
+ warning: string;
15
13
  }
16
14
 
17
15
  /**
@@ -25,14 +23,16 @@ export interface BackupCodesRegenerateRequest {
25
23
  }
26
24
 
27
25
  /**
28
- * Response serializer for backup codes regeneration.
26
+ * Serializer for backup codes status.
29
27
  *
30
28
  * Response model (includes read-only fields).
31
29
  */
32
- export interface BackupCodesRegenerateResponse {
33
- /** List of new backup codes (save these!) */
34
- backup_codes: Array<string>;
35
- /** Warning about previous codes being invalidated */
36
- warning: string;
30
+ export interface BackupCodesStatus {
31
+ /** Number of unused backup codes */
32
+ remaining_count: number;
33
+ /** Total number of codes generated */
34
+ total_generated: number;
35
+ /** Warning if running low on codes */
36
+ warning?: string | null;
37
37
  }
38
38
 
@@ -1,28 +1,5 @@
1
1
  // @ts-nocheck
2
2
  // Auto-generated by DjangoCFG - see CLAUDE.md
3
- /**
4
- * Serializer for starting 2FA setup.
5
- *
6
- * Request model (no read-only fields).
7
- */
8
- export interface SetupRequest {
9
- /** Device name for identification (e.g., 'My iPhone') */
10
- device_name?: string;
11
- }
12
-
13
- /**
14
- * Response serializer for setup confirmation.
15
- *
16
- * Response model (includes read-only fields).
17
- */
18
- export interface ConfirmSetupResponse {
19
- message: string;
20
- /** List of backup recovery codes (save these!) */
21
- backup_codes: Array<string>;
22
- /** Warning message about backup codes */
23
- backup_codes_warning: string;
24
- }
25
-
26
3
  /**
27
4
  * Serializer for confirming 2FA setup with first code.
28
5
  *
@@ -53,3 +30,26 @@ export interface SetupResponse {
53
30
  expires_in: number;
54
31
  }
55
32
 
33
+ /**
34
+ * Serializer for starting 2FA setup.
35
+ *
36
+ * Request model (no read-only fields).
37
+ */
38
+ export interface SetupRequest {
39
+ /** Device name for identification (e.g., 'My iPhone') */
40
+ device_name?: string;
41
+ }
42
+
43
+ /**
44
+ * Response serializer for setup confirmation.
45
+ *
46
+ * Response model (includes read-only fields).
47
+ */
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
+ }
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
  *