@firela/api-types 0.0.0-canary.5639ea2d → 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,23 +17,27 @@ 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
- AccountStandardsControllerGetRegionsResponse,
36
+ TransactionControllerDeleteData,
37
+ TransactionControllerDeleteResponse,
35
38
  BalanceControllerGetBalanceData,
36
39
  BalanceControllerGetBalanceResponse,
40
+ BalanceControllerGetMultiCurrencyBalanceData,
37
41
  BalanceControllerGetMultiCurrencyBalanceResponse,
38
42
  ReviewControllerFindAllData,
39
43
  ReviewControllerFindAllResponse,
@@ -41,13 +45,14 @@ import type {
41
45
  ReviewControllerGetStatsResponse,
42
46
  ReviewControllerFindOneData,
43
47
  ReviewControllerFindOneResponse,
44
- ReviewControllerData,
45
- ReviewControllerResponse,
46
- ReviewController1Data,
47
- ReviewController1Response,
48
- ReviewController2Data,
49
- ReviewController2Response,
50
- PayeeControllerResponse,
48
+ ReviewControllerResolveData,
49
+ ReviewControllerResolveResponse,
50
+ ReviewControllerUndoData,
51
+ ReviewControllerUndoResponse,
52
+ ReviewControllerBatchResolveData,
53
+ ReviewControllerBatchResolveResponse,
54
+ PayeeControllerCreateData,
55
+ PayeeControllerCreateResponse,
51
56
  PayeeControllerFindAllData,
52
57
  PayeeControllerFindAllResponse,
53
58
  PayeeControllerAutocompleteData,
@@ -56,43 +61,50 @@ import type {
56
61
  PayeeControllerGetTopPayeesResponse,
57
62
  PayeeControllerFindOneData,
58
63
  PayeeControllerFindOneResponse,
59
- PayeeController1Response,
60
- PayeeController2Response,
61
- PayeeProfileAdminControllerResponse,
64
+ PayeeControllerUpdateData,
65
+ PayeeControllerUpdateResponse,
66
+ PayeeControllerDeleteData,
67
+ PayeeControllerDeleteResponse,
68
+ PayeeProfileAdminControllerCreateData,
69
+ PayeeProfileAdminControllerCreateResponse,
62
70
  PayeeProfileAdminControllerFindAllData,
63
71
  PayeeProfileAdminControllerFindAllResponse,
64
72
  PayeeProfileAdminControllerFindOneData,
65
73
  PayeeProfileAdminControllerFindOneResponse,
66
- PayeeProfileAdminController1Response,
67
- PayeeProfileAdminController2Response,
68
- PayeeProfileAdminController3Response,
69
- PayeeProfileAdminController4Response,
70
- CommodityControllerData,
71
- CommodityControllerResponse,
74
+ PayeeProfileAdminControllerUpdateData,
75
+ PayeeProfileAdminControllerUpdateResponse,
76
+ PayeeProfileAdminControllerDeleteData,
77
+ PayeeProfileAdminControllerDeleteResponse,
78
+ PayeeProfileAdminControllerVerifyData,
79
+ PayeeProfileAdminControllerVerifyResponse,
80
+ PayeeProfileAdminControllerUnverifyData,
81
+ PayeeProfileAdminControllerUnverifyResponse,
82
+ CommodityControllerCreateData,
83
+ CommodityControllerCreateResponse,
72
84
  CommodityControllerFindAllData,
73
85
  CommodityControllerFindAllResponse,
74
86
  CommodityControllerFindOneData,
75
87
  CommodityControllerFindOneResponse,
76
- CommodityController1Data,
77
- CommodityController1Response,
78
- CommodityController2Data,
79
- CommodityController2Response,
80
- CommodityController3Data,
81
- CommodityController3Response,
82
- CommodityController4Data,
83
- CommodityController4Response,
84
- RecurringRuleControllerData,
85
- RecurringRuleControllerResponse,
88
+ CommodityControllerUpdateData,
89
+ CommodityControllerUpdateResponse,
90
+ CommodityControllerDeleteData,
91
+ CommodityControllerDeleteResponse,
92
+ CommodityControllerGetOrCreateData,
93
+ CommodityControllerGetOrCreateResponse,
94
+ CommodityControllerBulkCreateData,
95
+ CommodityControllerBulkCreateResponse,
96
+ RecurringRuleControllerCreateData,
97
+ RecurringRuleControllerCreateResponse,
86
98
  RecurringRuleControllerFindAllData,
87
99
  RecurringRuleControllerFindAllResponse,
88
- RecurringRuleController1Data,
89
- RecurringRuleController1Response,
100
+ RecurringRuleControllerCreateFromTransactionData,
101
+ RecurringRuleControllerCreateFromTransactionResponse,
90
102
  RecurringRuleControllerFindOneData,
91
103
  RecurringRuleControllerFindOneResponse,
92
- RecurringRuleController2Data,
93
- RecurringRuleController2Response,
94
- RecurringRuleController3Data,
95
- RecurringRuleController3Response,
104
+ RecurringRuleControllerUpdateData,
105
+ RecurringRuleControllerUpdateResponse,
106
+ RecurringRuleControllerDeleteData,
107
+ RecurringRuleControllerDeleteResponse,
96
108
  RecurringRuleControllerGetWithStatsData,
97
109
  RecurringRuleControllerGetWithStatsResponse,
98
110
  ExpectedTransactionControllerFindAllData,
@@ -101,36 +113,36 @@ import type {
101
113
  ExpectedTransactionControllerFindOverdueResponse,
102
114
  ExpectedTransactionControllerFindOneData,
103
115
  ExpectedTransactionControllerFindOneResponse,
104
- ExpectedTransactionControllerData,
105
- ExpectedTransactionControllerResponse,
106
- ExpectedTransactionController1Data,
107
- ExpectedTransactionController1Response,
108
- ExpectedTransactionController2Data,
109
- ExpectedTransactionController2Response,
110
- ExpectedTransactionController3Data,
111
- ExpectedTransactionController3Response,
112
- ExpectedTransactionController4Data,
113
- ExpectedTransactionController4Response,
116
+ ExpectedTransactionControllerSkipData,
117
+ ExpectedTransactionControllerSkipResponse,
118
+ ExpectedTransactionControllerUndoSkipData,
119
+ ExpectedTransactionControllerUndoSkipResponse,
120
+ ExpectedTransactionControllerConfirmMatchData,
121
+ ExpectedTransactionControllerConfirmMatchResponse,
122
+ ExpectedTransactionControllerUnmatchData,
123
+ ExpectedTransactionControllerUnmatchResponse,
124
+ ExpectedTransactionControllerEnterNowData,
125
+ ExpectedTransactionControllerEnterNowResponse,
114
126
  ForecastControllerGetForecastData,
115
127
  ForecastControllerGetForecastResponse,
116
- TransactionRuleControllerData,
117
- TransactionRuleControllerResponse,
128
+ TransactionRuleControllerCreateData,
129
+ TransactionRuleControllerCreateResponse,
118
130
  TransactionRuleControllerListData,
119
131
  TransactionRuleControllerListResponse,
120
132
  TransactionRuleControllerValidateData,
121
133
  TransactionRuleControllerValidateResponse,
122
- TransactionRuleController1Data,
123
- TransactionRuleController1Response,
134
+ TransactionRuleControllerBulkCreateData,
135
+ TransactionRuleControllerBulkCreateResponse,
124
136
  TransactionRuleControllerExportData,
125
137
  TransactionRuleControllerExportResponse,
126
138
  TransactionRuleControllerGetStatisticsData,
127
139
  TransactionRuleControllerGetStatisticsResponse,
128
140
  TransactionRuleControllerGetDetailData,
129
141
  TransactionRuleControllerGetDetailResponse,
130
- TransactionRuleController2Data,
131
- TransactionRuleController2Response,
132
- TransactionRuleController3Data,
133
- TransactionRuleController3Response,
142
+ TransactionRuleControllerUpdateData,
143
+ TransactionRuleControllerUpdateResponse,
144
+ TransactionRuleControllerDeleteData,
145
+ TransactionRuleControllerDeleteResponse,
134
146
  TransactionRuleControllerTestData,
135
147
  TransactionRuleControllerTestResponse,
136
148
  UserControllerDeleteOwnUserData,
@@ -151,20 +163,36 @@ import type {
151
163
  PropertyControllerGetAllResponse,
152
164
  PropertyControllerGetByKeyData,
153
165
  PropertyControllerGetByKeyResponse,
154
- PropertyControllerResponse,
155
- PropertyController1Response,
166
+ PropertyControllerUpdateData,
167
+ PropertyControllerUpdateResponse,
168
+ PropertyControllerDeleteData,
169
+ PropertyControllerDeleteResponse,
170
+ ExportControllerExportBeancountResponse,
156
171
  FileImportControllerImportFileData,
157
172
  FileImportControllerImportFileResponse,
158
173
  FileImportControllerIdentifyFileData,
159
174
  FileImportControllerIdentifyFileResponse,
175
+ FileImportControllerImportBeancountData,
176
+ FileImportControllerImportBeancountResponse,
160
177
  ImporterConfigControllerGetConfigData,
161
178
  ImporterConfigControllerGetConfigResponse,
162
- ImporterConfigControllerData,
163
- ImporterConfigControllerResponse,
164
- ImporterConfigController1Data,
165
- 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,
166
193
  ProviderSyncControllerSyncData,
167
194
  ProviderSyncControllerSyncResponse,
195
+ ProviderSyncControllerGetSupportedProvidersData,
168
196
  ProviderSyncControllerGetSupportedProvidersResponse,
169
197
  ProviderSyncControllerIsProviderSupportedData,
170
198
  ProviderSyncControllerIsProviderSupportedResponse,
@@ -176,19 +204,6 @@ import type {
176
204
  NlpControllerClearSessionResponse,
177
205
  NlpControllerGetSessionData,
178
206
  NlpControllerGetSessionResponse,
179
- PlatformControllerFindAllResponse,
180
- PlatformControllerResponse,
181
- PlatformControllerGetPlatformListResponse,
182
- PlatformController1Response,
183
- PlatformController2Response,
184
- SymbolControllerLookupSymbolData,
185
- SymbolControllerLookupSymbolResponse,
186
- SymbolControllerGetSymbolDataData,
187
- SymbolControllerGetSymbolDataResponse,
188
- SymbolControllerGatherSymbolForDateData,
189
- SymbolControllerGatherSymbolForDateResponse,
190
- SymbolControllerResponse,
191
- CacheControllerFlushCacheResponse,
192
207
  DashboardControllerGetNetWorthData,
193
208
  DashboardControllerGetNetWorthResponse,
194
209
  DashboardControllerGetAccountsData,
@@ -201,31 +216,21 @@ import type {
201
216
  ReportingControllerGenerateSnapshotResponse,
202
217
  ReportingControllerBackfillSnapshotsData,
203
218
  ReportingControllerBackfillSnapshotsResponse,
204
- ApiKeysControllerResponse,
219
+ ApiKeysControllerCreateApiKeyResponse,
205
220
  AuthControllerAccessTokenLoginData,
206
221
  AuthControllerAccessTokenLoginResponse,
222
+ CacheControllerFlushCacheResponse,
207
223
  ExchangeRateControllerGetExchangeRateData,
208
224
  ExchangeRateControllerGetExchangeRateResponse,
209
225
  HealthControllerGetHealthResponse,
210
226
  HealthControllerCheckDatabaseResponse,
227
+ HealthControllerCheckOpenBbResponse,
211
228
  HealthControllerCheckRedisResponse,
212
229
  HealthControllerGetCircuitBreakersHealthResponse,
213
230
  HealthControllerResetCircuitBreakerData,
214
231
  HealthControllerResetCircuitBreakerResponse,
215
232
  HealthControllerGetMetricsResponse,
216
- HealthControllerGetHealthOfDataEnhancerData,
217
- HealthControllerGetHealthOfDataEnhancerResponse,
218
- HealthControllerCheckDataProvidersResponse,
219
- HealthControllerGetHealthOfDataProviderData,
220
- HealthControllerGetHealthOfDataProviderResponse,
221
- InfoControllerGetInfoResponse,
222
- LogoControllerGetLogoByDataSourceAndSymbolData,
223
- LogoControllerGetLogoByDataSourceAndSymbolResponse,
224
- LogoControllerGetLogoByUrlData,
225
- LogoControllerGetLogoByUrlResponse,
226
- MarketDataControllerGetMarketDataBySymbolData,
227
- MarketDataControllerGetMarketDataBySymbolResponse,
228
- MarketDataControllerResponse
233
+ InfoControllerGetInfoResponse
229
234
  } from './types.gen';
230
235
 
231
236
  export class BeanAccountsService {
@@ -427,6 +432,78 @@ export class BeanAccountsService {
427
432
  }
428
433
  }
429
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
+
430
507
  export class BeanTransactionsService {
431
508
  /**
432
509
  * @deprecated
@@ -492,25 +569,36 @@ export class BeanTransactionsService {
492
569
  accountId: data.accountId
493
570
  },
494
571
  errors: {
572
+ 400: 'Validation failed',
495
573
  401: 'Authentication required'
496
574
  }
497
575
  });
498
576
  }
499
577
 
500
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.
501
582
  * @param data The data for the request.
502
583
  * @param data.region Region code for tenant context
503
- * @returns unknown
584
+ * @param data.requestBody
585
+ * @returns BatchTransactionResponseDto Transactions processed
504
586
  * @throws ApiError
505
587
  */
506
- public static transactionController(
507
- data: TransactionControllerData
508
- ): CancelablePromise<TransactionControllerResponse> {
588
+ public static transactionControllerCreateBatch(
589
+ data: TransactionControllerCreateBatchData
590
+ ): CancelablePromise<TransactionControllerCreateBatchResponse> {
509
591
  return __request(OpenAPI, {
510
592
  method: 'POST',
511
593
  url: '/api/v1/{region}/bean/transactions/batch',
512
594
  path: {
513
595
  region: data.region
596
+ },
597
+ body: data.requestBody,
598
+ mediaType: 'application/json',
599
+ errors: {
600
+ 400: 'Invalid input',
601
+ 401: 'Authentication required'
514
602
  }
515
603
  });
516
604
  }
@@ -572,63 +660,31 @@ export class BeanTransactionsService {
572
660
  }
573
661
 
574
662
  /**
663
+ * Void transaction
664
+ * Soft-deletes a transaction by marking it as VOIDED
575
665
  * @param data The data for the request.
666
+ * @param data.id Transaction ID
576
667
  * @param data.region Region code for tenant context
577
- * @returns void
668
+ * @returns void Transaction voided successfully
578
669
  * @throws ApiError
579
670
  */
580
- public static transactionController1(
581
- data: TransactionController1Data
582
- ): CancelablePromise<TransactionController1Response> {
671
+ public static transactionControllerDelete(
672
+ data: TransactionControllerDeleteData
673
+ ): CancelablePromise<TransactionControllerDeleteResponse> {
583
674
  return __request(OpenAPI, {
584
675
  method: 'DELETE',
585
676
  url: '/api/v1/{region}/bean/transactions/{id}',
586
677
  path: {
587
- region: data.region
588
- }
589
- });
590
- }
591
- }
592
-
593
- export class BeanAccountStandardsService {
594
- /**
595
- * Get account templates
596
- * Returns predefined account templates for a region. Supports filtering by account type and search term.
597
- * @param data The data for the request.
598
- * @param data.region Region code (cn, us, de)
599
- * @param data.type Filter by account type
600
- * @param data.search Search term for path or description
601
- * @returns AccountStandardListResponseDto Account templates retrieved successfully
602
- * @throws ApiError
603
- */
604
- public static accountStandardsControllerGetTemplates(
605
- data: AccountStandardsControllerGetTemplatesData
606
- ): CancelablePromise<AccountStandardsControllerGetTemplatesResponse> {
607
- return __request(OpenAPI, {
608
- method: 'GET',
609
- url: '/api/v1/{region}/bean/account-standards',
610
- path: {
678
+ id: data.id,
611
679
  region: data.region
612
680
  },
613
- query: {
614
- type: data.type,
615
- search: data.search
681
+ errors: {
682
+ 400: 'Transaction already voided',
683
+ 401: 'Authentication required',
684
+ 404: 'Transaction not found'
616
685
  }
617
686
  });
618
687
  }
619
-
620
- /**
621
- * Get available regions with hierarchy
622
- * Returns supported regions with inheritance metadata
623
- * @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
624
- * @throws ApiError
625
- */
626
- public static accountStandardsControllerGetRegions(): CancelablePromise<AccountStandardsControllerGetRegionsResponse> {
627
- return __request(OpenAPI, {
628
- method: 'GET',
629
- url: '/api/v1/{region}/bean/account-standards/regions'
630
- });
631
- }
632
688
  }
633
689
 
634
690
  export class BeanBalancesService {
@@ -637,6 +693,7 @@ export class BeanBalancesService {
637
693
  * Calculate account balance at a specific date for a single currency
638
694
  * @param data The data for the request.
639
695
  * @param data.account Account name (e.g., "Assets:Bank:Checking")
696
+ * @param data.region Region code for tenant context
640
697
  * @param data.date Date to calculate balance at (ISO 8601 format)
641
698
  * @param data.currency Currency to query (e.g., "USD", "CNY")
642
699
  * @returns BalanceResponseDto Balance calculated successfully
@@ -648,6 +705,9 @@ export class BeanBalancesService {
648
705
  return __request(OpenAPI, {
649
706
  method: 'GET',
650
707
  url: '/api/v1/{region}/bean/balances',
708
+ path: {
709
+ region: data.region
710
+ },
651
711
  query: {
652
712
  account: data.account,
653
713
  date: data.date,
@@ -663,13 +723,20 @@ export class BeanBalancesService {
663
723
  /**
664
724
  * Query multi-currency account balance
665
725
  * Calculate account balances for all currencies at a specific date
726
+ * @param data The data for the request.
727
+ * @param data.region Region code for tenant context
666
728
  * @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
667
729
  * @throws ApiError
668
730
  */
669
- public static balanceControllerGetMultiCurrencyBalance(): CancelablePromise<BalanceControllerGetMultiCurrencyBalanceResponse> {
731
+ public static balanceControllerGetMultiCurrencyBalance(
732
+ data: BalanceControllerGetMultiCurrencyBalanceData
733
+ ): CancelablePromise<BalanceControllerGetMultiCurrencyBalanceResponse> {
670
734
  return __request(OpenAPI, {
671
735
  method: 'GET',
672
736
  url: '/api/v1/{region}/bean/balances/multi-currency',
737
+ path: {
738
+ region: data.region
739
+ },
673
740
  errors: {
674
741
  400: 'Invalid query parameters',
675
742
  401: 'User not authenticated'
@@ -751,69 +818,94 @@ export class BeanReviewsService {
751
818
  }
752
819
 
753
820
  /**
821
+ * Resolve a review item
754
822
  * @param data The data for the request.
823
+ * @param data.id Review ID
755
824
  * @param data.region Region code for tenant context
756
- * @returns unknown
825
+ * @param data.requestBody
826
+ * @returns ResolveResultDto
757
827
  * @throws ApiError
758
828
  */
759
- public static reviewController(
760
- data: ReviewControllerData
761
- ): CancelablePromise<ReviewControllerResponse> {
829
+ public static reviewControllerResolve(
830
+ data: ReviewControllerResolveData
831
+ ): CancelablePromise<ReviewControllerResolveResponse> {
762
832
  return __request(OpenAPI, {
763
833
  method: 'POST',
764
834
  url: '/api/v1/{region}/bean/reviews/{id}/resolve',
765
835
  path: {
836
+ id: data.id,
766
837
  region: data.region
767
- }
838
+ },
839
+ body: data.requestBody,
840
+ mediaType: 'application/json'
768
841
  });
769
842
  }
770
843
 
771
844
  /**
845
+ * Undo a resolution (within 24h)
772
846
  * @param data The data for the request.
847
+ * @param data.id Review ID
773
848
  * @param data.region Region code for tenant context
774
- * @returns unknown
849
+ * @returns UndoResultDto
775
850
  * @throws ApiError
776
851
  */
777
- public static reviewController1(
778
- data: ReviewController1Data
779
- ): CancelablePromise<ReviewController1Response> {
852
+ public static reviewControllerUndo(
853
+ data: ReviewControllerUndoData
854
+ ): CancelablePromise<ReviewControllerUndoResponse> {
780
855
  return __request(OpenAPI, {
781
856
  method: 'POST',
782
857
  url: '/api/v1/{region}/bean/reviews/{id}/undo',
783
858
  path: {
859
+ id: data.id,
784
860
  region: data.region
785
861
  }
786
862
  });
787
863
  }
788
864
 
789
865
  /**
866
+ * Batch resolve multiple reviews
790
867
  * @param data The data for the request.
791
868
  * @param data.region Region code for tenant context
792
- * @returns unknown
869
+ * @param data.requestBody Batch resolution request containing review IDs and action
870
+ * @returns BatchResolveResultDto
793
871
  * @throws ApiError
794
872
  */
795
- public static reviewController2(
796
- data: ReviewController2Data
797
- ): CancelablePromise<ReviewController2Response> {
873
+ public static reviewControllerBatchResolve(
874
+ data: ReviewControllerBatchResolveData
875
+ ): CancelablePromise<ReviewControllerBatchResolveResponse> {
798
876
  return __request(OpenAPI, {
799
877
  method: 'POST',
800
878
  url: '/api/v1/{region}/bean/reviews/batch-resolve',
801
879
  path: {
802
880
  region: data.region
803
- }
881
+ },
882
+ body: data.requestBody,
883
+ mediaType: 'application/json'
804
884
  });
805
885
  }
806
886
  }
807
887
 
808
888
  export class BeanPayeesService {
809
889
  /**
810
- * @returns unknown
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.
892
+ * @param data The data for the request.
893
+ * @param data.requestBody
894
+ * @returns PayeeResponseDto Payee created successfully
811
895
  * @throws ApiError
812
896
  */
813
- public static payeeController(): CancelablePromise<PayeeControllerResponse> {
897
+ public static payeeControllerCreate(
898
+ data: PayeeControllerCreateData
899
+ ): CancelablePromise<PayeeControllerCreateResponse> {
814
900
  return __request(OpenAPI, {
815
901
  method: 'POST',
816
- url: '/api/v1/bean/payees'
902
+ url: '/api/v1/bean/payees',
903
+ body: data.requestBody,
904
+ mediaType: 'application/json',
905
+ errors: {
906
+ 400: 'Invalid input data',
907
+ 409: 'Payee already exists'
908
+ }
817
909
  });
818
910
  }
819
911
 
@@ -912,37 +1004,78 @@ export class BeanPayeesService {
912
1004
  }
913
1005
 
914
1006
  /**
915
- * @returns unknown
1007
+ * Update payee
1008
+ * Updates a payee mapping. The payee name cannot be changed after creation.
1009
+ * @param data The data for the request.
1010
+ * @param data.id Payee UUID
1011
+ * @param data.requestBody
1012
+ * @returns PayeeResponseDto Payee updated successfully
916
1013
  * @throws ApiError
917
1014
  */
918
- public static payeeController1(): CancelablePromise<PayeeController1Response> {
1015
+ public static payeeControllerUpdate(
1016
+ data: PayeeControllerUpdateData
1017
+ ): CancelablePromise<PayeeControllerUpdateResponse> {
919
1018
  return __request(OpenAPI, {
920
1019
  method: 'PUT',
921
- url: '/api/v1/bean/payees/{id}'
1020
+ url: '/api/v1/bean/payees/{id}',
1021
+ path: {
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'
1029
+ }
922
1030
  });
923
1031
  }
924
1032
 
925
1033
  /**
926
- * @returns void
1034
+ * Delete payee
1035
+ * Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
1036
+ * @param data The data for the request.
1037
+ * @param data.id Payee UUID
1038
+ * @returns void Payee deleted successfully
927
1039
  * @throws ApiError
928
1040
  */
929
- public static payeeController2(): CancelablePromise<PayeeController2Response> {
1041
+ public static payeeControllerDelete(
1042
+ data: PayeeControllerDeleteData
1043
+ ): CancelablePromise<PayeeControllerDeleteResponse> {
930
1044
  return __request(OpenAPI, {
931
1045
  method: 'DELETE',
932
- url: '/api/v1/bean/payees/{id}'
1046
+ url: '/api/v1/bean/payees/{id}',
1047
+ path: {
1048
+ id: data.id
1049
+ },
1050
+ errors: {
1051
+ 404: 'Payee not found'
1052
+ }
933
1053
  });
934
1054
  }
935
1055
  }
936
1056
 
937
1057
  export class AdminPayeeProfilesService {
938
1058
  /**
939
- * @returns unknown
1059
+ * Create payee profile (Admin only)
1060
+ * Creates a new global payee profile. The canonical name must be unique (case-insensitive).
1061
+ * @param data The data for the request.
1062
+ * @param data.requestBody
1063
+ * @returns PayeeProfileResponseDto Payee profile created successfully
940
1064
  * @throws ApiError
941
1065
  */
942
- public static payeeProfileAdminController(): CancelablePromise<PayeeProfileAdminControllerResponse> {
1066
+ public static payeeProfileAdminControllerCreate(
1067
+ data: PayeeProfileAdminControllerCreateData
1068
+ ): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
943
1069
  return __request(OpenAPI, {
944
1070
  method: 'POST',
945
- url: '/api/v1/admin/payee-profiles'
1071
+ url: '/api/v1/admin/payee-profiles',
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'
1078
+ }
946
1079
  });
947
1080
  }
948
1081
 
@@ -1004,65 +1137,130 @@ export class AdminPayeeProfilesService {
1004
1137
  }
1005
1138
 
1006
1139
  /**
1007
- * @returns unknown
1140
+ * Update payee profile (Admin only)
1141
+ * Updates an existing payee profile. The canonical name cannot be changed.
1142
+ * @param data The data for the request.
1143
+ * @param data.id Payee profile ID (UUID)
1144
+ * @param data.requestBody
1145
+ * @returns PayeeProfileResponseDto Payee profile updated successfully
1008
1146
  * @throws ApiError
1009
1147
  */
1010
- public static payeeProfileAdminController1(): CancelablePromise<PayeeProfileAdminController1Response> {
1148
+ public static payeeProfileAdminControllerUpdate(
1149
+ data: PayeeProfileAdminControllerUpdateData
1150
+ ): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
1011
1151
  return __request(OpenAPI, {
1012
1152
  method: 'PUT',
1013
- url: '/api/v1/admin/payee-profiles/{id}'
1153
+ url: '/api/v1/admin/payee-profiles/{id}',
1154
+ path: {
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'
1162
+ }
1014
1163
  });
1015
1164
  }
1016
1165
 
1017
1166
  /**
1018
- * @returns void
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.
1169
+ * @param data The data for the request.
1170
+ * @param data.id Payee profile ID (UUID)
1171
+ * @returns void Payee profile deleted successfully
1019
1172
  * @throws ApiError
1020
1173
  */
1021
- public static payeeProfileAdminController2(): CancelablePromise<PayeeProfileAdminController2Response> {
1174
+ public static payeeProfileAdminControllerDelete(
1175
+ data: PayeeProfileAdminControllerDeleteData
1176
+ ): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
1022
1177
  return __request(OpenAPI, {
1023
1178
  method: 'DELETE',
1024
- url: '/api/v1/admin/payee-profiles/{id}'
1179
+ url: '/api/v1/admin/payee-profiles/{id}',
1180
+ path: {
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'
1187
+ }
1025
1188
  });
1026
1189
  }
1027
1190
 
1028
1191
  /**
1029
- * @returns unknown
1192
+ * Verify payee profile (Admin only)
1193
+ * Marks a payee profile as verified by setting verifiedAt to current timestamp.
1194
+ * @param data The data for the request.
1195
+ * @param data.id Payee profile ID (UUID)
1196
+ * @returns PayeeProfileResponseDto Payee profile verified successfully
1030
1197
  * @throws ApiError
1031
1198
  */
1032
- public static payeeProfileAdminController3(): CancelablePromise<PayeeProfileAdminController3Response> {
1199
+ public static payeeProfileAdminControllerVerify(
1200
+ data: PayeeProfileAdminControllerVerifyData
1201
+ ): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
1033
1202
  return __request(OpenAPI, {
1034
1203
  method: 'POST',
1035
- url: '/api/v1/admin/payee-profiles/{id}/verify'
1204
+ url: '/api/v1/admin/payee-profiles/{id}/verify',
1205
+ path: {
1206
+ id: data.id
1207
+ },
1208
+ errors: {
1209
+ 403: 'Admin access required',
1210
+ 404: 'Payee profile not found'
1211
+ }
1036
1212
  });
1037
1213
  }
1038
1214
 
1039
1215
  /**
1040
- * @returns unknown
1216
+ * Unverify payee profile (Admin only)
1217
+ * Removes verification status by setting verifiedAt to null.
1218
+ * @param data The data for the request.
1219
+ * @param data.id Payee profile ID (UUID)
1220
+ * @returns PayeeProfileResponseDto Payee profile unverified successfully
1041
1221
  * @throws ApiError
1042
1222
  */
1043
- public static payeeProfileAdminController4(): CancelablePromise<PayeeProfileAdminController4Response> {
1223
+ public static payeeProfileAdminControllerUnverify(
1224
+ data: PayeeProfileAdminControllerUnverifyData
1225
+ ): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
1044
1226
  return __request(OpenAPI, {
1045
1227
  method: 'DELETE',
1046
- url: '/api/v1/admin/payee-profiles/{id}/verify'
1228
+ url: '/api/v1/admin/payee-profiles/{id}/verify',
1229
+ path: {
1230
+ id: data.id
1231
+ },
1232
+ errors: {
1233
+ 403: 'Admin access required',
1234
+ 404: 'Payee profile not found'
1235
+ }
1047
1236
  });
1048
1237
  }
1049
1238
  }
1050
1239
 
1051
1240
  export class BeanCommoditiesService {
1052
1241
  /**
1242
+ * Create a new commodity
1243
+ * Creates a new commodity definition for the authenticated user
1053
1244
  * @param data The data for the request.
1054
1245
  * @param data.region Region code for tenant context
1055
- * @returns unknown
1246
+ * @param data.requestBody
1247
+ * @returns CommodityResponseDto Commodity created successfully
1056
1248
  * @throws ApiError
1057
1249
  */
1058
- public static commodityController(
1059
- data: CommodityControllerData
1060
- ): CancelablePromise<CommodityControllerResponse> {
1250
+ public static commodityControllerCreate(
1251
+ data: CommodityControllerCreateData
1252
+ ): CancelablePromise<CommodityControllerCreateResponse> {
1061
1253
  return __request(OpenAPI, {
1062
1254
  method: 'POST',
1063
1255
  url: '/api/v1/{region}/bean/commodities',
1064
1256
  path: {
1065
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'
1066
1264
  }
1067
1265
  });
1068
1266
  }
@@ -1119,68 +1317,92 @@ export class BeanCommoditiesService {
1119
1317
  }
1120
1318
 
1121
1319
  /**
1320
+ * Update commodity
1321
+ * Updates an existing commodity definition. Symbol cannot be changed.
1122
1322
  * @param data The data for the request.
1323
+ * @param data.symbol Commodity symbol
1123
1324
  * @param data.region Region code for tenant context
1124
- * @returns unknown
1325
+ * @param data.requestBody
1326
+ * @returns CommodityResponseDto Commodity updated successfully
1125
1327
  * @throws ApiError
1126
1328
  */
1127
- public static commodityController1(
1128
- data: CommodityController1Data
1129
- ): CancelablePromise<CommodityController1Response> {
1329
+ public static commodityControllerUpdate(
1330
+ data: CommodityControllerUpdateData
1331
+ ): CancelablePromise<CommodityControllerUpdateResponse> {
1130
1332
  return __request(OpenAPI, {
1131
1333
  method: 'PUT',
1132
1334
  url: '/api/v1/{region}/bean/commodities/{symbol}',
1133
1335
  path: {
1336
+ symbol: data.symbol,
1134
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'
1135
1344
  }
1136
1345
  });
1137
1346
  }
1138
1347
 
1139
1348
  /**
1349
+ * Delete commodity
1350
+ * Deletes a commodity definition
1140
1351
  * @param data The data for the request.
1352
+ * @param data.symbol Commodity symbol
1141
1353
  * @param data.region Region code for tenant context
1142
- * @returns void
1354
+ * @returns void Commodity deleted successfully
1143
1355
  * @throws ApiError
1144
1356
  */
1145
- public static commodityController2(
1146
- data: CommodityController2Data
1147
- ): CancelablePromise<CommodityController2Response> {
1357
+ public static commodityControllerDelete(
1358
+ data: CommodityControllerDeleteData
1359
+ ): CancelablePromise<CommodityControllerDeleteResponse> {
1148
1360
  return __request(OpenAPI, {
1149
1361
  method: 'DELETE',
1150
1362
  url: '/api/v1/{region}/bean/commodities/{symbol}',
1151
1363
  path: {
1364
+ symbol: data.symbol,
1152
1365
  region: data.region
1366
+ },
1367
+ errors: {
1368
+ 404: 'Commodity not found'
1153
1369
  }
1154
1370
  });
1155
1371
  }
1156
1372
 
1157
1373
  /**
1374
+ * Ensure commodity exists
1375
+ * Gets existing commodity or creates it with automatic initialization from OpenBB
1158
1376
  * @param data The data for the request.
1377
+ * @param data.symbol Commodity symbol
1159
1378
  * @param data.region Region code for tenant context
1160
- * @returns unknown
1379
+ * @returns CommodityResponseDto Commodity retrieved or created
1161
1380
  * @throws ApiError
1162
1381
  */
1163
- public static commodityController3(
1164
- data: CommodityController3Data
1165
- ): CancelablePromise<CommodityController3Response> {
1382
+ public static commodityControllerGetOrCreate(
1383
+ data: CommodityControllerGetOrCreateData
1384
+ ): CancelablePromise<CommodityControllerGetOrCreateResponse> {
1166
1385
  return __request(OpenAPI, {
1167
1386
  method: 'POST',
1168
1387
  url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
1169
1388
  path: {
1389
+ symbol: data.symbol,
1170
1390
  region: data.region
1171
1391
  }
1172
1392
  });
1173
1393
  }
1174
1394
 
1175
1395
  /**
1396
+ * Bulk create commodities
1397
+ * Creates multiple commodities from a list of symbols, useful for initialization
1176
1398
  * @param data The data for the request.
1177
1399
  * @param data.region Region code for tenant context
1178
- * @returns unknown
1400
+ * @returns CommodityResponseDto Commodities created successfully
1179
1401
  * @throws ApiError
1180
1402
  */
1181
- public static commodityController4(
1182
- data: CommodityController4Data
1183
- ): CancelablePromise<CommodityController4Response> {
1403
+ public static commodityControllerBulkCreate(
1404
+ data: CommodityControllerBulkCreateData
1405
+ ): CancelablePromise<CommodityControllerBulkCreateResponse> {
1184
1406
  return __request(OpenAPI, {
1185
1407
  method: 'POST',
1186
1408
  url: '/api/v1/{region}/bean/commodities/bulk',
@@ -1193,19 +1415,28 @@ export class BeanCommoditiesService {
1193
1415
 
1194
1416
  export class RecurringRulesService {
1195
1417
  /**
1418
+ * Create a new recurring rule
1419
+ * Creates a new recurring transaction rule for the authenticated user
1196
1420
  * @param data The data for the request.
1197
1421
  * @param data.region Region code for tenant context
1198
- * @returns unknown
1422
+ * @param data.requestBody
1423
+ * @returns RecurringRuleResponseDto Rule created successfully
1199
1424
  * @throws ApiError
1200
1425
  */
1201
- public static recurringRuleController(
1202
- data: RecurringRuleControllerData
1203
- ): CancelablePromise<RecurringRuleControllerResponse> {
1426
+ public static recurringRuleControllerCreate(
1427
+ data: RecurringRuleControllerCreateData
1428
+ ): CancelablePromise<RecurringRuleControllerCreateResponse> {
1204
1429
  return __request(OpenAPI, {
1205
1430
  method: 'POST',
1206
1431
  url: '/api/v1/{region}/bean/recurring-rules',
1207
1432
  path: {
1208
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'
1209
1440
  }
1210
1441
  });
1211
1442
  }
@@ -1239,19 +1470,30 @@ export class RecurringRulesService {
1239
1470
  }
1240
1471
 
1241
1472
  /**
1473
+ * Create recurring rule from transaction
1474
+ * Auto-creates a recurring rule using transaction data. User only confirms frequency.
1242
1475
  * @param data The data for the request.
1476
+ * @param data.transactionId Source transaction ID
1243
1477
  * @param data.region Region code for tenant context
1244
- * @returns unknown
1478
+ * @param data.requestBody
1479
+ * @returns RecurringRuleResponseDto Rule created successfully
1245
1480
  * @throws ApiError
1246
1481
  */
1247
- public static recurringRuleController1(
1248
- data: RecurringRuleController1Data
1249
- ): CancelablePromise<RecurringRuleController1Response> {
1482
+ public static recurringRuleControllerCreateFromTransaction(
1483
+ data: RecurringRuleControllerCreateFromTransactionData
1484
+ ): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
1250
1485
  return __request(OpenAPI, {
1251
1486
  method: 'POST',
1252
1487
  url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
1253
1488
  path: {
1489
+ transactionId: data.transactionId,
1254
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'
1255
1497
  }
1256
1498
  });
1257
1499
  }
@@ -1282,37 +1524,55 @@ export class RecurringRulesService {
1282
1524
  }
1283
1525
 
1284
1526
  /**
1527
+ * Update recurring rule
1528
+ * Updates an existing recurring rule
1285
1529
  * @param data The data for the request.
1530
+ * @param data.id Rule ID
1286
1531
  * @param data.region Region code for tenant context
1287
- * @returns unknown
1532
+ * @param data.requestBody
1533
+ * @returns RecurringRuleResponseDto Rule updated successfully
1288
1534
  * @throws ApiError
1289
1535
  */
1290
- public static recurringRuleController2(
1291
- data: RecurringRuleController2Data
1292
- ): CancelablePromise<RecurringRuleController2Response> {
1536
+ public static recurringRuleControllerUpdate(
1537
+ data: RecurringRuleControllerUpdateData
1538
+ ): CancelablePromise<RecurringRuleControllerUpdateResponse> {
1293
1539
  return __request(OpenAPI, {
1294
1540
  method: 'PATCH',
1295
1541
  url: '/api/v1/{region}/bean/recurring-rules/{id}',
1296
1542
  path: {
1543
+ id: data.id,
1297
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'
1298
1551
  }
1299
1552
  });
1300
1553
  }
1301
1554
 
1302
1555
  /**
1556
+ * Delete recurring rule
1557
+ * Soft deletes a recurring rule (sets isActive to false)
1303
1558
  * @param data The data for the request.
1559
+ * @param data.id Rule ID
1304
1560
  * @param data.region Region code for tenant context
1305
- * @returns void
1561
+ * @returns void Rule deleted successfully
1306
1562
  * @throws ApiError
1307
1563
  */
1308
- public static recurringRuleController3(
1309
- data: RecurringRuleController3Data
1310
- ): CancelablePromise<RecurringRuleController3Response> {
1564
+ public static recurringRuleControllerDelete(
1565
+ data: RecurringRuleControllerDeleteData
1566
+ ): CancelablePromise<RecurringRuleControllerDeleteResponse> {
1311
1567
  return __request(OpenAPI, {
1312
1568
  method: 'DELETE',
1313
1569
  url: '/api/v1/{region}/bean/recurring-rules/{id}',
1314
1570
  path: {
1571
+ id: data.id,
1315
1572
  region: data.region
1573
+ },
1574
+ errors: {
1575
+ 404: 'Rule not found'
1316
1576
  }
1317
1577
  });
1318
1578
  }
@@ -1420,91 +1680,138 @@ export class ExpectedTransactionsService {
1420
1680
  }
1421
1681
 
1422
1682
  /**
1683
+ * Skip expected transaction
1684
+ * Marks an expected transaction as skipped (PENDING -> SKIPPED)
1423
1685
  * @param data The data for the request.
1686
+ * @param data.id Expected transaction ID
1424
1687
  * @param data.region Region code for tenant context
1425
- * @returns unknown
1688
+ * @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
1426
1689
  * @throws ApiError
1427
1690
  */
1428
- public static expectedTransactionController(
1429
- data: ExpectedTransactionControllerData
1430
- ): CancelablePromise<ExpectedTransactionControllerResponse> {
1691
+ public static expectedTransactionControllerSkip(
1692
+ data: ExpectedTransactionControllerSkipData
1693
+ ): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
1431
1694
  return __request(OpenAPI, {
1432
1695
  method: 'POST',
1433
1696
  url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
1434
1697
  path: {
1698
+ id: data.id,
1435
1699
  region: data.region
1700
+ },
1701
+ errors: {
1702
+ 400: 'Cannot skip - not in PENDING status',
1703
+ 404: 'Expected transaction not found'
1436
1704
  }
1437
1705
  });
1438
1706
  }
1439
1707
 
1440
1708
  /**
1709
+ * Undo skip
1710
+ * Reverses a skip operation (SKIPPED -> PENDING)
1441
1711
  * @param data The data for the request.
1712
+ * @param data.id Expected transaction ID
1442
1713
  * @param data.region Region code for tenant context
1443
- * @returns unknown
1714
+ * @returns ExpectedTransactionResponseDto Skip undone successfully
1444
1715
  * @throws ApiError
1445
1716
  */
1446
- public static expectedTransactionController1(
1447
- data: ExpectedTransactionController1Data
1448
- ): CancelablePromise<ExpectedTransactionController1Response> {
1717
+ public static expectedTransactionControllerUndoSkip(
1718
+ data: ExpectedTransactionControllerUndoSkipData
1719
+ ): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
1449
1720
  return __request(OpenAPI, {
1450
1721
  method: 'DELETE',
1451
1722
  url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
1452
1723
  path: {
1724
+ id: data.id,
1453
1725
  region: data.region
1726
+ },
1727
+ errors: {
1728
+ 400: 'Cannot undo - not in SKIPPED status',
1729
+ 404: 'Expected transaction not found'
1454
1730
  }
1455
1731
  });
1456
1732
  }
1457
1733
 
1458
1734
  /**
1735
+ * Confirm transaction match
1736
+ * Manually matches an expected transaction with an actual transaction
1459
1737
  * @param data The data for the request.
1738
+ * @param data.id Expected transaction ID
1460
1739
  * @param data.region Region code for tenant context
1461
- * @returns unknown
1740
+ * @param data.requestBody
1741
+ * @returns unknown Match confirmed successfully
1462
1742
  * @throws ApiError
1463
1743
  */
1464
- public static expectedTransactionController2(
1465
- data: ExpectedTransactionController2Data
1466
- ): CancelablePromise<ExpectedTransactionController2Response> {
1744
+ public static expectedTransactionControllerConfirmMatch(
1745
+ data: ExpectedTransactionControllerConfirmMatchData
1746
+ ): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
1467
1747
  return __request(OpenAPI, {
1468
1748
  method: 'POST',
1469
1749
  url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
1470
1750
  path: {
1751
+ id: data.id,
1471
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'
1472
1760
  }
1473
1761
  });
1474
1762
  }
1475
1763
 
1476
1764
  /**
1765
+ * Unmatch transaction
1766
+ * Removes the match between expected and actual transaction (COMPLETED -> PENDING)
1477
1767
  * @param data The data for the request.
1768
+ * @param data.id Expected transaction ID
1478
1769
  * @param data.region Region code for tenant context
1479
- * @returns unknown
1770
+ * @returns unknown Match removed successfully
1480
1771
  * @throws ApiError
1481
1772
  */
1482
- public static expectedTransactionController3(
1483
- data: ExpectedTransactionController3Data
1484
- ): CancelablePromise<ExpectedTransactionController3Response> {
1773
+ public static expectedTransactionControllerUnmatch(
1774
+ data: ExpectedTransactionControllerUnmatchData
1775
+ ): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
1485
1776
  return __request(OpenAPI, {
1486
1777
  method: 'DELETE',
1487
1778
  url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
1488
1779
  path: {
1780
+ id: data.id,
1489
1781
  region: data.region
1782
+ },
1783
+ errors: {
1784
+ 400: 'Cannot unmatch - not in COMPLETED status',
1785
+ 404: 'Expected transaction not found'
1490
1786
  }
1491
1787
  });
1492
1788
  }
1493
1789
 
1494
1790
  /**
1791
+ * Enter Now
1792
+ * Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
1495
1793
  * @param data The data for the request.
1794
+ * @param data.id Expected transaction ID
1496
1795
  * @param data.region Region code for tenant context
1497
- * @returns unknown
1796
+ * @param data.requestBody
1797
+ * @returns unknown Transaction created successfully
1498
1798
  * @throws ApiError
1499
1799
  */
1500
- public static expectedTransactionController4(
1501
- data: ExpectedTransactionController4Data
1502
- ): CancelablePromise<ExpectedTransactionController4Response> {
1800
+ public static expectedTransactionControllerEnterNow(
1801
+ data: ExpectedTransactionControllerEnterNowData
1802
+ ): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
1503
1803
  return __request(OpenAPI, {
1504
1804
  method: 'POST',
1505
1805
  url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
1506
1806
  path: {
1807
+ id: data.id,
1507
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'
1508
1815
  }
1509
1816
  });
1510
1817
  }
@@ -1515,16 +1822,20 @@ export class RecurringForecastService {
1515
1822
  * Get cash flow forecast
1516
1823
  * Returns predicted outflows for the next N months based on active recurring rules
1517
1824
  * @param data The data for the request.
1825
+ * @param data.region Region code for tenant context
1518
1826
  * @param data.months Number of months to forecast (1-12, default 3)
1519
1827
  * @returns ForecastResponseDto Forecast retrieved successfully
1520
1828
  * @throws ApiError
1521
1829
  */
1522
1830
  public static forecastControllerGetForecast(
1523
- data: ForecastControllerGetForecastData = {}
1831
+ data: ForecastControllerGetForecastData
1524
1832
  ): CancelablePromise<ForecastControllerGetForecastResponse> {
1525
1833
  return __request(OpenAPI, {
1526
1834
  method: 'GET',
1527
1835
  url: '/api/v1/{region}/bean/recurring/forecast',
1836
+ path: {
1837
+ region: data.region
1838
+ },
1528
1839
  query: {
1529
1840
  months: data.months
1530
1841
  }
@@ -1534,19 +1845,29 @@ export class RecurringForecastService {
1534
1845
 
1535
1846
  export class BeanTransactionRulesService {
1536
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.
1537
1850
  * @param data The data for the request.
1538
1851
  * @param data.region Region code for tenant context
1539
- * @returns unknown
1852
+ * @param data.requestBody
1853
+ * @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
1540
1854
  * @throws ApiError
1541
1855
  */
1542
- public static transactionRuleController(
1543
- data: TransactionRuleControllerData
1544
- ): CancelablePromise<TransactionRuleControllerResponse> {
1856
+ public static transactionRuleControllerCreate(
1857
+ data: TransactionRuleControllerCreateData
1858
+ ): CancelablePromise<TransactionRuleControllerCreateResponse> {
1545
1859
  return __request(OpenAPI, {
1546
1860
  method: 'POST',
1547
1861
  url: '/api/v1/{region}/bean/transaction-rules',
1548
1862
  path: {
1549
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'
1550
1871
  }
1551
1872
  });
1552
1873
  }
@@ -1605,25 +1926,34 @@ export class BeanTransactionRulesService {
1605
1926
  body: data.requestBody,
1606
1927
  mediaType: 'application/json',
1607
1928
  errors: {
1929
+ 400: 'Validation failed',
1608
1930
  401: 'Unauthorized'
1609
1931
  }
1610
1932
  });
1611
1933
  }
1612
1934
 
1613
1935
  /**
1936
+ * Bulk create transaction rules
1614
1937
  * @param data The data for the request.
1615
1938
  * @param data.region Region code for tenant context
1616
- * @returns unknown
1939
+ * @param data.requestBody
1940
+ * @returns BulkCreateRulesResponseDto Bulk create completed
1617
1941
  * @throws ApiError
1618
1942
  */
1619
- public static transactionRuleController1(
1620
- data: TransactionRuleController1Data
1621
- ): CancelablePromise<TransactionRuleController1Response> {
1943
+ public static transactionRuleControllerBulkCreate(
1944
+ data: TransactionRuleControllerBulkCreateData
1945
+ ): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
1622
1946
  return __request(OpenAPI, {
1623
1947
  method: 'POST',
1624
1948
  url: '/api/v1/{region}/bean/transaction-rules/bulk',
1625
1949
  path: {
1626
1950
  region: data.region
1951
+ },
1952
+ body: data.requestBody,
1953
+ mediaType: 'application/json',
1954
+ errors: {
1955
+ 400: 'Invalid bulk create data',
1956
+ 401: 'Unauthorized'
1627
1957
  }
1628
1958
  });
1629
1959
  }
@@ -1704,37 +2034,59 @@ export class BeanTransactionRulesService {
1704
2034
  }
1705
2035
 
1706
2036
  /**
2037
+ * Update a transaction rule
1707
2038
  * @param data The data for the request.
2039
+ * @param data.ruleId Rule ID to update
1708
2040
  * @param data.region Region code for tenant context
1709
- * @returns unknown
2041
+ * @param data.requestBody
2042
+ * @returns TransactionRuleResponseDto Rule updated successfully
1710
2043
  * @throws ApiError
1711
2044
  */
1712
- public static transactionRuleController2(
1713
- data: TransactionRuleController2Data
1714
- ): CancelablePromise<TransactionRuleController2Response> {
2045
+ public static transactionRuleControllerUpdate(
2046
+ data: TransactionRuleControllerUpdateData
2047
+ ): CancelablePromise<TransactionRuleControllerUpdateResponse> {
1715
2048
  return __request(OpenAPI, {
1716
2049
  method: 'PUT',
1717
2050
  url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1718
2051
  path: {
2052
+ ruleId: data.ruleId,
1719
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'
1720
2063
  }
1721
2064
  });
1722
2065
  }
1723
2066
 
1724
2067
  /**
2068
+ * Delete a transaction rule
1725
2069
  * @param data The data for the request.
2070
+ * @param data.ruleId Rule ID to delete
1726
2071
  * @param data.region Region code for tenant context
1727
- * @returns void
2072
+ * @returns void Rule deleted successfully
1728
2073
  * @throws ApiError
1729
2074
  */
1730
- public static transactionRuleController3(
1731
- data: TransactionRuleController3Data
1732
- ): CancelablePromise<TransactionRuleController3Response> {
2075
+ public static transactionRuleControllerDelete(
2076
+ data: TransactionRuleControllerDeleteData
2077
+ ): CancelablePromise<TransactionRuleControllerDeleteResponse> {
1733
2078
  return __request(OpenAPI, {
1734
2079
  method: 'DELETE',
1735
2080
  url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1736
2081
  path: {
2082
+ ruleId: data.ruleId,
1737
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'
1738
2090
  }
1739
2091
  });
1740
2092
  }
@@ -1974,24 +2326,67 @@ export class PropertiesService {
1974
2326
  }
1975
2327
 
1976
2328
  /**
1977
- * @returns unknown
2329
+ * Update a system property
2330
+ * @param data The data for the request.
2331
+ * @param data.key Property key
2332
+ * @param data.requestBody
2333
+ * @returns unknown Property updated successfully
1978
2334
  * @throws ApiError
1979
2335
  */
1980
- public static propertyController(): CancelablePromise<PropertyControllerResponse> {
2336
+ public static propertyControllerUpdate(
2337
+ data: PropertyControllerUpdateData
2338
+ ): CancelablePromise<PropertyControllerUpdateResponse> {
1981
2339
  return __request(OpenAPI, {
1982
2340
  method: 'PUT',
1983
- url: '/api/v1/admin/properties/{key}'
2341
+ url: '/api/v1/admin/properties/{key}',
2342
+ path: {
2343
+ key: data.key
2344
+ },
2345
+ body: data.requestBody,
2346
+ mediaType: 'application/json',
2347
+ errors: {
2348
+ 401: 'Unauthorized',
2349
+ 403: 'Forbidden - insufficient permissions'
2350
+ }
1984
2351
  });
1985
2352
  }
1986
2353
 
1987
2354
  /**
1988
- * @returns void
2355
+ * Delete a system property
2356
+ * @param data The data for the request.
2357
+ * @param data.key Property key
2358
+ * @returns void Property deleted successfully
1989
2359
  * @throws ApiError
1990
2360
  */
1991
- public static propertyController1(): CancelablePromise<PropertyController1Response> {
2361
+ public static propertyControllerDelete(
2362
+ data: PropertyControllerDeleteData
2363
+ ): CancelablePromise<PropertyControllerDeleteResponse> {
1992
2364
  return __request(OpenAPI, {
1993
2365
  method: 'DELETE',
1994
- url: '/api/v1/admin/properties/{key}'
2366
+ url: '/api/v1/admin/properties/{key}',
2367
+ path: {
2368
+ key: data.key
2369
+ },
2370
+ errors: {
2371
+ 401: 'Unauthorized',
2372
+ 403: 'Forbidden - insufficient permissions',
2373
+ 404: 'Property not found'
2374
+ }
2375
+ });
2376
+ }
2377
+ }
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'
1995
2390
  });
1996
2391
  }
1997
2392
  }
@@ -2001,6 +2396,7 @@ export class BeanImportService {
2001
2396
  * Import a bill file
2002
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).
2003
2398
  * @param data The data for the request.
2399
+ * @param data.region Region code for tenant context
2004
2400
  * @param data.formData Bill file to import
2005
2401
  * @returns ImportResultDto File imported successfully
2006
2402
  * @throws ApiError
@@ -2011,6 +2407,9 @@ export class BeanImportService {
2011
2407
  return __request(OpenAPI, {
2012
2408
  method: 'POST',
2013
2409
  url: '/api/v1/{region}/bean/import/file',
2410
+ path: {
2411
+ region: data.region
2412
+ },
2014
2413
  formData: data.formData,
2015
2414
  mediaType: 'multipart/form-data',
2016
2415
  errors: {
@@ -2026,6 +2425,7 @@ export class BeanImportService {
2026
2425
  * Identify file type
2027
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.
2028
2427
  * @param data The data for the request.
2428
+ * @param data.region Region code for tenant context
2029
2429
  * @param data.formData File to identify
2030
2430
  * @returns IdentifyResultDto File identification result
2031
2431
  * @throws ApiError
@@ -2036,6 +2436,9 @@ export class BeanImportService {
2036
2436
  return __request(OpenAPI, {
2037
2437
  method: 'POST',
2038
2438
  url: '/api/v1/{region}/bean/import/identify',
2439
+ path: {
2440
+ region: data.region
2441
+ },
2039
2442
  formData: data.formData,
2040
2443
  mediaType: 'multipart/form-data',
2041
2444
  errors: {
@@ -2044,6 +2447,32 @@ export class BeanImportService {
2044
2447
  });
2045
2448
  }
2046
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
+
2047
2476
  /**
2048
2477
  * Get importer configuration
2049
2478
  * Returns the current configuration for the specified importer. Creates default configuration if none exists.
@@ -2071,40 +2500,173 @@ export class BeanImportService {
2071
2500
  }
2072
2501
 
2073
2502
  /**
2503
+ * Update importer configuration
2504
+ * Updates the configuration for the specified importer. Partial updates are supported.
2074
2505
  * @param data The data for the request.
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
2075
2507
  * @param data.region Region code for tenant context
2076
- * @returns unknown
2508
+ * @param data.requestBody Partial configuration update. Only provided fields will be updated.
2509
+ * @returns ImporterConfigDto Configuration updated successfully
2077
2510
  * @throws ApiError
2078
2511
  */
2079
- public static importerConfigController(
2080
- data: ImporterConfigControllerData
2081
- ): CancelablePromise<ImporterConfigControllerResponse> {
2512
+ public static importerConfigControllerUpdateConfig(
2513
+ data: ImporterConfigControllerUpdateConfigData
2514
+ ): CancelablePromise<ImporterConfigControllerUpdateConfigResponse> {
2082
2515
  return __request(OpenAPI, {
2083
2516
  method: 'PUT',
2084
2517
  url: '/api/v1/{region}/bean/import/config/{importerId}',
2085
2518
  path: {
2519
+ importerId: data.importerId,
2086
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'
2087
2527
  }
2088
2528
  });
2089
2529
  }
2090
2530
 
2091
2531
  /**
2532
+ * Reset configuration to default
2533
+ * Resets the configuration for the specified importer to default values. This operation overwrites all existing configuration.
2092
2534
  * @param data The data for the request.
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
2093
2536
  * @param data.region Region code for tenant context
2094
- * @returns unknown
2537
+ * @returns ImporterConfigDto Configuration reset successfully
2095
2538
  * @throws ApiError
2096
2539
  */
2097
- public static importerConfigController1(
2098
- data: ImporterConfigController1Data
2099
- ): CancelablePromise<ImporterConfigController1Response> {
2540
+ public static importerConfigControllerResetConfig(
2541
+ data: ImporterConfigControllerResetConfigData
2542
+ ): CancelablePromise<ImporterConfigControllerResetConfigResponse> {
2100
2543
  return __request(OpenAPI, {
2101
2544
  method: 'POST',
2102
2545
  url: '/api/v1/{region}/bean/import/config/{importerId}/reset',
2103
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,
2104
2619
  region: data.region
2105
2620
  }
2106
2621
  });
2107
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
+ }
2108
2670
  }
2109
2671
 
2110
2672
  export class ProviderSyncService {
@@ -2161,13 +2723,20 @@ export class ProviderSyncService {
2161
2723
  /**
2162
2724
  * Get supported providers
2163
2725
  * Returns a list of all providers supported by the sync endpoint.
2726
+ * @param data The data for the request.
2727
+ * @param data.region Region code for tenant context
2164
2728
  * @returns SupportedProvidersResponseDto List of supported providers
2165
2729
  * @throws ApiError
2166
2730
  */
2167
- public static providerSyncControllerGetSupportedProviders(): CancelablePromise<ProviderSyncControllerGetSupportedProvidersResponse> {
2731
+ public static providerSyncControllerGetSupportedProviders(
2732
+ data: ProviderSyncControllerGetSupportedProvidersData
2733
+ ): CancelablePromise<ProviderSyncControllerGetSupportedProvidersResponse> {
2168
2734
  return __request(OpenAPI, {
2169
2735
  method: 'GET',
2170
2736
  url: '/api/v1/{region}/bean/import/provider/supported',
2737
+ path: {
2738
+ region: data.region
2739
+ },
2171
2740
  errors: {
2172
2741
  401: 'Missing or invalid authentication'
2173
2742
  }
@@ -2179,6 +2748,7 @@ export class ProviderSyncService {
2179
2748
  * Returns whether a specific provider is supported.
2180
2749
  * @param data The data for the request.
2181
2750
  * @param data.providerName Provider name to check
2751
+ * @param data.region Region code for tenant context
2182
2752
  * @returns unknown Provider support status
2183
2753
  * @throws ApiError
2184
2754
  */
@@ -2189,7 +2759,8 @@ export class ProviderSyncService {
2189
2759
  method: 'GET',
2190
2760
  url: '/api/v1/{region}/bean/import/provider/{providerName}/supported',
2191
2761
  path: {
2192
- providerName: data.providerName
2762
+ providerName: data.providerName,
2763
+ region: data.region
2193
2764
  },
2194
2765
  errors: {
2195
2766
  401: 'Missing or invalid authentication'
@@ -2202,6 +2773,7 @@ export class ImportTelemetryService {
2202
2773
  /**
2203
2774
  * Receive anonymous parser failure telemetry
2204
2775
  * @param data The data for the request.
2776
+ * @param data.region Region code for tenant context
2205
2777
  * @param data.requestBody
2206
2778
  * @returns unknown Telemetry report received
2207
2779
  * @throws ApiError
@@ -2212,6 +2784,9 @@ export class ImportTelemetryService {
2212
2784
  return __request(OpenAPI, {
2213
2785
  method: 'POST',
2214
2786
  url: '/api/v1/{region}/bean/import/parser-telemetry',
2787
+ path: {
2788
+ region: data.region
2789
+ },
2215
2790
  body: data.requestBody,
2216
2791
  mediaType: 'application/json',
2217
2792
  errors: {
@@ -2226,6 +2801,7 @@ export class BeanNlpService {
2226
2801
  * Process natural language input
2227
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"
2228
2803
  * @param data The data for the request.
2804
+ * @param data.region Region code for tenant context
2229
2805
  * @param data.requestBody Natural language transaction input with optional session ID
2230
2806
  * @returns NlpResponseDto NLP processing result - either created transaction or asking for more info
2231
2807
  * @throws ApiError
@@ -2236,6 +2812,9 @@ export class BeanNlpService {
2236
2812
  return __request(OpenAPI, {
2237
2813
  method: 'POST',
2238
2814
  url: '/api/v1/{region}/bean/nlp/process',
2815
+ path: {
2816
+ region: data.region
2817
+ },
2239
2818
  body: data.requestBody,
2240
2819
  mediaType: 'application/json',
2241
2820
  errors: {
@@ -2249,16 +2828,20 @@ export class BeanNlpService {
2249
2828
  * Clear dialogue session
2250
2829
  * Clear the current NLP dialogue session. Use this to cancel an ongoing multi-turn dialogue.
2251
2830
  * @param data The data for the request.
2831
+ * @param data.region Region code for tenant context
2252
2832
  * @param data.sessionId Specific session ID to clear (defaults to user session)
2253
2833
  * @returns void Session cleared successfully
2254
2834
  * @throws ApiError
2255
2835
  */
2256
2836
  public static nlpControllerClearSession(
2257
- data: NlpControllerClearSessionData = {}
2837
+ data: NlpControllerClearSessionData
2258
2838
  ): CancelablePromise<NlpControllerClearSessionResponse> {
2259
2839
  return __request(OpenAPI, {
2260
2840
  method: 'DELETE',
2261
2841
  url: '/api/v1/{region}/bean/nlp/session',
2842
+ path: {
2843
+ region: data.region
2844
+ },
2262
2845
  query: {
2263
2846
  sessionId: data.sessionId
2264
2847
  },
@@ -2272,198 +2855,28 @@ export class BeanNlpService {
2272
2855
  * Get current session state
2273
2856
  * Get the current NLP dialogue session state. Useful for debugging and displaying session context in UI.
2274
2857
  * @param data The data for the request.
2858
+ * @param data.region Region code for tenant context
2275
2859
  * @param data.sessionId Specific session ID to get (defaults to user session)
2276
2860
  * @returns unknown Current session state (or null if no active session)
2277
2861
  * @throws ApiError
2278
2862
  */
2279
2863
  public static nlpControllerGetSession(
2280
- data: NlpControllerGetSessionData = {}
2864
+ data: NlpControllerGetSessionData
2281
2865
  ): CancelablePromise<NlpControllerGetSessionResponse> {
2282
2866
  return __request(OpenAPI, {
2283
2867
  method: 'GET',
2284
2868
  url: '/api/v1/{region}/bean/nlp/session',
2285
- query: {
2286
- sessionId: data.sessionId
2287
- },
2288
- errors: {
2289
- 401: 'Unauthorized'
2290
- }
2291
- });
2292
- }
2293
- }
2294
-
2295
- export class BeanPlatformsService {
2296
- /**
2297
- * Get all platforms with statistics
2298
- * @returns unknown List of platforms with binding and account counts
2299
- * @throws ApiError
2300
- */
2301
- public static platformControllerFindAll(): CancelablePromise<PlatformControllerFindAllResponse> {
2302
- return __request(OpenAPI, {
2303
- method: 'GET',
2304
- url: '/api/v1/bean/platforms'
2305
- });
2306
- }
2307
-
2308
- /**
2309
- * @returns unknown
2310
- * @throws ApiError
2311
- */
2312
- public static platformController(): CancelablePromise<PlatformControllerResponse> {
2313
- return __request(OpenAPI, {
2314
- method: 'POST',
2315
- url: '/api/v1/bean/platforms'
2316
- });
2317
- }
2318
-
2319
- /**
2320
- * Get platform list for current user
2321
- * @returns unknown List of platforms with user binding status
2322
- * @throws ApiError
2323
- */
2324
- public static platformControllerGetPlatformList(): CancelablePromise<PlatformControllerGetPlatformListResponse> {
2325
- return __request(OpenAPI, {
2326
- method: 'GET',
2327
- url: '/api/v1/bean/platforms/list'
2328
- });
2329
- }
2330
-
2331
- /**
2332
- * @returns unknown
2333
- * @throws ApiError
2334
- */
2335
- public static platformController1(): CancelablePromise<PlatformController1Response> {
2336
- return __request(OpenAPI, {
2337
- method: 'PUT',
2338
- url: '/api/v1/bean/platforms/{id}'
2339
- });
2340
- }
2341
-
2342
- /**
2343
- * @returns void
2344
- * @throws ApiError
2345
- */
2346
- public static platformController2(): CancelablePromise<PlatformController2Response> {
2347
- return __request(OpenAPI, {
2348
- method: 'DELETE',
2349
- url: '/api/v1/bean/platforms/{id}'
2350
- });
2351
- }
2352
- }
2353
-
2354
- export class SymbolsService {
2355
- /**
2356
- * Search for symbols
2357
- * Search symbols by query with optional filters for asset class, area, and indices
2358
- * @param data The data for the request.
2359
- * @param data.includeIndices Include index symbols in results
2360
- * @param data.assetSubClass Asset sub-class filter
2361
- * @param data.assetClass Asset class filter
2362
- * @param data.area Geographic area filter (e.g., CN, US)
2363
- * @param data.query Search query string
2364
- * @returns unknown Symbols found successfully
2365
- * @throws ApiError
2366
- */
2367
- public static symbolControllerLookupSymbol(
2368
- data: SymbolControllerLookupSymbolData = {}
2369
- ): CancelablePromise<SymbolControllerLookupSymbolResponse> {
2370
- return __request(OpenAPI, {
2371
- method: 'GET',
2372
- url: '/api/v1/market/symbols/lookup',
2373
- query: {
2374
- includeIndices: data.includeIndices,
2375
- assetSubClass: data.assetSubClass,
2376
- assetClass: data.assetClass,
2377
- area: data.area,
2378
- query: data.query
2379
- },
2380
- errors: {
2381
- 400: 'Invalid query parameters'
2382
- }
2383
- });
2384
- }
2385
-
2386
- /**
2387
- * Get symbol data
2388
- * Retrieve detailed symbol information including optional historical data
2389
- * @param data The data for the request.
2390
- * @param data.dataSource Data source provider
2391
- * @param data.symbol Symbol identifier (e.g., ticker code)
2392
- * @param data.includeHistoricalData Include historical price data (0 or 1)
2393
- * @returns unknown Symbol data retrieved successfully
2394
- * @throws ApiError
2395
- */
2396
- public static symbolControllerGetSymbolData(
2397
- data: SymbolControllerGetSymbolDataData
2398
- ): CancelablePromise<SymbolControllerGetSymbolDataResponse> {
2399
- return __request(OpenAPI, {
2400
- method: 'GET',
2401
- url: '/api/v1/market/symbols/{dataSource}/{symbol}',
2402
2869
  path: {
2403
- dataSource: data.dataSource,
2404
- symbol: data.symbol
2870
+ region: data.region
2405
2871
  },
2406
2872
  query: {
2407
- includeHistoricalData: data.includeHistoricalData
2408
- },
2409
- errors: {
2410
- 400: 'Invalid data source',
2411
- 404: 'Symbol not found'
2412
- }
2413
- });
2414
- }
2415
-
2416
- /**
2417
- * Gather symbol data for specific date
2418
- * Retrieve historical symbol data for a specific date
2419
- * @param data The data for the request.
2420
- * @param data.dataSource Data source provider
2421
- * @param data.dateString Date in ISO 8601 format (YYYY-MM-DD)
2422
- * @param data.symbol Symbol identifier (e.g., ticker code)
2423
- * @returns unknown Historical data retrieved successfully
2424
- * @throws ApiError
2425
- */
2426
- public static symbolControllerGatherSymbolForDate(
2427
- data: SymbolControllerGatherSymbolForDateData
2428
- ): CancelablePromise<SymbolControllerGatherSymbolForDateResponse> {
2429
- return __request(OpenAPI, {
2430
- method: 'GET',
2431
- url: '/api/v1/market/symbols/{dataSource}/{symbol}/{dateString}',
2432
- path: {
2433
- dataSource: data.dataSource,
2434
- dateString: data.dateString,
2435
- symbol: data.symbol
2873
+ sessionId: data.sessionId
2436
2874
  },
2437
2875
  errors: {
2438
- 400: 'Invalid date format',
2439
- 404: 'Symbol data not found for specified date'
2876
+ 401: 'Unauthorized'
2440
2877
  }
2441
2878
  });
2442
2879
  }
2443
-
2444
- /**
2445
- * @returns unknown
2446
- * @throws ApiError
2447
- */
2448
- public static symbolController(): CancelablePromise<SymbolControllerResponse> {
2449
- return __request(OpenAPI, {
2450
- method: 'PUT',
2451
- url: '/api/v1/market/symbols/yahoo/batch-update'
2452
- });
2453
- }
2454
- }
2455
-
2456
- export class DefaultService {
2457
- /**
2458
- * @returns unknown
2459
- * @throws ApiError
2460
- */
2461
- public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
2462
- return __request(OpenAPI, {
2463
- method: 'POST',
2464
- url: '/api/v1/cache/flush'
2465
- });
2466
- }
2467
2880
  }
2468
2881
 
2469
2882
  export class DashboardService {
@@ -2471,16 +2884,20 @@ export class DashboardService {
2471
2884
  * Get net worth overview
2472
2885
  * Returns total net worth with breakdown of assets and liabilities
2473
2886
  * @param data The data for the request.
2887
+ * @param data.region Region code for tenant context
2474
2888
  * @param data.date Date for balance calculation (ISO 8601 format)
2475
2889
  * @returns NetWorthResponseDto Net worth retrieved successfully
2476
2890
  * @throws ApiError
2477
2891
  */
2478
2892
  public static dashboardControllerGetNetWorth(
2479
- data: DashboardControllerGetNetWorthData = {}
2893
+ data: DashboardControllerGetNetWorthData
2480
2894
  ): CancelablePromise<DashboardControllerGetNetWorthResponse> {
2481
2895
  return __request(OpenAPI, {
2482
2896
  method: 'GET',
2483
2897
  url: '/api/v1/{region}/dashboard/net-worth',
2898
+ path: {
2899
+ region: data.region
2900
+ },
2484
2901
  query: {
2485
2902
  date: data.date
2486
2903
  },
@@ -2494,17 +2911,21 @@ export class DashboardService {
2494
2911
  * Get accounts grouped by platform
2495
2912
  * Returns accounts with balances grouped by financial platform
2496
2913
  * @param data The data for the request.
2914
+ * @param data.region Region code for tenant context
2497
2915
  * @param data.groupBy Grouping strategy
2498
2916
  * @param data.date Date for balance calculation (ISO 8601 format)
2499
2917
  * @returns unknown Accounts retrieved successfully. Response type depends on groupBy parameter.
2500
2918
  * @throws ApiError
2501
2919
  */
2502
2920
  public static dashboardControllerGetAccounts(
2503
- data: DashboardControllerGetAccountsData = {}
2921
+ data: DashboardControllerGetAccountsData
2504
2922
  ): CancelablePromise<DashboardControllerGetAccountsResponse> {
2505
2923
  return __request(OpenAPI, {
2506
2924
  method: 'GET',
2507
2925
  url: '/api/v1/{region}/dashboard/accounts',
2926
+ path: {
2927
+ region: data.region
2928
+ },
2508
2929
  query: {
2509
2930
  groupBy: data.groupBy,
2510
2931
  date: data.date
@@ -2520,6 +2941,7 @@ export class DashboardService {
2520
2941
  * Returns income, expenses, and savings for a monthly period
2521
2942
  * @param data The data for the request.
2522
2943
  * @param data.period Period in YYYY-MM format
2944
+ * @param data.region Region code for tenant context
2523
2945
  * @returns CashFlowResponseDto Cash flow retrieved successfully
2524
2946
  * @throws ApiError
2525
2947
  */
@@ -2529,6 +2951,9 @@ export class DashboardService {
2529
2951
  return __request(OpenAPI, {
2530
2952
  method: 'GET',
2531
2953
  url: '/api/v1/{region}/dashboard/cash-flow',
2954
+ path: {
2955
+ region: data.region
2956
+ },
2532
2957
  query: {
2533
2958
  period: data.period
2534
2959
  },
@@ -2556,17 +2981,21 @@ export class ReportingService {
2556
2981
  * - `granularity`: Data granularity (day, week, month)
2557
2982
  *
2558
2983
  * @param data The data for the request.
2984
+ * @param data.region Region code for tenant context
2559
2985
  * @param data.period Time period
2560
2986
  * @param data.granularity Data granularity
2561
2987
  * @returns PortfolioTrendsResponseDto Trends retrieved successfully
2562
2988
  * @throws ApiError
2563
2989
  */
2564
2990
  public static reportingControllerGetPortfolioTrends(
2565
- data: ReportingControllerGetPortfolioTrendsData = {}
2991
+ data: ReportingControllerGetPortfolioTrendsData
2566
2992
  ): CancelablePromise<ReportingControllerGetPortfolioTrendsResponse> {
2567
2993
  return __request(OpenAPI, {
2568
2994
  method: 'GET',
2569
2995
  url: '/api/v1/{region}/reporting/portfolio/trends',
2996
+ path: {
2997
+ region: data.region
2998
+ },
2570
2999
  query: {
2571
3000
  period: data.period,
2572
3001
  granularity: data.granularity
@@ -2593,6 +3022,7 @@ export class ReportingService {
2593
3022
  * - Initial setup for new users
2594
3023
  *
2595
3024
  * @param data The data for the request.
3025
+ * @param data.region Region code for tenant context
2596
3026
  * @param data.requestBody Optional date (defaults to today)
2597
3027
  * @returns GenerateSnapshotResponse Snapshot generated successfully
2598
3028
  * @throws ApiError
@@ -2603,6 +3033,9 @@ export class ReportingService {
2603
3033
  return __request(OpenAPI, {
2604
3034
  method: 'POST',
2605
3035
  url: '/api/v1/{region}/reporting/snapshots/generate',
3036
+ path: {
3037
+ region: data.region
3038
+ },
2606
3039
  body: data.requestBody,
2607
3040
  mediaType: 'application/json',
2608
3041
  errors: {
@@ -2628,6 +3061,7 @@ export class ReportingService {
2628
3061
  * - Existing snapshots are skipped (not regenerated)
2629
3062
  *
2630
3063
  * @param data The data for the request.
3064
+ * @param data.region Region code for tenant context
2631
3065
  * @param data.requestBody
2632
3066
  * @returns BackfillSnapshotsResponse Backfill completed successfully
2633
3067
  * @throws ApiError
@@ -2638,6 +3072,9 @@ export class ReportingService {
2638
3072
  return __request(OpenAPI, {
2639
3073
  method: 'POST',
2640
3074
  url: '/api/v1/{region}/reporting/snapshots/backfill',
3075
+ path: {
3076
+ region: data.region
3077
+ },
2641
3078
  body: data.requestBody,
2642
3079
  mediaType: 'application/json',
2643
3080
  errors: {
@@ -2651,13 +3088,18 @@ export class ReportingService {
2651
3088
 
2652
3089
  export class ApiKeysService {
2653
3090
  /**
2654
- * @returns unknown
3091
+ * Create API key
3092
+ * Generates a new API key for the authenticated user
3093
+ * @returns unknown API key created successfully
2655
3094
  * @throws ApiError
2656
3095
  */
2657
- public static apiKeysController(): CancelablePromise<ApiKeysControllerResponse> {
3096
+ public static apiKeysControllerCreateApiKey(): CancelablePromise<ApiKeysControllerCreateApiKeyResponse> {
2658
3097
  return __request(OpenAPI, {
2659
3098
  method: 'POST',
2660
- url: '/api/v1/auth/api-keys'
3099
+ url: '/api/v1/auth/api-keys',
3100
+ errors: {
3101
+ 403: 'Insufficient permissions to create API key'
3102
+ }
2661
3103
  });
2662
3104
  }
2663
3105
  }
@@ -2685,6 +3127,19 @@ export class AuthService {
2685
3127
  }
2686
3128
  }
2687
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
+
2688
3143
  export class ExchangeRateService {
2689
3144
  /**
2690
3145
  * Get exchange rate for currency pair
@@ -2743,6 +3198,21 @@ export class HealthService {
2743
3198
  });
2744
3199
  }
2745
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
+
2746
3216
  /**
2747
3217
  * Check Redis connection health
2748
3218
  * @returns unknown Redis is healthy
@@ -2811,69 +3281,6 @@ export class HealthService {
2811
3281
  }
2812
3282
  });
2813
3283
  }
2814
-
2815
- /**
2816
- * Check health of a specific data enhancer
2817
- * @param data The data for the request.
2818
- * @param data.name Data enhancer name
2819
- * @returns unknown Data enhancer is healthy
2820
- * @throws ApiError
2821
- */
2822
- public static healthControllerGetHealthOfDataEnhancer(
2823
- data: HealthControllerGetHealthOfDataEnhancerData
2824
- ): CancelablePromise<HealthControllerGetHealthOfDataEnhancerResponse> {
2825
- return __request(OpenAPI, {
2826
- method: 'GET',
2827
- url: '/api/v1/health/data-enhancer/{name}',
2828
- path: {
2829
- name: data.name
2830
- },
2831
- errors: {
2832
- 401: 'Unauthorized',
2833
- 503: 'Data enhancer unavailable'
2834
- }
2835
- });
2836
- }
2837
-
2838
- /**
2839
- * Check health of all data providers
2840
- * @returns unknown Data providers health status
2841
- * @throws ApiError
2842
- */
2843
- public static healthControllerCheckDataProviders(): CancelablePromise<HealthControllerCheckDataProvidersResponse> {
2844
- return __request(OpenAPI, {
2845
- method: 'GET',
2846
- url: '/api/v1/health/data-providers',
2847
- errors: {
2848
- 401: 'Unauthorized',
2849
- 503: 'Data providers check failed'
2850
- }
2851
- });
2852
- }
2853
-
2854
- /**
2855
- * Check health of a specific data provider
2856
- * @param data The data for the request.
2857
- * @param data.dataSource Data source identifier
2858
- * @returns unknown Data provider is healthy
2859
- * @throws ApiError
2860
- */
2861
- public static healthControllerGetHealthOfDataProvider(
2862
- data: HealthControllerGetHealthOfDataProviderData
2863
- ): CancelablePromise<HealthControllerGetHealthOfDataProviderResponse> {
2864
- return __request(OpenAPI, {
2865
- method: 'GET',
2866
- url: '/api/v1/health/data-provider/{dataSource}',
2867
- path: {
2868
- dataSource: data.dataSource
2869
- },
2870
- errors: {
2871
- 400: 'Invalid data source',
2872
- 401: 'Unauthorized',
2873
- 503: 'Data provider unavailable'
2874
- }
2875
- });
2876
- }
2877
3284
  }
2878
3285
 
2879
3286
  export class InfoService {
@@ -2889,93 +3296,3 @@ export class InfoService {
2889
3296
  });
2890
3297
  }
2891
3298
  }
2892
-
2893
- export class LogosService {
2894
- /**
2895
- * Get asset logo by data source and symbol
2896
- * @param data The data for the request.
2897
- * @param data.dataSource Data source identifier (e.g., YAHOO, COINGECKO)
2898
- * @param data.symbol Asset symbol (e.g., AAPL, BTC)
2899
- * @returns unknown Logo image stream (favicon)
2900
- * @throws ApiError
2901
- */
2902
- public static logoControllerGetLogoByDataSourceAndSymbol(
2903
- data: LogoControllerGetLogoByDataSourceAndSymbolData
2904
- ): CancelablePromise<LogoControllerGetLogoByDataSourceAndSymbolResponse> {
2905
- return __request(OpenAPI, {
2906
- method: 'GET',
2907
- url: '/api/v1/market/logos/{dataSource}/{symbol}',
2908
- path: {
2909
- dataSource: data.dataSource,
2910
- symbol: data.symbol
2911
- },
2912
- errors: {
2913
- 401: 'Unauthorized',
2914
- 404: 'Logo not found for the specified asset',
2915
- 503: 'Service unavailable'
2916
- }
2917
- });
2918
- }
2919
-
2920
- /**
2921
- * Get website favicon by URL
2922
- * @param data The data for the request.
2923
- * @param data.url Website URL to fetch favicon from
2924
- * @returns unknown Logo image stream (favicon)
2925
- * @throws ApiError
2926
- */
2927
- public static logoControllerGetLogoByUrl(
2928
- data: LogoControllerGetLogoByUrlData
2929
- ): CancelablePromise<LogoControllerGetLogoByUrlResponse> {
2930
- return __request(OpenAPI, {
2931
- method: 'GET',
2932
- url: '/api/v1/market/logos',
2933
- query: {
2934
- url: data.url
2935
- },
2936
- errors: {
2937
- 401: 'Unauthorized',
2938
- 503: 'Service unavailable'
2939
- }
2940
- });
2941
- }
2942
- }
2943
-
2944
- export class MarketDataService {
2945
- /**
2946
- * Get market data by symbol
2947
- * Retrieves market data and asset profile for a given symbol and data source
2948
- * @param data The data for the request.
2949
- * @param data.dataSource Data source provider
2950
- * @param data.symbol Symbol code
2951
- * @returns unknown Market data retrieved successfully
2952
- * @throws ApiError
2953
- */
2954
- public static marketDataControllerGetMarketDataBySymbol(
2955
- data: MarketDataControllerGetMarketDataBySymbolData
2956
- ): CancelablePromise<MarketDataControllerGetMarketDataBySymbolResponse> {
2957
- return __request(OpenAPI, {
2958
- method: 'GET',
2959
- url: '/api/v1/market-data/{dataSource}/{symbol}',
2960
- path: {
2961
- dataSource: data.dataSource,
2962
- symbol: data.symbol
2963
- },
2964
- errors: {
2965
- 403: 'Insufficient permissions to read market data',
2966
- 404: 'Market data not found'
2967
- }
2968
- });
2969
- }
2970
-
2971
- /**
2972
- * @returns unknown
2973
- * @throws ApiError
2974
- */
2975
- public static marketDataController(): CancelablePromise<MarketDataControllerResponse> {
2976
- return __request(OpenAPI, {
2977
- method: 'POST',
2978
- url: '/api/v1/market-data/{dataSource}/{symbol}'
2979
- });
2980
- }
2981
- }