@djangocfg/api 2.1.223 → 2.1.225
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 +212 -212
- package/dist/clients.d.ts +212 -212
- package/dist/hooks.d.cts +64 -64
- package/dist/hooks.d.ts +64 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -89
- package/dist/index.d.ts +89 -89
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +26 -26
- package/src/_api/generated/cfg_accounts/accounts__auth/models.ts +5 -5
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +53 -53
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +9 -9
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +65 -65
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +24 -24
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +25 -25
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +19 -19
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +12 -12
package/dist/clients.d.ts
CHANGED
|
@@ -4,17 +4,17 @@ import useSWR from 'swr';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Request model (no read-only fields).
|
|
8
8
|
*/
|
|
9
|
-
interface
|
|
10
|
-
access: string;
|
|
9
|
+
interface TokenRefreshRequest$1 {
|
|
11
10
|
refresh: string;
|
|
12
11
|
}
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
|
-
*
|
|
14
|
+
* Response model (includes read-only fields).
|
|
16
15
|
*/
|
|
17
|
-
interface
|
|
16
|
+
interface TokenRefresh$1 {
|
|
17
|
+
access: string;
|
|
18
18
|
refresh: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -55,19 +55,6 @@ declare namespace enums {
|
|
|
55
55
|
export { enums_OAuthConnectionProvider as OAuthConnectionProvider, enums_OTPRequestRequestChannel as OTPRequestRequestChannel };
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
/**
|
|
59
|
-
* Request to complete OAuth flow (callback handler).
|
|
60
|
-
*
|
|
61
|
-
* Request model (no read-only fields).
|
|
62
|
-
*/
|
|
63
|
-
interface OAuthCallbackRequestRequest$1 {
|
|
64
|
-
/** Authorization code from OAuth provider callback */
|
|
65
|
-
code: string;
|
|
66
|
-
/** State token for CSRF verification (from authorize response) */
|
|
67
|
-
state: string;
|
|
68
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
69
|
-
redirect_uri?: string;
|
|
70
|
-
}
|
|
71
58
|
/**
|
|
72
59
|
* Request to start OAuth flow.
|
|
73
60
|
*
|
|
@@ -80,24 +67,37 @@ interface OAuthAuthorizeRequestRequest$1 {
|
|
|
80
67
|
source_url?: string;
|
|
81
68
|
}
|
|
82
69
|
/**
|
|
83
|
-
* Response with OAuth
|
|
70
|
+
* Response with available OAuth providers.
|
|
84
71
|
*
|
|
85
72
|
* Response model (includes read-only fields).
|
|
86
73
|
*/
|
|
87
|
-
interface
|
|
88
|
-
/**
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
interface OAuthProvidersResponse$1 {
|
|
75
|
+
/** List of available OAuth providers */
|
|
76
|
+
providers: Array<Record<string, any>>;
|
|
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) */
|
|
91
87
|
state: string;
|
|
88
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
89
|
+
redirect_uri?: string;
|
|
92
90
|
}
|
|
93
91
|
/**
|
|
94
|
-
*
|
|
92
|
+
* Request to disconnect OAuth provider.
|
|
95
93
|
*
|
|
96
|
-
*
|
|
94
|
+
* Request model (no read-only fields).
|
|
97
95
|
*/
|
|
98
|
-
interface
|
|
99
|
-
/**
|
|
100
|
-
|
|
96
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
97
|
+
/** OAuth provider to disconnect
|
|
98
|
+
|
|
99
|
+
* `github` - GitHub */
|
|
100
|
+
provider: OAuthConnectionProvider;
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
@@ -126,15 +126,15 @@ interface OAuthTokenResponse$1 {
|
|
|
126
126
|
should_prompt_2fa?: boolean;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Response with OAuth authorization URL.
|
|
130
130
|
*
|
|
131
|
-
*
|
|
131
|
+
* Response model (includes read-only fields).
|
|
132
132
|
*/
|
|
133
|
-
interface
|
|
134
|
-
/** OAuth provider
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
interface OAuthAuthorizeResponse$1 {
|
|
134
|
+
/** Full URL to redirect user to OAuth provider */
|
|
135
|
+
authorization_url: string;
|
|
136
|
+
/** State token for CSRF protection. Store this and verify on callback. */
|
|
137
|
+
state: string;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
@@ -220,6 +220,14 @@ interface UserProfileUpdateRequest$1 {
|
|
|
220
220
|
position?: string;
|
|
221
221
|
language?: string;
|
|
222
222
|
}
|
|
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
|
+
}
|
|
223
231
|
/**
|
|
224
232
|
* Response serializer for account deletion.
|
|
225
233
|
*
|
|
@@ -244,14 +252,6 @@ interface PatchedUserProfileUpdateRequest$1 {
|
|
|
244
252
|
position?: string;
|
|
245
253
|
language?: string;
|
|
246
254
|
}
|
|
247
|
-
/**
|
|
248
|
-
*
|
|
249
|
-
* Request model (no read-only fields).
|
|
250
|
-
*/
|
|
251
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
252
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
253
|
-
avatar: File | Blob;
|
|
254
|
-
}
|
|
255
255
|
/**
|
|
256
256
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
257
257
|
*
|
|
@@ -325,6 +325,27 @@ declare class UserProfile {
|
|
|
325
325
|
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
+
/**
|
|
329
|
+
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
330
|
+
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
331
|
+
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
332
|
+
* refresh/access/user: populated
|
|
333
|
+
*
|
|
334
|
+
* Response model (includes read-only fields).
|
|
335
|
+
*/
|
|
336
|
+
interface OTPVerifyResponse$1 {
|
|
337
|
+
/** Whether 2FA verification is required */
|
|
338
|
+
requires_2fa?: boolean;
|
|
339
|
+
/** 2FA session ID (if requires_2fa is True) */
|
|
340
|
+
session_id?: string | null;
|
|
341
|
+
/** JWT refresh token (if requires_2fa is False) */
|
|
342
|
+
refresh?: string | null;
|
|
343
|
+
/** JWT access token (if requires_2fa is False) */
|
|
344
|
+
access?: string | null;
|
|
345
|
+
user?: User$1 | null;
|
|
346
|
+
/** Whether user should be prompted to enable 2FA */
|
|
347
|
+
should_prompt_2fa?: boolean;
|
|
348
|
+
}
|
|
328
349
|
/**
|
|
329
350
|
* Serializer for OTP request.
|
|
330
351
|
*
|
|
@@ -350,27 +371,6 @@ interface OTPRequestResponse$1 {
|
|
|
350
371
|
/** Success message */
|
|
351
372
|
message: string;
|
|
352
373
|
}
|
|
353
|
-
/**
|
|
354
|
-
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
355
|
-
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
356
|
-
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
357
|
-
* refresh/access/user: populated
|
|
358
|
-
*
|
|
359
|
-
* Response model (includes read-only fields).
|
|
360
|
-
*/
|
|
361
|
-
interface OTPVerifyResponse$1 {
|
|
362
|
-
/** Whether 2FA verification is required */
|
|
363
|
-
requires_2fa?: boolean;
|
|
364
|
-
/** 2FA session ID (if requires_2fa is True) */
|
|
365
|
-
session_id?: string | null;
|
|
366
|
-
/** JWT refresh token (if requires_2fa is False) */
|
|
367
|
-
refresh?: string | null;
|
|
368
|
-
/** JWT access token (if requires_2fa is False) */
|
|
369
|
-
access?: string | null;
|
|
370
|
-
user?: User$1 | null;
|
|
371
|
-
/** Whether user should be prompted to enable 2FA */
|
|
372
|
-
should_prompt_2fa?: boolean;
|
|
373
|
-
}
|
|
374
374
|
/**
|
|
375
375
|
* Serializer for OTP verification.
|
|
376
376
|
*
|
|
@@ -1276,6 +1276,20 @@ declare class API$2 {
|
|
|
1276
1276
|
getSchemaPath(): string;
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
+
/**
|
|
1280
|
+
* Request to get channel history.
|
|
1281
|
+
*
|
|
1282
|
+
* Request model (no read-only fields).
|
|
1283
|
+
*/
|
|
1284
|
+
interface CentrifugoHistoryRequestRequest$1 {
|
|
1285
|
+
/** Channel name */
|
|
1286
|
+
channel: string;
|
|
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;
|
|
1292
|
+
}
|
|
1279
1293
|
/**
|
|
1280
1294
|
* Request to get channel presence statistics.
|
|
1281
1295
|
*
|
|
@@ -1295,18 +1309,13 @@ interface CentrifugoInfoResponse$1 {
|
|
|
1295
1309
|
result?: CentrifugoInfoResult$1 | null;
|
|
1296
1310
|
}
|
|
1297
1311
|
/**
|
|
1298
|
-
*
|
|
1312
|
+
* Channel presence stats response.
|
|
1299
1313
|
*
|
|
1300
|
-
*
|
|
1314
|
+
* Response model (includes read-only fields).
|
|
1301
1315
|
*/
|
|
1302
|
-
interface
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
/** Maximum number of messages to return */
|
|
1306
|
-
limit?: number | null;
|
|
1307
|
-
since?: CentrifugoStreamPosition$1 | null;
|
|
1308
|
-
/** Reverse message order (newest first) */
|
|
1309
|
-
reverse?: boolean | null;
|
|
1316
|
+
interface CentrifugoPresenceStatsResponse$1 {
|
|
1317
|
+
error?: CentrifugoError$1 | null;
|
|
1318
|
+
result?: CentrifugoPresenceStatsResult$1 | null;
|
|
1310
1319
|
}
|
|
1311
1320
|
/**
|
|
1312
1321
|
* Request to list active channels.
|
|
@@ -1327,13 +1336,13 @@ interface CentrifugoPresenceResponse$1 {
|
|
|
1327
1336
|
result?: CentrifugoPresenceResult$1 | null;
|
|
1328
1337
|
}
|
|
1329
1338
|
/**
|
|
1330
|
-
*
|
|
1339
|
+
* List of active channels response.
|
|
1331
1340
|
*
|
|
1332
1341
|
* Response model (includes read-only fields).
|
|
1333
1342
|
*/
|
|
1334
|
-
interface
|
|
1343
|
+
interface CentrifugoChannelsResponse$1 {
|
|
1335
1344
|
error?: CentrifugoError$1 | null;
|
|
1336
|
-
result?:
|
|
1345
|
+
result?: CentrifugoChannelsResult$1 | null;
|
|
1337
1346
|
}
|
|
1338
1347
|
/**
|
|
1339
1348
|
* Channel history response.
|
|
@@ -1344,15 +1353,6 @@ interface CentrifugoHistoryResponse$1 {
|
|
|
1344
1353
|
error?: CentrifugoError$1 | null;
|
|
1345
1354
|
result?: CentrifugoHistoryResult$1 | null;
|
|
1346
1355
|
}
|
|
1347
|
-
/**
|
|
1348
|
-
* List of active channels response.
|
|
1349
|
-
*
|
|
1350
|
-
* Response model (includes read-only fields).
|
|
1351
|
-
*/
|
|
1352
|
-
interface CentrifugoChannelsResponse$1 {
|
|
1353
|
-
error?: CentrifugoError$1 | null;
|
|
1354
|
-
result?: CentrifugoChannelsResult$1 | null;
|
|
1355
|
-
}
|
|
1356
1356
|
/**
|
|
1357
1357
|
* Request to get channel presence.
|
|
1358
1358
|
*
|
|
@@ -1363,13 +1363,15 @@ interface CentrifugoPresenceRequestRequest$1 {
|
|
|
1363
1363
|
channel: string;
|
|
1364
1364
|
}
|
|
1365
1365
|
/**
|
|
1366
|
-
*
|
|
1366
|
+
* Stream position for pagination.
|
|
1367
1367
|
*
|
|
1368
1368
|
* Response model (includes read-only fields).
|
|
1369
1369
|
*/
|
|
1370
|
-
interface
|
|
1371
|
-
/**
|
|
1372
|
-
|
|
1370
|
+
interface CentrifugoStreamPosition$1 {
|
|
1371
|
+
/** Stream offset */
|
|
1372
|
+
offset: number;
|
|
1373
|
+
/** Stream epoch */
|
|
1374
|
+
epoch: string;
|
|
1373
1375
|
}
|
|
1374
1376
|
/**
|
|
1375
1377
|
* Centrifugo API error structure.
|
|
@@ -1383,15 +1385,24 @@ interface CentrifugoError$1 {
|
|
|
1383
1385
|
message?: string;
|
|
1384
1386
|
}
|
|
1385
1387
|
/**
|
|
1386
|
-
*
|
|
1388
|
+
* Info result wrapper.
|
|
1387
1389
|
*
|
|
1388
1390
|
* Response model (includes read-only fields).
|
|
1389
1391
|
*/
|
|
1390
|
-
interface
|
|
1391
|
-
/**
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1392
|
+
interface CentrifugoInfoResult$1 {
|
|
1393
|
+
/** List of Centrifugo nodes */
|
|
1394
|
+
nodes: Array<CentrifugoNodeInfo$1>;
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Presence stats result.
|
|
1398
|
+
*
|
|
1399
|
+
* Response model (includes read-only fields).
|
|
1400
|
+
*/
|
|
1401
|
+
interface CentrifugoPresenceStatsResult$1 {
|
|
1402
|
+
/** Number of connected clients */
|
|
1403
|
+
num_clients: number;
|
|
1404
|
+
/** Number of unique users */
|
|
1405
|
+
num_users: number;
|
|
1395
1406
|
}
|
|
1396
1407
|
/**
|
|
1397
1408
|
* Presence result wrapper.
|
|
@@ -1403,15 +1414,13 @@ interface CentrifugoPresenceResult$1 {
|
|
|
1403
1414
|
presence: Record<string, CentrifugoClientInfo$1>;
|
|
1404
1415
|
}
|
|
1405
1416
|
/**
|
|
1406
|
-
*
|
|
1417
|
+
* Channels result wrapper.
|
|
1407
1418
|
*
|
|
1408
1419
|
* Response model (includes read-only fields).
|
|
1409
1420
|
*/
|
|
1410
|
-
interface
|
|
1411
|
-
/**
|
|
1412
|
-
|
|
1413
|
-
/** Number of unique users */
|
|
1414
|
-
num_users: number;
|
|
1421
|
+
interface CentrifugoChannelsResult$1 {
|
|
1422
|
+
/** Map of channel names to channel info */
|
|
1423
|
+
channels: Record<string, CentrifugoChannelInfo$1>;
|
|
1415
1424
|
}
|
|
1416
1425
|
/**
|
|
1417
1426
|
* History result wrapper.
|
|
@@ -1426,15 +1435,6 @@ interface CentrifugoHistoryResult$1 {
|
|
|
1426
1435
|
/** Latest stream offset */
|
|
1427
1436
|
offset: number;
|
|
1428
1437
|
}
|
|
1429
|
-
/**
|
|
1430
|
-
* Channels result wrapper.
|
|
1431
|
-
*
|
|
1432
|
-
* Response model (includes read-only fields).
|
|
1433
|
-
*/
|
|
1434
|
-
interface CentrifugoChannelsResult$1 {
|
|
1435
|
-
/** Map of channel names to channel info */
|
|
1436
|
-
channels: Record<string, CentrifugoChannelInfo$1>;
|
|
1437
|
-
}
|
|
1438
1438
|
/**
|
|
1439
1439
|
* Information about a single Centrifugo node.
|
|
1440
1440
|
*
|
|
@@ -1475,6 +1475,15 @@ interface CentrifugoClientInfo$1 {
|
|
|
1475
1475
|
/** Channel-specific metadata */
|
|
1476
1476
|
chan_info?: Record<string, any> | null;
|
|
1477
1477
|
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Information about a single channel.
|
|
1480
|
+
*
|
|
1481
|
+
* Response model (includes read-only fields).
|
|
1482
|
+
*/
|
|
1483
|
+
interface CentrifugoChannelInfo$1 {
|
|
1484
|
+
/** Number of connected clients in channel */
|
|
1485
|
+
num_clients: number;
|
|
1486
|
+
}
|
|
1478
1487
|
/**
|
|
1479
1488
|
* Single publication (message) in channel history.
|
|
1480
1489
|
*
|
|
@@ -1490,13 +1499,15 @@ interface CentrifugoPublication$1 {
|
|
|
1490
1499
|
tags?: Record<string, any> | null;
|
|
1491
1500
|
}
|
|
1492
1501
|
/**
|
|
1493
|
-
*
|
|
1502
|
+
* Process information.
|
|
1494
1503
|
*
|
|
1495
1504
|
* Response model (includes read-only fields).
|
|
1496
1505
|
*/
|
|
1497
|
-
interface
|
|
1498
|
-
/**
|
|
1499
|
-
|
|
1506
|
+
interface CentrifugoProcess$1 {
|
|
1507
|
+
/** CPU usage percentage */
|
|
1508
|
+
cpu: number;
|
|
1509
|
+
/** Resident set size in bytes */
|
|
1510
|
+
rss: number;
|
|
1500
1511
|
}
|
|
1501
1512
|
/**
|
|
1502
1513
|
* Server metrics.
|
|
@@ -1509,17 +1520,6 @@ interface CentrifugoMetrics$1 {
|
|
|
1509
1520
|
/** Metric name to value mapping */
|
|
1510
1521
|
items: Record<string, any>;
|
|
1511
1522
|
}
|
|
1512
|
-
/**
|
|
1513
|
-
* Process information.
|
|
1514
|
-
*
|
|
1515
|
-
* Response model (includes read-only fields).
|
|
1516
|
-
*/
|
|
1517
|
-
interface CentrifugoProcess$1 {
|
|
1518
|
-
/** CPU usage percentage */
|
|
1519
|
-
cpu: number;
|
|
1520
|
-
/** Resident set size in bytes */
|
|
1521
|
-
rss: number;
|
|
1522
|
-
}
|
|
1523
1523
|
|
|
1524
1524
|
/**
|
|
1525
1525
|
* API endpoints for Centrifugo Admin API.
|
|
@@ -1632,6 +1632,29 @@ interface TimelineResponse$1 {
|
|
|
1632
1632
|
period_hours: number;
|
|
1633
1633
|
interval: string;
|
|
1634
1634
|
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Overview statistics for Centrifugo publishes.
|
|
1637
|
+
*
|
|
1638
|
+
* Response model (includes read-only fields).
|
|
1639
|
+
*/
|
|
1640
|
+
interface CentrifugoOverviewStats$1 {
|
|
1641
|
+
/** Total publishes in period */
|
|
1642
|
+
total: number;
|
|
1643
|
+
/** Successful publishes */
|
|
1644
|
+
successful: number;
|
|
1645
|
+
/** Failed publishes */
|
|
1646
|
+
failed: number;
|
|
1647
|
+
/** Timeout publishes */
|
|
1648
|
+
timeout: number;
|
|
1649
|
+
/** Success rate percentage */
|
|
1650
|
+
success_rate: number;
|
|
1651
|
+
/** Average duration in milliseconds */
|
|
1652
|
+
avg_duration_ms: number;
|
|
1653
|
+
/** Average ACKs received */
|
|
1654
|
+
avg_acks_received: number;
|
|
1655
|
+
/** Statistics period in hours */
|
|
1656
|
+
period_hours: number;
|
|
1657
|
+
}
|
|
1635
1658
|
/**
|
|
1636
1659
|
* Health check response.
|
|
1637
1660
|
*
|
|
@@ -1658,29 +1681,6 @@ interface ChannelList$1 {
|
|
|
1658
1681
|
/** Total number of channels */
|
|
1659
1682
|
total_channels: number;
|
|
1660
1683
|
}
|
|
1661
|
-
/**
|
|
1662
|
-
* Overview statistics for Centrifugo publishes.
|
|
1663
|
-
*
|
|
1664
|
-
* Response model (includes read-only fields).
|
|
1665
|
-
*/
|
|
1666
|
-
interface CentrifugoOverviewStats$1 {
|
|
1667
|
-
/** Total publishes in period */
|
|
1668
|
-
total: number;
|
|
1669
|
-
/** Successful publishes */
|
|
1670
|
-
successful: number;
|
|
1671
|
-
/** Failed publishes */
|
|
1672
|
-
failed: number;
|
|
1673
|
-
/** Timeout publishes */
|
|
1674
|
-
timeout: number;
|
|
1675
|
-
/** Success rate percentage */
|
|
1676
|
-
success_rate: number;
|
|
1677
|
-
/** Average duration in milliseconds */
|
|
1678
|
-
avg_duration_ms: number;
|
|
1679
|
-
/** Average ACKs received */
|
|
1680
|
-
avg_acks_received: number;
|
|
1681
|
-
/** Statistics period in hours */
|
|
1682
|
-
period_hours: number;
|
|
1683
|
-
}
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Single publish item for DRF pagination.
|
|
1686
1686
|
*
|
|
@@ -1769,6 +1769,21 @@ declare class CentrifugoMonitoring {
|
|
|
1769
1769
|
}): Promise<TimelineResponse$1>;
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
|
+
/**
|
|
1773
|
+
* Request model for test message publishing.
|
|
1774
|
+
*
|
|
1775
|
+
* Request model (no read-only fields).
|
|
1776
|
+
*/
|
|
1777
|
+
interface PublishTestRequestRequest$1 {
|
|
1778
|
+
/** Target channel name */
|
|
1779
|
+
channel: string;
|
|
1780
|
+
/** Message data (any JSON object) */
|
|
1781
|
+
data: Record<string, any>;
|
|
1782
|
+
/** Wait for client acknowledgment */
|
|
1783
|
+
wait_for_ack?: boolean;
|
|
1784
|
+
/** ACK timeout in seconds */
|
|
1785
|
+
ack_timeout?: number;
|
|
1786
|
+
}
|
|
1772
1787
|
/**
|
|
1773
1788
|
* Response model for test message publishing.
|
|
1774
1789
|
*
|
|
@@ -1788,19 +1803,6 @@ interface PublishTestResponse$1 {
|
|
|
1788
1803
|
/** Error message if failed */
|
|
1789
1804
|
error?: string | null;
|
|
1790
1805
|
}
|
|
1791
|
-
/**
|
|
1792
|
-
* Response model for manual ACK.
|
|
1793
|
-
*
|
|
1794
|
-
* Response model (includes read-only fields).
|
|
1795
|
-
*/
|
|
1796
|
-
interface ManualAckResponse$1 {
|
|
1797
|
-
/** Whether ACK was sent successfully */
|
|
1798
|
-
success: boolean;
|
|
1799
|
-
/** Message ID that was acknowledged */
|
|
1800
|
-
message_id: string;
|
|
1801
|
-
/** Error message if failed */
|
|
1802
|
-
error?: string | null;
|
|
1803
|
-
}
|
|
1804
1806
|
/**
|
|
1805
1807
|
* Request model for manual ACK sending.
|
|
1806
1808
|
*
|
|
@@ -1813,19 +1815,17 @@ interface ManualAckRequestRequest$1 {
|
|
|
1813
1815
|
client_id: string;
|
|
1814
1816
|
}
|
|
1815
1817
|
/**
|
|
1816
|
-
*
|
|
1818
|
+
* Response model for manual ACK.
|
|
1817
1819
|
*
|
|
1818
|
-
*
|
|
1820
|
+
* Response model (includes read-only fields).
|
|
1819
1821
|
*/
|
|
1820
|
-
interface
|
|
1821
|
-
/**
|
|
1822
|
-
|
|
1823
|
-
/** Message
|
|
1824
|
-
|
|
1825
|
-
/**
|
|
1826
|
-
|
|
1827
|
-
/** ACK timeout in seconds */
|
|
1828
|
-
ack_timeout?: number;
|
|
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
1829
|
}
|
|
1830
1830
|
|
|
1831
1831
|
/**
|
|
@@ -3196,15 +3196,6 @@ 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
|
-
}
|
|
3208
3199
|
/**
|
|
3209
3200
|
* Response serializer for backup codes regeneration.
|
|
3210
3201
|
*
|
|
@@ -3216,6 +3207,15 @@ interface BackupCodesRegenerateResponse$1 {
|
|
|
3216
3207
|
/** Warning about previous codes being invalidated */
|
|
3217
3208
|
warning: string;
|
|
3218
3209
|
}
|
|
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.
|
|
@@ -3329,16 +3329,21 @@ declare class TotpManagement {
|
|
|
3329
3329
|
}
|
|
3330
3330
|
|
|
3331
3331
|
/**
|
|
3332
|
-
* Response serializer for setup
|
|
3332
|
+
* Response serializer for setup initiation.
|
|
3333
3333
|
*
|
|
3334
3334
|
* Response model (includes read-only fields).
|
|
3335
3335
|
*/
|
|
3336
|
-
interface
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3336
|
+
interface SetupResponse$1 {
|
|
3337
|
+
/** Device ID to use for confirmation */
|
|
3338
|
+
device_id: string;
|
|
3339
|
+
/** Base32-encoded TOTP secret (for manual entry) */
|
|
3340
|
+
secret: string;
|
|
3341
|
+
/** otpauth:// URI for QR code generation */
|
|
3342
|
+
provisioning_uri: string;
|
|
3343
|
+
/** Base64-encoded QR code image (data URI) */
|
|
3344
|
+
qr_code_base64: string;
|
|
3345
|
+
/** Seconds until setup expires (typically 600 = 10 minutes) */
|
|
3346
|
+
expires_in: number;
|
|
3342
3347
|
}
|
|
3343
3348
|
/**
|
|
3344
3349
|
* Serializer for confirming 2FA setup with first code.
|
|
@@ -3352,21 +3357,16 @@ interface ConfirmSetupRequest$1 {
|
|
|
3352
3357
|
code: string;
|
|
3353
3358
|
}
|
|
3354
3359
|
/**
|
|
3355
|
-
* Response serializer for setup
|
|
3360
|
+
* Response serializer for setup confirmation.
|
|
3356
3361
|
*
|
|
3357
3362
|
* Response model (includes read-only fields).
|
|
3358
3363
|
*/
|
|
3359
|
-
interface
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
provisioning_uri: string;
|
|
3366
|
-
/** Base64-encoded QR code image (data URI) */
|
|
3367
|
-
qr_code_base64: string;
|
|
3368
|
-
/** Seconds until setup expires (typically 600 = 10 minutes) */
|
|
3369
|
-
expires_in: number;
|
|
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
3370
|
}
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Serializer for starting 2FA setup.
|
|
@@ -3396,17 +3396,6 @@ declare class TotpSetup {
|
|
|
3396
3396
|
confirmCreate(data: ConfirmSetupRequest$1): Promise<ConfirmSetupResponse$1>;
|
|
3397
3397
|
}
|
|
3398
3398
|
|
|
3399
|
-
/**
|
|
3400
|
-
* Serializer for TOTP code verification during login.
|
|
3401
|
-
*
|
|
3402
|
-
* Request model (no read-only fields).
|
|
3403
|
-
*/
|
|
3404
|
-
interface VerifyRequest$1 {
|
|
3405
|
-
/** 2FA session ID from login response */
|
|
3406
|
-
session_id: string;
|
|
3407
|
-
/** 6-digit TOTP code from authenticator app */
|
|
3408
|
-
code: string;
|
|
3409
|
-
}
|
|
3410
3399
|
/**
|
|
3411
3400
|
* Serializer for backup code verification during login.
|
|
3412
3401
|
*
|
|
@@ -3435,6 +3424,17 @@ interface VerifyResponse$1 {
|
|
|
3435
3424
|
/** Warning message (e.g., low backup codes) */
|
|
3436
3425
|
warning?: string;
|
|
3437
3426
|
}
|
|
3427
|
+
/**
|
|
3428
|
+
* Serializer for TOTP code verification during login.
|
|
3429
|
+
*
|
|
3430
|
+
* Request model (no read-only fields).
|
|
3431
|
+
*/
|
|
3432
|
+
interface VerifyRequest$1 {
|
|
3433
|
+
/** 2FA session ID from login response */
|
|
3434
|
+
session_id: string;
|
|
3435
|
+
/** 6-digit TOTP code from authenticator app */
|
|
3436
|
+
code: string;
|
|
3437
|
+
}
|
|
3438
3438
|
/**
|
|
3439
3439
|
* User data returned after 2FA verification.
|
|
3440
3440
|
*
|