@djangocfg/api 2.1.228 → 2.1.229

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,17 +4,17 @@ import useSWR from 'swr';
4
4
 
5
5
  /**
6
6
  *
7
- * Request model (no read-only fields).
7
+ * Response model (includes read-only fields).
8
8
  */
9
- interface TokenRefreshRequest$1 {
9
+ interface TokenRefresh$1 {
10
+ access: string;
10
11
  refresh: string;
11
12
  }
12
13
  /**
13
14
  *
14
- * Response model (includes read-only fields).
15
+ * Request model (no read-only fields).
15
16
  */
16
- interface TokenRefresh$1 {
17
- access: string;
17
+ interface TokenRefreshRequest$1 {
18
18
  refresh: string;
19
19
  }
20
20
 
@@ -45,24 +45,41 @@ declare namespace enums {
45
45
  }
46
46
 
47
47
  /**
48
- * Response with available OAuth providers.
48
+ * Response with OAuth authorization URL.
49
49
  *
50
50
  * Response model (includes read-only fields).
51
51
  */
52
- interface OAuthProvidersResponse$1 {
53
- /** List of available OAuth providers */
54
- providers: Array<Record<string, any>>;
52
+ interface OAuthAuthorizeResponse$1 {
53
+ /** Full URL to redirect user to OAuth provider */
54
+ authorization_url: string;
55
+ /** State token for CSRF protection. Store this and verify on callback. */
56
+ state: string;
55
57
  }
56
58
  /**
57
- * Request to disconnect OAuth provider.
59
+ * Response with JWT tokens after OAuth authentication. When 2FA is required: -
60
+ * requires_2fa: True - session_id: UUID of 2FA verification session -
61
+ * access/refresh/user: null When 2FA is not required: - requires_2fa: False -
62
+ * session_id: null - access/refresh/user: populated
58
63
  *
59
- * Request model (no read-only fields).
64
+ * Response model (includes read-only fields).
60
65
  */
61
- interface OAuthDisconnectRequestRequest$1 {
62
- /** OAuth provider to disconnect
63
-
64
- * `github` - GitHub */
65
- provider: OAuthConnectionProvider;
66
+ interface OAuthTokenResponse$1 {
67
+ /** True if 2FA verification is required */
68
+ requires_2fa?: boolean;
69
+ /** 2FA session ID (only when requires_2fa=True) */
70
+ session_id?: string | null;
71
+ /** JWT access token (null when requires_2fa=True) */
72
+ access?: string | null;
73
+ /** JWT refresh token (null when requires_2fa=True) */
74
+ refresh?: string | null;
75
+ /** Authenticated user info (null when requires_2fa=True) */
76
+ user?: Record<string, any> | null;
77
+ /** True if a new user was created during this OAuth flow */
78
+ is_new_user: boolean;
79
+ /** True if a new OAuth connection was created */
80
+ is_new_connection: boolean;
81
+ /** True if user should be prompted to enable 2FA */
82
+ should_prompt_2fa?: boolean;
66
83
  }
67
84
  /**
68
85
  * Request to start OAuth flow.
@@ -89,41 +106,24 @@ interface OAuthCallbackRequestRequest$1 {
89
106
  redirect_uri?: string;
90
107
  }
91
108
  /**
92
- * Response with OAuth authorization URL.
109
+ * Request to disconnect OAuth provider.
93
110
  *
94
- * Response model (includes read-only fields).
111
+ * Request model (no read-only fields).
95
112
  */
96
- interface OAuthAuthorizeResponse$1 {
97
- /** Full URL to redirect user to OAuth provider */
98
- authorization_url: string;
99
- /** State token for CSRF protection. Store this and verify on callback. */
100
- state: string;
113
+ interface OAuthDisconnectRequestRequest$1 {
114
+ /** OAuth provider to disconnect
115
+
116
+ * `github` - GitHub */
117
+ provider: OAuthConnectionProvider;
101
118
  }
102
119
  /**
103
- * Response with JWT tokens after OAuth authentication. When 2FA is required: -
104
- * requires_2fa: True - session_id: UUID of 2FA verification session -
105
- * access/refresh/user: null When 2FA is not required: - requires_2fa: False -
106
- * session_id: null - access/refresh/user: populated
120
+ * Response with available OAuth providers.
107
121
  *
108
122
  * Response model (includes read-only fields).
109
123
  */
110
- interface OAuthTokenResponse$1 {
111
- /** True if 2FA verification is required */
112
- requires_2fa?: boolean;
113
- /** 2FA session ID (only when requires_2fa=True) */
114
- session_id?: string | null;
115
- /** JWT access token (null when requires_2fa=True) */
116
- access?: string | null;
117
- /** JWT refresh token (null when requires_2fa=True) */
118
- refresh?: string | null;
119
- /** Authenticated user info (null when requires_2fa=True) */
120
- user?: Record<string, any> | null;
121
- /** True if a new user was created during this OAuth flow */
122
- is_new_user: boolean;
123
- /** True if a new OAuth connection was created */
124
- is_new_connection: boolean;
125
- /** True if user should be prompted to enable 2FA */
126
- should_prompt_2fa?: boolean;
124
+ interface OAuthProvidersResponse$1 {
125
+ /** List of available OAuth providers */
126
+ providers: Array<Record<string, any>>;
127
127
  }
128
128
 
129
129
  /**
@@ -166,23 +166,12 @@ 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
  *
183
172
  * Request model (no read-only fields).
184
173
  */
185
- interface UserProfileUpdateRequest$1 {
174
+ interface PatchedUserProfileUpdateRequest$1 {
186
175
  first_name?: string;
187
176
  last_name?: string;
188
177
  company?: string;
@@ -190,12 +179,20 @@ interface UserProfileUpdateRequest$1 {
190
179
  position?: string;
191
180
  language?: string;
192
181
  }
182
+ /**
183
+ *
184
+ * Request model (no read-only fields).
185
+ */
186
+ interface CfgAccountsProfileAvatarCreateRequest$1 {
187
+ /** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
188
+ avatar: File | Blob;
189
+ }
193
190
  /**
194
191
  * Serializer for updating user profile.
195
192
  *
196
193
  * Request model (no read-only fields).
197
194
  */
198
- interface PatchedUserProfileUpdateRequest$1 {
195
+ interface UserProfileUpdateRequest$1 {
199
196
  first_name?: string;
200
197
  last_name?: string;
201
198
  company?: string;
@@ -234,12 +231,15 @@ interface User$2 {
234
231
  centrifugo: CentrifugoToken$2 | null;
235
232
  }
236
233
  /**
234
+ * Response serializer for account deletion.
237
235
  *
238
- * Request model (no read-only fields).
236
+ * Response model (includes read-only fields).
239
237
  */
240
- interface CfgAccountsProfileAvatarCreateRequest$1 {
241
- /** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
242
- avatar: File | Blob;
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.
@@ -325,6 +325,18 @@ interface OTPRequestRequest$1 {
325
325
  /** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
326
326
  source_url?: string;
327
327
  }
328
+ /**
329
+ * Serializer for OTP verification.
330
+ *
331
+ * Request model (no read-only fields).
332
+ */
333
+ interface OTPVerifyRequest$1 {
334
+ /** Email address used for OTP request */
335
+ identifier: string;
336
+ otp: string;
337
+ /** Source URL for tracking login (e.g., https://my.djangocfg.com) */
338
+ source_url?: string;
339
+ }
328
340
  /**
329
341
  * OTP request response.
330
342
  *
@@ -355,18 +367,6 @@ interface OTPVerifyResponse$1 {
355
367
  /** Whether user should be prompted to enable 2FA */
356
368
  should_prompt_2fa?: boolean;
357
369
  }
358
- /**
359
- * Serializer for OTP verification.
360
- *
361
- * Request model (no read-only fields).
362
- */
363
- interface OTPVerifyRequest$1 {
364
- /** Email address used for OTP request */
365
- identifier: string;
366
- otp: string;
367
- /** Source URL for tracking login (e.g., https://my.djangocfg.com) */
368
- source_url?: string;
369
- }
370
370
  /**
371
371
  * Serializer for user details.
372
372
  *
@@ -1276,63 +1276,67 @@ declare class API$2 {
1276
1276
  }
1277
1277
 
1278
1278
  /**
1279
- * Channel presence response.
1279
+ * Channel history response.
1280
1280
  *
1281
1281
  * Response model (includes read-only fields).
1282
1282
  */
1283
- interface CentrifugoPresenceResponse$1 {
1283
+ interface CentrifugoHistoryResponse$1 {
1284
1284
  error?: CentrifugoError$1 | null;
1285
- result?: CentrifugoPresenceResult$1 | null;
1285
+ result?: CentrifugoHistoryResult$1 | null;
1286
1286
  }
1287
1287
  /**
1288
- * Request to get channel presence.
1288
+ * Request to get channel presence statistics.
1289
1289
  *
1290
1290
  * Request model (no read-only fields).
1291
1291
  */
1292
- interface CentrifugoPresenceRequestRequest$1 {
1292
+ interface CentrifugoPresenceStatsRequestRequest$1 {
1293
1293
  /** Channel name */
1294
1294
  channel: string;
1295
1295
  }
1296
1296
  /**
1297
- * Channel history response.
1297
+ * Server info response.
1298
1298
  *
1299
1299
  * Response model (includes read-only fields).
1300
1300
  */
1301
- interface CentrifugoHistoryResponse$1 {
1301
+ interface CentrifugoInfoResponse$1 {
1302
1302
  error?: CentrifugoError$1 | null;
1303
- result?: CentrifugoHistoryResult$1 | null;
1303
+ result?: CentrifugoInfoResult$1 | null;
1304
1304
  }
1305
1305
  /**
1306
- * Server info response.
1306
+ * Channel presence response.
1307
1307
  *
1308
1308
  * Response model (includes read-only fields).
1309
1309
  */
1310
- interface CentrifugoInfoResponse$1 {
1310
+ interface CentrifugoPresenceResponse$1 {
1311
1311
  error?: CentrifugoError$1 | null;
1312
- result?: CentrifugoInfoResult$1 | null;
1312
+ result?: CentrifugoPresenceResult$1 | null;
1313
1313
  }
1314
1314
  /**
1315
- * Request to get channel presence statistics.
1315
+ * Channel presence stats response.
1316
1316
  *
1317
- * Request model (no read-only fields).
1317
+ * Response model (includes read-only fields).
1318
1318
  */
1319
- interface CentrifugoPresenceStatsRequestRequest$1 {
1320
- /** Channel name */
1321
- channel: string;
1319
+ interface CentrifugoPresenceStatsResponse$1 {
1320
+ error?: CentrifugoError$1 | null;
1321
+ result?: CentrifugoPresenceStatsResult$1 | null;
1322
1322
  }
1323
1323
  /**
1324
- * Request to get channel history.
1324
+ * List of active channels response.
1325
+ *
1326
+ * Response model (includes read-only fields).
1327
+ */
1328
+ interface CentrifugoChannelsResponse$1 {
1329
+ error?: CentrifugoError$1 | null;
1330
+ result?: CentrifugoChannelsResult$1 | null;
1331
+ }
1332
+ /**
1333
+ * Request to get channel presence.
1325
1334
  *
1326
1335
  * Request model (no read-only fields).
1327
1336
  */
1328
- interface CentrifugoHistoryRequestRequest$1 {
1337
+ interface CentrifugoPresenceRequestRequest$1 {
1329
1338
  /** Channel name */
1330
1339
  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
1340
  }
1337
1341
  /**
1338
1342
  * Request to list active channels.
@@ -1344,22 +1348,18 @@ interface CentrifugoChannelsRequestRequest$1 {
1344
1348
  pattern?: string | null;
1345
1349
  }
1346
1350
  /**
1347
- * List of active channels response.
1348
- *
1349
- * Response model (includes read-only fields).
1350
- */
1351
- interface CentrifugoChannelsResponse$1 {
1352
- error?: CentrifugoError$1 | null;
1353
- result?: CentrifugoChannelsResult$1 | null;
1354
- }
1355
- /**
1356
- * Channel presence stats response.
1351
+ * Request to get channel history.
1357
1352
  *
1358
- * Response model (includes read-only fields).
1353
+ * Request model (no read-only fields).
1359
1354
  */
1360
- interface CentrifugoPresenceStatsResponse$1 {
1361
- error?: CentrifugoError$1 | null;
1362
- result?: CentrifugoPresenceStatsResult$1 | null;
1355
+ interface CentrifugoHistoryRequestRequest$1 {
1356
+ /** Channel name */
1357
+ 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
1365
  * Centrifugo API error structure.
@@ -1372,15 +1372,6 @@ interface CentrifugoError$1 {
1372
1372
  /** Error message */
1373
1373
  message?: string;
1374
1374
  }
1375
- /**
1376
- * Presence result wrapper.
1377
- *
1378
- * Response model (includes read-only fields).
1379
- */
1380
- interface CentrifugoPresenceResult$1 {
1381
- /** Map of client IDs to client info */
1382
- presence: Record<string, CentrifugoClientInfo$1>;
1383
- }
1384
1375
  /**
1385
1376
  * History result wrapper.
1386
1377
  *
@@ -1404,24 +1395,13 @@ interface CentrifugoInfoResult$1 {
1404
1395
  nodes: Array<CentrifugoNodeInfo$1>;
1405
1396
  }
1406
1397
  /**
1407
- * Stream position for pagination.
1408
- *
1409
- * Response model (includes read-only fields).
1410
- */
1411
- interface CentrifugoStreamPosition$1 {
1412
- /** Stream offset */
1413
- offset: number;
1414
- /** Stream epoch */
1415
- epoch: string;
1416
- }
1417
- /**
1418
- * Channels result wrapper.
1398
+ * Presence result wrapper.
1419
1399
  *
1420
1400
  * Response model (includes read-only fields).
1421
1401
  */
1422
- interface CentrifugoChannelsResult$1 {
1423
- /** Map of channel names to channel info */
1424
- channels: Record<string, CentrifugoChannelInfo$1>;
1402
+ interface CentrifugoPresenceResult$1 {
1403
+ /** Map of client IDs to client info */
1404
+ presence: Record<string, CentrifugoClientInfo$1>;
1425
1405
  }
1426
1406
  /**
1427
1407
  * Presence stats result.
@@ -1435,19 +1415,24 @@ interface CentrifugoPresenceStatsResult$1 {
1435
1415
  num_users: number;
1436
1416
  }
1437
1417
  /**
1438
- * Information about connected client.
1418
+ * Channels result wrapper.
1439
1419
  *
1440
1420
  * Response model (includes read-only fields).
1441
1421
  */
1442
- interface CentrifugoClientInfo$1 {
1443
- /** User ID */
1444
- user: string;
1445
- /** Client UUID */
1446
- client: string;
1447
- /** Connection metadata */
1448
- conn_info?: Record<string, any> | null;
1449
- /** Channel-specific metadata */
1450
- chan_info?: Record<string, any> | null;
1422
+ interface CentrifugoChannelsResult$1 {
1423
+ /** Map of channel names to channel info */
1424
+ channels: Record<string, CentrifugoChannelInfo$1>;
1425
+ }
1426
+ /**
1427
+ * Stream position for pagination.
1428
+ *
1429
+ * Response model (includes read-only fields).
1430
+ */
1431
+ interface CentrifugoStreamPosition$1 {
1432
+ /** Stream offset */
1433
+ offset: number;
1434
+ /** Stream epoch */
1435
+ epoch: string;
1451
1436
  }
1452
1437
  /**
1453
1438
  * Single publication (message) in channel history.
@@ -1489,24 +1474,28 @@ interface CentrifugoNodeInfo$1 {
1489
1474
  process?: CentrifugoProcess$1 | null;
1490
1475
  }
1491
1476
  /**
1492
- * Information about a single channel.
1477
+ * Information about connected client.
1493
1478
  *
1494
1479
  * Response model (includes read-only fields).
1495
1480
  */
1496
- interface CentrifugoChannelInfo$1 {
1497
- /** Number of connected clients in channel */
1498
- num_clients: number;
1481
+ interface CentrifugoClientInfo$1 {
1482
+ /** User ID */
1483
+ user: string;
1484
+ /** Client UUID */
1485
+ client: string;
1486
+ /** Connection metadata */
1487
+ conn_info?: Record<string, any> | null;
1488
+ /** Channel-specific metadata */
1489
+ chan_info?: Record<string, any> | null;
1499
1490
  }
1500
1491
  /**
1501
- * Server metrics.
1492
+ * Information about a single channel.
1502
1493
  *
1503
1494
  * Response model (includes read-only fields).
1504
1495
  */
1505
- interface CentrifugoMetrics$1 {
1506
- /** Metrics collection interval */
1507
- interval: number;
1508
- /** Metric name to value mapping */
1509
- items: Record<string, any>;
1496
+ interface CentrifugoChannelInfo$1 {
1497
+ /** Number of connected clients in channel */
1498
+ num_clients: number;
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.
@@ -1598,14 +1598,15 @@ declare class CentrifugoAuth {
1598
1598
  }
1599
1599
 
1600
1600
  /**
1601
- * Timeline response with hourly/daily breakdown for DRF.
1601
+ * List of channel statistics.
1602
1602
  *
1603
1603
  * Response model (includes read-only fields).
1604
1604
  */
1605
- interface TimelineResponse$1 {
1606
- timeline: Array<TimelineItem$1>;
1607
- period_hours: number;
1608
- interval: string;
1605
+ interface ChannelList$1 {
1606
+ /** Channel statistics */
1607
+ channels: Array<ChannelStats$1>;
1608
+ /** Total number of channels */
1609
+ total_channels: number;
1609
1610
  }
1610
1611
  /**
1611
1612
  *
@@ -1631,6 +1632,21 @@ interface PaginatedPublishList$1 {
1631
1632
  /** Array of items for current page */
1632
1633
  results: Array<Publish$1>;
1633
1634
  }
1635
+ /**
1636
+ * Health check response.
1637
+ *
1638
+ * Response model (includes read-only fields).
1639
+ */
1640
+ interface CentrifugoHealthCheck$1 {
1641
+ /** Health status: healthy or unhealthy */
1642
+ status: string;
1643
+ /** Configured wrapper URL */
1644
+ wrapper_url: string;
1645
+ /** Whether API key is configured */
1646
+ has_api_key: boolean;
1647
+ /** Current timestamp */
1648
+ timestamp: string;
1649
+ }
1634
1650
  /**
1635
1651
  * Overview statistics for Centrifugo publishes.
1636
1652
  *
@@ -1655,42 +1671,35 @@ interface CentrifugoOverviewStats$1 {
1655
1671
  period_hours: number;
1656
1672
  }
1657
1673
  /**
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
+ * Timeline response with hourly/daily breakdown for DRF.
1674
1675
  *
1675
1676
  * Response model (includes read-only fields).
1676
1677
  */
1677
- interface ChannelList$1 {
1678
- /** Channel statistics */
1679
- channels: Array<ChannelStats$1>;
1680
- /** Total number of channels */
1681
- total_channels: number;
1678
+ interface TimelineResponse$1 {
1679
+ timeline: Array<TimelineItem$1>;
1680
+ period_hours: number;
1681
+ interval: string;
1682
1682
  }
1683
1683
  /**
1684
- * Single timeline data point for DRF.
1684
+ * Statistics per channel.
1685
1685
  *
1686
1686
  * Response model (includes read-only fields).
1687
1687
  */
1688
- interface TimelineItem$1 {
1689
- timestamp: string;
1690
- count: number;
1688
+ interface ChannelStats$1 {
1689
+ /** Channel name */
1690
+ channel: string;
1691
+ /** Total publishes to this channel */
1692
+ total: number;
1693
+ /** Successful publishes */
1691
1694
  successful: number;
1695
+ /** Failed publishes */
1692
1696
  failed: number;
1693
- timeout: number;
1697
+ /** Average duration */
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;
1694
1703
  }
1695
1704
  /**
1696
1705
  * Single publish item for DRF pagination.
@@ -1711,25 +1720,16 @@ interface Publish$1 {
1711
1720
  error_message: string | null;
1712
1721
  }
1713
1722
  /**
1714
- * Statistics per channel.
1723
+ * Single timeline data point for DRF.
1715
1724
  *
1716
1725
  * Response model (includes read-only fields).
1717
1726
  */
1718
- interface ChannelStats$1 {
1719
- /** Channel name */
1720
- channel: string;
1721
- /** Total publishes to this channel */
1722
- total: number;
1723
- /** Successful publishes */
1727
+ interface TimelineItem$1 {
1728
+ timestamp: string;
1729
+ count: number;
1724
1730
  successful: number;
1725
- /** Failed publishes */
1726
1731
  failed: number;
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;
1732
+ timeout: number;
1733
1733
  }
1734
1734
 
1735
1735
  /**
@@ -1783,25 +1783,6 @@ interface PublishTestRequestRequest$1 {
1783
1783
  /** ACK timeout in seconds */
1784
1784
  ack_timeout?: number;
1785
1785
  }
1786
- /**
1787
- * Response model for test message publishing.
1788
- *
1789
- * Response model (includes read-only fields).
1790
- */
1791
- interface PublishTestResponse$1 {
1792
- /** Whether publish succeeded */
1793
- success: boolean;
1794
- /** Unique message ID */
1795
- message_id: string;
1796
- /** Target channel */
1797
- channel: string;
1798
- /** Number of ACKs received */
1799
- acks_received?: number;
1800
- /** Whether message was delivered */
1801
- delivered?: boolean;
1802
- /** Error message if failed */
1803
- error?: string | null;
1804
- }
1805
1786
  /**
1806
1787
  * Response model for manual ACK.
1807
1788
  *
@@ -1826,6 +1807,25 @@ interface ManualAckRequestRequest$1 {
1826
1807
  /** Client ID sending the ACK */
1827
1808
  client_id: string;
1828
1809
  }
1810
+ /**
1811
+ * Response model for test message publishing.
1812
+ *
1813
+ * Response model (includes read-only fields).
1814
+ */
1815
+ interface PublishTestResponse$1 {
1816
+ /** Whether publish succeeded */
1817
+ success: boolean;
1818
+ /** Unique message ID */
1819
+ message_id: string;
1820
+ /** Target channel */
1821
+ channel: string;
1822
+ /** Number of ACKs received */
1823
+ acks_received?: number;
1824
+ /** Whether message was delivered */
1825
+ delivered?: boolean;
1826
+ /** Error message if failed */
1827
+ error?: string | null;
1828
+ }
1829
1829
 
1830
1830
  /**
1831
1831
  * API endpoints for Centrifugo Testing.
@@ -3182,6 +3182,19 @@ declare class API$1 {
3182
3182
  getSchemaPath(): string;
3183
3183
  }
3184
3184
 
3185
+ /**
3186
+ * Serializer for backup codes status.
3187
+ *
3188
+ * Response model (includes read-only fields).
3189
+ */
3190
+ interface BackupCodesStatus$1 {
3191
+ /** Number of unused backup codes */
3192
+ remaining_count: number;
3193
+ /** Total number of codes generated */
3194
+ total_generated: number;
3195
+ /** Warning if running low on codes */
3196
+ warning?: string | null;
3197
+ }
3185
3198
  /**
3186
3199
  * Serializer for regenerating backup codes.
3187
3200
  *
@@ -3202,19 +3215,6 @@ interface BackupCodesRegenerateResponse$1 {
3202
3215
  /** Warning about previous codes being invalidated */
3203
3216
  warning: string;
3204
3217
  }
3205
- /**
3206
- * Serializer for backup codes status.
3207
- *
3208
- * Response model (includes read-only fields).
3209
- */
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
- }
3218
3218
 
3219
3219
  /**
3220
3220
  * API endpoints for Backup Codes.
@@ -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
  *
@@ -3327,6 +3327,15 @@ 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
+ }
3330
3339
  /**
3331
3340
  * Response serializer for setup confirmation.
3332
3341
  *
@@ -3339,6 +3348,17 @@ interface ConfirmSetupResponse$1 {
3339
3348
  /** Warning message about backup codes */
3340
3349
  backup_codes_warning: string;
3341
3350
  }
3351
+ /**
3352
+ * Serializer for confirming 2FA setup with first code.
3353
+ *
3354
+ * Request model (no read-only fields).
3355
+ */
3356
+ interface ConfirmSetupRequest$1 {
3357
+ /** Device ID from setup response */
3358
+ device_id: string;
3359
+ /** 6-digit TOTP code from authenticator app */
3360
+ code: string;
3361
+ }
3342
3362
  /**
3343
3363
  * Response serializer for setup initiation.
3344
3364
  *
@@ -3356,26 +3376,6 @@ interface SetupResponse$1 {
3356
3376
  /** Seconds until setup expires (typically 600 = 10 minutes) */
3357
3377
  expires_in: number;
3358
3378
  }
3359
- /**
3360
- * Serializer for starting 2FA setup.
3361
- *
3362
- * Request model (no read-only fields).
3363
- */
3364
- interface SetupRequest$1 {
3365
- /** Device name for identification (e.g., 'My iPhone') */
3366
- device_name?: string;
3367
- }
3368
- /**
3369
- * Serializer for confirming 2FA setup with first code.
3370
- *
3371
- * Request model (no read-only fields).
3372
- */
3373
- interface ConfirmSetupRequest$1 {
3374
- /** Device ID from setup response */
3375
- device_id: string;
3376
- /** 6-digit TOTP code from authenticator app */
3377
- code: string;
3378
- }
3379
3379
 
3380
3380
  /**
3381
3381
  * API endpoints for TOTP Setup.