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

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.
@@ -249,19 +249,23 @@ export type AccountStandardResponseDto = {
249
249
  /**
250
250
  * i18n key for localized display name
251
251
  */
252
- i18nKey?: string;
252
+ i18nKey: string;
253
253
  /**
254
- * Account description
254
+ * Short localized display name
255
255
  */
256
- description?: string;
256
+ name?: string;
257
+ /**
258
+ * Account description (stable semantics only)
259
+ */
260
+ description: string;
257
261
  /**
258
262
  * Account tags for categorization
259
263
  */
260
- tags?: Array<string>;
264
+ tags: Array<string>;
261
265
  /**
262
266
  * Icon identifier for UI display
263
267
  */
264
- icon?: string;
268
+ icon: string;
265
269
  };
266
270
 
267
271
  export type AccountStandardListResponseDto = {
@@ -312,6 +316,53 @@ export type RegionsMetadataResponseDto = {
312
316
  regions: Array<RegionInfoDto>;
313
317
  };
314
318
 
319
+ export type CostSpecDto = {
320
+ /**
321
+ * Cost specification mode (mirrors engine CostSpec)
322
+ */
323
+ mode: 'per-unit' | 'total' | 'date' | 'label' | 'auto';
324
+ /**
325
+ * Per-unit cost (required when mode is "per-unit")
326
+ */
327
+ numberPerUnit?: string;
328
+ /**
329
+ * Total cost for all units (required when mode is "total")
330
+ */
331
+ totalNumber?: string;
332
+ /**
333
+ * Cost currency (required in all modes)
334
+ */
335
+ currency: string;
336
+ /**
337
+ * Lot acquisition date, ISO 8601 (required when mode is "date")
338
+ */
339
+ date?: string;
340
+ /**
341
+ * Lot label (required when mode is "label"; optional tag in buy modes)
342
+ */
343
+ label?: string;
344
+ /**
345
+ * Merge lots for AVERAGE booking (mode: auto)
346
+ */
347
+ merge?: boolean;
348
+ };
349
+
350
+ /**
351
+ * Cost specification mode (mirrors engine CostSpec)
352
+ */
353
+ export type mode = 'per-unit' | 'total' | 'date' | 'label' | 'auto';
354
+
355
+ export type AmountDto = {
356
+ /**
357
+ * Amount as decimal string (max 15 integer + 15 decimal digits)
358
+ */
359
+ number: string;
360
+ /**
361
+ * Currency/commodity code
362
+ */
363
+ currency: string;
364
+ };
365
+
315
366
  export type CreatePostingDto = {
316
367
  /**
317
368
  * Account name in Beancount format (must start with uppercase, colon-separated)
@@ -331,6 +382,14 @@ export type CreatePostingDto = {
331
382
  meta?: {
332
383
  [key: string]: unknown;
333
384
  };
385
+ /**
386
+ * Cost basis (Beancount `{...}`). Maps to engine costSpec. Required for commodity holdings so they carry a monetary weight that can balance.
387
+ */
388
+ cost?: CostSpecDto;
389
+ /**
390
+ * Price annotation (Beancount `@...`). Maps to engine price. Used for valuation; cost takes priority for balance weight.
391
+ */
392
+ price?: AmountDto;
334
393
  };
335
394
 
336
395
  export type CreateTransactionDto = {
@@ -383,19 +442,42 @@ export type CreateTransactionDto = {
383
442
  */
384
443
  export type flag = '*' | '!';
385
444
 
445
+ export type CostDetailDto = {
446
+ /**
447
+ * Per-unit cost basis (mirrors engine Cost.number)
448
+ */
449
+ number?: string;
450
+ /**
451
+ * Cost currency
452
+ */
453
+ currency?: string;
454
+ /**
455
+ * Lot acquisition date (ISO yyyy-mm-dd)
456
+ */
457
+ date?: string;
458
+ /**
459
+ * Lot label
460
+ */
461
+ label?: string;
462
+ };
463
+
386
464
  export type PostingResponseDto = {
387
465
  /**
388
466
  * Account name
389
467
  */
390
468
  account: string;
391
469
  /**
392
- * Amount (may be null if interpolated)
470
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
393
471
  */
394
472
  units?: string;
395
473
  /**
396
474
  * Currency
397
475
  */
398
476
  currency?: string;
477
+ /**
478
+ * Booking-resolved cost (mirrors engine Cost). Undefined when the posting has no cost basis.
479
+ */
480
+ cost?: CostDetailDto;
399
481
  };
400
482
 
401
483
  export type RecurringSuggestionDto = {
@@ -540,6 +622,10 @@ export type BatchTransactionErrorDto = {
540
622
  * Error message describing the failure
541
623
  */
542
624
  error: string;
625
+ /**
626
+ * Structured error code for programmatic handling
627
+ */
628
+ errorCode?: string;
543
629
  };
544
630
 
545
631
  export type BatchTransactionResponseDto = {
@@ -553,6 +639,55 @@ export type BatchTransactionResponseDto = {
553
639
  failed: Array<BatchTransactionErrorDto>;
554
640
  };
555
641
 
642
+ export type CorrectTransactionDto = {
643
+ /**
644
+ * Transaction date (ISO 8601 format)
645
+ */
646
+ date: string;
647
+ /**
648
+ * Transaction flag: * (cleared), ! (pending)
649
+ */
650
+ flag?: '*' | '!';
651
+ /**
652
+ * Payee name
653
+ */
654
+ payee?: string;
655
+ /**
656
+ * Transaction narration/description
657
+ */
658
+ narration: string;
659
+ /**
660
+ * Transaction tags (without # prefix)
661
+ */
662
+ tags?: Array<string>;
663
+ /**
664
+ * Transaction links (without ^ prefix)
665
+ */
666
+ links?: Array<string>;
667
+ /**
668
+ * Transaction postings (minimum 1, typically 2 for double-entry)
669
+ */
670
+ postings: Array<CreatePostingDto>;
671
+ /**
672
+ * Transaction-level metadata
673
+ */
674
+ meta?: {
675
+ [key: string]: unknown;
676
+ };
677
+ /**
678
+ * Unique key for idempotent transaction creation. If provided, duplicate requests with the same key will return the existing transaction.
679
+ */
680
+ idempotencyKey?: string;
681
+ /**
682
+ * Auto-create accounts if not found. When true, missing accounts will be automatically created. When false (default for API), missing accounts will cause a validation error. Set to true for quick entry scenarios where you want to create accounts on-the-fly.
683
+ */
684
+ autoCreateAccounts?: boolean;
685
+ /**
686
+ * Reason for correcting/superseding the original transaction
687
+ */
688
+ correctionReason?: string;
689
+ };
690
+
556
691
  export type PostingDetailDto = {
557
692
  /**
558
693
  * Posting ID
@@ -563,11 +698,11 @@ export type PostingDetailDto = {
563
698
  */
564
699
  accountId: string;
565
700
  /**
566
- * Account name
701
+ * Fully-qualified Beancount account path
567
702
  */
568
- accountName: string;
703
+ account: string;
569
704
  /**
570
- * Amount (may be null if interpolated)
705
+ * Amount as decimal string. Typed optional but always present in responses: interpolation fills any MISSING posting before it is persisted or returned.
571
706
  */
572
707
  units?: string;
573
708
  /**
@@ -586,6 +721,10 @@ export type PostingDetailDto = {
586
721
  * Cost date
587
722
  */
588
723
  costDate?: string;
724
+ /**
725
+ * Booking-resolved cost (mirrors engine Cost). Undefined when the posting has no cost basis.
726
+ */
727
+ cost?: CostDetailDto;
589
728
  /**
590
729
  * Price amount
591
730
  */
@@ -656,9 +795,9 @@ export type TransactionDetailDto = {
656
795
  */
657
796
  status: 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
658
797
  /**
659
- * Source type (how the transaction was created)
798
+ * Source type (free-form string from transaction metadata, e.g. import, api)
660
799
  */
661
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
800
+ sourceType?: string;
662
801
  /**
663
802
  * Source platform (e.g., alipay, wechat)
664
803
  */
@@ -683,6 +822,14 @@ export type TransactionDetailDto = {
683
822
  * Correction reason (if voided or superseded)
684
823
  */
685
824
  correctionReason?: string;
825
+ /**
826
+ * ID of the transaction that supersedes this one (set when status=SUPERSEDED)
827
+ */
828
+ supersededBy?: string;
829
+ /**
830
+ * ID of the transaction this one corrected/replaced (back-link on the replacement)
831
+ */
832
+ originalTxn?: string;
686
833
  };
687
834
 
688
835
  /**
@@ -701,11 +848,6 @@ export type flag2 =
701
848
  */
702
849
  export type status2 = 'ACTIVE' | 'VOIDED' | 'SUPERSEDED';
703
850
 
704
- /**
705
- * Source type (how the transaction was created)
706
- */
707
- export type sourceType = 'NLP' | 'CSV' | 'OCR' | 'API';
708
-
709
851
  export type TransactionListResponseDto = {
710
852
  /**
711
853
  * List of transactions
@@ -725,6 +867,24 @@ export type TransactionListResponseDto = {
725
867
  offset: number;
726
868
  };
727
869
 
870
+ export type TagSuggestionDto = {
871
+ /**
872
+ * Tag name
873
+ */
874
+ tag: string;
875
+ /**
876
+ * Usage count across ACTIVE transactions
877
+ */
878
+ count: number;
879
+ };
880
+
881
+ export type TagSuggestionsResponseDto = {
882
+ /**
883
+ * Tag suggestions sorted as requested
884
+ */
885
+ data: Array<TagSuggestionDto>;
886
+ };
887
+
728
888
  export type UpdateTransactionDto = {
729
889
  /**
730
890
  * Transaction flag (CLEARED, PENDING, etc.)
@@ -826,9 +986,9 @@ export type TransactionSummaryDto = {
826
986
  */
827
987
  accountName?: string;
828
988
  /**
829
- * Source type (NLP, CSV, OCR, API)
989
+ * Source type (free-form string from transaction metadata, e.g. import, api)
830
990
  */
831
- sourceType?: 'NLP' | 'CSV' | 'OCR' | 'API';
991
+ sourceType?: string;
832
992
  /**
833
993
  * Source platform (e.g., alipay, wechat)
834
994
  */
@@ -858,9 +1018,9 @@ export type ReviewSummaryDto = {
858
1018
  */
859
1019
  confidence: number;
860
1020
  /**
861
- * Confidence level derived from score
1021
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
862
1022
  */
863
- confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW';
1023
+ confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW' | null;
864
1024
  /**
865
1025
  * i18n message key for summary (e.g., review.summary.duplicate). Translate on frontend with summaryParams.
866
1026
  */
@@ -876,7 +1036,7 @@ export type ReviewSummaryDto = {
876
1036
  */
877
1037
  matchReasons: Array<string>;
878
1038
  /**
879
- * Source type (NLP, CSV, OCR, API)
1039
+ * Source type (free-form string from transaction metadata, e.g. import, api)
880
1040
  */
881
1041
  sourceType: string;
882
1042
  /**
@@ -929,7 +1089,7 @@ export type type2 =
929
1089
  export type status3 = 'PENDING' | 'RESOLVED' | 'EXPIRED' | 'CANCELLED';
930
1090
 
931
1091
  /**
932
- * Confidence level derived from score
1092
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
933
1093
  */
934
1094
  export type confidenceLevel = 'HIGH' | 'MEDIUM' | 'LOW';
935
1095
 
@@ -974,7 +1134,18 @@ export type DecisionOptionDto = {
974
1134
  /**
975
1135
  * The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
976
1136
  */
977
- value: string;
1137
+ value:
1138
+ | 'UPGRADE_REPLACE'
1139
+ | 'LINK_KEEP_BOTH'
1140
+ | 'IGNORE_NEW'
1141
+ | 'CONFIRM_DIFFERENT'
1142
+ | 'ACCEPT'
1143
+ | 'REJECT'
1144
+ | 'ACCEPT_AND_LEARN'
1145
+ | 'CHOOSE_OTHER'
1146
+ | 'CANCEL'
1147
+ | 'FIX'
1148
+ | 'IGNORE';
978
1149
  /**
979
1150
  * i18n message key for display label (e.g., review.payee.accept.label)
980
1151
  */
@@ -989,6 +1160,22 @@ export type DecisionOptionDto = {
989
1160
  recommended?: boolean;
990
1161
  };
991
1162
 
1163
+ /**
1164
+ * The action value to submit (e.g., UPGRADE_REPLACE, ACCEPT)
1165
+ */
1166
+ export type value =
1167
+ | 'UPGRADE_REPLACE'
1168
+ | 'LINK_KEEP_BOTH'
1169
+ | 'IGNORE_NEW'
1170
+ | 'CONFIRM_DIFFERENT'
1171
+ | 'ACCEPT'
1172
+ | 'REJECT'
1173
+ | 'ACCEPT_AND_LEARN'
1174
+ | 'CHOOSE_OTHER'
1175
+ | 'CANCEL'
1176
+ | 'FIX'
1177
+ | 'IGNORE';
1178
+
992
1179
  export type ReviewDetailDto = {
993
1180
  /**
994
1181
  * Review item ID
@@ -1012,9 +1199,9 @@ export type ReviewDetailDto = {
1012
1199
  */
1013
1200
  confidence: number;
1014
1201
  /**
1015
- * Confidence level derived from score
1202
+ * Confidence level derived from score. Null for error-type reviews (ACCOUNT_VALIDATION/PIPELINE_ERROR) which carry no confidence.
1016
1203
  */
1017
- confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW';
1204
+ confidenceLevel: 'HIGH' | 'MEDIUM' | 'LOW' | null;
1018
1205
  /**
1019
1206
  * i18n message key for summary (e.g., review.summary.duplicate). Translate on frontend with summaryParams.
1020
1207
  */
@@ -1030,7 +1217,7 @@ export type ReviewDetailDto = {
1030
1217
  */
1031
1218
  matchReasons: Array<string>;
1032
1219
  /**
1033
- * Source type (NLP, CSV, OCR, API)
1220
+ * Source type (free-form string from transaction metadata, e.g. import, api)
1034
1221
  */
1035
1222
  sourceType: string;
1036
1223
  /**
@@ -1083,9 +1270,20 @@ export type ReviewDetailDto = {
1083
1270
 
1084
1271
  export type ResolveReviewDto = {
1085
1272
  /**
1086
- * Decision action. Available actions vary by review type: DUPLICATE: UPGRADE_REPLACE, KEEP_EXISTING, KEEP_BOTH | PAYEE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN | ACCOUNT_VALIDATION: FIX, REJECT | RULE_MATCH: ACCEPT, REJECT, ACCEPT_AND_LEARN
1273
+ * Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
1087
1274
  */
1088
- action: string;
1275
+ action:
1276
+ | 'UPGRADE_REPLACE'
1277
+ | 'LINK_KEEP_BOTH'
1278
+ | 'IGNORE_NEW'
1279
+ | 'CONFIRM_DIFFERENT'
1280
+ | 'ACCEPT'
1281
+ | 'REJECT'
1282
+ | 'ACCEPT_AND_LEARN'
1283
+ | 'CHOOSE_OTHER'
1284
+ | 'CANCEL'
1285
+ | 'FIX'
1286
+ | 'IGNORE';
1089
1287
  /**
1090
1288
  * Additional data for the decision (e.g., selected account ID)
1091
1289
  */
@@ -1094,6 +1292,22 @@ export type ResolveReviewDto = {
1094
1292
  };
1095
1293
  };
1096
1294
 
1295
+ /**
1296
+ * Decision action. Valid actions vary by review type — see DecisionOptionDto.value returned by the review detail endpoint.
1297
+ */
1298
+ export type action =
1299
+ | 'UPGRADE_REPLACE'
1300
+ | 'LINK_KEEP_BOTH'
1301
+ | 'IGNORE_NEW'
1302
+ | 'CONFIRM_DIFFERENT'
1303
+ | 'ACCEPT'
1304
+ | 'REJECT'
1305
+ | 'ACCEPT_AND_LEARN'
1306
+ | 'CHOOSE_OTHER'
1307
+ | 'CANCEL'
1308
+ | 'FIX'
1309
+ | 'IGNORE';
1310
+
1097
1311
  export type ResolveResultDto = {
1098
1312
  /**
1099
1313
  * Whether resolution was successful
@@ -1110,17 +1324,17 @@ export type ResolveResultDto = {
1110
1324
  [key: string]: string;
1111
1325
  };
1112
1326
  /**
1113
- * Resolution ID for undo
1327
+ * Resolution ID for undo. Absent when the resolver rejected the decision (review stayed PENDING).
1114
1328
  */
1115
- resolutionId: string;
1329
+ resolutionId?: string;
1116
1330
  /**
1117
1331
  * Whether this decision can be undone
1118
1332
  */
1119
- canUndo: boolean;
1333
+ canUndo?: boolean;
1120
1334
  /**
1121
1335
  * Deadline for undo (24h from resolution)
1122
1336
  */
1123
- undoDeadline: string;
1337
+ undoDeadline?: string;
1124
1338
  /**
1125
1339
  * Rule ID if learning was triggered (ACCEPT_AND_LEARN actions). Use this to deep-link to the rule management page.
1126
1340
  */
@@ -1150,7 +1364,18 @@ export type BatchResolveDto = {
1150
1364
  /**
1151
1365
  * Decision action to apply to all items
1152
1366
  */
1153
- action: string;
1367
+ action:
1368
+ | 'UPGRADE_REPLACE'
1369
+ | 'LINK_KEEP_BOTH'
1370
+ | 'IGNORE_NEW'
1371
+ | 'CONFIRM_DIFFERENT'
1372
+ | 'ACCEPT'
1373
+ | 'REJECT'
1374
+ | 'ACCEPT_AND_LEARN'
1375
+ | 'CHOOSE_OTHER'
1376
+ | 'CANCEL'
1377
+ | 'FIX'
1378
+ | 'IGNORE';
1154
1379
  /**
1155
1380
  * Additional data for the decision
1156
1381
  */
@@ -2804,6 +3029,96 @@ export type UpdatePropertyDto = {
2804
3029
  value: string;
2805
3030
  };
2806
3031
 
3032
+ export type CreateBeanEventDto = {
3033
+ /**
3034
+ * Life event date (ISO 8601)
3035
+ */
3036
+ date: string;
3037
+ /**
3038
+ * Life event type (e.g., "employer", "location", "marital-status") — user-defined, no enum constraint at engine layer
3039
+ */
3040
+ type: string;
3041
+ /**
3042
+ * Life event description. Empty string is a VALID value (distinct from absence).
3043
+ */
3044
+ description: string;
3045
+ /**
3046
+ * Product-side metadata (lives in BeanEvent.meta JSON, never in engine Event fields)
3047
+ */
3048
+ meta?: {
3049
+ [key: string]: unknown;
3050
+ };
3051
+ };
3052
+
3053
+ export type EventResponseDto = {
3054
+ /**
3055
+ * Unique identifier
3056
+ */
3057
+ id: string;
3058
+ /**
3059
+ * User ID (owner of the life event)
3060
+ */
3061
+ userId: string;
3062
+ /**
3063
+ * Life event date (ISO 8601 format)
3064
+ */
3065
+ date: string;
3066
+ /**
3067
+ * Life event type (user-defined, e.g., "employer", "location")
3068
+ */
3069
+ type: string;
3070
+ /**
3071
+ * Life event description. May be an empty string (a valid value distinct from absence).
3072
+ */
3073
+ description: string;
3074
+ /**
3075
+ * Product-side metadata (free-form JSON)
3076
+ */
3077
+ meta: {
3078
+ [key: string]: unknown;
3079
+ };
3080
+ /**
3081
+ * Creation timestamp
3082
+ */
3083
+ createdAt: string;
3084
+ /**
3085
+ * Last update timestamp. Also emitted as the ETag response header for If-Match optimistic concurrency.
3086
+ */
3087
+ updatedAt: string;
3088
+ };
3089
+
3090
+ export type EventListResponseDto = {
3091
+ /**
3092
+ * List of life events
3093
+ */
3094
+ items: Array<EventResponseDto>;
3095
+ /**
3096
+ * Total number of life events matching the query
3097
+ */
3098
+ total: number;
3099
+ };
3100
+
3101
+ export type UpdateBeanEventDto = {
3102
+ /**
3103
+ * Life event date (ISO 8601)
3104
+ */
3105
+ date?: string;
3106
+ /**
3107
+ * Life event type (user-defined)
3108
+ */
3109
+ type?: string;
3110
+ /**
3111
+ * Life event description. Empty string is a VALID value (distinct from absence).
3112
+ */
3113
+ description?: string;
3114
+ /**
3115
+ * Product-side metadata (free-form JSON)
3116
+ */
3117
+ meta?: {
3118
+ [key: string]: unknown;
3119
+ };
3120
+ };
3121
+
2807
3122
  export type FileImportDto = {
2808
3123
  /**
2809
3124
  * Bill file to import (CSV, PDF, OFX, etc.)
@@ -3268,6 +3583,8 @@ export type SupportedProvidersResponseDto = {
3268
3583
 
3269
3584
  export type ParserTelemetryReportDto = unknown;
3270
3585
 
3586
+ export type UncoveredFormatMissDto = unknown;
3587
+
3271
3588
  export type ProcessNlpDto = {
3272
3589
  /**
3273
3590
  * Natural language text describing a transaction (Chinese)
@@ -3277,6 +3594,12 @@ export type ProcessNlpDto = {
3277
3594
  * Session ID for multi-turn conversation (auto-generated if not provided)
3278
3595
  */
3279
3596
  sessionId?: string;
3597
+ /**
3598
+ * Parsed data from previous NLP response for session recovery. Send back the parsedData received in confirm_payee/confirm responses.
3599
+ */
3600
+ parsedData?: {
3601
+ [key: string]: unknown;
3602
+ };
3280
3603
  };
3281
3604
 
3282
3605
  export type NlpTransactionInfoDto = {
@@ -3807,7 +4130,7 @@ export type status4 = 'success' | 'pending' | 'error';
3807
4130
  /**
3808
4131
  * Action taken or requested
3809
4132
  */
3810
- export type action =
4133
+ export type action2 =
3811
4134
  | 'created'
3812
4135
  | 'ask'
3813
4136
  | 'confirm'
@@ -3983,9 +4306,40 @@ export type PlatformGroupDto = {
3983
4306
  */
3984
4307
  accounts: Array<AccountItemDto>;
3985
4308
  /**
3986
- * Total balance across all accounts in platform
4309
+ * FX-converted total balance in base currency
3987
4310
  */
3988
4311
  totalBalance: string;
4312
+ /**
4313
+ * Raw (unconverted) balances grouped by currency
4314
+ */
4315
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
4316
+ /**
4317
+ * Converted balance in base currency (omitted when no currency is convertible)
4318
+ */
4319
+ convertedBalance?: string;
4320
+ /**
4321
+ * Share of the grand converted total (0-100); 0 when grand total is 0
4322
+ */
4323
+ sharePct: number;
4324
+ };
4325
+
4326
+ export type AccountExchangeRateWarningDto = {
4327
+ /**
4328
+ * Warning type
4329
+ */
4330
+ type: string;
4331
+ /**
4332
+ * Currency without exchange rate
4333
+ */
4334
+ currency: string;
4335
+ /**
4336
+ * Affected account paths
4337
+ */
4338
+ accounts: Array<string>;
4339
+ /**
4340
+ * Total amount in this currency
4341
+ */
4342
+ totalAmount: string;
3989
4343
  };
3990
4344
 
3991
4345
  export type AccountsSummaryDto = {
@@ -3997,6 +4351,14 @@ export type AccountsSummaryDto = {
3997
4351
  * Total number of platforms
3998
4352
  */
3999
4353
  totalPlatforms: number;
4354
+ /**
4355
+ * Base currency for conversion
4356
+ */
4357
+ baseCurrency: string;
4358
+ /**
4359
+ * Per-account exchange rate warnings
4360
+ */
4361
+ warnings?: Array<AccountExchangeRateWarningDto>;
4000
4362
  };
4001
4363
 
4002
4364
  export type AccountsResponseDto = {
@@ -4047,8 +4409,21 @@ export type AccountItemWithAssetClassDto = {
4047
4409
  * Risk level
4048
4410
  */
4049
4411
  riskLevel?: string;
4412
+ /**
4413
+ * ADR-0105 classification provenance (holding level always; account level only on FALLBACK)
4414
+ */
4415
+ source?: 'USER_META' | 'FIAT_CURRENCY' | 'OPENBB_MAPPING' | 'FALLBACK';
4050
4416
  };
4051
4417
 
4418
+ /**
4419
+ * ADR-0105 classification provenance (holding level always; account level only on FALLBACK)
4420
+ */
4421
+ export type source2 =
4422
+ | 'USER_META'
4423
+ | 'FIAT_CURRENCY'
4424
+ | 'OPENBB_MAPPING'
4425
+ | 'FALLBACK';
4426
+
4052
4427
  export type AssetClassGroupDto = {
4053
4428
  /**
4054
4429
  * Asset class name
@@ -4099,53 +4474,90 @@ export type assetClass =
4099
4474
  | 'REAL_ESTATE'
4100
4475
  | 'INDEX';
4101
4476
 
4102
- export type AccountExchangeRateWarningDto = {
4477
+ export type AssetClassSummaryDto = {
4103
4478
  /**
4104
- * Warning type
4479
+ * Total number of accounts
4105
4480
  */
4106
- type: string;
4481
+ totalAccounts: number;
4107
4482
  /**
4108
- * Currency without exchange rate
4483
+ * Total number of asset classes
4109
4484
  */
4110
- currency: string;
4485
+ totalAssetClasses: number;
4111
4486
  /**
4112
- * Affected account paths
4487
+ * Base currency for conversion
4113
4488
  */
4114
- accounts: Array<string>;
4489
+ baseCurrency: string;
4115
4490
  /**
4116
- * Total amount in this currency
4491
+ * Exchange rate warnings
4117
4492
  */
4118
- totalAmount: string;
4493
+ warnings?: Array<AccountExchangeRateWarningDto>;
4494
+ /**
4495
+ * ADR-0105 §4 fallback provenance stats (holding level only). valueRatio is the grey-area share of total converted value; count is the number of source=FALLBACK holdings.
4496
+ */
4497
+ fallback?: {
4498
+ [key: string]: unknown;
4499
+ };
4119
4500
  };
4120
4501
 
4121
- export type AssetClassSummaryDto = {
4502
+ export type AssetClassAccountsResponseDto = {
4122
4503
  /**
4123
- * Total number of accounts
4504
+ * Account groups by asset class
4124
4505
  */
4125
- totalAccounts: number;
4506
+ groups: Array<AssetClassGroupDto>;
4126
4507
  /**
4127
- * Total number of asset classes
4508
+ * Summary statistics
4128
4509
  */
4129
- totalAssetClasses: number;
4510
+ summary: AssetClassSummaryDto;
4130
4511
  /**
4131
- * Base currency for conversion
4512
+ * ADR-0105 §6 holding-level grey-area bucket (source=FALLBACK holdings peeled out of groups). Present only for groupBy=holdingAssetClass when FALLBACK holdings exist.
4132
4513
  */
4133
- baseCurrency: string;
4514
+ uncategorized?: AssetClassGroupDto;
4515
+ };
4516
+
4517
+ export type HoldingAssetClassAccountSliceDto = {
4134
4518
  /**
4135
- * Exchange rate warnings
4519
+ * Account ID
4136
4520
  */
4137
- warnings?: Array<AccountExchangeRateWarningDto>;
4521
+ accountId: string;
4522
+ /**
4523
+ * Full account path
4524
+ */
4525
+ accountPath: string;
4526
+ /**
4527
+ * Currency of the holding with the largest converted base value; undefined when no holding is convertible
4528
+ */
4529
+ accountCurrency?: string;
4530
+ /**
4531
+ * Account's market value in base currency (Σ converted holdings; grey bucket included)
4532
+ */
4533
+ marketValueBase: string;
4534
+ /**
4535
+ * Share of the global total (0-100). 0 when globalTotal is zero (no NaN/Infinity).
4536
+ */
4537
+ shareOfTotalPct: number;
4538
+ /**
4539
+ * Per-account asset-class breakdown
4540
+ */
4541
+ groups: Array<AssetClassGroupDto>;
4542
+ /**
4543
+ * Per-account grey bucket (source=FALLBACK holdings, incl. broker cash)
4544
+ */
4545
+ uncategorized?: AssetClassGroupDto;
4546
+ /**
4547
+ * Every holding row for this account (account ID in each row’s `id` field)
4548
+ */
4549
+ holdings: Array<AccountItemWithAssetClassDto>;
4138
4550
  };
4139
4551
 
4140
- export type AssetClassAccountsResponseDto = {
4552
+ export type HoldingAssetClassCrossAccountResponseDto = {
4141
4553
  /**
4142
- * Account groups by asset class
4554
+ * Merged cross-account holding aggregation
4143
4555
  */
4144
- groups: Array<AssetClassGroupDto>;
4556
+ global: AssetClassAccountsResponseDto;
4145
4557
  /**
4146
- * Summary statistics
4558
+ * Per-account slices
4147
4559
  */
4148
- summary: AssetClassSummaryDto;
4560
+ byAccount: Array<HoldingAssetClassAccountSliceDto>;
4149
4561
  };
4150
4562
 
4151
4563
  export type CashFlowByCurrencyDto = {
@@ -4227,6 +4639,360 @@ export type CashFlowResponseDto = {
4227
4639
  warnings?: Array<ExchangeRateWarningDto>;
4228
4640
  };
4229
4641
 
4642
+ export type CategoryGroupDto = {
4643
+ /**
4644
+ * Functional category (account-path Group segment); regional and universal account paths merge under it
4645
+ */
4646
+ category: string;
4647
+ /**
4648
+ * Converted total for this category in base currency (expense amount when flow=expense, income amount when flow=income)
4649
+ */
4650
+ totalExpense: string;
4651
+ /**
4652
+ * Share of grand total (0-100); 0 when grand total is 0
4653
+ */
4654
+ sharePct: number;
4655
+ /**
4656
+ * Raw (unconverted) expense per currency
4657
+ */
4658
+ balanceByCurrency: Array<BalanceByCurrencyDto>;
4659
+ /**
4660
+ * Converted total in base currency (omitted when FX missing for all currencies in this category)
4661
+ */
4662
+ convertedBalance?: string;
4663
+ };
4664
+
4665
+ export type ExpensesByCategorySummaryDto = {
4666
+ /**
4667
+ * Total across all categories, converted (convertible categories only); expense totals when flow=expense, income totals when flow=income
4668
+ */
4669
+ totalExpense: string;
4670
+ /**
4671
+ * Number of categories
4672
+ */
4673
+ categoryCount: number;
4674
+ };
4675
+
4676
+ export type ExpensesByCategoryResponseDto = {
4677
+ /**
4678
+ * Period requested
4679
+ */
4680
+ period: string;
4681
+ /**
4682
+ * Base currency for converted values
4683
+ */
4684
+ baseCurrency: string;
4685
+ /**
4686
+ * Expense groups by functional category, sorted by converted total desc
4687
+ */
4688
+ groups: Array<CategoryGroupDto>;
4689
+ /**
4690
+ * Summary statistics
4691
+ */
4692
+ summary: ExpensesByCategorySummaryDto;
4693
+ /**
4694
+ * Exchange rate warnings (e.g. missing rate for a currency)
4695
+ */
4696
+ warnings?: Array<ExchangeRateWarningDto>;
4697
+ };
4698
+
4699
+ export type MonetaryDto = {
4700
+ /**
4701
+ * Amount (Decimal string)
4702
+ */
4703
+ amount: string;
4704
+ /**
4705
+ * ISO 4217 currency
4706
+ */
4707
+ currency: string;
4708
+ /**
4709
+ * Converted to user base currency (Decimal string)
4710
+ */
4711
+ baseCcyEquivalent?: {
4712
+ [key: string]: unknown;
4713
+ } | null;
4714
+ };
4715
+
4716
+ export type CurrentPriceDto = {
4717
+ /**
4718
+ * Price amount (Decimal string)
4719
+ */
4720
+ amount: string;
4721
+ /**
4722
+ * Price currency (ISO 4217)
4723
+ */
4724
+ currency: string;
4725
+ /**
4726
+ * Price date (ISO 8601)
4727
+ */
4728
+ date: string;
4729
+ /**
4730
+ * Price source
4731
+ */
4732
+ source: 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4733
+ };
4734
+
4735
+ /**
4736
+ * Price source
4737
+ */
4738
+ export type source3 = 'USER_OVERRIDE' | 'OPENBB_EQUITY' | 'OPENBB_CURRENCY';
4739
+
4740
+ export type FxRateDto = {
4741
+ from: string;
4742
+ to: string;
4743
+ /**
4744
+ * FX rate (Decimal string)
4745
+ */
4746
+ rate: string;
4747
+ /**
4748
+ * Rate date (ISO 8601)
4749
+ */
4750
+ date: string;
4751
+ };
4752
+
4753
+ export type HoldingPnlRowDto = {
4754
+ /**
4755
+ * Account UUID
4756
+ */
4757
+ accountId: string;
4758
+ /**
4759
+ * Full account path
4760
+ */
4761
+ accountPath: string;
4762
+ /**
4763
+ * Account settlement currency (ISO 4217), from cost currency
4764
+ */
4765
+ accountCcy?: {
4766
+ [key: string]: unknown;
4767
+ } | null;
4768
+ /**
4769
+ * Broker type derived from Platform.type
4770
+ */
4771
+ brokerType?: {
4772
+ [key: string]: unknown;
4773
+ } | null;
4774
+ /**
4775
+ * Commodity symbol
4776
+ */
4777
+ symbol: string;
4778
+ /**
4779
+ * Chart segment token (libs/common resolver)
4780
+ */
4781
+ chartToken: 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4782
+ assetClass: string;
4783
+ assetSubClass?: {
4784
+ [key: string]: unknown;
4785
+ } | null;
4786
+ /**
4787
+ * Net held units (Decimal string)
4788
+ */
4789
+ units: string;
4790
+ /**
4791
+ * Average cost per unit; null when cost currency conflicts or no cost
4792
+ */
4793
+ averageCostPerUnit?: MonetaryDto | null;
4794
+ /**
4795
+ * Cost basis of held units
4796
+ */
4797
+ costBasis?: MonetaryDto | null;
4798
+ /**
4799
+ * Market value at asOf price
4800
+ */
4801
+ marketValue?: MonetaryDto | null;
4802
+ /**
4803
+ * Price used for market value
4804
+ */
4805
+ currentPrice?: CurrentPriceDto | null;
4806
+ /**
4807
+ * Unrealized P&L in base currency (Decimal string); null when any FX/price missing
4808
+ */
4809
+ unrealizedPnlBase?: {
4810
+ [key: string]: unknown;
4811
+ } | null;
4812
+ /**
4813
+ * Unrealized P&L % (Decimal string)
4814
+ */
4815
+ unrealizedPnlPct?: {
4816
+ [key: string]: unknown;
4817
+ } | null;
4818
+ /**
4819
+ * Historical FX rate applied to cost basis
4820
+ */
4821
+ costFxRate?: FxRateDto | null;
4822
+ /**
4823
+ * FX rate applied to market value
4824
+ */
4825
+ marketFxRate?: FxRateDto | null;
4826
+ /**
4827
+ * Share of invested assets % (Decimal string); only for invested chartTokens
4828
+ */
4829
+ pctOfInvestedAssets?: {
4830
+ [key: string]: unknown;
4831
+ } | null;
4832
+ /**
4833
+ * 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
4834
+ */
4835
+ realizedPnl?: MonetaryDto | null;
4836
+ };
4837
+
4838
+ /**
4839
+ * Chart segment token (libs/common resolver)
4840
+ */
4841
+ export type chartToken = 'equity' | 'fund' | 'bond' | 'cash' | 'other';
4842
+
4843
+ export type HoldingPnlWarningDto = {
4844
+ /**
4845
+ * Warning type
4846
+ */
4847
+ type:
4848
+ | 'MISSING_COST_FX_RATE'
4849
+ | 'MISSING_MARKET_FX_RATE'
4850
+ | 'MISSING_SALE_PRICE'
4851
+ | 'MISSING_REALIZED_FX_RATE'
4852
+ | 'OVERSOLD_LOTS'
4853
+ | 'NO_PRICE'
4854
+ | 'MIXED_COST_CURRENCY';
4855
+ symbol?: {
4856
+ [key: string]: unknown;
4857
+ } | null;
4858
+ accountId?: {
4859
+ [key: string]: unknown;
4860
+ } | null;
4861
+ currency?: {
4862
+ [key: string]: unknown;
4863
+ } | null;
4864
+ };
4865
+
4866
+ /**
4867
+ * Warning type
4868
+ */
4869
+ export type type4 =
4870
+ | 'MISSING_COST_FX_RATE'
4871
+ | 'MISSING_MARKET_FX_RATE'
4872
+ | 'MISSING_SALE_PRICE'
4873
+ | 'MISSING_REALIZED_FX_RATE'
4874
+ | 'OVERSOLD_LOTS'
4875
+ | 'NO_PRICE'
4876
+ | 'MIXED_COST_CURRENCY';
4877
+
4878
+ export type HoldingPnlResponseDto = {
4879
+ asOfDate: string;
4880
+ baseCurrency: string;
4881
+ /**
4882
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4883
+ */
4884
+ method: 'average' | 'FIFO';
4885
+ rows: Array<HoldingPnlRowDto>;
4886
+ warnings: Array<HoldingPnlWarningDto>;
4887
+ };
4888
+
4889
+ /**
4890
+ * Realized-P&L lot-matching method (FIFO or average). Unrealized cost basis remains average regardless of this value (#473).
4891
+ */
4892
+ export type method = 'average' | 'FIFO';
4893
+
4894
+ export type CreateBeanPriceDto = {
4895
+ /**
4896
+ * Currency being priced (e.g., USD, AAPL, BTC)
4897
+ */
4898
+ currency: string;
4899
+ /**
4900
+ * Quote currency (pricing currency, e.g., CNY, EUR)
4901
+ */
4902
+ quoteCurrency: string;
4903
+ /**
4904
+ * Price amount (MUST be >= 0 per Beancount spec, supports up to 15 decimal places). Zero allowed for conversion entries, negative strictly prohibited.
4905
+ */
4906
+ amount: number;
4907
+ /**
4908
+ * Price date (ISO 8601 format)
4909
+ */
4910
+ date: string;
4911
+ /**
4912
+ * Metadata (validated by Zod schema, max field lengths enforced)
4913
+ */
4914
+ metadata?: {
4915
+ [key: string]: unknown;
4916
+ };
4917
+ };
4918
+
4919
+ export type PriceResponseDto = {
4920
+ /**
4921
+ * Unique identifier
4922
+ */
4923
+ id: string;
4924
+ /**
4925
+ * User ID (owner of the price)
4926
+ */
4927
+ userId: string;
4928
+ /**
4929
+ * Currency being priced (e.g., USD, AAPL, BTC)
4930
+ */
4931
+ currency: string;
4932
+ /**
4933
+ * Quote currency (pricing currency, e.g., USD, CNY)
4934
+ */
4935
+ quoteCurrency: string;
4936
+ /**
4937
+ * Price amount (corresponds to Beancount Amount.number). Supports up to 15 decimal places.
4938
+ */
4939
+ amount: number;
4940
+ /**
4941
+ * Price date (ISO 8601 format). Represents the date this price was valid.
4942
+ */
4943
+ date: string;
4944
+ /**
4945
+ * Metadata (corresponds to Beancount meta field). Contains source, confidence, note, etc.
4946
+ */
4947
+ meta: {
4948
+ [key: string]: unknown;
4949
+ };
4950
+ /**
4951
+ * Creation timestamp
4952
+ */
4953
+ createdAt: string;
4954
+ /**
4955
+ * Last update timestamp
4956
+ */
4957
+ updatedAt: string;
4958
+ };
4959
+
4960
+ export type PriceListResponseDto = {
4961
+ /**
4962
+ * List of prices
4963
+ */
4964
+ items: Array<PriceResponseDto>;
4965
+ /**
4966
+ * Total number of prices
4967
+ */
4968
+ total: number;
4969
+ };
4970
+
4971
+ export type UpdateBeanPriceDto = {
4972
+ /**
4973
+ * Currency being priced
4974
+ */
4975
+ currency?: string;
4976
+ /**
4977
+ * Quote currency (pricing currency)
4978
+ */
4979
+ quoteCurrency?: string;
4980
+ /**
4981
+ * Price amount (MUST be >= 0 per Beancount spec)
4982
+ */
4983
+ amount?: number;
4984
+ /**
4985
+ * Price date (ISO 8601 format)
4986
+ */
4987
+ date?: string;
4988
+ /**
4989
+ * Metadata
4990
+ */
4991
+ metadata?: {
4992
+ [key: string]: unknown;
4993
+ };
4994
+ };
4995
+
4230
4996
  export type CurrencyBalanceDto = {
4231
4997
  /**
4232
4998
  * ISO 4217 currency code
@@ -4248,62 +5014,139 @@ export type TimeSeriesPointDto = {
4248
5014
  */
4249
5015
  value: string;
4250
5016
  /**
4251
- * Change from previous point
5017
+ * Change from previous point
5018
+ */
5019
+ change?: {
5020
+ [key: string]: unknown;
5021
+ };
5022
+ /**
5023
+ * Total assets at this date (in base currency)
5024
+ */
5025
+ assets?: string;
5026
+ /**
5027
+ * Total liabilities at this date (in base currency)
5028
+ */
5029
+ liabilities?: string;
5030
+ /**
5031
+ * Multi-currency breakdown for this point
5032
+ */
5033
+ byCurrency?: Array<CurrencyBalanceDto>;
5034
+ };
5035
+
5036
+ export type TrendSummaryDto = {
5037
+ /**
5038
+ * Value at start of period
5039
+ */
5040
+ startValue: string;
5041
+ /**
5042
+ * Value at end of period
5043
+ */
5044
+ endValue: string;
5045
+ /**
5046
+ * Total change over period
5047
+ */
5048
+ totalChange: string;
5049
+ /**
5050
+ * Total change percentage
5051
+ */
5052
+ totalChangePercentage: string;
5053
+ };
5054
+
5055
+ export type MultiCurrencyPointDto = {
5056
+ /**
5057
+ * Date in YYYY-MM-DD format
5058
+ */
5059
+ date: string;
5060
+ /**
5061
+ * Balances by currency
5062
+ */
5063
+ byCurrency: Array<CurrencyBalanceDto>;
5064
+ };
5065
+
5066
+ export type PortfolioTrendsResponseDto = {
5067
+ /**
5068
+ * Time series data points
5069
+ */
5070
+ series: Array<TimeSeriesPointDto>;
5071
+ /**
5072
+ * Period summary
5073
+ */
5074
+ summary: TrendSummaryDto;
5075
+ /**
5076
+ * Period requested
5077
+ */
5078
+ period: string;
5079
+ /**
5080
+ * Data granularity
5081
+ */
5082
+ granularity: string;
5083
+ /**
5084
+ * Base currency for converted values
5085
+ */
5086
+ currency: string;
5087
+ /**
5088
+ * Multi-currency time series (each point has currency breakdown)
4252
5089
  */
4253
- change?: {
4254
- [key: string]: unknown;
4255
- };
5090
+ byCurrency?: Array<MultiCurrencyPointDto>;
4256
5091
  /**
4257
- * Multi-currency breakdown for this point
5092
+ * Exchange rate warnings
4258
5093
  */
4259
- byCurrency?: Array<CurrencyBalanceDto>;
5094
+ warnings?: Array<ExchangeRateWarningDto>;
4260
5095
  };
4261
5096
 
4262
- export type TrendSummaryDto = {
5097
+ export type CashFlowPointDto = {
4263
5098
  /**
4264
- * Value at start of period
5099
+ * Month key (YYYY-MM)
4265
5100
  */
4266
- startValue: string;
5101
+ month: string;
4267
5102
  /**
4268
- * Value at end of period
5103
+ * Income in base currency (absolute, converted)
4269
5104
  */
4270
- endValue: string;
5105
+ income: string;
4271
5106
  /**
4272
- * Total change over period
5107
+ * Expense in base currency (absolute, converted)
4273
5108
  */
4274
- totalChange: string;
5109
+ expense: string;
4275
5110
  /**
4276
- * Total change percentage
5111
+ * netSavings = income − expense (savings positive)
4277
5112
  */
4278
- totalChangePercentage: string;
5113
+ netSavings: string;
4279
5114
  };
4280
5115
 
4281
- export type MultiCurrencyPointDto = {
5116
+ export type CashFlowTrendSummaryDto = {
4282
5117
  /**
4283
- * Date in YYYY-MM-DD format
5118
+ * Total income across the period
4284
5119
  */
4285
- date: string;
5120
+ totalIncome: string;
4286
5121
  /**
4287
- * Balances by currency
5122
+ * Total expense across the period
4288
5123
  */
4289
- byCurrency: Array<CurrencyBalanceDto>;
5124
+ totalExpense: string;
5125
+ /**
5126
+ * income − expense across the period
5127
+ */
5128
+ totalNetSavings: string;
5129
+ /**
5130
+ * totalNetSavings divided by the window length (N months, incl. zero-filled)
5131
+ */
5132
+ averageMonthlyNetSavings: string;
4290
5133
  };
4291
5134
 
4292
- export type PortfolioTrendsResponseDto = {
5135
+ export type CashFlowTrendsResponseDto = {
4293
5136
  /**
4294
- * Time series data points
5137
+ * Monthly cash-flow series (fixed N-month window, zero-filled)
4295
5138
  */
4296
- series: Array<TimeSeriesPointDto>;
5139
+ series: Array<CashFlowPointDto>;
4297
5140
  /**
4298
- * Period summary
5141
+ * Period totals
4299
5142
  */
4300
- summary: TrendSummaryDto;
5143
+ summary: CashFlowTrendSummaryDto;
4301
5144
  /**
4302
5145
  * Period requested
4303
5146
  */
4304
5147
  period: string;
4305
5148
  /**
4306
- * Data granularity
5149
+ * Data granularity (v1 returns month buckets)
4307
5150
  */
4308
5151
  granularity: string;
4309
5152
  /**
@@ -4311,11 +5154,7 @@ export type PortfolioTrendsResponseDto = {
4311
5154
  */
4312
5155
  currency: string;
4313
5156
  /**
4314
- * Multi-currency time series (each point has currency breakdown)
4315
- */
4316
- byCurrency?: Array<MultiCurrencyPointDto>;
4317
- /**
4318
- * Exchange rate warnings
5157
+ * Exchange rate warnings (e.g. missing rate for a currency)
4319
5158
  */
4320
5159
  warnings?: Array<ExchangeRateWarningDto>;
4321
5160
  };
@@ -4339,7 +5178,7 @@ export type AccountControllerCreateData = {
4339
5178
  /**
4340
5179
  * Region code for tenant context
4341
5180
  */
4342
- region: 'cn' | 'us' | 'de';
5181
+ region: 'cn' | 'us' | 'de' | 'gb';
4343
5182
  requestBody: CreateAccountDto;
4344
5183
  };
4345
5184
 
@@ -4361,7 +5200,7 @@ export type AccountControllerFindAllData = {
4361
5200
  /**
4362
5201
  * Region code for tenant context
4363
5202
  */
4364
- region: 'cn' | 'us' | 'de';
5203
+ region: 'cn' | 'us' | 'de' | 'gb';
4365
5204
  /**
4366
5205
  * Search term for path or i18nKey
4367
5206
  */
@@ -4386,7 +5225,7 @@ export type AccountControllerFindOneData = {
4386
5225
  /**
4387
5226
  * Region code for tenant context
4388
5227
  */
4389
- region: 'cn' | 'us' | 'de';
5228
+ region: 'cn' | 'us' | 'de' | 'gb';
4390
5229
  };
4391
5230
 
4392
5231
  export type AccountControllerFindOneResponse = AccountResponseDto;
@@ -4399,7 +5238,7 @@ export type AccountControllerUpdateData = {
4399
5238
  /**
4400
5239
  * Region code for tenant context
4401
5240
  */
4402
- region: 'cn' | 'us' | 'de';
5241
+ region: 'cn' | 'us' | 'de' | 'gb';
4403
5242
  requestBody: UpdateAccountDto;
4404
5243
  };
4405
5244
 
@@ -4413,7 +5252,7 @@ export type AccountControllerDeleteData = {
4413
5252
  /**
4414
5253
  * Region code for tenant context
4415
5254
  */
4416
- region: 'cn' | 'us' | 'de';
5255
+ region: 'cn' | 'us' | 'de' | 'gb';
4417
5256
  };
4418
5257
 
4419
5258
  export type AccountControllerDeleteResponse = void;
@@ -4426,7 +5265,7 @@ export type AccountControllerCloseData = {
4426
5265
  /**
4427
5266
  * Region code for tenant context
4428
5267
  */
4429
- region: 'cn' | 'us' | 'de';
5268
+ region: 'cn' | 'us' | 'de' | 'gb';
4430
5269
  requestBody: CloseAccountDto;
4431
5270
  };
4432
5271
 
@@ -4440,7 +5279,7 @@ export type AccountControllerReopenData = {
4440
5279
  /**
4441
5280
  * Region code for tenant context
4442
5281
  */
4443
- region: 'cn' | 'us' | 'de';
5282
+ region: 'cn' | 'us' | 'de' | 'gb';
4444
5283
  requestBody: ReopenAccountDto;
4445
5284
  };
4446
5285
 
@@ -4450,7 +5289,7 @@ export type AccountStandardsControllerGetTemplatesData = {
4450
5289
  /**
4451
5290
  * Region code (cn, us, de)
4452
5291
  */
4453
- region: 'cn' | 'us' | 'de';
5292
+ region: 'cn' | 'us' | 'de' | 'gb';
4454
5293
  /**
4455
5294
  * Search term for path or description
4456
5295
  */
@@ -4472,7 +5311,7 @@ export type AccountStandardsControllerGetTemplateMetadataData = {
4472
5311
  /**
4473
5312
  * Region code for tenant context
4474
5313
  */
4475
- region: 'cn' | 'us' | 'de';
5314
+ region: 'cn' | 'us' | 'de' | 'gb';
4476
5315
  };
4477
5316
 
4478
5317
  export type AccountStandardsControllerGetTemplateMetadataResponse =
@@ -4482,7 +5321,7 @@ export type AccountStandardsControllerGetRegionsData = {
4482
5321
  /**
4483
5322
  * Region code for tenant context
4484
5323
  */
4485
- region: 'cn' | 'us' | 'de';
5324
+ region: 'cn' | 'us' | 'de' | 'gb';
4486
5325
  };
4487
5326
 
4488
5327
  export type AccountStandardsControllerGetRegionsResponse =
@@ -4492,7 +5331,7 @@ export type TransactionControllerCreateData = {
4492
5331
  /**
4493
5332
  * Region code for tenant context
4494
5333
  */
4495
- region: 'cn' | 'us' | 'de';
5334
+ region: 'cn' | 'us' | 'de' | 'gb';
4496
5335
  /**
4497
5336
  * Transaction data with postings
4498
5337
  */
@@ -4506,6 +5345,10 @@ export type TransactionControllerListData = {
4506
5345
  * Filter by account ID (transactions with postings to this account)
4507
5346
  */
4508
5347
  accountId?: string;
5348
+ /**
5349
+ * Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
5350
+ */
5351
+ category?: string;
4509
5352
  /**
4510
5353
  * Filter by start date (inclusive), format: YYYY-MM-DD
4511
5354
  */
@@ -4525,7 +5368,7 @@ export type TransactionControllerListData = {
4525
5368
  /**
4526
5369
  * Region code for tenant context
4527
5370
  */
4528
- region: 'cn' | 'us' | 'de';
5371
+ region: 'cn' | 'us' | 'de' | 'gb';
4529
5372
  /**
4530
5373
  * Search in narration and payee fields (max 200 chars)
4531
5374
  */
@@ -4542,13 +5385,49 @@ export type TransactionControllerCreateBatchData = {
4542
5385
  /**
4543
5386
  * Region code for tenant context
4544
5387
  */
4545
- region: 'cn' | 'us' | 'de';
5388
+ region: 'cn' | 'us' | 'de' | 'gb';
4546
5389
  requestBody: BatchCreateTransactionDto;
4547
5390
  };
4548
5391
 
4549
5392
  export type TransactionControllerCreateBatchResponse =
4550
5393
  BatchTransactionResponseDto;
4551
5394
 
5395
+ export type TransactionControllerCorrectData = {
5396
+ /**
5397
+ * Original transaction ID to correct
5398
+ */
5399
+ id: string;
5400
+ /**
5401
+ * Region code for tenant context
5402
+ */
5403
+ region: 'cn' | 'us' | 'de' | 'gb';
5404
+ requestBody: CorrectTransactionDto;
5405
+ };
5406
+
5407
+ export type TransactionControllerCorrectResponse = TransactionDetailDto;
5408
+
5409
+ export type TransactionControllerSuggestTagsData = {
5410
+ /**
5411
+ * Max suggestions (1-100, default 10)
5412
+ */
5413
+ limit?: number;
5414
+ /**
5415
+ * Prefix match, case-insensitive (max 50 chars)
5416
+ */
5417
+ q?: string;
5418
+ /**
5419
+ * Region code for tenant context
5420
+ */
5421
+ region: 'cn' | 'us' | 'de' | 'gb';
5422
+ /**
5423
+ * usage (default) or name
5424
+ */
5425
+ sort?: 'usage' | 'name';
5426
+ };
5427
+
5428
+ export type TransactionControllerSuggestTagsResponse =
5429
+ TagSuggestionsResponseDto;
5430
+
4552
5431
  export type TransactionControllerGetDetailData = {
4553
5432
  /**
4554
5433
  * Transaction ID
@@ -4557,7 +5436,7 @@ export type TransactionControllerGetDetailData = {
4557
5436
  /**
4558
5437
  * Region code for tenant context
4559
5438
  */
4560
- region: 'cn' | 'us' | 'de';
5439
+ region: 'cn' | 'us' | 'de' | 'gb';
4561
5440
  };
4562
5441
 
4563
5442
  export type TransactionControllerGetDetailResponse = TransactionDetailDto;
@@ -4570,7 +5449,7 @@ export type TransactionControllerUpdateData = {
4570
5449
  /**
4571
5450
  * Region code for tenant context
4572
5451
  */
4573
- region: 'cn' | 'us' | 'de';
5452
+ region: 'cn' | 'us' | 'de' | 'gb';
4574
5453
  /**
4575
5454
  * Fields to update (all optional)
4576
5455
  */
@@ -4587,7 +5466,7 @@ export type TransactionControllerDeleteData = {
4587
5466
  /**
4588
5467
  * Region code for tenant context
4589
5468
  */
4590
- region: 'cn' | 'us' | 'de';
5469
+ region: 'cn' | 'us' | 'de' | 'gb';
4591
5470
  };
4592
5471
 
4593
5472
  export type TransactionControllerDeleteResponse = void;
@@ -4608,7 +5487,7 @@ export type BalanceControllerGetBalanceData = {
4608
5487
  /**
4609
5488
  * Region code for tenant context
4610
5489
  */
4611
- region: 'cn' | 'us' | 'de';
5490
+ region: 'cn' | 'us' | 'de' | 'gb';
4612
5491
  };
4613
5492
 
4614
5493
  export type BalanceControllerGetBalanceResponse = BalanceResponseDto;
@@ -4617,7 +5496,7 @@ export type BalanceControllerGetMultiCurrencyBalanceData = {
4617
5496
  /**
4618
5497
  * Region code for tenant context
4619
5498
  */
4620
- region: 'cn' | 'us' | 'de';
5499
+ region: 'cn' | 'us' | 'de' | 'gb';
4621
5500
  };
4622
5501
 
4623
5502
  export type BalanceControllerGetMultiCurrencyBalanceResponse =
@@ -4639,7 +5518,7 @@ export type ReviewControllerFindAllData = {
4639
5518
  /**
4640
5519
  * Region code for tenant context
4641
5520
  */
4642
- region: 'cn' | 'us' | 'de';
5521
+ region: 'cn' | 'us' | 'de' | 'gb';
4643
5522
  /**
4644
5523
  * Sort order
4645
5524
  */
@@ -4661,7 +5540,7 @@ export type ReviewControllerGetStatsData = {
4661
5540
  /**
4662
5541
  * Region code for tenant context
4663
5542
  */
4664
- region: 'cn' | 'us' | 'de';
5543
+ region: 'cn' | 'us' | 'de' | 'gb';
4665
5544
  };
4666
5545
 
4667
5546
  export type ReviewControllerGetStatsResponse = ReviewStatsDto;
@@ -4674,7 +5553,7 @@ export type ReviewControllerFindOneData = {
4674
5553
  /**
4675
5554
  * Region code for tenant context
4676
5555
  */
4677
- region: 'cn' | 'us' | 'de';
5556
+ region: 'cn' | 'us' | 'de' | 'gb';
4678
5557
  };
4679
5558
 
4680
5559
  export type ReviewControllerFindOneResponse = ReviewDetailDto;
@@ -4687,7 +5566,7 @@ export type ReviewControllerResolveData = {
4687
5566
  /**
4688
5567
  * Region code for tenant context
4689
5568
  */
4690
- region: 'cn' | 'us' | 'de';
5569
+ region: 'cn' | 'us' | 'de' | 'gb';
4691
5570
  requestBody: ResolveReviewDto;
4692
5571
  };
4693
5572
 
@@ -4701,7 +5580,7 @@ export type ReviewControllerUndoData = {
4701
5580
  /**
4702
5581
  * Region code for tenant context
4703
5582
  */
4704
- region: 'cn' | 'us' | 'de';
5583
+ region: 'cn' | 'us' | 'de' | 'gb';
4705
5584
  };
4706
5585
 
4707
5586
  export type ReviewControllerUndoResponse = UndoResultDto;
@@ -4710,7 +5589,7 @@ export type ReviewControllerBatchResolveData = {
4710
5589
  /**
4711
5590
  * Region code for tenant context
4712
5591
  */
4713
- region: 'cn' | 'us' | 'de';
5592
+ region: 'cn' | 'us' | 'de' | 'gb';
4714
5593
  /**
4715
5594
  * Batch resolution request containing review IDs and action
4716
5595
  */
@@ -4911,7 +5790,7 @@ export type CommodityControllerCreateData = {
4911
5790
  /**
4912
5791
  * Region code for tenant context
4913
5792
  */
4914
- region: 'cn' | 'us' | 'de';
5793
+ region: 'cn' | 'us' | 'de' | 'gb';
4915
5794
  requestBody: CreateCommodityDto;
4916
5795
  };
4917
5796
 
@@ -4921,7 +5800,7 @@ export type CommodityControllerFindAllData = {
4921
5800
  /**
4922
5801
  * Region code for tenant context
4923
5802
  */
4924
- region: 'cn' | 'us' | 'de';
5803
+ region: 'cn' | 'us' | 'de' | 'gb';
4925
5804
  /**
4926
5805
  * Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
4927
5806
  */
@@ -4938,7 +5817,7 @@ export type CommodityControllerFindOneData = {
4938
5817
  /**
4939
5818
  * Region code for tenant context
4940
5819
  */
4941
- region: 'cn' | 'us' | 'de';
5820
+ region: 'cn' | 'us' | 'de' | 'gb';
4942
5821
  /**
4943
5822
  * Commodity symbol
4944
5823
  */
@@ -4951,7 +5830,7 @@ export type CommodityControllerUpdateData = {
4951
5830
  /**
4952
5831
  * Region code for tenant context
4953
5832
  */
4954
- region: 'cn' | 'us' | 'de';
5833
+ region: 'cn' | 'us' | 'de' | 'gb';
4955
5834
  requestBody: UpdateCommodityDto;
4956
5835
  /**
4957
5836
  * Commodity symbol
@@ -4965,7 +5844,7 @@ export type CommodityControllerDeleteData = {
4965
5844
  /**
4966
5845
  * Region code for tenant context
4967
5846
  */
4968
- region: 'cn' | 'us' | 'de';
5847
+ region: 'cn' | 'us' | 'de' | 'gb';
4969
5848
  /**
4970
5849
  * Commodity symbol
4971
5850
  */
@@ -4978,7 +5857,7 @@ export type CommodityControllerGetOrCreateData = {
4978
5857
  /**
4979
5858
  * Region code for tenant context
4980
5859
  */
4981
- region: 'cn' | 'us' | 'de';
5860
+ region: 'cn' | 'us' | 'de' | 'gb';
4982
5861
  /**
4983
5862
  * Commodity symbol
4984
5863
  */
@@ -4991,7 +5870,7 @@ export type CommodityControllerBulkCreateData = {
4991
5870
  /**
4992
5871
  * Region code for tenant context
4993
5872
  */
4994
- region: 'cn' | 'us' | 'de';
5873
+ region: 'cn' | 'us' | 'de' | 'gb';
4995
5874
  };
4996
5875
 
4997
5876
  export type CommodityControllerBulkCreateResponse = Array<CommodityResponseDto>;
@@ -5000,7 +5879,7 @@ export type RecurringRuleControllerCreateData = {
5000
5879
  /**
5001
5880
  * Region code for tenant context
5002
5881
  */
5003
- region: 'cn' | 'us' | 'de';
5882
+ region: 'cn' | 'us' | 'de' | 'gb';
5004
5883
  requestBody: CreateRecurringRuleDto;
5005
5884
  };
5006
5885
 
@@ -5022,7 +5901,7 @@ export type RecurringRuleControllerFindAllData = {
5022
5901
  /**
5023
5902
  * Region code for tenant context
5024
5903
  */
5025
- region: 'cn' | 'us' | 'de';
5904
+ region: 'cn' | 'us' | 'de' | 'gb';
5026
5905
  };
5027
5906
 
5028
5907
  export type RecurringRuleControllerFindAllResponse =
@@ -5032,7 +5911,7 @@ export type RecurringRuleControllerCreateFromTransactionData = {
5032
5911
  /**
5033
5912
  * Region code for tenant context
5034
5913
  */
5035
- region: 'cn' | 'us' | 'de';
5914
+ region: 'cn' | 'us' | 'de' | 'gb';
5036
5915
  requestBody: CreateRuleFromTransactionDto;
5037
5916
  /**
5038
5917
  * Source transaction ID
@@ -5051,7 +5930,7 @@ export type RecurringRuleControllerFindOneData = {
5051
5930
  /**
5052
5931
  * Region code for tenant context
5053
5932
  */
5054
- region: 'cn' | 'us' | 'de';
5933
+ region: 'cn' | 'us' | 'de' | 'gb';
5055
5934
  };
5056
5935
 
5057
5936
  export type RecurringRuleControllerFindOneResponse = RecurringRuleResponseDto;
@@ -5064,7 +5943,7 @@ export type RecurringRuleControllerUpdateData = {
5064
5943
  /**
5065
5944
  * Region code for tenant context
5066
5945
  */
5067
- region: 'cn' | 'us' | 'de';
5946
+ region: 'cn' | 'us' | 'de' | 'gb';
5068
5947
  requestBody: UpdateRecurringRuleDto;
5069
5948
  };
5070
5949
 
@@ -5078,7 +5957,7 @@ export type RecurringRuleControllerDeleteData = {
5078
5957
  /**
5079
5958
  * Region code for tenant context
5080
5959
  */
5081
- region: 'cn' | 'us' | 'de';
5960
+ region: 'cn' | 'us' | 'de' | 'gb';
5082
5961
  };
5083
5962
 
5084
5963
  export type RecurringRuleControllerDeleteResponse = void;
@@ -5091,7 +5970,7 @@ export type RecurringRuleControllerGetWithStatsData = {
5091
5970
  /**
5092
5971
  * Region code for tenant context
5093
5972
  */
5094
- region: 'cn' | 'us' | 'de';
5973
+ region: 'cn' | 'us' | 'de' | 'gb';
5095
5974
  };
5096
5975
 
5097
5976
  export type RecurringRuleControllerGetWithStatsResponse =
@@ -5105,7 +5984,7 @@ export type ExpectedTransactionControllerFindAllData = {
5105
5984
  /**
5106
5985
  * Region code for tenant context
5107
5986
  */
5108
- region: 'cn' | 'us' | 'de';
5987
+ region: 'cn' | 'us' | 'de' | 'gb';
5109
5988
  /**
5110
5989
  * Filter by recurring rule ID
5111
5990
  */
@@ -5127,7 +6006,7 @@ export type ExpectedTransactionControllerFindOverdueData = {
5127
6006
  /**
5128
6007
  * Region code for tenant context
5129
6008
  */
5130
- region: 'cn' | 'us' | 'de';
6009
+ region: 'cn' | 'us' | 'de' | 'gb';
5131
6010
  };
5132
6011
 
5133
6012
  export type ExpectedTransactionControllerFindOverdueResponse =
@@ -5141,7 +6020,7 @@ export type ExpectedTransactionControllerFindOneData = {
5141
6020
  /**
5142
6021
  * Region code for tenant context
5143
6022
  */
5144
- region: 'cn' | 'us' | 'de';
6023
+ region: 'cn' | 'us' | 'de' | 'gb';
5145
6024
  };
5146
6025
 
5147
6026
  export type ExpectedTransactionControllerFindOneResponse =
@@ -5155,7 +6034,7 @@ export type ExpectedTransactionControllerSkipData = {
5155
6034
  /**
5156
6035
  * Region code for tenant context
5157
6036
  */
5158
- region: 'cn' | 'us' | 'de';
6037
+ region: 'cn' | 'us' | 'de' | 'gb';
5159
6038
  };
5160
6039
 
5161
6040
  export type ExpectedTransactionControllerSkipResponse =
@@ -5169,7 +6048,7 @@ export type ExpectedTransactionControllerUndoSkipData = {
5169
6048
  /**
5170
6049
  * Region code for tenant context
5171
6050
  */
5172
- region: 'cn' | 'us' | 'de';
6051
+ region: 'cn' | 'us' | 'de' | 'gb';
5173
6052
  };
5174
6053
 
5175
6054
  export type ExpectedTransactionControllerUndoSkipResponse =
@@ -5183,7 +6062,7 @@ export type ExpectedTransactionControllerConfirmMatchData = {
5183
6062
  /**
5184
6063
  * Region code for tenant context
5185
6064
  */
5186
- region: 'cn' | 'us' | 'de';
6065
+ region: 'cn' | 'us' | 'de' | 'gb';
5187
6066
  requestBody: ConfirmMatchDto;
5188
6067
  };
5189
6068
 
@@ -5197,7 +6076,7 @@ export type ExpectedTransactionControllerUnmatchData = {
5197
6076
  /**
5198
6077
  * Region code for tenant context
5199
6078
  */
5200
- region: 'cn' | 'us' | 'de';
6079
+ region: 'cn' | 'us' | 'de' | 'gb';
5201
6080
  };
5202
6081
 
5203
6082
  export type ExpectedTransactionControllerUnmatchResponse = unknown;
@@ -5210,7 +6089,7 @@ export type ExpectedTransactionControllerEnterNowData = {
5210
6089
  /**
5211
6090
  * Region code for tenant context
5212
6091
  */
5213
- region: 'cn' | 'us' | 'de';
6092
+ region: 'cn' | 'us' | 'de' | 'gb';
5214
6093
  requestBody: EnterNowDto;
5215
6094
  };
5216
6095
 
@@ -5224,7 +6103,7 @@ export type ForecastControllerGetForecastData = {
5224
6103
  /**
5225
6104
  * Region code for tenant context
5226
6105
  */
5227
- region: 'cn' | 'us' | 'de';
6106
+ region: 'cn' | 'us' | 'de' | 'gb';
5228
6107
  };
5229
6108
 
5230
6109
  export type ForecastControllerGetForecastResponse = ForecastResponseDto;
@@ -5233,7 +6112,7 @@ export type TransactionRuleControllerCreateData = {
5233
6112
  /**
5234
6113
  * Region code for tenant context
5235
6114
  */
5236
- region: 'cn' | 'us' | 'de';
6115
+ region: 'cn' | 'us' | 'de' | 'gb';
5237
6116
  requestBody: CreateTransactionRuleDto;
5238
6117
  };
5239
6118
 
@@ -5264,7 +6143,7 @@ export type TransactionRuleControllerListData = {
5264
6143
  /**
5265
6144
  * Region code for tenant context
5266
6145
  */
5267
- region: 'cn' | 'us' | 'de';
6146
+ region: 'cn' | 'us' | 'de' | 'gb';
5268
6147
  };
5269
6148
 
5270
6149
  export type TransactionRuleControllerListResponse =
@@ -5274,7 +6153,7 @@ export type TransactionRuleControllerValidateData = {
5274
6153
  /**
5275
6154
  * Region code for tenant context
5276
6155
  */
5277
- region: 'cn' | 'us' | 'de';
6156
+ region: 'cn' | 'us' | 'de' | 'gb';
5278
6157
  requestBody: ValidateRuleDto;
5279
6158
  };
5280
6159
 
@@ -5284,7 +6163,7 @@ export type TransactionRuleControllerBulkCreateData = {
5284
6163
  /**
5285
6164
  * Region code for tenant context
5286
6165
  */
5287
- region: 'cn' | 'us' | 'de';
6166
+ region: 'cn' | 'us' | 'de' | 'gb';
5288
6167
  requestBody: BulkCreateRulesDto;
5289
6168
  };
5290
6169
 
@@ -5299,7 +6178,7 @@ export type TransactionRuleControllerExportData = {
5299
6178
  /**
5300
6179
  * Region code for tenant context
5301
6180
  */
5302
- region: 'cn' | 'us' | 'de';
6181
+ region: 'cn' | 'us' | 'de' | 'gb';
5303
6182
  };
5304
6183
 
5305
6184
  export type TransactionRuleControllerExportResponse = ExportRulesResponseDto;
@@ -5312,7 +6191,7 @@ export type TransactionRuleControllerGetStatisticsData = {
5312
6191
  /**
5313
6192
  * Region code for tenant context
5314
6193
  */
5315
- region: 'cn' | 'us' | 'de';
6194
+ region: 'cn' | 'us' | 'de' | 'gb';
5316
6195
  };
5317
6196
 
5318
6197
  export type TransactionRuleControllerGetStatisticsResponse =
@@ -5322,7 +6201,7 @@ export type TransactionRuleControllerGetDetailData = {
5322
6201
  /**
5323
6202
  * Region code for tenant context
5324
6203
  */
5325
- region: 'cn' | 'us' | 'de';
6204
+ region: 'cn' | 'us' | 'de' | 'gb';
5326
6205
  /**
5327
6206
  * Rule ID
5328
6207
  */
@@ -5336,7 +6215,7 @@ export type TransactionRuleControllerUpdateData = {
5336
6215
  /**
5337
6216
  * Region code for tenant context
5338
6217
  */
5339
- region: 'cn' | 'us' | 'de';
6218
+ region: 'cn' | 'us' | 'de' | 'gb';
5340
6219
  requestBody: UpdateTransactionRuleDto;
5341
6220
  /**
5342
6221
  * Rule ID to update
@@ -5351,7 +6230,7 @@ export type TransactionRuleControllerDeleteData = {
5351
6230
  /**
5352
6231
  * Region code for tenant context
5353
6232
  */
5354
- region: 'cn' | 'us' | 'de';
6233
+ region: 'cn' | 'us' | 'de' | 'gb';
5355
6234
  /**
5356
6235
  * Rule ID to delete
5357
6236
  */
@@ -5364,7 +6243,7 @@ export type TransactionRuleControllerTestData = {
5364
6243
  /**
5365
6244
  * Region code for tenant context
5366
6245
  */
5367
- region: 'cn' | 'us' | 'de';
6246
+ region: 'cn' | 'us' | 'de' | 'gb';
5368
6247
  requestBody: TestRuleDto;
5369
6248
  /**
5370
6249
  * Rule ID to test
@@ -5461,6 +6340,104 @@ export type PropertyControllerDeleteData = {
5461
6340
 
5462
6341
  export type PropertyControllerDeleteResponse = void;
5463
6342
 
6343
+ export type EventControllerCreateData = {
6344
+ /**
6345
+ * Region code for tenant context (decorative for life events)
6346
+ */
6347
+ region: 'cn' | 'us' | 'de' | 'gb';
6348
+ requestBody: CreateBeanEventDto;
6349
+ };
6350
+
6351
+ export type EventControllerCreateResponse = EventResponseDto;
6352
+
6353
+ export type EventControllerFindAllData = {
6354
+ /**
6355
+ * Filter life events from this date (ISO 8601 format)
6356
+ */
6357
+ from?: string;
6358
+ /**
6359
+ * Number of items per page (default: 20, max: 100)
6360
+ */
6361
+ limit?: number;
6362
+ /**
6363
+ * Page number for pagination (default: 1)
6364
+ */
6365
+ page?: number;
6366
+ /**
6367
+ * Search term for description (case-insensitive partial match)
6368
+ */
6369
+ q?: string;
6370
+ /**
6371
+ * Region code for tenant context (decorative for life events)
6372
+ */
6373
+ region: 'cn' | 'us' | 'de' | 'gb';
6374
+ /**
6375
+ * Filter life events to this date (ISO 8601 format)
6376
+ */
6377
+ to?: string;
6378
+ /**
6379
+ * Filter by life event type (exact match)
6380
+ */
6381
+ type?: string;
6382
+ };
6383
+
6384
+ export type EventControllerFindAllResponse = EventListResponseDto;
6385
+
6386
+ export type EventControllerFindOneData = {
6387
+ /**
6388
+ * Life event ID
6389
+ */
6390
+ id: string;
6391
+ /**
6392
+ * Region code for tenant context (decorative for life events)
6393
+ */
6394
+ region: 'cn' | 'us' | 'de' | 'gb';
6395
+ };
6396
+
6397
+ export type EventControllerFindOneResponse = EventResponseDto;
6398
+
6399
+ export type EventControllerUpdateData = {
6400
+ /**
6401
+ * Life event ID
6402
+ */
6403
+ id: string;
6404
+ /**
6405
+ * Region code for tenant context (decorative for life events)
6406
+ */
6407
+ region: 'cn' | 'us' | 'de' | 'gb';
6408
+ requestBody: UpdateBeanEventDto;
6409
+ };
6410
+
6411
+ export type EventControllerUpdateResponse = EventResponseDto;
6412
+
6413
+ export type EventControllerDeleteData = {
6414
+ /**
6415
+ * Life event ID
6416
+ */
6417
+ id: string;
6418
+ /**
6419
+ * Region code for tenant context (decorative for life events)
6420
+ */
6421
+ region: 'cn' | 'us' | 'de' | 'gb';
6422
+ };
6423
+
6424
+ export type EventControllerDeleteResponse = void;
6425
+
6426
+ export type EventControllerGetSliceData = {
6427
+ accountPattern: string;
6428
+ granularity: string;
6429
+ /**
6430
+ * Life event ID
6431
+ */
6432
+ id: string;
6433
+ /**
6434
+ * Region code for tenant context (decorative for life events)
6435
+ */
6436
+ region: 'cn' | 'us' | 'de' | 'gb';
6437
+ };
6438
+
6439
+ export type EventControllerGetSliceResponse = unknown;
6440
+
5464
6441
  export type ExportControllerExportBeancountResponse = unknown;
5465
6442
 
5466
6443
  export type FileImportControllerImportFileData = {
@@ -5471,7 +6448,7 @@ export type FileImportControllerImportFileData = {
5471
6448
  /**
5472
6449
  * Region code for tenant context
5473
6450
  */
5474
- region: 'cn' | 'us' | 'de';
6451
+ region: 'cn' | 'us' | 'de' | 'gb';
5475
6452
  };
5476
6453
 
5477
6454
  export type FileImportControllerImportFileResponse = ImportResultDto;
@@ -5484,7 +6461,7 @@ export type FileImportControllerIdentifyFileData = {
5484
6461
  /**
5485
6462
  * Region code for tenant context
5486
6463
  */
5487
- region: 'cn' | 'us' | 'de';
6464
+ region: 'cn' | 'us' | 'de' | 'gb';
5488
6465
  };
5489
6466
 
5490
6467
  export type FileImportControllerIdentifyFileResponse = IdentifyResultDto;
@@ -5497,7 +6474,7 @@ export type FileImportControllerImportBeancountData = {
5497
6474
  /**
5498
6475
  * Region code for tenant context
5499
6476
  */
5500
- region: 'cn' | 'us' | 'de';
6477
+ region: 'cn' | 'us' | 'de' | 'gb';
5501
6478
  };
5502
6479
 
5503
6480
  export type FileImportControllerImportBeancountResponse = {
@@ -5518,7 +6495,7 @@ export type ImporterConfigControllerGetConfigData = {
5518
6495
  /**
5519
6496
  * Region code for tenant context
5520
6497
  */
5521
- region: 'cn' | 'us' | 'de';
6498
+ region: 'cn' | 'us' | 'de' | 'gb';
5522
6499
  };
5523
6500
 
5524
6501
  export type ImporterConfigControllerGetConfigResponse = ImporterConfigDto;
@@ -5531,7 +6508,7 @@ export type ImporterConfigControllerUpdateConfigData = {
5531
6508
  /**
5532
6509
  * Region code for tenant context
5533
6510
  */
5534
- region: 'cn' | 'us' | 'de';
6511
+ region: 'cn' | 'us' | 'de' | 'gb';
5535
6512
  /**
5536
6513
  * Partial configuration update. Only provided fields will be updated.
5537
6514
  */
@@ -5548,7 +6525,7 @@ export type ImporterConfigControllerResetConfigData = {
5548
6525
  /**
5549
6526
  * Region code for tenant context
5550
6527
  */
5551
- region: 'cn' | 'us' | 'de';
6528
+ region: 'cn' | 'us' | 'de' | 'gb';
5552
6529
  };
5553
6530
 
5554
6531
  export type ImporterConfigControllerResetConfigResponse = ImporterConfigDto;
@@ -5609,9 +6586,9 @@ export type ProviderSyncControllerSyncData = {
5609
6586
  | 'beancount-direct'
5610
6587
  | 'parsed-bill';
5611
6588
  /**
5612
- * Region code
6589
+ * Region code for tenant context
5613
6590
  */
5614
- region: unknown;
6591
+ region: 'cn' | 'us' | 'de' | 'gb';
5615
6592
  requestBody: ProviderSyncDto;
5616
6593
  };
5617
6594
 
@@ -5621,7 +6598,7 @@ export type ProviderSyncControllerGetSupportedProvidersData = {
5621
6598
  /**
5622
6599
  * Region code for tenant context
5623
6600
  */
5624
- region: 'cn' | 'us' | 'de';
6601
+ region: 'cn' | 'us' | 'de' | 'gb';
5625
6602
  };
5626
6603
 
5627
6604
  export type ProviderSyncControllerGetSupportedProvidersResponse =
@@ -5635,7 +6612,7 @@ export type ProviderSyncControllerIsProviderSupportedData = {
5635
6612
  /**
5636
6613
  * Region code for tenant context
5637
6614
  */
5638
- region: 'cn' | 'us' | 'de';
6615
+ region: 'cn' | 'us' | 'de' | 'gb';
5639
6616
  };
5640
6617
 
5641
6618
  export type ProviderSyncControllerIsProviderSupportedResponse = unknown;
@@ -5644,17 +6621,40 @@ export type TelemetryControllerReportTelemetryData = {
5644
6621
  /**
5645
6622
  * Region code for tenant context
5646
6623
  */
5647
- region: 'cn' | 'us' | 'de';
6624
+ region: 'cn' | 'us' | 'de' | 'gb';
5648
6625
  requestBody: ParserTelemetryReportDto;
5649
6626
  };
5650
6627
 
5651
6628
  export type TelemetryControllerReportTelemetryResponse = unknown;
5652
6629
 
6630
+ export type TelemetryControllerReportCoverageMissData = {
6631
+ /**
6632
+ * Region code for tenant context
6633
+ */
6634
+ region: 'cn' | 'us' | 'de' | 'gb';
6635
+ requestBody: UncoveredFormatMissDto;
6636
+ };
6637
+
6638
+ export type TelemetryControllerReportCoverageMissResponse = unknown;
6639
+
6640
+ export type TelemetryControllerGetCoverageMetricsData = {
6641
+ /**
6642
+ * Region code for tenant context
6643
+ */
6644
+ region: 'cn' | 'us' | 'de' | 'gb';
6645
+ /**
6646
+ * Top-N uncovered formats (default 10)
6647
+ */
6648
+ topN?: unknown;
6649
+ };
6650
+
6651
+ export type TelemetryControllerGetCoverageMetricsResponse = unknown;
6652
+
5653
6653
  export type NlpControllerProcessNaturalLanguageData = {
5654
6654
  /**
5655
6655
  * Region code for tenant context
5656
6656
  */
5657
- region: 'cn' | 'us' | 'de';
6657
+ region: 'cn' | 'us' | 'de' | 'gb';
5658
6658
  /**
5659
6659
  * Natural language transaction input with optional session ID
5660
6660
  */
@@ -5667,72 +6667,221 @@ export type NlpControllerClearSessionData = {
5667
6667
  /**
5668
6668
  * Region code for tenant context
5669
6669
  */
5670
- region: 'cn' | 'us' | 'de';
6670
+ region: 'cn' | 'us' | 'de' | 'gb';
5671
6671
  /**
5672
6672
  * Specific session ID to clear (defaults to user session)
5673
6673
  */
5674
6674
  sessionId?: string;
5675
6675
  };
5676
6676
 
5677
- export type NlpControllerClearSessionResponse = void;
6677
+ export type NlpControllerClearSessionResponse = void;
6678
+
6679
+ export type NlpControllerGetSessionData = {
6680
+ /**
6681
+ * Region code for tenant context
6682
+ */
6683
+ region: 'cn' | 'us' | 'de' | 'gb';
6684
+ /**
6685
+ * Specific session ID to get (defaults to user session)
6686
+ */
6687
+ sessionId?: string;
6688
+ };
6689
+
6690
+ export type NlpControllerGetSessionResponse = unknown;
6691
+
6692
+ export type DashboardControllerGetNetWorthData = {
6693
+ /**
6694
+ * Date for balance calculation (ISO 8601 format)
6695
+ */
6696
+ date?: string;
6697
+ /**
6698
+ * Region code for tenant context
6699
+ */
6700
+ region: 'cn' | 'us' | 'de' | 'gb';
6701
+ };
6702
+
6703
+ export type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
6704
+
6705
+ export type DashboardControllerGetAccountsData = {
6706
+ /**
6707
+ * Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
6708
+ */
6709
+ accountId?: string;
6710
+ /**
6711
+ * Date for balance calculation (ISO 8601 format)
6712
+ */
6713
+ date?: string;
6714
+ /**
6715
+ * Grouping strategy
6716
+ */
6717
+ groupBy?:
6718
+ | 'platform'
6719
+ | 'assetClass'
6720
+ | 'holdingAssetClass'
6721
+ | 'holdingAssetClassByAccount';
6722
+ /**
6723
+ * Region code for tenant context
6724
+ */
6725
+ region: 'cn' | 'us' | 'de' | 'gb';
6726
+ };
6727
+
6728
+ export type DashboardControllerGetAccountsResponse =
6729
+ | AccountsResponseDto
6730
+ | AssetClassAccountsResponseDto
6731
+ | HoldingAssetClassCrossAccountResponseDto;
6732
+
6733
+ export type DashboardControllerGetCashFlowData = {
6734
+ /**
6735
+ * Period in YYYY-MM format
6736
+ */
6737
+ period: string;
6738
+ /**
6739
+ * Region code for tenant context
6740
+ */
6741
+ region: 'cn' | 'us' | 'de' | 'gb';
6742
+ };
6743
+
6744
+ export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
6745
+
6746
+ export type DashboardControllerGetExpensesData = {
6747
+ /**
6748
+ * Account root to aggregate (expense → ^Expenses:, income → ^Income:)
6749
+ */
6750
+ flow?: 'expense' | 'income';
6751
+ /**
6752
+ * Grouping strategy
6753
+ */
6754
+ groupBy?: 'category';
6755
+ /**
6756
+ * Time window (1m = current calendar month)
6757
+ */
6758
+ period?: '1m' | '3m' | '6m' | '1y';
6759
+ /**
6760
+ * Region code for tenant context
6761
+ */
6762
+ region: 'cn' | 'us' | 'de' | 'gb';
6763
+ };
6764
+
6765
+ export type DashboardControllerGetExpensesResponse =
6766
+ ExpensesByCategoryResponseDto;
6767
+
6768
+ export type HoldingPnlControllerGetHoldingPnlData = {
6769
+ /**
6770
+ * Scope to a single account
6771
+ */
6772
+ accountId?: string;
6773
+ /**
6774
+ * As-of date (ISO 8601), defaults to today
6775
+ */
6776
+ asOf?: string;
6777
+ /**
6778
+ * Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
6779
+ */
6780
+ method?: 'FIFO' | 'average';
6781
+ /**
6782
+ * Region code for tenant context
6783
+ */
6784
+ region: 'cn' | 'us' | 'de' | 'gb';
6785
+ };
6786
+
6787
+ export type HoldingPnlControllerGetHoldingPnlResponse = HoldingPnlResponseDto;
6788
+
6789
+ export type PriceControllerCreateData = {
6790
+ /**
6791
+ * Region code for tenant context
6792
+ */
6793
+ region: 'cn' | 'us' | 'de' | 'gb';
6794
+ requestBody: CreateBeanPriceDto;
6795
+ };
6796
+
6797
+ export type PriceControllerCreateResponse = PriceResponseDto;
6798
+
6799
+ export type PriceControllerFindAllData = {
6800
+ /**
6801
+ * Filter by currency (e.g., BTC, AAPL, USD)
6802
+ */
6803
+ currency?: string;
6804
+ /**
6805
+ * Filter prices from this date (ISO 8601 format)
6806
+ */
6807
+ dateFrom?: string;
6808
+ /**
6809
+ * Filter prices to this date (ISO 8601 format)
6810
+ */
6811
+ dateTo?: string;
6812
+ /**
6813
+ * Number of items per page (default: 20, max: 100)
6814
+ */
6815
+ limit?: number;
6816
+ /**
6817
+ * Page number for pagination (default: 1)
6818
+ */
6819
+ page?: number;
6820
+ /**
6821
+ * Filter by quote currency (pricing currency, e.g., USD, CNY)
6822
+ */
6823
+ quoteCurrency?: string;
6824
+ /**
6825
+ * Region code for tenant context
6826
+ */
6827
+ region: 'cn' | 'us' | 'de' | 'gb';
6828
+ /**
6829
+ * Search term for currency or quoteCurrency (case-insensitive partial match)
6830
+ */
6831
+ search?: string;
6832
+ };
6833
+
6834
+ export type PriceControllerFindAllResponse = PriceListResponseDto;
5678
6835
 
5679
- export type NlpControllerGetSessionData = {
6836
+ export type PriceControllerFindOneData = {
5680
6837
  /**
5681
- * Region code for tenant context
6838
+ * Price ID
5682
6839
  */
5683
- region: 'cn' | 'us' | 'de';
6840
+ id: string;
5684
6841
  /**
5685
- * Specific session ID to get (defaults to user session)
6842
+ * Region code for tenant context
5686
6843
  */
5687
- sessionId?: string;
6844
+ region: 'cn' | 'us' | 'de' | 'gb';
5688
6845
  };
5689
6846
 
5690
- export type NlpControllerGetSessionResponse = unknown;
6847
+ export type PriceControllerFindOneResponse = PriceResponseDto;
5691
6848
 
5692
- export type DashboardControllerGetNetWorthData = {
6849
+ export type PriceControllerUpdateData = {
5693
6850
  /**
5694
- * Date for balance calculation (ISO 8601 format)
6851
+ * Price ID
5695
6852
  */
5696
- date?: string;
6853
+ id: string;
5697
6854
  /**
5698
6855
  * Region code for tenant context
5699
6856
  */
5700
- region: 'cn' | 'us' | 'de';
6857
+ region: 'cn' | 'us' | 'de' | 'gb';
6858
+ requestBody: UpdateBeanPriceDto;
5701
6859
  };
5702
6860
 
5703
- export type DashboardControllerGetNetWorthResponse = NetWorthResponseDto;
6861
+ export type PriceControllerUpdateResponse = PriceResponseDto;
5704
6862
 
5705
- export type DashboardControllerGetAccountsData = {
5706
- /**
5707
- * Date for balance calculation (ISO 8601 format)
5708
- */
5709
- date?: string;
6863
+ export type PriceControllerDeleteData = {
5710
6864
  /**
5711
- * Grouping strategy
6865
+ * Price ID
5712
6866
  */
5713
- groupBy?: 'platform' | 'assetClass';
6867
+ id: string;
5714
6868
  /**
5715
6869
  * Region code for tenant context
5716
6870
  */
5717
- region: 'cn' | 'us' | 'de';
6871
+ region: 'cn' | 'us' | 'de' | 'gb';
5718
6872
  };
5719
6873
 
5720
- export type DashboardControllerGetAccountsResponse =
5721
- | AccountsResponseDto
5722
- | AssetClassAccountsResponseDto;
6874
+ export type PriceControllerDeleteResponse = void;
5723
6875
 
5724
- export type DashboardControllerGetCashFlowData = {
5725
- /**
5726
- * Period in YYYY-MM format
5727
- */
5728
- period: string;
6876
+ export type PriceControllerBulkCreateData = {
5729
6877
  /**
5730
6878
  * Region code for tenant context
5731
6879
  */
5732
- region: 'cn' | 'us' | 'de';
6880
+ region: 'cn' | 'us' | 'de' | 'gb';
6881
+ requestBody: Array<string>;
5733
6882
  };
5734
6883
 
5735
- export type DashboardControllerGetCashFlowResponse = CashFlowResponseDto;
6884
+ export type PriceControllerBulkCreateResponse = Array<PriceResponseDto>;
5736
6885
 
5737
6886
  export type ReportingControllerGetPortfolioTrendsData = {
5738
6887
  /**
@@ -5746,17 +6895,35 @@ export type ReportingControllerGetPortfolioTrendsData = {
5746
6895
  /**
5747
6896
  * Region code for tenant context
5748
6897
  */
5749
- region: 'cn' | 'us' | 'de';
6898
+ region: 'cn' | 'us' | 'de' | 'gb';
5750
6899
  };
5751
6900
 
5752
6901
  export type ReportingControllerGetPortfolioTrendsResponse =
5753
6902
  PortfolioTrendsResponseDto;
5754
6903
 
6904
+ export type ReportingControllerGetCashFlowTrendsData = {
6905
+ /**
6906
+ * Data granularity (accepted for API symmetry; v1 returns month buckets)
6907
+ */
6908
+ granularity?: 'day' | 'week' | 'month';
6909
+ /**
6910
+ * Time period
6911
+ */
6912
+ period?: '1m' | '3m' | '6m' | '1y';
6913
+ /**
6914
+ * Region code for tenant context
6915
+ */
6916
+ region: 'cn' | 'us' | 'de' | 'gb';
6917
+ };
6918
+
6919
+ export type ReportingControllerGetCashFlowTrendsResponse =
6920
+ CashFlowTrendsResponseDto;
6921
+
5755
6922
  export type ReportingControllerGenerateSnapshotData = {
5756
6923
  /**
5757
6924
  * Region code for tenant context
5758
6925
  */
5759
- region: 'cn' | 'us' | 'de';
6926
+ region: 'cn' | 'us' | 'de' | 'gb';
5760
6927
  /**
5761
6928
  * Optional date (defaults to today)
5762
6929
  */
@@ -5770,7 +6937,7 @@ export type ReportingControllerBackfillSnapshotsData = {
5770
6937
  /**
5771
6938
  * Region code for tenant context
5772
6939
  */
5773
- region: 'cn' | 'us' | 'de';
6940
+ region: 'cn' | 'us' | 'de' | 'gb';
5774
6941
  requestBody: BackfillSnapshotsBody;
5775
6942
  };
5776
6943
 
@@ -6027,6 +7194,48 @@ export type $OpenApiTs = {
6027
7194
  };
6028
7195
  };
6029
7196
  };
7197
+ '/api/v1/{region}/bean/transactions/{id}/correct': {
7198
+ post: {
7199
+ req: TransactionControllerCorrectData;
7200
+ res: {
7201
+ /**
7202
+ * Corrected transaction created
7203
+ */
7204
+ 201: TransactionDetailDto;
7205
+ /**
7206
+ * Original transaction not found
7207
+ */
7208
+ 404: ApiProblemResponseDto;
7209
+ /**
7210
+ * Original no longer ACTIVE (concurrent modification)
7211
+ */
7212
+ 409: ApiProblemResponseDto;
7213
+ /**
7214
+ * Pipeline validation failed (does not balance, invalid accounts)
7215
+ */
7216
+ 422: ApiProblemResponseDto;
7217
+ };
7218
+ };
7219
+ };
7220
+ '/api/v1/{region}/bean/transactions/tags': {
7221
+ get: {
7222
+ req: TransactionControllerSuggestTagsData;
7223
+ res: {
7224
+ /**
7225
+ * Tag suggestions
7226
+ */
7227
+ 200: TagSuggestionsResponseDto;
7228
+ /**
7229
+ * Validation failed
7230
+ */
7231
+ 400: ApiProblemResponseDto;
7232
+ /**
7233
+ * Authentication required
7234
+ */
7235
+ 401: ApiProblemResponseDto;
7236
+ };
7237
+ };
7238
+ };
6030
7239
  '/api/v1/{region}/bean/transactions/{id}': {
6031
7240
  get: {
6032
7241
  req: TransactionControllerGetDetailData;
@@ -7141,6 +8350,102 @@ export type $OpenApiTs = {
7141
8350
  };
7142
8351
  };
7143
8352
  };
8353
+ '/api/v1/{region}/bean/events': {
8354
+ post: {
8355
+ req: EventControllerCreateData;
8356
+ res: {
8357
+ /**
8358
+ * Life event created successfully
8359
+ */
8360
+ 201: EventResponseDto;
8361
+ /**
8362
+ * Life event already exists for this (userId, type, date) combination
8363
+ */
8364
+ 409: unknown;
8365
+ };
8366
+ };
8367
+ get: {
8368
+ req: EventControllerFindAllData;
8369
+ res: {
8370
+ /**
8371
+ * Life events retrieved successfully
8372
+ */
8373
+ 200: EventListResponseDto;
8374
+ };
8375
+ };
8376
+ };
8377
+ '/api/v1/{region}/bean/events/{id}': {
8378
+ get: {
8379
+ req: EventControllerFindOneData;
8380
+ res: {
8381
+ /**
8382
+ * Life event retrieved successfully
8383
+ */
8384
+ 200: EventResponseDto;
8385
+ /**
8386
+ * Life event not found
8387
+ */
8388
+ 404: unknown;
8389
+ };
8390
+ };
8391
+ put: {
8392
+ req: EventControllerUpdateData;
8393
+ res: {
8394
+ /**
8395
+ * Life event updated successfully
8396
+ */
8397
+ 200: EventResponseDto;
8398
+ /**
8399
+ * If-Match header is not a valid ISO 8601 date
8400
+ */
8401
+ 400: unknown;
8402
+ /**
8403
+ * Life event not found
8404
+ */
8405
+ 404: unknown;
8406
+ /**
8407
+ * Updated event conflicts with an existing (userId, type, date) combination
8408
+ */
8409
+ 409: unknown;
8410
+ /**
8411
+ * If-Match precondition failed (updatedAt mismatch)
8412
+ */
8413
+ 412: unknown;
8414
+ };
8415
+ };
8416
+ delete: {
8417
+ req: EventControllerDeleteData;
8418
+ res: {
8419
+ /**
8420
+ * Life event deleted successfully
8421
+ */
8422
+ 204: void;
8423
+ /**
8424
+ * Life event not found
8425
+ */
8426
+ 404: unknown;
8427
+ };
8428
+ };
8429
+ };
8430
+ '/api/v1/{region}/bean/events/{id}/slice': {
8431
+ get: {
8432
+ req: EventControllerGetSliceData;
8433
+ res: {
8434
+ /**
8435
+ * Time-series sliced by the life event range
8436
+ */
8437
+ 200: unknown;
8438
+ /**
8439
+ * accountPattern query param is empty
8440
+ */
8441
+ 400: unknown;
8442
+ /**
8443
+ * Life event not found
8444
+ */
8445
+ 404: unknown;
8446
+ };
8447
+ };
8448
+ };
7144
8449
  '/api/v1/{region}/bean/export/beancount': {
7145
8450
  get: {
7146
8451
  res: {
@@ -7431,6 +8736,32 @@ export type $OpenApiTs = {
7431
8736
  };
7432
8737
  };
7433
8738
  };
8739
+ '/api/v1/{region}/bean/import/parser-coverage-miss': {
8740
+ post: {
8741
+ req: TelemetryControllerReportCoverageMissData;
8742
+ res: {
8743
+ /**
8744
+ * Coverage miss report received
8745
+ */
8746
+ 200: unknown;
8747
+ /**
8748
+ * Unauthorized
8749
+ */
8750
+ 401: unknown;
8751
+ };
8752
+ };
8753
+ };
8754
+ '/api/v1/{region}/bean/import/parser-coverage-metrics': {
8755
+ get: {
8756
+ req: TelemetryControllerGetCoverageMetricsData;
8757
+ res: {
8758
+ /**
8759
+ * Coverage metrics
8760
+ */
8761
+ 200: unknown;
8762
+ };
8763
+ };
8764
+ };
7434
8765
  '/api/v1/{region}/bean/nlp/process': {
7435
8766
  post: {
7436
8767
  req: NlpControllerProcessNaturalLanguageData;
@@ -7500,7 +8831,10 @@ export type $OpenApiTs = {
7500
8831
  /**
7501
8832
  * Accounts retrieved successfully. Response type depends on groupBy parameter.
7502
8833
  */
7503
- 200: AccountsResponseDto | AssetClassAccountsResponseDto;
8834
+ 200:
8835
+ | AccountsResponseDto
8836
+ | AssetClassAccountsResponseDto
8837
+ | HoldingAssetClassCrossAccountResponseDto;
7504
8838
  /**
7505
8839
  * User not authenticated
7506
8840
  */
@@ -7527,6 +8861,128 @@ export type $OpenApiTs = {
7527
8861
  };
7528
8862
  };
7529
8863
  };
8864
+ '/api/v1/{region}/dashboard/expenses': {
8865
+ get: {
8866
+ req: DashboardControllerGetExpensesData;
8867
+ res: {
8868
+ /**
8869
+ * Expenses retrieved successfully
8870
+ */
8871
+ 200: ExpensesByCategoryResponseDto;
8872
+ /**
8873
+ * Invalid groupBy or period
8874
+ */
8875
+ 400: unknown;
8876
+ /**
8877
+ * User not authenticated
8878
+ */
8879
+ 401: unknown;
8880
+ };
8881
+ };
8882
+ };
8883
+ '/api/v1/{region}/investment/holdings/pnl': {
8884
+ get: {
8885
+ req: HoldingPnlControllerGetHoldingPnlData;
8886
+ res: {
8887
+ /**
8888
+ * Holding P&L retrieved successfully
8889
+ */
8890
+ 200: HoldingPnlResponseDto;
8891
+ /**
8892
+ * Invalid asOf format/value/future date, invalid accountId format, or unsupported method
8893
+ */
8894
+ 400: unknown;
8895
+ /**
8896
+ * User not authenticated
8897
+ */
8898
+ 401: unknown;
8899
+ };
8900
+ };
8901
+ };
8902
+ '/api/v1/{region}/bean/prices': {
8903
+ post: {
8904
+ req: PriceControllerCreateData;
8905
+ res: {
8906
+ /**
8907
+ * Price created successfully
8908
+ */
8909
+ 201: PriceResponseDto;
8910
+ /**
8911
+ * Currency or quoteCurrency commodity not found
8912
+ */
8913
+ 404: unknown;
8914
+ /**
8915
+ * Price already exists for this currency pair and date
8916
+ */
8917
+ 409: unknown;
8918
+ };
8919
+ };
8920
+ get: {
8921
+ req: PriceControllerFindAllData;
8922
+ res: {
8923
+ /**
8924
+ * Prices retrieved successfully
8925
+ */
8926
+ 200: PriceListResponseDto;
8927
+ };
8928
+ };
8929
+ };
8930
+ '/api/v1/{region}/bean/prices/{id}': {
8931
+ get: {
8932
+ req: PriceControllerFindOneData;
8933
+ res: {
8934
+ /**
8935
+ * Price retrieved successfully
8936
+ */
8937
+ 200: PriceResponseDto;
8938
+ /**
8939
+ * Price not found
8940
+ */
8941
+ 404: unknown;
8942
+ };
8943
+ };
8944
+ put: {
8945
+ req: PriceControllerUpdateData;
8946
+ res: {
8947
+ /**
8948
+ * Price updated successfully
8949
+ */
8950
+ 200: PriceResponseDto;
8951
+ /**
8952
+ * Price not found
8953
+ */
8954
+ 404: unknown;
8955
+ /**
8956
+ * Updated price conflicts with existing price
8957
+ */
8958
+ 409: unknown;
8959
+ };
8960
+ };
8961
+ delete: {
8962
+ req: PriceControllerDeleteData;
8963
+ res: {
8964
+ /**
8965
+ * Price deleted successfully
8966
+ */
8967
+ 204: void;
8968
+ /**
8969
+ * Price not found
8970
+ */
8971
+ 404: unknown;
8972
+ };
8973
+ };
8974
+ };
8975
+ '/api/v1/{region}/bean/prices/bulk': {
8976
+ post: {
8977
+ req: PriceControllerBulkCreateData;
8978
+ res: {
8979
+ /**
8980
+ * Prices created successfully
8981
+ */
8982
+ 201: Array<PriceResponseDto>;
8983
+ };
8984
+ };
8985
+ };
7530
8986
  '/api/v1/{region}/reporting/portfolio/trends': {
7531
8987
  get: {
7532
8988
  req: ReportingControllerGetPortfolioTrendsData;
@@ -7542,6 +8998,21 @@ export type $OpenApiTs = {
7542
8998
  };
7543
8999
  };
7544
9000
  };
9001
+ '/api/v1/{region}/reporting/cash-flow/trends': {
9002
+ get: {
9003
+ req: ReportingControllerGetCashFlowTrendsData;
9004
+ res: {
9005
+ /**
9006
+ * Cash-flow trends retrieved successfully
9007
+ */
9008
+ 200: CashFlowTrendsResponseDto;
9009
+ /**
9010
+ * User not authenticated
9011
+ */
9012
+ 401: unknown;
9013
+ };
9014
+ };
9015
+ };
7545
9016
  '/api/v1/{region}/reporting/snapshots/generate': {
7546
9017
  post: {
7547
9018
  req: ReportingControllerGenerateSnapshotData;