@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.mjs
CHANGED
|
@@ -1341,8 +1341,9 @@ var CfgPayments = class {
|
|
|
1341
1341
|
return response;
|
|
1342
1342
|
}
|
|
1343
1343
|
/**
|
|
1344
|
-
*
|
|
1345
|
-
*
|
|
1344
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1345
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1346
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1346
1347
|
*/
|
|
1347
1348
|
async apiKeysList(...args) {
|
|
1348
1349
|
const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
|
|
@@ -1356,40 +1357,45 @@ var CfgPayments = class {
|
|
|
1356
1357
|
return response;
|
|
1357
1358
|
}
|
|
1358
1359
|
/**
|
|
1359
|
-
*
|
|
1360
|
-
*
|
|
1360
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1361
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1362
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1361
1363
|
*/
|
|
1362
1364
|
async apiKeysCreate(data) {
|
|
1363
1365
|
const response = await this.client.request("POST", "/cfg/payments/api-keys/", { body: data });
|
|
1364
1366
|
return response;
|
|
1365
1367
|
}
|
|
1366
1368
|
/**
|
|
1367
|
-
*
|
|
1368
|
-
*
|
|
1369
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1370
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1371
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1369
1372
|
*/
|
|
1370
1373
|
async apiKeysRetrieve(id) {
|
|
1371
1374
|
const response = await this.client.request("GET", `/cfg/payments/api-keys/${id}/`);
|
|
1372
1375
|
return response;
|
|
1373
1376
|
}
|
|
1374
1377
|
/**
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1378
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1379
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1380
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1377
1381
|
*/
|
|
1378
1382
|
async apiKeysUpdate(id, data) {
|
|
1379
1383
|
const response = await this.client.request("PUT", `/cfg/payments/api-keys/${id}/`, { body: data });
|
|
1380
1384
|
return response;
|
|
1381
1385
|
}
|
|
1382
1386
|
/**
|
|
1383
|
-
*
|
|
1384
|
-
*
|
|
1387
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1388
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1389
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1385
1390
|
*/
|
|
1386
1391
|
async apiKeysPartialUpdate(id, data) {
|
|
1387
1392
|
const response = await this.client.request("PATCH", `/cfg/payments/api-keys/${id}/`, { body: data });
|
|
1388
1393
|
return response;
|
|
1389
1394
|
}
|
|
1390
1395
|
/**
|
|
1391
|
-
*
|
|
1392
|
-
*
|
|
1396
|
+
* API Key ViewSet: /api/api-keys/ User-specific access to API keys with
|
|
1397
|
+
* filtering and stats. - Regular users: can only see/manage their own API
|
|
1398
|
+
* keys - Staff/Admin: can see/manage all API keys
|
|
1393
1399
|
*/
|
|
1394
1400
|
async apiKeysDestroy(id) {
|
|
1395
1401
|
const response = await this.client.request("DELETE", `/cfg/payments/api-keys/${id}/`);
|
|
@@ -1593,19 +1599,10 @@ var CfgPayments = class {
|
|
|
1593
1599
|
return response;
|
|
1594
1600
|
}
|
|
1595
1601
|
/**
|
|
1596
|
-
* Get exchange rates
|
|
1597
|
-
*
|
|
1598
|
-
* Get current exchange rates for specified currencies
|
|
1602
|
+
* Get current exchange rates.
|
|
1599
1603
|
*/
|
|
1600
|
-
async currenciesRatesRetrieve(
|
|
1601
|
-
const
|
|
1602
|
-
let params;
|
|
1603
|
-
if (isParamsObject) {
|
|
1604
|
-
params = args[0];
|
|
1605
|
-
} else {
|
|
1606
|
-
params = { base_currency: args[0], currencies: args[1] };
|
|
1607
|
-
}
|
|
1608
|
-
const response = await this.client.request("GET", "/cfg/payments/currencies/rates/", { params });
|
|
1604
|
+
async currenciesRatesRetrieve() {
|
|
1605
|
+
const response = await this.client.request("GET", "/cfg/payments/currencies/rates/");
|
|
1609
1606
|
return response;
|
|
1610
1607
|
}
|
|
1611
1608
|
/**
|
|
@@ -1624,19 +1621,10 @@ var CfgPayments = class {
|
|
|
1624
1621
|
return response;
|
|
1625
1622
|
}
|
|
1626
1623
|
/**
|
|
1627
|
-
* Get supported currencies
|
|
1628
|
-
*
|
|
1629
|
-
* Get list of supported currencies from payment providers
|
|
1624
|
+
* Get supported currencies from providers.
|
|
1630
1625
|
*/
|
|
1631
|
-
async currenciesSupportedRetrieve(
|
|
1632
|
-
const
|
|
1633
|
-
let params;
|
|
1634
|
-
if (isParamsObject) {
|
|
1635
|
-
params = args[0];
|
|
1636
|
-
} else {
|
|
1637
|
-
params = { currency_type: args[0], provider: args[1] };
|
|
1638
|
-
}
|
|
1639
|
-
const response = await this.client.request("GET", "/cfg/payments/currencies/supported/", { params });
|
|
1626
|
+
async currenciesSupportedRetrieve() {
|
|
1627
|
+
const response = await this.client.request("GET", "/cfg/payments/currencies/supported/");
|
|
1640
1628
|
return response;
|
|
1641
1629
|
}
|
|
1642
1630
|
/**
|
|
@@ -5745,6 +5733,19 @@ var OPENAPI_SCHEMA = {
|
|
|
5745
5733
|
"type_display": {
|
|
5746
5734
|
"readOnly": true,
|
|
5747
5735
|
"type": "string"
|
|
5736
|
+
},
|
|
5737
|
+
"usd_rate": {
|
|
5738
|
+
"description": "Current USD exchange rate (1 unit = X USD)",
|
|
5739
|
+
"format": "double",
|
|
5740
|
+
"readOnly": true,
|
|
5741
|
+
"type": "number"
|
|
5742
|
+
},
|
|
5743
|
+
"usd_rate_updated_at": {
|
|
5744
|
+
"description": "When USD rate was last updated",
|
|
5745
|
+
"format": "date-time",
|
|
5746
|
+
"nullable": true,
|
|
5747
|
+
"readOnly": true,
|
|
5748
|
+
"type": "string"
|
|
5748
5749
|
}
|
|
5749
5750
|
},
|
|
5750
5751
|
"required": [
|
|
@@ -5754,10 +5755,41 @@ var OPENAPI_SCHEMA = {
|
|
|
5754
5755
|
"is_active",
|
|
5755
5756
|
"name",
|
|
5756
5757
|
"symbol",
|
|
5757
|
-
"type_display"
|
|
5758
|
+
"type_display",
|
|
5759
|
+
"usd_rate",
|
|
5760
|
+
"usd_rate_updated_at"
|
|
5758
5761
|
],
|
|
5759
5762
|
"type": "object"
|
|
5760
5763
|
},
|
|
5764
|
+
"CurrencyRates": {
|
|
5765
|
+
"description": "Currency rates serializer for getting exchange rates.\n\nFetches current exchange rates through CurrencyService.",
|
|
5766
|
+
"properties": {
|
|
5767
|
+
"base_currency": {
|
|
5768
|
+
"default": "USD",
|
|
5769
|
+
"description": "Base currency for rates (default: USD)",
|
|
5770
|
+
"maxLength": 10,
|
|
5771
|
+
"type": "string"
|
|
5772
|
+
},
|
|
5773
|
+
"currencies": {
|
|
5774
|
+
"description": "Specific currencies to get rates for (optional)",
|
|
5775
|
+
"items": {
|
|
5776
|
+
"maxLength": 10,
|
|
5777
|
+
"type": "string"
|
|
5778
|
+
},
|
|
5779
|
+
"type": "array"
|
|
5780
|
+
},
|
|
5781
|
+
"provider": {
|
|
5782
|
+
"default": "nowpayments",
|
|
5783
|
+
"description": "Provider for exchange rates\n\n* `nowpayments` - NowPayments",
|
|
5784
|
+
"enum": [
|
|
5785
|
+
"nowpayments"
|
|
5786
|
+
],
|
|
5787
|
+
"type": "string",
|
|
5788
|
+
"x-spec-enum-id": "47694db6bd068cb3"
|
|
5789
|
+
}
|
|
5790
|
+
},
|
|
5791
|
+
"type": "object"
|
|
5792
|
+
},
|
|
5761
5793
|
"Document": {
|
|
5762
5794
|
"description": "Document response serializer.",
|
|
5763
5795
|
"properties": {
|
|
@@ -7146,6 +7178,7 @@ var OPENAPI_SCHEMA = {
|
|
|
7146
7178
|
"$ref": "#/components/schemas/CurrencyList"
|
|
7147
7179
|
}
|
|
7148
7180
|
],
|
|
7181
|
+
"nullable": true,
|
|
7149
7182
|
"readOnly": true
|
|
7150
7183
|
},
|
|
7151
7184
|
"id": {
|
|
@@ -9994,10 +10027,6 @@ var OPENAPI_SCHEMA = {
|
|
|
9994
10027
|
"nullable": true,
|
|
9995
10028
|
"type": "string"
|
|
9996
10029
|
},
|
|
9997
|
-
"currency": {
|
|
9998
|
-
"description": "Payment currency",
|
|
9999
|
-
"type": "integer"
|
|
10000
|
-
},
|
|
10001
10030
|
"description": {
|
|
10002
10031
|
"description": "Payment description",
|
|
10003
10032
|
"type": "string"
|
|
@@ -10008,11 +10037,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10008
10037
|
"nullable": true,
|
|
10009
10038
|
"type": "string"
|
|
10010
10039
|
},
|
|
10011
|
-
"network": {
|
|
10012
|
-
"description": "Blockchain network (for crypto payments)",
|
|
10013
|
-
"nullable": true,
|
|
10014
|
-
"type": "integer"
|
|
10015
|
-
},
|
|
10016
10040
|
"provider": {
|
|
10017
10041
|
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
10018
10042
|
"enum": [
|
|
@@ -10136,6 +10160,12 @@ var OPENAPI_SCHEMA = {
|
|
|
10136
10160
|
"Payment": {
|
|
10137
10161
|
"description": "Complete payment serializer with full details.\n\nUsed for detail views and updates.",
|
|
10138
10162
|
"properties": {
|
|
10163
|
+
"amount_crypto": {
|
|
10164
|
+
"description": "Calculate crypto amount from USD amount and currency rate.",
|
|
10165
|
+
"format": "double",
|
|
10166
|
+
"readOnly": true,
|
|
10167
|
+
"type": "number"
|
|
10168
|
+
},
|
|
10139
10169
|
"amount_display": {
|
|
10140
10170
|
"description": "Get formatted amount display.",
|
|
10141
10171
|
"readOnly": true,
|
|
@@ -10181,8 +10211,8 @@ var OPENAPI_SCHEMA = {
|
|
|
10181
10211
|
"type": "string"
|
|
10182
10212
|
},
|
|
10183
10213
|
"currency": {
|
|
10184
|
-
"
|
|
10185
|
-
"type": "
|
|
10214
|
+
"readOnly": true,
|
|
10215
|
+
"type": "string"
|
|
10186
10216
|
},
|
|
10187
10217
|
"description": {
|
|
10188
10218
|
"description": "Payment description",
|
|
@@ -10221,9 +10251,9 @@ var OPENAPI_SCHEMA = {
|
|
|
10221
10251
|
"type": "boolean"
|
|
10222
10252
|
},
|
|
10223
10253
|
"network": {
|
|
10224
|
-
"description": "Blockchain network (for crypto payments)",
|
|
10225
10254
|
"nullable": true,
|
|
10226
|
-
"
|
|
10255
|
+
"readOnly": true,
|
|
10256
|
+
"type": "string"
|
|
10227
10257
|
},
|
|
10228
10258
|
"pay_address": {
|
|
10229
10259
|
"description": "Cryptocurrency payment address",
|
|
@@ -10289,6 +10319,7 @@ var OPENAPI_SCHEMA = {
|
|
|
10289
10319
|
}
|
|
10290
10320
|
},
|
|
10291
10321
|
"required": [
|
|
10322
|
+
"amount_crypto",
|
|
10292
10323
|
"amount_display",
|
|
10293
10324
|
"amount_usd",
|
|
10294
10325
|
"completed_at",
|
|
@@ -10300,6 +10331,7 @@ var OPENAPI_SCHEMA = {
|
|
|
10300
10331
|
"is_expired",
|
|
10301
10332
|
"is_failed",
|
|
10302
10333
|
"is_pending",
|
|
10334
|
+
"network",
|
|
10303
10335
|
"pay_address",
|
|
10304
10336
|
"payment_url",
|
|
10305
10337
|
"provider_payment_id",
|
|
@@ -10355,19 +10387,9 @@ var OPENAPI_SCHEMA = {
|
|
|
10355
10387
|
"type": "string"
|
|
10356
10388
|
},
|
|
10357
10389
|
"currency_code": {
|
|
10358
|
-
"description": "Cryptocurrency
|
|
10359
|
-
"
|
|
10360
|
-
|
|
10361
|
-
"ETH",
|
|
10362
|
-
"LTC",
|
|
10363
|
-
"XMR",
|
|
10364
|
-
"USDT",
|
|
10365
|
-
"USDC",
|
|
10366
|
-
"ADA",
|
|
10367
|
-
"DOT"
|
|
10368
|
-
],
|
|
10369
|
-
"type": "string",
|
|
10370
|
-
"x-spec-enum-id": "a26a773d0d4fed5c"
|
|
10390
|
+
"description": "Cryptocurrency code (validated against active currencies)",
|
|
10391
|
+
"maxLength": 10,
|
|
10392
|
+
"type": "string"
|
|
10371
10393
|
},
|
|
10372
10394
|
"description": {
|
|
10373
10395
|
"description": "Payment description",
|
|
@@ -10376,15 +10398,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10376
10398
|
},
|
|
10377
10399
|
"metadata": {
|
|
10378
10400
|
"description": "Additional metadata"
|
|
10379
|
-
},
|
|
10380
|
-
"provider": {
|
|
10381
|
-
"default": "nowpayments",
|
|
10382
|
-
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
10383
|
-
"enum": [
|
|
10384
|
-
"nowpayments"
|
|
10385
|
-
],
|
|
10386
|
-
"type": "string",
|
|
10387
|
-
"x-spec-enum-id": "47694db6bd068cb3"
|
|
10388
10401
|
}
|
|
10389
10402
|
},
|
|
10390
10403
|
"required": [
|
|
@@ -10414,19 +10427,10 @@ var OPENAPI_SCHEMA = {
|
|
|
10414
10427
|
"type": "string"
|
|
10415
10428
|
},
|
|
10416
10429
|
"currency_code": {
|
|
10417
|
-
"description": "Cryptocurrency
|
|
10418
|
-
"
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
"LTC",
|
|
10422
|
-
"XMR",
|
|
10423
|
-
"USDT",
|
|
10424
|
-
"USDC",
|
|
10425
|
-
"ADA",
|
|
10426
|
-
"DOT"
|
|
10427
|
-
],
|
|
10428
|
-
"type": "string",
|
|
10429
|
-
"x-spec-enum-id": "a26a773d0d4fed5c"
|
|
10430
|
+
"description": "Cryptocurrency code (validated against active currencies)",
|
|
10431
|
+
"maxLength": 10,
|
|
10432
|
+
"minLength": 1,
|
|
10433
|
+
"type": "string"
|
|
10430
10434
|
},
|
|
10431
10435
|
"description": {
|
|
10432
10436
|
"description": "Payment description",
|
|
@@ -10435,15 +10439,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10435
10439
|
},
|
|
10436
10440
|
"metadata": {
|
|
10437
10441
|
"description": "Additional metadata"
|
|
10438
|
-
},
|
|
10439
|
-
"provider": {
|
|
10440
|
-
"default": "nowpayments",
|
|
10441
|
-
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
10442
|
-
"enum": [
|
|
10443
|
-
"nowpayments"
|
|
10444
|
-
],
|
|
10445
|
-
"type": "string",
|
|
10446
|
-
"x-spec-enum-id": "47694db6bd068cb3"
|
|
10447
10442
|
}
|
|
10448
10443
|
},
|
|
10449
10444
|
"required": [
|
|
@@ -10638,10 +10633,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10638
10633
|
"nullable": true,
|
|
10639
10634
|
"type": "string"
|
|
10640
10635
|
},
|
|
10641
|
-
"currency": {
|
|
10642
|
-
"description": "Payment currency",
|
|
10643
|
-
"type": "integer"
|
|
10644
|
-
},
|
|
10645
10636
|
"description": {
|
|
10646
10637
|
"description": "Payment description",
|
|
10647
10638
|
"type": "string"
|
|
@@ -10652,11 +10643,6 @@ var OPENAPI_SCHEMA = {
|
|
|
10652
10643
|
"nullable": true,
|
|
10653
10644
|
"type": "string"
|
|
10654
10645
|
},
|
|
10655
|
-
"network": {
|
|
10656
|
-
"description": "Blockchain network (for crypto payments)",
|
|
10657
|
-
"nullable": true,
|
|
10658
|
-
"type": "integer"
|
|
10659
|
-
},
|
|
10660
10646
|
"provider": {
|
|
10661
10647
|
"description": "Payment provider\n\n* `nowpayments` - NowPayments",
|
|
10662
10648
|
"enum": [
|
|
@@ -10682,8 +10668,7 @@ var OPENAPI_SCHEMA = {
|
|
|
10682
10668
|
}
|
|
10683
10669
|
},
|
|
10684
10670
|
"required": [
|
|
10685
|
-
"amount_usd"
|
|
10686
|
-
"currency"
|
|
10671
|
+
"amount_usd"
|
|
10687
10672
|
],
|
|
10688
10673
|
"type": "object"
|
|
10689
10674
|
},
|
|
@@ -10884,6 +10869,7 @@ var OPENAPI_SCHEMA = {
|
|
|
10884
10869
|
"$ref": "#/components/schemas/Network"
|
|
10885
10870
|
}
|
|
10886
10871
|
],
|
|
10872
|
+
"nullable": true,
|
|
10887
10873
|
"readOnly": true
|
|
10888
10874
|
},
|
|
10889
10875
|
"provider": {
|
|
@@ -11857,6 +11843,32 @@ var OPENAPI_SCHEMA = {
|
|
|
11857
11843
|
],
|
|
11858
11844
|
"type": "object"
|
|
11859
11845
|
},
|
|
11846
|
+
"SupportedCurrencies": {
|
|
11847
|
+
"description": "Supported currencies serializer for provider capabilities.\n\nGets supported currencies from providers through CurrencyService.",
|
|
11848
|
+
"properties": {
|
|
11849
|
+
"currency_type": {
|
|
11850
|
+
"default": "all",
|
|
11851
|
+
"description": "Filter by currency type\n\n* `all` - All\n* `crypto` - Cryptocurrency\n* `fiat` - Fiat Currency",
|
|
11852
|
+
"enum": [
|
|
11853
|
+
"all",
|
|
11854
|
+
"crypto",
|
|
11855
|
+
"fiat"
|
|
11856
|
+
],
|
|
11857
|
+
"type": "string",
|
|
11858
|
+
"x-spec-enum-id": "aaea9f89fe6374a5"
|
|
11859
|
+
},
|
|
11860
|
+
"provider": {
|
|
11861
|
+
"default": "nowpayments",
|
|
11862
|
+
"description": "Provider to get supported currencies from\n\n* `nowpayments` - NowPayments",
|
|
11863
|
+
"enum": [
|
|
11864
|
+
"nowpayments"
|
|
11865
|
+
],
|
|
11866
|
+
"type": "string",
|
|
11867
|
+
"x-spec-enum-id": "47694db6bd068cb3"
|
|
11868
|
+
}
|
|
11869
|
+
},
|
|
11870
|
+
"type": "object"
|
|
11871
|
+
},
|
|
11860
11872
|
"SupportedProviders": {
|
|
11861
11873
|
"description": "Serializer for supported providers response.",
|
|
11862
11874
|
"properties": {
|
|
@@ -19414,7 +19426,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19414
19426
|
},
|
|
19415
19427
|
"/cfg/payments/api-keys/": {
|
|
19416
19428
|
"get": {
|
|
19417
|
-
"description": "
|
|
19429
|
+
"description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
|
|
19418
19430
|
"operationId": "cfg_payments_api_keys_list",
|
|
19419
19431
|
"parameters": [
|
|
19420
19432
|
{
|
|
@@ -19494,7 +19506,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19494
19506
|
"x-async-capable": false
|
|
19495
19507
|
},
|
|
19496
19508
|
"post": {
|
|
19497
|
-
"description": "
|
|
19509
|
+
"description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
|
|
19498
19510
|
"operationId": "cfg_payments_api_keys_create",
|
|
19499
19511
|
"requestBody": {
|
|
19500
19512
|
"content": {
|
|
@@ -19846,7 +19858,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19846
19858
|
},
|
|
19847
19859
|
"/cfg/payments/api-keys/{id}/": {
|
|
19848
19860
|
"delete": {
|
|
19849
|
-
"description": "
|
|
19861
|
+
"description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
|
|
19850
19862
|
"operationId": "cfg_payments_api_keys_destroy",
|
|
19851
19863
|
"parameters": [
|
|
19852
19864
|
{
|
|
@@ -19879,7 +19891,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19879
19891
|
"x-async-capable": false
|
|
19880
19892
|
},
|
|
19881
19893
|
"get": {
|
|
19882
|
-
"description": "
|
|
19894
|
+
"description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
|
|
19883
19895
|
"operationId": "cfg_payments_api_keys_retrieve",
|
|
19884
19896
|
"parameters": [
|
|
19885
19897
|
{
|
|
@@ -19919,7 +19931,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19919
19931
|
"x-async-capable": false
|
|
19920
19932
|
},
|
|
19921
19933
|
"patch": {
|
|
19922
|
-
"description": "
|
|
19934
|
+
"description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
|
|
19923
19935
|
"operationId": "cfg_payments_api_keys_partial_update",
|
|
19924
19936
|
"parameters": [
|
|
19925
19937
|
{
|
|
@@ -19978,7 +19990,7 @@ var OPENAPI_SCHEMA = {
|
|
|
19978
19990
|
"x-async-capable": false
|
|
19979
19991
|
},
|
|
19980
19992
|
"put": {
|
|
19981
|
-
"description": "
|
|
19993
|
+
"description": "API Key ViewSet: /api/api-keys/\n\nUser-specific access to API keys with filtering and stats.\n- Regular users: can only see/manage their own API keys\n- Staff/Admin: can see/manage all API keys",
|
|
19982
19994
|
"operationId": "cfg_payments_api_keys_update",
|
|
19983
19995
|
"parameters": [
|
|
19984
19996
|
{
|
|
@@ -20554,25 +20566,136 @@ var OPENAPI_SCHEMA = {
|
|
|
20554
20566
|
},
|
|
20555
20567
|
"/cfg/payments/currencies/rates/": {
|
|
20556
20568
|
"get": {
|
|
20557
|
-
"description": "Get current exchange rates
|
|
20569
|
+
"description": "Get current exchange rates.",
|
|
20558
20570
|
"operationId": "cfg_payments_currencies_rates_retrieve",
|
|
20559
|
-
"
|
|
20571
|
+
"responses": {
|
|
20572
|
+
"200": {
|
|
20573
|
+
"content": {
|
|
20574
|
+
"application/json": {
|
|
20575
|
+
"schema": {
|
|
20576
|
+
"$ref": "#/components/schemas/CurrencyRates"
|
|
20577
|
+
}
|
|
20578
|
+
}
|
|
20579
|
+
},
|
|
20580
|
+
"description": ""
|
|
20581
|
+
}
|
|
20582
|
+
},
|
|
20583
|
+
"security": [
|
|
20560
20584
|
{
|
|
20561
|
-
"
|
|
20562
|
-
"in": "query",
|
|
20563
|
-
"name": "base_currency",
|
|
20564
|
-
"required": true,
|
|
20565
|
-
"schema": {
|
|
20566
|
-
"type": "string"
|
|
20567
|
-
}
|
|
20585
|
+
"jwtAuth": []
|
|
20568
20586
|
},
|
|
20569
20587
|
{
|
|
20570
|
-
"
|
|
20571
|
-
|
|
20572
|
-
|
|
20588
|
+
"cookieAuth": []
|
|
20589
|
+
}
|
|
20590
|
+
],
|
|
20591
|
+
"tags": [
|
|
20592
|
+
"payments"
|
|
20593
|
+
],
|
|
20594
|
+
"x-async-capable": false
|
|
20595
|
+
}
|
|
20596
|
+
},
|
|
20597
|
+
"/cfg/payments/currencies/stable/": {
|
|
20598
|
+
"get": {
|
|
20599
|
+
"description": "Get only stablecoins.\n\nGET /api/currencies/stable/",
|
|
20600
|
+
"operationId": "cfg_payments_currencies_stable_retrieve",
|
|
20601
|
+
"responses": {
|
|
20602
|
+
"200": {
|
|
20603
|
+
"content": {
|
|
20604
|
+
"application/json": {
|
|
20605
|
+
"schema": {
|
|
20606
|
+
"$ref": "#/components/schemas/Currency"
|
|
20607
|
+
}
|
|
20608
|
+
}
|
|
20609
|
+
},
|
|
20610
|
+
"description": ""
|
|
20611
|
+
}
|
|
20612
|
+
},
|
|
20613
|
+
"security": [
|
|
20614
|
+
{
|
|
20615
|
+
"jwtAuth": []
|
|
20616
|
+
},
|
|
20617
|
+
{
|
|
20618
|
+
"cookieAuth": []
|
|
20619
|
+
}
|
|
20620
|
+
],
|
|
20621
|
+
"tags": [
|
|
20622
|
+
"payments"
|
|
20623
|
+
],
|
|
20624
|
+
"x-async-capable": false
|
|
20625
|
+
}
|
|
20626
|
+
},
|
|
20627
|
+
"/cfg/payments/currencies/stats/": {
|
|
20628
|
+
"get": {
|
|
20629
|
+
"description": "Get statistics for the current queryset.\n\nReturns counts, aggregates, and breakdowns.",
|
|
20630
|
+
"operationId": "cfg_payments_currencies_stats_retrieve",
|
|
20631
|
+
"responses": {
|
|
20632
|
+
"200": {
|
|
20633
|
+
"content": {
|
|
20634
|
+
"application/json": {
|
|
20635
|
+
"schema": {
|
|
20636
|
+
"$ref": "#/components/schemas/Currency"
|
|
20637
|
+
}
|
|
20638
|
+
}
|
|
20639
|
+
},
|
|
20640
|
+
"description": ""
|
|
20641
|
+
}
|
|
20642
|
+
},
|
|
20643
|
+
"security": [
|
|
20644
|
+
{
|
|
20645
|
+
"jwtAuth": []
|
|
20646
|
+
},
|
|
20647
|
+
{
|
|
20648
|
+
"cookieAuth": []
|
|
20649
|
+
}
|
|
20650
|
+
],
|
|
20651
|
+
"tags": [
|
|
20652
|
+
"payments"
|
|
20653
|
+
],
|
|
20654
|
+
"x-async-capable": false
|
|
20655
|
+
}
|
|
20656
|
+
},
|
|
20657
|
+
"/cfg/payments/currencies/supported/": {
|
|
20658
|
+
"get": {
|
|
20659
|
+
"description": "Get supported currencies from providers.",
|
|
20660
|
+
"operationId": "cfg_payments_currencies_supported_retrieve",
|
|
20661
|
+
"responses": {
|
|
20662
|
+
"200": {
|
|
20663
|
+
"content": {
|
|
20664
|
+
"application/json": {
|
|
20665
|
+
"schema": {
|
|
20666
|
+
"$ref": "#/components/schemas/SupportedCurrencies"
|
|
20667
|
+
}
|
|
20668
|
+
}
|
|
20669
|
+
},
|
|
20670
|
+
"description": ""
|
|
20671
|
+
}
|
|
20672
|
+
},
|
|
20673
|
+
"security": [
|
|
20674
|
+
{
|
|
20675
|
+
"jwtAuth": []
|
|
20676
|
+
},
|
|
20677
|
+
{
|
|
20678
|
+
"cookieAuth": []
|
|
20679
|
+
}
|
|
20680
|
+
],
|
|
20681
|
+
"tags": [
|
|
20682
|
+
"payments"
|
|
20683
|
+
],
|
|
20684
|
+
"x-async-capable": false
|
|
20685
|
+
}
|
|
20686
|
+
},
|
|
20687
|
+
"/cfg/payments/currencies/{id}/": {
|
|
20688
|
+
"get": {
|
|
20689
|
+
"description": "Currency ViewSet: /api/currencies/\n\nRead-only access to currency information with conversion capabilities.",
|
|
20690
|
+
"operationId": "cfg_payments_currencies_retrieve",
|
|
20691
|
+
"parameters": [
|
|
20692
|
+
{
|
|
20693
|
+
"description": "A unique integer value identifying this Currency.",
|
|
20694
|
+
"in": "path",
|
|
20695
|
+
"name": "id",
|
|
20573
20696
|
"required": true,
|
|
20574
20697
|
"schema": {
|
|
20575
|
-
"type": "
|
|
20698
|
+
"type": "integer"
|
|
20576
20699
|
}
|
|
20577
20700
|
}
|
|
20578
20701
|
],
|
|
@@ -20596,183 +20719,27 @@ var OPENAPI_SCHEMA = {
|
|
|
20596
20719
|
"cookieAuth": []
|
|
20597
20720
|
}
|
|
20598
20721
|
],
|
|
20599
|
-
"summary": "Get exchange rates",
|
|
20600
20722
|
"tags": [
|
|
20601
20723
|
"payments"
|
|
20602
20724
|
],
|
|
20603
20725
|
"x-async-capable": false
|
|
20604
20726
|
}
|
|
20605
20727
|
},
|
|
20606
|
-
"/cfg/payments/currencies/
|
|
20728
|
+
"/cfg/payments/currencies/{id}/networks/": {
|
|
20607
20729
|
"get": {
|
|
20608
|
-
"description": "Get
|
|
20609
|
-
"operationId": "
|
|
20610
|
-
"
|
|
20611
|
-
|
|
20612
|
-
"
|
|
20613
|
-
|
|
20614
|
-
|
|
20615
|
-
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
}
|
|
20619
|
-
|
|
20620
|
-
|
|
20621
|
-
},
|
|
20622
|
-
"security": [
|
|
20623
|
-
{
|
|
20624
|
-
"jwtAuth": []
|
|
20625
|
-
},
|
|
20626
|
-
{
|
|
20627
|
-
"cookieAuth": []
|
|
20628
|
-
}
|
|
20629
|
-
],
|
|
20630
|
-
"tags": [
|
|
20631
|
-
"payments"
|
|
20632
|
-
],
|
|
20633
|
-
"x-async-capable": false
|
|
20634
|
-
}
|
|
20635
|
-
},
|
|
20636
|
-
"/cfg/payments/currencies/stats/": {
|
|
20637
|
-
"get": {
|
|
20638
|
-
"description": "Get statistics for the current queryset.\n\nReturns counts, aggregates, and breakdowns.",
|
|
20639
|
-
"operationId": "cfg_payments_currencies_stats_retrieve",
|
|
20640
|
-
"responses": {
|
|
20641
|
-
"200": {
|
|
20642
|
-
"content": {
|
|
20643
|
-
"application/json": {
|
|
20644
|
-
"schema": {
|
|
20645
|
-
"$ref": "#/components/schemas/Currency"
|
|
20646
|
-
}
|
|
20647
|
-
}
|
|
20648
|
-
},
|
|
20649
|
-
"description": ""
|
|
20650
|
-
}
|
|
20651
|
-
},
|
|
20652
|
-
"security": [
|
|
20653
|
-
{
|
|
20654
|
-
"jwtAuth": []
|
|
20655
|
-
},
|
|
20656
|
-
{
|
|
20657
|
-
"cookieAuth": []
|
|
20658
|
-
}
|
|
20659
|
-
],
|
|
20660
|
-
"tags": [
|
|
20661
|
-
"payments"
|
|
20662
|
-
],
|
|
20663
|
-
"x-async-capable": false
|
|
20664
|
-
}
|
|
20665
|
-
},
|
|
20666
|
-
"/cfg/payments/currencies/supported/": {
|
|
20667
|
-
"get": {
|
|
20668
|
-
"description": "Get list of supported currencies from payment providers",
|
|
20669
|
-
"operationId": "cfg_payments_currencies_supported_retrieve",
|
|
20670
|
-
"parameters": [
|
|
20671
|
-
{
|
|
20672
|
-
"description": "Currency type filter: crypto, fiat, or stablecoin",
|
|
20673
|
-
"in": "query",
|
|
20674
|
-
"name": "currency_type",
|
|
20675
|
-
"schema": {
|
|
20676
|
-
"enum": [
|
|
20677
|
-
"crypto",
|
|
20678
|
-
"fiat",
|
|
20679
|
-
"stablecoin"
|
|
20680
|
-
],
|
|
20681
|
-
"type": "string"
|
|
20682
|
-
}
|
|
20683
|
-
},
|
|
20684
|
-
{
|
|
20685
|
-
"description": "Payment provider name (e.g., nowpayments)",
|
|
20686
|
-
"in": "query",
|
|
20687
|
-
"name": "provider",
|
|
20688
|
-
"schema": {
|
|
20689
|
-
"type": "string"
|
|
20690
|
-
}
|
|
20691
|
-
}
|
|
20692
|
-
],
|
|
20693
|
-
"responses": {
|
|
20694
|
-
"200": {
|
|
20695
|
-
"content": {
|
|
20696
|
-
"application/json": {
|
|
20697
|
-
"schema": {
|
|
20698
|
-
"$ref": "#/components/schemas/Currency"
|
|
20699
|
-
}
|
|
20700
|
-
}
|
|
20701
|
-
},
|
|
20702
|
-
"description": ""
|
|
20703
|
-
}
|
|
20704
|
-
},
|
|
20705
|
-
"security": [
|
|
20706
|
-
{
|
|
20707
|
-
"jwtAuth": []
|
|
20708
|
-
},
|
|
20709
|
-
{
|
|
20710
|
-
"cookieAuth": []
|
|
20711
|
-
}
|
|
20712
|
-
],
|
|
20713
|
-
"summary": "Get supported currencies",
|
|
20714
|
-
"tags": [
|
|
20715
|
-
"payments"
|
|
20716
|
-
],
|
|
20717
|
-
"x-async-capable": false
|
|
20718
|
-
}
|
|
20719
|
-
},
|
|
20720
|
-
"/cfg/payments/currencies/{id}/": {
|
|
20721
|
-
"get": {
|
|
20722
|
-
"description": "Currency ViewSet: /api/currencies/\n\nRead-only access to currency information with conversion capabilities.",
|
|
20723
|
-
"operationId": "cfg_payments_currencies_retrieve",
|
|
20724
|
-
"parameters": [
|
|
20725
|
-
{
|
|
20726
|
-
"description": "A unique integer value identifying this Currency.",
|
|
20727
|
-
"in": "path",
|
|
20728
|
-
"name": "id",
|
|
20729
|
-
"required": true,
|
|
20730
|
-
"schema": {
|
|
20731
|
-
"type": "integer"
|
|
20732
|
-
}
|
|
20733
|
-
}
|
|
20734
|
-
],
|
|
20735
|
-
"responses": {
|
|
20736
|
-
"200": {
|
|
20737
|
-
"content": {
|
|
20738
|
-
"application/json": {
|
|
20739
|
-
"schema": {
|
|
20740
|
-
"$ref": "#/components/schemas/Currency"
|
|
20741
|
-
}
|
|
20742
|
-
}
|
|
20743
|
-
},
|
|
20744
|
-
"description": ""
|
|
20745
|
-
}
|
|
20746
|
-
},
|
|
20747
|
-
"security": [
|
|
20748
|
-
{
|
|
20749
|
-
"jwtAuth": []
|
|
20750
|
-
},
|
|
20751
|
-
{
|
|
20752
|
-
"cookieAuth": []
|
|
20753
|
-
}
|
|
20754
|
-
],
|
|
20755
|
-
"tags": [
|
|
20756
|
-
"payments"
|
|
20757
|
-
],
|
|
20758
|
-
"x-async-capable": false
|
|
20759
|
-
}
|
|
20760
|
-
},
|
|
20761
|
-
"/cfg/payments/currencies/{id}/networks/": {
|
|
20762
|
-
"get": {
|
|
20763
|
-
"description": "Get networks for specific currency.\n\nGET /api/currencies/{id}/networks/",
|
|
20764
|
-
"operationId": "cfg_payments_currencies_networks_retrieve",
|
|
20765
|
-
"parameters": [
|
|
20766
|
-
{
|
|
20767
|
-
"description": "A unique integer value identifying this Currency.",
|
|
20768
|
-
"in": "path",
|
|
20769
|
-
"name": "id",
|
|
20770
|
-
"required": true,
|
|
20771
|
-
"schema": {
|
|
20772
|
-
"type": "integer"
|
|
20773
|
-
}
|
|
20774
|
-
}
|
|
20775
|
-
],
|
|
20730
|
+
"description": "Get networks for specific currency.\n\nGET /api/currencies/{id}/networks/",
|
|
20731
|
+
"operationId": "cfg_payments_currencies_networks_retrieve",
|
|
20732
|
+
"parameters": [
|
|
20733
|
+
{
|
|
20734
|
+
"description": "A unique integer value identifying this Currency.",
|
|
20735
|
+
"in": "path",
|
|
20736
|
+
"name": "id",
|
|
20737
|
+
"required": true,
|
|
20738
|
+
"schema": {
|
|
20739
|
+
"type": "integer"
|
|
20740
|
+
}
|
|
20741
|
+
}
|
|
20742
|
+
],
|
|
20776
20743
|
"responses": {
|
|
20777
20744
|
"200": {
|
|
20778
20745
|
"content": {
|
|
@@ -27701,6 +27668,7 @@ __export(enums_exports, {
|
|
|
27701
27668
|
ChatMessageRole: () => ChatMessageRole,
|
|
27702
27669
|
CurrencyCurrencyType: () => CurrencyCurrencyType,
|
|
27703
27670
|
CurrencyListCurrencyType: () => CurrencyListCurrencyType,
|
|
27671
|
+
CurrencyRatesProvider: () => CurrencyRatesProvider,
|
|
27704
27672
|
DocumentArchiveArchiveType: () => DocumentArchiveArchiveType,
|
|
27705
27673
|
DocumentArchiveDetailArchiveType: () => DocumentArchiveDetailArchiveType,
|
|
27706
27674
|
DocumentArchiveDetailProcessingStatus: () => DocumentArchiveDetailProcessingStatus,
|
|
@@ -27721,10 +27689,6 @@ __export(enums_exports, {
|
|
|
27721
27689
|
PatchedSubscriptionRequestStatus: () => PatchedSubscriptionRequestStatus,
|
|
27722
27690
|
PatchedSubscriptionRequestTier: () => PatchedSubscriptionRequestTier,
|
|
27723
27691
|
PatchedTicketRequestStatus: () => PatchedTicketRequestStatus,
|
|
27724
|
-
PaymentCreateCurrencyCode: () => PaymentCreateCurrencyCode,
|
|
27725
|
-
PaymentCreateProvider: () => PaymentCreateProvider,
|
|
27726
|
-
PaymentCreateRequestCurrencyCode: () => PaymentCreateRequestCurrencyCode,
|
|
27727
|
-
PaymentCreateRequestProvider: () => PaymentCreateRequestProvider,
|
|
27728
27692
|
PaymentListProvider: () => PaymentListProvider,
|
|
27729
27693
|
PaymentListStatus: () => PaymentListStatus,
|
|
27730
27694
|
PaymentProvider: () => PaymentProvider,
|
|
@@ -27738,6 +27702,8 @@ __export(enums_exports, {
|
|
|
27738
27702
|
SubscriptionRequestTier: () => SubscriptionRequestTier,
|
|
27739
27703
|
SubscriptionStatus: () => SubscriptionStatus,
|
|
27740
27704
|
SubscriptionTier: () => SubscriptionTier,
|
|
27705
|
+
SupportedCurrenciesCurrencyType: () => SupportedCurrenciesCurrencyType,
|
|
27706
|
+
SupportedCurrenciesProvider: () => SupportedCurrenciesProvider,
|
|
27741
27707
|
TicketRequestStatus: () => TicketRequestStatus,
|
|
27742
27708
|
TicketStatus: () => TicketStatus,
|
|
27743
27709
|
TransactionTransactionType: () => TransactionTransactionType,
|
|
@@ -27847,11 +27813,15 @@ var CurrencyListCurrencyType = /* @__PURE__ */ ((CurrencyListCurrencyType2) => {
|
|
|
27847
27813
|
CurrencyListCurrencyType2["CRYPTO"] = "crypto";
|
|
27848
27814
|
return CurrencyListCurrencyType2;
|
|
27849
27815
|
})(CurrencyListCurrencyType || {});
|
|
27816
|
+
var CurrencyRatesProvider = /* @__PURE__ */ ((CurrencyRatesProvider2) => {
|
|
27817
|
+
CurrencyRatesProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
27818
|
+
return CurrencyRatesProvider2;
|
|
27819
|
+
})(CurrencyRatesProvider || {});
|
|
27850
27820
|
var DocumentArchiveArchiveType = /* @__PURE__ */ ((DocumentArchiveArchiveType2) => {
|
|
27851
27821
|
DocumentArchiveArchiveType2["ZIP"] = "zip";
|
|
27852
27822
|
DocumentArchiveArchiveType2["TAR"] = "tar";
|
|
27853
|
-
DocumentArchiveArchiveType2["
|
|
27854
|
-
DocumentArchiveArchiveType2["
|
|
27823
|
+
DocumentArchiveArchiveType2["TAR_DOT_GZ"] = "tar.gz";
|
|
27824
|
+
DocumentArchiveArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
|
|
27855
27825
|
return DocumentArchiveArchiveType2;
|
|
27856
27826
|
})(DocumentArchiveArchiveType || {});
|
|
27857
27827
|
var DocumentArchiveProcessingStatus = /* @__PURE__ */ ((DocumentArchiveProcessingStatus2) => {
|
|
@@ -27865,8 +27835,8 @@ var DocumentArchiveProcessingStatus = /* @__PURE__ */ ((DocumentArchiveProcessin
|
|
|
27865
27835
|
var DocumentArchiveDetailArchiveType = /* @__PURE__ */ ((DocumentArchiveDetailArchiveType2) => {
|
|
27866
27836
|
DocumentArchiveDetailArchiveType2["ZIP"] = "zip";
|
|
27867
27837
|
DocumentArchiveDetailArchiveType2["TAR"] = "tar";
|
|
27868
|
-
DocumentArchiveDetailArchiveType2["
|
|
27869
|
-
DocumentArchiveDetailArchiveType2["
|
|
27838
|
+
DocumentArchiveDetailArchiveType2["TAR_DOT_GZ"] = "tar.gz";
|
|
27839
|
+
DocumentArchiveDetailArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
|
|
27870
27840
|
return DocumentArchiveDetailArchiveType2;
|
|
27871
27841
|
})(DocumentArchiveDetailArchiveType || {});
|
|
27872
27842
|
var DocumentArchiveDetailProcessingStatus = /* @__PURE__ */ ((DocumentArchiveDetailProcessingStatus2) => {
|
|
@@ -27880,8 +27850,8 @@ var DocumentArchiveDetailProcessingStatus = /* @__PURE__ */ ((DocumentArchiveDet
|
|
|
27880
27850
|
var DocumentArchiveListArchiveType = /* @__PURE__ */ ((DocumentArchiveListArchiveType2) => {
|
|
27881
27851
|
DocumentArchiveListArchiveType2["ZIP"] = "zip";
|
|
27882
27852
|
DocumentArchiveListArchiveType2["TAR"] = "tar";
|
|
27883
|
-
DocumentArchiveListArchiveType2["
|
|
27884
|
-
DocumentArchiveListArchiveType2["
|
|
27853
|
+
DocumentArchiveListArchiveType2["TAR_DOT_GZ"] = "tar.gz";
|
|
27854
|
+
DocumentArchiveListArchiveType2["TAR_DOT_BZ2"] = "tar.bz2";
|
|
27885
27855
|
return DocumentArchiveListArchiveType2;
|
|
27886
27856
|
})(DocumentArchiveListArchiveType || {});
|
|
27887
27857
|
var DocumentArchiveListProcessingStatus = /* @__PURE__ */ ((DocumentArchiveListProcessingStatus2) => {
|
|
@@ -28012,36 +27982,6 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
|
|
28012
27982
|
PaymentStatus2["REFUNDED"] = "refunded";
|
|
28013
27983
|
return PaymentStatus2;
|
|
28014
27984
|
})(PaymentStatus || {});
|
|
28015
|
-
var PaymentCreateCurrencyCode = /* @__PURE__ */ ((PaymentCreateCurrencyCode2) => {
|
|
28016
|
-
PaymentCreateCurrencyCode2["BTC"] = "BTC";
|
|
28017
|
-
PaymentCreateCurrencyCode2["ETH"] = "ETH";
|
|
28018
|
-
PaymentCreateCurrencyCode2["LTC"] = "LTC";
|
|
28019
|
-
PaymentCreateCurrencyCode2["XMR"] = "XMR";
|
|
28020
|
-
PaymentCreateCurrencyCode2["USDT"] = "USDT";
|
|
28021
|
-
PaymentCreateCurrencyCode2["USDC"] = "USDC";
|
|
28022
|
-
PaymentCreateCurrencyCode2["ADA"] = "ADA";
|
|
28023
|
-
PaymentCreateCurrencyCode2["DOT"] = "DOT";
|
|
28024
|
-
return PaymentCreateCurrencyCode2;
|
|
28025
|
-
})(PaymentCreateCurrencyCode || {});
|
|
28026
|
-
var PaymentCreateProvider = /* @__PURE__ */ ((PaymentCreateProvider2) => {
|
|
28027
|
-
PaymentCreateProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28028
|
-
return PaymentCreateProvider2;
|
|
28029
|
-
})(PaymentCreateProvider || {});
|
|
28030
|
-
var PaymentCreateRequestCurrencyCode = /* @__PURE__ */ ((PaymentCreateRequestCurrencyCode2) => {
|
|
28031
|
-
PaymentCreateRequestCurrencyCode2["BTC"] = "BTC";
|
|
28032
|
-
PaymentCreateRequestCurrencyCode2["ETH"] = "ETH";
|
|
28033
|
-
PaymentCreateRequestCurrencyCode2["LTC"] = "LTC";
|
|
28034
|
-
PaymentCreateRequestCurrencyCode2["XMR"] = "XMR";
|
|
28035
|
-
PaymentCreateRequestCurrencyCode2["USDT"] = "USDT";
|
|
28036
|
-
PaymentCreateRequestCurrencyCode2["USDC"] = "USDC";
|
|
28037
|
-
PaymentCreateRequestCurrencyCode2["ADA"] = "ADA";
|
|
28038
|
-
PaymentCreateRequestCurrencyCode2["DOT"] = "DOT";
|
|
28039
|
-
return PaymentCreateRequestCurrencyCode2;
|
|
28040
|
-
})(PaymentCreateRequestCurrencyCode || {});
|
|
28041
|
-
var PaymentCreateRequestProvider = /* @__PURE__ */ ((PaymentCreateRequestProvider2) => {
|
|
28042
|
-
PaymentCreateRequestProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28043
|
-
return PaymentCreateRequestProvider2;
|
|
28044
|
-
})(PaymentCreateRequestProvider || {});
|
|
28045
27985
|
var PaymentListProvider = /* @__PURE__ */ ((PaymentListProvider2) => {
|
|
28046
27986
|
PaymentListProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28047
27987
|
return PaymentListProvider2;
|
|
@@ -28126,6 +28066,16 @@ var SubscriptionRequestTier = /* @__PURE__ */ ((SubscriptionRequestTier2) => {
|
|
|
28126
28066
|
SubscriptionRequestTier2["ENTERPRISE"] = "enterprise";
|
|
28127
28067
|
return SubscriptionRequestTier2;
|
|
28128
28068
|
})(SubscriptionRequestTier || {});
|
|
28069
|
+
var SupportedCurrenciesProvider = /* @__PURE__ */ ((SupportedCurrenciesProvider2) => {
|
|
28070
|
+
SupportedCurrenciesProvider2["NOWPAYMENTS"] = "nowpayments";
|
|
28071
|
+
return SupportedCurrenciesProvider2;
|
|
28072
|
+
})(SupportedCurrenciesProvider || {});
|
|
28073
|
+
var SupportedCurrenciesCurrencyType = /* @__PURE__ */ ((SupportedCurrenciesCurrencyType2) => {
|
|
28074
|
+
SupportedCurrenciesCurrencyType2["ALL"] = "all";
|
|
28075
|
+
SupportedCurrenciesCurrencyType2["CRYPTO"] = "crypto";
|
|
28076
|
+
SupportedCurrenciesCurrencyType2["FIAT"] = "fiat";
|
|
28077
|
+
return SupportedCurrenciesCurrencyType2;
|
|
28078
|
+
})(SupportedCurrenciesCurrencyType || {});
|
|
28129
28079
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
28130
28080
|
TicketStatus2["OPEN"] = "open";
|
|
28131
28081
|
TicketStatus2["WAITING_FOR_USER"] = "waiting_for_user";
|
|
@@ -28229,6 +28179,7 @@ __export(schemas_exports, {
|
|
|
28229
28179
|
ChunkRevectorizationRequestRequestSchema: () => ChunkRevectorizationRequestRequestSchema,
|
|
28230
28180
|
CurrencyAnalyticsItemSchema: () => CurrencyAnalyticsItemSchema,
|
|
28231
28181
|
CurrencyListSchema: () => CurrencyListSchema,
|
|
28182
|
+
CurrencyRatesSchema: () => CurrencyRatesSchema,
|
|
28232
28183
|
CurrencySchema: () => CurrencySchema,
|
|
28233
28184
|
DocumentArchiveDetailSchema: () => DocumentArchiveDetailSchema,
|
|
28234
28185
|
DocumentArchiveListSchema: () => DocumentArchiveListSchema,
|
|
@@ -28347,6 +28298,7 @@ __export(schemas_exports, {
|
|
|
28347
28298
|
SubscriptionRequestSchema: () => SubscriptionRequestSchema,
|
|
28348
28299
|
SubscriptionSchema: () => SubscriptionSchema,
|
|
28349
28300
|
SuccessResponseSchema: () => SuccessResponseSchema,
|
|
28301
|
+
SupportedCurrenciesSchema: () => SupportedCurrenciesSchema,
|
|
28350
28302
|
SupportedProvidersSchema: () => SupportedProvidersSchema,
|
|
28351
28303
|
TariffSchema: () => TariffSchema,
|
|
28352
28304
|
TaskStatisticsSchema: () => TaskStatisticsSchema,
|
|
@@ -28450,7 +28402,7 @@ import { z as z8 } from "zod";
|
|
|
28450
28402
|
var APIKeyValidationResponseSchema = z8.object({
|
|
28451
28403
|
success: z8.boolean(),
|
|
28452
28404
|
valid: z8.boolean(),
|
|
28453
|
-
api_key: APIKeyDetailSchema,
|
|
28405
|
+
api_key: APIKeyDetailSchema.nullable(),
|
|
28454
28406
|
message: z8.string(),
|
|
28455
28407
|
error: z8.string().optional(),
|
|
28456
28408
|
error_code: z8.string().optional()
|
|
@@ -28538,7 +28490,7 @@ var AdminPaymentDetailSchema = z15.object({
|
|
|
28538
28490
|
provider_display: z15.string(),
|
|
28539
28491
|
status: z15.string(),
|
|
28540
28492
|
status_display: z15.string(),
|
|
28541
|
-
pay_amount: z15.string()
|
|
28493
|
+
pay_amount: z15.string(),
|
|
28542
28494
|
pay_address: z15.string(),
|
|
28543
28495
|
payment_url: z15.url(),
|
|
28544
28496
|
transaction_hash: z15.string(),
|
|
@@ -28570,7 +28522,7 @@ var AdminPaymentListSchema = z16.object({
|
|
|
28570
28522
|
provider_display: z16.string(),
|
|
28571
28523
|
status: z16.string(),
|
|
28572
28524
|
status_display: z16.string(),
|
|
28573
|
-
pay_amount: z16.string()
|
|
28525
|
+
pay_amount: z16.string(),
|
|
28574
28526
|
pay_address: z16.string(),
|
|
28575
28527
|
transaction_hash: z16.string(),
|
|
28576
28528
|
created_at: z16.iso.datetime(),
|
|
@@ -28963,72 +28915,53 @@ var CurrencyListSchema = z48.object({
|
|
|
28963
28915
|
symbol: z48.string(),
|
|
28964
28916
|
currency_type: z48.nativeEnum(CurrencyListCurrencyType),
|
|
28965
28917
|
type_display: z48.string(),
|
|
28966
|
-
is_active: z48.boolean()
|
|
28918
|
+
is_active: z48.boolean(),
|
|
28919
|
+
usd_rate: z48.number(),
|
|
28920
|
+
usd_rate_updated_at: z48.iso.datetime().nullable()
|
|
28967
28921
|
});
|
|
28968
28922
|
|
|
28969
|
-
// src/cfg/generated/_utils/schemas/
|
|
28923
|
+
// src/cfg/generated/_utils/schemas/CurrencyRates.schema.ts
|
|
28970
28924
|
import { z as z49 } from "zod";
|
|
28971
|
-
var
|
|
28972
|
-
|
|
28973
|
-
|
|
28974
|
-
|
|
28975
|
-
file_size: z49.int().min(0).max(9223372036854776e3).optional(),
|
|
28976
|
-
processing_status: z49.string(),
|
|
28977
|
-
chunks_count: z49.int(),
|
|
28978
|
-
total_tokens: z49.int(),
|
|
28979
|
-
total_cost_usd: z49.number(),
|
|
28980
|
-
created_at: z49.iso.datetime(),
|
|
28981
|
-
updated_at: z49.iso.datetime(),
|
|
28982
|
-
processing_started_at: z49.iso.datetime(),
|
|
28983
|
-
processing_completed_at: z49.iso.datetime(),
|
|
28984
|
-
processing_error: z49.string(),
|
|
28985
|
-
metadata: z49.string().nullable().optional()
|
|
28925
|
+
var CurrencyRatesSchema = z49.object({
|
|
28926
|
+
base_currency: z49.string().max(10).optional(),
|
|
28927
|
+
currencies: z49.array(z49.string().max(10)).optional(),
|
|
28928
|
+
provider: z49.nativeEnum(CurrencyRatesProvider).optional()
|
|
28986
28929
|
});
|
|
28987
28930
|
|
|
28988
|
-
// src/cfg/generated/_utils/schemas/
|
|
28989
|
-
import { z as z51 } from "zod";
|
|
28990
|
-
|
|
28991
|
-
// src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
|
|
28931
|
+
// src/cfg/generated/_utils/schemas/Document.schema.ts
|
|
28992
28932
|
import { z as z50 } from "zod";
|
|
28993
|
-
var
|
|
28933
|
+
var DocumentSchema = z50.object({
|
|
28994
28934
|
id: z50.uuid(),
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28935
|
+
title: z50.string().max(512),
|
|
28936
|
+
file_type: z50.string().max(100).optional(),
|
|
28937
|
+
file_size: z50.int().min(0).max(9223372036854776e3).optional(),
|
|
28938
|
+
processing_status: z50.string(),
|
|
28939
|
+
chunks_count: z50.int(),
|
|
28940
|
+
total_tokens: z50.int(),
|
|
28941
|
+
total_cost_usd: z50.number(),
|
|
28942
|
+
created_at: z50.iso.datetime(),
|
|
28943
|
+
updated_at: z50.iso.datetime(),
|
|
28944
|
+
processing_started_at: z50.iso.datetime(),
|
|
28945
|
+
processing_completed_at: z50.iso.datetime(),
|
|
28946
|
+
processing_error: z50.string(),
|
|
28947
|
+
metadata: z50.string().nullable().optional()
|
|
28999
28948
|
});
|
|
29000
28949
|
|
|
29001
28950
|
// src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
|
|
29002
|
-
|
|
28951
|
+
import { z as z52 } from "zod";
|
|
28952
|
+
|
|
28953
|
+
// src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
|
|
28954
|
+
import { z as z51 } from "zod";
|
|
28955
|
+
var DocumentCategorySchema = z51.object({
|
|
29003
28956
|
id: z51.uuid(),
|
|
29004
|
-
|
|
28957
|
+
name: z51.string().max(255),
|
|
29005
28958
|
description: z51.string().optional(),
|
|
29006
|
-
categories: z51.array(DocumentCategorySchema),
|
|
29007
28959
|
is_public: z51.boolean().optional(),
|
|
29008
|
-
|
|
29009
|
-
original_filename: z51.string(),
|
|
29010
|
-
file_size: z51.int(),
|
|
29011
|
-
archive_type: z51.nativeEnum(DocumentArchiveArchiveType),
|
|
29012
|
-
processing_status: z51.nativeEnum(DocumentArchiveProcessingStatus),
|
|
29013
|
-
processed_at: z51.iso.datetime().nullable(),
|
|
29014
|
-
processing_duration_ms: z51.int(),
|
|
29015
|
-
processing_error: z51.string(),
|
|
29016
|
-
total_items: z51.int(),
|
|
29017
|
-
processed_items: z51.int(),
|
|
29018
|
-
total_chunks: z51.int(),
|
|
29019
|
-
vectorized_chunks: z51.int(),
|
|
29020
|
-
total_tokens: z51.int(),
|
|
29021
|
-
total_cost_usd: z51.number(),
|
|
29022
|
-
processing_progress: z51.number(),
|
|
29023
|
-
vectorization_progress: z51.number(),
|
|
29024
|
-
is_processed: z51.boolean(),
|
|
29025
|
-
created_at: z51.iso.datetime(),
|
|
29026
|
-
updated_at: z51.iso.datetime()
|
|
28960
|
+
created_at: z51.iso.datetime()
|
|
29027
28961
|
});
|
|
29028
28962
|
|
|
29029
|
-
// src/cfg/generated/_utils/schemas/
|
|
29030
|
-
|
|
29031
|
-
var DocumentArchiveDetailSchema = z52.object({
|
|
28963
|
+
// src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
|
|
28964
|
+
var DocumentArchiveSchema = z52.object({
|
|
29032
28965
|
id: z52.uuid(),
|
|
29033
28966
|
title: z52.string().max(512),
|
|
29034
28967
|
description: z52.string().optional(),
|
|
@@ -29037,8 +28970,8 @@ var DocumentArchiveDetailSchema = z52.object({
|
|
|
29037
28970
|
archive_file: z52.url(),
|
|
29038
28971
|
original_filename: z52.string(),
|
|
29039
28972
|
file_size: z52.int(),
|
|
29040
|
-
archive_type: z52.nativeEnum(
|
|
29041
|
-
processing_status: z52.nativeEnum(
|
|
28973
|
+
archive_type: z52.nativeEnum(DocumentArchiveArchiveType),
|
|
28974
|
+
processing_status: z52.nativeEnum(DocumentArchiveProcessingStatus),
|
|
29042
28975
|
processed_at: z52.iso.datetime().nullable(),
|
|
29043
28976
|
processing_duration_ms: z52.int(),
|
|
29044
28977
|
processing_error: z52.string(),
|
|
@@ -29052,407 +28985,422 @@ var DocumentArchiveDetailSchema = z52.object({
|
|
|
29052
28985
|
vectorization_progress: z52.number(),
|
|
29053
28986
|
is_processed: z52.boolean(),
|
|
29054
28987
|
created_at: z52.iso.datetime(),
|
|
29055
|
-
updated_at: z52.iso.datetime()
|
|
29056
|
-
items: z52.array(ArchiveItemSchema),
|
|
29057
|
-
file_tree: z52.record(z52.string(), z52.any()),
|
|
29058
|
-
metadata: z52.string().nullable().optional()
|
|
28988
|
+
updated_at: z52.iso.datetime()
|
|
29059
28989
|
});
|
|
29060
28990
|
|
|
29061
|
-
// src/cfg/generated/_utils/schemas/
|
|
28991
|
+
// src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts
|
|
29062
28992
|
import { z as z53 } from "zod";
|
|
29063
|
-
var
|
|
28993
|
+
var DocumentArchiveDetailSchema = z53.object({
|
|
29064
28994
|
id: z53.uuid(),
|
|
29065
|
-
title: z53.string(),
|
|
29066
|
-
description: z53.string(),
|
|
28995
|
+
title: z53.string().max(512),
|
|
28996
|
+
description: z53.string().optional(),
|
|
29067
28997
|
categories: z53.array(DocumentCategorySchema),
|
|
29068
|
-
is_public: z53.boolean(),
|
|
28998
|
+
is_public: z53.boolean().optional(),
|
|
28999
|
+
archive_file: z53.url(),
|
|
29069
29000
|
original_filename: z53.string(),
|
|
29070
29001
|
file_size: z53.int(),
|
|
29071
|
-
archive_type: z53.nativeEnum(
|
|
29072
|
-
processing_status: z53.nativeEnum(
|
|
29002
|
+
archive_type: z53.nativeEnum(DocumentArchiveDetailArchiveType),
|
|
29003
|
+
processing_status: z53.nativeEnum(DocumentArchiveDetailProcessingStatus),
|
|
29073
29004
|
processed_at: z53.iso.datetime().nullable(),
|
|
29005
|
+
processing_duration_ms: z53.int(),
|
|
29006
|
+
processing_error: z53.string(),
|
|
29074
29007
|
total_items: z53.int(),
|
|
29008
|
+
processed_items: z53.int(),
|
|
29075
29009
|
total_chunks: z53.int(),
|
|
29010
|
+
vectorized_chunks: z53.int(),
|
|
29011
|
+
total_tokens: z53.int(),
|
|
29076
29012
|
total_cost_usd: z53.number(),
|
|
29077
29013
|
processing_progress: z53.number(),
|
|
29078
|
-
|
|
29014
|
+
vectorization_progress: z53.number(),
|
|
29015
|
+
is_processed: z53.boolean(),
|
|
29016
|
+
created_at: z53.iso.datetime(),
|
|
29017
|
+
updated_at: z53.iso.datetime(),
|
|
29018
|
+
items: z53.array(ArchiveItemSchema),
|
|
29019
|
+
file_tree: z53.record(z53.string(), z53.any()),
|
|
29020
|
+
metadata: z53.string().nullable().optional()
|
|
29079
29021
|
});
|
|
29080
29022
|
|
|
29081
|
-
// src/cfg/generated/_utils/schemas/
|
|
29023
|
+
// src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts
|
|
29082
29024
|
import { z as z54 } from "zod";
|
|
29083
|
-
var
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29025
|
+
var DocumentArchiveListSchema = z54.object({
|
|
29026
|
+
id: z54.uuid(),
|
|
29027
|
+
title: z54.string(),
|
|
29028
|
+
description: z54.string(),
|
|
29029
|
+
categories: z54.array(DocumentCategorySchema),
|
|
29030
|
+
is_public: z54.boolean(),
|
|
29031
|
+
original_filename: z54.string(),
|
|
29032
|
+
file_size: z54.int(),
|
|
29033
|
+
archive_type: z54.nativeEnum(DocumentArchiveListArchiveType),
|
|
29034
|
+
processing_status: z54.nativeEnum(DocumentArchiveListProcessingStatus),
|
|
29035
|
+
processed_at: z54.iso.datetime().nullable(),
|
|
29036
|
+
total_items: z54.int(),
|
|
29037
|
+
total_chunks: z54.int(),
|
|
29038
|
+
total_cost_usd: z54.number(),
|
|
29039
|
+
processing_progress: z54.number(),
|
|
29040
|
+
created_at: z54.iso.datetime()
|
|
29087
29041
|
});
|
|
29088
29042
|
|
|
29089
|
-
// src/cfg/generated/_utils/schemas/
|
|
29043
|
+
// src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts
|
|
29090
29044
|
import { z as z55 } from "zod";
|
|
29091
|
-
var
|
|
29092
|
-
|
|
29045
|
+
var DocumentArchiveRequestSchema = z55.object({
|
|
29046
|
+
title: z55.string().min(1).max(512),
|
|
29093
29047
|
description: z55.string().optional(),
|
|
29094
29048
|
is_public: z55.boolean().optional()
|
|
29095
29049
|
});
|
|
29096
29050
|
|
|
29097
|
-
// src/cfg/generated/_utils/schemas/
|
|
29051
|
+
// src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts
|
|
29098
29052
|
import { z as z56 } from "zod";
|
|
29099
|
-
var
|
|
29100
|
-
|
|
29101
|
-
|
|
29102
|
-
|
|
29103
|
-
metadata: z56.string().optional()
|
|
29053
|
+
var DocumentCategoryRequestSchema = z56.object({
|
|
29054
|
+
name: z56.string().min(1).max(255),
|
|
29055
|
+
description: z56.string().optional(),
|
|
29056
|
+
is_public: z56.boolean().optional()
|
|
29104
29057
|
});
|
|
29105
29058
|
|
|
29106
|
-
// src/cfg/generated/_utils/schemas/
|
|
29059
|
+
// src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts
|
|
29107
29060
|
import { z as z57 } from "zod";
|
|
29108
|
-
var
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29113
|
-
processing_time_seconds: z57.number().nullable().optional()
|
|
29061
|
+
var DocumentCreateRequestSchema = z57.object({
|
|
29062
|
+
title: z57.string().min(1).max(512),
|
|
29063
|
+
content: z57.string().min(10).max(1e6),
|
|
29064
|
+
file_type: z57.string().min(1).optional(),
|
|
29065
|
+
metadata: z57.string().optional()
|
|
29114
29066
|
});
|
|
29115
29067
|
|
|
29116
|
-
// src/cfg/generated/_utils/schemas/
|
|
29068
|
+
// src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts
|
|
29117
29069
|
import { z as z58 } from "zod";
|
|
29118
|
-
var
|
|
29119
|
-
|
|
29120
|
-
|
|
29121
|
-
|
|
29122
|
-
|
|
29070
|
+
var DocumentProcessingStatusSchema = z58.object({
|
|
29071
|
+
id: z58.uuid(),
|
|
29072
|
+
status: z58.string(),
|
|
29073
|
+
progress: z58.string(),
|
|
29074
|
+
error: z58.string().nullable().optional(),
|
|
29075
|
+
processing_time_seconds: z58.number().nullable().optional()
|
|
29123
29076
|
});
|
|
29124
29077
|
|
|
29125
|
-
// src/cfg/generated/_utils/schemas/
|
|
29078
|
+
// src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts
|
|
29126
29079
|
import { z as z59 } from "zod";
|
|
29127
|
-
var
|
|
29128
|
-
|
|
29129
|
-
|
|
29130
|
-
|
|
29131
|
-
|
|
29132
|
-
total_tokens: z59.int(),
|
|
29133
|
-
total_cost_usd: z59.number(),
|
|
29134
|
-
avg_processing_time_seconds: z59.number()
|
|
29080
|
+
var DocumentRequestSchema = z59.object({
|
|
29081
|
+
title: z59.string().min(1).max(512),
|
|
29082
|
+
file_type: z59.string().min(1).max(100).optional(),
|
|
29083
|
+
file_size: z59.int().min(0).max(9223372036854776e3).optional(),
|
|
29084
|
+
metadata: z59.string().nullable().optional()
|
|
29135
29085
|
});
|
|
29136
29086
|
|
|
29137
|
-
// src/cfg/generated/_utils/schemas/
|
|
29087
|
+
// src/cfg/generated/_utils/schemas/DocumentStats.schema.ts
|
|
29138
29088
|
import { z as z60 } from "zod";
|
|
29139
|
-
var
|
|
29140
|
-
|
|
29141
|
-
|
|
29142
|
-
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
body: z60.string(),
|
|
29148
|
-
status: z60.nativeEnum(EmailLogStatus),
|
|
29149
|
-
created_at: z60.iso.datetime(),
|
|
29150
|
-
sent_at: z60.iso.datetime().nullable(),
|
|
29151
|
-
error_message: z60.string().nullable()
|
|
29089
|
+
var DocumentStatsSchema = z60.object({
|
|
29090
|
+
total_documents: z60.int(),
|
|
29091
|
+
completed_documents: z60.int(),
|
|
29092
|
+
processing_success_rate: z60.number(),
|
|
29093
|
+
total_chunks: z60.int(),
|
|
29094
|
+
total_tokens: z60.int(),
|
|
29095
|
+
total_cost_usd: z60.number(),
|
|
29096
|
+
avg_processing_time_seconds: z60.number()
|
|
29152
29097
|
});
|
|
29153
29098
|
|
|
29154
|
-
// src/cfg/generated/_utils/schemas/
|
|
29099
|
+
// src/cfg/generated/_utils/schemas/EmailLog.schema.ts
|
|
29155
29100
|
import { z as z61 } from "zod";
|
|
29156
|
-
var
|
|
29157
|
-
|
|
29158
|
-
|
|
29159
|
-
|
|
29160
|
-
|
|
29161
|
-
|
|
29162
|
-
|
|
29163
|
-
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
reason: z61.string().optional(),
|
|
29170
|
-
last_checked: z61.iso.datetime().nullable().optional(),
|
|
29171
|
-
has_parameters: z61.boolean().optional(),
|
|
29172
|
-
required_auth: z61.boolean().optional(),
|
|
29173
|
-
rate_limited: z61.boolean().optional()
|
|
29101
|
+
var EmailLogSchema = z61.object({
|
|
29102
|
+
id: z61.uuid(),
|
|
29103
|
+
user: z61.int().nullable(),
|
|
29104
|
+
user_email: z61.string(),
|
|
29105
|
+
newsletter: z61.int().nullable(),
|
|
29106
|
+
newsletter_title: z61.string(),
|
|
29107
|
+
recipient: z61.string(),
|
|
29108
|
+
subject: z61.string(),
|
|
29109
|
+
body: z61.string(),
|
|
29110
|
+
status: z61.nativeEnum(EmailLogStatus),
|
|
29111
|
+
created_at: z61.iso.datetime(),
|
|
29112
|
+
sent_at: z61.iso.datetime().nullable(),
|
|
29113
|
+
error_message: z61.string().nullable()
|
|
29174
29114
|
});
|
|
29175
29115
|
|
|
29176
|
-
// src/cfg/generated/_utils/schemas/
|
|
29116
|
+
// src/cfg/generated/_utils/schemas/Endpoint.schema.ts
|
|
29177
29117
|
import { z as z62 } from "zod";
|
|
29178
|
-
var
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
|
|
29184
|
-
|
|
29118
|
+
var EndpointSchema = z62.object({
|
|
29119
|
+
url: z62.string(),
|
|
29120
|
+
url_pattern: z62.string().nullable().optional(),
|
|
29121
|
+
url_name: z62.string().nullable().optional(),
|
|
29122
|
+
namespace: z62.string().optional(),
|
|
29123
|
+
group: z62.string(),
|
|
29124
|
+
view: z62.string().optional(),
|
|
29125
|
+
status: z62.string(),
|
|
29126
|
+
status_code: z62.int().nullable().optional(),
|
|
29127
|
+
response_time_ms: z62.number().nullable().optional(),
|
|
29128
|
+
is_healthy: z62.boolean().nullable().optional(),
|
|
29129
|
+
error: z62.string().optional(),
|
|
29130
|
+
error_type: z62.string().optional(),
|
|
29131
|
+
reason: z62.string().optional(),
|
|
29132
|
+
last_checked: z62.iso.datetime().nullable().optional(),
|
|
29133
|
+
has_parameters: z62.boolean().optional(),
|
|
29134
|
+
required_auth: z62.boolean().optional(),
|
|
29135
|
+
rate_limited: z62.boolean().optional()
|
|
29185
29136
|
});
|
|
29186
29137
|
|
|
29187
|
-
// src/cfg/generated/_utils/schemas/
|
|
29138
|
+
// src/cfg/generated/_utils/schemas/EndpointGroup.schema.ts
|
|
29188
29139
|
import { z as z63 } from "zod";
|
|
29189
|
-
var
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
errors: z63.int(),
|
|
29197
|
-
skipped: z63.int(),
|
|
29198
|
-
endpoints: z63.array(EndpointSchema)
|
|
29140
|
+
var EndpointGroupSchema = z63.object({
|
|
29141
|
+
id: z63.int(),
|
|
29142
|
+
name: z63.string(),
|
|
29143
|
+
description: z63.string(),
|
|
29144
|
+
is_enabled: z63.boolean(),
|
|
29145
|
+
created_at: z63.iso.datetime(),
|
|
29146
|
+
updated_at: z63.iso.datetime()
|
|
29199
29147
|
});
|
|
29200
29148
|
|
|
29201
|
-
// src/cfg/generated/_utils/schemas/
|
|
29149
|
+
// src/cfg/generated/_utils/schemas/EndpointsStatus.schema.ts
|
|
29202
29150
|
import { z as z64 } from "zod";
|
|
29203
|
-
var
|
|
29204
|
-
|
|
29205
|
-
|
|
29151
|
+
var EndpointsStatusSchema = z64.object({
|
|
29152
|
+
status: z64.string(),
|
|
29153
|
+
timestamp: z64.iso.datetime(),
|
|
29154
|
+
total_endpoints: z64.int(),
|
|
29155
|
+
healthy: z64.int(),
|
|
29156
|
+
unhealthy: z64.int(),
|
|
29157
|
+
warnings: z64.int(),
|
|
29158
|
+
errors: z64.int(),
|
|
29159
|
+
skipped: z64.int(),
|
|
29160
|
+
endpoints: z64.array(EndpointSchema)
|
|
29206
29161
|
});
|
|
29207
29162
|
|
|
29208
|
-
// src/cfg/generated/_utils/schemas/
|
|
29163
|
+
// src/cfg/generated/_utils/schemas/ErrorResponse.schema.ts
|
|
29209
29164
|
import { z as z65 } from "zod";
|
|
29210
|
-
var
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
service: z65.string(),
|
|
29214
|
-
version: z65.string(),
|
|
29215
|
-
checks: z65.record(z65.string(), z65.any()),
|
|
29216
|
-
environment: z65.record(z65.string(), z65.any())
|
|
29165
|
+
var ErrorResponseSchema = z65.object({
|
|
29166
|
+
success: z65.boolean().optional(),
|
|
29167
|
+
message: z65.string()
|
|
29217
29168
|
});
|
|
29218
29169
|
|
|
29219
|
-
// src/cfg/generated/_utils/schemas/
|
|
29170
|
+
// src/cfg/generated/_utils/schemas/HealthCheck.schema.ts
|
|
29220
29171
|
import { z as z66 } from "zod";
|
|
29221
|
-
var
|
|
29222
|
-
|
|
29223
|
-
|
|
29224
|
-
|
|
29225
|
-
|
|
29226
|
-
|
|
29227
|
-
|
|
29228
|
-
subject: z66.string().max(200).nullable().optional(),
|
|
29229
|
-
message: z66.string(),
|
|
29230
|
-
extra: z66.string().nullable().optional(),
|
|
29231
|
-
site_url: z66.url()
|
|
29172
|
+
var HealthCheckSchema = z66.object({
|
|
29173
|
+
status: z66.string(),
|
|
29174
|
+
timestamp: z66.iso.datetime(),
|
|
29175
|
+
service: z66.string(),
|
|
29176
|
+
version: z66.string(),
|
|
29177
|
+
checks: z66.record(z66.string(), z66.any()),
|
|
29178
|
+
environment: z66.record(z66.string(), z66.any())
|
|
29232
29179
|
});
|
|
29233
29180
|
|
|
29234
|
-
// src/cfg/generated/_utils/schemas/
|
|
29181
|
+
// src/cfg/generated/_utils/schemas/LeadSubmission.schema.ts
|
|
29235
29182
|
import { z as z67 } from "zod";
|
|
29236
|
-
var
|
|
29237
|
-
|
|
29238
|
-
|
|
29239
|
-
|
|
29183
|
+
var LeadSubmissionSchema = z67.object({
|
|
29184
|
+
name: z67.string().max(200),
|
|
29185
|
+
email: z67.email(),
|
|
29186
|
+
company: z67.string().max(200).nullable().optional(),
|
|
29187
|
+
company_site: z67.string().max(200).nullable().optional(),
|
|
29188
|
+
contact_type: z67.nativeEnum(LeadSubmissionContactType).optional(),
|
|
29189
|
+
contact_value: z67.string().max(200).nullable().optional(),
|
|
29190
|
+
subject: z67.string().max(200).nullable().optional(),
|
|
29191
|
+
message: z67.string(),
|
|
29192
|
+
extra: z67.string().nullable().optional(),
|
|
29193
|
+
site_url: z67.url()
|
|
29240
29194
|
});
|
|
29241
29195
|
|
|
29242
|
-
// src/cfg/generated/_utils/schemas/
|
|
29196
|
+
// src/cfg/generated/_utils/schemas/LeadSubmissionError.schema.ts
|
|
29243
29197
|
import { z as z68 } from "zod";
|
|
29244
|
-
var
|
|
29245
|
-
|
|
29246
|
-
|
|
29247
|
-
|
|
29248
|
-
company_site: z68.string().max(200).nullable().optional(),
|
|
29249
|
-
contact_type: z68.nativeEnum(LeadSubmissionRequestContactType).optional(),
|
|
29250
|
-
contact_value: z68.string().max(200).nullable().optional(),
|
|
29251
|
-
subject: z68.string().max(200).nullable().optional(),
|
|
29252
|
-
message: z68.string().min(1),
|
|
29253
|
-
extra: z68.string().nullable().optional(),
|
|
29254
|
-
site_url: z68.url()
|
|
29198
|
+
var LeadSubmissionErrorSchema = z68.object({
|
|
29199
|
+
success: z68.boolean(),
|
|
29200
|
+
error: z68.string(),
|
|
29201
|
+
details: z68.record(z68.string(), z68.any()).optional()
|
|
29255
29202
|
});
|
|
29256
29203
|
|
|
29257
|
-
// src/cfg/generated/_utils/schemas/
|
|
29204
|
+
// src/cfg/generated/_utils/schemas/LeadSubmissionRequest.schema.ts
|
|
29258
29205
|
import { z as z69 } from "zod";
|
|
29259
|
-
var
|
|
29260
|
-
|
|
29261
|
-
|
|
29262
|
-
|
|
29206
|
+
var LeadSubmissionRequestSchema = z69.object({
|
|
29207
|
+
name: z69.string().min(1).max(200),
|
|
29208
|
+
email: z69.email(),
|
|
29209
|
+
company: z69.string().max(200).nullable().optional(),
|
|
29210
|
+
company_site: z69.string().max(200).nullable().optional(),
|
|
29211
|
+
contact_type: z69.nativeEnum(LeadSubmissionRequestContactType).optional(),
|
|
29212
|
+
contact_value: z69.string().max(200).nullable().optional(),
|
|
29213
|
+
subject: z69.string().max(200).nullable().optional(),
|
|
29214
|
+
message: z69.string().min(1),
|
|
29215
|
+
extra: z69.string().nullable().optional(),
|
|
29216
|
+
site_url: z69.url()
|
|
29217
|
+
});
|
|
29218
|
+
|
|
29219
|
+
// src/cfg/generated/_utils/schemas/LeadSubmissionResponse.schema.ts
|
|
29220
|
+
import { z as z70 } from "zod";
|
|
29221
|
+
var LeadSubmissionResponseSchema = z70.object({
|
|
29222
|
+
success: z70.boolean(),
|
|
29223
|
+
message: z70.string(),
|
|
29224
|
+
lead_id: z70.int()
|
|
29263
29225
|
});
|
|
29264
29226
|
|
|
29265
29227
|
// src/cfg/generated/_utils/schemas/Message.schema.ts
|
|
29266
|
-
import { z as
|
|
29228
|
+
import { z as z72 } from "zod";
|
|
29267
29229
|
|
|
29268
29230
|
// src/cfg/generated/_utils/schemas/Sender.schema.ts
|
|
29269
|
-
import { z as
|
|
29270
|
-
var SenderSchema =
|
|
29271
|
-
id:
|
|
29272
|
-
display_username:
|
|
29273
|
-
email:
|
|
29274
|
-
avatar:
|
|
29275
|
-
initials:
|
|
29276
|
-
is_staff:
|
|
29277
|
-
is_superuser:
|
|
29231
|
+
import { z as z71 } from "zod";
|
|
29232
|
+
var SenderSchema = z71.object({
|
|
29233
|
+
id: z71.int(),
|
|
29234
|
+
display_username: z71.string(),
|
|
29235
|
+
email: z71.email(),
|
|
29236
|
+
avatar: z71.string().nullable(),
|
|
29237
|
+
initials: z71.string(),
|
|
29238
|
+
is_staff: z71.boolean(),
|
|
29239
|
+
is_superuser: z71.boolean()
|
|
29278
29240
|
});
|
|
29279
29241
|
|
|
29280
29242
|
// src/cfg/generated/_utils/schemas/Message.schema.ts
|
|
29281
|
-
var MessageSchema =
|
|
29282
|
-
uuid:
|
|
29283
|
-
ticket:
|
|
29243
|
+
var MessageSchema = z72.object({
|
|
29244
|
+
uuid: z72.uuid(),
|
|
29245
|
+
ticket: z72.uuid(),
|
|
29284
29246
|
sender: SenderSchema,
|
|
29285
|
-
is_from_author:
|
|
29286
|
-
text:
|
|
29287
|
-
created_at:
|
|
29247
|
+
is_from_author: z72.boolean(),
|
|
29248
|
+
text: z72.string(),
|
|
29249
|
+
created_at: z72.iso.datetime()
|
|
29288
29250
|
});
|
|
29289
29251
|
|
|
29290
29252
|
// src/cfg/generated/_utils/schemas/MessageCreate.schema.ts
|
|
29291
|
-
import { z as z72 } from "zod";
|
|
29292
|
-
var MessageCreateSchema = z72.object({
|
|
29293
|
-
text: z72.string()
|
|
29294
|
-
});
|
|
29295
|
-
|
|
29296
|
-
// src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
|
|
29297
29253
|
import { z as z73 } from "zod";
|
|
29298
|
-
var
|
|
29299
|
-
text: z73.string()
|
|
29254
|
+
var MessageCreateSchema = z73.object({
|
|
29255
|
+
text: z73.string()
|
|
29300
29256
|
});
|
|
29301
29257
|
|
|
29302
|
-
// src/cfg/generated/_utils/schemas/
|
|
29258
|
+
// src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
|
|
29303
29259
|
import { z as z74 } from "zod";
|
|
29304
|
-
var
|
|
29260
|
+
var MessageCreateRequestSchema = z74.object({
|
|
29305
29261
|
text: z74.string().min(1)
|
|
29306
29262
|
});
|
|
29307
29263
|
|
|
29308
|
-
// src/cfg/generated/_utils/schemas/
|
|
29264
|
+
// src/cfg/generated/_utils/schemas/MessageRequest.schema.ts
|
|
29309
29265
|
import { z as z75 } from "zod";
|
|
29310
|
-
var
|
|
29311
|
-
|
|
29312
|
-
currency: CurrencyListSchema,
|
|
29313
|
-
name: z75.string(),
|
|
29314
|
-
code: z75.string(),
|
|
29315
|
-
is_active: z75.boolean(),
|
|
29316
|
-
created_at: z75.iso.datetime(),
|
|
29317
|
-
updated_at: z75.iso.datetime()
|
|
29266
|
+
var MessageRequestSchema = z75.object({
|
|
29267
|
+
text: z75.string().min(1)
|
|
29318
29268
|
});
|
|
29319
29269
|
|
|
29320
|
-
// src/cfg/generated/_utils/schemas/
|
|
29270
|
+
// src/cfg/generated/_utils/schemas/Network.schema.ts
|
|
29321
29271
|
import { z as z76 } from "zod";
|
|
29322
|
-
var
|
|
29272
|
+
var NetworkSchema = z76.object({
|
|
29323
29273
|
id: z76.int(),
|
|
29324
|
-
|
|
29325
|
-
|
|
29326
|
-
|
|
29327
|
-
|
|
29274
|
+
currency: CurrencyListSchema.nullable(),
|
|
29275
|
+
name: z76.string(),
|
|
29276
|
+
code: z76.string(),
|
|
29277
|
+
is_active: z76.boolean(),
|
|
29328
29278
|
created_at: z76.iso.datetime(),
|
|
29329
|
-
updated_at: z76.iso.datetime()
|
|
29330
|
-
subscribers_count: z76.int()
|
|
29279
|
+
updated_at: z76.iso.datetime()
|
|
29331
29280
|
});
|
|
29332
29281
|
|
|
29333
|
-
// src/cfg/generated/_utils/schemas/
|
|
29282
|
+
// src/cfg/generated/_utils/schemas/Newsletter.schema.ts
|
|
29334
29283
|
import { z as z77 } from "zod";
|
|
29335
|
-
var
|
|
29284
|
+
var NewsletterSchema = z77.object({
|
|
29336
29285
|
id: z77.int(),
|
|
29337
|
-
|
|
29338
|
-
|
|
29339
|
-
|
|
29340
|
-
|
|
29341
|
-
main_text: z77.string(),
|
|
29342
|
-
main_html_content: z77.string().optional(),
|
|
29343
|
-
button_text: z77.string().max(100).optional(),
|
|
29344
|
-
button_url: z77.url().optional(),
|
|
29345
|
-
secondary_text: z77.string().optional(),
|
|
29346
|
-
status: z77.nativeEnum(NewsletterCampaignStatus),
|
|
29286
|
+
title: z77.string().max(255),
|
|
29287
|
+
description: z77.string().optional(),
|
|
29288
|
+
is_active: z77.boolean().optional(),
|
|
29289
|
+
auto_subscribe: z77.boolean().optional(),
|
|
29347
29290
|
created_at: z77.iso.datetime(),
|
|
29348
|
-
|
|
29349
|
-
|
|
29291
|
+
updated_at: z77.iso.datetime(),
|
|
29292
|
+
subscribers_count: z77.int()
|
|
29350
29293
|
});
|
|
29351
29294
|
|
|
29352
|
-
// src/cfg/generated/_utils/schemas/
|
|
29295
|
+
// src/cfg/generated/_utils/schemas/NewsletterCampaign.schema.ts
|
|
29353
29296
|
import { z as z78 } from "zod";
|
|
29354
|
-
var
|
|
29297
|
+
var NewsletterCampaignSchema = z78.object({
|
|
29298
|
+
id: z78.int(),
|
|
29355
29299
|
newsletter: z78.int(),
|
|
29356
|
-
|
|
29357
|
-
|
|
29358
|
-
|
|
29300
|
+
newsletter_title: z78.string(),
|
|
29301
|
+
subject: z78.string().max(255),
|
|
29302
|
+
email_title: z78.string().max(255),
|
|
29303
|
+
main_text: z78.string(),
|
|
29359
29304
|
main_html_content: z78.string().optional(),
|
|
29360
29305
|
button_text: z78.string().max(100).optional(),
|
|
29361
29306
|
button_url: z78.url().optional(),
|
|
29362
|
-
secondary_text: z78.string().optional()
|
|
29307
|
+
secondary_text: z78.string().optional(),
|
|
29308
|
+
status: z78.nativeEnum(NewsletterCampaignStatus),
|
|
29309
|
+
created_at: z78.iso.datetime(),
|
|
29310
|
+
sent_at: z78.iso.datetime().nullable(),
|
|
29311
|
+
recipient_count: z78.int()
|
|
29363
29312
|
});
|
|
29364
29313
|
|
|
29365
|
-
// src/cfg/generated/_utils/schemas/
|
|
29314
|
+
// src/cfg/generated/_utils/schemas/NewsletterCampaignRequest.schema.ts
|
|
29366
29315
|
import { z as z79 } from "zod";
|
|
29367
|
-
var
|
|
29368
|
-
id: z79.int(),
|
|
29316
|
+
var NewsletterCampaignRequestSchema = z79.object({
|
|
29369
29317
|
newsletter: z79.int(),
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
|
|
29375
|
-
|
|
29376
|
-
|
|
29318
|
+
subject: z79.string().min(1).max(255),
|
|
29319
|
+
email_title: z79.string().min(1).max(255),
|
|
29320
|
+
main_text: z79.string().min(1),
|
|
29321
|
+
main_html_content: z79.string().optional(),
|
|
29322
|
+
button_text: z79.string().max(100).optional(),
|
|
29323
|
+
button_url: z79.url().optional(),
|
|
29324
|
+
secondary_text: z79.string().optional()
|
|
29377
29325
|
});
|
|
29378
29326
|
|
|
29379
|
-
// src/cfg/generated/_utils/schemas/
|
|
29327
|
+
// src/cfg/generated/_utils/schemas/NewsletterSubscription.schema.ts
|
|
29380
29328
|
import { z as z80 } from "zod";
|
|
29381
|
-
var
|
|
29382
|
-
|
|
29329
|
+
var NewsletterSubscriptionSchema = z80.object({
|
|
29330
|
+
id: z80.int(),
|
|
29331
|
+
newsletter: z80.int(),
|
|
29332
|
+
newsletter_title: z80.string(),
|
|
29333
|
+
user: z80.int().nullable().optional(),
|
|
29334
|
+
user_email: z80.string(),
|
|
29335
|
+
email: z80.email(),
|
|
29336
|
+
is_active: z80.boolean().optional(),
|
|
29337
|
+
subscribed_at: z80.iso.datetime(),
|
|
29338
|
+
unsubscribed_at: z80.iso.datetime().nullable()
|
|
29383
29339
|
});
|
|
29384
29340
|
|
|
29385
|
-
// src/cfg/generated/_utils/schemas/
|
|
29341
|
+
// src/cfg/generated/_utils/schemas/OTPErrorResponse.schema.ts
|
|
29386
29342
|
import { z as z81 } from "zod";
|
|
29387
|
-
var
|
|
29388
|
-
|
|
29389
|
-
channel: z81.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
29390
|
-
source_url: z81.url().optional()
|
|
29343
|
+
var OTPErrorResponseSchema = z81.object({
|
|
29344
|
+
error: z81.string()
|
|
29391
29345
|
});
|
|
29392
29346
|
|
|
29393
|
-
// src/cfg/generated/_utils/schemas/
|
|
29347
|
+
// src/cfg/generated/_utils/schemas/OTPRequestRequest.schema.ts
|
|
29394
29348
|
import { z as z82 } from "zod";
|
|
29395
|
-
var
|
|
29396
|
-
|
|
29349
|
+
var OTPRequestRequestSchema = z82.object({
|
|
29350
|
+
identifier: z82.string().min(1),
|
|
29351
|
+
channel: z82.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
29352
|
+
source_url: z82.url().optional()
|
|
29397
29353
|
});
|
|
29398
29354
|
|
|
29399
|
-
// src/cfg/generated/_utils/schemas/
|
|
29355
|
+
// src/cfg/generated/_utils/schemas/OTPRequestResponse.schema.ts
|
|
29400
29356
|
import { z as z83 } from "zod";
|
|
29401
|
-
var
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29357
|
+
var OTPRequestResponseSchema = z83.object({
|
|
29358
|
+
message: z83.string()
|
|
29359
|
+
});
|
|
29360
|
+
|
|
29361
|
+
// src/cfg/generated/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
29362
|
+
import { z as z84 } from "zod";
|
|
29363
|
+
var OTPVerifyRequestSchema = z84.object({
|
|
29364
|
+
identifier: z84.string().min(1),
|
|
29365
|
+
otp: z84.string().min(6).max(6),
|
|
29366
|
+
channel: z84.nativeEnum(OTPVerifyRequestChannel).optional(),
|
|
29367
|
+
source_url: z84.url().optional()
|
|
29406
29368
|
});
|
|
29407
29369
|
|
|
29408
29370
|
// src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
29409
|
-
import { z as
|
|
29371
|
+
import { z as z86 } from "zod";
|
|
29410
29372
|
|
|
29411
29373
|
// src/cfg/generated/_utils/schemas/User.schema.ts
|
|
29412
|
-
import { z as
|
|
29413
|
-
var UserSchema =
|
|
29414
|
-
id:
|
|
29415
|
-
email:
|
|
29416
|
-
first_name:
|
|
29417
|
-
last_name:
|
|
29418
|
-
full_name:
|
|
29419
|
-
initials:
|
|
29420
|
-
display_username:
|
|
29421
|
-
company:
|
|
29422
|
-
phone:
|
|
29423
|
-
position:
|
|
29424
|
-
avatar:
|
|
29425
|
-
is_staff:
|
|
29426
|
-
is_superuser:
|
|
29427
|
-
date_joined:
|
|
29428
|
-
last_login:
|
|
29429
|
-
unanswered_messages_count:
|
|
29374
|
+
import { z as z85 } from "zod";
|
|
29375
|
+
var UserSchema = z85.object({
|
|
29376
|
+
id: z85.int(),
|
|
29377
|
+
email: z85.email(),
|
|
29378
|
+
first_name: z85.string().max(50).optional(),
|
|
29379
|
+
last_name: z85.string().max(50).optional(),
|
|
29380
|
+
full_name: z85.string(),
|
|
29381
|
+
initials: z85.string(),
|
|
29382
|
+
display_username: z85.string(),
|
|
29383
|
+
company: z85.string().max(100).optional(),
|
|
29384
|
+
phone: z85.string().max(20).optional(),
|
|
29385
|
+
position: z85.string().max(100).optional(),
|
|
29386
|
+
avatar: z85.url().nullable(),
|
|
29387
|
+
is_staff: z85.boolean(),
|
|
29388
|
+
is_superuser: z85.boolean(),
|
|
29389
|
+
date_joined: z85.iso.datetime(),
|
|
29390
|
+
last_login: z85.iso.datetime().nullable(),
|
|
29391
|
+
unanswered_messages_count: z85.int()
|
|
29430
29392
|
});
|
|
29431
29393
|
|
|
29432
29394
|
// src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
29433
|
-
var OTPVerifyResponseSchema =
|
|
29434
|
-
refresh:
|
|
29435
|
-
access:
|
|
29395
|
+
var OTPVerifyResponseSchema = z86.object({
|
|
29396
|
+
refresh: z86.string(),
|
|
29397
|
+
access: z86.string(),
|
|
29436
29398
|
user: UserSchema
|
|
29437
29399
|
});
|
|
29438
29400
|
|
|
29439
29401
|
// src/cfg/generated/_utils/schemas/PaginatedAPIKeyListList.schema.ts
|
|
29440
|
-
import { z as z86 } from "zod";
|
|
29441
|
-
var PaginatedAPIKeyListListSchema = z86.object({
|
|
29442
|
-
count: z86.int(),
|
|
29443
|
-
page: z86.int(),
|
|
29444
|
-
pages: z86.int(),
|
|
29445
|
-
page_size: z86.int(),
|
|
29446
|
-
has_next: z86.boolean(),
|
|
29447
|
-
has_previous: z86.boolean(),
|
|
29448
|
-
next_page: z86.int().nullable().optional(),
|
|
29449
|
-
previous_page: z86.int().nullable().optional(),
|
|
29450
|
-
results: z86.array(APIKeyListSchema)
|
|
29451
|
-
});
|
|
29452
|
-
|
|
29453
|
-
// src/cfg/generated/_utils/schemas/PaginatedAdminPaymentListList.schema.ts
|
|
29454
29402
|
import { z as z87 } from "zod";
|
|
29455
|
-
var
|
|
29403
|
+
var PaginatedAPIKeyListListSchema = z87.object({
|
|
29456
29404
|
count: z87.int(),
|
|
29457
29405
|
page: z87.int(),
|
|
29458
29406
|
pages: z87.int(),
|
|
@@ -29461,12 +29409,12 @@ var PaginatedAdminPaymentListListSchema = z87.object({
|
|
|
29461
29409
|
has_previous: z87.boolean(),
|
|
29462
29410
|
next_page: z87.int().nullable().optional(),
|
|
29463
29411
|
previous_page: z87.int().nullable().optional(),
|
|
29464
|
-
results: z87.array(
|
|
29412
|
+
results: z87.array(APIKeyListSchema)
|
|
29465
29413
|
});
|
|
29466
29414
|
|
|
29467
|
-
// src/cfg/generated/_utils/schemas/
|
|
29415
|
+
// src/cfg/generated/_utils/schemas/PaginatedAdminPaymentListList.schema.ts
|
|
29468
29416
|
import { z as z88 } from "zod";
|
|
29469
|
-
var
|
|
29417
|
+
var PaginatedAdminPaymentListListSchema = z88.object({
|
|
29470
29418
|
count: z88.int(),
|
|
29471
29419
|
page: z88.int(),
|
|
29472
29420
|
pages: z88.int(),
|
|
@@ -29475,12 +29423,12 @@ var PaginatedAdminPaymentStatsListSchema = z88.object({
|
|
|
29475
29423
|
has_previous: z88.boolean(),
|
|
29476
29424
|
next_page: z88.int().nullable().optional(),
|
|
29477
29425
|
previous_page: z88.int().nullable().optional(),
|
|
29478
|
-
results: z88.array(
|
|
29426
|
+
results: z88.array(AdminPaymentListSchema)
|
|
29479
29427
|
});
|
|
29480
29428
|
|
|
29481
|
-
// src/cfg/generated/_utils/schemas/
|
|
29429
|
+
// src/cfg/generated/_utils/schemas/PaginatedAdminPaymentStatsList.schema.ts
|
|
29482
29430
|
import { z as z89 } from "zod";
|
|
29483
|
-
var
|
|
29431
|
+
var PaginatedAdminPaymentStatsListSchema = z89.object({
|
|
29484
29432
|
count: z89.int(),
|
|
29485
29433
|
page: z89.int(),
|
|
29486
29434
|
pages: z89.int(),
|
|
@@ -29489,12 +29437,12 @@ var PaginatedAdminUserListSchema = z89.object({
|
|
|
29489
29437
|
has_previous: z89.boolean(),
|
|
29490
29438
|
next_page: z89.int().nullable().optional(),
|
|
29491
29439
|
previous_page: z89.int().nullable().optional(),
|
|
29492
|
-
results: z89.array(
|
|
29440
|
+
results: z89.array(AdminPaymentStatsSchema)
|
|
29493
29441
|
});
|
|
29494
29442
|
|
|
29495
|
-
// src/cfg/generated/_utils/schemas/
|
|
29443
|
+
// src/cfg/generated/_utils/schemas/PaginatedAdminUserList.schema.ts
|
|
29496
29444
|
import { z as z90 } from "zod";
|
|
29497
|
-
var
|
|
29445
|
+
var PaginatedAdminUserListSchema = z90.object({
|
|
29498
29446
|
count: z90.int(),
|
|
29499
29447
|
page: z90.int(),
|
|
29500
29448
|
pages: z90.int(),
|
|
@@ -29503,12 +29451,12 @@ var PaginatedArchiveItemChunkListSchema = z90.object({
|
|
|
29503
29451
|
has_previous: z90.boolean(),
|
|
29504
29452
|
next_page: z90.int().nullable().optional(),
|
|
29505
29453
|
previous_page: z90.int().nullable().optional(),
|
|
29506
|
-
results: z90.array(
|
|
29454
|
+
results: z90.array(AdminUserSchema)
|
|
29507
29455
|
});
|
|
29508
29456
|
|
|
29509
|
-
// src/cfg/generated/_utils/schemas/
|
|
29457
|
+
// src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts
|
|
29510
29458
|
import { z as z91 } from "zod";
|
|
29511
|
-
var
|
|
29459
|
+
var PaginatedArchiveItemChunkListSchema = z91.object({
|
|
29512
29460
|
count: z91.int(),
|
|
29513
29461
|
page: z91.int(),
|
|
29514
29462
|
pages: z91.int(),
|
|
@@ -29517,12 +29465,12 @@ var PaginatedArchiveItemListSchema = z91.object({
|
|
|
29517
29465
|
has_previous: z91.boolean(),
|
|
29518
29466
|
next_page: z91.int().nullable().optional(),
|
|
29519
29467
|
previous_page: z91.int().nullable().optional(),
|
|
29520
|
-
results: z91.array(
|
|
29468
|
+
results: z91.array(ArchiveItemChunkSchema)
|
|
29521
29469
|
});
|
|
29522
29470
|
|
|
29523
|
-
// src/cfg/generated/_utils/schemas/
|
|
29471
|
+
// src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts
|
|
29524
29472
|
import { z as z92 } from "zod";
|
|
29525
|
-
var
|
|
29473
|
+
var PaginatedArchiveItemListSchema = z92.object({
|
|
29526
29474
|
count: z92.int(),
|
|
29527
29475
|
page: z92.int(),
|
|
29528
29476
|
pages: z92.int(),
|
|
@@ -29531,12 +29479,12 @@ var PaginatedArchiveSearchResultListSchema = z92.object({
|
|
|
29531
29479
|
has_previous: z92.boolean(),
|
|
29532
29480
|
next_page: z92.int().nullable().optional(),
|
|
29533
29481
|
previous_page: z92.int().nullable().optional(),
|
|
29534
|
-
results: z92.array(
|
|
29482
|
+
results: z92.array(ArchiveItemSchema)
|
|
29535
29483
|
});
|
|
29536
29484
|
|
|
29537
|
-
// src/cfg/generated/_utils/schemas/
|
|
29485
|
+
// src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts
|
|
29538
29486
|
import { z as z93 } from "zod";
|
|
29539
|
-
var
|
|
29487
|
+
var PaginatedArchiveSearchResultListSchema = z93.object({
|
|
29540
29488
|
count: z93.int(),
|
|
29541
29489
|
page: z93.int(),
|
|
29542
29490
|
pages: z93.int(),
|
|
@@ -29545,12 +29493,12 @@ var PaginatedChatResponseListSchema = z93.object({
|
|
|
29545
29493
|
has_previous: z93.boolean(),
|
|
29546
29494
|
next_page: z93.int().nullable().optional(),
|
|
29547
29495
|
previous_page: z93.int().nullable().optional(),
|
|
29548
|
-
results: z93.array(
|
|
29496
|
+
results: z93.array(ArchiveSearchResultSchema)
|
|
29549
29497
|
});
|
|
29550
29498
|
|
|
29551
|
-
// src/cfg/generated/_utils/schemas/
|
|
29499
|
+
// src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts
|
|
29552
29500
|
import { z as z94 } from "zod";
|
|
29553
|
-
var
|
|
29501
|
+
var PaginatedChatResponseListSchema = z94.object({
|
|
29554
29502
|
count: z94.int(),
|
|
29555
29503
|
page: z94.int(),
|
|
29556
29504
|
pages: z94.int(),
|
|
@@ -29559,12 +29507,12 @@ var PaginatedChatSessionListSchema = z94.object({
|
|
|
29559
29507
|
has_previous: z94.boolean(),
|
|
29560
29508
|
next_page: z94.int().nullable().optional(),
|
|
29561
29509
|
previous_page: z94.int().nullable().optional(),
|
|
29562
|
-
results: z94.array(
|
|
29510
|
+
results: z94.array(ChatResponseSchema)
|
|
29563
29511
|
});
|
|
29564
29512
|
|
|
29565
|
-
// src/cfg/generated/_utils/schemas/
|
|
29513
|
+
// src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts
|
|
29566
29514
|
import { z as z95 } from "zod";
|
|
29567
|
-
var
|
|
29515
|
+
var PaginatedChatSessionListSchema = z95.object({
|
|
29568
29516
|
count: z95.int(),
|
|
29569
29517
|
page: z95.int(),
|
|
29570
29518
|
pages: z95.int(),
|
|
@@ -29573,12 +29521,12 @@ var PaginatedCurrencyListListSchema = z95.object({
|
|
|
29573
29521
|
has_previous: z95.boolean(),
|
|
29574
29522
|
next_page: z95.int().nullable().optional(),
|
|
29575
29523
|
previous_page: z95.int().nullable().optional(),
|
|
29576
|
-
results: z95.array(
|
|
29524
|
+
results: z95.array(ChatSessionSchema)
|
|
29577
29525
|
});
|
|
29578
29526
|
|
|
29579
|
-
// src/cfg/generated/_utils/schemas/
|
|
29527
|
+
// src/cfg/generated/_utils/schemas/PaginatedCurrencyListList.schema.ts
|
|
29580
29528
|
import { z as z96 } from "zod";
|
|
29581
|
-
var
|
|
29529
|
+
var PaginatedCurrencyListListSchema = z96.object({
|
|
29582
29530
|
count: z96.int(),
|
|
29583
29531
|
page: z96.int(),
|
|
29584
29532
|
pages: z96.int(),
|
|
@@ -29587,12 +29535,12 @@ var PaginatedDocumentArchiveListListSchema = z96.object({
|
|
|
29587
29535
|
has_previous: z96.boolean(),
|
|
29588
29536
|
next_page: z96.int().nullable().optional(),
|
|
29589
29537
|
previous_page: z96.int().nullable().optional(),
|
|
29590
|
-
results: z96.array(
|
|
29538
|
+
results: z96.array(CurrencyListSchema)
|
|
29591
29539
|
});
|
|
29592
29540
|
|
|
29593
|
-
// src/cfg/generated/_utils/schemas/
|
|
29541
|
+
// src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts
|
|
29594
29542
|
import { z as z97 } from "zod";
|
|
29595
|
-
var
|
|
29543
|
+
var PaginatedDocumentArchiveListListSchema = z97.object({
|
|
29596
29544
|
count: z97.int(),
|
|
29597
29545
|
page: z97.int(),
|
|
29598
29546
|
pages: z97.int(),
|
|
@@ -29601,12 +29549,12 @@ var PaginatedDocumentListSchema = z97.object({
|
|
|
29601
29549
|
has_previous: z97.boolean(),
|
|
29602
29550
|
next_page: z97.int().nullable().optional(),
|
|
29603
29551
|
previous_page: z97.int().nullable().optional(),
|
|
29604
|
-
results: z97.array(
|
|
29552
|
+
results: z97.array(DocumentArchiveListSchema)
|
|
29605
29553
|
});
|
|
29606
29554
|
|
|
29607
|
-
// src/cfg/generated/_utils/schemas/
|
|
29555
|
+
// src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts
|
|
29608
29556
|
import { z as z98 } from "zod";
|
|
29609
|
-
var
|
|
29557
|
+
var PaginatedDocumentListSchema = z98.object({
|
|
29610
29558
|
count: z98.int(),
|
|
29611
29559
|
page: z98.int(),
|
|
29612
29560
|
pages: z98.int(),
|
|
@@ -29615,12 +29563,12 @@ var PaginatedEmailLogListSchema = z98.object({
|
|
|
29615
29563
|
has_previous: z98.boolean(),
|
|
29616
29564
|
next_page: z98.int().nullable().optional(),
|
|
29617
29565
|
previous_page: z98.int().nullable().optional(),
|
|
29618
|
-
results: z98.array(
|
|
29566
|
+
results: z98.array(DocumentSchema)
|
|
29619
29567
|
});
|
|
29620
29568
|
|
|
29621
|
-
// src/cfg/generated/_utils/schemas/
|
|
29569
|
+
// src/cfg/generated/_utils/schemas/PaginatedEmailLogList.schema.ts
|
|
29622
29570
|
import { z as z99 } from "zod";
|
|
29623
|
-
var
|
|
29571
|
+
var PaginatedEmailLogListSchema = z99.object({
|
|
29624
29572
|
count: z99.int(),
|
|
29625
29573
|
page: z99.int(),
|
|
29626
29574
|
pages: z99.int(),
|
|
@@ -29629,12 +29577,12 @@ var PaginatedEndpointGroupListSchema = z99.object({
|
|
|
29629
29577
|
has_previous: z99.boolean(),
|
|
29630
29578
|
next_page: z99.int().nullable().optional(),
|
|
29631
29579
|
previous_page: z99.int().nullable().optional(),
|
|
29632
|
-
results: z99.array(
|
|
29580
|
+
results: z99.array(EmailLogSchema)
|
|
29633
29581
|
});
|
|
29634
29582
|
|
|
29635
|
-
// src/cfg/generated/_utils/schemas/
|
|
29583
|
+
// src/cfg/generated/_utils/schemas/PaginatedEndpointGroupList.schema.ts
|
|
29636
29584
|
import { z as z100 } from "zod";
|
|
29637
|
-
var
|
|
29585
|
+
var PaginatedEndpointGroupListSchema = z100.object({
|
|
29638
29586
|
count: z100.int(),
|
|
29639
29587
|
page: z100.int(),
|
|
29640
29588
|
pages: z100.int(),
|
|
@@ -29643,12 +29591,12 @@ var PaginatedLeadSubmissionListSchema = z100.object({
|
|
|
29643
29591
|
has_previous: z100.boolean(),
|
|
29644
29592
|
next_page: z100.int().nullable().optional(),
|
|
29645
29593
|
previous_page: z100.int().nullable().optional(),
|
|
29646
|
-
results: z100.array(
|
|
29594
|
+
results: z100.array(EndpointGroupSchema)
|
|
29647
29595
|
});
|
|
29648
29596
|
|
|
29649
|
-
// src/cfg/generated/_utils/schemas/
|
|
29597
|
+
// src/cfg/generated/_utils/schemas/PaginatedLeadSubmissionList.schema.ts
|
|
29650
29598
|
import { z as z101 } from "zod";
|
|
29651
|
-
var
|
|
29599
|
+
var PaginatedLeadSubmissionListSchema = z101.object({
|
|
29652
29600
|
count: z101.int(),
|
|
29653
29601
|
page: z101.int(),
|
|
29654
29602
|
pages: z101.int(),
|
|
@@ -29657,12 +29605,12 @@ var PaginatedMessageListSchema = z101.object({
|
|
|
29657
29605
|
has_previous: z101.boolean(),
|
|
29658
29606
|
next_page: z101.int().nullable().optional(),
|
|
29659
29607
|
previous_page: z101.int().nullable().optional(),
|
|
29660
|
-
results: z101.array(
|
|
29608
|
+
results: z101.array(LeadSubmissionSchema)
|
|
29661
29609
|
});
|
|
29662
29610
|
|
|
29663
|
-
// src/cfg/generated/_utils/schemas/
|
|
29611
|
+
// src/cfg/generated/_utils/schemas/PaginatedMessageList.schema.ts
|
|
29664
29612
|
import { z as z102 } from "zod";
|
|
29665
|
-
var
|
|
29613
|
+
var PaginatedMessageListSchema = z102.object({
|
|
29666
29614
|
count: z102.int(),
|
|
29667
29615
|
page: z102.int(),
|
|
29668
29616
|
pages: z102.int(),
|
|
@@ -29671,12 +29619,12 @@ var PaginatedNetworkListSchema = z102.object({
|
|
|
29671
29619
|
has_previous: z102.boolean(),
|
|
29672
29620
|
next_page: z102.int().nullable().optional(),
|
|
29673
29621
|
previous_page: z102.int().nullable().optional(),
|
|
29674
|
-
results: z102.array(
|
|
29622
|
+
results: z102.array(MessageSchema)
|
|
29675
29623
|
});
|
|
29676
29624
|
|
|
29677
|
-
// src/cfg/generated/_utils/schemas/
|
|
29625
|
+
// src/cfg/generated/_utils/schemas/PaginatedNetworkList.schema.ts
|
|
29678
29626
|
import { z as z103 } from "zod";
|
|
29679
|
-
var
|
|
29627
|
+
var PaginatedNetworkListSchema = z103.object({
|
|
29680
29628
|
count: z103.int(),
|
|
29681
29629
|
page: z103.int(),
|
|
29682
29630
|
pages: z103.int(),
|
|
@@ -29685,12 +29633,12 @@ var PaginatedNewsletterCampaignListSchema = z103.object({
|
|
|
29685
29633
|
has_previous: z103.boolean(),
|
|
29686
29634
|
next_page: z103.int().nullable().optional(),
|
|
29687
29635
|
previous_page: z103.int().nullable().optional(),
|
|
29688
|
-
results: z103.array(
|
|
29636
|
+
results: z103.array(NetworkSchema)
|
|
29689
29637
|
});
|
|
29690
29638
|
|
|
29691
|
-
// src/cfg/generated/_utils/schemas/
|
|
29639
|
+
// src/cfg/generated/_utils/schemas/PaginatedNewsletterCampaignList.schema.ts
|
|
29692
29640
|
import { z as z104 } from "zod";
|
|
29693
|
-
var
|
|
29641
|
+
var PaginatedNewsletterCampaignListSchema = z104.object({
|
|
29694
29642
|
count: z104.int(),
|
|
29695
29643
|
page: z104.int(),
|
|
29696
29644
|
pages: z104.int(),
|
|
@@ -29699,12 +29647,12 @@ var PaginatedNewsletterListSchema = z104.object({
|
|
|
29699
29647
|
has_previous: z104.boolean(),
|
|
29700
29648
|
next_page: z104.int().nullable().optional(),
|
|
29701
29649
|
previous_page: z104.int().nullable().optional(),
|
|
29702
|
-
results: z104.array(
|
|
29650
|
+
results: z104.array(NewsletterCampaignSchema)
|
|
29703
29651
|
});
|
|
29704
29652
|
|
|
29705
|
-
// src/cfg/generated/_utils/schemas/
|
|
29653
|
+
// src/cfg/generated/_utils/schemas/PaginatedNewsletterList.schema.ts
|
|
29706
29654
|
import { z as z105 } from "zod";
|
|
29707
|
-
var
|
|
29655
|
+
var PaginatedNewsletterListSchema = z105.object({
|
|
29708
29656
|
count: z105.int(),
|
|
29709
29657
|
page: z105.int(),
|
|
29710
29658
|
pages: z105.int(),
|
|
@@ -29713,1056 +29661,1072 @@ var PaginatedNewsletterSubscriptionListSchema = z105.object({
|
|
|
29713
29661
|
has_previous: z105.boolean(),
|
|
29714
29662
|
next_page: z105.int().nullable().optional(),
|
|
29715
29663
|
previous_page: z105.int().nullable().optional(),
|
|
29716
|
-
results: z105.array(
|
|
29664
|
+
results: z105.array(NewsletterSchema)
|
|
29665
|
+
});
|
|
29666
|
+
|
|
29667
|
+
// src/cfg/generated/_utils/schemas/PaginatedNewsletterSubscriptionList.schema.ts
|
|
29668
|
+
import { z as z106 } from "zod";
|
|
29669
|
+
var PaginatedNewsletterSubscriptionListSchema = z106.object({
|
|
29670
|
+
count: z106.int(),
|
|
29671
|
+
page: z106.int(),
|
|
29672
|
+
pages: z106.int(),
|
|
29673
|
+
page_size: z106.int(),
|
|
29674
|
+
has_next: z106.boolean(),
|
|
29675
|
+
has_previous: z106.boolean(),
|
|
29676
|
+
next_page: z106.int().nullable().optional(),
|
|
29677
|
+
previous_page: z106.int().nullable().optional(),
|
|
29678
|
+
results: z106.array(NewsletterSubscriptionSchema)
|
|
29717
29679
|
});
|
|
29718
29680
|
|
|
29719
29681
|
// src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
|
|
29720
|
-
import { z as
|
|
29682
|
+
import { z as z108 } from "zod";
|
|
29721
29683
|
|
|
29722
29684
|
// src/cfg/generated/_utils/schemas/PaymentList.schema.ts
|
|
29723
|
-
import { z as
|
|
29724
|
-
var PaymentListSchema =
|
|
29725
|
-
id:
|
|
29726
|
-
amount_usd:
|
|
29727
|
-
currency:
|
|
29728
|
-
provider:
|
|
29729
|
-
status:
|
|
29730
|
-
status_display:
|
|
29731
|
-
amount_display:
|
|
29732
|
-
created_at:
|
|
29733
|
-
expires_at:
|
|
29685
|
+
import { z as z107 } from "zod";
|
|
29686
|
+
var PaymentListSchema = z107.object({
|
|
29687
|
+
id: z107.uuid(),
|
|
29688
|
+
amount_usd: z107.number(),
|
|
29689
|
+
currency: z107.int(),
|
|
29690
|
+
provider: z107.nativeEnum(PaymentListProvider),
|
|
29691
|
+
status: z107.nativeEnum(PaymentListStatus),
|
|
29692
|
+
status_display: z107.string(),
|
|
29693
|
+
amount_display: z107.string(),
|
|
29694
|
+
created_at: z107.iso.datetime(),
|
|
29695
|
+
expires_at: z107.iso.datetime().nullable()
|
|
29734
29696
|
});
|
|
29735
29697
|
|
|
29736
29698
|
// src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
|
|
29737
|
-
var PaginatedPaymentListListSchema =
|
|
29738
|
-
count:
|
|
29739
|
-
page:
|
|
29740
|
-
pages:
|
|
29741
|
-
page_size:
|
|
29742
|
-
has_next:
|
|
29743
|
-
has_previous:
|
|
29744
|
-
next_page:
|
|
29745
|
-
previous_page:
|
|
29746
|
-
results:
|
|
29699
|
+
var PaginatedPaymentListListSchema = z108.object({
|
|
29700
|
+
count: z108.int(),
|
|
29701
|
+
page: z108.int(),
|
|
29702
|
+
pages: z108.int(),
|
|
29703
|
+
page_size: z108.int(),
|
|
29704
|
+
has_next: z108.boolean(),
|
|
29705
|
+
has_previous: z108.boolean(),
|
|
29706
|
+
next_page: z108.int().nullable().optional(),
|
|
29707
|
+
previous_page: z108.int().nullable().optional(),
|
|
29708
|
+
results: z108.array(PaymentListSchema)
|
|
29747
29709
|
});
|
|
29748
29710
|
|
|
29749
29711
|
// src/cfg/generated/_utils/schemas/PaginatedProviderCurrencyList.schema.ts
|
|
29750
|
-
import { z as
|
|
29712
|
+
import { z as z110 } from "zod";
|
|
29751
29713
|
|
|
29752
29714
|
// src/cfg/generated/_utils/schemas/ProviderCurrency.schema.ts
|
|
29753
|
-
import { z as
|
|
29754
|
-
var ProviderCurrencySchema =
|
|
29755
|
-
id:
|
|
29715
|
+
import { z as z109 } from "zod";
|
|
29716
|
+
var ProviderCurrencySchema = z109.object({
|
|
29717
|
+
id: z109.int(),
|
|
29756
29718
|
currency: CurrencyListSchema,
|
|
29757
|
-
network: NetworkSchema,
|
|
29758
|
-
provider:
|
|
29759
|
-
provider_currency_code:
|
|
29760
|
-
provider_min_amount_usd:
|
|
29761
|
-
provider_max_amount_usd:
|
|
29762
|
-
provider_fee_percentage:
|
|
29763
|
-
provider_fixed_fee_usd:
|
|
29764
|
-
is_enabled:
|
|
29765
|
-
created_at:
|
|
29766
|
-
updated_at:
|
|
29719
|
+
network: NetworkSchema.nullable(),
|
|
29720
|
+
provider: z109.string(),
|
|
29721
|
+
provider_currency_code: z109.string(),
|
|
29722
|
+
provider_min_amount_usd: z109.number(),
|
|
29723
|
+
provider_max_amount_usd: z109.number(),
|
|
29724
|
+
provider_fee_percentage: z109.number(),
|
|
29725
|
+
provider_fixed_fee_usd: z109.number(),
|
|
29726
|
+
is_enabled: z109.boolean(),
|
|
29727
|
+
created_at: z109.iso.datetime(),
|
|
29728
|
+
updated_at: z109.iso.datetime()
|
|
29767
29729
|
});
|
|
29768
29730
|
|
|
29769
29731
|
// src/cfg/generated/_utils/schemas/PaginatedProviderCurrencyList.schema.ts
|
|
29770
|
-
var PaginatedProviderCurrencyListSchema =
|
|
29771
|
-
count:
|
|
29772
|
-
page:
|
|
29773
|
-
pages:
|
|
29774
|
-
page_size:
|
|
29775
|
-
has_next:
|
|
29776
|
-
has_previous:
|
|
29777
|
-
next_page:
|
|
29778
|
-
previous_page:
|
|
29779
|
-
results:
|
|
29732
|
+
var PaginatedProviderCurrencyListSchema = z110.object({
|
|
29733
|
+
count: z110.int(),
|
|
29734
|
+
page: z110.int(),
|
|
29735
|
+
pages: z110.int(),
|
|
29736
|
+
page_size: z110.int(),
|
|
29737
|
+
has_next: z110.boolean(),
|
|
29738
|
+
has_previous: z110.boolean(),
|
|
29739
|
+
next_page: z110.int().nullable().optional(),
|
|
29740
|
+
previous_page: z110.int().nullable().optional(),
|
|
29741
|
+
results: z110.array(ProviderCurrencySchema)
|
|
29780
29742
|
});
|
|
29781
29743
|
|
|
29782
29744
|
// src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
|
|
29783
|
-
import { z as
|
|
29745
|
+
import { z as z112 } from "zod";
|
|
29784
29746
|
|
|
29785
29747
|
// src/cfg/generated/_utils/schemas/PublicCategory.schema.ts
|
|
29786
|
-
import { z as
|
|
29787
|
-
var PublicCategorySchema =
|
|
29788
|
-
id:
|
|
29789
|
-
name:
|
|
29790
|
-
description:
|
|
29748
|
+
import { z as z111 } from "zod";
|
|
29749
|
+
var PublicCategorySchema = z111.object({
|
|
29750
|
+
id: z111.uuid(),
|
|
29751
|
+
name: z111.string().max(255),
|
|
29752
|
+
description: z111.string().optional()
|
|
29791
29753
|
});
|
|
29792
29754
|
|
|
29793
29755
|
// src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
|
|
29794
|
-
var PaginatedPublicCategoryListSchema =
|
|
29795
|
-
count:
|
|
29796
|
-
page:
|
|
29797
|
-
pages:
|
|
29798
|
-
page_size:
|
|
29799
|
-
has_next:
|
|
29800
|
-
has_previous:
|
|
29801
|
-
next_page:
|
|
29802
|
-
previous_page:
|
|
29803
|
-
results:
|
|
29756
|
+
var PaginatedPublicCategoryListSchema = z112.object({
|
|
29757
|
+
count: z112.int(),
|
|
29758
|
+
page: z112.int(),
|
|
29759
|
+
pages: z112.int(),
|
|
29760
|
+
page_size: z112.int(),
|
|
29761
|
+
has_next: z112.boolean(),
|
|
29762
|
+
has_previous: z112.boolean(),
|
|
29763
|
+
next_page: z112.int().nullable().optional(),
|
|
29764
|
+
previous_page: z112.int().nullable().optional(),
|
|
29765
|
+
results: z112.array(PublicCategorySchema)
|
|
29804
29766
|
});
|
|
29805
29767
|
|
|
29806
29768
|
// src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
|
|
29807
|
-
import { z as
|
|
29769
|
+
import { z as z114 } from "zod";
|
|
29808
29770
|
|
|
29809
29771
|
// src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts
|
|
29810
|
-
import { z as
|
|
29811
|
-
var PublicDocumentListSchema =
|
|
29812
|
-
id:
|
|
29813
|
-
title:
|
|
29772
|
+
import { z as z113 } from "zod";
|
|
29773
|
+
var PublicDocumentListSchema = z113.object({
|
|
29774
|
+
id: z113.uuid(),
|
|
29775
|
+
title: z113.string().max(512),
|
|
29814
29776
|
category: PublicCategorySchema,
|
|
29815
|
-
created_at:
|
|
29816
|
-
updated_at:
|
|
29777
|
+
created_at: z113.iso.datetime(),
|
|
29778
|
+
updated_at: z113.iso.datetime()
|
|
29817
29779
|
});
|
|
29818
29780
|
|
|
29819
29781
|
// src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
|
|
29820
|
-
var PaginatedPublicDocumentListListSchema =
|
|
29821
|
-
count:
|
|
29822
|
-
page:
|
|
29823
|
-
pages:
|
|
29824
|
-
page_size:
|
|
29825
|
-
has_next:
|
|
29826
|
-
has_previous:
|
|
29827
|
-
next_page:
|
|
29828
|
-
previous_page:
|
|
29829
|
-
results:
|
|
29782
|
+
var PaginatedPublicDocumentListListSchema = z114.object({
|
|
29783
|
+
count: z114.int(),
|
|
29784
|
+
page: z114.int(),
|
|
29785
|
+
pages: z114.int(),
|
|
29786
|
+
page_size: z114.int(),
|
|
29787
|
+
has_next: z114.boolean(),
|
|
29788
|
+
has_previous: z114.boolean(),
|
|
29789
|
+
next_page: z114.int().nullable().optional(),
|
|
29790
|
+
previous_page: z114.int().nullable().optional(),
|
|
29791
|
+
results: z114.array(PublicDocumentListSchema)
|
|
29830
29792
|
});
|
|
29831
29793
|
|
|
29832
29794
|
// src/cfg/generated/_utils/schemas/PaginatedRecentPaymentList.schema.ts
|
|
29833
|
-
import { z as
|
|
29795
|
+
import { z as z116 } from "zod";
|
|
29834
29796
|
|
|
29835
29797
|
// src/cfg/generated/_utils/schemas/RecentPayment.schema.ts
|
|
29836
|
-
import { z as
|
|
29837
|
-
var RecentPaymentSchema =
|
|
29838
|
-
id:
|
|
29839
|
-
internal_payment_id:
|
|
29840
|
-
amount_usd:
|
|
29841
|
-
amount_display:
|
|
29842
|
-
currency_code:
|
|
29843
|
-
status:
|
|
29844
|
-
status_display:
|
|
29845
|
-
status_color:
|
|
29846
|
-
provider:
|
|
29847
|
-
created_at:
|
|
29848
|
-
completed_at:
|
|
29849
|
-
is_pending:
|
|
29850
|
-
is_completed:
|
|
29851
|
-
is_failed:
|
|
29798
|
+
import { z as z115 } from "zod";
|
|
29799
|
+
var RecentPaymentSchema = z115.object({
|
|
29800
|
+
id: z115.uuid(),
|
|
29801
|
+
internal_payment_id: z115.string(),
|
|
29802
|
+
amount_usd: z115.number(),
|
|
29803
|
+
amount_display: z115.string(),
|
|
29804
|
+
currency_code: z115.string(),
|
|
29805
|
+
status: z115.string(),
|
|
29806
|
+
status_display: z115.string(),
|
|
29807
|
+
status_color: z115.string(),
|
|
29808
|
+
provider: z115.string(),
|
|
29809
|
+
created_at: z115.iso.datetime(),
|
|
29810
|
+
completed_at: z115.iso.datetime().nullable(),
|
|
29811
|
+
is_pending: z115.boolean(),
|
|
29812
|
+
is_completed: z115.boolean(),
|
|
29813
|
+
is_failed: z115.boolean()
|
|
29852
29814
|
});
|
|
29853
29815
|
|
|
29854
29816
|
// src/cfg/generated/_utils/schemas/PaginatedRecentPaymentList.schema.ts
|
|
29855
|
-
var PaginatedRecentPaymentListSchema =
|
|
29856
|
-
count:
|
|
29857
|
-
page:
|
|
29858
|
-
pages:
|
|
29859
|
-
page_size:
|
|
29860
|
-
has_next:
|
|
29861
|
-
has_previous:
|
|
29862
|
-
next_page:
|
|
29863
|
-
previous_page:
|
|
29864
|
-
results:
|
|
29817
|
+
var PaginatedRecentPaymentListSchema = z116.object({
|
|
29818
|
+
count: z116.int(),
|
|
29819
|
+
page: z116.int(),
|
|
29820
|
+
pages: z116.int(),
|
|
29821
|
+
page_size: z116.int(),
|
|
29822
|
+
has_next: z116.boolean(),
|
|
29823
|
+
has_previous: z116.boolean(),
|
|
29824
|
+
next_page: z116.int().nullable().optional(),
|
|
29825
|
+
previous_page: z116.int().nullable().optional(),
|
|
29826
|
+
results: z116.array(RecentPaymentSchema)
|
|
29865
29827
|
});
|
|
29866
29828
|
|
|
29867
29829
|
// src/cfg/generated/_utils/schemas/PaginatedRecentTransactionList.schema.ts
|
|
29868
|
-
import { z as
|
|
29830
|
+
import { z as z118 } from "zod";
|
|
29869
29831
|
|
|
29870
29832
|
// src/cfg/generated/_utils/schemas/RecentTransaction.schema.ts
|
|
29871
|
-
import { z as
|
|
29872
|
-
var RecentTransactionSchema =
|
|
29873
|
-
id:
|
|
29874
|
-
transaction_type:
|
|
29875
|
-
amount_usd:
|
|
29876
|
-
amount_display:
|
|
29877
|
-
balance_after:
|
|
29878
|
-
description:
|
|
29879
|
-
created_at:
|
|
29880
|
-
payment_id:
|
|
29881
|
-
is_credit:
|
|
29882
|
-
is_debit:
|
|
29883
|
-
type_color:
|
|
29833
|
+
import { z as z117 } from "zod";
|
|
29834
|
+
var RecentTransactionSchema = z117.object({
|
|
29835
|
+
id: z117.uuid(),
|
|
29836
|
+
transaction_type: z117.string(),
|
|
29837
|
+
amount_usd: z117.number(),
|
|
29838
|
+
amount_display: z117.string(),
|
|
29839
|
+
balance_after: z117.number(),
|
|
29840
|
+
description: z117.string(),
|
|
29841
|
+
created_at: z117.iso.datetime(),
|
|
29842
|
+
payment_id: z117.string().nullable(),
|
|
29843
|
+
is_credit: z117.boolean(),
|
|
29844
|
+
is_debit: z117.boolean(),
|
|
29845
|
+
type_color: z117.string()
|
|
29884
29846
|
});
|
|
29885
29847
|
|
|
29886
29848
|
// src/cfg/generated/_utils/schemas/PaginatedRecentTransactionList.schema.ts
|
|
29887
|
-
var PaginatedRecentTransactionListSchema =
|
|
29888
|
-
count:
|
|
29889
|
-
page:
|
|
29890
|
-
pages:
|
|
29891
|
-
page_size:
|
|
29892
|
-
has_next:
|
|
29893
|
-
has_previous:
|
|
29894
|
-
next_page:
|
|
29895
|
-
previous_page:
|
|
29896
|
-
results:
|
|
29849
|
+
var PaginatedRecentTransactionListSchema = z118.object({
|
|
29850
|
+
count: z118.int(),
|
|
29851
|
+
page: z118.int(),
|
|
29852
|
+
pages: z118.int(),
|
|
29853
|
+
page_size: z118.int(),
|
|
29854
|
+
has_next: z118.boolean(),
|
|
29855
|
+
has_previous: z118.boolean(),
|
|
29856
|
+
next_page: z118.int().nullable().optional(),
|
|
29857
|
+
previous_page: z118.int().nullable().optional(),
|
|
29858
|
+
results: z118.array(RecentTransactionSchema)
|
|
29897
29859
|
});
|
|
29898
29860
|
|
|
29899
29861
|
// src/cfg/generated/_utils/schemas/PaginatedSubscriptionListList.schema.ts
|
|
29900
|
-
import { z as
|
|
29862
|
+
import { z as z120 } from "zod";
|
|
29901
29863
|
|
|
29902
29864
|
// src/cfg/generated/_utils/schemas/SubscriptionList.schema.ts
|
|
29903
|
-
import { z as
|
|
29904
|
-
var SubscriptionListSchema =
|
|
29905
|
-
id:
|
|
29906
|
-
user:
|
|
29907
|
-
tariff_name:
|
|
29908
|
-
status:
|
|
29909
|
-
status_display:
|
|
29910
|
-
is_active:
|
|
29911
|
-
is_expired:
|
|
29912
|
-
expires_at:
|
|
29913
|
-
created_at:
|
|
29865
|
+
import { z as z119 } from "zod";
|
|
29866
|
+
var SubscriptionListSchema = z119.object({
|
|
29867
|
+
id: z119.uuid(),
|
|
29868
|
+
user: z119.string(),
|
|
29869
|
+
tariff_name: z119.string(),
|
|
29870
|
+
status: z119.nativeEnum(SubscriptionListStatus),
|
|
29871
|
+
status_display: z119.string(),
|
|
29872
|
+
is_active: z119.boolean(),
|
|
29873
|
+
is_expired: z119.boolean(),
|
|
29874
|
+
expires_at: z119.iso.datetime(),
|
|
29875
|
+
created_at: z119.iso.datetime()
|
|
29914
29876
|
});
|
|
29915
29877
|
|
|
29916
29878
|
// src/cfg/generated/_utils/schemas/PaginatedSubscriptionListList.schema.ts
|
|
29917
|
-
var PaginatedSubscriptionListListSchema =
|
|
29918
|
-
count:
|
|
29919
|
-
page:
|
|
29920
|
-
pages:
|
|
29921
|
-
page_size:
|
|
29922
|
-
has_next:
|
|
29923
|
-
has_previous:
|
|
29924
|
-
next_page:
|
|
29925
|
-
previous_page:
|
|
29926
|
-
results:
|
|
29879
|
+
var PaginatedSubscriptionListListSchema = z120.object({
|
|
29880
|
+
count: z120.int(),
|
|
29881
|
+
page: z120.int(),
|
|
29882
|
+
pages: z120.int(),
|
|
29883
|
+
page_size: z120.int(),
|
|
29884
|
+
has_next: z120.boolean(),
|
|
29885
|
+
has_previous: z120.boolean(),
|
|
29886
|
+
next_page: z120.int().nullable().optional(),
|
|
29887
|
+
previous_page: z120.int().nullable().optional(),
|
|
29888
|
+
results: z120.array(SubscriptionListSchema)
|
|
29927
29889
|
});
|
|
29928
29890
|
|
|
29929
29891
|
// src/cfg/generated/_utils/schemas/PaginatedTariffList.schema.ts
|
|
29930
|
-
import { z as
|
|
29892
|
+
import { z as z122 } from "zod";
|
|
29931
29893
|
|
|
29932
29894
|
// src/cfg/generated/_utils/schemas/Tariff.schema.ts
|
|
29933
|
-
import { z as
|
|
29934
|
-
var TariffSchema =
|
|
29935
|
-
id:
|
|
29936
|
-
name:
|
|
29937
|
-
description:
|
|
29938
|
-
monthly_price_usd:
|
|
29939
|
-
requests_per_month:
|
|
29940
|
-
requests_per_hour:
|
|
29941
|
-
is_active:
|
|
29942
|
-
endpoint_groups:
|
|
29943
|
-
endpoint_groups_count:
|
|
29944
|
-
created_at:
|
|
29945
|
-
updated_at:
|
|
29895
|
+
import { z as z121 } from "zod";
|
|
29896
|
+
var TariffSchema = z121.object({
|
|
29897
|
+
id: z121.int(),
|
|
29898
|
+
name: z121.string(),
|
|
29899
|
+
description: z121.string(),
|
|
29900
|
+
monthly_price_usd: z121.number(),
|
|
29901
|
+
requests_per_month: z121.int(),
|
|
29902
|
+
requests_per_hour: z121.int(),
|
|
29903
|
+
is_active: z121.boolean(),
|
|
29904
|
+
endpoint_groups: z121.array(EndpointGroupSchema),
|
|
29905
|
+
endpoint_groups_count: z121.int(),
|
|
29906
|
+
created_at: z121.iso.datetime(),
|
|
29907
|
+
updated_at: z121.iso.datetime()
|
|
29946
29908
|
});
|
|
29947
29909
|
|
|
29948
29910
|
// src/cfg/generated/_utils/schemas/PaginatedTariffList.schema.ts
|
|
29949
|
-
var PaginatedTariffListSchema =
|
|
29950
|
-
count:
|
|
29951
|
-
page:
|
|
29952
|
-
pages:
|
|
29953
|
-
page_size:
|
|
29954
|
-
has_next:
|
|
29955
|
-
has_previous:
|
|
29956
|
-
next_page:
|
|
29957
|
-
previous_page:
|
|
29958
|
-
results:
|
|
29911
|
+
var PaginatedTariffListSchema = z122.object({
|
|
29912
|
+
count: z122.int(),
|
|
29913
|
+
page: z122.int(),
|
|
29914
|
+
pages: z122.int(),
|
|
29915
|
+
page_size: z122.int(),
|
|
29916
|
+
has_next: z122.boolean(),
|
|
29917
|
+
has_previous: z122.boolean(),
|
|
29918
|
+
next_page: z122.int().nullable().optional(),
|
|
29919
|
+
previous_page: z122.int().nullable().optional(),
|
|
29920
|
+
results: z122.array(TariffSchema)
|
|
29959
29921
|
});
|
|
29960
29922
|
|
|
29961
29923
|
// src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
|
|
29962
|
-
import { z as
|
|
29924
|
+
import { z as z124 } from "zod";
|
|
29963
29925
|
|
|
29964
29926
|
// src/cfg/generated/_utils/schemas/Ticket.schema.ts
|
|
29965
|
-
import { z as
|
|
29966
|
-
var TicketSchema =
|
|
29967
|
-
uuid:
|
|
29968
|
-
user:
|
|
29969
|
-
subject:
|
|
29970
|
-
status:
|
|
29971
|
-
created_at:
|
|
29972
|
-
unanswered_messages_count:
|
|
29927
|
+
import { z as z123 } from "zod";
|
|
29928
|
+
var TicketSchema = z123.object({
|
|
29929
|
+
uuid: z123.uuid(),
|
|
29930
|
+
user: z123.int(),
|
|
29931
|
+
subject: z123.string().max(255),
|
|
29932
|
+
status: z123.nativeEnum(TicketStatus).optional(),
|
|
29933
|
+
created_at: z123.iso.datetime(),
|
|
29934
|
+
unanswered_messages_count: z123.int()
|
|
29973
29935
|
});
|
|
29974
29936
|
|
|
29975
29937
|
// src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
|
|
29976
|
-
var PaginatedTicketListSchema =
|
|
29977
|
-
count:
|
|
29978
|
-
page:
|
|
29979
|
-
pages:
|
|
29980
|
-
page_size:
|
|
29981
|
-
has_next:
|
|
29982
|
-
has_previous:
|
|
29983
|
-
next_page:
|
|
29984
|
-
previous_page:
|
|
29985
|
-
results:
|
|
29938
|
+
var PaginatedTicketListSchema = z124.object({
|
|
29939
|
+
count: z124.int(),
|
|
29940
|
+
page: z124.int(),
|
|
29941
|
+
pages: z124.int(),
|
|
29942
|
+
page_size: z124.int(),
|
|
29943
|
+
has_next: z124.boolean(),
|
|
29944
|
+
has_previous: z124.boolean(),
|
|
29945
|
+
next_page: z124.int().nullable().optional(),
|
|
29946
|
+
previous_page: z124.int().nullable().optional(),
|
|
29947
|
+
results: z124.array(TicketSchema)
|
|
29986
29948
|
});
|
|
29987
29949
|
|
|
29988
29950
|
// src/cfg/generated/_utils/schemas/PaginatedTransactionList.schema.ts
|
|
29989
|
-
import { z as
|
|
29951
|
+
import { z as z126 } from "zod";
|
|
29990
29952
|
|
|
29991
29953
|
// src/cfg/generated/_utils/schemas/Transaction.schema.ts
|
|
29992
|
-
import { z as
|
|
29993
|
-
var TransactionSchema =
|
|
29994
|
-
id:
|
|
29995
|
-
user:
|
|
29996
|
-
amount_usd:
|
|
29997
|
-
amount_display:
|
|
29998
|
-
transaction_type:
|
|
29999
|
-
type_color:
|
|
30000
|
-
description:
|
|
30001
|
-
payment_id:
|
|
30002
|
-
metadata:
|
|
30003
|
-
is_credit:
|
|
30004
|
-
is_debit:
|
|
30005
|
-
created_at:
|
|
29954
|
+
import { z as z125 } from "zod";
|
|
29955
|
+
var TransactionSchema = z125.object({
|
|
29956
|
+
id: z125.uuid(),
|
|
29957
|
+
user: z125.string(),
|
|
29958
|
+
amount_usd: z125.number(),
|
|
29959
|
+
amount_display: z125.string(),
|
|
29960
|
+
transaction_type: z125.nativeEnum(TransactionTransactionType),
|
|
29961
|
+
type_color: z125.string(),
|
|
29962
|
+
description: z125.string(),
|
|
29963
|
+
payment_id: z125.string().nullable(),
|
|
29964
|
+
metadata: z125.string(),
|
|
29965
|
+
is_credit: z125.boolean(),
|
|
29966
|
+
is_debit: z125.boolean(),
|
|
29967
|
+
created_at: z125.iso.datetime()
|
|
30006
29968
|
});
|
|
30007
29969
|
|
|
30008
29970
|
// src/cfg/generated/_utils/schemas/PaginatedTransactionList.schema.ts
|
|
30009
|
-
var PaginatedTransactionListSchema =
|
|
30010
|
-
count:
|
|
30011
|
-
page:
|
|
30012
|
-
pages:
|
|
30013
|
-
page_size:
|
|
30014
|
-
has_next:
|
|
30015
|
-
has_previous:
|
|
30016
|
-
next_page:
|
|
30017
|
-
previous_page:
|
|
30018
|
-
results:
|
|
29971
|
+
var PaginatedTransactionListSchema = z126.object({
|
|
29972
|
+
count: z126.int(),
|
|
29973
|
+
page: z126.int(),
|
|
29974
|
+
pages: z126.int(),
|
|
29975
|
+
page_size: z126.int(),
|
|
29976
|
+
has_next: z126.boolean(),
|
|
29977
|
+
has_previous: z126.boolean(),
|
|
29978
|
+
next_page: z126.int().nullable().optional(),
|
|
29979
|
+
previous_page: z126.int().nullable().optional(),
|
|
29980
|
+
results: z126.array(TransactionSchema)
|
|
30019
29981
|
});
|
|
30020
29982
|
|
|
30021
29983
|
// src/cfg/generated/_utils/schemas/PaginatedUserBalanceList.schema.ts
|
|
30022
|
-
import { z as
|
|
29984
|
+
import { z as z128 } from "zod";
|
|
30023
29985
|
|
|
30024
29986
|
// src/cfg/generated/_utils/schemas/UserBalance.schema.ts
|
|
30025
|
-
import { z as
|
|
30026
|
-
var UserBalanceSchema =
|
|
30027
|
-
user:
|
|
30028
|
-
balance_usd:
|
|
30029
|
-
balance_display:
|
|
30030
|
-
is_empty:
|
|
30031
|
-
has_transactions:
|
|
30032
|
-
created_at:
|
|
30033
|
-
updated_at:
|
|
29987
|
+
import { z as z127 } from "zod";
|
|
29988
|
+
var UserBalanceSchema = z127.object({
|
|
29989
|
+
user: z127.string(),
|
|
29990
|
+
balance_usd: z127.number(),
|
|
29991
|
+
balance_display: z127.string(),
|
|
29992
|
+
is_empty: z127.boolean(),
|
|
29993
|
+
has_transactions: z127.boolean(),
|
|
29994
|
+
created_at: z127.iso.datetime(),
|
|
29995
|
+
updated_at: z127.iso.datetime()
|
|
30034
29996
|
});
|
|
30035
29997
|
|
|
30036
29998
|
// src/cfg/generated/_utils/schemas/PaginatedUserBalanceList.schema.ts
|
|
30037
|
-
var PaginatedUserBalanceListSchema =
|
|
30038
|
-
count:
|
|
30039
|
-
page:
|
|
30040
|
-
pages:
|
|
30041
|
-
page_size:
|
|
30042
|
-
has_next:
|
|
30043
|
-
has_previous:
|
|
30044
|
-
next_page:
|
|
30045
|
-
previous_page:
|
|
30046
|
-
results:
|
|
29999
|
+
var PaginatedUserBalanceListSchema = z128.object({
|
|
30000
|
+
count: z128.int(),
|
|
30001
|
+
page: z128.int(),
|
|
30002
|
+
pages: z128.int(),
|
|
30003
|
+
page_size: z128.int(),
|
|
30004
|
+
has_next: z128.boolean(),
|
|
30005
|
+
has_previous: z128.boolean(),
|
|
30006
|
+
next_page: z128.int().nullable().optional(),
|
|
30007
|
+
previous_page: z128.int().nullable().optional(),
|
|
30008
|
+
results: z128.array(UserBalanceSchema)
|
|
30047
30009
|
});
|
|
30048
30010
|
|
|
30049
30011
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookEventListList.schema.ts
|
|
30050
|
-
import { z as
|
|
30012
|
+
import { z as z131 } from "zod";
|
|
30051
30013
|
|
|
30052
30014
|
// src/cfg/generated/_utils/schemas/WebhookEventList.schema.ts
|
|
30053
|
-
import { z as
|
|
30015
|
+
import { z as z130 } from "zod";
|
|
30054
30016
|
|
|
30055
30017
|
// src/cfg/generated/_utils/schemas/WebhookEvent.schema.ts
|
|
30056
|
-
import { z as
|
|
30057
|
-
var WebhookEventSchema =
|
|
30058
|
-
id:
|
|
30059
|
-
provider:
|
|
30060
|
-
event_type:
|
|
30061
|
-
status:
|
|
30062
|
-
timestamp:
|
|
30063
|
-
payload_size:
|
|
30064
|
-
response_time:
|
|
30065
|
-
retry_count:
|
|
30066
|
-
error_message:
|
|
30067
|
-
payload_preview:
|
|
30068
|
-
response_status_code:
|
|
30069
|
-
webhook_url:
|
|
30018
|
+
import { z as z129 } from "zod";
|
|
30019
|
+
var WebhookEventSchema = z129.object({
|
|
30020
|
+
id: z129.int(),
|
|
30021
|
+
provider: z129.string().max(50),
|
|
30022
|
+
event_type: z129.string().max(100),
|
|
30023
|
+
status: z129.nativeEnum(WebhookEventStatus),
|
|
30024
|
+
timestamp: z129.iso.datetime(),
|
|
30025
|
+
payload_size: z129.int(),
|
|
30026
|
+
response_time: z129.int(),
|
|
30027
|
+
retry_count: z129.int().optional(),
|
|
30028
|
+
error_message: z129.string().max(500).optional(),
|
|
30029
|
+
payload_preview: z129.string().max(200).optional(),
|
|
30030
|
+
response_status_code: z129.int().optional(),
|
|
30031
|
+
webhook_url: z129.url().optional()
|
|
30070
30032
|
});
|
|
30071
30033
|
|
|
30072
30034
|
// src/cfg/generated/_utils/schemas/WebhookEventList.schema.ts
|
|
30073
|
-
var WebhookEventListSchema =
|
|
30074
|
-
events:
|
|
30075
|
-
total:
|
|
30076
|
-
page:
|
|
30077
|
-
per_page:
|
|
30078
|
-
has_next:
|
|
30079
|
-
has_previous:
|
|
30035
|
+
var WebhookEventListSchema = z130.object({
|
|
30036
|
+
events: z130.array(WebhookEventSchema),
|
|
30037
|
+
total: z130.int(),
|
|
30038
|
+
page: z130.int(),
|
|
30039
|
+
per_page: z130.int(),
|
|
30040
|
+
has_next: z130.boolean(),
|
|
30041
|
+
has_previous: z130.boolean()
|
|
30080
30042
|
});
|
|
30081
30043
|
|
|
30082
30044
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookEventListList.schema.ts
|
|
30083
|
-
var PaginatedWebhookEventListListSchema =
|
|
30084
|
-
count:
|
|
30085
|
-
page:
|
|
30086
|
-
pages:
|
|
30087
|
-
page_size:
|
|
30088
|
-
has_next:
|
|
30089
|
-
has_previous:
|
|
30090
|
-
next_page:
|
|
30091
|
-
previous_page:
|
|
30092
|
-
results:
|
|
30045
|
+
var PaginatedWebhookEventListListSchema = z131.object({
|
|
30046
|
+
count: z131.int(),
|
|
30047
|
+
page: z131.int(),
|
|
30048
|
+
pages: z131.int(),
|
|
30049
|
+
page_size: z131.int(),
|
|
30050
|
+
has_next: z131.boolean(),
|
|
30051
|
+
has_previous: z131.boolean(),
|
|
30052
|
+
next_page: z131.int().nullable().optional(),
|
|
30053
|
+
previous_page: z131.int().nullable().optional(),
|
|
30054
|
+
results: z131.array(WebhookEventListSchema)
|
|
30093
30055
|
});
|
|
30094
30056
|
|
|
30095
30057
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookStatsList.schema.ts
|
|
30096
|
-
import { z as
|
|
30058
|
+
import { z as z133 } from "zod";
|
|
30097
30059
|
|
|
30098
30060
|
// src/cfg/generated/_utils/schemas/WebhookStats.schema.ts
|
|
30099
|
-
import { z as
|
|
30100
|
-
var WebhookStatsSchema =
|
|
30101
|
-
total:
|
|
30102
|
-
successful:
|
|
30103
|
-
failed:
|
|
30104
|
-
pending:
|
|
30105
|
-
success_rate:
|
|
30106
|
-
providers:
|
|
30107
|
-
last_24h:
|
|
30108
|
-
avg_response_time:
|
|
30109
|
-
max_response_time:
|
|
30061
|
+
import { z as z132 } from "zod";
|
|
30062
|
+
var WebhookStatsSchema = z132.object({
|
|
30063
|
+
total: z132.int(),
|
|
30064
|
+
successful: z132.int(),
|
|
30065
|
+
failed: z132.int(),
|
|
30066
|
+
pending: z132.int(),
|
|
30067
|
+
success_rate: z132.number(),
|
|
30068
|
+
providers: z132.record(z132.string(), z132.any()),
|
|
30069
|
+
last_24h: z132.record(z132.string(), z132.any()),
|
|
30070
|
+
avg_response_time: z132.number(),
|
|
30071
|
+
max_response_time: z132.int()
|
|
30110
30072
|
});
|
|
30111
30073
|
|
|
30112
30074
|
// src/cfg/generated/_utils/schemas/PaginatedWebhookStatsList.schema.ts
|
|
30113
|
-
var PaginatedWebhookStatsListSchema =
|
|
30114
|
-
count:
|
|
30115
|
-
page:
|
|
30116
|
-
pages:
|
|
30117
|
-
page_size:
|
|
30118
|
-
has_next:
|
|
30119
|
-
has_previous:
|
|
30120
|
-
next_page:
|
|
30121
|
-
previous_page:
|
|
30122
|
-
results:
|
|
30075
|
+
var PaginatedWebhookStatsListSchema = z133.object({
|
|
30076
|
+
count: z133.int(),
|
|
30077
|
+
page: z133.int(),
|
|
30078
|
+
pages: z133.int(),
|
|
30079
|
+
page_size: z133.int(),
|
|
30080
|
+
has_next: z133.boolean(),
|
|
30081
|
+
has_previous: z133.boolean(),
|
|
30082
|
+
next_page: z133.int().nullable().optional(),
|
|
30083
|
+
previous_page: z133.int().nullable().optional(),
|
|
30084
|
+
results: z133.array(WebhookStatsSchema)
|
|
30123
30085
|
});
|
|
30124
30086
|
|
|
30125
30087
|
// src/cfg/generated/_utils/schemas/PatchedAPIKeyUpdateRequest.schema.ts
|
|
30126
|
-
import { z as
|
|
30127
|
-
var PatchedAPIKeyUpdateRequestSchema =
|
|
30128
|
-
name:
|
|
30129
|
-
is_active:
|
|
30088
|
+
import { z as z134 } from "zod";
|
|
30089
|
+
var PatchedAPIKeyUpdateRequestSchema = z134.object({
|
|
30090
|
+
name: z134.string().min(1).max(100).optional(),
|
|
30091
|
+
is_active: z134.boolean().optional()
|
|
30130
30092
|
});
|
|
30131
30093
|
|
|
30132
30094
|
// src/cfg/generated/_utils/schemas/PatchedAdminPaymentUpdateRequest.schema.ts
|
|
30133
|
-
import { z as
|
|
30134
|
-
var PatchedAdminPaymentUpdateRequestSchema =
|
|
30135
|
-
status:
|
|
30136
|
-
description:
|
|
30137
|
-
callback_url:
|
|
30138
|
-
cancel_url:
|
|
30139
|
-
provider_data:
|
|
30140
|
-
webhook_data:
|
|
30095
|
+
import { z as z135 } from "zod";
|
|
30096
|
+
var PatchedAdminPaymentUpdateRequestSchema = z135.object({
|
|
30097
|
+
status: z135.nativeEnum(PatchedAdminPaymentUpdateRequestStatus).optional(),
|
|
30098
|
+
description: z135.string().optional(),
|
|
30099
|
+
callback_url: z135.url().nullable().optional(),
|
|
30100
|
+
cancel_url: z135.url().nullable().optional(),
|
|
30101
|
+
provider_data: z135.string().optional(),
|
|
30102
|
+
webhook_data: z135.string().optional()
|
|
30141
30103
|
});
|
|
30142
30104
|
|
|
30143
30105
|
// src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts
|
|
30144
|
-
import { z as
|
|
30145
|
-
var PatchedArchiveItemChunkRequestSchema =
|
|
30146
|
-
content:
|
|
30147
|
-
chunk_index:
|
|
30148
|
-
chunk_type:
|
|
30106
|
+
import { z as z136 } from "zod";
|
|
30107
|
+
var PatchedArchiveItemChunkRequestSchema = z136.object({
|
|
30108
|
+
content: z136.string().min(1).optional(),
|
|
30109
|
+
chunk_index: z136.int().min(0).max(9223372036854776e3).optional(),
|
|
30110
|
+
chunk_type: z136.nativeEnum(PatchedArchiveItemChunkRequestChunkType).optional()
|
|
30149
30111
|
});
|
|
30150
30112
|
|
|
30151
30113
|
// src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts
|
|
30152
|
-
import { z as
|
|
30153
|
-
var PatchedArchiveItemRequestSchema =
|
|
30154
|
-
relative_path:
|
|
30155
|
-
item_name:
|
|
30156
|
-
item_type:
|
|
30157
|
-
file_size:
|
|
30114
|
+
import { z as z137 } from "zod";
|
|
30115
|
+
var PatchedArchiveItemRequestSchema = z137.object({
|
|
30116
|
+
relative_path: z137.string().min(1).max(1024).optional(),
|
|
30117
|
+
item_name: z137.string().min(1).max(255).optional(),
|
|
30118
|
+
item_type: z137.string().min(1).max(100).optional(),
|
|
30119
|
+
file_size: z137.int().min(0).max(9223372036854776e3).optional()
|
|
30158
30120
|
});
|
|
30159
30121
|
|
|
30160
30122
|
// src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts
|
|
30161
|
-
import { z as
|
|
30162
|
-
var PatchedChatResponseRequestSchema =
|
|
30163
|
-
message_id:
|
|
30164
|
-
content:
|
|
30165
|
-
tokens_used:
|
|
30166
|
-
cost_usd:
|
|
30167
|
-
processing_time_ms:
|
|
30168
|
-
model_used:
|
|
30169
|
-
sources:
|
|
30123
|
+
import { z as z138 } from "zod";
|
|
30124
|
+
var PatchedChatResponseRequestSchema = z138.object({
|
|
30125
|
+
message_id: z138.uuid().optional(),
|
|
30126
|
+
content: z138.string().min(1).optional(),
|
|
30127
|
+
tokens_used: z138.int().optional(),
|
|
30128
|
+
cost_usd: z138.number().optional(),
|
|
30129
|
+
processing_time_ms: z138.int().optional(),
|
|
30130
|
+
model_used: z138.string().min(1).optional(),
|
|
30131
|
+
sources: z138.array(ChatSourceRequestSchema).nullable().optional()
|
|
30170
30132
|
});
|
|
30171
30133
|
|
|
30172
30134
|
// src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts
|
|
30173
|
-
import { z as
|
|
30174
|
-
var PatchedChatSessionRequestSchema =
|
|
30175
|
-
title:
|
|
30176
|
-
is_active:
|
|
30177
|
-
messages_count:
|
|
30178
|
-
total_tokens_used:
|
|
30179
|
-
model_name:
|
|
30180
|
-
temperature:
|
|
30181
|
-
max_context_chunks:
|
|
30135
|
+
import { z as z139 } from "zod";
|
|
30136
|
+
var PatchedChatSessionRequestSchema = z139.object({
|
|
30137
|
+
title: z139.string().max(255).optional(),
|
|
30138
|
+
is_active: z139.boolean().optional(),
|
|
30139
|
+
messages_count: z139.int().min(0).max(9223372036854776e3).optional(),
|
|
30140
|
+
total_tokens_used: z139.int().min(0).max(9223372036854776e3).optional(),
|
|
30141
|
+
model_name: z139.string().min(1).max(100).optional(),
|
|
30142
|
+
temperature: z139.number().optional(),
|
|
30143
|
+
max_context_chunks: z139.int().min(0).max(9223372036854776e3).optional()
|
|
30182
30144
|
});
|
|
30183
30145
|
|
|
30184
30146
|
// src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts
|
|
30185
|
-
import { z as
|
|
30186
|
-
var PatchedDocumentArchiveRequestSchema =
|
|
30187
|
-
title:
|
|
30188
|
-
description:
|
|
30189
|
-
is_public:
|
|
30147
|
+
import { z as z140 } from "zod";
|
|
30148
|
+
var PatchedDocumentArchiveRequestSchema = z140.object({
|
|
30149
|
+
title: z140.string().min(1).max(512).optional(),
|
|
30150
|
+
description: z140.string().optional(),
|
|
30151
|
+
is_public: z140.boolean().optional()
|
|
30190
30152
|
});
|
|
30191
30153
|
|
|
30192
30154
|
// src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts
|
|
30193
|
-
import { z as
|
|
30194
|
-
var PatchedDocumentRequestSchema =
|
|
30195
|
-
title:
|
|
30196
|
-
file_type:
|
|
30197
|
-
file_size:
|
|
30198
|
-
metadata:
|
|
30155
|
+
import { z as z141 } from "zod";
|
|
30156
|
+
var PatchedDocumentRequestSchema = z141.object({
|
|
30157
|
+
title: z141.string().min(1).max(512).optional(),
|
|
30158
|
+
file_type: z141.string().min(1).max(100).optional(),
|
|
30159
|
+
file_size: z141.int().min(0).max(9223372036854776e3).optional(),
|
|
30160
|
+
metadata: z141.string().nullable().optional()
|
|
30199
30161
|
});
|
|
30200
30162
|
|
|
30201
30163
|
// src/cfg/generated/_utils/schemas/PatchedLeadSubmissionRequest.schema.ts
|
|
30202
|
-
import { z as
|
|
30203
|
-
var PatchedLeadSubmissionRequestSchema =
|
|
30204
|
-
name:
|
|
30205
|
-
email:
|
|
30206
|
-
company:
|
|
30207
|
-
company_site:
|
|
30208
|
-
contact_type:
|
|
30209
|
-
contact_value:
|
|
30210
|
-
subject:
|
|
30211
|
-
message:
|
|
30212
|
-
extra:
|
|
30213
|
-
site_url:
|
|
30164
|
+
import { z as z142 } from "zod";
|
|
30165
|
+
var PatchedLeadSubmissionRequestSchema = z142.object({
|
|
30166
|
+
name: z142.string().min(1).max(200).optional(),
|
|
30167
|
+
email: z142.email().optional(),
|
|
30168
|
+
company: z142.string().max(200).nullable().optional(),
|
|
30169
|
+
company_site: z142.string().max(200).nullable().optional(),
|
|
30170
|
+
contact_type: z142.nativeEnum(PatchedLeadSubmissionRequestContactType).optional(),
|
|
30171
|
+
contact_value: z142.string().max(200).nullable().optional(),
|
|
30172
|
+
subject: z142.string().max(200).nullable().optional(),
|
|
30173
|
+
message: z142.string().min(1).optional(),
|
|
30174
|
+
extra: z142.string().nullable().optional(),
|
|
30175
|
+
site_url: z142.url().optional()
|
|
30214
30176
|
});
|
|
30215
30177
|
|
|
30216
30178
|
// src/cfg/generated/_utils/schemas/PatchedMessageRequest.schema.ts
|
|
30217
|
-
import { z as
|
|
30218
|
-
var PatchedMessageRequestSchema =
|
|
30219
|
-
text:
|
|
30179
|
+
import { z as z143 } from "zod";
|
|
30180
|
+
var PatchedMessageRequestSchema = z143.object({
|
|
30181
|
+
text: z143.string().min(1).optional()
|
|
30220
30182
|
});
|
|
30221
30183
|
|
|
30222
30184
|
// src/cfg/generated/_utils/schemas/PatchedNewsletterCampaignRequest.schema.ts
|
|
30223
|
-
import { z as
|
|
30224
|
-
var PatchedNewsletterCampaignRequestSchema =
|
|
30225
|
-
newsletter:
|
|
30226
|
-
subject:
|
|
30227
|
-
email_title:
|
|
30228
|
-
main_text:
|
|
30229
|
-
main_html_content:
|
|
30230
|
-
button_text:
|
|
30231
|
-
button_url:
|
|
30232
|
-
secondary_text:
|
|
30185
|
+
import { z as z144 } from "zod";
|
|
30186
|
+
var PatchedNewsletterCampaignRequestSchema = z144.object({
|
|
30187
|
+
newsletter: z144.int().optional(),
|
|
30188
|
+
subject: z144.string().min(1).max(255).optional(),
|
|
30189
|
+
email_title: z144.string().min(1).max(255).optional(),
|
|
30190
|
+
main_text: z144.string().min(1).optional(),
|
|
30191
|
+
main_html_content: z144.string().optional(),
|
|
30192
|
+
button_text: z144.string().max(100).optional(),
|
|
30193
|
+
button_url: z144.url().optional(),
|
|
30194
|
+
secondary_text: z144.string().optional()
|
|
30233
30195
|
});
|
|
30234
30196
|
|
|
30235
30197
|
// src/cfg/generated/_utils/schemas/PatchedPaymentRequest.schema.ts
|
|
30236
|
-
import { z as
|
|
30237
|
-
var PatchedPaymentRequestSchema =
|
|
30238
|
-
amount_usd:
|
|
30239
|
-
|
|
30240
|
-
|
|
30241
|
-
|
|
30242
|
-
|
|
30243
|
-
|
|
30244
|
-
|
|
30245
|
-
description: z144.string().optional(),
|
|
30246
|
-
expires_at: z144.iso.datetime().nullable().optional()
|
|
30198
|
+
import { z as z145 } from "zod";
|
|
30199
|
+
var PatchedPaymentRequestSchema = z145.object({
|
|
30200
|
+
amount_usd: z145.number().min(1).max(5e4).optional(),
|
|
30201
|
+
provider: z145.nativeEnum(PatchedPaymentRequestProvider).optional(),
|
|
30202
|
+
status: z145.nativeEnum(PatchedPaymentRequestStatus).optional(),
|
|
30203
|
+
callback_url: z145.url().nullable().optional(),
|
|
30204
|
+
cancel_url: z145.url().nullable().optional(),
|
|
30205
|
+
description: z145.string().optional(),
|
|
30206
|
+
expires_at: z145.iso.datetime().nullable().optional()
|
|
30247
30207
|
});
|
|
30248
30208
|
|
|
30249
30209
|
// src/cfg/generated/_utils/schemas/PatchedSubscriptionRequest.schema.ts
|
|
30250
|
-
import { z as
|
|
30251
|
-
var PatchedSubscriptionRequestSchema =
|
|
30252
|
-
status:
|
|
30253
|
-
tier:
|
|
30254
|
-
expires_at:
|
|
30210
|
+
import { z as z146 } from "zod";
|
|
30211
|
+
var PatchedSubscriptionRequestSchema = z146.object({
|
|
30212
|
+
status: z146.nativeEnum(PatchedSubscriptionRequestStatus).optional(),
|
|
30213
|
+
tier: z146.nativeEnum(PatchedSubscriptionRequestTier).optional(),
|
|
30214
|
+
expires_at: z146.iso.datetime().optional()
|
|
30255
30215
|
});
|
|
30256
30216
|
|
|
30257
30217
|
// src/cfg/generated/_utils/schemas/PatchedTicketRequest.schema.ts
|
|
30258
|
-
import { z as
|
|
30259
|
-
var PatchedTicketRequestSchema =
|
|
30260
|
-
user:
|
|
30261
|
-
subject:
|
|
30262
|
-
status:
|
|
30218
|
+
import { z as z147 } from "zod";
|
|
30219
|
+
var PatchedTicketRequestSchema = z147.object({
|
|
30220
|
+
user: z147.int().optional(),
|
|
30221
|
+
subject: z147.string().min(1).max(255).optional(),
|
|
30222
|
+
status: z147.nativeEnum(PatchedTicketRequestStatus).optional()
|
|
30263
30223
|
});
|
|
30264
30224
|
|
|
30265
30225
|
// src/cfg/generated/_utils/schemas/PatchedUnsubscribeRequest.schema.ts
|
|
30266
|
-
import { z as
|
|
30267
|
-
var PatchedUnsubscribeRequestSchema =
|
|
30268
|
-
subscription_id:
|
|
30226
|
+
import { z as z148 } from "zod";
|
|
30227
|
+
var PatchedUnsubscribeRequestSchema = z148.object({
|
|
30228
|
+
subscription_id: z148.int().optional()
|
|
30269
30229
|
});
|
|
30270
30230
|
|
|
30271
30231
|
// src/cfg/generated/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
30272
|
-
import { z as
|
|
30273
|
-
var PatchedUserProfileUpdateRequestSchema =
|
|
30274
|
-
first_name:
|
|
30275
|
-
last_name:
|
|
30276
|
-
company:
|
|
30277
|
-
phone:
|
|
30278
|
-
position:
|
|
30232
|
+
import { z as z149 } from "zod";
|
|
30233
|
+
var PatchedUserProfileUpdateRequestSchema = z149.object({
|
|
30234
|
+
first_name: z149.string().max(50).optional(),
|
|
30235
|
+
last_name: z149.string().max(50).optional(),
|
|
30236
|
+
company: z149.string().max(100).optional(),
|
|
30237
|
+
phone: z149.string().max(20).optional(),
|
|
30238
|
+
position: z149.string().max(100).optional()
|
|
30279
30239
|
});
|
|
30280
30240
|
|
|
30281
30241
|
// src/cfg/generated/_utils/schemas/Payment.schema.ts
|
|
30282
|
-
import { z as
|
|
30283
|
-
var PaymentSchema =
|
|
30284
|
-
id:
|
|
30285
|
-
user:
|
|
30286
|
-
amount_usd:
|
|
30287
|
-
|
|
30288
|
-
|
|
30289
|
-
|
|
30290
|
-
|
|
30291
|
-
|
|
30292
|
-
|
|
30293
|
-
|
|
30294
|
-
|
|
30295
|
-
|
|
30296
|
-
|
|
30297
|
-
|
|
30298
|
-
|
|
30299
|
-
|
|
30300
|
-
|
|
30301
|
-
|
|
30302
|
-
|
|
30303
|
-
|
|
30304
|
-
|
|
30305
|
-
|
|
30306
|
-
|
|
30307
|
-
|
|
30308
|
-
|
|
30242
|
+
import { z as z150 } from "zod";
|
|
30243
|
+
var PaymentSchema = z150.object({
|
|
30244
|
+
id: z150.uuid(),
|
|
30245
|
+
user: z150.string(),
|
|
30246
|
+
amount_usd: z150.number().min(1).max(5e4),
|
|
30247
|
+
amount_crypto: z150.number(),
|
|
30248
|
+
currency: z150.string(),
|
|
30249
|
+
network: z150.string().nullable(),
|
|
30250
|
+
provider: z150.nativeEnum(PaymentProvider).optional(),
|
|
30251
|
+
status: z150.nativeEnum(PaymentStatus).optional(),
|
|
30252
|
+
status_display: z150.string(),
|
|
30253
|
+
amount_display: z150.string(),
|
|
30254
|
+
provider_payment_id: z150.string().nullable(),
|
|
30255
|
+
payment_url: z150.url().nullable(),
|
|
30256
|
+
pay_address: z150.string().nullable(),
|
|
30257
|
+
callback_url: z150.url().nullable().optional(),
|
|
30258
|
+
cancel_url: z150.url().nullable().optional(),
|
|
30259
|
+
description: z150.string().optional(),
|
|
30260
|
+
transaction_hash: z150.string().nullable(),
|
|
30261
|
+
confirmations_count: z150.int(),
|
|
30262
|
+
created_at: z150.iso.datetime(),
|
|
30263
|
+
updated_at: z150.iso.datetime(),
|
|
30264
|
+
expires_at: z150.iso.datetime().nullable().optional(),
|
|
30265
|
+
completed_at: z150.iso.datetime().nullable(),
|
|
30266
|
+
is_pending: z150.boolean(),
|
|
30267
|
+
is_completed: z150.boolean(),
|
|
30268
|
+
is_failed: z150.boolean(),
|
|
30269
|
+
is_expired: z150.boolean()
|
|
30309
30270
|
});
|
|
30310
30271
|
|
|
30311
30272
|
// src/cfg/generated/_utils/schemas/PaymentAnalyticsResponse.schema.ts
|
|
30312
|
-
import { z as
|
|
30273
|
+
import { z as z152 } from "zod";
|
|
30313
30274
|
|
|
30314
30275
|
// src/cfg/generated/_utils/schemas/ProviderAnalyticsItem.schema.ts
|
|
30315
|
-
import { z as
|
|
30316
|
-
var ProviderAnalyticsItemSchema =
|
|
30317
|
-
provider:
|
|
30318
|
-
provider_display:
|
|
30319
|
-
total_payments:
|
|
30320
|
-
total_amount:
|
|
30321
|
-
completed_payments:
|
|
30322
|
-
success_rate:
|
|
30276
|
+
import { z as z151 } from "zod";
|
|
30277
|
+
var ProviderAnalyticsItemSchema = z151.object({
|
|
30278
|
+
provider: z151.string(),
|
|
30279
|
+
provider_display: z151.string(),
|
|
30280
|
+
total_payments: z151.int(),
|
|
30281
|
+
total_amount: z151.number(),
|
|
30282
|
+
completed_payments: z151.int(),
|
|
30283
|
+
success_rate: z151.number()
|
|
30323
30284
|
});
|
|
30324
30285
|
|
|
30325
30286
|
// src/cfg/generated/_utils/schemas/PaymentAnalyticsResponse.schema.ts
|
|
30326
|
-
var PaymentAnalyticsResponseSchema =
|
|
30327
|
-
currency_analytics:
|
|
30328
|
-
provider_analytics:
|
|
30287
|
+
var PaymentAnalyticsResponseSchema = z152.object({
|
|
30288
|
+
currency_analytics: z152.array(CurrencyAnalyticsItemSchema),
|
|
30289
|
+
provider_analytics: z152.array(ProviderAnalyticsItemSchema)
|
|
30329
30290
|
});
|
|
30330
30291
|
|
|
30331
30292
|
// src/cfg/generated/_utils/schemas/PaymentCreate.schema.ts
|
|
30332
|
-
import { z as z152 } from "zod";
|
|
30333
|
-
var PaymentCreateSchema = z152.object({
|
|
30334
|
-
amount_usd: z152.number().min(1).max(5e4),
|
|
30335
|
-
currency_code: z152.nativeEnum(PaymentCreateCurrencyCode),
|
|
30336
|
-
provider: z152.nativeEnum(PaymentCreateProvider).optional(),
|
|
30337
|
-
callback_url: z152.url().optional(),
|
|
30338
|
-
cancel_url: z152.url().optional(),
|
|
30339
|
-
description: z152.string().max(500).optional(),
|
|
30340
|
-
metadata: z152.string().optional()
|
|
30341
|
-
});
|
|
30342
|
-
|
|
30343
|
-
// src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts
|
|
30344
30293
|
import { z as z153 } from "zod";
|
|
30345
|
-
var
|
|
30294
|
+
var PaymentCreateSchema = z153.object({
|
|
30346
30295
|
amount_usd: z153.number().min(1).max(5e4),
|
|
30347
|
-
currency_code: z153.
|
|
30348
|
-
provider: z153.nativeEnum(PaymentCreateRequestProvider).optional(),
|
|
30296
|
+
currency_code: z153.string().max(10),
|
|
30349
30297
|
callback_url: z153.url().optional(),
|
|
30350
30298
|
cancel_url: z153.url().optional(),
|
|
30351
30299
|
description: z153.string().max(500).optional(),
|
|
30352
30300
|
metadata: z153.string().optional()
|
|
30353
30301
|
});
|
|
30354
30302
|
|
|
30355
|
-
// src/cfg/generated/_utils/schemas/
|
|
30303
|
+
// src/cfg/generated/_utils/schemas/PaymentCreateRequest.schema.ts
|
|
30356
30304
|
import { z as z154 } from "zod";
|
|
30357
|
-
var
|
|
30358
|
-
|
|
30359
|
-
|
|
30360
|
-
|
|
30361
|
-
|
|
30362
|
-
|
|
30363
|
-
|
|
30364
|
-
average_payment_usd: z154.number(),
|
|
30365
|
-
success_rate: z154.number(),
|
|
30366
|
-
last_payment_at: z154.iso.datetime().nullable(),
|
|
30367
|
-
payments_this_month: z154.int(),
|
|
30368
|
-
amount_this_month: z154.number(),
|
|
30369
|
-
top_currency: z154.string().nullable(),
|
|
30370
|
-
top_currency_count: z154.int()
|
|
30305
|
+
var PaymentCreateRequestSchema = z154.object({
|
|
30306
|
+
amount_usd: z154.number().min(1).max(5e4),
|
|
30307
|
+
currency_code: z154.string().min(1).max(10),
|
|
30308
|
+
callback_url: z154.url().optional(),
|
|
30309
|
+
cancel_url: z154.url().optional(),
|
|
30310
|
+
description: z154.string().max(500).optional(),
|
|
30311
|
+
metadata: z154.string().optional()
|
|
30371
30312
|
});
|
|
30372
30313
|
|
|
30373
|
-
// src/cfg/generated/_utils/schemas/
|
|
30314
|
+
// src/cfg/generated/_utils/schemas/PaymentOverview.schema.ts
|
|
30374
30315
|
import { z as z155 } from "zod";
|
|
30375
|
-
var
|
|
30376
|
-
|
|
30377
|
-
|
|
30378
|
-
|
|
30379
|
-
|
|
30380
|
-
|
|
30381
|
-
|
|
30382
|
-
|
|
30383
|
-
|
|
30384
|
-
|
|
30316
|
+
var PaymentOverviewSchema = z155.object({
|
|
30317
|
+
total_payments: z155.int(),
|
|
30318
|
+
completed_payments: z155.int(),
|
|
30319
|
+
pending_payments: z155.int(),
|
|
30320
|
+
failed_payments: z155.int(),
|
|
30321
|
+
total_amount_usd: z155.number(),
|
|
30322
|
+
completed_amount_usd: z155.number(),
|
|
30323
|
+
average_payment_usd: z155.number(),
|
|
30324
|
+
success_rate: z155.number(),
|
|
30325
|
+
last_payment_at: z155.iso.datetime().nullable(),
|
|
30326
|
+
payments_this_month: z155.int(),
|
|
30327
|
+
amount_this_month: z155.number(),
|
|
30328
|
+
top_currency: z155.string().nullable(),
|
|
30329
|
+
top_currency_count: z155.int()
|
|
30385
30330
|
});
|
|
30386
30331
|
|
|
30387
|
-
// src/cfg/generated/_utils/schemas/
|
|
30332
|
+
// src/cfg/generated/_utils/schemas/PaymentRequest.schema.ts
|
|
30388
30333
|
import { z as z156 } from "zod";
|
|
30389
|
-
var
|
|
30390
|
-
|
|
30391
|
-
|
|
30392
|
-
|
|
30393
|
-
|
|
30394
|
-
|
|
30334
|
+
var PaymentRequestSchema = z156.object({
|
|
30335
|
+
amount_usd: z156.number().min(1).max(5e4),
|
|
30336
|
+
provider: z156.nativeEnum(PaymentRequestProvider).optional(),
|
|
30337
|
+
status: z156.nativeEnum(PaymentRequestStatus).optional(),
|
|
30338
|
+
callback_url: z156.url().nullable().optional(),
|
|
30339
|
+
cancel_url: z156.url().nullable().optional(),
|
|
30340
|
+
description: z156.string().optional(),
|
|
30341
|
+
expires_at: z156.iso.datetime().nullable().optional()
|
|
30342
|
+
});
|
|
30343
|
+
|
|
30344
|
+
// src/cfg/generated/_utils/schemas/PaymentsChartResponse.schema.ts
|
|
30345
|
+
import { z as z157 } from "zod";
|
|
30346
|
+
var PaymentsChartResponseSchema = z157.object({
|
|
30347
|
+
series: z157.array(ChartSeriesSchema),
|
|
30348
|
+
period: z157.string(),
|
|
30349
|
+
total_amount: z157.number(),
|
|
30350
|
+
total_payments: z157.int(),
|
|
30351
|
+
success_rate: z157.number()
|
|
30395
30352
|
});
|
|
30396
30353
|
|
|
30397
30354
|
// src/cfg/generated/_utils/schemas/PaymentsDashboardOverview.schema.ts
|
|
30398
|
-
import { z as
|
|
30355
|
+
import { z as z160 } from "zod";
|
|
30399
30356
|
|
|
30400
30357
|
// src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts
|
|
30401
|
-
import { z as
|
|
30358
|
+
import { z as z159 } from "zod";
|
|
30402
30359
|
|
|
30403
30360
|
// src/cfg/generated/_utils/schemas/SubscriptionOverview.schema.ts
|
|
30404
|
-
import { z as
|
|
30405
|
-
var SubscriptionOverviewSchema =
|
|
30406
|
-
tier:
|
|
30407
|
-
tier_display:
|
|
30408
|
-
status:
|
|
30409
|
-
status_display:
|
|
30410
|
-
status_color:
|
|
30411
|
-
is_active:
|
|
30412
|
-
is_expired:
|
|
30413
|
-
days_remaining:
|
|
30414
|
-
requests_per_hour:
|
|
30415
|
-
requests_per_day:
|
|
30416
|
-
total_requests:
|
|
30417
|
-
usage_percentage:
|
|
30418
|
-
monthly_cost_usd:
|
|
30419
|
-
cost_display:
|
|
30420
|
-
starts_at:
|
|
30421
|
-
expires_at:
|
|
30422
|
-
last_request_at:
|
|
30423
|
-
endpoint_groups_count:
|
|
30424
|
-
endpoint_groups:
|
|
30361
|
+
import { z as z158 } from "zod";
|
|
30362
|
+
var SubscriptionOverviewSchema = z158.object({
|
|
30363
|
+
tier: z158.string(),
|
|
30364
|
+
tier_display: z158.string(),
|
|
30365
|
+
status: z158.string(),
|
|
30366
|
+
status_display: z158.string(),
|
|
30367
|
+
status_color: z158.string(),
|
|
30368
|
+
is_active: z158.boolean(),
|
|
30369
|
+
is_expired: z158.boolean(),
|
|
30370
|
+
days_remaining: z158.int(),
|
|
30371
|
+
requests_per_hour: z158.int(),
|
|
30372
|
+
requests_per_day: z158.int(),
|
|
30373
|
+
total_requests: z158.int(),
|
|
30374
|
+
usage_percentage: z158.number(),
|
|
30375
|
+
monthly_cost_usd: z158.number(),
|
|
30376
|
+
cost_display: z158.string(),
|
|
30377
|
+
starts_at: z158.iso.datetime(),
|
|
30378
|
+
expires_at: z158.iso.datetime(),
|
|
30379
|
+
last_request_at: z158.iso.datetime().nullable(),
|
|
30380
|
+
endpoint_groups_count: z158.int(),
|
|
30381
|
+
endpoint_groups: z158.array(z158.string())
|
|
30425
30382
|
});
|
|
30426
30383
|
|
|
30427
30384
|
// src/cfg/generated/_utils/schemas/PaymentsMetrics.schema.ts
|
|
30428
|
-
var PaymentsMetricsSchema =
|
|
30385
|
+
var PaymentsMetricsSchema = z159.object({
|
|
30429
30386
|
balance: BalanceOverviewSchema,
|
|
30430
|
-
subscription: SubscriptionOverviewSchema,
|
|
30387
|
+
subscription: SubscriptionOverviewSchema.nullable(),
|
|
30431
30388
|
api_keys: APIKeysOverviewSchema,
|
|
30432
30389
|
payments: PaymentOverviewSchema
|
|
30433
30390
|
});
|
|
30434
30391
|
|
|
30435
30392
|
// src/cfg/generated/_utils/schemas/PaymentsDashboardOverview.schema.ts
|
|
30436
|
-
var PaymentsDashboardOverviewSchema =
|
|
30393
|
+
var PaymentsDashboardOverviewSchema = z160.object({
|
|
30437
30394
|
metrics: PaymentsMetricsSchema,
|
|
30438
|
-
recent_payments:
|
|
30439
|
-
recent_transactions:
|
|
30395
|
+
recent_payments: z160.array(RecentPaymentSchema),
|
|
30396
|
+
recent_transactions: z160.array(RecentTransactionSchema),
|
|
30440
30397
|
chart_data: PaymentsChartResponseSchema
|
|
30441
30398
|
});
|
|
30442
30399
|
|
|
30443
30400
|
// src/cfg/generated/_utils/schemas/PublicDocument.schema.ts
|
|
30444
|
-
import { z as
|
|
30445
|
-
var PublicDocumentSchema =
|
|
30446
|
-
id:
|
|
30447
|
-
title:
|
|
30448
|
-
content:
|
|
30401
|
+
import { z as z161 } from "zod";
|
|
30402
|
+
var PublicDocumentSchema = z161.object({
|
|
30403
|
+
id: z161.uuid(),
|
|
30404
|
+
title: z161.string().max(512),
|
|
30405
|
+
content: z161.string(),
|
|
30449
30406
|
category: PublicCategorySchema,
|
|
30450
|
-
created_at:
|
|
30451
|
-
updated_at:
|
|
30407
|
+
created_at: z161.iso.datetime(),
|
|
30408
|
+
updated_at: z161.iso.datetime()
|
|
30452
30409
|
});
|
|
30453
30410
|
|
|
30454
30411
|
// src/cfg/generated/_utils/schemas/QueueAction.schema.ts
|
|
30455
|
-
import { z as
|
|
30456
|
-
var QueueActionSchema =
|
|
30457
|
-
action:
|
|
30458
|
-
queue_names:
|
|
30412
|
+
import { z as z162 } from "zod";
|
|
30413
|
+
var QueueActionSchema = z162.object({
|
|
30414
|
+
action: z162.nativeEnum(QueueActionAction),
|
|
30415
|
+
queue_names: z162.array(z162.string()).optional()
|
|
30459
30416
|
});
|
|
30460
30417
|
|
|
30461
30418
|
// src/cfg/generated/_utils/schemas/QueueActionRequest.schema.ts
|
|
30462
|
-
import { z as
|
|
30463
|
-
var QueueActionRequestSchema =
|
|
30464
|
-
action:
|
|
30465
|
-
queue_names:
|
|
30419
|
+
import { z as z163 } from "zod";
|
|
30420
|
+
var QueueActionRequestSchema = z163.object({
|
|
30421
|
+
action: z163.nativeEnum(QueueActionRequestAction),
|
|
30422
|
+
queue_names: z163.array(z163.string().min(1)).optional()
|
|
30466
30423
|
});
|
|
30467
30424
|
|
|
30468
30425
|
// src/cfg/generated/_utils/schemas/QueueStatus.schema.ts
|
|
30469
|
-
import { z as
|
|
30470
|
-
var QueueStatusSchema =
|
|
30471
|
-
queues:
|
|
30472
|
-
workers:
|
|
30473
|
-
redis_connected:
|
|
30474
|
-
timestamp:
|
|
30475
|
-
error:
|
|
30426
|
+
import { z as z164 } from "zod";
|
|
30427
|
+
var QueueStatusSchema = z164.object({
|
|
30428
|
+
queues: z164.record(z164.string(), z164.any()),
|
|
30429
|
+
workers: z164.int(),
|
|
30430
|
+
redis_connected: z164.boolean(),
|
|
30431
|
+
timestamp: z164.string(),
|
|
30432
|
+
error: z164.string().optional()
|
|
30476
30433
|
});
|
|
30477
30434
|
|
|
30478
30435
|
// src/cfg/generated/_utils/schemas/QuickHealth.schema.ts
|
|
30479
|
-
import { z as
|
|
30480
|
-
var QuickHealthSchema =
|
|
30481
|
-
status:
|
|
30482
|
-
timestamp:
|
|
30483
|
-
error:
|
|
30436
|
+
import { z as z165 } from "zod";
|
|
30437
|
+
var QuickHealthSchema = z165.object({
|
|
30438
|
+
status: z165.string(),
|
|
30439
|
+
timestamp: z165.iso.datetime(),
|
|
30440
|
+
error: z165.string().optional()
|
|
30484
30441
|
});
|
|
30485
30442
|
|
|
30486
30443
|
// src/cfg/generated/_utils/schemas/SendCampaignRequest.schema.ts
|
|
30487
|
-
import { z as
|
|
30488
|
-
var SendCampaignRequestSchema =
|
|
30489
|
-
campaign_id:
|
|
30444
|
+
import { z as z166 } from "zod";
|
|
30445
|
+
var SendCampaignRequestSchema = z166.object({
|
|
30446
|
+
campaign_id: z166.int()
|
|
30490
30447
|
});
|
|
30491
30448
|
|
|
30492
30449
|
// src/cfg/generated/_utils/schemas/SendCampaignResponse.schema.ts
|
|
30493
|
-
import { z as
|
|
30494
|
-
var SendCampaignResponseSchema =
|
|
30495
|
-
success:
|
|
30496
|
-
message:
|
|
30497
|
-
sent_count:
|
|
30498
|
-
error:
|
|
30450
|
+
import { z as z167 } from "zod";
|
|
30451
|
+
var SendCampaignResponseSchema = z167.object({
|
|
30452
|
+
success: z167.boolean(),
|
|
30453
|
+
message: z167.string().optional(),
|
|
30454
|
+
sent_count: z167.int().optional(),
|
|
30455
|
+
error: z167.string().optional()
|
|
30499
30456
|
});
|
|
30500
30457
|
|
|
30501
30458
|
// src/cfg/generated/_utils/schemas/SubscribeRequest.schema.ts
|
|
30502
|
-
import { z as
|
|
30503
|
-
var SubscribeRequestSchema =
|
|
30504
|
-
newsletter_id:
|
|
30505
|
-
email:
|
|
30459
|
+
import { z as z168 } from "zod";
|
|
30460
|
+
var SubscribeRequestSchema = z168.object({
|
|
30461
|
+
newsletter_id: z168.int(),
|
|
30462
|
+
email: z168.email()
|
|
30506
30463
|
});
|
|
30507
30464
|
|
|
30508
30465
|
// src/cfg/generated/_utils/schemas/SubscribeResponse.schema.ts
|
|
30509
|
-
import { z as
|
|
30510
|
-
var SubscribeResponseSchema =
|
|
30511
|
-
success:
|
|
30512
|
-
message:
|
|
30513
|
-
subscription_id:
|
|
30466
|
+
import { z as z169 } from "zod";
|
|
30467
|
+
var SubscribeResponseSchema = z169.object({
|
|
30468
|
+
success: z169.boolean(),
|
|
30469
|
+
message: z169.string(),
|
|
30470
|
+
subscription_id: z169.int().optional()
|
|
30514
30471
|
});
|
|
30515
30472
|
|
|
30516
30473
|
// src/cfg/generated/_utils/schemas/Subscription.schema.ts
|
|
30517
|
-
import { z as
|
|
30518
|
-
var SubscriptionSchema =
|
|
30519
|
-
id:
|
|
30520
|
-
user:
|
|
30474
|
+
import { z as z170 } from "zod";
|
|
30475
|
+
var SubscriptionSchema = z170.object({
|
|
30476
|
+
id: z170.uuid(),
|
|
30477
|
+
user: z170.string(),
|
|
30521
30478
|
tariff: TariffSchema,
|
|
30522
30479
|
endpoint_group: EndpointGroupSchema,
|
|
30523
|
-
status:
|
|
30524
|
-
status_display:
|
|
30525
|
-
status_color:
|
|
30526
|
-
tier:
|
|
30527
|
-
total_requests:
|
|
30528
|
-
usage_percentage:
|
|
30529
|
-
last_request_at:
|
|
30530
|
-
expires_at:
|
|
30531
|
-
is_active:
|
|
30532
|
-
is_expired:
|
|
30533
|
-
created_at:
|
|
30534
|
-
updated_at:
|
|
30480
|
+
status: z170.nativeEnum(SubscriptionStatus).optional(),
|
|
30481
|
+
status_display: z170.string(),
|
|
30482
|
+
status_color: z170.string(),
|
|
30483
|
+
tier: z170.nativeEnum(SubscriptionTier).optional(),
|
|
30484
|
+
total_requests: z170.int(),
|
|
30485
|
+
usage_percentage: z170.number(),
|
|
30486
|
+
last_request_at: z170.iso.datetime().nullable(),
|
|
30487
|
+
expires_at: z170.iso.datetime(),
|
|
30488
|
+
is_active: z170.boolean(),
|
|
30489
|
+
is_expired: z170.boolean(),
|
|
30490
|
+
created_at: z170.iso.datetime(),
|
|
30491
|
+
updated_at: z170.iso.datetime()
|
|
30535
30492
|
});
|
|
30536
30493
|
|
|
30537
30494
|
// src/cfg/generated/_utils/schemas/SubscriptionCreate.schema.ts
|
|
30538
|
-
import { z as z170 } from "zod";
|
|
30539
|
-
var SubscriptionCreateSchema = z170.object({
|
|
30540
|
-
tariff_id: z170.int().min(1),
|
|
30541
|
-
endpoint_group_id: z170.int().min(1).nullable().optional(),
|
|
30542
|
-
duration_days: z170.int().min(1).max(365).optional()
|
|
30543
|
-
});
|
|
30544
|
-
|
|
30545
|
-
// src/cfg/generated/_utils/schemas/SubscriptionCreateRequest.schema.ts
|
|
30546
30495
|
import { z as z171 } from "zod";
|
|
30547
|
-
var
|
|
30496
|
+
var SubscriptionCreateSchema = z171.object({
|
|
30548
30497
|
tariff_id: z171.int().min(1),
|
|
30549
30498
|
endpoint_group_id: z171.int().min(1).nullable().optional(),
|
|
30550
30499
|
duration_days: z171.int().min(1).max(365).optional()
|
|
30551
30500
|
});
|
|
30552
30501
|
|
|
30553
|
-
// src/cfg/generated/_utils/schemas/
|
|
30502
|
+
// src/cfg/generated/_utils/schemas/SubscriptionCreateRequest.schema.ts
|
|
30554
30503
|
import { z as z172 } from "zod";
|
|
30555
|
-
var
|
|
30556
|
-
|
|
30557
|
-
|
|
30558
|
-
|
|
30504
|
+
var SubscriptionCreateRequestSchema = z172.object({
|
|
30505
|
+
tariff_id: z172.int().min(1),
|
|
30506
|
+
endpoint_group_id: z172.int().min(1).nullable().optional(),
|
|
30507
|
+
duration_days: z172.int().min(1).max(365).optional()
|
|
30559
30508
|
});
|
|
30560
30509
|
|
|
30561
|
-
// src/cfg/generated/_utils/schemas/
|
|
30510
|
+
// src/cfg/generated/_utils/schemas/SubscriptionRequest.schema.ts
|
|
30562
30511
|
import { z as z173 } from "zod";
|
|
30563
|
-
var
|
|
30564
|
-
|
|
30565
|
-
|
|
30512
|
+
var SubscriptionRequestSchema = z173.object({
|
|
30513
|
+
status: z173.nativeEnum(SubscriptionRequestStatus).optional(),
|
|
30514
|
+
tier: z173.nativeEnum(SubscriptionRequestTier).optional(),
|
|
30515
|
+
expires_at: z173.iso.datetime()
|
|
30566
30516
|
});
|
|
30567
30517
|
|
|
30568
|
-
// src/cfg/generated/_utils/schemas/
|
|
30518
|
+
// src/cfg/generated/_utils/schemas/SuccessResponse.schema.ts
|
|
30569
30519
|
import { z as z174 } from "zod";
|
|
30570
|
-
var
|
|
30520
|
+
var SuccessResponseSchema = z174.object({
|
|
30571
30521
|
success: z174.boolean(),
|
|
30572
|
-
|
|
30573
|
-
total_count: z174.int(),
|
|
30574
|
-
timestamp: z174.iso.datetime()
|
|
30522
|
+
message: z174.string()
|
|
30575
30523
|
});
|
|
30576
30524
|
|
|
30577
|
-
// src/cfg/generated/_utils/schemas/
|
|
30525
|
+
// src/cfg/generated/_utils/schemas/SupportedCurrencies.schema.ts
|
|
30578
30526
|
import { z as z175 } from "zod";
|
|
30579
|
-
var
|
|
30580
|
-
|
|
30581
|
-
|
|
30582
|
-
timestamp: z175.string(),
|
|
30583
|
-
error: z175.string().optional()
|
|
30527
|
+
var SupportedCurrenciesSchema = z175.object({
|
|
30528
|
+
provider: z175.nativeEnum(SupportedCurrenciesProvider).optional(),
|
|
30529
|
+
currency_type: z175.nativeEnum(SupportedCurrenciesCurrencyType).optional()
|
|
30584
30530
|
});
|
|
30585
30531
|
|
|
30586
|
-
// src/cfg/generated/_utils/schemas/
|
|
30532
|
+
// src/cfg/generated/_utils/schemas/SupportedProviders.schema.ts
|
|
30587
30533
|
import { z as z176 } from "zod";
|
|
30588
|
-
var
|
|
30589
|
-
|
|
30590
|
-
|
|
30591
|
-
|
|
30534
|
+
var SupportedProvidersSchema = z176.object({
|
|
30535
|
+
success: z176.boolean(),
|
|
30536
|
+
providers: z176.string(),
|
|
30537
|
+
total_count: z176.int(),
|
|
30538
|
+
timestamp: z176.iso.datetime()
|
|
30592
30539
|
});
|
|
30593
30540
|
|
|
30594
|
-
// src/cfg/generated/_utils/schemas/
|
|
30541
|
+
// src/cfg/generated/_utils/schemas/TaskStatistics.schema.ts
|
|
30595
30542
|
import { z as z177 } from "zod";
|
|
30596
|
-
var
|
|
30597
|
-
|
|
30598
|
-
|
|
30599
|
-
|
|
30543
|
+
var TaskStatisticsSchema = z177.object({
|
|
30544
|
+
statistics: z177.record(z177.string(), z177.any()),
|
|
30545
|
+
recent_tasks: z177.array(z177.record(z177.string(), z177.any())),
|
|
30546
|
+
timestamp: z177.string(),
|
|
30547
|
+
error: z177.string().optional()
|
|
30600
30548
|
});
|
|
30601
30549
|
|
|
30602
|
-
// src/cfg/generated/_utils/schemas/
|
|
30550
|
+
// src/cfg/generated/_utils/schemas/TestEmailRequest.schema.ts
|
|
30603
30551
|
import { z as z178 } from "zod";
|
|
30604
|
-
var
|
|
30605
|
-
|
|
30606
|
-
|
|
30552
|
+
var TestEmailRequestSchema = z178.object({
|
|
30553
|
+
email: z178.email(),
|
|
30554
|
+
subject: z178.string().min(1).max(255).optional(),
|
|
30555
|
+
message: z178.string().min(1).optional()
|
|
30607
30556
|
});
|
|
30608
30557
|
|
|
30609
|
-
// src/cfg/generated/_utils/schemas/
|
|
30558
|
+
// src/cfg/generated/_utils/schemas/TicketRequest.schema.ts
|
|
30610
30559
|
import { z as z179 } from "zod";
|
|
30611
|
-
var
|
|
30612
|
-
|
|
30560
|
+
var TicketRequestSchema = z179.object({
|
|
30561
|
+
user: z179.int(),
|
|
30562
|
+
subject: z179.string().min(1).max(255),
|
|
30563
|
+
status: z179.nativeEnum(TicketRequestStatus).optional()
|
|
30613
30564
|
});
|
|
30614
30565
|
|
|
30615
|
-
// src/cfg/generated/_utils/schemas/
|
|
30566
|
+
// src/cfg/generated/_utils/schemas/TokenRefresh.schema.ts
|
|
30616
30567
|
import { z as z180 } from "zod";
|
|
30617
|
-
var
|
|
30618
|
-
|
|
30568
|
+
var TokenRefreshSchema = z180.object({
|
|
30569
|
+
access: z180.string(),
|
|
30570
|
+
refresh: z180.string()
|
|
30619
30571
|
});
|
|
30620
30572
|
|
|
30621
|
-
// src/cfg/generated/_utils/schemas/
|
|
30573
|
+
// src/cfg/generated/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
30622
30574
|
import { z as z181 } from "zod";
|
|
30623
|
-
var
|
|
30624
|
-
|
|
30575
|
+
var TokenRefreshRequestSchema = z181.object({
|
|
30576
|
+
refresh: z181.string().min(1)
|
|
30625
30577
|
});
|
|
30626
30578
|
|
|
30627
|
-
// src/cfg/generated/_utils/schemas/
|
|
30579
|
+
// src/cfg/generated/_utils/schemas/Unsubscribe.schema.ts
|
|
30628
30580
|
import { z as z182 } from "zod";
|
|
30629
|
-
var
|
|
30630
|
-
|
|
30631
|
-
last_name: z182.string().max(50).optional(),
|
|
30632
|
-
company: z182.string().max(100).optional(),
|
|
30633
|
-
phone: z182.string().max(20).optional(),
|
|
30634
|
-
position: z182.string().max(100).optional()
|
|
30581
|
+
var UnsubscribeSchema = z182.object({
|
|
30582
|
+
subscription_id: z182.int()
|
|
30635
30583
|
});
|
|
30636
30584
|
|
|
30637
|
-
// src/cfg/generated/_utils/schemas/
|
|
30585
|
+
// src/cfg/generated/_utils/schemas/UnsubscribeRequest.schema.ts
|
|
30638
30586
|
import { z as z183 } from "zod";
|
|
30639
|
-
var
|
|
30640
|
-
|
|
30641
|
-
failed_count: z183.int(),
|
|
30642
|
-
total_tokens: z183.int(),
|
|
30643
|
-
total_cost: z183.number(),
|
|
30644
|
-
success_rate: z183.number(),
|
|
30645
|
-
errors: z183.array(z183.string())
|
|
30587
|
+
var UnsubscribeRequestSchema = z183.object({
|
|
30588
|
+
subscription_id: z183.int()
|
|
30646
30589
|
});
|
|
30647
30590
|
|
|
30648
|
-
// src/cfg/generated/_utils/schemas/
|
|
30591
|
+
// src/cfg/generated/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
30649
30592
|
import { z as z184 } from "zod";
|
|
30650
|
-
var
|
|
30651
|
-
|
|
30652
|
-
|
|
30653
|
-
|
|
30654
|
-
|
|
30655
|
-
|
|
30656
|
-
total_cost: z184.number(),
|
|
30657
|
-
avg_tokens_per_chunk: z184.number(),
|
|
30658
|
-
avg_cost_per_chunk: z184.number()
|
|
30593
|
+
var UserProfileUpdateRequestSchema = z184.object({
|
|
30594
|
+
first_name: z184.string().max(50).optional(),
|
|
30595
|
+
last_name: z184.string().max(50).optional(),
|
|
30596
|
+
company: z184.string().max(100).optional(),
|
|
30597
|
+
phone: z184.string().max(20).optional(),
|
|
30598
|
+
position: z184.string().max(100).optional()
|
|
30659
30599
|
});
|
|
30660
30600
|
|
|
30661
|
-
// src/cfg/generated/_utils/schemas/
|
|
30601
|
+
// src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts
|
|
30602
|
+
import { z as z185 } from "zod";
|
|
30603
|
+
var VectorizationResultSchema = z185.object({
|
|
30604
|
+
vectorized_count: z185.int(),
|
|
30605
|
+
failed_count: z185.int(),
|
|
30606
|
+
total_tokens: z185.int(),
|
|
30607
|
+
total_cost: z185.number(),
|
|
30608
|
+
success_rate: z185.number(),
|
|
30609
|
+
errors: z185.array(z185.string())
|
|
30610
|
+
});
|
|
30611
|
+
|
|
30612
|
+
// src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts
|
|
30662
30613
|
import { z as z186 } from "zod";
|
|
30614
|
+
var VectorizationStatisticsSchema = z186.object({
|
|
30615
|
+
total_chunks: z186.int(),
|
|
30616
|
+
vectorized_chunks: z186.int(),
|
|
30617
|
+
pending_chunks: z186.int(),
|
|
30618
|
+
vectorization_rate: z186.number(),
|
|
30619
|
+
total_tokens: z186.int(),
|
|
30620
|
+
total_cost: z186.number(),
|
|
30621
|
+
avg_tokens_per_chunk: z186.number(),
|
|
30622
|
+
avg_cost_per_chunk: z186.number()
|
|
30623
|
+
});
|
|
30624
|
+
|
|
30625
|
+
// src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts
|
|
30626
|
+
import { z as z188 } from "zod";
|
|
30663
30627
|
|
|
30664
30628
|
// src/cfg/generated/_utils/schemas/WebhookEventRequest.schema.ts
|
|
30665
|
-
import { z as
|
|
30666
|
-
var WebhookEventRequestSchema =
|
|
30667
|
-
provider:
|
|
30668
|
-
event_type:
|
|
30669
|
-
status:
|
|
30670
|
-
timestamp:
|
|
30671
|
-
payload_size:
|
|
30672
|
-
response_time:
|
|
30673
|
-
retry_count:
|
|
30674
|
-
error_message:
|
|
30675
|
-
payload_preview:
|
|
30676
|
-
response_status_code:
|
|
30677
|
-
webhook_url:
|
|
30629
|
+
import { z as z187 } from "zod";
|
|
30630
|
+
var WebhookEventRequestSchema = z187.object({
|
|
30631
|
+
provider: z187.string().min(1).max(50),
|
|
30632
|
+
event_type: z187.string().min(1).max(100),
|
|
30633
|
+
status: z187.nativeEnum(WebhookEventRequestStatus),
|
|
30634
|
+
timestamp: z187.iso.datetime(),
|
|
30635
|
+
payload_size: z187.int(),
|
|
30636
|
+
response_time: z187.int(),
|
|
30637
|
+
retry_count: z187.int().optional(),
|
|
30638
|
+
error_message: z187.string().max(500).optional(),
|
|
30639
|
+
payload_preview: z187.string().max(200).optional(),
|
|
30640
|
+
response_status_code: z187.int().optional(),
|
|
30641
|
+
webhook_url: z187.url().optional()
|
|
30678
30642
|
});
|
|
30679
30643
|
|
|
30680
30644
|
// src/cfg/generated/_utils/schemas/WebhookEventListRequest.schema.ts
|
|
30681
|
-
var WebhookEventListRequestSchema =
|
|
30682
|
-
events:
|
|
30683
|
-
total:
|
|
30684
|
-
page:
|
|
30685
|
-
per_page:
|
|
30686
|
-
has_next:
|
|
30687
|
-
has_previous:
|
|
30645
|
+
var WebhookEventListRequestSchema = z188.object({
|
|
30646
|
+
events: z188.array(WebhookEventRequestSchema),
|
|
30647
|
+
total: z188.int(),
|
|
30648
|
+
page: z188.int(),
|
|
30649
|
+
per_page: z188.int(),
|
|
30650
|
+
has_next: z188.boolean(),
|
|
30651
|
+
has_previous: z188.boolean()
|
|
30688
30652
|
});
|
|
30689
30653
|
|
|
30690
30654
|
// src/cfg/generated/_utils/schemas/WebhookHealth.schema.ts
|
|
30691
|
-
import { z as
|
|
30692
|
-
var WebhookHealthSchema =
|
|
30693
|
-
status:
|
|
30694
|
-
timestamp:
|
|
30695
|
-
providers:
|
|
30655
|
+
import { z as z189 } from "zod";
|
|
30656
|
+
var WebhookHealthSchema = z189.object({
|
|
30657
|
+
status: z189.string().max(20),
|
|
30658
|
+
timestamp: z189.iso.datetime(),
|
|
30659
|
+
providers: z189.string()
|
|
30696
30660
|
});
|
|
30697
30661
|
|
|
30698
30662
|
// src/cfg/generated/_utils/schemas/WebhookProviderStats.schema.ts
|
|
30699
|
-
import { z as
|
|
30700
|
-
var WebhookProviderStatsSchema =
|
|
30701
|
-
total:
|
|
30702
|
-
successful:
|
|
30703
|
-
failed:
|
|
30704
|
-
pending:
|
|
30705
|
-
success_rate:
|
|
30663
|
+
import { z as z190 } from "zod";
|
|
30664
|
+
var WebhookProviderStatsSchema = z190.object({
|
|
30665
|
+
total: z190.int(),
|
|
30666
|
+
successful: z190.int(),
|
|
30667
|
+
failed: z190.int(),
|
|
30668
|
+
pending: z190.int().optional(),
|
|
30669
|
+
success_rate: z190.number()
|
|
30706
30670
|
});
|
|
30707
30671
|
|
|
30708
30672
|
// src/cfg/generated/_utils/schemas/WebhookProviderStatsRequest.schema.ts
|
|
30709
|
-
import { z as
|
|
30710
|
-
var WebhookProviderStatsRequestSchema =
|
|
30711
|
-
total:
|
|
30712
|
-
successful:
|
|
30713
|
-
failed:
|
|
30714
|
-
pending:
|
|
30715
|
-
success_rate:
|
|
30673
|
+
import { z as z191 } from "zod";
|
|
30674
|
+
var WebhookProviderStatsRequestSchema = z191.object({
|
|
30675
|
+
total: z191.int(),
|
|
30676
|
+
successful: z191.int(),
|
|
30677
|
+
failed: z191.int(),
|
|
30678
|
+
pending: z191.int().optional(),
|
|
30679
|
+
success_rate: z191.number()
|
|
30716
30680
|
});
|
|
30717
30681
|
|
|
30718
30682
|
// src/cfg/generated/_utils/schemas/WebhookResponse.schema.ts
|
|
30719
|
-
import { z as
|
|
30720
|
-
var WebhookResponseSchema =
|
|
30721
|
-
success:
|
|
30722
|
-
message:
|
|
30723
|
-
payment_id:
|
|
30724
|
-
provider_payment_id:
|
|
30725
|
-
processed_at:
|
|
30683
|
+
import { z as z192 } from "zod";
|
|
30684
|
+
var WebhookResponseSchema = z192.object({
|
|
30685
|
+
success: z192.boolean(),
|
|
30686
|
+
message: z192.string().max(500),
|
|
30687
|
+
payment_id: z192.string().max(256).optional(),
|
|
30688
|
+
provider_payment_id: z192.string().max(256).optional(),
|
|
30689
|
+
processed_at: z192.iso.datetime().optional()
|
|
30726
30690
|
});
|
|
30727
30691
|
|
|
30728
30692
|
// src/cfg/generated/_utils/schemas/WebhookResponseRequest.schema.ts
|
|
30729
|
-
import { z as
|
|
30730
|
-
var WebhookResponseRequestSchema =
|
|
30731
|
-
success:
|
|
30732
|
-
message:
|
|
30733
|
-
payment_id:
|
|
30734
|
-
provider_payment_id:
|
|
30735
|
-
processed_at:
|
|
30693
|
+
import { z as z193 } from "zod";
|
|
30694
|
+
var WebhookResponseRequestSchema = z193.object({
|
|
30695
|
+
success: z193.boolean(),
|
|
30696
|
+
message: z193.string().min(1).max(500),
|
|
30697
|
+
payment_id: z193.string().min(1).max(256).optional(),
|
|
30698
|
+
provider_payment_id: z193.string().min(1).max(256).optional(),
|
|
30699
|
+
processed_at: z193.iso.datetime().optional()
|
|
30736
30700
|
});
|
|
30737
30701
|
|
|
30738
30702
|
// src/cfg/generated/_utils/schemas/WebhookStatsRequest.schema.ts
|
|
30739
|
-
import { z as
|
|
30740
|
-
var WebhookStatsRequestSchema =
|
|
30741
|
-
total:
|
|
30742
|
-
successful:
|
|
30743
|
-
failed:
|
|
30744
|
-
pending:
|
|
30745
|
-
success_rate:
|
|
30746
|
-
providers:
|
|
30747
|
-
last_24h:
|
|
30748
|
-
avg_response_time:
|
|
30749
|
-
max_response_time:
|
|
30703
|
+
import { z as z194 } from "zod";
|
|
30704
|
+
var WebhookStatsRequestSchema = z194.object({
|
|
30705
|
+
total: z194.int(),
|
|
30706
|
+
successful: z194.int(),
|
|
30707
|
+
failed: z194.int(),
|
|
30708
|
+
pending: z194.int(),
|
|
30709
|
+
success_rate: z194.number(),
|
|
30710
|
+
providers: z194.record(z194.string(), z194.any()),
|
|
30711
|
+
last_24h: z194.record(z194.string(), z194.any()),
|
|
30712
|
+
avg_response_time: z194.number(),
|
|
30713
|
+
max_response_time: z194.int()
|
|
30750
30714
|
});
|
|
30751
30715
|
|
|
30752
30716
|
// src/cfg/generated/_utils/schemas/WorkerAction.schema.ts
|
|
30753
|
-
import { z as
|
|
30754
|
-
var WorkerActionSchema =
|
|
30755
|
-
action:
|
|
30756
|
-
processes:
|
|
30757
|
-
threads:
|
|
30717
|
+
import { z as z195 } from "zod";
|
|
30718
|
+
var WorkerActionSchema = z195.object({
|
|
30719
|
+
action: z195.nativeEnum(WorkerActionAction),
|
|
30720
|
+
processes: z195.int().min(1).max(10).optional(),
|
|
30721
|
+
threads: z195.int().min(1).max(20).optional()
|
|
30758
30722
|
});
|
|
30759
30723
|
|
|
30760
30724
|
// src/cfg/generated/_utils/schemas/WorkerActionRequest.schema.ts
|
|
30761
|
-
import { z as
|
|
30762
|
-
var WorkerActionRequestSchema =
|
|
30763
|
-
action:
|
|
30764
|
-
processes:
|
|
30765
|
-
threads:
|
|
30725
|
+
import { z as z196 } from "zod";
|
|
30726
|
+
var WorkerActionRequestSchema = z196.object({
|
|
30727
|
+
action: z196.nativeEnum(WorkerActionRequestAction),
|
|
30728
|
+
processes: z196.int().min(1).max(10).optional(),
|
|
30729
|
+
threads: z196.int().min(1).max(20).optional()
|
|
30766
30730
|
});
|
|
30767
30731
|
|
|
30768
30732
|
// src/cfg/generated/_utils/fetchers/index.ts
|
|
@@ -31878,10 +31842,10 @@ async function getPaymentsCurrenciesHealthRetrieve(client) {
|
|
|
31878
31842
|
const response = await api2.cfg_payments.currenciesHealthRetrieve();
|
|
31879
31843
|
return CurrencySchema.parse(response);
|
|
31880
31844
|
}
|
|
31881
|
-
async function getPaymentsCurrenciesRatesRetrieve(
|
|
31845
|
+
async function getPaymentsCurrenciesRatesRetrieve(client) {
|
|
31882
31846
|
const api2 = client || getAPIInstance();
|
|
31883
|
-
const response = await api2.cfg_payments.currenciesRatesRetrieve(
|
|
31884
|
-
return
|
|
31847
|
+
const response = await api2.cfg_payments.currenciesRatesRetrieve();
|
|
31848
|
+
return CurrencyRatesSchema.parse(response);
|
|
31885
31849
|
}
|
|
31886
31850
|
async function getPaymentsCurrenciesStableRetrieve(client) {
|
|
31887
31851
|
const api2 = client || getAPIInstance();
|
|
@@ -31893,10 +31857,10 @@ async function getPaymentsCurrenciesStatsRetrieve(client) {
|
|
|
31893
31857
|
const response = await api2.cfg_payments.currenciesStatsRetrieve();
|
|
31894
31858
|
return CurrencySchema.parse(response);
|
|
31895
31859
|
}
|
|
31896
|
-
async function getPaymentsCurrenciesSupportedRetrieve(
|
|
31860
|
+
async function getPaymentsCurrenciesSupportedRetrieve(client) {
|
|
31897
31861
|
const api2 = client || getAPIInstance();
|
|
31898
|
-
const response = await api2.cfg_payments.currenciesSupportedRetrieve(
|
|
31899
|
-
return
|
|
31862
|
+
const response = await api2.cfg_payments.currenciesSupportedRetrieve();
|
|
31863
|
+
return SupportedCurrenciesSchema.parse(response);
|
|
31900
31864
|
}
|
|
31901
31865
|
async function getPaymentsEndpointGroupsList(params, client) {
|
|
31902
31866
|
const api2 = client || getAPIInstance();
|
|
@@ -34044,10 +34008,10 @@ function usePaymentsCurrenciesHealthRetrieve(client) {
|
|
|
34044
34008
|
() => getPaymentsCurrenciesHealthRetrieve(client)
|
|
34045
34009
|
);
|
|
34046
34010
|
}
|
|
34047
|
-
function usePaymentsCurrenciesRatesRetrieve(
|
|
34011
|
+
function usePaymentsCurrenciesRatesRetrieve(client) {
|
|
34048
34012
|
return useSWR11(
|
|
34049
|
-
|
|
34050
|
-
() => getPaymentsCurrenciesRatesRetrieve(
|
|
34013
|
+
"cfg-payments-currencies-rate",
|
|
34014
|
+
() => getPaymentsCurrenciesRatesRetrieve(client)
|
|
34051
34015
|
);
|
|
34052
34016
|
}
|
|
34053
34017
|
function usePaymentsCurrenciesStableRetrieve(client) {
|
|
@@ -34062,10 +34026,10 @@ function usePaymentsCurrenciesStatsRetrieve(client) {
|
|
|
34062
34026
|
() => getPaymentsCurrenciesStatsRetrieve(client)
|
|
34063
34027
|
);
|
|
34064
34028
|
}
|
|
34065
|
-
function usePaymentsCurrenciesSupportedRetrieve(
|
|
34029
|
+
function usePaymentsCurrenciesSupportedRetrieve(client) {
|
|
34066
34030
|
return useSWR11(
|
|
34067
|
-
|
|
34068
|
-
() => getPaymentsCurrenciesSupportedRetrieve(
|
|
34031
|
+
"cfg-payments-currencies-supported",
|
|
34032
|
+
() => getPaymentsCurrenciesSupportedRetrieve(client)
|
|
34069
34033
|
);
|
|
34070
34034
|
}
|
|
34071
34035
|
function usePaymentsEndpointGroupsList(params, client) {
|
|
@@ -36871,24 +36835,11 @@ function CurrenciesProvider({ children }) {
|
|
|
36871
36835
|
const refreshCurrencies = async () => {
|
|
36872
36836
|
await mutateCurrencies();
|
|
36873
36837
|
};
|
|
36874
|
-
const getCurrency = async (id) => {
|
|
36875
|
-
const { data } = usePaymentsCurrenciesRetrieve(id, api);
|
|
36876
|
-
return data;
|
|
36877
|
-
};
|
|
36878
|
-
const getCurrencyRates = async (baseCurrency, currencies2) => {
|
|
36879
|
-
const { data } = usePaymentsCurrenciesRatesRetrieve(
|
|
36880
|
-
{ base_currency: baseCurrency, currencies: currencies2 },
|
|
36881
|
-
api
|
|
36882
|
-
);
|
|
36883
|
-
return data;
|
|
36884
|
-
};
|
|
36885
36838
|
const value = {
|
|
36886
36839
|
currencies,
|
|
36887
36840
|
isLoadingCurrencies,
|
|
36888
36841
|
currenciesError,
|
|
36889
|
-
refreshCurrencies
|
|
36890
|
-
getCurrency,
|
|
36891
|
-
getCurrencyRates
|
|
36842
|
+
refreshCurrencies
|
|
36892
36843
|
};
|
|
36893
36844
|
return /* @__PURE__ */ jsx7(CurrenciesContext.Provider, { value, children });
|
|
36894
36845
|
}
|
|
@@ -36914,7 +36865,7 @@ function ApiKeysProvider({ children }) {
|
|
|
36914
36865
|
const refreshApiKeys = async () => {
|
|
36915
36866
|
await mutateApiKeys();
|
|
36916
36867
|
};
|
|
36917
|
-
const createApiKeyMutation =
|
|
36868
|
+
const createApiKeyMutation = useCreatePaymentsApiKeysCreateCreate();
|
|
36918
36869
|
const deleteApiKeyMutation = useDeletePaymentsApiKeysDestroy();
|
|
36919
36870
|
const getApiKey = async (id) => {
|
|
36920
36871
|
const { data } = usePaymentsApiKeysRetrieve(id, api);
|
|
@@ -36967,6 +36918,19 @@ function OverviewProvider({ children }) {
|
|
|
36967
36918
|
const { data: chartData, mutate: mutateChartData } = usePaymentsOverviewDashboardChartDataRetrieve({}, api);
|
|
36968
36919
|
const { data: recentPayments, mutate: mutateRecentPayments } = usePaymentsOverviewDashboardRecentPaymentsList({}, api);
|
|
36969
36920
|
const { data: recentTransactions, mutate: mutateRecentTransactions } = usePaymentsOverviewDashboardRecentTransactionsList({}, api);
|
|
36921
|
+
const {
|
|
36922
|
+
data: balances,
|
|
36923
|
+
error: balancesError,
|
|
36924
|
+
isLoading: isLoadingBalances,
|
|
36925
|
+
mutate: mutateBalances
|
|
36926
|
+
} = usePaymentsBalancesList({}, api);
|
|
36927
|
+
const {
|
|
36928
|
+
data: balanceSummary,
|
|
36929
|
+
error: summaryError,
|
|
36930
|
+
isLoading: isLoadingSummary,
|
|
36931
|
+
mutate: mutateSummary
|
|
36932
|
+
} = usePaymentsBalancesSummaryRetrieve(api);
|
|
36933
|
+
const createPaymentMutation = useCreatePaymentsPaymentCreate();
|
|
36970
36934
|
const isLoadingOverview = isLoadingOverview1;
|
|
36971
36935
|
const refreshOverview = async () => {
|
|
36972
36936
|
await Promise.all([
|
|
@@ -36980,6 +36944,26 @@ function OverviewProvider({ children }) {
|
|
|
36980
36944
|
mutateRecentTransactions()
|
|
36981
36945
|
]);
|
|
36982
36946
|
};
|
|
36947
|
+
const refreshBalances = async () => {
|
|
36948
|
+
await mutateBalances();
|
|
36949
|
+
};
|
|
36950
|
+
const refreshSummary = async () => {
|
|
36951
|
+
await mutateSummary();
|
|
36952
|
+
};
|
|
36953
|
+
const retrieveBalance = async (id) => {
|
|
36954
|
+
try {
|
|
36955
|
+
const result = await getPaymentsBalancesRetrieve(id, api);
|
|
36956
|
+
return result;
|
|
36957
|
+
} catch (error) {
|
|
36958
|
+
defaultLogger.error("Failed to retrieve balance:", error);
|
|
36959
|
+
return void 0;
|
|
36960
|
+
}
|
|
36961
|
+
};
|
|
36962
|
+
const createPayment = async (data) => {
|
|
36963
|
+
const result = await createPaymentMutation(data, api);
|
|
36964
|
+
await refreshOverview();
|
|
36965
|
+
return result;
|
|
36966
|
+
};
|
|
36983
36967
|
const value = {
|
|
36984
36968
|
overview,
|
|
36985
36969
|
metrics,
|
|
@@ -36989,6 +36973,16 @@ function OverviewProvider({ children }) {
|
|
|
36989
36973
|
chartData,
|
|
36990
36974
|
recentPayments,
|
|
36991
36975
|
recentTransactions,
|
|
36976
|
+
balances,
|
|
36977
|
+
isLoadingBalances,
|
|
36978
|
+
balancesError,
|
|
36979
|
+
refreshBalances,
|
|
36980
|
+
balanceSummary,
|
|
36981
|
+
isLoadingSummary,
|
|
36982
|
+
summaryError,
|
|
36983
|
+
refreshSummary,
|
|
36984
|
+
retrieveBalance,
|
|
36985
|
+
createPayment,
|
|
36992
36986
|
isLoadingOverview,
|
|
36993
36987
|
overviewError,
|
|
36994
36988
|
refreshOverview
|
|
@@ -37003,10 +36997,66 @@ function useOverviewContext() {
|
|
|
37003
36997
|
return context;
|
|
37004
36998
|
}
|
|
37005
36999
|
|
|
37006
|
-
// src/cfg/contexts/
|
|
37000
|
+
// src/cfg/contexts/payments/RootPaymentsContext.tsx
|
|
37007
37001
|
import { createContext as createContext10, useContext as useContext10 } from "react";
|
|
37008
37002
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
37009
|
-
var
|
|
37003
|
+
var RootPaymentsContext = createContext10(void 0);
|
|
37004
|
+
function RootPaymentsProvider({ children }) {
|
|
37005
|
+
const {
|
|
37006
|
+
data: currencies,
|
|
37007
|
+
error: currenciesError,
|
|
37008
|
+
isLoading: isLoadingCurrencies,
|
|
37009
|
+
mutate: mutateCurrencies
|
|
37010
|
+
} = usePaymentsCurrenciesList({ page_size: 1e3 }, api);
|
|
37011
|
+
const {
|
|
37012
|
+
data: providerCurrencies,
|
|
37013
|
+
error: providerCurrenciesError,
|
|
37014
|
+
isLoading: isLoadingProviderCurrencies,
|
|
37015
|
+
mutate: mutateProviderCurrencies
|
|
37016
|
+
} = usePaymentsProviderCurrenciesList({ page_size: 1e3 }, api);
|
|
37017
|
+
const {
|
|
37018
|
+
data: networks,
|
|
37019
|
+
error: networksError,
|
|
37020
|
+
isLoading: isLoadingNetworks,
|
|
37021
|
+
mutate: mutateNetworks
|
|
37022
|
+
} = usePaymentsNetworksList({ page_size: 1e3 }, api);
|
|
37023
|
+
const refreshCurrencies = async () => {
|
|
37024
|
+
await mutateCurrencies();
|
|
37025
|
+
};
|
|
37026
|
+
const refreshProviderCurrencies = async () => {
|
|
37027
|
+
await mutateProviderCurrencies();
|
|
37028
|
+
};
|
|
37029
|
+
const refreshNetworks = async () => {
|
|
37030
|
+
await mutateNetworks();
|
|
37031
|
+
};
|
|
37032
|
+
const value = {
|
|
37033
|
+
currencies,
|
|
37034
|
+
isLoadingCurrencies,
|
|
37035
|
+
currenciesError,
|
|
37036
|
+
refreshCurrencies,
|
|
37037
|
+
providerCurrencies,
|
|
37038
|
+
isLoadingProviderCurrencies,
|
|
37039
|
+
providerCurrenciesError,
|
|
37040
|
+
refreshProviderCurrencies,
|
|
37041
|
+
networks,
|
|
37042
|
+
isLoadingNetworks,
|
|
37043
|
+
networksError,
|
|
37044
|
+
refreshNetworks
|
|
37045
|
+
};
|
|
37046
|
+
return /* @__PURE__ */ jsx10(RootPaymentsContext.Provider, { value, children });
|
|
37047
|
+
}
|
|
37048
|
+
function useRootPaymentsContext() {
|
|
37049
|
+
const context = useContext10(RootPaymentsContext);
|
|
37050
|
+
if (!context) {
|
|
37051
|
+
throw new Error("useRootPaymentsContext must be used within RootPaymentsProvider");
|
|
37052
|
+
}
|
|
37053
|
+
return context;
|
|
37054
|
+
}
|
|
37055
|
+
|
|
37056
|
+
// src/cfg/contexts/knowbase/ChatContext.tsx
|
|
37057
|
+
import { createContext as createContext11, useContext as useContext11 } from "react";
|
|
37058
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
37059
|
+
var KnowbaseChatContext = createContext11(void 0);
|
|
37010
37060
|
function KnowbaseChatProvider({ children }) {
|
|
37011
37061
|
const {
|
|
37012
37062
|
data: chats,
|
|
@@ -37067,10 +37117,10 @@ function KnowbaseChatProvider({ children }) {
|
|
|
37067
37117
|
deleteChat,
|
|
37068
37118
|
sendQuery
|
|
37069
37119
|
};
|
|
37070
|
-
return /* @__PURE__ */
|
|
37120
|
+
return /* @__PURE__ */ jsx11(KnowbaseChatContext.Provider, { value, children });
|
|
37071
37121
|
}
|
|
37072
37122
|
function useKnowbaseChatContext() {
|
|
37073
|
-
const context =
|
|
37123
|
+
const context = useContext11(KnowbaseChatContext);
|
|
37074
37124
|
if (!context) {
|
|
37075
37125
|
throw new Error("useKnowbaseChatContext must be used within KnowbaseChatProvider");
|
|
37076
37126
|
}
|
|
@@ -37078,9 +37128,9 @@ function useKnowbaseChatContext() {
|
|
|
37078
37128
|
}
|
|
37079
37129
|
|
|
37080
37130
|
// src/cfg/contexts/knowbase/DocumentsContext.tsx
|
|
37081
|
-
import { createContext as
|
|
37082
|
-
import { jsx as
|
|
37083
|
-
var KnowbaseDocumentsContext =
|
|
37131
|
+
import { createContext as createContext12, useContext as useContext12 } from "react";
|
|
37132
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
37133
|
+
var KnowbaseDocumentsContext = createContext12(
|
|
37084
37134
|
void 0
|
|
37085
37135
|
);
|
|
37086
37136
|
function KnowbaseDocumentsProvider({ children }) {
|
|
@@ -37199,10 +37249,10 @@ function KnowbaseDocumentsProvider({ children }) {
|
|
|
37199
37249
|
partialUpdateArchive,
|
|
37200
37250
|
deleteArchive
|
|
37201
37251
|
};
|
|
37202
|
-
return /* @__PURE__ */
|
|
37252
|
+
return /* @__PURE__ */ jsx12(KnowbaseDocumentsContext.Provider, { value, children });
|
|
37203
37253
|
}
|
|
37204
37254
|
function useKnowbaseDocumentsContext() {
|
|
37205
|
-
const context =
|
|
37255
|
+
const context = useContext12(KnowbaseDocumentsContext);
|
|
37206
37256
|
if (!context) {
|
|
37207
37257
|
throw new Error("useKnowbaseDocumentsContext must be used within KnowbaseDocumentsProvider");
|
|
37208
37258
|
}
|
|
@@ -37210,9 +37260,9 @@ function useKnowbaseDocumentsContext() {
|
|
|
37210
37260
|
}
|
|
37211
37261
|
|
|
37212
37262
|
// src/cfg/contexts/knowbase/SessionsContext.tsx
|
|
37213
|
-
import { createContext as
|
|
37214
|
-
import { jsx as
|
|
37215
|
-
var KnowbaseSessionsContext =
|
|
37263
|
+
import { createContext as createContext13, useContext as useContext13 } from "react";
|
|
37264
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
37265
|
+
var KnowbaseSessionsContext = createContext13(void 0);
|
|
37216
37266
|
function KnowbaseSessionsProvider({ children }) {
|
|
37217
37267
|
const {
|
|
37218
37268
|
data: sessions,
|
|
@@ -37275,10 +37325,10 @@ function KnowbaseSessionsProvider({ children }) {
|
|
|
37275
37325
|
activateSession,
|
|
37276
37326
|
archiveSession
|
|
37277
37327
|
};
|
|
37278
|
-
return /* @__PURE__ */
|
|
37328
|
+
return /* @__PURE__ */ jsx13(KnowbaseSessionsContext.Provider, { value, children });
|
|
37279
37329
|
}
|
|
37280
37330
|
function useKnowbaseSessionsContext() {
|
|
37281
|
-
const context =
|
|
37331
|
+
const context = useContext13(KnowbaseSessionsContext);
|
|
37282
37332
|
if (!context) {
|
|
37283
37333
|
throw new Error("useKnowbaseSessionsContext must be used within KnowbaseSessionsProvider");
|
|
37284
37334
|
}
|
|
@@ -37341,6 +37391,7 @@ export {
|
|
|
37341
37391
|
PaymentsProvider,
|
|
37342
37392
|
PaymentsService,
|
|
37343
37393
|
REFRESH_TOKEN_KEY,
|
|
37394
|
+
RootPaymentsProvider,
|
|
37344
37395
|
schemas_exports as Schemas,
|
|
37345
37396
|
SubscriptionsService,
|
|
37346
37397
|
SupportProvider,
|
|
@@ -37659,6 +37710,7 @@ export {
|
|
|
37659
37710
|
useNewsletterContext,
|
|
37660
37711
|
useOverviewContext,
|
|
37661
37712
|
usePaymentsContext,
|
|
37713
|
+
useRootPaymentsContext,
|
|
37662
37714
|
useSupportContext,
|
|
37663
37715
|
withRetry
|
|
37664
37716
|
};
|