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

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.
@@ -6,13 +6,9 @@ export type CreateAccountDto = {
6
6
  */
7
7
  path: string;
8
8
  /**
9
- * Display name to distinguish accounts at the same path (default: "")
9
+ * Account open date (server defaults to today)
10
10
  */
11
- displayName?: string;
12
- /**
13
- * Account open date
14
- */
15
- openDate: string;
11
+ openDate?: string;
16
12
  /**
17
13
  * Allowed currencies (null = no restriction)
18
14
  */
@@ -36,18 +32,14 @@ export type CreateAccountDto = {
36
32
  * Whether this is a custom (user-created) account
37
33
  */
38
34
  isCustom?: boolean;
39
- /**
40
- * i18n key for display name (overrides template)
41
- */
42
- i18nKey?: string;
43
35
  /**
44
36
  * Icon identifier (overrides template)
45
37
  */
46
38
  icon?: string;
47
39
  /**
48
- * Additional metadata
40
+ * Open directive metadata (NOT an opening-balance amount — use the opening-balance endpoint)
49
41
  */
50
- openMeta?: {
42
+ openDirectiveMeta?: {
51
43
  [key: string]: unknown;
52
44
  };
53
45
  /**
@@ -77,14 +69,49 @@ export type AccountResponseDto = {
77
69
  * Account path (hierarchical, colon-separated)
78
70
  */
79
71
  path: string;
80
- /**
81
- * Display name distinguishing multiple accounts at the same path
82
- */
83
- displayName: string;
84
72
  /**
85
73
  * Account type (root segment)
86
74
  */
87
75
  type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
76
+ /**
77
+ * Account-level asset sub-class (product type, e.g. STOCK/DEPOSIT/CREDIT_CARD/PERSONAL_LOAN). Computed from the account path via the asset-classifier (ADR-0077). Null for non-asset accounts (Income/Expenses/Equity) or unmatched paths.
78
+ */
79
+ assetSubClass?:
80
+ | 'DEPOSIT'
81
+ | 'CASH'
82
+ | 'MONEY_MARKET_FUND'
83
+ | 'STOCK'
84
+ | 'ETF'
85
+ | 'MUTUAL_FUND'
86
+ | 'EQUITY_COMPENSATION'
87
+ | 'GOVERNMENT_BOND'
88
+ | 'CORPORATE_BOND'
89
+ | 'BOND_FUND'
90
+ | 'PRIMARY_RESIDENCE'
91
+ | 'INVESTMENT_PROPERTY'
92
+ | 'REIT'
93
+ | 'GOLD'
94
+ | 'SILVER'
95
+ | 'PRECIOUS_METAL'
96
+ | 'PRECIOUS_METAL_FUND'
97
+ | 'COMMODITY'
98
+ | 'COMMODITY_FUND'
99
+ | 'CRYPTOCURRENCY'
100
+ | 'RETIREMENT_ACCOUNT'
101
+ | 'HEALTH_ACCOUNT'
102
+ | 'EDUCATION_ACCOUNT'
103
+ | 'INSURANCE'
104
+ | 'PRIVATE_EQUITY'
105
+ | 'HEDGE_FUND'
106
+ | 'COLLECTIBLES'
107
+ | 'MORTGAGE'
108
+ | 'STUDENT_LOAN'
109
+ | 'CREDIT_CARD'
110
+ | 'PERSONAL_LOAN'
111
+ | 'ACCOUNTS_PAYABLE'
112
+ | 'TAX_PAYABLE'
113
+ | 'OTHER'
114
+ | null;
88
115
  /**
89
116
  * Account status
90
117
  */
@@ -121,17 +148,17 @@ export type AccountResponseDto = {
121
148
  */
122
149
  isCustom: boolean;
123
150
  /**
124
- * i18n key for display name
151
+ * Localized display name (ADR-0114, read-time projection)
125
152
  */
126
- i18nKey?: string;
153
+ displayName?: string;
127
154
  /**
128
155
  * Icon identifier
129
156
  */
130
157
  icon?: string;
131
158
  /**
132
- * Account metadata
159
+ * Open directive metadata (ADR-0115 Decision 9)
133
160
  */
134
- openMeta?: {
161
+ openDirectiveMeta?: {
135
162
  [key: string]: unknown;
136
163
  };
137
164
  /**
@@ -161,6 +188,45 @@ export type AccountResponseDto = {
161
188
  */
162
189
  export type type = 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
163
190
 
191
+ /**
192
+ * Account-level asset sub-class (product type, e.g. STOCK/DEPOSIT/CREDIT_CARD/PERSONAL_LOAN). Computed from the account path via the asset-classifier (ADR-0077). Null for non-asset accounts (Income/Expenses/Equity) or unmatched paths.
193
+ */
194
+ export type assetSubClass =
195
+ | 'DEPOSIT'
196
+ | 'CASH'
197
+ | 'MONEY_MARKET_FUND'
198
+ | 'STOCK'
199
+ | 'ETF'
200
+ | 'MUTUAL_FUND'
201
+ | 'EQUITY_COMPENSATION'
202
+ | 'GOVERNMENT_BOND'
203
+ | 'CORPORATE_BOND'
204
+ | 'BOND_FUND'
205
+ | 'PRIMARY_RESIDENCE'
206
+ | 'INVESTMENT_PROPERTY'
207
+ | 'REIT'
208
+ | 'GOLD'
209
+ | 'SILVER'
210
+ | 'PRECIOUS_METAL'
211
+ | 'PRECIOUS_METAL_FUND'
212
+ | 'COMMODITY'
213
+ | 'COMMODITY_FUND'
214
+ | 'CRYPTOCURRENCY'
215
+ | 'RETIREMENT_ACCOUNT'
216
+ | 'HEALTH_ACCOUNT'
217
+ | 'EDUCATION_ACCOUNT'
218
+ | 'INSURANCE'
219
+ | 'PRIVATE_EQUITY'
220
+ | 'HEDGE_FUND'
221
+ | 'COLLECTIBLES'
222
+ | 'MORTGAGE'
223
+ | 'STUDENT_LOAN'
224
+ | 'CREDIT_CARD'
225
+ | 'PERSONAL_LOAN'
226
+ | 'ACCOUNTS_PAYABLE'
227
+ | 'TAX_PAYABLE'
228
+ | 'OTHER';
229
+
164
230
  /**
165
231
  * Account status
166
232
  */
@@ -178,10 +244,6 @@ export type AccountListResponseDto = {
178
244
  };
179
245
 
180
246
  export type UpdateAccountDto = {
181
- /**
182
- * Display name to distinguish accounts at the same path
183
- */
184
- displayName?: string;
185
247
  /**
186
248
  * Allowed currencies (null = no restriction)
187
249
  */
@@ -197,18 +259,14 @@ export type UpdateAccountDto = {
197
259
  | 'STRICT'
198
260
  | 'STRICT_WITH_SIZE'
199
261
  | 'NONE';
200
- /**
201
- * i18n key for display name
202
- */
203
- i18nKey?: string;
204
262
  /**
205
263
  * Icon identifier
206
264
  */
207
265
  icon?: string;
208
266
  /**
209
- * Additional metadata (merged with existing)
267
+ * Open directive metadata (merged with existing; NOT an opening-balance amount)
210
268
  */
211
- openMeta?: {
269
+ openDirectiveMeta?: {
212
270
  [key: string]: unknown;
213
271
  };
214
272
  /**
@@ -237,6 +295,28 @@ export type ReopenAccountDto = {
237
295
  reopenDate?: string;
238
296
  };
239
297
 
298
+ export type CreateOpeningBalanceDto = {
299
+ /**
300
+ * Opening balance amount (non-negative)
301
+ */
302
+ amount: number;
303
+ /**
304
+ * Currency code
305
+ */
306
+ currency: string;
307
+ /**
308
+ * Opening-balance date (defaults to now)
309
+ */
310
+ date?: string;
311
+ };
312
+
313
+ export type OpeningBalanceResultDto = {
314
+ /**
315
+ * Created opening-balance transaction id.
316
+ */
317
+ transactionId: string;
318
+ };
319
+
240
320
  export type AccountStandardResponseDto = {
241
321
  /**
242
322
  * Account path (hierarchical, colon-separated)
@@ -246,10 +326,6 @@ export type AccountStandardResponseDto = {
246
326
  * Account type in Beancount hierarchy
247
327
  */
248
328
  type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
249
- /**
250
- * i18n key for localized display name
251
- */
252
- i18nKey: string;
253
329
  /**
254
330
  * Short localized display name
255
331
  */
@@ -266,8 +342,64 @@ export type AccountStandardResponseDto = {
266
342
  * Icon identifier for UI display
267
343
  */
268
344
  icon: string;
345
+ /**
346
+ * Onboarding product category (coarse grouping derived from assetSubClass)
347
+ */
348
+ productCategory:
349
+ | 'cash'
350
+ | 'investment'
351
+ | 'credit_card'
352
+ | 'loan'
353
+ | 'payable_tax'
354
+ | 'other';
355
+ /**
356
+ * Asset class (LIQUIDITY/EQUITY/.../LIABILITY), derived at read time from classification rules
357
+ */
358
+ assetClass?:
359
+ | 'LIQUIDITY'
360
+ | 'EQUITY'
361
+ | 'FIXED_INCOME'
362
+ | 'PRECIOUS_METALS'
363
+ | 'COMMODITY'
364
+ | 'INSURANCE'
365
+ | 'ALTERNATIVE_INVESTMENT'
366
+ | 'PERSONAL_ASSETS'
367
+ | 'LIABILITY'
368
+ | 'REAL_ESTATE'
369
+ | 'INDEX';
370
+ /**
371
+ * Asset sub-class (product type, derived at read time from classification rules)
372
+ */
373
+ assetSubClass?: string;
269
374
  };
270
375
 
376
+ /**
377
+ * Onboarding product category (coarse grouping derived from assetSubClass)
378
+ */
379
+ export type productCategory =
380
+ | 'cash'
381
+ | 'investment'
382
+ | 'credit_card'
383
+ | 'loan'
384
+ | 'payable_tax'
385
+ | 'other';
386
+
387
+ /**
388
+ * Asset class (LIQUIDITY/EQUITY/.../LIABILITY), derived at read time from classification rules
389
+ */
390
+ export type assetClass =
391
+ | 'LIQUIDITY'
392
+ | 'EQUITY'
393
+ | 'FIXED_INCOME'
394
+ | 'PRECIOUS_METALS'
395
+ | 'COMMODITY'
396
+ | 'INSURANCE'
397
+ | 'ALTERNATIVE_INVESTMENT'
398
+ | 'PERSONAL_ASSETS'
399
+ | 'LIABILITY'
400
+ | 'REAL_ESTATE'
401
+ | 'INDEX';
402
+
271
403
  export type AccountStandardListResponseDto = {
272
404
  /**
273
405
  * Array of account templates
@@ -284,10 +416,6 @@ export type AccountStandardListResponseDto = {
284
416
  };
285
417
 
286
418
  export type TemplateMetadataDto = {
287
- /**
288
- * Whether this path can be extended
289
- */
290
- extendable: boolean;
291
419
  /**
292
420
  * Root account type
293
421
  */
@@ -848,6 +976,51 @@ export type flag2 =
848
976
  */
849
977
  export type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
850
978
 
979
+ export type BalanceByCurrencyDto = {
980
+ /**
981
+ * ISO 4217 currency code
982
+ */
983
+ currency: string;
984
+ /**
985
+ * Balance amount
986
+ */
987
+ balance: string;
988
+ };
989
+
990
+ export type ExchangeRateWarningDto = {
991
+ /**
992
+ * Warning type
993
+ */
994
+ type: string;
995
+ /**
996
+ * Currency without exchange rate
997
+ */
998
+ currency: string;
999
+ /**
1000
+ * Total amount affected
1001
+ */
1002
+ totalAmount: string;
1003
+ };
1004
+
1005
+ export type TransactionListSummaryDto = {
1006
+ /**
1007
+ * Partial converted total in base currency (rated currencies only, raw Beancount sign). When warnings is non-empty this excludes currencies missing an FX rate; may be "0.00" if ALL non-base currencies lack a rate. Converted at the dateTo (or current) available rate.
1008
+ */
1009
+ totalAmount: string;
1010
+ /**
1011
+ * Base currency (ISO 4217)
1012
+ */
1013
+ currency: string;
1014
+ /**
1015
+ * Raw (unconverted) balance per currency
1016
+ */
1017
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
1018
+ /**
1019
+ * Currencies missing an FX rate (omitted when empty)
1020
+ */
1021
+ warnings?: Array<ExchangeRateWarningDto>;
1022
+ };
1023
+
851
1024
  export type TransactionListResponseDto = {
852
1025
  /**
853
1026
  * List of transactions
@@ -865,6 +1038,10 @@ export type TransactionListResponseDto = {
865
1038
  * Number of items skipped
866
1039
  */
867
1040
  offset: number;
1041
+ /**
1042
+ * Amount summary for the full filtered set (#514). Present only when the request has a single account OR category viewpoint; omitted for search-only / plain-list / dual-perspective requests.
1043
+ */
1044
+ summary?: TransactionListSummaryDto;
868
1045
  };
869
1046
 
870
1047
  export type TagSuggestionDto = {
@@ -1917,6 +2094,108 @@ export type UpdateCommodityDto = {
1917
2094
  };
1918
2095
  };
1919
2096
 
2097
+ export type CreateBeanPriceDto = {
2098
+ /**
2099
+ * Currency being priced (e.g., USD, AAPL, BTC)
2100
+ */
2101
+ currency: string;
2102
+ /**
2103
+ * Quote currency (pricing currency, e.g., CNY, EUR)
2104
+ */
2105
+ quoteCurrency: string;
2106
+ /**
2107
+ * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
2108
+ */
2109
+ amount: number;
2110
+ /**
2111
+ * Price date (ISO 8601 format)
2112
+ */
2113
+ date: string;
2114
+ /**
2115
+ * Metadata (validated by Zod schema, max field lengths enforced)
2116
+ */
2117
+ metadata?: {
2118
+ [key: string]: unknown;
2119
+ };
2120
+ };
2121
+
2122
+ export type PriceResponseDto = {
2123
+ /**
2124
+ * Unique identifier
2125
+ */
2126
+ id: string;
2127
+ /**
2128
+ * User ID (owner of the price)
2129
+ */
2130
+ userId: string;
2131
+ /**
2132
+ * Currency being priced (e.g., USD, AAPL, BTC)
2133
+ */
2134
+ currency: string;
2135
+ /**
2136
+ * Quote currency (pricing currency, e.g., USD, CNY)
2137
+ */
2138
+ quoteCurrency: string;
2139
+ /**
2140
+ * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
2141
+ */
2142
+ amount: number;
2143
+ /**
2144
+ * Price date (ISO 8601 format). Represents the date this price was valid.
2145
+ */
2146
+ date: string;
2147
+ /**
2148
+ * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
2149
+ */
2150
+ meta: {
2151
+ [key: string]: unknown;
2152
+ };
2153
+ /**
2154
+ * Creation timestamp
2155
+ */
2156
+ createdAt: string;
2157
+ /**
2158
+ * Last update timestamp
2159
+ */
2160
+ updatedAt: string;
2161
+ };
2162
+
2163
+ export type PriceListResponseDto = {
2164
+ /**
2165
+ * List of prices
2166
+ */
2167
+ items: Array<PriceResponseDto>;
2168
+ /**
2169
+ * Total number of prices
2170
+ */
2171
+ total: number;
2172
+ };
2173
+
2174
+ export type UpdateBeanPriceDto = {
2175
+ /**
2176
+ * Currency being priced
2177
+ */
2178
+ currency?: string;
2179
+ /**
2180
+ * Quote currency (pricing currency)
2181
+ */
2182
+ quoteCurrency?: string;
2183
+ /**
2184
+ * Price amount (MUST be >= 0 per Beancount spec)
2185
+ */
2186
+ amount?: number;
2187
+ /**
2188
+ * Price date (ISO 8601 format)
2189
+ */
2190
+ date?: string;
2191
+ /**
2192
+ * Metadata
2193
+ */
2194
+ metadata?: {
2195
+ [key: string]: unknown;
2196
+ };
2197
+ };
2198
+
1920
2199
  export type CreateRecurringRuleDto = {
1921
2200
  /**
1922
2201
  * Rule name (unique per user)
@@ -2556,29 +2835,341 @@ export type ForecastResponseDto = {
2556
2835
  periodEnd: string;
2557
2836
  };
2558
2837
 
2559
- export type CreateTransactionRuleDto = {
2560
- name: string;
2561
- description?: string;
2562
- narrationKeywords?: Array<unknown[]>;
2563
- payeeKeywords?: Array<unknown[]>;
2564
- categoryKeywords?: Array<unknown[]>;
2838
+ export type CurrencyBalanceDto = {
2565
2839
  /**
2566
- * Payment method keywords (e.g., HuaBei, YuEBao)
2840
+ * ISO 4217 currency code
2567
2841
  */
2568
- methodKeywords?: Array<unknown[]>;
2842
+ currency: string;
2569
2843
  /**
2570
- * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2844
+ * Balance amount
2571
2845
  */
2572
- categoryAccount?: string;
2573
- matchLogic: 'OR' | 'AND';
2846
+ balance: string;
2847
+ };
2848
+
2849
+ export type TimeSeriesPointDto = {
2574
2850
  /**
2575
- * Minimum transaction amount (inclusive)
2851
+ * Date in YYYY-MM-DD format
2576
2852
  */
2577
- amountMin?: number;
2853
+ date: string;
2578
2854
  /**
2579
- * Maximum transaction amount (inclusive)
2855
+ * Value at this date (in base currency)
2580
2856
  */
2581
- amountMax?: number;
2857
+ value: string;
2858
+ /**
2859
+ * Change from previous point
2860
+ */
2861
+ change?: {
2862
+ [key: string]: unknown;
2863
+ };
2864
+ /**
2865
+ * Total assets at this date (in base currency)
2866
+ */
2867
+ assets?: string;
2868
+ /**
2869
+ * Total liabilities at this date (in base currency)
2870
+ */
2871
+ liabilities?: string;
2872
+ /**
2873
+ * Multi-currency breakdown for this point
2874
+ */
2875
+ byCurrency?: Array<CurrencyBalanceDto>;
2876
+ };
2877
+
2878
+ export type TrendSummaryDto = {
2879
+ /**
2880
+ * Value at start of period
2881
+ */
2882
+ startValue: string;
2883
+ /**
2884
+ * Value at end of period
2885
+ */
2886
+ endValue: string;
2887
+ /**
2888
+ * Total change over period
2889
+ */
2890
+ totalChange: string;
2891
+ /**
2892
+ * Total change percentage
2893
+ */
2894
+ totalChangePercentage: string;
2895
+ };
2896
+
2897
+ export type MultiCurrencyPointDto = {
2898
+ /**
2899
+ * Date in YYYY-MM-DD format
2900
+ */
2901
+ date: string;
2902
+ /**
2903
+ * Balances by currency
2904
+ */
2905
+ byCurrency: Array<CurrencyBalanceDto>;
2906
+ };
2907
+
2908
+ export type PortfolioTrendsResponseDto = {
2909
+ /**
2910
+ * Time series data points
2911
+ */
2912
+ series: Array<TimeSeriesPointDto>;
2913
+ /**
2914
+ * Period summary
2915
+ */
2916
+ summary: TrendSummaryDto;
2917
+ /**
2918
+ * Period requested
2919
+ */
2920
+ period: string;
2921
+ /**
2922
+ * Data granularity
2923
+ */
2924
+ granularity: string;
2925
+ /**
2926
+ * Base currency for converted values
2927
+ */
2928
+ currency: string;
2929
+ /**
2930
+ * Multi-currency time series (each point has currency breakdown)
2931
+ */
2932
+ byCurrency?: Array<MultiCurrencyPointDto>;
2933
+ /**
2934
+ * Exchange rate warnings
2935
+ */
2936
+ warnings?: Array<ExchangeRateWarningDto>;
2937
+ };
2938
+
2939
+ export type CashFlowPointDto = {
2940
+ /**
2941
+ * Month key (YYYY-MM)
2942
+ */
2943
+ month: string;
2944
+ /**
2945
+ * Income in base currency (absolute, converted)
2946
+ */
2947
+ income: string;
2948
+ /**
2949
+ * Expense in base currency (absolute, converted)
2950
+ */
2951
+ expense: string;
2952
+ /**
2953
+ * netSavings = income − expense (savings positive)
2954
+ */
2955
+ netSavings: string;
2956
+ };
2957
+
2958
+ export type CashFlowTrendSummaryDto = {
2959
+ /**
2960
+ * Total income across the period
2961
+ */
2962
+ totalIncome: string;
2963
+ /**
2964
+ * Total expense across the period
2965
+ */
2966
+ totalExpense: string;
2967
+ /**
2968
+ * income − expense across the period
2969
+ */
2970
+ totalNetSavings: string;
2971
+ /**
2972
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
2973
+ */
2974
+ averageMonthlyNetSavings: string;
2975
+ };
2976
+
2977
+ export type CashFlowTrendsResponseDto = {
2978
+ /**
2979
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
2980
+ */
2981
+ series: Array<CashFlowPointDto>;
2982
+ /**
2983
+ * Period totals
2984
+ */
2985
+ summary: CashFlowTrendSummaryDto;
2986
+ /**
2987
+ * Period requested
2988
+ */
2989
+ period: string;
2990
+ /**
2991
+ * Data granularity (v1 returns month buckets)
2992
+ */
2993
+ granularity: string;
2994
+ /**
2995
+ * Base currency for converted values
2996
+ */
2997
+ currency: string;
2998
+ /**
2999
+ * Exchange rate warnings (e.g. missing rate for a currency)
3000
+ */
3001
+ warnings?: Array<ExchangeRateWarningDto>;
3002
+ };
3003
+
3004
+ export type GenerateSnapshotBody = unknown;
3005
+
3006
+ export type GenerateSnapshotResponse = unknown;
3007
+
3008
+ export type BackfillSnapshotsBody = unknown;
3009
+
3010
+ export type BackfillSnapshotsResponse = unknown;
3011
+
3012
+ export type DeleteOwnUserDto = {
3013
+ /**
3014
+ * Access token for user verification
3015
+ */
3016
+ accessToken: string;
3017
+ };
3018
+
3019
+ export type SignupDto = {
3020
+ /**
3021
+ * Cloudflare Turnstile verification token (optional when Turnstile disabled)
3022
+ */
3023
+ turnstileToken?: string;
3024
+ };
3025
+
3026
+ export type SignupResponseDto = {
3027
+ /**
3028
+ * JWT auth token
3029
+ */
3030
+ authToken: string;
3031
+ /**
3032
+ * Auto-generated access token
3033
+ */
3034
+ accessToken: string;
3035
+ /**
3036
+ * Assigned user role
3037
+ */
3038
+ role: 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
3039
+ };
3040
+
3041
+ /**
3042
+ * Assigned user role
3043
+ */
3044
+ export type role = 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
3045
+
3046
+ export type UpdateUserSettingDto = {
3047
+ /**
3048
+ * Security ID
3049
+ */
3050
+ secId?: number;
3051
+ /**
3052
+ * Annual interest rate
3053
+ */
3054
+ annualInterestRate?: number;
3055
+ /**
3056
+ * Currency code
3057
+ */
3058
+ currency?: string;
3059
+ /**
3060
+ * Base currency code
3061
+ */
3062
+ baseCurrency?: string;
3063
+ /**
3064
+ * Benchmark symbol
3065
+ */
3066
+ benchmark?: string;
3067
+ /**
3068
+ * Color scheme
3069
+ */
3070
+ colorScheme?: 'DARK' | 'LIGHT';
3071
+ /**
3072
+ * Date range filter
3073
+ */
3074
+ dateRange?: string;
3075
+ /**
3076
+ * Emergency fund amount
3077
+ */
3078
+ emergencyFund?: number;
3079
+ /**
3080
+ * Account filter IDs
3081
+ */
3082
+ 'filters.accounts'?: Array<string>;
3083
+ /**
3084
+ * Asset class filters
3085
+ */
3086
+ 'filters.assetClasses'?: Array<string>;
3087
+ /**
3088
+ * Data source filter
3089
+ */
3090
+ 'filters.dataSource'?: string;
3091
+ /**
3092
+ * Symbol filter
3093
+ */
3094
+ 'filters.symbol'?: string;
3095
+ /**
3096
+ * Tag filters
3097
+ */
3098
+ 'filters.tags'?: Array<string>;
3099
+ /**
3100
+ * Enable experimental features
3101
+ */
3102
+ isExperimentalFeatures?: boolean;
3103
+ /**
3104
+ * Enable restricted view mode
3105
+ */
3106
+ isRestrictedView?: boolean;
3107
+ /**
3108
+ * Language code
3109
+ */
3110
+ language?: string;
3111
+ /**
3112
+ * Locale code
3113
+ */
3114
+ locale?: string;
3115
+ /**
3116
+ * Projected total amount
3117
+ */
3118
+ projectedTotalAmount?: number;
3119
+ /**
3120
+ * Retirement date in ISO 8601 format
3121
+ */
3122
+ retirementDate?: string;
3123
+ /**
3124
+ * Savings rate percentage
3125
+ */
3126
+ savingsRate?: number;
3127
+ /**
3128
+ * View mode
3129
+ */
3130
+ viewMode?: 'DEFAULT' | 'ZEN';
3131
+ };
3132
+
3133
+ /**
3134
+ * Color scheme
3135
+ */
3136
+ export type colorScheme = 'DARK' | 'LIGHT';
3137
+
3138
+ /**
3139
+ * View mode
3140
+ */
3141
+ export type viewMode = 'DEFAULT' | 'ZEN';
3142
+
3143
+ export type UpdatePropertyDto = {
3144
+ /**
3145
+ * Property value
3146
+ */
3147
+ value: string;
3148
+ };
3149
+
3150
+ export type CreateTransactionRuleDto = {
3151
+ name: string;
3152
+ description?: string;
3153
+ narrationKeywords?: Array<unknown[]>;
3154
+ payeeKeywords?: Array<unknown[]>;
3155
+ categoryKeywords?: Array<unknown[]>;
3156
+ /**
3157
+ * Payment method keywords (e.g., HuaBei, YuEBao)
3158
+ */
3159
+ methodKeywords?: Array<unknown[]>;
3160
+ /**
3161
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
3162
+ */
3163
+ categoryAccount?: string;
3164
+ matchLogic: 'OR' | 'AND';
3165
+ /**
3166
+ * Minimum transaction amount (inclusive)
3167
+ */
3168
+ amountMin?: number;
3169
+ /**
3170
+ * Maximum transaction amount (inclusive)
3171
+ */
3172
+ amountMax?: number;
2582
3173
  priority: number;
2583
3174
  additionalTags?: Array<unknown[]>;
2584
3175
  additionalMetadata?: {
@@ -2853,180 +3444,62 @@ export type UpdateTransactionRuleDto = {
2853
3444
  description?: string;
2854
3445
  narrationKeywords?: Array<unknown[]>;
2855
3446
  payeeKeywords?: Array<unknown[]>;
2856
- categoryKeywords?: Array<unknown[]>;
2857
- /**
2858
- * Payment method keywords (e.g., HuaBei, YuEBao)
2859
- */
2860
- methodKeywords?: Array<unknown[]>;
2861
- /**
2862
- * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2863
- */
2864
- categoryAccount?: string;
2865
- matchLogic?: 'OR' | 'AND';
2866
- /**
2867
- * Minimum transaction amount (inclusive)
2868
- */
2869
- amountMin?: number;
2870
- /**
2871
- * Maximum transaction amount (inclusive)
2872
- */
2873
- amountMax?: number;
2874
- priority?: number;
2875
- /**
2876
- * Enable or disable the rule
2877
- */
2878
- enabled?: boolean;
2879
- additionalTags?: Array<unknown[]>;
2880
- additionalMetadata?: {
2881
- [key: string]: unknown;
2882
- };
2883
- };
2884
-
2885
- export type TestRuleDto = {
2886
- narration: string;
2887
- payee?: string;
2888
- categoryAccount?: string;
2889
- amount?: number;
2890
- currency?: string;
2891
- };
2892
-
2893
- export type TestRuleResponseDto = {
2894
- /**
2895
- * Rule ID that was tested
2896
- */
2897
- ruleId: string;
2898
- /**
2899
- * Whether the rule matched the test data
2900
- */
2901
- matches: boolean;
2902
- /**
2903
- * Match confidence score (0-1)
2904
- */
2905
- confidence: number;
2906
- /**
2907
- * Details of which fields matched
2908
- */
2909
- matchDetails: {
2910
- [key: string]: unknown;
2911
- };
2912
- };
2913
-
2914
- export type DeleteOwnUserDto = {
2915
- /**
2916
- * Access token for user verification
2917
- */
2918
- accessToken: string;
2919
- };
2920
-
2921
- export type SignupDto = {
2922
- /**
2923
- * Cloudflare Turnstile verification token (optional when Turnstile disabled)
2924
- */
2925
- turnstileToken?: string;
2926
- };
2927
-
2928
- export type UpdateUserSettingDto = {
2929
- /**
2930
- * Security ID
2931
- */
2932
- secId?: number;
2933
- /**
2934
- * Annual interest rate
2935
- */
2936
- annualInterestRate?: number;
2937
- /**
2938
- * Currency code
2939
- */
2940
- currency?: string;
2941
- /**
2942
- * Base currency code
2943
- */
2944
- baseCurrency?: string;
2945
- /**
2946
- * Benchmark symbol
2947
- */
2948
- benchmark?: string;
2949
- /**
2950
- * Color scheme
2951
- */
2952
- colorScheme?: 'DARK' | 'LIGHT';
2953
- /**
2954
- * Date range filter
2955
- */
2956
- dateRange?: string;
2957
- /**
2958
- * Emergency fund amount
2959
- */
2960
- emergencyFund?: number;
2961
- /**
2962
- * Account filter IDs
2963
- */
2964
- 'filters.accounts'?: Array<string>;
2965
- /**
2966
- * Asset class filters
2967
- */
2968
- 'filters.assetClasses'?: Array<string>;
2969
- /**
2970
- * Data source filter
2971
- */
2972
- 'filters.dataSource'?: string;
2973
- /**
2974
- * Symbol filter
2975
- */
2976
- 'filters.symbol'?: string;
2977
- /**
2978
- * Tag filters
2979
- */
2980
- 'filters.tags'?: Array<string>;
3447
+ categoryKeywords?: Array<unknown[]>;
2981
3448
  /**
2982
- * Enable experimental features
3449
+ * Payment method keywords (e.g., HuaBei, YuEBao)
2983
3450
  */
2984
- isExperimentalFeatures?: boolean;
3451
+ methodKeywords?: Array<unknown[]>;
2985
3452
  /**
2986
- * Enable restricted view mode
3453
+ * Destination account for expenses/income (e.g., Expenses:Food:Coffee)
2987
3454
  */
2988
- isRestrictedView?: boolean;
3455
+ categoryAccount?: string;
3456
+ matchLogic?: 'OR' | 'AND';
2989
3457
  /**
2990
- * Language code
3458
+ * Minimum transaction amount (inclusive)
2991
3459
  */
2992
- language?: string;
3460
+ amountMin?: number;
2993
3461
  /**
2994
- * Locale code
3462
+ * Maximum transaction amount (inclusive)
2995
3463
  */
2996
- locale?: string;
3464
+ amountMax?: number;
3465
+ priority?: number;
2997
3466
  /**
2998
- * Projected total amount
3467
+ * Enable or disable the rule
2999
3468
  */
3000
- projectedTotalAmount?: number;
3469
+ enabled?: boolean;
3470
+ additionalTags?: Array<unknown[]>;
3471
+ additionalMetadata?: {
3472
+ [key: string]: unknown;
3473
+ };
3474
+ };
3475
+
3476
+ export type TestRuleDto = {
3477
+ narration: string;
3478
+ payee?: string;
3479
+ categoryAccount?: string;
3480
+ amount?: number;
3481
+ currency?: string;
3482
+ };
3483
+
3484
+ export type TestRuleResponseDto = {
3001
3485
  /**
3002
- * Retirement date in ISO 8601 format
3486
+ * Rule ID that was tested
3003
3487
  */
3004
- retirementDate?: string;
3488
+ ruleId: string;
3005
3489
  /**
3006
- * Savings rate percentage
3490
+ * Whether the rule matched the test data
3007
3491
  */
3008
- savingsRate?: number;
3492
+ matches: boolean;
3009
3493
  /**
3010
- * View mode
3494
+ * Match confidence score (0-1)
3011
3495
  */
3012
- viewMode?: 'DEFAULT' | 'ZEN';
3013
- };
3014
-
3015
- /**
3016
- * Color scheme
3017
- */
3018
- export type colorScheme = 'DARK' | 'LIGHT';
3019
-
3020
- /**
3021
- * View mode
3022
- */
3023
- export type viewMode = 'DEFAULT' | 'ZEN';
3024
-
3025
- export type UpdatePropertyDto = {
3496
+ confidence: number;
3026
3497
  /**
3027
- * Property value
3498
+ * Details of which fields matched
3028
3499
  */
3029
- value: string;
3500
+ matchDetails: {
3501
+ [key: string]: unknown;
3502
+ };
3030
3503
  };
3031
3504
 
3032
3505
  export type CreateBeanEventDto = {
@@ -3119,6 +3592,160 @@ export type UpdateBeanEventDto = {
3119
3592
  };
3120
3593
  };
3121
3594
 
3595
+ export type OnboardingAccountDto = {
3596
+ /**
3597
+ * Account path (Assets/Liabilities only; format validated by the account service)
3598
+ */
3599
+ path: string;
3600
+ /**
3601
+ * ISO 4217 currency code (3 letters)
3602
+ */
3603
+ currency: string;
3604
+ /**
3605
+ * Opening balance as a non-negative Decimal string (e.g. "1000.00")
3606
+ */
3607
+ openingBalance?: string;
3608
+ /**
3609
+ * Platform ID to bind the account to (references Platform.id); omit for unbound
3610
+ */
3611
+ platformId?: string;
3612
+ };
3613
+
3614
+ export type OnboardingDto = {
3615
+ /**
3616
+ * Asset/Liability accounts to register with opening balances
3617
+ */
3618
+ accounts?: Array<OnboardingAccountDto>;
3619
+ /**
3620
+ * Skip asset registration; only bootstrap the core account set
3621
+ */
3622
+ skipAssetRegistration?: boolean;
3623
+ };
3624
+
3625
+ export type ActualBalanceDto = {
3626
+ /**
3627
+ * Actual balance amount as a decimal string (preserves precision for tolerance inference).
3628
+ */
3629
+ amount: string;
3630
+ /**
3631
+ * Currency code (ISO 4217 or commodity ticker).
3632
+ */
3633
+ ccy: string;
3634
+ };
3635
+
3636
+ export type ComputeReconciliationDto = {
3637
+ /**
3638
+ * BeanAccount id to reconcile.
3639
+ */
3640
+ accountId: string;
3641
+ /**
3642
+ * Assertion date (ISO 8601, e.g. "2026-07-24").
3643
+ */
3644
+ asOfDate: string;
3645
+ /**
3646
+ * Actual balance from the external statement.
3647
+ */
3648
+ actualBalance: ActualBalanceDto;
3649
+ };
3650
+
3651
+ export type ReconciliationComputeResultDto = {
3652
+ accountId: string;
3653
+ asOfDate: string;
3654
+ /**
3655
+ * System-computed book balance (decimal string).
3656
+ */
3657
+ bookBalance: string;
3658
+ /**
3659
+ * User-entered actual balance (decimal string).
3660
+ */
3661
+ actualBalance: string;
3662
+ currency: string;
3663
+ /**
3664
+ * Diff = book − actual (decimal string).
3665
+ */
3666
+ diff: string;
3667
+ /**
3668
+ * Applied tolerance (decimal string).
3669
+ */
3670
+ tolerance: string;
3671
+ /**
3672
+ * true when |diff| ≤ tolerance.
3673
+ */
3674
+ withinTolerance: boolean;
3675
+ /**
3676
+ * Suggested next action: assert when within tolerance, pad otherwise.
3677
+ */
3678
+ suggestedAction: 'assert' | 'pad';
3679
+ };
3680
+
3681
+ /**
3682
+ * Suggested next action: assert when within tolerance, pad otherwise.
3683
+ */
3684
+ export type suggestedAction = 'assert' | 'pad';
3685
+
3686
+ export type AssertReconciliationDto = {
3687
+ /**
3688
+ * BeanAccount id to reconcile.
3689
+ */
3690
+ accountId: string;
3691
+ /**
3692
+ * Assertion date (ISO 8601, e.g. "2026-07-24").
3693
+ */
3694
+ asOfDate: string;
3695
+ /**
3696
+ * Actual balance from the external statement.
3697
+ */
3698
+ actualBalance: ActualBalanceDto;
3699
+ /**
3700
+ * Optional explicit tolerance override. Omit to infer from amount precision (Beancount default).
3701
+ */
3702
+ tolerance?: string;
3703
+ };
3704
+
3705
+ export type ReconciliationRecordDto = {
3706
+ id: string;
3707
+ accountId: string;
3708
+ date: string;
3709
+ /**
3710
+ * Asserted (actual) amount.
3711
+ */
3712
+ amount: string;
3713
+ currency: string;
3714
+ tolerance?: string;
3715
+ /**
3716
+ * book − actual.
3717
+ */
3718
+ diffAmount?: string;
3719
+ diffCurrency?: string;
3720
+ createdAt: string;
3721
+ };
3722
+
3723
+ export type PadReconciliationDto = {
3724
+ /**
3725
+ * BeanAccount id to reconcile.
3726
+ */
3727
+ accountId: string;
3728
+ /**
3729
+ * Assertion date (ISO 8601, e.g. "2026-07-24").
3730
+ */
3731
+ asOfDate: string;
3732
+ /**
3733
+ * Actual balance from the external statement.
3734
+ */
3735
+ actualBalance: ActualBalanceDto;
3736
+ /**
3737
+ * Pad source account. Defaults to Equity:Opening-Balances (official Beancount convention).
3738
+ */
3739
+ sourceAccount?: string;
3740
+ };
3741
+
3742
+ export type PadResultDto = {
3743
+ /**
3744
+ * Created pad adjusting transaction id.
3745
+ */
3746
+ transactionId: string;
3747
+ };
3748
+
3122
3749
  export type FileImportDto = {
3123
3750
  /**
3124
3751
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -3390,119 +4017,31 @@ export type UpdateMapperDefaultsDto = {
3390
4017
  /**
3391
4018
  * Default expense account (optional)
3392
4019
  */
3393
- expenseAccount?: string;
3394
- /**
3395
- * Default income account (optional)
3396
- */
3397
- incomeAccount?: string;
3398
- /**
3399
- * Payment method to source account mapping. Maps payment method keywords to Beancount account paths. Used by Alipay/WeChat importers to determine sourceAccount based on payment method (e.g., HuaBei, CreditCard).
3400
- */
3401
- methodAccountMapping?: {
3402
- [key: string]: unknown;
3403
- };
3404
- };
3405
-
3406
- export type UpdateConfigDataDto = {
3407
- /**
3408
- * Mapper defaults configuration
3409
- */
3410
- defaults?: UpdateMapperDefaultsDto;
3411
- };
3412
-
3413
- export type UpdateImporterConfigDto = {
3414
- /**
3415
- * Configuration data (v1 schema)
3416
- */
3417
- data?: UpdateConfigDataDto;
3418
- };
3419
-
3420
- export type CreatePlatformDto = {
3421
- /**
3422
- * Platform name
3423
- */
3424
- name: string;
3425
- /**
3426
- * Platform canonical identifier (lowercase, kebab-case)
3427
- */
3428
- canonical: string;
3429
- /**
3430
- * Platform aliases (multi-language names for lookup)
3431
- */
3432
- aliases: Array<string>;
3433
- /**
3434
- * Platform URL
3435
- */
3436
- url: string;
3437
- /**
3438
- * Platform type
3439
- */
3440
- type:
3441
- | 'BANK'
3442
- | 'BROKERAGE'
3443
- | 'CRYPTO_EXCHANGE'
3444
- | 'PAYMENT'
3445
- | 'INVESTMENT'
3446
- | 'INSURANCE'
3447
- | 'OTHER';
3448
- /**
3449
- * Platform logo URL
3450
- */
3451
- logoUrl?: string;
3452
- /**
3453
- * Whether the platform is active
3454
- */
3455
- isActive?: boolean;
3456
- };
3457
-
3458
- /**
3459
- * Platform type
3460
- */
3461
- export type type3 =
3462
- | 'BANK'
3463
- | 'BROKERAGE'
3464
- | 'CRYPTO_EXCHANGE'
3465
- | 'PAYMENT'
3466
- | 'INVESTMENT'
3467
- | 'INSURANCE'
3468
- | 'OTHER';
3469
-
3470
- export type UpdatePlatformDto = {
3471
- /**
3472
- * Platform name
3473
- */
3474
- name?: string;
3475
- /**
3476
- * Platform canonical identifier (lowercase, kebab-case)
3477
- */
3478
- canonical?: string;
3479
- /**
3480
- * Platform aliases (multi-language names for lookup)
3481
- */
3482
- aliases?: Array<string>;
4020
+ expenseAccount?: string;
3483
4021
  /**
3484
- * Platform URL
4022
+ * Default income account (optional)
3485
4023
  */
3486
- url?: string;
4024
+ incomeAccount?: string;
3487
4025
  /**
3488
- * Platform type
4026
+ * Payment method to source account mapping. Maps payment method keywords to Beancount account paths. Used by Alipay/WeChat importers to determine sourceAccount based on payment method (e.g., HuaBei, CreditCard).
3489
4027
  */
3490
- type?:
3491
- | 'BANK'
3492
- | 'BROKERAGE'
3493
- | 'CRYPTO_EXCHANGE'
3494
- | 'PAYMENT'
3495
- | 'INVESTMENT'
3496
- | 'INSURANCE'
3497
- | 'OTHER';
4028
+ methodAccountMapping?: {
4029
+ [key: string]: unknown;
4030
+ };
4031
+ };
4032
+
4033
+ export type UpdateConfigDataDto = {
3498
4034
  /**
3499
- * Platform logo URL
4035
+ * Mapper defaults configuration
3500
4036
  */
3501
- logoUrl?: string;
4037
+ defaults?: UpdateMapperDefaultsDto;
4038
+ };
4039
+
4040
+ export type UpdateImporterConfigDto = {
3502
4041
  /**
3503
- * Whether the platform is active
4042
+ * Configuration data (v1 schema)
3504
4043
  */
3505
- isActive?: boolean;
4044
+ data?: UpdateConfigDataDto;
3506
4045
  };
3507
4046
 
3508
4047
  export type ProviderSyncConfigDto = {
@@ -3526,6 +4065,10 @@ export type ProviderSyncConfigDto = {
3526
4065
  * Filter pending transactions
3527
4066
  */
3528
4067
  filterPending?: boolean;
4068
+ /**
4069
+ * External account ID for per-batch providers (e.g. GoCardless). Overrides sourceAccount when an ExternalAccountLink mapping exists.
4070
+ */
4071
+ externalAccountId?: string;
3529
4072
  };
3530
4073
 
3531
4074
  export type ProviderSyncDto = {
@@ -3581,6 +4124,61 @@ export type SupportedProvidersResponseDto = {
3581
4124
  providers: Array<string>;
3582
4125
  };
3583
4126
 
4127
+ export type CreateExternalAccountLinkDto = {
4128
+ /**
4129
+ * Open Banking provider (whitelist)
4130
+ */
4131
+ provider:
4132
+ | 'plaid'
4133
+ | 'teller'
4134
+ | 'truelayer'
4135
+ | 'gocardless'
4136
+ | 'simplefin'
4137
+ | 'yodlee'
4138
+ | 'beancount-direct'
4139
+ | 'parsed-bill';
4140
+ /**
4141
+ * External account ID from the provider
4142
+ */
4143
+ externalAccountId: string;
4144
+ /**
4145
+ * Target BeanAccount ID (must belong to the JWT user)
4146
+ */
4147
+ beanAccountId: string;
4148
+ };
4149
+
4150
+ /**
4151
+ * Open Banking provider (whitelist)
4152
+ */
4153
+ export type provider =
4154
+ | 'plaid'
4155
+ | 'teller'
4156
+ | 'truelayer'
4157
+ | 'gocardless'
4158
+ | 'simplefin'
4159
+ | 'yodlee'
4160
+ | 'beancount-direct'
4161
+ | 'parsed-bill';
4162
+
4163
+ export type ExternalAccountLinkResponseDto = {
4164
+ id: string;
4165
+ provider: string;
4166
+ externalAccountId: string;
4167
+ beanAccountId: string;
4168
+ isActive: boolean;
4169
+ createdAt: string;
4170
+ updatedAt: string;
4171
+ };
4172
+
4173
+ export type ExternalAccountLinkListResponseDto = {
4174
+ items: Array<ExternalAccountLinkResponseDto>;
4175
+ total: number;
4176
+ /**
4177
+ * Filter by provider (query param)
4178
+ */
4179
+ provider?: string;
4180
+ };
4181
+
3584
4182
  export type ParserTelemetryReportDto = unknown;
3585
4183
 
3586
4184
  export type UncoveredFormatMissDto = unknown;
@@ -3600,6 +4198,14 @@ export type ProcessNlpDto = {
3600
4198
  parsedData?: {
3601
4199
  [key: string]: unknown;
3602
4200
  };
4201
+ /**
4202
+ * confirm_rule echo-back: rule id selected from the prior confirm_rule response (matchedRule.id or alternatives[i].ruleId). Applied directly when the session is confirming_rule — no NL re-parse.
4203
+ */
4204
+ selectedRuleId?: string;
4205
+ /**
4206
+ * confirm_account echo-back: account path selected from the prior confirm_account response (suggestedAccount, similarAccounts[i], or a typed path). Applied directly when the session is confirming_account — no NL re-parse.
4207
+ */
4208
+ selectedAccount?: string;
3603
4209
  };
3604
4210
 
3605
4211
  export type NlpTransactionInfoDto = {
@@ -3843,9 +4449,9 @@ export type NlpAccountConfirmationDataDto = {
3843
4449
  */
3844
4450
  invalidAccount: string;
3845
4451
  /**
3846
- * Suggested replacement account
4452
+ * Suggested replacement account (omitted when no clear candidate)
3847
4453
  */
3848
- suggestedAccount: string;
4454
+ suggestedAccount?: string;
3849
4455
  /**
3850
4456
  * Similar accounts for user selection
3851
4457
  */
@@ -3973,7 +4579,7 @@ export type NlpSuggestedAccountDto = {
3973
4579
  */
3974
4580
  account: string;
3975
4581
  /**
3976
- * Confidence score for this suggestion (0-1)
4582
+ * Confidence score for this suggestion (0-1). Present = predicted (confirm/confirm_rule/confirm_account); omitted = actual persisted account (created). (#586)
3977
4583
  */
3978
4584
  confidence?: number;
3979
4585
  };
@@ -3991,21 +4597,21 @@ export type NlpSuggestedAccountsDto = {
3991
4597
 
3992
4598
  export type NlpDefaultAccountsDto = {
3993
4599
  /**
3994
- * Default asset account
4600
+ * Default OPEN asset account (MRU when multiple), or null when none/ambiguous
3995
4601
  */
3996
- asset: string;
4602
+ asset: string | null;
3997
4603
  /**
3998
- * Default expense account
4604
+ * Default OPEN expense account (MRU when multiple), or null when none/ambiguous
3999
4605
  */
4000
- expense: string;
4606
+ expense: string | null;
4001
4607
  /**
4002
- * Default income account
4608
+ * Default OPEN income account (MRU when multiple), or null when none/ambiguous
4003
4609
  */
4004
- income: string;
4610
+ income: string | null;
4005
4611
  /**
4006
- * Default liability account
4612
+ * Default OPEN liability account (MRU when multiple), or null when none/ambiguous
4007
4613
  */
4008
- liability: string;
4614
+ liability: string | null;
4009
4615
  };
4010
4616
 
4011
4617
  export type NlpResponseDto = {
@@ -4024,7 +4630,8 @@ export type NlpResponseDto = {
4024
4630
  | 'confirm_rule'
4025
4631
  | 'confirm_account'
4026
4632
  | 'confirm_payee'
4027
- | 'cancel';
4633
+ | 'cancel'
4634
+ | 'aborted';
4028
4635
  /**
4029
4636
  * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
4030
4637
  */
@@ -4113,11 +4720,11 @@ export type NlpResponseDto = {
4113
4720
  */
4114
4721
  recurringSuggestion?: RecurringSuggestionDto;
4115
4722
  /**
4116
- * Suggested accounts for this transaction. Contains recommended source and destination accounts based on the detected intent and rules.
4723
+ * Suggested accounts for this transaction (#586). confirm/confirm_rule/confirm_account: predicted (source/destination carry confidence); created: actual persisted accounts (confidence omitted). confirm_account destination is the suggested replacement, never the invalid account.
4117
4724
  */
4118
4725
  suggestedAccounts?: NlpSuggestedAccountsDto;
4119
4726
  /**
4120
- * Default accounts for the user/region. These are fallback accounts used when no specific suggestion is available.
4727
+ * Default fallback accounts for the user/region (#586). v1 returns universal constants; per-user personalization is planned.
4121
4728
  */
4122
4729
  defaultAccounts?: NlpDefaultAccountsDto;
4123
4730
  };
@@ -4138,7 +4745,8 @@ export type action2 =
4138
4745
  | 'confirm_rule'
4139
4746
  | 'confirm_account'
4140
4747
  | 'confirm_payee'
4141
- | 'cancel';
4748
+ | 'cancel'
4749
+ | 'aborted';
4142
4750
 
4143
4751
  /**
4144
4752
  * Transaction intent detected by EntityRouter (v6.0: 5 core intents). Frontend uses this to render scenario-specific form fields.
@@ -4160,15 +4768,201 @@ export type liabilitySubType = 'borrow' | 'repay';
4160
4768
  */
4161
4769
  export type equitySubType = 'opening' | 'adjustment';
4162
4770
 
4163
- export type BalanceByCurrencyDto = {
4771
+ export type PlatformListItemDto = {
4164
4772
  /**
4165
- * ISO 4217 currency code
4773
+ * Global platform ID
4166
4774
  */
4167
- currency: string;
4775
+ id: string;
4168
4776
  /**
4169
- * Balance amount
4777
+ * Platform name
4170
4778
  */
4171
- balance: string;
4779
+ name: string;
4780
+ /**
4781
+ * Platform URL
4782
+ */
4783
+ url: string;
4784
+ /**
4785
+ * Platform type
4786
+ */
4787
+ type:
4788
+ | 'BANK'
4789
+ | 'BROKERAGE'
4790
+ | 'CRYPTO_EXCHANGE'
4791
+ | 'PAYMENT'
4792
+ | 'INVESTMENT'
4793
+ | 'INSURANCE'
4794
+ | 'OTHER';
4795
+ /**
4796
+ * Canonical identifier in ACCOUNT_RE format (e.g., "icbc")
4797
+ */
4798
+ canonical: string;
4799
+ /**
4800
+ * Suggested path segment — canonical with first char uppercased (ACC_COMP_NAME_RE)
4801
+ */
4802
+ suggestedSegment: string;
4803
+ /**
4804
+ * Logo URL
4805
+ */
4806
+ logoUrl: string | null;
4807
+ /**
4808
+ * Whether user has accounts using this platform
4809
+ */
4810
+ isBound: boolean;
4811
+ };
4812
+
4813
+ /**
4814
+ * Platform type
4815
+ */
4816
+ export type type3 =
4817
+ | 'BANK'
4818
+ | 'BROKERAGE'
4819
+ | 'CRYPTO_EXCHANGE'
4820
+ | 'PAYMENT'
4821
+ | 'INVESTMENT'
4822
+ | 'INSURANCE'
4823
+ | 'OTHER';
4824
+
4825
+ export type PlatformMatchResultDto = {
4826
+ /**
4827
+ * Global platform ID
4828
+ */
4829
+ id: string;
4830
+ /**
4831
+ * Platform name (e.g., "ICBC")
4832
+ */
4833
+ name: string;
4834
+ /**
4835
+ * Canonical identifier in ACCOUNT_RE format (e.g., "icbc")
4836
+ */
4837
+ canonical: string;
4838
+ /**
4839
+ * Platform type
4840
+ */
4841
+ type:
4842
+ | 'BANK'
4843
+ | 'BROKERAGE'
4844
+ | 'CRYPTO_EXCHANGE'
4845
+ | 'PAYMENT'
4846
+ | 'INVESTMENT'
4847
+ | 'INSURANCE'
4848
+ | 'OTHER';
4849
+ /**
4850
+ * Suggested path segment — canonical, already in ACCOUNT_RE format
4851
+ */
4852
+ suggestedSegment: string;
4853
+ /**
4854
+ * Logo URL
4855
+ */
4856
+ logoUrl: string | null;
4857
+ /**
4858
+ * How this row matched: 'exact' > 'prefix' > 'substring'
4859
+ */
4860
+ matchType: 'exact' | 'prefix' | 'substring';
4861
+ };
4862
+
4863
+ /**
4864
+ * How this row matched: 'exact' > 'prefix' > 'substring'
4865
+ */
4866
+ export type matchType = 'exact' | 'prefix' | 'substring';
4867
+
4868
+ export type PlatformMatchResponseDto = {
4869
+ /**
4870
+ * Ranked matches, best tier first (at most 10 rows)
4871
+ */
4872
+ platforms: Array<PlatformMatchResultDto>;
4873
+ /**
4874
+ * Overall match quality — top row's tier, or 'none' when no hits
4875
+ */
4876
+ matchType: 'none' | 'exact' | 'prefix' | 'substring';
4877
+ /**
4878
+ * Total matches before LIMIT (truncation transparency)
4879
+ */
4880
+ total: number;
4881
+ /**
4882
+ * true when total > platforms.length (more matches exist)
4883
+ */
4884
+ hasMore: boolean;
4885
+ };
4886
+
4887
+ /**
4888
+ * Overall match quality — top row's tier, or 'none' when no hits
4889
+ */
4890
+ export type matchType2 = 'none' | 'exact' | 'prefix' | 'substring';
4891
+
4892
+ export type CreatePlatformDto = {
4893
+ /**
4894
+ * Platform name
4895
+ */
4896
+ name: string;
4897
+ /**
4898
+ * Platform canonical identifier (lowercase, kebab-case)
4899
+ */
4900
+ canonical: string;
4901
+ /**
4902
+ * Platform aliases (multi-language names for lookup)
4903
+ */
4904
+ aliases: Array<string>;
4905
+ /**
4906
+ * Platform URL
4907
+ */
4908
+ url: string;
4909
+ /**
4910
+ * Platform type
4911
+ */
4912
+ type:
4913
+ | 'BANK'
4914
+ | 'BROKERAGE'
4915
+ | 'CRYPTO_EXCHANGE'
4916
+ | 'PAYMENT'
4917
+ | 'INVESTMENT'
4918
+ | 'INSURANCE'
4919
+ | 'OTHER';
4920
+ /**
4921
+ * Platform logo URL
4922
+ */
4923
+ logoUrl?: string;
4924
+ /**
4925
+ * Whether the platform is active
4926
+ */
4927
+ isActive?: boolean;
4928
+ };
4929
+
4930
+ export type UpdatePlatformDto = {
4931
+ /**
4932
+ * Platform name
4933
+ */
4934
+ name?: string;
4935
+ /**
4936
+ * Platform canonical identifier (lowercase, kebab-case)
4937
+ */
4938
+ canonical?: string;
4939
+ /**
4940
+ * Platform aliases (multi-language names for lookup)
4941
+ */
4942
+ aliases?: Array<string>;
4943
+ /**
4944
+ * Platform URL
4945
+ */
4946
+ url?: string;
4947
+ /**
4948
+ * Platform type
4949
+ */
4950
+ type?:
4951
+ | 'BANK'
4952
+ | 'BROKERAGE'
4953
+ | 'CRYPTO_EXCHANGE'
4954
+ | 'PAYMENT'
4955
+ | 'INVESTMENT'
4956
+ | 'INSURANCE'
4957
+ | 'OTHER';
4958
+ /**
4959
+ * Platform logo URL
4960
+ */
4961
+ logoUrl?: string;
4962
+ /**
4963
+ * Whether the platform is active
4964
+ */
4965
+ isActive?: boolean;
4172
4966
  };
4173
4967
 
4174
4968
  export type NetWorthByCurrencyDto = {
@@ -4211,21 +5005,6 @@ export type ConvertedNetWorthDto = {
4211
5005
  };
4212
5006
  };
4213
5007
 
4214
- export type ExchangeRateWarningDto = {
4215
- /**
4216
- * Warning type
4217
- */
4218
- type: string;
4219
- /**
4220
- * Currency without exchange rate
4221
- */
4222
- currency: string;
4223
- /**
4224
- * Total amount affected
4225
- */
4226
- totalAmount: string;
4227
- };
4228
-
4229
5008
  export type NetWorthResponseDto = {
4230
5009
  /**
4231
5010
  * Total net worth (assets - liabilities, converted to base currency)
@@ -4290,6 +5069,10 @@ export type AccountItemDto = {
4290
5069
  * Currency code
4291
5070
  */
4292
5071
  currency: string;
5072
+ /**
5073
+ * FX-converted balance in base currency; omitted when not convertible
5074
+ */
5075
+ convertedBalance?: string;
4293
5076
  };
4294
5077
 
4295
5078
  export type PlatformGroupDto = {
@@ -4393,6 +5176,10 @@ export type AccountItemWithAssetClassDto = {
4393
5176
  * Currency code
4394
5177
  */
4395
5178
  currency: string;
5179
+ /**
5180
+ * FX-converted balance in base currency; omitted when not convertible
5181
+ */
5182
+ convertedBalance?: string;
4396
5183
  /**
4397
5184
  * Asset class
4398
5185
  */
@@ -4458,22 +5245,6 @@ export type AssetClassGroupDto = {
4458
5245
  convertedBalance?: string;
4459
5246
  };
4460
5247
 
4461
- /**
4462
- * Asset class name
4463
- */
4464
- export type assetClass =
4465
- | 'LIQUIDITY'
4466
- | 'EQUITY'
4467
- | 'FIXED_INCOME'
4468
- | 'PRECIOUS_METALS'
4469
- | 'COMMODITY'
4470
- | 'INSURANCE'
4471
- | 'ALTERNATIVE_INVESTMENT'
4472
- | 'PERSONAL_ASSETS'
4473
- | 'LIABILITY'
4474
- | 'REAL_ESTATE'
4475
- | 'INDEX';
4476
-
4477
5248
  export type AssetClassSummaryDto = {
4478
5249
  /**
4479
5250
  * Total number of accounts
@@ -4891,287 +5662,146 @@ export type HoldingPnlResponseDto = {
4891
5662
  */
4892
5663
  export type method = 'average' | 'FIFO';
4893
5664
 
4894
- export type CreateBeanPriceDto = {
4895
- /**
4896
- * Currency being priced (e.g., USD, AAPL, BTC)
4897
- */
4898
- currency: string;
4899
- /**
4900
- * Quote currency (pricing currency, e.g., CNY, EUR)
4901
- */
4902
- quoteCurrency: string;
4903
- /**
4904
- * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
4905
- */
4906
- amount: number;
4907
- /**
4908
- * Price date (ISO 8601 format)
4909
- */
4910
- date: string;
4911
- /**
4912
- * Metadata (validated by Zod schema, max field lengths enforced)
4913
- */
4914
- metadata?: {
4915
- [key: string]: unknown;
4916
- };
4917
- };
4918
-
4919
- export type PriceResponseDto = {
4920
- /**
4921
- * Unique identifier
4922
- */
4923
- id: string;
4924
- /**
4925
- * User ID (owner of the price)
4926
- */
4927
- userId: string;
4928
- /**
4929
- * Currency being priced (e.g., USD, AAPL, BTC)
4930
- */
4931
- currency: string;
4932
- /**
4933
- * Quote currency (pricing currency, e.g., USD, CNY)
4934
- */
4935
- quoteCurrency: string;
4936
- /**
4937
- * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
4938
- */
4939
- amount: number;
4940
- /**
4941
- * Price date (ISO 8601 format). Represents the date this price was valid.
4942
- */
4943
- date: string;
4944
- /**
4945
- * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
4946
- */
4947
- meta: {
4948
- [key: string]: unknown;
4949
- };
4950
- /**
4951
- * Creation timestamp
4952
- */
4953
- createdAt: string;
5665
+ export type AnonymousLoginDto = {
4954
5666
  /**
4955
- * Last update timestamp
5667
+ * Access token for anonymous login
4956
5668
  */
4957
- updatedAt: string;
5669
+ accessToken: string;
4958
5670
  };
4959
5671
 
4960
- export type PriceListResponseDto = {
4961
- /**
4962
- * List of prices
4963
- */
4964
- items: Array<PriceResponseDto>;
5672
+ export type AnonymousLoginResponseDto = {
4965
5673
  /**
4966
- * Total number of prices
5674
+ * JWT auth token
4967
5675
  */
4968
- total: number;
5676
+ authToken: string;
4969
5677
  };
4970
5678
 
4971
- export type UpdateBeanPriceDto = {
4972
- /**
4973
- * Currency being priced
4974
- */
4975
- currency?: string;
4976
- /**
4977
- * Quote currency (pricing currency)
4978
- */
4979
- quoteCurrency?: string;
4980
- /**
4981
- * Price amount (MUST be >= 0 per Beancount spec)
4982
- */
4983
- amount?: number;
4984
- /**
4985
- * Price date (ISO 8601 format)
4986
- */
4987
- date?: string;
4988
- /**
4989
- * Metadata
4990
- */
4991
- metadata?: {
5679
+ export type SymbolSearchResultDto = {
5680
+ symbol: string;
5681
+ name?: {
4992
5682
  [key: string]: unknown;
4993
- };
4994
- };
4995
-
4996
- export type CurrencyBalanceDto = {
4997
- /**
4998
- * ISO 4217 currency code
4999
- */
5000
- currency: string;
5001
- /**
5002
- * Balance amount
5003
- */
5004
- balance: string;
5005
- };
5006
-
5007
- export type TimeSeriesPointDto = {
5008
- /**
5009
- * Date in YYYY-MM-DD format
5010
- */
5011
- date: string;
5012
- /**
5013
- * Value at this date (in base currency)
5014
- */
5015
- value: string;
5016
- /**
5017
- * Change from previous point
5018
- */
5019
- change?: {
5683
+ } | null;
5684
+ exchange?: {
5020
5685
  [key: string]: unknown;
5021
- };
5022
- /**
5023
- * Total assets at this date (in base currency)
5024
- */
5025
- assets?: string;
5026
- /**
5027
- * Total liabilities at this date (in base currency)
5028
- */
5029
- liabilities?: string;
5030
- /**
5031
- * Multi-currency breakdown for this point
5032
- */
5033
- byCurrency?: Array<CurrencyBalanceDto>;
5034
- };
5035
-
5036
- export type TrendSummaryDto = {
5037
- /**
5038
- * Value at start of period
5039
- */
5040
- startValue: string;
5041
- /**
5042
- * Value at end of period
5043
- */
5044
- endValue: string;
5045
- /**
5046
- * Total change over period
5047
- */
5048
- totalChange: string;
5049
- /**
5050
- * Total change percentage
5051
- */
5052
- totalChangePercentage: string;
5053
- };
5054
-
5055
- export type MultiCurrencyPointDto = {
5056
- /**
5057
- * Date in YYYY-MM-DD format
5058
- */
5059
- date: string;
5060
- /**
5061
- * Balances by currency
5062
- */
5063
- byCurrency: Array<CurrencyBalanceDto>;
5064
- };
5065
-
5066
- export type PortfolioTrendsResponseDto = {
5067
- /**
5068
- * Time series data points
5069
- */
5070
- series: Array<TimeSeriesPointDto>;
5071
- /**
5072
- * Period summary
5073
- */
5074
- summary: TrendSummaryDto;
5075
- /**
5076
- * Period requested
5077
- */
5078
- period: string;
5686
+ } | null;
5079
5687
  /**
5080
- * Data granularity
5688
+ * OpenBB asset_type (e.g. stock, etf)
5081
5689
  */
5082
- granularity: string;
5690
+ assetType?: {
5691
+ [key: string]: unknown;
5692
+ } | null;
5083
5693
  /**
5084
- * Base currency for converted values
5694
+ * IGN asset class (region.types.ts ASSET_CLASSES)
5085
5695
  */
5086
- currency: string;
5696
+ assetClass?: {
5697
+ [key: string]: unknown;
5698
+ } | null;
5087
5699
  /**
5088
- * Multi-currency time series (each point has currency breakdown)
5700
+ * IGN asset sub-class (region.types.ts ASSET_SUB_CLASSES)
5089
5701
  */
5090
- byCurrency?: Array<MultiCurrencyPointDto>;
5702
+ assetSubClass?: {
5703
+ [key: string]: unknown;
5704
+ } | null;
5091
5705
  /**
5092
- * Exchange rate warnings
5706
+ * Trading currency (extra_data or inferred from exchange)
5093
5707
  */
5094
- warnings?: Array<ExchangeRateWarningDto>;
5708
+ currency?: {
5709
+ [key: string]: unknown;
5710
+ } | null;
5095
5711
  };
5096
5712
 
5097
- export type CashFlowPointDto = {
5098
- /**
5099
- * Month key (YYYY-MM)
5100
- */
5101
- month: string;
5713
+ export type SymbolQuoteDto = {
5714
+ symbol?: string;
5715
+ name?: {
5716
+ [key: string]: unknown;
5717
+ } | null;
5718
+ exchange?: {
5719
+ [key: string]: unknown;
5720
+ } | null;
5102
5721
  /**
5103
- * Income in base currency (absolute, converted)
5722
+ * OpenBB asset_type
5104
5723
  */
5105
- income: string;
5724
+ assetType?: {
5725
+ [key: string]: unknown;
5726
+ } | null;
5106
5727
  /**
5107
- * Expense in base currency (absolute, converted)
5728
+ * IGN asset class
5108
5729
  */
5109
- expense: string;
5730
+ assetClass?: {
5731
+ [key: string]: unknown;
5732
+ } | null;
5110
5733
  /**
5111
- * netSavings = income − expense (savings positive)
5734
+ * IGN asset sub-class
5112
5735
  */
5113
- netSavings: string;
5114
- };
5115
-
5116
- export type CashFlowTrendSummaryDto = {
5736
+ assetSubClass?: {
5737
+ [key: string]: unknown;
5738
+ } | null;
5117
5739
  /**
5118
- * Total income across the period
5740
+ * Trading currency (extra_data or inferred from exchange)
5119
5741
  */
5120
- totalIncome: string;
5742
+ currency?: {
5743
+ [key: string]: unknown;
5744
+ } | null;
5121
5745
  /**
5122
- * Total expense across the period
5746
+ * Latest price (Decimal string)
5123
5747
  */
5124
- totalExpense: string;
5748
+ price?: {
5749
+ [key: string]: unknown;
5750
+ } | null;
5125
5751
  /**
5126
- * income − expense across the period
5752
+ * Date the price was observed (ISO yyyy-MM-dd)
5127
5753
  */
5128
- totalNetSavings: string;
5754
+ priceDate?: {
5755
+ [key: string]: unknown;
5756
+ } | null;
5129
5757
  /**
5130
- * totalNetSavings divided by the window length (N months, incl. zero-filled)
5758
+ * Change vs previous close, in percentage points (1.7 == 1.7%). openbb stores change_percent as a normalized decimal; this exposes percentage points for frontend convenience.
5131
5759
  */
5132
- averageMonthlyNetSavings: string;
5133
- };
5134
-
5135
- export type CashFlowTrendsResponseDto = {
5760
+ changePercent?: {
5761
+ [key: string]: unknown;
5762
+ } | null;
5136
5763
  /**
5137
- * Monthly cash-flow series (fixed N-month window, zero-filled)
5764
+ * Previous close (Decimal string)
5138
5765
  */
5139
- series: Array<CashFlowPointDto>;
5766
+ prevClose?: {
5767
+ [key: string]: unknown;
5768
+ } | null;
5140
5769
  /**
5141
- * Period totals
5770
+ * Day open (Decimal string)
5142
5771
  */
5143
- summary: CashFlowTrendSummaryDto;
5772
+ open?: {
5773
+ [key: string]: unknown;
5774
+ } | null;
5144
5775
  /**
5145
- * Period requested
5776
+ * Day high (Decimal string)
5146
5777
  */
5147
- period: string;
5778
+ high?: {
5779
+ [key: string]: unknown;
5780
+ } | null;
5148
5781
  /**
5149
- * Data granularity (v1 returns month buckets)
5782
+ * Day low (Decimal string)
5150
5783
  */
5151
- granularity: string;
5784
+ low?: {
5785
+ [key: string]: unknown;
5786
+ } | null;
5152
5787
  /**
5153
- * Base currency for converted values
5788
+ * Day volume (Decimal string)
5154
5789
  */
5155
- currency: string;
5790
+ volume?: {
5791
+ [key: string]: unknown;
5792
+ } | null;
5156
5793
  /**
5157
- * Exchange rate warnings (e.g. missing rate for a currency)
5794
+ * 52-week high (Decimal string)
5158
5795
  */
5159
- warnings?: Array<ExchangeRateWarningDto>;
5160
- };
5161
-
5162
- export type GenerateSnapshotBody = unknown;
5163
-
5164
- export type GenerateSnapshotResponse = unknown;
5165
-
5166
- export type BackfillSnapshotsBody = unknown;
5167
-
5168
- export type BackfillSnapshotsResponse = unknown;
5169
-
5170
- export type AnonymousLoginDto = {
5796
+ yearHigh?: {
5797
+ [key: string]: unknown;
5798
+ } | null;
5171
5799
  /**
5172
- * Access token for anonymous login
5800
+ * 52-week low (Decimal string)
5173
5801
  */
5174
- accessToken: string;
5802
+ yearLow?: {
5803
+ [key: string]: unknown;
5804
+ } | null;
5175
5805
  };
5176
5806
 
5177
5807
  export type AccountControllerCreateData = {
@@ -5202,7 +5832,7 @@ export type AccountControllerFindAllData = {
5202
5832
  */
5203
5833
  region: 'cn' | 'us' | 'de' | 'gb';
5204
5834
  /**
5205
- * Search term for path or i18nKey
5835
+ * Search term for account path
5206
5836
  */
5207
5837
  search?: string;
5208
5838
  /**
@@ -5285,6 +5915,21 @@ export type AccountControllerReopenData = {
5285
5915
 
5286
5916
  export type AccountControllerReopenResponse = AccountResponseDto;
5287
5917
 
5918
+ export type AccountControllerAddOpeningBalanceData = {
5919
+ /**
5920
+ * Account UUID
5921
+ */
5922
+ id: string;
5923
+ /**
5924
+ * Region code for tenant context
5925
+ */
5926
+ region: 'cn' | 'us' | 'de' | 'gb';
5927
+ requestBody: CreateOpeningBalanceDto;
5928
+ };
5929
+
5930
+ export type AccountControllerAddOpeningBalanceResponse =
5931
+ OpeningBalanceResultDto;
5932
+
5288
5933
  export type AccountStandardsControllerGetTemplatesData = {
5289
5934
  /**
5290
5935
  * Region code (cn, us, de)
@@ -5473,7 +6118,7 @@ export type TransactionControllerDeleteResponse = void;
5473
6118
 
5474
6119
  export type BalanceControllerGetBalanceData = {
5475
6120
  /**
5476
- * Account name (e.g., "Assets:Bank:Checking")
6121
+ * Account name (e.g., "Assets:Checking")
5477
6122
  */
5478
6123
  account: string;
5479
6124
  /**
@@ -5875,6 +6520,103 @@ export type CommodityControllerBulkCreateData = {
5875
6520
 
5876
6521
  export type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
5877
6522
 
6523
+ export type PriceControllerCreateData = {
6524
+ /**
6525
+ * Region code for tenant context
6526
+ */
6527
+ region: 'cn' | 'us' | 'de' | 'gb';
6528
+ requestBody: CreateBeanPriceDto;
6529
+ };
6530
+
6531
+ export type PriceControllerCreateResponse = PriceResponseDto;
6532
+
6533
+ export type PriceControllerFindAllData = {
6534
+ /**
6535
+ * Filter by currency (e.g., BTC, AAPL, USD)
6536
+ */
6537
+ currency?: string;
6538
+ /**
6539
+ * Filter prices from this date (ISO 8601 format)
6540
+ */
6541
+ dateFrom?: string;
6542
+ /**
6543
+ * Filter prices to this date (ISO 8601 format)
6544
+ */
6545
+ dateTo?: string;
6546
+ /**
6547
+ * Number of items per page (default: 20, max: 100)
6548
+ */
6549
+ limit?: number;
6550
+ /**
6551
+ * Page number for pagination (default: 1)
6552
+ */
6553
+ page?: number;
6554
+ /**
6555
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
6556
+ */
6557
+ quoteCurrency?: string;
6558
+ /**
6559
+ * Region code for tenant context
6560
+ */
6561
+ region: 'cn' | 'us' | 'de' | 'gb';
6562
+ /**
6563
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
6564
+ */
6565
+ search?: string;
6566
+ };
6567
+
6568
+ export type PriceControllerFindAllResponse = PriceListResponseDto;
6569
+
6570
+ export type PriceControllerFindOneData = {
6571
+ /**
6572
+ * Price ID
6573
+ */
6574
+ id: string;
6575
+ /**
6576
+ * Region code for tenant context
6577
+ */
6578
+ region: 'cn' | 'us' | 'de' | 'gb';
6579
+ };
6580
+
6581
+ export type PriceControllerFindOneResponse = PriceResponseDto;
6582
+
6583
+ export type PriceControllerUpdateData = {
6584
+ /**
6585
+ * Price ID
6586
+ */
6587
+ id: string;
6588
+ /**
6589
+ * Region code for tenant context
6590
+ */
6591
+ region: 'cn' | 'us' | 'de' | 'gb';
6592
+ requestBody: UpdateBeanPriceDto;
6593
+ };
6594
+
6595
+ export type PriceControllerUpdateResponse = PriceResponseDto;
6596
+
6597
+ export type PriceControllerDeleteData = {
6598
+ /**
6599
+ * Price ID
6600
+ */
6601
+ id: string;
6602
+ /**
6603
+ * Region code for tenant context
6604
+ */
6605
+ region: 'cn' | 'us' | 'de' | 'gb';
6606
+ };
6607
+
6608
+ export type PriceControllerDeleteResponse = void;
6609
+
6610
+ export type PriceControllerBulkCreateData = {
6611
+ /**
6612
+ * Region code for tenant context
6613
+ */
6614
+ region: 'cn' | 'us' | 'de' | 'gb';
6615
+ requestBody: Array<string>;
6616
+ };
6617
+
6618
+ export type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
6619
+
5878
6620
  export type RecurringRuleControllerCreateData = {
5879
6621
  /**
5880
6622
  * Region code for tenant context
@@ -6016,97 +6758,245 @@ export type ExpectedTransactionControllerFindOneData = {
6016
6758
  /**
6017
6759
  * Expected transaction ID
6018
6760
  */
6019
- id: string;
6761
+ id: string;
6762
+ /**
6763
+ * Region code for tenant context
6764
+ */
6765
+ region: 'cn' | 'us' | 'de' | 'gb';
6766
+ };
6767
+
6768
+ export type ExpectedTransactionControllerFindOneResponse =
6769
+ ExpectedTransactionResponseDto;
6770
+
6771
+ export type ExpectedTransactionControllerSkipData = {
6772
+ /**
6773
+ * Expected transaction ID
6774
+ */
6775
+ id: string;
6776
+ /**
6777
+ * Region code for tenant context
6778
+ */
6779
+ region: 'cn' | 'us' | 'de' | 'gb';
6780
+ };
6781
+
6782
+ export type ExpectedTransactionControllerSkipResponse =
6783
+ ExpectedTransactionResponseDto;
6784
+
6785
+ export type ExpectedTransactionControllerUndoSkipData = {
6786
+ /**
6787
+ * Expected transaction ID
6788
+ */
6789
+ id: string;
6790
+ /**
6791
+ * Region code for tenant context
6792
+ */
6793
+ region: 'cn' | 'us' | 'de' | 'gb';
6794
+ };
6795
+
6796
+ export type ExpectedTransactionControllerUndoSkipResponse =
6797
+ ExpectedTransactionResponseDto;
6798
+
6799
+ export type ExpectedTransactionControllerConfirmMatchData = {
6800
+ /**
6801
+ * Expected transaction ID
6802
+ */
6803
+ id: string;
6804
+ /**
6805
+ * Region code for tenant context
6806
+ */
6807
+ region: 'cn' | 'us' | 'de' | 'gb';
6808
+ requestBody: ConfirmMatchDto;
6809
+ };
6810
+
6811
+ export type ExpectedTransactionControllerConfirmMatchResponse = unknown;
6812
+
6813
+ export type ExpectedTransactionControllerUnmatchData = {
6814
+ /**
6815
+ * Expected transaction ID
6816
+ */
6817
+ id: string;
6818
+ /**
6819
+ * Region code for tenant context
6820
+ */
6821
+ region: 'cn' | 'us' | 'de' | 'gb';
6822
+ };
6823
+
6824
+ export type ExpectedTransactionControllerUnmatchResponse = unknown;
6825
+
6826
+ export type ExpectedTransactionControllerEnterNowData = {
6827
+ /**
6828
+ * Expected transaction ID
6829
+ */
6830
+ id: string;
6831
+ /**
6832
+ * Region code for tenant context
6833
+ */
6834
+ region: 'cn' | 'us' | 'de' | 'gb';
6835
+ requestBody: EnterNowDto;
6836
+ };
6837
+
6838
+ export type ExpectedTransactionControllerEnterNowResponse = unknown;
6839
+
6840
+ export type ForecastControllerGetForecastData = {
6841
+ /**
6842
+ * Number of months to forecast (1-12, default 3)
6843
+ */
6844
+ months?: number;
6845
+ /**
6846
+ * Region code for tenant context
6847
+ */
6848
+ region: 'cn' | 'us' | 'de' | 'gb';
6849
+ };
6850
+
6851
+ export type ForecastControllerGetForecastResponse = ForecastResponseDto;
6852
+
6853
+ export type ReportingControllerGetPortfolioTrendsData = {
6854
+ /**
6855
+ * Data granularity
6856
+ */
6857
+ granularity?: 'day' | 'week' | 'month';
6858
+ /**
6859
+ * Time period
6860
+ */
6861
+ period?: '1m' | '3m' | '6m' | '1y';
6020
6862
  /**
6021
6863
  * Region code for tenant context
6022
6864
  */
6023
6865
  region: 'cn' | 'us' | 'de' | 'gb';
6024
6866
  };
6025
6867
 
6026
- export type ExpectedTransactionControllerFindOneResponse =
6027
- ExpectedTransactionResponseDto;
6868
+ export type ReportingControllerGetPortfolioTrendsResponse =
6869
+ PortfolioTrendsResponseDto;
6028
6870
 
6029
- export type ExpectedTransactionControllerSkipData = {
6871
+ export type ReportingControllerGetCashFlowTrendsData = {
6030
6872
  /**
6031
- * Expected transaction ID
6873
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
6032
6874
  */
6033
- id: string;
6875
+ granularity?: 'day' | 'week' | 'month';
6876
+ /**
6877
+ * Time period
6878
+ */
6879
+ period?: '1m' | '3m' | '6m' | '1y';
6034
6880
  /**
6035
6881
  * Region code for tenant context
6036
6882
  */
6037
6883
  region: 'cn' | 'us' | 'de' | 'gb';
6038
6884
  };
6039
6885
 
6040
- export type ExpectedTransactionControllerSkipResponse =
6041
- ExpectedTransactionResponseDto;
6886
+ export type ReportingControllerGetCashFlowTrendsResponse =
6887
+ CashFlowTrendsResponseDto;
6042
6888
 
6043
- export type ExpectedTransactionControllerUndoSkipData = {
6044
- /**
6045
- * Expected transaction ID
6046
- */
6047
- id: string;
6889
+ export type ReportingControllerGenerateSnapshotData = {
6048
6890
  /**
6049
6891
  * Region code for tenant context
6050
6892
  */
6051
6893
  region: 'cn' | 'us' | 'de' | 'gb';
6894
+ /**
6895
+ * Optional date (defaults to today)
6896
+ */
6897
+ requestBody: GenerateSnapshotBody;
6052
6898
  };
6053
6899
 
6054
- export type ExpectedTransactionControllerUndoSkipResponse =
6055
- ExpectedTransactionResponseDto;
6900
+ export type ReportingControllerGenerateSnapshotResponse =
6901
+ GenerateSnapshotResponse;
6056
6902
 
6057
- export type ExpectedTransactionControllerConfirmMatchData = {
6058
- /**
6059
- * Expected transaction ID
6060
- */
6061
- id: string;
6903
+ export type ReportingControllerBackfillSnapshotsData = {
6062
6904
  /**
6063
6905
  * Region code for tenant context
6064
6906
  */
6065
6907
  region: 'cn' | 'us' | 'de' | 'gb';
6066
- requestBody: ConfirmMatchDto;
6908
+ requestBody: BackfillSnapshotsBody;
6067
6909
  };
6068
6910
 
6069
- export type ExpectedTransactionControllerConfirmMatchResponse = unknown;
6911
+ export type ReportingControllerBackfillSnapshotsResponse =
6912
+ BackfillSnapshotsResponse;
6070
6913
 
6071
- export type ExpectedTransactionControllerUnmatchData = {
6914
+ export type UserControllerDeleteOwnUserData = {
6915
+ requestBody: DeleteOwnUserDto;
6916
+ };
6917
+
6918
+ export type UserControllerDeleteOwnUserResponse = void;
6919
+
6920
+ export type UserControllerGetUserData = {
6921
+ acceptLanguage: string;
6922
+ };
6923
+
6924
+ export type UserControllerGetUserResponse = unknown;
6925
+
6926
+ export type UserControllerSignupUserData = {
6927
+ requestBody: SignupDto;
6928
+ };
6929
+
6930
+ export type UserControllerSignupUserResponse = SignupResponseDto;
6931
+
6932
+ export type UserControllerDeleteUserData = {
6072
6933
  /**
6073
- * Expected transaction ID
6934
+ * User ID to delete
6074
6935
  */
6075
6936
  id: string;
6937
+ };
6938
+
6939
+ export type UserControllerDeleteUserResponse = void;
6940
+
6941
+ export type UserControllerGetUserInfoData = {
6076
6942
  /**
6077
- * Region code for tenant context
6943
+ * User ID
6078
6944
  */
6079
- region: 'cn' | 'us' | 'de' | 'gb';
6945
+ id: string;
6080
6946
  };
6081
6947
 
6082
- export type ExpectedTransactionControllerUnmatchResponse = unknown;
6948
+ export type UserControllerGetUserInfoResponse = unknown;
6083
6949
 
6084
- export type ExpectedTransactionControllerEnterNowData = {
6950
+ export type UserControllerUpdateUserSettingData = {
6951
+ requestBody: UpdateUserSettingDto;
6952
+ };
6953
+
6954
+ export type UserControllerUpdateUserSettingResponse = unknown;
6955
+
6956
+ export type UserControllerGetAllUserSettingsByPageData = {
6085
6957
  /**
6086
- * Expected transaction ID
6958
+ * Page number
6087
6959
  */
6088
- id: string;
6960
+ pageNo: number;
6089
6961
  /**
6090
- * Region code for tenant context
6962
+ * Page size
6091
6963
  */
6092
- region: 'cn' | 'us' | 'de' | 'gb';
6093
- requestBody: EnterNowDto;
6964
+ pageSize: number;
6094
6965
  };
6095
6966
 
6096
- export type ExpectedTransactionControllerEnterNowResponse = unknown;
6967
+ export type UserControllerGetAllUserSettingsByPageResponse = unknown;
6097
6968
 
6098
- export type ForecastControllerGetForecastData = {
6969
+ export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
6970
+
6971
+ export type PropertyControllerGetAllResponse = unknown;
6972
+
6973
+ export type PropertyControllerGetByKeyData = {
6099
6974
  /**
6100
- * Number of months to forecast (1-12, default 3)
6975
+ * Property key
6101
6976
  */
6102
- months?: number;
6977
+ key: string;
6978
+ };
6979
+
6980
+ export type PropertyControllerGetByKeyResponse = unknown;
6981
+
6982
+ export type PropertyControllerUpdateData = {
6103
6983
  /**
6104
- * Region code for tenant context
6984
+ * Property key
6105
6985
  */
6106
- region: 'cn' | 'us' | 'de' | 'gb';
6986
+ key: string;
6987
+ requestBody: UpdatePropertyDto;
6107
6988
  };
6108
6989
 
6109
- export type ForecastControllerGetForecastResponse = ForecastResponseDto;
6990
+ export type PropertyControllerUpdateResponse = unknown;
6991
+
6992
+ export type PropertyControllerDeleteData = {
6993
+ /**
6994
+ * Property key
6995
+ */
6996
+ key: string;
6997
+ };
6998
+
6999
+ export type PropertyControllerDeleteResponse = void;
6110
7000
 
6111
7001
  export type TransactionRuleControllerCreateData = {
6112
7002
  /**
@@ -6253,93 +7143,6 @@ export type TransactionRuleControllerTestData = {
6253
7143
 
6254
7144
  export type TransactionRuleControllerTestResponse = TestRuleResponseDto;
6255
7145
 
6256
- export type UserControllerDeleteOwnUserData = {
6257
- requestBody: DeleteOwnUserDto;
6258
- };
6259
-
6260
- export type UserControllerDeleteOwnUserResponse = void;
6261
-
6262
- export type UserControllerGetUserData = {
6263
- acceptLanguage: string;
6264
- };
6265
-
6266
- export type UserControllerGetUserResponse = unknown;
6267
-
6268
- export type UserControllerSignupUserData = {
6269
- requestBody: SignupDto;
6270
- };
6271
-
6272
- export type UserControllerSignupUserResponse = unknown;
6273
-
6274
- export type UserControllerDeleteUserData = {
6275
- /**
6276
- * User ID to delete
6277
- */
6278
- id: string;
6279
- };
6280
-
6281
- export type UserControllerDeleteUserResponse = void;
6282
-
6283
- export type UserControllerGetUserInfoData = {
6284
- /**
6285
- * User ID
6286
- */
6287
- id: string;
6288
- };
6289
-
6290
- export type UserControllerGetUserInfoResponse = unknown;
6291
-
6292
- export type UserControllerUpdateUserSettingData = {
6293
- requestBody: UpdateUserSettingDto;
6294
- };
6295
-
6296
- export type UserControllerUpdateUserSettingResponse = unknown;
6297
-
6298
- export type UserControllerGetAllUserSettingsByPageData = {
6299
- /**
6300
- * Page number
6301
- */
6302
- pageNo: number;
6303
- /**
6304
- * Page size
6305
- */
6306
- pageSize: number;
6307
- };
6308
-
6309
- export type UserControllerGetAllUserSettingsByPageResponse = unknown;
6310
-
6311
- export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
6312
-
6313
- export type PropertyControllerGetAllResponse = unknown;
6314
-
6315
- export type PropertyControllerGetByKeyData = {
6316
- /**
6317
- * Property key
6318
- */
6319
- key: string;
6320
- };
6321
-
6322
- export type PropertyControllerGetByKeyResponse = unknown;
6323
-
6324
- export type PropertyControllerUpdateData = {
6325
- /**
6326
- * Property key
6327
- */
6328
- key: string;
6329
- requestBody: UpdatePropertyDto;
6330
- };
6331
-
6332
- export type PropertyControllerUpdateResponse = unknown;
6333
-
6334
- export type PropertyControllerDeleteData = {
6335
- /**
6336
- * Property key
6337
- */
6338
- key: string;
6339
- };
6340
-
6341
- export type PropertyControllerDeleteResponse = void;
6342
-
6343
7146
  export type EventControllerCreateData = {
6344
7147
  /**
6345
7148
  * Region code for tenant context (decorative for life events)
@@ -6416,27 +7219,82 @@ export type EventControllerDeleteData = {
6416
7219
  */
6417
7220
  id: string;
6418
7221
  /**
6419
- * Region code for tenant context (decorative for life events)
7222
+ * Region code for tenant context (decorative for life events)
7223
+ */
7224
+ region: 'cn' | 'us' | 'de' | 'gb';
7225
+ };
7226
+
7227
+ export type EventControllerDeleteResponse = void;
7228
+
7229
+ export type EventControllerGetSliceData = {
7230
+ accountPattern: string;
7231
+ granularity: string;
7232
+ /**
7233
+ * Life event ID
7234
+ */
7235
+ id: string;
7236
+ /**
7237
+ * Region code for tenant context (decorative for life events)
7238
+ */
7239
+ region: 'cn' | 'us' | 'de' | 'gb';
7240
+ };
7241
+
7242
+ export type EventControllerGetSliceResponse = unknown;
7243
+
7244
+ export type OnboardingControllerBootstrapData = {
7245
+ /**
7246
+ * Region code for tenant context
7247
+ */
7248
+ region: 'cn' | 'us' | 'de' | 'gb';
7249
+ requestBody: OnboardingDto;
7250
+ };
7251
+
7252
+ export type OnboardingControllerBootstrapResponse = unknown;
7253
+
7254
+ export type ReconciliationControllerComputeData = {
7255
+ /**
7256
+ * Region code for tenant context (decorative for reconciliation)
7257
+ */
7258
+ region: 'cn' | 'us' | 'de' | 'gb';
7259
+ requestBody: ComputeReconciliationDto;
7260
+ };
7261
+
7262
+ export type ReconciliationControllerComputeResponse =
7263
+ ReconciliationComputeResultDto;
7264
+
7265
+ export type ReconciliationControllerAssertData = {
7266
+ /**
7267
+ * Region code for tenant context (decorative for reconciliation)
7268
+ */
7269
+ region: 'cn' | 'us' | 'de' | 'gb';
7270
+ requestBody: AssertReconciliationDto;
7271
+ };
7272
+
7273
+ export type ReconciliationControllerAssertResponse = ReconciliationRecordDto;
7274
+
7275
+ export type ReconciliationControllerPadData = {
7276
+ /**
7277
+ * Region code for tenant context (decorative for reconciliation)
6420
7278
  */
6421
7279
  region: 'cn' | 'us' | 'de' | 'gb';
7280
+ requestBody: PadReconciliationDto;
6422
7281
  };
6423
7282
 
6424
- export type EventControllerDeleteResponse = void;
7283
+ export type ReconciliationControllerPadResponse = PadResultDto;
6425
7284
 
6426
- export type EventControllerGetSliceData = {
6427
- accountPattern: string;
6428
- granularity: string;
7285
+ export type ReconciliationControllerHistoryData = {
6429
7286
  /**
6430
- * Life event ID
7287
+ * BeanAccount id
6431
7288
  */
6432
- id: string;
7289
+ accountId: string;
6433
7290
  /**
6434
- * Region code for tenant context (decorative for life events)
7291
+ * Region code for tenant context (decorative for reconciliation)
6435
7292
  */
6436
7293
  region: 'cn' | 'us' | 'de' | 'gb';
6437
7294
  };
6438
7295
 
6439
- export type EventControllerGetSliceResponse = unknown;
7296
+ export type ReconciliationControllerHistoryResponse =
7297
+ Array<ReconciliationRecordDto>;
6440
7298
 
6441
7299
  export type ExportControllerExportBeancountResponse = unknown;
6442
7300
 
@@ -6530,48 +7388,6 @@ export type ImporterConfigControllerResetConfigData = {
6530
7388
 
6531
7389
  export type ImporterConfigControllerResetConfigResponse = ImporterConfigDto;
6532
7390
 
6533
- export type PlatformControllerFindAllResponse = unknown;
6534
-
6535
- export type PlatformControllerCreateData = {
6536
- requestBody: CreatePlatformDto;
6537
- };
6538
-
6539
- export type PlatformControllerCreateResponse = unknown;
6540
-
6541
- export type PlatformControllerGetPlatformListResponse = unknown;
6542
-
6543
- export type PlatformControllerMatchPlatformsData = {
6544
- /**
6545
- * Search query — Chinese name, English name, or abbreviation
6546
- */
6547
- q: string;
6548
- /**
6549
- * Region code for category override lookup
6550
- */
6551
- region?: string;
6552
- };
6553
-
6554
- export type PlatformControllerMatchPlatformsResponse = unknown;
6555
-
6556
- export type PlatformControllerUpdateData = {
6557
- /**
6558
- * Platform ID
6559
- */
6560
- id: string;
6561
- requestBody: UpdatePlatformDto;
6562
- };
6563
-
6564
- export type PlatformControllerUpdateResponse = unknown;
6565
-
6566
- export type PlatformControllerDeleteData = {
6567
- /**
6568
- * Platform ID
6569
- */
6570
- id: string;
6571
- };
6572
-
6573
- export type PlatformControllerDeleteResponse = void;
6574
-
6575
7391
  export type ProviderSyncControllerSyncData = {
6576
7392
  /**
6577
7393
  * Provider name
@@ -6617,6 +7433,49 @@ export type ProviderSyncControllerIsProviderSupportedData = {
6617
7433
 
6618
7434
  export type ProviderSyncControllerIsProviderSupportedResponse = unknown;
6619
7435
 
7436
+ export type ExternalAccountLinkControllerCreateData = {
7437
+ /**
7438
+ * Region code for tenant context
7439
+ */
7440
+ region: 'cn' | 'us' | 'de' | 'gb';
7441
+ requestBody: CreateExternalAccountLinkDto;
7442
+ };
7443
+
7444
+ export type ExternalAccountLinkControllerCreateResponse =
7445
+ ExternalAccountLinkResponseDto;
7446
+
7447
+ export type ExternalAccountLinkControllerFindAllData = {
7448
+ provider: string;
7449
+ /**
7450
+ * Region code for tenant context
7451
+ */
7452
+ region: 'cn' | 'us' | 'de' | 'gb';
7453
+ };
7454
+
7455
+ export type ExternalAccountLinkControllerFindAllResponse =
7456
+ ExternalAccountLinkListResponseDto;
7457
+
7458
+ export type ExternalAccountLinkControllerFindOneData = {
7459
+ id: string;
7460
+ /**
7461
+ * Region code for tenant context
7462
+ */
7463
+ region: 'cn' | 'us' | 'de' | 'gb';
7464
+ };
7465
+
7466
+ export type ExternalAccountLinkControllerFindOneResponse =
7467
+ ExternalAccountLinkResponseDto;
7468
+
7469
+ export type ExternalAccountLinkControllerRemoveData = {
7470
+ id: string;
7471
+ /**
7472
+ * Region code for tenant context
7473
+ */
7474
+ region: 'cn' | 'us' | 'de' | 'gb';
7475
+ };
7476
+
7477
+ export type ExternalAccountLinkControllerRemoveResponse = void;
7478
+
6620
7479
  export type TelemetryControllerReportTelemetryData = {
6621
7480
  /**
6622
7481
  * Region code for tenant context
@@ -6689,225 +7548,114 @@ export type NlpControllerGetSessionData = {
6689
7548
 
6690
7549
  export type NlpControllerGetSessionResponse = unknown;
6691
7550
 
6692
- export type DashboardControllerGetNetWorthData = {
6693
- /**
6694
- * Date for balance calculation (ISO 8601 format)
6695
- */
6696
- date?: string;
6697
- /**
6698
- * Region code for tenant context
6699
- */
6700
- region: 'cn' | 'us' | 'de' | 'gb';
6701
- };
6702
-
6703
- export type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
6704
-
6705
- export type DashboardControllerGetAccountsData = {
6706
- /**
6707
- * Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
6708
- */
6709
- accountId?: string;
6710
- /**
6711
- * Date for balance calculation (ISO 8601 format)
6712
- */
6713
- date?: string;
6714
- /**
6715
- * Grouping strategy
6716
- */
6717
- groupBy?:
6718
- | 'platform'
6719
- | 'assetClass'
6720
- | 'holdingAssetClass'
6721
- | 'holdingAssetClassByAccount';
6722
- /**
6723
- * Region code for tenant context
6724
- */
6725
- region: 'cn' | 'us' | 'de' | 'gb';
6726
- };
6727
-
6728
- export type DashboardControllerGetAccountsResponse =
6729
- | AccountsResponseDto
6730
- | AssetClassAccountsResponseDto
6731
- | HoldingAssetClassCrossAccountResponseDto;
7551
+ export type PlatformControllerFindAllResponse = unknown;
6732
7552
 
6733
- export type DashboardControllerGetCashFlowData = {
6734
- /**
6735
- * Period in YYYY-MM format
6736
- */
6737
- period: string;
6738
- /**
6739
- * Region code for tenant context
6740
- */
6741
- region: 'cn' | 'us' | 'de' | 'gb';
7553
+ export type PlatformControllerCreateData = {
7554
+ requestBody: CreatePlatformDto;
6742
7555
  };
6743
7556
 
6744
- export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
6745
-
6746
- export type DashboardControllerGetExpensesData = {
6747
- /**
6748
- * Account root to aggregate (expense → ^Expenses:, income → ^Income:)
6749
- */
6750
- flow?: 'expense' | 'income';
6751
- /**
6752
- * Grouping strategy
6753
- */
6754
- groupBy?: 'category';
6755
- /**
6756
- * Time window (1m = current calendar month)
6757
- */
6758
- period?: '1m' | '3m' | '6m' | '1y';
6759
- /**
6760
- * Region code for tenant context
6761
- */
6762
- region: 'cn' | 'us' | 'de' | 'gb';
6763
- };
7557
+ export type PlatformControllerCreateResponse = unknown;
6764
7558
 
6765
- export type DashboardControllerGetExpensesResponse =
6766
- ExpensesByCategoryResponseDto;
7559
+ export type PlatformControllerGetPlatformListResponse =
7560
+ Array<PlatformListItemDto>;
6767
7561
 
6768
- export type HoldingPnlControllerGetHoldingPnlData = {
6769
- /**
6770
- * Scope to a single account
6771
- */
6772
- accountId?: string;
6773
- /**
6774
- * As-of date (ISO 8601), defaults to today
6775
- */
6776
- asOf?: string;
6777
- /**
6778
- * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
6779
- */
6780
- method?: 'FIFO' | 'average';
7562
+ export type PlatformControllerMatchPlatformsData = {
6781
7563
  /**
6782
- * Region code for tenant context
7564
+ * Search query — Chinese name, English name, or abbreviation
6783
7565
  */
6784
- region: 'cn' | 'us' | 'de' | 'gb';
6785
- };
6786
-
6787
- export type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
6788
-
6789
- export type PriceControllerCreateData = {
7566
+ q: string;
6790
7567
  /**
6791
- * Region code for tenant context
7568
+ * Region code for category override lookup
6792
7569
  */
6793
- region: 'cn' | 'us' | 'de' | 'gb';
6794
- requestBody: CreateBeanPriceDto;
7570
+ region?: string;
6795
7571
  };
6796
7572
 
6797
- export type PriceControllerCreateResponse = PriceResponseDto;
7573
+ export type PlatformControllerMatchPlatformsResponse = PlatformMatchResponseDto;
6798
7574
 
6799
- export type PriceControllerFindAllData = {
6800
- /**
6801
- * Filter by currency (e.g., BTC, AAPL, USD)
6802
- */
6803
- currency?: string;
6804
- /**
6805
- * Filter prices from this date (ISO 8601 format)
6806
- */
6807
- dateFrom?: string;
6808
- /**
6809
- * Filter prices to this date (ISO 8601 format)
6810
- */
6811
- dateTo?: string;
6812
- /**
6813
- * Number of items per page (default: 20, max: 100)
6814
- */
6815
- limit?: number;
6816
- /**
6817
- * Page number for pagination (default: 1)
6818
- */
6819
- page?: number;
6820
- /**
6821
- * Filter by quote currency (pricing currency, e.g., USD, CNY)
6822
- */
6823
- quoteCurrency?: string;
6824
- /**
6825
- * Region code for tenant context
6826
- */
6827
- region: 'cn' | 'us' | 'de' | 'gb';
7575
+ export type PlatformControllerUpdateData = {
6828
7576
  /**
6829
- * Search term for currency or quoteCurrency (case-insensitive partial match)
7577
+ * Platform ID
6830
7578
  */
6831
- search?: string;
7579
+ id: string;
7580
+ requestBody: UpdatePlatformDto;
6832
7581
  };
6833
7582
 
6834
- export type PriceControllerFindAllResponse = PriceListResponseDto;
7583
+ export type PlatformControllerUpdateResponse = unknown;
6835
7584
 
6836
- export type PriceControllerFindOneData = {
7585
+ export type PlatformControllerDeleteData = {
6837
7586
  /**
6838
- * Price ID
7587
+ * Platform ID
6839
7588
  */
6840
7589
  id: string;
6841
- /**
6842
- * Region code for tenant context
6843
- */
6844
- region: 'cn' | 'us' | 'de' | 'gb';
6845
7590
  };
6846
7591
 
6847
- export type PriceControllerFindOneResponse = PriceResponseDto;
7592
+ export type PlatformControllerDeleteResponse = void;
6848
7593
 
6849
- export type PriceControllerUpdateData = {
7594
+ export type DashboardControllerGetNetWorthData = {
6850
7595
  /**
6851
- * Price ID
7596
+ * Date for balance calculation (ISO 8601 format)
6852
7597
  */
6853
- id: string;
7598
+ date?: string;
6854
7599
  /**
6855
7600
  * Region code for tenant context
6856
7601
  */
6857
7602
  region: 'cn' | 'us' | 'de' | 'gb';
6858
- requestBody: UpdateBeanPriceDto;
6859
7603
  };
6860
7604
 
6861
- export type PriceControllerUpdateResponse = PriceResponseDto;
7605
+ export type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
6862
7606
 
6863
- export type PriceControllerDeleteData = {
7607
+ export type DashboardControllerGetAccountsData = {
6864
7608
  /**
6865
- * Price ID
7609
+ * Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
6866
7610
  */
6867
- id: string;
7611
+ accountId?: string;
6868
7612
  /**
6869
- * Region code for tenant context
7613
+ * Date for balance calculation (ISO 8601 format)
6870
7614
  */
6871
- region: 'cn' | 'us' | 'de' | 'gb';
6872
- };
6873
-
6874
- export type PriceControllerDeleteResponse = void;
6875
-
6876
- export type PriceControllerBulkCreateData = {
7615
+ date?: string;
7616
+ /**
7617
+ * Grouping strategy
7618
+ */
7619
+ groupBy?:
7620
+ | 'platform'
7621
+ | 'assetClass'
7622
+ | 'holdingAssetClass'
7623
+ | 'holdingAssetClassByAccount';
6877
7624
  /**
6878
7625
  * Region code for tenant context
6879
7626
  */
6880
7627
  region: 'cn' | 'us' | 'de' | 'gb';
6881
- requestBody: Array<string>;
6882
7628
  };
6883
7629
 
6884
- export type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
7630
+ export type DashboardControllerGetAccountsResponse =
7631
+ | AccountsResponseDto
7632
+ | AssetClassAccountsResponseDto
7633
+ | HoldingAssetClassCrossAccountResponseDto;
6885
7634
 
6886
- export type ReportingControllerGetPortfolioTrendsData = {
6887
- /**
6888
- * Data granularity
6889
- */
6890
- granularity?: 'day' | 'week' | 'month';
7635
+ export type DashboardControllerGetCashFlowData = {
6891
7636
  /**
6892
- * Time period
7637
+ * Period in YYYY-MM format
6893
7638
  */
6894
- period?: '1m' | '3m' | '6m' | '1y';
7639
+ period: string;
6895
7640
  /**
6896
7641
  * Region code for tenant context
6897
7642
  */
6898
7643
  region: 'cn' | 'us' | 'de' | 'gb';
6899
7644
  };
6900
7645
 
6901
- export type ReportingControllerGetPortfolioTrendsResponse =
6902
- PortfolioTrendsResponseDto;
7646
+ export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
6903
7647
 
6904
- export type ReportingControllerGetCashFlowTrendsData = {
7648
+ export type DashboardControllerGetExpensesData = {
6905
7649
  /**
6906
- * Data granularity (accepted for API symmetry; v1 returns month buckets)
7650
+ * Account root to aggregate (expense → ^Expenses:, income → ^Income:)
6907
7651
  */
6908
- granularity?: 'day' | 'week' | 'month';
7652
+ flow?: 'expense' | 'income';
6909
7653
  /**
6910
- * Time period
7654
+ * Grouping strategy
7655
+ */
7656
+ groupBy?: 'category';
7657
+ /**
7658
+ * Time window (1m = current calendar month)
6911
7659
  */
6912
7660
  period?: '1m' | '3m' | '6m' | '1y';
6913
7661
  /**
@@ -6916,33 +7664,29 @@ export type ReportingControllerGetCashFlowTrendsData = {
6916
7664
  region: 'cn' | 'us' | 'de' | 'gb';
6917
7665
  };
6918
7666
 
6919
- export type ReportingControllerGetCashFlowTrendsResponse =
6920
- CashFlowTrendsResponseDto;
7667
+ export type DashboardControllerGetExpensesResponse =
7668
+ ExpensesByCategoryResponseDto;
6921
7669
 
6922
- export type ReportingControllerGenerateSnapshotData = {
7670
+ export type HoldingPnlControllerGetHoldingPnlData = {
6923
7671
  /**
6924
- * Region code for tenant context
7672
+ * Scope to a single account
6925
7673
  */
6926
- region: 'cn' | 'us' | 'de' | 'gb';
7674
+ accountId?: string;
6927
7675
  /**
6928
- * Optional date (defaults to today)
7676
+ * As-of date (ISO 8601), defaults to today
6929
7677
  */
6930
- requestBody: GenerateSnapshotBody;
6931
- };
6932
-
6933
- export type ReportingControllerGenerateSnapshotResponse =
6934
- GenerateSnapshotResponse;
6935
-
6936
- export type ReportingControllerBackfillSnapshotsData = {
7678
+ asOf?: string;
7679
+ /**
7680
+ * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
7681
+ */
7682
+ method?: 'FIFO' | 'average';
6937
7683
  /**
6938
7684
  * Region code for tenant context
6939
7685
  */
6940
7686
  region: 'cn' | 'us' | 'de' | 'gb';
6941
- requestBody: BackfillSnapshotsBody;
6942
7687
  };
6943
7688
 
6944
- export type ReportingControllerBackfillSnapshotsResponse =
6945
- BackfillSnapshotsResponse;
7689
+ export type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
6946
7690
 
6947
7691
  export type ApiKeysControllerCreateApiKeyResponse = unknown;
6948
7692
 
@@ -6950,7 +7694,7 @@ export type AuthControllerAccessTokenLoginData = {
6950
7694
  requestBody: AnonymousLoginDto;
6951
7695
  };
6952
7696
 
6953
- export type AuthControllerAccessTokenLoginResponse = unknown;
7697
+ export type AuthControllerAccessTokenLoginResponse = AnonymousLoginResponseDto;
6954
7698
 
6955
7699
  export type CacheControllerFlushCacheResponse = unknown;
6956
7700
 
@@ -6990,6 +7734,33 @@ export type HealthControllerGetMetricsResponse = unknown;
6990
7734
 
6991
7735
  export type InfoControllerGetInfoResponse = unknown;
6992
7736
 
7737
+ export type SymbolControllerSearchData = {
7738
+ /**
7739
+ * Filter by OpenBB asset_type (e.g. stock, etf)
7740
+ */
7741
+ assetType?: string;
7742
+ /**
7743
+ * Filter by exchange code (e.g. US, HK, SS, SZ)
7744
+ */
7745
+ exchange?: string;
7746
+ /**
7747
+ * Maximum number of results (clamped 1..50)
7748
+ */
7749
+ limit?: number;
7750
+ /**
7751
+ * Search term — matched against symbol and instrument name. Empty string returns [].
7752
+ */
7753
+ q: string;
7754
+ };
7755
+
7756
+ export type SymbolControllerSearchResponse = Array<SymbolSearchResultDto>;
7757
+
7758
+ export type SymbolControllerGetQuoteData = {
7759
+ symbol: string;
7760
+ };
7761
+
7762
+ export type SymbolControllerGetQuoteResponse = SymbolQuoteDto;
7763
+
6993
7764
  export type $OpenApiTs = {
6994
7765
  '/api/v1/{region}/bean/accounts': {
6995
7766
  post: {
@@ -7054,7 +7825,7 @@ export type $OpenApiTs = {
7054
7825
  */
7055
7826
  404: unknown;
7056
7827
  /**
7057
- * Account has transactions and cannot be deleted
7828
+ * Account has active transactions and cannot be deleted
7058
7829
  */
7059
7830
  409: unknown;
7060
7831
  };
@@ -7098,6 +7869,25 @@ export type $OpenApiTs = {
7098
7869
  };
7099
7870
  };
7100
7871
  };
7872
+ '/api/v1/{region}/bean/accounts/{id}/opening-balance': {
7873
+ post: {
7874
+ req: AccountControllerAddOpeningBalanceData;
7875
+ res: {
7876
+ /**
7877
+ * Opening-balance transaction created
7878
+ */
7879
+ 201: OpeningBalanceResultDto;
7880
+ /**
7881
+ * Account not found
7882
+ */
7883
+ 404: unknown;
7884
+ /**
7885
+ * An opening balance already exists for this account
7886
+ */
7887
+ 409: unknown;
7888
+ };
7889
+ };
7890
+ };
7101
7891
  '/api/v1/{region}/bean/account-standards': {
7102
7892
  get: {
7103
7893
  req: AccountStandardsControllerGetTemplatesData;
@@ -7706,6 +8496,90 @@ export type $OpenApiTs = {
7706
8496
  };
7707
8497
  };
7708
8498
  };
8499
+ '/api/v1/{region}/bean/prices': {
8500
+ post: {
8501
+ req: PriceControllerCreateData;
8502
+ res: {
8503
+ /**
8504
+ * Price created successfully
8505
+ */
8506
+ 201: PriceResponseDto;
8507
+ /**
8508
+ * Currency or quoteCurrency commodity not found
8509
+ */
8510
+ 404: unknown;
8511
+ /**
8512
+ * Price already exists for this currency pair and date
8513
+ */
8514
+ 409: unknown;
8515
+ };
8516
+ };
8517
+ get: {
8518
+ req: PriceControllerFindAllData;
8519
+ res: {
8520
+ /**
8521
+ * Prices retrieved successfully
8522
+ */
8523
+ 200: PriceListResponseDto;
8524
+ };
8525
+ };
8526
+ };
8527
+ '/api/v1/{region}/bean/prices/{id}': {
8528
+ get: {
8529
+ req: PriceControllerFindOneData;
8530
+ res: {
8531
+ /**
8532
+ * Price retrieved successfully
8533
+ */
8534
+ 200: PriceResponseDto;
8535
+ /**
8536
+ * Price not found
8537
+ */
8538
+ 404: unknown;
8539
+ };
8540
+ };
8541
+ put: {
8542
+ req: PriceControllerUpdateData;
8543
+ res: {
8544
+ /**
8545
+ * Price updated successfully
8546
+ */
8547
+ 200: PriceResponseDto;
8548
+ /**
8549
+ * Price not found
8550
+ */
8551
+ 404: unknown;
8552
+ /**
8553
+ * Updated price conflicts with existing price
8554
+ */
8555
+ 409: unknown;
8556
+ };
8557
+ };
8558
+ delete: {
8559
+ req: PriceControllerDeleteData;
8560
+ res: {
8561
+ /**
8562
+ * Price deleted successfully
8563
+ */
8564
+ 204: void;
8565
+ /**
8566
+ * Price not found
8567
+ */
8568
+ 404: unknown;
8569
+ };
8570
+ };
8571
+ };
8572
+ '/api/v1/{region}/bean/prices/bulk': {
8573
+ post: {
8574
+ req: PriceControllerBulkCreateData;
8575
+ res: {
8576
+ /**
8577
+ * Prices created successfully
8578
+ */
8579
+ 201: Array<PriceResponseDto>;
8580
+ };
8581
+ };
8582
+ };
7709
8583
  '/api/v1/{region}/bean/recurring-rules': {
7710
8584
  post: {
7711
8585
  req: RecurringRuleControllerCreateData;
@@ -7956,397 +8830,469 @@ export type $OpenApiTs = {
7956
8830
  };
7957
8831
  };
7958
8832
  };
7959
- '/api/v1/{region}/bean/transaction-rules': {
8833
+ '/api/v1/{region}/reporting/portfolio/trends': {
8834
+ get: {
8835
+ req: ReportingControllerGetPortfolioTrendsData;
8836
+ res: {
8837
+ /**
8838
+ * Trends retrieved successfully
8839
+ */
8840
+ 200: PortfolioTrendsResponseDto;
8841
+ /**
8842
+ * User not authenticated
8843
+ */
8844
+ 401: unknown;
8845
+ };
8846
+ };
8847
+ };
8848
+ '/api/v1/{region}/reporting/cash-flow/trends': {
8849
+ get: {
8850
+ req: ReportingControllerGetCashFlowTrendsData;
8851
+ res: {
8852
+ /**
8853
+ * Cash-flow trends retrieved successfully
8854
+ */
8855
+ 200: CashFlowTrendsResponseDto;
8856
+ /**
8857
+ * User not authenticated
8858
+ */
8859
+ 401: unknown;
8860
+ };
8861
+ };
8862
+ };
8863
+ '/api/v1/{region}/reporting/snapshots/generate': {
7960
8864
  post: {
7961
- req: TransactionRuleControllerCreateData;
8865
+ req: ReportingControllerGenerateSnapshotData;
7962
8866
  res: {
7963
8867
  /**
7964
- * Rule updated successfully (upsert mode)
8868
+ * Snapshot generated successfully
7965
8869
  */
7966
- 200: TransactionRuleResponseDto;
8870
+ 200: GenerateSnapshotResponse;
7967
8871
  /**
7968
- * Validation failed
8872
+ * Invalid date format
7969
8873
  */
7970
- 400: ApiProblemResponseDto;
8874
+ 400: unknown;
8875
+ /**
8876
+ * User not authenticated
8877
+ */
8878
+ 401: unknown;
8879
+ };
8880
+ };
8881
+ };
8882
+ '/api/v1/{region}/reporting/snapshots/backfill': {
8883
+ post: {
8884
+ req: ReportingControllerBackfillSnapshotsData;
8885
+ res: {
8886
+ /**
8887
+ * Backfill completed successfully
8888
+ */
8889
+ 200: BackfillSnapshotsResponse;
8890
+ /**
8891
+ * Invalid date format or range
8892
+ */
8893
+ 400: unknown;
8894
+ /**
8895
+ * User not authenticated
8896
+ */
8897
+ 401: unknown;
8898
+ /**
8899
+ * Backfill already in progress for this user
8900
+ */
8901
+ 409: unknown;
8902
+ };
8903
+ };
8904
+ };
8905
+ '/api/v1/users': {
8906
+ delete: {
8907
+ req: UserControllerDeleteOwnUserData;
8908
+ res: {
7971
8909
  /**
7972
- * Unauthorized
8910
+ * User deleted successfully
7973
8911
  */
7974
- 401: ApiProblemResponseDto;
8912
+ 204: void;
7975
8913
  /**
7976
- * Resource conflict - another process is updating this rule
8914
+ * Invalid access token
7977
8915
  */
7978
- 409: ApiProblemResponseDto;
8916
+ 403: unknown;
7979
8917
  };
7980
8918
  };
7981
8919
  get: {
7982
- req: TransactionRuleControllerListData;
8920
+ req: UserControllerGetUserData;
7983
8921
  res: {
7984
8922
  /**
7985
- * List of rules
7986
- */
7987
- 200: TransactionRuleListResponseDto;
7988
- /**
7989
- * Unauthorized
8923
+ * User retrieved successfully
7990
8924
  */
7991
- 401: ApiProblemResponseDto;
8925
+ 200: unknown;
7992
8926
  };
7993
8927
  };
7994
- };
7995
- '/api/v1/{region}/bean/transaction-rules/validate': {
7996
8928
  post: {
7997
- req: TransactionRuleControllerValidateData;
8929
+ req: UserControllerSignupUserData;
7998
8930
  res: {
7999
8931
  /**
8000
- * Validation result
8932
+ * User created successfully
8001
8933
  */
8002
- 200: ValidateRuleResponseDto;
8934
+ 201: SignupResponseDto;
8003
8935
  /**
8004
- * Validation failed
8936
+ * Invalid Turnstile token (when Turnstile is enabled)
8005
8937
  */
8006
- 400: ApiProblemResponseDto;
8938
+ 400: unknown;
8007
8939
  /**
8008
- * Unauthorized
8940
+ * User signup is disabled
8009
8941
  */
8010
- 401: ApiProblemResponseDto;
8942
+ 403: unknown;
8011
8943
  };
8012
8944
  };
8013
8945
  };
8014
- '/api/v1/{region}/bean/transaction-rules/bulk': {
8015
- post: {
8016
- req: TransactionRuleControllerBulkCreateData;
8946
+ '/api/v1/users/{id}': {
8947
+ delete: {
8948
+ req: UserControllerDeleteUserData;
8017
8949
  res: {
8018
8950
  /**
8019
- * Bulk create completed
8020
- */
8021
- 201: BulkCreateRulesResponseDto;
8022
- /**
8023
- * Invalid bulk create data
8951
+ * User deleted successfully
8024
8952
  */
8025
- 400: ApiProblemResponseDto;
8953
+ 204: void;
8026
8954
  /**
8027
- * Unauthorized
8955
+ * Cannot delete own account or insufficient permissions
8028
8956
  */
8029
- 401: ApiProblemResponseDto;
8957
+ 403: unknown;
8030
8958
  };
8031
8959
  };
8032
8960
  };
8033
- '/api/v1/{region}/bean/transaction-rules/export/{format}': {
8961
+ '/api/v1/users/{id}/info': {
8034
8962
  get: {
8035
- req: TransactionRuleControllerExportData;
8963
+ req: UserControllerGetUserInfoData;
8036
8964
  res: {
8037
8965
  /**
8038
- * Exported rules
8039
- */
8040
- 200: ExportRulesResponseDto;
8041
- /**
8042
- * Unsupported format
8966
+ * User info retrieved successfully
8043
8967
  */
8044
- 400: ApiProblemResponseDto;
8968
+ 200: unknown;
8045
8969
  /**
8046
- * Unauthorized
8970
+ * Cannot access other user info without admin permission
8047
8971
  */
8048
- 401: ApiProblemResponseDto;
8972
+ 403: unknown;
8049
8973
  };
8050
8974
  };
8051
8975
  };
8052
- '/api/v1/{region}/bean/transaction-rules/statistics/{period}': {
8053
- get: {
8054
- req: TransactionRuleControllerGetStatisticsData;
8976
+ '/api/v1/users/setting': {
8977
+ put: {
8978
+ req: UserControllerUpdateUserSettingData;
8055
8979
  res: {
8056
8980
  /**
8057
- * Rule statistics
8981
+ * Settings updated successfully
8058
8982
  */
8059
- 200: RuleStatisticsResponseDto;
8983
+ 200: unknown;
8060
8984
  /**
8061
- * Unauthorized
8985
+ * Insufficient permissions
8062
8986
  */
8063
- 401: ApiProblemResponseDto;
8987
+ 403: unknown;
8064
8988
  };
8065
8989
  };
8066
8990
  };
8067
- '/api/v1/{region}/bean/transaction-rules/{ruleId}': {
8991
+ '/api/v1/users/settings-by-page': {
8068
8992
  get: {
8069
- req: TransactionRuleControllerGetDetailData;
8993
+ req: UserControllerGetAllUserSettingsByPageData;
8070
8994
  res: {
8071
8995
  /**
8072
- * Rule details
8073
- */
8074
- 200: TransactionRuleResponseDto;
8075
- /**
8076
- * Unauthorized
8077
- */
8078
- 401: ApiProblemResponseDto;
8079
- /**
8080
- * Forbidden - not owner of rule
8081
- */
8082
- 403: ApiProblemResponseDto;
8083
- /**
8084
- * Rule not found
8996
+ * Settings list retrieved successfully
8085
8997
  */
8086
- 404: ApiProblemResponseDto;
8998
+ 200: unknown;
8087
8999
  };
8088
9000
  };
8089
- put: {
8090
- req: TransactionRuleControllerUpdateData;
9001
+ };
9002
+ '/api/v1/users/asset-liability-summary': {
9003
+ get: {
8091
9004
  res: {
8092
9005
  /**
8093
- * Rule updated successfully
9006
+ * Summary retrieved successfully
8094
9007
  */
8095
- 200: TransactionRuleResponseDto;
9008
+ 200: unknown;
9009
+ };
9010
+ };
9011
+ };
9012
+ '/api/v1/admin/properties': {
9013
+ get: {
9014
+ res: {
8096
9015
  /**
8097
- * Validation failed
9016
+ * Properties retrieved successfully
8098
9017
  */
8099
- 400: ApiProblemResponseDto;
9018
+ 200: unknown;
8100
9019
  /**
8101
9020
  * Unauthorized
8102
9021
  */
8103
- 401: ApiProblemResponseDto;
8104
- /**
8105
- * Forbidden - not owner of rule
8106
- */
8107
- 403: ApiProblemResponseDto;
8108
- /**
8109
- * Rule not found
8110
- */
8111
- 404: ApiProblemResponseDto;
9022
+ 401: unknown;
8112
9023
  /**
8113
- * Resource conflict - rule is being modified by another process
9024
+ * Forbidden - insufficient permissions
8114
9025
  */
8115
- 409: ApiProblemResponseDto;
9026
+ 403: unknown;
8116
9027
  };
8117
9028
  };
8118
- delete: {
8119
- req: TransactionRuleControllerDeleteData;
9029
+ };
9030
+ '/api/v1/admin/properties/{key}': {
9031
+ get: {
9032
+ req: PropertyControllerGetByKeyData;
8120
9033
  res: {
8121
9034
  /**
8122
- * Rule deleted successfully
9035
+ * Property retrieved successfully
8123
9036
  */
8124
- 204: void;
9037
+ 200: unknown;
8125
9038
  /**
8126
9039
  * Unauthorized
8127
9040
  */
8128
- 401: ApiProblemResponseDto;
8129
- /**
8130
- * Forbidden - not owner of rule
8131
- */
8132
- 403: ApiProblemResponseDto;
9041
+ 401: unknown;
8133
9042
  /**
8134
- * Rule not found
9043
+ * Forbidden - insufficient permissions
8135
9044
  */
8136
- 404: ApiProblemResponseDto;
9045
+ 403: unknown;
8137
9046
  /**
8138
- * Resource conflict - rule is being modified by another process
9047
+ * Property not found
8139
9048
  */
8140
- 409: ApiProblemResponseDto;
9049
+ 404: unknown;
8141
9050
  };
8142
9051
  };
8143
- };
8144
- '/api/v1/{region}/bean/transaction-rules/{ruleId}/test': {
8145
- post: {
8146
- req: TransactionRuleControllerTestData;
9052
+ put: {
9053
+ req: PropertyControllerUpdateData;
8147
9054
  res: {
8148
9055
  /**
8149
- * Test result
9056
+ * Property updated successfully
8150
9057
  */
8151
- 200: TestRuleResponseDto;
9058
+ 200: unknown;
8152
9059
  /**
8153
9060
  * Unauthorized
8154
9061
  */
8155
- 401: ApiProblemResponseDto;
8156
- /**
8157
- * Forbidden - not owner of rule
8158
- */
8159
- 403: ApiProblemResponseDto;
9062
+ 401: unknown;
8160
9063
  /**
8161
- * Rule not found
9064
+ * Forbidden - insufficient permissions
8162
9065
  */
8163
- 404: ApiProblemResponseDto;
9066
+ 403: unknown;
8164
9067
  };
8165
9068
  };
8166
- };
8167
- '/api/v1/users': {
8168
9069
  delete: {
8169
- req: UserControllerDeleteOwnUserData;
9070
+ req: PropertyControllerDeleteData;
8170
9071
  res: {
8171
9072
  /**
8172
- * User deleted successfully
9073
+ * Property deleted successfully
8173
9074
  */
8174
9075
  204: void;
8175
9076
  /**
8176
- * Invalid access token
9077
+ * Unauthorized
9078
+ */
9079
+ 401: unknown;
9080
+ /**
9081
+ * Forbidden - insufficient permissions
8177
9082
  */
8178
9083
  403: unknown;
8179
- };
8180
- };
8181
- get: {
8182
- req: UserControllerGetUserData;
8183
- res: {
8184
9084
  /**
8185
- * User retrieved successfully
9085
+ * Property not found
8186
9086
  */
8187
- 200: unknown;
9087
+ 404: unknown;
8188
9088
  };
8189
9089
  };
9090
+ };
9091
+ '/api/v1/{region}/bean/transaction-rules': {
8190
9092
  post: {
8191
- req: UserControllerSignupUserData;
9093
+ req: TransactionRuleControllerCreateData;
8192
9094
  res: {
8193
9095
  /**
8194
- * User created successfully
9096
+ * Rule updated successfully (upsert mode)
8195
9097
  */
8196
- 201: unknown;
9098
+ 200: TransactionRuleResponseDto;
8197
9099
  /**
8198
- * Invalid Turnstile token (when Turnstile is enabled)
9100
+ * Validation failed
8199
9101
  */
8200
- 400: unknown;
9102
+ 400: ApiProblemResponseDto;
8201
9103
  /**
8202
- * User signup is disabled
9104
+ * Unauthorized
8203
9105
  */
8204
- 403: unknown;
9106
+ 401: ApiProblemResponseDto;
9107
+ /**
9108
+ * Resource conflict - another process is updating this rule
9109
+ */
9110
+ 409: ApiProblemResponseDto;
8205
9111
  };
8206
9112
  };
8207
- };
8208
- '/api/v1/users/{id}': {
8209
- delete: {
8210
- req: UserControllerDeleteUserData;
9113
+ get: {
9114
+ req: TransactionRuleControllerListData;
8211
9115
  res: {
8212
9116
  /**
8213
- * User deleted successfully
9117
+ * List of rules
8214
9118
  */
8215
- 204: void;
9119
+ 200: TransactionRuleListResponseDto;
8216
9120
  /**
8217
- * Cannot delete own account or insufficient permissions
9121
+ * Unauthorized
8218
9122
  */
8219
- 403: unknown;
9123
+ 401: ApiProblemResponseDto;
8220
9124
  };
8221
9125
  };
8222
9126
  };
8223
- '/api/v1/users/{id}/info': {
8224
- get: {
8225
- req: UserControllerGetUserInfoData;
9127
+ '/api/v1/{region}/bean/transaction-rules/validate': {
9128
+ post: {
9129
+ req: TransactionRuleControllerValidateData;
8226
9130
  res: {
8227
9131
  /**
8228
- * User info retrieved successfully
9132
+ * Validation result
8229
9133
  */
8230
- 200: unknown;
9134
+ 200: ValidateRuleResponseDto;
8231
9135
  /**
8232
- * Cannot access other user info without admin permission
9136
+ * Validation failed
8233
9137
  */
8234
- 403: unknown;
9138
+ 400: ApiProblemResponseDto;
9139
+ /**
9140
+ * Unauthorized
9141
+ */
9142
+ 401: ApiProblemResponseDto;
8235
9143
  };
8236
9144
  };
8237
9145
  };
8238
- '/api/v1/users/setting': {
8239
- put: {
8240
- req: UserControllerUpdateUserSettingData;
9146
+ '/api/v1/{region}/bean/transaction-rules/bulk': {
9147
+ post: {
9148
+ req: TransactionRuleControllerBulkCreateData;
8241
9149
  res: {
8242
9150
  /**
8243
- * Settings updated successfully
9151
+ * Bulk create completed
8244
9152
  */
8245
- 200: unknown;
9153
+ 201: BulkCreateRulesResponseDto;
8246
9154
  /**
8247
- * Insufficient permissions
9155
+ * Invalid bulk create data
8248
9156
  */
8249
- 403: unknown;
9157
+ 400: ApiProblemResponseDto;
9158
+ /**
9159
+ * Unauthorized
9160
+ */
9161
+ 401: ApiProblemResponseDto;
8250
9162
  };
8251
9163
  };
8252
9164
  };
8253
- '/api/v1/users/settings-by-page': {
9165
+ '/api/v1/{region}/bean/transaction-rules/export/{format}': {
8254
9166
  get: {
8255
- req: UserControllerGetAllUserSettingsByPageData;
9167
+ req: TransactionRuleControllerExportData;
8256
9168
  res: {
8257
9169
  /**
8258
- * Settings list retrieved successfully
9170
+ * Exported rules
8259
9171
  */
8260
- 200: unknown;
9172
+ 200: ExportRulesResponseDto;
9173
+ /**
9174
+ * Unsupported format
9175
+ */
9176
+ 400: ApiProblemResponseDto;
9177
+ /**
9178
+ * Unauthorized
9179
+ */
9180
+ 401: ApiProblemResponseDto;
8261
9181
  };
8262
9182
  };
8263
9183
  };
8264
- '/api/v1/users/asset-liability-summary': {
9184
+ '/api/v1/{region}/bean/transaction-rules/statistics/{period}': {
8265
9185
  get: {
9186
+ req: TransactionRuleControllerGetStatisticsData;
8266
9187
  res: {
8267
9188
  /**
8268
- * Summary retrieved successfully
9189
+ * Rule statistics
8269
9190
  */
8270
- 200: unknown;
9191
+ 200: RuleStatisticsResponseDto;
9192
+ /**
9193
+ * Unauthorized
9194
+ */
9195
+ 401: ApiProblemResponseDto;
8271
9196
  };
8272
9197
  };
8273
9198
  };
8274
- '/api/v1/admin/properties': {
9199
+ '/api/v1/{region}/bean/transaction-rules/{ruleId}': {
8275
9200
  get: {
9201
+ req: TransactionRuleControllerGetDetailData;
8276
9202
  res: {
8277
9203
  /**
8278
- * Properties retrieved successfully
9204
+ * Rule details
8279
9205
  */
8280
- 200: unknown;
9206
+ 200: TransactionRuleResponseDto;
8281
9207
  /**
8282
9208
  * Unauthorized
8283
9209
  */
8284
- 401: unknown;
9210
+ 401: ApiProblemResponseDto;
8285
9211
  /**
8286
- * Forbidden - insufficient permissions
9212
+ * Forbidden - not owner of rule
8287
9213
  */
8288
- 403: unknown;
9214
+ 403: ApiProblemResponseDto;
9215
+ /**
9216
+ * Rule not found
9217
+ */
9218
+ 404: ApiProblemResponseDto;
8289
9219
  };
8290
9220
  };
8291
- };
8292
- '/api/v1/admin/properties/{key}': {
8293
- get: {
8294
- req: PropertyControllerGetByKeyData;
9221
+ put: {
9222
+ req: TransactionRuleControllerUpdateData;
8295
9223
  res: {
8296
9224
  /**
8297
- * Property retrieved successfully
9225
+ * Rule updated successfully
8298
9226
  */
8299
- 200: unknown;
9227
+ 200: TransactionRuleResponseDto;
9228
+ /**
9229
+ * Validation failed
9230
+ */
9231
+ 400: ApiProblemResponseDto;
8300
9232
  /**
8301
9233
  * Unauthorized
8302
9234
  */
8303
- 401: unknown;
9235
+ 401: ApiProblemResponseDto;
8304
9236
  /**
8305
- * Forbidden - insufficient permissions
9237
+ * Forbidden - not owner of rule
8306
9238
  */
8307
- 403: unknown;
9239
+ 403: ApiProblemResponseDto;
8308
9240
  /**
8309
- * Property not found
9241
+ * Rule not found
8310
9242
  */
8311
- 404: unknown;
9243
+ 404: ApiProblemResponseDto;
9244
+ /**
9245
+ * Resource conflict - rule is being modified by another process
9246
+ */
9247
+ 409: ApiProblemResponseDto;
8312
9248
  };
8313
9249
  };
8314
- put: {
8315
- req: PropertyControllerUpdateData;
9250
+ delete: {
9251
+ req: TransactionRuleControllerDeleteData;
8316
9252
  res: {
8317
9253
  /**
8318
- * Property updated successfully
9254
+ * Rule deleted successfully
8319
9255
  */
8320
- 200: unknown;
9256
+ 204: void;
8321
9257
  /**
8322
9258
  * Unauthorized
8323
9259
  */
8324
- 401: unknown;
9260
+ 401: ApiProblemResponseDto;
8325
9261
  /**
8326
- * Forbidden - insufficient permissions
9262
+ * Forbidden - not owner of rule
8327
9263
  */
8328
- 403: unknown;
9264
+ 403: ApiProblemResponseDto;
9265
+ /**
9266
+ * Rule not found
9267
+ */
9268
+ 404: ApiProblemResponseDto;
9269
+ /**
9270
+ * Resource conflict - rule is being modified by another process
9271
+ */
9272
+ 409: ApiProblemResponseDto;
8329
9273
  };
8330
9274
  };
8331
- delete: {
8332
- req: PropertyControllerDeleteData;
9275
+ };
9276
+ '/api/v1/{region}/bean/transaction-rules/{ruleId}/test': {
9277
+ post: {
9278
+ req: TransactionRuleControllerTestData;
8333
9279
  res: {
8334
9280
  /**
8335
- * Property deleted successfully
9281
+ * Test result
8336
9282
  */
8337
- 204: void;
9283
+ 200: TestRuleResponseDto;
8338
9284
  /**
8339
9285
  * Unauthorized
8340
9286
  */
8341
- 401: unknown;
9287
+ 401: ApiProblemResponseDto;
8342
9288
  /**
8343
- * Forbidden - insufficient permissions
9289
+ * Forbidden - not owner of rule
8344
9290
  */
8345
- 403: unknown;
9291
+ 403: ApiProblemResponseDto;
8346
9292
  /**
8347
- * Property not found
9293
+ * Rule not found
8348
9294
  */
8349
- 404: unknown;
9295
+ 404: ApiProblemResponseDto;
8350
9296
  };
8351
9297
  };
8352
9298
  };
@@ -8446,6 +9392,85 @@ export type $OpenApiTs = {
8446
9392
  };
8447
9393
  };
8448
9394
  };
9395
+ '/api/v1/{region}/bean/onboarding': {
9396
+ post: {
9397
+ req: OnboardingControllerBootstrapData;
9398
+ res: {
9399
+ /**
9400
+ * Onboarding bootstrap result.
9401
+ */
9402
+ 201: unknown;
9403
+ /**
9404
+ * Invalid region/account path/duplicate paths.
9405
+ */
9406
+ 422: unknown;
9407
+ };
9408
+ };
9409
+ };
9410
+ '/api/v1/{region}/bean/reconciliations': {
9411
+ post: {
9412
+ req: ReconciliationControllerComputeData;
9413
+ res: {
9414
+ /**
9415
+ * Reconciliation preview
9416
+ */
9417
+ 200: ReconciliationComputeResultDto;
9418
+ /**
9419
+ * Account not found
9420
+ */
9421
+ 404: unknown;
9422
+ };
9423
+ };
9424
+ };
9425
+ '/api/v1/{region}/bean/reconciliations/assert': {
9426
+ post: {
9427
+ req: ReconciliationControllerAssertData;
9428
+ res: {
9429
+ /**
9430
+ * Balance assertion recorded
9431
+ */
9432
+ 201: ReconciliationRecordDto;
9433
+ /**
9434
+ * Account not found
9435
+ */
9436
+ 404: unknown;
9437
+ };
9438
+ };
9439
+ };
9440
+ '/api/v1/{region}/bean/reconciliations/pad': {
9441
+ post: {
9442
+ req: ReconciliationControllerPadData;
9443
+ res: {
9444
+ /**
9445
+ * Pad adjusting entry generated
9446
+ */
9447
+ 201: PadResultDto;
9448
+ /**
9449
+ * Book already within tolerance — no pad needed
9450
+ */
9451
+ 400: unknown;
9452
+ /**
9453
+ * Account not found
9454
+ */
9455
+ 404: unknown;
9456
+ };
9457
+ };
9458
+ };
9459
+ '/api/v1/{region}/bean/accounts/{accountId}/reconciliations': {
9460
+ get: {
9461
+ req: ReconciliationControllerHistoryData;
9462
+ res: {
9463
+ /**
9464
+ * Reconciliation history
9465
+ */
9466
+ 200: Array<ReconciliationRecordDto>;
9467
+ /**
9468
+ * Account not found
9469
+ */
9470
+ 404: unknown;
9471
+ };
9472
+ };
9473
+ };
8449
9474
  '/api/v1/{region}/bean/export/beancount': {
8450
9475
  get: {
8451
9476
  res: {
@@ -8588,83 +9613,11 @@ export type $OpenApiTs = {
8588
9613
  /**
8589
9614
  * Configuration reset successfully
8590
9615
  */
8591
- 200: ImporterConfigDto;
8592
- /**
8593
- * Invalid input - Unsupported importer
8594
- */
8595
- 400: ApiProblemResponseDto;
8596
- };
8597
- };
8598
- };
8599
- '/api/v1/bean/platforms': {
8600
- get: {
8601
- res: {
8602
- /**
8603
- * List of platforms with binding and account counts
8604
- */
8605
- 200: unknown;
8606
- };
8607
- };
8608
- post: {
8609
- req: PlatformControllerCreateData;
8610
- res: {
8611
- /**
8612
- * Platform created successfully
8613
- */
8614
- 201: unknown;
8615
- /**
8616
- * Platform already exists
8617
- */
8618
- 409: unknown;
8619
- };
8620
- };
8621
- };
8622
- '/api/v1/bean/platforms/list': {
8623
- get: {
8624
- res: {
8625
- /**
8626
- * List of platforms with user binding status
8627
- */
8628
- 200: unknown;
8629
- };
8630
- };
8631
- };
8632
- '/api/v1/bean/platforms/match': {
8633
- get: {
8634
- req: PlatformControllerMatchPlatformsData;
8635
- res: {
8636
- /**
8637
- * List of matching platforms with suggested segment names
8638
- */
8639
- 200: unknown;
8640
- };
8641
- };
8642
- };
8643
- '/api/v1/bean/platforms/{id}': {
8644
- put: {
8645
- req: PlatformControllerUpdateData;
8646
- res: {
8647
- /**
8648
- * Platform updated successfully
8649
- */
8650
- 200: unknown;
8651
- /**
8652
- * Platform not found
8653
- */
8654
- 404: unknown;
8655
- };
8656
- };
8657
- delete: {
8658
- req: PlatformControllerDeleteData;
8659
- res: {
8660
- /**
8661
- * Platform deleted successfully
8662
- */
8663
- 204: void;
9616
+ 200: ImporterConfigDto;
8664
9617
  /**
8665
- * Platform not found
9618
+ * Invalid input - Unsupported importer
8666
9619
  */
8667
- 404: unknown;
9620
+ 400: ApiProblemResponseDto;
8668
9621
  };
8669
9622
  };
8670
9623
  };
@@ -8721,6 +9674,54 @@ export type $OpenApiTs = {
8721
9674
  };
8722
9675
  };
8723
9676
  };
9677
+ '/api/v1/{region}/bean/external-account-links': {
9678
+ post: {
9679
+ req: ExternalAccountLinkControllerCreateData;
9680
+ res: {
9681
+ /**
9682
+ * Link created.
9683
+ */
9684
+ 201: ExternalAccountLinkResponseDto;
9685
+ /**
9686
+ * beanAccountId not owned, or an active link already exists.
9687
+ */
9688
+ 422: unknown;
9689
+ };
9690
+ };
9691
+ get: {
9692
+ req: ExternalAccountLinkControllerFindAllData;
9693
+ res: {
9694
+ /**
9695
+ * Links retrieved.
9696
+ */
9697
+ 200: ExternalAccountLinkListResponseDto;
9698
+ };
9699
+ };
9700
+ };
9701
+ '/api/v1/{region}/bean/external-account-links/{id}': {
9702
+ get: {
9703
+ req: ExternalAccountLinkControllerFindOneData;
9704
+ res: {
9705
+ /**
9706
+ * Link retrieved.
9707
+ */
9708
+ 200: ExternalAccountLinkResponseDto;
9709
+ /**
9710
+ * Link not found or not owned by the user.
9711
+ */
9712
+ 422: unknown;
9713
+ };
9714
+ };
9715
+ delete: {
9716
+ req: ExternalAccountLinkControllerRemoveData;
9717
+ res: {
9718
+ /**
9719
+ * Link soft-deleted; historical transactions are unaffected.
9720
+ */
9721
+ 204: void;
9722
+ };
9723
+ };
9724
+ };
8724
9725
  '/api/v1/{region}/bean/import/parser-telemetry': {
8725
9726
  post: {
8726
9727
  req: TelemetryControllerReportTelemetryData;
@@ -8809,188 +9810,104 @@ export type $OpenApiTs = {
8809
9810
  };
8810
9811
  };
8811
9812
  };
8812
- '/api/v1/{region}/dashboard/net-worth': {
8813
- get: {
8814
- req: DashboardControllerGetNetWorthData;
8815
- res: {
8816
- /**
8817
- * Net worth retrieved successfully
8818
- */
8819
- 200: NetWorthResponseDto;
8820
- /**
8821
- * User not authenticated
8822
- */
8823
- 401: unknown;
8824
- };
8825
- };
8826
- };
8827
- '/api/v1/{region}/dashboard/accounts': {
8828
- get: {
8829
- req: DashboardControllerGetAccountsData;
8830
- res: {
8831
- /**
8832
- * Accounts retrieved successfully. Response type depends on groupBy parameter.
8833
- */
8834
- 200:
8835
- | AccountsResponseDto
8836
- | AssetClassAccountsResponseDto
8837
- | HoldingAssetClassCrossAccountResponseDto;
8838
- /**
8839
- * User not authenticated
8840
- */
8841
- 401: unknown;
8842
- };
8843
- };
8844
- };
8845
- '/api/v1/{region}/dashboard/cash-flow': {
8846
- get: {
8847
- req: DashboardControllerGetCashFlowData;
8848
- res: {
8849
- /**
8850
- * Cash flow retrieved successfully
8851
- */
8852
- 200: CashFlowResponseDto;
8853
- /**
8854
- * Invalid period format
8855
- */
8856
- 400: unknown;
8857
- /**
8858
- * User not authenticated
8859
- */
8860
- 401: unknown;
8861
- };
8862
- };
8863
- };
8864
- '/api/v1/{region}/dashboard/expenses': {
8865
- get: {
8866
- req: DashboardControllerGetExpensesData;
8867
- res: {
8868
- /**
8869
- * Expenses retrieved successfully
8870
- */
8871
- 200: ExpensesByCategoryResponseDto;
8872
- /**
8873
- * Invalid groupBy or period
8874
- */
8875
- 400: unknown;
8876
- /**
8877
- * User not authenticated
8878
- */
8879
- 401: unknown;
8880
- };
8881
- };
8882
- };
8883
- '/api/v1/{region}/investment/holdings/pnl': {
9813
+ '/api/v1/bean/platforms': {
8884
9814
  get: {
8885
- req: HoldingPnlControllerGetHoldingPnlData;
8886
9815
  res: {
8887
9816
  /**
8888
- * Holding P&L retrieved successfully
8889
- */
8890
- 200: HoldingPnlResponseDto;
8891
- /**
8892
- * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
8893
- */
8894
- 400: unknown;
8895
- /**
8896
- * User not authenticated
9817
+ * List of platforms with binding and account counts
8897
9818
  */
8898
- 401: unknown;
9819
+ 200: unknown;
8899
9820
  };
8900
9821
  };
8901
- };
8902
- '/api/v1/{region}/bean/prices': {
8903
9822
  post: {
8904
- req: PriceControllerCreateData;
9823
+ req: PlatformControllerCreateData;
8905
9824
  res: {
8906
9825
  /**
8907
- * Price created successfully
8908
- */
8909
- 201: PriceResponseDto;
8910
- /**
8911
- * Currency or quoteCurrency commodity not found
9826
+ * Platform created successfully
8912
9827
  */
8913
- 404: unknown;
9828
+ 201: unknown;
8914
9829
  /**
8915
- * Price already exists for this currency pair and date
9830
+ * Platform already exists
8916
9831
  */
8917
9832
  409: unknown;
8918
9833
  };
8919
9834
  };
9835
+ };
9836
+ '/api/v1/bean/platforms/list': {
8920
9837
  get: {
8921
- req: PriceControllerFindAllData;
8922
9838
  res: {
8923
9839
  /**
8924
- * Prices retrieved successfully
9840
+ * List of platforms with user binding status
8925
9841
  */
8926
- 200: PriceListResponseDto;
9842
+ 200: Array<PlatformListItemDto>;
8927
9843
  };
8928
9844
  };
8929
9845
  };
8930
- '/api/v1/{region}/bean/prices/{id}': {
9846
+ '/api/v1/bean/platforms/match': {
8931
9847
  get: {
8932
- req: PriceControllerFindOneData;
9848
+ req: PlatformControllerMatchPlatformsData;
8933
9849
  res: {
8934
9850
  /**
8935
- * Price retrieved successfully
8936
- */
8937
- 200: PriceResponseDto;
8938
- /**
8939
- * Price not found
9851
+ * Matching platforms with overall match type and truncation flag
8940
9852
  */
8941
- 404: unknown;
9853
+ 200: PlatformMatchResponseDto;
8942
9854
  };
8943
9855
  };
9856
+ };
9857
+ '/api/v1/bean/platforms/{id}': {
8944
9858
  put: {
8945
- req: PriceControllerUpdateData;
9859
+ req: PlatformControllerUpdateData;
8946
9860
  res: {
8947
9861
  /**
8948
- * Price updated successfully
9862
+ * Platform updated successfully
8949
9863
  */
8950
- 200: PriceResponseDto;
9864
+ 200: unknown;
8951
9865
  /**
8952
- * Price not found
9866
+ * Platform not found
8953
9867
  */
8954
9868
  404: unknown;
8955
- /**
8956
- * Updated price conflicts with existing price
8957
- */
8958
- 409: unknown;
8959
9869
  };
8960
9870
  };
8961
9871
  delete: {
8962
- req: PriceControllerDeleteData;
9872
+ req: PlatformControllerDeleteData;
8963
9873
  res: {
8964
9874
  /**
8965
- * Price deleted successfully
9875
+ * Platform deleted successfully
8966
9876
  */
8967
9877
  204: void;
8968
9878
  /**
8969
- * Price not found
9879
+ * Platform not found
8970
9880
  */
8971
9881
  404: unknown;
8972
9882
  };
8973
9883
  };
8974
9884
  };
8975
- '/api/v1/{region}/bean/prices/bulk': {
8976
- post: {
8977
- req: PriceControllerBulkCreateData;
9885
+ '/api/v1/{region}/dashboard/net-worth': {
9886
+ get: {
9887
+ req: DashboardControllerGetNetWorthData;
8978
9888
  res: {
8979
9889
  /**
8980
- * Prices created successfully
9890
+ * Net worth retrieved successfully
8981
9891
  */
8982
- 201: Array<PriceResponseDto>;
9892
+ 200: NetWorthResponseDto;
9893
+ /**
9894
+ * User not authenticated
9895
+ */
9896
+ 401: unknown;
8983
9897
  };
8984
9898
  };
8985
9899
  };
8986
- '/api/v1/{region}/reporting/portfolio/trends': {
9900
+ '/api/v1/{region}/dashboard/accounts': {
8987
9901
  get: {
8988
- req: ReportingControllerGetPortfolioTrendsData;
9902
+ req: DashboardControllerGetAccountsData;
8989
9903
  res: {
8990
9904
  /**
8991
- * Trends retrieved successfully
9905
+ * Accounts retrieved successfully. Response type depends on groupBy parameter.
8992
9906
  */
8993
- 200: PortfolioTrendsResponseDto;
9907
+ 200:
9908
+ | AccountsResponseDto
9909
+ | AssetClassAccountsResponseDto
9910
+ | HoldingAssetClassCrossAccountResponseDto;
8994
9911
  /**
8995
9912
  * User not authenticated
8996
9913
  */
@@ -8998,14 +9915,18 @@ export type $OpenApiTs = {
8998
9915
  };
8999
9916
  };
9000
9917
  };
9001
- '/api/v1/{region}/reporting/cash-flow/trends': {
9918
+ '/api/v1/{region}/dashboard/cash-flow': {
9002
9919
  get: {
9003
- req: ReportingControllerGetCashFlowTrendsData;
9920
+ req: DashboardControllerGetCashFlowData;
9004
9921
  res: {
9005
9922
  /**
9006
- * Cash-flow trends retrieved successfully
9923
+ * Cash flow retrieved successfully
9007
9924
  */
9008
- 200: CashFlowTrendsResponseDto;
9925
+ 200: CashFlowResponseDto;
9926
+ /**
9927
+ * Invalid period format
9928
+ */
9929
+ 400: unknown;
9009
9930
  /**
9010
9931
  * User not authenticated
9011
9932
  */
@@ -9013,16 +9934,16 @@ export type $OpenApiTs = {
9013
9934
  };
9014
9935
  };
9015
9936
  };
9016
- '/api/v1/{region}/reporting/snapshots/generate': {
9017
- post: {
9018
- req: ReportingControllerGenerateSnapshotData;
9937
+ '/api/v1/{region}/dashboard/expenses': {
9938
+ get: {
9939
+ req: DashboardControllerGetExpensesData;
9019
9940
  res: {
9020
9941
  /**
9021
- * Snapshot generated successfully
9942
+ * Expenses retrieved successfully
9022
9943
  */
9023
- 200: GenerateSnapshotResponse;
9944
+ 200: ExpensesByCategoryResponseDto;
9024
9945
  /**
9025
- * Invalid date format
9946
+ * Invalid groupBy or period
9026
9947
  */
9027
9948
  400: unknown;
9028
9949
  /**
@@ -9032,26 +9953,22 @@ export type $OpenApiTs = {
9032
9953
  };
9033
9954
  };
9034
9955
  };
9035
- '/api/v1/{region}/reporting/snapshots/backfill': {
9036
- post: {
9037
- req: ReportingControllerBackfillSnapshotsData;
9956
+ '/api/v1/{region}/investment/holdings/pnl': {
9957
+ get: {
9958
+ req: HoldingPnlControllerGetHoldingPnlData;
9038
9959
  res: {
9039
9960
  /**
9040
- * Backfill completed successfully
9961
+ * Holding P&L retrieved successfully
9041
9962
  */
9042
- 200: BackfillSnapshotsResponse;
9963
+ 200: HoldingPnlResponseDto;
9043
9964
  /**
9044
- * Invalid date format or range
9965
+ * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
9045
9966
  */
9046
9967
  400: unknown;
9047
9968
  /**
9048
9969
  * User not authenticated
9049
9970
  */
9050
9971
  401: unknown;
9051
- /**
9052
- * Backfill already in progress for this user
9053
- */
9054
- 409: unknown;
9055
9972
  };
9056
9973
  };
9057
9974
  };
@@ -9076,7 +9993,7 @@ export type $OpenApiTs = {
9076
9993
  /**
9077
9994
  * Login successful
9078
9995
  */
9079
- 200: unknown;
9996
+ 200: AnonymousLoginResponseDto;
9080
9997
  /**
9081
9998
  * Invalid access token
9082
9999
  */
@@ -9223,4 +10140,30 @@ export type $OpenApiTs = {
9223
10140
  };
9224
10141
  };
9225
10142
  };
10143
+ '/api/v1/market/symbols/search': {
10144
+ get: {
10145
+ req: SymbolControllerSearchData;
10146
+ res: {
10147
+ /**
10148
+ * Ranked search results
10149
+ */
10150
+ 200: Array<SymbolSearchResultDto>;
10151
+ };
10152
+ };
10153
+ };
10154
+ '/api/v1/market/symbols/{symbol}/quote': {
10155
+ get: {
10156
+ req: SymbolControllerGetQuoteData;
10157
+ res: {
10158
+ /**
10159
+ * Symbol quote
10160
+ */
10161
+ 200: SymbolQuoteDto;
10162
+ /**
10163
+ * Symbol not found in the openbb catalog
10164
+ */
10165
+ 404: unknown;
10166
+ };
10167
+ };
10168
+ };
9226
10169
  };