@firela/api-types 0.0.0-canary.b3b7767b → 0.0.0-canary.ba0a88d9

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.
@@ -5,6 +5,10 @@ export type CreateAccountDto = {
5
5
  * Account path (hierarchical, colon-separated)
6
6
  */
7
7
  path: string;
8
+ /**
9
+ * Display name to distinguish accounts at the same path (default: "")
10
+ */
11
+ displayName?: string;
8
12
  /**
9
13
  * Account open date
10
14
  */
@@ -73,6 +77,10 @@ export type AccountResponseDto = {
73
77
  * Account path (hierarchical, colon-separated)
74
78
  */
75
79
  path: string;
80
+ /**
81
+ * Display name distinguishing multiple accounts at the same path
82
+ */
83
+ displayName: string;
76
84
  /**
77
85
  * Account type (root segment)
78
86
  */
@@ -170,6 +178,10 @@ export type AccountListResponseDto = {
170
178
  };
171
179
 
172
180
  export type UpdateAccountDto = {
181
+ /**
182
+ * Display name to distinguish accounts at the same path
183
+ */
184
+ displayName?: string;
173
185
  /**
174
186
  * Allowed currencies (null = no restriction)
175
187
  */
@@ -202,9 +214,7 @@ export type UpdateAccountDto = {
202
214
  /**
203
215
  * Platform ID (references Platform.id), null to clear association
204
216
  */
205
- platformId?: {
206
- [key: string]: unknown;
207
- } | null;
217
+ platformId?: string | null;
208
218
  };
209
219
 
210
220
  export type CloseAccountDto = {
@@ -227,6 +237,81 @@ export type ReopenAccountDto = {
227
237
  reopenDate?: string;
228
238
  };
229
239
 
240
+ export type AccountStandardResponseDto = {
241
+ /**
242
+ * Account path (hierarchical, colon-separated)
243
+ */
244
+ path: string;
245
+ /**
246
+ * Account type in Beancount hierarchy
247
+ */
248
+ type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
249
+ /**
250
+ * i18n key for localized display name
251
+ */
252
+ i18nKey?: string;
253
+ /**
254
+ * Account description
255
+ */
256
+ description?: string;
257
+ /**
258
+ * Account tags for categorization
259
+ */
260
+ tags?: Array<string>;
261
+ /**
262
+ * Icon identifier for UI display
263
+ */
264
+ icon?: string;
265
+ };
266
+
267
+ export type AccountStandardListResponseDto = {
268
+ /**
269
+ * Array of account templates
270
+ */
271
+ items: Array<AccountStandardResponseDto>;
272
+ /**
273
+ * Total number of account templates
274
+ */
275
+ total: number;
276
+ /**
277
+ * Region code
278
+ */
279
+ region: string;
280
+ };
281
+
282
+ export type TemplateMetadataDto = {
283
+ /**
284
+ * Whether this path can be extended
285
+ */
286
+ extendable: boolean;
287
+ /**
288
+ * Root account type
289
+ */
290
+ rootType: string;
291
+ };
292
+
293
+ export type TemplateMetadataResponseDto = {
294
+ metadata?: TemplateMetadataDto;
295
+ };
296
+
297
+ export type RegionConfigDto = {
298
+ currency: string;
299
+ dateFormat: string;
300
+ locale: string;
301
+ };
302
+
303
+ export type RegionInfoDto = {
304
+ code: string;
305
+ displayName: string;
306
+ parent?: string;
307
+ chain: Array<string>;
308
+ config: RegionConfigDto;
309
+ };
310
+
311
+ export type RegionsMetadataResponseDto = {
312
+ regions: Array<RegionInfoDto>;
313
+ };
314
+
230
315
  export type CreatePostingDto = {
231
316
  /**
232
317
  * Account name in Beancount format (must start with uppercase, colon-separated)
@@ -439,6 +524,35 @@ export type ApiProblemResponseDto = {
439
524
  };
440
525
  };
441
526
 
527
+ export type BatchCreateTransactionDto = {
528
+ /**
529
+ * Array of transactions to create
530
+ */
531
+ transactions: Array<CreateTransactionDto>;
532
+ };
533
+
534
+ export type BatchTransactionErrorDto = {
535
+ /**
536
+ * Index of failed transaction in the input array
537
+ */
538
+ index: number;
539
+ /**
540
+ * Error message describing the failure
541
+ */
542
+ error: string;
543
+ };
544
+
545
+ export type BatchTransactionResponseDto = {
546
+ /**
547
+ * Successfully created transactions
548
+ */
549
+ succeeded: Array<TransactionResponseDto>;
550
+ /**
551
+ * Failed transactions with error details
552
+ */
553
+ failed: Array<BatchTransactionErrorDto>;
554
+ };
555
+
442
556
  export type PostingDetailDto = {
443
557
  /**
444
558
  * Posting ID
@@ -646,66 +760,6 @@ export type UpdateTransactionDto = {
646
760
  };
647
761
  };
648
762
 
649
- export type AccountStandardResponseDto = {
650
- /**
651
- * Account path (hierarchical, colon-separated)
652
- */
653
- path: string;
654
- /**
655
- * Account type in Beancount hierarchy
656
- */
657
- type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
658
- /**
659
- * i18n key for localized display name
660
- */
661
- i18nKey?: string;
662
- /**
663
- * Account description
664
- */
665
- description?: string;
666
- /**
667
- * Account tags for categorization
668
- */
669
- tags?: Array<string>;
670
- /**
671
- * Icon identifier for UI display
672
- */
673
- icon?: string;
674
- };
675
-
676
- export type AccountStandardListResponseDto = {
677
- /**
678
- * Array of account templates
679
- */
680
- items: Array<AccountStandardResponseDto>;
681
- /**
682
- * Total number of account templates
683
- */
684
- total: number;
685
- /**
686
- * Region code
687
- */
688
- region: string;
689
- };
690
-
691
- export type RegionConfigDto = {
692
- currency: string;
693
- dateFormat: string;
694
- locale: string;
695
- };
696
-
697
- export type RegionInfoDto = {
698
- code: string;
699
- displayName: string;
700
- parent?: string;
701
- chain: Array<string>;
702
- config: RegionConfigDto;
703
- };
704
-
705
- export type RegionsMetadataResponseDto = {
706
- regions: Array<RegionInfoDto>;
707
- };
708
-
709
763
  export type BalanceResponseDto = {
710
764
  /**
711
765
  * Account name
@@ -1027,6 +1081,124 @@ export type ReviewDetailDto = {
1027
1081
  transactionId?: string;
1028
1082
  };
1029
1083
 
1084
+ export type ResolveReviewDto = {
1085
+ /**
1086
+ * Decision action. Available actions vary by review type: DUPLICATE: UPGRADE_REPLACE, KEEP_EXISTING, KEEP_BOTH | PAYEE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN | ACCOUNT_VALIDATION: FIX, REJECT | RULE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN
1087
+ */
1088
+ action: string;
1089
+ /**
1090
+ * Additional data for the decision (e.g., selected account ID)
1091
+ */
1092
+ data?: {
1093
+ [key: string]: unknown;
1094
+ };
1095
+ };
1096
+
1097
+ export type ResolveResultDto = {
1098
+ /**
1099
+ * Whether resolution was successful
1100
+ */
1101
+ success: boolean;
1102
+ /**
1103
+ * i18n message key for result message (e.g., review.payee.result.mapped)
1104
+ */
1105
+ messageKey?: string;
1106
+ /**
1107
+ * Parameters for message interpolation (e.g., { name: "PayeeName" })
1108
+ */
1109
+ messageParams?: {
1110
+ [key: string]: string;
1111
+ };
1112
+ /**
1113
+ * Resolution ID for undo
1114
+ */
1115
+ resolutionId: string;
1116
+ /**
1117
+ * Whether this decision can be undone
1118
+ */
1119
+ canUndo: boolean;
1120
+ /**
1121
+ * Deadline for undo (24h from resolution)
1122
+ */
1123
+ undoDeadline: string;
1124
+ /**
1125
+ * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1126
+ */
1127
+ learnedRuleId?: string;
1128
+ };
1129
+
1130
+ export type UndoResultDto = {
1131
+ /**
1132
+ * Whether undo was successful
1133
+ */
1134
+ success: boolean;
1135
+ /**
1136
+ * Message
1137
+ */
1138
+ message?: string;
1139
+ /**
1140
+ * Review item ID that was restored
1141
+ */
1142
+ reviewId: string;
1143
+ };
1144
+
1145
+ export type BatchResolveDto = {
1146
+ /**
1147
+ * Review item IDs to resolve
1148
+ */
1149
+ reviewIds: Array<string>;
1150
+ /**
1151
+ * Decision action to apply to all items
1152
+ */
1153
+ action: string;
1154
+ /**
1155
+ * Additional data for the decision
1156
+ */
1157
+ data?: {
1158
+ [key: string]: unknown;
1159
+ };
1160
+ };
1161
+
1162
+ export type BatchResolveResultDto = {
1163
+ /**
1164
+ * Number of successfully resolved items
1165
+ */
1166
+ successCount: number;
1167
+ /**
1168
+ * Number of failed items
1169
+ */
1170
+ failedCount: number;
1171
+ /**
1172
+ * Details for each item
1173
+ */
1174
+ results: Array<string>;
1175
+ };
1176
+
1177
+ export type CreatePayeeDto = {
1178
+ /**
1179
+ * User's original payee name (e.g., 'Starbucks', 'McDonald'). This is the raw payee string as entered by the user.
1180
+ */
1181
+ payee: string;
1182
+ /**
1183
+ * Optional reference to global PayeeProfile for standardized data (merchant info, i18n keys, categories)
1184
+ */
1185
+ payeeProfileId?: string;
1186
+ /**
1187
+ * User's custom category for this payee (overrides PayeeProfile category)
1188
+ */
1189
+ customCategory?: string;
1190
+ /**
1191
+ * User's custom tags for this payee (e.g., ['favorite', 'work_meal'])
1192
+ */
1193
+ customTags?: Array<string>;
1194
+ /**
1195
+ * Metadata for extended information (location, notes, contact info, etc.)
1196
+ */
1197
+ meta?: {
1198
+ [key: string]: unknown;
1199
+ };
1200
+ };
1201
+
1030
1202
  export type PayeeResponseDto = {
1031
1203
  /**
1032
1204
  * Unique identifier (UUID)
@@ -1043,15 +1215,11 @@ export type PayeeResponseDto = {
1043
1215
  /**
1044
1216
  * Reference to global PayeeProfile (merchant info, i18n keys, categories)
1045
1217
  */
1046
- payeeProfileId?: {
1047
- [key: string]: unknown;
1048
- } | null;
1218
+ payeeProfileId?: string | null;
1049
1219
  /**
1050
1220
  * User's custom category (overrides PayeeProfile category if set)
1051
1221
  */
1052
- customCategory?: {
1053
- [key: string]: unknown;
1054
- } | null;
1222
+ customCategory?: string | null;
1055
1223
  /**
1056
1224
  * User's custom tags (e.g., ['favorite', 'work_meal'])
1057
1225
  */
@@ -1117,27 +1285,46 @@ export type PayeeStatsResponseDto = {
1117
1285
  lastUsedAt: string;
1118
1286
  };
1119
1287
 
1120
- export type PayeeProfileResponseDto = {
1288
+ export type UpdatePayeeDto = {
1121
1289
  /**
1122
- * Unique identifier (UUID)
1290
+ * Optional reference to global PayeeProfile for standardized data (merchant info, i18n keys, categories)
1123
1291
  */
1124
- id: string;
1292
+ payeeProfileId?: string;
1125
1293
  /**
1126
- * Canonical payee name (unique, case-insensitive)
1294
+ * User's custom category for this payee (overrides PayeeProfile category)
1127
1295
  */
1128
- canonical: string;
1296
+ customCategory?: string;
1129
1297
  /**
1130
- * Multi-language aliases
1298
+ * User's custom tags for this payee (e.g., ['favorite', 'work_meal'])
1131
1299
  */
1132
- aliases: Array<string>;
1300
+ customTags?: Array<string>;
1133
1301
  /**
1134
- * Translation key for i18n
1302
+ * Metadata for extended information (location, notes, contact info, etc.). Will merge with existing metadata.
1135
1303
  */
1136
- i18nKey?: {
1304
+ meta?: {
1137
1305
  [key: string]: unknown;
1138
- } | null;
1306
+ };
1139
1307
  /**
1140
- * Payee category
1308
+ * Enable or disable this payee. Disabled payees will not appear in autocomplete suggestions.
1309
+ */
1310
+ isActive?: boolean;
1311
+ };
1312
+
1313
+ export type CreatePayeeProfileDto = {
1314
+ /**
1315
+ * Canonical payee name (unique, case-insensitive). This is the primary identifier for the payee.
1316
+ */
1317
+ canonical: string;
1318
+ /**
1319
+ * Multi-language aliases for the payee. Used for matching user input in different languages.
1320
+ */
1321
+ aliases?: Array<string>;
1322
+ /**
1323
+ * Translation key for i18n integration (XLIFF translation system)
1324
+ */
1325
+ i18nKey?: string;
1326
+ /**
1327
+ * Payee category classification
1141
1328
  */
1142
1329
  category:
1143
1330
  | 'RESTAURANT'
@@ -1164,75 +1351,47 @@ export type PayeeProfileResponseDto = {
1164
1351
  | 'HOTEL'
1165
1352
  | 'OTHER';
1166
1353
  /**
1167
- * Sub-category
1354
+ * Sub-category for more specific classification
1168
1355
  */
1169
- subCategory?: {
1170
- [key: string]: unknown;
1171
- } | null;
1356
+ subCategory?: string;
1172
1357
  /**
1173
- * Country codes where payee operates
1358
+ * Country/region codes where the payee operates (ISO 3166-1 alpha-2)
1174
1359
  */
1175
- countries: Array<string>;
1360
+ countries?: Array<string>;
1176
1361
  /**
1177
- * Primary operating country
1362
+ * Primary operating country (ISO 3166-1 alpha-2)
1178
1363
  */
1179
- primaryCountry?: {
1180
- [key: string]: unknown;
1181
- } | null;
1364
+ primaryCountry?: string;
1182
1365
  /**
1183
- * Search keywords
1366
+ * Search keywords for fuzzy matching
1184
1367
  */
1185
- keywords: Array<string>;
1368
+ keywords?: Array<string>;
1186
1369
  /**
1187
- * Logo URL
1370
+ * Payee logo URL
1188
1371
  */
1189
- logoUrl?: {
1190
- [key: string]: unknown;
1191
- } | null;
1372
+ logoUrl?: string;
1192
1373
  /**
1193
- * Official website
1374
+ * Official website URL
1194
1375
  */
1195
- website?: {
1196
- [key: string]: unknown;
1197
- } | null;
1376
+ website?: string;
1198
1377
  /**
1199
- * Description
1378
+ * Payee description
1200
1379
  */
1201
- description?: {
1202
- [key: string]: unknown;
1203
- } | null;
1380
+ description?: string;
1204
1381
  /**
1205
- * Extended metadata
1382
+ * Extended metadata (business hours, contact info, additional details)
1206
1383
  */
1207
- meta: {
1384
+ meta?: {
1208
1385
  [key: string]: unknown;
1209
1386
  };
1210
1387
  /**
1211
- * Data source
1388
+ * Data source for this profile
1212
1389
  */
1213
- dataSource: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1214
- /**
1215
- * Verification timestamp (null if not verified)
1216
- */
1217
- verifiedAt?: {
1218
- [key: string]: unknown;
1219
- } | null;
1220
- /**
1221
- * Whether the profile is active
1222
- */
1223
- isActive: boolean;
1224
- /**
1225
- * Creation timestamp
1226
- */
1227
- createdAt: string;
1228
- /**
1229
- * Last update timestamp
1230
- */
1231
- updatedAt: string;
1390
+ dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1232
1391
  };
1233
1392
 
1234
1393
  /**
1235
- * Payee category
1394
+ * Payee category classification
1236
1395
  */
1237
1396
  export type category =
1238
1397
  | 'RESTAURANT'
@@ -1260,10 +1419,110 @@ export type category =
1260
1419
  | 'OTHER';
1261
1420
 
1262
1421
  /**
1263
- * Data source
1422
+ * Data source for this profile
1264
1423
  */
1265
1424
  export type dataSource = 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1266
1425
 
1426
+ export type PayeeProfileResponseDto = {
1427
+ /**
1428
+ * Unique identifier (UUID)
1429
+ */
1430
+ id: string;
1431
+ /**
1432
+ * Canonical payee name (unique, case-insensitive)
1433
+ */
1434
+ canonical: string;
1435
+ /**
1436
+ * Multi-language aliases
1437
+ */
1438
+ aliases: Array<string>;
1439
+ /**
1440
+ * Translation key for i18n
1441
+ */
1442
+ i18nKey?: string | null;
1443
+ /**
1444
+ * Payee category
1445
+ */
1446
+ category:
1447
+ | 'RESTAURANT'
1448
+ | 'CAFE'
1449
+ | 'FAST_FOOD'
1450
+ | 'BAR'
1451
+ | 'SUPERMARKET'
1452
+ | 'CONVENIENCE_STORE'
1453
+ | 'SHOPPING_MALL'
1454
+ | 'ONLINE_SHOPPING'
1455
+ | 'TAXI'
1456
+ | 'RIDE_SHARING'
1457
+ | 'PUBLIC_TRANSPORT'
1458
+ | 'PARKING'
1459
+ | 'GAS_STATION'
1460
+ | 'UTILITIES'
1461
+ | 'TELECOM'
1462
+ | 'STREAMING'
1463
+ | 'HEALTHCARE'
1464
+ | 'EDUCATION'
1465
+ | 'ENTERTAINMENT'
1466
+ | 'SPORTS'
1467
+ | 'TRAVEL'
1468
+ | 'HOTEL'
1469
+ | 'OTHER';
1470
+ /**
1471
+ * Sub-category
1472
+ */
1473
+ subCategory?: string | null;
1474
+ /**
1475
+ * Country codes where payee operates
1476
+ */
1477
+ countries: Array<string>;
1478
+ /**
1479
+ * Primary operating country
1480
+ */
1481
+ primaryCountry?: string | null;
1482
+ /**
1483
+ * Search keywords
1484
+ */
1485
+ keywords: Array<string>;
1486
+ /**
1487
+ * Logo URL
1488
+ */
1489
+ logoUrl?: string | null;
1490
+ /**
1491
+ * Official website
1492
+ */
1493
+ website?: string | null;
1494
+ /**
1495
+ * Description
1496
+ */
1497
+ description?: string | null;
1498
+ /**
1499
+ * Extended metadata
1500
+ */
1501
+ meta: {
1502
+ [key: string]: unknown;
1503
+ };
1504
+ /**
1505
+ * Data source
1506
+ */
1507
+ dataSource: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1508
+ /**
1509
+ * Verification timestamp (null if not verified)
1510
+ */
1511
+ verifiedAt?: string | null;
1512
+ /**
1513
+ * Whether the profile is active
1514
+ */
1515
+ isActive: boolean;
1516
+ /**
1517
+ * Creation timestamp
1518
+ */
1519
+ createdAt: string;
1520
+ /**
1521
+ * Last update timestamp
1522
+ */
1523
+ updatedAt: string;
1524
+ };
1525
+
1267
1526
  export type PayeeProfileListResponseDto = {
1268
1527
  /**
1269
1528
  * List of payee profiles
@@ -1275,6 +1534,107 @@ export type PayeeProfileListResponseDto = {
1275
1534
  total: number;
1276
1535
  };
1277
1536
 
1537
+ export type UpdatePayeeProfileDto = {
1538
+ /**
1539
+ * Multi-language aliases for the payee. Used for matching user input in different languages.
1540
+ */
1541
+ aliases?: Array<string>;
1542
+ /**
1543
+ * Translation key for i18n integration (XLIFF translation system)
1544
+ */
1545
+ i18nKey?: string;
1546
+ /**
1547
+ * Payee category classification
1548
+ */
1549
+ category?:
1550
+ | 'RESTAURANT'
1551
+ | 'CAFE'
1552
+ | 'FAST_FOOD'
1553
+ | 'BAR'
1554
+ | 'SUPERMARKET'
1555
+ | 'CONVENIENCE_STORE'
1556
+ | 'SHOPPING_MALL'
1557
+ | 'ONLINE_SHOPPING'
1558
+ | 'TAXI'
1559
+ | 'RIDE_SHARING'
1560
+ | 'PUBLIC_TRANSPORT'
1561
+ | 'PARKING'
1562
+ | 'GAS_STATION'
1563
+ | 'UTILITIES'
1564
+ | 'TELECOM'
1565
+ | 'STREAMING'
1566
+ | 'HEALTHCARE'
1567
+ | 'EDUCATION'
1568
+ | 'ENTERTAINMENT'
1569
+ | 'SPORTS'
1570
+ | 'TRAVEL'
1571
+ | 'HOTEL'
1572
+ | 'OTHER';
1573
+ /**
1574
+ * Sub-category for more specific classification
1575
+ */
1576
+ subCategory?: string;
1577
+ /**
1578
+ * Country/region codes where the payee operates (ISO 3166-1 alpha-2)
1579
+ */
1580
+ countries?: Array<string>;
1581
+ /**
1582
+ * Primary operating country (ISO 3166-1 alpha-2)
1583
+ */
1584
+ primaryCountry?: string;
1585
+ /**
1586
+ * Search keywords for fuzzy matching
1587
+ */
1588
+ keywords?: Array<string>;
1589
+ /**
1590
+ * Payee logo URL
1591
+ */
1592
+ logoUrl?: string;
1593
+ /**
1594
+ * Official website URL
1595
+ */
1596
+ website?: string;
1597
+ /**
1598
+ * Payee description
1599
+ */
1600
+ description?: string;
1601
+ /**
1602
+ * Extended metadata (business hours, contact info, additional details)
1603
+ */
1604
+ meta?: {
1605
+ [key: string]: unknown;
1606
+ };
1607
+ /**
1608
+ * Data source for this profile
1609
+ */
1610
+ dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1611
+ /**
1612
+ * Whether the payee profile is active (soft delete)
1613
+ */
1614
+ isActive?: boolean;
1615
+ /**
1616
+ * Verification timestamp. Set to current time to verify, or null to unverify.
1617
+ */
1618
+ verifiedAt?: string | null;
1619
+ };
1620
+
1621
+ export type CreateCommodityDto = {
1622
+ /**
1623
+ * Commodity symbol (e.g., AAPL, USD, BTC) - corresponds to Beancount currency field
1624
+ */
1625
+ symbol: string;
1626
+ /**
1627
+ * Commodity definition date (ISO 8601, required per Beancount spec). Represents when this commodity was first defined in the accounting system.
1628
+ */
1629
+ date: string;
1630
+ /**
1631
+ * Metadata (corresponds to Beancount meta field). Can contain name, assetClass, precision, note, tags, etc.
1632
+ */
1633
+ metadata?: {
1634
+ [key: string]: unknown;
1635
+ };
1636
+ };
1637
+
1278
1638
  export type CommodityResponseDto = {
1279
1639
  /**
1280
1640
  * Unique identifier
@@ -1283,9 +1643,7 @@ export type CommodityResponseDto = {
1283
1643
  /**
1284
1644
  * User ID (owner of the commodity)
1285
1645
  */
1286
- userId?: {
1287
- [key: string]: unknown;
1288
- } | null;
1646
+ userId?: string | null;
1289
1647
  /**
1290
1648
  * Commodity symbol (corresponds to Beancount currency field)
1291
1649
  */
@@ -1300,12 +1658,6 @@ export type CommodityResponseDto = {
1300
1658
  metadata: {
1301
1659
  [key: string]: unknown;
1302
1660
  };
1303
- /**
1304
- * Reference to SymbolProfile (market data integration, SaaS feature)
1305
- */
1306
- symbolProfileId?: {
1307
- [key: string]: unknown;
1308
- } | null;
1309
1661
  /**
1310
1662
  * Creation timestamp
1311
1663
  */
@@ -1327,6 +1679,101 @@ export type CommodityListResponseDto = {
1327
1679
  total: number;
1328
1680
  };
1329
1681
 
1682
+ export type UpdateCommodityDto = {
1683
+ /**
1684
+ * Commodity definition date (ISO 8601). Represents when this commodity was first defined in the accounting system.
1685
+ */
1686
+ date?: string;
1687
+ /**
1688
+ * Metadata (corresponds to Beancount meta field). Will merge with existing metadata. Can contain name, assetClass, precision, note, tags, etc.
1689
+ */
1690
+ metadata?: {
1691
+ [key: string]: unknown;
1692
+ };
1693
+ };
1694
+
1695
+ export type CreateRecurringRuleDto = {
1696
+ /**
1697
+ * Rule name (unique per user)
1698
+ */
1699
+ name: string;
1700
+ /**
1701
+ * Icon emoji
1702
+ */
1703
+ icon?: string;
1704
+ /**
1705
+ * Recurring frequency
1706
+ */
1707
+ frequency:
1708
+ | 'WEEKLY'
1709
+ | 'BIWEEKLY'
1710
+ | 'MONTHLY'
1711
+ | 'BIMONTHLY'
1712
+ | 'QUARTERLY'
1713
+ | 'YEARLY'
1714
+ | 'CUSTOM';
1715
+ /**
1716
+ * Expected amount (positive number)
1717
+ */
1718
+ expectedAmount: number;
1719
+ /**
1720
+ * Expected day of month (1-31)
1721
+ */
1722
+ expectedDay?: number;
1723
+ /**
1724
+ * Custom interval in days (required for CUSTOM frequency)
1725
+ */
1726
+ customIntervalDays?: number;
1727
+ /**
1728
+ * Currency code
1729
+ */
1730
+ currency: string;
1731
+ /**
1732
+ * Payee matching pattern (supports wildcards)
1733
+ */
1734
+ matchPayeePattern?: string;
1735
+ /**
1736
+ * Amount tolerance percentage (0-1)
1737
+ */
1738
+ matchAmountTolerance: number;
1739
+ /**
1740
+ * Default expense account for auto-create
1741
+ */
1742
+ defaultExpenseAccount?: string;
1743
+ /**
1744
+ * Default payment account for auto-create
1745
+ */
1746
+ defaultPaymentAccount?: string;
1747
+ /**
1748
+ * Default payee for auto-create
1749
+ */
1750
+ defaultPayee?: string;
1751
+ /**
1752
+ * Auto-create transaction when expected date arrives
1753
+ */
1754
+ autoCreate: boolean;
1755
+ /**
1756
+ * Rule start date (ISO format)
1757
+ */
1758
+ startDate?: string;
1759
+ /**
1760
+ * Rule end date (ISO format)
1761
+ */
1762
+ endDate?: string;
1763
+ };
1764
+
1765
+ /**
1766
+ * Recurring frequency
1767
+ */
1768
+ export type frequency =
1769
+ | 'WEEKLY'
1770
+ | 'BIWEEKLY'
1771
+ | 'MONTHLY'
1772
+ | 'BIMONTHLY'
1773
+ | 'QUARTERLY'
1774
+ | 'YEARLY'
1775
+ | 'CUSTOM';
1776
+
1330
1777
  export type RecurringRuleResponseDto = {
1331
1778
  /**
1332
1779
  * Rule ID
@@ -1436,6 +1883,28 @@ export type RecurringRuleResponseDto = {
1436
1883
  updatedAt: string;
1437
1884
  };
1438
1885
 
1886
+ export type CreateRuleFromTransactionDto = {
1887
+ /**
1888
+ * Recurring frequency
1889
+ */
1890
+ frequency:
1891
+ | 'WEEKLY'
1892
+ | 'BIWEEKLY'
1893
+ | 'MONTHLY'
1894
+ | 'BIMONTHLY'
1895
+ | 'QUARTERLY'
1896
+ | 'YEARLY'
1897
+ | 'CUSTOM';
1898
+ /**
1899
+ * Optional name override (default: transaction payee)
1900
+ */
1901
+ name?: string;
1902
+ /**
1903
+ * Optional icon emoji
1904
+ */
1905
+ icon?: string;
1906
+ };
1907
+
1439
1908
  export type RecurringRuleWithStatsResponseDto = {
1440
1909
  /**
1441
1910
  * Rule ID
@@ -1582,13 +2051,83 @@ export type RecurringRuleWithStatsResponseDto = {
1582
2051
  [key: string]: unknown;
1583
2052
  };
1584
2053
  /**
1585
- * Amount variance (standard deviation squared)
2054
+ * Amount variance (standard deviation squared)
2055
+ */
2056
+ variance: number;
2057
+ /**
2058
+ * Number of upcoming expected transactions
2059
+ */
2060
+ upcomingCount: number;
2061
+ };
2062
+
2063
+ export type UpdateRecurringRuleDto = {
2064
+ /**
2065
+ * Rule name
2066
+ */
2067
+ name?: string;
2068
+ /**
2069
+ * Icon emoji
2070
+ */
2071
+ icon?: string;
2072
+ /**
2073
+ * Recurring frequency
2074
+ */
2075
+ frequency?:
2076
+ | 'WEEKLY'
2077
+ | 'BIWEEKLY'
2078
+ | 'MONTHLY'
2079
+ | 'BIMONTHLY'
2080
+ | 'QUARTERLY'
2081
+ | 'YEARLY'
2082
+ | 'CUSTOM';
2083
+ /**
2084
+ * Expected amount
2085
+ */
2086
+ expectedAmount?: number;
2087
+ /**
2088
+ * Expected day of month (1-31)
2089
+ */
2090
+ expectedDay?: number;
2091
+ /**
2092
+ * Custom interval in days
2093
+ */
2094
+ customIntervalDays?: number;
2095
+ /**
2096
+ * Currency code
2097
+ */
2098
+ currency?: string;
2099
+ /**
2100
+ * Payee matching pattern
2101
+ */
2102
+ matchPayeePattern?: string;
2103
+ /**
2104
+ * Amount tolerance percentage (0-1)
2105
+ */
2106
+ matchAmountTolerance?: number;
2107
+ /**
2108
+ * Default expense account
2109
+ */
2110
+ defaultExpenseAccount?: string;
2111
+ /**
2112
+ * Default payment account
2113
+ */
2114
+ defaultPaymentAccount?: string;
2115
+ /**
2116
+ * Default payee
2117
+ */
2118
+ defaultPayee?: string;
2119
+ /**
2120
+ * Auto-create transaction
2121
+ */
2122
+ autoCreate?: boolean;
2123
+ /**
2124
+ * Rule active status
1586
2125
  */
1587
- variance: number;
2126
+ isActive?: boolean;
1588
2127
  /**
1589
- * Number of upcoming expected transactions
2128
+ * Rule end date (ISO format)
1590
2129
  */
1591
- upcomingCount: number;
2130
+ endDate?: string;
1592
2131
  };
1593
2132
 
1594
2133
  export type ExpectedTransactionRuleDto = {
@@ -1681,6 +2220,36 @@ export type ExpectedTransactionListResponseDto = {
1681
2220
  total: number;
1682
2221
  };
1683
2222
 
2223
+ export type ConfirmMatchDto = {
2224
+ /**
2225
+ * Transaction ID to match with
2226
+ */
2227
+ transactionId: string;
2228
+ };
2229
+
2230
+ export type EnterNowDto = {
2231
+ /**
2232
+ * Override expense account (uses rule default if not provided)
2233
+ */
2234
+ expenseAccount?: string;
2235
+ /**
2236
+ * Override payment account (uses rule default if not provided)
2237
+ */
2238
+ paymentAccount?: string;
2239
+ /**
2240
+ * Override amount (uses expected amount if not provided)
2241
+ */
2242
+ amount?: number;
2243
+ /**
2244
+ * Override payee (uses rule default if not provided)
2245
+ */
2246
+ payee?: string;
2247
+ /**
2248
+ * Optional narration
2249
+ */
2250
+ narration?: string;
2251
+ };
2252
+
1684
2253
  export type ForecastItemDto = {
1685
2254
  /**
1686
2255
  * Rule name
@@ -1701,9 +2270,7 @@ export type ForecastItemDto = {
1701
2270
  /**
1702
2271
  * Rule icon emoji
1703
2272
  */
1704
- icon: {
1705
- [key: string]: unknown;
1706
- } | null;
2273
+ icon: string | null;
1707
2274
  /**
1708
2275
  * Currency code
1709
2276
  */
@@ -1764,6 +2331,53 @@ export type ForecastResponseDto = {
1764
2331
  periodEnd: string;
1765
2332
  };
1766
2333
 
2334
+ export type CreateTransactionRuleDto = {
2335
+ name: string;
2336
+ description?: string;
2337
+ narrationKeywords?: Array<unknown[]>;
2338
+ payeeKeywords?: Array<unknown[]>;
2339
+ categoryKeywords?: Array<unknown[]>;
2340
+ /**
2341
+ * Payment method keywords (e.g., HuaBei, YuEBao)
2342
+ */
2343
+ methodKeywords?: Array<unknown[]>;
2344
+ /**
2345
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2346
+ */
2347
+ categoryAccount?: string;
2348
+ matchLogic: 'OR' | 'AND';
2349
+ /**
2350
+ * Minimum transaction amount (inclusive)
2351
+ */
2352
+ amountMin?: number;
2353
+ /**
2354
+ * Maximum transaction amount (inclusive)
2355
+ */
2356
+ amountMax?: number;
2357
+ priority: number;
2358
+ additionalTags?: Array<unknown[]>;
2359
+ additionalMetadata?: {
2360
+ [key: string]: unknown;
2361
+ };
2362
+ /**
2363
+ * If true, update existing rule with matching payeeKeywords[0] instead of creating new rule
2364
+ */
2365
+ upsertByPayee?: boolean;
2366
+ };
2367
+
2368
+ export type matchLogic = 'OR' | 'AND';
2369
+
2370
+ export type AmountRangeDto = {
2371
+ /**
2372
+ * Minimum amount
2373
+ */
2374
+ min?: number;
2375
+ /**
2376
+ * Maximum amount
2377
+ */
2378
+ max?: number;
2379
+ };
2380
+
1767
2381
  export type TransactionRuleResponseDto = {
1768
2382
  /**
1769
2383
  * Rule ID
@@ -1804,9 +2418,7 @@ export type TransactionRuleResponseDto = {
1804
2418
  /**
1805
2419
  * Amount range for matching
1806
2420
  */
1807
- amountRange?: {
1808
- [key: string]: unknown;
1809
- };
2421
+ amountRange?: AmountRangeDto;
1810
2422
  /**
1811
2423
  * Rule priority (0-1000, higher = first match)
1812
2424
  */
@@ -1818,7 +2430,7 @@ export type TransactionRuleResponseDto = {
1818
2430
  /**
1819
2431
  * Learning source: NLP, REVIEW_CENTER, or null for manual
1820
2432
  */
1821
- learningSource?: 'NLP' | 'REVIEW_CENTER';
2433
+ learningSource?: 'NLP' | 'REVIEW_CENTER' | null;
1822
2434
  /**
1823
2435
  * Whether auto-apply is enabled for this rule
1824
2436
  */
@@ -1835,7 +2447,7 @@ export type TransactionRuleResponseDto = {
1835
2447
  * Additional metadata
1836
2448
  */
1837
2449
  additionalMetadata?: {
1838
- [key: string]: unknown;
2450
+ [key: string]: string;
1839
2451
  };
1840
2452
  /**
1841
2453
  * Created timestamp
@@ -1847,11 +2459,6 @@ export type TransactionRuleResponseDto = {
1847
2459
  updatedAt: string;
1848
2460
  };
1849
2461
 
1850
- /**
1851
- * Keyword matching logic
1852
- */
1853
- export type matchLogic = 'OR' | 'AND';
1854
-
1855
2462
  /**
1856
2463
  * Learning source: NLP, REVIEW_CENTER, or null for manual
1857
2464
  */
@@ -1922,6 +2529,44 @@ export type ValidateRuleResponseDto = {
1922
2529
  warnings: Array<unknown[]>;
1923
2530
  };
1924
2531
 
2532
+ export type BulkCreateRulesDto = {
2533
+ /**
2534
+ * Array of rules to import
2535
+ */
2536
+ rules: Array<unknown[]>;
2537
+ /**
2538
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2539
+ */
2540
+ conflictStrategy: 'replace' | 'skip';
2541
+ };
2542
+
2543
+ /**
2544
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2545
+ */
2546
+ export type conflictStrategy = 'replace' | 'skip';
2547
+
2548
+ export type BulkCreateRulesResponseDto = {
2549
+ /**
2550
+ * Number of successfully created rules
2551
+ */
2552
+ successCount: number;
2553
+ /**
2554
+ * Number of failed rules
2555
+ */
2556
+ failureCount: number;
2557
+ /**
2558
+ * Error details for failed rules
2559
+ */
2560
+ errors: Array<{
2561
+ index?: number;
2562
+ message?: string;
2563
+ }>;
2564
+ /**
2565
+ * IDs of successfully created rules
2566
+ */
2567
+ createdRuleIds: Array<string>;
2568
+ };
2569
+
1925
2570
  export type ExportRulesResponseDto = {
1926
2571
  /**
1927
2572
  * Export timestamp
@@ -1978,6 +2623,40 @@ export type RuleStatisticsResponseDto = {
1978
2623
  */
1979
2624
  export type period = '7d' | '30d' | '90d';
1980
2625
 
2626
+ export type UpdateTransactionRuleDto = {
2627
+ name?: string;
2628
+ description?: string;
2629
+ narrationKeywords?: Array<unknown[]>;
2630
+ payeeKeywords?: Array<unknown[]>;
2631
+ categoryKeywords?: Array<unknown[]>;
2632
+ /**
2633
+ * Payment method keywords (e.g., HuaBei, YuEBao)
2634
+ */
2635
+ methodKeywords?: Array<unknown[]>;
2636
+ /**
2637
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2638
+ */
2639
+ categoryAccount?: string;
2640
+ matchLogic?: 'OR' | 'AND';
2641
+ /**
2642
+ * Minimum transaction amount (inclusive)
2643
+ */
2644
+ amountMin?: number;
2645
+ /**
2646
+ * Maximum transaction amount (inclusive)
2647
+ */
2648
+ amountMax?: number;
2649
+ priority?: number;
2650
+ /**
2651
+ * Enable or disable the rule
2652
+ */
2653
+ enabled?: boolean;
2654
+ additionalTags?: Array<unknown[]>;
2655
+ additionalMetadata?: {
2656
+ [key: string]: unknown;
2657
+ };
2658
+ };
2659
+
1981
2660
  export type TestRuleDto = {
1982
2661
  narration: string;
1983
2662
  payee?: string;
@@ -2118,6 +2797,13 @@ export type colorScheme = 'DARK' | 'LIGHT';
2118
2797
  */
2119
2798
  export type viewMode = 'DEFAULT' | 'ZEN';
2120
2799
 
2800
+ export type UpdatePropertyDto = {
2801
+ /**
2802
+ * Property value
2803
+ */
2804
+ value: string;
2805
+ };
2806
+
2121
2807
  export type FileImportDto = {
2122
2808
  /**
2123
2809
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -2333,7 +3019,8 @@ export type ImporterConfigDto = {
2333
3019
  | 'cmbc-credit'
2334
3020
  | 'icbc'
2335
3021
  | 'icbc-credit'
2336
- | 'hsbc-hk';
3022
+ | 'hsbc-hk-credit'
3023
+ | 'hsbc-hk-debit';
2337
3024
  /**
2338
3025
  * Configuration version (semver)
2339
3026
  */
@@ -2373,7 +3060,135 @@ export type importerId =
2373
3060
  | 'cmbc-credit'
2374
3061
  | 'icbc'
2375
3062
  | 'icbc-credit'
2376
- | 'hsbc-hk';
3063
+ | 'hsbc-hk-credit'
3064
+ | 'hsbc-hk-debit';
3065
+
3066
+ export type UpdateMapperDefaultsDto = {
3067
+ /**
3068
+ * Source account for transactions (Beancount format)
3069
+ */
3070
+ sourceAccount?: string;
3071
+ /**
3072
+ * Default currency (ISO 4217 code)
3073
+ */
3074
+ currency?: string;
3075
+ /**
3076
+ * Default expense account (optional)
3077
+ */
3078
+ expenseAccount?: string;
3079
+ /**
3080
+ * Default income account (optional)
3081
+ */
3082
+ incomeAccount?: string;
3083
+ /**
3084
+ * Payment method to source account mapping. Maps payment method keywords to Beancount account paths. Used by Alipay/WeChat importers to determine sourceAccount based on payment method (e.g., HuaBei, CreditCard).
3085
+ */
3086
+ methodAccountMapping?: {
3087
+ [key: string]: unknown;
3088
+ };
3089
+ };
3090
+
3091
+ export type UpdateConfigDataDto = {
3092
+ /**
3093
+ * Mapper defaults configuration
3094
+ */
3095
+ defaults?: UpdateMapperDefaultsDto;
3096
+ };
3097
+
3098
+ export type UpdateImporterConfigDto = {
3099
+ /**
3100
+ * Configuration data (v1 schema)
3101
+ */
3102
+ data?: UpdateConfigDataDto;
3103
+ };
3104
+
3105
+ export type CreatePlatformDto = {
3106
+ /**
3107
+ * Platform name
3108
+ */
3109
+ name: string;
3110
+ /**
3111
+ * Platform canonical identifier (lowercase, kebab-case)
3112
+ */
3113
+ canonical: string;
3114
+ /**
3115
+ * Platform aliases (multi-language names for lookup)
3116
+ */
3117
+ aliases: Array<string>;
3118
+ /**
3119
+ * Platform URL
3120
+ */
3121
+ url: string;
3122
+ /**
3123
+ * Platform type
3124
+ */
3125
+ type:
3126
+ | 'BANK'
3127
+ | 'BROKERAGE'
3128
+ | 'CRYPTO_EXCHANGE'
3129
+ | 'PAYMENT'
3130
+ | 'INVESTMENT'
3131
+ | 'INSURANCE'
3132
+ | 'OTHER';
3133
+ /**
3134
+ * Platform logo URL
3135
+ */
3136
+ logoUrl?: string;
3137
+ /**
3138
+ * Whether the platform is active
3139
+ */
3140
+ isActive?: boolean;
3141
+ };
3142
+
3143
+ /**
3144
+ * Platform type
3145
+ */
3146
+ export type type3 =
3147
+ | 'BANK'
3148
+ | 'BROKERAGE'
3149
+ | 'CRYPTO_EXCHANGE'
3150
+ | 'PAYMENT'
3151
+ | 'INVESTMENT'
3152
+ | 'INSURANCE'
3153
+ | 'OTHER';
3154
+
3155
+ export type UpdatePlatformDto = {
3156
+ /**
3157
+ * Platform name
3158
+ */
3159
+ name?: string;
3160
+ /**
3161
+ * Platform canonical identifier (lowercase, kebab-case)
3162
+ */
3163
+ canonical?: string;
3164
+ /**
3165
+ * Platform aliases (multi-language names for lookup)
3166
+ */
3167
+ aliases?: Array<string>;
3168
+ /**
3169
+ * Platform URL
3170
+ */
3171
+ url?: string;
3172
+ /**
3173
+ * Platform type
3174
+ */
3175
+ type?:
3176
+ | 'BANK'
3177
+ | 'BROKERAGE'
3178
+ | 'CRYPTO_EXCHANGE'
3179
+ | 'PAYMENT'
3180
+ | 'INVESTMENT'
3181
+ | 'INSURANCE'
3182
+ | 'OTHER';
3183
+ /**
3184
+ * Platform logo URL
3185
+ */
3186
+ logoUrl?: string;
3187
+ /**
3188
+ * Whether the platform is active
3189
+ */
3190
+ isActive?: boolean;
3191
+ };
2377
3192
 
2378
3193
  export type ProviderSyncConfigDto = {
2379
3194
  /**
@@ -3603,33 +4418,75 @@ export type AccountControllerDeleteData = {
3603
4418
 
3604
4419
  export type AccountControllerDeleteResponse = void;
3605
4420
 
3606
- export type AccountControllerCloseData = {
4421
+ export type AccountControllerCloseData = {
4422
+ /**
4423
+ * Account UUID
4424
+ */
4425
+ id: string;
4426
+ /**
4427
+ * Region code for tenant context
4428
+ */
4429
+ region: 'cn' | 'us' | 'de';
4430
+ requestBody: CloseAccountDto;
4431
+ };
4432
+
4433
+ export type AccountControllerCloseResponse = AccountResponseDto;
4434
+
4435
+ export type AccountControllerReopenData = {
4436
+ /**
4437
+ * Account UUID
4438
+ */
4439
+ id: string;
4440
+ /**
4441
+ * Region code for tenant context
4442
+ */
4443
+ region: 'cn' | 'us' | 'de';
4444
+ requestBody: ReopenAccountDto;
4445
+ };
4446
+
4447
+ export type AccountControllerReopenResponse = AccountResponseDto;
4448
+
4449
+ export type AccountStandardsControllerGetTemplatesData = {
4450
+ /**
4451
+ * Region code (cn, us, de)
4452
+ */
4453
+ region: 'cn' | 'us' | 'de';
4454
+ /**
4455
+ * Search term for path or description
4456
+ */
4457
+ search?: string;
4458
+ /**
4459
+ * Filter by account type
4460
+ */
4461
+ type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4462
+ };
4463
+
4464
+ export type AccountStandardsControllerGetTemplatesResponse =
4465
+ AccountStandardListResponseDto;
4466
+
4467
+ export type AccountStandardsControllerGetTemplateMetadataData = {
3607
4468
  /**
3608
- * Account UUID
4469
+ * Account path to check
3609
4470
  */
3610
- id: string;
4471
+ path: string;
3611
4472
  /**
3612
4473
  * Region code for tenant context
3613
4474
  */
3614
4475
  region: 'cn' | 'us' | 'de';
3615
- requestBody: CloseAccountDto;
3616
4476
  };
3617
4477
 
3618
- export type AccountControllerCloseResponse = AccountResponseDto;
4478
+ export type AccountStandardsControllerGetTemplateMetadataResponse =
4479
+ TemplateMetadataResponseDto;
3619
4480
 
3620
- export type AccountControllerReopenData = {
3621
- /**
3622
- * Account UUID
3623
- */
3624
- id: string;
4481
+ export type AccountStandardsControllerGetRegionsData = {
3625
4482
  /**
3626
4483
  * Region code for tenant context
3627
4484
  */
3628
4485
  region: 'cn' | 'us' | 'de';
3629
- requestBody: ReopenAccountDto;
3630
4486
  };
3631
4487
 
3632
- export type AccountControllerReopenResponse = AccountResponseDto;
4488
+ export type AccountStandardsControllerGetRegionsResponse =
4489
+ RegionsMetadataResponseDto;
3633
4490
 
3634
4491
  export type TransactionControllerCreateData = {
3635
4492
  /**
@@ -3681,14 +4538,16 @@ export type TransactionControllerListData = {
3681
4538
 
3682
4539
  export type TransactionControllerListResponse = TransactionListResponseDto;
3683
4540
 
3684
- export type TransactionControllerData = {
4541
+ export type TransactionControllerCreateBatchData = {
3685
4542
  /**
3686
4543
  * Region code for tenant context
3687
4544
  */
3688
4545
  region: 'cn' | 'us' | 'de';
4546
+ requestBody: BatchCreateTransactionDto;
3689
4547
  };
3690
4548
 
3691
- export type TransactionControllerResponse = unknown;
4549
+ export type TransactionControllerCreateBatchResponse =
4550
+ BatchTransactionResponseDto;
3692
4551
 
3693
4552
  export type TransactionControllerGetDetailData = {
3694
4553
  /**
@@ -3720,42 +4579,18 @@ export type TransactionControllerUpdateData = {
3720
4579
 
3721
4580
  export type TransactionControllerUpdateResponse = TransactionDetailDto;
3722
4581
 
3723
- export type TransactionController1Data = {
3724
- /**
3725
- * Region code for tenant context
3726
- */
3727
- region: 'cn' | 'us' | 'de';
3728
- };
3729
-
3730
- export type TransactionController1Response = void;
3731
-
3732
- export type AccountStandardsControllerGetTemplatesData = {
3733
- /**
3734
- * Region code (cn, us, de)
3735
- */
3736
- region: 'cn' | 'us' | 'de';
3737
- /**
3738
- * Search term for path or description
3739
- */
3740
- search?: string;
4582
+ export type TransactionControllerDeleteData = {
3741
4583
  /**
3742
- * Filter by account type
4584
+ * Transaction ID
3743
4585
  */
3744
- type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
3745
- };
3746
-
3747
- export type AccountStandardsControllerGetTemplatesResponse =
3748
- AccountStandardListResponseDto;
3749
-
3750
- export type AccountStandardsControllerGetRegionsData = {
4586
+ id: string;
3751
4587
  /**
3752
- * Region code (cn, us, de)
4588
+ * Region code for tenant context
3753
4589
  */
3754
4590
  region: 'cn' | 'us' | 'de';
3755
4591
  };
3756
4592
 
3757
- export type AccountStandardsControllerGetRegionsResponse =
3758
- RegionsMetadataResponseDto;
4593
+ export type TransactionControllerDeleteResponse = void;
3759
4594
 
3760
4595
  export type BalanceControllerGetBalanceData = {
3761
4596
  /**
@@ -3771,7 +4606,7 @@ export type BalanceControllerGetBalanceData = {
3771
4606
  */
3772
4607
  date?: string;
3773
4608
  /**
3774
- * Region code (cn, us, de)
4609
+ * Region code for tenant context
3775
4610
  */
3776
4611
  region: 'cn' | 'us' | 'de';
3777
4612
  };
@@ -3780,7 +4615,7 @@ export type BalanceControllerGetBalanceResponse = BalanceResponseDto;
3780
4615
 
3781
4616
  export type BalanceControllerGetMultiCurrencyBalanceData = {
3782
4617
  /**
3783
- * Region code (cn, us, de)
4618
+ * Region code for tenant context
3784
4619
  */
3785
4620
  region: 'cn' | 'us' | 'de';
3786
4621
  };
@@ -3802,7 +4637,7 @@ export type ReviewControllerFindAllData = {
3802
4637
  */
3803
4638
  page?: number;
3804
4639
  /**
3805
- * Region code (cn, us, de)
4640
+ * Region code for tenant context
3806
4641
  */
3807
4642
  region: 'cn' | 'us' | 'de';
3808
4643
  /**
@@ -3824,7 +4659,7 @@ export type ReviewControllerFindAllResponse = ReviewListResponseDto;
3824
4659
 
3825
4660
  export type ReviewControllerGetStatsData = {
3826
4661
  /**
3827
- * Region code (cn, us, de)
4662
+ * Region code for tenant context
3828
4663
  */
3829
4664
  region: 'cn' | 'us' | 'de';
3830
4665
  };
@@ -3837,48 +4672,58 @@ export type ReviewControllerFindOneData = {
3837
4672
  */
3838
4673
  id: string;
3839
4674
  /**
3840
- * Region code (cn, us, de)
4675
+ * Region code for tenant context
3841
4676
  */
3842
4677
  region: 'cn' | 'us' | 'de';
3843
4678
  };
3844
4679
 
3845
4680
  export type ReviewControllerFindOneResponse = ReviewDetailDto;
3846
4681
 
3847
- export type ReviewControllerData = {
4682
+ export type ReviewControllerResolveData = {
3848
4683
  /**
3849
- * Region code (cn, us, de)
4684
+ * Review ID
4685
+ */
4686
+ id: string;
4687
+ /**
4688
+ * Region code for tenant context
3850
4689
  */
3851
4690
  region: 'cn' | 'us' | 'de';
4691
+ requestBody: ResolveReviewDto;
3852
4692
  };
3853
4693
 
3854
- export type ReviewControllerResponse = unknown;
4694
+ export type ReviewControllerResolveResponse = ResolveResultDto;
3855
4695
 
3856
- export type ReviewController1Data = {
4696
+ export type ReviewControllerUndoData = {
3857
4697
  /**
3858
- * Region code (cn, us, de)
4698
+ * Review ID
4699
+ */
4700
+ id: string;
4701
+ /**
4702
+ * Region code for tenant context
3859
4703
  */
3860
4704
  region: 'cn' | 'us' | 'de';
3861
4705
  };
3862
4706
 
3863
- export type ReviewController1Response = unknown;
4707
+ export type ReviewControllerUndoResponse = UndoResultDto;
3864
4708
 
3865
- export type ReviewController2Data = {
4709
+ export type ReviewControllerBatchResolveData = {
3866
4710
  /**
3867
- * Region code (cn, us, de)
4711
+ * Region code for tenant context
3868
4712
  */
3869
4713
  region: 'cn' | 'us' | 'de';
4714
+ /**
4715
+ * Batch resolution request containing review IDs and action
4716
+ */
4717
+ requestBody: BatchResolveDto;
3870
4718
  };
3871
4719
 
3872
- export type ReviewController2Response = unknown;
4720
+ export type ReviewControllerBatchResolveResponse = BatchResolveResultDto;
3873
4721
 
3874
- export type PayeeControllerData = {
3875
- /**
3876
- * Region code (cn, us, de)
3877
- */
3878
- region: 'cn' | 'us' | 'de';
4722
+ export type PayeeControllerCreateData = {
4723
+ requestBody: CreatePayeeDto;
3879
4724
  };
3880
4725
 
3881
- export type PayeeControllerResponse = unknown;
4726
+ export type PayeeControllerCreateResponse = PayeeResponseDto;
3882
4727
 
3883
4728
  export type PayeeControllerFindAllData = {
3884
4729
  /**
@@ -3893,10 +4738,6 @@ export type PayeeControllerFindAllData = {
3893
4738
  * Filter by exact payee name match
3894
4739
  */
3895
4740
  payee?: string;
3896
- /**
3897
- * Region code (cn, us, de)
3898
- */
3899
- region: 'cn' | 'us' | 'de';
3900
4741
  /**
3901
4742
  * Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
3902
4743
  */
@@ -3918,10 +4759,6 @@ export type PayeeControllerAutocompleteData = {
3918
4759
  * Search query for payee name (partial match, case-insensitive)
3919
4760
  */
3920
4761
  q: string;
3921
- /**
3922
- * Region code (cn, us, de)
3923
- */
3924
- region: 'cn' | 'us' | 'de';
3925
4762
  };
3926
4763
 
3927
4764
  export type PayeeControllerAutocompleteResponse = PayeeAutocompleteResponseDto;
@@ -3931,10 +4768,6 @@ export type PayeeControllerGetTopPayeesData = {
3931
4768
  * Maximum number of results
3932
4769
  */
3933
4770
  limit?: number;
3934
- /**
3935
- * Region code (cn, us, de)
3936
- */
3937
- region: 'cn' | 'us' | 'de';
3938
4771
  };
3939
4772
 
3940
4773
  export type PayeeControllerGetTopPayeesResponse = Array<PayeeStatsResponseDto>;
@@ -3944,40 +4777,34 @@ export type PayeeControllerFindOneData = {
3944
4777
  * Payee UUID
3945
4778
  */
3946
4779
  id: string;
3947
- /**
3948
- * Region code (cn, us, de)
3949
- */
3950
- region: 'cn' | 'us' | 'de';
3951
4780
  };
3952
4781
 
3953
4782
  export type PayeeControllerFindOneResponse = PayeeResponseDto;
3954
4783
 
3955
- export type PayeeController1Data = {
4784
+ export type PayeeControllerUpdateData = {
3956
4785
  /**
3957
- * Region code (cn, us, de)
4786
+ * Payee UUID
3958
4787
  */
3959
- region: 'cn' | 'us' | 'de';
4788
+ id: string;
4789
+ requestBody: UpdatePayeeDto;
3960
4790
  };
3961
4791
 
3962
- export type PayeeController1Response = unknown;
4792
+ export type PayeeControllerUpdateResponse = PayeeResponseDto;
3963
4793
 
3964
- export type PayeeController2Data = {
4794
+ export type PayeeControllerDeleteData = {
3965
4795
  /**
3966
- * Region code (cn, us, de)
4796
+ * Payee UUID
3967
4797
  */
3968
- region: 'cn' | 'us' | 'de';
4798
+ id: string;
3969
4799
  };
3970
4800
 
3971
- export type PayeeController2Response = void;
4801
+ export type PayeeControllerDeleteResponse = void;
3972
4802
 
3973
- export type PayeeProfileAdminControllerData = {
3974
- /**
3975
- * Region code (cn, us, de)
3976
- */
3977
- region: 'cn' | 'us' | 'de';
4803
+ export type PayeeProfileAdminControllerCreateData = {
4804
+ requestBody: CreatePayeeProfileDto;
3978
4805
  };
3979
4806
 
3980
- export type PayeeProfileAdminControllerResponse = unknown;
4807
+ export type PayeeProfileAdminControllerCreateResponse = PayeeProfileResponseDto;
3981
4808
 
3982
4809
  export type PayeeProfileAdminControllerFindAllData = {
3983
4810
  /**
@@ -3992,1233 +4819,1009 @@ export type PayeeProfileAdminControllerFindAllData = {
3992
4819
  | 'CONVENIENCE_STORE'
3993
4820
  | 'SHOPPING_MALL'
3994
4821
  | 'ONLINE_SHOPPING'
3995
- | 'TAXI'
3996
- | 'RIDE_SHARING'
3997
- | 'PUBLIC_TRANSPORT'
3998
- | 'PARKING'
3999
- | 'GAS_STATION'
4000
- | 'UTILITIES'
4001
- | 'TELECOM'
4002
- | 'STREAMING'
4003
- | 'HEALTHCARE'
4004
- | 'EDUCATION'
4005
- | 'ENTERTAINMENT'
4006
- | 'SPORTS'
4007
- | 'TRAVEL'
4008
- | 'HOTEL'
4009
- | 'OTHER';
4010
- /**
4011
- * Filter by country (ISO 3166-1 alpha-2)
4012
- */
4013
- country?: string;
4014
- /**
4015
- * Filter by data source
4016
- */
4017
- dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
4018
- /**
4019
- * Filter by active status (default: true - show only active)
4020
- */
4021
- isActive?: boolean;
4022
- /**
4023
- * Region code (cn, us, de)
4024
- */
4025
- region: 'cn' | 'us' | 'de';
4026
- /**
4027
- * Search term for canonical name and aliases (case-insensitive)
4028
- */
4029
- search?: string;
4030
- /**
4031
- * Filter by verification status. true = verified only, false = unverified only
4032
- */
4033
- verified?: boolean;
4034
- };
4035
-
4036
- export type PayeeProfileAdminControllerFindAllResponse =
4037
- PayeeProfileListResponseDto;
4038
-
4039
- export type PayeeProfileAdminControllerFindOneData = {
4040
- /**
4041
- * Payee profile ID (UUID)
4042
- */
4043
- id: string;
4044
- /**
4045
- * Region code (cn, us, de)
4046
- */
4047
- region: 'cn' | 'us' | 'de';
4048
- };
4049
-
4050
- export type PayeeProfileAdminControllerFindOneResponse =
4051
- PayeeProfileResponseDto;
4052
-
4053
- export type PayeeProfileAdminController1Data = {
4054
- /**
4055
- * Region code (cn, us, de)
4056
- */
4057
- region: 'cn' | 'us' | 'de';
4058
- };
4059
-
4060
- export type PayeeProfileAdminController1Response = unknown;
4061
-
4062
- export type PayeeProfileAdminController2Data = {
4063
- /**
4064
- * Region code (cn, us, de)
4065
- */
4066
- region: 'cn' | 'us' | 'de';
4067
- };
4068
-
4069
- export type PayeeProfileAdminController2Response = void;
4070
-
4071
- export type PayeeProfileAdminController3Data = {
4072
- /**
4073
- * Region code (cn, us, de)
4074
- */
4075
- region: 'cn' | 'us' | 'de';
4076
- };
4077
-
4078
- export type PayeeProfileAdminController3Response = unknown;
4079
-
4080
- export type PayeeProfileAdminController4Data = {
4081
- /**
4082
- * Region code (cn, us, de)
4083
- */
4084
- region: 'cn' | 'us' | 'de';
4085
- };
4086
-
4087
- export type PayeeProfileAdminController4Response = unknown;
4088
-
4089
- export type CommodityControllerData = {
4090
- /**
4091
- * Region code (cn, us, de)
4092
- */
4093
- region: 'cn' | 'us' | 'de';
4094
- };
4095
-
4096
- export type CommodityControllerResponse = unknown;
4097
-
4098
- export type CommodityControllerFindAllData = {
4099
- /**
4100
- * Region code (cn, us, de)
4101
- */
4102
- region: 'cn' | 'us' | 'de';
4103
- /**
4104
- * Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
4105
- */
4106
- search?: string;
4107
- /**
4108
- * Filter by exact symbol match
4109
- */
4110
- symbol?: string;
4111
- };
4112
-
4113
- export type CommodityControllerFindAllResponse = CommodityListResponseDto;
4114
-
4115
- export type CommodityControllerFindOneData = {
4116
- /**
4117
- * Region code (cn, us, de)
4118
- */
4119
- region: 'cn' | 'us' | 'de';
4120
- /**
4121
- * Commodity symbol
4122
- */
4123
- symbol: string;
4124
- };
4125
-
4126
- export type CommodityControllerFindOneResponse = CommodityResponseDto;
4127
-
4128
- export type CommodityController1Data = {
4129
- /**
4130
- * Region code (cn, us, de)
4131
- */
4132
- region: 'cn' | 'us' | 'de';
4133
- };
4134
-
4135
- export type CommodityController1Response = unknown;
4136
-
4137
- export type CommodityController2Data = {
4138
- /**
4139
- * Region code (cn, us, de)
4140
- */
4141
- region: 'cn' | 'us' | 'de';
4142
- };
4143
-
4144
- export type CommodityController2Response = void;
4145
-
4146
- export type CommodityController3Data = {
4147
- /**
4148
- * Region code (cn, us, de)
4149
- */
4150
- region: 'cn' | 'us' | 'de';
4151
- };
4152
-
4153
- export type CommodityController3Response = unknown;
4154
-
4155
- export type CommodityController4Data = {
4156
- /**
4157
- * Region code (cn, us, de)
4158
- */
4159
- region: 'cn' | 'us' | 'de';
4160
- };
4161
-
4162
- export type CommodityController4Response = unknown;
4163
-
4164
- export type RecurringRuleControllerData = {
4822
+ | 'TAXI'
4823
+ | 'RIDE_SHARING'
4824
+ | 'PUBLIC_TRANSPORT'
4825
+ | 'PARKING'
4826
+ | 'GAS_STATION'
4827
+ | 'UTILITIES'
4828
+ | 'TELECOM'
4829
+ | 'STREAMING'
4830
+ | 'HEALTHCARE'
4831
+ | 'EDUCATION'
4832
+ | 'ENTERTAINMENT'
4833
+ | 'SPORTS'
4834
+ | 'TRAVEL'
4835
+ | 'HOTEL'
4836
+ | 'OTHER';
4165
4837
  /**
4166
- * Region code (cn, us, de)
4838
+ * Filter by country (ISO 3166-1 alpha-2)
4167
4839
  */
4168
- region: 'cn' | 'us' | 'de';
4169
- };
4170
-
4171
- export type RecurringRuleControllerResponse = unknown;
4172
-
4173
- export type RecurringRuleControllerFindAllData = {
4840
+ country?: string;
4174
4841
  /**
4175
- * Filter by frequency (WEEKLY, MONTHLY, etc.)
4842
+ * Filter by data source
4176
4843
  */
4177
- frequency?: string;
4844
+ dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
4178
4845
  /**
4179
- * Filter by autoCreate enabled
4846
+ * Filter by active status (default: true - show only active)
4180
4847
  */
4181
- hasAutoCreate?: boolean;
4848
+ isActive?: boolean;
4182
4849
  /**
4183
- * Filter by active status
4850
+ * Search term for canonical name and aliases (case-insensitive)
4184
4851
  */
4185
- isActive?: boolean;
4852
+ search?: string;
4186
4853
  /**
4187
- * Region code (cn, us, de)
4854
+ * Filter by verification status. true = verified only, false = unverified only
4188
4855
  */
4189
- region: 'cn' | 'us' | 'de';
4856
+ verified?: boolean;
4190
4857
  };
4191
4858
 
4192
- export type RecurringRuleControllerFindAllResponse =
4193
- Array<RecurringRuleResponseDto>;
4859
+ export type PayeeProfileAdminControllerFindAllResponse =
4860
+ PayeeProfileListResponseDto;
4194
4861
 
4195
- export type RecurringRuleController1Data = {
4862
+ export type PayeeProfileAdminControllerFindOneData = {
4196
4863
  /**
4197
- * Region code (cn, us, de)
4864
+ * Payee profile ID (UUID)
4198
4865
  */
4199
- region: 'cn' | 'us' | 'de';
4866
+ id: string;
4200
4867
  };
4201
4868
 
4202
- export type RecurringRuleController1Response = unknown;
4869
+ export type PayeeProfileAdminControllerFindOneResponse =
4870
+ PayeeProfileResponseDto;
4203
4871
 
4204
- export type RecurringRuleControllerFindOneData = {
4872
+ export type PayeeProfileAdminControllerUpdateData = {
4205
4873
  /**
4206
- * Rule ID
4874
+ * Payee profile ID (UUID)
4207
4875
  */
4208
4876
  id: string;
4209
- /**
4210
- * Region code (cn, us, de)
4211
- */
4212
- region: 'cn' | 'us' | 'de';
4877
+ requestBody: UpdatePayeeProfileDto;
4213
4878
  };
4214
4879
 
4215
- export type RecurringRuleControllerFindOneResponse = RecurringRuleResponseDto;
4880
+ export type PayeeProfileAdminControllerUpdateResponse = PayeeProfileResponseDto;
4216
4881
 
4217
- export type RecurringRuleController2Data = {
4882
+ export type PayeeProfileAdminControllerDeleteData = {
4218
4883
  /**
4219
- * Region code (cn, us, de)
4884
+ * Payee profile ID (UUID)
4220
4885
  */
4221
- region: 'cn' | 'us' | 'de';
4886
+ id: string;
4222
4887
  };
4223
4888
 
4224
- export type RecurringRuleController2Response = unknown;
4889
+ export type PayeeProfileAdminControllerDeleteResponse = void;
4225
4890
 
4226
- export type RecurringRuleController3Data = {
4891
+ export type PayeeProfileAdminControllerVerifyData = {
4227
4892
  /**
4228
- * Region code (cn, us, de)
4893
+ * Payee profile ID (UUID)
4229
4894
  */
4230
- region: 'cn' | 'us' | 'de';
4895
+ id: string;
4231
4896
  };
4232
4897
 
4233
- export type RecurringRuleController3Response = void;
4898
+ export type PayeeProfileAdminControllerVerifyResponse = PayeeProfileResponseDto;
4234
4899
 
4235
- export type RecurringRuleControllerGetWithStatsData = {
4900
+ export type PayeeProfileAdminControllerUnverifyData = {
4236
4901
  /**
4237
- * Rule ID
4902
+ * Payee profile ID (UUID)
4238
4903
  */
4239
4904
  id: string;
4905
+ };
4906
+
4907
+ export type PayeeProfileAdminControllerUnverifyResponse =
4908
+ PayeeProfileResponseDto;
4909
+
4910
+ export type CommodityControllerCreateData = {
4240
4911
  /**
4241
- * Region code (cn, us, de)
4912
+ * Region code for tenant context
4242
4913
  */
4243
4914
  region: 'cn' | 'us' | 'de';
4915
+ requestBody: CreateCommodityDto;
4244
4916
  };
4245
4917
 
4246
- export type RecurringRuleControllerGetWithStatsResponse =
4247
- RecurringRuleWithStatsResponseDto;
4918
+ export type CommodityControllerCreateResponse = CommodityResponseDto;
4248
4919
 
4249
- export type ExpectedTransactionControllerFindAllData = {
4250
- /**
4251
- * Filter by date range start (YYYY-MM-DD)
4252
- */
4253
- fromDate?: string;
4920
+ export type CommodityControllerFindAllData = {
4254
4921
  /**
4255
- * Region code (cn, us, de)
4922
+ * Region code for tenant context
4256
4923
  */
4257
4924
  region: 'cn' | 'us' | 'de';
4258
4925
  /**
4259
- * Filter by recurring rule ID
4260
- */
4261
- ruleId?: string;
4262
- /**
4263
- * Filter by status (PENDING, COMPLETED, SKIPPED)
4926
+ * Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
4264
4927
  */
4265
- status?: string;
4928
+ search?: string;
4266
4929
  /**
4267
- * Filter by date range end (YYYY-MM-DD)
4930
+ * Filter by exact symbol match
4268
4931
  */
4269
- toDate?: string;
4932
+ symbol?: string;
4270
4933
  };
4271
4934
 
4272
- export type ExpectedTransactionControllerFindAllResponse =
4273
- ExpectedTransactionListResponseDto;
4935
+ export type CommodityControllerFindAllResponse = CommodityListResponseDto;
4274
4936
 
4275
- export type ExpectedTransactionControllerFindOverdueData = {
4937
+ export type CommodityControllerFindOneData = {
4276
4938
  /**
4277
- * Region code (cn, us, de)
4939
+ * Region code for tenant context
4278
4940
  */
4279
4941
  region: 'cn' | 'us' | 'de';
4280
- };
4281
-
4282
- export type ExpectedTransactionControllerFindOverdueResponse =
4283
- ExpectedTransactionListResponseDto;
4284
-
4285
- export type ExpectedTransactionControllerFindOneData = {
4286
- /**
4287
- * Expected transaction ID
4288
- */
4289
- id: string;
4290
4942
  /**
4291
- * Region code (cn, us, de)
4943
+ * Commodity symbol
4292
4944
  */
4293
- region: 'cn' | 'us' | 'de';
4945
+ symbol: string;
4294
4946
  };
4295
4947
 
4296
- export type ExpectedTransactionControllerFindOneResponse =
4297
- ExpectedTransactionResponseDto;
4948
+ export type CommodityControllerFindOneResponse = CommodityResponseDto;
4298
4949
 
4299
- export type ExpectedTransactionControllerData = {
4950
+ export type CommodityControllerUpdateData = {
4300
4951
  /**
4301
- * Region code (cn, us, de)
4952
+ * Region code for tenant context
4302
4953
  */
4303
4954
  region: 'cn' | 'us' | 'de';
4304
- };
4305
-
4306
- export type ExpectedTransactionControllerResponse = unknown;
4307
-
4308
- export type ExpectedTransactionController1Data = {
4955
+ requestBody: UpdateCommodityDto;
4309
4956
  /**
4310
- * Region code (cn, us, de)
4957
+ * Commodity symbol
4311
4958
  */
4312
- region: 'cn' | 'us' | 'de';
4959
+ symbol: string;
4313
4960
  };
4314
4961
 
4315
- export type ExpectedTransactionController1Response = unknown;
4962
+ export type CommodityControllerUpdateResponse = CommodityResponseDto;
4316
4963
 
4317
- export type ExpectedTransactionController2Data = {
4964
+ export type CommodityControllerDeleteData = {
4318
4965
  /**
4319
- * Region code (cn, us, de)
4966
+ * Region code for tenant context
4320
4967
  */
4321
4968
  region: 'cn' | 'us' | 'de';
4322
- };
4323
-
4324
- export type ExpectedTransactionController2Response = unknown;
4325
-
4326
- export type ExpectedTransactionController3Data = {
4327
4969
  /**
4328
- * Region code (cn, us, de)
4970
+ * Commodity symbol
4329
4971
  */
4330
- region: 'cn' | 'us' | 'de';
4972
+ symbol: string;
4331
4973
  };
4332
4974
 
4333
- export type ExpectedTransactionController3Response = unknown;
4975
+ export type CommodityControllerDeleteResponse = void;
4334
4976
 
4335
- export type ExpectedTransactionController4Data = {
4977
+ export type CommodityControllerGetOrCreateData = {
4336
4978
  /**
4337
- * Region code (cn, us, de)
4979
+ * Region code for tenant context
4338
4980
  */
4339
4981
  region: 'cn' | 'us' | 'de';
4982
+ /**
4983
+ * Commodity symbol
4984
+ */
4985
+ symbol: string;
4340
4986
  };
4341
4987
 
4342
- export type ExpectedTransactionController4Response = unknown;
4988
+ export type CommodityControllerGetOrCreateResponse = CommodityResponseDto;
4343
4989
 
4344
- export type ForecastControllerGetForecastData = {
4345
- /**
4346
- * Number of months to forecast (1-12, default 3)
4347
- */
4348
- months?: number;
4990
+ export type CommodityControllerBulkCreateData = {
4349
4991
  /**
4350
- * Region code (cn, us, de)
4992
+ * Region code for tenant context
4351
4993
  */
4352
4994
  region: 'cn' | 'us' | 'de';
4353
4995
  };
4354
4996
 
4355
- export type ForecastControllerGetForecastResponse = ForecastResponseDto;
4997
+ export type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
4356
4998
 
4357
- export type TransactionRuleControllerData = {
4999
+ export type RecurringRuleControllerCreateData = {
4358
5000
  /**
4359
- * Region code (cn, us, de)
5001
+ * Region code for tenant context
4360
5002
  */
4361
5003
  region: 'cn' | 'us' | 'de';
5004
+ requestBody: CreateRecurringRuleDto;
4362
5005
  };
4363
5006
 
4364
- export type TransactionRuleControllerResponse = unknown;
5007
+ export type RecurringRuleControllerCreateResponse = RecurringRuleResponseDto;
4365
5008
 
4366
- export type TransactionRuleControllerListData = {
4367
- /**
4368
- * Filter by auto-apply status
4369
- */
4370
- autoApplyEnabled?: boolean;
4371
- /**
4372
- * Filter by enabled status
4373
- */
4374
- enabled?: boolean;
5009
+ export type RecurringRuleControllerFindAllData = {
4375
5010
  /**
4376
- * Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
5011
+ * Filter by frequency (WEEKLY, MONTHLY, etc.)
4377
5012
  */
4378
- learningSource?: 'NLP' | 'REVIEW_CENTER';
5013
+ frequency?: string;
4379
5014
  /**
4380
- * Max results per page (default: 20, max: 100)
5015
+ * Filter by autoCreate enabled
4381
5016
  */
4382
- limit?: number;
5017
+ hasAutoCreate?: boolean;
4383
5018
  /**
4384
- * Pagination offset (default: 0)
5019
+ * Filter by active status
4385
5020
  */
4386
- offset?: number;
5021
+ isActive?: boolean;
4387
5022
  /**
4388
- * Region code (cn, us, de)
5023
+ * Region code for tenant context
4389
5024
  */
4390
5025
  region: 'cn' | 'us' | 'de';
4391
5026
  };
4392
5027
 
4393
- export type TransactionRuleControllerListResponse =
4394
- TransactionRuleListResponseDto;
5028
+ export type RecurringRuleControllerFindAllResponse =
5029
+ Array<RecurringRuleResponseDto>;
4395
5030
 
4396
- export type TransactionRuleControllerValidateData = {
5031
+ export type RecurringRuleControllerCreateFromTransactionData = {
4397
5032
  /**
4398
- * Region code (cn, us, de)
5033
+ * Region code for tenant context
4399
5034
  */
4400
5035
  region: 'cn' | 'us' | 'de';
4401
- requestBody: ValidateRuleDto;
4402
- };
4403
-
4404
- export type TransactionRuleControllerValidateResponse = ValidateRuleResponseDto;
4405
-
4406
- export type TransactionRuleController1Data = {
5036
+ requestBody: CreateRuleFromTransactionDto;
4407
5037
  /**
4408
- * Region code (cn, us, de)
5038
+ * Source transaction ID
4409
5039
  */
4410
- region: 'cn' | 'us' | 'de';
5040
+ transactionId: string;
4411
5041
  };
4412
5042
 
4413
- export type TransactionRuleController1Response = unknown;
5043
+ export type RecurringRuleControllerCreateFromTransactionResponse =
5044
+ RecurringRuleResponseDto;
4414
5045
 
4415
- export type TransactionRuleControllerExportData = {
5046
+ export type RecurringRuleControllerFindOneData = {
4416
5047
  /**
4417
- * Export format (currently only JSON supported)
5048
+ * Rule ID
4418
5049
  */
4419
- format: 'json';
5050
+ id: string;
4420
5051
  /**
4421
- * Region code (cn, us, de)
5052
+ * Region code for tenant context
4422
5053
  */
4423
5054
  region: 'cn' | 'us' | 'de';
4424
5055
  };
4425
5056
 
4426
- export type TransactionRuleControllerExportResponse = ExportRulesResponseDto;
5057
+ export type RecurringRuleControllerFindOneResponse = RecurringRuleResponseDto;
4427
5058
 
4428
- export type TransactionRuleControllerGetStatisticsData = {
5059
+ export type RecurringRuleControllerUpdateData = {
4429
5060
  /**
4430
- * Statistics time period
5061
+ * Rule ID
4431
5062
  */
4432
- period: '7d' | '30d' | '90d';
5063
+ id: string;
4433
5064
  /**
4434
- * Region code (cn, us, de)
5065
+ * Region code for tenant context
4435
5066
  */
4436
5067
  region: 'cn' | 'us' | 'de';
5068
+ requestBody: UpdateRecurringRuleDto;
4437
5069
  };
4438
5070
 
4439
- export type TransactionRuleControllerGetStatisticsResponse =
4440
- RuleStatisticsResponseDto;
5071
+ export type RecurringRuleControllerUpdateResponse = RecurringRuleResponseDto;
4441
5072
 
4442
- export type TransactionRuleControllerGetDetailData = {
4443
- /**
4444
- * Region code (cn, us, de)
4445
- */
4446
- region: 'cn' | 'us' | 'de';
5073
+ export type RecurringRuleControllerDeleteData = {
4447
5074
  /**
4448
5075
  * Rule ID
4449
5076
  */
4450
- ruleId: string;
4451
- };
4452
-
4453
- export type TransactionRuleControllerGetDetailResponse =
4454
- TransactionRuleResponseDto;
4455
-
4456
- export type TransactionRuleController2Data = {
5077
+ id: string;
4457
5078
  /**
4458
- * Region code (cn, us, de)
5079
+ * Region code for tenant context
4459
5080
  */
4460
5081
  region: 'cn' | 'us' | 'de';
4461
5082
  };
4462
5083
 
4463
- export type TransactionRuleController2Response = unknown;
5084
+ export type RecurringRuleControllerDeleteResponse = void;
4464
5085
 
4465
- export type TransactionRuleController3Data = {
5086
+ export type RecurringRuleControllerGetWithStatsData = {
4466
5087
  /**
4467
- * Region code (cn, us, de)
5088
+ * Rule ID
5089
+ */
5090
+ id: string;
5091
+ /**
5092
+ * Region code for tenant context
4468
5093
  */
4469
5094
  region: 'cn' | 'us' | 'de';
4470
5095
  };
4471
5096
 
4472
- export type TransactionRuleController3Response = void;
5097
+ export type RecurringRuleControllerGetWithStatsResponse =
5098
+ RecurringRuleWithStatsResponseDto;
4473
5099
 
4474
- export type TransactionRuleControllerTestData = {
5100
+ export type ExpectedTransactionControllerFindAllData = {
4475
5101
  /**
4476
- * Region code (cn, us, de)
5102
+ * Filter by date range start (YYYY-MM-DD)
5103
+ */
5104
+ fromDate?: string;
5105
+ /**
5106
+ * Region code for tenant context
4477
5107
  */
4478
5108
  region: 'cn' | 'us' | 'de';
4479
- requestBody: TestRuleDto;
4480
5109
  /**
4481
- * Rule ID to test
5110
+ * Filter by recurring rule ID
4482
5111
  */
4483
- ruleId: string;
4484
- };
4485
-
4486
- export type TransactionRuleControllerTestResponse = TestRuleResponseDto;
4487
-
4488
- export type UserControllerDeleteOwnUserData = {
5112
+ ruleId?: string;
4489
5113
  /**
4490
- * Region code (cn, us, de)
5114
+ * Filter by status (PENDING, COMPLETED, SKIPPED)
4491
5115
  */
4492
- region: 'cn' | 'us' | 'de';
4493
- requestBody: DeleteOwnUserDto;
4494
- };
4495
-
4496
- export type UserControllerDeleteOwnUserResponse = void;
4497
-
4498
- export type UserControllerGetUserData = {
4499
- acceptLanguage: string;
5116
+ status?: string;
4500
5117
  /**
4501
- * Region code (cn, us, de)
5118
+ * Filter by date range end (YYYY-MM-DD)
4502
5119
  */
4503
- region: 'cn' | 'us' | 'de';
5120
+ toDate?: string;
4504
5121
  };
4505
5122
 
4506
- export type UserControllerGetUserResponse = unknown;
5123
+ export type ExpectedTransactionControllerFindAllResponse =
5124
+ ExpectedTransactionListResponseDto;
4507
5125
 
4508
- export type UserControllerSignupUserData = {
5126
+ export type ExpectedTransactionControllerFindOverdueData = {
4509
5127
  /**
4510
- * Region code (cn, us, de)
5128
+ * Region code for tenant context
4511
5129
  */
4512
5130
  region: 'cn' | 'us' | 'de';
4513
- requestBody: SignupDto;
4514
5131
  };
4515
5132
 
4516
- export type UserControllerSignupUserResponse = unknown;
5133
+ export type ExpectedTransactionControllerFindOverdueResponse =
5134
+ ExpectedTransactionListResponseDto;
4517
5135
 
4518
- export type UserControllerDeleteUserData = {
5136
+ export type ExpectedTransactionControllerFindOneData = {
4519
5137
  /**
4520
- * User ID to delete
5138
+ * Expected transaction ID
4521
5139
  */
4522
5140
  id: string;
4523
5141
  /**
4524
- * Region code (cn, us, de)
5142
+ * Region code for tenant context
4525
5143
  */
4526
5144
  region: 'cn' | 'us' | 'de';
4527
5145
  };
4528
5146
 
4529
- export type UserControllerDeleteUserResponse = void;
5147
+ export type ExpectedTransactionControllerFindOneResponse =
5148
+ ExpectedTransactionResponseDto;
4530
5149
 
4531
- export type UserControllerGetUserInfoData = {
5150
+ export type ExpectedTransactionControllerSkipData = {
4532
5151
  /**
4533
- * User ID
5152
+ * Expected transaction ID
4534
5153
  */
4535
5154
  id: string;
4536
5155
  /**
4537
- * Region code (cn, us, de)
5156
+ * Region code for tenant context
4538
5157
  */
4539
5158
  region: 'cn' | 'us' | 'de';
4540
5159
  };
4541
5160
 
4542
- export type UserControllerGetUserInfoResponse = unknown;
5161
+ export type ExpectedTransactionControllerSkipResponse =
5162
+ ExpectedTransactionResponseDto;
4543
5163
 
4544
- export type UserControllerUpdateUserSettingData = {
5164
+ export type ExpectedTransactionControllerUndoSkipData = {
4545
5165
  /**
4546
- * Region code (cn, us, de)
5166
+ * Expected transaction ID
5167
+ */
5168
+ id: string;
5169
+ /**
5170
+ * Region code for tenant context
4547
5171
  */
4548
5172
  region: 'cn' | 'us' | 'de';
4549
- requestBody: UpdateUserSettingDto;
4550
5173
  };
4551
5174
 
4552
- export type UserControllerUpdateUserSettingResponse = unknown;
5175
+ export type ExpectedTransactionControllerUndoSkipResponse =
5176
+ ExpectedTransactionResponseDto;
4553
5177
 
4554
- export type UserControllerGetAllUserSettingsByPageData = {
4555
- /**
4556
- * Page number
4557
- */
4558
- pageNo: number;
5178
+ export type ExpectedTransactionControllerConfirmMatchData = {
4559
5179
  /**
4560
- * Page size
5180
+ * Expected transaction ID
4561
5181
  */
4562
- pageSize: number;
5182
+ id: string;
4563
5183
  /**
4564
- * Region code (cn, us, de)
5184
+ * Region code for tenant context
4565
5185
  */
4566
5186
  region: 'cn' | 'us' | 'de';
5187
+ requestBody: ConfirmMatchDto;
4567
5188
  };
4568
5189
 
4569
- export type UserControllerGetAllUserSettingsByPageResponse = unknown;
5190
+ export type ExpectedTransactionControllerConfirmMatchResponse = unknown;
4570
5191
 
4571
- export type UserControllerGetAssetLiabilitySummaryData = {
5192
+ export type ExpectedTransactionControllerUnmatchData = {
4572
5193
  /**
4573
- * Region code (cn, us, de)
5194
+ * Expected transaction ID
4574
5195
  */
4575
- region: 'cn' | 'us' | 'de';
4576
- };
4577
-
4578
- export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
4579
-
4580
- export type PropertyControllerGetAllData = {
5196
+ id: string;
4581
5197
  /**
4582
- * Region code (cn, us, de)
5198
+ * Region code for tenant context
4583
5199
  */
4584
5200
  region: 'cn' | 'us' | 'de';
4585
5201
  };
4586
5202
 
4587
- export type PropertyControllerGetAllResponse = unknown;
5203
+ export type ExpectedTransactionControllerUnmatchResponse = unknown;
4588
5204
 
4589
- export type PropertyControllerGetByKeyData = {
5205
+ export type ExpectedTransactionControllerEnterNowData = {
4590
5206
  /**
4591
- * Property key
5207
+ * Expected transaction ID
4592
5208
  */
4593
- key: string;
5209
+ id: string;
4594
5210
  /**
4595
- * Region code (cn, us, de)
5211
+ * Region code for tenant context
4596
5212
  */
4597
5213
  region: 'cn' | 'us' | 'de';
5214
+ requestBody: EnterNowDto;
4598
5215
  };
4599
5216
 
4600
- export type PropertyControllerGetByKeyResponse = unknown;
5217
+ export type ExpectedTransactionControllerEnterNowResponse = unknown;
4601
5218
 
4602
- export type PropertyControllerData = {
5219
+ export type ForecastControllerGetForecastData = {
4603
5220
  /**
4604
- * Region code (cn, us, de)
5221
+ * Number of months to forecast (1-12, default 3)
5222
+ */
5223
+ months?: number;
5224
+ /**
5225
+ * Region code for tenant context
4605
5226
  */
4606
5227
  region: 'cn' | 'us' | 'de';
4607
5228
  };
4608
5229
 
4609
- export type PropertyControllerResponse = unknown;
5230
+ export type ForecastControllerGetForecastResponse = ForecastResponseDto;
4610
5231
 
4611
- export type PropertyController1Data = {
5232
+ export type TransactionRuleControllerCreateData = {
4612
5233
  /**
4613
- * Region code (cn, us, de)
5234
+ * Region code for tenant context
4614
5235
  */
4615
5236
  region: 'cn' | 'us' | 'de';
5237
+ requestBody: CreateTransactionRuleDto;
4616
5238
  };
4617
5239
 
4618
- export type PropertyController1Response = void;
5240
+ export type TransactionRuleControllerCreateResponse =
5241
+ TransactionRuleResponseDto;
4619
5242
 
4620
- export type FileImportControllerImportFileData = {
5243
+ export type TransactionRuleControllerListData = {
4621
5244
  /**
4622
- * Bill file to import
5245
+ * Filter by auto-apply status
4623
5246
  */
4624
- formData: FileImportDto;
5247
+ autoApplyEnabled?: boolean;
4625
5248
  /**
4626
- * Region code (cn, us, de)
5249
+ * Filter by enabled status
4627
5250
  */
4628
- region: 'cn' | 'us' | 'de';
4629
- };
4630
-
4631
- export type FileImportControllerImportFileResponse = ImportResultDto;
4632
-
4633
- export type FileImportControllerIdentifyFileData = {
5251
+ enabled?: boolean;
4634
5252
  /**
4635
- * File to identify
5253
+ * Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
4636
5254
  */
4637
- formData: FileImportDto;
5255
+ learningSource?: 'NLP' | 'REVIEW_CENTER';
4638
5256
  /**
4639
- * Region code (cn, us, de)
5257
+ * Max results per page (default: 20, max: 100)
4640
5258
  */
4641
- region: 'cn' | 'us' | 'de';
4642
- };
4643
-
4644
- export type FileImportControllerIdentifyFileResponse = IdentifyResultDto;
4645
-
4646
- export type ImporterConfigControllerGetConfigData = {
5259
+ limit?: number;
4647
5260
  /**
4648
- * Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk
5261
+ * Pagination offset (default: 0)
4649
5262
  */
4650
- importerId: string;
5263
+ offset?: number;
4651
5264
  /**
4652
- * Region code (cn, us, de)
5265
+ * Region code for tenant context
4653
5266
  */
4654
5267
  region: 'cn' | 'us' | 'de';
4655
5268
  };
4656
5269
 
4657
- export type ImporterConfigControllerGetConfigResponse = ImporterConfigDto;
5270
+ export type TransactionRuleControllerListResponse =
5271
+ TransactionRuleListResponseDto;
4658
5272
 
4659
- export type ImporterConfigControllerData = {
5273
+ export type TransactionRuleControllerValidateData = {
4660
5274
  /**
4661
- * Region code (cn, us, de)
5275
+ * Region code for tenant context
4662
5276
  */
4663
5277
  region: 'cn' | 'us' | 'de';
5278
+ requestBody: ValidateRuleDto;
4664
5279
  };
4665
5280
 
4666
- export type ImporterConfigControllerResponse = unknown;
5281
+ export type TransactionRuleControllerValidateResponse = ValidateRuleResponseDto;
4667
5282
 
4668
- export type ImporterConfigController1Data = {
5283
+ export type TransactionRuleControllerBulkCreateData = {
4669
5284
  /**
4670
- * Region code (cn, us, de)
5285
+ * Region code for tenant context
4671
5286
  */
4672
5287
  region: 'cn' | 'us' | 'de';
5288
+ requestBody: BulkCreateRulesDto;
4673
5289
  };
4674
5290
 
4675
- export type ImporterConfigController1Response = unknown;
5291
+ export type TransactionRuleControllerBulkCreateResponse =
5292
+ BulkCreateRulesResponseDto;
4676
5293
 
4677
- export type ProviderSyncControllerSyncData = {
5294
+ export type TransactionRuleControllerExportData = {
4678
5295
  /**
4679
- * Provider name
5296
+ * Export format (currently only JSON supported)
4680
5297
  */
4681
- providerName:
4682
- | 'plaid'
4683
- | 'teller'
4684
- | 'truelayer'
4685
- | 'gocardless'
4686
- | 'simplefin'
4687
- | 'yodlee'
4688
- | 'beancount-direct'
4689
- | 'parsed-bill';
5298
+ format: 'json';
4690
5299
  /**
4691
- * Region code
5300
+ * Region code for tenant context
4692
5301
  */
4693
- region: unknown;
4694
- requestBody: ProviderSyncDto;
5302
+ region: 'cn' | 'us' | 'de';
4695
5303
  };
4696
5304
 
4697
- export type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
5305
+ export type TransactionRuleControllerExportResponse = ExportRulesResponseDto;
4698
5306
 
4699
- export type ProviderSyncControllerGetSupportedProvidersData = {
5307
+ export type TransactionRuleControllerGetStatisticsData = {
4700
5308
  /**
4701
- * Region code (cn, us, de)
5309
+ * Statistics time period
5310
+ */
5311
+ period: '7d' | '30d' | '90d';
5312
+ /**
5313
+ * Region code for tenant context
4702
5314
  */
4703
5315
  region: 'cn' | 'us' | 'de';
4704
5316
  };
4705
5317
 
4706
- export type ProviderSyncControllerGetSupportedProvidersResponse =
4707
- SupportedProvidersResponseDto;
5318
+ export type TransactionRuleControllerGetStatisticsResponse =
5319
+ RuleStatisticsResponseDto;
4708
5320
 
4709
- export type ProviderSyncControllerIsProviderSupportedData = {
5321
+ export type TransactionRuleControllerGetDetailData = {
4710
5322
  /**
4711
- * Provider name to check
5323
+ * Region code for tenant context
4712
5324
  */
4713
- providerName: string;
5325
+ region: 'cn' | 'us' | 'de';
4714
5326
  /**
4715
- * Region code (cn, us, de)
5327
+ * Rule ID
4716
5328
  */
4717
- region: 'cn' | 'us' | 'de';
5329
+ ruleId: string;
4718
5330
  };
4719
5331
 
4720
- export type ProviderSyncControllerIsProviderSupportedResponse = unknown;
5332
+ export type TransactionRuleControllerGetDetailResponse =
5333
+ TransactionRuleResponseDto;
4721
5334
 
4722
- export type TelemetryControllerReportTelemetryData = {
5335
+ export type TransactionRuleControllerUpdateData = {
4723
5336
  /**
4724
- * Region code (cn, us, de)
5337
+ * Region code for tenant context
4725
5338
  */
4726
5339
  region: 'cn' | 'us' | 'de';
4727
- requestBody: ParserTelemetryReportDto;
5340
+ requestBody: UpdateTransactionRuleDto;
5341
+ /**
5342
+ * Rule ID to update
5343
+ */
5344
+ ruleId: string;
4728
5345
  };
4729
5346
 
4730
- export type TelemetryControllerReportTelemetryResponse = unknown;
5347
+ export type TransactionRuleControllerUpdateResponse =
5348
+ TransactionRuleResponseDto;
4731
5349
 
4732
- export type NlpControllerProcessNaturalLanguageData = {
5350
+ export type TransactionRuleControllerDeleteData = {
4733
5351
  /**
4734
- * Region code (cn, us, de)
5352
+ * Region code for tenant context
4735
5353
  */
4736
5354
  region: 'cn' | 'us' | 'de';
4737
5355
  /**
4738
- * Natural language transaction input with optional session ID
5356
+ * Rule ID to delete
4739
5357
  */
4740
- requestBody: ProcessNlpDto;
5358
+ ruleId: string;
4741
5359
  };
4742
5360
 
4743
- export type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5361
+ export type TransactionRuleControllerDeleteResponse = void;
4744
5362
 
4745
- export type NlpControllerClearSessionData = {
5363
+ export type TransactionRuleControllerTestData = {
4746
5364
  /**
4747
- * Region code (cn, us, de)
5365
+ * Region code for tenant context
4748
5366
  */
4749
5367
  region: 'cn' | 'us' | 'de';
5368
+ requestBody: TestRuleDto;
4750
5369
  /**
4751
- * Specific session ID to clear (defaults to user session)
5370
+ * Rule ID to test
4752
5371
  */
4753
- sessionId?: string;
5372
+ ruleId: string;
4754
5373
  };
4755
5374
 
4756
- export type NlpControllerClearSessionResponse = void;
5375
+ export type TransactionRuleControllerTestResponse = TestRuleResponseDto;
4757
5376
 
4758
- export type NlpControllerGetSessionData = {
4759
- /**
4760
- * Region code (cn, us, de)
4761
- */
4762
- region: 'cn' | 'us' | 'de';
5377
+ export type UserControllerDeleteOwnUserData = {
5378
+ requestBody: DeleteOwnUserDto;
5379
+ };
5380
+
5381
+ export type UserControllerDeleteOwnUserResponse = void;
5382
+
5383
+ export type UserControllerGetUserData = {
5384
+ acceptLanguage: string;
5385
+ };
5386
+
5387
+ export type UserControllerGetUserResponse = unknown;
5388
+
5389
+ export type UserControllerSignupUserData = {
5390
+ requestBody: SignupDto;
5391
+ };
5392
+
5393
+ export type UserControllerSignupUserResponse = unknown;
5394
+
5395
+ export type UserControllerDeleteUserData = {
4763
5396
  /**
4764
- * Specific session ID to get (defaults to user session)
5397
+ * User ID to delete
4765
5398
  */
4766
- sessionId?: string;
5399
+ id: string;
4767
5400
  };
4768
5401
 
4769
- export type NlpControllerGetSessionResponse = unknown;
5402
+ export type UserControllerDeleteUserResponse = void;
4770
5403
 
4771
- export type PlatformControllerFindAllData = {
5404
+ export type UserControllerGetUserInfoData = {
4772
5405
  /**
4773
- * Region code (cn, us, de)
5406
+ * User ID
4774
5407
  */
4775
- region: 'cn' | 'us' | 'de';
5408
+ id: string;
4776
5409
  };
4777
5410
 
4778
- export type PlatformControllerFindAllResponse = unknown;
5411
+ export type UserControllerGetUserInfoResponse = unknown;
5412
+
5413
+ export type UserControllerUpdateUserSettingData = {
5414
+ requestBody: UpdateUserSettingDto;
5415
+ };
5416
+
5417
+ export type UserControllerUpdateUserSettingResponse = unknown;
4779
5418
 
4780
- export type PlatformControllerData = {
5419
+ export type UserControllerGetAllUserSettingsByPageData = {
5420
+ /**
5421
+ * Page number
5422
+ */
5423
+ pageNo: number;
4781
5424
  /**
4782
- * Region code (cn, us, de)
5425
+ * Page size
4783
5426
  */
4784
- region: 'cn' | 'us' | 'de';
5427
+ pageSize: number;
4785
5428
  };
4786
5429
 
4787
- export type PlatformControllerResponse = unknown;
5430
+ export type UserControllerGetAllUserSettingsByPageResponse = unknown;
4788
5431
 
4789
- export type PlatformControllerGetPlatformListData = {
4790
- /**
4791
- * Region code (cn, us, de)
4792
- */
4793
- region: 'cn' | 'us' | 'de';
4794
- };
5432
+ export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
4795
5433
 
4796
- export type PlatformControllerGetPlatformListResponse = unknown;
5434
+ export type PropertyControllerGetAllResponse = unknown;
4797
5435
 
4798
- export type PlatformController1Data = {
5436
+ export type PropertyControllerGetByKeyData = {
4799
5437
  /**
4800
- * Region code (cn, us, de)
5438
+ * Property key
4801
5439
  */
4802
- region: 'cn' | 'us' | 'de';
5440
+ key: string;
4803
5441
  };
4804
5442
 
4805
- export type PlatformController1Response = unknown;
5443
+ export type PropertyControllerGetByKeyResponse = unknown;
4806
5444
 
4807
- export type PlatformController2Data = {
5445
+ export type PropertyControllerUpdateData = {
4808
5446
  /**
4809
- * Region code (cn, us, de)
5447
+ * Property key
4810
5448
  */
4811
- region: 'cn' | 'us' | 'de';
5449
+ key: string;
5450
+ requestBody: UpdatePropertyDto;
4812
5451
  };
4813
5452
 
4814
- export type PlatformController2Response = void;
5453
+ export type PropertyControllerUpdateResponse = unknown;
4815
5454
 
4816
- export type SymbolControllerLookupSymbolData = {
4817
- /**
4818
- * Geographic area filter (e.g., CN, US)
4819
- */
4820
- area?: unknown;
4821
- /**
4822
- * Asset class filter
4823
- */
4824
- assetClass?: unknown;
4825
- /**
4826
- * Asset sub-class filter
4827
- */
4828
- assetSubClass?: unknown;
4829
- /**
4830
- * Include index symbols in results
4831
- */
4832
- includeIndices?: unknown;
4833
- /**
4834
- * Search query string
4835
- */
4836
- query?: unknown;
5455
+ export type PropertyControllerDeleteData = {
4837
5456
  /**
4838
- * Region code (cn, us, de)
5457
+ * Property key
4839
5458
  */
4840
- region: 'cn' | 'us' | 'de';
5459
+ key: string;
4841
5460
  };
4842
5461
 
4843
- export type SymbolControllerLookupSymbolResponse = unknown;
5462
+ export type PropertyControllerDeleteResponse = void;
4844
5463
 
4845
- export type SymbolControllerGetSymbolDataData = {
4846
- /**
4847
- * Data source provider
4848
- */
4849
- dataSource:
4850
- | 'ALPHA_VANTAGE'
4851
- | 'EOD_HISTORICAL_DATA'
4852
- | 'FINANCIAL_MODELING_PREP'
4853
- | 'MANUAL'
4854
- | 'RAPID_API'
4855
- | 'YAHOO'
4856
- | 'COINGECKO'
4857
- | 'TUSHARE'
4858
- | 'BLOOMBERG'
4859
- | 'CSI'
4860
- | 'STOOQ'
4861
- | 'TRADING_VIEW';
5464
+ export type ExportControllerExportBeancountResponse = unknown;
5465
+
5466
+ export type FileImportControllerImportFileData = {
4862
5467
  /**
4863
- * Include historical price data (0 or 1)
5468
+ * Bill file to import
4864
5469
  */
4865
- includeHistoricalData?: unknown;
5470
+ formData: FileImportDto;
4866
5471
  /**
4867
- * Region code (cn, us, de)
5472
+ * Region code for tenant context
4868
5473
  */
4869
5474
  region: 'cn' | 'us' | 'de';
4870
- /**
4871
- * Symbol identifier (e.g., ticker code)
4872
- */
4873
- symbol: string;
4874
5475
  };
4875
5476
 
4876
- export type SymbolControllerGetSymbolDataResponse = unknown;
5477
+ export type FileImportControllerImportFileResponse = ImportResultDto;
4877
5478
 
4878
- export type SymbolControllerGatherSymbolForDateData = {
4879
- /**
4880
- * Data source provider
4881
- */
4882
- dataSource:
4883
- | 'ALPHA_VANTAGE'
4884
- | 'EOD_HISTORICAL_DATA'
4885
- | 'FINANCIAL_MODELING_PREP'
4886
- | 'MANUAL'
4887
- | 'RAPID_API'
4888
- | 'YAHOO'
4889
- | 'COINGECKO'
4890
- | 'TUSHARE'
4891
- | 'BLOOMBERG'
4892
- | 'CSI'
4893
- | 'STOOQ'
4894
- | 'TRADING_VIEW';
5479
+ export type FileImportControllerIdentifyFileData = {
4895
5480
  /**
4896
- * Date in ISO 8601 format (YYYY-MM-DD)
5481
+ * File to identify
4897
5482
  */
4898
- dateString: string;
5483
+ formData: FileImportDto;
4899
5484
  /**
4900
- * Region code (cn, us, de)
5485
+ * Region code for tenant context
4901
5486
  */
4902
5487
  region: 'cn' | 'us' | 'de';
4903
- /**
4904
- * Symbol identifier (e.g., ticker code)
4905
- */
4906
- symbol: string;
4907
5488
  };
4908
5489
 
4909
- export type SymbolControllerGatherSymbolForDateResponse = unknown;
5490
+ export type FileImportControllerIdentifyFileResponse = IdentifyResultDto;
4910
5491
 
4911
- export type SymbolControllerData = {
5492
+ export type FileImportControllerImportBeancountData = {
4912
5493
  /**
4913
- * Region code (cn, us, de)
5494
+ * Beancount file to import
4914
5495
  */
4915
- region: 'cn' | 'us' | 'de';
4916
- };
4917
-
4918
- export type SymbolControllerResponse = unknown;
4919
-
4920
- export type CacheControllerFlushCacheData = {
5496
+ formData: FileImportDto;
4921
5497
  /**
4922
- * Region code (cn, us, de)
5498
+ * Region code for tenant context
4923
5499
  */
4924
5500
  region: 'cn' | 'us' | 'de';
4925
5501
  };
4926
5502
 
4927
- export type CacheControllerFlushCacheResponse = unknown;
5503
+ export type FileImportControllerImportBeancountResponse = {
5504
+ imported?: number;
5505
+ skipped?: number;
5506
+ failed?: number;
5507
+ accountsCreated?: number;
5508
+ errors?: Array<{
5509
+ [key: string]: unknown;
5510
+ }>;
5511
+ };
4928
5512
 
4929
- export type DashboardControllerGetNetWorthData = {
5513
+ export type ImporterConfigControllerGetConfigData = {
4930
5514
  /**
4931
- * Date for balance calculation (ISO 8601 format)
5515
+ * Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
4932
5516
  */
4933
- date?: string;
5517
+ importerId: string;
4934
5518
  /**
4935
- * Region code (cn, us, de)
5519
+ * Region code for tenant context
4936
5520
  */
4937
5521
  region: 'cn' | 'us' | 'de';
4938
5522
  };
4939
5523
 
4940
- export type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5524
+ export type ImporterConfigControllerGetConfigResponse = ImporterConfigDto;
4941
5525
 
4942
- export type DashboardControllerGetAccountsData = {
5526
+ export type ImporterConfigControllerUpdateConfigData = {
4943
5527
  /**
4944
- * Date for balance calculation (ISO 8601 format)
5528
+ * Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
4945
5529
  */
4946
- date?: string;
5530
+ importerId: string;
4947
5531
  /**
4948
- * Grouping strategy
5532
+ * Region code for tenant context
4949
5533
  */
4950
- groupBy?: 'platform' | 'assetClass';
5534
+ region: 'cn' | 'us' | 'de';
4951
5535
  /**
4952
- * Region code (cn, us, de)
5536
+ * Partial configuration update. Only provided fields will be updated.
4953
5537
  */
4954
- region: 'cn' | 'us' | 'de';
5538
+ requestBody: UpdateImporterConfigDto;
4955
5539
  };
4956
5540
 
4957
- export type DashboardControllerGetAccountsResponse =
4958
- | AccountsResponseDto
4959
- | AssetClassAccountsResponseDto;
5541
+ export type ImporterConfigControllerUpdateConfigResponse = ImporterConfigDto;
4960
5542
 
4961
- export type DashboardControllerGetCashFlowData = {
5543
+ export type ImporterConfigControllerResetConfigData = {
4962
5544
  /**
4963
- * Period in YYYY-MM format
5545
+ * Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
4964
5546
  */
4965
- period: string;
5547
+ importerId: string;
4966
5548
  /**
4967
- * Region code (cn, us, de)
5549
+ * Region code for tenant context
4968
5550
  */
4969
5551
  region: 'cn' | 'us' | 'de';
4970
5552
  };
4971
5553
 
4972
- export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5554
+ export type ImporterConfigControllerResetConfigResponse = ImporterConfigDto;
4973
5555
 
4974
- export type ReportingControllerGetPortfolioTrendsData = {
4975
- /**
4976
- * Data granularity
4977
- */
4978
- granularity?: 'day' | 'week' | 'month';
4979
- /**
4980
- * Time period
4981
- */
4982
- period?: '1m' | '3m' | '6m' | '1y';
4983
- /**
4984
- * Region code (cn, us, de)
4985
- */
4986
- region: 'cn' | 'us' | 'de';
5556
+ export type PlatformControllerFindAllResponse = unknown;
5557
+
5558
+ export type PlatformControllerCreateData = {
5559
+ requestBody: CreatePlatformDto;
4987
5560
  };
4988
5561
 
4989
- export type ReportingControllerGetPortfolioTrendsResponse =
4990
- PortfolioTrendsResponseDto;
5562
+ export type PlatformControllerCreateResponse = unknown;
4991
5563
 
4992
- export type ReportingControllerGenerateSnapshotData = {
4993
- /**
4994
- * Region code (cn, us, de)
4995
- */
4996
- region: 'cn' | 'us' | 'de';
5564
+ export type PlatformControllerGetPlatformListResponse = unknown;
5565
+
5566
+ export type PlatformControllerMatchPlatformsData = {
4997
5567
  /**
4998
- * Optional date (defaults to today)
5568
+ * Search query — Chinese name, English name, or abbreviation
4999
5569
  */
5000
- requestBody: GenerateSnapshotBody;
5001
- };
5002
-
5003
- export type ReportingControllerGenerateSnapshotResponse =
5004
- GenerateSnapshotResponse;
5005
-
5006
- export type ReportingControllerBackfillSnapshotsData = {
5570
+ q: string;
5007
5571
  /**
5008
- * Region code (cn, us, de)
5572
+ * Region code for category override lookup
5009
5573
  */
5010
- region: 'cn' | 'us' | 'de';
5011
- requestBody: BackfillSnapshotsBody;
5574
+ region?: string;
5012
5575
  };
5013
5576
 
5014
- export type ReportingControllerBackfillSnapshotsResponse =
5015
- BackfillSnapshotsResponse;
5577
+ export type PlatformControllerMatchPlatformsResponse = unknown;
5016
5578
 
5017
- export type ApiKeysControllerData = {
5579
+ export type PlatformControllerUpdateData = {
5018
5580
  /**
5019
- * Region code (cn, us, de)
5581
+ * Platform ID
5020
5582
  */
5021
- region: 'cn' | 'us' | 'de';
5583
+ id: string;
5584
+ requestBody: UpdatePlatformDto;
5022
5585
  };
5023
5586
 
5024
- export type ApiKeysControllerResponse = unknown;
5587
+ export type PlatformControllerUpdateResponse = unknown;
5025
5588
 
5026
- export type AuthControllerAccessTokenLoginData = {
5589
+ export type PlatformControllerDeleteData = {
5027
5590
  /**
5028
- * Region code (cn, us, de)
5591
+ * Platform ID
5029
5592
  */
5030
- region: 'cn' | 'us' | 'de';
5031
- requestBody: AnonymousLoginDto;
5593
+ id: string;
5032
5594
  };
5033
5595
 
5034
- export type AuthControllerAccessTokenLoginResponse = unknown;
5596
+ export type PlatformControllerDeleteResponse = void;
5035
5597
 
5036
- export type ExchangeRateControllerGetExchangeRateData = {
5037
- /**
5038
- * Date in ISO format (YYYY-MM-DD)
5039
- */
5040
- dateString: string;
5598
+ export type ProviderSyncControllerSyncData = {
5041
5599
  /**
5042
- * Region code (cn, us, de)
5600
+ * Provider name
5043
5601
  */
5044
- region: 'cn' | 'us' | 'de';
5602
+ providerName:
5603
+ | 'plaid'
5604
+ | 'teller'
5605
+ | 'truelayer'
5606
+ | 'gocardless'
5607
+ | 'simplefin'
5608
+ | 'yodlee'
5609
+ | 'beancount-direct'
5610
+ | 'parsed-bill';
5045
5611
  /**
5046
- * Currency pair symbol (e.g., USDCNY, EURUSD)
5612
+ * Region code
5047
5613
  */
5048
- symbol: string;
5614
+ region: unknown;
5615
+ requestBody: ProviderSyncDto;
5049
5616
  };
5050
5617
 
5051
- export type ExchangeRateControllerGetExchangeRateResponse = unknown;
5618
+ export type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
5052
5619
 
5053
- export type HealthControllerGetHealthData = {
5620
+ export type ProviderSyncControllerGetSupportedProvidersData = {
5054
5621
  /**
5055
- * Region code (cn, us, de)
5622
+ * Region code for tenant context
5056
5623
  */
5057
5624
  region: 'cn' | 'us' | 'de';
5058
5625
  };
5059
5626
 
5060
- export type HealthControllerGetHealthResponse = unknown;
5627
+ export type ProviderSyncControllerGetSupportedProvidersResponse =
5628
+ SupportedProvidersResponseDto;
5061
5629
 
5062
- export type HealthControllerCheckDatabaseData = {
5630
+ export type ProviderSyncControllerIsProviderSupportedData = {
5063
5631
  /**
5064
- * Region code (cn, us, de)
5632
+ * Provider name to check
5633
+ */
5634
+ providerName: string;
5635
+ /**
5636
+ * Region code for tenant context
5065
5637
  */
5066
5638
  region: 'cn' | 'us' | 'de';
5067
5639
  };
5068
5640
 
5069
- export type HealthControllerCheckDatabaseResponse = unknown;
5641
+ export type ProviderSyncControllerIsProviderSupportedResponse = unknown;
5070
5642
 
5071
- export type HealthControllerCheckRedisData = {
5643
+ export type TelemetryControllerReportTelemetryData = {
5072
5644
  /**
5073
- * Region code (cn, us, de)
5645
+ * Region code for tenant context
5074
5646
  */
5075
5647
  region: 'cn' | 'us' | 'de';
5648
+ requestBody: ParserTelemetryReportDto;
5076
5649
  };
5077
5650
 
5078
- export type HealthControllerCheckRedisResponse = unknown;
5651
+ export type TelemetryControllerReportTelemetryResponse = unknown;
5079
5652
 
5080
- export type HealthControllerGetCircuitBreakersHealthData = {
5653
+ export type NlpControllerProcessNaturalLanguageData = {
5081
5654
  /**
5082
- * Region code (cn, us, de)
5655
+ * Region code for tenant context
5083
5656
  */
5084
5657
  region: 'cn' | 'us' | 'de';
5658
+ /**
5659
+ * Natural language transaction input with optional session ID
5660
+ */
5661
+ requestBody: ProcessNlpDto;
5085
5662
  };
5086
5663
 
5087
- export type HealthControllerGetCircuitBreakersHealthResponse = unknown;
5664
+ export type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5088
5665
 
5089
- export type HealthControllerResetCircuitBreakerData = {
5666
+ export type NlpControllerClearSessionData = {
5090
5667
  /**
5091
- * Circuit breaker name to reset
5668
+ * Region code for tenant context
5092
5669
  */
5093
- name: string;
5670
+ region: 'cn' | 'us' | 'de';
5094
5671
  /**
5095
- * Region code (cn, us, de)
5672
+ * Specific session ID to clear (defaults to user session)
5096
5673
  */
5097
- region: 'cn' | 'us' | 'de';
5674
+ sessionId?: string;
5098
5675
  };
5099
5676
 
5100
- export type HealthControllerResetCircuitBreakerResponse = unknown;
5677
+ export type NlpControllerClearSessionResponse = void;
5101
5678
 
5102
- export type HealthControllerGetMetricsData = {
5679
+ export type NlpControllerGetSessionData = {
5103
5680
  /**
5104
- * Region code (cn, us, de)
5681
+ * Region code for tenant context
5105
5682
  */
5106
5683
  region: 'cn' | 'us' | 'de';
5684
+ /**
5685
+ * Specific session ID to get (defaults to user session)
5686
+ */
5687
+ sessionId?: string;
5107
5688
  };
5108
5689
 
5109
- export type HealthControllerGetMetricsResponse = unknown;
5690
+ export type NlpControllerGetSessionResponse = unknown;
5110
5691
 
5111
- export type HealthControllerGetHealthOfDataEnhancerData = {
5692
+ export type DashboardControllerGetNetWorthData = {
5112
5693
  /**
5113
- * Data enhancer name
5694
+ * Date for balance calculation (ISO 8601 format)
5114
5695
  */
5115
- name: string;
5696
+ date?: string;
5116
5697
  /**
5117
- * Region code (cn, us, de)
5698
+ * Region code for tenant context
5118
5699
  */
5119
5700
  region: 'cn' | 'us' | 'de';
5120
5701
  };
5121
5702
 
5122
- export type HealthControllerGetHealthOfDataEnhancerResponse = unknown;
5703
+ export type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5123
5704
 
5124
- export type HealthControllerCheckDataProvidersData = {
5705
+ export type DashboardControllerGetAccountsData = {
5125
5706
  /**
5126
- * Region code (cn, us, de)
5707
+ * Date for balance calculation (ISO 8601 format)
5127
5708
  */
5128
- region: 'cn' | 'us' | 'de';
5129
- };
5130
-
5131
- export type HealthControllerCheckDataProvidersResponse = unknown;
5132
-
5133
- export type HealthControllerGetHealthOfDataProviderData = {
5709
+ date?: string;
5134
5710
  /**
5135
- * Data source identifier
5711
+ * Grouping strategy
5136
5712
  */
5137
- dataSource: string;
5713
+ groupBy?: 'platform' | 'assetClass';
5138
5714
  /**
5139
- * Region code (cn, us, de)
5715
+ * Region code for tenant context
5140
5716
  */
5141
5717
  region: 'cn' | 'us' | 'de';
5142
5718
  };
5143
5719
 
5144
- export type HealthControllerGetHealthOfDataProviderResponse = unknown;
5720
+ export type DashboardControllerGetAccountsResponse =
5721
+ | AccountsResponseDto
5722
+ | AssetClassAccountsResponseDto;
5145
5723
 
5146
- export type InfoControllerGetInfoData = {
5724
+ export type DashboardControllerGetCashFlowData = {
5147
5725
  /**
5148
- * Region code (cn, us, de)
5726
+ * Period in YYYY-MM format
5727
+ */
5728
+ period: string;
5729
+ /**
5730
+ * Region code for tenant context
5149
5731
  */
5150
5732
  region: 'cn' | 'us' | 'de';
5151
5733
  };
5152
5734
 
5153
- export type InfoControllerGetInfoResponse = unknown;
5735
+ export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5154
5736
 
5155
- export type LogoControllerGetLogoByDataSourceAndSymbolData = {
5737
+ export type ReportingControllerGetPortfolioTrendsData = {
5156
5738
  /**
5157
- * Data source identifier (e.g., YAHOO, COINGECKO)
5739
+ * Data granularity
5158
5740
  */
5159
- dataSource: string;
5741
+ granularity?: 'day' | 'week' | 'month';
5160
5742
  /**
5161
- * Region code (cn, us, de)
5743
+ * Time period
5162
5744
  */
5163
- region: 'cn' | 'us' | 'de';
5745
+ period?: '1m' | '3m' | '6m' | '1y';
5164
5746
  /**
5165
- * Asset symbol (e.g., AAPL, BTC)
5747
+ * Region code for tenant context
5166
5748
  */
5167
- symbol: string;
5749
+ region: 'cn' | 'us' | 'de';
5168
5750
  };
5169
5751
 
5170
- export type LogoControllerGetLogoByDataSourceAndSymbolResponse = unknown;
5752
+ export type ReportingControllerGetPortfolioTrendsResponse =
5753
+ PortfolioTrendsResponseDto;
5171
5754
 
5172
- export type LogoControllerGetLogoByUrlData = {
5755
+ export type ReportingControllerGenerateSnapshotData = {
5173
5756
  /**
5174
- * Region code (cn, us, de)
5757
+ * Region code for tenant context
5175
5758
  */
5176
5759
  region: 'cn' | 'us' | 'de';
5177
5760
  /**
5178
- * Website URL to fetch favicon from
5761
+ * Optional date (defaults to today)
5179
5762
  */
5180
- url: string;
5763
+ requestBody: GenerateSnapshotBody;
5181
5764
  };
5182
5765
 
5183
- export type LogoControllerGetLogoByUrlResponse = unknown;
5766
+ export type ReportingControllerGenerateSnapshotResponse =
5767
+ GenerateSnapshotResponse;
5184
5768
 
5185
- export type MarketDataControllerGetMarketDataBySymbolData = {
5769
+ export type ReportingControllerBackfillSnapshotsData = {
5186
5770
  /**
5187
- * Data source provider
5771
+ * Region code for tenant context
5188
5772
  */
5189
- dataSource:
5190
- | 'ALPHA_VANTAGE'
5191
- | 'EOD_HISTORICAL_DATA'
5192
- | 'FINANCIAL_MODELING_PREP'
5193
- | 'MANUAL'
5194
- | 'RAPID_API'
5195
- | 'YAHOO'
5196
- | 'COINGECKO'
5197
- | 'TUSHARE'
5198
- | 'BLOOMBERG'
5199
- | 'CSI'
5200
- | 'STOOQ'
5201
- | 'TRADING_VIEW';
5773
+ region: 'cn' | 'us' | 'de';
5774
+ requestBody: BackfillSnapshotsBody;
5775
+ };
5776
+
5777
+ export type ReportingControllerBackfillSnapshotsResponse =
5778
+ BackfillSnapshotsResponse;
5779
+
5780
+ export type ApiKeysControllerCreateApiKeyResponse = unknown;
5781
+
5782
+ export type AuthControllerAccessTokenLoginData = {
5783
+ requestBody: AnonymousLoginDto;
5784
+ };
5785
+
5786
+ export type AuthControllerAccessTokenLoginResponse = unknown;
5787
+
5788
+ export type CacheControllerFlushCacheResponse = unknown;
5789
+
5790
+ export type ExchangeRateControllerGetExchangeRateData = {
5202
5791
  /**
5203
- * Region code (cn, us, de)
5792
+ * Date in ISO format (YYYY-MM-DD)
5204
5793
  */
5205
- region: 'cn' | 'us' | 'de';
5794
+ dateString: string;
5206
5795
  /**
5207
- * Symbol code
5796
+ * Currency pair symbol (e.g., USDCNY, EURUSD)
5208
5797
  */
5209
5798
  symbol: string;
5210
5799
  };
5211
5800
 
5212
- export type MarketDataControllerGetMarketDataBySymbolResponse = unknown;
5801
+ export type ExchangeRateControllerGetExchangeRateResponse = unknown;
5802
+
5803
+ export type HealthControllerGetHealthResponse = unknown;
5804
+
5805
+ export type HealthControllerCheckDatabaseResponse = unknown;
5806
+
5807
+ export type HealthControllerCheckOpenBbResponse = unknown;
5808
+
5809
+ export type HealthControllerCheckRedisResponse = unknown;
5810
+
5811
+ export type HealthControllerGetCircuitBreakersHealthResponse = unknown;
5213
5812
 
5214
- export type MarketDataControllerData = {
5813
+ export type HealthControllerResetCircuitBreakerData = {
5215
5814
  /**
5216
- * Region code (cn, us, de)
5815
+ * Circuit breaker name to reset
5217
5816
  */
5218
- region: 'cn' | 'us' | 'de';
5817
+ name: string;
5219
5818
  };
5220
5819
 
5221
- export type MarketDataControllerResponse = unknown;
5820
+ export type HealthControllerResetCircuitBreakerResponse = unknown;
5821
+
5822
+ export type HealthControllerGetMetricsResponse = unknown;
5823
+
5824
+ export type InfoControllerGetInfoResponse = unknown;
5222
5825
 
5223
5826
  export type $OpenApiTs = {
5224
5827
  '/api/v1/{region}/bean/accounts': {
@@ -5328,6 +5931,39 @@ export type $OpenApiTs = {
5328
5931
  };
5329
5932
  };
5330
5933
  };
5934
+ '/api/v1/{region}/bean/account-standards': {
5935
+ get: {
5936
+ req: AccountStandardsControllerGetTemplatesData;
5937
+ res: {
5938
+ /**
5939
+ * Account templates retrieved successfully
5940
+ */
5941
+ 200: AccountStandardListResponseDto;
5942
+ };
5943
+ };
5944
+ };
5945
+ '/api/v1/{region}/bean/account-standards/template-metadata': {
5946
+ get: {
5947
+ req: AccountStandardsControllerGetTemplateMetadataData;
5948
+ res: {
5949
+ /**
5950
+ * Template metadata retrieved successfully
5951
+ */
5952
+ 200: TemplateMetadataResponseDto;
5953
+ };
5954
+ };
5955
+ };
5956
+ '/api/v1/{region}/bean/account-standards/regions': {
5957
+ get: {
5958
+ req: AccountStandardsControllerGetRegionsData;
5959
+ res: {
5960
+ /**
5961
+ * Regions metadata retrieved successfully
5962
+ */
5963
+ 200: RegionsMetadataResponseDto;
5964
+ };
5965
+ };
5966
+ };
5331
5967
  '/api/v1/{region}/bean/transactions': {
5332
5968
  post: {
5333
5969
  req: TransactionControllerCreateData;
@@ -5361,6 +5997,10 @@ export type $OpenApiTs = {
5361
5997
  * Transaction list
5362
5998
  */
5363
5999
  200: TransactionListResponseDto;
6000
+ /**
6001
+ * Validation failed
6002
+ */
6003
+ 400: ApiProblemResponseDto;
5364
6004
  /**
5365
6005
  * Authentication required
5366
6006
  */
@@ -5370,9 +6010,20 @@ export type $OpenApiTs = {
5370
6010
  };
5371
6011
  '/api/v1/{region}/bean/transactions/batch': {
5372
6012
  post: {
5373
- req: TransactionControllerData;
6013
+ req: TransactionControllerCreateBatchData;
5374
6014
  res: {
5375
- 201: unknown;
6015
+ /**
6016
+ * Transactions processed
6017
+ */
6018
+ 201: BatchTransactionResponseDto;
6019
+ /**
6020
+ * Invalid input
6021
+ */
6022
+ 400: ApiProblemResponseDto;
6023
+ /**
6024
+ * Authentication required
6025
+ */
6026
+ 401: ApiProblemResponseDto;
5376
6027
  };
5377
6028
  };
5378
6029
  };
@@ -5416,31 +6067,24 @@ export type $OpenApiTs = {
5416
6067
  };
5417
6068
  };
5418
6069
  delete: {
5419
- req: TransactionController1Data;
6070
+ req: TransactionControllerDeleteData;
5420
6071
  res: {
6072
+ /**
6073
+ * Transaction voided successfully
6074
+ */
5421
6075
  204: void;
5422
- };
5423
- };
5424
- };
5425
- '/api/v1/{region}/bean/account-standards': {
5426
- get: {
5427
- req: AccountStandardsControllerGetTemplatesData;
5428
- res: {
5429
6076
  /**
5430
- * Account templates retrieved successfully
6077
+ * Transaction already voided
5431
6078
  */
5432
- 200: AccountStandardListResponseDto;
5433
- };
5434
- };
5435
- };
5436
- '/api/v1/{region}/bean/account-standards/regions': {
5437
- get: {
5438
- req: AccountStandardsControllerGetRegionsData;
5439
- res: {
6079
+ 400: ApiProblemResponseDto;
5440
6080
  /**
5441
- * Regions metadata retrieved successfully
6081
+ * Authentication required
5442
6082
  */
5443
- 200: RegionsMetadataResponseDto;
6083
+ 401: ApiProblemResponseDto;
6084
+ /**
6085
+ * Transaction not found
6086
+ */
6087
+ 404: ApiProblemResponseDto;
5444
6088
  };
5445
6089
  };
5446
6090
  };
@@ -5508,33 +6152,44 @@ export type $OpenApiTs = {
5508
6152
  };
5509
6153
  '/api/v1/{region}/bean/reviews/{id}/resolve': {
5510
6154
  post: {
5511
- req: ReviewControllerData;
6155
+ req: ReviewControllerResolveData;
5512
6156
  res: {
5513
- 201: unknown;
6157
+ 200: ResolveResultDto;
5514
6158
  };
5515
6159
  };
5516
6160
  };
5517
6161
  '/api/v1/{region}/bean/reviews/{id}/undo': {
5518
6162
  post: {
5519
- req: ReviewController1Data;
6163
+ req: ReviewControllerUndoData;
5520
6164
  res: {
5521
- 201: unknown;
6165
+ 200: UndoResultDto;
5522
6166
  };
5523
6167
  };
5524
6168
  };
5525
6169
  '/api/v1/{region}/bean/reviews/batch-resolve': {
5526
6170
  post: {
5527
- req: ReviewController2Data;
6171
+ req: ReviewControllerBatchResolveData;
5528
6172
  res: {
5529
- 201: unknown;
6173
+ 200: BatchResolveResultDto;
5530
6174
  };
5531
6175
  };
5532
6176
  };
5533
6177
  '/api/v1/bean/payees': {
5534
6178
  post: {
5535
- req: PayeeControllerData;
6179
+ req: PayeeControllerCreateData;
5536
6180
  res: {
5537
- 201: unknown;
6181
+ /**
6182
+ * Payee created successfully
6183
+ */
6184
+ 201: PayeeResponseDto;
6185
+ /**
6186
+ * Invalid input data
6187
+ */
6188
+ 400: ApiProblemResponseDto;
6189
+ /**
6190
+ * Payee already exists
6191
+ */
6192
+ 409: ApiProblemResponseDto;
5538
6193
  };
5539
6194
  };
5540
6195
  get: {
@@ -5588,23 +6243,56 @@ export type $OpenApiTs = {
5588
6243
  };
5589
6244
  };
5590
6245
  put: {
5591
- req: PayeeController1Data;
6246
+ req: PayeeControllerUpdateData;
5592
6247
  res: {
5593
- 200: unknown;
6248
+ /**
6249
+ * Payee updated successfully
6250
+ */
6251
+ 200: PayeeResponseDto;
6252
+ /**
6253
+ * Invalid input data
6254
+ */
6255
+ 400: ApiProblemResponseDto;
6256
+ /**
6257
+ * Payee not found
6258
+ */
6259
+ 404: ApiProblemResponseDto;
5594
6260
  };
5595
6261
  };
5596
6262
  delete: {
5597
- req: PayeeController2Data;
6263
+ req: PayeeControllerDeleteData;
5598
6264
  res: {
6265
+ /**
6266
+ * Payee deleted successfully
6267
+ */
5599
6268
  204: void;
6269
+ /**
6270
+ * Payee not found
6271
+ */
6272
+ 404: ApiProblemResponseDto;
5600
6273
  };
5601
6274
  };
5602
6275
  };
5603
6276
  '/api/v1/admin/payee-profiles': {
5604
6277
  post: {
5605
- req: PayeeProfileAdminControllerData;
6278
+ req: PayeeProfileAdminControllerCreateData;
5606
6279
  res: {
5607
- 201: unknown;
6280
+ /**
6281
+ * Payee profile created successfully
6282
+ */
6283
+ 201: PayeeProfileResponseDto;
6284
+ /**
6285
+ * Validation failed
6286
+ */
6287
+ 400: ApiProblemResponseDto;
6288
+ /**
6289
+ * Admin access required
6290
+ */
6291
+ 403: ApiProblemResponseDto;
6292
+ /**
6293
+ * Payee profile already exists
6294
+ */
6295
+ 409: ApiProblemResponseDto;
5608
6296
  };
5609
6297
  };
5610
6298
  get: {
@@ -5640,37 +6328,96 @@ export type $OpenApiTs = {
5640
6328
  };
5641
6329
  };
5642
6330
  put: {
5643
- req: PayeeProfileAdminController1Data;
6331
+ req: PayeeProfileAdminControllerUpdateData;
5644
6332
  res: {
5645
- 200: unknown;
6333
+ /**
6334
+ * Payee profile updated successfully
6335
+ */
6336
+ 200: PayeeProfileResponseDto;
6337
+ /**
6338
+ * Admin access required
6339
+ */
6340
+ 403: ApiProblemResponseDto;
6341
+ /**
6342
+ * Payee profile not found
6343
+ */
6344
+ 404: ApiProblemResponseDto;
5646
6345
  };
5647
6346
  };
5648
6347
  delete: {
5649
- req: PayeeProfileAdminController2Data;
6348
+ req: PayeeProfileAdminControllerDeleteData;
5650
6349
  res: {
6350
+ /**
6351
+ * Payee profile deleted successfully
6352
+ */
5651
6353
  204: void;
6354
+ /**
6355
+ * Admin access required
6356
+ */
6357
+ 403: ApiProblemResponseDto;
6358
+ /**
6359
+ * Payee profile not found
6360
+ */
6361
+ 404: ApiProblemResponseDto;
6362
+ /**
6363
+ * Payee profile is in use and cannot be deleted
6364
+ */
6365
+ 409: ApiProblemResponseDto;
5652
6366
  };
5653
6367
  };
5654
6368
  };
5655
6369
  '/api/v1/admin/payee-profiles/{id}/verify': {
5656
6370
  post: {
5657
- req: PayeeProfileAdminController3Data;
6371
+ req: PayeeProfileAdminControllerVerifyData;
5658
6372
  res: {
5659
- 201: unknown;
6373
+ /**
6374
+ * Payee profile verified successfully
6375
+ */
6376
+ 201: PayeeProfileResponseDto;
6377
+ /**
6378
+ * Admin access required
6379
+ */
6380
+ 403: ApiProblemResponseDto;
6381
+ /**
6382
+ * Payee profile not found
6383
+ */
6384
+ 404: ApiProblemResponseDto;
5660
6385
  };
5661
6386
  };
5662
6387
  delete: {
5663
- req: PayeeProfileAdminController4Data;
6388
+ req: PayeeProfileAdminControllerUnverifyData;
5664
6389
  res: {
5665
- 200: unknown;
6390
+ /**
6391
+ * Payee profile unverified successfully
6392
+ */
6393
+ 200: PayeeProfileResponseDto;
6394
+ /**
6395
+ * Admin access required
6396
+ */
6397
+ 403: ApiProblemResponseDto;
6398
+ /**
6399
+ * Payee profile not found
6400
+ */
6401
+ 404: ApiProblemResponseDto;
5666
6402
  };
5667
6403
  };
5668
6404
  };
5669
6405
  '/api/v1/{region}/bean/commodities': {
5670
6406
  post: {
5671
- req: CommodityControllerData;
6407
+ req: CommodityControllerCreateData;
5672
6408
  res: {
5673
- 201: unknown;
6409
+ /**
6410
+ * Commodity created successfully
6411
+ */
6412
+ 201: CommodityResponseDto;
6413
+ /**
6414
+ * Invalid input data
6415
+ */
6416
+ 400: ApiProblemResponseDto;
6417
+ /**
6418
+ * Commodity already exists
6419
+ */
6420
+ 409: ApiProblemResponseDto;
5674
6421
  };
5675
6422
  };
5676
6423
  get: {
@@ -5698,39 +6445,74 @@ export type $OpenApiTs = {
5698
6445
  };
5699
6446
  };
5700
6447
  put: {
5701
- req: CommodityController1Data;
6448
+ req: CommodityControllerUpdateData;
5702
6449
  res: {
5703
- 200: unknown;
6450
+ /**
6451
+ * Commodity updated successfully
6452
+ */
6453
+ 200: CommodityResponseDto;
6454
+ /**
6455
+ * Invalid input data
6456
+ */
6457
+ 400: ApiProblemResponseDto;
6458
+ /**
6459
+ * Commodity not found
6460
+ */
6461
+ 404: ApiProblemResponseDto;
5704
6462
  };
5705
6463
  };
5706
6464
  delete: {
5707
- req: CommodityController2Data;
6465
+ req: CommodityControllerDeleteData;
5708
6466
  res: {
6467
+ /**
6468
+ * Commodity deleted successfully
6469
+ */
5709
6470
  204: void;
6471
+ /**
6472
+ * Commodity not found
6473
+ */
6474
+ 404: ApiProblemResponseDto;
5710
6475
  };
5711
6476
  };
5712
6477
  };
5713
6478
  '/api/v1/{region}/bean/commodities/{symbol}/ensure': {
5714
6479
  post: {
5715
- req: CommodityController3Data;
6480
+ req: CommodityControllerGetOrCreateData;
5716
6481
  res: {
5717
- 201: unknown;
6482
+ /**
6483
+ * Commodity retrieved or created
6484
+ */
6485
+ 200: CommodityResponseDto;
5718
6486
  };
5719
6487
  };
5720
6488
  };
5721
6489
  '/api/v1/{region}/bean/commodities/bulk': {
5722
6490
  post: {
5723
- req: CommodityController4Data;
6491
+ req: CommodityControllerBulkCreateData;
5724
6492
  res: {
5725
- 201: unknown;
6493
+ /**
6494
+ * Commodities created successfully
6495
+ */
6496
+ 201: Array<CommodityResponseDto>;
5726
6497
  };
5727
6498
  };
5728
6499
  };
5729
6500
  '/api/v1/{region}/bean/recurring-rules': {
5730
6501
  post: {
5731
- req: RecurringRuleControllerData;
6502
+ req: RecurringRuleControllerCreateData;
5732
6503
  res: {
5733
- 201: unknown;
6504
+ /**
6505
+ * Rule created successfully
6506
+ */
6507
+ 201: RecurringRuleResponseDto;
6508
+ /**
6509
+ * Invalid input data (e.g., autoCreate without accounts)
6510
+ */
6511
+ 400: unknown;
6512
+ /**
6513
+ * Rule with same name already exists
6514
+ */
6515
+ 409: unknown;
5734
6516
  };
5735
6517
  };
5736
6518
  get: {
@@ -5745,9 +6527,20 @@ export type $OpenApiTs = {
5745
6527
  };
5746
6528
  '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}': {
5747
6529
  post: {
5748
- req: RecurringRuleController1Data;
6530
+ req: RecurringRuleControllerCreateFromTransactionData;
5749
6531
  res: {
5750
- 201: unknown;
6532
+ /**
6533
+ * Rule created successfully
6534
+ */
6535
+ 201: RecurringRuleResponseDto;
6536
+ /**
6537
+ * Transaction not found
6538
+ */
6539
+ 404: ApiProblemResponseDto;
6540
+ /**
6541
+ * Rule with same name already exists or transaction already linked
6542
+ */
6543
+ 409: ApiProblemResponseDto;
5751
6544
  };
5752
6545
  };
5753
6546
  };
@@ -5766,15 +6559,33 @@ export type $OpenApiTs = {
5766
6559
  };
5767
6560
  };
5768
6561
  patch: {
5769
- req: RecurringRuleController2Data;
6562
+ req: RecurringRuleControllerUpdateData;
5770
6563
  res: {
5771
- 200: unknown;
6564
+ /**
6565
+ * Rule updated successfully
6566
+ */
6567
+ 200: RecurringRuleResponseDto;
6568
+ /**
6569
+ * Invalid input data
6570
+ */
6571
+ 400: unknown;
6572
+ /**
6573
+ * Rule not found
6574
+ */
6575
+ 404: unknown;
5772
6576
  };
5773
6577
  };
5774
6578
  delete: {
5775
- req: RecurringRuleController3Data;
6579
+ req: RecurringRuleControllerDeleteData;
5776
6580
  res: {
6581
+ /**
6582
+ * Rule deleted successfully
6583
+ */
5777
6584
  204: void;
6585
+ /**
6586
+ * Rule not found
6587
+ */
6588
+ 404: unknown;
5778
6589
  };
5779
6590
  };
5780
6591
  };
@@ -5832,37 +6643,96 @@ export type $OpenApiTs = {
5832
6643
  };
5833
6644
  '/api/v1/{region}/bean/expected-transactions/{id}/skip': {
5834
6645
  post: {
5835
- req: ExpectedTransactionControllerData;
6646
+ req: ExpectedTransactionControllerSkipData;
5836
6647
  res: {
5837
- 200: unknown;
6648
+ /**
6649
+ * Expected transaction skipped successfully
6650
+ */
6651
+ 200: ExpectedTransactionResponseDto;
6652
+ /**
6653
+ * Cannot skip - not in PENDING status
6654
+ */
6655
+ 400: unknown;
6656
+ /**
6657
+ * Expected transaction not found
6658
+ */
6659
+ 404: unknown;
5838
6660
  };
5839
6661
  };
5840
6662
  delete: {
5841
- req: ExpectedTransactionController1Data;
6663
+ req: ExpectedTransactionControllerUndoSkipData;
5842
6664
  res: {
5843
- 200: unknown;
6665
+ /**
6666
+ * Skip undone successfully
6667
+ */
6668
+ 200: ExpectedTransactionResponseDto;
6669
+ /**
6670
+ * Cannot undo - not in SKIPPED status
6671
+ */
6672
+ 400: unknown;
6673
+ /**
6674
+ * Expected transaction not found
6675
+ */
6676
+ 404: unknown;
5844
6677
  };
5845
6678
  };
5846
6679
  };
5847
6680
  '/api/v1/{region}/bean/expected-transactions/{id}/match': {
5848
6681
  post: {
5849
- req: ExpectedTransactionController2Data;
6682
+ req: ExpectedTransactionControllerConfirmMatchData;
5850
6683
  res: {
6684
+ /**
6685
+ * Match confirmed successfully
6686
+ */
5851
6687
  200: unknown;
6688
+ /**
6689
+ * Cannot match - not in PENDING status
6690
+ */
6691
+ 400: unknown;
6692
+ /**
6693
+ * Expected or actual transaction not found
6694
+ */
6695
+ 404: unknown;
6696
+ /**
6697
+ * Actual transaction already matched to another rule
6698
+ */
6699
+ 409: unknown;
5852
6700
  };
5853
6701
  };
5854
6702
  delete: {
5855
- req: ExpectedTransactionController3Data;
6703
+ req: ExpectedTransactionControllerUnmatchData;
5856
6704
  res: {
6705
+ /**
6706
+ * Match removed successfully
6707
+ */
5857
6708
  200: unknown;
6709
+ /**
6710
+ * Cannot unmatch - not in COMPLETED status
6711
+ */
6712
+ 400: unknown;
6713
+ /**
6714
+ * Expected transaction not found
6715
+ */
6716
+ 404: unknown;
5858
6717
  };
5859
6718
  };
5860
6719
  };
5861
6720
  '/api/v1/{region}/bean/expected-transactions/{id}/enter': {
5862
6721
  post: {
5863
- req: ExpectedTransactionController4Data;
6722
+ req: ExpectedTransactionControllerEnterNowData;
5864
6723
  res: {
6724
+ /**
6725
+ * Transaction created successfully
6726
+ */
5865
6727
  201: unknown;
6728
+ /**
6729
+ * Cannot enter - not in PENDING status or missing accounts
6730
+ */
6731
+ 400: unknown;
6732
+ /**
6733
+ * Expected transaction or accounts not found
6734
+ */
6735
+ 404: unknown;
5866
6736
  };
5867
6737
  };
5868
6738
  };
@@ -5879,9 +6749,24 @@ export type $OpenApiTs = {
5879
6749
  };
5880
6750
  '/api/v1/{region}/bean/transaction-rules': {
5881
6751
  post: {
5882
- req: TransactionRuleControllerData;
6752
+ req: TransactionRuleControllerCreateData;
5883
6753
  res: {
5884
- 201: unknown;
6754
+ /**
6755
+ * Rule updated successfully (upsert mode)
6756
+ */
6757
+ 200: TransactionRuleResponseDto;
6758
+ /**
6759
+ * Validation failed
6760
+ */
6761
+ 400: ApiProblemResponseDto;
6762
+ /**
6763
+ * Unauthorized
6764
+ */
6765
+ 401: ApiProblemResponseDto;
6766
+ /**
6767
+ * Resource conflict - another process is updating this rule
6768
+ */
6769
+ 409: ApiProblemResponseDto;
5885
6770
  };
5886
6771
  };
5887
6772
  get: {
@@ -5906,6 +6791,10 @@ export type $OpenApiTs = {
5906
6791
  * Validation result
5907
6792
  */
5908
6793
  200: ValidateRuleResponseDto;
6794
+ /**
6795
+ * Validation failed
6796
+ */
6797
+ 400: ApiProblemResponseDto;
5909
6798
  /**
5910
6799
  * Unauthorized
5911
6800
  */
@@ -5915,9 +6804,20 @@ export type $OpenApiTs = {
5915
6804
  };
5916
6805
  '/api/v1/{region}/bean/transaction-rules/bulk': {
5917
6806
  post: {
5918
- req: TransactionRuleController1Data;
6807
+ req: TransactionRuleControllerBulkCreateData;
5919
6808
  res: {
5920
- 201: unknown;
6809
+ /**
6810
+ * Bulk create completed
6811
+ */
6812
+ 201: BulkCreateRulesResponseDto;
6813
+ /**
6814
+ * Invalid bulk create data
6815
+ */
6816
+ 400: ApiProblemResponseDto;
6817
+ /**
6818
+ * Unauthorized
6819
+ */
6820
+ 401: ApiProblemResponseDto;
5921
6821
  };
5922
6822
  };
5923
6823
  };
@@ -5978,15 +6878,57 @@ export type $OpenApiTs = {
5978
6878
  };
5979
6879
  };
5980
6880
  put: {
5981
- req: TransactionRuleController2Data;
6881
+ req: TransactionRuleControllerUpdateData;
5982
6882
  res: {
5983
- 200: unknown;
6883
+ /**
6884
+ * Rule updated successfully
6885
+ */
6886
+ 200: TransactionRuleResponseDto;
6887
+ /**
6888
+ * Validation failed
6889
+ */
6890
+ 400: ApiProblemResponseDto;
6891
+ /**
6892
+ * Unauthorized
6893
+ */
6894
+ 401: ApiProblemResponseDto;
6895
+ /**
6896
+ * Forbidden - not owner of rule
6897
+ */
6898
+ 403: ApiProblemResponseDto;
6899
+ /**
6900
+ * Rule not found
6901
+ */
6902
+ 404: ApiProblemResponseDto;
6903
+ /**
6904
+ * Resource conflict - rule is being modified by another process
6905
+ */
6906
+ 409: ApiProblemResponseDto;
5984
6907
  };
5985
6908
  };
5986
6909
  delete: {
5987
- req: TransactionRuleController3Data;
6910
+ req: TransactionRuleControllerDeleteData;
5988
6911
  res: {
6912
+ /**
6913
+ * Rule deleted successfully
6914
+ */
5989
6915
  204: void;
6916
+ /**
6917
+ * Unauthorized
6918
+ */
6919
+ 401: ApiProblemResponseDto;
6920
+ /**
6921
+ * Forbidden - not owner of rule
6922
+ */
6923
+ 403: ApiProblemResponseDto;
6924
+ /**
6925
+ * Rule not found
6926
+ */
6927
+ 404: ApiProblemResponseDto;
6928
+ /**
6929
+ * Resource conflict - rule is being modified by another process
6930
+ */
6931
+ 409: ApiProblemResponseDto;
5990
6932
  };
5991
6933
  };
5992
6934
  };
@@ -6112,7 +7054,6 @@ export type $OpenApiTs = {
6112
7054
  };
6113
7055
  '/api/v1/users/asset-liability-summary': {
6114
7056
  get: {
6115
- req: UserControllerGetAssetLiabilitySummaryData;
6116
7057
  res: {
6117
7058
  /**
6118
7059
  * Summary retrieved successfully
@@ -6123,7 +7064,6 @@ export type $OpenApiTs = {
6123
7064
  };
6124
7065
  '/api/v1/admin/properties': {
6125
7066
  get: {
6126
- req: PropertyControllerGetAllData;
6127
7067
  res: {
6128
7068
  /**
6129
7069
  * Properties retrieved successfully
@@ -6163,15 +7103,48 @@ export type $OpenApiTs = {
6163
7103
  };
6164
7104
  };
6165
7105
  put: {
6166
- req: PropertyControllerData;
7106
+ req: PropertyControllerUpdateData;
6167
7107
  res: {
7108
+ /**
7109
+ * Property updated successfully
7110
+ */
6168
7111
  200: unknown;
7112
+ /**
7113
+ * Unauthorized
7114
+ */
7115
+ 401: unknown;
7116
+ /**
7117
+ * Forbidden - insufficient permissions
7118
+ */
7119
+ 403: unknown;
6169
7120
  };
6170
7121
  };
6171
7122
  delete: {
6172
- req: PropertyController1Data;
7123
+ req: PropertyControllerDeleteData;
6173
7124
  res: {
7125
+ /**
7126
+ * Property deleted successfully
7127
+ */
6174
7128
  204: void;
7129
+ /**
7130
+ * Unauthorized
7131
+ */
7132
+ 401: unknown;
7133
+ /**
7134
+ * Forbidden - insufficient permissions
7135
+ */
7136
+ 403: unknown;
7137
+ /**
7138
+ * Property not found
7139
+ */
7140
+ 404: unknown;
7141
+ };
7142
+ };
7143
+ };
7144
+ '/api/v1/{region}/bean/export/beancount': {
7145
+ get: {
7146
+ res: {
7147
+ 200: unknown;
6175
7148
  };
6176
7149
  };
6177
7150
  };
@@ -6244,36 +7217,149 @@ export type $OpenApiTs = {
6244
7217
  };
6245
7218
  };
6246
7219
  };
6247
- '/api/v1/{region}/bean/import/config/{importerId}': {
7220
+ '/api/v1/{region}/bean/import/beancount': {
7221
+ post: {
7222
+ req: FileImportControllerImportBeancountData;
7223
+ res: {
7224
+ /**
7225
+ * Beancount file imported successfully
7226
+ */
7227
+ 200: {
7228
+ imported?: number;
7229
+ skipped?: number;
7230
+ failed?: number;
7231
+ accountsCreated?: number;
7232
+ errors?: Array<{
7233
+ [key: string]: unknown;
7234
+ }>;
7235
+ };
7236
+ /**
7237
+ * Bad request - invalid file or no file uploaded
7238
+ */
7239
+ 400: ApiProblemResponseDto;
7240
+ };
7241
+ };
7242
+ };
7243
+ '/api/v1/{region}/bean/import/config/{importerId}': {
7244
+ get: {
7245
+ req: ImporterConfigControllerGetConfigData;
7246
+ res: {
7247
+ /**
7248
+ * Configuration retrieved successfully
7249
+ */
7250
+ 200: ImporterConfigDto;
7251
+ /**
7252
+ * Invalid input - Unsupported importer
7253
+ */
7254
+ 400: ApiProblemResponseDto;
7255
+ /**
7256
+ * Unauthorized - Authentication required
7257
+ */
7258
+ 401: ApiProblemResponseDto;
7259
+ };
7260
+ };
7261
+ put: {
7262
+ req: ImporterConfigControllerUpdateConfigData;
7263
+ res: {
7264
+ /**
7265
+ * Configuration updated successfully
7266
+ */
7267
+ 200: ImporterConfigDto;
7268
+ /**
7269
+ * Invalid input - Validation failed
7270
+ */
7271
+ 400: ApiProblemResponseDto;
7272
+ /**
7273
+ * Configuration not found
7274
+ */
7275
+ 404: ApiProblemResponseDto;
7276
+ };
7277
+ };
7278
+ };
7279
+ '/api/v1/{region}/bean/import/config/{importerId}/reset': {
7280
+ post: {
7281
+ req: ImporterConfigControllerResetConfigData;
7282
+ res: {
7283
+ /**
7284
+ * Configuration reset successfully
7285
+ */
7286
+ 200: ImporterConfigDto;
7287
+ /**
7288
+ * Invalid input - Unsupported importer
7289
+ */
7290
+ 400: ApiProblemResponseDto;
7291
+ };
7292
+ };
7293
+ };
7294
+ '/api/v1/bean/platforms': {
7295
+ get: {
7296
+ res: {
7297
+ /**
7298
+ * List of platforms with binding and account counts
7299
+ */
7300
+ 200: unknown;
7301
+ };
7302
+ };
7303
+ post: {
7304
+ req: PlatformControllerCreateData;
7305
+ res: {
7306
+ /**
7307
+ * Platform created successfully
7308
+ */
7309
+ 201: unknown;
7310
+ /**
7311
+ * Platform already exists
7312
+ */
7313
+ 409: unknown;
7314
+ };
7315
+ };
7316
+ };
7317
+ '/api/v1/bean/platforms/list': {
6248
7318
  get: {
6249
- req: ImporterConfigControllerGetConfigData;
6250
7319
  res: {
6251
7320
  /**
6252
- * Configuration retrieved successfully
6253
- */
6254
- 200: ImporterConfigDto;
6255
- /**
6256
- * Invalid input - Unsupported importer
7321
+ * List of platforms with user binding status
6257
7322
  */
6258
- 400: ApiProblemResponseDto;
7323
+ 200: unknown;
7324
+ };
7325
+ };
7326
+ };
7327
+ '/api/v1/bean/platforms/match': {
7328
+ get: {
7329
+ req: PlatformControllerMatchPlatformsData;
7330
+ res: {
6259
7331
  /**
6260
- * Unauthorized - Authentication required
7332
+ * List of matching platforms with suggested segment names
6261
7333
  */
6262
- 401: ApiProblemResponseDto;
7334
+ 200: unknown;
6263
7335
  };
6264
7336
  };
7337
+ };
7338
+ '/api/v1/bean/platforms/{id}': {
6265
7339
  put: {
6266
- req: ImporterConfigControllerData;
7340
+ req: PlatformControllerUpdateData;
6267
7341
  res: {
7342
+ /**
7343
+ * Platform updated successfully
7344
+ */
6268
7345
  200: unknown;
7346
+ /**
7347
+ * Platform not found
7348
+ */
7349
+ 404: unknown;
6269
7350
  };
6270
7351
  };
6271
- };
6272
- '/api/v1/{region}/bean/import/config/{importerId}/reset': {
6273
- post: {
6274
- req: ImporterConfigController1Data;
7352
+ delete: {
7353
+ req: PlatformControllerDeleteData;
6275
7354
  res: {
6276
- 201: unknown;
7355
+ /**
7356
+ * Platform deleted successfully
7357
+ */
7358
+ 204: void;
7359
+ /**
7360
+ * Platform not found
7361
+ */
7362
+ 404: unknown;
6277
7363
  };
6278
7364
  };
6279
7365
  };
@@ -6392,117 +7478,6 @@ export type $OpenApiTs = {
6392
7478
  };
6393
7479
  };
6394
7480
  };
6395
- '/api/v1/bean/platforms': {
6396
- get: {
6397
- req: PlatformControllerFindAllData;
6398
- res: {
6399
- /**
6400
- * List of platforms with binding and account counts
6401
- */
6402
- 200: unknown;
6403
- };
6404
- };
6405
- post: {
6406
- req: PlatformControllerData;
6407
- res: {
6408
- 201: unknown;
6409
- };
6410
- };
6411
- };
6412
- '/api/v1/bean/platforms/list': {
6413
- get: {
6414
- req: PlatformControllerGetPlatformListData;
6415
- res: {
6416
- /**
6417
- * List of platforms with user binding status
6418
- */
6419
- 200: unknown;
6420
- };
6421
- };
6422
- };
6423
- '/api/v1/bean/platforms/{id}': {
6424
- put: {
6425
- req: PlatformController1Data;
6426
- res: {
6427
- 200: unknown;
6428
- };
6429
- };
6430
- delete: {
6431
- req: PlatformController2Data;
6432
- res: {
6433
- 204: void;
6434
- };
6435
- };
6436
- };
6437
- '/api/v1/market/symbols/lookup': {
6438
- get: {
6439
- req: SymbolControllerLookupSymbolData;
6440
- res: {
6441
- /**
6442
- * Symbols found successfully
6443
- */
6444
- 200: unknown;
6445
- /**
6446
- * Invalid query parameters
6447
- */
6448
- 400: unknown;
6449
- };
6450
- };
6451
- };
6452
- '/api/v1/market/symbols/{dataSource}/{symbol}': {
6453
- get: {
6454
- req: SymbolControllerGetSymbolDataData;
6455
- res: {
6456
- /**
6457
- * Symbol data retrieved successfully
6458
- */
6459
- 200: unknown;
6460
- /**
6461
- * Invalid data source
6462
- */
6463
- 400: unknown;
6464
- /**
6465
- * Symbol not found
6466
- */
6467
- 404: unknown;
6468
- };
6469
- };
6470
- };
6471
- '/api/v1/market/symbols/{dataSource}/{symbol}/{dateString}': {
6472
- get: {
6473
- req: SymbolControllerGatherSymbolForDateData;
6474
- res: {
6475
- /**
6476
- * Historical data retrieved successfully
6477
- */
6478
- 200: unknown;
6479
- /**
6480
- * Invalid date format
6481
- */
6482
- 400: unknown;
6483
- /**
6484
- * Symbol data not found for specified date
6485
- */
6486
- 404: unknown;
6487
- };
6488
- };
6489
- };
6490
- '/api/v1/market/symbols/yahoo/batch-update': {
6491
- put: {
6492
- req: SymbolControllerData;
6493
- res: {
6494
- 200: unknown;
6495
- };
6496
- };
6497
- };
6498
- '/api/v1/cache/flush': {
6499
- post: {
6500
- req: CacheControllerFlushCacheData;
6501
- res: {
6502
- 201: unknown;
6503
- };
6504
- };
6505
- };
6506
7481
  '/api/v1/{region}/dashboard/net-worth': {
6507
7482
  get: {
6508
7483
  req: DashboardControllerGetNetWorthData;
@@ -6611,9 +7586,15 @@ export type $OpenApiTs = {
6611
7586
  };
6612
7587
  '/api/v1/auth/api-keys': {
6613
7588
  post: {
6614
- req: ApiKeysControllerData;
6615
7589
  res: {
7590
+ /**
7591
+ * API key created successfully
7592
+ */
6616
7593
  201: unknown;
7594
+ /**
7595
+ * Insufficient permissions to create API key
7596
+ */
7597
+ 403: unknown;
6617
7598
  };
6618
7599
  };
6619
7600
  };
@@ -6632,6 +7613,13 @@ export type $OpenApiTs = {
6632
7613
  };
6633
7614
  };
6634
7615
  };
7616
+ '/api/v1/cache/flush': {
7617
+ post: {
7618
+ res: {
7619
+ 201: unknown;
7620
+ };
7621
+ };
7622
+ };
6635
7623
  '/api/v1/market/exchange-rates/{symbol}/{dateString}': {
6636
7624
  get: {
6637
7625
  req: ExchangeRateControllerGetExchangeRateData;
@@ -6649,7 +7637,6 @@ export type $OpenApiTs = {
6649
7637
  };
6650
7638
  '/api/v1/health': {
6651
7639
  get: {
6652
- req: HealthControllerGetHealthData;
6653
7640
  res: {
6654
7641
  /**
6655
7642
  * Service is healthy
@@ -6664,7 +7651,6 @@ export type $OpenApiTs = {
6664
7651
  };
6665
7652
  '/api/v1/health/database': {
6666
7653
  get: {
6667
- req: HealthControllerCheckDatabaseData;
6668
7654
  res: {
6669
7655
  /**
6670
7656
  * Database is healthy
@@ -6677,9 +7663,22 @@ export type $OpenApiTs = {
6677
7663
  };
6678
7664
  };
6679
7665
  };
7666
+ '/api/v1/health/openbb': {
7667
+ get: {
7668
+ res: {
7669
+ /**
7670
+ * OpenBB status
7671
+ */
7672
+ 200: unknown;
7673
+ /**
7674
+ * OpenBB unavailable
7675
+ */
7676
+ 503: unknown;
7677
+ };
7678
+ };
7679
+ };
6680
7680
  '/api/v1/health/redis': {
6681
7681
  get: {
6682
- req: HealthControllerCheckRedisData;
6683
7682
  res: {
6684
7683
  /**
6685
7684
  * Redis is healthy
@@ -6694,7 +7693,6 @@ export type $OpenApiTs = {
6694
7693
  };
6695
7694
  '/api/v1/health/circuit-breakers': {
6696
7695
  get: {
6697
- req: HealthControllerGetCircuitBreakersHealthData;
6698
7696
  res: {
6699
7697
  /**
6700
7698
  * Circuit breaker status
@@ -6732,7 +7730,6 @@ export type $OpenApiTs = {
6732
7730
  };
6733
7731
  '/api/v1/health/metrics': {
6734
7732
  get: {
6735
- req: HealthControllerGetMetricsData;
6736
7733
  res: {
6737
7734
  /**
6738
7735
  * Health metrics
@@ -6745,70 +7742,8 @@ export type $OpenApiTs = {
6745
7742
  };
6746
7743
  };
6747
7744
  };
6748
- '/api/v1/health/data-enhancer/{name}': {
6749
- get: {
6750
- req: HealthControllerGetHealthOfDataEnhancerData;
6751
- res: {
6752
- /**
6753
- * Data enhancer is healthy
6754
- */
6755
- 200: unknown;
6756
- /**
6757
- * Unauthorized
6758
- */
6759
- 401: unknown;
6760
- /**
6761
- * Data enhancer unavailable
6762
- */
6763
- 503: unknown;
6764
- };
6765
- };
6766
- };
6767
- '/api/v1/health/data-providers': {
6768
- get: {
6769
- req: HealthControllerCheckDataProvidersData;
6770
- res: {
6771
- /**
6772
- * Data providers health status
6773
- */
6774
- 200: unknown;
6775
- /**
6776
- * Unauthorized
6777
- */
6778
- 401: unknown;
6779
- /**
6780
- * Data providers check failed
6781
- */
6782
- 503: unknown;
6783
- };
6784
- };
6785
- };
6786
- '/api/v1/health/data-provider/{dataSource}': {
6787
- get: {
6788
- req: HealthControllerGetHealthOfDataProviderData;
6789
- res: {
6790
- /**
6791
- * Data provider is healthy
6792
- */
6793
- 200: unknown;
6794
- /**
6795
- * Invalid data source
6796
- */
6797
- 400: unknown;
6798
- /**
6799
- * Unauthorized
6800
- */
6801
- 401: unknown;
6802
- /**
6803
- * Data provider unavailable
6804
- */
6805
- 503: unknown;
6806
- };
6807
- };
6808
- };
6809
7745
  '/api/v1/system/info': {
6810
7746
  get: {
6811
- req: InfoControllerGetInfoData;
6812
7747
  res: {
6813
7748
  /**
6814
7749
  * System information retrieved successfully
@@ -6817,71 +7752,4 @@ export type $OpenApiTs = {
6817
7752
  };
6818
7753
  };
6819
7754
  };
6820
- '/api/v1/market/logos/{dataSource}/{symbol}': {
6821
- get: {
6822
- req: LogoControllerGetLogoByDataSourceAndSymbolData;
6823
- res: {
6824
- /**
6825
- * Logo image stream (favicon)
6826
- */
6827
- 200: unknown;
6828
- /**
6829
- * Unauthorized
6830
- */
6831
- 401: unknown;
6832
- /**
6833
- * Logo not found for the specified asset
6834
- */
6835
- 404: unknown;
6836
- /**
6837
- * Service unavailable
6838
- */
6839
- 503: unknown;
6840
- };
6841
- };
6842
- };
6843
- '/api/v1/market/logos': {
6844
- get: {
6845
- req: LogoControllerGetLogoByUrlData;
6846
- res: {
6847
- /**
6848
- * Logo image stream (favicon)
6849
- */
6850
- 200: unknown;
6851
- /**
6852
- * Unauthorized
6853
- */
6854
- 401: unknown;
6855
- /**
6856
- * Service unavailable
6857
- */
6858
- 503: unknown;
6859
- };
6860
- };
6861
- };
6862
- '/api/v1/market-data/{dataSource}/{symbol}': {
6863
- get: {
6864
- req: MarketDataControllerGetMarketDataBySymbolData;
6865
- res: {
6866
- /**
6867
- * Market data retrieved successfully
6868
- */
6869
- 200: unknown;
6870
- /**
6871
- * Insufficient permissions to read market data
6872
- */
6873
- 403: unknown;
6874
- /**
6875
- * Market data not found
6876
- */
6877
- 404: unknown;
6878
- };
6879
- };
6880
- post: {
6881
- req: MarketDataControllerData;
6882
- res: {
6883
- 201: unknown;
6884
- };
6885
- };
6886
- };
6887
7755
  };