@djangocfg/api 2.1.224 → 2.1.226

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.
@@ -56,28 +56,15 @@ declare namespace enums {
56
56
  }
57
57
 
58
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
- /**
72
- * Request to start OAuth flow.
59
+ * Request to disconnect OAuth provider.
73
60
  *
74
61
  * Request model (no read-only fields).
75
62
  */
76
- interface OAuthAuthorizeRequestRequest$1 {
77
- /** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
78
- redirect_uri?: string;
79
- /** Optional source URL for registration tracking */
80
- source_url?: string;
63
+ interface OAuthDisconnectRequestRequest$1 {
64
+ /** OAuth provider to disconnect
65
+
66
+ * `github` - GitHub */
67
+ provider: OAuthConnectionProvider;
81
68
  }
82
69
  /**
83
70
  * Response with OAuth authorization URL.
@@ -91,13 +78,15 @@ interface OAuthAuthorizeResponse$1 {
91
78
  state: string;
92
79
  }
93
80
  /**
94
- * Response with available OAuth providers.
81
+ * Request to start OAuth flow.
95
82
  *
96
- * Response model (includes read-only fields).
83
+ * Request model (no read-only fields).
97
84
  */
98
- interface OAuthProvidersResponse$1 {
99
- /** List of available OAuth providers */
100
- providers: Array<Record<string, any>>;
85
+ interface OAuthAuthorizeRequestRequest$1 {
86
+ /** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
87
+ redirect_uri?: string;
88
+ /** Optional source URL for registration tracking */
89
+ source_url?: string;
101
90
  }
102
91
  /**
103
92
  * Response with JWT tokens after OAuth authentication. When 2FA is required: -
@@ -126,15 +115,26 @@ interface OAuthTokenResponse$1 {
126
115
  should_prompt_2fa?: boolean;
127
116
  }
128
117
  /**
129
- * Request to disconnect OAuth provider.
118
+ * Response with available OAuth providers.
119
+ *
120
+ * Response model (includes read-only fields).
121
+ */
122
+ interface OAuthProvidersResponse$1 {
123
+ /** List of available OAuth providers */
124
+ providers: Array<Record<string, any>>;
125
+ }
126
+ /**
127
+ * Request to complete OAuth flow (callback handler).
130
128
  *
131
129
  * Request model (no read-only fields).
132
130
  */
133
- interface OAuthDisconnectRequestRequest$1 {
134
- /** OAuth provider to disconnect
135
-
136
- * `github` - GitHub */
137
- provider: OAuthConnectionProvider;
131
+ interface OAuthCallbackRequestRequest$1 {
132
+ /** Authorization code from OAuth provider callback */
133
+ code: string;
134
+ /** State token for CSRF verification (from authorize response) */
135
+ state: string;
136
+ /** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
137
+ redirect_uri?: string;
138
138
  }
139
139
 
140
140
  /**
@@ -177,6 +177,27 @@ declare class Oauth {
177
177
  accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse$1>;
178
178
  }
179
179
 
180
+ /**
181
+ * Serializer for updating user profile.
182
+ *
183
+ * Request model (no read-only fields).
184
+ */
185
+ interface UserProfileUpdateRequest$1 {
186
+ first_name?: string;
187
+ last_name?: string;
188
+ company?: string;
189
+ phone?: string;
190
+ position?: string;
191
+ language?: string;
192
+ }
193
+ /**
194
+ *
195
+ * Request model (no read-only fields).
196
+ */
197
+ interface CfgAccountsProfileAvatarCreateRequest$1 {
198
+ /** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
199
+ avatar: File | Blob;
200
+ }
180
201
  /**
181
202
  * Serializer for user details.
182
203
  *
@@ -212,7 +233,7 @@ interface User$2 {
212
233
  *
213
234
  * Request model (no read-only fields).
214
235
  */
215
- interface UserProfileUpdateRequest$1 {
236
+ interface PatchedUserProfileUpdateRequest$1 {
216
237
  first_name?: string;
217
238
  last_name?: string;
218
239
  company?: string;
@@ -231,27 +252,6 @@ interface AccountDeleteResponse$1 {
231
252
  /** Human-readable message about the deletion */
232
253
  message: string;
233
254
  }
234
- /**
235
- * Serializer for updating user profile.
236
- *
237
- * Request model (no read-only fields).
238
- */
239
- interface PatchedUserProfileUpdateRequest$1 {
240
- first_name?: string;
241
- last_name?: string;
242
- company?: string;
243
- phone?: string;
244
- position?: string;
245
- language?: string;
246
- }
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
  *
@@ -341,15 +341,6 @@ interface OTPRequestRequest$1 {
341
341
  /** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
342
342
  source_url?: string;
343
343
  }
344
- /**
345
- * OTP request response.
346
- *
347
- * Response model (includes read-only fields).
348
- */
349
- interface OTPRequestResponse$1 {
350
- /** Success message */
351
- message: string;
352
- }
353
344
  /**
354
345
  * OTP verification response. When 2FA is required: - requires_2fa: True -
355
346
  * session_id: UUID of 2FA verification session - refresh/access/user: null
@@ -371,6 +362,15 @@ interface OTPVerifyResponse$1 {
371
362
  /** Whether user should be prompted to enable 2FA */
372
363
  should_prompt_2fa?: boolean;
373
364
  }
365
+ /**
366
+ * OTP request response.
367
+ *
368
+ * Response model (includes read-only fields).
369
+ */
370
+ interface OTPRequestResponse$1 {
371
+ /** Success message */
372
+ message: string;
373
+ }
374
374
  /**
375
375
  * Serializer for OTP verification.
376
376
  *
@@ -1277,13 +1277,22 @@ declare class API$2 {
1277
1277
  }
1278
1278
 
1279
1279
  /**
1280
- * Request to get channel presence statistics.
1280
+ * Channel history response.
1281
1281
  *
1282
- * Request model (no read-only fields).
1282
+ * Response model (includes read-only fields).
1283
1283
  */
1284
- interface CentrifugoPresenceStatsRequestRequest$1 {
1285
- /** Channel name */
1286
- channel: string;
1284
+ interface CentrifugoHistoryResponse$1 {
1285
+ error?: CentrifugoError$1 | null;
1286
+ result?: CentrifugoHistoryResult$1 | null;
1287
+ }
1288
+ /**
1289
+ * Channel presence response.
1290
+ *
1291
+ * Response model (includes read-only fields).
1292
+ */
1293
+ interface CentrifugoPresenceResponse$1 {
1294
+ error?: CentrifugoError$1 | null;
1295
+ result?: CentrifugoPresenceResult$1 | null;
1287
1296
  }
1288
1297
  /**
1289
1298
  * Server info response.
@@ -1294,6 +1303,33 @@ interface CentrifugoInfoResponse$1 {
1294
1303
  error?: CentrifugoError$1 | null;
1295
1304
  result?: CentrifugoInfoResult$1 | null;
1296
1305
  }
1306
+ /**
1307
+ * Request to get channel presence.
1308
+ *
1309
+ * Request model (no read-only fields).
1310
+ */
1311
+ interface CentrifugoPresenceRequestRequest$1 {
1312
+ /** Channel name */
1313
+ channel: string;
1314
+ }
1315
+ /**
1316
+ * List of active channels response.
1317
+ *
1318
+ * Response model (includes read-only fields).
1319
+ */
1320
+ interface CentrifugoChannelsResponse$1 {
1321
+ error?: CentrifugoError$1 | null;
1322
+ result?: CentrifugoChannelsResult$1 | null;
1323
+ }
1324
+ /**
1325
+ * Request to get channel presence statistics.
1326
+ *
1327
+ * Request model (no read-only fields).
1328
+ */
1329
+ interface CentrifugoPresenceStatsRequestRequest$1 {
1330
+ /** Channel name */
1331
+ channel: string;
1332
+ }
1297
1333
  /**
1298
1334
  * Request to get channel history.
1299
1335
  *
@@ -1317,15 +1353,6 @@ interface CentrifugoChannelsRequestRequest$1 {
1317
1353
  /** Pattern to filter channels (e.g., 'user:*') */
1318
1354
  pattern?: string | null;
1319
1355
  }
1320
- /**
1321
- * Channel presence response.
1322
- *
1323
- * Response model (includes read-only fields).
1324
- */
1325
- interface CentrifugoPresenceResponse$1 {
1326
- error?: CentrifugoError$1 | null;
1327
- result?: CentrifugoPresenceResult$1 | null;
1328
- }
1329
1356
  /**
1330
1357
  * Channel presence stats response.
1331
1358
  *
@@ -1336,31 +1363,37 @@ interface CentrifugoPresenceStatsResponse$1 {
1336
1363
  result?: CentrifugoPresenceStatsResult$1 | null;
1337
1364
  }
1338
1365
  /**
1339
- * Channel history response.
1366
+ * History result wrapper.
1340
1367
  *
1341
1368
  * Response model (includes read-only fields).
1342
1369
  */
1343
- interface CentrifugoHistoryResponse$1 {
1344
- error?: CentrifugoError$1 | null;
1345
- result?: CentrifugoHistoryResult$1 | null;
1370
+ interface CentrifugoHistoryResult$1 {
1371
+ /** List of publications */
1372
+ publications: Array<CentrifugoPublication$1>;
1373
+ /** Current stream epoch */
1374
+ epoch: string;
1375
+ /** Latest stream offset */
1376
+ offset: number;
1346
1377
  }
1347
1378
  /**
1348
- * List of active channels response.
1379
+ * Centrifugo API error structure.
1349
1380
  *
1350
1381
  * Response model (includes read-only fields).
1351
1382
  */
1352
- interface CentrifugoChannelsResponse$1 {
1353
- error?: CentrifugoError$1 | null;
1354
- result?: CentrifugoChannelsResult$1 | null;
1383
+ interface CentrifugoError$1 {
1384
+ /** Error code (0 = no error) */
1385
+ code?: number;
1386
+ /** Error message */
1387
+ message?: string;
1355
1388
  }
1356
1389
  /**
1357
- * Request to get channel presence.
1390
+ * Presence result wrapper.
1358
1391
  *
1359
- * Request model (no read-only fields).
1392
+ * Response model (includes read-only fields).
1360
1393
  */
1361
- interface CentrifugoPresenceRequestRequest$1 {
1362
- /** Channel name */
1363
- channel: string;
1394
+ interface CentrifugoPresenceResult$1 {
1395
+ /** Map of client IDs to client info */
1396
+ presence: Record<string, CentrifugoClientInfo$1>;
1364
1397
  }
1365
1398
  /**
1366
1399
  * Info result wrapper.
@@ -1372,15 +1405,13 @@ interface CentrifugoInfoResult$1 {
1372
1405
  nodes: Array<CentrifugoNodeInfo$1>;
1373
1406
  }
1374
1407
  /**
1375
- * Centrifugo API error structure.
1408
+ * Channels result wrapper.
1376
1409
  *
1377
1410
  * Response model (includes read-only fields).
1378
1411
  */
1379
- interface CentrifugoError$1 {
1380
- /** Error code (0 = no error) */
1381
- code?: number;
1382
- /** Error message */
1383
- message?: string;
1412
+ interface CentrifugoChannelsResult$1 {
1413
+ /** Map of channel names to channel info */
1414
+ channels: Record<string, CentrifugoChannelInfo$1>;
1384
1415
  }
1385
1416
  /**
1386
1417
  * Stream position for pagination.
@@ -1393,15 +1424,6 @@ interface CentrifugoStreamPosition$1 {
1393
1424
  /** Stream epoch */
1394
1425
  epoch: string;
1395
1426
  }
1396
- /**
1397
- * Presence result wrapper.
1398
- *
1399
- * Response model (includes read-only fields).
1400
- */
1401
- interface CentrifugoPresenceResult$1 {
1402
- /** Map of client IDs to client info */
1403
- presence: Record<string, CentrifugoClientInfo$1>;
1404
- }
1405
1427
  /**
1406
1428
  * Presence stats result.
1407
1429
  *
@@ -1414,26 +1436,33 @@ interface CentrifugoPresenceStatsResult$1 {
1414
1436
  num_users: number;
1415
1437
  }
1416
1438
  /**
1417
- * History result wrapper.
1439
+ * Single publication (message) in channel history.
1418
1440
  *
1419
1441
  * Response model (includes read-only fields).
1420
1442
  */
1421
- interface CentrifugoHistoryResult$1 {
1422
- /** List of publications */
1423
- publications: Array<CentrifugoPublication$1>;
1424
- /** Current stream epoch */
1425
- epoch: string;
1426
- /** Latest stream offset */
1443
+ interface CentrifugoPublication$1 {
1444
+ /** Message payload */
1445
+ data: Record<string, any>;
1446
+ info?: CentrifugoClientInfo$1 | null;
1447
+ /** Message offset in channel stream */
1427
1448
  offset: number;
1449
+ /** Optional message tags */
1450
+ tags?: Record<string, any> | null;
1428
1451
  }
1429
1452
  /**
1430
- * Channels result wrapper.
1453
+ * Information about connected client.
1431
1454
  *
1432
1455
  * Response model (includes read-only fields).
1433
1456
  */
1434
- interface CentrifugoChannelsResult$1 {
1435
- /** Map of channel names to channel info */
1436
- channels: Record<string, CentrifugoChannelInfo$1>;
1457
+ interface CentrifugoClientInfo$1 {
1458
+ /** User ID */
1459
+ user: string;
1460
+ /** Client UUID */
1461
+ client: string;
1462
+ /** Connection metadata */
1463
+ conn_info?: Record<string, any> | null;
1464
+ /** Channel-specific metadata */
1465
+ chan_info?: Record<string, any> | null;
1437
1466
  }
1438
1467
  /**
1439
1468
  * Information about a single Centrifugo node.
@@ -1460,35 +1489,6 @@ interface CentrifugoNodeInfo$1 {
1460
1489
  metrics?: CentrifugoMetrics$1 | null;
1461
1490
  process?: CentrifugoProcess$1 | null;
1462
1491
  }
1463
- /**
1464
- * Information about connected client.
1465
- *
1466
- * Response model (includes read-only fields).
1467
- */
1468
- interface CentrifugoClientInfo$1 {
1469
- /** User ID */
1470
- user: string;
1471
- /** Client UUID */
1472
- client: string;
1473
- /** Connection metadata */
1474
- conn_info?: Record<string, any> | null;
1475
- /** Channel-specific metadata */
1476
- chan_info?: Record<string, any> | null;
1477
- }
1478
- /**
1479
- * Single publication (message) in channel history.
1480
- *
1481
- * Response model (includes read-only fields).
1482
- */
1483
- interface CentrifugoPublication$1 {
1484
- /** Message payload */
1485
- data: Record<string, any>;
1486
- info?: CentrifugoClientInfo$1 | null;
1487
- /** Message offset in channel stream */
1488
- offset: number;
1489
- /** Optional message tags */
1490
- tags?: Record<string, any> | null;
1491
- }
1492
1492
  /**
1493
1493
  * Information about a single channel.
1494
1494
  *
@@ -1598,6 +1598,16 @@ declare class CentrifugoAuth {
1598
1598
  tokenRetrieve(): Promise<ConnectionTokenResponse$1>;
1599
1599
  }
1600
1600
 
1601
+ /**
1602
+ * Timeline response with hourly/daily breakdown for DRF.
1603
+ *
1604
+ * Response model (includes read-only fields).
1605
+ */
1606
+ interface TimelineResponse$1 {
1607
+ timeline: Array<TimelineItem$1>;
1608
+ period_hours: number;
1609
+ interval: string;
1610
+ }
1601
1611
  /**
1602
1612
  *
1603
1613
  * Response model (includes read-only fields).
@@ -1623,14 +1633,15 @@ interface PaginatedPublishList$1 {
1623
1633
  results: Array<Publish$1>;
1624
1634
  }
1625
1635
  /**
1626
- * Timeline response with hourly/daily breakdown for DRF.
1636
+ * List of channel statistics.
1627
1637
  *
1628
1638
  * Response model (includes read-only fields).
1629
1639
  */
1630
- interface TimelineResponse$1 {
1631
- timeline: Array<TimelineItem$1>;
1632
- period_hours: number;
1633
- interval: string;
1640
+ interface ChannelList$1 {
1641
+ /** Channel statistics */
1642
+ channels: Array<ChannelStats$1>;
1643
+ /** Total number of channels */
1644
+ total_channels: number;
1634
1645
  }
1635
1646
  /**
1636
1647
  * Health check response.
@@ -1647,17 +1658,6 @@ interface CentrifugoHealthCheck$1 {
1647
1658
  /** Current timestamp */
1648
1659
  timestamp: string;
1649
1660
  }
1650
- /**
1651
- * List of channel statistics.
1652
- *
1653
- * Response model (includes read-only fields).
1654
- */
1655
- interface ChannelList$1 {
1656
- /** Channel statistics */
1657
- channels: Array<ChannelStats$1>;
1658
- /** Total number of channels */
1659
- total_channels: number;
1660
- }
1661
1661
  /**
1662
1662
  * Overview statistics for Centrifugo publishes.
1663
1663
  *
@@ -1681,6 +1681,18 @@ interface CentrifugoOverviewStats$1 {
1681
1681
  /** Statistics period in hours */
1682
1682
  period_hours: number;
1683
1683
  }
1684
+ /**
1685
+ * Single timeline data point for DRF.
1686
+ *
1687
+ * Response model (includes read-only fields).
1688
+ */
1689
+ interface TimelineItem$1 {
1690
+ timestamp: string;
1691
+ count: number;
1692
+ successful: number;
1693
+ failed: number;
1694
+ timeout: number;
1695
+ }
1684
1696
  /**
1685
1697
  * Single publish item for DRF pagination.
1686
1698
  *
@@ -1699,18 +1711,6 @@ interface Publish$1 {
1699
1711
  error_code: string | null;
1700
1712
  error_message: string | null;
1701
1713
  }
1702
- /**
1703
- * Single timeline data point for DRF.
1704
- *
1705
- * Response model (includes read-only fields).
1706
- */
1707
- interface TimelineItem$1 {
1708
- timestamp: string;
1709
- count: number;
1710
- successful: number;
1711
- failed: number;
1712
- timeout: number;
1713
- }
1714
1714
  /**
1715
1715
  * Statistics per channel.
1716
1716
  *
@@ -1769,6 +1769,34 @@ declare class CentrifugoMonitoring {
1769
1769
  }): Promise<TimelineResponse$1>;
1770
1770
  }
1771
1771
 
1772
+ /**
1773
+ * Response model for manual ACK.
1774
+ *
1775
+ * Response model (includes read-only fields).
1776
+ */
1777
+ interface ManualAckResponse$1 {
1778
+ /** Whether ACK was sent successfully */
1779
+ success: boolean;
1780
+ /** Message ID that was acknowledged */
1781
+ message_id: string;
1782
+ /** Error message if failed */
1783
+ error?: string | null;
1784
+ }
1785
+ /**
1786
+ * Request model for test message publishing.
1787
+ *
1788
+ * Request model (no read-only fields).
1789
+ */
1790
+ interface PublishTestRequestRequest$1 {
1791
+ /** Target channel name */
1792
+ channel: string;
1793
+ /** Message data (any JSON object) */
1794
+ data: Record<string, any>;
1795
+ /** Wait for client acknowledgment */
1796
+ wait_for_ack?: boolean;
1797
+ /** ACK timeout in seconds */
1798
+ ack_timeout?: number;
1799
+ }
1772
1800
  /**
1773
1801
  * Response model for test message publishing.
1774
1802
  *
@@ -1788,19 +1816,6 @@ interface PublishTestResponse$1 {
1788
1816
  /** Error message if failed */
1789
1817
  error?: string | null;
1790
1818
  }
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
1819
  /**
1805
1820
  * Request model for manual ACK sending.
1806
1821
  *
@@ -1812,21 +1827,6 @@ interface ManualAckRequestRequest$1 {
1812
1827
  /** Client ID sending the ACK */
1813
1828
  client_id: string;
1814
1829
  }
1815
- /**
1816
- * Request model for test message publishing.
1817
- *
1818
- * Request model (no read-only fields).
1819
- */
1820
- interface PublishTestRequestRequest$1 {
1821
- /** Target channel name */
1822
- channel: string;
1823
- /** Message data (any JSON object) */
1824
- data: Record<string, any>;
1825
- /** Wait for client acknowledgment */
1826
- wait_for_ack?: boolean;
1827
- /** ACK timeout in seconds */
1828
- ack_timeout?: number;
1829
- }
1830
1830
 
1831
1831
  /**
1832
1832
  * API endpoints for Centrifugo Testing.
@@ -3245,6 +3245,15 @@ declare enum DeviceListStatus {
3245
3245
  DISABLED = "disabled"
3246
3246
  }
3247
3247
 
3248
+ /**
3249
+ * Serializer for completely disabling 2FA.
3250
+ *
3251
+ * Request model (no read-only fields).
3252
+ */
3253
+ interface DisableRequest$1 {
3254
+ /** TOTP code for verification */
3255
+ code: string;
3256
+ }
3248
3257
  /**
3249
3258
  *
3250
3259
  * Response model (includes read-only fields).
@@ -3269,15 +3278,6 @@ interface PaginatedDeviceListResponseList$1 {
3269
3278
  /** Array of items for current page */
3270
3279
  results: Array<DeviceListResponse$1>;
3271
3280
  }
3272
- /**
3273
- * Serializer for completely disabling 2FA.
3274
- *
3275
- * Request model (no read-only fields).
3276
- */
3277
- interface DisableRequest$1 {
3278
- /** TOTP code for verification */
3279
- code: string;
3280
- }
3281
3281
  /**
3282
3282
  * Response serializer for device list endpoint.
3283
3283
  *
@@ -3340,17 +3340,6 @@ interface ConfirmSetupResponse$1 {
3340
3340
  /** Warning message about backup codes */
3341
3341
  backup_codes_warning: string;
3342
3342
  }
3343
- /**
3344
- * Serializer for confirming 2FA setup with first code.
3345
- *
3346
- * Request model (no read-only fields).
3347
- */
3348
- interface ConfirmSetupRequest$1 {
3349
- /** Device ID from setup response */
3350
- device_id: string;
3351
- /** 6-digit TOTP code from authenticator app */
3352
- code: string;
3353
- }
3354
3343
  /**
3355
3344
  * Response serializer for setup initiation.
3356
3345
  *
@@ -3368,6 +3357,17 @@ interface SetupResponse$1 {
3368
3357
  /** Seconds until setup expires (typically 600 = 10 minutes) */
3369
3358
  expires_in: number;
3370
3359
  }
3360
+ /**
3361
+ * Serializer for confirming 2FA setup with first code.
3362
+ *
3363
+ * Request model (no read-only fields).
3364
+ */
3365
+ interface ConfirmSetupRequest$1 {
3366
+ /** Device ID from setup response */
3367
+ device_id: string;
3368
+ /** 6-digit TOTP code from authenticator app */
3369
+ code: string;
3370
+ }
3371
3371
  /**
3372
3372
  * Serializer for starting 2FA setup.
3373
3373
  *
@@ -3407,17 +3407,6 @@ interface VerifyRequest$1 {
3407
3407
  /** 6-digit TOTP code from authenticator app */
3408
3408
  code: string;
3409
3409
  }
3410
- /**
3411
- * Serializer for backup code verification during login.
3412
- *
3413
- * Request model (no read-only fields).
3414
- */
3415
- interface VerifyBackupRequest$1 {
3416
- /** 2FA session ID from login response */
3417
- session_id: string;
3418
- /** 8-character backup recovery code */
3419
- backup_code: string;
3420
- }
3421
3410
  /**
3422
3411
  * Response serializer for successful 2FA verification.
3423
3412
  *
@@ -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 backup code verification during login.
3429
+ *
3430
+ * Request model (no read-only fields).
3431
+ */
3432
+ interface VerifyBackupRequest$1 {
3433
+ /** 2FA session ID from login response */
3434
+ session_id: string;
3435
+ /** 8-character backup recovery code */
3436
+ backup_code: string;
3437
+ }
3438
3438
  /**
3439
3439
  * User data returned after 2FA verification.
3440
3440
  *