@djangocfg/api 1.0.6 → 1.2.0

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.mjs CHANGED
@@ -1050,17 +1050,20 @@ var CfgPayments = class {
1050
1050
  this.client = client;
1051
1051
  }
1052
1052
  /**
1053
- * Get current user balance.
1053
+ * Get user balance
1054
+ *
1055
+ * Get current user balance and transaction statistics
1054
1056
  */
1055
1057
  async balanceRetrieve() {
1056
1058
  const response = await this.client.request("GET", "/cfg/payments/balance/");
1057
1059
  return response;
1058
1060
  }
1059
1061
  /**
1060
- * GET /api/v1/payments/currencies/ Returns list of available currencies
1061
- * with token+network info.
1062
+ * Get available currencies
1063
+ *
1064
+ * Returns list of available currencies with token+network info
1062
1065
  */
1063
- async currenciesRetrieve() {
1066
+ async currenciesList() {
1064
1067
  const response = await this.client.request("GET", "/cfg/payments/currencies/");
1065
1068
  return response;
1066
1069
  }
@@ -1119,10 +1122,19 @@ var CfgPayments = class {
1119
1122
  return response;
1120
1123
  }
1121
1124
  /**
1122
- * Get user transactions with pagination.
1125
+ * Get user transactions
1126
+ *
1127
+ * Get user transactions with pagination and filtering
1123
1128
  */
1124
- async transactionsRetrieve() {
1125
- const response = await this.client.request("GET", "/cfg/payments/transactions/");
1129
+ async transactionsList(...args) {
1130
+ const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
1131
+ let params;
1132
+ if (isParamsObject) {
1133
+ params = args[0];
1134
+ } else {
1135
+ params = { limit: args[0], offset: args[1], type: args[2] };
1136
+ }
1137
+ const response = await this.client.request("GET", "/cfg/payments/transactions/", { params });
1126
1138
  return response;
1127
1139
  }
1128
1140
  };
@@ -2564,6 +2576,51 @@ var OPENAPI_SCHEMA = {
2564
2576
  ],
2565
2577
  "type": "object"
2566
2578
  },
2579
+ "Balance": {
2580
+ "description": "User balance serializer.",
2581
+ "properties": {
2582
+ "balance_display": {
2583
+ "readOnly": true,
2584
+ "type": "string"
2585
+ },
2586
+ "balance_usd": {
2587
+ "description": "Current balance in USD",
2588
+ "format": "decimal",
2589
+ "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
2590
+ "readOnly": true,
2591
+ "type": "string"
2592
+ },
2593
+ "last_transaction_at": {
2594
+ "description": "When the last transaction occurred",
2595
+ "format": "date-time",
2596
+ "nullable": true,
2597
+ "readOnly": true,
2598
+ "type": "string"
2599
+ },
2600
+ "total_deposited": {
2601
+ "description": "Total amount deposited (lifetime)",
2602
+ "format": "decimal",
2603
+ "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
2604
+ "readOnly": true,
2605
+ "type": "string"
2606
+ },
2607
+ "total_withdrawn": {
2608
+ "description": "Total amount withdrawn (lifetime)",
2609
+ "format": "decimal",
2610
+ "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
2611
+ "readOnly": true,
2612
+ "type": "string"
2613
+ }
2614
+ },
2615
+ "required": [
2616
+ "balance_display",
2617
+ "balance_usd",
2618
+ "last_transaction_at",
2619
+ "total_deposited",
2620
+ "total_withdrawn"
2621
+ ],
2622
+ "type": "object"
2623
+ },
2567
2624
  "BulkEmailRequest": {
2568
2625
  "description": "Simple serializer for bulk email.",
2569
2626
  "properties": {
@@ -3049,6 +3106,76 @@ var OPENAPI_SCHEMA = {
3049
3106
  ],
3050
3107
  "type": "object"
3051
3108
  },
3109
+ "Currency": {
3110
+ "description": "Currency list serializer.",
3111
+ "properties": {
3112
+ "code": {
3113
+ "description": "Currency code from provider (e.g., USDTTRC20, BTC, ETH)",
3114
+ "readOnly": true,
3115
+ "type": "string"
3116
+ },
3117
+ "decimal_places": {
3118
+ "description": "Number of decimal places for this currency",
3119
+ "readOnly": true,
3120
+ "type": "integer"
3121
+ },
3122
+ "display_name": {
3123
+ "readOnly": true,
3124
+ "type": "string"
3125
+ },
3126
+ "is_active": {
3127
+ "description": "Whether this currency is available for payments",
3128
+ "readOnly": true,
3129
+ "type": "boolean"
3130
+ },
3131
+ "min_amount_usd": {
3132
+ "description": "Minimum payment amount in USD",
3133
+ "format": "decimal",
3134
+ "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
3135
+ "readOnly": true,
3136
+ "type": "string"
3137
+ },
3138
+ "name": {
3139
+ "description": "Full currency name (e.g., USDT (TRC20), Bitcoin)",
3140
+ "readOnly": true,
3141
+ "type": "string"
3142
+ },
3143
+ "network": {
3144
+ "description": "Network name (e.g., TRC20, ERC20, Bitcoin)",
3145
+ "nullable": true,
3146
+ "readOnly": true,
3147
+ "type": "string"
3148
+ },
3149
+ "sort_order": {
3150
+ "description": "Sort order for currency list (lower = higher priority)",
3151
+ "readOnly": true,
3152
+ "type": "integer"
3153
+ },
3154
+ "symbol": {
3155
+ "description": "Currency symbol (e.g., \u20AE, \u20BF, \u039E)",
3156
+ "readOnly": true,
3157
+ "type": "string"
3158
+ },
3159
+ "token": {
3160
+ "description": "Token symbol (e.g., USDT, BTC, ETH)",
3161
+ "readOnly": true,
3162
+ "type": "string"
3163
+ }
3164
+ },
3165
+ "required": [
3166
+ "code",
3167
+ "decimal_places",
3168
+ "display_name",
3169
+ "is_active",
3170
+ "min_amount_usd",
3171
+ "name",
3172
+ "network",
3173
+ "sort_order",
3174
+ "symbol",
3175
+ "token"
3176
+ ],
3177
+ "type": "object"
3178
+ },
3052
3179
  "Document": {
3053
3180
  "description": "Document response serializer.",
3054
3181
  "properties": {
@@ -6220,6 +6347,8 @@ var OPENAPI_SCHEMA = {
6220
6347
  "type": "string"
6221
6348
  },
6222
6349
  "explorer_link": {
6350
+ "description": "Get blockchain explorer link.",
6351
+ "nullable": true,
6223
6352
  "readOnly": true,
6224
6353
  "type": "string"
6225
6354
  },
@@ -6268,6 +6397,8 @@ var OPENAPI_SCHEMA = {
6268
6397
  "type": "string"
6269
6398
  },
6270
6399
  "qr_code_url": {
6400
+ "description": "Get QR code URL.",
6401
+ "nullable": true,
6271
6402
  "readOnly": true,
6272
6403
  "type": "string"
6273
6404
  },
@@ -6930,6 +7061,83 @@ var OPENAPI_SCHEMA = {
6930
7061
  ],
6931
7062
  "type": "object"
6932
7063
  },
7064
+ "Transaction": {
7065
+ "description": "Transaction serializer.",
7066
+ "properties": {
7067
+ "amount_display": {
7068
+ "readOnly": true,
7069
+ "type": "string"
7070
+ },
7071
+ "amount_usd": {
7072
+ "description": "Transaction amount in USD (positive=credit, negative=debit)",
7073
+ "format": "decimal",
7074
+ "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
7075
+ "readOnly": true,
7076
+ "type": "string"
7077
+ },
7078
+ "balance_after": {
7079
+ "description": "User balance after this transaction",
7080
+ "format": "decimal",
7081
+ "pattern": "^-?\\d{0,8}(?:\\.\\d{0,2})?$",
7082
+ "readOnly": true,
7083
+ "type": "string"
7084
+ },
7085
+ "created_at": {
7086
+ "description": "When this record was created",
7087
+ "format": "date-time",
7088
+ "readOnly": true,
7089
+ "type": "string"
7090
+ },
7091
+ "description": {
7092
+ "description": "Transaction description",
7093
+ "readOnly": true,
7094
+ "type": "string"
7095
+ },
7096
+ "id": {
7097
+ "description": "Unique identifier for this record",
7098
+ "format": "uuid",
7099
+ "readOnly": true,
7100
+ "type": "string"
7101
+ },
7102
+ "payment_id": {
7103
+ "description": "Related payment ID (if applicable)",
7104
+ "nullable": true,
7105
+ "readOnly": true,
7106
+ "type": "string"
7107
+ },
7108
+ "transaction_type": {
7109
+ "description": "Type of transaction\n\n* `deposit` - Deposit\n* `withdrawal` - Withdrawal\n* `payment` - Payment\n* `refund` - Refund\n* `fee` - Fee\n* `bonus` - Bonus\n* `adjustment` - Adjustment",
7110
+ "enum": [
7111
+ "deposit",
7112
+ "withdrawal",
7113
+ "payment",
7114
+ "refund",
7115
+ "fee",
7116
+ "bonus",
7117
+ "adjustment"
7118
+ ],
7119
+ "readOnly": true,
7120
+ "type": "string",
7121
+ "x-spec-enum-id": "25d1662d4db37694"
7122
+ },
7123
+ "type_display": {
7124
+ "readOnly": true,
7125
+ "type": "string"
7126
+ }
7127
+ },
7128
+ "required": [
7129
+ "amount_display",
7130
+ "amount_usd",
7131
+ "balance_after",
7132
+ "created_at",
7133
+ "description",
7134
+ "id",
7135
+ "payment_id",
7136
+ "transaction_type",
7137
+ "type_display"
7138
+ ],
7139
+ "type": "object"
7140
+ },
6933
7141
  "Unsubscribe": {
6934
7142
  "description": "Simple serializer for unsubscribe.",
6935
7143
  "properties": {
@@ -7257,8 +7465,8 @@ var OPENAPI_SCHEMA = {
7257
7465
  }
7258
7466
  },
7259
7467
  "info": {
7260
- "description": "Complete API documentation for Django CFG sample project",
7261
- "title": "Django CFG Sample API",
7468
+ "description": "Complete API documentation for Django CFG Demo Project",
7469
+ "title": "Django CFG API",
7262
7470
  "version": "1.0.0",
7263
7471
  "x-django-metadata": {
7264
7472
  "apps": [
@@ -8509,40 +8717,13 @@ var OPENAPI_SCHEMA = {
8509
8717
  "description": ""
8510
8718
  },
8511
8719
  "400": {
8512
- "content": {
8513
- "application/json": {
8514
- "schema": {
8515
- "additionalProperties": {},
8516
- "description": "Unspecified response body",
8517
- "type": "object"
8518
- }
8519
- }
8520
- },
8521
- "description": ""
8720
+ "description": "Validation errors"
8522
8721
  },
8523
8722
  "413": {
8524
- "content": {
8525
- "application/json": {
8526
- "schema": {
8527
- "additionalProperties": {},
8528
- "description": "Unspecified response body",
8529
- "type": "object"
8530
- }
8531
- }
8532
- },
8533
- "description": ""
8723
+ "description": "File too large"
8534
8724
  },
8535
8725
  "429": {
8536
- "content": {
8537
- "application/json": {
8538
- "schema": {
8539
- "additionalProperties": {},
8540
- "description": "Unspecified response body",
8541
- "type": "object"
8542
- }
8543
- }
8544
- },
8545
- "description": ""
8726
+ "description": "Rate limit exceeded"
8546
8727
  }
8547
8728
  },
8548
8729
  "security": [
@@ -8609,28 +8790,10 @@ var OPENAPI_SCHEMA = {
8609
8790
  ],
8610
8791
  "responses": {
8611
8792
  "204": {
8612
- "content": {
8613
- "application/json": {
8614
- "schema": {
8615
- "additionalProperties": {},
8616
- "description": "Unspecified response body",
8617
- "type": "object"
8618
- }
8619
- }
8620
- },
8621
- "description": ""
8793
+ "description": "Document deleted successfully"
8622
8794
  },
8623
8795
  "404": {
8624
- "content": {
8625
- "application/json": {
8626
- "schema": {
8627
- "additionalProperties": {},
8628
- "description": "Unspecified response body",
8629
- "type": "object"
8630
- }
8631
- }
8632
- },
8633
- "description": ""
8796
+ "description": "Document not found"
8634
8797
  }
8635
8798
  },
8636
8799
  "security": [
@@ -8674,16 +8837,7 @@ var OPENAPI_SCHEMA = {
8674
8837
  "description": ""
8675
8838
  },
8676
8839
  "404": {
8677
- "content": {
8678
- "application/json": {
8679
- "schema": {
8680
- "additionalProperties": {},
8681
- "description": "Unspecified response body",
8682
- "type": "object"
8683
- }
8684
- }
8685
- },
8686
- "description": ""
8840
+ "description": "Document not found"
8687
8841
  }
8688
8842
  },
8689
8843
  "security": [
@@ -9422,16 +9576,7 @@ var OPENAPI_SCHEMA = {
9422
9576
  "description": ""
9423
9577
  },
9424
9578
  "404": {
9425
- "content": {
9426
- "application/json": {
9427
- "schema": {
9428
- "additionalProperties": {},
9429
- "description": "Unspecified response body",
9430
- "type": "object"
9431
- }
9432
- }
9433
- },
9434
- "description": ""
9579
+ "description": "Category not found"
9435
9580
  }
9436
9581
  },
9437
9582
  "security": [
@@ -9546,16 +9691,7 @@ var OPENAPI_SCHEMA = {
9546
9691
  "description": ""
9547
9692
  },
9548
9693
  "404": {
9549
- "content": {
9550
- "application/json": {
9551
- "schema": {
9552
- "additionalProperties": {},
9553
- "description": "Unspecified response body",
9554
- "type": "object"
9555
- }
9556
- }
9557
- },
9558
- "description": ""
9694
+ "description": "Document not found"
9559
9695
  }
9560
9696
  },
9561
9697
  "security": [
@@ -9671,40 +9807,13 @@ var OPENAPI_SCHEMA = {
9671
9807
  "description": ""
9672
9808
  },
9673
9809
  "400": {
9674
- "content": {
9675
- "application/json": {
9676
- "schema": {
9677
- "additionalProperties": {},
9678
- "description": "Unspecified response body",
9679
- "type": "object"
9680
- }
9681
- }
9682
- },
9683
- "description": ""
9810
+ "description": "Validation errors"
9684
9811
  },
9685
9812
  "413": {
9686
- "content": {
9687
- "application/json": {
9688
- "schema": {
9689
- "additionalProperties": {},
9690
- "description": "Unspecified response body",
9691
- "type": "object"
9692
- }
9693
- }
9694
- },
9695
- "description": ""
9813
+ "description": "File too large"
9696
9814
  },
9697
9815
  "429": {
9698
- "content": {
9699
- "application/json": {
9700
- "schema": {
9701
- "additionalProperties": {},
9702
- "description": "Unspecified response body",
9703
- "type": "object"
9704
- }
9705
- }
9706
- },
9707
- "description": ""
9816
+ "description": "Rate limit exceeded"
9708
9817
  }
9709
9818
  },
9710
9819
  "security": [
@@ -12272,11 +12381,18 @@ var OPENAPI_SCHEMA = {
12272
12381
  },
12273
12382
  "/cfg/payments/balance/": {
12274
12383
  "get": {
12275
- "description": "Get current user balance.",
12384
+ "description": "Get current user balance and transaction statistics",
12276
12385
  "operationId": "cfg_payments_balance_retrieve",
12277
12386
  "responses": {
12278
12387
  "200": {
12279
- "description": "No response body"
12388
+ "content": {
12389
+ "application/json": {
12390
+ "schema": {
12391
+ "$ref": "#/components/schemas/Balance"
12392
+ }
12393
+ }
12394
+ },
12395
+ "description": ""
12280
12396
  }
12281
12397
  },
12282
12398
  "security": [
@@ -12287,6 +12403,7 @@ var OPENAPI_SCHEMA = {
12287
12403
  "cookieAuth": []
12288
12404
  }
12289
12405
  ],
12406
+ "summary": "Get user balance",
12290
12407
  "tags": [
12291
12408
  "payments"
12292
12409
  ],
@@ -12295,11 +12412,21 @@ var OPENAPI_SCHEMA = {
12295
12412
  },
12296
12413
  "/cfg/payments/currencies/": {
12297
12414
  "get": {
12298
- "description": "GET /api/v1/payments/currencies/\n\nReturns list of available currencies with token+network info.",
12299
- "operationId": "cfg_payments_currencies_retrieve",
12415
+ "description": "Returns list of available currencies with token+network info",
12416
+ "operationId": "cfg_payments_currencies_list",
12300
12417
  "responses": {
12301
12418
  "200": {
12302
- "description": "No response body"
12419
+ "content": {
12420
+ "application/json": {
12421
+ "schema": {
12422
+ "items": {
12423
+ "$ref": "#/components/schemas/Currency"
12424
+ },
12425
+ "type": "array"
12426
+ }
12427
+ }
12428
+ },
12429
+ "description": ""
12303
12430
  }
12304
12431
  },
12305
12432
  "security": [
@@ -12310,6 +12437,7 @@ var OPENAPI_SCHEMA = {
12310
12437
  "cookieAuth": []
12311
12438
  }
12312
12439
  ],
12440
+ "summary": "Get available currencies",
12313
12441
  "tags": [
12314
12442
  "payments"
12315
12443
  ],
@@ -12518,23 +12646,60 @@ var OPENAPI_SCHEMA = {
12518
12646
  },
12519
12647
  "/cfg/payments/transactions/": {
12520
12648
  "get": {
12521
- "description": "Get user transactions with pagination.",
12522
- "operationId": "cfg_payments_transactions_retrieve",
12523
- "responses": {
12524
- "200": {
12525
- "description": "No response body"
12526
- }
12527
- },
12528
- "security": [
12649
+ "description": "Get user transactions with pagination and filtering",
12650
+ "operationId": "cfg_payments_transactions_list",
12651
+ "parameters": [
12529
12652
  {
12530
- "jwtAuth": []
12653
+ "description": "Number of transactions to return (max 100)",
12654
+ "in": "query",
12655
+ "name": "limit",
12656
+ "schema": {
12657
+ "type": "integer"
12658
+ }
12531
12659
  },
12532
12660
  {
12533
- "cookieAuth": []
12534
- }
12535
- ],
12536
- "tags": [
12537
- "payments"
12661
+ "description": "Offset for pagination",
12662
+ "in": "query",
12663
+ "name": "offset",
12664
+ "schema": {
12665
+ "type": "integer"
12666
+ }
12667
+ },
12668
+ {
12669
+ "description": "Filter by transaction type (deposit/withdrawal)",
12670
+ "in": "query",
12671
+ "name": "type",
12672
+ "schema": {
12673
+ "type": "string"
12674
+ }
12675
+ }
12676
+ ],
12677
+ "responses": {
12678
+ "200": {
12679
+ "content": {
12680
+ "application/json": {
12681
+ "schema": {
12682
+ "items": {
12683
+ "$ref": "#/components/schemas/Transaction"
12684
+ },
12685
+ "type": "array"
12686
+ }
12687
+ }
12688
+ },
12689
+ "description": ""
12690
+ }
12691
+ },
12692
+ "security": [
12693
+ {
12694
+ "jwtAuth": []
12695
+ },
12696
+ {
12697
+ "cookieAuth": []
12698
+ }
12699
+ ],
12700
+ "summary": "Get user transactions",
12701
+ "tags": [
12702
+ "payments"
12538
12703
  ],
12539
12704
  "x-async-capable": false
12540
12705
  }
@@ -13751,6 +13916,7 @@ __export(enums_exports, {
13751
13916
  QueueActionRequestAction: () => QueueActionRequestAction,
13752
13917
  TicketRequestStatus: () => TicketRequestStatus,
13753
13918
  TicketStatus: () => TicketStatus,
13919
+ TransactionTransactionType: () => TransactionTransactionType,
13754
13920
  WorkerActionAction: () => WorkerActionAction,
13755
13921
  WorkerActionRequestAction: () => WorkerActionRequestAction
13756
13922
  });
@@ -13986,6 +14152,16 @@ var TicketRequestStatus = /* @__PURE__ */ ((TicketRequestStatus2) => {
13986
14152
  TicketRequestStatus2["CLOSED"] = "closed";
13987
14153
  return TicketRequestStatus2;
13988
14154
  })(TicketRequestStatus || {});
14155
+ var TransactionTransactionType = /* @__PURE__ */ ((TransactionTransactionType2) => {
14156
+ TransactionTransactionType2["DEPOSIT"] = "deposit";
14157
+ TransactionTransactionType2["WITHDRAWAL"] = "withdrawal";
14158
+ TransactionTransactionType2["PAYMENT"] = "payment";
14159
+ TransactionTransactionType2["REFUND"] = "refund";
14160
+ TransactionTransactionType2["FEE"] = "fee";
14161
+ TransactionTransactionType2["BONUS"] = "bonus";
14162
+ TransactionTransactionType2["ADJUSTMENT"] = "adjustment";
14163
+ return TransactionTransactionType2;
14164
+ })(TransactionTransactionType || {});
13989
14165
  var WorkerActionAction = /* @__PURE__ */ ((WorkerActionAction2) => {
13990
14166
  WorkerActionAction2["START"] = "start";
13991
14167
  WorkerActionAction2["STOP"] = "stop";
@@ -14014,6 +14190,7 @@ __export(schemas_exports, {
14014
14190
  ArchiveSearchRequestRequestSchema: () => ArchiveSearchRequestRequestSchema,
14015
14191
  ArchiveSearchResultSchema: () => ArchiveSearchResultSchema,
14016
14192
  ArchiveStatisticsSchema: () => ArchiveStatisticsSchema,
14193
+ BalanceSchema: () => BalanceSchema,
14017
14194
  BulkEmailRequestSchema: () => BulkEmailRequestSchema,
14018
14195
  BulkEmailResponseSchema: () => BulkEmailResponseSchema,
14019
14196
  ChatHistorySchema: () => ChatHistorySchema,
@@ -14027,6 +14204,7 @@ __export(schemas_exports, {
14027
14204
  ChatSourceRequestSchema: () => ChatSourceRequestSchema,
14028
14205
  ChatSourceSchema: () => ChatSourceSchema,
14029
14206
  ChunkRevectorizationRequestRequestSchema: () => ChunkRevectorizationRequestRequestSchema,
14207
+ CurrencySchema: () => CurrencySchema,
14030
14208
  DocumentArchiveDetailSchema: () => DocumentArchiveDetailSchema,
14031
14209
  DocumentArchiveListSchema: () => DocumentArchiveListSchema,
14032
14210
  DocumentArchiveRequestSchema: () => DocumentArchiveRequestSchema,
@@ -14110,6 +14288,7 @@ __export(schemas_exports, {
14110
14288
  TicketSchema: () => TicketSchema,
14111
14289
  TokenRefreshRequestSchema: () => TokenRefreshRequestSchema,
14112
14290
  TokenRefreshSchema: () => TokenRefreshSchema,
14291
+ TransactionSchema: () => TransactionSchema,
14113
14292
  UnsubscribeRequestSchema: () => UnsubscribeRequestSchema,
14114
14293
  UnsubscribeSchema: () => UnsubscribeSchema,
14115
14294
  UserProfileUpdateRequestSchema: () => UserProfileUpdateRequestSchema,
@@ -14276,627 +14455,624 @@ var ArchiveStatisticsSchema = z12.object({
14276
14455
  avg_chunks_per_archive: z12.number()
14277
14456
  });
14278
14457
 
14279
- // src/cfg/generated/_utils/schemas/BulkEmailRequest.schema.ts
14458
+ // src/cfg/generated/_utils/schemas/Balance.schema.ts
14280
14459
  import { z as z13 } from "zod";
14281
- var BulkEmailRequestSchema = z13.object({
14282
- recipients: z13.array(z13.email()),
14283
- subject: z13.string().min(1).max(255),
14284
- email_title: z13.string().min(1).max(255),
14285
- main_text: z13.string().min(1),
14286
- main_html_content: z13.string().optional(),
14287
- button_text: z13.string().max(100).optional(),
14288
- button_url: z13.url().optional(),
14289
- secondary_text: z13.string().optional()
14460
+ var BalanceSchema = z13.object({
14461
+ balance_usd: z13.string(),
14462
+ balance_display: z13.string(),
14463
+ total_deposited: z13.string(),
14464
+ total_withdrawn: z13.string(),
14465
+ last_transaction_at: z13.iso.datetime().nullable()
14290
14466
  });
14291
14467
 
14292
- // src/cfg/generated/_utils/schemas/BulkEmailResponse.schema.ts
14468
+ // src/cfg/generated/_utils/schemas/BulkEmailRequest.schema.ts
14293
14469
  import { z as z14 } from "zod";
14294
- var BulkEmailResponseSchema = z14.object({
14295
- success: z14.boolean(),
14296
- sent_count: z14.int(),
14297
- failed_count: z14.int(),
14298
- total_recipients: z14.int(),
14299
- error: z14.string().optional()
14470
+ var BulkEmailRequestSchema = z14.object({
14471
+ recipients: z14.array(z14.email()),
14472
+ subject: z14.string().min(1).max(255),
14473
+ email_title: z14.string().min(1).max(255),
14474
+ main_text: z14.string().min(1),
14475
+ main_html_content: z14.string().optional(),
14476
+ button_text: z14.string().max(100).optional(),
14477
+ button_url: z14.url().optional(),
14478
+ secondary_text: z14.string().optional()
14479
+ });
14480
+
14481
+ // src/cfg/generated/_utils/schemas/BulkEmailResponse.schema.ts
14482
+ import { z as z15 } from "zod";
14483
+ var BulkEmailResponseSchema = z15.object({
14484
+ success: z15.boolean(),
14485
+ sent_count: z15.int(),
14486
+ failed_count: z15.int(),
14487
+ total_recipients: z15.int(),
14488
+ error: z15.string().optional()
14300
14489
  });
14301
14490
 
14302
14491
  // src/cfg/generated/_utils/schemas/ChatHistory.schema.ts
14303
- import { z as z16 } from "zod";
14492
+ import { z as z17 } from "zod";
14304
14493
 
14305
14494
  // src/cfg/generated/_utils/schemas/ChatMessage.schema.ts
14306
- import { z as z15 } from "zod";
14307
- var ChatMessageSchema = z15.object({
14308
- id: z15.uuid(),
14309
- role: z15.nativeEnum(ChatMessageRole),
14310
- content: z15.string(),
14311
- tokens_used: z15.int().min(0).max(2147483647).optional(),
14312
- cost_usd: z15.number(),
14313
- processing_time_ms: z15.int().min(0).max(2147483647).optional(),
14314
- created_at: z15.iso.datetime(),
14315
- context_chunks: z15.string().optional()
14495
+ import { z as z16 } from "zod";
14496
+ var ChatMessageSchema = z16.object({
14497
+ id: z16.uuid(),
14498
+ role: z16.nativeEnum(ChatMessageRole),
14499
+ content: z16.string(),
14500
+ tokens_used: z16.int().min(0).max(2147483647).optional(),
14501
+ cost_usd: z16.number(),
14502
+ processing_time_ms: z16.int().min(0).max(2147483647).optional(),
14503
+ created_at: z16.iso.datetime(),
14504
+ context_chunks: z16.string().optional()
14316
14505
  });
14317
14506
 
14318
14507
  // src/cfg/generated/_utils/schemas/ChatHistory.schema.ts
14319
- var ChatHistorySchema = z16.object({
14320
- session_id: z16.uuid(),
14321
- messages: z16.array(ChatMessageSchema),
14322
- total_messages: z16.int()
14508
+ var ChatHistorySchema = z17.object({
14509
+ session_id: z17.uuid(),
14510
+ messages: z17.array(ChatMessageSchema),
14511
+ total_messages: z17.int()
14323
14512
  });
14324
14513
 
14325
14514
  // src/cfg/generated/_utils/schemas/ChatQueryRequest.schema.ts
14326
- import { z as z17 } from "zod";
14327
- var ChatQueryRequestSchema = z17.object({
14328
- session_id: z17.uuid().nullable().optional(),
14329
- query: z17.string().min(1).max(2e3),
14330
- max_tokens: z17.int().min(1).max(4e3).optional(),
14331
- include_sources: z17.boolean().optional()
14515
+ import { z as z18 } from "zod";
14516
+ var ChatQueryRequestSchema = z18.object({
14517
+ session_id: z18.uuid().nullable().optional(),
14518
+ query: z18.string().min(1).max(2e3),
14519
+ max_tokens: z18.int().min(1).max(4e3).optional(),
14520
+ include_sources: z18.boolean().optional()
14332
14521
  });
14333
14522
 
14334
14523
  // src/cfg/generated/_utils/schemas/ChatResponse.schema.ts
14335
- import { z as z19 } from "zod";
14524
+ import { z as z20 } from "zod";
14336
14525
 
14337
14526
  // src/cfg/generated/_utils/schemas/ChatSource.schema.ts
14338
- import { z as z18 } from "zod";
14339
- var ChatSourceSchema = z18.object({
14340
- document_title: z18.string(),
14341
- chunk_content: z18.string(),
14342
- similarity: z18.number()
14527
+ import { z as z19 } from "zod";
14528
+ var ChatSourceSchema = z19.object({
14529
+ document_title: z19.string(),
14530
+ chunk_content: z19.string(),
14531
+ similarity: z19.number()
14343
14532
  });
14344
14533
 
14345
14534
  // src/cfg/generated/_utils/schemas/ChatResponse.schema.ts
14346
- var ChatResponseSchema = z19.object({
14347
- message_id: z19.uuid(),
14348
- content: z19.string(),
14349
- tokens_used: z19.int(),
14350
- cost_usd: z19.number(),
14351
- processing_time_ms: z19.int(),
14352
- model_used: z19.string(),
14353
- sources: z19.array(ChatSourceSchema).nullable().optional()
14535
+ var ChatResponseSchema = z20.object({
14536
+ message_id: z20.uuid(),
14537
+ content: z20.string(),
14538
+ tokens_used: z20.int(),
14539
+ cost_usd: z20.number(),
14540
+ processing_time_ms: z20.int(),
14541
+ model_used: z20.string(),
14542
+ sources: z20.array(ChatSourceSchema).nullable().optional()
14354
14543
  });
14355
14544
 
14356
14545
  // src/cfg/generated/_utils/schemas/ChatResponseRequest.schema.ts
14357
- import { z as z21 } from "zod";
14546
+ import { z as z22 } from "zod";
14358
14547
 
14359
14548
  // src/cfg/generated/_utils/schemas/ChatSourceRequest.schema.ts
14360
- import { z as z20 } from "zod";
14361
- var ChatSourceRequestSchema = z20.object({
14362
- document_title: z20.string().min(1),
14363
- chunk_content: z20.string().min(1),
14364
- similarity: z20.number()
14549
+ import { z as z21 } from "zod";
14550
+ var ChatSourceRequestSchema = z21.object({
14551
+ document_title: z21.string().min(1),
14552
+ chunk_content: z21.string().min(1),
14553
+ similarity: z21.number()
14365
14554
  });
14366
14555
 
14367
14556
  // src/cfg/generated/_utils/schemas/ChatResponseRequest.schema.ts
14368
- var ChatResponseRequestSchema = z21.object({
14369
- message_id: z21.uuid(),
14370
- content: z21.string().min(1),
14371
- tokens_used: z21.int(),
14372
- cost_usd: z21.number(),
14373
- processing_time_ms: z21.int(),
14374
- model_used: z21.string().min(1),
14375
- sources: z21.array(ChatSourceRequestSchema).nullable().optional()
14557
+ var ChatResponseRequestSchema = z22.object({
14558
+ message_id: z22.uuid(),
14559
+ content: z22.string().min(1),
14560
+ tokens_used: z22.int(),
14561
+ cost_usd: z22.number(),
14562
+ processing_time_ms: z22.int(),
14563
+ model_used: z22.string().min(1),
14564
+ sources: z22.array(ChatSourceRequestSchema).nullable().optional()
14376
14565
  });
14377
14566
 
14378
14567
  // src/cfg/generated/_utils/schemas/ChatSession.schema.ts
14379
- import { z as z22 } from "zod";
14380
- var ChatSessionSchema = z22.object({
14381
- id: z22.uuid(),
14382
- title: z22.string().max(255).optional(),
14383
- is_active: z22.boolean().optional(),
14384
- messages_count: z22.int().min(0).max(2147483647).optional(),
14385
- total_tokens_used: z22.int().min(0).max(2147483647).optional(),
14386
- total_cost_usd: z22.number(),
14387
- model_name: z22.string().max(100).optional(),
14388
- temperature: z22.number().optional(),
14389
- max_context_chunks: z22.int().min(0).max(2147483647).optional(),
14390
- created_at: z22.iso.datetime(),
14391
- updated_at: z22.iso.datetime()
14392
- });
14393
-
14394
- // src/cfg/generated/_utils/schemas/ChatSessionCreateRequest.schema.ts
14395
14568
  import { z as z23 } from "zod";
14396
- var ChatSessionCreateRequestSchema = z23.object({
14569
+ var ChatSessionSchema = z23.object({
14570
+ id: z23.uuid(),
14397
14571
  title: z23.string().max(255).optional(),
14398
- model_name: z23.string().min(1).max(100).optional(),
14399
- temperature: z23.number().min(0).max(2).optional(),
14400
- max_context_chunks: z23.int().min(1).max(10).optional()
14572
+ is_active: z23.boolean().optional(),
14573
+ messages_count: z23.int().min(0).max(2147483647).optional(),
14574
+ total_tokens_used: z23.int().min(0).max(2147483647).optional(),
14575
+ total_cost_usd: z23.number(),
14576
+ model_name: z23.string().max(100).optional(),
14577
+ temperature: z23.number().optional(),
14578
+ max_context_chunks: z23.int().min(0).max(2147483647).optional(),
14579
+ created_at: z23.iso.datetime(),
14580
+ updated_at: z23.iso.datetime()
14401
14581
  });
14402
14582
 
14403
- // src/cfg/generated/_utils/schemas/ChatSessionRequest.schema.ts
14583
+ // src/cfg/generated/_utils/schemas/ChatSessionCreateRequest.schema.ts
14404
14584
  import { z as z24 } from "zod";
14405
- var ChatSessionRequestSchema = z24.object({
14585
+ var ChatSessionCreateRequestSchema = z24.object({
14406
14586
  title: z24.string().max(255).optional(),
14407
- is_active: z24.boolean().optional(),
14408
- messages_count: z24.int().min(0).max(2147483647).optional(),
14409
- total_tokens_used: z24.int().min(0).max(2147483647).optional(),
14410
14587
  model_name: z24.string().min(1).max(100).optional(),
14411
- temperature: z24.number().optional(),
14412
- max_context_chunks: z24.int().min(0).max(2147483647).optional()
14588
+ temperature: z24.number().min(0).max(2).optional(),
14589
+ max_context_chunks: z24.int().min(1).max(10).optional()
14413
14590
  });
14414
14591
 
14415
- // src/cfg/generated/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts
14592
+ // src/cfg/generated/_utils/schemas/ChatSessionRequest.schema.ts
14416
14593
  import { z as z25 } from "zod";
14417
- var ChunkRevectorizationRequestRequestSchema = z25.object({
14418
- chunk_ids: z25.array(z25.uuid()),
14419
- force: z25.boolean().optional()
14594
+ var ChatSessionRequestSchema = z25.object({
14595
+ title: z25.string().max(255).optional(),
14596
+ is_active: z25.boolean().optional(),
14597
+ messages_count: z25.int().min(0).max(2147483647).optional(),
14598
+ total_tokens_used: z25.int().min(0).max(2147483647).optional(),
14599
+ model_name: z25.string().min(1).max(100).optional(),
14600
+ temperature: z25.number().optional(),
14601
+ max_context_chunks: z25.int().min(0).max(2147483647).optional()
14420
14602
  });
14421
14603
 
14422
- // src/cfg/generated/_utils/schemas/Document.schema.ts
14604
+ // src/cfg/generated/_utils/schemas/ChunkRevectorizationRequestRequest.schema.ts
14423
14605
  import { z as z26 } from "zod";
14424
- var DocumentSchema = z26.object({
14425
- id: z26.uuid(),
14426
- title: z26.string().max(512),
14427
- file_type: z26.string().max(100).optional(),
14428
- file_size: z26.int().min(0).max(2147483647).optional(),
14429
- processing_status: z26.string(),
14430
- chunks_count: z26.int(),
14431
- total_tokens: z26.int(),
14432
- total_cost_usd: z26.number(),
14433
- created_at: z26.iso.datetime(),
14434
- updated_at: z26.iso.datetime(),
14435
- processing_started_at: z26.iso.datetime(),
14436
- processing_completed_at: z26.iso.datetime(),
14437
- processing_error: z26.string(),
14438
- metadata: z26.string().nullable().optional()
14606
+ var ChunkRevectorizationRequestRequestSchema = z26.object({
14607
+ chunk_ids: z26.array(z26.uuid()),
14608
+ force: z26.boolean().optional()
14439
14609
  });
14440
14610
 
14441
- // src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
14442
- import { z as z28 } from "zod";
14443
-
14444
- // src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
14611
+ // src/cfg/generated/_utils/schemas/Currency.schema.ts
14445
14612
  import { z as z27 } from "zod";
14446
- var DocumentCategorySchema = z27.object({
14447
- id: z27.uuid(),
14448
- name: z27.string().max(255),
14449
- description: z27.string().optional(),
14450
- is_public: z27.boolean().optional(),
14451
- created_at: z27.iso.datetime()
14613
+ var CurrencySchema = z27.object({
14614
+ code: z27.string(),
14615
+ name: z27.string(),
14616
+ token: z27.string(),
14617
+ network: z27.string().nullable(),
14618
+ display_name: z27.string(),
14619
+ symbol: z27.string(),
14620
+ decimal_places: z27.int(),
14621
+ is_active: z27.boolean(),
14622
+ min_amount_usd: z27.string(),
14623
+ sort_order: z27.int()
14452
14624
  });
14453
14625
 
14454
- // src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
14455
- var DocumentArchiveSchema = z28.object({
14626
+ // src/cfg/generated/_utils/schemas/Document.schema.ts
14627
+ import { z as z28 } from "zod";
14628
+ var DocumentSchema = z28.object({
14456
14629
  id: z28.uuid(),
14457
14630
  title: z28.string().max(512),
14458
- description: z28.string().optional(),
14459
- categories: z28.array(DocumentCategorySchema),
14460
- is_public: z28.boolean().optional(),
14461
- archive_file: z28.url(),
14462
- original_filename: z28.string(),
14463
- file_size: z28.int(),
14464
- archive_type: z28.nativeEnum(DocumentArchiveArchiveType),
14465
- processing_status: z28.nativeEnum(DocumentArchiveProcessingStatus),
14466
- processed_at: z28.iso.datetime().nullable(),
14467
- processing_duration_ms: z28.int(),
14468
- processing_error: z28.string(),
14469
- total_items: z28.int(),
14470
- processed_items: z28.int(),
14471
- total_chunks: z28.int(),
14472
- vectorized_chunks: z28.int(),
14631
+ file_type: z28.string().max(100).optional(),
14632
+ file_size: z28.int().min(0).max(2147483647).optional(),
14633
+ processing_status: z28.string(),
14634
+ chunks_count: z28.int(),
14473
14635
  total_tokens: z28.int(),
14474
14636
  total_cost_usd: z28.number(),
14475
- processing_progress: z28.number(),
14476
- vectorization_progress: z28.number(),
14477
- is_processed: z28.boolean(),
14478
14637
  created_at: z28.iso.datetime(),
14479
- updated_at: z28.iso.datetime()
14638
+ updated_at: z28.iso.datetime(),
14639
+ processing_started_at: z28.iso.datetime(),
14640
+ processing_completed_at: z28.iso.datetime(),
14641
+ processing_error: z28.string(),
14642
+ metadata: z28.string().nullable().optional()
14480
14643
  });
14481
14644
 
14482
- // src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts
14645
+ // src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
14646
+ import { z as z30 } from "zod";
14647
+
14648
+ // src/cfg/generated/_utils/schemas/DocumentCategory.schema.ts
14483
14649
  import { z as z29 } from "zod";
14484
- var DocumentArchiveDetailSchema = z29.object({
14650
+ var DocumentCategorySchema = z29.object({
14485
14651
  id: z29.uuid(),
14486
- title: z29.string().max(512),
14652
+ name: z29.string().max(255),
14487
14653
  description: z29.string().optional(),
14488
- categories: z29.array(DocumentCategorySchema),
14489
14654
  is_public: z29.boolean().optional(),
14490
- archive_file: z29.url(),
14491
- original_filename: z29.string(),
14492
- file_size: z29.int(),
14493
- archive_type: z29.nativeEnum(DocumentArchiveDetailArchiveType),
14494
- processing_status: z29.nativeEnum(DocumentArchiveDetailProcessingStatus),
14495
- processed_at: z29.iso.datetime().nullable(),
14496
- processing_duration_ms: z29.int(),
14497
- processing_error: z29.string(),
14498
- total_items: z29.int(),
14499
- processed_items: z29.int(),
14500
- total_chunks: z29.int(),
14501
- vectorized_chunks: z29.int(),
14502
- total_tokens: z29.int(),
14503
- total_cost_usd: z29.number(),
14504
- processing_progress: z29.number(),
14505
- vectorization_progress: z29.number(),
14506
- is_processed: z29.boolean(),
14507
- created_at: z29.iso.datetime(),
14508
- updated_at: z29.iso.datetime(),
14509
- items: z29.array(ArchiveItemSchema),
14510
- file_tree: z29.record(z29.string(), z29.any()),
14511
- metadata: z29.string().nullable().optional()
14655
+ created_at: z29.iso.datetime()
14512
14656
  });
14513
14657
 
14514
- // src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts
14515
- import { z as z30 } from "zod";
14516
- var DocumentArchiveListSchema = z30.object({
14658
+ // src/cfg/generated/_utils/schemas/DocumentArchive.schema.ts
14659
+ var DocumentArchiveSchema = z30.object({
14517
14660
  id: z30.uuid(),
14518
- title: z30.string(),
14519
- description: z30.string(),
14661
+ title: z30.string().max(512),
14662
+ description: z30.string().optional(),
14520
14663
  categories: z30.array(DocumentCategorySchema),
14521
- is_public: z30.boolean(),
14664
+ is_public: z30.boolean().optional(),
14665
+ archive_file: z30.url(),
14522
14666
  original_filename: z30.string(),
14523
14667
  file_size: z30.int(),
14524
- archive_type: z30.nativeEnum(DocumentArchiveListArchiveType),
14525
- processing_status: z30.nativeEnum(DocumentArchiveListProcessingStatus),
14668
+ archive_type: z30.nativeEnum(DocumentArchiveArchiveType),
14669
+ processing_status: z30.nativeEnum(DocumentArchiveProcessingStatus),
14526
14670
  processed_at: z30.iso.datetime().nullable(),
14671
+ processing_duration_ms: z30.int(),
14672
+ processing_error: z30.string(),
14527
14673
  total_items: z30.int(),
14674
+ processed_items: z30.int(),
14528
14675
  total_chunks: z30.int(),
14676
+ vectorized_chunks: z30.int(),
14677
+ total_tokens: z30.int(),
14529
14678
  total_cost_usd: z30.number(),
14530
14679
  processing_progress: z30.number(),
14531
- created_at: z30.iso.datetime()
14680
+ vectorization_progress: z30.number(),
14681
+ is_processed: z30.boolean(),
14682
+ created_at: z30.iso.datetime(),
14683
+ updated_at: z30.iso.datetime()
14532
14684
  });
14533
14685
 
14534
- // src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts
14686
+ // src/cfg/generated/_utils/schemas/DocumentArchiveDetail.schema.ts
14535
14687
  import { z as z31 } from "zod";
14536
- var DocumentArchiveRequestSchema = z31.object({
14537
- title: z31.string().min(1).max(512),
14688
+ var DocumentArchiveDetailSchema = z31.object({
14689
+ id: z31.uuid(),
14690
+ title: z31.string().max(512),
14538
14691
  description: z31.string().optional(),
14539
- is_public: z31.boolean().optional()
14692
+ categories: z31.array(DocumentCategorySchema),
14693
+ is_public: z31.boolean().optional(),
14694
+ archive_file: z31.url(),
14695
+ original_filename: z31.string(),
14696
+ file_size: z31.int(),
14697
+ archive_type: z31.nativeEnum(DocumentArchiveDetailArchiveType),
14698
+ processing_status: z31.nativeEnum(DocumentArchiveDetailProcessingStatus),
14699
+ processed_at: z31.iso.datetime().nullable(),
14700
+ processing_duration_ms: z31.int(),
14701
+ processing_error: z31.string(),
14702
+ total_items: z31.int(),
14703
+ processed_items: z31.int(),
14704
+ total_chunks: z31.int(),
14705
+ vectorized_chunks: z31.int(),
14706
+ total_tokens: z31.int(),
14707
+ total_cost_usd: z31.number(),
14708
+ processing_progress: z31.number(),
14709
+ vectorization_progress: z31.number(),
14710
+ is_processed: z31.boolean(),
14711
+ created_at: z31.iso.datetime(),
14712
+ updated_at: z31.iso.datetime(),
14713
+ items: z31.array(ArchiveItemSchema),
14714
+ file_tree: z31.record(z31.string(), z31.any()),
14715
+ metadata: z31.string().nullable().optional()
14540
14716
  });
14541
14717
 
14542
- // src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts
14718
+ // src/cfg/generated/_utils/schemas/DocumentArchiveList.schema.ts
14543
14719
  import { z as z32 } from "zod";
14544
- var DocumentCategoryRequestSchema = z32.object({
14545
- name: z32.string().min(1).max(255),
14546
- description: z32.string().optional(),
14547
- is_public: z32.boolean().optional()
14720
+ var DocumentArchiveListSchema = z32.object({
14721
+ id: z32.uuid(),
14722
+ title: z32.string(),
14723
+ description: z32.string(),
14724
+ categories: z32.array(DocumentCategorySchema),
14725
+ is_public: z32.boolean(),
14726
+ original_filename: z32.string(),
14727
+ file_size: z32.int(),
14728
+ archive_type: z32.nativeEnum(DocumentArchiveListArchiveType),
14729
+ processing_status: z32.nativeEnum(DocumentArchiveListProcessingStatus),
14730
+ processed_at: z32.iso.datetime().nullable(),
14731
+ total_items: z32.int(),
14732
+ total_chunks: z32.int(),
14733
+ total_cost_usd: z32.number(),
14734
+ processing_progress: z32.number(),
14735
+ created_at: z32.iso.datetime()
14548
14736
  });
14549
14737
 
14550
- // src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts
14738
+ // src/cfg/generated/_utils/schemas/DocumentArchiveRequest.schema.ts
14551
14739
  import { z as z33 } from "zod";
14552
- var DocumentCreateRequestSchema = z33.object({
14740
+ var DocumentArchiveRequestSchema = z33.object({
14553
14741
  title: z33.string().min(1).max(512),
14554
- content: z33.string().min(10).max(1e6),
14555
- file_type: z33.string().min(1).optional(),
14556
- metadata: z33.string().optional()
14742
+ description: z33.string().optional(),
14743
+ is_public: z33.boolean().optional()
14557
14744
  });
14558
14745
 
14559
- // src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts
14746
+ // src/cfg/generated/_utils/schemas/DocumentCategoryRequest.schema.ts
14560
14747
  import { z as z34 } from "zod";
14561
- var DocumentProcessingStatusSchema = z34.object({
14562
- id: z34.uuid(),
14563
- status: z34.string(),
14564
- progress: z34.string(),
14565
- error: z34.string().nullable().optional(),
14566
- processing_time_seconds: z34.number().nullable().optional()
14748
+ var DocumentCategoryRequestSchema = z34.object({
14749
+ name: z34.string().min(1).max(255),
14750
+ description: z34.string().optional(),
14751
+ is_public: z34.boolean().optional()
14567
14752
  });
14568
14753
 
14569
- // src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts
14754
+ // src/cfg/generated/_utils/schemas/DocumentCreateRequest.schema.ts
14570
14755
  import { z as z35 } from "zod";
14571
- var DocumentRequestSchema = z35.object({
14756
+ var DocumentCreateRequestSchema = z35.object({
14572
14757
  title: z35.string().min(1).max(512),
14573
- file_type: z35.string().min(1).max(100).optional(),
14574
- file_size: z35.int().min(0).max(2147483647).optional(),
14575
- metadata: z35.string().nullable().optional()
14758
+ content: z35.string().min(10).max(1e6),
14759
+ file_type: z35.string().min(1).optional(),
14760
+ metadata: z35.string().optional()
14576
14761
  });
14577
14762
 
14578
- // src/cfg/generated/_utils/schemas/DocumentStats.schema.ts
14763
+ // src/cfg/generated/_utils/schemas/DocumentProcessingStatus.schema.ts
14579
14764
  import { z as z36 } from "zod";
14580
- var DocumentStatsSchema = z36.object({
14581
- total_documents: z36.int(),
14582
- completed_documents: z36.int(),
14583
- processing_success_rate: z36.number(),
14584
- total_chunks: z36.int(),
14585
- total_tokens: z36.int(),
14586
- total_cost_usd: z36.number(),
14587
- avg_processing_time_seconds: z36.number()
14765
+ var DocumentProcessingStatusSchema = z36.object({
14766
+ id: z36.uuid(),
14767
+ status: z36.string(),
14768
+ progress: z36.string(),
14769
+ error: z36.string().nullable().optional(),
14770
+ processing_time_seconds: z36.number().nullable().optional()
14588
14771
  });
14589
14772
 
14590
- // src/cfg/generated/_utils/schemas/EmailLog.schema.ts
14773
+ // src/cfg/generated/_utils/schemas/DocumentRequest.schema.ts
14591
14774
  import { z as z37 } from "zod";
14592
- var EmailLogSchema = z37.object({
14593
- id: z37.uuid(),
14594
- user: z37.int().nullable(),
14595
- user_email: z37.string(),
14596
- newsletter: z37.int().nullable(),
14597
- newsletter_title: z37.string(),
14598
- recipient: z37.string(),
14599
- subject: z37.string(),
14600
- body: z37.string(),
14601
- status: z37.nativeEnum(EmailLogStatus),
14602
- created_at: z37.iso.datetime(),
14603
- sent_at: z37.iso.datetime().nullable(),
14604
- error_message: z37.string().nullable()
14775
+ var DocumentRequestSchema = z37.object({
14776
+ title: z37.string().min(1).max(512),
14777
+ file_type: z37.string().min(1).max(100).optional(),
14778
+ file_size: z37.int().min(0).max(2147483647).optional(),
14779
+ metadata: z37.string().nullable().optional()
14605
14780
  });
14606
14781
 
14607
- // src/cfg/generated/_utils/schemas/Endpoint.schema.ts
14782
+ // src/cfg/generated/_utils/schemas/DocumentStats.schema.ts
14608
14783
  import { z as z38 } from "zod";
14609
- var EndpointSchema = z38.object({
14610
- url: z38.string(),
14611
- url_pattern: z38.string().nullable().optional(),
14612
- url_name: z38.string().nullable().optional(),
14613
- namespace: z38.string().optional(),
14614
- group: z38.string(),
14615
- view: z38.string().optional(),
14616
- status: z38.string(),
14617
- status_code: z38.int().nullable().optional(),
14618
- response_time_ms: z38.number().nullable().optional(),
14619
- is_healthy: z38.boolean().nullable().optional(),
14620
- error: z38.string().optional(),
14621
- error_type: z38.string().optional(),
14622
- reason: z38.string().optional(),
14623
- last_checked: z38.iso.datetime().nullable().optional(),
14624
- has_parameters: z38.boolean().optional(),
14625
- required_auth: z38.boolean().optional(),
14626
- rate_limited: z38.boolean().optional()
14784
+ var DocumentStatsSchema = z38.object({
14785
+ total_documents: z38.int(),
14786
+ completed_documents: z38.int(),
14787
+ processing_success_rate: z38.number(),
14788
+ total_chunks: z38.int(),
14789
+ total_tokens: z38.int(),
14790
+ total_cost_usd: z38.number(),
14791
+ avg_processing_time_seconds: z38.number()
14627
14792
  });
14628
14793
 
14629
- // src/cfg/generated/_utils/schemas/EndpointsStatus.schema.ts
14794
+ // src/cfg/generated/_utils/schemas/EmailLog.schema.ts
14630
14795
  import { z as z39 } from "zod";
14631
- var EndpointsStatusSchema = z39.object({
14632
- status: z39.string(),
14633
- timestamp: z39.iso.datetime(),
14634
- total_endpoints: z39.int(),
14635
- healthy: z39.int(),
14636
- unhealthy: z39.int(),
14637
- warnings: z39.int(),
14638
- errors: z39.int(),
14639
- skipped: z39.int(),
14640
- endpoints: z39.array(EndpointSchema)
14796
+ var EmailLogSchema = z39.object({
14797
+ id: z39.uuid(),
14798
+ user: z39.int().nullable(),
14799
+ user_email: z39.string(),
14800
+ newsletter: z39.int().nullable(),
14801
+ newsletter_title: z39.string(),
14802
+ recipient: z39.string(),
14803
+ subject: z39.string(),
14804
+ body: z39.string(),
14805
+ status: z39.nativeEnum(EmailLogStatus),
14806
+ created_at: z39.iso.datetime(),
14807
+ sent_at: z39.iso.datetime().nullable(),
14808
+ error_message: z39.string().nullable()
14641
14809
  });
14642
14810
 
14643
- // src/cfg/generated/_utils/schemas/ErrorResponse.schema.ts
14811
+ // src/cfg/generated/_utils/schemas/Endpoint.schema.ts
14644
14812
  import { z as z40 } from "zod";
14645
- var ErrorResponseSchema = z40.object({
14646
- success: z40.boolean().optional(),
14647
- message: z40.string()
14813
+ var EndpointSchema = z40.object({
14814
+ url: z40.string(),
14815
+ url_pattern: z40.string().nullable().optional(),
14816
+ url_name: z40.string().nullable().optional(),
14817
+ namespace: z40.string().optional(),
14818
+ group: z40.string(),
14819
+ view: z40.string().optional(),
14820
+ status: z40.string(),
14821
+ status_code: z40.int().nullable().optional(),
14822
+ response_time_ms: z40.number().nullable().optional(),
14823
+ is_healthy: z40.boolean().nullable().optional(),
14824
+ error: z40.string().optional(),
14825
+ error_type: z40.string().optional(),
14826
+ reason: z40.string().optional(),
14827
+ last_checked: z40.iso.datetime().nullable().optional(),
14828
+ has_parameters: z40.boolean().optional(),
14829
+ required_auth: z40.boolean().optional(),
14830
+ rate_limited: z40.boolean().optional()
14648
14831
  });
14649
14832
 
14650
- // src/cfg/generated/_utils/schemas/HealthCheck.schema.ts
14833
+ // src/cfg/generated/_utils/schemas/EndpointsStatus.schema.ts
14651
14834
  import { z as z41 } from "zod";
14652
- var HealthCheckSchema = z41.object({
14835
+ var EndpointsStatusSchema = z41.object({
14653
14836
  status: z41.string(),
14654
14837
  timestamp: z41.iso.datetime(),
14655
- service: z41.string(),
14656
- version: z41.string(),
14657
- checks: z41.record(z41.string(), z41.any()),
14658
- environment: z41.record(z41.string(), z41.any())
14838
+ total_endpoints: z41.int(),
14839
+ healthy: z41.int(),
14840
+ unhealthy: z41.int(),
14841
+ warnings: z41.int(),
14842
+ errors: z41.int(),
14843
+ skipped: z41.int(),
14844
+ endpoints: z41.array(EndpointSchema)
14659
14845
  });
14660
14846
 
14661
- // src/cfg/generated/_utils/schemas/LeadSubmission.schema.ts
14847
+ // src/cfg/generated/_utils/schemas/ErrorResponse.schema.ts
14662
14848
  import { z as z42 } from "zod";
14663
- var LeadSubmissionSchema = z42.object({
14664
- name: z42.string().max(200),
14665
- email: z42.email(),
14666
- company: z42.string().max(200).nullable().optional(),
14667
- company_site: z42.string().max(200).nullable().optional(),
14668
- contact_type: z42.nativeEnum(LeadSubmissionContactType).optional(),
14669
- contact_value: z42.string().max(200).nullable().optional(),
14670
- subject: z42.string().max(200).nullable().optional(),
14671
- message: z42.string(),
14672
- extra: z42.string().nullable().optional(),
14673
- site_url: z42.url()
14849
+ var ErrorResponseSchema = z42.object({
14850
+ success: z42.boolean().optional(),
14851
+ message: z42.string()
14674
14852
  });
14675
14853
 
14676
- // src/cfg/generated/_utils/schemas/LeadSubmissionError.schema.ts
14854
+ // src/cfg/generated/_utils/schemas/HealthCheck.schema.ts
14677
14855
  import { z as z43 } from "zod";
14678
- var LeadSubmissionErrorSchema = z43.object({
14679
- success: z43.boolean(),
14680
- error: z43.string(),
14681
- details: z43.record(z43.string(), z43.any()).optional()
14856
+ var HealthCheckSchema = z43.object({
14857
+ status: z43.string(),
14858
+ timestamp: z43.iso.datetime(),
14859
+ service: z43.string(),
14860
+ version: z43.string(),
14861
+ checks: z43.record(z43.string(), z43.any()),
14862
+ environment: z43.record(z43.string(), z43.any())
14682
14863
  });
14683
14864
 
14684
- // src/cfg/generated/_utils/schemas/LeadSubmissionRequest.schema.ts
14865
+ // src/cfg/generated/_utils/schemas/LeadSubmission.schema.ts
14685
14866
  import { z as z44 } from "zod";
14686
- var LeadSubmissionRequestSchema = z44.object({
14687
- name: z44.string().min(1).max(200),
14867
+ var LeadSubmissionSchema = z44.object({
14868
+ name: z44.string().max(200),
14688
14869
  email: z44.email(),
14689
14870
  company: z44.string().max(200).nullable().optional(),
14690
14871
  company_site: z44.string().max(200).nullable().optional(),
14691
- contact_type: z44.nativeEnum(LeadSubmissionRequestContactType).optional(),
14872
+ contact_type: z44.nativeEnum(LeadSubmissionContactType).optional(),
14692
14873
  contact_value: z44.string().max(200).nullable().optional(),
14693
14874
  subject: z44.string().max(200).nullable().optional(),
14694
- message: z44.string().min(1),
14875
+ message: z44.string(),
14695
14876
  extra: z44.string().nullable().optional(),
14696
14877
  site_url: z44.url()
14697
14878
  });
14698
14879
 
14699
- // src/cfg/generated/_utils/schemas/LeadSubmissionResponse.schema.ts
14880
+ // src/cfg/generated/_utils/schemas/LeadSubmissionError.schema.ts
14700
14881
  import { z as z45 } from "zod";
14701
- var LeadSubmissionResponseSchema = z45.object({
14882
+ var LeadSubmissionErrorSchema = z45.object({
14702
14883
  success: z45.boolean(),
14703
- message: z45.string(),
14704
- lead_id: z45.int()
14884
+ error: z45.string(),
14885
+ details: z45.record(z45.string(), z45.any()).optional()
14705
14886
  });
14706
14887
 
14707
- // src/cfg/generated/_utils/schemas/Message.schema.ts
14708
- import { z as z47 } from "zod";
14709
-
14710
- // src/cfg/generated/_utils/schemas/Sender.schema.ts
14888
+ // src/cfg/generated/_utils/schemas/LeadSubmissionRequest.schema.ts
14711
14889
  import { z as z46 } from "zod";
14712
- var SenderSchema = z46.object({
14713
- id: z46.int(),
14714
- display_username: z46.string(),
14890
+ var LeadSubmissionRequestSchema = z46.object({
14891
+ name: z46.string().min(1).max(200),
14715
14892
  email: z46.email(),
14716
- avatar: z46.string().nullable(),
14717
- initials: z46.string(),
14718
- is_staff: z46.boolean(),
14719
- is_superuser: z46.boolean()
14893
+ company: z46.string().max(200).nullable().optional(),
14894
+ company_site: z46.string().max(200).nullable().optional(),
14895
+ contact_type: z46.nativeEnum(LeadSubmissionRequestContactType).optional(),
14896
+ contact_value: z46.string().max(200).nullable().optional(),
14897
+ subject: z46.string().max(200).nullable().optional(),
14898
+ message: z46.string().min(1),
14899
+ extra: z46.string().nullable().optional(),
14900
+ site_url: z46.url()
14720
14901
  });
14721
14902
 
14722
- // src/cfg/generated/_utils/schemas/Message.schema.ts
14723
- var MessageSchema = z47.object({
14724
- uuid: z47.uuid(),
14725
- ticket: z47.uuid(),
14726
- sender: SenderSchema,
14727
- is_from_author: z47.boolean(),
14728
- text: z47.string(),
14729
- created_at: z47.iso.datetime()
14903
+ // src/cfg/generated/_utils/schemas/LeadSubmissionResponse.schema.ts
14904
+ import { z as z47 } from "zod";
14905
+ var LeadSubmissionResponseSchema = z47.object({
14906
+ success: z47.boolean(),
14907
+ message: z47.string(),
14908
+ lead_id: z47.int()
14730
14909
  });
14731
14910
 
14732
- // src/cfg/generated/_utils/schemas/MessageCreate.schema.ts
14911
+ // src/cfg/generated/_utils/schemas/Message.schema.ts
14912
+ import { z as z49 } from "zod";
14913
+
14914
+ // src/cfg/generated/_utils/schemas/Sender.schema.ts
14733
14915
  import { z as z48 } from "zod";
14734
- var MessageCreateSchema = z48.object({
14735
- text: z48.string()
14916
+ var SenderSchema = z48.object({
14917
+ id: z48.int(),
14918
+ display_username: z48.string(),
14919
+ email: z48.email(),
14920
+ avatar: z48.string().nullable(),
14921
+ initials: z48.string(),
14922
+ is_staff: z48.boolean(),
14923
+ is_superuser: z48.boolean()
14736
14924
  });
14737
14925
 
14738
- // src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
14739
- import { z as z49 } from "zod";
14740
- var MessageCreateRequestSchema = z49.object({
14741
- text: z49.string().min(1)
14926
+ // src/cfg/generated/_utils/schemas/Message.schema.ts
14927
+ var MessageSchema = z49.object({
14928
+ uuid: z49.uuid(),
14929
+ ticket: z49.uuid(),
14930
+ sender: SenderSchema,
14931
+ is_from_author: z49.boolean(),
14932
+ text: z49.string(),
14933
+ created_at: z49.iso.datetime()
14742
14934
  });
14743
14935
 
14744
- // src/cfg/generated/_utils/schemas/MessageRequest.schema.ts
14936
+ // src/cfg/generated/_utils/schemas/MessageCreate.schema.ts
14745
14937
  import { z as z50 } from "zod";
14746
- var MessageRequestSchema = z50.object({
14747
- text: z50.string().min(1)
14938
+ var MessageCreateSchema = z50.object({
14939
+ text: z50.string()
14748
14940
  });
14749
14941
 
14750
- // src/cfg/generated/_utils/schemas/Newsletter.schema.ts
14942
+ // src/cfg/generated/_utils/schemas/MessageCreateRequest.schema.ts
14751
14943
  import { z as z51 } from "zod";
14752
- var NewsletterSchema = z51.object({
14753
- id: z51.int(),
14754
- title: z51.string().max(255),
14755
- description: z51.string().optional(),
14756
- is_active: z51.boolean().optional(),
14757
- auto_subscribe: z51.boolean().optional(),
14758
- created_at: z51.iso.datetime(),
14759
- updated_at: z51.iso.datetime(),
14760
- subscribers_count: z51.int()
14944
+ var MessageCreateRequestSchema = z51.object({
14945
+ text: z51.string().min(1)
14761
14946
  });
14762
14947
 
14763
- // src/cfg/generated/_utils/schemas/NewsletterCampaign.schema.ts
14948
+ // src/cfg/generated/_utils/schemas/MessageRequest.schema.ts
14764
14949
  import { z as z52 } from "zod";
14765
- var NewsletterCampaignSchema = z52.object({
14766
- id: z52.int(),
14767
- newsletter: z52.int(),
14768
- newsletter_title: z52.string(),
14769
- subject: z52.string().max(255),
14770
- email_title: z52.string().max(255),
14771
- main_text: z52.string(),
14772
- main_html_content: z52.string().optional(),
14773
- button_text: z52.string().max(100).optional(),
14774
- button_url: z52.url().optional(),
14775
- secondary_text: z52.string().optional(),
14776
- status: z52.nativeEnum(NewsletterCampaignStatus),
14777
- created_at: z52.iso.datetime(),
14778
- sent_at: z52.iso.datetime().nullable(),
14779
- recipient_count: z52.int()
14950
+ var MessageRequestSchema = z52.object({
14951
+ text: z52.string().min(1)
14780
14952
  });
14781
14953
 
14782
- // src/cfg/generated/_utils/schemas/NewsletterCampaignRequest.schema.ts
14954
+ // src/cfg/generated/_utils/schemas/Newsletter.schema.ts
14783
14955
  import { z as z53 } from "zod";
14784
- var NewsletterCampaignRequestSchema = z53.object({
14785
- newsletter: z53.int(),
14786
- subject: z53.string().min(1).max(255),
14787
- email_title: z53.string().min(1).max(255),
14788
- main_text: z53.string().min(1),
14789
- main_html_content: z53.string().optional(),
14790
- button_text: z53.string().max(100).optional(),
14791
- button_url: z53.url().optional(),
14792
- secondary_text: z53.string().optional()
14956
+ var NewsletterSchema = z53.object({
14957
+ id: z53.int(),
14958
+ title: z53.string().max(255),
14959
+ description: z53.string().optional(),
14960
+ is_active: z53.boolean().optional(),
14961
+ auto_subscribe: z53.boolean().optional(),
14962
+ created_at: z53.iso.datetime(),
14963
+ updated_at: z53.iso.datetime(),
14964
+ subscribers_count: z53.int()
14793
14965
  });
14794
14966
 
14795
- // src/cfg/generated/_utils/schemas/NewsletterSubscription.schema.ts
14967
+ // src/cfg/generated/_utils/schemas/NewsletterCampaign.schema.ts
14796
14968
  import { z as z54 } from "zod";
14797
- var NewsletterSubscriptionSchema = z54.object({
14969
+ var NewsletterCampaignSchema = z54.object({
14798
14970
  id: z54.int(),
14799
14971
  newsletter: z54.int(),
14800
14972
  newsletter_title: z54.string(),
14801
- user: z54.int().nullable().optional(),
14802
- user_email: z54.string(),
14803
- email: z54.email(),
14804
- is_active: z54.boolean().optional(),
14805
- subscribed_at: z54.iso.datetime(),
14806
- unsubscribed_at: z54.iso.datetime().nullable()
14973
+ subject: z54.string().max(255),
14974
+ email_title: z54.string().max(255),
14975
+ main_text: z54.string(),
14976
+ main_html_content: z54.string().optional(),
14977
+ button_text: z54.string().max(100).optional(),
14978
+ button_url: z54.url().optional(),
14979
+ secondary_text: z54.string().optional(),
14980
+ status: z54.nativeEnum(NewsletterCampaignStatus),
14981
+ created_at: z54.iso.datetime(),
14982
+ sent_at: z54.iso.datetime().nullable(),
14983
+ recipient_count: z54.int()
14807
14984
  });
14808
14985
 
14809
- // src/cfg/generated/_utils/schemas/OTPErrorResponse.schema.ts
14986
+ // src/cfg/generated/_utils/schemas/NewsletterCampaignRequest.schema.ts
14810
14987
  import { z as z55 } from "zod";
14811
- var OTPErrorResponseSchema = z55.object({
14812
- error: z55.string()
14988
+ var NewsletterCampaignRequestSchema = z55.object({
14989
+ newsletter: z55.int(),
14990
+ subject: z55.string().min(1).max(255),
14991
+ email_title: z55.string().min(1).max(255),
14992
+ main_text: z55.string().min(1),
14993
+ main_html_content: z55.string().optional(),
14994
+ button_text: z55.string().max(100).optional(),
14995
+ button_url: z55.url().optional(),
14996
+ secondary_text: z55.string().optional()
14813
14997
  });
14814
14998
 
14815
- // src/cfg/generated/_utils/schemas/OTPRequestRequest.schema.ts
14999
+ // src/cfg/generated/_utils/schemas/NewsletterSubscription.schema.ts
14816
15000
  import { z as z56 } from "zod";
14817
- var OTPRequestRequestSchema = z56.object({
14818
- identifier: z56.string().min(1),
14819
- channel: z56.nativeEnum(OTPRequestRequestChannel).optional(),
14820
- source_url: z56.url().optional()
15001
+ var NewsletterSubscriptionSchema = z56.object({
15002
+ id: z56.int(),
15003
+ newsletter: z56.int(),
15004
+ newsletter_title: z56.string(),
15005
+ user: z56.int().nullable().optional(),
15006
+ user_email: z56.string(),
15007
+ email: z56.email(),
15008
+ is_active: z56.boolean().optional(),
15009
+ subscribed_at: z56.iso.datetime(),
15010
+ unsubscribed_at: z56.iso.datetime().nullable()
14821
15011
  });
14822
15012
 
14823
- // src/cfg/generated/_utils/schemas/OTPRequestResponse.schema.ts
15013
+ // src/cfg/generated/_utils/schemas/OTPErrorResponse.schema.ts
14824
15014
  import { z as z57 } from "zod";
14825
- var OTPRequestResponseSchema = z57.object({
14826
- message: z57.string()
15015
+ var OTPErrorResponseSchema = z57.object({
15016
+ error: z57.string()
14827
15017
  });
14828
15018
 
14829
- // src/cfg/generated/_utils/schemas/OTPVerifyRequest.schema.ts
15019
+ // src/cfg/generated/_utils/schemas/OTPRequestRequest.schema.ts
14830
15020
  import { z as z58 } from "zod";
14831
- var OTPVerifyRequestSchema = z58.object({
15021
+ var OTPRequestRequestSchema = z58.object({
14832
15022
  identifier: z58.string().min(1),
14833
- otp: z58.string().min(6).max(6),
14834
- channel: z58.nativeEnum(OTPVerifyRequestChannel).optional(),
15023
+ channel: z58.nativeEnum(OTPRequestRequestChannel).optional(),
14835
15024
  source_url: z58.url().optional()
14836
15025
  });
14837
15026
 
14838
- // src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
14839
- import { z as z60 } from "zod";
14840
-
14841
- // src/cfg/generated/_utils/schemas/User.schema.ts
15027
+ // src/cfg/generated/_utils/schemas/OTPRequestResponse.schema.ts
14842
15028
  import { z as z59 } from "zod";
14843
- var UserSchema = z59.object({
14844
- id: z59.int(),
14845
- email: z59.email(),
14846
- first_name: z59.string().max(50).optional(),
14847
- last_name: z59.string().max(50).optional(),
14848
- full_name: z59.string(),
14849
- initials: z59.string(),
14850
- display_username: z59.string(),
14851
- company: z59.string().max(100).optional(),
14852
- phone: z59.string().max(20).optional(),
14853
- position: z59.string().max(100).optional(),
14854
- avatar: z59.url().nullable(),
14855
- is_staff: z59.boolean(),
14856
- is_superuser: z59.boolean(),
14857
- date_joined: z59.iso.datetime(),
14858
- last_login: z59.iso.datetime().nullable(),
14859
- unanswered_messages_count: z59.int()
15029
+ var OTPRequestResponseSchema = z59.object({
15030
+ message: z59.string()
14860
15031
  });
14861
15032
 
14862
- // src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
14863
- var OTPVerifyResponseSchema = z60.object({
14864
- refresh: z60.string(),
14865
- access: z60.string(),
14866
- user: UserSchema
15033
+ // src/cfg/generated/_utils/schemas/OTPVerifyRequest.schema.ts
15034
+ import { z as z60 } from "zod";
15035
+ var OTPVerifyRequestSchema = z60.object({
15036
+ identifier: z60.string().min(1),
15037
+ otp: z60.string().min(6).max(6),
15038
+ channel: z60.nativeEnum(OTPVerifyRequestChannel).optional(),
15039
+ source_url: z60.url().optional()
14867
15040
  });
14868
15041
 
14869
- // src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts
15042
+ // src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
15043
+ import { z as z62 } from "zod";
15044
+
15045
+ // src/cfg/generated/_utils/schemas/User.schema.ts
14870
15046
  import { z as z61 } from "zod";
14871
- var PaginatedArchiveItemChunkListSchema = z61.object({
14872
- count: z61.int(),
14873
- page: z61.int(),
14874
- pages: z61.int(),
14875
- page_size: z61.int(),
14876
- has_next: z61.boolean(),
14877
- has_previous: z61.boolean(),
14878
- next_page: z61.int().nullable().optional(),
14879
- previous_page: z61.int().nullable().optional(),
14880
- results: z61.array(ArchiveItemChunkSchema)
15047
+ var UserSchema = z61.object({
15048
+ id: z61.int(),
15049
+ email: z61.email(),
15050
+ first_name: z61.string().max(50).optional(),
15051
+ last_name: z61.string().max(50).optional(),
15052
+ full_name: z61.string(),
15053
+ initials: z61.string(),
15054
+ display_username: z61.string(),
15055
+ company: z61.string().max(100).optional(),
15056
+ phone: z61.string().max(20).optional(),
15057
+ position: z61.string().max(100).optional(),
15058
+ avatar: z61.url().nullable(),
15059
+ is_staff: z61.boolean(),
15060
+ is_superuser: z61.boolean(),
15061
+ date_joined: z61.iso.datetime(),
15062
+ last_login: z61.iso.datetime().nullable(),
15063
+ unanswered_messages_count: z61.int()
14881
15064
  });
14882
15065
 
14883
- // src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts
14884
- import { z as z62 } from "zod";
14885
- var PaginatedArchiveItemListSchema = z62.object({
14886
- count: z62.int(),
14887
- page: z62.int(),
14888
- pages: z62.int(),
14889
- page_size: z62.int(),
14890
- has_next: z62.boolean(),
14891
- has_previous: z62.boolean(),
14892
- next_page: z62.int().nullable().optional(),
14893
- previous_page: z62.int().nullable().optional(),
14894
- results: z62.array(ArchiveItemSchema)
15066
+ // src/cfg/generated/_utils/schemas/OTPVerifyResponse.schema.ts
15067
+ var OTPVerifyResponseSchema = z62.object({
15068
+ refresh: z62.string(),
15069
+ access: z62.string(),
15070
+ user: UserSchema
14895
15071
  });
14896
15072
 
14897
- // src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts
15073
+ // src/cfg/generated/_utils/schemas/PaginatedArchiveItemChunkList.schema.ts
14898
15074
  import { z as z63 } from "zod";
14899
- var PaginatedArchiveSearchResultListSchema = z63.object({
15075
+ var PaginatedArchiveItemChunkListSchema = z63.object({
14900
15076
  count: z63.int(),
14901
15077
  page: z63.int(),
14902
15078
  pages: z63.int(),
@@ -14905,12 +15081,12 @@ var PaginatedArchiveSearchResultListSchema = z63.object({
14905
15081
  has_previous: z63.boolean(),
14906
15082
  next_page: z63.int().nullable().optional(),
14907
15083
  previous_page: z63.int().nullable().optional(),
14908
- results: z63.array(ArchiveSearchResultSchema)
15084
+ results: z63.array(ArchiveItemChunkSchema)
14909
15085
  });
14910
15086
 
14911
- // src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts
15087
+ // src/cfg/generated/_utils/schemas/PaginatedArchiveItemList.schema.ts
14912
15088
  import { z as z64 } from "zod";
14913
- var PaginatedChatResponseListSchema = z64.object({
15089
+ var PaginatedArchiveItemListSchema = z64.object({
14914
15090
  count: z64.int(),
14915
15091
  page: z64.int(),
14916
15092
  pages: z64.int(),
@@ -14919,12 +15095,12 @@ var PaginatedChatResponseListSchema = z64.object({
14919
15095
  has_previous: z64.boolean(),
14920
15096
  next_page: z64.int().nullable().optional(),
14921
15097
  previous_page: z64.int().nullable().optional(),
14922
- results: z64.array(ChatResponseSchema)
15098
+ results: z64.array(ArchiveItemSchema)
14923
15099
  });
14924
15100
 
14925
- // src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts
15101
+ // src/cfg/generated/_utils/schemas/PaginatedArchiveSearchResultList.schema.ts
14926
15102
  import { z as z65 } from "zod";
14927
- var PaginatedChatSessionListSchema = z65.object({
15103
+ var PaginatedArchiveSearchResultListSchema = z65.object({
14928
15104
  count: z65.int(),
14929
15105
  page: z65.int(),
14930
15106
  pages: z65.int(),
@@ -14933,12 +15109,12 @@ var PaginatedChatSessionListSchema = z65.object({
14933
15109
  has_previous: z65.boolean(),
14934
15110
  next_page: z65.int().nullable().optional(),
14935
15111
  previous_page: z65.int().nullable().optional(),
14936
- results: z65.array(ChatSessionSchema)
15112
+ results: z65.array(ArchiveSearchResultSchema)
14937
15113
  });
14938
15114
 
14939
- // src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts
15115
+ // src/cfg/generated/_utils/schemas/PaginatedChatResponseList.schema.ts
14940
15116
  import { z as z66 } from "zod";
14941
- var PaginatedDocumentArchiveListListSchema = z66.object({
15117
+ var PaginatedChatResponseListSchema = z66.object({
14942
15118
  count: z66.int(),
14943
15119
  page: z66.int(),
14944
15120
  pages: z66.int(),
@@ -14947,12 +15123,12 @@ var PaginatedDocumentArchiveListListSchema = z66.object({
14947
15123
  has_previous: z66.boolean(),
14948
15124
  next_page: z66.int().nullable().optional(),
14949
15125
  previous_page: z66.int().nullable().optional(),
14950
- results: z66.array(DocumentArchiveListSchema)
15126
+ results: z66.array(ChatResponseSchema)
14951
15127
  });
14952
15128
 
14953
- // src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts
15129
+ // src/cfg/generated/_utils/schemas/PaginatedChatSessionList.schema.ts
14954
15130
  import { z as z67 } from "zod";
14955
- var PaginatedDocumentListSchema = z67.object({
15131
+ var PaginatedChatSessionListSchema = z67.object({
14956
15132
  count: z67.int(),
14957
15133
  page: z67.int(),
14958
15134
  pages: z67.int(),
@@ -14961,12 +15137,12 @@ var PaginatedDocumentListSchema = z67.object({
14961
15137
  has_previous: z67.boolean(),
14962
15138
  next_page: z67.int().nullable().optional(),
14963
15139
  previous_page: z67.int().nullable().optional(),
14964
- results: z67.array(DocumentSchema)
15140
+ results: z67.array(ChatSessionSchema)
14965
15141
  });
14966
15142
 
14967
- // src/cfg/generated/_utils/schemas/PaginatedEmailLogList.schema.ts
15143
+ // src/cfg/generated/_utils/schemas/PaginatedDocumentArchiveListList.schema.ts
14968
15144
  import { z as z68 } from "zod";
14969
- var PaginatedEmailLogListSchema = z68.object({
15145
+ var PaginatedDocumentArchiveListListSchema = z68.object({
14970
15146
  count: z68.int(),
14971
15147
  page: z68.int(),
14972
15148
  pages: z68.int(),
@@ -14975,12 +15151,12 @@ var PaginatedEmailLogListSchema = z68.object({
14975
15151
  has_previous: z68.boolean(),
14976
15152
  next_page: z68.int().nullable().optional(),
14977
15153
  previous_page: z68.int().nullable().optional(),
14978
- results: z68.array(EmailLogSchema)
15154
+ results: z68.array(DocumentArchiveListSchema)
14979
15155
  });
14980
15156
 
14981
- // src/cfg/generated/_utils/schemas/PaginatedLeadSubmissionList.schema.ts
15157
+ // src/cfg/generated/_utils/schemas/PaginatedDocumentList.schema.ts
14982
15158
  import { z as z69 } from "zod";
14983
- var PaginatedLeadSubmissionListSchema = z69.object({
15159
+ var PaginatedDocumentListSchema = z69.object({
14984
15160
  count: z69.int(),
14985
15161
  page: z69.int(),
14986
15162
  pages: z69.int(),
@@ -14989,12 +15165,12 @@ var PaginatedLeadSubmissionListSchema = z69.object({
14989
15165
  has_previous: z69.boolean(),
14990
15166
  next_page: z69.int().nullable().optional(),
14991
15167
  previous_page: z69.int().nullable().optional(),
14992
- results: z69.array(LeadSubmissionSchema)
15168
+ results: z69.array(DocumentSchema)
14993
15169
  });
14994
15170
 
14995
- // src/cfg/generated/_utils/schemas/PaginatedMessageList.schema.ts
15171
+ // src/cfg/generated/_utils/schemas/PaginatedEmailLogList.schema.ts
14996
15172
  import { z as z70 } from "zod";
14997
- var PaginatedMessageListSchema = z70.object({
15173
+ var PaginatedEmailLogListSchema = z70.object({
14998
15174
  count: z70.int(),
14999
15175
  page: z70.int(),
15000
15176
  pages: z70.int(),
@@ -15003,12 +15179,12 @@ var PaginatedMessageListSchema = z70.object({
15003
15179
  has_previous: z70.boolean(),
15004
15180
  next_page: z70.int().nullable().optional(),
15005
15181
  previous_page: z70.int().nullable().optional(),
15006
- results: z70.array(MessageSchema)
15182
+ results: z70.array(EmailLogSchema)
15007
15183
  });
15008
15184
 
15009
- // src/cfg/generated/_utils/schemas/PaginatedNewsletterCampaignList.schema.ts
15185
+ // src/cfg/generated/_utils/schemas/PaginatedLeadSubmissionList.schema.ts
15010
15186
  import { z as z71 } from "zod";
15011
- var PaginatedNewsletterCampaignListSchema = z71.object({
15187
+ var PaginatedLeadSubmissionListSchema = z71.object({
15012
15188
  count: z71.int(),
15013
15189
  page: z71.int(),
15014
15190
  pages: z71.int(),
@@ -15017,12 +15193,12 @@ var PaginatedNewsletterCampaignListSchema = z71.object({
15017
15193
  has_previous: z71.boolean(),
15018
15194
  next_page: z71.int().nullable().optional(),
15019
15195
  previous_page: z71.int().nullable().optional(),
15020
- results: z71.array(NewsletterCampaignSchema)
15196
+ results: z71.array(LeadSubmissionSchema)
15021
15197
  });
15022
15198
 
15023
- // src/cfg/generated/_utils/schemas/PaginatedNewsletterList.schema.ts
15199
+ // src/cfg/generated/_utils/schemas/PaginatedMessageList.schema.ts
15024
15200
  import { z as z72 } from "zod";
15025
- var PaginatedNewsletterListSchema = z72.object({
15201
+ var PaginatedMessageListSchema = z72.object({
15026
15202
  count: z72.int(),
15027
15203
  page: z72.int(),
15028
15204
  pages: z72.int(),
@@ -15031,12 +15207,12 @@ var PaginatedNewsletterListSchema = z72.object({
15031
15207
  has_previous: z72.boolean(),
15032
15208
  next_page: z72.int().nullable().optional(),
15033
15209
  previous_page: z72.int().nullable().optional(),
15034
- results: z72.array(NewsletterSchema)
15210
+ results: z72.array(MessageSchema)
15035
15211
  });
15036
15212
 
15037
- // src/cfg/generated/_utils/schemas/PaginatedNewsletterSubscriptionList.schema.ts
15213
+ // src/cfg/generated/_utils/schemas/PaginatedNewsletterCampaignList.schema.ts
15038
15214
  import { z as z73 } from "zod";
15039
- var PaginatedNewsletterSubscriptionListSchema = z73.object({
15215
+ var PaginatedNewsletterCampaignListSchema = z73.object({
15040
15216
  count: z73.int(),
15041
15217
  page: z73.int(),
15042
15218
  pages: z73.int(),
@@ -15045,28 +15221,26 @@ var PaginatedNewsletterSubscriptionListSchema = z73.object({
15045
15221
  has_previous: z73.boolean(),
15046
15222
  next_page: z73.int().nullable().optional(),
15047
15223
  previous_page: z73.int().nullable().optional(),
15048
- results: z73.array(NewsletterSubscriptionSchema)
15224
+ results: z73.array(NewsletterCampaignSchema)
15049
15225
  });
15050
15226
 
15051
- // src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
15052
- import { z as z75 } from "zod";
15053
-
15054
- // src/cfg/generated/_utils/schemas/PaymentList.schema.ts
15227
+ // src/cfg/generated/_utils/schemas/PaginatedNewsletterList.schema.ts
15055
15228
  import { z as z74 } from "zod";
15056
- var PaymentListSchema = z74.object({
15057
- id: z74.uuid(),
15058
- internal_payment_id: z74.string(),
15059
- amount_usd: z74.string(),
15060
- currency_code: z74.string(),
15061
- currency_token: z74.string(),
15062
- status: z74.nativeEnum(PaymentListStatus),
15063
- status_display: z74.string(),
15064
- created_at: z74.iso.datetime(),
15065
- completed_at: z74.iso.datetime().nullable()
15229
+ var PaginatedNewsletterListSchema = z74.object({
15230
+ count: z74.int(),
15231
+ page: z74.int(),
15232
+ pages: z74.int(),
15233
+ page_size: z74.int(),
15234
+ has_next: z74.boolean(),
15235
+ has_previous: z74.boolean(),
15236
+ next_page: z74.int().nullable().optional(),
15237
+ previous_page: z74.int().nullable().optional(),
15238
+ results: z74.array(NewsletterSchema)
15066
15239
  });
15067
15240
 
15068
- // src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
15069
- var PaginatedPaymentListListSchema = z75.object({
15241
+ // src/cfg/generated/_utils/schemas/PaginatedNewsletterSubscriptionList.schema.ts
15242
+ import { z as z75 } from "zod";
15243
+ var PaginatedNewsletterSubscriptionListSchema = z75.object({
15070
15244
  count: z75.int(),
15071
15245
  page: z75.int(),
15072
15246
  pages: z75.int(),
@@ -15075,22 +15249,28 @@ var PaginatedPaymentListListSchema = z75.object({
15075
15249
  has_previous: z75.boolean(),
15076
15250
  next_page: z75.int().nullable().optional(),
15077
15251
  previous_page: z75.int().nullable().optional(),
15078
- results: z75.array(PaymentListSchema)
15252
+ results: z75.array(NewsletterSubscriptionSchema)
15079
15253
  });
15080
15254
 
15081
- // src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
15255
+ // src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
15082
15256
  import { z as z77 } from "zod";
15083
15257
 
15084
- // src/cfg/generated/_utils/schemas/PublicCategory.schema.ts
15258
+ // src/cfg/generated/_utils/schemas/PaymentList.schema.ts
15085
15259
  import { z as z76 } from "zod";
15086
- var PublicCategorySchema = z76.object({
15260
+ var PaymentListSchema = z76.object({
15087
15261
  id: z76.uuid(),
15088
- name: z76.string().max(255),
15089
- description: z76.string().optional()
15262
+ internal_payment_id: z76.string(),
15263
+ amount_usd: z76.string(),
15264
+ currency_code: z76.string(),
15265
+ currency_token: z76.string(),
15266
+ status: z76.nativeEnum(PaymentListStatus),
15267
+ status_display: z76.string(),
15268
+ created_at: z76.iso.datetime(),
15269
+ completed_at: z76.iso.datetime().nullable()
15090
15270
  });
15091
15271
 
15092
- // src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
15093
- var PaginatedPublicCategoryListSchema = z77.object({
15272
+ // src/cfg/generated/_utils/schemas/PaginatedPaymentListList.schema.ts
15273
+ var PaginatedPaymentListListSchema = z77.object({
15094
15274
  count: z77.int(),
15095
15275
  page: z77.int(),
15096
15276
  pages: z77.int(),
@@ -15099,24 +15279,22 @@ var PaginatedPublicCategoryListSchema = z77.object({
15099
15279
  has_previous: z77.boolean(),
15100
15280
  next_page: z77.int().nullable().optional(),
15101
15281
  previous_page: z77.int().nullable().optional(),
15102
- results: z77.array(PublicCategorySchema)
15282
+ results: z77.array(PaymentListSchema)
15103
15283
  });
15104
15284
 
15105
- // src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
15285
+ // src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
15106
15286
  import { z as z79 } from "zod";
15107
15287
 
15108
- // src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts
15288
+ // src/cfg/generated/_utils/schemas/PublicCategory.schema.ts
15109
15289
  import { z as z78 } from "zod";
15110
- var PublicDocumentListSchema = z78.object({
15290
+ var PublicCategorySchema = z78.object({
15111
15291
  id: z78.uuid(),
15112
- title: z78.string().max(512),
15113
- category: PublicCategorySchema,
15114
- created_at: z78.iso.datetime(),
15115
- updated_at: z78.iso.datetime()
15292
+ name: z78.string().max(255),
15293
+ description: z78.string().optional()
15116
15294
  });
15117
15295
 
15118
- // src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
15119
- var PaginatedPublicDocumentListListSchema = z79.object({
15296
+ // src/cfg/generated/_utils/schemas/PaginatedPublicCategoryList.schema.ts
15297
+ var PaginatedPublicCategoryListSchema = z79.object({
15120
15298
  count: z79.int(),
15121
15299
  page: z79.int(),
15122
15300
  pages: z79.int(),
@@ -15125,25 +15303,24 @@ var PaginatedPublicDocumentListListSchema = z79.object({
15125
15303
  has_previous: z79.boolean(),
15126
15304
  next_page: z79.int().nullable().optional(),
15127
15305
  previous_page: z79.int().nullable().optional(),
15128
- results: z79.array(PublicDocumentListSchema)
15306
+ results: z79.array(PublicCategorySchema)
15129
15307
  });
15130
15308
 
15131
- // src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
15309
+ // src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
15132
15310
  import { z as z81 } from "zod";
15133
15311
 
15134
- // src/cfg/generated/_utils/schemas/Ticket.schema.ts
15312
+ // src/cfg/generated/_utils/schemas/PublicDocumentList.schema.ts
15135
15313
  import { z as z80 } from "zod";
15136
- var TicketSchema = z80.object({
15137
- uuid: z80.uuid(),
15138
- user: z80.int(),
15139
- subject: z80.string().max(255),
15140
- status: z80.nativeEnum(TicketStatus).optional(),
15314
+ var PublicDocumentListSchema = z80.object({
15315
+ id: z80.uuid(),
15316
+ title: z80.string().max(512),
15317
+ category: PublicCategorySchema,
15141
15318
  created_at: z80.iso.datetime(),
15142
- unanswered_messages_count: z80.int()
15319
+ updated_at: z80.iso.datetime()
15143
15320
  });
15144
15321
 
15145
- // src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
15146
- var PaginatedTicketListSchema = z81.object({
15322
+ // src/cfg/generated/_utils/schemas/PaginatedPublicDocumentListList.schema.ts
15323
+ var PaginatedPublicDocumentListListSchema = z81.object({
15147
15324
  count: z81.int(),
15148
15325
  page: z81.int(),
15149
15326
  pages: z81.int(),
@@ -15152,333 +15329,374 @@ var PaginatedTicketListSchema = z81.object({
15152
15329
  has_previous: z81.boolean(),
15153
15330
  next_page: z81.int().nullable().optional(),
15154
15331
  previous_page: z81.int().nullable().optional(),
15155
- results: z81.array(TicketSchema)
15332
+ results: z81.array(PublicDocumentListSchema)
15156
15333
  });
15157
15334
 
15158
- // src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts
15335
+ // src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
15336
+ import { z as z83 } from "zod";
15337
+
15338
+ // src/cfg/generated/_utils/schemas/Ticket.schema.ts
15159
15339
  import { z as z82 } from "zod";
15160
- var PatchedArchiveItemChunkRequestSchema = z82.object({
15161
- content: z82.string().min(1).optional(),
15162
- chunk_index: z82.int().min(0).max(2147483647).optional(),
15163
- chunk_type: z82.nativeEnum(PatchedArchiveItemChunkRequestChunkType).optional()
15340
+ var TicketSchema = z82.object({
15341
+ uuid: z82.uuid(),
15342
+ user: z82.int(),
15343
+ subject: z82.string().max(255),
15344
+ status: z82.nativeEnum(TicketStatus).optional(),
15345
+ created_at: z82.iso.datetime(),
15346
+ unanswered_messages_count: z82.int()
15164
15347
  });
15165
15348
 
15166
- // src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts
15167
- import { z as z83 } from "zod";
15168
- var PatchedArchiveItemRequestSchema = z83.object({
15169
- relative_path: z83.string().min(1).max(1024).optional(),
15170
- item_name: z83.string().min(1).max(255).optional(),
15171
- item_type: z83.string().min(1).max(100).optional(),
15172
- file_size: z83.int().min(0).max(2147483647).optional()
15349
+ // src/cfg/generated/_utils/schemas/PaginatedTicketList.schema.ts
15350
+ var PaginatedTicketListSchema = z83.object({
15351
+ count: z83.int(),
15352
+ page: z83.int(),
15353
+ pages: z83.int(),
15354
+ page_size: z83.int(),
15355
+ has_next: z83.boolean(),
15356
+ has_previous: z83.boolean(),
15357
+ next_page: z83.int().nullable().optional(),
15358
+ previous_page: z83.int().nullable().optional(),
15359
+ results: z83.array(TicketSchema)
15173
15360
  });
15174
15361
 
15175
- // src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts
15362
+ // src/cfg/generated/_utils/schemas/PatchedArchiveItemChunkRequest.schema.ts
15176
15363
  import { z as z84 } from "zod";
15177
- var PatchedChatResponseRequestSchema = z84.object({
15178
- message_id: z84.uuid().optional(),
15364
+ var PatchedArchiveItemChunkRequestSchema = z84.object({
15179
15365
  content: z84.string().min(1).optional(),
15180
- tokens_used: z84.int().optional(),
15181
- cost_usd: z84.number().optional(),
15182
- processing_time_ms: z84.int().optional(),
15183
- model_used: z84.string().min(1).optional(),
15184
- sources: z84.array(ChatSourceRequestSchema).nullable().optional()
15366
+ chunk_index: z84.int().min(0).max(2147483647).optional(),
15367
+ chunk_type: z84.nativeEnum(PatchedArchiveItemChunkRequestChunkType).optional()
15185
15368
  });
15186
15369
 
15187
- // src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts
15370
+ // src/cfg/generated/_utils/schemas/PatchedArchiveItemRequest.schema.ts
15188
15371
  import { z as z85 } from "zod";
15189
- var PatchedChatSessionRequestSchema = z85.object({
15190
- title: z85.string().max(255).optional(),
15191
- is_active: z85.boolean().optional(),
15192
- messages_count: z85.int().min(0).max(2147483647).optional(),
15193
- total_tokens_used: z85.int().min(0).max(2147483647).optional(),
15194
- model_name: z85.string().min(1).max(100).optional(),
15195
- temperature: z85.number().optional(),
15196
- max_context_chunks: z85.int().min(0).max(2147483647).optional()
15372
+ var PatchedArchiveItemRequestSchema = z85.object({
15373
+ relative_path: z85.string().min(1).max(1024).optional(),
15374
+ item_name: z85.string().min(1).max(255).optional(),
15375
+ item_type: z85.string().min(1).max(100).optional(),
15376
+ file_size: z85.int().min(0).max(2147483647).optional()
15197
15377
  });
15198
15378
 
15199
- // src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts
15379
+ // src/cfg/generated/_utils/schemas/PatchedChatResponseRequest.schema.ts
15200
15380
  import { z as z86 } from "zod";
15201
- var PatchedDocumentArchiveRequestSchema = z86.object({
15202
- title: z86.string().min(1).max(512).optional(),
15203
- description: z86.string().optional(),
15204
- is_public: z86.boolean().optional()
15381
+ var PatchedChatResponseRequestSchema = z86.object({
15382
+ message_id: z86.uuid().optional(),
15383
+ content: z86.string().min(1).optional(),
15384
+ tokens_used: z86.int().optional(),
15385
+ cost_usd: z86.number().optional(),
15386
+ processing_time_ms: z86.int().optional(),
15387
+ model_used: z86.string().min(1).optional(),
15388
+ sources: z86.array(ChatSourceRequestSchema).nullable().optional()
15205
15389
  });
15206
15390
 
15207
- // src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts
15391
+ // src/cfg/generated/_utils/schemas/PatchedChatSessionRequest.schema.ts
15208
15392
  import { z as z87 } from "zod";
15209
- var PatchedDocumentRequestSchema = z87.object({
15210
- title: z87.string().min(1).max(512).optional(),
15211
- file_type: z87.string().min(1).max(100).optional(),
15212
- file_size: z87.int().min(0).max(2147483647).optional(),
15213
- metadata: z87.string().nullable().optional()
15393
+ var PatchedChatSessionRequestSchema = z87.object({
15394
+ title: z87.string().max(255).optional(),
15395
+ is_active: z87.boolean().optional(),
15396
+ messages_count: z87.int().min(0).max(2147483647).optional(),
15397
+ total_tokens_used: z87.int().min(0).max(2147483647).optional(),
15398
+ model_name: z87.string().min(1).max(100).optional(),
15399
+ temperature: z87.number().optional(),
15400
+ max_context_chunks: z87.int().min(0).max(2147483647).optional()
15214
15401
  });
15215
15402
 
15216
- // src/cfg/generated/_utils/schemas/PatchedLeadSubmissionRequest.schema.ts
15403
+ // src/cfg/generated/_utils/schemas/PatchedDocumentArchiveRequest.schema.ts
15217
15404
  import { z as z88 } from "zod";
15218
- var PatchedLeadSubmissionRequestSchema = z88.object({
15219
- name: z88.string().min(1).max(200).optional(),
15220
- email: z88.email().optional(),
15221
- company: z88.string().max(200).nullable().optional(),
15222
- company_site: z88.string().max(200).nullable().optional(),
15223
- contact_type: z88.nativeEnum(PatchedLeadSubmissionRequestContactType).optional(),
15224
- contact_value: z88.string().max(200).nullable().optional(),
15225
- subject: z88.string().max(200).nullable().optional(),
15226
- message: z88.string().min(1).optional(),
15227
- extra: z88.string().nullable().optional(),
15228
- site_url: z88.url().optional()
15405
+ var PatchedDocumentArchiveRequestSchema = z88.object({
15406
+ title: z88.string().min(1).max(512).optional(),
15407
+ description: z88.string().optional(),
15408
+ is_public: z88.boolean().optional()
15229
15409
  });
15230
15410
 
15231
- // src/cfg/generated/_utils/schemas/PatchedMessageRequest.schema.ts
15411
+ // src/cfg/generated/_utils/schemas/PatchedDocumentRequest.schema.ts
15232
15412
  import { z as z89 } from "zod";
15233
- var PatchedMessageRequestSchema = z89.object({
15234
- text: z89.string().min(1).optional()
15413
+ var PatchedDocumentRequestSchema = z89.object({
15414
+ title: z89.string().min(1).max(512).optional(),
15415
+ file_type: z89.string().min(1).max(100).optional(),
15416
+ file_size: z89.int().min(0).max(2147483647).optional(),
15417
+ metadata: z89.string().nullable().optional()
15235
15418
  });
15236
15419
 
15237
- // src/cfg/generated/_utils/schemas/PatchedNewsletterCampaignRequest.schema.ts
15420
+ // src/cfg/generated/_utils/schemas/PatchedLeadSubmissionRequest.schema.ts
15238
15421
  import { z as z90 } from "zod";
15239
- var PatchedNewsletterCampaignRequestSchema = z90.object({
15240
- newsletter: z90.int().optional(),
15241
- subject: z90.string().min(1).max(255).optional(),
15242
- email_title: z90.string().min(1).max(255).optional(),
15243
- main_text: z90.string().min(1).optional(),
15244
- main_html_content: z90.string().optional(),
15245
- button_text: z90.string().max(100).optional(),
15246
- button_url: z90.url().optional(),
15247
- secondary_text: z90.string().optional()
15422
+ var PatchedLeadSubmissionRequestSchema = z90.object({
15423
+ name: z90.string().min(1).max(200).optional(),
15424
+ email: z90.email().optional(),
15425
+ company: z90.string().max(200).nullable().optional(),
15426
+ company_site: z90.string().max(200).nullable().optional(),
15427
+ contact_type: z90.nativeEnum(PatchedLeadSubmissionRequestContactType).optional(),
15428
+ contact_value: z90.string().max(200).nullable().optional(),
15429
+ subject: z90.string().max(200).nullable().optional(),
15430
+ message: z90.string().min(1).optional(),
15431
+ extra: z90.string().nullable().optional(),
15432
+ site_url: z90.url().optional()
15248
15433
  });
15249
15434
 
15250
- // src/cfg/generated/_utils/schemas/PatchedTicketRequest.schema.ts
15435
+ // src/cfg/generated/_utils/schemas/PatchedMessageRequest.schema.ts
15251
15436
  import { z as z91 } from "zod";
15252
- var PatchedTicketRequestSchema = z91.object({
15253
- user: z91.int().optional(),
15254
- subject: z91.string().min(1).max(255).optional(),
15255
- status: z91.nativeEnum(PatchedTicketRequestStatus).optional()
15437
+ var PatchedMessageRequestSchema = z91.object({
15438
+ text: z91.string().min(1).optional()
15256
15439
  });
15257
15440
 
15258
- // src/cfg/generated/_utils/schemas/PatchedUnsubscribeRequest.schema.ts
15441
+ // src/cfg/generated/_utils/schemas/PatchedNewsletterCampaignRequest.schema.ts
15259
15442
  import { z as z92 } from "zod";
15260
- var PatchedUnsubscribeRequestSchema = z92.object({
15261
- subscription_id: z92.int().optional()
15443
+ var PatchedNewsletterCampaignRequestSchema = z92.object({
15444
+ newsletter: z92.int().optional(),
15445
+ subject: z92.string().min(1).max(255).optional(),
15446
+ email_title: z92.string().min(1).max(255).optional(),
15447
+ main_text: z92.string().min(1).optional(),
15448
+ main_html_content: z92.string().optional(),
15449
+ button_text: z92.string().max(100).optional(),
15450
+ button_url: z92.url().optional(),
15451
+ secondary_text: z92.string().optional()
15262
15452
  });
15263
15453
 
15264
- // src/cfg/generated/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
15454
+ // src/cfg/generated/_utils/schemas/PatchedTicketRequest.schema.ts
15265
15455
  import { z as z93 } from "zod";
15266
- var PatchedUserProfileUpdateRequestSchema = z93.object({
15267
- first_name: z93.string().max(50).optional(),
15268
- last_name: z93.string().max(50).optional(),
15269
- company: z93.string().max(100).optional(),
15270
- phone: z93.string().max(20).optional(),
15271
- position: z93.string().max(100).optional()
15456
+ var PatchedTicketRequestSchema = z93.object({
15457
+ user: z93.int().optional(),
15458
+ subject: z93.string().min(1).max(255).optional(),
15459
+ status: z93.nativeEnum(PatchedTicketRequestStatus).optional()
15272
15460
  });
15273
15461
 
15274
- // src/cfg/generated/_utils/schemas/PaymentDetail.schema.ts
15462
+ // src/cfg/generated/_utils/schemas/PatchedUnsubscribeRequest.schema.ts
15275
15463
  import { z as z94 } from "zod";
15276
- var PaymentDetailSchema = z94.object({
15277
- id: z94.uuid(),
15278
- internal_payment_id: z94.string(),
15279
- amount_usd: z94.string(),
15280
- currency_code: z94.string(),
15281
- currency_name: z94.string(),
15282
- currency_token: z94.string(),
15283
- currency_network: z94.string(),
15284
- pay_amount: z94.string().nullable(),
15285
- actual_amount: z94.string().nullable(),
15286
- actual_amount_usd: z94.string().nullable(),
15287
- status: z94.nativeEnum(PaymentDetailStatus),
15288
- status_display: z94.string(),
15289
- pay_address: z94.string().nullable(),
15290
- qr_code_url: z94.string(),
15291
- payment_url: z94.url().nullable(),
15292
- transaction_hash: z94.string().nullable(),
15293
- explorer_link: z94.string(),
15294
- confirmations_count: z94.int(),
15295
- expires_at: z94.iso.datetime().nullable(),
15296
- completed_at: z94.iso.datetime().nullable(),
15297
- created_at: z94.iso.datetime(),
15298
- is_completed: z94.boolean(),
15299
- is_failed: z94.boolean(),
15300
- is_expired: z94.boolean(),
15301
- description: z94.string()
15464
+ var PatchedUnsubscribeRequestSchema = z94.object({
15465
+ subscription_id: z94.int().optional()
15302
15466
  });
15303
15467
 
15304
- // src/cfg/generated/_utils/schemas/PublicDocument.schema.ts
15468
+ // src/cfg/generated/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
15305
15469
  import { z as z95 } from "zod";
15306
- var PublicDocumentSchema = z95.object({
15307
- id: z95.uuid(),
15308
- title: z95.string().max(512),
15309
- content: z95.string(),
15310
- category: PublicCategorySchema,
15311
- created_at: z95.iso.datetime(),
15312
- updated_at: z95.iso.datetime()
15470
+ var PatchedUserProfileUpdateRequestSchema = z95.object({
15471
+ first_name: z95.string().max(50).optional(),
15472
+ last_name: z95.string().max(50).optional(),
15473
+ company: z95.string().max(100).optional(),
15474
+ phone: z95.string().max(20).optional(),
15475
+ position: z95.string().max(100).optional()
15313
15476
  });
15314
15477
 
15315
- // src/cfg/generated/_utils/schemas/QueueAction.schema.ts
15478
+ // src/cfg/generated/_utils/schemas/PaymentDetail.schema.ts
15316
15479
  import { z as z96 } from "zod";
15317
- var QueueActionSchema = z96.object({
15318
- action: z96.nativeEnum(QueueActionAction),
15319
- queue_names: z96.array(z96.string()).optional()
15480
+ var PaymentDetailSchema = z96.object({
15481
+ id: z96.uuid(),
15482
+ internal_payment_id: z96.string(),
15483
+ amount_usd: z96.string(),
15484
+ currency_code: z96.string(),
15485
+ currency_name: z96.string(),
15486
+ currency_token: z96.string(),
15487
+ currency_network: z96.string(),
15488
+ pay_amount: z96.string().nullable(),
15489
+ actual_amount: z96.string().nullable(),
15490
+ actual_amount_usd: z96.string().nullable(),
15491
+ status: z96.nativeEnum(PaymentDetailStatus),
15492
+ status_display: z96.string(),
15493
+ pay_address: z96.string().nullable(),
15494
+ qr_code_url: z96.string().nullable(),
15495
+ payment_url: z96.url().nullable(),
15496
+ transaction_hash: z96.string().nullable(),
15497
+ explorer_link: z96.string().nullable(),
15498
+ confirmations_count: z96.int(),
15499
+ expires_at: z96.iso.datetime().nullable(),
15500
+ completed_at: z96.iso.datetime().nullable(),
15501
+ created_at: z96.iso.datetime(),
15502
+ is_completed: z96.boolean(),
15503
+ is_failed: z96.boolean(),
15504
+ is_expired: z96.boolean(),
15505
+ description: z96.string()
15320
15506
  });
15321
15507
 
15322
- // src/cfg/generated/_utils/schemas/QueueActionRequest.schema.ts
15508
+ // src/cfg/generated/_utils/schemas/PublicDocument.schema.ts
15323
15509
  import { z as z97 } from "zod";
15324
- var QueueActionRequestSchema = z97.object({
15325
- action: z97.nativeEnum(QueueActionRequestAction),
15326
- queue_names: z97.array(z97.string().min(1)).optional()
15510
+ var PublicDocumentSchema = z97.object({
15511
+ id: z97.uuid(),
15512
+ title: z97.string().max(512),
15513
+ content: z97.string(),
15514
+ category: PublicCategorySchema,
15515
+ created_at: z97.iso.datetime(),
15516
+ updated_at: z97.iso.datetime()
15327
15517
  });
15328
15518
 
15329
- // src/cfg/generated/_utils/schemas/QueueStatus.schema.ts
15519
+ // src/cfg/generated/_utils/schemas/QueueAction.schema.ts
15330
15520
  import { z as z98 } from "zod";
15331
- var QueueStatusSchema = z98.object({
15332
- queues: z98.record(z98.string(), z98.any()),
15333
- workers: z98.int(),
15334
- redis_connected: z98.boolean(),
15335
- timestamp: z98.string(),
15336
- error: z98.string().optional()
15521
+ var QueueActionSchema = z98.object({
15522
+ action: z98.nativeEnum(QueueActionAction),
15523
+ queue_names: z98.array(z98.string()).optional()
15337
15524
  });
15338
15525
 
15339
- // src/cfg/generated/_utils/schemas/QuickHealth.schema.ts
15526
+ // src/cfg/generated/_utils/schemas/QueueActionRequest.schema.ts
15340
15527
  import { z as z99 } from "zod";
15341
- var QuickHealthSchema = z99.object({
15342
- status: z99.string(),
15343
- timestamp: z99.iso.datetime(),
15344
- error: z99.string().optional()
15528
+ var QueueActionRequestSchema = z99.object({
15529
+ action: z99.nativeEnum(QueueActionRequestAction),
15530
+ queue_names: z99.array(z99.string().min(1)).optional()
15345
15531
  });
15346
15532
 
15347
- // src/cfg/generated/_utils/schemas/SendCampaignRequest.schema.ts
15533
+ // src/cfg/generated/_utils/schemas/QueueStatus.schema.ts
15348
15534
  import { z as z100 } from "zod";
15349
- var SendCampaignRequestSchema = z100.object({
15350
- campaign_id: z100.int()
15535
+ var QueueStatusSchema = z100.object({
15536
+ queues: z100.record(z100.string(), z100.any()),
15537
+ workers: z100.int(),
15538
+ redis_connected: z100.boolean(),
15539
+ timestamp: z100.string(),
15540
+ error: z100.string().optional()
15351
15541
  });
15352
15542
 
15353
- // src/cfg/generated/_utils/schemas/SendCampaignResponse.schema.ts
15543
+ // src/cfg/generated/_utils/schemas/QuickHealth.schema.ts
15354
15544
  import { z as z101 } from "zod";
15355
- var SendCampaignResponseSchema = z101.object({
15356
- success: z101.boolean(),
15357
- message: z101.string().optional(),
15358
- sent_count: z101.int().optional(),
15545
+ var QuickHealthSchema = z101.object({
15546
+ status: z101.string(),
15547
+ timestamp: z101.iso.datetime(),
15359
15548
  error: z101.string().optional()
15360
15549
  });
15361
15550
 
15362
- // src/cfg/generated/_utils/schemas/SubscribeRequest.schema.ts
15551
+ // src/cfg/generated/_utils/schemas/SendCampaignRequest.schema.ts
15363
15552
  import { z as z102 } from "zod";
15364
- var SubscribeRequestSchema = z102.object({
15365
- newsletter_id: z102.int(),
15366
- email: z102.email()
15553
+ var SendCampaignRequestSchema = z102.object({
15554
+ campaign_id: z102.int()
15367
15555
  });
15368
15556
 
15369
- // src/cfg/generated/_utils/schemas/SubscribeResponse.schema.ts
15557
+ // src/cfg/generated/_utils/schemas/SendCampaignResponse.schema.ts
15370
15558
  import { z as z103 } from "zod";
15371
- var SubscribeResponseSchema = z103.object({
15559
+ var SendCampaignResponseSchema = z103.object({
15372
15560
  success: z103.boolean(),
15373
- message: z103.string(),
15374
- subscription_id: z103.int().optional()
15561
+ message: z103.string().optional(),
15562
+ sent_count: z103.int().optional(),
15563
+ error: z103.string().optional()
15375
15564
  });
15376
15565
 
15377
- // src/cfg/generated/_utils/schemas/SuccessResponse.schema.ts
15566
+ // src/cfg/generated/_utils/schemas/SubscribeRequest.schema.ts
15378
15567
  import { z as z104 } from "zod";
15379
- var SuccessResponseSchema = z104.object({
15380
- success: z104.boolean(),
15381
- message: z104.string()
15568
+ var SubscribeRequestSchema = z104.object({
15569
+ newsletter_id: z104.int(),
15570
+ email: z104.email()
15382
15571
  });
15383
15572
 
15384
- // src/cfg/generated/_utils/schemas/TaskStatistics.schema.ts
15573
+ // src/cfg/generated/_utils/schemas/SubscribeResponse.schema.ts
15385
15574
  import { z as z105 } from "zod";
15386
- var TaskStatisticsSchema = z105.object({
15387
- statistics: z105.record(z105.string(), z105.any()),
15388
- recent_tasks: z105.array(z105.record(z105.string(), z105.any())),
15389
- timestamp: z105.string(),
15390
- error: z105.string().optional()
15575
+ var SubscribeResponseSchema = z105.object({
15576
+ success: z105.boolean(),
15577
+ message: z105.string(),
15578
+ subscription_id: z105.int().optional()
15391
15579
  });
15392
15580
 
15393
- // src/cfg/generated/_utils/schemas/TestEmailRequest.schema.ts
15581
+ // src/cfg/generated/_utils/schemas/SuccessResponse.schema.ts
15394
15582
  import { z as z106 } from "zod";
15395
- var TestEmailRequestSchema = z106.object({
15396
- email: z106.email(),
15397
- subject: z106.string().min(1).max(255).optional(),
15398
- message: z106.string().min(1).optional()
15583
+ var SuccessResponseSchema = z106.object({
15584
+ success: z106.boolean(),
15585
+ message: z106.string()
15399
15586
  });
15400
15587
 
15401
- // src/cfg/generated/_utils/schemas/TicketRequest.schema.ts
15588
+ // src/cfg/generated/_utils/schemas/TaskStatistics.schema.ts
15402
15589
  import { z as z107 } from "zod";
15403
- var TicketRequestSchema = z107.object({
15404
- user: z107.int(),
15405
- subject: z107.string().min(1).max(255),
15406
- status: z107.nativeEnum(TicketRequestStatus).optional()
15590
+ var TaskStatisticsSchema = z107.object({
15591
+ statistics: z107.record(z107.string(), z107.any()),
15592
+ recent_tasks: z107.array(z107.record(z107.string(), z107.any())),
15593
+ timestamp: z107.string(),
15594
+ error: z107.string().optional()
15407
15595
  });
15408
15596
 
15409
- // src/cfg/generated/_utils/schemas/TokenRefresh.schema.ts
15597
+ // src/cfg/generated/_utils/schemas/TestEmailRequest.schema.ts
15410
15598
  import { z as z108 } from "zod";
15411
- var TokenRefreshSchema = z108.object({
15412
- access: z108.string(),
15413
- refresh: z108.string()
15599
+ var TestEmailRequestSchema = z108.object({
15600
+ email: z108.email(),
15601
+ subject: z108.string().min(1).max(255).optional(),
15602
+ message: z108.string().min(1).optional()
15414
15603
  });
15415
15604
 
15416
- // src/cfg/generated/_utils/schemas/TokenRefreshRequest.schema.ts
15605
+ // src/cfg/generated/_utils/schemas/TicketRequest.schema.ts
15417
15606
  import { z as z109 } from "zod";
15418
- var TokenRefreshRequestSchema = z109.object({
15419
- refresh: z109.string().min(1)
15607
+ var TicketRequestSchema = z109.object({
15608
+ user: z109.int(),
15609
+ subject: z109.string().min(1).max(255),
15610
+ status: z109.nativeEnum(TicketRequestStatus).optional()
15420
15611
  });
15421
15612
 
15422
- // src/cfg/generated/_utils/schemas/Unsubscribe.schema.ts
15613
+ // src/cfg/generated/_utils/schemas/TokenRefresh.schema.ts
15423
15614
  import { z as z110 } from "zod";
15424
- var UnsubscribeSchema = z110.object({
15425
- subscription_id: z110.int()
15615
+ var TokenRefreshSchema = z110.object({
15616
+ access: z110.string(),
15617
+ refresh: z110.string()
15426
15618
  });
15427
15619
 
15428
- // src/cfg/generated/_utils/schemas/UnsubscribeRequest.schema.ts
15620
+ // src/cfg/generated/_utils/schemas/TokenRefreshRequest.schema.ts
15429
15621
  import { z as z111 } from "zod";
15430
- var UnsubscribeRequestSchema = z111.object({
15431
- subscription_id: z111.int()
15622
+ var TokenRefreshRequestSchema = z111.object({
15623
+ refresh: z111.string().min(1)
15432
15624
  });
15433
15625
 
15434
- // src/cfg/generated/_utils/schemas/UserProfileUpdateRequest.schema.ts
15626
+ // src/cfg/generated/_utils/schemas/Transaction.schema.ts
15435
15627
  import { z as z112 } from "zod";
15436
- var UserProfileUpdateRequestSchema = z112.object({
15437
- first_name: z112.string().max(50).optional(),
15438
- last_name: z112.string().max(50).optional(),
15439
- company: z112.string().max(100).optional(),
15440
- phone: z112.string().max(20).optional(),
15441
- position: z112.string().max(100).optional()
15628
+ var TransactionSchema = z112.object({
15629
+ id: z112.uuid(),
15630
+ transaction_type: z112.nativeEnum(TransactionTransactionType),
15631
+ type_display: z112.string(),
15632
+ amount_usd: z112.string(),
15633
+ amount_display: z112.string(),
15634
+ balance_after: z112.string(),
15635
+ payment_id: z112.string().nullable(),
15636
+ description: z112.string(),
15637
+ created_at: z112.iso.datetime()
15442
15638
  });
15443
15639
 
15444
- // src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts
15640
+ // src/cfg/generated/_utils/schemas/Unsubscribe.schema.ts
15445
15641
  import { z as z113 } from "zod";
15446
- var VectorizationResultSchema = z113.object({
15447
- vectorized_count: z113.int(),
15448
- failed_count: z113.int(),
15449
- total_tokens: z113.int(),
15450
- total_cost: z113.number(),
15451
- success_rate: z113.number(),
15452
- errors: z113.array(z113.string())
15642
+ var UnsubscribeSchema = z113.object({
15643
+ subscription_id: z113.int()
15453
15644
  });
15454
15645
 
15455
- // src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts
15646
+ // src/cfg/generated/_utils/schemas/UnsubscribeRequest.schema.ts
15456
15647
  import { z as z114 } from "zod";
15457
- var VectorizationStatisticsSchema = z114.object({
15458
- total_chunks: z114.int(),
15459
- vectorized_chunks: z114.int(),
15460
- pending_chunks: z114.int(),
15461
- vectorization_rate: z114.number(),
15462
- total_tokens: z114.int(),
15463
- total_cost: z114.number(),
15464
- avg_tokens_per_chunk: z114.number(),
15465
- avg_cost_per_chunk: z114.number()
15648
+ var UnsubscribeRequestSchema = z114.object({
15649
+ subscription_id: z114.int()
15466
15650
  });
15467
15651
 
15468
- // src/cfg/generated/_utils/schemas/WorkerAction.schema.ts
15652
+ // src/cfg/generated/_utils/schemas/UserProfileUpdateRequest.schema.ts
15469
15653
  import { z as z115 } from "zod";
15470
- var WorkerActionSchema = z115.object({
15471
- action: z115.nativeEnum(WorkerActionAction),
15472
- processes: z115.int().min(1).max(10).optional(),
15473
- threads: z115.int().min(1).max(20).optional()
15654
+ var UserProfileUpdateRequestSchema = z115.object({
15655
+ first_name: z115.string().max(50).optional(),
15656
+ last_name: z115.string().max(50).optional(),
15657
+ company: z115.string().max(100).optional(),
15658
+ phone: z115.string().max(20).optional(),
15659
+ position: z115.string().max(100).optional()
15474
15660
  });
15475
15661
 
15476
- // src/cfg/generated/_utils/schemas/WorkerActionRequest.schema.ts
15662
+ // src/cfg/generated/_utils/schemas/VectorizationResult.schema.ts
15477
15663
  import { z as z116 } from "zod";
15478
- var WorkerActionRequestSchema = z116.object({
15479
- action: z116.nativeEnum(WorkerActionRequestAction),
15480
- processes: z116.int().min(1).max(10).optional(),
15481
- threads: z116.int().min(1).max(20).optional()
15664
+ var VectorizationResultSchema = z116.object({
15665
+ vectorized_count: z116.int(),
15666
+ failed_count: z116.int(),
15667
+ total_tokens: z116.int(),
15668
+ total_cost: z116.number(),
15669
+ success_rate: z116.number(),
15670
+ errors: z116.array(z116.string())
15671
+ });
15672
+
15673
+ // src/cfg/generated/_utils/schemas/VectorizationStatistics.schema.ts
15674
+ import { z as z117 } from "zod";
15675
+ var VectorizationStatisticsSchema = z117.object({
15676
+ total_chunks: z117.int(),
15677
+ vectorized_chunks: z117.int(),
15678
+ pending_chunks: z117.int(),
15679
+ vectorization_rate: z117.number(),
15680
+ total_tokens: z117.int(),
15681
+ total_cost: z117.number(),
15682
+ avg_tokens_per_chunk: z117.number(),
15683
+ avg_cost_per_chunk: z117.number()
15684
+ });
15685
+
15686
+ // src/cfg/generated/_utils/schemas/WorkerAction.schema.ts
15687
+ import { z as z118 } from "zod";
15688
+ var WorkerActionSchema = z118.object({
15689
+ action: z118.nativeEnum(WorkerActionAction),
15690
+ processes: z118.int().min(1).max(10).optional(),
15691
+ threads: z118.int().min(1).max(20).optional()
15692
+ });
15693
+
15694
+ // src/cfg/generated/_utils/schemas/WorkerActionRequest.schema.ts
15695
+ import { z as z119 } from "zod";
15696
+ var WorkerActionRequestSchema = z119.object({
15697
+ action: z119.nativeEnum(WorkerActionRequestAction),
15698
+ processes: z119.int().min(1).max(10).optional(),
15699
+ threads: z119.int().min(1).max(20).optional()
15482
15700
  });
15483
15701
 
15484
15702
  // src/cfg/generated/_utils/fetchers/index.ts
@@ -15568,11 +15786,11 @@ __export(fetchers_exports, {
15568
15786
  getNewsletterNewslettersRetrieve: () => getNewsletterNewslettersRetrieve,
15569
15787
  getNewsletterSubscriptionsList: () => getNewsletterSubscriptionsList,
15570
15788
  getPaymentsBalanceRetrieve: () => getPaymentsBalanceRetrieve,
15571
- getPaymentsCurrenciesRetrieve: () => getPaymentsCurrenciesRetrieve,
15789
+ getPaymentsCurrenciesList: () => getPaymentsCurrenciesList,
15572
15790
  getPaymentsPaymentsList: () => getPaymentsPaymentsList,
15573
15791
  getPaymentsPaymentsRetrieve: () => getPaymentsPaymentsRetrieve,
15574
15792
  getPaymentsPaymentsStatusRetrieve: () => getPaymentsPaymentsStatusRetrieve,
15575
- getPaymentsTransactionsRetrieve: () => getPaymentsTransactionsRetrieve,
15793
+ getPaymentsTransactionsList: () => getPaymentsTransactionsList,
15576
15794
  getSupportTicketsList: () => getSupportTicketsList,
15577
15795
  getSupportTicketsMessagesList: () => getSupportTicketsMessagesList,
15578
15796
  getSupportTicketsMessagesRetrieve: () => getSupportTicketsMessagesRetrieve,
@@ -16149,11 +16367,11 @@ async function createNewsletterTestCreate(data, client) {
16149
16367
  async function getPaymentsBalanceRetrieve(client) {
16150
16368
  const api2 = client || getAPIInstance();
16151
16369
  const response = await api2.cfg_payments.balanceRetrieve();
16152
- return response;
16370
+ return BalanceSchema.parse(response);
16153
16371
  }
16154
- async function getPaymentsCurrenciesRetrieve(client) {
16372
+ async function getPaymentsCurrenciesList(client) {
16155
16373
  const api2 = client || getAPIInstance();
16156
- const response = await api2.cfg_payments.currenciesRetrieve();
16374
+ const response = await api2.cfg_payments.currenciesList();
16157
16375
  return response;
16158
16376
  }
16159
16377
  async function getPaymentsPaymentsList(params, client) {
@@ -16181,9 +16399,9 @@ async function createPaymentsPaymentsCreateCreate(client) {
16181
16399
  const response = await api2.cfg_payments.paymentsCreateCreate();
16182
16400
  return PaymentListSchema.parse(response);
16183
16401
  }
16184
- async function getPaymentsTransactionsRetrieve(client) {
16402
+ async function getPaymentsTransactionsList(params, client) {
16185
16403
  const api2 = client || getAPIInstance();
16186
- const response = await api2.cfg_payments.transactionsRetrieve();
16404
+ const response = await api2.cfg_payments.transactionsList(params?.limit, params?.offset, params?.type);
16187
16405
  return response;
16188
16406
  }
16189
16407
 
@@ -16402,11 +16620,11 @@ __export(hooks_exports, {
16402
16620
  usePartialUpdateSupportTicketsMessagesPartialUpdate: () => usePartialUpdateSupportTicketsMessagesPartialUpdate,
16403
16621
  usePartialUpdateSupportTicketsPartialUpdate: () => usePartialUpdateSupportTicketsPartialUpdate,
16404
16622
  usePaymentsBalanceRetrieve: () => usePaymentsBalanceRetrieve,
16405
- usePaymentsCurrenciesRetrieve: () => usePaymentsCurrenciesRetrieve,
16623
+ usePaymentsCurrenciesList: () => usePaymentsCurrenciesList,
16406
16624
  usePaymentsPaymentsList: () => usePaymentsPaymentsList,
16407
16625
  usePaymentsPaymentsRetrieve: () => usePaymentsPaymentsRetrieve,
16408
16626
  usePaymentsPaymentsStatusRetrieve: () => usePaymentsPaymentsStatusRetrieve,
16409
- usePaymentsTransactionsRetrieve: () => usePaymentsTransactionsRetrieve,
16627
+ usePaymentsTransactionsList: () => usePaymentsTransactionsList,
16410
16628
  useSupportTicketsList: () => useSupportTicketsList,
16411
16629
  useSupportTicketsMessagesList: () => useSupportTicketsMessagesList,
16412
16630
  useSupportTicketsMessagesRetrieve: () => useSupportTicketsMessagesRetrieve,
@@ -17170,10 +17388,10 @@ function usePaymentsBalanceRetrieve(client) {
17170
17388
  () => getPaymentsBalanceRetrieve(client)
17171
17389
  );
17172
17390
  }
17173
- function usePaymentsCurrenciesRetrieve(client) {
17391
+ function usePaymentsCurrenciesList(client) {
17174
17392
  return useSWR10(
17175
- "cfg-payments-currencie",
17176
- () => getPaymentsCurrenciesRetrieve(client)
17393
+ "cfg-payments-currencies",
17394
+ () => getPaymentsCurrenciesList(client)
17177
17395
  );
17178
17396
  }
17179
17397
  function usePaymentsPaymentsList(params, client) {
@@ -17210,10 +17428,10 @@ function useCreatePaymentsPaymentsCreateCreate() {
17210
17428
  return result;
17211
17429
  };
17212
17430
  }
17213
- function usePaymentsTransactionsRetrieve(client) {
17431
+ function usePaymentsTransactionsList(params, client) {
17214
17432
  return useSWR10(
17215
- "cfg-payments-transaction",
17216
- () => getPaymentsTransactionsRetrieve(client)
17433
+ params ? ["cfg-payments-transactions", params] : "cfg-payments-transactions",
17434
+ () => getPaymentsTransactionsList(params, client)
17217
17435
  );
17218
17436
  }
17219
17437
 
@@ -18953,7 +19171,7 @@ function CurrenciesProvider({ children }) {
18953
19171
  error: currenciesError,
18954
19172
  isLoading: isLoadingCurrencies,
18955
19173
  mutate: mutateCurrencies
18956
- } = usePaymentsCurrenciesRetrieve(api);
19174
+ } = usePaymentsCurrenciesList(api);
18957
19175
  const refreshCurrencies = async () => {
18958
19176
  await mutateCurrencies();
18959
19177
  };
@@ -19036,7 +19254,7 @@ function OverviewProvider({ children }) {
19036
19254
  error: transactionsError,
19037
19255
  isLoading: isLoadingTransactions,
19038
19256
  mutate: mutateTransactions
19039
- } = usePaymentsTransactionsRetrieve(api);
19257
+ } = usePaymentsTransactionsList({}, api);
19040
19258
  const createPaymentMutation = useCreatePaymentsPaymentsCreateCreate();
19041
19259
  const isLoadingOverview = isLoadingBalance || isLoadingPayments || isLoadingTransactions;
19042
19260
  const overviewError = balanceError || paymentsError || transactionsError;
@@ -19099,7 +19317,7 @@ function RootPaymentsProvider({ children }) {
19099
19317
  error: currenciesError,
19100
19318
  isLoading: isLoadingCurrencies,
19101
19319
  mutate: mutateCurrencies
19102
- } = usePaymentsCurrenciesRetrieve(api);
19320
+ } = usePaymentsCurrenciesList(api);
19103
19321
  const refreshCurrencies = async () => {
19104
19322
  await mutateCurrencies();
19105
19323
  };
@@ -19553,11 +19771,11 @@ export {
19553
19771
  getNewsletterNewslettersRetrieve,
19554
19772
  getNewsletterSubscriptionsList,
19555
19773
  getPaymentsBalanceRetrieve,
19556
- getPaymentsCurrenciesRetrieve,
19774
+ getPaymentsCurrenciesList,
19557
19775
  getPaymentsPaymentsList,
19558
19776
  getPaymentsPaymentsRetrieve,
19559
19777
  getPaymentsPaymentsStatusRetrieve,
19560
- getPaymentsTransactionsRetrieve,
19778
+ getPaymentsTransactionsList,
19561
19779
  getSupportTicketsList,
19562
19780
  getSupportTicketsMessagesList,
19563
19781
  getSupportTicketsMessagesRetrieve,