@firela/api-types 0.0.0-canary.45a6cc23 → 0.0.0-canary.505aa62c

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,10 +69,6 @@ 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
  */
@@ -121,17 +109,17 @@ export type AccountResponseDto = {
121
109
  */
122
110
  isCustom: boolean;
123
111
  /**
124
- * i18n key for display name
112
+ * Localized display name (ADR-0114, read-time projection)
125
113
  */
126
- i18nKey?: string;
114
+ displayName?: string;
127
115
  /**
128
116
  * Icon identifier
129
117
  */
130
118
  icon?: string;
131
119
  /**
132
- * Account metadata
120
+ * Open directive metadata (ADR-0115 Decision 9)
133
121
  */
134
- openMeta?: {
122
+ openDirectiveMeta?: {
135
123
  [key: string]: unknown;
136
124
  };
137
125
  /**
@@ -178,10 +166,6 @@ export type AccountListResponseDto = {
178
166
  };
179
167
 
180
168
  export type UpdateAccountDto = {
181
- /**
182
- * Display name to distinguish accounts at the same path
183
- */
184
- displayName?: string;
185
169
  /**
186
170
  * Allowed currencies (null = no restriction)
187
171
  */
@@ -197,18 +181,14 @@ export type UpdateAccountDto = {
197
181
  | 'STRICT'
198
182
  | 'STRICT_WITH_SIZE'
199
183
  | 'NONE';
200
- /**
201
- * i18n key for display name
202
- */
203
- i18nKey?: string;
204
184
  /**
205
185
  * Icon identifier
206
186
  */
207
187
  icon?: string;
208
188
  /**
209
- * Additional metadata (merged with existing)
189
+ * Open directive metadata (merged with existing; NOT an opening-balance amount)
210
190
  */
211
- openMeta?: {
191
+ openDirectiveMeta?: {
212
192
  [key: string]: unknown;
213
193
  };
214
194
  /**
@@ -237,6 +217,28 @@ export type ReopenAccountDto = {
237
217
  reopenDate?: string;
238
218
  };
239
219
 
220
+ export type CreateOpeningBalanceDto = {
221
+ /**
222
+ * Opening balance amount (non-negative)
223
+ */
224
+ amount: number;
225
+ /**
226
+ * Currency code
227
+ */
228
+ currency: string;
229
+ /**
230
+ * Opening-balance date (defaults to now)
231
+ */
232
+ date?: string;
233
+ };
234
+
235
+ export type OpeningBalanceResultDto = {
236
+ /**
237
+ * Created opening-balance transaction id.
238
+ */
239
+ transactionId: string;
240
+ };
241
+
240
242
  export type AccountStandardResponseDto = {
241
243
  /**
242
244
  * Account path (hierarchical, colon-separated)
@@ -246,10 +248,6 @@ export type AccountStandardResponseDto = {
246
248
  * Account type in Beancount hierarchy
247
249
  */
248
250
  type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
249
- /**
250
- * i18n key for localized display name
251
- */
252
- i18nKey: string;
253
251
  /**
254
252
  * Short localized display name
255
253
  */
@@ -284,10 +282,6 @@ export type AccountStandardListResponseDto = {
284
282
  };
285
283
 
286
284
  export type TemplateMetadataDto = {
287
- /**
288
- * Whether this path can be extended
289
- */
290
- extendable: boolean;
291
285
  /**
292
286
  * Root account type
293
287
  */
@@ -848,6 +842,51 @@ export type flag2 =
848
842
  */
849
843
  export type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
850
844
 
845
+ export type BalanceByCurrencyDto = {
846
+ /**
847
+ * ISO 4217 currency code
848
+ */
849
+ currency: string;
850
+ /**
851
+ * Balance amount
852
+ */
853
+ balance: string;
854
+ };
855
+
856
+ export type ExchangeRateWarningDto = {
857
+ /**
858
+ * Warning type
859
+ */
860
+ type: string;
861
+ /**
862
+ * Currency without exchange rate
863
+ */
864
+ currency: string;
865
+ /**
866
+ * Total amount affected
867
+ */
868
+ totalAmount: string;
869
+ };
870
+
871
+ export type TransactionListSummaryDto = {
872
+ /**
873
+ * 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.
874
+ */
875
+ totalAmount: string;
876
+ /**
877
+ * Base currency (ISO 4217)
878
+ */
879
+ currency: string;
880
+ /**
881
+ * Raw (unconverted) balance per currency
882
+ */
883
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
884
+ /**
885
+ * Currencies missing an FX rate (omitted when empty)
886
+ */
887
+ warnings?: Array<ExchangeRateWarningDto>;
888
+ };
889
+
851
890
  export type TransactionListResponseDto = {
852
891
  /**
853
892
  * List of transactions
@@ -865,6 +904,10 @@ export type TransactionListResponseDto = {
865
904
  * Number of items skipped
866
905
  */
867
906
  offset: number;
907
+ /**
908
+ * 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.
909
+ */
910
+ summary?: TransactionListSummaryDto;
868
911
  };
869
912
 
870
913
  export type TagSuggestionDto = {
@@ -1917,6 +1960,108 @@ export type UpdateCommodityDto = {
1917
1960
  };
1918
1961
  };
1919
1962
 
1963
+ export type CreateBeanPriceDto = {
1964
+ /**
1965
+ * Currency being priced (e.g., USD, AAPL, BTC)
1966
+ */
1967
+ currency: string;
1968
+ /**
1969
+ * Quote currency (pricing currency, e.g., CNY, EUR)
1970
+ */
1971
+ quoteCurrency: string;
1972
+ /**
1973
+ * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
1974
+ */
1975
+ amount: number;
1976
+ /**
1977
+ * Price date (ISO 8601 format)
1978
+ */
1979
+ date: string;
1980
+ /**
1981
+ * Metadata (validated by Zod schema, max field lengths enforced)
1982
+ */
1983
+ metadata?: {
1984
+ [key: string]: unknown;
1985
+ };
1986
+ };
1987
+
1988
+ export type PriceResponseDto = {
1989
+ /**
1990
+ * Unique identifier
1991
+ */
1992
+ id: string;
1993
+ /**
1994
+ * User ID (owner of the price)
1995
+ */
1996
+ userId: string;
1997
+ /**
1998
+ * Currency being priced (e.g., USD, AAPL, BTC)
1999
+ */
2000
+ currency: string;
2001
+ /**
2002
+ * Quote currency (pricing currency, e.g., USD, CNY)
2003
+ */
2004
+ quoteCurrency: string;
2005
+ /**
2006
+ * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
2007
+ */
2008
+ amount: number;
2009
+ /**
2010
+ * Price date (ISO 8601 format). Represents the date this price was valid.
2011
+ */
2012
+ date: string;
2013
+ /**
2014
+ * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
2015
+ */
2016
+ meta: {
2017
+ [key: string]: unknown;
2018
+ };
2019
+ /**
2020
+ * Creation timestamp
2021
+ */
2022
+ createdAt: string;
2023
+ /**
2024
+ * Last update timestamp
2025
+ */
2026
+ updatedAt: string;
2027
+ };
2028
+
2029
+ export type PriceListResponseDto = {
2030
+ /**
2031
+ * List of prices
2032
+ */
2033
+ items: Array<PriceResponseDto>;
2034
+ /**
2035
+ * Total number of prices
2036
+ */
2037
+ total: number;
2038
+ };
2039
+
2040
+ export type UpdateBeanPriceDto = {
2041
+ /**
2042
+ * Currency being priced
2043
+ */
2044
+ currency?: string;
2045
+ /**
2046
+ * Quote currency (pricing currency)
2047
+ */
2048
+ quoteCurrency?: string;
2049
+ /**
2050
+ * Price amount (MUST be >= 0 per Beancount spec)
2051
+ */
2052
+ amount?: number;
2053
+ /**
2054
+ * Price date (ISO 8601 format)
2055
+ */
2056
+ date?: string;
2057
+ /**
2058
+ * Metadata
2059
+ */
2060
+ metadata?: {
2061
+ [key: string]: unknown;
2062
+ };
2063
+ };
2064
+
1920
2065
  export type CreateRecurringRuleDto = {
1921
2066
  /**
1922
2067
  * Rule name (unique per user)
@@ -3119,95 +3264,249 @@ export type UpdateBeanEventDto = {
3119
3264
  };
3120
3265
  };
3121
3266
 
3122
- export type FileImportDto = {
3267
+ export type OnboardingAccountDto = {
3123
3268
  /**
3124
- * Bill file to import (CSV, PDF, OFX, etc.)
3269
+ * Account path (Assets/Liabilities only; format validated by the account service)
3125
3270
  */
3126
- file: Blob | File;
3271
+ path: string;
3272
+ /**
3273
+ * ISO 4217 currency code (3 letters)
3274
+ */
3275
+ currency: string;
3276
+ /**
3277
+ * Opening balance as a non-negative Decimal string (e.g. "1000.00")
3278
+ */
3279
+ openingBalance?: string;
3280
+ /**
3281
+ * Platform ID to bind the account to (references Platform.id); omit for unbound
3282
+ */
3283
+ platformId?: string;
3127
3284
  };
3128
3285
 
3129
- export type ImportErrorDto = {
3286
+ export type OnboardingDto = {
3130
3287
  /**
3131
- * Index of failed transaction in the file
3288
+ * Asset/Liability accounts to register with opening balances
3132
3289
  */
3133
- index: number;
3290
+ accounts?: Array<OnboardingAccountDto>;
3134
3291
  /**
3135
- * Error message
3292
+ * Skip asset registration; only bootstrap the core account set
3136
3293
  */
3137
- error: string;
3294
+ skipAssetRegistration?: boolean;
3138
3295
  };
3139
3296
 
3140
- export type ReviewItemPreviewDto = {
3297
+ export type ActualBalanceDto = {
3141
3298
  /**
3142
- * Index in the import batch (for tracking)
3299
+ * Actual balance amount as a decimal string (preserves precision for tolerance inference).
3143
3300
  */
3144
- index: number;
3301
+ amount: string;
3145
3302
  /**
3146
- * Transaction date (ISO format)
3303
+ * Currency code (ISO 4217 or commodity ticker).
3147
3304
  */
3148
- date: string;
3305
+ ccy: string;
3306
+ };
3307
+
3308
+ export type ComputeReconciliationDto = {
3149
3309
  /**
3150
- * Transaction amount (absolute value)
3310
+ * BeanAccount id to reconcile.
3151
3311
  */
3152
- amount?: number;
3312
+ accountId: string;
3153
3313
  /**
3154
- * Currency code
3314
+ * Assertion date (ISO 8601, e.g. "2026-07-24").
3155
3315
  */
3156
- currency?: string;
3316
+ asOfDate: string;
3157
3317
  /**
3158
- * Transaction narration/description
3318
+ * Actual balance from the external statement.
3159
3319
  */
3160
- narration: string;
3320
+ actualBalance: ActualBalanceDto;
3321
+ };
3322
+
3323
+ export type ReconciliationComputeResultDto = {
3324
+ accountId: string;
3325
+ asOfDate: string;
3161
3326
  /**
3162
- * Payee name
3327
+ * System-computed book balance (decimal string).
3163
3328
  */
3164
- payee?: string;
3329
+ bookBalance: string;
3165
3330
  /**
3166
- * Inferred category from rule matching
3331
+ * User-entered actual balance (decimal string).
3167
3332
  */
3168
- category?: string;
3333
+ actualBalance: string;
3334
+ currency: string;
3169
3335
  /**
3170
- * Confidence score for the match (0-1)
3336
+ * Diff = book − actual (decimal string).
3171
3337
  */
3172
- confidence?: number;
3338
+ diff: string;
3173
3339
  /**
3174
- * Type of branch requiring review
3340
+ * Applied tolerance (decimal string).
3175
3341
  */
3176
- branchType?:
3177
- | 'DUPLICATE'
3178
- | 'PAYEE_MATCH'
3179
- | 'RULE_MATCH'
3180
- | 'ACCOUNT_VALIDATION'
3181
- | 'PIPELINE_ERROR';
3342
+ tolerance: string;
3182
3343
  /**
3183
- * Human-readable reasons for requiring review
3344
+ * true when |diff| ≤ tolerance.
3184
3345
  */
3185
- reasons?: Array<string>;
3346
+ withinTolerance: boolean;
3347
+ /**
3348
+ * Suggested next action: assert when within tolerance, pad otherwise.
3349
+ */
3350
+ suggestedAction: 'assert' | 'pad';
3186
3351
  };
3187
3352
 
3188
3353
  /**
3189
- * Type of branch requiring review
3354
+ * Suggested next action: assert when within tolerance, pad otherwise.
3190
3355
  */
3191
- export type branchType =
3192
- | 'DUPLICATE'
3193
- | 'PAYEE_MATCH'
3194
- | 'RULE_MATCH'
3195
- | 'ACCOUNT_VALIDATION'
3196
- | 'PIPELINE_ERROR';
3356
+ export type suggestedAction = 'assert' | 'pad';
3197
3357
 
3198
- export type ImportResultDto = {
3358
+ export type AssertReconciliationDto = {
3199
3359
  /**
3200
- * Number of successfully imported transactions
3360
+ * BeanAccount id to reconcile.
3201
3361
  */
3202
- imported: number;
3362
+ accountId: string;
3203
3363
  /**
3204
- * Number of failed transactions
3364
+ * Assertion date (ISO 8601, e.g. "2026-07-24").
3205
3365
  */
3206
- failed: number;
3366
+ asOfDate: string;
3207
3367
  /**
3208
- * Number of skipped transactions (high confidence duplicates, auto-skipped)
3368
+ * Actual balance from the external statement.
3209
3369
  */
3210
- skipped: number;
3370
+ actualBalance: ActualBalanceDto;
3371
+ /**
3372
+ * Optional explicit tolerance override. Omit to infer from amount precision (Beancount default).
3373
+ */
3374
+ tolerance?: string;
3375
+ };
3376
+
3377
+ export type ReconciliationRecordDto = {
3378
+ id: string;
3379
+ accountId: string;
3380
+ date: string;
3381
+ /**
3382
+ * Asserted (actual) amount.
3383
+ */
3384
+ amount: string;
3385
+ currency: string;
3386
+ tolerance?: string;
3387
+ /**
3388
+ * book − actual.
3389
+ */
3390
+ diffAmount?: string;
3391
+ diffCurrency?: string;
3392
+ createdAt: string;
3393
+ };
3394
+
3395
+ export type PadReconciliationDto = {
3396
+ /**
3397
+ * BeanAccount id to reconcile.
3398
+ */
3399
+ accountId: string;
3400
+ /**
3401
+ * Assertion date (ISO 8601, e.g. "2026-07-24").
3402
+ */
3403
+ asOfDate: string;
3404
+ /**
3405
+ * Actual balance from the external statement.
3406
+ */
3407
+ actualBalance: ActualBalanceDto;
3408
+ /**
3409
+ * Pad source account. Defaults to Equity:Opening-Balances (official Beancount convention).
3410
+ */
3411
+ sourceAccount?: string;
3412
+ };
3413
+
3414
+ export type PadResultDto = {
3415
+ /**
3416
+ * Created pad adjusting transaction id.
3417
+ */
3418
+ transactionId: string;
3419
+ };
3420
+
3421
+ export type FileImportDto = {
3422
+ /**
3423
+ * Bill file to import (CSV, PDF, OFX, etc.)
3424
+ */
3425
+ file: Blob | File;
3426
+ };
3427
+
3428
+ export type ImportErrorDto = {
3429
+ /**
3430
+ * Index of failed transaction in the file
3431
+ */
3432
+ index: number;
3433
+ /**
3434
+ * Error message
3435
+ */
3436
+ error: string;
3437
+ };
3438
+
3439
+ export type ReviewItemPreviewDto = {
3440
+ /**
3441
+ * Index in the import batch (for tracking)
3442
+ */
3443
+ index: number;
3444
+ /**
3445
+ * Transaction date (ISO format)
3446
+ */
3447
+ date: string;
3448
+ /**
3449
+ * Transaction amount (absolute value)
3450
+ */
3451
+ amount?: number;
3452
+ /**
3453
+ * Currency code
3454
+ */
3455
+ currency?: string;
3456
+ /**
3457
+ * Transaction narration/description
3458
+ */
3459
+ narration: string;
3460
+ /**
3461
+ * Payee name
3462
+ */
3463
+ payee?: string;
3464
+ /**
3465
+ * Inferred category from rule matching
3466
+ */
3467
+ category?: string;
3468
+ /**
3469
+ * Confidence score for the match (0-1)
3470
+ */
3471
+ confidence?: number;
3472
+ /**
3473
+ * Type of branch requiring review
3474
+ */
3475
+ branchType?:
3476
+ | 'DUPLICATE'
3477
+ | 'PAYEE_MATCH'
3478
+ | 'RULE_MATCH'
3479
+ | 'ACCOUNT_VALIDATION'
3480
+ | 'PIPELINE_ERROR';
3481
+ /**
3482
+ * Human-readable reasons for requiring review
3483
+ */
3484
+ reasons?: Array<string>;
3485
+ };
3486
+
3487
+ /**
3488
+ * Type of branch requiring review
3489
+ */
3490
+ export type branchType =
3491
+ | 'DUPLICATE'
3492
+ | 'PAYEE_MATCH'
3493
+ | 'RULE_MATCH'
3494
+ | 'ACCOUNT_VALIDATION'
3495
+ | 'PIPELINE_ERROR';
3496
+
3497
+ export type ImportResultDto = {
3498
+ /**
3499
+ * Number of successfully imported transactions
3500
+ */
3501
+ imported: number;
3502
+ /**
3503
+ * Number of failed transactions
3504
+ */
3505
+ failed: number;
3506
+ /**
3507
+ * Number of skipped transactions (high confidence duplicates, auto-skipped)
3508
+ */
3509
+ skipped: number;
3211
3510
  /**
3212
3511
  * Number of transactions pending review (medium confidence duplicates)
3213
3512
  */
@@ -3417,94 +3716,6 @@ export type UpdateImporterConfigDto = {
3417
3716
  data?: UpdateConfigDataDto;
3418
3717
  };
3419
3718
 
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>;
3483
- /**
3484
- * Platform URL
3485
- */
3486
- url?: string;
3487
- /**
3488
- * Platform type
3489
- */
3490
- type?:
3491
- | 'BANK'
3492
- | 'BROKERAGE'
3493
- | 'CRYPTO_EXCHANGE'
3494
- | 'PAYMENT'
3495
- | 'INVESTMENT'
3496
- | 'INSURANCE'
3497
- | 'OTHER';
3498
- /**
3499
- * Platform logo URL
3500
- */
3501
- logoUrl?: string;
3502
- /**
3503
- * Whether the platform is active
3504
- */
3505
- isActive?: boolean;
3506
- };
3507
-
3508
3719
  export type ProviderSyncConfigDto = {
3509
3720
  /**
3510
3721
  * Source account for the first posting
@@ -3526,6 +3737,10 @@ export type ProviderSyncConfigDto = {
3526
3737
  * Filter pending transactions
3527
3738
  */
3528
3739
  filterPending?: boolean;
3740
+ /**
3741
+ * External account ID for per-batch providers (e.g. GoCardless). Overrides sourceAccount when an ExternalAccountLink mapping exists.
3742
+ */
3743
+ externalAccountId?: string;
3529
3744
  };
3530
3745
 
3531
3746
  export type ProviderSyncDto = {
@@ -3581,6 +3796,61 @@ export type SupportedProvidersResponseDto = {
3581
3796
  providers: Array<string>;
3582
3797
  };
3583
3798
 
3799
+ export type CreateExternalAccountLinkDto = {
3800
+ /**
3801
+ * Open Banking provider (whitelist)
3802
+ */
3803
+ provider:
3804
+ | 'plaid'
3805
+ | 'teller'
3806
+ | 'truelayer'
3807
+ | 'gocardless'
3808
+ | 'simplefin'
3809
+ | 'yodlee'
3810
+ | 'beancount-direct'
3811
+ | 'parsed-bill';
3812
+ /**
3813
+ * External account ID from the provider
3814
+ */
3815
+ externalAccountId: string;
3816
+ /**
3817
+ * Target BeanAccount ID (must belong to the JWT user)
3818
+ */
3819
+ beanAccountId: string;
3820
+ };
3821
+
3822
+ /**
3823
+ * Open Banking provider (whitelist)
3824
+ */
3825
+ export type provider =
3826
+ | 'plaid'
3827
+ | 'teller'
3828
+ | 'truelayer'
3829
+ | 'gocardless'
3830
+ | 'simplefin'
3831
+ | 'yodlee'
3832
+ | 'beancount-direct'
3833
+ | 'parsed-bill';
3834
+
3835
+ export type ExternalAccountLinkResponseDto = {
3836
+ id: string;
3837
+ provider: string;
3838
+ externalAccountId: string;
3839
+ beanAccountId: string;
3840
+ isActive: boolean;
3841
+ createdAt: string;
3842
+ updatedAt: string;
3843
+ };
3844
+
3845
+ export type ExternalAccountLinkListResponseDto = {
3846
+ items: Array<ExternalAccountLinkResponseDto>;
3847
+ total: number;
3848
+ /**
3849
+ * Filter by provider (query param)
3850
+ */
3851
+ provider?: string;
3852
+ };
3853
+
3584
3854
  export type ParserTelemetryReportDto = unknown;
3585
3855
 
3586
3856
  export type UncoveredFormatMissDto = unknown;
@@ -4160,18 +4430,95 @@ export type liabilitySubType = 'borrow' | 'repay';
4160
4430
  */
4161
4431
  export type equitySubType = 'opening' | 'adjustment';
4162
4432
 
4163
- export type BalanceByCurrencyDto = {
4433
+ export type CreatePlatformDto = {
4164
4434
  /**
4165
- * ISO 4217 currency code
4435
+ * Platform name
4166
4436
  */
4167
- currency: string;
4437
+ name: string;
4168
4438
  /**
4169
- * Balance amount
4439
+ * Platform canonical identifier (lowercase, kebab-case)
4170
4440
  */
4171
- balance: string;
4172
- };
4173
-
4174
- export type NetWorthByCurrencyDto = {
4441
+ canonical: string;
4442
+ /**
4443
+ * Platform aliases (multi-language names for lookup)
4444
+ */
4445
+ aliases: Array<string>;
4446
+ /**
4447
+ * Platform URL
4448
+ */
4449
+ url: string;
4450
+ /**
4451
+ * Platform type
4452
+ */
4453
+ type:
4454
+ | 'BANK'
4455
+ | 'BROKERAGE'
4456
+ | 'CRYPTO_EXCHANGE'
4457
+ | 'PAYMENT'
4458
+ | 'INVESTMENT'
4459
+ | 'INSURANCE'
4460
+ | 'OTHER';
4461
+ /**
4462
+ * Platform logo URL
4463
+ */
4464
+ logoUrl?: string;
4465
+ /**
4466
+ * Whether the platform is active
4467
+ */
4468
+ isActive?: boolean;
4469
+ };
4470
+
4471
+ /**
4472
+ * Platform type
4473
+ */
4474
+ export type type3 =
4475
+ | 'BANK'
4476
+ | 'BROKERAGE'
4477
+ | 'CRYPTO_EXCHANGE'
4478
+ | 'PAYMENT'
4479
+ | 'INVESTMENT'
4480
+ | 'INSURANCE'
4481
+ | 'OTHER';
4482
+
4483
+ export type UpdatePlatformDto = {
4484
+ /**
4485
+ * Platform name
4486
+ */
4487
+ name?: string;
4488
+ /**
4489
+ * Platform canonical identifier (lowercase, kebab-case)
4490
+ */
4491
+ canonical?: string;
4492
+ /**
4493
+ * Platform aliases (multi-language names for lookup)
4494
+ */
4495
+ aliases?: Array<string>;
4496
+ /**
4497
+ * Platform URL
4498
+ */
4499
+ url?: string;
4500
+ /**
4501
+ * Platform type
4502
+ */
4503
+ type?:
4504
+ | 'BANK'
4505
+ | 'BROKERAGE'
4506
+ | 'CRYPTO_EXCHANGE'
4507
+ | 'PAYMENT'
4508
+ | 'INVESTMENT'
4509
+ | 'INSURANCE'
4510
+ | 'OTHER';
4511
+ /**
4512
+ * Platform logo URL
4513
+ */
4514
+ logoUrl?: string;
4515
+ /**
4516
+ * Whether the platform is active
4517
+ */
4518
+ isActive?: boolean;
4519
+ };
4520
+
4521
+ export type NetWorthByCurrencyDto = {
4175
4522
  /**
4176
4523
  * Net worth by currency
4177
4524
  */
@@ -4211,21 +4558,6 @@ export type ConvertedNetWorthDto = {
4211
4558
  };
4212
4559
  };
4213
4560
 
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
4561
  export type NetWorthResponseDto = {
4230
4562
  /**
4231
4563
  * Total net worth (assets - liabilities, converted to base currency)
@@ -4290,6 +4622,10 @@ export type AccountItemDto = {
4290
4622
  * Currency code
4291
4623
  */
4292
4624
  currency: string;
4625
+ /**
4626
+ * FX-converted balance in base currency; omitted when not convertible
4627
+ */
4628
+ convertedBalance?: string;
4293
4629
  };
4294
4630
 
4295
4631
  export type PlatformGroupDto = {
@@ -4306,9 +4642,40 @@ export type PlatformGroupDto = {
4306
4642
  */
4307
4643
  accounts: Array<AccountItemDto>;
4308
4644
  /**
4309
- * Total balance across all accounts in platform
4645
+ * FX-converted total balance in base currency
4310
4646
  */
4311
4647
  totalBalance: string;
4648
+ /**
4649
+ * Raw (unconverted) balances grouped by currency
4650
+ */
4651
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
4652
+ /**
4653
+ * Converted balance in base currency (omitted when no currency is convertible)
4654
+ */
4655
+ convertedBalance?: string;
4656
+ /**
4657
+ * Share of the grand converted total (0-100); 0 when grand total is 0
4658
+ */
4659
+ sharePct: number;
4660
+ };
4661
+
4662
+ export type AccountExchangeRateWarningDto = {
4663
+ /**
4664
+ * Warning type
4665
+ */
4666
+ type: string;
4667
+ /**
4668
+ * Currency without exchange rate
4669
+ */
4670
+ currency: string;
4671
+ /**
4672
+ * Affected account paths
4673
+ */
4674
+ accounts: Array<string>;
4675
+ /**
4676
+ * Total amount in this currency
4677
+ */
4678
+ totalAmount: string;
4312
4679
  };
4313
4680
 
4314
4681
  export type AccountsSummaryDto = {
@@ -4320,6 +4687,14 @@ export type AccountsSummaryDto = {
4320
4687
  * Total number of platforms
4321
4688
  */
4322
4689
  totalPlatforms: number;
4690
+ /**
4691
+ * Base currency for conversion
4692
+ */
4693
+ baseCurrency: string;
4694
+ /**
4695
+ * Per-account exchange rate warnings
4696
+ */
4697
+ warnings?: Array<AccountExchangeRateWarningDto>;
4323
4698
  };
4324
4699
 
4325
4700
  export type AccountsResponseDto = {
@@ -4354,6 +4729,10 @@ export type AccountItemWithAssetClassDto = {
4354
4729
  * Currency code
4355
4730
  */
4356
4731
  currency: string;
4732
+ /**
4733
+ * FX-converted balance in base currency; omitted when not convertible
4734
+ */
4735
+ convertedBalance?: string;
4357
4736
  /**
4358
4737
  * Asset class
4359
4738
  */
@@ -4435,25 +4814,6 @@ export type assetClass =
4435
4814
  | 'REAL_ESTATE'
4436
4815
  | 'INDEX';
4437
4816
 
4438
- export type AccountExchangeRateWarningDto = {
4439
- /**
4440
- * Warning type
4441
- */
4442
- type: string;
4443
- /**
4444
- * Currency without exchange rate
4445
- */
4446
- currency: string;
4447
- /**
4448
- * Affected account paths
4449
- */
4450
- accounts: Array<string>;
4451
- /**
4452
- * Total amount in this currency
4453
- */
4454
- totalAmount: string;
4455
- };
4456
-
4457
4817
  export type AssetClassSummaryDto = {
4458
4818
  /**
4459
4819
  * Total number of accounts
@@ -4625,7 +4985,7 @@ export type CategoryGroupDto = {
4625
4985
  */
4626
4986
  category: string;
4627
4987
  /**
4628
- * Converted total expense in base currency
4988
+ * Converted total for this category in base currency (expense amount when flow=expense, income amount when flow=income)
4629
4989
  */
4630
4990
  totalExpense: string;
4631
4991
  /**
@@ -4644,7 +5004,7 @@ export type CategoryGroupDto = {
4644
5004
 
4645
5005
  export type ExpensesByCategorySummaryDto = {
4646
5006
  /**
4647
- * Total expense across all categories (converted; convertible categories only)
5007
+ * Total across all categories, converted (convertible categories only); expense totals when flow=expense, income totals when flow=income
4648
5008
  */
4649
5009
  totalExpense: string;
4650
5010
  /**
@@ -4871,205 +5231,103 @@ export type HoldingPnlResponseDto = {
4871
5231
  */
4872
5232
  export type method = 'average' | 'FIFO';
4873
5233
 
4874
- export type CreateBeanPriceDto = {
5234
+ export type CurrencyBalanceDto = {
4875
5235
  /**
4876
- * Currency being priced (e.g., USD, AAPL, BTC)
5236
+ * ISO 4217 currency code
4877
5237
  */
4878
5238
  currency: string;
4879
5239
  /**
4880
- * Quote currency (pricing currency, e.g., CNY, EUR)
5240
+ * Balance amount
4881
5241
  */
4882
- quoteCurrency: string;
5242
+ balance: string;
5243
+ };
5244
+
5245
+ export type TimeSeriesPointDto = {
4883
5246
  /**
4884
- * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
5247
+ * Date in YYYY-MM-DD format
4885
5248
  */
4886
- amount: number;
5249
+ date: string;
4887
5250
  /**
4888
- * Price date (ISO 8601 format)
5251
+ * Value at this date (in base currency)
4889
5252
  */
4890
- date: string;
5253
+ value: string;
4891
5254
  /**
4892
- * Metadata (validated by Zod schema, max field lengths enforced)
5255
+ * Change from previous point
4893
5256
  */
4894
- metadata?: {
5257
+ change?: {
4895
5258
  [key: string]: unknown;
4896
5259
  };
4897
- };
4898
-
4899
- export type PriceResponseDto = {
4900
5260
  /**
4901
- * Unique identifier
5261
+ * Total assets at this date (in base currency)
4902
5262
  */
4903
- id: string;
5263
+ assets?: string;
4904
5264
  /**
4905
- * User ID (owner of the price)
5265
+ * Total liabilities at this date (in base currency)
4906
5266
  */
4907
- userId: string;
5267
+ liabilities?: string;
4908
5268
  /**
4909
- * Currency being priced (e.g., USD, AAPL, BTC)
5269
+ * Multi-currency breakdown for this point
4910
5270
  */
4911
- currency: string;
5271
+ byCurrency?: Array<CurrencyBalanceDto>;
5272
+ };
5273
+
5274
+ export type TrendSummaryDto = {
4912
5275
  /**
4913
- * Quote currency (pricing currency, e.g., USD, CNY)
5276
+ * Value at start of period
4914
5277
  */
4915
- quoteCurrency: string;
5278
+ startValue: string;
4916
5279
  /**
4917
- * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
5280
+ * Value at end of period
4918
5281
  */
4919
- amount: number;
5282
+ endValue: string;
4920
5283
  /**
4921
- * Price date (ISO 8601 format). Represents the date this price was valid.
5284
+ * Total change over period
4922
5285
  */
4923
- date: string;
5286
+ totalChange: string;
4924
5287
  /**
4925
- * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
5288
+ * Total change percentage
4926
5289
  */
4927
- meta: {
4928
- [key: string]: unknown;
4929
- };
5290
+ totalChangePercentage: string;
5291
+ };
5292
+
5293
+ export type MultiCurrencyPointDto = {
4930
5294
  /**
4931
- * Creation timestamp
5295
+ * Date in YYYY-MM-DD format
4932
5296
  */
4933
- createdAt: string;
5297
+ date: string;
4934
5298
  /**
4935
- * Last update timestamp
5299
+ * Balances by currency
4936
5300
  */
4937
- updatedAt: string;
5301
+ byCurrency: Array<CurrencyBalanceDto>;
4938
5302
  };
4939
5303
 
4940
- export type PriceListResponseDto = {
5304
+ export type PortfolioTrendsResponseDto = {
4941
5305
  /**
4942
- * List of prices
5306
+ * Time series data points
4943
5307
  */
4944
- items: Array<PriceResponseDto>;
5308
+ series: Array<TimeSeriesPointDto>;
4945
5309
  /**
4946
- * Total number of prices
5310
+ * Period summary
4947
5311
  */
4948
- total: number;
4949
- };
4950
-
4951
- export type UpdateBeanPriceDto = {
5312
+ summary: TrendSummaryDto;
4952
5313
  /**
4953
- * Currency being priced
5314
+ * Period requested
4954
5315
  */
4955
- currency?: string;
5316
+ period: string;
4956
5317
  /**
4957
- * Quote currency (pricing currency)
5318
+ * Data granularity
4958
5319
  */
4959
- quoteCurrency?: string;
5320
+ granularity: string;
4960
5321
  /**
4961
- * Price amount (MUST be >= 0 per Beancount spec)
5322
+ * Base currency for converted values
4962
5323
  */
4963
- amount?: number;
5324
+ currency: string;
4964
5325
  /**
4965
- * Price date (ISO 8601 format)
5326
+ * Multi-currency time series (each point has currency breakdown)
4966
5327
  */
4967
- date?: string;
5328
+ byCurrency?: Array<MultiCurrencyPointDto>;
4968
5329
  /**
4969
- * Metadata
4970
- */
4971
- metadata?: {
4972
- [key: string]: unknown;
4973
- };
4974
- };
4975
-
4976
- export type CurrencyBalanceDto = {
4977
- /**
4978
- * ISO 4217 currency code
4979
- */
4980
- currency: string;
4981
- /**
4982
- * Balance amount
4983
- */
4984
- balance: string;
4985
- };
4986
-
4987
- export type TimeSeriesPointDto = {
4988
- /**
4989
- * Date in YYYY-MM-DD format
4990
- */
4991
- date: string;
4992
- /**
4993
- * Value at this date (in base currency)
4994
- */
4995
- value: string;
4996
- /**
4997
- * Change from previous point
4998
- */
4999
- change?: {
5000
- [key: string]: unknown;
5001
- };
5002
- /**
5003
- * Total assets at this date (in base currency)
5004
- */
5005
- assets?: string;
5006
- /**
5007
- * Total liabilities at this date (in base currency)
5008
- */
5009
- liabilities?: string;
5010
- /**
5011
- * Multi-currency breakdown for this point
5012
- */
5013
- byCurrency?: Array<CurrencyBalanceDto>;
5014
- };
5015
-
5016
- export type TrendSummaryDto = {
5017
- /**
5018
- * Value at start of period
5019
- */
5020
- startValue: string;
5021
- /**
5022
- * Value at end of period
5023
- */
5024
- endValue: string;
5025
- /**
5026
- * Total change over period
5027
- */
5028
- totalChange: string;
5029
- /**
5030
- * Total change percentage
5031
- */
5032
- totalChangePercentage: string;
5033
- };
5034
-
5035
- export type MultiCurrencyPointDto = {
5036
- /**
5037
- * Date in YYYY-MM-DD format
5038
- */
5039
- date: string;
5040
- /**
5041
- * Balances by currency
5042
- */
5043
- byCurrency: Array<CurrencyBalanceDto>;
5044
- };
5045
-
5046
- export type PortfolioTrendsResponseDto = {
5047
- /**
5048
- * Time series data points
5049
- */
5050
- series: Array<TimeSeriesPointDto>;
5051
- /**
5052
- * Period summary
5053
- */
5054
- summary: TrendSummaryDto;
5055
- /**
5056
- * Period requested
5057
- */
5058
- period: string;
5059
- /**
5060
- * Data granularity
5061
- */
5062
- granularity: string;
5063
- /**
5064
- * Base currency for converted values
5065
- */
5066
- currency: string;
5067
- /**
5068
- * Multi-currency time series (each point has currency breakdown)
5069
- */
5070
- byCurrency?: Array<MultiCurrencyPointDto>;
5071
- /**
5072
- * Exchange rate warnings
5330
+ * Exchange rate warnings
5073
5331
  */
5074
5332
  warnings?: Array<ExchangeRateWarningDto>;
5075
5333
  };
@@ -5182,7 +5440,7 @@ export type AccountControllerFindAllData = {
5182
5440
  */
5183
5441
  region: 'cn' | 'us' | 'de' | 'gb';
5184
5442
  /**
5185
- * Search term for path or i18nKey
5443
+ * Search term for account path
5186
5444
  */
5187
5445
  search?: string;
5188
5446
  /**
@@ -5265,6 +5523,21 @@ export type AccountControllerReopenData = {
5265
5523
 
5266
5524
  export type AccountControllerReopenResponse = AccountResponseDto;
5267
5525
 
5526
+ export type AccountControllerAddOpeningBalanceData = {
5527
+ /**
5528
+ * Account UUID
5529
+ */
5530
+ id: string;
5531
+ /**
5532
+ * Region code for tenant context
5533
+ */
5534
+ region: 'cn' | 'us' | 'de' | 'gb';
5535
+ requestBody: CreateOpeningBalanceDto;
5536
+ };
5537
+
5538
+ export type AccountControllerAddOpeningBalanceResponse =
5539
+ OpeningBalanceResultDto;
5540
+
5268
5541
  export type AccountStandardsControllerGetTemplatesData = {
5269
5542
  /**
5270
5543
  * Region code (cn, us, de)
@@ -5453,7 +5726,7 @@ export type TransactionControllerDeleteResponse = void;
5453
5726
 
5454
5727
  export type BalanceControllerGetBalanceData = {
5455
5728
  /**
5456
- * Account name (e.g., "Assets:Bank:Checking")
5729
+ * Account name (e.g., "Assets:Checking")
5457
5730
  */
5458
5731
  account: string;
5459
5732
  /**
@@ -5855,6 +6128,103 @@ export type CommodityControllerBulkCreateData = {
5855
6128
 
5856
6129
  export type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
5857
6130
 
6131
+ export type PriceControllerCreateData = {
6132
+ /**
6133
+ * Region code for tenant context
6134
+ */
6135
+ region: 'cn' | 'us' | 'de' | 'gb';
6136
+ requestBody: CreateBeanPriceDto;
6137
+ };
6138
+
6139
+ export type PriceControllerCreateResponse = PriceResponseDto;
6140
+
6141
+ export type PriceControllerFindAllData = {
6142
+ /**
6143
+ * Filter by currency (e.g., BTC, AAPL, USD)
6144
+ */
6145
+ currency?: string;
6146
+ /**
6147
+ * Filter prices from this date (ISO 8601 format)
6148
+ */
6149
+ dateFrom?: string;
6150
+ /**
6151
+ * Filter prices to this date (ISO 8601 format)
6152
+ */
6153
+ dateTo?: string;
6154
+ /**
6155
+ * Number of items per page (default: 20, max: 100)
6156
+ */
6157
+ limit?: number;
6158
+ /**
6159
+ * Page number for pagination (default: 1)
6160
+ */
6161
+ page?: number;
6162
+ /**
6163
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
6164
+ */
6165
+ quoteCurrency?: string;
6166
+ /**
6167
+ * Region code for tenant context
6168
+ */
6169
+ region: 'cn' | 'us' | 'de' | 'gb';
6170
+ /**
6171
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
6172
+ */
6173
+ search?: string;
6174
+ };
6175
+
6176
+ export type PriceControllerFindAllResponse = PriceListResponseDto;
6177
+
6178
+ export type PriceControllerFindOneData = {
6179
+ /**
6180
+ * Price ID
6181
+ */
6182
+ id: string;
6183
+ /**
6184
+ * Region code for tenant context
6185
+ */
6186
+ region: 'cn' | 'us' | 'de' | 'gb';
6187
+ };
6188
+
6189
+ export type PriceControllerFindOneResponse = PriceResponseDto;
6190
+
6191
+ export type PriceControllerUpdateData = {
6192
+ /**
6193
+ * Price ID
6194
+ */
6195
+ id: string;
6196
+ /**
6197
+ * Region code for tenant context
6198
+ */
6199
+ region: 'cn' | 'us' | 'de' | 'gb';
6200
+ requestBody: UpdateBeanPriceDto;
6201
+ };
6202
+
6203
+ export type PriceControllerUpdateResponse = PriceResponseDto;
6204
+
6205
+ export type PriceControllerDeleteData = {
6206
+ /**
6207
+ * Price ID
6208
+ */
6209
+ id: string;
6210
+ /**
6211
+ * Region code for tenant context
6212
+ */
6213
+ region: 'cn' | 'us' | 'de' | 'gb';
6214
+ };
6215
+
6216
+ export type PriceControllerDeleteResponse = void;
6217
+
6218
+ export type PriceControllerBulkCreateData = {
6219
+ /**
6220
+ * Region code for tenant context
6221
+ */
6222
+ region: 'cn' | 'us' | 'de' | 'gb';
6223
+ requestBody: Array<string>;
6224
+ };
6225
+
6226
+ export type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
6227
+
5858
6228
  export type RecurringRuleControllerCreateData = {
5859
6229
  /**
5860
6230
  * Region code for tenant context
@@ -6418,6 +6788,61 @@ export type EventControllerGetSliceData = {
6418
6788
 
6419
6789
  export type EventControllerGetSliceResponse = unknown;
6420
6790
 
6791
+ export type OnboardingControllerBootstrapData = {
6792
+ /**
6793
+ * Region code for tenant context
6794
+ */
6795
+ region: 'cn' | 'us' | 'de' | 'gb';
6796
+ requestBody: OnboardingDto;
6797
+ };
6798
+
6799
+ export type OnboardingControllerBootstrapResponse = unknown;
6800
+
6801
+ export type ReconciliationControllerComputeData = {
6802
+ /**
6803
+ * Region code for tenant context (decorative for reconciliation)
6804
+ */
6805
+ region: 'cn' | 'us' | 'de' | 'gb';
6806
+ requestBody: ComputeReconciliationDto;
6807
+ };
6808
+
6809
+ export type ReconciliationControllerComputeResponse =
6810
+ ReconciliationComputeResultDto;
6811
+
6812
+ export type ReconciliationControllerAssertData = {
6813
+ /**
6814
+ * Region code for tenant context (decorative for reconciliation)
6815
+ */
6816
+ region: 'cn' | 'us' | 'de' | 'gb';
6817
+ requestBody: AssertReconciliationDto;
6818
+ };
6819
+
6820
+ export type ReconciliationControllerAssertResponse = ReconciliationRecordDto;
6821
+
6822
+ export type ReconciliationControllerPadData = {
6823
+ /**
6824
+ * Region code for tenant context (decorative for reconciliation)
6825
+ */
6826
+ region: 'cn' | 'us' | 'de' | 'gb';
6827
+ requestBody: PadReconciliationDto;
6828
+ };
6829
+
6830
+ export type ReconciliationControllerPadResponse = PadResultDto;
6831
+
6832
+ export type ReconciliationControllerHistoryData = {
6833
+ /**
6834
+ * BeanAccount id
6835
+ */
6836
+ accountId: string;
6837
+ /**
6838
+ * Region code for tenant context (decorative for reconciliation)
6839
+ */
6840
+ region: 'cn' | 'us' | 'de' | 'gb';
6841
+ };
6842
+
6843
+ export type ReconciliationControllerHistoryResponse =
6844
+ Array<ReconciliationRecordDto>;
6845
+
6421
6846
  export type ExportControllerExportBeancountResponse = unknown;
6422
6847
 
6423
6848
  export type FileImportControllerImportFileData = {
@@ -6510,48 +6935,6 @@ export type ImporterConfigControllerResetConfigData = {
6510
6935
 
6511
6936
  export type ImporterConfigControllerResetConfigResponse = ImporterConfigDto;
6512
6937
 
6513
- export type PlatformControllerFindAllResponse = unknown;
6514
-
6515
- export type PlatformControllerCreateData = {
6516
- requestBody: CreatePlatformDto;
6517
- };
6518
-
6519
- export type PlatformControllerCreateResponse = unknown;
6520
-
6521
- export type PlatformControllerGetPlatformListResponse = unknown;
6522
-
6523
- export type PlatformControllerMatchPlatformsData = {
6524
- /**
6525
- * Search query — Chinese name, English name, or abbreviation
6526
- */
6527
- q: string;
6528
- /**
6529
- * Region code for category override lookup
6530
- */
6531
- region?: string;
6532
- };
6533
-
6534
- export type PlatformControllerMatchPlatformsResponse = unknown;
6535
-
6536
- export type PlatformControllerUpdateData = {
6537
- /**
6538
- * Platform ID
6539
- */
6540
- id: string;
6541
- requestBody: UpdatePlatformDto;
6542
- };
6543
-
6544
- export type PlatformControllerUpdateResponse = unknown;
6545
-
6546
- export type PlatformControllerDeleteData = {
6547
- /**
6548
- * Platform ID
6549
- */
6550
- id: string;
6551
- };
6552
-
6553
- export type PlatformControllerDeleteResponse = void;
6554
-
6555
6938
  export type ProviderSyncControllerSyncData = {
6556
6939
  /**
6557
6940
  * Provider name
@@ -6597,6 +6980,49 @@ export type ProviderSyncControllerIsProviderSupportedData = {
6597
6980
 
6598
6981
  export type ProviderSyncControllerIsProviderSupportedResponse = unknown;
6599
6982
 
6983
+ export type ExternalAccountLinkControllerCreateData = {
6984
+ /**
6985
+ * Region code for tenant context
6986
+ */
6987
+ region: 'cn' | 'us' | 'de' | 'gb';
6988
+ requestBody: CreateExternalAccountLinkDto;
6989
+ };
6990
+
6991
+ export type ExternalAccountLinkControllerCreateResponse =
6992
+ ExternalAccountLinkResponseDto;
6993
+
6994
+ export type ExternalAccountLinkControllerFindAllData = {
6995
+ provider: string;
6996
+ /**
6997
+ * Region code for tenant context
6998
+ */
6999
+ region: 'cn' | 'us' | 'de' | 'gb';
7000
+ };
7001
+
7002
+ export type ExternalAccountLinkControllerFindAllResponse =
7003
+ ExternalAccountLinkListResponseDto;
7004
+
7005
+ export type ExternalAccountLinkControllerFindOneData = {
7006
+ id: string;
7007
+ /**
7008
+ * Region code for tenant context
7009
+ */
7010
+ region: 'cn' | 'us' | 'de' | 'gb';
7011
+ };
7012
+
7013
+ export type ExternalAccountLinkControllerFindOneResponse =
7014
+ ExternalAccountLinkResponseDto;
7015
+
7016
+ export type ExternalAccountLinkControllerRemoveData = {
7017
+ id: string;
7018
+ /**
7019
+ * Region code for tenant context
7020
+ */
7021
+ region: 'cn' | 'us' | 'de' | 'gb';
7022
+ };
7023
+
7024
+ export type ExternalAccountLinkControllerRemoveResponse = void;
7025
+
6600
7026
  export type TelemetryControllerReportTelemetryData = {
6601
7027
  /**
6602
7028
  * Region code for tenant context
@@ -6669,6 +7095,48 @@ export type NlpControllerGetSessionData = {
6669
7095
 
6670
7096
  export type NlpControllerGetSessionResponse = unknown;
6671
7097
 
7098
+ export type PlatformControllerFindAllResponse = unknown;
7099
+
7100
+ export type PlatformControllerCreateData = {
7101
+ requestBody: CreatePlatformDto;
7102
+ };
7103
+
7104
+ export type PlatformControllerCreateResponse = unknown;
7105
+
7106
+ export type PlatformControllerGetPlatformListResponse = unknown;
7107
+
7108
+ export type PlatformControllerMatchPlatformsData = {
7109
+ /**
7110
+ * Search query — Chinese name, English name, or abbreviation
7111
+ */
7112
+ q: string;
7113
+ /**
7114
+ * Region code for category override lookup
7115
+ */
7116
+ region?: string;
7117
+ };
7118
+
7119
+ export type PlatformControllerMatchPlatformsResponse = unknown;
7120
+
7121
+ export type PlatformControllerUpdateData = {
7122
+ /**
7123
+ * Platform ID
7124
+ */
7125
+ id: string;
7126
+ requestBody: UpdatePlatformDto;
7127
+ };
7128
+
7129
+ export type PlatformControllerUpdateResponse = unknown;
7130
+
7131
+ export type PlatformControllerDeleteData = {
7132
+ /**
7133
+ * Platform ID
7134
+ */
7135
+ id: string;
7136
+ };
7137
+
7138
+ export type PlatformControllerDeleteResponse = void;
7139
+
6672
7140
  export type DashboardControllerGetNetWorthData = {
6673
7141
  /**
6674
7142
  * Date for balance calculation (ISO 8601 format)
@@ -6724,6 +7192,10 @@ export type DashboardControllerGetCashFlowData = {
6724
7192
  export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
6725
7193
 
6726
7194
  export type DashboardControllerGetExpensesData = {
7195
+ /**
7196
+ * Account root to aggregate (expense → ^Expenses:, income → ^Income:)
7197
+ */
7198
+ flow?: 'expense' | 'income';
6727
7199
  /**
6728
7200
  * Grouping strategy
6729
7201
  */
@@ -6762,103 +7234,6 @@ export type HoldingPnlControllerGetHoldingPnlData = {
6762
7234
 
6763
7235
  export type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
6764
7236
 
6765
- export type PriceControllerCreateData = {
6766
- /**
6767
- * Region code for tenant context
6768
- */
6769
- region: 'cn' | 'us' | 'de' | 'gb';
6770
- requestBody: CreateBeanPriceDto;
6771
- };
6772
-
6773
- export type PriceControllerCreateResponse = PriceResponseDto;
6774
-
6775
- export type PriceControllerFindAllData = {
6776
- /**
6777
- * Filter by currency (e.g., BTC, AAPL, USD)
6778
- */
6779
- currency?: string;
6780
- /**
6781
- * Filter prices from this date (ISO 8601 format)
6782
- */
6783
- dateFrom?: string;
6784
- /**
6785
- * Filter prices to this date (ISO 8601 format)
6786
- */
6787
- dateTo?: string;
6788
- /**
6789
- * Number of items per page (default: 20, max: 100)
6790
- */
6791
- limit?: number;
6792
- /**
6793
- * Page number for pagination (default: 1)
6794
- */
6795
- page?: number;
6796
- /**
6797
- * Filter by quote currency (pricing currency, e.g., USD, CNY)
6798
- */
6799
- quoteCurrency?: string;
6800
- /**
6801
- * Region code for tenant context
6802
- */
6803
- region: 'cn' | 'us' | 'de' | 'gb';
6804
- /**
6805
- * Search term for currency or quoteCurrency (case-insensitive partial match)
6806
- */
6807
- search?: string;
6808
- };
6809
-
6810
- export type PriceControllerFindAllResponse = PriceListResponseDto;
6811
-
6812
- export type PriceControllerFindOneData = {
6813
- /**
6814
- * Price ID
6815
- */
6816
- id: string;
6817
- /**
6818
- * Region code for tenant context
6819
- */
6820
- region: 'cn' | 'us' | 'de' | 'gb';
6821
- };
6822
-
6823
- export type PriceControllerFindOneResponse = PriceResponseDto;
6824
-
6825
- export type PriceControllerUpdateData = {
6826
- /**
6827
- * Price ID
6828
- */
6829
- id: string;
6830
- /**
6831
- * Region code for tenant context
6832
- */
6833
- region: 'cn' | 'us' | 'de' | 'gb';
6834
- requestBody: UpdateBeanPriceDto;
6835
- };
6836
-
6837
- export type PriceControllerUpdateResponse = PriceResponseDto;
6838
-
6839
- export type PriceControllerDeleteData = {
6840
- /**
6841
- * Price ID
6842
- */
6843
- id: string;
6844
- /**
6845
- * Region code for tenant context
6846
- */
6847
- region: 'cn' | 'us' | 'de' | 'gb';
6848
- };
6849
-
6850
- export type PriceControllerDeleteResponse = void;
6851
-
6852
- export type PriceControllerBulkCreateData = {
6853
- /**
6854
- * Region code for tenant context
6855
- */
6856
- region: 'cn' | 'us' | 'de' | 'gb';
6857
- requestBody: Array<string>;
6858
- };
6859
-
6860
- export type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
6861
-
6862
7237
  export type ReportingControllerGetPortfolioTrendsData = {
6863
7238
  /**
6864
7239
  * Data granularity
@@ -7074,6 +7449,25 @@ export type $OpenApiTs = {
7074
7449
  };
7075
7450
  };
7076
7451
  };
7452
+ '/api/v1/{region}/bean/accounts/{id}/opening-balance': {
7453
+ post: {
7454
+ req: AccountControllerAddOpeningBalanceData;
7455
+ res: {
7456
+ /**
7457
+ * Opening-balance transaction created
7458
+ */
7459
+ 201: OpeningBalanceResultDto;
7460
+ /**
7461
+ * Account not found
7462
+ */
7463
+ 404: unknown;
7464
+ /**
7465
+ * An opening balance already exists for this account
7466
+ */
7467
+ 409: unknown;
7468
+ };
7469
+ };
7470
+ };
7077
7471
  '/api/v1/{region}/bean/account-standards': {
7078
7472
  get: {
7079
7473
  req: AccountStandardsControllerGetTemplatesData;
@@ -7682,54 +8076,138 @@ export type $OpenApiTs = {
7682
8076
  };
7683
8077
  };
7684
8078
  };
7685
- '/api/v1/{region}/bean/recurring-rules': {
8079
+ '/api/v1/{region}/bean/prices': {
7686
8080
  post: {
7687
- req: RecurringRuleControllerCreateData;
8081
+ req: PriceControllerCreateData;
7688
8082
  res: {
7689
8083
  /**
7690
- * Rule created successfully
8084
+ * Price created successfully
7691
8085
  */
7692
- 201: RecurringRuleResponseDto;
8086
+ 201: PriceResponseDto;
7693
8087
  /**
7694
- * Invalid input data (e.g., autoCreate without accounts)
8088
+ * Currency or quoteCurrency commodity not found
7695
8089
  */
7696
- 400: unknown;
8090
+ 404: unknown;
7697
8091
  /**
7698
- * Rule with same name already exists
8092
+ * Price already exists for this currency pair and date
7699
8093
  */
7700
8094
  409: unknown;
7701
8095
  };
7702
8096
  };
7703
8097
  get: {
7704
- req: RecurringRuleControllerFindAllData;
8098
+ req: PriceControllerFindAllData;
7705
8099
  res: {
7706
8100
  /**
7707
- * Rules retrieved successfully
8101
+ * Prices retrieved successfully
7708
8102
  */
7709
- 200: Array<RecurringRuleResponseDto>;
8103
+ 200: PriceListResponseDto;
7710
8104
  };
7711
8105
  };
7712
8106
  };
7713
- '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}': {
7714
- post: {
7715
- req: RecurringRuleControllerCreateFromTransactionData;
8107
+ '/api/v1/{region}/bean/prices/{id}': {
8108
+ get: {
8109
+ req: PriceControllerFindOneData;
7716
8110
  res: {
7717
8111
  /**
7718
- * Rule created successfully
7719
- */
7720
- 201: RecurringRuleResponseDto;
7721
- /**
7722
- * Transaction not found
8112
+ * Price retrieved successfully
7723
8113
  */
7724
- 404: ApiProblemResponseDto;
8114
+ 200: PriceResponseDto;
7725
8115
  /**
7726
- * Rule with same name already exists or transaction already linked
8116
+ * Price not found
7727
8117
  */
7728
- 409: ApiProblemResponseDto;
8118
+ 404: unknown;
7729
8119
  };
7730
8120
  };
7731
- };
7732
- '/api/v1/{region}/bean/recurring-rules/{id}': {
8121
+ put: {
8122
+ req: PriceControllerUpdateData;
8123
+ res: {
8124
+ /**
8125
+ * Price updated successfully
8126
+ */
8127
+ 200: PriceResponseDto;
8128
+ /**
8129
+ * Price not found
8130
+ */
8131
+ 404: unknown;
8132
+ /**
8133
+ * Updated price conflicts with existing price
8134
+ */
8135
+ 409: unknown;
8136
+ };
8137
+ };
8138
+ delete: {
8139
+ req: PriceControllerDeleteData;
8140
+ res: {
8141
+ /**
8142
+ * Price deleted successfully
8143
+ */
8144
+ 204: void;
8145
+ /**
8146
+ * Price not found
8147
+ */
8148
+ 404: unknown;
8149
+ };
8150
+ };
8151
+ };
8152
+ '/api/v1/{region}/bean/prices/bulk': {
8153
+ post: {
8154
+ req: PriceControllerBulkCreateData;
8155
+ res: {
8156
+ /**
8157
+ * Prices created successfully
8158
+ */
8159
+ 201: Array<PriceResponseDto>;
8160
+ };
8161
+ };
8162
+ };
8163
+ '/api/v1/{region}/bean/recurring-rules': {
8164
+ post: {
8165
+ req: RecurringRuleControllerCreateData;
8166
+ res: {
8167
+ /**
8168
+ * Rule created successfully
8169
+ */
8170
+ 201: RecurringRuleResponseDto;
8171
+ /**
8172
+ * Invalid input data (e.g., autoCreate without accounts)
8173
+ */
8174
+ 400: unknown;
8175
+ /**
8176
+ * Rule with same name already exists
8177
+ */
8178
+ 409: unknown;
8179
+ };
8180
+ };
8181
+ get: {
8182
+ req: RecurringRuleControllerFindAllData;
8183
+ res: {
8184
+ /**
8185
+ * Rules retrieved successfully
8186
+ */
8187
+ 200: Array<RecurringRuleResponseDto>;
8188
+ };
8189
+ };
8190
+ };
8191
+ '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}': {
8192
+ post: {
8193
+ req: RecurringRuleControllerCreateFromTransactionData;
8194
+ res: {
8195
+ /**
8196
+ * Rule created successfully
8197
+ */
8198
+ 201: RecurringRuleResponseDto;
8199
+ /**
8200
+ * Transaction not found
8201
+ */
8202
+ 404: ApiProblemResponseDto;
8203
+ /**
8204
+ * Rule with same name already exists or transaction already linked
8205
+ */
8206
+ 409: ApiProblemResponseDto;
8207
+ };
8208
+ };
8209
+ };
8210
+ '/api/v1/{region}/bean/recurring-rules/{id}': {
7733
8211
  get: {
7734
8212
  req: RecurringRuleControllerFindOneData;
7735
8213
  res: {
@@ -8422,6 +8900,85 @@ export type $OpenApiTs = {
8422
8900
  };
8423
8901
  };
8424
8902
  };
8903
+ '/api/v1/{region}/bean/onboarding': {
8904
+ post: {
8905
+ req: OnboardingControllerBootstrapData;
8906
+ res: {
8907
+ /**
8908
+ * Onboarding bootstrap result.
8909
+ */
8910
+ 201: unknown;
8911
+ /**
8912
+ * Invalid region/account path/duplicate paths.
8913
+ */
8914
+ 422: unknown;
8915
+ };
8916
+ };
8917
+ };
8918
+ '/api/v1/{region}/bean/reconciliations': {
8919
+ post: {
8920
+ req: ReconciliationControllerComputeData;
8921
+ res: {
8922
+ /**
8923
+ * Reconciliation preview
8924
+ */
8925
+ 200: ReconciliationComputeResultDto;
8926
+ /**
8927
+ * Account not found
8928
+ */
8929
+ 404: unknown;
8930
+ };
8931
+ };
8932
+ };
8933
+ '/api/v1/{region}/bean/reconciliations/assert': {
8934
+ post: {
8935
+ req: ReconciliationControllerAssertData;
8936
+ res: {
8937
+ /**
8938
+ * Balance assertion recorded
8939
+ */
8940
+ 201: ReconciliationRecordDto;
8941
+ /**
8942
+ * Account not found
8943
+ */
8944
+ 404: unknown;
8945
+ };
8946
+ };
8947
+ };
8948
+ '/api/v1/{region}/bean/reconciliations/pad': {
8949
+ post: {
8950
+ req: ReconciliationControllerPadData;
8951
+ res: {
8952
+ /**
8953
+ * Pad adjusting entry generated
8954
+ */
8955
+ 201: PadResultDto;
8956
+ /**
8957
+ * Book already within tolerance — no pad needed
8958
+ */
8959
+ 400: unknown;
8960
+ /**
8961
+ * Account not found
8962
+ */
8963
+ 404: unknown;
8964
+ };
8965
+ };
8966
+ };
8967
+ '/api/v1/{region}/bean/accounts/{accountId}/reconciliations': {
8968
+ get: {
8969
+ req: ReconciliationControllerHistoryData;
8970
+ res: {
8971
+ /**
8972
+ * Reconciliation history
8973
+ */
8974
+ 200: Array<ReconciliationRecordDto>;
8975
+ /**
8976
+ * Account not found
8977
+ */
8978
+ 404: unknown;
8979
+ };
8980
+ };
8981
+ };
8425
8982
  '/api/v1/{region}/bean/export/beancount': {
8426
8983
  get: {
8427
8984
  res: {
@@ -8572,128 +9129,104 @@ export type $OpenApiTs = {
8572
9129
  };
8573
9130
  };
8574
9131
  };
8575
- '/api/v1/bean/platforms': {
8576
- get: {
9132
+ '/api/v1/{region}/bean/import/provider/{providerName}/sync': {
9133
+ post: {
9134
+ req: ProviderSyncControllerSyncData;
8577
9135
  res: {
8578
9136
  /**
8579
- * List of platforms with binding and account counts
9137
+ * Sync completed successfully
8580
9138
  */
8581
- 200: unknown;
8582
- };
8583
- };
8584
- post: {
8585
- req: PlatformControllerCreateData;
8586
- res: {
9139
+ 200: ProviderSyncResponseDto;
8587
9140
  /**
8588
- * Platform created successfully
9141
+ * Invalid request data
8589
9142
  */
8590
- 201: unknown;
9143
+ 400: unknown;
8591
9144
  /**
8592
- * Platform already exists
9145
+ * Missing or invalid authentication
8593
9146
  */
8594
- 409: unknown;
8595
- };
8596
- };
8597
- };
8598
- '/api/v1/bean/platforms/list': {
8599
- get: {
8600
- res: {
9147
+ 401: unknown;
8601
9148
  /**
8602
- * List of platforms with user binding status
9149
+ * Provider not supported
8603
9150
  */
8604
- 200: unknown;
9151
+ 404: unknown;
8605
9152
  };
8606
9153
  };
8607
9154
  };
8608
- '/api/v1/bean/platforms/match': {
9155
+ '/api/v1/{region}/bean/import/provider/supported': {
8609
9156
  get: {
8610
- req: PlatformControllerMatchPlatformsData;
9157
+ req: ProviderSyncControllerGetSupportedProvidersData;
8611
9158
  res: {
8612
9159
  /**
8613
- * List of matching platforms with suggested segment names
9160
+ * List of supported providers
8614
9161
  */
8615
- 200: unknown;
9162
+ 200: SupportedProvidersResponseDto;
9163
+ /**
9164
+ * Missing or invalid authentication
9165
+ */
9166
+ 401: unknown;
8616
9167
  };
8617
9168
  };
8618
9169
  };
8619
- '/api/v1/bean/platforms/{id}': {
8620
- put: {
8621
- req: PlatformControllerUpdateData;
9170
+ '/api/v1/{region}/bean/import/provider/{providerName}/supported': {
9171
+ get: {
9172
+ req: ProviderSyncControllerIsProviderSupportedData;
8622
9173
  res: {
8623
9174
  /**
8624
- * Platform updated successfully
9175
+ * Provider support status
8625
9176
  */
8626
9177
  200: unknown;
8627
9178
  /**
8628
- * Platform not found
9179
+ * Missing or invalid authentication
8629
9180
  */
8630
- 404: unknown;
9181
+ 401: unknown;
8631
9182
  };
8632
9183
  };
8633
- delete: {
8634
- req: PlatformControllerDeleteData;
9184
+ };
9185
+ '/api/v1/{region}/bean/external-account-links': {
9186
+ post: {
9187
+ req: ExternalAccountLinkControllerCreateData;
8635
9188
  res: {
8636
9189
  /**
8637
- * Platform deleted successfully
9190
+ * Link created.
8638
9191
  */
8639
- 204: void;
9192
+ 201: ExternalAccountLinkResponseDto;
8640
9193
  /**
8641
- * Platform not found
9194
+ * beanAccountId not owned, or an active link already exists.
8642
9195
  */
8643
- 404: unknown;
9196
+ 422: unknown;
8644
9197
  };
8645
9198
  };
8646
- };
8647
- '/api/v1/{region}/bean/import/provider/{providerName}/sync': {
8648
- post: {
8649
- req: ProviderSyncControllerSyncData;
9199
+ get: {
9200
+ req: ExternalAccountLinkControllerFindAllData;
8650
9201
  res: {
8651
9202
  /**
8652
- * Sync completed successfully
9203
+ * Links retrieved.
8653
9204
  */
8654
- 200: ProviderSyncResponseDto;
8655
- /**
8656
- * Invalid request data
8657
- */
8658
- 400: unknown;
8659
- /**
8660
- * Missing or invalid authentication
8661
- */
8662
- 401: unknown;
8663
- /**
8664
- * Provider not supported
8665
- */
8666
- 404: unknown;
9205
+ 200: ExternalAccountLinkListResponseDto;
8667
9206
  };
8668
9207
  };
8669
9208
  };
8670
- '/api/v1/{region}/bean/import/provider/supported': {
9209
+ '/api/v1/{region}/bean/external-account-links/{id}': {
8671
9210
  get: {
8672
- req: ProviderSyncControllerGetSupportedProvidersData;
9211
+ req: ExternalAccountLinkControllerFindOneData;
8673
9212
  res: {
8674
9213
  /**
8675
- * List of supported providers
9214
+ * Link retrieved.
8676
9215
  */
8677
- 200: SupportedProvidersResponseDto;
9216
+ 200: ExternalAccountLinkResponseDto;
8678
9217
  /**
8679
- * Missing or invalid authentication
9218
+ * Link not found or not owned by the user.
8680
9219
  */
8681
- 401: unknown;
9220
+ 422: unknown;
8682
9221
  };
8683
9222
  };
8684
- };
8685
- '/api/v1/{region}/bean/import/provider/{providerName}/supported': {
8686
- get: {
8687
- req: ProviderSyncControllerIsProviderSupportedData;
9223
+ delete: {
9224
+ req: ExternalAccountLinkControllerRemoveData;
8688
9225
  res: {
8689
9226
  /**
8690
- * Provider support status
8691
- */
8692
- 200: unknown;
8693
- /**
8694
- * Missing or invalid authentication
9227
+ * Link soft-deleted; historical transactions are unaffected.
8695
9228
  */
8696
- 401: unknown;
9229
+ 204: void;
8697
9230
  };
8698
9231
  };
8699
9232
  };
@@ -8785,6 +9318,78 @@ export type $OpenApiTs = {
8785
9318
  };
8786
9319
  };
8787
9320
  };
9321
+ '/api/v1/bean/platforms': {
9322
+ get: {
9323
+ res: {
9324
+ /**
9325
+ * List of platforms with binding and account counts
9326
+ */
9327
+ 200: unknown;
9328
+ };
9329
+ };
9330
+ post: {
9331
+ req: PlatformControllerCreateData;
9332
+ res: {
9333
+ /**
9334
+ * Platform created successfully
9335
+ */
9336
+ 201: unknown;
9337
+ /**
9338
+ * Platform already exists
9339
+ */
9340
+ 409: unknown;
9341
+ };
9342
+ };
9343
+ };
9344
+ '/api/v1/bean/platforms/list': {
9345
+ get: {
9346
+ res: {
9347
+ /**
9348
+ * List of platforms with user binding status
9349
+ */
9350
+ 200: unknown;
9351
+ };
9352
+ };
9353
+ };
9354
+ '/api/v1/bean/platforms/match': {
9355
+ get: {
9356
+ req: PlatformControllerMatchPlatformsData;
9357
+ res: {
9358
+ /**
9359
+ * List of matching platforms with suggested segment names
9360
+ */
9361
+ 200: unknown;
9362
+ };
9363
+ };
9364
+ };
9365
+ '/api/v1/bean/platforms/{id}': {
9366
+ put: {
9367
+ req: PlatformControllerUpdateData;
9368
+ res: {
9369
+ /**
9370
+ * Platform updated successfully
9371
+ */
9372
+ 200: unknown;
9373
+ /**
9374
+ * Platform not found
9375
+ */
9376
+ 404: unknown;
9377
+ };
9378
+ };
9379
+ delete: {
9380
+ req: PlatformControllerDeleteData;
9381
+ res: {
9382
+ /**
9383
+ * Platform deleted successfully
9384
+ */
9385
+ 204: void;
9386
+ /**
9387
+ * Platform not found
9388
+ */
9389
+ 404: unknown;
9390
+ };
9391
+ };
9392
+ };
8788
9393
  '/api/v1/{region}/dashboard/net-worth': {
8789
9394
  get: {
8790
9395
  req: DashboardControllerGetNetWorthData;
@@ -8875,90 +9480,6 @@ export type $OpenApiTs = {
8875
9480
  };
8876
9481
  };
8877
9482
  };
8878
- '/api/v1/{region}/bean/prices': {
8879
- post: {
8880
- req: PriceControllerCreateData;
8881
- res: {
8882
- /**
8883
- * Price created successfully
8884
- */
8885
- 201: PriceResponseDto;
8886
- /**
8887
- * Currency or quoteCurrency commodity not found
8888
- */
8889
- 404: unknown;
8890
- /**
8891
- * Price already exists for this currency pair and date
8892
- */
8893
- 409: unknown;
8894
- };
8895
- };
8896
- get: {
8897
- req: PriceControllerFindAllData;
8898
- res: {
8899
- /**
8900
- * Prices retrieved successfully
8901
- */
8902
- 200: PriceListResponseDto;
8903
- };
8904
- };
8905
- };
8906
- '/api/v1/{region}/bean/prices/{id}': {
8907
- get: {
8908
- req: PriceControllerFindOneData;
8909
- res: {
8910
- /**
8911
- * Price retrieved successfully
8912
- */
8913
- 200: PriceResponseDto;
8914
- /**
8915
- * Price not found
8916
- */
8917
- 404: unknown;
8918
- };
8919
- };
8920
- put: {
8921
- req: PriceControllerUpdateData;
8922
- res: {
8923
- /**
8924
- * Price updated successfully
8925
- */
8926
- 200: PriceResponseDto;
8927
- /**
8928
- * Price not found
8929
- */
8930
- 404: unknown;
8931
- /**
8932
- * Updated price conflicts with existing price
8933
- */
8934
- 409: unknown;
8935
- };
8936
- };
8937
- delete: {
8938
- req: PriceControllerDeleteData;
8939
- res: {
8940
- /**
8941
- * Price deleted successfully
8942
- */
8943
- 204: void;
8944
- /**
8945
- * Price not found
8946
- */
8947
- 404: unknown;
8948
- };
8949
- };
8950
- };
8951
- '/api/v1/{region}/bean/prices/bulk': {
8952
- post: {
8953
- req: PriceControllerBulkCreateData;
8954
- res: {
8955
- /**
8956
- * Prices created successfully
8957
- */
8958
- 201: Array<PriceResponseDto>;
8959
- };
8960
- };
8961
- };
8962
9483
  '/api/v1/{region}/reporting/portfolio/trends': {
8963
9484
  get: {
8964
9485
  req: ReportingControllerGetPortfolioTrendsData;