@firela/api-types 0.0.0-canary.209967 → 0.0.0-canary.6feee68d

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