@firela/api-types 0.0.0-canary.78c2840b → 0.0.0-canary.7a8f5374

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
  /**
@@ -571,9 +645,9 @@ type PostingDetailDto = {
571
645
  */
572
646
  accountId: string;
573
647
  /**
574
- * Account name
648
+ * Fully-qualified Beancount account path
575
649
  */
576
- accountName: string;
650
+ account: string;
577
651
  /**
578
652
  * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
579
653
  */
@@ -594,6 +668,10 @@ type PostingDetailDto = {
594
668
  * Cost date
595
669
  */
596
670
  costDate?: string;
671
+ /**
672
+ * Booking-resolved cost (mirrors engine Cost). Undefined when the posting has no cost basis.
673
+ */
674
+ cost?: CostDetailDto;
597
675
  /**
598
676
  * Price amount
599
677
  */
@@ -1094,17 +1172,17 @@ type ResolveResultDto = {
1094
1172
  [key: string]: string;
1095
1173
  };
1096
1174
  /**
1097
- * Resolution ID for undo
1175
+ * Resolution ID for undo. Absent when the resolver rejected the decision (review stayed PENDING).
1098
1176
  */
1099
- resolutionId: string;
1177
+ resolutionId?: string;
1100
1178
  /**
1101
1179
  * Whether this decision can be undone
1102
1180
  */
1103
- canUndo: boolean;
1181
+ canUndo?: boolean;
1104
1182
  /**
1105
1183
  * Deadline for undo (24h from resolution)
1106
1184
  */
1107
- undoDeadline: string;
1185
+ undoDeadline?: string;
1108
1186
  /**
1109
1187
  * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1110
1188
  */
@@ -2611,6 +2689,92 @@ type UpdatePropertyDto = {
2611
2689
  */
2612
2690
  value: string;
2613
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
+ };
2614
2778
  type FileImportDto = {
2615
2779
  /**
2616
2780
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -2992,6 +3156,7 @@ type SupportedProvidersResponseDto = {
2992
3156
  providers: Array<string>;
2993
3157
  };
2994
3158
  type ParserTelemetryReportDto = unknown;
3159
+ type UncoveredFormatMissDto = unknown;
2995
3160
  type ProcessNlpDto = {
2996
3161
  /**
2997
3162
  * Natural language text describing a transaction (Chinese)
@@ -3726,7 +3891,15 @@ type AccountItemWithAssetClassDto = {
3726
3891
  * Risk level
3727
3892
  */
3728
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';
3729
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';
3730
3903
  type AssetClassGroupDto = {
3731
3904
  /**
3732
3905
  * Asset class name
@@ -3788,6 +3961,12 @@ type AssetClassSummaryDto = {
3788
3961
  * Exchange rate warnings
3789
3962
  */
3790
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
+ };
3791
3970
  };
3792
3971
  type AssetClassAccountsResponseDto = {
3793
3972
  /**
@@ -3798,6 +3977,54 @@ type AssetClassAccountsResponseDto = {
3798
3977
  * Summary statistics
3799
3978
  */
3800
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>;
3801
4028
  };
3802
4029
  type CashFlowByCurrencyDto = {
3803
4030
  /**
@@ -3875,153 +4102,546 @@ type CashFlowResponseDto = {
3875
4102
  */
3876
4103
  warnings?: Array<ExchangeRateWarningDto>;
3877
4104
  };
3878
- type CurrencyBalanceDto = {
4105
+ type CategoryGroupDto = {
3879
4106
  /**
3880
- * ISO 4217 currency code
4107
+ * Functional category (account-path Group segment); regional and universal account paths merge under it
3881
4108
  */
3882
- currency: string;
4109
+ category: string;
3883
4110
  /**
3884
- * Balance amount
4111
+ * Converted total for this category in base currency (expense amount when flow=expense, income amount when flow=income)
3885
4112
  */
3886
- balance: string;
3887
- };
3888
- type TimeSeriesPointDto = {
4113
+ totalExpense: string;
3889
4114
  /**
3890
- * Date in YYYY-MM-DD format
4115
+ * Share of grand total (0-100); 0 when grand total is 0
3891
4116
  */
3892
- date: string;
4117
+ sharePct: number;
3893
4118
  /**
3894
- * Value at this date (in base currency)
4119
+ * Raw (unconverted) expense per currency
3895
4120
  */
3896
- value: string;
4121
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
3897
4122
  /**
3898
- * Change from previous point
4123
+ * Converted total in base currency (omitted when FX missing for all currencies in this category)
3899
4124
  */
3900
- change?: {
3901
- [key: string]: unknown;
3902
- };
4125
+ convertedBalance?: string;
4126
+ };
4127
+ type ExpensesByCategorySummaryDto = {
3903
4128
  /**
3904
- * Multi-currency breakdown for this point
4129
+ * Total across all categories, converted (convertible categories only); expense totals when flow=expense, income totals when flow=income
3905
4130
  */
3906
- byCurrency?: Array<CurrencyBalanceDto>;
3907
- };
3908
- type TrendSummaryDto = {
4131
+ totalExpense: string;
3909
4132
  /**
3910
- * Value at start of period
4133
+ * Number of categories
3911
4134
  */
3912
- startValue: string;
4135
+ categoryCount: number;
4136
+ };
4137
+ type ExpensesByCategoryResponseDto = {
3913
4138
  /**
3914
- * Value at end of period
4139
+ * Period requested
3915
4140
  */
3916
- endValue: string;
4141
+ period: string;
3917
4142
  /**
3918
- * Total change over period
4143
+ * Base currency for converted values
3919
4144
  */
3920
- totalChange: string;
4145
+ baseCurrency: string;
3921
4146
  /**
3922
- * Total change percentage
4147
+ * Expense groups by functional category, sorted by converted total desc
3923
4148
  */
3924
- totalChangePercentage: string;
3925
- };
3926
- type MultiCurrencyPointDto = {
4149
+ groups: Array<CategoryGroupDto>;
3927
4150
  /**
3928
- * Date in YYYY-MM-DD format
4151
+ * Summary statistics
3929
4152
  */
3930
- date: string;
4153
+ summary: ExpensesByCategorySummaryDto;
3931
4154
  /**
3932
- * Balances by currency
4155
+ * Exchange rate warnings (e.g. missing rate for a currency)
3933
4156
  */
3934
- byCurrency: Array<CurrencyBalanceDto>;
4157
+ warnings?: Array<ExchangeRateWarningDto>;
3935
4158
  };
3936
- type PortfolioTrendsResponseDto = {
4159
+ type MonetaryDto = {
3937
4160
  /**
3938
- * Time series data points
4161
+ * Amount (Decimal string)
3939
4162
  */
3940
- series: Array<TimeSeriesPointDto>;
4163
+ amount: string;
3941
4164
  /**
3942
- * Period summary
4165
+ * ISO 4217 currency
3943
4166
  */
3944
- summary: TrendSummaryDto;
4167
+ currency: string;
3945
4168
  /**
3946
- * Period requested
4169
+ * Converted to user base currency (Decimal string)
3947
4170
  */
3948
- period: string;
4171
+ baseCcyEquivalent?: {
4172
+ [key: string]: unknown;
4173
+ } | null;
4174
+ };
4175
+ type CurrentPriceDto = {
3949
4176
  /**
3950
- * Data granularity
4177
+ * Price amount (Decimal string)
3951
4178
  */
3952
- granularity: string;
4179
+ amount: string;
3953
4180
  /**
3954
- * Base currency for converted values
4181
+ * Price currency (ISO 4217)
3955
4182
  */
3956
4183
  currency: string;
3957
4184
  /**
3958
- * Multi-currency time series (each point has currency breakdown)
4185
+ * Price date (ISO 8601)
3959
4186
  */
3960
- byCurrency?: Array<MultiCurrencyPointDto>;
4187
+ date: string;
3961
4188
  /**
3962
- * Exchange rate warnings
4189
+ * Price source
3963
4190
  */
3964
- warnings?: Array<ExchangeRateWarningDto>;
4191
+ source: 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
3965
4192
  };
3966
- type GenerateSnapshotBody = unknown;
3967
- type GenerateSnapshotResponse = unknown;
3968
- type BackfillSnapshotsBody = unknown;
3969
- type BackfillSnapshotsResponse = unknown;
3970
- type AnonymousLoginDto = {
4193
+ /**
4194
+ * Price source
4195
+ */
4196
+ type source3 = 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4197
+ type FxRateDto = {
4198
+ from: string;
4199
+ to: string;
3971
4200
  /**
3972
- * Access token for anonymous login
4201
+ * FX rate (Decimal string)
3973
4202
  */
3974
- accessToken: string;
3975
- };
3976
- type AccountControllerCreateData = {
4203
+ rate: string;
3977
4204
  /**
3978
- * Region code for tenant context
4205
+ * Rate date (ISO 8601)
3979
4206
  */
3980
- region: 'cn' | 'us' | 'de' | 'gb';
3981
- requestBody: CreateAccountDto;
4207
+ date: string;
3982
4208
  };
3983
- type AccountControllerCreateResponse = AccountResponseDto;
3984
- type AccountControllerFindAllData = {
4209
+ type HoldingPnlRowDto = {
3985
4210
  /**
3986
- * Filter by custom (user-created) accounts only
4211
+ * Account UUID
3987
4212
  */
3988
- isCustom?: boolean;
4213
+ accountId: string;
3989
4214
  /**
3990
- * Maximum number of results
4215
+ * Full account path
3991
4216
  */
3992
- limit?: number;
4217
+ accountPath: string;
3993
4218
  /**
3994
- * Number of results to skip
4219
+ * Account settlement currency (ISO 4217), from cost currency
3995
4220
  */
3996
- offset?: number;
4221
+ accountCcy?: {
4222
+ [key: string]: unknown;
4223
+ } | null;
3997
4224
  /**
3998
- * Region code for tenant context
4225
+ * Broker type derived from Platform.type
3999
4226
  */
4000
- region: 'cn' | 'us' | 'de' | 'gb';
4227
+ brokerType?: {
4228
+ [key: string]: unknown;
4229
+ } | null;
4001
4230
  /**
4002
- * Search term for path or i18nKey
4231
+ * Commodity symbol
4003
4232
  */
4004
- search?: string;
4233
+ symbol: string;
4005
4234
  /**
4006
- * Filter by status
4235
+ * Chart segment token (libs/common resolver)
4007
4236
  */
4008
- status?: 'OPEN' | 'CLOSED' | 'SUSPENDED';
4237
+ chartToken: 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4238
+ assetClass: string;
4239
+ assetSubClass?: {
4240
+ [key: string]: unknown;
4241
+ } | null;
4009
4242
  /**
4010
- * Filter by account type
4243
+ * Net held units (Decimal string)
4011
4244
  */
4012
- type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4013
- };
4014
- type AccountControllerFindAllResponse = AccountListResponseDto;
4015
- type AccountControllerFindOneData = {
4245
+ units: string;
4016
4246
  /**
4017
- * Account UUID
4247
+ * Average cost per unit; null when cost currency conflicts or no cost
4018
4248
  */
4019
- id: string;
4249
+ averageCostPerUnit?: MonetaryDto | null;
4020
4250
  /**
4021
- * Region code for tenant context
4251
+ * Cost basis of held units
4022
4252
  */
4023
- region: 'cn' | 'us' | 'de' | 'gb';
4024
- };
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>;
4519
+ /**
4520
+ * Exchange rate warnings
4521
+ */
4522
+ warnings?: Array<ExchangeRateWarningDto>;
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
+ };
4586
+ type GenerateSnapshotBody = unknown;
4587
+ type GenerateSnapshotResponse = unknown;
4588
+ type BackfillSnapshotsBody = unknown;
4589
+ type BackfillSnapshotsResponse = unknown;
4590
+ type AnonymousLoginDto = {
4591
+ /**
4592
+ * Access token for anonymous login
4593
+ */
4594
+ accessToken: string;
4595
+ };
4596
+ type AccountControllerCreateData = {
4597
+ /**
4598
+ * Region code for tenant context
4599
+ */
4600
+ region: 'cn' | 'us' | 'de' | 'gb';
4601
+ requestBody: CreateAccountDto;
4602
+ };
4603
+ type AccountControllerCreateResponse = AccountResponseDto;
4604
+ type AccountControllerFindAllData = {
4605
+ /**
4606
+ * Filter by custom (user-created) accounts only
4607
+ */
4608
+ isCustom?: boolean;
4609
+ /**
4610
+ * Maximum number of results
4611
+ */
4612
+ limit?: number;
4613
+ /**
4614
+ * Number of results to skip
4615
+ */
4616
+ offset?: number;
4617
+ /**
4618
+ * Region code for tenant context
4619
+ */
4620
+ region: 'cn' | 'us' | 'de' | 'gb';
4621
+ /**
4622
+ * Search term for path or i18nKey
4623
+ */
4624
+ search?: string;
4625
+ /**
4626
+ * Filter by status
4627
+ */
4628
+ status?: 'OPEN' | 'CLOSED' | 'SUSPENDED';
4629
+ /**
4630
+ * Filter by account type
4631
+ */
4632
+ type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4633
+ };
4634
+ type AccountControllerFindAllResponse = AccountListResponseDto;
4635
+ type AccountControllerFindOneData = {
4636
+ /**
4637
+ * Account UUID
4638
+ */
4639
+ id: string;
4640
+ /**
4641
+ * Region code for tenant context
4642
+ */
4643
+ region: 'cn' | 'us' | 'de' | 'gb';
4644
+ };
4025
4645
  type AccountControllerFindOneResponse = AccountResponseDto;
4026
4646
  type AccountControllerUpdateData = {
4027
4647
  /**
@@ -4119,6 +4739,10 @@ type TransactionControllerListData = {
4119
4739
  * Filter by account ID (transactions with postings to this account)
4120
4740
  */
4121
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;
4122
4746
  /**
4123
4747
  * Filter by start date (inclusive), format: YYYY-MM-DD
4124
4748
  */
@@ -4916,6 +5540,92 @@ type PropertyControllerDeleteData = {
4916
5540
  key: string;
4917
5541
  };
4918
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;
4919
5629
  type ExportControllerExportBeancountResponse = unknown;
4920
5630
  type FileImportControllerImportFileData = {
4921
5631
  /**
@@ -5033,9 +5743,9 @@ type ProviderSyncControllerSyncData = {
5033
5743
  */
5034
5744
  providerName: 'plaid' | 'teller' | 'truelayer' | 'gocardless' | 'simplefin' | 'yodlee' | 'beancount-direct' | 'parsed-bill';
5035
5745
  /**
5036
- * Region code
5746
+ * Region code for tenant context
5037
5747
  */
5038
- region: unknown;
5748
+ region: 'cn' | 'us' | 'de' | 'gb';
5039
5749
  requestBody: ProviderSyncDto;
5040
5750
  };
5041
5751
  type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
@@ -5048,93 +5758,239 @@ type ProviderSyncControllerGetSupportedProvidersData = {
5048
5758
  type ProviderSyncControllerGetSupportedProvidersResponse = SupportedProvidersResponseDto;
5049
5759
  type ProviderSyncControllerIsProviderSupportedData = {
5050
5760
  /**
5051
- * Provider name to check
5761
+ * Provider name to check
5762
+ */
5763
+ providerName: string;
5764
+ /**
5765
+ * Region code for tenant context
5766
+ */
5767
+ region: 'cn' | 'us' | 'de' | 'gb';
5768
+ };
5769
+ type ProviderSyncControllerIsProviderSupportedResponse = unknown;
5770
+ type TelemetryControllerReportTelemetryData = {
5771
+ /**
5772
+ * Region code for tenant context
5773
+ */
5774
+ region: 'cn' | 'us' | 'de' | 'gb';
5775
+ requestBody: ParserTelemetryReportDto;
5776
+ };
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;
5797
+ type NlpControllerProcessNaturalLanguageData = {
5798
+ /**
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
+ * Account root to aggregate (expense → ^Expenses:, income → ^Income:)
5874
+ */
5875
+ flow?: 'expense' | 'income';
5876
+ /**
5877
+ * Grouping strategy
5878
+ */
5879
+ groupBy?: 'category';
5880
+ /**
5881
+ * Time window (1m = current calendar month)
5882
+ */
5883
+ period?: '1m' | '3m' | '6m' | '1y';
5884
+ /**
5885
+ * Region code for tenant context
5886
+ */
5887
+ region: 'cn' | 'us' | 'de' | 'gb';
5888
+ };
5889
+ type DashboardControllerGetExpensesResponse = ExpensesByCategoryResponseDto;
5890
+ type HoldingPnlControllerGetHoldingPnlData = {
5891
+ /**
5892
+ * Scope to a single account
5893
+ */
5894
+ accountId?: string;
5895
+ /**
5896
+ * As-of date (ISO 8601), defaults to today
5052
5897
  */
5053
- providerName: string;
5898
+ asOf?: string;
5899
+ /**
5900
+ * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
5901
+ */
5902
+ method?: 'FIFO' | 'average';
5054
5903
  /**
5055
5904
  * Region code for tenant context
5056
5905
  */
5057
5906
  region: 'cn' | 'us' | 'de' | 'gb';
5058
5907
  };
5059
- type ProviderSyncControllerIsProviderSupportedResponse = unknown;
5060
- type TelemetryControllerReportTelemetryData = {
5908
+ type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
5909
+ type PriceControllerCreateData = {
5061
5910
  /**
5062
5911
  * Region code for tenant context
5063
5912
  */
5064
5913
  region: 'cn' | 'us' | 'de' | 'gb';
5065
- requestBody: ParserTelemetryReportDto;
5914
+ requestBody: CreateBeanPriceDto;
5066
5915
  };
5067
- type TelemetryControllerReportTelemetryResponse = unknown;
5068
- type NlpControllerProcessNaturalLanguageData = {
5916
+ type PriceControllerCreateResponse = PriceResponseDto;
5917
+ type PriceControllerFindAllData = {
5069
5918
  /**
5070
- * Region code for tenant context
5919
+ * Filter by currency (e.g., BTC, AAPL, USD)
5071
5920
  */
5072
- region: 'cn' | 'us' | 'de' | 'gb';
5921
+ currency?: string;
5073
5922
  /**
5074
- * Natural language transaction input with optional session ID
5923
+ * Filter prices from this date (ISO 8601 format)
5075
5924
  */
5076
- requestBody: ProcessNlpDto;
5077
- };
5078
- type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5079
- type NlpControllerClearSessionData = {
5925
+ dateFrom?: string;
5080
5926
  /**
5081
- * Region code for tenant context
5927
+ * Filter prices to this date (ISO 8601 format)
5082
5928
  */
5083
- region: 'cn' | 'us' | 'de' | 'gb';
5929
+ dateTo?: string;
5084
5930
  /**
5085
- * Specific session ID to clear (defaults to user session)
5931
+ * Number of items per page (default: 20, max: 100)
5086
5932
  */
5087
- sessionId?: string;
5088
- };
5089
- type NlpControllerClearSessionResponse = void;
5090
- type NlpControllerGetSessionData = {
5933
+ limit?: number;
5934
+ /**
5935
+ * Page number for pagination (default: 1)
5936
+ */
5937
+ page?: number;
5938
+ /**
5939
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
5940
+ */
5941
+ quoteCurrency?: string;
5091
5942
  /**
5092
5943
  * Region code for tenant context
5093
5944
  */
5094
5945
  region: 'cn' | 'us' | 'de' | 'gb';
5095
5946
  /**
5096
- * Specific session ID to get (defaults to user session)
5947
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
5097
5948
  */
5098
- sessionId?: string;
5949
+ search?: string;
5099
5950
  };
5100
- type NlpControllerGetSessionResponse = unknown;
5101
- type DashboardControllerGetNetWorthData = {
5951
+ type PriceControllerFindAllResponse = PriceListResponseDto;
5952
+ type PriceControllerFindOneData = {
5102
5953
  /**
5103
- * Date for balance calculation (ISO 8601 format)
5954
+ * Price ID
5104
5955
  */
5105
- date?: string;
5956
+ id: string;
5106
5957
  /**
5107
5958
  * Region code for tenant context
5108
5959
  */
5109
5960
  region: 'cn' | 'us' | 'de' | 'gb';
5110
5961
  };
5111
- type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5112
- type DashboardControllerGetAccountsData = {
5113
- /**
5114
- * Date for balance calculation (ISO 8601 format)
5115
- */
5116
- date?: string;
5962
+ type PriceControllerFindOneResponse = PriceResponseDto;
5963
+ type PriceControllerUpdateData = {
5117
5964
  /**
5118
- * Grouping strategy
5965
+ * Price ID
5119
5966
  */
5120
- groupBy?: 'platform' | 'assetClass';
5967
+ id: string;
5121
5968
  /**
5122
5969
  * Region code for tenant context
5123
5970
  */
5124
5971
  region: 'cn' | 'us' | 'de' | 'gb';
5972
+ requestBody: UpdateBeanPriceDto;
5125
5973
  };
5126
- type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto;
5127
- type DashboardControllerGetCashFlowData = {
5974
+ type PriceControllerUpdateResponse = PriceResponseDto;
5975
+ type PriceControllerDeleteData = {
5128
5976
  /**
5129
- * Period in YYYY-MM format
5977
+ * Price ID
5130
5978
  */
5131
- period: string;
5979
+ id: string;
5132
5980
  /**
5133
5981
  * Region code for tenant context
5134
5982
  */
5135
5983
  region: 'cn' | 'us' | 'de' | 'gb';
5136
5984
  };
5137
- type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5985
+ type PriceControllerDeleteResponse = void;
5986
+ type PriceControllerBulkCreateData = {
5987
+ /**
5988
+ * Region code for tenant context
5989
+ */
5990
+ region: 'cn' | 'us' | 'de' | 'gb';
5991
+ requestBody: Array<string>;
5992
+ };
5993
+ type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
5138
5994
  type ReportingControllerGetPortfolioTrendsData = {
5139
5995
  /**
5140
5996
  * Data granularity
@@ -5150,6 +6006,21 @@ type ReportingControllerGetPortfolioTrendsData = {
5150
6006
  region: 'cn' | 'us' | 'de' | 'gb';
5151
6007
  };
5152
6008
  type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
6009
+ type ReportingControllerGetCashFlowTrendsData = {
6010
+ /**
6011
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
6012
+ */
6013
+ granularity?: 'day' | 'week' | 'month';
6014
+ /**
6015
+ * Time period
6016
+ */
6017
+ period?: '1m' | '3m' | '6m' | '1y';
6018
+ /**
6019
+ * Region code for tenant context
6020
+ */
6021
+ region: 'cn' | 'us' | 'de' | 'gb';
6022
+ };
6023
+ type ReportingControllerGetCashFlowTrendsResponse = CashFlowTrendsResponseDto;
5153
6024
  type ReportingControllerGenerateSnapshotData = {
5154
6025
  /**
5155
6026
  * Region code for tenant context
@@ -6560,6 +7431,102 @@ type $OpenApiTs = {
6560
7431
  };
6561
7432
  };
6562
7433
  };
7434
+ '/api/v1/{region}/bean/events': {
7435
+ post: {
7436
+ req: EventControllerCreateData;
7437
+ res: {
7438
+ /**
7439
+ * Life event created successfully
7440
+ */
7441
+ 201: EventResponseDto;
7442
+ /**
7443
+ * Life event already exists for this (userId, type, date) combination
7444
+ */
7445
+ 409: unknown;
7446
+ };
7447
+ };
7448
+ get: {
7449
+ req: EventControllerFindAllData;
7450
+ res: {
7451
+ /**
7452
+ * Life events retrieved successfully
7453
+ */
7454
+ 200: EventListResponseDto;
7455
+ };
7456
+ };
7457
+ };
7458
+ '/api/v1/{region}/bean/events/{id}': {
7459
+ get: {
7460
+ req: EventControllerFindOneData;
7461
+ res: {
7462
+ /**
7463
+ * Life event retrieved successfully
7464
+ */
7465
+ 200: EventResponseDto;
7466
+ /**
7467
+ * Life event not found
7468
+ */
7469
+ 404: unknown;
7470
+ };
7471
+ };
7472
+ put: {
7473
+ req: EventControllerUpdateData;
7474
+ res: {
7475
+ /**
7476
+ * Life event updated successfully
7477
+ */
7478
+ 200: EventResponseDto;
7479
+ /**
7480
+ * If-Match header is not a valid ISO 8601 date
7481
+ */
7482
+ 400: unknown;
7483
+ /**
7484
+ * Life event not found
7485
+ */
7486
+ 404: unknown;
7487
+ /**
7488
+ * Updated event conflicts with an existing (userId, type, date) combination
7489
+ */
7490
+ 409: unknown;
7491
+ /**
7492
+ * If-Match precondition failed (updatedAt mismatch)
7493
+ */
7494
+ 412: unknown;
7495
+ };
7496
+ };
7497
+ delete: {
7498
+ req: EventControllerDeleteData;
7499
+ res: {
7500
+ /**
7501
+ * Life event deleted successfully
7502
+ */
7503
+ 204: void;
7504
+ /**
7505
+ * Life event not found
7506
+ */
7507
+ 404: unknown;
7508
+ };
7509
+ };
7510
+ };
7511
+ '/api/v1/{region}/bean/events/{id}/slice': {
7512
+ get: {
7513
+ req: EventControllerGetSliceData;
7514
+ res: {
7515
+ /**
7516
+ * Time-series sliced by the life event range
7517
+ */
7518
+ 200: unknown;
7519
+ /**
7520
+ * accountPattern query param is empty
7521
+ */
7522
+ 400: unknown;
7523
+ /**
7524
+ * Life event not found
7525
+ */
7526
+ 404: unknown;
7527
+ };
7528
+ };
7529
+ };
6563
7530
  '/api/v1/{region}/bean/export/beancount': {
6564
7531
  get: {
6565
7532
  res: {
@@ -6850,6 +7817,32 @@ type $OpenApiTs = {
6850
7817
  };
6851
7818
  };
6852
7819
  };
7820
+ '/api/v1/{region}/bean/import/parser-coverage-miss': {
7821
+ post: {
7822
+ req: TelemetryControllerReportCoverageMissData;
7823
+ res: {
7824
+ /**
7825
+ * Coverage miss report received
7826
+ */
7827
+ 200: unknown;
7828
+ /**
7829
+ * Unauthorized
7830
+ */
7831
+ 401: unknown;
7832
+ };
7833
+ };
7834
+ };
7835
+ '/api/v1/{region}/bean/import/parser-coverage-metrics': {
7836
+ get: {
7837
+ req: TelemetryControllerGetCoverageMetricsData;
7838
+ res: {
7839
+ /**
7840
+ * Coverage metrics
7841
+ */
7842
+ 200: unknown;
7843
+ };
7844
+ };
7845
+ };
6853
7846
  '/api/v1/{region}/bean/nlp/process': {
6854
7847
  post: {
6855
7848
  req: NlpControllerProcessNaturalLanguageData;
@@ -6919,7 +7912,7 @@ type $OpenApiTs = {
6919
7912
  /**
6920
7913
  * Accounts retrieved successfully. Response type depends on groupBy parameter.
6921
7914
  */
6922
- 200: AccountsResponseDto | AssetClassAccountsResponseDto;
7915
+ 200: AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
6923
7916
  /**
6924
7917
  * User not authenticated
6925
7918
  */
@@ -6946,6 +7939,128 @@ type $OpenApiTs = {
6946
7939
  };
6947
7940
  };
6948
7941
  };
7942
+ '/api/v1/{region}/dashboard/expenses': {
7943
+ get: {
7944
+ req: DashboardControllerGetExpensesData;
7945
+ res: {
7946
+ /**
7947
+ * Expenses retrieved successfully
7948
+ */
7949
+ 200: ExpensesByCategoryResponseDto;
7950
+ /**
7951
+ * Invalid groupBy or period
7952
+ */
7953
+ 400: unknown;
7954
+ /**
7955
+ * User not authenticated
7956
+ */
7957
+ 401: unknown;
7958
+ };
7959
+ };
7960
+ };
7961
+ '/api/v1/{region}/investment/holdings/pnl': {
7962
+ get: {
7963
+ req: HoldingPnlControllerGetHoldingPnlData;
7964
+ res: {
7965
+ /**
7966
+ * Holding P&L retrieved successfully
7967
+ */
7968
+ 200: HoldingPnlResponseDto;
7969
+ /**
7970
+ * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
7971
+ */
7972
+ 400: unknown;
7973
+ /**
7974
+ * User not authenticated
7975
+ */
7976
+ 401: unknown;
7977
+ };
7978
+ };
7979
+ };
7980
+ '/api/v1/{region}/bean/prices': {
7981
+ post: {
7982
+ req: PriceControllerCreateData;
7983
+ res: {
7984
+ /**
7985
+ * Price created successfully
7986
+ */
7987
+ 201: PriceResponseDto;
7988
+ /**
7989
+ * Currency or quoteCurrency commodity not found
7990
+ */
7991
+ 404: unknown;
7992
+ /**
7993
+ * Price already exists for this currency pair and date
7994
+ */
7995
+ 409: unknown;
7996
+ };
7997
+ };
7998
+ get: {
7999
+ req: PriceControllerFindAllData;
8000
+ res: {
8001
+ /**
8002
+ * Prices retrieved successfully
8003
+ */
8004
+ 200: PriceListResponseDto;
8005
+ };
8006
+ };
8007
+ };
8008
+ '/api/v1/{region}/bean/prices/{id}': {
8009
+ get: {
8010
+ req: PriceControllerFindOneData;
8011
+ res: {
8012
+ /**
8013
+ * Price retrieved successfully
8014
+ */
8015
+ 200: PriceResponseDto;
8016
+ /**
8017
+ * Price not found
8018
+ */
8019
+ 404: unknown;
8020
+ };
8021
+ };
8022
+ put: {
8023
+ req: PriceControllerUpdateData;
8024
+ res: {
8025
+ /**
8026
+ * Price updated successfully
8027
+ */
8028
+ 200: PriceResponseDto;
8029
+ /**
8030
+ * Price not found
8031
+ */
8032
+ 404: unknown;
8033
+ /**
8034
+ * Updated price conflicts with existing price
8035
+ */
8036
+ 409: unknown;
8037
+ };
8038
+ };
8039
+ delete: {
8040
+ req: PriceControllerDeleteData;
8041
+ res: {
8042
+ /**
8043
+ * Price deleted successfully
8044
+ */
8045
+ 204: void;
8046
+ /**
8047
+ * Price not found
8048
+ */
8049
+ 404: unknown;
8050
+ };
8051
+ };
8052
+ };
8053
+ '/api/v1/{region}/bean/prices/bulk': {
8054
+ post: {
8055
+ req: PriceControllerBulkCreateData;
8056
+ res: {
8057
+ /**
8058
+ * Prices created successfully
8059
+ */
8060
+ 201: Array<PriceResponseDto>;
8061
+ };
8062
+ };
8063
+ };
6949
8064
  '/api/v1/{region}/reporting/portfolio/trends': {
6950
8065
  get: {
6951
8066
  req: ReportingControllerGetPortfolioTrendsData;
@@ -6961,6 +8076,21 @@ type $OpenApiTs = {
6961
8076
  };
6962
8077
  };
6963
8078
  };
8079
+ '/api/v1/{region}/reporting/cash-flow/trends': {
8080
+ get: {
8081
+ req: ReportingControllerGetCashFlowTrendsData;
8082
+ res: {
8083
+ /**
8084
+ * Cash-flow trends retrieved successfully
8085
+ */
8086
+ 200: CashFlowTrendsResponseDto;
8087
+ /**
8088
+ * User not authenticated
8089
+ */
8090
+ 401: unknown;
8091
+ };
8092
+ };
8093
+ };
6964
8094
  '/api/v1/{region}/reporting/snapshots/generate': {
6965
8095
  post: {
6966
8096
  req: ReportingControllerGenerateSnapshotData;
@@ -7277,6 +8407,7 @@ declare class BeanTransactionsService {
7277
8407
  * @param data.status Filter by transaction status
7278
8408
  * @param data.search Search in narration and payee fields (max 200 chars)
7279
8409
  * @param data.accountId Filter by account ID (transactions with postings to this account)
8410
+ * @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
7280
8411
  * @returns TransactionListResponseDto Transaction list
7281
8412
  * @throws ApiError
7282
8413
  */
@@ -7469,7 +8600,7 @@ declare class ProviderSyncService {
7469
8600
  *
7470
8601
  * @param data The data for the request.
7471
8602
  * @param data.providerName Provider name
7472
- * @param data.region Region code
8603
+ * @param data.region Region code for tenant context
7473
8604
  * @param data.requestBody
7474
8605
  * @returns ProviderSyncResponseDto Sync completed successfully
7475
8606
  * @throws ApiError
@@ -7582,4 +8713,4 @@ type OpenAPIConfig = {
7582
8713
  };
7583
8714
  declare const OpenAPI: OpenAPIConfig;
7584
8715
 
7585
- export { type $OpenApiTs, type AccountControllerCloseData, type AccountControllerCloseResponse, type AccountControllerCreateData, type AccountControllerCreateResponse, type AccountControllerDeleteData, type AccountControllerDeleteResponse, type AccountControllerFindAllData, type AccountControllerFindAllResponse, type AccountControllerFindOneData, type AccountControllerFindOneResponse, type AccountControllerReopenData, type AccountControllerReopenResponse, type AccountControllerUpdateData, type AccountControllerUpdateResponse, type AccountExchangeRateWarningDto, type AccountItemDto, type AccountItemWithAssetClassDto, type AccountListResponseDto, type AccountResponseDto, type AccountStandardListResponseDto, type AccountStandardResponseDto, type AccountStandardsControllerGetRegionsData, type AccountStandardsControllerGetRegionsResponse, type AccountStandardsControllerGetTemplateMetadataData, type AccountStandardsControllerGetTemplateMetadataResponse, type AccountStandardsControllerGetTemplatesData, type AccountStandardsControllerGetTemplatesResponse, type AccountsResponseDto, type AccountsSummaryDto, type AmountRangeDto, type AnonymousLoginDto, type ApiKeysControllerCreateApiKeyResponse, type ApiProblemResponseDto, type AssetClassAccountsResponseDto, type AssetClassGroupDto, type AssetClassSummaryDto, type AuthControllerAccessTokenLoginData, type AuthControllerAccessTokenLoginResponse, type BackfillSnapshotsBody, type BackfillSnapshotsResponse, type BalanceByCurrencyDto, type BalanceControllerGetBalanceData, type BalanceControllerGetBalanceResponse, type BalanceControllerGetMultiCurrencyBalanceData, type BalanceControllerGetMultiCurrencyBalanceResponse, type BalanceResponseDto, type BatchCreateTransactionDto, type BatchResolveDto, type BatchResolveResultDto, type BatchTransactionErrorDto, type BatchTransactionResponseDto, BeanAccountsService, BeanBalancesService, BeanCommoditiesService, BeanTransactionsService, type BulkCreateRulesDto, type BulkCreateRulesResponseDto, type CacheControllerFlushCacheResponse, type CashFlowByCurrencyDto, type CashFlowResponseDto, type CloseAccountDto, type CommodityControllerBulkCreateData, type CommodityControllerBulkCreateResponse, type CommodityControllerCreateData, type CommodityControllerCreateResponse, type CommodityControllerDeleteData, type CommodityControllerDeleteResponse, type CommodityControllerFindAllData, type CommodityControllerFindAllResponse, type CommodityControllerFindOneData, type CommodityControllerFindOneResponse, type CommodityControllerGetOrCreateData, type CommodityControllerGetOrCreateResponse, type CommodityControllerUpdateData, type CommodityControllerUpdateResponse, type CommodityListResponseDto, type CommodityResponseDto, type ConfirmMatchDto, type ConvertedCashFlowDto, type ConvertedNetWorthDto, type CorrectTransactionDto, type CreateAccountDto, type CreateCommodityDto, type CreatePayeeDto, type CreatePayeeProfileDto, type CreatePlatformDto, type CreatePostingDto, type CreateRecurringRuleDto, type CreateRuleFromTransactionDto, type CreateTransactionDto, type CreateTransactionRuleDto, type CurrencyBalanceDto, type DashboardControllerGetAccountsData, type DashboardControllerGetAccountsResponse, type DashboardControllerGetCashFlowData, type DashboardControllerGetCashFlowResponse, type DashboardControllerGetNetWorthData, type DashboardControllerGetNetWorthResponse, type DecisionOptionDto, type DeleteOwnUserDto, type EnterNowDto, type ExchangeRateControllerGetExchangeRateData, type ExchangeRateControllerGetExchangeRateResponse, type ExchangeRateWarningDto, type ExpectedTransactionControllerConfirmMatchData, type ExpectedTransactionControllerConfirmMatchResponse, type ExpectedTransactionControllerEnterNowData, type ExpectedTransactionControllerEnterNowResponse, type ExpectedTransactionControllerFindAllData, type ExpectedTransactionControllerFindAllResponse, type ExpectedTransactionControllerFindOneData, type ExpectedTransactionControllerFindOneResponse, type ExpectedTransactionControllerFindOverdueData, type ExpectedTransactionControllerFindOverdueResponse, type ExpectedTransactionControllerSkipData, type ExpectedTransactionControllerSkipResponse, type ExpectedTransactionControllerUndoSkipData, type ExpectedTransactionControllerUndoSkipResponse, type ExpectedTransactionControllerUnmatchData, type ExpectedTransactionControllerUnmatchResponse, type ExpectedTransactionListResponseDto, type ExpectedTransactionResponseDto, type ExpectedTransactionRuleDto, type ExportControllerExportBeancountResponse, type ExportRulesResponseDto, type FileImportControllerIdentifyFileData, type FileImportControllerIdentifyFileResponse, type FileImportControllerImportBeancountData, type FileImportControllerImportBeancountResponse, type FileImportControllerImportFileData, type FileImportControllerImportFileResponse, type FileImportDto, type ForecastControllerGetForecastData, type ForecastControllerGetForecastResponse, type ForecastItemDto, type ForecastResponseDto, type GenerateSnapshotBody, type GenerateSnapshotResponse, type HealthControllerCheckDatabaseResponse, type HealthControllerCheckOpenBbResponse, type HealthControllerCheckRedisResponse, type HealthControllerGetCircuitBreakersHealthResponse, type HealthControllerGetHealthResponse, type HealthControllerGetMetricsResponse, type HealthControllerResetCircuitBreakerData, type HealthControllerResetCircuitBreakerResponse, HealthService, type IdentifyResultDto, type ImportErrorDto, type ImportResultDto, type ImporterConfigControllerGetConfigData, type ImporterConfigControllerGetConfigResponse, type ImporterConfigControllerResetConfigData, type ImporterConfigControllerResetConfigResponse, type ImporterConfigControllerUpdateConfigData, type ImporterConfigControllerUpdateConfigResponse, type ImporterConfigDataDto, type ImporterConfigDto, type InfoControllerGetInfoResponse, type MapperDefaultsDto, type MonthlyForecastDto, type MultiCurrencyBalanceResponseDto, type MultiCurrencyPointDto, type NetWorthByCurrencyDto, type NetWorthResponseDto, type NlpAccountConfirmationDataDto, type NlpAlternativePayeeDto, type NlpControllerClearSessionData, type NlpControllerClearSessionResponse, type NlpControllerGetSessionData, type NlpControllerGetSessionResponse, type NlpControllerProcessNaturalLanguageData, type NlpControllerProcessNaturalLanguageResponse, type NlpDefaultAccountsDto, type NlpDuplicateConfirmationDataDto, type NlpParsedDataDto, type NlpPayeeConfirmationDataDto, type NlpResponseDto, type NlpRuleConfirmationDataDto, type NlpSimilarityDto, type NlpSourceTransactionDto, type NlpSuggestedAccountDto, type NlpSuggestedAccountsDto, type NlpSuggestedPayeeDto, type NlpTargetTransactionDto, type NlpTransactionInfoDto, OpenAPI, type OpenAPIConfig, type ParserTelemetryReportDto, type PayeeAutocompleteResponseDto, type PayeeControllerAutocompleteData, type PayeeControllerAutocompleteResponse, type PayeeControllerCreateData, type PayeeControllerCreateResponse, type PayeeControllerDeleteData, type PayeeControllerDeleteResponse, type PayeeControllerFindAllData, type PayeeControllerFindAllResponse, type PayeeControllerFindOneData, type PayeeControllerFindOneResponse, type PayeeControllerGetTopPayeesData, type PayeeControllerGetTopPayeesResponse, type PayeeControllerUpdateData, type PayeeControllerUpdateResponse, type PayeeListResponseDto, type PayeeProfileAdminControllerCreateData, type PayeeProfileAdminControllerCreateResponse, type PayeeProfileAdminControllerDeleteData, type PayeeProfileAdminControllerDeleteResponse, type PayeeProfileAdminControllerFindAllData, type PayeeProfileAdminControllerFindAllResponse, type PayeeProfileAdminControllerFindOneData, type PayeeProfileAdminControllerFindOneResponse, type PayeeProfileAdminControllerUnverifyData, type PayeeProfileAdminControllerUnverifyResponse, type PayeeProfileAdminControllerUpdateData, type PayeeProfileAdminControllerUpdateResponse, type PayeeProfileAdminControllerVerifyData, type PayeeProfileAdminControllerVerifyResponse, type PayeeProfileListResponseDto, type PayeeProfileResponseDto, type PayeeResponseDto, type PayeeStatsResponseDto, type PlatformControllerCreateData, type PlatformControllerCreateResponse, type PlatformControllerDeleteData, type PlatformControllerDeleteResponse, type PlatformControllerFindAllResponse, type PlatformControllerGetPlatformListResponse, type PlatformControllerMatchPlatformsData, type PlatformControllerMatchPlatformsResponse, type PlatformControllerUpdateData, type PlatformControllerUpdateResponse, type PlatformGroupDto, type PortfolioTrendsResponseDto, type PostingDetailDto, type PostingResponseDto, type ProcessNlpDto, type PropertyControllerDeleteData, type PropertyControllerDeleteResponse, type PropertyControllerGetAllResponse, type PropertyControllerGetByKeyData, type PropertyControllerGetByKeyResponse, type PropertyControllerUpdateData, type PropertyControllerUpdateResponse, type ProviderSyncConfigDto, type ProviderSyncControllerGetSupportedProvidersData, type ProviderSyncControllerGetSupportedProvidersResponse, type ProviderSyncControllerIsProviderSupportedData, type ProviderSyncControllerIsProviderSupportedResponse, type ProviderSyncControllerSyncData, type ProviderSyncControllerSyncResponse, type ProviderSyncDto, type ProviderSyncResponseDto, ProviderSyncService, type RecurringMatchInfoDto, type RecurringRuleControllerCreateData, type RecurringRuleControllerCreateFromTransactionData, type RecurringRuleControllerCreateFromTransactionResponse, type RecurringRuleControllerCreateResponse, type RecurringRuleControllerDeleteData, type RecurringRuleControllerDeleteResponse, type RecurringRuleControllerFindAllData, type RecurringRuleControllerFindAllResponse, type RecurringRuleControllerFindOneData, type RecurringRuleControllerFindOneResponse, type RecurringRuleControllerGetWithStatsData, type RecurringRuleControllerGetWithStatsResponse, type RecurringRuleControllerUpdateData, type RecurringRuleControllerUpdateResponse, type RecurringRuleResponseDto, type RecurringRuleWithStatsResponseDto, type RecurringSuggestionDto, type RegionConfigDto, type RegionInfoDto, type RegionsMetadataResponseDto, type ReopenAccountDto, type ReportingControllerBackfillSnapshotsData, type ReportingControllerBackfillSnapshotsResponse, type ReportingControllerGenerateSnapshotData, type ReportingControllerGenerateSnapshotResponse, type ReportingControllerGetPortfolioTrendsData, type ReportingControllerGetPortfolioTrendsResponse, type ResolveResultDto, type ResolveReviewDto, type ReviewControllerBatchResolveData, type ReviewControllerBatchResolveResponse, type ReviewControllerFindAllData, type ReviewControllerFindAllResponse, type ReviewControllerFindOneData, type ReviewControllerFindOneResponse, type ReviewControllerGetStatsData, type ReviewControllerGetStatsResponse, type ReviewControllerResolveData, type ReviewControllerResolveResponse, type ReviewControllerUndoData, type ReviewControllerUndoResponse, type ReviewDetailDto, type ReviewItemPreviewDto, type ReviewListResponseDto, type ReviewStatsDto, type ReviewSummaryDto, type RuleStatisticsResponseDto, type SignupDto, type SupportedProvidersResponseDto, type TagSuggestionDto, type TagSuggestionsResponseDto, type TelemetryControllerReportTelemetryData, type TelemetryControllerReportTelemetryResponse, type TemplateMetadataDto, type TemplateMetadataResponseDto, type TestRuleDto, type TestRuleResponseDto, type TimeSeriesPointDto, type TransactionControllerCorrectData, type TransactionControllerCorrectResponse, type TransactionControllerCreateBatchData, type TransactionControllerCreateBatchResponse, type TransactionControllerCreateData, type TransactionControllerCreateResponse, type TransactionControllerDeleteData, type TransactionControllerDeleteResponse, type TransactionControllerGetDetailData, type TransactionControllerGetDetailResponse, type TransactionControllerListData, type TransactionControllerListResponse, type TransactionControllerSuggestTagsData, type TransactionControllerSuggestTagsResponse, type TransactionControllerUpdateData, type TransactionControllerUpdateResponse, type TransactionDetailDto, type TransactionListResponseDto, type TransactionResponseDto, type TransactionRuleControllerBulkCreateData, type TransactionRuleControllerBulkCreateResponse, type TransactionRuleControllerCreateData, type TransactionRuleControllerCreateResponse, type TransactionRuleControllerDeleteData, type TransactionRuleControllerDeleteResponse, type TransactionRuleControllerExportData, type TransactionRuleControllerExportResponse, type TransactionRuleControllerGetDetailData, type TransactionRuleControllerGetDetailResponse, type TransactionRuleControllerGetStatisticsData, type TransactionRuleControllerGetStatisticsResponse, type TransactionRuleControllerListData, type TransactionRuleControllerListResponse, type TransactionRuleControllerTestData, type TransactionRuleControllerTestResponse, type TransactionRuleControllerUpdateData, type TransactionRuleControllerUpdateResponse, type TransactionRuleControllerValidateData, type TransactionRuleControllerValidateResponse, type TransactionRuleListResponseDto, type TransactionRuleResponseDto, type TransactionSummaryDto, type TrendSummaryDto, type UndoResultDto, type UpdateAccountDto, type UpdateCommodityDto, type UpdateConfigDataDto, type UpdateImporterConfigDto, type UpdateMapperDefaultsDto, type UpdatePayeeDto, type UpdatePayeeProfileDto, type UpdatePlatformDto, type UpdatePropertyDto, type UpdateRecurringRuleDto, type UpdateTransactionDto, type UpdateTransactionRuleDto, type UpdateUserSettingDto, type UserControllerDeleteOwnUserData, type UserControllerDeleteOwnUserResponse, type UserControllerDeleteUserData, type UserControllerDeleteUserResponse, type UserControllerGetAllUserSettingsByPageData, type UserControllerGetAllUserSettingsByPageResponse, type UserControllerGetAssetLiabilitySummaryResponse, type UserControllerGetUserData, type UserControllerGetUserInfoData, type UserControllerGetUserInfoResponse, type UserControllerGetUserResponse, type UserControllerSignupUserData, type UserControllerSignupUserResponse, type UserControllerUpdateUserSettingData, type UserControllerUpdateUserSettingResponse, type ValidateRuleDto, type ValidateRuleResponseDto, type VersionedConfigDto, type action, type action2, type assetClass, type assetSubType, type bookingMethod, type branchType, type category, type colorScheme, type confidenceLevel, type conflictStrategy, type dataSource, type equitySubType, type flag, type flag2, type frequency, type importerId, type intent, type investmentAction, type learningSource, type liabilitySubType, type matchLogic, type paymentSource, type period, type source, type status, type status2, type status3, type status4, type suggestedFrequency, type type, type type2, type type3, type value, type viewMode };
8716
+ 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 };