@djangocfg/api 2.1.287 → 2.1.290

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.cjs CHANGED
@@ -103,6 +103,7 @@ var Auth = class {
103
103
  static {
104
104
  __name(this, "Auth");
105
105
  }
106
+ client;
106
107
  constructor(client) {
107
108
  this.client = client;
108
109
  }
@@ -120,6 +121,7 @@ var Oauth = class {
120
121
  static {
121
122
  __name(this, "Oauth");
122
123
  }
124
+ client;
123
125
  constructor(client) {
124
126
  this.client = client;
125
127
  }
@@ -177,6 +179,7 @@ var UserProfile = class {
177
179
  static {
178
180
  __name(this, "UserProfile");
179
181
  }
182
+ client;
180
183
  constructor(client) {
181
184
  this.client = client;
182
185
  }
@@ -259,6 +262,7 @@ var Accounts = class {
259
262
  static {
260
263
  __name(this, "Accounts");
261
264
  }
265
+ client;
262
266
  constructor(client) {
263
267
  this.client = client;
264
268
  }
@@ -452,6 +456,8 @@ var APILogger = class {
452
456
  static {
453
457
  __name(this, "APILogger");
454
458
  }
459
+ config;
460
+ consola;
455
461
  constructor(config = {}) {
456
462
  this.config = { ...DEFAULT_CONFIG, ...config };
457
463
  this.consola = config.consola || (0, import_consola.createConsola)({
@@ -647,10 +653,20 @@ __name(withRetry, "withRetry");
647
653
 
648
654
  // src/_api/generated/cfg_accounts/client.ts
649
655
  var APIClient = class {
656
+ static {
657
+ __name(this, "APIClient");
658
+ }
659
+ baseUrl;
660
+ httpClient;
661
+ logger = null;
662
+ retryConfig = null;
663
+ tokenGetter = null;
664
+ // Sub-clients
665
+ auth;
666
+ oauth;
667
+ user_profile;
668
+ accounts;
650
669
  constructor(baseUrl, options) {
651
- this.logger = null;
652
- this.retryConfig = null;
653
- this.tokenGetter = null;
654
670
  this.baseUrl = baseUrl.replace(/\/$/, "");
655
671
  this.httpClient = options?.httpClient || new FetchAdapter();
656
672
  this.tokenGetter = options?.tokenGetter || null;
@@ -665,9 +681,6 @@ var APIClient = class {
665
681
  this.user_profile = new UserProfile(this);
666
682
  this.accounts = new Accounts(this);
667
683
  }
668
- static {
669
- __name(this, "APIClient");
670
- }
671
684
  /**
672
685
  * Get CSRF token from cookies (for SessionAuthentication).
673
686
  *
@@ -874,6 +887,7 @@ var LocalStorageAdapter = class {
874
887
  static {
875
888
  __name(this, "LocalStorageAdapter");
876
889
  }
890
+ logger;
877
891
  constructor(logger) {
878
892
  this.logger = logger;
879
893
  }
@@ -1780,10 +1794,22 @@ function detectLocale() {
1780
1794
  }
1781
1795
  __name(detectLocale, "detectLocale");
1782
1796
  var API = class {
1797
+ static {
1798
+ __name(this, "API");
1799
+ }
1800
+ baseUrl;
1801
+ _client;
1802
+ _token = null;
1803
+ _refreshToken = null;
1804
+ _locale = null;
1805
+ storage;
1806
+ options;
1807
+ // Sub-clients
1808
+ auth;
1809
+ oauth;
1810
+ user_profile;
1811
+ accounts;
1783
1812
  constructor(baseUrl, options) {
1784
- this._token = null;
1785
- this._refreshToken = null;
1786
- this._locale = null;
1787
1813
  this.baseUrl = baseUrl;
1788
1814
  this.options = options;
1789
1815
  const logger = options?.loggerConfig ? new APILogger(options.loggerConfig) : void 0;
@@ -1802,9 +1828,6 @@ var API = class {
1802
1828
  this.user_profile = this._client.user_profile;
1803
1829
  this.accounts = this._client.accounts;
1804
1830
  }
1805
- static {
1806
- __name(this, "API");
1807
- }
1808
1831
  _loadTokensFromStorage() {
1809
1832
  this._token = this.storage.getItem(TOKEN_KEY);
1810
1833
  this._refreshToken = this.storage.getItem(REFRESH_TOKEN_KEY);
@@ -1929,6 +1952,7 @@ var CentrifugoAuth = class {
1929
1952
  static {
1930
1953
  __name(this, "CentrifugoAuth");
1931
1954
  }
1955
+ client;
1932
1956
  constructor(client) {
1933
1957
  this.client = client;
1934
1958
  }
@@ -2116,6 +2140,8 @@ var APILogger2 = class {
2116
2140
  static {
2117
2141
  __name(this, "APILogger");
2118
2142
  }
2143
+ config;
2144
+ consola;
2119
2145
  constructor(config = {}) {
2120
2146
  this.config = { ...DEFAULT_CONFIG2, ...config };
2121
2147
  this.consola = config.consola || (0, import_consola6.createConsola)({
@@ -2311,10 +2337,17 @@ __name(withRetry2, "withRetry");
2311
2337
 
2312
2338
  // src/_api/generated/cfg_centrifugo/client.ts
2313
2339
  var APIClient2 = class {
2340
+ static {
2341
+ __name(this, "APIClient");
2342
+ }
2343
+ baseUrl;
2344
+ httpClient;
2345
+ logger = null;
2346
+ retryConfig = null;
2347
+ tokenGetter = null;
2348
+ // Sub-clients
2349
+ centrifugo_auth;
2314
2350
  constructor(baseUrl, options) {
2315
- this.logger = null;
2316
- this.retryConfig = null;
2317
- this.tokenGetter = null;
2318
2351
  this.baseUrl = baseUrl.replace(/\/$/, "");
2319
2352
  this.httpClient = options?.httpClient || new FetchAdapter2();
2320
2353
  this.tokenGetter = options?.tokenGetter || null;
@@ -2326,9 +2359,6 @@ var APIClient2 = class {
2326
2359
  }
2327
2360
  this.centrifugo_auth = new CentrifugoAuth(this);
2328
2361
  }
2329
- static {
2330
- __name(this, "APIClient");
2331
- }
2332
2362
  /**
2333
2363
  * Get CSRF token from cookies (for SessionAuthentication).
2334
2364
  *
@@ -2535,6 +2565,7 @@ var LocalStorageAdapter2 = class {
2535
2565
  static {
2536
2566
  __name(this, "LocalStorageAdapter");
2537
2567
  }
2568
+ logger;
2538
2569
  constructor(logger) {
2539
2570
  this.logger = logger;
2540
2571
  }
@@ -2689,10 +2720,19 @@ function detectLocale2() {
2689
2720
  }
2690
2721
  __name(detectLocale2, "detectLocale");
2691
2722
  var API2 = class {
2723
+ static {
2724
+ __name(this, "API");
2725
+ }
2726
+ baseUrl;
2727
+ _client;
2728
+ _token = null;
2729
+ _refreshToken = null;
2730
+ _locale = null;
2731
+ storage;
2732
+ options;
2733
+ // Sub-clients
2734
+ centrifugo_auth;
2692
2735
  constructor(baseUrl, options) {
2693
- this._token = null;
2694
- this._refreshToken = null;
2695
- this._locale = null;
2696
2736
  this.baseUrl = baseUrl;
2697
2737
  this.options = options;
2698
2738
  const logger = options?.loggerConfig ? new APILogger2(options.loggerConfig) : void 0;
@@ -2708,9 +2748,6 @@ var API2 = class {
2708
2748
  this._injectAuthHeader();
2709
2749
  this.centrifugo_auth = this._client.centrifugo_auth;
2710
2750
  }
2711
- static {
2712
- __name(this, "API");
2713
- }
2714
2751
  _loadTokensFromStorage() {
2715
2752
  this._token = this.storage.getItem(TOKEN_KEY2);
2716
2753
  this._refreshToken = this.storage.getItem(REFRESH_TOKEN_KEY2);
@@ -2832,6 +2869,7 @@ var BackupCodes = class {
2832
2869
  static {
2833
2870
  __name(this, "BackupCodes");
2834
2871
  }
2872
+ client;
2835
2873
  constructor(client) {
2836
2874
  this.client = client;
2837
2875
  }
@@ -2857,6 +2895,7 @@ var TotpManagement = class {
2857
2895
  static {
2858
2896
  __name(this, "TotpManagement");
2859
2897
  }
2898
+ client;
2860
2899
  constructor(client) {
2861
2900
  this.client = client;
2862
2901
  }
@@ -2881,6 +2920,7 @@ var TotpSetup = class {
2881
2920
  static {
2882
2921
  __name(this, "TotpSetup");
2883
2922
  }
2923
+ client;
2884
2924
  constructor(client) {
2885
2925
  this.client = client;
2886
2926
  }
@@ -2907,6 +2947,7 @@ var TotpVerification = class {
2907
2947
  static {
2908
2948
  __name(this, "TotpVerification");
2909
2949
  }
2950
+ client;
2910
2951
  constructor(client) {
2911
2952
  this.client = client;
2912
2953
  }
@@ -2933,6 +2974,7 @@ var Totp = class {
2933
2974
  static {
2934
2975
  __name(this, "Totp");
2935
2976
  }
2977
+ client;
2936
2978
  constructor(client) {
2937
2979
  this.client = client;
2938
2980
  }
@@ -3117,6 +3159,8 @@ var APILogger3 = class {
3117
3159
  static {
3118
3160
  __name(this, "APILogger");
3119
3161
  }
3162
+ config;
3163
+ consola;
3120
3164
  constructor(config = {}) {
3121
3165
  this.config = { ...DEFAULT_CONFIG3, ...config };
3122
3166
  this.consola = config.consola || (0, import_consola8.createConsola)({
@@ -3312,10 +3356,21 @@ __name(withRetry3, "withRetry");
3312
3356
 
3313
3357
  // src/_api/generated/cfg_totp/client.ts
3314
3358
  var APIClient3 = class {
3359
+ static {
3360
+ __name(this, "APIClient");
3361
+ }
3362
+ baseUrl;
3363
+ httpClient;
3364
+ logger = null;
3365
+ retryConfig = null;
3366
+ tokenGetter = null;
3367
+ // Sub-clients
3368
+ backup_codes;
3369
+ totp_management;
3370
+ totp_setup;
3371
+ totp_verification;
3372
+ totp;
3315
3373
  constructor(baseUrl, options) {
3316
- this.logger = null;
3317
- this.retryConfig = null;
3318
- this.tokenGetter = null;
3319
3374
  this.baseUrl = baseUrl.replace(/\/$/, "");
3320
3375
  this.httpClient = options?.httpClient || new FetchAdapter3();
3321
3376
  this.tokenGetter = options?.tokenGetter || null;
@@ -3331,9 +3386,6 @@ var APIClient3 = class {
3331
3386
  this.totp_verification = new TotpVerification(this);
3332
3387
  this.totp = new Totp(this);
3333
3388
  }
3334
- static {
3335
- __name(this, "APIClient");
3336
- }
3337
3389
  /**
3338
3390
  * Get CSRF token from cookies (for SessionAuthentication).
3339
3391
  *
@@ -3540,6 +3592,7 @@ var LocalStorageAdapter3 = class {
3540
3592
  static {
3541
3593
  __name(this, "LocalStorageAdapter");
3542
3594
  }
3595
+ logger;
3543
3596
  constructor(logger) {
3544
3597
  this.logger = logger;
3545
3598
  }
@@ -4117,10 +4170,23 @@ function detectLocale3() {
4117
4170
  }
4118
4171
  __name(detectLocale3, "detectLocale");
4119
4172
  var API3 = class {
4173
+ static {
4174
+ __name(this, "API");
4175
+ }
4176
+ baseUrl;
4177
+ _client;
4178
+ _token = null;
4179
+ _refreshToken = null;
4180
+ _locale = null;
4181
+ storage;
4182
+ options;
4183
+ // Sub-clients
4184
+ backup_codes;
4185
+ totp_management;
4186
+ totp_setup;
4187
+ totp_verification;
4188
+ totp;
4120
4189
  constructor(baseUrl, options) {
4121
- this._token = null;
4122
- this._refreshToken = null;
4123
- this._locale = null;
4124
4190
  this.baseUrl = baseUrl;
4125
4191
  this.options = options;
4126
4192
  const logger = options?.loggerConfig ? new APILogger3(options.loggerConfig) : void 0;
@@ -4140,9 +4206,6 @@ var API3 = class {
4140
4206
  this.totp_verification = this._client.totp_verification;
4141
4207
  this.totp = this._client.totp;
4142
4208
  }
4143
- static {
4144
- __name(this, "API");
4145
- }
4146
4209
  _loadTokensFromStorage() {
4147
4210
  this._token = this.storage.getItem(TOKEN_KEY3);
4148
4211
  this._refreshToken = this.storage.getItem(REFRESH_TOKEN_KEY3);