@djangocfg/api 2.1.228 → 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.
- package/dist/clients.d.cts +234 -234
- package/dist/clients.d.ts +234 -234
- package/dist/hooks.d.cts +54 -54
- package/dist/hooks.d.ts +54 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -83
- package/dist/index.d.ts +83 -83
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +43 -43
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +22 -22
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +23 -23
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +99 -99
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +28 -28
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +16 -16
- 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 +15 -15
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +12 -12
package/dist/clients.d.cts
CHANGED
|
@@ -45,13 +45,15 @@ declare namespace enums {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Request to start OAuth flow.
|
|
49
49
|
*
|
|
50
|
-
*
|
|
50
|
+
* Request model (no read-only fields).
|
|
51
51
|
*/
|
|
52
|
-
interface
|
|
53
|
-
/**
|
|
54
|
-
|
|
52
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
53
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
54
|
+
redirect_uri?: string;
|
|
55
|
+
/** Optional source URL for registration tracking */
|
|
56
|
+
source_url?: string;
|
|
55
57
|
}
|
|
56
58
|
/**
|
|
57
59
|
* Request to disconnect OAuth provider.
|
|
@@ -65,15 +67,13 @@ interface OAuthDisconnectRequestRequest$1 {
|
|
|
65
67
|
provider: OAuthConnectionProvider;
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
68
|
-
*
|
|
70
|
+
* Response with available OAuth providers.
|
|
69
71
|
*
|
|
70
|
-
*
|
|
72
|
+
* Response model (includes read-only fields).
|
|
71
73
|
*/
|
|
72
|
-
interface
|
|
73
|
-
/**
|
|
74
|
-
|
|
75
|
-
/** Optional source URL for registration tracking */
|
|
76
|
-
source_url?: string;
|
|
74
|
+
interface OAuthProvidersResponse$1 {
|
|
75
|
+
/** List of available OAuth providers */
|
|
76
|
+
providers: Array<Record<string, any>>;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Request to complete OAuth flow (callback handler).
|
|
@@ -166,17 +166,6 @@ declare class Oauth {
|
|
|
166
166
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse$1>;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
/**
|
|
170
|
-
* Response serializer for account deletion.
|
|
171
|
-
*
|
|
172
|
-
* Response model (includes read-only fields).
|
|
173
|
-
*/
|
|
174
|
-
interface AccountDeleteResponse$1 {
|
|
175
|
-
/** Whether the account was successfully deleted */
|
|
176
|
-
success: boolean;
|
|
177
|
-
/** Human-readable message about the deletion */
|
|
178
|
-
message: string;
|
|
179
|
-
}
|
|
180
169
|
/**
|
|
181
170
|
* Serializer for updating user profile.
|
|
182
171
|
*
|
|
@@ -191,17 +180,12 @@ interface UserProfileUpdateRequest$1 {
|
|
|
191
180
|
language?: string;
|
|
192
181
|
}
|
|
193
182
|
/**
|
|
194
|
-
* Serializer for updating user profile.
|
|
195
183
|
*
|
|
196
184
|
* Request model (no read-only fields).
|
|
197
185
|
*/
|
|
198
|
-
interface
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
company?: string;
|
|
202
|
-
phone?: string;
|
|
203
|
-
position?: string;
|
|
204
|
-
language?: string;
|
|
186
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
187
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
188
|
+
avatar: File | Blob;
|
|
205
189
|
}
|
|
206
190
|
/**
|
|
207
191
|
* Serializer for user details.
|
|
@@ -234,12 +218,28 @@ interface User$2 {
|
|
|
234
218
|
centrifugo: CentrifugoToken$2 | null;
|
|
235
219
|
}
|
|
236
220
|
/**
|
|
221
|
+
* Serializer for updating user profile.
|
|
237
222
|
*
|
|
238
223
|
* Request model (no read-only fields).
|
|
239
224
|
*/
|
|
240
|
-
interface
|
|
241
|
-
|
|
242
|
-
|
|
225
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
226
|
+
first_name?: string;
|
|
227
|
+
last_name?: string;
|
|
228
|
+
company?: string;
|
|
229
|
+
phone?: string;
|
|
230
|
+
position?: string;
|
|
231
|
+
language?: string;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Response serializer for account deletion.
|
|
235
|
+
*
|
|
236
|
+
* Response model (includes read-only fields).
|
|
237
|
+
*/
|
|
238
|
+
interface AccountDeleteResponse$1 {
|
|
239
|
+
/** Whether the account was successfully deleted */
|
|
240
|
+
success: boolean;
|
|
241
|
+
/** Human-readable message about the deletion */
|
|
242
|
+
message: string;
|
|
243
243
|
}
|
|
244
244
|
/**
|
|
245
245
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
@@ -314,26 +314,6 @@ declare class UserProfile {
|
|
|
314
314
|
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
/**
|
|
318
|
-
* Serializer for OTP request.
|
|
319
|
-
*
|
|
320
|
-
* Request model (no read-only fields).
|
|
321
|
-
*/
|
|
322
|
-
interface OTPRequestRequest$1 {
|
|
323
|
-
/** Email address for OTP delivery */
|
|
324
|
-
identifier: string;
|
|
325
|
-
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
326
|
-
source_url?: string;
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* OTP request response.
|
|
330
|
-
*
|
|
331
|
-
* Response model (includes read-only fields).
|
|
332
|
-
*/
|
|
333
|
-
interface OTPRequestResponse$1 {
|
|
334
|
-
/** Success message */
|
|
335
|
-
message: string;
|
|
336
|
-
}
|
|
337
317
|
/**
|
|
338
318
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
339
319
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -367,6 +347,26 @@ interface OTPVerifyRequest$1 {
|
|
|
367
347
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
368
348
|
source_url?: string;
|
|
369
349
|
}
|
|
350
|
+
/**
|
|
351
|
+
* Serializer for OTP request.
|
|
352
|
+
*
|
|
353
|
+
* Request model (no read-only fields).
|
|
354
|
+
*/
|
|
355
|
+
interface OTPRequestRequest$1 {
|
|
356
|
+
/** Email address for OTP delivery */
|
|
357
|
+
identifier: string;
|
|
358
|
+
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
359
|
+
source_url?: string;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* OTP request response.
|
|
363
|
+
*
|
|
364
|
+
* Response model (includes read-only fields).
|
|
365
|
+
*/
|
|
366
|
+
interface OTPRequestResponse$1 {
|
|
367
|
+
/** Success message */
|
|
368
|
+
message: string;
|
|
369
|
+
}
|
|
370
370
|
/**
|
|
371
371
|
* Serializer for user details.
|
|
372
372
|
*
|
|
@@ -1275,6 +1275,29 @@ declare class API$2 {
|
|
|
1275
1275
|
getSchemaPath(): string;
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
+
/**
|
|
1279
|
+
* Request to get channel history.
|
|
1280
|
+
*
|
|
1281
|
+
* Request model (no read-only fields).
|
|
1282
|
+
*/
|
|
1283
|
+
interface CentrifugoHistoryRequestRequest$1 {
|
|
1284
|
+
/** Channel name */
|
|
1285
|
+
channel: string;
|
|
1286
|
+
/** Maximum number of messages to return */
|
|
1287
|
+
limit?: number | null;
|
|
1288
|
+
since?: CentrifugoStreamPosition$1 | null;
|
|
1289
|
+
/** Reverse message order (newest first) */
|
|
1290
|
+
reverse?: boolean | null;
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* Request to list active channels.
|
|
1294
|
+
*
|
|
1295
|
+
* Request model (no read-only fields).
|
|
1296
|
+
*/
|
|
1297
|
+
interface CentrifugoChannelsRequestRequest$1 {
|
|
1298
|
+
/** Pattern to filter channels (e.g., 'user:*') */
|
|
1299
|
+
pattern?: string | null;
|
|
1300
|
+
}
|
|
1278
1301
|
/**
|
|
1279
1302
|
* Channel presence response.
|
|
1280
1303
|
*
|
|
@@ -1285,22 +1308,31 @@ interface CentrifugoPresenceResponse$1 {
|
|
|
1285
1308
|
result?: CentrifugoPresenceResult$1 | null;
|
|
1286
1309
|
}
|
|
1287
1310
|
/**
|
|
1288
|
-
* Request to get channel presence.
|
|
1311
|
+
* Request to get channel presence statistics.
|
|
1289
1312
|
*
|
|
1290
1313
|
* Request model (no read-only fields).
|
|
1291
1314
|
*/
|
|
1292
|
-
interface
|
|
1315
|
+
interface CentrifugoPresenceStatsRequestRequest$1 {
|
|
1293
1316
|
/** Channel name */
|
|
1294
1317
|
channel: string;
|
|
1295
1318
|
}
|
|
1296
1319
|
/**
|
|
1297
|
-
* Channel
|
|
1320
|
+
* Channel presence stats response.
|
|
1298
1321
|
*
|
|
1299
1322
|
* Response model (includes read-only fields).
|
|
1300
1323
|
*/
|
|
1301
|
-
interface
|
|
1324
|
+
interface CentrifugoPresenceStatsResponse$1 {
|
|
1302
1325
|
error?: CentrifugoError$1 | null;
|
|
1303
|
-
result?:
|
|
1326
|
+
result?: CentrifugoPresenceStatsResult$1 | null;
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* List of active channels response.
|
|
1330
|
+
*
|
|
1331
|
+
* Response model (includes read-only fields).
|
|
1332
|
+
*/
|
|
1333
|
+
interface CentrifugoChannelsResponse$1 {
|
|
1334
|
+
error?: CentrifugoError$1 | null;
|
|
1335
|
+
result?: CentrifugoChannelsResult$1 | null;
|
|
1304
1336
|
}
|
|
1305
1337
|
/**
|
|
1306
1338
|
* Server info response.
|
|
@@ -1312,54 +1344,42 @@ interface CentrifugoInfoResponse$1 {
|
|
|
1312
1344
|
result?: CentrifugoInfoResult$1 | null;
|
|
1313
1345
|
}
|
|
1314
1346
|
/**
|
|
1315
|
-
*
|
|
1347
|
+
* Channel history response.
|
|
1316
1348
|
*
|
|
1317
|
-
*
|
|
1349
|
+
* Response model (includes read-only fields).
|
|
1318
1350
|
*/
|
|
1319
|
-
interface
|
|
1320
|
-
|
|
1321
|
-
|
|
1351
|
+
interface CentrifugoHistoryResponse$1 {
|
|
1352
|
+
error?: CentrifugoError$1 | null;
|
|
1353
|
+
result?: CentrifugoHistoryResult$1 | null;
|
|
1322
1354
|
}
|
|
1323
1355
|
/**
|
|
1324
|
-
* Request to get channel
|
|
1356
|
+
* Request to get channel presence.
|
|
1325
1357
|
*
|
|
1326
1358
|
* Request model (no read-only fields).
|
|
1327
1359
|
*/
|
|
1328
|
-
interface
|
|
1360
|
+
interface CentrifugoPresenceRequestRequest$1 {
|
|
1329
1361
|
/** Channel name */
|
|
1330
1362
|
channel: string;
|
|
1331
|
-
/** Maximum number of messages to return */
|
|
1332
|
-
limit?: number | null;
|
|
1333
|
-
since?: CentrifugoStreamPosition$1 | null;
|
|
1334
|
-
/** Reverse message order (newest first) */
|
|
1335
|
-
reverse?: boolean | null;
|
|
1336
1363
|
}
|
|
1337
1364
|
/**
|
|
1338
|
-
*
|
|
1339
|
-
*
|
|
1340
|
-
* Request model (no read-only fields).
|
|
1341
|
-
*/
|
|
1342
|
-
interface CentrifugoChannelsRequestRequest$1 {
|
|
1343
|
-
/** Pattern to filter channels (e.g., 'user:*') */
|
|
1344
|
-
pattern?: string | null;
|
|
1345
|
-
}
|
|
1346
|
-
/**
|
|
1347
|
-
* List of active channels response.
|
|
1365
|
+
* Stream position for pagination.
|
|
1348
1366
|
*
|
|
1349
1367
|
* Response model (includes read-only fields).
|
|
1350
1368
|
*/
|
|
1351
|
-
interface
|
|
1352
|
-
|
|
1353
|
-
|
|
1369
|
+
interface CentrifugoStreamPosition$1 {
|
|
1370
|
+
/** Stream offset */
|
|
1371
|
+
offset: number;
|
|
1372
|
+
/** Stream epoch */
|
|
1373
|
+
epoch: string;
|
|
1354
1374
|
}
|
|
1355
1375
|
/**
|
|
1356
|
-
*
|
|
1376
|
+
* Presence result wrapper.
|
|
1357
1377
|
*
|
|
1358
1378
|
* Response model (includes read-only fields).
|
|
1359
1379
|
*/
|
|
1360
|
-
interface
|
|
1361
|
-
|
|
1362
|
-
|
|
1380
|
+
interface CentrifugoPresenceResult$1 {
|
|
1381
|
+
/** Map of client IDs to client info */
|
|
1382
|
+
presence: Record<string, CentrifugoClientInfo$1>;
|
|
1363
1383
|
}
|
|
1364
1384
|
/**
|
|
1365
1385
|
* Centrifugo API error structure.
|
|
@@ -1373,26 +1393,24 @@ interface CentrifugoError$1 {
|
|
|
1373
1393
|
message?: string;
|
|
1374
1394
|
}
|
|
1375
1395
|
/**
|
|
1376
|
-
* Presence result
|
|
1396
|
+
* Presence stats result.
|
|
1377
1397
|
*
|
|
1378
1398
|
* Response model (includes read-only fields).
|
|
1379
1399
|
*/
|
|
1380
|
-
interface
|
|
1381
|
-
/**
|
|
1382
|
-
|
|
1400
|
+
interface CentrifugoPresenceStatsResult$1 {
|
|
1401
|
+
/** Number of connected clients */
|
|
1402
|
+
num_clients: number;
|
|
1403
|
+
/** Number of unique users */
|
|
1404
|
+
num_users: number;
|
|
1383
1405
|
}
|
|
1384
1406
|
/**
|
|
1385
|
-
*
|
|
1407
|
+
* Channels result wrapper.
|
|
1386
1408
|
*
|
|
1387
1409
|
* Response model (includes read-only fields).
|
|
1388
1410
|
*/
|
|
1389
|
-
interface
|
|
1390
|
-
/**
|
|
1391
|
-
|
|
1392
|
-
/** Current stream epoch */
|
|
1393
|
-
epoch: string;
|
|
1394
|
-
/** Latest stream offset */
|
|
1395
|
-
offset: number;
|
|
1411
|
+
interface CentrifugoChannelsResult$1 {
|
|
1412
|
+
/** Map of channel names to channel info */
|
|
1413
|
+
channels: Record<string, CentrifugoChannelInfo$1>;
|
|
1396
1414
|
}
|
|
1397
1415
|
/**
|
|
1398
1416
|
* Info result wrapper.
|
|
@@ -1404,35 +1422,17 @@ interface CentrifugoInfoResult$1 {
|
|
|
1404
1422
|
nodes: Array<CentrifugoNodeInfo$1>;
|
|
1405
1423
|
}
|
|
1406
1424
|
/**
|
|
1407
|
-
*
|
|
1425
|
+
* History result wrapper.
|
|
1408
1426
|
*
|
|
1409
1427
|
* Response model (includes read-only fields).
|
|
1410
1428
|
*/
|
|
1411
|
-
interface
|
|
1412
|
-
/**
|
|
1413
|
-
|
|
1414
|
-
/**
|
|
1429
|
+
interface CentrifugoHistoryResult$1 {
|
|
1430
|
+
/** List of publications */
|
|
1431
|
+
publications: Array<CentrifugoPublication$1>;
|
|
1432
|
+
/** Current stream epoch */
|
|
1415
1433
|
epoch: string;
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
* Channels result wrapper.
|
|
1419
|
-
*
|
|
1420
|
-
* Response model (includes read-only fields).
|
|
1421
|
-
*/
|
|
1422
|
-
interface CentrifugoChannelsResult$1 {
|
|
1423
|
-
/** Map of channel names to channel info */
|
|
1424
|
-
channels: Record<string, CentrifugoChannelInfo$1>;
|
|
1425
|
-
}
|
|
1426
|
-
/**
|
|
1427
|
-
* Presence stats result.
|
|
1428
|
-
*
|
|
1429
|
-
* Response model (includes read-only fields).
|
|
1430
|
-
*/
|
|
1431
|
-
interface CentrifugoPresenceStatsResult$1 {
|
|
1432
|
-
/** Number of connected clients */
|
|
1433
|
-
num_clients: number;
|
|
1434
|
-
/** Number of unique users */
|
|
1435
|
-
num_users: number;
|
|
1434
|
+
/** Latest stream offset */
|
|
1435
|
+
offset: number;
|
|
1436
1436
|
}
|
|
1437
1437
|
/**
|
|
1438
1438
|
* Information about connected client.
|
|
@@ -1450,18 +1450,13 @@ interface CentrifugoClientInfo$1 {
|
|
|
1450
1450
|
chan_info?: Record<string, any> | null;
|
|
1451
1451
|
}
|
|
1452
1452
|
/**
|
|
1453
|
-
*
|
|
1453
|
+
* Information about a single channel.
|
|
1454
1454
|
*
|
|
1455
1455
|
* Response model (includes read-only fields).
|
|
1456
1456
|
*/
|
|
1457
|
-
interface
|
|
1458
|
-
/**
|
|
1459
|
-
|
|
1460
|
-
info?: CentrifugoClientInfo$1 | null;
|
|
1461
|
-
/** Message offset in channel stream */
|
|
1462
|
-
offset: number;
|
|
1463
|
-
/** Optional message tags */
|
|
1464
|
-
tags?: Record<string, any> | null;
|
|
1457
|
+
interface CentrifugoChannelInfo$1 {
|
|
1458
|
+
/** Number of connected clients in channel */
|
|
1459
|
+
num_clients: number;
|
|
1465
1460
|
}
|
|
1466
1461
|
/**
|
|
1467
1462
|
* Information about a single Centrifugo node.
|
|
@@ -1489,24 +1484,18 @@ interface CentrifugoNodeInfo$1 {
|
|
|
1489
1484
|
process?: CentrifugoProcess$1 | null;
|
|
1490
1485
|
}
|
|
1491
1486
|
/**
|
|
1492
|
-
*
|
|
1493
|
-
*
|
|
1494
|
-
* Response model (includes read-only fields).
|
|
1495
|
-
*/
|
|
1496
|
-
interface CentrifugoChannelInfo$1 {
|
|
1497
|
-
/** Number of connected clients in channel */
|
|
1498
|
-
num_clients: number;
|
|
1499
|
-
}
|
|
1500
|
-
/**
|
|
1501
|
-
* Server metrics.
|
|
1487
|
+
* Single publication (message) in channel history.
|
|
1502
1488
|
*
|
|
1503
1489
|
* Response model (includes read-only fields).
|
|
1504
1490
|
*/
|
|
1505
|
-
interface
|
|
1506
|
-
/**
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1491
|
+
interface CentrifugoPublication$1 {
|
|
1492
|
+
/** Message payload */
|
|
1493
|
+
data: Record<string, any>;
|
|
1494
|
+
info?: CentrifugoClientInfo$1 | null;
|
|
1495
|
+
/** Message offset in channel stream */
|
|
1496
|
+
offset: number;
|
|
1497
|
+
/** Optional message tags */
|
|
1498
|
+
tags?: Record<string, any> | null;
|
|
1510
1499
|
}
|
|
1511
1500
|
/**
|
|
1512
1501
|
* Process information.
|
|
@@ -1519,6 +1508,17 @@ interface CentrifugoProcess$1 {
|
|
|
1519
1508
|
/** Resident set size in bytes */
|
|
1520
1509
|
rss: number;
|
|
1521
1510
|
}
|
|
1511
|
+
/**
|
|
1512
|
+
* Server metrics.
|
|
1513
|
+
*
|
|
1514
|
+
* Response model (includes read-only fields).
|
|
1515
|
+
*/
|
|
1516
|
+
interface CentrifugoMetrics$1 {
|
|
1517
|
+
/** Metrics collection interval */
|
|
1518
|
+
interval: number;
|
|
1519
|
+
/** Metric name to value mapping */
|
|
1520
|
+
items: Record<string, any>;
|
|
1521
|
+
}
|
|
1522
1522
|
|
|
1523
1523
|
/**
|
|
1524
1524
|
* API endpoints for Centrifugo Admin API.
|
|
@@ -1607,6 +1607,21 @@ interface TimelineResponse$1 {
|
|
|
1607
1607
|
period_hours: number;
|
|
1608
1608
|
interval: string;
|
|
1609
1609
|
}
|
|
1610
|
+
/**
|
|
1611
|
+
* Health check response.
|
|
1612
|
+
*
|
|
1613
|
+
* Response model (includes read-only fields).
|
|
1614
|
+
*/
|
|
1615
|
+
interface CentrifugoHealthCheck$1 {
|
|
1616
|
+
/** Health status: healthy or unhealthy */
|
|
1617
|
+
status: string;
|
|
1618
|
+
/** Configured wrapper URL */
|
|
1619
|
+
wrapper_url: string;
|
|
1620
|
+
/** Whether API key is configured */
|
|
1621
|
+
has_api_key: boolean;
|
|
1622
|
+
/** Current timestamp */
|
|
1623
|
+
timestamp: string;
|
|
1624
|
+
}
|
|
1610
1625
|
/**
|
|
1611
1626
|
*
|
|
1612
1627
|
* Response model (includes read-only fields).
|
|
@@ -1631,6 +1646,17 @@ interface PaginatedPublishList$1 {
|
|
|
1631
1646
|
/** Array of items for current page */
|
|
1632
1647
|
results: Array<Publish$1>;
|
|
1633
1648
|
}
|
|
1649
|
+
/**
|
|
1650
|
+
* List of channel statistics.
|
|
1651
|
+
*
|
|
1652
|
+
* Response model (includes read-only fields).
|
|
1653
|
+
*/
|
|
1654
|
+
interface ChannelList$1 {
|
|
1655
|
+
/** Channel statistics */
|
|
1656
|
+
channels: Array<ChannelStats$1>;
|
|
1657
|
+
/** Total number of channels */
|
|
1658
|
+
total_channels: number;
|
|
1659
|
+
}
|
|
1634
1660
|
/**
|
|
1635
1661
|
* Overview statistics for Centrifugo publishes.
|
|
1636
1662
|
*
|
|
@@ -1654,32 +1680,6 @@ interface CentrifugoOverviewStats$1 {
|
|
|
1654
1680
|
/** Statistics period in hours */
|
|
1655
1681
|
period_hours: number;
|
|
1656
1682
|
}
|
|
1657
|
-
/**
|
|
1658
|
-
* Health check response.
|
|
1659
|
-
*
|
|
1660
|
-
* Response model (includes read-only fields).
|
|
1661
|
-
*/
|
|
1662
|
-
interface CentrifugoHealthCheck$1 {
|
|
1663
|
-
/** Health status: healthy or unhealthy */
|
|
1664
|
-
status: string;
|
|
1665
|
-
/** Configured wrapper URL */
|
|
1666
|
-
wrapper_url: string;
|
|
1667
|
-
/** Whether API key is configured */
|
|
1668
|
-
has_api_key: boolean;
|
|
1669
|
-
/** Current timestamp */
|
|
1670
|
-
timestamp: string;
|
|
1671
|
-
}
|
|
1672
|
-
/**
|
|
1673
|
-
* List of channel statistics.
|
|
1674
|
-
*
|
|
1675
|
-
* Response model (includes read-only fields).
|
|
1676
|
-
*/
|
|
1677
|
-
interface ChannelList$1 {
|
|
1678
|
-
/** Channel statistics */
|
|
1679
|
-
channels: Array<ChannelStats$1>;
|
|
1680
|
-
/** Total number of channels */
|
|
1681
|
-
total_channels: number;
|
|
1682
|
-
}
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Single timeline data point for DRF.
|
|
1685
1685
|
*
|
|
@@ -1768,21 +1768,6 @@ declare class CentrifugoMonitoring {
|
|
|
1768
1768
|
}): Promise<TimelineResponse$1>;
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
1771
|
-
/**
|
|
1772
|
-
* Request model for test message publishing.
|
|
1773
|
-
*
|
|
1774
|
-
* Request model (no read-only fields).
|
|
1775
|
-
*/
|
|
1776
|
-
interface PublishTestRequestRequest$1 {
|
|
1777
|
-
/** Target channel name */
|
|
1778
|
-
channel: string;
|
|
1779
|
-
/** Message data (any JSON object) */
|
|
1780
|
-
data: Record<string, any>;
|
|
1781
|
-
/** Wait for client acknowledgment */
|
|
1782
|
-
wait_for_ack?: boolean;
|
|
1783
|
-
/** ACK timeout in seconds */
|
|
1784
|
-
ack_timeout?: number;
|
|
1785
|
-
}
|
|
1786
1771
|
/**
|
|
1787
1772
|
* Response model for test message publishing.
|
|
1788
1773
|
*
|
|
@@ -1826,6 +1811,21 @@ interface ManualAckRequestRequest$1 {
|
|
|
1826
1811
|
/** Client ID sending the ACK */
|
|
1827
1812
|
client_id: string;
|
|
1828
1813
|
}
|
|
1814
|
+
/**
|
|
1815
|
+
* Request model for test message publishing.
|
|
1816
|
+
*
|
|
1817
|
+
* Request model (no read-only fields).
|
|
1818
|
+
*/
|
|
1819
|
+
interface PublishTestRequestRequest$1 {
|
|
1820
|
+
/** Target channel name */
|
|
1821
|
+
channel: string;
|
|
1822
|
+
/** Message data (any JSON object) */
|
|
1823
|
+
data: Record<string, any>;
|
|
1824
|
+
/** Wait for client acknowledgment */
|
|
1825
|
+
wait_for_ack?: boolean;
|
|
1826
|
+
/** ACK timeout in seconds */
|
|
1827
|
+
ack_timeout?: number;
|
|
1828
|
+
}
|
|
1829
1829
|
|
|
1830
1830
|
/**
|
|
1831
1831
|
* API endpoints for Centrifugo Testing.
|
|
@@ -3182,15 +3182,6 @@ declare class API$1 {
|
|
|
3182
3182
|
getSchemaPath(): string;
|
|
3183
3183
|
}
|
|
3184
3184
|
|
|
3185
|
-
/**
|
|
3186
|
-
* Serializer for regenerating backup codes.
|
|
3187
|
-
*
|
|
3188
|
-
* Request model (no read-only fields).
|
|
3189
|
-
*/
|
|
3190
|
-
interface BackupCodesRegenerateRequest$1 {
|
|
3191
|
-
/** TOTP code for verification */
|
|
3192
|
-
code: string;
|
|
3193
|
-
}
|
|
3194
3185
|
/**
|
|
3195
3186
|
* Response serializer for backup codes regeneration.
|
|
3196
3187
|
*
|
|
@@ -3202,6 +3193,15 @@ interface BackupCodesRegenerateResponse$1 {
|
|
|
3202
3193
|
/** Warning about previous codes being invalidated */
|
|
3203
3194
|
warning: string;
|
|
3204
3195
|
}
|
|
3196
|
+
/**
|
|
3197
|
+
* Serializer for regenerating backup codes.
|
|
3198
|
+
*
|
|
3199
|
+
* Request model (no read-only fields).
|
|
3200
|
+
*/
|
|
3201
|
+
interface BackupCodesRegenerateRequest$1 {
|
|
3202
|
+
/** TOTP code for verification */
|
|
3203
|
+
code: string;
|
|
3204
|
+
}
|
|
3205
3205
|
/**
|
|
3206
3206
|
* Serializer for backup codes status.
|
|
3207
3207
|
*
|
|
@@ -3244,15 +3244,6 @@ declare enum DeviceListStatus {
|
|
|
3244
3244
|
DISABLED = "disabled"
|
|
3245
3245
|
}
|
|
3246
3246
|
|
|
3247
|
-
/**
|
|
3248
|
-
* Serializer for completely disabling 2FA.
|
|
3249
|
-
*
|
|
3250
|
-
* Request model (no read-only fields).
|
|
3251
|
-
*/
|
|
3252
|
-
interface DisableRequest$1 {
|
|
3253
|
-
/** TOTP code for verification */
|
|
3254
|
-
code: string;
|
|
3255
|
-
}
|
|
3256
3247
|
/**
|
|
3257
3248
|
*
|
|
3258
3249
|
* Response model (includes read-only fields).
|
|
@@ -3277,6 +3268,15 @@ interface PaginatedDeviceListResponseList$1 {
|
|
|
3277
3268
|
/** Array of items for current page */
|
|
3278
3269
|
results: Array<DeviceListResponse$1>;
|
|
3279
3270
|
}
|
|
3271
|
+
/**
|
|
3272
|
+
* Serializer for completely disabling 2FA.
|
|
3273
|
+
*
|
|
3274
|
+
* Request model (no read-only fields).
|
|
3275
|
+
*/
|
|
3276
|
+
interface DisableRequest$1 {
|
|
3277
|
+
/** TOTP code for verification */
|
|
3278
|
+
code: string;
|
|
3279
|
+
}
|
|
3280
3280
|
/**
|
|
3281
3281
|
* Response serializer for device list endpoint.
|
|
3282
3282
|
*
|
|
@@ -3328,16 +3328,15 @@ declare class TotpManagement {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
|
|
3330
3330
|
/**
|
|
3331
|
-
*
|
|
3331
|
+
* Serializer for confirming 2FA setup with first code.
|
|
3332
3332
|
*
|
|
3333
|
-
*
|
|
3333
|
+
* Request model (no read-only fields).
|
|
3334
3334
|
*/
|
|
3335
|
-
interface
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
backup_codes_warning: string;
|
|
3335
|
+
interface ConfirmSetupRequest$1 {
|
|
3336
|
+
/** Device ID from setup response */
|
|
3337
|
+
device_id: string;
|
|
3338
|
+
/** 6-digit TOTP code from authenticator app */
|
|
3339
|
+
code: string;
|
|
3341
3340
|
}
|
|
3342
3341
|
/**
|
|
3343
3342
|
* Response serializer for setup initiation.
|
|
@@ -3366,15 +3365,16 @@ interface SetupRequest$1 {
|
|
|
3366
3365
|
device_name?: string;
|
|
3367
3366
|
}
|
|
3368
3367
|
/**
|
|
3369
|
-
*
|
|
3368
|
+
* Response serializer for setup confirmation.
|
|
3370
3369
|
*
|
|
3371
|
-
*
|
|
3370
|
+
* Response model (includes read-only fields).
|
|
3372
3371
|
*/
|
|
3373
|
-
interface
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3372
|
+
interface ConfirmSetupResponse$1 {
|
|
3373
|
+
message: string;
|
|
3374
|
+
/** List of backup recovery codes (save these!) */
|
|
3375
|
+
backup_codes: Array<string>;
|
|
3376
|
+
/** Warning message about backup codes */
|
|
3377
|
+
backup_codes_warning: string;
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
3380
|
/**
|
|
@@ -3395,6 +3395,17 @@ declare class TotpSetup {
|
|
|
3395
3395
|
confirmCreate(data: ConfirmSetupRequest$1): Promise<ConfirmSetupResponse$1>;
|
|
3396
3396
|
}
|
|
3397
3397
|
|
|
3398
|
+
/**
|
|
3399
|
+
* Serializer for TOTP code verification during login.
|
|
3400
|
+
*
|
|
3401
|
+
* Request model (no read-only fields).
|
|
3402
|
+
*/
|
|
3403
|
+
interface VerifyRequest$1 {
|
|
3404
|
+
/** 2FA session ID from login response */
|
|
3405
|
+
session_id: string;
|
|
3406
|
+
/** 6-digit TOTP code from authenticator app */
|
|
3407
|
+
code: string;
|
|
3408
|
+
}
|
|
3398
3409
|
/**
|
|
3399
3410
|
* Serializer for backup code verification during login.
|
|
3400
3411
|
*
|
|
@@ -3423,17 +3434,6 @@ interface VerifyResponse$1 {
|
|
|
3423
3434
|
/** Warning message (e.g., low backup codes) */
|
|
3424
3435
|
warning?: string;
|
|
3425
3436
|
}
|
|
3426
|
-
/**
|
|
3427
|
-
* Serializer for TOTP code verification during login.
|
|
3428
|
-
*
|
|
3429
|
-
* Request model (no read-only fields).
|
|
3430
|
-
*/
|
|
3431
|
-
interface VerifyRequest$1 {
|
|
3432
|
-
/** 2FA session ID from login response */
|
|
3433
|
-
session_id: string;
|
|
3434
|
-
/** 6-digit TOTP code from authenticator app */
|
|
3435
|
-
code: string;
|
|
3436
|
-
}
|
|
3437
3437
|
/**
|
|
3438
3438
|
* User data returned after 2FA verification.
|
|
3439
3439
|
*
|