@firela/api-types 0.0.0-canary.074c27d4 → 0.0.0-canary.0808a6e0

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
  /**
@@ -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,155 +4102,540 @@ 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)
3881
4108
  */
3882
- currency: string;
4109
+ category: string;
3883
4110
  /**
3884
- * Balance amount
4111
+ * Converted total expense in base currency
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 expense across all categories (converted; convertible categories only)
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
- };
4025
- type AccountControllerFindOneResponse = AccountResponseDto;
4026
- type AccountControllerUpdateData = {
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
+ * Multi-currency breakdown for this point
4455
+ */
4456
+ byCurrency?: Array<CurrencyBalanceDto>;
4457
+ };
4458
+ type TrendSummaryDto = {
4459
+ /**
4460
+ * Value at start of period
4461
+ */
4462
+ startValue: string;
4463
+ /**
4464
+ * Value at end of period
4465
+ */
4466
+ endValue: string;
4467
+ /**
4468
+ * Total change over period
4469
+ */
4470
+ totalChange: string;
4471
+ /**
4472
+ * Total change percentage
4473
+ */
4474
+ totalChangePercentage: string;
4475
+ };
4476
+ type MultiCurrencyPointDto = {
4477
+ /**
4478
+ * Date in YYYY-MM-DD format
4479
+ */
4480
+ date: string;
4481
+ /**
4482
+ * Balances by currency
4483
+ */
4484
+ byCurrency: Array<CurrencyBalanceDto>;
4485
+ };
4486
+ type PortfolioTrendsResponseDto = {
4487
+ /**
4488
+ * Time series data points
4489
+ */
4490
+ series: Array<TimeSeriesPointDto>;
4491
+ /**
4492
+ * Period summary
4493
+ */
4494
+ summary: TrendSummaryDto;
4495
+ /**
4496
+ * Period requested
4497
+ */
4498
+ period: string;
4499
+ /**
4500
+ * Data granularity
4501
+ */
4502
+ granularity: string;
4503
+ /**
4504
+ * Base currency for converted values
4505
+ */
4506
+ currency: string;
4507
+ /**
4508
+ * Multi-currency time series (each point has currency breakdown)
4509
+ */
4510
+ byCurrency?: Array<MultiCurrencyPointDto>;
4511
+ /**
4512
+ * Exchange rate warnings
4513
+ */
4514
+ warnings?: Array<ExchangeRateWarningDto>;
4515
+ };
4516
+ type CashFlowPointDto = {
4517
+ /**
4518
+ * Month key (YYYY-MM)
4519
+ */
4520
+ month: string;
4521
+ /**
4522
+ * Income in base currency (absolute, converted)
4523
+ */
4524
+ income: string;
4525
+ /**
4526
+ * Expense in base currency (absolute, converted)
4527
+ */
4528
+ expense: string;
4529
+ /**
4530
+ * netSavings = income − expense (savings positive)
4531
+ */
4532
+ netSavings: string;
4533
+ };
4534
+ type CashFlowTrendSummaryDto = {
4535
+ /**
4536
+ * Total income across the period
4537
+ */
4538
+ totalIncome: string;
4539
+ /**
4540
+ * Total expense across the period
4541
+ */
4542
+ totalExpense: string;
4543
+ /**
4544
+ * income − expense across the period
4545
+ */
4546
+ totalNetSavings: string;
4547
+ /**
4548
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
4549
+ */
4550
+ averageMonthlyNetSavings: string;
4551
+ };
4552
+ type CashFlowTrendsResponseDto = {
4553
+ /**
4554
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
4555
+ */
4556
+ series: Array<CashFlowPointDto>;
4557
+ /**
4558
+ * Period totals
4559
+ */
4560
+ summary: CashFlowTrendSummaryDto;
4561
+ /**
4562
+ * Period requested
4563
+ */
4564
+ period: string;
4565
+ /**
4566
+ * Data granularity (v1 returns month buckets)
4567
+ */
4568
+ granularity: string;
4569
+ /**
4570
+ * Base currency for converted values
4571
+ */
4572
+ currency: string;
4573
+ /**
4574
+ * Exchange rate warnings (e.g. missing rate for a currency)
4575
+ */
4576
+ warnings?: Array<ExchangeRateWarningDto>;
4577
+ };
4578
+ type GenerateSnapshotBody = unknown;
4579
+ type GenerateSnapshotResponse = unknown;
4580
+ type BackfillSnapshotsBody = unknown;
4581
+ type BackfillSnapshotsResponse = unknown;
4582
+ type AnonymousLoginDto = {
4583
+ /**
4584
+ * Access token for anonymous login
4585
+ */
4586
+ accessToken: string;
4587
+ };
4588
+ type AccountControllerCreateData = {
4589
+ /**
4590
+ * Region code for tenant context
4591
+ */
4592
+ region: 'cn' | 'us' | 'de' | 'gb';
4593
+ requestBody: CreateAccountDto;
4594
+ };
4595
+ type AccountControllerCreateResponse = AccountResponseDto;
4596
+ type AccountControllerFindAllData = {
4597
+ /**
4598
+ * Filter by custom (user-created) accounts only
4599
+ */
4600
+ isCustom?: boolean;
4601
+ /**
4602
+ * Maximum number of results
4603
+ */
4604
+ limit?: number;
4605
+ /**
4606
+ * Number of results to skip
4607
+ */
4608
+ offset?: number;
4609
+ /**
4610
+ * Region code for tenant context
4611
+ */
4612
+ region: 'cn' | 'us' | 'de' | 'gb';
4613
+ /**
4614
+ * Search term for path or i18nKey
4615
+ */
4616
+ search?: string;
4617
+ /**
4618
+ * Filter by status
4619
+ */
4620
+ status?: 'OPEN' | 'CLOSED' | 'SUSPENDED';
4621
+ /**
4622
+ * Filter by account type
4623
+ */
4624
+ type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
4625
+ };
4626
+ type AccountControllerFindAllResponse = AccountListResponseDto;
4627
+ type AccountControllerFindOneData = {
4628
+ /**
4629
+ * Account UUID
4630
+ */
4631
+ id: string;
4632
+ /**
4633
+ * Region code for tenant context
4634
+ */
4635
+ region: 'cn' | 'us' | 'de' | 'gb';
4636
+ };
4637
+ type AccountControllerFindOneResponse = AccountResponseDto;
4638
+ type AccountControllerUpdateData = {
4027
4639
  /**
4028
4640
  * Account UUID
4029
4641
  */
@@ -4916,6 +5528,92 @@ type PropertyControllerDeleteData = {
4916
5528
  key: string;
4917
5529
  };
4918
5530
  type PropertyControllerDeleteResponse = void;
5531
+ type EventControllerCreateData = {
5532
+ /**
5533
+ * Region code for tenant context (decorative for life events)
5534
+ */
5535
+ region: 'cn' | 'us' | 'de' | 'gb';
5536
+ requestBody: CreateBeanEventDto;
5537
+ };
5538
+ type EventControllerCreateResponse = EventResponseDto;
5539
+ type EventControllerFindAllData = {
5540
+ /**
5541
+ * Filter life events from this date (ISO 8601 format)
5542
+ */
5543
+ from?: string;
5544
+ /**
5545
+ * Number of items per page (default: 20, max: 100)
5546
+ */
5547
+ limit?: number;
5548
+ /**
5549
+ * Page number for pagination (default: 1)
5550
+ */
5551
+ page?: number;
5552
+ /**
5553
+ * Search term for description (case-insensitive partial match)
5554
+ */
5555
+ q?: string;
5556
+ /**
5557
+ * Region code for tenant context (decorative for life events)
5558
+ */
5559
+ region: 'cn' | 'us' | 'de' | 'gb';
5560
+ /**
5561
+ * Filter life events to this date (ISO 8601 format)
5562
+ */
5563
+ to?: string;
5564
+ /**
5565
+ * Filter by life event type (exact match)
5566
+ */
5567
+ type?: string;
5568
+ };
5569
+ type EventControllerFindAllResponse = EventListResponseDto;
5570
+ type EventControllerFindOneData = {
5571
+ /**
5572
+ * Life event ID
5573
+ */
5574
+ id: string;
5575
+ /**
5576
+ * Region code for tenant context (decorative for life events)
5577
+ */
5578
+ region: 'cn' | 'us' | 'de' | 'gb';
5579
+ };
5580
+ type EventControllerFindOneResponse = EventResponseDto;
5581
+ type EventControllerUpdateData = {
5582
+ /**
5583
+ * Life event ID
5584
+ */
5585
+ id: string;
5586
+ /**
5587
+ * Region code for tenant context (decorative for life events)
5588
+ */
5589
+ region: 'cn' | 'us' | 'de' | 'gb';
5590
+ requestBody: UpdateBeanEventDto;
5591
+ };
5592
+ type EventControllerUpdateResponse = EventResponseDto;
5593
+ type EventControllerDeleteData = {
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
+ };
5603
+ type EventControllerDeleteResponse = void;
5604
+ type EventControllerGetSliceData = {
5605
+ accountPattern: string;
5606
+ granularity: string;
5607
+ /**
5608
+ * Life event ID
5609
+ */
5610
+ id: string;
5611
+ /**
5612
+ * Region code for tenant context (decorative for life events)
5613
+ */
5614
+ region: 'cn' | 'us' | 'de' | 'gb';
5615
+ };
5616
+ type EventControllerGetSliceResponse = unknown;
4919
5617
  type ExportControllerExportBeancountResponse = unknown;
4920
5618
  type FileImportControllerImportFileData = {
4921
5619
  /**
@@ -5033,9 +5731,9 @@ type ProviderSyncControllerSyncData = {
5033
5731
  */
5034
5732
  providerName: 'plaid' | 'teller' | 'truelayer' | 'gocardless' | 'simplefin' | 'yodlee' | 'beancount-direct' | 'parsed-bill';
5035
5733
  /**
5036
- * Region code
5734
+ * Region code for tenant context
5037
5735
  */
5038
- region: unknown;
5736
+ region: 'cn' | 'us' | 'de' | 'gb';
5039
5737
  requestBody: ProviderSyncDto;
5040
5738
  };
5041
5739
  type ProviderSyncControllerSyncResponse = ProviderSyncResponseDto;
@@ -5048,93 +5746,235 @@ type ProviderSyncControllerGetSupportedProvidersData = {
5048
5746
  type ProviderSyncControllerGetSupportedProvidersResponse = SupportedProvidersResponseDto;
5049
5747
  type ProviderSyncControllerIsProviderSupportedData = {
5050
5748
  /**
5051
- * Provider name to check
5749
+ * Provider name to check
5750
+ */
5751
+ providerName: string;
5752
+ /**
5753
+ * Region code for tenant context
5754
+ */
5755
+ region: 'cn' | 'us' | 'de' | 'gb';
5756
+ };
5757
+ type ProviderSyncControllerIsProviderSupportedResponse = unknown;
5758
+ type TelemetryControllerReportTelemetryData = {
5759
+ /**
5760
+ * Region code for tenant context
5761
+ */
5762
+ region: 'cn' | 'us' | 'de' | 'gb';
5763
+ requestBody: ParserTelemetryReportDto;
5764
+ };
5765
+ type TelemetryControllerReportTelemetryResponse = unknown;
5766
+ type TelemetryControllerReportCoverageMissData = {
5767
+ /**
5768
+ * Region code for tenant context
5769
+ */
5770
+ region: 'cn' | 'us' | 'de' | 'gb';
5771
+ requestBody: UncoveredFormatMissDto;
5772
+ };
5773
+ type TelemetryControllerReportCoverageMissResponse = unknown;
5774
+ type TelemetryControllerGetCoverageMetricsData = {
5775
+ /**
5776
+ * Region code for tenant context
5777
+ */
5778
+ region: 'cn' | 'us' | 'de' | 'gb';
5779
+ /**
5780
+ * Top-N uncovered formats (default 10)
5781
+ */
5782
+ topN?: unknown;
5783
+ };
5784
+ type TelemetryControllerGetCoverageMetricsResponse = unknown;
5785
+ type NlpControllerProcessNaturalLanguageData = {
5786
+ /**
5787
+ * Region code for tenant context
5788
+ */
5789
+ region: 'cn' | 'us' | 'de' | 'gb';
5790
+ /**
5791
+ * Natural language transaction input with optional session ID
5792
+ */
5793
+ requestBody: ProcessNlpDto;
5794
+ };
5795
+ type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5796
+ type NlpControllerClearSessionData = {
5797
+ /**
5798
+ * Region code for tenant context
5799
+ */
5800
+ region: 'cn' | 'us' | 'de' | 'gb';
5801
+ /**
5802
+ * Specific session ID to clear (defaults to user session)
5803
+ */
5804
+ sessionId?: string;
5805
+ };
5806
+ type NlpControllerClearSessionResponse = void;
5807
+ type NlpControllerGetSessionData = {
5808
+ /**
5809
+ * Region code for tenant context
5810
+ */
5811
+ region: 'cn' | 'us' | 'de' | 'gb';
5812
+ /**
5813
+ * Specific session ID to get (defaults to user session)
5814
+ */
5815
+ sessionId?: string;
5816
+ };
5817
+ type NlpControllerGetSessionResponse = unknown;
5818
+ type DashboardControllerGetNetWorthData = {
5819
+ /**
5820
+ * Date for balance calculation (ISO 8601 format)
5821
+ */
5822
+ date?: string;
5823
+ /**
5824
+ * Region code for tenant context
5825
+ */
5826
+ region: 'cn' | 'us' | 'de' | 'gb';
5827
+ };
5828
+ type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5829
+ type DashboardControllerGetAccountsData = {
5830
+ /**
5831
+ * Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
5832
+ */
5833
+ accountId?: string;
5834
+ /**
5835
+ * Date for balance calculation (ISO 8601 format)
5836
+ */
5837
+ date?: string;
5838
+ /**
5839
+ * Grouping strategy
5840
+ */
5841
+ groupBy?: 'platform' | 'assetClass' | 'holdingAssetClass' | 'holdingAssetClassByAccount';
5842
+ /**
5843
+ * Region code for tenant context
5844
+ */
5845
+ region: 'cn' | 'us' | 'de' | 'gb';
5846
+ };
5847
+ type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
5848
+ type DashboardControllerGetCashFlowData = {
5849
+ /**
5850
+ * Period in YYYY-MM format
5851
+ */
5852
+ period: string;
5853
+ /**
5854
+ * Region code for tenant context
5855
+ */
5856
+ region: 'cn' | 'us' | 'de' | 'gb';
5857
+ };
5858
+ type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5859
+ type DashboardControllerGetExpensesData = {
5860
+ /**
5861
+ * Grouping strategy
5862
+ */
5863
+ groupBy?: 'category';
5864
+ /**
5865
+ * Time window (1m = current calendar month)
5866
+ */
5867
+ period?: '1m' | '3m' | '6m' | '1y';
5868
+ /**
5869
+ * Region code for tenant context
5870
+ */
5871
+ region: 'cn' | 'us' | 'de' | 'gb';
5872
+ };
5873
+ type DashboardControllerGetExpensesResponse = ExpensesByCategoryResponseDto;
5874
+ type HoldingPnlControllerGetHoldingPnlData = {
5875
+ /**
5876
+ * Scope to a single account
5877
+ */
5878
+ accountId?: string;
5879
+ /**
5880
+ * As-of date (ISO 8601), defaults to today
5052
5881
  */
5053
- providerName: string;
5882
+ asOf?: string;
5883
+ /**
5884
+ * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
5885
+ */
5886
+ method?: 'FIFO' | 'average';
5054
5887
  /**
5055
5888
  * Region code for tenant context
5056
5889
  */
5057
5890
  region: 'cn' | 'us' | 'de' | 'gb';
5058
5891
  };
5059
- type ProviderSyncControllerIsProviderSupportedResponse = unknown;
5060
- type TelemetryControllerReportTelemetryData = {
5892
+ type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
5893
+ type PriceControllerCreateData = {
5061
5894
  /**
5062
5895
  * Region code for tenant context
5063
5896
  */
5064
5897
  region: 'cn' | 'us' | 'de' | 'gb';
5065
- requestBody: ParserTelemetryReportDto;
5898
+ requestBody: CreateBeanPriceDto;
5066
5899
  };
5067
- type TelemetryControllerReportTelemetryResponse = unknown;
5068
- type NlpControllerProcessNaturalLanguageData = {
5900
+ type PriceControllerCreateResponse = PriceResponseDto;
5901
+ type PriceControllerFindAllData = {
5069
5902
  /**
5070
- * Region code for tenant context
5903
+ * Filter by currency (e.g., BTC, AAPL, USD)
5071
5904
  */
5072
- region: 'cn' | 'us' | 'de' | 'gb';
5905
+ currency?: string;
5073
5906
  /**
5074
- * Natural language transaction input with optional session ID
5907
+ * Filter prices from this date (ISO 8601 format)
5075
5908
  */
5076
- requestBody: ProcessNlpDto;
5077
- };
5078
- type NlpControllerProcessNaturalLanguageResponse = NlpResponseDto;
5079
- type NlpControllerClearSessionData = {
5909
+ dateFrom?: string;
5080
5910
  /**
5081
- * Region code for tenant context
5911
+ * Filter prices to this date (ISO 8601 format)
5082
5912
  */
5083
- region: 'cn' | 'us' | 'de' | 'gb';
5913
+ dateTo?: string;
5084
5914
  /**
5085
- * Specific session ID to clear (defaults to user session)
5915
+ * Number of items per page (default: 20, max: 100)
5086
5916
  */
5087
- sessionId?: string;
5088
- };
5089
- type NlpControllerClearSessionResponse = void;
5090
- type NlpControllerGetSessionData = {
5917
+ limit?: number;
5918
+ /**
5919
+ * Page number for pagination (default: 1)
5920
+ */
5921
+ page?: number;
5922
+ /**
5923
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
5924
+ */
5925
+ quoteCurrency?: string;
5091
5926
  /**
5092
5927
  * Region code for tenant context
5093
5928
  */
5094
5929
  region: 'cn' | 'us' | 'de' | 'gb';
5095
5930
  /**
5096
- * Specific session ID to get (defaults to user session)
5931
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
5097
5932
  */
5098
- sessionId?: string;
5933
+ search?: string;
5099
5934
  };
5100
- type NlpControllerGetSessionResponse = unknown;
5101
- type DashboardControllerGetNetWorthData = {
5935
+ type PriceControllerFindAllResponse = PriceListResponseDto;
5936
+ type PriceControllerFindOneData = {
5102
5937
  /**
5103
- * Date for balance calculation (ISO 8601 format)
5938
+ * Price ID
5104
5939
  */
5105
- date?: string;
5940
+ id: string;
5106
5941
  /**
5107
5942
  * Region code for tenant context
5108
5943
  */
5109
5944
  region: 'cn' | 'us' | 'de' | 'gb';
5110
5945
  };
5111
- type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
5112
- type DashboardControllerGetAccountsData = {
5113
- /**
5114
- * Date for balance calculation (ISO 8601 format)
5115
- */
5116
- date?: string;
5946
+ type PriceControllerFindOneResponse = PriceResponseDto;
5947
+ type PriceControllerUpdateData = {
5117
5948
  /**
5118
- * Grouping strategy
5949
+ * Price ID
5119
5950
  */
5120
- groupBy?: 'platform' | 'assetClass';
5951
+ id: string;
5121
5952
  /**
5122
5953
  * Region code for tenant context
5123
5954
  */
5124
5955
  region: 'cn' | 'us' | 'de' | 'gb';
5956
+ requestBody: UpdateBeanPriceDto;
5125
5957
  };
5126
- type DashboardControllerGetAccountsResponse = AccountsResponseDto | AssetClassAccountsResponseDto;
5127
- type DashboardControllerGetCashFlowData = {
5958
+ type PriceControllerUpdateResponse = PriceResponseDto;
5959
+ type PriceControllerDeleteData = {
5128
5960
  /**
5129
- * Period in YYYY-MM format
5961
+ * Price ID
5130
5962
  */
5131
- period: string;
5963
+ id: string;
5132
5964
  /**
5133
5965
  * Region code for tenant context
5134
5966
  */
5135
5967
  region: 'cn' | 'us' | 'de' | 'gb';
5136
5968
  };
5137
- type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
5969
+ type PriceControllerDeleteResponse = void;
5970
+ type PriceControllerBulkCreateData = {
5971
+ /**
5972
+ * Region code for tenant context
5973
+ */
5974
+ region: 'cn' | 'us' | 'de' | 'gb';
5975
+ requestBody: Array<string>;
5976
+ };
5977
+ type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
5138
5978
  type ReportingControllerGetPortfolioTrendsData = {
5139
5979
  /**
5140
5980
  * Data granularity
@@ -5150,6 +5990,21 @@ type ReportingControllerGetPortfolioTrendsData = {
5150
5990
  region: 'cn' | 'us' | 'de' | 'gb';
5151
5991
  };
5152
5992
  type ReportingControllerGetPortfolioTrendsResponse = PortfolioTrendsResponseDto;
5993
+ type ReportingControllerGetCashFlowTrendsData = {
5994
+ /**
5995
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
5996
+ */
5997
+ granularity?: 'day' | 'week' | 'month';
5998
+ /**
5999
+ * Time period
6000
+ */
6001
+ period?: '1m' | '3m' | '6m' | '1y';
6002
+ /**
6003
+ * Region code for tenant context
6004
+ */
6005
+ region: 'cn' | 'us' | 'de' | 'gb';
6006
+ };
6007
+ type ReportingControllerGetCashFlowTrendsResponse = CashFlowTrendsResponseDto;
5153
6008
  type ReportingControllerGenerateSnapshotData = {
5154
6009
  /**
5155
6010
  * Region code for tenant context
@@ -6560,6 +7415,102 @@ type $OpenApiTs = {
6560
7415
  };
6561
7416
  };
6562
7417
  };
7418
+ '/api/v1/{region}/bean/events': {
7419
+ post: {
7420
+ req: EventControllerCreateData;
7421
+ res: {
7422
+ /**
7423
+ * Life event created successfully
7424
+ */
7425
+ 201: EventResponseDto;
7426
+ /**
7427
+ * Life event already exists for this (userId, type, date) combination
7428
+ */
7429
+ 409: unknown;
7430
+ };
7431
+ };
7432
+ get: {
7433
+ req: EventControllerFindAllData;
7434
+ res: {
7435
+ /**
7436
+ * Life events retrieved successfully
7437
+ */
7438
+ 200: EventListResponseDto;
7439
+ };
7440
+ };
7441
+ };
7442
+ '/api/v1/{region}/bean/events/{id}': {
7443
+ get: {
7444
+ req: EventControllerFindOneData;
7445
+ res: {
7446
+ /**
7447
+ * Life event retrieved successfully
7448
+ */
7449
+ 200: EventResponseDto;
7450
+ /**
7451
+ * Life event not found
7452
+ */
7453
+ 404: unknown;
7454
+ };
7455
+ };
7456
+ put: {
7457
+ req: EventControllerUpdateData;
7458
+ res: {
7459
+ /**
7460
+ * Life event updated successfully
7461
+ */
7462
+ 200: EventResponseDto;
7463
+ /**
7464
+ * If-Match header is not a valid ISO 8601 date
7465
+ */
7466
+ 400: unknown;
7467
+ /**
7468
+ * Life event not found
7469
+ */
7470
+ 404: unknown;
7471
+ /**
7472
+ * Updated event conflicts with an existing (userId, type, date) combination
7473
+ */
7474
+ 409: unknown;
7475
+ /**
7476
+ * If-Match precondition failed (updatedAt mismatch)
7477
+ */
7478
+ 412: unknown;
7479
+ };
7480
+ };
7481
+ delete: {
7482
+ req: EventControllerDeleteData;
7483
+ res: {
7484
+ /**
7485
+ * Life event deleted successfully
7486
+ */
7487
+ 204: void;
7488
+ /**
7489
+ * Life event not found
7490
+ */
7491
+ 404: unknown;
7492
+ };
7493
+ };
7494
+ };
7495
+ '/api/v1/{region}/bean/events/{id}/slice': {
7496
+ get: {
7497
+ req: EventControllerGetSliceData;
7498
+ res: {
7499
+ /**
7500
+ * Time-series sliced by the life event range
7501
+ */
7502
+ 200: unknown;
7503
+ /**
7504
+ * accountPattern query param is empty
7505
+ */
7506
+ 400: unknown;
7507
+ /**
7508
+ * Life event not found
7509
+ */
7510
+ 404: unknown;
7511
+ };
7512
+ };
7513
+ };
6563
7514
  '/api/v1/{region}/bean/export/beancount': {
6564
7515
  get: {
6565
7516
  res: {
@@ -6850,6 +7801,32 @@ type $OpenApiTs = {
6850
7801
  };
6851
7802
  };
6852
7803
  };
7804
+ '/api/v1/{region}/bean/import/parser-coverage-miss': {
7805
+ post: {
7806
+ req: TelemetryControllerReportCoverageMissData;
7807
+ res: {
7808
+ /**
7809
+ * Coverage miss report received
7810
+ */
7811
+ 200: unknown;
7812
+ /**
7813
+ * Unauthorized
7814
+ */
7815
+ 401: unknown;
7816
+ };
7817
+ };
7818
+ };
7819
+ '/api/v1/{region}/bean/import/parser-coverage-metrics': {
7820
+ get: {
7821
+ req: TelemetryControllerGetCoverageMetricsData;
7822
+ res: {
7823
+ /**
7824
+ * Coverage metrics
7825
+ */
7826
+ 200: unknown;
7827
+ };
7828
+ };
7829
+ };
6853
7830
  '/api/v1/{region}/bean/nlp/process': {
6854
7831
  post: {
6855
7832
  req: NlpControllerProcessNaturalLanguageData;
@@ -6919,7 +7896,7 @@ type $OpenApiTs = {
6919
7896
  /**
6920
7897
  * Accounts retrieved successfully. Response type depends on groupBy parameter.
6921
7898
  */
6922
- 200: AccountsResponseDto | AssetClassAccountsResponseDto;
7899
+ 200: AccountsResponseDto | AssetClassAccountsResponseDto | HoldingAssetClassCrossAccountResponseDto;
6923
7900
  /**
6924
7901
  * User not authenticated
6925
7902
  */
@@ -6946,6 +7923,128 @@ type $OpenApiTs = {
6946
7923
  };
6947
7924
  };
6948
7925
  };
7926
+ '/api/v1/{region}/dashboard/expenses': {
7927
+ get: {
7928
+ req: DashboardControllerGetExpensesData;
7929
+ res: {
7930
+ /**
7931
+ * Expenses retrieved successfully
7932
+ */
7933
+ 200: ExpensesByCategoryResponseDto;
7934
+ /**
7935
+ * Invalid groupBy or period
7936
+ */
7937
+ 400: unknown;
7938
+ /**
7939
+ * User not authenticated
7940
+ */
7941
+ 401: unknown;
7942
+ };
7943
+ };
7944
+ };
7945
+ '/api/v1/{region}/investment/holdings/pnl': {
7946
+ get: {
7947
+ req: HoldingPnlControllerGetHoldingPnlData;
7948
+ res: {
7949
+ /**
7950
+ * Holding P&L retrieved successfully
7951
+ */
7952
+ 200: HoldingPnlResponseDto;
7953
+ /**
7954
+ * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
7955
+ */
7956
+ 400: unknown;
7957
+ /**
7958
+ * User not authenticated
7959
+ */
7960
+ 401: unknown;
7961
+ };
7962
+ };
7963
+ };
7964
+ '/api/v1/{region}/bean/prices': {
7965
+ post: {
7966
+ req: PriceControllerCreateData;
7967
+ res: {
7968
+ /**
7969
+ * Price created successfully
7970
+ */
7971
+ 201: PriceResponseDto;
7972
+ /**
7973
+ * Currency or quoteCurrency commodity not found
7974
+ */
7975
+ 404: unknown;
7976
+ /**
7977
+ * Price already exists for this currency pair and date
7978
+ */
7979
+ 409: unknown;
7980
+ };
7981
+ };
7982
+ get: {
7983
+ req: PriceControllerFindAllData;
7984
+ res: {
7985
+ /**
7986
+ * Prices retrieved successfully
7987
+ */
7988
+ 200: PriceListResponseDto;
7989
+ };
7990
+ };
7991
+ };
7992
+ '/api/v1/{region}/bean/prices/{id}': {
7993
+ get: {
7994
+ req: PriceControllerFindOneData;
7995
+ res: {
7996
+ /**
7997
+ * Price retrieved successfully
7998
+ */
7999
+ 200: PriceResponseDto;
8000
+ /**
8001
+ * Price not found
8002
+ */
8003
+ 404: unknown;
8004
+ };
8005
+ };
8006
+ put: {
8007
+ req: PriceControllerUpdateData;
8008
+ res: {
8009
+ /**
8010
+ * Price updated successfully
8011
+ */
8012
+ 200: PriceResponseDto;
8013
+ /**
8014
+ * Price not found
8015
+ */
8016
+ 404: unknown;
8017
+ /**
8018
+ * Updated price conflicts with existing price
8019
+ */
8020
+ 409: unknown;
8021
+ };
8022
+ };
8023
+ delete: {
8024
+ req: PriceControllerDeleteData;
8025
+ res: {
8026
+ /**
8027
+ * Price deleted successfully
8028
+ */
8029
+ 204: void;
8030
+ /**
8031
+ * Price not found
8032
+ */
8033
+ 404: unknown;
8034
+ };
8035
+ };
8036
+ };
8037
+ '/api/v1/{region}/bean/prices/bulk': {
8038
+ post: {
8039
+ req: PriceControllerBulkCreateData;
8040
+ res: {
8041
+ /**
8042
+ * Prices created successfully
8043
+ */
8044
+ 201: Array<PriceResponseDto>;
8045
+ };
8046
+ };
8047
+ };
6949
8048
  '/api/v1/{region}/reporting/portfolio/trends': {
6950
8049
  get: {
6951
8050
  req: ReportingControllerGetPortfolioTrendsData;
@@ -6961,6 +8060,21 @@ type $OpenApiTs = {
6961
8060
  };
6962
8061
  };
6963
8062
  };
8063
+ '/api/v1/{region}/reporting/cash-flow/trends': {
8064
+ get: {
8065
+ req: ReportingControllerGetCashFlowTrendsData;
8066
+ res: {
8067
+ /**
8068
+ * Cash-flow trends retrieved successfully
8069
+ */
8070
+ 200: CashFlowTrendsResponseDto;
8071
+ /**
8072
+ * User not authenticated
8073
+ */
8074
+ 401: unknown;
8075
+ };
8076
+ };
8077
+ };
6964
8078
  '/api/v1/{region}/reporting/snapshots/generate': {
6965
8079
  post: {
6966
8080
  req: ReportingControllerGenerateSnapshotData;
@@ -7469,7 +8583,7 @@ declare class ProviderSyncService {
7469
8583
  *
7470
8584
  * @param data The data for the request.
7471
8585
  * @param data.providerName Provider name
7472
- * @param data.region Region code
8586
+ * @param data.region Region code for tenant context
7473
8587
  * @param data.requestBody
7474
8588
  * @returns ProviderSyncResponseDto Sync completed successfully
7475
8589
  * @throws ApiError
@@ -7582,4 +8696,4 @@ type OpenAPIConfig = {
7582
8696
  };
7583
8697
  declare const OpenAPI: OpenAPIConfig;
7584
8698
 
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 };
8699
+ 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 };