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

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,28 @@ import type {
17
17
  AccountControllerCloseResponse,
18
18
  AccountControllerReopenData,
19
19
  AccountControllerReopenResponse,
20
+ AccountStandardsControllerGetTemplatesData,
21
+ AccountStandardsControllerGetTemplatesResponse,
22
+ AccountStandardsControllerGetTemplateMetadataData,
23
+ AccountStandardsControllerGetTemplateMetadataResponse,
24
+ AccountStandardsControllerGetRegionsData,
25
+ AccountStandardsControllerGetRegionsResponse,
20
26
  TransactionControllerCreateData,
21
27
  TransactionControllerCreateResponse,
22
28
  TransactionControllerListData,
23
29
  TransactionControllerListResponse,
24
- TransactionControllerData,
25
- TransactionControllerResponse,
30
+ TransactionControllerCreateBatchData,
31
+ TransactionControllerCreateBatchResponse,
32
+ TransactionControllerCorrectData,
33
+ TransactionControllerCorrectResponse,
34
+ TransactionControllerSuggestTagsData,
35
+ TransactionControllerSuggestTagsResponse,
26
36
  TransactionControllerGetDetailData,
27
37
  TransactionControllerGetDetailResponse,
28
38
  TransactionControllerUpdateData,
29
39
  TransactionControllerUpdateResponse,
30
- TransactionController1Data,
31
- TransactionController1Response,
32
- AccountStandardsControllerGetTemplatesData,
33
- AccountStandardsControllerGetTemplatesResponse,
34
- AccountStandardsControllerGetRegionsData,
35
- AccountStandardsControllerGetRegionsResponse,
40
+ TransactionControllerDeleteData,
41
+ TransactionControllerDeleteResponse,
36
42
  BalanceControllerGetBalanceData,
37
43
  BalanceControllerGetBalanceResponse,
38
44
  BalanceControllerGetMultiCurrencyBalanceData,
@@ -43,14 +49,14 @@ import type {
43
49
  ReviewControllerGetStatsResponse,
44
50
  ReviewControllerFindOneData,
45
51
  ReviewControllerFindOneResponse,
46
- ReviewControllerData,
47
- ReviewControllerResponse,
48
- ReviewController1Data,
49
- ReviewController1Response,
50
- ReviewController2Data,
51
- ReviewController2Response,
52
- PayeeControllerData,
53
- PayeeControllerResponse,
52
+ ReviewControllerResolveData,
53
+ ReviewControllerResolveResponse,
54
+ ReviewControllerUndoData,
55
+ ReviewControllerUndoResponse,
56
+ ReviewControllerBatchResolveData,
57
+ ReviewControllerBatchResolveResponse,
58
+ PayeeControllerCreateData,
59
+ PayeeControllerCreateResponse,
54
60
  PayeeControllerFindAllData,
55
61
  PayeeControllerFindAllResponse,
56
62
  PayeeControllerAutocompleteData,
@@ -59,50 +65,50 @@ import type {
59
65
  PayeeControllerGetTopPayeesResponse,
60
66
  PayeeControllerFindOneData,
61
67
  PayeeControllerFindOneResponse,
62
- PayeeController1Data,
63
- PayeeController1Response,
64
- PayeeController2Data,
65
- PayeeController2Response,
66
- PayeeProfileAdminControllerData,
67
- PayeeProfileAdminControllerResponse,
68
+ PayeeControllerUpdateData,
69
+ PayeeControllerUpdateResponse,
70
+ PayeeControllerDeleteData,
71
+ PayeeControllerDeleteResponse,
72
+ PayeeProfileAdminControllerCreateData,
73
+ PayeeProfileAdminControllerCreateResponse,
68
74
  PayeeProfileAdminControllerFindAllData,
69
75
  PayeeProfileAdminControllerFindAllResponse,
70
76
  PayeeProfileAdminControllerFindOneData,
71
77
  PayeeProfileAdminControllerFindOneResponse,
72
- PayeeProfileAdminController1Data,
73
- PayeeProfileAdminController1Response,
74
- PayeeProfileAdminController2Data,
75
- PayeeProfileAdminController2Response,
76
- PayeeProfileAdminController3Data,
77
- PayeeProfileAdminController3Response,
78
- PayeeProfileAdminController4Data,
79
- PayeeProfileAdminController4Response,
80
- CommodityControllerData,
81
- CommodityControllerResponse,
78
+ PayeeProfileAdminControllerUpdateData,
79
+ PayeeProfileAdminControllerUpdateResponse,
80
+ PayeeProfileAdminControllerDeleteData,
81
+ PayeeProfileAdminControllerDeleteResponse,
82
+ PayeeProfileAdminControllerVerifyData,
83
+ PayeeProfileAdminControllerVerifyResponse,
84
+ PayeeProfileAdminControllerUnverifyData,
85
+ PayeeProfileAdminControllerUnverifyResponse,
86
+ CommodityControllerCreateData,
87
+ CommodityControllerCreateResponse,
82
88
  CommodityControllerFindAllData,
83
89
  CommodityControllerFindAllResponse,
84
90
  CommodityControllerFindOneData,
85
91
  CommodityControllerFindOneResponse,
86
- CommodityController1Data,
87
- CommodityController1Response,
88
- CommodityController2Data,
89
- CommodityController2Response,
90
- CommodityController3Data,
91
- CommodityController3Response,
92
- CommodityController4Data,
93
- CommodityController4Response,
94
- RecurringRuleControllerData,
95
- RecurringRuleControllerResponse,
92
+ CommodityControllerUpdateData,
93
+ CommodityControllerUpdateResponse,
94
+ CommodityControllerDeleteData,
95
+ CommodityControllerDeleteResponse,
96
+ CommodityControllerGetOrCreateData,
97
+ CommodityControllerGetOrCreateResponse,
98
+ CommodityControllerBulkCreateData,
99
+ CommodityControllerBulkCreateResponse,
100
+ RecurringRuleControllerCreateData,
101
+ RecurringRuleControllerCreateResponse,
96
102
  RecurringRuleControllerFindAllData,
97
103
  RecurringRuleControllerFindAllResponse,
98
- RecurringRuleController1Data,
99
- RecurringRuleController1Response,
104
+ RecurringRuleControllerCreateFromTransactionData,
105
+ RecurringRuleControllerCreateFromTransactionResponse,
100
106
  RecurringRuleControllerFindOneData,
101
107
  RecurringRuleControllerFindOneResponse,
102
- RecurringRuleController2Data,
103
- RecurringRuleController2Response,
104
- RecurringRuleController3Data,
105
- RecurringRuleController3Response,
108
+ RecurringRuleControllerUpdateData,
109
+ RecurringRuleControllerUpdateResponse,
110
+ RecurringRuleControllerDeleteData,
111
+ RecurringRuleControllerDeleteResponse,
106
112
  RecurringRuleControllerGetWithStatsData,
107
113
  RecurringRuleControllerGetWithStatsResponse,
108
114
  ExpectedTransactionControllerFindAllData,
@@ -111,36 +117,36 @@ import type {
111
117
  ExpectedTransactionControllerFindOverdueResponse,
112
118
  ExpectedTransactionControllerFindOneData,
113
119
  ExpectedTransactionControllerFindOneResponse,
114
- ExpectedTransactionControllerData,
115
- ExpectedTransactionControllerResponse,
116
- ExpectedTransactionController1Data,
117
- ExpectedTransactionController1Response,
118
- ExpectedTransactionController2Data,
119
- ExpectedTransactionController2Response,
120
- ExpectedTransactionController3Data,
121
- ExpectedTransactionController3Response,
122
- ExpectedTransactionController4Data,
123
- ExpectedTransactionController4Response,
120
+ ExpectedTransactionControllerSkipData,
121
+ ExpectedTransactionControllerSkipResponse,
122
+ ExpectedTransactionControllerUndoSkipData,
123
+ ExpectedTransactionControllerUndoSkipResponse,
124
+ ExpectedTransactionControllerConfirmMatchData,
125
+ ExpectedTransactionControllerConfirmMatchResponse,
126
+ ExpectedTransactionControllerUnmatchData,
127
+ ExpectedTransactionControllerUnmatchResponse,
128
+ ExpectedTransactionControllerEnterNowData,
129
+ ExpectedTransactionControllerEnterNowResponse,
124
130
  ForecastControllerGetForecastData,
125
131
  ForecastControllerGetForecastResponse,
126
- TransactionRuleControllerData,
127
- TransactionRuleControllerResponse,
132
+ TransactionRuleControllerCreateData,
133
+ TransactionRuleControllerCreateResponse,
128
134
  TransactionRuleControllerListData,
129
135
  TransactionRuleControllerListResponse,
130
136
  TransactionRuleControllerValidateData,
131
137
  TransactionRuleControllerValidateResponse,
132
- TransactionRuleController1Data,
133
- TransactionRuleController1Response,
138
+ TransactionRuleControllerBulkCreateData,
139
+ TransactionRuleControllerBulkCreateResponse,
134
140
  TransactionRuleControllerExportData,
135
141
  TransactionRuleControllerExportResponse,
136
142
  TransactionRuleControllerGetStatisticsData,
137
143
  TransactionRuleControllerGetStatisticsResponse,
138
144
  TransactionRuleControllerGetDetailData,
139
145
  TransactionRuleControllerGetDetailResponse,
140
- TransactionRuleController2Data,
141
- TransactionRuleController2Response,
142
- TransactionRuleController3Data,
143
- TransactionRuleController3Response,
146
+ TransactionRuleControllerUpdateData,
147
+ TransactionRuleControllerUpdateResponse,
148
+ TransactionRuleControllerDeleteData,
149
+ TransactionRuleControllerDeleteResponse,
144
150
  TransactionRuleControllerTestData,
145
151
  TransactionRuleControllerTestResponse,
146
152
  UserControllerDeleteOwnUserData,
@@ -157,26 +163,37 @@ import type {
157
163
  UserControllerUpdateUserSettingResponse,
158
164
  UserControllerGetAllUserSettingsByPageData,
159
165
  UserControllerGetAllUserSettingsByPageResponse,
160
- UserControllerGetAssetLiabilitySummaryData,
161
166
  UserControllerGetAssetLiabilitySummaryResponse,
162
- PropertyControllerGetAllData,
163
167
  PropertyControllerGetAllResponse,
164
168
  PropertyControllerGetByKeyData,
165
169
  PropertyControllerGetByKeyResponse,
166
- PropertyControllerData,
167
- PropertyControllerResponse,
168
- PropertyController1Data,
169
- PropertyController1Response,
170
+ PropertyControllerUpdateData,
171
+ PropertyControllerUpdateResponse,
172
+ PropertyControllerDeleteData,
173
+ PropertyControllerDeleteResponse,
174
+ ExportControllerExportBeancountResponse,
170
175
  FileImportControllerImportFileData,
171
176
  FileImportControllerImportFileResponse,
172
177
  FileImportControllerIdentifyFileData,
173
178
  FileImportControllerIdentifyFileResponse,
179
+ FileImportControllerImportBeancountData,
180
+ FileImportControllerImportBeancountResponse,
174
181
  ImporterConfigControllerGetConfigData,
175
182
  ImporterConfigControllerGetConfigResponse,
176
- ImporterConfigControllerData,
177
- ImporterConfigControllerResponse,
178
- ImporterConfigController1Data,
179
- ImporterConfigController1Response,
183
+ ImporterConfigControllerUpdateConfigData,
184
+ ImporterConfigControllerUpdateConfigResponse,
185
+ ImporterConfigControllerResetConfigData,
186
+ ImporterConfigControllerResetConfigResponse,
187
+ PlatformControllerFindAllResponse,
188
+ PlatformControllerCreateData,
189
+ PlatformControllerCreateResponse,
190
+ PlatformControllerGetPlatformListResponse,
191
+ PlatformControllerMatchPlatformsData,
192
+ PlatformControllerMatchPlatformsResponse,
193
+ PlatformControllerUpdateData,
194
+ PlatformControllerUpdateResponse,
195
+ PlatformControllerDeleteData,
196
+ PlatformControllerDeleteResponse,
180
197
  ProviderSyncControllerSyncData,
181
198
  ProviderSyncControllerSyncResponse,
182
199
  ProviderSyncControllerGetSupportedProvidersData,
@@ -191,26 +208,6 @@ import type {
191
208
  NlpControllerClearSessionResponse,
192
209
  NlpControllerGetSessionData,
193
210
  NlpControllerGetSessionResponse,
194
- PlatformControllerFindAllData,
195
- PlatformControllerFindAllResponse,
196
- PlatformControllerData,
197
- PlatformControllerResponse,
198
- PlatformControllerGetPlatformListData,
199
- 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,
214
211
  DashboardControllerGetNetWorthData,
215
212
  DashboardControllerGetNetWorthResponse,
216
213
  DashboardControllerGetAccountsData,
@@ -223,40 +220,21 @@ import type {
223
220
  ReportingControllerGenerateSnapshotResponse,
224
221
  ReportingControllerBackfillSnapshotsData,
225
222
  ReportingControllerBackfillSnapshotsResponse,
226
- ApiKeysControllerData,
227
- ApiKeysControllerResponse,
223
+ ApiKeysControllerCreateApiKeyResponse,
228
224
  AuthControllerAccessTokenLoginData,
229
225
  AuthControllerAccessTokenLoginResponse,
226
+ CacheControllerFlushCacheResponse,
230
227
  ExchangeRateControllerGetExchangeRateData,
231
228
  ExchangeRateControllerGetExchangeRateResponse,
232
- HealthControllerGetHealthData,
233
229
  HealthControllerGetHealthResponse,
234
- HealthControllerCheckDatabaseData,
235
230
  HealthControllerCheckDatabaseResponse,
236
- HealthControllerCheckRedisData,
231
+ HealthControllerCheckOpenBbResponse,
237
232
  HealthControllerCheckRedisResponse,
238
- HealthControllerGetCircuitBreakersHealthData,
239
233
  HealthControllerGetCircuitBreakersHealthResponse,
240
234
  HealthControllerResetCircuitBreakerData,
241
235
  HealthControllerResetCircuitBreakerResponse,
242
- HealthControllerGetMetricsData,
243
236
  HealthControllerGetMetricsResponse,
244
- HealthControllerGetHealthOfDataEnhancerData,
245
- HealthControllerGetHealthOfDataEnhancerResponse,
246
- HealthControllerCheckDataProvidersData,
247
- HealthControllerCheckDataProvidersResponse,
248
- HealthControllerGetHealthOfDataProviderData,
249
- HealthControllerGetHealthOfDataProviderResponse,
250
- InfoControllerGetInfoData,
251
- InfoControllerGetInfoResponse,
252
- LogoControllerGetLogoByDataSourceAndSymbolData,
253
- LogoControllerGetLogoByDataSourceAndSymbolResponse,
254
- LogoControllerGetLogoByUrlData,
255
- LogoControllerGetLogoByUrlResponse,
256
- MarketDataControllerGetMarketDataBySymbolData,
257
- MarketDataControllerGetMarketDataBySymbolResponse,
258
- MarketDataControllerData,
259
- MarketDataControllerResponse
237
+ InfoControllerGetInfoResponse
260
238
  } from './types.gen';
261
239
 
262
240
  export class BeanAccountsService {
@@ -458,6 +436,78 @@ export class BeanAccountsService {
458
436
  }
459
437
  }
460
438
 
439
+ export class BeanAccountStandardsService {
440
+ /**
441
+ * Get account templates
442
+ * Returns predefined account templates for a region. Supports filtering by account type and search term.
443
+ * @param data The data for the request.
444
+ * @param data.region Region code (cn, us, de)
445
+ * @param data.type Filter by account type
446
+ * @param data.search Search term for path or description
447
+ * @returns AccountStandardListResponseDto Account templates retrieved successfully
448
+ * @throws ApiError
449
+ */
450
+ public static accountStandardsControllerGetTemplates(
451
+ data: AccountStandardsControllerGetTemplatesData
452
+ ): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
453
+ return __request(OpenAPI, {
454
+ method: 'GET',
455
+ url: '/api/v1/{region}/bean/account-standards',
456
+ path: {
457
+ region: data.region
458
+ },
459
+ query: {
460
+ type: data.type,
461
+ search: data.search
462
+ }
463
+ });
464
+ }
465
+
466
+ /**
467
+ * Get template metadata for an account path
468
+ * Returns extendable status and root type for a template path.
469
+ * @param data The data for the request.
470
+ * @param data.region Region code for tenant context
471
+ * @param data.path Account path to check
472
+ * @returns TemplateMetadataResponseDto Template metadata retrieved successfully
473
+ * @throws ApiError
474
+ */
475
+ public static accountStandardsControllerGetTemplateMetadata(
476
+ data: AccountStandardsControllerGetTemplateMetadataData
477
+ ): CancelablePromise<AccountStandardsControllerGetTemplateMetadataResponse> {
478
+ return __request(OpenAPI, {
479
+ method: 'GET',
480
+ url: '/api/v1/{region}/bean/account-standards/template-metadata',
481
+ path: {
482
+ region: data.region
483
+ },
484
+ query: {
485
+ path: data.path
486
+ }
487
+ });
488
+ }
489
+
490
+ /**
491
+ * Get available regions with hierarchy
492
+ * Returns supported regions with inheritance metadata
493
+ * @param data The data for the request.
494
+ * @param data.region Region code for tenant context
495
+ * @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
496
+ * @throws ApiError
497
+ */
498
+ public static accountStandardsControllerGetRegions(
499
+ data: AccountStandardsControllerGetRegionsData
500
+ ): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
501
+ return __request(OpenAPI, {
502
+ method: 'GET',
503
+ url: '/api/v1/{region}/bean/account-standards/regions',
504
+ path: {
505
+ region: data.region
506
+ }
507
+ });
508
+ }
509
+ }
510
+
461
511
  export class BeanTransactionsService {
462
512
  /**
463
513
  * @deprecated
@@ -523,25 +573,98 @@ export class BeanTransactionsService {
523
573
  accountId: data.accountId
524
574
  },
525
575
  errors: {
576
+ 400: 'Validation failed',
526
577
  401: 'Authentication required'
527
578
  }
528
579
  });
529
580
  }
530
581
 
531
582
  /**
583
+ * @deprecated
584
+ * Batch create transactions (DEPRECATED)
585
+ * DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
532
586
  * @param data The data for the request.
533
587
  * @param data.region Region code for tenant context
534
- * @returns unknown
588
+ * @param data.requestBody
589
+ * @returns BatchTransactionResponseDto Transactions processed
535
590
  * @throws ApiError
536
591
  */
537
- public static transactionController(
538
- data: TransactionControllerData
539
- ): CancelablePromise<TransactionControllerResponse> {
592
+ public static transactionControllerCreateBatch(
593
+ data: TransactionControllerCreateBatchData
594
+ ): CancelablePromise<TransactionControllerCreateBatchResponse> {
540
595
  return __request(OpenAPI, {
541
596
  method: 'POST',
542
597
  url: '/api/v1/{region}/bean/transactions/batch',
543
598
  path: {
544
599
  region: data.region
600
+ },
601
+ body: data.requestBody,
602
+ mediaType: 'application/json',
603
+ errors: {
604
+ 400: 'Invalid input',
605
+ 401: 'Authentication required'
606
+ }
607
+ });
608
+ }
609
+
610
+ /**
611
+ * Correct (supersede) a transaction
612
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
613
+ * @param data The data for the request.
614
+ * @param data.id Original transaction ID to correct
615
+ * @param data.region Region code for tenant context
616
+ * @param data.requestBody
617
+ * @returns TransactionDetailDto Corrected transaction created
618
+ * @throws ApiError
619
+ */
620
+ public static transactionControllerCorrect(
621
+ data: TransactionControllerCorrectData
622
+ ): CancelablePromise<TransactionControllerCorrectResponse> {
623
+ return __request(OpenAPI, {
624
+ method: 'POST',
625
+ url: '/api/v1/{region}/bean/transactions/{id}/correct',
626
+ path: {
627
+ id: data.id,
628
+ region: data.region
629
+ },
630
+ body: data.requestBody,
631
+ mediaType: 'application/json',
632
+ errors: {
633
+ 404: 'Original transaction not found',
634
+ 409: 'Original no longer ACTIVE (concurrent modification)',
635
+ 422: 'Pipeline validation failed (does not balance, invalid accounts)'
636
+ }
637
+ });
638
+ }
639
+
640
+ /**
641
+ * Suggest transaction tags
642
+ * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
643
+ * @param data The data for the request.
644
+ * @param data.region Region code for tenant context
645
+ * @param data.q Prefix match, case-insensitive (max 50 chars)
646
+ * @param data.sort usage (default) or name
647
+ * @param data.limit Max suggestions (1-100, default 10)
648
+ * @returns TagSuggestionsResponseDto Tag suggestions
649
+ * @throws ApiError
650
+ */
651
+ public static transactionControllerSuggestTags(
652
+ data: TransactionControllerSuggestTagsData
653
+ ): CancelablePromise<TransactionControllerSuggestTagsResponse> {
654
+ return __request(OpenAPI, {
655
+ method: 'GET',
656
+ url: '/api/v1/{region}/bean/transactions/tags',
657
+ path: {
658
+ region: data.region
659
+ },
660
+ query: {
661
+ q: data.q,
662
+ sort: data.sort,
663
+ limit: data.limit
664
+ },
665
+ errors: {
666
+ 400: 'Validation failed',
667
+ 401: 'Authentication required'
545
668
  }
546
669
  });
547
670
  }
@@ -603,67 +726,28 @@ export class BeanTransactionsService {
603
726
  }
604
727
 
605
728
  /**
729
+ * Void transaction
730
+ * Soft-deletes a transaction by marking it as VOIDED
606
731
  * @param data The data for the request.
732
+ * @param data.id Transaction ID
607
733
  * @param data.region Region code for tenant context
608
- * @returns void
734
+ * @returns void Transaction voided successfully
609
735
  * @throws ApiError
610
736
  */
611
- public static transactionController1(
612
- data: TransactionController1Data
613
- ): CancelablePromise<TransactionController1Response> {
737
+ public static transactionControllerDelete(
738
+ data: TransactionControllerDeleteData
739
+ ): CancelablePromise<TransactionControllerDeleteResponse> {
614
740
  return __request(OpenAPI, {
615
741
  method: 'DELETE',
616
742
  url: '/api/v1/{region}/bean/transactions/{id}',
617
743
  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: {
744
+ id: data.id,
642
745
  region: data.region
643
746
  },
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
747
+ errors: {
748
+ 400: 'Transaction already voided',
749
+ 401: 'Authentication required',
750
+ 404: 'Transaction not found'
667
751
  }
668
752
  });
669
753
  }
@@ -675,7 +759,7 @@ export class BeanBalancesService {
675
759
  * Calculate account balance at a specific date for a single currency
676
760
  * @param data The data for the request.
677
761
  * @param data.account Account name (e.g., "Assets:Bank:Checking")
678
- * @param data.region Region code (cn, us, de)
762
+ * @param data.region Region code for tenant context
679
763
  * @param data.date Date to calculate balance at (ISO 8601 format)
680
764
  * @param data.currency Currency to query (e.g., "USD", "CNY")
681
765
  * @returns BalanceResponseDto Balance calculated successfully
@@ -706,7 +790,7 @@ export class BeanBalancesService {
706
790
  * Query multi-currency account balance
707
791
  * Calculate account balances for all currencies at a specific date
708
792
  * @param data The data for the request.
709
- * @param data.region Region code (cn, us, de)
793
+ * @param data.region Region code for tenant context
710
794
  * @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
711
795
  * @throws ApiError
712
796
  */
@@ -731,7 +815,7 @@ export class BeanReviewsService {
731
815
  /**
732
816
  * List pending reviews
733
817
  * @param data The data for the request.
734
- * @param data.region Region code (cn, us, de)
818
+ * @param data.region Region code for tenant context
735
819
  * @param data.type Filter by review type
736
820
  * @param data.confidenceLevel Filter by confidence level
737
821
  * @param data.sortBy Sort order
@@ -762,7 +846,7 @@ export class BeanReviewsService {
762
846
  /**
763
847
  * Get review statistics
764
848
  * @param data The data for the request.
765
- * @param data.region Region code (cn, us, de)
849
+ * @param data.region Region code for tenant context
766
850
  * @returns ReviewStatsDto
767
851
  * @throws ApiError
768
852
  */
@@ -782,7 +866,7 @@ export class BeanReviewsService {
782
866
  * Get review by ID
783
867
  * @param data The data for the request.
784
868
  * @param data.id Review ID
785
- * @param data.region Region code (cn, us, de)
869
+ * @param data.region Region code for tenant context
786
870
  * @returns ReviewDetailDto
787
871
  * @throws ApiError
788
872
  */
@@ -800,75 +884,93 @@ export class BeanReviewsService {
800
884
  }
801
885
 
802
886
  /**
887
+ * Resolve a review item
803
888
  * @param data The data for the request.
804
- * @param data.region Region code (cn, us, de)
805
- * @returns unknown
889
+ * @param data.id Review ID
890
+ * @param data.region Region code for tenant context
891
+ * @param data.requestBody
892
+ * @returns ResolveResultDto
806
893
  * @throws ApiError
807
894
  */
808
- public static reviewController(
809
- data: ReviewControllerData
810
- ): CancelablePromise<ReviewControllerResponse> {
895
+ public static reviewControllerResolve(
896
+ data: ReviewControllerResolveData
897
+ ): CancelablePromise<ReviewControllerResolveResponse> {
811
898
  return __request(OpenAPI, {
812
899
  method: 'POST',
813
900
  url: '/api/v1/{region}/bean/reviews/{id}/resolve',
814
901
  path: {
902
+ id: data.id,
815
903
  region: data.region
816
- }
904
+ },
905
+ body: data.requestBody,
906
+ mediaType: 'application/json'
817
907
  });
818
908
  }
819
909
 
820
910
  /**
911
+ * Undo a resolution (within 24h)
821
912
  * @param data The data for the request.
822
- * @param data.region Region code (cn, us, de)
823
- * @returns unknown
913
+ * @param data.id Review ID
914
+ * @param data.region Region code for tenant context
915
+ * @returns UndoResultDto
824
916
  * @throws ApiError
825
917
  */
826
- public static reviewController1(
827
- data: ReviewController1Data
828
- ): CancelablePromise<ReviewController1Response> {
918
+ public static reviewControllerUndo(
919
+ data: ReviewControllerUndoData
920
+ ): CancelablePromise<ReviewControllerUndoResponse> {
829
921
  return __request(OpenAPI, {
830
922
  method: 'POST',
831
923
  url: '/api/v1/{region}/bean/reviews/{id}/undo',
832
924
  path: {
925
+ id: data.id,
833
926
  region: data.region
834
927
  }
835
928
  });
836
929
  }
837
930
 
838
931
  /**
932
+ * Batch resolve multiple reviews
839
933
  * @param data The data for the request.
840
- * @param data.region Region code (cn, us, de)
841
- * @returns unknown
934
+ * @param data.region Region code for tenant context
935
+ * @param data.requestBody Batch resolution request containing review IDs and action
936
+ * @returns BatchResolveResultDto
842
937
  * @throws ApiError
843
938
  */
844
- public static reviewController2(
845
- data: ReviewController2Data
846
- ): CancelablePromise<ReviewController2Response> {
939
+ public static reviewControllerBatchResolve(
940
+ data: ReviewControllerBatchResolveData
941
+ ): CancelablePromise<ReviewControllerBatchResolveResponse> {
847
942
  return __request(OpenAPI, {
848
943
  method: 'POST',
849
944
  url: '/api/v1/{region}/bean/reviews/batch-resolve',
850
945
  path: {
851
946
  region: data.region
852
- }
947
+ },
948
+ body: data.requestBody,
949
+ mediaType: 'application/json'
853
950
  });
854
951
  }
855
952
  }
856
953
 
857
954
  export class BeanPayeesService {
858
955
  /**
956
+ * Create a new payee
957
+ * Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
859
958
  * @param data The data for the request.
860
- * @param data.region Region code (cn, us, de)
861
- * @returns unknown
959
+ * @param data.requestBody
960
+ * @returns PayeeResponseDto Payee created successfully
862
961
  * @throws ApiError
863
962
  */
864
- public static payeeController(
865
- data: PayeeControllerData
866
- ): CancelablePromise<PayeeControllerResponse> {
963
+ public static payeeControllerCreate(
964
+ data: PayeeControllerCreateData
965
+ ): CancelablePromise<PayeeControllerCreateResponse> {
867
966
  return __request(OpenAPI, {
868
967
  method: 'POST',
869
968
  url: '/api/v1/bean/payees',
870
- path: {
871
- region: data.region
969
+ body: data.requestBody,
970
+ mediaType: 'application/json',
971
+ errors: {
972
+ 400: 'Invalid input data',
973
+ 409: 'Payee already exists'
872
974
  }
873
975
  });
874
976
  }
@@ -877,7 +979,6 @@ export class BeanPayeesService {
877
979
  * List user payees
878
980
  * Returns all payee mappings for the authenticated user with optional filtering
879
981
  * @param data The data for the request.
880
- * @param data.region Region code (cn, us, de)
881
982
  * @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
882
983
  * @param data.payee Filter by exact payee name match
883
984
  * @param data.category Filter by custom category
@@ -887,14 +988,11 @@ export class BeanPayeesService {
887
988
  * @throws ApiError
888
989
  */
889
990
  public static payeeControllerFindAll(
890
- data: PayeeControllerFindAllData
991
+ data: PayeeControllerFindAllData = {}
891
992
  ): CancelablePromise<PayeeControllerFindAllResponse> {
892
993
  return __request(OpenAPI, {
893
994
  method: 'GET',
894
995
  url: '/api/v1/bean/payees',
895
- path: {
896
- region: data.region
897
- },
898
996
  query: {
899
997
  search: data.search,
900
998
  payee: data.payee,
@@ -910,7 +1008,6 @@ export class BeanPayeesService {
910
1008
  * Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
911
1009
  * @param data The data for the request.
912
1010
  * @param data.q Search query for payee name (partial match, case-insensitive)
913
- * @param data.region Region code (cn, us, de)
914
1011
  * @param data.limit Maximum number of suggestions
915
1012
  * @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
916
1013
  * @throws ApiError
@@ -921,9 +1018,6 @@ export class BeanPayeesService {
921
1018
  return __request(OpenAPI, {
922
1019
  method: 'GET',
923
1020
  url: '/api/v1/bean/payees/autocomplete',
924
- path: {
925
- region: data.region
926
- },
927
1021
  query: {
928
1022
  q: data.q,
929
1023
  limit: data.limit
@@ -935,20 +1029,16 @@ export class BeanPayeesService {
935
1029
  * Get top payees by usage
936
1030
  * Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
937
1031
  * @param data The data for the request.
938
- * @param data.region Region code (cn, us, de)
939
1032
  * @param data.limit Maximum number of results
940
1033
  * @returns PayeeStatsResponseDto Top payees retrieved successfully
941
1034
  * @throws ApiError
942
1035
  */
943
1036
  public static payeeControllerGetTopPayees(
944
- data: PayeeControllerGetTopPayeesData
1037
+ data: PayeeControllerGetTopPayeesData = {}
945
1038
  ): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
946
1039
  return __request(OpenAPI, {
947
1040
  method: 'GET',
948
1041
  url: '/api/v1/bean/payees/top',
949
- path: {
950
- region: data.region
951
- },
952
1042
  query: {
953
1043
  limit: data.limit
954
1044
  }
@@ -960,7 +1050,6 @@ export class BeanPayeesService {
960
1050
  * Returns a specific payee mapping by its UUID
961
1051
  * @param data The data for the request.
962
1052
  * @param data.id Payee UUID
963
- * @param data.region Region code (cn, us, de)
964
1053
  * @returns PayeeResponseDto Payee retrieved successfully
965
1054
  * @throws ApiError
966
1055
  */
@@ -971,8 +1060,7 @@ export class BeanPayeesService {
971
1060
  method: 'GET',
972
1061
  url: '/api/v1/bean/payees/{id}',
973
1062
  path: {
974
- id: data.id,
975
- region: data.region
1063
+ id: data.id
976
1064
  },
977
1065
  errors: {
978
1066
  403: 'Payee belongs to another user',
@@ -982,37 +1070,51 @@ export class BeanPayeesService {
982
1070
  }
983
1071
 
984
1072
  /**
1073
+ * Update payee
1074
+ * Updates a payee mapping. The payee name cannot be changed after creation.
985
1075
  * @param data The data for the request.
986
- * @param data.region Region code (cn, us, de)
987
- * @returns unknown
1076
+ * @param data.id Payee UUID
1077
+ * @param data.requestBody
1078
+ * @returns PayeeResponseDto Payee updated successfully
988
1079
  * @throws ApiError
989
1080
  */
990
- public static payeeController1(
991
- data: PayeeController1Data
992
- ): CancelablePromise<PayeeController1Response> {
1081
+ public static payeeControllerUpdate(
1082
+ data: PayeeControllerUpdateData
1083
+ ): CancelablePromise<PayeeControllerUpdateResponse> {
993
1084
  return __request(OpenAPI, {
994
1085
  method: 'PUT',
995
1086
  url: '/api/v1/bean/payees/{id}',
996
1087
  path: {
997
- region: data.region
1088
+ id: data.id
1089
+ },
1090
+ body: data.requestBody,
1091
+ mediaType: 'application/json',
1092
+ errors: {
1093
+ 400: 'Invalid input data',
1094
+ 404: 'Payee not found'
998
1095
  }
999
1096
  });
1000
1097
  }
1001
1098
 
1002
1099
  /**
1100
+ * Delete payee
1101
+ * Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
1003
1102
  * @param data The data for the request.
1004
- * @param data.region Region code (cn, us, de)
1005
- * @returns void
1103
+ * @param data.id Payee UUID
1104
+ * @returns void Payee deleted successfully
1006
1105
  * @throws ApiError
1007
1106
  */
1008
- public static payeeController2(
1009
- data: PayeeController2Data
1010
- ): CancelablePromise<PayeeController2Response> {
1107
+ public static payeeControllerDelete(
1108
+ data: PayeeControllerDeleteData
1109
+ ): CancelablePromise<PayeeControllerDeleteResponse> {
1011
1110
  return __request(OpenAPI, {
1012
1111
  method: 'DELETE',
1013
1112
  url: '/api/v1/bean/payees/{id}',
1014
1113
  path: {
1015
- region: data.region
1114
+ id: data.id
1115
+ },
1116
+ errors: {
1117
+ 404: 'Payee not found'
1016
1118
  }
1017
1119
  });
1018
1120
  }
@@ -1020,28 +1122,33 @@ export class BeanPayeesService {
1020
1122
 
1021
1123
  export class AdminPayeeProfilesService {
1022
1124
  /**
1125
+ * Create payee profile (Admin only)
1126
+ * Creates a new global payee profile. The canonical name must be unique (case-insensitive).
1023
1127
  * @param data The data for the request.
1024
- * @param data.region Region code (cn, us, de)
1025
- * @returns unknown
1128
+ * @param data.requestBody
1129
+ * @returns PayeeProfileResponseDto Payee profile created successfully
1026
1130
  * @throws ApiError
1027
1131
  */
1028
- public static payeeProfileAdminController(
1029
- data: PayeeProfileAdminControllerData
1030
- ): CancelablePromise<PayeeProfileAdminControllerResponse> {
1132
+ public static payeeProfileAdminControllerCreate(
1133
+ data: PayeeProfileAdminControllerCreateData
1134
+ ): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
1031
1135
  return __request(OpenAPI, {
1032
1136
  method: 'POST',
1033
1137
  url: '/api/v1/admin/payee-profiles',
1034
- path: {
1035
- region: data.region
1036
- }
1037
- });
1138
+ body: data.requestBody,
1139
+ mediaType: 'application/json',
1140
+ errors: {
1141
+ 400: 'Validation failed',
1142
+ 403: 'Admin access required',
1143
+ 409: 'Payee profile already exists'
1144
+ }
1145
+ });
1038
1146
  }
1039
1147
 
1040
1148
  /**
1041
1149
  * List payee profiles (Admin only)
1042
1150
  * Returns all payee profiles with optional filtering by category, country, verification status, etc.
1043
1151
  * @param data The data for the request.
1044
- * @param data.region Region code (cn, us, de)
1045
1152
  * @param data.search Search term for canonical name and aliases (case-insensitive)
1046
1153
  * @param data.category Filter by category
1047
1154
  * @param data.country Filter by country (ISO 3166-1 alpha-2)
@@ -1052,14 +1159,11 @@ export class AdminPayeeProfilesService {
1052
1159
  * @throws ApiError
1053
1160
  */
1054
1161
  public static payeeProfileAdminControllerFindAll(
1055
- data: PayeeProfileAdminControllerFindAllData
1162
+ data: PayeeProfileAdminControllerFindAllData = {}
1056
1163
  ): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
1057
1164
  return __request(OpenAPI, {
1058
1165
  method: 'GET',
1059
1166
  url: '/api/v1/admin/payee-profiles',
1060
- path: {
1061
- region: data.region
1062
- },
1063
1167
  query: {
1064
1168
  search: data.search,
1065
1169
  category: data.category,
@@ -1079,7 +1183,6 @@ export class AdminPayeeProfilesService {
1079
1183
  * Returns a single payee profile by its ID.
1080
1184
  * @param data The data for the request.
1081
1185
  * @param data.id Payee profile ID (UUID)
1082
- * @param data.region Region code (cn, us, de)
1083
1186
  * @returns PayeeProfileResponseDto Payee profile retrieved successfully
1084
1187
  * @throws ApiError
1085
1188
  */
@@ -1090,8 +1193,7 @@ export class AdminPayeeProfilesService {
1090
1193
  method: 'GET',
1091
1194
  url: '/api/v1/admin/payee-profiles/{id}',
1092
1195
  path: {
1093
- id: data.id,
1094
- region: data.region
1196
+ id: data.id
1095
1197
  },
1096
1198
  errors: {
1097
1199
  403: 'Admin access required',
@@ -1101,73 +1203,101 @@ export class AdminPayeeProfilesService {
1101
1203
  }
1102
1204
 
1103
1205
  /**
1206
+ * Update payee profile (Admin only)
1207
+ * Updates an existing payee profile. The canonical name cannot be changed.
1104
1208
  * @param data The data for the request.
1105
- * @param data.region Region code (cn, us, de)
1106
- * @returns unknown
1209
+ * @param data.id Payee profile ID (UUID)
1210
+ * @param data.requestBody
1211
+ * @returns PayeeProfileResponseDto Payee profile updated successfully
1107
1212
  * @throws ApiError
1108
1213
  */
1109
- public static payeeProfileAdminController1(
1110
- data: PayeeProfileAdminController1Data
1111
- ): CancelablePromise<PayeeProfileAdminController1Response> {
1214
+ public static payeeProfileAdminControllerUpdate(
1215
+ data: PayeeProfileAdminControllerUpdateData
1216
+ ): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
1112
1217
  return __request(OpenAPI, {
1113
1218
  method: 'PUT',
1114
1219
  url: '/api/v1/admin/payee-profiles/{id}',
1115
1220
  path: {
1116
- region: data.region
1221
+ id: data.id
1222
+ },
1223
+ body: data.requestBody,
1224
+ mediaType: 'application/json',
1225
+ errors: {
1226
+ 403: 'Admin access required',
1227
+ 404: 'Payee profile not found'
1117
1228
  }
1118
1229
  });
1119
1230
  }
1120
1231
 
1121
1232
  /**
1233
+ * Soft delete payee profile (Admin only)
1234
+ * Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
1122
1235
  * @param data The data for the request.
1123
- * @param data.region Region code (cn, us, de)
1124
- * @returns void
1236
+ * @param data.id Payee profile ID (UUID)
1237
+ * @returns void Payee profile deleted successfully
1125
1238
  * @throws ApiError
1126
1239
  */
1127
- public static payeeProfileAdminController2(
1128
- data: PayeeProfileAdminController2Data
1129
- ): CancelablePromise<PayeeProfileAdminController2Response> {
1240
+ public static payeeProfileAdminControllerDelete(
1241
+ data: PayeeProfileAdminControllerDeleteData
1242
+ ): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
1130
1243
  return __request(OpenAPI, {
1131
1244
  method: 'DELETE',
1132
1245
  url: '/api/v1/admin/payee-profiles/{id}',
1133
1246
  path: {
1134
- region: data.region
1247
+ id: data.id
1248
+ },
1249
+ errors: {
1250
+ 403: 'Admin access required',
1251
+ 404: 'Payee profile not found',
1252
+ 409: 'Payee profile is in use and cannot be deleted'
1135
1253
  }
1136
1254
  });
1137
1255
  }
1138
1256
 
1139
1257
  /**
1258
+ * Verify payee profile (Admin only)
1259
+ * Marks a payee profile as verified by setting verifiedAt to current timestamp.
1140
1260
  * @param data The data for the request.
1141
- * @param data.region Region code (cn, us, de)
1142
- * @returns unknown
1261
+ * @param data.id Payee profile ID (UUID)
1262
+ * @returns PayeeProfileResponseDto Payee profile verified successfully
1143
1263
  * @throws ApiError
1144
1264
  */
1145
- public static payeeProfileAdminController3(
1146
- data: PayeeProfileAdminController3Data
1147
- ): CancelablePromise<PayeeProfileAdminController3Response> {
1265
+ public static payeeProfileAdminControllerVerify(
1266
+ data: PayeeProfileAdminControllerVerifyData
1267
+ ): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
1148
1268
  return __request(OpenAPI, {
1149
1269
  method: 'POST',
1150
1270
  url: '/api/v1/admin/payee-profiles/{id}/verify',
1151
1271
  path: {
1152
- region: data.region
1272
+ id: data.id
1273
+ },
1274
+ errors: {
1275
+ 403: 'Admin access required',
1276
+ 404: 'Payee profile not found'
1153
1277
  }
1154
1278
  });
1155
1279
  }
1156
1280
 
1157
1281
  /**
1282
+ * Unverify payee profile (Admin only)
1283
+ * Removes verification status by setting verifiedAt to null.
1158
1284
  * @param data The data for the request.
1159
- * @param data.region Region code (cn, us, de)
1160
- * @returns unknown
1285
+ * @param data.id Payee profile ID (UUID)
1286
+ * @returns PayeeProfileResponseDto Payee profile unverified successfully
1161
1287
  * @throws ApiError
1162
1288
  */
1163
- public static payeeProfileAdminController4(
1164
- data: PayeeProfileAdminController4Data
1165
- ): CancelablePromise<PayeeProfileAdminController4Response> {
1289
+ public static payeeProfileAdminControllerUnverify(
1290
+ data: PayeeProfileAdminControllerUnverifyData
1291
+ ): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
1166
1292
  return __request(OpenAPI, {
1167
1293
  method: 'DELETE',
1168
1294
  url: '/api/v1/admin/payee-profiles/{id}/verify',
1169
1295
  path: {
1170
- region: data.region
1296
+ id: data.id
1297
+ },
1298
+ errors: {
1299
+ 403: 'Admin access required',
1300
+ 404: 'Payee profile not found'
1171
1301
  }
1172
1302
  });
1173
1303
  }
@@ -1175,19 +1305,28 @@ export class AdminPayeeProfilesService {
1175
1305
 
1176
1306
  export class BeanCommoditiesService {
1177
1307
  /**
1308
+ * Create a new commodity
1309
+ * Creates a new commodity definition for the authenticated user
1178
1310
  * @param data The data for the request.
1179
- * @param data.region Region code (cn, us, de)
1180
- * @returns unknown
1311
+ * @param data.region Region code for tenant context
1312
+ * @param data.requestBody
1313
+ * @returns CommodityResponseDto Commodity created successfully
1181
1314
  * @throws ApiError
1182
1315
  */
1183
- public static commodityController(
1184
- data: CommodityControllerData
1185
- ): CancelablePromise<CommodityControllerResponse> {
1316
+ public static commodityControllerCreate(
1317
+ data: CommodityControllerCreateData
1318
+ ): CancelablePromise<CommodityControllerCreateResponse> {
1186
1319
  return __request(OpenAPI, {
1187
1320
  method: 'POST',
1188
1321
  url: '/api/v1/{region}/bean/commodities',
1189
1322
  path: {
1190
1323
  region: data.region
1324
+ },
1325
+ body: data.requestBody,
1326
+ mediaType: 'application/json',
1327
+ errors: {
1328
+ 400: 'Invalid input data',
1329
+ 409: 'Commodity already exists'
1191
1330
  }
1192
1331
  });
1193
1332
  }
@@ -1196,7 +1335,7 @@ export class BeanCommoditiesService {
1196
1335
  * List user commodities
1197
1336
  * Returns all commodity definitions for the authenticated user with optional filtering
1198
1337
  * @param data The data for the request.
1199
- * @param data.region Region code (cn, us, de)
1338
+ * @param data.region Region code for tenant context
1200
1339
  * @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
1201
1340
  * @param data.symbol Filter by exact symbol match
1202
1341
  * @returns CommodityListResponseDto Commodities retrieved successfully
@@ -1223,7 +1362,7 @@ export class BeanCommoditiesService {
1223
1362
  * Returns a specific commodity definition by its symbol
1224
1363
  * @param data The data for the request.
1225
1364
  * @param data.symbol Commodity symbol
1226
- * @param data.region Region code (cn, us, de)
1365
+ * @param data.region Region code for tenant context
1227
1366
  * @returns CommodityResponseDto Commodity retrieved successfully
1228
1367
  * @throws ApiError
1229
1368
  */
@@ -1244,68 +1383,92 @@ export class BeanCommoditiesService {
1244
1383
  }
1245
1384
 
1246
1385
  /**
1386
+ * Update commodity
1387
+ * Updates an existing commodity definition. Symbol cannot be changed.
1247
1388
  * @param data The data for the request.
1248
- * @param data.region Region code (cn, us, de)
1249
- * @returns unknown
1389
+ * @param data.symbol Commodity symbol
1390
+ * @param data.region Region code for tenant context
1391
+ * @param data.requestBody
1392
+ * @returns CommodityResponseDto Commodity updated successfully
1250
1393
  * @throws ApiError
1251
1394
  */
1252
- public static commodityController1(
1253
- data: CommodityController1Data
1254
- ): CancelablePromise<CommodityController1Response> {
1395
+ public static commodityControllerUpdate(
1396
+ data: CommodityControllerUpdateData
1397
+ ): CancelablePromise<CommodityControllerUpdateResponse> {
1255
1398
  return __request(OpenAPI, {
1256
1399
  method: 'PUT',
1257
1400
  url: '/api/v1/{region}/bean/commodities/{symbol}',
1258
1401
  path: {
1402
+ symbol: data.symbol,
1259
1403
  region: data.region
1404
+ },
1405
+ body: data.requestBody,
1406
+ mediaType: 'application/json',
1407
+ errors: {
1408
+ 400: 'Invalid input data',
1409
+ 404: 'Commodity not found'
1260
1410
  }
1261
1411
  });
1262
1412
  }
1263
1413
 
1264
1414
  /**
1415
+ * Delete commodity
1416
+ * Deletes a commodity definition
1265
1417
  * @param data The data for the request.
1266
- * @param data.region Region code (cn, us, de)
1267
- * @returns void
1418
+ * @param data.symbol Commodity symbol
1419
+ * @param data.region Region code for tenant context
1420
+ * @returns void Commodity deleted successfully
1268
1421
  * @throws ApiError
1269
1422
  */
1270
- public static commodityController2(
1271
- data: CommodityController2Data
1272
- ): CancelablePromise<CommodityController2Response> {
1423
+ public static commodityControllerDelete(
1424
+ data: CommodityControllerDeleteData
1425
+ ): CancelablePromise<CommodityControllerDeleteResponse> {
1273
1426
  return __request(OpenAPI, {
1274
1427
  method: 'DELETE',
1275
1428
  url: '/api/v1/{region}/bean/commodities/{symbol}',
1276
1429
  path: {
1430
+ symbol: data.symbol,
1277
1431
  region: data.region
1432
+ },
1433
+ errors: {
1434
+ 404: 'Commodity not found'
1278
1435
  }
1279
1436
  });
1280
1437
  }
1281
1438
 
1282
1439
  /**
1440
+ * Ensure commodity exists
1441
+ * Gets existing commodity or creates it with automatic initialization from OpenBB
1283
1442
  * @param data The data for the request.
1284
- * @param data.region Region code (cn, us, de)
1285
- * @returns unknown
1443
+ * @param data.symbol Commodity symbol
1444
+ * @param data.region Region code for tenant context
1445
+ * @returns CommodityResponseDto Commodity retrieved or created
1286
1446
  * @throws ApiError
1287
1447
  */
1288
- public static commodityController3(
1289
- data: CommodityController3Data
1290
- ): CancelablePromise<CommodityController3Response> {
1448
+ public static commodityControllerGetOrCreate(
1449
+ data: CommodityControllerGetOrCreateData
1450
+ ): CancelablePromise<CommodityControllerGetOrCreateResponse> {
1291
1451
  return __request(OpenAPI, {
1292
1452
  method: 'POST',
1293
1453
  url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
1294
1454
  path: {
1455
+ symbol: data.symbol,
1295
1456
  region: data.region
1296
1457
  }
1297
1458
  });
1298
1459
  }
1299
1460
 
1300
1461
  /**
1462
+ * Bulk create commodities
1463
+ * Creates multiple commodities from a list of symbols, useful for initialization
1301
1464
  * @param data The data for the request.
1302
- * @param data.region Region code (cn, us, de)
1303
- * @returns unknown
1465
+ * @param data.region Region code for tenant context
1466
+ * @returns CommodityResponseDto Commodities created successfully
1304
1467
  * @throws ApiError
1305
1468
  */
1306
- public static commodityController4(
1307
- data: CommodityController4Data
1308
- ): CancelablePromise<CommodityController4Response> {
1469
+ public static commodityControllerBulkCreate(
1470
+ data: CommodityControllerBulkCreateData
1471
+ ): CancelablePromise<CommodityControllerBulkCreateResponse> {
1309
1472
  return __request(OpenAPI, {
1310
1473
  method: 'POST',
1311
1474
  url: '/api/v1/{region}/bean/commodities/bulk',
@@ -1318,19 +1481,28 @@ export class BeanCommoditiesService {
1318
1481
 
1319
1482
  export class RecurringRulesService {
1320
1483
  /**
1484
+ * Create a new recurring rule
1485
+ * Creates a new recurring transaction rule for the authenticated user
1321
1486
  * @param data The data for the request.
1322
- * @param data.region Region code (cn, us, de)
1323
- * @returns unknown
1487
+ * @param data.region Region code for tenant context
1488
+ * @param data.requestBody
1489
+ * @returns RecurringRuleResponseDto Rule created successfully
1324
1490
  * @throws ApiError
1325
1491
  */
1326
- public static recurringRuleController(
1327
- data: RecurringRuleControllerData
1328
- ): CancelablePromise<RecurringRuleControllerResponse> {
1492
+ public static recurringRuleControllerCreate(
1493
+ data: RecurringRuleControllerCreateData
1494
+ ): CancelablePromise<RecurringRuleControllerCreateResponse> {
1329
1495
  return __request(OpenAPI, {
1330
1496
  method: 'POST',
1331
1497
  url: '/api/v1/{region}/bean/recurring-rules',
1332
1498
  path: {
1333
1499
  region: data.region
1500
+ },
1501
+ body: data.requestBody,
1502
+ mediaType: 'application/json',
1503
+ errors: {
1504
+ 400: 'Invalid input data (e.g., autoCreate without accounts)',
1505
+ 409: 'Rule with same name already exists'
1334
1506
  }
1335
1507
  });
1336
1508
  }
@@ -1339,7 +1511,7 @@ export class RecurringRulesService {
1339
1511
  * List recurring rules
1340
1512
  * Returns all recurring rules for the authenticated user with optional filtering
1341
1513
  * @param data The data for the request.
1342
- * @param data.region Region code (cn, us, de)
1514
+ * @param data.region Region code for tenant context
1343
1515
  * @param data.isActive Filter by active status
1344
1516
  * @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
1345
1517
  * @param data.hasAutoCreate Filter by autoCreate enabled
@@ -1364,19 +1536,30 @@ export class RecurringRulesService {
1364
1536
  }
1365
1537
 
1366
1538
  /**
1539
+ * Create recurring rule from transaction
1540
+ * Auto-creates a recurring rule using transaction data. User only confirms frequency.
1367
1541
  * @param data The data for the request.
1368
- * @param data.region Region code (cn, us, de)
1369
- * @returns unknown
1542
+ * @param data.transactionId Source transaction ID
1543
+ * @param data.region Region code for tenant context
1544
+ * @param data.requestBody
1545
+ * @returns RecurringRuleResponseDto Rule created successfully
1370
1546
  * @throws ApiError
1371
1547
  */
1372
- public static recurringRuleController1(
1373
- data: RecurringRuleController1Data
1374
- ): CancelablePromise<RecurringRuleController1Response> {
1548
+ public static recurringRuleControllerCreateFromTransaction(
1549
+ data: RecurringRuleControllerCreateFromTransactionData
1550
+ ): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
1375
1551
  return __request(OpenAPI, {
1376
1552
  method: 'POST',
1377
1553
  url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
1378
1554
  path: {
1555
+ transactionId: data.transactionId,
1379
1556
  region: data.region
1557
+ },
1558
+ body: data.requestBody,
1559
+ mediaType: 'application/json',
1560
+ errors: {
1561
+ 404: 'Transaction not found',
1562
+ 409: 'Rule with same name already exists or transaction already linked'
1380
1563
  }
1381
1564
  });
1382
1565
  }
@@ -1386,7 +1569,7 @@ export class RecurringRulesService {
1386
1569
  * Returns a specific recurring rule with its details
1387
1570
  * @param data The data for the request.
1388
1571
  * @param data.id Rule ID
1389
- * @param data.region Region code (cn, us, de)
1572
+ * @param data.region Region code for tenant context
1390
1573
  * @returns RecurringRuleResponseDto Rule retrieved successfully
1391
1574
  * @throws ApiError
1392
1575
  */
@@ -1407,37 +1590,55 @@ export class RecurringRulesService {
1407
1590
  }
1408
1591
 
1409
1592
  /**
1593
+ * Update recurring rule
1594
+ * Updates an existing recurring rule
1410
1595
  * @param data The data for the request.
1411
- * @param data.region Region code (cn, us, de)
1412
- * @returns unknown
1596
+ * @param data.id Rule ID
1597
+ * @param data.region Region code for tenant context
1598
+ * @param data.requestBody
1599
+ * @returns RecurringRuleResponseDto Rule updated successfully
1413
1600
  * @throws ApiError
1414
1601
  */
1415
- public static recurringRuleController2(
1416
- data: RecurringRuleController2Data
1417
- ): CancelablePromise<RecurringRuleController2Response> {
1602
+ public static recurringRuleControllerUpdate(
1603
+ data: RecurringRuleControllerUpdateData
1604
+ ): CancelablePromise<RecurringRuleControllerUpdateResponse> {
1418
1605
  return __request(OpenAPI, {
1419
1606
  method: 'PATCH',
1420
1607
  url: '/api/v1/{region}/bean/recurring-rules/{id}',
1421
1608
  path: {
1609
+ id: data.id,
1422
1610
  region: data.region
1611
+ },
1612
+ body: data.requestBody,
1613
+ mediaType: 'application/json',
1614
+ errors: {
1615
+ 400: 'Invalid input data',
1616
+ 404: 'Rule not found'
1423
1617
  }
1424
1618
  });
1425
1619
  }
1426
1620
 
1427
1621
  /**
1622
+ * Delete recurring rule
1623
+ * Soft deletes a recurring rule (sets isActive to false)
1428
1624
  * @param data The data for the request.
1429
- * @param data.region Region code (cn, us, de)
1430
- * @returns void
1625
+ * @param data.id Rule ID
1626
+ * @param data.region Region code for tenant context
1627
+ * @returns void Rule deleted successfully
1431
1628
  * @throws ApiError
1432
1629
  */
1433
- public static recurringRuleController3(
1434
- data: RecurringRuleController3Data
1435
- ): CancelablePromise<RecurringRuleController3Response> {
1630
+ public static recurringRuleControllerDelete(
1631
+ data: RecurringRuleControllerDeleteData
1632
+ ): CancelablePromise<RecurringRuleControllerDeleteResponse> {
1436
1633
  return __request(OpenAPI, {
1437
1634
  method: 'DELETE',
1438
1635
  url: '/api/v1/{region}/bean/recurring-rules/{id}',
1439
1636
  path: {
1637
+ id: data.id,
1440
1638
  region: data.region
1639
+ },
1640
+ errors: {
1641
+ 404: 'Rule not found'
1441
1642
  }
1442
1643
  });
1443
1644
  }
@@ -1447,7 +1648,7 @@ export class RecurringRulesService {
1447
1648
  * Returns a rule with pending/overdue counts and next expected date
1448
1649
  * @param data The data for the request.
1449
1650
  * @param data.id Rule ID
1450
- * @param data.region Region code (cn, us, de)
1651
+ * @param data.region Region code for tenant context
1451
1652
  * @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
1452
1653
  * @throws ApiError
1453
1654
  */
@@ -1473,7 +1674,7 @@ export class ExpectedTransactionsService {
1473
1674
  * List expected transactions
1474
1675
  * Returns expected transactions for the authenticated user with optional filtering
1475
1676
  * @param data The data for the request.
1476
- * @param data.region Region code (cn, us, de)
1677
+ * @param data.region Region code for tenant context
1477
1678
  * @param data.ruleId Filter by recurring rule ID
1478
1679
  * @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
1479
1680
  * @param data.fromDate Filter by date range start (YYYY-MM-DD)
@@ -1503,7 +1704,7 @@ export class ExpectedTransactionsService {
1503
1704
  * List overdue expected transactions
1504
1705
  * Returns all overdue expected transactions (PENDING past tolerance)
1505
1706
  * @param data The data for the request.
1506
- * @param data.region Region code (cn, us, de)
1707
+ * @param data.region Region code for tenant context
1507
1708
  * @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
1508
1709
  * @throws ApiError
1509
1710
  */
@@ -1524,7 +1725,7 @@ export class ExpectedTransactionsService {
1524
1725
  * Returns a specific expected transaction with rule details
1525
1726
  * @param data The data for the request.
1526
1727
  * @param data.id Expected transaction ID
1527
- * @param data.region Region code (cn, us, de)
1728
+ * @param data.region Region code for tenant context
1528
1729
  * @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
1529
1730
  * @throws ApiError
1530
1731
  */
@@ -1545,91 +1746,138 @@ export class ExpectedTransactionsService {
1545
1746
  }
1546
1747
 
1547
1748
  /**
1749
+ * Skip expected transaction
1750
+ * Marks an expected transaction as skipped (PENDING -> SKIPPED)
1548
1751
  * @param data The data for the request.
1549
- * @param data.region Region code (cn, us, de)
1550
- * @returns unknown
1752
+ * @param data.id Expected transaction ID
1753
+ * @param data.region Region code for tenant context
1754
+ * @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
1551
1755
  * @throws ApiError
1552
1756
  */
1553
- public static expectedTransactionController(
1554
- data: ExpectedTransactionControllerData
1555
- ): CancelablePromise<ExpectedTransactionControllerResponse> {
1757
+ public static expectedTransactionControllerSkip(
1758
+ data: ExpectedTransactionControllerSkipData
1759
+ ): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
1556
1760
  return __request(OpenAPI, {
1557
1761
  method: 'POST',
1558
1762
  url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
1559
1763
  path: {
1764
+ id: data.id,
1560
1765
  region: data.region
1766
+ },
1767
+ errors: {
1768
+ 400: 'Cannot skip - not in PENDING status',
1769
+ 404: 'Expected transaction not found'
1561
1770
  }
1562
1771
  });
1563
1772
  }
1564
1773
 
1565
1774
  /**
1775
+ * Undo skip
1776
+ * Reverses a skip operation (SKIPPED -> PENDING)
1566
1777
  * @param data The data for the request.
1567
- * @param data.region Region code (cn, us, de)
1568
- * @returns unknown
1778
+ * @param data.id Expected transaction ID
1779
+ * @param data.region Region code for tenant context
1780
+ * @returns ExpectedTransactionResponseDto Skip undone successfully
1569
1781
  * @throws ApiError
1570
1782
  */
1571
- public static expectedTransactionController1(
1572
- data: ExpectedTransactionController1Data
1573
- ): CancelablePromise<ExpectedTransactionController1Response> {
1783
+ public static expectedTransactionControllerUndoSkip(
1784
+ data: ExpectedTransactionControllerUndoSkipData
1785
+ ): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
1574
1786
  return __request(OpenAPI, {
1575
1787
  method: 'DELETE',
1576
1788
  url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
1577
1789
  path: {
1790
+ id: data.id,
1578
1791
  region: data.region
1792
+ },
1793
+ errors: {
1794
+ 400: 'Cannot undo - not in SKIPPED status',
1795
+ 404: 'Expected transaction not found'
1579
1796
  }
1580
1797
  });
1581
1798
  }
1582
1799
 
1583
1800
  /**
1801
+ * Confirm transaction match
1802
+ * Manually matches an expected transaction with an actual transaction
1584
1803
  * @param data The data for the request.
1585
- * @param data.region Region code (cn, us, de)
1586
- * @returns unknown
1804
+ * @param data.id Expected transaction ID
1805
+ * @param data.region Region code for tenant context
1806
+ * @param data.requestBody
1807
+ * @returns unknown Match confirmed successfully
1587
1808
  * @throws ApiError
1588
1809
  */
1589
- public static expectedTransactionController2(
1590
- data: ExpectedTransactionController2Data
1591
- ): CancelablePromise<ExpectedTransactionController2Response> {
1810
+ public static expectedTransactionControllerConfirmMatch(
1811
+ data: ExpectedTransactionControllerConfirmMatchData
1812
+ ): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
1592
1813
  return __request(OpenAPI, {
1593
1814
  method: 'POST',
1594
1815
  url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
1595
1816
  path: {
1817
+ id: data.id,
1596
1818
  region: data.region
1819
+ },
1820
+ body: data.requestBody,
1821
+ mediaType: 'application/json',
1822
+ errors: {
1823
+ 400: 'Cannot match - not in PENDING status',
1824
+ 404: 'Expected or actual transaction not found',
1825
+ 409: 'Actual transaction already matched to another rule'
1597
1826
  }
1598
1827
  });
1599
1828
  }
1600
1829
 
1601
1830
  /**
1831
+ * Unmatch transaction
1832
+ * Removes the match between expected and actual transaction (COMPLETED -> PENDING)
1602
1833
  * @param data The data for the request.
1603
- * @param data.region Region code (cn, us, de)
1604
- * @returns unknown
1834
+ * @param data.id Expected transaction ID
1835
+ * @param data.region Region code for tenant context
1836
+ * @returns unknown Match removed successfully
1605
1837
  * @throws ApiError
1606
1838
  */
1607
- public static expectedTransactionController3(
1608
- data: ExpectedTransactionController3Data
1609
- ): CancelablePromise<ExpectedTransactionController3Response> {
1839
+ public static expectedTransactionControllerUnmatch(
1840
+ data: ExpectedTransactionControllerUnmatchData
1841
+ ): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
1610
1842
  return __request(OpenAPI, {
1611
1843
  method: 'DELETE',
1612
1844
  url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
1613
1845
  path: {
1846
+ id: data.id,
1614
1847
  region: data.region
1848
+ },
1849
+ errors: {
1850
+ 400: 'Cannot unmatch - not in COMPLETED status',
1851
+ 404: 'Expected transaction not found'
1615
1852
  }
1616
1853
  });
1617
1854
  }
1618
1855
 
1619
1856
  /**
1857
+ * Enter Now
1858
+ * Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
1620
1859
  * @param data The data for the request.
1621
- * @param data.region Region code (cn, us, de)
1622
- * @returns unknown
1860
+ * @param data.id Expected transaction ID
1861
+ * @param data.region Region code for tenant context
1862
+ * @param data.requestBody
1863
+ * @returns unknown Transaction created successfully
1623
1864
  * @throws ApiError
1624
1865
  */
1625
- public static expectedTransactionController4(
1626
- data: ExpectedTransactionController4Data
1627
- ): CancelablePromise<ExpectedTransactionController4Response> {
1866
+ public static expectedTransactionControllerEnterNow(
1867
+ data: ExpectedTransactionControllerEnterNowData
1868
+ ): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
1628
1869
  return __request(OpenAPI, {
1629
1870
  method: 'POST',
1630
1871
  url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
1631
1872
  path: {
1873
+ id: data.id,
1632
1874
  region: data.region
1875
+ },
1876
+ body: data.requestBody,
1877
+ mediaType: 'application/json',
1878
+ errors: {
1879
+ 400: 'Cannot enter - not in PENDING status or missing accounts',
1880
+ 404: 'Expected transaction or accounts not found'
1633
1881
  }
1634
1882
  });
1635
1883
  }
@@ -1640,7 +1888,7 @@ export class RecurringForecastService {
1640
1888
  * Get cash flow forecast
1641
1889
  * Returns predicted outflows for the next N months based on active recurring rules
1642
1890
  * @param data The data for the request.
1643
- * @param data.region Region code (cn, us, de)
1891
+ * @param data.region Region code for tenant context
1644
1892
  * @param data.months Number of months to forecast (1-12, default 3)
1645
1893
  * @returns ForecastResponseDto Forecast retrieved successfully
1646
1894
  * @throws ApiError
@@ -1663,19 +1911,29 @@ export class RecurringForecastService {
1663
1911
 
1664
1912
  export class BeanTransactionRulesService {
1665
1913
  /**
1914
+ * Create a new transaction rule (or upsert if upsertByPayee=true)
1915
+ * Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
1666
1916
  * @param data The data for the request.
1667
- * @param data.region Region code (cn, us, de)
1668
- * @returns unknown
1917
+ * @param data.region Region code for tenant context
1918
+ * @param data.requestBody
1919
+ * @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
1669
1920
  * @throws ApiError
1670
1921
  */
1671
- public static transactionRuleController(
1672
- data: TransactionRuleControllerData
1673
- ): CancelablePromise<TransactionRuleControllerResponse> {
1922
+ public static transactionRuleControllerCreate(
1923
+ data: TransactionRuleControllerCreateData
1924
+ ): CancelablePromise<TransactionRuleControllerCreateResponse> {
1674
1925
  return __request(OpenAPI, {
1675
1926
  method: 'POST',
1676
1927
  url: '/api/v1/{region}/bean/transaction-rules',
1677
1928
  path: {
1678
1929
  region: data.region
1930
+ },
1931
+ body: data.requestBody,
1932
+ mediaType: 'application/json',
1933
+ errors: {
1934
+ 400: 'Validation failed',
1935
+ 401: 'Unauthorized',
1936
+ 409: 'Resource conflict - another process is updating this rule'
1679
1937
  }
1680
1938
  });
1681
1939
  }
@@ -1683,7 +1941,7 @@ export class BeanTransactionRulesService {
1683
1941
  /**
1684
1942
  * Get all transaction rules for user
1685
1943
  * @param data The data for the request.
1686
- * @param data.region Region code (cn, us, de)
1944
+ * @param data.region Region code for tenant context
1687
1945
  * @param data.limit Max results per page (default: 20, max: 100)
1688
1946
  * @param data.offset Pagination offset (default: 0)
1689
1947
  * @param data.enabled Filter by enabled status
@@ -1717,7 +1975,7 @@ export class BeanTransactionRulesService {
1717
1975
  /**
1718
1976
  * Validate transaction rule configuration
1719
1977
  * @param data The data for the request.
1720
- * @param data.region Region code (cn, us, de)
1978
+ * @param data.region Region code for tenant context
1721
1979
  * @param data.requestBody
1722
1980
  * @returns ValidateRuleResponseDto Validation result
1723
1981
  * @throws ApiError
@@ -1734,25 +1992,34 @@ export class BeanTransactionRulesService {
1734
1992
  body: data.requestBody,
1735
1993
  mediaType: 'application/json',
1736
1994
  errors: {
1995
+ 400: 'Validation failed',
1737
1996
  401: 'Unauthorized'
1738
1997
  }
1739
1998
  });
1740
1999
  }
1741
2000
 
1742
2001
  /**
2002
+ * Bulk create transaction rules
1743
2003
  * @param data The data for the request.
1744
- * @param data.region Region code (cn, us, de)
1745
- * @returns unknown
2004
+ * @param data.region Region code for tenant context
2005
+ * @param data.requestBody
2006
+ * @returns BulkCreateRulesResponseDto Bulk create completed
1746
2007
  * @throws ApiError
1747
2008
  */
1748
- public static transactionRuleController1(
1749
- data: TransactionRuleController1Data
1750
- ): CancelablePromise<TransactionRuleController1Response> {
2009
+ public static transactionRuleControllerBulkCreate(
2010
+ data: TransactionRuleControllerBulkCreateData
2011
+ ): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
1751
2012
  return __request(OpenAPI, {
1752
2013
  method: 'POST',
1753
2014
  url: '/api/v1/{region}/bean/transaction-rules/bulk',
1754
2015
  path: {
1755
2016
  region: data.region
2017
+ },
2018
+ body: data.requestBody,
2019
+ mediaType: 'application/json',
2020
+ errors: {
2021
+ 400: 'Invalid bulk create data',
2022
+ 401: 'Unauthorized'
1756
2023
  }
1757
2024
  });
1758
2025
  }
@@ -1761,7 +2028,7 @@ export class BeanTransactionRulesService {
1761
2028
  * Export transaction rules
1762
2029
  * @param data The data for the request.
1763
2030
  * @param data.format Export format (currently only JSON supported)
1764
- * @param data.region Region code (cn, us, de)
2031
+ * @param data.region Region code for tenant context
1765
2032
  * @returns ExportRulesResponseDto Exported rules
1766
2033
  * @throws ApiError
1767
2034
  */
@@ -1786,7 +2053,7 @@ export class BeanTransactionRulesService {
1786
2053
  * Get transaction rule statistics
1787
2054
  * @param data The data for the request.
1788
2055
  * @param data.period Statistics time period
1789
- * @param data.region Region code (cn, us, de)
2056
+ * @param data.region Region code for tenant context
1790
2057
  * @returns RuleStatisticsResponseDto Rule statistics
1791
2058
  * @throws ApiError
1792
2059
  */
@@ -1810,7 +2077,7 @@ export class BeanTransactionRulesService {
1810
2077
  * Get transaction rule detail
1811
2078
  * @param data The data for the request.
1812
2079
  * @param data.ruleId Rule ID
1813
- * @param data.region Region code (cn, us, de)
2080
+ * @param data.region Region code for tenant context
1814
2081
  * @returns TransactionRuleResponseDto Rule details
1815
2082
  * @throws ApiError
1816
2083
  */
@@ -1833,37 +2100,59 @@ export class BeanTransactionRulesService {
1833
2100
  }
1834
2101
 
1835
2102
  /**
2103
+ * Update a transaction rule
1836
2104
  * @param data The data for the request.
1837
- * @param data.region Region code (cn, us, de)
1838
- * @returns unknown
2105
+ * @param data.ruleId Rule ID to update
2106
+ * @param data.region Region code for tenant context
2107
+ * @param data.requestBody
2108
+ * @returns TransactionRuleResponseDto Rule updated successfully
1839
2109
  * @throws ApiError
1840
2110
  */
1841
- public static transactionRuleController2(
1842
- data: TransactionRuleController2Data
1843
- ): CancelablePromise<TransactionRuleController2Response> {
2111
+ public static transactionRuleControllerUpdate(
2112
+ data: TransactionRuleControllerUpdateData
2113
+ ): CancelablePromise<TransactionRuleControllerUpdateResponse> {
1844
2114
  return __request(OpenAPI, {
1845
2115
  method: 'PUT',
1846
2116
  url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1847
2117
  path: {
2118
+ ruleId: data.ruleId,
1848
2119
  region: data.region
2120
+ },
2121
+ body: data.requestBody,
2122
+ mediaType: 'application/json',
2123
+ errors: {
2124
+ 400: 'Validation failed',
2125
+ 401: 'Unauthorized',
2126
+ 403: 'Forbidden - not owner of rule',
2127
+ 404: 'Rule not found',
2128
+ 409: 'Resource conflict - rule is being modified by another process'
1849
2129
  }
1850
2130
  });
1851
2131
  }
1852
2132
 
1853
2133
  /**
2134
+ * Delete a transaction rule
1854
2135
  * @param data The data for the request.
1855
- * @param data.region Region code (cn, us, de)
1856
- * @returns void
2136
+ * @param data.ruleId Rule ID to delete
2137
+ * @param data.region Region code for tenant context
2138
+ * @returns void Rule deleted successfully
1857
2139
  * @throws ApiError
1858
2140
  */
1859
- public static transactionRuleController3(
1860
- data: TransactionRuleController3Data
1861
- ): CancelablePromise<TransactionRuleController3Response> {
2141
+ public static transactionRuleControllerDelete(
2142
+ data: TransactionRuleControllerDeleteData
2143
+ ): CancelablePromise<TransactionRuleControllerDeleteResponse> {
1862
2144
  return __request(OpenAPI, {
1863
2145
  method: 'DELETE',
1864
2146
  url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1865
2147
  path: {
2148
+ ruleId: data.ruleId,
1866
2149
  region: data.region
2150
+ },
2151
+ errors: {
2152
+ 401: 'Unauthorized',
2153
+ 403: 'Forbidden - not owner of rule',
2154
+ 404: 'Rule not found',
2155
+ 409: 'Resource conflict - rule is being modified by another process'
1867
2156
  }
1868
2157
  });
1869
2158
  }
@@ -1872,7 +2161,7 @@ export class BeanTransactionRulesService {
1872
2161
  * Test rule matching
1873
2162
  * @param data The data for the request.
1874
2163
  * @param data.ruleId Rule ID to test
1875
- * @param data.region Region code (cn, us, de)
2164
+ * @param data.region Region code for tenant context
1876
2165
  * @param data.requestBody
1877
2166
  * @returns TestRuleResponseDto Test result
1878
2167
  * @throws ApiError
@@ -1902,7 +2191,6 @@ export class UsersService {
1902
2191
  /**
1903
2192
  * Delete own user account
1904
2193
  * @param data The data for the request.
1905
- * @param data.region Region code (cn, us, de)
1906
2194
  * @param data.requestBody
1907
2195
  * @returns void User deleted successfully
1908
2196
  * @throws ApiError
@@ -1913,9 +2201,6 @@ export class UsersService {
1913
2201
  return __request(OpenAPI, {
1914
2202
  method: 'DELETE',
1915
2203
  url: '/api/v1/users',
1916
- path: {
1917
- region: data.region
1918
- },
1919
2204
  body: data.requestBody,
1920
2205
  mediaType: 'application/json',
1921
2206
  errors: {
@@ -1928,7 +2213,6 @@ export class UsersService {
1928
2213
  * Get current authenticated user
1929
2214
  * @param data The data for the request.
1930
2215
  * @param data.acceptLanguage
1931
- * @param data.region Region code (cn, us, de)
1932
2216
  * @returns unknown User retrieved successfully
1933
2217
  * @throws ApiError
1934
2218
  */
@@ -1938,9 +2222,6 @@ export class UsersService {
1938
2222
  return __request(OpenAPI, {
1939
2223
  method: 'GET',
1940
2224
  url: '/api/v1/users',
1941
- path: {
1942
- region: data.region
1943
- },
1944
2225
  headers: {
1945
2226
  'accept-language': data.acceptLanguage
1946
2227
  }
@@ -1951,7 +2232,6 @@ export class UsersService {
1951
2232
  * Sign up new user
1952
2233
  * Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
1953
2234
  * @param data The data for the request.
1954
- * @param data.region Region code (cn, us, de)
1955
2235
  * @param data.requestBody
1956
2236
  * @returns unknown User created successfully
1957
2237
  * @throws ApiError
@@ -1962,9 +2242,6 @@ export class UsersService {
1962
2242
  return __request(OpenAPI, {
1963
2243
  method: 'POST',
1964
2244
  url: '/api/v1/users',
1965
- path: {
1966
- region: data.region
1967
- },
1968
2245
  body: data.requestBody,
1969
2246
  mediaType: 'application/json',
1970
2247
  errors: {
@@ -1978,7 +2255,6 @@ export class UsersService {
1978
2255
  * Delete user by ID (admin only)
1979
2256
  * @param data The data for the request.
1980
2257
  * @param data.id User ID to delete
1981
- * @param data.region Region code (cn, us, de)
1982
2258
  * @returns void User deleted successfully
1983
2259
  * @throws ApiError
1984
2260
  */
@@ -1989,8 +2265,7 @@ export class UsersService {
1989
2265
  method: 'DELETE',
1990
2266
  url: '/api/v1/users/{id}',
1991
2267
  path: {
1992
- id: data.id,
1993
- region: data.region
2268
+ id: data.id
1994
2269
  },
1995
2270
  errors: {
1996
2271
  403: 'Cannot delete own account or insufficient permissions'
@@ -2002,7 +2277,6 @@ export class UsersService {
2002
2277
  * Get user info by user ID
2003
2278
  * @param data The data for the request.
2004
2279
  * @param data.id User ID
2005
- * @param data.region Region code (cn, us, de)
2006
2280
  * @returns unknown User info retrieved successfully
2007
2281
  * @throws ApiError
2008
2282
  */
@@ -2013,8 +2287,7 @@ export class UsersService {
2013
2287
  method: 'GET',
2014
2288
  url: '/api/v1/users/{id}/info',
2015
2289
  path: {
2016
- id: data.id,
2017
- region: data.region
2290
+ id: data.id
2018
2291
  },
2019
2292
  errors: {
2020
2293
  403: 'Cannot access other user info without admin permission'
@@ -2025,7 +2298,6 @@ export class UsersService {
2025
2298
  /**
2026
2299
  * Update user settings
2027
2300
  * @param data The data for the request.
2028
- * @param data.region Region code (cn, us, de)
2029
2301
  * @param data.requestBody
2030
2302
  * @returns unknown Settings updated successfully
2031
2303
  * @throws ApiError
@@ -2036,9 +2308,6 @@ export class UsersService {
2036
2308
  return __request(OpenAPI, {
2037
2309
  method: 'PUT',
2038
2310
  url: '/api/v1/users/setting',
2039
- path: {
2040
- region: data.region
2041
- },
2042
2311
  body: data.requestBody,
2043
2312
  mediaType: 'application/json',
2044
2313
  errors: {
@@ -2052,7 +2321,6 @@ export class UsersService {
2052
2321
  * @param data The data for the request.
2053
2322
  * @param data.pageNo Page number
2054
2323
  * @param data.pageSize Page size
2055
- * @param data.region Region code (cn, us, de)
2056
2324
  * @returns unknown Settings list retrieved successfully
2057
2325
  * @throws ApiError
2058
2326
  */
@@ -2062,9 +2330,6 @@ export class UsersService {
2062
2330
  return __request(OpenAPI, {
2063
2331
  method: 'GET',
2064
2332
  url: '/api/v1/users/settings-by-page',
2065
- path: {
2066
- region: data.region
2067
- },
2068
2333
  query: {
2069
2334
  pageNo: data.pageNo,
2070
2335
  pageSize: data.pageSize
@@ -2074,20 +2339,13 @@ export class UsersService {
2074
2339
 
2075
2340
  /**
2076
2341
  * Get asset and liability summary for current user
2077
- * @param data The data for the request.
2078
- * @param data.region Region code (cn, us, de)
2079
2342
  * @returns unknown Summary retrieved successfully
2080
2343
  * @throws ApiError
2081
2344
  */
2082
- public static userControllerGetAssetLiabilitySummary(
2083
- data: UserControllerGetAssetLiabilitySummaryData
2084
- ): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
2345
+ public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
2085
2346
  return __request(OpenAPI, {
2086
2347
  method: 'GET',
2087
- url: '/api/v1/users/asset-liability-summary',
2088
- path: {
2089
- region: data.region
2090
- }
2348
+ url: '/api/v1/users/asset-liability-summary'
2091
2349
  });
2092
2350
  }
2093
2351
  }
@@ -2095,20 +2353,13 @@ export class UsersService {
2095
2353
  export class PropertiesService {
2096
2354
  /**
2097
2355
  * Get all system properties
2098
- * @param data The data for the request.
2099
- * @param data.region Region code (cn, us, de)
2100
2356
  * @returns unknown Properties retrieved successfully
2101
2357
  * @throws ApiError
2102
2358
  */
2103
- public static propertyControllerGetAll(
2104
- data: PropertyControllerGetAllData
2105
- ): CancelablePromise<PropertyControllerGetAllResponse> {
2359
+ public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
2106
2360
  return __request(OpenAPI, {
2107
2361
  method: 'GET',
2108
2362
  url: '/api/v1/admin/properties',
2109
- path: {
2110
- region: data.region
2111
- },
2112
2363
  errors: {
2113
2364
  401: 'Unauthorized',
2114
2365
  403: 'Forbidden - insufficient permissions'
@@ -2120,7 +2371,6 @@ export class PropertiesService {
2120
2371
  * Get property by key
2121
2372
  * @param data The data for the request.
2122
2373
  * @param data.key Property key
2123
- * @param data.region Region code (cn, us, de)
2124
2374
  * @returns unknown Property retrieved successfully
2125
2375
  * @throws ApiError
2126
2376
  */
@@ -2131,8 +2381,7 @@ export class PropertiesService {
2131
2381
  method: 'GET',
2132
2382
  url: '/api/v1/admin/properties/{key}',
2133
2383
  path: {
2134
- key: data.key,
2135
- region: data.region
2384
+ key: data.key
2136
2385
  },
2137
2386
  errors: {
2138
2387
  401: 'Unauthorized',
@@ -2143,48 +2392,77 @@ export class PropertiesService {
2143
2392
  }
2144
2393
 
2145
2394
  /**
2395
+ * Update a system property
2146
2396
  * @param data The data for the request.
2147
- * @param data.region Region code (cn, us, de)
2148
- * @returns unknown
2397
+ * @param data.key Property key
2398
+ * @param data.requestBody
2399
+ * @returns unknown Property updated successfully
2149
2400
  * @throws ApiError
2150
2401
  */
2151
- public static propertyController(
2152
- data: PropertyControllerData
2153
- ): CancelablePromise<PropertyControllerResponse> {
2402
+ public static propertyControllerUpdate(
2403
+ data: PropertyControllerUpdateData
2404
+ ): CancelablePromise<PropertyControllerUpdateResponse> {
2154
2405
  return __request(OpenAPI, {
2155
2406
  method: 'PUT',
2156
2407
  url: '/api/v1/admin/properties/{key}',
2157
2408
  path: {
2158
- region: data.region
2409
+ key: data.key
2410
+ },
2411
+ body: data.requestBody,
2412
+ mediaType: 'application/json',
2413
+ errors: {
2414
+ 401: 'Unauthorized',
2415
+ 403: 'Forbidden - insufficient permissions'
2159
2416
  }
2160
2417
  });
2161
2418
  }
2162
2419
 
2163
2420
  /**
2421
+ * Delete a system property
2164
2422
  * @param data The data for the request.
2165
- * @param data.region Region code (cn, us, de)
2166
- * @returns void
2423
+ * @param data.key Property key
2424
+ * @returns void Property deleted successfully
2167
2425
  * @throws ApiError
2168
2426
  */
2169
- public static propertyController1(
2170
- data: PropertyController1Data
2171
- ): CancelablePromise<PropertyController1Response> {
2427
+ public static propertyControllerDelete(
2428
+ data: PropertyControllerDeleteData
2429
+ ): CancelablePromise<PropertyControllerDeleteResponse> {
2172
2430
  return __request(OpenAPI, {
2173
2431
  method: 'DELETE',
2174
2432
  url: '/api/v1/admin/properties/{key}',
2175
2433
  path: {
2176
- region: data.region
2434
+ key: data.key
2435
+ },
2436
+ errors: {
2437
+ 401: 'Unauthorized',
2438
+ 403: 'Forbidden - insufficient permissions',
2439
+ 404: 'Property not found'
2177
2440
  }
2178
2441
  });
2179
2442
  }
2180
2443
  }
2181
2444
 
2445
+ export class BeanExportService {
2446
+ /**
2447
+ * Export Beancount ledger as ZIP
2448
+ * Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
2449
+ * @returns unknown
2450
+ * @throws ApiError
2451
+ */
2452
+ public static exportControllerExportBeancount(): CancelablePromise<ExportControllerExportBeancountResponse> {
2453
+ return __request(OpenAPI, {
2454
+ method: 'GET',
2455
+ url: '/api/v1/{region}/bean/export/beancount'
2456
+ });
2457
+ }
2458
+ }
2459
+
2182
2460
  export class BeanImportService {
2183
2461
  /**
2184
2462
  * Import a bill file
2185
2463
  * 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
2464
  * @param data The data for the request.
2187
- * @param data.region Region code (cn, us, de)
2465
+ * @param data.region Region code for tenant context
2188
2466
  * @param data.formData Bill file to import
2189
2467
  * @returns ImportResultDto File imported successfully
2190
2468
  * @throws ApiError
@@ -2213,7 +2491,7 @@ export class BeanImportService {
2213
2491
  * Identify file type
2214
2492
  * 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
2493
  * @param data The data for the request.
2216
- * @param data.region Region code (cn, us, de)
2494
+ * @param data.region Region code for tenant context
2217
2495
  * @param data.formData File to identify
2218
2496
  * @returns IdentifyResultDto File identification result
2219
2497
  * @throws ApiError
@@ -2235,12 +2513,38 @@ export class BeanImportService {
2235
2513
  });
2236
2514
  }
2237
2515
 
2516
+ /**
2517
+ * Import a Beancount file in community format
2518
+ * 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.
2519
+ * @param data The data for the request.
2520
+ * @param data.region Region code for tenant context
2521
+ * @param data.formData Beancount file to import
2522
+ * @returns unknown Beancount file imported successfully
2523
+ * @throws ApiError
2524
+ */
2525
+ public static fileImportControllerImportBeancount(
2526
+ data: FileImportControllerImportBeancountData
2527
+ ): CancelablePromise<FileImportControllerImportBeancountResponse> {
2528
+ return __request(OpenAPI, {
2529
+ method: 'POST',
2530
+ url: '/api/v1/{region}/bean/import/beancount',
2531
+ path: {
2532
+ region: data.region
2533
+ },
2534
+ formData: data.formData,
2535
+ mediaType: 'multipart/form-data',
2536
+ errors: {
2537
+ 400: 'Bad request - invalid file or no file uploaded'
2538
+ }
2539
+ });
2540
+ }
2541
+
2238
2542
  /**
2239
2543
  * Get importer configuration
2240
2544
  * Returns the current configuration for the specified importer. Creates default configuration if none exists.
2241
2545
  * @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)
2546
+ * @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
2547
+ * @param data.region Region code for tenant context
2244
2548
  * @returns ImporterConfigDto Configuration retrieved successfully
2245
2549
  * @throws ApiError
2246
2550
  */
@@ -2262,40 +2566,173 @@ export class BeanImportService {
2262
2566
  }
2263
2567
 
2264
2568
  /**
2569
+ * Update importer configuration
2570
+ * Updates the configuration for the specified importer. Partial updates are supported.
2265
2571
  * @param data The data for the request.
2266
- * @param data.region Region code (cn, us, de)
2267
- * @returns unknown
2572
+ * @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
2573
+ * @param data.region Region code for tenant context
2574
+ * @param data.requestBody Partial configuration update. Only provided fields will be updated.
2575
+ * @returns ImporterConfigDto Configuration updated successfully
2268
2576
  * @throws ApiError
2269
2577
  */
2270
- public static importerConfigController(
2271
- data: ImporterConfigControllerData
2272
- ): CancelablePromise<ImporterConfigControllerResponse> {
2578
+ public static importerConfigControllerUpdateConfig(
2579
+ data: ImporterConfigControllerUpdateConfigData
2580
+ ): CancelablePromise<ImporterConfigControllerUpdateConfigResponse> {
2273
2581
  return __request(OpenAPI, {
2274
2582
  method: 'PUT',
2275
2583
  url: '/api/v1/{region}/bean/import/config/{importerId}',
2276
2584
  path: {
2585
+ importerId: data.importerId,
2277
2586
  region: data.region
2587
+ },
2588
+ body: data.requestBody,
2589
+ mediaType: 'application/json',
2590
+ errors: {
2591
+ 400: 'Invalid input - Validation failed',
2592
+ 404: 'Configuration not found'
2278
2593
  }
2279
2594
  });
2280
2595
  }
2281
2596
 
2282
2597
  /**
2598
+ * Reset configuration to default
2599
+ * Resets the configuration for the specified importer to default values. This operation overwrites all existing configuration.
2283
2600
  * @param data The data for the request.
2284
- * @param data.region Region code (cn, us, de)
2285
- * @returns unknown
2601
+ * @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
2602
+ * @param data.region Region code for tenant context
2603
+ * @returns ImporterConfigDto Configuration reset successfully
2286
2604
  * @throws ApiError
2287
2605
  */
2288
- public static importerConfigController1(
2289
- data: ImporterConfigController1Data
2290
- ): CancelablePromise<ImporterConfigController1Response> {
2606
+ public static importerConfigControllerResetConfig(
2607
+ data: ImporterConfigControllerResetConfigData
2608
+ ): CancelablePromise<ImporterConfigControllerResetConfigResponse> {
2291
2609
  return __request(OpenAPI, {
2292
2610
  method: 'POST',
2293
2611
  url: '/api/v1/{region}/bean/import/config/{importerId}/reset',
2294
2612
  path: {
2613
+ importerId: data.importerId,
2614
+ region: data.region
2615
+ },
2616
+ errors: {
2617
+ 400: 'Invalid input - Unsupported importer'
2618
+ }
2619
+ });
2620
+ }
2621
+ }
2622
+
2623
+ export class BeanPlatformsService {
2624
+ /**
2625
+ * Get all platforms with statistics
2626
+ * @returns unknown List of platforms with binding and account counts
2627
+ * @throws ApiError
2628
+ */
2629
+ public static platformControllerFindAll(): CancelablePromise<PlatformControllerFindAllResponse> {
2630
+ return __request(OpenAPI, {
2631
+ method: 'GET',
2632
+ url: '/api/v1/bean/platforms'
2633
+ });
2634
+ }
2635
+
2636
+ /**
2637
+ * Create a new platform
2638
+ * @param data The data for the request.
2639
+ * @param data.requestBody
2640
+ * @returns unknown Platform created successfully
2641
+ * @throws ApiError
2642
+ */
2643
+ public static platformControllerCreate(
2644
+ data: PlatformControllerCreateData
2645
+ ): CancelablePromise<PlatformControllerCreateResponse> {
2646
+ return __request(OpenAPI, {
2647
+ method: 'POST',
2648
+ url: '/api/v1/bean/platforms',
2649
+ body: data.requestBody,
2650
+ mediaType: 'application/json',
2651
+ errors: {
2652
+ 409: 'Platform already exists'
2653
+ }
2654
+ });
2655
+ }
2656
+
2657
+ /**
2658
+ * Get platform list for current user
2659
+ * @returns unknown List of platforms with user binding status
2660
+ * @throws ApiError
2661
+ */
2662
+ public static platformControllerGetPlatformList(): CancelablePromise<PlatformControllerGetPlatformListResponse> {
2663
+ return __request(OpenAPI, {
2664
+ method: 'GET',
2665
+ url: '/api/v1/bean/platforms/list'
2666
+ });
2667
+ }
2668
+
2669
+ /**
2670
+ * Match platforms by name or alias
2671
+ * @param data The data for the request.
2672
+ * @param data.q Search query — Chinese name, English name, or abbreviation
2673
+ * @param data.region Region code for category override lookup
2674
+ * @returns unknown List of matching platforms with suggested segment names
2675
+ * @throws ApiError
2676
+ */
2677
+ public static platformControllerMatchPlatforms(
2678
+ data: PlatformControllerMatchPlatformsData
2679
+ ): CancelablePromise<PlatformControllerMatchPlatformsResponse> {
2680
+ return __request(OpenAPI, {
2681
+ method: 'GET',
2682
+ url: '/api/v1/bean/platforms/match',
2683
+ query: {
2684
+ q: data.q,
2295
2685
  region: data.region
2296
2686
  }
2297
2687
  });
2298
2688
  }
2689
+
2690
+ /**
2691
+ * Update a platform
2692
+ * @param data The data for the request.
2693
+ * @param data.id Platform ID
2694
+ * @param data.requestBody
2695
+ * @returns unknown Platform updated successfully
2696
+ * @throws ApiError
2697
+ */
2698
+ public static platformControllerUpdate(
2699
+ data: PlatformControllerUpdateData
2700
+ ): CancelablePromise<PlatformControllerUpdateResponse> {
2701
+ return __request(OpenAPI, {
2702
+ method: 'PUT',
2703
+ url: '/api/v1/bean/platforms/{id}',
2704
+ path: {
2705
+ id: data.id
2706
+ },
2707
+ body: data.requestBody,
2708
+ mediaType: 'application/json',
2709
+ errors: {
2710
+ 404: 'Platform not found'
2711
+ }
2712
+ });
2713
+ }
2714
+
2715
+ /**
2716
+ * Delete a platform
2717
+ * @param data The data for the request.
2718
+ * @param data.id Platform ID
2719
+ * @returns void Platform deleted successfully
2720
+ * @throws ApiError
2721
+ */
2722
+ public static platformControllerDelete(
2723
+ data: PlatformControllerDeleteData
2724
+ ): CancelablePromise<PlatformControllerDeleteResponse> {
2725
+ return __request(OpenAPI, {
2726
+ method: 'DELETE',
2727
+ url: '/api/v1/bean/platforms/{id}',
2728
+ path: {
2729
+ id: data.id
2730
+ },
2731
+ errors: {
2732
+ 404: 'Platform not found'
2733
+ }
2734
+ });
2735
+ }
2299
2736
  }
2300
2737
 
2301
2738
  export class ProviderSyncService {
@@ -2353,7 +2790,7 @@ export class ProviderSyncService {
2353
2790
  * Get supported providers
2354
2791
  * Returns a list of all providers supported by the sync endpoint.
2355
2792
  * @param data The data for the request.
2356
- * @param data.region Region code (cn, us, de)
2793
+ * @param data.region Region code for tenant context
2357
2794
  * @returns SupportedProvidersResponseDto List of supported providers
2358
2795
  * @throws ApiError
2359
2796
  */
@@ -2377,7 +2814,7 @@ export class ProviderSyncService {
2377
2814
  * Returns whether a specific provider is supported.
2378
2815
  * @param data The data for the request.
2379
2816
  * @param data.providerName Provider name to check
2380
- * @param data.region Region code (cn, us, de)
2817
+ * @param data.region Region code for tenant context
2381
2818
  * @returns unknown Provider support status
2382
2819
  * @throws ApiError
2383
2820
  */
@@ -2402,7 +2839,7 @@ export class ImportTelemetryService {
2402
2839
  /**
2403
2840
  * Receive anonymous parser failure telemetry
2404
2841
  * @param data The data for the request.
2405
- * @param data.region Region code (cn, us, de)
2842
+ * @param data.region Region code for tenant context
2406
2843
  * @param data.requestBody
2407
2844
  * @returns unknown Telemetry report received
2408
2845
  * @throws ApiError
@@ -2430,7 +2867,7 @@ export class BeanNlpService {
2430
2867
  * Process natural language input
2431
2868
  * 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
2869
  * @param data The data for the request.
2433
- * @param data.region Region code (cn, us, de)
2870
+ * @param data.region Region code for tenant context
2434
2871
  * @param data.requestBody Natural language transaction input with optional session ID
2435
2872
  * @returns NlpResponseDto NLP processing result - either created transaction or asking for more info
2436
2873
  * @throws ApiError
@@ -2457,7 +2894,7 @@ export class BeanNlpService {
2457
2894
  * Clear dialogue session
2458
2895
  * Clear the current NLP dialogue session. Use this to cancel an ongoing multi-turn dialogue.
2459
2896
  * @param data The data for the request.
2460
- * @param data.region Region code (cn, us, de)
2897
+ * @param data.region Region code for tenant context
2461
2898
  * @param data.sessionId Specific session ID to clear (defaults to user session)
2462
2899
  * @returns void Session cleared successfully
2463
2900
  * @throws ApiError
@@ -2484,7 +2921,7 @@ export class BeanNlpService {
2484
2921
  * Get current session state
2485
2922
  * Get the current NLP dialogue session state. Useful for debugging and displaying session context in UI.
2486
2923
  * @param data The data for the request.
2487
- * @param data.region Region code (cn, us, de)
2924
+ * @param data.region Region code for tenant context
2488
2925
  * @param data.sessionId Specific session ID to get (defaults to user session)
2489
2926
  * @returns unknown Current session state (or null if no active session)
2490
2927
  * @throws ApiError
@@ -2508,348 +2945,117 @@ export class BeanNlpService {
2508
2945
  }
2509
2946
  }
2510
2947
 
2511
- export class BeanPlatformsService {
2948
+ export class DashboardService {
2512
2949
  /**
2513
- * Get all platforms with statistics
2950
+ * Get net worth overview
2951
+ * Returns total net worth with breakdown of assets and liabilities
2514
2952
  * @param data The data for the request.
2515
- * @param data.region Region code (cn, us, de)
2516
- * @returns unknown List of platforms with binding and account counts
2953
+ * @param data.region Region code for tenant context
2954
+ * @param data.date Date for balance calculation (ISO 8601 format)
2955
+ * @returns NetWorthResponseDto Net worth retrieved successfully
2517
2956
  * @throws ApiError
2518
2957
  */
2519
- public static platformControllerFindAll(
2520
- data: PlatformControllerFindAllData
2521
- ): CancelablePromise<PlatformControllerFindAllResponse> {
2958
+ public static dashboardControllerGetNetWorth(
2959
+ data: DashboardControllerGetNetWorthData
2960
+ ): CancelablePromise<DashboardControllerGetNetWorthResponse> {
2522
2961
  return __request(OpenAPI, {
2523
2962
  method: 'GET',
2524
- url: '/api/v1/bean/platforms',
2963
+ url: '/api/v1/{region}/dashboard/net-worth',
2525
2964
  path: {
2526
2965
  region: data.region
2966
+ },
2967
+ query: {
2968
+ date: data.date
2969
+ },
2970
+ errors: {
2971
+ 401: 'User not authenticated'
2527
2972
  }
2528
2973
  });
2529
2974
  }
2530
2975
 
2531
2976
  /**
2977
+ * Get accounts grouped by platform
2978
+ * Returns accounts with balances grouped by financial platform
2532
2979
  * @param data The data for the request.
2533
- * @param data.region Region code (cn, us, de)
2534
- * @returns unknown
2980
+ * @param data.region Region code for tenant context
2981
+ * @param data.groupBy Grouping strategy
2982
+ * @param data.date Date for balance calculation (ISO 8601 format)
2983
+ * @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
2535
2984
  * @throws ApiError
2536
2985
  */
2537
- public static platformController(
2538
- data: PlatformControllerData
2539
- ): CancelablePromise<PlatformControllerResponse> {
2986
+ public static dashboardControllerGetAccounts(
2987
+ data: DashboardControllerGetAccountsData
2988
+ ): CancelablePromise<DashboardControllerGetAccountsResponse> {
2540
2989
  return __request(OpenAPI, {
2541
- method: 'POST',
2542
- url: '/api/v1/bean/platforms',
2990
+ method: 'GET',
2991
+ url: '/api/v1/{region}/dashboard/accounts',
2543
2992
  path: {
2544
2993
  region: data.region
2994
+ },
2995
+ query: {
2996
+ groupBy: data.groupBy,
2997
+ date: data.date
2998
+ },
2999
+ errors: {
3000
+ 401: 'User not authenticated'
2545
3001
  }
2546
3002
  });
2547
3003
  }
2548
3004
 
2549
3005
  /**
2550
- * Get platform list for current user
3006
+ * Get cash flow summary
3007
+ * Returns income, expenses, and savings for a monthly period
2551
3008
  * @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
3009
+ * @param data.period Period in YYYY-MM format
3010
+ * @param data.region Region code for tenant context
3011
+ * @returns CashFlowResponseDto Cash flow retrieved successfully
2554
3012
  * @throws ApiError
2555
3013
  */
2556
- public static platformControllerGetPlatformList(
2557
- data: PlatformControllerGetPlatformListData
2558
- ): CancelablePromise<PlatformControllerGetPlatformListResponse> {
3014
+ public static dashboardControllerGetCashFlow(
3015
+ data: DashboardControllerGetCashFlowData
3016
+ ): CancelablePromise<DashboardControllerGetCashFlowResponse> {
2559
3017
  return __request(OpenAPI, {
2560
3018
  method: 'GET',
2561
- url: '/api/v1/bean/platforms/list',
3019
+ url: '/api/v1/{region}/dashboard/cash-flow',
2562
3020
  path: {
2563
3021
  region: data.region
3022
+ },
3023
+ query: {
3024
+ period: data.period
3025
+ },
3026
+ errors: {
3027
+ 400: 'Invalid period format',
3028
+ 401: 'User not authenticated'
2564
3029
  }
2565
3030
  });
2566
3031
  }
3032
+ }
2567
3033
 
3034
+ export class ReportingService {
2568
3035
  /**
3036
+ * Get portfolio value trends
3037
+ *
3038
+ * Returns time series data of portfolio net worth.
3039
+ *
3040
+ * **Multi-currency Support:**
3041
+ * - `series[].byCurrency` - Currency breakdown for each data point
3042
+ * - `byCurrency` - Separate time series grouped by currency
3043
+ * - `warnings` - Exchange rate warnings if conversion failed
3044
+ *
3045
+ * **Parameters:**
3046
+ * - `period`: Time period (1m, 3m, 6m, 1y)
3047
+ * - `granularity`: Data granularity (day, week, month)
3048
+ *
2569
3049
  * @param data The data for the request.
2570
- * @param data.region Region code (cn, us, de)
2571
- * @returns unknown
3050
+ * @param data.region Region code for tenant context
3051
+ * @param data.period Time period
3052
+ * @param data.granularity Data granularity
3053
+ * @returns PortfolioTrendsResponseDto Trends retrieved successfully
2572
3054
  * @throws ApiError
2573
3055
  */
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
- }
2601
- });
2602
- }
2603
- }
2604
-
2605
- export class SymbolsService {
2606
- /**
2607
- * Search for symbols
2608
- * Search symbols by query with optional filters for asset class, area, and indices
2609
- * @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
2617
- * @throws ApiError
2618
- */
2619
- public static symbolControllerLookupSymbol(
2620
- data: SymbolControllerLookupSymbolData
2621
- ): CancelablePromise<SymbolControllerLookupSymbolResponse> {
2622
- return __request(OpenAPI, {
2623
- method: 'GET',
2624
- url: '/api/v1/market/symbols/lookup',
2625
- path: {
2626
- region: data.region
2627
- },
2628
- 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'
2637
- }
2638
- });
2639
- }
2640
-
2641
- /**
2642
- * Get symbol data
2643
- * Retrieve detailed symbol information including optional historical data
2644
- * @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
2650
- * @throws ApiError
2651
- */
2652
- public static symbolControllerGetSymbolData(
2653
- data: SymbolControllerGetSymbolDataData
2654
- ): CancelablePromise<SymbolControllerGetSymbolDataResponse> {
2655
- return __request(OpenAPI, {
2656
- method: 'GET',
2657
- url: '/api/v1/market/symbols/{dataSource}/{symbol}',
2658
- path: {
2659
- dataSource: data.dataSource,
2660
- symbol: data.symbol,
2661
- region: data.region
2662
- },
2663
- query: {
2664
- includeHistoricalData: data.includeHistoricalData
2665
- },
2666
- errors: {
2667
- 400: 'Invalid data source',
2668
- 404: 'Symbol not found'
2669
- }
2670
- });
2671
- }
2672
-
2673
- /**
2674
- * Gather symbol data for specific date
2675
- * Retrieve historical symbol data for a specific date
2676
- * @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
2682
- * @throws ApiError
2683
- */
2684
- public static symbolControllerGatherSymbolForDate(
2685
- data: SymbolControllerGatherSymbolForDateData
2686
- ): CancelablePromise<SymbolControllerGatherSymbolForDateResponse> {
2687
- return __request(OpenAPI, {
2688
- method: 'GET',
2689
- url: '/api/v1/market/symbols/{dataSource}/{symbol}/{dateString}',
2690
- path: {
2691
- dataSource: data.dataSource,
2692
- dateString: data.dateString,
2693
- symbol: data.symbol,
2694
- region: data.region
2695
- },
2696
- 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
2737
- }
2738
- });
2739
- }
2740
- }
2741
-
2742
- export class DashboardService {
2743
- /**
2744
- * Get net worth overview
2745
- * Returns total net worth with breakdown of assets and liabilities
2746
- * @param data The data for the request.
2747
- * @param data.region Region code (cn, us, de)
2748
- * @param data.date Date for balance calculation (ISO 8601 format)
2749
- * @returns NetWorthResponseDto Net worth retrieved successfully
2750
- * @throws ApiError
2751
- */
2752
- public static dashboardControllerGetNetWorth(
2753
- data: DashboardControllerGetNetWorthData
2754
- ): CancelablePromise<DashboardControllerGetNetWorthResponse> {
2755
- return __request(OpenAPI, {
2756
- method: 'GET',
2757
- url: '/api/v1/{region}/dashboard/net-worth',
2758
- path: {
2759
- region: data.region
2760
- },
2761
- query: {
2762
- date: data.date
2763
- },
2764
- errors: {
2765
- 401: 'User not authenticated'
2766
- }
2767
- });
2768
- }
2769
-
2770
- /**
2771
- * Get accounts grouped by platform
2772
- * Returns accounts with balances grouped by financial platform
2773
- * @param data The data for the request.
2774
- * @param data.region Region code (cn, us, de)
2775
- * @param data.groupBy Grouping strategy
2776
- * @param data.date Date for balance calculation (ISO 8601 format)
2777
- * @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
2778
- * @throws ApiError
2779
- */
2780
- public static dashboardControllerGetAccounts(
2781
- data: DashboardControllerGetAccountsData
2782
- ): CancelablePromise<DashboardControllerGetAccountsResponse> {
2783
- return __request(OpenAPI, {
2784
- method: 'GET',
2785
- url: '/api/v1/{region}/dashboard/accounts',
2786
- path: {
2787
- region: data.region
2788
- },
2789
- query: {
2790
- 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
- *
2843
- * @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
2848
- * @throws ApiError
2849
- */
2850
- public static reportingControllerGetPortfolioTrends(
2851
- data: ReportingControllerGetPortfolioTrendsData
2852
- ): CancelablePromise<ReportingControllerGetPortfolioTrendsResponse> {
3056
+ public static reportingControllerGetPortfolioTrends(
3057
+ data: ReportingControllerGetPortfolioTrendsData
3058
+ ): CancelablePromise<ReportingControllerGetPortfolioTrendsResponse> {
2853
3059
  return __request(OpenAPI, {
2854
3060
  method: 'GET',
2855
3061
  url: '/api/v1/{region}/reporting/portfolio/trends',
@@ -2882,7 +3088,7 @@ export class ReportingService {
2882
3088
  * - Initial setup for new users
2883
3089
  *
2884
3090
  * @param data The data for the request.
2885
- * @param data.region Region code (cn, us, de)
3091
+ * @param data.region Region code for tenant context
2886
3092
  * @param data.requestBody Optional date (defaults to today)
2887
3093
  * @returns GenerateSnapshotResponse Snapshot generated successfully
2888
3094
  * @throws ApiError
@@ -2921,7 +3127,7 @@ export class ReportingService {
2921
3127
  * - Existing snapshots are skipped (not regenerated)
2922
3128
  *
2923
3129
  * @param data The data for the request.
2924
- * @param data.region Region code (cn, us, de)
3130
+ * @param data.region Region code for tenant context
2925
3131
  * @param data.requestBody
2926
3132
  * @returns BackfillSnapshotsResponse Backfill completed successfully
2927
3133
  * @throws ApiError
@@ -2948,19 +3154,17 @@ export class ReportingService {
2948
3154
 
2949
3155
  export class ApiKeysService {
2950
3156
  /**
2951
- * @param data The data for the request.
2952
- * @param data.region Region code (cn, us, de)
2953
- * @returns unknown
3157
+ * Create API key
3158
+ * Generates a new API key for the authenticated user
3159
+ * @returns unknown API key created successfully
2954
3160
  * @throws ApiError
2955
3161
  */
2956
- public static apiKeysController(
2957
- data: ApiKeysControllerData
2958
- ): CancelablePromise<ApiKeysControllerResponse> {
3162
+ public static apiKeysControllerCreateApiKey(): CancelablePromise<ApiKeysControllerCreateApiKeyResponse> {
2959
3163
  return __request(OpenAPI, {
2960
3164
  method: 'POST',
2961
3165
  url: '/api/v1/auth/api-keys',
2962
- path: {
2963
- region: data.region
3166
+ errors: {
3167
+ 403: 'Insufficient permissions to create API key'
2964
3168
  }
2965
3169
  });
2966
3170
  }
@@ -2970,7 +3174,6 @@ export class AuthService {
2970
3174
  /**
2971
3175
  * Anonymous login with access token
2972
3176
  * @param data The data for the request.
2973
- * @param data.region Region code (cn, us, de)
2974
3177
  * @param data.requestBody
2975
3178
  * @returns unknown Login successful
2976
3179
  * @throws ApiError
@@ -2981,9 +3184,6 @@ export class AuthService {
2981
3184
  return __request(OpenAPI, {
2982
3185
  method: 'POST',
2983
3186
  url: '/api/v1/auth/sessions/anonymous',
2984
- path: {
2985
- region: data.region
2986
- },
2987
3187
  body: data.requestBody,
2988
3188
  mediaType: 'application/json',
2989
3189
  errors: {
@@ -2993,6 +3193,19 @@ export class AuthService {
2993
3193
  }
2994
3194
  }
2995
3195
 
3196
+ export class DefaultService {
3197
+ /**
3198
+ * @returns unknown
3199
+ * @throws ApiError
3200
+ */
3201
+ public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
3202
+ return __request(OpenAPI, {
3203
+ method: 'POST',
3204
+ url: '/api/v1/cache/flush'
3205
+ });
3206
+ }
3207
+ }
3208
+
2996
3209
  export class ExchangeRateService {
2997
3210
  /**
2998
3211
  * Get exchange rate for currency pair
@@ -3000,7 +3213,6 @@ export class ExchangeRateService {
3000
3213
  * @param data The data for the request.
3001
3214
  * @param data.symbol Currency pair symbol (e.g., USDCNY, EURUSD)
3002
3215
  * @param data.dateString Date in ISO format (YYYY-MM-DD)
3003
- * @param data.region Region code (cn, us, de)
3004
3216
  * @returns unknown Exchange rate retrieved successfully
3005
3217
  * @throws ApiError
3006
3218
  */
@@ -3012,8 +3224,7 @@ export class ExchangeRateService {
3012
3224
  url: '/api/v1/market/exchange-rates/{symbol}/{dateString}',
3013
3225
  path: {
3014
3226
  symbol: data.symbol,
3015
- dateString: data.dateString,
3016
- region: data.region
3227
+ dateString: data.dateString
3017
3228
  },
3018
3229
  errors: {
3019
3230
  404: 'Exchange rate not found for the specified currency pair and date'
@@ -3025,20 +3236,13 @@ export class ExchangeRateService {
3025
3236
  export class HealthService {
3026
3237
  /**
3027
3238
  * 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
3239
  * @returns unknown Service is healthy
3031
3240
  * @throws ApiError
3032
3241
  */
3033
- public static healthControllerGetHealth(
3034
- data: HealthControllerGetHealthData
3035
- ): CancelablePromise<HealthControllerGetHealthResponse> {
3242
+ public static healthControllerGetHealth(): CancelablePromise<HealthControllerGetHealthResponse> {
3036
3243
  return __request(OpenAPI, {
3037
3244
  method: 'GET',
3038
3245
  url: '/api/v1/health',
3039
- path: {
3040
- region: data.region
3041
- },
3042
3246
  errors: {
3043
3247
  503: 'Service unavailable'
3044
3248
  }
@@ -3047,42 +3251,43 @@ export class HealthService {
3047
3251
 
3048
3252
  /**
3049
3253
  * Check database connection health
3050
- * @param data The data for the request.
3051
- * @param data.region Region code (cn, us, de)
3052
3254
  * @returns unknown Database is healthy
3053
3255
  * @throws ApiError
3054
3256
  */
3055
- public static healthControllerCheckDatabase(
3056
- data: HealthControllerCheckDatabaseData
3057
- ): CancelablePromise<HealthControllerCheckDatabaseResponse> {
3257
+ public static healthControllerCheckDatabase(): CancelablePromise<HealthControllerCheckDatabaseResponse> {
3058
3258
  return __request(OpenAPI, {
3059
3259
  method: 'GET',
3060
3260
  url: '/api/v1/health/database',
3061
- path: {
3062
- region: data.region
3063
- },
3064
3261
  errors: {
3065
3262
  503: 'Database unavailable'
3066
3263
  }
3067
3264
  });
3068
3265
  }
3069
3266
 
3267
+ /**
3268
+ * Check OpenBB schema status
3269
+ * @returns unknown OpenBB status
3270
+ * @throws ApiError
3271
+ */
3272
+ public static healthControllerCheckOpenBb(): CancelablePromise<HealthControllerCheckOpenBbResponse> {
3273
+ return __request(OpenAPI, {
3274
+ method: 'GET',
3275
+ url: '/api/v1/health/openbb',
3276
+ errors: {
3277
+ 503: 'OpenBB unavailable'
3278
+ }
3279
+ });
3280
+ }
3281
+
3070
3282
  /**
3071
3283
  * Check Redis connection health
3072
- * @param data The data for the request.
3073
- * @param data.region Region code (cn, us, de)
3074
3284
  * @returns unknown Redis is healthy
3075
3285
  * @throws ApiError
3076
3286
  */
3077
- public static healthControllerCheckRedis(
3078
- data: HealthControllerCheckRedisData
3079
- ): CancelablePromise<HealthControllerCheckRedisResponse> {
3287
+ public static healthControllerCheckRedis(): CancelablePromise<HealthControllerCheckRedisResponse> {
3080
3288
  return __request(OpenAPI, {
3081
3289
  method: 'GET',
3082
3290
  url: '/api/v1/health/redis',
3083
- path: {
3084
- region: data.region
3085
- },
3086
3291
  errors: {
3087
3292
  503: 'Redis unavailable'
3088
3293
  }
@@ -3091,20 +3296,13 @@ export class HealthService {
3091
3296
 
3092
3297
  /**
3093
3298
  * Get status of all circuit breakers
3094
- * @param data The data for the request.
3095
- * @param data.region Region code (cn, us, de)
3096
3299
  * @returns unknown Circuit breaker status
3097
3300
  * @throws ApiError
3098
3301
  */
3099
- public static healthControllerGetCircuitBreakersHealth(
3100
- data: HealthControllerGetCircuitBreakersHealthData
3101
- ): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
3302
+ public static healthControllerGetCircuitBreakersHealth(): CancelablePromise<HealthControllerGetCircuitBreakersHealthResponse> {
3102
3303
  return __request(OpenAPI, {
3103
3304
  method: 'GET',
3104
3305
  url: '/api/v1/health/circuit-breakers',
3105
- path: {
3106
- region: data.region
3107
- },
3108
3306
  errors: {
3109
3307
  401: 'Unauthorized',
3110
3308
  500: 'Internal error'
@@ -3116,7 +3314,6 @@ export class HealthService {
3116
3314
  * Reset a circuit breaker to CLOSED state
3117
3315
  * @param data The data for the request.
3118
3316
  * @param data.name Circuit breaker name to reset
3119
- * @param data.region Region code (cn, us, de)
3120
3317
  * @returns unknown Circuit breaker reset successfully
3121
3318
  * @throws ApiError
3122
3319
  */
@@ -3127,8 +3324,7 @@ export class HealthService {
3127
3324
  method: 'POST',
3128
3325
  url: '/api/v1/health/circuit-breakers/{name}/reset',
3129
3326
  path: {
3130
- name: data.name,
3131
- region: data.region
3327
+ name: data.name
3132
3328
  },
3133
3329
  errors: {
3134
3330
  401: 'Unauthorized',
@@ -3139,223 +3335,30 @@ export class HealthService {
3139
3335
 
3140
3336
  /**
3141
3337
  * Get health check metrics and statistics
3142
- * @param data The data for the request.
3143
- * @param data.region Region code (cn, us, de)
3144
3338
  * @returns unknown Health metrics
3145
3339
  * @throws ApiError
3146
3340
  */
3147
- public static healthControllerGetMetrics(
3148
- data: HealthControllerGetMetricsData
3149
- ): CancelablePromise<HealthControllerGetMetricsResponse> {
3341
+ public static healthControllerGetMetrics(): CancelablePromise<HealthControllerGetMetricsResponse> {
3150
3342
  return __request(OpenAPI, {
3151
3343
  method: 'GET',
3152
3344
  url: '/api/v1/health/metrics',
3153
- path: {
3154
- region: data.region
3155
- },
3156
3345
  errors: {
3157
3346
  401: 'Unauthorized'
3158
3347
  }
3159
3348
  });
3160
3349
  }
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
3350
  }
3236
3351
 
3237
3352
  export class InfoService {
3238
3353
  /**
3239
3354
  * Get system information
3240
- * @param data The data for the request.
3241
- * @param data.region Region code (cn, us, de)
3242
3355
  * @returns unknown System information retrieved successfully
3243
3356
  * @throws ApiError
3244
3357
  */
3245
- public static infoControllerGetInfo(
3246
- data: InfoControllerGetInfoData
3247
- ): CancelablePromise<InfoControllerGetInfoResponse> {
3248
- return __request(OpenAPI, {
3249
- method: 'GET',
3250
- url: '/api/v1/system/info',
3251
- path: {
3252
- region: data.region
3253
- }
3254
- });
3255
- }
3256
- }
3257
-
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
-
3287
- /**
3288
- * Get website favicon by URL
3289
- * @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)
3293
- * @throws ApiError
3294
- */
3295
- public static logoControllerGetLogoByUrl(
3296
- data: LogoControllerGetLogoByUrlData
3297
- ): CancelablePromise<LogoControllerGetLogoByUrlResponse> {
3298
- return __request(OpenAPI, {
3299
- method: 'GET',
3300
- url: '/api/v1/market/logos',
3301
- path: {
3302
- region: data.region
3303
- },
3304
- query: {
3305
- url: data.url
3306
- },
3307
- errors: {
3308
- 401: 'Unauthorized',
3309
- 503: 'Service unavailable'
3310
- }
3311
- });
3312
- }
3313
- }
3314
-
3315
- export class MarketDataService {
3316
- /**
3317
- * Get market data by symbol
3318
- * Retrieves market data and asset profile for a given symbol and data source
3319
- * @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
3324
- * @throws ApiError
3325
- */
3326
- public static marketDataControllerGetMarketDataBySymbol(
3327
- data: MarketDataControllerGetMarketDataBySymbolData
3328
- ): CancelablePromise<MarketDataControllerGetMarketDataBySymbolResponse> {
3358
+ public static infoControllerGetInfo(): CancelablePromise<InfoControllerGetInfoResponse> {
3329
3359
  return __request(OpenAPI, {
3330
3360
  method: 'GET',
3331
- url: '/api/v1/market-data/{dataSource}/{symbol}',
3332
- path: {
3333
- dataSource: data.dataSource,
3334
- symbol: data.symbol,
3335
- region: data.region
3336
- },
3337
- 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
3358
- }
3361
+ url: '/api/v1/system/info'
3359
3362
  });
3360
3363
  }
3361
3364
  }