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