@djangocfg/api 1.0.2 → 1.0.3

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 (34) hide show
  1. package/dist/index.cjs +1572 -2035
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +299 -144
  4. package/dist/index.d.ts +299 -144
  5. package/dist/index.mjs +1570 -1744
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +2 -2
  8. package/src/cfg/contexts/payments/ApiKeysContext.tsx +2 -2
  9. package/src/cfg/contexts/payments/CurrenciesContext.tsx +0 -26
  10. package/src/cfg/contexts/payments/OverviewContext.tsx +79 -0
  11. package/src/cfg/contexts/payments/RootPaymentsContext.tsx +137 -0
  12. package/src/cfg/contexts/payments/index.ts +13 -0
  13. package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +12 -10
  14. package/src/cfg/generated/_utils/hooks/cfg__payments.ts +12 -10
  15. package/src/cfg/generated/_utils/schemas/APIKeyValidationResponse.schema.ts +1 -1
  16. package/src/cfg/generated/_utils/schemas/AdminPaymentDetail.schema.ts +1 -1
  17. package/src/cfg/generated/_utils/schemas/AdminPaymentList.schema.ts +1 -1
  18. package/src/cfg/generated/_utils/schemas/CurrencyList.schema.ts +2 -0
  19. package/src/cfg/generated/_utils/schemas/CurrencyRates.schema.ts +26 -0
  20. package/src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts +1 -1
  21. package/src/cfg/generated/_utils/schemas/Network.schema.ts +1 -1
  22. package/src/cfg/generated/_utils/schemas/Payment.schema.ts +1 -0
  23. package/src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts +0 -1
  24. package/src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts +0 -1
  25. package/src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts +1 -1
  26. package/src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts +1 -1
  27. package/src/cfg/generated/_utils/schemas/SupportedCurrencies.schema.ts +25 -0
  28. package/src/cfg/generated/_utils/schemas/index.ts +2 -0
  29. package/src/cfg/generated/cfg__payments/client.ts +24 -44
  30. package/src/cfg/generated/cfg__payments/models.ts +46 -12
  31. package/src/cfg/generated/enums.ts +34 -22
  32. package/src/cfg/generated/index.ts +2 -3
  33. package/src/cfg/generated/schema.ts +90 -74
  34. package/src/index.ts +20 -1
package/dist/index.mjs CHANGED
@@ -1341,8 +1341,9 @@ var CfgPayments = class {
1341
1341
  return response;
1342
1342
  }
1343
1343
  /**
1344
- * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
1345
- * all API keys with filtering and stats.
1344
+ * API Key ViewSet: /api/api-keys/ User-specific access to API keys with
1345
+ * filtering and stats. - Regular users: can only see/manage their own API
1346
+ * keys - Staff/Admin: can see/manage all API keys
1346
1347
  */
1347
1348
  async apiKeysList(...args) {
1348
1349
  const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
@@ -1356,40 +1357,45 @@ var CfgPayments = class {
1356
1357
  return response;
1357
1358
  }
1358
1359
  /**
1359
- * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
1360
- * all API keys with filtering and stats.
1360
+ * API Key ViewSet: /api/api-keys/ User-specific access to API keys with
1361
+ * filtering and stats. - Regular users: can only see/manage their own API
1362
+ * keys - Staff/Admin: can see/manage all API keys
1361
1363
  */
1362
1364
  async apiKeysCreate(data) {
1363
1365
  const response = await this.client.request("POST", "/cfg/payments/api-keys/", { body: data });
1364
1366
  return response;
1365
1367
  }
1366
1368
  /**
1367
- * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
1368
- * all API keys with filtering and stats.
1369
+ * API Key ViewSet: /api/api-keys/ User-specific access to API keys with
1370
+ * filtering and stats. - Regular users: can only see/manage their own API
1371
+ * keys - Staff/Admin: can see/manage all API keys
1369
1372
  */
1370
1373
  async apiKeysRetrieve(id) {
1371
1374
  const response = await this.client.request("GET", `/cfg/payments/api-keys/${id}/`);
1372
1375
  return response;
1373
1376
  }
1374
1377
  /**
1375
- * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
1376
- * all API keys with filtering and stats.
1378
+ * API Key ViewSet: /api/api-keys/ User-specific access to API keys with
1379
+ * filtering and stats. - Regular users: can only see/manage their own API
1380
+ * keys - Staff/Admin: can see/manage all API keys
1377
1381
  */
1378
1382
  async apiKeysUpdate(id, data) {
1379
1383
  const response = await this.client.request("PUT", `/cfg/payments/api-keys/${id}/`, { body: data });
1380
1384
  return response;
1381
1385
  }
1382
1386
  /**
1383
- * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
1384
- * all API keys with filtering and stats.
1387
+ * API Key ViewSet: /api/api-keys/ User-specific access to API keys with
1388
+ * filtering and stats. - Regular users: can only see/manage their own API
1389
+ * keys - Staff/Admin: can see/manage all API keys
1385
1390
  */
1386
1391
  async apiKeysPartialUpdate(id, data) {
1387
1392
  const response = await this.client.request("PATCH", `/cfg/payments/api-keys/${id}/`, { body: data });
1388
1393
  return response;
1389
1394
  }
1390
1395
  /**
1391
- * Global API Key ViewSet: /api/api-keys/ Provides admin-level access to
1392
- * all API keys with filtering and stats.
1396
+ * API Key ViewSet: /api/api-keys/ User-specific access to API keys with
1397
+ * filtering and stats. - Regular users: can only see/manage their own API
1398
+ * keys - Staff/Admin: can see/manage all API keys
1393
1399
  */
1394
1400
  async apiKeysDestroy(id) {
1395
1401
  const response = await this.client.request("DELETE", `/cfg/payments/api-keys/${id}/`);
@@ -1593,19 +1599,10 @@ var CfgPayments = class {
1593
1599
  return response;
1594
1600
  }
1595
1601
  /**
1596
- * Get exchange rates
1597
- *
1598
- * Get current exchange rates for specified currencies
1602
+ * Get current exchange rates.
1599
1603
  */
1600
- async currenciesRatesRetrieve(...args) {
1601
- const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
1602
- let params;
1603
- if (isParamsObject) {
1604
- params = args[0];
1605
- } else {
1606
- params = { base_currency: args[0], currencies: args[1] };
1607
- }
1608
- const response = await this.client.request("GET", "/cfg/payments/currencies/rates/", { params });
1604
+ async currenciesRatesRetrieve() {
1605
+ const response = await this.client.request("GET", "/cfg/payments/currencies/rates/");
1609
1606
  return response;
1610
1607
  }
1611
1608
  /**
@@ -1624,19 +1621,10 @@ var CfgPayments = class {
1624
1621
  return response;
1625
1622
  }
1626
1623
  /**
1627
- * Get supported currencies
1628
- *
1629
- * Get list of supported currencies from payment providers
1624
+ * Get supported currencies from providers.
1630
1625
  */
1631
- async currenciesSupportedRetrieve(...args) {
1632
- const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
1633
- let params;
1634
- if (isParamsObject) {
1635
- params = args[0];
1636
- } else {
1637
- params = { currency_type: args[0], provider: args[1] };
1638
- }
1639
- const response = await this.client.request("GET", "/cfg/payments/currencies/supported/", { params });
1626
+ async currenciesSupportedRetrieve() {
1627
+ const response = await this.client.request("GET", "/cfg/payments/currencies/supported/");
1640
1628
  return response;
1641
1629
  }
1642
1630
  /**
@@ -5745,6 +5733,19 @@ var OPENAPI_SCHEMA = {
5745
5733
  "type_display": {
5746
5734
  "readOnly": true,
5747
5735
  "type": "string"
5736
+ },
5737
+ "usd_rate": {
5738
+ "description": "Current USD exchange rate (1 unit = X USD)",
5739
+ "format": "double",
5740
+ "readOnly": true,
5741
+ "type": "number"
5742
+ },
5743
+ "usd_rate_updated_at": {
5744
+ "description": "When USD rate was last updated",
5745
+ "format": "date-time",
5746
+ "nullable": true,
5747
+ "readOnly": true,
5748
+ "type": "string"
5748
5749
  }
5749
5750
  },
5750
5751
  "required": [
@@ -5754,10 +5755,41 @@ var OPENAPI_SCHEMA = {
5754
5755
  "is_active",
5755
5756
  "name",
5756
5757
  "symbol",
5757
- "type_display"
5758
+ "type_display",
5759
+ "usd_rate",
5760
+ "usd_rate_updated_at"
5758
5761
  ],
5759
5762
  "type": "object"
5760
5763
  },
5764
+ "CurrencyRates": {
5765
+ "description": "Currency rates serializer for getting exchange rates.\n\nFetches current exchange rates through CurrencyService.",
5766
+ "properties": {
5767
+ "base_currency": {
5768
+ "default": "USD",
5769
+ "description": "Base currency for rates (default: USD)",
5770
+ "maxLength": 10,
5771
+ "type": "string"
5772
+ },
5773
+ "currencies": {
5774
+ "description": "Specific currencies to get rates for (optional)",
5775
+ "items": {
5776
+ "maxLength": 10,
5777
+ "type": "string"
5778
+ },
5779
+ "type": "array"
5780
+ },
5781
+ "provider": {
5782
+ "default": "nowpayments",
5783
+ "description": "Provider for exchange rates\n\n* `nowpayments` - NowPayments",
5784
+ "enum": [
5785
+ "nowpayments"
5786
+ ],
5787
+ "type": "string",
5788
+ "x-spec-enum-id": "47694db6bd068cb3"
5789
+ }
5790
+ },
5791
+ "type": "object"
5792
+ },
5761
5793
  "Document": {
5762
5794
  "description": "Document response serializer.",
5763
5795
  "properties": {
@@ -7146,6 +7178,7 @@ var OPENAPI_SCHEMA = {
7146
7178
  "$ref": "#/components/schemas/CurrencyList"
7147
7179
  }
7148
7180
  ],
7181
+ "nullable": true,
7149
7182
  "readOnly": true
7150
7183
  },
7151
7184
  "id": {
@@ -10136,6 +10169,12 @@ var OPENAPI_SCHEMA = {
10136
10169
  "Payment": {
10137
10170
  "description": "Complete payment serializer with full details.\n\nUsed for detail views and updates.",
10138
10171
  "properties": {
10172
+ "amount_crypto": {
10173
+ "description": "Calculate crypto amount from USD amount and currency rate.",
10174
+ "format": "double",
10175
+ "readOnly": true,
10176
+ "type": "number"
10177
+ },
10139
10178
  "amount_display": {
10140
10179
  "description": "Get formatted amount display.",
10141
10180
  "readOnly": true,
@@ -10289,6 +10328,7 @@ var OPENAPI_SCHEMA = {
10289
10328
  }
10290
10329
  },
10291
10330
  "required": [
10331
+ "amount_crypto",
10292
10332
  "amount_display",
10293
10333
  "amount_usd",
10294
10334
  "completed_at",
@@ -10376,15 +10416,6 @@ var OPENAPI_SCHEMA = {
10376
10416
  },
10377
10417
  "metadata": {
10378
10418
  "description": "Additional metadata"
10379
- },
10380
- "provider": {
10381
- "default": "nowpayments",
10382
- "description": "Payment provider\n\n* `nowpayments` - NowPayments",
10383
- "enum": [
10384
- "nowpayments"
10385
- ],
10386
- "type": "string",
10387
- "x-spec-enum-id": "47694db6bd068cb3"
10388
10419
  }
10389
10420
  },
10390
10421
  "required": [
@@ -10435,15 +10466,6 @@ var OPENAPI_SCHEMA = {
10435
10466
  },
10436
10467
  "metadata": {
10437
10468
  "description": "Additional metadata"
10438
- },
10439
- "provider": {
10440
- "default": "nowpayments",
10441
- "description": "Payment provider\n\n* `nowpayments` - NowPayments",
10442
- "enum": [
10443
- "nowpayments"
10444
- ],
10445
- "type": "string",
10446
- "x-spec-enum-id": "47694db6bd068cb3"
10447
10469
  }
10448
10470
  },
10449
10471
  "required": [
@@ -10884,6 +10906,7 @@ var OPENAPI_SCHEMA = {
10884
10906
  "$ref": "#/components/schemas/Network"
10885
10907
  }
10886
10908
  ],
10909
+ "nullable": true,
10887
10910
  "readOnly": true
10888
10911
  },
10889
10912
  "provider": {
@@ -11857,6 +11880,32 @@ var OPENAPI_SCHEMA = {
11857
11880
  ],
11858
11881
  "type": "object"
11859
11882
  },
11883
+ "SupportedCurrencies": {
11884
+ "description": "Supported currencies serializer for provider capabilities.\n\nGets supported currencies from providers through CurrencyService.",
11885
+ "properties": {
11886
+ "currency_type": {
11887
+ "default": "all",
11888
+ "description": "Filter by currency type\n\n* `all` - All\n* `crypto` - Cryptocurrency\n* `fiat` - Fiat Currency",
11889
+ "enum": [
11890
+ "all",
11891
+ "crypto",
11892
+ "fiat"
11893
+ ],
11894
+ "type": "string",
11895
+ "x-spec-enum-id": "aaea9f89fe6374a5"
11896
+ },
11897
+ "provider": {
11898
+ "default": "nowpayments",
11899
+ "description": "Provider to get supported currencies from\n\n* `nowpayments` - NowPayments",
11900
+ "enum": [
11901
+ "nowpayments"
11902
+ ],
11903
+ "type": "string",
11904
+ "x-spec-enum-id": "47694db6bd068cb3"
11905
+ }
11906
+ },
11907
+ "type": "object"
11908
+ },
11860
11909
  "SupportedProviders": {
11861
11910
  "description": "Serializer for supported providers response.",
11862
11911
  "properties": {
@@ -19414,7 +19463,7 @@ var OPENAPI_SCHEMA = {
19414
19463
  },
19415
19464
  "/cfg/payments/api-keys/": {
19416
19465
  "get": {
19417
- "description": "Global API Key ViewSet: /api/api-keys/\n\nProvides admin-level access to all API keys with filtering and stats.",
19466
+ "description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
19418
19467
  "operationId": "cfg_payments_api_keys_list",
19419
19468
  "parameters": [
19420
19469
  {
@@ -19494,7 +19543,7 @@ var OPENAPI_SCHEMA = {
19494
19543
  "x-async-capable": false
19495
19544
  },
19496
19545
  "post": {
19497
- "description": "Global API Key ViewSet: /api/api-keys/\n\nProvides admin-level access to all API keys with filtering and stats.",
19546
+ "description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
19498
19547
  "operationId": "cfg_payments_api_keys_create",
19499
19548
  "requestBody": {
19500
19549
  "content": {
@@ -19846,7 +19895,7 @@ var OPENAPI_SCHEMA = {
19846
19895
  },
19847
19896
  "/cfg/payments/api-keys/{id}/": {
19848
19897
  "delete": {
19849
- "description": "Global API Key ViewSet: /api/api-keys/\n\nProvides admin-level access to all API keys with filtering and stats.",
19898
+ "description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
19850
19899
  "operationId": "cfg_payments_api_keys_destroy",
19851
19900
  "parameters": [
19852
19901
  {
@@ -19879,7 +19928,7 @@ var OPENAPI_SCHEMA = {
19879
19928
  "x-async-capable": false
19880
19929
  },
19881
19930
  "get": {
19882
- "description": "Global API Key ViewSet: /api/api-keys/\n\nProvides admin-level access to all API keys with filtering and stats.",
19931
+ "description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
19883
19932
  "operationId": "cfg_payments_api_keys_retrieve",
19884
19933
  "parameters": [
19885
19934
  {
@@ -19919,7 +19968,7 @@ var OPENAPI_SCHEMA = {
19919
19968
  "x-async-capable": false
19920
19969
  },
19921
19970
  "patch": {
19922
- "description": "Global API Key ViewSet: /api/api-keys/\n\nProvides admin-level access to all API keys with filtering and stats.",
19971
+ "description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
19923
19972
  "operationId": "cfg_payments_api_keys_partial_update",
19924
19973
  "parameters": [
19925
19974
  {
@@ -19978,7 +20027,7 @@ var OPENAPI_SCHEMA = {
19978
20027
  "x-async-capable": false
19979
20028
  },
19980
20029
  "put": {
19981
- "description": "Global API Key ViewSet: /api/api-keys/\n\nProvides admin-level access to all API keys with filtering and stats.",
20030
+ "description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
19982
20031
  "operationId": "cfg_payments_api_keys_update",
19983
20032
  "parameters": [
19984
20033
  {
@@ -20554,25 +20603,177 @@ var OPENAPI_SCHEMA = {
20554
20603
  },
20555
20604
  "/cfg/payments/currencies/rates/": {
20556
20605
  "get": {
20557
- "description": "Get current exchange rates for specified currencies",
20606
+ "description": "Get current exchange rates.",
20558
20607
  "operationId": "cfg_payments_currencies_rates_retrieve",
20608
+ "responses": {
20609
+ "200": {
20610
+ "content": {
20611
+ "application/json": {
20612
+ "schema": {
20613
+ "$ref": "#/components/schemas/CurrencyRates"
20614
+ }
20615
+ }
20616
+ },
20617
+ "description": ""
20618
+ }
20619
+ },
20620
+ "security": [
20621
+ {
20622
+ "jwtAuth": []
20623
+ },
20624
+ {
20625
+ "cookieAuth": []
20626
+ }
20627
+ ],
20628
+ "tags": [
20629
+ "payments"
20630
+ ],
20631
+ "x-async-capable": false
20632
+ }
20633
+ },
20634
+ "/cfg/payments/currencies/stable/": {
20635
+ "get": {
20636
+ "description": "Get only stablecoins.\n\nGET /api/currencies/stable/",
20637
+ "operationId": "cfg_payments_currencies_stable_retrieve",
20638
+ "responses": {
20639
+ "200": {
20640
+ "content": {
20641
+ "application/json": {
20642
+ "schema": {
20643
+ "$ref": "#/components/schemas/Currency"
20644
+ }
20645
+ }
20646
+ },
20647
+ "description": ""
20648
+ }
20649
+ },
20650
+ "security": [
20651
+ {
20652
+ "jwtAuth": []
20653
+ },
20654
+ {
20655
+ "cookieAuth": []
20656
+ }
20657
+ ],
20658
+ "tags": [
20659
+ "payments"
20660
+ ],
20661
+ "x-async-capable": false
20662
+ }
20663
+ },
20664
+ "/cfg/payments/currencies/stats/": {
20665
+ "get": {
20666
+ "description": "Get statistics for the current queryset.\n\nReturns counts, aggregates, and breakdowns.",
20667
+ "operationId": "cfg_payments_currencies_stats_retrieve",
20668
+ "responses": {
20669
+ "200": {
20670
+ "content": {
20671
+ "application/json": {
20672
+ "schema": {
20673
+ "$ref": "#/components/schemas/Currency"
20674
+ }
20675
+ }
20676
+ },
20677
+ "description": ""
20678
+ }
20679
+ },
20680
+ "security": [
20681
+ {
20682
+ "jwtAuth": []
20683
+ },
20684
+ {
20685
+ "cookieAuth": []
20686
+ }
20687
+ ],
20688
+ "tags": [
20689
+ "payments"
20690
+ ],
20691
+ "x-async-capable": false
20692
+ }
20693
+ },
20694
+ "/cfg/payments/currencies/supported/": {
20695
+ "get": {
20696
+ "description": "Get supported currencies from providers.",
20697
+ "operationId": "cfg_payments_currencies_supported_retrieve",
20698
+ "responses": {
20699
+ "200": {
20700
+ "content": {
20701
+ "application/json": {
20702
+ "schema": {
20703
+ "$ref": "#/components/schemas/SupportedCurrencies"
20704
+ }
20705
+ }
20706
+ },
20707
+ "description": ""
20708
+ }
20709
+ },
20710
+ "security": [
20711
+ {
20712
+ "jwtAuth": []
20713
+ },
20714
+ {
20715
+ "cookieAuth": []
20716
+ }
20717
+ ],
20718
+ "tags": [
20719
+ "payments"
20720
+ ],
20721
+ "x-async-capable": false
20722
+ }
20723
+ },
20724
+ "/cfg/payments/currencies/{id}/": {
20725
+ "get": {
20726
+ "description": "Currency ViewSet: /api/currencies/\n\nRead-only access to currency information with conversion capabilities.",
20727
+ "operationId": "cfg_payments_currencies_retrieve",
20559
20728
  "parameters": [
20560
20729
  {
20561
- "description": "Base currency code (e.g., USD)",
20562
- "in": "query",
20563
- "name": "base_currency",
20730
+ "description": "A unique integer value identifying this Currency.",
20731
+ "in": "path",
20732
+ "name": "id",
20564
20733
  "required": true,
20565
20734
  "schema": {
20566
- "type": "string"
20735
+ "type": "integer"
20567
20736
  }
20737
+ }
20738
+ ],
20739
+ "responses": {
20740
+ "200": {
20741
+ "content": {
20742
+ "application/json": {
20743
+ "schema": {
20744
+ "$ref": "#/components/schemas/Currency"
20745
+ }
20746
+ }
20747
+ },
20748
+ "description": ""
20749
+ }
20750
+ },
20751
+ "security": [
20752
+ {
20753
+ "jwtAuth": []
20568
20754
  },
20569
20755
  {
20570
- "description": "Comma-separated list of target currency codes (e.g., BTC,ETH,USDT)",
20571
- "in": "query",
20572
- "name": "currencies",
20756
+ "cookieAuth": []
20757
+ }
20758
+ ],
20759
+ "tags": [
20760
+ "payments"
20761
+ ],
20762
+ "x-async-capable": false
20763
+ }
20764
+ },
20765
+ "/cfg/payments/currencies/{id}/networks/": {
20766
+ "get": {
20767
+ "description": "Get networks for specific currency.\n\nGET /api/currencies/{id}/networks/",
20768
+ "operationId": "cfg_payments_currencies_networks_retrieve",
20769
+ "parameters": [
20770
+ {
20771
+ "description": "A unique integer value identifying this Currency.",
20772
+ "in": "path",
20773
+ "name": "id",
20573
20774
  "required": true,
20574
20775
  "schema": {
20575
- "type": "string"
20776
+ "type": "integer"
20576
20777
  }
20577
20778
  }
20578
20779
  ],
@@ -20596,224 +20797,27 @@ var OPENAPI_SCHEMA = {
20596
20797
  "cookieAuth": []
20597
20798
  }
20598
20799
  ],
20599
- "summary": "Get exchange rates",
20600
20800
  "tags": [
20601
20801
  "payments"
20602
20802
  ],
20603
20803
  "x-async-capable": false
20604
20804
  }
20605
20805
  },
20606
- "/cfg/payments/currencies/stable/": {
20806
+ "/cfg/payments/currencies/{id}/providers/": {
20607
20807
  "get": {
20608
- "description": "Get only stablecoins.\n\nGET /api/currencies/stable/",
20609
- "operationId": "cfg_payments_currencies_stable_retrieve",
20610
- "responses": {
20611
- "200": {
20612
- "content": {
20613
- "application/json": {
20614
- "schema": {
20615
- "$ref": "#/components/schemas/Currency"
20616
- }
20617
- }
20618
- },
20619
- "description": ""
20620
- }
20621
- },
20622
- "security": [
20623
- {
20624
- "jwtAuth": []
20625
- },
20626
- {
20627
- "cookieAuth": []
20628
- }
20629
- ],
20630
- "tags": [
20631
- "payments"
20632
- ],
20633
- "x-async-capable": false
20634
- }
20635
- },
20636
- "/cfg/payments/currencies/stats/": {
20637
- "get": {
20638
- "description": "Get statistics for the current queryset.\n\nReturns counts, aggregates, and breakdowns.",
20639
- "operationId": "cfg_payments_currencies_stats_retrieve",
20640
- "responses": {
20641
- "200": {
20642
- "content": {
20643
- "application/json": {
20644
- "schema": {
20645
- "$ref": "#/components/schemas/Currency"
20646
- }
20647
- }
20648
- },
20649
- "description": ""
20650
- }
20651
- },
20652
- "security": [
20653
- {
20654
- "jwtAuth": []
20655
- },
20656
- {
20657
- "cookieAuth": []
20658
- }
20659
- ],
20660
- "tags": [
20661
- "payments"
20662
- ],
20663
- "x-async-capable": false
20664
- }
20665
- },
20666
- "/cfg/payments/currencies/supported/": {
20667
- "get": {
20668
- "description": "Get list of supported currencies from payment providers",
20669
- "operationId": "cfg_payments_currencies_supported_retrieve",
20670
- "parameters": [
20671
- {
20672
- "description": "Currency type filter: crypto, fiat, or stablecoin",
20673
- "in": "query",
20674
- "name": "currency_type",
20675
- "schema": {
20676
- "enum": [
20677
- "crypto",
20678
- "fiat",
20679
- "stablecoin"
20680
- ],
20681
- "type": "string"
20682
- }
20683
- },
20684
- {
20685
- "description": "Payment provider name (e.g., nowpayments)",
20686
- "in": "query",
20687
- "name": "provider",
20688
- "schema": {
20689
- "type": "string"
20690
- }
20691
- }
20692
- ],
20693
- "responses": {
20694
- "200": {
20695
- "content": {
20696
- "application/json": {
20697
- "schema": {
20698
- "$ref": "#/components/schemas/Currency"
20699
- }
20700
- }
20701
- },
20702
- "description": ""
20703
- }
20704
- },
20705
- "security": [
20706
- {
20707
- "jwtAuth": []
20708
- },
20709
- {
20710
- "cookieAuth": []
20711
- }
20712
- ],
20713
- "summary": "Get supported currencies",
20714
- "tags": [
20715
- "payments"
20716
- ],
20717
- "x-async-capable": false
20718
- }
20719
- },
20720
- "/cfg/payments/currencies/{id}/": {
20721
- "get": {
20722
- "description": "Currency ViewSet: /api/currencies/\n\nRead-only access to currency information with conversion capabilities.",
20723
- "operationId": "cfg_payments_currencies_retrieve",
20724
- "parameters": [
20725
- {
20726
- "description": "A unique integer value identifying this Currency.",
20727
- "in": "path",
20728
- "name": "id",
20729
- "required": true,
20730
- "schema": {
20731
- "type": "integer"
20732
- }
20733
- }
20734
- ],
20735
- "responses": {
20736
- "200": {
20737
- "content": {
20738
- "application/json": {
20739
- "schema": {
20740
- "$ref": "#/components/schemas/Currency"
20741
- }
20742
- }
20743
- },
20744
- "description": ""
20745
- }
20746
- },
20747
- "security": [
20748
- {
20749
- "jwtAuth": []
20750
- },
20751
- {
20752
- "cookieAuth": []
20753
- }
20754
- ],
20755
- "tags": [
20756
- "payments"
20757
- ],
20758
- "x-async-capable": false
20759
- }
20760
- },
20761
- "/cfg/payments/currencies/{id}/networks/": {
20762
- "get": {
20763
- "description": "Get networks for specific currency.\n\nGET /api/currencies/{id}/networks/",
20764
- "operationId": "cfg_payments_currencies_networks_retrieve",
20765
- "parameters": [
20766
- {
20767
- "description": "A unique integer value identifying this Currency.",
20768
- "in": "path",
20769
- "name": "id",
20770
- "required": true,
20771
- "schema": {
20772
- "type": "integer"
20773
- }
20774
- }
20775
- ],
20776
- "responses": {
20777
- "200": {
20778
- "content": {
20779
- "application/json": {
20780
- "schema": {
20781
- "$ref": "#/components/schemas/Currency"
20782
- }
20783
- }
20784
- },
20785
- "description": ""
20786
- }
20787
- },
20788
- "security": [
20789
- {
20790
- "jwtAuth": []
20791
- },
20792
- {
20793
- "cookieAuth": []
20794
- }
20795
- ],
20796
- "tags": [
20797
- "payments"
20798
- ],
20799
- "x-async-capable": false
20800
- }
20801
- },
20802
- "/cfg/payments/currencies/{id}/providers/": {
20803
- "get": {
20804
- "description": "Get providers supporting specific currency.\n\nGET /api/currencies/{id}/providers/",
20805
- "operationId": "cfg_payments_currencies_providers_retrieve",
20806
- "parameters": [
20807
- {
20808
- "description": "A unique integer value identifying this Currency.",
20809
- "in": "path",
20810
- "name": "id",
20811
- "required": true,
20812
- "schema": {
20813
- "type": "integer"
20814
- }
20815
- }
20816
- ],
20808
+ "description": "Get providers supporting specific currency.\n\nGET /api/currencies/{id}/providers/",
20809
+ "operationId": "cfg_payments_currencies_providers_retrieve",
20810
+ "parameters": [
20811
+ {
20812
+ "description": "A unique integer value identifying this Currency.",
20813
+ "in": "path",
20814
+ "name": "id",
20815
+ "required": true,
20816
+ "schema": {
20817
+ "type": "integer"
20818
+ }
20819
+ }
20820
+ ],
20817
20821
  "responses": {
20818
20822
  "200": {
20819
20823
  "content": {
@@ -27701,6 +27705,7 @@ __export(enums_exports, {
27701
27705
  ChatMessageRole: () => ChatMessageRole,
27702
27706
  CurrencyCurrencyType: () => CurrencyCurrencyType,
27703
27707
  CurrencyListCurrencyType: () => CurrencyListCurrencyType,
27708
+ CurrencyRatesProvider: () => CurrencyRatesProvider,
27704
27709
  DocumentArchiveArchiveType: () => DocumentArchiveArchiveType,
27705
27710
  DocumentArchiveDetailArchiveType: () => DocumentArchiveDetailArchiveType,
27706
27711
  DocumentArchiveDetailProcessingStatus: () => DocumentArchiveDetailProcessingStatus,
@@ -27722,9 +27727,7 @@ __export(enums_exports, {
27722
27727
  PatchedSubscriptionRequestTier: () => PatchedSubscriptionRequestTier,
27723
27728
  PatchedTicketRequestStatus: () => PatchedTicketRequestStatus,
27724
27729
  PaymentCreateCurrencyCode: () => PaymentCreateCurrencyCode,
27725
- PaymentCreateProvider: () => PaymentCreateProvider,
27726
27730
  PaymentCreateRequestCurrencyCode: () => PaymentCreateRequestCurrencyCode,
27727
- PaymentCreateRequestProvider: () => PaymentCreateRequestProvider,
27728
27731
  PaymentListProvider: () => PaymentListProvider,
27729
27732
  PaymentListStatus: () => PaymentListStatus,
27730
27733
  PaymentProvider: () => PaymentProvider,
@@ -27738,6 +27741,8 @@ __export(enums_exports, {
27738
27741
  SubscriptionRequestTier: () => SubscriptionRequestTier,
27739
27742
  SubscriptionStatus: () => SubscriptionStatus,
27740
27743
  SubscriptionTier: () => SubscriptionTier,
27744
+ SupportedCurrenciesCurrencyType: () => SupportedCurrenciesCurrencyType,
27745
+ SupportedCurrenciesProvider: () => SupportedCurrenciesProvider,
27741
27746
  TicketRequestStatus: () => TicketRequestStatus,
27742
27747
  TicketStatus: () => TicketStatus,
27743
27748
  TransactionTransactionType: () => TransactionTransactionType,
@@ -27847,11 +27852,15 @@ var CurrencyListCurrencyType = /* @__PURE__ */ ((CurrencyListCurrencyType2) => {
27847
27852
  CurrencyListCurrencyType2["CRYPTO"] = "crypto";
27848
27853
  return CurrencyListCurrencyType2;
27849
27854
  })(CurrencyListCurrencyType || {});
27855
+ var CurrencyRatesProvider = /* @__PURE__ */ ((CurrencyRatesProvider2) => {
27856
+ CurrencyRatesProvider2["NOWPAYMENTS"] = "nowpayments";
27857
+ return CurrencyRatesProvider2;
27858
+ })(CurrencyRatesProvider || {});
27850
27859
  var DocumentArchiveArchiveType = /* @__PURE__ */ ((DocumentArchiveArchiveType2) => {
27851
27860
  DocumentArchiveArchiveType2["ZIP"] = "zip";
27852
27861
  DocumentArchiveArchiveType2["TAR"] = "tar";
27853
- DocumentArchiveArchiveType2["TAR_GZ"] = "tar.gz";
27854
- DocumentArchiveArchiveType2["TAR_BZ2"] = "tar.bz2";
27862
+ DocumentArchiveArchiveType2["TAR_DOT_GZ"] = "tar.gz";
27863
+ DocumentArchiveArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
27855
27864
  return DocumentArchiveArchiveType2;
27856
27865
  })(DocumentArchiveArchiveType || {});
27857
27866
  var DocumentArchiveProcessingStatus = /* @__PURE__ */ ((DocumentArchiveProcessingStatus2) => {
@@ -27865,8 +27874,8 @@ var DocumentArchiveProcessingStatus = /* @__PURE__ */ ((DocumentArchiveProcessin
27865
27874
  var DocumentArchiveDetailArchiveType = /* @__PURE__ */ ((DocumentArchiveDetailArchiveType2) => {
27866
27875
  DocumentArchiveDetailArchiveType2["ZIP"] = "zip";
27867
27876
  DocumentArchiveDetailArchiveType2["TAR"] = "tar";
27868
- DocumentArchiveDetailArchiveType2["TAR_GZ"] = "tar.gz";
27869
- DocumentArchiveDetailArchiveType2["TAR_BZ2"] = "tar.bz2";
27877
+ DocumentArchiveDetailArchiveType2["TAR_DOT_GZ"] = "tar.gz";
27878
+ DocumentArchiveDetailArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
27870
27879
  return DocumentArchiveDetailArchiveType2;
27871
27880
  })(DocumentArchiveDetailArchiveType || {});
27872
27881
  var DocumentArchiveDetailProcessingStatus = /* @__PURE__ */ ((DocumentArchiveDetailProcessingStatus2) => {
@@ -27880,8 +27889,8 @@ var DocumentArchiveDetailProcessingStatus = /* @__PURE__ */ ((DocumentArchiveDet
27880
27889
  var DocumentArchiveListArchiveType = /* @__PURE__ */ ((DocumentArchiveListArchiveType2) => {
27881
27890
  DocumentArchiveListArchiveType2["ZIP"] = "zip";
27882
27891
  DocumentArchiveListArchiveType2["TAR"] = "tar";
27883
- DocumentArchiveListArchiveType2["TAR_GZ"] = "tar.gz";
27884
- DocumentArchiveListArchiveType2["TAR_BZ2"] = "tar.bz2";
27892
+ DocumentArchiveListArchiveType2["TAR_DOT_GZ"] = "tar.gz";
27893
+ DocumentArchiveListArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
27885
27894
  return DocumentArchiveListArchiveType2;
27886
27895
  })(DocumentArchiveListArchiveType || {});
27887
27896
  var DocumentArchiveListProcessingStatus = /* @__PURE__ */ ((DocumentArchiveListProcessingStatus2) => {
@@ -28023,10 +28032,6 @@ var PaymentCreateCurrencyCode = /* @__PURE__ */ ((PaymentCreateCurrencyCode2) =>
28023
28032
  PaymentCreateCurrencyCode2["DOT"] = "DOT";
28024
28033
  return PaymentCreateCurrencyCode2;
28025
28034
  })(PaymentCreateCurrencyCode || {});
28026
- var PaymentCreateProvider = /* @__PURE__ */ ((PaymentCreateProvider2) => {
28027
- PaymentCreateProvider2["NOWPAYMENTS"] = "nowpayments";
28028
- return PaymentCreateProvider2;
28029
- })(PaymentCreateProvider || {});
28030
28035
  var PaymentCreateRequestCurrencyCode = /* @__PURE__ */ ((PaymentCreateRequestCurrencyCode2) => {
28031
28036
  PaymentCreateRequestCurrencyCode2["BTC"] = "BTC";
28032
28037
  PaymentCreateRequestCurrencyCode2["ETH"] = "ETH";
@@ -28038,10 +28043,6 @@ var PaymentCreateRequestCurrencyCode = /* @__PURE__ */ ((PaymentCreateRequestCur
28038
28043
  PaymentCreateRequestCurrencyCode2["DOT"] = "DOT";
28039
28044
  return PaymentCreateRequestCurrencyCode2;
28040
28045
  })(PaymentCreateRequestCurrencyCode || {});
28041
- var PaymentCreateRequestProvider = /* @__PURE__ */ ((PaymentCreateRequestProvider2) => {
28042
- PaymentCreateRequestProvider2["NOWPAYMENTS"] = "nowpayments";
28043
- return PaymentCreateRequestProvider2;
28044
- })(PaymentCreateRequestProvider || {});
28045
28046
  var PaymentListProvider = /* @__PURE__ */ ((PaymentListProvider2) => {
28046
28047
  PaymentListProvider2["NOWPAYMENTS"] = "nowpayments";
28047
28048
  return PaymentListProvider2;
@@ -28126,6 +28127,16 @@ var SubscriptionRequestTier = /* @__PURE__ */ ((SubscriptionRequestTier2) => {
28126
28127
  SubscriptionRequestTier2["ENTERPRISE"] = "enterprise";
28127
28128
  return SubscriptionRequestTier2;
28128
28129
  })(SubscriptionRequestTier || {});
28130
+ var SupportedCurrenciesProvider = /* @__PURE__ */ ((SupportedCurrenciesProvider2) => {
28131
+ SupportedCurrenciesProvider2["NOWPAYMENTS"] = "nowpayments";
28132
+ return SupportedCurrenciesProvider2;
28133
+ })(SupportedCurrenciesProvider || {});
28134
+ var SupportedCurrenciesCurrencyType = /* @__PURE__ */ ((SupportedCurrenciesCurrencyType2) => {
28135
+ SupportedCurrenciesCurrencyType2["ALL"] = "all";
28136
+ SupportedCurrenciesCurrencyType2["CRYPTO"] = "crypto";
28137
+ SupportedCurrenciesCurrencyType2["FIAT"] = "fiat";
28138
+ return SupportedCurrenciesCurrencyType2;
28139
+ })(SupportedCurrenciesCurrencyType || {});
28129
28140
  var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
28130
28141
  TicketStatus2["OPEN"] = "open";
28131
28142
  TicketStatus2["WAITING_FOR_USER"] = "waiting_for_user";
@@ -28229,6 +28240,7 @@ __export(schemas_exports, {
28229
28240
  ChunkRevectorizationRequestRequestSchema: () => ChunkRevectorizationRequestRequestSchema,
28230
28241
  CurrencyAnalyticsItemSchema: () => CurrencyAnalyticsItemSchema,
28231
28242
  CurrencyListSchema: () => CurrencyListSchema,
28243
+ CurrencyRatesSchema: () => CurrencyRatesSchema,
28232
28244
  CurrencySchema: () => CurrencySchema,
28233
28245
  DocumentArchiveDetailSchema: () => DocumentArchiveDetailSchema,
28234
28246
  DocumentArchiveListSchema: () => DocumentArchiveListSchema,
@@ -28347,6 +28359,7 @@ __export(schemas_exports, {
28347
28359
  SubscriptionRequestSchema: () => SubscriptionRequestSchema,
28348
28360
  SubscriptionSchema: () => SubscriptionSchema,
28349
28361
  SuccessResponseSchema: () => SuccessResponseSchema,
28362
+ SupportedCurrenciesSchema: () => SupportedCurrenciesSchema,
28350
28363
  SupportedProvidersSchema: () => SupportedProvidersSchema,
28351
28364
  TariffSchema: () => TariffSchema,
28352
28365
  TaskStatisticsSchema: () => TaskStatisticsSchema,
@@ -28450,7 +28463,7 @@ import { z as z8 } from "zod";
28450
28463
  var APIKeyValidationResponseSchema = z8.object({
28451
28464
  success: z8.boolean(),
28452
28465
  valid: z8.boolean(),
28453
- api_key: APIKeyDetailSchema,
28466
+ api_key: APIKeyDetailSchema.nullable(),
28454
28467
  message: z8.string(),
28455
28468
  error: z8.string().optional(),
28456
28469
  error_code: z8.string().optional()
@@ -28538,7 +28551,7 @@ var AdminPaymentDetailSchema = z15.object({
28538
28551
  provider_display: z15.string(),
28539
28552
  status: z15.string(),
28540
28553
  status_display: z15.string(),
28541
- pay_amount: z15.string().regex(/^-?\d{0,12}(?:\.\d{0,8})?$/),
28554
+ pay_amount: z15.string(),
28542
28555
  pay_address: z15.string(),
28543
28556
  payment_url: z15.url(),
28544
28557
  transaction_hash: z15.string(),
@@ -28570,7 +28583,7 @@ var AdminPaymentListSchema = z16.object({
28570
28583
  provider_display: z16.string(),
28571
28584
  status: z16.string(),
28572
28585
  status_display: z16.string(),
28573
- pay_amount: z16.string().regex(/^-?\d{0,12}(?:\.\d{0,8})?$/),
28586
+ pay_amount: z16.string(),
28574
28587
  pay_address: z16.string(),
28575
28588
  transaction_hash: z16.string(),
28576
28589
  created_at: z16.iso.datetime(),
@@ -28963,72 +28976,53 @@ var CurrencyListSchema = z48.object({
28963
28976
  symbol: z48.string(),
28964
28977
  currency_type: z48.nativeEnum(CurrencyListCurrencyType),
28965
28978
  type_display: z48.string(),
28966
- is_active: z48.boolean()
28979
+ is_active: z48.boolean(),
28980
+ usd_rate: z48.number(),
28981
+ usd_rate_updated_at: z48.iso.datetime().nullable()
28967
28982
  });
28968
28983
 
28969
- // src/cfg/generated/_utils/schemas/Document.schema.ts
28984
+ // src/cfg/generated/_utils/schemas/CurrencyRates.schema.ts
28970
28985
  import { z as z49 } from "zod";
28971
- var DocumentSchema = z49.object({
28972
- id: z49.uuid(),
28973
- title: z49.string().max(512),
28974
- file_type: z49.string().max(100).optional(),
28975
- file_size: z49.int().min(0).max(9223372036854776e3).optional(),
28976
- processing_status: z49.string(),
28977
- chunks_count: z49.int(),
28978
- total_tokens: z49.int(),
28979
- total_cost_usd: z49.number(),
28980
- created_at: z49.iso.datetime(),
28981
- updated_at: z49.iso.datetime(),
28982
- processing_started_at: z49.iso.datetime(),
28983
- processing_completed_at: z49.iso.datetime(),
28984
- processing_error: z49.string(),
28985
- metadata: z49.string().nullable().optional()
28986
+ var CurrencyRatesSchema = z49.object({
28987
+ base_currency: z49.string().max(10).optional(),
28988
+ currencies: z49.array(z49.string().max(10)).optional(),
28989
+ provider: z49.nativeEnum(CurrencyRatesProvider).optional()
28986
28990
  });
28987
28991
 
28988
- // src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
28989
- import { z as z51 } from "zod";
28990
-
28991
- // src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
28992
+ // src/cfg/generated/_utils/schemas/Document.schema.ts
28992
28993
  import { z as z50 } from "zod";
28993
- var DocumentCategorySchema = z50.object({
28994
+ var DocumentSchema = z50.object({
28994
28995
  id: z50.uuid(),
28995
- name: z50.string().max(255),
28996
- description: z50.string().optional(),
28997
- is_public: z50.boolean().optional(),
28998
- created_at: z50.iso.datetime()
28996
+ title: z50.string().max(512),
28997
+ file_type: z50.string().max(100).optional(),
28998
+ file_size: z50.int().min(0).max(9223372036854776e3).optional(),
28999
+ processing_status: z50.string(),
29000
+ chunks_count: z50.int(),
29001
+ total_tokens: z50.int(),
29002
+ total_cost_usd: z50.number(),
29003
+ created_at: z50.iso.datetime(),
29004
+ updated_at: z50.iso.datetime(),
29005
+ processing_started_at: z50.iso.datetime(),
29006
+ processing_completed_at: z50.iso.datetime(),
29007
+ processing_error: z50.string(),
29008
+ metadata: z50.string().nullable().optional()
28999
29009
  });
29000
29010
 
29001
29011
  // src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
29002
- var DocumentArchiveSchema = z51.object({
29012
+ import { z as z52 } from "zod";
29013
+
29014
+ // src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
29015
+ import { z as z51 } from "zod";
29016
+ var DocumentCategorySchema = z51.object({
29003
29017
  id: z51.uuid(),
29004
- title: z51.string().max(512),
29018
+ name: z51.string().max(255),
29005
29019
  description: z51.string().optional(),
29006
- categories: z51.array(DocumentCategorySchema),
29007
29020
  is_public: z51.boolean().optional(),
29008
- archive_file: z51.url(),
29009
- original_filename: z51.string(),
29010
- file_size: z51.int(),
29011
- archive_type: z51.nativeEnum(DocumentArchiveArchiveType),
29012
- processing_status: z51.nativeEnum(DocumentArchiveProcessingStatus),
29013
- processed_at: z51.iso.datetime().nullable(),
29014
- processing_duration_ms: z51.int(),
29015
- processing_error: z51.string(),
29016
- total_items: z51.int(),
29017
- processed_items: z51.int(),
29018
- total_chunks: z51.int(),
29019
- vectorized_chunks: z51.int(),
29020
- total_tokens: z51.int(),
29021
- total_cost_usd: z51.number(),
29022
- processing_progress: z51.number(),
29023
- vectorization_progress: z51.number(),
29024
- is_processed: z51.boolean(),
29025
- created_at: z51.iso.datetime(),
29026
- updated_at: z51.iso.datetime()
29021
+ created_at: z51.iso.datetime()
29027
29022
  });
29028
29023
 
29029
- // src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts
29030
- import { z as z52 } from "zod";
29031
- var DocumentArchiveDetailSchema = z52.object({
29024
+ // src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
29025
+ var DocumentArchiveSchema = z52.object({
29032
29026
  id: z52.uuid(),
29033
29027
  title: z52.string().max(512),
29034
29028
  description: z52.string().optional(),
@@ -29037,8 +29031,8 @@ var DocumentArchiveDetailSchema = z52.object({
29037
29031
  archive_file: z52.url(),
29038
29032
  original_filename: z52.string(),
29039
29033
  file_size: z52.int(),
29040
- archive_type: z52.nativeEnum(DocumentArchiveDetailArchiveType),
29041
- processing_status: z52.nativeEnum(DocumentArchiveDetailProcessingStatus),
29034
+ archive_type: z52.nativeEnum(DocumentArchiveArchiveType),
29035
+ processing_status: z52.nativeEnum(DocumentArchiveProcessingStatus),
29042
29036
  processed_at: z52.iso.datetime().nullable(),
29043
29037
  processing_duration_ms: z52.int(),
29044
29038
  processing_error: z52.string(),
@@ -29052,407 +29046,422 @@ var DocumentArchiveDetailSchema = z52.object({
29052
29046
  vectorization_progress: z52.number(),
29053
29047
  is_processed: z52.boolean(),
29054
29048
  created_at: z52.iso.datetime(),
29055
- updated_at: z52.iso.datetime(),
29056
- items: z52.array(ArchiveItemSchema),
29057
- file_tree: z52.record(z52.string(), z52.any()),
29058
- metadata: z52.string().nullable().optional()
29049
+ updated_at: z52.iso.datetime()
29059
29050
  });
29060
29051
 
29061
- // src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts
29052
+ // src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts
29062
29053
  import { z as z53 } from "zod";
29063
- var DocumentArchiveListSchema = z53.object({
29054
+ var DocumentArchiveDetailSchema = z53.object({
29064
29055
  id: z53.uuid(),
29065
- title: z53.string(),
29066
- description: z53.string(),
29056
+ title: z53.string().max(512),
29057
+ description: z53.string().optional(),
29067
29058
  categories: z53.array(DocumentCategorySchema),
29068
- is_public: z53.boolean(),
29059
+ is_public: z53.boolean().optional(),
29060
+ archive_file: z53.url(),
29069
29061
  original_filename: z53.string(),
29070
29062
  file_size: z53.int(),
29071
- archive_type: z53.nativeEnum(DocumentArchiveListArchiveType),
29072
- processing_status: z53.nativeEnum(DocumentArchiveListProcessingStatus),
29063
+ archive_type: z53.nativeEnum(DocumentArchiveDetailArchiveType),
29064
+ processing_status: z53.nativeEnum(DocumentArchiveDetailProcessingStatus),
29073
29065
  processed_at: z53.iso.datetime().nullable(),
29066
+ processing_duration_ms: z53.int(),
29067
+ processing_error: z53.string(),
29074
29068
  total_items: z53.int(),
29069
+ processed_items: z53.int(),
29075
29070
  total_chunks: z53.int(),
29071
+ vectorized_chunks: z53.int(),
29072
+ total_tokens: z53.int(),
29076
29073
  total_cost_usd: z53.number(),
29077
29074
  processing_progress: z53.number(),
29078
- created_at: z53.iso.datetime()
29075
+ vectorization_progress: z53.number(),
29076
+ is_processed: z53.boolean(),
29077
+ created_at: z53.iso.datetime(),
29078
+ updated_at: z53.iso.datetime(),
29079
+ items: z53.array(ArchiveItemSchema),
29080
+ file_tree: z53.record(z53.string(), z53.any()),
29081
+ metadata: z53.string().nullable().optional()
29079
29082
  });
29080
29083
 
29081
- // src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts
29084
+ // src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts
29082
29085
  import { z as z54 } from "zod";
29083
- var DocumentArchiveRequestSchema = z54.object({
29084
- title: z54.string().min(1).max(512),
29085
- description: z54.string().optional(),
29086
- is_public: z54.boolean().optional()
29086
+ var DocumentArchiveListSchema = z54.object({
29087
+ id: z54.uuid(),
29088
+ title: z54.string(),
29089
+ description: z54.string(),
29090
+ categories: z54.array(DocumentCategorySchema),
29091
+ is_public: z54.boolean(),
29092
+ original_filename: z54.string(),
29093
+ file_size: z54.int(),
29094
+ archive_type: z54.nativeEnum(DocumentArchiveListArchiveType),
29095
+ processing_status: z54.nativeEnum(DocumentArchiveListProcessingStatus),
29096
+ processed_at: z54.iso.datetime().nullable(),
29097
+ total_items: z54.int(),
29098
+ total_chunks: z54.int(),
29099
+ total_cost_usd: z54.number(),
29100
+ processing_progress: z54.number(),
29101
+ created_at: z54.iso.datetime()
29087
29102
  });
29088
29103
 
29089
- // src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts
29104
+ // src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts
29090
29105
  import { z as z55 } from "zod";
29091
- var DocumentCategoryRequestSchema = z55.object({
29092
- name: z55.string().min(1).max(255),
29106
+ var DocumentArchiveRequestSchema = z55.object({
29107
+ title: z55.string().min(1).max(512),
29093
29108
  description: z55.string().optional(),
29094
29109
  is_public: z55.boolean().optional()
29095
29110
  });
29096
29111
 
29097
- // src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts
29112
+ // src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts
29098
29113
  import { z as z56 } from "zod";
29099
- var DocumentCreateRequestSchema = z56.object({
29100
- title: z56.string().min(1).max(512),
29101
- content: z56.string().min(10).max(1e6),
29102
- file_type: z56.string().min(1).regex(/^[a-z]+\/[a-z0-9\-\+\.]+$/).optional(),
29103
- metadata: z56.string().optional()
29114
+ var DocumentCategoryRequestSchema = z56.object({
29115
+ name: z56.string().min(1).max(255),
29116
+ description: z56.string().optional(),
29117
+ is_public: z56.boolean().optional()
29104
29118
  });
29105
29119
 
29106
- // src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts
29120
+ // src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts
29107
29121
  import { z as z57 } from "zod";
29108
- var DocumentProcessingStatusSchema = z57.object({
29109
- id: z57.uuid(),
29110
- status: z57.string(),
29111
- progress: z57.string(),
29112
- error: z57.string().nullable().optional(),
29113
- processing_time_seconds: z57.number().nullable().optional()
29122
+ var DocumentCreateRequestSchema = z57.object({
29123
+ title: z57.string().min(1).max(512),
29124
+ content: z57.string().min(10).max(1e6),
29125
+ file_type: z57.string().min(1).optional(),
29126
+ metadata: z57.string().optional()
29114
29127
  });
29115
29128
 
29116
- // src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts
29129
+ // src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts
29117
29130
  import { z as z58 } from "zod";
29118
- var DocumentRequestSchema = z58.object({
29119
- title: z58.string().min(1).max(512),
29120
- file_type: z58.string().min(1).max(100).optional(),
29121
- file_size: z58.int().min(0).max(9223372036854776e3).optional(),
29122
- metadata: z58.string().nullable().optional()
29131
+ var DocumentProcessingStatusSchema = z58.object({
29132
+ id: z58.uuid(),
29133
+ status: z58.string(),
29134
+ progress: z58.string(),
29135
+ error: z58.string().nullable().optional(),
29136
+ processing_time_seconds: z58.number().nullable().optional()
29123
29137
  });
29124
29138
 
29125
- // src/cfg/generated/_utils/schemas/DocumentStats.schema.ts
29139
+ // src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts
29126
29140
  import { z as z59 } from "zod";
29127
- var DocumentStatsSchema = z59.object({
29128
- total_documents: z59.int(),
29129
- completed_documents: z59.int(),
29130
- processing_success_rate: z59.number(),
29131
- total_chunks: z59.int(),
29132
- total_tokens: z59.int(),
29133
- total_cost_usd: z59.number(),
29134
- avg_processing_time_seconds: z59.number()
29141
+ var DocumentRequestSchema = z59.object({
29142
+ title: z59.string().min(1).max(512),
29143
+ file_type: z59.string().min(1).max(100).optional(),
29144
+ file_size: z59.int().min(0).max(9223372036854776e3).optional(),
29145
+ metadata: z59.string().nullable().optional()
29135
29146
  });
29136
29147
 
29137
- // src/cfg/generated/_utils/schemas/EmailLog.schema.ts
29148
+ // src/cfg/generated/_utils/schemas/DocumentStats.schema.ts
29138
29149
  import { z as z60 } from "zod";
29139
- var EmailLogSchema = z60.object({
29140
- id: z60.uuid(),
29141
- user: z60.int().nullable(),
29142
- user_email: z60.string(),
29143
- newsletter: z60.int().nullable(),
29144
- newsletter_title: z60.string(),
29145
- recipient: z60.string(),
29146
- subject: z60.string(),
29147
- body: z60.string(),
29148
- status: z60.nativeEnum(EmailLogStatus),
29149
- created_at: z60.iso.datetime(),
29150
- sent_at: z60.iso.datetime().nullable(),
29151
- error_message: z60.string().nullable()
29150
+ var DocumentStatsSchema = z60.object({
29151
+ total_documents: z60.int(),
29152
+ completed_documents: z60.int(),
29153
+ processing_success_rate: z60.number(),
29154
+ total_chunks: z60.int(),
29155
+ total_tokens: z60.int(),
29156
+ total_cost_usd: z60.number(),
29157
+ avg_processing_time_seconds: z60.number()
29152
29158
  });
29153
29159
 
29154
- // src/cfg/generated/_utils/schemas/Endpoint.schema.ts
29160
+ // src/cfg/generated/_utils/schemas/EmailLog.schema.ts
29155
29161
  import { z as z61 } from "zod";
29156
- var EndpointSchema = z61.object({
29157
- url: z61.string(),
29158
- url_pattern: z61.string().nullable().optional(),
29159
- url_name: z61.string().nullable().optional(),
29160
- namespace: z61.string().optional(),
29161
- group: z61.string(),
29162
- view: z61.string().optional(),
29163
- status: z61.string(),
29164
- status_code: z61.int().nullable().optional(),
29165
- response_time_ms: z61.number().nullable().optional(),
29166
- is_healthy: z61.boolean().nullable().optional(),
29167
- error: z61.string().optional(),
29168
- error_type: z61.string().optional(),
29169
- reason: z61.string().optional(),
29170
- last_checked: z61.iso.datetime().nullable().optional(),
29171
- has_parameters: z61.boolean().optional(),
29172
- required_auth: z61.boolean().optional(),
29173
- rate_limited: z61.boolean().optional()
29162
+ var EmailLogSchema = z61.object({
29163
+ id: z61.uuid(),
29164
+ user: z61.int().nullable(),
29165
+ user_email: z61.string(),
29166
+ newsletter: z61.int().nullable(),
29167
+ newsletter_title: z61.string(),
29168
+ recipient: z61.string(),
29169
+ subject: z61.string(),
29170
+ body: z61.string(),
29171
+ status: z61.nativeEnum(EmailLogStatus),
29172
+ created_at: z61.iso.datetime(),
29173
+ sent_at: z61.iso.datetime().nullable(),
29174
+ error_message: z61.string().nullable()
29174
29175
  });
29175
29176
 
29176
- // src/cfg/generated/_utils/schemas/EndpointGroup.schema.ts
29177
+ // src/cfg/generated/_utils/schemas/Endpoint.schema.ts
29177
29178
  import { z as z62 } from "zod";
29178
- var EndpointGroupSchema = z62.object({
29179
- id: z62.int(),
29180
- name: z62.string(),
29181
- description: z62.string(),
29182
- is_enabled: z62.boolean(),
29183
- created_at: z62.iso.datetime(),
29184
- updated_at: z62.iso.datetime()
29179
+ var EndpointSchema = z62.object({
29180
+ url: z62.string(),
29181
+ url_pattern: z62.string().nullable().optional(),
29182
+ url_name: z62.string().nullable().optional(),
29183
+ namespace: z62.string().optional(),
29184
+ group: z62.string(),
29185
+ view: z62.string().optional(),
29186
+ status: z62.string(),
29187
+ status_code: z62.int().nullable().optional(),
29188
+ response_time_ms: z62.number().nullable().optional(),
29189
+ is_healthy: z62.boolean().nullable().optional(),
29190
+ error: z62.string().optional(),
29191
+ error_type: z62.string().optional(),
29192
+ reason: z62.string().optional(),
29193
+ last_checked: z62.iso.datetime().nullable().optional(),
29194
+ has_parameters: z62.boolean().optional(),
29195
+ required_auth: z62.boolean().optional(),
29196
+ rate_limited: z62.boolean().optional()
29185
29197
  });
29186
29198
 
29187
- // src/cfg/generated/_utils/schemas/EndpointsStatus.schema.ts
29199
+ // src/cfg/generated/_utils/schemas/EndpointGroup.schema.ts
29188
29200
  import { z as z63 } from "zod";
29189
- var EndpointsStatusSchema = z63.object({
29190
- status: z63.string(),
29191
- timestamp: z63.iso.datetime(),
29192
- total_endpoints: z63.int(),
29193
- healthy: z63.int(),
29194
- unhealthy: z63.int(),
29195
- warnings: z63.int(),
29196
- errors: z63.int(),
29197
- skipped: z63.int(),
29198
- endpoints: z63.array(EndpointSchema)
29201
+ var EndpointGroupSchema = z63.object({
29202
+ id: z63.int(),
29203
+ name: z63.string(),
29204
+ description: z63.string(),
29205
+ is_enabled: z63.boolean(),
29206
+ created_at: z63.iso.datetime(),
29207
+ updated_at: z63.iso.datetime()
29199
29208
  });
29200
29209
 
29201
- // src/cfg/generated/_utils/schemas/ErrorResponse.schema.ts
29210
+ // src/cfg/generated/_utils/schemas/EndpointsStatus.schema.ts
29202
29211
  import { z as z64 } from "zod";
29203
- var ErrorResponseSchema = z64.object({
29204
- success: z64.boolean().optional(),
29205
- message: z64.string()
29212
+ var EndpointsStatusSchema = z64.object({
29213
+ status: z64.string(),
29214
+ timestamp: z64.iso.datetime(),
29215
+ total_endpoints: z64.int(),
29216
+ healthy: z64.int(),
29217
+ unhealthy: z64.int(),
29218
+ warnings: z64.int(),
29219
+ errors: z64.int(),
29220
+ skipped: z64.int(),
29221
+ endpoints: z64.array(EndpointSchema)
29206
29222
  });
29207
29223
 
29208
- // src/cfg/generated/_utils/schemas/HealthCheck.schema.ts
29224
+ // src/cfg/generated/_utils/schemas/ErrorResponse.schema.ts
29209
29225
  import { z as z65 } from "zod";
29210
- var HealthCheckSchema = z65.object({
29211
- status: z65.string(),
29212
- timestamp: z65.iso.datetime(),
29213
- service: z65.string(),
29214
- version: z65.string(),
29215
- checks: z65.record(z65.string(), z65.any()),
29216
- environment: z65.record(z65.string(), z65.any())
29226
+ var ErrorResponseSchema = z65.object({
29227
+ success: z65.boolean().optional(),
29228
+ message: z65.string()
29217
29229
  });
29218
29230
 
29219
- // src/cfg/generated/_utils/schemas/LeadSubmission.schema.ts
29231
+ // src/cfg/generated/_utils/schemas/HealthCheck.schema.ts
29220
29232
  import { z as z66 } from "zod";
29221
- var LeadSubmissionSchema = z66.object({
29222
- name: z66.string().max(200),
29223
- email: z66.email(),
29224
- company: z66.string().max(200).nullable().optional(),
29225
- company_site: z66.string().max(200).nullable().optional(),
29226
- contact_type: z66.nativeEnum(LeadSubmissionContactType).optional(),
29227
- contact_value: z66.string().max(200).nullable().optional(),
29228
- subject: z66.string().max(200).nullable().optional(),
29229
- message: z66.string(),
29230
- extra: z66.string().nullable().optional(),
29231
- site_url: z66.url()
29233
+ var HealthCheckSchema = z66.object({
29234
+ status: z66.string(),
29235
+ timestamp: z66.iso.datetime(),
29236
+ service: z66.string(),
29237
+ version: z66.string(),
29238
+ checks: z66.record(z66.string(), z66.any()),
29239
+ environment: z66.record(z66.string(), z66.any())
29232
29240
  });
29233
29241
 
29234
- // src/cfg/generated/_utils/schemas/LeadSubmissionError.schema.ts
29242
+ // src/cfg/generated/_utils/schemas/LeadSubmission.schema.ts
29235
29243
  import { z as z67 } from "zod";
29236
- var LeadSubmissionErrorSchema = z67.object({
29237
- success: z67.boolean(),
29238
- error: z67.string(),
29239
- details: z67.record(z67.string(), z67.any()).optional()
29244
+ var LeadSubmissionSchema = z67.object({
29245
+ name: z67.string().max(200),
29246
+ email: z67.email(),
29247
+ company: z67.string().max(200).nullable().optional(),
29248
+ company_site: z67.string().max(200).nullable().optional(),
29249
+ contact_type: z67.nativeEnum(LeadSubmissionContactType).optional(),
29250
+ contact_value: z67.string().max(200).nullable().optional(),
29251
+ subject: z67.string().max(200).nullable().optional(),
29252
+ message: z67.string(),
29253
+ extra: z67.string().nullable().optional(),
29254
+ site_url: z67.url()
29240
29255
  });
29241
29256
 
29242
- // src/cfg/generated/_utils/schemas/LeadSubmissionRequest.schema.ts
29257
+ // src/cfg/generated/_utils/schemas/LeadSubmissionError.schema.ts
29243
29258
  import { z as z68 } from "zod";
29244
- var LeadSubmissionRequestSchema = z68.object({
29245
- name: z68.string().min(1).max(200),
29246
- email: z68.email(),
29247
- company: z68.string().max(200).nullable().optional(),
29248
- company_site: z68.string().max(200).nullable().optional(),
29249
- contact_type: z68.nativeEnum(LeadSubmissionRequestContactType).optional(),
29250
- contact_value: z68.string().max(200).nullable().optional(),
29251
- subject: z68.string().max(200).nullable().optional(),
29252
- message: z68.string().min(1),
29253
- extra: z68.string().nullable().optional(),
29254
- site_url: z68.url()
29259
+ var LeadSubmissionErrorSchema = z68.object({
29260
+ success: z68.boolean(),
29261
+ error: z68.string(),
29262
+ details: z68.record(z68.string(), z68.any()).optional()
29255
29263
  });
29256
29264
 
29257
- // src/cfg/generated/_utils/schemas/LeadSubmissionResponse.schema.ts
29265
+ // src/cfg/generated/_utils/schemas/LeadSubmissionRequest.schema.ts
29258
29266
  import { z as z69 } from "zod";
29259
- var LeadSubmissionResponseSchema = z69.object({
29260
- success: z69.boolean(),
29261
- message: z69.string(),
29262
- lead_id: z69.int()
29267
+ var LeadSubmissionRequestSchema = z69.object({
29268
+ name: z69.string().min(1).max(200),
29269
+ email: z69.email(),
29270
+ company: z69.string().max(200).nullable().optional(),
29271
+ company_site: z69.string().max(200).nullable().optional(),
29272
+ contact_type: z69.nativeEnum(LeadSubmissionRequestContactType).optional(),
29273
+ contact_value: z69.string().max(200).nullable().optional(),
29274
+ subject: z69.string().max(200).nullable().optional(),
29275
+ message: z69.string().min(1),
29276
+ extra: z69.string().nullable().optional(),
29277
+ site_url: z69.url()
29278
+ });
29279
+
29280
+ // src/cfg/generated/_utils/schemas/LeadSubmissionResponse.schema.ts
29281
+ import { z as z70 } from "zod";
29282
+ var LeadSubmissionResponseSchema = z70.object({
29283
+ success: z70.boolean(),
29284
+ message: z70.string(),
29285
+ lead_id: z70.int()
29263
29286
  });
29264
29287
 
29265
29288
  // src/cfg/generated/_utils/schemas/Message.schema.ts
29266
- import { z as z71 } from "zod";
29289
+ import { z as z72 } from "zod";
29267
29290
 
29268
29291
  // src/cfg/generated/_utils/schemas/Sender.schema.ts
29269
- import { z as z70 } from "zod";
29270
- var SenderSchema = z70.object({
29271
- id: z70.int(),
29272
- display_username: z70.string(),
29273
- email: z70.email(),
29274
- avatar: z70.string().nullable(),
29275
- initials: z70.string(),
29276
- is_staff: z70.boolean(),
29277
- is_superuser: z70.boolean()
29292
+ import { z as z71 } from "zod";
29293
+ var SenderSchema = z71.object({
29294
+ id: z71.int(),
29295
+ display_username: z71.string(),
29296
+ email: z71.email(),
29297
+ avatar: z71.string().nullable(),
29298
+ initials: z71.string(),
29299
+ is_staff: z71.boolean(),
29300
+ is_superuser: z71.boolean()
29278
29301
  });
29279
29302
 
29280
29303
  // src/cfg/generated/_utils/schemas/Message.schema.ts
29281
- var MessageSchema = z71.object({
29282
- uuid: z71.uuid(),
29283
- ticket: z71.uuid(),
29304
+ var MessageSchema = z72.object({
29305
+ uuid: z72.uuid(),
29306
+ ticket: z72.uuid(),
29284
29307
  sender: SenderSchema,
29285
- is_from_author: z71.boolean(),
29286
- text: z71.string(),
29287
- created_at: z71.iso.datetime()
29308
+ is_from_author: z72.boolean(),
29309
+ text: z72.string(),
29310
+ created_at: z72.iso.datetime()
29288
29311
  });
29289
29312
 
29290
29313
  // src/cfg/generated/_utils/schemas/MessageCreate.schema.ts
29291
- import { z as z72 } from "zod";
29292
- var MessageCreateSchema = z72.object({
29293
- text: z72.string()
29294
- });
29295
-
29296
- // src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
29297
29314
  import { z as z73 } from "zod";
29298
- var MessageCreateRequestSchema = z73.object({
29299
- text: z73.string().min(1)
29315
+ var MessageCreateSchema = z73.object({
29316
+ text: z73.string()
29300
29317
  });
29301
29318
 
29302
- // src/cfg/generated/_utils/schemas/MessageRequest.schema.ts
29319
+ // src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
29303
29320
  import { z as z74 } from "zod";
29304
- var MessageRequestSchema = z74.object({
29321
+ var MessageCreateRequestSchema = z74.object({
29305
29322
  text: z74.string().min(1)
29306
29323
  });
29307
29324
 
29308
- // src/cfg/generated/_utils/schemas/Network.schema.ts
29325
+ // src/cfg/generated/_utils/schemas/MessageRequest.schema.ts
29309
29326
  import { z as z75 } from "zod";
29310
- var NetworkSchema = z75.object({
29311
- id: z75.int(),
29312
- currency: CurrencyListSchema,
29313
- name: z75.string(),
29314
- code: z75.string(),
29315
- is_active: z75.boolean(),
29316
- created_at: z75.iso.datetime(),
29317
- updated_at: z75.iso.datetime()
29327
+ var MessageRequestSchema = z75.object({
29328
+ text: z75.string().min(1)
29318
29329
  });
29319
29330
 
29320
- // src/cfg/generated/_utils/schemas/Newsletter.schema.ts
29331
+ // src/cfg/generated/_utils/schemas/Network.schema.ts
29321
29332
  import { z as z76 } from "zod";
29322
- var NewsletterSchema = z76.object({
29333
+ var NetworkSchema = z76.object({
29323
29334
  id: z76.int(),
29324
- title: z76.string().max(255),
29325
- description: z76.string().optional(),
29326
- is_active: z76.boolean().optional(),
29327
- auto_subscribe: z76.boolean().optional(),
29335
+ currency: CurrencyListSchema.nullable(),
29336
+ name: z76.string(),
29337
+ code: z76.string(),
29338
+ is_active: z76.boolean(),
29328
29339
  created_at: z76.iso.datetime(),
29329
- updated_at: z76.iso.datetime(),
29330
- subscribers_count: z76.int()
29340
+ updated_at: z76.iso.datetime()
29331
29341
  });
29332
29342
 
29333
- // src/cfg/generated/_utils/schemas/NewsletterCampaign.schema.ts
29343
+ // src/cfg/generated/_utils/schemas/Newsletter.schema.ts
29334
29344
  import { z as z77 } from "zod";
29335
- var NewsletterCampaignSchema = z77.object({
29345
+ var NewsletterSchema = z77.object({
29336
29346
  id: z77.int(),
29337
- newsletter: z77.int(),
29338
- newsletter_title: z77.string(),
29339
- subject: z77.string().max(255),
29340
- email_title: z77.string().max(255),
29341
- main_text: z77.string(),
29342
- main_html_content: z77.string().optional(),
29343
- button_text: z77.string().max(100).optional(),
29344
- button_url: z77.url().optional(),
29345
- secondary_text: z77.string().optional(),
29346
- status: z77.nativeEnum(NewsletterCampaignStatus),
29347
+ title: z77.string().max(255),
29348
+ description: z77.string().optional(),
29349
+ is_active: z77.boolean().optional(),
29350
+ auto_subscribe: z77.boolean().optional(),
29347
29351
  created_at: z77.iso.datetime(),
29348
- sent_at: z77.iso.datetime().nullable(),
29349
- recipient_count: z77.int()
29352
+ updated_at: z77.iso.datetime(),
29353
+ subscribers_count: z77.int()
29350
29354
  });
29351
29355
 
29352
- // src/cfg/generated/_utils/schemas/NewsletterCampaignRequest.schema.ts
29356
+ // src/cfg/generated/_utils/schemas/NewsletterCampaign.schema.ts
29353
29357
  import { z as z78 } from "zod";
29354
- var NewsletterCampaignRequestSchema = z78.object({
29358
+ var NewsletterCampaignSchema = z78.object({
29359
+ id: z78.int(),
29355
29360
  newsletter: z78.int(),
29356
- subject: z78.string().min(1).max(255),
29357
- email_title: z78.string().min(1).max(255),
29358
- main_text: z78.string().min(1),
29361
+ newsletter_title: z78.string(),
29362
+ subject: z78.string().max(255),
29363
+ email_title: z78.string().max(255),
29364
+ main_text: z78.string(),
29359
29365
  main_html_content: z78.string().optional(),
29360
29366
  button_text: z78.string().max(100).optional(),
29361
29367
  button_url: z78.url().optional(),
29362
- secondary_text: z78.string().optional()
29368
+ secondary_text: z78.string().optional(),
29369
+ status: z78.nativeEnum(NewsletterCampaignStatus),
29370
+ created_at: z78.iso.datetime(),
29371
+ sent_at: z78.iso.datetime().nullable(),
29372
+ recipient_count: z78.int()
29363
29373
  });
29364
29374
 
29365
- // src/cfg/generated/_utils/schemas/NewsletterSubscription.schema.ts
29375
+ // src/cfg/generated/_utils/schemas/NewsletterCampaignRequest.schema.ts
29366
29376
  import { z as z79 } from "zod";
29367
- var NewsletterSubscriptionSchema = z79.object({
29368
- id: z79.int(),
29377
+ var NewsletterCampaignRequestSchema = z79.object({
29369
29378
  newsletter: z79.int(),
29370
- newsletter_title: z79.string(),
29371
- user: z79.int().nullable().optional(),
29372
- user_email: z79.string(),
29373
- email: z79.email(),
29374
- is_active: z79.boolean().optional(),
29375
- subscribed_at: z79.iso.datetime(),
29376
- unsubscribed_at: z79.iso.datetime().nullable()
29379
+ subject: z79.string().min(1).max(255),
29380
+ email_title: z79.string().min(1).max(255),
29381
+ main_text: z79.string().min(1),
29382
+ main_html_content: z79.string().optional(),
29383
+ button_text: z79.string().max(100).optional(),
29384
+ button_url: z79.url().optional(),
29385
+ secondary_text: z79.string().optional()
29377
29386
  });
29378
29387
 
29379
- // src/cfg/generated/_utils/schemas/OTPErrorResponse.schema.ts
29388
+ // src/cfg/generated/_utils/schemas/NewsletterSubscription.schema.ts
29380
29389
  import { z as z80 } from "zod";
29381
- var OTPErrorResponseSchema = z80.object({
29382
- error: z80.string()
29390
+ var NewsletterSubscriptionSchema = z80.object({
29391
+ id: z80.int(),
29392
+ newsletter: z80.int(),
29393
+ newsletter_title: z80.string(),
29394
+ user: z80.int().nullable().optional(),
29395
+ user_email: z80.string(),
29396
+ email: z80.email(),
29397
+ is_active: z80.boolean().optional(),
29398
+ subscribed_at: z80.iso.datetime(),
29399
+ unsubscribed_at: z80.iso.datetime().nullable()
29383
29400
  });
29384
29401
 
29385
- // src/cfg/generated/_utils/schemas/OTPRequestRequest.schema.ts
29402
+ // src/cfg/generated/_utils/schemas/OTPErrorResponse.schema.ts
29386
29403
  import { z as z81 } from "zod";
29387
- var OTPRequestRequestSchema = z81.object({
29388
- identifier: z81.string().min(1),
29389
- channel: z81.nativeEnum(OTPRequestRequestChannel).optional(),
29390
- source_url: z81.url().optional()
29404
+ var OTPErrorResponseSchema = z81.object({
29405
+ error: z81.string()
29391
29406
  });
29392
29407
 
29393
- // src/cfg/generated/_utils/schemas/OTPRequestResponse.schema.ts
29408
+ // src/cfg/generated/_utils/schemas/OTPRequestRequest.schema.ts
29394
29409
  import { z as z82 } from "zod";
29395
- var OTPRequestResponseSchema = z82.object({
29396
- message: z82.string()
29410
+ var OTPRequestRequestSchema = z82.object({
29411
+ identifier: z82.string().min(1),
29412
+ channel: z82.nativeEnum(OTPRequestRequestChannel).optional(),
29413
+ source_url: z82.url().optional()
29397
29414
  });
29398
29415
 
29399
- // src/cfg/generated/_utils/schemas/OTPVerifyRequest.schema.ts
29416
+ // src/cfg/generated/_utils/schemas/OTPRequestResponse.schema.ts
29400
29417
  import { z as z83 } from "zod";
29401
- var OTPVerifyRequestSchema = z83.object({
29402
- identifier: z83.string().min(1),
29403
- otp: z83.string().min(6).max(6),
29404
- channel: z83.nativeEnum(OTPVerifyRequestChannel).optional(),
29405
- source_url: z83.url().optional()
29418
+ var OTPRequestResponseSchema = z83.object({
29419
+ message: z83.string()
29420
+ });
29421
+
29422
+ // src/cfg/generated/_utils/schemas/OTPVerifyRequest.schema.ts
29423
+ import { z as z84 } from "zod";
29424
+ var OTPVerifyRequestSchema = z84.object({
29425
+ identifier: z84.string().min(1),
29426
+ otp: z84.string().min(6).max(6),
29427
+ channel: z84.nativeEnum(OTPVerifyRequestChannel).optional(),
29428
+ source_url: z84.url().optional()
29406
29429
  });
29407
29430
 
29408
29431
  // src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
29409
- import { z as z85 } from "zod";
29432
+ import { z as z86 } from "zod";
29410
29433
 
29411
29434
  // src/cfg/generated/_utils/schemas/User.schema.ts
29412
- import { z as z84 } from "zod";
29413
- var UserSchema = z84.object({
29414
- id: z84.int(),
29415
- email: z84.email(),
29416
- first_name: z84.string().max(50).optional(),
29417
- last_name: z84.string().max(50).optional(),
29418
- full_name: z84.string(),
29419
- initials: z84.string(),
29420
- display_username: z84.string(),
29421
- company: z84.string().max(100).optional(),
29422
- phone: z84.string().max(20).optional(),
29423
- position: z84.string().max(100).optional(),
29424
- avatar: z84.url().nullable(),
29425
- is_staff: z84.boolean(),
29426
- is_superuser: z84.boolean(),
29427
- date_joined: z84.iso.datetime(),
29428
- last_login: z84.iso.datetime().nullable(),
29429
- unanswered_messages_count: z84.int()
29435
+ import { z as z85 } from "zod";
29436
+ var UserSchema = z85.object({
29437
+ id: z85.int(),
29438
+ email: z85.email(),
29439
+ first_name: z85.string().max(50).optional(),
29440
+ last_name: z85.string().max(50).optional(),
29441
+ full_name: z85.string(),
29442
+ initials: z85.string(),
29443
+ display_username: z85.string(),
29444
+ company: z85.string().max(100).optional(),
29445
+ phone: z85.string().max(20).optional(),
29446
+ position: z85.string().max(100).optional(),
29447
+ avatar: z85.url().nullable(),
29448
+ is_staff: z85.boolean(),
29449
+ is_superuser: z85.boolean(),
29450
+ date_joined: z85.iso.datetime(),
29451
+ last_login: z85.iso.datetime().nullable(),
29452
+ unanswered_messages_count: z85.int()
29430
29453
  });
29431
29454
 
29432
29455
  // src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
29433
- var OTPVerifyResponseSchema = z85.object({
29434
- refresh: z85.string(),
29435
- access: z85.string(),
29456
+ var OTPVerifyResponseSchema = z86.object({
29457
+ refresh: z86.string(),
29458
+ access: z86.string(),
29436
29459
  user: UserSchema
29437
29460
  });
29438
29461
 
29439
29462
  // src/cfg/generated/_utils/schemas/PaginatedAPIKeyListList.schema.ts
29440
- import { z as z86 } from "zod";
29441
- var PaginatedAPIKeyListListSchema = z86.object({
29442
- count: z86.int(),
29443
- page: z86.int(),
29444
- pages: z86.int(),
29445
- page_size: z86.int(),
29446
- has_next: z86.boolean(),
29447
- has_previous: z86.boolean(),
29448
- next_page: z86.int().nullable().optional(),
29449
- previous_page: z86.int().nullable().optional(),
29450
- results: z86.array(APIKeyListSchema)
29451
- });
29452
-
29453
- // src/cfg/generated/_utils/schemas/PaginatedAdminPaymentListList.schema.ts
29454
29463
  import { z as z87 } from "zod";
29455
- var PaginatedAdminPaymentListListSchema = z87.object({
29464
+ var PaginatedAPIKeyListListSchema = z87.object({
29456
29465
  count: z87.int(),
29457
29466
  page: z87.int(),
29458
29467
  pages: z87.int(),
@@ -29461,12 +29470,12 @@ var PaginatedAdminPaymentListListSchema = z87.object({
29461
29470
  has_previous: z87.boolean(),
29462
29471
  next_page: z87.int().nullable().optional(),
29463
29472
  previous_page: z87.int().nullable().optional(),
29464
- results: z87.array(AdminPaymentListSchema)
29473
+ results: z87.array(APIKeyListSchema)
29465
29474
  });
29466
29475
 
29467
- // src/cfg/generated/_utils/schemas/PaginatedAdminPaymentStatsList.schema.ts
29476
+ // src/cfg/generated/_utils/schemas/PaginatedAdminPaymentListList.schema.ts
29468
29477
  import { z as z88 } from "zod";
29469
- var PaginatedAdminPaymentStatsListSchema = z88.object({
29478
+ var PaginatedAdminPaymentListListSchema = z88.object({
29470
29479
  count: z88.int(),
29471
29480
  page: z88.int(),
29472
29481
  pages: z88.int(),
@@ -29475,12 +29484,12 @@ var PaginatedAdminPaymentStatsListSchema = z88.object({
29475
29484
  has_previous: z88.boolean(),
29476
29485
  next_page: z88.int().nullable().optional(),
29477
29486
  previous_page: z88.int().nullable().optional(),
29478
- results: z88.array(AdminPaymentStatsSchema)
29487
+ results: z88.array(AdminPaymentListSchema)
29479
29488
  });
29480
29489
 
29481
- // src/cfg/generated/_utils/schemas/PaginatedAdminUserList.schema.ts
29490
+ // src/cfg/generated/_utils/schemas/PaginatedAdminPaymentStatsList.schema.ts
29482
29491
  import { z as z89 } from "zod";
29483
- var PaginatedAdminUserListSchema = z89.object({
29492
+ var PaginatedAdminPaymentStatsListSchema = z89.object({
29484
29493
  count: z89.int(),
29485
29494
  page: z89.int(),
29486
29495
  pages: z89.int(),
@@ -29489,12 +29498,12 @@ var PaginatedAdminUserListSchema = z89.object({
29489
29498
  has_previous: z89.boolean(),
29490
29499
  next_page: z89.int().nullable().optional(),
29491
29500
  previous_page: z89.int().nullable().optional(),
29492
- results: z89.array(AdminUserSchema)
29501
+ results: z89.array(AdminPaymentStatsSchema)
29493
29502
  });
29494
29503
 
29495
- // src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts
29504
+ // src/cfg/generated/_utils/schemas/PaginatedAdminUserList.schema.ts
29496
29505
  import { z as z90 } from "zod";
29497
- var PaginatedArchiveItemChunkListSchema = z90.object({
29506
+ var PaginatedAdminUserListSchema = z90.object({
29498
29507
  count: z90.int(),
29499
29508
  page: z90.int(),
29500
29509
  pages: z90.int(),
@@ -29503,12 +29512,12 @@ var PaginatedArchiveItemChunkListSchema = z90.object({
29503
29512
  has_previous: z90.boolean(),
29504
29513
  next_page: z90.int().nullable().optional(),
29505
29514
  previous_page: z90.int().nullable().optional(),
29506
- results: z90.array(ArchiveItemChunkSchema)
29515
+ results: z90.array(AdminUserSchema)
29507
29516
  });
29508
29517
 
29509
- // src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts
29518
+ // src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts
29510
29519
  import { z as z91 } from "zod";
29511
- var PaginatedArchiveItemListSchema = z91.object({
29520
+ var PaginatedArchiveItemChunkListSchema = z91.object({
29512
29521
  count: z91.int(),
29513
29522
  page: z91.int(),
29514
29523
  pages: z91.int(),
@@ -29517,12 +29526,12 @@ var PaginatedArchiveItemListSchema = z91.object({
29517
29526
  has_previous: z91.boolean(),
29518
29527
  next_page: z91.int().nullable().optional(),
29519
29528
  previous_page: z91.int().nullable().optional(),
29520
- results: z91.array(ArchiveItemSchema)
29529
+ results: z91.array(ArchiveItemChunkSchema)
29521
29530
  });
29522
29531
 
29523
- // src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts
29532
+ // src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts
29524
29533
  import { z as z92 } from "zod";
29525
- var PaginatedArchiveSearchResultListSchema = z92.object({
29534
+ var PaginatedArchiveItemListSchema = z92.object({
29526
29535
  count: z92.int(),
29527
29536
  page: z92.int(),
29528
29537
  pages: z92.int(),
@@ -29531,12 +29540,12 @@ var PaginatedArchiveSearchResultListSchema = z92.object({
29531
29540
  has_previous: z92.boolean(),
29532
29541
  next_page: z92.int().nullable().optional(),
29533
29542
  previous_page: z92.int().nullable().optional(),
29534
- results: z92.array(ArchiveSearchResultSchema)
29543
+ results: z92.array(ArchiveItemSchema)
29535
29544
  });
29536
29545
 
29537
- // src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts
29546
+ // src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts
29538
29547
  import { z as z93 } from "zod";
29539
- var PaginatedChatResponseListSchema = z93.object({
29548
+ var PaginatedArchiveSearchResultListSchema = z93.object({
29540
29549
  count: z93.int(),
29541
29550
  page: z93.int(),
29542
29551
  pages: z93.int(),
@@ -29545,12 +29554,12 @@ var PaginatedChatResponseListSchema = z93.object({
29545
29554
  has_previous: z93.boolean(),
29546
29555
  next_page: z93.int().nullable().optional(),
29547
29556
  previous_page: z93.int().nullable().optional(),
29548
- results: z93.array(ChatResponseSchema)
29557
+ results: z93.array(ArchiveSearchResultSchema)
29549
29558
  });
29550
29559
 
29551
- // src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts
29560
+ // src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts
29552
29561
  import { z as z94 } from "zod";
29553
- var PaginatedChatSessionListSchema = z94.object({
29562
+ var PaginatedChatResponseListSchema = z94.object({
29554
29563
  count: z94.int(),
29555
29564
  page: z94.int(),
29556
29565
  pages: z94.int(),
@@ -29559,12 +29568,12 @@ var PaginatedChatSessionListSchema = z94.object({
29559
29568
  has_previous: z94.boolean(),
29560
29569
  next_page: z94.int().nullable().optional(),
29561
29570
  previous_page: z94.int().nullable().optional(),
29562
- results: z94.array(ChatSessionSchema)
29571
+ results: z94.array(ChatResponseSchema)
29563
29572
  });
29564
29573
 
29565
- // src/cfg/generated/_utils/schemas/PaginatedCurrencyListList.schema.ts
29574
+ // src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts
29566
29575
  import { z as z95 } from "zod";
29567
- var PaginatedCurrencyListListSchema = z95.object({
29576
+ var PaginatedChatSessionListSchema = z95.object({
29568
29577
  count: z95.int(),
29569
29578
  page: z95.int(),
29570
29579
  pages: z95.int(),
@@ -29573,12 +29582,12 @@ var PaginatedCurrencyListListSchema = z95.object({
29573
29582
  has_previous: z95.boolean(),
29574
29583
  next_page: z95.int().nullable().optional(),
29575
29584
  previous_page: z95.int().nullable().optional(),
29576
- results: z95.array(CurrencyListSchema)
29585
+ results: z95.array(ChatSessionSchema)
29577
29586
  });
29578
29587
 
29579
- // src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts
29588
+ // src/cfg/generated/_utils/schemas/PaginatedCurrencyListList.schema.ts
29580
29589
  import { z as z96 } from "zod";
29581
- var PaginatedDocumentArchiveListListSchema = z96.object({
29590
+ var PaginatedCurrencyListListSchema = z96.object({
29582
29591
  count: z96.int(),
29583
29592
  page: z96.int(),
29584
29593
  pages: z96.int(),
@@ -29587,12 +29596,12 @@ var PaginatedDocumentArchiveListListSchema = z96.object({
29587
29596
  has_previous: z96.boolean(),
29588
29597
  next_page: z96.int().nullable().optional(),
29589
29598
  previous_page: z96.int().nullable().optional(),
29590
- results: z96.array(DocumentArchiveListSchema)
29599
+ results: z96.array(CurrencyListSchema)
29591
29600
  });
29592
29601
 
29593
- // src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts
29602
+ // src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts
29594
29603
  import { z as z97 } from "zod";
29595
- var PaginatedDocumentListSchema = z97.object({
29604
+ var PaginatedDocumentArchiveListListSchema = z97.object({
29596
29605
  count: z97.int(),
29597
29606
  page: z97.int(),
29598
29607
  pages: z97.int(),
@@ -29601,12 +29610,12 @@ var PaginatedDocumentListSchema = z97.object({
29601
29610
  has_previous: z97.boolean(),
29602
29611
  next_page: z97.int().nullable().optional(),
29603
29612
  previous_page: z97.int().nullable().optional(),
29604
- results: z97.array(DocumentSchema)
29613
+ results: z97.array(DocumentArchiveListSchema)
29605
29614
  });
29606
29615
 
29607
- // src/cfg/generated/_utils/schemas/PaginatedEmailLogList.schema.ts
29616
+ // src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts
29608
29617
  import { z as z98 } from "zod";
29609
- var PaginatedEmailLogListSchema = z98.object({
29618
+ var PaginatedDocumentListSchema = z98.object({
29610
29619
  count: z98.int(),
29611
29620
  page: z98.int(),
29612
29621
  pages: z98.int(),
@@ -29615,12 +29624,12 @@ var PaginatedEmailLogListSchema = z98.object({
29615
29624
  has_previous: z98.boolean(),
29616
29625
  next_page: z98.int().nullable().optional(),
29617
29626
  previous_page: z98.int().nullable().optional(),
29618
- results: z98.array(EmailLogSchema)
29627
+ results: z98.array(DocumentSchema)
29619
29628
  });
29620
29629
 
29621
- // src/cfg/generated/_utils/schemas/PaginatedEndpointGroupList.schema.ts
29630
+ // src/cfg/generated/_utils/schemas/PaginatedEmailLogList.schema.ts
29622
29631
  import { z as z99 } from "zod";
29623
- var PaginatedEndpointGroupListSchema = z99.object({
29632
+ var PaginatedEmailLogListSchema = z99.object({
29624
29633
  count: z99.int(),
29625
29634
  page: z99.int(),
29626
29635
  pages: z99.int(),
@@ -29629,12 +29638,12 @@ var PaginatedEndpointGroupListSchema = z99.object({
29629
29638
  has_previous: z99.boolean(),
29630
29639
  next_page: z99.int().nullable().optional(),
29631
29640
  previous_page: z99.int().nullable().optional(),
29632
- results: z99.array(EndpointGroupSchema)
29641
+ results: z99.array(EmailLogSchema)
29633
29642
  });
29634
29643
 
29635
- // src/cfg/generated/_utils/schemas/PaginatedLeadSubmissionList.schema.ts
29644
+ // src/cfg/generated/_utils/schemas/PaginatedEndpointGroupList.schema.ts
29636
29645
  import { z as z100 } from "zod";
29637
- var PaginatedLeadSubmissionListSchema = z100.object({
29646
+ var PaginatedEndpointGroupListSchema = z100.object({
29638
29647
  count: z100.int(),
29639
29648
  page: z100.int(),
29640
29649
  pages: z100.int(),
@@ -29643,12 +29652,12 @@ var PaginatedLeadSubmissionListSchema = z100.object({
29643
29652
  has_previous: z100.boolean(),
29644
29653
  next_page: z100.int().nullable().optional(),
29645
29654
  previous_page: z100.int().nullable().optional(),
29646
- results: z100.array(LeadSubmissionSchema)
29655
+ results: z100.array(EndpointGroupSchema)
29647
29656
  });
29648
29657
 
29649
- // src/cfg/generated/_utils/schemas/PaginatedMessageList.schema.ts
29658
+ // src/cfg/generated/_utils/schemas/PaginatedLeadSubmissionList.schema.ts
29650
29659
  import { z as z101 } from "zod";
29651
- var PaginatedMessageListSchema = z101.object({
29660
+ var PaginatedLeadSubmissionListSchema = z101.object({
29652
29661
  count: z101.int(),
29653
29662
  page: z101.int(),
29654
29663
  pages: z101.int(),
@@ -29657,12 +29666,12 @@ var PaginatedMessageListSchema = z101.object({
29657
29666
  has_previous: z101.boolean(),
29658
29667
  next_page: z101.int().nullable().optional(),
29659
29668
  previous_page: z101.int().nullable().optional(),
29660
- results: z101.array(MessageSchema)
29669
+ results: z101.array(LeadSubmissionSchema)
29661
29670
  });
29662
29671
 
29663
- // src/cfg/generated/_utils/schemas/PaginatedNetworkList.schema.ts
29672
+ // src/cfg/generated/_utils/schemas/PaginatedMessageList.schema.ts
29664
29673
  import { z as z102 } from "zod";
29665
- var PaginatedNetworkListSchema = z102.object({
29674
+ var PaginatedMessageListSchema = z102.object({
29666
29675
  count: z102.int(),
29667
29676
  page: z102.int(),
29668
29677
  pages: z102.int(),
@@ -29671,12 +29680,12 @@ var PaginatedNetworkListSchema = z102.object({
29671
29680
  has_previous: z102.boolean(),
29672
29681
  next_page: z102.int().nullable().optional(),
29673
29682
  previous_page: z102.int().nullable().optional(),
29674
- results: z102.array(NetworkSchema)
29683
+ results: z102.array(MessageSchema)
29675
29684
  });
29676
29685
 
29677
- // src/cfg/generated/_utils/schemas/PaginatedNewsletterCampaignList.schema.ts
29686
+ // src/cfg/generated/_utils/schemas/PaginatedNetworkList.schema.ts
29678
29687
  import { z as z103 } from "zod";
29679
- var PaginatedNewsletterCampaignListSchema = z103.object({
29688
+ var PaginatedNetworkListSchema = z103.object({
29680
29689
  count: z103.int(),
29681
29690
  page: z103.int(),
29682
29691
  pages: z103.int(),
@@ -29685,12 +29694,12 @@ var PaginatedNewsletterCampaignListSchema = z103.object({
29685
29694
  has_previous: z103.boolean(),
29686
29695
  next_page: z103.int().nullable().optional(),
29687
29696
  previous_page: z103.int().nullable().optional(),
29688
- results: z103.array(NewsletterCampaignSchema)
29697
+ results: z103.array(NetworkSchema)
29689
29698
  });
29690
29699
 
29691
- // src/cfg/generated/_utils/schemas/PaginatedNewsletterList.schema.ts
29700
+ // src/cfg/generated/_utils/schemas/PaginatedNewsletterCampaignList.schema.ts
29692
29701
  import { z as z104 } from "zod";
29693
- var PaginatedNewsletterListSchema = z104.object({
29702
+ var PaginatedNewsletterCampaignListSchema = z104.object({
29694
29703
  count: z104.int(),
29695
29704
  page: z104.int(),
29696
29705
  pages: z104.int(),
@@ -29699,12 +29708,12 @@ var PaginatedNewsletterListSchema = z104.object({
29699
29708
  has_previous: z104.boolean(),
29700
29709
  next_page: z104.int().nullable().optional(),
29701
29710
  previous_page: z104.int().nullable().optional(),
29702
- results: z104.array(NewsletterSchema)
29711
+ results: z104.array(NewsletterCampaignSchema)
29703
29712
  });
29704
29713
 
29705
- // src/cfg/generated/_utils/schemas/PaginatedNewsletterSubscriptionList.schema.ts
29714
+ // src/cfg/generated/_utils/schemas/PaginatedNewsletterList.schema.ts
29706
29715
  import { z as z105 } from "zod";
29707
- var PaginatedNewsletterSubscriptionListSchema = z105.object({
29716
+ var PaginatedNewsletterListSchema = z105.object({
29708
29717
  count: z105.int(),
29709
29718
  page: z105.int(),
29710
29719
  pages: z105.int(),
@@ -29713,1056 +29722,1076 @@ var PaginatedNewsletterSubscriptionListSchema = z105.object({
29713
29722
  has_previous: z105.boolean(),
29714
29723
  next_page: z105.int().nullable().optional(),
29715
29724
  previous_page: z105.int().nullable().optional(),
29716
- results: z105.array(NewsletterSubscriptionSchema)
29725
+ results: z105.array(NewsletterSchema)
29726
+ });
29727
+
29728
+ // src/cfg/generated/_utils/schemas/PaginatedNewsletterSubscriptionList.schema.ts
29729
+ import { z as z106 } from "zod";
29730
+ var PaginatedNewsletterSubscriptionListSchema = z106.object({
29731
+ count: z106.int(),
29732
+ page: z106.int(),
29733
+ pages: z106.int(),
29734
+ page_size: z106.int(),
29735
+ has_next: z106.boolean(),
29736
+ has_previous: z106.boolean(),
29737
+ next_page: z106.int().nullable().optional(),
29738
+ previous_page: z106.int().nullable().optional(),
29739
+ results: z106.array(NewsletterSubscriptionSchema)
29717
29740
  });
29718
29741
 
29719
29742
  // src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
29720
- import { z as z107 } from "zod";
29743
+ import { z as z108 } from "zod";
29721
29744
 
29722
29745
  // src/cfg/generated/_utils/schemas/PaymentList.schema.ts
29723
- import { z as z106 } from "zod";
29724
- var PaymentListSchema = z106.object({
29725
- id: z106.uuid(),
29726
- amount_usd: z106.number(),
29727
- currency: z106.int(),
29728
- provider: z106.nativeEnum(PaymentListProvider),
29729
- status: z106.nativeEnum(PaymentListStatus),
29730
- status_display: z106.string(),
29731
- amount_display: z106.string(),
29732
- created_at: z106.iso.datetime(),
29733
- expires_at: z106.iso.datetime().nullable()
29746
+ import { z as z107 } from "zod";
29747
+ var PaymentListSchema = z107.object({
29748
+ id: z107.uuid(),
29749
+ amount_usd: z107.number(),
29750
+ currency: z107.int(),
29751
+ provider: z107.nativeEnum(PaymentListProvider),
29752
+ status: z107.nativeEnum(PaymentListStatus),
29753
+ status_display: z107.string(),
29754
+ amount_display: z107.string(),
29755
+ created_at: z107.iso.datetime(),
29756
+ expires_at: z107.iso.datetime().nullable()
29734
29757
  });
29735
29758
 
29736
29759
  // src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
29737
- var PaginatedPaymentListListSchema = z107.object({
29738
- count: z107.int(),
29739
- page: z107.int(),
29740
- pages: z107.int(),
29741
- page_size: z107.int(),
29742
- has_next: z107.boolean(),
29743
- has_previous: z107.boolean(),
29744
- next_page: z107.int().nullable().optional(),
29745
- previous_page: z107.int().nullable().optional(),
29746
- results: z107.array(PaymentListSchema)
29760
+ var PaginatedPaymentListListSchema = z108.object({
29761
+ count: z108.int(),
29762
+ page: z108.int(),
29763
+ pages: z108.int(),
29764
+ page_size: z108.int(),
29765
+ has_next: z108.boolean(),
29766
+ has_previous: z108.boolean(),
29767
+ next_page: z108.int().nullable().optional(),
29768
+ previous_page: z108.int().nullable().optional(),
29769
+ results: z108.array(PaymentListSchema)
29747
29770
  });
29748
29771
 
29749
29772
  // src/cfg/generated/_utils/schemas/PaginatedProviderCurrencyList.schema.ts
29750
- import { z as z109 } from "zod";
29773
+ import { z as z110 } from "zod";
29751
29774
 
29752
29775
  // src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts
29753
- import { z as z108 } from "zod";
29754
- var ProviderCurrencySchema = z108.object({
29755
- id: z108.int(),
29776
+ import { z as z109 } from "zod";
29777
+ var ProviderCurrencySchema = z109.object({
29778
+ id: z109.int(),
29756
29779
  currency: CurrencyListSchema,
29757
- network: NetworkSchema,
29758
- provider: z108.string(),
29759
- provider_currency_code: z108.string(),
29760
- provider_min_amount_usd: z108.number(),
29761
- provider_max_amount_usd: z108.number(),
29762
- provider_fee_percentage: z108.number(),
29763
- provider_fixed_fee_usd: z108.number(),
29764
- is_enabled: z108.boolean(),
29765
- created_at: z108.iso.datetime(),
29766
- updated_at: z108.iso.datetime()
29780
+ network: NetworkSchema.nullable(),
29781
+ provider: z109.string(),
29782
+ provider_currency_code: z109.string(),
29783
+ provider_min_amount_usd: z109.number(),
29784
+ provider_max_amount_usd: z109.number(),
29785
+ provider_fee_percentage: z109.number(),
29786
+ provider_fixed_fee_usd: z109.number(),
29787
+ is_enabled: z109.boolean(),
29788
+ created_at: z109.iso.datetime(),
29789
+ updated_at: z109.iso.datetime()
29767
29790
  });
29768
29791
 
29769
29792
  // src/cfg/generated/_utils/schemas/PaginatedProviderCurrencyList.schema.ts
29770
- var PaginatedProviderCurrencyListSchema = z109.object({
29771
- count: z109.int(),
29772
- page: z109.int(),
29773
- pages: z109.int(),
29774
- page_size: z109.int(),
29775
- has_next: z109.boolean(),
29776
- has_previous: z109.boolean(),
29777
- next_page: z109.int().nullable().optional(),
29778
- previous_page: z109.int().nullable().optional(),
29779
- results: z109.array(ProviderCurrencySchema)
29793
+ var PaginatedProviderCurrencyListSchema = z110.object({
29794
+ count: z110.int(),
29795
+ page: z110.int(),
29796
+ pages: z110.int(),
29797
+ page_size: z110.int(),
29798
+ has_next: z110.boolean(),
29799
+ has_previous: z110.boolean(),
29800
+ next_page: z110.int().nullable().optional(),
29801
+ previous_page: z110.int().nullable().optional(),
29802
+ results: z110.array(ProviderCurrencySchema)
29780
29803
  });
29781
29804
 
29782
29805
  // src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
29783
- import { z as z111 } from "zod";
29806
+ import { z as z112 } from "zod";
29784
29807
 
29785
29808
  // src/cfg/generated/_utils/schemas/PublicCategory.schema.ts
29786
- import { z as z110 } from "zod";
29787
- var PublicCategorySchema = z110.object({
29788
- id: z110.uuid(),
29789
- name: z110.string().max(255),
29790
- description: z110.string().optional()
29809
+ import { z as z111 } from "zod";
29810
+ var PublicCategorySchema = z111.object({
29811
+ id: z111.uuid(),
29812
+ name: z111.string().max(255),
29813
+ description: z111.string().optional()
29791
29814
  });
29792
29815
 
29793
29816
  // src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
29794
- var PaginatedPublicCategoryListSchema = z111.object({
29795
- count: z111.int(),
29796
- page: z111.int(),
29797
- pages: z111.int(),
29798
- page_size: z111.int(),
29799
- has_next: z111.boolean(),
29800
- has_previous: z111.boolean(),
29801
- next_page: z111.int().nullable().optional(),
29802
- previous_page: z111.int().nullable().optional(),
29803
- results: z111.array(PublicCategorySchema)
29817
+ var PaginatedPublicCategoryListSchema = z112.object({
29818
+ count: z112.int(),
29819
+ page: z112.int(),
29820
+ pages: z112.int(),
29821
+ page_size: z112.int(),
29822
+ has_next: z112.boolean(),
29823
+ has_previous: z112.boolean(),
29824
+ next_page: z112.int().nullable().optional(),
29825
+ previous_page: z112.int().nullable().optional(),
29826
+ results: z112.array(PublicCategorySchema)
29804
29827
  });
29805
29828
 
29806
29829
  // src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
29807
- import { z as z113 } from "zod";
29830
+ import { z as z114 } from "zod";
29808
29831
 
29809
29832
  // src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts
29810
- import { z as z112 } from "zod";
29811
- var PublicDocumentListSchema = z112.object({
29812
- id: z112.uuid(),
29813
- title: z112.string().max(512),
29833
+ import { z as z113 } from "zod";
29834
+ var PublicDocumentListSchema = z113.object({
29835
+ id: z113.uuid(),
29836
+ title: z113.string().max(512),
29814
29837
  category: PublicCategorySchema,
29815
- created_at: z112.iso.datetime(),
29816
- updated_at: z112.iso.datetime()
29838
+ created_at: z113.iso.datetime(),
29839
+ updated_at: z113.iso.datetime()
29817
29840
  });
29818
29841
 
29819
29842
  // src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
29820
- var PaginatedPublicDocumentListListSchema = z113.object({
29821
- count: z113.int(),
29822
- page: z113.int(),
29823
- pages: z113.int(),
29824
- page_size: z113.int(),
29825
- has_next: z113.boolean(),
29826
- has_previous: z113.boolean(),
29827
- next_page: z113.int().nullable().optional(),
29828
- previous_page: z113.int().nullable().optional(),
29829
- results: z113.array(PublicDocumentListSchema)
29843
+ var PaginatedPublicDocumentListListSchema = z114.object({
29844
+ count: z114.int(),
29845
+ page: z114.int(),
29846
+ pages: z114.int(),
29847
+ page_size: z114.int(),
29848
+ has_next: z114.boolean(),
29849
+ has_previous: z114.boolean(),
29850
+ next_page: z114.int().nullable().optional(),
29851
+ previous_page: z114.int().nullable().optional(),
29852
+ results: z114.array(PublicDocumentListSchema)
29830
29853
  });
29831
29854
 
29832
29855
  // src/cfg/generated/_utils/schemas/PaginatedRecentPaymentList.schema.ts
29833
- import { z as z115 } from "zod";
29856
+ import { z as z116 } from "zod";
29834
29857
 
29835
29858
  // src/cfg/generated/_utils/schemas/RecentPayment.schema.ts
29836
- import { z as z114 } from "zod";
29837
- var RecentPaymentSchema = z114.object({
29838
- id: z114.uuid(),
29839
- internal_payment_id: z114.string(),
29840
- amount_usd: z114.number(),
29841
- amount_display: z114.string(),
29842
- currency_code: z114.string(),
29843
- status: z114.string(),
29844
- status_display: z114.string(),
29845
- status_color: z114.string(),
29846
- provider: z114.string(),
29847
- created_at: z114.iso.datetime(),
29848
- completed_at: z114.iso.datetime().nullable(),
29849
- is_pending: z114.boolean(),
29850
- is_completed: z114.boolean(),
29851
- is_failed: z114.boolean()
29859
+ import { z as z115 } from "zod";
29860
+ var RecentPaymentSchema = z115.object({
29861
+ id: z115.uuid(),
29862
+ internal_payment_id: z115.string(),
29863
+ amount_usd: z115.number(),
29864
+ amount_display: z115.string(),
29865
+ currency_code: z115.string(),
29866
+ status: z115.string(),
29867
+ status_display: z115.string(),
29868
+ status_color: z115.string(),
29869
+ provider: z115.string(),
29870
+ created_at: z115.iso.datetime(),
29871
+ completed_at: z115.iso.datetime().nullable(),
29872
+ is_pending: z115.boolean(),
29873
+ is_completed: z115.boolean(),
29874
+ is_failed: z115.boolean()
29852
29875
  });
29853
29876
 
29854
29877
  // src/cfg/generated/_utils/schemas/PaginatedRecentPaymentList.schema.ts
29855
- var PaginatedRecentPaymentListSchema = z115.object({
29856
- count: z115.int(),
29857
- page: z115.int(),
29858
- pages: z115.int(),
29859
- page_size: z115.int(),
29860
- has_next: z115.boolean(),
29861
- has_previous: z115.boolean(),
29862
- next_page: z115.int().nullable().optional(),
29863
- previous_page: z115.int().nullable().optional(),
29864
- results: z115.array(RecentPaymentSchema)
29878
+ var PaginatedRecentPaymentListSchema = z116.object({
29879
+ count: z116.int(),
29880
+ page: z116.int(),
29881
+ pages: z116.int(),
29882
+ page_size: z116.int(),
29883
+ has_next: z116.boolean(),
29884
+ has_previous: z116.boolean(),
29885
+ next_page: z116.int().nullable().optional(),
29886
+ previous_page: z116.int().nullable().optional(),
29887
+ results: z116.array(RecentPaymentSchema)
29865
29888
  });
29866
29889
 
29867
29890
  // src/cfg/generated/_utils/schemas/PaginatedRecentTransactionList.schema.ts
29868
- import { z as z117 } from "zod";
29891
+ import { z as z118 } from "zod";
29869
29892
 
29870
29893
  // src/cfg/generated/_utils/schemas/RecentTransaction.schema.ts
29871
- import { z as z116 } from "zod";
29872
- var RecentTransactionSchema = z116.object({
29873
- id: z116.uuid(),
29874
- transaction_type: z116.string(),
29875
- amount_usd: z116.number(),
29876
- amount_display: z116.string(),
29877
- balance_after: z116.number(),
29878
- description: z116.string(),
29879
- created_at: z116.iso.datetime(),
29880
- payment_id: z116.string().nullable(),
29881
- is_credit: z116.boolean(),
29882
- is_debit: z116.boolean(),
29883
- type_color: z116.string()
29894
+ import { z as z117 } from "zod";
29895
+ var RecentTransactionSchema = z117.object({
29896
+ id: z117.uuid(),
29897
+ transaction_type: z117.string(),
29898
+ amount_usd: z117.number(),
29899
+ amount_display: z117.string(),
29900
+ balance_after: z117.number(),
29901
+ description: z117.string(),
29902
+ created_at: z117.iso.datetime(),
29903
+ payment_id: z117.string().nullable(),
29904
+ is_credit: z117.boolean(),
29905
+ is_debit: z117.boolean(),
29906
+ type_color: z117.string()
29884
29907
  });
29885
29908
 
29886
29909
  // src/cfg/generated/_utils/schemas/PaginatedRecentTransactionList.schema.ts
29887
- var PaginatedRecentTransactionListSchema = z117.object({
29888
- count: z117.int(),
29889
- page: z117.int(),
29890
- pages: z117.int(),
29891
- page_size: z117.int(),
29892
- has_next: z117.boolean(),
29893
- has_previous: z117.boolean(),
29894
- next_page: z117.int().nullable().optional(),
29895
- previous_page: z117.int().nullable().optional(),
29896
- results: z117.array(RecentTransactionSchema)
29910
+ var PaginatedRecentTransactionListSchema = z118.object({
29911
+ count: z118.int(),
29912
+ page: z118.int(),
29913
+ pages: z118.int(),
29914
+ page_size: z118.int(),
29915
+ has_next: z118.boolean(),
29916
+ has_previous: z118.boolean(),
29917
+ next_page: z118.int().nullable().optional(),
29918
+ previous_page: z118.int().nullable().optional(),
29919
+ results: z118.array(RecentTransactionSchema)
29897
29920
  });
29898
29921
 
29899
29922
  // src/cfg/generated/_utils/schemas/PaginatedSubscriptionListList.schema.ts
29900
- import { z as z119 } from "zod";
29923
+ import { z as z120 } from "zod";
29901
29924
 
29902
29925
  // src/cfg/generated/_utils/schemas/SubscriptionList.schema.ts
29903
- import { z as z118 } from "zod";
29904
- var SubscriptionListSchema = z118.object({
29905
- id: z118.uuid(),
29906
- user: z118.string(),
29907
- tariff_name: z118.string(),
29908
- status: z118.nativeEnum(SubscriptionListStatus),
29909
- status_display: z118.string(),
29910
- is_active: z118.boolean(),
29911
- is_expired: z118.boolean(),
29912
- expires_at: z118.iso.datetime(),
29913
- created_at: z118.iso.datetime()
29926
+ import { z as z119 } from "zod";
29927
+ var SubscriptionListSchema = z119.object({
29928
+ id: z119.uuid(),
29929
+ user: z119.string(),
29930
+ tariff_name: z119.string(),
29931
+ status: z119.nativeEnum(SubscriptionListStatus),
29932
+ status_display: z119.string(),
29933
+ is_active: z119.boolean(),
29934
+ is_expired: z119.boolean(),
29935
+ expires_at: z119.iso.datetime(),
29936
+ created_at: z119.iso.datetime()
29914
29937
  });
29915
29938
 
29916
29939
  // src/cfg/generated/_utils/schemas/PaginatedSubscriptionListList.schema.ts
29917
- var PaginatedSubscriptionListListSchema = z119.object({
29918
- count: z119.int(),
29919
- page: z119.int(),
29920
- pages: z119.int(),
29921
- page_size: z119.int(),
29922
- has_next: z119.boolean(),
29923
- has_previous: z119.boolean(),
29924
- next_page: z119.int().nullable().optional(),
29925
- previous_page: z119.int().nullable().optional(),
29926
- results: z119.array(SubscriptionListSchema)
29940
+ var PaginatedSubscriptionListListSchema = z120.object({
29941
+ count: z120.int(),
29942
+ page: z120.int(),
29943
+ pages: z120.int(),
29944
+ page_size: z120.int(),
29945
+ has_next: z120.boolean(),
29946
+ has_previous: z120.boolean(),
29947
+ next_page: z120.int().nullable().optional(),
29948
+ previous_page: z120.int().nullable().optional(),
29949
+ results: z120.array(SubscriptionListSchema)
29927
29950
  });
29928
29951
 
29929
29952
  // src/cfg/generated/_utils/schemas/PaginatedTariffList.schema.ts
29930
- import { z as z121 } from "zod";
29953
+ import { z as z122 } from "zod";
29931
29954
 
29932
29955
  // src/cfg/generated/_utils/schemas/Tariff.schema.ts
29933
- import { z as z120 } from "zod";
29934
- var TariffSchema = z120.object({
29935
- id: z120.int(),
29936
- name: z120.string(),
29937
- description: z120.string(),
29938
- monthly_price_usd: z120.number(),
29939
- requests_per_month: z120.int(),
29940
- requests_per_hour: z120.int(),
29941
- is_active: z120.boolean(),
29942
- endpoint_groups: z120.array(EndpointGroupSchema),
29943
- endpoint_groups_count: z120.int(),
29944
- created_at: z120.iso.datetime(),
29945
- updated_at: z120.iso.datetime()
29956
+ import { z as z121 } from "zod";
29957
+ var TariffSchema = z121.object({
29958
+ id: z121.int(),
29959
+ name: z121.string(),
29960
+ description: z121.string(),
29961
+ monthly_price_usd: z121.number(),
29962
+ requests_per_month: z121.int(),
29963
+ requests_per_hour: z121.int(),
29964
+ is_active: z121.boolean(),
29965
+ endpoint_groups: z121.array(EndpointGroupSchema),
29966
+ endpoint_groups_count: z121.int(),
29967
+ created_at: z121.iso.datetime(),
29968
+ updated_at: z121.iso.datetime()
29946
29969
  });
29947
29970
 
29948
29971
  // src/cfg/generated/_utils/schemas/PaginatedTariffList.schema.ts
29949
- var PaginatedTariffListSchema = z121.object({
29950
- count: z121.int(),
29951
- page: z121.int(),
29952
- pages: z121.int(),
29953
- page_size: z121.int(),
29954
- has_next: z121.boolean(),
29955
- has_previous: z121.boolean(),
29956
- next_page: z121.int().nullable().optional(),
29957
- previous_page: z121.int().nullable().optional(),
29958
- results: z121.array(TariffSchema)
29972
+ var PaginatedTariffListSchema = z122.object({
29973
+ count: z122.int(),
29974
+ page: z122.int(),
29975
+ pages: z122.int(),
29976
+ page_size: z122.int(),
29977
+ has_next: z122.boolean(),
29978
+ has_previous: z122.boolean(),
29979
+ next_page: z122.int().nullable().optional(),
29980
+ previous_page: z122.int().nullable().optional(),
29981
+ results: z122.array(TariffSchema)
29959
29982
  });
29960
29983
 
29961
29984
  // src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
29962
- import { z as z123 } from "zod";
29985
+ import { z as z124 } from "zod";
29963
29986
 
29964
29987
  // src/cfg/generated/_utils/schemas/Ticket.schema.ts
29965
- import { z as z122 } from "zod";
29966
- var TicketSchema = z122.object({
29967
- uuid: z122.uuid(),
29968
- user: z122.int(),
29969
- subject: z122.string().max(255),
29970
- status: z122.nativeEnum(TicketStatus).optional(),
29971
- created_at: z122.iso.datetime(),
29972
- unanswered_messages_count: z122.int()
29988
+ import { z as z123 } from "zod";
29989
+ var TicketSchema = z123.object({
29990
+ uuid: z123.uuid(),
29991
+ user: z123.int(),
29992
+ subject: z123.string().max(255),
29993
+ status: z123.nativeEnum(TicketStatus).optional(),
29994
+ created_at: z123.iso.datetime(),
29995
+ unanswered_messages_count: z123.int()
29973
29996
  });
29974
29997
 
29975
29998
  // src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
29976
- var PaginatedTicketListSchema = z123.object({
29977
- count: z123.int(),
29978
- page: z123.int(),
29979
- pages: z123.int(),
29980
- page_size: z123.int(),
29981
- has_next: z123.boolean(),
29982
- has_previous: z123.boolean(),
29983
- next_page: z123.int().nullable().optional(),
29984
- previous_page: z123.int().nullable().optional(),
29985
- results: z123.array(TicketSchema)
29999
+ var PaginatedTicketListSchema = z124.object({
30000
+ count: z124.int(),
30001
+ page: z124.int(),
30002
+ pages: z124.int(),
30003
+ page_size: z124.int(),
30004
+ has_next: z124.boolean(),
30005
+ has_previous: z124.boolean(),
30006
+ next_page: z124.int().nullable().optional(),
30007
+ previous_page: z124.int().nullable().optional(),
30008
+ results: z124.array(TicketSchema)
29986
30009
  });
29987
30010
 
29988
30011
  // src/cfg/generated/_utils/schemas/PaginatedTransactionList.schema.ts
29989
- import { z as z125 } from "zod";
30012
+ import { z as z126 } from "zod";
29990
30013
 
29991
30014
  // src/cfg/generated/_utils/schemas/Transaction.schema.ts
29992
- import { z as z124 } from "zod";
29993
- var TransactionSchema = z124.object({
29994
- id: z124.uuid(),
29995
- user: z124.string(),
29996
- amount_usd: z124.number(),
29997
- amount_display: z124.string(),
29998
- transaction_type: z124.nativeEnum(TransactionTransactionType),
29999
- type_color: z124.string(),
30000
- description: z124.string(),
30001
- payment_id: z124.string().nullable(),
30002
- metadata: z124.string(),
30003
- is_credit: z124.boolean(),
30004
- is_debit: z124.boolean(),
30005
- created_at: z124.iso.datetime()
30015
+ import { z as z125 } from "zod";
30016
+ var TransactionSchema = z125.object({
30017
+ id: z125.uuid(),
30018
+ user: z125.string(),
30019
+ amount_usd: z125.number(),
30020
+ amount_display: z125.string(),
30021
+ transaction_type: z125.nativeEnum(TransactionTransactionType),
30022
+ type_color: z125.string(),
30023
+ description: z125.string(),
30024
+ payment_id: z125.string().nullable(),
30025
+ metadata: z125.string(),
30026
+ is_credit: z125.boolean(),
30027
+ is_debit: z125.boolean(),
30028
+ created_at: z125.iso.datetime()
30006
30029
  });
30007
30030
 
30008
30031
  // src/cfg/generated/_utils/schemas/PaginatedTransactionList.schema.ts
30009
- var PaginatedTransactionListSchema = z125.object({
30010
- count: z125.int(),
30011
- page: z125.int(),
30012
- pages: z125.int(),
30013
- page_size: z125.int(),
30014
- has_next: z125.boolean(),
30015
- has_previous: z125.boolean(),
30016
- next_page: z125.int().nullable().optional(),
30017
- previous_page: z125.int().nullable().optional(),
30018
- results: z125.array(TransactionSchema)
30032
+ var PaginatedTransactionListSchema = z126.object({
30033
+ count: z126.int(),
30034
+ page: z126.int(),
30035
+ pages: z126.int(),
30036
+ page_size: z126.int(),
30037
+ has_next: z126.boolean(),
30038
+ has_previous: z126.boolean(),
30039
+ next_page: z126.int().nullable().optional(),
30040
+ previous_page: z126.int().nullable().optional(),
30041
+ results: z126.array(TransactionSchema)
30019
30042
  });
30020
30043
 
30021
30044
  // src/cfg/generated/_utils/schemas/PaginatedUserBalanceList.schema.ts
30022
- import { z as z127 } from "zod";
30045
+ import { z as z128 } from "zod";
30023
30046
 
30024
30047
  // src/cfg/generated/_utils/schemas/UserBalance.schema.ts
30025
- import { z as z126 } from "zod";
30026
- var UserBalanceSchema = z126.object({
30027
- user: z126.string(),
30028
- balance_usd: z126.number(),
30029
- balance_display: z126.string(),
30030
- is_empty: z126.boolean(),
30031
- has_transactions: z126.boolean(),
30032
- created_at: z126.iso.datetime(),
30033
- updated_at: z126.iso.datetime()
30048
+ import { z as z127 } from "zod";
30049
+ var UserBalanceSchema = z127.object({
30050
+ user: z127.string(),
30051
+ balance_usd: z127.number(),
30052
+ balance_display: z127.string(),
30053
+ is_empty: z127.boolean(),
30054
+ has_transactions: z127.boolean(),
30055
+ created_at: z127.iso.datetime(),
30056
+ updated_at: z127.iso.datetime()
30034
30057
  });
30035
30058
 
30036
30059
  // src/cfg/generated/_utils/schemas/PaginatedUserBalanceList.schema.ts
30037
- var PaginatedUserBalanceListSchema = z127.object({
30038
- count: z127.int(),
30039
- page: z127.int(),
30040
- pages: z127.int(),
30041
- page_size: z127.int(),
30042
- has_next: z127.boolean(),
30043
- has_previous: z127.boolean(),
30044
- next_page: z127.int().nullable().optional(),
30045
- previous_page: z127.int().nullable().optional(),
30046
- results: z127.array(UserBalanceSchema)
30060
+ var PaginatedUserBalanceListSchema = z128.object({
30061
+ count: z128.int(),
30062
+ page: z128.int(),
30063
+ pages: z128.int(),
30064
+ page_size: z128.int(),
30065
+ has_next: z128.boolean(),
30066
+ has_previous: z128.boolean(),
30067
+ next_page: z128.int().nullable().optional(),
30068
+ previous_page: z128.int().nullable().optional(),
30069
+ results: z128.array(UserBalanceSchema)
30047
30070
  });
30048
30071
 
30049
30072
  // src/cfg/generated/_utils/schemas/PaginatedWebhookEventListList.schema.ts
30050
- import { z as z130 } from "zod";
30073
+ import { z as z131 } from "zod";
30051
30074
 
30052
30075
  // src/cfg/generated/_utils/schemas/WebhookEventList.schema.ts
30053
- import { z as z129 } from "zod";
30076
+ import { z as z130 } from "zod";
30054
30077
 
30055
30078
  // src/cfg/generated/_utils/schemas/WebhookEvent.schema.ts
30056
- import { z as z128 } from "zod";
30057
- var WebhookEventSchema = z128.object({
30058
- id: z128.int(),
30059
- provider: z128.string().max(50),
30060
- event_type: z128.string().max(100),
30061
- status: z128.nativeEnum(WebhookEventStatus),
30062
- timestamp: z128.iso.datetime(),
30063
- payload_size: z128.int(),
30064
- response_time: z128.int(),
30065
- retry_count: z128.int().optional(),
30066
- error_message: z128.string().max(500).optional(),
30067
- payload_preview: z128.string().max(200).optional(),
30068
- response_status_code: z128.int().optional(),
30069
- webhook_url: z128.url().optional()
30079
+ import { z as z129 } from "zod";
30080
+ var WebhookEventSchema = z129.object({
30081
+ id: z129.int(),
30082
+ provider: z129.string().max(50),
30083
+ event_type: z129.string().max(100),
30084
+ status: z129.nativeEnum(WebhookEventStatus),
30085
+ timestamp: z129.iso.datetime(),
30086
+ payload_size: z129.int(),
30087
+ response_time: z129.int(),
30088
+ retry_count: z129.int().optional(),
30089
+ error_message: z129.string().max(500).optional(),
30090
+ payload_preview: z129.string().max(200).optional(),
30091
+ response_status_code: z129.int().optional(),
30092
+ webhook_url: z129.url().optional()
30070
30093
  });
30071
30094
 
30072
30095
  // src/cfg/generated/_utils/schemas/WebhookEventList.schema.ts
30073
- var WebhookEventListSchema = z129.object({
30074
- events: z129.array(WebhookEventSchema),
30075
- total: z129.int(),
30076
- page: z129.int(),
30077
- per_page: z129.int(),
30078
- has_next: z129.boolean(),
30079
- has_previous: z129.boolean()
30096
+ var WebhookEventListSchema = z130.object({
30097
+ events: z130.array(WebhookEventSchema),
30098
+ total: z130.int(),
30099
+ page: z130.int(),
30100
+ per_page: z130.int(),
30101
+ has_next: z130.boolean(),
30102
+ has_previous: z130.boolean()
30080
30103
  });
30081
30104
 
30082
30105
  // src/cfg/generated/_utils/schemas/PaginatedWebhookEventListList.schema.ts
30083
- var PaginatedWebhookEventListListSchema = z130.object({
30084
- count: z130.int(),
30085
- page: z130.int(),
30086
- pages: z130.int(),
30087
- page_size: z130.int(),
30088
- has_next: z130.boolean(),
30089
- has_previous: z130.boolean(),
30090
- next_page: z130.int().nullable().optional(),
30091
- previous_page: z130.int().nullable().optional(),
30092
- results: z130.array(WebhookEventListSchema)
30106
+ var PaginatedWebhookEventListListSchema = z131.object({
30107
+ count: z131.int(),
30108
+ page: z131.int(),
30109
+ pages: z131.int(),
30110
+ page_size: z131.int(),
30111
+ has_next: z131.boolean(),
30112
+ has_previous: z131.boolean(),
30113
+ next_page: z131.int().nullable().optional(),
30114
+ previous_page: z131.int().nullable().optional(),
30115
+ results: z131.array(WebhookEventListSchema)
30093
30116
  });
30094
30117
 
30095
30118
  // src/cfg/generated/_utils/schemas/PaginatedWebhookStatsList.schema.ts
30096
- import { z as z132 } from "zod";
30119
+ import { z as z133 } from "zod";
30097
30120
 
30098
30121
  // src/cfg/generated/_utils/schemas/WebhookStats.schema.ts
30099
- import { z as z131 } from "zod";
30100
- var WebhookStatsSchema = z131.object({
30101
- total: z131.int(),
30102
- successful: z131.int(),
30103
- failed: z131.int(),
30104
- pending: z131.int(),
30105
- success_rate: z131.number(),
30106
- providers: z131.record(z131.string(), z131.any()),
30107
- last_24h: z131.record(z131.string(), z131.any()),
30108
- avg_response_time: z131.number(),
30109
- max_response_time: z131.int()
30122
+ import { z as z132 } from "zod";
30123
+ var WebhookStatsSchema = z132.object({
30124
+ total: z132.int(),
30125
+ successful: z132.int(),
30126
+ failed: z132.int(),
30127
+ pending: z132.int(),
30128
+ success_rate: z132.number(),
30129
+ providers: z132.record(z132.string(), z132.any()),
30130
+ last_24h: z132.record(z132.string(), z132.any()),
30131
+ avg_response_time: z132.number(),
30132
+ max_response_time: z132.int()
30110
30133
  });
30111
30134
 
30112
30135
  // src/cfg/generated/_utils/schemas/PaginatedWebhookStatsList.schema.ts
30113
- var PaginatedWebhookStatsListSchema = z132.object({
30114
- count: z132.int(),
30115
- page: z132.int(),
30116
- pages: z132.int(),
30117
- page_size: z132.int(),
30118
- has_next: z132.boolean(),
30119
- has_previous: z132.boolean(),
30120
- next_page: z132.int().nullable().optional(),
30121
- previous_page: z132.int().nullable().optional(),
30122
- results: z132.array(WebhookStatsSchema)
30136
+ var PaginatedWebhookStatsListSchema = z133.object({
30137
+ count: z133.int(),
30138
+ page: z133.int(),
30139
+ pages: z133.int(),
30140
+ page_size: z133.int(),
30141
+ has_next: z133.boolean(),
30142
+ has_previous: z133.boolean(),
30143
+ next_page: z133.int().nullable().optional(),
30144
+ previous_page: z133.int().nullable().optional(),
30145
+ results: z133.array(WebhookStatsSchema)
30123
30146
  });
30124
30147
 
30125
30148
  // src/cfg/generated/_utils/schemas/PatchedAPIKeyUpdateRequest.schema.ts
30126
- import { z as z133 } from "zod";
30127
- var PatchedAPIKeyUpdateRequestSchema = z133.object({
30128
- name: z133.string().min(1).max(100).optional(),
30129
- is_active: z133.boolean().optional()
30149
+ import { z as z134 } from "zod";
30150
+ var PatchedAPIKeyUpdateRequestSchema = z134.object({
30151
+ name: z134.string().min(1).max(100).optional(),
30152
+ is_active: z134.boolean().optional()
30130
30153
  });
30131
30154
 
30132
30155
  // src/cfg/generated/_utils/schemas/PatchedAdminPaymentUpdateRequest.schema.ts
30133
- import { z as z134 } from "zod";
30134
- var PatchedAdminPaymentUpdateRequestSchema = z134.object({
30135
- status: z134.nativeEnum(PatchedAdminPaymentUpdateRequestStatus).optional(),
30136
- description: z134.string().optional(),
30137
- callback_url: z134.url().nullable().optional(),
30138
- cancel_url: z134.url().nullable().optional(),
30139
- provider_data: z134.string().optional(),
30140
- webhook_data: z134.string().optional()
30156
+ import { z as z135 } from "zod";
30157
+ var PatchedAdminPaymentUpdateRequestSchema = z135.object({
30158
+ status: z135.nativeEnum(PatchedAdminPaymentUpdateRequestStatus).optional(),
30159
+ description: z135.string().optional(),
30160
+ callback_url: z135.url().nullable().optional(),
30161
+ cancel_url: z135.url().nullable().optional(),
30162
+ provider_data: z135.string().optional(),
30163
+ webhook_data: z135.string().optional()
30141
30164
  });
30142
30165
 
30143
30166
  // src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts
30144
- import { z as z135 } from "zod";
30145
- var PatchedArchiveItemChunkRequestSchema = z135.object({
30146
- content: z135.string().min(1).optional(),
30147
- chunk_index: z135.int().min(0).max(9223372036854776e3).optional(),
30148
- chunk_type: z135.nativeEnum(PatchedArchiveItemChunkRequestChunkType).optional()
30167
+ import { z as z136 } from "zod";
30168
+ var PatchedArchiveItemChunkRequestSchema = z136.object({
30169
+ content: z136.string().min(1).optional(),
30170
+ chunk_index: z136.int().min(0).max(9223372036854776e3).optional(),
30171
+ chunk_type: z136.nativeEnum(PatchedArchiveItemChunkRequestChunkType).optional()
30149
30172
  });
30150
30173
 
30151
30174
  // src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts
30152
- import { z as z136 } from "zod";
30153
- var PatchedArchiveItemRequestSchema = z136.object({
30154
- relative_path: z136.string().min(1).max(1024).optional(),
30155
- item_name: z136.string().min(1).max(255).optional(),
30156
- item_type: z136.string().min(1).max(100).optional(),
30157
- file_size: z136.int().min(0).max(9223372036854776e3).optional()
30175
+ import { z as z137 } from "zod";
30176
+ var PatchedArchiveItemRequestSchema = z137.object({
30177
+ relative_path: z137.string().min(1).max(1024).optional(),
30178
+ item_name: z137.string().min(1).max(255).optional(),
30179
+ item_type: z137.string().min(1).max(100).optional(),
30180
+ file_size: z137.int().min(0).max(9223372036854776e3).optional()
30158
30181
  });
30159
30182
 
30160
30183
  // src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts
30161
- import { z as z137 } from "zod";
30162
- var PatchedChatResponseRequestSchema = z137.object({
30163
- message_id: z137.uuid().optional(),
30164
- content: z137.string().min(1).optional(),
30165
- tokens_used: z137.int().optional(),
30166
- cost_usd: z137.number().optional(),
30167
- processing_time_ms: z137.int().optional(),
30168
- model_used: z137.string().min(1).optional(),
30169
- sources: z137.array(ChatSourceRequestSchema).nullable().optional()
30184
+ import { z as z138 } from "zod";
30185
+ var PatchedChatResponseRequestSchema = z138.object({
30186
+ message_id: z138.uuid().optional(),
30187
+ content: z138.string().min(1).optional(),
30188
+ tokens_used: z138.int().optional(),
30189
+ cost_usd: z138.number().optional(),
30190
+ processing_time_ms: z138.int().optional(),
30191
+ model_used: z138.string().min(1).optional(),
30192
+ sources: z138.array(ChatSourceRequestSchema).nullable().optional()
30170
30193
  });
30171
30194
 
30172
30195
  // src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts
30173
- import { z as z138 } from "zod";
30174
- var PatchedChatSessionRequestSchema = z138.object({
30175
- title: z138.string().max(255).optional(),
30176
- is_active: z138.boolean().optional(),
30177
- messages_count: z138.int().min(0).max(9223372036854776e3).optional(),
30178
- total_tokens_used: z138.int().min(0).max(9223372036854776e3).optional(),
30179
- model_name: z138.string().min(1).max(100).optional(),
30180
- temperature: z138.number().optional(),
30181
- max_context_chunks: z138.int().min(0).max(9223372036854776e3).optional()
30196
+ import { z as z139 } from "zod";
30197
+ var PatchedChatSessionRequestSchema = z139.object({
30198
+ title: z139.string().max(255).optional(),
30199
+ is_active: z139.boolean().optional(),
30200
+ messages_count: z139.int().min(0).max(9223372036854776e3).optional(),
30201
+ total_tokens_used: z139.int().min(0).max(9223372036854776e3).optional(),
30202
+ model_name: z139.string().min(1).max(100).optional(),
30203
+ temperature: z139.number().optional(),
30204
+ max_context_chunks: z139.int().min(0).max(9223372036854776e3).optional()
30182
30205
  });
30183
30206
 
30184
30207
  // src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts
30185
- import { z as z139 } from "zod";
30186
- var PatchedDocumentArchiveRequestSchema = z139.object({
30187
- title: z139.string().min(1).max(512).optional(),
30188
- description: z139.string().optional(),
30189
- is_public: z139.boolean().optional()
30208
+ import { z as z140 } from "zod";
30209
+ var PatchedDocumentArchiveRequestSchema = z140.object({
30210
+ title: z140.string().min(1).max(512).optional(),
30211
+ description: z140.string().optional(),
30212
+ is_public: z140.boolean().optional()
30190
30213
  });
30191
30214
 
30192
30215
  // src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts
30193
- import { z as z140 } from "zod";
30194
- var PatchedDocumentRequestSchema = z140.object({
30195
- title: z140.string().min(1).max(512).optional(),
30196
- file_type: z140.string().min(1).max(100).optional(),
30197
- file_size: z140.int().min(0).max(9223372036854776e3).optional(),
30198
- metadata: z140.string().nullable().optional()
30216
+ import { z as z141 } from "zod";
30217
+ var PatchedDocumentRequestSchema = z141.object({
30218
+ title: z141.string().min(1).max(512).optional(),
30219
+ file_type: z141.string().min(1).max(100).optional(),
30220
+ file_size: z141.int().min(0).max(9223372036854776e3).optional(),
30221
+ metadata: z141.string().nullable().optional()
30199
30222
  });
30200
30223
 
30201
30224
  // src/cfg/generated/_utils/schemas/PatchedLeadSubmissionRequest.schema.ts
30202
- import { z as z141 } from "zod";
30203
- var PatchedLeadSubmissionRequestSchema = z141.object({
30204
- name: z141.string().min(1).max(200).optional(),
30205
- email: z141.email().optional(),
30206
- company: z141.string().max(200).nullable().optional(),
30207
- company_site: z141.string().max(200).nullable().optional(),
30208
- contact_type: z141.nativeEnum(PatchedLeadSubmissionRequestContactType).optional(),
30209
- contact_value: z141.string().max(200).nullable().optional(),
30210
- subject: z141.string().max(200).nullable().optional(),
30211
- message: z141.string().min(1).optional(),
30212
- extra: z141.string().nullable().optional(),
30213
- site_url: z141.url().optional()
30225
+ import { z as z142 } from "zod";
30226
+ var PatchedLeadSubmissionRequestSchema = z142.object({
30227
+ name: z142.string().min(1).max(200).optional(),
30228
+ email: z142.email().optional(),
30229
+ company: z142.string().max(200).nullable().optional(),
30230
+ company_site: z142.string().max(200).nullable().optional(),
30231
+ contact_type: z142.nativeEnum(PatchedLeadSubmissionRequestContactType).optional(),
30232
+ contact_value: z142.string().max(200).nullable().optional(),
30233
+ subject: z142.string().max(200).nullable().optional(),
30234
+ message: z142.string().min(1).optional(),
30235
+ extra: z142.string().nullable().optional(),
30236
+ site_url: z142.url().optional()
30214
30237
  });
30215
30238
 
30216
30239
  // src/cfg/generated/_utils/schemas/PatchedMessageRequest.schema.ts
30217
- import { z as z142 } from "zod";
30218
- var PatchedMessageRequestSchema = z142.object({
30219
- text: z142.string().min(1).optional()
30240
+ import { z as z143 } from "zod";
30241
+ var PatchedMessageRequestSchema = z143.object({
30242
+ text: z143.string().min(1).optional()
30220
30243
  });
30221
30244
 
30222
30245
  // src/cfg/generated/_utils/schemas/PatchedNewsletterCampaignRequest.schema.ts
30223
- import { z as z143 } from "zod";
30224
- var PatchedNewsletterCampaignRequestSchema = z143.object({
30225
- newsletter: z143.int().optional(),
30226
- subject: z143.string().min(1).max(255).optional(),
30227
- email_title: z143.string().min(1).max(255).optional(),
30228
- main_text: z143.string().min(1).optional(),
30229
- main_html_content: z143.string().optional(),
30230
- button_text: z143.string().max(100).optional(),
30231
- button_url: z143.url().optional(),
30232
- secondary_text: z143.string().optional()
30246
+ import { z as z144 } from "zod";
30247
+ var PatchedNewsletterCampaignRequestSchema = z144.object({
30248
+ newsletter: z144.int().optional(),
30249
+ subject: z144.string().min(1).max(255).optional(),
30250
+ email_title: z144.string().min(1).max(255).optional(),
30251
+ main_text: z144.string().min(1).optional(),
30252
+ main_html_content: z144.string().optional(),
30253
+ button_text: z144.string().max(100).optional(),
30254
+ button_url: z144.url().optional(),
30255
+ secondary_text: z144.string().optional()
30233
30256
  });
30234
30257
 
30235
30258
  // src/cfg/generated/_utils/schemas/PatchedPaymentRequest.schema.ts
30236
- import { z as z144 } from "zod";
30237
- var PatchedPaymentRequestSchema = z144.object({
30238
- amount_usd: z144.number().min(1).max(5e4).optional(),
30239
- currency: z144.int().optional(),
30240
- network: z144.int().nullable().optional(),
30241
- provider: z144.nativeEnum(PatchedPaymentRequestProvider).optional(),
30242
- status: z144.nativeEnum(PatchedPaymentRequestStatus).optional(),
30243
- callback_url: z144.url().nullable().optional(),
30244
- cancel_url: z144.url().nullable().optional(),
30245
- description: z144.string().optional(),
30246
- expires_at: z144.iso.datetime().nullable().optional()
30259
+ import { z as z145 } from "zod";
30260
+ var PatchedPaymentRequestSchema = z145.object({
30261
+ amount_usd: z145.number().min(1).max(5e4).optional(),
30262
+ currency: z145.int().optional(),
30263
+ network: z145.int().nullable().optional(),
30264
+ provider: z145.nativeEnum(PatchedPaymentRequestProvider).optional(),
30265
+ status: z145.nativeEnum(PatchedPaymentRequestStatus).optional(),
30266
+ callback_url: z145.url().nullable().optional(),
30267
+ cancel_url: z145.url().nullable().optional(),
30268
+ description: z145.string().optional(),
30269
+ expires_at: z145.iso.datetime().nullable().optional()
30247
30270
  });
30248
30271
 
30249
30272
  // src/cfg/generated/_utils/schemas/PatchedSubscriptionRequest.schema.ts
30250
- import { z as z145 } from "zod";
30251
- var PatchedSubscriptionRequestSchema = z145.object({
30252
- status: z145.nativeEnum(PatchedSubscriptionRequestStatus).optional(),
30253
- tier: z145.nativeEnum(PatchedSubscriptionRequestTier).optional(),
30254
- expires_at: z145.iso.datetime().optional()
30273
+ import { z as z146 } from "zod";
30274
+ var PatchedSubscriptionRequestSchema = z146.object({
30275
+ status: z146.nativeEnum(PatchedSubscriptionRequestStatus).optional(),
30276
+ tier: z146.nativeEnum(PatchedSubscriptionRequestTier).optional(),
30277
+ expires_at: z146.iso.datetime().optional()
30255
30278
  });
30256
30279
 
30257
30280
  // src/cfg/generated/_utils/schemas/PatchedTicketRequest.schema.ts
30258
- import { z as z146 } from "zod";
30259
- var PatchedTicketRequestSchema = z146.object({
30260
- user: z146.int().optional(),
30261
- subject: z146.string().min(1).max(255).optional(),
30262
- status: z146.nativeEnum(PatchedTicketRequestStatus).optional()
30281
+ import { z as z147 } from "zod";
30282
+ var PatchedTicketRequestSchema = z147.object({
30283
+ user: z147.int().optional(),
30284
+ subject: z147.string().min(1).max(255).optional(),
30285
+ status: z147.nativeEnum(PatchedTicketRequestStatus).optional()
30263
30286
  });
30264
30287
 
30265
30288
  // src/cfg/generated/_utils/schemas/PatchedUnsubscribeRequest.schema.ts
30266
- import { z as z147 } from "zod";
30267
- var PatchedUnsubscribeRequestSchema = z147.object({
30268
- subscription_id: z147.int().optional()
30289
+ import { z as z148 } from "zod";
30290
+ var PatchedUnsubscribeRequestSchema = z148.object({
30291
+ subscription_id: z148.int().optional()
30269
30292
  });
30270
30293
 
30271
30294
  // src/cfg/generated/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
30272
- import { z as z148 } from "zod";
30273
- var PatchedUserProfileUpdateRequestSchema = z148.object({
30274
- first_name: z148.string().max(50).optional(),
30275
- last_name: z148.string().max(50).optional(),
30276
- company: z148.string().max(100).optional(),
30277
- phone: z148.string().max(20).optional(),
30278
- position: z148.string().max(100).optional()
30295
+ import { z as z149 } from "zod";
30296
+ var PatchedUserProfileUpdateRequestSchema = z149.object({
30297
+ first_name: z149.string().max(50).optional(),
30298
+ last_name: z149.string().max(50).optional(),
30299
+ company: z149.string().max(100).optional(),
30300
+ phone: z149.string().max(20).optional(),
30301
+ position: z149.string().max(100).optional()
30279
30302
  });
30280
30303
 
30281
30304
  // src/cfg/generated/_utils/schemas/Payment.schema.ts
30282
- import { z as z149 } from "zod";
30283
- var PaymentSchema = z149.object({
30284
- id: z149.uuid(),
30285
- user: z149.string(),
30286
- amount_usd: z149.number().min(1).max(5e4),
30287
- currency: z149.int(),
30288
- network: z149.int().nullable().optional(),
30289
- provider: z149.nativeEnum(PaymentProvider).optional(),
30290
- status: z149.nativeEnum(PaymentStatus).optional(),
30291
- status_display: z149.string(),
30292
- amount_display: z149.string(),
30293
- provider_payment_id: z149.string().nullable(),
30294
- payment_url: z149.url().nullable(),
30295
- pay_address: z149.string().nullable(),
30296
- callback_url: z149.url().nullable().optional(),
30297
- cancel_url: z149.url().nullable().optional(),
30298
- description: z149.string().optional(),
30299
- transaction_hash: z149.string().nullable(),
30300
- confirmations_count: z149.int(),
30301
- created_at: z149.iso.datetime(),
30302
- updated_at: z149.iso.datetime(),
30303
- expires_at: z149.iso.datetime().nullable().optional(),
30304
- completed_at: z149.iso.datetime().nullable(),
30305
- is_pending: z149.boolean(),
30306
- is_completed: z149.boolean(),
30307
- is_failed: z149.boolean(),
30308
- is_expired: z149.boolean()
30305
+ import { z as z150 } from "zod";
30306
+ var PaymentSchema = z150.object({
30307
+ id: z150.uuid(),
30308
+ user: z150.string(),
30309
+ amount_usd: z150.number().min(1).max(5e4),
30310
+ amount_crypto: z150.number(),
30311
+ currency: z150.int(),
30312
+ network: z150.int().nullable().optional(),
30313
+ provider: z150.nativeEnum(PaymentProvider).optional(),
30314
+ status: z150.nativeEnum(PaymentStatus).optional(),
30315
+ status_display: z150.string(),
30316
+ amount_display: z150.string(),
30317
+ provider_payment_id: z150.string().nullable(),
30318
+ payment_url: z150.url().nullable(),
30319
+ pay_address: z150.string().nullable(),
30320
+ callback_url: z150.url().nullable().optional(),
30321
+ cancel_url: z150.url().nullable().optional(),
30322
+ description: z150.string().optional(),
30323
+ transaction_hash: z150.string().nullable(),
30324
+ confirmations_count: z150.int(),
30325
+ created_at: z150.iso.datetime(),
30326
+ updated_at: z150.iso.datetime(),
30327
+ expires_at: z150.iso.datetime().nullable().optional(),
30328
+ completed_at: z150.iso.datetime().nullable(),
30329
+ is_pending: z150.boolean(),
30330
+ is_completed: z150.boolean(),
30331
+ is_failed: z150.boolean(),
30332
+ is_expired: z150.boolean()
30309
30333
  });
30310
30334
 
30311
30335
  // src/cfg/generated/_utils/schemas/PaymentAnalyticsResponse.schema.ts
30312
- import { z as z151 } from "zod";
30336
+ import { z as z152 } from "zod";
30313
30337
 
30314
30338
  // src/cfg/generated/_utils/schemas/ProviderAnalyticsItem.schema.ts
30315
- import { z as z150 } from "zod";
30316
- var ProviderAnalyticsItemSchema = z150.object({
30317
- provider: z150.string(),
30318
- provider_display: z150.string(),
30319
- total_payments: z150.int(),
30320
- total_amount: z150.number(),
30321
- completed_payments: z150.int(),
30322
- success_rate: z150.number()
30339
+ import { z as z151 } from "zod";
30340
+ var ProviderAnalyticsItemSchema = z151.object({
30341
+ provider: z151.string(),
30342
+ provider_display: z151.string(),
30343
+ total_payments: z151.int(),
30344
+ total_amount: z151.number(),
30345
+ completed_payments: z151.int(),
30346
+ success_rate: z151.number()
30323
30347
  });
30324
30348
 
30325
30349
  // src/cfg/generated/_utils/schemas/PaymentAnalyticsResponse.schema.ts
30326
- var PaymentAnalyticsResponseSchema = z151.object({
30327
- currency_analytics: z151.array(CurrencyAnalyticsItemSchema),
30328
- provider_analytics: z151.array(ProviderAnalyticsItemSchema)
30350
+ var PaymentAnalyticsResponseSchema = z152.object({
30351
+ currency_analytics: z152.array(CurrencyAnalyticsItemSchema),
30352
+ provider_analytics: z152.array(ProviderAnalyticsItemSchema)
30329
30353
  });
30330
30354
 
30331
30355
  // src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts
30332
- import { z as z152 } from "zod";
30333
- var PaymentCreateSchema = z152.object({
30334
- amount_usd: z152.number().min(1).max(5e4),
30335
- currency_code: z152.nativeEnum(PaymentCreateCurrencyCode),
30336
- provider: z152.nativeEnum(PaymentCreateProvider).optional(),
30337
- callback_url: z152.url().optional(),
30338
- cancel_url: z152.url().optional(),
30339
- description: z152.string().max(500).optional(),
30340
- metadata: z152.string().optional()
30341
- });
30342
-
30343
- // src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts
30344
30356
  import { z as z153 } from "zod";
30345
- var PaymentCreateRequestSchema = z153.object({
30357
+ var PaymentCreateSchema = z153.object({
30346
30358
  amount_usd: z153.number().min(1).max(5e4),
30347
- currency_code: z153.nativeEnum(PaymentCreateRequestCurrencyCode),
30348
- provider: z153.nativeEnum(PaymentCreateRequestProvider).optional(),
30359
+ currency_code: z153.nativeEnum(PaymentCreateCurrencyCode),
30349
30360
  callback_url: z153.url().optional(),
30350
30361
  cancel_url: z153.url().optional(),
30351
30362
  description: z153.string().max(500).optional(),
30352
30363
  metadata: z153.string().optional()
30353
30364
  });
30354
30365
 
30355
- // src/cfg/generated/_utils/schemas/PaymentOverview.schema.ts
30366
+ // src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts
30356
30367
  import { z as z154 } from "zod";
30357
- var PaymentOverviewSchema = z154.object({
30358
- total_payments: z154.int(),
30359
- completed_payments: z154.int(),
30360
- pending_payments: z154.int(),
30361
- failed_payments: z154.int(),
30362
- total_amount_usd: z154.number(),
30363
- completed_amount_usd: z154.number(),
30364
- average_payment_usd: z154.number(),
30365
- success_rate: z154.number(),
30366
- last_payment_at: z154.iso.datetime().nullable(),
30367
- payments_this_month: z154.int(),
30368
- amount_this_month: z154.number(),
30369
- top_currency: z154.string().nullable(),
30370
- top_currency_count: z154.int()
30368
+ var PaymentCreateRequestSchema = z154.object({
30369
+ amount_usd: z154.number().min(1).max(5e4),
30370
+ currency_code: z154.nativeEnum(PaymentCreateRequestCurrencyCode),
30371
+ callback_url: z154.url().optional(),
30372
+ cancel_url: z154.url().optional(),
30373
+ description: z154.string().max(500).optional(),
30374
+ metadata: z154.string().optional()
30371
30375
  });
30372
30376
 
30373
- // src/cfg/generated/_utils/schemas/PaymentRequest.schema.ts
30377
+ // src/cfg/generated/_utils/schemas/PaymentOverview.schema.ts
30374
30378
  import { z as z155 } from "zod";
30375
- var PaymentRequestSchema = z155.object({
30376
- amount_usd: z155.number().min(1).max(5e4),
30377
- currency: z155.int(),
30378
- network: z155.int().nullable().optional(),
30379
- provider: z155.nativeEnum(PaymentRequestProvider).optional(),
30380
- status: z155.nativeEnum(PaymentRequestStatus).optional(),
30381
- callback_url: z155.url().nullable().optional(),
30382
- cancel_url: z155.url().nullable().optional(),
30383
- description: z155.string().optional(),
30384
- expires_at: z155.iso.datetime().nullable().optional()
30379
+ var PaymentOverviewSchema = z155.object({
30380
+ total_payments: z155.int(),
30381
+ completed_payments: z155.int(),
30382
+ pending_payments: z155.int(),
30383
+ failed_payments: z155.int(),
30384
+ total_amount_usd: z155.number(),
30385
+ completed_amount_usd: z155.number(),
30386
+ average_payment_usd: z155.number(),
30387
+ success_rate: z155.number(),
30388
+ last_payment_at: z155.iso.datetime().nullable(),
30389
+ payments_this_month: z155.int(),
30390
+ amount_this_month: z155.number(),
30391
+ top_currency: z155.string().nullable(),
30392
+ top_currency_count: z155.int()
30385
30393
  });
30386
30394
 
30387
- // src/cfg/generated/_utils/schemas/PaymentsChartResponse.schema.ts
30395
+ // src/cfg/generated/_utils/schemas/PaymentRequest.schema.ts
30388
30396
  import { z as z156 } from "zod";
30389
- var PaymentsChartResponseSchema = z156.object({
30390
- series: z156.array(ChartSeriesSchema),
30391
- period: z156.string(),
30392
- total_amount: z156.number(),
30393
- total_payments: z156.int(),
30394
- success_rate: z156.number()
30397
+ var PaymentRequestSchema = z156.object({
30398
+ amount_usd: z156.number().min(1).max(5e4),
30399
+ currency: z156.int(),
30400
+ network: z156.int().nullable().optional(),
30401
+ provider: z156.nativeEnum(PaymentRequestProvider).optional(),
30402
+ status: z156.nativeEnum(PaymentRequestStatus).optional(),
30403
+ callback_url: z156.url().nullable().optional(),
30404
+ cancel_url: z156.url().nullable().optional(),
30405
+ description: z156.string().optional(),
30406
+ expires_at: z156.iso.datetime().nullable().optional()
30407
+ });
30408
+
30409
+ // src/cfg/generated/_utils/schemas/PaymentsChartResponse.schema.ts
30410
+ import { z as z157 } from "zod";
30411
+ var PaymentsChartResponseSchema = z157.object({
30412
+ series: z157.array(ChartSeriesSchema),
30413
+ period: z157.string(),
30414
+ total_amount: z157.number(),
30415
+ total_payments: z157.int(),
30416
+ success_rate: z157.number()
30395
30417
  });
30396
30418
 
30397
30419
  // src/cfg/generated/_utils/schemas/PaymentsDashboardOverview.schema.ts
30398
- import { z as z159 } from "zod";
30420
+ import { z as z160 } from "zod";
30399
30421
 
30400
30422
  // src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts
30401
- import { z as z158 } from "zod";
30423
+ import { z as z159 } from "zod";
30402
30424
 
30403
30425
  // src/cfg/generated/_utils/schemas/SubscriptionOverview.schema.ts
30404
- import { z as z157 } from "zod";
30405
- var SubscriptionOverviewSchema = z157.object({
30406
- tier: z157.string(),
30407
- tier_display: z157.string(),
30408
- status: z157.string(),
30409
- status_display: z157.string(),
30410
- status_color: z157.string(),
30411
- is_active: z157.boolean(),
30412
- is_expired: z157.boolean(),
30413
- days_remaining: z157.int(),
30414
- requests_per_hour: z157.int(),
30415
- requests_per_day: z157.int(),
30416
- total_requests: z157.int(),
30417
- usage_percentage: z157.number(),
30418
- monthly_cost_usd: z157.number(),
30419
- cost_display: z157.string(),
30420
- starts_at: z157.iso.datetime(),
30421
- expires_at: z157.iso.datetime(),
30422
- last_request_at: z157.iso.datetime().nullable(),
30423
- endpoint_groups_count: z157.int(),
30424
- endpoint_groups: z157.array(z157.string())
30426
+ import { z as z158 } from "zod";
30427
+ var SubscriptionOverviewSchema = z158.object({
30428
+ tier: z158.string(),
30429
+ tier_display: z158.string(),
30430
+ status: z158.string(),
30431
+ status_display: z158.string(),
30432
+ status_color: z158.string(),
30433
+ is_active: z158.boolean(),
30434
+ is_expired: z158.boolean(),
30435
+ days_remaining: z158.int(),
30436
+ requests_per_hour: z158.int(),
30437
+ requests_per_day: z158.int(),
30438
+ total_requests: z158.int(),
30439
+ usage_percentage: z158.number(),
30440
+ monthly_cost_usd: z158.number(),
30441
+ cost_display: z158.string(),
30442
+ starts_at: z158.iso.datetime(),
30443
+ expires_at: z158.iso.datetime(),
30444
+ last_request_at: z158.iso.datetime().nullable(),
30445
+ endpoint_groups_count: z158.int(),
30446
+ endpoint_groups: z158.array(z158.string())
30425
30447
  });
30426
30448
 
30427
30449
  // src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts
30428
- var PaymentsMetricsSchema = z158.object({
30450
+ var PaymentsMetricsSchema = z159.object({
30429
30451
  balance: BalanceOverviewSchema,
30430
- subscription: SubscriptionOverviewSchema,
30452
+ subscription: SubscriptionOverviewSchema.nullable(),
30431
30453
  api_keys: APIKeysOverviewSchema,
30432
30454
  payments: PaymentOverviewSchema
30433
30455
  });
30434
30456
 
30435
30457
  // src/cfg/generated/_utils/schemas/PaymentsDashboardOverview.schema.ts
30436
- var PaymentsDashboardOverviewSchema = z159.object({
30458
+ var PaymentsDashboardOverviewSchema = z160.object({
30437
30459
  metrics: PaymentsMetricsSchema,
30438
- recent_payments: z159.array(RecentPaymentSchema),
30439
- recent_transactions: z159.array(RecentTransactionSchema),
30460
+ recent_payments: z160.array(RecentPaymentSchema),
30461
+ recent_transactions: z160.array(RecentTransactionSchema),
30440
30462
  chart_data: PaymentsChartResponseSchema
30441
30463
  });
30442
30464
 
30443
30465
  // src/cfg/generated/_utils/schemas/PublicDocument.schema.ts
30444
- import { z as z160 } from "zod";
30445
- var PublicDocumentSchema = z160.object({
30446
- id: z160.uuid(),
30447
- title: z160.string().max(512),
30448
- content: z160.string(),
30466
+ import { z as z161 } from "zod";
30467
+ var PublicDocumentSchema = z161.object({
30468
+ id: z161.uuid(),
30469
+ title: z161.string().max(512),
30470
+ content: z161.string(),
30449
30471
  category: PublicCategorySchema,
30450
- created_at: z160.iso.datetime(),
30451
- updated_at: z160.iso.datetime()
30472
+ created_at: z161.iso.datetime(),
30473
+ updated_at: z161.iso.datetime()
30452
30474
  });
30453
30475
 
30454
30476
  // src/cfg/generated/_utils/schemas/QueueAction.schema.ts
30455
- import { z as z161 } from "zod";
30456
- var QueueActionSchema = z161.object({
30457
- action: z161.nativeEnum(QueueActionAction),
30458
- queue_names: z161.array(z161.string()).optional()
30477
+ import { z as z162 } from "zod";
30478
+ var QueueActionSchema = z162.object({
30479
+ action: z162.nativeEnum(QueueActionAction),
30480
+ queue_names: z162.array(z162.string()).optional()
30459
30481
  });
30460
30482
 
30461
30483
  // src/cfg/generated/_utils/schemas/QueueActionRequest.schema.ts
30462
- import { z as z162 } from "zod";
30463
- var QueueActionRequestSchema = z162.object({
30464
- action: z162.nativeEnum(QueueActionRequestAction),
30465
- queue_names: z162.array(z162.string().min(1)).optional()
30484
+ import { z as z163 } from "zod";
30485
+ var QueueActionRequestSchema = z163.object({
30486
+ action: z163.nativeEnum(QueueActionRequestAction),
30487
+ queue_names: z163.array(z163.string().min(1)).optional()
30466
30488
  });
30467
30489
 
30468
30490
  // src/cfg/generated/_utils/schemas/QueueStatus.schema.ts
30469
- import { z as z163 } from "zod";
30470
- var QueueStatusSchema = z163.object({
30471
- queues: z163.record(z163.string(), z163.any()),
30472
- workers: z163.int(),
30473
- redis_connected: z163.boolean(),
30474
- timestamp: z163.string(),
30475
- error: z163.string().optional()
30491
+ import { z as z164 } from "zod";
30492
+ var QueueStatusSchema = z164.object({
30493
+ queues: z164.record(z164.string(), z164.any()),
30494
+ workers: z164.int(),
30495
+ redis_connected: z164.boolean(),
30496
+ timestamp: z164.string(),
30497
+ error: z164.string().optional()
30476
30498
  });
30477
30499
 
30478
30500
  // src/cfg/generated/_utils/schemas/QuickHealth.schema.ts
30479
- import { z as z164 } from "zod";
30480
- var QuickHealthSchema = z164.object({
30481
- status: z164.string(),
30482
- timestamp: z164.iso.datetime(),
30483
- error: z164.string().optional()
30501
+ import { z as z165 } from "zod";
30502
+ var QuickHealthSchema = z165.object({
30503
+ status: z165.string(),
30504
+ timestamp: z165.iso.datetime(),
30505
+ error: z165.string().optional()
30484
30506
  });
30485
30507
 
30486
30508
  // src/cfg/generated/_utils/schemas/SendCampaignRequest.schema.ts
30487
- import { z as z165 } from "zod";
30488
- var SendCampaignRequestSchema = z165.object({
30489
- campaign_id: z165.int()
30509
+ import { z as z166 } from "zod";
30510
+ var SendCampaignRequestSchema = z166.object({
30511
+ campaign_id: z166.int()
30490
30512
  });
30491
30513
 
30492
30514
  // src/cfg/generated/_utils/schemas/SendCampaignResponse.schema.ts
30493
- import { z as z166 } from "zod";
30494
- var SendCampaignResponseSchema = z166.object({
30495
- success: z166.boolean(),
30496
- message: z166.string().optional(),
30497
- sent_count: z166.int().optional(),
30498
- error: z166.string().optional()
30515
+ import { z as z167 } from "zod";
30516
+ var SendCampaignResponseSchema = z167.object({
30517
+ success: z167.boolean(),
30518
+ message: z167.string().optional(),
30519
+ sent_count: z167.int().optional(),
30520
+ error: z167.string().optional()
30499
30521
  });
30500
30522
 
30501
30523
  // src/cfg/generated/_utils/schemas/SubscribeRequest.schema.ts
30502
- import { z as z167 } from "zod";
30503
- var SubscribeRequestSchema = z167.object({
30504
- newsletter_id: z167.int(),
30505
- email: z167.email()
30524
+ import { z as z168 } from "zod";
30525
+ var SubscribeRequestSchema = z168.object({
30526
+ newsletter_id: z168.int(),
30527
+ email: z168.email()
30506
30528
  });
30507
30529
 
30508
30530
  // src/cfg/generated/_utils/schemas/SubscribeResponse.schema.ts
30509
- import { z as z168 } from "zod";
30510
- var SubscribeResponseSchema = z168.object({
30511
- success: z168.boolean(),
30512
- message: z168.string(),
30513
- subscription_id: z168.int().optional()
30531
+ import { z as z169 } from "zod";
30532
+ var SubscribeResponseSchema = z169.object({
30533
+ success: z169.boolean(),
30534
+ message: z169.string(),
30535
+ subscription_id: z169.int().optional()
30514
30536
  });
30515
30537
 
30516
30538
  // src/cfg/generated/_utils/schemas/Subscription.schema.ts
30517
- import { z as z169 } from "zod";
30518
- var SubscriptionSchema = z169.object({
30519
- id: z169.uuid(),
30520
- user: z169.string(),
30539
+ import { z as z170 } from "zod";
30540
+ var SubscriptionSchema = z170.object({
30541
+ id: z170.uuid(),
30542
+ user: z170.string(),
30521
30543
  tariff: TariffSchema,
30522
30544
  endpoint_group: EndpointGroupSchema,
30523
- status: z169.nativeEnum(SubscriptionStatus).optional(),
30524
- status_display: z169.string(),
30525
- status_color: z169.string(),
30526
- tier: z169.nativeEnum(SubscriptionTier).optional(),
30527
- total_requests: z169.int(),
30528
- usage_percentage: z169.number(),
30529
- last_request_at: z169.iso.datetime().nullable(),
30530
- expires_at: z169.iso.datetime(),
30531
- is_active: z169.boolean(),
30532
- is_expired: z169.boolean(),
30533
- created_at: z169.iso.datetime(),
30534
- updated_at: z169.iso.datetime()
30545
+ status: z170.nativeEnum(SubscriptionStatus).optional(),
30546
+ status_display: z170.string(),
30547
+ status_color: z170.string(),
30548
+ tier: z170.nativeEnum(SubscriptionTier).optional(),
30549
+ total_requests: z170.int(),
30550
+ usage_percentage: z170.number(),
30551
+ last_request_at: z170.iso.datetime().nullable(),
30552
+ expires_at: z170.iso.datetime(),
30553
+ is_active: z170.boolean(),
30554
+ is_expired: z170.boolean(),
30555
+ created_at: z170.iso.datetime(),
30556
+ updated_at: z170.iso.datetime()
30535
30557
  });
30536
30558
 
30537
30559
  // src/cfg/generated/_utils/schemas/SubscriptionCreate.schema.ts
30538
- import { z as z170 } from "zod";
30539
- var SubscriptionCreateSchema = z170.object({
30540
- tariff_id: z170.int().min(1),
30541
- endpoint_group_id: z170.int().min(1).nullable().optional(),
30542
- duration_days: z170.int().min(1).max(365).optional()
30543
- });
30544
-
30545
- // src/cfg/generated/_utils/schemas/SubscriptionCreateRequest.schema.ts
30546
30560
  import { z as z171 } from "zod";
30547
- var SubscriptionCreateRequestSchema = z171.object({
30561
+ var SubscriptionCreateSchema = z171.object({
30548
30562
  tariff_id: z171.int().min(1),
30549
30563
  endpoint_group_id: z171.int().min(1).nullable().optional(),
30550
30564
  duration_days: z171.int().min(1).max(365).optional()
30551
30565
  });
30552
30566
 
30553
- // src/cfg/generated/_utils/schemas/SubscriptionRequest.schema.ts
30567
+ // src/cfg/generated/_utils/schemas/SubscriptionCreateRequest.schema.ts
30554
30568
  import { z as z172 } from "zod";
30555
- var SubscriptionRequestSchema = z172.object({
30556
- status: z172.nativeEnum(SubscriptionRequestStatus).optional(),
30557
- tier: z172.nativeEnum(SubscriptionRequestTier).optional(),
30558
- expires_at: z172.iso.datetime()
30569
+ var SubscriptionCreateRequestSchema = z172.object({
30570
+ tariff_id: z172.int().min(1),
30571
+ endpoint_group_id: z172.int().min(1).nullable().optional(),
30572
+ duration_days: z172.int().min(1).max(365).optional()
30559
30573
  });
30560
30574
 
30561
- // src/cfg/generated/_utils/schemas/SuccessResponse.schema.ts
30575
+ // src/cfg/generated/_utils/schemas/SubscriptionRequest.schema.ts
30562
30576
  import { z as z173 } from "zod";
30563
- var SuccessResponseSchema = z173.object({
30564
- success: z173.boolean(),
30565
- message: z173.string()
30577
+ var SubscriptionRequestSchema = z173.object({
30578
+ status: z173.nativeEnum(SubscriptionRequestStatus).optional(),
30579
+ tier: z173.nativeEnum(SubscriptionRequestTier).optional(),
30580
+ expires_at: z173.iso.datetime()
30566
30581
  });
30567
30582
 
30568
- // src/cfg/generated/_utils/schemas/SupportedProviders.schema.ts
30583
+ // src/cfg/generated/_utils/schemas/SuccessResponse.schema.ts
30569
30584
  import { z as z174 } from "zod";
30570
- var SupportedProvidersSchema = z174.object({
30585
+ var SuccessResponseSchema = z174.object({
30571
30586
  success: z174.boolean(),
30572
- providers: z174.string(),
30573
- total_count: z174.int(),
30574
- timestamp: z174.iso.datetime()
30587
+ message: z174.string()
30575
30588
  });
30576
30589
 
30577
- // src/cfg/generated/_utils/schemas/TaskStatistics.schema.ts
30590
+ // src/cfg/generated/_utils/schemas/SupportedCurrencies.schema.ts
30578
30591
  import { z as z175 } from "zod";
30579
- var TaskStatisticsSchema = z175.object({
30580
- statistics: z175.record(z175.string(), z175.any()),
30581
- recent_tasks: z175.array(z175.record(z175.string(), z175.any())),
30582
- timestamp: z175.string(),
30583
- error: z175.string().optional()
30592
+ var SupportedCurrenciesSchema = z175.object({
30593
+ provider: z175.nativeEnum(SupportedCurrenciesProvider).optional(),
30594
+ currency_type: z175.nativeEnum(SupportedCurrenciesCurrencyType).optional()
30584
30595
  });
30585
30596
 
30586
- // src/cfg/generated/_utils/schemas/TestEmailRequest.schema.ts
30597
+ // src/cfg/generated/_utils/schemas/SupportedProviders.schema.ts
30587
30598
  import { z as z176 } from "zod";
30588
- var TestEmailRequestSchema = z176.object({
30589
- email: z176.email(),
30590
- subject: z176.string().min(1).max(255).optional(),
30591
- message: z176.string().min(1).optional()
30599
+ var SupportedProvidersSchema = z176.object({
30600
+ success: z176.boolean(),
30601
+ providers: z176.string(),
30602
+ total_count: z176.int(),
30603
+ timestamp: z176.iso.datetime()
30592
30604
  });
30593
30605
 
30594
- // src/cfg/generated/_utils/schemas/TicketRequest.schema.ts
30606
+ // src/cfg/generated/_utils/schemas/TaskStatistics.schema.ts
30595
30607
  import { z as z177 } from "zod";
30596
- var TicketRequestSchema = z177.object({
30597
- user: z177.int(),
30598
- subject: z177.string().min(1).max(255),
30599
- status: z177.nativeEnum(TicketRequestStatus).optional()
30608
+ var TaskStatisticsSchema = z177.object({
30609
+ statistics: z177.record(z177.string(), z177.any()),
30610
+ recent_tasks: z177.array(z177.record(z177.string(), z177.any())),
30611
+ timestamp: z177.string(),
30612
+ error: z177.string().optional()
30600
30613
  });
30601
30614
 
30602
- // src/cfg/generated/_utils/schemas/TokenRefresh.schema.ts
30615
+ // src/cfg/generated/_utils/schemas/TestEmailRequest.schema.ts
30603
30616
  import { z as z178 } from "zod";
30604
- var TokenRefreshSchema = z178.object({
30605
- access: z178.string(),
30606
- refresh: z178.string()
30617
+ var TestEmailRequestSchema = z178.object({
30618
+ email: z178.email(),
30619
+ subject: z178.string().min(1).max(255).optional(),
30620
+ message: z178.string().min(1).optional()
30607
30621
  });
30608
30622
 
30609
- // src/cfg/generated/_utils/schemas/TokenRefreshRequest.schema.ts
30623
+ // src/cfg/generated/_utils/schemas/TicketRequest.schema.ts
30610
30624
  import { z as z179 } from "zod";
30611
- var TokenRefreshRequestSchema = z179.object({
30612
- refresh: z179.string().min(1)
30625
+ var TicketRequestSchema = z179.object({
30626
+ user: z179.int(),
30627
+ subject: z179.string().min(1).max(255),
30628
+ status: z179.nativeEnum(TicketRequestStatus).optional()
30613
30629
  });
30614
30630
 
30615
- // src/cfg/generated/_utils/schemas/Unsubscribe.schema.ts
30631
+ // src/cfg/generated/_utils/schemas/TokenRefresh.schema.ts
30616
30632
  import { z as z180 } from "zod";
30617
- var UnsubscribeSchema = z180.object({
30618
- subscription_id: z180.int()
30633
+ var TokenRefreshSchema = z180.object({
30634
+ access: z180.string(),
30635
+ refresh: z180.string()
30619
30636
  });
30620
30637
 
30621
- // src/cfg/generated/_utils/schemas/UnsubscribeRequest.schema.ts
30638
+ // src/cfg/generated/_utils/schemas/TokenRefreshRequest.schema.ts
30622
30639
  import { z as z181 } from "zod";
30623
- var UnsubscribeRequestSchema = z181.object({
30624
- subscription_id: z181.int()
30640
+ var TokenRefreshRequestSchema = z181.object({
30641
+ refresh: z181.string().min(1)
30625
30642
  });
30626
30643
 
30627
- // src/cfg/generated/_utils/schemas/UserProfileUpdateRequest.schema.ts
30644
+ // src/cfg/generated/_utils/schemas/Unsubscribe.schema.ts
30628
30645
  import { z as z182 } from "zod";
30629
- var UserProfileUpdateRequestSchema = z182.object({
30630
- first_name: z182.string().max(50).optional(),
30631
- last_name: z182.string().max(50).optional(),
30632
- company: z182.string().max(100).optional(),
30633
- phone: z182.string().max(20).optional(),
30634
- position: z182.string().max(100).optional()
30646
+ var UnsubscribeSchema = z182.object({
30647
+ subscription_id: z182.int()
30635
30648
  });
30636
30649
 
30637
- // src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts
30650
+ // src/cfg/generated/_utils/schemas/UnsubscribeRequest.schema.ts
30638
30651
  import { z as z183 } from "zod";
30639
- var VectorizationResultSchema = z183.object({
30640
- vectorized_count: z183.int(),
30641
- failed_count: z183.int(),
30642
- total_tokens: z183.int(),
30643
- total_cost: z183.number(),
30644
- success_rate: z183.number(),
30645
- errors: z183.array(z183.string())
30652
+ var UnsubscribeRequestSchema = z183.object({
30653
+ subscription_id: z183.int()
30646
30654
  });
30647
30655
 
30648
- // src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts
30656
+ // src/cfg/generated/_utils/schemas/UserProfileUpdateRequest.schema.ts
30649
30657
  import { z as z184 } from "zod";
30650
- var VectorizationStatisticsSchema = z184.object({
30651
- total_chunks: z184.int(),
30652
- vectorized_chunks: z184.int(),
30653
- pending_chunks: z184.int(),
30654
- vectorization_rate: z184.number(),
30655
- total_tokens: z184.int(),
30656
- total_cost: z184.number(),
30657
- avg_tokens_per_chunk: z184.number(),
30658
- avg_cost_per_chunk: z184.number()
30658
+ var UserProfileUpdateRequestSchema = z184.object({
30659
+ first_name: z184.string().max(50).optional(),
30660
+ last_name: z184.string().max(50).optional(),
30661
+ company: z184.string().max(100).optional(),
30662
+ phone: z184.string().max(20).optional(),
30663
+ position: z184.string().max(100).optional()
30659
30664
  });
30660
30665
 
30661
- // src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts
30666
+ // src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts
30667
+ import { z as z185 } from "zod";
30668
+ var VectorizationResultSchema = z185.object({
30669
+ vectorized_count: z185.int(),
30670
+ failed_count: z185.int(),
30671
+ total_tokens: z185.int(),
30672
+ total_cost: z185.number(),
30673
+ success_rate: z185.number(),
30674
+ errors: z185.array(z185.string())
30675
+ });
30676
+
30677
+ // src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts
30662
30678
  import { z as z186 } from "zod";
30679
+ var VectorizationStatisticsSchema = z186.object({
30680
+ total_chunks: z186.int(),
30681
+ vectorized_chunks: z186.int(),
30682
+ pending_chunks: z186.int(),
30683
+ vectorization_rate: z186.number(),
30684
+ total_tokens: z186.int(),
30685
+ total_cost: z186.number(),
30686
+ avg_tokens_per_chunk: z186.number(),
30687
+ avg_cost_per_chunk: z186.number()
30688
+ });
30689
+
30690
+ // src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts
30691
+ import { z as z188 } from "zod";
30663
30692
 
30664
30693
  // src/cfg/generated/_utils/schemas/WebhookEventRequest.schema.ts
30665
- import { z as z185 } from "zod";
30666
- var WebhookEventRequestSchema = z185.object({
30667
- provider: z185.string().min(1).max(50),
30668
- event_type: z185.string().min(1).max(100),
30669
- status: z185.nativeEnum(WebhookEventRequestStatus),
30670
- timestamp: z185.iso.datetime(),
30671
- payload_size: z185.int(),
30672
- response_time: z185.int(),
30673
- retry_count: z185.int().optional(),
30674
- error_message: z185.string().max(500).optional(),
30675
- payload_preview: z185.string().max(200).optional(),
30676
- response_status_code: z185.int().optional(),
30677
- webhook_url: z185.url().optional()
30694
+ import { z as z187 } from "zod";
30695
+ var WebhookEventRequestSchema = z187.object({
30696
+ provider: z187.string().min(1).max(50),
30697
+ event_type: z187.string().min(1).max(100),
30698
+ status: z187.nativeEnum(WebhookEventRequestStatus),
30699
+ timestamp: z187.iso.datetime(),
30700
+ payload_size: z187.int(),
30701
+ response_time: z187.int(),
30702
+ retry_count: z187.int().optional(),
30703
+ error_message: z187.string().max(500).optional(),
30704
+ payload_preview: z187.string().max(200).optional(),
30705
+ response_status_code: z187.int().optional(),
30706
+ webhook_url: z187.url().optional()
30678
30707
  });
30679
30708
 
30680
30709
  // src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts
30681
- var WebhookEventListRequestSchema = z186.object({
30682
- events: z186.array(WebhookEventRequestSchema),
30683
- total: z186.int(),
30684
- page: z186.int(),
30685
- per_page: z186.int(),
30686
- has_next: z186.boolean(),
30687
- has_previous: z186.boolean()
30710
+ var WebhookEventListRequestSchema = z188.object({
30711
+ events: z188.array(WebhookEventRequestSchema),
30712
+ total: z188.int(),
30713
+ page: z188.int(),
30714
+ per_page: z188.int(),
30715
+ has_next: z188.boolean(),
30716
+ has_previous: z188.boolean()
30688
30717
  });
30689
30718
 
30690
30719
  // src/cfg/generated/_utils/schemas/WebhookHealth.schema.ts
30691
- import { z as z187 } from "zod";
30692
- var WebhookHealthSchema = z187.object({
30693
- status: z187.string().max(20),
30694
- timestamp: z187.iso.datetime(),
30695
- providers: z187.string()
30720
+ import { z as z189 } from "zod";
30721
+ var WebhookHealthSchema = z189.object({
30722
+ status: z189.string().max(20),
30723
+ timestamp: z189.iso.datetime(),
30724
+ providers: z189.string()
30696
30725
  });
30697
30726
 
30698
30727
  // src/cfg/generated/_utils/schemas/WebhookProviderStats.schema.ts
30699
- import { z as z188 } from "zod";
30700
- var WebhookProviderStatsSchema = z188.object({
30701
- total: z188.int(),
30702
- successful: z188.int(),
30703
- failed: z188.int(),
30704
- pending: z188.int().optional(),
30705
- success_rate: z188.number()
30728
+ import { z as z190 } from "zod";
30729
+ var WebhookProviderStatsSchema = z190.object({
30730
+ total: z190.int(),
30731
+ successful: z190.int(),
30732
+ failed: z190.int(),
30733
+ pending: z190.int().optional(),
30734
+ success_rate: z190.number()
30706
30735
  });
30707
30736
 
30708
30737
  // src/cfg/generated/_utils/schemas/WebhookProviderStatsRequest.schema.ts
30709
- import { z as z189 } from "zod";
30710
- var WebhookProviderStatsRequestSchema = z189.object({
30711
- total: z189.int(),
30712
- successful: z189.int(),
30713
- failed: z189.int(),
30714
- pending: z189.int().optional(),
30715
- success_rate: z189.number()
30738
+ import { z as z191 } from "zod";
30739
+ var WebhookProviderStatsRequestSchema = z191.object({
30740
+ total: z191.int(),
30741
+ successful: z191.int(),
30742
+ failed: z191.int(),
30743
+ pending: z191.int().optional(),
30744
+ success_rate: z191.number()
30716
30745
  });
30717
30746
 
30718
30747
  // src/cfg/generated/_utils/schemas/WebhookResponse.schema.ts
30719
- import { z as z190 } from "zod";
30720
- var WebhookResponseSchema = z190.object({
30721
- success: z190.boolean(),
30722
- message: z190.string().max(500),
30723
- payment_id: z190.string().max(256).optional(),
30724
- provider_payment_id: z190.string().max(256).optional(),
30725
- processed_at: z190.iso.datetime().optional()
30748
+ import { z as z192 } from "zod";
30749
+ var WebhookResponseSchema = z192.object({
30750
+ success: z192.boolean(),
30751
+ message: z192.string().max(500),
30752
+ payment_id: z192.string().max(256).optional(),
30753
+ provider_payment_id: z192.string().max(256).optional(),
30754
+ processed_at: z192.iso.datetime().optional()
30726
30755
  });
30727
30756
 
30728
30757
  // src/cfg/generated/_utils/schemas/WebhookResponseRequest.schema.ts
30729
- import { z as z191 } from "zod";
30730
- var WebhookResponseRequestSchema = z191.object({
30731
- success: z191.boolean(),
30732
- message: z191.string().min(1).max(500),
30733
- payment_id: z191.string().min(1).max(256).optional(),
30734
- provider_payment_id: z191.string().min(1).max(256).optional(),
30735
- processed_at: z191.iso.datetime().optional()
30758
+ import { z as z193 } from "zod";
30759
+ var WebhookResponseRequestSchema = z193.object({
30760
+ success: z193.boolean(),
30761
+ message: z193.string().min(1).max(500),
30762
+ payment_id: z193.string().min(1).max(256).optional(),
30763
+ provider_payment_id: z193.string().min(1).max(256).optional(),
30764
+ processed_at: z193.iso.datetime().optional()
30736
30765
  });
30737
30766
 
30738
30767
  // src/cfg/generated/_utils/schemas/WebhookStatsRequest.schema.ts
30739
- import { z as z192 } from "zod";
30740
- var WebhookStatsRequestSchema = z192.object({
30741
- total: z192.int(),
30742
- successful: z192.int(),
30743
- failed: z192.int(),
30744
- pending: z192.int(),
30745
- success_rate: z192.number(),
30746
- providers: z192.record(z192.string(), z192.any()),
30747
- last_24h: z192.record(z192.string(), z192.any()),
30748
- avg_response_time: z192.number(),
30749
- max_response_time: z192.int()
30768
+ import { z as z194 } from "zod";
30769
+ var WebhookStatsRequestSchema = z194.object({
30770
+ total: z194.int(),
30771
+ successful: z194.int(),
30772
+ failed: z194.int(),
30773
+ pending: z194.int(),
30774
+ success_rate: z194.number(),
30775
+ providers: z194.record(z194.string(), z194.any()),
30776
+ last_24h: z194.record(z194.string(), z194.any()),
30777
+ avg_response_time: z194.number(),
30778
+ max_response_time: z194.int()
30750
30779
  });
30751
30780
 
30752
30781
  // src/cfg/generated/_utils/schemas/WorkerAction.schema.ts
30753
- import { z as z193 } from "zod";
30754
- var WorkerActionSchema = z193.object({
30755
- action: z193.nativeEnum(WorkerActionAction),
30756
- processes: z193.int().min(1).max(10).optional(),
30757
- threads: z193.int().min(1).max(20).optional()
30782
+ import { z as z195 } from "zod";
30783
+ var WorkerActionSchema = z195.object({
30784
+ action: z195.nativeEnum(WorkerActionAction),
30785
+ processes: z195.int().min(1).max(10).optional(),
30786
+ threads: z195.int().min(1).max(20).optional()
30758
30787
  });
30759
30788
 
30760
30789
  // src/cfg/generated/_utils/schemas/WorkerActionRequest.schema.ts
30761
- import { z as z194 } from "zod";
30762
- var WorkerActionRequestSchema = z194.object({
30763
- action: z194.nativeEnum(WorkerActionRequestAction),
30764
- processes: z194.int().min(1).max(10).optional(),
30765
- threads: z194.int().min(1).max(20).optional()
30790
+ import { z as z196 } from "zod";
30791
+ var WorkerActionRequestSchema = z196.object({
30792
+ action: z196.nativeEnum(WorkerActionRequestAction),
30793
+ processes: z196.int().min(1).max(10).optional(),
30794
+ threads: z196.int().min(1).max(20).optional()
30766
30795
  });
30767
30796
 
30768
30797
  // src/cfg/generated/_utils/fetchers/index.ts
@@ -31878,10 +31907,10 @@ async function getPaymentsCurrenciesHealthRetrieve(client) {
31878
31907
  const response = await api2.cfg_payments.currenciesHealthRetrieve();
31879
31908
  return CurrencySchema.parse(response);
31880
31909
  }
31881
- async function getPaymentsCurrenciesRatesRetrieve(params, client) {
31910
+ async function getPaymentsCurrenciesRatesRetrieve(client) {
31882
31911
  const api2 = client || getAPIInstance();
31883
- const response = await api2.cfg_payments.currenciesRatesRetrieve(params.base_currency, params.currencies);
31884
- return CurrencySchema.parse(response);
31912
+ const response = await api2.cfg_payments.currenciesRatesRetrieve();
31913
+ return CurrencyRatesSchema.parse(response);
31885
31914
  }
31886
31915
  async function getPaymentsCurrenciesStableRetrieve(client) {
31887
31916
  const api2 = client || getAPIInstance();
@@ -31893,10 +31922,10 @@ async function getPaymentsCurrenciesStatsRetrieve(client) {
31893
31922
  const response = await api2.cfg_payments.currenciesStatsRetrieve();
31894
31923
  return CurrencySchema.parse(response);
31895
31924
  }
31896
- async function getPaymentsCurrenciesSupportedRetrieve(params, client) {
31925
+ async function getPaymentsCurrenciesSupportedRetrieve(client) {
31897
31926
  const api2 = client || getAPIInstance();
31898
- const response = await api2.cfg_payments.currenciesSupportedRetrieve(params?.currency_type, params?.provider);
31899
- return CurrencySchema.parse(response);
31927
+ const response = await api2.cfg_payments.currenciesSupportedRetrieve();
31928
+ return SupportedCurrenciesSchema.parse(response);
31900
31929
  }
31901
31930
  async function getPaymentsEndpointGroupsList(params, client) {
31902
31931
  const api2 = client || getAPIInstance();
@@ -34044,10 +34073,10 @@ function usePaymentsCurrenciesHealthRetrieve(client) {
34044
34073
  () => getPaymentsCurrenciesHealthRetrieve(client)
34045
34074
  );
34046
34075
  }
34047
- function usePaymentsCurrenciesRatesRetrieve(params, client) {
34076
+ function usePaymentsCurrenciesRatesRetrieve(client) {
34048
34077
  return useSWR11(
34049
- params ? ["cfg-payments-currencies-rate", params] : "cfg-payments-currencies-rate",
34050
- () => getPaymentsCurrenciesRatesRetrieve(params, client)
34078
+ "cfg-payments-currencies-rate",
34079
+ () => getPaymentsCurrenciesRatesRetrieve(client)
34051
34080
  );
34052
34081
  }
34053
34082
  function usePaymentsCurrenciesStableRetrieve(client) {
@@ -34062,10 +34091,10 @@ function usePaymentsCurrenciesStatsRetrieve(client) {
34062
34091
  () => getPaymentsCurrenciesStatsRetrieve(client)
34063
34092
  );
34064
34093
  }
34065
- function usePaymentsCurrenciesSupportedRetrieve(params, client) {
34094
+ function usePaymentsCurrenciesSupportedRetrieve(client) {
34066
34095
  return useSWR11(
34067
- params ? ["cfg-payments-currencies-supported", params] : "cfg-payments-currencies-supported",
34068
- () => getPaymentsCurrenciesSupportedRetrieve(params, client)
34096
+ "cfg-payments-currencies-supported",
34097
+ () => getPaymentsCurrenciesSupportedRetrieve(client)
34069
34098
  );
34070
34099
  }
34071
34100
  function usePaymentsEndpointGroupsList(params, client) {
@@ -36871,24 +36900,11 @@ function CurrenciesProvider({ children }) {
36871
36900
  const refreshCurrencies = async () => {
36872
36901
  await mutateCurrencies();
36873
36902
  };
36874
- const getCurrency = async (id) => {
36875
- const { data } = usePaymentsCurrenciesRetrieve(id, api);
36876
- return data;
36877
- };
36878
- const getCurrencyRates = async (baseCurrency, currencies2) => {
36879
- const { data } = usePaymentsCurrenciesRatesRetrieve(
36880
- { base_currency: baseCurrency, currencies: currencies2 },
36881
- api
36882
- );
36883
- return data;
36884
- };
36885
36903
  const value = {
36886
36904
  currencies,
36887
36905
  isLoadingCurrencies,
36888
36906
  currenciesError,
36889
- refreshCurrencies,
36890
- getCurrency,
36891
- getCurrencyRates
36907
+ refreshCurrencies
36892
36908
  };
36893
36909
  return /* @__PURE__ */ jsx7(CurrenciesContext.Provider, { value, children });
36894
36910
  }
@@ -36914,7 +36930,7 @@ function ApiKeysProvider({ children }) {
36914
36930
  const refreshApiKeys = async () => {
36915
36931
  await mutateApiKeys();
36916
36932
  };
36917
- const createApiKeyMutation = useCreatePaymentsApiKeysCreate();
36933
+ const createApiKeyMutation = useCreatePaymentsApiKeysCreateCreate();
36918
36934
  const deleteApiKeyMutation = useDeletePaymentsApiKeysDestroy();
36919
36935
  const getApiKey = async (id) => {
36920
36936
  const { data } = usePaymentsApiKeysRetrieve(id, api);
@@ -36967,6 +36983,19 @@ function OverviewProvider({ children }) {
36967
36983
  const { data: chartData, mutate: mutateChartData } = usePaymentsOverviewDashboardChartDataRetrieve({}, api);
36968
36984
  const { data: recentPayments, mutate: mutateRecentPayments } = usePaymentsOverviewDashboardRecentPaymentsList({}, api);
36969
36985
  const { data: recentTransactions, mutate: mutateRecentTransactions } = usePaymentsOverviewDashboardRecentTransactionsList({}, api);
36986
+ const {
36987
+ data: balances,
36988
+ error: balancesError,
36989
+ isLoading: isLoadingBalances,
36990
+ mutate: mutateBalances
36991
+ } = usePaymentsBalancesList({}, api);
36992
+ const {
36993
+ data: balanceSummary,
36994
+ error: summaryError,
36995
+ isLoading: isLoadingSummary,
36996
+ mutate: mutateSummary
36997
+ } = usePaymentsBalancesSummaryRetrieve(api);
36998
+ const createPaymentMutation = useCreatePaymentsPaymentCreate();
36970
36999
  const isLoadingOverview = isLoadingOverview1;
36971
37000
  const refreshOverview = async () => {
36972
37001
  await Promise.all([
@@ -36980,6 +37009,26 @@ function OverviewProvider({ children }) {
36980
37009
  mutateRecentTransactions()
36981
37010
  ]);
36982
37011
  };
37012
+ const refreshBalances = async () => {
37013
+ await mutateBalances();
37014
+ };
37015
+ const refreshSummary = async () => {
37016
+ await mutateSummary();
37017
+ };
37018
+ const retrieveBalance = async (id) => {
37019
+ try {
37020
+ const result = await getPaymentsBalancesRetrieve(id, api);
37021
+ return result;
37022
+ } catch (error) {
37023
+ defaultLogger.error("Failed to retrieve balance:", error);
37024
+ return void 0;
37025
+ }
37026
+ };
37027
+ const createPayment = async (data) => {
37028
+ const result = await createPaymentMutation(data, api);
37029
+ await refreshOverview();
37030
+ return result;
37031
+ };
36983
37032
  const value = {
36984
37033
  overview,
36985
37034
  metrics,
@@ -36989,6 +37038,16 @@ function OverviewProvider({ children }) {
36989
37038
  chartData,
36990
37039
  recentPayments,
36991
37040
  recentTransactions,
37041
+ balances,
37042
+ isLoadingBalances,
37043
+ balancesError,
37044
+ refreshBalances,
37045
+ balanceSummary,
37046
+ isLoadingSummary,
37047
+ summaryError,
37048
+ refreshSummary,
37049
+ retrieveBalance,
37050
+ createPayment,
36992
37051
  isLoadingOverview,
36993
37052
  overviewError,
36994
37053
  refreshOverview
@@ -37003,10 +37062,66 @@ function useOverviewContext() {
37003
37062
  return context;
37004
37063
  }
37005
37064
 
37006
- // src/cfg/contexts/knowbase/ChatContext.tsx
37065
+ // src/cfg/contexts/payments/RootPaymentsContext.tsx
37007
37066
  import { createContext as createContext10, useContext as useContext10 } from "react";
37008
37067
  import { jsx as jsx10 } from "react/jsx-runtime";
37009
- var KnowbaseChatContext = createContext10(void 0);
37068
+ var RootPaymentsContext = createContext10(void 0);
37069
+ function RootPaymentsProvider({ children }) {
37070
+ const {
37071
+ data: currencies,
37072
+ error: currenciesError,
37073
+ isLoading: isLoadingCurrencies,
37074
+ mutate: mutateCurrencies
37075
+ } = usePaymentsCurrenciesList({ page_size: 1e3 }, api);
37076
+ const {
37077
+ data: providerCurrencies,
37078
+ error: providerCurrenciesError,
37079
+ isLoading: isLoadingProviderCurrencies,
37080
+ mutate: mutateProviderCurrencies
37081
+ } = usePaymentsProviderCurrenciesList({ page_size: 1e3 }, api);
37082
+ const {
37083
+ data: networks,
37084
+ error: networksError,
37085
+ isLoading: isLoadingNetworks,
37086
+ mutate: mutateNetworks
37087
+ } = usePaymentsNetworksList({ page_size: 1e3 }, api);
37088
+ const refreshCurrencies = async () => {
37089
+ await mutateCurrencies();
37090
+ };
37091
+ const refreshProviderCurrencies = async () => {
37092
+ await mutateProviderCurrencies();
37093
+ };
37094
+ const refreshNetworks = async () => {
37095
+ await mutateNetworks();
37096
+ };
37097
+ const value = {
37098
+ currencies,
37099
+ isLoadingCurrencies,
37100
+ currenciesError,
37101
+ refreshCurrencies,
37102
+ providerCurrencies,
37103
+ isLoadingProviderCurrencies,
37104
+ providerCurrenciesError,
37105
+ refreshProviderCurrencies,
37106
+ networks,
37107
+ isLoadingNetworks,
37108
+ networksError,
37109
+ refreshNetworks
37110
+ };
37111
+ return /* @__PURE__ */ jsx10(RootPaymentsContext.Provider, { value, children });
37112
+ }
37113
+ function useRootPaymentsContext() {
37114
+ const context = useContext10(RootPaymentsContext);
37115
+ if (!context) {
37116
+ throw new Error("useRootPaymentsContext must be used within RootPaymentsProvider");
37117
+ }
37118
+ return context;
37119
+ }
37120
+
37121
+ // src/cfg/contexts/knowbase/ChatContext.tsx
37122
+ import { createContext as createContext11, useContext as useContext11 } from "react";
37123
+ import { jsx as jsx11 } from "react/jsx-runtime";
37124
+ var KnowbaseChatContext = createContext11(void 0);
37010
37125
  function KnowbaseChatProvider({ children }) {
37011
37126
  const {
37012
37127
  data: chats,
@@ -37067,10 +37182,10 @@ function KnowbaseChatProvider({ children }) {
37067
37182
  deleteChat,
37068
37183
  sendQuery
37069
37184
  };
37070
- return /* @__PURE__ */ jsx10(KnowbaseChatContext.Provider, { value, children });
37185
+ return /* @__PURE__ */ jsx11(KnowbaseChatContext.Provider, { value, children });
37071
37186
  }
37072
37187
  function useKnowbaseChatContext() {
37073
- const context = useContext10(KnowbaseChatContext);
37188
+ const context = useContext11(KnowbaseChatContext);
37074
37189
  if (!context) {
37075
37190
  throw new Error("useKnowbaseChatContext must be used within KnowbaseChatProvider");
37076
37191
  }
@@ -37078,9 +37193,9 @@ function useKnowbaseChatContext() {
37078
37193
  }
37079
37194
 
37080
37195
  // src/cfg/contexts/knowbase/DocumentsContext.tsx
37081
- import { createContext as createContext11, useContext as useContext11 } from "react";
37082
- import { jsx as jsx11 } from "react/jsx-runtime";
37083
- var KnowbaseDocumentsContext = createContext11(
37196
+ import { createContext as createContext12, useContext as useContext12 } from "react";
37197
+ import { jsx as jsx12 } from "react/jsx-runtime";
37198
+ var KnowbaseDocumentsContext = createContext12(
37084
37199
  void 0
37085
37200
  );
37086
37201
  function KnowbaseDocumentsProvider({ children }) {
@@ -37199,10 +37314,10 @@ function KnowbaseDocumentsProvider({ children }) {
37199
37314
  partialUpdateArchive,
37200
37315
  deleteArchive
37201
37316
  };
37202
- return /* @__PURE__ */ jsx11(KnowbaseDocumentsContext.Provider, { value, children });
37317
+ return /* @__PURE__ */ jsx12(KnowbaseDocumentsContext.Provider, { value, children });
37203
37318
  }
37204
37319
  function useKnowbaseDocumentsContext() {
37205
- const context = useContext11(KnowbaseDocumentsContext);
37320
+ const context = useContext12(KnowbaseDocumentsContext);
37206
37321
  if (!context) {
37207
37322
  throw new Error("useKnowbaseDocumentsContext must be used within KnowbaseDocumentsProvider");
37208
37323
  }
@@ -37210,9 +37325,9 @@ function useKnowbaseDocumentsContext() {
37210
37325
  }
37211
37326
 
37212
37327
  // src/cfg/contexts/knowbase/SessionsContext.tsx
37213
- import { createContext as createContext12, useContext as useContext12 } from "react";
37214
- import { jsx as jsx12 } from "react/jsx-runtime";
37215
- var KnowbaseSessionsContext = createContext12(void 0);
37328
+ import { createContext as createContext13, useContext as useContext13 } from "react";
37329
+ import { jsx as jsx13 } from "react/jsx-runtime";
37330
+ var KnowbaseSessionsContext = createContext13(void 0);
37216
37331
  function KnowbaseSessionsProvider({ children }) {
37217
37332
  const {
37218
37333
  data: sessions,
@@ -37275,10 +37390,10 @@ function KnowbaseSessionsProvider({ children }) {
37275
37390
  activateSession,
37276
37391
  archiveSession
37277
37392
  };
37278
- return /* @__PURE__ */ jsx12(KnowbaseSessionsContext.Provider, { value, children });
37393
+ return /* @__PURE__ */ jsx13(KnowbaseSessionsContext.Provider, { value, children });
37279
37394
  }
37280
37395
  function useKnowbaseSessionsContext() {
37281
- const context = useContext12(KnowbaseSessionsContext);
37396
+ const context = useContext13(KnowbaseSessionsContext);
37282
37397
  if (!context) {
37283
37398
  throw new Error("useKnowbaseSessionsContext must be used within KnowbaseSessionsProvider");
37284
37399
  }
@@ -37341,6 +37456,7 @@ export {
37341
37456
  PaymentsProvider,
37342
37457
  PaymentsService,
37343
37458
  REFRESH_TOKEN_KEY,
37459
+ RootPaymentsProvider,
37344
37460
  schemas_exports as Schemas,
37345
37461
  SubscriptionsService,
37346
37462
  SupportProvider,
@@ -37351,303 +37467,12 @@ export {
37351
37467
  api,
37352
37468
  clearAPITokens,
37353
37469
  configureAPI,
37354
- createAccountsOtpRequestCreate,
37355
- createAccountsOtpVerifyCreate,
37356
- createAccountsProfileAvatarCreate,
37357
- createAccountsTokenRefreshCreate,
37358
- createKnowbaseAdminChatCreate,
37359
- createKnowbaseAdminChatQueryCreate,
37360
- createKnowbaseAdminDocumentsCreate,
37361
- createKnowbaseAdminDocumentsReprocessCreate,
37362
- createKnowbaseAdminSessionsActivateCreate,
37363
- createKnowbaseAdminSessionsArchiveCreate,
37364
- createKnowbaseAdminSessionsCreate,
37365
- createKnowbaseSystemArchivesCreate,
37366
- createKnowbaseSystemArchivesRevectorizeCreate,
37367
- createKnowbaseSystemArchivesSearchCreate,
37368
- createKnowbaseSystemChunksCreate,
37369
- createKnowbaseSystemChunksVectorizeCreate,
37370
- createKnowbaseSystemItemsCreate,
37371
- createLeadsCreate,
37372
- createLeadsSubmitCreate,
37373
- createNewsletterBulkCreate,
37374
- createNewsletterCampaignsCreate,
37375
- createNewsletterCampaignsSendCreate,
37376
- createNewsletterSubscribeCreate,
37377
- createNewsletterTestCreate,
37378
- createNewsletterUnsubscribeCreate,
37379
- createPaymentsAdminApiPaymentsCancelCreate,
37380
- createPaymentsAdminApiPaymentsCreate,
37381
- createPaymentsAdminApiPaymentsRefreshStatusCreate,
37382
- createPaymentsAdminApiPaymentsRefundCreate,
37383
- createPaymentsAdminApiWebhookTestTestCreate,
37384
- createPaymentsAdminApiWebhooksEventsClearAllCreate,
37385
- createPaymentsAdminApiWebhooksEventsRetryCreate,
37386
- createPaymentsAdminApiWebhooksEventsRetryFailedCreate,
37387
- createPaymentsApiKeysCreate,
37388
- createPaymentsApiKeysCreateCreate,
37389
- createPaymentsApiKeysPerformActionCreate,
37390
- createPaymentsApiKeysValidateCreate,
37391
- createPaymentsApiKeysValidateKeyCreate,
37392
- createPaymentsCurrenciesConvertCreate,
37393
- createPaymentsCurrenciesCreate,
37394
- createPaymentsPaymentCancelCreate,
37395
- createPaymentsPaymentCheckStatusCreate,
37396
- createPaymentsPaymentCreate,
37397
- createPaymentsPaymentCreateCreate,
37398
- createPaymentsSubscriptionsCreate,
37399
- createPaymentsSubscriptionsIncrementUsageCreate,
37400
- createPaymentsSubscriptionsUpdateStatusCreate,
37401
- createPaymentsUsersApiKeysCreate,
37402
- createPaymentsUsersApiKeysPerformActionCreate,
37403
- createPaymentsUsersCancelCreate,
37404
- createPaymentsUsersCheckStatusCreate,
37405
- createPaymentsUsersCreate,
37406
- createPaymentsUsersPaymentCancelCreate,
37407
- createPaymentsUsersPaymentCheckStatusCreate,
37408
- createPaymentsUsersPaymentCreate,
37409
- createPaymentsUsersSubscriptionsCreate,
37410
- createPaymentsUsersSubscriptionsIncrementUsageCreate,
37411
- createPaymentsUsersSubscriptionsUpdateStatusCreate,
37412
- createPaymentsWebhooksCreate,
37413
- createSupportTicketsCreate,
37414
- createSupportTicketsMessagesCreate,
37415
- createTasksApiClearCreate,
37416
- createTasksApiClearQueuesCreate,
37417
- createTasksApiPurgeFailedCreate,
37418
- createTasksApiQueuesManageCreate,
37419
- createTasksApiSimulateCreate,
37420
- createTasksApiWorkersManageCreate,
37421
37470
  api as default,
37422
- deleteKnowbaseAdminChatDestroy,
37423
- deleteKnowbaseAdminDocumentsDestroy,
37424
- deleteKnowbaseAdminSessionsDestroy,
37425
- deleteKnowbaseSystemArchivesDestroy,
37426
- deleteKnowbaseSystemChunksDestroy,
37427
- deleteKnowbaseSystemItemsDestroy,
37428
- deleteLeadsDestroy,
37429
- deleteNewsletterCampaignsDestroy,
37430
- deletePaymentsAdminApiPaymentsDestroy,
37431
- deletePaymentsApiKeysDestroy,
37432
- deletePaymentsPaymentDestroy,
37433
- deletePaymentsSubscriptionsDestroy,
37434
- deletePaymentsUsersApiKeysDestroy,
37435
- deletePaymentsUsersDestroy,
37436
- deletePaymentsUsersPaymentDestroy,
37437
- deletePaymentsUsersSubscriptionsDestroy,
37438
- deleteSupportTicketsDestroy,
37439
- deleteSupportTicketsMessagesDestroy,
37440
37471
  getAPIInstance,
37441
- getAccountsProfileRetrieve,
37442
- getEndpointsDrfRetrieve,
37443
- getHealthDrfQuickRetrieve,
37444
- getHealthDrfRetrieve,
37445
- getKnowbaseAdminChatHistoryRetrieve,
37446
- getKnowbaseAdminChatList,
37447
- getKnowbaseAdminChatRetrieve,
37448
- getKnowbaseAdminDocumentsList,
37449
- getKnowbaseAdminDocumentsRetrieve,
37450
- getKnowbaseAdminDocumentsStatsRetrieve,
37451
- getKnowbaseAdminDocumentsStatusRetrieve,
37452
- getKnowbaseAdminSessionsList,
37453
- getKnowbaseAdminSessionsRetrieve,
37454
- getKnowbaseCategoriesList,
37455
- getKnowbaseCategoriesRetrieve,
37456
- getKnowbaseDocumentsList,
37457
- getKnowbaseDocumentsRetrieve,
37458
- getKnowbaseSystemArchivesFileTreeRetrieve,
37459
- getKnowbaseSystemArchivesItemsList,
37460
- getKnowbaseSystemArchivesList,
37461
- getKnowbaseSystemArchivesRetrieve,
37462
- getKnowbaseSystemArchivesStatisticsRetrieve,
37463
- getKnowbaseSystemArchivesVectorizationStatsRetrieve,
37464
- getKnowbaseSystemChunksContextRetrieve,
37465
- getKnowbaseSystemChunksList,
37466
- getKnowbaseSystemChunksRetrieve,
37467
- getKnowbaseSystemItemsChunksList,
37468
- getKnowbaseSystemItemsContentRetrieve,
37469
- getKnowbaseSystemItemsList,
37470
- getKnowbaseSystemItemsRetrieve,
37471
- getLeadsList,
37472
- getLeadsRetrieve,
37473
- getNewsletterCampaignsList,
37474
- getNewsletterCampaignsRetrieve,
37475
- getNewsletterLogsList,
37476
- getNewsletterNewslettersList,
37477
- getNewsletterNewslettersRetrieve,
37478
- getNewsletterSubscriptionsList,
37479
- getPaymentsAdminApiPaymentsList,
37480
- getPaymentsAdminApiPaymentsRetrieve,
37481
- getPaymentsAdminApiPaymentsStatsRetrieve,
37482
- getPaymentsAdminApiStatsList,
37483
- getPaymentsAdminApiStatsPaymentsRetrieve,
37484
- getPaymentsAdminApiStatsRetrieve,
37485
- getPaymentsAdminApiStatsSystemRetrieve,
37486
- getPaymentsAdminApiStatsWebhooksRetrieve,
37487
- getPaymentsAdminApiUsersList,
37488
- getPaymentsAdminApiUsersRetrieve,
37489
- getPaymentsAdminApiWebhooksEventsList,
37490
- getPaymentsAdminApiWebhooksEventsRetrieve,
37491
- getPaymentsAdminApiWebhooksList,
37492
- getPaymentsAdminApiWebhooksRetrieve,
37493
- getPaymentsAdminApiWebhooksStatsRetrieve,
37494
- getPaymentsApiKeysAnalyticsRetrieve,
37495
- getPaymentsApiKeysByUserRetrieve,
37496
- getPaymentsApiKeysExpiringSoonRetrieve,
37497
- getPaymentsApiKeysHealthRetrieve,
37498
- getPaymentsApiKeysList,
37499
- getPaymentsApiKeysRetrieve,
37500
- getPaymentsApiKeysStatsRetrieve,
37501
- getPaymentsBalancesAnalyticsRetrieve,
37502
- getPaymentsBalancesHealthRetrieve,
37503
- getPaymentsBalancesList,
37504
- getPaymentsBalancesRetrieve,
37505
- getPaymentsBalancesStatsRetrieve,
37506
- getPaymentsBalancesSummaryRetrieve,
37507
- getPaymentsCurrenciesCryptoRetrieve,
37508
- getPaymentsCurrenciesFiatRetrieve,
37509
- getPaymentsCurrenciesHealthRetrieve,
37510
- getPaymentsCurrenciesList,
37511
- getPaymentsCurrenciesNetworksRetrieve,
37512
- getPaymentsCurrenciesProvidersRetrieve,
37513
- getPaymentsCurrenciesRatesRetrieve,
37514
- getPaymentsCurrenciesRetrieve,
37515
- getPaymentsCurrenciesStableRetrieve,
37516
- getPaymentsCurrenciesStatsRetrieve,
37517
- getPaymentsCurrenciesSupportedRetrieve,
37518
- getPaymentsEndpointGroupsAvailableRetrieve,
37519
- getPaymentsEndpointGroupsHealthRetrieve,
37520
- getPaymentsEndpointGroupsList,
37521
- getPaymentsEndpointGroupsRetrieve,
37522
- getPaymentsEndpointGroupsStatsRetrieve,
37523
- getPaymentsHealthRetrieve,
37524
- getPaymentsNetworksByCurrencyRetrieve,
37525
- getPaymentsNetworksHealthRetrieve,
37526
- getPaymentsNetworksList,
37527
- getPaymentsNetworksRetrieve,
37528
- getPaymentsNetworksStatsRetrieve,
37529
- getPaymentsOverviewDashboardApiKeysOverviewRetrieve,
37530
- getPaymentsOverviewDashboardBalanceOverviewRetrieve,
37531
- getPaymentsOverviewDashboardChartDataRetrieve,
37532
- getPaymentsOverviewDashboardMetricsRetrieve,
37533
- getPaymentsOverviewDashboardOverviewRetrieve,
37534
- getPaymentsOverviewDashboardPaymentAnalyticsRetrieve,
37535
- getPaymentsOverviewDashboardRecentPaymentsList,
37536
- getPaymentsOverviewDashboardRecentTransactionsList,
37537
- getPaymentsOverviewDashboardSubscriptionOverviewRetrieve,
37538
- getPaymentsPaymentAnalyticsRetrieve,
37539
- getPaymentsPaymentByProviderRetrieve,
37540
- getPaymentsPaymentHealthRetrieve,
37541
- getPaymentsPaymentList,
37542
- getPaymentsPaymentRetrieve,
37543
- getPaymentsPaymentStatsRetrieve,
37544
- getPaymentsPaymentStatusRetrieve,
37545
- getPaymentsProviderCurrenciesByProviderRetrieve,
37546
- getPaymentsProviderCurrenciesHealthRetrieve,
37547
- getPaymentsProviderCurrenciesLimitsRetrieve,
37548
- getPaymentsProviderCurrenciesList,
37549
- getPaymentsProviderCurrenciesRetrieve,
37550
- getPaymentsProviderCurrenciesStatsRetrieve,
37551
- getPaymentsSubscriptionsAnalyticsRetrieve,
37552
- getPaymentsSubscriptionsByStatusRetrieve,
37553
- getPaymentsSubscriptionsByTierRetrieve,
37554
- getPaymentsSubscriptionsHealthRetrieve,
37555
- getPaymentsSubscriptionsList,
37556
- getPaymentsSubscriptionsRetrieve,
37557
- getPaymentsSubscriptionsStatsRetrieve,
37558
- getPaymentsTariffsEndpointGroupsRetrieve,
37559
- getPaymentsTariffsFreeRetrieve,
37560
- getPaymentsTariffsHealthRetrieve,
37561
- getPaymentsTariffsList,
37562
- getPaymentsTariffsPaidRetrieve,
37563
- getPaymentsTariffsRetrieve,
37564
- getPaymentsTariffsStatsRetrieve,
37565
- getPaymentsTransactionsByTypeRetrieve,
37566
- getPaymentsTransactionsHealthRetrieve,
37567
- getPaymentsTransactionsList,
37568
- getPaymentsTransactionsRecentRetrieve,
37569
- getPaymentsTransactionsRetrieve,
37570
- getPaymentsTransactionsStatsRetrieve,
37571
- getPaymentsUsersApiKeysActiveRetrieve,
37572
- getPaymentsUsersApiKeysHealthRetrieve,
37573
- getPaymentsUsersApiKeysList,
37574
- getPaymentsUsersApiKeysRetrieve,
37575
- getPaymentsUsersApiKeysStatsRetrieve,
37576
- getPaymentsUsersApiKeysSummaryRetrieve,
37577
- getPaymentsUsersHealthRetrieve,
37578
- getPaymentsUsersList,
37579
- getPaymentsUsersPaymentHealthRetrieve,
37580
- getPaymentsUsersPaymentList,
37581
- getPaymentsUsersPaymentRetrieve,
37582
- getPaymentsUsersPaymentStatsRetrieve,
37583
- getPaymentsUsersPaymentSummaryRetrieve,
37584
- getPaymentsUsersRetrieve,
37585
- getPaymentsUsersStatsRetrieve,
37586
- getPaymentsUsersSubscriptionsActiveRetrieve,
37587
- getPaymentsUsersSubscriptionsHealthRetrieve,
37588
- getPaymentsUsersSubscriptionsList,
37589
- getPaymentsUsersSubscriptionsRetrieve,
37590
- getPaymentsUsersSubscriptionsStatsRetrieve,
37591
- getPaymentsUsersSubscriptionsSummaryRetrieve,
37592
- getPaymentsUsersSummaryRetrieve,
37593
- getPaymentsWebhooksHealthRetrieve,
37594
- getPaymentsWebhooksProvidersRetrieve,
37595
- getPaymentsWebhooksRetrieve,
37596
- getPaymentsWebhooksStatsRetrieve,
37597
- getSupportTicketsList,
37598
- getSupportTicketsMessagesList,
37599
- getSupportTicketsMessagesRetrieve,
37600
- getSupportTicketsRetrieve,
37601
- getTasksApiQueuesStatusRetrieve,
37602
- getTasksApiTasksListRetrieve,
37603
- getTasksApiTasksStatsRetrieve,
37604
- getTasksApiWorkersListRetrieve,
37605
37472
  isAPIConfigured,
37606
- partialUpdateAccountsProfilePartialPartialUpdate,
37607
- partialUpdateAccountsProfilePartialUpdate,
37608
- partialUpdateAccountsProfileUpdatePartialUpdate,
37609
- partialUpdateKnowbaseAdminChatPartialUpdate,
37610
- partialUpdateKnowbaseAdminDocumentsPartialUpdate,
37611
- partialUpdateKnowbaseAdminSessionsPartialUpdate,
37612
- partialUpdateKnowbaseSystemArchivesPartialUpdate,
37613
- partialUpdateKnowbaseSystemChunksPartialUpdate,
37614
- partialUpdateKnowbaseSystemItemsPartialUpdate,
37615
- partialUpdateLeadsPartialUpdate,
37616
- partialUpdateNewsletterCampaignsPartialUpdate,
37617
- partialUpdateNewsletterUnsubscribePartialUpdate,
37618
- partialUpdatePaymentsAdminApiPaymentsPartialUpdate,
37619
- partialUpdatePaymentsApiKeysPartialUpdate,
37620
- partialUpdatePaymentsPaymentPartialUpdate,
37621
- partialUpdatePaymentsSubscriptionsPartialUpdate,
37622
- partialUpdatePaymentsUsersApiKeysPartialUpdate,
37623
- partialUpdatePaymentsUsersPartialUpdate,
37624
- partialUpdatePaymentsUsersPaymentPartialUpdate,
37625
- partialUpdatePaymentsUsersSubscriptionsPartialUpdate,
37626
- partialUpdateSupportTicketsMessagesPartialUpdate,
37627
- partialUpdateSupportTicketsPartialUpdate,
37628
37473
  reconfigureAPI,
37629
37474
  resetAPI,
37630
37475
  shouldRetry,
37631
- updateAccountsProfileUpdateUpdate,
37632
- updateKnowbaseAdminChatUpdate,
37633
- updateKnowbaseAdminDocumentsUpdate,
37634
- updateKnowbaseAdminSessionsUpdate,
37635
- updateKnowbaseSystemArchivesUpdate,
37636
- updateKnowbaseSystemChunksUpdate,
37637
- updateKnowbaseSystemItemsUpdate,
37638
- updateLeadsUpdate,
37639
- updateNewsletterCampaignsUpdate,
37640
- updateNewsletterUnsubscribeUpdate,
37641
- updatePaymentsAdminApiPaymentsUpdate,
37642
- updatePaymentsApiKeysUpdate,
37643
- updatePaymentsPaymentUpdate,
37644
- updatePaymentsSubscriptionsUpdate,
37645
- updatePaymentsUsersApiKeysUpdate,
37646
- updatePaymentsUsersPaymentUpdate,
37647
- updatePaymentsUsersSubscriptionsUpdate,
37648
- updatePaymentsUsersUpdate,
37649
- updateSupportTicketsMessagesUpdate,
37650
- updateSupportTicketsUpdate,
37651
37476
  useAccountsContext,
37652
37477
  useApiKeysContext,
37653
37478
  useBalancesContext,
@@ -37659,6 +37484,7 @@ export {
37659
37484
  useNewsletterContext,
37660
37485
  useOverviewContext,
37661
37486
  usePaymentsContext,
37487
+ useRootPaymentsContext,
37662
37488
  useSupportContext,
37663
37489
  withRetry
37664
37490
  };