@firela/api-types 0.0.0-canary.14a6ef5a → 0.0.0-canary.19fa1e7e

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
  */
@@ -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
@@ -1038,17 +1172,17 @@ type ResolveResultDto = {
1038
1172
  [key: string]: string;
1039
1173
  };
1040
1174
  /**
1041
- * Resolution ID for undo
1175
+ * Resolution ID for undo. Absent when the resolver rejected the decision (review stayed PENDING).
1042
1176
  */
1043
- resolutionId: string;
1177
+ resolutionId?: string;
1044
1178
  /**
1045
1179
  * Whether this decision can be undone
1046
1180
  */
1047
- canUndo: boolean;
1181
+ canUndo?: boolean;
1048
1182
  /**
1049
1183
  * Deadline for undo (24h from resolution)
1050
1184
  */
1051
- undoDeadline: string;
1185
+ undoDeadline?: string;
1052
1186
  /**
1053
1187
  * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1054
1188
  */
@@ -2555,6 +2689,92 @@ type UpdatePropertyDto = {
2555
2689
  */
2556
2690
  value: string;
2557
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
+ };
2558
2778
  type FileImportDto = {
2559
2779
  /**
2560
2780
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -2936,6 +3156,7 @@ type SupportedProvidersResponseDto = {
2936
3156
  providers: Array<string>;
2937
3157
  };
2938
3158
  type ParserTelemetryReportDto = unknown;
3159
+ type UncoveredFormatMissDto = unknown;
2939
3160
  type ProcessNlpDto = {
2940
3161
  /**
2941
3162
  * Natural language text describing a transaction (Chinese)
@@ -3670,7 +3891,15 @@ type AccountItemWithAssetClassDto = {
3670
3891
  * Risk level
3671
3892
  */
3672
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';
3673
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';
3674
3903
  type AssetClassGroupDto = {
3675
3904
  /**
3676
3905
  * Asset class name
@@ -3732,6 +3961,12 @@ type AssetClassSummaryDto = {
3732
3961
  * Exchange rate warnings
3733
3962
  */
3734
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
+ };
3735
3970
  };
3736
3971
  type AssetClassAccountsResponseDto = {
3737
3972
  /**
@@ -3742,6 +3977,54 @@ type AssetClassAccountsResponseDto = {
3742
3977
  * Summary statistics
3743
3978
  */
3744
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>;
3745
4028
  };
3746
4029
  type CashFlowByCurrencyDto = {
3747
4030
  /**
@@ -3819,94 +4102,487 @@ type CashFlowResponseDto = {
3819
4102
  */
3820
4103
  warnings?: Array<ExchangeRateWarningDto>;
3821
4104
  };
3822
- type CurrencyBalanceDto = {
4105
+ type CategoryGroupDto = {
3823
4106
  /**
3824
- * ISO 4217 currency code
4107
+ * Functional category (account-path Group segment); regional and universal account paths merge under it
3825
4108
  */
3826
- currency: string;
4109
+ category: string;
3827
4110
  /**
3828
- * Balance amount
4111
+ * Converted total expense in base currency
3829
4112
  */
3830
- balance: string;
3831
- };
3832
- type TimeSeriesPointDto = {
4113
+ totalExpense: string;
3833
4114
  /**
3834
- * Date in YYYY-MM-DD format
4115
+ * Share of grand total (0-100); 0 when grand total is 0
3835
4116
  */
3836
- date: string;
4117
+ sharePct: number;
3837
4118
  /**
3838
- * Value at this date (in base currency)
4119
+ * Raw (unconverted) expense per currency
3839
4120
  */
3840
- value: string;
4121
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
3841
4122
  /**
3842
- * Change from previous point
4123
+ * Converted total in base currency (omitted when FX missing for all currencies in this category)
3843
4124
  */
3844
- change?: {
3845
- [key: string]: unknown;
3846
- };
4125
+ convertedBalance?: string;
4126
+ };
4127
+ type ExpensesByCategorySummaryDto = {
3847
4128
  /**
3848
- * Multi-currency breakdown for this point
4129
+ * Total expense across all categories (converted; convertible categories only)
3849
4130
  */
3850
- byCurrency?: Array<CurrencyBalanceDto>;
3851
- };
3852
- type TrendSummaryDto = {
4131
+ totalExpense: string;
3853
4132
  /**
3854
- * Value at start of period
4133
+ * Number of categories
3855
4134
  */
3856
- startValue: string;
4135
+ categoryCount: number;
4136
+ };
4137
+ type ExpensesByCategoryResponseDto = {
3857
4138
  /**
3858
- * Value at end of period
4139
+ * Period requested
3859
4140
  */
3860
- endValue: string;
4141
+ period: string;
3861
4142
  /**
3862
- * Total change over period
4143
+ * Base currency for converted values
3863
4144
  */
3864
- totalChange: string;
4145
+ baseCurrency: string;
3865
4146
  /**
3866
- * Total change percentage
4147
+ * Expense groups by functional category, sorted by converted total desc
3867
4148
  */
3868
- totalChangePercentage: string;
3869
- };
3870
- type MultiCurrencyPointDto = {
4149
+ groups: Array<CategoryGroupDto>;
3871
4150
  /**
3872
- * Date in YYYY-MM-DD format
4151
+ * Summary statistics
3873
4152
  */
3874
- date: string;
4153
+ summary: ExpensesByCategorySummaryDto;
3875
4154
  /**
3876
- * Balances by currency
4155
+ * Exchange rate warnings (e.g. missing rate for a currency)
3877
4156
  */
3878
- byCurrency: Array<CurrencyBalanceDto>;
4157
+ warnings?: Array<ExchangeRateWarningDto>;
3879
4158
  };
3880
- type PortfolioTrendsResponseDto = {
4159
+ type MonetaryDto = {
3881
4160
  /**
3882
- * Time series data points
4161
+ * Amount (Decimal string)
3883
4162
  */
3884
- series: Array<TimeSeriesPointDto>;
4163
+ amount: string;
3885
4164
  /**
3886
- * Period summary
4165
+ * ISO 4217 currency
3887
4166
  */
3888
- summary: TrendSummaryDto;
4167
+ currency: string;
3889
4168
  /**
3890
- * Period requested
4169
+ * Converted to user base currency (Decimal string)
3891
4170
  */
3892
- period: string;
4171
+ baseCcyEquivalent?: {
4172
+ [key: string]: unknown;
4173
+ } | null;
4174
+ };
4175
+ type CurrentPriceDto = {
3893
4176
  /**
3894
- * Data granularity
4177
+ * Price amount (Decimal string)
3895
4178
  */
3896
- granularity: string;
4179
+ amount: string;
3897
4180
  /**
3898
- * Base currency for converted values
4181
+ * Price currency (ISO 4217)
3899
4182
  */
3900
4183
  currency: string;
3901
4184
  /**
3902
- * Multi-currency time series (each point has currency breakdown)
4185
+ * Price date (ISO 8601)
3903
4186
  */
3904
- byCurrency?: Array<MultiCurrencyPointDto>;
4187
+ date: string;
4188
+ /**
4189
+ * Price source
4190
+ */
4191
+ source: 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4192
+ };
4193
+ /**
4194
+ * Price source
4195
+ */
4196
+ type source3 = 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4197
+ type FxRateDto = {
4198
+ from: string;
4199
+ to: string;
4200
+ /**
4201
+ * FX rate (Decimal string)
4202
+ */
4203
+ rate: string;
4204
+ /**
4205
+ * Rate date (ISO 8601)
4206
+ */
4207
+ date: string;
4208
+ };
4209
+ type HoldingPnlRowDto = {
4210
+ /**
4211
+ * Account UUID
4212
+ */
4213
+ accountId: string;
4214
+ /**
4215
+ * Full account path
4216
+ */
4217
+ accountPath: string;
4218
+ /**
4219
+ * Account settlement currency (ISO 4217), from cost currency
4220
+ */
4221
+ accountCcy?: {
4222
+ [key: string]: unknown;
4223
+ } | null;
4224
+ /**
4225
+ * Broker type derived from Platform.type
4226
+ */
4227
+ brokerType?: {
4228
+ [key: string]: unknown;
4229
+ } | null;
4230
+ /**
4231
+ * Commodity symbol
4232
+ */
4233
+ symbol: string;
4234
+ /**
4235
+ * Chart segment token (libs/common resolver)
4236
+ */
4237
+ chartToken: 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4238
+ assetClass: string;
4239
+ assetSubClass?: {
4240
+ [key: string]: unknown;
4241
+ } | null;
4242
+ /**
4243
+ * Net held units (Decimal string)
4244
+ */
4245
+ units: string;
4246
+ /**
4247
+ * Average cost per unit; null when cost currency conflicts or no cost
4248
+ */
4249
+ averageCostPerUnit?: MonetaryDto | null;
4250
+ /**
4251
+ * Cost basis of held units
4252
+ */
4253
+ costBasis?: MonetaryDto | null;
4254
+ /**
4255
+ * Market value at asOf price
4256
+ */
4257
+ marketValue?: MonetaryDto | null;
4258
+ /**
4259
+ * Price used for market value
4260
+ */
4261
+ currentPrice?: CurrentPriceDto | null;
4262
+ /**
4263
+ * Unrealized P&L in base currency (Decimal string); null when any FX/price missing
4264
+ */
4265
+ unrealizedPnlBase?: {
4266
+ [key: string]: unknown;
4267
+ } | null;
4268
+ /**
4269
+ * Unrealized P&L % (Decimal string)
4270
+ */
4271
+ unrealizedPnlPct?: {
4272
+ [key: string]: unknown;
4273
+ } | null;
4274
+ /**
4275
+ * Historical FX rate applied to cost basis
4276
+ */
4277
+ costFxRate?: FxRateDto | null;
4278
+ /**
4279
+ * FX rate applied to market value
4280
+ */
4281
+ marketFxRate?: FxRateDto | null;
4282
+ /**
4283
+ * Share of invested assets % (Decimal string); only for invested chartTokens
4284
+ */
4285
+ pctOfInvestedAssets?: {
4286
+ [key: string]: unknown;
4287
+ } | null;
4288
+ /**
4289
+ * 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
4290
+ */
4291
+ realizedPnl?: MonetaryDto | null;
4292
+ };
4293
+ /**
4294
+ * Chart segment token (libs/common resolver)
4295
+ */
4296
+ type chartToken = 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4297
+ type HoldingPnlWarningDto = {
4298
+ /**
4299
+ * Warning type
4300
+ */
4301
+ type: 'MISSING_COST_FX_RATE' | 'MISSING_MARKET_FX_RATE' | 'MISSING_SALE_PRICE' | 'MISSING_REALIZED_FX_RATE' | 'OVERSOLD_LOTS' | 'NO_PRICE' | 'MIXED_COST_CURRENCY';
4302
+ symbol?: {
4303
+ [key: string]: unknown;
4304
+ } | null;
4305
+ accountId?: {
4306
+ [key: string]: unknown;
4307
+ } | null;
4308
+ currency?: {
4309
+ [key: string]: unknown;
4310
+ } | null;
4311
+ };
4312
+ /**
4313
+ * Warning type
4314
+ */
4315
+ type type4 = 'MISSING_COST_FX_RATE' | 'MISSING_MARKET_FX_RATE' | 'MISSING_SALE_PRICE' | 'MISSING_REALIZED_FX_RATE' | 'OVERSOLD_LOTS' | 'NO_PRICE' | 'MIXED_COST_CURRENCY';
4316
+ type HoldingPnlResponseDto = {
4317
+ asOfDate: string;
4318
+ baseCurrency: string;
4319
+ /**
4320
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4321
+ */
4322
+ method: 'average' | 'FIFO';
4323
+ rows: Array<HoldingPnlRowDto>;
4324
+ warnings: Array<HoldingPnlWarningDto>;
4325
+ };
4326
+ /**
4327
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4328
+ */
4329
+ type method = 'average' | 'FIFO';
4330
+ type CreateBeanPriceDto = {
4331
+ /**
4332
+ * Currency being priced (e.g., USD, AAPL, BTC)
4333
+ */
4334
+ currency: string;
4335
+ /**
4336
+ * Quote currency (pricing currency, e.g., CNY, EUR)
4337
+ */
4338
+ quoteCurrency: string;
4339
+ /**
4340
+ * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
4341
+ */
4342
+ amount: number;
4343
+ /**
4344
+ * Price date (ISO 8601 format)
4345
+ */
4346
+ date: string;
4347
+ /**
4348
+ * Metadata (validated by Zod schema, max field lengths enforced)
4349
+ */
4350
+ metadata?: {
4351
+ [key: string]: unknown;
4352
+ };
4353
+ };
4354
+ type PriceResponseDto = {
4355
+ /**
4356
+ * Unique identifier
4357
+ */
4358
+ id: string;
4359
+ /**
4360
+ * User ID (owner of the price)
4361
+ */
4362
+ userId: string;
4363
+ /**
4364
+ * Currency being priced (e.g., USD, AAPL, BTC)
4365
+ */
4366
+ currency: string;
4367
+ /**
4368
+ * Quote currency (pricing currency, e.g., USD, CNY)
4369
+ */
4370
+ quoteCurrency: string;
4371
+ /**
4372
+ * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
4373
+ */
4374
+ amount: number;
4375
+ /**
4376
+ * Price date (ISO 8601 format). Represents the date this price was valid.
4377
+ */
4378
+ date: string;
4379
+ /**
4380
+ * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
4381
+ */
4382
+ meta: {
4383
+ [key: string]: unknown;
4384
+ };
4385
+ /**
4386
+ * Creation timestamp
4387
+ */
4388
+ createdAt: string;
4389
+ /**
4390
+ * Last update timestamp
4391
+ */
4392
+ updatedAt: string;
4393
+ };
4394
+ type PriceListResponseDto = {
4395
+ /**
4396
+ * List of prices
4397
+ */
4398
+ items: Array<PriceResponseDto>;
4399
+ /**
4400
+ * Total number of prices
4401
+ */
4402
+ total: number;
4403
+ };
4404
+ type UpdateBeanPriceDto = {
4405
+ /**
4406
+ * Currency being priced
4407
+ */
4408
+ currency?: string;
4409
+ /**
4410
+ * Quote currency (pricing currency)
4411
+ */
4412
+ quoteCurrency?: string;
4413
+ /**
4414
+ * Price amount (MUST be >= 0 per Beancount spec)
4415
+ */
4416
+ amount?: number;
4417
+ /**
4418
+ * Price date (ISO 8601 format)
4419
+ */
4420
+ date?: string;
4421
+ /**
4422
+ * Metadata
4423
+ */
4424
+ metadata?: {
4425
+ [key: string]: unknown;
4426
+ };
4427
+ };
4428
+ type CurrencyBalanceDto = {
4429
+ /**
4430
+ * ISO 4217 currency code
4431
+ */
4432
+ currency: string;
4433
+ /**
4434
+ * Balance amount
4435
+ */
4436
+ balance: string;
4437
+ };
4438
+ type TimeSeriesPointDto = {
4439
+ /**
4440
+ * Date in YYYY-MM-DD format
4441
+ */
4442
+ date: string;
4443
+ /**
4444
+ * Value at this date (in base currency)
4445
+ */
4446
+ value: string;
4447
+ /**
4448
+ * Change from previous point
4449
+ */
4450
+ change?: {
4451
+ [key: string]: unknown;
4452
+ };
4453
+ /**
4454
+ * Total assets at this date (in base currency)
4455
+ */
4456
+ assets?: string;
4457
+ /**
4458
+ * Total liabilities at this date (in base currency)
4459
+ */
4460
+ liabilities?: string;
4461
+ /**
4462
+ * Multi-currency breakdown for this point
4463
+ */
4464
+ byCurrency?: Array<CurrencyBalanceDto>;
4465
+ };
4466
+ type TrendSummaryDto = {
4467
+ /**
4468
+ * Value at start of period
4469
+ */
4470
+ startValue: string;
4471
+ /**
4472
+ * Value at end of period
4473
+ */
4474
+ endValue: string;
4475
+ /**
4476
+ * Total change over period
4477
+ */
4478
+ totalChange: string;
4479
+ /**
4480
+ * Total change percentage
4481
+ */
4482
+ totalChangePercentage: string;
4483
+ };
4484
+ type MultiCurrencyPointDto = {
4485
+ /**
4486
+ * Date in YYYY-MM-DD format
4487
+ */
4488
+ date: string;
4489
+ /**
4490
+ * Balances by currency
4491
+ */
4492
+ byCurrency: Array<CurrencyBalanceDto>;
4493
+ };
4494
+ type PortfolioTrendsResponseDto = {
4495
+ /**
4496
+ * Time series data points
4497
+ */
4498
+ series: Array<TimeSeriesPointDto>;
4499
+ /**
4500
+ * Period summary
4501
+ */
4502
+ summary: TrendSummaryDto;
4503
+ /**
4504
+ * Period requested
4505
+ */
4506
+ period: string;
4507
+ /**
4508
+ * Data granularity
4509
+ */
4510
+ granularity: string;
4511
+ /**
4512
+ * Base currency for converted values
4513
+ */
4514
+ currency: string;
4515
+ /**
4516
+ * Multi-currency time series (each point has currency breakdown)
4517
+ */
4518
+ byCurrency?: Array<MultiCurrencyPointDto>;
3905
4519
  /**
3906
4520
  * Exchange rate warnings
3907
4521
  */
3908
4522
  warnings?: Array<ExchangeRateWarningDto>;
3909
4523
  };
4524
+ type CashFlowPointDto = {
4525
+ /**
4526
+ * Month key (YYYY-MM)
4527
+ */
4528
+ month: string;
4529
+ /**
4530
+ * Income in base currency (absolute, converted)
4531
+ */
4532
+ income: string;
4533
+ /**
4534
+ * Expense in base currency (absolute, converted)
4535
+ */
4536
+ expense: string;
4537
+ /**
4538
+ * netSavings = income − expense (savings positive)
4539
+ */
4540
+ netSavings: string;
4541
+ };
4542
+ type CashFlowTrendSummaryDto = {
4543
+ /**
4544
+ * Total income across the period
4545
+ */
4546
+ totalIncome: string;
4547
+ /**
4548
+ * Total expense across the period
4549
+ */
4550
+ totalExpense: string;
4551
+ /**
4552
+ * income − expense across the period
4553
+ */
4554
+ totalNetSavings: string;
4555
+ /**
4556
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
4557
+ */
4558
+ averageMonthlyNetSavings: string;
4559
+ };
4560
+ type CashFlowTrendsResponseDto = {
4561
+ /**
4562
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
4563
+ */
4564
+ series: Array<CashFlowPointDto>;
4565
+ /**
4566
+ * Period totals
4567
+ */
4568
+ summary: CashFlowTrendSummaryDto;
4569
+ /**
4570
+ * Period requested
4571
+ */
4572
+ period: string;
4573
+ /**
4574
+ * Data granularity (v1 returns month buckets)
4575
+ */
4576
+ granularity: string;
4577
+ /**
4578
+ * Base currency for converted values
4579
+ */
4580
+ currency: string;
4581
+ /**
4582
+ * Exchange rate warnings (e.g. missing rate for a currency)
4583
+ */
4584
+ warnings?: Array<ExchangeRateWarningDto>;
4585
+ };
3910
4586
  type GenerateSnapshotBody = unknown;
3911
4587
  type GenerateSnapshotResponse = unknown;
3912
4588
  type BackfillSnapshotsBody = unknown;
@@ -4063,6 +4739,10 @@ type TransactionControllerListData = {
4063
4739
  * Filter by account ID (transactions with postings to this account)
4064
4740
  */
4065
4741
  accountId?: string;
4742
+ /**
4743
+ * Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
4744
+ */
4745
+ category?: string;
4066
4746
  /**
4067
4747
  * Filter by start date (inclusive), format: YYYY-MM-DD
4068
4748
  */
@@ -4101,6 +4781,18 @@ type TransactionControllerCreateBatchData = {
4101
4781
  requestBody: BatchCreateTransactionDto;
4102
4782
  };
4103
4783
  type TransactionControllerCreateBatchResponse = BatchTransactionResponseDto;
4784
+ type TransactionControllerCorrectData = {
4785
+ /**
4786
+ * Original transaction ID to correct
4787
+ */
4788
+ id: string;
4789
+ /**
4790
+ * Region code for tenant context
4791
+ */
4792
+ region: 'cn' | 'us' | 'de' | 'gb';
4793
+ requestBody: CorrectTransactionDto;
4794
+ };
4795
+ type TransactionControllerCorrectResponse = TransactionDetailDto;
4104
4796
  type TransactionControllerSuggestTagsData = {
4105
4797
  /**
4106
4798
  * Max suggestions (1-100, default 10)
@@ -4848,6 +5540,92 @@ type PropertyControllerDeleteData = {
4848
5540
  key: string;
4849
5541
  };
4850
5542
  type PropertyControllerDeleteResponse = void;
5543
+ type EventControllerCreateData = {
5544
+ /**
5545
+ * Region code for tenant context (decorative for life events)
5546
+ */
5547
+ region: 'cn' | 'us' | 'de' | 'gb';
5548
+ requestBody: CreateBeanEventDto;
5549
+ };
5550
+ type EventControllerCreateResponse = EventResponseDto;
5551
+ type EventControllerFindAllData = {
5552
+ /**
5553
+ * Filter life events from this date (ISO 8601 format)
5554
+ */
5555
+ from?: string;
5556
+ /**
5557
+ * Number of items per page (default: 20, max: 100)
5558
+ */
5559
+ limit?: number;
5560
+ /**
5561
+ * Page number for pagination (default: 1)
5562
+ */
5563
+ page?: number;
5564
+ /**
5565
+ * Search term for description (case-insensitive partial match)
5566
+ */
5567
+ q?: string;
5568
+ /**
5569
+ * Region code for tenant context (decorative for life events)
5570
+ */
5571
+ region: 'cn' | 'us' | 'de' | 'gb';
5572
+ /**
5573
+ * Filter life events to this date (ISO 8601 format)
5574
+ */
5575
+ to?: string;
5576
+ /**
5577
+ * Filter by life event type (exact match)
5578
+ */
5579
+ type?: string;
5580
+ };
5581
+ type EventControllerFindAllResponse = EventListResponseDto;
5582
+ type EventControllerFindOneData = {
5583
+ /**
5584
+ * Life event ID
5585
+ */
5586
+ id: string;
5587
+ /**
5588
+ * Region code for tenant context (decorative for life events)
5589
+ */
5590
+ region: 'cn' | 'us' | 'de' | 'gb';
5591
+ };
5592
+ type EventControllerFindOneResponse = EventResponseDto;
5593
+ type EventControllerUpdateData = {
5594
+ /**
5595
+ * Life event ID
5596
+ */
5597
+ id: string;
5598
+ /**
5599
+ * Region code for tenant context (decorative for life events)
5600
+ */
5601
+ region: 'cn' | 'us' | 'de' | 'gb';
5602
+ requestBody: UpdateBeanEventDto;
5603
+ };
5604
+ type EventControllerUpdateResponse = EventResponseDto;
5605
+ type EventControllerDeleteData = {
5606
+ /**
5607
+ * Life event ID
5608
+ */
5609
+ id: string;
5610
+ /**
5611
+ * Region code for tenant context (decorative for life events)
5612
+ */
5613
+ region: 'cn' | 'us' | 'de' | 'gb';
5614
+ };
5615
+ type EventControllerDeleteResponse = void;
5616
+ type EventControllerGetSliceData = {
5617
+ accountPattern: string;
5618
+ granularity: string;
5619
+ /**
5620
+ * Life event ID
5621
+ */
5622
+ id: string;
5623
+ /**
5624
+ * Region code for tenant context (decorative for life events)
5625
+ */
5626
+ region: 'cn' | 'us' | 'de' | 'gb';
5627
+ };
5628
+ type EventControllerGetSliceResponse = unknown;
4851
5629
  type ExportControllerExportBeancountResponse = unknown;
4852
5630
  type FileImportControllerImportFileData = {
4853
5631
  /**
@@ -4965,9 +5743,9 @@ type ProviderSyncControllerSyncData = {
4965
5743
  */
4966
5744
  providerName: 'plaid' | 'teller' | 'truelayer' | 'gocardless' | 'simplefin' | 'yodlee' | 'beancount-direct' | 'parsed-bill';
4967
5745
  /**
4968
- * Region code
5746
+ * Region code for tenant context
4969
5747
  */
4970
- region: unknown;
5748
+ region: 'cn' | 'us' | 'de' | 'gb';
4971
5749
  requestBody: ProviderSyncDto;
4972
5750
  };
4973
5751
  type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
@@ -4997,79 +5775,236 @@ type TelemetryControllerReportTelemetryData = {
4997
5775
  requestBody: ParserTelemetryReportDto;
4998
5776
  };
4999
5777
  type TelemetryControllerReportTelemetryResponse = unknown;
5778
+ type TelemetryControllerReportCoverageMissData = {
5779
+ /**
5780
+ * Region code for tenant context
5781
+ */
5782
+ region: 'cn' | 'us' | 'de' | 'gb';
5783
+ requestBody: UncoveredFormatMissDto;
5784
+ };
5785
+ type TelemetryControllerReportCoverageMissResponse = unknown;
5786
+ type TelemetryControllerGetCoverageMetricsData = {
5787
+ /**
5788
+ * Region code for tenant context
5789
+ */
5790
+ region: 'cn' | 'us' | 'de' | 'gb';
5791
+ /**
5792
+ * Top-N uncovered formats (default 10)
5793
+ */
5794
+ topN?: unknown;
5795
+ };
5796
+ type TelemetryControllerGetCoverageMetricsResponse = unknown;
5000
5797
  type NlpControllerProcessNaturalLanguageData = {
5001
5798
  /**
5002
- * Region code for tenant context
5799
+ * Region code for tenant context
5800
+ */
5801
+ region: 'cn' | 'us' | 'de' | 'gb';
5802
+ /**
5803
+ * Natural language transaction input with optional session ID
5804
+ */
5805
+ requestBody: ProcessNlpDto;
5806
+ };
5807
+ type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5808
+ type NlpControllerClearSessionData = {
5809
+ /**
5810
+ * Region code for tenant context
5811
+ */
5812
+ region: 'cn' | 'us' | 'de' | 'gb';
5813
+ /**
5814
+ * Specific session ID to clear (defaults to user session)
5815
+ */
5816
+ sessionId?: string;
5817
+ };
5818
+ type NlpControllerClearSessionResponse = void;
5819
+ type NlpControllerGetSessionData = {
5820
+ /**
5821
+ * Region code for tenant context
5822
+ */
5823
+ region: 'cn' | 'us' | 'de' | 'gb';
5824
+ /**
5825
+ * Specific session ID to get (defaults to user session)
5826
+ */
5827
+ sessionId?: string;
5828
+ };
5829
+ type NlpControllerGetSessionResponse = unknown;
5830
+ type DashboardControllerGetNetWorthData = {
5831
+ /**
5832
+ * Date for balance calculation (ISO 8601 format)
5833
+ */
5834
+ date?: string;
5835
+ /**
5836
+ * Region code for tenant context
5837
+ */
5838
+ region: 'cn' | 'us' | 'de' | 'gb';
5839
+ };
5840
+ type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5841
+ type DashboardControllerGetAccountsData = {
5842
+ /**
5843
+ * Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
5844
+ */
5845
+ accountId?: string;
5846
+ /**
5847
+ * Date for balance calculation (ISO 8601 format)
5848
+ */
5849
+ date?: string;
5850
+ /**
5851
+ * Grouping strategy
5852
+ */
5853
+ groupBy?: 'platform' | 'assetClass' | 'holdingAssetClass' | 'holdingAssetClassByAccount';
5854
+ /**
5855
+ * Region code for tenant context
5856
+ */
5857
+ region: 'cn' | 'us' | 'de' | 'gb';
5858
+ };
5859
+ type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
5860
+ type DashboardControllerGetCashFlowData = {
5861
+ /**
5862
+ * Period in YYYY-MM format
5863
+ */
5864
+ period: string;
5865
+ /**
5866
+ * Region code for tenant context
5867
+ */
5868
+ region: 'cn' | 'us' | 'de' | 'gb';
5869
+ };
5870
+ type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5871
+ type DashboardControllerGetExpensesData = {
5872
+ /**
5873
+ * Grouping strategy
5874
+ */
5875
+ groupBy?: 'category';
5876
+ /**
5877
+ * Time window (1m = current calendar month)
5878
+ */
5879
+ period?: '1m' | '3m' | '6m' | '1y';
5880
+ /**
5881
+ * Region code for tenant context
5882
+ */
5883
+ region: 'cn' | 'us' | 'de' | 'gb';
5884
+ };
5885
+ type DashboardControllerGetExpensesResponse = ExpensesByCategoryResponseDto;
5886
+ type HoldingPnlControllerGetHoldingPnlData = {
5887
+ /**
5888
+ * Scope to a single account
5889
+ */
5890
+ accountId?: string;
5891
+ /**
5892
+ * As-of date (ISO 8601), defaults to today
5893
+ */
5894
+ asOf?: string;
5895
+ /**
5896
+ * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
5897
+ */
5898
+ method?: 'FIFO' | 'average';
5899
+ /**
5900
+ * Region code for tenant context
5901
+ */
5902
+ region: 'cn' | 'us' | 'de' | 'gb';
5903
+ };
5904
+ type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
5905
+ type PriceControllerCreateData = {
5906
+ /**
5907
+ * Region code for tenant context
5908
+ */
5909
+ region: 'cn' | 'us' | 'de' | 'gb';
5910
+ requestBody: CreateBeanPriceDto;
5911
+ };
5912
+ type PriceControllerCreateResponse = PriceResponseDto;
5913
+ type PriceControllerFindAllData = {
5914
+ /**
5915
+ * Filter by currency (e.g., BTC, AAPL, USD)
5916
+ */
5917
+ currency?: string;
5918
+ /**
5919
+ * Filter prices from this date (ISO 8601 format)
5920
+ */
5921
+ dateFrom?: string;
5922
+ /**
5923
+ * Filter prices to this date (ISO 8601 format)
5924
+ */
5925
+ dateTo?: string;
5926
+ /**
5927
+ * Number of items per page (default: 20, max: 100)
5928
+ */
5929
+ limit?: number;
5930
+ /**
5931
+ * Page number for pagination (default: 1)
5003
5932
  */
5004
- region: 'cn' | 'us' | 'de' | 'gb';
5933
+ page?: number;
5005
5934
  /**
5006
- * Natural language transaction input with optional session ID
5935
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
5007
5936
  */
5008
- requestBody: ProcessNlpDto;
5009
- };
5010
- type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5011
- type NlpControllerClearSessionData = {
5937
+ quoteCurrency?: string;
5012
5938
  /**
5013
5939
  * Region code for tenant context
5014
5940
  */
5015
5941
  region: 'cn' | 'us' | 'de' | 'gb';
5016
5942
  /**
5017
- * Specific session ID to clear (defaults to user session)
5943
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
5018
5944
  */
5019
- sessionId?: string;
5945
+ search?: string;
5020
5946
  };
5021
- type NlpControllerClearSessionResponse = void;
5022
- type NlpControllerGetSessionData = {
5947
+ type PriceControllerFindAllResponse = PriceListResponseDto;
5948
+ type PriceControllerFindOneData = {
5023
5949
  /**
5024
- * Region code for tenant context
5950
+ * Price ID
5025
5951
  */
5026
- region: 'cn' | 'us' | 'de' | 'gb';
5952
+ id: string;
5027
5953
  /**
5028
- * Specific session ID to get (defaults to user session)
5954
+ * Region code for tenant context
5029
5955
  */
5030
- sessionId?: string;
5956
+ region: 'cn' | 'us' | 'de' | 'gb';
5031
5957
  };
5032
- type NlpControllerGetSessionResponse = unknown;
5033
- type DashboardControllerGetNetWorthData = {
5958
+ type PriceControllerFindOneResponse = PriceResponseDto;
5959
+ type PriceControllerUpdateData = {
5034
5960
  /**
5035
- * Date for balance calculation (ISO 8601 format)
5961
+ * Price ID
5036
5962
  */
5037
- date?: string;
5963
+ id: string;
5038
5964
  /**
5039
5965
  * Region code for tenant context
5040
5966
  */
5041
5967
  region: 'cn' | 'us' | 'de' | 'gb';
5968
+ requestBody: UpdateBeanPriceDto;
5042
5969
  };
5043
- type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5044
- type DashboardControllerGetAccountsData = {
5970
+ type PriceControllerUpdateResponse = PriceResponseDto;
5971
+ type PriceControllerDeleteData = {
5045
5972
  /**
5046
- * Date for balance calculation (ISO 8601 format)
5973
+ * Price ID
5047
5974
  */
5048
- date?: string;
5975
+ id: string;
5049
5976
  /**
5050
- * Grouping strategy
5977
+ * Region code for tenant context
5051
5978
  */
5052
- groupBy?: 'platform' | 'assetClass';
5979
+ region: 'cn' | 'us' | 'de' | 'gb';
5980
+ };
5981
+ type PriceControllerDeleteResponse = void;
5982
+ type PriceControllerBulkCreateData = {
5053
5983
  /**
5054
5984
  * Region code for tenant context
5055
5985
  */
5056
5986
  region: 'cn' | 'us' | 'de' | 'gb';
5987
+ requestBody: Array<string>;
5057
5988
  };
5058
- type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto;
5059
- type DashboardControllerGetCashFlowData = {
5989
+ type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
5990
+ type ReportingControllerGetPortfolioTrendsData = {
5060
5991
  /**
5061
- * Period in YYYY-MM format
5992
+ * Data granularity
5062
5993
  */
5063
- period: string;
5994
+ granularity?: 'day' | 'week' | 'month';
5995
+ /**
5996
+ * Time period
5997
+ */
5998
+ period?: '1m' | '3m' | '6m' | '1y';
5064
5999
  /**
5065
6000
  * Region code for tenant context
5066
6001
  */
5067
6002
  region: 'cn' | 'us' | 'de' | 'gb';
5068
6003
  };
5069
- type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5070
- type ReportingControllerGetPortfolioTrendsData = {
6004
+ type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
6005
+ type ReportingControllerGetCashFlowTrendsData = {
5071
6006
  /**
5072
- * Data granularity
6007
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
5073
6008
  */
5074
6009
  granularity?: 'day' | 'week' | 'month';
5075
6010
  /**
@@ -5081,7 +6016,7 @@ type ReportingControllerGetPortfolioTrendsData = {
5081
6016
  */
5082
6017
  region: 'cn' | 'us' | 'de' | 'gb';
5083
6018
  };
5084
- type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
6019
+ type ReportingControllerGetCashFlowTrendsResponse = CashFlowTrendsResponseDto;
5085
6020
  type ReportingControllerGenerateSnapshotData = {
5086
6021
  /**
5087
6022
  * Region code for tenant context
@@ -5336,6 +6271,29 @@ type $OpenApiTs = {
5336
6271
  };
5337
6272
  };
5338
6273
  };
6274
+ '/api/v1/{region}/bean/transactions/{id}/correct': {
6275
+ post: {
6276
+ req: TransactionControllerCorrectData;
6277
+ res: {
6278
+ /**
6279
+ * Corrected transaction created
6280
+ */
6281
+ 201: TransactionDetailDto;
6282
+ /**
6283
+ * Original transaction not found
6284
+ */
6285
+ 404: ApiProblemResponseDto;
6286
+ /**
6287
+ * Original no longer ACTIVE (concurrent modification)
6288
+ */
6289
+ 409: ApiProblemResponseDto;
6290
+ /**
6291
+ * Pipeline validation failed (does not balance, invalid accounts)
6292
+ */
6293
+ 422: ApiProblemResponseDto;
6294
+ };
6295
+ };
6296
+ };
5339
6297
  '/api/v1/{region}/bean/transactions/tags': {
5340
6298
  get: {
5341
6299
  req: TransactionControllerSuggestTagsData;
@@ -6469,6 +7427,102 @@ type $OpenApiTs = {
6469
7427
  };
6470
7428
  };
6471
7429
  };
7430
+ '/api/v1/{region}/bean/events': {
7431
+ post: {
7432
+ req: EventControllerCreateData;
7433
+ res: {
7434
+ /**
7435
+ * Life event created successfully
7436
+ */
7437
+ 201: EventResponseDto;
7438
+ /**
7439
+ * Life event already exists for this (userId, type, date) combination
7440
+ */
7441
+ 409: unknown;
7442
+ };
7443
+ };
7444
+ get: {
7445
+ req: EventControllerFindAllData;
7446
+ res: {
7447
+ /**
7448
+ * Life events retrieved successfully
7449
+ */
7450
+ 200: EventListResponseDto;
7451
+ };
7452
+ };
7453
+ };
7454
+ '/api/v1/{region}/bean/events/{id}': {
7455
+ get: {
7456
+ req: EventControllerFindOneData;
7457
+ res: {
7458
+ /**
7459
+ * Life event retrieved successfully
7460
+ */
7461
+ 200: EventResponseDto;
7462
+ /**
7463
+ * Life event not found
7464
+ */
7465
+ 404: unknown;
7466
+ };
7467
+ };
7468
+ put: {
7469
+ req: EventControllerUpdateData;
7470
+ res: {
7471
+ /**
7472
+ * Life event updated successfully
7473
+ */
7474
+ 200: EventResponseDto;
7475
+ /**
7476
+ * If-Match header is not a valid ISO 8601 date
7477
+ */
7478
+ 400: unknown;
7479
+ /**
7480
+ * Life event not found
7481
+ */
7482
+ 404: unknown;
7483
+ /**
7484
+ * Updated event conflicts with an existing (userId, type, date) combination
7485
+ */
7486
+ 409: unknown;
7487
+ /**
7488
+ * If-Match precondition failed (updatedAt mismatch)
7489
+ */
7490
+ 412: unknown;
7491
+ };
7492
+ };
7493
+ delete: {
7494
+ req: EventControllerDeleteData;
7495
+ res: {
7496
+ /**
7497
+ * Life event deleted successfully
7498
+ */
7499
+ 204: void;
7500
+ /**
7501
+ * Life event not found
7502
+ */
7503
+ 404: unknown;
7504
+ };
7505
+ };
7506
+ };
7507
+ '/api/v1/{region}/bean/events/{id}/slice': {
7508
+ get: {
7509
+ req: EventControllerGetSliceData;
7510
+ res: {
7511
+ /**
7512
+ * Time-series sliced by the life event range
7513
+ */
7514
+ 200: unknown;
7515
+ /**
7516
+ * accountPattern query param is empty
7517
+ */
7518
+ 400: unknown;
7519
+ /**
7520
+ * Life event not found
7521
+ */
7522
+ 404: unknown;
7523
+ };
7524
+ };
7525
+ };
6472
7526
  '/api/v1/{region}/bean/export/beancount': {
6473
7527
  get: {
6474
7528
  res: {
@@ -6759,6 +7813,32 @@ type $OpenApiTs = {
6759
7813
  };
6760
7814
  };
6761
7815
  };
7816
+ '/api/v1/{region}/bean/import/parser-coverage-miss': {
7817
+ post: {
7818
+ req: TelemetryControllerReportCoverageMissData;
7819
+ res: {
7820
+ /**
7821
+ * Coverage miss report received
7822
+ */
7823
+ 200: unknown;
7824
+ /**
7825
+ * Unauthorized
7826
+ */
7827
+ 401: unknown;
7828
+ };
7829
+ };
7830
+ };
7831
+ '/api/v1/{region}/bean/import/parser-coverage-metrics': {
7832
+ get: {
7833
+ req: TelemetryControllerGetCoverageMetricsData;
7834
+ res: {
7835
+ /**
7836
+ * Coverage metrics
7837
+ */
7838
+ 200: unknown;
7839
+ };
7840
+ };
7841
+ };
6762
7842
  '/api/v1/{region}/bean/nlp/process': {
6763
7843
  post: {
6764
7844
  req: NlpControllerProcessNaturalLanguageData;
@@ -6828,7 +7908,7 @@ type $OpenApiTs = {
6828
7908
  /**
6829
7909
  * Accounts retrieved successfully. Response type depends on groupBy parameter.
6830
7910
  */
6831
- 200: AccountsResponseDto | AssetClassAccountsResponseDto;
7911
+ 200: AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
6832
7912
  /**
6833
7913
  * User not authenticated
6834
7914
  */
@@ -6855,6 +7935,128 @@ type $OpenApiTs = {
6855
7935
  };
6856
7936
  };
6857
7937
  };
7938
+ '/api/v1/{region}/dashboard/expenses': {
7939
+ get: {
7940
+ req: DashboardControllerGetExpensesData;
7941
+ res: {
7942
+ /**
7943
+ * Expenses retrieved successfully
7944
+ */
7945
+ 200: ExpensesByCategoryResponseDto;
7946
+ /**
7947
+ * Invalid groupBy or period
7948
+ */
7949
+ 400: unknown;
7950
+ /**
7951
+ * User not authenticated
7952
+ */
7953
+ 401: unknown;
7954
+ };
7955
+ };
7956
+ };
7957
+ '/api/v1/{region}/investment/holdings/pnl': {
7958
+ get: {
7959
+ req: HoldingPnlControllerGetHoldingPnlData;
7960
+ res: {
7961
+ /**
7962
+ * Holding P&L retrieved successfully
7963
+ */
7964
+ 200: HoldingPnlResponseDto;
7965
+ /**
7966
+ * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
7967
+ */
7968
+ 400: unknown;
7969
+ /**
7970
+ * User not authenticated
7971
+ */
7972
+ 401: unknown;
7973
+ };
7974
+ };
7975
+ };
7976
+ '/api/v1/{region}/bean/prices': {
7977
+ post: {
7978
+ req: PriceControllerCreateData;
7979
+ res: {
7980
+ /**
7981
+ * Price created successfully
7982
+ */
7983
+ 201: PriceResponseDto;
7984
+ /**
7985
+ * Currency or quoteCurrency commodity not found
7986
+ */
7987
+ 404: unknown;
7988
+ /**
7989
+ * Price already exists for this currency pair and date
7990
+ */
7991
+ 409: unknown;
7992
+ };
7993
+ };
7994
+ get: {
7995
+ req: PriceControllerFindAllData;
7996
+ res: {
7997
+ /**
7998
+ * Prices retrieved successfully
7999
+ */
8000
+ 200: PriceListResponseDto;
8001
+ };
8002
+ };
8003
+ };
8004
+ '/api/v1/{region}/bean/prices/{id}': {
8005
+ get: {
8006
+ req: PriceControllerFindOneData;
8007
+ res: {
8008
+ /**
8009
+ * Price retrieved successfully
8010
+ */
8011
+ 200: PriceResponseDto;
8012
+ /**
8013
+ * Price not found
8014
+ */
8015
+ 404: unknown;
8016
+ };
8017
+ };
8018
+ put: {
8019
+ req: PriceControllerUpdateData;
8020
+ res: {
8021
+ /**
8022
+ * Price updated successfully
8023
+ */
8024
+ 200: PriceResponseDto;
8025
+ /**
8026
+ * Price not found
8027
+ */
8028
+ 404: unknown;
8029
+ /**
8030
+ * Updated price conflicts with existing price
8031
+ */
8032
+ 409: unknown;
8033
+ };
8034
+ };
8035
+ delete: {
8036
+ req: PriceControllerDeleteData;
8037
+ res: {
8038
+ /**
8039
+ * Price deleted successfully
8040
+ */
8041
+ 204: void;
8042
+ /**
8043
+ * Price not found
8044
+ */
8045
+ 404: unknown;
8046
+ };
8047
+ };
8048
+ };
8049
+ '/api/v1/{region}/bean/prices/bulk': {
8050
+ post: {
8051
+ req: PriceControllerBulkCreateData;
8052
+ res: {
8053
+ /**
8054
+ * Prices created successfully
8055
+ */
8056
+ 201: Array<PriceResponseDto>;
8057
+ };
8058
+ };
8059
+ };
6858
8060
  '/api/v1/{region}/reporting/portfolio/trends': {
6859
8061
  get: {
6860
8062
  req: ReportingControllerGetPortfolioTrendsData;
@@ -6870,6 +8072,21 @@ type $OpenApiTs = {
6870
8072
  };
6871
8073
  };
6872
8074
  };
8075
+ '/api/v1/{region}/reporting/cash-flow/trends': {
8076
+ get: {
8077
+ req: ReportingControllerGetCashFlowTrendsData;
8078
+ res: {
8079
+ /**
8080
+ * Cash-flow trends retrieved successfully
8081
+ */
8082
+ 200: CashFlowTrendsResponseDto;
8083
+ /**
8084
+ * User not authenticated
8085
+ */
8086
+ 401: unknown;
8087
+ };
8088
+ };
8089
+ };
6873
8090
  '/api/v1/{region}/reporting/snapshots/generate': {
6874
8091
  post: {
6875
8092
  req: ReportingControllerGenerateSnapshotData;
@@ -7186,6 +8403,7 @@ declare class BeanTransactionsService {
7186
8403
  * @param data.status Filter by transaction status
7187
8404
  * @param data.search Search in narration and payee fields (max 200 chars)
7188
8405
  * @param data.accountId Filter by account ID (transactions with postings to this account)
8406
+ * @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
7189
8407
  * @returns TransactionListResponseDto Transaction list
7190
8408
  * @throws ApiError
7191
8409
  */
@@ -7201,6 +8419,17 @@ declare class BeanTransactionsService {
7201
8419
  * @throws ApiError
7202
8420
  */
7203
8421
  static transactionControllerCreateBatch(data: TransactionControllerCreateBatchData): CancelablePromise<TransactionControllerCreateBatchResponse>;
8422
+ /**
8423
+ * Correct (supersede) a transaction
8424
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
8425
+ * @param data The data for the request.
8426
+ * @param data.id Original transaction ID to correct
8427
+ * @param data.region Region code for tenant context
8428
+ * @param data.requestBody
8429
+ * @returns TransactionDetailDto Corrected transaction created
8430
+ * @throws ApiError
8431
+ */
8432
+ static transactionControllerCorrect(data: TransactionControllerCorrectData): CancelablePromise<TransactionControllerCorrectResponse>;
7204
8433
  /**
7205
8434
  * Suggest transaction tags
7206
8435
  * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
@@ -7367,7 +8596,7 @@ declare class ProviderSyncService {
7367
8596
  *
7368
8597
  * @param data The data for the request.
7369
8598
  * @param data.providerName Provider name
7370
- * @param data.region Region code
8599
+ * @param data.region Region code for tenant context
7371
8600
  * @param data.requestBody
7372
8601
  * @returns ProviderSyncResponseDto Sync completed successfully
7373
8602
  * @throws ApiError
@@ -7480,4 +8709,4 @@ type OpenAPIConfig = {
7480
8709
  };
7481
8710
  declare const OpenAPI: OpenAPIConfig;
7482
8711
 
7483
- 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 action2, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type conflictStrategy, type dataSource, type equitySubType, type flag, type flag2, type frequency, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type value, type viewMode };
8712
+ 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 };