@firela/api-types 0.0.0-canary.5639ea2d → 0.0.0-canary.6feee68d

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,85 @@ 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
+ * Short localized display name
255
+ */
256
+ name?: string;
257
+ /**
258
+ * Account description (stable semantics only)
259
+ */
260
+ description: string;
261
+ /**
262
+ * Account tags for categorization
263
+ */
264
+ tags: Array<string>;
265
+ /**
266
+ * Icon identifier for UI display
267
+ */
268
+ icon: string;
269
+ };
270
+
271
+ export type AccountStandardListResponseDto = {
272
+ /**
273
+ * Array of account templates
274
+ */
275
+ items: Array<AccountStandardResponseDto>;
276
+ /**
277
+ * Total number of account templates
278
+ */
279
+ total: number;
280
+ /**
281
+ * Region code
282
+ */
283
+ region: string;
284
+ };
285
+
286
+ export type TemplateMetadataDto = {
287
+ /**
288
+ * Whether this path can be extended
289
+ */
290
+ extendable: boolean;
291
+ /**
292
+ * Root account type
293
+ */
294
+ rootType: string;
295
+ };
296
+
297
+ export type TemplateMetadataResponseDto = {
298
+ metadata?: TemplateMetadataDto;
299
+ };
300
+
301
+ export type RegionConfigDto = {
302
+ currency: string;
303
+ dateFormat: string;
304
+ locale: string;
305
+ };
306
+
307
+ export type RegionInfoDto = {
308
+ code: string;
309
+ displayName: string;
310
+ parent?: string;
311
+ chain: Array<string>;
312
+ config: RegionConfigDto;
313
+ };
314
+
315
+ export type RegionsMetadataResponseDto = {
316
+ regions: Array<RegionInfoDto>;
317
+ };
318
+
230
319
  export type CreatePostingDto = {
231
320
  /**
232
321
  * Account name in Beancount format (must start with uppercase, colon-separated)
@@ -439,6 +528,39 @@ export type ApiProblemResponseDto = {
439
528
  };
440
529
  };
441
530
 
531
+ export type BatchCreateTransactionDto = {
532
+ /**
533
+ * Array of transactions to create
534
+ */
535
+ transactions: Array<CreateTransactionDto>;
536
+ };
537
+
538
+ export type BatchTransactionErrorDto = {
539
+ /**
540
+ * Index of failed transaction in the input array
541
+ */
542
+ index: number;
543
+ /**
544
+ * Error message describing the failure
545
+ */
546
+ error: string;
547
+ /**
548
+ * Structured error code for programmatic handling
549
+ */
550
+ errorCode?: string;
551
+ };
552
+
553
+ export type BatchTransactionResponseDto = {
554
+ /**
555
+ * Successfully created transactions
556
+ */
557
+ succeeded: Array<TransactionResponseDto>;
558
+ /**
559
+ * Failed transactions with error details
560
+ */
561
+ failed: Array<BatchTransactionErrorDto>;
562
+ };
563
+
442
564
  export type PostingDetailDto = {
443
565
  /**
444
566
  * Posting ID
@@ -646,66 +768,6 @@ export type UpdateTransactionDto = {
646
768
  };
647
769
  };
648
770
 
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
771
  export type BalanceResponseDto = {
710
772
  /**
711
773
  * Account name
@@ -1027,6 +1089,124 @@ export type ReviewDetailDto = {
1027
1089
  transactionId?: string;
1028
1090
  };
1029
1091
 
1092
+ export type ResolveReviewDto = {
1093
+ /**
1094
+ * 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
1095
+ */
1096
+ action: string;
1097
+ /**
1098
+ * Additional data for the decision (e.g., selected account ID)
1099
+ */
1100
+ data?: {
1101
+ [key: string]: unknown;
1102
+ };
1103
+ };
1104
+
1105
+ export type ResolveResultDto = {
1106
+ /**
1107
+ * Whether resolution was successful
1108
+ */
1109
+ success: boolean;
1110
+ /**
1111
+ * i18n message key for result message (e.g., review.payee.result.mapped)
1112
+ */
1113
+ messageKey?: string;
1114
+ /**
1115
+ * Parameters for message interpolation (e.g., { name: "PayeeName" })
1116
+ */
1117
+ messageParams?: {
1118
+ [key: string]: string;
1119
+ };
1120
+ /**
1121
+ * Resolution ID for undo
1122
+ */
1123
+ resolutionId: string;
1124
+ /**
1125
+ * Whether this decision can be undone
1126
+ */
1127
+ canUndo: boolean;
1128
+ /**
1129
+ * Deadline for undo (24h from resolution)
1130
+ */
1131
+ undoDeadline: string;
1132
+ /**
1133
+ * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1134
+ */
1135
+ learnedRuleId?: string;
1136
+ };
1137
+
1138
+ export type UndoResultDto = {
1139
+ /**
1140
+ * Whether undo was successful
1141
+ */
1142
+ success: boolean;
1143
+ /**
1144
+ * Message
1145
+ */
1146
+ message?: string;
1147
+ /**
1148
+ * Review item ID that was restored
1149
+ */
1150
+ reviewId: string;
1151
+ };
1152
+
1153
+ export type BatchResolveDto = {
1154
+ /**
1155
+ * Review item IDs to resolve
1156
+ */
1157
+ reviewIds: Array<string>;
1158
+ /**
1159
+ * Decision action to apply to all items
1160
+ */
1161
+ action: string;
1162
+ /**
1163
+ * Additional data for the decision
1164
+ */
1165
+ data?: {
1166
+ [key: string]: unknown;
1167
+ };
1168
+ };
1169
+
1170
+ export type BatchResolveResultDto = {
1171
+ /**
1172
+ * Number of successfully resolved items
1173
+ */
1174
+ successCount: number;
1175
+ /**
1176
+ * Number of failed items
1177
+ */
1178
+ failedCount: number;
1179
+ /**
1180
+ * Details for each item
1181
+ */
1182
+ results: Array<string>;
1183
+ };
1184
+
1185
+ export type CreatePayeeDto = {
1186
+ /**
1187
+ * User's original payee name (e.g., 'Starbucks', 'McDonald'). This is the raw payee string as entered by the user.
1188
+ */
1189
+ payee: string;
1190
+ /**
1191
+ * Optional reference to global PayeeProfile for standardized data (merchant info, i18n keys, categories)
1192
+ */
1193
+ payeeProfileId?: string;
1194
+ /**
1195
+ * User's custom category for this payee (overrides PayeeProfile category)
1196
+ */
1197
+ customCategory?: string;
1198
+ /**
1199
+ * User's custom tags for this payee (e.g., ['favorite', 'work_meal'])
1200
+ */
1201
+ customTags?: Array<string>;
1202
+ /**
1203
+ * Metadata for extended information (location, notes, contact info, etc.)
1204
+ */
1205
+ meta?: {
1206
+ [key: string]: unknown;
1207
+ };
1208
+ };
1209
+
1030
1210
  export type PayeeResponseDto = {
1031
1211
  /**
1032
1212
  * Unique identifier (UUID)
@@ -1043,15 +1223,11 @@ export type PayeeResponseDto = {
1043
1223
  /**
1044
1224
  * Reference to global PayeeProfile (merchant info, i18n keys, categories)
1045
1225
  */
1046
- payeeProfileId?: {
1047
- [key: string]: unknown;
1048
- } | null;
1226
+ payeeProfileId?: string | null;
1049
1227
  /**
1050
1228
  * User's custom category (overrides PayeeProfile category if set)
1051
1229
  */
1052
- customCategory?: {
1053
- [key: string]: unknown;
1054
- } | null;
1230
+ customCategory?: string | null;
1055
1231
  /**
1056
1232
  * User's custom tags (e.g., ['favorite', 'work_meal'])
1057
1233
  */
@@ -1117,27 +1293,46 @@ export type PayeeStatsResponseDto = {
1117
1293
  lastUsedAt: string;
1118
1294
  };
1119
1295
 
1120
- export type PayeeProfileResponseDto = {
1296
+ export type UpdatePayeeDto = {
1121
1297
  /**
1122
- * Unique identifier (UUID)
1298
+ * Optional reference to global PayeeProfile for standardized data (merchant info, i18n keys, categories)
1123
1299
  */
1124
- id: string;
1300
+ payeeProfileId?: string;
1125
1301
  /**
1126
- * Canonical payee name (unique, case-insensitive)
1302
+ * User's custom category for this payee (overrides PayeeProfile category)
1127
1303
  */
1128
- canonical: string;
1304
+ customCategory?: string;
1129
1305
  /**
1130
- * Multi-language aliases
1306
+ * User's custom tags for this payee (e.g., ['favorite', 'work_meal'])
1131
1307
  */
1132
- aliases: Array<string>;
1308
+ customTags?: Array<string>;
1133
1309
  /**
1134
- * Translation key for i18n
1310
+ * Metadata for extended information (location, notes, contact info, etc.). Will merge with existing metadata.
1135
1311
  */
1136
- i18nKey?: {
1312
+ meta?: {
1137
1313
  [key: string]: unknown;
1138
- } | null;
1314
+ };
1139
1315
  /**
1140
- * Payee category
1316
+ * Enable or disable this payee. Disabled payees will not appear in autocomplete suggestions.
1317
+ */
1318
+ isActive?: boolean;
1319
+ };
1320
+
1321
+ export type CreatePayeeProfileDto = {
1322
+ /**
1323
+ * Canonical payee name (unique, case-insensitive). This is the primary identifier for the payee.
1324
+ */
1325
+ canonical: string;
1326
+ /**
1327
+ * Multi-language aliases for the payee. Used for matching user input in different languages.
1328
+ */
1329
+ aliases?: Array<string>;
1330
+ /**
1331
+ * Translation key for i18n integration (XLIFF translation system)
1332
+ */
1333
+ i18nKey?: string;
1334
+ /**
1335
+ * Payee category classification
1141
1336
  */
1142
1337
  category:
1143
1338
  | 'RESTAURANT'
@@ -1164,75 +1359,47 @@ export type PayeeProfileResponseDto = {
1164
1359
  | 'HOTEL'
1165
1360
  | 'OTHER';
1166
1361
  /**
1167
- * Sub-category
1362
+ * Sub-category for more specific classification
1168
1363
  */
1169
- subCategory?: {
1170
- [key: string]: unknown;
1171
- } | null;
1364
+ subCategory?: string;
1172
1365
  /**
1173
- * Country codes where payee operates
1366
+ * Country/region codes where the payee operates (ISO 3166-1 alpha-2)
1174
1367
  */
1175
- countries: Array<string>;
1368
+ countries?: Array<string>;
1176
1369
  /**
1177
- * Primary operating country
1370
+ * Primary operating country (ISO 3166-1 alpha-2)
1178
1371
  */
1179
- primaryCountry?: {
1180
- [key: string]: unknown;
1181
- } | null;
1372
+ primaryCountry?: string;
1182
1373
  /**
1183
- * Search keywords
1374
+ * Search keywords for fuzzy matching
1184
1375
  */
1185
- keywords: Array<string>;
1376
+ keywords?: Array<string>;
1186
1377
  /**
1187
- * Logo URL
1378
+ * Payee logo URL
1188
1379
  */
1189
- logoUrl?: {
1190
- [key: string]: unknown;
1191
- } | null;
1380
+ logoUrl?: string;
1192
1381
  /**
1193
- * Official website
1382
+ * Official website URL
1194
1383
  */
1195
- website?: {
1196
- [key: string]: unknown;
1197
- } | null;
1384
+ website?: string;
1198
1385
  /**
1199
- * Description
1386
+ * Payee description
1200
1387
  */
1201
- description?: {
1202
- [key: string]: unknown;
1203
- } | null;
1388
+ description?: string;
1204
1389
  /**
1205
- * Extended metadata
1390
+ * Extended metadata (business hours, contact info, additional details)
1206
1391
  */
1207
- meta: {
1392
+ meta?: {
1208
1393
  [key: string]: unknown;
1209
1394
  };
1210
1395
  /**
1211
- * Data source
1396
+ * Data source for this profile
1212
1397
  */
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;
1398
+ dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1232
1399
  };
1233
1400
 
1234
1401
  /**
1235
- * Payee category
1402
+ * Payee category classification
1236
1403
  */
1237
1404
  export type category =
1238
1405
  | 'RESTAURANT'
@@ -1260,10 +1427,110 @@ export type category =
1260
1427
  | 'OTHER';
1261
1428
 
1262
1429
  /**
1263
- * Data source
1430
+ * Data source for this profile
1264
1431
  */
1265
1432
  export type dataSource = 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1266
1433
 
1434
+ export type PayeeProfileResponseDto = {
1435
+ /**
1436
+ * Unique identifier (UUID)
1437
+ */
1438
+ id: string;
1439
+ /**
1440
+ * Canonical payee name (unique, case-insensitive)
1441
+ */
1442
+ canonical: string;
1443
+ /**
1444
+ * Multi-language aliases
1445
+ */
1446
+ aliases: Array<string>;
1447
+ /**
1448
+ * Translation key for i18n
1449
+ */
1450
+ i18nKey?: string | null;
1451
+ /**
1452
+ * Payee category
1453
+ */
1454
+ category:
1455
+ | 'RESTAURANT'
1456
+ | 'CAFE'
1457
+ | 'FAST_FOOD'
1458
+ | 'BAR'
1459
+ | 'SUPERMARKET'
1460
+ | 'CONVENIENCE_STORE'
1461
+ | 'SHOPPING_MALL'
1462
+ | 'ONLINE_SHOPPING'
1463
+ | 'TAXI'
1464
+ | 'RIDE_SHARING'
1465
+ | 'PUBLIC_TRANSPORT'
1466
+ | 'PARKING'
1467
+ | 'GAS_STATION'
1468
+ | 'UTILITIES'
1469
+ | 'TELECOM'
1470
+ | 'STREAMING'
1471
+ | 'HEALTHCARE'
1472
+ | 'EDUCATION'
1473
+ | 'ENTERTAINMENT'
1474
+ | 'SPORTS'
1475
+ | 'TRAVEL'
1476
+ | 'HOTEL'
1477
+ | 'OTHER';
1478
+ /**
1479
+ * Sub-category
1480
+ */
1481
+ subCategory?: string | null;
1482
+ /**
1483
+ * Country codes where payee operates
1484
+ */
1485
+ countries: Array<string>;
1486
+ /**
1487
+ * Primary operating country
1488
+ */
1489
+ primaryCountry?: string | null;
1490
+ /**
1491
+ * Search keywords
1492
+ */
1493
+ keywords: Array<string>;
1494
+ /**
1495
+ * Logo URL
1496
+ */
1497
+ logoUrl?: string | null;
1498
+ /**
1499
+ * Official website
1500
+ */
1501
+ website?: string | null;
1502
+ /**
1503
+ * Description
1504
+ */
1505
+ description?: string | null;
1506
+ /**
1507
+ * Extended metadata
1508
+ */
1509
+ meta: {
1510
+ [key: string]: unknown;
1511
+ };
1512
+ /**
1513
+ * Data source
1514
+ */
1515
+ dataSource: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1516
+ /**
1517
+ * Verification timestamp (null if not verified)
1518
+ */
1519
+ verifiedAt?: string | null;
1520
+ /**
1521
+ * Whether the profile is active
1522
+ */
1523
+ isActive: boolean;
1524
+ /**
1525
+ * Creation timestamp
1526
+ */
1527
+ createdAt: string;
1528
+ /**
1529
+ * Last update timestamp
1530
+ */
1531
+ updatedAt: string;
1532
+ };
1533
+
1267
1534
  export type PayeeProfileListResponseDto = {
1268
1535
  /**
1269
1536
  * List of payee profiles
@@ -1275,6 +1542,107 @@ export type PayeeProfileListResponseDto = {
1275
1542
  total: number;
1276
1543
  };
1277
1544
 
1545
+ export type UpdatePayeeProfileDto = {
1546
+ /**
1547
+ * Multi-language aliases for the payee. Used for matching user input in different languages.
1548
+ */
1549
+ aliases?: Array<string>;
1550
+ /**
1551
+ * Translation key for i18n integration (XLIFF translation system)
1552
+ */
1553
+ i18nKey?: string;
1554
+ /**
1555
+ * Payee category classification
1556
+ */
1557
+ category?:
1558
+ | 'RESTAURANT'
1559
+ | 'CAFE'
1560
+ | 'FAST_FOOD'
1561
+ | 'BAR'
1562
+ | 'SUPERMARKET'
1563
+ | 'CONVENIENCE_STORE'
1564
+ | 'SHOPPING_MALL'
1565
+ | 'ONLINE_SHOPPING'
1566
+ | 'TAXI'
1567
+ | 'RIDE_SHARING'
1568
+ | 'PUBLIC_TRANSPORT'
1569
+ | 'PARKING'
1570
+ | 'GAS_STATION'
1571
+ | 'UTILITIES'
1572
+ | 'TELECOM'
1573
+ | 'STREAMING'
1574
+ | 'HEALTHCARE'
1575
+ | 'EDUCATION'
1576
+ | 'ENTERTAINMENT'
1577
+ | 'SPORTS'
1578
+ | 'TRAVEL'
1579
+ | 'HOTEL'
1580
+ | 'OTHER';
1581
+ /**
1582
+ * Sub-category for more specific classification
1583
+ */
1584
+ subCategory?: string;
1585
+ /**
1586
+ * Country/region codes where the payee operates (ISO 3166-1 alpha-2)
1587
+ */
1588
+ countries?: Array<string>;
1589
+ /**
1590
+ * Primary operating country (ISO 3166-1 alpha-2)
1591
+ */
1592
+ primaryCountry?: string;
1593
+ /**
1594
+ * Search keywords for fuzzy matching
1595
+ */
1596
+ keywords?: Array<string>;
1597
+ /**
1598
+ * Payee logo URL
1599
+ */
1600
+ logoUrl?: string;
1601
+ /**
1602
+ * Official website URL
1603
+ */
1604
+ website?: string;
1605
+ /**
1606
+ * Payee description
1607
+ */
1608
+ description?: string;
1609
+ /**
1610
+ * Extended metadata (business hours, contact info, additional details)
1611
+ */
1612
+ meta?: {
1613
+ [key: string]: unknown;
1614
+ };
1615
+ /**
1616
+ * Data source for this profile
1617
+ */
1618
+ dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1619
+ /**
1620
+ * Whether the payee profile is active (soft delete)
1621
+ */
1622
+ isActive?: boolean;
1623
+ /**
1624
+ * Verification timestamp. Set to current time to verify, or null to unverify.
1625
+ */
1626
+ verifiedAt?: string | null;
1627
+ };
1628
+
1629
+ export type CreateCommodityDto = {
1630
+ /**
1631
+ * Commodity symbol (e.g., AAPL, USD, BTC) - corresponds to Beancount currency field
1632
+ */
1633
+ symbol: string;
1634
+ /**
1635
+ * Commodity definition date (ISO 8601, required per Beancount spec). Represents when this commodity was first defined in the accounting system.
1636
+ */
1637
+ date: string;
1638
+ /**
1639
+ * Metadata (corresponds to Beancount meta field). Can contain name, assetClass, precision, note, tags, etc.
1640
+ */
1641
+ metadata?: {
1642
+ [key: string]: unknown;
1643
+ };
1644
+ };
1645
+
1278
1646
  export type CommodityResponseDto = {
1279
1647
  /**
1280
1648
  * Unique identifier
@@ -1283,9 +1651,7 @@ export type CommodityResponseDto = {
1283
1651
  /**
1284
1652
  * User ID (owner of the commodity)
1285
1653
  */
1286
- userId?: {
1287
- [key: string]: unknown;
1288
- } | null;
1654
+ userId?: string | null;
1289
1655
  /**
1290
1656
  * Commodity symbol (corresponds to Beancount currency field)
1291
1657
  */
@@ -1300,12 +1666,6 @@ export type CommodityResponseDto = {
1300
1666
  metadata: {
1301
1667
  [key: string]: unknown;
1302
1668
  };
1303
- /**
1304
- * Reference to SymbolProfile (market data integration, SaaS feature)
1305
- */
1306
- symbolProfileId?: {
1307
- [key: string]: unknown;
1308
- } | null;
1309
1669
  /**
1310
1670
  * Creation timestamp
1311
1671
  */
@@ -1327,6 +1687,101 @@ export type CommodityListResponseDto = {
1327
1687
  total: number;
1328
1688
  };
1329
1689
 
1690
+ export type UpdateCommodityDto = {
1691
+ /**
1692
+ * Commodity definition date (ISO 8601). Represents when this commodity was first defined in the accounting system.
1693
+ */
1694
+ date?: string;
1695
+ /**
1696
+ * Metadata (corresponds to Beancount meta field). Will merge with existing metadata. Can contain name, assetClass, precision, note, tags, etc.
1697
+ */
1698
+ metadata?: {
1699
+ [key: string]: unknown;
1700
+ };
1701
+ };
1702
+
1703
+ export type CreateRecurringRuleDto = {
1704
+ /**
1705
+ * Rule name (unique per user)
1706
+ */
1707
+ name: string;
1708
+ /**
1709
+ * Icon emoji
1710
+ */
1711
+ icon?: string;
1712
+ /**
1713
+ * Recurring frequency
1714
+ */
1715
+ frequency:
1716
+ | 'WEEKLY'
1717
+ | 'BIWEEKLY'
1718
+ | 'MONTHLY'
1719
+ | 'BIMONTHLY'
1720
+ | 'QUARTERLY'
1721
+ | 'YEARLY'
1722
+ | 'CUSTOM';
1723
+ /**
1724
+ * Expected amount (positive number)
1725
+ */
1726
+ expectedAmount: number;
1727
+ /**
1728
+ * Expected day of month (1-31)
1729
+ */
1730
+ expectedDay?: number;
1731
+ /**
1732
+ * Custom interval in days (required for CUSTOM frequency)
1733
+ */
1734
+ customIntervalDays?: number;
1735
+ /**
1736
+ * Currency code
1737
+ */
1738
+ currency: string;
1739
+ /**
1740
+ * Payee matching pattern (supports wildcards)
1741
+ */
1742
+ matchPayeePattern?: string;
1743
+ /**
1744
+ * Amount tolerance percentage (0-1)
1745
+ */
1746
+ matchAmountTolerance: number;
1747
+ /**
1748
+ * Default expense account for auto-create
1749
+ */
1750
+ defaultExpenseAccount?: string;
1751
+ /**
1752
+ * Default payment account for auto-create
1753
+ */
1754
+ defaultPaymentAccount?: string;
1755
+ /**
1756
+ * Default payee for auto-create
1757
+ */
1758
+ defaultPayee?: string;
1759
+ /**
1760
+ * Auto-create transaction when expected date arrives
1761
+ */
1762
+ autoCreate: boolean;
1763
+ /**
1764
+ * Rule start date (ISO format)
1765
+ */
1766
+ startDate?: string;
1767
+ /**
1768
+ * Rule end date (ISO format)
1769
+ */
1770
+ endDate?: string;
1771
+ };
1772
+
1773
+ /**
1774
+ * Recurring frequency
1775
+ */
1776
+ export type frequency =
1777
+ | 'WEEKLY'
1778
+ | 'BIWEEKLY'
1779
+ | 'MONTHLY'
1780
+ | 'BIMONTHLY'
1781
+ | 'QUARTERLY'
1782
+ | 'YEARLY'
1783
+ | 'CUSTOM';
1784
+
1330
1785
  export type RecurringRuleResponseDto = {
1331
1786
  /**
1332
1787
  * Rule ID
@@ -1436,6 +1891,28 @@ export type RecurringRuleResponseDto = {
1436
1891
  updatedAt: string;
1437
1892
  };
1438
1893
 
1894
+ export type CreateRuleFromTransactionDto = {
1895
+ /**
1896
+ * Recurring frequency
1897
+ */
1898
+ frequency:
1899
+ | 'WEEKLY'
1900
+ | 'BIWEEKLY'
1901
+ | 'MONTHLY'
1902
+ | 'BIMONTHLY'
1903
+ | 'QUARTERLY'
1904
+ | 'YEARLY'
1905
+ | 'CUSTOM';
1906
+ /**
1907
+ * Optional name override (default: transaction payee)
1908
+ */
1909
+ name?: string;
1910
+ /**
1911
+ * Optional icon emoji
1912
+ */
1913
+ icon?: string;
1914
+ };
1915
+
1439
1916
  export type RecurringRuleWithStatsResponseDto = {
1440
1917
  /**
1441
1918
  * Rule ID
@@ -1591,6 +2068,76 @@ export type RecurringRuleWithStatsResponseDto = {
1591
2068
  upcomingCount: number;
1592
2069
  };
1593
2070
 
2071
+ export type UpdateRecurringRuleDto = {
2072
+ /**
2073
+ * Rule name
2074
+ */
2075
+ name?: string;
2076
+ /**
2077
+ * Icon emoji
2078
+ */
2079
+ icon?: string;
2080
+ /**
2081
+ * Recurring frequency
2082
+ */
2083
+ frequency?:
2084
+ | 'WEEKLY'
2085
+ | 'BIWEEKLY'
2086
+ | 'MONTHLY'
2087
+ | 'BIMONTHLY'
2088
+ | 'QUARTERLY'
2089
+ | 'YEARLY'
2090
+ | 'CUSTOM';
2091
+ /**
2092
+ * Expected amount
2093
+ */
2094
+ expectedAmount?: number;
2095
+ /**
2096
+ * Expected day of month (1-31)
2097
+ */
2098
+ expectedDay?: number;
2099
+ /**
2100
+ * Custom interval in days
2101
+ */
2102
+ customIntervalDays?: number;
2103
+ /**
2104
+ * Currency code
2105
+ */
2106
+ currency?: string;
2107
+ /**
2108
+ * Payee matching pattern
2109
+ */
2110
+ matchPayeePattern?: string;
2111
+ /**
2112
+ * Amount tolerance percentage (0-1)
2113
+ */
2114
+ matchAmountTolerance?: number;
2115
+ /**
2116
+ * Default expense account
2117
+ */
2118
+ defaultExpenseAccount?: string;
2119
+ /**
2120
+ * Default payment account
2121
+ */
2122
+ defaultPaymentAccount?: string;
2123
+ /**
2124
+ * Default payee
2125
+ */
2126
+ defaultPayee?: string;
2127
+ /**
2128
+ * Auto-create transaction
2129
+ */
2130
+ autoCreate?: boolean;
2131
+ /**
2132
+ * Rule active status
2133
+ */
2134
+ isActive?: boolean;
2135
+ /**
2136
+ * Rule end date (ISO format)
2137
+ */
2138
+ endDate?: string;
2139
+ };
2140
+
1594
2141
  export type ExpectedTransactionRuleDto = {
1595
2142
  /**
1596
2143
  * Rule name
@@ -1681,6 +2228,36 @@ export type ExpectedTransactionListResponseDto = {
1681
2228
  total: number;
1682
2229
  };
1683
2230
 
2231
+ export type ConfirmMatchDto = {
2232
+ /**
2233
+ * Transaction ID to match with
2234
+ */
2235
+ transactionId: string;
2236
+ };
2237
+
2238
+ export type EnterNowDto = {
2239
+ /**
2240
+ * Override expense account (uses rule default if not provided)
2241
+ */
2242
+ expenseAccount?: string;
2243
+ /**
2244
+ * Override payment account (uses rule default if not provided)
2245
+ */
2246
+ paymentAccount?: string;
2247
+ /**
2248
+ * Override amount (uses expected amount if not provided)
2249
+ */
2250
+ amount?: number;
2251
+ /**
2252
+ * Override payee (uses rule default if not provided)
2253
+ */
2254
+ payee?: string;
2255
+ /**
2256
+ * Optional narration
2257
+ */
2258
+ narration?: string;
2259
+ };
2260
+
1684
2261
  export type ForecastItemDto = {
1685
2262
  /**
1686
2263
  * Rule name
@@ -1701,9 +2278,7 @@ export type ForecastItemDto = {
1701
2278
  /**
1702
2279
  * Rule icon emoji
1703
2280
  */
1704
- icon: {
1705
- [key: string]: unknown;
1706
- } | null;
2281
+ icon: string | null;
1707
2282
  /**
1708
2283
  * Currency code
1709
2284
  */
@@ -1764,6 +2339,53 @@ export type ForecastResponseDto = {
1764
2339
  periodEnd: string;
1765
2340
  };
1766
2341
 
2342
+ export type CreateTransactionRuleDto = {
2343
+ name: string;
2344
+ description?: string;
2345
+ narrationKeywords?: Array<unknown[]>;
2346
+ payeeKeywords?: Array<unknown[]>;
2347
+ categoryKeywords?: Array<unknown[]>;
2348
+ /**
2349
+ * Payment method keywords (e.g., HuaBei, YuEBao)
2350
+ */
2351
+ methodKeywords?: Array<unknown[]>;
2352
+ /**
2353
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2354
+ */
2355
+ categoryAccount?: string;
2356
+ matchLogic: 'OR' | 'AND';
2357
+ /**
2358
+ * Minimum transaction amount (inclusive)
2359
+ */
2360
+ amountMin?: number;
2361
+ /**
2362
+ * Maximum transaction amount (inclusive)
2363
+ */
2364
+ amountMax?: number;
2365
+ priority: number;
2366
+ additionalTags?: Array<unknown[]>;
2367
+ additionalMetadata?: {
2368
+ [key: string]: unknown;
2369
+ };
2370
+ /**
2371
+ * If true, update existing rule with matching payeeKeywords[0] instead of creating new rule
2372
+ */
2373
+ upsertByPayee?: boolean;
2374
+ };
2375
+
2376
+ export type matchLogic = 'OR' | 'AND';
2377
+
2378
+ export type AmountRangeDto = {
2379
+ /**
2380
+ * Minimum amount
2381
+ */
2382
+ min?: number;
2383
+ /**
2384
+ * Maximum amount
2385
+ */
2386
+ max?: number;
2387
+ };
2388
+
1767
2389
  export type TransactionRuleResponseDto = {
1768
2390
  /**
1769
2391
  * Rule ID
@@ -1804,9 +2426,7 @@ export type TransactionRuleResponseDto = {
1804
2426
  /**
1805
2427
  * Amount range for matching
1806
2428
  */
1807
- amountRange?: {
1808
- [key: string]: unknown;
1809
- };
2429
+ amountRange?: AmountRangeDto;
1810
2430
  /**
1811
2431
  * Rule priority (0-1000, higher = first match)
1812
2432
  */
@@ -1818,7 +2438,7 @@ export type TransactionRuleResponseDto = {
1818
2438
  /**
1819
2439
  * Learning source: NLP, REVIEW_CENTER, or null for manual
1820
2440
  */
1821
- learningSource?: 'NLP' | 'REVIEW_CENTER';
2441
+ learningSource?: 'NLP' | 'REVIEW_CENTER' | null;
1822
2442
  /**
1823
2443
  * Whether auto-apply is enabled for this rule
1824
2444
  */
@@ -1835,7 +2455,7 @@ export type TransactionRuleResponseDto = {
1835
2455
  * Additional metadata
1836
2456
  */
1837
2457
  additionalMetadata?: {
1838
- [key: string]: unknown;
2458
+ [key: string]: string;
1839
2459
  };
1840
2460
  /**
1841
2461
  * Created timestamp
@@ -1847,11 +2467,6 @@ export type TransactionRuleResponseDto = {
1847
2467
  updatedAt: string;
1848
2468
  };
1849
2469
 
1850
- /**
1851
- * Keyword matching logic
1852
- */
1853
- export type matchLogic = 'OR' | 'AND';
1854
-
1855
2470
  /**
1856
2471
  * Learning source: NLP, REVIEW_CENTER, or null for manual
1857
2472
  */
@@ -1922,6 +2537,44 @@ export type ValidateRuleResponseDto = {
1922
2537
  warnings: Array<unknown[]>;
1923
2538
  };
1924
2539
 
2540
+ export type BulkCreateRulesDto = {
2541
+ /**
2542
+ * Array of rules to import
2543
+ */
2544
+ rules: Array<unknown[]>;
2545
+ /**
2546
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2547
+ */
2548
+ conflictStrategy: 'replace' | 'skip';
2549
+ };
2550
+
2551
+ /**
2552
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2553
+ */
2554
+ export type conflictStrategy = 'replace' | 'skip';
2555
+
2556
+ export type BulkCreateRulesResponseDto = {
2557
+ /**
2558
+ * Number of successfully created rules
2559
+ */
2560
+ successCount: number;
2561
+ /**
2562
+ * Number of failed rules
2563
+ */
2564
+ failureCount: number;
2565
+ /**
2566
+ * Error details for failed rules
2567
+ */
2568
+ errors: Array<{
2569
+ index?: number;
2570
+ message?: string;
2571
+ }>;
2572
+ /**
2573
+ * IDs of successfully created rules
2574
+ */
2575
+ createdRuleIds: Array<string>;
2576
+ };
2577
+
1925
2578
  export type ExportRulesResponseDto = {
1926
2579
  /**
1927
2580
  * Export timestamp
@@ -1978,6 +2631,40 @@ export type RuleStatisticsResponseDto = {
1978
2631
  */
1979
2632
  export type period = '7d' | '30d' | '90d';
1980
2633
 
2634
+ export type UpdateTransactionRuleDto = {
2635
+ name?: string;
2636
+ description?: string;
2637
+ narrationKeywords?: Array<unknown[]>;
2638
+ payeeKeywords?: Array<unknown[]>;
2639
+ categoryKeywords?: Array<unknown[]>;
2640
+ /**
2641
+ * Payment method keywords (e.g., HuaBei, YuEBao)
2642
+ */
2643
+ methodKeywords?: Array<unknown[]>;
2644
+ /**
2645
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2646
+ */
2647
+ categoryAccount?: string;
2648
+ matchLogic?: 'OR' | 'AND';
2649
+ /**
2650
+ * Minimum transaction amount (inclusive)
2651
+ */
2652
+ amountMin?: number;
2653
+ /**
2654
+ * Maximum transaction amount (inclusive)
2655
+ */
2656
+ amountMax?: number;
2657
+ priority?: number;
2658
+ /**
2659
+ * Enable or disable the rule
2660
+ */
2661
+ enabled?: boolean;
2662
+ additionalTags?: Array<unknown[]>;
2663
+ additionalMetadata?: {
2664
+ [key: string]: unknown;
2665
+ };
2666
+ };
2667
+
1981
2668
  export type TestRuleDto = {
1982
2669
  narration: string;
1983
2670
  payee?: string;
@@ -2118,6 +2805,13 @@ export type colorScheme = 'DARK' | 'LIGHT';
2118
2805
  */
2119
2806
  export type viewMode = 'DEFAULT' | 'ZEN';
2120
2807
 
2808
+ export type UpdatePropertyDto = {
2809
+ /**
2810
+ * Property value
2811
+ */
2812
+ value: string;
2813
+ };
2814
+
2121
2815
  export type FileImportDto = {
2122
2816
  /**
2123
2817
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -2377,6 +3071,133 @@ export type importerId =
2377
3071
  | 'hsbc-hk-credit'
2378
3072
  | 'hsbc-hk-debit';
2379
3073
 
3074
+ export type UpdateMapperDefaultsDto = {
3075
+ /**
3076
+ * Source account for transactions (Beancount format)
3077
+ */
3078
+ sourceAccount?: string;
3079
+ /**
3080
+ * Default currency (ISO 4217 code)
3081
+ */
3082
+ currency?: string;
3083
+ /**
3084
+ * Default expense account (optional)
3085
+ */
3086
+ expenseAccount?: string;
3087
+ /**
3088
+ * Default income account (optional)
3089
+ */
3090
+ incomeAccount?: string;
3091
+ /**
3092
+ * 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).
3093
+ */
3094
+ methodAccountMapping?: {
3095
+ [key: string]: unknown;
3096
+ };
3097
+ };
3098
+
3099
+ export type UpdateConfigDataDto = {
3100
+ /**
3101
+ * Mapper defaults configuration
3102
+ */
3103
+ defaults?: UpdateMapperDefaultsDto;
3104
+ };
3105
+
3106
+ export type UpdateImporterConfigDto = {
3107
+ /**
3108
+ * Configuration data (v1 schema)
3109
+ */
3110
+ data?: UpdateConfigDataDto;
3111
+ };
3112
+
3113
+ export type CreatePlatformDto = {
3114
+ /**
3115
+ * Platform name
3116
+ */
3117
+ name: string;
3118
+ /**
3119
+ * Platform canonical identifier (lowercase, kebab-case)
3120
+ */
3121
+ canonical: string;
3122
+ /**
3123
+ * Platform aliases (multi-language names for lookup)
3124
+ */
3125
+ aliases: Array<string>;
3126
+ /**
3127
+ * Platform URL
3128
+ */
3129
+ url: string;
3130
+ /**
3131
+ * Platform type
3132
+ */
3133
+ type:
3134
+ | 'BANK'
3135
+ | 'BROKERAGE'
3136
+ | 'CRYPTO_EXCHANGE'
3137
+ | 'PAYMENT'
3138
+ | 'INVESTMENT'
3139
+ | 'INSURANCE'
3140
+ | 'OTHER';
3141
+ /**
3142
+ * Platform logo URL
3143
+ */
3144
+ logoUrl?: string;
3145
+ /**
3146
+ * Whether the platform is active
3147
+ */
3148
+ isActive?: boolean;
3149
+ };
3150
+
3151
+ /**
3152
+ * Platform type
3153
+ */
3154
+ export type type3 =
3155
+ | 'BANK'
3156
+ | 'BROKERAGE'
3157
+ | 'CRYPTO_EXCHANGE'
3158
+ | 'PAYMENT'
3159
+ | 'INVESTMENT'
3160
+ | 'INSURANCE'
3161
+ | 'OTHER';
3162
+
3163
+ export type UpdatePlatformDto = {
3164
+ /**
3165
+ * Platform name
3166
+ */
3167
+ name?: string;
3168
+ /**
3169
+ * Platform canonical identifier (lowercase, kebab-case)
3170
+ */
3171
+ canonical?: string;
3172
+ /**
3173
+ * Platform aliases (multi-language names for lookup)
3174
+ */
3175
+ aliases?: Array<string>;
3176
+ /**
3177
+ * Platform URL
3178
+ */
3179
+ url?: string;
3180
+ /**
3181
+ * Platform type
3182
+ */
3183
+ type?:
3184
+ | 'BANK'
3185
+ | 'BROKERAGE'
3186
+ | 'CRYPTO_EXCHANGE'
3187
+ | 'PAYMENT'
3188
+ | 'INVESTMENT'
3189
+ | 'INSURANCE'
3190
+ | 'OTHER';
3191
+ /**
3192
+ * Platform logo URL
3193
+ */
3194
+ logoUrl?: string;
3195
+ /**
3196
+ * Whether the platform is active
3197
+ */
3198
+ isActive?: boolean;
3199
+ };
3200
+
2380
3201
  export type ProviderSyncConfigDto = {
2381
3202
  /**
2382
3203
  * Source account for the first posting
@@ -2464,6 +3285,12 @@ export type ProcessNlpDto = {
2464
3285
  * Session ID for multi-turn conversation (auto-generated if not provided)
2465
3286
  */
2466
3287
  sessionId?: string;
3288
+ /**
3289
+ * Parsed data from previous NLP response for session recovery. Send back the parsedData received in confirm_payee/confirm responses.
3290
+ */
3291
+ parsedData?: {
3292
+ [key: string]: unknown;
3293
+ };
2467
3294
  };
2468
3295
 
2469
3296
  export type NlpTransactionInfoDto = {
@@ -3526,7 +4353,7 @@ export type AccountControllerCreateData = {
3526
4353
  /**
3527
4354
  * Region code for tenant context
3528
4355
  */
3529
- region: 'cn' | 'us' | 'de';
4356
+ region: 'cn' | 'us' | 'de' | 'gb';
3530
4357
  requestBody: CreateAccountDto;
3531
4358
  };
3532
4359
 
@@ -3548,7 +4375,7 @@ export type AccountControllerFindAllData = {
3548
4375
  /**
3549
4376
  * Region code for tenant context
3550
4377
  */
3551
- region: 'cn' | 'us' | 'de';
4378
+ region: 'cn' | 'us' | 'de' | 'gb';
3552
4379
  /**
3553
4380
  * Search term for path or i18nKey
3554
4381
  */
@@ -3573,7 +4400,7 @@ export type AccountControllerFindOneData = {
3573
4400
  /**
3574
4401
  * Region code for tenant context
3575
4402
  */
3576
- region: 'cn' | 'us' | 'de';
4403
+ region: 'cn' | 'us' | 'de' | 'gb';
3577
4404
  };
3578
4405
 
3579
4406
  export type AccountControllerFindOneResponse = AccountResponseDto;
@@ -3586,7 +4413,7 @@ export type AccountControllerUpdateData = {
3586
4413
  /**
3587
4414
  * Region code for tenant context
3588
4415
  */
3589
- region: 'cn' | 'us' | 'de';
4416
+ region: 'cn' | 'us' | 'de' | 'gb';
3590
4417
  requestBody: UpdateAccountDto;
3591
4418
  };
3592
4419
 
@@ -3600,7 +4427,7 @@ export type AccountControllerDeleteData = {
3600
4427
  /**
3601
4428
  * Region code for tenant context
3602
4429
  */
3603
- region: 'cn' | 'us' | 'de';
4430
+ region: 'cn' | 'us' | 'de' | 'gb';
3604
4431
  };
3605
4432
 
3606
4433
  export type AccountControllerDeleteResponse = void;
@@ -3613,7 +4440,7 @@ export type AccountControllerCloseData = {
3613
4440
  /**
3614
4441
  * Region code for tenant context
3615
4442
  */
3616
- region: 'cn' | 'us' | 'de';
4443
+ region: 'cn' | 'us' | 'de' | 'gb';
3617
4444
  requestBody: CloseAccountDto;
3618
4445
  };
3619
4446
 
@@ -3627,17 +4454,59 @@ export type AccountControllerReopenData = {
3627
4454
  /**
3628
4455
  * Region code for tenant context
3629
4456
  */
3630
- region: 'cn' | 'us' | 'de';
4457
+ region: 'cn' | 'us' | 'de' | 'gb';
3631
4458
  requestBody: ReopenAccountDto;
3632
4459
  };
3633
4460
 
3634
4461
  export type AccountControllerReopenResponse = AccountResponseDto;
3635
4462
 
4463
+ export type AccountStandardsControllerGetTemplatesData = {
4464
+ /**
4465
+ * Region code (cn, us, de)
4466
+ */
4467
+ region: 'cn' | 'us' | 'de' | 'gb';
4468
+ /**
4469
+ * Search term for path or description
4470
+ */
4471
+ search?: string;
4472
+ /**
4473
+ * Filter by account type
4474
+ */
4475
+ type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4476
+ };
4477
+
4478
+ export type AccountStandardsControllerGetTemplatesResponse =
4479
+ AccountStandardListResponseDto;
4480
+
4481
+ export type AccountStandardsControllerGetTemplateMetadataData = {
4482
+ /**
4483
+ * Account path to check
4484
+ */
4485
+ path: string;
4486
+ /**
4487
+ * Region code for tenant context
4488
+ */
4489
+ region: 'cn' | 'us' | 'de' | 'gb';
4490
+ };
4491
+
4492
+ export type AccountStandardsControllerGetTemplateMetadataResponse =
4493
+ TemplateMetadataResponseDto;
4494
+
4495
+ export type AccountStandardsControllerGetRegionsData = {
4496
+ /**
4497
+ * Region code for tenant context
4498
+ */
4499
+ region: 'cn' | 'us' | 'de' | 'gb';
4500
+ };
4501
+
4502
+ export type AccountStandardsControllerGetRegionsResponse =
4503
+ RegionsMetadataResponseDto;
4504
+
3636
4505
  export type TransactionControllerCreateData = {
3637
4506
  /**
3638
4507
  * Region code for tenant context
3639
4508
  */
3640
- region: 'cn' | 'us' | 'de';
4509
+ region: 'cn' | 'us' | 'de' | 'gb';
3641
4510
  /**
3642
4511
  * Transaction data with postings
3643
4512
  */
@@ -3670,7 +4539,7 @@ export type TransactionControllerListData = {
3670
4539
  /**
3671
4540
  * Region code for tenant context
3672
4541
  */
3673
- region: 'cn' | 'us' | 'de';
4542
+ region: 'cn' | 'us' | 'de' | 'gb';
3674
4543
  /**
3675
4544
  * Search in narration and payee fields (max 200 chars)
3676
4545
  */
@@ -3683,14 +4552,16 @@ export type TransactionControllerListData = {
3683
4552
 
3684
4553
  export type TransactionControllerListResponse = TransactionListResponseDto;
3685
4554
 
3686
- export type TransactionControllerData = {
4555
+ export type TransactionControllerCreateBatchData = {
3687
4556
  /**
3688
4557
  * Region code for tenant context
3689
4558
  */
3690
- region: 'cn' | 'us' | 'de';
4559
+ region: 'cn' | 'us' | 'de' | 'gb';
4560
+ requestBody: BatchCreateTransactionDto;
3691
4561
  };
3692
4562
 
3693
- export type TransactionControllerResponse = unknown;
4563
+ export type TransactionControllerCreateBatchResponse =
4564
+ BatchTransactionResponseDto;
3694
4565
 
3695
4566
  export type TransactionControllerGetDetailData = {
3696
4567
  /**
@@ -3700,7 +4571,7 @@ export type TransactionControllerGetDetailData = {
3700
4571
  /**
3701
4572
  * Region code for tenant context
3702
4573
  */
3703
- region: 'cn' | 'us' | 'de';
4574
+ region: 'cn' | 'us' | 'de' | 'gb';
3704
4575
  };
3705
4576
 
3706
4577
  export type TransactionControllerGetDetailResponse = TransactionDetailDto;
@@ -3713,44 +4584,27 @@ export type TransactionControllerUpdateData = {
3713
4584
  /**
3714
4585
  * Region code for tenant context
3715
4586
  */
3716
- region: 'cn' | 'us' | 'de';
4587
+ region: 'cn' | 'us' | 'de' | 'gb';
3717
4588
  /**
3718
4589
  * Fields to update (all optional)
3719
4590
  */
3720
4591
  requestBody: UpdateTransactionDto;
3721
4592
  };
3722
-
3723
- export type TransactionControllerUpdateResponse = TransactionDetailDto;
3724
-
3725
- export type TransactionController1Data = {
3726
- /**
3727
- * Region code for tenant context
3728
- */
3729
- region: 'cn' | 'us' | 'de';
3730
- };
3731
-
3732
- export type TransactionController1Response = void;
3733
-
3734
- export type AccountStandardsControllerGetTemplatesData = {
3735
- /**
3736
- * Region code (cn, us, de)
3737
- */
3738
- region: 'cn' | 'us' | 'de';
4593
+
4594
+ export type TransactionControllerUpdateResponse = TransactionDetailDto;
4595
+
4596
+ export type TransactionControllerDeleteData = {
3739
4597
  /**
3740
- * Search term for path or description
4598
+ * Transaction ID
3741
4599
  */
3742
- search?: string;
4600
+ id: string;
3743
4601
  /**
3744
- * Filter by account type
4602
+ * Region code for tenant context
3745
4603
  */
3746
- type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4604
+ region: 'cn' | 'us' | 'de' | 'gb';
3747
4605
  };
3748
4606
 
3749
- export type AccountStandardsControllerGetTemplatesResponse =
3750
- AccountStandardListResponseDto;
3751
-
3752
- export type AccountStandardsControllerGetRegionsResponse =
3753
- RegionsMetadataResponseDto;
4607
+ export type TransactionControllerDeleteResponse = void;
3754
4608
 
3755
4609
  export type BalanceControllerGetBalanceData = {
3756
4610
  /**
@@ -3765,10 +4619,21 @@ export type BalanceControllerGetBalanceData = {
3765
4619
  * Date to calculate balance at (ISO 8601 format)
3766
4620
  */
3767
4621
  date?: string;
4622
+ /**
4623
+ * Region code for tenant context
4624
+ */
4625
+ region: 'cn' | 'us' | 'de' | 'gb';
3768
4626
  };
3769
4627
 
3770
4628
  export type BalanceControllerGetBalanceResponse = BalanceResponseDto;
3771
4629
 
4630
+ export type BalanceControllerGetMultiCurrencyBalanceData = {
4631
+ /**
4632
+ * Region code for tenant context
4633
+ */
4634
+ region: 'cn' | 'us' | 'de' | 'gb';
4635
+ };
4636
+
3772
4637
  export type BalanceControllerGetMultiCurrencyBalanceResponse =
3773
4638
  MultiCurrencyBalanceResponseDto;
3774
4639
 
@@ -3788,7 +4653,7 @@ export type ReviewControllerFindAllData = {
3788
4653
  /**
3789
4654
  * Region code for tenant context
3790
4655
  */
3791
- region: 'cn' | 'us' | 'de';
4656
+ region: 'cn' | 'us' | 'de' | 'gb';
3792
4657
  /**
3793
4658
  * Sort order
3794
4659
  */
@@ -3810,7 +4675,7 @@ export type ReviewControllerGetStatsData = {
3810
4675
  /**
3811
4676
  * Region code for tenant context
3812
4677
  */
3813
- region: 'cn' | 'us' | 'de';
4678
+ region: 'cn' | 'us' | 'de' | 'gb';
3814
4679
  };
3815
4680
 
3816
4681
  export type ReviewControllerGetStatsResponse = ReviewStatsDto;
@@ -3823,39 +4688,56 @@ export type ReviewControllerFindOneData = {
3823
4688
  /**
3824
4689
  * Region code for tenant context
3825
4690
  */
3826
- region: 'cn' | 'us' | 'de';
4691
+ region: 'cn' | 'us' | 'de' | 'gb';
3827
4692
  };
3828
4693
 
3829
4694
  export type ReviewControllerFindOneResponse = ReviewDetailDto;
3830
4695
 
3831
- export type ReviewControllerData = {
4696
+ export type ReviewControllerResolveData = {
4697
+ /**
4698
+ * Review ID
4699
+ */
4700
+ id: string;
3832
4701
  /**
3833
4702
  * Region code for tenant context
3834
4703
  */
3835
- region: 'cn' | 'us' | 'de';
4704
+ region: 'cn' | 'us' | 'de' | 'gb';
4705
+ requestBody: ResolveReviewDto;
3836
4706
  };
3837
4707
 
3838
- export type ReviewControllerResponse = unknown;
4708
+ export type ReviewControllerResolveResponse = ResolveResultDto;
3839
4709
 
3840
- export type ReviewController1Data = {
4710
+ export type ReviewControllerUndoData = {
4711
+ /**
4712
+ * Review ID
4713
+ */
4714
+ id: string;
3841
4715
  /**
3842
4716
  * Region code for tenant context
3843
4717
  */
3844
- region: 'cn' | 'us' | 'de';
4718
+ region: 'cn' | 'us' | 'de' | 'gb';
3845
4719
  };
3846
4720
 
3847
- export type ReviewController1Response = unknown;
4721
+ export type ReviewControllerUndoResponse = UndoResultDto;
3848
4722
 
3849
- export type ReviewController2Data = {
4723
+ export type ReviewControllerBatchResolveData = {
3850
4724
  /**
3851
4725
  * Region code for tenant context
3852
4726
  */
3853
- region: 'cn' | 'us' | 'de';
4727
+ region: 'cn' | 'us' | 'de' | 'gb';
4728
+ /**
4729
+ * Batch resolution request containing review IDs and action
4730
+ */
4731
+ requestBody: BatchResolveDto;
3854
4732
  };
3855
4733
 
3856
- export type ReviewController2Response = unknown;
4734
+ export type ReviewControllerBatchResolveResponse = BatchResolveResultDto;
4735
+
4736
+ export type PayeeControllerCreateData = {
4737
+ requestBody: CreatePayeeDto;
4738
+ };
3857
4739
 
3858
- export type PayeeControllerResponse = unknown;
4740
+ export type PayeeControllerCreateResponse = PayeeResponseDto;
3859
4741
 
3860
4742
  export type PayeeControllerFindAllData = {
3861
4743
  /**
@@ -3913,11 +4795,30 @@ export type PayeeControllerFindOneData = {
3913
4795
 
3914
4796
  export type PayeeControllerFindOneResponse = PayeeResponseDto;
3915
4797
 
3916
- export type PayeeController1Response = unknown;
4798
+ export type PayeeControllerUpdateData = {
4799
+ /**
4800
+ * Payee UUID
4801
+ */
4802
+ id: string;
4803
+ requestBody: UpdatePayeeDto;
4804
+ };
4805
+
4806
+ export type PayeeControllerUpdateResponse = PayeeResponseDto;
4807
+
4808
+ export type PayeeControllerDeleteData = {
4809
+ /**
4810
+ * Payee UUID
4811
+ */
4812
+ id: string;
4813
+ };
4814
+
4815
+ export type PayeeControllerDeleteResponse = void;
3917
4816
 
3918
- export type PayeeController2Response = void;
4817
+ export type PayeeProfileAdminControllerCreateData = {
4818
+ requestBody: CreatePayeeProfileDto;
4819
+ };
3919
4820
 
3920
- export type PayeeProfileAdminControllerResponse = unknown;
4821
+ export type PayeeProfileAdminControllerCreateResponse = PayeeProfileResponseDto;
3921
4822
 
3922
4823
  export type PayeeProfileAdminControllerFindAllData = {
3923
4824
  /**
@@ -3982,28 +4883,59 @@ export type PayeeProfileAdminControllerFindOneData = {
3982
4883
  export type PayeeProfileAdminControllerFindOneResponse =
3983
4884
  PayeeProfileResponseDto;
3984
4885
 
3985
- export type PayeeProfileAdminController1Response = unknown;
4886
+ export type PayeeProfileAdminControllerUpdateData = {
4887
+ /**
4888
+ * Payee profile ID (UUID)
4889
+ */
4890
+ id: string;
4891
+ requestBody: UpdatePayeeProfileDto;
4892
+ };
4893
+
4894
+ export type PayeeProfileAdminControllerUpdateResponse = PayeeProfileResponseDto;
4895
+
4896
+ export type PayeeProfileAdminControllerDeleteData = {
4897
+ /**
4898
+ * Payee profile ID (UUID)
4899
+ */
4900
+ id: string;
4901
+ };
4902
+
4903
+ export type PayeeProfileAdminControllerDeleteResponse = void;
4904
+
4905
+ export type PayeeProfileAdminControllerVerifyData = {
4906
+ /**
4907
+ * Payee profile ID (UUID)
4908
+ */
4909
+ id: string;
4910
+ };
3986
4911
 
3987
- export type PayeeProfileAdminController2Response = void;
4912
+ export type PayeeProfileAdminControllerVerifyResponse = PayeeProfileResponseDto;
3988
4913
 
3989
- export type PayeeProfileAdminController3Response = unknown;
4914
+ export type PayeeProfileAdminControllerUnverifyData = {
4915
+ /**
4916
+ * Payee profile ID (UUID)
4917
+ */
4918
+ id: string;
4919
+ };
3990
4920
 
3991
- export type PayeeProfileAdminController4Response = unknown;
4921
+ export type PayeeProfileAdminControllerUnverifyResponse =
4922
+ PayeeProfileResponseDto;
3992
4923
 
3993
- export type CommodityControllerData = {
4924
+ export type CommodityControllerCreateData = {
3994
4925
  /**
3995
4926
  * Region code for tenant context
3996
4927
  */
3997
- region: 'cn' | 'us' | 'de';
4928
+ region: 'cn' | 'us' | 'de' | 'gb';
4929
+ requestBody: CreateCommodityDto;
3998
4930
  };
3999
4931
 
4000
- export type CommodityControllerResponse = unknown;
4932
+ export type CommodityControllerCreateResponse = CommodityResponseDto;
4001
4933
 
4002
4934
  export type CommodityControllerFindAllData = {
4003
4935
  /**
4004
4936
  * Region code for tenant context
4005
4937
  */
4006
- region: 'cn' | 'us' | 'de';
4938
+ region: 'cn' | 'us' | 'de' | 'gb';
4007
4939
  /**
4008
4940
  * Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
4009
4941
  */
@@ -4020,7 +4952,7 @@ export type CommodityControllerFindOneData = {
4020
4952
  /**
4021
4953
  * Region code for tenant context
4022
4954
  */
4023
- region: 'cn' | 'us' | 'de';
4955
+ region: 'cn' | 'us' | 'de' | 'gb';
4024
4956
  /**
4025
4957
  * Commodity symbol
4026
4958
  */
@@ -4029,50 +4961,64 @@ export type CommodityControllerFindOneData = {
4029
4961
 
4030
4962
  export type CommodityControllerFindOneResponse = CommodityResponseDto;
4031
4963
 
4032
- export type CommodityController1Data = {
4964
+ export type CommodityControllerUpdateData = {
4033
4965
  /**
4034
4966
  * Region code for tenant context
4035
4967
  */
4036
- region: 'cn' | 'us' | 'de';
4968
+ region: 'cn' | 'us' | 'de' | 'gb';
4969
+ requestBody: UpdateCommodityDto;
4970
+ /**
4971
+ * Commodity symbol
4972
+ */
4973
+ symbol: string;
4037
4974
  };
4038
4975
 
4039
- export type CommodityController1Response = unknown;
4976
+ export type CommodityControllerUpdateResponse = CommodityResponseDto;
4040
4977
 
4041
- export type CommodityController2Data = {
4978
+ export type CommodityControllerDeleteData = {
4042
4979
  /**
4043
4980
  * Region code for tenant context
4044
4981
  */
4045
- region: 'cn' | 'us' | 'de';
4982
+ region: 'cn' | 'us' | 'de' | 'gb';
4983
+ /**
4984
+ * Commodity symbol
4985
+ */
4986
+ symbol: string;
4046
4987
  };
4047
4988
 
4048
- export type CommodityController2Response = void;
4989
+ export type CommodityControllerDeleteResponse = void;
4049
4990
 
4050
- export type CommodityController3Data = {
4991
+ export type CommodityControllerGetOrCreateData = {
4051
4992
  /**
4052
4993
  * Region code for tenant context
4053
4994
  */
4054
- region: 'cn' | 'us' | 'de';
4995
+ region: 'cn' | 'us' | 'de' | 'gb';
4996
+ /**
4997
+ * Commodity symbol
4998
+ */
4999
+ symbol: string;
4055
5000
  };
4056
5001
 
4057
- export type CommodityController3Response = unknown;
5002
+ export type CommodityControllerGetOrCreateResponse = CommodityResponseDto;
4058
5003
 
4059
- export type CommodityController4Data = {
5004
+ export type CommodityControllerBulkCreateData = {
4060
5005
  /**
4061
5006
  * Region code for tenant context
4062
5007
  */
4063
- region: 'cn' | 'us' | 'de';
5008
+ region: 'cn' | 'us' | 'de' | 'gb';
4064
5009
  };
4065
5010
 
4066
- export type CommodityController4Response = unknown;
5011
+ export type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
4067
5012
 
4068
- export type RecurringRuleControllerData = {
5013
+ export type RecurringRuleControllerCreateData = {
4069
5014
  /**
4070
5015
  * Region code for tenant context
4071
5016
  */
4072
- region: 'cn' | 'us' | 'de';
5017
+ region: 'cn' | 'us' | 'de' | 'gb';
5018
+ requestBody: CreateRecurringRuleDto;
4073
5019
  };
4074
5020
 
4075
- export type RecurringRuleControllerResponse = unknown;
5021
+ export type RecurringRuleControllerCreateResponse = RecurringRuleResponseDto;
4076
5022
 
4077
5023
  export type RecurringRuleControllerFindAllData = {
4078
5024
  /**
@@ -4090,20 +5036,26 @@ export type RecurringRuleControllerFindAllData = {
4090
5036
  /**
4091
5037
  * Region code for tenant context
4092
5038
  */
4093
- region: 'cn' | 'us' | 'de';
5039
+ region: 'cn' | 'us' | 'de' | 'gb';
4094
5040
  };
4095
5041
 
4096
5042
  export type RecurringRuleControllerFindAllResponse =
4097
5043
  Array<RecurringRuleResponseDto>;
4098
5044
 
4099
- export type RecurringRuleController1Data = {
5045
+ export type RecurringRuleControllerCreateFromTransactionData = {
4100
5046
  /**
4101
5047
  * Region code for tenant context
4102
5048
  */
4103
- region: 'cn' | 'us' | 'de';
5049
+ region: 'cn' | 'us' | 'de' | 'gb';
5050
+ requestBody: CreateRuleFromTransactionDto;
5051
+ /**
5052
+ * Source transaction ID
5053
+ */
5054
+ transactionId: string;
4104
5055
  };
4105
5056
 
4106
- export type RecurringRuleController1Response = unknown;
5057
+ export type RecurringRuleControllerCreateFromTransactionResponse =
5058
+ RecurringRuleResponseDto;
4107
5059
 
4108
5060
  export type RecurringRuleControllerFindOneData = {
4109
5061
  /**
@@ -4113,28 +5065,37 @@ export type RecurringRuleControllerFindOneData = {
4113
5065
  /**
4114
5066
  * Region code for tenant context
4115
5067
  */
4116
- region: 'cn' | 'us' | 'de';
5068
+ region: 'cn' | 'us' | 'de' | 'gb';
4117
5069
  };
4118
5070
 
4119
5071
  export type RecurringRuleControllerFindOneResponse = RecurringRuleResponseDto;
4120
5072
 
4121
- export type RecurringRuleController2Data = {
5073
+ export type RecurringRuleControllerUpdateData = {
5074
+ /**
5075
+ * Rule ID
5076
+ */
5077
+ id: string;
4122
5078
  /**
4123
5079
  * Region code for tenant context
4124
5080
  */
4125
- region: 'cn' | 'us' | 'de';
5081
+ region: 'cn' | 'us' | 'de' | 'gb';
5082
+ requestBody: UpdateRecurringRuleDto;
4126
5083
  };
4127
5084
 
4128
- export type RecurringRuleController2Response = unknown;
5085
+ export type RecurringRuleControllerUpdateResponse = RecurringRuleResponseDto;
4129
5086
 
4130
- export type RecurringRuleController3Data = {
5087
+ export type RecurringRuleControllerDeleteData = {
5088
+ /**
5089
+ * Rule ID
5090
+ */
5091
+ id: string;
4131
5092
  /**
4132
5093
  * Region code for tenant context
4133
5094
  */
4134
- region: 'cn' | 'us' | 'de';
5095
+ region: 'cn' | 'us' | 'de' | 'gb';
4135
5096
  };
4136
5097
 
4137
- export type RecurringRuleController3Response = void;
5098
+ export type RecurringRuleControllerDeleteResponse = void;
4138
5099
 
4139
5100
  export type RecurringRuleControllerGetWithStatsData = {
4140
5101
  /**
@@ -4144,7 +5105,7 @@ export type RecurringRuleControllerGetWithStatsData = {
4144
5105
  /**
4145
5106
  * Region code for tenant context
4146
5107
  */
4147
- region: 'cn' | 'us' | 'de';
5108
+ region: 'cn' | 'us' | 'de' | 'gb';
4148
5109
  };
4149
5110
 
4150
5111
  export type RecurringRuleControllerGetWithStatsResponse =
@@ -4158,7 +5119,7 @@ export type ExpectedTransactionControllerFindAllData = {
4158
5119
  /**
4159
5120
  * Region code for tenant context
4160
5121
  */
4161
- region: 'cn' | 'us' | 'de';
5122
+ region: 'cn' | 'us' | 'de' | 'gb';
4162
5123
  /**
4163
5124
  * Filter by recurring rule ID
4164
5125
  */
@@ -4180,7 +5141,7 @@ export type ExpectedTransactionControllerFindOverdueData = {
4180
5141
  /**
4181
5142
  * Region code for tenant context
4182
5143
  */
4183
- region: 'cn' | 'us' | 'de';
5144
+ region: 'cn' | 'us' | 'de' | 'gb';
4184
5145
  };
4185
5146
 
4186
5147
  export type ExpectedTransactionControllerFindOverdueResponse =
@@ -4194,74 +5155,104 @@ export type ExpectedTransactionControllerFindOneData = {
4194
5155
  /**
4195
5156
  * Region code for tenant context
4196
5157
  */
4197
- region: 'cn' | 'us' | 'de';
5158
+ region: 'cn' | 'us' | 'de' | 'gb';
4198
5159
  };
4199
5160
 
4200
5161
  export type ExpectedTransactionControllerFindOneResponse =
4201
5162
  ExpectedTransactionResponseDto;
4202
5163
 
4203
- export type ExpectedTransactionControllerData = {
5164
+ export type ExpectedTransactionControllerSkipData = {
5165
+ /**
5166
+ * Expected transaction ID
5167
+ */
5168
+ id: string;
4204
5169
  /**
4205
5170
  * Region code for tenant context
4206
5171
  */
4207
- region: 'cn' | 'us' | 'de';
5172
+ region: 'cn' | 'us' | 'de' | 'gb';
4208
5173
  };
4209
5174
 
4210
- export type ExpectedTransactionControllerResponse = unknown;
5175
+ export type ExpectedTransactionControllerSkipResponse =
5176
+ ExpectedTransactionResponseDto;
4211
5177
 
4212
- export type ExpectedTransactionController1Data = {
5178
+ export type ExpectedTransactionControllerUndoSkipData = {
5179
+ /**
5180
+ * Expected transaction ID
5181
+ */
5182
+ id: string;
4213
5183
  /**
4214
5184
  * Region code for tenant context
4215
5185
  */
4216
- region: 'cn' | 'us' | 'de';
5186
+ region: 'cn' | 'us' | 'de' | 'gb';
4217
5187
  };
4218
5188
 
4219
- export type ExpectedTransactionController1Response = unknown;
5189
+ export type ExpectedTransactionControllerUndoSkipResponse =
5190
+ ExpectedTransactionResponseDto;
4220
5191
 
4221
- export type ExpectedTransactionController2Data = {
5192
+ export type ExpectedTransactionControllerConfirmMatchData = {
5193
+ /**
5194
+ * Expected transaction ID
5195
+ */
5196
+ id: string;
4222
5197
  /**
4223
5198
  * Region code for tenant context
4224
5199
  */
4225
- region: 'cn' | 'us' | 'de';
5200
+ region: 'cn' | 'us' | 'de' | 'gb';
5201
+ requestBody: ConfirmMatchDto;
4226
5202
  };
4227
5203
 
4228
- export type ExpectedTransactionController2Response = unknown;
5204
+ export type ExpectedTransactionControllerConfirmMatchResponse = unknown;
4229
5205
 
4230
- export type ExpectedTransactionController3Data = {
5206
+ export type ExpectedTransactionControllerUnmatchData = {
5207
+ /**
5208
+ * Expected transaction ID
5209
+ */
5210
+ id: string;
4231
5211
  /**
4232
5212
  * Region code for tenant context
4233
5213
  */
4234
- region: 'cn' | 'us' | 'de';
5214
+ region: 'cn' | 'us' | 'de' | 'gb';
4235
5215
  };
4236
5216
 
4237
- export type ExpectedTransactionController3Response = unknown;
5217
+ export type ExpectedTransactionControllerUnmatchResponse = unknown;
4238
5218
 
4239
- export type ExpectedTransactionController4Data = {
5219
+ export type ExpectedTransactionControllerEnterNowData = {
5220
+ /**
5221
+ * Expected transaction ID
5222
+ */
5223
+ id: string;
4240
5224
  /**
4241
5225
  * Region code for tenant context
4242
5226
  */
4243
- region: 'cn' | 'us' | 'de';
5227
+ region: 'cn' | 'us' | 'de' | 'gb';
5228
+ requestBody: EnterNowDto;
4244
5229
  };
4245
5230
 
4246
- export type ExpectedTransactionController4Response = unknown;
5231
+ export type ExpectedTransactionControllerEnterNowResponse = unknown;
4247
5232
 
4248
5233
  export type ForecastControllerGetForecastData = {
4249
5234
  /**
4250
5235
  * Number of months to forecast (1-12, default 3)
4251
5236
  */
4252
5237
  months?: number;
5238
+ /**
5239
+ * Region code for tenant context
5240
+ */
5241
+ region: 'cn' | 'us' | 'de' | 'gb';
4253
5242
  };
4254
5243
 
4255
5244
  export type ForecastControllerGetForecastResponse = ForecastResponseDto;
4256
5245
 
4257
- export type TransactionRuleControllerData = {
5246
+ export type TransactionRuleControllerCreateData = {
4258
5247
  /**
4259
5248
  * Region code for tenant context
4260
5249
  */
4261
- region: 'cn' | 'us' | 'de';
5250
+ region: 'cn' | 'us' | 'de' | 'gb';
5251
+ requestBody: CreateTransactionRuleDto;
4262
5252
  };
4263
5253
 
4264
- export type TransactionRuleControllerResponse = unknown;
5254
+ export type TransactionRuleControllerCreateResponse =
5255
+ TransactionRuleResponseDto;
4265
5256
 
4266
5257
  export type TransactionRuleControllerListData = {
4267
5258
  /**
@@ -4287,7 +5278,7 @@ export type TransactionRuleControllerListData = {
4287
5278
  /**
4288
5279
  * Region code for tenant context
4289
5280
  */
4290
- region: 'cn' | 'us' | 'de';
5281
+ region: 'cn' | 'us' | 'de' | 'gb';
4291
5282
  };
4292
5283
 
4293
5284
  export type TransactionRuleControllerListResponse =
@@ -4297,20 +5288,22 @@ export type TransactionRuleControllerValidateData = {
4297
5288
  /**
4298
5289
  * Region code for tenant context
4299
5290
  */
4300
- region: 'cn' | 'us' | 'de';
5291
+ region: 'cn' | 'us' | 'de' | 'gb';
4301
5292
  requestBody: ValidateRuleDto;
4302
5293
  };
4303
5294
 
4304
5295
  export type TransactionRuleControllerValidateResponse = ValidateRuleResponseDto;
4305
5296
 
4306
- export type TransactionRuleController1Data = {
5297
+ export type TransactionRuleControllerBulkCreateData = {
4307
5298
  /**
4308
5299
  * Region code for tenant context
4309
5300
  */
4310
- region: 'cn' | 'us' | 'de';
5301
+ region: 'cn' | 'us' | 'de' | 'gb';
5302
+ requestBody: BulkCreateRulesDto;
4311
5303
  };
4312
5304
 
4313
- export type TransactionRuleController1Response = unknown;
5305
+ export type TransactionRuleControllerBulkCreateResponse =
5306
+ BulkCreateRulesResponseDto;
4314
5307
 
4315
5308
  export type TransactionRuleControllerExportData = {
4316
5309
  /**
@@ -4320,7 +5313,7 @@ export type TransactionRuleControllerExportData = {
4320
5313
  /**
4321
5314
  * Region code for tenant context
4322
5315
  */
4323
- region: 'cn' | 'us' | 'de';
5316
+ region: 'cn' | 'us' | 'de' | 'gb';
4324
5317
  };
4325
5318
 
4326
5319
  export type TransactionRuleControllerExportResponse = ExportRulesResponseDto;
@@ -4333,7 +5326,7 @@ export type TransactionRuleControllerGetStatisticsData = {
4333
5326
  /**
4334
5327
  * Region code for tenant context
4335
5328
  */
4336
- region: 'cn' | 'us' | 'de';
5329
+ region: 'cn' | 'us' | 'de' | 'gb';
4337
5330
  };
4338
5331
 
4339
5332
  export type TransactionRuleControllerGetStatisticsResponse =
@@ -4343,7 +5336,7 @@ export type TransactionRuleControllerGetDetailData = {
4343
5336
  /**
4344
5337
  * Region code for tenant context
4345
5338
  */
4346
- region: 'cn' | 'us' | 'de';
5339
+ region: 'cn' | 'us' | 'de' | 'gb';
4347
5340
  /**
4348
5341
  * Rule ID
4349
5342
  */
@@ -4353,29 +5346,39 @@ export type TransactionRuleControllerGetDetailData = {
4353
5346
  export type TransactionRuleControllerGetDetailResponse =
4354
5347
  TransactionRuleResponseDto;
4355
5348
 
4356
- export type TransactionRuleController2Data = {
5349
+ export type TransactionRuleControllerUpdateData = {
4357
5350
  /**
4358
5351
  * Region code for tenant context
4359
5352
  */
4360
- region: 'cn' | 'us' | 'de';
5353
+ region: 'cn' | 'us' | 'de' | 'gb';
5354
+ requestBody: UpdateTransactionRuleDto;
5355
+ /**
5356
+ * Rule ID to update
5357
+ */
5358
+ ruleId: string;
4361
5359
  };
4362
5360
 
4363
- export type TransactionRuleController2Response = unknown;
5361
+ export type TransactionRuleControllerUpdateResponse =
5362
+ TransactionRuleResponseDto;
4364
5363
 
4365
- export type TransactionRuleController3Data = {
5364
+ export type TransactionRuleControllerDeleteData = {
4366
5365
  /**
4367
5366
  * Region code for tenant context
4368
5367
  */
4369
- region: 'cn' | 'us' | 'de';
5368
+ region: 'cn' | 'us' | 'de' | 'gb';
5369
+ /**
5370
+ * Rule ID to delete
5371
+ */
5372
+ ruleId: string;
4370
5373
  };
4371
5374
 
4372
- export type TransactionRuleController3Response = void;
5375
+ export type TransactionRuleControllerDeleteResponse = void;
4373
5376
 
4374
5377
  export type TransactionRuleControllerTestData = {
4375
5378
  /**
4376
5379
  * Region code for tenant context
4377
5380
  */
4378
- region: 'cn' | 'us' | 'de';
5381
+ region: 'cn' | 'us' | 'de' | 'gb';
4379
5382
  requestBody: TestRuleDto;
4380
5383
  /**
4381
5384
  * Rule ID to test
@@ -4453,15 +5456,36 @@ export type PropertyControllerGetByKeyData = {
4453
5456
 
4454
5457
  export type PropertyControllerGetByKeyResponse = unknown;
4455
5458
 
4456
- export type PropertyControllerResponse = unknown;
5459
+ export type PropertyControllerUpdateData = {
5460
+ /**
5461
+ * Property key
5462
+ */
5463
+ key: string;
5464
+ requestBody: UpdatePropertyDto;
5465
+ };
5466
+
5467
+ export type PropertyControllerUpdateResponse = unknown;
4457
5468
 
4458
- export type PropertyController1Response = void;
5469
+ export type PropertyControllerDeleteData = {
5470
+ /**
5471
+ * Property key
5472
+ */
5473
+ key: string;
5474
+ };
5475
+
5476
+ export type PropertyControllerDeleteResponse = void;
5477
+
5478
+ export type ExportControllerExportBeancountResponse = unknown;
4459
5479
 
4460
5480
  export type FileImportControllerImportFileData = {
4461
5481
  /**
4462
5482
  * Bill file to import
4463
5483
  */
4464
5484
  formData: FileImportDto;
5485
+ /**
5486
+ * Region code for tenant context
5487
+ */
5488
+ region: 'cn' | 'us' | 'de' | 'gb';
4465
5489
  };
4466
5490
 
4467
5491
  export type FileImportControllerImportFileResponse = ImportResultDto;
@@ -4471,10 +5495,35 @@ export type FileImportControllerIdentifyFileData = {
4471
5495
  * File to identify
4472
5496
  */
4473
5497
  formData: FileImportDto;
5498
+ /**
5499
+ * Region code for tenant context
5500
+ */
5501
+ region: 'cn' | 'us' | 'de' | 'gb';
4474
5502
  };
4475
5503
 
4476
5504
  export type FileImportControllerIdentifyFileResponse = IdentifyResultDto;
4477
5505
 
5506
+ export type FileImportControllerImportBeancountData = {
5507
+ /**
5508
+ * Beancount file to import
5509
+ */
5510
+ formData: FileImportDto;
5511
+ /**
5512
+ * Region code for tenant context
5513
+ */
5514
+ region: 'cn' | 'us' | 'de' | 'gb';
5515
+ };
5516
+
5517
+ export type FileImportControllerImportBeancountResponse = {
5518
+ imported?: number;
5519
+ skipped?: number;
5520
+ failed?: number;
5521
+ accountsCreated?: number;
5522
+ errors?: Array<{
5523
+ [key: string]: unknown;
5524
+ }>;
5525
+ };
5526
+
4478
5527
  export type ImporterConfigControllerGetConfigData = {
4479
5528
  /**
4480
5529
  * 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
@@ -4483,28 +5532,82 @@ export type ImporterConfigControllerGetConfigData = {
4483
5532
  /**
4484
5533
  * Region code for tenant context
4485
5534
  */
4486
- region: 'cn' | 'us' | 'de';
5535
+ region: 'cn' | 'us' | 'de' | 'gb';
4487
5536
  };
4488
5537
 
4489
5538
  export type ImporterConfigControllerGetConfigResponse = ImporterConfigDto;
4490
5539
 
4491
- export type ImporterConfigControllerData = {
5540
+ export type ImporterConfigControllerUpdateConfigData = {
5541
+ /**
5542
+ * 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
5543
+ */
5544
+ importerId: string;
4492
5545
  /**
4493
5546
  * Region code for tenant context
4494
5547
  */
4495
- region: 'cn' | 'us' | 'de';
5548
+ region: 'cn' | 'us' | 'de' | 'gb';
5549
+ /**
5550
+ * Partial configuration update. Only provided fields will be updated.
5551
+ */
5552
+ requestBody: UpdateImporterConfigDto;
4496
5553
  };
4497
5554
 
4498
- export type ImporterConfigControllerResponse = unknown;
5555
+ export type ImporterConfigControllerUpdateConfigResponse = ImporterConfigDto;
4499
5556
 
4500
- export type ImporterConfigController1Data = {
5557
+ export type ImporterConfigControllerResetConfigData = {
5558
+ /**
5559
+ * 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
5560
+ */
5561
+ importerId: string;
4501
5562
  /**
4502
5563
  * Region code for tenant context
4503
5564
  */
4504
- region: 'cn' | 'us' | 'de';
5565
+ region: 'cn' | 'us' | 'de' | 'gb';
5566
+ };
5567
+
5568
+ export type ImporterConfigControllerResetConfigResponse = ImporterConfigDto;
5569
+
5570
+ export type PlatformControllerFindAllResponse = unknown;
5571
+
5572
+ export type PlatformControllerCreateData = {
5573
+ requestBody: CreatePlatformDto;
5574
+ };
5575
+
5576
+ export type PlatformControllerCreateResponse = unknown;
5577
+
5578
+ export type PlatformControllerGetPlatformListResponse = unknown;
5579
+
5580
+ export type PlatformControllerMatchPlatformsData = {
5581
+ /**
5582
+ * Search query — Chinese name, English name, or abbreviation
5583
+ */
5584
+ q: string;
5585
+ /**
5586
+ * Region code for category override lookup
5587
+ */
5588
+ region?: string;
5589
+ };
5590
+
5591
+ export type PlatformControllerMatchPlatformsResponse = unknown;
5592
+
5593
+ export type PlatformControllerUpdateData = {
5594
+ /**
5595
+ * Platform ID
5596
+ */
5597
+ id: string;
5598
+ requestBody: UpdatePlatformDto;
5599
+ };
5600
+
5601
+ export type PlatformControllerUpdateResponse = unknown;
5602
+
5603
+ export type PlatformControllerDeleteData = {
5604
+ /**
5605
+ * Platform ID
5606
+ */
5607
+ id: string;
4505
5608
  };
4506
5609
 
4507
- export type ImporterConfigController1Response = unknown;
5610
+ export type PlatformControllerDeleteResponse = void;
4508
5611
 
4509
5612
  export type ProviderSyncControllerSyncData = {
4510
5613
  /**
@@ -4528,6 +5631,13 @@ export type ProviderSyncControllerSyncData = {
4528
5631
 
4529
5632
  export type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
4530
5633
 
5634
+ export type ProviderSyncControllerGetSupportedProvidersData = {
5635
+ /**
5636
+ * Region code for tenant context
5637
+ */
5638
+ region: 'cn' | 'us' | 'de' | 'gb';
5639
+ };
5640
+
4531
5641
  export type ProviderSyncControllerGetSupportedProvidersResponse =
4532
5642
  SupportedProvidersResponseDto;
4533
5643
 
@@ -4536,17 +5646,29 @@ export type ProviderSyncControllerIsProviderSupportedData = {
4536
5646
  * Provider name to check
4537
5647
  */
4538
5648
  providerName: string;
5649
+ /**
5650
+ * Region code for tenant context
5651
+ */
5652
+ region: 'cn' | 'us' | 'de' | 'gb';
4539
5653
  };
4540
5654
 
4541
5655
  export type ProviderSyncControllerIsProviderSupportedResponse = unknown;
4542
5656
 
4543
5657
  export type TelemetryControllerReportTelemetryData = {
5658
+ /**
5659
+ * Region code for tenant context
5660
+ */
5661
+ region: 'cn' | 'us' | 'de' | 'gb';
4544
5662
  requestBody: ParserTelemetryReportDto;
4545
5663
  };
4546
5664
 
4547
5665
  export type TelemetryControllerReportTelemetryResponse = unknown;
4548
5666
 
4549
5667
  export type NlpControllerProcessNaturalLanguageData = {
5668
+ /**
5669
+ * Region code for tenant context
5670
+ */
5671
+ region: 'cn' | 'us' | 'de' | 'gb';
4550
5672
  /**
4551
5673
  * Natural language transaction input with optional session ID
4552
5674
  */
@@ -4557,124 +5679,39 @@ export type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
4557
5679
 
4558
5680
  export type NlpControllerClearSessionData = {
4559
5681
  /**
4560
- * Specific session ID to clear (defaults to user session)
5682
+ * Region code for tenant context
4561
5683
  */
4562
- sessionId?: string;
4563
- };
4564
-
4565
- export type NlpControllerClearSessionResponse = void;
4566
-
4567
- export type NlpControllerGetSessionData = {
5684
+ region: 'cn' | 'us' | 'de' | 'gb';
4568
5685
  /**
4569
- * Specific session ID to get (defaults to user session)
5686
+ * Specific session ID to clear (defaults to user session)
4570
5687
  */
4571
5688
  sessionId?: string;
4572
5689
  };
4573
5690
 
4574
- export type NlpControllerGetSessionResponse = unknown;
4575
-
4576
- export type PlatformControllerFindAllResponse = unknown;
4577
-
4578
- export type PlatformControllerResponse = unknown;
4579
-
4580
- export type PlatformControllerGetPlatformListResponse = unknown;
4581
-
4582
- export type PlatformController1Response = unknown;
4583
-
4584
- export type PlatformController2Response = void;
4585
-
4586
- export type SymbolControllerLookupSymbolData = {
4587
- /**
4588
- * Geographic area filter (e.g., CN, US)
4589
- */
4590
- area?: unknown;
4591
- /**
4592
- * Asset class filter
4593
- */
4594
- assetClass?: unknown;
4595
- /**
4596
- * Asset sub-class filter
4597
- */
4598
- assetSubClass?: unknown;
4599
- /**
4600
- * Include index symbols in results
4601
- */
4602
- includeIndices?: unknown;
4603
- /**
4604
- * Search query string
4605
- */
4606
- query?: unknown;
4607
- };
4608
-
4609
- export type SymbolControllerLookupSymbolResponse = unknown;
4610
-
4611
- export type SymbolControllerGetSymbolDataData = {
4612
- /**
4613
- * Data source provider
4614
- */
4615
- dataSource:
4616
- | 'ALPHA_VANTAGE'
4617
- | 'EOD_HISTORICAL_DATA'
4618
- | 'FINANCIAL_MODELING_PREP'
4619
- | 'MANUAL'
4620
- | 'RAPID_API'
4621
- | 'YAHOO'
4622
- | 'COINGECKO'
4623
- | 'TUSHARE'
4624
- | 'BLOOMBERG'
4625
- | 'CSI'
4626
- | 'STOOQ'
4627
- | 'TRADING_VIEW';
4628
- /**
4629
- * Include historical price data (0 or 1)
4630
- */
4631
- includeHistoricalData?: unknown;
4632
- /**
4633
- * Symbol identifier (e.g., ticker code)
4634
- */
4635
- symbol: string;
4636
- };
4637
-
4638
- export type SymbolControllerGetSymbolDataResponse = unknown;
5691
+ export type NlpControllerClearSessionResponse = void;
4639
5692
 
4640
- export type SymbolControllerGatherSymbolForDateData = {
4641
- /**
4642
- * Data source provider
4643
- */
4644
- dataSource:
4645
- | 'ALPHA_VANTAGE'
4646
- | 'EOD_HISTORICAL_DATA'
4647
- | 'FINANCIAL_MODELING_PREP'
4648
- | 'MANUAL'
4649
- | 'RAPID_API'
4650
- | 'YAHOO'
4651
- | 'COINGECKO'
4652
- | 'TUSHARE'
4653
- | 'BLOOMBERG'
4654
- | 'CSI'
4655
- | 'STOOQ'
4656
- | 'TRADING_VIEW';
5693
+ export type NlpControllerGetSessionData = {
4657
5694
  /**
4658
- * Date in ISO 8601 format (YYYY-MM-DD)
5695
+ * Region code for tenant context
4659
5696
  */
4660
- dateString: string;
5697
+ region: 'cn' | 'us' | 'de' | 'gb';
4661
5698
  /**
4662
- * Symbol identifier (e.g., ticker code)
5699
+ * Specific session ID to get (defaults to user session)
4663
5700
  */
4664
- symbol: string;
5701
+ sessionId?: string;
4665
5702
  };
4666
5703
 
4667
- export type SymbolControllerGatherSymbolForDateResponse = unknown;
4668
-
4669
- export type SymbolControllerResponse = unknown;
4670
-
4671
- export type CacheControllerFlushCacheResponse = unknown;
5704
+ export type NlpControllerGetSessionResponse = unknown;
4672
5705
 
4673
5706
  export type DashboardControllerGetNetWorthData = {
4674
5707
  /**
4675
5708
  * Date for balance calculation (ISO 8601 format)
4676
5709
  */
4677
5710
  date?: string;
5711
+ /**
5712
+ * Region code for tenant context
5713
+ */
5714
+ region: 'cn' | 'us' | 'de' | 'gb';
4678
5715
  };
4679
5716
 
4680
5717
  export type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
@@ -4688,6 +5725,10 @@ export type DashboardControllerGetAccountsData = {
4688
5725
  * Grouping strategy
4689
5726
  */
4690
5727
  groupBy?: 'platform' | 'assetClass';
5728
+ /**
5729
+ * Region code for tenant context
5730
+ */
5731
+ region: 'cn' | 'us' | 'de' | 'gb';
4691
5732
  };
4692
5733
 
4693
5734
  export type DashboardControllerGetAccountsResponse =
@@ -4699,6 +5740,10 @@ export type DashboardControllerGetCashFlowData = {
4699
5740
  * Period in YYYY-MM format
4700
5741
  */
4701
5742
  period: string;
5743
+ /**
5744
+ * Region code for tenant context
5745
+ */
5746
+ region: 'cn' | 'us' | 'de' | 'gb';
4702
5747
  };
4703
5748
 
4704
5749
  export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
@@ -4712,12 +5757,20 @@ export type ReportingControllerGetPortfolioTrendsData = {
4712
5757
  * Time period
4713
5758
  */
4714
5759
  period?: '1m' | '3m' | '6m' | '1y';
5760
+ /**
5761
+ * Region code for tenant context
5762
+ */
5763
+ region: 'cn' | 'us' | 'de' | 'gb';
4715
5764
  };
4716
5765
 
4717
5766
  export type ReportingControllerGetPortfolioTrendsResponse =
4718
5767
  PortfolioTrendsResponseDto;
4719
5768
 
4720
5769
  export type ReportingControllerGenerateSnapshotData = {
5770
+ /**
5771
+ * Region code for tenant context
5772
+ */
5773
+ region: 'cn' | 'us' | 'de' | 'gb';
4721
5774
  /**
4722
5775
  * Optional date (defaults to today)
4723
5776
  */
@@ -4728,13 +5781,17 @@ export type ReportingControllerGenerateSnapshotResponse =
4728
5781
  GenerateSnapshotResponse;
4729
5782
 
4730
5783
  export type ReportingControllerBackfillSnapshotsData = {
5784
+ /**
5785
+ * Region code for tenant context
5786
+ */
5787
+ region: 'cn' | 'us' | 'de' | 'gb';
4731
5788
  requestBody: BackfillSnapshotsBody;
4732
5789
  };
4733
5790
 
4734
5791
  export type ReportingControllerBackfillSnapshotsResponse =
4735
5792
  BackfillSnapshotsResponse;
4736
5793
 
4737
- export type ApiKeysControllerResponse = unknown;
5794
+ export type ApiKeysControllerCreateApiKeyResponse = unknown;
4738
5795
 
4739
5796
  export type AuthControllerAccessTokenLoginData = {
4740
5797
  requestBody: AnonymousLoginDto;
@@ -4742,6 +5799,8 @@ export type AuthControllerAccessTokenLoginData = {
4742
5799
 
4743
5800
  export type AuthControllerAccessTokenLoginResponse = unknown;
4744
5801
 
5802
+ export type CacheControllerFlushCacheResponse = unknown;
5803
+
4745
5804
  export type ExchangeRateControllerGetExchangeRateData = {
4746
5805
  /**
4747
5806
  * Date in ISO format (YYYY-MM-DD)
@@ -4759,6 +5818,8 @@ export type HealthControllerGetHealthResponse = unknown;
4759
5818
 
4760
5819
  export type HealthControllerCheckDatabaseResponse = unknown;
4761
5820
 
5821
+ export type HealthControllerCheckOpenBbResponse = unknown;
5822
+
4762
5823
  export type HealthControllerCheckRedisResponse = unknown;
4763
5824
 
4764
5825
  export type HealthControllerGetCircuitBreakersHealthResponse = unknown;
@@ -4774,77 +5835,8 @@ export type HealthControllerResetCircuitBreakerResponse = unknown;
4774
5835
 
4775
5836
  export type HealthControllerGetMetricsResponse = unknown;
4776
5837
 
4777
- export type HealthControllerGetHealthOfDataEnhancerData = {
4778
- /**
4779
- * Data enhancer name
4780
- */
4781
- name: string;
4782
- };
4783
-
4784
- export type HealthControllerGetHealthOfDataEnhancerResponse = unknown;
4785
-
4786
- export type HealthControllerCheckDataProvidersResponse = unknown;
4787
-
4788
- export type HealthControllerGetHealthOfDataProviderData = {
4789
- /**
4790
- * Data source identifier
4791
- */
4792
- dataSource: string;
4793
- };
4794
-
4795
- export type HealthControllerGetHealthOfDataProviderResponse = unknown;
4796
-
4797
5838
  export type InfoControllerGetInfoResponse = unknown;
4798
5839
 
4799
- export type LogoControllerGetLogoByDataSourceAndSymbolData = {
4800
- /**
4801
- * Data source identifier (e.g., YAHOO, COINGECKO)
4802
- */
4803
- dataSource: string;
4804
- /**
4805
- * Asset symbol (e.g., AAPL, BTC)
4806
- */
4807
- symbol: string;
4808
- };
4809
-
4810
- export type LogoControllerGetLogoByDataSourceAndSymbolResponse = unknown;
4811
-
4812
- export type LogoControllerGetLogoByUrlData = {
4813
- /**
4814
- * Website URL to fetch favicon from
4815
- */
4816
- url: string;
4817
- };
4818
-
4819
- export type LogoControllerGetLogoByUrlResponse = unknown;
4820
-
4821
- export type MarketDataControllerGetMarketDataBySymbolData = {
4822
- /**
4823
- * Data source provider
4824
- */
4825
- dataSource:
4826
- | 'ALPHA_VANTAGE'
4827
- | 'EOD_HISTORICAL_DATA'
4828
- | 'FINANCIAL_MODELING_PREP'
4829
- | 'MANUAL'
4830
- | 'RAPID_API'
4831
- | 'YAHOO'
4832
- | 'COINGECKO'
4833
- | 'TUSHARE'
4834
- | 'BLOOMBERG'
4835
- | 'CSI'
4836
- | 'STOOQ'
4837
- | 'TRADING_VIEW';
4838
- /**
4839
- * Symbol code
4840
- */
4841
- symbol: string;
4842
- };
4843
-
4844
- export type MarketDataControllerGetMarketDataBySymbolResponse = unknown;
4845
-
4846
- export type MarketDataControllerResponse = unknown;
4847
-
4848
5840
  export type $OpenApiTs = {
4849
5841
  '/api/v1/{region}/bean/accounts': {
4850
5842
  post: {
@@ -4953,6 +5945,39 @@ export type $OpenApiTs = {
4953
5945
  };
4954
5946
  };
4955
5947
  };
5948
+ '/api/v1/{region}/bean/account-standards': {
5949
+ get: {
5950
+ req: AccountStandardsControllerGetTemplatesData;
5951
+ res: {
5952
+ /**
5953
+ * Account templates retrieved successfully
5954
+ */
5955
+ 200: AccountStandardListResponseDto;
5956
+ };
5957
+ };
5958
+ };
5959
+ '/api/v1/{region}/bean/account-standards/template-metadata': {
5960
+ get: {
5961
+ req: AccountStandardsControllerGetTemplateMetadataData;
5962
+ res: {
5963
+ /**
5964
+ * Template metadata retrieved successfully
5965
+ */
5966
+ 200: TemplateMetadataResponseDto;
5967
+ };
5968
+ };
5969
+ };
5970
+ '/api/v1/{region}/bean/account-standards/regions': {
5971
+ get: {
5972
+ req: AccountStandardsControllerGetRegionsData;
5973
+ res: {
5974
+ /**
5975
+ * Regions metadata retrieved successfully
5976
+ */
5977
+ 200: RegionsMetadataResponseDto;
5978
+ };
5979
+ };
5980
+ };
4956
5981
  '/api/v1/{region}/bean/transactions': {
4957
5982
  post: {
4958
5983
  req: TransactionControllerCreateData;
@@ -4986,6 +6011,10 @@ export type $OpenApiTs = {
4986
6011
  * Transaction list
4987
6012
  */
4988
6013
  200: TransactionListResponseDto;
6014
+ /**
6015
+ * Validation failed
6016
+ */
6017
+ 400: ApiProblemResponseDto;
4989
6018
  /**
4990
6019
  * Authentication required
4991
6020
  */
@@ -4995,9 +6024,20 @@ export type $OpenApiTs = {
4995
6024
  };
4996
6025
  '/api/v1/{region}/bean/transactions/batch': {
4997
6026
  post: {
4998
- req: TransactionControllerData;
6027
+ req: TransactionControllerCreateBatchData;
4999
6028
  res: {
5000
- 201: unknown;
6029
+ /**
6030
+ * Transactions processed
6031
+ */
6032
+ 201: BatchTransactionResponseDto;
6033
+ /**
6034
+ * Invalid input
6035
+ */
6036
+ 400: ApiProblemResponseDto;
6037
+ /**
6038
+ * Authentication required
6039
+ */
6040
+ 401: ApiProblemResponseDto;
5001
6041
  };
5002
6042
  };
5003
6043
  };
@@ -5041,30 +6081,24 @@ export type $OpenApiTs = {
5041
6081
  };
5042
6082
  };
5043
6083
  delete: {
5044
- req: TransactionController1Data;
6084
+ req: TransactionControllerDeleteData;
5045
6085
  res: {
6086
+ /**
6087
+ * Transaction voided successfully
6088
+ */
5046
6089
  204: void;
5047
- };
5048
- };
5049
- };
5050
- '/api/v1/{region}/bean/account-standards': {
5051
- get: {
5052
- req: AccountStandardsControllerGetTemplatesData;
5053
- res: {
5054
6090
  /**
5055
- * Account templates retrieved successfully
6091
+ * Transaction already voided
5056
6092
  */
5057
- 200: AccountStandardListResponseDto;
5058
- };
5059
- };
5060
- };
5061
- '/api/v1/{region}/bean/account-standards/regions': {
5062
- get: {
5063
- res: {
6093
+ 400: ApiProblemResponseDto;
5064
6094
  /**
5065
- * Regions metadata retrieved successfully
6095
+ * Authentication required
5066
6096
  */
5067
- 200: RegionsMetadataResponseDto;
6097
+ 401: ApiProblemResponseDto;
6098
+ /**
6099
+ * Transaction not found
6100
+ */
6101
+ 404: ApiProblemResponseDto;
5068
6102
  };
5069
6103
  };
5070
6104
  };
@@ -5089,6 +6123,7 @@ export type $OpenApiTs = {
5089
6123
  };
5090
6124
  '/api/v1/{region}/bean/balances/multi-currency': {
5091
6125
  get: {
6126
+ req: BalanceControllerGetMultiCurrencyBalanceData;
5092
6127
  res: {
5093
6128
  /**
5094
6129
  * Balances calculated successfully
@@ -5131,32 +6166,44 @@ export type $OpenApiTs = {
5131
6166
  };
5132
6167
  '/api/v1/{region}/bean/reviews/{id}/resolve': {
5133
6168
  post: {
5134
- req: ReviewControllerData;
6169
+ req: ReviewControllerResolveData;
5135
6170
  res: {
5136
- 201: unknown;
6171
+ 200: ResolveResultDto;
5137
6172
  };
5138
6173
  };
5139
6174
  };
5140
6175
  '/api/v1/{region}/bean/reviews/{id}/undo': {
5141
6176
  post: {
5142
- req: ReviewController1Data;
6177
+ req: ReviewControllerUndoData;
5143
6178
  res: {
5144
- 201: unknown;
6179
+ 200: UndoResultDto;
5145
6180
  };
5146
6181
  };
5147
6182
  };
5148
6183
  '/api/v1/{region}/bean/reviews/batch-resolve': {
5149
6184
  post: {
5150
- req: ReviewController2Data;
6185
+ req: ReviewControllerBatchResolveData;
5151
6186
  res: {
5152
- 201: unknown;
6187
+ 200: BatchResolveResultDto;
5153
6188
  };
5154
6189
  };
5155
6190
  };
5156
6191
  '/api/v1/bean/payees': {
5157
6192
  post: {
6193
+ req: PayeeControllerCreateData;
5158
6194
  res: {
5159
- 201: unknown;
6195
+ /**
6196
+ * Payee created successfully
6197
+ */
6198
+ 201: PayeeResponseDto;
6199
+ /**
6200
+ * Invalid input data
6201
+ */
6202
+ 400: ApiProblemResponseDto;
6203
+ /**
6204
+ * Payee already exists
6205
+ */
6206
+ 409: ApiProblemResponseDto;
5160
6207
  };
5161
6208
  };
5162
6209
  get: {
@@ -5210,20 +6257,56 @@ export type $OpenApiTs = {
5210
6257
  };
5211
6258
  };
5212
6259
  put: {
6260
+ req: PayeeControllerUpdateData;
5213
6261
  res: {
5214
- 200: unknown;
6262
+ /**
6263
+ * Payee updated successfully
6264
+ */
6265
+ 200: PayeeResponseDto;
6266
+ /**
6267
+ * Invalid input data
6268
+ */
6269
+ 400: ApiProblemResponseDto;
6270
+ /**
6271
+ * Payee not found
6272
+ */
6273
+ 404: ApiProblemResponseDto;
5215
6274
  };
5216
6275
  };
5217
6276
  delete: {
6277
+ req: PayeeControllerDeleteData;
5218
6278
  res: {
6279
+ /**
6280
+ * Payee deleted successfully
6281
+ */
5219
6282
  204: void;
6283
+ /**
6284
+ * Payee not found
6285
+ */
6286
+ 404: ApiProblemResponseDto;
5220
6287
  };
5221
6288
  };
5222
6289
  };
5223
6290
  '/api/v1/admin/payee-profiles': {
5224
6291
  post: {
6292
+ req: PayeeProfileAdminControllerCreateData;
5225
6293
  res: {
5226
- 201: unknown;
6294
+ /**
6295
+ * Payee profile created successfully
6296
+ */
6297
+ 201: PayeeProfileResponseDto;
6298
+ /**
6299
+ * Validation failed
6300
+ */
6301
+ 400: ApiProblemResponseDto;
6302
+ /**
6303
+ * Admin access required
6304
+ */
6305
+ 403: ApiProblemResponseDto;
6306
+ /**
6307
+ * Payee profile already exists
6308
+ */
6309
+ 409: ApiProblemResponseDto;
5227
6310
  };
5228
6311
  };
5229
6312
  get: {
@@ -5259,33 +6342,96 @@ export type $OpenApiTs = {
5259
6342
  };
5260
6343
  };
5261
6344
  put: {
6345
+ req: PayeeProfileAdminControllerUpdateData;
5262
6346
  res: {
5263
- 200: unknown;
6347
+ /**
6348
+ * Payee profile updated successfully
6349
+ */
6350
+ 200: PayeeProfileResponseDto;
6351
+ /**
6352
+ * Admin access required
6353
+ */
6354
+ 403: ApiProblemResponseDto;
6355
+ /**
6356
+ * Payee profile not found
6357
+ */
6358
+ 404: ApiProblemResponseDto;
5264
6359
  };
5265
6360
  };
5266
6361
  delete: {
6362
+ req: PayeeProfileAdminControllerDeleteData;
5267
6363
  res: {
6364
+ /**
6365
+ * Payee profile deleted successfully
6366
+ */
5268
6367
  204: void;
6368
+ /**
6369
+ * Admin access required
6370
+ */
6371
+ 403: ApiProblemResponseDto;
6372
+ /**
6373
+ * Payee profile not found
6374
+ */
6375
+ 404: ApiProblemResponseDto;
6376
+ /**
6377
+ * Payee profile is in use and cannot be deleted
6378
+ */
6379
+ 409: ApiProblemResponseDto;
5269
6380
  };
5270
6381
  };
5271
6382
  };
5272
6383
  '/api/v1/admin/payee-profiles/{id}/verify': {
5273
6384
  post: {
6385
+ req: PayeeProfileAdminControllerVerifyData;
5274
6386
  res: {
5275
- 201: unknown;
6387
+ /**
6388
+ * Payee profile verified successfully
6389
+ */
6390
+ 201: PayeeProfileResponseDto;
6391
+ /**
6392
+ * Admin access required
6393
+ */
6394
+ 403: ApiProblemResponseDto;
6395
+ /**
6396
+ * Payee profile not found
6397
+ */
6398
+ 404: ApiProblemResponseDto;
5276
6399
  };
5277
6400
  };
5278
6401
  delete: {
6402
+ req: PayeeProfileAdminControllerUnverifyData;
5279
6403
  res: {
5280
- 200: unknown;
6404
+ /**
6405
+ * Payee profile unverified successfully
6406
+ */
6407
+ 200: PayeeProfileResponseDto;
6408
+ /**
6409
+ * Admin access required
6410
+ */
6411
+ 403: ApiProblemResponseDto;
6412
+ /**
6413
+ * Payee profile not found
6414
+ */
6415
+ 404: ApiProblemResponseDto;
5281
6416
  };
5282
6417
  };
5283
6418
  };
5284
6419
  '/api/v1/{region}/bean/commodities': {
5285
6420
  post: {
5286
- req: CommodityControllerData;
6421
+ req: CommodityControllerCreateData;
5287
6422
  res: {
5288
- 201: unknown;
6423
+ /**
6424
+ * Commodity created successfully
6425
+ */
6426
+ 201: CommodityResponseDto;
6427
+ /**
6428
+ * Invalid input data
6429
+ */
6430
+ 400: ApiProblemResponseDto;
6431
+ /**
6432
+ * Commodity already exists
6433
+ */
6434
+ 409: ApiProblemResponseDto;
5289
6435
  };
5290
6436
  };
5291
6437
  get: {
@@ -5313,39 +6459,74 @@ export type $OpenApiTs = {
5313
6459
  };
5314
6460
  };
5315
6461
  put: {
5316
- req: CommodityController1Data;
6462
+ req: CommodityControllerUpdateData;
5317
6463
  res: {
5318
- 200: unknown;
6464
+ /**
6465
+ * Commodity updated successfully
6466
+ */
6467
+ 200: CommodityResponseDto;
6468
+ /**
6469
+ * Invalid input data
6470
+ */
6471
+ 400: ApiProblemResponseDto;
6472
+ /**
6473
+ * Commodity not found
6474
+ */
6475
+ 404: ApiProblemResponseDto;
5319
6476
  };
5320
6477
  };
5321
6478
  delete: {
5322
- req: CommodityController2Data;
6479
+ req: CommodityControllerDeleteData;
5323
6480
  res: {
6481
+ /**
6482
+ * Commodity deleted successfully
6483
+ */
5324
6484
  204: void;
6485
+ /**
6486
+ * Commodity not found
6487
+ */
6488
+ 404: ApiProblemResponseDto;
5325
6489
  };
5326
6490
  };
5327
6491
  };
5328
6492
  '/api/v1/{region}/bean/commodities/{symbol}/ensure': {
5329
6493
  post: {
5330
- req: CommodityController3Data;
6494
+ req: CommodityControllerGetOrCreateData;
5331
6495
  res: {
5332
- 201: unknown;
6496
+ /**
6497
+ * Commodity retrieved or created
6498
+ */
6499
+ 200: CommodityResponseDto;
5333
6500
  };
5334
6501
  };
5335
6502
  };
5336
6503
  '/api/v1/{region}/bean/commodities/bulk': {
5337
6504
  post: {
5338
- req: CommodityController4Data;
6505
+ req: CommodityControllerBulkCreateData;
5339
6506
  res: {
5340
- 201: unknown;
6507
+ /**
6508
+ * Commodities created successfully
6509
+ */
6510
+ 201: Array<CommodityResponseDto>;
5341
6511
  };
5342
6512
  };
5343
6513
  };
5344
6514
  '/api/v1/{region}/bean/recurring-rules': {
5345
6515
  post: {
5346
- req: RecurringRuleControllerData;
6516
+ req: RecurringRuleControllerCreateData;
5347
6517
  res: {
5348
- 201: unknown;
6518
+ /**
6519
+ * Rule created successfully
6520
+ */
6521
+ 201: RecurringRuleResponseDto;
6522
+ /**
6523
+ * Invalid input data (e.g., autoCreate without accounts)
6524
+ */
6525
+ 400: unknown;
6526
+ /**
6527
+ * Rule with same name already exists
6528
+ */
6529
+ 409: unknown;
5349
6530
  };
5350
6531
  };
5351
6532
  get: {
@@ -5360,9 +6541,20 @@ export type $OpenApiTs = {
5360
6541
  };
5361
6542
  '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}': {
5362
6543
  post: {
5363
- req: RecurringRuleController1Data;
6544
+ req: RecurringRuleControllerCreateFromTransactionData;
5364
6545
  res: {
5365
- 201: unknown;
6546
+ /**
6547
+ * Rule created successfully
6548
+ */
6549
+ 201: RecurringRuleResponseDto;
6550
+ /**
6551
+ * Transaction not found
6552
+ */
6553
+ 404: ApiProblemResponseDto;
6554
+ /**
6555
+ * Rule with same name already exists or transaction already linked
6556
+ */
6557
+ 409: ApiProblemResponseDto;
5366
6558
  };
5367
6559
  };
5368
6560
  };
@@ -5381,15 +6573,33 @@ export type $OpenApiTs = {
5381
6573
  };
5382
6574
  };
5383
6575
  patch: {
5384
- req: RecurringRuleController2Data;
6576
+ req: RecurringRuleControllerUpdateData;
5385
6577
  res: {
5386
- 200: unknown;
6578
+ /**
6579
+ * Rule updated successfully
6580
+ */
6581
+ 200: RecurringRuleResponseDto;
6582
+ /**
6583
+ * Invalid input data
6584
+ */
6585
+ 400: unknown;
6586
+ /**
6587
+ * Rule not found
6588
+ */
6589
+ 404: unknown;
5387
6590
  };
5388
6591
  };
5389
6592
  delete: {
5390
- req: RecurringRuleController3Data;
6593
+ req: RecurringRuleControllerDeleteData;
5391
6594
  res: {
6595
+ /**
6596
+ * Rule deleted successfully
6597
+ */
5392
6598
  204: void;
6599
+ /**
6600
+ * Rule not found
6601
+ */
6602
+ 404: unknown;
5393
6603
  };
5394
6604
  };
5395
6605
  };
@@ -5447,37 +6657,96 @@ export type $OpenApiTs = {
5447
6657
  };
5448
6658
  '/api/v1/{region}/bean/expected-transactions/{id}/skip': {
5449
6659
  post: {
5450
- req: ExpectedTransactionControllerData;
6660
+ req: ExpectedTransactionControllerSkipData;
5451
6661
  res: {
5452
- 200: unknown;
6662
+ /**
6663
+ * Expected transaction skipped successfully
6664
+ */
6665
+ 200: ExpectedTransactionResponseDto;
6666
+ /**
6667
+ * Cannot skip - not in PENDING status
6668
+ */
6669
+ 400: unknown;
6670
+ /**
6671
+ * Expected transaction not found
6672
+ */
6673
+ 404: unknown;
5453
6674
  };
5454
6675
  };
5455
6676
  delete: {
5456
- req: ExpectedTransactionController1Data;
6677
+ req: ExpectedTransactionControllerUndoSkipData;
5457
6678
  res: {
5458
- 200: unknown;
6679
+ /**
6680
+ * Skip undone successfully
6681
+ */
6682
+ 200: ExpectedTransactionResponseDto;
6683
+ /**
6684
+ * Cannot undo - not in SKIPPED status
6685
+ */
6686
+ 400: unknown;
6687
+ /**
6688
+ * Expected transaction not found
6689
+ */
6690
+ 404: unknown;
5459
6691
  };
5460
6692
  };
5461
6693
  };
5462
6694
  '/api/v1/{region}/bean/expected-transactions/{id}/match': {
5463
6695
  post: {
5464
- req: ExpectedTransactionController2Data;
6696
+ req: ExpectedTransactionControllerConfirmMatchData;
5465
6697
  res: {
6698
+ /**
6699
+ * Match confirmed successfully
6700
+ */
5466
6701
  200: unknown;
6702
+ /**
6703
+ * Cannot match - not in PENDING status
6704
+ */
6705
+ 400: unknown;
6706
+ /**
6707
+ * Expected or actual transaction not found
6708
+ */
6709
+ 404: unknown;
6710
+ /**
6711
+ * Actual transaction already matched to another rule
6712
+ */
6713
+ 409: unknown;
5467
6714
  };
5468
6715
  };
5469
6716
  delete: {
5470
- req: ExpectedTransactionController3Data;
6717
+ req: ExpectedTransactionControllerUnmatchData;
5471
6718
  res: {
6719
+ /**
6720
+ * Match removed successfully
6721
+ */
5472
6722
  200: unknown;
6723
+ /**
6724
+ * Cannot unmatch - not in COMPLETED status
6725
+ */
6726
+ 400: unknown;
6727
+ /**
6728
+ * Expected transaction not found
6729
+ */
6730
+ 404: unknown;
5473
6731
  };
5474
6732
  };
5475
6733
  };
5476
6734
  '/api/v1/{region}/bean/expected-transactions/{id}/enter': {
5477
6735
  post: {
5478
- req: ExpectedTransactionController4Data;
6736
+ req: ExpectedTransactionControllerEnterNowData;
5479
6737
  res: {
6738
+ /**
6739
+ * Transaction created successfully
6740
+ */
5480
6741
  201: unknown;
6742
+ /**
6743
+ * Cannot enter - not in PENDING status or missing accounts
6744
+ */
6745
+ 400: unknown;
6746
+ /**
6747
+ * Expected transaction or accounts not found
6748
+ */
6749
+ 404: unknown;
5481
6750
  };
5482
6751
  };
5483
6752
  };
@@ -5494,9 +6763,24 @@ export type $OpenApiTs = {
5494
6763
  };
5495
6764
  '/api/v1/{region}/bean/transaction-rules': {
5496
6765
  post: {
5497
- req: TransactionRuleControllerData;
6766
+ req: TransactionRuleControllerCreateData;
5498
6767
  res: {
5499
- 201: unknown;
6768
+ /**
6769
+ * Rule updated successfully (upsert mode)
6770
+ */
6771
+ 200: TransactionRuleResponseDto;
6772
+ /**
6773
+ * Validation failed
6774
+ */
6775
+ 400: ApiProblemResponseDto;
6776
+ /**
6777
+ * Unauthorized
6778
+ */
6779
+ 401: ApiProblemResponseDto;
6780
+ /**
6781
+ * Resource conflict - another process is updating this rule
6782
+ */
6783
+ 409: ApiProblemResponseDto;
5500
6784
  };
5501
6785
  };
5502
6786
  get: {
@@ -5521,6 +6805,10 @@ export type $OpenApiTs = {
5521
6805
  * Validation result
5522
6806
  */
5523
6807
  200: ValidateRuleResponseDto;
6808
+ /**
6809
+ * Validation failed
6810
+ */
6811
+ 400: ApiProblemResponseDto;
5524
6812
  /**
5525
6813
  * Unauthorized
5526
6814
  */
@@ -5530,9 +6818,20 @@ export type $OpenApiTs = {
5530
6818
  };
5531
6819
  '/api/v1/{region}/bean/transaction-rules/bulk': {
5532
6820
  post: {
5533
- req: TransactionRuleController1Data;
6821
+ req: TransactionRuleControllerBulkCreateData;
5534
6822
  res: {
5535
- 201: unknown;
6823
+ /**
6824
+ * Bulk create completed
6825
+ */
6826
+ 201: BulkCreateRulesResponseDto;
6827
+ /**
6828
+ * Invalid bulk create data
6829
+ */
6830
+ 400: ApiProblemResponseDto;
6831
+ /**
6832
+ * Unauthorized
6833
+ */
6834
+ 401: ApiProblemResponseDto;
5536
6835
  };
5537
6836
  };
5538
6837
  };
@@ -5593,15 +6892,57 @@ export type $OpenApiTs = {
5593
6892
  };
5594
6893
  };
5595
6894
  put: {
5596
- req: TransactionRuleController2Data;
6895
+ req: TransactionRuleControllerUpdateData;
5597
6896
  res: {
5598
- 200: unknown;
6897
+ /**
6898
+ * Rule updated successfully
6899
+ */
6900
+ 200: TransactionRuleResponseDto;
6901
+ /**
6902
+ * Validation failed
6903
+ */
6904
+ 400: ApiProblemResponseDto;
6905
+ /**
6906
+ * Unauthorized
6907
+ */
6908
+ 401: ApiProblemResponseDto;
6909
+ /**
6910
+ * Forbidden - not owner of rule
6911
+ */
6912
+ 403: ApiProblemResponseDto;
6913
+ /**
6914
+ * Rule not found
6915
+ */
6916
+ 404: ApiProblemResponseDto;
6917
+ /**
6918
+ * Resource conflict - rule is being modified by another process
6919
+ */
6920
+ 409: ApiProblemResponseDto;
5599
6921
  };
5600
6922
  };
5601
6923
  delete: {
5602
- req: TransactionRuleController3Data;
6924
+ req: TransactionRuleControllerDeleteData;
5603
6925
  res: {
6926
+ /**
6927
+ * Rule deleted successfully
6928
+ */
5604
6929
  204: void;
6930
+ /**
6931
+ * Unauthorized
6932
+ */
6933
+ 401: ApiProblemResponseDto;
6934
+ /**
6935
+ * Forbidden - not owner of rule
6936
+ */
6937
+ 403: ApiProblemResponseDto;
6938
+ /**
6939
+ * Rule not found
6940
+ */
6941
+ 404: ApiProblemResponseDto;
6942
+ /**
6943
+ * Resource conflict - rule is being modified by another process
6944
+ */
6945
+ 409: ApiProblemResponseDto;
5605
6946
  };
5606
6947
  };
5607
6948
  };
@@ -5776,13 +7117,48 @@ export type $OpenApiTs = {
5776
7117
  };
5777
7118
  };
5778
7119
  put: {
7120
+ req: PropertyControllerUpdateData;
5779
7121
  res: {
7122
+ /**
7123
+ * Property updated successfully
7124
+ */
5780
7125
  200: unknown;
7126
+ /**
7127
+ * Unauthorized
7128
+ */
7129
+ 401: unknown;
7130
+ /**
7131
+ * Forbidden - insufficient permissions
7132
+ */
7133
+ 403: unknown;
5781
7134
  };
5782
7135
  };
5783
7136
  delete: {
7137
+ req: PropertyControllerDeleteData;
5784
7138
  res: {
7139
+ /**
7140
+ * Property deleted successfully
7141
+ */
5785
7142
  204: void;
7143
+ /**
7144
+ * Unauthorized
7145
+ */
7146
+ 401: unknown;
7147
+ /**
7148
+ * Forbidden - insufficient permissions
7149
+ */
7150
+ 403: unknown;
7151
+ /**
7152
+ * Property not found
7153
+ */
7154
+ 404: unknown;
7155
+ };
7156
+ };
7157
+ };
7158
+ '/api/v1/{region}/bean/export/beancount': {
7159
+ get: {
7160
+ res: {
7161
+ 200: unknown;
5786
7162
  };
5787
7163
  };
5788
7164
  };
@@ -5855,36 +7231,149 @@ export type $OpenApiTs = {
5855
7231
  };
5856
7232
  };
5857
7233
  };
5858
- '/api/v1/{region}/bean/import/config/{importerId}': {
7234
+ '/api/v1/{region}/bean/import/beancount': {
7235
+ post: {
7236
+ req: FileImportControllerImportBeancountData;
7237
+ res: {
7238
+ /**
7239
+ * Beancount file imported successfully
7240
+ */
7241
+ 200: {
7242
+ imported?: number;
7243
+ skipped?: number;
7244
+ failed?: number;
7245
+ accountsCreated?: number;
7246
+ errors?: Array<{
7247
+ [key: string]: unknown;
7248
+ }>;
7249
+ };
7250
+ /**
7251
+ * Bad request - invalid file or no file uploaded
7252
+ */
7253
+ 400: ApiProblemResponseDto;
7254
+ };
7255
+ };
7256
+ };
7257
+ '/api/v1/{region}/bean/import/config/{importerId}': {
7258
+ get: {
7259
+ req: ImporterConfigControllerGetConfigData;
7260
+ res: {
7261
+ /**
7262
+ * Configuration retrieved successfully
7263
+ */
7264
+ 200: ImporterConfigDto;
7265
+ /**
7266
+ * Invalid input - Unsupported importer
7267
+ */
7268
+ 400: ApiProblemResponseDto;
7269
+ /**
7270
+ * Unauthorized - Authentication required
7271
+ */
7272
+ 401: ApiProblemResponseDto;
7273
+ };
7274
+ };
7275
+ put: {
7276
+ req: ImporterConfigControllerUpdateConfigData;
7277
+ res: {
7278
+ /**
7279
+ * Configuration updated successfully
7280
+ */
7281
+ 200: ImporterConfigDto;
7282
+ /**
7283
+ * Invalid input - Validation failed
7284
+ */
7285
+ 400: ApiProblemResponseDto;
7286
+ /**
7287
+ * Configuration not found
7288
+ */
7289
+ 404: ApiProblemResponseDto;
7290
+ };
7291
+ };
7292
+ };
7293
+ '/api/v1/{region}/bean/import/config/{importerId}/reset': {
7294
+ post: {
7295
+ req: ImporterConfigControllerResetConfigData;
7296
+ res: {
7297
+ /**
7298
+ * Configuration reset successfully
7299
+ */
7300
+ 200: ImporterConfigDto;
7301
+ /**
7302
+ * Invalid input - Unsupported importer
7303
+ */
7304
+ 400: ApiProblemResponseDto;
7305
+ };
7306
+ };
7307
+ };
7308
+ '/api/v1/bean/platforms': {
7309
+ get: {
7310
+ res: {
7311
+ /**
7312
+ * List of platforms with binding and account counts
7313
+ */
7314
+ 200: unknown;
7315
+ };
7316
+ };
7317
+ post: {
7318
+ req: PlatformControllerCreateData;
7319
+ res: {
7320
+ /**
7321
+ * Platform created successfully
7322
+ */
7323
+ 201: unknown;
7324
+ /**
7325
+ * Platform already exists
7326
+ */
7327
+ 409: unknown;
7328
+ };
7329
+ };
7330
+ };
7331
+ '/api/v1/bean/platforms/list': {
5859
7332
  get: {
5860
- req: ImporterConfigControllerGetConfigData;
5861
7333
  res: {
5862
7334
  /**
5863
- * Configuration retrieved successfully
5864
- */
5865
- 200: ImporterConfigDto;
5866
- /**
5867
- * Invalid input - Unsupported importer
7335
+ * List of platforms with user binding status
5868
7336
  */
5869
- 400: ApiProblemResponseDto;
7337
+ 200: unknown;
7338
+ };
7339
+ };
7340
+ };
7341
+ '/api/v1/bean/platforms/match': {
7342
+ get: {
7343
+ req: PlatformControllerMatchPlatformsData;
7344
+ res: {
5870
7345
  /**
5871
- * Unauthorized - Authentication required
7346
+ * List of matching platforms with suggested segment names
5872
7347
  */
5873
- 401: ApiProblemResponseDto;
7348
+ 200: unknown;
5874
7349
  };
5875
7350
  };
7351
+ };
7352
+ '/api/v1/bean/platforms/{id}': {
5876
7353
  put: {
5877
- req: ImporterConfigControllerData;
7354
+ req: PlatformControllerUpdateData;
5878
7355
  res: {
7356
+ /**
7357
+ * Platform updated successfully
7358
+ */
5879
7359
  200: unknown;
7360
+ /**
7361
+ * Platform not found
7362
+ */
7363
+ 404: unknown;
5880
7364
  };
5881
7365
  };
5882
- };
5883
- '/api/v1/{region}/bean/import/config/{importerId}/reset': {
5884
- post: {
5885
- req: ImporterConfigController1Data;
7366
+ delete: {
7367
+ req: PlatformControllerDeleteData;
5886
7368
  res: {
5887
- 201: unknown;
7369
+ /**
7370
+ * Platform deleted successfully
7371
+ */
7372
+ 204: void;
7373
+ /**
7374
+ * Platform not found
7375
+ */
7376
+ 404: unknown;
5888
7377
  };
5889
7378
  };
5890
7379
  };
@@ -5913,6 +7402,7 @@ export type $OpenApiTs = {
5913
7402
  };
5914
7403
  '/api/v1/{region}/bean/import/provider/supported': {
5915
7404
  get: {
7405
+ req: ProviderSyncControllerGetSupportedProvidersData;
5916
7406
  res: {
5917
7407
  /**
5918
7408
  * List of supported providers
@@ -6002,110 +7492,6 @@ export type $OpenApiTs = {
6002
7492
  };
6003
7493
  };
6004
7494
  };
6005
- '/api/v1/bean/platforms': {
6006
- get: {
6007
- res: {
6008
- /**
6009
- * List of platforms with binding and account counts
6010
- */
6011
- 200: unknown;
6012
- };
6013
- };
6014
- post: {
6015
- res: {
6016
- 201: unknown;
6017
- };
6018
- };
6019
- };
6020
- '/api/v1/bean/platforms/list': {
6021
- get: {
6022
- res: {
6023
- /**
6024
- * List of platforms with user binding status
6025
- */
6026
- 200: unknown;
6027
- };
6028
- };
6029
- };
6030
- '/api/v1/bean/platforms/{id}': {
6031
- put: {
6032
- res: {
6033
- 200: unknown;
6034
- };
6035
- };
6036
- delete: {
6037
- res: {
6038
- 204: void;
6039
- };
6040
- };
6041
- };
6042
- '/api/v1/market/symbols/lookup': {
6043
- get: {
6044
- req: SymbolControllerLookupSymbolData;
6045
- res: {
6046
- /**
6047
- * Symbols found successfully
6048
- */
6049
- 200: unknown;
6050
- /**
6051
- * Invalid query parameters
6052
- */
6053
- 400: unknown;
6054
- };
6055
- };
6056
- };
6057
- '/api/v1/market/symbols/{dataSource}/{symbol}': {
6058
- get: {
6059
- req: SymbolControllerGetSymbolDataData;
6060
- res: {
6061
- /**
6062
- * Symbol data retrieved successfully
6063
- */
6064
- 200: unknown;
6065
- /**
6066
- * Invalid data source
6067
- */
6068
- 400: unknown;
6069
- /**
6070
- * Symbol not found
6071
- */
6072
- 404: unknown;
6073
- };
6074
- };
6075
- };
6076
- '/api/v1/market/symbols/{dataSource}/{symbol}/{dateString}': {
6077
- get: {
6078
- req: SymbolControllerGatherSymbolForDateData;
6079
- res: {
6080
- /**
6081
- * Historical data retrieved successfully
6082
- */
6083
- 200: unknown;
6084
- /**
6085
- * Invalid date format
6086
- */
6087
- 400: unknown;
6088
- /**
6089
- * Symbol data not found for specified date
6090
- */
6091
- 404: unknown;
6092
- };
6093
- };
6094
- };
6095
- '/api/v1/market/symbols/yahoo/batch-update': {
6096
- put: {
6097
- res: {
6098
- 200: unknown;
6099
- };
6100
- };
6101
- };
6102
- '/api/v1/cache/flush': {
6103
- post: {
6104
- res: {
6105
- 201: unknown;
6106
- };
6107
- };
6108
- };
6109
7495
  '/api/v1/{region}/dashboard/net-worth': {
6110
7496
  get: {
6111
7497
  req: DashboardControllerGetNetWorthData;
@@ -6215,7 +7601,14 @@ export type $OpenApiTs = {
6215
7601
  '/api/v1/auth/api-keys': {
6216
7602
  post: {
6217
7603
  res: {
7604
+ /**
7605
+ * API key created successfully
7606
+ */
6218
7607
  201: unknown;
7608
+ /**
7609
+ * Insufficient permissions to create API key
7610
+ */
7611
+ 403: unknown;
6219
7612
  };
6220
7613
  };
6221
7614
  };
@@ -6234,6 +7627,13 @@ export type $OpenApiTs = {
6234
7627
  };
6235
7628
  };
6236
7629
  };
7630
+ '/api/v1/cache/flush': {
7631
+ post: {
7632
+ res: {
7633
+ 201: unknown;
7634
+ };
7635
+ };
7636
+ };
6237
7637
  '/api/v1/market/exchange-rates/{symbol}/{dateString}': {
6238
7638
  get: {
6239
7639
  req: ExchangeRateControllerGetExchangeRateData;
@@ -6277,6 +7677,20 @@ export type $OpenApiTs = {
6277
7677
  };
6278
7678
  };
6279
7679
  };
7680
+ '/api/v1/health/openbb': {
7681
+ get: {
7682
+ res: {
7683
+ /**
7684
+ * OpenBB status
7685
+ */
7686
+ 200: unknown;
7687
+ /**
7688
+ * OpenBB unavailable
7689
+ */
7690
+ 503: unknown;
7691
+ };
7692
+ };
7693
+ };
6280
7694
  '/api/v1/health/redis': {
6281
7695
  get: {
6282
7696
  res: {
@@ -6342,66 +7756,6 @@ export type $OpenApiTs = {
6342
7756
  };
6343
7757
  };
6344
7758
  };
6345
- '/api/v1/health/data-enhancer/{name}': {
6346
- get: {
6347
- req: HealthControllerGetHealthOfDataEnhancerData;
6348
- res: {
6349
- /**
6350
- * Data enhancer is healthy
6351
- */
6352
- 200: unknown;
6353
- /**
6354
- * Unauthorized
6355
- */
6356
- 401: unknown;
6357
- /**
6358
- * Data enhancer unavailable
6359
- */
6360
- 503: unknown;
6361
- };
6362
- };
6363
- };
6364
- '/api/v1/health/data-providers': {
6365
- get: {
6366
- res: {
6367
- /**
6368
- * Data providers health status
6369
- */
6370
- 200: unknown;
6371
- /**
6372
- * Unauthorized
6373
- */
6374
- 401: unknown;
6375
- /**
6376
- * Data providers check failed
6377
- */
6378
- 503: unknown;
6379
- };
6380
- };
6381
- };
6382
- '/api/v1/health/data-provider/{dataSource}': {
6383
- get: {
6384
- req: HealthControllerGetHealthOfDataProviderData;
6385
- res: {
6386
- /**
6387
- * Data provider is healthy
6388
- */
6389
- 200: unknown;
6390
- /**
6391
- * Invalid data source
6392
- */
6393
- 400: unknown;
6394
- /**
6395
- * Unauthorized
6396
- */
6397
- 401: unknown;
6398
- /**
6399
- * Data provider unavailable
6400
- */
6401
- 503: unknown;
6402
- };
6403
- };
6404
- };
6405
7759
  '/api/v1/system/info': {
6406
7760
  get: {
6407
7761
  res: {
@@ -6412,70 +7766,4 @@ export type $OpenApiTs = {
6412
7766
  };
6413
7767
  };
6414
7768
  };
6415
- '/api/v1/market/logos/{dataSource}/{symbol}': {
6416
- get: {
6417
- req: LogoControllerGetLogoByDataSourceAndSymbolData;
6418
- res: {
6419
- /**
6420
- * Logo image stream (favicon)
6421
- */
6422
- 200: unknown;
6423
- /**
6424
- * Unauthorized
6425
- */
6426
- 401: unknown;
6427
- /**
6428
- * Logo not found for the specified asset
6429
- */
6430
- 404: unknown;
6431
- /**
6432
- * Service unavailable
6433
- */
6434
- 503: unknown;
6435
- };
6436
- };
6437
- };
6438
- '/api/v1/market/logos': {
6439
- get: {
6440
- req: LogoControllerGetLogoByUrlData;
6441
- res: {
6442
- /**
6443
- * Logo image stream (favicon)
6444
- */
6445
- 200: unknown;
6446
- /**
6447
- * Unauthorized
6448
- */
6449
- 401: unknown;
6450
- /**
6451
- * Service unavailable
6452
- */
6453
- 503: unknown;
6454
- };
6455
- };
6456
- };
6457
- '/api/v1/market-data/{dataSource}/{symbol}': {
6458
- get: {
6459
- req: MarketDataControllerGetMarketDataBySymbolData;
6460
- res: {
6461
- /**
6462
- * Market data retrieved successfully
6463
- */
6464
- 200: unknown;
6465
- /**
6466
- * Insufficient permissions to read market data
6467
- */
6468
- 403: unknown;
6469
- /**
6470
- * Market data not found
6471
- */
6472
- 404: unknown;
6473
- };
6474
- };
6475
- post: {
6476
- res: {
6477
- 201: unknown;
6478
- };
6479
- };
6480
- };
6481
7769
  };