@djangocfg/api 2.1.228 → 2.1.229
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 +260 -260
- package/dist/clients.d.ts +260 -260
- package/dist/hooks.d.cts +73 -73
- package/dist/hooks.d.ts +73 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -86
- package/dist/index.d.ts +86 -86
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +23 -23
- package/src/_api/generated/cfg_accounts/accounts__auth/models.ts +5 -5
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +44 -44
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +18 -18
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +84 -84
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +46 -46
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +20 -20
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +14 -14
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +22 -22
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// Auto-generated by DjangoCFG - see CLAUDE.md
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* List of channel statistics.
|
|
5
5
|
*
|
|
6
6
|
* Response model (includes read-only fields).
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export interface ChannelList {
|
|
9
|
+
/** Channel statistics */
|
|
10
|
+
channels: Array<ChannelStats>;
|
|
11
|
+
/** Total number of channels */
|
|
12
|
+
total_channels: number;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -36,6 +37,22 @@ export interface PaginatedPublishList {
|
|
|
36
37
|
results: Array<Publish>;
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Health check response.
|
|
42
|
+
*
|
|
43
|
+
* Response model (includes read-only fields).
|
|
44
|
+
*/
|
|
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;
|
|
54
|
+
}
|
|
55
|
+
|
|
39
56
|
/**
|
|
40
57
|
* Overview statistics for Centrifugo publishes.
|
|
41
58
|
*
|
|
@@ -61,44 +78,36 @@ export interface CentrifugoOverviewStats {
|
|
|
61
78
|
}
|
|
62
79
|
|
|
63
80
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* Response model (includes read-only fields).
|
|
67
|
-
*/
|
|
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 */
|
|
76
|
-
timestamp: string;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* List of channel statistics.
|
|
81
|
+
* Timeline response with hourly/daily breakdown for DRF.
|
|
81
82
|
*
|
|
82
83
|
* Response model (includes read-only fields).
|
|
83
84
|
*/
|
|
84
|
-
export interface
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
total_channels: number;
|
|
85
|
+
export interface TimelineResponse {
|
|
86
|
+
timeline: Array<TimelineItem>;
|
|
87
|
+
period_hours: number;
|
|
88
|
+
interval: string;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Statistics per channel.
|
|
93
93
|
*
|
|
94
94
|
* Response model (includes read-only fields).
|
|
95
95
|
*/
|
|
96
|
-
export interface
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
export interface ChannelStats {
|
|
97
|
+
/** Channel name */
|
|
98
|
+
channel: string;
|
|
99
|
+
/** Total publishes to this channel */
|
|
100
|
+
total: number;
|
|
101
|
+
/** Successful publishes */
|
|
99
102
|
successful: number;
|
|
103
|
+
/** Failed publishes */
|
|
100
104
|
failed: number;
|
|
101
|
-
|
|
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;
|
|
102
111
|
}
|
|
103
112
|
|
|
104
113
|
/**
|
|
@@ -121,24 +130,15 @@ export interface Publish {
|
|
|
121
130
|
}
|
|
122
131
|
|
|
123
132
|
/**
|
|
124
|
-
*
|
|
133
|
+
* Single timeline data point for DRF.
|
|
125
134
|
*
|
|
126
135
|
* Response model (includes read-only fields).
|
|
127
136
|
*/
|
|
128
|
-
export interface
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/** Total publishes to this channel */
|
|
132
|
-
total: number;
|
|
133
|
-
/** Successful publishes */
|
|
137
|
+
export interface TimelineItem {
|
|
138
|
+
timestamp: string;
|
|
139
|
+
count: number;
|
|
134
140
|
successful: number;
|
|
135
|
-
/** Failed publishes */
|
|
136
141
|
failed: number;
|
|
137
|
-
|
|
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;
|
|
142
|
+
timeout: number;
|
|
143
143
|
}
|
|
144
144
|
|
|
@@ -16,26 +16,6 @@ export interface PublishTestRequestRequest {
|
|
|
16
16
|
ack_timeout?: number;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Response model for test message publishing.
|
|
21
|
-
*
|
|
22
|
-
* Response model (includes read-only fields).
|
|
23
|
-
*/
|
|
24
|
-
export interface PublishTestResponse {
|
|
25
|
-
/** Whether publish succeeded */
|
|
26
|
-
success: boolean;
|
|
27
|
-
/** Unique message ID */
|
|
28
|
-
message_id: string;
|
|
29
|
-
/** Target channel */
|
|
30
|
-
channel: string;
|
|
31
|
-
/** Number of ACKs received */
|
|
32
|
-
acks_received?: number;
|
|
33
|
-
/** Whether message was delivered */
|
|
34
|
-
delivered?: boolean;
|
|
35
|
-
/** Error message if failed */
|
|
36
|
-
error?: string | null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
19
|
/**
|
|
40
20
|
* Response model for manual ACK.
|
|
41
21
|
*
|
|
@@ -62,3 +42,23 @@ export interface ManualAckRequestRequest {
|
|
|
62
42
|
client_id: string;
|
|
63
43
|
}
|
|
64
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Response model for test message publishing.
|
|
47
|
+
*
|
|
48
|
+
* Response model (includes read-only fields).
|
|
49
|
+
*/
|
|
50
|
+
export interface PublishTestResponse {
|
|
51
|
+
/** Whether publish succeeded */
|
|
52
|
+
success: boolean;
|
|
53
|
+
/** Unique message ID */
|
|
54
|
+
message_id: string;
|
|
55
|
+
/** Target channel */
|
|
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;
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
// Auto-generated by DjangoCFG - see CLAUDE.md
|
|
3
|
+
/**
|
|
4
|
+
* Serializer for backup codes status.
|
|
5
|
+
*
|
|
6
|
+
* Response model (includes read-only fields).
|
|
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;
|
|
15
|
+
}
|
|
16
|
+
|
|
3
17
|
/**
|
|
4
18
|
* Serializer for regenerating backup codes.
|
|
5
19
|
*
|
|
@@ -22,17 +36,3 @@ export interface BackupCodesRegenerateResponse {
|
|
|
22
36
|
warning: string;
|
|
23
37
|
}
|
|
24
38
|
|
|
25
|
-
/**
|
|
26
|
-
* Serializer for backup codes status.
|
|
27
|
-
*
|
|
28
|
-
* Response model (includes read-only fields).
|
|
29
|
-
*/
|
|
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
|
-
}
|
|
38
|
-
|
|
@@ -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,5 +1,15 @@
|
|
|
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
|
+
|
|
3
13
|
/**
|
|
4
14
|
* Response serializer for setup confirmation.
|
|
5
15
|
*
|
|
@@ -13,6 +23,18 @@ export interface ConfirmSetupResponse {
|
|
|
13
23
|
backup_codes_warning: string;
|
|
14
24
|
}
|
|
15
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Serializer for confirming 2FA setup with first code.
|
|
28
|
+
*
|
|
29
|
+
* Request model (no read-only fields).
|
|
30
|
+
*/
|
|
31
|
+
export interface ConfirmSetupRequest {
|
|
32
|
+
/** Device ID from setup response */
|
|
33
|
+
device_id: string;
|
|
34
|
+
/** 6-digit TOTP code from authenticator app */
|
|
35
|
+
code: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
16
38
|
/**
|
|
17
39
|
* Response serializer for setup initiation.
|
|
18
40
|
*
|
|
@@ -31,25 +53,3 @@ export interface SetupResponse {
|
|
|
31
53
|
expires_in: number;
|
|
32
54
|
}
|
|
33
55
|
|
|
34
|
-
/**
|
|
35
|
-
* Serializer for starting 2FA setup.
|
|
36
|
-
*
|
|
37
|
-
* Request model (no read-only fields).
|
|
38
|
-
*/
|
|
39
|
-
export interface SetupRequest {
|
|
40
|
-
/** Device name for identification (e.g., 'My iPhone') */
|
|
41
|
-
device_name?: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Serializer for confirming 2FA setup with first code.
|
|
46
|
-
*
|
|
47
|
-
* Request model (no read-only fields).
|
|
48
|
-
*/
|
|
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;
|
|
54
|
-
}
|
|
55
|
-
|