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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -26,6 +26,10 @@ type CreateAccountDto = {
26
26
  * Account path (hierarchical, colon-separated)
27
27
  */
28
28
  path: string;
29
+ /**
30
+ * Display name to distinguish accounts at the same path (default: "")
31
+ */
32
+ displayName?: string;
29
33
  /**
30
34
  * Account open date
31
35
  */
@@ -78,6 +82,10 @@ type AccountResponseDto = {
78
82
  * Account path (hierarchical, colon-separated)
79
83
  */
80
84
  path: string;
85
+ /**
86
+ * Display name distinguishing multiple accounts at the same path
87
+ */
88
+ displayName: string;
81
89
  /**
82
90
  * Account type (root segment)
83
91
  */
@@ -164,6 +172,10 @@ type AccountListResponseDto = {
164
172
  total: number;
165
173
  };
166
174
  type UpdateAccountDto = {
175
+ /**
176
+ * Display name to distinguish accounts at the same path
177
+ */
178
+ displayName?: string;
167
179
  /**
168
180
  * Allowed currencies (null = no restriction)
169
181
  */
@@ -189,9 +201,7 @@ type UpdateAccountDto = {
189
201
  /**
190
202
  * Platform ID (references Platform.id), null to clear association
191
203
  */
192
- platformId?: {
193
- [key: string]: unknown;
194
- } | null;
204
+ platformId?: string | null;
195
205
  };
196
206
  type CloseAccountDto = {
197
207
  /**
@@ -211,6 +221,78 @@ type ReopenAccountDto = {
211
221
  */
212
222
  reopenDate?: string;
213
223
  };
224
+ type AccountStandardResponseDto = {
225
+ /**
226
+ * Account path (hierarchical, colon-separated)
227
+ */
228
+ path: string;
229
+ /**
230
+ * Account type in Beancount hierarchy
231
+ */
232
+ type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
233
+ /**
234
+ * i18n key for localized display name
235
+ */
236
+ i18nKey: string;
237
+ /**
238
+ * Short localized display name
239
+ */
240
+ name?: string;
241
+ /**
242
+ * Account description (stable semantics only)
243
+ */
244
+ description: string;
245
+ /**
246
+ * Account tags for categorization
247
+ */
248
+ tags: Array<string>;
249
+ /**
250
+ * Icon identifier for UI display
251
+ */
252
+ icon: string;
253
+ };
254
+ type AccountStandardListResponseDto = {
255
+ /**
256
+ * Array of account templates
257
+ */
258
+ items: Array<AccountStandardResponseDto>;
259
+ /**
260
+ * Total number of account templates
261
+ */
262
+ total: number;
263
+ /**
264
+ * Region code
265
+ */
266
+ region: string;
267
+ };
268
+ type TemplateMetadataDto = {
269
+ /**
270
+ * Whether this path can be extended
271
+ */
272
+ extendable: boolean;
273
+ /**
274
+ * Root account type
275
+ */
276
+ rootType: string;
277
+ };
278
+ type TemplateMetadataResponseDto = {
279
+ metadata?: TemplateMetadataDto;
280
+ };
281
+ type RegionConfigDto = {
282
+ currency: string;
283
+ dateFormat: string;
284
+ locale: string;
285
+ };
286
+ type RegionInfoDto = {
287
+ code: string;
288
+ displayName: string;
289
+ parent?: string;
290
+ chain: Array<string>;
291
+ config: RegionConfigDto;
292
+ };
293
+ type RegionsMetadataResponseDto = {
294
+ regions: Array<RegionInfoDto>;
295
+ };
214
296
  type CreatePostingDto = {
215
297
  /**
216
298
  * Account name in Beancount format (must start with uppercase, colon-separated)
@@ -285,7 +367,7 @@ type PostingResponseDto = {
285
367
  */
286
368
  account: string;
287
369
  /**
288
- * Amount (may be null if interpolated)
370
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
289
371
  */
290
372
  units?: string;
291
373
  /**
@@ -401,6 +483,84 @@ type ApiProblemResponseDto = {
401
483
  [key: string]: unknown;
402
484
  };
403
485
  };
486
+ type BatchCreateTransactionDto = {
487
+ /**
488
+ * Array of transactions to create
489
+ */
490
+ transactions: Array<CreateTransactionDto>;
491
+ };
492
+ type BatchTransactionErrorDto = {
493
+ /**
494
+ * Index of failed transaction in the input array
495
+ */
496
+ index: number;
497
+ /**
498
+ * Error message describing the failure
499
+ */
500
+ error: string;
501
+ /**
502
+ * Structured error code for programmatic handling
503
+ */
504
+ errorCode?: string;
505
+ };
506
+ type BatchTransactionResponseDto = {
507
+ /**
508
+ * Successfully created transactions
509
+ */
510
+ succeeded: Array<TransactionResponseDto>;
511
+ /**
512
+ * Failed transactions with error details
513
+ */
514
+ failed: Array<BatchTransactionErrorDto>;
515
+ };
516
+ type CorrectTransactionDto = {
517
+ /**
518
+ * Transaction date (ISO 8601 format)
519
+ */
520
+ date: string;
521
+ /**
522
+ * Transaction flag: * (cleared), ! (pending)
523
+ */
524
+ flag?: '*' | '!';
525
+ /**
526
+ * Payee name
527
+ */
528
+ payee?: string;
529
+ /**
530
+ * Transaction narration/description
531
+ */
532
+ narration: string;
533
+ /**
534
+ * Transaction tags (without # prefix)
535
+ */
536
+ tags?: Array<string>;
537
+ /**
538
+ * Transaction links (without ^ prefix)
539
+ */
540
+ links?: Array<string>;
541
+ /**
542
+ * Transaction postings (minimum 1, typically 2 for double-entry)
543
+ */
544
+ postings: Array<CreatePostingDto>;
545
+ /**
546
+ * Transaction-level metadata
547
+ */
548
+ meta?: {
549
+ [key: string]: unknown;
550
+ };
551
+ /**
552
+ * Unique key for idempotent transaction creation. If provided, duplicate requests with the same key will return the existing transaction.
553
+ */
554
+ idempotencyKey?: string;
555
+ /**
556
+ * Auto-create accounts if not found. When true, missing accounts will be automatically created. When false (default for API), missing accounts will cause a validation error. Set to true for quick entry scenarios where you want to create accounts on-the-fly.
557
+ */
558
+ autoCreateAccounts?: boolean;
559
+ /**
560
+ * Reason for correcting/superseding the original transaction
561
+ */
562
+ correctionReason?: string;
563
+ };
404
564
  type PostingDetailDto = {
405
565
  /**
406
566
  * Posting ID
@@ -415,7 +575,7 @@ type PostingDetailDto = {
415
575
  */
416
576
  accountName: string;
417
577
  /**
418
- * Amount (may be null if interpolated)
578
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
419
579
  */
420
580
  units?: string;
421
581
  /**
@@ -497,9 +657,9 @@ type TransactionDetailDto = {
497
657
  */
498
658
  status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
499
659
  /**
500
- * Source type (how the transaction was created)
660
+ * Source type (free-form string from transaction metadata, e.g. import, api)
501
661
  */
502
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
662
+ sourceType?: string;
503
663
  /**
504
664
  * Source platform (e.g., alipay, wechat)
505
665
  */
@@ -524,6 +684,14 @@ type TransactionDetailDto = {
524
684
  * Correction reason (if voided or superseded)
525
685
  */
526
686
  correctionReason?: string;
687
+ /**
688
+ * ID of the transaction that supersedes this one (set when status=SUPERSEDED)
689
+ */
690
+ supersededBy?: string;
691
+ /**
692
+ * ID of the transaction this one corrected/replaced (back-link on the replacement)
693
+ */
694
+ originalTxn?: string;
527
695
  };
528
696
  /**
529
697
  * Transaction flag
@@ -533,10 +701,6 @@ type flag2 = 'CLEARED' | 'PENDING' | 'PADDING' | 'SUMMARIZE' | 'TRANSFER' | 'CON
533
701
  * Transaction status
534
702
  */
535
703
  type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
536
- /**
537
- * Source type (how the transaction was created)
538
- */
539
- type sourceType = 'NLP' | 'CSV' | 'OCR' | 'API';
540
704
  type TransactionListResponseDto = {
541
705
  /**
542
706
  * List of transactions
@@ -555,6 +719,22 @@ type TransactionListResponseDto = {
555
719
  */
556
720
  offset: number;
557
721
  };
722
+ type TagSuggestionDto = {
723
+ /**
724
+ * Tag name
725
+ */
726
+ tag: string;
727
+ /**
728
+ * Usage count across ACTIVE transactions
729
+ */
730
+ count: number;
731
+ };
732
+ type TagSuggestionsResponseDto = {
733
+ /**
734
+ * Tag suggestions sorted as requested
735
+ */
736
+ data: Array<TagSuggestionDto>;
737
+ };
558
738
  type UpdateTransactionDto = {
559
739
  /**
560
740
  * Transaction flag (CLEARED, PENDING, etc.)
@@ -583,61 +763,6 @@ type UpdateTransactionDto = {
583
763
  [key: string]: unknown;
584
764
  };
585
765
  };
586
- type AccountStandardResponseDto = {
587
- /**
588
- * Account path (hierarchical, colon-separated)
589
- */
590
- path: string;
591
- /**
592
- * Account type in Beancount hierarchy
593
- */
594
- type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
595
- /**
596
- * i18n key for localized display name
597
- */
598
- i18nKey?: string;
599
- /**
600
- * Account description
601
- */
602
- description?: string;
603
- /**
604
- * Account tags for categorization
605
- */
606
- tags?: Array<string>;
607
- /**
608
- * Icon identifier for UI display
609
- */
610
- icon?: string;
611
- };
612
- type AccountStandardListResponseDto = {
613
- /**
614
- * Array of account templates
615
- */
616
- items: Array<AccountStandardResponseDto>;
617
- /**
618
- * Total number of account templates
619
- */
620
- total: number;
621
- /**
622
- * Region code
623
- */
624
- region: string;
625
- };
626
- type RegionConfigDto = {
627
- currency: string;
628
- dateFormat: string;
629
- locale: string;
630
- };
631
- type RegionInfoDto = {
632
- code: string;
633
- displayName: string;
634
- parent?: string;
635
- chain: Array<string>;
636
- config: RegionConfigDto;
637
- };
638
- type RegionsMetadataResponseDto = {
639
- regions: Array<RegionInfoDto>;
640
- };
641
766
  type BalanceResponseDto = {
642
767
  /**
643
768
  * Account name
@@ -702,9 +827,9 @@ type TransactionSummaryDto = {
702
827
  */
703
828
  accountName?: string;
704
829
  /**
705
- * Source type (NLP, CSV, OCR, API)
830
+ * Source type (free-form string from transaction metadata, e.g. import, api)
706
831
  */
707
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
832
+ sourceType?: string;
708
833
  /**
709
834
  * Source platform (e.g., alipay, wechat)
710
835
  */
@@ -728,9 +853,9 @@ type ReviewSummaryDto = {
728
853
  */
729
854
  confidence: number;
730
855
  /**
731
- * Confidence level derived from score
856
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
732
857
  */
733
- confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW';
858
+ confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW' | null;
734
859
  /**
735
860
  * i18n message key for summary (e.g., review.summary.duplicate). Translate on frontend with summaryParams.
736
861
  */
@@ -746,7 +871,7 @@ type ReviewSummaryDto = {
746
871
  */
747
872
  matchReasons: Array<string>;
748
873
  /**
749
- * Source type (NLP, CSV, OCR, API)
874
+ * Source type (free-form string from transaction metadata, e.g. import, api)
750
875
  */
751
876
  sourceType: string;
752
877
  /**
@@ -791,7 +916,7 @@ type type2 = 'DUPLICATE' | 'RULE_MATCH' | 'PAYEE_MATCH' | 'ACCOUNT_VALIDATION' |
791
916
  */
792
917
  type status3 = 'PENDING' | 'RESOLVED' | 'EXPIRED' | 'CANCELLED';
793
918
  /**
794
- * Confidence level derived from score
919
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
795
920
  */
796
921
  type confidenceLevel = 'HIGH' | 'MEDIUM' | 'LOW';
797
922
  type ReviewListResponseDto = {
@@ -833,7 +958,7 @@ type DecisionOptionDto = {
833
958
  /**
834
959
  * The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
835
960
  */
836
- value: string;
961
+ value: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
837
962
  /**
838
963
  * i18n message key for display label (e.g., review.payee.accept.label)
839
964
  */
@@ -847,6 +972,10 @@ type DecisionOptionDto = {
847
972
  */
848
973
  recommended?: boolean;
849
974
  };
975
+ /**
976
+ * The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
977
+ */
978
+ type value = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
850
979
  type ReviewDetailDto = {
851
980
  /**
852
981
  * Review item ID
@@ -865,9 +994,9 @@ type ReviewDetailDto = {
865
994
  */
866
995
  confidence: number;
867
996
  /**
868
- * Confidence level derived from score
997
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
869
998
  */
870
- confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW';
999
+ confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW' | null;
871
1000
  /**
872
1001
  * i18n message key for summary (e.g., review.summary.duplicate). Translate on frontend with summaryParams.
873
1002
  */
@@ -883,7 +1012,7 @@ type ReviewDetailDto = {
883
1012
  */
884
1013
  matchReasons: Array<string>;
885
1014
  /**
886
- * Source type (NLP, CSV, OCR, API)
1015
+ * Source type (free-form string from transaction metadata, e.g. import, api)
887
1016
  */
888
1017
  sourceType: string;
889
1018
  /**
@@ -933,92 +1062,292 @@ type ReviewDetailDto = {
933
1062
  */
934
1063
  transactionId?: string;
935
1064
  };
936
- type PayeeResponseDto = {
1065
+ type ResolveReviewDto = {
937
1066
  /**
938
- * Unique identifier (UUID)
1067
+ * Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
939
1068
  */
940
- id: string;
1069
+ action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
941
1070
  /**
942
- * User ID (owner of this payee mapping)
1071
+ * Additional data for the decision (e.g., selected account ID)
943
1072
  */
944
- userId: string;
1073
+ data?: {
1074
+ [key: string]: unknown;
1075
+ };
1076
+ };
1077
+ /**
1078
+ * Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
1079
+ */
1080
+ type action = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
1081
+ type ResolveResultDto = {
945
1082
  /**
946
- * User's original payee name (e.g., 'Starbucks', 'McDonald')
1083
+ * Whether resolution was successful
947
1084
  */
948
- payee: string;
1085
+ success: boolean;
949
1086
  /**
950
- * Reference to global PayeeProfile (merchant info, i18n keys, categories)
1087
+ * i18n message key for result message (e.g., review.payee.result.mapped)
951
1088
  */
952
- payeeProfileId?: {
953
- [key: string]: unknown;
954
- } | null;
1089
+ messageKey?: string;
955
1090
  /**
956
- * User's custom category (overrides PayeeProfile category if set)
1091
+ * Parameters for message interpolation (e.g., { name: "PayeeName" })
957
1092
  */
958
- customCategory?: {
959
- [key: string]: unknown;
960
- } | null;
1093
+ messageParams?: {
1094
+ [key: string]: string;
1095
+ };
961
1096
  /**
962
- * User's custom tags (e.g., ['favorite', 'work_meal'])
1097
+ * Resolution ID for undo
963
1098
  */
964
- customTags: Array<string>;
1099
+ resolutionId: string;
965
1100
  /**
966
- * Usage count (number of times this payee was used in transactions)
1101
+ * Whether this decision can be undone
967
1102
  */
968
- useCount: number;
1103
+ canUndo: boolean;
969
1104
  /**
970
- * Last used timestamp
1105
+ * Deadline for undo (24h from resolution)
971
1106
  */
972
- lastUsedAt: string;
1107
+ undoDeadline: string;
973
1108
  /**
974
- * Extended metadata (location, notes, contact info, etc.)
1109
+ * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
975
1110
  */
976
- meta: {
977
- [key: string]: unknown;
978
- };
1111
+ learnedRuleId?: string;
1112
+ };
1113
+ type UndoResultDto = {
979
1114
  /**
980
- * Active status (inactive payees hidden from autocomplete)
1115
+ * Whether undo was successful
981
1116
  */
982
- isActive: boolean;
1117
+ success: boolean;
983
1118
  /**
984
- * Creation timestamp (first time this payee was used)
1119
+ * Message
985
1120
  */
986
- createdAt: string;
1121
+ message?: string;
987
1122
  /**
988
- * Last update timestamp
1123
+ * Review item ID that was restored
989
1124
  */
990
- updatedAt: string;
1125
+ reviewId: string;
991
1126
  };
992
- type PayeeListResponseDto = {
1127
+ type BatchResolveDto = {
993
1128
  /**
994
- * List of payees
1129
+ * Review item IDs to resolve
995
1130
  */
996
- items: Array<PayeeResponseDto>;
1131
+ reviewIds: Array<string>;
997
1132
  /**
998
- * Total number of payees
1133
+ * Decision action to apply to all items
999
1134
  */
1000
- total: number;
1001
- };
1002
- type PayeeAutocompleteResponseDto = {
1135
+ action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
1003
1136
  /**
1004
- * List of matching payee names
1137
+ * Additional data for the decision
1005
1138
  */
1006
- suggestions: Array<string>;
1139
+ data?: {
1140
+ [key: string]: unknown;
1141
+ };
1007
1142
  };
1008
- type PayeeStatsResponseDto = {
1143
+ type BatchResolveResultDto = {
1009
1144
  /**
1010
- * Payee name
1145
+ * Number of successfully resolved items
1011
1146
  */
1012
- payee: string;
1147
+ successCount: number;
1013
1148
  /**
1014
- * Total transaction count
1149
+ * Number of failed items
1015
1150
  */
1016
- transactionCount: number;
1151
+ failedCount: number;
1152
+ /**
1153
+ * Details for each item
1154
+ */
1155
+ results: Array<string>;
1156
+ };
1157
+ type CreatePayeeDto = {
1158
+ /**
1159
+ * User's original payee name (e.g., 'Starbucks', 'McDonald'). This is the raw payee string as entered by the user.
1160
+ */
1161
+ payee: string;
1162
+ /**
1163
+ * Optional reference to global PayeeProfile for standardized data (merchant info, i18n keys, categories)
1164
+ */
1165
+ payeeProfileId?: string;
1166
+ /**
1167
+ * User's custom category for this payee (overrides PayeeProfile category)
1168
+ */
1169
+ customCategory?: string;
1170
+ /**
1171
+ * User's custom tags for this payee (e.g., ['favorite', 'work_meal'])
1172
+ */
1173
+ customTags?: Array<string>;
1174
+ /**
1175
+ * Metadata for extended information (location, notes, contact info, etc.)
1176
+ */
1177
+ meta?: {
1178
+ [key: string]: unknown;
1179
+ };
1180
+ };
1181
+ type PayeeResponseDto = {
1182
+ /**
1183
+ * Unique identifier (UUID)
1184
+ */
1185
+ id: string;
1186
+ /**
1187
+ * User ID (owner of this payee mapping)
1188
+ */
1189
+ userId: string;
1190
+ /**
1191
+ * User's original payee name (e.g., 'Starbucks', 'McDonald')
1192
+ */
1193
+ payee: string;
1194
+ /**
1195
+ * Reference to global PayeeProfile (merchant info, i18n keys, categories)
1196
+ */
1197
+ payeeProfileId?: string | null;
1198
+ /**
1199
+ * User's custom category (overrides PayeeProfile category if set)
1200
+ */
1201
+ customCategory?: string | null;
1202
+ /**
1203
+ * User's custom tags (e.g., ['favorite', 'work_meal'])
1204
+ */
1205
+ customTags: Array<string>;
1206
+ /**
1207
+ * Usage count (number of times this payee was used in transactions)
1208
+ */
1209
+ useCount: number;
1210
+ /**
1211
+ * Last used timestamp
1212
+ */
1213
+ lastUsedAt: string;
1214
+ /**
1215
+ * Extended metadata (location, notes, contact info, etc.)
1216
+ */
1217
+ meta: {
1218
+ [key: string]: unknown;
1219
+ };
1220
+ /**
1221
+ * Active status (inactive payees hidden from autocomplete)
1222
+ */
1223
+ isActive: boolean;
1224
+ /**
1225
+ * Creation timestamp (first time this payee was used)
1226
+ */
1227
+ createdAt: string;
1228
+ /**
1229
+ * Last update timestamp
1230
+ */
1231
+ updatedAt: string;
1232
+ };
1233
+ type PayeeListResponseDto = {
1234
+ /**
1235
+ * List of payees
1236
+ */
1237
+ items: Array<PayeeResponseDto>;
1238
+ /**
1239
+ * Total number of payees
1240
+ */
1241
+ total: number;
1242
+ };
1243
+ type PayeeAutocompleteResponseDto = {
1244
+ /**
1245
+ * List of matching payee names
1246
+ */
1247
+ suggestions: Array<string>;
1248
+ };
1249
+ type PayeeStatsResponseDto = {
1250
+ /**
1251
+ * Payee name
1252
+ */
1253
+ payee: string;
1254
+ /**
1255
+ * Total transaction count
1256
+ */
1257
+ transactionCount: number;
1017
1258
  /**
1018
1259
  * Last used timestamp
1019
1260
  */
1020
1261
  lastUsedAt: string;
1021
1262
  };
1263
+ type UpdatePayeeDto = {
1264
+ /**
1265
+ * Optional reference to global PayeeProfile for standardized data (merchant info, i18n keys, categories)
1266
+ */
1267
+ payeeProfileId?: string;
1268
+ /**
1269
+ * User's custom category for this payee (overrides PayeeProfile category)
1270
+ */
1271
+ customCategory?: string;
1272
+ /**
1273
+ * User's custom tags for this payee (e.g., ['favorite', 'work_meal'])
1274
+ */
1275
+ customTags?: Array<string>;
1276
+ /**
1277
+ * Metadata for extended information (location, notes, contact info, etc.). Will merge with existing metadata.
1278
+ */
1279
+ meta?: {
1280
+ [key: string]: unknown;
1281
+ };
1282
+ /**
1283
+ * Enable or disable this payee. Disabled payees will not appear in autocomplete suggestions.
1284
+ */
1285
+ isActive?: boolean;
1286
+ };
1287
+ type CreatePayeeProfileDto = {
1288
+ /**
1289
+ * Canonical payee name (unique, case-insensitive). This is the primary identifier for the payee.
1290
+ */
1291
+ canonical: string;
1292
+ /**
1293
+ * Multi-language aliases for the payee. Used for matching user input in different languages.
1294
+ */
1295
+ aliases?: Array<string>;
1296
+ /**
1297
+ * Translation key for i18n integration (XLIFF translation system)
1298
+ */
1299
+ i18nKey?: string;
1300
+ /**
1301
+ * Payee category classification
1302
+ */
1303
+ category: 'RESTAURANT' | 'CAFE' | 'FAST_FOOD' | 'BAR' | 'SUPERMARKET' | 'CONVENIENCE_STORE' | 'SHOPPING_MALL' | 'ONLINE_SHOPPING' | 'TAXI' | 'RIDE_SHARING' | 'PUBLIC_TRANSPORT' | 'PARKING' | 'GAS_STATION' | 'UTILITIES' | 'TELECOM' | 'STREAMING' | 'HEALTHCARE' | 'EDUCATION' | 'ENTERTAINMENT' | 'SPORTS' | 'TRAVEL' | 'HOTEL' | 'OTHER';
1304
+ /**
1305
+ * Sub-category for more specific classification
1306
+ */
1307
+ subCategory?: string;
1308
+ /**
1309
+ * Country/region codes where the payee operates (ISO 3166-1 alpha-2)
1310
+ */
1311
+ countries?: Array<string>;
1312
+ /**
1313
+ * Primary operating country (ISO 3166-1 alpha-2)
1314
+ */
1315
+ primaryCountry?: string;
1316
+ /**
1317
+ * Search keywords for fuzzy matching
1318
+ */
1319
+ keywords?: Array<string>;
1320
+ /**
1321
+ * Payee logo URL
1322
+ */
1323
+ logoUrl?: string;
1324
+ /**
1325
+ * Official website URL
1326
+ */
1327
+ website?: string;
1328
+ /**
1329
+ * Payee description
1330
+ */
1331
+ description?: string;
1332
+ /**
1333
+ * Extended metadata (business hours, contact info, additional details)
1334
+ */
1335
+ meta?: {
1336
+ [key: string]: unknown;
1337
+ };
1338
+ /**
1339
+ * Data source for this profile
1340
+ */
1341
+ dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1342
+ };
1343
+ /**
1344
+ * Payee category classification
1345
+ */
1346
+ type category = 'RESTAURANT' | 'CAFE' | 'FAST_FOOD' | 'BAR' | 'SUPERMARKET' | 'CONVENIENCE_STORE' | 'SHOPPING_MALL' | 'ONLINE_SHOPPING' | 'TAXI' | 'RIDE_SHARING' | 'PUBLIC_TRANSPORT' | 'PARKING' | 'GAS_STATION' | 'UTILITIES' | 'TELECOM' | 'STREAMING' | 'HEALTHCARE' | 'EDUCATION' | 'ENTERTAINMENT' | 'SPORTS' | 'TRAVEL' | 'HOTEL' | 'OTHER';
1347
+ /**
1348
+ * Data source for this profile
1349
+ */
1350
+ type dataSource = 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1022
1351
  type PayeeProfileResponseDto = {
1023
1352
  /**
1024
1353
  * Unique identifier (UUID)
@@ -1035,9 +1364,7 @@ type PayeeProfileResponseDto = {
1035
1364
  /**
1036
1365
  * Translation key for i18n
1037
1366
  */
1038
- i18nKey?: {
1039
- [key: string]: unknown;
1040
- } | null;
1367
+ i18nKey?: string | null;
1041
1368
  /**
1042
1369
  * Payee category
1043
1370
  */
@@ -1045,9 +1372,7 @@ type PayeeProfileResponseDto = {
1045
1372
  /**
1046
1373
  * Sub-category
1047
1374
  */
1048
- subCategory?: {
1049
- [key: string]: unknown;
1050
- } | null;
1375
+ subCategory?: string | null;
1051
1376
  /**
1052
1377
  * Country codes where payee operates
1053
1378
  */
@@ -1055,9 +1380,7 @@ type PayeeProfileResponseDto = {
1055
1380
  /**
1056
1381
  * Primary operating country
1057
1382
  */
1058
- primaryCountry?: {
1059
- [key: string]: unknown;
1060
- } | null;
1383
+ primaryCountry?: string | null;
1061
1384
  /**
1062
1385
  * Search keywords
1063
1386
  */
@@ -1065,21 +1388,15 @@ type PayeeProfileResponseDto = {
1065
1388
  /**
1066
1389
  * Logo URL
1067
1390
  */
1068
- logoUrl?: {
1069
- [key: string]: unknown;
1070
- } | null;
1391
+ logoUrl?: string | null;
1071
1392
  /**
1072
1393
  * Official website
1073
1394
  */
1074
- website?: {
1075
- [key: string]: unknown;
1076
- } | null;
1395
+ website?: string | null;
1077
1396
  /**
1078
1397
  * Description
1079
1398
  */
1080
- description?: {
1081
- [key: string]: unknown;
1082
- } | null;
1399
+ description?: string | null;
1083
1400
  /**
1084
1401
  * Extended metadata
1085
1402
  */
@@ -1093,9 +1410,7 @@ type PayeeProfileResponseDto = {
1093
1410
  /**
1094
1411
  * Verification timestamp (null if not verified)
1095
1412
  */
1096
- verifiedAt?: {
1097
- [key: string]: unknown;
1098
- } | null;
1413
+ verifiedAt?: string | null;
1099
1414
  /**
1100
1415
  * Whether the profile is active
1101
1416
  */
@@ -1109,14 +1424,6 @@ type PayeeProfileResponseDto = {
1109
1424
  */
1110
1425
  updatedAt: string;
1111
1426
  };
1112
- /**
1113
- * Payee category
1114
- */
1115
- type category = 'RESTAURANT' | 'CAFE' | 'FAST_FOOD' | 'BAR' | 'SUPERMARKET' | 'CONVENIENCE_STORE' | 'SHOPPING_MALL' | 'ONLINE_SHOPPING' | 'TAXI' | 'RIDE_SHARING' | 'PUBLIC_TRANSPORT' | 'PARKING' | 'GAS_STATION' | 'UTILITIES' | 'TELECOM' | 'STREAMING' | 'HEALTHCARE' | 'EDUCATION' | 'ENTERTAINMENT' | 'SPORTS' | 'TRAVEL' | 'HOTEL' | 'OTHER';
1116
- /**
1117
- * Data source
1118
- */
1119
- type dataSource = 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1120
1427
  type PayeeProfileListResponseDto = {
1121
1428
  /**
1122
1429
  * List of payee profiles
@@ -1127,6 +1434,82 @@ type PayeeProfileListResponseDto = {
1127
1434
  */
1128
1435
  total: number;
1129
1436
  };
1437
+ type UpdatePayeeProfileDto = {
1438
+ /**
1439
+ * Multi-language aliases for the payee. Used for matching user input in different languages.
1440
+ */
1441
+ aliases?: Array<string>;
1442
+ /**
1443
+ * Translation key for i18n integration (XLIFF translation system)
1444
+ */
1445
+ i18nKey?: string;
1446
+ /**
1447
+ * Payee category classification
1448
+ */
1449
+ category?: 'RESTAURANT' | 'CAFE' | 'FAST_FOOD' | 'BAR' | 'SUPERMARKET' | 'CONVENIENCE_STORE' | 'SHOPPING_MALL' | 'ONLINE_SHOPPING' | 'TAXI' | 'RIDE_SHARING' | 'PUBLIC_TRANSPORT' | 'PARKING' | 'GAS_STATION' | 'UTILITIES' | 'TELECOM' | 'STREAMING' | 'HEALTHCARE' | 'EDUCATION' | 'ENTERTAINMENT' | 'SPORTS' | 'TRAVEL' | 'HOTEL' | 'OTHER';
1450
+ /**
1451
+ * Sub-category for more specific classification
1452
+ */
1453
+ subCategory?: string;
1454
+ /**
1455
+ * Country/region codes where the payee operates (ISO 3166-1 alpha-2)
1456
+ */
1457
+ countries?: Array<string>;
1458
+ /**
1459
+ * Primary operating country (ISO 3166-1 alpha-2)
1460
+ */
1461
+ primaryCountry?: string;
1462
+ /**
1463
+ * Search keywords for fuzzy matching
1464
+ */
1465
+ keywords?: Array<string>;
1466
+ /**
1467
+ * Payee logo URL
1468
+ */
1469
+ logoUrl?: string;
1470
+ /**
1471
+ * Official website URL
1472
+ */
1473
+ website?: string;
1474
+ /**
1475
+ * Payee description
1476
+ */
1477
+ description?: string;
1478
+ /**
1479
+ * Extended metadata (business hours, contact info, additional details)
1480
+ */
1481
+ meta?: {
1482
+ [key: string]: unknown;
1483
+ };
1484
+ /**
1485
+ * Data source for this profile
1486
+ */
1487
+ dataSource?: 'MANUAL' | 'IMPORT' | 'API' | 'CROWDSOURCED';
1488
+ /**
1489
+ * Whether the payee profile is active (soft delete)
1490
+ */
1491
+ isActive?: boolean;
1492
+ /**
1493
+ * Verification timestamp. Set to current time to verify, or null to unverify.
1494
+ */
1495
+ verifiedAt?: string | null;
1496
+ };
1497
+ type CreateCommodityDto = {
1498
+ /**
1499
+ * Commodity symbol (e.g., AAPL, USD, BTC) - corresponds to Beancount currency field
1500
+ */
1501
+ symbol: string;
1502
+ /**
1503
+ * Commodity definition date (ISO 8601, required per Beancount spec). Represents when this commodity was first defined in the accounting system.
1504
+ */
1505
+ date: string;
1506
+ /**
1507
+ * Metadata (corresponds to Beancount meta field). Can contain name, assetClass, precision, note, tags, etc.
1508
+ */
1509
+ metadata?: {
1510
+ [key: string]: unknown;
1511
+ };
1512
+ };
1130
1513
  type CommodityResponseDto = {
1131
1514
  /**
1132
1515
  * Unique identifier
@@ -1135,9 +1518,7 @@ type CommodityResponseDto = {
1135
1518
  /**
1136
1519
  * User ID (owner of the commodity)
1137
1520
  */
1138
- userId?: {
1139
- [key: string]: unknown;
1140
- } | null;
1521
+ userId?: string | null;
1141
1522
  /**
1142
1523
  * Commodity symbol (corresponds to Beancount currency field)
1143
1524
  */
@@ -1152,12 +1533,6 @@ type CommodityResponseDto = {
1152
1533
  metadata: {
1153
1534
  [key: string]: unknown;
1154
1535
  };
1155
- /**
1156
- * Reference to SymbolProfile (market data integration, SaaS feature)
1157
- */
1158
- symbolProfileId?: {
1159
- [key: string]: unknown;
1160
- } | null;
1161
1536
  /**
1162
1537
  * Creation timestamp
1163
1538
  */
@@ -1177,6 +1552,84 @@ type CommodityListResponseDto = {
1177
1552
  */
1178
1553
  total: number;
1179
1554
  };
1555
+ type UpdateCommodityDto = {
1556
+ /**
1557
+ * Commodity definition date (ISO 8601). Represents when this commodity was first defined in the accounting system.
1558
+ */
1559
+ date?: string;
1560
+ /**
1561
+ * Metadata (corresponds to Beancount meta field). Will merge with existing metadata. Can contain name, assetClass, precision, note, tags, etc.
1562
+ */
1563
+ metadata?: {
1564
+ [key: string]: unknown;
1565
+ };
1566
+ };
1567
+ type CreateRecurringRuleDto = {
1568
+ /**
1569
+ * Rule name (unique per user)
1570
+ */
1571
+ name: string;
1572
+ /**
1573
+ * Icon emoji
1574
+ */
1575
+ icon?: string;
1576
+ /**
1577
+ * Recurring frequency
1578
+ */
1579
+ frequency: 'WEEKLY' | 'BIWEEKLY' | 'MONTHLY' | 'BIMONTHLY' | 'QUARTERLY' | 'YEARLY' | 'CUSTOM';
1580
+ /**
1581
+ * Expected amount (positive number)
1582
+ */
1583
+ expectedAmount: number;
1584
+ /**
1585
+ * Expected day of month (1-31)
1586
+ */
1587
+ expectedDay?: number;
1588
+ /**
1589
+ * Custom interval in days (required for CUSTOM frequency)
1590
+ */
1591
+ customIntervalDays?: number;
1592
+ /**
1593
+ * Currency code
1594
+ */
1595
+ currency: string;
1596
+ /**
1597
+ * Payee matching pattern (supports wildcards)
1598
+ */
1599
+ matchPayeePattern?: string;
1600
+ /**
1601
+ * Amount tolerance percentage (0-1)
1602
+ */
1603
+ matchAmountTolerance: number;
1604
+ /**
1605
+ * Default expense account for auto-create
1606
+ */
1607
+ defaultExpenseAccount?: string;
1608
+ /**
1609
+ * Default payment account for auto-create
1610
+ */
1611
+ defaultPaymentAccount?: string;
1612
+ /**
1613
+ * Default payee for auto-create
1614
+ */
1615
+ defaultPayee?: string;
1616
+ /**
1617
+ * Auto-create transaction when expected date arrives
1618
+ */
1619
+ autoCreate: boolean;
1620
+ /**
1621
+ * Rule start date (ISO format)
1622
+ */
1623
+ startDate?: string;
1624
+ /**
1625
+ * Rule end date (ISO format)
1626
+ */
1627
+ endDate?: string;
1628
+ };
1629
+ /**
1630
+ * Recurring frequency
1631
+ */
1632
+ type frequency = 'WEEKLY' | 'BIWEEKLY' | 'MONTHLY' | 'BIMONTHLY' | 'QUARTERLY' | 'YEARLY' | 'CUSTOM';
1180
1633
  type RecurringRuleResponseDto = {
1181
1634
  /**
1182
1635
  * Rule ID
@@ -1285,6 +1738,20 @@ type RecurringRuleResponseDto = {
1285
1738
  */
1286
1739
  updatedAt: string;
1287
1740
  };
1741
+ type CreateRuleFromTransactionDto = {
1742
+ /**
1743
+ * Recurring frequency
1744
+ */
1745
+ frequency: 'WEEKLY' | 'BIWEEKLY' | 'MONTHLY' | 'BIMONTHLY' | 'QUARTERLY' | 'YEARLY' | 'CUSTOM';
1746
+ /**
1747
+ * Optional name override (default: transaction payee)
1748
+ */
1749
+ name?: string;
1750
+ /**
1751
+ * Optional icon emoji
1752
+ */
1753
+ icon?: string;
1754
+ };
1288
1755
  type RecurringRuleWithStatsResponseDto = {
1289
1756
  /**
1290
1757
  * Rule ID
@@ -1439,6 +1906,68 @@ type RecurringRuleWithStatsResponseDto = {
1439
1906
  */
1440
1907
  upcomingCount: number;
1441
1908
  };
1909
+ type UpdateRecurringRuleDto = {
1910
+ /**
1911
+ * Rule name
1912
+ */
1913
+ name?: string;
1914
+ /**
1915
+ * Icon emoji
1916
+ */
1917
+ icon?: string;
1918
+ /**
1919
+ * Recurring frequency
1920
+ */
1921
+ frequency?: 'WEEKLY' | 'BIWEEKLY' | 'MONTHLY' | 'BIMONTHLY' | 'QUARTERLY' | 'YEARLY' | 'CUSTOM';
1922
+ /**
1923
+ * Expected amount
1924
+ */
1925
+ expectedAmount?: number;
1926
+ /**
1927
+ * Expected day of month (1-31)
1928
+ */
1929
+ expectedDay?: number;
1930
+ /**
1931
+ * Custom interval in days
1932
+ */
1933
+ customIntervalDays?: number;
1934
+ /**
1935
+ * Currency code
1936
+ */
1937
+ currency?: string;
1938
+ /**
1939
+ * Payee matching pattern
1940
+ */
1941
+ matchPayeePattern?: string;
1942
+ /**
1943
+ * Amount tolerance percentage (0-1)
1944
+ */
1945
+ matchAmountTolerance?: number;
1946
+ /**
1947
+ * Default expense account
1948
+ */
1949
+ defaultExpenseAccount?: string;
1950
+ /**
1951
+ * Default payment account
1952
+ */
1953
+ defaultPaymentAccount?: string;
1954
+ /**
1955
+ * Default payee
1956
+ */
1957
+ defaultPayee?: string;
1958
+ /**
1959
+ * Auto-create transaction
1960
+ */
1961
+ autoCreate?: boolean;
1962
+ /**
1963
+ * Rule active status
1964
+ */
1965
+ isActive?: boolean;
1966
+ /**
1967
+ * Rule end date (ISO format)
1968
+ */
1969
+ endDate?: string;
1970
+ };
1442
1971
  type ExpectedTransactionRuleDto = {
1443
1972
  /**
1444
1973
  * Rule name
@@ -1526,6 +2055,34 @@ type ExpectedTransactionListResponseDto = {
1526
2055
  */
1527
2056
  total: number;
1528
2057
  };
2058
+ type ConfirmMatchDto = {
2059
+ /**
2060
+ * Transaction ID to match with
2061
+ */
2062
+ transactionId: string;
2063
+ };
2064
+ type EnterNowDto = {
2065
+ /**
2066
+ * Override expense account (uses rule default if not provided)
2067
+ */
2068
+ expenseAccount?: string;
2069
+ /**
2070
+ * Override payment account (uses rule default if not provided)
2071
+ */
2072
+ paymentAccount?: string;
2073
+ /**
2074
+ * Override amount (uses expected amount if not provided)
2075
+ */
2076
+ amount?: number;
2077
+ /**
2078
+ * Override payee (uses rule default if not provided)
2079
+ */
2080
+ payee?: string;
2081
+ /**
2082
+ * Optional narration
2083
+ */
2084
+ narration?: string;
2085
+ };
1529
2086
  type ForecastItemDto = {
1530
2087
  /**
1531
2088
  * Rule name
@@ -1546,9 +2103,7 @@ type ForecastItemDto = {
1546
2103
  /**
1547
2104
  * Rule icon emoji
1548
2105
  */
1549
- icon: {
1550
- [key: string]: unknown;
1551
- } | null;
2106
+ icon: string | null;
1552
2107
  /**
1553
2108
  * Currency code
1554
2109
  */
@@ -1606,6 +2161,50 @@ type ForecastResponseDto = {
1606
2161
  */
1607
2162
  periodEnd: string;
1608
2163
  };
2164
+ type CreateTransactionRuleDto = {
2165
+ name: string;
2166
+ description?: string;
2167
+ narrationKeywords?: Array<unknown[]>;
2168
+ payeeKeywords?: Array<unknown[]>;
2169
+ categoryKeywords?: Array<unknown[]>;
2170
+ /**
2171
+ * Payment method keywords (e.g., HuaBei, YuEBao)
2172
+ */
2173
+ methodKeywords?: Array<unknown[]>;
2174
+ /**
2175
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2176
+ */
2177
+ categoryAccount?: string;
2178
+ matchLogic: 'OR' | 'AND';
2179
+ /**
2180
+ * Minimum transaction amount (inclusive)
2181
+ */
2182
+ amountMin?: number;
2183
+ /**
2184
+ * Maximum transaction amount (inclusive)
2185
+ */
2186
+ amountMax?: number;
2187
+ priority: number;
2188
+ additionalTags?: Array<unknown[]>;
2189
+ additionalMetadata?: {
2190
+ [key: string]: unknown;
2191
+ };
2192
+ /**
2193
+ * If true, update existing rule with matching payeeKeywords[0] instead of creating new rule
2194
+ */
2195
+ upsertByPayee?: boolean;
2196
+ };
2197
+ type matchLogic = 'OR' | 'AND';
2198
+ type AmountRangeDto = {
2199
+ /**
2200
+ * Minimum amount
2201
+ */
2202
+ min?: number;
2203
+ /**
2204
+ * Maximum amount
2205
+ */
2206
+ max?: number;
2207
+ };
1609
2208
  type TransactionRuleResponseDto = {
1610
2209
  /**
1611
2210
  * Rule ID
@@ -1646,9 +2245,7 @@ type TransactionRuleResponseDto = {
1646
2245
  /**
1647
2246
  * Amount range for matching
1648
2247
  */
1649
- amountRange?: {
1650
- [key: string]: unknown;
1651
- };
2248
+ amountRange?: AmountRangeDto;
1652
2249
  /**
1653
2250
  * Rule priority (0-1000, higher = first match)
1654
2251
  */
@@ -1660,7 +2257,7 @@ type TransactionRuleResponseDto = {
1660
2257
  /**
1661
2258
  * Learning source: NLP, REVIEW_CENTER, or null for manual
1662
2259
  */
1663
- learningSource?: 'NLP' | 'REVIEW_CENTER';
2260
+ learningSource?: 'NLP' | 'REVIEW_CENTER' | null;
1664
2261
  /**
1665
2262
  * Whether auto-apply is enabled for this rule
1666
2263
  */
@@ -1677,7 +2274,7 @@ type TransactionRuleResponseDto = {
1677
2274
  * Additional metadata
1678
2275
  */
1679
2276
  additionalMetadata?: {
1680
- [key: string]: unknown;
2277
+ [key: string]: string;
1681
2278
  };
1682
2279
  /**
1683
2280
  * Created timestamp
@@ -1688,10 +2285,6 @@ type TransactionRuleResponseDto = {
1688
2285
  */
1689
2286
  updatedAt: string;
1690
2287
  };
1691
- /**
1692
- * Keyword matching logic
1693
- */
1694
- type matchLogic = 'OR' | 'AND';
1695
2288
  /**
1696
2289
  * Learning source: NLP, REVIEW_CENTER, or null for manual
1697
2290
  */
@@ -1758,6 +2351,41 @@ type ValidateRuleResponseDto = {
1758
2351
  */
1759
2352
  warnings: Array<unknown[]>;
1760
2353
  };
2354
+ type BulkCreateRulesDto = {
2355
+ /**
2356
+ * Array of rules to import
2357
+ */
2358
+ rules: Array<unknown[]>;
2359
+ /**
2360
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2361
+ */
2362
+ conflictStrategy: 'replace' | 'skip';
2363
+ };
2364
+ /**
2365
+ * Conflict handling strategy: skip (default) ignores duplicates, replace soft-deletes existing rule
2366
+ */
2367
+ type conflictStrategy = 'replace' | 'skip';
2368
+ type BulkCreateRulesResponseDto = {
2369
+ /**
2370
+ * Number of successfully created rules
2371
+ */
2372
+ successCount: number;
2373
+ /**
2374
+ * Number of failed rules
2375
+ */
2376
+ failureCount: number;
2377
+ /**
2378
+ * Error details for failed rules
2379
+ */
2380
+ errors: Array<{
2381
+ index?: number;
2382
+ message?: string;
2383
+ }>;
2384
+ /**
2385
+ * IDs of successfully created rules
2386
+ */
2387
+ createdRuleIds: Array<string>;
2388
+ };
1761
2389
  type ExportRulesResponseDto = {
1762
2390
  /**
1763
2391
  * Export timestamp
@@ -1811,6 +2439,39 @@ type RuleStatisticsResponseDto = {
1811
2439
  * Statistics time period
1812
2440
  */
1813
2441
  type period = '7d' | '30d' | '90d';
2442
+ type UpdateTransactionRuleDto = {
2443
+ name?: string;
2444
+ description?: string;
2445
+ narrationKeywords?: Array<unknown[]>;
2446
+ payeeKeywords?: Array<unknown[]>;
2447
+ categoryKeywords?: Array<unknown[]>;
2448
+ /**
2449
+ * Payment method keywords (e.g., HuaBei, YuEBao)
2450
+ */
2451
+ methodKeywords?: Array<unknown[]>;
2452
+ /**
2453
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2454
+ */
2455
+ categoryAccount?: string;
2456
+ matchLogic?: 'OR' | 'AND';
2457
+ /**
2458
+ * Minimum transaction amount (inclusive)
2459
+ */
2460
+ amountMin?: number;
2461
+ /**
2462
+ * Maximum transaction amount (inclusive)
2463
+ */
2464
+ amountMax?: number;
2465
+ priority?: number;
2466
+ /**
2467
+ * Enable or disable the rule
2468
+ */
2469
+ enabled?: boolean;
2470
+ additionalTags?: Array<unknown[]>;
2471
+ additionalMetadata?: {
2472
+ [key: string]: unknown;
2473
+ };
2474
+ };
1814
2475
  type TestRuleDto = {
1815
2476
  narration: string;
1816
2477
  payee?: string;
@@ -1944,6 +2605,12 @@ type colorScheme = 'DARK' | 'LIGHT';
1944
2605
  * View mode
1945
2606
  */
1946
2607
  type viewMode = 'DEFAULT' | 'ZEN';
2608
+ type UpdatePropertyDto = {
2609
+ /**
2610
+ * Property value
2611
+ */
2612
+ value: string;
2613
+ };
1947
2614
  type FileImportDto = {
1948
2615
  /**
1949
2616
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -2126,7 +2793,7 @@ type ImporterConfigDto = {
2126
2793
  /**
2127
2794
  * Importer identifier
2128
2795
  */
2129
- importerId: 'alipay' | 'alipay-web' | 'alipay-yuebao' | 'wechat' | 'wechat-xlsx' | 'boc' | 'boc-credit' | 'ccb' | 'cmb' | 'cmbc' | 'cmbc-credit' | 'icbc' | 'icbc-credit' | 'hsbc-hk';
2796
+ importerId: 'alipay' | 'alipay-web' | 'alipay-yuebao' | 'wechat' | 'wechat-xlsx' | 'boc' | 'boc-credit' | 'ccb' | 'cmb' | 'cmbc' | 'cmbc-credit' | 'icbc' | 'icbc-credit' | 'hsbc-hk-credit' | 'hsbc-hk-debit';
2130
2797
  /**
2131
2798
  * Configuration version (semver)
2132
2799
  */
@@ -2151,7 +2818,107 @@ type ImporterConfigDto = {
2151
2818
  /**
2152
2819
  * Importer identifier
2153
2820
  */
2154
- type importerId = 'alipay' | 'alipay-web' | 'alipay-yuebao' | 'wechat' | 'wechat-xlsx' | 'boc' | 'boc-credit' | 'ccb' | 'cmb' | 'cmbc' | 'cmbc-credit' | 'icbc' | 'icbc-credit' | 'hsbc-hk';
2821
+ type importerId = 'alipay' | 'alipay-web' | 'alipay-yuebao' | 'wechat' | 'wechat-xlsx' | 'boc' | 'boc-credit' | 'ccb' | 'cmb' | 'cmbc' | 'cmbc-credit' | 'icbc' | 'icbc-credit' | 'hsbc-hk-credit' | 'hsbc-hk-debit';
2822
+ type UpdateMapperDefaultsDto = {
2823
+ /**
2824
+ * Source account for transactions (Beancount format)
2825
+ */
2826
+ sourceAccount?: string;
2827
+ /**
2828
+ * Default currency (ISO 4217 code)
2829
+ */
2830
+ currency?: string;
2831
+ /**
2832
+ * Default expense account (optional)
2833
+ */
2834
+ expenseAccount?: string;
2835
+ /**
2836
+ * Default income account (optional)
2837
+ */
2838
+ incomeAccount?: string;
2839
+ /**
2840
+ * 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).
2841
+ */
2842
+ methodAccountMapping?: {
2843
+ [key: string]: unknown;
2844
+ };
2845
+ };
2846
+ type UpdateConfigDataDto = {
2847
+ /**
2848
+ * Mapper defaults configuration
2849
+ */
2850
+ defaults?: UpdateMapperDefaultsDto;
2851
+ };
2852
+ type UpdateImporterConfigDto = {
2853
+ /**
2854
+ * Configuration data (v1 schema)
2855
+ */
2856
+ data?: UpdateConfigDataDto;
2857
+ };
2858
+ type CreatePlatformDto = {
2859
+ /**
2860
+ * Platform name
2861
+ */
2862
+ name: string;
2863
+ /**
2864
+ * Platform canonical identifier (lowercase, kebab-case)
2865
+ */
2866
+ canonical: string;
2867
+ /**
2868
+ * Platform aliases (multi-language names for lookup)
2869
+ */
2870
+ aliases: Array<string>;
2871
+ /**
2872
+ * Platform URL
2873
+ */
2874
+ url: string;
2875
+ /**
2876
+ * Platform type
2877
+ */
2878
+ type: 'BANK' | 'BROKERAGE' | 'CRYPTO_EXCHANGE' | 'PAYMENT' | 'INVESTMENT' | 'INSURANCE' | 'OTHER';
2879
+ /**
2880
+ * Platform logo URL
2881
+ */
2882
+ logoUrl?: string;
2883
+ /**
2884
+ * Whether the platform is active
2885
+ */
2886
+ isActive?: boolean;
2887
+ };
2888
+ /**
2889
+ * Platform type
2890
+ */
2891
+ type type3 = 'BANK' | 'BROKERAGE' | 'CRYPTO_EXCHANGE' | 'PAYMENT' | 'INVESTMENT' | 'INSURANCE' | 'OTHER';
2892
+ type UpdatePlatformDto = {
2893
+ /**
2894
+ * Platform name
2895
+ */
2896
+ name?: string;
2897
+ /**
2898
+ * Platform canonical identifier (lowercase, kebab-case)
2899
+ */
2900
+ canonical?: string;
2901
+ /**
2902
+ * Platform aliases (multi-language names for lookup)
2903
+ */
2904
+ aliases?: Array<string>;
2905
+ /**
2906
+ * Platform URL
2907
+ */
2908
+ url?: string;
2909
+ /**
2910
+ * Platform type
2911
+ */
2912
+ type?: 'BANK' | 'BROKERAGE' | 'CRYPTO_EXCHANGE' | 'PAYMENT' | 'INVESTMENT' | 'INSURANCE' | 'OTHER';
2913
+ /**
2914
+ * Platform logo URL
2915
+ */
2916
+ logoUrl?: string;
2917
+ /**
2918
+ * Whether the platform is active
2919
+ */
2920
+ isActive?: boolean;
2921
+ };
2155
2922
  type ProviderSyncConfigDto = {
2156
2923
  /**
2157
2924
  * Source account for the first posting
@@ -2234,6 +3001,12 @@ type ProcessNlpDto = {
2234
3001
  * Session ID for multi-turn conversation (auto-generated if not provided)
2235
3002
  */
2236
3003
  sessionId?: string;
3004
+ /**
3005
+ * Parsed data from previous NLP response for session recovery. Send back the parsedData received in confirm_payee/confirm responses.
3006
+ */
3007
+ parsedData?: {
3008
+ [key: string]: unknown;
3009
+ };
2237
3010
  };
2238
3011
  type NlpTransactionInfoDto = {
2239
3012
  /**
@@ -2735,7 +3508,7 @@ type status4 = 'success' | 'pending' | 'error';
2735
3508
  /**
2736
3509
  * Action taken or requested
2737
3510
  */
2738
- type action = 'created' | 'ask' | 'confirm' | 'confirm_duplicate' | 'confirm_rule' | 'confirm_account' | 'confirm_payee' | 'cancel';
3511
+ type action2 = 'created' | 'ask' | 'confirm' | 'confirm_duplicate' | 'confirm_rule' | 'confirm_account' | 'confirm_payee' | 'cancel';
2739
3512
  /**
2740
3513
  * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
2741
3514
  */
@@ -3204,7 +3977,7 @@ type AccountControllerCreateData = {
3204
3977
  /**
3205
3978
  * Region code for tenant context
3206
3979
  */
3207
- region: 'cn' | 'us' | 'de';
3980
+ region: 'cn' | 'us' | 'de' | 'gb';
3208
3981
  requestBody: CreateAccountDto;
3209
3982
  };
3210
3983
  type AccountControllerCreateResponse = AccountResponseDto;
@@ -3224,7 +3997,7 @@ type AccountControllerFindAllData = {
3224
3997
  /**
3225
3998
  * Region code for tenant context
3226
3999
  */
3227
- region: 'cn' | 'us' | 'de';
4000
+ region: 'cn' | 'us' | 'de' | 'gb';
3228
4001
  /**
3229
4002
  * Search term for path or i18nKey
3230
4003
  */
@@ -3247,7 +4020,7 @@ type AccountControllerFindOneData = {
3247
4020
  /**
3248
4021
  * Region code for tenant context
3249
4022
  */
3250
- region: 'cn' | 'us' | 'de';
4023
+ region: 'cn' | 'us' | 'de' | 'gb';
3251
4024
  };
3252
4025
  type AccountControllerFindOneResponse = AccountResponseDto;
3253
4026
  type AccountControllerUpdateData = {
@@ -3258,7 +4031,7 @@ type AccountControllerUpdateData = {
3258
4031
  /**
3259
4032
  * Region code for tenant context
3260
4033
  */
3261
- region: 'cn' | 'us' | 'de';
4034
+ region: 'cn' | 'us' | 'de' | 'gb';
3262
4035
  requestBody: UpdateAccountDto;
3263
4036
  };
3264
4037
  type AccountControllerUpdateResponse = AccountResponseDto;
@@ -3270,7 +4043,7 @@ type AccountControllerDeleteData = {
3270
4043
  /**
3271
4044
  * Region code for tenant context
3272
4045
  */
3273
- region: 'cn' | 'us' | 'de';
4046
+ region: 'cn' | 'us' | 'de' | 'gb';
3274
4047
  };
3275
4048
  type AccountControllerDeleteResponse = void;
3276
4049
  type AccountControllerCloseData = {
@@ -3281,7 +4054,7 @@ type AccountControllerCloseData = {
3281
4054
  /**
3282
4055
  * Region code for tenant context
3283
4056
  */
3284
- region: 'cn' | 'us' | 'de';
4057
+ region: 'cn' | 'us' | 'de' | 'gb';
3285
4058
  requestBody: CloseAccountDto;
3286
4059
  };
3287
4060
  type AccountControllerCloseResponse = AccountResponseDto;
@@ -3293,15 +4066,48 @@ type AccountControllerReopenData = {
3293
4066
  /**
3294
4067
  * Region code for tenant context
3295
4068
  */
3296
- region: 'cn' | 'us' | 'de';
3297
- requestBody: ReopenAccountDto;
4069
+ region: 'cn' | 'us' | 'de' | 'gb';
4070
+ requestBody: ReopenAccountDto;
4071
+ };
4072
+ type AccountControllerReopenResponse = AccountResponseDto;
4073
+ type AccountStandardsControllerGetTemplatesData = {
4074
+ /**
4075
+ * Region code (cn, us, de)
4076
+ */
4077
+ region: 'cn' | 'us' | 'de' | 'gb';
4078
+ /**
4079
+ * Search term for path or description
4080
+ */
4081
+ search?: string;
4082
+ /**
4083
+ * Filter by account type
4084
+ */
4085
+ type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4086
+ };
4087
+ type AccountStandardsControllerGetTemplatesResponse = AccountStandardListResponseDto;
4088
+ type AccountStandardsControllerGetTemplateMetadataData = {
4089
+ /**
4090
+ * Account path to check
4091
+ */
4092
+ path: string;
4093
+ /**
4094
+ * Region code for tenant context
4095
+ */
4096
+ region: 'cn' | 'us' | 'de' | 'gb';
4097
+ };
4098
+ type AccountStandardsControllerGetTemplateMetadataResponse = TemplateMetadataResponseDto;
4099
+ type AccountStandardsControllerGetRegionsData = {
4100
+ /**
4101
+ * Region code for tenant context
4102
+ */
4103
+ region: 'cn' | 'us' | 'de' | 'gb';
3298
4104
  };
3299
- type AccountControllerReopenResponse = AccountResponseDto;
4105
+ type AccountStandardsControllerGetRegionsResponse = RegionsMetadataResponseDto;
3300
4106
  type TransactionControllerCreateData = {
3301
4107
  /**
3302
4108
  * Region code for tenant context
3303
4109
  */
3304
- region: 'cn' | 'us' | 'de';
4110
+ region: 'cn' | 'us' | 'de' | 'gb';
3305
4111
  /**
3306
4112
  * Transaction data with postings
3307
4113
  */
@@ -3332,7 +4138,7 @@ type TransactionControllerListData = {
3332
4138
  /**
3333
4139
  * Region code for tenant context
3334
4140
  */
3335
- region: 'cn' | 'us' | 'de';
4141
+ region: 'cn' | 'us' | 'de' | 'gb';
3336
4142
  /**
3337
4143
  * Search in narration and payee fields (max 200 chars)
3338
4144
  */
@@ -3343,68 +4149,82 @@ type TransactionControllerListData = {
3343
4149
  status?: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
3344
4150
  };
3345
4151
  type TransactionControllerListResponse = TransactionListResponseDto;
3346
- type TransactionControllerData = {
4152
+ type TransactionControllerCreateBatchData = {
3347
4153
  /**
3348
4154
  * Region code for tenant context
3349
4155
  */
3350
- region: 'cn' | 'us' | 'de';
4156
+ region: 'cn' | 'us' | 'de' | 'gb';
4157
+ requestBody: BatchCreateTransactionDto;
3351
4158
  };
3352
- type TransactionControllerResponse = unknown;
3353
- type TransactionControllerGetDetailData = {
4159
+ type TransactionControllerCreateBatchResponse = BatchTransactionResponseDto;
4160
+ type TransactionControllerCorrectData = {
3354
4161
  /**
3355
- * Transaction ID
4162
+ * Original transaction ID to correct
3356
4163
  */
3357
4164
  id: string;
3358
4165
  /**
3359
4166
  * Region code for tenant context
3360
4167
  */
3361
- region: 'cn' | 'us' | 'de';
4168
+ region: 'cn' | 'us' | 'de' | 'gb';
4169
+ requestBody: CorrectTransactionDto;
3362
4170
  };
3363
- type TransactionControllerGetDetailResponse = TransactionDetailDto;
3364
- type TransactionControllerUpdateData = {
4171
+ type TransactionControllerCorrectResponse = TransactionDetailDto;
4172
+ type TransactionControllerSuggestTagsData = {
3365
4173
  /**
3366
- * Transaction ID
4174
+ * Max suggestions (1-100, default 10)
3367
4175
  */
3368
- id: string;
4176
+ limit?: number;
4177
+ /**
4178
+ * Prefix match, case-insensitive (max 50 chars)
4179
+ */
4180
+ q?: string;
3369
4181
  /**
3370
4182
  * Region code for tenant context
3371
4183
  */
3372
- region: 'cn' | 'us' | 'de';
4184
+ region: 'cn' | 'us' | 'de' | 'gb';
3373
4185
  /**
3374
- * Fields to update (all optional)
4186
+ * usage (default) or name
3375
4187
  */
3376
- requestBody: UpdateTransactionDto;
4188
+ sort?: 'usage' | 'name';
3377
4189
  };
3378
- type TransactionControllerUpdateResponse = TransactionDetailDto;
3379
- type TransactionController1Data = {
4190
+ type TransactionControllerSuggestTagsResponse = TagSuggestionsResponseDto;
4191
+ type TransactionControllerGetDetailData = {
4192
+ /**
4193
+ * Transaction ID
4194
+ */
4195
+ id: string;
3380
4196
  /**
3381
4197
  * Region code for tenant context
3382
4198
  */
3383
- region: 'cn' | 'us' | 'de';
4199
+ region: 'cn' | 'us' | 'de' | 'gb';
3384
4200
  };
3385
- type TransactionController1Response = void;
3386
- type AccountStandardsControllerGetTemplatesData = {
4201
+ type TransactionControllerGetDetailResponse = TransactionDetailDto;
4202
+ type TransactionControllerUpdateData = {
3387
4203
  /**
3388
- * Region code (cn, us, de)
4204
+ * Transaction ID
3389
4205
  */
3390
- region: 'cn' | 'us' | 'de';
4206
+ id: string;
3391
4207
  /**
3392
- * Search term for path or description
4208
+ * Region code for tenant context
3393
4209
  */
3394
- search?: string;
4210
+ region: 'cn' | 'us' | 'de' | 'gb';
3395
4211
  /**
3396
- * Filter by account type
4212
+ * Fields to update (all optional)
3397
4213
  */
3398
- type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4214
+ requestBody: UpdateTransactionDto;
3399
4215
  };
3400
- type AccountStandardsControllerGetTemplatesResponse = AccountStandardListResponseDto;
3401
- type AccountStandardsControllerGetRegionsData = {
4216
+ type TransactionControllerUpdateResponse = TransactionDetailDto;
4217
+ type TransactionControllerDeleteData = {
3402
4218
  /**
3403
- * Region code (cn, us, de)
4219
+ * Transaction ID
4220
+ */
4221
+ id: string;
4222
+ /**
4223
+ * Region code for tenant context
3404
4224
  */
3405
- region: 'cn' | 'us' | 'de';
4225
+ region: 'cn' | 'us' | 'de' | 'gb';
3406
4226
  };
3407
- type AccountStandardsControllerGetRegionsResponse = RegionsMetadataResponseDto;
4227
+ type TransactionControllerDeleteResponse = void;
3408
4228
  type BalanceControllerGetBalanceData = {
3409
4229
  /**
3410
4230
  * Account name (e.g., "Assets:Bank:Checking")
@@ -3419,16 +4239,16 @@ type BalanceControllerGetBalanceData = {
3419
4239
  */
3420
4240
  date?: string;
3421
4241
  /**
3422
- * Region code (cn, us, de)
4242
+ * Region code for tenant context
3423
4243
  */
3424
- region: 'cn' | 'us' | 'de';
4244
+ region: 'cn' | 'us' | 'de' | 'gb';
3425
4245
  };
3426
4246
  type BalanceControllerGetBalanceResponse = BalanceResponseDto;
3427
4247
  type BalanceControllerGetMultiCurrencyBalanceData = {
3428
4248
  /**
3429
- * Region code (cn, us, de)
4249
+ * Region code for tenant context
3430
4250
  */
3431
- region: 'cn' | 'us' | 'de';
4251
+ region: 'cn' | 'us' | 'de' | 'gb';
3432
4252
  };
3433
4253
  type BalanceControllerGetMultiCurrencyBalanceResponse = MultiCurrencyBalanceResponseDto;
3434
4254
  type ReviewControllerFindAllData = {
@@ -3445,9 +4265,9 @@ type ReviewControllerFindAllData = {
3445
4265
  */
3446
4266
  page?: number;
3447
4267
  /**
3448
- * Region code (cn, us, de)
4268
+ * Region code for tenant context
3449
4269
  */
3450
- region: 'cn' | 'us' | 'de';
4270
+ region: 'cn' | 'us' | 'de' | 'gb';
3451
4271
  /**
3452
4272
  * Sort order
3453
4273
  */
@@ -3460,9 +4280,9 @@ type ReviewControllerFindAllData = {
3460
4280
  type ReviewControllerFindAllResponse = ReviewListResponseDto;
3461
4281
  type ReviewControllerGetStatsData = {
3462
4282
  /**
3463
- * Region code (cn, us, de)
4283
+ * Region code for tenant context
3464
4284
  */
3465
- region: 'cn' | 'us' | 'de';
4285
+ region: 'cn' | 'us' | 'de' | 'gb';
3466
4286
  };
3467
4287
  type ReviewControllerGetStatsResponse = ReviewStatsDto;
3468
4288
  type ReviewControllerFindOneData = {
@@ -3471,39 +4291,49 @@ type ReviewControllerFindOneData = {
3471
4291
  */
3472
4292
  id: string;
3473
4293
  /**
3474
- * Region code (cn, us, de)
4294
+ * Region code for tenant context
3475
4295
  */
3476
- region: 'cn' | 'us' | 'de';
4296
+ region: 'cn' | 'us' | 'de' | 'gb';
3477
4297
  };
3478
4298
  type ReviewControllerFindOneResponse = ReviewDetailDto;
3479
- type ReviewControllerData = {
4299
+ type ReviewControllerResolveData = {
3480
4300
  /**
3481
- * Region code (cn, us, de)
4301
+ * Review ID
3482
4302
  */
3483
- region: 'cn' | 'us' | 'de';
3484
- };
3485
- type ReviewControllerResponse = unknown;
3486
- type ReviewController1Data = {
4303
+ id: string;
3487
4304
  /**
3488
- * Region code (cn, us, de)
4305
+ * Region code for tenant context
3489
4306
  */
3490
- region: 'cn' | 'us' | 'de';
4307
+ region: 'cn' | 'us' | 'de' | 'gb';
4308
+ requestBody: ResolveReviewDto;
3491
4309
  };
3492
- type ReviewController1Response = unknown;
3493
- type ReviewController2Data = {
4310
+ type ReviewControllerResolveResponse = ResolveResultDto;
4311
+ type ReviewControllerUndoData = {
3494
4312
  /**
3495
- * Region code (cn, us, de)
4313
+ * Review ID
4314
+ */
4315
+ id: string;
4316
+ /**
4317
+ * Region code for tenant context
3496
4318
  */
3497
- region: 'cn' | 'us' | 'de';
4319
+ region: 'cn' | 'us' | 'de' | 'gb';
3498
4320
  };
3499
- type ReviewController2Response = unknown;
3500
- type PayeeControllerData = {
4321
+ type ReviewControllerUndoResponse = UndoResultDto;
4322
+ type ReviewControllerBatchResolveData = {
3501
4323
  /**
3502
- * Region code (cn, us, de)
4324
+ * Region code for tenant context
4325
+ */
4326
+ region: 'cn' | 'us' | 'de' | 'gb';
4327
+ /**
4328
+ * Batch resolution request containing review IDs and action
3503
4329
  */
3504
- region: 'cn' | 'us' | 'de';
4330
+ requestBody: BatchResolveDto;
4331
+ };
4332
+ type ReviewControllerBatchResolveResponse = BatchResolveResultDto;
4333
+ type PayeeControllerCreateData = {
4334
+ requestBody: CreatePayeeDto;
3505
4335
  };
3506
- type PayeeControllerResponse = unknown;
4336
+ type PayeeControllerCreateResponse = PayeeResponseDto;
3507
4337
  type PayeeControllerFindAllData = {
3508
4338
  /**
3509
4339
  * Filter by custom category
@@ -3517,10 +4347,6 @@ type PayeeControllerFindAllData = {
3517
4347
  * Filter by exact payee name match
3518
4348
  */
3519
4349
  payee?: string;
3520
- /**
3521
- * Region code (cn, us, de)
3522
- */
3523
- region: 'cn' | 'us' | 'de';
3524
4350
  /**
3525
4351
  * Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
3526
4352
  */
@@ -3540,10 +4366,6 @@ type PayeeControllerAutocompleteData = {
3540
4366
  * Search query for payee name (partial match, case-insensitive)
3541
4367
  */
3542
4368
  q: string;
3543
- /**
3544
- * Region code (cn, us, de)
3545
- */
3546
- region: 'cn' | 'us' | 'de';
3547
4369
  };
3548
4370
  type PayeeControllerAutocompleteResponse = PayeeAutocompleteResponseDto;
3549
4371
  type PayeeControllerGetTopPayeesData = {
@@ -3551,10 +4373,6 @@ type PayeeControllerGetTopPayeesData = {
3551
4373
  * Maximum number of results
3552
4374
  */
3553
4375
  limit?: number;
3554
- /**
3555
- * Region code (cn, us, de)
3556
- */
3557
- region: 'cn' | 'us' | 'de';
3558
4376
  };
3559
4377
  type PayeeControllerGetTopPayeesResponse = Array<PayeeStatsResponseDto>;
3560
4378
  type PayeeControllerFindOneData = {
@@ -3562,33 +4380,27 @@ type PayeeControllerFindOneData = {
3562
4380
  * Payee UUID
3563
4381
  */
3564
4382
  id: string;
3565
- /**
3566
- * Region code (cn, us, de)
3567
- */
3568
- region: 'cn' | 'us' | 'de';
3569
4383
  };
3570
4384
  type PayeeControllerFindOneResponse = PayeeResponseDto;
3571
- type PayeeController1Data = {
4385
+ type PayeeControllerUpdateData = {
3572
4386
  /**
3573
- * Region code (cn, us, de)
4387
+ * Payee UUID
3574
4388
  */
3575
- region: 'cn' | 'us' | 'de';
4389
+ id: string;
4390
+ requestBody: UpdatePayeeDto;
3576
4391
  };
3577
- type PayeeController1Response = unknown;
3578
- type PayeeController2Data = {
4392
+ type PayeeControllerUpdateResponse = PayeeResponseDto;
4393
+ type PayeeControllerDeleteData = {
3579
4394
  /**
3580
- * Region code (cn, us, de)
4395
+ * Payee UUID
3581
4396
  */
3582
- region: 'cn' | 'us' | 'de';
4397
+ id: string;
3583
4398
  };
3584
- type PayeeController2Response = void;
3585
- type PayeeProfileAdminControllerData = {
3586
- /**
3587
- * Region code (cn, us, de)
3588
- */
3589
- region: 'cn' | 'us' | 'de';
4399
+ type PayeeControllerDeleteResponse = void;
4400
+ type PayeeProfileAdminControllerCreateData = {
4401
+ requestBody: CreatePayeeProfileDto;
3590
4402
  };
3591
- type PayeeProfileAdminControllerResponse = unknown;
4403
+ type PayeeProfileAdminControllerCreateResponse = PayeeProfileResponseDto;
3592
4404
  type PayeeProfileAdminControllerFindAllData = {
3593
4405
  /**
3594
4406
  * Filter by category
@@ -3606,10 +4418,6 @@ type PayeeProfileAdminControllerFindAllData = {
3606
4418
  * Filter by active status (default: true - show only active)
3607
4419
  */
3608
4420
  isActive?: boolean;
3609
- /**
3610
- * Region code (cn, us, de)
3611
- */
3612
- region: 'cn' | 'us' | 'de';
3613
4421
  /**
3614
4422
  * Search term for canonical name and aliases (case-insensitive)
3615
4423
  */
@@ -3625,52 +4433,50 @@ type PayeeProfileAdminControllerFindOneData = {
3625
4433
  * Payee profile ID (UUID)
3626
4434
  */
3627
4435
  id: string;
3628
- /**
3629
- * Region code (cn, us, de)
3630
- */
3631
- region: 'cn' | 'us' | 'de';
3632
4436
  };
3633
4437
  type PayeeProfileAdminControllerFindOneResponse = PayeeProfileResponseDto;
3634
- type PayeeProfileAdminController1Data = {
4438
+ type PayeeProfileAdminControllerUpdateData = {
3635
4439
  /**
3636
- * Region code (cn, us, de)
4440
+ * Payee profile ID (UUID)
3637
4441
  */
3638
- region: 'cn' | 'us' | 'de';
4442
+ id: string;
4443
+ requestBody: UpdatePayeeProfileDto;
3639
4444
  };
3640
- type PayeeProfileAdminController1Response = unknown;
3641
- type PayeeProfileAdminController2Data = {
4445
+ type PayeeProfileAdminControllerUpdateResponse = PayeeProfileResponseDto;
4446
+ type PayeeProfileAdminControllerDeleteData = {
3642
4447
  /**
3643
- * Region code (cn, us, de)
4448
+ * Payee profile ID (UUID)
3644
4449
  */
3645
- region: 'cn' | 'us' | 'de';
4450
+ id: string;
3646
4451
  };
3647
- type PayeeProfileAdminController2Response = void;
3648
- type PayeeProfileAdminController3Data = {
4452
+ type PayeeProfileAdminControllerDeleteResponse = void;
4453
+ type PayeeProfileAdminControllerVerifyData = {
3649
4454
  /**
3650
- * Region code (cn, us, de)
4455
+ * Payee profile ID (UUID)
3651
4456
  */
3652
- region: 'cn' | 'us' | 'de';
4457
+ id: string;
3653
4458
  };
3654
- type PayeeProfileAdminController3Response = unknown;
3655
- type PayeeProfileAdminController4Data = {
4459
+ type PayeeProfileAdminControllerVerifyResponse = PayeeProfileResponseDto;
4460
+ type PayeeProfileAdminControllerUnverifyData = {
3656
4461
  /**
3657
- * Region code (cn, us, de)
4462
+ * Payee profile ID (UUID)
3658
4463
  */
3659
- region: 'cn' | 'us' | 'de';
4464
+ id: string;
3660
4465
  };
3661
- type PayeeProfileAdminController4Response = unknown;
3662
- type CommodityControllerData = {
4466
+ type PayeeProfileAdminControllerUnverifyResponse = PayeeProfileResponseDto;
4467
+ type CommodityControllerCreateData = {
3663
4468
  /**
3664
- * Region code (cn, us, de)
4469
+ * Region code for tenant context
3665
4470
  */
3666
- region: 'cn' | 'us' | 'de';
4471
+ region: 'cn' | 'us' | 'de' | 'gb';
4472
+ requestBody: CreateCommodityDto;
3667
4473
  };
3668
- type CommodityControllerResponse = unknown;
4474
+ type CommodityControllerCreateResponse = CommodityResponseDto;
3669
4475
  type CommodityControllerFindAllData = {
3670
4476
  /**
3671
- * Region code (cn, us, de)
4477
+ * Region code for tenant context
3672
4478
  */
3673
- region: 'cn' | 'us' | 'de';
4479
+ region: 'cn' | 'us' | 'de' | 'gb';
3674
4480
  /**
3675
4481
  * Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
3676
4482
  */
@@ -3683,50 +4489,64 @@ type CommodityControllerFindAllData = {
3683
4489
  type CommodityControllerFindAllResponse = CommodityListResponseDto;
3684
4490
  type CommodityControllerFindOneData = {
3685
4491
  /**
3686
- * Region code (cn, us, de)
4492
+ * Region code for tenant context
3687
4493
  */
3688
- region: 'cn' | 'us' | 'de';
4494
+ region: 'cn' | 'us' | 'de' | 'gb';
3689
4495
  /**
3690
4496
  * Commodity symbol
3691
4497
  */
3692
4498
  symbol: string;
3693
4499
  };
3694
4500
  type CommodityControllerFindOneResponse = CommodityResponseDto;
3695
- type CommodityController1Data = {
4501
+ type CommodityControllerUpdateData = {
3696
4502
  /**
3697
- * Region code (cn, us, de)
4503
+ * Region code for tenant context
4504
+ */
4505
+ region: 'cn' | 'us' | 'de' | 'gb';
4506
+ requestBody: UpdateCommodityDto;
4507
+ /**
4508
+ * Commodity symbol
3698
4509
  */
3699
- region: 'cn' | 'us' | 'de';
4510
+ symbol: string;
3700
4511
  };
3701
- type CommodityController1Response = unknown;
3702
- type CommodityController2Data = {
4512
+ type CommodityControllerUpdateResponse = CommodityResponseDto;
4513
+ type CommodityControllerDeleteData = {
3703
4514
  /**
3704
- * Region code (cn, us, de)
4515
+ * Region code for tenant context
4516
+ */
4517
+ region: 'cn' | 'us' | 'de' | 'gb';
4518
+ /**
4519
+ * Commodity symbol
3705
4520
  */
3706
- region: 'cn' | 'us' | 'de';
4521
+ symbol: string;
3707
4522
  };
3708
- type CommodityController2Response = void;
3709
- type CommodityController3Data = {
4523
+ type CommodityControllerDeleteResponse = void;
4524
+ type CommodityControllerGetOrCreateData = {
3710
4525
  /**
3711
- * Region code (cn, us, de)
4526
+ * Region code for tenant context
4527
+ */
4528
+ region: 'cn' | 'us' | 'de' | 'gb';
4529
+ /**
4530
+ * Commodity symbol
3712
4531
  */
3713
- region: 'cn' | 'us' | 'de';
4532
+ symbol: string;
3714
4533
  };
3715
- type CommodityController3Response = unknown;
3716
- type CommodityController4Data = {
4534
+ type CommodityControllerGetOrCreateResponse = CommodityResponseDto;
4535
+ type CommodityControllerBulkCreateData = {
3717
4536
  /**
3718
- * Region code (cn, us, de)
4537
+ * Region code for tenant context
3719
4538
  */
3720
- region: 'cn' | 'us' | 'de';
4539
+ region: 'cn' | 'us' | 'de' | 'gb';
3721
4540
  };
3722
- type CommodityController4Response = unknown;
3723
- type RecurringRuleControllerData = {
4541
+ type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
4542
+ type RecurringRuleControllerCreateData = {
3724
4543
  /**
3725
- * Region code (cn, us, de)
4544
+ * Region code for tenant context
3726
4545
  */
3727
- region: 'cn' | 'us' | 'de';
4546
+ region: 'cn' | 'us' | 'de' | 'gb';
4547
+ requestBody: CreateRecurringRuleDto;
3728
4548
  };
3729
- type RecurringRuleControllerResponse = unknown;
4549
+ type RecurringRuleControllerCreateResponse = RecurringRuleResponseDto;
3730
4550
  type RecurringRuleControllerFindAllData = {
3731
4551
  /**
3732
4552
  * Filter by frequency (WEEKLY, MONTHLY, etc.)
@@ -3741,52 +4561,66 @@ type RecurringRuleControllerFindAllData = {
3741
4561
  */
3742
4562
  isActive?: boolean;
3743
4563
  /**
3744
- * Region code (cn, us, de)
4564
+ * Region code for tenant context
3745
4565
  */
3746
- region: 'cn' | 'us' | 'de';
4566
+ region: 'cn' | 'us' | 'de' | 'gb';
3747
4567
  };
3748
4568
  type RecurringRuleControllerFindAllResponse = Array<RecurringRuleResponseDto>;
3749
- type RecurringRuleController1Data = {
4569
+ type RecurringRuleControllerCreateFromTransactionData = {
3750
4570
  /**
3751
- * Region code (cn, us, de)
4571
+ * Region code for tenant context
4572
+ */
4573
+ region: 'cn' | 'us' | 'de' | 'gb';
4574
+ requestBody: CreateRuleFromTransactionDto;
4575
+ /**
4576
+ * Source transaction ID
3752
4577
  */
3753
- region: 'cn' | 'us' | 'de';
4578
+ transactionId: string;
3754
4579
  };
3755
- type RecurringRuleController1Response = unknown;
4580
+ type RecurringRuleControllerCreateFromTransactionResponse = RecurringRuleResponseDto;
3756
4581
  type RecurringRuleControllerFindOneData = {
3757
4582
  /**
3758
4583
  * Rule ID
3759
4584
  */
3760
4585
  id: string;
3761
4586
  /**
3762
- * Region code (cn, us, de)
4587
+ * Region code for tenant context
3763
4588
  */
3764
- region: 'cn' | 'us' | 'de';
4589
+ region: 'cn' | 'us' | 'de' | 'gb';
3765
4590
  };
3766
4591
  type RecurringRuleControllerFindOneResponse = RecurringRuleResponseDto;
3767
- type RecurringRuleController2Data = {
4592
+ type RecurringRuleControllerUpdateData = {
3768
4593
  /**
3769
- * Region code (cn, us, de)
4594
+ * Rule ID
4595
+ */
4596
+ id: string;
4597
+ /**
4598
+ * Region code for tenant context
3770
4599
  */
3771
- region: 'cn' | 'us' | 'de';
4600
+ region: 'cn' | 'us' | 'de' | 'gb';
4601
+ requestBody: UpdateRecurringRuleDto;
3772
4602
  };
3773
- type RecurringRuleController2Response = unknown;
3774
- type RecurringRuleController3Data = {
4603
+ type RecurringRuleControllerUpdateResponse = RecurringRuleResponseDto;
4604
+ type RecurringRuleControllerDeleteData = {
3775
4605
  /**
3776
- * Region code (cn, us, de)
4606
+ * Rule ID
4607
+ */
4608
+ id: string;
4609
+ /**
4610
+ * Region code for tenant context
3777
4611
  */
3778
- region: 'cn' | 'us' | 'de';
4612
+ region: 'cn' | 'us' | 'de' | 'gb';
3779
4613
  };
3780
- type RecurringRuleController3Response = void;
4614
+ type RecurringRuleControllerDeleteResponse = void;
3781
4615
  type RecurringRuleControllerGetWithStatsData = {
3782
4616
  /**
3783
4617
  * Rule ID
3784
4618
  */
3785
4619
  id: string;
3786
4620
  /**
3787
- * Region code (cn, us, de)
4621
+ * Region code for tenant context
3788
4622
  */
3789
- region: 'cn' | 'us' | 'de';
4623
+ region: 'cn' | 'us' | 'de' | 'gb';
3790
4624
  };
3791
4625
  type RecurringRuleControllerGetWithStatsResponse = RecurringRuleWithStatsResponseDto;
3792
4626
  type ExpectedTransactionControllerFindAllData = {
@@ -3795,9 +4629,9 @@ type ExpectedTransactionControllerFindAllData = {
3795
4629
  */
3796
4630
  fromDate?: string;
3797
4631
  /**
3798
- * Region code (cn, us, de)
4632
+ * Region code for tenant context
3799
4633
  */
3800
- region: 'cn' | 'us' | 'de';
4634
+ region: 'cn' | 'us' | 'de' | 'gb';
3801
4635
  /**
3802
4636
  * Filter by recurring rule ID
3803
4637
  */
@@ -3814,9 +4648,9 @@ type ExpectedTransactionControllerFindAllData = {
3814
4648
  type ExpectedTransactionControllerFindAllResponse = ExpectedTransactionListResponseDto;
3815
4649
  type ExpectedTransactionControllerFindOverdueData = {
3816
4650
  /**
3817
- * Region code (cn, us, de)
4651
+ * Region code for tenant context
3818
4652
  */
3819
- region: 'cn' | 'us' | 'de';
4653
+ region: 'cn' | 'us' | 'de' | 'gb';
3820
4654
  };
3821
4655
  type ExpectedTransactionControllerFindOverdueResponse = ExpectedTransactionListResponseDto;
3822
4656
  type ExpectedTransactionControllerFindOneData = {
@@ -3825,64 +4659,87 @@ type ExpectedTransactionControllerFindOneData = {
3825
4659
  */
3826
4660
  id: string;
3827
4661
  /**
3828
- * Region code (cn, us, de)
4662
+ * Region code for tenant context
3829
4663
  */
3830
- region: 'cn' | 'us' | 'de';
4664
+ region: 'cn' | 'us' | 'de' | 'gb';
3831
4665
  };
3832
4666
  type ExpectedTransactionControllerFindOneResponse = ExpectedTransactionResponseDto;
3833
- type ExpectedTransactionControllerData = {
4667
+ type ExpectedTransactionControllerSkipData = {
3834
4668
  /**
3835
- * Region code (cn, us, de)
4669
+ * Expected transaction ID
3836
4670
  */
3837
- region: 'cn' | 'us' | 'de';
4671
+ id: string;
4672
+ /**
4673
+ * Region code for tenant context
4674
+ */
4675
+ region: 'cn' | 'us' | 'de' | 'gb';
3838
4676
  };
3839
- type ExpectedTransactionControllerResponse = unknown;
3840
- type ExpectedTransactionController1Data = {
4677
+ type ExpectedTransactionControllerSkipResponse = ExpectedTransactionResponseDto;
4678
+ type ExpectedTransactionControllerUndoSkipData = {
3841
4679
  /**
3842
- * Region code (cn, us, de)
4680
+ * Expected transaction ID
4681
+ */
4682
+ id: string;
4683
+ /**
4684
+ * Region code for tenant context
3843
4685
  */
3844
- region: 'cn' | 'us' | 'de';
4686
+ region: 'cn' | 'us' | 'de' | 'gb';
3845
4687
  };
3846
- type ExpectedTransactionController1Response = unknown;
3847
- type ExpectedTransactionController2Data = {
4688
+ type ExpectedTransactionControllerUndoSkipResponse = ExpectedTransactionResponseDto;
4689
+ type ExpectedTransactionControllerConfirmMatchData = {
3848
4690
  /**
3849
- * Region code (cn, us, de)
4691
+ * Expected transaction ID
4692
+ */
4693
+ id: string;
4694
+ /**
4695
+ * Region code for tenant context
3850
4696
  */
3851
- region: 'cn' | 'us' | 'de';
4697
+ region: 'cn' | 'us' | 'de' | 'gb';
4698
+ requestBody: ConfirmMatchDto;
3852
4699
  };
3853
- type ExpectedTransactionController2Response = unknown;
3854
- type ExpectedTransactionController3Data = {
4700
+ type ExpectedTransactionControllerConfirmMatchResponse = unknown;
4701
+ type ExpectedTransactionControllerUnmatchData = {
3855
4702
  /**
3856
- * Region code (cn, us, de)
4703
+ * Expected transaction ID
4704
+ */
4705
+ id: string;
4706
+ /**
4707
+ * Region code for tenant context
3857
4708
  */
3858
- region: 'cn' | 'us' | 'de';
4709
+ region: 'cn' | 'us' | 'de' | 'gb';
3859
4710
  };
3860
- type ExpectedTransactionController3Response = unknown;
3861
- type ExpectedTransactionController4Data = {
4711
+ type ExpectedTransactionControllerUnmatchResponse = unknown;
4712
+ type ExpectedTransactionControllerEnterNowData = {
3862
4713
  /**
3863
- * Region code (cn, us, de)
4714
+ * Expected transaction ID
3864
4715
  */
3865
- region: 'cn' | 'us' | 'de';
4716
+ id: string;
4717
+ /**
4718
+ * Region code for tenant context
4719
+ */
4720
+ region: 'cn' | 'us' | 'de' | 'gb';
4721
+ requestBody: EnterNowDto;
3866
4722
  };
3867
- type ExpectedTransactionController4Response = unknown;
4723
+ type ExpectedTransactionControllerEnterNowResponse = unknown;
3868
4724
  type ForecastControllerGetForecastData = {
3869
4725
  /**
3870
4726
  * Number of months to forecast (1-12, default 3)
3871
4727
  */
3872
4728
  months?: number;
3873
4729
  /**
3874
- * Region code (cn, us, de)
4730
+ * Region code for tenant context
3875
4731
  */
3876
- region: 'cn' | 'us' | 'de';
4732
+ region: 'cn' | 'us' | 'de' | 'gb';
3877
4733
  };
3878
4734
  type ForecastControllerGetForecastResponse = ForecastResponseDto;
3879
- type TransactionRuleControllerData = {
4735
+ type TransactionRuleControllerCreateData = {
3880
4736
  /**
3881
- * Region code (cn, us, de)
4737
+ * Region code for tenant context
3882
4738
  */
3883
- region: 'cn' | 'us' | 'de';
4739
+ region: 'cn' | 'us' | 'de' | 'gb';
4740
+ requestBody: CreateTransactionRuleDto;
3884
4741
  };
3885
- type TransactionRuleControllerResponse = unknown;
4742
+ type TransactionRuleControllerCreateResponse = TransactionRuleResponseDto;
3886
4743
  type TransactionRuleControllerListData = {
3887
4744
  /**
3888
4745
  * Filter by auto-apply status
@@ -3905,35 +4762,36 @@ type TransactionRuleControllerListData = {
3905
4762
  */
3906
4763
  offset?: number;
3907
4764
  /**
3908
- * Region code (cn, us, de)
4765
+ * Region code for tenant context
3909
4766
  */
3910
- region: 'cn' | 'us' | 'de';
4767
+ region: 'cn' | 'us' | 'de' | 'gb';
3911
4768
  };
3912
4769
  type TransactionRuleControllerListResponse = TransactionRuleListResponseDto;
3913
4770
  type TransactionRuleControllerValidateData = {
3914
4771
  /**
3915
- * Region code (cn, us, de)
4772
+ * Region code for tenant context
3916
4773
  */
3917
- region: 'cn' | 'us' | 'de';
4774
+ region: 'cn' | 'us' | 'de' | 'gb';
3918
4775
  requestBody: ValidateRuleDto;
3919
4776
  };
3920
4777
  type TransactionRuleControllerValidateResponse = ValidateRuleResponseDto;
3921
- type TransactionRuleController1Data = {
4778
+ type TransactionRuleControllerBulkCreateData = {
3922
4779
  /**
3923
- * Region code (cn, us, de)
4780
+ * Region code for tenant context
3924
4781
  */
3925
- region: 'cn' | 'us' | 'de';
4782
+ region: 'cn' | 'us' | 'de' | 'gb';
4783
+ requestBody: BulkCreateRulesDto;
3926
4784
  };
3927
- type TransactionRuleController1Response = unknown;
4785
+ type TransactionRuleControllerBulkCreateResponse = BulkCreateRulesResponseDto;
3928
4786
  type TransactionRuleControllerExportData = {
3929
4787
  /**
3930
4788
  * Export format (currently only JSON supported)
3931
4789
  */
3932
4790
  format: 'json';
3933
4791
  /**
3934
- * Region code (cn, us, de)
4792
+ * Region code for tenant context
3935
4793
  */
3936
- region: 'cn' | 'us' | 'de';
4794
+ region: 'cn' | 'us' | 'de' | 'gb';
3937
4795
  };
3938
4796
  type TransactionRuleControllerExportResponse = ExportRulesResponseDto;
3939
4797
  type TransactionRuleControllerGetStatisticsData = {
@@ -3942,41 +4800,50 @@ type TransactionRuleControllerGetStatisticsData = {
3942
4800
  */
3943
4801
  period: '7d' | '30d' | '90d';
3944
4802
  /**
3945
- * Region code (cn, us, de)
4803
+ * Region code for tenant context
3946
4804
  */
3947
- region: 'cn' | 'us' | 'de';
4805
+ region: 'cn' | 'us' | 'de' | 'gb';
3948
4806
  };
3949
4807
  type TransactionRuleControllerGetStatisticsResponse = RuleStatisticsResponseDto;
3950
4808
  type TransactionRuleControllerGetDetailData = {
3951
4809
  /**
3952
- * Region code (cn, us, de)
4810
+ * Region code for tenant context
3953
4811
  */
3954
- region: 'cn' | 'us' | 'de';
4812
+ region: 'cn' | 'us' | 'de' | 'gb';
3955
4813
  /**
3956
4814
  * Rule ID
3957
4815
  */
3958
4816
  ruleId: string;
3959
4817
  };
3960
4818
  type TransactionRuleControllerGetDetailResponse = TransactionRuleResponseDto;
3961
- type TransactionRuleController2Data = {
4819
+ type TransactionRuleControllerUpdateData = {
3962
4820
  /**
3963
- * Region code (cn, us, de)
4821
+ * Region code for tenant context
4822
+ */
4823
+ region: 'cn' | 'us' | 'de' | 'gb';
4824
+ requestBody: UpdateTransactionRuleDto;
4825
+ /**
4826
+ * Rule ID to update
3964
4827
  */
3965
- region: 'cn' | 'us' | 'de';
4828
+ ruleId: string;
3966
4829
  };
3967
- type TransactionRuleController2Response = unknown;
3968
- type TransactionRuleController3Data = {
4830
+ type TransactionRuleControllerUpdateResponse = TransactionRuleResponseDto;
4831
+ type TransactionRuleControllerDeleteData = {
3969
4832
  /**
3970
- * Region code (cn, us, de)
4833
+ * Region code for tenant context
4834
+ */
4835
+ region: 'cn' | 'us' | 'de' | 'gb';
4836
+ /**
4837
+ * Rule ID to delete
3971
4838
  */
3972
- region: 'cn' | 'us' | 'de';
4839
+ ruleId: string;
3973
4840
  };
3974
- type TransactionRuleController3Response = void;
4841
+ type TransactionRuleControllerDeleteResponse = void;
3975
4842
  type TransactionRuleControllerTestData = {
3976
4843
  /**
3977
- * Region code (cn, us, de)
4844
+ * Region code for tenant context
3978
4845
  */
3979
- region: 'cn' | 'us' | 'de';
4846
+ region: 'cn' | 'us' | 'de' | 'gb';
3980
4847
  requestBody: TestRuleDto;
3981
4848
  /**
3982
4849
  * Rule ID to test
@@ -3985,26 +4852,14 @@ type TransactionRuleControllerTestData = {
3985
4852
  };
3986
4853
  type TransactionRuleControllerTestResponse = TestRuleResponseDto;
3987
4854
  type UserControllerDeleteOwnUserData = {
3988
- /**
3989
- * Region code (cn, us, de)
3990
- */
3991
- region: 'cn' | 'us' | 'de';
3992
4855
  requestBody: DeleteOwnUserDto;
3993
4856
  };
3994
4857
  type UserControllerDeleteOwnUserResponse = void;
3995
4858
  type UserControllerGetUserData = {
3996
4859
  acceptLanguage: string;
3997
- /**
3998
- * Region code (cn, us, de)
3999
- */
4000
- region: 'cn' | 'us' | 'de';
4001
4860
  };
4002
4861
  type UserControllerGetUserResponse = unknown;
4003
4862
  type UserControllerSignupUserData = {
4004
- /**
4005
- * Region code (cn, us, de)
4006
- */
4007
- region: 'cn' | 'us' | 'de';
4008
4863
  requestBody: SignupDto;
4009
4864
  };
4010
4865
  type UserControllerSignupUserResponse = unknown;
@@ -4013,10 +4868,6 @@ type UserControllerDeleteUserData = {
4013
4868
  * User ID to delete
4014
4869
  */
4015
4870
  id: string;
4016
- /**
4017
- * Region code (cn, us, de)
4018
- */
4019
- region: 'cn' | 'us' | 'de';
4020
4871
  };
4021
4872
  type UserControllerDeleteUserResponse = void;
4022
4873
  type UserControllerGetUserInfoData = {
@@ -4024,17 +4875,9 @@ type UserControllerGetUserInfoData = {
4024
4875
  * User ID
4025
4876
  */
4026
4877
  id: string;
4027
- /**
4028
- * Region code (cn, us, de)
4029
- */
4030
- region: 'cn' | 'us' | 'de';
4031
4878
  };
4032
4879
  type UserControllerGetUserInfoResponse = unknown;
4033
4880
  type UserControllerUpdateUserSettingData = {
4034
- /**
4035
- * Region code (cn, us, de)
4036
- */
4037
- region: 'cn' | 'us' | 'de';
4038
4881
  requestBody: UpdateUserSettingDto;
4039
4882
  };
4040
4883
  type UserControllerUpdateUserSettingResponse = unknown;
@@ -4047,60 +4890,42 @@ type UserControllerGetAllUserSettingsByPageData = {
4047
4890
  * Page size
4048
4891
  */
4049
4892
  pageSize: number;
4050
- /**
4051
- * Region code (cn, us, de)
4052
- */
4053
- region: 'cn' | 'us' | 'de';
4054
4893
  };
4055
4894
  type UserControllerGetAllUserSettingsByPageResponse = unknown;
4056
- type UserControllerGetAssetLiabilitySummaryData = {
4057
- /**
4058
- * Region code (cn, us, de)
4059
- */
4060
- region: 'cn' | 'us' | 'de';
4061
- };
4062
4895
  type UserControllerGetAssetLiabilitySummaryResponse = unknown;
4063
- type PropertyControllerGetAllData = {
4064
- /**
4065
- * Region code (cn, us, de)
4066
- */
4067
- region: 'cn' | 'us' | 'de';
4068
- };
4069
4896
  type PropertyControllerGetAllResponse = unknown;
4070
4897
  type PropertyControllerGetByKeyData = {
4071
4898
  /**
4072
4899
  * Property key
4073
4900
  */
4074
4901
  key: string;
4075
- /**
4076
- * Region code (cn, us, de)
4077
- */
4078
- region: 'cn' | 'us' | 'de';
4079
4902
  };
4080
4903
  type PropertyControllerGetByKeyResponse = unknown;
4081
- type PropertyControllerData = {
4904
+ type PropertyControllerUpdateData = {
4082
4905
  /**
4083
- * Region code (cn, us, de)
4906
+ * Property key
4084
4907
  */
4085
- region: 'cn' | 'us' | 'de';
4908
+ key: string;
4909
+ requestBody: UpdatePropertyDto;
4086
4910
  };
4087
- type PropertyControllerResponse = unknown;
4088
- type PropertyController1Data = {
4911
+ type PropertyControllerUpdateResponse = unknown;
4912
+ type PropertyControllerDeleteData = {
4089
4913
  /**
4090
- * Region code (cn, us, de)
4914
+ * Property key
4091
4915
  */
4092
- region: 'cn' | 'us' | 'de';
4916
+ key: string;
4093
4917
  };
4094
- type PropertyController1Response = void;
4918
+ type PropertyControllerDeleteResponse = void;
4919
+ type ExportControllerExportBeancountResponse = unknown;
4095
4920
  type FileImportControllerImportFileData = {
4096
4921
  /**
4097
4922
  * Bill file to import
4098
4923
  */
4099
4924
  formData: FileImportDto;
4100
4925
  /**
4101
- * Region code (cn, us, de)
4926
+ * Region code for tenant context
4102
4927
  */
4103
- region: 'cn' | 'us' | 'de';
4928
+ region: 'cn' | 'us' | 'de' | 'gb';
4104
4929
  };
4105
4930
  type FileImportControllerImportFileResponse = ImportResultDto;
4106
4931
  type FileImportControllerIdentifyFileData = {
@@ -4109,36 +4934,99 @@ type FileImportControllerIdentifyFileData = {
4109
4934
  */
4110
4935
  formData: FileImportDto;
4111
4936
  /**
4112
- * Region code (cn, us, de)
4937
+ * Region code for tenant context
4113
4938
  */
4114
- region: 'cn' | 'us' | 'de';
4939
+ region: 'cn' | 'us' | 'de' | 'gb';
4115
4940
  };
4116
4941
  type FileImportControllerIdentifyFileResponse = IdentifyResultDto;
4942
+ type FileImportControllerImportBeancountData = {
4943
+ /**
4944
+ * Beancount file to import
4945
+ */
4946
+ formData: FileImportDto;
4947
+ /**
4948
+ * Region code for tenant context
4949
+ */
4950
+ region: 'cn' | 'us' | 'de' | 'gb';
4951
+ };
4952
+ type FileImportControllerImportBeancountResponse = {
4953
+ imported?: number;
4954
+ skipped?: number;
4955
+ failed?: number;
4956
+ accountsCreated?: number;
4957
+ errors?: Array<{
4958
+ [key: string]: unknown;
4959
+ }>;
4960
+ };
4117
4961
  type ImporterConfigControllerGetConfigData = {
4118
4962
  /**
4119
- * Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk
4963
+ * 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
4120
4964
  */
4121
4965
  importerId: string;
4122
4966
  /**
4123
- * Region code (cn, us, de)
4967
+ * Region code for tenant context
4124
4968
  */
4125
- region: 'cn' | 'us' | 'de';
4969
+ region: 'cn' | 'us' | 'de' | 'gb';
4126
4970
  };
4127
4971
  type ImporterConfigControllerGetConfigResponse = ImporterConfigDto;
4128
- type ImporterConfigControllerData = {
4972
+ type ImporterConfigControllerUpdateConfigData = {
4129
4973
  /**
4130
- * Region code (cn, us, de)
4974
+ * 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
4975
+ */
4976
+ importerId: string;
4977
+ /**
4978
+ * Region code for tenant context
4979
+ */
4980
+ region: 'cn' | 'us' | 'de' | 'gb';
4981
+ /**
4982
+ * Partial configuration update. Only provided fields will be updated.
4131
4983
  */
4132
- region: 'cn' | 'us' | 'de';
4984
+ requestBody: UpdateImporterConfigDto;
4133
4985
  };
4134
- type ImporterConfigControllerResponse = unknown;
4135
- type ImporterConfigController1Data = {
4986
+ type ImporterConfigControllerUpdateConfigResponse = ImporterConfigDto;
4987
+ type ImporterConfigControllerResetConfigData = {
4136
4988
  /**
4137
- * Region code (cn, us, de)
4989
+ * 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
4990
+ */
4991
+ importerId: string;
4992
+ /**
4993
+ * Region code for tenant context
4994
+ */
4995
+ region: 'cn' | 'us' | 'de' | 'gb';
4996
+ };
4997
+ type ImporterConfigControllerResetConfigResponse = ImporterConfigDto;
4998
+ type PlatformControllerFindAllResponse = unknown;
4999
+ type PlatformControllerCreateData = {
5000
+ requestBody: CreatePlatformDto;
5001
+ };
5002
+ type PlatformControllerCreateResponse = unknown;
5003
+ type PlatformControllerGetPlatformListResponse = unknown;
5004
+ type PlatformControllerMatchPlatformsData = {
5005
+ /**
5006
+ * Search query — Chinese name, English name, or abbreviation
5007
+ */
5008
+ q: string;
5009
+ /**
5010
+ * Region code for category override lookup
5011
+ */
5012
+ region?: string;
5013
+ };
5014
+ type PlatformControllerMatchPlatformsResponse = unknown;
5015
+ type PlatformControllerUpdateData = {
5016
+ /**
5017
+ * Platform ID
5018
+ */
5019
+ id: string;
5020
+ requestBody: UpdatePlatformDto;
5021
+ };
5022
+ type PlatformControllerUpdateResponse = unknown;
5023
+ type PlatformControllerDeleteData = {
5024
+ /**
5025
+ * Platform ID
4138
5026
  */
4139
- region: 'cn' | 'us' | 'de';
5027
+ id: string;
4140
5028
  };
4141
- type ImporterConfigController1Response = unknown;
5029
+ type PlatformControllerDeleteResponse = void;
4142
5030
  type ProviderSyncControllerSyncData = {
4143
5031
  /**
4144
5032
  * Provider name
@@ -4153,9 +5041,9 @@ type ProviderSyncControllerSyncData = {
4153
5041
  type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
4154
5042
  type ProviderSyncControllerGetSupportedProvidersData = {
4155
5043
  /**
4156
- * Region code (cn, us, de)
5044
+ * Region code for tenant context
4157
5045
  */
4158
- region: 'cn' | 'us' | 'de';
5046
+ region: 'cn' | 'us' | 'de' | 'gb';
4159
5047
  };
4160
5048
  type ProviderSyncControllerGetSupportedProvidersResponse = SupportedProvidersResponseDto;
4161
5049
  type ProviderSyncControllerIsProviderSupportedData = {
@@ -4164,24 +5052,24 @@ type ProviderSyncControllerIsProviderSupportedData = {
4164
5052
  */
4165
5053
  providerName: string;
4166
5054
  /**
4167
- * Region code (cn, us, de)
5055
+ * Region code for tenant context
4168
5056
  */
4169
- region: 'cn' | 'us' | 'de';
5057
+ region: 'cn' | 'us' | 'de' | 'gb';
4170
5058
  };
4171
5059
  type ProviderSyncControllerIsProviderSupportedResponse = unknown;
4172
5060
  type TelemetryControllerReportTelemetryData = {
4173
5061
  /**
4174
- * Region code (cn, us, de)
5062
+ * Region code for tenant context
4175
5063
  */
4176
- region: 'cn' | 'us' | 'de';
5064
+ region: 'cn' | 'us' | 'de' | 'gb';
4177
5065
  requestBody: ParserTelemetryReportDto;
4178
5066
  };
4179
5067
  type TelemetryControllerReportTelemetryResponse = unknown;
4180
5068
  type NlpControllerProcessNaturalLanguageData = {
4181
5069
  /**
4182
- * Region code (cn, us, de)
5070
+ * Region code for tenant context
4183
5071
  */
4184
- region: 'cn' | 'us' | 'de';
5072
+ region: 'cn' | 'us' | 'de' | 'gb';
4185
5073
  /**
4186
5074
  * Natural language transaction input with optional session ID
4187
5075
  */
@@ -4190,9 +5078,9 @@ type NlpControllerProcessNaturalLanguageData = {
4190
5078
  type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
4191
5079
  type NlpControllerClearSessionData = {
4192
5080
  /**
4193
- * Region code (cn, us, de)
5081
+ * Region code for tenant context
4194
5082
  */
4195
- region: 'cn' | 'us' | 'de';
5083
+ region: 'cn' | 'us' | 'de' | 'gb';
4196
5084
  /**
4197
5085
  * Specific session ID to clear (defaults to user session)
4198
5086
  */
@@ -4201,138 +5089,24 @@ type NlpControllerClearSessionData = {
4201
5089
  type NlpControllerClearSessionResponse = void;
4202
5090
  type NlpControllerGetSessionData = {
4203
5091
  /**
4204
- * Region code (cn, us, de)
5092
+ * Region code for tenant context
4205
5093
  */
4206
- region: 'cn' | 'us' | 'de';
5094
+ region: 'cn' | 'us' | 'de' | 'gb';
4207
5095
  /**
4208
5096
  * Specific session ID to get (defaults to user session)
4209
5097
  */
4210
5098
  sessionId?: string;
4211
5099
  };
4212
5100
  type NlpControllerGetSessionResponse = unknown;
4213
- type PlatformControllerFindAllData = {
4214
- /**
4215
- * Region code (cn, us, de)
4216
- */
4217
- region: 'cn' | 'us' | 'de';
4218
- };
4219
- type PlatformControllerFindAllResponse = unknown;
4220
- type PlatformControllerData = {
4221
- /**
4222
- * Region code (cn, us, de)
4223
- */
4224
- region: 'cn' | 'us' | 'de';
4225
- };
4226
- type PlatformControllerResponse = unknown;
4227
- type PlatformControllerGetPlatformListData = {
4228
- /**
4229
- * Region code (cn, us, de)
4230
- */
4231
- region: 'cn' | 'us' | 'de';
4232
- };
4233
- type PlatformControllerGetPlatformListResponse = unknown;
4234
- type PlatformController1Data = {
4235
- /**
4236
- * Region code (cn, us, de)
4237
- */
4238
- region: 'cn' | 'us' | 'de';
4239
- };
4240
- type PlatformController1Response = unknown;
4241
- type PlatformController2Data = {
4242
- /**
4243
- * Region code (cn, us, de)
4244
- */
4245
- region: 'cn' | 'us' | 'de';
4246
- };
4247
- type PlatformController2Response = void;
4248
- type SymbolControllerLookupSymbolData = {
4249
- /**
4250
- * Geographic area filter (e.g., CN, US)
4251
- */
4252
- area?: unknown;
4253
- /**
4254
- * Asset class filter
4255
- */
4256
- assetClass?: unknown;
4257
- /**
4258
- * Asset sub-class filter
4259
- */
4260
- assetSubClass?: unknown;
4261
- /**
4262
- * Include index symbols in results
4263
- */
4264
- includeIndices?: unknown;
4265
- /**
4266
- * Search query string
4267
- */
4268
- query?: unknown;
4269
- /**
4270
- * Region code (cn, us, de)
4271
- */
4272
- region: 'cn' | 'us' | 'de';
4273
- };
4274
- type SymbolControllerLookupSymbolResponse = unknown;
4275
- type SymbolControllerGetSymbolDataData = {
4276
- /**
4277
- * Data source provider
4278
- */
4279
- dataSource: 'ALPHA_VANTAGE' | 'EOD_HISTORICAL_DATA' | 'FINANCIAL_MODELING_PREP' | 'MANUAL' | 'RAPID_API' | 'YAHOO' | 'COINGECKO' | 'TUSHARE' | 'BLOOMBERG' | 'CSI' | 'STOOQ' | 'TRADING_VIEW';
4280
- /**
4281
- * Include historical price data (0 or 1)
4282
- */
4283
- includeHistoricalData?: unknown;
4284
- /**
4285
- * Region code (cn, us, de)
4286
- */
4287
- region: 'cn' | 'us' | 'de';
4288
- /**
4289
- * Symbol identifier (e.g., ticker code)
4290
- */
4291
- symbol: string;
4292
- };
4293
- type SymbolControllerGetSymbolDataResponse = unknown;
4294
- type SymbolControllerGatherSymbolForDateData = {
4295
- /**
4296
- * Data source provider
4297
- */
4298
- dataSource: 'ALPHA_VANTAGE' | 'EOD_HISTORICAL_DATA' | 'FINANCIAL_MODELING_PREP' | 'MANUAL' | 'RAPID_API' | 'YAHOO' | 'COINGECKO' | 'TUSHARE' | 'BLOOMBERG' | 'CSI' | 'STOOQ' | 'TRADING_VIEW';
4299
- /**
4300
- * Date in ISO 8601 format (YYYY-MM-DD)
4301
- */
4302
- dateString: string;
4303
- /**
4304
- * Region code (cn, us, de)
4305
- */
4306
- region: 'cn' | 'us' | 'de';
4307
- /**
4308
- * Symbol identifier (e.g., ticker code)
4309
- */
4310
- symbol: string;
4311
- };
4312
- type SymbolControllerGatherSymbolForDateResponse = unknown;
4313
- type SymbolControllerData = {
4314
- /**
4315
- * Region code (cn, us, de)
4316
- */
4317
- region: 'cn' | 'us' | 'de';
4318
- };
4319
- type SymbolControllerResponse = unknown;
4320
- type CacheControllerFlushCacheData = {
4321
- /**
4322
- * Region code (cn, us, de)
4323
- */
4324
- region: 'cn' | 'us' | 'de';
4325
- };
4326
- type CacheControllerFlushCacheResponse = unknown;
4327
5101
  type DashboardControllerGetNetWorthData = {
4328
5102
  /**
4329
5103
  * Date for balance calculation (ISO 8601 format)
4330
5104
  */
4331
5105
  date?: string;
4332
5106
  /**
4333
- * Region code (cn, us, de)
5107
+ * Region code for tenant context
4334
5108
  */
4335
- region: 'cn' | 'us' | 'de';
5109
+ region: 'cn' | 'us' | 'de' | 'gb';
4336
5110
  };
4337
5111
  type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
4338
5112
  type DashboardControllerGetAccountsData = {
@@ -4345,9 +5119,9 @@ type DashboardControllerGetAccountsData = {
4345
5119
  */
4346
5120
  groupBy?: 'platform' | 'assetClass';
4347
5121
  /**
4348
- * Region code (cn, us, de)
5122
+ * Region code for tenant context
4349
5123
  */
4350
- region: 'cn' | 'us' | 'de';
5124
+ region: 'cn' | 'us' | 'de' | 'gb';
4351
5125
  };
4352
5126
  type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto;
4353
5127
  type DashboardControllerGetCashFlowData = {
@@ -4356,9 +5130,9 @@ type DashboardControllerGetCashFlowData = {
4356
5130
  */
4357
5131
  period: string;
4358
5132
  /**
4359
- * Region code (cn, us, de)
5133
+ * Region code for tenant context
4360
5134
  */
4361
- region: 'cn' | 'us' | 'de';
5135
+ region: 'cn' | 'us' | 'de' | 'gb';
4362
5136
  };
4363
5137
  type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
4364
5138
  type ReportingControllerGetPortfolioTrendsData = {
@@ -4371,16 +5145,16 @@ type ReportingControllerGetPortfolioTrendsData = {
4371
5145
  */
4372
5146
  period?: '1m' | '3m' | '6m' | '1y';
4373
5147
  /**
4374
- * Region code (cn, us, de)
5148
+ * Region code for tenant context
4375
5149
  */
4376
- region: 'cn' | 'us' | 'de';
5150
+ region: 'cn' | 'us' | 'de' | 'gb';
4377
5151
  };
4378
5152
  type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
4379
5153
  type ReportingControllerGenerateSnapshotData = {
4380
5154
  /**
4381
- * Region code (cn, us, de)
5155
+ * Region code for tenant context
4382
5156
  */
4383
- region: 'cn' | 'us' | 'de';
5157
+ region: 'cn' | 'us' | 'de' | 'gb';
4384
5158
  /**
4385
5159
  * Optional date (defaults to today)
4386
5160
  */
@@ -4389,172 +5163,43 @@ type ReportingControllerGenerateSnapshotData = {
4389
5163
  type ReportingControllerGenerateSnapshotResponse = GenerateSnapshotResponse;
4390
5164
  type ReportingControllerBackfillSnapshotsData = {
4391
5165
  /**
4392
- * Region code (cn, us, de)
5166
+ * Region code for tenant context
4393
5167
  */
4394
- region: 'cn' | 'us' | 'de';
5168
+ region: 'cn' | 'us' | 'de' | 'gb';
4395
5169
  requestBody: BackfillSnapshotsBody;
4396
5170
  };
4397
5171
  type ReportingControllerBackfillSnapshotsResponse = BackfillSnapshotsResponse;
4398
- type ApiKeysControllerData = {
4399
- /**
4400
- * Region code (cn, us, de)
4401
- */
4402
- region: 'cn' | 'us' | 'de';
4403
- };
4404
- type ApiKeysControllerResponse = unknown;
5172
+ type ApiKeysControllerCreateApiKeyResponse = unknown;
4405
5173
  type AuthControllerAccessTokenLoginData = {
4406
- /**
4407
- * Region code (cn, us, de)
4408
- */
4409
- region: 'cn' | 'us' | 'de';
4410
5174
  requestBody: AnonymousLoginDto;
4411
5175
  };
4412
5176
  type AuthControllerAccessTokenLoginResponse = unknown;
5177
+ type CacheControllerFlushCacheResponse = unknown;
4413
5178
  type ExchangeRateControllerGetExchangeRateData = {
4414
5179
  /**
4415
5180
  * Date in ISO format (YYYY-MM-DD)
4416
5181
  */
4417
5182
  dateString: string;
4418
- /**
4419
- * Region code (cn, us, de)
4420
- */
4421
- region: 'cn' | 'us' | 'de';
4422
5183
  /**
4423
5184
  * Currency pair symbol (e.g., USDCNY, EURUSD)
4424
5185
  */
4425
5186
  symbol: string;
4426
5187
  };
4427
5188
  type ExchangeRateControllerGetExchangeRateResponse = unknown;
4428
- type HealthControllerGetHealthData = {
4429
- /**
4430
- * Region code (cn, us, de)
4431
- */
4432
- region: 'cn' | 'us' | 'de';
4433
- };
4434
5189
  type HealthControllerGetHealthResponse = unknown;
4435
- type HealthControllerCheckDatabaseData = {
4436
- /**
4437
- * Region code (cn, us, de)
4438
- */
4439
- region: 'cn' | 'us' | 'de';
4440
- };
4441
5190
  type HealthControllerCheckDatabaseResponse = unknown;
4442
- type HealthControllerCheckRedisData = {
4443
- /**
4444
- * Region code (cn, us, de)
4445
- */
4446
- region: 'cn' | 'us' | 'de';
4447
- };
5191
+ type HealthControllerCheckOpenBbResponse = unknown;
4448
5192
  type HealthControllerCheckRedisResponse = unknown;
4449
- type HealthControllerGetCircuitBreakersHealthData = {
4450
- /**
4451
- * Region code (cn, us, de)
4452
- */
4453
- region: 'cn' | 'us' | 'de';
4454
- };
4455
5193
  type HealthControllerGetCircuitBreakersHealthResponse = unknown;
4456
5194
  type HealthControllerResetCircuitBreakerData = {
4457
5195
  /**
4458
5196
  * Circuit breaker name to reset
4459
5197
  */
4460
5198
  name: string;
4461
- /**
4462
- * Region code (cn, us, de)
4463
- */
4464
- region: 'cn' | 'us' | 'de';
4465
5199
  };
4466
5200
  type HealthControllerResetCircuitBreakerResponse = unknown;
4467
- type HealthControllerGetMetricsData = {
4468
- /**
4469
- * Region code (cn, us, de)
4470
- */
4471
- region: 'cn' | 'us' | 'de';
4472
- };
4473
5201
  type HealthControllerGetMetricsResponse = unknown;
4474
- type HealthControllerGetHealthOfDataEnhancerData = {
4475
- /**
4476
- * Data enhancer name
4477
- */
4478
- name: string;
4479
- /**
4480
- * Region code (cn, us, de)
4481
- */
4482
- region: 'cn' | 'us' | 'de';
4483
- };
4484
- type HealthControllerGetHealthOfDataEnhancerResponse = unknown;
4485
- type HealthControllerCheckDataProvidersData = {
4486
- /**
4487
- * Region code (cn, us, de)
4488
- */
4489
- region: 'cn' | 'us' | 'de';
4490
- };
4491
- type HealthControllerCheckDataProvidersResponse = unknown;
4492
- type HealthControllerGetHealthOfDataProviderData = {
4493
- /**
4494
- * Data source identifier
4495
- */
4496
- dataSource: string;
4497
- /**
4498
- * Region code (cn, us, de)
4499
- */
4500
- region: 'cn' | 'us' | 'de';
4501
- };
4502
- type HealthControllerGetHealthOfDataProviderResponse = unknown;
4503
- type InfoControllerGetInfoData = {
4504
- /**
4505
- * Region code (cn, us, de)
4506
- */
4507
- region: 'cn' | 'us' | 'de';
4508
- };
4509
5202
  type InfoControllerGetInfoResponse = unknown;
4510
- type LogoControllerGetLogoByDataSourceAndSymbolData = {
4511
- /**
4512
- * Data source identifier (e.g., YAHOO, COINGECKO)
4513
- */
4514
- dataSource: string;
4515
- /**
4516
- * Region code (cn, us, de)
4517
- */
4518
- region: 'cn' | 'us' | 'de';
4519
- /**
4520
- * Asset symbol (e.g., AAPL, BTC)
4521
- */
4522
- symbol: string;
4523
- };
4524
- type LogoControllerGetLogoByDataSourceAndSymbolResponse = unknown;
4525
- type LogoControllerGetLogoByUrlData = {
4526
- /**
4527
- * Region code (cn, us, de)
4528
- */
4529
- region: 'cn' | 'us' | 'de';
4530
- /**
4531
- * Website URL to fetch favicon from
4532
- */
4533
- url: string;
4534
- };
4535
- type LogoControllerGetLogoByUrlResponse = unknown;
4536
- type MarketDataControllerGetMarketDataBySymbolData = {
4537
- /**
4538
- * Data source provider
4539
- */
4540
- dataSource: 'ALPHA_VANTAGE' | 'EOD_HISTORICAL_DATA' | 'FINANCIAL_MODELING_PREP' | 'MANUAL' | 'RAPID_API' | 'YAHOO' | 'COINGECKO' | 'TUSHARE' | 'BLOOMBERG' | 'CSI' | 'STOOQ' | 'TRADING_VIEW';
4541
- /**
4542
- * Region code (cn, us, de)
4543
- */
4544
- region: 'cn' | 'us' | 'de';
4545
- /**
4546
- * Symbol code
4547
- */
4548
- symbol: string;
4549
- };
4550
- type MarketDataControllerGetMarketDataBySymbolResponse = unknown;
4551
- type MarketDataControllerData = {
4552
- /**
4553
- * Region code (cn, us, de)
4554
- */
4555
- region: 'cn' | 'us' | 'de';
4556
- };
4557
- type MarketDataControllerResponse = unknown;
4558
5203
  type $OpenApiTs = {
4559
5204
  '/api/v1/{region}/bean/accounts': {
4560
5205
  post: {
@@ -4657,9 +5302,42 @@ type $OpenApiTs = {
4657
5302
  */
4658
5303
  400: unknown;
4659
5304
  /**
4660
- * Account not found
5305
+ * Account not found
5306
+ */
5307
+ 404: unknown;
5308
+ };
5309
+ };
5310
+ };
5311
+ '/api/v1/{region}/bean/account-standards': {
5312
+ get: {
5313
+ req: AccountStandardsControllerGetTemplatesData;
5314
+ res: {
5315
+ /**
5316
+ * Account templates retrieved successfully
5317
+ */
5318
+ 200: AccountStandardListResponseDto;
5319
+ };
5320
+ };
5321
+ };
5322
+ '/api/v1/{region}/bean/account-standards/template-metadata': {
5323
+ get: {
5324
+ req: AccountStandardsControllerGetTemplateMetadataData;
5325
+ res: {
5326
+ /**
5327
+ * Template metadata retrieved successfully
5328
+ */
5329
+ 200: TemplateMetadataResponseDto;
5330
+ };
5331
+ };
5332
+ };
5333
+ '/api/v1/{region}/bean/account-standards/regions': {
5334
+ get: {
5335
+ req: AccountStandardsControllerGetRegionsData;
5336
+ res: {
5337
+ /**
5338
+ * Regions metadata retrieved successfully
4661
5339
  */
4662
- 404: unknown;
5340
+ 200: RegionsMetadataResponseDto;
4663
5341
  };
4664
5342
  };
4665
5343
  };
@@ -4696,6 +5374,10 @@ type $OpenApiTs = {
4696
5374
  * Transaction list
4697
5375
  */
4698
5376
  200: TransactionListResponseDto;
5377
+ /**
5378
+ * Validation failed
5379
+ */
5380
+ 400: ApiProblemResponseDto;
4699
5381
  /**
4700
5382
  * Authentication required
4701
5383
  */
@@ -4705,9 +5387,62 @@ type $OpenApiTs = {
4705
5387
  };
4706
5388
  '/api/v1/{region}/bean/transactions/batch': {
4707
5389
  post: {
4708
- req: TransactionControllerData;
5390
+ req: TransactionControllerCreateBatchData;
4709
5391
  res: {
4710
- 201: unknown;
5392
+ /**
5393
+ * Transactions processed
5394
+ */
5395
+ 201: BatchTransactionResponseDto;
5396
+ /**
5397
+ * Invalid input
5398
+ */
5399
+ 400: ApiProblemResponseDto;
5400
+ /**
5401
+ * Authentication required
5402
+ */
5403
+ 401: ApiProblemResponseDto;
5404
+ };
5405
+ };
5406
+ };
5407
+ '/api/v1/{region}/bean/transactions/{id}/correct': {
5408
+ post: {
5409
+ req: TransactionControllerCorrectData;
5410
+ res: {
5411
+ /**
5412
+ * Corrected transaction created
5413
+ */
5414
+ 201: TransactionDetailDto;
5415
+ /**
5416
+ * Original transaction not found
5417
+ */
5418
+ 404: ApiProblemResponseDto;
5419
+ /**
5420
+ * Original no longer ACTIVE (concurrent modification)
5421
+ */
5422
+ 409: ApiProblemResponseDto;
5423
+ /**
5424
+ * Pipeline validation failed (does not balance, invalid accounts)
5425
+ */
5426
+ 422: ApiProblemResponseDto;
5427
+ };
5428
+ };
5429
+ };
5430
+ '/api/v1/{region}/bean/transactions/tags': {
5431
+ get: {
5432
+ req: TransactionControllerSuggestTagsData;
5433
+ res: {
5434
+ /**
5435
+ * Tag suggestions
5436
+ */
5437
+ 200: TagSuggestionsResponseDto;
5438
+ /**
5439
+ * Validation failed
5440
+ */
5441
+ 400: ApiProblemResponseDto;
5442
+ /**
5443
+ * Authentication required
5444
+ */
5445
+ 401: ApiProblemResponseDto;
4711
5446
  };
4712
5447
  };
4713
5448
  };
@@ -4751,31 +5486,24 @@ type $OpenApiTs = {
4751
5486
  };
4752
5487
  };
4753
5488
  delete: {
4754
- req: TransactionController1Data;
5489
+ req: TransactionControllerDeleteData;
4755
5490
  res: {
5491
+ /**
5492
+ * Transaction voided successfully
5493
+ */
4756
5494
  204: void;
4757
- };
4758
- };
4759
- };
4760
- '/api/v1/{region}/bean/account-standards': {
4761
- get: {
4762
- req: AccountStandardsControllerGetTemplatesData;
4763
- res: {
4764
5495
  /**
4765
- * Account templates retrieved successfully
5496
+ * Transaction already voided
4766
5497
  */
4767
- 200: AccountStandardListResponseDto;
4768
- };
4769
- };
4770
- };
4771
- '/api/v1/{region}/bean/account-standards/regions': {
4772
- get: {
4773
- req: AccountStandardsControllerGetRegionsData;
4774
- res: {
5498
+ 400: ApiProblemResponseDto;
4775
5499
  /**
4776
- * Regions metadata retrieved successfully
5500
+ * Authentication required
4777
5501
  */
4778
- 200: RegionsMetadataResponseDto;
5502
+ 401: ApiProblemResponseDto;
5503
+ /**
5504
+ * Transaction not found
5505
+ */
5506
+ 404: ApiProblemResponseDto;
4779
5507
  };
4780
5508
  };
4781
5509
  };
@@ -4843,33 +5571,44 @@ type $OpenApiTs = {
4843
5571
  };
4844
5572
  '/api/v1/{region}/bean/reviews/{id}/resolve': {
4845
5573
  post: {
4846
- req: ReviewControllerData;
5574
+ req: ReviewControllerResolveData;
4847
5575
  res: {
4848
- 201: unknown;
5576
+ 200: ResolveResultDto;
4849
5577
  };
4850
5578
  };
4851
5579
  };
4852
5580
  '/api/v1/{region}/bean/reviews/{id}/undo': {
4853
5581
  post: {
4854
- req: ReviewController1Data;
5582
+ req: ReviewControllerUndoData;
4855
5583
  res: {
4856
- 201: unknown;
5584
+ 200: UndoResultDto;
4857
5585
  };
4858
5586
  };
4859
5587
  };
4860
5588
  '/api/v1/{region}/bean/reviews/batch-resolve': {
4861
5589
  post: {
4862
- req: ReviewController2Data;
5590
+ req: ReviewControllerBatchResolveData;
4863
5591
  res: {
4864
- 201: unknown;
5592
+ 200: BatchResolveResultDto;
4865
5593
  };
4866
5594
  };
4867
5595
  };
4868
5596
  '/api/v1/bean/payees': {
4869
5597
  post: {
4870
- req: PayeeControllerData;
5598
+ req: PayeeControllerCreateData;
4871
5599
  res: {
4872
- 201: unknown;
5600
+ /**
5601
+ * Payee created successfully
5602
+ */
5603
+ 201: PayeeResponseDto;
5604
+ /**
5605
+ * Invalid input data
5606
+ */
5607
+ 400: ApiProblemResponseDto;
5608
+ /**
5609
+ * Payee already exists
5610
+ */
5611
+ 409: ApiProblemResponseDto;
4873
5612
  };
4874
5613
  };
4875
5614
  get: {
@@ -4923,23 +5662,56 @@ type $OpenApiTs = {
4923
5662
  };
4924
5663
  };
4925
5664
  put: {
4926
- req: PayeeController1Data;
5665
+ req: PayeeControllerUpdateData;
4927
5666
  res: {
4928
- 200: unknown;
5667
+ /**
5668
+ * Payee updated successfully
5669
+ */
5670
+ 200: PayeeResponseDto;
5671
+ /**
5672
+ * Invalid input data
5673
+ */
5674
+ 400: ApiProblemResponseDto;
5675
+ /**
5676
+ * Payee not found
5677
+ */
5678
+ 404: ApiProblemResponseDto;
4929
5679
  };
4930
5680
  };
4931
5681
  delete: {
4932
- req: PayeeController2Data;
5682
+ req: PayeeControllerDeleteData;
4933
5683
  res: {
5684
+ /**
5685
+ * Payee deleted successfully
5686
+ */
4934
5687
  204: void;
5688
+ /**
5689
+ * Payee not found
5690
+ */
5691
+ 404: ApiProblemResponseDto;
4935
5692
  };
4936
5693
  };
4937
5694
  };
4938
5695
  '/api/v1/admin/payee-profiles': {
4939
5696
  post: {
4940
- req: PayeeProfileAdminControllerData;
5697
+ req: PayeeProfileAdminControllerCreateData;
4941
5698
  res: {
4942
- 201: unknown;
5699
+ /**
5700
+ * Payee profile created successfully
5701
+ */
5702
+ 201: PayeeProfileResponseDto;
5703
+ /**
5704
+ * Validation failed
5705
+ */
5706
+ 400: ApiProblemResponseDto;
5707
+ /**
5708
+ * Admin access required
5709
+ */
5710
+ 403: ApiProblemResponseDto;
5711
+ /**
5712
+ * Payee profile already exists
5713
+ */
5714
+ 409: ApiProblemResponseDto;
4943
5715
  };
4944
5716
  };
4945
5717
  get: {
@@ -4975,37 +5747,96 @@ type $OpenApiTs = {
4975
5747
  };
4976
5748
  };
4977
5749
  put: {
4978
- req: PayeeProfileAdminController1Data;
5750
+ req: PayeeProfileAdminControllerUpdateData;
4979
5751
  res: {
4980
- 200: unknown;
5752
+ /**
5753
+ * Payee profile updated successfully
5754
+ */
5755
+ 200: PayeeProfileResponseDto;
5756
+ /**
5757
+ * Admin access required
5758
+ */
5759
+ 403: ApiProblemResponseDto;
5760
+ /**
5761
+ * Payee profile not found
5762
+ */
5763
+ 404: ApiProblemResponseDto;
4981
5764
  };
4982
5765
  };
4983
5766
  delete: {
4984
- req: PayeeProfileAdminController2Data;
5767
+ req: PayeeProfileAdminControllerDeleteData;
4985
5768
  res: {
5769
+ /**
5770
+ * Payee profile deleted successfully
5771
+ */
4986
5772
  204: void;
5773
+ /**
5774
+ * Admin access required
5775
+ */
5776
+ 403: ApiProblemResponseDto;
5777
+ /**
5778
+ * Payee profile not found
5779
+ */
5780
+ 404: ApiProblemResponseDto;
5781
+ /**
5782
+ * Payee profile is in use and cannot be deleted
5783
+ */
5784
+ 409: ApiProblemResponseDto;
4987
5785
  };
4988
5786
  };
4989
5787
  };
4990
5788
  '/api/v1/admin/payee-profiles/{id}/verify': {
4991
5789
  post: {
4992
- req: PayeeProfileAdminController3Data;
5790
+ req: PayeeProfileAdminControllerVerifyData;
4993
5791
  res: {
4994
- 201: unknown;
5792
+ /**
5793
+ * Payee profile verified successfully
5794
+ */
5795
+ 201: PayeeProfileResponseDto;
5796
+ /**
5797
+ * Admin access required
5798
+ */
5799
+ 403: ApiProblemResponseDto;
5800
+ /**
5801
+ * Payee profile not found
5802
+ */
5803
+ 404: ApiProblemResponseDto;
4995
5804
  };
4996
5805
  };
4997
5806
  delete: {
4998
- req: PayeeProfileAdminController4Data;
5807
+ req: PayeeProfileAdminControllerUnverifyData;
4999
5808
  res: {
5000
- 200: unknown;
5809
+ /**
5810
+ * Payee profile unverified successfully
5811
+ */
5812
+ 200: PayeeProfileResponseDto;
5813
+ /**
5814
+ * Admin access required
5815
+ */
5816
+ 403: ApiProblemResponseDto;
5817
+ /**
5818
+ * Payee profile not found
5819
+ */
5820
+ 404: ApiProblemResponseDto;
5001
5821
  };
5002
5822
  };
5003
5823
  };
5004
5824
  '/api/v1/{region}/bean/commodities': {
5005
5825
  post: {
5006
- req: CommodityControllerData;
5826
+ req: CommodityControllerCreateData;
5007
5827
  res: {
5008
- 201: unknown;
5828
+ /**
5829
+ * Commodity created successfully
5830
+ */
5831
+ 201: CommodityResponseDto;
5832
+ /**
5833
+ * Invalid input data
5834
+ */
5835
+ 400: ApiProblemResponseDto;
5836
+ /**
5837
+ * Commodity already exists
5838
+ */
5839
+ 409: ApiProblemResponseDto;
5009
5840
  };
5010
5841
  };
5011
5842
  get: {
@@ -5033,39 +5864,74 @@ type $OpenApiTs = {
5033
5864
  };
5034
5865
  };
5035
5866
  put: {
5036
- req: CommodityController1Data;
5867
+ req: CommodityControllerUpdateData;
5037
5868
  res: {
5038
- 200: unknown;
5869
+ /**
5870
+ * Commodity updated successfully
5871
+ */
5872
+ 200: CommodityResponseDto;
5873
+ /**
5874
+ * Invalid input data
5875
+ */
5876
+ 400: ApiProblemResponseDto;
5877
+ /**
5878
+ * Commodity not found
5879
+ */
5880
+ 404: ApiProblemResponseDto;
5039
5881
  };
5040
5882
  };
5041
5883
  delete: {
5042
- req: CommodityController2Data;
5884
+ req: CommodityControllerDeleteData;
5043
5885
  res: {
5886
+ /**
5887
+ * Commodity deleted successfully
5888
+ */
5044
5889
  204: void;
5890
+ /**
5891
+ * Commodity not found
5892
+ */
5893
+ 404: ApiProblemResponseDto;
5045
5894
  };
5046
5895
  };
5047
5896
  };
5048
5897
  '/api/v1/{region}/bean/commodities/{symbol}/ensure': {
5049
5898
  post: {
5050
- req: CommodityController3Data;
5899
+ req: CommodityControllerGetOrCreateData;
5051
5900
  res: {
5052
- 201: unknown;
5901
+ /**
5902
+ * Commodity retrieved or created
5903
+ */
5904
+ 200: CommodityResponseDto;
5053
5905
  };
5054
5906
  };
5055
5907
  };
5056
5908
  '/api/v1/{region}/bean/commodities/bulk': {
5057
5909
  post: {
5058
- req: CommodityController4Data;
5910
+ req: CommodityControllerBulkCreateData;
5059
5911
  res: {
5060
- 201: unknown;
5912
+ /**
5913
+ * Commodities created successfully
5914
+ */
5915
+ 201: Array<CommodityResponseDto>;
5061
5916
  };
5062
5917
  };
5063
5918
  };
5064
5919
  '/api/v1/{region}/bean/recurring-rules': {
5065
5920
  post: {
5066
- req: RecurringRuleControllerData;
5921
+ req: RecurringRuleControllerCreateData;
5067
5922
  res: {
5068
- 201: unknown;
5923
+ /**
5924
+ * Rule created successfully
5925
+ */
5926
+ 201: RecurringRuleResponseDto;
5927
+ /**
5928
+ * Invalid input data (e.g., autoCreate without accounts)
5929
+ */
5930
+ 400: unknown;
5931
+ /**
5932
+ * Rule with same name already exists
5933
+ */
5934
+ 409: unknown;
5069
5935
  };
5070
5936
  };
5071
5937
  get: {
@@ -5080,9 +5946,20 @@ type $OpenApiTs = {
5080
5946
  };
5081
5947
  '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}': {
5082
5948
  post: {
5083
- req: RecurringRuleController1Data;
5949
+ req: RecurringRuleControllerCreateFromTransactionData;
5084
5950
  res: {
5085
- 201: unknown;
5951
+ /**
5952
+ * Rule created successfully
5953
+ */
5954
+ 201: RecurringRuleResponseDto;
5955
+ /**
5956
+ * Transaction not found
5957
+ */
5958
+ 404: ApiProblemResponseDto;
5959
+ /**
5960
+ * Rule with same name already exists or transaction already linked
5961
+ */
5962
+ 409: ApiProblemResponseDto;
5086
5963
  };
5087
5964
  };
5088
5965
  };
@@ -5101,15 +5978,33 @@ type $OpenApiTs = {
5101
5978
  };
5102
5979
  };
5103
5980
  patch: {
5104
- req: RecurringRuleController2Data;
5981
+ req: RecurringRuleControllerUpdateData;
5105
5982
  res: {
5106
- 200: unknown;
5983
+ /**
5984
+ * Rule updated successfully
5985
+ */
5986
+ 200: RecurringRuleResponseDto;
5987
+ /**
5988
+ * Invalid input data
5989
+ */
5990
+ 400: unknown;
5991
+ /**
5992
+ * Rule not found
5993
+ */
5994
+ 404: unknown;
5107
5995
  };
5108
5996
  };
5109
5997
  delete: {
5110
- req: RecurringRuleController3Data;
5998
+ req: RecurringRuleControllerDeleteData;
5111
5999
  res: {
6000
+ /**
6001
+ * Rule deleted successfully
6002
+ */
5112
6003
  204: void;
6004
+ /**
6005
+ * Rule not found
6006
+ */
6007
+ 404: unknown;
5113
6008
  };
5114
6009
  };
5115
6010
  };
@@ -5167,37 +6062,96 @@ type $OpenApiTs = {
5167
6062
  };
5168
6063
  '/api/v1/{region}/bean/expected-transactions/{id}/skip': {
5169
6064
  post: {
5170
- req: ExpectedTransactionControllerData;
6065
+ req: ExpectedTransactionControllerSkipData;
5171
6066
  res: {
5172
- 200: unknown;
6067
+ /**
6068
+ * Expected transaction skipped successfully
6069
+ */
6070
+ 200: ExpectedTransactionResponseDto;
6071
+ /**
6072
+ * Cannot skip - not in PENDING status
6073
+ */
6074
+ 400: unknown;
6075
+ /**
6076
+ * Expected transaction not found
6077
+ */
6078
+ 404: unknown;
5173
6079
  };
5174
6080
  };
5175
6081
  delete: {
5176
- req: ExpectedTransactionController1Data;
6082
+ req: ExpectedTransactionControllerUndoSkipData;
5177
6083
  res: {
5178
- 200: unknown;
6084
+ /**
6085
+ * Skip undone successfully
6086
+ */
6087
+ 200: ExpectedTransactionResponseDto;
6088
+ /**
6089
+ * Cannot undo - not in SKIPPED status
6090
+ */
6091
+ 400: unknown;
6092
+ /**
6093
+ * Expected transaction not found
6094
+ */
6095
+ 404: unknown;
5179
6096
  };
5180
6097
  };
5181
6098
  };
5182
6099
  '/api/v1/{region}/bean/expected-transactions/{id}/match': {
5183
6100
  post: {
5184
- req: ExpectedTransactionController2Data;
6101
+ req: ExpectedTransactionControllerConfirmMatchData;
5185
6102
  res: {
6103
+ /**
6104
+ * Match confirmed successfully
6105
+ */
5186
6106
  200: unknown;
6107
+ /**
6108
+ * Cannot match - not in PENDING status
6109
+ */
6110
+ 400: unknown;
6111
+ /**
6112
+ * Expected or actual transaction not found
6113
+ */
6114
+ 404: unknown;
6115
+ /**
6116
+ * Actual transaction already matched to another rule
6117
+ */
6118
+ 409: unknown;
5187
6119
  };
5188
6120
  };
5189
6121
  delete: {
5190
- req: ExpectedTransactionController3Data;
6122
+ req: ExpectedTransactionControllerUnmatchData;
5191
6123
  res: {
6124
+ /**
6125
+ * Match removed successfully
6126
+ */
5192
6127
  200: unknown;
6128
+ /**
6129
+ * Cannot unmatch - not in COMPLETED status
6130
+ */
6131
+ 400: unknown;
6132
+ /**
6133
+ * Expected transaction not found
6134
+ */
6135
+ 404: unknown;
5193
6136
  };
5194
6137
  };
5195
6138
  };
5196
6139
  '/api/v1/{region}/bean/expected-transactions/{id}/enter': {
5197
6140
  post: {
5198
- req: ExpectedTransactionController4Data;
6141
+ req: ExpectedTransactionControllerEnterNowData;
5199
6142
  res: {
6143
+ /**
6144
+ * Transaction created successfully
6145
+ */
5200
6146
  201: unknown;
6147
+ /**
6148
+ * Cannot enter - not in PENDING status or missing accounts
6149
+ */
6150
+ 400: unknown;
6151
+ /**
6152
+ * Expected transaction or accounts not found
6153
+ */
6154
+ 404: unknown;
5201
6155
  };
5202
6156
  };
5203
6157
  };
@@ -5214,9 +6168,24 @@ type $OpenApiTs = {
5214
6168
  };
5215
6169
  '/api/v1/{region}/bean/transaction-rules': {
5216
6170
  post: {
5217
- req: TransactionRuleControllerData;
6171
+ req: TransactionRuleControllerCreateData;
5218
6172
  res: {
5219
- 201: unknown;
6173
+ /**
6174
+ * Rule updated successfully (upsert mode)
6175
+ */
6176
+ 200: TransactionRuleResponseDto;
6177
+ /**
6178
+ * Validation failed
6179
+ */
6180
+ 400: ApiProblemResponseDto;
6181
+ /**
6182
+ * Unauthorized
6183
+ */
6184
+ 401: ApiProblemResponseDto;
6185
+ /**
6186
+ * Resource conflict - another process is updating this rule
6187
+ */
6188
+ 409: ApiProblemResponseDto;
5220
6189
  };
5221
6190
  };
5222
6191
  get: {
@@ -5241,6 +6210,10 @@ type $OpenApiTs = {
5241
6210
  * Validation result
5242
6211
  */
5243
6212
  200: ValidateRuleResponseDto;
6213
+ /**
6214
+ * Validation failed
6215
+ */
6216
+ 400: ApiProblemResponseDto;
5244
6217
  /**
5245
6218
  * Unauthorized
5246
6219
  */
@@ -5250,9 +6223,20 @@ type $OpenApiTs = {
5250
6223
  };
5251
6224
  '/api/v1/{region}/bean/transaction-rules/bulk': {
5252
6225
  post: {
5253
- req: TransactionRuleController1Data;
6226
+ req: TransactionRuleControllerBulkCreateData;
5254
6227
  res: {
5255
- 201: unknown;
6228
+ /**
6229
+ * Bulk create completed
6230
+ */
6231
+ 201: BulkCreateRulesResponseDto;
6232
+ /**
6233
+ * Invalid bulk create data
6234
+ */
6235
+ 400: ApiProblemResponseDto;
6236
+ /**
6237
+ * Unauthorized
6238
+ */
6239
+ 401: ApiProblemResponseDto;
5256
6240
  };
5257
6241
  };
5258
6242
  };
@@ -5313,15 +6297,57 @@ type $OpenApiTs = {
5313
6297
  };
5314
6298
  };
5315
6299
  put: {
5316
- req: TransactionRuleController2Data;
6300
+ req: TransactionRuleControllerUpdateData;
5317
6301
  res: {
5318
- 200: unknown;
6302
+ /**
6303
+ * Rule updated successfully
6304
+ */
6305
+ 200: TransactionRuleResponseDto;
6306
+ /**
6307
+ * Validation failed
6308
+ */
6309
+ 400: ApiProblemResponseDto;
6310
+ /**
6311
+ * Unauthorized
6312
+ */
6313
+ 401: ApiProblemResponseDto;
6314
+ /**
6315
+ * Forbidden - not owner of rule
6316
+ */
6317
+ 403: ApiProblemResponseDto;
6318
+ /**
6319
+ * Rule not found
6320
+ */
6321
+ 404: ApiProblemResponseDto;
6322
+ /**
6323
+ * Resource conflict - rule is being modified by another process
6324
+ */
6325
+ 409: ApiProblemResponseDto;
5319
6326
  };
5320
6327
  };
5321
6328
  delete: {
5322
- req: TransactionRuleController3Data;
6329
+ req: TransactionRuleControllerDeleteData;
5323
6330
  res: {
6331
+ /**
6332
+ * Rule deleted successfully
6333
+ */
5324
6334
  204: void;
6335
+ /**
6336
+ * Unauthorized
6337
+ */
6338
+ 401: ApiProblemResponseDto;
6339
+ /**
6340
+ * Forbidden - not owner of rule
6341
+ */
6342
+ 403: ApiProblemResponseDto;
6343
+ /**
6344
+ * Rule not found
6345
+ */
6346
+ 404: ApiProblemResponseDto;
6347
+ /**
6348
+ * Resource conflict - rule is being modified by another process
6349
+ */
6350
+ 409: ApiProblemResponseDto;
5325
6351
  };
5326
6352
  };
5327
6353
  };
@@ -5447,7 +6473,6 @@ type $OpenApiTs = {
5447
6473
  };
5448
6474
  '/api/v1/users/asset-liability-summary': {
5449
6475
  get: {
5450
- req: UserControllerGetAssetLiabilitySummaryData;
5451
6476
  res: {
5452
6477
  /**
5453
6478
  * Summary retrieved successfully
@@ -5458,7 +6483,6 @@ type $OpenApiTs = {
5458
6483
  };
5459
6484
  '/api/v1/admin/properties': {
5460
6485
  get: {
5461
- req: PropertyControllerGetAllData;
5462
6486
  res: {
5463
6487
  /**
5464
6488
  * Properties retrieved successfully
@@ -5498,15 +6522,48 @@ type $OpenApiTs = {
5498
6522
  };
5499
6523
  };
5500
6524
  put: {
5501
- req: PropertyControllerData;
6525
+ req: PropertyControllerUpdateData;
5502
6526
  res: {
6527
+ /**
6528
+ * Property updated successfully
6529
+ */
5503
6530
  200: unknown;
6531
+ /**
6532
+ * Unauthorized
6533
+ */
6534
+ 401: unknown;
6535
+ /**
6536
+ * Forbidden - insufficient permissions
6537
+ */
6538
+ 403: unknown;
5504
6539
  };
5505
6540
  };
5506
6541
  delete: {
5507
- req: PropertyController1Data;
6542
+ req: PropertyControllerDeleteData;
5508
6543
  res: {
6544
+ /**
6545
+ * Property deleted successfully
6546
+ */
5509
6547
  204: void;
6548
+ /**
6549
+ * Unauthorized
6550
+ */
6551
+ 401: unknown;
6552
+ /**
6553
+ * Forbidden - insufficient permissions
6554
+ */
6555
+ 403: unknown;
6556
+ /**
6557
+ * Property not found
6558
+ */
6559
+ 404: unknown;
6560
+ };
6561
+ };
6562
+ };
6563
+ '/api/v1/{region}/bean/export/beancount': {
6564
+ get: {
6565
+ res: {
6566
+ 200: unknown;
5510
6567
  };
5511
6568
  };
5512
6569
  };
@@ -5579,6 +6636,29 @@ type $OpenApiTs = {
5579
6636
  };
5580
6637
  };
5581
6638
  };
6639
+ '/api/v1/{region}/bean/import/beancount': {
6640
+ post: {
6641
+ req: FileImportControllerImportBeancountData;
6642
+ res: {
6643
+ /**
6644
+ * Beancount file imported successfully
6645
+ */
6646
+ 200: {
6647
+ imported?: number;
6648
+ skipped?: number;
6649
+ failed?: number;
6650
+ accountsCreated?: number;
6651
+ errors?: Array<{
6652
+ [key: string]: unknown;
6653
+ }>;
6654
+ };
6655
+ /**
6656
+ * Bad request - invalid file or no file uploaded
6657
+ */
6658
+ 400: ApiProblemResponseDto;
6659
+ };
6660
+ };
6661
+ };
5582
6662
  '/api/v1/{region}/bean/import/config/{importerId}': {
5583
6663
  get: {
5584
6664
  req: ImporterConfigControllerGetConfigData;
@@ -5598,243 +6678,222 @@ type $OpenApiTs = {
5598
6678
  };
5599
6679
  };
5600
6680
  put: {
5601
- req: ImporterConfigControllerData;
6681
+ req: ImporterConfigControllerUpdateConfigData;
5602
6682
  res: {
5603
- 200: unknown;
6683
+ /**
6684
+ * Configuration updated successfully
6685
+ */
6686
+ 200: ImporterConfigDto;
6687
+ /**
6688
+ * Invalid input - Validation failed
6689
+ */
6690
+ 400: ApiProblemResponseDto;
6691
+ /**
6692
+ * Configuration not found
6693
+ */
6694
+ 404: ApiProblemResponseDto;
5604
6695
  };
5605
6696
  };
5606
6697
  };
5607
6698
  '/api/v1/{region}/bean/import/config/{importerId}/reset': {
5608
6699
  post: {
5609
- req: ImporterConfigController1Data;
5610
- res: {
5611
- 201: unknown;
5612
- };
5613
- };
5614
- };
5615
- '/api/v1/{region}/bean/import/provider/{providerName}/sync': {
5616
- post: {
5617
- req: ProviderSyncControllerSyncData;
6700
+ req: ImporterConfigControllerResetConfigData;
5618
6701
  res: {
5619
6702
  /**
5620
- * Sync completed successfully
5621
- */
5622
- 200: ProviderSyncResponseDto;
5623
- /**
5624
- * Invalid request data
5625
- */
5626
- 400: unknown;
5627
- /**
5628
- * Missing or invalid authentication
6703
+ * Configuration reset successfully
5629
6704
  */
5630
- 401: unknown;
6705
+ 200: ImporterConfigDto;
5631
6706
  /**
5632
- * Provider not supported
6707
+ * Invalid input - Unsupported importer
5633
6708
  */
5634
- 404: unknown;
6709
+ 400: ApiProblemResponseDto;
5635
6710
  };
5636
6711
  };
5637
6712
  };
5638
- '/api/v1/{region}/bean/import/provider/supported': {
6713
+ '/api/v1/bean/platforms': {
5639
6714
  get: {
5640
- req: ProviderSyncControllerGetSupportedProvidersData;
5641
6715
  res: {
5642
6716
  /**
5643
- * List of supported providers
6717
+ * List of platforms with binding and account counts
5644
6718
  */
5645
- 200: SupportedProvidersResponseDto;
6719
+ 200: unknown;
6720
+ };
6721
+ };
6722
+ post: {
6723
+ req: PlatformControllerCreateData;
6724
+ res: {
5646
6725
  /**
5647
- * Missing or invalid authentication
6726
+ * Platform created successfully
5648
6727
  */
5649
- 401: unknown;
6728
+ 201: unknown;
6729
+ /**
6730
+ * Platform already exists
6731
+ */
6732
+ 409: unknown;
5650
6733
  };
5651
6734
  };
5652
6735
  };
5653
- '/api/v1/{region}/bean/import/provider/{providerName}/supported': {
6736
+ '/api/v1/bean/platforms/list': {
5654
6737
  get: {
5655
- req: ProviderSyncControllerIsProviderSupportedData;
5656
6738
  res: {
5657
6739
  /**
5658
- * Provider support status
6740
+ * List of platforms with user binding status
5659
6741
  */
5660
6742
  200: unknown;
5661
- /**
5662
- * Missing or invalid authentication
5663
- */
5664
- 401: unknown;
5665
6743
  };
5666
6744
  };
5667
6745
  };
5668
- '/api/v1/{region}/bean/import/parser-telemetry': {
5669
- post: {
5670
- req: TelemetryControllerReportTelemetryData;
6746
+ '/api/v1/bean/platforms/match': {
6747
+ get: {
6748
+ req: PlatformControllerMatchPlatformsData;
5671
6749
  res: {
5672
6750
  /**
5673
- * Telemetry report received
6751
+ * List of matching platforms with suggested segment names
5674
6752
  */
5675
6753
  200: unknown;
5676
- /**
5677
- * Unauthorized
5678
- */
5679
- 401: unknown;
5680
6754
  };
5681
6755
  };
5682
6756
  };
5683
- '/api/v1/{region}/bean/nlp/process': {
5684
- post: {
5685
- req: NlpControllerProcessNaturalLanguageData;
6757
+ '/api/v1/bean/platforms/{id}': {
6758
+ put: {
6759
+ req: PlatformControllerUpdateData;
5686
6760
  res: {
5687
6761
  /**
5688
- * NLP processing result - either created transaction or asking for more info
5689
- */
5690
- 200: NlpResponseDto;
5691
- /**
5692
- * Invalid input
6762
+ * Platform updated successfully
5693
6763
  */
5694
- 400: unknown;
6764
+ 200: unknown;
5695
6765
  /**
5696
- * Unauthorized
6766
+ * Platform not found
5697
6767
  */
5698
- 401: unknown;
6768
+ 404: unknown;
5699
6769
  };
5700
6770
  };
5701
- };
5702
- '/api/v1/{region}/bean/nlp/session': {
5703
6771
  delete: {
5704
- req: NlpControllerClearSessionData;
6772
+ req: PlatformControllerDeleteData;
5705
6773
  res: {
5706
6774
  /**
5707
- * Session cleared successfully
6775
+ * Platform deleted successfully
5708
6776
  */
5709
6777
  204: void;
5710
6778
  /**
5711
- * Unauthorized
6779
+ * Platform not found
5712
6780
  */
5713
- 401: unknown;
6781
+ 404: unknown;
5714
6782
  };
5715
6783
  };
5716
- get: {
5717
- req: NlpControllerGetSessionData;
6784
+ };
6785
+ '/api/v1/{region}/bean/import/provider/{providerName}/sync': {
6786
+ post: {
6787
+ req: ProviderSyncControllerSyncData;
5718
6788
  res: {
5719
6789
  /**
5720
- * Current session state (or null if no active session)
6790
+ * Sync completed successfully
5721
6791
  */
5722
- 200: unknown;
6792
+ 200: ProviderSyncResponseDto;
5723
6793
  /**
5724
- * Unauthorized
6794
+ * Invalid request data
6795
+ */
6796
+ 400: unknown;
6797
+ /**
6798
+ * Missing or invalid authentication
5725
6799
  */
5726
6800
  401: unknown;
5727
- };
5728
- };
5729
- };
5730
- '/api/v1/bean/platforms': {
5731
- get: {
5732
- req: PlatformControllerFindAllData;
5733
- res: {
5734
6801
  /**
5735
- * List of platforms with binding and account counts
6802
+ * Provider not supported
5736
6803
  */
5737
- 200: unknown;
5738
- };
5739
- };
5740
- post: {
5741
- req: PlatformControllerData;
5742
- res: {
5743
- 201: unknown;
6804
+ 404: unknown;
5744
6805
  };
5745
6806
  };
5746
6807
  };
5747
- '/api/v1/bean/platforms/list': {
6808
+ '/api/v1/{region}/bean/import/provider/supported': {
5748
6809
  get: {
5749
- req: PlatformControllerGetPlatformListData;
6810
+ req: ProviderSyncControllerGetSupportedProvidersData;
5750
6811
  res: {
5751
6812
  /**
5752
- * List of platforms with user binding status
6813
+ * List of supported providers
5753
6814
  */
5754
- 200: unknown;
5755
- };
5756
- };
5757
- };
5758
- '/api/v1/bean/platforms/{id}': {
5759
- put: {
5760
- req: PlatformController1Data;
5761
- res: {
5762
- 200: unknown;
5763
- };
5764
- };
5765
- delete: {
5766
- req: PlatformController2Data;
5767
- res: {
5768
- 204: void;
6815
+ 200: SupportedProvidersResponseDto;
6816
+ /**
6817
+ * Missing or invalid authentication
6818
+ */
6819
+ 401: unknown;
5769
6820
  };
5770
6821
  };
5771
6822
  };
5772
- '/api/v1/market/symbols/lookup': {
6823
+ '/api/v1/{region}/bean/import/provider/{providerName}/supported': {
5773
6824
  get: {
5774
- req: SymbolControllerLookupSymbolData;
6825
+ req: ProviderSyncControllerIsProviderSupportedData;
5775
6826
  res: {
5776
6827
  /**
5777
- * Symbols found successfully
6828
+ * Provider support status
5778
6829
  */
5779
6830
  200: unknown;
5780
6831
  /**
5781
- * Invalid query parameters
6832
+ * Missing or invalid authentication
5782
6833
  */
5783
- 400: unknown;
6834
+ 401: unknown;
5784
6835
  };
5785
6836
  };
5786
6837
  };
5787
- '/api/v1/market/symbols/{dataSource}/{symbol}': {
5788
- get: {
5789
- req: SymbolControllerGetSymbolDataData;
6838
+ '/api/v1/{region}/bean/import/parser-telemetry': {
6839
+ post: {
6840
+ req: TelemetryControllerReportTelemetryData;
5790
6841
  res: {
5791
6842
  /**
5792
- * Symbol data retrieved successfully
6843
+ * Telemetry report received
5793
6844
  */
5794
6845
  200: unknown;
5795
6846
  /**
5796
- * Invalid data source
5797
- */
5798
- 400: unknown;
5799
- /**
5800
- * Symbol not found
6847
+ * Unauthorized
5801
6848
  */
5802
- 404: unknown;
6849
+ 401: unknown;
5803
6850
  };
5804
6851
  };
5805
6852
  };
5806
- '/api/v1/market/symbols/{dataSource}/{symbol}/{dateString}': {
5807
- get: {
5808
- req: SymbolControllerGatherSymbolForDateData;
6853
+ '/api/v1/{region}/bean/nlp/process': {
6854
+ post: {
6855
+ req: NlpControllerProcessNaturalLanguageData;
5809
6856
  res: {
5810
6857
  /**
5811
- * Historical data retrieved successfully
6858
+ * NLP processing result - either created transaction or asking for more info
5812
6859
  */
5813
- 200: unknown;
6860
+ 200: NlpResponseDto;
5814
6861
  /**
5815
- * Invalid date format
6862
+ * Invalid input
5816
6863
  */
5817
6864
  400: unknown;
5818
6865
  /**
5819
- * Symbol data not found for specified date
6866
+ * Unauthorized
5820
6867
  */
5821
- 404: unknown;
6868
+ 401: unknown;
5822
6869
  };
5823
6870
  };
5824
6871
  };
5825
- '/api/v1/market/symbols/yahoo/batch-update': {
5826
- put: {
5827
- req: SymbolControllerData;
6872
+ '/api/v1/{region}/bean/nlp/session': {
6873
+ delete: {
6874
+ req: NlpControllerClearSessionData;
5828
6875
  res: {
5829
- 200: unknown;
6876
+ /**
6877
+ * Session cleared successfully
6878
+ */
6879
+ 204: void;
6880
+ /**
6881
+ * Unauthorized
6882
+ */
6883
+ 401: unknown;
5830
6884
  };
5831
6885
  };
5832
- };
5833
- '/api/v1/cache/flush': {
5834
- post: {
5835
- req: CacheControllerFlushCacheData;
6886
+ get: {
6887
+ req: NlpControllerGetSessionData;
5836
6888
  res: {
5837
- 201: unknown;
6889
+ /**
6890
+ * Current session state (or null if no active session)
6891
+ */
6892
+ 200: unknown;
6893
+ /**
6894
+ * Unauthorized
6895
+ */
6896
+ 401: unknown;
5838
6897
  };
5839
6898
  };
5840
6899
  };
@@ -5946,9 +7005,15 @@ type $OpenApiTs = {
5946
7005
  };
5947
7006
  '/api/v1/auth/api-keys': {
5948
7007
  post: {
5949
- req: ApiKeysControllerData;
5950
7008
  res: {
7009
+ /**
7010
+ * API key created successfully
7011
+ */
5951
7012
  201: unknown;
7013
+ /**
7014
+ * Insufficient permissions to create API key
7015
+ */
7016
+ 403: unknown;
5952
7017
  };
5953
7018
  };
5954
7019
  };
@@ -5967,6 +7032,13 @@ type $OpenApiTs = {
5967
7032
  };
5968
7033
  };
5969
7034
  };
7035
+ '/api/v1/cache/flush': {
7036
+ post: {
7037
+ res: {
7038
+ 201: unknown;
7039
+ };
7040
+ };
7041
+ };
5970
7042
  '/api/v1/market/exchange-rates/{symbol}/{dateString}': {
5971
7043
  get: {
5972
7044
  req: ExchangeRateControllerGetExchangeRateData;
@@ -5984,7 +7056,6 @@ type $OpenApiTs = {
5984
7056
  };
5985
7057
  '/api/v1/health': {
5986
7058
  get: {
5987
- req: HealthControllerGetHealthData;
5988
7059
  res: {
5989
7060
  /**
5990
7061
  * Service is healthy
@@ -5999,7 +7070,6 @@ type $OpenApiTs = {
5999
7070
  };
6000
7071
  '/api/v1/health/database': {
6001
7072
  get: {
6002
- req: HealthControllerCheckDatabaseData;
6003
7073
  res: {
6004
7074
  /**
6005
7075
  * Database is healthy
@@ -6012,9 +7082,22 @@ type $OpenApiTs = {
6012
7082
  };
6013
7083
  };
6014
7084
  };
7085
+ '/api/v1/health/openbb': {
7086
+ get: {
7087
+ res: {
7088
+ /**
7089
+ * OpenBB status
7090
+ */
7091
+ 200: unknown;
7092
+ /**
7093
+ * OpenBB unavailable
7094
+ */
7095
+ 503: unknown;
7096
+ };
7097
+ };
7098
+ };
6015
7099
  '/api/v1/health/redis': {
6016
7100
  get: {
6017
- req: HealthControllerCheckRedisData;
6018
7101
  res: {
6019
7102
  /**
6020
7103
  * Redis is healthy
@@ -6029,7 +7112,6 @@ type $OpenApiTs = {
6029
7112
  };
6030
7113
  '/api/v1/health/circuit-breakers': {
6031
7114
  get: {
6032
- req: HealthControllerGetCircuitBreakersHealthData;
6033
7115
  res: {
6034
7116
  /**
6035
7117
  * Circuit breaker status
@@ -6067,7 +7149,6 @@ type $OpenApiTs = {
6067
7149
  };
6068
7150
  '/api/v1/health/metrics': {
6069
7151
  get: {
6070
- req: HealthControllerGetMetricsData;
6071
7152
  res: {
6072
7153
  /**
6073
7154
  * Health metrics
@@ -6080,70 +7161,8 @@ type $OpenApiTs = {
6080
7161
  };
6081
7162
  };
6082
7163
  };
6083
- '/api/v1/health/data-enhancer/{name}': {
6084
- get: {
6085
- req: HealthControllerGetHealthOfDataEnhancerData;
6086
- res: {
6087
- /**
6088
- * Data enhancer is healthy
6089
- */
6090
- 200: unknown;
6091
- /**
6092
- * Unauthorized
6093
- */
6094
- 401: unknown;
6095
- /**
6096
- * Data enhancer unavailable
6097
- */
6098
- 503: unknown;
6099
- };
6100
- };
6101
- };
6102
- '/api/v1/health/data-providers': {
6103
- get: {
6104
- req: HealthControllerCheckDataProvidersData;
6105
- res: {
6106
- /**
6107
- * Data providers health status
6108
- */
6109
- 200: unknown;
6110
- /**
6111
- * Unauthorized
6112
- */
6113
- 401: unknown;
6114
- /**
6115
- * Data providers check failed
6116
- */
6117
- 503: unknown;
6118
- };
6119
- };
6120
- };
6121
- '/api/v1/health/data-provider/{dataSource}': {
6122
- get: {
6123
- req: HealthControllerGetHealthOfDataProviderData;
6124
- res: {
6125
- /**
6126
- * Data provider is healthy
6127
- */
6128
- 200: unknown;
6129
- /**
6130
- * Invalid data source
6131
- */
6132
- 400: unknown;
6133
- /**
6134
- * Unauthorized
6135
- */
6136
- 401: unknown;
6137
- /**
6138
- * Data provider unavailable
6139
- */
6140
- 503: unknown;
6141
- };
6142
- };
6143
- };
6144
7164
  '/api/v1/system/info': {
6145
7165
  get: {
6146
- req: InfoControllerGetInfoData;
6147
7166
  res: {
6148
7167
  /**
6149
7168
  * System information retrieved successfully
@@ -6152,73 +7171,6 @@ type $OpenApiTs = {
6152
7171
  };
6153
7172
  };
6154
7173
  };
6155
- '/api/v1/market/logos/{dataSource}/{symbol}': {
6156
- get: {
6157
- req: LogoControllerGetLogoByDataSourceAndSymbolData;
6158
- res: {
6159
- /**
6160
- * Logo image stream (favicon)
6161
- */
6162
- 200: unknown;
6163
- /**
6164
- * Unauthorized
6165
- */
6166
- 401: unknown;
6167
- /**
6168
- * Logo not found for the specified asset
6169
- */
6170
- 404: unknown;
6171
- /**
6172
- * Service unavailable
6173
- */
6174
- 503: unknown;
6175
- };
6176
- };
6177
- };
6178
- '/api/v1/market/logos': {
6179
- get: {
6180
- req: LogoControllerGetLogoByUrlData;
6181
- res: {
6182
- /**
6183
- * Logo image stream (favicon)
6184
- */
6185
- 200: unknown;
6186
- /**
6187
- * Unauthorized
6188
- */
6189
- 401: unknown;
6190
- /**
6191
- * Service unavailable
6192
- */
6193
- 503: unknown;
6194
- };
6195
- };
6196
- };
6197
- '/api/v1/market-data/{dataSource}/{symbol}': {
6198
- get: {
6199
- req: MarketDataControllerGetMarketDataBySymbolData;
6200
- res: {
6201
- /**
6202
- * Market data retrieved successfully
6203
- */
6204
- 200: unknown;
6205
- /**
6206
- * Insufficient permissions to read market data
6207
- */
6208
- 403: unknown;
6209
- /**
6210
- * Market data not found
6211
- */
6212
- 404: unknown;
6213
- };
6214
- };
6215
- post: {
6216
- req: MarketDataControllerData;
6217
- res: {
6218
- 201: unknown;
6219
- };
6220
- };
6221
- };
6222
7174
  };
6223
7175
 
6224
7176
  declare class BeanAccountsService {
@@ -6330,12 +7282,39 @@ declare class BeanTransactionsService {
6330
7282
  */
6331
7283
  static transactionControllerList(data: TransactionControllerListData): CancelablePromise<TransactionControllerListResponse>;
6332
7284
  /**
7285
+ * @deprecated
7286
+ * Batch create transactions (DEPRECATED)
7287
+ * DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
7288
+ * @param data The data for the request.
7289
+ * @param data.region Region code for tenant context
7290
+ * @param data.requestBody
7291
+ * @returns BatchTransactionResponseDto Transactions processed
7292
+ * @throws ApiError
7293
+ */
7294
+ static transactionControllerCreateBatch(data: TransactionControllerCreateBatchData): CancelablePromise<TransactionControllerCreateBatchResponse>;
7295
+ /**
7296
+ * Correct (supersede) a transaction
7297
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
7298
+ * @param data The data for the request.
7299
+ * @param data.id Original transaction ID to correct
7300
+ * @param data.region Region code for tenant context
7301
+ * @param data.requestBody
7302
+ * @returns TransactionDetailDto Corrected transaction created
7303
+ * @throws ApiError
7304
+ */
7305
+ static transactionControllerCorrect(data: TransactionControllerCorrectData): CancelablePromise<TransactionControllerCorrectResponse>;
7306
+ /**
7307
+ * Suggest transaction tags
7308
+ * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
6333
7309
  * @param data The data for the request.
6334
7310
  * @param data.region Region code for tenant context
6335
- * @returns unknown
7311
+ * @param data.q Prefix match, case-insensitive (max 50 chars)
7312
+ * @param data.sort usage (default) or name
7313
+ * @param data.limit Max suggestions (1-100, default 10)
7314
+ * @returns TagSuggestionsResponseDto Tag suggestions
6336
7315
  * @throws ApiError
6337
7316
  */
6338
- static transactionController(data: TransactionControllerData): CancelablePromise<TransactionControllerResponse>;
7317
+ static transactionControllerSuggestTags(data: TransactionControllerSuggestTagsData): CancelablePromise<TransactionControllerSuggestTagsResponse>;
6339
7318
  /**
6340
7319
  * Get transaction detail
6341
7320
  * Returns transaction details including all postings
@@ -6358,12 +7337,15 @@ declare class BeanTransactionsService {
6358
7337
  */
6359
7338
  static transactionControllerUpdate(data: TransactionControllerUpdateData): CancelablePromise<TransactionControllerUpdateResponse>;
6360
7339
  /**
7340
+ * Void transaction
7341
+ * Soft-deletes a transaction by marking it as VOIDED
6361
7342
  * @param data The data for the request.
7343
+ * @param data.id Transaction ID
6362
7344
  * @param data.region Region code for tenant context
6363
- * @returns void
7345
+ * @returns void Transaction voided successfully
6364
7346
  * @throws ApiError
6365
7347
  */
6366
- static transactionController1(data: TransactionController1Data): CancelablePromise<TransactionController1Response>;
7348
+ static transactionControllerDelete(data: TransactionControllerDeleteData): CancelablePromise<TransactionControllerDeleteResponse>;
6367
7349
  }
6368
7350
  declare class BeanBalancesService {
6369
7351
  /**
@@ -6371,7 +7353,7 @@ declare class BeanBalancesService {
6371
7353
  * Calculate account balance at a specific date for a single currency
6372
7354
  * @param data The data for the request.
6373
7355
  * @param data.account Account name (e.g., "Assets:Bank:Checking")
6374
- * @param data.region Region code (cn, us, de)
7356
+ * @param data.region Region code for tenant context
6375
7357
  * @param data.date Date to calculate balance at (ISO 8601 format)
6376
7358
  * @param data.currency Currency to query (e.g., "USD", "CNY")
6377
7359
  * @returns BalanceResponseDto Balance calculated successfully
@@ -6382,7 +7364,7 @@ declare class BeanBalancesService {
6382
7364
  * Query multi-currency account balance
6383
7365
  * Calculate account balances for all currencies at a specific date
6384
7366
  * @param data The data for the request.
6385
- * @param data.region Region code (cn, us, de)
7367
+ * @param data.region Region code for tenant context
6386
7368
  * @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
6387
7369
  * @throws ApiError
6388
7370
  */
@@ -6390,17 +7372,20 @@ declare class BeanBalancesService {
6390
7372
  }
6391
7373
  declare class BeanCommoditiesService {
6392
7374
  /**
7375
+ * Create a new commodity
7376
+ * Creates a new commodity definition for the authenticated user
6393
7377
  * @param data The data for the request.
6394
- * @param data.region Region code (cn, us, de)
6395
- * @returns unknown
7378
+ * @param data.region Region code for tenant context
7379
+ * @param data.requestBody
7380
+ * @returns CommodityResponseDto Commodity created successfully
6396
7381
  * @throws ApiError
6397
7382
  */
6398
- static commodityController(data: CommodityControllerData): CancelablePromise<CommodityControllerResponse>;
7383
+ static commodityControllerCreate(data: CommodityControllerCreateData): CancelablePromise<CommodityControllerCreateResponse>;
6399
7384
  /**
6400
7385
  * List user commodities
6401
7386
  * Returns all commodity definitions for the authenticated user with optional filtering
6402
7387
  * @param data The data for the request.
6403
- * @param data.region Region code (cn, us, de)
7388
+ * @param data.region Region code for tenant context
6404
7389
  * @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
6405
7390
  * @param data.symbol Filter by exact symbol match
6406
7391
  * @returns CommodityListResponseDto Commodities retrieved successfully
@@ -6412,39 +7397,51 @@ declare class BeanCommoditiesService {
6412
7397
  * Returns a specific commodity definition by its symbol
6413
7398
  * @param data The data for the request.
6414
7399
  * @param data.symbol Commodity symbol
6415
- * @param data.region Region code (cn, us, de)
7400
+ * @param data.region Region code for tenant context
6416
7401
  * @returns CommodityResponseDto Commodity retrieved successfully
6417
7402
  * @throws ApiError
6418
7403
  */
6419
7404
  static commodityControllerFindOne(data: CommodityControllerFindOneData): CancelablePromise<CommodityControllerFindOneResponse>;
6420
7405
  /**
7406
+ * Update commodity
7407
+ * Updates an existing commodity definition. Symbol cannot be changed.
6421
7408
  * @param data The data for the request.
6422
- * @param data.region Region code (cn, us, de)
6423
- * @returns unknown
7409
+ * @param data.symbol Commodity symbol
7410
+ * @param data.region Region code for tenant context
7411
+ * @param data.requestBody
7412
+ * @returns CommodityResponseDto Commodity updated successfully
6424
7413
  * @throws ApiError
6425
7414
  */
6426
- static commodityController1(data: CommodityController1Data): CancelablePromise<CommodityController1Response>;
7415
+ static commodityControllerUpdate(data: CommodityControllerUpdateData): CancelablePromise<CommodityControllerUpdateResponse>;
6427
7416
  /**
7417
+ * Delete commodity
7418
+ * Deletes a commodity definition
6428
7419
  * @param data The data for the request.
6429
- * @param data.region Region code (cn, us, de)
6430
- * @returns void
7420
+ * @param data.symbol Commodity symbol
7421
+ * @param data.region Region code for tenant context
7422
+ * @returns void Commodity deleted successfully
6431
7423
  * @throws ApiError
6432
7424
  */
6433
- static commodityController2(data: CommodityController2Data): CancelablePromise<CommodityController2Response>;
7425
+ static commodityControllerDelete(data: CommodityControllerDeleteData): CancelablePromise<CommodityControllerDeleteResponse>;
6434
7426
  /**
7427
+ * Ensure commodity exists
7428
+ * Gets existing commodity or creates it with automatic initialization from OpenBB
6435
7429
  * @param data The data for the request.
6436
- * @param data.region Region code (cn, us, de)
6437
- * @returns unknown
7430
+ * @param data.symbol Commodity symbol
7431
+ * @param data.region Region code for tenant context
7432
+ * @returns CommodityResponseDto Commodity retrieved or created
6438
7433
  * @throws ApiError
6439
7434
  */
6440
- static commodityController3(data: CommodityController3Data): CancelablePromise<CommodityController3Response>;
7435
+ static commodityControllerGetOrCreate(data: CommodityControllerGetOrCreateData): CancelablePromise<CommodityControllerGetOrCreateResponse>;
6441
7436
  /**
7437
+ * Bulk create commodities
7438
+ * Creates multiple commodities from a list of symbols, useful for initialization
6442
7439
  * @param data The data for the request.
6443
- * @param data.region Region code (cn, us, de)
6444
- * @returns unknown
7440
+ * @param data.region Region code for tenant context
7441
+ * @returns CommodityResponseDto Commodities created successfully
6445
7442
  * @throws ApiError
6446
7443
  */
6447
- static commodityController4(data: CommodityController4Data): CancelablePromise<CommodityController4Response>;
7444
+ static commodityControllerBulkCreate(data: CommodityControllerBulkCreateData): CancelablePromise<CommodityControllerBulkCreateResponse>;
6448
7445
  }
6449
7446
  declare class ProviderSyncService {
6450
7447
  /**
@@ -6482,7 +7479,7 @@ declare class ProviderSyncService {
6482
7479
  * Get supported providers
6483
7480
  * Returns a list of all providers supported by the sync endpoint.
6484
7481
  * @param data The data for the request.
6485
- * @param data.region Region code (cn, us, de)
7482
+ * @param data.region Region code for tenant context
6486
7483
  * @returns SupportedProvidersResponseDto List of supported providers
6487
7484
  * @throws ApiError
6488
7485
  */
@@ -6492,7 +7489,7 @@ declare class ProviderSyncService {
6492
7489
  * Returns whether a specific provider is supported.
6493
7490
  * @param data The data for the request.
6494
7491
  * @param data.providerName Provider name to check
6495
- * @param data.region Region code (cn, us, de)
7492
+ * @param data.region Region code for tenant context
6496
7493
  * @returns unknown Provider support status
6497
7494
  * @throws ApiError
6498
7495
  */
@@ -6501,79 +7498,48 @@ declare class ProviderSyncService {
6501
7498
  declare class HealthService {
6502
7499
  /**
6503
7500
  * Basic health check for K8s/load balancer probes
6504
- * @param data The data for the request.
6505
- * @param data.region Region code (cn, us, de)
6506
7501
  * @returns unknown Service is healthy
6507
7502
  * @throws ApiError
6508
7503
  */
6509
- static healthControllerGetHealth(data: HealthControllerGetHealthData): CancelablePromise<HealthControllerGetHealthResponse>;
7504
+ static healthControllerGetHealth(): CancelablePromise<HealthControllerGetHealthResponse>;
6510
7505
  /**
6511
7506
  * Check database connection health
6512
- * @param data The data for the request.
6513
- * @param data.region Region code (cn, us, de)
6514
7507
  * @returns unknown Database is healthy
6515
7508
  * @throws ApiError
6516
7509
  */
6517
- static healthControllerCheckDatabase(data: HealthControllerCheckDatabaseData): CancelablePromise<HealthControllerCheckDatabaseResponse>;
7510
+ static healthControllerCheckDatabase(): CancelablePromise<HealthControllerCheckDatabaseResponse>;
7511
+ /**
7512
+ * Check OpenBB schema status
7513
+ * @returns unknown OpenBB status
7514
+ * @throws ApiError
7515
+ */
7516
+ static healthControllerCheckOpenBb(): CancelablePromise<HealthControllerCheckOpenBbResponse>;
6518
7517
  /**
6519
7518
  * Check Redis connection health
6520
- * @param data The data for the request.
6521
- * @param data.region Region code (cn, us, de)
6522
7519
  * @returns unknown Redis is healthy
6523
7520
  * @throws ApiError
6524
7521
  */
6525
- static healthControllerCheckRedis(data: HealthControllerCheckRedisData): CancelablePromise<HealthControllerCheckRedisResponse>;
7522
+ static healthControllerCheckRedis(): CancelablePromise<HealthControllerCheckRedisResponse>;
6526
7523
  /**
6527
7524
  * Get status of all circuit breakers
6528
- * @param data The data for the request.
6529
- * @param data.region Region code (cn, us, de)
6530
7525
  * @returns unknown Circuit breaker status
6531
7526
  * @throws ApiError
6532
7527
  */
6533
- static healthControllerGetCircuitBreakersHealth(data: HealthControllerGetCircuitBreakersHealthData): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse>;
7528
+ static healthControllerGetCircuitBreakersHealth(): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse>;
6534
7529
  /**
6535
7530
  * Reset a circuit breaker to CLOSED state
6536
7531
  * @param data The data for the request.
6537
7532
  * @param data.name Circuit breaker name to reset
6538
- * @param data.region Region code (cn, us, de)
6539
7533
  * @returns unknown Circuit breaker reset successfully
6540
7534
  * @throws ApiError
6541
7535
  */
6542
7536
  static healthControllerResetCircuitBreaker(data: HealthControllerResetCircuitBreakerData): CancelablePromise<HealthControllerResetCircuitBreakerResponse>;
6543
7537
  /**
6544
7538
  * Get health check metrics and statistics
6545
- * @param data The data for the request.
6546
- * @param data.region Region code (cn, us, de)
6547
7539
  * @returns unknown Health metrics
6548
7540
  * @throws ApiError
6549
7541
  */
6550
- static healthControllerGetMetrics(data: HealthControllerGetMetricsData): CancelablePromise<HealthControllerGetMetricsResponse>;
6551
- /**
6552
- * Check health of a specific data enhancer
6553
- * @param data The data for the request.
6554
- * @param data.name Data enhancer name
6555
- * @param data.region Region code (cn, us, de)
6556
- * @returns unknown Data enhancer is healthy
6557
- * @throws ApiError
6558
- */
6559
- static healthControllerGetHealthOfDataEnhancer(data: HealthControllerGetHealthOfDataEnhancerData): CancelablePromise<HealthControllerGetHealthOfDataEnhancerResponse>;
6560
- /**
6561
- * Check health of all data providers
6562
- * @param data The data for the request.
6563
- * @param data.region Region code (cn, us, de)
6564
- * @returns unknown Data providers health status
6565
- * @throws ApiError
6566
- */
6567
- static healthControllerCheckDataProviders(data: HealthControllerCheckDataProvidersData): CancelablePromise<HealthControllerCheckDataProvidersResponse>;
6568
- /**
6569
- * Check health of a specific data provider
6570
- * @param data The data for the request.
6571
- * @param data.dataSource Data source identifier
6572
- * @param data.region Region code (cn, us, de)
6573
- * @returns unknown Data provider is healthy
6574
- * @throws ApiError
6575
- */
6576
- static healthControllerGetHealthOfDataProvider(data: HealthControllerGetHealthOfDataProviderData): CancelablePromise<HealthControllerGetHealthOfDataProviderResponse>;
7542
+ static healthControllerGetMetrics(): CancelablePromise<HealthControllerGetMetricsResponse>;
6577
7543
  }
6578
7544
 
6579
7545
  type ApiRequestOptions = {
@@ -6616,4 +7582,4 @@ type OpenAPIConfig = {
6616
7582
  };
6617
7583
  declare const OpenAPI: OpenAPIConfig;
6618
7584
 
6619
- export { type $OpenApiTs, type AccountControllerCloseData, type AccountControllerCloseResponse, type AccountControllerCreateData, type AccountControllerCreateResponse, type AccountControllerDeleteData, type AccountControllerDeleteResponse, type AccountControllerFindAllData, type AccountControllerFindAllResponse, type AccountControllerFindOneData, type AccountControllerFindOneResponse, type AccountControllerReopenData, type AccountControllerReopenResponse, type AccountControllerUpdateData, type AccountControllerUpdateResponse, type AccountExchangeRateWarningDto, type AccountItemDto, type AccountItemWithAssetClassDto, type AccountListResponseDto, type AccountResponseDto, type AccountStandardListResponseDto, type AccountStandardResponseDto, type AccountStandardsControllerGetRegionsData, type AccountStandardsControllerGetRegionsResponse, type AccountStandardsControllerGetTemplatesData, type AccountStandardsControllerGetTemplatesResponse, type AccountsResponseDto, type AccountsSummaryDto, type AnonymousLoginDto, type ApiKeysControllerData, type ApiKeysControllerResponse, type ApiProblemResponseDto, type AssetClassAccountsResponseDto, type AssetClassGroupDto, type AssetClassSummaryDto, type AuthControllerAccessTokenLoginData, type AuthControllerAccessTokenLoginResponse, type BackfillSnapshotsBody, type BackfillSnapshotsResponse, type BalanceByCurrencyDto, type BalanceControllerGetBalanceData, type BalanceControllerGetBalanceResponse, type BalanceControllerGetMultiCurrencyBalanceData, type BalanceControllerGetMultiCurrencyBalanceResponse, type BalanceResponseDto, BeanAccountsService, BeanBalancesService, BeanCommoditiesService, BeanTransactionsService, type CacheControllerFlushCacheData, type CacheControllerFlushCacheResponse, type CashFlowByCurrencyDto, type CashFlowResponseDto, type CloseAccountDto, type CommodityController1Data, type CommodityController1Response, type CommodityController2Data, type CommodityController2Response, type CommodityController3Data, type CommodityController3Response, type CommodityController4Data, type CommodityController4Response, type CommodityControllerData, type CommodityControllerFindAllData, type CommodityControllerFindAllResponse, type CommodityControllerFindOneData, type CommodityControllerFindOneResponse, type CommodityControllerResponse, type CommodityListResponseDto, type CommodityResponseDto, type ConvertedCashFlowDto, type ConvertedNetWorthDto, type CreateAccountDto, type CreatePostingDto, type CreateTransactionDto, type CurrencyBalanceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type ExchangeRateControllerGetExchangeRateData, type ExchangeRateControllerGetExchangeRateResponse, type ExchangeRateWarningDto, type ExpectedTransactionController1Data, type ExpectedTransactionController1Response, type ExpectedTransactionController2Data, type ExpectedTransactionController2Response, type ExpectedTransactionController3Data, type ExpectedTransactionController3Response, type ExpectedTransactionController4Data, type ExpectedTransactionController4Response, type ExpectedTransactionControllerData, type ExpectedTransactionControllerFindAllData, type ExpectedTransactionControllerFindAllResponse, type ExpectedTransactionControllerFindOneData, type ExpectedTransactionControllerFindOneResponse, type ExpectedTransactionControllerFindOverdueData, type ExpectedTransactionControllerFindOverdueResponse, type ExpectedTransactionControllerResponse, type ExpectedTransactionListResponseDto, type ExpectedTransactionResponseDto, type ExpectedTransactionRuleDto, type ExportRulesResponseDto, type FileImportControllerIdentifyFileData, type FileImportControllerIdentifyFileResponse, type FileImportControllerImportFileData, type FileImportControllerImportFileResponse, type FileImportDto, type ForecastControllerGetForecastData, type ForecastControllerGetForecastResponse, type ForecastItemDto, type ForecastResponseDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDataProvidersData, type HealthControllerCheckDataProvidersResponse, type HealthControllerCheckDatabaseData, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckRedisData, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthData, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthData, type HealthControllerGetHealthOfDataEnhancerData, type HealthControllerGetHealthOfDataEnhancerResponse, type HealthControllerGetHealthOfDataProviderData, type HealthControllerGetHealthOfDataProviderResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsData, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type IdentifyResultDto, type ImportErrorDto, type ImportResultDto, type ImporterConfigController1Data, type ImporterConfigController1Response, type ImporterConfigControllerData, type ImporterConfigControllerGetConfigData, type ImporterConfigControllerGetConfigResponse, type ImporterConfigControllerResponse, type ImporterConfigDataDto, type ImporterConfigDto, type InfoControllerGetInfoData, type InfoControllerGetInfoResponse, type LogoControllerGetLogoByDataSourceAndSymbolData, type LogoControllerGetLogoByDataSourceAndSymbolResponse, type LogoControllerGetLogoByUrlData, type LogoControllerGetLogoByUrlResponse, type MapperDefaultsDto, type MarketDataControllerData, type MarketDataControllerGetMarketDataBySymbolData, type MarketDataControllerGetMarketDataBySymbolResponse, type MarketDataControllerResponse, type MonthlyForecastDto, type MultiCurrencyBalanceResponseDto, type MultiCurrencyPointDto, type NetWorthByCurrencyDto, type NetWorthResponseDto, type NlpAccountConfirmationDataDto, type NlpAlternativePayeeDto, type NlpControllerClearSessionData, type NlpControllerClearSessionResponse, type NlpControllerGetSessionData, type NlpControllerGetSessionResponse, type NlpControllerProcessNaturalLanguageData, type NlpControllerProcessNaturalLanguageResponse, type NlpDefaultAccountsDto, type NlpDuplicateConfirmationDataDto, type NlpParsedDataDto, type NlpPayeeConfirmationDataDto, type NlpResponseDto, type NlpRuleConfirmationDataDto, type NlpSimilarityDto, type NlpSourceTransactionDto, type NlpSuggestedAccountDto, type NlpSuggestedAccountsDto, type NlpSuggestedPayeeDto, type NlpTargetTransactionDto, type NlpTransactionInfoDto, OpenAPI, type OpenAPIConfig, type ParserTelemetryReportDto, type PayeeAutocompleteResponseDto, type PayeeController1Data, type PayeeController1Response, type PayeeController2Data, type PayeeController2Response, type PayeeControllerAutocompleteData, type PayeeControllerAutocompleteResponse, type PayeeControllerData, type PayeeControllerFindAllData, type PayeeControllerFindAllResponse, type PayeeControllerFindOneData, type PayeeControllerFindOneResponse, type PayeeControllerGetTopPayeesData, type PayeeControllerGetTopPayeesResponse, type PayeeControllerResponse, type PayeeListResponseDto, type PayeeProfileAdminController1Data, type PayeeProfileAdminController1Response, type PayeeProfileAdminController2Data, type PayeeProfileAdminController2Response, type PayeeProfileAdminController3Data, type PayeeProfileAdminController3Response, type PayeeProfileAdminController4Data, type PayeeProfileAdminController4Response, type PayeeProfileAdminControllerData, type PayeeProfileAdminControllerFindAllData, type PayeeProfileAdminControllerFindAllResponse, type PayeeProfileAdminControllerFindOneData, type PayeeProfileAdminControllerFindOneResponse, type PayeeProfileAdminControllerResponse, type PayeeProfileListResponseDto, type PayeeProfileResponseDto, type PayeeResponseDto, type PayeeStatsResponseDto, type PlatformController1Data, type PlatformController1Response, type PlatformController2Data, type PlatformController2Response, type PlatformControllerData, type PlatformControllerFindAllData, type PlatformControllerFindAllResponse, type PlatformControllerGetPlatformListData, type PlatformControllerGetPlatformListResponse, type PlatformControllerResponse, type PlatformGroupDto, type PortfolioTrendsResponseDto, type PostingDetailDto, type PostingResponseDto, type ProcessNlpDto, type PropertyController1Data, type PropertyController1Response, type PropertyControllerData, type PropertyControllerGetAllData, type PropertyControllerGetAllResponse, type PropertyControllerGetByKeyData, type PropertyControllerGetByKeyResponse, type PropertyControllerResponse, type ProviderSyncConfigDto, type ProviderSyncControllerGetSupportedProvidersData, type ProviderSyncControllerGetSupportedProvidersResponse, type ProviderSyncControllerIsProviderSupportedData, type ProviderSyncControllerIsProviderSupportedResponse, type ProviderSyncControllerSyncData, type ProviderSyncControllerSyncResponse, type ProviderSyncDto, type ProviderSyncResponseDto, ProviderSyncService, type RecurringMatchInfoDto, type RecurringRuleController1Data, type RecurringRuleController1Response, type RecurringRuleController2Data, type RecurringRuleController2Response, type RecurringRuleController3Data, type RecurringRuleController3Response, type RecurringRuleControllerData, type RecurringRuleControllerFindAllData, type RecurringRuleControllerFindAllResponse, type RecurringRuleControllerFindOneData, type RecurringRuleControllerFindOneResponse, type RecurringRuleControllerGetWithStatsData, type RecurringRuleControllerGetWithStatsResponse, type RecurringRuleControllerResponse, type RecurringRuleResponseDto, type RecurringRuleWithStatsResponseDto, type RecurringSuggestionDto, type RegionConfigDto, type RegionInfoDto, type RegionsMetadataResponseDto, type ReopenAccountDto, type ReportingControllerBackfillSnapshotsData, type ReportingControllerBackfillSnapshotsResponse, type ReportingControllerGenerateSnapshotData, type ReportingControllerGenerateSnapshotResponse, type ReportingControllerGetPortfolioTrendsData, type ReportingControllerGetPortfolioTrendsResponse, type ReviewController1Data, type ReviewController1Response, type ReviewController2Data, type ReviewController2Response, type ReviewControllerData, type ReviewControllerFindAllData, type ReviewControllerFindAllResponse, type ReviewControllerFindOneData, type ReviewControllerFindOneResponse, type ReviewControllerGetStatsData, type ReviewControllerGetStatsResponse, type ReviewControllerResponse, type ReviewDetailDto, type ReviewItemPreviewDto, type ReviewListResponseDto, type ReviewStatsDto, type ReviewSummaryDto, type RuleStatisticsResponseDto, type SignupDto, type SupportedProvidersResponseDto, type SymbolControllerData, type SymbolControllerGatherSymbolForDateData, type SymbolControllerGatherSymbolForDateResponse, type SymbolControllerGetSymbolDataData, type SymbolControllerGetSymbolDataResponse, type SymbolControllerLookupSymbolData, type SymbolControllerLookupSymbolResponse, type SymbolControllerResponse, type TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionController1Data, type TransactionController1Response, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerData, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, type TransactionControllerResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleController1Data, type TransactionRuleController1Response, type TransactionRuleController2Data, type TransactionRuleController2Response, type TransactionRuleController3Data, type TransactionRuleController3Response, type TransactionRuleControllerData, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UpdateAccountDto, type UpdateTransactionDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryData, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type dataSource, type equitySubType, type flag, type flag2, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type sourceType, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type viewMode };
7585
+ export { type $OpenApiTs, type AccountControllerCloseData, type AccountControllerCloseResponse, type AccountControllerCreateData, type AccountControllerCreateResponse, type AccountControllerDeleteData, type AccountControllerDeleteResponse, type AccountControllerFindAllData, type AccountControllerFindAllResponse, type AccountControllerFindOneData, type AccountControllerFindOneResponse, type AccountControllerReopenData, type AccountControllerReopenResponse, type AccountControllerUpdateData, type AccountControllerUpdateResponse, type AccountExchangeRateWarningDto, type AccountItemDto, type AccountItemWithAssetClassDto, type AccountListResponseDto, type AccountResponseDto, type AccountStandardListResponseDto, type AccountStandardResponseDto, type AccountStandardsControllerGetRegionsData, type AccountStandardsControllerGetRegionsResponse, type AccountStandardsControllerGetTemplateMetadataData, type AccountStandardsControllerGetTemplateMetadataResponse, type AccountStandardsControllerGetTemplatesData, type AccountStandardsControllerGetTemplatesResponse, type AccountsResponseDto, type AccountsSummaryDto, type AmountRangeDto, type AnonymousLoginDto, type ApiKeysControllerCreateApiKeyResponse, type ApiProblemResponseDto, type AssetClassAccountsResponseDto, type AssetClassGroupDto, type AssetClassSummaryDto, type AuthControllerAccessTokenLoginData, type AuthControllerAccessTokenLoginResponse, type BackfillSnapshotsBody, type BackfillSnapshotsResponse, type BalanceByCurrencyDto, type BalanceControllerGetBalanceData, type BalanceControllerGetBalanceResponse, type BalanceControllerGetMultiCurrencyBalanceData, type BalanceControllerGetMultiCurrencyBalanceResponse, type BalanceResponseDto, type BatchCreateTransactionDto, type BatchResolveDto, type BatchResolveResultDto, type BatchTransactionErrorDto, type BatchTransactionResponseDto, BeanAccountsService, BeanBalancesService, BeanCommoditiesService, BeanTransactionsService, type BulkCreateRulesDto, type BulkCreateRulesResponseDto, type CacheControllerFlushCacheResponse, type CashFlowByCurrencyDto, type CashFlowResponseDto, type CloseAccountDto, type CommodityControllerBulkCreateData, type CommodityControllerBulkCreateResponse, type CommodityControllerCreateData, type CommodityControllerCreateResponse, type CommodityControllerDeleteData, type CommodityControllerDeleteResponse, type CommodityControllerFindAllData, type CommodityControllerFindAllResponse, type CommodityControllerFindOneData, type CommodityControllerFindOneResponse, type CommodityControllerGetOrCreateData, type CommodityControllerGetOrCreateResponse, type CommodityControllerUpdateData, type CommodityControllerUpdateResponse, type CommodityListResponseDto, type CommodityResponseDto, type ConfirmMatchDto, type ConvertedCashFlowDto, type ConvertedNetWorthDto, type CorrectTransactionDto, type CreateAccountDto, type CreateCommodityDto, type CreatePayeeDto, type CreatePayeeProfileDto, type CreatePlatformDto, type CreatePostingDto, type CreateRecurringRuleDto, type CreateRuleFromTransactionDto, type CreateTransactionDto, type CreateTransactionRuleDto, type CurrencyBalanceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type EnterNowDto, type ExchangeRateControllerGetExchangeRateData, type ExchangeRateControllerGetExchangeRateResponse, type ExchangeRateWarningDto, type ExpectedTransactionControllerConfirmMatchData, type ExpectedTransactionControllerConfirmMatchResponse, type ExpectedTransactionControllerEnterNowData, type ExpectedTransactionControllerEnterNowResponse, type ExpectedTransactionControllerFindAllData, type ExpectedTransactionControllerFindAllResponse, type ExpectedTransactionControllerFindOneData, type ExpectedTransactionControllerFindOneResponse, type ExpectedTransactionControllerFindOverdueData, type ExpectedTransactionControllerFindOverdueResponse, type ExpectedTransactionControllerSkipData, type ExpectedTransactionControllerSkipResponse, type ExpectedTransactionControllerUndoSkipData, type ExpectedTransactionControllerUndoSkipResponse, type ExpectedTransactionControllerUnmatchData, type ExpectedTransactionControllerUnmatchResponse, type ExpectedTransactionListResponseDto, type ExpectedTransactionResponseDto, type ExpectedTransactionRuleDto, type ExportControllerExportBeancountResponse, type ExportRulesResponseDto, type FileImportControllerIdentifyFileData, type FileImportControllerIdentifyFileResponse, type FileImportControllerImportBeancountData, type FileImportControllerImportBeancountResponse, type FileImportControllerImportFileData, type FileImportControllerImportFileResponse, type FileImportDto, type ForecastControllerGetForecastData, type ForecastControllerGetForecastResponse, type ForecastItemDto, type ForecastResponseDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckOpenBbResponse, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type IdentifyResultDto, type ImportErrorDto, type ImportResultDto, type ImporterConfigControllerGetConfigData, type ImporterConfigControllerGetConfigResponse, type ImporterConfigControllerResetConfigData, type ImporterConfigControllerResetConfigResponse, type ImporterConfigControllerUpdateConfigData, type ImporterConfigControllerUpdateConfigResponse, type ImporterConfigDataDto, type ImporterConfigDto, type InfoControllerGetInfoResponse, type MapperDefaultsDto, type MonthlyForecastDto, type MultiCurrencyBalanceResponseDto, type MultiCurrencyPointDto, type NetWorthByCurrencyDto, type NetWorthResponseDto, type NlpAccountConfirmationDataDto, type NlpAlternativePayeeDto, type NlpControllerClearSessionData, type NlpControllerClearSessionResponse, type NlpControllerGetSessionData, type NlpControllerGetSessionResponse, type NlpControllerProcessNaturalLanguageData, type NlpControllerProcessNaturalLanguageResponse, type NlpDefaultAccountsDto, type NlpDuplicateConfirmationDataDto, type NlpParsedDataDto, type NlpPayeeConfirmationDataDto, type NlpResponseDto, type NlpRuleConfirmationDataDto, type NlpSimilarityDto, type NlpSourceTransactionDto, type NlpSuggestedAccountDto, type NlpSuggestedAccountsDto, type NlpSuggestedPayeeDto, type NlpTargetTransactionDto, type NlpTransactionInfoDto, OpenAPI, type OpenAPIConfig, type ParserTelemetryReportDto, type PayeeAutocompleteResponseDto, type PayeeControllerAutocompleteData, type PayeeControllerAutocompleteResponse, type PayeeControllerCreateData, type PayeeControllerCreateResponse, type PayeeControllerDeleteData, type PayeeControllerDeleteResponse, type PayeeControllerFindAllData, type PayeeControllerFindAllResponse, type PayeeControllerFindOneData, type PayeeControllerFindOneResponse, type PayeeControllerGetTopPayeesData, type PayeeControllerGetTopPayeesResponse, type PayeeControllerUpdateData, type PayeeControllerUpdateResponse, type PayeeListResponseDto, type PayeeProfileAdminControllerCreateData, type PayeeProfileAdminControllerCreateResponse, type PayeeProfileAdminControllerDeleteData, type PayeeProfileAdminControllerDeleteResponse, type PayeeProfileAdminControllerFindAllData, type PayeeProfileAdminControllerFindAllResponse, type PayeeProfileAdminControllerFindOneData, type PayeeProfileAdminControllerFindOneResponse, type PayeeProfileAdminControllerUnverifyData, type PayeeProfileAdminControllerUnverifyResponse, type PayeeProfileAdminControllerUpdateData, type PayeeProfileAdminControllerUpdateResponse, type PayeeProfileAdminControllerVerifyData, type PayeeProfileAdminControllerVerifyResponse, type PayeeProfileListResponseDto, type PayeeProfileResponseDto, type PayeeResponseDto, type PayeeStatsResponseDto, type PlatformControllerCreateData, type PlatformControllerCreateResponse, type PlatformControllerDeleteData, type PlatformControllerDeleteResponse, type PlatformControllerFindAllResponse, type PlatformControllerGetPlatformListResponse, type PlatformControllerMatchPlatformsData, type PlatformControllerMatchPlatformsResponse, type PlatformControllerUpdateData, type PlatformControllerUpdateResponse, type PlatformGroupDto, type PortfolioTrendsResponseDto, type PostingDetailDto, type PostingResponseDto, type ProcessNlpDto, type PropertyControllerDeleteData, type PropertyControllerDeleteResponse, type PropertyControllerGetAllResponse, type PropertyControllerGetByKeyData, type PropertyControllerGetByKeyResponse, type PropertyControllerUpdateData, type PropertyControllerUpdateResponse, type ProviderSyncConfigDto, type ProviderSyncControllerGetSupportedProvidersData, type ProviderSyncControllerGetSupportedProvidersResponse, type ProviderSyncControllerIsProviderSupportedData, type ProviderSyncControllerIsProviderSupportedResponse, type ProviderSyncControllerSyncData, type ProviderSyncControllerSyncResponse, type ProviderSyncDto, type ProviderSyncResponseDto, ProviderSyncService, type RecurringMatchInfoDto, type RecurringRuleControllerCreateData, type RecurringRuleControllerCreateFromTransactionData, type RecurringRuleControllerCreateFromTransactionResponse, type RecurringRuleControllerCreateResponse, type RecurringRuleControllerDeleteData, type RecurringRuleControllerDeleteResponse, type RecurringRuleControllerFindAllData, type RecurringRuleControllerFindAllResponse, type RecurringRuleControllerFindOneData, type RecurringRuleControllerFindOneResponse, type RecurringRuleControllerGetWithStatsData, type RecurringRuleControllerGetWithStatsResponse, type RecurringRuleControllerUpdateData, type RecurringRuleControllerUpdateResponse, type RecurringRuleResponseDto, type RecurringRuleWithStatsResponseDto, type RecurringSuggestionDto, type RegionConfigDto, type RegionInfoDto, type RegionsMetadataResponseDto, type ReopenAccountDto, type ReportingControllerBackfillSnapshotsData, type ReportingControllerBackfillSnapshotsResponse, type ReportingControllerGenerateSnapshotData, type ReportingControllerGenerateSnapshotResponse, type ReportingControllerGetPortfolioTrendsData, type ReportingControllerGetPortfolioTrendsResponse, type ResolveResultDto, type ResolveReviewDto, type ReviewControllerBatchResolveData, type ReviewControllerBatchResolveResponse, type ReviewControllerFindAllData, type ReviewControllerFindAllResponse, type ReviewControllerFindOneData, type ReviewControllerFindOneResponse, type ReviewControllerGetStatsData, type ReviewControllerGetStatsResponse, type ReviewControllerResolveData, type ReviewControllerResolveResponse, type ReviewControllerUndoData, type ReviewControllerUndoResponse, type ReviewDetailDto, type ReviewItemPreviewDto, type ReviewListResponseDto, type ReviewStatsDto, type ReviewSummaryDto, type RuleStatisticsResponseDto, type SignupDto, type SupportedProvidersResponseDto, type TagSuggestionDto, type TagSuggestionsResponseDto, type TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TemplateMetadataDto, type TemplateMetadataResponseDto, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionControllerCorrectData, type TransactionControllerCorrectResponse, type TransactionControllerCreateBatchData, type TransactionControllerCreateBatchResponse, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerDeleteData, type TransactionControllerDeleteResponse, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, type TransactionControllerSuggestTagsData, type TransactionControllerSuggestTagsResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleControllerBulkCreateData, type TransactionRuleControllerBulkCreateResponse, type TransactionRuleControllerCreateData, type TransactionRuleControllerCreateResponse, type TransactionRuleControllerDeleteData, type TransactionRuleControllerDeleteResponse, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerUpdateData, type TransactionRuleControllerUpdateResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UndoResultDto, type UpdateAccountDto, type UpdateCommodityDto, type UpdateConfigDataDto, type UpdateImporterConfigDto, type UpdateMapperDefaultsDto, type UpdatePayeeDto, type UpdatePayeeProfileDto, type UpdatePlatformDto, type UpdatePropertyDto, type UpdateRecurringRuleDto, type UpdateTransactionDto, type UpdateTransactionRuleDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type action2, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type conflictStrategy, type dataSource, type equitySubType, type flag, type flag2, type frequency, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type value, type viewMode };