@firela/api-types 0.0.0-canary.b3b7767b → 0.0.0-canary.b8b25324

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.
@@ -17,22 +17,30 @@ import type {
17
17
  AccountControllerCloseResponse,
18
18
  AccountControllerReopenData,
19
19
  AccountControllerReopenResponse,
20
+ AccountControllerAddOpeningBalanceData,
21
+ AccountControllerAddOpeningBalanceResponse,
22
+ AccountStandardsControllerGetTemplatesData,
23
+ AccountStandardsControllerGetTemplatesResponse,
24
+ AccountStandardsControllerGetTemplateMetadataData,
25
+ AccountStandardsControllerGetTemplateMetadataResponse,
26
+ AccountStandardsControllerGetRegionsData,
27
+ AccountStandardsControllerGetRegionsResponse,
20
28
  TransactionControllerCreateData,
21
29
  TransactionControllerCreateResponse,
22
30
  TransactionControllerListData,
23
31
  TransactionControllerListResponse,
24
- TransactionControllerData,
25
- TransactionControllerResponse,
32
+ TransactionControllerCreateBatchData,
33
+ TransactionControllerCreateBatchResponse,
34
+ TransactionControllerCorrectData,
35
+ TransactionControllerCorrectResponse,
36
+ TransactionControllerSuggestTagsData,
37
+ TransactionControllerSuggestTagsResponse,
26
38
  TransactionControllerGetDetailData,
27
39
  TransactionControllerGetDetailResponse,
28
40
  TransactionControllerUpdateData,
29
41
  TransactionControllerUpdateResponse,
30
- TransactionController1Data,
31
- TransactionController1Response,
32
- AccountStandardsControllerGetTemplatesData,
33
- AccountStandardsControllerGetTemplatesResponse,
34
- AccountStandardsControllerGetRegionsData,
35
- AccountStandardsControllerGetRegionsResponse,
42
+ TransactionControllerDeleteData,
43
+ TransactionControllerDeleteResponse,
36
44
  BalanceControllerGetBalanceData,
37
45
  BalanceControllerGetBalanceResponse,
38
46
  BalanceControllerGetMultiCurrencyBalanceData,
@@ -43,14 +51,14 @@ import type {
43
51
  ReviewControllerGetStatsResponse,
44
52
  ReviewControllerFindOneData,
45
53
  ReviewControllerFindOneResponse,
46
- ReviewControllerData,
47
- ReviewControllerResponse,
48
- ReviewController1Data,
49
- ReviewController1Response,
50
- ReviewController2Data,
51
- ReviewController2Response,
52
- PayeeControllerData,
53
- PayeeControllerResponse,
54
+ ReviewControllerResolveData,
55
+ ReviewControllerResolveResponse,
56
+ ReviewControllerUndoData,
57
+ ReviewControllerUndoResponse,
58
+ ReviewControllerBatchResolveData,
59
+ ReviewControllerBatchResolveResponse,
60
+ PayeeControllerCreateData,
61
+ PayeeControllerCreateResponse,
54
62
  PayeeControllerFindAllData,
55
63
  PayeeControllerFindAllResponse,
56
64
  PayeeControllerAutocompleteData,
@@ -59,50 +67,62 @@ import type {
59
67
  PayeeControllerGetTopPayeesResponse,
60
68
  PayeeControllerFindOneData,
61
69
  PayeeControllerFindOneResponse,
62
- PayeeController1Data,
63
- PayeeController1Response,
64
- PayeeController2Data,
65
- PayeeController2Response,
66
- PayeeProfileAdminControllerData,
67
- PayeeProfileAdminControllerResponse,
70
+ PayeeControllerUpdateData,
71
+ PayeeControllerUpdateResponse,
72
+ PayeeControllerDeleteData,
73
+ PayeeControllerDeleteResponse,
74
+ PayeeProfileAdminControllerCreateData,
75
+ PayeeProfileAdminControllerCreateResponse,
68
76
  PayeeProfileAdminControllerFindAllData,
69
77
  PayeeProfileAdminControllerFindAllResponse,
70
78
  PayeeProfileAdminControllerFindOneData,
71
79
  PayeeProfileAdminControllerFindOneResponse,
72
- PayeeProfileAdminController1Data,
73
- PayeeProfileAdminController1Response,
74
- PayeeProfileAdminController2Data,
75
- PayeeProfileAdminController2Response,
76
- PayeeProfileAdminController3Data,
77
- PayeeProfileAdminController3Response,
78
- PayeeProfileAdminController4Data,
79
- PayeeProfileAdminController4Response,
80
- CommodityControllerData,
81
- CommodityControllerResponse,
80
+ PayeeProfileAdminControllerUpdateData,
81
+ PayeeProfileAdminControllerUpdateResponse,
82
+ PayeeProfileAdminControllerDeleteData,
83
+ PayeeProfileAdminControllerDeleteResponse,
84
+ PayeeProfileAdminControllerVerifyData,
85
+ PayeeProfileAdminControllerVerifyResponse,
86
+ PayeeProfileAdminControllerUnverifyData,
87
+ PayeeProfileAdminControllerUnverifyResponse,
88
+ CommodityControllerCreateData,
89
+ CommodityControllerCreateResponse,
82
90
  CommodityControllerFindAllData,
83
91
  CommodityControllerFindAllResponse,
84
92
  CommodityControllerFindOneData,
85
93
  CommodityControllerFindOneResponse,
86
- CommodityController1Data,
87
- CommodityController1Response,
88
- CommodityController2Data,
89
- CommodityController2Response,
90
- CommodityController3Data,
91
- CommodityController3Response,
92
- CommodityController4Data,
93
- CommodityController4Response,
94
- RecurringRuleControllerData,
95
- RecurringRuleControllerResponse,
94
+ CommodityControllerUpdateData,
95
+ CommodityControllerUpdateResponse,
96
+ CommodityControllerDeleteData,
97
+ CommodityControllerDeleteResponse,
98
+ CommodityControllerGetOrCreateData,
99
+ CommodityControllerGetOrCreateResponse,
100
+ CommodityControllerBulkCreateData,
101
+ CommodityControllerBulkCreateResponse,
102
+ PriceControllerCreateData,
103
+ PriceControllerCreateResponse,
104
+ PriceControllerFindAllData,
105
+ PriceControllerFindAllResponse,
106
+ PriceControllerFindOneData,
107
+ PriceControllerFindOneResponse,
108
+ PriceControllerUpdateData,
109
+ PriceControllerUpdateResponse,
110
+ PriceControllerDeleteData,
111
+ PriceControllerDeleteResponse,
112
+ PriceControllerBulkCreateData,
113
+ PriceControllerBulkCreateResponse,
114
+ RecurringRuleControllerCreateData,
115
+ RecurringRuleControllerCreateResponse,
96
116
  RecurringRuleControllerFindAllData,
97
117
  RecurringRuleControllerFindAllResponse,
98
- RecurringRuleController1Data,
99
- RecurringRuleController1Response,
118
+ RecurringRuleControllerCreateFromTransactionData,
119
+ RecurringRuleControllerCreateFromTransactionResponse,
100
120
  RecurringRuleControllerFindOneData,
101
121
  RecurringRuleControllerFindOneResponse,
102
- RecurringRuleController2Data,
103
- RecurringRuleController2Response,
104
- RecurringRuleController3Data,
105
- RecurringRuleController3Response,
122
+ RecurringRuleControllerUpdateData,
123
+ RecurringRuleControllerUpdateResponse,
124
+ RecurringRuleControllerDeleteData,
125
+ RecurringRuleControllerDeleteResponse,
106
126
  RecurringRuleControllerGetWithStatsData,
107
127
  RecurringRuleControllerGetWithStatsResponse,
108
128
  ExpectedTransactionControllerFindAllData,
@@ -111,38 +131,26 @@ import type {
111
131
  ExpectedTransactionControllerFindOverdueResponse,
112
132
  ExpectedTransactionControllerFindOneData,
113
133
  ExpectedTransactionControllerFindOneResponse,
114
- ExpectedTransactionControllerData,
115
- ExpectedTransactionControllerResponse,
116
- ExpectedTransactionController1Data,
117
- ExpectedTransactionController1Response,
118
- ExpectedTransactionController2Data,
119
- ExpectedTransactionController2Response,
120
- ExpectedTransactionController3Data,
121
- ExpectedTransactionController3Response,
122
- ExpectedTransactionController4Data,
123
- ExpectedTransactionController4Response,
134
+ ExpectedTransactionControllerSkipData,
135
+ ExpectedTransactionControllerSkipResponse,
136
+ ExpectedTransactionControllerUndoSkipData,
137
+ ExpectedTransactionControllerUndoSkipResponse,
138
+ ExpectedTransactionControllerConfirmMatchData,
139
+ ExpectedTransactionControllerConfirmMatchResponse,
140
+ ExpectedTransactionControllerUnmatchData,
141
+ ExpectedTransactionControllerUnmatchResponse,
142
+ ExpectedTransactionControllerEnterNowData,
143
+ ExpectedTransactionControllerEnterNowResponse,
124
144
  ForecastControllerGetForecastData,
125
145
  ForecastControllerGetForecastResponse,
126
- TransactionRuleControllerData,
127
- TransactionRuleControllerResponse,
128
- TransactionRuleControllerListData,
129
- TransactionRuleControllerListResponse,
130
- TransactionRuleControllerValidateData,
131
- TransactionRuleControllerValidateResponse,
132
- TransactionRuleController1Data,
133
- TransactionRuleController1Response,
134
- TransactionRuleControllerExportData,
135
- TransactionRuleControllerExportResponse,
136
- TransactionRuleControllerGetStatisticsData,
137
- TransactionRuleControllerGetStatisticsResponse,
138
- TransactionRuleControllerGetDetailData,
139
- TransactionRuleControllerGetDetailResponse,
140
- TransactionRuleController2Data,
141
- TransactionRuleController2Response,
142
- TransactionRuleController3Data,
143
- TransactionRuleController3Response,
144
- TransactionRuleControllerTestData,
145
- TransactionRuleControllerTestResponse,
146
+ ReportingControllerGetPortfolioTrendsData,
147
+ ReportingControllerGetPortfolioTrendsResponse,
148
+ ReportingControllerGetCashFlowTrendsData,
149
+ ReportingControllerGetCashFlowTrendsResponse,
150
+ ReportingControllerGenerateSnapshotData,
151
+ ReportingControllerGenerateSnapshotResponse,
152
+ ReportingControllerBackfillSnapshotsData,
153
+ ReportingControllerBackfillSnapshotsResponse,
146
154
  UserControllerDeleteOwnUserData,
147
155
  UserControllerDeleteOwnUserResponse,
148
156
  UserControllerGetUserData,
@@ -157,106 +165,134 @@ import type {
157
165
  UserControllerUpdateUserSettingResponse,
158
166
  UserControllerGetAllUserSettingsByPageData,
159
167
  UserControllerGetAllUserSettingsByPageResponse,
160
- UserControllerGetAssetLiabilitySummaryData,
161
168
  UserControllerGetAssetLiabilitySummaryResponse,
162
- PropertyControllerGetAllData,
163
169
  PropertyControllerGetAllResponse,
164
170
  PropertyControllerGetByKeyData,
165
171
  PropertyControllerGetByKeyResponse,
166
- PropertyControllerData,
167
- PropertyControllerResponse,
168
- PropertyController1Data,
169
- PropertyController1Response,
172
+ PropertyControllerUpdateData,
173
+ PropertyControllerUpdateResponse,
174
+ PropertyControllerDeleteData,
175
+ PropertyControllerDeleteResponse,
176
+ TransactionRuleControllerCreateData,
177
+ TransactionRuleControllerCreateResponse,
178
+ TransactionRuleControllerListData,
179
+ TransactionRuleControllerListResponse,
180
+ TransactionRuleControllerValidateData,
181
+ TransactionRuleControllerValidateResponse,
182
+ TransactionRuleControllerBulkCreateData,
183
+ TransactionRuleControllerBulkCreateResponse,
184
+ TransactionRuleControllerExportData,
185
+ TransactionRuleControllerExportResponse,
186
+ TransactionRuleControllerGetStatisticsData,
187
+ TransactionRuleControllerGetStatisticsResponse,
188
+ TransactionRuleControllerGetDetailData,
189
+ TransactionRuleControllerGetDetailResponse,
190
+ TransactionRuleControllerUpdateData,
191
+ TransactionRuleControllerUpdateResponse,
192
+ TransactionRuleControllerDeleteData,
193
+ TransactionRuleControllerDeleteResponse,
194
+ TransactionRuleControllerTestData,
195
+ TransactionRuleControllerTestResponse,
196
+ EventControllerCreateData,
197
+ EventControllerCreateResponse,
198
+ EventControllerFindAllData,
199
+ EventControllerFindAllResponse,
200
+ EventControllerFindOneData,
201
+ EventControllerFindOneResponse,
202
+ EventControllerUpdateData,
203
+ EventControllerUpdateResponse,
204
+ EventControllerDeleteData,
205
+ EventControllerDeleteResponse,
206
+ EventControllerGetSliceData,
207
+ EventControllerGetSliceResponse,
208
+ OnboardingControllerBootstrapData,
209
+ OnboardingControllerBootstrapResponse,
210
+ ReconciliationControllerComputeData,
211
+ ReconciliationControllerComputeResponse,
212
+ ReconciliationControllerAssertData,
213
+ ReconciliationControllerAssertResponse,
214
+ ReconciliationControllerPadData,
215
+ ReconciliationControllerPadResponse,
216
+ ReconciliationControllerHistoryData,
217
+ ReconciliationControllerHistoryResponse,
218
+ ExportControllerExportBeancountResponse,
170
219
  FileImportControllerImportFileData,
171
220
  FileImportControllerImportFileResponse,
172
221
  FileImportControllerIdentifyFileData,
173
222
  FileImportControllerIdentifyFileResponse,
223
+ FileImportControllerImportBeancountData,
224
+ FileImportControllerImportBeancountResponse,
174
225
  ImporterConfigControllerGetConfigData,
175
226
  ImporterConfigControllerGetConfigResponse,
176
- ImporterConfigControllerData,
177
- ImporterConfigControllerResponse,
178
- ImporterConfigController1Data,
179
- ImporterConfigController1Response,
227
+ ImporterConfigControllerUpdateConfigData,
228
+ ImporterConfigControllerUpdateConfigResponse,
229
+ ImporterConfigControllerResetConfigData,
230
+ ImporterConfigControllerResetConfigResponse,
180
231
  ProviderSyncControllerSyncData,
181
232
  ProviderSyncControllerSyncResponse,
182
233
  ProviderSyncControllerGetSupportedProvidersData,
183
234
  ProviderSyncControllerGetSupportedProvidersResponse,
184
235
  ProviderSyncControllerIsProviderSupportedData,
185
236
  ProviderSyncControllerIsProviderSupportedResponse,
237
+ ExternalAccountLinkControllerCreateData,
238
+ ExternalAccountLinkControllerCreateResponse,
239
+ ExternalAccountLinkControllerFindAllData,
240
+ ExternalAccountLinkControllerFindAllResponse,
241
+ ExternalAccountLinkControllerFindOneData,
242
+ ExternalAccountLinkControllerFindOneResponse,
243
+ ExternalAccountLinkControllerRemoveData,
244
+ ExternalAccountLinkControllerRemoveResponse,
186
245
  TelemetryControllerReportTelemetryData,
187
246
  TelemetryControllerReportTelemetryResponse,
247
+ TelemetryControllerReportCoverageMissData,
248
+ TelemetryControllerReportCoverageMissResponse,
249
+ TelemetryControllerGetCoverageMetricsData,
250
+ TelemetryControllerGetCoverageMetricsResponse,
188
251
  NlpControllerProcessNaturalLanguageData,
189
252
  NlpControllerProcessNaturalLanguageResponse,
190
253
  NlpControllerClearSessionData,
191
254
  NlpControllerClearSessionResponse,
192
255
  NlpControllerGetSessionData,
193
256
  NlpControllerGetSessionResponse,
194
- PlatformControllerFindAllData,
195
257
  PlatformControllerFindAllResponse,
196
- PlatformControllerData,
197
- PlatformControllerResponse,
198
- PlatformControllerGetPlatformListData,
258
+ PlatformControllerCreateData,
259
+ PlatformControllerCreateResponse,
199
260
  PlatformControllerGetPlatformListResponse,
200
- PlatformController1Data,
201
- PlatformController1Response,
202
- PlatformController2Data,
203
- PlatformController2Response,
204
- SymbolControllerLookupSymbolData,
205
- SymbolControllerLookupSymbolResponse,
206
- SymbolControllerGetSymbolDataData,
207
- SymbolControllerGetSymbolDataResponse,
208
- SymbolControllerGatherSymbolForDateData,
209
- SymbolControllerGatherSymbolForDateResponse,
210
- SymbolControllerData,
211
- SymbolControllerResponse,
212
- CacheControllerFlushCacheData,
213
- CacheControllerFlushCacheResponse,
261
+ PlatformControllerMatchPlatformsData,
262
+ PlatformControllerMatchPlatformsResponse,
263
+ PlatformControllerUpdateData,
264
+ PlatformControllerUpdateResponse,
265
+ PlatformControllerDeleteData,
266
+ PlatformControllerDeleteResponse,
214
267
  DashboardControllerGetNetWorthData,
215
268
  DashboardControllerGetNetWorthResponse,
216
269
  DashboardControllerGetAccountsData,
217
270
  DashboardControllerGetAccountsResponse,
218
271
  DashboardControllerGetCashFlowData,
219
272
  DashboardControllerGetCashFlowResponse,
220
- ReportingControllerGetPortfolioTrendsData,
221
- ReportingControllerGetPortfolioTrendsResponse,
222
- ReportingControllerGenerateSnapshotData,
223
- ReportingControllerGenerateSnapshotResponse,
224
- ReportingControllerBackfillSnapshotsData,
225
- ReportingControllerBackfillSnapshotsResponse,
226
- ApiKeysControllerData,
227
- ApiKeysControllerResponse,
273
+ DashboardControllerGetExpensesData,
274
+ DashboardControllerGetExpensesResponse,
275
+ HoldingPnlControllerGetHoldingPnlData,
276
+ HoldingPnlControllerGetHoldingPnlResponse,
277
+ ApiKeysControllerCreateApiKeyResponse,
228
278
  AuthControllerAccessTokenLoginData,
229
279
  AuthControllerAccessTokenLoginResponse,
280
+ CacheControllerFlushCacheResponse,
230
281
  ExchangeRateControllerGetExchangeRateData,
231
282
  ExchangeRateControllerGetExchangeRateResponse,
232
- HealthControllerGetHealthData,
233
283
  HealthControllerGetHealthResponse,
234
- HealthControllerCheckDatabaseData,
235
284
  HealthControllerCheckDatabaseResponse,
236
- HealthControllerCheckRedisData,
285
+ HealthControllerCheckOpenBbResponse,
237
286
  HealthControllerCheckRedisResponse,
238
- HealthControllerGetCircuitBreakersHealthData,
239
287
  HealthControllerGetCircuitBreakersHealthResponse,
240
288
  HealthControllerResetCircuitBreakerData,
241
289
  HealthControllerResetCircuitBreakerResponse,
242
- HealthControllerGetMetricsData,
243
290
  HealthControllerGetMetricsResponse,
244
- HealthControllerGetHealthOfDataEnhancerData,
245
- HealthControllerGetHealthOfDataEnhancerResponse,
246
- HealthControllerCheckDataProvidersData,
247
- HealthControllerCheckDataProvidersResponse,
248
- HealthControllerGetHealthOfDataProviderData,
249
- HealthControllerGetHealthOfDataProviderResponse,
250
- InfoControllerGetInfoData,
251
291
  InfoControllerGetInfoResponse,
252
- LogoControllerGetLogoByDataSourceAndSymbolData,
253
- LogoControllerGetLogoByDataSourceAndSymbolResponse,
254
- LogoControllerGetLogoByUrlData,
255
- LogoControllerGetLogoByUrlResponse,
256
- MarketDataControllerGetMarketDataBySymbolData,
257
- MarketDataControllerGetMarketDataBySymbolResponse,
258
- MarketDataControllerData,
259
- MarketDataControllerResponse
292
+ SymbolControllerSearchData,
293
+ SymbolControllerSearchResponse,
294
+ SymbolControllerGetQuoteData,
295
+ SymbolControllerGetQuoteResponse
260
296
  } from './types.gen';
261
297
 
262
298
  export class BeanAccountsService {
@@ -294,7 +330,7 @@ export class BeanAccountsService {
294
330
  * @param data.type Filter by account type
295
331
  * @param data.status Filter by status
296
332
  * @param data.isCustom Filter by custom (user-created) accounts only
297
- * @param data.search Search term for path or i18nKey
333
+ * @param data.search Search term for account path
298
334
  * @param data.limit Maximum number of results
299
335
  * @param data.offset Number of results to skip
300
336
  * @returns AccountListResponseDto Accounts retrieved successfully
@@ -456,6 +492,107 @@ export class BeanAccountsService {
456
492
  }
457
493
  });
458
494
  }
495
+
496
+ /**
497
+ * Post an opening-balance transaction
498
+ * Posts a double-entry opening-balance transaction against Equity:Opening-Balances for an existing Assets/Liabilities account. At most one active opening balance per account.
499
+ * @param data The data for the request.
500
+ * @param data.id Account UUID
501
+ * @param data.region Region code for tenant context
502
+ * @param data.requestBody
503
+ * @returns OpeningBalanceResultDto Opening-balance transaction created
504
+ * @throws ApiError
505
+ */
506
+ public static accountControllerAddOpeningBalance(
507
+ data: AccountControllerAddOpeningBalanceData
508
+ ): CancelablePromise<AccountControllerAddOpeningBalanceResponse> {
509
+ return __request(OpenAPI, {
510
+ method: 'POST',
511
+ url: '/api/v1/{region}/bean/accounts/{id}/opening-balance',
512
+ path: {
513
+ id: data.id,
514
+ region: data.region
515
+ },
516
+ body: data.requestBody,
517
+ mediaType: 'application/json',
518
+ errors: {
519
+ 404: 'Account not found',
520
+ 409: 'An opening balance already exists for this account'
521
+ }
522
+ });
523
+ }
524
+ }
525
+
526
+ export class BeanAccountStandardsService {
527
+ /**
528
+ * Get account templates
529
+ * Returns predefined account templates for a region. Supports filtering by account type and search term.
530
+ * @param data The data for the request.
531
+ * @param data.region Region code (cn, us, de)
532
+ * @param data.type Filter by account type
533
+ * @param data.search Search term for path or description
534
+ * @returns AccountStandardListResponseDto Account templates retrieved successfully
535
+ * @throws ApiError
536
+ */
537
+ public static accountStandardsControllerGetTemplates(
538
+ data: AccountStandardsControllerGetTemplatesData
539
+ ): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
540
+ return __request(OpenAPI, {
541
+ method: 'GET',
542
+ url: '/api/v1/{region}/bean/account-standards',
543
+ path: {
544
+ region: data.region
545
+ },
546
+ query: {
547
+ type: data.type,
548
+ search: data.search
549
+ }
550
+ });
551
+ }
552
+
553
+ /**
554
+ * Get template metadata for an account path
555
+ * Returns root type for a template path.
556
+ * @param data The data for the request.
557
+ * @param data.region Region code for tenant context
558
+ * @param data.path Account path to check
559
+ * @returns TemplateMetadataResponseDto Template metadata retrieved successfully
560
+ * @throws ApiError
561
+ */
562
+ public static accountStandardsControllerGetTemplateMetadata(
563
+ data: AccountStandardsControllerGetTemplateMetadataData
564
+ ): CancelablePromise<AccountStandardsControllerGetTemplateMetadataResponse> {
565
+ return __request(OpenAPI, {
566
+ method: 'GET',
567
+ url: '/api/v1/{region}/bean/account-standards/template-metadata',
568
+ path: {
569
+ region: data.region
570
+ },
571
+ query: {
572
+ path: data.path
573
+ }
574
+ });
575
+ }
576
+
577
+ /**
578
+ * Get available regions with hierarchy
579
+ * Returns supported regions with inheritance metadata
580
+ * @param data The data for the request.
581
+ * @param data.region Region code for tenant context
582
+ * @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
583
+ * @throws ApiError
584
+ */
585
+ public static accountStandardsControllerGetRegions(
586
+ data: AccountStandardsControllerGetRegionsData
587
+ ): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
588
+ return __request(OpenAPI, {
589
+ method: 'GET',
590
+ url: '/api/v1/{region}/bean/account-standards/regions',
591
+ path: {
592
+ region: data.region
593
+ }
594
+ });
595
+ }
459
596
  }
460
597
 
461
598
  export class BeanTransactionsService {
@@ -501,6 +638,7 @@ export class BeanTransactionsService {
501
638
  * @param data.status Filter by transaction status
502
639
  * @param data.search Search in narration and payee fields (max 200 chars)
503
640
  * @param data.accountId Filter by account ID (transactions with postings to this account)
641
+ * @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
504
642
  * @returns TransactionListResponseDto Transaction list
505
643
  * @throws ApiError
506
644
  */
@@ -520,28 +658,102 @@ export class BeanTransactionsService {
520
658
  dateTo: data.dateTo,
521
659
  status: data.status,
522
660
  search: data.search,
523
- accountId: data.accountId
661
+ accountId: data.accountId,
662
+ category: data.category
524
663
  },
525
664
  errors: {
665
+ 400: 'Validation failed',
526
666
  401: 'Authentication required'
527
667
  }
528
668
  });
529
669
  }
530
670
 
531
671
  /**
672
+ * @deprecated
673
+ * Batch create transactions (DEPRECATED)
674
+ * DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
532
675
  * @param data The data for the request.
533
676
  * @param data.region Region code for tenant context
534
- * @returns unknown
677
+ * @param data.requestBody
678
+ * @returns BatchTransactionResponseDto Transactions processed
535
679
  * @throws ApiError
536
680
  */
537
- public static transactionController(
538
- data: TransactionControllerData
539
- ): CancelablePromise<TransactionControllerResponse> {
681
+ public static transactionControllerCreateBatch(
682
+ data: TransactionControllerCreateBatchData
683
+ ): CancelablePromise<TransactionControllerCreateBatchResponse> {
540
684
  return __request(OpenAPI, {
541
685
  method: 'POST',
542
686
  url: '/api/v1/{region}/bean/transactions/batch',
543
687
  path: {
544
688
  region: data.region
689
+ },
690
+ body: data.requestBody,
691
+ mediaType: 'application/json',
692
+ errors: {
693
+ 400: 'Invalid input',
694
+ 401: 'Authentication required'
695
+ }
696
+ });
697
+ }
698
+
699
+ /**
700
+ * Correct (supersede) a transaction
701
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
702
+ * @param data The data for the request.
703
+ * @param data.id Original transaction ID to correct
704
+ * @param data.region Region code for tenant context
705
+ * @param data.requestBody
706
+ * @returns TransactionDetailDto Corrected transaction created
707
+ * @throws ApiError
708
+ */
709
+ public static transactionControllerCorrect(
710
+ data: TransactionControllerCorrectData
711
+ ): CancelablePromise<TransactionControllerCorrectResponse> {
712
+ return __request(OpenAPI, {
713
+ method: 'POST',
714
+ url: '/api/v1/{region}/bean/transactions/{id}/correct',
715
+ path: {
716
+ id: data.id,
717
+ region: data.region
718
+ },
719
+ body: data.requestBody,
720
+ mediaType: 'application/json',
721
+ errors: {
722
+ 404: 'Original transaction not found',
723
+ 409: 'Original no longer ACTIVE (concurrent modification)',
724
+ 422: 'Pipeline validation failed (does not balance, invalid accounts)'
725
+ }
726
+ });
727
+ }
728
+
729
+ /**
730
+ * Suggest transaction tags
731
+ * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
732
+ * @param data The data for the request.
733
+ * @param data.region Region code for tenant context
734
+ * @param data.q Prefix match, case-insensitive (max 50 chars)
735
+ * @param data.sort usage (default) or name
736
+ * @param data.limit Max suggestions (1-100, default 10)
737
+ * @returns TagSuggestionsResponseDto Tag suggestions
738
+ * @throws ApiError
739
+ */
740
+ public static transactionControllerSuggestTags(
741
+ data: TransactionControllerSuggestTagsData
742
+ ): CancelablePromise<TransactionControllerSuggestTagsResponse> {
743
+ return __request(OpenAPI, {
744
+ method: 'GET',
745
+ url: '/api/v1/{region}/bean/transactions/tags',
746
+ path: {
747
+ region: data.region
748
+ },
749
+ query: {
750
+ q: data.q,
751
+ sort: data.sort,
752
+ limit: data.limit
753
+ },
754
+ errors: {
755
+ 400: 'Validation failed',
756
+ 401: 'Authentication required'
545
757
  }
546
758
  });
547
759
  }
@@ -603,67 +815,28 @@ export class BeanTransactionsService {
603
815
  }
604
816
 
605
817
  /**
818
+ * Void transaction
819
+ * Soft-deletes a transaction by marking it as VOIDED
606
820
  * @param data The data for the request.
821
+ * @param data.id Transaction ID
607
822
  * @param data.region Region code for tenant context
608
- * @returns void
823
+ * @returns void Transaction voided successfully
609
824
  * @throws ApiError
610
825
  */
611
- public static transactionController1(
612
- data: TransactionController1Data
613
- ): CancelablePromise<TransactionController1Response> {
826
+ public static transactionControllerDelete(
827
+ data: TransactionControllerDeleteData
828
+ ): CancelablePromise<TransactionControllerDeleteResponse> {
614
829
  return __request(OpenAPI, {
615
830
  method: 'DELETE',
616
831
  url: '/api/v1/{region}/bean/transactions/{id}',
617
832
  path: {
618
- region: data.region
619
- }
620
- });
621
- }
622
- }
623
-
624
- export class BeanAccountStandardsService {
625
- /**
626
- * Get account templates
627
- * Returns predefined account templates for a region. Supports filtering by account type and search term.
628
- * @param data The data for the request.
629
- * @param data.region Region code (cn, us, de)
630
- * @param data.type Filter by account type
631
- * @param data.search Search term for path or description
632
- * @returns AccountStandardListResponseDto Account templates retrieved successfully
633
- * @throws ApiError
634
- */
635
- public static accountStandardsControllerGetTemplates(
636
- data: AccountStandardsControllerGetTemplatesData
637
- ): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
638
- return __request(OpenAPI, {
639
- method: 'GET',
640
- url: '/api/v1/{region}/bean/account-standards',
641
- path: {
833
+ id: data.id,
642
834
  region: data.region
643
835
  },
644
- query: {
645
- type: data.type,
646
- search: data.search
647
- }
648
- });
649
- }
650
-
651
- /**
652
- * Get available regions with hierarchy
653
- * Returns supported regions with inheritance metadata
654
- * @param data The data for the request.
655
- * @param data.region Region code (cn, us, de)
656
- * @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
657
- * @throws ApiError
658
- */
659
- public static accountStandardsControllerGetRegions(
660
- data: AccountStandardsControllerGetRegionsData
661
- ): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
662
- return __request(OpenAPI, {
663
- method: 'GET',
664
- url: '/api/v1/{region}/bean/account-standards/regions',
665
- path: {
666
- region: data.region
836
+ errors: {
837
+ 400: 'Transaction already voided',
838
+ 401: 'Authentication required',
839
+ 404: 'Transaction not found'
667
840
  }
668
841
  });
669
842
  }
@@ -674,8 +847,8 @@ export class BeanBalancesService {
674
847
  * Query account balance
675
848
  * Calculate account balance at a specific date for a single currency
676
849
  * @param data The data for the request.
677
- * @param data.account Account name (e.g., "Assets:Bank:Checking")
678
- * @param data.region Region code (cn, us, de)
850
+ * @param data.account Account name (e.g., "Assets:Checking")
851
+ * @param data.region Region code for tenant context
679
852
  * @param data.date Date to calculate balance at (ISO 8601 format)
680
853
  * @param data.currency Currency to query (e.g., "USD", "CNY")
681
854
  * @returns BalanceResponseDto Balance calculated successfully
@@ -706,7 +879,7 @@ export class BeanBalancesService {
706
879
  * Query multi-currency account balance
707
880
  * Calculate account balances for all currencies at a specific date
708
881
  * @param data The data for the request.
709
- * @param data.region Region code (cn, us, de)
882
+ * @param data.region Region code for tenant context
710
883
  * @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
711
884
  * @throws ApiError
712
885
  */
@@ -731,7 +904,7 @@ export class BeanReviewsService {
731
904
  /**
732
905
  * List pending reviews
733
906
  * @param data The data for the request.
734
- * @param data.region Region code (cn, us, de)
907
+ * @param data.region Region code for tenant context
735
908
  * @param data.type Filter by review type
736
909
  * @param data.confidenceLevel Filter by confidence level
737
910
  * @param data.sortBy Sort order
@@ -762,7 +935,7 @@ export class BeanReviewsService {
762
935
  /**
763
936
  * Get review statistics
764
937
  * @param data The data for the request.
765
- * @param data.region Region code (cn, us, de)
938
+ * @param data.region Region code for tenant context
766
939
  * @returns ReviewStatsDto
767
940
  * @throws ApiError
768
941
  */
@@ -782,7 +955,7 @@ export class BeanReviewsService {
782
955
  * Get review by ID
783
956
  * @param data The data for the request.
784
957
  * @param data.id Review ID
785
- * @param data.region Region code (cn, us, de)
958
+ * @param data.region Region code for tenant context
786
959
  * @returns ReviewDetailDto
787
960
  * @throws ApiError
788
961
  */
@@ -800,75 +973,93 @@ export class BeanReviewsService {
800
973
  }
801
974
 
802
975
  /**
976
+ * Resolve a review item
803
977
  * @param data The data for the request.
804
- * @param data.region Region code (cn, us, de)
805
- * @returns unknown
978
+ * @param data.id Review ID
979
+ * @param data.region Region code for tenant context
980
+ * @param data.requestBody
981
+ * @returns ResolveResultDto
806
982
  * @throws ApiError
807
983
  */
808
- public static reviewController(
809
- data: ReviewControllerData
810
- ): CancelablePromise<ReviewControllerResponse> {
984
+ public static reviewControllerResolve(
985
+ data: ReviewControllerResolveData
986
+ ): CancelablePromise<ReviewControllerResolveResponse> {
811
987
  return __request(OpenAPI, {
812
988
  method: 'POST',
813
989
  url: '/api/v1/{region}/bean/reviews/{id}/resolve',
814
990
  path: {
991
+ id: data.id,
815
992
  region: data.region
816
- }
993
+ },
994
+ body: data.requestBody,
995
+ mediaType: 'application/json'
817
996
  });
818
997
  }
819
998
 
820
999
  /**
1000
+ * Undo a resolution (within 24h)
821
1001
  * @param data The data for the request.
822
- * @param data.region Region code (cn, us, de)
823
- * @returns unknown
824
- * @throws ApiError
1002
+ * @param data.id Review ID
1003
+ * @param data.region Region code for tenant context
1004
+ * @returns UndoResultDto
1005
+ * @throws ApiError
825
1006
  */
826
- public static reviewController1(
827
- data: ReviewController1Data
828
- ): CancelablePromise<ReviewController1Response> {
1007
+ public static reviewControllerUndo(
1008
+ data: ReviewControllerUndoData
1009
+ ): CancelablePromise<ReviewControllerUndoResponse> {
829
1010
  return __request(OpenAPI, {
830
1011
  method: 'POST',
831
1012
  url: '/api/v1/{region}/bean/reviews/{id}/undo',
832
1013
  path: {
1014
+ id: data.id,
833
1015
  region: data.region
834
1016
  }
835
1017
  });
836
1018
  }
837
1019
 
838
1020
  /**
1021
+ * Batch resolve multiple reviews
839
1022
  * @param data The data for the request.
840
- * @param data.region Region code (cn, us, de)
841
- * @returns unknown
1023
+ * @param data.region Region code for tenant context
1024
+ * @param data.requestBody Batch resolution request containing review IDs and action
1025
+ * @returns BatchResolveResultDto
842
1026
  * @throws ApiError
843
1027
  */
844
- public static reviewController2(
845
- data: ReviewController2Data
846
- ): CancelablePromise<ReviewController2Response> {
1028
+ public static reviewControllerBatchResolve(
1029
+ data: ReviewControllerBatchResolveData
1030
+ ): CancelablePromise<ReviewControllerBatchResolveResponse> {
847
1031
  return __request(OpenAPI, {
848
1032
  method: 'POST',
849
1033
  url: '/api/v1/{region}/bean/reviews/batch-resolve',
850
1034
  path: {
851
1035
  region: data.region
852
- }
1036
+ },
1037
+ body: data.requestBody,
1038
+ mediaType: 'application/json'
853
1039
  });
854
1040
  }
855
1041
  }
856
1042
 
857
1043
  export class BeanPayeesService {
858
1044
  /**
1045
+ * Create a new payee
1046
+ * Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
859
1047
  * @param data The data for the request.
860
- * @param data.region Region code (cn, us, de)
861
- * @returns unknown
1048
+ * @param data.requestBody
1049
+ * @returns PayeeResponseDto Payee created successfully
862
1050
  * @throws ApiError
863
1051
  */
864
- public static payeeController(
865
- data: PayeeControllerData
866
- ): CancelablePromise<PayeeControllerResponse> {
1052
+ public static payeeControllerCreate(
1053
+ data: PayeeControllerCreateData
1054
+ ): CancelablePromise<PayeeControllerCreateResponse> {
867
1055
  return __request(OpenAPI, {
868
1056
  method: 'POST',
869
1057
  url: '/api/v1/bean/payees',
870
- path: {
871
- region: data.region
1058
+ body: data.requestBody,
1059
+ mediaType: 'application/json',
1060
+ errors: {
1061
+ 400: 'Invalid input data',
1062
+ 409: 'Payee already exists'
872
1063
  }
873
1064
  });
874
1065
  }
@@ -877,7 +1068,6 @@ export class BeanPayeesService {
877
1068
  * List user payees
878
1069
  * Returns all payee mappings for the authenticated user with optional filtering
879
1070
  * @param data The data for the request.
880
- * @param data.region Region code (cn, us, de)
881
1071
  * @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
882
1072
  * @param data.payee Filter by exact payee name match
883
1073
  * @param data.category Filter by custom category
@@ -887,14 +1077,11 @@ export class BeanPayeesService {
887
1077
  * @throws ApiError
888
1078
  */
889
1079
  public static payeeControllerFindAll(
890
- data: PayeeControllerFindAllData
1080
+ data: PayeeControllerFindAllData = {}
891
1081
  ): CancelablePromise<PayeeControllerFindAllResponse> {
892
1082
  return __request(OpenAPI, {
893
1083
  method: 'GET',
894
1084
  url: '/api/v1/bean/payees',
895
- path: {
896
- region: data.region
897
- },
898
1085
  query: {
899
1086
  search: data.search,
900
1087
  payee: data.payee,
@@ -910,7 +1097,6 @@ export class BeanPayeesService {
910
1097
  * Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
911
1098
  * @param data The data for the request.
912
1099
  * @param data.q Search query for payee name (partial match, case-insensitive)
913
- * @param data.region Region code (cn, us, de)
914
1100
  * @param data.limit Maximum number of suggestions
915
1101
  * @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
916
1102
  * @throws ApiError
@@ -921,9 +1107,6 @@ export class BeanPayeesService {
921
1107
  return __request(OpenAPI, {
922
1108
  method: 'GET',
923
1109
  url: '/api/v1/bean/payees/autocomplete',
924
- path: {
925
- region: data.region
926
- },
927
1110
  query: {
928
1111
  q: data.q,
929
1112
  limit: data.limit
@@ -935,20 +1118,16 @@ export class BeanPayeesService {
935
1118
  * Get top payees by usage
936
1119
  * Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
937
1120
  * @param data The data for the request.
938
- * @param data.region Region code (cn, us, de)
939
1121
  * @param data.limit Maximum number of results
940
1122
  * @returns PayeeStatsResponseDto Top payees retrieved successfully
941
1123
  * @throws ApiError
942
1124
  */
943
1125
  public static payeeControllerGetTopPayees(
944
- data: PayeeControllerGetTopPayeesData
1126
+ data: PayeeControllerGetTopPayeesData = {}
945
1127
  ): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
946
1128
  return __request(OpenAPI, {
947
1129
  method: 'GET',
948
1130
  url: '/api/v1/bean/payees/top',
949
- path: {
950
- region: data.region
951
- },
952
1131
  query: {
953
1132
  limit: data.limit
954
1133
  }
@@ -960,7 +1139,6 @@ export class BeanPayeesService {
960
1139
  * Returns a specific payee mapping by its UUID
961
1140
  * @param data The data for the request.
962
1141
  * @param data.id Payee UUID
963
- * @param data.region Region code (cn, us, de)
964
1142
  * @returns PayeeResponseDto Payee retrieved successfully
965
1143
  * @throws ApiError
966
1144
  */
@@ -971,8 +1149,7 @@ export class BeanPayeesService {
971
1149
  method: 'GET',
972
1150
  url: '/api/v1/bean/payees/{id}',
973
1151
  path: {
974
- id: data.id,
975
- region: data.region
1152
+ id: data.id
976
1153
  },
977
1154
  errors: {
978
1155
  403: 'Payee belongs to another user',
@@ -982,37 +1159,51 @@ export class BeanPayeesService {
982
1159
  }
983
1160
 
984
1161
  /**
1162
+ * Update payee
1163
+ * Updates a payee mapping. The payee name cannot be changed after creation.
985
1164
  * @param data The data for the request.
986
- * @param data.region Region code (cn, us, de)
987
- * @returns unknown
1165
+ * @param data.id Payee UUID
1166
+ * @param data.requestBody
1167
+ * @returns PayeeResponseDto Payee updated successfully
988
1168
  * @throws ApiError
989
1169
  */
990
- public static payeeController1(
991
- data: PayeeController1Data
992
- ): CancelablePromise<PayeeController1Response> {
1170
+ public static payeeControllerUpdate(
1171
+ data: PayeeControllerUpdateData
1172
+ ): CancelablePromise<PayeeControllerUpdateResponse> {
993
1173
  return __request(OpenAPI, {
994
1174
  method: 'PUT',
995
1175
  url: '/api/v1/bean/payees/{id}',
996
1176
  path: {
997
- region: data.region
1177
+ id: data.id
1178
+ },
1179
+ body: data.requestBody,
1180
+ mediaType: 'application/json',
1181
+ errors: {
1182
+ 400: 'Invalid input data',
1183
+ 404: 'Payee not found'
998
1184
  }
999
1185
  });
1000
1186
  }
1001
1187
 
1002
1188
  /**
1189
+ * Delete payee
1190
+ * Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
1003
1191
  * @param data The data for the request.
1004
- * @param data.region Region code (cn, us, de)
1005
- * @returns void
1192
+ * @param data.id Payee UUID
1193
+ * @returns void Payee deleted successfully
1006
1194
  * @throws ApiError
1007
1195
  */
1008
- public static payeeController2(
1009
- data: PayeeController2Data
1010
- ): CancelablePromise<PayeeController2Response> {
1196
+ public static payeeControllerDelete(
1197
+ data: PayeeControllerDeleteData
1198
+ ): CancelablePromise<PayeeControllerDeleteResponse> {
1011
1199
  return __request(OpenAPI, {
1012
1200
  method: 'DELETE',
1013
1201
  url: '/api/v1/bean/payees/{id}',
1014
1202
  path: {
1015
- region: data.region
1203
+ id: data.id
1204
+ },
1205
+ errors: {
1206
+ 404: 'Payee not found'
1016
1207
  }
1017
1208
  });
1018
1209
  }
@@ -1020,19 +1211,25 @@ export class BeanPayeesService {
1020
1211
 
1021
1212
  export class AdminPayeeProfilesService {
1022
1213
  /**
1214
+ * Create payee profile (Admin only)
1215
+ * Creates a new global payee profile. The canonical name must be unique (case-insensitive).
1023
1216
  * @param data The data for the request.
1024
- * @param data.region Region code (cn, us, de)
1025
- * @returns unknown
1217
+ * @param data.requestBody
1218
+ * @returns PayeeProfileResponseDto Payee profile created successfully
1026
1219
  * @throws ApiError
1027
1220
  */
1028
- public static payeeProfileAdminController(
1029
- data: PayeeProfileAdminControllerData
1030
- ): CancelablePromise<PayeeProfileAdminControllerResponse> {
1221
+ public static payeeProfileAdminControllerCreate(
1222
+ data: PayeeProfileAdminControllerCreateData
1223
+ ): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
1031
1224
  return __request(OpenAPI, {
1032
1225
  method: 'POST',
1033
1226
  url: '/api/v1/admin/payee-profiles',
1034
- path: {
1035
- region: data.region
1227
+ body: data.requestBody,
1228
+ mediaType: 'application/json',
1229
+ errors: {
1230
+ 400: 'Validation failed',
1231
+ 403: 'Admin access required',
1232
+ 409: 'Payee profile already exists'
1036
1233
  }
1037
1234
  });
1038
1235
  }
@@ -1041,7 +1238,6 @@ export class AdminPayeeProfilesService {
1041
1238
  * List payee profiles (Admin only)
1042
1239
  * Returns all payee profiles with optional filtering by category, country, verification status, etc.
1043
1240
  * @param data The data for the request.
1044
- * @param data.region Region code (cn, us, de)
1045
1241
  * @param data.search Search term for canonical name and aliases (case-insensitive)
1046
1242
  * @param data.category Filter by category
1047
1243
  * @param data.country Filter by country (ISO 3166-1 alpha-2)
@@ -1052,14 +1248,11 @@ export class AdminPayeeProfilesService {
1052
1248
  * @throws ApiError
1053
1249
  */
1054
1250
  public static payeeProfileAdminControllerFindAll(
1055
- data: PayeeProfileAdminControllerFindAllData
1251
+ data: PayeeProfileAdminControllerFindAllData = {}
1056
1252
  ): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
1057
1253
  return __request(OpenAPI, {
1058
1254
  method: 'GET',
1059
1255
  url: '/api/v1/admin/payee-profiles',
1060
- path: {
1061
- region: data.region
1062
- },
1063
1256
  query: {
1064
1257
  search: data.search,
1065
1258
  category: data.category,
@@ -1079,7 +1272,6 @@ export class AdminPayeeProfilesService {
1079
1272
  * Returns a single payee profile by its ID.
1080
1273
  * @param data The data for the request.
1081
1274
  * @param data.id Payee profile ID (UUID)
1082
- * @param data.region Region code (cn, us, de)
1083
1275
  * @returns PayeeProfileResponseDto Payee profile retrieved successfully
1084
1276
  * @throws ApiError
1085
1277
  */
@@ -1090,8 +1282,7 @@ export class AdminPayeeProfilesService {
1090
1282
  method: 'GET',
1091
1283
  url: '/api/v1/admin/payee-profiles/{id}',
1092
1284
  path: {
1093
- id: data.id,
1094
- region: data.region
1285
+ id: data.id
1095
1286
  },
1096
1287
  errors: {
1097
1288
  403: 'Admin access required',
@@ -1101,73 +1292,101 @@ export class AdminPayeeProfilesService {
1101
1292
  }
1102
1293
 
1103
1294
  /**
1295
+ * Update payee profile (Admin only)
1296
+ * Updates an existing payee profile. The canonical name cannot be changed.
1104
1297
  * @param data The data for the request.
1105
- * @param data.region Region code (cn, us, de)
1106
- * @returns unknown
1298
+ * @param data.id Payee profile ID (UUID)
1299
+ * @param data.requestBody
1300
+ * @returns PayeeProfileResponseDto Payee profile updated successfully
1107
1301
  * @throws ApiError
1108
1302
  */
1109
- public static payeeProfileAdminController1(
1110
- data: PayeeProfileAdminController1Data
1111
- ): CancelablePromise<PayeeProfileAdminController1Response> {
1303
+ public static payeeProfileAdminControllerUpdate(
1304
+ data: PayeeProfileAdminControllerUpdateData
1305
+ ): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
1112
1306
  return __request(OpenAPI, {
1113
1307
  method: 'PUT',
1114
1308
  url: '/api/v1/admin/payee-profiles/{id}',
1115
1309
  path: {
1116
- region: data.region
1310
+ id: data.id
1311
+ },
1312
+ body: data.requestBody,
1313
+ mediaType: 'application/json',
1314
+ errors: {
1315
+ 403: 'Admin access required',
1316
+ 404: 'Payee profile not found'
1117
1317
  }
1118
1318
  });
1119
1319
  }
1120
1320
 
1121
1321
  /**
1322
+ * Soft delete payee profile (Admin only)
1323
+ * Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
1122
1324
  * @param data The data for the request.
1123
- * @param data.region Region code (cn, us, de)
1124
- * @returns void
1325
+ * @param data.id Payee profile ID (UUID)
1326
+ * @returns void Payee profile deleted successfully
1125
1327
  * @throws ApiError
1126
1328
  */
1127
- public static payeeProfileAdminController2(
1128
- data: PayeeProfileAdminController2Data
1129
- ): CancelablePromise<PayeeProfileAdminController2Response> {
1329
+ public static payeeProfileAdminControllerDelete(
1330
+ data: PayeeProfileAdminControllerDeleteData
1331
+ ): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
1130
1332
  return __request(OpenAPI, {
1131
1333
  method: 'DELETE',
1132
1334
  url: '/api/v1/admin/payee-profiles/{id}',
1133
1335
  path: {
1134
- region: data.region
1336
+ id: data.id
1337
+ },
1338
+ errors: {
1339
+ 403: 'Admin access required',
1340
+ 404: 'Payee profile not found',
1341
+ 409: 'Payee profile is in use and cannot be deleted'
1135
1342
  }
1136
1343
  });
1137
1344
  }
1138
1345
 
1139
1346
  /**
1347
+ * Verify payee profile (Admin only)
1348
+ * Marks a payee profile as verified by setting verifiedAt to current timestamp.
1140
1349
  * @param data The data for the request.
1141
- * @param data.region Region code (cn, us, de)
1142
- * @returns unknown
1350
+ * @param data.id Payee profile ID (UUID)
1351
+ * @returns PayeeProfileResponseDto Payee profile verified successfully
1143
1352
  * @throws ApiError
1144
1353
  */
1145
- public static payeeProfileAdminController3(
1146
- data: PayeeProfileAdminController3Data
1147
- ): CancelablePromise<PayeeProfileAdminController3Response> {
1354
+ public static payeeProfileAdminControllerVerify(
1355
+ data: PayeeProfileAdminControllerVerifyData
1356
+ ): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
1148
1357
  return __request(OpenAPI, {
1149
1358
  method: 'POST',
1150
1359
  url: '/api/v1/admin/payee-profiles/{id}/verify',
1151
1360
  path: {
1152
- region: data.region
1361
+ id: data.id
1362
+ },
1363
+ errors: {
1364
+ 403: 'Admin access required',
1365
+ 404: 'Payee profile not found'
1153
1366
  }
1154
1367
  });
1155
1368
  }
1156
1369
 
1157
1370
  /**
1371
+ * Unverify payee profile (Admin only)
1372
+ * Removes verification status by setting verifiedAt to null.
1158
1373
  * @param data The data for the request.
1159
- * @param data.region Region code (cn, us, de)
1160
- * @returns unknown
1374
+ * @param data.id Payee profile ID (UUID)
1375
+ * @returns PayeeProfileResponseDto Payee profile unverified successfully
1161
1376
  * @throws ApiError
1162
1377
  */
1163
- public static payeeProfileAdminController4(
1164
- data: PayeeProfileAdminController4Data
1165
- ): CancelablePromise<PayeeProfileAdminController4Response> {
1378
+ public static payeeProfileAdminControllerUnverify(
1379
+ data: PayeeProfileAdminControllerUnverifyData
1380
+ ): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
1166
1381
  return __request(OpenAPI, {
1167
1382
  method: 'DELETE',
1168
1383
  url: '/api/v1/admin/payee-profiles/{id}/verify',
1169
1384
  path: {
1170
- region: data.region
1385
+ id: data.id
1386
+ },
1387
+ errors: {
1388
+ 403: 'Admin access required',
1389
+ 404: 'Payee profile not found'
1171
1390
  }
1172
1391
  });
1173
1392
  }
@@ -1175,19 +1394,28 @@ export class AdminPayeeProfilesService {
1175
1394
 
1176
1395
  export class BeanCommoditiesService {
1177
1396
  /**
1397
+ * Create a new commodity
1398
+ * Creates a new commodity definition for the authenticated user
1178
1399
  * @param data The data for the request.
1179
- * @param data.region Region code (cn, us, de)
1180
- * @returns unknown
1400
+ * @param data.region Region code for tenant context
1401
+ * @param data.requestBody
1402
+ * @returns CommodityResponseDto Commodity created successfully
1181
1403
  * @throws ApiError
1182
1404
  */
1183
- public static commodityController(
1184
- data: CommodityControllerData
1185
- ): CancelablePromise<CommodityControllerResponse> {
1405
+ public static commodityControllerCreate(
1406
+ data: CommodityControllerCreateData
1407
+ ): CancelablePromise<CommodityControllerCreateResponse> {
1186
1408
  return __request(OpenAPI, {
1187
1409
  method: 'POST',
1188
1410
  url: '/api/v1/{region}/bean/commodities',
1189
1411
  path: {
1190
1412
  region: data.region
1413
+ },
1414
+ body: data.requestBody,
1415
+ mediaType: 'application/json',
1416
+ errors: {
1417
+ 400: 'Invalid input data',
1418
+ 409: 'Commodity already exists'
1191
1419
  }
1192
1420
  });
1193
1421
  }
@@ -1196,7 +1424,7 @@ export class BeanCommoditiesService {
1196
1424
  * List user commodities
1197
1425
  * Returns all commodity definitions for the authenticated user with optional filtering
1198
1426
  * @param data The data for the request.
1199
- * @param data.region Region code (cn, us, de)
1427
+ * @param data.region Region code for tenant context
1200
1428
  * @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
1201
1429
  * @param data.symbol Filter by exact symbol match
1202
1430
  * @returns CommodityListResponseDto Commodities retrieved successfully
@@ -1223,7 +1451,7 @@ export class BeanCommoditiesService {
1223
1451
  * Returns a specific commodity definition by its symbol
1224
1452
  * @param data The data for the request.
1225
1453
  * @param data.symbol Commodity symbol
1226
- * @param data.region Region code (cn, us, de)
1454
+ * @param data.region Region code for tenant context
1227
1455
  * @returns CommodityResponseDto Commodity retrieved successfully
1228
1456
  * @throws ApiError
1229
1457
  */
@@ -1244,68 +1472,92 @@ export class BeanCommoditiesService {
1244
1472
  }
1245
1473
 
1246
1474
  /**
1475
+ * Update commodity
1476
+ * Updates an existing commodity definition. Symbol cannot be changed.
1247
1477
  * @param data The data for the request.
1248
- * @param data.region Region code (cn, us, de)
1249
- * @returns unknown
1478
+ * @param data.symbol Commodity symbol
1479
+ * @param data.region Region code for tenant context
1480
+ * @param data.requestBody
1481
+ * @returns CommodityResponseDto Commodity updated successfully
1250
1482
  * @throws ApiError
1251
1483
  */
1252
- public static commodityController1(
1253
- data: CommodityController1Data
1254
- ): CancelablePromise<CommodityController1Response> {
1484
+ public static commodityControllerUpdate(
1485
+ data: CommodityControllerUpdateData
1486
+ ): CancelablePromise<CommodityControllerUpdateResponse> {
1255
1487
  return __request(OpenAPI, {
1256
1488
  method: 'PUT',
1257
1489
  url: '/api/v1/{region}/bean/commodities/{symbol}',
1258
1490
  path: {
1491
+ symbol: data.symbol,
1259
1492
  region: data.region
1493
+ },
1494
+ body: data.requestBody,
1495
+ mediaType: 'application/json',
1496
+ errors: {
1497
+ 400: 'Invalid input data',
1498
+ 404: 'Commodity not found'
1260
1499
  }
1261
1500
  });
1262
1501
  }
1263
1502
 
1264
1503
  /**
1504
+ * Delete commodity
1505
+ * Deletes a commodity definition
1265
1506
  * @param data The data for the request.
1266
- * @param data.region Region code (cn, us, de)
1267
- * @returns void
1507
+ * @param data.symbol Commodity symbol
1508
+ * @param data.region Region code for tenant context
1509
+ * @returns void Commodity deleted successfully
1268
1510
  * @throws ApiError
1269
1511
  */
1270
- public static commodityController2(
1271
- data: CommodityController2Data
1272
- ): CancelablePromise<CommodityController2Response> {
1512
+ public static commodityControllerDelete(
1513
+ data: CommodityControllerDeleteData
1514
+ ): CancelablePromise<CommodityControllerDeleteResponse> {
1273
1515
  return __request(OpenAPI, {
1274
1516
  method: 'DELETE',
1275
1517
  url: '/api/v1/{region}/bean/commodities/{symbol}',
1276
1518
  path: {
1519
+ symbol: data.symbol,
1277
1520
  region: data.region
1521
+ },
1522
+ errors: {
1523
+ 404: 'Commodity not found'
1278
1524
  }
1279
1525
  });
1280
1526
  }
1281
1527
 
1282
1528
  /**
1529
+ * Ensure commodity exists
1530
+ * Gets existing commodity or creates it with automatic initialization from OpenBB
1283
1531
  * @param data The data for the request.
1284
- * @param data.region Region code (cn, us, de)
1285
- * @returns unknown
1532
+ * @param data.symbol Commodity symbol
1533
+ * @param data.region Region code for tenant context
1534
+ * @returns CommodityResponseDto Commodity retrieved or created
1286
1535
  * @throws ApiError
1287
1536
  */
1288
- public static commodityController3(
1289
- data: CommodityController3Data
1290
- ): CancelablePromise<CommodityController3Response> {
1537
+ public static commodityControllerGetOrCreate(
1538
+ data: CommodityControllerGetOrCreateData
1539
+ ): CancelablePromise<CommodityControllerGetOrCreateResponse> {
1291
1540
  return __request(OpenAPI, {
1292
1541
  method: 'POST',
1293
1542
  url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
1294
1543
  path: {
1544
+ symbol: data.symbol,
1295
1545
  region: data.region
1296
1546
  }
1297
1547
  });
1298
1548
  }
1299
1549
 
1300
1550
  /**
1551
+ * Bulk create commodities
1552
+ * Creates multiple commodities from a list of symbols, useful for initialization
1301
1553
  * @param data The data for the request.
1302
- * @param data.region Region code (cn, us, de)
1303
- * @returns unknown
1554
+ * @param data.region Region code for tenant context
1555
+ * @returns CommodityResponseDto Commodities created successfully
1304
1556
  * @throws ApiError
1305
1557
  */
1306
- public static commodityController4(
1307
- data: CommodityController4Data
1308
- ): CancelablePromise<CommodityController4Response> {
1558
+ public static commodityControllerBulkCreate(
1559
+ data: CommodityControllerBulkCreateData
1560
+ ): CancelablePromise<CommodityControllerBulkCreateResponse> {
1309
1561
  return __request(OpenAPI, {
1310
1562
  method: 'POST',
1311
1563
  url: '/api/v1/{region}/bean/commodities/bulk',
@@ -1316,182 +1568,387 @@ export class BeanCommoditiesService {
1316
1568
  }
1317
1569
  }
1318
1570
 
1319
- export class RecurringRulesService {
1571
+ export class BeanPricesService {
1320
1572
  /**
1573
+ * Create a new price
1574
+ * Creates a new price entry for the authenticated user
1321
1575
  * @param data The data for the request.
1322
- * @param data.region Region code (cn, us, de)
1323
- * @returns unknown
1576
+ * @param data.region Region code for tenant context
1577
+ * @param data.requestBody
1578
+ * @returns PriceResponseDto Price created successfully
1324
1579
  * @throws ApiError
1325
1580
  */
1326
- public static recurringRuleController(
1327
- data: RecurringRuleControllerData
1328
- ): CancelablePromise<RecurringRuleControllerResponse> {
1581
+ public static priceControllerCreate(
1582
+ data: PriceControllerCreateData
1583
+ ): CancelablePromise<PriceControllerCreateResponse> {
1329
1584
  return __request(OpenAPI, {
1330
1585
  method: 'POST',
1331
- url: '/api/v1/{region}/bean/recurring-rules',
1586
+ url: '/api/v1/{region}/bean/prices',
1332
1587
  path: {
1333
1588
  region: data.region
1589
+ },
1590
+ body: data.requestBody,
1591
+ mediaType: 'application/json',
1592
+ errors: {
1593
+ 404: 'Currency or quoteCurrency commodity not found',
1594
+ 409: 'Price already exists for this currency pair and date'
1334
1595
  }
1335
1596
  });
1336
1597
  }
1337
1598
 
1338
1599
  /**
1339
- * List recurring rules
1340
- * Returns all recurring rules for the authenticated user with optional filtering
1600
+ * List user prices
1601
+ * Returns all price entries for the authenticated user with optional filtering
1341
1602
  * @param data The data for the request.
1342
- * @param data.region Region code (cn, us, de)
1343
- * @param data.isActive Filter by active status
1344
- * @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
1345
- * @param data.hasAutoCreate Filter by autoCreate enabled
1346
- * @returns RecurringRuleResponseDto Rules retrieved successfully
1603
+ * @param data.region Region code for tenant context
1604
+ * @param data.currency Filter by currency (e.g., BTC, AAPL, USD)
1605
+ * @param data.quoteCurrency Filter by quote currency (pricing currency, e.g., USD, CNY)
1606
+ * @param data.dateFrom Filter prices from this date (ISO 8601 format)
1607
+ * @param data.dateTo Filter prices to this date (ISO 8601 format)
1608
+ * @param data.search Search term for currency or quoteCurrency (case-insensitive partial match)
1609
+ * @param data.page Page number for pagination (default: 1)
1610
+ * @param data.limit Number of items per page (default: 20, max: 100)
1611
+ * @returns PriceListResponseDto Prices retrieved successfully
1347
1612
  * @throws ApiError
1348
1613
  */
1349
- public static recurringRuleControllerFindAll(
1350
- data: RecurringRuleControllerFindAllData
1351
- ): CancelablePromise<RecurringRuleControllerFindAllResponse> {
1614
+ public static priceControllerFindAll(
1615
+ data: PriceControllerFindAllData
1616
+ ): CancelablePromise<PriceControllerFindAllResponse> {
1352
1617
  return __request(OpenAPI, {
1353
1618
  method: 'GET',
1354
- url: '/api/v1/{region}/bean/recurring-rules',
1619
+ url: '/api/v1/{region}/bean/prices',
1355
1620
  path: {
1356
1621
  region: data.region
1357
1622
  },
1358
1623
  query: {
1359
- isActive: data.isActive,
1360
- frequency: data.frequency,
1361
- hasAutoCreate: data.hasAutoCreate
1624
+ currency: data.currency,
1625
+ quoteCurrency: data.quoteCurrency,
1626
+ dateFrom: data.dateFrom,
1627
+ dateTo: data.dateTo,
1628
+ search: data.search,
1629
+ page: data.page,
1630
+ limit: data.limit
1362
1631
  }
1363
1632
  });
1364
1633
  }
1365
1634
 
1366
1635
  /**
1636
+ * Get price by ID
1637
+ * Returns a single price entry by its ID
1367
1638
  * @param data The data for the request.
1368
- * @param data.region Region code (cn, us, de)
1369
- * @returns unknown
1639
+ * @param data.id Price ID
1640
+ * @param data.region Region code for tenant context
1641
+ * @returns PriceResponseDto Price retrieved successfully
1370
1642
  * @throws ApiError
1371
1643
  */
1372
- public static recurringRuleController1(
1373
- data: RecurringRuleController1Data
1374
- ): CancelablePromise<RecurringRuleController1Response> {
1644
+ public static priceControllerFindOne(
1645
+ data: PriceControllerFindOneData
1646
+ ): CancelablePromise<PriceControllerFindOneResponse> {
1375
1647
  return __request(OpenAPI, {
1376
- method: 'POST',
1377
- url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
1648
+ method: 'GET',
1649
+ url: '/api/v1/{region}/bean/prices/{id}',
1378
1650
  path: {
1651
+ id: data.id,
1379
1652
  region: data.region
1653
+ },
1654
+ errors: {
1655
+ 404: 'Price not found'
1380
1656
  }
1381
1657
  });
1382
1658
  }
1383
1659
 
1384
1660
  /**
1385
- * Get recurring rule by ID
1386
- * Returns a specific recurring rule with its details
1661
+ * Update a price
1662
+ * Updates an existing price entry
1387
1663
  * @param data The data for the request.
1388
- * @param data.id Rule ID
1389
- * @param data.region Region code (cn, us, de)
1390
- * @returns RecurringRuleResponseDto Rule retrieved successfully
1664
+ * @param data.id Price ID
1665
+ * @param data.region Region code for tenant context
1666
+ * @param data.requestBody
1667
+ * @returns PriceResponseDto Price updated successfully
1391
1668
  * @throws ApiError
1392
1669
  */
1393
- public static recurringRuleControllerFindOne(
1394
- data: RecurringRuleControllerFindOneData
1395
- ): CancelablePromise<RecurringRuleControllerFindOneResponse> {
1670
+ public static priceControllerUpdate(
1671
+ data: PriceControllerUpdateData
1672
+ ): CancelablePromise<PriceControllerUpdateResponse> {
1396
1673
  return __request(OpenAPI, {
1397
- method: 'GET',
1398
- url: '/api/v1/{region}/bean/recurring-rules/{id}',
1674
+ method: 'PUT',
1675
+ url: '/api/v1/{region}/bean/prices/{id}',
1399
1676
  path: {
1400
1677
  id: data.id,
1401
1678
  region: data.region
1402
1679
  },
1680
+ body: data.requestBody,
1681
+ mediaType: 'application/json',
1403
1682
  errors: {
1404
- 404: 'Rule not found'
1683
+ 404: 'Price not found',
1684
+ 409: 'Updated price conflicts with existing price'
1405
1685
  }
1406
1686
  });
1407
1687
  }
1408
1688
 
1409
1689
  /**
1690
+ * Delete a price
1691
+ * Deletes a price entry (hard delete)
1410
1692
  * @param data The data for the request.
1411
- * @param data.region Region code (cn, us, de)
1412
- * @returns unknown
1693
+ * @param data.id Price ID
1694
+ * @param data.region Region code for tenant context
1695
+ * @returns void Price deleted successfully
1413
1696
  * @throws ApiError
1414
1697
  */
1415
- public static recurringRuleController2(
1416
- data: RecurringRuleController2Data
1417
- ): CancelablePromise<RecurringRuleController2Response> {
1698
+ public static priceControllerDelete(
1699
+ data: PriceControllerDeleteData
1700
+ ): CancelablePromise<PriceControllerDeleteResponse> {
1418
1701
  return __request(OpenAPI, {
1419
- method: 'PATCH',
1420
- url: '/api/v1/{region}/bean/recurring-rules/{id}',
1702
+ method: 'DELETE',
1703
+ url: '/api/v1/{region}/bean/prices/{id}',
1421
1704
  path: {
1705
+ id: data.id,
1422
1706
  region: data.region
1707
+ },
1708
+ errors: {
1709
+ 404: 'Price not found'
1423
1710
  }
1424
1711
  });
1425
1712
  }
1426
1713
 
1427
1714
  /**
1715
+ * Bulk create prices
1716
+ * Creates multiple price entries at once (skips duplicates)
1428
1717
  * @param data The data for the request.
1429
- * @param data.region Region code (cn, us, de)
1430
- * @returns void
1718
+ * @param data.region Region code for tenant context
1719
+ * @param data.requestBody
1720
+ * @returns PriceResponseDto Prices created successfully
1431
1721
  * @throws ApiError
1432
1722
  */
1433
- public static recurringRuleController3(
1434
- data: RecurringRuleController3Data
1435
- ): CancelablePromise<RecurringRuleController3Response> {
1723
+ public static priceControllerBulkCreate(
1724
+ data: PriceControllerBulkCreateData
1725
+ ): CancelablePromise<PriceControllerBulkCreateResponse> {
1436
1726
  return __request(OpenAPI, {
1437
- method: 'DELETE',
1438
- url: '/api/v1/{region}/bean/recurring-rules/{id}',
1727
+ method: 'POST',
1728
+ url: '/api/v1/{region}/bean/prices/bulk',
1439
1729
  path: {
1440
1730
  region: data.region
1441
- }
1731
+ },
1732
+ body: data.requestBody,
1733
+ mediaType: 'application/json'
1442
1734
  });
1443
1735
  }
1736
+ }
1444
1737
 
1738
+ export class RecurringRulesService {
1445
1739
  /**
1446
- * Get rule with statistics
1447
- * Returns a rule with pending/overdue counts and next expected date
1740
+ * Create a new recurring rule
1741
+ * Creates a new recurring transaction rule for the authenticated user
1448
1742
  * @param data The data for the request.
1449
- * @param data.id Rule ID
1450
- * @param data.region Region code (cn, us, de)
1451
- * @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
1743
+ * @param data.region Region code for tenant context
1744
+ * @param data.requestBody
1745
+ * @returns RecurringRuleResponseDto Rule created successfully
1452
1746
  * @throws ApiError
1453
1747
  */
1454
- public static recurringRuleControllerGetWithStats(
1455
- data: RecurringRuleControllerGetWithStatsData
1456
- ): CancelablePromise<RecurringRuleControllerGetWithStatsResponse> {
1748
+ public static recurringRuleControllerCreate(
1749
+ data: RecurringRuleControllerCreateData
1750
+ ): CancelablePromise<RecurringRuleControllerCreateResponse> {
1457
1751
  return __request(OpenAPI, {
1458
- method: 'GET',
1459
- url: '/api/v1/{region}/bean/recurring-rules/{id}/stats',
1752
+ method: 'POST',
1753
+ url: '/api/v1/{region}/bean/recurring-rules',
1460
1754
  path: {
1461
- id: data.id,
1462
1755
  region: data.region
1463
1756
  },
1757
+ body: data.requestBody,
1758
+ mediaType: 'application/json',
1464
1759
  errors: {
1465
- 404: 'Rule not found'
1760
+ 400: 'Invalid input data (e.g., autoCreate without accounts)',
1761
+ 409: 'Rule with same name already exists'
1466
1762
  }
1467
1763
  });
1468
1764
  }
1469
- }
1470
1765
 
1471
- export class ExpectedTransactionsService {
1472
1766
  /**
1473
- * List expected transactions
1474
- * Returns expected transactions for the authenticated user with optional filtering
1767
+ * List recurring rules
1768
+ * Returns all recurring rules for the authenticated user with optional filtering
1475
1769
  * @param data The data for the request.
1476
- * @param data.region Region code (cn, us, de)
1477
- * @param data.ruleId Filter by recurring rule ID
1478
- * @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
1479
- * @param data.fromDate Filter by date range start (YYYY-MM-DD)
1480
- * @param data.toDate Filter by date range end (YYYY-MM-DD)
1481
- * @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
1770
+ * @param data.region Region code for tenant context
1771
+ * @param data.isActive Filter by active status
1772
+ * @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
1773
+ * @param data.hasAutoCreate Filter by autoCreate enabled
1774
+ * @returns RecurringRuleResponseDto Rules retrieved successfully
1482
1775
  * @throws ApiError
1483
1776
  */
1484
- public static expectedTransactionControllerFindAll(
1485
- data: ExpectedTransactionControllerFindAllData
1486
- ): CancelablePromise<ExpectedTransactionControllerFindAllResponse> {
1777
+ public static recurringRuleControllerFindAll(
1778
+ data: RecurringRuleControllerFindAllData
1779
+ ): CancelablePromise<RecurringRuleControllerFindAllResponse> {
1487
1780
  return __request(OpenAPI, {
1488
1781
  method: 'GET',
1489
- url: '/api/v1/{region}/bean/expected-transactions',
1782
+ url: '/api/v1/{region}/bean/recurring-rules',
1490
1783
  path: {
1491
1784
  region: data.region
1492
1785
  },
1493
1786
  query: {
1494
- ruleId: data.ruleId,
1787
+ isActive: data.isActive,
1788
+ frequency: data.frequency,
1789
+ hasAutoCreate: data.hasAutoCreate
1790
+ }
1791
+ });
1792
+ }
1793
+
1794
+ /**
1795
+ * Create recurring rule from transaction
1796
+ * Auto-creates a recurring rule using transaction data. User only confirms frequency.
1797
+ * @param data The data for the request.
1798
+ * @param data.transactionId Source transaction ID
1799
+ * @param data.region Region code for tenant context
1800
+ * @param data.requestBody
1801
+ * @returns RecurringRuleResponseDto Rule created successfully
1802
+ * @throws ApiError
1803
+ */
1804
+ public static recurringRuleControllerCreateFromTransaction(
1805
+ data: RecurringRuleControllerCreateFromTransactionData
1806
+ ): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
1807
+ return __request(OpenAPI, {
1808
+ method: 'POST',
1809
+ url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
1810
+ path: {
1811
+ transactionId: data.transactionId,
1812
+ region: data.region
1813
+ },
1814
+ body: data.requestBody,
1815
+ mediaType: 'application/json',
1816
+ errors: {
1817
+ 404: 'Transaction not found',
1818
+ 409: 'Rule with same name already exists or transaction already linked'
1819
+ }
1820
+ });
1821
+ }
1822
+
1823
+ /**
1824
+ * Get recurring rule by ID
1825
+ * Returns a specific recurring rule with its details
1826
+ * @param data The data for the request.
1827
+ * @param data.id Rule ID
1828
+ * @param data.region Region code for tenant context
1829
+ * @returns RecurringRuleResponseDto Rule retrieved successfully
1830
+ * @throws ApiError
1831
+ */
1832
+ public static recurringRuleControllerFindOne(
1833
+ data: RecurringRuleControllerFindOneData
1834
+ ): CancelablePromise<RecurringRuleControllerFindOneResponse> {
1835
+ return __request(OpenAPI, {
1836
+ method: 'GET',
1837
+ url: '/api/v1/{region}/bean/recurring-rules/{id}',
1838
+ path: {
1839
+ id: data.id,
1840
+ region: data.region
1841
+ },
1842
+ errors: {
1843
+ 404: 'Rule not found'
1844
+ }
1845
+ });
1846
+ }
1847
+
1848
+ /**
1849
+ * Update recurring rule
1850
+ * Updates an existing recurring rule
1851
+ * @param data The data for the request.
1852
+ * @param data.id Rule ID
1853
+ * @param data.region Region code for tenant context
1854
+ * @param data.requestBody
1855
+ * @returns RecurringRuleResponseDto Rule updated successfully
1856
+ * @throws ApiError
1857
+ */
1858
+ public static recurringRuleControllerUpdate(
1859
+ data: RecurringRuleControllerUpdateData
1860
+ ): CancelablePromise<RecurringRuleControllerUpdateResponse> {
1861
+ return __request(OpenAPI, {
1862
+ method: 'PATCH',
1863
+ url: '/api/v1/{region}/bean/recurring-rules/{id}',
1864
+ path: {
1865
+ id: data.id,
1866
+ region: data.region
1867
+ },
1868
+ body: data.requestBody,
1869
+ mediaType: 'application/json',
1870
+ errors: {
1871
+ 400: 'Invalid input data',
1872
+ 404: 'Rule not found'
1873
+ }
1874
+ });
1875
+ }
1876
+
1877
+ /**
1878
+ * Delete recurring rule
1879
+ * Soft deletes a recurring rule (sets isActive to false)
1880
+ * @param data The data for the request.
1881
+ * @param data.id Rule ID
1882
+ * @param data.region Region code for tenant context
1883
+ * @returns void Rule deleted successfully
1884
+ * @throws ApiError
1885
+ */
1886
+ public static recurringRuleControllerDelete(
1887
+ data: RecurringRuleControllerDeleteData
1888
+ ): CancelablePromise<RecurringRuleControllerDeleteResponse> {
1889
+ return __request(OpenAPI, {
1890
+ method: 'DELETE',
1891
+ url: '/api/v1/{region}/bean/recurring-rules/{id}',
1892
+ path: {
1893
+ id: data.id,
1894
+ region: data.region
1895
+ },
1896
+ errors: {
1897
+ 404: 'Rule not found'
1898
+ }
1899
+ });
1900
+ }
1901
+
1902
+ /**
1903
+ * Get rule with statistics
1904
+ * Returns a rule with pending/overdue counts and next expected date
1905
+ * @param data The data for the request.
1906
+ * @param data.id Rule ID
1907
+ * @param data.region Region code for tenant context
1908
+ * @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
1909
+ * @throws ApiError
1910
+ */
1911
+ public static recurringRuleControllerGetWithStats(
1912
+ data: RecurringRuleControllerGetWithStatsData
1913
+ ): CancelablePromise<RecurringRuleControllerGetWithStatsResponse> {
1914
+ return __request(OpenAPI, {
1915
+ method: 'GET',
1916
+ url: '/api/v1/{region}/bean/recurring-rules/{id}/stats',
1917
+ path: {
1918
+ id: data.id,
1919
+ region: data.region
1920
+ },
1921
+ errors: {
1922
+ 404: 'Rule not found'
1923
+ }
1924
+ });
1925
+ }
1926
+ }
1927
+
1928
+ export class ExpectedTransactionsService {
1929
+ /**
1930
+ * List expected transactions
1931
+ * Returns expected transactions for the authenticated user with optional filtering
1932
+ * @param data The data for the request.
1933
+ * @param data.region Region code for tenant context
1934
+ * @param data.ruleId Filter by recurring rule ID
1935
+ * @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
1936
+ * @param data.fromDate Filter by date range start (YYYY-MM-DD)
1937
+ * @param data.toDate Filter by date range end (YYYY-MM-DD)
1938
+ * @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
1939
+ * @throws ApiError
1940
+ */
1941
+ public static expectedTransactionControllerFindAll(
1942
+ data: ExpectedTransactionControllerFindAllData
1943
+ ): CancelablePromise<ExpectedTransactionControllerFindAllResponse> {
1944
+ return __request(OpenAPI, {
1945
+ method: 'GET',
1946
+ url: '/api/v1/{region}/bean/expected-transactions',
1947
+ path: {
1948
+ region: data.region
1949
+ },
1950
+ query: {
1951
+ ruleId: data.ruleId,
1495
1952
  status: data.status,
1496
1953
  fromDate: data.fromDate,
1497
1954
  toDate: data.toDate
@@ -1500,162 +1957,621 @@ export class ExpectedTransactionsService {
1500
1957
  }
1501
1958
 
1502
1959
  /**
1503
- * List overdue expected transactions
1504
- * Returns all overdue expected transactions (PENDING past tolerance)
1960
+ * List overdue expected transactions
1961
+ * Returns all overdue expected transactions (PENDING past tolerance)
1962
+ * @param data The data for the request.
1963
+ * @param data.region Region code for tenant context
1964
+ * @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
1965
+ * @throws ApiError
1966
+ */
1967
+ public static expectedTransactionControllerFindOverdue(
1968
+ data: ExpectedTransactionControllerFindOverdueData
1969
+ ): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
1970
+ return __request(OpenAPI, {
1971
+ method: 'GET',
1972
+ url: '/api/v1/{region}/bean/expected-transactions/overdue',
1973
+ path: {
1974
+ region: data.region
1975
+ }
1976
+ });
1977
+ }
1978
+
1979
+ /**
1980
+ * Get expected transaction by ID
1981
+ * Returns a specific expected transaction with rule details
1982
+ * @param data The data for the request.
1983
+ * @param data.id Expected transaction ID
1984
+ * @param data.region Region code for tenant context
1985
+ * @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
1986
+ * @throws ApiError
1987
+ */
1988
+ public static expectedTransactionControllerFindOne(
1989
+ data: ExpectedTransactionControllerFindOneData
1990
+ ): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
1991
+ return __request(OpenAPI, {
1992
+ method: 'GET',
1993
+ url: '/api/v1/{region}/bean/expected-transactions/{id}',
1994
+ path: {
1995
+ id: data.id,
1996
+ region: data.region
1997
+ },
1998
+ errors: {
1999
+ 404: 'Expected transaction not found'
2000
+ }
2001
+ });
2002
+ }
2003
+
2004
+ /**
2005
+ * Skip expected transaction
2006
+ * Marks an expected transaction as skipped (PENDING -> SKIPPED)
2007
+ * @param data The data for the request.
2008
+ * @param data.id Expected transaction ID
2009
+ * @param data.region Region code for tenant context
2010
+ * @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
2011
+ * @throws ApiError
2012
+ */
2013
+ public static expectedTransactionControllerSkip(
2014
+ data: ExpectedTransactionControllerSkipData
2015
+ ): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
2016
+ return __request(OpenAPI, {
2017
+ method: 'POST',
2018
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
2019
+ path: {
2020
+ id: data.id,
2021
+ region: data.region
2022
+ },
2023
+ errors: {
2024
+ 400: 'Cannot skip - not in PENDING status',
2025
+ 404: 'Expected transaction not found'
2026
+ }
2027
+ });
2028
+ }
2029
+
2030
+ /**
2031
+ * Undo skip
2032
+ * Reverses a skip operation (SKIPPED -> PENDING)
2033
+ * @param data The data for the request.
2034
+ * @param data.id Expected transaction ID
2035
+ * @param data.region Region code for tenant context
2036
+ * @returns ExpectedTransactionResponseDto Skip undone successfully
2037
+ * @throws ApiError
2038
+ */
2039
+ public static expectedTransactionControllerUndoSkip(
2040
+ data: ExpectedTransactionControllerUndoSkipData
2041
+ ): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
2042
+ return __request(OpenAPI, {
2043
+ method: 'DELETE',
2044
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
2045
+ path: {
2046
+ id: data.id,
2047
+ region: data.region
2048
+ },
2049
+ errors: {
2050
+ 400: 'Cannot undo - not in SKIPPED status',
2051
+ 404: 'Expected transaction not found'
2052
+ }
2053
+ });
2054
+ }
2055
+
2056
+ /**
2057
+ * Confirm transaction match
2058
+ * Manually matches an expected transaction with an actual transaction
2059
+ * @param data The data for the request.
2060
+ * @param data.id Expected transaction ID
2061
+ * @param data.region Region code for tenant context
2062
+ * @param data.requestBody
2063
+ * @returns unknown Match confirmed successfully
2064
+ * @throws ApiError
2065
+ */
2066
+ public static expectedTransactionControllerConfirmMatch(
2067
+ data: ExpectedTransactionControllerConfirmMatchData
2068
+ ): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
2069
+ return __request(OpenAPI, {
2070
+ method: 'POST',
2071
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
2072
+ path: {
2073
+ id: data.id,
2074
+ region: data.region
2075
+ },
2076
+ body: data.requestBody,
2077
+ mediaType: 'application/json',
2078
+ errors: {
2079
+ 400: 'Cannot match - not in PENDING status',
2080
+ 404: 'Expected or actual transaction not found',
2081
+ 409: 'Actual transaction already matched to another rule'
2082
+ }
2083
+ });
2084
+ }
2085
+
2086
+ /**
2087
+ * Unmatch transaction
2088
+ * Removes the match between expected and actual transaction (COMPLETED -> PENDING)
2089
+ * @param data The data for the request.
2090
+ * @param data.id Expected transaction ID
2091
+ * @param data.region Region code for tenant context
2092
+ * @returns unknown Match removed successfully
2093
+ * @throws ApiError
2094
+ */
2095
+ public static expectedTransactionControllerUnmatch(
2096
+ data: ExpectedTransactionControllerUnmatchData
2097
+ ): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
2098
+ return __request(OpenAPI, {
2099
+ method: 'DELETE',
2100
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
2101
+ path: {
2102
+ id: data.id,
2103
+ region: data.region
2104
+ },
2105
+ errors: {
2106
+ 400: 'Cannot unmatch - not in COMPLETED status',
2107
+ 404: 'Expected transaction not found'
2108
+ }
2109
+ });
2110
+ }
2111
+
2112
+ /**
2113
+ * Enter Now
2114
+ * Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
2115
+ * @param data The data for the request.
2116
+ * @param data.id Expected transaction ID
2117
+ * @param data.region Region code for tenant context
2118
+ * @param data.requestBody
2119
+ * @returns unknown Transaction created successfully
2120
+ * @throws ApiError
2121
+ */
2122
+ public static expectedTransactionControllerEnterNow(
2123
+ data: ExpectedTransactionControllerEnterNowData
2124
+ ): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
2125
+ return __request(OpenAPI, {
2126
+ method: 'POST',
2127
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
2128
+ path: {
2129
+ id: data.id,
2130
+ region: data.region
2131
+ },
2132
+ body: data.requestBody,
2133
+ mediaType: 'application/json',
2134
+ errors: {
2135
+ 400: 'Cannot enter - not in PENDING status or missing accounts',
2136
+ 404: 'Expected transaction or accounts not found'
2137
+ }
2138
+ });
2139
+ }
2140
+ }
2141
+
2142
+ export class RecurringForecastService {
2143
+ /**
2144
+ * Get cash flow forecast
2145
+ * Returns predicted outflows for the next N months based on active recurring rules
2146
+ * @param data The data for the request.
2147
+ * @param data.region Region code for tenant context
2148
+ * @param data.months Number of months to forecast (1-12, default 3)
2149
+ * @returns ForecastResponseDto Forecast retrieved successfully
2150
+ * @throws ApiError
2151
+ */
2152
+ public static forecastControllerGetForecast(
2153
+ data: ForecastControllerGetForecastData
2154
+ ): CancelablePromise<ForecastControllerGetForecastResponse> {
2155
+ return __request(OpenAPI, {
2156
+ method: 'GET',
2157
+ url: '/api/v1/{region}/bean/recurring/forecast',
2158
+ path: {
2159
+ region: data.region
2160
+ },
2161
+ query: {
2162
+ months: data.months
2163
+ }
2164
+ });
2165
+ }
2166
+ }
2167
+
2168
+ export class ReportingService {
2169
+ /**
2170
+ * Get portfolio value trends
2171
+ *
2172
+ * Returns time series data of portfolio net worth.
2173
+ *
2174
+ * **Multi-currency Support:**
2175
+ * - `series[].byCurrency` - Currency breakdown for each data point
2176
+ * - `byCurrency` - Separate time series grouped by currency
2177
+ * - `warnings` - Exchange rate warnings if conversion failed
2178
+ *
2179
+ * **Parameters:**
2180
+ * - `period`: Time period (1m, 3m, 6m, 1y)
2181
+ * - `granularity`: Data granularity (day, week, month)
2182
+ *
2183
+ * @param data The data for the request.
2184
+ * @param data.region Region code for tenant context
2185
+ * @param data.period Time period
2186
+ * @param data.granularity Data granularity
2187
+ * @returns PortfolioTrendsResponseDto Trends retrieved successfully
2188
+ * @throws ApiError
2189
+ */
2190
+ public static reportingControllerGetPortfolioTrends(
2191
+ data: ReportingControllerGetPortfolioTrendsData
2192
+ ): CancelablePromise<ReportingControllerGetPortfolioTrendsResponse> {
2193
+ return __request(OpenAPI, {
2194
+ method: 'GET',
2195
+ url: '/api/v1/{region}/reporting/portfolio/trends',
2196
+ path: {
2197
+ region: data.region
2198
+ },
2199
+ query: {
2200
+ period: data.period,
2201
+ granularity: data.granularity
2202
+ },
2203
+ errors: {
2204
+ 401: 'User not authenticated'
2205
+ }
2206
+ });
2207
+ }
2208
+
2209
+ /**
2210
+ * Get cash-flow trends
2211
+ *
2212
+ * Monthly income / expense / netSavings over a fixed N-month window
2213
+ * (current month + N−1 prior). Missing months are zero-filled (flow metric).
2214
+ *
2215
+ * **Parameters:**
2216
+ * - `period`: 1m | 3m | 6m | 1y (default 6m)
2217
+ * - `granularity`: accepted for API symmetry; v1 returns month buckets
2218
+ *
2219
+ * @param data The data for the request.
2220
+ * @param data.region Region code for tenant context
2221
+ * @param data.period Time period
2222
+ * @param data.granularity Data granularity (accepted for API symmetry; v1 returns month buckets)
2223
+ * @returns CashFlowTrendsResponseDto Cash-flow trends retrieved successfully
2224
+ * @throws ApiError
2225
+ */
2226
+ public static reportingControllerGetCashFlowTrends(
2227
+ data: ReportingControllerGetCashFlowTrendsData
2228
+ ): CancelablePromise<ReportingControllerGetCashFlowTrendsResponse> {
2229
+ return __request(OpenAPI, {
2230
+ method: 'GET',
2231
+ url: '/api/v1/{region}/reporting/cash-flow/trends',
2232
+ path: {
2233
+ region: data.region
2234
+ },
2235
+ query: {
2236
+ period: data.period,
2237
+ granularity: data.granularity
2238
+ },
2239
+ errors: {
2240
+ 401: 'User not authenticated'
2241
+ }
2242
+ });
2243
+ }
2244
+
2245
+ /**
2246
+ * Generate portfolio snapshot
2247
+ *
2248
+ * Manually generate a portfolio snapshot for a specific date.
2249
+ *
2250
+ * **Multi-currency Support:**
2251
+ * - Fetches balances grouped by currency
2252
+ * - Uses user's baseCurrency setting for conversion
2253
+ * - Stores exchange rates and warnings
2254
+ *
2255
+ * **Use Cases:**
2256
+ * - Testing snapshot generation
2257
+ * - Force regeneration after data correction
2258
+ * - Initial setup for new users
2259
+ *
2260
+ * @param data The data for the request.
2261
+ * @param data.region Region code for tenant context
2262
+ * @param data.requestBody Optional date (defaults to today)
2263
+ * @returns GenerateSnapshotResponse Snapshot generated successfully
2264
+ * @throws ApiError
2265
+ */
2266
+ public static reportingControllerGenerateSnapshot(
2267
+ data: ReportingControllerGenerateSnapshotData
2268
+ ): CancelablePromise<ReportingControllerGenerateSnapshotResponse> {
2269
+ return __request(OpenAPI, {
2270
+ method: 'POST',
2271
+ url: '/api/v1/{region}/reporting/snapshots/generate',
2272
+ path: {
2273
+ region: data.region
2274
+ },
2275
+ body: data.requestBody,
2276
+ mediaType: 'application/json',
2277
+ errors: {
2278
+ 400: 'Invalid date format',
2279
+ 401: 'User not authenticated'
2280
+ }
2281
+ });
2282
+ }
2283
+
2284
+ /**
2285
+ * Backfill portfolio snapshots
2286
+ *
2287
+ * Generate snapshots for a date range (historical data backfill).
2288
+ *
2289
+ * **Multi-currency Support:**
2290
+ * - Each snapshot includes multi-currency data
2291
+ * - Uses exchange rates available at generation time
2292
+ * - Warnings stored for missing exchange rates
2293
+ *
2294
+ * **Best Practices:**
2295
+ * - Use for initial setup after account configuration
2296
+ * - Run during low-traffic periods for large date ranges
2297
+ * - Existing snapshots are skipped (not regenerated)
2298
+ *
2299
+ * @param data The data for the request.
2300
+ * @param data.region Region code for tenant context
2301
+ * @param data.requestBody
2302
+ * @returns BackfillSnapshotsResponse Backfill completed successfully
2303
+ * @throws ApiError
2304
+ */
2305
+ public static reportingControllerBackfillSnapshots(
2306
+ data: ReportingControllerBackfillSnapshotsData
2307
+ ): CancelablePromise<ReportingControllerBackfillSnapshotsResponse> {
2308
+ return __request(OpenAPI, {
2309
+ method: 'POST',
2310
+ url: '/api/v1/{region}/reporting/snapshots/backfill',
2311
+ path: {
2312
+ region: data.region
2313
+ },
2314
+ body: data.requestBody,
2315
+ mediaType: 'application/json',
2316
+ errors: {
2317
+ 400: 'Invalid date format or range',
2318
+ 401: 'User not authenticated',
2319
+ 409: 'Backfill already in progress for this user'
2320
+ }
2321
+ });
2322
+ }
2323
+ }
2324
+
2325
+ export class UsersService {
2326
+ /**
2327
+ * Delete own user account
2328
+ * @param data The data for the request.
2329
+ * @param data.requestBody
2330
+ * @returns void User deleted successfully
2331
+ * @throws ApiError
2332
+ */
2333
+ public static userControllerDeleteOwnUser(
2334
+ data: UserControllerDeleteOwnUserData
2335
+ ): CancelablePromise<UserControllerDeleteOwnUserResponse> {
2336
+ return __request(OpenAPI, {
2337
+ method: 'DELETE',
2338
+ url: '/api/v1/users',
2339
+ body: data.requestBody,
2340
+ mediaType: 'application/json',
2341
+ errors: {
2342
+ 403: 'Invalid access token'
2343
+ }
2344
+ });
2345
+ }
2346
+
2347
+ /**
2348
+ * Get current authenticated user
2349
+ * @param data The data for the request.
2350
+ * @param data.acceptLanguage
2351
+ * @returns unknown User retrieved successfully
2352
+ * @throws ApiError
2353
+ */
2354
+ public static userControllerGetUser(
2355
+ data: UserControllerGetUserData
2356
+ ): CancelablePromise<UserControllerGetUserResponse> {
2357
+ return __request(OpenAPI, {
2358
+ method: 'GET',
2359
+ url: '/api/v1/users',
2360
+ headers: {
2361
+ 'accept-language': data.acceptLanguage
2362
+ }
2363
+ });
2364
+ }
2365
+
2366
+ /**
2367
+ * Sign up new user
2368
+ * Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
1505
2369
  * @param data The data for the request.
1506
- * @param data.region Region code (cn, us, de)
1507
- * @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
2370
+ * @param data.requestBody
2371
+ * @returns SignupResponseDto User created successfully
1508
2372
  * @throws ApiError
1509
2373
  */
1510
- public static expectedTransactionControllerFindOverdue(
1511
- data: ExpectedTransactionControllerFindOverdueData
1512
- ): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
2374
+ public static userControllerSignupUser(
2375
+ data: UserControllerSignupUserData
2376
+ ): CancelablePromise<UserControllerSignupUserResponse> {
1513
2377
  return __request(OpenAPI, {
1514
- method: 'GET',
1515
- url: '/api/v1/{region}/bean/expected-transactions/overdue',
1516
- path: {
1517
- region: data.region
2378
+ method: 'POST',
2379
+ url: '/api/v1/users',
2380
+ body: data.requestBody,
2381
+ mediaType: 'application/json',
2382
+ errors: {
2383
+ 400: 'Invalid Turnstile token (when Turnstile is enabled)',
2384
+ 403: 'User signup is disabled'
1518
2385
  }
1519
2386
  });
1520
2387
  }
1521
2388
 
1522
2389
  /**
1523
- * Get expected transaction by ID
1524
- * Returns a specific expected transaction with rule details
2390
+ * Delete user by ID (admin only)
1525
2391
  * @param data The data for the request.
1526
- * @param data.id Expected transaction ID
1527
- * @param data.region Region code (cn, us, de)
1528
- * @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
2392
+ * @param data.id User ID to delete
2393
+ * @returns void User deleted successfully
1529
2394
  * @throws ApiError
1530
2395
  */
1531
- public static expectedTransactionControllerFindOne(
1532
- data: ExpectedTransactionControllerFindOneData
1533
- ): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
2396
+ public static userControllerDeleteUser(
2397
+ data: UserControllerDeleteUserData
2398
+ ): CancelablePromise<UserControllerDeleteUserResponse> {
1534
2399
  return __request(OpenAPI, {
1535
- method: 'GET',
1536
- url: '/api/v1/{region}/bean/expected-transactions/{id}',
2400
+ method: 'DELETE',
2401
+ url: '/api/v1/users/{id}',
1537
2402
  path: {
1538
- id: data.id,
1539
- region: data.region
2403
+ id: data.id
1540
2404
  },
1541
2405
  errors: {
1542
- 404: 'Expected transaction not found'
2406
+ 403: 'Cannot delete own account or insufficient permissions'
1543
2407
  }
1544
2408
  });
1545
2409
  }
1546
2410
 
1547
2411
  /**
2412
+ * Get user info by user ID
1548
2413
  * @param data The data for the request.
1549
- * @param data.region Region code (cn, us, de)
1550
- * @returns unknown
2414
+ * @param data.id User ID
2415
+ * @returns unknown User info retrieved successfully
1551
2416
  * @throws ApiError
1552
2417
  */
1553
- public static expectedTransactionController(
1554
- data: ExpectedTransactionControllerData
1555
- ): CancelablePromise<ExpectedTransactionControllerResponse> {
2418
+ public static userControllerGetUserInfo(
2419
+ data: UserControllerGetUserInfoData
2420
+ ): CancelablePromise<UserControllerGetUserInfoResponse> {
1556
2421
  return __request(OpenAPI, {
1557
- method: 'POST',
1558
- url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
2422
+ method: 'GET',
2423
+ url: '/api/v1/users/{id}/info',
1559
2424
  path: {
1560
- region: data.region
2425
+ id: data.id
2426
+ },
2427
+ errors: {
2428
+ 403: 'Cannot access other user info without admin permission'
1561
2429
  }
1562
2430
  });
1563
2431
  }
1564
2432
 
1565
2433
  /**
2434
+ * Update user settings
1566
2435
  * @param data The data for the request.
1567
- * @param data.region Region code (cn, us, de)
1568
- * @returns unknown
2436
+ * @param data.requestBody
2437
+ * @returns unknown Settings updated successfully
1569
2438
  * @throws ApiError
1570
2439
  */
1571
- public static expectedTransactionController1(
1572
- data: ExpectedTransactionController1Data
1573
- ): CancelablePromise<ExpectedTransactionController1Response> {
2440
+ public static userControllerUpdateUserSetting(
2441
+ data: UserControllerUpdateUserSettingData
2442
+ ): CancelablePromise<UserControllerUpdateUserSettingResponse> {
1574
2443
  return __request(OpenAPI, {
1575
- method: 'DELETE',
1576
- url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
1577
- path: {
1578
- region: data.region
2444
+ method: 'PUT',
2445
+ url: '/api/v1/users/setting',
2446
+ body: data.requestBody,
2447
+ mediaType: 'application/json',
2448
+ errors: {
2449
+ 403: 'Insufficient permissions'
1579
2450
  }
1580
2451
  });
1581
2452
  }
1582
2453
 
1583
2454
  /**
2455
+ * Get all user settings paginated (admin only)
1584
2456
  * @param data The data for the request.
1585
- * @param data.region Region code (cn, us, de)
1586
- * @returns unknown
2457
+ * @param data.pageNo Page number
2458
+ * @param data.pageSize Page size
2459
+ * @returns unknown Settings list retrieved successfully
1587
2460
  * @throws ApiError
1588
2461
  */
1589
- public static expectedTransactionController2(
1590
- data: ExpectedTransactionController2Data
1591
- ): CancelablePromise<ExpectedTransactionController2Response> {
2462
+ public static userControllerGetAllUserSettingsByPage(
2463
+ data: UserControllerGetAllUserSettingsByPageData
2464
+ ): CancelablePromise<UserControllerGetAllUserSettingsByPageResponse> {
1592
2465
  return __request(OpenAPI, {
1593
- method: 'POST',
1594
- url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
1595
- path: {
1596
- region: data.region
2466
+ method: 'GET',
2467
+ url: '/api/v1/users/settings-by-page',
2468
+ query: {
2469
+ pageNo: data.pageNo,
2470
+ pageSize: data.pageSize
2471
+ }
2472
+ });
2473
+ }
2474
+
2475
+ /**
2476
+ * Get asset and liability summary for current user
2477
+ * @returns unknown Summary retrieved successfully
2478
+ * @throws ApiError
2479
+ */
2480
+ public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
2481
+ return __request(OpenAPI, {
2482
+ method: 'GET',
2483
+ url: '/api/v1/users/asset-liability-summary'
2484
+ });
2485
+ }
2486
+ }
2487
+
2488
+ export class PropertiesService {
2489
+ /**
2490
+ * Get all system properties
2491
+ * @returns unknown Properties retrieved successfully
2492
+ * @throws ApiError
2493
+ */
2494
+ public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
2495
+ return __request(OpenAPI, {
2496
+ method: 'GET',
2497
+ url: '/api/v1/admin/properties',
2498
+ errors: {
2499
+ 401: 'Unauthorized',
2500
+ 403: 'Forbidden - insufficient permissions'
1597
2501
  }
1598
2502
  });
1599
2503
  }
1600
2504
 
1601
2505
  /**
2506
+ * Get property by key
1602
2507
  * @param data The data for the request.
1603
- * @param data.region Region code (cn, us, de)
1604
- * @returns unknown
2508
+ * @param data.key Property key
2509
+ * @returns unknown Property retrieved successfully
1605
2510
  * @throws ApiError
1606
2511
  */
1607
- public static expectedTransactionController3(
1608
- data: ExpectedTransactionController3Data
1609
- ): CancelablePromise<ExpectedTransactionController3Response> {
2512
+ public static propertyControllerGetByKey(
2513
+ data: PropertyControllerGetByKeyData
2514
+ ): CancelablePromise<PropertyControllerGetByKeyResponse> {
1610
2515
  return __request(OpenAPI, {
1611
- method: 'DELETE',
1612
- url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
2516
+ method: 'GET',
2517
+ url: '/api/v1/admin/properties/{key}',
1613
2518
  path: {
1614
- region: data.region
2519
+ key: data.key
2520
+ },
2521
+ errors: {
2522
+ 401: 'Unauthorized',
2523
+ 403: 'Forbidden - insufficient permissions',
2524
+ 404: 'Property not found'
1615
2525
  }
1616
2526
  });
1617
2527
  }
1618
2528
 
1619
2529
  /**
2530
+ * Update a system property
1620
2531
  * @param data The data for the request.
1621
- * @param data.region Region code (cn, us, de)
1622
- * @returns unknown
2532
+ * @param data.key Property key
2533
+ * @param data.requestBody
2534
+ * @returns unknown Property updated successfully
1623
2535
  * @throws ApiError
1624
2536
  */
1625
- public static expectedTransactionController4(
1626
- data: ExpectedTransactionController4Data
1627
- ): CancelablePromise<ExpectedTransactionController4Response> {
2537
+ public static propertyControllerUpdate(
2538
+ data: PropertyControllerUpdateData
2539
+ ): CancelablePromise<PropertyControllerUpdateResponse> {
1628
2540
  return __request(OpenAPI, {
1629
- method: 'POST',
1630
- url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
2541
+ method: 'PUT',
2542
+ url: '/api/v1/admin/properties/{key}',
1631
2543
  path: {
1632
- region: data.region
2544
+ key: data.key
2545
+ },
2546
+ body: data.requestBody,
2547
+ mediaType: 'application/json',
2548
+ errors: {
2549
+ 401: 'Unauthorized',
2550
+ 403: 'Forbidden - insufficient permissions'
1633
2551
  }
1634
2552
  });
1635
2553
  }
1636
- }
1637
2554
 
1638
- export class RecurringForecastService {
1639
2555
  /**
1640
- * Get cash flow forecast
1641
- * Returns predicted outflows for the next N months based on active recurring rules
2556
+ * Delete a system property
1642
2557
  * @param data The data for the request.
1643
- * @param data.region Region code (cn, us, de)
1644
- * @param data.months Number of months to forecast (1-12, default 3)
1645
- * @returns ForecastResponseDto Forecast retrieved successfully
2558
+ * @param data.key Property key
2559
+ * @returns void Property deleted successfully
1646
2560
  * @throws ApiError
1647
2561
  */
1648
- public static forecastControllerGetForecast(
1649
- data: ForecastControllerGetForecastData
1650
- ): CancelablePromise<ForecastControllerGetForecastResponse> {
2562
+ public static propertyControllerDelete(
2563
+ data: PropertyControllerDeleteData
2564
+ ): CancelablePromise<PropertyControllerDeleteResponse> {
1651
2565
  return __request(OpenAPI, {
1652
- method: 'GET',
1653
- url: '/api/v1/{region}/bean/recurring/forecast',
2566
+ method: 'DELETE',
2567
+ url: '/api/v1/admin/properties/{key}',
1654
2568
  path: {
1655
- region: data.region
2569
+ key: data.key
1656
2570
  },
1657
- query: {
1658
- months: data.months
2571
+ errors: {
2572
+ 401: 'Unauthorized',
2573
+ 403: 'Forbidden - insufficient permissions',
2574
+ 404: 'Property not found'
1659
2575
  }
1660
2576
  });
1661
2577
  }
@@ -1663,19 +2579,29 @@ export class RecurringForecastService {
1663
2579
 
1664
2580
  export class BeanTransactionRulesService {
1665
2581
  /**
2582
+ * Create a new transaction rule (or upsert if upsertByPayee=true)
2583
+ * Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
1666
2584
  * @param data The data for the request.
1667
- * @param data.region Region code (cn, us, de)
1668
- * @returns unknown
2585
+ * @param data.region Region code for tenant context
2586
+ * @param data.requestBody
2587
+ * @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
1669
2588
  * @throws ApiError
1670
2589
  */
1671
- public static transactionRuleController(
1672
- data: TransactionRuleControllerData
1673
- ): CancelablePromise<TransactionRuleControllerResponse> {
2590
+ public static transactionRuleControllerCreate(
2591
+ data: TransactionRuleControllerCreateData
2592
+ ): CancelablePromise<TransactionRuleControllerCreateResponse> {
1674
2593
  return __request(OpenAPI, {
1675
2594
  method: 'POST',
1676
2595
  url: '/api/v1/{region}/bean/transaction-rules',
1677
2596
  path: {
1678
2597
  region: data.region
2598
+ },
2599
+ body: data.requestBody,
2600
+ mediaType: 'application/json',
2601
+ errors: {
2602
+ 400: 'Validation failed',
2603
+ 401: 'Unauthorized',
2604
+ 409: 'Resource conflict - another process is updating this rule'
1679
2605
  }
1680
2606
  });
1681
2607
  }
@@ -1683,7 +2609,7 @@ export class BeanTransactionRulesService {
1683
2609
  /**
1684
2610
  * Get all transaction rules for user
1685
2611
  * @param data The data for the request.
1686
- * @param data.region Region code (cn, us, de)
2612
+ * @param data.region Region code for tenant context
1687
2613
  * @param data.limit Max results per page (default: 20, max: 100)
1688
2614
  * @param data.offset Pagination offset (default: 0)
1689
2615
  * @param data.enabled Filter by enabled status
@@ -1717,7 +2643,7 @@ export class BeanTransactionRulesService {
1717
2643
  /**
1718
2644
  * Validate transaction rule configuration
1719
2645
  * @param data The data for the request.
1720
- * @param data.region Region code (cn, us, de)
2646
+ * @param data.region Region code for tenant context
1721
2647
  * @param data.requestBody
1722
2648
  * @returns ValidateRuleResponseDto Validation result
1723
2649
  * @throws ApiError
@@ -1734,25 +2660,34 @@ export class BeanTransactionRulesService {
1734
2660
  body: data.requestBody,
1735
2661
  mediaType: 'application/json',
1736
2662
  errors: {
2663
+ 400: 'Validation failed',
1737
2664
  401: 'Unauthorized'
1738
2665
  }
1739
2666
  });
1740
2667
  }
1741
2668
 
1742
2669
  /**
2670
+ * Bulk create transaction rules
1743
2671
  * @param data The data for the request.
1744
- * @param data.region Region code (cn, us, de)
1745
- * @returns unknown
2672
+ * @param data.region Region code for tenant context
2673
+ * @param data.requestBody
2674
+ * @returns BulkCreateRulesResponseDto Bulk create completed
1746
2675
  * @throws ApiError
1747
2676
  */
1748
- public static transactionRuleController1(
1749
- data: TransactionRuleController1Data
1750
- ): CancelablePromise<TransactionRuleController1Response> {
2677
+ public static transactionRuleControllerBulkCreate(
2678
+ data: TransactionRuleControllerBulkCreateData
2679
+ ): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
1751
2680
  return __request(OpenAPI, {
1752
2681
  method: 'POST',
1753
2682
  url: '/api/v1/{region}/bean/transaction-rules/bulk',
1754
2683
  path: {
1755
2684
  region: data.region
2685
+ },
2686
+ body: data.requestBody,
2687
+ mediaType: 'application/json',
2688
+ errors: {
2689
+ 400: 'Invalid bulk create data',
2690
+ 401: 'Unauthorized'
1756
2691
  }
1757
2692
  });
1758
2693
  }
@@ -1761,7 +2696,7 @@ export class BeanTransactionRulesService {
1761
2696
  * Export transaction rules
1762
2697
  * @param data The data for the request.
1763
2698
  * @param data.format Export format (currently only JSON supported)
1764
- * @param data.region Region code (cn, us, de)
2699
+ * @param data.region Region code for tenant context
1765
2700
  * @returns ExportRulesResponseDto Exported rules
1766
2701
  * @throws ApiError
1767
2702
  */
@@ -1786,7 +2721,7 @@ export class BeanTransactionRulesService {
1786
2721
  * Get transaction rule statistics
1787
2722
  * @param data The data for the request.
1788
2723
  * @param data.period Statistics time period
1789
- * @param data.region Region code (cn, us, de)
2724
+ * @param data.region Region code for tenant context
1790
2725
  * @returns RuleStatisticsResponseDto Rule statistics
1791
2726
  * @throws ApiError
1792
2727
  */
@@ -1810,7 +2745,7 @@ export class BeanTransactionRulesService {
1810
2745
  * Get transaction rule detail
1811
2746
  * @param data The data for the request.
1812
2747
  * @param data.ruleId Rule ID
1813
- * @param data.region Region code (cn, us, de)
2748
+ * @param data.region Region code for tenant context
1814
2749
  * @returns TransactionRuleResponseDto Rule details
1815
2750
  * @throws ApiError
1816
2751
  */
@@ -1833,37 +2768,59 @@ export class BeanTransactionRulesService {
1833
2768
  }
1834
2769
 
1835
2770
  /**
2771
+ * Update a transaction rule
1836
2772
  * @param data The data for the request.
1837
- * @param data.region Region code (cn, us, de)
1838
- * @returns unknown
2773
+ * @param data.ruleId Rule ID to update
2774
+ * @param data.region Region code for tenant context
2775
+ * @param data.requestBody
2776
+ * @returns TransactionRuleResponseDto Rule updated successfully
1839
2777
  * @throws ApiError
1840
2778
  */
1841
- public static transactionRuleController2(
1842
- data: TransactionRuleController2Data
1843
- ): CancelablePromise<TransactionRuleController2Response> {
2779
+ public static transactionRuleControllerUpdate(
2780
+ data: TransactionRuleControllerUpdateData
2781
+ ): CancelablePromise<TransactionRuleControllerUpdateResponse> {
1844
2782
  return __request(OpenAPI, {
1845
2783
  method: 'PUT',
1846
2784
  url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1847
2785
  path: {
2786
+ ruleId: data.ruleId,
1848
2787
  region: data.region
2788
+ },
2789
+ body: data.requestBody,
2790
+ mediaType: 'application/json',
2791
+ errors: {
2792
+ 400: 'Validation failed',
2793
+ 401: 'Unauthorized',
2794
+ 403: 'Forbidden - not owner of rule',
2795
+ 404: 'Rule not found',
2796
+ 409: 'Resource conflict - rule is being modified by another process'
1849
2797
  }
1850
2798
  });
1851
2799
  }
1852
2800
 
1853
2801
  /**
2802
+ * Delete a transaction rule
1854
2803
  * @param data The data for the request.
1855
- * @param data.region Region code (cn, us, de)
1856
- * @returns void
2804
+ * @param data.ruleId Rule ID to delete
2805
+ * @param data.region Region code for tenant context
2806
+ * @returns void Rule deleted successfully
1857
2807
  * @throws ApiError
1858
2808
  */
1859
- public static transactionRuleController3(
1860
- data: TransactionRuleController3Data
1861
- ): CancelablePromise<TransactionRuleController3Response> {
2809
+ public static transactionRuleControllerDelete(
2810
+ data: TransactionRuleControllerDeleteData
2811
+ ): CancelablePromise<TransactionRuleControllerDeleteResponse> {
1862
2812
  return __request(OpenAPI, {
1863
2813
  method: 'DELETE',
1864
2814
  url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1865
2815
  path: {
2816
+ ruleId: data.ruleId,
1866
2817
  region: data.region
2818
+ },
2819
+ errors: {
2820
+ 401: 'Unauthorized',
2821
+ 403: 'Forbidden - not owner of rule',
2822
+ 404: 'Rule not found',
2823
+ 409: 'Resource conflict - rule is being modified by another process'
1867
2824
  }
1868
2825
  });
1869
2826
  }
@@ -1872,7 +2829,7 @@ export class BeanTransactionRulesService {
1872
2829
  * Test rule matching
1873
2830
  * @param data The data for the request.
1874
2831
  * @param data.ruleId Rule ID to test
1875
- * @param data.region Region code (cn, us, de)
2832
+ * @param data.region Region code for tenant context
1876
2833
  * @param data.requestBody
1877
2834
  * @returns TestRuleResponseDto Test result
1878
2835
  * @throws ApiError
@@ -1898,283 +2855,325 @@ export class BeanTransactionRulesService {
1898
2855
  }
1899
2856
  }
1900
2857
 
1901
- export class UsersService {
2858
+ export class LifeEventsService {
1902
2859
  /**
1903
- * Delete own user account
2860
+ * Create a new life event
2861
+ * Creates a new life event entry for the authenticated user. Returns ETag header carrying the row updatedAt.
1904
2862
  * @param data The data for the request.
1905
- * @param data.region Region code (cn, us, de)
2863
+ * @param data.region Region code for tenant context (decorative for life events)
1906
2864
  * @param data.requestBody
1907
- * @returns void User deleted successfully
2865
+ * @returns EventResponseDto Life event created successfully
1908
2866
  * @throws ApiError
1909
2867
  */
1910
- public static userControllerDeleteOwnUser(
1911
- data: UserControllerDeleteOwnUserData
1912
- ): CancelablePromise<UserControllerDeleteOwnUserResponse> {
2868
+ public static eventControllerCreate(
2869
+ data: EventControllerCreateData
2870
+ ): CancelablePromise<EventControllerCreateResponse> {
1913
2871
  return __request(OpenAPI, {
1914
- method: 'DELETE',
1915
- url: '/api/v1/users',
2872
+ method: 'POST',
2873
+ url: '/api/v1/{region}/bean/events',
1916
2874
  path: {
1917
2875
  region: data.region
1918
2876
  },
1919
2877
  body: data.requestBody,
1920
2878
  mediaType: 'application/json',
1921
2879
  errors: {
1922
- 403: 'Invalid access token'
2880
+ 409: 'Life event already exists for this (userId, type, date) combination'
2881
+ }
2882
+ });
2883
+ }
2884
+
2885
+ /**
2886
+ * List user life events
2887
+ * Returns life events for the authenticated user with optional filtering by type, description search, and date range.
2888
+ * @param data The data for the request.
2889
+ * @param data.region Region code for tenant context (decorative for life events)
2890
+ * @param data.type Filter by life event type (exact match)
2891
+ * @param data.q Search term for description (case-insensitive partial match)
2892
+ * @param data.from Filter life events from this date (ISO 8601 format)
2893
+ * @param data.to Filter life events to this date (ISO 8601 format)
2894
+ * @param data.page Page number for pagination (default: 1)
2895
+ * @param data.limit Number of items per page (default: 20, max: 100)
2896
+ * @returns EventListResponseDto Life events retrieved successfully
2897
+ * @throws ApiError
2898
+ */
2899
+ public static eventControllerFindAll(
2900
+ data: EventControllerFindAllData
2901
+ ): CancelablePromise<EventControllerFindAllResponse> {
2902
+ return __request(OpenAPI, {
2903
+ method: 'GET',
2904
+ url: '/api/v1/{region}/bean/events',
2905
+ path: {
2906
+ region: data.region
2907
+ },
2908
+ query: {
2909
+ type: data.type,
2910
+ q: data.q,
2911
+ from: data.from,
2912
+ to: data.to,
2913
+ page: data.page,
2914
+ limit: data.limit
1923
2915
  }
1924
2916
  });
1925
2917
  }
1926
2918
 
1927
2919
  /**
1928
- * Get current authenticated user
2920
+ * Get life event by ID
2921
+ * Returns a single life event by its ID. Returns ETag header.
1929
2922
  * @param data The data for the request.
1930
- * @param data.acceptLanguage
1931
- * @param data.region Region code (cn, us, de)
1932
- * @returns unknown User retrieved successfully
2923
+ * @param data.id Life event ID
2924
+ * @param data.region Region code for tenant context (decorative for life events)
2925
+ * @returns EventResponseDto Life event retrieved successfully
1933
2926
  * @throws ApiError
1934
2927
  */
1935
- public static userControllerGetUser(
1936
- data: UserControllerGetUserData
1937
- ): CancelablePromise<UserControllerGetUserResponse> {
2928
+ public static eventControllerFindOne(
2929
+ data: EventControllerFindOneData
2930
+ ): CancelablePromise<EventControllerFindOneResponse> {
1938
2931
  return __request(OpenAPI, {
1939
2932
  method: 'GET',
1940
- url: '/api/v1/users',
2933
+ url: '/api/v1/{region}/bean/events/{id}',
1941
2934
  path: {
2935
+ id: data.id,
1942
2936
  region: data.region
1943
2937
  },
1944
- headers: {
1945
- 'accept-language': data.acceptLanguage
2938
+ errors: {
2939
+ 404: 'Life event not found'
1946
2940
  }
1947
2941
  });
1948
2942
  }
1949
2943
 
1950
2944
  /**
1951
- * Sign up new user
1952
- * Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
2945
+ * Update a life event
2946
+ * Updates an existing life event. If If-Match header is provided, performs optimistic concurrency check; mismatched updatedAt returns 412.
1953
2947
  * @param data The data for the request.
1954
- * @param data.region Region code (cn, us, de)
2948
+ * @param data.id Life event ID
2949
+ * @param data.region Region code for tenant context (decorative for life events)
1955
2950
  * @param data.requestBody
1956
- * @returns unknown User created successfully
2951
+ * @returns EventResponseDto Life event updated successfully
1957
2952
  * @throws ApiError
1958
2953
  */
1959
- public static userControllerSignupUser(
1960
- data: UserControllerSignupUserData
1961
- ): CancelablePromise<UserControllerSignupUserResponse> {
2954
+ public static eventControllerUpdate(
2955
+ data: EventControllerUpdateData
2956
+ ): CancelablePromise<EventControllerUpdateResponse> {
1962
2957
  return __request(OpenAPI, {
1963
- method: 'POST',
1964
- url: '/api/v1/users',
2958
+ method: 'PUT',
2959
+ url: '/api/v1/{region}/bean/events/{id}',
1965
2960
  path: {
2961
+ id: data.id,
1966
2962
  region: data.region
1967
2963
  },
1968
2964
  body: data.requestBody,
1969
2965
  mediaType: 'application/json',
1970
2966
  errors: {
1971
- 400: 'Invalid Turnstile token (when Turnstile is enabled)',
1972
- 403: 'User signup is disabled'
2967
+ 400: 'If-Match header is not a valid ISO 8601 date',
2968
+ 404: 'Life event not found',
2969
+ 409: 'Updated event conflicts with an existing (userId, type, date) combination',
2970
+ 412: 'If-Match precondition failed (updatedAt mismatch)'
1973
2971
  }
1974
2972
  });
1975
2973
  }
1976
2974
 
1977
2975
  /**
1978
- * Delete user by ID (admin only)
2976
+ * Delete a life event
2977
+ * Deletes a life event entry (hard delete). Returns 204.
1979
2978
  * @param data The data for the request.
1980
- * @param data.id User ID to delete
1981
- * @param data.region Region code (cn, us, de)
1982
- * @returns void User deleted successfully
2979
+ * @param data.id Life event ID
2980
+ * @param data.region Region code for tenant context (decorative for life events)
2981
+ * @returns void Life event deleted successfully
1983
2982
  * @throws ApiError
1984
2983
  */
1985
- public static userControllerDeleteUser(
1986
- data: UserControllerDeleteUserData
1987
- ): CancelablePromise<UserControllerDeleteUserResponse> {
2984
+ public static eventControllerDelete(
2985
+ data: EventControllerDeleteData
2986
+ ): CancelablePromise<EventControllerDeleteResponse> {
1988
2987
  return __request(OpenAPI, {
1989
2988
  method: 'DELETE',
1990
- url: '/api/v1/users/{id}',
2989
+ url: '/api/v1/{region}/bean/events/{id}',
1991
2990
  path: {
1992
2991
  id: data.id,
1993
2992
  region: data.region
1994
2993
  },
1995
2994
  errors: {
1996
- 403: 'Cannot delete own account or insufficient permissions'
2995
+ 404: 'Life event not found'
1997
2996
  }
1998
2997
  });
1999
2998
  }
2000
2999
 
2001
3000
  /**
2002
- * Get user info by user ID
3001
+ * Slice time-series by a life event (Phase 79)
3002
+ * Returns aggregated time-series for postings matching accountPattern within the half-open date range of the given life event.
2003
3003
  * @param data The data for the request.
2004
- * @param data.id User ID
2005
- * @param data.region Region code (cn, us, de)
2006
- * @returns unknown User info retrieved successfully
3004
+ * @param data.id Life event ID
3005
+ * @param data.accountPattern
3006
+ * @param data.granularity
3007
+ * @param data.region Region code for tenant context (decorative for life events)
3008
+ * @returns unknown Time-series sliced by the life event range
2007
3009
  * @throws ApiError
2008
3010
  */
2009
- public static userControllerGetUserInfo(
2010
- data: UserControllerGetUserInfoData
2011
- ): CancelablePromise<UserControllerGetUserInfoResponse> {
3011
+ public static eventControllerGetSlice(
3012
+ data: EventControllerGetSliceData
3013
+ ): CancelablePromise<EventControllerGetSliceResponse> {
2012
3014
  return __request(OpenAPI, {
2013
3015
  method: 'GET',
2014
- url: '/api/v1/users/{id}/info',
3016
+ url: '/api/v1/{region}/bean/events/{id}/slice',
2015
3017
  path: {
2016
3018
  id: data.id,
2017
3019
  region: data.region
2018
3020
  },
3021
+ query: {
3022
+ accountPattern: data.accountPattern,
3023
+ granularity: data.granularity
3024
+ },
2019
3025
  errors: {
2020
- 403: 'Cannot access other user info without admin permission'
3026
+ 400: 'accountPattern query param is empty',
3027
+ 404: 'Life event not found'
2021
3028
  }
2022
3029
  });
2023
3030
  }
3031
+ }
2024
3032
 
3033
+ export class OnboardingService {
2025
3034
  /**
2026
- * Update user settings
3035
+ * Bootstrap core accounts + register asset accounts with opening balances (ADR-0113)
2027
3036
  * @param data The data for the request.
2028
- * @param data.region Region code (cn, us, de)
3037
+ * @param data.region Region code for tenant context
2029
3038
  * @param data.requestBody
2030
- * @returns unknown Settings updated successfully
3039
+ * @returns unknown Onboarding bootstrap result.
2031
3040
  * @throws ApiError
2032
3041
  */
2033
- public static userControllerUpdateUserSetting(
2034
- data: UserControllerUpdateUserSettingData
2035
- ): CancelablePromise<UserControllerUpdateUserSettingResponse> {
3042
+ public static onboardingControllerBootstrap(
3043
+ data: OnboardingControllerBootstrapData
3044
+ ): CancelablePromise<OnboardingControllerBootstrapResponse> {
2036
3045
  return __request(OpenAPI, {
2037
- method: 'PUT',
2038
- url: '/api/v1/users/setting',
3046
+ method: 'POST',
3047
+ url: '/api/v1/{region}/bean/onboarding',
2039
3048
  path: {
2040
3049
  region: data.region
2041
3050
  },
2042
3051
  body: data.requestBody,
2043
3052
  mediaType: 'application/json',
2044
3053
  errors: {
2045
- 403: 'Insufficient permissions'
3054
+ 422: 'Invalid region/account path/duplicate paths.'
2046
3055
  }
2047
3056
  });
2048
3057
  }
3058
+ }
2049
3059
 
3060
+ export class BalanceReconciliationService {
2050
3061
  /**
2051
- * Get all user settings paginated (admin only)
3062
+ * Preview reconciliation (book vs actual)
3063
+ * Computes book balance, diff, Beancount-inferred tolerance, and suggested action without persisting.
2052
3064
  * @param data The data for the request.
2053
- * @param data.pageNo Page number
2054
- * @param data.pageSize Page size
2055
- * @param data.region Region code (cn, us, de)
2056
- * @returns unknown Settings list retrieved successfully
3065
+ * @param data.region Region code for tenant context (decorative for reconciliation)
3066
+ * @param data.requestBody
3067
+ * @returns ReconciliationComputeResultDto Reconciliation preview
2057
3068
  * @throws ApiError
2058
3069
  */
2059
- public static userControllerGetAllUserSettingsByPage(
2060
- data: UserControllerGetAllUserSettingsByPageData
2061
- ): CancelablePromise<UserControllerGetAllUserSettingsByPageResponse> {
3070
+ public static reconciliationControllerCompute(
3071
+ data: ReconciliationControllerComputeData
3072
+ ): CancelablePromise<ReconciliationControllerComputeResponse> {
2062
3073
  return __request(OpenAPI, {
2063
- method: 'GET',
2064
- url: '/api/v1/users/settings-by-page',
3074
+ method: 'POST',
3075
+ url: '/api/v1/{region}/bean/reconciliations',
2065
3076
  path: {
2066
3077
  region: data.region
2067
3078
  },
2068
- query: {
2069
- pageNo: data.pageNo,
2070
- pageSize: data.pageSize
3079
+ body: data.requestBody,
3080
+ mediaType: 'application/json',
3081
+ errors: {
3082
+ 404: 'Account not found'
2071
3083
  }
2072
3084
  });
2073
3085
  }
2074
3086
 
2075
3087
  /**
2076
- * Get asset and liability summary for current user
3088
+ * Record a balance assertion
3089
+ * Persists the reconciliation as a BeanBalance assertion (amount = actual, diffAmount = book − actual). Re-reconciling the same day/currency upserts.
2077
3090
  * @param data The data for the request.
2078
- * @param data.region Region code (cn, us, de)
2079
- * @returns unknown Summary retrieved successfully
3091
+ * @param data.region Region code for tenant context (decorative for reconciliation)
3092
+ * @param data.requestBody
3093
+ * @returns ReconciliationRecordDto Balance assertion recorded
2080
3094
  * @throws ApiError
2081
3095
  */
2082
- public static userControllerGetAssetLiabilitySummary(
2083
- data: UserControllerGetAssetLiabilitySummaryData
2084
- ): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
3096
+ public static reconciliationControllerAssert(
3097
+ data: ReconciliationControllerAssertData
3098
+ ): CancelablePromise<ReconciliationControllerAssertResponse> {
2085
3099
  return __request(OpenAPI, {
2086
- method: 'GET',
2087
- url: '/api/v1/users/asset-liability-summary',
3100
+ method: 'POST',
3101
+ url: '/api/v1/{region}/bean/reconciliations/assert',
2088
3102
  path: {
2089
3103
  region: data.region
3104
+ },
3105
+ body: data.requestBody,
3106
+ mediaType: 'application/json',
3107
+ errors: {
3108
+ 404: 'Account not found'
2090
3109
  }
2091
3110
  });
2092
3111
  }
2093
- }
2094
3112
 
2095
- export class PropertiesService {
2096
3113
  /**
2097
- * Get all system properties
3114
+ * Generate a pad adjusting entry
3115
+ * When book is outside tolerance, synthesizes a Beancount pad transaction (flag P) booking the diff from source_account and persists it. Source defaults to Equity:Opening-Balances.
2098
3116
  * @param data The data for the request.
2099
- * @param data.region Region code (cn, us, de)
2100
- * @returns unknown Properties retrieved successfully
3117
+ * @param data.region Region code for tenant context (decorative for reconciliation)
3118
+ * @param data.requestBody
3119
+ * @returns PadResultDto Pad adjusting entry generated
2101
3120
  * @throws ApiError
2102
3121
  */
2103
- public static propertyControllerGetAll(
2104
- data: PropertyControllerGetAllData
2105
- ): CancelablePromise<PropertyControllerGetAllResponse> {
3122
+ public static reconciliationControllerPad(
3123
+ data: ReconciliationControllerPadData
3124
+ ): CancelablePromise<ReconciliationControllerPadResponse> {
2106
3125
  return __request(OpenAPI, {
2107
- method: 'GET',
2108
- url: '/api/v1/admin/properties',
3126
+ method: 'POST',
3127
+ url: '/api/v1/{region}/bean/reconciliations/pad',
2109
3128
  path: {
2110
3129
  region: data.region
2111
3130
  },
3131
+ body: data.requestBody,
3132
+ mediaType: 'application/json',
2112
3133
  errors: {
2113
- 401: 'Unauthorized',
2114
- 403: 'Forbidden - insufficient permissions'
3134
+ 400: 'Book already within tolerance — no pad needed',
3135
+ 404: 'Account not found'
2115
3136
  }
2116
3137
  });
2117
3138
  }
2118
3139
 
2119
3140
  /**
2120
- * Get property by key
3141
+ * List reconciliation history for an account
3142
+ * Returns recorded balance assertions (most recent first). The latest drives the account-detail "Last <date>" badge.
2121
3143
  * @param data The data for the request.
2122
- * @param data.key Property key
2123
- * @param data.region Region code (cn, us, de)
2124
- * @returns unknown Property retrieved successfully
3144
+ * @param data.accountId BeanAccount id
3145
+ * @param data.region Region code for tenant context (decorative for reconciliation)
3146
+ * @returns ReconciliationRecordDto Reconciliation history
2125
3147
  * @throws ApiError
2126
3148
  */
2127
- public static propertyControllerGetByKey(
2128
- data: PropertyControllerGetByKeyData
2129
- ): CancelablePromise<PropertyControllerGetByKeyResponse> {
3149
+ public static reconciliationControllerHistory(
3150
+ data: ReconciliationControllerHistoryData
3151
+ ): CancelablePromise<ReconciliationControllerHistoryResponse> {
2130
3152
  return __request(OpenAPI, {
2131
3153
  method: 'GET',
2132
- url: '/api/v1/admin/properties/{key}',
3154
+ url: '/api/v1/{region}/bean/accounts/{accountId}/reconciliations',
2133
3155
  path: {
2134
- key: data.key,
3156
+ accountId: data.accountId,
2135
3157
  region: data.region
2136
3158
  },
2137
3159
  errors: {
2138
- 401: 'Unauthorized',
2139
- 403: 'Forbidden - insufficient permissions',
2140
- 404: 'Property not found'
3160
+ 404: 'Account not found'
2141
3161
  }
2142
3162
  });
2143
3163
  }
3164
+ }
2144
3165
 
3166
+ export class BeanExportService {
2145
3167
  /**
2146
- * @param data The data for the request.
2147
- * @param data.region Region code (cn, us, de)
3168
+ * Export Beancount ledger as ZIP
3169
+ * Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
2148
3170
  * @returns unknown
2149
3171
  * @throws ApiError
2150
3172
  */
2151
- public static propertyController(
2152
- data: PropertyControllerData
2153
- ): CancelablePromise<PropertyControllerResponse> {
2154
- return __request(OpenAPI, {
2155
- method: 'PUT',
2156
- url: '/api/v1/admin/properties/{key}',
2157
- path: {
2158
- region: data.region
2159
- }
2160
- });
2161
- }
2162
-
2163
- /**
2164
- * @param data The data for the request.
2165
- * @param data.region Region code (cn, us, de)
2166
- * @returns void
2167
- * @throws ApiError
2168
- */
2169
- public static propertyController1(
2170
- data: PropertyController1Data
2171
- ): CancelablePromise<PropertyController1Response> {
3173
+ public static exportControllerExportBeancount(): CancelablePromise<ExportControllerExportBeancountResponse> {
2172
3174
  return __request(OpenAPI, {
2173
- method: 'DELETE',
2174
- url: '/api/v1/admin/properties/{key}',
2175
- path: {
2176
- region: data.region
2177
- }
3175
+ method: 'GET',
3176
+ url: '/api/v1/{region}/bean/export/beancount'
2178
3177
  });
2179
3178
  }
2180
3179
  }
@@ -2184,7 +3183,7 @@ export class BeanImportService {
2184
3183
  * Import a bill file
2185
3184
  * Upload and process a bill file (CSV, PDF, OFX, etc.). The system automatically identifies the file type, extracts transactions, validates them, and stores only validated transactions to the database. Maximum file size: 50MB. Only 1 import per user at a time (concurrent imports rejected with 429).
2186
3185
  * @param data The data for the request.
2187
- * @param data.region Region code (cn, us, de)
3186
+ * @param data.region Region code for tenant context
2188
3187
  * @param data.formData Bill file to import
2189
3188
  * @returns ImportResultDto File imported successfully
2190
3189
  * @throws ApiError
@@ -2213,7 +3212,7 @@ export class BeanImportService {
2213
3212
  * Identify file type
2214
3213
  * Upload a file to check if it can be processed by any registered importer. Does not perform actual import - useful for pre-validation. Uses user-specific importer configuration.
2215
3214
  * @param data The data for the request.
2216
- * @param data.region Region code (cn, us, de)
3215
+ * @param data.region Region code for tenant context
2217
3216
  * @param data.formData File to identify
2218
3217
  * @returns IdentifyResultDto File identification result
2219
3218
  * @throws ApiError
@@ -2235,12 +3234,38 @@ export class BeanImportService {
2235
3234
  });
2236
3235
  }
2237
3236
 
3237
+ /**
3238
+ * Import a Beancount file in community format
3239
+ * Upload a .beancount file to import. The system parses community-format paths, converts to internal format using category metadata, auto-creates accounts, and imports transactions with deduplication. Maximum file size: 50MB. Only 1 import per user at a time.
3240
+ * @param data The data for the request.
3241
+ * @param data.region Region code for tenant context
3242
+ * @param data.formData Beancount file to import
3243
+ * @returns unknown Beancount file imported successfully
3244
+ * @throws ApiError
3245
+ */
3246
+ public static fileImportControllerImportBeancount(
3247
+ data: FileImportControllerImportBeancountData
3248
+ ): CancelablePromise<FileImportControllerImportBeancountResponse> {
3249
+ return __request(OpenAPI, {
3250
+ method: 'POST',
3251
+ url: '/api/v1/{region}/bean/import/beancount',
3252
+ path: {
3253
+ region: data.region
3254
+ },
3255
+ formData: data.formData,
3256
+ mediaType: 'multipart/form-data',
3257
+ errors: {
3258
+ 400: 'Bad request - invalid file or no file uploaded'
3259
+ }
3260
+ });
3261
+ }
3262
+
2238
3263
  /**
2239
3264
  * Get importer configuration
2240
3265
  * Returns the current configuration for the specified importer. Creates default configuration if none exists.
2241
3266
  * @param data The data for the request.
2242
- * @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk
2243
- * @param data.region Region code (cn, us, de)
3267
+ * @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
3268
+ * @param data.region Region code for tenant context
2244
3269
  * @returns ImporterConfigDto Configuration retrieved successfully
2245
3270
  * @throws ApiError
2246
3271
  */
@@ -2262,37 +3287,55 @@ export class BeanImportService {
2262
3287
  }
2263
3288
 
2264
3289
  /**
3290
+ * Update importer configuration
3291
+ * Updates the configuration for the specified importer. Partial updates are supported.
2265
3292
  * @param data The data for the request.
2266
- * @param data.region Region code (cn, us, de)
2267
- * @returns unknown
3293
+ * @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
3294
+ * @param data.region Region code for tenant context
3295
+ * @param data.requestBody Partial configuration update. Only provided fields will be updated.
3296
+ * @returns ImporterConfigDto Configuration updated successfully
2268
3297
  * @throws ApiError
2269
3298
  */
2270
- public static importerConfigController(
2271
- data: ImporterConfigControllerData
2272
- ): CancelablePromise<ImporterConfigControllerResponse> {
3299
+ public static importerConfigControllerUpdateConfig(
3300
+ data: ImporterConfigControllerUpdateConfigData
3301
+ ): CancelablePromise<ImporterConfigControllerUpdateConfigResponse> {
2273
3302
  return __request(OpenAPI, {
2274
3303
  method: 'PUT',
2275
3304
  url: '/api/v1/{region}/bean/import/config/{importerId}',
2276
3305
  path: {
3306
+ importerId: data.importerId,
2277
3307
  region: data.region
3308
+ },
3309
+ body: data.requestBody,
3310
+ mediaType: 'application/json',
3311
+ errors: {
3312
+ 400: 'Invalid input - Validation failed',
3313
+ 404: 'Configuration not found'
2278
3314
  }
2279
3315
  });
2280
3316
  }
2281
3317
 
2282
3318
  /**
3319
+ * Reset configuration to default
3320
+ * Resets the configuration for the specified importer to default values. This operation overwrites all existing configuration.
2283
3321
  * @param data The data for the request.
2284
- * @param data.region Region code (cn, us, de)
2285
- * @returns unknown
3322
+ * @param data.importerId Importer identifier. Supported importers: alipay, alipay-web, wechat, boc, boc-credit, ccb, cmb, cmbc, cmbc-credit, icbc, icbc-credit, hsbc-hk-credit, hsbc-hk-debit
3323
+ * @param data.region Region code for tenant context
3324
+ * @returns ImporterConfigDto Configuration reset successfully
2286
3325
  * @throws ApiError
2287
3326
  */
2288
- public static importerConfigController1(
2289
- data: ImporterConfigController1Data
2290
- ): CancelablePromise<ImporterConfigController1Response> {
3327
+ public static importerConfigControllerResetConfig(
3328
+ data: ImporterConfigControllerResetConfigData
3329
+ ): CancelablePromise<ImporterConfigControllerResetConfigResponse> {
2291
3330
  return __request(OpenAPI, {
2292
3331
  method: 'POST',
2293
3332
  url: '/api/v1/{region}/bean/import/config/{importerId}/reset',
2294
3333
  path: {
3334
+ importerId: data.importerId,
2295
3335
  region: data.region
3336
+ },
3337
+ errors: {
3338
+ 400: 'Invalid input - Unsupported importer'
2296
3339
  }
2297
3340
  });
2298
3341
  }
@@ -2323,76 +3366,171 @@ export class ProviderSyncService {
2323
3366
  * 6. Persist validated transactions
2324
3367
  *
2325
3368
  * @param data The data for the request.
2326
- * @param data.providerName Provider name
2327
- * @param data.region Region code
3369
+ * @param data.providerName Provider name
3370
+ * @param data.region Region code for tenant context
3371
+ * @param data.requestBody
3372
+ * @returns ProviderSyncResponseDto Sync completed successfully
3373
+ * @throws ApiError
3374
+ */
3375
+ public static providerSyncControllerSync(
3376
+ data: ProviderSyncControllerSyncData
3377
+ ): CancelablePromise<ProviderSyncControllerSyncResponse> {
3378
+ return __request(OpenAPI, {
3379
+ method: 'POST',
3380
+ url: '/api/v1/{region}/bean/import/provider/{providerName}/sync',
3381
+ path: {
3382
+ providerName: data.providerName,
3383
+ region: data.region
3384
+ },
3385
+ body: data.requestBody,
3386
+ mediaType: 'application/json',
3387
+ errors: {
3388
+ 400: 'Invalid request data',
3389
+ 401: 'Missing or invalid authentication',
3390
+ 404: 'Provider not supported'
3391
+ }
3392
+ });
3393
+ }
3394
+
3395
+ /**
3396
+ * Get supported providers
3397
+ * Returns a list of all providers supported by the sync endpoint.
3398
+ * @param data The data for the request.
3399
+ * @param data.region Region code for tenant context
3400
+ * @returns SupportedProvidersResponseDto List of supported providers
3401
+ * @throws ApiError
3402
+ */
3403
+ public static providerSyncControllerGetSupportedProviders(
3404
+ data: ProviderSyncControllerGetSupportedProvidersData
3405
+ ): CancelablePromise<ProviderSyncControllerGetSupportedProvidersResponse> {
3406
+ return __request(OpenAPI, {
3407
+ method: 'GET',
3408
+ url: '/api/v1/{region}/bean/import/provider/supported',
3409
+ path: {
3410
+ region: data.region
3411
+ },
3412
+ errors: {
3413
+ 401: 'Missing or invalid authentication'
3414
+ }
3415
+ });
3416
+ }
3417
+
3418
+ /**
3419
+ * Check if provider is supported
3420
+ * Returns whether a specific provider is supported.
3421
+ * @param data The data for the request.
3422
+ * @param data.providerName Provider name to check
3423
+ * @param data.region Region code for tenant context
3424
+ * @returns unknown Provider support status
3425
+ * @throws ApiError
3426
+ */
3427
+ public static providerSyncControllerIsProviderSupported(
3428
+ data: ProviderSyncControllerIsProviderSupportedData
3429
+ ): CancelablePromise<ProviderSyncControllerIsProviderSupportedResponse> {
3430
+ return __request(OpenAPI, {
3431
+ method: 'GET',
3432
+ url: '/api/v1/{region}/bean/import/provider/{providerName}/supported',
3433
+ path: {
3434
+ providerName: data.providerName,
3435
+ region: data.region
3436
+ },
3437
+ errors: {
3438
+ 401: 'Missing or invalid authentication'
3439
+ }
3440
+ });
3441
+ }
3442
+ }
3443
+
3444
+ export class ExternalAccountLinksService {
3445
+ /**
3446
+ * Create an external account → BeanAccount mapping (ADR-0113)
3447
+ * @param data The data for the request.
3448
+ * @param data.region Region code for tenant context
2328
3449
  * @param data.requestBody
2329
- * @returns ProviderSyncResponseDto Sync completed successfully
3450
+ * @returns ExternalAccountLinkResponseDto Link created.
2330
3451
  * @throws ApiError
2331
3452
  */
2332
- public static providerSyncControllerSync(
2333
- data: ProviderSyncControllerSyncData
2334
- ): CancelablePromise<ProviderSyncControllerSyncResponse> {
3453
+ public static externalAccountLinkControllerCreate(
3454
+ data: ExternalAccountLinkControllerCreateData
3455
+ ): CancelablePromise<ExternalAccountLinkControllerCreateResponse> {
2335
3456
  return __request(OpenAPI, {
2336
3457
  method: 'POST',
2337
- url: '/api/v1/{region}/bean/import/provider/{providerName}/sync',
3458
+ url: '/api/v1/{region}/bean/external-account-links',
2338
3459
  path: {
2339
- providerName: data.providerName,
2340
3460
  region: data.region
2341
3461
  },
2342
3462
  body: data.requestBody,
2343
3463
  mediaType: 'application/json',
2344
3464
  errors: {
2345
- 400: 'Invalid request data',
2346
- 401: 'Missing or invalid authentication',
2347
- 404: 'Provider not supported'
3465
+ 422: 'beanAccountId not owned, or an active link already exists.'
2348
3466
  }
2349
3467
  });
2350
3468
  }
2351
3469
 
2352
3470
  /**
2353
- * Get supported providers
2354
- * Returns a list of all providers supported by the sync endpoint.
3471
+ * List the user's active external account links
2355
3472
  * @param data The data for the request.
2356
- * @param data.region Region code (cn, us, de)
2357
- * @returns SupportedProvidersResponseDto List of supported providers
3473
+ * @param data.provider
3474
+ * @param data.region Region code for tenant context
3475
+ * @returns ExternalAccountLinkListResponseDto Links retrieved.
2358
3476
  * @throws ApiError
2359
3477
  */
2360
- public static providerSyncControllerGetSupportedProviders(
2361
- data: ProviderSyncControllerGetSupportedProvidersData
2362
- ): CancelablePromise<ProviderSyncControllerGetSupportedProvidersResponse> {
3478
+ public static externalAccountLinkControllerFindAll(
3479
+ data: ExternalAccountLinkControllerFindAllData
3480
+ ): CancelablePromise<ExternalAccountLinkControllerFindAllResponse> {
2363
3481
  return __request(OpenAPI, {
2364
3482
  method: 'GET',
2365
- url: '/api/v1/{region}/bean/import/provider/supported',
3483
+ url: '/api/v1/{region}/bean/external-account-links',
2366
3484
  path: {
2367
3485
  region: data.region
2368
3486
  },
2369
- errors: {
2370
- 401: 'Missing or invalid authentication'
3487
+ query: {
3488
+ provider: data.provider
2371
3489
  }
2372
3490
  });
2373
3491
  }
2374
3492
 
2375
3493
  /**
2376
- * Check if provider is supported
2377
- * Returns whether a specific provider is supported.
3494
+ * Get a single external account link
2378
3495
  * @param data The data for the request.
2379
- * @param data.providerName Provider name to check
2380
- * @param data.region Region code (cn, us, de)
2381
- * @returns unknown Provider support status
3496
+ * @param data.id
3497
+ * @param data.region Region code for tenant context
3498
+ * @returns ExternalAccountLinkResponseDto Link retrieved.
2382
3499
  * @throws ApiError
2383
3500
  */
2384
- public static providerSyncControllerIsProviderSupported(
2385
- data: ProviderSyncControllerIsProviderSupportedData
2386
- ): CancelablePromise<ProviderSyncControllerIsProviderSupportedResponse> {
3501
+ public static externalAccountLinkControllerFindOne(
3502
+ data: ExternalAccountLinkControllerFindOneData
3503
+ ): CancelablePromise<ExternalAccountLinkControllerFindOneResponse> {
2387
3504
  return __request(OpenAPI, {
2388
3505
  method: 'GET',
2389
- url: '/api/v1/{region}/bean/import/provider/{providerName}/supported',
3506
+ url: '/api/v1/{region}/bean/external-account-links/{id}',
2390
3507
  path: {
2391
- providerName: data.providerName,
3508
+ id: data.id,
2392
3509
  region: data.region
2393
3510
  },
2394
3511
  errors: {
2395
- 401: 'Missing or invalid authentication'
3512
+ 422: 'Link not found or not owned by the user.'
3513
+ }
3514
+ });
3515
+ }
3516
+
3517
+ /**
3518
+ * Soft-delete (disconnect) an external account link
3519
+ * @param data The data for the request.
3520
+ * @param data.id
3521
+ * @param data.region Region code for tenant context
3522
+ * @returns void Link soft-deleted; historical transactions are unaffected.
3523
+ * @throws ApiError
3524
+ */
3525
+ public static externalAccountLinkControllerRemove(
3526
+ data: ExternalAccountLinkControllerRemoveData
3527
+ ): CancelablePromise<ExternalAccountLinkControllerRemoveResponse> {
3528
+ return __request(OpenAPI, {
3529
+ method: 'DELETE',
3530
+ url: '/api/v1/{region}/bean/external-account-links/{id}',
3531
+ path: {
3532
+ id: data.id,
3533
+ region: data.region
2396
3534
  }
2397
3535
  });
2398
3536
  }
@@ -2402,7 +3540,7 @@ export class ImportTelemetryService {
2402
3540
  /**
2403
3541
  * Receive anonymous parser failure telemetry
2404
3542
  * @param data The data for the request.
2405
- * @param data.region Region code (cn, us, de)
3543
+ * @param data.region Region code for tenant context
2406
3544
  * @param data.requestBody
2407
3545
  * @returns unknown Telemetry report received
2408
3546
  * @throws ApiError
@@ -2423,6 +3561,54 @@ export class ImportTelemetryService {
2423
3561
  }
2424
3562
  });
2425
3563
  }
3564
+
3565
+ /**
3566
+ * Receive anonymous zero-hit coverage miss report
3567
+ * @param data The data for the request.
3568
+ * @param data.region Region code for tenant context
3569
+ * @param data.requestBody
3570
+ * @returns unknown Coverage miss report received
3571
+ * @throws ApiError
3572
+ */
3573
+ public static telemetryControllerReportCoverageMiss(
3574
+ data: TelemetryControllerReportCoverageMissData
3575
+ ): CancelablePromise<TelemetryControllerReportCoverageMissResponse> {
3576
+ return __request(OpenAPI, {
3577
+ method: 'POST',
3578
+ url: '/api/v1/{region}/bean/import/parser-coverage-miss',
3579
+ path: {
3580
+ region: data.region
3581
+ },
3582
+ body: data.requestBody,
3583
+ mediaType: 'application/json',
3584
+ errors: {
3585
+ 401: 'Unauthorized'
3586
+ }
3587
+ });
3588
+ }
3589
+
3590
+ /**
3591
+ * Coverage metrics (uncovered format aggregation)
3592
+ * @param data The data for the request.
3593
+ * @param data.region Region code for tenant context
3594
+ * @param data.topN Top-N uncovered formats (default 10)
3595
+ * @returns unknown Coverage metrics
3596
+ * @throws ApiError
3597
+ */
3598
+ public static telemetryControllerGetCoverageMetrics(
3599
+ data: TelemetryControllerGetCoverageMetricsData
3600
+ ): CancelablePromise<TelemetryControllerGetCoverageMetricsResponse> {
3601
+ return __request(OpenAPI, {
3602
+ method: 'GET',
3603
+ url: '/api/v1/{region}/bean/import/parser-coverage-metrics',
3604
+ path: {
3605
+ region: data.region
3606
+ },
3607
+ query: {
3608
+ topN: data.topN
3609
+ }
3610
+ });
3611
+ }
2426
3612
  }
2427
3613
 
2428
3614
  export class BeanNlpService {
@@ -2430,7 +3616,7 @@ export class BeanNlpService {
2430
3616
  * Process natural language input
2431
3617
  * Parse natural language text (Chinese/English) describing a transaction. Supports multi-turn dialogue for collecting missing information. When confidence < 0.75, returns "confirm" action requiring user verification. User can reply with confirmation words (确认/yes/ok) or provide corrections. Examples: "yesterday Starbucks spent 35 yuan", "today lunch 28 yuan", "spent $50 at Walmart"
2432
3618
  * @param data The data for the request.
2433
- * @param data.region Region code (cn, us, de)
3619
+ * @param data.region Region code for tenant context
2434
3620
  * @param data.requestBody Natural language transaction input with optional session ID
2435
3621
  * @returns NlpResponseDto NLP processing result - either created transaction or asking for more info
2436
3622
  * @throws ApiError
@@ -2457,7 +3643,7 @@ export class BeanNlpService {
2457
3643
  * Clear dialogue session
2458
3644
  * Clear the current NLP dialogue session. Use this to cancel an ongoing multi-turn dialogue.
2459
3645
  * @param data The data for the request.
2460
- * @param data.region Region code (cn, us, de)
3646
+ * @param data.region Region code for tenant context
2461
3647
  * @param data.sessionId Specific session ID to clear (defaults to user session)
2462
3648
  * @returns void Session cleared successfully
2463
3649
  * @throws ApiError
@@ -2484,7 +3670,7 @@ export class BeanNlpService {
2484
3670
  * Get current session state
2485
3671
  * Get the current NLP dialogue session state. Useful for debugging and displaying session context in UI.
2486
3672
  * @param data The data for the request.
2487
- * @param data.region Region code (cn, us, de)
3673
+ * @param data.region Region code for tenant context
2488
3674
  * @param data.sessionId Specific session ID to get (defaults to user session)
2489
3675
  * @returns unknown Current session state (or null if no active session)
2490
3676
  * @throws ApiError
@@ -2511,229 +3697,113 @@ export class BeanNlpService {
2511
3697
  export class BeanPlatformsService {
2512
3698
  /**
2513
3699
  * Get all platforms with statistics
2514
- * @param data The data for the request.
2515
- * @param data.region Region code (cn, us, de)
2516
3700
  * @returns unknown List of platforms with binding and account counts
2517
3701
  * @throws ApiError
2518
3702
  */
2519
- public static platformControllerFindAll(
2520
- data: PlatformControllerFindAllData
2521
- ): CancelablePromise<PlatformControllerFindAllResponse> {
3703
+ public static platformControllerFindAll(): CancelablePromise<PlatformControllerFindAllResponse> {
2522
3704
  return __request(OpenAPI, {
2523
3705
  method: 'GET',
2524
- url: '/api/v1/bean/platforms',
2525
- path: {
2526
- region: data.region
2527
- }
3706
+ url: '/api/v1/bean/platforms'
2528
3707
  });
2529
3708
  }
2530
3709
 
2531
3710
  /**
3711
+ * Create a new platform
2532
3712
  * @param data The data for the request.
2533
- * @param data.region Region code (cn, us, de)
2534
- * @returns unknown
3713
+ * @param data.requestBody
3714
+ * @returns unknown Platform created successfully
2535
3715
  * @throws ApiError
2536
3716
  */
2537
- public static platformController(
2538
- data: PlatformControllerData
2539
- ): CancelablePromise<PlatformControllerResponse> {
3717
+ public static platformControllerCreate(
3718
+ data: PlatformControllerCreateData
3719
+ ): CancelablePromise<PlatformControllerCreateResponse> {
2540
3720
  return __request(OpenAPI, {
2541
3721
  method: 'POST',
2542
3722
  url: '/api/v1/bean/platforms',
2543
- path: {
2544
- region: data.region
3723
+ body: data.requestBody,
3724
+ mediaType: 'application/json',
3725
+ errors: {
3726
+ 409: 'Platform already exists'
2545
3727
  }
2546
3728
  });
2547
3729
  }
2548
3730
 
2549
3731
  /**
2550
3732
  * Get platform list for current user
2551
- * @param data The data for the request.
2552
- * @param data.region Region code (cn, us, de)
2553
- * @returns unknown List of platforms with user binding status
3733
+ * @returns PlatformListItemDto List of platforms with user binding status
2554
3734
  * @throws ApiError
2555
3735
  */
2556
- public static platformControllerGetPlatformList(
2557
- data: PlatformControllerGetPlatformListData
2558
- ): CancelablePromise<PlatformControllerGetPlatformListResponse> {
3736
+ public static platformControllerGetPlatformList(): CancelablePromise<PlatformControllerGetPlatformListResponse> {
2559
3737
  return __request(OpenAPI, {
2560
3738
  method: 'GET',
2561
- url: '/api/v1/bean/platforms/list',
2562
- path: {
2563
- region: data.region
2564
- }
2565
- });
2566
- }
2567
-
2568
- /**
2569
- * @param data The data for the request.
2570
- * @param data.region Region code (cn, us, de)
2571
- * @returns unknown
2572
- * @throws ApiError
2573
- */
2574
- public static platformController1(
2575
- data: PlatformController1Data
2576
- ): CancelablePromise<PlatformController1Response> {
2577
- return __request(OpenAPI, {
2578
- method: 'PUT',
2579
- url: '/api/v1/bean/platforms/{id}',
2580
- path: {
2581
- region: data.region
2582
- }
2583
- });
2584
- }
2585
-
2586
- /**
2587
- * @param data The data for the request.
2588
- * @param data.region Region code (cn, us, de)
2589
- * @returns void
2590
- * @throws ApiError
2591
- */
2592
- public static platformController2(
2593
- data: PlatformController2Data
2594
- ): CancelablePromise<PlatformController2Response> {
2595
- return __request(OpenAPI, {
2596
- method: 'DELETE',
2597
- url: '/api/v1/bean/platforms/{id}',
2598
- path: {
2599
- region: data.region
2600
- }
3739
+ url: '/api/v1/bean/platforms/list'
2601
3740
  });
2602
3741
  }
2603
- }
2604
3742
 
2605
- export class SymbolsService {
2606
3743
  /**
2607
- * Search for symbols
2608
- * Search symbols by query with optional filters for asset class, area, and indices
3744
+ * Match platforms by name or alias
2609
3745
  * @param data The data for the request.
2610
- * @param data.region Region code (cn, us, de)
2611
- * @param data.includeIndices Include index symbols in results
2612
- * @param data.assetSubClass Asset sub-class filter
2613
- * @param data.assetClass Asset class filter
2614
- * @param data.area Geographic area filter (e.g., CN, US)
2615
- * @param data.query Search query string
2616
- * @returns unknown Symbols found successfully
3746
+ * @param data.q Search query — Chinese name, English name, or abbreviation
3747
+ * @param data.region Region code for category override lookup
3748
+ * @returns PlatformMatchResponseDto Matching platforms with overall match type and truncation flag
2617
3749
  * @throws ApiError
2618
3750
  */
2619
- public static symbolControllerLookupSymbol(
2620
- data: SymbolControllerLookupSymbolData
2621
- ): CancelablePromise<SymbolControllerLookupSymbolResponse> {
3751
+ public static platformControllerMatchPlatforms(
3752
+ data: PlatformControllerMatchPlatformsData
3753
+ ): CancelablePromise<PlatformControllerMatchPlatformsResponse> {
2622
3754
  return __request(OpenAPI, {
2623
3755
  method: 'GET',
2624
- url: '/api/v1/market/symbols/lookup',
2625
- path: {
2626
- region: data.region
2627
- },
3756
+ url: '/api/v1/bean/platforms/match',
2628
3757
  query: {
2629
- includeIndices: data.includeIndices,
2630
- assetSubClass: data.assetSubClass,
2631
- assetClass: data.assetClass,
2632
- area: data.area,
2633
- query: data.query
2634
- },
2635
- errors: {
2636
- 400: 'Invalid query parameters'
3758
+ q: data.q,
3759
+ region: data.region
2637
3760
  }
2638
3761
  });
2639
3762
  }
2640
3763
 
2641
3764
  /**
2642
- * Get symbol data
2643
- * Retrieve detailed symbol information including optional historical data
3765
+ * Update a platform
2644
3766
  * @param data The data for the request.
2645
- * @param data.dataSource Data source provider
2646
- * @param data.symbol Symbol identifier (e.g., ticker code)
2647
- * @param data.region Region code (cn, us, de)
2648
- * @param data.includeHistoricalData Include historical price data (0 or 1)
2649
- * @returns unknown Symbol data retrieved successfully
3767
+ * @param data.id Platform ID
3768
+ * @param data.requestBody
3769
+ * @returns unknown Platform updated successfully
2650
3770
  * @throws ApiError
2651
3771
  */
2652
- public static symbolControllerGetSymbolData(
2653
- data: SymbolControllerGetSymbolDataData
2654
- ): CancelablePromise<SymbolControllerGetSymbolDataResponse> {
3772
+ public static platformControllerUpdate(
3773
+ data: PlatformControllerUpdateData
3774
+ ): CancelablePromise<PlatformControllerUpdateResponse> {
2655
3775
  return __request(OpenAPI, {
2656
- method: 'GET',
2657
- url: '/api/v1/market/symbols/{dataSource}/{symbol}',
3776
+ method: 'PUT',
3777
+ url: '/api/v1/bean/platforms/{id}',
2658
3778
  path: {
2659
- dataSource: data.dataSource,
2660
- symbol: data.symbol,
2661
- region: data.region
2662
- },
2663
- query: {
2664
- includeHistoricalData: data.includeHistoricalData
3779
+ id: data.id
2665
3780
  },
3781
+ body: data.requestBody,
3782
+ mediaType: 'application/json',
2666
3783
  errors: {
2667
- 400: 'Invalid data source',
2668
- 404: 'Symbol not found'
3784
+ 404: 'Platform not found'
2669
3785
  }
2670
3786
  });
2671
3787
  }
2672
3788
 
2673
3789
  /**
2674
- * Gather symbol data for specific date
2675
- * Retrieve historical symbol data for a specific date
3790
+ * Delete a platform
2676
3791
  * @param data The data for the request.
2677
- * @param data.dataSource Data source provider
2678
- * @param data.dateString Date in ISO 8601 format (YYYY-MM-DD)
2679
- * @param data.symbol Symbol identifier (e.g., ticker code)
2680
- * @param data.region Region code (cn, us, de)
2681
- * @returns unknown Historical data retrieved successfully
3792
+ * @param data.id Platform ID
3793
+ * @returns void Platform deleted successfully
2682
3794
  * @throws ApiError
2683
3795
  */
2684
- public static symbolControllerGatherSymbolForDate(
2685
- data: SymbolControllerGatherSymbolForDateData
2686
- ): CancelablePromise<SymbolControllerGatherSymbolForDateResponse> {
3796
+ public static platformControllerDelete(
3797
+ data: PlatformControllerDeleteData
3798
+ ): CancelablePromise<PlatformControllerDeleteResponse> {
2687
3799
  return __request(OpenAPI, {
2688
- method: 'GET',
2689
- url: '/api/v1/market/symbols/{dataSource}/{symbol}/{dateString}',
3800
+ method: 'DELETE',
3801
+ url: '/api/v1/bean/platforms/{id}',
2690
3802
  path: {
2691
- dataSource: data.dataSource,
2692
- dateString: data.dateString,
2693
- symbol: data.symbol,
2694
- region: data.region
3803
+ id: data.id
2695
3804
  },
2696
3805
  errors: {
2697
- 400: 'Invalid date format',
2698
- 404: 'Symbol data not found for specified date'
2699
- }
2700
- });
2701
- }
2702
-
2703
- /**
2704
- * @param data The data for the request.
2705
- * @param data.region Region code (cn, us, de)
2706
- * @returns unknown
2707
- * @throws ApiError
2708
- */
2709
- public static symbolController(
2710
- data: SymbolControllerData
2711
- ): CancelablePromise<SymbolControllerResponse> {
2712
- return __request(OpenAPI, {
2713
- method: 'PUT',
2714
- url: '/api/v1/market/symbols/yahoo/batch-update',
2715
- path: {
2716
- region: data.region
2717
- }
2718
- });
2719
- }
2720
- }
2721
-
2722
- export class DefaultService {
2723
- /**
2724
- * @param data The data for the request.
2725
- * @param data.region Region code (cn, us, de)
2726
- * @returns unknown
2727
- * @throws ApiError
2728
- */
2729
- public static cacheControllerFlushCache(
2730
- data: CacheControllerFlushCacheData
2731
- ): CancelablePromise<CacheControllerFlushCacheResponse> {
2732
- return __request(OpenAPI, {
2733
- method: 'POST',
2734
- url: '/api/v1/cache/flush',
2735
- path: {
2736
- region: data.region
3806
+ 404: 'Platform not found'
2737
3807
  }
2738
3808
  });
2739
3809
  }
@@ -2744,7 +3814,7 @@ export class DashboardService {
2744
3814
  * Get net worth overview
2745
3815
  * Returns total net worth with breakdown of assets and liabilities
2746
3816
  * @param data The data for the request.
2747
- * @param data.region Region code (cn, us, de)
3817
+ * @param data.region Region code for tenant context
2748
3818
  * @param data.date Date for balance calculation (ISO 8601 format)
2749
3819
  * @returns NetWorthResponseDto Net worth retrieved successfully
2750
3820
  * @throws ApiError
@@ -2771,9 +3841,10 @@ export class DashboardService {
2771
3841
  * Get accounts grouped by platform
2772
3842
  * Returns accounts with balances grouped by financial platform
2773
3843
  * @param data The data for the request.
2774
- * @param data.region Region code (cn, us, de)
3844
+ * @param data.region Region code for tenant context
2775
3845
  * @param data.groupBy Grouping strategy
2776
3846
  * @param data.date Date for balance calculation (ISO 8601 format)
3847
+ * @param data.accountId Scope to a single account (only valid with groupBy=holdingAssetClass, ADR-0105 §6)
2777
3848
  * @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
2778
3849
  * @throws ApiError
2779
3850
  */
@@ -2788,159 +3859,105 @@ export class DashboardService {
2788
3859
  },
2789
3860
  query: {
2790
3861
  groupBy: data.groupBy,
2791
- date: data.date
2792
- },
2793
- errors: {
2794
- 401: 'User not authenticated'
2795
- }
2796
- });
2797
- }
2798
-
2799
- /**
2800
- * Get cash flow summary
2801
- * Returns income, expenses, and savings for a monthly period
2802
- * @param data The data for the request.
2803
- * @param data.period Period in YYYY-MM format
2804
- * @param data.region Region code (cn, us, de)
2805
- * @returns CashFlowResponseDto Cash flow retrieved successfully
2806
- * @throws ApiError
2807
- */
2808
- public static dashboardControllerGetCashFlow(
2809
- data: DashboardControllerGetCashFlowData
2810
- ): CancelablePromise<DashboardControllerGetCashFlowResponse> {
2811
- return __request(OpenAPI, {
2812
- method: 'GET',
2813
- url: '/api/v1/{region}/dashboard/cash-flow',
2814
- path: {
2815
- region: data.region
2816
- },
2817
- query: {
2818
- period: data.period
2819
- },
2820
- errors: {
2821
- 400: 'Invalid period format',
2822
- 401: 'User not authenticated'
2823
- }
2824
- });
2825
- }
2826
- }
2827
-
2828
- export class ReportingService {
2829
- /**
2830
- * Get portfolio value trends
2831
- *
2832
- * Returns time series data of portfolio net worth.
2833
- *
2834
- * **Multi-currency Support:**
2835
- * - `series[].byCurrency` - Currency breakdown for each data point
2836
- * - `byCurrency` - Separate time series grouped by currency
2837
- * - `warnings` - Exchange rate warnings if conversion failed
2838
- *
2839
- * **Parameters:**
2840
- * - `period`: Time period (1m, 3m, 6m, 1y)
2841
- * - `granularity`: Data granularity (day, week, month)
2842
- *
3862
+ date: data.date,
3863
+ accountId: data.accountId
3864
+ },
3865
+ errors: {
3866
+ 401: 'User not authenticated'
3867
+ }
3868
+ });
3869
+ }
3870
+
3871
+ /**
3872
+ * Get cash flow summary
3873
+ * Returns income, expenses, and savings for a monthly period
2843
3874
  * @param data The data for the request.
2844
- * @param data.region Region code (cn, us, de)
2845
- * @param data.period Time period
2846
- * @param data.granularity Data granularity
2847
- * @returns PortfolioTrendsResponseDto Trends retrieved successfully
3875
+ * @param data.period Period in YYYY-MM format
3876
+ * @param data.region Region code for tenant context
3877
+ * @returns CashFlowResponseDto Cash flow retrieved successfully
2848
3878
  * @throws ApiError
2849
3879
  */
2850
- public static reportingControllerGetPortfolioTrends(
2851
- data: ReportingControllerGetPortfolioTrendsData
2852
- ): CancelablePromise<ReportingControllerGetPortfolioTrendsResponse> {
3880
+ public static dashboardControllerGetCashFlow(
3881
+ data: DashboardControllerGetCashFlowData
3882
+ ): CancelablePromise<DashboardControllerGetCashFlowResponse> {
2853
3883
  return __request(OpenAPI, {
2854
3884
  method: 'GET',
2855
- url: '/api/v1/{region}/reporting/portfolio/trends',
3885
+ url: '/api/v1/{region}/dashboard/cash-flow',
2856
3886
  path: {
2857
3887
  region: data.region
2858
3888
  },
2859
3889
  query: {
2860
- period: data.period,
2861
- granularity: data.granularity
3890
+ period: data.period
2862
3891
  },
2863
3892
  errors: {
3893
+ 400: 'Invalid period format',
2864
3894
  401: 'User not authenticated'
2865
3895
  }
2866
3896
  });
2867
3897
  }
2868
3898
 
2869
3899
  /**
2870
- * Generate portfolio snapshot
2871
- *
2872
- * Manually generate a portfolio snapshot for a specific date.
2873
- *
2874
- * **Multi-currency Support:**
2875
- * - Fetches balances grouped by currency
2876
- * - Uses user's baseCurrency setting for conversion
2877
- * - Stores exchange rates and warnings
2878
- *
2879
- * **Use Cases:**
2880
- * - Testing snapshot generation
2881
- * - Force regeneration after data correction
2882
- * - Initial setup for new users
2883
- *
3900
+ * Get expenses/income grouped by functional category
3901
+ * Returns amounts pre-aggregated by functional category (account-path Group segment) with server-side multi-currency conversion. flow=expense (default) aggregates ^Expenses: accounts; flow=income aggregates ^Income: accounts (issue #518)
2884
3902
  * @param data The data for the request.
2885
- * @param data.region Region code (cn, us, de)
2886
- * @param data.requestBody Optional date (defaults to today)
2887
- * @returns GenerateSnapshotResponse Snapshot generated successfully
3903
+ * @param data.region Region code for tenant context
3904
+ * @param data.groupBy Grouping strategy
3905
+ * @param data.period Time window (1m = current calendar month)
3906
+ * @param data.flow Account root to aggregate (expense → ^Expenses:, income → ^Income:)
3907
+ * @returns ExpensesByCategoryResponseDto Expenses retrieved successfully
2888
3908
  * @throws ApiError
2889
3909
  */
2890
- public static reportingControllerGenerateSnapshot(
2891
- data: ReportingControllerGenerateSnapshotData
2892
- ): CancelablePromise<ReportingControllerGenerateSnapshotResponse> {
3910
+ public static dashboardControllerGetExpenses(
3911
+ data: DashboardControllerGetExpensesData
3912
+ ): CancelablePromise<DashboardControllerGetExpensesResponse> {
2893
3913
  return __request(OpenAPI, {
2894
- method: 'POST',
2895
- url: '/api/v1/{region}/reporting/snapshots/generate',
3914
+ method: 'GET',
3915
+ url: '/api/v1/{region}/dashboard/expenses',
2896
3916
  path: {
2897
3917
  region: data.region
2898
3918
  },
2899
- body: data.requestBody,
2900
- mediaType: 'application/json',
3919
+ query: {
3920
+ groupBy: data.groupBy,
3921
+ period: data.period,
3922
+ flow: data.flow
3923
+ },
2901
3924
  errors: {
2902
- 400: 'Invalid date format',
3925
+ 400: 'Invalid groupBy or period',
2903
3926
  401: 'User not authenticated'
2904
3927
  }
2905
3928
  });
2906
3929
  }
3930
+ }
2907
3931
 
3932
+ export class InvestmentService {
2908
3933
  /**
2909
- * Backfill portfolio snapshots
2910
- *
2911
- * Generate snapshots for a date range (historical data backfill).
2912
- *
2913
- * **Multi-currency Support:**
2914
- * - Each snapshot includes multi-currency data
2915
- * - Uses exchange rates available at generation time
2916
- * - Warnings stored for missing exchange rates
2917
- *
2918
- * **Best Practices:**
2919
- * - Use for initial setup after account configuration
2920
- * - Run during low-traffic periods for large date ranges
2921
- * - Existing snapshots are skipped (not regenerated)
2922
- *
3934
+ * Get per-holding unrealized + realized P&L
3935
+ * Average-cost unrealized P&L per account × commodity, plus cumulative realized P&L on sold lots (method = FIFO | average, default average).
2923
3936
  * @param data The data for the request.
2924
- * @param data.region Region code (cn, us, de)
2925
- * @param data.requestBody
2926
- * @returns BackfillSnapshotsResponse Backfill completed successfully
3937
+ * @param data.region Region code for tenant context
3938
+ * @param data.asOf As-of date (ISO 8601), defaults to today
3939
+ * @param data.accountId Scope to a single account
3940
+ * @param data.method Realized-P&L lot-matching method (default average). Does not affect the average-cost unrealized basis.
3941
+ * @returns HoldingPnlResponseDto Holding P&L retrieved successfully
2927
3942
  * @throws ApiError
2928
3943
  */
2929
- public static reportingControllerBackfillSnapshots(
2930
- data: ReportingControllerBackfillSnapshotsData
2931
- ): CancelablePromise<ReportingControllerBackfillSnapshotsResponse> {
3944
+ public static holdingPnlControllerGetHoldingPnl(
3945
+ data: HoldingPnlControllerGetHoldingPnlData
3946
+ ): CancelablePromise<HoldingPnlControllerGetHoldingPnlResponse> {
2932
3947
  return __request(OpenAPI, {
2933
- method: 'POST',
2934
- url: '/api/v1/{region}/reporting/snapshots/backfill',
3948
+ method: 'GET',
3949
+ url: '/api/v1/{region}/investment/holdings/pnl',
2935
3950
  path: {
2936
3951
  region: data.region
2937
3952
  },
2938
- body: data.requestBody,
2939
- mediaType: 'application/json',
3953
+ query: {
3954
+ asOf: data.asOf,
3955
+ accountId: data.accountId,
3956
+ method: data.method
3957
+ },
2940
3958
  errors: {
2941
- 400: 'Invalid date format or range',
2942
- 401: 'User not authenticated',
2943
- 409: 'Backfill already in progress for this user'
3959
+ 400: 'Invalid asOf format/value/future date, invalid accountId format, or unsupported method',
3960
+ 401: 'User not authenticated'
2944
3961
  }
2945
3962
  });
2946
3963
  }
@@ -2948,19 +3965,17 @@ export class ReportingService {
2948
3965
 
2949
3966
  export class ApiKeysService {
2950
3967
  /**
2951
- * @param data The data for the request.
2952
- * @param data.region Region code (cn, us, de)
2953
- * @returns unknown
3968
+ * Create API key
3969
+ * Generates a new API key for the authenticated user
3970
+ * @returns unknown API key created successfully
2954
3971
  * @throws ApiError
2955
3972
  */
2956
- public static apiKeysController(
2957
- data: ApiKeysControllerData
2958
- ): CancelablePromise<ApiKeysControllerResponse> {
3973
+ public static apiKeysControllerCreateApiKey(): CancelablePromise<ApiKeysControllerCreateApiKeyResponse> {
2959
3974
  return __request(OpenAPI, {
2960
3975
  method: 'POST',
2961
3976
  url: '/api/v1/auth/api-keys',
2962
- path: {
2963
- region: data.region
3977
+ errors: {
3978
+ 403: 'Insufficient permissions to create API key'
2964
3979
  }
2965
3980
  });
2966
3981
  }
@@ -2970,9 +3985,8 @@ export class AuthService {
2970
3985
  /**
2971
3986
  * Anonymous login with access token
2972
3987
  * @param data The data for the request.
2973
- * @param data.region Region code (cn, us, de)
2974
3988
  * @param data.requestBody
2975
- * @returns unknown Login successful
3989
+ * @returns AnonymousLoginResponseDto Login successful
2976
3990
  * @throws ApiError
2977
3991
  */
2978
3992
  public static authControllerAccessTokenLogin(
@@ -2981,9 +3995,6 @@ export class AuthService {
2981
3995
  return __request(OpenAPI, {
2982
3996
  method: 'POST',
2983
3997
  url: '/api/v1/auth/sessions/anonymous',
2984
- path: {
2985
- region: data.region
2986
- },
2987
3998
  body: data.requestBody,
2988
3999
  mediaType: 'application/json',
2989
4000
  errors: {
@@ -2993,6 +4004,19 @@ export class AuthService {
2993
4004
  }
2994
4005
  }
2995
4006
 
4007
+ export class DefaultService {
4008
+ /**
4009
+ * @returns unknown
4010
+ * @throws ApiError
4011
+ */
4012
+ public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
4013
+ return __request(OpenAPI, {
4014
+ method: 'POST',
4015
+ url: '/api/v1/cache/flush'
4016
+ });
4017
+ }
4018
+ }
4019
+
2996
4020
  export class ExchangeRateService {
2997
4021
  /**
2998
4022
  * Get exchange rate for currency pair
@@ -3000,7 +4024,6 @@ export class ExchangeRateService {
3000
4024
  * @param data The data for the request.
3001
4025
  * @param data.symbol Currency pair symbol (e.g., USDCNY, EURUSD)
3002
4026
  * @param data.dateString Date in ISO format (YYYY-MM-DD)
3003
- * @param data.region Region code (cn, us, de)
3004
4027
  * @returns unknown Exchange rate retrieved successfully
3005
4028
  * @throws ApiError
3006
4029
  */
@@ -3012,8 +4035,7 @@ export class ExchangeRateService {
3012
4035
  url: '/api/v1/market/exchange-rates/{symbol}/{dateString}',
3013
4036
  path: {
3014
4037
  symbol: data.symbol,
3015
- dateString: data.dateString,
3016
- region: data.region
4038
+ dateString: data.dateString
3017
4039
  },
3018
4040
  errors: {
3019
4041
  404: 'Exchange rate not found for the specified currency pair and date'
@@ -3025,20 +4047,13 @@ export class ExchangeRateService {
3025
4047
  export class HealthService {
3026
4048
  /**
3027
4049
  * Basic health check for K8s/load balancer probes
3028
- * @param data The data for the request.
3029
- * @param data.region Region code (cn, us, de)
3030
4050
  * @returns unknown Service is healthy
3031
4051
  * @throws ApiError
3032
4052
  */
3033
- public static healthControllerGetHealth(
3034
- data: HealthControllerGetHealthData
3035
- ): CancelablePromise<HealthControllerGetHealthResponse> {
4053
+ public static healthControllerGetHealth(): CancelablePromise<HealthControllerGetHealthResponse> {
3036
4054
  return __request(OpenAPI, {
3037
4055
  method: 'GET',
3038
4056
  url: '/api/v1/health',
3039
- path: {
3040
- region: data.region
3041
- },
3042
4057
  errors: {
3043
4058
  503: 'Service unavailable'
3044
4059
  }
@@ -3047,42 +4062,43 @@ export class HealthService {
3047
4062
 
3048
4063
  /**
3049
4064
  * Check database connection health
3050
- * @param data The data for the request.
3051
- * @param data.region Region code (cn, us, de)
3052
4065
  * @returns unknown Database is healthy
3053
4066
  * @throws ApiError
3054
4067
  */
3055
- public static healthControllerCheckDatabase(
3056
- data: HealthControllerCheckDatabaseData
3057
- ): CancelablePromise<HealthControllerCheckDatabaseResponse> {
4068
+ public static healthControllerCheckDatabase(): CancelablePromise<HealthControllerCheckDatabaseResponse> {
3058
4069
  return __request(OpenAPI, {
3059
4070
  method: 'GET',
3060
4071
  url: '/api/v1/health/database',
3061
- path: {
3062
- region: data.region
3063
- },
3064
4072
  errors: {
3065
4073
  503: 'Database unavailable'
3066
4074
  }
3067
4075
  });
3068
4076
  }
3069
4077
 
4078
+ /**
4079
+ * Check OpenBB schema status
4080
+ * @returns unknown OpenBB status
4081
+ * @throws ApiError
4082
+ */
4083
+ public static healthControllerCheckOpenBb(): CancelablePromise<HealthControllerCheckOpenBbResponse> {
4084
+ return __request(OpenAPI, {
4085
+ method: 'GET',
4086
+ url: '/api/v1/health/openbb',
4087
+ errors: {
4088
+ 503: 'OpenBB unavailable'
4089
+ }
4090
+ });
4091
+ }
4092
+
3070
4093
  /**
3071
4094
  * Check Redis connection health
3072
- * @param data The data for the request.
3073
- * @param data.region Region code (cn, us, de)
3074
4095
  * @returns unknown Redis is healthy
3075
4096
  * @throws ApiError
3076
4097
  */
3077
- public static healthControllerCheckRedis(
3078
- data: HealthControllerCheckRedisData
3079
- ): CancelablePromise<HealthControllerCheckRedisResponse> {
4098
+ public static healthControllerCheckRedis(): CancelablePromise<HealthControllerCheckRedisResponse> {
3080
4099
  return __request(OpenAPI, {
3081
4100
  method: 'GET',
3082
4101
  url: '/api/v1/health/redis',
3083
- path: {
3084
- region: data.region
3085
- },
3086
4102
  errors: {
3087
4103
  503: 'Redis unavailable'
3088
4104
  }
@@ -3091,20 +4107,13 @@ export class HealthService {
3091
4107
 
3092
4108
  /**
3093
4109
  * Get status of all circuit breakers
3094
- * @param data The data for the request.
3095
- * @param data.region Region code (cn, us, de)
3096
4110
  * @returns unknown Circuit breaker status
3097
4111
  * @throws ApiError
3098
4112
  */
3099
- public static healthControllerGetCircuitBreakersHealth(
3100
- data: HealthControllerGetCircuitBreakersHealthData
3101
- ): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
4113
+ public static healthControllerGetCircuitBreakersHealth(): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
3102
4114
  return __request(OpenAPI, {
3103
4115
  method: 'GET',
3104
4116
  url: '/api/v1/health/circuit-breakers',
3105
- path: {
3106
- region: data.region
3107
- },
3108
4117
  errors: {
3109
4118
  401: 'Unauthorized',
3110
4119
  500: 'Internal error'
@@ -3116,7 +4125,6 @@ export class HealthService {
3116
4125
  * Reset a circuit breaker to CLOSED state
3117
4126
  * @param data The data for the request.
3118
4127
  * @param data.name Circuit breaker name to reset
3119
- * @param data.region Region code (cn, us, de)
3120
4128
  * @returns unknown Circuit breaker reset successfully
3121
4129
  * @throws ApiError
3122
4130
  */
@@ -3127,8 +4135,7 @@ export class HealthService {
3127
4135
  method: 'POST',
3128
4136
  url: '/api/v1/health/circuit-breakers/{name}/reset',
3129
4137
  path: {
3130
- name: data.name,
3131
- region: data.region
4138
+ name: data.name
3132
4139
  },
3133
4140
  errors: {
3134
4141
  401: 'Unauthorized',
@@ -3139,222 +4146,79 @@ export class HealthService {
3139
4146
 
3140
4147
  /**
3141
4148
  * Get health check metrics and statistics
3142
- * @param data The data for the request.
3143
- * @param data.region Region code (cn, us, de)
3144
4149
  * @returns unknown Health metrics
3145
4150
  * @throws ApiError
3146
4151
  */
3147
- public static healthControllerGetMetrics(
3148
- data: HealthControllerGetMetricsData
3149
- ): CancelablePromise<HealthControllerGetMetricsResponse> {
4152
+ public static healthControllerGetMetrics(): CancelablePromise<HealthControllerGetMetricsResponse> {
3150
4153
  return __request(OpenAPI, {
3151
4154
  method: 'GET',
3152
4155
  url: '/api/v1/health/metrics',
3153
- path: {
3154
- region: data.region
3155
- },
3156
4156
  errors: {
3157
4157
  401: 'Unauthorized'
3158
4158
  }
3159
4159
  });
3160
4160
  }
3161
-
3162
- /**
3163
- * Check health of a specific data enhancer
3164
- * @param data The data for the request.
3165
- * @param data.name Data enhancer name
3166
- * @param data.region Region code (cn, us, de)
3167
- * @returns unknown Data enhancer is healthy
3168
- * @throws ApiError
3169
- */
3170
- public static healthControllerGetHealthOfDataEnhancer(
3171
- data: HealthControllerGetHealthOfDataEnhancerData
3172
- ): CancelablePromise<HealthControllerGetHealthOfDataEnhancerResponse> {
3173
- return __request(OpenAPI, {
3174
- method: 'GET',
3175
- url: '/api/v1/health/data-enhancer/{name}',
3176
- path: {
3177
- name: data.name,
3178
- region: data.region
3179
- },
3180
- errors: {
3181
- 401: 'Unauthorized',
3182
- 503: 'Data enhancer unavailable'
3183
- }
3184
- });
3185
- }
3186
-
3187
- /**
3188
- * Check health of all data providers
3189
- * @param data The data for the request.
3190
- * @param data.region Region code (cn, us, de)
3191
- * @returns unknown Data providers health status
3192
- * @throws ApiError
3193
- */
3194
- public static healthControllerCheckDataProviders(
3195
- data: HealthControllerCheckDataProvidersData
3196
- ): CancelablePromise<HealthControllerCheckDataProvidersResponse> {
3197
- return __request(OpenAPI, {
3198
- method: 'GET',
3199
- url: '/api/v1/health/data-providers',
3200
- path: {
3201
- region: data.region
3202
- },
3203
- errors: {
3204
- 401: 'Unauthorized',
3205
- 503: 'Data providers check failed'
3206
- }
3207
- });
3208
- }
3209
-
3210
- /**
3211
- * Check health of a specific data provider
3212
- * @param data The data for the request.
3213
- * @param data.dataSource Data source identifier
3214
- * @param data.region Region code (cn, us, de)
3215
- * @returns unknown Data provider is healthy
3216
- * @throws ApiError
3217
- */
3218
- public static healthControllerGetHealthOfDataProvider(
3219
- data: HealthControllerGetHealthOfDataProviderData
3220
- ): CancelablePromise<HealthControllerGetHealthOfDataProviderResponse> {
3221
- return __request(OpenAPI, {
3222
- method: 'GET',
3223
- url: '/api/v1/health/data-provider/{dataSource}',
3224
- path: {
3225
- dataSource: data.dataSource,
3226
- region: data.region
3227
- },
3228
- errors: {
3229
- 400: 'Invalid data source',
3230
- 401: 'Unauthorized',
3231
- 503: 'Data provider unavailable'
3232
- }
3233
- });
3234
- }
3235
4161
  }
3236
4162
 
3237
4163
  export class InfoService {
3238
4164
  /**
3239
4165
  * Get system information
3240
- * @param data The data for the request.
3241
- * @param data.region Region code (cn, us, de)
3242
4166
  * @returns unknown System information retrieved successfully
3243
4167
  * @throws ApiError
3244
4168
  */
3245
- public static infoControllerGetInfo(
3246
- data: InfoControllerGetInfoData
3247
- ): CancelablePromise<InfoControllerGetInfoResponse> {
4169
+ public static infoControllerGetInfo(): CancelablePromise<InfoControllerGetInfoResponse> {
3248
4170
  return __request(OpenAPI, {
3249
4171
  method: 'GET',
3250
- url: '/api/v1/system/info',
3251
- path: {
3252
- region: data.region
3253
- }
4172
+ url: '/api/v1/system/info'
3254
4173
  });
3255
4174
  }
3256
4175
  }
3257
4176
 
3258
- export class LogosService {
3259
- /**
3260
- * Get asset logo by data source and symbol
3261
- * @param data The data for the request.
3262
- * @param data.dataSource Data source identifier (e.g., YAHOO, COINGECKO)
3263
- * @param data.symbol Asset symbol (e.g., AAPL, BTC)
3264
- * @param data.region Region code (cn, us, de)
3265
- * @returns unknown Logo image stream (favicon)
3266
- * @throws ApiError
3267
- */
3268
- public static logoControllerGetLogoByDataSourceAndSymbol(
3269
- data: LogoControllerGetLogoByDataSourceAndSymbolData
3270
- ): CancelablePromise<LogoControllerGetLogoByDataSourceAndSymbolResponse> {
3271
- return __request(OpenAPI, {
3272
- method: 'GET',
3273
- url: '/api/v1/market/logos/{dataSource}/{symbol}',
3274
- path: {
3275
- dataSource: data.dataSource,
3276
- symbol: data.symbol,
3277
- region: data.region
3278
- },
3279
- errors: {
3280
- 401: 'Unauthorized',
3281
- 404: 'Logo not found for the specified asset',
3282
- 503: 'Service unavailable'
3283
- }
3284
- });
3285
- }
3286
-
4177
+ export class MarketDataService {
3287
4178
  /**
3288
- * Get website favicon by URL
4179
+ * Search market symbols by name or code
4180
+ * Ranked search over the openbb catalog. Empty `q` returns [].
3289
4181
  * @param data The data for the request.
3290
- * @param data.url Website URL to fetch favicon from
3291
- * @param data.region Region code (cn, us, de)
3292
- * @returns unknown Logo image stream (favicon)
4182
+ * @param data.q Search term — matched against symbol and instrument name. Empty string returns [].
4183
+ * @param data.limit Maximum number of results (clamped 1..50)
4184
+ * @param data.exchange Filter by exchange code (e.g. US, HK, SS, SZ)
4185
+ * @param data.assetType Filter by OpenBB asset_type (e.g. stock, etf)
4186
+ * @returns SymbolSearchResultDto Ranked search results
3293
4187
  * @throws ApiError
3294
4188
  */
3295
- public static logoControllerGetLogoByUrl(
3296
- data: LogoControllerGetLogoByUrlData
3297
- ): CancelablePromise<LogoControllerGetLogoByUrlResponse> {
4189
+ public static symbolControllerSearch(
4190
+ data: SymbolControllerSearchData
4191
+ ): CancelablePromise<SymbolControllerSearchResponse> {
3298
4192
  return __request(OpenAPI, {
3299
4193
  method: 'GET',
3300
- url: '/api/v1/market/logos',
3301
- path: {
3302
- region: data.region
3303
- },
4194
+ url: '/api/v1/market/symbols/search',
3304
4195
  query: {
3305
- url: data.url
3306
- },
3307
- errors: {
3308
- 401: 'Unauthorized',
3309
- 503: 'Service unavailable'
4196
+ q: data.q,
4197
+ limit: data.limit,
4198
+ exchange: data.exchange,
4199
+ assetType: data.assetType
3310
4200
  }
3311
4201
  });
3312
4202
  }
3313
- }
3314
4203
 
3315
- export class MarketDataService {
3316
4204
  /**
3317
- * Get market data by symbol
3318
- * Retrieves market data and asset profile for a given symbol and data source
4205
+ * Get a market symbol quote
3319
4206
  * @param data The data for the request.
3320
- * @param data.dataSource Data source provider
3321
- * @param data.symbol Symbol code
3322
- * @param data.region Region code (cn, us, de)
3323
- * @returns unknown Market data retrieved successfully
4207
+ * @param data.symbol
4208
+ * @returns SymbolQuoteDto Symbol quote
3324
4209
  * @throws ApiError
3325
4210
  */
3326
- public static marketDataControllerGetMarketDataBySymbol(
3327
- data: MarketDataControllerGetMarketDataBySymbolData
3328
- ): CancelablePromise<MarketDataControllerGetMarketDataBySymbolResponse> {
4211
+ public static symbolControllerGetQuote(
4212
+ data: SymbolControllerGetQuoteData
4213
+ ): CancelablePromise<SymbolControllerGetQuoteResponse> {
3329
4214
  return __request(OpenAPI, {
3330
4215
  method: 'GET',
3331
- url: '/api/v1/market-data/{dataSource}/{symbol}',
4216
+ url: '/api/v1/market/symbols/{symbol}/quote',
3332
4217
  path: {
3333
- dataSource: data.dataSource,
3334
- symbol: data.symbol,
3335
- region: data.region
4218
+ symbol: data.symbol
3336
4219
  },
3337
4220
  errors: {
3338
- 403: 'Insufficient permissions to read market data',
3339
- 404: 'Market data not found'
3340
- }
3341
- });
3342
- }
3343
-
3344
- /**
3345
- * @param data The data for the request.
3346
- * @param data.region Region code (cn, us, de)
3347
- * @returns unknown
3348
- * @throws ApiError
3349
- */
3350
- public static marketDataController(
3351
- data: MarketDataControllerData
3352
- ): CancelablePromise<MarketDataControllerResponse> {
3353
- return __request(OpenAPI, {
3354
- method: 'POST',
3355
- url: '/api/v1/market-data/{dataSource}/{symbol}',
3356
- path: {
3357
- region: data.region
4221
+ 404: 'Symbol not found in the openbb catalog'
3358
4222
  }
3359
4223
  });
3360
4224
  }