@firela/api-types 0.0.0-canary.0327ab9e → 0.0.0-canary.09a8ff4c

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
@@ -293,6 +293,50 @@ type RegionInfoDto = {
293
293
  type RegionsMetadataResponseDto = {
294
294
  regions: Array<RegionInfoDto>;
295
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
+ };
296
340
  type CreatePostingDto = {
297
341
  /**
298
342
  * Account name in Beancount format (must start with uppercase, colon-separated)
@@ -312,6 +356,14 @@ type CreatePostingDto = {
312
356
  meta?: {
313
357
  [key: string]: unknown;
314
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;
315
367
  };
316
368
  type CreateTransactionDto = {
317
369
  /**
@@ -361,6 +413,24 @@ type CreateTransactionDto = {
361
413
  * Transaction flag: * (cleared), ! (pending)
362
414
  */
363
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
+ };
364
434
  type PostingResponseDto = {
365
435
  /**
366
436
  * Account name
@@ -374,6 +444,10 @@ type PostingResponseDto = {
374
444
  * Currency
375
445
  */
376
446
  currency?: string;
447
+ /**
448
+ * Booking-resolved cost (mirrors engine Cost). Undefined when the posting has no cost basis.
449
+ */
450
+ cost?: CostDetailDto;
377
451
  };
378
452
  type RecurringSuggestionDto = {
379
453
  /**
@@ -513,6 +587,54 @@ type BatchTransactionResponseDto = {
513
587
  */
514
588
  failed: Array<BatchTransactionErrorDto>;
515
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
+ };
516
638
  type PostingDetailDto = {
517
639
  /**
518
640
  * Posting ID
@@ -523,9 +645,9 @@ type PostingDetailDto = {
523
645
  */
524
646
  accountId: string;
525
647
  /**
526
- * Account name
648
+ * Fully-qualified Beancount account path
527
649
  */
528
- accountName: string;
650
+ account: string;
529
651
  /**
530
652
  * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
531
653
  */
@@ -546,6 +668,10 @@ type PostingDetailDto = {
546
668
  * Cost date
547
669
  */
548
670
  costDate?: string;
671
+ /**
672
+ * Booking-resolved cost (mirrors engine Cost). Undefined when the posting has no cost basis.
673
+ */
674
+ cost?: CostDetailDto;
549
675
  /**
550
676
  * Price amount
551
677
  */
@@ -609,9 +735,9 @@ type TransactionDetailDto = {
609
735
  */
610
736
  status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
611
737
  /**
612
- * Source type (how the transaction was created)
738
+ * Source type (free-form string from transaction metadata, e.g. import, api)
613
739
  */
614
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
740
+ sourceType?: string;
615
741
  /**
616
742
  * Source platform (e.g., alipay, wechat)
617
743
  */
@@ -636,6 +762,14 @@ type TransactionDetailDto = {
636
762
  * Correction reason (if voided or superseded)
637
763
  */
638
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;
639
773
  };
640
774
  /**
641
775
  * Transaction flag
@@ -645,10 +779,6 @@ type flag2 = 'CLEARED' | 'PENDING' | 'PADDING' | 'SUMMARIZE' | 'TRANSFER' | 'CON
645
779
  * Transaction status
646
780
  */
647
781
  type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
648
- /**
649
- * Source type (how the transaction was created)
650
- */
651
- type sourceType = 'NLP' | 'CSV' | 'OCR' | 'API';
652
782
  type TransactionListResponseDto = {
653
783
  /**
654
784
  * List of transactions
@@ -775,9 +905,9 @@ type TransactionSummaryDto = {
775
905
  */
776
906
  accountName?: string;
777
907
  /**
778
- * Source type (NLP, CSV, OCR, API)
908
+ * Source type (free-form string from transaction metadata, e.g. import, api)
779
909
  */
780
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
910
+ sourceType?: string;
781
911
  /**
782
912
  * Source platform (e.g., alipay, wechat)
783
913
  */
@@ -819,7 +949,7 @@ type ReviewSummaryDto = {
819
949
  */
820
950
  matchReasons: Array<string>;
821
951
  /**
822
- * Source type (NLP, CSV, OCR, API)
952
+ * Source type (free-form string from transaction metadata, e.g. import, api)
823
953
  */
824
954
  sourceType: string;
825
955
  /**
@@ -906,7 +1036,7 @@ type DecisionOptionDto = {
906
1036
  /**
907
1037
  * The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
908
1038
  */
909
- value: string;
1039
+ value: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
910
1040
  /**
911
1041
  * i18n message key for display label (e.g., review.payee.accept.label)
912
1042
  */
@@ -920,6 +1050,10 @@ type DecisionOptionDto = {
920
1050
  */
921
1051
  recommended?: boolean;
922
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';
923
1057
  type ReviewDetailDto = {
924
1058
  /**
925
1059
  * Review item ID
@@ -956,7 +1090,7 @@ type ReviewDetailDto = {
956
1090
  */
957
1091
  matchReasons: Array<string>;
958
1092
  /**
959
- * Source type (NLP, CSV, OCR, API)
1093
+ * Source type (free-form string from transaction metadata, e.g. import, api)
960
1094
  */
961
1095
  sourceType: string;
962
1096
  /**
@@ -1008,9 +1142,9 @@ type ReviewDetailDto = {
1008
1142
  };
1009
1143
  type ResolveReviewDto = {
1010
1144
  /**
1011
- * Decision action. Available actions vary by review type: DUPLICATE: UPGRADE_REPLACE, LINK_KEEP_BOTH, IGNORE_NEW, CONFIRM_DIFFERENT | RULE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN | PAYEE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN | ACCOUNT_VALIDATION: ACCEPT, CHOOSE_OTHER, CANCEL | PIPELINE_ERROR: FIX, IGNORE, CANCEL
1145
+ * Decision action. Valid actions vary by review type see DecisionOptionDto.value returned by the review detail endpoint.
1012
1146
  */
1013
- action: string;
1147
+ action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
1014
1148
  /**
1015
1149
  * Additional data for the decision (e.g., selected account ID)
1016
1150
  */
@@ -1018,6 +1152,10 @@ type ResolveReviewDto = {
1018
1152
  [key: string]: unknown;
1019
1153
  };
1020
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';
1021
1159
  type ResolveResultDto = {
1022
1160
  /**
1023
1161
  * Whether resolution was successful
@@ -1034,17 +1172,17 @@ type ResolveResultDto = {
1034
1172
  [key: string]: string;
1035
1173
  };
1036
1174
  /**
1037
- * Resolution ID for undo
1175
+ * Resolution ID for undo. Absent when the resolver rejected the decision (review stayed PENDING).
1038
1176
  */
1039
- resolutionId: string;
1177
+ resolutionId?: string;
1040
1178
  /**
1041
1179
  * Whether this decision can be undone
1042
1180
  */
1043
- canUndo: boolean;
1181
+ canUndo?: boolean;
1044
1182
  /**
1045
1183
  * Deadline for undo (24h from resolution)
1046
1184
  */
1047
- undoDeadline: string;
1185
+ undoDeadline?: string;
1048
1186
  /**
1049
1187
  * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1050
1188
  */
@@ -1072,7 +1210,7 @@ type BatchResolveDto = {
1072
1210
  /**
1073
1211
  * Decision action to apply to all items
1074
1212
  */
1075
- action: string;
1213
+ action: 'UPGRADE_REPLACE' | 'LINK_KEEP_BOTH' | 'IGNORE_NEW' | 'CONFIRM_DIFFERENT' | 'ACCEPT' | 'REJECT' | 'ACCEPT_AND_LEARN' | 'CHOOSE_OTHER' | 'CANCEL' | 'FIX' | 'IGNORE';
1076
1214
  /**
1077
1215
  * Additional data for the decision
1078
1216
  */
@@ -2551,6 +2689,92 @@ type UpdatePropertyDto = {
2551
2689
  */
2552
2690
  value: string;
2553
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
+ };
2554
2778
  type FileImportDto = {
2555
2779
  /**
2556
2780
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -2932,6 +3156,7 @@ type SupportedProvidersResponseDto = {
2932
3156
  providers: Array<string>;
2933
3157
  };
2934
3158
  type ParserTelemetryReportDto = unknown;
3159
+ type UncoveredFormatMissDto = unknown;
2935
3160
  type ProcessNlpDto = {
2936
3161
  /**
2937
3162
  * Natural language text describing a transaction (Chinese)
@@ -3448,7 +3673,7 @@ type status4 = 'success' | 'pending' | 'error';
3448
3673
  /**
3449
3674
  * Action taken or requested
3450
3675
  */
3451
- 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';
3452
3677
  /**
3453
3678
  * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
3454
3679
  */
@@ -3666,7 +3891,15 @@ type AccountItemWithAssetClassDto = {
3666
3891
  * Risk level
3667
3892
  */
3668
3893
  riskLevel?: string;
3894
+ /**
3895
+ * ADR-0105 classification provenance (holding level always; account level only on FALLBACK)
3896
+ */
3897
+ source?: 'USER_META' | 'FIAT_CURRENCY' | 'OPENBB_MAPPING' | 'FALLBACK';
3669
3898
  };
3899
+ /**
3900
+ * ADR-0105 classification provenance (holding level always; account level only on FALLBACK)
3901
+ */
3902
+ type source2 = 'USER_META' | 'FIAT_CURRENCY' | 'OPENBB_MAPPING' | 'FALLBACK';
3670
3903
  type AssetClassGroupDto = {
3671
3904
  /**
3672
3905
  * Asset class name
@@ -3728,6 +3961,12 @@ type AssetClassSummaryDto = {
3728
3961
  * Exchange rate warnings
3729
3962
  */
3730
3963
  warnings?: Array<AccountExchangeRateWarningDto>;
3964
+ /**
3965
+ * 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.
3966
+ */
3967
+ fallback?: {
3968
+ [key: string]: unknown;
3969
+ };
3731
3970
  };
3732
3971
  type AssetClassAccountsResponseDto = {
3733
3972
  /**
@@ -3738,6 +3977,54 @@ type AssetClassAccountsResponseDto = {
3738
3977
  * Summary statistics
3739
3978
  */
3740
3979
  summary: AssetClassSummaryDto;
3980
+ /**
3981
+ * ADR-0105 §6 holding-level grey-area bucket (source=FALLBACK holdings peeled out of groups). Present only for groupBy=holdingAssetClass when FALLBACK holdings exist.
3982
+ */
3983
+ uncategorized?: AssetClassGroupDto;
3984
+ };
3985
+ type HoldingAssetClassAccountSliceDto = {
3986
+ /**
3987
+ * Account ID
3988
+ */
3989
+ accountId: string;
3990
+ /**
3991
+ * Full account path
3992
+ */
3993
+ accountPath: string;
3994
+ /**
3995
+ * Currency of the holding with the largest converted base value; undefined when no holding is convertible
3996
+ */
3997
+ accountCurrency?: string;
3998
+ /**
3999
+ * Account's market value in base currency (Σ converted holdings; grey bucket included)
4000
+ */
4001
+ marketValueBase: string;
4002
+ /**
4003
+ * Share of the global total (0-100). 0 when globalTotal is zero (no NaN/Infinity).
4004
+ */
4005
+ shareOfTotalPct: number;
4006
+ /**
4007
+ * Per-account asset-class breakdown
4008
+ */
4009
+ groups: Array<AssetClassGroupDto>;
4010
+ /**
4011
+ * Per-account grey bucket (source=FALLBACK holdings, incl. broker cash)
4012
+ */
4013
+ uncategorized?: AssetClassGroupDto;
4014
+ /**
4015
+ * Every holding row for this account (account ID in each row’s `id` field)
4016
+ */
4017
+ holdings: Array<AccountItemWithAssetClassDto>;
4018
+ };
4019
+ type HoldingAssetClassCrossAccountResponseDto = {
4020
+ /**
4021
+ * Merged cross-account holding aggregation
4022
+ */
4023
+ global: AssetClassAccountsResponseDto;
4024
+ /**
4025
+ * Per-account slices
4026
+ */
4027
+ byAccount: Array<HoldingAssetClassAccountSliceDto>;
3741
4028
  };
3742
4029
  type CashFlowByCurrencyDto = {
3743
4030
  /**
@@ -3815,73 +4102,342 @@ type CashFlowResponseDto = {
3815
4102
  */
3816
4103
  warnings?: Array<ExchangeRateWarningDto>;
3817
4104
  };
3818
- type CurrencyBalanceDto = {
4105
+ type MonetaryDto = {
3819
4106
  /**
3820
- * ISO 4217 currency code
4107
+ * Amount (Decimal string)
4108
+ */
4109
+ amount: string;
4110
+ /**
4111
+ * ISO 4217 currency
3821
4112
  */
3822
4113
  currency: string;
3823
4114
  /**
3824
- * Balance amount
4115
+ * Converted to user base currency (Decimal string)
3825
4116
  */
3826
- balance: string;
4117
+ baseCcyEquivalent?: {
4118
+ [key: string]: unknown;
4119
+ } | null;
3827
4120
  };
3828
- type TimeSeriesPointDto = {
4121
+ type CurrentPriceDto = {
3829
4122
  /**
3830
- * Date in YYYY-MM-DD format
4123
+ * Price amount (Decimal string)
3831
4124
  */
3832
- date: string;
4125
+ amount: string;
3833
4126
  /**
3834
- * Value at this date (in base currency)
4127
+ * Price currency (ISO 4217)
3835
4128
  */
3836
- value: string;
4129
+ currency: string;
3837
4130
  /**
3838
- * Change from previous point
4131
+ * Price date (ISO 8601)
3839
4132
  */
3840
- change?: {
3841
- [key: string]: unknown;
3842
- };
4133
+ date: string;
3843
4134
  /**
3844
- * Multi-currency breakdown for this point
4135
+ * Price source
3845
4136
  */
3846
- byCurrency?: Array<CurrencyBalanceDto>;
4137
+ source: 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
3847
4138
  };
3848
- type TrendSummaryDto = {
4139
+ /**
4140
+ * Price source
4141
+ */
4142
+ type source3 = 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4143
+ type FxRateDto = {
4144
+ from: string;
4145
+ to: string;
3849
4146
  /**
3850
- * Value at start of period
4147
+ * FX rate (Decimal string)
3851
4148
  */
3852
- startValue: string;
4149
+ rate: string;
3853
4150
  /**
3854
- * Value at end of period
4151
+ * Rate date (ISO 8601)
3855
4152
  */
3856
- endValue: string;
4153
+ date: string;
4154
+ };
4155
+ type HoldingPnlRowDto = {
3857
4156
  /**
3858
- * Total change over period
4157
+ * Account UUID
3859
4158
  */
3860
- totalChange: string;
4159
+ accountId: string;
3861
4160
  /**
3862
- * Total change percentage
4161
+ * Full account path
3863
4162
  */
3864
- totalChangePercentage: string;
3865
- };
3866
- type MultiCurrencyPointDto = {
4163
+ accountPath: string;
3867
4164
  /**
3868
- * Date in YYYY-MM-DD format
4165
+ * Account settlement currency (ISO 4217), from cost currency
3869
4166
  */
3870
- date: string;
4167
+ accountCcy?: {
4168
+ [key: string]: unknown;
4169
+ } | null;
3871
4170
  /**
3872
- * Balances by currency
4171
+ * Broker type derived from Platform.type
3873
4172
  */
3874
- byCurrency: Array<CurrencyBalanceDto>;
3875
- };
3876
- type PortfolioTrendsResponseDto = {
4173
+ brokerType?: {
4174
+ [key: string]: unknown;
4175
+ } | null;
3877
4176
  /**
3878
- * Time series data points
4177
+ * Commodity symbol
3879
4178
  */
3880
- series: Array<TimeSeriesPointDto>;
4179
+ symbol: string;
3881
4180
  /**
3882
- * Period summary
4181
+ * Chart segment token (libs/common resolver)
3883
4182
  */
3884
- summary: TrendSummaryDto;
4183
+ chartToken: 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4184
+ assetClass: string;
4185
+ assetSubClass?: {
4186
+ [key: string]: unknown;
4187
+ } | null;
4188
+ /**
4189
+ * Net held units (Decimal string)
4190
+ */
4191
+ units: string;
4192
+ /**
4193
+ * Average cost per unit; null when cost currency conflicts or no cost
4194
+ */
4195
+ averageCostPerUnit?: MonetaryDto | null;
4196
+ /**
4197
+ * Cost basis of held units
4198
+ */
4199
+ costBasis?: MonetaryDto | null;
4200
+ /**
4201
+ * Market value at asOf price
4202
+ */
4203
+ marketValue?: MonetaryDto | null;
4204
+ /**
4205
+ * Price used for market value
4206
+ */
4207
+ currentPrice?: CurrentPriceDto | null;
4208
+ /**
4209
+ * Unrealized P&L in base currency (Decimal string); null when any FX/price missing
4210
+ */
4211
+ unrealizedPnlBase?: {
4212
+ [key: string]: unknown;
4213
+ } | null;
4214
+ /**
4215
+ * Unrealized P&L % (Decimal string)
4216
+ */
4217
+ unrealizedPnlPct?: {
4218
+ [key: string]: unknown;
4219
+ } | null;
4220
+ /**
4221
+ * Historical FX rate applied to cost basis
4222
+ */
4223
+ costFxRate?: FxRateDto | null;
4224
+ /**
4225
+ * FX rate applied to market value
4226
+ */
4227
+ marketFxRate?: FxRateDto | null;
4228
+ /**
4229
+ * Share of invested assets % (Decimal string); only for invested chartTokens
4230
+ */
4231
+ pctOfInvestedAssets?: {
4232
+ [key: string]: unknown;
4233
+ } | null;
4234
+ /**
4235
+ * 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
4236
+ */
4237
+ realizedPnl?: MonetaryDto | null;
4238
+ };
4239
+ /**
4240
+ * Chart segment token (libs/common resolver)
4241
+ */
4242
+ type chartToken = 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4243
+ type HoldingPnlWarningDto = {
4244
+ /**
4245
+ * Warning type
4246
+ */
4247
+ type: 'MISSING_COST_FX_RATE' | 'MISSING_MARKET_FX_RATE' | 'MISSING_SALE_PRICE' | 'MISSING_REALIZED_FX_RATE' | 'OVERSOLD_LOTS' | 'NO_PRICE' | 'MIXED_COST_CURRENCY';
4248
+ symbol?: {
4249
+ [key: string]: unknown;
4250
+ } | null;
4251
+ accountId?: {
4252
+ [key: string]: unknown;
4253
+ } | null;
4254
+ currency?: {
4255
+ [key: string]: unknown;
4256
+ } | null;
4257
+ };
4258
+ /**
4259
+ * Warning type
4260
+ */
4261
+ type type4 = 'MISSING_COST_FX_RATE' | 'MISSING_MARKET_FX_RATE' | 'MISSING_SALE_PRICE' | 'MISSING_REALIZED_FX_RATE' | 'OVERSOLD_LOTS' | 'NO_PRICE' | 'MIXED_COST_CURRENCY';
4262
+ type HoldingPnlResponseDto = {
4263
+ asOfDate: string;
4264
+ baseCurrency: string;
4265
+ /**
4266
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4267
+ */
4268
+ method: 'average' | 'FIFO';
4269
+ rows: Array<HoldingPnlRowDto>;
4270
+ warnings: Array<HoldingPnlWarningDto>;
4271
+ };
4272
+ /**
4273
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4274
+ */
4275
+ type method = 'average' | 'FIFO';
4276
+ type CreateBeanPriceDto = {
4277
+ /**
4278
+ * Currency being priced (e.g., USD, AAPL, BTC)
4279
+ */
4280
+ currency: string;
4281
+ /**
4282
+ * Quote currency (pricing currency, e.g., CNY, EUR)
4283
+ */
4284
+ quoteCurrency: string;
4285
+ /**
4286
+ * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
4287
+ */
4288
+ amount: number;
4289
+ /**
4290
+ * Price date (ISO 8601 format)
4291
+ */
4292
+ date: string;
4293
+ /**
4294
+ * Metadata (validated by Zod schema, max field lengths enforced)
4295
+ */
4296
+ metadata?: {
4297
+ [key: string]: unknown;
4298
+ };
4299
+ };
4300
+ type PriceResponseDto = {
4301
+ /**
4302
+ * Unique identifier
4303
+ */
4304
+ id: string;
4305
+ /**
4306
+ * User ID (owner of the price)
4307
+ */
4308
+ userId: string;
4309
+ /**
4310
+ * Currency being priced (e.g., USD, AAPL, BTC)
4311
+ */
4312
+ currency: string;
4313
+ /**
4314
+ * Quote currency (pricing currency, e.g., USD, CNY)
4315
+ */
4316
+ quoteCurrency: string;
4317
+ /**
4318
+ * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
4319
+ */
4320
+ amount: number;
4321
+ /**
4322
+ * Price date (ISO 8601 format). Represents the date this price was valid.
4323
+ */
4324
+ date: string;
4325
+ /**
4326
+ * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
4327
+ */
4328
+ meta: {
4329
+ [key: string]: unknown;
4330
+ };
4331
+ /**
4332
+ * Creation timestamp
4333
+ */
4334
+ createdAt: string;
4335
+ /**
4336
+ * Last update timestamp
4337
+ */
4338
+ updatedAt: string;
4339
+ };
4340
+ type PriceListResponseDto = {
4341
+ /**
4342
+ * List of prices
4343
+ */
4344
+ items: Array<PriceResponseDto>;
4345
+ /**
4346
+ * Total number of prices
4347
+ */
4348
+ total: number;
4349
+ };
4350
+ type UpdateBeanPriceDto = {
4351
+ /**
4352
+ * Currency being priced
4353
+ */
4354
+ currency?: string;
4355
+ /**
4356
+ * Quote currency (pricing currency)
4357
+ */
4358
+ quoteCurrency?: string;
4359
+ /**
4360
+ * Price amount (MUST be >= 0 per Beancount spec)
4361
+ */
4362
+ amount?: number;
4363
+ /**
4364
+ * Price date (ISO 8601 format)
4365
+ */
4366
+ date?: string;
4367
+ /**
4368
+ * Metadata
4369
+ */
4370
+ metadata?: {
4371
+ [key: string]: unknown;
4372
+ };
4373
+ };
4374
+ type CurrencyBalanceDto = {
4375
+ /**
4376
+ * ISO 4217 currency code
4377
+ */
4378
+ currency: string;
4379
+ /**
4380
+ * Balance amount
4381
+ */
4382
+ balance: string;
4383
+ };
4384
+ type TimeSeriesPointDto = {
4385
+ /**
4386
+ * Date in YYYY-MM-DD format
4387
+ */
4388
+ date: string;
4389
+ /**
4390
+ * Value at this date (in base currency)
4391
+ */
4392
+ value: string;
4393
+ /**
4394
+ * Change from previous point
4395
+ */
4396
+ change?: {
4397
+ [key: string]: unknown;
4398
+ };
4399
+ /**
4400
+ * Multi-currency breakdown for this point
4401
+ */
4402
+ byCurrency?: Array<CurrencyBalanceDto>;
4403
+ };
4404
+ type TrendSummaryDto = {
4405
+ /**
4406
+ * Value at start of period
4407
+ */
4408
+ startValue: string;
4409
+ /**
4410
+ * Value at end of period
4411
+ */
4412
+ endValue: string;
4413
+ /**
4414
+ * Total change over period
4415
+ */
4416
+ totalChange: string;
4417
+ /**
4418
+ * Total change percentage
4419
+ */
4420
+ totalChangePercentage: string;
4421
+ };
4422
+ type MultiCurrencyPointDto = {
4423
+ /**
4424
+ * Date in YYYY-MM-DD format
4425
+ */
4426
+ date: string;
4427
+ /**
4428
+ * Balances by currency
4429
+ */
4430
+ byCurrency: Array<CurrencyBalanceDto>;
4431
+ };
4432
+ type PortfolioTrendsResponseDto = {
4433
+ /**
4434
+ * Time series data points
4435
+ */
4436
+ series: Array<TimeSeriesPointDto>;
4437
+ /**
4438
+ * Period summary
4439
+ */
4440
+ summary: TrendSummaryDto;
3885
4441
  /**
3886
4442
  * Period requested
3887
4443
  */
@@ -3903,6 +4459,68 @@ type PortfolioTrendsResponseDto = {
3903
4459
  */
3904
4460
  warnings?: Array<ExchangeRateWarningDto>;
3905
4461
  };
4462
+ type CashFlowPointDto = {
4463
+ /**
4464
+ * Month key (YYYY-MM)
4465
+ */
4466
+ month: string;
4467
+ /**
4468
+ * Income in base currency (absolute, converted)
4469
+ */
4470
+ income: string;
4471
+ /**
4472
+ * Expense in base currency (absolute, converted)
4473
+ */
4474
+ expense: string;
4475
+ /**
4476
+ * netSavings = income − expense (savings positive)
4477
+ */
4478
+ netSavings: string;
4479
+ };
4480
+ type CashFlowTrendSummaryDto = {
4481
+ /**
4482
+ * Total income across the period
4483
+ */
4484
+ totalIncome: string;
4485
+ /**
4486
+ * Total expense across the period
4487
+ */
4488
+ totalExpense: string;
4489
+ /**
4490
+ * income − expense across the period
4491
+ */
4492
+ totalNetSavings: string;
4493
+ /**
4494
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
4495
+ */
4496
+ averageMonthlyNetSavings: string;
4497
+ };
4498
+ type CashFlowTrendsResponseDto = {
4499
+ /**
4500
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
4501
+ */
4502
+ series: Array<CashFlowPointDto>;
4503
+ /**
4504
+ * Period totals
4505
+ */
4506
+ summary: CashFlowTrendSummaryDto;
4507
+ /**
4508
+ * Period requested
4509
+ */
4510
+ period: string;
4511
+ /**
4512
+ * Data granularity (v1 returns month buckets)
4513
+ */
4514
+ granularity: string;
4515
+ /**
4516
+ * Base currency for converted values
4517
+ */
4518
+ currency: string;
4519
+ /**
4520
+ * Exchange rate warnings (e.g. missing rate for a currency)
4521
+ */
4522
+ warnings?: Array<ExchangeRateWarningDto>;
4523
+ };
3906
4524
  type GenerateSnapshotBody = unknown;
3907
4525
  type GenerateSnapshotResponse = unknown;
3908
4526
  type BackfillSnapshotsBody = unknown;
@@ -4097,6 +4715,18 @@ type TransactionControllerCreateBatchData = {
4097
4715
  requestBody: BatchCreateTransactionDto;
4098
4716
  };
4099
4717
  type TransactionControllerCreateBatchResponse = BatchTransactionResponseDto;
4718
+ type TransactionControllerCorrectData = {
4719
+ /**
4720
+ * Original transaction ID to correct
4721
+ */
4722
+ id: string;
4723
+ /**
4724
+ * Region code for tenant context
4725
+ */
4726
+ region: 'cn' | 'us' | 'de' | 'gb';
4727
+ requestBody: CorrectTransactionDto;
4728
+ };
4729
+ type TransactionControllerCorrectResponse = TransactionDetailDto;
4100
4730
  type TransactionControllerSuggestTagsData = {
4101
4731
  /**
4102
4732
  * Max suggestions (1-100, default 10)
@@ -4844,6 +5474,92 @@ type PropertyControllerDeleteData = {
4844
5474
  key: string;
4845
5475
  };
4846
5476
  type PropertyControllerDeleteResponse = void;
5477
+ type EventControllerCreateData = {
5478
+ /**
5479
+ * Region code for tenant context (decorative for life events)
5480
+ */
5481
+ region: 'cn' | 'us' | 'de' | 'gb';
5482
+ requestBody: CreateBeanEventDto;
5483
+ };
5484
+ type EventControllerCreateResponse = EventResponseDto;
5485
+ type EventControllerFindAllData = {
5486
+ /**
5487
+ * Filter life events from this date (ISO 8601 format)
5488
+ */
5489
+ from?: string;
5490
+ /**
5491
+ * Number of items per page (default: 20, max: 100)
5492
+ */
5493
+ limit?: number;
5494
+ /**
5495
+ * Page number for pagination (default: 1)
5496
+ */
5497
+ page?: number;
5498
+ /**
5499
+ * Search term for description (case-insensitive partial match)
5500
+ */
5501
+ q?: string;
5502
+ /**
5503
+ * Region code for tenant context (decorative for life events)
5504
+ */
5505
+ region: 'cn' | 'us' | 'de' | 'gb';
5506
+ /**
5507
+ * Filter life events to this date (ISO 8601 format)
5508
+ */
5509
+ to?: string;
5510
+ /**
5511
+ * Filter by life event type (exact match)
5512
+ */
5513
+ type?: string;
5514
+ };
5515
+ type EventControllerFindAllResponse = EventListResponseDto;
5516
+ type EventControllerFindOneData = {
5517
+ /**
5518
+ * Life event ID
5519
+ */
5520
+ id: string;
5521
+ /**
5522
+ * Region code for tenant context (decorative for life events)
5523
+ */
5524
+ region: 'cn' | 'us' | 'de' | 'gb';
5525
+ };
5526
+ type EventControllerFindOneResponse = EventResponseDto;
5527
+ type EventControllerUpdateData = {
5528
+ /**
5529
+ * Life event ID
5530
+ */
5531
+ id: string;
5532
+ /**
5533
+ * Region code for tenant context (decorative for life events)
5534
+ */
5535
+ region: 'cn' | 'us' | 'de' | 'gb';
5536
+ requestBody: UpdateBeanEventDto;
5537
+ };
5538
+ type EventControllerUpdateResponse = EventResponseDto;
5539
+ type EventControllerDeleteData = {
5540
+ /**
5541
+ * Life event ID
5542
+ */
5543
+ id: string;
5544
+ /**
5545
+ * Region code for tenant context (decorative for life events)
5546
+ */
5547
+ region: 'cn' | 'us' | 'de' | 'gb';
5548
+ };
5549
+ type EventControllerDeleteResponse = void;
5550
+ type EventControllerGetSliceData = {
5551
+ accountPattern: string;
5552
+ granularity: string;
5553
+ /**
5554
+ * Life event ID
5555
+ */
5556
+ id: string;
5557
+ /**
5558
+ * Region code for tenant context (decorative for life events)
5559
+ */
5560
+ region: 'cn' | 'us' | 'de' | 'gb';
5561
+ };
5562
+ type EventControllerGetSliceResponse = unknown;
4847
5563
  type ExportControllerExportBeancountResponse = unknown;
4848
5564
  type FileImportControllerImportFileData = {
4849
5565
  /**
@@ -4961,9 +5677,9 @@ type ProviderSyncControllerSyncData = {
4961
5677
  */
4962
5678
  providerName: 'plaid' | 'teller' | 'truelayer' | 'gocardless' | 'simplefin' | 'yodlee' | 'beancount-direct' | 'parsed-bill';
4963
5679
  /**
4964
- * Region code
5680
+ * Region code for tenant context
4965
5681
  */
4966
- region: unknown;
5682
+ region: 'cn' | 'us' | 'de' | 'gb';
4967
5683
  requestBody: ProviderSyncDto;
4968
5684
  };
4969
5685
  type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
@@ -4980,92 +5696,234 @@ type ProviderSyncControllerIsProviderSupportedData = {
4980
5696
  */
4981
5697
  providerName: string;
4982
5698
  /**
4983
- * Region code for tenant context
5699
+ * Region code for tenant context
5700
+ */
5701
+ region: 'cn' | 'us' | 'de' | 'gb';
5702
+ };
5703
+ type ProviderSyncControllerIsProviderSupportedResponse = unknown;
5704
+ type TelemetryControllerReportTelemetryData = {
5705
+ /**
5706
+ * Region code for tenant context
5707
+ */
5708
+ region: 'cn' | 'us' | 'de' | 'gb';
5709
+ requestBody: ParserTelemetryReportDto;
5710
+ };
5711
+ type TelemetryControllerReportTelemetryResponse = unknown;
5712
+ type TelemetryControllerReportCoverageMissData = {
5713
+ /**
5714
+ * Region code for tenant context
5715
+ */
5716
+ region: 'cn' | 'us' | 'de' | 'gb';
5717
+ requestBody: UncoveredFormatMissDto;
5718
+ };
5719
+ type TelemetryControllerReportCoverageMissResponse = unknown;
5720
+ type TelemetryControllerGetCoverageMetricsData = {
5721
+ /**
5722
+ * Region code for tenant context
5723
+ */
5724
+ region: 'cn' | 'us' | 'de' | 'gb';
5725
+ /**
5726
+ * Top-N uncovered formats (default 10)
5727
+ */
5728
+ topN?: unknown;
5729
+ };
5730
+ type TelemetryControllerGetCoverageMetricsResponse = unknown;
5731
+ type NlpControllerProcessNaturalLanguageData = {
5732
+ /**
5733
+ * Region code for tenant context
5734
+ */
5735
+ region: 'cn' | 'us' | 'de' | 'gb';
5736
+ /**
5737
+ * Natural language transaction input with optional session ID
5738
+ */
5739
+ requestBody: ProcessNlpDto;
5740
+ };
5741
+ type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5742
+ type NlpControllerClearSessionData = {
5743
+ /**
5744
+ * Region code for tenant context
5745
+ */
5746
+ region: 'cn' | 'us' | 'de' | 'gb';
5747
+ /**
5748
+ * Specific session ID to clear (defaults to user session)
5749
+ */
5750
+ sessionId?: string;
5751
+ };
5752
+ type NlpControllerClearSessionResponse = void;
5753
+ type NlpControllerGetSessionData = {
5754
+ /**
5755
+ * Region code for tenant context
5756
+ */
5757
+ region: 'cn' | 'us' | 'de' | 'gb';
5758
+ /**
5759
+ * Specific session ID to get (defaults to user session)
5760
+ */
5761
+ sessionId?: string;
5762
+ };
5763
+ type NlpControllerGetSessionResponse = unknown;
5764
+ type DashboardControllerGetNetWorthData = {
5765
+ /**
5766
+ * Date for balance calculation (ISO 8601 format)
5767
+ */
5768
+ date?: string;
5769
+ /**
5770
+ * Region code for tenant context
5771
+ */
5772
+ region: 'cn' | 'us' | 'de' | 'gb';
5773
+ };
5774
+ type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5775
+ type DashboardControllerGetAccountsData = {
5776
+ /**
5777
+ * Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
5778
+ */
5779
+ accountId?: string;
5780
+ /**
5781
+ * Date for balance calculation (ISO 8601 format)
5782
+ */
5783
+ date?: string;
5784
+ /**
5785
+ * Grouping strategy
5786
+ */
5787
+ groupBy?: 'platform' | 'assetClass' | 'holdingAssetClass' | 'holdingAssetClassByAccount';
5788
+ /**
5789
+ * Region code for tenant context
5790
+ */
5791
+ region: 'cn' | 'us' | 'de' | 'gb';
5792
+ };
5793
+ type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
5794
+ type DashboardControllerGetCashFlowData = {
5795
+ /**
5796
+ * Period in YYYY-MM format
5797
+ */
5798
+ period: string;
5799
+ /**
5800
+ * Region code for tenant context
5801
+ */
5802
+ region: 'cn' | 'us' | 'de' | 'gb';
5803
+ };
5804
+ type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5805
+ type HoldingPnlControllerGetHoldingPnlData = {
5806
+ /**
5807
+ * Scope to a single account
5808
+ */
5809
+ accountId?: string;
5810
+ /**
5811
+ * As-of date (ISO 8601), defaults to today
5812
+ */
5813
+ asOf?: string;
5814
+ /**
5815
+ * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
5816
+ */
5817
+ method?: 'FIFO' | 'average';
5818
+ /**
5819
+ * Region code for tenant context
5820
+ */
5821
+ region: 'cn' | 'us' | 'de' | 'gb';
5822
+ };
5823
+ type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
5824
+ type PriceControllerCreateData = {
5825
+ /**
5826
+ * Region code for tenant context
5827
+ */
5828
+ region: 'cn' | 'us' | 'de' | 'gb';
5829
+ requestBody: CreateBeanPriceDto;
5830
+ };
5831
+ type PriceControllerCreateResponse = PriceResponseDto;
5832
+ type PriceControllerFindAllData = {
5833
+ /**
5834
+ * Filter by currency (e.g., BTC, AAPL, USD)
5835
+ */
5836
+ currency?: string;
5837
+ /**
5838
+ * Filter prices from this date (ISO 8601 format)
5839
+ */
5840
+ dateFrom?: string;
5841
+ /**
5842
+ * Filter prices to this date (ISO 8601 format)
4984
5843
  */
4985
- region: 'cn' | 'us' | 'de' | 'gb';
4986
- };
4987
- type ProviderSyncControllerIsProviderSupportedResponse = unknown;
4988
- type TelemetryControllerReportTelemetryData = {
5844
+ dateTo?: string;
4989
5845
  /**
4990
- * Region code for tenant context
5846
+ * Number of items per page (default: 20, max: 100)
4991
5847
  */
4992
- region: 'cn' | 'us' | 'de' | 'gb';
4993
- requestBody: ParserTelemetryReportDto;
4994
- };
4995
- type TelemetryControllerReportTelemetryResponse = unknown;
4996
- type NlpControllerProcessNaturalLanguageData = {
5848
+ limit?: number;
4997
5849
  /**
4998
- * Region code for tenant context
5850
+ * Page number for pagination (default: 1)
4999
5851
  */
5000
- region: 'cn' | 'us' | 'de' | 'gb';
5852
+ page?: number;
5001
5853
  /**
5002
- * Natural language transaction input with optional session ID
5854
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
5003
5855
  */
5004
- requestBody: ProcessNlpDto;
5005
- };
5006
- type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5007
- type NlpControllerClearSessionData = {
5856
+ quoteCurrency?: string;
5008
5857
  /**
5009
5858
  * Region code for tenant context
5010
5859
  */
5011
5860
  region: 'cn' | 'us' | 'de' | 'gb';
5012
5861
  /**
5013
- * Specific session ID to clear (defaults to user session)
5862
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
5014
5863
  */
5015
- sessionId?: string;
5864
+ search?: string;
5016
5865
  };
5017
- type NlpControllerClearSessionResponse = void;
5018
- type NlpControllerGetSessionData = {
5866
+ type PriceControllerFindAllResponse = PriceListResponseDto;
5867
+ type PriceControllerFindOneData = {
5019
5868
  /**
5020
- * Region code for tenant context
5869
+ * Price ID
5021
5870
  */
5022
- region: 'cn' | 'us' | 'de' | 'gb';
5871
+ id: string;
5023
5872
  /**
5024
- * Specific session ID to get (defaults to user session)
5873
+ * Region code for tenant context
5025
5874
  */
5026
- sessionId?: string;
5875
+ region: 'cn' | 'us' | 'de' | 'gb';
5027
5876
  };
5028
- type NlpControllerGetSessionResponse = unknown;
5029
- type DashboardControllerGetNetWorthData = {
5877
+ type PriceControllerFindOneResponse = PriceResponseDto;
5878
+ type PriceControllerUpdateData = {
5030
5879
  /**
5031
- * Date for balance calculation (ISO 8601 format)
5880
+ * Price ID
5032
5881
  */
5033
- date?: string;
5882
+ id: string;
5034
5883
  /**
5035
5884
  * Region code for tenant context
5036
5885
  */
5037
5886
  region: 'cn' | 'us' | 'de' | 'gb';
5887
+ requestBody: UpdateBeanPriceDto;
5038
5888
  };
5039
- type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5040
- type DashboardControllerGetAccountsData = {
5889
+ type PriceControllerUpdateResponse = PriceResponseDto;
5890
+ type PriceControllerDeleteData = {
5041
5891
  /**
5042
- * Date for balance calculation (ISO 8601 format)
5892
+ * Price ID
5043
5893
  */
5044
- date?: string;
5894
+ id: string;
5045
5895
  /**
5046
- * Grouping strategy
5896
+ * Region code for tenant context
5047
5897
  */
5048
- groupBy?: 'platform' | 'assetClass';
5898
+ region: 'cn' | 'us' | 'de' | 'gb';
5899
+ };
5900
+ type PriceControllerDeleteResponse = void;
5901
+ type PriceControllerBulkCreateData = {
5049
5902
  /**
5050
5903
  * Region code for tenant context
5051
5904
  */
5052
5905
  region: 'cn' | 'us' | 'de' | 'gb';
5906
+ requestBody: Array<string>;
5053
5907
  };
5054
- type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto;
5055
- type DashboardControllerGetCashFlowData = {
5908
+ type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
5909
+ type ReportingControllerGetPortfolioTrendsData = {
5056
5910
  /**
5057
- * Period in YYYY-MM format
5911
+ * Data granularity
5058
5912
  */
5059
- period: string;
5913
+ granularity?: 'day' | 'week' | 'month';
5914
+ /**
5915
+ * Time period
5916
+ */
5917
+ period?: '1m' | '3m' | '6m' | '1y';
5060
5918
  /**
5061
5919
  * Region code for tenant context
5062
5920
  */
5063
5921
  region: 'cn' | 'us' | 'de' | 'gb';
5064
5922
  };
5065
- type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5066
- type ReportingControllerGetPortfolioTrendsData = {
5923
+ type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
5924
+ type ReportingControllerGetCashFlowTrendsData = {
5067
5925
  /**
5068
- * Data granularity
5926
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
5069
5927
  */
5070
5928
  granularity?: 'day' | 'week' | 'month';
5071
5929
  /**
@@ -5077,7 +5935,7 @@ type ReportingControllerGetPortfolioTrendsData = {
5077
5935
  */
5078
5936
  region: 'cn' | 'us' | 'de' | 'gb';
5079
5937
  };
5080
- type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
5938
+ type ReportingControllerGetCashFlowTrendsResponse = CashFlowTrendsResponseDto;
5081
5939
  type ReportingControllerGenerateSnapshotData = {
5082
5940
  /**
5083
5941
  * Region code for tenant context
@@ -5332,6 +6190,29 @@ type $OpenApiTs = {
5332
6190
  };
5333
6191
  };
5334
6192
  };
6193
+ '/api/v1/{region}/bean/transactions/{id}/correct': {
6194
+ post: {
6195
+ req: TransactionControllerCorrectData;
6196
+ res: {
6197
+ /**
6198
+ * Corrected transaction created
6199
+ */
6200
+ 201: TransactionDetailDto;
6201
+ /**
6202
+ * Original transaction not found
6203
+ */
6204
+ 404: ApiProblemResponseDto;
6205
+ /**
6206
+ * Original no longer ACTIVE (concurrent modification)
6207
+ */
6208
+ 409: ApiProblemResponseDto;
6209
+ /**
6210
+ * Pipeline validation failed (does not balance, invalid accounts)
6211
+ */
6212
+ 422: ApiProblemResponseDto;
6213
+ };
6214
+ };
6215
+ };
5335
6216
  '/api/v1/{region}/bean/transactions/tags': {
5336
6217
  get: {
5337
6218
  req: TransactionControllerSuggestTagsData;
@@ -6465,6 +7346,102 @@ type $OpenApiTs = {
6465
7346
  };
6466
7347
  };
6467
7348
  };
7349
+ '/api/v1/{region}/bean/events': {
7350
+ post: {
7351
+ req: EventControllerCreateData;
7352
+ res: {
7353
+ /**
7354
+ * Life event created successfully
7355
+ */
7356
+ 201: EventResponseDto;
7357
+ /**
7358
+ * Life event already exists for this (userId, type, date) combination
7359
+ */
7360
+ 409: unknown;
7361
+ };
7362
+ };
7363
+ get: {
7364
+ req: EventControllerFindAllData;
7365
+ res: {
7366
+ /**
7367
+ * Life events retrieved successfully
7368
+ */
7369
+ 200: EventListResponseDto;
7370
+ };
7371
+ };
7372
+ };
7373
+ '/api/v1/{region}/bean/events/{id}': {
7374
+ get: {
7375
+ req: EventControllerFindOneData;
7376
+ res: {
7377
+ /**
7378
+ * Life event retrieved successfully
7379
+ */
7380
+ 200: EventResponseDto;
7381
+ /**
7382
+ * Life event not found
7383
+ */
7384
+ 404: unknown;
7385
+ };
7386
+ };
7387
+ put: {
7388
+ req: EventControllerUpdateData;
7389
+ res: {
7390
+ /**
7391
+ * Life event updated successfully
7392
+ */
7393
+ 200: EventResponseDto;
7394
+ /**
7395
+ * If-Match header is not a valid ISO 8601 date
7396
+ */
7397
+ 400: unknown;
7398
+ /**
7399
+ * Life event not found
7400
+ */
7401
+ 404: unknown;
7402
+ /**
7403
+ * Updated event conflicts with an existing (userId, type, date) combination
7404
+ */
7405
+ 409: unknown;
7406
+ /**
7407
+ * If-Match precondition failed (updatedAt mismatch)
7408
+ */
7409
+ 412: unknown;
7410
+ };
7411
+ };
7412
+ delete: {
7413
+ req: EventControllerDeleteData;
7414
+ res: {
7415
+ /**
7416
+ * Life event deleted successfully
7417
+ */
7418
+ 204: void;
7419
+ /**
7420
+ * Life event not found
7421
+ */
7422
+ 404: unknown;
7423
+ };
7424
+ };
7425
+ };
7426
+ '/api/v1/{region}/bean/events/{id}/slice': {
7427
+ get: {
7428
+ req: EventControllerGetSliceData;
7429
+ res: {
7430
+ /**
7431
+ * Time-series sliced by the life event range
7432
+ */
7433
+ 200: unknown;
7434
+ /**
7435
+ * accountPattern query param is empty
7436
+ */
7437
+ 400: unknown;
7438
+ /**
7439
+ * Life event not found
7440
+ */
7441
+ 404: unknown;
7442
+ };
7443
+ };
7444
+ };
6468
7445
  '/api/v1/{region}/bean/export/beancount': {
6469
7446
  get: {
6470
7447
  res: {
@@ -6755,6 +7732,32 @@ type $OpenApiTs = {
6755
7732
  };
6756
7733
  };
6757
7734
  };
7735
+ '/api/v1/{region}/bean/import/parser-coverage-miss': {
7736
+ post: {
7737
+ req: TelemetryControllerReportCoverageMissData;
7738
+ res: {
7739
+ /**
7740
+ * Coverage miss report received
7741
+ */
7742
+ 200: unknown;
7743
+ /**
7744
+ * Unauthorized
7745
+ */
7746
+ 401: unknown;
7747
+ };
7748
+ };
7749
+ };
7750
+ '/api/v1/{region}/bean/import/parser-coverage-metrics': {
7751
+ get: {
7752
+ req: TelemetryControllerGetCoverageMetricsData;
7753
+ res: {
7754
+ /**
7755
+ * Coverage metrics
7756
+ */
7757
+ 200: unknown;
7758
+ };
7759
+ };
7760
+ };
6758
7761
  '/api/v1/{region}/bean/nlp/process': {
6759
7762
  post: {
6760
7763
  req: NlpControllerProcessNaturalLanguageData;
@@ -6824,7 +7827,7 @@ type $OpenApiTs = {
6824
7827
  /**
6825
7828
  * Accounts retrieved successfully. Response type depends on groupBy parameter.
6826
7829
  */
6827
- 200: AccountsResponseDto | AssetClassAccountsResponseDto;
7830
+ 200: AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
6828
7831
  /**
6829
7832
  * User not authenticated
6830
7833
  */
@@ -6851,6 +7854,109 @@ type $OpenApiTs = {
6851
7854
  };
6852
7855
  };
6853
7856
  };
7857
+ '/api/v1/{region}/investment/holdings/pnl': {
7858
+ get: {
7859
+ req: HoldingPnlControllerGetHoldingPnlData;
7860
+ res: {
7861
+ /**
7862
+ * Holding P&L retrieved successfully
7863
+ */
7864
+ 200: HoldingPnlResponseDto;
7865
+ /**
7866
+ * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
7867
+ */
7868
+ 400: unknown;
7869
+ /**
7870
+ * User not authenticated
7871
+ */
7872
+ 401: unknown;
7873
+ };
7874
+ };
7875
+ };
7876
+ '/api/v1/{region}/bean/prices': {
7877
+ post: {
7878
+ req: PriceControllerCreateData;
7879
+ res: {
7880
+ /**
7881
+ * Price created successfully
7882
+ */
7883
+ 201: PriceResponseDto;
7884
+ /**
7885
+ * Currency or quoteCurrency commodity not found
7886
+ */
7887
+ 404: unknown;
7888
+ /**
7889
+ * Price already exists for this currency pair and date
7890
+ */
7891
+ 409: unknown;
7892
+ };
7893
+ };
7894
+ get: {
7895
+ req: PriceControllerFindAllData;
7896
+ res: {
7897
+ /**
7898
+ * Prices retrieved successfully
7899
+ */
7900
+ 200: PriceListResponseDto;
7901
+ };
7902
+ };
7903
+ };
7904
+ '/api/v1/{region}/bean/prices/{id}': {
7905
+ get: {
7906
+ req: PriceControllerFindOneData;
7907
+ res: {
7908
+ /**
7909
+ * Price retrieved successfully
7910
+ */
7911
+ 200: PriceResponseDto;
7912
+ /**
7913
+ * Price not found
7914
+ */
7915
+ 404: unknown;
7916
+ };
7917
+ };
7918
+ put: {
7919
+ req: PriceControllerUpdateData;
7920
+ res: {
7921
+ /**
7922
+ * Price updated successfully
7923
+ */
7924
+ 200: PriceResponseDto;
7925
+ /**
7926
+ * Price not found
7927
+ */
7928
+ 404: unknown;
7929
+ /**
7930
+ * Updated price conflicts with existing price
7931
+ */
7932
+ 409: unknown;
7933
+ };
7934
+ };
7935
+ delete: {
7936
+ req: PriceControllerDeleteData;
7937
+ res: {
7938
+ /**
7939
+ * Price deleted successfully
7940
+ */
7941
+ 204: void;
7942
+ /**
7943
+ * Price not found
7944
+ */
7945
+ 404: unknown;
7946
+ };
7947
+ };
7948
+ };
7949
+ '/api/v1/{region}/bean/prices/bulk': {
7950
+ post: {
7951
+ req: PriceControllerBulkCreateData;
7952
+ res: {
7953
+ /**
7954
+ * Prices created successfully
7955
+ */
7956
+ 201: Array<PriceResponseDto>;
7957
+ };
7958
+ };
7959
+ };
6854
7960
  '/api/v1/{region}/reporting/portfolio/trends': {
6855
7961
  get: {
6856
7962
  req: ReportingControllerGetPortfolioTrendsData;
@@ -6866,6 +7972,21 @@ type $OpenApiTs = {
6866
7972
  };
6867
7973
  };
6868
7974
  };
7975
+ '/api/v1/{region}/reporting/cash-flow/trends': {
7976
+ get: {
7977
+ req: ReportingControllerGetCashFlowTrendsData;
7978
+ res: {
7979
+ /**
7980
+ * Cash-flow trends retrieved successfully
7981
+ */
7982
+ 200: CashFlowTrendsResponseDto;
7983
+ /**
7984
+ * User not authenticated
7985
+ */
7986
+ 401: unknown;
7987
+ };
7988
+ };
7989
+ };
6869
7990
  '/api/v1/{region}/reporting/snapshots/generate': {
6870
7991
  post: {
6871
7992
  req: ReportingControllerGenerateSnapshotData;
@@ -7197,6 +8318,17 @@ declare class BeanTransactionsService {
7197
8318
  * @throws ApiError
7198
8319
  */
7199
8320
  static transactionControllerCreateBatch(data: TransactionControllerCreateBatchData): CancelablePromise<TransactionControllerCreateBatchResponse>;
8321
+ /**
8322
+ * Correct (supersede) a transaction
8323
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
8324
+ * @param data The data for the request.
8325
+ * @param data.id Original transaction ID to correct
8326
+ * @param data.region Region code for tenant context
8327
+ * @param data.requestBody
8328
+ * @returns TransactionDetailDto Corrected transaction created
8329
+ * @throws ApiError
8330
+ */
8331
+ static transactionControllerCorrect(data: TransactionControllerCorrectData): CancelablePromise<TransactionControllerCorrectResponse>;
7200
8332
  /**
7201
8333
  * Suggest transaction tags
7202
8334
  * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
@@ -7363,7 +8495,7 @@ declare class ProviderSyncService {
7363
8495
  *
7364
8496
  * @param data The data for the request.
7365
8497
  * @param data.providerName Provider name
7366
- * @param data.region Region code
8498
+ * @param data.region Region code for tenant context
7367
8499
  * @param data.requestBody
7368
8500
  * @returns ProviderSyncResponseDto Sync completed successfully
7369
8501
  * @throws ApiError
@@ -7476,4 +8608,4 @@ type OpenAPIConfig = {
7476
8608
  };
7477
8609
  declare const OpenAPI: OpenAPIConfig;
7478
8610
 
7479
- 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 TagSuggestionDto, type TagSuggestionsResponseDto, 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 TransactionControllerSuggestTagsData, type TransactionControllerSuggestTagsResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleControllerBulkCreateData, type TransactionRuleControllerBulkCreateResponse, type TransactionRuleControllerCreateData, type TransactionRuleControllerCreateResponse, type TransactionRuleControllerDeleteData, type TransactionRuleControllerDeleteResponse, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerUpdateData, type TransactionRuleControllerUpdateResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UndoResultDto, type UpdateAccountDto, type UpdateCommodityDto, type UpdateConfigDataDto, type UpdateImporterConfigDto, type UpdateMapperDefaultsDto, type UpdatePayeeDto, type UpdatePayeeProfileDto, type UpdatePlatformDto, type UpdatePropertyDto, type UpdateRecurringRuleDto, type UpdateTransactionDto, type UpdateTransactionRuleDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type 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 };
8611
+ 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 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 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 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 };