@djangocfg/api 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1544 -1490
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +314 -256
- package/dist/index.d.ts +314 -256
- package/dist/index.mjs +1542 -1490
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/contexts/payments/ApiKeysContext.tsx +2 -2
- package/src/cfg/contexts/payments/CurrenciesContext.tsx +0 -26
- package/src/cfg/contexts/payments/OverviewContext.tsx +79 -0
- package/src/cfg/contexts/payments/RootPaymentsContext.tsx +137 -0
- package/src/cfg/contexts/payments/index.ts +13 -0
- package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +12 -10
- package/src/cfg/generated/_utils/hooks/cfg__payments.ts +12 -10
- package/src/cfg/generated/_utils/schemas/APIKeyValidationResponse.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/AdminPaymentDetail.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/AdminPaymentList.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/CurrencyList.schema.ts +2 -0
- package/src/cfg/generated/_utils/schemas/CurrencyRates.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/Network.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/PatchedPaymentRequest.schema.ts +0 -2
- package/src/cfg/generated/_utils/schemas/Payment.schema.ts +3 -2
- package/src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts +1 -3
- package/src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts +1 -3
- package/src/cfg/generated/_utils/schemas/PaymentRequest.schema.ts +0 -2
- package/src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/SupportedCurrencies.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/index.ts +2 -0
- package/src/cfg/generated/cfg__payments/client.ts +24 -44
- package/src/cfg/generated/cfg__payments/models.ts +52 -46
- package/src/cfg/generated/enums.ts +34 -66
- package/src/cfg/generated/schema.ts +103 -124
- package/src/index.ts +20 -1
package/dist/index.cjs
CHANGED
|
@@ -85,6 +85,7 @@ __export(index_exports, {
|
|
|
85
85
|
PaymentsProvider: () => PaymentsProvider,
|
|
86
86
|
PaymentsService: () => PaymentsService,
|
|
87
87
|
REFRESH_TOKEN_KEY: () => REFRESH_TOKEN_KEY,
|
|
88
|
+
RootPaymentsProvider: () => RootPaymentsProvider,
|
|
88
89
|
Schemas: () => schemas_exports,
|
|
89
90
|
SubscriptionsService: () => SubscriptionsService,
|
|
90
91
|
SupportProvider: () => SupportProvider,
|
|
@@ -403,6 +404,7 @@ __export(index_exports, {
|
|
|
403
404
|
useNewsletterContext: () => useNewsletterContext,
|
|
404
405
|
useOverviewContext: () => useOverviewContext,
|
|
405
406
|
usePaymentsContext: () => usePaymentsContext,
|
|
407
|
+
useRootPaymentsContext: () => useRootPaymentsContext,
|
|
406
408
|
useSupportContext: () => useSupportContext,
|
|
407
409
|
withRetry: () => withRetry
|
|
408
410
|
});
|
|
@@ -1745,8 +1747,9 @@ var CfgPayments = class {
|
|
|
1745
1747
|
return response;
|
|
1746
1748
|
}
|
|
1747
1749
|
/**
|
|
1748
|
-
*
|
|
1749
|
-
*
|
|
1750
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1751
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1752
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1750
1753
|
*/
|
|
1751
1754
|
async apiKeysList(...args) {
|
|
1752
1755
|
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
@@ -1760,40 +1763,45 @@ var CfgPayments = class {
|
|
|
1760
1763
|
return response;
|
|
1761
1764
|
}
|
|
1762
1765
|
/**
|
|
1763
|
-
*
|
|
1764
|
-
*
|
|
1766
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1767
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1768
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1765
1769
|
*/
|
|
1766
1770
|
async apiKeysCreate(data) {
|
|
1767
1771
|
const response = await this.client.request("POST", "/cfg/payments/api-keys/", { body: data });
|
|
1768
1772
|
return response;
|
|
1769
1773
|
}
|
|
1770
1774
|
/**
|
|
1771
|
-
*
|
|
1772
|
-
*
|
|
1775
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1776
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1777
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1773
1778
|
*/
|
|
1774
1779
|
async apiKeysRetrieve(id) {
|
|
1775
1780
|
const response = await this.client.request("GET", `/cfg/payments/api-keys/${id}/`);
|
|
1776
1781
|
return response;
|
|
1777
1782
|
}
|
|
1778
1783
|
/**
|
|
1779
|
-
*
|
|
1780
|
-
*
|
|
1784
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1785
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1786
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1781
1787
|
*/
|
|
1782
1788
|
async apiKeysUpdate(id, data) {
|
|
1783
1789
|
const response = await this.client.request("PUT", `/cfg/payments/api-keys/${id}/`, { body: data });
|
|
1784
1790
|
return response;
|
|
1785
1791
|
}
|
|
1786
1792
|
/**
|
|
1787
|
-
*
|
|
1788
|
-
*
|
|
1793
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1794
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1795
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1789
1796
|
*/
|
|
1790
1797
|
async apiKeysPartialUpdate(id, data) {
|
|
1791
1798
|
const response = await this.client.request("PATCH", `/cfg/payments/api-keys/${id}/`, { body: data });
|
|
1792
1799
|
return response;
|
|
1793
1800
|
}
|
|
1794
1801
|
/**
|
|
1795
|
-
*
|
|
1796
|
-
*
|
|
1802
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1803
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1804
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1797
1805
|
*/
|
|
1798
1806
|
async apiKeysDestroy(id) {
|
|
1799
1807
|
const response = await this.client.request("DELETE", `/cfg/payments/api-keys/${id}/`);
|
|
@@ -1997,19 +2005,10 @@ var CfgPayments = class {
|
|
|
1997
2005
|
return response;
|
|
1998
2006
|
}
|
|
1999
2007
|
/**
|
|
2000
|
-
* Get exchange rates
|
|
2001
|
-
*
|
|
2002
|
-
* Get current exchange rates for specified currencies
|
|
2008
|
+
* Get current exchange rates.
|
|
2003
2009
|
*/
|
|
2004
|
-
async currenciesRatesRetrieve(
|
|
2005
|
-
const
|
|
2006
|
-
let params;
|
|
2007
|
-
if (isParamsObject) {
|
|
2008
|
-
params = args[0];
|
|
2009
|
-
} else {
|
|
2010
|
-
params = { base_currency: args[0], currencies: args[1] };
|
|
2011
|
-
}
|
|
2012
|
-
const response = await this.client.request("GET", "/cfg/payments/currencies/rates/", { params });
|
|
2010
|
+
async currenciesRatesRetrieve() {
|
|
2011
|
+
const response = await this.client.request("GET", "/cfg/payments/currencies/rates/");
|
|
2013
2012
|
return response;
|
|
2014
2013
|
}
|
|
2015
2014
|
/**
|
|
@@ -2028,19 +2027,10 @@ var CfgPayments = class {
|
|
|
2028
2027
|
return response;
|
|
2029
2028
|
}
|
|
2030
2029
|
/**
|
|
2031
|
-
* Get supported currencies
|
|
2032
|
-
*
|
|
2033
|
-
* Get list of supported currencies from payment providers
|
|
2030
|
+
* Get supported currencies from providers.
|
|
2034
2031
|
*/
|
|
2035
|
-
async currenciesSupportedRetrieve(
|
|
2036
|
-
const
|
|
2037
|
-
let params;
|
|
2038
|
-
if (isParamsObject) {
|
|
2039
|
-
params = args[0];
|
|
2040
|
-
} else {
|
|
2041
|
-
params = { currency_type: args[0], provider: args[1] };
|
|
2042
|
-
}
|
|
2043
|
-
const response = await this.client.request("GET", "/cfg/payments/currencies/supported/", { params });
|
|
2032
|
+
async currenciesSupportedRetrieve() {
|
|
2033
|
+
const response = await this.client.request("GET", "/cfg/payments/currencies/supported/");
|
|
2044
2034
|
return response;
|
|
2045
2035
|
}
|
|
2046
2036
|
/**
|
|
@@ -6149,6 +6139,19 @@ var OPENAPI_SCHEMA = {
|
|
|
6149
6139
|
"type_display": {
|
|
6150
6140
|
"readOnly": true,
|
|
6151
6141
|
"type": "string"
|
|
6142
|
+
},
|
|
6143
|
+
"usd_rate": {
|
|
6144
|
+
"description": "Current USD exchange rate (1 unit = X USD)",
|
|
6145
|
+
"format": "double",
|
|
6146
|
+
"readOnly": true,
|
|
6147
|
+
"type": "number"
|
|
6148
|
+
},
|
|
6149
|
+
"usd_rate_updated_at": {
|
|
6150
|
+
"description": "When USD rate was last updated",
|
|
6151
|
+
"format": "date-time",
|
|
6152
|
+
"nullable": true,
|
|
6153
|
+
"readOnly": true,
|
|
6154
|
+
"type": "string"
|
|
6152
6155
|
}
|
|
6153
6156
|
},
|
|
6154
6157
|
"required": [
|
|
@@ -6158,10 +6161,41 @@ var OPENAPI_SCHEMA = {
|
|
|
6158
6161
|
"is_active",
|
|
6159
6162
|
"name",
|
|
6160
6163
|
"symbol",
|
|
6161
|
-
"type_display"
|
|
6164
|
+
"type_display",
|
|
6165
|
+
"usd_rate",
|
|
6166
|
+
"usd_rate_updated_at"
|
|
6162
6167
|
],
|
|
6163
6168
|
"type": "object"
|
|
6164
6169
|
},
|
|
6170
|
+
"CurrencyRates": {
|
|
6171
|
+
"description": "Currency rates serializer for getting exchange rates.\n\nFetches current exchange rates through CurrencyService.",
|
|
6172
|
+
"properties": {
|
|
6173
|
+
"base_currency": {
|
|
6174
|
+
"default": "USD",
|
|
6175
|
+
"description": "Base currency for rates (default: USD)",
|
|
6176
|
+
"maxLength": 10,
|
|
6177
|
+
"type": "string"
|
|
6178
|
+
},
|
|
6179
|
+
"currencies": {
|
|
6180
|
+
"description": "Specific currencies to get rates for (optional)",
|
|
6181
|
+
"items": {
|
|
6182
|
+
"maxLength": 10,
|
|
6183
|
+
"type": "string"
|
|
6184
|
+
},
|
|
6185
|
+
"type": "array"
|
|
6186
|
+
},
|
|
6187
|
+
"provider": {
|
|
6188
|
+
"default": "nowpayments",
|
|
6189
|
+
"description": "Provider for exchange rates\n\n* `nowpayments` - NowPayments",
|
|
6190
|
+
"enum": [
|
|
6191
|
+
"nowpayments"
|
|
6192
|
+
],
|
|
6193
|
+
"type": "string",
|
|
6194
|
+
"x-spec-enum-id": "47694db6bd068cb3"
|
|
6195
|
+
}
|
|
6196
|
+
},
|
|
6197
|
+
"type": "object"
|
|
6198
|
+
},
|
|
6165
6199
|
"Document": {
|
|
6166
6200
|
"description": "Document response serializer.",
|
|
6167
6201
|
"properties": {
|
|
@@ -7550,6 +7584,7 @@ var OPENAPI_SCHEMA = {
|
|
|
7550
7584
|
"$ref": "#/components/schemas/CurrencyList"
|
|
7551
7585
|
}
|
|
7552
7586
|
],
|
|
7587
|
+
"nullable": true,
|
|
7553
7588
|
"readOnly": true
|
|
7554
7589
|
},
|
|
7555
7590
|
"id": {
|
|
@@ -10398,10 +10433,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10398
10433
|
"nullable": true,
|
|
10399
10434
|
"type": "string"
|
|
10400
10435
|
},
|
|
10401
|
-
"currency": {
|
|
10402
|
-
"description": "Payment currency",
|
|
10403
|
-
"type": "integer"
|
|
10404
|
-
},
|
|
10405
10436
|
"description": {
|
|
10406
10437
|
"description": "Payment description",
|
|
10407
10438
|
"type": "string"
|
|
@@ -10412,11 +10443,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10412
10443
|
"nullable": true,
|
|
10413
10444
|
"type": "string"
|
|
10414
10445
|
},
|
|
10415
|
-
"network": {
|
|
10416
|
-
"description": "Blockchain network (for crypto payments)",
|
|
10417
|
-
"nullable": true,
|
|
10418
|
-
"type": "integer"
|
|
10419
|
-
},
|
|
10420
10446
|
"provider": {
|
|
10421
10447
|
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
10422
10448
|
"enum": [
|
|
@@ -10540,6 +10566,12 @@ var OPENAPI_SCHEMA = {
|
|
|
10540
10566
|
"Payment": {
|
|
10541
10567
|
"description": "Complete payment serializer with full details.\n\nUsed for detail views and updates.",
|
|
10542
10568
|
"properties": {
|
|
10569
|
+
"amount_crypto": {
|
|
10570
|
+
"description": "Calculate crypto amount from USD amount and currency rate.",
|
|
10571
|
+
"format": "double",
|
|
10572
|
+
"readOnly": true,
|
|
10573
|
+
"type": "number"
|
|
10574
|
+
},
|
|
10543
10575
|
"amount_display": {
|
|
10544
10576
|
"description": "Get formatted amount display.",
|
|
10545
10577
|
"readOnly": true,
|
|
@@ -10585,8 +10617,8 @@ var OPENAPI_SCHEMA = {
|
|
|
10585
10617
|
"type": "string"
|
|
10586
10618
|
},
|
|
10587
10619
|
"currency": {
|
|
10588
|
-
"
|
|
10589
|
-
"type": "
|
|
10620
|
+
"readOnly": true,
|
|
10621
|
+
"type": "string"
|
|
10590
10622
|
},
|
|
10591
10623
|
"description": {
|
|
10592
10624
|
"description": "Payment description",
|
|
@@ -10625,9 +10657,9 @@ var OPENAPI_SCHEMA = {
|
|
|
10625
10657
|
"type": "boolean"
|
|
10626
10658
|
},
|
|
10627
10659
|
"network": {
|
|
10628
|
-
"description": "Blockchain network (for crypto payments)",
|
|
10629
10660
|
"nullable": true,
|
|
10630
|
-
"
|
|
10661
|
+
"readOnly": true,
|
|
10662
|
+
"type": "string"
|
|
10631
10663
|
},
|
|
10632
10664
|
"pay_address": {
|
|
10633
10665
|
"description": "Cryptocurrency payment address",
|
|
@@ -10693,6 +10725,7 @@ var OPENAPI_SCHEMA = {
|
|
|
10693
10725
|
}
|
|
10694
10726
|
},
|
|
10695
10727
|
"required": [
|
|
10728
|
+
"amount_crypto",
|
|
10696
10729
|
"amount_display",
|
|
10697
10730
|
"amount_usd",
|
|
10698
10731
|
"completed_at",
|
|
@@ -10704,6 +10737,7 @@ var OPENAPI_SCHEMA = {
|
|
|
10704
10737
|
"is_expired",
|
|
10705
10738
|
"is_failed",
|
|
10706
10739
|
"is_pending",
|
|
10740
|
+
"network",
|
|
10707
10741
|
"pay_address",
|
|
10708
10742
|
"payment_url",
|
|
10709
10743
|
"provider_payment_id",
|
|
@@ -10759,19 +10793,9 @@ var OPENAPI_SCHEMA = {
|
|
|
10759
10793
|
"type": "string"
|
|
10760
10794
|
},
|
|
10761
10795
|
"currency_code": {
|
|
10762
|
-
"description": "Cryptocurrency
|
|
10763
|
-
"
|
|
10764
|
-
|
|
10765
|
-
"ETH",
|
|
10766
|
-
"LTC",
|
|
10767
|
-
"XMR",
|
|
10768
|
-
"USDT",
|
|
10769
|
-
"USDC",
|
|
10770
|
-
"ADA",
|
|
10771
|
-
"DOT"
|
|
10772
|
-
],
|
|
10773
|
-
"type": "string",
|
|
10774
|
-
"x-spec-enum-id": "a26a773d0d4fed5c"
|
|
10796
|
+
"description": "Cryptocurrency code (validated against active currencies)",
|
|
10797
|
+
"maxLength": 10,
|
|
10798
|
+
"type": "string"
|
|
10775
10799
|
},
|
|
10776
10800
|
"description": {
|
|
10777
10801
|
"description": "Payment description",
|
|
@@ -10780,15 +10804,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10780
10804
|
},
|
|
10781
10805
|
"metadata": {
|
|
10782
10806
|
"description": "Additional metadata"
|
|
10783
|
-
},
|
|
10784
|
-
"provider": {
|
|
10785
|
-
"default": "nowpayments",
|
|
10786
|
-
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
10787
|
-
"enum": [
|
|
10788
|
-
"nowpayments"
|
|
10789
|
-
],
|
|
10790
|
-
"type": "string",
|
|
10791
|
-
"x-spec-enum-id": "47694db6bd068cb3"
|
|
10792
10807
|
}
|
|
10793
10808
|
},
|
|
10794
10809
|
"required": [
|
|
@@ -10818,19 +10833,10 @@ var OPENAPI_SCHEMA = {
|
|
|
10818
10833
|
"type": "string"
|
|
10819
10834
|
},
|
|
10820
10835
|
"currency_code": {
|
|
10821
|
-
"description": "Cryptocurrency
|
|
10822
|
-
"
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
"LTC",
|
|
10826
|
-
"XMR",
|
|
10827
|
-
"USDT",
|
|
10828
|
-
"USDC",
|
|
10829
|
-
"ADA",
|
|
10830
|
-
"DOT"
|
|
10831
|
-
],
|
|
10832
|
-
"type": "string",
|
|
10833
|
-
"x-spec-enum-id": "a26a773d0d4fed5c"
|
|
10836
|
+
"description": "Cryptocurrency code (validated against active currencies)",
|
|
10837
|
+
"maxLength": 10,
|
|
10838
|
+
"minLength": 1,
|
|
10839
|
+
"type": "string"
|
|
10834
10840
|
},
|
|
10835
10841
|
"description": {
|
|
10836
10842
|
"description": "Payment description",
|
|
@@ -10839,15 +10845,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10839
10845
|
},
|
|
10840
10846
|
"metadata": {
|
|
10841
10847
|
"description": "Additional metadata"
|
|
10842
|
-
},
|
|
10843
|
-
"provider": {
|
|
10844
|
-
"default": "nowpayments",
|
|
10845
|
-
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
10846
|
-
"enum": [
|
|
10847
|
-
"nowpayments"
|
|
10848
|
-
],
|
|
10849
|
-
"type": "string",
|
|
10850
|
-
"x-spec-enum-id": "47694db6bd068cb3"
|
|
10851
10848
|
}
|
|
10852
10849
|
},
|
|
10853
10850
|
"required": [
|
|
@@ -11042,10 +11039,6 @@ var OPENAPI_SCHEMA = {
|
|
|
11042
11039
|
"nullable": true,
|
|
11043
11040
|
"type": "string"
|
|
11044
11041
|
},
|
|
11045
|
-
"currency": {
|
|
11046
|
-
"description": "Payment currency",
|
|
11047
|
-
"type": "integer"
|
|
11048
|
-
},
|
|
11049
11042
|
"description": {
|
|
11050
11043
|
"description": "Payment description",
|
|
11051
11044
|
"type": "string"
|
|
@@ -11056,11 +11049,6 @@ var OPENAPI_SCHEMA = {
|
|
|
11056
11049
|
"nullable": true,
|
|
11057
11050
|
"type": "string"
|
|
11058
11051
|
},
|
|
11059
|
-
"network": {
|
|
11060
|
-
"description": "Blockchain network (for crypto payments)",
|
|
11061
|
-
"nullable": true,
|
|
11062
|
-
"type": "integer"
|
|
11063
|
-
},
|
|
11064
11052
|
"provider": {
|
|
11065
11053
|
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
11066
11054
|
"enum": [
|
|
@@ -11086,8 +11074,7 @@ var OPENAPI_SCHEMA = {
|
|
|
11086
11074
|
}
|
|
11087
11075
|
},
|
|
11088
11076
|
"required": [
|
|
11089
|
-
"amount_usd"
|
|
11090
|
-
"currency"
|
|
11077
|
+
"amount_usd"
|
|
11091
11078
|
],
|
|
11092
11079
|
"type": "object"
|
|
11093
11080
|
},
|
|
@@ -11288,6 +11275,7 @@ var OPENAPI_SCHEMA = {
|
|
|
11288
11275
|
"$ref": "#/components/schemas/Network"
|
|
11289
11276
|
}
|
|
11290
11277
|
],
|
|
11278
|
+
"nullable": true,
|
|
11291
11279
|
"readOnly": true
|
|
11292
11280
|
},
|
|
11293
11281
|
"provider": {
|
|
@@ -12261,6 +12249,32 @@ var OPENAPI_SCHEMA = {
|
|
|
12261
12249
|
],
|
|
12262
12250
|
"type": "object"
|
|
12263
12251
|
},
|
|
12252
|
+
"SupportedCurrencies": {
|
|
12253
|
+
"description": "Supported currencies serializer for provider capabilities.\n\nGets supported currencies from providers through CurrencyService.",
|
|
12254
|
+
"properties": {
|
|
12255
|
+
"currency_type": {
|
|
12256
|
+
"default": "all",
|
|
12257
|
+
"description": "Filter by currency type\n\n* `all` - All\n* `crypto` - Cryptocurrency\n* `fiat` - Fiat Currency",
|
|
12258
|
+
"enum": [
|
|
12259
|
+
"all",
|
|
12260
|
+
"crypto",
|
|
12261
|
+
"fiat"
|
|
12262
|
+
],
|
|
12263
|
+
"type": "string",
|
|
12264
|
+
"x-spec-enum-id": "aaea9f89fe6374a5"
|
|
12265
|
+
},
|
|
12266
|
+
"provider": {
|
|
12267
|
+
"default": "nowpayments",
|
|
12268
|
+
"description": "Provider to get supported currencies from\n\n* `nowpayments` - NowPayments",
|
|
12269
|
+
"enum": [
|
|
12270
|
+
"nowpayments"
|
|
12271
|
+
],
|
|
12272
|
+
"type": "string",
|
|
12273
|
+
"x-spec-enum-id": "47694db6bd068cb3"
|
|
12274
|
+
}
|
|
12275
|
+
},
|
|
12276
|
+
"type": "object"
|
|
12277
|
+
},
|
|
12264
12278
|
"SupportedProviders": {
|
|
12265
12279
|
"description": "Serializer for supported providers response.",
|
|
12266
12280
|
"properties": {
|
|
@@ -19818,7 +19832,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19818
19832
|
},
|
|
19819
19833
|
"/cfg/payments/api-keys/": {
|
|
19820
19834
|
"get": {
|
|
19821
|
-
"description": "
|
|
19835
|
+
"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",
|
|
19822
19836
|
"operationId": "cfg_payments_api_keys_list",
|
|
19823
19837
|
"parameters": [
|
|
19824
19838
|
{
|
|
@@ -19898,7 +19912,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19898
19912
|
"x-async-capable": false
|
|
19899
19913
|
},
|
|
19900
19914
|
"post": {
|
|
19901
|
-
"description": "
|
|
19915
|
+
"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",
|
|
19902
19916
|
"operationId": "cfg_payments_api_keys_create",
|
|
19903
19917
|
"requestBody": {
|
|
19904
19918
|
"content": {
|
|
@@ -20250,7 +20264,7 @@ var OPENAPI_SCHEMA = {
|
|
|
20250
20264
|
},
|
|
20251
20265
|
"/cfg/payments/api-keys/{id}/": {
|
|
20252
20266
|
"delete": {
|
|
20253
|
-
"description": "
|
|
20267
|
+
"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",
|
|
20254
20268
|
"operationId": "cfg_payments_api_keys_destroy",
|
|
20255
20269
|
"parameters": [
|
|
20256
20270
|
{
|
|
@@ -20283,7 +20297,7 @@ var OPENAPI_SCHEMA = {
|
|
|
20283
20297
|
"x-async-capable": false
|
|
20284
20298
|
},
|
|
20285
20299
|
"get": {
|
|
20286
|
-
"description": "
|
|
20300
|
+
"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",
|
|
20287
20301
|
"operationId": "cfg_payments_api_keys_retrieve",
|
|
20288
20302
|
"parameters": [
|
|
20289
20303
|
{
|
|
@@ -20323,7 +20337,7 @@ var OPENAPI_SCHEMA = {
|
|
|
20323
20337
|
"x-async-capable": false
|
|
20324
20338
|
},
|
|
20325
20339
|
"patch": {
|
|
20326
|
-
"description": "
|
|
20340
|
+
"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",
|
|
20327
20341
|
"operationId": "cfg_payments_api_keys_partial_update",
|
|
20328
20342
|
"parameters": [
|
|
20329
20343
|
{
|
|
@@ -20382,7 +20396,7 @@ var OPENAPI_SCHEMA = {
|
|
|
20382
20396
|
"x-async-capable": false
|
|
20383
20397
|
},
|
|
20384
20398
|
"put": {
|
|
20385
|
-
"description": "
|
|
20399
|
+
"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",
|
|
20386
20400
|
"operationId": "cfg_payments_api_keys_update",
|
|
20387
20401
|
"parameters": [
|
|
20388
20402
|
{
|
|
@@ -20958,25 +20972,136 @@ var OPENAPI_SCHEMA = {
|
|
|
20958
20972
|
},
|
|
20959
20973
|
"/cfg/payments/currencies/rates/": {
|
|
20960
20974
|
"get": {
|
|
20961
|
-
"description": "Get current exchange rates
|
|
20975
|
+
"description": "Get current exchange rates.",
|
|
20962
20976
|
"operationId": "cfg_payments_currencies_rates_retrieve",
|
|
20963
|
-
"
|
|
20977
|
+
"responses": {
|
|
20978
|
+
"200": {
|
|
20979
|
+
"content": {
|
|
20980
|
+
"application/json": {
|
|
20981
|
+
"schema": {
|
|
20982
|
+
"$ref": "#/components/schemas/CurrencyRates"
|
|
20983
|
+
}
|
|
20984
|
+
}
|
|
20985
|
+
},
|
|
20986
|
+
"description": ""
|
|
20987
|
+
}
|
|
20988
|
+
},
|
|
20989
|
+
"security": [
|
|
20964
20990
|
{
|
|
20965
|
-
"
|
|
20966
|
-
"in": "query",
|
|
20967
|
-
"name": "base_currency",
|
|
20968
|
-
"required": true,
|
|
20969
|
-
"schema": {
|
|
20970
|
-
"type": "string"
|
|
20971
|
-
}
|
|
20991
|
+
"jwtAuth": []
|
|
20972
20992
|
},
|
|
20973
20993
|
{
|
|
20974
|
-
"
|
|
20975
|
-
|
|
20976
|
-
|
|
20994
|
+
"cookieAuth": []
|
|
20995
|
+
}
|
|
20996
|
+
],
|
|
20997
|
+
"tags": [
|
|
20998
|
+
"payments"
|
|
20999
|
+
],
|
|
21000
|
+
"x-async-capable": false
|
|
21001
|
+
}
|
|
21002
|
+
},
|
|
21003
|
+
"/cfg/payments/currencies/stable/": {
|
|
21004
|
+
"get": {
|
|
21005
|
+
"description": "Get only stablecoins.\n\nGET /api/currencies/stable/",
|
|
21006
|
+
"operationId": "cfg_payments_currencies_stable_retrieve",
|
|
21007
|
+
"responses": {
|
|
21008
|
+
"200": {
|
|
21009
|
+
"content": {
|
|
21010
|
+
"application/json": {
|
|
21011
|
+
"schema": {
|
|
21012
|
+
"$ref": "#/components/schemas/Currency"
|
|
21013
|
+
}
|
|
21014
|
+
}
|
|
21015
|
+
},
|
|
21016
|
+
"description": ""
|
|
21017
|
+
}
|
|
21018
|
+
},
|
|
21019
|
+
"security": [
|
|
21020
|
+
{
|
|
21021
|
+
"jwtAuth": []
|
|
21022
|
+
},
|
|
21023
|
+
{
|
|
21024
|
+
"cookieAuth": []
|
|
21025
|
+
}
|
|
21026
|
+
],
|
|
21027
|
+
"tags": [
|
|
21028
|
+
"payments"
|
|
21029
|
+
],
|
|
21030
|
+
"x-async-capable": false
|
|
21031
|
+
}
|
|
21032
|
+
},
|
|
21033
|
+
"/cfg/payments/currencies/stats/": {
|
|
21034
|
+
"get": {
|
|
21035
|
+
"description": "Get statistics for the current queryset.\n\nReturns counts, aggregates, and breakdowns.",
|
|
21036
|
+
"operationId": "cfg_payments_currencies_stats_retrieve",
|
|
21037
|
+
"responses": {
|
|
21038
|
+
"200": {
|
|
21039
|
+
"content": {
|
|
21040
|
+
"application/json": {
|
|
21041
|
+
"schema": {
|
|
21042
|
+
"$ref": "#/components/schemas/Currency"
|
|
21043
|
+
}
|
|
21044
|
+
}
|
|
21045
|
+
},
|
|
21046
|
+
"description": ""
|
|
21047
|
+
}
|
|
21048
|
+
},
|
|
21049
|
+
"security": [
|
|
21050
|
+
{
|
|
21051
|
+
"jwtAuth": []
|
|
21052
|
+
},
|
|
21053
|
+
{
|
|
21054
|
+
"cookieAuth": []
|
|
21055
|
+
}
|
|
21056
|
+
],
|
|
21057
|
+
"tags": [
|
|
21058
|
+
"payments"
|
|
21059
|
+
],
|
|
21060
|
+
"x-async-capable": false
|
|
21061
|
+
}
|
|
21062
|
+
},
|
|
21063
|
+
"/cfg/payments/currencies/supported/": {
|
|
21064
|
+
"get": {
|
|
21065
|
+
"description": "Get supported currencies from providers.",
|
|
21066
|
+
"operationId": "cfg_payments_currencies_supported_retrieve",
|
|
21067
|
+
"responses": {
|
|
21068
|
+
"200": {
|
|
21069
|
+
"content": {
|
|
21070
|
+
"application/json": {
|
|
21071
|
+
"schema": {
|
|
21072
|
+
"$ref": "#/components/schemas/SupportedCurrencies"
|
|
21073
|
+
}
|
|
21074
|
+
}
|
|
21075
|
+
},
|
|
21076
|
+
"description": ""
|
|
21077
|
+
}
|
|
21078
|
+
},
|
|
21079
|
+
"security": [
|
|
21080
|
+
{
|
|
21081
|
+
"jwtAuth": []
|
|
21082
|
+
},
|
|
21083
|
+
{
|
|
21084
|
+
"cookieAuth": []
|
|
21085
|
+
}
|
|
21086
|
+
],
|
|
21087
|
+
"tags": [
|
|
21088
|
+
"payments"
|
|
21089
|
+
],
|
|
21090
|
+
"x-async-capable": false
|
|
21091
|
+
}
|
|
21092
|
+
},
|
|
21093
|
+
"/cfg/payments/currencies/{id}/": {
|
|
21094
|
+
"get": {
|
|
21095
|
+
"description": "Currency ViewSet: /api/currencies/\n\nRead-only access to currency information with conversion capabilities.",
|
|
21096
|
+
"operationId": "cfg_payments_currencies_retrieve",
|
|
21097
|
+
"parameters": [
|
|
21098
|
+
{
|
|
21099
|
+
"description": "A unique integer value identifying this Currency.",
|
|
21100
|
+
"in": "path",
|
|
21101
|
+
"name": "id",
|
|
20977
21102
|
"required": true,
|
|
20978
21103
|
"schema": {
|
|
20979
|
-
"type": "
|
|
21104
|
+
"type": "integer"
|
|
20980
21105
|
}
|
|
20981
21106
|
}
|
|
20982
21107
|
],
|
|
@@ -21000,183 +21125,27 @@ var OPENAPI_SCHEMA = {
|
|
|
21000
21125
|
"cookieAuth": []
|
|
21001
21126
|
}
|
|
21002
21127
|
],
|
|
21003
|
-
"summary": "Get exchange rates",
|
|
21004
21128
|
"tags": [
|
|
21005
21129
|
"payments"
|
|
21006
21130
|
],
|
|
21007
21131
|
"x-async-capable": false
|
|
21008
21132
|
}
|
|
21009
21133
|
},
|
|
21010
|
-
"/cfg/payments/currencies/
|
|
21134
|
+
"/cfg/payments/currencies/{id}/networks/": {
|
|
21011
21135
|
"get": {
|
|
21012
|
-
"description": "Get
|
|
21013
|
-
"operationId": "
|
|
21014
|
-
"
|
|
21015
|
-
|
|
21016
|
-
"
|
|
21017
|
-
|
|
21018
|
-
|
|
21019
|
-
|
|
21020
|
-
|
|
21021
|
-
|
|
21022
|
-
}
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
},
|
|
21026
|
-
"security": [
|
|
21027
|
-
{
|
|
21028
|
-
"jwtAuth": []
|
|
21029
|
-
},
|
|
21030
|
-
{
|
|
21031
|
-
"cookieAuth": []
|
|
21032
|
-
}
|
|
21033
|
-
],
|
|
21034
|
-
"tags": [
|
|
21035
|
-
"payments"
|
|
21036
|
-
],
|
|
21037
|
-
"x-async-capable": false
|
|
21038
|
-
}
|
|
21039
|
-
},
|
|
21040
|
-
"/cfg/payments/currencies/stats/": {
|
|
21041
|
-
"get": {
|
|
21042
|
-
"description": "Get statistics for the current queryset.\n\nReturns counts, aggregates, and breakdowns.",
|
|
21043
|
-
"operationId": "cfg_payments_currencies_stats_retrieve",
|
|
21044
|
-
"responses": {
|
|
21045
|
-
"200": {
|
|
21046
|
-
"content": {
|
|
21047
|
-
"application/json": {
|
|
21048
|
-
"schema": {
|
|
21049
|
-
"$ref": "#/components/schemas/Currency"
|
|
21050
|
-
}
|
|
21051
|
-
}
|
|
21052
|
-
},
|
|
21053
|
-
"description": ""
|
|
21054
|
-
}
|
|
21055
|
-
},
|
|
21056
|
-
"security": [
|
|
21057
|
-
{
|
|
21058
|
-
"jwtAuth": []
|
|
21059
|
-
},
|
|
21060
|
-
{
|
|
21061
|
-
"cookieAuth": []
|
|
21062
|
-
}
|
|
21063
|
-
],
|
|
21064
|
-
"tags": [
|
|
21065
|
-
"payments"
|
|
21066
|
-
],
|
|
21067
|
-
"x-async-capable": false
|
|
21068
|
-
}
|
|
21069
|
-
},
|
|
21070
|
-
"/cfg/payments/currencies/supported/": {
|
|
21071
|
-
"get": {
|
|
21072
|
-
"description": "Get list of supported currencies from payment providers",
|
|
21073
|
-
"operationId": "cfg_payments_currencies_supported_retrieve",
|
|
21074
|
-
"parameters": [
|
|
21075
|
-
{
|
|
21076
|
-
"description": "Currency type filter: crypto, fiat, or stablecoin",
|
|
21077
|
-
"in": "query",
|
|
21078
|
-
"name": "currency_type",
|
|
21079
|
-
"schema": {
|
|
21080
|
-
"enum": [
|
|
21081
|
-
"crypto",
|
|
21082
|
-
"fiat",
|
|
21083
|
-
"stablecoin"
|
|
21084
|
-
],
|
|
21085
|
-
"type": "string"
|
|
21086
|
-
}
|
|
21087
|
-
},
|
|
21088
|
-
{
|
|
21089
|
-
"description": "Payment provider name (e.g., nowpayments)",
|
|
21090
|
-
"in": "query",
|
|
21091
|
-
"name": "provider",
|
|
21092
|
-
"schema": {
|
|
21093
|
-
"type": "string"
|
|
21094
|
-
}
|
|
21095
|
-
}
|
|
21096
|
-
],
|
|
21097
|
-
"responses": {
|
|
21098
|
-
"200": {
|
|
21099
|
-
"content": {
|
|
21100
|
-
"application/json": {
|
|
21101
|
-
"schema": {
|
|
21102
|
-
"$ref": "#/components/schemas/Currency"
|
|
21103
|
-
}
|
|
21104
|
-
}
|
|
21105
|
-
},
|
|
21106
|
-
"description": ""
|
|
21107
|
-
}
|
|
21108
|
-
},
|
|
21109
|
-
"security": [
|
|
21110
|
-
{
|
|
21111
|
-
"jwtAuth": []
|
|
21112
|
-
},
|
|
21113
|
-
{
|
|
21114
|
-
"cookieAuth": []
|
|
21115
|
-
}
|
|
21116
|
-
],
|
|
21117
|
-
"summary": "Get supported currencies",
|
|
21118
|
-
"tags": [
|
|
21119
|
-
"payments"
|
|
21120
|
-
],
|
|
21121
|
-
"x-async-capable": false
|
|
21122
|
-
}
|
|
21123
|
-
},
|
|
21124
|
-
"/cfg/payments/currencies/{id}/": {
|
|
21125
|
-
"get": {
|
|
21126
|
-
"description": "Currency ViewSet: /api/currencies/\n\nRead-only access to currency information with conversion capabilities.",
|
|
21127
|
-
"operationId": "cfg_payments_currencies_retrieve",
|
|
21128
|
-
"parameters": [
|
|
21129
|
-
{
|
|
21130
|
-
"description": "A unique integer value identifying this Currency.",
|
|
21131
|
-
"in": "path",
|
|
21132
|
-
"name": "id",
|
|
21133
|
-
"required": true,
|
|
21134
|
-
"schema": {
|
|
21135
|
-
"type": "integer"
|
|
21136
|
-
}
|
|
21137
|
-
}
|
|
21138
|
-
],
|
|
21139
|
-
"responses": {
|
|
21140
|
-
"200": {
|
|
21141
|
-
"content": {
|
|
21142
|
-
"application/json": {
|
|
21143
|
-
"schema": {
|
|
21144
|
-
"$ref": "#/components/schemas/Currency"
|
|
21145
|
-
}
|
|
21146
|
-
}
|
|
21147
|
-
},
|
|
21148
|
-
"description": ""
|
|
21149
|
-
}
|
|
21150
|
-
},
|
|
21151
|
-
"security": [
|
|
21152
|
-
{
|
|
21153
|
-
"jwtAuth": []
|
|
21154
|
-
},
|
|
21155
|
-
{
|
|
21156
|
-
"cookieAuth": []
|
|
21157
|
-
}
|
|
21158
|
-
],
|
|
21159
|
-
"tags": [
|
|
21160
|
-
"payments"
|
|
21161
|
-
],
|
|
21162
|
-
"x-async-capable": false
|
|
21163
|
-
}
|
|
21164
|
-
},
|
|
21165
|
-
"/cfg/payments/currencies/{id}/networks/": {
|
|
21166
|
-
"get": {
|
|
21167
|
-
"description": "Get networks for specific currency.\n\nGET /api/currencies/{id}/networks/",
|
|
21168
|
-
"operationId": "cfg_payments_currencies_networks_retrieve",
|
|
21169
|
-
"parameters": [
|
|
21170
|
-
{
|
|
21171
|
-
"description": "A unique integer value identifying this Currency.",
|
|
21172
|
-
"in": "path",
|
|
21173
|
-
"name": "id",
|
|
21174
|
-
"required": true,
|
|
21175
|
-
"schema": {
|
|
21176
|
-
"type": "integer"
|
|
21177
|
-
}
|
|
21178
|
-
}
|
|
21179
|
-
],
|
|
21136
|
+
"description": "Get networks for specific currency.\n\nGET /api/currencies/{id}/networks/",
|
|
21137
|
+
"operationId": "cfg_payments_currencies_networks_retrieve",
|
|
21138
|
+
"parameters": [
|
|
21139
|
+
{
|
|
21140
|
+
"description": "A unique integer value identifying this Currency.",
|
|
21141
|
+
"in": "path",
|
|
21142
|
+
"name": "id",
|
|
21143
|
+
"required": true,
|
|
21144
|
+
"schema": {
|
|
21145
|
+
"type": "integer"
|
|
21146
|
+
}
|
|
21147
|
+
}
|
|
21148
|
+
],
|
|
21180
21149
|
"responses": {
|
|
21181
21150
|
"200": {
|
|
21182
21151
|
"content": {
|
|
@@ -28105,6 +28074,7 @@ __export(enums_exports, {
|
|
|
28105
28074
|
ChatMessageRole: () => ChatMessageRole,
|
|
28106
28075
|
CurrencyCurrencyType: () => CurrencyCurrencyType,
|
|
28107
28076
|
CurrencyListCurrencyType: () => CurrencyListCurrencyType,
|
|
28077
|
+
CurrencyRatesProvider: () => CurrencyRatesProvider,
|
|
28108
28078
|
DocumentArchiveArchiveType: () => DocumentArchiveArchiveType,
|
|
28109
28079
|
DocumentArchiveDetailArchiveType: () => DocumentArchiveDetailArchiveType,
|
|
28110
28080
|
DocumentArchiveDetailProcessingStatus: () => DocumentArchiveDetailProcessingStatus,
|
|
@@ -28125,10 +28095,6 @@ __export(enums_exports, {
|
|
|
28125
28095
|
PatchedSubscriptionRequestStatus: () => PatchedSubscriptionRequestStatus,
|
|
28126
28096
|
PatchedSubscriptionRequestTier: () => PatchedSubscriptionRequestTier,
|
|
28127
28097
|
PatchedTicketRequestStatus: () => PatchedTicketRequestStatus,
|
|
28128
|
-
PaymentCreateCurrencyCode: () => PaymentCreateCurrencyCode,
|
|
28129
|
-
PaymentCreateProvider: () => PaymentCreateProvider,
|
|
28130
|
-
PaymentCreateRequestCurrencyCode: () => PaymentCreateRequestCurrencyCode,
|
|
28131
|
-
PaymentCreateRequestProvider: () => PaymentCreateRequestProvider,
|
|
28132
28098
|
PaymentListProvider: () => PaymentListProvider,
|
|
28133
28099
|
PaymentListStatus: () => PaymentListStatus,
|
|
28134
28100
|
PaymentProvider: () => PaymentProvider,
|
|
@@ -28142,6 +28108,8 @@ __export(enums_exports, {
|
|
|
28142
28108
|
SubscriptionRequestTier: () => SubscriptionRequestTier,
|
|
28143
28109
|
SubscriptionStatus: () => SubscriptionStatus,
|
|
28144
28110
|
SubscriptionTier: () => SubscriptionTier,
|
|
28111
|
+
SupportedCurrenciesCurrencyType: () => SupportedCurrenciesCurrencyType,
|
|
28112
|
+
SupportedCurrenciesProvider: () => SupportedCurrenciesProvider,
|
|
28145
28113
|
TicketRequestStatus: () => TicketRequestStatus,
|
|
28146
28114
|
TicketStatus: () => TicketStatus,
|
|
28147
28115
|
TransactionTransactionType: () => TransactionTransactionType,
|
|
@@ -28251,11 +28219,15 @@ var CurrencyListCurrencyType = /* @__PURE__ */ ((CurrencyListCurrencyType2) => {
|
|
|
28251
28219
|
CurrencyListCurrencyType2["CRYPTO"] = "crypto";
|
|
28252
28220
|
return CurrencyListCurrencyType2;
|
|
28253
28221
|
})(CurrencyListCurrencyType || {});
|
|
28222
|
+
var CurrencyRatesProvider = /* @__PURE__ */ ((CurrencyRatesProvider2) => {
|
|
28223
|
+
CurrencyRatesProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28224
|
+
return CurrencyRatesProvider2;
|
|
28225
|
+
})(CurrencyRatesProvider || {});
|
|
28254
28226
|
var DocumentArchiveArchiveType = /* @__PURE__ */ ((DocumentArchiveArchiveType2) => {
|
|
28255
28227
|
DocumentArchiveArchiveType2["ZIP"] = "zip";
|
|
28256
28228
|
DocumentArchiveArchiveType2["TAR"] = "tar";
|
|
28257
|
-
DocumentArchiveArchiveType2["
|
|
28258
|
-
DocumentArchiveArchiveType2["
|
|
28229
|
+
DocumentArchiveArchiveType2["TAR_DOT_GZ"] = "tar.gz";
|
|
28230
|
+
DocumentArchiveArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
|
|
28259
28231
|
return DocumentArchiveArchiveType2;
|
|
28260
28232
|
})(DocumentArchiveArchiveType || {});
|
|
28261
28233
|
var DocumentArchiveProcessingStatus = /* @__PURE__ */ ((DocumentArchiveProcessingStatus2) => {
|
|
@@ -28269,8 +28241,8 @@ var DocumentArchiveProcessingStatus = /* @__PURE__ */ ((DocumentArchiveProcessin
|
|
|
28269
28241
|
var DocumentArchiveDetailArchiveType = /* @__PURE__ */ ((DocumentArchiveDetailArchiveType2) => {
|
|
28270
28242
|
DocumentArchiveDetailArchiveType2["ZIP"] = "zip";
|
|
28271
28243
|
DocumentArchiveDetailArchiveType2["TAR"] = "tar";
|
|
28272
|
-
DocumentArchiveDetailArchiveType2["
|
|
28273
|
-
DocumentArchiveDetailArchiveType2["
|
|
28244
|
+
DocumentArchiveDetailArchiveType2["TAR_DOT_GZ"] = "tar.gz";
|
|
28245
|
+
DocumentArchiveDetailArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
|
|
28274
28246
|
return DocumentArchiveDetailArchiveType2;
|
|
28275
28247
|
})(DocumentArchiveDetailArchiveType || {});
|
|
28276
28248
|
var DocumentArchiveDetailProcessingStatus = /* @__PURE__ */ ((DocumentArchiveDetailProcessingStatus2) => {
|
|
@@ -28284,8 +28256,8 @@ var DocumentArchiveDetailProcessingStatus = /* @__PURE__ */ ((DocumentArchiveDet
|
|
|
28284
28256
|
var DocumentArchiveListArchiveType = /* @__PURE__ */ ((DocumentArchiveListArchiveType2) => {
|
|
28285
28257
|
DocumentArchiveListArchiveType2["ZIP"] = "zip";
|
|
28286
28258
|
DocumentArchiveListArchiveType2["TAR"] = "tar";
|
|
28287
|
-
DocumentArchiveListArchiveType2["
|
|
28288
|
-
DocumentArchiveListArchiveType2["
|
|
28259
|
+
DocumentArchiveListArchiveType2["TAR_DOT_GZ"] = "tar.gz";
|
|
28260
|
+
DocumentArchiveListArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
|
|
28289
28261
|
return DocumentArchiveListArchiveType2;
|
|
28290
28262
|
})(DocumentArchiveListArchiveType || {});
|
|
28291
28263
|
var DocumentArchiveListProcessingStatus = /* @__PURE__ */ ((DocumentArchiveListProcessingStatus2) => {
|
|
@@ -28416,36 +28388,6 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
|
|
28416
28388
|
PaymentStatus2["REFUNDED"] = "refunded";
|
|
28417
28389
|
return PaymentStatus2;
|
|
28418
28390
|
})(PaymentStatus || {});
|
|
28419
|
-
var PaymentCreateCurrencyCode = /* @__PURE__ */ ((PaymentCreateCurrencyCode2) => {
|
|
28420
|
-
PaymentCreateCurrencyCode2["BTC"] = "BTC";
|
|
28421
|
-
PaymentCreateCurrencyCode2["ETH"] = "ETH";
|
|
28422
|
-
PaymentCreateCurrencyCode2["LTC"] = "LTC";
|
|
28423
|
-
PaymentCreateCurrencyCode2["XMR"] = "XMR";
|
|
28424
|
-
PaymentCreateCurrencyCode2["USDT"] = "USDT";
|
|
28425
|
-
PaymentCreateCurrencyCode2["USDC"] = "USDC";
|
|
28426
|
-
PaymentCreateCurrencyCode2["ADA"] = "ADA";
|
|
28427
|
-
PaymentCreateCurrencyCode2["DOT"] = "DOT";
|
|
28428
|
-
return PaymentCreateCurrencyCode2;
|
|
28429
|
-
})(PaymentCreateCurrencyCode || {});
|
|
28430
|
-
var PaymentCreateProvider = /* @__PURE__ */ ((PaymentCreateProvider2) => {
|
|
28431
|
-
PaymentCreateProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28432
|
-
return PaymentCreateProvider2;
|
|
28433
|
-
})(PaymentCreateProvider || {});
|
|
28434
|
-
var PaymentCreateRequestCurrencyCode = /* @__PURE__ */ ((PaymentCreateRequestCurrencyCode2) => {
|
|
28435
|
-
PaymentCreateRequestCurrencyCode2["BTC"] = "BTC";
|
|
28436
|
-
PaymentCreateRequestCurrencyCode2["ETH"] = "ETH";
|
|
28437
|
-
PaymentCreateRequestCurrencyCode2["LTC"] = "LTC";
|
|
28438
|
-
PaymentCreateRequestCurrencyCode2["XMR"] = "XMR";
|
|
28439
|
-
PaymentCreateRequestCurrencyCode2["USDT"] = "USDT";
|
|
28440
|
-
PaymentCreateRequestCurrencyCode2["USDC"] = "USDC";
|
|
28441
|
-
PaymentCreateRequestCurrencyCode2["ADA"] = "ADA";
|
|
28442
|
-
PaymentCreateRequestCurrencyCode2["DOT"] = "DOT";
|
|
28443
|
-
return PaymentCreateRequestCurrencyCode2;
|
|
28444
|
-
})(PaymentCreateRequestCurrencyCode || {});
|
|
28445
|
-
var PaymentCreateRequestProvider = /* @__PURE__ */ ((PaymentCreateRequestProvider2) => {
|
|
28446
|
-
PaymentCreateRequestProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28447
|
-
return PaymentCreateRequestProvider2;
|
|
28448
|
-
})(PaymentCreateRequestProvider || {});
|
|
28449
28391
|
var PaymentListProvider = /* @__PURE__ */ ((PaymentListProvider2) => {
|
|
28450
28392
|
PaymentListProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28451
28393
|
return PaymentListProvider2;
|
|
@@ -28530,6 +28472,16 @@ var SubscriptionRequestTier = /* @__PURE__ */ ((SubscriptionRequestTier2) => {
|
|
|
28530
28472
|
SubscriptionRequestTier2["ENTERPRISE"] = "enterprise";
|
|
28531
28473
|
return SubscriptionRequestTier2;
|
|
28532
28474
|
})(SubscriptionRequestTier || {});
|
|
28475
|
+
var SupportedCurrenciesProvider = /* @__PURE__ */ ((SupportedCurrenciesProvider2) => {
|
|
28476
|
+
SupportedCurrenciesProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28477
|
+
return SupportedCurrenciesProvider2;
|
|
28478
|
+
})(SupportedCurrenciesProvider || {});
|
|
28479
|
+
var SupportedCurrenciesCurrencyType = /* @__PURE__ */ ((SupportedCurrenciesCurrencyType2) => {
|
|
28480
|
+
SupportedCurrenciesCurrencyType2["ALL"] = "all";
|
|
28481
|
+
SupportedCurrenciesCurrencyType2["CRYPTO"] = "crypto";
|
|
28482
|
+
SupportedCurrenciesCurrencyType2["FIAT"] = "fiat";
|
|
28483
|
+
return SupportedCurrenciesCurrencyType2;
|
|
28484
|
+
})(SupportedCurrenciesCurrencyType || {});
|
|
28533
28485
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
28534
28486
|
TicketStatus2["OPEN"] = "open";
|
|
28535
28487
|
TicketStatus2["WAITING_FOR_USER"] = "waiting_for_user";
|
|
@@ -28633,6 +28585,7 @@ __export(schemas_exports, {
|
|
|
28633
28585
|
ChunkRevectorizationRequestRequestSchema: () => ChunkRevectorizationRequestRequestSchema,
|
|
28634
28586
|
CurrencyAnalyticsItemSchema: () => CurrencyAnalyticsItemSchema,
|
|
28635
28587
|
CurrencyListSchema: () => CurrencyListSchema,
|
|
28588
|
+
CurrencyRatesSchema: () => CurrencyRatesSchema,
|
|
28636
28589
|
CurrencySchema: () => CurrencySchema,
|
|
28637
28590
|
DocumentArchiveDetailSchema: () => DocumentArchiveDetailSchema,
|
|
28638
28591
|
DocumentArchiveListSchema: () => DocumentArchiveListSchema,
|
|
@@ -28751,6 +28704,7 @@ __export(schemas_exports, {
|
|
|
28751
28704
|
SubscriptionRequestSchema: () => SubscriptionRequestSchema,
|
|
28752
28705
|
SubscriptionSchema: () => SubscriptionSchema,
|
|
28753
28706
|
SuccessResponseSchema: () => SuccessResponseSchema,
|
|
28707
|
+
SupportedCurrenciesSchema: () => SupportedCurrenciesSchema,
|
|
28754
28708
|
SupportedProvidersSchema: () => SupportedProvidersSchema,
|
|
28755
28709
|
TariffSchema: () => TariffSchema,
|
|
28756
28710
|
TaskStatisticsSchema: () => TaskStatisticsSchema,
|
|
@@ -28854,7 +28808,7 @@ var import_zod8 = require("zod");
|
|
|
28854
28808
|
var APIKeyValidationResponseSchema = import_zod8.z.object({
|
|
28855
28809
|
success: import_zod8.z.boolean(),
|
|
28856
28810
|
valid: import_zod8.z.boolean(),
|
|
28857
|
-
api_key: APIKeyDetailSchema,
|
|
28811
|
+
api_key: APIKeyDetailSchema.nullable(),
|
|
28858
28812
|
message: import_zod8.z.string(),
|
|
28859
28813
|
error: import_zod8.z.string().optional(),
|
|
28860
28814
|
error_code: import_zod8.z.string().optional()
|
|
@@ -28942,7 +28896,7 @@ var AdminPaymentDetailSchema = import_zod15.z.object({
|
|
|
28942
28896
|
provider_display: import_zod15.z.string(),
|
|
28943
28897
|
status: import_zod15.z.string(),
|
|
28944
28898
|
status_display: import_zod15.z.string(),
|
|
28945
|
-
pay_amount: import_zod15.z.string()
|
|
28899
|
+
pay_amount: import_zod15.z.string(),
|
|
28946
28900
|
pay_address: import_zod15.z.string(),
|
|
28947
28901
|
payment_url: import_zod15.z.url(),
|
|
28948
28902
|
transaction_hash: import_zod15.z.string(),
|
|
@@ -28974,7 +28928,7 @@ var AdminPaymentListSchema = import_zod16.z.object({
|
|
|
28974
28928
|
provider_display: import_zod16.z.string(),
|
|
28975
28929
|
status: import_zod16.z.string(),
|
|
28976
28930
|
status_display: import_zod16.z.string(),
|
|
28977
|
-
pay_amount: import_zod16.z.string()
|
|
28931
|
+
pay_amount: import_zod16.z.string(),
|
|
28978
28932
|
pay_address: import_zod16.z.string(),
|
|
28979
28933
|
transaction_hash: import_zod16.z.string(),
|
|
28980
28934
|
created_at: import_zod16.z.iso.datetime(),
|
|
@@ -29367,72 +29321,53 @@ var CurrencyListSchema = import_zod48.z.object({
|
|
|
29367
29321
|
symbol: import_zod48.z.string(),
|
|
29368
29322
|
currency_type: import_zod48.z.nativeEnum(CurrencyListCurrencyType),
|
|
29369
29323
|
type_display: import_zod48.z.string(),
|
|
29370
|
-
is_active: import_zod48.z.boolean()
|
|
29324
|
+
is_active: import_zod48.z.boolean(),
|
|
29325
|
+
usd_rate: import_zod48.z.number(),
|
|
29326
|
+
usd_rate_updated_at: import_zod48.z.iso.datetime().nullable()
|
|
29371
29327
|
});
|
|
29372
29328
|
|
|
29373
|
-
// src/cfg/generated/_utils/schemas/
|
|
29329
|
+
// src/cfg/generated/_utils/schemas/CurrencyRates.schema.ts
|
|
29374
29330
|
var import_zod49 = require("zod");
|
|
29375
|
-
var
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
file_size: import_zod49.z.int().min(0).max(9223372036854776e3).optional(),
|
|
29380
|
-
processing_status: import_zod49.z.string(),
|
|
29381
|
-
chunks_count: import_zod49.z.int(),
|
|
29382
|
-
total_tokens: import_zod49.z.int(),
|
|
29383
|
-
total_cost_usd: import_zod49.z.number(),
|
|
29384
|
-
created_at: import_zod49.z.iso.datetime(),
|
|
29385
|
-
updated_at: import_zod49.z.iso.datetime(),
|
|
29386
|
-
processing_started_at: import_zod49.z.iso.datetime(),
|
|
29387
|
-
processing_completed_at: import_zod49.z.iso.datetime(),
|
|
29388
|
-
processing_error: import_zod49.z.string(),
|
|
29389
|
-
metadata: import_zod49.z.string().nullable().optional()
|
|
29331
|
+
var CurrencyRatesSchema = import_zod49.z.object({
|
|
29332
|
+
base_currency: import_zod49.z.string().max(10).optional(),
|
|
29333
|
+
currencies: import_zod49.z.array(import_zod49.z.string().max(10)).optional(),
|
|
29334
|
+
provider: import_zod49.z.nativeEnum(CurrencyRatesProvider).optional()
|
|
29390
29335
|
});
|
|
29391
29336
|
|
|
29392
|
-
// src/cfg/generated/_utils/schemas/
|
|
29393
|
-
var import_zod51 = require("zod");
|
|
29394
|
-
|
|
29395
|
-
// src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
|
|
29337
|
+
// src/cfg/generated/_utils/schemas/Document.schema.ts
|
|
29396
29338
|
var import_zod50 = require("zod");
|
|
29397
|
-
var
|
|
29339
|
+
var DocumentSchema = import_zod50.z.object({
|
|
29398
29340
|
id: import_zod50.z.uuid(),
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29341
|
+
title: import_zod50.z.string().max(512),
|
|
29342
|
+
file_type: import_zod50.z.string().max(100).optional(),
|
|
29343
|
+
file_size: import_zod50.z.int().min(0).max(9223372036854776e3).optional(),
|
|
29344
|
+
processing_status: import_zod50.z.string(),
|
|
29345
|
+
chunks_count: import_zod50.z.int(),
|
|
29346
|
+
total_tokens: import_zod50.z.int(),
|
|
29347
|
+
total_cost_usd: import_zod50.z.number(),
|
|
29348
|
+
created_at: import_zod50.z.iso.datetime(),
|
|
29349
|
+
updated_at: import_zod50.z.iso.datetime(),
|
|
29350
|
+
processing_started_at: import_zod50.z.iso.datetime(),
|
|
29351
|
+
processing_completed_at: import_zod50.z.iso.datetime(),
|
|
29352
|
+
processing_error: import_zod50.z.string(),
|
|
29353
|
+
metadata: import_zod50.z.string().nullable().optional()
|
|
29403
29354
|
});
|
|
29404
29355
|
|
|
29405
29356
|
// src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
|
|
29406
|
-
var
|
|
29357
|
+
var import_zod52 = require("zod");
|
|
29358
|
+
|
|
29359
|
+
// src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
|
|
29360
|
+
var import_zod51 = require("zod");
|
|
29361
|
+
var DocumentCategorySchema = import_zod51.z.object({
|
|
29407
29362
|
id: import_zod51.z.uuid(),
|
|
29408
|
-
|
|
29363
|
+
name: import_zod51.z.string().max(255),
|
|
29409
29364
|
description: import_zod51.z.string().optional(),
|
|
29410
|
-
categories: import_zod51.z.array(DocumentCategorySchema),
|
|
29411
29365
|
is_public: import_zod51.z.boolean().optional(),
|
|
29412
|
-
|
|
29413
|
-
original_filename: import_zod51.z.string(),
|
|
29414
|
-
file_size: import_zod51.z.int(),
|
|
29415
|
-
archive_type: import_zod51.z.nativeEnum(DocumentArchiveArchiveType),
|
|
29416
|
-
processing_status: import_zod51.z.nativeEnum(DocumentArchiveProcessingStatus),
|
|
29417
|
-
processed_at: import_zod51.z.iso.datetime().nullable(),
|
|
29418
|
-
processing_duration_ms: import_zod51.z.int(),
|
|
29419
|
-
processing_error: import_zod51.z.string(),
|
|
29420
|
-
total_items: import_zod51.z.int(),
|
|
29421
|
-
processed_items: import_zod51.z.int(),
|
|
29422
|
-
total_chunks: import_zod51.z.int(),
|
|
29423
|
-
vectorized_chunks: import_zod51.z.int(),
|
|
29424
|
-
total_tokens: import_zod51.z.int(),
|
|
29425
|
-
total_cost_usd: import_zod51.z.number(),
|
|
29426
|
-
processing_progress: import_zod51.z.number(),
|
|
29427
|
-
vectorization_progress: import_zod51.z.number(),
|
|
29428
|
-
is_processed: import_zod51.z.boolean(),
|
|
29429
|
-
created_at: import_zod51.z.iso.datetime(),
|
|
29430
|
-
updated_at: import_zod51.z.iso.datetime()
|
|
29366
|
+
created_at: import_zod51.z.iso.datetime()
|
|
29431
29367
|
});
|
|
29432
29368
|
|
|
29433
|
-
// src/cfg/generated/_utils/schemas/
|
|
29434
|
-
var
|
|
29435
|
-
var DocumentArchiveDetailSchema = import_zod52.z.object({
|
|
29369
|
+
// src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
|
|
29370
|
+
var DocumentArchiveSchema = import_zod52.z.object({
|
|
29436
29371
|
id: import_zod52.z.uuid(),
|
|
29437
29372
|
title: import_zod52.z.string().max(512),
|
|
29438
29373
|
description: import_zod52.z.string().optional(),
|
|
@@ -29441,8 +29376,8 @@ var DocumentArchiveDetailSchema = import_zod52.z.object({
|
|
|
29441
29376
|
archive_file: import_zod52.z.url(),
|
|
29442
29377
|
original_filename: import_zod52.z.string(),
|
|
29443
29378
|
file_size: import_zod52.z.int(),
|
|
29444
|
-
archive_type: import_zod52.z.nativeEnum(
|
|
29445
|
-
processing_status: import_zod52.z.nativeEnum(
|
|
29379
|
+
archive_type: import_zod52.z.nativeEnum(DocumentArchiveArchiveType),
|
|
29380
|
+
processing_status: import_zod52.z.nativeEnum(DocumentArchiveProcessingStatus),
|
|
29446
29381
|
processed_at: import_zod52.z.iso.datetime().nullable(),
|
|
29447
29382
|
processing_duration_ms: import_zod52.z.int(),
|
|
29448
29383
|
processing_error: import_zod52.z.string(),
|
|
@@ -29456,407 +29391,422 @@ var DocumentArchiveDetailSchema = import_zod52.z.object({
|
|
|
29456
29391
|
vectorization_progress: import_zod52.z.number(),
|
|
29457
29392
|
is_processed: import_zod52.z.boolean(),
|
|
29458
29393
|
created_at: import_zod52.z.iso.datetime(),
|
|
29459
|
-
updated_at: import_zod52.z.iso.datetime()
|
|
29460
|
-
items: import_zod52.z.array(ArchiveItemSchema),
|
|
29461
|
-
file_tree: import_zod52.z.record(import_zod52.z.string(), import_zod52.z.any()),
|
|
29462
|
-
metadata: import_zod52.z.string().nullable().optional()
|
|
29394
|
+
updated_at: import_zod52.z.iso.datetime()
|
|
29463
29395
|
});
|
|
29464
29396
|
|
|
29465
|
-
// src/cfg/generated/_utils/schemas/
|
|
29397
|
+
// src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts
|
|
29466
29398
|
var import_zod53 = require("zod");
|
|
29467
|
-
var
|
|
29399
|
+
var DocumentArchiveDetailSchema = import_zod53.z.object({
|
|
29468
29400
|
id: import_zod53.z.uuid(),
|
|
29469
|
-
title: import_zod53.z.string(),
|
|
29470
|
-
description: import_zod53.z.string(),
|
|
29401
|
+
title: import_zod53.z.string().max(512),
|
|
29402
|
+
description: import_zod53.z.string().optional(),
|
|
29471
29403
|
categories: import_zod53.z.array(DocumentCategorySchema),
|
|
29472
|
-
is_public: import_zod53.z.boolean(),
|
|
29404
|
+
is_public: import_zod53.z.boolean().optional(),
|
|
29405
|
+
archive_file: import_zod53.z.url(),
|
|
29473
29406
|
original_filename: import_zod53.z.string(),
|
|
29474
29407
|
file_size: import_zod53.z.int(),
|
|
29475
|
-
archive_type: import_zod53.z.nativeEnum(
|
|
29476
|
-
processing_status: import_zod53.z.nativeEnum(
|
|
29408
|
+
archive_type: import_zod53.z.nativeEnum(DocumentArchiveDetailArchiveType),
|
|
29409
|
+
processing_status: import_zod53.z.nativeEnum(DocumentArchiveDetailProcessingStatus),
|
|
29477
29410
|
processed_at: import_zod53.z.iso.datetime().nullable(),
|
|
29411
|
+
processing_duration_ms: import_zod53.z.int(),
|
|
29412
|
+
processing_error: import_zod53.z.string(),
|
|
29478
29413
|
total_items: import_zod53.z.int(),
|
|
29414
|
+
processed_items: import_zod53.z.int(),
|
|
29479
29415
|
total_chunks: import_zod53.z.int(),
|
|
29416
|
+
vectorized_chunks: import_zod53.z.int(),
|
|
29417
|
+
total_tokens: import_zod53.z.int(),
|
|
29480
29418
|
total_cost_usd: import_zod53.z.number(),
|
|
29481
29419
|
processing_progress: import_zod53.z.number(),
|
|
29482
|
-
|
|
29420
|
+
vectorization_progress: import_zod53.z.number(),
|
|
29421
|
+
is_processed: import_zod53.z.boolean(),
|
|
29422
|
+
created_at: import_zod53.z.iso.datetime(),
|
|
29423
|
+
updated_at: import_zod53.z.iso.datetime(),
|
|
29424
|
+
items: import_zod53.z.array(ArchiveItemSchema),
|
|
29425
|
+
file_tree: import_zod53.z.record(import_zod53.z.string(), import_zod53.z.any()),
|
|
29426
|
+
metadata: import_zod53.z.string().nullable().optional()
|
|
29483
29427
|
});
|
|
29484
29428
|
|
|
29485
|
-
// src/cfg/generated/_utils/schemas/
|
|
29429
|
+
// src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts
|
|
29486
29430
|
var import_zod54 = require("zod");
|
|
29487
|
-
var
|
|
29488
|
-
|
|
29489
|
-
|
|
29490
|
-
|
|
29431
|
+
var DocumentArchiveListSchema = import_zod54.z.object({
|
|
29432
|
+
id: import_zod54.z.uuid(),
|
|
29433
|
+
title: import_zod54.z.string(),
|
|
29434
|
+
description: import_zod54.z.string(),
|
|
29435
|
+
categories: import_zod54.z.array(DocumentCategorySchema),
|
|
29436
|
+
is_public: import_zod54.z.boolean(),
|
|
29437
|
+
original_filename: import_zod54.z.string(),
|
|
29438
|
+
file_size: import_zod54.z.int(),
|
|
29439
|
+
archive_type: import_zod54.z.nativeEnum(DocumentArchiveListArchiveType),
|
|
29440
|
+
processing_status: import_zod54.z.nativeEnum(DocumentArchiveListProcessingStatus),
|
|
29441
|
+
processed_at: import_zod54.z.iso.datetime().nullable(),
|
|
29442
|
+
total_items: import_zod54.z.int(),
|
|
29443
|
+
total_chunks: import_zod54.z.int(),
|
|
29444
|
+
total_cost_usd: import_zod54.z.number(),
|
|
29445
|
+
processing_progress: import_zod54.z.number(),
|
|
29446
|
+
created_at: import_zod54.z.iso.datetime()
|
|
29491
29447
|
});
|
|
29492
29448
|
|
|
29493
|
-
// src/cfg/generated/_utils/schemas/
|
|
29449
|
+
// src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts
|
|
29494
29450
|
var import_zod55 = require("zod");
|
|
29495
|
-
var
|
|
29496
|
-
|
|
29451
|
+
var DocumentArchiveRequestSchema = import_zod55.z.object({
|
|
29452
|
+
title: import_zod55.z.string().min(1).max(512),
|
|
29497
29453
|
description: import_zod55.z.string().optional(),
|
|
29498
29454
|
is_public: import_zod55.z.boolean().optional()
|
|
29499
29455
|
});
|
|
29500
29456
|
|
|
29501
|
-
// src/cfg/generated/_utils/schemas/
|
|
29457
|
+
// src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts
|
|
29502
29458
|
var import_zod56 = require("zod");
|
|
29503
|
-
var
|
|
29504
|
-
|
|
29505
|
-
|
|
29506
|
-
|
|
29507
|
-
metadata: import_zod56.z.string().optional()
|
|
29459
|
+
var DocumentCategoryRequestSchema = import_zod56.z.object({
|
|
29460
|
+
name: import_zod56.z.string().min(1).max(255),
|
|
29461
|
+
description: import_zod56.z.string().optional(),
|
|
29462
|
+
is_public: import_zod56.z.boolean().optional()
|
|
29508
29463
|
});
|
|
29509
29464
|
|
|
29510
|
-
// src/cfg/generated/_utils/schemas/
|
|
29465
|
+
// src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts
|
|
29511
29466
|
var import_zod57 = require("zod");
|
|
29512
|
-
var
|
|
29513
|
-
|
|
29514
|
-
|
|
29515
|
-
|
|
29516
|
-
|
|
29517
|
-
processing_time_seconds: import_zod57.z.number().nullable().optional()
|
|
29467
|
+
var DocumentCreateRequestSchema = import_zod57.z.object({
|
|
29468
|
+
title: import_zod57.z.string().min(1).max(512),
|
|
29469
|
+
content: import_zod57.z.string().min(10).max(1e6),
|
|
29470
|
+
file_type: import_zod57.z.string().min(1).optional(),
|
|
29471
|
+
metadata: import_zod57.z.string().optional()
|
|
29518
29472
|
});
|
|
29519
29473
|
|
|
29520
|
-
// src/cfg/generated/_utils/schemas/
|
|
29474
|
+
// src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts
|
|
29521
29475
|
var import_zod58 = require("zod");
|
|
29522
|
-
var
|
|
29523
|
-
|
|
29524
|
-
|
|
29525
|
-
|
|
29526
|
-
|
|
29476
|
+
var DocumentProcessingStatusSchema = import_zod58.z.object({
|
|
29477
|
+
id: import_zod58.z.uuid(),
|
|
29478
|
+
status: import_zod58.z.string(),
|
|
29479
|
+
progress: import_zod58.z.string(),
|
|
29480
|
+
error: import_zod58.z.string().nullable().optional(),
|
|
29481
|
+
processing_time_seconds: import_zod58.z.number().nullable().optional()
|
|
29527
29482
|
});
|
|
29528
29483
|
|
|
29529
|
-
// src/cfg/generated/_utils/schemas/
|
|
29484
|
+
// src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts
|
|
29530
29485
|
var import_zod59 = require("zod");
|
|
29531
|
-
var
|
|
29532
|
-
|
|
29533
|
-
|
|
29534
|
-
|
|
29535
|
-
|
|
29536
|
-
total_tokens: import_zod59.z.int(),
|
|
29537
|
-
total_cost_usd: import_zod59.z.number(),
|
|
29538
|
-
avg_processing_time_seconds: import_zod59.z.number()
|
|
29486
|
+
var DocumentRequestSchema = import_zod59.z.object({
|
|
29487
|
+
title: import_zod59.z.string().min(1).max(512),
|
|
29488
|
+
file_type: import_zod59.z.string().min(1).max(100).optional(),
|
|
29489
|
+
file_size: import_zod59.z.int().min(0).max(9223372036854776e3).optional(),
|
|
29490
|
+
metadata: import_zod59.z.string().nullable().optional()
|
|
29539
29491
|
});
|
|
29540
29492
|
|
|
29541
|
-
// src/cfg/generated/_utils/schemas/
|
|
29493
|
+
// src/cfg/generated/_utils/schemas/DocumentStats.schema.ts
|
|
29542
29494
|
var import_zod60 = require("zod");
|
|
29543
|
-
var
|
|
29544
|
-
|
|
29545
|
-
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
|
|
29550
|
-
|
|
29551
|
-
body: import_zod60.z.string(),
|
|
29552
|
-
status: import_zod60.z.nativeEnum(EmailLogStatus),
|
|
29553
|
-
created_at: import_zod60.z.iso.datetime(),
|
|
29554
|
-
sent_at: import_zod60.z.iso.datetime().nullable(),
|
|
29555
|
-
error_message: import_zod60.z.string().nullable()
|
|
29495
|
+
var DocumentStatsSchema = import_zod60.z.object({
|
|
29496
|
+
total_documents: import_zod60.z.int(),
|
|
29497
|
+
completed_documents: import_zod60.z.int(),
|
|
29498
|
+
processing_success_rate: import_zod60.z.number(),
|
|
29499
|
+
total_chunks: import_zod60.z.int(),
|
|
29500
|
+
total_tokens: import_zod60.z.int(),
|
|
29501
|
+
total_cost_usd: import_zod60.z.number(),
|
|
29502
|
+
avg_processing_time_seconds: import_zod60.z.number()
|
|
29556
29503
|
});
|
|
29557
29504
|
|
|
29558
|
-
// src/cfg/generated/_utils/schemas/
|
|
29505
|
+
// src/cfg/generated/_utils/schemas/EmailLog.schema.ts
|
|
29559
29506
|
var import_zod61 = require("zod");
|
|
29560
|
-
var
|
|
29561
|
-
|
|
29562
|
-
|
|
29563
|
-
|
|
29564
|
-
|
|
29565
|
-
|
|
29566
|
-
|
|
29567
|
-
|
|
29568
|
-
|
|
29569
|
-
|
|
29570
|
-
|
|
29571
|
-
|
|
29572
|
-
|
|
29573
|
-
reason: import_zod61.z.string().optional(),
|
|
29574
|
-
last_checked: import_zod61.z.iso.datetime().nullable().optional(),
|
|
29575
|
-
has_parameters: import_zod61.z.boolean().optional(),
|
|
29576
|
-
required_auth: import_zod61.z.boolean().optional(),
|
|
29577
|
-
rate_limited: import_zod61.z.boolean().optional()
|
|
29507
|
+
var EmailLogSchema = import_zod61.z.object({
|
|
29508
|
+
id: import_zod61.z.uuid(),
|
|
29509
|
+
user: import_zod61.z.int().nullable(),
|
|
29510
|
+
user_email: import_zod61.z.string(),
|
|
29511
|
+
newsletter: import_zod61.z.int().nullable(),
|
|
29512
|
+
newsletter_title: import_zod61.z.string(),
|
|
29513
|
+
recipient: import_zod61.z.string(),
|
|
29514
|
+
subject: import_zod61.z.string(),
|
|
29515
|
+
body: import_zod61.z.string(),
|
|
29516
|
+
status: import_zod61.z.nativeEnum(EmailLogStatus),
|
|
29517
|
+
created_at: import_zod61.z.iso.datetime(),
|
|
29518
|
+
sent_at: import_zod61.z.iso.datetime().nullable(),
|
|
29519
|
+
error_message: import_zod61.z.string().nullable()
|
|
29578
29520
|
});
|
|
29579
29521
|
|
|
29580
|
-
// src/cfg/generated/_utils/schemas/
|
|
29522
|
+
// src/cfg/generated/_utils/schemas/Endpoint.schema.ts
|
|
29581
29523
|
var import_zod62 = require("zod");
|
|
29582
|
-
var
|
|
29583
|
-
|
|
29584
|
-
|
|
29585
|
-
|
|
29586
|
-
|
|
29587
|
-
|
|
29588
|
-
|
|
29524
|
+
var EndpointSchema = import_zod62.z.object({
|
|
29525
|
+
url: import_zod62.z.string(),
|
|
29526
|
+
url_pattern: import_zod62.z.string().nullable().optional(),
|
|
29527
|
+
url_name: import_zod62.z.string().nullable().optional(),
|
|
29528
|
+
namespace: import_zod62.z.string().optional(),
|
|
29529
|
+
group: import_zod62.z.string(),
|
|
29530
|
+
view: import_zod62.z.string().optional(),
|
|
29531
|
+
status: import_zod62.z.string(),
|
|
29532
|
+
status_code: import_zod62.z.int().nullable().optional(),
|
|
29533
|
+
response_time_ms: import_zod62.z.number().nullable().optional(),
|
|
29534
|
+
is_healthy: import_zod62.z.boolean().nullable().optional(),
|
|
29535
|
+
error: import_zod62.z.string().optional(),
|
|
29536
|
+
error_type: import_zod62.z.string().optional(),
|
|
29537
|
+
reason: import_zod62.z.string().optional(),
|
|
29538
|
+
last_checked: import_zod62.z.iso.datetime().nullable().optional(),
|
|
29539
|
+
has_parameters: import_zod62.z.boolean().optional(),
|
|
29540
|
+
required_auth: import_zod62.z.boolean().optional(),
|
|
29541
|
+
rate_limited: import_zod62.z.boolean().optional()
|
|
29589
29542
|
});
|
|
29590
29543
|
|
|
29591
|
-
// src/cfg/generated/_utils/schemas/
|
|
29544
|
+
// src/cfg/generated/_utils/schemas/EndpointGroup.schema.ts
|
|
29592
29545
|
var import_zod63 = require("zod");
|
|
29593
|
-
var
|
|
29594
|
-
|
|
29595
|
-
|
|
29596
|
-
|
|
29597
|
-
|
|
29598
|
-
|
|
29599
|
-
|
|
29600
|
-
errors: import_zod63.z.int(),
|
|
29601
|
-
skipped: import_zod63.z.int(),
|
|
29602
|
-
endpoints: import_zod63.z.array(EndpointSchema)
|
|
29546
|
+
var EndpointGroupSchema = import_zod63.z.object({
|
|
29547
|
+
id: import_zod63.z.int(),
|
|
29548
|
+
name: import_zod63.z.string(),
|
|
29549
|
+
description: import_zod63.z.string(),
|
|
29550
|
+
is_enabled: import_zod63.z.boolean(),
|
|
29551
|
+
created_at: import_zod63.z.iso.datetime(),
|
|
29552
|
+
updated_at: import_zod63.z.iso.datetime()
|
|
29603
29553
|
});
|
|
29604
29554
|
|
|
29605
|
-
// src/cfg/generated/_utils/schemas/
|
|
29555
|
+
// src/cfg/generated/_utils/schemas/EndpointsStatus.schema.ts
|
|
29606
29556
|
var import_zod64 = require("zod");
|
|
29607
|
-
var
|
|
29608
|
-
|
|
29609
|
-
|
|
29557
|
+
var EndpointsStatusSchema = import_zod64.z.object({
|
|
29558
|
+
status: import_zod64.z.string(),
|
|
29559
|
+
timestamp: import_zod64.z.iso.datetime(),
|
|
29560
|
+
total_endpoints: import_zod64.z.int(),
|
|
29561
|
+
healthy: import_zod64.z.int(),
|
|
29562
|
+
unhealthy: import_zod64.z.int(),
|
|
29563
|
+
warnings: import_zod64.z.int(),
|
|
29564
|
+
errors: import_zod64.z.int(),
|
|
29565
|
+
skipped: import_zod64.z.int(),
|
|
29566
|
+
endpoints: import_zod64.z.array(EndpointSchema)
|
|
29610
29567
|
});
|
|
29611
29568
|
|
|
29612
|
-
// src/cfg/generated/_utils/schemas/
|
|
29569
|
+
// src/cfg/generated/_utils/schemas/ErrorResponse.schema.ts
|
|
29613
29570
|
var import_zod65 = require("zod");
|
|
29614
|
-
var
|
|
29615
|
-
|
|
29616
|
-
|
|
29617
|
-
service: import_zod65.z.string(),
|
|
29618
|
-
version: import_zod65.z.string(),
|
|
29619
|
-
checks: import_zod65.z.record(import_zod65.z.string(), import_zod65.z.any()),
|
|
29620
|
-
environment: import_zod65.z.record(import_zod65.z.string(), import_zod65.z.any())
|
|
29571
|
+
var ErrorResponseSchema = import_zod65.z.object({
|
|
29572
|
+
success: import_zod65.z.boolean().optional(),
|
|
29573
|
+
message: import_zod65.z.string()
|
|
29621
29574
|
});
|
|
29622
29575
|
|
|
29623
|
-
// src/cfg/generated/_utils/schemas/
|
|
29576
|
+
// src/cfg/generated/_utils/schemas/HealthCheck.schema.ts
|
|
29624
29577
|
var import_zod66 = require("zod");
|
|
29625
|
-
var
|
|
29626
|
-
|
|
29627
|
-
|
|
29628
|
-
|
|
29629
|
-
|
|
29630
|
-
|
|
29631
|
-
|
|
29632
|
-
subject: import_zod66.z.string().max(200).nullable().optional(),
|
|
29633
|
-
message: import_zod66.z.string(),
|
|
29634
|
-
extra: import_zod66.z.string().nullable().optional(),
|
|
29635
|
-
site_url: import_zod66.z.url()
|
|
29578
|
+
var HealthCheckSchema = import_zod66.z.object({
|
|
29579
|
+
status: import_zod66.z.string(),
|
|
29580
|
+
timestamp: import_zod66.z.iso.datetime(),
|
|
29581
|
+
service: import_zod66.z.string(),
|
|
29582
|
+
version: import_zod66.z.string(),
|
|
29583
|
+
checks: import_zod66.z.record(import_zod66.z.string(), import_zod66.z.any()),
|
|
29584
|
+
environment: import_zod66.z.record(import_zod66.z.string(), import_zod66.z.any())
|
|
29636
29585
|
});
|
|
29637
29586
|
|
|
29638
|
-
// src/cfg/generated/_utils/schemas/
|
|
29587
|
+
// src/cfg/generated/_utils/schemas/LeadSubmission.schema.ts
|
|
29639
29588
|
var import_zod67 = require("zod");
|
|
29640
|
-
var
|
|
29641
|
-
|
|
29642
|
-
|
|
29643
|
-
|
|
29589
|
+
var LeadSubmissionSchema = import_zod67.z.object({
|
|
29590
|
+
name: import_zod67.z.string().max(200),
|
|
29591
|
+
email: import_zod67.z.email(),
|
|
29592
|
+
company: import_zod67.z.string().max(200).nullable().optional(),
|
|
29593
|
+
company_site: import_zod67.z.string().max(200).nullable().optional(),
|
|
29594
|
+
contact_type: import_zod67.z.nativeEnum(LeadSubmissionContactType).optional(),
|
|
29595
|
+
contact_value: import_zod67.z.string().max(200).nullable().optional(),
|
|
29596
|
+
subject: import_zod67.z.string().max(200).nullable().optional(),
|
|
29597
|
+
message: import_zod67.z.string(),
|
|
29598
|
+
extra: import_zod67.z.string().nullable().optional(),
|
|
29599
|
+
site_url: import_zod67.z.url()
|
|
29644
29600
|
});
|
|
29645
29601
|
|
|
29646
|
-
// src/cfg/generated/_utils/schemas/
|
|
29602
|
+
// src/cfg/generated/_utils/schemas/LeadSubmissionError.schema.ts
|
|
29647
29603
|
var import_zod68 = require("zod");
|
|
29648
|
-
var
|
|
29649
|
-
|
|
29650
|
-
|
|
29651
|
-
|
|
29652
|
-
company_site: import_zod68.z.string().max(200).nullable().optional(),
|
|
29653
|
-
contact_type: import_zod68.z.nativeEnum(LeadSubmissionRequestContactType).optional(),
|
|
29654
|
-
contact_value: import_zod68.z.string().max(200).nullable().optional(),
|
|
29655
|
-
subject: import_zod68.z.string().max(200).nullable().optional(),
|
|
29656
|
-
message: import_zod68.z.string().min(1),
|
|
29657
|
-
extra: import_zod68.z.string().nullable().optional(),
|
|
29658
|
-
site_url: import_zod68.z.url()
|
|
29604
|
+
var LeadSubmissionErrorSchema = import_zod68.z.object({
|
|
29605
|
+
success: import_zod68.z.boolean(),
|
|
29606
|
+
error: import_zod68.z.string(),
|
|
29607
|
+
details: import_zod68.z.record(import_zod68.z.string(), import_zod68.z.any()).optional()
|
|
29659
29608
|
});
|
|
29660
29609
|
|
|
29661
|
-
// src/cfg/generated/_utils/schemas/
|
|
29610
|
+
// src/cfg/generated/_utils/schemas/LeadSubmissionRequest.schema.ts
|
|
29662
29611
|
var import_zod69 = require("zod");
|
|
29663
|
-
var
|
|
29664
|
-
|
|
29665
|
-
|
|
29666
|
-
|
|
29612
|
+
var LeadSubmissionRequestSchema = import_zod69.z.object({
|
|
29613
|
+
name: import_zod69.z.string().min(1).max(200),
|
|
29614
|
+
email: import_zod69.z.email(),
|
|
29615
|
+
company: import_zod69.z.string().max(200).nullable().optional(),
|
|
29616
|
+
company_site: import_zod69.z.string().max(200).nullable().optional(),
|
|
29617
|
+
contact_type: import_zod69.z.nativeEnum(LeadSubmissionRequestContactType).optional(),
|
|
29618
|
+
contact_value: import_zod69.z.string().max(200).nullable().optional(),
|
|
29619
|
+
subject: import_zod69.z.string().max(200).nullable().optional(),
|
|
29620
|
+
message: import_zod69.z.string().min(1),
|
|
29621
|
+
extra: import_zod69.z.string().nullable().optional(),
|
|
29622
|
+
site_url: import_zod69.z.url()
|
|
29623
|
+
});
|
|
29624
|
+
|
|
29625
|
+
// src/cfg/generated/_utils/schemas/LeadSubmissionResponse.schema.ts
|
|
29626
|
+
var import_zod70 = require("zod");
|
|
29627
|
+
var LeadSubmissionResponseSchema = import_zod70.z.object({
|
|
29628
|
+
success: import_zod70.z.boolean(),
|
|
29629
|
+
message: import_zod70.z.string(),
|
|
29630
|
+
lead_id: import_zod70.z.int()
|
|
29667
29631
|
});
|
|
29668
29632
|
|
|
29669
29633
|
// src/cfg/generated/_utils/schemas/Message.schema.ts
|
|
29670
|
-
var
|
|
29634
|
+
var import_zod72 = require("zod");
|
|
29671
29635
|
|
|
29672
29636
|
// src/cfg/generated/_utils/schemas/Sender.schema.ts
|
|
29673
|
-
var
|
|
29674
|
-
var SenderSchema =
|
|
29675
|
-
id:
|
|
29676
|
-
display_username:
|
|
29677
|
-
email:
|
|
29678
|
-
avatar:
|
|
29679
|
-
initials:
|
|
29680
|
-
is_staff:
|
|
29681
|
-
is_superuser:
|
|
29637
|
+
var import_zod71 = require("zod");
|
|
29638
|
+
var SenderSchema = import_zod71.z.object({
|
|
29639
|
+
id: import_zod71.z.int(),
|
|
29640
|
+
display_username: import_zod71.z.string(),
|
|
29641
|
+
email: import_zod71.z.email(),
|
|
29642
|
+
avatar: import_zod71.z.string().nullable(),
|
|
29643
|
+
initials: import_zod71.z.string(),
|
|
29644
|
+
is_staff: import_zod71.z.boolean(),
|
|
29645
|
+
is_superuser: import_zod71.z.boolean()
|
|
29682
29646
|
});
|
|
29683
29647
|
|
|
29684
29648
|
// src/cfg/generated/_utils/schemas/Message.schema.ts
|
|
29685
|
-
var MessageSchema =
|
|
29686
|
-
uuid:
|
|
29687
|
-
ticket:
|
|
29649
|
+
var MessageSchema = import_zod72.z.object({
|
|
29650
|
+
uuid: import_zod72.z.uuid(),
|
|
29651
|
+
ticket: import_zod72.z.uuid(),
|
|
29688
29652
|
sender: SenderSchema,
|
|
29689
|
-
is_from_author:
|
|
29690
|
-
text:
|
|
29691
|
-
created_at:
|
|
29653
|
+
is_from_author: import_zod72.z.boolean(),
|
|
29654
|
+
text: import_zod72.z.string(),
|
|
29655
|
+
created_at: import_zod72.z.iso.datetime()
|
|
29692
29656
|
});
|
|
29693
29657
|
|
|
29694
29658
|
// src/cfg/generated/_utils/schemas/MessageCreate.schema.ts
|
|
29695
|
-
var import_zod72 = require("zod");
|
|
29696
|
-
var MessageCreateSchema = import_zod72.z.object({
|
|
29697
|
-
text: import_zod72.z.string()
|
|
29698
|
-
});
|
|
29699
|
-
|
|
29700
|
-
// src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
|
|
29701
29659
|
var import_zod73 = require("zod");
|
|
29702
|
-
var
|
|
29703
|
-
text: import_zod73.z.string()
|
|
29660
|
+
var MessageCreateSchema = import_zod73.z.object({
|
|
29661
|
+
text: import_zod73.z.string()
|
|
29704
29662
|
});
|
|
29705
29663
|
|
|
29706
|
-
// src/cfg/generated/_utils/schemas/
|
|
29664
|
+
// src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
|
|
29707
29665
|
var import_zod74 = require("zod");
|
|
29708
|
-
var
|
|
29666
|
+
var MessageCreateRequestSchema = import_zod74.z.object({
|
|
29709
29667
|
text: import_zod74.z.string().min(1)
|
|
29710
29668
|
});
|
|
29711
29669
|
|
|
29712
|
-
// src/cfg/generated/_utils/schemas/
|
|
29670
|
+
// src/cfg/generated/_utils/schemas/MessageRequest.schema.ts
|
|
29713
29671
|
var import_zod75 = require("zod");
|
|
29714
|
-
var
|
|
29715
|
-
|
|
29716
|
-
currency: CurrencyListSchema,
|
|
29717
|
-
name: import_zod75.z.string(),
|
|
29718
|
-
code: import_zod75.z.string(),
|
|
29719
|
-
is_active: import_zod75.z.boolean(),
|
|
29720
|
-
created_at: import_zod75.z.iso.datetime(),
|
|
29721
|
-
updated_at: import_zod75.z.iso.datetime()
|
|
29672
|
+
var MessageRequestSchema = import_zod75.z.object({
|
|
29673
|
+
text: import_zod75.z.string().min(1)
|
|
29722
29674
|
});
|
|
29723
29675
|
|
|
29724
|
-
// src/cfg/generated/_utils/schemas/
|
|
29676
|
+
// src/cfg/generated/_utils/schemas/Network.schema.ts
|
|
29725
29677
|
var import_zod76 = require("zod");
|
|
29726
|
-
var
|
|
29678
|
+
var NetworkSchema = import_zod76.z.object({
|
|
29727
29679
|
id: import_zod76.z.int(),
|
|
29728
|
-
|
|
29729
|
-
|
|
29730
|
-
|
|
29731
|
-
|
|
29680
|
+
currency: CurrencyListSchema.nullable(),
|
|
29681
|
+
name: import_zod76.z.string(),
|
|
29682
|
+
code: import_zod76.z.string(),
|
|
29683
|
+
is_active: import_zod76.z.boolean(),
|
|
29732
29684
|
created_at: import_zod76.z.iso.datetime(),
|
|
29733
|
-
updated_at: import_zod76.z.iso.datetime()
|
|
29734
|
-
subscribers_count: import_zod76.z.int()
|
|
29685
|
+
updated_at: import_zod76.z.iso.datetime()
|
|
29735
29686
|
});
|
|
29736
29687
|
|
|
29737
|
-
// src/cfg/generated/_utils/schemas/
|
|
29688
|
+
// src/cfg/generated/_utils/schemas/Newsletter.schema.ts
|
|
29738
29689
|
var import_zod77 = require("zod");
|
|
29739
|
-
var
|
|
29690
|
+
var NewsletterSchema = import_zod77.z.object({
|
|
29740
29691
|
id: import_zod77.z.int(),
|
|
29741
|
-
|
|
29742
|
-
|
|
29743
|
-
|
|
29744
|
-
|
|
29745
|
-
main_text: import_zod77.z.string(),
|
|
29746
|
-
main_html_content: import_zod77.z.string().optional(),
|
|
29747
|
-
button_text: import_zod77.z.string().max(100).optional(),
|
|
29748
|
-
button_url: import_zod77.z.url().optional(),
|
|
29749
|
-
secondary_text: import_zod77.z.string().optional(),
|
|
29750
|
-
status: import_zod77.z.nativeEnum(NewsletterCampaignStatus),
|
|
29692
|
+
title: import_zod77.z.string().max(255),
|
|
29693
|
+
description: import_zod77.z.string().optional(),
|
|
29694
|
+
is_active: import_zod77.z.boolean().optional(),
|
|
29695
|
+
auto_subscribe: import_zod77.z.boolean().optional(),
|
|
29751
29696
|
created_at: import_zod77.z.iso.datetime(),
|
|
29752
|
-
|
|
29753
|
-
|
|
29697
|
+
updated_at: import_zod77.z.iso.datetime(),
|
|
29698
|
+
subscribers_count: import_zod77.z.int()
|
|
29754
29699
|
});
|
|
29755
29700
|
|
|
29756
|
-
// src/cfg/generated/_utils/schemas/
|
|
29701
|
+
// src/cfg/generated/_utils/schemas/NewsletterCampaign.schema.ts
|
|
29757
29702
|
var import_zod78 = require("zod");
|
|
29758
|
-
var
|
|
29703
|
+
var NewsletterCampaignSchema = import_zod78.z.object({
|
|
29704
|
+
id: import_zod78.z.int(),
|
|
29759
29705
|
newsletter: import_zod78.z.int(),
|
|
29760
|
-
|
|
29761
|
-
|
|
29762
|
-
|
|
29706
|
+
newsletter_title: import_zod78.z.string(),
|
|
29707
|
+
subject: import_zod78.z.string().max(255),
|
|
29708
|
+
email_title: import_zod78.z.string().max(255),
|
|
29709
|
+
main_text: import_zod78.z.string(),
|
|
29763
29710
|
main_html_content: import_zod78.z.string().optional(),
|
|
29764
29711
|
button_text: import_zod78.z.string().max(100).optional(),
|
|
29765
29712
|
button_url: import_zod78.z.url().optional(),
|
|
29766
|
-
secondary_text: import_zod78.z.string().optional()
|
|
29713
|
+
secondary_text: import_zod78.z.string().optional(),
|
|
29714
|
+
status: import_zod78.z.nativeEnum(NewsletterCampaignStatus),
|
|
29715
|
+
created_at: import_zod78.z.iso.datetime(),
|
|
29716
|
+
sent_at: import_zod78.z.iso.datetime().nullable(),
|
|
29717
|
+
recipient_count: import_zod78.z.int()
|
|
29767
29718
|
});
|
|
29768
29719
|
|
|
29769
|
-
// src/cfg/generated/_utils/schemas/
|
|
29720
|
+
// src/cfg/generated/_utils/schemas/NewsletterCampaignRequest.schema.ts
|
|
29770
29721
|
var import_zod79 = require("zod");
|
|
29771
|
-
var
|
|
29772
|
-
id: import_zod79.z.int(),
|
|
29722
|
+
var NewsletterCampaignRequestSchema = import_zod79.z.object({
|
|
29773
29723
|
newsletter: import_zod79.z.int(),
|
|
29774
|
-
|
|
29775
|
-
|
|
29776
|
-
|
|
29777
|
-
|
|
29778
|
-
|
|
29779
|
-
|
|
29780
|
-
|
|
29724
|
+
subject: import_zod79.z.string().min(1).max(255),
|
|
29725
|
+
email_title: import_zod79.z.string().min(1).max(255),
|
|
29726
|
+
main_text: import_zod79.z.string().min(1),
|
|
29727
|
+
main_html_content: import_zod79.z.string().optional(),
|
|
29728
|
+
button_text: import_zod79.z.string().max(100).optional(),
|
|
29729
|
+
button_url: import_zod79.z.url().optional(),
|
|
29730
|
+
secondary_text: import_zod79.z.string().optional()
|
|
29781
29731
|
});
|
|
29782
29732
|
|
|
29783
|
-
// src/cfg/generated/_utils/schemas/
|
|
29733
|
+
// src/cfg/generated/_utils/schemas/NewsletterSubscription.schema.ts
|
|
29784
29734
|
var import_zod80 = require("zod");
|
|
29785
|
-
var
|
|
29786
|
-
|
|
29735
|
+
var NewsletterSubscriptionSchema = import_zod80.z.object({
|
|
29736
|
+
id: import_zod80.z.int(),
|
|
29737
|
+
newsletter: import_zod80.z.int(),
|
|
29738
|
+
newsletter_title: import_zod80.z.string(),
|
|
29739
|
+
user: import_zod80.z.int().nullable().optional(),
|
|
29740
|
+
user_email: import_zod80.z.string(),
|
|
29741
|
+
email: import_zod80.z.email(),
|
|
29742
|
+
is_active: import_zod80.z.boolean().optional(),
|
|
29743
|
+
subscribed_at: import_zod80.z.iso.datetime(),
|
|
29744
|
+
unsubscribed_at: import_zod80.z.iso.datetime().nullable()
|
|
29787
29745
|
});
|
|
29788
29746
|
|
|
29789
|
-
// src/cfg/generated/_utils/schemas/
|
|
29747
|
+
// src/cfg/generated/_utils/schemas/OTPErrorResponse.schema.ts
|
|
29790
29748
|
var import_zod81 = require("zod");
|
|
29791
|
-
var
|
|
29792
|
-
|
|
29793
|
-
channel: import_zod81.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
29794
|
-
source_url: import_zod81.z.url().optional()
|
|
29749
|
+
var OTPErrorResponseSchema = import_zod81.z.object({
|
|
29750
|
+
error: import_zod81.z.string()
|
|
29795
29751
|
});
|
|
29796
29752
|
|
|
29797
|
-
// src/cfg/generated/_utils/schemas/
|
|
29753
|
+
// src/cfg/generated/_utils/schemas/OTPRequestRequest.schema.ts
|
|
29798
29754
|
var import_zod82 = require("zod");
|
|
29799
|
-
var
|
|
29800
|
-
|
|
29755
|
+
var OTPRequestRequestSchema = import_zod82.z.object({
|
|
29756
|
+
identifier: import_zod82.z.string().min(1),
|
|
29757
|
+
channel: import_zod82.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
29758
|
+
source_url: import_zod82.z.url().optional()
|
|
29801
29759
|
});
|
|
29802
29760
|
|
|
29803
|
-
// src/cfg/generated/_utils/schemas/
|
|
29761
|
+
// src/cfg/generated/_utils/schemas/OTPRequestResponse.schema.ts
|
|
29804
29762
|
var import_zod83 = require("zod");
|
|
29805
|
-
var
|
|
29806
|
-
|
|
29807
|
-
|
|
29808
|
-
|
|
29809
|
-
|
|
29763
|
+
var OTPRequestResponseSchema = import_zod83.z.object({
|
|
29764
|
+
message: import_zod83.z.string()
|
|
29765
|
+
});
|
|
29766
|
+
|
|
29767
|
+
// src/cfg/generated/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
29768
|
+
var import_zod84 = require("zod");
|
|
29769
|
+
var OTPVerifyRequestSchema = import_zod84.z.object({
|
|
29770
|
+
identifier: import_zod84.z.string().min(1),
|
|
29771
|
+
otp: import_zod84.z.string().min(6).max(6),
|
|
29772
|
+
channel: import_zod84.z.nativeEnum(OTPVerifyRequestChannel).optional(),
|
|
29773
|
+
source_url: import_zod84.z.url().optional()
|
|
29810
29774
|
});
|
|
29811
29775
|
|
|
29812
29776
|
// src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
29813
|
-
var
|
|
29777
|
+
var import_zod86 = require("zod");
|
|
29814
29778
|
|
|
29815
29779
|
// src/cfg/generated/_utils/schemas/User.schema.ts
|
|
29816
|
-
var
|
|
29817
|
-
var UserSchema =
|
|
29818
|
-
id:
|
|
29819
|
-
email:
|
|
29820
|
-
first_name:
|
|
29821
|
-
last_name:
|
|
29822
|
-
full_name:
|
|
29823
|
-
initials:
|
|
29824
|
-
display_username:
|
|
29825
|
-
company:
|
|
29826
|
-
phone:
|
|
29827
|
-
position:
|
|
29828
|
-
avatar:
|
|
29829
|
-
is_staff:
|
|
29830
|
-
is_superuser:
|
|
29831
|
-
date_joined:
|
|
29832
|
-
last_login:
|
|
29833
|
-
unanswered_messages_count:
|
|
29780
|
+
var import_zod85 = require("zod");
|
|
29781
|
+
var UserSchema = import_zod85.z.object({
|
|
29782
|
+
id: import_zod85.z.int(),
|
|
29783
|
+
email: import_zod85.z.email(),
|
|
29784
|
+
first_name: import_zod85.z.string().max(50).optional(),
|
|
29785
|
+
last_name: import_zod85.z.string().max(50).optional(),
|
|
29786
|
+
full_name: import_zod85.z.string(),
|
|
29787
|
+
initials: import_zod85.z.string(),
|
|
29788
|
+
display_username: import_zod85.z.string(),
|
|
29789
|
+
company: import_zod85.z.string().max(100).optional(),
|
|
29790
|
+
phone: import_zod85.z.string().max(20).optional(),
|
|
29791
|
+
position: import_zod85.z.string().max(100).optional(),
|
|
29792
|
+
avatar: import_zod85.z.url().nullable(),
|
|
29793
|
+
is_staff: import_zod85.z.boolean(),
|
|
29794
|
+
is_superuser: import_zod85.z.boolean(),
|
|
29795
|
+
date_joined: import_zod85.z.iso.datetime(),
|
|
29796
|
+
last_login: import_zod85.z.iso.datetime().nullable(),
|
|
29797
|
+
unanswered_messages_count: import_zod85.z.int()
|
|
29834
29798
|
});
|
|
29835
29799
|
|
|
29836
29800
|
// src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
29837
|
-
var OTPVerifyResponseSchema =
|
|
29838
|
-
refresh:
|
|
29839
|
-
access:
|
|
29801
|
+
var OTPVerifyResponseSchema = import_zod86.z.object({
|
|
29802
|
+
refresh: import_zod86.z.string(),
|
|
29803
|
+
access: import_zod86.z.string(),
|
|
29840
29804
|
user: UserSchema
|
|
29841
29805
|
});
|
|
29842
29806
|
|
|
29843
29807
|
// src/cfg/generated/_utils/schemas/PaginatedAPIKeyListList.schema.ts
|
|
29844
|
-
var import_zod86 = require("zod");
|
|
29845
|
-
var PaginatedAPIKeyListListSchema = import_zod86.z.object({
|
|
29846
|
-
count: import_zod86.z.int(),
|
|
29847
|
-
page: import_zod86.z.int(),
|
|
29848
|
-
pages: import_zod86.z.int(),
|
|
29849
|
-
page_size: import_zod86.z.int(),
|
|
29850
|
-
has_next: import_zod86.z.boolean(),
|
|
29851
|
-
has_previous: import_zod86.z.boolean(),
|
|
29852
|
-
next_page: import_zod86.z.int().nullable().optional(),
|
|
29853
|
-
previous_page: import_zod86.z.int().nullable().optional(),
|
|
29854
|
-
results: import_zod86.z.array(APIKeyListSchema)
|
|
29855
|
-
});
|
|
29856
|
-
|
|
29857
|
-
// src/cfg/generated/_utils/schemas/PaginatedAdminPaymentListList.schema.ts
|
|
29858
29808
|
var import_zod87 = require("zod");
|
|
29859
|
-
var
|
|
29809
|
+
var PaginatedAPIKeyListListSchema = import_zod87.z.object({
|
|
29860
29810
|
count: import_zod87.z.int(),
|
|
29861
29811
|
page: import_zod87.z.int(),
|
|
29862
29812
|
pages: import_zod87.z.int(),
|
|
@@ -29865,12 +29815,12 @@ var PaginatedAdminPaymentListListSchema = import_zod87.z.object({
|
|
|
29865
29815
|
has_previous: import_zod87.z.boolean(),
|
|
29866
29816
|
next_page: import_zod87.z.int().nullable().optional(),
|
|
29867
29817
|
previous_page: import_zod87.z.int().nullable().optional(),
|
|
29868
|
-
results: import_zod87.z.array(
|
|
29818
|
+
results: import_zod87.z.array(APIKeyListSchema)
|
|
29869
29819
|
});
|
|
29870
29820
|
|
|
29871
|
-
// src/cfg/generated/_utils/schemas/
|
|
29821
|
+
// src/cfg/generated/_utils/schemas/PaginatedAdminPaymentListList.schema.ts
|
|
29872
29822
|
var import_zod88 = require("zod");
|
|
29873
|
-
var
|
|
29823
|
+
var PaginatedAdminPaymentListListSchema = import_zod88.z.object({
|
|
29874
29824
|
count: import_zod88.z.int(),
|
|
29875
29825
|
page: import_zod88.z.int(),
|
|
29876
29826
|
pages: import_zod88.z.int(),
|
|
@@ -29879,12 +29829,12 @@ var PaginatedAdminPaymentStatsListSchema = import_zod88.z.object({
|
|
|
29879
29829
|
has_previous: import_zod88.z.boolean(),
|
|
29880
29830
|
next_page: import_zod88.z.int().nullable().optional(),
|
|
29881
29831
|
previous_page: import_zod88.z.int().nullable().optional(),
|
|
29882
|
-
results: import_zod88.z.array(
|
|
29832
|
+
results: import_zod88.z.array(AdminPaymentListSchema)
|
|
29883
29833
|
});
|
|
29884
29834
|
|
|
29885
|
-
// src/cfg/generated/_utils/schemas/
|
|
29835
|
+
// src/cfg/generated/_utils/schemas/PaginatedAdminPaymentStatsList.schema.ts
|
|
29886
29836
|
var import_zod89 = require("zod");
|
|
29887
|
-
var
|
|
29837
|
+
var PaginatedAdminPaymentStatsListSchema = import_zod89.z.object({
|
|
29888
29838
|
count: import_zod89.z.int(),
|
|
29889
29839
|
page: import_zod89.z.int(),
|
|
29890
29840
|
pages: import_zod89.z.int(),
|
|
@@ -29893,12 +29843,12 @@ var PaginatedAdminUserListSchema = import_zod89.z.object({
|
|
|
29893
29843
|
has_previous: import_zod89.z.boolean(),
|
|
29894
29844
|
next_page: import_zod89.z.int().nullable().optional(),
|
|
29895
29845
|
previous_page: import_zod89.z.int().nullable().optional(),
|
|
29896
|
-
results: import_zod89.z.array(
|
|
29846
|
+
results: import_zod89.z.array(AdminPaymentStatsSchema)
|
|
29897
29847
|
});
|
|
29898
29848
|
|
|
29899
|
-
// src/cfg/generated/_utils/schemas/
|
|
29849
|
+
// src/cfg/generated/_utils/schemas/PaginatedAdminUserList.schema.ts
|
|
29900
29850
|
var import_zod90 = require("zod");
|
|
29901
|
-
var
|
|
29851
|
+
var PaginatedAdminUserListSchema = import_zod90.z.object({
|
|
29902
29852
|
count: import_zod90.z.int(),
|
|
29903
29853
|
page: import_zod90.z.int(),
|
|
29904
29854
|
pages: import_zod90.z.int(),
|
|
@@ -29907,12 +29857,12 @@ var PaginatedArchiveItemChunkListSchema = import_zod90.z.object({
|
|
|
29907
29857
|
has_previous: import_zod90.z.boolean(),
|
|
29908
29858
|
next_page: import_zod90.z.int().nullable().optional(),
|
|
29909
29859
|
previous_page: import_zod90.z.int().nullable().optional(),
|
|
29910
|
-
results: import_zod90.z.array(
|
|
29860
|
+
results: import_zod90.z.array(AdminUserSchema)
|
|
29911
29861
|
});
|
|
29912
29862
|
|
|
29913
|
-
// src/cfg/generated/_utils/schemas/
|
|
29863
|
+
// src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts
|
|
29914
29864
|
var import_zod91 = require("zod");
|
|
29915
|
-
var
|
|
29865
|
+
var PaginatedArchiveItemChunkListSchema = import_zod91.z.object({
|
|
29916
29866
|
count: import_zod91.z.int(),
|
|
29917
29867
|
page: import_zod91.z.int(),
|
|
29918
29868
|
pages: import_zod91.z.int(),
|
|
@@ -29921,12 +29871,12 @@ var PaginatedArchiveItemListSchema = import_zod91.z.object({
|
|
|
29921
29871
|
has_previous: import_zod91.z.boolean(),
|
|
29922
29872
|
next_page: import_zod91.z.int().nullable().optional(),
|
|
29923
29873
|
previous_page: import_zod91.z.int().nullable().optional(),
|
|
29924
|
-
results: import_zod91.z.array(
|
|
29874
|
+
results: import_zod91.z.array(ArchiveItemChunkSchema)
|
|
29925
29875
|
});
|
|
29926
29876
|
|
|
29927
|
-
// src/cfg/generated/_utils/schemas/
|
|
29877
|
+
// src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts
|
|
29928
29878
|
var import_zod92 = require("zod");
|
|
29929
|
-
var
|
|
29879
|
+
var PaginatedArchiveItemListSchema = import_zod92.z.object({
|
|
29930
29880
|
count: import_zod92.z.int(),
|
|
29931
29881
|
page: import_zod92.z.int(),
|
|
29932
29882
|
pages: import_zod92.z.int(),
|
|
@@ -29935,12 +29885,12 @@ var PaginatedArchiveSearchResultListSchema = import_zod92.z.object({
|
|
|
29935
29885
|
has_previous: import_zod92.z.boolean(),
|
|
29936
29886
|
next_page: import_zod92.z.int().nullable().optional(),
|
|
29937
29887
|
previous_page: import_zod92.z.int().nullable().optional(),
|
|
29938
|
-
results: import_zod92.z.array(
|
|
29888
|
+
results: import_zod92.z.array(ArchiveItemSchema)
|
|
29939
29889
|
});
|
|
29940
29890
|
|
|
29941
|
-
// src/cfg/generated/_utils/schemas/
|
|
29891
|
+
// src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts
|
|
29942
29892
|
var import_zod93 = require("zod");
|
|
29943
|
-
var
|
|
29893
|
+
var PaginatedArchiveSearchResultListSchema = import_zod93.z.object({
|
|
29944
29894
|
count: import_zod93.z.int(),
|
|
29945
29895
|
page: import_zod93.z.int(),
|
|
29946
29896
|
pages: import_zod93.z.int(),
|
|
@@ -29949,12 +29899,12 @@ var PaginatedChatResponseListSchema = import_zod93.z.object({
|
|
|
29949
29899
|
has_previous: import_zod93.z.boolean(),
|
|
29950
29900
|
next_page: import_zod93.z.int().nullable().optional(),
|
|
29951
29901
|
previous_page: import_zod93.z.int().nullable().optional(),
|
|
29952
|
-
results: import_zod93.z.array(
|
|
29902
|
+
results: import_zod93.z.array(ArchiveSearchResultSchema)
|
|
29953
29903
|
});
|
|
29954
29904
|
|
|
29955
|
-
// src/cfg/generated/_utils/schemas/
|
|
29905
|
+
// src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts
|
|
29956
29906
|
var import_zod94 = require("zod");
|
|
29957
|
-
var
|
|
29907
|
+
var PaginatedChatResponseListSchema = import_zod94.z.object({
|
|
29958
29908
|
count: import_zod94.z.int(),
|
|
29959
29909
|
page: import_zod94.z.int(),
|
|
29960
29910
|
pages: import_zod94.z.int(),
|
|
@@ -29963,12 +29913,12 @@ var PaginatedChatSessionListSchema = import_zod94.z.object({
|
|
|
29963
29913
|
has_previous: import_zod94.z.boolean(),
|
|
29964
29914
|
next_page: import_zod94.z.int().nullable().optional(),
|
|
29965
29915
|
previous_page: import_zod94.z.int().nullable().optional(),
|
|
29966
|
-
results: import_zod94.z.array(
|
|
29916
|
+
results: import_zod94.z.array(ChatResponseSchema)
|
|
29967
29917
|
});
|
|
29968
29918
|
|
|
29969
|
-
// src/cfg/generated/_utils/schemas/
|
|
29919
|
+
// src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts
|
|
29970
29920
|
var import_zod95 = require("zod");
|
|
29971
|
-
var
|
|
29921
|
+
var PaginatedChatSessionListSchema = import_zod95.z.object({
|
|
29972
29922
|
count: import_zod95.z.int(),
|
|
29973
29923
|
page: import_zod95.z.int(),
|
|
29974
29924
|
pages: import_zod95.z.int(),
|
|
@@ -29977,12 +29927,12 @@ var PaginatedCurrencyListListSchema = import_zod95.z.object({
|
|
|
29977
29927
|
has_previous: import_zod95.z.boolean(),
|
|
29978
29928
|
next_page: import_zod95.z.int().nullable().optional(),
|
|
29979
29929
|
previous_page: import_zod95.z.int().nullable().optional(),
|
|
29980
|
-
results: import_zod95.z.array(
|
|
29930
|
+
results: import_zod95.z.array(ChatSessionSchema)
|
|
29981
29931
|
});
|
|
29982
29932
|
|
|
29983
|
-
// src/cfg/generated/_utils/schemas/
|
|
29933
|
+
// src/cfg/generated/_utils/schemas/PaginatedCurrencyListList.schema.ts
|
|
29984
29934
|
var import_zod96 = require("zod");
|
|
29985
|
-
var
|
|
29935
|
+
var PaginatedCurrencyListListSchema = import_zod96.z.object({
|
|
29986
29936
|
count: import_zod96.z.int(),
|
|
29987
29937
|
page: import_zod96.z.int(),
|
|
29988
29938
|
pages: import_zod96.z.int(),
|
|
@@ -29991,12 +29941,12 @@ var PaginatedDocumentArchiveListListSchema = import_zod96.z.object({
|
|
|
29991
29941
|
has_previous: import_zod96.z.boolean(),
|
|
29992
29942
|
next_page: import_zod96.z.int().nullable().optional(),
|
|
29993
29943
|
previous_page: import_zod96.z.int().nullable().optional(),
|
|
29994
|
-
results: import_zod96.z.array(
|
|
29944
|
+
results: import_zod96.z.array(CurrencyListSchema)
|
|
29995
29945
|
});
|
|
29996
29946
|
|
|
29997
|
-
// src/cfg/generated/_utils/schemas/
|
|
29947
|
+
// src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts
|
|
29998
29948
|
var import_zod97 = require("zod");
|
|
29999
|
-
var
|
|
29949
|
+
var PaginatedDocumentArchiveListListSchema = import_zod97.z.object({
|
|
30000
29950
|
count: import_zod97.z.int(),
|
|
30001
29951
|
page: import_zod97.z.int(),
|
|
30002
29952
|
pages: import_zod97.z.int(),
|
|
@@ -30005,12 +29955,12 @@ var PaginatedDocumentListSchema = import_zod97.z.object({
|
|
|
30005
29955
|
has_previous: import_zod97.z.boolean(),
|
|
30006
29956
|
next_page: import_zod97.z.int().nullable().optional(),
|
|
30007
29957
|
previous_page: import_zod97.z.int().nullable().optional(),
|
|
30008
|
-
results: import_zod97.z.array(
|
|
29958
|
+
results: import_zod97.z.array(DocumentArchiveListSchema)
|
|
30009
29959
|
});
|
|
30010
29960
|
|
|
30011
|
-
// src/cfg/generated/_utils/schemas/
|
|
29961
|
+
// src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts
|
|
30012
29962
|
var import_zod98 = require("zod");
|
|
30013
|
-
var
|
|
29963
|
+
var PaginatedDocumentListSchema = import_zod98.z.object({
|
|
30014
29964
|
count: import_zod98.z.int(),
|
|
30015
29965
|
page: import_zod98.z.int(),
|
|
30016
29966
|
pages: import_zod98.z.int(),
|
|
@@ -30019,12 +29969,12 @@ var PaginatedEmailLogListSchema = import_zod98.z.object({
|
|
|
30019
29969
|
has_previous: import_zod98.z.boolean(),
|
|
30020
29970
|
next_page: import_zod98.z.int().nullable().optional(),
|
|
30021
29971
|
previous_page: import_zod98.z.int().nullable().optional(),
|
|
30022
|
-
results: import_zod98.z.array(
|
|
29972
|
+
results: import_zod98.z.array(DocumentSchema)
|
|
30023
29973
|
});
|
|
30024
29974
|
|
|
30025
|
-
// src/cfg/generated/_utils/schemas/
|
|
29975
|
+
// src/cfg/generated/_utils/schemas/PaginatedEmailLogList.schema.ts
|
|
30026
29976
|
var import_zod99 = require("zod");
|
|
30027
|
-
var
|
|
29977
|
+
var PaginatedEmailLogListSchema = import_zod99.z.object({
|
|
30028
29978
|
count: import_zod99.z.int(),
|
|
30029
29979
|
page: import_zod99.z.int(),
|
|
30030
29980
|
pages: import_zod99.z.int(),
|
|
@@ -30033,12 +29983,12 @@ var PaginatedEndpointGroupListSchema = import_zod99.z.object({
|
|
|
30033
29983
|
has_previous: import_zod99.z.boolean(),
|
|
30034
29984
|
next_page: import_zod99.z.int().nullable().optional(),
|
|
30035
29985
|
previous_page: import_zod99.z.int().nullable().optional(),
|
|
30036
|
-
results: import_zod99.z.array(
|
|
29986
|
+
results: import_zod99.z.array(EmailLogSchema)
|
|
30037
29987
|
});
|
|
30038
29988
|
|
|
30039
|
-
// src/cfg/generated/_utils/schemas/
|
|
29989
|
+
// src/cfg/generated/_utils/schemas/PaginatedEndpointGroupList.schema.ts
|
|
30040
29990
|
var import_zod100 = require("zod");
|
|
30041
|
-
var
|
|
29991
|
+
var PaginatedEndpointGroupListSchema = import_zod100.z.object({
|
|
30042
29992
|
count: import_zod100.z.int(),
|
|
30043
29993
|
page: import_zod100.z.int(),
|
|
30044
29994
|
pages: import_zod100.z.int(),
|
|
@@ -30047,12 +29997,12 @@ var PaginatedLeadSubmissionListSchema = import_zod100.z.object({
|
|
|
30047
29997
|
has_previous: import_zod100.z.boolean(),
|
|
30048
29998
|
next_page: import_zod100.z.int().nullable().optional(),
|
|
30049
29999
|
previous_page: import_zod100.z.int().nullable().optional(),
|
|
30050
|
-
results: import_zod100.z.array(
|
|
30000
|
+
results: import_zod100.z.array(EndpointGroupSchema)
|
|
30051
30001
|
});
|
|
30052
30002
|
|
|
30053
|
-
// src/cfg/generated/_utils/schemas/
|
|
30003
|
+
// src/cfg/generated/_utils/schemas/PaginatedLeadSubmissionList.schema.ts
|
|
30054
30004
|
var import_zod101 = require("zod");
|
|
30055
|
-
var
|
|
30005
|
+
var PaginatedLeadSubmissionListSchema = import_zod101.z.object({
|
|
30056
30006
|
count: import_zod101.z.int(),
|
|
30057
30007
|
page: import_zod101.z.int(),
|
|
30058
30008
|
pages: import_zod101.z.int(),
|
|
@@ -30061,12 +30011,12 @@ var PaginatedMessageListSchema = import_zod101.z.object({
|
|
|
30061
30011
|
has_previous: import_zod101.z.boolean(),
|
|
30062
30012
|
next_page: import_zod101.z.int().nullable().optional(),
|
|
30063
30013
|
previous_page: import_zod101.z.int().nullable().optional(),
|
|
30064
|
-
results: import_zod101.z.array(
|
|
30014
|
+
results: import_zod101.z.array(LeadSubmissionSchema)
|
|
30065
30015
|
});
|
|
30066
30016
|
|
|
30067
|
-
// src/cfg/generated/_utils/schemas/
|
|
30017
|
+
// src/cfg/generated/_utils/schemas/PaginatedMessageList.schema.ts
|
|
30068
30018
|
var import_zod102 = require("zod");
|
|
30069
|
-
var
|
|
30019
|
+
var PaginatedMessageListSchema = import_zod102.z.object({
|
|
30070
30020
|
count: import_zod102.z.int(),
|
|
30071
30021
|
page: import_zod102.z.int(),
|
|
30072
30022
|
pages: import_zod102.z.int(),
|
|
@@ -30075,12 +30025,12 @@ var PaginatedNetworkListSchema = import_zod102.z.object({
|
|
|
30075
30025
|
has_previous: import_zod102.z.boolean(),
|
|
30076
30026
|
next_page: import_zod102.z.int().nullable().optional(),
|
|
30077
30027
|
previous_page: import_zod102.z.int().nullable().optional(),
|
|
30078
|
-
results: import_zod102.z.array(
|
|
30028
|
+
results: import_zod102.z.array(MessageSchema)
|
|
30079
30029
|
});
|
|
30080
30030
|
|
|
30081
|
-
// src/cfg/generated/_utils/schemas/
|
|
30031
|
+
// src/cfg/generated/_utils/schemas/PaginatedNetworkList.schema.ts
|
|
30082
30032
|
var import_zod103 = require("zod");
|
|
30083
|
-
var
|
|
30033
|
+
var PaginatedNetworkListSchema = import_zod103.z.object({
|
|
30084
30034
|
count: import_zod103.z.int(),
|
|
30085
30035
|
page: import_zod103.z.int(),
|
|
30086
30036
|
pages: import_zod103.z.int(),
|
|
@@ -30089,12 +30039,12 @@ var PaginatedNewsletterCampaignListSchema = import_zod103.z.object({
|
|
|
30089
30039
|
has_previous: import_zod103.z.boolean(),
|
|
30090
30040
|
next_page: import_zod103.z.int().nullable().optional(),
|
|
30091
30041
|
previous_page: import_zod103.z.int().nullable().optional(),
|
|
30092
|
-
results: import_zod103.z.array(
|
|
30042
|
+
results: import_zod103.z.array(NetworkSchema)
|
|
30093
30043
|
});
|
|
30094
30044
|
|
|
30095
|
-
// src/cfg/generated/_utils/schemas/
|
|
30045
|
+
// src/cfg/generated/_utils/schemas/PaginatedNewsletterCampaignList.schema.ts
|
|
30096
30046
|
var import_zod104 = require("zod");
|
|
30097
|
-
var
|
|
30047
|
+
var PaginatedNewsletterCampaignListSchema = import_zod104.z.object({
|
|
30098
30048
|
count: import_zod104.z.int(),
|
|
30099
30049
|
page: import_zod104.z.int(),
|
|
30100
30050
|
pages: import_zod104.z.int(),
|
|
@@ -30103,12 +30053,12 @@ var PaginatedNewsletterListSchema = import_zod104.z.object({
|
|
|
30103
30053
|
has_previous: import_zod104.z.boolean(),
|
|
30104
30054
|
next_page: import_zod104.z.int().nullable().optional(),
|
|
30105
30055
|
previous_page: import_zod104.z.int().nullable().optional(),
|
|
30106
|
-
results: import_zod104.z.array(
|
|
30056
|
+
results: import_zod104.z.array(NewsletterCampaignSchema)
|
|
30107
30057
|
});
|
|
30108
30058
|
|
|
30109
|
-
// src/cfg/generated/_utils/schemas/
|
|
30059
|
+
// src/cfg/generated/_utils/schemas/PaginatedNewsletterList.schema.ts
|
|
30110
30060
|
var import_zod105 = require("zod");
|
|
30111
|
-
var
|
|
30061
|
+
var PaginatedNewsletterListSchema = import_zod105.z.object({
|
|
30112
30062
|
count: import_zod105.z.int(),
|
|
30113
30063
|
page: import_zod105.z.int(),
|
|
30114
30064
|
pages: import_zod105.z.int(),
|
|
@@ -30117,1056 +30067,1072 @@ var PaginatedNewsletterSubscriptionListSchema = import_zod105.z.object({
|
|
|
30117
30067
|
has_previous: import_zod105.z.boolean(),
|
|
30118
30068
|
next_page: import_zod105.z.int().nullable().optional(),
|
|
30119
30069
|
previous_page: import_zod105.z.int().nullable().optional(),
|
|
30120
|
-
results: import_zod105.z.array(
|
|
30070
|
+
results: import_zod105.z.array(NewsletterSchema)
|
|
30071
|
+
});
|
|
30072
|
+
|
|
30073
|
+
// src/cfg/generated/_utils/schemas/PaginatedNewsletterSubscriptionList.schema.ts
|
|
30074
|
+
var import_zod106 = require("zod");
|
|
30075
|
+
var PaginatedNewsletterSubscriptionListSchema = import_zod106.z.object({
|
|
30076
|
+
count: import_zod106.z.int(),
|
|
30077
|
+
page: import_zod106.z.int(),
|
|
30078
|
+
pages: import_zod106.z.int(),
|
|
30079
|
+
page_size: import_zod106.z.int(),
|
|
30080
|
+
has_next: import_zod106.z.boolean(),
|
|
30081
|
+
has_previous: import_zod106.z.boolean(),
|
|
30082
|
+
next_page: import_zod106.z.int().nullable().optional(),
|
|
30083
|
+
previous_page: import_zod106.z.int().nullable().optional(),
|
|
30084
|
+
results: import_zod106.z.array(NewsletterSubscriptionSchema)
|
|
30121
30085
|
});
|
|
30122
30086
|
|
|
30123
30087
|
// src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
|
|
30124
|
-
var
|
|
30088
|
+
var import_zod108 = require("zod");
|
|
30125
30089
|
|
|
30126
30090
|
// src/cfg/generated/_utils/schemas/PaymentList.schema.ts
|
|
30127
|
-
var
|
|
30128
|
-
var PaymentListSchema =
|
|
30129
|
-
id:
|
|
30130
|
-
amount_usd:
|
|
30131
|
-
currency:
|
|
30132
|
-
provider:
|
|
30133
|
-
status:
|
|
30134
|
-
status_display:
|
|
30135
|
-
amount_display:
|
|
30136
|
-
created_at:
|
|
30137
|
-
expires_at:
|
|
30091
|
+
var import_zod107 = require("zod");
|
|
30092
|
+
var PaymentListSchema = import_zod107.z.object({
|
|
30093
|
+
id: import_zod107.z.uuid(),
|
|
30094
|
+
amount_usd: import_zod107.z.number(),
|
|
30095
|
+
currency: import_zod107.z.int(),
|
|
30096
|
+
provider: import_zod107.z.nativeEnum(PaymentListProvider),
|
|
30097
|
+
status: import_zod107.z.nativeEnum(PaymentListStatus),
|
|
30098
|
+
status_display: import_zod107.z.string(),
|
|
30099
|
+
amount_display: import_zod107.z.string(),
|
|
30100
|
+
created_at: import_zod107.z.iso.datetime(),
|
|
30101
|
+
expires_at: import_zod107.z.iso.datetime().nullable()
|
|
30138
30102
|
});
|
|
30139
30103
|
|
|
30140
30104
|
// src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
|
|
30141
|
-
var PaginatedPaymentListListSchema =
|
|
30142
|
-
count:
|
|
30143
|
-
page:
|
|
30144
|
-
pages:
|
|
30145
|
-
page_size:
|
|
30146
|
-
has_next:
|
|
30147
|
-
has_previous:
|
|
30148
|
-
next_page:
|
|
30149
|
-
previous_page:
|
|
30150
|
-
results:
|
|
30105
|
+
var PaginatedPaymentListListSchema = import_zod108.z.object({
|
|
30106
|
+
count: import_zod108.z.int(),
|
|
30107
|
+
page: import_zod108.z.int(),
|
|
30108
|
+
pages: import_zod108.z.int(),
|
|
30109
|
+
page_size: import_zod108.z.int(),
|
|
30110
|
+
has_next: import_zod108.z.boolean(),
|
|
30111
|
+
has_previous: import_zod108.z.boolean(),
|
|
30112
|
+
next_page: import_zod108.z.int().nullable().optional(),
|
|
30113
|
+
previous_page: import_zod108.z.int().nullable().optional(),
|
|
30114
|
+
results: import_zod108.z.array(PaymentListSchema)
|
|
30151
30115
|
});
|
|
30152
30116
|
|
|
30153
30117
|
// src/cfg/generated/_utils/schemas/PaginatedProviderCurrencyList.schema.ts
|
|
30154
|
-
var
|
|
30118
|
+
var import_zod110 = require("zod");
|
|
30155
30119
|
|
|
30156
30120
|
// src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts
|
|
30157
|
-
var
|
|
30158
|
-
var ProviderCurrencySchema =
|
|
30159
|
-
id:
|
|
30121
|
+
var import_zod109 = require("zod");
|
|
30122
|
+
var ProviderCurrencySchema = import_zod109.z.object({
|
|
30123
|
+
id: import_zod109.z.int(),
|
|
30160
30124
|
currency: CurrencyListSchema,
|
|
30161
|
-
network: NetworkSchema,
|
|
30162
|
-
provider:
|
|
30163
|
-
provider_currency_code:
|
|
30164
|
-
provider_min_amount_usd:
|
|
30165
|
-
provider_max_amount_usd:
|
|
30166
|
-
provider_fee_percentage:
|
|
30167
|
-
provider_fixed_fee_usd:
|
|
30168
|
-
is_enabled:
|
|
30169
|
-
created_at:
|
|
30170
|
-
updated_at:
|
|
30125
|
+
network: NetworkSchema.nullable(),
|
|
30126
|
+
provider: import_zod109.z.string(),
|
|
30127
|
+
provider_currency_code: import_zod109.z.string(),
|
|
30128
|
+
provider_min_amount_usd: import_zod109.z.number(),
|
|
30129
|
+
provider_max_amount_usd: import_zod109.z.number(),
|
|
30130
|
+
provider_fee_percentage: import_zod109.z.number(),
|
|
30131
|
+
provider_fixed_fee_usd: import_zod109.z.number(),
|
|
30132
|
+
is_enabled: import_zod109.z.boolean(),
|
|
30133
|
+
created_at: import_zod109.z.iso.datetime(),
|
|
30134
|
+
updated_at: import_zod109.z.iso.datetime()
|
|
30171
30135
|
});
|
|
30172
30136
|
|
|
30173
30137
|
// src/cfg/generated/_utils/schemas/PaginatedProviderCurrencyList.schema.ts
|
|
30174
|
-
var PaginatedProviderCurrencyListSchema =
|
|
30175
|
-
count:
|
|
30176
|
-
page:
|
|
30177
|
-
pages:
|
|
30178
|
-
page_size:
|
|
30179
|
-
has_next:
|
|
30180
|
-
has_previous:
|
|
30181
|
-
next_page:
|
|
30182
|
-
previous_page:
|
|
30183
|
-
results:
|
|
30138
|
+
var PaginatedProviderCurrencyListSchema = import_zod110.z.object({
|
|
30139
|
+
count: import_zod110.z.int(),
|
|
30140
|
+
page: import_zod110.z.int(),
|
|
30141
|
+
pages: import_zod110.z.int(),
|
|
30142
|
+
page_size: import_zod110.z.int(),
|
|
30143
|
+
has_next: import_zod110.z.boolean(),
|
|
30144
|
+
has_previous: import_zod110.z.boolean(),
|
|
30145
|
+
next_page: import_zod110.z.int().nullable().optional(),
|
|
30146
|
+
previous_page: import_zod110.z.int().nullable().optional(),
|
|
30147
|
+
results: import_zod110.z.array(ProviderCurrencySchema)
|
|
30184
30148
|
});
|
|
30185
30149
|
|
|
30186
30150
|
// src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
|
|
30187
|
-
var
|
|
30151
|
+
var import_zod112 = require("zod");
|
|
30188
30152
|
|
|
30189
30153
|
// src/cfg/generated/_utils/schemas/PublicCategory.schema.ts
|
|
30190
|
-
var
|
|
30191
|
-
var PublicCategorySchema =
|
|
30192
|
-
id:
|
|
30193
|
-
name:
|
|
30194
|
-
description:
|
|
30154
|
+
var import_zod111 = require("zod");
|
|
30155
|
+
var PublicCategorySchema = import_zod111.z.object({
|
|
30156
|
+
id: import_zod111.z.uuid(),
|
|
30157
|
+
name: import_zod111.z.string().max(255),
|
|
30158
|
+
description: import_zod111.z.string().optional()
|
|
30195
30159
|
});
|
|
30196
30160
|
|
|
30197
30161
|
// src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
|
|
30198
|
-
var PaginatedPublicCategoryListSchema =
|
|
30199
|
-
count:
|
|
30200
|
-
page:
|
|
30201
|
-
pages:
|
|
30202
|
-
page_size:
|
|
30203
|
-
has_next:
|
|
30204
|
-
has_previous:
|
|
30205
|
-
next_page:
|
|
30206
|
-
previous_page:
|
|
30207
|
-
results:
|
|
30162
|
+
var PaginatedPublicCategoryListSchema = import_zod112.z.object({
|
|
30163
|
+
count: import_zod112.z.int(),
|
|
30164
|
+
page: import_zod112.z.int(),
|
|
30165
|
+
pages: import_zod112.z.int(),
|
|
30166
|
+
page_size: import_zod112.z.int(),
|
|
30167
|
+
has_next: import_zod112.z.boolean(),
|
|
30168
|
+
has_previous: import_zod112.z.boolean(),
|
|
30169
|
+
next_page: import_zod112.z.int().nullable().optional(),
|
|
30170
|
+
previous_page: import_zod112.z.int().nullable().optional(),
|
|
30171
|
+
results: import_zod112.z.array(PublicCategorySchema)
|
|
30208
30172
|
});
|
|
30209
30173
|
|
|
30210
30174
|
// src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
|
|
30211
|
-
var
|
|
30175
|
+
var import_zod114 = require("zod");
|
|
30212
30176
|
|
|
30213
30177
|
// src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts
|
|
30214
|
-
var
|
|
30215
|
-
var PublicDocumentListSchema =
|
|
30216
|
-
id:
|
|
30217
|
-
title:
|
|
30178
|
+
var import_zod113 = require("zod");
|
|
30179
|
+
var PublicDocumentListSchema = import_zod113.z.object({
|
|
30180
|
+
id: import_zod113.z.uuid(),
|
|
30181
|
+
title: import_zod113.z.string().max(512),
|
|
30218
30182
|
category: PublicCategorySchema,
|
|
30219
|
-
created_at:
|
|
30220
|
-
updated_at:
|
|
30183
|
+
created_at: import_zod113.z.iso.datetime(),
|
|
30184
|
+
updated_at: import_zod113.z.iso.datetime()
|
|
30221
30185
|
});
|
|
30222
30186
|
|
|
30223
30187
|
// src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
|
|
30224
|
-
var PaginatedPublicDocumentListListSchema =
|
|
30225
|
-
count:
|
|
30226
|
-
page:
|
|
30227
|
-
pages:
|
|
30228
|
-
page_size:
|
|
30229
|
-
has_next:
|
|
30230
|
-
has_previous:
|
|
30231
|
-
next_page:
|
|
30232
|
-
previous_page:
|
|
30233
|
-
results:
|
|
30188
|
+
var PaginatedPublicDocumentListListSchema = import_zod114.z.object({
|
|
30189
|
+
count: import_zod114.z.int(),
|
|
30190
|
+
page: import_zod114.z.int(),
|
|
30191
|
+
pages: import_zod114.z.int(),
|
|
30192
|
+
page_size: import_zod114.z.int(),
|
|
30193
|
+
has_next: import_zod114.z.boolean(),
|
|
30194
|
+
has_previous: import_zod114.z.boolean(),
|
|
30195
|
+
next_page: import_zod114.z.int().nullable().optional(),
|
|
30196
|
+
previous_page: import_zod114.z.int().nullable().optional(),
|
|
30197
|
+
results: import_zod114.z.array(PublicDocumentListSchema)
|
|
30234
30198
|
});
|
|
30235
30199
|
|
|
30236
30200
|
// src/cfg/generated/_utils/schemas/PaginatedRecentPaymentList.schema.ts
|
|
30237
|
-
var
|
|
30201
|
+
var import_zod116 = require("zod");
|
|
30238
30202
|
|
|
30239
30203
|
// src/cfg/generated/_utils/schemas/RecentPayment.schema.ts
|
|
30240
|
-
var
|
|
30241
|
-
var RecentPaymentSchema =
|
|
30242
|
-
id:
|
|
30243
|
-
internal_payment_id:
|
|
30244
|
-
amount_usd:
|
|
30245
|
-
amount_display:
|
|
30246
|
-
currency_code:
|
|
30247
|
-
status:
|
|
30248
|
-
status_display:
|
|
30249
|
-
status_color:
|
|
30250
|
-
provider:
|
|
30251
|
-
created_at:
|
|
30252
|
-
completed_at:
|
|
30253
|
-
is_pending:
|
|
30254
|
-
is_completed:
|
|
30255
|
-
is_failed:
|
|
30204
|
+
var import_zod115 = require("zod");
|
|
30205
|
+
var RecentPaymentSchema = import_zod115.z.object({
|
|
30206
|
+
id: import_zod115.z.uuid(),
|
|
30207
|
+
internal_payment_id: import_zod115.z.string(),
|
|
30208
|
+
amount_usd: import_zod115.z.number(),
|
|
30209
|
+
amount_display: import_zod115.z.string(),
|
|
30210
|
+
currency_code: import_zod115.z.string(),
|
|
30211
|
+
status: import_zod115.z.string(),
|
|
30212
|
+
status_display: import_zod115.z.string(),
|
|
30213
|
+
status_color: import_zod115.z.string(),
|
|
30214
|
+
provider: import_zod115.z.string(),
|
|
30215
|
+
created_at: import_zod115.z.iso.datetime(),
|
|
30216
|
+
completed_at: import_zod115.z.iso.datetime().nullable(),
|
|
30217
|
+
is_pending: import_zod115.z.boolean(),
|
|
30218
|
+
is_completed: import_zod115.z.boolean(),
|
|
30219
|
+
is_failed: import_zod115.z.boolean()
|
|
30256
30220
|
});
|
|
30257
30221
|
|
|
30258
30222
|
// src/cfg/generated/_utils/schemas/PaginatedRecentPaymentList.schema.ts
|
|
30259
|
-
var PaginatedRecentPaymentListSchema =
|
|
30260
|
-
count:
|
|
30261
|
-
page:
|
|
30262
|
-
pages:
|
|
30263
|
-
page_size:
|
|
30264
|
-
has_next:
|
|
30265
|
-
has_previous:
|
|
30266
|
-
next_page:
|
|
30267
|
-
previous_page:
|
|
30268
|
-
results:
|
|
30223
|
+
var PaginatedRecentPaymentListSchema = import_zod116.z.object({
|
|
30224
|
+
count: import_zod116.z.int(),
|
|
30225
|
+
page: import_zod116.z.int(),
|
|
30226
|
+
pages: import_zod116.z.int(),
|
|
30227
|
+
page_size: import_zod116.z.int(),
|
|
30228
|
+
has_next: import_zod116.z.boolean(),
|
|
30229
|
+
has_previous: import_zod116.z.boolean(),
|
|
30230
|
+
next_page: import_zod116.z.int().nullable().optional(),
|
|
30231
|
+
previous_page: import_zod116.z.int().nullable().optional(),
|
|
30232
|
+
results: import_zod116.z.array(RecentPaymentSchema)
|
|
30269
30233
|
});
|
|
30270
30234
|
|
|
30271
30235
|
// src/cfg/generated/_utils/schemas/PaginatedRecentTransactionList.schema.ts
|
|
30272
|
-
var
|
|
30236
|
+
var import_zod118 = require("zod");
|
|
30273
30237
|
|
|
30274
30238
|
// src/cfg/generated/_utils/schemas/RecentTransaction.schema.ts
|
|
30275
|
-
var
|
|
30276
|
-
var RecentTransactionSchema =
|
|
30277
|
-
id:
|
|
30278
|
-
transaction_type:
|
|
30279
|
-
amount_usd:
|
|
30280
|
-
amount_display:
|
|
30281
|
-
balance_after:
|
|
30282
|
-
description:
|
|
30283
|
-
created_at:
|
|
30284
|
-
payment_id:
|
|
30285
|
-
is_credit:
|
|
30286
|
-
is_debit:
|
|
30287
|
-
type_color:
|
|
30239
|
+
var import_zod117 = require("zod");
|
|
30240
|
+
var RecentTransactionSchema = import_zod117.z.object({
|
|
30241
|
+
id: import_zod117.z.uuid(),
|
|
30242
|
+
transaction_type: import_zod117.z.string(),
|
|
30243
|
+
amount_usd: import_zod117.z.number(),
|
|
30244
|
+
amount_display: import_zod117.z.string(),
|
|
30245
|
+
balance_after: import_zod117.z.number(),
|
|
30246
|
+
description: import_zod117.z.string(),
|
|
30247
|
+
created_at: import_zod117.z.iso.datetime(),
|
|
30248
|
+
payment_id: import_zod117.z.string().nullable(),
|
|
30249
|
+
is_credit: import_zod117.z.boolean(),
|
|
30250
|
+
is_debit: import_zod117.z.boolean(),
|
|
30251
|
+
type_color: import_zod117.z.string()
|
|
30288
30252
|
});
|
|
30289
30253
|
|
|
30290
30254
|
// src/cfg/generated/_utils/schemas/PaginatedRecentTransactionList.schema.ts
|
|
30291
|
-
var PaginatedRecentTransactionListSchema =
|
|
30292
|
-
count:
|
|
30293
|
-
page:
|
|
30294
|
-
pages:
|
|
30295
|
-
page_size:
|
|
30296
|
-
has_next:
|
|
30297
|
-
has_previous:
|
|
30298
|
-
next_page:
|
|
30299
|
-
previous_page:
|
|
30300
|
-
results:
|
|
30255
|
+
var PaginatedRecentTransactionListSchema = import_zod118.z.object({
|
|
30256
|
+
count: import_zod118.z.int(),
|
|
30257
|
+
page: import_zod118.z.int(),
|
|
30258
|
+
pages: import_zod118.z.int(),
|
|
30259
|
+
page_size: import_zod118.z.int(),
|
|
30260
|
+
has_next: import_zod118.z.boolean(),
|
|
30261
|
+
has_previous: import_zod118.z.boolean(),
|
|
30262
|
+
next_page: import_zod118.z.int().nullable().optional(),
|
|
30263
|
+
previous_page: import_zod118.z.int().nullable().optional(),
|
|
30264
|
+
results: import_zod118.z.array(RecentTransactionSchema)
|
|
30301
30265
|
});
|
|
30302
30266
|
|
|
30303
30267
|
// src/cfg/generated/_utils/schemas/PaginatedSubscriptionListList.schema.ts
|
|
30304
|
-
var
|
|
30268
|
+
var import_zod120 = require("zod");
|
|
30305
30269
|
|
|
30306
30270
|
// src/cfg/generated/_utils/schemas/SubscriptionList.schema.ts
|
|
30307
|
-
var
|
|
30308
|
-
var SubscriptionListSchema =
|
|
30309
|
-
id:
|
|
30310
|
-
user:
|
|
30311
|
-
tariff_name:
|
|
30312
|
-
status:
|
|
30313
|
-
status_display:
|
|
30314
|
-
is_active:
|
|
30315
|
-
is_expired:
|
|
30316
|
-
expires_at:
|
|
30317
|
-
created_at:
|
|
30271
|
+
var import_zod119 = require("zod");
|
|
30272
|
+
var SubscriptionListSchema = import_zod119.z.object({
|
|
30273
|
+
id: import_zod119.z.uuid(),
|
|
30274
|
+
user: import_zod119.z.string(),
|
|
30275
|
+
tariff_name: import_zod119.z.string(),
|
|
30276
|
+
status: import_zod119.z.nativeEnum(SubscriptionListStatus),
|
|
30277
|
+
status_display: import_zod119.z.string(),
|
|
30278
|
+
is_active: import_zod119.z.boolean(),
|
|
30279
|
+
is_expired: import_zod119.z.boolean(),
|
|
30280
|
+
expires_at: import_zod119.z.iso.datetime(),
|
|
30281
|
+
created_at: import_zod119.z.iso.datetime()
|
|
30318
30282
|
});
|
|
30319
30283
|
|
|
30320
30284
|
// src/cfg/generated/_utils/schemas/PaginatedSubscriptionListList.schema.ts
|
|
30321
|
-
var PaginatedSubscriptionListListSchema =
|
|
30322
|
-
count:
|
|
30323
|
-
page:
|
|
30324
|
-
pages:
|
|
30325
|
-
page_size:
|
|
30326
|
-
has_next:
|
|
30327
|
-
has_previous:
|
|
30328
|
-
next_page:
|
|
30329
|
-
previous_page:
|
|
30330
|
-
results:
|
|
30285
|
+
var PaginatedSubscriptionListListSchema = import_zod120.z.object({
|
|
30286
|
+
count: import_zod120.z.int(),
|
|
30287
|
+
page: import_zod120.z.int(),
|
|
30288
|
+
pages: import_zod120.z.int(),
|
|
30289
|
+
page_size: import_zod120.z.int(),
|
|
30290
|
+
has_next: import_zod120.z.boolean(),
|
|
30291
|
+
has_previous: import_zod120.z.boolean(),
|
|
30292
|
+
next_page: import_zod120.z.int().nullable().optional(),
|
|
30293
|
+
previous_page: import_zod120.z.int().nullable().optional(),
|
|
30294
|
+
results: import_zod120.z.array(SubscriptionListSchema)
|
|
30331
30295
|
});
|
|
30332
30296
|
|
|
30333
30297
|
// src/cfg/generated/_utils/schemas/PaginatedTariffList.schema.ts
|
|
30334
|
-
var
|
|
30298
|
+
var import_zod122 = require("zod");
|
|
30335
30299
|
|
|
30336
30300
|
// src/cfg/generated/_utils/schemas/Tariff.schema.ts
|
|
30337
|
-
var
|
|
30338
|
-
var TariffSchema =
|
|
30339
|
-
id:
|
|
30340
|
-
name:
|
|
30341
|
-
description:
|
|
30342
|
-
monthly_price_usd:
|
|
30343
|
-
requests_per_month:
|
|
30344
|
-
requests_per_hour:
|
|
30345
|
-
is_active:
|
|
30346
|
-
endpoint_groups:
|
|
30347
|
-
endpoint_groups_count:
|
|
30348
|
-
created_at:
|
|
30349
|
-
updated_at:
|
|
30301
|
+
var import_zod121 = require("zod");
|
|
30302
|
+
var TariffSchema = import_zod121.z.object({
|
|
30303
|
+
id: import_zod121.z.int(),
|
|
30304
|
+
name: import_zod121.z.string(),
|
|
30305
|
+
description: import_zod121.z.string(),
|
|
30306
|
+
monthly_price_usd: import_zod121.z.number(),
|
|
30307
|
+
requests_per_month: import_zod121.z.int(),
|
|
30308
|
+
requests_per_hour: import_zod121.z.int(),
|
|
30309
|
+
is_active: import_zod121.z.boolean(),
|
|
30310
|
+
endpoint_groups: import_zod121.z.array(EndpointGroupSchema),
|
|
30311
|
+
endpoint_groups_count: import_zod121.z.int(),
|
|
30312
|
+
created_at: import_zod121.z.iso.datetime(),
|
|
30313
|
+
updated_at: import_zod121.z.iso.datetime()
|
|
30350
30314
|
});
|
|
30351
30315
|
|
|
30352
30316
|
// src/cfg/generated/_utils/schemas/PaginatedTariffList.schema.ts
|
|
30353
|
-
var PaginatedTariffListSchema =
|
|
30354
|
-
count:
|
|
30355
|
-
page:
|
|
30356
|
-
pages:
|
|
30357
|
-
page_size:
|
|
30358
|
-
has_next:
|
|
30359
|
-
has_previous:
|
|
30360
|
-
next_page:
|
|
30361
|
-
previous_page:
|
|
30362
|
-
results:
|
|
30317
|
+
var PaginatedTariffListSchema = import_zod122.z.object({
|
|
30318
|
+
count: import_zod122.z.int(),
|
|
30319
|
+
page: import_zod122.z.int(),
|
|
30320
|
+
pages: import_zod122.z.int(),
|
|
30321
|
+
page_size: import_zod122.z.int(),
|
|
30322
|
+
has_next: import_zod122.z.boolean(),
|
|
30323
|
+
has_previous: import_zod122.z.boolean(),
|
|
30324
|
+
next_page: import_zod122.z.int().nullable().optional(),
|
|
30325
|
+
previous_page: import_zod122.z.int().nullable().optional(),
|
|
30326
|
+
results: import_zod122.z.array(TariffSchema)
|
|
30363
30327
|
});
|
|
30364
30328
|
|
|
30365
30329
|
// src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
|
|
30366
|
-
var
|
|
30330
|
+
var import_zod124 = require("zod");
|
|
30367
30331
|
|
|
30368
30332
|
// src/cfg/generated/_utils/schemas/Ticket.schema.ts
|
|
30369
|
-
var
|
|
30370
|
-
var TicketSchema =
|
|
30371
|
-
uuid:
|
|
30372
|
-
user:
|
|
30373
|
-
subject:
|
|
30374
|
-
status:
|
|
30375
|
-
created_at:
|
|
30376
|
-
unanswered_messages_count:
|
|
30333
|
+
var import_zod123 = require("zod");
|
|
30334
|
+
var TicketSchema = import_zod123.z.object({
|
|
30335
|
+
uuid: import_zod123.z.uuid(),
|
|
30336
|
+
user: import_zod123.z.int(),
|
|
30337
|
+
subject: import_zod123.z.string().max(255),
|
|
30338
|
+
status: import_zod123.z.nativeEnum(TicketStatus).optional(),
|
|
30339
|
+
created_at: import_zod123.z.iso.datetime(),
|
|
30340
|
+
unanswered_messages_count: import_zod123.z.int()
|
|
30377
30341
|
});
|
|
30378
30342
|
|
|
30379
30343
|
// src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
|
|
30380
|
-
var PaginatedTicketListSchema =
|
|
30381
|
-
count:
|
|
30382
|
-
page:
|
|
30383
|
-
pages:
|
|
30384
|
-
page_size:
|
|
30385
|
-
has_next:
|
|
30386
|
-
has_previous:
|
|
30387
|
-
next_page:
|
|
30388
|
-
previous_page:
|
|
30389
|
-
results:
|
|
30344
|
+
var PaginatedTicketListSchema = import_zod124.z.object({
|
|
30345
|
+
count: import_zod124.z.int(),
|
|
30346
|
+
page: import_zod124.z.int(),
|
|
30347
|
+
pages: import_zod124.z.int(),
|
|
30348
|
+
page_size: import_zod124.z.int(),
|
|
30349
|
+
has_next: import_zod124.z.boolean(),
|
|
30350
|
+
has_previous: import_zod124.z.boolean(),
|
|
30351
|
+
next_page: import_zod124.z.int().nullable().optional(),
|
|
30352
|
+
previous_page: import_zod124.z.int().nullable().optional(),
|
|
30353
|
+
results: import_zod124.z.array(TicketSchema)
|
|
30390
30354
|
});
|
|
30391
30355
|
|
|
30392
30356
|
// src/cfg/generated/_utils/schemas/PaginatedTransactionList.schema.ts
|
|
30393
|
-
var
|
|
30357
|
+
var import_zod126 = require("zod");
|
|
30394
30358
|
|
|
30395
30359
|
// src/cfg/generated/_utils/schemas/Transaction.schema.ts
|
|
30396
|
-
var
|
|
30397
|
-
var TransactionSchema =
|
|
30398
|
-
id:
|
|
30399
|
-
user:
|
|
30400
|
-
amount_usd:
|
|
30401
|
-
amount_display:
|
|
30402
|
-
transaction_type:
|
|
30403
|
-
type_color:
|
|
30404
|
-
description:
|
|
30405
|
-
payment_id:
|
|
30406
|
-
metadata:
|
|
30407
|
-
is_credit:
|
|
30408
|
-
is_debit:
|
|
30409
|
-
created_at:
|
|
30360
|
+
var import_zod125 = require("zod");
|
|
30361
|
+
var TransactionSchema = import_zod125.z.object({
|
|
30362
|
+
id: import_zod125.z.uuid(),
|
|
30363
|
+
user: import_zod125.z.string(),
|
|
30364
|
+
amount_usd: import_zod125.z.number(),
|
|
30365
|
+
amount_display: import_zod125.z.string(),
|
|
30366
|
+
transaction_type: import_zod125.z.nativeEnum(TransactionTransactionType),
|
|
30367
|
+
type_color: import_zod125.z.string(),
|
|
30368
|
+
description: import_zod125.z.string(),
|
|
30369
|
+
payment_id: import_zod125.z.string().nullable(),
|
|
30370
|
+
metadata: import_zod125.z.string(),
|
|
30371
|
+
is_credit: import_zod125.z.boolean(),
|
|
30372
|
+
is_debit: import_zod125.z.boolean(),
|
|
30373
|
+
created_at: import_zod125.z.iso.datetime()
|
|
30410
30374
|
});
|
|
30411
30375
|
|
|
30412
30376
|
// src/cfg/generated/_utils/schemas/PaginatedTransactionList.schema.ts
|
|
30413
|
-
var PaginatedTransactionListSchema =
|
|
30414
|
-
count:
|
|
30415
|
-
page:
|
|
30416
|
-
pages:
|
|
30417
|
-
page_size:
|
|
30418
|
-
has_next:
|
|
30419
|
-
has_previous:
|
|
30420
|
-
next_page:
|
|
30421
|
-
previous_page:
|
|
30422
|
-
results:
|
|
30377
|
+
var PaginatedTransactionListSchema = import_zod126.z.object({
|
|
30378
|
+
count: import_zod126.z.int(),
|
|
30379
|
+
page: import_zod126.z.int(),
|
|
30380
|
+
pages: import_zod126.z.int(),
|
|
30381
|
+
page_size: import_zod126.z.int(),
|
|
30382
|
+
has_next: import_zod126.z.boolean(),
|
|
30383
|
+
has_previous: import_zod126.z.boolean(),
|
|
30384
|
+
next_page: import_zod126.z.int().nullable().optional(),
|
|
30385
|
+
previous_page: import_zod126.z.int().nullable().optional(),
|
|
30386
|
+
results: import_zod126.z.array(TransactionSchema)
|
|
30423
30387
|
});
|
|
30424
30388
|
|
|
30425
30389
|
// src/cfg/generated/_utils/schemas/PaginatedUserBalanceList.schema.ts
|
|
30426
|
-
var
|
|
30390
|
+
var import_zod128 = require("zod");
|
|
30427
30391
|
|
|
30428
30392
|
// src/cfg/generated/_utils/schemas/UserBalance.schema.ts
|
|
30429
|
-
var
|
|
30430
|
-
var UserBalanceSchema =
|
|
30431
|
-
user:
|
|
30432
|
-
balance_usd:
|
|
30433
|
-
balance_display:
|
|
30434
|
-
is_empty:
|
|
30435
|
-
has_transactions:
|
|
30436
|
-
created_at:
|
|
30437
|
-
updated_at:
|
|
30393
|
+
var import_zod127 = require("zod");
|
|
30394
|
+
var UserBalanceSchema = import_zod127.z.object({
|
|
30395
|
+
user: import_zod127.z.string(),
|
|
30396
|
+
balance_usd: import_zod127.z.number(),
|
|
30397
|
+
balance_display: import_zod127.z.string(),
|
|
30398
|
+
is_empty: import_zod127.z.boolean(),
|
|
30399
|
+
has_transactions: import_zod127.z.boolean(),
|
|
30400
|
+
created_at: import_zod127.z.iso.datetime(),
|
|
30401
|
+
updated_at: import_zod127.z.iso.datetime()
|
|
30438
30402
|
});
|
|
30439
30403
|
|
|
30440
30404
|
// src/cfg/generated/_utils/schemas/PaginatedUserBalanceList.schema.ts
|
|
30441
|
-
var PaginatedUserBalanceListSchema =
|
|
30442
|
-
count:
|
|
30443
|
-
page:
|
|
30444
|
-
pages:
|
|
30445
|
-
page_size:
|
|
30446
|
-
has_next:
|
|
30447
|
-
has_previous:
|
|
30448
|
-
next_page:
|
|
30449
|
-
previous_page:
|
|
30450
|
-
results:
|
|
30405
|
+
var PaginatedUserBalanceListSchema = import_zod128.z.object({
|
|
30406
|
+
count: import_zod128.z.int(),
|
|
30407
|
+
page: import_zod128.z.int(),
|
|
30408
|
+
pages: import_zod128.z.int(),
|
|
30409
|
+
page_size: import_zod128.z.int(),
|
|
30410
|
+
has_next: import_zod128.z.boolean(),
|
|
30411
|
+
has_previous: import_zod128.z.boolean(),
|
|
30412
|
+
next_page: import_zod128.z.int().nullable().optional(),
|
|
30413
|
+
previous_page: import_zod128.z.int().nullable().optional(),
|
|
30414
|
+
results: import_zod128.z.array(UserBalanceSchema)
|
|
30451
30415
|
});
|
|
30452
30416
|
|
|
30453
30417
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookEventListList.schema.ts
|
|
30454
|
-
var
|
|
30418
|
+
var import_zod131 = require("zod");
|
|
30455
30419
|
|
|
30456
30420
|
// src/cfg/generated/_utils/schemas/WebhookEventList.schema.ts
|
|
30457
|
-
var
|
|
30421
|
+
var import_zod130 = require("zod");
|
|
30458
30422
|
|
|
30459
30423
|
// src/cfg/generated/_utils/schemas/WebhookEvent.schema.ts
|
|
30460
|
-
var
|
|
30461
|
-
var WebhookEventSchema =
|
|
30462
|
-
id:
|
|
30463
|
-
provider:
|
|
30464
|
-
event_type:
|
|
30465
|
-
status:
|
|
30466
|
-
timestamp:
|
|
30467
|
-
payload_size:
|
|
30468
|
-
response_time:
|
|
30469
|
-
retry_count:
|
|
30470
|
-
error_message:
|
|
30471
|
-
payload_preview:
|
|
30472
|
-
response_status_code:
|
|
30473
|
-
webhook_url:
|
|
30424
|
+
var import_zod129 = require("zod");
|
|
30425
|
+
var WebhookEventSchema = import_zod129.z.object({
|
|
30426
|
+
id: import_zod129.z.int(),
|
|
30427
|
+
provider: import_zod129.z.string().max(50),
|
|
30428
|
+
event_type: import_zod129.z.string().max(100),
|
|
30429
|
+
status: import_zod129.z.nativeEnum(WebhookEventStatus),
|
|
30430
|
+
timestamp: import_zod129.z.iso.datetime(),
|
|
30431
|
+
payload_size: import_zod129.z.int(),
|
|
30432
|
+
response_time: import_zod129.z.int(),
|
|
30433
|
+
retry_count: import_zod129.z.int().optional(),
|
|
30434
|
+
error_message: import_zod129.z.string().max(500).optional(),
|
|
30435
|
+
payload_preview: import_zod129.z.string().max(200).optional(),
|
|
30436
|
+
response_status_code: import_zod129.z.int().optional(),
|
|
30437
|
+
webhook_url: import_zod129.z.url().optional()
|
|
30474
30438
|
});
|
|
30475
30439
|
|
|
30476
30440
|
// src/cfg/generated/_utils/schemas/WebhookEventList.schema.ts
|
|
30477
|
-
var WebhookEventListSchema =
|
|
30478
|
-
events:
|
|
30479
|
-
total:
|
|
30480
|
-
page:
|
|
30481
|
-
per_page:
|
|
30482
|
-
has_next:
|
|
30483
|
-
has_previous:
|
|
30441
|
+
var WebhookEventListSchema = import_zod130.z.object({
|
|
30442
|
+
events: import_zod130.z.array(WebhookEventSchema),
|
|
30443
|
+
total: import_zod130.z.int(),
|
|
30444
|
+
page: import_zod130.z.int(),
|
|
30445
|
+
per_page: import_zod130.z.int(),
|
|
30446
|
+
has_next: import_zod130.z.boolean(),
|
|
30447
|
+
has_previous: import_zod130.z.boolean()
|
|
30484
30448
|
});
|
|
30485
30449
|
|
|
30486
30450
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookEventListList.schema.ts
|
|
30487
|
-
var PaginatedWebhookEventListListSchema =
|
|
30488
|
-
count:
|
|
30489
|
-
page:
|
|
30490
|
-
pages:
|
|
30491
|
-
page_size:
|
|
30492
|
-
has_next:
|
|
30493
|
-
has_previous:
|
|
30494
|
-
next_page:
|
|
30495
|
-
previous_page:
|
|
30496
|
-
results:
|
|
30451
|
+
var PaginatedWebhookEventListListSchema = import_zod131.z.object({
|
|
30452
|
+
count: import_zod131.z.int(),
|
|
30453
|
+
page: import_zod131.z.int(),
|
|
30454
|
+
pages: import_zod131.z.int(),
|
|
30455
|
+
page_size: import_zod131.z.int(),
|
|
30456
|
+
has_next: import_zod131.z.boolean(),
|
|
30457
|
+
has_previous: import_zod131.z.boolean(),
|
|
30458
|
+
next_page: import_zod131.z.int().nullable().optional(),
|
|
30459
|
+
previous_page: import_zod131.z.int().nullable().optional(),
|
|
30460
|
+
results: import_zod131.z.array(WebhookEventListSchema)
|
|
30497
30461
|
});
|
|
30498
30462
|
|
|
30499
30463
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookStatsList.schema.ts
|
|
30500
|
-
var
|
|
30464
|
+
var import_zod133 = require("zod");
|
|
30501
30465
|
|
|
30502
30466
|
// src/cfg/generated/_utils/schemas/WebhookStats.schema.ts
|
|
30503
|
-
var
|
|
30504
|
-
var WebhookStatsSchema =
|
|
30505
|
-
total:
|
|
30506
|
-
successful:
|
|
30507
|
-
failed:
|
|
30508
|
-
pending:
|
|
30509
|
-
success_rate:
|
|
30510
|
-
providers:
|
|
30511
|
-
last_24h:
|
|
30512
|
-
avg_response_time:
|
|
30513
|
-
max_response_time:
|
|
30467
|
+
var import_zod132 = require("zod");
|
|
30468
|
+
var WebhookStatsSchema = import_zod132.z.object({
|
|
30469
|
+
total: import_zod132.z.int(),
|
|
30470
|
+
successful: import_zod132.z.int(),
|
|
30471
|
+
failed: import_zod132.z.int(),
|
|
30472
|
+
pending: import_zod132.z.int(),
|
|
30473
|
+
success_rate: import_zod132.z.number(),
|
|
30474
|
+
providers: import_zod132.z.record(import_zod132.z.string(), import_zod132.z.any()),
|
|
30475
|
+
last_24h: import_zod132.z.record(import_zod132.z.string(), import_zod132.z.any()),
|
|
30476
|
+
avg_response_time: import_zod132.z.number(),
|
|
30477
|
+
max_response_time: import_zod132.z.int()
|
|
30514
30478
|
});
|
|
30515
30479
|
|
|
30516
30480
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookStatsList.schema.ts
|
|
30517
|
-
var PaginatedWebhookStatsListSchema =
|
|
30518
|
-
count:
|
|
30519
|
-
page:
|
|
30520
|
-
pages:
|
|
30521
|
-
page_size:
|
|
30522
|
-
has_next:
|
|
30523
|
-
has_previous:
|
|
30524
|
-
next_page:
|
|
30525
|
-
previous_page:
|
|
30526
|
-
results:
|
|
30481
|
+
var PaginatedWebhookStatsListSchema = import_zod133.z.object({
|
|
30482
|
+
count: import_zod133.z.int(),
|
|
30483
|
+
page: import_zod133.z.int(),
|
|
30484
|
+
pages: import_zod133.z.int(),
|
|
30485
|
+
page_size: import_zod133.z.int(),
|
|
30486
|
+
has_next: import_zod133.z.boolean(),
|
|
30487
|
+
has_previous: import_zod133.z.boolean(),
|
|
30488
|
+
next_page: import_zod133.z.int().nullable().optional(),
|
|
30489
|
+
previous_page: import_zod133.z.int().nullable().optional(),
|
|
30490
|
+
results: import_zod133.z.array(WebhookStatsSchema)
|
|
30527
30491
|
});
|
|
30528
30492
|
|
|
30529
30493
|
// src/cfg/generated/_utils/schemas/PatchedAPIKeyUpdateRequest.schema.ts
|
|
30530
|
-
var
|
|
30531
|
-
var PatchedAPIKeyUpdateRequestSchema =
|
|
30532
|
-
name:
|
|
30533
|
-
is_active:
|
|
30494
|
+
var import_zod134 = require("zod");
|
|
30495
|
+
var PatchedAPIKeyUpdateRequestSchema = import_zod134.z.object({
|
|
30496
|
+
name: import_zod134.z.string().min(1).max(100).optional(),
|
|
30497
|
+
is_active: import_zod134.z.boolean().optional()
|
|
30534
30498
|
});
|
|
30535
30499
|
|
|
30536
30500
|
// src/cfg/generated/_utils/schemas/PatchedAdminPaymentUpdateRequest.schema.ts
|
|
30537
|
-
var
|
|
30538
|
-
var PatchedAdminPaymentUpdateRequestSchema =
|
|
30539
|
-
status:
|
|
30540
|
-
description:
|
|
30541
|
-
callback_url:
|
|
30542
|
-
cancel_url:
|
|
30543
|
-
provider_data:
|
|
30544
|
-
webhook_data:
|
|
30501
|
+
var import_zod135 = require("zod");
|
|
30502
|
+
var PatchedAdminPaymentUpdateRequestSchema = import_zod135.z.object({
|
|
30503
|
+
status: import_zod135.z.nativeEnum(PatchedAdminPaymentUpdateRequestStatus).optional(),
|
|
30504
|
+
description: import_zod135.z.string().optional(),
|
|
30505
|
+
callback_url: import_zod135.z.url().nullable().optional(),
|
|
30506
|
+
cancel_url: import_zod135.z.url().nullable().optional(),
|
|
30507
|
+
provider_data: import_zod135.z.string().optional(),
|
|
30508
|
+
webhook_data: import_zod135.z.string().optional()
|
|
30545
30509
|
});
|
|
30546
30510
|
|
|
30547
30511
|
// src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts
|
|
30548
|
-
var
|
|
30549
|
-
var PatchedArchiveItemChunkRequestSchema =
|
|
30550
|
-
content:
|
|
30551
|
-
chunk_index:
|
|
30552
|
-
chunk_type:
|
|
30512
|
+
var import_zod136 = require("zod");
|
|
30513
|
+
var PatchedArchiveItemChunkRequestSchema = import_zod136.z.object({
|
|
30514
|
+
content: import_zod136.z.string().min(1).optional(),
|
|
30515
|
+
chunk_index: import_zod136.z.int().min(0).max(9223372036854776e3).optional(),
|
|
30516
|
+
chunk_type: import_zod136.z.nativeEnum(PatchedArchiveItemChunkRequestChunkType).optional()
|
|
30553
30517
|
});
|
|
30554
30518
|
|
|
30555
30519
|
// src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts
|
|
30556
|
-
var
|
|
30557
|
-
var PatchedArchiveItemRequestSchema =
|
|
30558
|
-
relative_path:
|
|
30559
|
-
item_name:
|
|
30560
|
-
item_type:
|
|
30561
|
-
file_size:
|
|
30520
|
+
var import_zod137 = require("zod");
|
|
30521
|
+
var PatchedArchiveItemRequestSchema = import_zod137.z.object({
|
|
30522
|
+
relative_path: import_zod137.z.string().min(1).max(1024).optional(),
|
|
30523
|
+
item_name: import_zod137.z.string().min(1).max(255).optional(),
|
|
30524
|
+
item_type: import_zod137.z.string().min(1).max(100).optional(),
|
|
30525
|
+
file_size: import_zod137.z.int().min(0).max(9223372036854776e3).optional()
|
|
30562
30526
|
});
|
|
30563
30527
|
|
|
30564
30528
|
// src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts
|
|
30565
|
-
var
|
|
30566
|
-
var PatchedChatResponseRequestSchema =
|
|
30567
|
-
message_id:
|
|
30568
|
-
content:
|
|
30569
|
-
tokens_used:
|
|
30570
|
-
cost_usd:
|
|
30571
|
-
processing_time_ms:
|
|
30572
|
-
model_used:
|
|
30573
|
-
sources:
|
|
30529
|
+
var import_zod138 = require("zod");
|
|
30530
|
+
var PatchedChatResponseRequestSchema = import_zod138.z.object({
|
|
30531
|
+
message_id: import_zod138.z.uuid().optional(),
|
|
30532
|
+
content: import_zod138.z.string().min(1).optional(),
|
|
30533
|
+
tokens_used: import_zod138.z.int().optional(),
|
|
30534
|
+
cost_usd: import_zod138.z.number().optional(),
|
|
30535
|
+
processing_time_ms: import_zod138.z.int().optional(),
|
|
30536
|
+
model_used: import_zod138.z.string().min(1).optional(),
|
|
30537
|
+
sources: import_zod138.z.array(ChatSourceRequestSchema).nullable().optional()
|
|
30574
30538
|
});
|
|
30575
30539
|
|
|
30576
30540
|
// src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts
|
|
30577
|
-
var
|
|
30578
|
-
var PatchedChatSessionRequestSchema =
|
|
30579
|
-
title:
|
|
30580
|
-
is_active:
|
|
30581
|
-
messages_count:
|
|
30582
|
-
total_tokens_used:
|
|
30583
|
-
model_name:
|
|
30584
|
-
temperature:
|
|
30585
|
-
max_context_chunks:
|
|
30541
|
+
var import_zod139 = require("zod");
|
|
30542
|
+
var PatchedChatSessionRequestSchema = import_zod139.z.object({
|
|
30543
|
+
title: import_zod139.z.string().max(255).optional(),
|
|
30544
|
+
is_active: import_zod139.z.boolean().optional(),
|
|
30545
|
+
messages_count: import_zod139.z.int().min(0).max(9223372036854776e3).optional(),
|
|
30546
|
+
total_tokens_used: import_zod139.z.int().min(0).max(9223372036854776e3).optional(),
|
|
30547
|
+
model_name: import_zod139.z.string().min(1).max(100).optional(),
|
|
30548
|
+
temperature: import_zod139.z.number().optional(),
|
|
30549
|
+
max_context_chunks: import_zod139.z.int().min(0).max(9223372036854776e3).optional()
|
|
30586
30550
|
});
|
|
30587
30551
|
|
|
30588
30552
|
// src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts
|
|
30589
|
-
var
|
|
30590
|
-
var PatchedDocumentArchiveRequestSchema =
|
|
30591
|
-
title:
|
|
30592
|
-
description:
|
|
30593
|
-
is_public:
|
|
30553
|
+
var import_zod140 = require("zod");
|
|
30554
|
+
var PatchedDocumentArchiveRequestSchema = import_zod140.z.object({
|
|
30555
|
+
title: import_zod140.z.string().min(1).max(512).optional(),
|
|
30556
|
+
description: import_zod140.z.string().optional(),
|
|
30557
|
+
is_public: import_zod140.z.boolean().optional()
|
|
30594
30558
|
});
|
|
30595
30559
|
|
|
30596
30560
|
// src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts
|
|
30597
|
-
var
|
|
30598
|
-
var PatchedDocumentRequestSchema =
|
|
30599
|
-
title:
|
|
30600
|
-
file_type:
|
|
30601
|
-
file_size:
|
|
30602
|
-
metadata:
|
|
30561
|
+
var import_zod141 = require("zod");
|
|
30562
|
+
var PatchedDocumentRequestSchema = import_zod141.z.object({
|
|
30563
|
+
title: import_zod141.z.string().min(1).max(512).optional(),
|
|
30564
|
+
file_type: import_zod141.z.string().min(1).max(100).optional(),
|
|
30565
|
+
file_size: import_zod141.z.int().min(0).max(9223372036854776e3).optional(),
|
|
30566
|
+
metadata: import_zod141.z.string().nullable().optional()
|
|
30603
30567
|
});
|
|
30604
30568
|
|
|
30605
30569
|
// src/cfg/generated/_utils/schemas/PatchedLeadSubmissionRequest.schema.ts
|
|
30606
|
-
var
|
|
30607
|
-
var PatchedLeadSubmissionRequestSchema =
|
|
30608
|
-
name:
|
|
30609
|
-
email:
|
|
30610
|
-
company:
|
|
30611
|
-
company_site:
|
|
30612
|
-
contact_type:
|
|
30613
|
-
contact_value:
|
|
30614
|
-
subject:
|
|
30615
|
-
message:
|
|
30616
|
-
extra:
|
|
30617
|
-
site_url:
|
|
30570
|
+
var import_zod142 = require("zod");
|
|
30571
|
+
var PatchedLeadSubmissionRequestSchema = import_zod142.z.object({
|
|
30572
|
+
name: import_zod142.z.string().min(1).max(200).optional(),
|
|
30573
|
+
email: import_zod142.z.email().optional(),
|
|
30574
|
+
company: import_zod142.z.string().max(200).nullable().optional(),
|
|
30575
|
+
company_site: import_zod142.z.string().max(200).nullable().optional(),
|
|
30576
|
+
contact_type: import_zod142.z.nativeEnum(PatchedLeadSubmissionRequestContactType).optional(),
|
|
30577
|
+
contact_value: import_zod142.z.string().max(200).nullable().optional(),
|
|
30578
|
+
subject: import_zod142.z.string().max(200).nullable().optional(),
|
|
30579
|
+
message: import_zod142.z.string().min(1).optional(),
|
|
30580
|
+
extra: import_zod142.z.string().nullable().optional(),
|
|
30581
|
+
site_url: import_zod142.z.url().optional()
|
|
30618
30582
|
});
|
|
30619
30583
|
|
|
30620
30584
|
// src/cfg/generated/_utils/schemas/PatchedMessageRequest.schema.ts
|
|
30621
|
-
var
|
|
30622
|
-
var PatchedMessageRequestSchema =
|
|
30623
|
-
text:
|
|
30585
|
+
var import_zod143 = require("zod");
|
|
30586
|
+
var PatchedMessageRequestSchema = import_zod143.z.object({
|
|
30587
|
+
text: import_zod143.z.string().min(1).optional()
|
|
30624
30588
|
});
|
|
30625
30589
|
|
|
30626
30590
|
// src/cfg/generated/_utils/schemas/PatchedNewsletterCampaignRequest.schema.ts
|
|
30627
|
-
var
|
|
30628
|
-
var PatchedNewsletterCampaignRequestSchema =
|
|
30629
|
-
newsletter:
|
|
30630
|
-
subject:
|
|
30631
|
-
email_title:
|
|
30632
|
-
main_text:
|
|
30633
|
-
main_html_content:
|
|
30634
|
-
button_text:
|
|
30635
|
-
button_url:
|
|
30636
|
-
secondary_text:
|
|
30591
|
+
var import_zod144 = require("zod");
|
|
30592
|
+
var PatchedNewsletterCampaignRequestSchema = import_zod144.z.object({
|
|
30593
|
+
newsletter: import_zod144.z.int().optional(),
|
|
30594
|
+
subject: import_zod144.z.string().min(1).max(255).optional(),
|
|
30595
|
+
email_title: import_zod144.z.string().min(1).max(255).optional(),
|
|
30596
|
+
main_text: import_zod144.z.string().min(1).optional(),
|
|
30597
|
+
main_html_content: import_zod144.z.string().optional(),
|
|
30598
|
+
button_text: import_zod144.z.string().max(100).optional(),
|
|
30599
|
+
button_url: import_zod144.z.url().optional(),
|
|
30600
|
+
secondary_text: import_zod144.z.string().optional()
|
|
30637
30601
|
});
|
|
30638
30602
|
|
|
30639
30603
|
// src/cfg/generated/_utils/schemas/PatchedPaymentRequest.schema.ts
|
|
30640
|
-
var
|
|
30641
|
-
var PatchedPaymentRequestSchema =
|
|
30642
|
-
amount_usd:
|
|
30643
|
-
|
|
30644
|
-
|
|
30645
|
-
|
|
30646
|
-
|
|
30647
|
-
|
|
30648
|
-
|
|
30649
|
-
description: import_zod144.z.string().optional(),
|
|
30650
|
-
expires_at: import_zod144.z.iso.datetime().nullable().optional()
|
|
30604
|
+
var import_zod145 = require("zod");
|
|
30605
|
+
var PatchedPaymentRequestSchema = import_zod145.z.object({
|
|
30606
|
+
amount_usd: import_zod145.z.number().min(1).max(5e4).optional(),
|
|
30607
|
+
provider: import_zod145.z.nativeEnum(PatchedPaymentRequestProvider).optional(),
|
|
30608
|
+
status: import_zod145.z.nativeEnum(PatchedPaymentRequestStatus).optional(),
|
|
30609
|
+
callback_url: import_zod145.z.url().nullable().optional(),
|
|
30610
|
+
cancel_url: import_zod145.z.url().nullable().optional(),
|
|
30611
|
+
description: import_zod145.z.string().optional(),
|
|
30612
|
+
expires_at: import_zod145.z.iso.datetime().nullable().optional()
|
|
30651
30613
|
});
|
|
30652
30614
|
|
|
30653
30615
|
// src/cfg/generated/_utils/schemas/PatchedSubscriptionRequest.schema.ts
|
|
30654
|
-
var
|
|
30655
|
-
var PatchedSubscriptionRequestSchema =
|
|
30656
|
-
status:
|
|
30657
|
-
tier:
|
|
30658
|
-
expires_at:
|
|
30616
|
+
var import_zod146 = require("zod");
|
|
30617
|
+
var PatchedSubscriptionRequestSchema = import_zod146.z.object({
|
|
30618
|
+
status: import_zod146.z.nativeEnum(PatchedSubscriptionRequestStatus).optional(),
|
|
30619
|
+
tier: import_zod146.z.nativeEnum(PatchedSubscriptionRequestTier).optional(),
|
|
30620
|
+
expires_at: import_zod146.z.iso.datetime().optional()
|
|
30659
30621
|
});
|
|
30660
30622
|
|
|
30661
30623
|
// src/cfg/generated/_utils/schemas/PatchedTicketRequest.schema.ts
|
|
30662
|
-
var
|
|
30663
|
-
var PatchedTicketRequestSchema =
|
|
30664
|
-
user:
|
|
30665
|
-
subject:
|
|
30666
|
-
status:
|
|
30624
|
+
var import_zod147 = require("zod");
|
|
30625
|
+
var PatchedTicketRequestSchema = import_zod147.z.object({
|
|
30626
|
+
user: import_zod147.z.int().optional(),
|
|
30627
|
+
subject: import_zod147.z.string().min(1).max(255).optional(),
|
|
30628
|
+
status: import_zod147.z.nativeEnum(PatchedTicketRequestStatus).optional()
|
|
30667
30629
|
});
|
|
30668
30630
|
|
|
30669
30631
|
// src/cfg/generated/_utils/schemas/PatchedUnsubscribeRequest.schema.ts
|
|
30670
|
-
var
|
|
30671
|
-
var PatchedUnsubscribeRequestSchema =
|
|
30672
|
-
subscription_id:
|
|
30632
|
+
var import_zod148 = require("zod");
|
|
30633
|
+
var PatchedUnsubscribeRequestSchema = import_zod148.z.object({
|
|
30634
|
+
subscription_id: import_zod148.z.int().optional()
|
|
30673
30635
|
});
|
|
30674
30636
|
|
|
30675
30637
|
// src/cfg/generated/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
30676
|
-
var
|
|
30677
|
-
var PatchedUserProfileUpdateRequestSchema =
|
|
30678
|
-
first_name:
|
|
30679
|
-
last_name:
|
|
30680
|
-
company:
|
|
30681
|
-
phone:
|
|
30682
|
-
position:
|
|
30638
|
+
var import_zod149 = require("zod");
|
|
30639
|
+
var PatchedUserProfileUpdateRequestSchema = import_zod149.z.object({
|
|
30640
|
+
first_name: import_zod149.z.string().max(50).optional(),
|
|
30641
|
+
last_name: import_zod149.z.string().max(50).optional(),
|
|
30642
|
+
company: import_zod149.z.string().max(100).optional(),
|
|
30643
|
+
phone: import_zod149.z.string().max(20).optional(),
|
|
30644
|
+
position: import_zod149.z.string().max(100).optional()
|
|
30683
30645
|
});
|
|
30684
30646
|
|
|
30685
30647
|
// src/cfg/generated/_utils/schemas/Payment.schema.ts
|
|
30686
|
-
var
|
|
30687
|
-
var PaymentSchema =
|
|
30688
|
-
id:
|
|
30689
|
-
user:
|
|
30690
|
-
amount_usd:
|
|
30691
|
-
|
|
30692
|
-
|
|
30693
|
-
|
|
30694
|
-
|
|
30695
|
-
|
|
30696
|
-
|
|
30697
|
-
|
|
30698
|
-
|
|
30699
|
-
|
|
30700
|
-
|
|
30701
|
-
|
|
30702
|
-
|
|
30703
|
-
|
|
30704
|
-
|
|
30705
|
-
|
|
30706
|
-
|
|
30707
|
-
|
|
30708
|
-
|
|
30709
|
-
|
|
30710
|
-
|
|
30711
|
-
|
|
30712
|
-
|
|
30648
|
+
var import_zod150 = require("zod");
|
|
30649
|
+
var PaymentSchema = import_zod150.z.object({
|
|
30650
|
+
id: import_zod150.z.uuid(),
|
|
30651
|
+
user: import_zod150.z.string(),
|
|
30652
|
+
amount_usd: import_zod150.z.number().min(1).max(5e4),
|
|
30653
|
+
amount_crypto: import_zod150.z.number(),
|
|
30654
|
+
currency: import_zod150.z.string(),
|
|
30655
|
+
network: import_zod150.z.string().nullable(),
|
|
30656
|
+
provider: import_zod150.z.nativeEnum(PaymentProvider).optional(),
|
|
30657
|
+
status: import_zod150.z.nativeEnum(PaymentStatus).optional(),
|
|
30658
|
+
status_display: import_zod150.z.string(),
|
|
30659
|
+
amount_display: import_zod150.z.string(),
|
|
30660
|
+
provider_payment_id: import_zod150.z.string().nullable(),
|
|
30661
|
+
payment_url: import_zod150.z.url().nullable(),
|
|
30662
|
+
pay_address: import_zod150.z.string().nullable(),
|
|
30663
|
+
callback_url: import_zod150.z.url().nullable().optional(),
|
|
30664
|
+
cancel_url: import_zod150.z.url().nullable().optional(),
|
|
30665
|
+
description: import_zod150.z.string().optional(),
|
|
30666
|
+
transaction_hash: import_zod150.z.string().nullable(),
|
|
30667
|
+
confirmations_count: import_zod150.z.int(),
|
|
30668
|
+
created_at: import_zod150.z.iso.datetime(),
|
|
30669
|
+
updated_at: import_zod150.z.iso.datetime(),
|
|
30670
|
+
expires_at: import_zod150.z.iso.datetime().nullable().optional(),
|
|
30671
|
+
completed_at: import_zod150.z.iso.datetime().nullable(),
|
|
30672
|
+
is_pending: import_zod150.z.boolean(),
|
|
30673
|
+
is_completed: import_zod150.z.boolean(),
|
|
30674
|
+
is_failed: import_zod150.z.boolean(),
|
|
30675
|
+
is_expired: import_zod150.z.boolean()
|
|
30713
30676
|
});
|
|
30714
30677
|
|
|
30715
30678
|
// src/cfg/generated/_utils/schemas/PaymentAnalyticsResponse.schema.ts
|
|
30716
|
-
var
|
|
30679
|
+
var import_zod152 = require("zod");
|
|
30717
30680
|
|
|
30718
30681
|
// src/cfg/generated/_utils/schemas/ProviderAnalyticsItem.schema.ts
|
|
30719
|
-
var
|
|
30720
|
-
var ProviderAnalyticsItemSchema =
|
|
30721
|
-
provider:
|
|
30722
|
-
provider_display:
|
|
30723
|
-
total_payments:
|
|
30724
|
-
total_amount:
|
|
30725
|
-
completed_payments:
|
|
30726
|
-
success_rate:
|
|
30682
|
+
var import_zod151 = require("zod");
|
|
30683
|
+
var ProviderAnalyticsItemSchema = import_zod151.z.object({
|
|
30684
|
+
provider: import_zod151.z.string(),
|
|
30685
|
+
provider_display: import_zod151.z.string(),
|
|
30686
|
+
total_payments: import_zod151.z.int(),
|
|
30687
|
+
total_amount: import_zod151.z.number(),
|
|
30688
|
+
completed_payments: import_zod151.z.int(),
|
|
30689
|
+
success_rate: import_zod151.z.number()
|
|
30727
30690
|
});
|
|
30728
30691
|
|
|
30729
30692
|
// src/cfg/generated/_utils/schemas/PaymentAnalyticsResponse.schema.ts
|
|
30730
|
-
var PaymentAnalyticsResponseSchema =
|
|
30731
|
-
currency_analytics:
|
|
30732
|
-
provider_analytics:
|
|
30693
|
+
var PaymentAnalyticsResponseSchema = import_zod152.z.object({
|
|
30694
|
+
currency_analytics: import_zod152.z.array(CurrencyAnalyticsItemSchema),
|
|
30695
|
+
provider_analytics: import_zod152.z.array(ProviderAnalyticsItemSchema)
|
|
30733
30696
|
});
|
|
30734
30697
|
|
|
30735
30698
|
// src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts
|
|
30736
|
-
var import_zod152 = require("zod");
|
|
30737
|
-
var PaymentCreateSchema = import_zod152.z.object({
|
|
30738
|
-
amount_usd: import_zod152.z.number().min(1).max(5e4),
|
|
30739
|
-
currency_code: import_zod152.z.nativeEnum(PaymentCreateCurrencyCode),
|
|
30740
|
-
provider: import_zod152.z.nativeEnum(PaymentCreateProvider).optional(),
|
|
30741
|
-
callback_url: import_zod152.z.url().optional(),
|
|
30742
|
-
cancel_url: import_zod152.z.url().optional(),
|
|
30743
|
-
description: import_zod152.z.string().max(500).optional(),
|
|
30744
|
-
metadata: import_zod152.z.string().optional()
|
|
30745
|
-
});
|
|
30746
|
-
|
|
30747
|
-
// src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts
|
|
30748
30699
|
var import_zod153 = require("zod");
|
|
30749
|
-
var
|
|
30700
|
+
var PaymentCreateSchema = import_zod153.z.object({
|
|
30750
30701
|
amount_usd: import_zod153.z.number().min(1).max(5e4),
|
|
30751
|
-
currency_code: import_zod153.z.
|
|
30752
|
-
provider: import_zod153.z.nativeEnum(PaymentCreateRequestProvider).optional(),
|
|
30702
|
+
currency_code: import_zod153.z.string().max(10),
|
|
30753
30703
|
callback_url: import_zod153.z.url().optional(),
|
|
30754
30704
|
cancel_url: import_zod153.z.url().optional(),
|
|
30755
30705
|
description: import_zod153.z.string().max(500).optional(),
|
|
30756
30706
|
metadata: import_zod153.z.string().optional()
|
|
30757
30707
|
});
|
|
30758
30708
|
|
|
30759
|
-
// src/cfg/generated/_utils/schemas/
|
|
30709
|
+
// src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts
|
|
30760
30710
|
var import_zod154 = require("zod");
|
|
30761
|
-
var
|
|
30762
|
-
|
|
30763
|
-
|
|
30764
|
-
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
average_payment_usd: import_zod154.z.number(),
|
|
30769
|
-
success_rate: import_zod154.z.number(),
|
|
30770
|
-
last_payment_at: import_zod154.z.iso.datetime().nullable(),
|
|
30771
|
-
payments_this_month: import_zod154.z.int(),
|
|
30772
|
-
amount_this_month: import_zod154.z.number(),
|
|
30773
|
-
top_currency: import_zod154.z.string().nullable(),
|
|
30774
|
-
top_currency_count: import_zod154.z.int()
|
|
30711
|
+
var PaymentCreateRequestSchema = import_zod154.z.object({
|
|
30712
|
+
amount_usd: import_zod154.z.number().min(1).max(5e4),
|
|
30713
|
+
currency_code: import_zod154.z.string().min(1).max(10),
|
|
30714
|
+
callback_url: import_zod154.z.url().optional(),
|
|
30715
|
+
cancel_url: import_zod154.z.url().optional(),
|
|
30716
|
+
description: import_zod154.z.string().max(500).optional(),
|
|
30717
|
+
metadata: import_zod154.z.string().optional()
|
|
30775
30718
|
});
|
|
30776
30719
|
|
|
30777
|
-
// src/cfg/generated/_utils/schemas/
|
|
30720
|
+
// src/cfg/generated/_utils/schemas/PaymentOverview.schema.ts
|
|
30778
30721
|
var import_zod155 = require("zod");
|
|
30779
|
-
var
|
|
30780
|
-
|
|
30781
|
-
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30786
|
-
|
|
30787
|
-
|
|
30788
|
-
|
|
30722
|
+
var PaymentOverviewSchema = import_zod155.z.object({
|
|
30723
|
+
total_payments: import_zod155.z.int(),
|
|
30724
|
+
completed_payments: import_zod155.z.int(),
|
|
30725
|
+
pending_payments: import_zod155.z.int(),
|
|
30726
|
+
failed_payments: import_zod155.z.int(),
|
|
30727
|
+
total_amount_usd: import_zod155.z.number(),
|
|
30728
|
+
completed_amount_usd: import_zod155.z.number(),
|
|
30729
|
+
average_payment_usd: import_zod155.z.number(),
|
|
30730
|
+
success_rate: import_zod155.z.number(),
|
|
30731
|
+
last_payment_at: import_zod155.z.iso.datetime().nullable(),
|
|
30732
|
+
payments_this_month: import_zod155.z.int(),
|
|
30733
|
+
amount_this_month: import_zod155.z.number(),
|
|
30734
|
+
top_currency: import_zod155.z.string().nullable(),
|
|
30735
|
+
top_currency_count: import_zod155.z.int()
|
|
30789
30736
|
});
|
|
30790
30737
|
|
|
30791
|
-
// src/cfg/generated/_utils/schemas/
|
|
30738
|
+
// src/cfg/generated/_utils/schemas/PaymentRequest.schema.ts
|
|
30792
30739
|
var import_zod156 = require("zod");
|
|
30793
|
-
var
|
|
30794
|
-
|
|
30795
|
-
|
|
30796
|
-
|
|
30797
|
-
|
|
30798
|
-
|
|
30740
|
+
var PaymentRequestSchema = import_zod156.z.object({
|
|
30741
|
+
amount_usd: import_zod156.z.number().min(1).max(5e4),
|
|
30742
|
+
provider: import_zod156.z.nativeEnum(PaymentRequestProvider).optional(),
|
|
30743
|
+
status: import_zod156.z.nativeEnum(PaymentRequestStatus).optional(),
|
|
30744
|
+
callback_url: import_zod156.z.url().nullable().optional(),
|
|
30745
|
+
cancel_url: import_zod156.z.url().nullable().optional(),
|
|
30746
|
+
description: import_zod156.z.string().optional(),
|
|
30747
|
+
expires_at: import_zod156.z.iso.datetime().nullable().optional()
|
|
30748
|
+
});
|
|
30749
|
+
|
|
30750
|
+
// src/cfg/generated/_utils/schemas/PaymentsChartResponse.schema.ts
|
|
30751
|
+
var import_zod157 = require("zod");
|
|
30752
|
+
var PaymentsChartResponseSchema = import_zod157.z.object({
|
|
30753
|
+
series: import_zod157.z.array(ChartSeriesSchema),
|
|
30754
|
+
period: import_zod157.z.string(),
|
|
30755
|
+
total_amount: import_zod157.z.number(),
|
|
30756
|
+
total_payments: import_zod157.z.int(),
|
|
30757
|
+
success_rate: import_zod157.z.number()
|
|
30799
30758
|
});
|
|
30800
30759
|
|
|
30801
30760
|
// src/cfg/generated/_utils/schemas/PaymentsDashboardOverview.schema.ts
|
|
30802
|
-
var
|
|
30761
|
+
var import_zod160 = require("zod");
|
|
30803
30762
|
|
|
30804
30763
|
// src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts
|
|
30805
|
-
var
|
|
30764
|
+
var import_zod159 = require("zod");
|
|
30806
30765
|
|
|
30807
30766
|
// src/cfg/generated/_utils/schemas/SubscriptionOverview.schema.ts
|
|
30808
|
-
var
|
|
30809
|
-
var SubscriptionOverviewSchema =
|
|
30810
|
-
tier:
|
|
30811
|
-
tier_display:
|
|
30812
|
-
status:
|
|
30813
|
-
status_display:
|
|
30814
|
-
status_color:
|
|
30815
|
-
is_active:
|
|
30816
|
-
is_expired:
|
|
30817
|
-
days_remaining:
|
|
30818
|
-
requests_per_hour:
|
|
30819
|
-
requests_per_day:
|
|
30820
|
-
total_requests:
|
|
30821
|
-
usage_percentage:
|
|
30822
|
-
monthly_cost_usd:
|
|
30823
|
-
cost_display:
|
|
30824
|
-
starts_at:
|
|
30825
|
-
expires_at:
|
|
30826
|
-
last_request_at:
|
|
30827
|
-
endpoint_groups_count:
|
|
30828
|
-
endpoint_groups:
|
|
30767
|
+
var import_zod158 = require("zod");
|
|
30768
|
+
var SubscriptionOverviewSchema = import_zod158.z.object({
|
|
30769
|
+
tier: import_zod158.z.string(),
|
|
30770
|
+
tier_display: import_zod158.z.string(),
|
|
30771
|
+
status: import_zod158.z.string(),
|
|
30772
|
+
status_display: import_zod158.z.string(),
|
|
30773
|
+
status_color: import_zod158.z.string(),
|
|
30774
|
+
is_active: import_zod158.z.boolean(),
|
|
30775
|
+
is_expired: import_zod158.z.boolean(),
|
|
30776
|
+
days_remaining: import_zod158.z.int(),
|
|
30777
|
+
requests_per_hour: import_zod158.z.int(),
|
|
30778
|
+
requests_per_day: import_zod158.z.int(),
|
|
30779
|
+
total_requests: import_zod158.z.int(),
|
|
30780
|
+
usage_percentage: import_zod158.z.number(),
|
|
30781
|
+
monthly_cost_usd: import_zod158.z.number(),
|
|
30782
|
+
cost_display: import_zod158.z.string(),
|
|
30783
|
+
starts_at: import_zod158.z.iso.datetime(),
|
|
30784
|
+
expires_at: import_zod158.z.iso.datetime(),
|
|
30785
|
+
last_request_at: import_zod158.z.iso.datetime().nullable(),
|
|
30786
|
+
endpoint_groups_count: import_zod158.z.int(),
|
|
30787
|
+
endpoint_groups: import_zod158.z.array(import_zod158.z.string())
|
|
30829
30788
|
});
|
|
30830
30789
|
|
|
30831
30790
|
// src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts
|
|
30832
|
-
var PaymentsMetricsSchema =
|
|
30791
|
+
var PaymentsMetricsSchema = import_zod159.z.object({
|
|
30833
30792
|
balance: BalanceOverviewSchema,
|
|
30834
|
-
subscription: SubscriptionOverviewSchema,
|
|
30793
|
+
subscription: SubscriptionOverviewSchema.nullable(),
|
|
30835
30794
|
api_keys: APIKeysOverviewSchema,
|
|
30836
30795
|
payments: PaymentOverviewSchema
|
|
30837
30796
|
});
|
|
30838
30797
|
|
|
30839
30798
|
// src/cfg/generated/_utils/schemas/PaymentsDashboardOverview.schema.ts
|
|
30840
|
-
var PaymentsDashboardOverviewSchema =
|
|
30799
|
+
var PaymentsDashboardOverviewSchema = import_zod160.z.object({
|
|
30841
30800
|
metrics: PaymentsMetricsSchema,
|
|
30842
|
-
recent_payments:
|
|
30843
|
-
recent_transactions:
|
|
30801
|
+
recent_payments: import_zod160.z.array(RecentPaymentSchema),
|
|
30802
|
+
recent_transactions: import_zod160.z.array(RecentTransactionSchema),
|
|
30844
30803
|
chart_data: PaymentsChartResponseSchema
|
|
30845
30804
|
});
|
|
30846
30805
|
|
|
30847
30806
|
// src/cfg/generated/_utils/schemas/PublicDocument.schema.ts
|
|
30848
|
-
var
|
|
30849
|
-
var PublicDocumentSchema =
|
|
30850
|
-
id:
|
|
30851
|
-
title:
|
|
30852
|
-
content:
|
|
30807
|
+
var import_zod161 = require("zod");
|
|
30808
|
+
var PublicDocumentSchema = import_zod161.z.object({
|
|
30809
|
+
id: import_zod161.z.uuid(),
|
|
30810
|
+
title: import_zod161.z.string().max(512),
|
|
30811
|
+
content: import_zod161.z.string(),
|
|
30853
30812
|
category: PublicCategorySchema,
|
|
30854
|
-
created_at:
|
|
30855
|
-
updated_at:
|
|
30813
|
+
created_at: import_zod161.z.iso.datetime(),
|
|
30814
|
+
updated_at: import_zod161.z.iso.datetime()
|
|
30856
30815
|
});
|
|
30857
30816
|
|
|
30858
30817
|
// src/cfg/generated/_utils/schemas/QueueAction.schema.ts
|
|
30859
|
-
var
|
|
30860
|
-
var QueueActionSchema =
|
|
30861
|
-
action:
|
|
30862
|
-
queue_names:
|
|
30818
|
+
var import_zod162 = require("zod");
|
|
30819
|
+
var QueueActionSchema = import_zod162.z.object({
|
|
30820
|
+
action: import_zod162.z.nativeEnum(QueueActionAction),
|
|
30821
|
+
queue_names: import_zod162.z.array(import_zod162.z.string()).optional()
|
|
30863
30822
|
});
|
|
30864
30823
|
|
|
30865
30824
|
// src/cfg/generated/_utils/schemas/QueueActionRequest.schema.ts
|
|
30866
|
-
var
|
|
30867
|
-
var QueueActionRequestSchema =
|
|
30868
|
-
action:
|
|
30869
|
-
queue_names:
|
|
30825
|
+
var import_zod163 = require("zod");
|
|
30826
|
+
var QueueActionRequestSchema = import_zod163.z.object({
|
|
30827
|
+
action: import_zod163.z.nativeEnum(QueueActionRequestAction),
|
|
30828
|
+
queue_names: import_zod163.z.array(import_zod163.z.string().min(1)).optional()
|
|
30870
30829
|
});
|
|
30871
30830
|
|
|
30872
30831
|
// src/cfg/generated/_utils/schemas/QueueStatus.schema.ts
|
|
30873
|
-
var
|
|
30874
|
-
var QueueStatusSchema =
|
|
30875
|
-
queues:
|
|
30876
|
-
workers:
|
|
30877
|
-
redis_connected:
|
|
30878
|
-
timestamp:
|
|
30879
|
-
error:
|
|
30832
|
+
var import_zod164 = require("zod");
|
|
30833
|
+
var QueueStatusSchema = import_zod164.z.object({
|
|
30834
|
+
queues: import_zod164.z.record(import_zod164.z.string(), import_zod164.z.any()),
|
|
30835
|
+
workers: import_zod164.z.int(),
|
|
30836
|
+
redis_connected: import_zod164.z.boolean(),
|
|
30837
|
+
timestamp: import_zod164.z.string(),
|
|
30838
|
+
error: import_zod164.z.string().optional()
|
|
30880
30839
|
});
|
|
30881
30840
|
|
|
30882
30841
|
// src/cfg/generated/_utils/schemas/QuickHealth.schema.ts
|
|
30883
|
-
var
|
|
30884
|
-
var QuickHealthSchema =
|
|
30885
|
-
status:
|
|
30886
|
-
timestamp:
|
|
30887
|
-
error:
|
|
30842
|
+
var import_zod165 = require("zod");
|
|
30843
|
+
var QuickHealthSchema = import_zod165.z.object({
|
|
30844
|
+
status: import_zod165.z.string(),
|
|
30845
|
+
timestamp: import_zod165.z.iso.datetime(),
|
|
30846
|
+
error: import_zod165.z.string().optional()
|
|
30888
30847
|
});
|
|
30889
30848
|
|
|
30890
30849
|
// src/cfg/generated/_utils/schemas/SendCampaignRequest.schema.ts
|
|
30891
|
-
var
|
|
30892
|
-
var SendCampaignRequestSchema =
|
|
30893
|
-
campaign_id:
|
|
30850
|
+
var import_zod166 = require("zod");
|
|
30851
|
+
var SendCampaignRequestSchema = import_zod166.z.object({
|
|
30852
|
+
campaign_id: import_zod166.z.int()
|
|
30894
30853
|
});
|
|
30895
30854
|
|
|
30896
30855
|
// src/cfg/generated/_utils/schemas/SendCampaignResponse.schema.ts
|
|
30897
|
-
var
|
|
30898
|
-
var SendCampaignResponseSchema =
|
|
30899
|
-
success:
|
|
30900
|
-
message:
|
|
30901
|
-
sent_count:
|
|
30902
|
-
error:
|
|
30856
|
+
var import_zod167 = require("zod");
|
|
30857
|
+
var SendCampaignResponseSchema = import_zod167.z.object({
|
|
30858
|
+
success: import_zod167.z.boolean(),
|
|
30859
|
+
message: import_zod167.z.string().optional(),
|
|
30860
|
+
sent_count: import_zod167.z.int().optional(),
|
|
30861
|
+
error: import_zod167.z.string().optional()
|
|
30903
30862
|
});
|
|
30904
30863
|
|
|
30905
30864
|
// src/cfg/generated/_utils/schemas/SubscribeRequest.schema.ts
|
|
30906
|
-
var
|
|
30907
|
-
var SubscribeRequestSchema =
|
|
30908
|
-
newsletter_id:
|
|
30909
|
-
email:
|
|
30865
|
+
var import_zod168 = require("zod");
|
|
30866
|
+
var SubscribeRequestSchema = import_zod168.z.object({
|
|
30867
|
+
newsletter_id: import_zod168.z.int(),
|
|
30868
|
+
email: import_zod168.z.email()
|
|
30910
30869
|
});
|
|
30911
30870
|
|
|
30912
30871
|
// src/cfg/generated/_utils/schemas/SubscribeResponse.schema.ts
|
|
30913
|
-
var
|
|
30914
|
-
var SubscribeResponseSchema =
|
|
30915
|
-
success:
|
|
30916
|
-
message:
|
|
30917
|
-
subscription_id:
|
|
30872
|
+
var import_zod169 = require("zod");
|
|
30873
|
+
var SubscribeResponseSchema = import_zod169.z.object({
|
|
30874
|
+
success: import_zod169.z.boolean(),
|
|
30875
|
+
message: import_zod169.z.string(),
|
|
30876
|
+
subscription_id: import_zod169.z.int().optional()
|
|
30918
30877
|
});
|
|
30919
30878
|
|
|
30920
30879
|
// src/cfg/generated/_utils/schemas/Subscription.schema.ts
|
|
30921
|
-
var
|
|
30922
|
-
var SubscriptionSchema =
|
|
30923
|
-
id:
|
|
30924
|
-
user:
|
|
30880
|
+
var import_zod170 = require("zod");
|
|
30881
|
+
var SubscriptionSchema = import_zod170.z.object({
|
|
30882
|
+
id: import_zod170.z.uuid(),
|
|
30883
|
+
user: import_zod170.z.string(),
|
|
30925
30884
|
tariff: TariffSchema,
|
|
30926
30885
|
endpoint_group: EndpointGroupSchema,
|
|
30927
|
-
status:
|
|
30928
|
-
status_display:
|
|
30929
|
-
status_color:
|
|
30930
|
-
tier:
|
|
30931
|
-
total_requests:
|
|
30932
|
-
usage_percentage:
|
|
30933
|
-
last_request_at:
|
|
30934
|
-
expires_at:
|
|
30935
|
-
is_active:
|
|
30936
|
-
is_expired:
|
|
30937
|
-
created_at:
|
|
30938
|
-
updated_at:
|
|
30886
|
+
status: import_zod170.z.nativeEnum(SubscriptionStatus).optional(),
|
|
30887
|
+
status_display: import_zod170.z.string(),
|
|
30888
|
+
status_color: import_zod170.z.string(),
|
|
30889
|
+
tier: import_zod170.z.nativeEnum(SubscriptionTier).optional(),
|
|
30890
|
+
total_requests: import_zod170.z.int(),
|
|
30891
|
+
usage_percentage: import_zod170.z.number(),
|
|
30892
|
+
last_request_at: import_zod170.z.iso.datetime().nullable(),
|
|
30893
|
+
expires_at: import_zod170.z.iso.datetime(),
|
|
30894
|
+
is_active: import_zod170.z.boolean(),
|
|
30895
|
+
is_expired: import_zod170.z.boolean(),
|
|
30896
|
+
created_at: import_zod170.z.iso.datetime(),
|
|
30897
|
+
updated_at: import_zod170.z.iso.datetime()
|
|
30939
30898
|
});
|
|
30940
30899
|
|
|
30941
30900
|
// src/cfg/generated/_utils/schemas/SubscriptionCreate.schema.ts
|
|
30942
|
-
var import_zod170 = require("zod");
|
|
30943
|
-
var SubscriptionCreateSchema = import_zod170.z.object({
|
|
30944
|
-
tariff_id: import_zod170.z.int().min(1),
|
|
30945
|
-
endpoint_group_id: import_zod170.z.int().min(1).nullable().optional(),
|
|
30946
|
-
duration_days: import_zod170.z.int().min(1).max(365).optional()
|
|
30947
|
-
});
|
|
30948
|
-
|
|
30949
|
-
// src/cfg/generated/_utils/schemas/SubscriptionCreateRequest.schema.ts
|
|
30950
30901
|
var import_zod171 = require("zod");
|
|
30951
|
-
var
|
|
30902
|
+
var SubscriptionCreateSchema = import_zod171.z.object({
|
|
30952
30903
|
tariff_id: import_zod171.z.int().min(1),
|
|
30953
30904
|
endpoint_group_id: import_zod171.z.int().min(1).nullable().optional(),
|
|
30954
30905
|
duration_days: import_zod171.z.int().min(1).max(365).optional()
|
|
30955
30906
|
});
|
|
30956
30907
|
|
|
30957
|
-
// src/cfg/generated/_utils/schemas/
|
|
30908
|
+
// src/cfg/generated/_utils/schemas/SubscriptionCreateRequest.schema.ts
|
|
30958
30909
|
var import_zod172 = require("zod");
|
|
30959
|
-
var
|
|
30960
|
-
|
|
30961
|
-
|
|
30962
|
-
|
|
30910
|
+
var SubscriptionCreateRequestSchema = import_zod172.z.object({
|
|
30911
|
+
tariff_id: import_zod172.z.int().min(1),
|
|
30912
|
+
endpoint_group_id: import_zod172.z.int().min(1).nullable().optional(),
|
|
30913
|
+
duration_days: import_zod172.z.int().min(1).max(365).optional()
|
|
30963
30914
|
});
|
|
30964
30915
|
|
|
30965
|
-
// src/cfg/generated/_utils/schemas/
|
|
30916
|
+
// src/cfg/generated/_utils/schemas/SubscriptionRequest.schema.ts
|
|
30966
30917
|
var import_zod173 = require("zod");
|
|
30967
|
-
var
|
|
30968
|
-
|
|
30969
|
-
|
|
30918
|
+
var SubscriptionRequestSchema = import_zod173.z.object({
|
|
30919
|
+
status: import_zod173.z.nativeEnum(SubscriptionRequestStatus).optional(),
|
|
30920
|
+
tier: import_zod173.z.nativeEnum(SubscriptionRequestTier).optional(),
|
|
30921
|
+
expires_at: import_zod173.z.iso.datetime()
|
|
30970
30922
|
});
|
|
30971
30923
|
|
|
30972
|
-
// src/cfg/generated/_utils/schemas/
|
|
30924
|
+
// src/cfg/generated/_utils/schemas/SuccessResponse.schema.ts
|
|
30973
30925
|
var import_zod174 = require("zod");
|
|
30974
|
-
var
|
|
30926
|
+
var SuccessResponseSchema = import_zod174.z.object({
|
|
30975
30927
|
success: import_zod174.z.boolean(),
|
|
30976
|
-
|
|
30977
|
-
total_count: import_zod174.z.int(),
|
|
30978
|
-
timestamp: import_zod174.z.iso.datetime()
|
|
30928
|
+
message: import_zod174.z.string()
|
|
30979
30929
|
});
|
|
30980
30930
|
|
|
30981
|
-
// src/cfg/generated/_utils/schemas/
|
|
30931
|
+
// src/cfg/generated/_utils/schemas/SupportedCurrencies.schema.ts
|
|
30982
30932
|
var import_zod175 = require("zod");
|
|
30983
|
-
var
|
|
30984
|
-
|
|
30985
|
-
|
|
30986
|
-
timestamp: import_zod175.z.string(),
|
|
30987
|
-
error: import_zod175.z.string().optional()
|
|
30933
|
+
var SupportedCurrenciesSchema = import_zod175.z.object({
|
|
30934
|
+
provider: import_zod175.z.nativeEnum(SupportedCurrenciesProvider).optional(),
|
|
30935
|
+
currency_type: import_zod175.z.nativeEnum(SupportedCurrenciesCurrencyType).optional()
|
|
30988
30936
|
});
|
|
30989
30937
|
|
|
30990
|
-
// src/cfg/generated/_utils/schemas/
|
|
30938
|
+
// src/cfg/generated/_utils/schemas/SupportedProviders.schema.ts
|
|
30991
30939
|
var import_zod176 = require("zod");
|
|
30992
|
-
var
|
|
30993
|
-
|
|
30994
|
-
|
|
30995
|
-
|
|
30940
|
+
var SupportedProvidersSchema = import_zod176.z.object({
|
|
30941
|
+
success: import_zod176.z.boolean(),
|
|
30942
|
+
providers: import_zod176.z.string(),
|
|
30943
|
+
total_count: import_zod176.z.int(),
|
|
30944
|
+
timestamp: import_zod176.z.iso.datetime()
|
|
30996
30945
|
});
|
|
30997
30946
|
|
|
30998
|
-
// src/cfg/generated/_utils/schemas/
|
|
30947
|
+
// src/cfg/generated/_utils/schemas/TaskStatistics.schema.ts
|
|
30999
30948
|
var import_zod177 = require("zod");
|
|
31000
|
-
var
|
|
31001
|
-
|
|
31002
|
-
|
|
31003
|
-
|
|
30949
|
+
var TaskStatisticsSchema = import_zod177.z.object({
|
|
30950
|
+
statistics: import_zod177.z.record(import_zod177.z.string(), import_zod177.z.any()),
|
|
30951
|
+
recent_tasks: import_zod177.z.array(import_zod177.z.record(import_zod177.z.string(), import_zod177.z.any())),
|
|
30952
|
+
timestamp: import_zod177.z.string(),
|
|
30953
|
+
error: import_zod177.z.string().optional()
|
|
31004
30954
|
});
|
|
31005
30955
|
|
|
31006
|
-
// src/cfg/generated/_utils/schemas/
|
|
30956
|
+
// src/cfg/generated/_utils/schemas/TestEmailRequest.schema.ts
|
|
31007
30957
|
var import_zod178 = require("zod");
|
|
31008
|
-
var
|
|
31009
|
-
|
|
31010
|
-
|
|
30958
|
+
var TestEmailRequestSchema = import_zod178.z.object({
|
|
30959
|
+
email: import_zod178.z.email(),
|
|
30960
|
+
subject: import_zod178.z.string().min(1).max(255).optional(),
|
|
30961
|
+
message: import_zod178.z.string().min(1).optional()
|
|
31011
30962
|
});
|
|
31012
30963
|
|
|
31013
|
-
// src/cfg/generated/_utils/schemas/
|
|
30964
|
+
// src/cfg/generated/_utils/schemas/TicketRequest.schema.ts
|
|
31014
30965
|
var import_zod179 = require("zod");
|
|
31015
|
-
var
|
|
31016
|
-
|
|
30966
|
+
var TicketRequestSchema = import_zod179.z.object({
|
|
30967
|
+
user: import_zod179.z.int(),
|
|
30968
|
+
subject: import_zod179.z.string().min(1).max(255),
|
|
30969
|
+
status: import_zod179.z.nativeEnum(TicketRequestStatus).optional()
|
|
31017
30970
|
});
|
|
31018
30971
|
|
|
31019
|
-
// src/cfg/generated/_utils/schemas/
|
|
30972
|
+
// src/cfg/generated/_utils/schemas/TokenRefresh.schema.ts
|
|
31020
30973
|
var import_zod180 = require("zod");
|
|
31021
|
-
var
|
|
31022
|
-
|
|
30974
|
+
var TokenRefreshSchema = import_zod180.z.object({
|
|
30975
|
+
access: import_zod180.z.string(),
|
|
30976
|
+
refresh: import_zod180.z.string()
|
|
31023
30977
|
});
|
|
31024
30978
|
|
|
31025
|
-
// src/cfg/generated/_utils/schemas/
|
|
30979
|
+
// src/cfg/generated/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
31026
30980
|
var import_zod181 = require("zod");
|
|
31027
|
-
var
|
|
31028
|
-
|
|
30981
|
+
var TokenRefreshRequestSchema = import_zod181.z.object({
|
|
30982
|
+
refresh: import_zod181.z.string().min(1)
|
|
31029
30983
|
});
|
|
31030
30984
|
|
|
31031
|
-
// src/cfg/generated/_utils/schemas/
|
|
30985
|
+
// src/cfg/generated/_utils/schemas/Unsubscribe.schema.ts
|
|
31032
30986
|
var import_zod182 = require("zod");
|
|
31033
|
-
var
|
|
31034
|
-
|
|
31035
|
-
last_name: import_zod182.z.string().max(50).optional(),
|
|
31036
|
-
company: import_zod182.z.string().max(100).optional(),
|
|
31037
|
-
phone: import_zod182.z.string().max(20).optional(),
|
|
31038
|
-
position: import_zod182.z.string().max(100).optional()
|
|
30987
|
+
var UnsubscribeSchema = import_zod182.z.object({
|
|
30988
|
+
subscription_id: import_zod182.z.int()
|
|
31039
30989
|
});
|
|
31040
30990
|
|
|
31041
|
-
// src/cfg/generated/_utils/schemas/
|
|
30991
|
+
// src/cfg/generated/_utils/schemas/UnsubscribeRequest.schema.ts
|
|
31042
30992
|
var import_zod183 = require("zod");
|
|
31043
|
-
var
|
|
31044
|
-
|
|
31045
|
-
failed_count: import_zod183.z.int(),
|
|
31046
|
-
total_tokens: import_zod183.z.int(),
|
|
31047
|
-
total_cost: import_zod183.z.number(),
|
|
31048
|
-
success_rate: import_zod183.z.number(),
|
|
31049
|
-
errors: import_zod183.z.array(import_zod183.z.string())
|
|
30993
|
+
var UnsubscribeRequestSchema = import_zod183.z.object({
|
|
30994
|
+
subscription_id: import_zod183.z.int()
|
|
31050
30995
|
});
|
|
31051
30996
|
|
|
31052
|
-
// src/cfg/generated/_utils/schemas/
|
|
30997
|
+
// src/cfg/generated/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
31053
30998
|
var import_zod184 = require("zod");
|
|
31054
|
-
var
|
|
31055
|
-
|
|
31056
|
-
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
total_cost: import_zod184.z.number(),
|
|
31061
|
-
avg_tokens_per_chunk: import_zod184.z.number(),
|
|
31062
|
-
avg_cost_per_chunk: import_zod184.z.number()
|
|
30999
|
+
var UserProfileUpdateRequestSchema = import_zod184.z.object({
|
|
31000
|
+
first_name: import_zod184.z.string().max(50).optional(),
|
|
31001
|
+
last_name: import_zod184.z.string().max(50).optional(),
|
|
31002
|
+
company: import_zod184.z.string().max(100).optional(),
|
|
31003
|
+
phone: import_zod184.z.string().max(20).optional(),
|
|
31004
|
+
position: import_zod184.z.string().max(100).optional()
|
|
31063
31005
|
});
|
|
31064
31006
|
|
|
31065
|
-
// src/cfg/generated/_utils/schemas/
|
|
31007
|
+
// src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts
|
|
31008
|
+
var import_zod185 = require("zod");
|
|
31009
|
+
var VectorizationResultSchema = import_zod185.z.object({
|
|
31010
|
+
vectorized_count: import_zod185.z.int(),
|
|
31011
|
+
failed_count: import_zod185.z.int(),
|
|
31012
|
+
total_tokens: import_zod185.z.int(),
|
|
31013
|
+
total_cost: import_zod185.z.number(),
|
|
31014
|
+
success_rate: import_zod185.z.number(),
|
|
31015
|
+
errors: import_zod185.z.array(import_zod185.z.string())
|
|
31016
|
+
});
|
|
31017
|
+
|
|
31018
|
+
// src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts
|
|
31066
31019
|
var import_zod186 = require("zod");
|
|
31020
|
+
var VectorizationStatisticsSchema = import_zod186.z.object({
|
|
31021
|
+
total_chunks: import_zod186.z.int(),
|
|
31022
|
+
vectorized_chunks: import_zod186.z.int(),
|
|
31023
|
+
pending_chunks: import_zod186.z.int(),
|
|
31024
|
+
vectorization_rate: import_zod186.z.number(),
|
|
31025
|
+
total_tokens: import_zod186.z.int(),
|
|
31026
|
+
total_cost: import_zod186.z.number(),
|
|
31027
|
+
avg_tokens_per_chunk: import_zod186.z.number(),
|
|
31028
|
+
avg_cost_per_chunk: import_zod186.z.number()
|
|
31029
|
+
});
|
|
31030
|
+
|
|
31031
|
+
// src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts
|
|
31032
|
+
var import_zod188 = require("zod");
|
|
31067
31033
|
|
|
31068
31034
|
// src/cfg/generated/_utils/schemas/WebhookEventRequest.schema.ts
|
|
31069
|
-
var
|
|
31070
|
-
var WebhookEventRequestSchema =
|
|
31071
|
-
provider:
|
|
31072
|
-
event_type:
|
|
31073
|
-
status:
|
|
31074
|
-
timestamp:
|
|
31075
|
-
payload_size:
|
|
31076
|
-
response_time:
|
|
31077
|
-
retry_count:
|
|
31078
|
-
error_message:
|
|
31079
|
-
payload_preview:
|
|
31080
|
-
response_status_code:
|
|
31081
|
-
webhook_url:
|
|
31035
|
+
var import_zod187 = require("zod");
|
|
31036
|
+
var WebhookEventRequestSchema = import_zod187.z.object({
|
|
31037
|
+
provider: import_zod187.z.string().min(1).max(50),
|
|
31038
|
+
event_type: import_zod187.z.string().min(1).max(100),
|
|
31039
|
+
status: import_zod187.z.nativeEnum(WebhookEventRequestStatus),
|
|
31040
|
+
timestamp: import_zod187.z.iso.datetime(),
|
|
31041
|
+
payload_size: import_zod187.z.int(),
|
|
31042
|
+
response_time: import_zod187.z.int(),
|
|
31043
|
+
retry_count: import_zod187.z.int().optional(),
|
|
31044
|
+
error_message: import_zod187.z.string().max(500).optional(),
|
|
31045
|
+
payload_preview: import_zod187.z.string().max(200).optional(),
|
|
31046
|
+
response_status_code: import_zod187.z.int().optional(),
|
|
31047
|
+
webhook_url: import_zod187.z.url().optional()
|
|
31082
31048
|
});
|
|
31083
31049
|
|
|
31084
31050
|
// src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts
|
|
31085
|
-
var WebhookEventListRequestSchema =
|
|
31086
|
-
events:
|
|
31087
|
-
total:
|
|
31088
|
-
page:
|
|
31089
|
-
per_page:
|
|
31090
|
-
has_next:
|
|
31091
|
-
has_previous:
|
|
31051
|
+
var WebhookEventListRequestSchema = import_zod188.z.object({
|
|
31052
|
+
events: import_zod188.z.array(WebhookEventRequestSchema),
|
|
31053
|
+
total: import_zod188.z.int(),
|
|
31054
|
+
page: import_zod188.z.int(),
|
|
31055
|
+
per_page: import_zod188.z.int(),
|
|
31056
|
+
has_next: import_zod188.z.boolean(),
|
|
31057
|
+
has_previous: import_zod188.z.boolean()
|
|
31092
31058
|
});
|
|
31093
31059
|
|
|
31094
31060
|
// src/cfg/generated/_utils/schemas/WebhookHealth.schema.ts
|
|
31095
|
-
var
|
|
31096
|
-
var WebhookHealthSchema =
|
|
31097
|
-
status:
|
|
31098
|
-
timestamp:
|
|
31099
|
-
providers:
|
|
31061
|
+
var import_zod189 = require("zod");
|
|
31062
|
+
var WebhookHealthSchema = import_zod189.z.object({
|
|
31063
|
+
status: import_zod189.z.string().max(20),
|
|
31064
|
+
timestamp: import_zod189.z.iso.datetime(),
|
|
31065
|
+
providers: import_zod189.z.string()
|
|
31100
31066
|
});
|
|
31101
31067
|
|
|
31102
31068
|
// src/cfg/generated/_utils/schemas/WebhookProviderStats.schema.ts
|
|
31103
|
-
var
|
|
31104
|
-
var WebhookProviderStatsSchema =
|
|
31105
|
-
total:
|
|
31106
|
-
successful:
|
|
31107
|
-
failed:
|
|
31108
|
-
pending:
|
|
31109
|
-
success_rate:
|
|
31069
|
+
var import_zod190 = require("zod");
|
|
31070
|
+
var WebhookProviderStatsSchema = import_zod190.z.object({
|
|
31071
|
+
total: import_zod190.z.int(),
|
|
31072
|
+
successful: import_zod190.z.int(),
|
|
31073
|
+
failed: import_zod190.z.int(),
|
|
31074
|
+
pending: import_zod190.z.int().optional(),
|
|
31075
|
+
success_rate: import_zod190.z.number()
|
|
31110
31076
|
});
|
|
31111
31077
|
|
|
31112
31078
|
// src/cfg/generated/_utils/schemas/WebhookProviderStatsRequest.schema.ts
|
|
31113
|
-
var
|
|
31114
|
-
var WebhookProviderStatsRequestSchema =
|
|
31115
|
-
total:
|
|
31116
|
-
successful:
|
|
31117
|
-
failed:
|
|
31118
|
-
pending:
|
|
31119
|
-
success_rate:
|
|
31079
|
+
var import_zod191 = require("zod");
|
|
31080
|
+
var WebhookProviderStatsRequestSchema = import_zod191.z.object({
|
|
31081
|
+
total: import_zod191.z.int(),
|
|
31082
|
+
successful: import_zod191.z.int(),
|
|
31083
|
+
failed: import_zod191.z.int(),
|
|
31084
|
+
pending: import_zod191.z.int().optional(),
|
|
31085
|
+
success_rate: import_zod191.z.number()
|
|
31120
31086
|
});
|
|
31121
31087
|
|
|
31122
31088
|
// src/cfg/generated/_utils/schemas/WebhookResponse.schema.ts
|
|
31123
|
-
var
|
|
31124
|
-
var WebhookResponseSchema =
|
|
31125
|
-
success:
|
|
31126
|
-
message:
|
|
31127
|
-
payment_id:
|
|
31128
|
-
provider_payment_id:
|
|
31129
|
-
processed_at:
|
|
31089
|
+
var import_zod192 = require("zod");
|
|
31090
|
+
var WebhookResponseSchema = import_zod192.z.object({
|
|
31091
|
+
success: import_zod192.z.boolean(),
|
|
31092
|
+
message: import_zod192.z.string().max(500),
|
|
31093
|
+
payment_id: import_zod192.z.string().max(256).optional(),
|
|
31094
|
+
provider_payment_id: import_zod192.z.string().max(256).optional(),
|
|
31095
|
+
processed_at: import_zod192.z.iso.datetime().optional()
|
|
31130
31096
|
});
|
|
31131
31097
|
|
|
31132
31098
|
// src/cfg/generated/_utils/schemas/WebhookResponseRequest.schema.ts
|
|
31133
|
-
var
|
|
31134
|
-
var WebhookResponseRequestSchema =
|
|
31135
|
-
success:
|
|
31136
|
-
message:
|
|
31137
|
-
payment_id:
|
|
31138
|
-
provider_payment_id:
|
|
31139
|
-
processed_at:
|
|
31099
|
+
var import_zod193 = require("zod");
|
|
31100
|
+
var WebhookResponseRequestSchema = import_zod193.z.object({
|
|
31101
|
+
success: import_zod193.z.boolean(),
|
|
31102
|
+
message: import_zod193.z.string().min(1).max(500),
|
|
31103
|
+
payment_id: import_zod193.z.string().min(1).max(256).optional(),
|
|
31104
|
+
provider_payment_id: import_zod193.z.string().min(1).max(256).optional(),
|
|
31105
|
+
processed_at: import_zod193.z.iso.datetime().optional()
|
|
31140
31106
|
});
|
|
31141
31107
|
|
|
31142
31108
|
// src/cfg/generated/_utils/schemas/WebhookStatsRequest.schema.ts
|
|
31143
|
-
var
|
|
31144
|
-
var WebhookStatsRequestSchema =
|
|
31145
|
-
total:
|
|
31146
|
-
successful:
|
|
31147
|
-
failed:
|
|
31148
|
-
pending:
|
|
31149
|
-
success_rate:
|
|
31150
|
-
providers:
|
|
31151
|
-
last_24h:
|
|
31152
|
-
avg_response_time:
|
|
31153
|
-
max_response_time:
|
|
31109
|
+
var import_zod194 = require("zod");
|
|
31110
|
+
var WebhookStatsRequestSchema = import_zod194.z.object({
|
|
31111
|
+
total: import_zod194.z.int(),
|
|
31112
|
+
successful: import_zod194.z.int(),
|
|
31113
|
+
failed: import_zod194.z.int(),
|
|
31114
|
+
pending: import_zod194.z.int(),
|
|
31115
|
+
success_rate: import_zod194.z.number(),
|
|
31116
|
+
providers: import_zod194.z.record(import_zod194.z.string(), import_zod194.z.any()),
|
|
31117
|
+
last_24h: import_zod194.z.record(import_zod194.z.string(), import_zod194.z.any()),
|
|
31118
|
+
avg_response_time: import_zod194.z.number(),
|
|
31119
|
+
max_response_time: import_zod194.z.int()
|
|
31154
31120
|
});
|
|
31155
31121
|
|
|
31156
31122
|
// src/cfg/generated/_utils/schemas/WorkerAction.schema.ts
|
|
31157
|
-
var
|
|
31158
|
-
var WorkerActionSchema =
|
|
31159
|
-
action:
|
|
31160
|
-
processes:
|
|
31161
|
-
threads:
|
|
31123
|
+
var import_zod195 = require("zod");
|
|
31124
|
+
var WorkerActionSchema = import_zod195.z.object({
|
|
31125
|
+
action: import_zod195.z.nativeEnum(WorkerActionAction),
|
|
31126
|
+
processes: import_zod195.z.int().min(1).max(10).optional(),
|
|
31127
|
+
threads: import_zod195.z.int().min(1).max(20).optional()
|
|
31162
31128
|
});
|
|
31163
31129
|
|
|
31164
31130
|
// src/cfg/generated/_utils/schemas/WorkerActionRequest.schema.ts
|
|
31165
|
-
var
|
|
31166
|
-
var WorkerActionRequestSchema =
|
|
31167
|
-
action:
|
|
31168
|
-
processes:
|
|
31169
|
-
threads:
|
|
31131
|
+
var import_zod196 = require("zod");
|
|
31132
|
+
var WorkerActionRequestSchema = import_zod196.z.object({
|
|
31133
|
+
action: import_zod196.z.nativeEnum(WorkerActionRequestAction),
|
|
31134
|
+
processes: import_zod196.z.int().min(1).max(10).optional(),
|
|
31135
|
+
threads: import_zod196.z.int().min(1).max(20).optional()
|
|
31170
31136
|
});
|
|
31171
31137
|
|
|
31172
31138
|
// src/cfg/generated/_utils/fetchers/index.ts
|
|
@@ -32282,10 +32248,10 @@ async function getPaymentsCurrenciesHealthRetrieve(client) {
|
|
|
32282
32248
|
const response = await api2.cfg_payments.currenciesHealthRetrieve();
|
|
32283
32249
|
return CurrencySchema.parse(response);
|
|
32284
32250
|
}
|
|
32285
|
-
async function getPaymentsCurrenciesRatesRetrieve(
|
|
32251
|
+
async function getPaymentsCurrenciesRatesRetrieve(client) {
|
|
32286
32252
|
const api2 = client || getAPIInstance();
|
|
32287
|
-
const response = await api2.cfg_payments.currenciesRatesRetrieve(
|
|
32288
|
-
return
|
|
32253
|
+
const response = await api2.cfg_payments.currenciesRatesRetrieve();
|
|
32254
|
+
return CurrencyRatesSchema.parse(response);
|
|
32289
32255
|
}
|
|
32290
32256
|
async function getPaymentsCurrenciesStableRetrieve(client) {
|
|
32291
32257
|
const api2 = client || getAPIInstance();
|
|
@@ -32297,10 +32263,10 @@ async function getPaymentsCurrenciesStatsRetrieve(client) {
|
|
|
32297
32263
|
const response = await api2.cfg_payments.currenciesStatsRetrieve();
|
|
32298
32264
|
return CurrencySchema.parse(response);
|
|
32299
32265
|
}
|
|
32300
|
-
async function getPaymentsCurrenciesSupportedRetrieve(
|
|
32266
|
+
async function getPaymentsCurrenciesSupportedRetrieve(client) {
|
|
32301
32267
|
const api2 = client || getAPIInstance();
|
|
32302
|
-
const response = await api2.cfg_payments.currenciesSupportedRetrieve(
|
|
32303
|
-
return
|
|
32268
|
+
const response = await api2.cfg_payments.currenciesSupportedRetrieve();
|
|
32269
|
+
return SupportedCurrenciesSchema.parse(response);
|
|
32304
32270
|
}
|
|
32305
32271
|
async function getPaymentsEndpointGroupsList(params, client) {
|
|
32306
32272
|
const api2 = client || getAPIInstance();
|
|
@@ -34448,10 +34414,10 @@ function usePaymentsCurrenciesHealthRetrieve(client) {
|
|
|
34448
34414
|
() => getPaymentsCurrenciesHealthRetrieve(client)
|
|
34449
34415
|
);
|
|
34450
34416
|
}
|
|
34451
|
-
function usePaymentsCurrenciesRatesRetrieve(
|
|
34417
|
+
function usePaymentsCurrenciesRatesRetrieve(client) {
|
|
34452
34418
|
return (0, import_swr23.default)(
|
|
34453
|
-
|
|
34454
|
-
() => getPaymentsCurrenciesRatesRetrieve(
|
|
34419
|
+
"cfg-payments-currencies-rate",
|
|
34420
|
+
() => getPaymentsCurrenciesRatesRetrieve(client)
|
|
34455
34421
|
);
|
|
34456
34422
|
}
|
|
34457
34423
|
function usePaymentsCurrenciesStableRetrieve(client) {
|
|
@@ -34466,10 +34432,10 @@ function usePaymentsCurrenciesStatsRetrieve(client) {
|
|
|
34466
34432
|
() => getPaymentsCurrenciesStatsRetrieve(client)
|
|
34467
34433
|
);
|
|
34468
34434
|
}
|
|
34469
|
-
function usePaymentsCurrenciesSupportedRetrieve(
|
|
34435
|
+
function usePaymentsCurrenciesSupportedRetrieve(client) {
|
|
34470
34436
|
return (0, import_swr23.default)(
|
|
34471
|
-
|
|
34472
|
-
() => getPaymentsCurrenciesSupportedRetrieve(
|
|
34437
|
+
"cfg-payments-currencies-supported",
|
|
34438
|
+
() => getPaymentsCurrenciesSupportedRetrieve(client)
|
|
34473
34439
|
);
|
|
34474
34440
|
}
|
|
34475
34441
|
function usePaymentsEndpointGroupsList(params, client) {
|
|
@@ -37275,24 +37241,11 @@ function CurrenciesProvider({ children }) {
|
|
|
37275
37241
|
const refreshCurrencies = async () => {
|
|
37276
37242
|
await mutateCurrencies();
|
|
37277
37243
|
};
|
|
37278
|
-
const getCurrency = async (id) => {
|
|
37279
|
-
const { data } = usePaymentsCurrenciesRetrieve(id, api);
|
|
37280
|
-
return data;
|
|
37281
|
-
};
|
|
37282
|
-
const getCurrencyRates = async (baseCurrency, currencies2) => {
|
|
37283
|
-
const { data } = usePaymentsCurrenciesRatesRetrieve(
|
|
37284
|
-
{ base_currency: baseCurrency, currencies: currencies2 },
|
|
37285
|
-
api
|
|
37286
|
-
);
|
|
37287
|
-
return data;
|
|
37288
|
-
};
|
|
37289
37244
|
const value = {
|
|
37290
37245
|
currencies,
|
|
37291
37246
|
isLoadingCurrencies,
|
|
37292
37247
|
currenciesError,
|
|
37293
|
-
refreshCurrencies
|
|
37294
|
-
getCurrency,
|
|
37295
|
-
getCurrencyRates
|
|
37248
|
+
refreshCurrencies
|
|
37296
37249
|
};
|
|
37297
37250
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CurrenciesContext.Provider, { value, children });
|
|
37298
37251
|
}
|
|
@@ -37318,7 +37271,7 @@ function ApiKeysProvider({ children }) {
|
|
|
37318
37271
|
const refreshApiKeys = async () => {
|
|
37319
37272
|
await mutateApiKeys();
|
|
37320
37273
|
};
|
|
37321
|
-
const createApiKeyMutation =
|
|
37274
|
+
const createApiKeyMutation = useCreatePaymentsApiKeysCreateCreate();
|
|
37322
37275
|
const deleteApiKeyMutation = useDeletePaymentsApiKeysDestroy();
|
|
37323
37276
|
const getApiKey = async (id) => {
|
|
37324
37277
|
const { data } = usePaymentsApiKeysRetrieve(id, api);
|
|
@@ -37371,6 +37324,19 @@ function OverviewProvider({ children }) {
|
|
|
37371
37324
|
const { data: chartData, mutate: mutateChartData } = usePaymentsOverviewDashboardChartDataRetrieve({}, api);
|
|
37372
37325
|
const { data: recentPayments, mutate: mutateRecentPayments } = usePaymentsOverviewDashboardRecentPaymentsList({}, api);
|
|
37373
37326
|
const { data: recentTransactions, mutate: mutateRecentTransactions } = usePaymentsOverviewDashboardRecentTransactionsList({}, api);
|
|
37327
|
+
const {
|
|
37328
|
+
data: balances,
|
|
37329
|
+
error: balancesError,
|
|
37330
|
+
isLoading: isLoadingBalances,
|
|
37331
|
+
mutate: mutateBalances
|
|
37332
|
+
} = usePaymentsBalancesList({}, api);
|
|
37333
|
+
const {
|
|
37334
|
+
data: balanceSummary,
|
|
37335
|
+
error: summaryError,
|
|
37336
|
+
isLoading: isLoadingSummary,
|
|
37337
|
+
mutate: mutateSummary
|
|
37338
|
+
} = usePaymentsBalancesSummaryRetrieve(api);
|
|
37339
|
+
const createPaymentMutation = useCreatePaymentsPaymentCreate();
|
|
37374
37340
|
const isLoadingOverview = isLoadingOverview1;
|
|
37375
37341
|
const refreshOverview = async () => {
|
|
37376
37342
|
await Promise.all([
|
|
@@ -37384,6 +37350,26 @@ function OverviewProvider({ children }) {
|
|
|
37384
37350
|
mutateRecentTransactions()
|
|
37385
37351
|
]);
|
|
37386
37352
|
};
|
|
37353
|
+
const refreshBalances = async () => {
|
|
37354
|
+
await mutateBalances();
|
|
37355
|
+
};
|
|
37356
|
+
const refreshSummary = async () => {
|
|
37357
|
+
await mutateSummary();
|
|
37358
|
+
};
|
|
37359
|
+
const retrieveBalance = async (id) => {
|
|
37360
|
+
try {
|
|
37361
|
+
const result = await getPaymentsBalancesRetrieve(id, api);
|
|
37362
|
+
return result;
|
|
37363
|
+
} catch (error) {
|
|
37364
|
+
defaultLogger.error("Failed to retrieve balance:", error);
|
|
37365
|
+
return void 0;
|
|
37366
|
+
}
|
|
37367
|
+
};
|
|
37368
|
+
const createPayment = async (data) => {
|
|
37369
|
+
const result = await createPaymentMutation(data, api);
|
|
37370
|
+
await refreshOverview();
|
|
37371
|
+
return result;
|
|
37372
|
+
};
|
|
37387
37373
|
const value = {
|
|
37388
37374
|
overview,
|
|
37389
37375
|
metrics,
|
|
@@ -37393,6 +37379,16 @@ function OverviewProvider({ children }) {
|
|
|
37393
37379
|
chartData,
|
|
37394
37380
|
recentPayments,
|
|
37395
37381
|
recentTransactions,
|
|
37382
|
+
balances,
|
|
37383
|
+
isLoadingBalances,
|
|
37384
|
+
balancesError,
|
|
37385
|
+
refreshBalances,
|
|
37386
|
+
balanceSummary,
|
|
37387
|
+
isLoadingSummary,
|
|
37388
|
+
summaryError,
|
|
37389
|
+
refreshSummary,
|
|
37390
|
+
retrieveBalance,
|
|
37391
|
+
createPayment,
|
|
37396
37392
|
isLoadingOverview,
|
|
37397
37393
|
overviewError,
|
|
37398
37394
|
refreshOverview
|
|
@@ -37407,10 +37403,66 @@ function useOverviewContext() {
|
|
|
37407
37403
|
return context;
|
|
37408
37404
|
}
|
|
37409
37405
|
|
|
37410
|
-
// src/cfg/contexts/
|
|
37406
|
+
// src/cfg/contexts/payments/RootPaymentsContext.tsx
|
|
37411
37407
|
var import_react10 = require("react");
|
|
37412
37408
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
37413
|
-
var
|
|
37409
|
+
var RootPaymentsContext = (0, import_react10.createContext)(void 0);
|
|
37410
|
+
function RootPaymentsProvider({ children }) {
|
|
37411
|
+
const {
|
|
37412
|
+
data: currencies,
|
|
37413
|
+
error: currenciesError,
|
|
37414
|
+
isLoading: isLoadingCurrencies,
|
|
37415
|
+
mutate: mutateCurrencies
|
|
37416
|
+
} = usePaymentsCurrenciesList({ page_size: 1e3 }, api);
|
|
37417
|
+
const {
|
|
37418
|
+
data: providerCurrencies,
|
|
37419
|
+
error: providerCurrenciesError,
|
|
37420
|
+
isLoading: isLoadingProviderCurrencies,
|
|
37421
|
+
mutate: mutateProviderCurrencies
|
|
37422
|
+
} = usePaymentsProviderCurrenciesList({ page_size: 1e3 }, api);
|
|
37423
|
+
const {
|
|
37424
|
+
data: networks,
|
|
37425
|
+
error: networksError,
|
|
37426
|
+
isLoading: isLoadingNetworks,
|
|
37427
|
+
mutate: mutateNetworks
|
|
37428
|
+
} = usePaymentsNetworksList({ page_size: 1e3 }, api);
|
|
37429
|
+
const refreshCurrencies = async () => {
|
|
37430
|
+
await mutateCurrencies();
|
|
37431
|
+
};
|
|
37432
|
+
const refreshProviderCurrencies = async () => {
|
|
37433
|
+
await mutateProviderCurrencies();
|
|
37434
|
+
};
|
|
37435
|
+
const refreshNetworks = async () => {
|
|
37436
|
+
await mutateNetworks();
|
|
37437
|
+
};
|
|
37438
|
+
const value = {
|
|
37439
|
+
currencies,
|
|
37440
|
+
isLoadingCurrencies,
|
|
37441
|
+
currenciesError,
|
|
37442
|
+
refreshCurrencies,
|
|
37443
|
+
providerCurrencies,
|
|
37444
|
+
isLoadingProviderCurrencies,
|
|
37445
|
+
providerCurrenciesError,
|
|
37446
|
+
refreshProviderCurrencies,
|
|
37447
|
+
networks,
|
|
37448
|
+
isLoadingNetworks,
|
|
37449
|
+
networksError,
|
|
37450
|
+
refreshNetworks
|
|
37451
|
+
};
|
|
37452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RootPaymentsContext.Provider, { value, children });
|
|
37453
|
+
}
|
|
37454
|
+
function useRootPaymentsContext() {
|
|
37455
|
+
const context = (0, import_react10.useContext)(RootPaymentsContext);
|
|
37456
|
+
if (!context) {
|
|
37457
|
+
throw new Error("useRootPaymentsContext must be used within RootPaymentsProvider");
|
|
37458
|
+
}
|
|
37459
|
+
return context;
|
|
37460
|
+
}
|
|
37461
|
+
|
|
37462
|
+
// src/cfg/contexts/knowbase/ChatContext.tsx
|
|
37463
|
+
var import_react11 = require("react");
|
|
37464
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
37465
|
+
var KnowbaseChatContext = (0, import_react11.createContext)(void 0);
|
|
37414
37466
|
function KnowbaseChatProvider({ children }) {
|
|
37415
37467
|
const {
|
|
37416
37468
|
data: chats,
|
|
@@ -37471,10 +37523,10 @@ function KnowbaseChatProvider({ children }) {
|
|
|
37471
37523
|
deleteChat,
|
|
37472
37524
|
sendQuery
|
|
37473
37525
|
};
|
|
37474
|
-
return /* @__PURE__ */ (0,
|
|
37526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(KnowbaseChatContext.Provider, { value, children });
|
|
37475
37527
|
}
|
|
37476
37528
|
function useKnowbaseChatContext() {
|
|
37477
|
-
const context = (0,
|
|
37529
|
+
const context = (0, import_react11.useContext)(KnowbaseChatContext);
|
|
37478
37530
|
if (!context) {
|
|
37479
37531
|
throw new Error("useKnowbaseChatContext must be used within KnowbaseChatProvider");
|
|
37480
37532
|
}
|
|
@@ -37482,9 +37534,9 @@ function useKnowbaseChatContext() {
|
|
|
37482
37534
|
}
|
|
37483
37535
|
|
|
37484
37536
|
// src/cfg/contexts/knowbase/DocumentsContext.tsx
|
|
37485
|
-
var
|
|
37486
|
-
var
|
|
37487
|
-
var KnowbaseDocumentsContext = (0,
|
|
37537
|
+
var import_react12 = require("react");
|
|
37538
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
37539
|
+
var KnowbaseDocumentsContext = (0, import_react12.createContext)(
|
|
37488
37540
|
void 0
|
|
37489
37541
|
);
|
|
37490
37542
|
function KnowbaseDocumentsProvider({ children }) {
|
|
@@ -37603,10 +37655,10 @@ function KnowbaseDocumentsProvider({ children }) {
|
|
|
37603
37655
|
partialUpdateArchive,
|
|
37604
37656
|
deleteArchive
|
|
37605
37657
|
};
|
|
37606
|
-
return /* @__PURE__ */ (0,
|
|
37658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(KnowbaseDocumentsContext.Provider, { value, children });
|
|
37607
37659
|
}
|
|
37608
37660
|
function useKnowbaseDocumentsContext() {
|
|
37609
|
-
const context = (0,
|
|
37661
|
+
const context = (0, import_react12.useContext)(KnowbaseDocumentsContext);
|
|
37610
37662
|
if (!context) {
|
|
37611
37663
|
throw new Error("useKnowbaseDocumentsContext must be used within KnowbaseDocumentsProvider");
|
|
37612
37664
|
}
|
|
@@ -37614,9 +37666,9 @@ function useKnowbaseDocumentsContext() {
|
|
|
37614
37666
|
}
|
|
37615
37667
|
|
|
37616
37668
|
// src/cfg/contexts/knowbase/SessionsContext.tsx
|
|
37617
|
-
var
|
|
37618
|
-
var
|
|
37619
|
-
var KnowbaseSessionsContext = (0,
|
|
37669
|
+
var import_react13 = require("react");
|
|
37670
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
37671
|
+
var KnowbaseSessionsContext = (0, import_react13.createContext)(void 0);
|
|
37620
37672
|
function KnowbaseSessionsProvider({ children }) {
|
|
37621
37673
|
const {
|
|
37622
37674
|
data: sessions,
|
|
@@ -37679,10 +37731,10 @@ function KnowbaseSessionsProvider({ children }) {
|
|
|
37679
37731
|
activateSession,
|
|
37680
37732
|
archiveSession
|
|
37681
37733
|
};
|
|
37682
|
-
return /* @__PURE__ */ (0,
|
|
37734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(KnowbaseSessionsContext.Provider, { value, children });
|
|
37683
37735
|
}
|
|
37684
37736
|
function useKnowbaseSessionsContext() {
|
|
37685
|
-
const context = (0,
|
|
37737
|
+
const context = (0, import_react13.useContext)(KnowbaseSessionsContext);
|
|
37686
37738
|
if (!context) {
|
|
37687
37739
|
throw new Error("useKnowbaseSessionsContext must be used within KnowbaseSessionsProvider");
|
|
37688
37740
|
}
|
|
@@ -37746,6 +37798,7 @@ function useKnowbaseSessionsContext() {
|
|
|
37746
37798
|
PaymentsProvider,
|
|
37747
37799
|
PaymentsService,
|
|
37748
37800
|
REFRESH_TOKEN_KEY,
|
|
37801
|
+
RootPaymentsProvider,
|
|
37749
37802
|
Schemas,
|
|
37750
37803
|
SubscriptionsService,
|
|
37751
37804
|
SupportProvider,
|
|
@@ -38063,6 +38116,7 @@ function useKnowbaseSessionsContext() {
|
|
|
38063
38116
|
useNewsletterContext,
|
|
38064
38117
|
useOverviewContext,
|
|
38065
38118
|
usePaymentsContext,
|
|
38119
|
+
useRootPaymentsContext,
|
|
38066
38120
|
useSupportContext,
|
|
38067
38121
|
withRetry
|
|
38068
38122
|
});
|