@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.
- package/dist/clients.d.cts +270 -270
- package/dist/clients.d.ts +270 -270
- package/dist/hooks.d.cts +76 -76
- package/dist/hooks.d.ts +76 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +105 -105
- package/dist/index.d.ts +105 -105
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +27 -27
- package/src/_api/generated/cfg_accounts/accounts__auth/models.ts +5 -5
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +55 -55
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +24 -24
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +108 -108
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +39 -39
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +14 -14
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +13 -13
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +8 -8
package/dist/clients.d.cts
CHANGED
|
@@ -4,17 +4,17 @@ import useSWR from 'swr';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Response model (includes read-only fields).
|
|
8
8
|
*/
|
|
9
|
-
interface
|
|
9
|
+
interface TokenRefresh$1 {
|
|
10
|
+
access: string;
|
|
10
11
|
refresh: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
+
* Request model (no read-only fields).
|
|
15
16
|
*/
|
|
16
|
-
interface
|
|
17
|
-
access: string;
|
|
17
|
+
interface TokenRefreshRequest$1 {
|
|
18
18
|
refresh: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -56,48 +56,37 @@ declare namespace enums {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* Request to
|
|
59
|
+
* Request to disconnect OAuth provider.
|
|
60
60
|
*
|
|
61
61
|
* Request model (no read-only fields).
|
|
62
62
|
*/
|
|
63
|
-
interface
|
|
64
|
-
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
64
|
+
/** OAuth provider to disconnect
|
|
65
|
+
|
|
66
|
+
* `github` - GitHub */
|
|
67
|
+
provider: OAuthConnectionProvider;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
* Response with
|
|
70
|
+
* Response with OAuth authorization URL.
|
|
71
71
|
*
|
|
72
72
|
* Response model (includes read-only fields).
|
|
73
73
|
*/
|
|
74
|
-
interface
|
|
75
|
-
/**
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Request to complete OAuth flow (callback handler).
|
|
80
|
-
*
|
|
81
|
-
* Request model (no read-only fields).
|
|
82
|
-
*/
|
|
83
|
-
interface OAuthCallbackRequestRequest$1 {
|
|
84
|
-
/** Authorization code from OAuth provider callback */
|
|
85
|
-
code: string;
|
|
86
|
-
/** State token for CSRF verification (from authorize response) */
|
|
74
|
+
interface OAuthAuthorizeResponse$1 {
|
|
75
|
+
/** Full URL to redirect user to OAuth provider */
|
|
76
|
+
authorization_url: string;
|
|
77
|
+
/** State token for CSRF protection. Store this and verify on callback. */
|
|
87
78
|
state: string;
|
|
88
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
89
|
-
redirect_uri?: string;
|
|
90
79
|
}
|
|
91
80
|
/**
|
|
92
|
-
* Request to
|
|
81
|
+
* Request to start OAuth flow.
|
|
93
82
|
*
|
|
94
83
|
* Request model (no read-only fields).
|
|
95
84
|
*/
|
|
96
|
-
interface
|
|
97
|
-
/** OAuth
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
85
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
86
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
87
|
+
redirect_uri?: string;
|
|
88
|
+
/** Optional source URL for registration tracking */
|
|
89
|
+
source_url?: string;
|
|
101
90
|
}
|
|
102
91
|
/**
|
|
103
92
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
@@ -126,15 +115,26 @@ interface OAuthTokenResponse$1 {
|
|
|
126
115
|
should_prompt_2fa?: boolean;
|
|
127
116
|
}
|
|
128
117
|
/**
|
|
129
|
-
* Response with OAuth
|
|
118
|
+
* Response with available OAuth providers.
|
|
130
119
|
*
|
|
131
120
|
* Response model (includes read-only fields).
|
|
132
121
|
*/
|
|
133
|
-
interface
|
|
134
|
-
/**
|
|
135
|
-
|
|
136
|
-
|
|
122
|
+
interface OAuthProvidersResponse$1 {
|
|
123
|
+
/** List of available OAuth providers */
|
|
124
|
+
providers: Array<Record<string, any>>;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Request to complete OAuth flow (callback handler).
|
|
128
|
+
*
|
|
129
|
+
* Request model (no read-only fields).
|
|
130
|
+
*/
|
|
131
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
132
|
+
/** Authorization code from OAuth provider callback */
|
|
133
|
+
code: string;
|
|
134
|
+
/** State token for CSRF verification (from authorize response) */
|
|
137
135
|
state: string;
|
|
136
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
137
|
+
redirect_uri?: string;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
@@ -177,6 +177,27 @@ declare class Oauth {
|
|
|
177
177
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse$1>;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Serializer for updating user profile.
|
|
182
|
+
*
|
|
183
|
+
* Request model (no read-only fields).
|
|
184
|
+
*/
|
|
185
|
+
interface UserProfileUpdateRequest$1 {
|
|
186
|
+
first_name?: string;
|
|
187
|
+
last_name?: string;
|
|
188
|
+
company?: string;
|
|
189
|
+
phone?: string;
|
|
190
|
+
position?: string;
|
|
191
|
+
language?: string;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* Request model (no read-only fields).
|
|
196
|
+
*/
|
|
197
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
198
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
199
|
+
avatar: File | Blob;
|
|
200
|
+
}
|
|
180
201
|
/**
|
|
181
202
|
* Serializer for user details.
|
|
182
203
|
*
|
|
@@ -212,7 +233,7 @@ interface User$2 {
|
|
|
212
233
|
*
|
|
213
234
|
* Request model (no read-only fields).
|
|
214
235
|
*/
|
|
215
|
-
interface
|
|
236
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
216
237
|
first_name?: string;
|
|
217
238
|
last_name?: string;
|
|
218
239
|
company?: string;
|
|
@@ -220,14 +241,6 @@ interface UserProfileUpdateRequest$1 {
|
|
|
220
241
|
position?: string;
|
|
221
242
|
language?: string;
|
|
222
243
|
}
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
* Request model (no read-only fields).
|
|
226
|
-
*/
|
|
227
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
228
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
229
|
-
avatar: File | Blob;
|
|
230
|
-
}
|
|
231
244
|
/**
|
|
232
245
|
* Response serializer for account deletion.
|
|
233
246
|
*
|
|
@@ -239,19 +252,6 @@ interface AccountDeleteResponse$1 {
|
|
|
239
252
|
/** Human-readable message about the deletion */
|
|
240
253
|
message: string;
|
|
241
254
|
}
|
|
242
|
-
/**
|
|
243
|
-
* Serializer for updating user profile.
|
|
244
|
-
*
|
|
245
|
-
* Request model (no read-only fields).
|
|
246
|
-
*/
|
|
247
|
-
interface PatchedUserProfileUpdateRequest$1 {
|
|
248
|
-
first_name?: string;
|
|
249
|
-
last_name?: string;
|
|
250
|
-
company?: string;
|
|
251
|
-
phone?: string;
|
|
252
|
-
position?: string;
|
|
253
|
-
language?: string;
|
|
254
|
-
}
|
|
255
255
|
/**
|
|
256
256
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
257
257
|
*
|
|
@@ -325,6 +325,22 @@ declare class UserProfile {
|
|
|
325
325
|
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
+
/**
|
|
329
|
+
* Serializer for OTP request.
|
|
330
|
+
*
|
|
331
|
+
* Request model (no read-only fields).
|
|
332
|
+
*/
|
|
333
|
+
interface OTPRequestRequest$1 {
|
|
334
|
+
/** Email address or phone number for OTP delivery */
|
|
335
|
+
identifier: string;
|
|
336
|
+
/** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
337
|
+
|
|
338
|
+
* `email` - Email
|
|
339
|
+
* `phone` - Phone */
|
|
340
|
+
channel?: OTPRequestRequestChannel;
|
|
341
|
+
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
342
|
+
source_url?: string;
|
|
343
|
+
}
|
|
328
344
|
/**
|
|
329
345
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
330
346
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -346,22 +362,6 @@ interface OTPVerifyResponse$1 {
|
|
|
346
362
|
/** Whether user should be prompted to enable 2FA */
|
|
347
363
|
should_prompt_2fa?: boolean;
|
|
348
364
|
}
|
|
349
|
-
/**
|
|
350
|
-
* Serializer for OTP request.
|
|
351
|
-
*
|
|
352
|
-
* Request model (no read-only fields).
|
|
353
|
-
*/
|
|
354
|
-
interface OTPRequestRequest$1 {
|
|
355
|
-
/** Email address or phone number for OTP delivery */
|
|
356
|
-
identifier: string;
|
|
357
|
-
/** Delivery channel: 'email' or 'phone'. Auto-detected if not provided.
|
|
358
|
-
|
|
359
|
-
* `email` - Email
|
|
360
|
-
* `phone` - Phone */
|
|
361
|
-
channel?: OTPRequestRequestChannel;
|
|
362
|
-
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
363
|
-
source_url?: string;
|
|
364
|
-
}
|
|
365
365
|
/**
|
|
366
366
|
* OTP request response.
|
|
367
367
|
*
|
|
@@ -1277,27 +1277,22 @@ declare class API$2 {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
1279
|
/**
|
|
1280
|
-
*
|
|
1280
|
+
* Channel history response.
|
|
1281
1281
|
*
|
|
1282
|
-
*
|
|
1282
|
+
* Response model (includes read-only fields).
|
|
1283
1283
|
*/
|
|
1284
|
-
interface
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
/** Maximum number of messages to return */
|
|
1288
|
-
limit?: number | null;
|
|
1289
|
-
since?: CentrifugoStreamPosition$1 | null;
|
|
1290
|
-
/** Reverse message order (newest first) */
|
|
1291
|
-
reverse?: boolean | null;
|
|
1284
|
+
interface CentrifugoHistoryResponse$1 {
|
|
1285
|
+
error?: CentrifugoError$1 | null;
|
|
1286
|
+
result?: CentrifugoHistoryResult$1 | null;
|
|
1292
1287
|
}
|
|
1293
1288
|
/**
|
|
1294
|
-
*
|
|
1289
|
+
* Channel presence response.
|
|
1295
1290
|
*
|
|
1296
|
-
*
|
|
1291
|
+
* Response model (includes read-only fields).
|
|
1297
1292
|
*/
|
|
1298
|
-
interface
|
|
1299
|
-
|
|
1300
|
-
|
|
1293
|
+
interface CentrifugoPresenceResponse$1 {
|
|
1294
|
+
error?: CentrifugoError$1 | null;
|
|
1295
|
+
result?: CentrifugoPresenceResult$1 | null;
|
|
1301
1296
|
}
|
|
1302
1297
|
/**
|
|
1303
1298
|
* Server info response.
|
|
@@ -1309,31 +1304,13 @@ interface CentrifugoInfoResponse$1 {
|
|
|
1309
1304
|
result?: CentrifugoInfoResult$1 | null;
|
|
1310
1305
|
}
|
|
1311
1306
|
/**
|
|
1312
|
-
*
|
|
1313
|
-
*
|
|
1314
|
-
* Response model (includes read-only fields).
|
|
1315
|
-
*/
|
|
1316
|
-
interface CentrifugoPresenceStatsResponse$1 {
|
|
1317
|
-
error?: CentrifugoError$1 | null;
|
|
1318
|
-
result?: CentrifugoPresenceStatsResult$1 | null;
|
|
1319
|
-
}
|
|
1320
|
-
/**
|
|
1321
|
-
* Request to list active channels.
|
|
1307
|
+
* Request to get channel presence.
|
|
1322
1308
|
*
|
|
1323
1309
|
* Request model (no read-only fields).
|
|
1324
1310
|
*/
|
|
1325
|
-
interface
|
|
1326
|
-
/**
|
|
1327
|
-
|
|
1328
|
-
}
|
|
1329
|
-
/**
|
|
1330
|
-
* Channel presence response.
|
|
1331
|
-
*
|
|
1332
|
-
* Response model (includes read-only fields).
|
|
1333
|
-
*/
|
|
1334
|
-
interface CentrifugoPresenceResponse$1 {
|
|
1335
|
-
error?: CentrifugoError$1 | null;
|
|
1336
|
-
result?: CentrifugoPresenceResult$1 | null;
|
|
1311
|
+
interface CentrifugoPresenceRequestRequest$1 {
|
|
1312
|
+
/** Channel name */
|
|
1313
|
+
channel: string;
|
|
1337
1314
|
}
|
|
1338
1315
|
/**
|
|
1339
1316
|
* List of active channels response.
|
|
@@ -1345,33 +1322,58 @@ interface CentrifugoChannelsResponse$1 {
|
|
|
1345
1322
|
result?: CentrifugoChannelsResult$1 | null;
|
|
1346
1323
|
}
|
|
1347
1324
|
/**
|
|
1348
|
-
*
|
|
1325
|
+
* Request to get channel presence statistics.
|
|
1349
1326
|
*
|
|
1350
|
-
*
|
|
1327
|
+
* Request model (no read-only fields).
|
|
1351
1328
|
*/
|
|
1352
|
-
interface
|
|
1353
|
-
|
|
1354
|
-
|
|
1329
|
+
interface CentrifugoPresenceStatsRequestRequest$1 {
|
|
1330
|
+
/** Channel name */
|
|
1331
|
+
channel: string;
|
|
1355
1332
|
}
|
|
1356
1333
|
/**
|
|
1357
|
-
* Request to get channel
|
|
1334
|
+
* Request to get channel history.
|
|
1358
1335
|
*
|
|
1359
1336
|
* Request model (no read-only fields).
|
|
1360
1337
|
*/
|
|
1361
|
-
interface
|
|
1338
|
+
interface CentrifugoHistoryRequestRequest$1 {
|
|
1362
1339
|
/** Channel name */
|
|
1363
1340
|
channel: string;
|
|
1341
|
+
/** Maximum number of messages to return */
|
|
1342
|
+
limit?: number | null;
|
|
1343
|
+
since?: CentrifugoStreamPosition$1 | null;
|
|
1344
|
+
/** Reverse message order (newest first) */
|
|
1345
|
+
reverse?: boolean | null;
|
|
1364
1346
|
}
|
|
1365
1347
|
/**
|
|
1366
|
-
*
|
|
1348
|
+
* Request to list active channels.
|
|
1349
|
+
*
|
|
1350
|
+
* Request model (no read-only fields).
|
|
1351
|
+
*/
|
|
1352
|
+
interface CentrifugoChannelsRequestRequest$1 {
|
|
1353
|
+
/** Pattern to filter channels (e.g., 'user:*') */
|
|
1354
|
+
pattern?: string | null;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Channel presence stats response.
|
|
1367
1358
|
*
|
|
1368
1359
|
* Response model (includes read-only fields).
|
|
1369
1360
|
*/
|
|
1370
|
-
interface
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1361
|
+
interface CentrifugoPresenceStatsResponse$1 {
|
|
1362
|
+
error?: CentrifugoError$1 | null;
|
|
1363
|
+
result?: CentrifugoPresenceStatsResult$1 | null;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* History result wrapper.
|
|
1367
|
+
*
|
|
1368
|
+
* Response model (includes read-only fields).
|
|
1369
|
+
*/
|
|
1370
|
+
interface CentrifugoHistoryResult$1 {
|
|
1371
|
+
/** List of publications */
|
|
1372
|
+
publications: Array<CentrifugoPublication$1>;
|
|
1373
|
+
/** Current stream epoch */
|
|
1374
1374
|
epoch: string;
|
|
1375
|
+
/** Latest stream offset */
|
|
1376
|
+
offset: number;
|
|
1375
1377
|
}
|
|
1376
1378
|
/**
|
|
1377
1379
|
* Centrifugo API error structure.
|
|
@@ -1384,6 +1386,15 @@ interface CentrifugoError$1 {
|
|
|
1384
1386
|
/** Error message */
|
|
1385
1387
|
message?: string;
|
|
1386
1388
|
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Presence result wrapper.
|
|
1391
|
+
*
|
|
1392
|
+
* Response model (includes read-only fields).
|
|
1393
|
+
*/
|
|
1394
|
+
interface CentrifugoPresenceResult$1 {
|
|
1395
|
+
/** Map of client IDs to client info */
|
|
1396
|
+
presence: Record<string, CentrifugoClientInfo$1>;
|
|
1397
|
+
}
|
|
1387
1398
|
/**
|
|
1388
1399
|
* Info result wrapper.
|
|
1389
1400
|
*
|
|
@@ -1394,46 +1405,64 @@ interface CentrifugoInfoResult$1 {
|
|
|
1394
1405
|
nodes: Array<CentrifugoNodeInfo$1>;
|
|
1395
1406
|
}
|
|
1396
1407
|
/**
|
|
1397
|
-
*
|
|
1408
|
+
* Channels result wrapper.
|
|
1398
1409
|
*
|
|
1399
1410
|
* Response model (includes read-only fields).
|
|
1400
1411
|
*/
|
|
1401
|
-
interface
|
|
1402
|
-
/**
|
|
1403
|
-
|
|
1404
|
-
/** Number of unique users */
|
|
1405
|
-
num_users: number;
|
|
1412
|
+
interface CentrifugoChannelsResult$1 {
|
|
1413
|
+
/** Map of channel names to channel info */
|
|
1414
|
+
channels: Record<string, CentrifugoChannelInfo$1>;
|
|
1406
1415
|
}
|
|
1407
1416
|
/**
|
|
1408
|
-
*
|
|
1417
|
+
* Stream position for pagination.
|
|
1418
|
+
*
|
|
1419
|
+
* Response model (includes read-only fields).
|
|
1420
|
+
*/
|
|
1421
|
+
interface CentrifugoStreamPosition$1 {
|
|
1422
|
+
/** Stream offset */
|
|
1423
|
+
offset: number;
|
|
1424
|
+
/** Stream epoch */
|
|
1425
|
+
epoch: string;
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* Presence stats result.
|
|
1409
1429
|
*
|
|
1410
1430
|
* Response model (includes read-only fields).
|
|
1411
1431
|
*/
|
|
1412
|
-
interface
|
|
1413
|
-
/**
|
|
1414
|
-
|
|
1432
|
+
interface CentrifugoPresenceStatsResult$1 {
|
|
1433
|
+
/** Number of connected clients */
|
|
1434
|
+
num_clients: number;
|
|
1435
|
+
/** Number of unique users */
|
|
1436
|
+
num_users: number;
|
|
1415
1437
|
}
|
|
1416
1438
|
/**
|
|
1417
|
-
*
|
|
1439
|
+
* Single publication (message) in channel history.
|
|
1418
1440
|
*
|
|
1419
1441
|
* Response model (includes read-only fields).
|
|
1420
1442
|
*/
|
|
1421
|
-
interface
|
|
1422
|
-
/**
|
|
1423
|
-
|
|
1443
|
+
interface CentrifugoPublication$1 {
|
|
1444
|
+
/** Message payload */
|
|
1445
|
+
data: Record<string, any>;
|
|
1446
|
+
info?: CentrifugoClientInfo$1 | null;
|
|
1447
|
+
/** Message offset in channel stream */
|
|
1448
|
+
offset: number;
|
|
1449
|
+
/** Optional message tags */
|
|
1450
|
+
tags?: Record<string, any> | null;
|
|
1424
1451
|
}
|
|
1425
1452
|
/**
|
|
1426
|
-
*
|
|
1453
|
+
* Information about connected client.
|
|
1427
1454
|
*
|
|
1428
1455
|
* Response model (includes read-only fields).
|
|
1429
1456
|
*/
|
|
1430
|
-
interface
|
|
1431
|
-
/**
|
|
1432
|
-
|
|
1433
|
-
/**
|
|
1434
|
-
|
|
1435
|
-
/**
|
|
1436
|
-
|
|
1457
|
+
interface CentrifugoClientInfo$1 {
|
|
1458
|
+
/** User ID */
|
|
1459
|
+
user: string;
|
|
1460
|
+
/** Client UUID */
|
|
1461
|
+
client: string;
|
|
1462
|
+
/** Connection metadata */
|
|
1463
|
+
conn_info?: Record<string, any> | null;
|
|
1464
|
+
/** Channel-specific metadata */
|
|
1465
|
+
chan_info?: Record<string, any> | null;
|
|
1437
1466
|
}
|
|
1438
1467
|
/**
|
|
1439
1468
|
* Information about a single Centrifugo node.
|
|
@@ -1460,21 +1489,6 @@ interface CentrifugoNodeInfo$1 {
|
|
|
1460
1489
|
metrics?: CentrifugoMetrics$1 | null;
|
|
1461
1490
|
process?: CentrifugoProcess$1 | null;
|
|
1462
1491
|
}
|
|
1463
|
-
/**
|
|
1464
|
-
* Information about connected client.
|
|
1465
|
-
*
|
|
1466
|
-
* Response model (includes read-only fields).
|
|
1467
|
-
*/
|
|
1468
|
-
interface CentrifugoClientInfo$1 {
|
|
1469
|
-
/** User ID */
|
|
1470
|
-
user: string;
|
|
1471
|
-
/** Client UUID */
|
|
1472
|
-
client: string;
|
|
1473
|
-
/** Connection metadata */
|
|
1474
|
-
conn_info?: Record<string, any> | null;
|
|
1475
|
-
/** Channel-specific metadata */
|
|
1476
|
-
chan_info?: Record<string, any> | null;
|
|
1477
|
-
}
|
|
1478
1492
|
/**
|
|
1479
1493
|
* Information about a single channel.
|
|
1480
1494
|
*
|
|
@@ -1485,18 +1499,15 @@ interface CentrifugoChannelInfo$1 {
|
|
|
1485
1499
|
num_clients: number;
|
|
1486
1500
|
}
|
|
1487
1501
|
/**
|
|
1488
|
-
*
|
|
1502
|
+
* Server metrics.
|
|
1489
1503
|
*
|
|
1490
1504
|
* Response model (includes read-only fields).
|
|
1491
1505
|
*/
|
|
1492
|
-
interface
|
|
1493
|
-
/**
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
offset: number;
|
|
1498
|
-
/** Optional message tags */
|
|
1499
|
-
tags?: Record<string, any> | null;
|
|
1506
|
+
interface CentrifugoMetrics$1 {
|
|
1507
|
+
/** Metrics collection interval */
|
|
1508
|
+
interval: number;
|
|
1509
|
+
/** Metric name to value mapping */
|
|
1510
|
+
items: Record<string, any>;
|
|
1500
1511
|
}
|
|
1501
1512
|
/**
|
|
1502
1513
|
* Process information.
|
|
@@ -1509,17 +1520,6 @@ interface CentrifugoProcess$1 {
|
|
|
1509
1520
|
/** Resident set size in bytes */
|
|
1510
1521
|
rss: number;
|
|
1511
1522
|
}
|
|
1512
|
-
/**
|
|
1513
|
-
* Server metrics.
|
|
1514
|
-
*
|
|
1515
|
-
* Response model (includes read-only fields).
|
|
1516
|
-
*/
|
|
1517
|
-
interface CentrifugoMetrics$1 {
|
|
1518
|
-
/** Metrics collection interval */
|
|
1519
|
-
interval: number;
|
|
1520
|
-
/** Metric name to value mapping */
|
|
1521
|
-
items: Record<string, any>;
|
|
1522
|
-
}
|
|
1523
1523
|
|
|
1524
1524
|
/**
|
|
1525
1525
|
* API endpoints for Centrifugo Admin API.
|
|
@@ -1598,6 +1598,16 @@ declare class CentrifugoAuth {
|
|
|
1598
1598
|
tokenRetrieve(): Promise<ConnectionTokenResponse$1>;
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
|
+
/**
|
|
1602
|
+
* Timeline response with hourly/daily breakdown for DRF.
|
|
1603
|
+
*
|
|
1604
|
+
* Response model (includes read-only fields).
|
|
1605
|
+
*/
|
|
1606
|
+
interface TimelineResponse$1 {
|
|
1607
|
+
timeline: Array<TimelineItem$1>;
|
|
1608
|
+
period_hours: number;
|
|
1609
|
+
interval: string;
|
|
1610
|
+
}
|
|
1601
1611
|
/**
|
|
1602
1612
|
*
|
|
1603
1613
|
* Response model (includes read-only fields).
|
|
@@ -1623,14 +1633,30 @@ interface PaginatedPublishList$1 {
|
|
|
1623
1633
|
results: Array<Publish$1>;
|
|
1624
1634
|
}
|
|
1625
1635
|
/**
|
|
1626
|
-
*
|
|
1636
|
+
* List of channel statistics.
|
|
1627
1637
|
*
|
|
1628
1638
|
* Response model (includes read-only fields).
|
|
1629
1639
|
*/
|
|
1630
|
-
interface
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1640
|
+
interface ChannelList$1 {
|
|
1641
|
+
/** Channel statistics */
|
|
1642
|
+
channels: Array<ChannelStats$1>;
|
|
1643
|
+
/** Total number of channels */
|
|
1644
|
+
total_channels: number;
|
|
1645
|
+
}
|
|
1646
|
+
/**
|
|
1647
|
+
* Health check response.
|
|
1648
|
+
*
|
|
1649
|
+
* Response model (includes read-only fields).
|
|
1650
|
+
*/
|
|
1651
|
+
interface CentrifugoHealthCheck$1 {
|
|
1652
|
+
/** Health status: healthy or unhealthy */
|
|
1653
|
+
status: string;
|
|
1654
|
+
/** Configured wrapper URL */
|
|
1655
|
+
wrapper_url: string;
|
|
1656
|
+
/** Whether API key is configured */
|
|
1657
|
+
has_api_key: boolean;
|
|
1658
|
+
/** Current timestamp */
|
|
1659
|
+
timestamp: string;
|
|
1634
1660
|
}
|
|
1635
1661
|
/**
|
|
1636
1662
|
* Overview statistics for Centrifugo publishes.
|
|
@@ -1656,30 +1682,16 @@ interface CentrifugoOverviewStats$1 {
|
|
|
1656
1682
|
period_hours: number;
|
|
1657
1683
|
}
|
|
1658
1684
|
/**
|
|
1659
|
-
*
|
|
1685
|
+
* Single timeline data point for DRF.
|
|
1660
1686
|
*
|
|
1661
1687
|
* Response model (includes read-only fields).
|
|
1662
1688
|
*/
|
|
1663
|
-
interface
|
|
1664
|
-
/** Health status: healthy or unhealthy */
|
|
1665
|
-
status: string;
|
|
1666
|
-
/** Configured wrapper URL */
|
|
1667
|
-
wrapper_url: string;
|
|
1668
|
-
/** Whether API key is configured */
|
|
1669
|
-
has_api_key: boolean;
|
|
1670
|
-
/** Current timestamp */
|
|
1689
|
+
interface TimelineItem$1 {
|
|
1671
1690
|
timestamp: string;
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
* Response model (includes read-only fields).
|
|
1677
|
-
*/
|
|
1678
|
-
interface ChannelList$1 {
|
|
1679
|
-
/** Channel statistics */
|
|
1680
|
-
channels: Array<ChannelStats$1>;
|
|
1681
|
-
/** Total number of channels */
|
|
1682
|
-
total_channels: number;
|
|
1691
|
+
count: number;
|
|
1692
|
+
successful: number;
|
|
1693
|
+
failed: number;
|
|
1694
|
+
timeout: number;
|
|
1683
1695
|
}
|
|
1684
1696
|
/**
|
|
1685
1697
|
* Single publish item for DRF pagination.
|
|
@@ -1699,18 +1711,6 @@ interface Publish$1 {
|
|
|
1699
1711
|
error_code: string | null;
|
|
1700
1712
|
error_message: string | null;
|
|
1701
1713
|
}
|
|
1702
|
-
/**
|
|
1703
|
-
* Single timeline data point for DRF.
|
|
1704
|
-
*
|
|
1705
|
-
* Response model (includes read-only fields).
|
|
1706
|
-
*/
|
|
1707
|
-
interface TimelineItem$1 {
|
|
1708
|
-
timestamp: string;
|
|
1709
|
-
count: number;
|
|
1710
|
-
successful: number;
|
|
1711
|
-
failed: number;
|
|
1712
|
-
timeout: number;
|
|
1713
|
-
}
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Statistics per channel.
|
|
1716
1716
|
*
|
|
@@ -1769,6 +1769,19 @@ declare class CentrifugoMonitoring {
|
|
|
1769
1769
|
}): Promise<TimelineResponse$1>;
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
|
+
/**
|
|
1773
|
+
* Response model for manual ACK.
|
|
1774
|
+
*
|
|
1775
|
+
* Response model (includes read-only fields).
|
|
1776
|
+
*/
|
|
1777
|
+
interface ManualAckResponse$1 {
|
|
1778
|
+
/** Whether ACK was sent successfully */
|
|
1779
|
+
success: boolean;
|
|
1780
|
+
/** Message ID that was acknowledged */
|
|
1781
|
+
message_id: string;
|
|
1782
|
+
/** Error message if failed */
|
|
1783
|
+
error?: string | null;
|
|
1784
|
+
}
|
|
1772
1785
|
/**
|
|
1773
1786
|
* Request model for test message publishing.
|
|
1774
1787
|
*
|
|
@@ -1814,19 +1827,6 @@ interface ManualAckRequestRequest$1 {
|
|
|
1814
1827
|
/** Client ID sending the ACK */
|
|
1815
1828
|
client_id: string;
|
|
1816
1829
|
}
|
|
1817
|
-
/**
|
|
1818
|
-
* Response model for manual ACK.
|
|
1819
|
-
*
|
|
1820
|
-
* Response model (includes read-only fields).
|
|
1821
|
-
*/
|
|
1822
|
-
interface ManualAckResponse$1 {
|
|
1823
|
-
/** Whether ACK was sent successfully */
|
|
1824
|
-
success: boolean;
|
|
1825
|
-
/** Message ID that was acknowledged */
|
|
1826
|
-
message_id: string;
|
|
1827
|
-
/** Error message if failed */
|
|
1828
|
-
error?: string | null;
|
|
1829
|
-
}
|
|
1830
1830
|
|
|
1831
1831
|
/**
|
|
1832
1832
|
* API endpoints for Centrifugo Testing.
|
|
@@ -3196,6 +3196,15 @@ interface BackupCodesStatus$1 {
|
|
|
3196
3196
|
/** Warning if running low on codes */
|
|
3197
3197
|
warning?: string | null;
|
|
3198
3198
|
}
|
|
3199
|
+
/**
|
|
3200
|
+
* Serializer for regenerating backup codes.
|
|
3201
|
+
*
|
|
3202
|
+
* Request model (no read-only fields).
|
|
3203
|
+
*/
|
|
3204
|
+
interface BackupCodesRegenerateRequest$1 {
|
|
3205
|
+
/** TOTP code for verification */
|
|
3206
|
+
code: string;
|
|
3207
|
+
}
|
|
3199
3208
|
/**
|
|
3200
3209
|
* Response serializer for backup codes regeneration.
|
|
3201
3210
|
*
|
|
@@ -3207,15 +3216,6 @@ interface BackupCodesRegenerateResponse$1 {
|
|
|
3207
3216
|
/** Warning about previous codes being invalidated */
|
|
3208
3217
|
warning: string;
|
|
3209
3218
|
}
|
|
3210
|
-
/**
|
|
3211
|
-
* Serializer for regenerating backup codes.
|
|
3212
|
-
*
|
|
3213
|
-
* Request model (no read-only fields).
|
|
3214
|
-
*/
|
|
3215
|
-
interface BackupCodesRegenerateRequest$1 {
|
|
3216
|
-
/** TOTP code for verification */
|
|
3217
|
-
code: string;
|
|
3218
|
-
}
|
|
3219
3219
|
|
|
3220
3220
|
/**
|
|
3221
3221
|
* API endpoints for Backup Codes.
|
|
@@ -3245,6 +3245,15 @@ declare enum DeviceListStatus {
|
|
|
3245
3245
|
DISABLED = "disabled"
|
|
3246
3246
|
}
|
|
3247
3247
|
|
|
3248
|
+
/**
|
|
3249
|
+
* Serializer for completely disabling 2FA.
|
|
3250
|
+
*
|
|
3251
|
+
* Request model (no read-only fields).
|
|
3252
|
+
*/
|
|
3253
|
+
interface DisableRequest$1 {
|
|
3254
|
+
/** TOTP code for verification */
|
|
3255
|
+
code: string;
|
|
3256
|
+
}
|
|
3248
3257
|
/**
|
|
3249
3258
|
*
|
|
3250
3259
|
* Response model (includes read-only fields).
|
|
@@ -3269,15 +3278,6 @@ interface PaginatedDeviceListResponseList$1 {
|
|
|
3269
3278
|
/** Array of items for current page */
|
|
3270
3279
|
results: Array<DeviceListResponse$1>;
|
|
3271
3280
|
}
|
|
3272
|
-
/**
|
|
3273
|
-
* Serializer for completely disabling 2FA.
|
|
3274
|
-
*
|
|
3275
|
-
* Request model (no read-only fields).
|
|
3276
|
-
*/
|
|
3277
|
-
interface DisableRequest$1 {
|
|
3278
|
-
/** TOTP code for verification */
|
|
3279
|
-
code: string;
|
|
3280
|
-
}
|
|
3281
3281
|
/**
|
|
3282
3282
|
* Response serializer for device list endpoint.
|
|
3283
3283
|
*
|
|
@@ -3328,6 +3328,18 @@ declare class TotpManagement {
|
|
|
3328
3328
|
totpDisableCreate(data: DisableRequest$1): Promise<any>;
|
|
3329
3329
|
}
|
|
3330
3330
|
|
|
3331
|
+
/**
|
|
3332
|
+
* Response serializer for setup confirmation.
|
|
3333
|
+
*
|
|
3334
|
+
* Response model (includes read-only fields).
|
|
3335
|
+
*/
|
|
3336
|
+
interface ConfirmSetupResponse$1 {
|
|
3337
|
+
message: string;
|
|
3338
|
+
/** List of backup recovery codes (save these!) */
|
|
3339
|
+
backup_codes: Array<string>;
|
|
3340
|
+
/** Warning message about backup codes */
|
|
3341
|
+
backup_codes_warning: string;
|
|
3342
|
+
}
|
|
3331
3343
|
/**
|
|
3332
3344
|
* Response serializer for setup initiation.
|
|
3333
3345
|
*
|
|
@@ -3356,18 +3368,6 @@ interface ConfirmSetupRequest$1 {
|
|
|
3356
3368
|
/** 6-digit TOTP code from authenticator app */
|
|
3357
3369
|
code: string;
|
|
3358
3370
|
}
|
|
3359
|
-
/**
|
|
3360
|
-
* Response serializer for setup confirmation.
|
|
3361
|
-
*
|
|
3362
|
-
* Response model (includes read-only fields).
|
|
3363
|
-
*/
|
|
3364
|
-
interface ConfirmSetupResponse$1 {
|
|
3365
|
-
message: string;
|
|
3366
|
-
/** List of backup recovery codes (save these!) */
|
|
3367
|
-
backup_codes: Array<string>;
|
|
3368
|
-
/** Warning message about backup codes */
|
|
3369
|
-
backup_codes_warning: string;
|
|
3370
|
-
}
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Serializer for starting 2FA setup.
|
|
3373
3373
|
*
|
|
@@ -3397,15 +3397,15 @@ declare class TotpSetup {
|
|
|
3397
3397
|
}
|
|
3398
3398
|
|
|
3399
3399
|
/**
|
|
3400
|
-
* Serializer for
|
|
3400
|
+
* Serializer for TOTP code verification during login.
|
|
3401
3401
|
*
|
|
3402
3402
|
* Request model (no read-only fields).
|
|
3403
3403
|
*/
|
|
3404
|
-
interface
|
|
3404
|
+
interface VerifyRequest$1 {
|
|
3405
3405
|
/** 2FA session ID from login response */
|
|
3406
3406
|
session_id: string;
|
|
3407
|
-
/**
|
|
3408
|
-
|
|
3407
|
+
/** 6-digit TOTP code from authenticator app */
|
|
3408
|
+
code: string;
|
|
3409
3409
|
}
|
|
3410
3410
|
/**
|
|
3411
3411
|
* Response serializer for successful 2FA verification.
|
|
@@ -3425,15 +3425,15 @@ interface VerifyResponse$1 {
|
|
|
3425
3425
|
warning?: string;
|
|
3426
3426
|
}
|
|
3427
3427
|
/**
|
|
3428
|
-
* Serializer for
|
|
3428
|
+
* Serializer for backup code verification during login.
|
|
3429
3429
|
*
|
|
3430
3430
|
* Request model (no read-only fields).
|
|
3431
3431
|
*/
|
|
3432
|
-
interface
|
|
3432
|
+
interface VerifyBackupRequest$1 {
|
|
3433
3433
|
/** 2FA session ID from login response */
|
|
3434
3434
|
session_id: string;
|
|
3435
|
-
/**
|
|
3436
|
-
|
|
3435
|
+
/** 8-character backup recovery code */
|
|
3436
|
+
backup_code: string;
|
|
3437
3437
|
}
|
|
3438
3438
|
/**
|
|
3439
3439
|
* User data returned after 2FA verification.
|