@djangocfg/api 2.1.440 → 2.1.442

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.
Files changed (41) hide show
  1. package/dist/auth-server.cjs +53 -119
  2. package/dist/auth-server.cjs.map +1 -1
  3. package/dist/auth-server.mjs +53 -119
  4. package/dist/auth-server.mjs.map +1 -1
  5. package/dist/auth.cjs +222 -277
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.mjs +222 -277
  8. package/dist/auth.mjs.map +1 -1
  9. package/dist/clients.cjs +53 -119
  10. package/dist/clients.cjs.map +1 -1
  11. package/dist/clients.d.cts +50 -1
  12. package/dist/clients.d.ts +50 -1
  13. package/dist/clients.mjs +53 -119
  14. package/dist/clients.mjs.map +1 -1
  15. package/dist/hooks.cjs +102 -20
  16. package/dist/hooks.cjs.map +1 -1
  17. package/dist/hooks.d.cts +13 -0
  18. package/dist/hooks.d.ts +13 -0
  19. package/dist/hooks.mjs +102 -20
  20. package/dist/hooks.mjs.map +1 -1
  21. package/dist/index.cjs +53 -119
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +70 -5
  24. package/dist/index.d.ts +70 -5
  25. package/dist/index.mjs +53 -119
  26. package/dist/index.mjs.map +1 -1
  27. package/package.json +2 -2
  28. package/src/_api/generated/_cfg_accounts/hooks/index.ts +1 -0
  29. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts +64 -0
  30. package/src/_api/generated/_cfg_accounts/openapi.json +92 -15
  31. package/src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts +13 -0
  32. package/src/_api/generated/_cfg_accounts/schemas/index.ts +1 -0
  33. package/src/_api/generated/_cfg_centrifugo/openapi.json +0 -5
  34. package/src/_api/generated/_cfg_totp/openapi.json +0 -5
  35. package/src/_api/generated/client/index.ts +1 -0
  36. package/src/_api/generated/core/params.gen.ts +18 -11
  37. package/src/_api/generated/core/types.gen.ts +6 -0
  38. package/src/_api/generated/openapi.json +92 -15
  39. package/src/_api/generated/sdk.gen.ts +57 -122
  40. package/src/_api/generated/types.gen.ts +38 -0
  41. package/src/hooks/useApiKey.ts +30 -2
@@ -170,6 +170,11 @@ interface Config$1 {
170
170
  */
171
171
  responseValidator?: (data: unknown) => Promise<unknown>;
172
172
  }
173
+ /**
174
+ * Arbitrary metadata passed through the `meta` request option.
175
+ */
176
+ interface ClientMeta {
177
+ }
173
178
 
174
179
  type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
175
180
  /**
@@ -417,6 +422,23 @@ type ApiKeyRequest = {
417
422
  */
418
423
  created_at: string;
419
424
  };
425
+ /**
426
+ * Serializer for revealing the current (unrotated) full API key.
427
+ */
428
+ type ApiKeyReveal = {
429
+ /**
430
+ * Full API key (current value, not rotated)
431
+ */
432
+ key: string;
433
+ /**
434
+ * When the key was created
435
+ */
436
+ created_at: string;
437
+ /**
438
+ * When the key was last regenerated
439
+ */
440
+ reissued_at: string | null;
441
+ };
420
442
  /**
421
443
  * Serializer for testing an API key.
422
444
  */
@@ -1136,6 +1158,21 @@ type CfgAccountsApiKeyRegenerateCreateErrors = {
1136
1158
  type CfgAccountsApiKeyRegenerateCreateResponses = {
1137
1159
  200: ApiKeyRegenerate;
1138
1160
  };
1161
+ type CfgAccountsApiKeyRevealCreateData = {
1162
+ body: ApiKeyRequest;
1163
+ path?: never;
1164
+ query?: never;
1165
+ url: '/cfg/accounts/api-key/reveal/';
1166
+ };
1167
+ type CfgAccountsApiKeyRevealCreateErrors = {
1168
+ /**
1169
+ * Authentication credentials were not provided.
1170
+ */
1171
+ 401: unknown;
1172
+ };
1173
+ type CfgAccountsApiKeyRevealCreateResponses = {
1174
+ 200: ApiKeyReveal;
1175
+ };
1139
1176
  type CfgAccountsApiKeyTestCreateData = {
1140
1177
  body: ApiKeyTestRequest;
1141
1178
  path?: never;
@@ -1527,7 +1564,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
1527
1564
  * You can pass arbitrary values through the `meta` object. This can be
1528
1565
  * used to access values that aren't defined as part of the SDK function.
1529
1566
  */
1530
- meta?: Record<string, unknown>;
1567
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
1531
1568
  };
1532
1569
  declare class CfgAccountsApiKey {
1533
1570
  /**
@@ -1542,6 +1579,12 @@ declare class CfgAccountsApiKey {
1542
1579
  * Generate a new API key. The full key is returned only once.
1543
1580
  */
1544
1581
  static cfgAccountsApiKeyRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyRegenerateCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRegenerateCreateResponses, CfgAccountsApiKeyRegenerateCreateErrors, ThrowOnError>;
1582
+ /**
1583
+ * Reveal API key
1584
+ *
1585
+ * Return the current full API key WITHOUT rotating it. The same durable value every one of the user's agents uses — for the signed-in user to copy and paste into agent onboarding. Default GET stays masked; this is the explicit reveal action.
1586
+ */
1587
+ static cfgAccountsApiKeyRevealCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyRevealCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRevealCreateResponses, CfgAccountsApiKeyRevealCreateErrors, ThrowOnError>;
1545
1588
  /**
1546
1589
  * Test API key
1547
1590
  *
@@ -1655,6 +1698,12 @@ declare class CfgAccountsProfile {
1655
1698
  declare class CfgAccountsAuth {
1656
1699
  /**
1657
1700
  * Refresh JWT token.
1701
+ *
1702
+ * DPoP-aware: when the incoming refresh token is key-bound (`cnf.jkt`), the
1703
+ * rotated access/refresh in the response are re-stamped with the same `cnf`
1704
+ * (stock SimpleJWT drops it from the derived access), and a matching DPoP
1705
+ * proof is required on the refresh request — so a stolen refresh token can't
1706
+ * be used to mint fresh tokens.
1658
1707
  */
1659
1708
  static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError>;
1660
1709
  }
package/dist/clients.d.ts CHANGED
@@ -170,6 +170,11 @@ interface Config$1 {
170
170
  */
171
171
  responseValidator?: (data: unknown) => Promise<unknown>;
172
172
  }
173
+ /**
174
+ * Arbitrary metadata passed through the `meta` request option.
175
+ */
176
+ interface ClientMeta {
177
+ }
173
178
 
174
179
  type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
175
180
  /**
@@ -417,6 +422,23 @@ type ApiKeyRequest = {
417
422
  */
418
423
  created_at: string;
419
424
  };
425
+ /**
426
+ * Serializer for revealing the current (unrotated) full API key.
427
+ */
428
+ type ApiKeyReveal = {
429
+ /**
430
+ * Full API key (current value, not rotated)
431
+ */
432
+ key: string;
433
+ /**
434
+ * When the key was created
435
+ */
436
+ created_at: string;
437
+ /**
438
+ * When the key was last regenerated
439
+ */
440
+ reissued_at: string | null;
441
+ };
420
442
  /**
421
443
  * Serializer for testing an API key.
422
444
  */
@@ -1136,6 +1158,21 @@ type CfgAccountsApiKeyRegenerateCreateErrors = {
1136
1158
  type CfgAccountsApiKeyRegenerateCreateResponses = {
1137
1159
  200: ApiKeyRegenerate;
1138
1160
  };
1161
+ type CfgAccountsApiKeyRevealCreateData = {
1162
+ body: ApiKeyRequest;
1163
+ path?: never;
1164
+ query?: never;
1165
+ url: '/cfg/accounts/api-key/reveal/';
1166
+ };
1167
+ type CfgAccountsApiKeyRevealCreateErrors = {
1168
+ /**
1169
+ * Authentication credentials were not provided.
1170
+ */
1171
+ 401: unknown;
1172
+ };
1173
+ type CfgAccountsApiKeyRevealCreateResponses = {
1174
+ 200: ApiKeyReveal;
1175
+ };
1139
1176
  type CfgAccountsApiKeyTestCreateData = {
1140
1177
  body: ApiKeyTestRequest;
1141
1178
  path?: never;
@@ -1527,7 +1564,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
1527
1564
  * You can pass arbitrary values through the `meta` object. This can be
1528
1565
  * used to access values that aren't defined as part of the SDK function.
1529
1566
  */
1530
- meta?: Record<string, unknown>;
1567
+ meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
1531
1568
  };
1532
1569
  declare class CfgAccountsApiKey {
1533
1570
  /**
@@ -1542,6 +1579,12 @@ declare class CfgAccountsApiKey {
1542
1579
  * Generate a new API key. The full key is returned only once.
1543
1580
  */
1544
1581
  static cfgAccountsApiKeyRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyRegenerateCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRegenerateCreateResponses, CfgAccountsApiKeyRegenerateCreateErrors, ThrowOnError>;
1582
+ /**
1583
+ * Reveal API key
1584
+ *
1585
+ * Return the current full API key WITHOUT rotating it. The same durable value every one of the user's agents uses — for the signed-in user to copy and paste into agent onboarding. Default GET stays masked; this is the explicit reveal action.
1586
+ */
1587
+ static cfgAccountsApiKeyRevealCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyRevealCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRevealCreateResponses, CfgAccountsApiKeyRevealCreateErrors, ThrowOnError>;
1545
1588
  /**
1546
1589
  * Test API key
1547
1590
  *
@@ -1655,6 +1698,12 @@ declare class CfgAccountsProfile {
1655
1698
  declare class CfgAccountsAuth {
1656
1699
  /**
1657
1700
  * Refresh JWT token.
1701
+ *
1702
+ * DPoP-aware: when the incoming refresh token is key-bound (`cnf.jkt`), the
1703
+ * rotated access/refresh in the response are re-stamped with the same `cnf`
1704
+ * (stock SimpleJWT drops it from the derived access), and a matching DPoP
1705
+ * proof is required on the refresh request — so a stolen refresh token can't
1706
+ * be used to mint fresh tokens.
1658
1707
  */
1659
1708
  static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError>;
1660
1709
  }
package/dist/clients.mjs CHANGED
@@ -1397,11 +1397,7 @@ var CfgAccountsApiKey = class {
1397
1397
  static cfgAccountsApiKeyRetrieve(options) {
1398
1398
  return (options?.client ?? client).get({
1399
1399
  security: [
1400
- {
1401
- key: "jwtAuth",
1402
- scheme: "bearer",
1403
- type: "http"
1404
- },
1400
+ { scheme: "bearer", type: "http" },
1405
1401
  {
1406
1402
  in: "cookie",
1407
1403
  name: "sessionid",
@@ -1421,11 +1417,31 @@ var CfgAccountsApiKey = class {
1421
1417
  static cfgAccountsApiKeyRegenerateCreate(options) {
1422
1418
  return (options.client ?? client).post({
1423
1419
  security: [
1420
+ { scheme: "bearer", type: "http" },
1424
1421
  {
1425
- key: "jwtAuth",
1426
- scheme: "bearer",
1427
- type: "http"
1422
+ in: "cookie",
1423
+ name: "sessionid",
1424
+ type: "apiKey"
1428
1425
  },
1426
+ { name: "X-API-Key", type: "apiKey" }
1427
+ ],
1428
+ url: "/cfg/accounts/api-key/regenerate/",
1429
+ ...options,
1430
+ headers: {
1431
+ "Content-Type": "application/json",
1432
+ ...options.headers
1433
+ }
1434
+ });
1435
+ }
1436
+ /**
1437
+ * Reveal API key
1438
+ *
1439
+ * Return the current full API key WITHOUT rotating it. The same durable value every one of the user's agents uses — for the signed-in user to copy and paste into agent onboarding. Default GET stays masked; this is the explicit reveal action.
1440
+ */
1441
+ static cfgAccountsApiKeyRevealCreate(options) {
1442
+ return (options.client ?? client).post({
1443
+ security: [
1444
+ { scheme: "bearer", type: "http" },
1429
1445
  {
1430
1446
  in: "cookie",
1431
1447
  name: "sessionid",
@@ -1433,7 +1449,7 @@ var CfgAccountsApiKey = class {
1433
1449
  },
1434
1450
  { name: "X-API-Key", type: "apiKey" }
1435
1451
  ],
1436
- url: "/cfg/accounts/api-key/regenerate/",
1452
+ url: "/cfg/accounts/api-key/reveal/",
1437
1453
  ...options,
1438
1454
  headers: {
1439
1455
  "Content-Type": "application/json",
@@ -1449,11 +1465,7 @@ var CfgAccountsApiKey = class {
1449
1465
  static cfgAccountsApiKeyTestCreate(options) {
1450
1466
  return (options.client ?? client).post({
1451
1467
  security: [
1452
- {
1453
- key: "jwtAuth",
1454
- scheme: "bearer",
1455
- type: "http"
1456
- },
1468
+ { scheme: "bearer", type: "http" },
1457
1469
  {
1458
1470
  in: "cookie",
1459
1471
  name: "sessionid",
@@ -1481,11 +1493,7 @@ var CfgAccountsOauth = class {
1481
1493
  */
1482
1494
  static cfgAccountsOauthConnectionsList(options) {
1483
1495
  return (options?.client ?? client).get({
1484
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1485
- key: "jwtAuthWithLastLogin",
1486
- scheme: "bearer",
1487
- type: "http"
1488
- }],
1496
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1489
1497
  url: "/cfg/accounts/oauth/connections/",
1490
1498
  ...options
1491
1499
  });
@@ -1497,11 +1505,7 @@ var CfgAccountsOauth = class {
1497
1505
  */
1498
1506
  static cfgAccountsOauthDisconnectCreate(options) {
1499
1507
  return (options.client ?? client).post({
1500
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1501
- key: "jwtAuthWithLastLogin",
1502
- scheme: "bearer",
1503
- type: "http"
1504
- }],
1508
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1505
1509
  url: "/cfg/accounts/oauth/disconnect/",
1506
1510
  ...options,
1507
1511
  headers: {
@@ -1558,11 +1562,7 @@ var CfgAccounts = class {
1558
1562
  */
1559
1563
  static cfgAccountsOtpRequestCreate(options) {
1560
1564
  return (options.client ?? client).post({
1561
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1562
- key: "jwtAuthWithLastLogin",
1563
- scheme: "bearer",
1564
- type: "http"
1565
- }],
1565
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1566
1566
  url: "/cfg/accounts/otp/request/",
1567
1567
  ...options,
1568
1568
  headers: {
@@ -1583,11 +1583,7 @@ var CfgAccounts = class {
1583
1583
  */
1584
1584
  static cfgAccountsOtpVerifyCreate(options) {
1585
1585
  return (options.client ?? client).post({
1586
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1587
- key: "jwtAuthWithLastLogin",
1588
- scheme: "bearer",
1589
- type: "http"
1590
- }],
1586
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1591
1587
  url: "/cfg/accounts/otp/verify/",
1592
1588
  ...options,
1593
1589
  headers: {
@@ -1608,11 +1604,7 @@ var CfgAccountsProfile = class {
1608
1604
  */
1609
1605
  static cfgAccountsProfileRetrieve(options) {
1610
1606
  return (options?.client ?? client).get({
1611
- security: [{
1612
- key: "jwtAuth",
1613
- scheme: "bearer",
1614
- type: "http"
1615
- }, {
1607
+ security: [{ scheme: "bearer", type: "http" }, {
1616
1608
  in: "cookie",
1617
1609
  name: "sessionid",
1618
1610
  type: "apiKey"
@@ -1629,11 +1621,7 @@ var CfgAccountsProfile = class {
1629
1621
  static cfgAccountsProfileAvatarCreate(options) {
1630
1622
  return (options?.client ?? client).post({
1631
1623
  ...formDataBodySerializer,
1632
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1633
- key: "jwtAuthWithLastLogin",
1634
- scheme: "bearer",
1635
- type: "http"
1636
- }],
1624
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1637
1625
  url: "/cfg/accounts/profile/avatar/",
1638
1626
  ...options,
1639
1627
  headers: {
@@ -1659,11 +1647,7 @@ var CfgAccountsProfile = class {
1659
1647
  */
1660
1648
  static cfgAccountsProfileDeleteCreate(options) {
1661
1649
  return (options?.client ?? client).post({
1662
- security: [{
1663
- key: "jwtAuth",
1664
- scheme: "bearer",
1665
- type: "http"
1666
- }, {
1650
+ security: [{ scheme: "bearer", type: "http" }, {
1667
1651
  in: "cookie",
1668
1652
  name: "sessionid",
1669
1653
  type: "apiKey"
@@ -1679,11 +1663,7 @@ var CfgAccountsProfile = class {
1679
1663
  */
1680
1664
  static cfgAccountsProfilePartialPartialUpdate(options) {
1681
1665
  return (options?.client ?? client).patch({
1682
- security: [{
1683
- key: "jwtAuth",
1684
- scheme: "bearer",
1685
- type: "http"
1686
- }, {
1666
+ security: [{ scheme: "bearer", type: "http" }, {
1687
1667
  in: "cookie",
1688
1668
  name: "sessionid",
1689
1669
  type: "apiKey"
@@ -1703,11 +1683,7 @@ var CfgAccountsProfile = class {
1703
1683
  */
1704
1684
  static cfgAccountsProfilePartialUpdate(options) {
1705
1685
  return (options?.client ?? client).put({
1706
- security: [{
1707
- key: "jwtAuth",
1708
- scheme: "bearer",
1709
- type: "http"
1710
- }, {
1686
+ security: [{ scheme: "bearer", type: "http" }, {
1711
1687
  in: "cookie",
1712
1688
  name: "sessionid",
1713
1689
  type: "apiKey"
@@ -1727,11 +1703,7 @@ var CfgAccountsProfile = class {
1727
1703
  */
1728
1704
  static cfgAccountsProfileUpdatePartialUpdate(options) {
1729
1705
  return (options?.client ?? client).patch({
1730
- security: [{
1731
- key: "jwtAuth",
1732
- scheme: "bearer",
1733
- type: "http"
1734
- }, {
1706
+ security: [{ scheme: "bearer", type: "http" }, {
1735
1707
  in: "cookie",
1736
1708
  name: "sessionid",
1737
1709
  type: "apiKey"
@@ -1751,11 +1723,7 @@ var CfgAccountsProfile = class {
1751
1723
  */
1752
1724
  static cfgAccountsProfileUpdateUpdate(options) {
1753
1725
  return (options?.client ?? client).put({
1754
- security: [{
1755
- key: "jwtAuth",
1756
- scheme: "bearer",
1757
- type: "http"
1758
- }, {
1726
+ security: [{ scheme: "bearer", type: "http" }, {
1759
1727
  in: "cookie",
1760
1728
  name: "sessionid",
1761
1729
  type: "apiKey"
@@ -1775,6 +1743,12 @@ var CfgAccountsAuth = class {
1775
1743
  }
1776
1744
  /**
1777
1745
  * Refresh JWT token.
1746
+ *
1747
+ * DPoP-aware: when the incoming refresh token is key-bound (`cnf.jkt`), the
1748
+ * rotated access/refresh in the response are re-stamped with the same `cnf`
1749
+ * (stock SimpleJWT drops it from the derived access), and a matching DPoP
1750
+ * proof is required on the refresh request — so a stolen refresh token can't
1751
+ * be used to mint fresh tokens.
1778
1752
  */
1779
1753
  static cfgAccountsTokenRefreshCreate(options) {
1780
1754
  return (options.client ?? client).post({
@@ -1798,11 +1772,7 @@ var CfgCentrifugo = class {
1798
1772
  */
1799
1773
  static cfgCentrifugoAuthTokenRetrieve(options) {
1800
1774
  return (options?.client ?? client).get({
1801
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1802
- key: "jwtAuthWithLastLogin",
1803
- scheme: "bearer",
1804
- type: "http"
1805
- }],
1775
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1806
1776
  url: "/cfg/centrifugo/auth/token/",
1807
1777
  ...options
1808
1778
  });
@@ -1817,11 +1787,7 @@ var CfgTotpBackupCodes = class {
1817
1787
  */
1818
1788
  static cfgTotpBackupCodesRetrieve(options) {
1819
1789
  return (options?.client ?? client).get({
1820
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1821
- key: "jwtAuthWithLastLogin",
1822
- scheme: "bearer",
1823
- type: "http"
1824
- }],
1790
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1825
1791
  url: "/cfg/totp/backup-codes/",
1826
1792
  ...options
1827
1793
  });
@@ -1834,11 +1800,7 @@ var CfgTotpBackupCodes = class {
1834
1800
  */
1835
1801
  static cfgTotpBackupCodesRegenerateCreate(options) {
1836
1802
  return (options.client ?? client).post({
1837
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1838
- key: "jwtAuthWithLastLogin",
1839
- scheme: "bearer",
1840
- type: "http"
1841
- }],
1803
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1842
1804
  url: "/cfg/totp/backup-codes/regenerate/",
1843
1805
  ...options,
1844
1806
  headers: {
@@ -1857,11 +1819,7 @@ var CfgTotp = class {
1857
1819
  */
1858
1820
  static cfgTotpDevicesRetrieve(options) {
1859
1821
  return (options?.client ?? client).get({
1860
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1861
- key: "jwtAuthWithLastLogin",
1862
- scheme: "bearer",
1863
- type: "http"
1864
- }],
1822
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1865
1823
  url: "/cfg/totp/devices/",
1866
1824
  ...options
1867
1825
  });
@@ -1873,11 +1831,7 @@ var CfgTotp = class {
1873
1831
  */
1874
1832
  static cfgTotpDevicesDestroy(options) {
1875
1833
  return (options.client ?? client).delete({
1876
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1877
- key: "jwtAuthWithLastLogin",
1878
- scheme: "bearer",
1879
- type: "http"
1880
- }],
1834
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1881
1835
  url: "/cfg/totp/devices/{id}/",
1882
1836
  ...options
1883
1837
  });
@@ -1889,11 +1843,7 @@ var CfgTotp = class {
1889
1843
  */
1890
1844
  static cfgTotpDisableCreate(options) {
1891
1845
  return (options.client ?? client).post({
1892
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1893
- key: "jwtAuthWithLastLogin",
1894
- scheme: "bearer",
1895
- type: "http"
1896
- }],
1846
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1897
1847
  url: "/cfg/totp/disable/",
1898
1848
  ...options,
1899
1849
  headers: {
@@ -1914,11 +1864,7 @@ var CfgTotpSetup = class {
1914
1864
  */
1915
1865
  static cfgTotpSetupCreate(options) {
1916
1866
  return (options?.client ?? client).post({
1917
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1918
- key: "jwtAuthWithLastLogin",
1919
- scheme: "bearer",
1920
- type: "http"
1921
- }],
1867
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1922
1868
  url: "/cfg/totp/setup/",
1923
1869
  ...options,
1924
1870
  headers: {
@@ -1934,11 +1880,7 @@ var CfgTotpSetup = class {
1934
1880
  */
1935
1881
  static cfgTotpSetupConfirmCreate(options) {
1936
1882
  return (options.client ?? client).post({
1937
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1938
- key: "jwtAuthWithLastLogin",
1939
- scheme: "bearer",
1940
- type: "http"
1941
- }],
1883
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1942
1884
  url: "/cfg/totp/setup/confirm/",
1943
1885
  ...options,
1944
1886
  headers: {
@@ -1959,11 +1901,7 @@ var CfgTotpVerify = class {
1959
1901
  */
1960
1902
  static cfgTotpVerifyCreate(options) {
1961
1903
  return (options.client ?? client).post({
1962
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1963
- key: "jwtAuthWithLastLogin",
1964
- scheme: "bearer",
1965
- type: "http"
1966
- }],
1904
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1967
1905
  url: "/cfg/totp/verify/",
1968
1906
  ...options,
1969
1907
  headers: {
@@ -1979,11 +1917,7 @@ var CfgTotpVerify = class {
1979
1917
  */
1980
1918
  static cfgTotpVerifyBackupCreate(options) {
1981
1919
  return (options.client ?? client).post({
1982
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1983
- key: "jwtAuthWithLastLogin",
1984
- scheme: "bearer",
1985
- type: "http"
1986
- }],
1920
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1987
1921
  url: "/cfg/totp/verify/backup/",
1988
1922
  ...options,
1989
1923
  headers: {