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

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
@@ -233,19 +233,23 @@ type AccountStandardResponseDto = {
233
233
  /**
234
234
  * i18n key for localized display name
235
235
  */
236
- i18nKey?: string;
236
+ i18nKey: string;
237
237
  /**
238
- * Account description
238
+ * Short localized display name
239
239
  */
240
- description?: string;
240
+ name?: string;
241
+ /**
242
+ * Account description (stable semantics only)
243
+ */
244
+ description: string;
241
245
  /**
242
246
  * Account tags for categorization
243
247
  */
244
- tags?: Array<string>;
248
+ tags: Array<string>;
245
249
  /**
246
250
  * Icon identifier for UI display
247
251
  */
248
- icon?: string;
252
+ icon: string;
249
253
  };
250
254
  type AccountStandardListResponseDto = {
251
255
  /**
@@ -289,6 +293,50 @@ type RegionInfoDto = {
289
293
  type RegionsMetadataResponseDto = {
290
294
  regions: Array<RegionInfoDto>;
291
295
  };
296
+ type CostSpecDto = {
297
+ /**
298
+ * Cost specification mode (mirrors engine CostSpec)
299
+ */
300
+ mode: 'per-unit' | 'total' | 'date' | 'label' | 'auto';
301
+ /**
302
+ * Per-unit cost (required when mode is "per-unit")
303
+ */
304
+ numberPerUnit?: string;
305
+ /**
306
+ * Total cost for all units (required when mode is "total")
307
+ */
308
+ totalNumber?: string;
309
+ /**
310
+ * Cost currency (required in all modes)
311
+ */
312
+ currency: string;
313
+ /**
314
+ * Lot acquisition date, ISO 8601 (required when mode is "date")
315
+ */
316
+ date?: string;
317
+ /**
318
+ * Lot label (required when mode is "label"; optional tag in buy modes)
319
+ */
320
+ label?: string;
321
+ /**
322
+ * Merge lots for AVERAGE booking (mode: auto)
323
+ */
324
+ merge?: boolean;
325
+ };
326
+ /**
327
+ * Cost specification mode (mirrors engine CostSpec)
328
+ */
329
+ type mode = 'per-unit' | 'total' | 'date' | 'label' | 'auto';
330
+ type AmountDto = {
331
+ /**
332
+ * Amount as decimal string (max 15 integer + 15 decimal digits)
333
+ */
334
+ number: string;
335
+ /**
336
+ * Currency/commodity code
337
+ */
338
+ currency: string;
339
+ };
292
340
  type CreatePostingDto = {
293
341
  /**
294
342
  * Account name in Beancount format (must start with uppercase, colon-separated)
@@ -308,6 +356,14 @@ type CreatePostingDto = {
308
356
  meta?: {
309
357
  [key: string]: unknown;
310
358
  };
359
+ /**
360
+ * Cost basis (Beancount `{...}`). Maps to engine costSpec. Required for commodity holdings so they carry a monetary weight that can balance.
361
+ */
362
+ cost?: CostSpecDto;
363
+ /**
364
+ * Price annotation (Beancount `@...`). Maps to engine price. Used for valuation; cost takes priority for balance weight.
365
+ */
366
+ price?: AmountDto;
311
367
  };
312
368
  type CreateTransactionDto = {
313
369
  /**
@@ -357,19 +413,41 @@ type CreateTransactionDto = {
357
413
  * Transaction flag: * (cleared), ! (pending)
358
414
  */
359
415
  type flag = '*' | '!';
416
+ type CostDetailDto = {
417
+ /**
418
+ * Per-unit cost basis (mirrors engine Cost.number)
419
+ */
420
+ number?: string;
421
+ /**
422
+ * Cost currency
423
+ */
424
+ currency?: string;
425
+ /**
426
+ * Lot acquisition date (ISO yyyy-mm-dd)
427
+ */
428
+ date?: string;
429
+ /**
430
+ * Lot label
431
+ */
432
+ label?: string;
433
+ };
360
434
  type PostingResponseDto = {
361
435
  /**
362
436
  * Account name
363
437
  */
364
438
  account: string;
365
439
  /**
366
- * Amount (may be null if interpolated)
440
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
367
441
  */
368
442
  units?: string;
369
443
  /**
370
444
  * Currency
371
445
  */
372
446
  currency?: string;
447
+ /**
448
+ * Booking-resolved cost (mirrors engine Cost). Undefined when the posting has no cost basis.
449
+ */
450
+ cost?: CostDetailDto;
373
451
  };
374
452
  type RecurringSuggestionDto = {
375
453
  /**
@@ -494,6 +572,10 @@ type BatchTransactionErrorDto = {
494
572
  * Error message describing the failure
495
573
  */
496
574
  error: string;
575
+ /**
576
+ * Structured error code for programmatic handling
577
+ */
578
+ errorCode?: string;
497
579
  };
498
580
  type BatchTransactionResponseDto = {
499
581
  /**
@@ -505,6 +587,54 @@ type BatchTransactionResponseDto = {
505
587
  */
506
588
  failed: Array<BatchTransactionErrorDto>;
507
589
  };
590
+ type CorrectTransactionDto = {
591
+ /**
592
+ * Transaction date (ISO 8601 format)
593
+ */
594
+ date: string;
595
+ /**
596
+ * Transaction flag: * (cleared), ! (pending)
597
+ */
598
+ flag?: '*' | '!';
599
+ /**
600
+ * Payee name
601
+ */
602
+ payee?: string;
603
+ /**
604
+ * Transaction narration/description
605
+ */
606
+ narration: string;
607
+ /**
608
+ * Transaction tags (without # prefix)
609
+ */
610
+ tags?: Array<string>;
611
+ /**
612
+ * Transaction links (without ^ prefix)
613
+ */
614
+ links?: Array<string>;
615
+ /**
616
+ * Transaction postings (minimum 1, typically 2 for double-entry)
617
+ */
618
+ postings: Array<CreatePostingDto>;
619
+ /**
620
+ * Transaction-level metadata
621
+ */
622
+ meta?: {
623
+ [key: string]: unknown;
624
+ };
625
+ /**
626
+ * Unique key for idempotent transaction creation. If provided, duplicate requests with the same key will return the existing transaction.
627
+ */
628
+ idempotencyKey?: string;
629
+ /**
630
+ * 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.
631
+ */
632
+ autoCreateAccounts?: boolean;
633
+ /**
634
+ * Reason for correcting/superseding the original transaction
635
+ */
636
+ correctionReason?: string;
637
+ };
508
638
  type PostingDetailDto = {
509
639
  /**
510
640
  * Posting ID
@@ -515,11 +645,11 @@ type PostingDetailDto = {
515
645
  */
516
646
  accountId: string;
517
647
  /**
518
- * Account name
648
+ * Fully-qualified Beancount account path
519
649
  */
520
- accountName: string;
650
+ account: string;
521
651
  /**
522
- * Amount (may be null if interpolated)
652
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
523
653
  */
524
654
  units?: string;
525
655
  /**
@@ -538,6 +668,10 @@ type PostingDetailDto = {
538
668
  * Cost date
539
669
  */
540
670
  costDate?: string;
671
+ /**
672
+ * Booking-resolved cost (mirrors engine Cost). Undefined when the posting has no cost basis.
673
+ */
674
+ cost?: CostDetailDto;
541
675
  /**
542
676
  * Price amount
543
677
  */
@@ -601,9 +735,9 @@ type TransactionDetailDto = {
601
735
  */
602
736
  status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
603
737
  /**
604
- * Source type (how the transaction was created)
738
+ * Source type (free-form string from transaction metadata, e.g. import, api)
605
739
  */
606
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
740
+ sourceType?: string;
607
741
  /**
608
742
  * Source platform (e.g., alipay, wechat)
609
743
  */
@@ -628,6 +762,14 @@ type TransactionDetailDto = {
628
762
  * Correction reason (if voided or superseded)
629
763
  */
630
764
  correctionReason?: string;
765
+ /**
766
+ * ID of the transaction that supersedes this one (set when status=SUPERSEDED)
767
+ */
768
+ supersededBy?: string;
769
+ /**
770
+ * ID of the transaction this one corrected/replaced (back-link on the replacement)
771
+ */
772
+ originalTxn?: string;
631
773
  };
632
774
  /**
633
775
  * Transaction flag
@@ -637,10 +779,6 @@ type flag2 = 'CLEARED' | 'PENDING' | 'PADDING' | 'SUMMARIZE' | 'TRANSFER' | 'CON
637
779
  * Transaction status
638
780
  */
639
781
  type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
640
- /**
641
- * Source type (how the transaction was created)
642
- */
643
- type sourceType = 'NLP' | 'CSV' | 'OCR' | 'API';
644
782
  type TransactionListResponseDto = {
645
783
  /**
646
784
  * List of transactions
@@ -659,6 +797,22 @@ type TransactionListResponseDto = {
659
797
  */
660
798
  offset: number;
661
799
  };
800
+ type TagSuggestionDto = {
801
+ /**
802
+ * Tag name
803
+ */
804
+ tag: string;
805
+ /**
806
+ * Usage count across ACTIVE transactions
807
+ */
808
+ count: number;
809
+ };
810
+ type TagSuggestionsResponseDto = {
811
+ /**
812
+ * Tag suggestions sorted as requested
813
+ */
814
+ data: Array<TagSuggestionDto>;
815
+ };
662
816
  type UpdateTransactionDto = {
663
817
  /**
664
818
  * Transaction flag (CLEARED, PENDING, etc.)
@@ -751,9 +905,9 @@ type TransactionSummaryDto = {
751
905
  */
752
906
  accountName?: string;
753
907
  /**
754
- * Source type (NLP, CSV, OCR, API)
908
+ * Source type (free-form string from transaction metadata, e.g. import, api)
755
909
  */
756
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
910
+ sourceType?: string;
757
911
  /**
758
912
  * Source platform (e.g., alipay, wechat)
759
913
  */
@@ -777,9 +931,9 @@ type ReviewSummaryDto = {
777
931
  */
778
932
  confidence: number;
779
933
  /**
780
- * Confidence level derived from score
934
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
781
935
  */
782
- confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW';
936
+ confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW' | null;
783
937
  /**
784
938
  * i18n message key for summary (e.g., review.summary.duplicate). Translate on frontend with summaryParams.
785
939
  */
@@ -795,7 +949,7 @@ type ReviewSummaryDto = {
795
949
  */
796
950
  matchReasons: Array<string>;
797
951
  /**
798
- * Source type (NLP, CSV, OCR, API)
952
+ * Source type (free-form string from transaction metadata, e.g. import, api)
799
953
  */
800
954
  sourceType: string;
801
955
  /**
@@ -840,7 +994,7 @@ type type2 = 'DUPLICATE' | 'RULE_MATCH' | 'PAYEE_MATCH' | 'ACCOUNT_VALIDATION' |
840
994
  */
841
995
  type status3 = 'PENDING' | 'RESOLVED' | 'EXPIRED' | 'CANCELLED';
842
996
  /**
843
- * Confidence level derived from score
997
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
844
998
  */
845
999
  type confidenceLevel = 'HIGH' | 'MEDIUM' | 'LOW';
846
1000
  type ReviewListResponseDto = {
@@ -882,7 +1036,7 @@ type DecisionOptionDto = {
882
1036
  /**
883
1037
  * The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
884
1038
  */
885
- value: string;
1039
+ value: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
886
1040
  /**
887
1041
  * i18n message key for display label (e.g., review.payee.accept.label)
888
1042
  */
@@ -896,6 +1050,10 @@ type DecisionOptionDto = {
896
1050
  */
897
1051
  recommended?: boolean;
898
1052
  };
1053
+ /**
1054
+ * The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
1055
+ */
1056
+ type value = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
899
1057
  type ReviewDetailDto = {
900
1058
  /**
901
1059
  * Review item ID
@@ -914,9 +1072,9 @@ type ReviewDetailDto = {
914
1072
  */
915
1073
  confidence: number;
916
1074
  /**
917
- * Confidence level derived from score
1075
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
918
1076
  */
919
- confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW';
1077
+ confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW' | null;
920
1078
  /**
921
1079
  * i18n message key for summary (e.g., review.summary.duplicate). Translate on frontend with summaryParams.
922
1080
  */
@@ -932,7 +1090,7 @@ type ReviewDetailDto = {
932
1090
  */
933
1091
  matchReasons: Array<string>;
934
1092
  /**
935
- * Source type (NLP, CSV, OCR, API)
1093
+ * Source type (free-form string from transaction metadata, e.g. import, api)
936
1094
  */
937
1095
  sourceType: string;
938
1096
  /**
@@ -984,9 +1142,9 @@ type ReviewDetailDto = {
984
1142
  };
985
1143
  type ResolveReviewDto = {
986
1144
  /**
987
- * Decision action. Available actions vary by review type: DUPLICATE: UPGRADE_REPLACE, KEEP_EXISTING, KEEP_BOTH | PAYEE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN | ACCOUNT_VALIDATION: FIX, REJECT | RULE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN
1145
+ * Decision action. Valid actions vary by review type see DecisionOptionDto.value returned by the review detail endpoint.
988
1146
  */
989
- action: string;
1147
+ action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
990
1148
  /**
991
1149
  * Additional data for the decision (e.g., selected account ID)
992
1150
  */
@@ -994,6 +1152,10 @@ type ResolveReviewDto = {
994
1152
  [key: string]: unknown;
995
1153
  };
996
1154
  };
1155
+ /**
1156
+ * Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
1157
+ */
1158
+ type action = 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
997
1159
  type ResolveResultDto = {
998
1160
  /**
999
1161
  * Whether resolution was successful
@@ -1010,17 +1172,17 @@ type ResolveResultDto = {
1010
1172
  [key: string]: string;
1011
1173
  };
1012
1174
  /**
1013
- * Resolution ID for undo
1175
+ * Resolution ID for undo. Absent when the resolver rejected the decision (review stayed PENDING).
1014
1176
  */
1015
- resolutionId: string;
1177
+ resolutionId?: string;
1016
1178
  /**
1017
1179
  * Whether this decision can be undone
1018
1180
  */
1019
- canUndo: boolean;
1181
+ canUndo?: boolean;
1020
1182
  /**
1021
1183
  * Deadline for undo (24h from resolution)
1022
1184
  */
1023
- undoDeadline: string;
1185
+ undoDeadline?: string;
1024
1186
  /**
1025
1187
  * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1026
1188
  */
@@ -1048,7 +1210,7 @@ type BatchResolveDto = {
1048
1210
  /**
1049
1211
  * Decision action to apply to all items
1050
1212
  */
1051
- action: string;
1213
+ action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
1052
1214
  /**
1053
1215
  * Additional data for the decision
1054
1216
  */
@@ -2527,6 +2689,92 @@ type UpdatePropertyDto = {
2527
2689
  */
2528
2690
  value: string;
2529
2691
  };
2692
+ type CreateBeanEventDto = {
2693
+ /**
2694
+ * Life event date (ISO 8601)
2695
+ */
2696
+ date: string;
2697
+ /**
2698
+ * Life event type (e.g., "employer", "location", "marital-status") — user-defined, no enum constraint at engine layer
2699
+ */
2700
+ type: string;
2701
+ /**
2702
+ * Life event description. Empty string is a VALID value (distinct from absence).
2703
+ */
2704
+ description: string;
2705
+ /**
2706
+ * Product-side metadata (lives in BeanEvent.meta JSON, never in engine Event fields)
2707
+ */
2708
+ meta?: {
2709
+ [key: string]: unknown;
2710
+ };
2711
+ };
2712
+ type EventResponseDto = {
2713
+ /**
2714
+ * Unique identifier
2715
+ */
2716
+ id: string;
2717
+ /**
2718
+ * User ID (owner of the life event)
2719
+ */
2720
+ userId: string;
2721
+ /**
2722
+ * Life event date (ISO 8601 format)
2723
+ */
2724
+ date: string;
2725
+ /**
2726
+ * Life event type (user-defined, e.g., "employer", "location")
2727
+ */
2728
+ type: string;
2729
+ /**
2730
+ * Life event description. May be an empty string (a valid value distinct from absence).
2731
+ */
2732
+ description: string;
2733
+ /**
2734
+ * Product-side metadata (free-form JSON)
2735
+ */
2736
+ meta: {
2737
+ [key: string]: unknown;
2738
+ };
2739
+ /**
2740
+ * Creation timestamp
2741
+ */
2742
+ createdAt: string;
2743
+ /**
2744
+ * Last update timestamp. Also emitted as the ETag response header for If-Match optimistic concurrency.
2745
+ */
2746
+ updatedAt: string;
2747
+ };
2748
+ type EventListResponseDto = {
2749
+ /**
2750
+ * List of life events
2751
+ */
2752
+ items: Array<EventResponseDto>;
2753
+ /**
2754
+ * Total number of life events matching the query
2755
+ */
2756
+ total: number;
2757
+ };
2758
+ type UpdateBeanEventDto = {
2759
+ /**
2760
+ * Life event date (ISO 8601)
2761
+ */
2762
+ date?: string;
2763
+ /**
2764
+ * Life event type (user-defined)
2765
+ */
2766
+ type?: string;
2767
+ /**
2768
+ * Life event description. Empty string is a VALID value (distinct from absence).
2769
+ */
2770
+ description?: string;
2771
+ /**
2772
+ * Product-side metadata (free-form JSON)
2773
+ */
2774
+ meta?: {
2775
+ [key: string]: unknown;
2776
+ };
2777
+ };
2530
2778
  type FileImportDto = {
2531
2779
  /**
2532
2780
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -2908,6 +3156,7 @@ type SupportedProvidersResponseDto = {
2908
3156
  providers: Array<string>;
2909
3157
  };
2910
3158
  type ParserTelemetryReportDto = unknown;
3159
+ type UncoveredFormatMissDto = unknown;
2911
3160
  type ProcessNlpDto = {
2912
3161
  /**
2913
3162
  * Natural language text describing a transaction (Chinese)
@@ -2917,6 +3166,12 @@ type ProcessNlpDto = {
2917
3166
  * Session ID for multi-turn conversation (auto-generated if not provided)
2918
3167
  */
2919
3168
  sessionId?: string;
3169
+ /**
3170
+ * Parsed data from previous NLP response for session recovery. Send back the parsedData received in confirm_payee/confirm responses.
3171
+ */
3172
+ parsedData?: {
3173
+ [key: string]: unknown;
3174
+ };
2920
3175
  };
2921
3176
  type NlpTransactionInfoDto = {
2922
3177
  /**
@@ -3418,7 +3673,7 @@ type status4 = 'success' | 'pending' | 'error';
3418
3673
  /**
3419
3674
  * Action taken or requested
3420
3675
  */
3421
- type action = 'created' | 'ask' | 'confirm' | 'confirm_duplicate' | 'confirm_rule' | 'confirm_account' | 'confirm_payee' | 'cancel';
3676
+ type action2 = 'created' | 'ask' | 'confirm' | 'confirm_duplicate' | 'confirm_rule' | 'confirm_account' | 'confirm_payee' | 'cancel';
3422
3677
  /**
3423
3678
  * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
3424
3679
  */
@@ -3575,9 +3830,39 @@ type PlatformGroupDto = {
3575
3830
  */
3576
3831
  accounts: Array<AccountItemDto>;
3577
3832
  /**
3578
- * Total balance across all accounts in platform
3833
+ * FX-converted total balance in base currency
3579
3834
  */
3580
3835
  totalBalance: string;
3836
+ /**
3837
+ * Raw (unconverted) balances grouped by currency
3838
+ */
3839
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
3840
+ /**
3841
+ * Converted balance in base currency (omitted when no currency is convertible)
3842
+ */
3843
+ convertedBalance?: string;
3844
+ /**
3845
+ * Share of the grand converted total (0-100); 0 when grand total is 0
3846
+ */
3847
+ sharePct: number;
3848
+ };
3849
+ type AccountExchangeRateWarningDto = {
3850
+ /**
3851
+ * Warning type
3852
+ */
3853
+ type: string;
3854
+ /**
3855
+ * Currency without exchange rate
3856
+ */
3857
+ currency: string;
3858
+ /**
3859
+ * Affected account paths
3860
+ */
3861
+ accounts: Array<string>;
3862
+ /**
3863
+ * Total amount in this currency
3864
+ */
3865
+ totalAmount: string;
3581
3866
  };
3582
3867
  type AccountsSummaryDto = {
3583
3868
  /**
@@ -3588,6 +3873,14 @@ type AccountsSummaryDto = {
3588
3873
  * Total number of platforms
3589
3874
  */
3590
3875
  totalPlatforms: number;
3876
+ /**
3877
+ * Base currency for conversion
3878
+ */
3879
+ baseCurrency: string;
3880
+ /**
3881
+ * Per-account exchange rate warnings
3882
+ */
3883
+ warnings?: Array<AccountExchangeRateWarningDto>;
3591
3884
  };
3592
3885
  type AccountsResponseDto = {
3593
3886
  /**
@@ -3636,7 +3929,15 @@ type AccountItemWithAssetClassDto = {
3636
3929
  * Risk level
3637
3930
  */
3638
3931
  riskLevel?: string;
3932
+ /**
3933
+ * ADR-0105 classification provenance (holding level always; account level only on FALLBACK)
3934
+ */
3935
+ source?: 'USER_META' | 'FIAT_CURRENCY' | 'OPENBB_MAPPING' | 'FALLBACK';
3639
3936
  };
3937
+ /**
3938
+ * ADR-0105 classification provenance (holding level always; account level only on FALLBACK)
3939
+ */
3940
+ type source2 = 'USER_META' | 'FIAT_CURRENCY' | 'OPENBB_MAPPING' | 'FALLBACK';
3640
3941
  type AssetClassGroupDto = {
3641
3942
  /**
3642
3943
  * Asset class name
@@ -3663,24 +3964,6 @@ type AssetClassGroupDto = {
3663
3964
  * Asset class name
3664
3965
  */
3665
3966
  type assetClass = 'LIQUIDITY' | 'EQUITY' | 'FIXED_INCOME' | 'PRECIOUS_METALS' | 'COMMODITY' | 'INSURANCE' | 'ALTERNATIVE_INVESTMENT' | 'PERSONAL_ASSETS' | 'LIABILITY' | 'REAL_ESTATE' | 'INDEX';
3666
- type AccountExchangeRateWarningDto = {
3667
- /**
3668
- * Warning type
3669
- */
3670
- type: string;
3671
- /**
3672
- * Currency without exchange rate
3673
- */
3674
- currency: string;
3675
- /**
3676
- * Affected account paths
3677
- */
3678
- accounts: Array<string>;
3679
- /**
3680
- * Total amount in this currency
3681
- */
3682
- totalAmount: string;
3683
- };
3684
3967
  type AssetClassSummaryDto = {
3685
3968
  /**
3686
3969
  * Total number of accounts
@@ -3698,6 +3981,12 @@ type AssetClassSummaryDto = {
3698
3981
  * Exchange rate warnings
3699
3982
  */
3700
3983
  warnings?: Array<AccountExchangeRateWarningDto>;
3984
+ /**
3985
+ * ADR-0105 §4 fallback provenance stats (holding level only). valueRatio is the grey-area share of total converted value; count is the number of source=FALLBACK holdings.
3986
+ */
3987
+ fallback?: {
3988
+ [key: string]: unknown;
3989
+ };
3701
3990
  };
3702
3991
  type AssetClassAccountsResponseDto = {
3703
3992
  /**
@@ -3708,16 +3997,64 @@ type AssetClassAccountsResponseDto = {
3708
3997
  * Summary statistics
3709
3998
  */
3710
3999
  summary: AssetClassSummaryDto;
4000
+ /**
4001
+ * ADR-0105 §6 holding-level grey-area bucket (source=FALLBACK holdings peeled out of groups). Present only for groupBy=holdingAssetClass when FALLBACK holdings exist.
4002
+ */
4003
+ uncategorized?: AssetClassGroupDto;
3711
4004
  };
3712
- type CashFlowByCurrencyDto = {
4005
+ type HoldingAssetClassAccountSliceDto = {
3713
4006
  /**
3714
- * Income by currency
4007
+ * Account ID
3715
4008
  */
3716
- income: Array<BalanceByCurrencyDto>;
4009
+ accountId: string;
3717
4010
  /**
3718
- * Expense by currency
4011
+ * Full account path
3719
4012
  */
3720
- expense: Array<BalanceByCurrencyDto>;
4013
+ accountPath: string;
4014
+ /**
4015
+ * Currency of the holding with the largest converted base value; undefined when no holding is convertible
4016
+ */
4017
+ accountCurrency?: string;
4018
+ /**
4019
+ * Account's market value in base currency (Σ converted holdings; grey bucket included)
4020
+ */
4021
+ marketValueBase: string;
4022
+ /**
4023
+ * Share of the global total (0-100). 0 when globalTotal is zero (no NaN/Infinity).
4024
+ */
4025
+ shareOfTotalPct: number;
4026
+ /**
4027
+ * Per-account asset-class breakdown
4028
+ */
4029
+ groups: Array<AssetClassGroupDto>;
4030
+ /**
4031
+ * Per-account grey bucket (source=FALLBACK holdings, incl. broker cash)
4032
+ */
4033
+ uncategorized?: AssetClassGroupDto;
4034
+ /**
4035
+ * Every holding row for this account (account ID in each row’s `id` field)
4036
+ */
4037
+ holdings: Array<AccountItemWithAssetClassDto>;
4038
+ };
4039
+ type HoldingAssetClassCrossAccountResponseDto = {
4040
+ /**
4041
+ * Merged cross-account holding aggregation
4042
+ */
4043
+ global: AssetClassAccountsResponseDto;
4044
+ /**
4045
+ * Per-account slices
4046
+ */
4047
+ byAccount: Array<HoldingAssetClassAccountSliceDto>;
4048
+ };
4049
+ type CashFlowByCurrencyDto = {
4050
+ /**
4051
+ * Income by currency
4052
+ */
4053
+ income: Array<BalanceByCurrencyDto>;
4054
+ /**
4055
+ * Expense by currency
4056
+ */
4057
+ expense: Array<BalanceByCurrencyDto>;
3721
4058
  /**
3722
4059
  * Net savings by currency
3723
4060
  */
@@ -3785,6 +4122,329 @@ type CashFlowResponseDto = {
3785
4122
  */
3786
4123
  warnings?: Array<ExchangeRateWarningDto>;
3787
4124
  };
4125
+ type CategoryGroupDto = {
4126
+ /**
4127
+ * Functional category (account-path Group segment); regional and universal account paths merge under it
4128
+ */
4129
+ category: string;
4130
+ /**
4131
+ * Converted total for this category in base currency (expense amount when flow=expense, income amount when flow=income)
4132
+ */
4133
+ totalExpense: string;
4134
+ /**
4135
+ * Share of grand total (0-100); 0 when grand total is 0
4136
+ */
4137
+ sharePct: number;
4138
+ /**
4139
+ * Raw (unconverted) expense per currency
4140
+ */
4141
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
4142
+ /**
4143
+ * Converted total in base currency (omitted when FX missing for all currencies in this category)
4144
+ */
4145
+ convertedBalance?: string;
4146
+ };
4147
+ type ExpensesByCategorySummaryDto = {
4148
+ /**
4149
+ * Total across all categories, converted (convertible categories only); expense totals when flow=expense, income totals when flow=income
4150
+ */
4151
+ totalExpense: string;
4152
+ /**
4153
+ * Number of categories
4154
+ */
4155
+ categoryCount: number;
4156
+ };
4157
+ type ExpensesByCategoryResponseDto = {
4158
+ /**
4159
+ * Period requested
4160
+ */
4161
+ period: string;
4162
+ /**
4163
+ * Base currency for converted values
4164
+ */
4165
+ baseCurrency: string;
4166
+ /**
4167
+ * Expense groups by functional category, sorted by converted total desc
4168
+ */
4169
+ groups: Array<CategoryGroupDto>;
4170
+ /**
4171
+ * Summary statistics
4172
+ */
4173
+ summary: ExpensesByCategorySummaryDto;
4174
+ /**
4175
+ * Exchange rate warnings (e.g. missing rate for a currency)
4176
+ */
4177
+ warnings?: Array<ExchangeRateWarningDto>;
4178
+ };
4179
+ type MonetaryDto = {
4180
+ /**
4181
+ * Amount (Decimal string)
4182
+ */
4183
+ amount: string;
4184
+ /**
4185
+ * ISO 4217 currency
4186
+ */
4187
+ currency: string;
4188
+ /**
4189
+ * Converted to user base currency (Decimal string)
4190
+ */
4191
+ baseCcyEquivalent?: {
4192
+ [key: string]: unknown;
4193
+ } | null;
4194
+ };
4195
+ type CurrentPriceDto = {
4196
+ /**
4197
+ * Price amount (Decimal string)
4198
+ */
4199
+ amount: string;
4200
+ /**
4201
+ * Price currency (ISO 4217)
4202
+ */
4203
+ currency: string;
4204
+ /**
4205
+ * Price date (ISO 8601)
4206
+ */
4207
+ date: string;
4208
+ /**
4209
+ * Price source
4210
+ */
4211
+ source: 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4212
+ };
4213
+ /**
4214
+ * Price source
4215
+ */
4216
+ type source3 = 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4217
+ type FxRateDto = {
4218
+ from: string;
4219
+ to: string;
4220
+ /**
4221
+ * FX rate (Decimal string)
4222
+ */
4223
+ rate: string;
4224
+ /**
4225
+ * Rate date (ISO 8601)
4226
+ */
4227
+ date: string;
4228
+ };
4229
+ type HoldingPnlRowDto = {
4230
+ /**
4231
+ * Account UUID
4232
+ */
4233
+ accountId: string;
4234
+ /**
4235
+ * Full account path
4236
+ */
4237
+ accountPath: string;
4238
+ /**
4239
+ * Account settlement currency (ISO 4217), from cost currency
4240
+ */
4241
+ accountCcy?: {
4242
+ [key: string]: unknown;
4243
+ } | null;
4244
+ /**
4245
+ * Broker type derived from Platform.type
4246
+ */
4247
+ brokerType?: {
4248
+ [key: string]: unknown;
4249
+ } | null;
4250
+ /**
4251
+ * Commodity symbol
4252
+ */
4253
+ symbol: string;
4254
+ /**
4255
+ * Chart segment token (libs/common resolver)
4256
+ */
4257
+ chartToken: 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4258
+ assetClass: string;
4259
+ assetSubClass?: {
4260
+ [key: string]: unknown;
4261
+ } | null;
4262
+ /**
4263
+ * Net held units (Decimal string)
4264
+ */
4265
+ units: string;
4266
+ /**
4267
+ * Average cost per unit; null when cost currency conflicts or no cost
4268
+ */
4269
+ averageCostPerUnit?: MonetaryDto | null;
4270
+ /**
4271
+ * Cost basis of held units
4272
+ */
4273
+ costBasis?: MonetaryDto | null;
4274
+ /**
4275
+ * Market value at asOf price
4276
+ */
4277
+ marketValue?: MonetaryDto | null;
4278
+ /**
4279
+ * Price used for market value
4280
+ */
4281
+ currentPrice?: CurrentPriceDto | null;
4282
+ /**
4283
+ * Unrealized P&L in base currency (Decimal string); null when any FX/price missing
4284
+ */
4285
+ unrealizedPnlBase?: {
4286
+ [key: string]: unknown;
4287
+ } | null;
4288
+ /**
4289
+ * Unrealized P&L % (Decimal string)
4290
+ */
4291
+ unrealizedPnlPct?: {
4292
+ [key: string]: unknown;
4293
+ } | null;
4294
+ /**
4295
+ * Historical FX rate applied to cost basis
4296
+ */
4297
+ costFxRate?: FxRateDto | null;
4298
+ /**
4299
+ * FX rate applied to market value
4300
+ */
4301
+ marketFxRate?: FxRateDto | null;
4302
+ /**
4303
+ * Share of invested assets % (Decimal string); only for invested chartTokens
4304
+ */
4305
+ pctOfInvestedAssets?: {
4306
+ [key: string]: unknown;
4307
+ } | null;
4308
+ /**
4309
+ * Cumulative realized P&L on sold lots (asOf-date cutoff); null when the method has no applicable sells, a sell lacks a price, or any required FX rate is missing (never-mix). When a sell spans multiple currencies (cross-currency sale), amount and currency reflect the base currency; baseCcyEquivalent is always the authoritative dual-FX figure
4310
+ */
4311
+ realizedPnl?: MonetaryDto | null;
4312
+ };
4313
+ /**
4314
+ * Chart segment token (libs/common resolver)
4315
+ */
4316
+ type chartToken = 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4317
+ type HoldingPnlWarningDto = {
4318
+ /**
4319
+ * Warning type
4320
+ */
4321
+ type: 'MISSING_COST_FX_RATE' | 'MISSING_MARKET_FX_RATE' | 'MISSING_SALE_PRICE' | 'MISSING_REALIZED_FX_RATE' | 'OVERSOLD_LOTS' | 'NO_PRICE' | 'MIXED_COST_CURRENCY';
4322
+ symbol?: {
4323
+ [key: string]: unknown;
4324
+ } | null;
4325
+ accountId?: {
4326
+ [key: string]: unknown;
4327
+ } | null;
4328
+ currency?: {
4329
+ [key: string]: unknown;
4330
+ } | null;
4331
+ };
4332
+ /**
4333
+ * Warning type
4334
+ */
4335
+ type type4 = 'MISSING_COST_FX_RATE' | 'MISSING_MARKET_FX_RATE' | 'MISSING_SALE_PRICE' | 'MISSING_REALIZED_FX_RATE' | 'OVERSOLD_LOTS' | 'NO_PRICE' | 'MIXED_COST_CURRENCY';
4336
+ type HoldingPnlResponseDto = {
4337
+ asOfDate: string;
4338
+ baseCurrency: string;
4339
+ /**
4340
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4341
+ */
4342
+ method: 'average' | 'FIFO';
4343
+ rows: Array<HoldingPnlRowDto>;
4344
+ warnings: Array<HoldingPnlWarningDto>;
4345
+ };
4346
+ /**
4347
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4348
+ */
4349
+ type method = 'average' | 'FIFO';
4350
+ type CreateBeanPriceDto = {
4351
+ /**
4352
+ * Currency being priced (e.g., USD, AAPL, BTC)
4353
+ */
4354
+ currency: string;
4355
+ /**
4356
+ * Quote currency (pricing currency, e.g., CNY, EUR)
4357
+ */
4358
+ quoteCurrency: string;
4359
+ /**
4360
+ * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
4361
+ */
4362
+ amount: number;
4363
+ /**
4364
+ * Price date (ISO 8601 format)
4365
+ */
4366
+ date: string;
4367
+ /**
4368
+ * Metadata (validated by Zod schema, max field lengths enforced)
4369
+ */
4370
+ metadata?: {
4371
+ [key: string]: unknown;
4372
+ };
4373
+ };
4374
+ type PriceResponseDto = {
4375
+ /**
4376
+ * Unique identifier
4377
+ */
4378
+ id: string;
4379
+ /**
4380
+ * User ID (owner of the price)
4381
+ */
4382
+ userId: string;
4383
+ /**
4384
+ * Currency being priced (e.g., USD, AAPL, BTC)
4385
+ */
4386
+ currency: string;
4387
+ /**
4388
+ * Quote currency (pricing currency, e.g., USD, CNY)
4389
+ */
4390
+ quoteCurrency: string;
4391
+ /**
4392
+ * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
4393
+ */
4394
+ amount: number;
4395
+ /**
4396
+ * Price date (ISO 8601 format). Represents the date this price was valid.
4397
+ */
4398
+ date: string;
4399
+ /**
4400
+ * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
4401
+ */
4402
+ meta: {
4403
+ [key: string]: unknown;
4404
+ };
4405
+ /**
4406
+ * Creation timestamp
4407
+ */
4408
+ createdAt: string;
4409
+ /**
4410
+ * Last update timestamp
4411
+ */
4412
+ updatedAt: string;
4413
+ };
4414
+ type PriceListResponseDto = {
4415
+ /**
4416
+ * List of prices
4417
+ */
4418
+ items: Array<PriceResponseDto>;
4419
+ /**
4420
+ * Total number of prices
4421
+ */
4422
+ total: number;
4423
+ };
4424
+ type UpdateBeanPriceDto = {
4425
+ /**
4426
+ * Currency being priced
4427
+ */
4428
+ currency?: string;
4429
+ /**
4430
+ * Quote currency (pricing currency)
4431
+ */
4432
+ quoteCurrency?: string;
4433
+ /**
4434
+ * Price amount (MUST be >= 0 per Beancount spec)
4435
+ */
4436
+ amount?: number;
4437
+ /**
4438
+ * Price date (ISO 8601 format)
4439
+ */
4440
+ date?: string;
4441
+ /**
4442
+ * Metadata
4443
+ */
4444
+ metadata?: {
4445
+ [key: string]: unknown;
4446
+ };
4447
+ };
3788
4448
  type CurrencyBalanceDto = {
3789
4449
  /**
3790
4450
  * ISO 4217 currency code
@@ -3810,6 +4470,14 @@ type TimeSeriesPointDto = {
3810
4470
  change?: {
3811
4471
  [key: string]: unknown;
3812
4472
  };
4473
+ /**
4474
+ * Total assets at this date (in base currency)
4475
+ */
4476
+ assets?: string;
4477
+ /**
4478
+ * Total liabilities at this date (in base currency)
4479
+ */
4480
+ liabilities?: string;
3813
4481
  /**
3814
4482
  * Multi-currency breakdown for this point
3815
4483
  */
@@ -3873,6 +4541,68 @@ type PortfolioTrendsResponseDto = {
3873
4541
  */
3874
4542
  warnings?: Array<ExchangeRateWarningDto>;
3875
4543
  };
4544
+ type CashFlowPointDto = {
4545
+ /**
4546
+ * Month key (YYYY-MM)
4547
+ */
4548
+ month: string;
4549
+ /**
4550
+ * Income in base currency (absolute, converted)
4551
+ */
4552
+ income: string;
4553
+ /**
4554
+ * Expense in base currency (absolute, converted)
4555
+ */
4556
+ expense: string;
4557
+ /**
4558
+ * netSavings = income − expense (savings positive)
4559
+ */
4560
+ netSavings: string;
4561
+ };
4562
+ type CashFlowTrendSummaryDto = {
4563
+ /**
4564
+ * Total income across the period
4565
+ */
4566
+ totalIncome: string;
4567
+ /**
4568
+ * Total expense across the period
4569
+ */
4570
+ totalExpense: string;
4571
+ /**
4572
+ * income − expense across the period
4573
+ */
4574
+ totalNetSavings: string;
4575
+ /**
4576
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
4577
+ */
4578
+ averageMonthlyNetSavings: string;
4579
+ };
4580
+ type CashFlowTrendsResponseDto = {
4581
+ /**
4582
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
4583
+ */
4584
+ series: Array<CashFlowPointDto>;
4585
+ /**
4586
+ * Period totals
4587
+ */
4588
+ summary: CashFlowTrendSummaryDto;
4589
+ /**
4590
+ * Period requested
4591
+ */
4592
+ period: string;
4593
+ /**
4594
+ * Data granularity (v1 returns month buckets)
4595
+ */
4596
+ granularity: string;
4597
+ /**
4598
+ * Base currency for converted values
4599
+ */
4600
+ currency: string;
4601
+ /**
4602
+ * Exchange rate warnings (e.g. missing rate for a currency)
4603
+ */
4604
+ warnings?: Array<ExchangeRateWarningDto>;
4605
+ };
3876
4606
  type GenerateSnapshotBody = unknown;
3877
4607
  type GenerateSnapshotResponse = unknown;
3878
4608
  type BackfillSnapshotsBody = unknown;
@@ -3887,7 +4617,7 @@ type AccountControllerCreateData = {
3887
4617
  /**
3888
4618
  * Region code for tenant context
3889
4619
  */
3890
- region: 'cn' | 'us' | 'de';
4620
+ region: 'cn' | 'us' | 'de' | 'gb';
3891
4621
  requestBody: CreateAccountDto;
3892
4622
  };
3893
4623
  type AccountControllerCreateResponse = AccountResponseDto;
@@ -3907,7 +4637,7 @@ type AccountControllerFindAllData = {
3907
4637
  /**
3908
4638
  * Region code for tenant context
3909
4639
  */
3910
- region: 'cn' | 'us' | 'de';
4640
+ region: 'cn' | 'us' | 'de' | 'gb';
3911
4641
  /**
3912
4642
  * Search term for path or i18nKey
3913
4643
  */
@@ -3930,7 +4660,7 @@ type AccountControllerFindOneData = {
3930
4660
  /**
3931
4661
  * Region code for tenant context
3932
4662
  */
3933
- region: 'cn' | 'us' | 'de';
4663
+ region: 'cn' | 'us' | 'de' | 'gb';
3934
4664
  };
3935
4665
  type AccountControllerFindOneResponse = AccountResponseDto;
3936
4666
  type AccountControllerUpdateData = {
@@ -3941,7 +4671,7 @@ type AccountControllerUpdateData = {
3941
4671
  /**
3942
4672
  * Region code for tenant context
3943
4673
  */
3944
- region: 'cn' | 'us' | 'de';
4674
+ region: 'cn' | 'us' | 'de' | 'gb';
3945
4675
  requestBody: UpdateAccountDto;
3946
4676
  };
3947
4677
  type AccountControllerUpdateResponse = AccountResponseDto;
@@ -3953,7 +4683,7 @@ type AccountControllerDeleteData = {
3953
4683
  /**
3954
4684
  * Region code for tenant context
3955
4685
  */
3956
- region: 'cn' | 'us' | 'de';
4686
+ region: 'cn' | 'us' | 'de' | 'gb';
3957
4687
  };
3958
4688
  type AccountControllerDeleteResponse = void;
3959
4689
  type AccountControllerCloseData = {
@@ -3964,7 +4694,7 @@ type AccountControllerCloseData = {
3964
4694
  /**
3965
4695
  * Region code for tenant context
3966
4696
  */
3967
- region: 'cn' | 'us' | 'de';
4697
+ region: 'cn' | 'us' | 'de' | 'gb';
3968
4698
  requestBody: CloseAccountDto;
3969
4699
  };
3970
4700
  type AccountControllerCloseResponse = AccountResponseDto;
@@ -3976,7 +4706,7 @@ type AccountControllerReopenData = {
3976
4706
  /**
3977
4707
  * Region code for tenant context
3978
4708
  */
3979
- region: 'cn' | 'us' | 'de';
4709
+ region: 'cn' | 'us' | 'de' | 'gb';
3980
4710
  requestBody: ReopenAccountDto;
3981
4711
  };
3982
4712
  type AccountControllerReopenResponse = AccountResponseDto;
@@ -3984,7 +4714,7 @@ type AccountStandardsControllerGetTemplatesData = {
3984
4714
  /**
3985
4715
  * Region code (cn, us, de)
3986
4716
  */
3987
- region: 'cn' | 'us' | 'de';
4717
+ region: 'cn' | 'us' | 'de' | 'gb';
3988
4718
  /**
3989
4719
  * Search term for path or description
3990
4720
  */
@@ -4003,21 +4733,21 @@ type AccountStandardsControllerGetTemplateMetadataData = {
4003
4733
  /**
4004
4734
  * Region code for tenant context
4005
4735
  */
4006
- region: 'cn' | 'us' | 'de';
4736
+ region: 'cn' | 'us' | 'de' | 'gb';
4007
4737
  };
4008
4738
  type AccountStandardsControllerGetTemplateMetadataResponse = TemplateMetadataResponseDto;
4009
4739
  type AccountStandardsControllerGetRegionsData = {
4010
4740
  /**
4011
4741
  * Region code for tenant context
4012
4742
  */
4013
- region: 'cn' | 'us' | 'de';
4743
+ region: 'cn' | 'us' | 'de' | 'gb';
4014
4744
  };
4015
4745
  type AccountStandardsControllerGetRegionsResponse = RegionsMetadataResponseDto;
4016
4746
  type TransactionControllerCreateData = {
4017
4747
  /**
4018
4748
  * Region code for tenant context
4019
4749
  */
4020
- region: 'cn' | 'us' | 'de';
4750
+ region: 'cn' | 'us' | 'de' | 'gb';
4021
4751
  /**
4022
4752
  * Transaction data with postings
4023
4753
  */
@@ -4029,6 +4759,10 @@ type TransactionControllerListData = {
4029
4759
  * Filter by account ID (transactions with postings to this account)
4030
4760
  */
4031
4761
  accountId?: string;
4762
+ /**
4763
+ * Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
4764
+ */
4765
+ category?: string;
4032
4766
  /**
4033
4767
  * Filter by start date (inclusive), format: YYYY-MM-DD
4034
4768
  */
@@ -4048,7 +4782,7 @@ type TransactionControllerListData = {
4048
4782
  /**
4049
4783
  * Region code for tenant context
4050
4784
  */
4051
- region: 'cn' | 'us' | 'de';
4785
+ region: 'cn' | 'us' | 'de' | 'gb';
4052
4786
  /**
4053
4787
  * Search in narration and payee fields (max 200 chars)
4054
4788
  */
@@ -4063,10 +4797,41 @@ type TransactionControllerCreateBatchData = {
4063
4797
  /**
4064
4798
  * Region code for tenant context
4065
4799
  */
4066
- region: 'cn' | 'us' | 'de';
4800
+ region: 'cn' | 'us' | 'de' | 'gb';
4067
4801
  requestBody: BatchCreateTransactionDto;
4068
4802
  };
4069
4803
  type TransactionControllerCreateBatchResponse = BatchTransactionResponseDto;
4804
+ type TransactionControllerCorrectData = {
4805
+ /**
4806
+ * Original transaction ID to correct
4807
+ */
4808
+ id: string;
4809
+ /**
4810
+ * Region code for tenant context
4811
+ */
4812
+ region: 'cn' | 'us' | 'de' | 'gb';
4813
+ requestBody: CorrectTransactionDto;
4814
+ };
4815
+ type TransactionControllerCorrectResponse = TransactionDetailDto;
4816
+ type TransactionControllerSuggestTagsData = {
4817
+ /**
4818
+ * Max suggestions (1-100, default 10)
4819
+ */
4820
+ limit?: number;
4821
+ /**
4822
+ * Prefix match, case-insensitive (max 50 chars)
4823
+ */
4824
+ q?: string;
4825
+ /**
4826
+ * Region code for tenant context
4827
+ */
4828
+ region: 'cn' | 'us' | 'de' | 'gb';
4829
+ /**
4830
+ * usage (default) or name
4831
+ */
4832
+ sort?: 'usage' | 'name';
4833
+ };
4834
+ type TransactionControllerSuggestTagsResponse = TagSuggestionsResponseDto;
4070
4835
  type TransactionControllerGetDetailData = {
4071
4836
  /**
4072
4837
  * Transaction ID
@@ -4075,7 +4840,7 @@ type TransactionControllerGetDetailData = {
4075
4840
  /**
4076
4841
  * Region code for tenant context
4077
4842
  */
4078
- region: 'cn' | 'us' | 'de';
4843
+ region: 'cn' | 'us' | 'de' | 'gb';
4079
4844
  };
4080
4845
  type TransactionControllerGetDetailResponse = TransactionDetailDto;
4081
4846
  type TransactionControllerUpdateData = {
@@ -4086,7 +4851,7 @@ type TransactionControllerUpdateData = {
4086
4851
  /**
4087
4852
  * Region code for tenant context
4088
4853
  */
4089
- region: 'cn' | 'us' | 'de';
4854
+ region: 'cn' | 'us' | 'de' | 'gb';
4090
4855
  /**
4091
4856
  * Fields to update (all optional)
4092
4857
  */
@@ -4101,7 +4866,7 @@ type TransactionControllerDeleteData = {
4101
4866
  /**
4102
4867
  * Region code for tenant context
4103
4868
  */
4104
- region: 'cn' | 'us' | 'de';
4869
+ region: 'cn' | 'us' | 'de' | 'gb';
4105
4870
  };
4106
4871
  type TransactionControllerDeleteResponse = void;
4107
4872
  type BalanceControllerGetBalanceData = {
@@ -4120,14 +4885,14 @@ type BalanceControllerGetBalanceData = {
4120
4885
  /**
4121
4886
  * Region code for tenant context
4122
4887
  */
4123
- region: 'cn' | 'us' | 'de';
4888
+ region: 'cn' | 'us' | 'de' | 'gb';
4124
4889
  };
4125
4890
  type BalanceControllerGetBalanceResponse = BalanceResponseDto;
4126
4891
  type BalanceControllerGetMultiCurrencyBalanceData = {
4127
4892
  /**
4128
4893
  * Region code for tenant context
4129
4894
  */
4130
- region: 'cn' | 'us' | 'de';
4895
+ region: 'cn' | 'us' | 'de' | 'gb';
4131
4896
  };
4132
4897
  type BalanceControllerGetMultiCurrencyBalanceResponse = MultiCurrencyBalanceResponseDto;
4133
4898
  type ReviewControllerFindAllData = {
@@ -4146,7 +4911,7 @@ type ReviewControllerFindAllData = {
4146
4911
  /**
4147
4912
  * Region code for tenant context
4148
4913
  */
4149
- region: 'cn' | 'us' | 'de';
4914
+ region: 'cn' | 'us' | 'de' | 'gb';
4150
4915
  /**
4151
4916
  * Sort order
4152
4917
  */
@@ -4161,7 +4926,7 @@ type ReviewControllerGetStatsData = {
4161
4926
  /**
4162
4927
  * Region code for tenant context
4163
4928
  */
4164
- region: 'cn' | 'us' | 'de';
4929
+ region: 'cn' | 'us' | 'de' | 'gb';
4165
4930
  };
4166
4931
  type ReviewControllerGetStatsResponse = ReviewStatsDto;
4167
4932
  type ReviewControllerFindOneData = {
@@ -4172,7 +4937,7 @@ type ReviewControllerFindOneData = {
4172
4937
  /**
4173
4938
  * Region code for tenant context
4174
4939
  */
4175
- region: 'cn' | 'us' | 'de';
4940
+ region: 'cn' | 'us' | 'de' | 'gb';
4176
4941
  };
4177
4942
  type ReviewControllerFindOneResponse = ReviewDetailDto;
4178
4943
  type ReviewControllerResolveData = {
@@ -4183,7 +4948,7 @@ type ReviewControllerResolveData = {
4183
4948
  /**
4184
4949
  * Region code for tenant context
4185
4950
  */
4186
- region: 'cn' | 'us' | 'de';
4951
+ region: 'cn' | 'us' | 'de' | 'gb';
4187
4952
  requestBody: ResolveReviewDto;
4188
4953
  };
4189
4954
  type ReviewControllerResolveResponse = ResolveResultDto;
@@ -4195,14 +4960,14 @@ type ReviewControllerUndoData = {
4195
4960
  /**
4196
4961
  * Region code for tenant context
4197
4962
  */
4198
- region: 'cn' | 'us' | 'de';
4963
+ region: 'cn' | 'us' | 'de' | 'gb';
4199
4964
  };
4200
4965
  type ReviewControllerUndoResponse = UndoResultDto;
4201
4966
  type ReviewControllerBatchResolveData = {
4202
4967
  /**
4203
4968
  * Region code for tenant context
4204
4969
  */
4205
- region: 'cn' | 'us' | 'de';
4970
+ region: 'cn' | 'us' | 'de' | 'gb';
4206
4971
  /**
4207
4972
  * Batch resolution request containing review IDs and action
4208
4973
  */
@@ -4347,7 +5112,7 @@ type CommodityControllerCreateData = {
4347
5112
  /**
4348
5113
  * Region code for tenant context
4349
5114
  */
4350
- region: 'cn' | 'us' | 'de';
5115
+ region: 'cn' | 'us' | 'de' | 'gb';
4351
5116
  requestBody: CreateCommodityDto;
4352
5117
  };
4353
5118
  type CommodityControllerCreateResponse = CommodityResponseDto;
@@ -4355,7 +5120,7 @@ type CommodityControllerFindAllData = {
4355
5120
  /**
4356
5121
  * Region code for tenant context
4357
5122
  */
4358
- region: 'cn' | 'us' | 'de';
5123
+ region: 'cn' | 'us' | 'de' | 'gb';
4359
5124
  /**
4360
5125
  * Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
4361
5126
  */
@@ -4370,7 +5135,7 @@ type CommodityControllerFindOneData = {
4370
5135
  /**
4371
5136
  * Region code for tenant context
4372
5137
  */
4373
- region: 'cn' | 'us' | 'de';
5138
+ region: 'cn' | 'us' | 'de' | 'gb';
4374
5139
  /**
4375
5140
  * Commodity symbol
4376
5141
  */
@@ -4381,7 +5146,7 @@ type CommodityControllerUpdateData = {
4381
5146
  /**
4382
5147
  * Region code for tenant context
4383
5148
  */
4384
- region: 'cn' | 'us' | 'de';
5149
+ region: 'cn' | 'us' | 'de' | 'gb';
4385
5150
  requestBody: UpdateCommodityDto;
4386
5151
  /**
4387
5152
  * Commodity symbol
@@ -4393,7 +5158,7 @@ type CommodityControllerDeleteData = {
4393
5158
  /**
4394
5159
  * Region code for tenant context
4395
5160
  */
4396
- region: 'cn' | 'us' | 'de';
5161
+ region: 'cn' | 'us' | 'de' | 'gb';
4397
5162
  /**
4398
5163
  * Commodity symbol
4399
5164
  */
@@ -4404,7 +5169,7 @@ type CommodityControllerGetOrCreateData = {
4404
5169
  /**
4405
5170
  * Region code for tenant context
4406
5171
  */
4407
- region: 'cn' | 'us' | 'de';
5172
+ region: 'cn' | 'us' | 'de' | 'gb';
4408
5173
  /**
4409
5174
  * Commodity symbol
4410
5175
  */
@@ -4415,14 +5180,14 @@ type CommodityControllerBulkCreateData = {
4415
5180
  /**
4416
5181
  * Region code for tenant context
4417
5182
  */
4418
- region: 'cn' | 'us' | 'de';
5183
+ region: 'cn' | 'us' | 'de' | 'gb';
4419
5184
  };
4420
5185
  type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
4421
5186
  type RecurringRuleControllerCreateData = {
4422
5187
  /**
4423
5188
  * Region code for tenant context
4424
5189
  */
4425
- region: 'cn' | 'us' | 'de';
5190
+ region: 'cn' | 'us' | 'de' | 'gb';
4426
5191
  requestBody: CreateRecurringRuleDto;
4427
5192
  };
4428
5193
  type RecurringRuleControllerCreateResponse = RecurringRuleResponseDto;
@@ -4442,14 +5207,14 @@ type RecurringRuleControllerFindAllData = {
4442
5207
  /**
4443
5208
  * Region code for tenant context
4444
5209
  */
4445
- region: 'cn' | 'us' | 'de';
5210
+ region: 'cn' | 'us' | 'de' | 'gb';
4446
5211
  };
4447
5212
  type RecurringRuleControllerFindAllResponse = Array<RecurringRuleResponseDto>;
4448
5213
  type RecurringRuleControllerCreateFromTransactionData = {
4449
5214
  /**
4450
5215
  * Region code for tenant context
4451
5216
  */
4452
- region: 'cn' | 'us' | 'de';
5217
+ region: 'cn' | 'us' | 'de' | 'gb';
4453
5218
  requestBody: CreateRuleFromTransactionDto;
4454
5219
  /**
4455
5220
  * Source transaction ID
@@ -4465,7 +5230,7 @@ type RecurringRuleControllerFindOneData = {
4465
5230
  /**
4466
5231
  * Region code for tenant context
4467
5232
  */
4468
- region: 'cn' | 'us' | 'de';
5233
+ region: 'cn' | 'us' | 'de' | 'gb';
4469
5234
  };
4470
5235
  type RecurringRuleControllerFindOneResponse = RecurringRuleResponseDto;
4471
5236
  type RecurringRuleControllerUpdateData = {
@@ -4476,7 +5241,7 @@ type RecurringRuleControllerUpdateData = {
4476
5241
  /**
4477
5242
  * Region code for tenant context
4478
5243
  */
4479
- region: 'cn' | 'us' | 'de';
5244
+ region: 'cn' | 'us' | 'de' | 'gb';
4480
5245
  requestBody: UpdateRecurringRuleDto;
4481
5246
  };
4482
5247
  type RecurringRuleControllerUpdateResponse = RecurringRuleResponseDto;
@@ -4488,7 +5253,7 @@ type RecurringRuleControllerDeleteData = {
4488
5253
  /**
4489
5254
  * Region code for tenant context
4490
5255
  */
4491
- region: 'cn' | 'us' | 'de';
5256
+ region: 'cn' | 'us' | 'de' | 'gb';
4492
5257
  };
4493
5258
  type RecurringRuleControllerDeleteResponse = void;
4494
5259
  type RecurringRuleControllerGetWithStatsData = {
@@ -4499,7 +5264,7 @@ type RecurringRuleControllerGetWithStatsData = {
4499
5264
  /**
4500
5265
  * Region code for tenant context
4501
5266
  */
4502
- region: 'cn' | 'us' | 'de';
5267
+ region: 'cn' | 'us' | 'de' | 'gb';
4503
5268
  };
4504
5269
  type RecurringRuleControllerGetWithStatsResponse = RecurringRuleWithStatsResponseDto;
4505
5270
  type ExpectedTransactionControllerFindAllData = {
@@ -4510,7 +5275,7 @@ type ExpectedTransactionControllerFindAllData = {
4510
5275
  /**
4511
5276
  * Region code for tenant context
4512
5277
  */
4513
- region: 'cn' | 'us' | 'de';
5278
+ region: 'cn' | 'us' | 'de' | 'gb';
4514
5279
  /**
4515
5280
  * Filter by recurring rule ID
4516
5281
  */
@@ -4529,7 +5294,7 @@ type ExpectedTransactionControllerFindOverdueData = {
4529
5294
  /**
4530
5295
  * Region code for tenant context
4531
5296
  */
4532
- region: 'cn' | 'us' | 'de';
5297
+ region: 'cn' | 'us' | 'de' | 'gb';
4533
5298
  };
4534
5299
  type ExpectedTransactionControllerFindOverdueResponse = ExpectedTransactionListResponseDto;
4535
5300
  type ExpectedTransactionControllerFindOneData = {
@@ -4540,7 +5305,7 @@ type ExpectedTransactionControllerFindOneData = {
4540
5305
  /**
4541
5306
  * Region code for tenant context
4542
5307
  */
4543
- region: 'cn' | 'us' | 'de';
5308
+ region: 'cn' | 'us' | 'de' | 'gb';
4544
5309
  };
4545
5310
  type ExpectedTransactionControllerFindOneResponse = ExpectedTransactionResponseDto;
4546
5311
  type ExpectedTransactionControllerSkipData = {
@@ -4551,7 +5316,7 @@ type ExpectedTransactionControllerSkipData = {
4551
5316
  /**
4552
5317
  * Region code for tenant context
4553
5318
  */
4554
- region: 'cn' | 'us' | 'de';
5319
+ region: 'cn' | 'us' | 'de' | 'gb';
4555
5320
  };
4556
5321
  type ExpectedTransactionControllerSkipResponse = ExpectedTransactionResponseDto;
4557
5322
  type ExpectedTransactionControllerUndoSkipData = {
@@ -4562,7 +5327,7 @@ type ExpectedTransactionControllerUndoSkipData = {
4562
5327
  /**
4563
5328
  * Region code for tenant context
4564
5329
  */
4565
- region: 'cn' | 'us' | 'de';
5330
+ region: 'cn' | 'us' | 'de' | 'gb';
4566
5331
  };
4567
5332
  type ExpectedTransactionControllerUndoSkipResponse = ExpectedTransactionResponseDto;
4568
5333
  type ExpectedTransactionControllerConfirmMatchData = {
@@ -4573,7 +5338,7 @@ type ExpectedTransactionControllerConfirmMatchData = {
4573
5338
  /**
4574
5339
  * Region code for tenant context
4575
5340
  */
4576
- region: 'cn' | 'us' | 'de';
5341
+ region: 'cn' | 'us' | 'de' | 'gb';
4577
5342
  requestBody: ConfirmMatchDto;
4578
5343
  };
4579
5344
  type ExpectedTransactionControllerConfirmMatchResponse = unknown;
@@ -4585,7 +5350,7 @@ type ExpectedTransactionControllerUnmatchData = {
4585
5350
  /**
4586
5351
  * Region code for tenant context
4587
5352
  */
4588
- region: 'cn' | 'us' | 'de';
5353
+ region: 'cn' | 'us' | 'de' | 'gb';
4589
5354
  };
4590
5355
  type ExpectedTransactionControllerUnmatchResponse = unknown;
4591
5356
  type ExpectedTransactionControllerEnterNowData = {
@@ -4596,7 +5361,7 @@ type ExpectedTransactionControllerEnterNowData = {
4596
5361
  /**
4597
5362
  * Region code for tenant context
4598
5363
  */
4599
- region: 'cn' | 'us' | 'de';
5364
+ region: 'cn' | 'us' | 'de' | 'gb';
4600
5365
  requestBody: EnterNowDto;
4601
5366
  };
4602
5367
  type ExpectedTransactionControllerEnterNowResponse = unknown;
@@ -4608,14 +5373,14 @@ type ForecastControllerGetForecastData = {
4608
5373
  /**
4609
5374
  * Region code for tenant context
4610
5375
  */
4611
- region: 'cn' | 'us' | 'de';
5376
+ region: 'cn' | 'us' | 'de' | 'gb';
4612
5377
  };
4613
5378
  type ForecastControllerGetForecastResponse = ForecastResponseDto;
4614
5379
  type TransactionRuleControllerCreateData = {
4615
5380
  /**
4616
5381
  * Region code for tenant context
4617
5382
  */
4618
- region: 'cn' | 'us' | 'de';
5383
+ region: 'cn' | 'us' | 'de' | 'gb';
4619
5384
  requestBody: CreateTransactionRuleDto;
4620
5385
  };
4621
5386
  type TransactionRuleControllerCreateResponse = TransactionRuleResponseDto;
@@ -4643,14 +5408,14 @@ type TransactionRuleControllerListData = {
4643
5408
  /**
4644
5409
  * Region code for tenant context
4645
5410
  */
4646
- region: 'cn' | 'us' | 'de';
5411
+ region: 'cn' | 'us' | 'de' | 'gb';
4647
5412
  };
4648
5413
  type TransactionRuleControllerListResponse = TransactionRuleListResponseDto;
4649
5414
  type TransactionRuleControllerValidateData = {
4650
5415
  /**
4651
5416
  * Region code for tenant context
4652
5417
  */
4653
- region: 'cn' | 'us' | 'de';
5418
+ region: 'cn' | 'us' | 'de' | 'gb';
4654
5419
  requestBody: ValidateRuleDto;
4655
5420
  };
4656
5421
  type TransactionRuleControllerValidateResponse = ValidateRuleResponseDto;
@@ -4658,7 +5423,7 @@ type TransactionRuleControllerBulkCreateData = {
4658
5423
  /**
4659
5424
  * Region code for tenant context
4660
5425
  */
4661
- region: 'cn' | 'us' | 'de';
5426
+ region: 'cn' | 'us' | 'de' | 'gb';
4662
5427
  requestBody: BulkCreateRulesDto;
4663
5428
  };
4664
5429
  type TransactionRuleControllerBulkCreateResponse = BulkCreateRulesResponseDto;
@@ -4670,7 +5435,7 @@ type TransactionRuleControllerExportData = {
4670
5435
  /**
4671
5436
  * Region code for tenant context
4672
5437
  */
4673
- region: 'cn' | 'us' | 'de';
5438
+ region: 'cn' | 'us' | 'de' | 'gb';
4674
5439
  };
4675
5440
  type TransactionRuleControllerExportResponse = ExportRulesResponseDto;
4676
5441
  type TransactionRuleControllerGetStatisticsData = {
@@ -4681,14 +5446,14 @@ type TransactionRuleControllerGetStatisticsData = {
4681
5446
  /**
4682
5447
  * Region code for tenant context
4683
5448
  */
4684
- region: 'cn' | 'us' | 'de';
5449
+ region: 'cn' | 'us' | 'de' | 'gb';
4685
5450
  };
4686
5451
  type TransactionRuleControllerGetStatisticsResponse = RuleStatisticsResponseDto;
4687
5452
  type TransactionRuleControllerGetDetailData = {
4688
5453
  /**
4689
5454
  * Region code for tenant context
4690
5455
  */
4691
- region: 'cn' | 'us' | 'de';
5456
+ region: 'cn' | 'us' | 'de' | 'gb';
4692
5457
  /**
4693
5458
  * Rule ID
4694
5459
  */
@@ -4699,7 +5464,7 @@ type TransactionRuleControllerUpdateData = {
4699
5464
  /**
4700
5465
  * Region code for tenant context
4701
5466
  */
4702
- region: 'cn' | 'us' | 'de';
5467
+ region: 'cn' | 'us' | 'de' | 'gb';
4703
5468
  requestBody: UpdateTransactionRuleDto;
4704
5469
  /**
4705
5470
  * Rule ID to update
@@ -4711,7 +5476,7 @@ type TransactionRuleControllerDeleteData = {
4711
5476
  /**
4712
5477
  * Region code for tenant context
4713
5478
  */
4714
- region: 'cn' | 'us' | 'de';
5479
+ region: 'cn' | 'us' | 'de' | 'gb';
4715
5480
  /**
4716
5481
  * Rule ID to delete
4717
5482
  */
@@ -4722,7 +5487,7 @@ type TransactionRuleControllerTestData = {
4722
5487
  /**
4723
5488
  * Region code for tenant context
4724
5489
  */
4725
- region: 'cn' | 'us' | 'de';
5490
+ region: 'cn' | 'us' | 'de' | 'gb';
4726
5491
  requestBody: TestRuleDto;
4727
5492
  /**
4728
5493
  * Rule ID to test
@@ -4795,6 +5560,92 @@ type PropertyControllerDeleteData = {
4795
5560
  key: string;
4796
5561
  };
4797
5562
  type PropertyControllerDeleteResponse = void;
5563
+ type EventControllerCreateData = {
5564
+ /**
5565
+ * Region code for tenant context (decorative for life events)
5566
+ */
5567
+ region: 'cn' | 'us' | 'de' | 'gb';
5568
+ requestBody: CreateBeanEventDto;
5569
+ };
5570
+ type EventControllerCreateResponse = EventResponseDto;
5571
+ type EventControllerFindAllData = {
5572
+ /**
5573
+ * Filter life events from this date (ISO 8601 format)
5574
+ */
5575
+ from?: string;
5576
+ /**
5577
+ * Number of items per page (default: 20, max: 100)
5578
+ */
5579
+ limit?: number;
5580
+ /**
5581
+ * Page number for pagination (default: 1)
5582
+ */
5583
+ page?: number;
5584
+ /**
5585
+ * Search term for description (case-insensitive partial match)
5586
+ */
5587
+ q?: string;
5588
+ /**
5589
+ * Region code for tenant context (decorative for life events)
5590
+ */
5591
+ region: 'cn' | 'us' | 'de' | 'gb';
5592
+ /**
5593
+ * Filter life events to this date (ISO 8601 format)
5594
+ */
5595
+ to?: string;
5596
+ /**
5597
+ * Filter by life event type (exact match)
5598
+ */
5599
+ type?: string;
5600
+ };
5601
+ type EventControllerFindAllResponse = EventListResponseDto;
5602
+ type EventControllerFindOneData = {
5603
+ /**
5604
+ * Life event ID
5605
+ */
5606
+ id: string;
5607
+ /**
5608
+ * Region code for tenant context (decorative for life events)
5609
+ */
5610
+ region: 'cn' | 'us' | 'de' | 'gb';
5611
+ };
5612
+ type EventControllerFindOneResponse = EventResponseDto;
5613
+ type EventControllerUpdateData = {
5614
+ /**
5615
+ * Life event ID
5616
+ */
5617
+ id: string;
5618
+ /**
5619
+ * Region code for tenant context (decorative for life events)
5620
+ */
5621
+ region: 'cn' | 'us' | 'de' | 'gb';
5622
+ requestBody: UpdateBeanEventDto;
5623
+ };
5624
+ type EventControllerUpdateResponse = EventResponseDto;
5625
+ type EventControllerDeleteData = {
5626
+ /**
5627
+ * Life event ID
5628
+ */
5629
+ id: string;
5630
+ /**
5631
+ * Region code for tenant context (decorative for life events)
5632
+ */
5633
+ region: 'cn' | 'us' | 'de' | 'gb';
5634
+ };
5635
+ type EventControllerDeleteResponse = void;
5636
+ type EventControllerGetSliceData = {
5637
+ accountPattern: string;
5638
+ granularity: string;
5639
+ /**
5640
+ * Life event ID
5641
+ */
5642
+ id: string;
5643
+ /**
5644
+ * Region code for tenant context (decorative for life events)
5645
+ */
5646
+ region: 'cn' | 'us' | 'de' | 'gb';
5647
+ };
5648
+ type EventControllerGetSliceResponse = unknown;
4798
5649
  type ExportControllerExportBeancountResponse = unknown;
4799
5650
  type FileImportControllerImportFileData = {
4800
5651
  /**
@@ -4804,7 +5655,7 @@ type FileImportControllerImportFileData = {
4804
5655
  /**
4805
5656
  * Region code for tenant context
4806
5657
  */
4807
- region: 'cn' | 'us' | 'de';
5658
+ region: 'cn' | 'us' | 'de' | 'gb';
4808
5659
  };
4809
5660
  type FileImportControllerImportFileResponse = ImportResultDto;
4810
5661
  type FileImportControllerIdentifyFileData = {
@@ -4815,7 +5666,7 @@ type FileImportControllerIdentifyFileData = {
4815
5666
  /**
4816
5667
  * Region code for tenant context
4817
5668
  */
4818
- region: 'cn' | 'us' | 'de';
5669
+ region: 'cn' | 'us' | 'de' | 'gb';
4819
5670
  };
4820
5671
  type FileImportControllerIdentifyFileResponse = IdentifyResultDto;
4821
5672
  type FileImportControllerImportBeancountData = {
@@ -4826,7 +5677,7 @@ type FileImportControllerImportBeancountData = {
4826
5677
  /**
4827
5678
  * Region code for tenant context
4828
5679
  */
4829
- region: 'cn' | 'us' | 'de';
5680
+ region: 'cn' | 'us' | 'de' | 'gb';
4830
5681
  };
4831
5682
  type FileImportControllerImportBeancountResponse = {
4832
5683
  imported?: number;
@@ -4845,7 +5696,7 @@ type ImporterConfigControllerGetConfigData = {
4845
5696
  /**
4846
5697
  * Region code for tenant context
4847
5698
  */
4848
- region: 'cn' | 'us' | 'de';
5699
+ region: 'cn' | 'us' | 'de' | 'gb';
4849
5700
  };
4850
5701
  type ImporterConfigControllerGetConfigResponse = ImporterConfigDto;
4851
5702
  type ImporterConfigControllerUpdateConfigData = {
@@ -4856,7 +5707,7 @@ type ImporterConfigControllerUpdateConfigData = {
4856
5707
  /**
4857
5708
  * Region code for tenant context
4858
5709
  */
4859
- region: 'cn' | 'us' | 'de';
5710
+ region: 'cn' | 'us' | 'de' | 'gb';
4860
5711
  /**
4861
5712
  * Partial configuration update. Only provided fields will be updated.
4862
5713
  */
@@ -4871,7 +5722,7 @@ type ImporterConfigControllerResetConfigData = {
4871
5722
  /**
4872
5723
  * Region code for tenant context
4873
5724
  */
4874
- region: 'cn' | 'us' | 'de';
5725
+ region: 'cn' | 'us' | 'de' | 'gb';
4875
5726
  };
4876
5727
  type ImporterConfigControllerResetConfigResponse = ImporterConfigDto;
4877
5728
  type PlatformControllerFindAllResponse = unknown;
@@ -4912,9 +5763,9 @@ type ProviderSyncControllerSyncData = {
4912
5763
  */
4913
5764
  providerName: 'plaid' | 'teller' | 'truelayer' | 'gocardless' | 'simplefin' | 'yodlee' | 'beancount-direct' | 'parsed-bill';
4914
5765
  /**
4915
- * Region code
5766
+ * Region code for tenant context
4916
5767
  */
4917
- region: unknown;
5768
+ region: 'cn' | 'us' | 'de' | 'gb';
4918
5769
  requestBody: ProviderSyncDto;
4919
5770
  };
4920
5771
  type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
@@ -4922,7 +5773,7 @@ type ProviderSyncControllerGetSupportedProvidersData = {
4922
5773
  /**
4923
5774
  * Region code for tenant context
4924
5775
  */
4925
- region: 'cn' | 'us' | 'de';
5776
+ region: 'cn' | 'us' | 'de' | 'gb';
4926
5777
  };
4927
5778
  type ProviderSyncControllerGetSupportedProvidersResponse = SupportedProvidersResponseDto;
4928
5779
  type ProviderSyncControllerIsProviderSupportedData = {
@@ -4933,22 +5784,41 @@ type ProviderSyncControllerIsProviderSupportedData = {
4933
5784
  /**
4934
5785
  * Region code for tenant context
4935
5786
  */
4936
- region: 'cn' | 'us' | 'de';
5787
+ region: 'cn' | 'us' | 'de' | 'gb';
4937
5788
  };
4938
5789
  type ProviderSyncControllerIsProviderSupportedResponse = unknown;
4939
5790
  type TelemetryControllerReportTelemetryData = {
4940
5791
  /**
4941
5792
  * Region code for tenant context
4942
5793
  */
4943
- region: 'cn' | 'us' | 'de';
5794
+ region: 'cn' | 'us' | 'de' | 'gb';
4944
5795
  requestBody: ParserTelemetryReportDto;
4945
5796
  };
4946
5797
  type TelemetryControllerReportTelemetryResponse = unknown;
5798
+ type TelemetryControllerReportCoverageMissData = {
5799
+ /**
5800
+ * Region code for tenant context
5801
+ */
5802
+ region: 'cn' | 'us' | 'de' | 'gb';
5803
+ requestBody: UncoveredFormatMissDto;
5804
+ };
5805
+ type TelemetryControllerReportCoverageMissResponse = unknown;
5806
+ type TelemetryControllerGetCoverageMetricsData = {
5807
+ /**
5808
+ * Region code for tenant context
5809
+ */
5810
+ region: 'cn' | 'us' | 'de' | 'gb';
5811
+ /**
5812
+ * Top-N uncovered formats (default 10)
5813
+ */
5814
+ topN?: unknown;
5815
+ };
5816
+ type TelemetryControllerGetCoverageMetricsResponse = unknown;
4947
5817
  type NlpControllerProcessNaturalLanguageData = {
4948
5818
  /**
4949
5819
  * Region code for tenant context
4950
5820
  */
4951
- region: 'cn' | 'us' | 'de';
5821
+ region: 'cn' | 'us' | 'de' | 'gb';
4952
5822
  /**
4953
5823
  * Natural language transaction input with optional session ID
4954
5824
  */
@@ -4959,7 +5829,7 @@ type NlpControllerClearSessionData = {
4959
5829
  /**
4960
5830
  * Region code for tenant context
4961
5831
  */
4962
- region: 'cn' | 'us' | 'de';
5832
+ region: 'cn' | 'us' | 'de' | 'gb';
4963
5833
  /**
4964
5834
  * Specific session ID to clear (defaults to user session)
4965
5835
  */
@@ -4970,53 +5840,195 @@ type NlpControllerGetSessionData = {
4970
5840
  /**
4971
5841
  * Region code for tenant context
4972
5842
  */
4973
- region: 'cn' | 'us' | 'de';
5843
+ region: 'cn' | 'us' | 'de' | 'gb';
4974
5844
  /**
4975
5845
  * Specific session ID to get (defaults to user session)
4976
5846
  */
4977
- sessionId?: string;
5847
+ sessionId?: string;
5848
+ };
5849
+ type NlpControllerGetSessionResponse = unknown;
5850
+ type DashboardControllerGetNetWorthData = {
5851
+ /**
5852
+ * Date for balance calculation (ISO 8601 format)
5853
+ */
5854
+ date?: string;
5855
+ /**
5856
+ * Region code for tenant context
5857
+ */
5858
+ region: 'cn' | 'us' | 'de' | 'gb';
5859
+ };
5860
+ type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5861
+ type DashboardControllerGetAccountsData = {
5862
+ /**
5863
+ * Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
5864
+ */
5865
+ accountId?: string;
5866
+ /**
5867
+ * Date for balance calculation (ISO 8601 format)
5868
+ */
5869
+ date?: string;
5870
+ /**
5871
+ * Grouping strategy
5872
+ */
5873
+ groupBy?: 'platform' | 'assetClass' | 'holdingAssetClass' | 'holdingAssetClassByAccount';
5874
+ /**
5875
+ * Region code for tenant context
5876
+ */
5877
+ region: 'cn' | 'us' | 'de' | 'gb';
5878
+ };
5879
+ type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
5880
+ type DashboardControllerGetCashFlowData = {
5881
+ /**
5882
+ * Period in YYYY-MM format
5883
+ */
5884
+ period: string;
5885
+ /**
5886
+ * Region code for tenant context
5887
+ */
5888
+ region: 'cn' | 'us' | 'de' | 'gb';
5889
+ };
5890
+ type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5891
+ type DashboardControllerGetExpensesData = {
5892
+ /**
5893
+ * Account root to aggregate (expense → ^Expenses:, income → ^Income:)
5894
+ */
5895
+ flow?: 'expense' | 'income';
5896
+ /**
5897
+ * Grouping strategy
5898
+ */
5899
+ groupBy?: 'category';
5900
+ /**
5901
+ * Time window (1m = current calendar month)
5902
+ */
5903
+ period?: '1m' | '3m' | '6m' | '1y';
5904
+ /**
5905
+ * Region code for tenant context
5906
+ */
5907
+ region: 'cn' | 'us' | 'de' | 'gb';
5908
+ };
5909
+ type DashboardControllerGetExpensesResponse = ExpensesByCategoryResponseDto;
5910
+ type HoldingPnlControllerGetHoldingPnlData = {
5911
+ /**
5912
+ * Scope to a single account
5913
+ */
5914
+ accountId?: string;
5915
+ /**
5916
+ * As-of date (ISO 8601), defaults to today
5917
+ */
5918
+ asOf?: string;
5919
+ /**
5920
+ * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
5921
+ */
5922
+ method?: 'FIFO' | 'average';
5923
+ /**
5924
+ * Region code for tenant context
5925
+ */
5926
+ region: 'cn' | 'us' | 'de' | 'gb';
5927
+ };
5928
+ type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
5929
+ type PriceControllerCreateData = {
5930
+ /**
5931
+ * Region code for tenant context
5932
+ */
5933
+ region: 'cn' | 'us' | 'de' | 'gb';
5934
+ requestBody: CreateBeanPriceDto;
5935
+ };
5936
+ type PriceControllerCreateResponse = PriceResponseDto;
5937
+ type PriceControllerFindAllData = {
5938
+ /**
5939
+ * Filter by currency (e.g., BTC, AAPL, USD)
5940
+ */
5941
+ currency?: string;
5942
+ /**
5943
+ * Filter prices from this date (ISO 8601 format)
5944
+ */
5945
+ dateFrom?: string;
5946
+ /**
5947
+ * Filter prices to this date (ISO 8601 format)
5948
+ */
5949
+ dateTo?: string;
5950
+ /**
5951
+ * Number of items per page (default: 20, max: 100)
5952
+ */
5953
+ limit?: number;
5954
+ /**
5955
+ * Page number for pagination (default: 1)
5956
+ */
5957
+ page?: number;
5958
+ /**
5959
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
5960
+ */
5961
+ quoteCurrency?: string;
5962
+ /**
5963
+ * Region code for tenant context
5964
+ */
5965
+ region: 'cn' | 'us' | 'de' | 'gb';
5966
+ /**
5967
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
5968
+ */
5969
+ search?: string;
5970
+ };
5971
+ type PriceControllerFindAllResponse = PriceListResponseDto;
5972
+ type PriceControllerFindOneData = {
5973
+ /**
5974
+ * Price ID
5975
+ */
5976
+ id: string;
5977
+ /**
5978
+ * Region code for tenant context
5979
+ */
5980
+ region: 'cn' | 'us' | 'de' | 'gb';
4978
5981
  };
4979
- type NlpControllerGetSessionResponse = unknown;
4980
- type DashboardControllerGetNetWorthData = {
5982
+ type PriceControllerFindOneResponse = PriceResponseDto;
5983
+ type PriceControllerUpdateData = {
4981
5984
  /**
4982
- * Date for balance calculation (ISO 8601 format)
5985
+ * Price ID
4983
5986
  */
4984
- date?: string;
5987
+ id: string;
4985
5988
  /**
4986
5989
  * Region code for tenant context
4987
5990
  */
4988
- region: 'cn' | 'us' | 'de';
5991
+ region: 'cn' | 'us' | 'de' | 'gb';
5992
+ requestBody: UpdateBeanPriceDto;
4989
5993
  };
4990
- type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
4991
- type DashboardControllerGetAccountsData = {
5994
+ type PriceControllerUpdateResponse = PriceResponseDto;
5995
+ type PriceControllerDeleteData = {
4992
5996
  /**
4993
- * Date for balance calculation (ISO 8601 format)
5997
+ * Price ID
4994
5998
  */
4995
- date?: string;
5999
+ id: string;
4996
6000
  /**
4997
- * Grouping strategy
6001
+ * Region code for tenant context
4998
6002
  */
4999
- groupBy?: 'platform' | 'assetClass';
6003
+ region: 'cn' | 'us' | 'de' | 'gb';
6004
+ };
6005
+ type PriceControllerDeleteResponse = void;
6006
+ type PriceControllerBulkCreateData = {
5000
6007
  /**
5001
6008
  * Region code for tenant context
5002
6009
  */
5003
- region: 'cn' | 'us' | 'de';
6010
+ region: 'cn' | 'us' | 'de' | 'gb';
6011
+ requestBody: Array<string>;
5004
6012
  };
5005
- type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto;
5006
- type DashboardControllerGetCashFlowData = {
6013
+ type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
6014
+ type ReportingControllerGetPortfolioTrendsData = {
5007
6015
  /**
5008
- * Period in YYYY-MM format
6016
+ * Data granularity
5009
6017
  */
5010
- period: string;
6018
+ granularity?: 'day' | 'week' | 'month';
6019
+ /**
6020
+ * Time period
6021
+ */
6022
+ period?: '1m' | '3m' | '6m' | '1y';
5011
6023
  /**
5012
6024
  * Region code for tenant context
5013
6025
  */
5014
- region: 'cn' | 'us' | 'de';
6026
+ region: 'cn' | 'us' | 'de' | 'gb';
5015
6027
  };
5016
- type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5017
- type ReportingControllerGetPortfolioTrendsData = {
6028
+ type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
6029
+ type ReportingControllerGetCashFlowTrendsData = {
5018
6030
  /**
5019
- * Data granularity
6031
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
5020
6032
  */
5021
6033
  granularity?: 'day' | 'week' | 'month';
5022
6034
  /**
@@ -5026,14 +6038,14 @@ type ReportingControllerGetPortfolioTrendsData = {
5026
6038
  /**
5027
6039
  * Region code for tenant context
5028
6040
  */
5029
- region: 'cn' | 'us' | 'de';
6041
+ region: 'cn' | 'us' | 'de' | 'gb';
5030
6042
  };
5031
- type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
6043
+ type ReportingControllerGetCashFlowTrendsResponse = CashFlowTrendsResponseDto;
5032
6044
  type ReportingControllerGenerateSnapshotData = {
5033
6045
  /**
5034
6046
  * Region code for tenant context
5035
6047
  */
5036
- region: 'cn' | 'us' | 'de';
6048
+ region: 'cn' | 'us' | 'de' | 'gb';
5037
6049
  /**
5038
6050
  * Optional date (defaults to today)
5039
6051
  */
@@ -5044,7 +6056,7 @@ type ReportingControllerBackfillSnapshotsData = {
5044
6056
  /**
5045
6057
  * Region code for tenant context
5046
6058
  */
5047
- region: 'cn' | 'us' | 'de';
6059
+ region: 'cn' | 'us' | 'de' | 'gb';
5048
6060
  requestBody: BackfillSnapshotsBody;
5049
6061
  };
5050
6062
  type ReportingControllerBackfillSnapshotsResponse = BackfillSnapshotsResponse;
@@ -5283,6 +6295,48 @@ type $OpenApiTs = {
5283
6295
  };
5284
6296
  };
5285
6297
  };
6298
+ '/api/v1/{region}/bean/transactions/{id}/correct': {
6299
+ post: {
6300
+ req: TransactionControllerCorrectData;
6301
+ res: {
6302
+ /**
6303
+ * Corrected transaction created
6304
+ */
6305
+ 201: TransactionDetailDto;
6306
+ /**
6307
+ * Original transaction not found
6308
+ */
6309
+ 404: ApiProblemResponseDto;
6310
+ /**
6311
+ * Original no longer ACTIVE (concurrent modification)
6312
+ */
6313
+ 409: ApiProblemResponseDto;
6314
+ /**
6315
+ * Pipeline validation failed (does not balance, invalid accounts)
6316
+ */
6317
+ 422: ApiProblemResponseDto;
6318
+ };
6319
+ };
6320
+ };
6321
+ '/api/v1/{region}/bean/transactions/tags': {
6322
+ get: {
6323
+ req: TransactionControllerSuggestTagsData;
6324
+ res: {
6325
+ /**
6326
+ * Tag suggestions
6327
+ */
6328
+ 200: TagSuggestionsResponseDto;
6329
+ /**
6330
+ * Validation failed
6331
+ */
6332
+ 400: ApiProblemResponseDto;
6333
+ /**
6334
+ * Authentication required
6335
+ */
6336
+ 401: ApiProblemResponseDto;
6337
+ };
6338
+ };
6339
+ };
5286
6340
  '/api/v1/{region}/bean/transactions/{id}': {
5287
6341
  get: {
5288
6342
  req: TransactionControllerGetDetailData;
@@ -6397,6 +7451,102 @@ type $OpenApiTs = {
6397
7451
  };
6398
7452
  };
6399
7453
  };
7454
+ '/api/v1/{region}/bean/events': {
7455
+ post: {
7456
+ req: EventControllerCreateData;
7457
+ res: {
7458
+ /**
7459
+ * Life event created successfully
7460
+ */
7461
+ 201: EventResponseDto;
7462
+ /**
7463
+ * Life event already exists for this (userId, type, date) combination
7464
+ */
7465
+ 409: unknown;
7466
+ };
7467
+ };
7468
+ get: {
7469
+ req: EventControllerFindAllData;
7470
+ res: {
7471
+ /**
7472
+ * Life events retrieved successfully
7473
+ */
7474
+ 200: EventListResponseDto;
7475
+ };
7476
+ };
7477
+ };
7478
+ '/api/v1/{region}/bean/events/{id}': {
7479
+ get: {
7480
+ req: EventControllerFindOneData;
7481
+ res: {
7482
+ /**
7483
+ * Life event retrieved successfully
7484
+ */
7485
+ 200: EventResponseDto;
7486
+ /**
7487
+ * Life event not found
7488
+ */
7489
+ 404: unknown;
7490
+ };
7491
+ };
7492
+ put: {
7493
+ req: EventControllerUpdateData;
7494
+ res: {
7495
+ /**
7496
+ * Life event updated successfully
7497
+ */
7498
+ 200: EventResponseDto;
7499
+ /**
7500
+ * If-Match header is not a valid ISO 8601 date
7501
+ */
7502
+ 400: unknown;
7503
+ /**
7504
+ * Life event not found
7505
+ */
7506
+ 404: unknown;
7507
+ /**
7508
+ * Updated event conflicts with an existing (userId, type, date) combination
7509
+ */
7510
+ 409: unknown;
7511
+ /**
7512
+ * If-Match precondition failed (updatedAt mismatch)
7513
+ */
7514
+ 412: unknown;
7515
+ };
7516
+ };
7517
+ delete: {
7518
+ req: EventControllerDeleteData;
7519
+ res: {
7520
+ /**
7521
+ * Life event deleted successfully
7522
+ */
7523
+ 204: void;
7524
+ /**
7525
+ * Life event not found
7526
+ */
7527
+ 404: unknown;
7528
+ };
7529
+ };
7530
+ };
7531
+ '/api/v1/{region}/bean/events/{id}/slice': {
7532
+ get: {
7533
+ req: EventControllerGetSliceData;
7534
+ res: {
7535
+ /**
7536
+ * Time-series sliced by the life event range
7537
+ */
7538
+ 200: unknown;
7539
+ /**
7540
+ * accountPattern query param is empty
7541
+ */
7542
+ 400: unknown;
7543
+ /**
7544
+ * Life event not found
7545
+ */
7546
+ 404: unknown;
7547
+ };
7548
+ };
7549
+ };
6400
7550
  '/api/v1/{region}/bean/export/beancount': {
6401
7551
  get: {
6402
7552
  res: {
@@ -6687,6 +7837,32 @@ type $OpenApiTs = {
6687
7837
  };
6688
7838
  };
6689
7839
  };
7840
+ '/api/v1/{region}/bean/import/parser-coverage-miss': {
7841
+ post: {
7842
+ req: TelemetryControllerReportCoverageMissData;
7843
+ res: {
7844
+ /**
7845
+ * Coverage miss report received
7846
+ */
7847
+ 200: unknown;
7848
+ /**
7849
+ * Unauthorized
7850
+ */
7851
+ 401: unknown;
7852
+ };
7853
+ };
7854
+ };
7855
+ '/api/v1/{region}/bean/import/parser-coverage-metrics': {
7856
+ get: {
7857
+ req: TelemetryControllerGetCoverageMetricsData;
7858
+ res: {
7859
+ /**
7860
+ * Coverage metrics
7861
+ */
7862
+ 200: unknown;
7863
+ };
7864
+ };
7865
+ };
6690
7866
  '/api/v1/{region}/bean/nlp/process': {
6691
7867
  post: {
6692
7868
  req: NlpControllerProcessNaturalLanguageData;
@@ -6756,7 +7932,7 @@ type $OpenApiTs = {
6756
7932
  /**
6757
7933
  * Accounts retrieved successfully. Response type depends on groupBy parameter.
6758
7934
  */
6759
- 200: AccountsResponseDto | AssetClassAccountsResponseDto;
7935
+ 200: AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
6760
7936
  /**
6761
7937
  * User not authenticated
6762
7938
  */
@@ -6783,6 +7959,128 @@ type $OpenApiTs = {
6783
7959
  };
6784
7960
  };
6785
7961
  };
7962
+ '/api/v1/{region}/dashboard/expenses': {
7963
+ get: {
7964
+ req: DashboardControllerGetExpensesData;
7965
+ res: {
7966
+ /**
7967
+ * Expenses retrieved successfully
7968
+ */
7969
+ 200: ExpensesByCategoryResponseDto;
7970
+ /**
7971
+ * Invalid groupBy or period
7972
+ */
7973
+ 400: unknown;
7974
+ /**
7975
+ * User not authenticated
7976
+ */
7977
+ 401: unknown;
7978
+ };
7979
+ };
7980
+ };
7981
+ '/api/v1/{region}/investment/holdings/pnl': {
7982
+ get: {
7983
+ req: HoldingPnlControllerGetHoldingPnlData;
7984
+ res: {
7985
+ /**
7986
+ * Holding P&L retrieved successfully
7987
+ */
7988
+ 200: HoldingPnlResponseDto;
7989
+ /**
7990
+ * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
7991
+ */
7992
+ 400: unknown;
7993
+ /**
7994
+ * User not authenticated
7995
+ */
7996
+ 401: unknown;
7997
+ };
7998
+ };
7999
+ };
8000
+ '/api/v1/{region}/bean/prices': {
8001
+ post: {
8002
+ req: PriceControllerCreateData;
8003
+ res: {
8004
+ /**
8005
+ * Price created successfully
8006
+ */
8007
+ 201: PriceResponseDto;
8008
+ /**
8009
+ * Currency or quoteCurrency commodity not found
8010
+ */
8011
+ 404: unknown;
8012
+ /**
8013
+ * Price already exists for this currency pair and date
8014
+ */
8015
+ 409: unknown;
8016
+ };
8017
+ };
8018
+ get: {
8019
+ req: PriceControllerFindAllData;
8020
+ res: {
8021
+ /**
8022
+ * Prices retrieved successfully
8023
+ */
8024
+ 200: PriceListResponseDto;
8025
+ };
8026
+ };
8027
+ };
8028
+ '/api/v1/{region}/bean/prices/{id}': {
8029
+ get: {
8030
+ req: PriceControllerFindOneData;
8031
+ res: {
8032
+ /**
8033
+ * Price retrieved successfully
8034
+ */
8035
+ 200: PriceResponseDto;
8036
+ /**
8037
+ * Price not found
8038
+ */
8039
+ 404: unknown;
8040
+ };
8041
+ };
8042
+ put: {
8043
+ req: PriceControllerUpdateData;
8044
+ res: {
8045
+ /**
8046
+ * Price updated successfully
8047
+ */
8048
+ 200: PriceResponseDto;
8049
+ /**
8050
+ * Price not found
8051
+ */
8052
+ 404: unknown;
8053
+ /**
8054
+ * Updated price conflicts with existing price
8055
+ */
8056
+ 409: unknown;
8057
+ };
8058
+ };
8059
+ delete: {
8060
+ req: PriceControllerDeleteData;
8061
+ res: {
8062
+ /**
8063
+ * Price deleted successfully
8064
+ */
8065
+ 204: void;
8066
+ /**
8067
+ * Price not found
8068
+ */
8069
+ 404: unknown;
8070
+ };
8071
+ };
8072
+ };
8073
+ '/api/v1/{region}/bean/prices/bulk': {
8074
+ post: {
8075
+ req: PriceControllerBulkCreateData;
8076
+ res: {
8077
+ /**
8078
+ * Prices created successfully
8079
+ */
8080
+ 201: Array<PriceResponseDto>;
8081
+ };
8082
+ };
8083
+ };
6786
8084
  '/api/v1/{region}/reporting/portfolio/trends': {
6787
8085
  get: {
6788
8086
  req: ReportingControllerGetPortfolioTrendsData;
@@ -6798,6 +8096,21 @@ type $OpenApiTs = {
6798
8096
  };
6799
8097
  };
6800
8098
  };
8099
+ '/api/v1/{region}/reporting/cash-flow/trends': {
8100
+ get: {
8101
+ req: ReportingControllerGetCashFlowTrendsData;
8102
+ res: {
8103
+ /**
8104
+ * Cash-flow trends retrieved successfully
8105
+ */
8106
+ 200: CashFlowTrendsResponseDto;
8107
+ /**
8108
+ * User not authenticated
8109
+ */
8110
+ 401: unknown;
8111
+ };
8112
+ };
8113
+ };
6801
8114
  '/api/v1/{region}/reporting/snapshots/generate': {
6802
8115
  post: {
6803
8116
  req: ReportingControllerGenerateSnapshotData;
@@ -7114,6 +8427,7 @@ declare class BeanTransactionsService {
7114
8427
  * @param data.status Filter by transaction status
7115
8428
  * @param data.search Search in narration and payee fields (max 200 chars)
7116
8429
  * @param data.accountId Filter by account ID (transactions with postings to this account)
8430
+ * @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
7117
8431
  * @returns TransactionListResponseDto Transaction list
7118
8432
  * @throws ApiError
7119
8433
  */
@@ -7129,6 +8443,29 @@ declare class BeanTransactionsService {
7129
8443
  * @throws ApiError
7130
8444
  */
7131
8445
  static transactionControllerCreateBatch(data: TransactionControllerCreateBatchData): CancelablePromise<TransactionControllerCreateBatchResponse>;
8446
+ /**
8447
+ * Correct (supersede) a transaction
8448
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
8449
+ * @param data The data for the request.
8450
+ * @param data.id Original transaction ID to correct
8451
+ * @param data.region Region code for tenant context
8452
+ * @param data.requestBody
8453
+ * @returns TransactionDetailDto Corrected transaction created
8454
+ * @throws ApiError
8455
+ */
8456
+ static transactionControllerCorrect(data: TransactionControllerCorrectData): CancelablePromise<TransactionControllerCorrectResponse>;
8457
+ /**
8458
+ * Suggest transaction tags
8459
+ * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
8460
+ * @param data The data for the request.
8461
+ * @param data.region Region code for tenant context
8462
+ * @param data.q Prefix match, case-insensitive (max 50 chars)
8463
+ * @param data.sort usage (default) or name
8464
+ * @param data.limit Max suggestions (1-100, default 10)
8465
+ * @returns TagSuggestionsResponseDto Tag suggestions
8466
+ * @throws ApiError
8467
+ */
8468
+ static transactionControllerSuggestTags(data: TransactionControllerSuggestTagsData): CancelablePromise<TransactionControllerSuggestTagsResponse>;
7132
8469
  /**
7133
8470
  * Get transaction detail
7134
8471
  * Returns transaction details including all postings
@@ -7283,7 +8620,7 @@ declare class ProviderSyncService {
7283
8620
  *
7284
8621
  * @param data The data for the request.
7285
8622
  * @param data.providerName Provider name
7286
- * @param data.region Region code
8623
+ * @param data.region Region code for tenant context
7287
8624
  * @param data.requestBody
7288
8625
  * @returns ProviderSyncResponseDto Sync completed successfully
7289
8626
  * @throws ApiError
@@ -7396,4 +8733,4 @@ type OpenAPIConfig = {
7396
8733
  };
7397
8734
  declare const OpenAPI: OpenAPIConfig;
7398
8735
 
7399
- 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 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 TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TemplateMetadataDto, type TemplateMetadataResponseDto, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionControllerCreateBatchData, type TransactionControllerCreateBatchResponse, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerDeleteData, type TransactionControllerDeleteResponse, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, 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 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 sourceType, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type viewMode };
8736
+ 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 AmountDto, 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 CashFlowPointDto, type CashFlowResponseDto, type CashFlowTrendSummaryDto, type CashFlowTrendsResponseDto, type CategoryGroupDto, 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 CostDetailDto, type CostSpecDto, type CreateAccountDto, type CreateBeanEventDto, type CreateBeanPriceDto, type CreateCommodityDto, type CreatePayeeDto, type CreatePayeeProfileDto, type CreatePlatformDto, type CreatePostingDto, type CreateRecurringRuleDto, type CreateRuleFromTransactionDto, type CreateTransactionDto, type CreateTransactionRuleDto, type CurrencyBalanceDto, type CurrentPriceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetExpensesData, type DashboardControllerGetExpensesResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type EnterNowDto, type EventControllerCreateData, type EventControllerCreateResponse, type EventControllerDeleteData, type EventControllerDeleteResponse, type EventControllerFindAllData, type EventControllerFindAllResponse, type EventControllerFindOneData, type EventControllerFindOneResponse, type EventControllerGetSliceData, type EventControllerGetSliceResponse, type EventControllerUpdateData, type EventControllerUpdateResponse, type EventListResponseDto, type EventResponseDto, 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 ExpensesByCategoryResponseDto, type ExpensesByCategorySummaryDto, 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 FxRateDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckOpenBbResponse, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type HoldingAssetClassAccountSliceDto, type HoldingAssetClassCrossAccountResponseDto, type HoldingPnlControllerGetHoldingPnlData, type HoldingPnlControllerGetHoldingPnlResponse, type HoldingPnlResponseDto, type HoldingPnlRowDto, type HoldingPnlWarningDto, 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 MonetaryDto, 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 PriceControllerBulkCreateData, type PriceControllerBulkCreateResponse, type PriceControllerCreateData, type PriceControllerCreateResponse, type PriceControllerDeleteData, type PriceControllerDeleteResponse, type PriceControllerFindAllData, type PriceControllerFindAllResponse, type PriceControllerFindOneData, type PriceControllerFindOneResponse, type PriceControllerUpdateData, type PriceControllerUpdateResponse, type PriceListResponseDto, type PriceResponseDto, 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 ReportingControllerGetCashFlowTrendsData, type ReportingControllerGetCashFlowTrendsResponse, 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 TelemetryControllerGetCoverageMetricsData, type TelemetryControllerGetCoverageMetricsResponse, type TelemetryControllerReportCoverageMissData, type TelemetryControllerReportCoverageMissResponse, 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 UncoveredFormatMissDto, type UndoResultDto, type UpdateAccountDto, type UpdateBeanEventDto, type UpdateBeanPriceDto, 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 chartToken, 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 method, type mode, type paymentSource, type period, type source, type source2, type source3, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type type4, type value, type viewMode };