@djangocfg/api 2.1.229 → 2.1.231
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 +308 -308
- package/dist/clients.d.ts +308 -308
- package/dist/hooks.d.cts +91 -91
- package/dist/hooks.d.ts +91 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -94
- package/dist/index.d.ts +94 -94
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +29 -29
- package/src/_api/generated/cfg_accounts/accounts__auth/models.ts +5 -5
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +47 -47
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +15 -15
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +95 -95
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +46 -46
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +24 -24
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +14 -14
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +23 -23
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +12 -12
package/dist/clients.d.cts
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
|
|
|
@@ -44,6 +44,50 @@ declare namespace enums {
|
|
|
44
44
|
export { enums_OAuthConnectionProvider as OAuthConnectionProvider };
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Request to start OAuth flow.
|
|
49
|
+
*
|
|
50
|
+
* Request model (no read-only fields).
|
|
51
|
+
*/
|
|
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;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Request to disconnect OAuth provider.
|
|
60
|
+
*
|
|
61
|
+
* Request model (no read-only fields).
|
|
62
|
+
*/
|
|
63
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
64
|
+
/** OAuth provider to disconnect
|
|
65
|
+
|
|
66
|
+
* `github` - GitHub */
|
|
67
|
+
provider: OAuthConnectionProvider;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Response with available OAuth providers.
|
|
71
|
+
*
|
|
72
|
+
* Response model (includes read-only fields).
|
|
73
|
+
*/
|
|
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) */
|
|
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;
|
|
90
|
+
}
|
|
47
91
|
/**
|
|
48
92
|
* Response with OAuth authorization URL.
|
|
49
93
|
*
|
|
@@ -81,50 +125,6 @@ interface OAuthTokenResponse$1 {
|
|
|
81
125
|
/** True if user should be prompted to enable 2FA */
|
|
82
126
|
should_prompt_2fa?: boolean;
|
|
83
127
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Request to start OAuth flow.
|
|
86
|
-
*
|
|
87
|
-
* Request model (no read-only fields).
|
|
88
|
-
*/
|
|
89
|
-
interface OAuthAuthorizeRequestRequest$1 {
|
|
90
|
-
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
91
|
-
redirect_uri?: string;
|
|
92
|
-
/** Optional source URL for registration tracking */
|
|
93
|
-
source_url?: string;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Request to complete OAuth flow (callback handler).
|
|
97
|
-
*
|
|
98
|
-
* Request model (no read-only fields).
|
|
99
|
-
*/
|
|
100
|
-
interface OAuthCallbackRequestRequest$1 {
|
|
101
|
-
/** Authorization code from OAuth provider callback */
|
|
102
|
-
code: string;
|
|
103
|
-
/** State token for CSRF verification (from authorize response) */
|
|
104
|
-
state: string;
|
|
105
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
106
|
-
redirect_uri?: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Request to disconnect OAuth provider.
|
|
110
|
-
*
|
|
111
|
-
* Request model (no read-only fields).
|
|
112
|
-
*/
|
|
113
|
-
interface OAuthDisconnectRequestRequest$1 {
|
|
114
|
-
/** OAuth provider to disconnect
|
|
115
|
-
|
|
116
|
-
* `github` - GitHub */
|
|
117
|
-
provider: OAuthConnectionProvider;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Response with available OAuth providers.
|
|
121
|
-
*
|
|
122
|
-
* Response model (includes read-only fields).
|
|
123
|
-
*/
|
|
124
|
-
interface OAuthProvidersResponse$1 {
|
|
125
|
-
/** List of available OAuth providers */
|
|
126
|
-
providers: Array<Record<string, any>>;
|
|
127
|
-
}
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* API endpoints for Oauth.
|
|
@@ -171,7 +171,7 @@ declare class Oauth {
|
|
|
171
171
|
*
|
|
172
172
|
* Request model (no read-only fields).
|
|
173
173
|
*/
|
|
174
|
-
interface
|
|
174
|
+
interface UserProfileUpdateRequest$1 {
|
|
175
175
|
first_name?: string;
|
|
176
176
|
last_name?: string;
|
|
177
177
|
company?: string;
|
|
@@ -187,19 +187,6 @@ interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
|
187
187
|
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
188
188
|
avatar: File | Blob;
|
|
189
189
|
}
|
|
190
|
-
/**
|
|
191
|
-
* Serializer for updating user profile.
|
|
192
|
-
*
|
|
193
|
-
* Request model (no read-only fields).
|
|
194
|
-
*/
|
|
195
|
-
interface UserProfileUpdateRequest$1 {
|
|
196
|
-
first_name?: string;
|
|
197
|
-
last_name?: string;
|
|
198
|
-
company?: string;
|
|
199
|
-
phone?: string;
|
|
200
|
-
position?: string;
|
|
201
|
-
language?: string;
|
|
202
|
-
}
|
|
203
190
|
/**
|
|
204
191
|
* Serializer for user details.
|
|
205
192
|
*
|
|
@@ -230,6 +217,19 @@ interface User$2 {
|
|
|
230
217
|
unanswered_messages_count: number;
|
|
231
218
|
centrifugo: CentrifugoToken$2 | null;
|
|
232
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* Serializer for updating user profile.
|
|
222
|
+
*
|
|
223
|
+
* Request model (no read-only fields).
|
|
224
|
+
*/
|
|
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
233
|
/**
|
|
234
234
|
* Response serializer for account deletion.
|
|
235
235
|
*
|
|
@@ -315,15 +315,25 @@ declare class UserProfile {
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
/**
|
|
318
|
-
*
|
|
318
|
+
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
319
|
+
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
320
|
+
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
321
|
+
* refresh/access/user: populated
|
|
319
322
|
*
|
|
320
|
-
*
|
|
323
|
+
* Response model (includes read-only fields).
|
|
321
324
|
*/
|
|
322
|
-
interface
|
|
323
|
-
/**
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
|
|
325
|
+
interface OTPVerifyResponse$1 {
|
|
326
|
+
/** Whether 2FA verification is required */
|
|
327
|
+
requires_2fa?: boolean;
|
|
328
|
+
/** 2FA session ID (if requires_2fa is True) */
|
|
329
|
+
session_id?: string | null;
|
|
330
|
+
/** JWT refresh token (if requires_2fa is False) */
|
|
331
|
+
refresh?: string | null;
|
|
332
|
+
/** JWT access token (if requires_2fa is False) */
|
|
333
|
+
access?: string | null;
|
|
334
|
+
user?: User$1 | null;
|
|
335
|
+
/** Whether user should be prompted to enable 2FA */
|
|
336
|
+
should_prompt_2fa?: boolean;
|
|
327
337
|
}
|
|
328
338
|
/**
|
|
329
339
|
* Serializer for OTP verification.
|
|
@@ -338,34 +348,24 @@ interface OTPVerifyRequest$1 {
|
|
|
338
348
|
source_url?: string;
|
|
339
349
|
}
|
|
340
350
|
/**
|
|
341
|
-
* OTP request
|
|
351
|
+
* Serializer for OTP request.
|
|
342
352
|
*
|
|
343
|
-
*
|
|
353
|
+
* Request model (no read-only fields).
|
|
344
354
|
*/
|
|
345
|
-
interface
|
|
346
|
-
/**
|
|
347
|
-
|
|
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;
|
|
348
360
|
}
|
|
349
361
|
/**
|
|
350
|
-
* OTP
|
|
351
|
-
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
352
|
-
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
353
|
-
* refresh/access/user: populated
|
|
362
|
+
* OTP request response.
|
|
354
363
|
*
|
|
355
364
|
* Response model (includes read-only fields).
|
|
356
365
|
*/
|
|
357
|
-
interface
|
|
358
|
-
/**
|
|
359
|
-
|
|
360
|
-
/** 2FA session ID (if requires_2fa is True) */
|
|
361
|
-
session_id?: string | null;
|
|
362
|
-
/** JWT refresh token (if requires_2fa is False) */
|
|
363
|
-
refresh?: string | null;
|
|
364
|
-
/** JWT access token (if requires_2fa is False) */
|
|
365
|
-
access?: string | null;
|
|
366
|
-
user?: User$1 | null;
|
|
367
|
-
/** Whether user should be prompted to enable 2FA */
|
|
368
|
-
should_prompt_2fa?: boolean;
|
|
366
|
+
interface OTPRequestResponse$1 {
|
|
367
|
+
/** Success message */
|
|
368
|
+
message: string;
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
371
|
* Serializer for user details.
|
|
@@ -1276,31 +1276,27 @@ declare class API$2 {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
1278
|
/**
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
* Response model (includes read-only fields).
|
|
1282
|
-
*/
|
|
1283
|
-
interface CentrifugoHistoryResponse$1 {
|
|
1284
|
-
error?: CentrifugoError$1 | null;
|
|
1285
|
-
result?: CentrifugoHistoryResult$1 | null;
|
|
1286
|
-
}
|
|
1287
|
-
/**
|
|
1288
|
-
* Request to get channel presence statistics.
|
|
1279
|
+
* Request to get channel history.
|
|
1289
1280
|
*
|
|
1290
1281
|
* Request model (no read-only fields).
|
|
1291
1282
|
*/
|
|
1292
|
-
interface
|
|
1283
|
+
interface CentrifugoHistoryRequestRequest$1 {
|
|
1293
1284
|
/** Channel name */
|
|
1294
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;
|
|
1295
1291
|
}
|
|
1296
1292
|
/**
|
|
1297
|
-
*
|
|
1293
|
+
* Request to list active channels.
|
|
1298
1294
|
*
|
|
1299
|
-
*
|
|
1295
|
+
* Request model (no read-only fields).
|
|
1300
1296
|
*/
|
|
1301
|
-
interface
|
|
1302
|
-
|
|
1303
|
-
|
|
1297
|
+
interface CentrifugoChannelsRequestRequest$1 {
|
|
1298
|
+
/** Pattern to filter channels (e.g., 'user:*') */
|
|
1299
|
+
pattern?: string | null;
|
|
1304
1300
|
}
|
|
1305
1301
|
/**
|
|
1306
1302
|
* Channel presence response.
|
|
@@ -1311,6 +1307,15 @@ interface CentrifugoPresenceResponse$1 {
|
|
|
1311
1307
|
error?: CentrifugoError$1 | null;
|
|
1312
1308
|
result?: CentrifugoPresenceResult$1 | null;
|
|
1313
1309
|
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Request to get channel presence statistics.
|
|
1312
|
+
*
|
|
1313
|
+
* Request model (no read-only fields).
|
|
1314
|
+
*/
|
|
1315
|
+
interface CentrifugoPresenceStatsRequestRequest$1 {
|
|
1316
|
+
/** Channel name */
|
|
1317
|
+
channel: string;
|
|
1318
|
+
}
|
|
1314
1319
|
/**
|
|
1315
1320
|
* Channel presence stats response.
|
|
1316
1321
|
*
|
|
@@ -1330,78 +1335,62 @@ interface CentrifugoChannelsResponse$1 {
|
|
|
1330
1335
|
result?: CentrifugoChannelsResult$1 | null;
|
|
1331
1336
|
}
|
|
1332
1337
|
/**
|
|
1333
|
-
*
|
|
1338
|
+
* Server info response.
|
|
1334
1339
|
*
|
|
1335
|
-
*
|
|
1340
|
+
* Response model (includes read-only fields).
|
|
1336
1341
|
*/
|
|
1337
|
-
interface
|
|
1338
|
-
|
|
1339
|
-
|
|
1342
|
+
interface CentrifugoInfoResponse$1 {
|
|
1343
|
+
error?: CentrifugoError$1 | null;
|
|
1344
|
+
result?: CentrifugoInfoResult$1 | null;
|
|
1340
1345
|
}
|
|
1341
1346
|
/**
|
|
1342
|
-
*
|
|
1347
|
+
* Channel history response.
|
|
1343
1348
|
*
|
|
1344
|
-
*
|
|
1349
|
+
* Response model (includes read-only fields).
|
|
1345
1350
|
*/
|
|
1346
|
-
interface
|
|
1347
|
-
|
|
1348
|
-
|
|
1351
|
+
interface CentrifugoHistoryResponse$1 {
|
|
1352
|
+
error?: CentrifugoError$1 | null;
|
|
1353
|
+
result?: CentrifugoHistoryResult$1 | null;
|
|
1349
1354
|
}
|
|
1350
1355
|
/**
|
|
1351
|
-
* Request to get channel
|
|
1356
|
+
* Request to get channel presence.
|
|
1352
1357
|
*
|
|
1353
1358
|
* Request model (no read-only fields).
|
|
1354
1359
|
*/
|
|
1355
|
-
interface
|
|
1360
|
+
interface CentrifugoPresenceRequestRequest$1 {
|
|
1356
1361
|
/** Channel name */
|
|
1357
1362
|
channel: string;
|
|
1358
|
-
/** Maximum number of messages to return */
|
|
1359
|
-
limit?: number | null;
|
|
1360
|
-
since?: CentrifugoStreamPosition$1 | null;
|
|
1361
|
-
/** Reverse message order (newest first) */
|
|
1362
|
-
reverse?: boolean | null;
|
|
1363
1363
|
}
|
|
1364
1364
|
/**
|
|
1365
|
-
*
|
|
1366
|
-
*
|
|
1367
|
-
* Response model (includes read-only fields).
|
|
1368
|
-
*/
|
|
1369
|
-
interface CentrifugoError$1 {
|
|
1370
|
-
/** Error code (0 = no error) */
|
|
1371
|
-
code?: number;
|
|
1372
|
-
/** Error message */
|
|
1373
|
-
message?: string;
|
|
1374
|
-
}
|
|
1375
|
-
/**
|
|
1376
|
-
* History result wrapper.
|
|
1365
|
+
* Stream position for pagination.
|
|
1377
1366
|
*
|
|
1378
1367
|
* Response model (includes read-only fields).
|
|
1379
1368
|
*/
|
|
1380
|
-
interface
|
|
1381
|
-
/**
|
|
1382
|
-
publications: Array<CentrifugoPublication$1>;
|
|
1383
|
-
/** Current stream epoch */
|
|
1384
|
-
epoch: string;
|
|
1385
|
-
/** Latest stream offset */
|
|
1369
|
+
interface CentrifugoStreamPosition$1 {
|
|
1370
|
+
/** Stream offset */
|
|
1386
1371
|
offset: number;
|
|
1372
|
+
/** Stream epoch */
|
|
1373
|
+
epoch: string;
|
|
1387
1374
|
}
|
|
1388
1375
|
/**
|
|
1389
|
-
*
|
|
1376
|
+
* Presence result wrapper.
|
|
1390
1377
|
*
|
|
1391
1378
|
* Response model (includes read-only fields).
|
|
1392
1379
|
*/
|
|
1393
|
-
interface
|
|
1394
|
-
/**
|
|
1395
|
-
|
|
1380
|
+
interface CentrifugoPresenceResult$1 {
|
|
1381
|
+
/** Map of client IDs to client info */
|
|
1382
|
+
presence: Record<string, CentrifugoClientInfo$1>;
|
|
1396
1383
|
}
|
|
1397
1384
|
/**
|
|
1398
|
-
*
|
|
1385
|
+
* Centrifugo API error structure.
|
|
1399
1386
|
*
|
|
1400
1387
|
* Response model (includes read-only fields).
|
|
1401
1388
|
*/
|
|
1402
|
-
interface
|
|
1403
|
-
/**
|
|
1404
|
-
|
|
1389
|
+
interface CentrifugoError$1 {
|
|
1390
|
+
/** Error code (0 = no error) */
|
|
1391
|
+
code?: number;
|
|
1392
|
+
/** Error message */
|
|
1393
|
+
message?: string;
|
|
1405
1394
|
}
|
|
1406
1395
|
/**
|
|
1407
1396
|
* Presence stats result.
|
|
@@ -1424,54 +1413,26 @@ interface CentrifugoChannelsResult$1 {
|
|
|
1424
1413
|
channels: Record<string, CentrifugoChannelInfo$1>;
|
|
1425
1414
|
}
|
|
1426
1415
|
/**
|
|
1427
|
-
*
|
|
1416
|
+
* Info result wrapper.
|
|
1428
1417
|
*
|
|
1429
1418
|
* Response model (includes read-only fields).
|
|
1430
1419
|
*/
|
|
1431
|
-
interface
|
|
1432
|
-
/**
|
|
1433
|
-
|
|
1434
|
-
/** Stream epoch */
|
|
1435
|
-
epoch: string;
|
|
1420
|
+
interface CentrifugoInfoResult$1 {
|
|
1421
|
+
/** List of Centrifugo nodes */
|
|
1422
|
+
nodes: Array<CentrifugoNodeInfo$1>;
|
|
1436
1423
|
}
|
|
1437
1424
|
/**
|
|
1438
|
-
*
|
|
1425
|
+
* History result wrapper.
|
|
1439
1426
|
*
|
|
1440
1427
|
* Response model (includes read-only fields).
|
|
1441
1428
|
*/
|
|
1442
|
-
interface
|
|
1443
|
-
/**
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1429
|
+
interface CentrifugoHistoryResult$1 {
|
|
1430
|
+
/** List of publications */
|
|
1431
|
+
publications: Array<CentrifugoPublication$1>;
|
|
1432
|
+
/** Current stream epoch */
|
|
1433
|
+
epoch: string;
|
|
1434
|
+
/** Latest stream offset */
|
|
1447
1435
|
offset: number;
|
|
1448
|
-
/** Optional message tags */
|
|
1449
|
-
tags?: Record<string, any> | null;
|
|
1450
|
-
}
|
|
1451
|
-
/**
|
|
1452
|
-
* Information about a single Centrifugo node.
|
|
1453
|
-
*
|
|
1454
|
-
* Response model (includes read-only fields).
|
|
1455
|
-
*/
|
|
1456
|
-
interface CentrifugoNodeInfo$1 {
|
|
1457
|
-
/** Unique node identifier */
|
|
1458
|
-
uid: string;
|
|
1459
|
-
/** Node name */
|
|
1460
|
-
name: string;
|
|
1461
|
-
/** Centrifugo version */
|
|
1462
|
-
version: string;
|
|
1463
|
-
/** Number of connected clients */
|
|
1464
|
-
num_clients: number;
|
|
1465
|
-
/** Number of unique users */
|
|
1466
|
-
num_users: number;
|
|
1467
|
-
/** Number of active channels */
|
|
1468
|
-
num_channels: number;
|
|
1469
|
-
/** Node uptime in seconds */
|
|
1470
|
-
uptime: number;
|
|
1471
|
-
/** Total number of subscriptions */
|
|
1472
|
-
num_subs: number;
|
|
1473
|
-
metrics?: CentrifugoMetrics$1 | null;
|
|
1474
|
-
process?: CentrifugoProcess$1 | null;
|
|
1475
1436
|
}
|
|
1476
1437
|
/**
|
|
1477
1438
|
* Information about connected client.
|
|
@@ -1489,13 +1450,52 @@ interface CentrifugoClientInfo$1 {
|
|
|
1489
1450
|
chan_info?: Record<string, any> | null;
|
|
1490
1451
|
}
|
|
1491
1452
|
/**
|
|
1492
|
-
* Information about a single channel.
|
|
1453
|
+
* Information about a single channel.
|
|
1454
|
+
*
|
|
1455
|
+
* Response model (includes read-only fields).
|
|
1456
|
+
*/
|
|
1457
|
+
interface CentrifugoChannelInfo$1 {
|
|
1458
|
+
/** Number of connected clients in channel */
|
|
1459
|
+
num_clients: number;
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Information about a single Centrifugo node.
|
|
1463
|
+
*
|
|
1464
|
+
* Response model (includes read-only fields).
|
|
1465
|
+
*/
|
|
1466
|
+
interface CentrifugoNodeInfo$1 {
|
|
1467
|
+
/** Unique node identifier */
|
|
1468
|
+
uid: string;
|
|
1469
|
+
/** Node name */
|
|
1470
|
+
name: string;
|
|
1471
|
+
/** Centrifugo version */
|
|
1472
|
+
version: string;
|
|
1473
|
+
/** Number of connected clients */
|
|
1474
|
+
num_clients: number;
|
|
1475
|
+
/** Number of unique users */
|
|
1476
|
+
num_users: number;
|
|
1477
|
+
/** Number of active channels */
|
|
1478
|
+
num_channels: number;
|
|
1479
|
+
/** Node uptime in seconds */
|
|
1480
|
+
uptime: number;
|
|
1481
|
+
/** Total number of subscriptions */
|
|
1482
|
+
num_subs: number;
|
|
1483
|
+
metrics?: CentrifugoMetrics$1 | null;
|
|
1484
|
+
process?: CentrifugoProcess$1 | null;
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Single publication (message) in channel history.
|
|
1493
1488
|
*
|
|
1494
1489
|
* Response model (includes read-only fields).
|
|
1495
1490
|
*/
|
|
1496
|
-
interface
|
|
1497
|
-
/**
|
|
1498
|
-
|
|
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;
|
|
1499
1499
|
}
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Process information.
|
|
@@ -1598,15 +1598,29 @@ declare class CentrifugoAuth {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
1600
|
/**
|
|
1601
|
-
*
|
|
1601
|
+
* Timeline response with hourly/daily breakdown for DRF.
|
|
1602
1602
|
*
|
|
1603
1603
|
* Response model (includes read-only fields).
|
|
1604
1604
|
*/
|
|
1605
|
-
interface
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1605
|
+
interface TimelineResponse$1 {
|
|
1606
|
+
timeline: Array<TimelineItem$1>;
|
|
1607
|
+
period_hours: number;
|
|
1608
|
+
interval: string;
|
|
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;
|
|
1610
1624
|
}
|
|
1611
1625
|
/**
|
|
1612
1626
|
*
|
|
@@ -1633,19 +1647,15 @@ interface PaginatedPublishList$1 {
|
|
|
1633
1647
|
results: Array<Publish$1>;
|
|
1634
1648
|
}
|
|
1635
1649
|
/**
|
|
1636
|
-
*
|
|
1650
|
+
* List of channel statistics.
|
|
1637
1651
|
*
|
|
1638
1652
|
* Response model (includes read-only fields).
|
|
1639
1653
|
*/
|
|
1640
|
-
interface
|
|
1641
|
-
/**
|
|
1642
|
-
|
|
1643
|
-
/**
|
|
1644
|
-
|
|
1645
|
-
/** Whether API key is configured */
|
|
1646
|
-
has_api_key: boolean;
|
|
1647
|
-
/** Current timestamp */
|
|
1648
|
-
timestamp: string;
|
|
1654
|
+
interface ChannelList$1 {
|
|
1655
|
+
/** Channel statistics */
|
|
1656
|
+
channels: Array<ChannelStats$1>;
|
|
1657
|
+
/** Total number of channels */
|
|
1658
|
+
total_channels: number;
|
|
1649
1659
|
}
|
|
1650
1660
|
/**
|
|
1651
1661
|
* Overview statistics for Centrifugo publishes.
|
|
@@ -1671,35 +1681,16 @@ interface CentrifugoOverviewStats$1 {
|
|
|
1671
1681
|
period_hours: number;
|
|
1672
1682
|
}
|
|
1673
1683
|
/**
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1676
|
-
* Response model (includes read-only fields).
|
|
1677
|
-
*/
|
|
1678
|
-
interface TimelineResponse$1 {
|
|
1679
|
-
timeline: Array<TimelineItem$1>;
|
|
1680
|
-
period_hours: number;
|
|
1681
|
-
interval: string;
|
|
1682
|
-
}
|
|
1683
|
-
/**
|
|
1684
|
-
* Statistics per channel.
|
|
1684
|
+
* Single timeline data point for DRF.
|
|
1685
1685
|
*
|
|
1686
1686
|
* Response model (includes read-only fields).
|
|
1687
1687
|
*/
|
|
1688
|
-
interface
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
/** Total publishes to this channel */
|
|
1692
|
-
total: number;
|
|
1693
|
-
/** Successful publishes */
|
|
1688
|
+
interface TimelineItem$1 {
|
|
1689
|
+
timestamp: string;
|
|
1690
|
+
count: number;
|
|
1694
1691
|
successful: number;
|
|
1695
|
-
/** Failed publishes */
|
|
1696
1692
|
failed: number;
|
|
1697
|
-
|
|
1698
|
-
avg_duration_ms: number;
|
|
1699
|
-
/** Average ACKs received */
|
|
1700
|
-
avg_acks: number;
|
|
1701
|
-
/** Last activity timestamp (ISO format) */
|
|
1702
|
-
last_activity_at: string | null;
|
|
1693
|
+
timeout: number;
|
|
1703
1694
|
}
|
|
1704
1695
|
/**
|
|
1705
1696
|
* Single publish item for DRF pagination.
|
|
@@ -1720,16 +1711,25 @@ interface Publish$1 {
|
|
|
1720
1711
|
error_message: string | null;
|
|
1721
1712
|
}
|
|
1722
1713
|
/**
|
|
1723
|
-
*
|
|
1714
|
+
* Statistics per channel.
|
|
1724
1715
|
*
|
|
1725
1716
|
* Response model (includes read-only fields).
|
|
1726
1717
|
*/
|
|
1727
|
-
interface
|
|
1728
|
-
|
|
1729
|
-
|
|
1718
|
+
interface ChannelStats$1 {
|
|
1719
|
+
/** Channel name */
|
|
1720
|
+
channel: string;
|
|
1721
|
+
/** Total publishes to this channel */
|
|
1722
|
+
total: number;
|
|
1723
|
+
/** Successful publishes */
|
|
1730
1724
|
successful: number;
|
|
1725
|
+
/** Failed publishes */
|
|
1731
1726
|
failed: number;
|
|
1732
|
-
|
|
1727
|
+
/** Average duration */
|
|
1728
|
+
avg_duration_ms: number;
|
|
1729
|
+
/** Average ACKs received */
|
|
1730
|
+
avg_acks: number;
|
|
1731
|
+
/** Last activity timestamp (ISO format) */
|
|
1732
|
+
last_activity_at: string | null;
|
|
1733
1733
|
}
|
|
1734
1734
|
|
|
1735
1735
|
/**
|
|
@@ -1769,19 +1769,23 @@ declare class CentrifugoMonitoring {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
1771
1771
|
/**
|
|
1772
|
-
*
|
|
1772
|
+
* Response model for test message publishing.
|
|
1773
1773
|
*
|
|
1774
|
-
*
|
|
1774
|
+
* Response model (includes read-only fields).
|
|
1775
1775
|
*/
|
|
1776
|
-
interface
|
|
1777
|
-
/**
|
|
1776
|
+
interface PublishTestResponse$1 {
|
|
1777
|
+
/** Whether publish succeeded */
|
|
1778
|
+
success: boolean;
|
|
1779
|
+
/** Unique message ID */
|
|
1780
|
+
message_id: string;
|
|
1781
|
+
/** Target channel */
|
|
1778
1782
|
channel: string;
|
|
1779
|
-
/**
|
|
1780
|
-
|
|
1781
|
-
/**
|
|
1782
|
-
|
|
1783
|
-
/**
|
|
1784
|
-
|
|
1783
|
+
/** Number of ACKs received */
|
|
1784
|
+
acks_received?: number;
|
|
1785
|
+
/** Whether message was delivered */
|
|
1786
|
+
delivered?: boolean;
|
|
1787
|
+
/** Error message if failed */
|
|
1788
|
+
error?: string | null;
|
|
1785
1789
|
}
|
|
1786
1790
|
/**
|
|
1787
1791
|
* Response model for manual ACK.
|
|
@@ -1808,23 +1812,19 @@ interface ManualAckRequestRequest$1 {
|
|
|
1808
1812
|
client_id: string;
|
|
1809
1813
|
}
|
|
1810
1814
|
/**
|
|
1811
|
-
*
|
|
1815
|
+
* Request model for test message publishing.
|
|
1812
1816
|
*
|
|
1813
|
-
*
|
|
1817
|
+
* Request model (no read-only fields).
|
|
1814
1818
|
*/
|
|
1815
|
-
interface
|
|
1816
|
-
/**
|
|
1817
|
-
success: boolean;
|
|
1818
|
-
/** Unique message ID */
|
|
1819
|
-
message_id: string;
|
|
1820
|
-
/** Target channel */
|
|
1819
|
+
interface PublishTestRequestRequest$1 {
|
|
1820
|
+
/** Target channel name */
|
|
1821
1821
|
channel: string;
|
|
1822
|
-
/**
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
|
|
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
1828
|
}
|
|
1829
1829
|
|
|
1830
1830
|
/**
|
|
@@ -3183,17 +3183,15 @@ declare class API$1 {
|
|
|
3183
3183
|
}
|
|
3184
3184
|
|
|
3185
3185
|
/**
|
|
3186
|
-
*
|
|
3186
|
+
* Response serializer for backup codes regeneration.
|
|
3187
3187
|
*
|
|
3188
3188
|
* Response model (includes read-only fields).
|
|
3189
3189
|
*/
|
|
3190
|
-
interface
|
|
3191
|
-
/**
|
|
3192
|
-
|
|
3193
|
-
/**
|
|
3194
|
-
|
|
3195
|
-
/** Warning if running low on codes */
|
|
3196
|
-
warning?: string | null;
|
|
3190
|
+
interface BackupCodesRegenerateResponse$1 {
|
|
3191
|
+
/** List of new backup codes (save these!) */
|
|
3192
|
+
backup_codes: Array<string>;
|
|
3193
|
+
/** Warning about previous codes being invalidated */
|
|
3194
|
+
warning: string;
|
|
3197
3195
|
}
|
|
3198
3196
|
/**
|
|
3199
3197
|
* Serializer for regenerating backup codes.
|
|
@@ -3205,15 +3203,17 @@ interface BackupCodesRegenerateRequest$1 {
|
|
|
3205
3203
|
code: string;
|
|
3206
3204
|
}
|
|
3207
3205
|
/**
|
|
3208
|
-
*
|
|
3206
|
+
* Serializer for backup codes status.
|
|
3209
3207
|
*
|
|
3210
3208
|
* Response model (includes read-only fields).
|
|
3211
3209
|
*/
|
|
3212
|
-
interface
|
|
3213
|
-
/**
|
|
3214
|
-
|
|
3215
|
-
/**
|
|
3216
|
-
|
|
3210
|
+
interface BackupCodesStatus$1 {
|
|
3211
|
+
/** Number of unused backup codes */
|
|
3212
|
+
remaining_count: number;
|
|
3213
|
+
/** Total number of codes generated */
|
|
3214
|
+
total_generated: number;
|
|
3215
|
+
/** Warning if running low on codes */
|
|
3216
|
+
warning?: string | null;
|
|
3217
3217
|
}
|
|
3218
3218
|
|
|
3219
3219
|
/**
|
|
@@ -3327,27 +3327,6 @@ declare class TotpManagement {
|
|
|
3327
3327
|
totpDisableCreate(data: DisableRequest$1): Promise<any>;
|
|
3328
3328
|
}
|
|
3329
3329
|
|
|
3330
|
-
/**
|
|
3331
|
-
* Serializer for starting 2FA setup.
|
|
3332
|
-
*
|
|
3333
|
-
* Request model (no read-only fields).
|
|
3334
|
-
*/
|
|
3335
|
-
interface SetupRequest$1 {
|
|
3336
|
-
/** Device name for identification (e.g., 'My iPhone') */
|
|
3337
|
-
device_name?: string;
|
|
3338
|
-
}
|
|
3339
|
-
/**
|
|
3340
|
-
* Response serializer for setup confirmation.
|
|
3341
|
-
*
|
|
3342
|
-
* Response model (includes read-only fields).
|
|
3343
|
-
*/
|
|
3344
|
-
interface ConfirmSetupResponse$1 {
|
|
3345
|
-
message: string;
|
|
3346
|
-
/** List of backup recovery codes (save these!) */
|
|
3347
|
-
backup_codes: Array<string>;
|
|
3348
|
-
/** Warning message about backup codes */
|
|
3349
|
-
backup_codes_warning: string;
|
|
3350
|
-
}
|
|
3351
3330
|
/**
|
|
3352
3331
|
* Serializer for confirming 2FA setup with first code.
|
|
3353
3332
|
*
|
|
@@ -3376,6 +3355,27 @@ interface SetupResponse$1 {
|
|
|
3376
3355
|
/** Seconds until setup expires (typically 600 = 10 minutes) */
|
|
3377
3356
|
expires_in: number;
|
|
3378
3357
|
}
|
|
3358
|
+
/**
|
|
3359
|
+
* Serializer for starting 2FA setup.
|
|
3360
|
+
*
|
|
3361
|
+
* Request model (no read-only fields).
|
|
3362
|
+
*/
|
|
3363
|
+
interface SetupRequest$1 {
|
|
3364
|
+
/** Device name for identification (e.g., 'My iPhone') */
|
|
3365
|
+
device_name?: string;
|
|
3366
|
+
}
|
|
3367
|
+
/**
|
|
3368
|
+
* Response serializer for setup confirmation.
|
|
3369
|
+
*
|
|
3370
|
+
* Response model (includes read-only fields).
|
|
3371
|
+
*/
|
|
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
|
+
}
|
|
3379
3379
|
|
|
3380
3380
|
/**
|
|
3381
3381
|
* API endpoints for TOTP Setup.
|
|
@@ -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
|
*
|