@firela/api-types 0.0.0-canary.92e8f8e1 → 0.0.0-canary.98d93318

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.
@@ -164,9 +164,7 @@ export type AccountResponseDto = {
164
164
  /**
165
165
  * Platform ID (null if unbound)
166
166
  */
167
- platformId?: {
168
- [key: string]: unknown;
169
- };
167
+ platformId?: string;
170
168
  /**
171
169
  * Platform details (populated if platformId is set)
172
170
  */
@@ -327,15 +325,27 @@ export type AccountStandardResponseDto = {
327
325
  */
328
326
  type: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
329
327
  /**
330
- * Short localized display name
328
+ * Short display name. Universal rows project to the request locale (Accept-Language); regional rows keep the authored native name — mixed-language by design (ADR-0131 class P vs class A).
331
329
  */
332
330
  name?: string;
333
331
  /**
334
- * Account description (stable semantics only)
332
+ * Authored market-language alternative names delivered verbatim (not localized copy, not xlf-managed, not locale-projected). Flat string[] per ADR-0129 D1; ADR-0131 class A.
333
+ */
334
+ aliases?: Array<string>;
335
+ /**
336
+ * Locale-projected search synonyms (e.g. the zh bank-card / debit-card everyday terms for the checking account). Pure-locale projection — absent when the locale has no seeded synonyms; English fallback rides the authored aliases field. Search-only vocabulary, not the NLP routing corpus (#698, ADR-0131 fourth-class adjudication).
337
+ */
338
+ searchTerms?: Array<string>;
339
+ /**
340
+ * Product denomination as a 3-letter ISO 4217 code, authored market data delivered verbatim (not localized, not xlf-managed). ADR-0131 class A. Absent = single-currency not asserted — consumers fall back to their own region currency (#714).
341
+ */
342
+ currency?: string;
343
+ /**
344
+ * Account description (stable semantics only). Mixed-language contract: universal rows project to the request locale via the accountDesc xlf axis with an en fallback (ADR-0131 class P, ADR-0132; unseeded locales falling back to English are expected); regional rows deliver the authored market language (ADR-0131 class A, verbatim, never xlf-managed).
335
345
  */
336
346
  description: string;
337
347
  /**
338
- * Account tags for categorization
348
+ * Account tags for categorization — structured metadata delivered verbatim (not localized, not xlf-managed). ADR-0131 class A.
339
349
  */
340
350
  tags: Array<string>;
341
351
  /**
@@ -429,11 +439,18 @@ export type TemplateMetadataResponseDto = {
429
439
  export type RegionConfigDto = {
430
440
  currency: string;
431
441
  dateFormat: string;
442
+ /**
443
+ * Region-qualified BCP-47 tag whose region subtag equals the region's own ISO 3166-1 code (e.g., ja-JP, zh-CN, en-HK)
444
+ */
432
445
  locale: string;
433
446
  };
434
447
 
435
448
  export type RegionInfoDto = {
436
449
  code: string;
450
+ /**
451
+ * Whether the region is open (has a ready regional account template). Not-yet-open regions still return identity metadata and degrade to the universal-only catalog.
452
+ */
453
+ open: boolean;
437
454
  displayName: string;
438
455
  parent?: string;
439
456
  chain: Array<string>;
@@ -595,7 +612,7 @@ export type PostingResponseDto = {
595
612
  */
596
613
  account: string;
597
614
  /**
598
- * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
615
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned. Carries the raw Beancount sign (credit-normal accounts such as Income post negative — the accounting truth, ADR-0126); renderers must not infer economic semantics from this sign.
599
616
  */
600
617
  units?: string;
601
618
  /**
@@ -830,7 +847,7 @@ export type PostingDetailDto = {
830
847
  */
831
848
  account: string;
832
849
  /**
833
- * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
850
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned. Carries the raw Beancount sign (credit-normal accounts such as Income post negative — the accounting truth, ADR-0126); renderers must not infer economic semantics from this sign.
834
851
  */
835
852
  units?: string;
836
853
  /**
@@ -976,6 +993,101 @@ export type flag2 =
976
993
  */
977
994
  export type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
978
995
 
996
+ export type TransactionListItemDto = {
997
+ /**
998
+ * Transaction ID
999
+ */
1000
+ id: string;
1001
+ /**
1002
+ * Transaction date
1003
+ */
1004
+ date: string;
1005
+ /**
1006
+ * Transaction flag
1007
+ */
1008
+ flag?:
1009
+ | 'CLEARED'
1010
+ | 'PENDING'
1011
+ | 'PADDING'
1012
+ | 'SUMMARIZE'
1013
+ | 'TRANSFER'
1014
+ | 'CONVERSIONS';
1015
+ /**
1016
+ * Custom flag (if not using standard flags)
1017
+ */
1018
+ customFlag?: string;
1019
+ /**
1020
+ * Payee name
1021
+ */
1022
+ payee?: string;
1023
+ /**
1024
+ * Transaction narration
1025
+ */
1026
+ narration: string;
1027
+ /**
1028
+ * Transaction tags
1029
+ */
1030
+ tags: Array<string>;
1031
+ /**
1032
+ * Transaction links
1033
+ */
1034
+ links: Array<string>;
1035
+ /**
1036
+ * Transaction metadata
1037
+ */
1038
+ meta?: {
1039
+ [key: string]: unknown;
1040
+ };
1041
+ /**
1042
+ * Transaction status
1043
+ */
1044
+ status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
1045
+ /**
1046
+ * Source type (free-form string from transaction metadata, e.g. import, api)
1047
+ */
1048
+ sourceType?: string;
1049
+ /**
1050
+ * Source platform (e.g., alipay, wechat)
1051
+ */
1052
+ sourcePlatform?: string;
1053
+ /**
1054
+ * Transaction postings
1055
+ */
1056
+ postings: Array<PostingDetailDto>;
1057
+ /**
1058
+ * Created at timestamp
1059
+ */
1060
+ createdAt: string;
1061
+ /**
1062
+ * Voided at timestamp (if voided)
1063
+ */
1064
+ voidedAt?: string;
1065
+ /**
1066
+ * User ID who voided this transaction
1067
+ */
1068
+ voidedBy?: string;
1069
+ /**
1070
+ * Correction reason (if voided or superseded)
1071
+ */
1072
+ correctionReason?: string;
1073
+ /**
1074
+ * ID of the transaction that supersedes this one (set when status=SUPERSEDED)
1075
+ */
1076
+ supersededBy?: string;
1077
+ /**
1078
+ * ID of the transaction this one corrected/replaced (back-link on the replacement)
1079
+ */
1080
+ originalTxn?: string;
1081
+ /**
1082
+ * Row amount under the request viewpoint (ADR-0126). Category viewpoint (category + flow): per-leg sign-normalized sum over the category account set (Income-root legs negated, Expenses-root identity) — positive under normal booking but NOT clamped (explicit negative expense legs and net-flip refund months stay negative). No viewpoint (plain list / search, no accountId): wallet money-flow net = raw-sign sum over cost-less Assets/Liabilities legs (income positive, expenses negative, transfers net ~0); color cue is the wallet sign (net < 0 = wealth-decreasing). Status-orthogonal: audit views match too (ADR-0128 amount-as-matching-key). Omitted under the account viewpoint (incl. dual) and for rows with no wallet leg.
1083
+ */
1084
+ viewpointAmount?: string;
1085
+ /**
1086
+ * Currency of viewpointAmount. A row spanning multiple currencies takes the largest-magnitude currency group (known simplification, ADR-0126).
1087
+ */
1088
+ viewpointCurrency?: string;
1089
+ };
1090
+
979
1091
  export type BalanceByCurrencyDto = {
980
1092
  /**
981
1093
  * ISO 4217 currency code
@@ -1004,7 +1116,7 @@ export type ExchangeRateWarningDto = {
1004
1116
 
1005
1117
  export type TransactionListSummaryDto = {
1006
1118
  /**
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.
1119
+ * Partial converted total in base currency (rated currencies only). Sign by viewpoint (ADR-0126): account viewpoint keeps the raw Beancount sign (income negative); category viewpoint is per-leg sign-normalized (Income legs negated, Expenses legs identity — positive under normal booking, not clamped). 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
1120
  */
1009
1121
  totalAmount: string;
1010
1122
  /**
@@ -1021,11 +1133,32 @@ export type TransactionListSummaryDto = {
1021
1133
  warnings?: Array<ExchangeRateWarningDto>;
1022
1134
  };
1023
1135
 
1136
+ export type TransactionListViewpointDto = {
1137
+ /**
1138
+ * Viewpoint type (only category drill-down carries a viewpoint today)
1139
+ */
1140
+ type: 'category';
1141
+ /**
1142
+ * Flow root the category account set is restricted to
1143
+ */
1144
+ flow: 'income' | 'expense';
1145
+ };
1146
+
1147
+ /**
1148
+ * Viewpoint type (only category drill-down carries a viewpoint today)
1149
+ */
1150
+ export type type2 = 'category';
1151
+
1152
+ /**
1153
+ * Flow root the category account set is restricted to
1154
+ */
1155
+ export type flow = 'income' | 'expense';
1156
+
1024
1157
  export type TransactionListResponseDto = {
1025
1158
  /**
1026
1159
  * List of transactions
1027
1160
  */
1028
- data: Array<TransactionDetailDto>;
1161
+ data: Array<TransactionListItemDto>;
1029
1162
  /**
1030
1163
  * Total count of matching transactions
1031
1164
  */
@@ -1042,6 +1175,10 @@ export type TransactionListResponseDto = {
1042
1175
  * 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
1176
  */
1044
1177
  summary?: TransactionListSummaryDto;
1178
+ /**
1179
+ * Viewpoint metadata (ADR-0126). Present only for a single category filter (category + flow, no accountId); dual-perspective requests are viewpoint-less (raw signs, no viewpointAmount).
1180
+ */
1181
+ viewpoint?: TransactionListViewpointDto;
1045
1182
  };
1046
1183
 
1047
1184
  export type TagSuggestionDto = {
@@ -1253,7 +1390,7 @@ export type ReviewSummaryDto = {
1253
1390
  /**
1254
1391
  * Review type
1255
1392
  */
1256
- export type type2 =
1393
+ export type type3 =
1257
1394
  | 'DUPLICATE'
1258
1395
  | 'RULE_MATCH'
1259
1396
  | 'PAYEE_MATCH'
@@ -1701,7 +1838,7 @@ export type UpdatePayeeDto = {
1701
1838
  */
1702
1839
  customTags?: Array<string>;
1703
1840
  /**
1704
- * Metadata for extended information (location, notes, contact info, etc.). Will merge with existing metadata.
1841
+ * Metadata for extended information (location, notes, contact info, etc.)
1705
1842
  */
1706
1843
  meta?: {
1707
1844
  [key: string]: unknown;
@@ -2094,481 +2231,449 @@ export type UpdateCommodityDto = {
2094
2231
  };
2095
2232
  };
2096
2233
 
2097
- export type CreateBeanPriceDto = {
2234
+ export type CurrencyBalanceDto = {
2098
2235
  /**
2099
- * Currency being priced (e.g., USD, AAPL, BTC)
2236
+ * ISO 4217 currency code
2100
2237
  */
2101
2238
  currency: string;
2102
2239
  /**
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.
2240
+ * Balance amount
2108
2241
  */
2109
- amount: number;
2242
+ balance: string;
2243
+ };
2244
+
2245
+ export type TimeSeriesPointDto = {
2110
2246
  /**
2111
- * Price date (ISO 8601 format)
2247
+ * Date in YYYY-MM-DD format
2112
2248
  */
2113
2249
  date: string;
2114
2250
  /**
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
2251
+ * Value at this date (in base currency)
2125
2252
  */
2126
- id: string;
2253
+ value: string;
2127
2254
  /**
2128
- * User ID (owner of the price)
2255
+ * Change from previous point
2129
2256
  */
2130
- userId: string;
2257
+ change?: string;
2131
2258
  /**
2132
- * Currency being priced (e.g., USD, AAPL, BTC)
2259
+ * Total assets at this date (in base currency)
2133
2260
  */
2134
- currency: string;
2261
+ assets?: string;
2135
2262
  /**
2136
- * Quote currency (pricing currency, e.g., USD, CNY)
2263
+ * Total liabilities at this date (in base currency)
2137
2264
  */
2138
- quoteCurrency: string;
2265
+ liabilities?: string;
2139
2266
  /**
2140
- * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
2267
+ * Multi-currency breakdown for this point
2141
2268
  */
2142
- amount: number;
2269
+ byCurrency?: Array<CurrencyBalanceDto>;
2270
+ };
2271
+
2272
+ export type TrendSummaryDto = {
2143
2273
  /**
2144
- * Price date (ISO 8601 format). Represents the date this price was valid.
2274
+ * Value at start of period
2145
2275
  */
2146
- date: string;
2276
+ startValue: string;
2147
2277
  /**
2148
- * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
2278
+ * Value at end of period
2149
2279
  */
2150
- meta: {
2151
- [key: string]: unknown;
2152
- };
2280
+ endValue: string;
2153
2281
  /**
2154
- * Creation timestamp
2282
+ * Total change over period
2155
2283
  */
2156
- createdAt: string;
2284
+ totalChange: string;
2157
2285
  /**
2158
- * Last update timestamp
2286
+ * Total change percentage
2159
2287
  */
2160
- updatedAt: string;
2288
+ totalChangePercentage: string;
2161
2289
  };
2162
2290
 
2163
- export type PriceListResponseDto = {
2291
+ export type MultiCurrencyPointDto = {
2164
2292
  /**
2165
- * List of prices
2293
+ * Date in YYYY-MM-DD format
2166
2294
  */
2167
- items: Array<PriceResponseDto>;
2295
+ date: string;
2168
2296
  /**
2169
- * Total number of prices
2297
+ * Balances by currency
2170
2298
  */
2171
- total: number;
2299
+ byCurrency: Array<CurrencyBalanceDto>;
2172
2300
  };
2173
2301
 
2174
- export type UpdateBeanPriceDto = {
2302
+ export type PortfolioTrendsResponseDto = {
2175
2303
  /**
2176
- * Currency being priced
2304
+ * Time series data points
2177
2305
  */
2178
- currency?: string;
2306
+ series: Array<TimeSeriesPointDto>;
2179
2307
  /**
2180
- * Quote currency (pricing currency)
2308
+ * Period summary
2181
2309
  */
2182
- quoteCurrency?: string;
2310
+ summary: TrendSummaryDto;
2183
2311
  /**
2184
- * Price amount (MUST be >= 0 per Beancount spec)
2312
+ * Period requested
2185
2313
  */
2186
- amount?: number;
2314
+ period: string;
2187
2315
  /**
2188
- * Price date (ISO 8601 format)
2316
+ * Data granularity
2189
2317
  */
2190
- date?: string;
2318
+ granularity: string;
2191
2319
  /**
2192
- * Metadata
2320
+ * Base currency for converted values
2193
2321
  */
2194
- metadata?: {
2195
- [key: string]: unknown;
2196
- };
2197
- };
2198
-
2199
- export type CreateRecurringRuleDto = {
2322
+ currency: string;
2200
2323
  /**
2201
- * Rule name (unique per user)
2324
+ * Multi-currency time series (each point has currency breakdown)
2202
2325
  */
2203
- name: string;
2326
+ byCurrency?: Array<MultiCurrencyPointDto>;
2204
2327
  /**
2205
- * Icon emoji
2328
+ * Exchange rate warnings
2206
2329
  */
2207
- icon?: string;
2330
+ warnings?: Array<ExchangeRateWarningDto>;
2331
+ };
2332
+
2333
+ export type CashFlowPointDto = {
2208
2334
  /**
2209
- * Recurring frequency
2335
+ * Month key (YYYY-MM)
2210
2336
  */
2211
- frequency:
2212
- | 'WEEKLY'
2213
- | 'BIWEEKLY'
2214
- | 'MONTHLY'
2215
- | 'BIMONTHLY'
2216
- | 'QUARTERLY'
2217
- | 'YEARLY'
2218
- | 'CUSTOM';
2337
+ month: string;
2219
2338
  /**
2220
- * Expected amount (positive number)
2339
+ * Income in base currency (absolute, converted)
2221
2340
  */
2222
- expectedAmount: number;
2341
+ income: string;
2223
2342
  /**
2224
- * Expected day of month (1-31)
2343
+ * Expense in base currency (absolute, converted)
2225
2344
  */
2226
- expectedDay?: number;
2345
+ expense: string;
2227
2346
  /**
2228
- * Custom interval in days (required for CUSTOM frequency)
2347
+ * netSavings = income − expense (savings positive)
2229
2348
  */
2230
- customIntervalDays?: number;
2349
+ netSavings: string;
2350
+ };
2351
+
2352
+ export type CashFlowTrendSummaryDto = {
2231
2353
  /**
2232
- * Currency code
2354
+ * Total income across the period
2233
2355
  */
2234
- currency: string;
2356
+ totalIncome: string;
2235
2357
  /**
2236
- * Payee matching pattern (supports wildcards)
2358
+ * Total expense across the period
2237
2359
  */
2238
- matchPayeePattern?: string;
2360
+ totalExpense: string;
2239
2361
  /**
2240
- * Amount tolerance percentage (0-1)
2362
+ * income − expense across the period
2241
2363
  */
2242
- matchAmountTolerance: number;
2364
+ totalNetSavings: string;
2243
2365
  /**
2244
- * Default expense account for auto-create
2366
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
2245
2367
  */
2246
- defaultExpenseAccount?: string;
2368
+ averageMonthlyNetSavings: string;
2369
+ };
2370
+
2371
+ export type CashFlowTrendsResponseDto = {
2247
2372
  /**
2248
- * Default payment account for auto-create
2373
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
2249
2374
  */
2250
- defaultPaymentAccount?: string;
2375
+ series: Array<CashFlowPointDto>;
2251
2376
  /**
2252
- * Default payee for auto-create
2377
+ * Period totals
2253
2378
  */
2254
- defaultPayee?: string;
2379
+ summary: CashFlowTrendSummaryDto;
2255
2380
  /**
2256
- * Auto-create transaction when expected date arrives
2381
+ * Period requested
2257
2382
  */
2258
- autoCreate: boolean;
2383
+ period: string;
2259
2384
  /**
2260
- * Rule start date (ISO format)
2385
+ * Data granularity (v1 returns month buckets)
2261
2386
  */
2262
- startDate?: string;
2387
+ granularity: string;
2263
2388
  /**
2264
- * Rule end date (ISO format)
2389
+ * Base currency for converted values
2265
2390
  */
2266
- endDate?: string;
2391
+ currency: string;
2392
+ /**
2393
+ * Exchange rate warnings (e.g. missing rate for a currency)
2394
+ */
2395
+ warnings?: Array<ExchangeRateWarningDto>;
2267
2396
  };
2268
2397
 
2269
- /**
2270
- * Recurring frequency
2271
- */
2272
- export type frequency =
2273
- | 'WEEKLY'
2274
- | 'BIWEEKLY'
2275
- | 'MONTHLY'
2276
- | 'BIMONTHLY'
2277
- | 'QUARTERLY'
2278
- | 'YEARLY'
2279
- | 'CUSTOM';
2398
+ export type GenerateSnapshotBody = unknown;
2280
2399
 
2281
- export type RecurringRuleResponseDto = {
2282
- /**
2283
- * Rule ID
2284
- */
2285
- id: string;
2286
- /**
2287
- * User ID
2288
- */
2289
- userId: string;
2400
+ export type GenerateSnapshotResponse = unknown;
2401
+
2402
+ export type BackfillSnapshotsBody = unknown;
2403
+
2404
+ export type BackfillSnapshotsResponse = unknown;
2405
+
2406
+ export type CreateBeanPriceDto = {
2290
2407
  /**
2291
- * Rule name
2408
+ * Currency being priced (e.g., USD, AAPL, BTC)
2292
2409
  */
2293
- name: string;
2410
+ currency: string;
2294
2411
  /**
2295
- * Icon emoji
2412
+ * Quote currency (pricing currency, e.g., CNY, EUR)
2296
2413
  */
2297
- icon?: {
2298
- [key: string]: unknown;
2299
- };
2414
+ quoteCurrency: string;
2300
2415
  /**
2301
- * Recurring frequency
2416
+ * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
2302
2417
  */
2303
- frequency: string;
2418
+ amount: number;
2304
2419
  /**
2305
- * Expected amount
2420
+ * Price date (ISO 8601 format)
2306
2421
  */
2307
- expectedAmount: number;
2422
+ date: string;
2308
2423
  /**
2309
- * Expected day of month
2424
+ * Metadata (validated by Zod schema, max field lengths enforced)
2310
2425
  */
2311
- expectedDay?: {
2426
+ metadata?: {
2312
2427
  [key: string]: unknown;
2313
2428
  };
2429
+ };
2430
+
2431
+ export type PriceResponseDto = {
2314
2432
  /**
2315
- * Custom interval in days
2433
+ * Unique identifier
2316
2434
  */
2317
- customIntervalDays?: {
2318
- [key: string]: unknown;
2319
- };
2435
+ id: string;
2320
2436
  /**
2321
- * Currency code
2437
+ * User ID (owner of the price)
2438
+ */
2439
+ userId: string;
2440
+ /**
2441
+ * Currency being priced (e.g., USD, AAPL, BTC)
2322
2442
  */
2323
2443
  currency: string;
2324
2444
  /**
2325
- * Payee matching pattern
2445
+ * Quote currency (pricing currency, e.g., USD, CNY)
2326
2446
  */
2327
- matchPayeePattern?: {
2328
- [key: string]: unknown;
2329
- };
2447
+ quoteCurrency: string;
2330
2448
  /**
2331
- * Amount tolerance percentage
2449
+ * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
2332
2450
  */
2333
- matchAmountTolerance: number;
2451
+ amount: number;
2334
2452
  /**
2335
- * Default expense account
2453
+ * Price date (ISO 8601 format). Represents the date this price was valid.
2336
2454
  */
2337
- defaultExpenseAccount?: {
2338
- [key: string]: unknown;
2339
- };
2455
+ date: string;
2340
2456
  /**
2341
- * Default payment account
2457
+ * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
2342
2458
  */
2343
- defaultPaymentAccount?: {
2459
+ meta: {
2344
2460
  [key: string]: unknown;
2345
2461
  };
2346
2462
  /**
2347
- * Default payee
2463
+ * Creation timestamp
2348
2464
  */
2349
- defaultPayee?: {
2350
- [key: string]: unknown;
2351
- };
2465
+ createdAt: string;
2352
2466
  /**
2353
- * Whether rule is active
2467
+ * Last update timestamp
2354
2468
  */
2355
- isActive: boolean;
2469
+ updatedAt: string;
2470
+ };
2471
+
2472
+ export type PriceListResponseDto = {
2356
2473
  /**
2357
- * Rule start date (YYYY-MM-DD)
2474
+ * List of prices
2358
2475
  */
2359
- startDate: string;
2476
+ items: Array<PriceResponseDto>;
2360
2477
  /**
2361
- * Rule end date (YYYY-MM-DD)
2478
+ * Total number of prices
2362
2479
  */
2363
- endDate?: {
2364
- [key: string]: unknown;
2365
- };
2480
+ total: number;
2481
+ };
2482
+
2483
+ export type UpdateBeanPriceDto = {
2366
2484
  /**
2367
- * Auto-create transaction on expected date
2485
+ * Currency being priced
2368
2486
  */
2369
- autoCreate: boolean;
2487
+ currency?: string;
2370
2488
  /**
2371
- * Last matched occurrence date (YYYY-MM-DD)
2489
+ * Quote currency (pricing currency)
2372
2490
  */
2373
- lastOccurrence?: {
2374
- [key: string]: unknown;
2375
- };
2491
+ quoteCurrency?: string;
2376
2492
  /**
2377
- * Total matched transactions count
2493
+ * Price amount (MUST be >= 0 per Beancount spec)
2378
2494
  */
2379
- totalCount: number;
2495
+ amount?: number;
2380
2496
  /**
2381
- * Created at timestamp
2497
+ * Price date (ISO 8601 format)
2382
2498
  */
2383
- createdAt: string;
2499
+ date?: string;
2384
2500
  /**
2385
- * Updated at timestamp
2501
+ * Metadata
2386
2502
  */
2387
- updatedAt: string;
2503
+ metadata?: {
2504
+ [key: string]: unknown;
2505
+ };
2388
2506
  };
2389
2507
 
2390
- export type CreateRuleFromTransactionDto = {
2391
- /**
2392
- * Recurring frequency
2393
- */
2394
- frequency:
2395
- | 'WEEKLY'
2396
- | 'BIWEEKLY'
2397
- | 'MONTHLY'
2398
- | 'BIMONTHLY'
2399
- | 'QUARTERLY'
2400
- | 'YEARLY'
2401
- | 'CUSTOM';
2402
- /**
2403
- * Optional name override (default: transaction payee)
2404
- */
2405
- name?: string;
2508
+ export type DeleteOwnUserDto = {
2406
2509
  /**
2407
- * Optional icon emoji
2510
+ * Access token for user verification
2408
2511
  */
2409
- icon?: string;
2512
+ accessToken: string;
2410
2513
  };
2411
2514
 
2412
- export type RecurringRuleWithStatsResponseDto = {
2515
+ export type UserSettingsResponseDto = {
2413
2516
  /**
2414
- * Rule ID
2517
+ * Stored base currency choice (ISO 4217) for net-worth/report aggregation. null = user never chose; aggregates fall back to the region default at display time (#713).
2415
2518
  */
2416
- id: string;
2519
+ baseCurrency: string | null;
2520
+ };
2521
+
2522
+ export type UserResponseDto = {
2417
2523
  /**
2418
2524
  * User ID
2419
2525
  */
2420
- userId: string;
2421
- /**
2422
- * Rule name
2423
- */
2424
- name: string;
2526
+ id: string;
2425
2527
  /**
2426
- * Icon emoji
2528
+ * Assigned user role
2427
2529
  */
2428
- icon?: {
2429
- [key: string]: unknown;
2430
- };
2530
+ role: string;
2431
2531
  /**
2432
- * Recurring frequency
2532
+ * Permission strings
2433
2533
  */
2434
- frequency: string;
2534
+ permissions: Array<string>;
2435
2535
  /**
2436
- * Expected amount
2536
+ * User settings
2437
2537
  */
2438
- expectedAmount: number;
2538
+ settings: UserSettingsResponseDto;
2539
+ };
2540
+
2541
+ export type SignupDto = {
2439
2542
  /**
2440
- * Expected day of month
2543
+ * Cloudflare Turnstile verification token (optional when Turnstile disabled)
2441
2544
  */
2442
- expectedDay?: {
2443
- [key: string]: unknown;
2444
- };
2545
+ turnstileToken?: string;
2546
+ };
2547
+
2548
+ export type SignupResponseDto = {
2445
2549
  /**
2446
- * Custom interval in days
2550
+ * JWT auth token
2447
2551
  */
2448
- customIntervalDays?: {
2449
- [key: string]: unknown;
2450
- };
2552
+ authToken: string;
2451
2553
  /**
2452
- * Currency code
2554
+ * Auto-generated access token
2453
2555
  */
2454
- currency: string;
2556
+ accessToken: string;
2455
2557
  /**
2456
- * Payee matching pattern
2558
+ * Assigned user role
2457
2559
  */
2458
- matchPayeePattern?: {
2459
- [key: string]: unknown;
2460
- };
2560
+ role: 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
2561
+ };
2562
+
2563
+ /**
2564
+ * Assigned user role
2565
+ */
2566
+ export type role = 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
2567
+
2568
+ export type UpdateUserSettingDto = {
2461
2569
  /**
2462
- * Amount tolerance percentage
2570
+ * Security ID
2463
2571
  */
2464
- matchAmountTolerance: number;
2572
+ secId?: number;
2465
2573
  /**
2466
- * Default expense account
2574
+ * Annual interest rate
2467
2575
  */
2468
- defaultExpenseAccount?: {
2469
- [key: string]: unknown;
2470
- };
2576
+ annualInterestRate?: number;
2471
2577
  /**
2472
- * Default payment account
2473
- */
2474
- defaultPaymentAccount?: {
2475
- [key: string]: unknown;
2476
- };
2578
+ * Currency code
2579
+ */
2580
+ currency?: string;
2477
2581
  /**
2478
- * Default payee
2582
+ * Base currency code
2479
2583
  */
2480
- defaultPayee?: {
2481
- [key: string]: unknown;
2482
- };
2584
+ baseCurrency?: string;
2483
2585
  /**
2484
- * Whether rule is active
2586
+ * Benchmark symbol
2485
2587
  */
2486
- isActive: boolean;
2588
+ benchmark?: string;
2487
2589
  /**
2488
- * Rule start date (YYYY-MM-DD)
2590
+ * Color scheme
2489
2591
  */
2490
- startDate: string;
2592
+ colorScheme?: 'DARK' | 'LIGHT';
2491
2593
  /**
2492
- * Rule end date (YYYY-MM-DD)
2594
+ * Date range filter
2493
2595
  */
2494
- endDate?: {
2495
- [key: string]: unknown;
2496
- };
2596
+ dateRange?: string;
2497
2597
  /**
2498
- * Auto-create transaction on expected date
2598
+ * Emergency fund amount
2499
2599
  */
2500
- autoCreate: boolean;
2600
+ emergencyFund?: number;
2501
2601
  /**
2502
- * Last matched occurrence date (YYYY-MM-DD)
2602
+ * Account filter IDs
2503
2603
  */
2504
- lastOccurrence?: {
2505
- [key: string]: unknown;
2506
- };
2604
+ 'filters.accounts'?: Array<string>;
2507
2605
  /**
2508
- * Total matched transactions count
2606
+ * Asset class filters
2509
2607
  */
2510
- totalCount: number;
2608
+ 'filters.assetClasses'?: Array<string>;
2511
2609
  /**
2512
- * Created at timestamp
2610
+ * Data source filter
2513
2611
  */
2514
- createdAt: string;
2612
+ 'filters.dataSource'?: string;
2515
2613
  /**
2516
- * Updated at timestamp
2614
+ * Symbol filter
2517
2615
  */
2518
- updatedAt: string;
2616
+ 'filters.symbol'?: string;
2519
2617
  /**
2520
- * Number of pending expected transactions
2618
+ * Tag filters
2521
2619
  */
2522
- pendingCount: number;
2620
+ 'filters.tags'?: Array<string>;
2523
2621
  /**
2524
- * Number of overdue expected transactions
2622
+ * Enable experimental features
2525
2623
  */
2526
- overdueCount: number;
2624
+ isExperimentalFeatures?: boolean;
2527
2625
  /**
2528
- * Next expected date (YYYY-MM-DD)
2626
+ * Enable restricted view mode
2529
2627
  */
2530
- nextExpectedDate?: {
2531
- [key: string]: unknown;
2532
- };
2628
+ isRestrictedView?: boolean;
2533
2629
  /**
2534
- * Total amount of all matched transactions
2630
+ * Language code
2535
2631
  */
2536
- totalAmount: number;
2632
+ language?: string;
2537
2633
  /**
2538
- * Average amount per transaction
2634
+ * Locale code
2539
2635
  */
2540
- averageAmount: number;
2636
+ locale?: string;
2541
2637
  /**
2542
- * Number of matched transactions
2638
+ * Projected total amount
2543
2639
  */
2544
- transactionCount: number;
2640
+ projectedTotalAmount?: number;
2545
2641
  /**
2546
- * First matched transaction date (YYYY-MM-DD)
2642
+ * Retirement date in ISO 8601 format
2547
2643
  */
2548
- firstDate?: {
2549
- [key: string]: unknown;
2550
- };
2644
+ retirementDate?: string;
2551
2645
  /**
2552
- * Last matched transaction date (YYYY-MM-DD)
2646
+ * Savings rate percentage
2553
2647
  */
2554
- lastDate?: {
2555
- [key: string]: unknown;
2556
- };
2648
+ savingsRate?: number;
2557
2649
  /**
2558
- * Amount variance (standard deviation squared)
2650
+ * View mode
2559
2651
  */
2560
- variance: number;
2652
+ viewMode?: 'DEFAULT' | 'ZEN';
2653
+ };
2654
+
2655
+ /**
2656
+ * Color scheme
2657
+ */
2658
+ export type colorScheme = 'DARK' | 'LIGHT';
2659
+
2660
+ /**
2661
+ * View mode
2662
+ */
2663
+ export type viewMode = 'DEFAULT' | 'ZEN';
2664
+
2665
+ export type UpdatePropertyDto = {
2561
2666
  /**
2562
- * Number of upcoming expected transactions
2667
+ * Property value
2563
2668
  */
2564
- upcomingCount: number;
2669
+ value: string;
2565
2670
  };
2566
2671
 
2567
- export type UpdateRecurringRuleDto = {
2672
+ export type CreateRecurringRuleDto = {
2568
2673
  /**
2569
- * Rule name
2674
+ * Rule name (unique per user)
2570
2675
  */
2571
- name?: string;
2676
+ name: string;
2572
2677
  /**
2573
2678
  * Icon emoji
2574
2679
  */
@@ -2576,7 +2681,7 @@ export type UpdateRecurringRuleDto = {
2576
2681
  /**
2577
2682
  * Recurring frequency
2578
2683
  */
2579
- frequency?:
2684
+ frequency:
2580
2685
  | 'WEEKLY'
2581
2686
  | 'BIWEEKLY'
2582
2687
  | 'MONTHLY'
@@ -2585,15 +2690,15 @@ export type UpdateRecurringRuleDto = {
2585
2690
  | 'YEARLY'
2586
2691
  | 'CUSTOM';
2587
2692
  /**
2588
- * Expected amount
2693
+ * Expected amount (positive number)
2589
2694
  */
2590
- expectedAmount?: number;
2695
+ expectedAmount: number;
2591
2696
  /**
2592
2697
  * Expected day of month (1-31)
2593
2698
  */
2594
2699
  expectedDay?: number;
2595
2700
  /**
2596
- * Custom interval in days
2701
+ * Custom interval in days (required for CUSTOM frequency)
2597
2702
  */
2598
2703
  customIntervalDays?: number;
2599
2704
  /**
@@ -2601,111 +2706,132 @@ export type UpdateRecurringRuleDto = {
2601
2706
  */
2602
2707
  currency?: string;
2603
2708
  /**
2604
- * Payee matching pattern
2709
+ * Payee matching pattern (supports wildcards)
2605
2710
  */
2606
2711
  matchPayeePattern?: string;
2607
2712
  /**
2608
2713
  * Amount tolerance percentage (0-1)
2609
2714
  */
2610
- matchAmountTolerance?: number;
2715
+ matchAmountTolerance: number;
2611
2716
  /**
2612
- * Default expense account
2717
+ * Default expense account for auto-create
2613
2718
  */
2614
2719
  defaultExpenseAccount?: string;
2615
2720
  /**
2616
- * Default payment account
2721
+ * Default payment account for auto-create
2617
2722
  */
2618
2723
  defaultPaymentAccount?: string;
2619
2724
  /**
2620
- * Default payee
2725
+ * Default payee for auto-create
2621
2726
  */
2622
2727
  defaultPayee?: string;
2623
2728
  /**
2624
- * Auto-create transaction
2729
+ * Auto-create transaction when expected date arrives
2625
2730
  */
2626
- autoCreate?: boolean;
2731
+ autoCreate: boolean;
2627
2732
  /**
2628
- * Rule active status
2733
+ * Rule start date (ISO format)
2629
2734
  */
2630
- isActive?: boolean;
2735
+ startDate?: string;
2631
2736
  /**
2632
2737
  * Rule end date (ISO format)
2633
2738
  */
2634
2739
  endDate?: string;
2635
2740
  };
2636
2741
 
2637
- export type ExpectedTransactionRuleDto = {
2742
+ /**
2743
+ * Recurring frequency
2744
+ */
2745
+ export type frequency =
2746
+ | 'WEEKLY'
2747
+ | 'BIWEEKLY'
2748
+ | 'MONTHLY'
2749
+ | 'BIMONTHLY'
2750
+ | 'QUARTERLY'
2751
+ | 'YEARLY'
2752
+ | 'CUSTOM';
2753
+
2754
+ export type RecurringRuleResponseDto = {
2755
+ /**
2756
+ * Rule ID
2757
+ */
2758
+ id: string;
2759
+ /**
2760
+ * User ID
2761
+ */
2762
+ userId: string;
2638
2763
  /**
2639
2764
  * Rule name
2640
2765
  */
2641
2766
  name: string;
2642
2767
  /**
2643
- * Rule icon
2768
+ * Icon emoji
2644
2769
  */
2645
- icon?: {
2646
- [key: string]: unknown;
2647
- };
2770
+ icon?: string;
2648
2771
  /**
2649
- * Rule frequency
2772
+ * Recurring frequency
2650
2773
  */
2651
2774
  frequency: string;
2775
+ /**
2776
+ * Expected amount
2777
+ */
2778
+ expectedAmount: number;
2779
+ /**
2780
+ * Expected day of month
2781
+ */
2782
+ expectedDay?: number;
2783
+ /**
2784
+ * Custom interval in days
2785
+ */
2786
+ customIntervalDays?: number;
2652
2787
  /**
2653
2788
  * Currency code
2654
2789
  */
2655
2790
  currency: string;
2656
- };
2657
-
2658
- export type ExpectedTransactionResponseDto = {
2659
2791
  /**
2660
- * Expected transaction ID
2792
+ * Payee matching pattern
2661
2793
  */
2662
- id: string;
2794
+ matchPayeePattern?: string;
2663
2795
  /**
2664
- * User ID
2796
+ * Amount tolerance percentage
2665
2797
  */
2666
- userId: string;
2798
+ matchAmountTolerance: number;
2667
2799
  /**
2668
- * Associated rule ID
2800
+ * Default expense account
2669
2801
  */
2670
- ruleId: string;
2802
+ defaultExpenseAccount?: string;
2671
2803
  /**
2672
- * Expected date (YYYY-MM-DD)
2804
+ * Default payment account
2673
2805
  */
2674
- expectedDate: string;
2806
+ defaultPaymentAccount?: string;
2675
2807
  /**
2676
- * Expected amount
2808
+ * Default payee
2677
2809
  */
2678
- expectedAmount: number;
2810
+ defaultPayee?: string;
2679
2811
  /**
2680
- * Status (PENDING, COMPLETED, SKIPPED)
2812
+ * Whether rule is active
2681
2813
  */
2682
- status: string;
2814
+ isActive: boolean;
2683
2815
  /**
2684
- * Matched transaction ID
2816
+ * Rule start date (YYYY-MM-DD)
2685
2817
  */
2686
- matchedTransactionId?: {
2687
- [key: string]: unknown;
2688
- };
2818
+ startDate: string;
2689
2819
  /**
2690
- * Match timestamp (ISO 8601)
2820
+ * Rule end date (YYYY-MM-DD)
2691
2821
  */
2692
- matchedAt?: {
2693
- [key: string]: unknown;
2694
- };
2822
+ endDate?: string;
2695
2823
  /**
2696
- * Match confidence score (0-1)
2824
+ * Auto-create transaction on expected date
2697
2825
  */
2698
- matchConfidence?: {
2699
- [key: string]: unknown;
2700
- };
2826
+ autoCreate: boolean;
2701
2827
  /**
2702
- * Whether this expected transaction is overdue
2828
+ * Last matched occurrence date (YYYY-MM-DD)
2703
2829
  */
2704
- isOverdue: boolean;
2830
+ lastOccurrence?: string;
2705
2831
  /**
2706
- * Rule information
2832
+ * Total matched transactions count
2707
2833
  */
2708
- rule: ExpectedTransactionRuleDto;
2834
+ totalCount: number;
2709
2835
  /**
2710
2836
  * Created at timestamp
2711
2837
  */
@@ -2716,461 +2842,420 @@ export type ExpectedTransactionResponseDto = {
2716
2842
  updatedAt: string;
2717
2843
  };
2718
2844
 
2719
- export type ExpectedTransactionListResponseDto = {
2720
- items: Array<ExpectedTransactionResponseDto>;
2721
- /**
2722
- * Total count
2723
- */
2724
- total: number;
2725
- };
2726
-
2727
- export type ConfirmMatchDto = {
2728
- /**
2729
- * Transaction ID to match with
2730
- */
2731
- transactionId: string;
2732
- };
2733
-
2734
- export type EnterNowDto = {
2845
+ export type CreateRuleFromTransactionDto = {
2735
2846
  /**
2736
- * Override expense account (uses rule default if not provided)
2847
+ * Recurring frequency
2737
2848
  */
2738
- expenseAccount?: string;
2849
+ frequency:
2850
+ | 'WEEKLY'
2851
+ | 'BIWEEKLY'
2852
+ | 'MONTHLY'
2853
+ | 'BIMONTHLY'
2854
+ | 'QUARTERLY'
2855
+ | 'YEARLY'
2856
+ | 'CUSTOM';
2739
2857
  /**
2740
- * Override payment account (uses rule default if not provided)
2858
+ * Optional name override (default: transaction payee)
2741
2859
  */
2742
- paymentAccount?: string;
2860
+ name?: string;
2743
2861
  /**
2744
- * Override amount (uses expected amount if not provided)
2862
+ * Optional icon emoji
2745
2863
  */
2746
- amount?: number;
2864
+ icon?: string;
2865
+ };
2866
+
2867
+ export type RecurringRuleWithStatsResponseDto = {
2747
2868
  /**
2748
- * Override payee (uses rule default if not provided)
2869
+ * Rule ID
2749
2870
  */
2750
- payee?: string;
2871
+ id: string;
2751
2872
  /**
2752
- * Optional narration
2873
+ * User ID
2753
2874
  */
2754
- narration?: string;
2755
- };
2756
-
2757
- export type ForecastItemDto = {
2875
+ userId: string;
2758
2876
  /**
2759
2877
  * Rule name
2760
2878
  */
2761
- rule: string;
2879
+ name: string;
2762
2880
  /**
2763
- * Rule ID
2881
+ * Icon emoji
2764
2882
  */
2765
- ruleId: string;
2883
+ icon?: string;
2884
+ /**
2885
+ * Recurring frequency
2886
+ */
2887
+ frequency: string;
2766
2888
  /**
2767
2889
  * Expected amount
2768
2890
  */
2769
- amount: number;
2891
+ expectedAmount: number;
2770
2892
  /**
2771
- * Expected date (YYYY-MM-DD)
2893
+ * Expected day of month
2772
2894
  */
2773
- date: string;
2895
+ expectedDay?: number;
2774
2896
  /**
2775
- * Rule icon emoji
2897
+ * Custom interval in days
2776
2898
  */
2777
- icon: string | null;
2899
+ customIntervalDays?: number;
2778
2900
  /**
2779
2901
  * Currency code
2780
2902
  */
2781
2903
  currency: string;
2782
- };
2783
-
2784
- export type MonthlyForecastDto = {
2785
2904
  /**
2786
- * Month (YYYY-MM)
2905
+ * Payee matching pattern
2787
2906
  */
2788
- month: string;
2907
+ matchPayeePattern?: string;
2789
2908
  /**
2790
- * Total expected outflow for the month
2909
+ * Amount tolerance percentage
2791
2910
  */
2792
- expectedOutflow: number;
2911
+ matchAmountTolerance: number;
2793
2912
  /**
2794
- * Number of expected transactions
2913
+ * Default expense account
2795
2914
  */
2796
- itemCount: number;
2915
+ defaultExpenseAccount?: string;
2797
2916
  /**
2798
- * Breakdown by currency
2917
+ * Default payment account
2799
2918
  */
2800
- byCurrency: {
2801
- [key: string]: unknown;
2802
- };
2919
+ defaultPaymentAccount?: string;
2803
2920
  /**
2804
- * Individual forecast items
2921
+ * Default payee
2805
2922
  */
2806
- items: Array<ForecastItemDto>;
2807
- };
2808
-
2809
- export type ForecastResponseDto = {
2923
+ defaultPayee?: string;
2810
2924
  /**
2811
- * Monthly forecast data
2925
+ * Whether rule is active
2812
2926
  */
2813
- forecast: Array<MonthlyForecastDto>;
2927
+ isActive: boolean;
2814
2928
  /**
2815
- * Total expected outflow across all months
2929
+ * Rule start date (YYYY-MM-DD)
2816
2930
  */
2817
- totalOutflow: number;
2931
+ startDate: string;
2818
2932
  /**
2819
- * Total by currency across all months
2933
+ * Rule end date (YYYY-MM-DD)
2820
2934
  */
2821
- totalByCurrency: {
2822
- [key: string]: unknown;
2823
- };
2935
+ endDate?: string;
2824
2936
  /**
2825
- * Number of active recurring rules included
2937
+ * Auto-create transaction on expected date
2826
2938
  */
2827
- rulesCount: number;
2939
+ autoCreate: boolean;
2828
2940
  /**
2829
- * Forecast period start date
2941
+ * Last matched occurrence date (YYYY-MM-DD)
2830
2942
  */
2831
- periodStart: string;
2943
+ lastOccurrence?: string;
2832
2944
  /**
2833
- * Forecast period end date
2945
+ * Total matched transactions count
2834
2946
  */
2835
- periodEnd: string;
2836
- };
2837
-
2838
- export type CurrencyBalanceDto = {
2947
+ totalCount: number;
2839
2948
  /**
2840
- * ISO 4217 currency code
2949
+ * Created at timestamp
2841
2950
  */
2842
- currency: string;
2951
+ createdAt: string;
2843
2952
  /**
2844
- * Balance amount
2953
+ * Updated at timestamp
2845
2954
  */
2846
- balance: string;
2847
- };
2848
-
2849
- export type TimeSeriesPointDto = {
2955
+ updatedAt: string;
2850
2956
  /**
2851
- * Date in YYYY-MM-DD format
2957
+ * Number of pending expected transactions
2852
2958
  */
2853
- date: string;
2959
+ pendingCount: number;
2854
2960
  /**
2855
- * Value at this date (in base currency)
2961
+ * Number of overdue expected transactions
2856
2962
  */
2857
- value: string;
2963
+ overdueCount: number;
2858
2964
  /**
2859
- * Change from previous point
2965
+ * Next expected date (YYYY-MM-DD)
2860
2966
  */
2861
- change?: {
2862
- [key: string]: unknown;
2863
- };
2967
+ nextExpectedDate?: string;
2864
2968
  /**
2865
- * Total assets at this date (in base currency)
2969
+ * Total amount of all matched transactions
2866
2970
  */
2867
- assets?: string;
2971
+ totalAmount: number;
2868
2972
  /**
2869
- * Total liabilities at this date (in base currency)
2973
+ * Average amount per transaction
2870
2974
  */
2871
- liabilities?: string;
2975
+ averageAmount: number;
2872
2976
  /**
2873
- * Multi-currency breakdown for this point
2977
+ * Number of matched transactions
2874
2978
  */
2875
- byCurrency?: Array<CurrencyBalanceDto>;
2876
- };
2877
-
2878
- export type TrendSummaryDto = {
2979
+ transactionCount: number;
2879
2980
  /**
2880
- * Value at start of period
2981
+ * First matched transaction date (YYYY-MM-DD)
2881
2982
  */
2882
- startValue: string;
2983
+ firstDate?: string;
2883
2984
  /**
2884
- * Value at end of period
2985
+ * Last matched transaction date (YYYY-MM-DD)
2885
2986
  */
2886
- endValue: string;
2987
+ lastDate?: string;
2887
2988
  /**
2888
- * Total change over period
2989
+ * Amount variance (standard deviation squared)
2889
2990
  */
2890
- totalChange: string;
2991
+ variance: number;
2891
2992
  /**
2892
- * Total change percentage
2993
+ * Number of upcoming expected transactions
2893
2994
  */
2894
- totalChangePercentage: string;
2995
+ upcomingCount: number;
2895
2996
  };
2896
2997
 
2897
- export type MultiCurrencyPointDto = {
2998
+ export type UpdateRecurringRuleDto = {
2898
2999
  /**
2899
- * Date in YYYY-MM-DD format
3000
+ * Rule name (unique per user)
2900
3001
  */
2901
- date: string;
3002
+ name?: string;
2902
3003
  /**
2903
- * Balances by currency
3004
+ * Icon emoji
2904
3005
  */
2905
- byCurrency: Array<CurrencyBalanceDto>;
2906
- };
2907
-
2908
- export type PortfolioTrendsResponseDto = {
3006
+ icon?: string;
2909
3007
  /**
2910
- * Time series data points
3008
+ * Recurring frequency
2911
3009
  */
2912
- series: Array<TimeSeriesPointDto>;
3010
+ frequency?:
3011
+ | 'WEEKLY'
3012
+ | 'BIWEEKLY'
3013
+ | 'MONTHLY'
3014
+ | 'BIMONTHLY'
3015
+ | 'QUARTERLY'
3016
+ | 'YEARLY'
3017
+ | 'CUSTOM';
2913
3018
  /**
2914
- * Period summary
3019
+ * Expected amount (positive number)
2915
3020
  */
2916
- summary: TrendSummaryDto;
3021
+ expectedAmount?: number;
2917
3022
  /**
2918
- * Period requested
3023
+ * Expected day of month (1-31)
2919
3024
  */
2920
- period: string;
3025
+ expectedDay?: number;
2921
3026
  /**
2922
- * Data granularity
3027
+ * Currency code
2923
3028
  */
2924
- granularity: string;
3029
+ currency?: string;
2925
3030
  /**
2926
- * Base currency for converted values
3031
+ * Payee matching pattern (supports wildcards)
2927
3032
  */
2928
- currency: string;
3033
+ matchPayeePattern?: string;
2929
3034
  /**
2930
- * Multi-currency time series (each point has currency breakdown)
3035
+ * Amount tolerance percentage (0-1)
2931
3036
  */
2932
- byCurrency?: Array<MultiCurrencyPointDto>;
3037
+ matchAmountTolerance?: number;
2933
3038
  /**
2934
- * Exchange rate warnings
3039
+ * Default expense account for auto-create
2935
3040
  */
2936
- warnings?: Array<ExchangeRateWarningDto>;
2937
- };
2938
-
2939
- export type CashFlowPointDto = {
3041
+ defaultExpenseAccount?: string;
2940
3042
  /**
2941
- * Month key (YYYY-MM)
3043
+ * Default payment account for auto-create
2942
3044
  */
2943
- month: string;
3045
+ defaultPaymentAccount?: string;
2944
3046
  /**
2945
- * Income in base currency (absolute, converted)
3047
+ * Default payee for auto-create
2946
3048
  */
2947
- income: string;
3049
+ defaultPayee?: string;
2948
3050
  /**
2949
- * Expense in base currency (absolute, converted)
3051
+ * Auto-create transaction when expected date arrives
2950
3052
  */
2951
- expense: string;
3053
+ autoCreate?: boolean;
2952
3054
  /**
2953
- * netSavings = income − expense (savings positive)
3055
+ * Rule end date (ISO format)
2954
3056
  */
2955
- netSavings: string;
3057
+ endDate?: string;
3058
+ /**
3059
+ * Custom interval in days
3060
+ */
3061
+ customIntervalDays?: number;
3062
+ /**
3063
+ * Rule active status
3064
+ */
3065
+ isActive?: boolean;
2956
3066
  };
2957
3067
 
2958
- export type CashFlowTrendSummaryDto = {
3068
+ export type ExpectedTransactionRuleDto = {
2959
3069
  /**
2960
- * Total income across the period
3070
+ * Rule name
2961
3071
  */
2962
- totalIncome: string;
3072
+ name: string;
2963
3073
  /**
2964
- * Total expense across the period
3074
+ * Rule icon
2965
3075
  */
2966
- totalExpense: string;
3076
+ icon?: string;
2967
3077
  /**
2968
- * income − expense across the period
3078
+ * Rule frequency
2969
3079
  */
2970
- totalNetSavings: string;
3080
+ frequency: string;
2971
3081
  /**
2972
- * totalNetSavings divided by the window length (N months, incl. zero-filled)
3082
+ * Currency code
2973
3083
  */
2974
- averageMonthlyNetSavings: string;
3084
+ currency: string;
2975
3085
  };
2976
3086
 
2977
- export type CashFlowTrendsResponseDto = {
3087
+ export type ExpectedTransactionResponseDto = {
2978
3088
  /**
2979
- * Monthly cash-flow series (fixed N-month window, zero-filled)
3089
+ * Expected transaction ID
2980
3090
  */
2981
- series: Array<CashFlowPointDto>;
3091
+ id: string;
2982
3092
  /**
2983
- * Period totals
3093
+ * User ID
2984
3094
  */
2985
- summary: CashFlowTrendSummaryDto;
3095
+ userId: string;
2986
3096
  /**
2987
- * Period requested
3097
+ * Associated rule ID
2988
3098
  */
2989
- period: string;
3099
+ ruleId: string;
2990
3100
  /**
2991
- * Data granularity (v1 returns month buckets)
3101
+ * Expected date (YYYY-MM-DD)
2992
3102
  */
2993
- granularity: string;
3103
+ expectedDate: string;
2994
3104
  /**
2995
- * Base currency for converted values
3105
+ * Expected amount
3106
+ */
3107
+ expectedAmount: number;
3108
+ /**
3109
+ * Status (PENDING, COMPLETED, SKIPPED)
2996
3110
  */
2997
- currency: string;
3111
+ status: string;
2998
3112
  /**
2999
- * Exchange rate warnings (e.g. missing rate for a currency)
3113
+ * Matched transaction ID
3000
3114
  */
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 = {
3115
+ matchedTransactionId?: string;
3013
3116
  /**
3014
- * Access token for user verification
3117
+ * Match timestamp (ISO 8601)
3015
3118
  */
3016
- accessToken: string;
3017
- };
3018
-
3019
- export type UserSettingsResponseDto = {
3119
+ matchedAt?: string;
3020
3120
  /**
3021
- * Base currency (ISO 4217) for net-worth/report aggregation. Independent of region (ADR-0006).
3121
+ * Match confidence score (0-1)
3022
3122
  */
3023
- baseCurrency: string | null;
3024
- };
3025
-
3026
- export type UserResponseDto = {
3123
+ matchConfidence?: number;
3027
3124
  /**
3028
- * User ID
3125
+ * Whether this expected transaction is overdue
3029
3126
  */
3030
- id: string;
3127
+ isOverdue: boolean;
3031
3128
  /**
3032
- * Assigned user role
3129
+ * Rule information
3033
3130
  */
3034
- role: string;
3131
+ rule: ExpectedTransactionRuleDto;
3035
3132
  /**
3036
- * Permission strings
3133
+ * Created at timestamp
3037
3134
  */
3038
- permissions: Array<string>;
3135
+ createdAt: string;
3039
3136
  /**
3040
- * User settings
3137
+ * Updated at timestamp
3041
3138
  */
3042
- settings: UserSettingsResponseDto;
3139
+ updatedAt: string;
3043
3140
  };
3044
3141
 
3045
- export type SignupDto = {
3142
+ export type ExpectedTransactionListResponseDto = {
3143
+ items: Array<ExpectedTransactionResponseDto>;
3046
3144
  /**
3047
- * Cloudflare Turnstile verification token (optional when Turnstile disabled)
3145
+ * Total count
3048
3146
  */
3049
- turnstileToken?: string;
3147
+ total: number;
3050
3148
  };
3051
3149
 
3052
- export type SignupResponseDto = {
3053
- /**
3054
- * JWT auth token
3055
- */
3056
- authToken: string;
3057
- /**
3058
- * Auto-generated access token
3059
- */
3060
- accessToken: string;
3150
+ export type ConfirmMatchDto = {
3061
3151
  /**
3062
- * Assigned user role
3152
+ * Transaction ID to match with
3063
3153
  */
3064
- role: 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
3154
+ transactionId: string;
3065
3155
  };
3066
3156
 
3067
- /**
3068
- * Assigned user role
3069
- */
3070
- export type role = 'USER' | 'ADMIN' | 'DEMO' | 'INACTIVE' | 'PAID' | 'OPS';
3071
-
3072
- export type UpdateUserSettingDto = {
3157
+ export type EnterNowDto = {
3073
3158
  /**
3074
- * Security ID
3159
+ * Override expense account (uses rule default if not provided)
3075
3160
  */
3076
- secId?: number;
3161
+ expenseAccount?: string;
3077
3162
  /**
3078
- * Annual interest rate
3163
+ * Override payment account (uses rule default if not provided)
3079
3164
  */
3080
- annualInterestRate?: number;
3165
+ paymentAccount?: string;
3081
3166
  /**
3082
- * Currency code
3167
+ * Override amount (uses expected amount if not provided)
3083
3168
  */
3084
- currency?: string;
3169
+ amount?: number;
3085
3170
  /**
3086
- * Base currency code
3171
+ * Override payee (uses rule default if not provided)
3087
3172
  */
3088
- baseCurrency?: string;
3173
+ payee?: string;
3089
3174
  /**
3090
- * Benchmark symbol
3175
+ * Optional narration
3091
3176
  */
3092
- benchmark?: string;
3177
+ narration?: string;
3178
+ };
3179
+
3180
+ export type ForecastItemDto = {
3093
3181
  /**
3094
- * Color scheme
3182
+ * Rule name
3095
3183
  */
3096
- colorScheme?: 'DARK' | 'LIGHT';
3184
+ rule: string;
3097
3185
  /**
3098
- * Date range filter
3186
+ * Rule ID
3099
3187
  */
3100
- dateRange?: string;
3188
+ ruleId: string;
3101
3189
  /**
3102
- * Emergency fund amount
3190
+ * Expected amount
3103
3191
  */
3104
- emergencyFund?: number;
3192
+ amount: number;
3105
3193
  /**
3106
- * Account filter IDs
3194
+ * Expected date (YYYY-MM-DD)
3107
3195
  */
3108
- 'filters.accounts'?: Array<string>;
3196
+ date: string;
3109
3197
  /**
3110
- * Asset class filters
3198
+ * Rule icon emoji
3111
3199
  */
3112
- 'filters.assetClasses'?: Array<string>;
3200
+ icon: string | null;
3113
3201
  /**
3114
- * Data source filter
3202
+ * Currency code
3115
3203
  */
3116
- 'filters.dataSource'?: string;
3204
+ currency: string;
3205
+ };
3206
+
3207
+ export type MonthlyForecastDto = {
3117
3208
  /**
3118
- * Symbol filter
3209
+ * Month (YYYY-MM)
3119
3210
  */
3120
- 'filters.symbol'?: string;
3211
+ month: string;
3121
3212
  /**
3122
- * Tag filters
3213
+ * Total expected outflow for the month
3123
3214
  */
3124
- 'filters.tags'?: Array<string>;
3215
+ expectedOutflow: number;
3125
3216
  /**
3126
- * Enable experimental features
3217
+ * Number of expected transactions
3127
3218
  */
3128
- isExperimentalFeatures?: boolean;
3219
+ itemCount: number;
3129
3220
  /**
3130
- * Enable restricted view mode
3221
+ * Breakdown by currency
3131
3222
  */
3132
- isRestrictedView?: boolean;
3223
+ byCurrency: {
3224
+ [key: string]: unknown;
3225
+ };
3133
3226
  /**
3134
- * Language code
3227
+ * Individual forecast items
3135
3228
  */
3136
- language?: string;
3229
+ items: Array<ForecastItemDto>;
3230
+ };
3231
+
3232
+ export type ForecastResponseDto = {
3137
3233
  /**
3138
- * Locale code
3234
+ * Monthly forecast data
3139
3235
  */
3140
- locale?: string;
3236
+ forecast: Array<MonthlyForecastDto>;
3141
3237
  /**
3142
- * Projected total amount
3238
+ * Total expected outflow across all months
3143
3239
  */
3144
- projectedTotalAmount?: number;
3240
+ totalOutflow: number;
3145
3241
  /**
3146
- * Retirement date in ISO 8601 format
3242
+ * Total by currency across all months
3147
3243
  */
3148
- retirementDate?: string;
3244
+ totalByCurrency: {
3245
+ [key: string]: unknown;
3246
+ };
3149
3247
  /**
3150
- * Savings rate percentage
3248
+ * Number of active recurring rules included
3151
3249
  */
3152
- savingsRate?: number;
3250
+ rulesCount: number;
3153
3251
  /**
3154
- * View mode
3252
+ * Forecast period start date
3155
3253
  */
3156
- viewMode?: 'DEFAULT' | 'ZEN';
3157
- };
3158
-
3159
- /**
3160
- * Color scheme
3161
- */
3162
- export type colorScheme = 'DARK' | 'LIGHT';
3163
-
3164
- /**
3165
- * View mode
3166
- */
3167
- export type viewMode = 'DEFAULT' | 'ZEN';
3168
-
3169
- export type UpdatePropertyDto = {
3254
+ periodStart: string;
3170
3255
  /**
3171
- * Property value
3256
+ * Forecast period end date
3172
3257
  */
3173
- value: string;
3258
+ periodEnd: string;
3174
3259
  };
3175
3260
 
3176
3261
  export type CreateTransactionRuleDto = {
@@ -3489,14 +3574,14 @@ export type UpdateTransactionRuleDto = {
3489
3574
  */
3490
3575
  amountMax?: number;
3491
3576
  priority?: number;
3492
- /**
3493
- * Enable or disable the rule
3494
- */
3495
- enabled?: boolean;
3496
3577
  additionalTags?: Array<unknown[]>;
3497
3578
  additionalMetadata?: {
3498
3579
  [key: string]: unknown;
3499
3580
  };
3581
+ /**
3582
+ * Enable or disable the rule
3583
+ */
3584
+ enabled?: boolean;
3500
3585
  };
3501
3586
 
3502
3587
  export type TestRuleDto = {
@@ -4355,11 +4440,28 @@ export type ProcessNlpDto = {
4355
4440
  */
4356
4441
  selectedRuleId?: string;
4357
4442
  /**
4358
- * 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.
4443
+ * confirm_account echo-back: account path selected from the prior confirm_account response (suggestedAccount, similarAccounts[i].path, or a typed path). Applied directly when the session is confirming_account — no NL re-parse.
4359
4444
  */
4360
4445
  selectedAccount?: string;
4446
+ /**
4447
+ * Viewpoint account hint: the beancount path the user drilled into (e.g. from an account drill-down). Tie-break only — never overrides accounts resolved from the text. Must be an owned, OPEN Assets:/Liabilities: account; unresolvable hints are silently ignored.
4448
+ */
4449
+ viewpointAccount?: string;
4450
+ /**
4451
+ * Viewpoint category hint: the ADR-0075 Group segment the user drilled into (e.g. 'Food'). Resolved to a concrete OPEN account in that group; tie-break only — never overrides a category resolved from the text.
4452
+ */
4453
+ viewpointCategory?: string;
4454
+ /**
4455
+ * Companion flow root for viewpointCategory ('income' | 'expense'), mirroring the ADR-0126 list-endpoint invariant. Derived from the session's routed intent (multi-turn) when absent; a first-turn flow-less category hint is dropped — send the flow explicitly.
4456
+ */
4457
+ viewpointFlow?: 'income' | 'expense';
4361
4458
  };
4362
4459
 
4460
+ /**
4461
+ * Companion flow root for viewpointCategory ('income' | 'expense'), mirroring the ADR-0126 list-endpoint invariant. Derived from the session's routed intent (multi-turn) when absent; a first-turn flow-less category hint is dropped — send the flow explicitly.
4462
+ */
4463
+ export type viewpointFlow = 'income' | 'expense';
4464
+
4363
4465
  export type NlpTransactionInfoDto = {
4364
4466
  /**
4365
4467
  * Transaction ID
@@ -4585,6 +4687,17 @@ export type NlpRuleConfirmationDataDto = {
4585
4687
  reasons: Array<string>;
4586
4688
  };
4587
4689
 
4690
+ export type NlpAccountCandidateDto = {
4691
+ /**
4692
+ * Canonical beancount account path (echo back on selection)
4693
+ */
4694
+ path: string;
4695
+ /**
4696
+ * Localized display name (ADR-0114 read-time projection, user locale)
4697
+ */
4698
+ name: string;
4699
+ };
4700
+
4588
4701
  export type NlpAccountConfirmationDataDto = {
4589
4702
  /**
4590
4703
  * The invalid account name
@@ -4595,9 +4708,9 @@ export type NlpAccountConfirmationDataDto = {
4595
4708
  */
4596
4709
  suggestedAccount?: string;
4597
4710
  /**
4598
- * Similar accounts for user selection
4711
+ * Similar accounts for user selection (path + localized name, #680)
4599
4712
  */
4600
- similarAccounts: Array<string>;
4713
+ similarAccounts: Array<NlpAccountCandidateDto>;
4601
4714
  /**
4602
4715
  * Error message explaining the issue
4603
4716
  */
@@ -4781,7 +4894,12 @@ export type NlpResponseDto = {
4781
4894
  /**
4782
4895
  * Asset sub-type (only present when intent is "asset"). Determines which asset-related form to render.
4783
4896
  */
4784
- assetSubType?: 'transfer' | 'banking' | 'investment';
4897
+ assetSubType?:
4898
+ | 'transfer'
4899
+ | 'banking'
4900
+ | 'investment'
4901
+ | 'lend'
4902
+ | 'lend_collect';
4785
4903
  /**
4786
4904
  * Liability sub-type (only present when intent is "liability"). borrow: borrowing money (Liabilities → Assets), repay: repaying debt (Assets → Liabilities).
4787
4905
  */
@@ -4898,7 +5016,12 @@ export type intent = 'expense' | 'asset' | 'income' | 'liability' | 'equity';
4898
5016
  /**
4899
5017
  * Asset sub-type (only present when intent is "asset"). Determines which asset-related form to render.
4900
5018
  */
4901
- export type assetSubType = 'transfer' | 'banking' | 'investment';
5019
+ export type assetSubType =
5020
+ | 'transfer'
5021
+ | 'banking'
5022
+ | 'investment'
5023
+ | 'lend'
5024
+ | 'lend_collect';
4902
5025
 
4903
5026
  /**
4904
5027
  * Liability sub-type (only present when intent is "liability"). borrow: borrowing money (Liabilities → Assets), repay: repaying debt (Assets → Liabilities).
@@ -4963,7 +5086,7 @@ export type PlatformListItemDto = {
4963
5086
  /**
4964
5087
  * Platform type
4965
5088
  */
4966
- export type type3 =
5089
+ export type type4 =
4967
5090
  | 'BANK'
4968
5091
  | 'BROKERAGE'
4969
5092
  | 'CRYPTO_EXCHANGE'
@@ -5047,6 +5170,55 @@ export type PlatformMatchResponseDto = {
5047
5170
  */
5048
5171
  export type matchType2 = 'none' | 'exact' | 'prefix' | 'substring';
5049
5172
 
5173
+ export type PlatformStandardsPlatformDto = {
5174
+ /**
5175
+ * Global platform ID
5176
+ */
5177
+ id: string;
5178
+ /**
5179
+ * Platform name (e.g., "ICBC")
5180
+ */
5181
+ name: string;
5182
+ /**
5183
+ * Canonical identifier in ACCOUNT_RE format (e.g., "icbc")
5184
+ */
5185
+ canonical: string;
5186
+ /**
5187
+ * Suggested path segment — canonical PascalCased per hyphen-part, hyphens preserved (e.g. "Apple-Pay")
5188
+ */
5189
+ suggestedSegment: string;
5190
+ /**
5191
+ * Platform type
5192
+ */
5193
+ type:
5194
+ | 'BANK'
5195
+ | 'BROKERAGE'
5196
+ | 'CRYPTO_EXCHANGE'
5197
+ | 'PAYMENT'
5198
+ | 'INVESTMENT'
5199
+ | 'INSURANCE'
5200
+ | 'OTHER';
5201
+ /**
5202
+ * Region-aware category (institution vocab, e.g. DigitalWallet/Bank) resolved against the final region. null = no region-aware suggestion; fall back to type.
5203
+ */
5204
+ category: string | null;
5205
+ };
5206
+
5207
+ export type PlatformStandardsResponseDto = {
5208
+ /**
5209
+ * The selected platform (institution lock source)
5210
+ */
5211
+ platform: PlatformStandardsPlatformDto;
5212
+ /**
5213
+ * Resolved template region (ISO 3166-1 alpha-2, UPPERCASE): the platform's own countryCode when set, else the region query param. For regions without a regional template file the template list falls back to the universal-only catalog while region still echoes the code.
5214
+ */
5215
+ region: string;
5216
+ /**
5217
+ * Candidate account-standard templates of the resolved region (groupable by productCategory client-side)
5218
+ */
5219
+ templates: Array<AccountStandardResponseDto>;
5220
+ };
5221
+
5050
5222
  export type CreatePlatformDto = {
5051
5223
  /**
5052
5224
  * Platform name
@@ -5243,11 +5415,11 @@ export type PlatformGroupDto = {
5243
5415
  */
5244
5416
  platformName: string;
5245
5417
  /**
5246
- * Accounts within this platform
5418
+ * Accounts within this platform (Assets and Liabilities rows, #696)
5247
5419
  */
5248
5420
  accounts: Array<AccountItemDto>;
5249
5421
  /**
5250
- * FX-converted total balance in base currency
5422
+ * FX-converted total balance in base currency (nets Assets + Liabilities rows; can be negative)
5251
5423
  */
5252
5424
  totalBalance: string;
5253
5425
  /**
@@ -5259,7 +5431,7 @@ export type PlatformGroupDto = {
5259
5431
  */
5260
5432
  convertedBalance?: string;
5261
5433
  /**
5262
- * Share of the grand converted total (0-100); 0 when grand total is 0
5434
+ * Share of the converted asset-side grand total (0-100); liability balances are excluded from the basis; 0 when grand total is 0 (#696)
5263
5435
  */
5264
5436
  sharePct: number;
5265
5437
  };
@@ -5285,7 +5457,7 @@ export type AccountExchangeRateWarningDto = {
5285
5457
 
5286
5458
  export type AccountsSummaryDto = {
5287
5459
  /**
5288
- * Total number of accounts
5460
+ * Total number of accounts (balance sheet: Assets + Liabilities, #696)
5289
5461
  */
5290
5462
  totalAccounts: number;
5291
5463
  /**
@@ -5637,9 +5809,7 @@ export type MonetaryDto = {
5637
5809
  /**
5638
5810
  * Converted to user base currency (Decimal string)
5639
5811
  */
5640
- baseCcyEquivalent?: {
5641
- [key: string]: unknown;
5642
- } | null;
5812
+ baseCcyEquivalent?: string | null;
5643
5813
  };
5644
5814
 
5645
5815
  export type CurrentPriceDto = {
@@ -5691,15 +5861,11 @@ export type HoldingPnlRowDto = {
5691
5861
  /**
5692
5862
  * Account settlement currency (ISO 4217), from cost currency
5693
5863
  */
5694
- accountCcy?: {
5695
- [key: string]: unknown;
5696
- } | null;
5864
+ accountCcy?: string | null;
5697
5865
  /**
5698
5866
  * Broker type derived from Platform.type
5699
5867
  */
5700
- brokerType?: {
5701
- [key: string]: unknown;
5702
- } | null;
5868
+ brokerType?: string | null;
5703
5869
  /**
5704
5870
  * Commodity symbol
5705
5871
  */
@@ -5709,9 +5875,7 @@ export type HoldingPnlRowDto = {
5709
5875
  */
5710
5876
  chartToken: 'equity' | 'fund' | 'bond' | 'cash' | 'other';
5711
5877
  assetClass: string;
5712
- assetSubClass?: {
5713
- [key: string]: unknown;
5714
- } | null;
5878
+ assetSubClass?: string | null;
5715
5879
  /**
5716
5880
  * Net held units (Decimal string)
5717
5881
  */
@@ -5735,15 +5899,11 @@ export type HoldingPnlRowDto = {
5735
5899
  /**
5736
5900
  * Unrealized P&L in base currency (Decimal string); null when any FX/price missing
5737
5901
  */
5738
- unrealizedPnlBase?: {
5739
- [key: string]: unknown;
5740
- } | null;
5902
+ unrealizedPnlBase?: string | null;
5741
5903
  /**
5742
5904
  * Unrealized P&L % (Decimal string)
5743
5905
  */
5744
- unrealizedPnlPct?: {
5745
- [key: string]: unknown;
5746
- } | null;
5906
+ unrealizedPnlPct?: string | null;
5747
5907
  /**
5748
5908
  * Historical FX rate applied to cost basis
5749
5909
  */
@@ -5755,9 +5915,7 @@ export type HoldingPnlRowDto = {
5755
5915
  /**
5756
5916
  * Share of invested assets % (Decimal string); only for invested chartTokens
5757
5917
  */
5758
- pctOfInvestedAssets?: {
5759
- [key: string]: unknown;
5760
- } | null;
5918
+ pctOfInvestedAssets?: string | null;
5761
5919
  /**
5762
5920
  * Cumulative realized P&L on sold lots (asOf-date cutoff); null when the method has no applicable sells, a sell lacks a price, or any required FX rate is missing (never-mix). When a sell spans multiple currencies (cross-currency sale), amount and currency reflect the base currency; baseCcyEquivalent is always the authoritative dual-FX figure
5763
5921
  */
@@ -5781,21 +5939,15 @@ export type HoldingPnlWarningDto = {
5781
5939
  | 'OVERSOLD_LOTS'
5782
5940
  | 'NO_PRICE'
5783
5941
  | 'MIXED_COST_CURRENCY';
5784
- symbol?: {
5785
- [key: string]: unknown;
5786
- } | null;
5787
- accountId?: {
5788
- [key: string]: unknown;
5789
- } | null;
5790
- currency?: {
5791
- [key: string]: unknown;
5792
- } | null;
5942
+ symbol?: string | null;
5943
+ accountId?: string | null;
5944
+ currency?: string | null;
5793
5945
  };
5794
5946
 
5795
5947
  /**
5796
5948
  * Warning type
5797
5949
  */
5798
- export type type4 =
5950
+ export type type5 =
5799
5951
  | 'MISSING_COST_FX_RATE'
5800
5952
  | 'MISSING_MARKET_FX_RATE'
5801
5953
  | 'MISSING_SALE_PRICE'
@@ -5834,132 +5986,205 @@ export type AnonymousLoginResponseDto = {
5834
5986
  authToken: string;
5835
5987
  };
5836
5988
 
5989
+ export type ParserContributionMetaDto = {
5990
+ /**
5991
+ * Institution slug (lowercase kebab-case)
5992
+ */
5993
+ institution: string;
5994
+ region:
5995
+ | 'cn'
5996
+ | 'us'
5997
+ | 'de'
5998
+ | 'fr'
5999
+ | 'gb'
6000
+ | 'hk'
6001
+ | 'jp'
6002
+ | 'sg'
6003
+ | 'au'
6004
+ | 'ca'
6005
+ | 'other';
6006
+ accountType: 'checking' | 'savings' | 'credit' | 'debit' | 'investment';
6007
+ format: 'csv' | 'xlsx' | 'pdf' | 'ofx' | 'qif';
6008
+ institutionDisplayName?: string;
6009
+ encoding?: string;
6010
+ /**
6011
+ * CSV delimiter character: ",", ";", "\t" or "|"
6012
+ */
6013
+ delimiter?: string;
6014
+ /**
6015
+ * Header row count; the client omits the field when it is 1
6016
+ */
6017
+ headerRows?: number;
6018
+ notes?: string;
6019
+ };
6020
+
6021
+ export type region =
6022
+ | 'cn'
6023
+ | 'us'
6024
+ | 'de'
6025
+ | 'fr'
6026
+ | 'gb'
6027
+ | 'hk'
6028
+ | 'jp'
6029
+ | 'sg'
6030
+ | 'au'
6031
+ | 'ca'
6032
+ | 'other';
6033
+
6034
+ export type accountType =
6035
+ | 'checking'
6036
+ | 'savings'
6037
+ | 'credit'
6038
+ | 'debit'
6039
+ | 'investment';
6040
+
6041
+ export type format = 'csv' | 'xlsx' | 'pdf' | 'ofx' | 'qif';
6042
+
6043
+ export type ParserContributionSamplesDto = {
6044
+ /**
6045
+ * Client-sanitized sample rows (key = column name, value = cell)
6046
+ */
6047
+ rows: Array<{
6048
+ [key: string]: unknown;
6049
+ }>;
6050
+ rawHeaders?: Array<string>;
6051
+ };
6052
+
6053
+ export type FieldHintDto = {
6054
+ columnName: string;
6055
+ /**
6056
+ * Date format, e.g. yyyy-MM-dd HH:mm
6057
+ */
6058
+ format?: string;
6059
+ signConvention?: 'negative-expense' | 'positive-expense' | 'separate-columns';
6060
+ creditColumn?: string;
6061
+ debitColumn?: string;
6062
+ };
6063
+
6064
+ export type signConvention =
6065
+ | 'negative-expense'
6066
+ | 'positive-expense'
6067
+ | 'separate-columns';
6068
+
6069
+ export type ParserContributionFieldHintsDto = {
6070
+ date: FieldHintDto;
6071
+ amount: FieldHintDto;
6072
+ description?: FieldHintDto;
6073
+ balance?: FieldHintDto;
6074
+ payee?: FieldHintDto;
6075
+ reference?: FieldHintDto;
6076
+ category?: FieldHintDto;
6077
+ };
6078
+
6079
+ export type ExpectedTransactionDto = {
6080
+ date: string;
6081
+ amount: number;
6082
+ description: string;
6083
+ payee?: string;
6084
+ category?: string;
6085
+ };
6086
+
6087
+ export type ParserContributionExamplesDto = {
6088
+ expectedTransactions: Array<ExpectedTransactionDto>;
6089
+ };
6090
+
6091
+ export type ParserContributionRequestDto = {
6092
+ meta: ParserContributionMetaDto;
6093
+ samples: ParserContributionSamplesDto;
6094
+ fieldHints: ParserContributionFieldHintsDto;
6095
+ /**
6096
+ * Omitted entirely by the client when empty
6097
+ */
6098
+ examples?: ParserContributionExamplesDto;
6099
+ };
6100
+
6101
+ export type ParserContributionRelayResponseDto = {
6102
+ issueUrl: string;
6103
+ issueNumber: number;
6104
+ };
6105
+
5837
6106
  export type SymbolSearchResultDto = {
5838
6107
  symbol: string;
5839
- name?: {
5840
- [key: string]: unknown;
5841
- } | null;
5842
- exchange?: {
5843
- [key: string]: unknown;
5844
- } | null;
6108
+ name?: string | null;
6109
+ exchange?: string | null;
5845
6110
  /**
5846
6111
  * OpenBB asset_type (e.g. stock, etf)
5847
6112
  */
5848
- assetType?: {
5849
- [key: string]: unknown;
5850
- } | null;
6113
+ assetType?: string | null;
5851
6114
  /**
5852
6115
  * IGN asset class (region.types.ts ASSET_CLASSES)
5853
6116
  */
5854
- assetClass?: {
5855
- [key: string]: unknown;
5856
- } | null;
6117
+ assetClass?: string | null;
5857
6118
  /**
5858
6119
  * IGN asset sub-class (region.types.ts ASSET_SUB_CLASSES)
5859
6120
  */
5860
- assetSubClass?: {
5861
- [key: string]: unknown;
5862
- } | null;
6121
+ assetSubClass?: string | null;
5863
6122
  /**
5864
6123
  * Trading currency (extra_data or inferred from exchange)
5865
6124
  */
5866
- currency?: {
5867
- [key: string]: unknown;
5868
- } | null;
6125
+ currency?: string | null;
5869
6126
  };
5870
6127
 
5871
6128
  export type SymbolQuoteDto = {
5872
6129
  symbol?: string;
5873
- name?: {
5874
- [key: string]: unknown;
5875
- } | null;
5876
- exchange?: {
5877
- [key: string]: unknown;
5878
- } | null;
6130
+ name?: string | null;
6131
+ exchange?: string | null;
5879
6132
  /**
5880
6133
  * OpenBB asset_type
5881
6134
  */
5882
- assetType?: {
5883
- [key: string]: unknown;
5884
- } | null;
6135
+ assetType?: string | null;
5885
6136
  /**
5886
6137
  * IGN asset class
5887
6138
  */
5888
- assetClass?: {
5889
- [key: string]: unknown;
5890
- } | null;
6139
+ assetClass?: string | null;
5891
6140
  /**
5892
6141
  * IGN asset sub-class
5893
6142
  */
5894
- assetSubClass?: {
5895
- [key: string]: unknown;
5896
- } | null;
6143
+ assetSubClass?: string | null;
5897
6144
  /**
5898
6145
  * Trading currency (extra_data or inferred from exchange)
5899
6146
  */
5900
- currency?: {
5901
- [key: string]: unknown;
5902
- } | null;
6147
+ currency?: string | null;
5903
6148
  /**
5904
6149
  * Latest price (Decimal string)
5905
6150
  */
5906
- price?: {
5907
- [key: string]: unknown;
5908
- } | null;
6151
+ price?: string | null;
5909
6152
  /**
5910
6153
  * Date the price was observed (ISO yyyy-MM-dd)
5911
6154
  */
5912
- priceDate?: {
5913
- [key: string]: unknown;
5914
- } | null;
6155
+ priceDate?: string | null;
5915
6156
  /**
5916
6157
  * 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.
5917
6158
  */
5918
- changePercent?: {
5919
- [key: string]: unknown;
5920
- } | null;
6159
+ changePercent?: number | null;
5921
6160
  /**
5922
6161
  * Previous close (Decimal string)
5923
6162
  */
5924
- prevClose?: {
5925
- [key: string]: unknown;
5926
- } | null;
6163
+ prevClose?: string | null;
5927
6164
  /**
5928
6165
  * Day open (Decimal string)
5929
6166
  */
5930
- open?: {
5931
- [key: string]: unknown;
5932
- } | null;
6167
+ open?: string | null;
5933
6168
  /**
5934
6169
  * Day high (Decimal string)
5935
6170
  */
5936
- high?: {
5937
- [key: string]: unknown;
5938
- } | null;
6171
+ high?: string | null;
5939
6172
  /**
5940
6173
  * Day low (Decimal string)
5941
6174
  */
5942
- low?: {
5943
- [key: string]: unknown;
5944
- } | null;
6175
+ low?: string | null;
5945
6176
  /**
5946
6177
  * Day volume (Decimal string)
5947
6178
  */
5948
- volume?: {
5949
- [key: string]: unknown;
5950
- } | null;
6179
+ volume?: string | null;
5951
6180
  /**
5952
6181
  * 52-week high (Decimal string)
5953
6182
  */
5954
- yearHigh?: {
5955
- [key: string]: unknown;
5956
- } | null;
6183
+ yearHigh?: string | null;
5957
6184
  /**
5958
6185
  * 52-week low (Decimal string)
5959
6186
  */
5960
- yearLow?: {
5961
- [key: string]: unknown;
5962
- } | null;
6187
+ yearLow?: string | null;
5963
6188
  };
5964
6189
 
5965
6190
  export type AccountControllerCreateData = {
@@ -6290,7 +6515,7 @@ export type AccountControllerAddOpeningBalanceResponse =
6290
6515
 
6291
6516
  export type AccountStandardsControllerGetTemplatesData = {
6292
6517
  /**
6293
- * Region code (cn, us, de)
6518
+ * Region code (any ISO alpha-2; not-yet-open codes return the universal-only catalog)
6294
6519
  */
6295
6520
  region:
6296
6521
  | 'ad'
@@ -6300,26 +6525,192 @@ export type AccountStandardsControllerGetTemplatesData = {
6300
6525
  | 'al'
6301
6526
  | 'am'
6302
6527
  | 'ao'
6528
+ | 'ar'
6529
+ | 'at'
6303
6530
  | 'au'
6531
+ | 'az'
6532
+ | 'ba'
6533
+ | 'bb'
6534
+ | 'bd'
6535
+ | 'be'
6536
+ | 'bf'
6537
+ | 'bg'
6538
+ | 'bh'
6539
+ | 'bi'
6540
+ | 'bj'
6541
+ | 'bn'
6542
+ | 'bo'
6304
6543
  | 'br'
6544
+ | 'bs'
6545
+ | 'bt'
6546
+ | 'bw'
6547
+ | 'by'
6548
+ | 'bz'
6305
6549
  | 'ca'
6550
+ | 'cd'
6551
+ | 'cf'
6552
+ | 'cg'
6553
+ | 'ch'
6554
+ | 'ci'
6555
+ | 'cl'
6556
+ | 'cm'
6306
6557
  | 'cn'
6558
+ | 'co'
6559
+ | 'cr'
6560
+ | 'cu'
6561
+ | 'cv'
6562
+ | 'cy'
6563
+ | 'cz'
6307
6564
  | 'de'
6565
+ | 'dj'
6566
+ | 'dk'
6567
+ | 'dm'
6568
+ | 'do'
6308
6569
  | 'dz'
6570
+ | 'ec'
6571
+ | 'ee'
6572
+ | 'eg'
6573
+ | 'er'
6309
6574
  | 'es'
6575
+ | 'et'
6576
+ | 'fj'
6577
+ | 'fm'
6310
6578
  | 'fr'
6579
+ | 'ga'
6311
6580
  | 'gb'
6581
+ | 'gd'
6582
+ | 'ge'
6583
+ | 'gh'
6584
+ | 'gm'
6585
+ | 'gn'
6586
+ | 'gq'
6587
+ | 'gr'
6588
+ | 'gt'
6589
+ | 'gw'
6590
+ | 'gy'
6312
6591
  | 'hk'
6592
+ | 'hn'
6593
+ | 'hr'
6594
+ | 'ht'
6595
+ | 'hu'
6596
+ | 'id'
6597
+ | 'ie'
6598
+ | 'il'
6313
6599
  | 'in'
6600
+ | 'iq'
6601
+ | 'ir'
6602
+ | 'is'
6314
6603
  | 'it'
6604
+ | 'jm'
6605
+ | 'jo'
6315
6606
  | 'jp'
6607
+ | 'ke'
6608
+ | 'kg'
6609
+ | 'kh'
6610
+ | 'ki'
6611
+ | 'km'
6612
+ | 'kn'
6316
6613
  | 'kr'
6614
+ | 'kw'
6615
+ | 'kz'
6616
+ | 'la'
6617
+ | 'lb'
6618
+ | 'lc'
6619
+ | 'li'
6620
+ | 'lk'
6621
+ | 'lr'
6622
+ | 'ls'
6623
+ | 'lt'
6624
+ | 'lu'
6625
+ | 'lv'
6626
+ | 'ly'
6627
+ | 'ma'
6628
+ | 'mc'
6629
+ | 'md'
6630
+ | 'me'
6631
+ | 'mg'
6632
+ | 'mh'
6633
+ | 'mk'
6634
+ | 'ml'
6635
+ | 'mm'
6636
+ | 'mn'
6637
+ | 'mr'
6638
+ | 'mt'
6639
+ | 'mu'
6640
+ | 'mv'
6641
+ | 'mw'
6642
+ | 'mx'
6643
+ | 'mz'
6644
+ | 'na'
6645
+ | 'ne'
6646
+ | 'ng'
6647
+ | 'ni'
6317
6648
  | 'nl'
6649
+ | 'no'
6650
+ | 'np'
6651
+ | 'nr'
6652
+ | 'nz'
6653
+ | 'om'
6654
+ | 'pa'
6655
+ | 'pe'
6656
+ | 'pg'
6657
+ | 'ph'
6658
+ | 'pk'
6659
+ | 'pl'
6660
+ | 'ps'
6661
+ | 'pt'
6662
+ | 'pw'
6663
+ | 'py'
6664
+ | 'qa'
6665
+ | 'ro'
6666
+ | 'rs'
6667
+ | 'ru'
6668
+ | 'rw'
6669
+ | 'sa'
6670
+ | 'sb'
6671
+ | 'sc'
6672
+ | 'sd'
6673
+ | 'se'
6318
6674
  | 'sg'
6675
+ | 'sl'
6676
+ | 'sm'
6677
+ | 'sn'
6678
+ | 'so'
6679
+ | 'sr'
6680
+ | 'st'
6681
+ | 'sv'
6682
+ | 'sy'
6683
+ | 'sz'
6684
+ | 'td'
6685
+ | 'tg'
6686
+ | 'th'
6687
+ | 'tj'
6688
+ | 'tl'
6689
+ | 'tm'
6690
+ | 'tn'
6691
+ | 'to'
6692
+ | 'tr'
6693
+ | 'tt'
6694
+ | 'tv'
6319
6695
  | 'tw'
6320
- | 'us';
6321
- /**
6322
- * Search term for path or description
6696
+ | 'tz'
6697
+ | 'ua'
6698
+ | 'ug'
6699
+ | 'us'
6700
+ | 'uy'
6701
+ | 'uz'
6702
+ | 'va'
6703
+ | 'vc'
6704
+ | 've'
6705
+ | 'vn'
6706
+ | 'vu'
6707
+ | 'ws'
6708
+ | 'ye'
6709
+ | 'za'
6710
+ | 'zm'
6711
+ | 'zw';
6712
+ /**
6713
+ * Search term for path, description, aliases, or localized display name
6323
6714
  */
6324
6715
  search?: string;
6325
6716
  /**
@@ -6337,7 +6728,7 @@ export type AccountStandardsControllerGetTemplateMetadataData = {
6337
6728
  */
6338
6729
  path: string;
6339
6730
  /**
6340
- * Region code for tenant context
6731
+ * Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
6341
6732
  */
6342
6733
  region:
6343
6734
  | 'ad'
@@ -6347,24 +6738,190 @@ export type AccountStandardsControllerGetTemplateMetadataData = {
6347
6738
  | 'al'
6348
6739
  | 'am'
6349
6740
  | 'ao'
6741
+ | 'ar'
6742
+ | 'at'
6350
6743
  | 'au'
6744
+ | 'az'
6745
+ | 'ba'
6746
+ | 'bb'
6747
+ | 'bd'
6748
+ | 'be'
6749
+ | 'bf'
6750
+ | 'bg'
6751
+ | 'bh'
6752
+ | 'bi'
6753
+ | 'bj'
6754
+ | 'bn'
6755
+ | 'bo'
6351
6756
  | 'br'
6757
+ | 'bs'
6758
+ | 'bt'
6759
+ | 'bw'
6760
+ | 'by'
6761
+ | 'bz'
6352
6762
  | 'ca'
6763
+ | 'cd'
6764
+ | 'cf'
6765
+ | 'cg'
6766
+ | 'ch'
6767
+ | 'ci'
6768
+ | 'cl'
6769
+ | 'cm'
6353
6770
  | 'cn'
6771
+ | 'co'
6772
+ | 'cr'
6773
+ | 'cu'
6774
+ | 'cv'
6775
+ | 'cy'
6776
+ | 'cz'
6354
6777
  | 'de'
6778
+ | 'dj'
6779
+ | 'dk'
6780
+ | 'dm'
6781
+ | 'do'
6355
6782
  | 'dz'
6783
+ | 'ec'
6784
+ | 'ee'
6785
+ | 'eg'
6786
+ | 'er'
6356
6787
  | 'es'
6788
+ | 'et'
6789
+ | 'fj'
6790
+ | 'fm'
6357
6791
  | 'fr'
6792
+ | 'ga'
6358
6793
  | 'gb'
6794
+ | 'gd'
6795
+ | 'ge'
6796
+ | 'gh'
6797
+ | 'gm'
6798
+ | 'gn'
6799
+ | 'gq'
6800
+ | 'gr'
6801
+ | 'gt'
6802
+ | 'gw'
6803
+ | 'gy'
6359
6804
  | 'hk'
6805
+ | 'hn'
6806
+ | 'hr'
6807
+ | 'ht'
6808
+ | 'hu'
6809
+ | 'id'
6810
+ | 'ie'
6811
+ | 'il'
6360
6812
  | 'in'
6813
+ | 'iq'
6814
+ | 'ir'
6815
+ | 'is'
6361
6816
  | 'it'
6817
+ | 'jm'
6818
+ | 'jo'
6362
6819
  | 'jp'
6820
+ | 'ke'
6821
+ | 'kg'
6822
+ | 'kh'
6823
+ | 'ki'
6824
+ | 'km'
6825
+ | 'kn'
6363
6826
  | 'kr'
6827
+ | 'kw'
6828
+ | 'kz'
6829
+ | 'la'
6830
+ | 'lb'
6831
+ | 'lc'
6832
+ | 'li'
6833
+ | 'lk'
6834
+ | 'lr'
6835
+ | 'ls'
6836
+ | 'lt'
6837
+ | 'lu'
6838
+ | 'lv'
6839
+ | 'ly'
6840
+ | 'ma'
6841
+ | 'mc'
6842
+ | 'md'
6843
+ | 'me'
6844
+ | 'mg'
6845
+ | 'mh'
6846
+ | 'mk'
6847
+ | 'ml'
6848
+ | 'mm'
6849
+ | 'mn'
6850
+ | 'mr'
6851
+ | 'mt'
6852
+ | 'mu'
6853
+ | 'mv'
6854
+ | 'mw'
6855
+ | 'mx'
6856
+ | 'mz'
6857
+ | 'na'
6858
+ | 'ne'
6859
+ | 'ng'
6860
+ | 'ni'
6364
6861
  | 'nl'
6862
+ | 'no'
6863
+ | 'np'
6864
+ | 'nr'
6865
+ | 'nz'
6866
+ | 'om'
6867
+ | 'pa'
6868
+ | 'pe'
6869
+ | 'pg'
6870
+ | 'ph'
6871
+ | 'pk'
6872
+ | 'pl'
6873
+ | 'ps'
6874
+ | 'pt'
6875
+ | 'pw'
6876
+ | 'py'
6877
+ | 'qa'
6878
+ | 'ro'
6879
+ | 'rs'
6880
+ | 'ru'
6881
+ | 'rw'
6882
+ | 'sa'
6883
+ | 'sb'
6884
+ | 'sc'
6885
+ | 'sd'
6886
+ | 'se'
6365
6887
  | 'sg'
6888
+ | 'sl'
6889
+ | 'sm'
6890
+ | 'sn'
6891
+ | 'so'
6892
+ | 'sr'
6893
+ | 'st'
6894
+ | 'sv'
6895
+ | 'sy'
6896
+ | 'sz'
6897
+ | 'td'
6898
+ | 'tg'
6899
+ | 'th'
6900
+ | 'tj'
6901
+ | 'tl'
6902
+ | 'tm'
6903
+ | 'tn'
6904
+ | 'to'
6905
+ | 'tr'
6906
+ | 'tt'
6907
+ | 'tv'
6366
6908
  | 'tw'
6367
- | 'us';
6909
+ | 'tz'
6910
+ | 'ua'
6911
+ | 'ug'
6912
+ | 'us'
6913
+ | 'uy'
6914
+ | 'uz'
6915
+ | 'va'
6916
+ | 'vc'
6917
+ | 've'
6918
+ | 'vn'
6919
+ | 'vu'
6920
+ | 'ws'
6921
+ | 'ye'
6922
+ | 'za'
6923
+ | 'zm'
6924
+ | 'zw';
6368
6925
  };
6369
6926
 
6370
6927
  export type AccountStandardsControllerGetTemplateMetadataResponse =
@@ -6372,7 +6929,7 @@ export type AccountStandardsControllerGetTemplateMetadataResponse =
6372
6929
 
6373
6930
  export type AccountStandardsControllerGetRegionsData = {
6374
6931
  /**
6375
- * Region code for tenant context
6932
+ * Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
6376
6933
  */
6377
6934
  region:
6378
6935
  | 'ad'
@@ -6382,24 +6939,190 @@ export type AccountStandardsControllerGetRegionsData = {
6382
6939
  | 'al'
6383
6940
  | 'am'
6384
6941
  | 'ao'
6942
+ | 'ar'
6943
+ | 'at'
6385
6944
  | 'au'
6945
+ | 'az'
6946
+ | 'ba'
6947
+ | 'bb'
6948
+ | 'bd'
6949
+ | 'be'
6950
+ | 'bf'
6951
+ | 'bg'
6952
+ | 'bh'
6953
+ | 'bi'
6954
+ | 'bj'
6955
+ | 'bn'
6956
+ | 'bo'
6386
6957
  | 'br'
6958
+ | 'bs'
6959
+ | 'bt'
6960
+ | 'bw'
6961
+ | 'by'
6962
+ | 'bz'
6387
6963
  | 'ca'
6964
+ | 'cd'
6965
+ | 'cf'
6966
+ | 'cg'
6967
+ | 'ch'
6968
+ | 'ci'
6969
+ | 'cl'
6970
+ | 'cm'
6388
6971
  | 'cn'
6972
+ | 'co'
6973
+ | 'cr'
6974
+ | 'cu'
6975
+ | 'cv'
6976
+ | 'cy'
6977
+ | 'cz'
6389
6978
  | 'de'
6979
+ | 'dj'
6980
+ | 'dk'
6981
+ | 'dm'
6982
+ | 'do'
6390
6983
  | 'dz'
6984
+ | 'ec'
6985
+ | 'ee'
6986
+ | 'eg'
6987
+ | 'er'
6391
6988
  | 'es'
6989
+ | 'et'
6990
+ | 'fj'
6991
+ | 'fm'
6392
6992
  | 'fr'
6993
+ | 'ga'
6393
6994
  | 'gb'
6995
+ | 'gd'
6996
+ | 'ge'
6997
+ | 'gh'
6998
+ | 'gm'
6999
+ | 'gn'
7000
+ | 'gq'
7001
+ | 'gr'
7002
+ | 'gt'
7003
+ | 'gw'
7004
+ | 'gy'
6394
7005
  | 'hk'
7006
+ | 'hn'
7007
+ | 'hr'
7008
+ | 'ht'
7009
+ | 'hu'
7010
+ | 'id'
7011
+ | 'ie'
7012
+ | 'il'
6395
7013
  | 'in'
7014
+ | 'iq'
7015
+ | 'ir'
7016
+ | 'is'
6396
7017
  | 'it'
7018
+ | 'jm'
7019
+ | 'jo'
6397
7020
  | 'jp'
7021
+ | 'ke'
7022
+ | 'kg'
7023
+ | 'kh'
7024
+ | 'ki'
7025
+ | 'km'
7026
+ | 'kn'
6398
7027
  | 'kr'
7028
+ | 'kw'
7029
+ | 'kz'
7030
+ | 'la'
7031
+ | 'lb'
7032
+ | 'lc'
7033
+ | 'li'
7034
+ | 'lk'
7035
+ | 'lr'
7036
+ | 'ls'
7037
+ | 'lt'
7038
+ | 'lu'
7039
+ | 'lv'
7040
+ | 'ly'
7041
+ | 'ma'
7042
+ | 'mc'
7043
+ | 'md'
7044
+ | 'me'
7045
+ | 'mg'
7046
+ | 'mh'
7047
+ | 'mk'
7048
+ | 'ml'
7049
+ | 'mm'
7050
+ | 'mn'
7051
+ | 'mr'
7052
+ | 'mt'
7053
+ | 'mu'
7054
+ | 'mv'
7055
+ | 'mw'
7056
+ | 'mx'
7057
+ | 'mz'
7058
+ | 'na'
7059
+ | 'ne'
7060
+ | 'ng'
7061
+ | 'ni'
6399
7062
  | 'nl'
7063
+ | 'no'
7064
+ | 'np'
7065
+ | 'nr'
7066
+ | 'nz'
7067
+ | 'om'
7068
+ | 'pa'
7069
+ | 'pe'
7070
+ | 'pg'
7071
+ | 'ph'
7072
+ | 'pk'
7073
+ | 'pl'
7074
+ | 'ps'
7075
+ | 'pt'
7076
+ | 'pw'
7077
+ | 'py'
7078
+ | 'qa'
7079
+ | 'ro'
7080
+ | 'rs'
7081
+ | 'ru'
7082
+ | 'rw'
7083
+ | 'sa'
7084
+ | 'sb'
7085
+ | 'sc'
7086
+ | 'sd'
7087
+ | 'se'
6400
7088
  | 'sg'
7089
+ | 'sl'
7090
+ | 'sm'
7091
+ | 'sn'
7092
+ | 'so'
7093
+ | 'sr'
7094
+ | 'st'
7095
+ | 'sv'
7096
+ | 'sy'
7097
+ | 'sz'
7098
+ | 'td'
7099
+ | 'tg'
7100
+ | 'th'
7101
+ | 'tj'
7102
+ | 'tl'
7103
+ | 'tm'
7104
+ | 'tn'
7105
+ | 'to'
7106
+ | 'tr'
7107
+ | 'tt'
7108
+ | 'tv'
6401
7109
  | 'tw'
6402
- | 'us';
7110
+ | 'tz'
7111
+ | 'ua'
7112
+ | 'ug'
7113
+ | 'us'
7114
+ | 'uy'
7115
+ | 'uz'
7116
+ | 'va'
7117
+ | 'vc'
7118
+ | 've'
7119
+ | 'vn'
7120
+ | 'vu'
7121
+ | 'ws'
7122
+ | 'ye'
7123
+ | 'za'
7124
+ | 'zm'
7125
+ | 'zw';
6403
7126
  };
6404
7127
 
6405
7128
  export type AccountStandardsControllerGetRegionsResponse =
@@ -6449,7 +7172,7 @@ export type TransactionControllerListData = {
6449
7172
  */
6450
7173
  accountId?: string;
6451
7174
  /**
6452
- * Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
7175
+ * Filter by ADR-0075 functional category (Group segment); matches any posting to an account whose derived Group segment equals this value. Must be accompanied by flow (ADR-0126).
6453
7176
  */
6454
7177
  category?: string;
6455
7178
  /**
@@ -6460,6 +7183,10 @@ export type TransactionControllerListData = {
6460
7183
  * Filter by end date (inclusive), format: YYYY-MM-DD
6461
7184
  */
6462
7185
  dateTo?: string;
7186
+ /**
7187
+ * Required when category is present (400 otherwise) and vice versa (ADR-0126). Restricts the category account set to the flow root (income → Income:, expense → Expenses:) and drives the per-leg sign normalization of row viewpointAmount and the summary. OpenAPI cannot express conditional requiredness — the pairing is enforced at runtime.
7188
+ */
7189
+ flow?: 'income' | 'expense';
6463
7190
  /**
6464
7191
  * Number of items per page (1-100, default: 20)
6465
7192
  */
@@ -6502,9 +7229,9 @@ export type TransactionControllerListData = {
6502
7229
  */
6503
7230
  search?: string;
6504
7231
  /**
6505
- * Filter by transaction status
7232
+ * Filter by transaction status: single value, comma-separated multi-value (e.g. VOIDED,SUPERSEDED), or ALL to include audit rows. Defaults to ACTIVE-only (ADR-0128; previously unfiltered — breaking change).
6506
7233
  */
6507
- status?: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
7234
+ status?: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED' | 'ALL';
6508
7235
  };
6509
7236
 
6510
7237
  export type TransactionControllerListResponse = TransactionListResponseDto;
@@ -7261,8 +7988,7 @@ export type PayeeProfileAdminControllerUnverifyData = {
7261
7988
  id: string;
7262
7989
  };
7263
7990
 
7264
- export type PayeeProfileAdminControllerUnverifyResponse =
7265
- PayeeProfileResponseDto;
7991
+ export type PayeeProfileAdminControllerUnverifyResponse = void;
7266
7992
 
7267
7993
  export type CommodityControllerCreateData = {
7268
7994
  /**
@@ -7526,7 +8252,168 @@ export type CommodityControllerBulkCreateData = {
7526
8252
  | 'us';
7527
8253
  };
7528
8254
 
7529
- export type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
8255
+ export type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
8256
+
8257
+ export type ReportingControllerGetPortfolioTrendsData = {
8258
+ /**
8259
+ * Data granularity
8260
+ */
8261
+ granularity?: 'day' | 'week' | 'month';
8262
+ /**
8263
+ * Time period
8264
+ */
8265
+ period?: '1m' | '3m' | '6m' | '1y';
8266
+ /**
8267
+ * Region code for tenant context
8268
+ */
8269
+ region:
8270
+ | 'ad'
8271
+ | 'ae'
8272
+ | 'af'
8273
+ | 'ag'
8274
+ | 'al'
8275
+ | 'am'
8276
+ | 'ao'
8277
+ | 'au'
8278
+ | 'br'
8279
+ | 'ca'
8280
+ | 'cn'
8281
+ | 'de'
8282
+ | 'dz'
8283
+ | 'es'
8284
+ | 'fr'
8285
+ | 'gb'
8286
+ | 'hk'
8287
+ | 'in'
8288
+ | 'it'
8289
+ | 'jp'
8290
+ | 'kr'
8291
+ | 'nl'
8292
+ | 'sg'
8293
+ | 'tw'
8294
+ | 'us';
8295
+ };
8296
+
8297
+ export type ReportingControllerGetPortfolioTrendsResponse =
8298
+ PortfolioTrendsResponseDto;
8299
+
8300
+ export type ReportingControllerGetCashFlowTrendsData = {
8301
+ /**
8302
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
8303
+ */
8304
+ granularity?: 'day' | 'week' | 'month';
8305
+ /**
8306
+ * Time period
8307
+ */
8308
+ period?: '1m' | '3m' | '6m' | '1y';
8309
+ /**
8310
+ * Region code for tenant context
8311
+ */
8312
+ region:
8313
+ | 'ad'
8314
+ | 'ae'
8315
+ | 'af'
8316
+ | 'ag'
8317
+ | 'al'
8318
+ | 'am'
8319
+ | 'ao'
8320
+ | 'au'
8321
+ | 'br'
8322
+ | 'ca'
8323
+ | 'cn'
8324
+ | 'de'
8325
+ | 'dz'
8326
+ | 'es'
8327
+ | 'fr'
8328
+ | 'gb'
8329
+ | 'hk'
8330
+ | 'in'
8331
+ | 'it'
8332
+ | 'jp'
8333
+ | 'kr'
8334
+ | 'nl'
8335
+ | 'sg'
8336
+ | 'tw'
8337
+ | 'us';
8338
+ };
8339
+
8340
+ export type ReportingControllerGetCashFlowTrendsResponse =
8341
+ CashFlowTrendsResponseDto;
8342
+
8343
+ export type ReportingControllerGenerateSnapshotData = {
8344
+ /**
8345
+ * Region code for tenant context
8346
+ */
8347
+ region:
8348
+ | 'ad'
8349
+ | 'ae'
8350
+ | 'af'
8351
+ | 'ag'
8352
+ | 'al'
8353
+ | 'am'
8354
+ | 'ao'
8355
+ | 'au'
8356
+ | 'br'
8357
+ | 'ca'
8358
+ | 'cn'
8359
+ | 'de'
8360
+ | 'dz'
8361
+ | 'es'
8362
+ | 'fr'
8363
+ | 'gb'
8364
+ | 'hk'
8365
+ | 'in'
8366
+ | 'it'
8367
+ | 'jp'
8368
+ | 'kr'
8369
+ | 'nl'
8370
+ | 'sg'
8371
+ | 'tw'
8372
+ | 'us';
8373
+ /**
8374
+ * Optional date (defaults to today)
8375
+ */
8376
+ requestBody: GenerateSnapshotBody;
8377
+ };
8378
+
8379
+ export type ReportingControllerGenerateSnapshotResponse =
8380
+ GenerateSnapshotResponse;
8381
+
8382
+ export type ReportingControllerBackfillSnapshotsData = {
8383
+ /**
8384
+ * Region code for tenant context
8385
+ */
8386
+ region:
8387
+ | 'ad'
8388
+ | 'ae'
8389
+ | 'af'
8390
+ | 'ag'
8391
+ | 'al'
8392
+ | 'am'
8393
+ | 'ao'
8394
+ | 'au'
8395
+ | 'br'
8396
+ | 'ca'
8397
+ | 'cn'
8398
+ | 'de'
8399
+ | 'dz'
8400
+ | 'es'
8401
+ | 'fr'
8402
+ | 'gb'
8403
+ | 'hk'
8404
+ | 'in'
8405
+ | 'it'
8406
+ | 'jp'
8407
+ | 'kr'
8408
+ | 'nl'
8409
+ | 'sg'
8410
+ | 'tw'
8411
+ | 'us';
8412
+ requestBody: BackfillSnapshotsBody;
8413
+ };
8414
+
8415
+ export type ReportingControllerBackfillSnapshotsResponse =
8416
+ BackfillSnapshotsResponse;
7530
8417
 
7531
8418
  export type PriceControllerCreateData = {
7532
8419
  /**
@@ -7775,6 +8662,93 @@ export type PriceControllerBulkCreateData = {
7775
8662
 
7776
8663
  export type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
7777
8664
 
8665
+ export type UserControllerDeleteOwnUserData = {
8666
+ requestBody: DeleteOwnUserDto;
8667
+ };
8668
+
8669
+ export type UserControllerDeleteOwnUserResponse = void;
8670
+
8671
+ export type UserControllerGetUserData = {
8672
+ acceptLanguage: string;
8673
+ };
8674
+
8675
+ export type UserControllerGetUserResponse = UserResponseDto;
8676
+
8677
+ export type UserControllerSignupUserData = {
8678
+ requestBody: SignupDto;
8679
+ };
8680
+
8681
+ export type UserControllerSignupUserResponse = SignupResponseDto;
8682
+
8683
+ export type UserControllerDeleteUserData = {
8684
+ /**
8685
+ * User ID to delete
8686
+ */
8687
+ id: string;
8688
+ };
8689
+
8690
+ export type UserControllerDeleteUserResponse = void;
8691
+
8692
+ export type UserControllerGetUserInfoData = {
8693
+ /**
8694
+ * User ID
8695
+ */
8696
+ id: string;
8697
+ };
8698
+
8699
+ export type UserControllerGetUserInfoResponse = unknown;
8700
+
8701
+ export type UserControllerUpdateUserSettingData = {
8702
+ requestBody: UpdateUserSettingDto;
8703
+ };
8704
+
8705
+ export type UserControllerUpdateUserSettingResponse = unknown;
8706
+
8707
+ export type UserControllerGetAllUserSettingsByPageData = {
8708
+ /**
8709
+ * Page number
8710
+ */
8711
+ pageNo: number;
8712
+ /**
8713
+ * Page size
8714
+ */
8715
+ pageSize: number;
8716
+ };
8717
+
8718
+ export type UserControllerGetAllUserSettingsByPageResponse = unknown;
8719
+
8720
+ export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
8721
+
8722
+ export type PropertyControllerGetAllResponse = unknown;
8723
+
8724
+ export type PropertyControllerGetByKeyData = {
8725
+ /**
8726
+ * Property key
8727
+ */
8728
+ key: string;
8729
+ };
8730
+
8731
+ export type PropertyControllerGetByKeyResponse = unknown;
8732
+
8733
+ export type PropertyControllerUpdateData = {
8734
+ /**
8735
+ * Property key
8736
+ */
8737
+ key: string;
8738
+ requestBody: UpdatePropertyDto;
8739
+ };
8740
+
8741
+ export type PropertyControllerUpdateResponse = unknown;
8742
+
8743
+ export type PropertyControllerDeleteData = {
8744
+ /**
8745
+ * Property key
8746
+ */
8747
+ key: string;
8748
+ };
8749
+
8750
+ export type PropertyControllerDeleteResponse = void;
8751
+
7778
8752
  export type RecurringRuleControllerCreateData = {
7779
8753
  /**
7780
8754
  * Region code for tenant context
@@ -8251,8 +9225,7 @@ export type ExpectedTransactionControllerUndoSkipData = {
8251
9225
  | 'us';
8252
9226
  };
8253
9227
 
8254
- export type ExpectedTransactionControllerUndoSkipResponse =
8255
- ExpectedTransactionResponseDto;
9228
+ export type ExpectedTransactionControllerUndoSkipResponse = void;
8256
9229
 
8257
9230
  export type ExpectedTransactionControllerConfirmMatchData = {
8258
9231
  /**
@@ -8329,7 +9302,7 @@ export type ExpectedTransactionControllerUnmatchData = {
8329
9302
  | 'us';
8330
9303
  };
8331
9304
 
8332
- export type ExpectedTransactionControllerUnmatchResponse = unknown;
9305
+ export type ExpectedTransactionControllerUnmatchResponse = void;
8333
9306
 
8334
9307
  export type ExpectedTransactionControllerEnterNowData = {
8335
9308
  /**
@@ -8370,170 +9343,11 @@ export type ExpectedTransactionControllerEnterNowData = {
8370
9343
 
8371
9344
  export type ExpectedTransactionControllerEnterNowResponse = unknown;
8372
9345
 
8373
- export type ForecastControllerGetForecastData = {
8374
- /**
8375
- * Number of months to forecast (1-12, default 3)
8376
- */
8377
- months?: number;
8378
- /**
8379
- * Region code for tenant context
8380
- */
8381
- region:
8382
- | 'ad'
8383
- | 'ae'
8384
- | 'af'
8385
- | 'ag'
8386
- | 'al'
8387
- | 'am'
8388
- | 'ao'
8389
- | 'au'
8390
- | 'br'
8391
- | 'ca'
8392
- | 'cn'
8393
- | 'de'
8394
- | 'dz'
8395
- | 'es'
8396
- | 'fr'
8397
- | 'gb'
8398
- | 'hk'
8399
- | 'in'
8400
- | 'it'
8401
- | 'jp'
8402
- | 'kr'
8403
- | 'nl'
8404
- | 'sg'
8405
- | 'tw'
8406
- | 'us';
8407
- };
8408
-
8409
- export type ForecastControllerGetForecastResponse = ForecastResponseDto;
8410
-
8411
- export type ReportingControllerGetPortfolioTrendsData = {
8412
- /**
8413
- * Data granularity
8414
- */
8415
- granularity?: 'day' | 'week' | 'month';
8416
- /**
8417
- * Time period
8418
- */
8419
- period?: '1m' | '3m' | '6m' | '1y';
8420
- /**
8421
- * Region code for tenant context
8422
- */
8423
- region:
8424
- | 'ad'
8425
- | 'ae'
8426
- | 'af'
8427
- | 'ag'
8428
- | 'al'
8429
- | 'am'
8430
- | 'ao'
8431
- | 'au'
8432
- | 'br'
8433
- | 'ca'
8434
- | 'cn'
8435
- | 'de'
8436
- | 'dz'
8437
- | 'es'
8438
- | 'fr'
8439
- | 'gb'
8440
- | 'hk'
8441
- | 'in'
8442
- | 'it'
8443
- | 'jp'
8444
- | 'kr'
8445
- | 'nl'
8446
- | 'sg'
8447
- | 'tw'
8448
- | 'us';
8449
- };
8450
-
8451
- export type ReportingControllerGetPortfolioTrendsResponse =
8452
- PortfolioTrendsResponseDto;
8453
-
8454
- export type ReportingControllerGetCashFlowTrendsData = {
8455
- /**
8456
- * Data granularity (accepted for API symmetry; v1 returns month buckets)
8457
- */
8458
- granularity?: 'day' | 'week' | 'month';
8459
- /**
8460
- * Time period
8461
- */
8462
- period?: '1m' | '3m' | '6m' | '1y';
8463
- /**
8464
- * Region code for tenant context
8465
- */
8466
- region:
8467
- | 'ad'
8468
- | 'ae'
8469
- | 'af'
8470
- | 'ag'
8471
- | 'al'
8472
- | 'am'
8473
- | 'ao'
8474
- | 'au'
8475
- | 'br'
8476
- | 'ca'
8477
- | 'cn'
8478
- | 'de'
8479
- | 'dz'
8480
- | 'es'
8481
- | 'fr'
8482
- | 'gb'
8483
- | 'hk'
8484
- | 'in'
8485
- | 'it'
8486
- | 'jp'
8487
- | 'kr'
8488
- | 'nl'
8489
- | 'sg'
8490
- | 'tw'
8491
- | 'us';
8492
- };
8493
-
8494
- export type ReportingControllerGetCashFlowTrendsResponse =
8495
- CashFlowTrendsResponseDto;
8496
-
8497
- export type ReportingControllerGenerateSnapshotData = {
8498
- /**
8499
- * Region code for tenant context
8500
- */
8501
- region:
8502
- | 'ad'
8503
- | 'ae'
8504
- | 'af'
8505
- | 'ag'
8506
- | 'al'
8507
- | 'am'
8508
- | 'ao'
8509
- | 'au'
8510
- | 'br'
8511
- | 'ca'
8512
- | 'cn'
8513
- | 'de'
8514
- | 'dz'
8515
- | 'es'
8516
- | 'fr'
8517
- | 'gb'
8518
- | 'hk'
8519
- | 'in'
8520
- | 'it'
8521
- | 'jp'
8522
- | 'kr'
8523
- | 'nl'
8524
- | 'sg'
8525
- | 'tw'
8526
- | 'us';
8527
- /**
8528
- * Optional date (defaults to today)
8529
- */
8530
- requestBody: GenerateSnapshotBody;
8531
- };
8532
-
8533
- export type ReportingControllerGenerateSnapshotResponse =
8534
- GenerateSnapshotResponse;
8535
-
8536
- export type ReportingControllerBackfillSnapshotsData = {
9346
+ export type ForecastControllerGetForecastData = {
9347
+ /**
9348
+ * Number of months to forecast (1-12, default 3)
9349
+ */
9350
+ months?: number;
8537
9351
  /**
8538
9352
  * Region code for tenant context
8539
9353
  */
@@ -8563,98 +9377,9 @@ export type ReportingControllerBackfillSnapshotsData = {
8563
9377
  | 'sg'
8564
9378
  | 'tw'
8565
9379
  | 'us';
8566
- requestBody: BackfillSnapshotsBody;
8567
- };
8568
-
8569
- export type ReportingControllerBackfillSnapshotsResponse =
8570
- BackfillSnapshotsResponse;
8571
-
8572
- export type UserControllerDeleteOwnUserData = {
8573
- requestBody: DeleteOwnUserDto;
8574
- };
8575
-
8576
- export type UserControllerDeleteOwnUserResponse = void;
8577
-
8578
- export type UserControllerGetUserData = {
8579
- acceptLanguage: string;
8580
- };
8581
-
8582
- export type UserControllerGetUserResponse = UserResponseDto;
8583
-
8584
- export type UserControllerSignupUserData = {
8585
- requestBody: SignupDto;
8586
- };
8587
-
8588
- export type UserControllerSignupUserResponse = SignupResponseDto;
8589
-
8590
- export type UserControllerDeleteUserData = {
8591
- /**
8592
- * User ID to delete
8593
- */
8594
- id: string;
8595
- };
8596
-
8597
- export type UserControllerDeleteUserResponse = void;
8598
-
8599
- export type UserControllerGetUserInfoData = {
8600
- /**
8601
- * User ID
8602
- */
8603
- id: string;
8604
- };
8605
-
8606
- export type UserControllerGetUserInfoResponse = unknown;
8607
-
8608
- export type UserControllerUpdateUserSettingData = {
8609
- requestBody: UpdateUserSettingDto;
8610
- };
8611
-
8612
- export type UserControllerUpdateUserSettingResponse = unknown;
8613
-
8614
- export type UserControllerGetAllUserSettingsByPageData = {
8615
- /**
8616
- * Page number
8617
- */
8618
- pageNo: number;
8619
- /**
8620
- * Page size
8621
- */
8622
- pageSize: number;
8623
- };
8624
-
8625
- export type UserControllerGetAllUserSettingsByPageResponse = unknown;
8626
-
8627
- export type UserControllerGetAssetLiabilitySummaryResponse = unknown;
8628
-
8629
- export type PropertyControllerGetAllResponse = unknown;
8630
-
8631
- export type PropertyControllerGetByKeyData = {
8632
- /**
8633
- * Property key
8634
- */
8635
- key: string;
8636
- };
8637
-
8638
- export type PropertyControllerGetByKeyResponse = unknown;
8639
-
8640
- export type PropertyControllerUpdateData = {
8641
- /**
8642
- * Property key
8643
- */
8644
- key: string;
8645
- requestBody: UpdatePropertyDto;
8646
- };
8647
-
8648
- export type PropertyControllerUpdateResponse = unknown;
8649
-
8650
- export type PropertyControllerDeleteData = {
8651
- /**
8652
- * Property key
8653
- */
8654
- key: string;
8655
9380
  };
8656
9381
 
8657
- export type PropertyControllerDeleteResponse = void;
9382
+ export type ForecastControllerGetForecastResponse = ForecastResponseDto;
8658
9383
 
8659
9384
  export type TransactionRuleControllerCreateData = {
8660
9385
  /**
@@ -9350,7 +10075,7 @@ export type EventControllerGetSliceResponse = unknown;
9350
10075
 
9351
10076
  export type OnboardingControllerBootstrapData = {
9352
10077
  /**
9353
- * Region code for tenant context
10078
+ * Region code for tenant context. Not-yet-open codes are accepted: the universal catalog backs onboarding regardless of region (#759)
9354
10079
  */
9355
10080
  region:
9356
10081
  | 'ad'
@@ -9360,24 +10085,190 @@ export type OnboardingControllerBootstrapData = {
9360
10085
  | 'al'
9361
10086
  | 'am'
9362
10087
  | 'ao'
10088
+ | 'ar'
10089
+ | 'at'
9363
10090
  | 'au'
10091
+ | 'az'
10092
+ | 'ba'
10093
+ | 'bb'
10094
+ | 'bd'
10095
+ | 'be'
10096
+ | 'bf'
10097
+ | 'bg'
10098
+ | 'bh'
10099
+ | 'bi'
10100
+ | 'bj'
10101
+ | 'bn'
10102
+ | 'bo'
9364
10103
  | 'br'
10104
+ | 'bs'
10105
+ | 'bt'
10106
+ | 'bw'
10107
+ | 'by'
10108
+ | 'bz'
9365
10109
  | 'ca'
10110
+ | 'cd'
10111
+ | 'cf'
10112
+ | 'cg'
10113
+ | 'ch'
10114
+ | 'ci'
10115
+ | 'cl'
10116
+ | 'cm'
9366
10117
  | 'cn'
10118
+ | 'co'
10119
+ | 'cr'
10120
+ | 'cu'
10121
+ | 'cv'
10122
+ | 'cy'
10123
+ | 'cz'
9367
10124
  | 'de'
10125
+ | 'dj'
10126
+ | 'dk'
10127
+ | 'dm'
10128
+ | 'do'
9368
10129
  | 'dz'
10130
+ | 'ec'
10131
+ | 'ee'
10132
+ | 'eg'
10133
+ | 'er'
9369
10134
  | 'es'
10135
+ | 'et'
10136
+ | 'fj'
10137
+ | 'fm'
9370
10138
  | 'fr'
10139
+ | 'ga'
9371
10140
  | 'gb'
10141
+ | 'gd'
10142
+ | 'ge'
10143
+ | 'gh'
10144
+ | 'gm'
10145
+ | 'gn'
10146
+ | 'gq'
10147
+ | 'gr'
10148
+ | 'gt'
10149
+ | 'gw'
10150
+ | 'gy'
9372
10151
  | 'hk'
10152
+ | 'hn'
10153
+ | 'hr'
10154
+ | 'ht'
10155
+ | 'hu'
10156
+ | 'id'
10157
+ | 'ie'
10158
+ | 'il'
9373
10159
  | 'in'
10160
+ | 'iq'
10161
+ | 'ir'
10162
+ | 'is'
9374
10163
  | 'it'
10164
+ | 'jm'
10165
+ | 'jo'
9375
10166
  | 'jp'
10167
+ | 'ke'
10168
+ | 'kg'
10169
+ | 'kh'
10170
+ | 'ki'
10171
+ | 'km'
10172
+ | 'kn'
9376
10173
  | 'kr'
10174
+ | 'kw'
10175
+ | 'kz'
10176
+ | 'la'
10177
+ | 'lb'
10178
+ | 'lc'
10179
+ | 'li'
10180
+ | 'lk'
10181
+ | 'lr'
10182
+ | 'ls'
10183
+ | 'lt'
10184
+ | 'lu'
10185
+ | 'lv'
10186
+ | 'ly'
10187
+ | 'ma'
10188
+ | 'mc'
10189
+ | 'md'
10190
+ | 'me'
10191
+ | 'mg'
10192
+ | 'mh'
10193
+ | 'mk'
10194
+ | 'ml'
10195
+ | 'mm'
10196
+ | 'mn'
10197
+ | 'mr'
10198
+ | 'mt'
10199
+ | 'mu'
10200
+ | 'mv'
10201
+ | 'mw'
10202
+ | 'mx'
10203
+ | 'mz'
10204
+ | 'na'
10205
+ | 'ne'
10206
+ | 'ng'
10207
+ | 'ni'
9377
10208
  | 'nl'
10209
+ | 'no'
10210
+ | 'np'
10211
+ | 'nr'
10212
+ | 'nz'
10213
+ | 'om'
10214
+ | 'pa'
10215
+ | 'pe'
10216
+ | 'pg'
10217
+ | 'ph'
10218
+ | 'pk'
10219
+ | 'pl'
10220
+ | 'ps'
10221
+ | 'pt'
10222
+ | 'pw'
10223
+ | 'py'
10224
+ | 'qa'
10225
+ | 'ro'
10226
+ | 'rs'
10227
+ | 'ru'
10228
+ | 'rw'
10229
+ | 'sa'
10230
+ | 'sb'
10231
+ | 'sc'
10232
+ | 'sd'
10233
+ | 'se'
9378
10234
  | 'sg'
10235
+ | 'sl'
10236
+ | 'sm'
10237
+ | 'sn'
10238
+ | 'so'
10239
+ | 'sr'
10240
+ | 'st'
10241
+ | 'sv'
10242
+ | 'sy'
10243
+ | 'sz'
10244
+ | 'td'
10245
+ | 'tg'
10246
+ | 'th'
10247
+ | 'tj'
10248
+ | 'tl'
10249
+ | 'tm'
10250
+ | 'tn'
10251
+ | 'to'
10252
+ | 'tr'
10253
+ | 'tt'
10254
+ | 'tv'
9379
10255
  | 'tw'
9380
- | 'us';
10256
+ | 'tz'
10257
+ | 'ua'
10258
+ | 'ug'
10259
+ | 'us'
10260
+ | 'uy'
10261
+ | 'uz'
10262
+ | 'va'
10263
+ | 'vc'
10264
+ | 've'
10265
+ | 'vn'
10266
+ | 'vu'
10267
+ | 'ws'
10268
+ | 'ye'
10269
+ | 'za'
10270
+ | 'zm'
10271
+ | 'zw';
9381
10272
  requestBody: OnboardingDto;
9382
10273
  };
9383
10274
 
@@ -9528,7 +10419,7 @@ export type ReconciliationControllerHistoryData = {
9528
10419
  export type ReconciliationControllerHistoryResponse =
9529
10420
  Array<ReconciliationRecordDto>;
9530
10421
 
9531
- export type ExportControllerExportBeancountResponse = unknown;
10422
+ export type ExportControllerExportBeancountResponse = Blob | File;
9532
10423
 
9533
10424
  export type FileImportControllerImportFileData = {
9534
10425
  /**
@@ -10286,6 +11177,24 @@ export type PlatformControllerMatchPlatformsData = {
10286
11177
 
10287
11178
  export type PlatformControllerMatchPlatformsResponse = PlatformMatchResponseDto;
10288
11179
 
11180
+ export type PlatformControllerGetPlatformStandardsData = {
11181
+ /**
11182
+ * Platform ID (from a match result)
11183
+ */
11184
+ id: string;
11185
+ /**
11186
+ * Region code (ISO 3166-1 alpha-2, case-insensitive). Required for global platforms (countryCode null) — resolved as their template region; ignored when the platform has its own countryCode.
11187
+ */
11188
+ region?: string;
11189
+ /**
11190
+ * Filter templates by account type (path first segment)
11191
+ */
11192
+ type?: 'Assets' | 'Liabilities' | 'Income' | 'Expenses' | 'Equity';
11193
+ };
11194
+
11195
+ export type PlatformControllerGetPlatformStandardsResponse =
11196
+ PlatformStandardsResponseDto;
11197
+
10289
11198
  export type PlatformControllerUpdateData = {
10290
11199
  /**
10291
11200
  * Platform ID
@@ -10535,6 +11444,42 @@ export type AuthControllerAccessTokenLoginData = {
10535
11444
 
10536
11445
  export type AuthControllerAccessTokenLoginResponse = AnonymousLoginResponseDto;
10537
11446
 
11447
+ export type ParserContributionControllerCreateData = {
11448
+ /**
11449
+ * Region code for tenant context (routing only; the institution region rides in the payload meta)
11450
+ */
11451
+ region:
11452
+ | 'ad'
11453
+ | 'ae'
11454
+ | 'af'
11455
+ | 'ag'
11456
+ | 'al'
11457
+ | 'am'
11458
+ | 'ao'
11459
+ | 'au'
11460
+ | 'br'
11461
+ | 'ca'
11462
+ | 'cn'
11463
+ | 'de'
11464
+ | 'dz'
11465
+ | 'es'
11466
+ | 'fr'
11467
+ | 'gb'
11468
+ | 'hk'
11469
+ | 'in'
11470
+ | 'it'
11471
+ | 'jp'
11472
+ | 'kr'
11473
+ | 'nl'
11474
+ | 'sg'
11475
+ | 'tw'
11476
+ | 'us';
11477
+ requestBody: ParserContributionRequestDto;
11478
+ };
11479
+
11480
+ export type ParserContributionControllerCreateResponse =
11481
+ ParserContributionRelayResponseDto;
11482
+
10538
11483
  export type CacheControllerFlushCacheResponse = unknown;
10539
11484
 
10540
11485
  export type ExchangeRateControllerGetExchangeRateData = {
@@ -11228,7 +12173,7 @@ export type $OpenApiTs = {
11228
12173
  /**
11229
12174
  * Payee profile unverified successfully
11230
12175
  */
11231
- 200: PayeeProfileResponseDto;
12176
+ 204: void;
11232
12177
  /**
11233
12178
  * Admin access required
11234
12179
  */
@@ -11335,598 +12280,598 @@ export type $OpenApiTs = {
11335
12280
  };
11336
12281
  };
11337
12282
  };
11338
- '/api/v1/{region}/bean/prices': {
11339
- post: {
11340
- req: PriceControllerCreateData;
12283
+ '/api/v1/{region}/reporting/portfolio/trends': {
12284
+ get: {
12285
+ req: ReportingControllerGetPortfolioTrendsData;
11341
12286
  res: {
11342
12287
  /**
11343
- * Price created successfully
11344
- */
11345
- 201: PriceResponseDto;
11346
- /**
11347
- * Currency or quoteCurrency commodity not found
11348
- */
11349
- 404: unknown;
11350
- /**
11351
- * Price already exists for this currency pair and date
12288
+ * Trends retrieved successfully
11352
12289
  */
11353
- 409: unknown;
11354
- };
11355
- };
11356
- get: {
11357
- req: PriceControllerFindAllData;
11358
- res: {
12290
+ 200: PortfolioTrendsResponseDto;
11359
12291
  /**
11360
- * Prices retrieved successfully
12292
+ * User not authenticated
11361
12293
  */
11362
- 200: PriceListResponseDto;
12294
+ 401: unknown;
11363
12295
  };
11364
12296
  };
11365
12297
  };
11366
- '/api/v1/{region}/bean/prices/{id}': {
12298
+ '/api/v1/{region}/reporting/cash-flow/trends': {
11367
12299
  get: {
11368
- req: PriceControllerFindOneData;
11369
- res: {
11370
- /**
11371
- * Price retrieved successfully
11372
- */
11373
- 200: PriceResponseDto;
11374
- /**
11375
- * Price not found
11376
- */
11377
- 404: unknown;
11378
- };
11379
- };
11380
- put: {
11381
- req: PriceControllerUpdateData;
12300
+ req: ReportingControllerGetCashFlowTrendsData;
11382
12301
  res: {
11383
12302
  /**
11384
- * Price updated successfully
11385
- */
11386
- 200: PriceResponseDto;
11387
- /**
11388
- * Price not found
12303
+ * Cash-flow trends retrieved successfully
11389
12304
  */
11390
- 404: unknown;
12305
+ 200: CashFlowTrendsResponseDto;
11391
12306
  /**
11392
- * Updated price conflicts with existing price
12307
+ * User not authenticated
11393
12308
  */
11394
- 409: unknown;
12309
+ 401: unknown;
11395
12310
  };
11396
12311
  };
11397
- delete: {
11398
- req: PriceControllerDeleteData;
12312
+ };
12313
+ '/api/v1/{region}/reporting/snapshots/generate': {
12314
+ post: {
12315
+ req: ReportingControllerGenerateSnapshotData;
11399
12316
  res: {
11400
12317
  /**
11401
- * Price deleted successfully
12318
+ * Snapshot generated successfully
11402
12319
  */
11403
- 204: void;
12320
+ 200: GenerateSnapshotResponse;
11404
12321
  /**
11405
- * Price not found
12322
+ * Invalid date format
11406
12323
  */
11407
- 404: unknown;
11408
- };
11409
- };
11410
- };
11411
- '/api/v1/{region}/bean/prices/bulk': {
11412
- post: {
11413
- req: PriceControllerBulkCreateData;
11414
- res: {
12324
+ 400: unknown;
11415
12325
  /**
11416
- * Prices created successfully
12326
+ * User not authenticated
11417
12327
  */
11418
- 201: Array<PriceResponseDto>;
12328
+ 401: unknown;
11419
12329
  };
11420
12330
  };
11421
12331
  };
11422
- '/api/v1/{region}/bean/recurring-rules': {
12332
+ '/api/v1/{region}/reporting/snapshots/backfill': {
11423
12333
  post: {
11424
- req: RecurringRuleControllerCreateData;
12334
+ req: ReportingControllerBackfillSnapshotsData;
11425
12335
  res: {
11426
12336
  /**
11427
- * Rule created successfully
12337
+ * Backfill completed successfully
11428
12338
  */
11429
- 201: RecurringRuleResponseDto;
12339
+ 200: BackfillSnapshotsResponse;
11430
12340
  /**
11431
- * Invalid input data (e.g., autoCreate without accounts)
12341
+ * Invalid date format or range
11432
12342
  */
11433
12343
  400: unknown;
11434
12344
  /**
11435
- * Rule with same name already exists
12345
+ * User not authenticated
11436
12346
  */
11437
- 409: unknown;
11438
- };
11439
- };
11440
- get: {
11441
- req: RecurringRuleControllerFindAllData;
11442
- res: {
12347
+ 401: unknown;
11443
12348
  /**
11444
- * Rules retrieved successfully
12349
+ * Backfill already in progress for this user
11445
12350
  */
11446
- 200: Array<RecurringRuleResponseDto>;
12351
+ 409: unknown;
11447
12352
  };
11448
12353
  };
11449
12354
  };
11450
- '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}': {
12355
+ '/api/v1/{region}/bean/prices': {
11451
12356
  post: {
11452
- req: RecurringRuleControllerCreateFromTransactionData;
12357
+ req: PriceControllerCreateData;
11453
12358
  res: {
11454
12359
  /**
11455
- * Rule created successfully
12360
+ * Price created successfully
12361
+ */
12362
+ 201: PriceResponseDto;
12363
+ /**
12364
+ * Currency or quoteCurrency commodity not found
11456
12365
  */
11457
- 201: RecurringRuleResponseDto;
12366
+ 404: unknown;
11458
12367
  /**
11459
- * Transaction not found
12368
+ * Price already exists for this currency pair and date
11460
12369
  */
11461
- 404: ApiProblemResponseDto;
12370
+ 409: unknown;
12371
+ };
12372
+ };
12373
+ get: {
12374
+ req: PriceControllerFindAllData;
12375
+ res: {
11462
12376
  /**
11463
- * Rule with same name already exists or transaction already linked
12377
+ * Prices retrieved successfully
11464
12378
  */
11465
- 409: ApiProblemResponseDto;
12379
+ 200: PriceListResponseDto;
11466
12380
  };
11467
12381
  };
11468
12382
  };
11469
- '/api/v1/{region}/bean/recurring-rules/{id}': {
12383
+ '/api/v1/{region}/bean/prices/{id}': {
11470
12384
  get: {
11471
- req: RecurringRuleControllerFindOneData;
12385
+ req: PriceControllerFindOneData;
11472
12386
  res: {
11473
12387
  /**
11474
- * Rule retrieved successfully
12388
+ * Price retrieved successfully
11475
12389
  */
11476
- 200: RecurringRuleResponseDto;
12390
+ 200: PriceResponseDto;
11477
12391
  /**
11478
- * Rule not found
12392
+ * Price not found
11479
12393
  */
11480
12394
  404: unknown;
11481
12395
  };
11482
12396
  };
11483
- patch: {
11484
- req: RecurringRuleControllerUpdateData;
12397
+ put: {
12398
+ req: PriceControllerUpdateData;
11485
12399
  res: {
11486
12400
  /**
11487
- * Rule updated successfully
12401
+ * Price updated successfully
11488
12402
  */
11489
- 200: RecurringRuleResponseDto;
12403
+ 200: PriceResponseDto;
11490
12404
  /**
11491
- * Invalid input data
12405
+ * Price not found
11492
12406
  */
11493
- 400: unknown;
12407
+ 404: unknown;
11494
12408
  /**
11495
- * Rule not found
12409
+ * Updated price conflicts with existing price
11496
12410
  */
11497
- 404: unknown;
12411
+ 409: unknown;
11498
12412
  };
11499
12413
  };
11500
12414
  delete: {
11501
- req: RecurringRuleControllerDeleteData;
12415
+ req: PriceControllerDeleteData;
11502
12416
  res: {
11503
12417
  /**
11504
- * Rule deleted successfully
12418
+ * Price deleted successfully
11505
12419
  */
11506
12420
  204: void;
11507
12421
  /**
11508
- * Rule not found
12422
+ * Price not found
11509
12423
  */
11510
12424
  404: unknown;
11511
12425
  };
11512
12426
  };
11513
12427
  };
11514
- '/api/v1/{region}/bean/recurring-rules/{id}/stats': {
11515
- get: {
11516
- req: RecurringRuleControllerGetWithStatsData;
12428
+ '/api/v1/{region}/bean/prices/bulk': {
12429
+ post: {
12430
+ req: PriceControllerBulkCreateData;
11517
12431
  res: {
11518
12432
  /**
11519
- * Rule with stats retrieved successfully
11520
- */
11521
- 200: RecurringRuleWithStatsResponseDto;
11522
- /**
11523
- * Rule not found
12433
+ * Prices created successfully
11524
12434
  */
11525
- 404: unknown;
12435
+ 201: Array<PriceResponseDto>;
11526
12436
  };
11527
12437
  };
11528
12438
  };
11529
- '/api/v1/{region}/bean/expected-transactions': {
11530
- get: {
11531
- req: ExpectedTransactionControllerFindAllData;
12439
+ '/api/v1/users': {
12440
+ delete: {
12441
+ req: UserControllerDeleteOwnUserData;
11532
12442
  res: {
11533
12443
  /**
11534
- * Expected transactions retrieved successfully
12444
+ * User deleted successfully
11535
12445
  */
11536
- 200: ExpectedTransactionListResponseDto;
11537
- };
11538
- };
11539
- };
11540
- '/api/v1/{region}/bean/expected-transactions/overdue': {
11541
- get: {
11542
- req: ExpectedTransactionControllerFindOverdueData;
11543
- res: {
12446
+ 204: void;
11544
12447
  /**
11545
- * Overdue transactions retrieved successfully
12448
+ * Invalid access token
11546
12449
  */
11547
- 200: ExpectedTransactionListResponseDto;
12450
+ 403: unknown;
11548
12451
  };
11549
12452
  };
11550
- };
11551
- '/api/v1/{region}/bean/expected-transactions/{id}': {
11552
12453
  get: {
11553
- req: ExpectedTransactionControllerFindOneData;
12454
+ req: UserControllerGetUserData;
11554
12455
  res: {
11555
12456
  /**
11556
- * Expected transaction retrieved successfully
11557
- */
11558
- 200: ExpectedTransactionResponseDto;
11559
- /**
11560
- * Expected transaction not found
12457
+ * User retrieved successfully
11561
12458
  */
11562
- 404: unknown;
12459
+ 200: UserResponseDto;
11563
12460
  };
11564
12461
  };
11565
- };
11566
- '/api/v1/{region}/bean/expected-transactions/{id}/skip': {
11567
12462
  post: {
11568
- req: ExpectedTransactionControllerSkipData;
12463
+ req: UserControllerSignupUserData;
11569
12464
  res: {
11570
12465
  /**
11571
- * Expected transaction skipped successfully
12466
+ * User created successfully
11572
12467
  */
11573
- 200: ExpectedTransactionResponseDto;
12468
+ 201: SignupResponseDto;
11574
12469
  /**
11575
- * Cannot skip - not in PENDING status
12470
+ * Invalid Turnstile token (when Turnstile is enabled)
11576
12471
  */
11577
12472
  400: unknown;
11578
12473
  /**
11579
- * Expected transaction not found
12474
+ * User signup is disabled
11580
12475
  */
11581
- 404: unknown;
12476
+ 403: unknown;
11582
12477
  };
11583
12478
  };
12479
+ };
12480
+ '/api/v1/users/{id}': {
11584
12481
  delete: {
11585
- req: ExpectedTransactionControllerUndoSkipData;
12482
+ req: UserControllerDeleteUserData;
11586
12483
  res: {
11587
12484
  /**
11588
- * Skip undone successfully
11589
- */
11590
- 200: ExpectedTransactionResponseDto;
11591
- /**
11592
- * Cannot undo - not in SKIPPED status
12485
+ * User deleted successfully
11593
12486
  */
11594
- 400: unknown;
12487
+ 204: void;
11595
12488
  /**
11596
- * Expected transaction not found
12489
+ * Cannot delete own account or insufficient permissions
11597
12490
  */
11598
- 404: unknown;
12491
+ 403: unknown;
11599
12492
  };
11600
12493
  };
11601
12494
  };
11602
- '/api/v1/{region}/bean/expected-transactions/{id}/match': {
11603
- post: {
11604
- req: ExpectedTransactionControllerConfirmMatchData;
12495
+ '/api/v1/users/{id}/info': {
12496
+ get: {
12497
+ req: UserControllerGetUserInfoData;
11605
12498
  res: {
11606
12499
  /**
11607
- * Match confirmed successfully
12500
+ * User info retrieved successfully
11608
12501
  */
11609
12502
  200: unknown;
11610
12503
  /**
11611
- * Cannot match - not in PENDING status
11612
- */
11613
- 400: unknown;
11614
- /**
11615
- * Expected or actual transaction not found
11616
- */
11617
- 404: unknown;
11618
- /**
11619
- * Actual transaction already matched to another rule
12504
+ * Cannot access other user info without admin permission
11620
12505
  */
11621
- 409: unknown;
12506
+ 403: unknown;
11622
12507
  };
11623
12508
  };
11624
- delete: {
11625
- req: ExpectedTransactionControllerUnmatchData;
12509
+ };
12510
+ '/api/v1/users/setting': {
12511
+ put: {
12512
+ req: UserControllerUpdateUserSettingData;
11626
12513
  res: {
11627
12514
  /**
11628
- * Match removed successfully
12515
+ * Settings updated successfully
11629
12516
  */
11630
12517
  200: unknown;
11631
12518
  /**
11632
- * Cannot unmatch - not in COMPLETED status
11633
- */
11634
- 400: unknown;
11635
- /**
11636
- * Expected transaction not found
12519
+ * Insufficient permissions
11637
12520
  */
11638
- 404: unknown;
12521
+ 403: unknown;
11639
12522
  };
11640
12523
  };
11641
12524
  };
11642
- '/api/v1/{region}/bean/expected-transactions/{id}/enter': {
11643
- post: {
11644
- req: ExpectedTransactionControllerEnterNowData;
12525
+ '/api/v1/users/settings-by-page': {
12526
+ get: {
12527
+ req: UserControllerGetAllUserSettingsByPageData;
11645
12528
  res: {
11646
12529
  /**
11647
- * Transaction created successfully
11648
- */
11649
- 201: unknown;
11650
- /**
11651
- * Cannot enter - not in PENDING status or missing accounts
11652
- */
11653
- 400: unknown;
11654
- /**
11655
- * Expected transaction or accounts not found
12530
+ * Settings list retrieved successfully
11656
12531
  */
11657
- 404: unknown;
12532
+ 200: unknown;
11658
12533
  };
11659
12534
  };
11660
12535
  };
11661
- '/api/v1/{region}/bean/recurring/forecast': {
12536
+ '/api/v1/users/asset-liability-summary': {
11662
12537
  get: {
11663
- req: ForecastControllerGetForecastData;
11664
12538
  res: {
11665
12539
  /**
11666
- * Forecast retrieved successfully
12540
+ * Summary retrieved successfully
11667
12541
  */
11668
- 200: ForecastResponseDto;
12542
+ 200: unknown;
11669
12543
  };
11670
12544
  };
11671
12545
  };
11672
- '/api/v1/{region}/reporting/portfolio/trends': {
12546
+ '/api/v1/admin/properties': {
11673
12547
  get: {
11674
- req: ReportingControllerGetPortfolioTrendsData;
11675
12548
  res: {
11676
12549
  /**
11677
- * Trends retrieved successfully
12550
+ * Properties retrieved successfully
11678
12551
  */
11679
- 200: PortfolioTrendsResponseDto;
12552
+ 200: unknown;
11680
12553
  /**
11681
- * User not authenticated
12554
+ * Unauthorized
11682
12555
  */
11683
12556
  401: unknown;
12557
+ /**
12558
+ * Forbidden - insufficient permissions
12559
+ */
12560
+ 403: unknown;
11684
12561
  };
11685
12562
  };
11686
12563
  };
11687
- '/api/v1/{region}/reporting/cash-flow/trends': {
12564
+ '/api/v1/admin/properties/{key}': {
11688
12565
  get: {
11689
- req: ReportingControllerGetCashFlowTrendsData;
12566
+ req: PropertyControllerGetByKeyData;
11690
12567
  res: {
11691
12568
  /**
11692
- * Cash-flow trends retrieved successfully
12569
+ * Property retrieved successfully
11693
12570
  */
11694
- 200: CashFlowTrendsResponseDto;
12571
+ 200: unknown;
11695
12572
  /**
11696
- * User not authenticated
12573
+ * Unauthorized
11697
12574
  */
11698
12575
  401: unknown;
12576
+ /**
12577
+ * Forbidden - insufficient permissions
12578
+ */
12579
+ 403: unknown;
12580
+ /**
12581
+ * Property not found
12582
+ */
12583
+ 404: unknown;
11699
12584
  };
11700
12585
  };
11701
- };
11702
- '/api/v1/{region}/reporting/snapshots/generate': {
11703
- post: {
11704
- req: ReportingControllerGenerateSnapshotData;
12586
+ put: {
12587
+ req: PropertyControllerUpdateData;
11705
12588
  res: {
11706
12589
  /**
11707
- * Snapshot generated successfully
12590
+ * Property updated successfully
11708
12591
  */
11709
- 200: GenerateSnapshotResponse;
12592
+ 200: unknown;
11710
12593
  /**
11711
- * Invalid date format
12594
+ * Unauthorized
11712
12595
  */
11713
- 400: unknown;
12596
+ 401: unknown;
11714
12597
  /**
11715
- * User not authenticated
12598
+ * Forbidden - insufficient permissions
12599
+ */
12600
+ 403: unknown;
12601
+ };
12602
+ };
12603
+ delete: {
12604
+ req: PropertyControllerDeleteData;
12605
+ res: {
12606
+ /**
12607
+ * Property deleted successfully
12608
+ */
12609
+ 204: void;
12610
+ /**
12611
+ * Unauthorized
11716
12612
  */
11717
12613
  401: unknown;
12614
+ /**
12615
+ * Forbidden - insufficient permissions
12616
+ */
12617
+ 403: unknown;
12618
+ /**
12619
+ * Property not found
12620
+ */
12621
+ 404: unknown;
11718
12622
  };
11719
12623
  };
11720
12624
  };
11721
- '/api/v1/{region}/reporting/snapshots/backfill': {
12625
+ '/api/v1/{region}/bean/recurring-rules': {
11722
12626
  post: {
11723
- req: ReportingControllerBackfillSnapshotsData;
12627
+ req: RecurringRuleControllerCreateData;
11724
12628
  res: {
11725
12629
  /**
11726
- * Backfill completed successfully
12630
+ * Rule created successfully
11727
12631
  */
11728
- 200: BackfillSnapshotsResponse;
12632
+ 201: RecurringRuleResponseDto;
11729
12633
  /**
11730
- * Invalid date format or range
12634
+ * Invalid input data (e.g., autoCreate without accounts)
11731
12635
  */
11732
12636
  400: unknown;
11733
12637
  /**
11734
- * User not authenticated
12638
+ * Rule with same name already exists
11735
12639
  */
11736
- 401: unknown;
12640
+ 409: unknown;
12641
+ };
12642
+ };
12643
+ get: {
12644
+ req: RecurringRuleControllerFindAllData;
12645
+ res: {
11737
12646
  /**
11738
- * Backfill already in progress for this user
12647
+ * Rules retrieved successfully
11739
12648
  */
11740
- 409: unknown;
12649
+ 200: Array<RecurringRuleResponseDto>;
11741
12650
  };
11742
12651
  };
11743
12652
  };
11744
- '/api/v1/users': {
11745
- delete: {
11746
- req: UserControllerDeleteOwnUserData;
12653
+ '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}': {
12654
+ post: {
12655
+ req: RecurringRuleControllerCreateFromTransactionData;
11747
12656
  res: {
11748
12657
  /**
11749
- * User deleted successfully
12658
+ * Rule created successfully
11750
12659
  */
11751
- 204: void;
12660
+ 201: RecurringRuleResponseDto;
11752
12661
  /**
11753
- * Invalid access token
12662
+ * Transaction not found
11754
12663
  */
11755
- 403: unknown;
12664
+ 404: ApiProblemResponseDto;
12665
+ /**
12666
+ * Rule with same name already exists or transaction already linked
12667
+ */
12668
+ 409: ApiProblemResponseDto;
11756
12669
  };
11757
12670
  };
12671
+ };
12672
+ '/api/v1/{region}/bean/recurring-rules/{id}': {
11758
12673
  get: {
11759
- req: UserControllerGetUserData;
12674
+ req: RecurringRuleControllerFindOneData;
11760
12675
  res: {
11761
12676
  /**
11762
- * User retrieved successfully
12677
+ * Rule retrieved successfully
11763
12678
  */
11764
- 200: UserResponseDto;
12679
+ 200: RecurringRuleResponseDto;
12680
+ /**
12681
+ * Rule not found
12682
+ */
12683
+ 404: unknown;
11765
12684
  };
11766
12685
  };
11767
- post: {
11768
- req: UserControllerSignupUserData;
12686
+ patch: {
12687
+ req: RecurringRuleControllerUpdateData;
11769
12688
  res: {
11770
12689
  /**
11771
- * User created successfully
12690
+ * Rule updated successfully
11772
12691
  */
11773
- 201: SignupResponseDto;
12692
+ 200: RecurringRuleResponseDto;
11774
12693
  /**
11775
- * Invalid Turnstile token (when Turnstile is enabled)
12694
+ * Invalid input data
11776
12695
  */
11777
12696
  400: unknown;
11778
12697
  /**
11779
- * User signup is disabled
12698
+ * Rule not found
11780
12699
  */
11781
- 403: unknown;
12700
+ 404: unknown;
11782
12701
  };
11783
12702
  };
11784
- };
11785
- '/api/v1/users/{id}': {
11786
12703
  delete: {
11787
- req: UserControllerDeleteUserData;
12704
+ req: RecurringRuleControllerDeleteData;
11788
12705
  res: {
11789
12706
  /**
11790
- * User deleted successfully
12707
+ * Rule deleted successfully
11791
12708
  */
11792
12709
  204: void;
11793
12710
  /**
11794
- * Cannot delete own account or insufficient permissions
12711
+ * Rule not found
11795
12712
  */
11796
- 403: unknown;
12713
+ 404: unknown;
11797
12714
  };
11798
12715
  };
11799
12716
  };
11800
- '/api/v1/users/{id}/info': {
12717
+ '/api/v1/{region}/bean/recurring-rules/{id}/stats': {
11801
12718
  get: {
11802
- req: UserControllerGetUserInfoData;
12719
+ req: RecurringRuleControllerGetWithStatsData;
11803
12720
  res: {
11804
12721
  /**
11805
- * User info retrieved successfully
12722
+ * Rule with stats retrieved successfully
11806
12723
  */
11807
- 200: unknown;
12724
+ 200: RecurringRuleWithStatsResponseDto;
11808
12725
  /**
11809
- * Cannot access other user info without admin permission
12726
+ * Rule not found
11810
12727
  */
11811
- 403: unknown;
12728
+ 404: unknown;
11812
12729
  };
11813
12730
  };
11814
12731
  };
11815
- '/api/v1/users/setting': {
11816
- put: {
11817
- req: UserControllerUpdateUserSettingData;
12732
+ '/api/v1/{region}/bean/expected-transactions': {
12733
+ get: {
12734
+ req: ExpectedTransactionControllerFindAllData;
11818
12735
  res: {
11819
12736
  /**
11820
- * Settings updated successfully
11821
- */
11822
- 200: unknown;
11823
- /**
11824
- * Insufficient permissions
12737
+ * Expected transactions retrieved successfully
11825
12738
  */
11826
- 403: unknown;
12739
+ 200: ExpectedTransactionListResponseDto;
11827
12740
  };
11828
12741
  };
11829
12742
  };
11830
- '/api/v1/users/settings-by-page': {
12743
+ '/api/v1/{region}/bean/expected-transactions/overdue': {
11831
12744
  get: {
11832
- req: UserControllerGetAllUserSettingsByPageData;
12745
+ req: ExpectedTransactionControllerFindOverdueData;
11833
12746
  res: {
11834
12747
  /**
11835
- * Settings list retrieved successfully
12748
+ * Overdue transactions retrieved successfully
11836
12749
  */
11837
- 200: unknown;
12750
+ 200: ExpectedTransactionListResponseDto;
11838
12751
  };
11839
12752
  };
11840
12753
  };
11841
- '/api/v1/users/asset-liability-summary': {
12754
+ '/api/v1/{region}/bean/expected-transactions/{id}': {
11842
12755
  get: {
12756
+ req: ExpectedTransactionControllerFindOneData;
11843
12757
  res: {
11844
12758
  /**
11845
- * Summary retrieved successfully
12759
+ * Expected transaction retrieved successfully
11846
12760
  */
11847
- 200: unknown;
12761
+ 200: ExpectedTransactionResponseDto;
12762
+ /**
12763
+ * Expected transaction not found
12764
+ */
12765
+ 404: unknown;
11848
12766
  };
11849
12767
  };
11850
12768
  };
11851
- '/api/v1/admin/properties': {
11852
- get: {
12769
+ '/api/v1/{region}/bean/expected-transactions/{id}/skip': {
12770
+ post: {
12771
+ req: ExpectedTransactionControllerSkipData;
11853
12772
  res: {
11854
12773
  /**
11855
- * Properties retrieved successfully
12774
+ * Expected transaction skipped successfully
11856
12775
  */
11857
- 200: unknown;
12776
+ 200: ExpectedTransactionResponseDto;
11858
12777
  /**
11859
- * Unauthorized
12778
+ * Cannot skip - not in PENDING status
11860
12779
  */
11861
- 401: unknown;
12780
+ 400: unknown;
11862
12781
  /**
11863
- * Forbidden - insufficient permissions
12782
+ * Expected transaction not found
11864
12783
  */
11865
- 403: unknown;
12784
+ 404: unknown;
11866
12785
  };
11867
12786
  };
11868
- };
11869
- '/api/v1/admin/properties/{key}': {
11870
- get: {
11871
- req: PropertyControllerGetByKeyData;
12787
+ delete: {
12788
+ req: ExpectedTransactionControllerUndoSkipData;
11872
12789
  res: {
11873
12790
  /**
11874
- * Property retrieved successfully
11875
- */
11876
- 200: unknown;
11877
- /**
11878
- * Unauthorized
12791
+ * Skip undone successfully
11879
12792
  */
11880
- 401: unknown;
12793
+ 204: void;
11881
12794
  /**
11882
- * Forbidden - insufficient permissions
12795
+ * Cannot undo - not in SKIPPED status
11883
12796
  */
11884
- 403: unknown;
12797
+ 400: unknown;
11885
12798
  /**
11886
- * Property not found
12799
+ * Expected transaction not found
11887
12800
  */
11888
12801
  404: unknown;
11889
12802
  };
11890
12803
  };
11891
- put: {
11892
- req: PropertyControllerUpdateData;
12804
+ };
12805
+ '/api/v1/{region}/bean/expected-transactions/{id}/match': {
12806
+ post: {
12807
+ req: ExpectedTransactionControllerConfirmMatchData;
11893
12808
  res: {
11894
12809
  /**
11895
- * Property updated successfully
12810
+ * Match confirmed successfully
11896
12811
  */
11897
12812
  200: unknown;
11898
12813
  /**
11899
- * Unauthorized
12814
+ * Cannot match - not in PENDING status
11900
12815
  */
11901
- 401: unknown;
12816
+ 400: unknown;
11902
12817
  /**
11903
- * Forbidden - insufficient permissions
12818
+ * Expected or actual transaction not found
11904
12819
  */
11905
- 403: unknown;
12820
+ 404: unknown;
12821
+ /**
12822
+ * Actual transaction already matched to another rule
12823
+ */
12824
+ 409: unknown;
11906
12825
  };
11907
12826
  };
11908
12827
  delete: {
11909
- req: PropertyControllerDeleteData;
12828
+ req: ExpectedTransactionControllerUnmatchData;
11910
12829
  res: {
11911
12830
  /**
11912
- * Property deleted successfully
12831
+ * Match removed successfully
11913
12832
  */
11914
12833
  204: void;
11915
12834
  /**
11916
- * Unauthorized
12835
+ * Cannot unmatch - not in COMPLETED status
11917
12836
  */
11918
- 401: unknown;
12837
+ 400: unknown;
11919
12838
  /**
11920
- * Forbidden - insufficient permissions
12839
+ * Expected transaction not found
11921
12840
  */
11922
- 403: unknown;
12841
+ 404: unknown;
12842
+ };
12843
+ };
12844
+ };
12845
+ '/api/v1/{region}/bean/expected-transactions/{id}/enter': {
12846
+ post: {
12847
+ req: ExpectedTransactionControllerEnterNowData;
12848
+ res: {
11923
12849
  /**
11924
- * Property not found
12850
+ * Transaction created successfully
12851
+ */
12852
+ 201: unknown;
12853
+ /**
12854
+ * Cannot enter - not in PENDING status or missing accounts
12855
+ */
12856
+ 400: unknown;
12857
+ /**
12858
+ * Expected transaction or accounts not found
11925
12859
  */
11926
12860
  404: unknown;
11927
12861
  };
11928
12862
  };
11929
12863
  };
12864
+ '/api/v1/{region}/bean/recurring/forecast': {
12865
+ get: {
12866
+ req: ForecastControllerGetForecastData;
12867
+ res: {
12868
+ /**
12869
+ * Forecast retrieved successfully
12870
+ */
12871
+ 200: ForecastResponseDto;
12872
+ };
12873
+ };
12874
+ };
11930
12875
  '/api/v1/{region}/bean/transaction-rules': {
11931
12876
  post: {
11932
12877
  req: TransactionRuleControllerCreateData;
@@ -12324,7 +13269,10 @@ export type $OpenApiTs = {
12324
13269
  '/api/v1/{region}/bean/export/beancount': {
12325
13270
  get: {
12326
13271
  res: {
12327
- 200: unknown;
13272
+ /**
13273
+ * ZIP archive (application/zip) streamed as an attachment
13274
+ */
13275
+ 200: Blob | File;
12328
13276
  };
12329
13277
  };
12330
13278
  };
@@ -12705,6 +13653,17 @@ export type $OpenApiTs = {
12705
13653
  };
12706
13654
  };
12707
13655
  };
13656
+ '/api/v1/bean/platforms/{id}/standards': {
13657
+ get: {
13658
+ req: PlatformControllerGetPlatformStandardsData;
13659
+ res: {
13660
+ /**
13661
+ * Resolved region plus the merged account-standard catalog of that region (groupable by productCategory client-side)
13662
+ */
13663
+ 200: PlatformStandardsResponseDto;
13664
+ };
13665
+ };
13666
+ };
12708
13667
  '/api/v1/bean/platforms/{id}': {
12709
13668
  put: {
12710
13669
  req: PlatformControllerUpdateData;
@@ -12852,10 +13811,48 @@ export type $OpenApiTs = {
12852
13811
  };
12853
13812
  };
12854
13813
  };
13814
+ '/api/v1/{region}/community/parser-contributions': {
13815
+ post: {
13816
+ req: ParserContributionControllerCreateData;
13817
+ res: {
13818
+ /**
13819
+ * Issue created by the bot
13820
+ */
13821
+ 201: ParserContributionRelayResponseDto;
13822
+ /**
13823
+ * Unauthorized
13824
+ */
13825
+ 401: ApiProblemResponseDto;
13826
+ /**
13827
+ * Validation failed (institution slug, empty samples, row/cell size limits)
13828
+ */
13829
+ 422: ApiProblemResponseDto;
13830
+ /**
13831
+ * Rate limited (5 submissions per user per hour)
13832
+ */
13833
+ 429: ApiProblemResponseDto;
13834
+ /**
13835
+ * Relay not configured on this deployment — clients fall back to the clipboard flow
13836
+ */
13837
+ 501: ApiProblemResponseDto;
13838
+ /**
13839
+ * GitHub bot failure (upstream), safe to retry
13840
+ */
13841
+ 502: ApiProblemResponseDto;
13842
+ };
13843
+ };
13844
+ };
12855
13845
  '/api/v1/cache/flush': {
12856
13846
  post: {
12857
13847
  res: {
12858
- 201: unknown;
13848
+ /**
13849
+ * Cache flushed successfully
13850
+ */
13851
+ 200: unknown;
13852
+ /**
13853
+ * Admin access required
13854
+ */
13855
+ 403: ApiProblemResponseDto;
12859
13856
  };
12860
13857
  };
12861
13858
  };