@firela/api-types 0.0.0-canary.69a6df79 → 0.0.0-canary.69e3253

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.
@@ -31,6 +31,8 @@ import type {
31
31
  TransactionControllerListResponse,
32
32
  TransactionControllerCreateBatchData,
33
33
  TransactionControllerCreateBatchResponse,
34
+ TransactionControllerBatchVoidData,
35
+ TransactionControllerBatchVoidResponse,
34
36
  TransactionControllerCorrectData,
35
37
  TransactionControllerCorrectResponse,
36
38
  TransactionControllerSuggestTagsData,
@@ -57,6 +59,48 @@ import type {
57
59
  ReviewControllerUndoResponse,
58
60
  ReviewControllerBatchResolveData,
59
61
  ReviewControllerBatchResolveResponse,
62
+ TransactionRuleControllerCreateData,
63
+ TransactionRuleControllerCreateResponse,
64
+ TransactionRuleControllerListData,
65
+ TransactionRuleControllerListResponse,
66
+ TransactionRuleControllerValidateData,
67
+ TransactionRuleControllerValidateResponse,
68
+ TransactionRuleControllerBulkCreateData,
69
+ TransactionRuleControllerBulkCreateResponse,
70
+ TransactionRuleControllerExportData,
71
+ TransactionRuleControllerExportResponse,
72
+ TransactionRuleControllerGetStatisticsData,
73
+ TransactionRuleControllerGetStatisticsResponse,
74
+ TransactionRuleControllerGetDetailData,
75
+ TransactionRuleControllerGetDetailResponse,
76
+ TransactionRuleControllerUpdateData,
77
+ TransactionRuleControllerUpdateResponse,
78
+ TransactionRuleControllerDeleteData,
79
+ TransactionRuleControllerDeleteResponse,
80
+ TransactionRuleControllerTestData,
81
+ TransactionRuleControllerTestResponse,
82
+ UserControllerDeleteOwnUserData,
83
+ UserControllerDeleteOwnUserResponse,
84
+ UserControllerGetUserData,
85
+ UserControllerGetUserResponse,
86
+ UserControllerSignupUserData,
87
+ UserControllerSignupUserResponse,
88
+ UserControllerDeleteUserData,
89
+ UserControllerDeleteUserResponse,
90
+ UserControllerGetUserInfoData,
91
+ UserControllerGetUserInfoResponse,
92
+ UserControllerUpdateUserSettingData,
93
+ UserControllerUpdateUserSettingResponse,
94
+ UserControllerGetAllUserSettingsByPageData,
95
+ UserControllerGetAllUserSettingsByPageResponse,
96
+ UserControllerGetAssetLiabilitySummaryResponse,
97
+ PropertyControllerGetAllResponse,
98
+ PropertyControllerGetByKeyData,
99
+ PropertyControllerGetByKeyResponse,
100
+ PropertyControllerUpdateData,
101
+ PropertyControllerUpdateResponse,
102
+ PropertyControllerDeleteData,
103
+ PropertyControllerDeleteResponse,
60
104
  PayeeControllerCreateData,
61
105
  PayeeControllerCreateResponse,
62
106
  PayeeControllerFindAllData,
@@ -85,6 +129,7 @@ import type {
85
129
  PayeeProfileAdminControllerVerifyResponse,
86
130
  PayeeProfileAdminControllerUnverifyData,
87
131
  PayeeProfileAdminControllerUnverifyResponse,
132
+ PayeeProfileControllerListActiveResponse,
88
133
  CommodityControllerCreateData,
89
134
  CommodityControllerCreateResponse,
90
135
  CommodityControllerFindAllData,
@@ -99,6 +144,14 @@ import type {
99
144
  CommodityControllerGetOrCreateResponse,
100
145
  CommodityControllerBulkCreateData,
101
146
  CommodityControllerBulkCreateResponse,
147
+ ReportingControllerGetPortfolioTrendsData,
148
+ ReportingControllerGetPortfolioTrendsResponse,
149
+ ReportingControllerGetCashFlowTrendsData,
150
+ ReportingControllerGetCashFlowTrendsResponse,
151
+ ReportingControllerGenerateSnapshotData,
152
+ ReportingControllerGenerateSnapshotResponse,
153
+ ReportingControllerBackfillSnapshotsData,
154
+ ReportingControllerBackfillSnapshotsResponse,
102
155
  PriceControllerCreateData,
103
156
  PriceControllerCreateResponse,
104
157
  PriceControllerFindAllData,
@@ -143,56 +196,6 @@ import type {
143
196
  ExpectedTransactionControllerEnterNowResponse,
144
197
  ForecastControllerGetForecastData,
145
198
  ForecastControllerGetForecastResponse,
146
- ReportingControllerGetPortfolioTrendsData,
147
- ReportingControllerGetPortfolioTrendsResponse,
148
- ReportingControllerGetCashFlowTrendsData,
149
- ReportingControllerGetCashFlowTrendsResponse,
150
- ReportingControllerGenerateSnapshotData,
151
- ReportingControllerGenerateSnapshotResponse,
152
- ReportingControllerBackfillSnapshotsData,
153
- ReportingControllerBackfillSnapshotsResponse,
154
- UserControllerDeleteOwnUserData,
155
- UserControllerDeleteOwnUserResponse,
156
- UserControllerGetUserData,
157
- UserControllerGetUserResponse,
158
- UserControllerSignupUserData,
159
- UserControllerSignupUserResponse,
160
- UserControllerDeleteUserData,
161
- UserControllerDeleteUserResponse,
162
- UserControllerGetUserInfoData,
163
- UserControllerGetUserInfoResponse,
164
- UserControllerUpdateUserSettingData,
165
- UserControllerUpdateUserSettingResponse,
166
- UserControllerGetAllUserSettingsByPageData,
167
- UserControllerGetAllUserSettingsByPageResponse,
168
- UserControllerGetAssetLiabilitySummaryResponse,
169
- PropertyControllerGetAllResponse,
170
- PropertyControllerGetByKeyData,
171
- PropertyControllerGetByKeyResponse,
172
- PropertyControllerUpdateData,
173
- PropertyControllerUpdateResponse,
174
- PropertyControllerDeleteData,
175
- PropertyControllerDeleteResponse,
176
- TransactionRuleControllerCreateData,
177
- TransactionRuleControllerCreateResponse,
178
- TransactionRuleControllerListData,
179
- TransactionRuleControllerListResponse,
180
- TransactionRuleControllerValidateData,
181
- TransactionRuleControllerValidateResponse,
182
- TransactionRuleControllerBulkCreateData,
183
- TransactionRuleControllerBulkCreateResponse,
184
- TransactionRuleControllerExportData,
185
- TransactionRuleControllerExportResponse,
186
- TransactionRuleControllerGetStatisticsData,
187
- TransactionRuleControllerGetStatisticsResponse,
188
- TransactionRuleControllerGetDetailData,
189
- TransactionRuleControllerGetDetailResponse,
190
- TransactionRuleControllerUpdateData,
191
- TransactionRuleControllerUpdateResponse,
192
- TransactionRuleControllerDeleteData,
193
- TransactionRuleControllerDeleteResponse,
194
- TransactionRuleControllerTestData,
195
- TransactionRuleControllerTestResponse,
196
199
  CategoryCatalogControllerListData,
197
200
  CategoryCatalogControllerListResponse,
198
201
  EventControllerCreateData,
@@ -217,6 +220,7 @@ import type {
217
220
  ReconciliationControllerPadResponse,
218
221
  ReconciliationControllerHistoryData,
219
222
  ReconciliationControllerHistoryResponse,
223
+ ExportControllerExportBeancountData,
220
224
  ExportControllerExportBeancountResponse,
221
225
  FileImportControllerImportFileData,
222
226
  FileImportControllerImportFileResponse,
@@ -263,6 +267,8 @@ import type {
263
267
  PlatformControllerGetPlatformListResponse,
264
268
  PlatformControllerMatchPlatformsData,
265
269
  PlatformControllerMatchPlatformsResponse,
270
+ PlatformControllerGetPlatformStandardsData,
271
+ PlatformControllerGetPlatformStandardsResponse,
266
272
  PlatformControllerUpdateData,
267
273
  PlatformControllerUpdateResponse,
268
274
  PlatformControllerDeleteData,
@@ -275,11 +281,15 @@ import type {
275
281
  DashboardControllerGetCashFlowResponse,
276
282
  DashboardControllerGetExpensesData,
277
283
  DashboardControllerGetExpensesResponse,
284
+ DashboardControllerGetAdvisorContextData,
285
+ DashboardControllerGetAdvisorContextResponse,
278
286
  HoldingPnlControllerGetHoldingPnlData,
279
287
  HoldingPnlControllerGetHoldingPnlResponse,
280
288
  ApiKeysControllerCreateApiKeyResponse,
281
289
  AuthControllerAccessTokenLoginData,
282
290
  AuthControllerAccessTokenLoginResponse,
291
+ AuthControllerAdvisorTokenLoginData,
292
+ AuthControllerAdvisorTokenLoginResponse,
283
293
  ParserContributionControllerCreateData,
284
294
  ParserContributionControllerCreateResponse,
285
295
  CacheControllerFlushCacheResponse,
@@ -335,7 +345,7 @@ export class BeanAccountsService {
335
345
  * @param data.type Filter by account type
336
346
  * @param data.status Filter by status
337
347
  * @param data.isCustom Filter by custom (user-created) accounts only
338
- * @param data.search Search term for account path
348
+ * @param data.search Search term matched against account path and user-set display name (case-insensitive)
339
349
  * @param data.limit Maximum number of results
340
350
  * @param data.offset Number of results to skip
341
351
  * @returns AccountListResponseDto Accounts retrieved successfully
@@ -531,11 +541,11 @@ export class BeanAccountsService {
531
541
  export class BeanAccountStandardsService {
532
542
  /**
533
543
  * Get account templates
534
- * Returns predefined account templates for a region. Supports filtering by account type and search term.
544
+ * Returns predefined account templates for a region. Supports filtering by account type and search term. Not-yet-open region codes return the universal-only catalog (#759).
535
545
  * @param data The data for the request.
536
- * @param data.region Region code (cn, us, de)
546
+ * @param data.region Region code (any ISO alpha-2; not-yet-open codes return the universal-only catalog)
537
547
  * @param data.type Filter by account type
538
- * @param data.search Search term for path or description
548
+ * @param data.search Search term for path, description, aliases, or localized display name
539
549
  * @returns AccountStandardListResponseDto Account templates retrieved successfully
540
550
  * @throws ApiError
541
551
  */
@@ -559,7 +569,7 @@ export class BeanAccountStandardsService {
559
569
  * Get template metadata for an account path
560
570
  * Returns root type for a template path.
561
571
  * @param data The data for the request.
562
- * @param data.region Region code for tenant context
572
+ * @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
563
573
  * @param data.path Account path to check
564
574
  * @returns TemplateMetadataResponseDto Template metadata retrieved successfully
565
575
  * @throws ApiError
@@ -581,9 +591,9 @@ export class BeanAccountStandardsService {
581
591
 
582
592
  /**
583
593
  * Get available regions with hierarchy
584
- * Returns supported regions with inheritance metadata
594
+ * Returns the full region catalog (every ISO 3166-1 entry) with an 'open' flag and inheritance metadata (#759)
585
595
  * @param data The data for the request.
586
- * @param data.region Region code for tenant context
596
+ * @param data.region Region code for tenant context. Not-yet-open codes degrade to the universal-only catalog (#759)
587
597
  * @returns RegionsMetadataResponseDto Regions metadata retrieved successfully
588
598
  * @throws ApiError
589
599
  */
@@ -703,6 +713,34 @@ export class BeanTransactionsService {
703
713
  });
704
714
  }
705
715
 
716
+ /**
717
+ * Batch void transactions
718
+ * Soft-deletes (VOIDED) a batch of the caller's ACTIVE transactions in one DB transaction. Voiding releases each row's importId dedup slot, so re-importing the same file after an undo batch-void imports every row again instead of skipping them as duplicates.
719
+ * @param data The data for the request.
720
+ * @param data.region Region code for tenant context
721
+ * @param data.requestBody Batch void request (1-500 unique transaction IDs)
722
+ * @returns BatchVoidResultDto Batch void result: count of rows voided plus ids not found / no longer ACTIVE
723
+ * @throws ApiError
724
+ */
725
+ public static transactionControllerBatchVoid(
726
+ data: TransactionControllerBatchVoidData
727
+ ): CancelablePromise<TransactionControllerBatchVoidResponse> {
728
+ return __request(OpenAPI, {
729
+ method: 'POST',
730
+ url: '/api/v1/{region}/bean/transactions/batch-void',
731
+ path: {
732
+ region: data.region
733
+ },
734
+ body: data.requestBody,
735
+ mediaType: 'application/json',
736
+ errors: {
737
+ 400: 'Validation failed (empty, over 500, duplicate or non-string ids)',
738
+ 401: 'Authentication required',
739
+ 403: 'Batch contains ids owned by another user — whole request rejected, nothing committed'
740
+ }
741
+ });
742
+ }
743
+
706
744
  /**
707
745
  * Correct (supersede) a transaction
708
746
  * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
@@ -1047,1126 +1085,1080 @@ export class BeanReviewsService {
1047
1085
  }
1048
1086
  }
1049
1087
 
1050
- export class BeanPayeesService {
1088
+ export class BeanTransactionRulesService {
1051
1089
  /**
1052
- * Create a new payee
1053
- * Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
1090
+ * Create a new transaction rule (or upsert if upsertByPayee=true)
1091
+ * Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
1054
1092
  * @param data The data for the request.
1093
+ * @param data.region Region code for tenant context
1055
1094
  * @param data.requestBody
1056
- * @returns PayeeResponseDto Payee created successfully
1095
+ * @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
1057
1096
  * @throws ApiError
1058
1097
  */
1059
- public static payeeControllerCreate(
1060
- data: PayeeControllerCreateData
1061
- ): CancelablePromise<PayeeControllerCreateResponse> {
1098
+ public static transactionRuleControllerCreate(
1099
+ data: TransactionRuleControllerCreateData
1100
+ ): CancelablePromise<TransactionRuleControllerCreateResponse> {
1062
1101
  return __request(OpenAPI, {
1063
1102
  method: 'POST',
1064
- url: '/api/v1/bean/payees',
1103
+ url: '/api/v1/{region}/bean/transaction-rules',
1104
+ path: {
1105
+ region: data.region
1106
+ },
1065
1107
  body: data.requestBody,
1066
1108
  mediaType: 'application/json',
1067
1109
  errors: {
1068
- 400: 'Invalid input data',
1069
- 409: 'Payee already exists'
1110
+ 400: 'Validation failed',
1111
+ 401: 'Unauthorized',
1112
+ 409: 'Resource conflict - another process is updating this rule'
1070
1113
  }
1071
1114
  });
1072
1115
  }
1073
1116
 
1074
1117
  /**
1075
- * List user payees
1076
- * Returns all payee mappings for the authenticated user with optional filtering
1118
+ * Get all transaction rules for user
1077
1119
  * @param data The data for the request.
1078
- * @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
1079
- * @param data.payee Filter by exact payee name match
1080
- * @param data.category Filter by custom category
1081
- * @param data.tag Filter by custom tag (returns payees that have this tag)
1082
- * @param data.isActive Filter by active status. Defaults to true (show only active payees).
1083
- * @returns PayeeListResponseDto Payees retrieved successfully
1120
+ * @param data.region Region code for tenant context
1121
+ * @param data.limit Max results per page (default: 20, max: 100)
1122
+ * @param data.offset Pagination offset (default: 0)
1123
+ * @param data.enabled Filter by enabled status
1124
+ * @param data.learningSource Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
1125
+ * @param data.autoApplyEnabled Filter by auto-apply status
1126
+ * @returns TransactionRuleListResponseDto List of rules
1084
1127
  * @throws ApiError
1085
1128
  */
1086
- public static payeeControllerFindAll(
1087
- data: PayeeControllerFindAllData = {}
1088
- ): CancelablePromise<PayeeControllerFindAllResponse> {
1129
+ public static transactionRuleControllerList(
1130
+ data: TransactionRuleControllerListData
1131
+ ): CancelablePromise<TransactionRuleControllerListResponse> {
1089
1132
  return __request(OpenAPI, {
1090
1133
  method: 'GET',
1091
- url: '/api/v1/bean/payees',
1134
+ url: '/api/v1/{region}/bean/transaction-rules',
1135
+ path: {
1136
+ region: data.region
1137
+ },
1092
1138
  query: {
1093
- search: data.search,
1094
- payee: data.payee,
1095
- category: data.category,
1096
- tag: data.tag,
1097
- isActive: data.isActive
1139
+ limit: data.limit,
1140
+ offset: data.offset,
1141
+ enabled: data.enabled,
1142
+ learningSource: data.learningSource,
1143
+ autoApplyEnabled: data.autoApplyEnabled
1144
+ },
1145
+ errors: {
1146
+ 401: 'Unauthorized'
1098
1147
  }
1099
1148
  });
1100
1149
  }
1101
1150
 
1102
1151
  /**
1103
- * Get payee autocomplete suggestions
1104
- * Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
1152
+ * Validate transaction rule configuration
1105
1153
  * @param data The data for the request.
1106
- * @param data.q Search query for payee name (partial match, case-insensitive)
1107
- * @param data.limit Maximum number of suggestions
1108
- * @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
1154
+ * @param data.region Region code for tenant context
1155
+ * @param data.requestBody
1156
+ * @returns ValidateRuleResponseDto Validation result
1109
1157
  * @throws ApiError
1110
1158
  */
1111
- public static payeeControllerAutocomplete(
1112
- data: PayeeControllerAutocompleteData
1113
- ): CancelablePromise<PayeeControllerAutocompleteResponse> {
1159
+ public static transactionRuleControllerValidate(
1160
+ data: TransactionRuleControllerValidateData
1161
+ ): CancelablePromise<TransactionRuleControllerValidateResponse> {
1114
1162
  return __request(OpenAPI, {
1115
- method: 'GET',
1116
- url: '/api/v1/bean/payees/autocomplete',
1117
- query: {
1118
- q: data.q,
1119
- limit: data.limit
1163
+ method: 'POST',
1164
+ url: '/api/v1/{region}/bean/transaction-rules/validate',
1165
+ path: {
1166
+ region: data.region
1167
+ },
1168
+ body: data.requestBody,
1169
+ mediaType: 'application/json',
1170
+ errors: {
1171
+ 400: 'Validation failed',
1172
+ 401: 'Unauthorized'
1120
1173
  }
1121
1174
  });
1122
1175
  }
1123
1176
 
1124
1177
  /**
1125
- * Get top payees by usage
1126
- * Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
1178
+ * Bulk create transaction rules
1127
1179
  * @param data The data for the request.
1128
- * @param data.limit Maximum number of results
1129
- * @returns PayeeStatsResponseDto Top payees retrieved successfully
1180
+ * @param data.region Region code for tenant context
1181
+ * @param data.requestBody
1182
+ * @returns BulkCreateRulesResponseDto Bulk create completed
1130
1183
  * @throws ApiError
1131
1184
  */
1132
- public static payeeControllerGetTopPayees(
1133
- data: PayeeControllerGetTopPayeesData = {}
1134
- ): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
1185
+ public static transactionRuleControllerBulkCreate(
1186
+ data: TransactionRuleControllerBulkCreateData
1187
+ ): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
1135
1188
  return __request(OpenAPI, {
1136
- method: 'GET',
1137
- url: '/api/v1/bean/payees/top',
1138
- query: {
1139
- limit: data.limit
1189
+ method: 'POST',
1190
+ url: '/api/v1/{region}/bean/transaction-rules/bulk',
1191
+ path: {
1192
+ region: data.region
1193
+ },
1194
+ body: data.requestBody,
1195
+ mediaType: 'application/json',
1196
+ errors: {
1197
+ 400: 'Invalid bulk create data',
1198
+ 401: 'Unauthorized'
1140
1199
  }
1141
1200
  });
1142
1201
  }
1143
1202
 
1144
1203
  /**
1145
- * Get payee by ID
1146
- * Returns a specific payee mapping by its UUID
1204
+ * Export transaction rules
1147
1205
  * @param data The data for the request.
1148
- * @param data.id Payee UUID
1149
- * @returns PayeeResponseDto Payee retrieved successfully
1206
+ * @param data.format Export format (currently only JSON supported)
1207
+ * @param data.region Region code for tenant context
1208
+ * @returns ExportRulesResponseDto Exported rules
1150
1209
  * @throws ApiError
1151
1210
  */
1152
- public static payeeControllerFindOne(
1153
- data: PayeeControllerFindOneData
1154
- ): CancelablePromise<PayeeControllerFindOneResponse> {
1155
- return __request(OpenAPI, {
1156
- method: 'GET',
1157
- url: '/api/v1/bean/payees/{id}',
1211
+ public static transactionRuleControllerExport(
1212
+ data: TransactionRuleControllerExportData
1213
+ ): CancelablePromise<TransactionRuleControllerExportResponse> {
1214
+ return __request(OpenAPI, {
1215
+ method: 'GET',
1216
+ url: '/api/v1/{region}/bean/transaction-rules/export/{format}',
1158
1217
  path: {
1159
- id: data.id
1218
+ format: data.format,
1219
+ region: data.region
1160
1220
  },
1161
1221
  errors: {
1162
- 403: 'Payee belongs to another user',
1163
- 404: 'Payee not found'
1222
+ 400: 'Unsupported format',
1223
+ 401: 'Unauthorized'
1164
1224
  }
1165
1225
  });
1166
1226
  }
1167
1227
 
1168
1228
  /**
1169
- * Update payee
1170
- * Updates a payee mapping. The payee name cannot be changed after creation.
1229
+ * Get transaction rule statistics
1171
1230
  * @param data The data for the request.
1172
- * @param data.id Payee UUID
1173
- * @param data.requestBody
1174
- * @returns PayeeResponseDto Payee updated successfully
1231
+ * @param data.period Statistics time period
1232
+ * @param data.region Region code for tenant context
1233
+ * @returns RuleStatisticsResponseDto Rule statistics
1175
1234
  * @throws ApiError
1176
1235
  */
1177
- public static payeeControllerUpdate(
1178
- data: PayeeControllerUpdateData
1179
- ): CancelablePromise<PayeeControllerUpdateResponse> {
1236
+ public static transactionRuleControllerGetStatistics(
1237
+ data: TransactionRuleControllerGetStatisticsData
1238
+ ): CancelablePromise<TransactionRuleControllerGetStatisticsResponse> {
1180
1239
  return __request(OpenAPI, {
1181
- method: 'PUT',
1182
- url: '/api/v1/bean/payees/{id}',
1240
+ method: 'GET',
1241
+ url: '/api/v1/{region}/bean/transaction-rules/statistics/{period}',
1183
1242
  path: {
1184
- id: data.id
1243
+ period: data.period,
1244
+ region: data.region
1185
1245
  },
1186
- body: data.requestBody,
1187
- mediaType: 'application/json',
1188
1246
  errors: {
1189
- 400: 'Invalid input data',
1190
- 404: 'Payee not found'
1247
+ 401: 'Unauthorized'
1191
1248
  }
1192
1249
  });
1193
1250
  }
1194
1251
 
1195
1252
  /**
1196
- * Delete payee
1197
- * Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
1253
+ * Get transaction rule detail
1198
1254
  * @param data The data for the request.
1199
- * @param data.id Payee UUID
1200
- * @returns void Payee deleted successfully
1255
+ * @param data.ruleId Rule ID
1256
+ * @param data.region Region code for tenant context
1257
+ * @returns TransactionRuleResponseDto Rule details
1201
1258
  * @throws ApiError
1202
1259
  */
1203
- public static payeeControllerDelete(
1204
- data: PayeeControllerDeleteData
1205
- ): CancelablePromise<PayeeControllerDeleteResponse> {
1260
+ public static transactionRuleControllerGetDetail(
1261
+ data: TransactionRuleControllerGetDetailData
1262
+ ): CancelablePromise<TransactionRuleControllerGetDetailResponse> {
1206
1263
  return __request(OpenAPI, {
1207
- method: 'DELETE',
1208
- url: '/api/v1/bean/payees/{id}',
1264
+ method: 'GET',
1265
+ url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1209
1266
  path: {
1210
- id: data.id
1267
+ ruleId: data.ruleId,
1268
+ region: data.region
1211
1269
  },
1212
1270
  errors: {
1213
- 404: 'Payee not found'
1271
+ 401: 'Unauthorized',
1272
+ 403: 'Forbidden - not owner of rule',
1273
+ 404: 'Rule not found'
1214
1274
  }
1215
1275
  });
1216
1276
  }
1217
- }
1218
1277
 
1219
- export class AdminPayeeProfilesService {
1220
1278
  /**
1221
- * Create payee profile (Admin only)
1222
- * Creates a new global payee profile. The canonical name must be unique (case-insensitive).
1279
+ * Update a transaction rule
1223
1280
  * @param data The data for the request.
1281
+ * @param data.ruleId Rule ID to update
1282
+ * @param data.region Region code for tenant context
1224
1283
  * @param data.requestBody
1225
- * @returns PayeeProfileResponseDto Payee profile created successfully
1284
+ * @returns TransactionRuleResponseDto Rule updated successfully
1226
1285
  * @throws ApiError
1227
1286
  */
1228
- public static payeeProfileAdminControllerCreate(
1229
- data: PayeeProfileAdminControllerCreateData
1230
- ): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
1287
+ public static transactionRuleControllerUpdate(
1288
+ data: TransactionRuleControllerUpdateData
1289
+ ): CancelablePromise<TransactionRuleControllerUpdateResponse> {
1231
1290
  return __request(OpenAPI, {
1232
- method: 'POST',
1233
- url: '/api/v1/admin/payee-profiles',
1291
+ method: 'PUT',
1292
+ url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1293
+ path: {
1294
+ ruleId: data.ruleId,
1295
+ region: data.region
1296
+ },
1234
1297
  body: data.requestBody,
1235
1298
  mediaType: 'application/json',
1236
1299
  errors: {
1237
1300
  400: 'Validation failed',
1238
- 403: 'Admin access required',
1239
- 409: 'Payee profile already exists'
1301
+ 401: 'Unauthorized',
1302
+ 403: 'Forbidden - not owner of rule',
1303
+ 404: 'Rule not found',
1304
+ 409: 'Resource conflict - rule is being modified by another process'
1240
1305
  }
1241
1306
  });
1242
1307
  }
1243
1308
 
1244
1309
  /**
1245
- * List payee profiles (Admin only)
1246
- * Returns all payee profiles with optional filtering by category, country, verification status, etc.
1310
+ * Delete a transaction rule
1247
1311
  * @param data The data for the request.
1248
- * @param data.search Search term for canonical name and aliases (case-insensitive)
1249
- * @param data.category Filter by category
1250
- * @param data.country Filter by country (ISO 3166-1 alpha-2)
1251
- * @param data.isActive Filter by active status (default: true - show only active)
1252
- * @param data.verified Filter by verification status. true = verified only, false = unverified only
1253
- * @param data.dataSource Filter by data source
1254
- * @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
1312
+ * @param data.ruleId Rule ID to delete
1313
+ * @param data.region Region code for tenant context
1314
+ * @returns void Rule deleted successfully
1255
1315
  * @throws ApiError
1256
1316
  */
1257
- public static payeeProfileAdminControllerFindAll(
1258
- data: PayeeProfileAdminControllerFindAllData = {}
1259
- ): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
1317
+ public static transactionRuleControllerDelete(
1318
+ data: TransactionRuleControllerDeleteData
1319
+ ): CancelablePromise<TransactionRuleControllerDeleteResponse> {
1260
1320
  return __request(OpenAPI, {
1261
- method: 'GET',
1262
- url: '/api/v1/admin/payee-profiles',
1263
- query: {
1264
- search: data.search,
1265
- category: data.category,
1266
- country: data.country,
1267
- isActive: data.isActive,
1268
- verified: data.verified,
1269
- dataSource: data.dataSource
1321
+ method: 'DELETE',
1322
+ url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
1323
+ path: {
1324
+ ruleId: data.ruleId,
1325
+ region: data.region
1270
1326
  },
1271
1327
  errors: {
1272
- 403: 'Admin access required'
1328
+ 401: 'Unauthorized',
1329
+ 403: 'Forbidden - not owner of rule',
1330
+ 404: 'Rule not found',
1331
+ 409: 'Resource conflict - rule is being modified by another process'
1273
1332
  }
1274
1333
  });
1275
1334
  }
1276
1335
 
1277
1336
  /**
1278
- * Get payee profile by ID (Admin only)
1279
- * Returns a single payee profile by its ID.
1337
+ * Test rule matching
1280
1338
  * @param data The data for the request.
1281
- * @param data.id Payee profile ID (UUID)
1282
- * @returns PayeeProfileResponseDto Payee profile retrieved successfully
1339
+ * @param data.ruleId Rule ID to test
1340
+ * @param data.region Region code for tenant context
1341
+ * @param data.requestBody
1342
+ * @returns TestRuleResponseDto Test result
1283
1343
  * @throws ApiError
1284
1344
  */
1285
- public static payeeProfileAdminControllerFindOne(
1286
- data: PayeeProfileAdminControllerFindOneData
1287
- ): CancelablePromise<PayeeProfileAdminControllerFindOneResponse> {
1345
+ public static transactionRuleControllerTest(
1346
+ data: TransactionRuleControllerTestData
1347
+ ): CancelablePromise<TransactionRuleControllerTestResponse> {
1288
1348
  return __request(OpenAPI, {
1289
- method: 'GET',
1290
- url: '/api/v1/admin/payee-profiles/{id}',
1349
+ method: 'POST',
1350
+ url: '/api/v1/{region}/bean/transaction-rules/{ruleId}/test',
1291
1351
  path: {
1292
- id: data.id
1352
+ ruleId: data.ruleId,
1353
+ region: data.region
1293
1354
  },
1355
+ body: data.requestBody,
1356
+ mediaType: 'application/json',
1294
1357
  errors: {
1295
- 403: 'Admin access required',
1296
- 404: 'Payee profile not found'
1358
+ 401: 'Unauthorized',
1359
+ 403: 'Forbidden - not owner of rule',
1360
+ 404: 'Rule not found'
1297
1361
  }
1298
1362
  });
1299
1363
  }
1364
+ }
1300
1365
 
1366
+ export class UsersService {
1301
1367
  /**
1302
- * Update payee profile (Admin only)
1303
- * Updates an existing payee profile. The canonical name cannot be changed.
1368
+ * Delete own user account
1304
1369
  * @param data The data for the request.
1305
- * @param data.id Payee profile ID (UUID)
1306
1370
  * @param data.requestBody
1307
- * @returns PayeeProfileResponseDto Payee profile updated successfully
1371
+ * @returns void User deleted successfully
1308
1372
  * @throws ApiError
1309
1373
  */
1310
- public static payeeProfileAdminControllerUpdate(
1311
- data: PayeeProfileAdminControllerUpdateData
1312
- ): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
1374
+ public static userControllerDeleteOwnUser(
1375
+ data: UserControllerDeleteOwnUserData
1376
+ ): CancelablePromise<UserControllerDeleteOwnUserResponse> {
1313
1377
  return __request(OpenAPI, {
1314
- method: 'PUT',
1315
- url: '/api/v1/admin/payee-profiles/{id}',
1316
- path: {
1317
- id: data.id
1318
- },
1378
+ method: 'DELETE',
1379
+ url: '/api/v1/users',
1319
1380
  body: data.requestBody,
1320
1381
  mediaType: 'application/json',
1321
1382
  errors: {
1322
- 403: 'Admin access required',
1323
- 404: 'Payee profile not found'
1383
+ 403: 'Invalid access token'
1324
1384
  }
1325
1385
  });
1326
1386
  }
1327
1387
 
1328
1388
  /**
1329
- * Soft delete payee profile (Admin only)
1330
- * Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
1389
+ * Get current authenticated user
1331
1390
  * @param data The data for the request.
1332
- * @param data.id Payee profile ID (UUID)
1333
- * @returns void Payee profile deleted successfully
1391
+ * @param data.acceptLanguage
1392
+ * @returns UserResponseDto User retrieved successfully
1334
1393
  * @throws ApiError
1335
1394
  */
1336
- public static payeeProfileAdminControllerDelete(
1337
- data: PayeeProfileAdminControllerDeleteData
1338
- ): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
1395
+ public static userControllerGetUser(
1396
+ data: UserControllerGetUserData
1397
+ ): CancelablePromise<UserControllerGetUserResponse> {
1339
1398
  return __request(OpenAPI, {
1340
- method: 'DELETE',
1341
- url: '/api/v1/admin/payee-profiles/{id}',
1342
- path: {
1343
- id: data.id
1344
- },
1345
- errors: {
1346
- 403: 'Admin access required',
1347
- 404: 'Payee profile not found',
1348
- 409: 'Payee profile is in use and cannot be deleted'
1399
+ method: 'GET',
1400
+ url: '/api/v1/users',
1401
+ headers: {
1402
+ 'accept-language': data.acceptLanguage
1349
1403
  }
1350
1404
  });
1351
1405
  }
1352
1406
 
1353
1407
  /**
1354
- * Verify payee profile (Admin only)
1355
- * Marks a payee profile as verified by setting verifiedAt to current timestamp.
1408
+ * Sign up new user
1409
+ * Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
1356
1410
  * @param data The data for the request.
1357
- * @param data.id Payee profile ID (UUID)
1358
- * @returns PayeeProfileResponseDto Payee profile verified successfully
1411
+ * @param data.requestBody
1412
+ * @returns SignupResponseDto User created successfully
1359
1413
  * @throws ApiError
1360
1414
  */
1361
- public static payeeProfileAdminControllerVerify(
1362
- data: PayeeProfileAdminControllerVerifyData
1363
- ): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
1415
+ public static userControllerSignupUser(
1416
+ data: UserControllerSignupUserData
1417
+ ): CancelablePromise<UserControllerSignupUserResponse> {
1364
1418
  return __request(OpenAPI, {
1365
1419
  method: 'POST',
1366
- url: '/api/v1/admin/payee-profiles/{id}/verify',
1367
- path: {
1368
- id: data.id
1369
- },
1420
+ url: '/api/v1/users',
1421
+ body: data.requestBody,
1422
+ mediaType: 'application/json',
1370
1423
  errors: {
1371
- 403: 'Admin access required',
1372
- 404: 'Payee profile not found'
1424
+ 400: 'Invalid Turnstile token (when Turnstile is enabled)',
1425
+ 403: 'User signup is disabled'
1373
1426
  }
1374
1427
  });
1375
1428
  }
1376
1429
 
1377
1430
  /**
1378
- * Unverify payee profile (Admin only)
1379
- * Removes verification status by setting verifiedAt to null.
1431
+ * Delete user by ID (admin only)
1380
1432
  * @param data The data for the request.
1381
- * @param data.id Payee profile ID (UUID)
1382
- * @returns PayeeProfileResponseDto Payee profile unverified successfully
1433
+ * @param data.id User ID to delete
1434
+ * @returns void User deleted successfully
1383
1435
  * @throws ApiError
1384
1436
  */
1385
- public static payeeProfileAdminControllerUnverify(
1386
- data: PayeeProfileAdminControllerUnverifyData
1387
- ): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
1437
+ public static userControllerDeleteUser(
1438
+ data: UserControllerDeleteUserData
1439
+ ): CancelablePromise<UserControllerDeleteUserResponse> {
1388
1440
  return __request(OpenAPI, {
1389
1441
  method: 'DELETE',
1390
- url: '/api/v1/admin/payee-profiles/{id}/verify',
1442
+ url: '/api/v1/users/{id}',
1391
1443
  path: {
1392
1444
  id: data.id
1393
1445
  },
1394
1446
  errors: {
1395
- 403: 'Admin access required',
1396
- 404: 'Payee profile not found'
1447
+ 403: 'Cannot delete own account or insufficient permissions'
1397
1448
  }
1398
1449
  });
1399
1450
  }
1400
- }
1401
1451
 
1402
- export class BeanCommoditiesService {
1403
1452
  /**
1404
- * Create a new commodity
1405
- * Creates a new commodity definition for the authenticated user
1453
+ * Get user info by user ID
1406
1454
  * @param data The data for the request.
1407
- * @param data.region Region code for tenant context
1408
- * @param data.requestBody
1409
- * @returns CommodityResponseDto Commodity created successfully
1455
+ * @param data.id User ID
1456
+ * @returns unknown User info retrieved successfully
1410
1457
  * @throws ApiError
1411
1458
  */
1412
- public static commodityControllerCreate(
1413
- data: CommodityControllerCreateData
1414
- ): CancelablePromise<CommodityControllerCreateResponse> {
1459
+ public static userControllerGetUserInfo(
1460
+ data: UserControllerGetUserInfoData
1461
+ ): CancelablePromise<UserControllerGetUserInfoResponse> {
1415
1462
  return __request(OpenAPI, {
1416
- method: 'POST',
1417
- url: '/api/v1/{region}/bean/commodities',
1463
+ method: 'GET',
1464
+ url: '/api/v1/users/{id}/info',
1418
1465
  path: {
1419
- region: data.region
1466
+ id: data.id
1420
1467
  },
1468
+ errors: {
1469
+ 403: 'Cannot access other user info without admin permission'
1470
+ }
1471
+ });
1472
+ }
1473
+
1474
+ /**
1475
+ * Update user settings
1476
+ * @param data The data for the request.
1477
+ * @param data.requestBody
1478
+ * @returns unknown Settings updated successfully
1479
+ * @throws ApiError
1480
+ */
1481
+ public static userControllerUpdateUserSetting(
1482
+ data: UserControllerUpdateUserSettingData
1483
+ ): CancelablePromise<UserControllerUpdateUserSettingResponse> {
1484
+ return __request(OpenAPI, {
1485
+ method: 'PUT',
1486
+ url: '/api/v1/users/setting',
1421
1487
  body: data.requestBody,
1422
1488
  mediaType: 'application/json',
1423
1489
  errors: {
1424
- 400: 'Invalid input data',
1425
- 409: 'Commodity already exists'
1490
+ 403: 'Insufficient permissions'
1426
1491
  }
1427
1492
  });
1428
1493
  }
1429
1494
 
1430
1495
  /**
1431
- * List user commodities
1432
- * Returns all commodity definitions for the authenticated user with optional filtering
1496
+ * Get all user settings paginated (admin only)
1433
1497
  * @param data The data for the request.
1434
- * @param data.region Region code for tenant context
1435
- * @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
1436
- * @param data.symbol Filter by exact symbol match
1437
- * @returns CommodityListResponseDto Commodities retrieved successfully
1498
+ * @param data.pageNo Page number
1499
+ * @param data.pageSize Page size
1500
+ * @returns unknown Settings list retrieved successfully
1438
1501
  * @throws ApiError
1439
1502
  */
1440
- public static commodityControllerFindAll(
1441
- data: CommodityControllerFindAllData
1442
- ): CancelablePromise<CommodityControllerFindAllResponse> {
1503
+ public static userControllerGetAllUserSettingsByPage(
1504
+ data: UserControllerGetAllUserSettingsByPageData
1505
+ ): CancelablePromise<UserControllerGetAllUserSettingsByPageResponse> {
1443
1506
  return __request(OpenAPI, {
1444
1507
  method: 'GET',
1445
- url: '/api/v1/{region}/bean/commodities',
1446
- path: {
1447
- region: data.region
1448
- },
1508
+ url: '/api/v1/users/settings-by-page',
1449
1509
  query: {
1450
- search: data.search,
1451
- symbol: data.symbol
1510
+ pageNo: data.pageNo,
1511
+ pageSize: data.pageSize
1452
1512
  }
1453
1513
  });
1454
1514
  }
1455
1515
 
1456
1516
  /**
1457
- * Get commodity by symbol
1458
- * Returns a specific commodity definition by its symbol
1459
- * @param data The data for the request.
1460
- * @param data.symbol Commodity symbol
1461
- * @param data.region Region code for tenant context
1462
- * @returns CommodityResponseDto Commodity retrieved successfully
1517
+ * Get asset and liability summary for current user
1518
+ * @returns unknown Summary retrieved successfully
1463
1519
  * @throws ApiError
1464
1520
  */
1465
- public static commodityControllerFindOne(
1466
- data: CommodityControllerFindOneData
1467
- ): CancelablePromise<CommodityControllerFindOneResponse> {
1521
+ public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
1468
1522
  return __request(OpenAPI, {
1469
1523
  method: 'GET',
1470
- url: '/api/v1/{region}/bean/commodities/{symbol}',
1471
- path: {
1472
- symbol: data.symbol,
1473
- region: data.region
1474
- },
1475
- errors: {
1476
- 404: 'Commodity not found'
1477
- }
1524
+ url: '/api/v1/users/asset-liability-summary'
1478
1525
  });
1479
1526
  }
1527
+ }
1480
1528
 
1529
+ export class PropertiesService {
1481
1530
  /**
1482
- * Update commodity
1483
- * Updates an existing commodity definition. Symbol cannot be changed.
1484
- * @param data The data for the request.
1485
- * @param data.symbol Commodity symbol
1486
- * @param data.region Region code for tenant context
1487
- * @param data.requestBody
1488
- * @returns CommodityResponseDto Commodity updated successfully
1531
+ * Get all system properties
1532
+ * @returns unknown Properties retrieved successfully
1489
1533
  * @throws ApiError
1490
1534
  */
1491
- public static commodityControllerUpdate(
1492
- data: CommodityControllerUpdateData
1493
- ): CancelablePromise<CommodityControllerUpdateResponse> {
1535
+ public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
1494
1536
  return __request(OpenAPI, {
1495
- method: 'PUT',
1496
- url: '/api/v1/{region}/bean/commodities/{symbol}',
1497
- path: {
1498
- symbol: data.symbol,
1499
- region: data.region
1500
- },
1501
- body: data.requestBody,
1502
- mediaType: 'application/json',
1537
+ method: 'GET',
1538
+ url: '/api/v1/admin/properties',
1503
1539
  errors: {
1504
- 400: 'Invalid input data',
1505
- 404: 'Commodity not found'
1540
+ 401: 'Unauthorized',
1541
+ 403: 'Forbidden - insufficient permissions'
1506
1542
  }
1507
1543
  });
1508
1544
  }
1509
1545
 
1510
1546
  /**
1511
- * Delete commodity
1512
- * Deletes a commodity definition
1547
+ * Get property by key
1513
1548
  * @param data The data for the request.
1514
- * @param data.symbol Commodity symbol
1515
- * @param data.region Region code for tenant context
1516
- * @returns void Commodity deleted successfully
1549
+ * @param data.key Property key
1550
+ * @returns unknown Property retrieved successfully
1517
1551
  * @throws ApiError
1518
1552
  */
1519
- public static commodityControllerDelete(
1520
- data: CommodityControllerDeleteData
1521
- ): CancelablePromise<CommodityControllerDeleteResponse> {
1553
+ public static propertyControllerGetByKey(
1554
+ data: PropertyControllerGetByKeyData
1555
+ ): CancelablePromise<PropertyControllerGetByKeyResponse> {
1522
1556
  return __request(OpenAPI, {
1523
- method: 'DELETE',
1524
- url: '/api/v1/{region}/bean/commodities/{symbol}',
1557
+ method: 'GET',
1558
+ url: '/api/v1/admin/properties/{key}',
1525
1559
  path: {
1526
- symbol: data.symbol,
1527
- region: data.region
1560
+ key: data.key
1528
1561
  },
1529
1562
  errors: {
1530
- 404: 'Commodity not found'
1563
+ 401: 'Unauthorized',
1564
+ 403: 'Forbidden - insufficient permissions',
1565
+ 404: 'Property not found'
1531
1566
  }
1532
1567
  });
1533
1568
  }
1534
1569
 
1535
1570
  /**
1536
- * Ensure commodity exists
1537
- * Gets existing commodity or creates it with automatic initialization from OpenBB
1571
+ * Update a system property
1538
1572
  * @param data The data for the request.
1539
- * @param data.symbol Commodity symbol
1540
- * @param data.region Region code for tenant context
1541
- * @returns CommodityResponseDto Commodity retrieved or created
1573
+ * @param data.key Property key
1574
+ * @param data.requestBody
1575
+ * @returns unknown Property updated successfully
1542
1576
  * @throws ApiError
1543
1577
  */
1544
- public static commodityControllerGetOrCreate(
1545
- data: CommodityControllerGetOrCreateData
1546
- ): CancelablePromise<CommodityControllerGetOrCreateResponse> {
1578
+ public static propertyControllerUpdate(
1579
+ data: PropertyControllerUpdateData
1580
+ ): CancelablePromise<PropertyControllerUpdateResponse> {
1547
1581
  return __request(OpenAPI, {
1548
- method: 'POST',
1549
- url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
1582
+ method: 'PUT',
1583
+ url: '/api/v1/admin/properties/{key}',
1550
1584
  path: {
1551
- symbol: data.symbol,
1552
- region: data.region
1585
+ key: data.key
1586
+ },
1587
+ body: data.requestBody,
1588
+ mediaType: 'application/json',
1589
+ errors: {
1590
+ 401: 'Unauthorized',
1591
+ 403: 'Forbidden - insufficient permissions'
1553
1592
  }
1554
1593
  });
1555
1594
  }
1556
1595
 
1557
1596
  /**
1558
- * Bulk create commodities
1559
- * Creates multiple commodities from a list of symbols, useful for initialization
1597
+ * Delete a system property
1560
1598
  * @param data The data for the request.
1561
- * @param data.region Region code for tenant context
1562
- * @returns CommodityResponseDto Commodities created successfully
1599
+ * @param data.key Property key
1600
+ * @returns void Property deleted successfully
1563
1601
  * @throws ApiError
1564
1602
  */
1565
- public static commodityControllerBulkCreate(
1566
- data: CommodityControllerBulkCreateData
1567
- ): CancelablePromise<CommodityControllerBulkCreateResponse> {
1603
+ public static propertyControllerDelete(
1604
+ data: PropertyControllerDeleteData
1605
+ ): CancelablePromise<PropertyControllerDeleteResponse> {
1568
1606
  return __request(OpenAPI, {
1569
- method: 'POST',
1570
- url: '/api/v1/{region}/bean/commodities/bulk',
1607
+ method: 'DELETE',
1608
+ url: '/api/v1/admin/properties/{key}',
1571
1609
  path: {
1572
- region: data.region
1610
+ key: data.key
1611
+ },
1612
+ errors: {
1613
+ 401: 'Unauthorized',
1614
+ 403: 'Forbidden - insufficient permissions',
1615
+ 404: 'Property not found'
1573
1616
  }
1574
1617
  });
1575
1618
  }
1576
1619
  }
1577
1620
 
1578
- export class BeanPricesService {
1621
+ export class BeanPayeesService {
1579
1622
  /**
1580
- * Create a new price
1581
- * Creates a new price entry for the authenticated user
1623
+ * Create a new payee
1624
+ * Creates a new payee mapping for the authenticated user. The payee name must be unique within the user's account.
1582
1625
  * @param data The data for the request.
1583
- * @param data.region Region code for tenant context
1584
1626
  * @param data.requestBody
1585
- * @returns PriceResponseDto Price created successfully
1627
+ * @returns PayeeResponseDto Payee created successfully
1586
1628
  * @throws ApiError
1587
1629
  */
1588
- public static priceControllerCreate(
1589
- data: PriceControllerCreateData
1590
- ): CancelablePromise<PriceControllerCreateResponse> {
1630
+ public static payeeControllerCreate(
1631
+ data: PayeeControllerCreateData
1632
+ ): CancelablePromise<PayeeControllerCreateResponse> {
1591
1633
  return __request(OpenAPI, {
1592
1634
  method: 'POST',
1593
- url: '/api/v1/{region}/bean/prices',
1594
- path: {
1595
- region: data.region
1596
- },
1635
+ url: '/api/v1/bean/payees',
1597
1636
  body: data.requestBody,
1598
1637
  mediaType: 'application/json',
1599
1638
  errors: {
1600
- 404: 'Currency or quoteCurrency commodity not found',
1601
- 409: 'Price already exists for this currency pair and date'
1639
+ 400: 'Invalid input data',
1640
+ 409: 'Payee already exists'
1602
1641
  }
1603
1642
  });
1604
1643
  }
1605
1644
 
1606
1645
  /**
1607
- * List user prices
1608
- * Returns all price entries for the authenticated user with optional filtering
1646
+ * List user payees
1647
+ * Returns all payee mappings for the authenticated user with optional filtering
1609
1648
  * @param data The data for the request.
1610
- * @param data.region Region code for tenant context
1611
- * @param data.currency Filter by currency (e.g., BTC, AAPL, USD)
1612
- * @param data.quoteCurrency Filter by quote currency (pricing currency, e.g., USD, CNY)
1613
- * @param data.dateFrom Filter prices from this date (ISO 8601 format)
1614
- * @param data.dateTo Filter prices to this date (ISO 8601 format)
1615
- * @param data.search Search term for currency or quoteCurrency (case-insensitive partial match)
1616
- * @param data.page Page number for pagination (default: 1)
1617
- * @param data.limit Number of items per page (default: 20, max: 100)
1618
- * @returns PriceListResponseDto Prices retrieved successfully
1649
+ * @param data.search Search term for payee name (partial match, case-insensitive). Useful for autocomplete.
1650
+ * @param data.payee Filter by exact payee name match
1651
+ * @param data.category Filter by custom category
1652
+ * @param data.tag Filter by custom tag (returns payees that have this tag)
1653
+ * @param data.isActive Filter by active status. Defaults to true (show only active payees).
1654
+ * @returns PayeeListResponseDto Payees retrieved successfully
1619
1655
  * @throws ApiError
1620
1656
  */
1621
- public static priceControllerFindAll(
1622
- data: PriceControllerFindAllData
1623
- ): CancelablePromise<PriceControllerFindAllResponse> {
1657
+ public static payeeControllerFindAll(
1658
+ data: PayeeControllerFindAllData = {}
1659
+ ): CancelablePromise<PayeeControllerFindAllResponse> {
1624
1660
  return __request(OpenAPI, {
1625
1661
  method: 'GET',
1626
- url: '/api/v1/{region}/bean/prices',
1627
- path: {
1628
- region: data.region
1629
- },
1662
+ url: '/api/v1/bean/payees',
1630
1663
  query: {
1631
- currency: data.currency,
1632
- quoteCurrency: data.quoteCurrency,
1633
- dateFrom: data.dateFrom,
1634
- dateTo: data.dateTo,
1635
1664
  search: data.search,
1636
- page: data.page,
1637
- limit: data.limit
1665
+ payee: data.payee,
1666
+ category: data.category,
1667
+ tag: data.tag,
1668
+ isActive: data.isActive
1638
1669
  }
1639
1670
  });
1640
1671
  }
1641
1672
 
1642
1673
  /**
1643
- * Get price by ID
1644
- * Returns a single price entry by its ID
1674
+ * Get payee autocomplete suggestions
1675
+ * Returns active payee names matching the query, sorted by recent usage. Used for transaction input autocomplete.
1645
1676
  * @param data The data for the request.
1646
- * @param data.id Price ID
1647
- * @param data.region Region code for tenant context
1648
- * @returns PriceResponseDto Price retrieved successfully
1677
+ * @param data.q Search query for payee name (partial match, case-insensitive)
1678
+ * @param data.limit Maximum number of suggestions
1679
+ * @returns PayeeAutocompleteResponseDto Autocomplete suggestions retrieved successfully
1649
1680
  * @throws ApiError
1650
1681
  */
1651
- public static priceControllerFindOne(
1652
- data: PriceControllerFindOneData
1653
- ): CancelablePromise<PriceControllerFindOneResponse> {
1682
+ public static payeeControllerAutocomplete(
1683
+ data: PayeeControllerAutocompleteData
1684
+ ): CancelablePromise<PayeeControllerAutocompleteResponse> {
1654
1685
  return __request(OpenAPI, {
1655
1686
  method: 'GET',
1656
- url: '/api/v1/{region}/bean/prices/{id}',
1657
- path: {
1658
- id: data.id,
1659
- region: data.region
1660
- },
1661
- errors: {
1662
- 404: 'Price not found'
1687
+ url: '/api/v1/bean/payees/autocomplete',
1688
+ query: {
1689
+ q: data.q,
1690
+ limit: data.limit
1663
1691
  }
1664
1692
  });
1665
1693
  }
1666
1694
 
1667
1695
  /**
1668
- * Update a price
1669
- * Updates an existing price entry
1696
+ * Get top payees by usage
1697
+ * Returns the most frequently used payees, sorted by use count. Used for statistics and analytics.
1670
1698
  * @param data The data for the request.
1671
- * @param data.id Price ID
1672
- * @param data.region Region code for tenant context
1673
- * @param data.requestBody
1674
- * @returns PriceResponseDto Price updated successfully
1699
+ * @param data.limit Maximum number of results
1700
+ * @returns PayeeStatsResponseDto Top payees retrieved successfully
1675
1701
  * @throws ApiError
1676
1702
  */
1677
- public static priceControllerUpdate(
1678
- data: PriceControllerUpdateData
1679
- ): CancelablePromise<PriceControllerUpdateResponse> {
1703
+ public static payeeControllerGetTopPayees(
1704
+ data: PayeeControllerGetTopPayeesData = {}
1705
+ ): CancelablePromise<PayeeControllerGetTopPayeesResponse> {
1680
1706
  return __request(OpenAPI, {
1681
- method: 'PUT',
1682
- url: '/api/v1/{region}/bean/prices/{id}',
1683
- path: {
1684
- id: data.id,
1685
- region: data.region
1686
- },
1687
- body: data.requestBody,
1688
- mediaType: 'application/json',
1689
- errors: {
1690
- 404: 'Price not found',
1691
- 409: 'Updated price conflicts with existing price'
1707
+ method: 'GET',
1708
+ url: '/api/v1/bean/payees/top',
1709
+ query: {
1710
+ limit: data.limit
1692
1711
  }
1693
1712
  });
1694
1713
  }
1695
1714
 
1696
1715
  /**
1697
- * Delete a price
1698
- * Deletes a price entry (hard delete)
1716
+ * Get payee by ID
1717
+ * Returns a specific payee mapping by its UUID
1699
1718
  * @param data The data for the request.
1700
- * @param data.id Price ID
1701
- * @param data.region Region code for tenant context
1702
- * @returns void Price deleted successfully
1719
+ * @param data.id Payee UUID
1720
+ * @returns PayeeResponseDto Payee retrieved successfully
1703
1721
  * @throws ApiError
1704
1722
  */
1705
- public static priceControllerDelete(
1706
- data: PriceControllerDeleteData
1707
- ): CancelablePromise<PriceControllerDeleteResponse> {
1723
+ public static payeeControllerFindOne(
1724
+ data: PayeeControllerFindOneData
1725
+ ): CancelablePromise<PayeeControllerFindOneResponse> {
1708
1726
  return __request(OpenAPI, {
1709
- method: 'DELETE',
1710
- url: '/api/v1/{region}/bean/prices/{id}',
1727
+ method: 'GET',
1728
+ url: '/api/v1/bean/payees/{id}',
1711
1729
  path: {
1712
- id: data.id,
1713
- region: data.region
1730
+ id: data.id
1714
1731
  },
1715
1732
  errors: {
1716
- 404: 'Price not found'
1733
+ 403: 'Payee belongs to another user',
1734
+ 404: 'Payee not found'
1717
1735
  }
1718
1736
  });
1719
1737
  }
1720
1738
 
1721
1739
  /**
1722
- * Bulk create prices
1723
- * Creates multiple price entries at once (skips duplicates)
1724
- * @param data The data for the request.
1725
- * @param data.region Region code for tenant context
1726
- * @param data.requestBody
1727
- * @returns PriceResponseDto Prices created successfully
1728
- * @throws ApiError
1729
- */
1730
- public static priceControllerBulkCreate(
1731
- data: PriceControllerBulkCreateData
1732
- ): CancelablePromise<PriceControllerBulkCreateResponse> {
1733
- return __request(OpenAPI, {
1734
- method: 'POST',
1735
- url: '/api/v1/{region}/bean/prices/bulk',
1736
- path: {
1737
- region: data.region
1738
- },
1739
- body: data.requestBody,
1740
- mediaType: 'application/json'
1741
- });
1742
- }
1743
- }
1744
-
1745
- export class RecurringRulesService {
1746
- /**
1747
- * Create a new recurring rule
1748
- * Creates a new recurring transaction rule for the authenticated user
1740
+ * Update payee
1741
+ * Updates a payee mapping. The payee name cannot be changed after creation.
1749
1742
  * @param data The data for the request.
1750
- * @param data.region Region code for tenant context
1743
+ * @param data.id Payee UUID
1751
1744
  * @param data.requestBody
1752
- * @returns RecurringRuleResponseDto Rule created successfully
1745
+ * @returns PayeeResponseDto Payee updated successfully
1753
1746
  * @throws ApiError
1754
1747
  */
1755
- public static recurringRuleControllerCreate(
1756
- data: RecurringRuleControllerCreateData
1757
- ): CancelablePromise<RecurringRuleControllerCreateResponse> {
1748
+ public static payeeControllerUpdate(
1749
+ data: PayeeControllerUpdateData
1750
+ ): CancelablePromise<PayeeControllerUpdateResponse> {
1758
1751
  return __request(OpenAPI, {
1759
- method: 'POST',
1760
- url: '/api/v1/{region}/bean/recurring-rules',
1752
+ method: 'PUT',
1753
+ url: '/api/v1/bean/payees/{id}',
1761
1754
  path: {
1762
- region: data.region
1755
+ id: data.id
1763
1756
  },
1764
1757
  body: data.requestBody,
1765
1758
  mediaType: 'application/json',
1766
1759
  errors: {
1767
- 400: 'Invalid input data (e.g., autoCreate without accounts)',
1768
- 409: 'Rule with same name already exists'
1760
+ 400: 'Invalid input data',
1761
+ 404: 'Payee not found'
1769
1762
  }
1770
1763
  });
1771
1764
  }
1772
1765
 
1773
1766
  /**
1774
- * List recurring rules
1775
- * Returns all recurring rules for the authenticated user with optional filtering
1767
+ * Delete payee
1768
+ * Soft deletes a payee by marking it as inactive. Inactive payees will not appear in autocomplete suggestions.
1776
1769
  * @param data The data for the request.
1777
- * @param data.region Region code for tenant context
1778
- * @param data.isActive Filter by active status
1779
- * @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
1780
- * @param data.hasAutoCreate Filter by autoCreate enabled
1781
- * @returns RecurringRuleResponseDto Rules retrieved successfully
1770
+ * @param data.id Payee UUID
1771
+ * @returns void Payee deleted successfully
1782
1772
  * @throws ApiError
1783
1773
  */
1784
- public static recurringRuleControllerFindAll(
1785
- data: RecurringRuleControllerFindAllData
1786
- ): CancelablePromise<RecurringRuleControllerFindAllResponse> {
1774
+ public static payeeControllerDelete(
1775
+ data: PayeeControllerDeleteData
1776
+ ): CancelablePromise<PayeeControllerDeleteResponse> {
1787
1777
  return __request(OpenAPI, {
1788
- method: 'GET',
1789
- url: '/api/v1/{region}/bean/recurring-rules',
1778
+ method: 'DELETE',
1779
+ url: '/api/v1/bean/payees/{id}',
1790
1780
  path: {
1791
- region: data.region
1781
+ id: data.id
1792
1782
  },
1793
- query: {
1794
- isActive: data.isActive,
1795
- frequency: data.frequency,
1796
- hasAutoCreate: data.hasAutoCreate
1783
+ errors: {
1784
+ 404: 'Payee not found'
1797
1785
  }
1798
1786
  });
1799
1787
  }
1788
+ }
1800
1789
 
1790
+ export class AdminPayeeProfilesService {
1801
1791
  /**
1802
- * Create recurring rule from transaction
1803
- * Auto-creates a recurring rule using transaction data. User only confirms frequency.
1792
+ * Create payee profile (Admin only)
1793
+ * Creates a new global payee profile. The canonical name must be unique (case-insensitive).
1804
1794
  * @param data The data for the request.
1805
- * @param data.transactionId Source transaction ID
1806
- * @param data.region Region code for tenant context
1807
1795
  * @param data.requestBody
1808
- * @returns RecurringRuleResponseDto Rule created successfully
1796
+ * @returns PayeeProfileResponseDto Payee profile created successfully
1809
1797
  * @throws ApiError
1810
1798
  */
1811
- public static recurringRuleControllerCreateFromTransaction(
1812
- data: RecurringRuleControllerCreateFromTransactionData
1813
- ): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
1799
+ public static payeeProfileAdminControllerCreate(
1800
+ data: PayeeProfileAdminControllerCreateData
1801
+ ): CancelablePromise<PayeeProfileAdminControllerCreateResponse> {
1814
1802
  return __request(OpenAPI, {
1815
1803
  method: 'POST',
1816
- url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
1817
- path: {
1818
- transactionId: data.transactionId,
1819
- region: data.region
1820
- },
1804
+ url: '/api/v1/admin/payee-profiles',
1821
1805
  body: data.requestBody,
1822
1806
  mediaType: 'application/json',
1823
1807
  errors: {
1824
- 404: 'Transaction not found',
1825
- 409: 'Rule with same name already exists or transaction already linked'
1808
+ 400: 'Validation failed',
1809
+ 403: 'Admin access required',
1810
+ 409: 'Payee profile already exists'
1826
1811
  }
1827
1812
  });
1828
1813
  }
1829
1814
 
1830
1815
  /**
1831
- * Get recurring rule by ID
1832
- * Returns a specific recurring rule with its details
1816
+ * List payee profiles (Admin only)
1817
+ * Returns all payee profiles with optional filtering by category, country, verification status, etc.
1833
1818
  * @param data The data for the request.
1834
- * @param data.id Rule ID
1835
- * @param data.region Region code for tenant context
1836
- * @returns RecurringRuleResponseDto Rule retrieved successfully
1819
+ * @param data.search Search term for canonical name and aliases (case-insensitive)
1820
+ * @param data.category Filter by category
1821
+ * @param data.country Filter by country (ISO 3166-1 alpha-2)
1822
+ * @param data.isActive Filter by active status (default: true - show only active)
1823
+ * @param data.verified Filter by verification status. true = verified only, false = unverified only
1824
+ * @param data.dataSource Filter by data source
1825
+ * @returns PayeeProfileListResponseDto Payee profiles retrieved successfully
1837
1826
  * @throws ApiError
1838
1827
  */
1839
- public static recurringRuleControllerFindOne(
1840
- data: RecurringRuleControllerFindOneData
1841
- ): CancelablePromise<RecurringRuleControllerFindOneResponse> {
1828
+ public static payeeProfileAdminControllerFindAll(
1829
+ data: PayeeProfileAdminControllerFindAllData = {}
1830
+ ): CancelablePromise<PayeeProfileAdminControllerFindAllResponse> {
1842
1831
  return __request(OpenAPI, {
1843
1832
  method: 'GET',
1844
- url: '/api/v1/{region}/bean/recurring-rules/{id}',
1833
+ url: '/api/v1/admin/payee-profiles',
1834
+ query: {
1835
+ search: data.search,
1836
+ category: data.category,
1837
+ country: data.country,
1838
+ isActive: data.isActive,
1839
+ verified: data.verified,
1840
+ dataSource: data.dataSource
1841
+ },
1842
+ errors: {
1843
+ 403: 'Admin access required'
1844
+ }
1845
+ });
1846
+ }
1847
+
1848
+ /**
1849
+ * Get payee profile by ID (Admin only)
1850
+ * Returns a single payee profile by its ID.
1851
+ * @param data The data for the request.
1852
+ * @param data.id Payee profile ID (UUID)
1853
+ * @returns PayeeProfileResponseDto Payee profile retrieved successfully
1854
+ * @throws ApiError
1855
+ */
1856
+ public static payeeProfileAdminControllerFindOne(
1857
+ data: PayeeProfileAdminControllerFindOneData
1858
+ ): CancelablePromise<PayeeProfileAdminControllerFindOneResponse> {
1859
+ return __request(OpenAPI, {
1860
+ method: 'GET',
1861
+ url: '/api/v1/admin/payee-profiles/{id}',
1845
1862
  path: {
1846
- id: data.id,
1847
- region: data.region
1863
+ id: data.id
1848
1864
  },
1849
1865
  errors: {
1850
- 404: 'Rule not found'
1866
+ 403: 'Admin access required',
1867
+ 404: 'Payee profile not found'
1851
1868
  }
1852
1869
  });
1853
1870
  }
1854
1871
 
1855
1872
  /**
1856
- * Update recurring rule
1857
- * Updates an existing recurring rule
1873
+ * Update payee profile (Admin only)
1874
+ * Updates an existing payee profile. The canonical name cannot be changed.
1858
1875
  * @param data The data for the request.
1859
- * @param data.id Rule ID
1860
- * @param data.region Region code for tenant context
1876
+ * @param data.id Payee profile ID (UUID)
1861
1877
  * @param data.requestBody
1862
- * @returns RecurringRuleResponseDto Rule updated successfully
1878
+ * @returns PayeeProfileResponseDto Payee profile updated successfully
1863
1879
  * @throws ApiError
1864
1880
  */
1865
- public static recurringRuleControllerUpdate(
1866
- data: RecurringRuleControllerUpdateData
1867
- ): CancelablePromise<RecurringRuleControllerUpdateResponse> {
1881
+ public static payeeProfileAdminControllerUpdate(
1882
+ data: PayeeProfileAdminControllerUpdateData
1883
+ ): CancelablePromise<PayeeProfileAdminControllerUpdateResponse> {
1868
1884
  return __request(OpenAPI, {
1869
- method: 'PATCH',
1870
- url: '/api/v1/{region}/bean/recurring-rules/{id}',
1885
+ method: 'PUT',
1886
+ url: '/api/v1/admin/payee-profiles/{id}',
1871
1887
  path: {
1872
- id: data.id,
1873
- region: data.region
1888
+ id: data.id
1874
1889
  },
1875
1890
  body: data.requestBody,
1876
1891
  mediaType: 'application/json',
1877
1892
  errors: {
1878
- 400: 'Invalid input data',
1879
- 404: 'Rule not found'
1893
+ 403: 'Admin access required',
1894
+ 404: 'Payee profile not found'
1880
1895
  }
1881
1896
  });
1882
1897
  }
1883
1898
 
1884
1899
  /**
1885
- * Delete recurring rule
1886
- * Soft deletes a recurring rule (sets isActive to false)
1900
+ * Soft delete payee profile (Admin only)
1901
+ * Marks a payee profile as inactive (soft delete). The profile cannot be deleted if it is referenced by user payees.
1887
1902
  * @param data The data for the request.
1888
- * @param data.id Rule ID
1889
- * @param data.region Region code for tenant context
1890
- * @returns void Rule deleted successfully
1903
+ * @param data.id Payee profile ID (UUID)
1904
+ * @returns void Payee profile deleted successfully
1891
1905
  * @throws ApiError
1892
1906
  */
1893
- public static recurringRuleControllerDelete(
1894
- data: RecurringRuleControllerDeleteData
1895
- ): CancelablePromise<RecurringRuleControllerDeleteResponse> {
1907
+ public static payeeProfileAdminControllerDelete(
1908
+ data: PayeeProfileAdminControllerDeleteData
1909
+ ): CancelablePromise<PayeeProfileAdminControllerDeleteResponse> {
1896
1910
  return __request(OpenAPI, {
1897
1911
  method: 'DELETE',
1898
- url: '/api/v1/{region}/bean/recurring-rules/{id}',
1912
+ url: '/api/v1/admin/payee-profiles/{id}',
1899
1913
  path: {
1900
- id: data.id,
1901
- region: data.region
1914
+ id: data.id
1902
1915
  },
1903
1916
  errors: {
1904
- 404: 'Rule not found'
1917
+ 403: 'Admin access required',
1918
+ 404: 'Payee profile not found',
1919
+ 409: 'Payee profile is in use and cannot be deleted'
1905
1920
  }
1906
1921
  });
1907
1922
  }
1908
1923
 
1909
1924
  /**
1910
- * Get rule with statistics
1911
- * Returns a rule with pending/overdue counts and next expected date
1925
+ * Verify payee profile (Admin only)
1926
+ * Marks a payee profile as verified by setting verifiedAt to current timestamp.
1912
1927
  * @param data The data for the request.
1913
- * @param data.id Rule ID
1914
- * @param data.region Region code for tenant context
1915
- * @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
1928
+ * @param data.id Payee profile ID (UUID)
1929
+ * @returns PayeeProfileResponseDto Payee profile verified successfully
1916
1930
  * @throws ApiError
1917
1931
  */
1918
- public static recurringRuleControllerGetWithStats(
1919
- data: RecurringRuleControllerGetWithStatsData
1920
- ): CancelablePromise<RecurringRuleControllerGetWithStatsResponse> {
1932
+ public static payeeProfileAdminControllerVerify(
1933
+ data: PayeeProfileAdminControllerVerifyData
1934
+ ): CancelablePromise<PayeeProfileAdminControllerVerifyResponse> {
1921
1935
  return __request(OpenAPI, {
1922
- method: 'GET',
1923
- url: '/api/v1/{region}/bean/recurring-rules/{id}/stats',
1936
+ method: 'POST',
1937
+ url: '/api/v1/admin/payee-profiles/{id}/verify',
1924
1938
  path: {
1925
- id: data.id,
1926
- region: data.region
1939
+ id: data.id
1927
1940
  },
1928
1941
  errors: {
1929
- 404: 'Rule not found'
1942
+ 403: 'Admin access required',
1943
+ 404: 'Payee profile not found'
1930
1944
  }
1931
1945
  });
1932
1946
  }
1933
- }
1934
1947
 
1935
- export class ExpectedTransactionsService {
1936
1948
  /**
1937
- * List expected transactions
1938
- * Returns expected transactions for the authenticated user with optional filtering
1949
+ * Unverify payee profile (Admin only)
1950
+ * Removes verification status by setting verifiedAt to null.
1939
1951
  * @param data The data for the request.
1940
- * @param data.region Region code for tenant context
1941
- * @param data.ruleId Filter by recurring rule ID
1942
- * @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
1943
- * @param data.fromDate Filter by date range start (YYYY-MM-DD)
1944
- * @param data.toDate Filter by date range end (YYYY-MM-DD)
1945
- * @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
1952
+ * @param data.id Payee profile ID (UUID)
1953
+ * @returns void Payee profile unverified successfully
1946
1954
  * @throws ApiError
1947
1955
  */
1948
- public static expectedTransactionControllerFindAll(
1949
- data: ExpectedTransactionControllerFindAllData
1950
- ): CancelablePromise<ExpectedTransactionControllerFindAllResponse> {
1956
+ public static payeeProfileAdminControllerUnverify(
1957
+ data: PayeeProfileAdminControllerUnverifyData
1958
+ ): CancelablePromise<PayeeProfileAdminControllerUnverifyResponse> {
1951
1959
  return __request(OpenAPI, {
1952
- method: 'GET',
1953
- url: '/api/v1/{region}/bean/expected-transactions',
1960
+ method: 'DELETE',
1961
+ url: '/api/v1/admin/payee-profiles/{id}/verify',
1954
1962
  path: {
1955
- region: data.region
1963
+ id: data.id
1956
1964
  },
1957
- query: {
1958
- ruleId: data.ruleId,
1959
- status: data.status,
1960
- fromDate: data.fromDate,
1961
- toDate: data.toDate
1965
+ errors: {
1966
+ 403: 'Admin access required',
1967
+ 404: 'Payee profile not found'
1962
1968
  }
1963
1969
  });
1964
1970
  }
1971
+ }
1965
1972
 
1973
+ export class PayeeProfilesService {
1966
1974
  /**
1967
- * List overdue expected transactions
1968
- * Returns all overdue expected transactions (PENDING past tolerance)
1969
- * @param data The data for the request.
1970
- * @param data.region Region code for tenant context
1971
- * @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
1975
+ * List active payee profiles (directory dump)
1976
+ * Returns the full active PayeeProfile set as a trimmed projection for client-side dictionary caching. Aliases are verbatim as stored; clients normalize on their side.
1977
+ * @returns PayeeProfileDirectoryResponseDto Active payee profiles
1972
1978
  * @throws ApiError
1973
1979
  */
1974
- public static expectedTransactionControllerFindOverdue(
1975
- data: ExpectedTransactionControllerFindOverdueData
1976
- ): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
1980
+ public static payeeProfileControllerListActive(): CancelablePromise<PayeeProfileControllerListActiveResponse> {
1977
1981
  return __request(OpenAPI, {
1978
1982
  method: 'GET',
1979
- url: '/api/v1/{region}/bean/expected-transactions/overdue',
1980
- path: {
1981
- region: data.region
1983
+ url: '/api/v1/bean/payee-profiles',
1984
+ errors: {
1985
+ 401: 'Missing or invalid token'
1982
1986
  }
1983
1987
  });
1984
1988
  }
1989
+ }
1985
1990
 
1991
+ export class BeanCommoditiesService {
1986
1992
  /**
1987
- * Get expected transaction by ID
1988
- * Returns a specific expected transaction with rule details
1993
+ * Create a new commodity
1994
+ * Creates a new commodity definition for the authenticated user
1989
1995
  * @param data The data for the request.
1990
- * @param data.id Expected transaction ID
1991
1996
  * @param data.region Region code for tenant context
1992
- * @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
1997
+ * @param data.requestBody
1998
+ * @returns CommodityResponseDto Commodity created successfully
1993
1999
  * @throws ApiError
1994
2000
  */
1995
- public static expectedTransactionControllerFindOne(
1996
- data: ExpectedTransactionControllerFindOneData
1997
- ): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
2001
+ public static commodityControllerCreate(
2002
+ data: CommodityControllerCreateData
2003
+ ): CancelablePromise<CommodityControllerCreateResponse> {
1998
2004
  return __request(OpenAPI, {
1999
- method: 'GET',
2000
- url: '/api/v1/{region}/bean/expected-transactions/{id}',
2005
+ method: 'POST',
2006
+ url: '/api/v1/{region}/bean/commodities',
2001
2007
  path: {
2002
- id: data.id,
2003
2008
  region: data.region
2004
2009
  },
2010
+ body: data.requestBody,
2011
+ mediaType: 'application/json',
2005
2012
  errors: {
2006
- 404: 'Expected transaction not found'
2013
+ 400: 'Invalid input data',
2014
+ 409: 'Commodity already exists'
2007
2015
  }
2008
2016
  });
2009
2017
  }
2010
2018
 
2011
2019
  /**
2012
- * Skip expected transaction
2013
- * Marks an expected transaction as skipped (PENDING -> SKIPPED)
2020
+ * List user commodities
2021
+ * Returns all commodity definitions for the authenticated user with optional filtering
2014
2022
  * @param data The data for the request.
2015
- * @param data.id Expected transaction ID
2016
2023
  * @param data.region Region code for tenant context
2017
- * @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
2024
+ * @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
2025
+ * @param data.symbol Filter by exact symbol match
2026
+ * @returns CommodityListResponseDto Commodities retrieved successfully
2018
2027
  * @throws ApiError
2019
2028
  */
2020
- public static expectedTransactionControllerSkip(
2021
- data: ExpectedTransactionControllerSkipData
2022
- ): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
2029
+ public static commodityControllerFindAll(
2030
+ data: CommodityControllerFindAllData
2031
+ ): CancelablePromise<CommodityControllerFindAllResponse> {
2023
2032
  return __request(OpenAPI, {
2024
- method: 'POST',
2025
- url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
2033
+ method: 'GET',
2034
+ url: '/api/v1/{region}/bean/commodities',
2026
2035
  path: {
2027
- id: data.id,
2028
- region: data.region
2029
- },
2030
- errors: {
2031
- 400: 'Cannot skip - not in PENDING status',
2032
- 404: 'Expected transaction not found'
2036
+ region: data.region
2037
+ },
2038
+ query: {
2039
+ search: data.search,
2040
+ symbol: data.symbol
2033
2041
  }
2034
2042
  });
2035
2043
  }
2036
2044
 
2037
2045
  /**
2038
- * Undo skip
2039
- * Reverses a skip operation (SKIPPED -> PENDING)
2046
+ * Get commodity by symbol
2047
+ * Returns a specific commodity definition by its symbol
2040
2048
  * @param data The data for the request.
2041
- * @param data.id Expected transaction ID
2049
+ * @param data.symbol Commodity symbol
2042
2050
  * @param data.region Region code for tenant context
2043
- * @returns ExpectedTransactionResponseDto Skip undone successfully
2051
+ * @returns CommodityResponseDto Commodity retrieved successfully
2044
2052
  * @throws ApiError
2045
2053
  */
2046
- public static expectedTransactionControllerUndoSkip(
2047
- data: ExpectedTransactionControllerUndoSkipData
2048
- ): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
2054
+ public static commodityControllerFindOne(
2055
+ data: CommodityControllerFindOneData
2056
+ ): CancelablePromise<CommodityControllerFindOneResponse> {
2049
2057
  return __request(OpenAPI, {
2050
- method: 'DELETE',
2051
- url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
2058
+ method: 'GET',
2059
+ url: '/api/v1/{region}/bean/commodities/{symbol}',
2052
2060
  path: {
2053
- id: data.id,
2061
+ symbol: data.symbol,
2054
2062
  region: data.region
2055
2063
  },
2056
2064
  errors: {
2057
- 400: 'Cannot undo - not in SKIPPED status',
2058
- 404: 'Expected transaction not found'
2065
+ 404: 'Commodity not found'
2059
2066
  }
2060
2067
  });
2061
2068
  }
2062
2069
 
2063
2070
  /**
2064
- * Confirm transaction match
2065
- * Manually matches an expected transaction with an actual transaction
2071
+ * Update commodity
2072
+ * Updates an existing commodity definition. Symbol cannot be changed.
2066
2073
  * @param data The data for the request.
2067
- * @param data.id Expected transaction ID
2074
+ * @param data.symbol Commodity symbol
2068
2075
  * @param data.region Region code for tenant context
2069
2076
  * @param data.requestBody
2070
- * @returns unknown Match confirmed successfully
2077
+ * @returns CommodityResponseDto Commodity updated successfully
2071
2078
  * @throws ApiError
2072
2079
  */
2073
- public static expectedTransactionControllerConfirmMatch(
2074
- data: ExpectedTransactionControllerConfirmMatchData
2075
- ): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
2080
+ public static commodityControllerUpdate(
2081
+ data: CommodityControllerUpdateData
2082
+ ): CancelablePromise<CommodityControllerUpdateResponse> {
2076
2083
  return __request(OpenAPI, {
2077
- method: 'POST',
2078
- url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
2084
+ method: 'PUT',
2085
+ url: '/api/v1/{region}/bean/commodities/{symbol}',
2079
2086
  path: {
2080
- id: data.id,
2087
+ symbol: data.symbol,
2081
2088
  region: data.region
2082
2089
  },
2083
2090
  body: data.requestBody,
2084
2091
  mediaType: 'application/json',
2085
2092
  errors: {
2086
- 400: 'Cannot match - not in PENDING status',
2087
- 404: 'Expected or actual transaction not found',
2088
- 409: 'Actual transaction already matched to another rule'
2093
+ 400: 'Invalid input data',
2094
+ 404: 'Commodity not found'
2089
2095
  }
2090
2096
  });
2091
2097
  }
2092
2098
 
2093
2099
  /**
2094
- * Unmatch transaction
2095
- * Removes the match between expected and actual transaction (COMPLETED -> PENDING)
2100
+ * Delete commodity
2101
+ * Deletes a commodity definition
2096
2102
  * @param data The data for the request.
2097
- * @param data.id Expected transaction ID
2103
+ * @param data.symbol Commodity symbol
2098
2104
  * @param data.region Region code for tenant context
2099
- * @returns unknown Match removed successfully
2105
+ * @returns void Commodity deleted successfully
2100
2106
  * @throws ApiError
2101
2107
  */
2102
- public static expectedTransactionControllerUnmatch(
2103
- data: ExpectedTransactionControllerUnmatchData
2104
- ): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
2108
+ public static commodityControllerDelete(
2109
+ data: CommodityControllerDeleteData
2110
+ ): CancelablePromise<CommodityControllerDeleteResponse> {
2105
2111
  return __request(OpenAPI, {
2106
2112
  method: 'DELETE',
2107
- url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
2113
+ url: '/api/v1/{region}/bean/commodities/{symbol}',
2108
2114
  path: {
2109
- id: data.id,
2115
+ symbol: data.symbol,
2110
2116
  region: data.region
2111
2117
  },
2112
2118
  errors: {
2113
- 400: 'Cannot unmatch - not in COMPLETED status',
2114
- 404: 'Expected transaction not found'
2119
+ 404: 'Commodity not found'
2115
2120
  }
2116
2121
  });
2117
2122
  }
2118
2123
 
2119
2124
  /**
2120
- * Enter Now
2121
- * Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
2125
+ * Ensure commodity exists
2126
+ * Gets existing commodity or creates it with automatic initialization from OpenBB
2122
2127
  * @param data The data for the request.
2123
- * @param data.id Expected transaction ID
2128
+ * @param data.symbol Commodity symbol
2124
2129
  * @param data.region Region code for tenant context
2125
- * @param data.requestBody
2126
- * @returns unknown Transaction created successfully
2130
+ * @returns CommodityResponseDto Commodity retrieved or created
2127
2131
  * @throws ApiError
2128
2132
  */
2129
- public static expectedTransactionControllerEnterNow(
2130
- data: ExpectedTransactionControllerEnterNowData
2131
- ): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
2133
+ public static commodityControllerGetOrCreate(
2134
+ data: CommodityControllerGetOrCreateData
2135
+ ): CancelablePromise<CommodityControllerGetOrCreateResponse> {
2132
2136
  return __request(OpenAPI, {
2133
2137
  method: 'POST',
2134
- url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
2138
+ url: '/api/v1/{region}/bean/commodities/{symbol}/ensure',
2135
2139
  path: {
2136
- id: data.id,
2140
+ symbol: data.symbol,
2137
2141
  region: data.region
2138
- },
2139
- body: data.requestBody,
2140
- mediaType: 'application/json',
2141
- errors: {
2142
- 400: 'Cannot enter - not in PENDING status or missing accounts',
2143
- 404: 'Expected transaction or accounts not found'
2144
2142
  }
2145
2143
  });
2146
2144
  }
2147
- }
2148
2145
 
2149
- export class RecurringForecastService {
2150
2146
  /**
2151
- * Get cash flow forecast
2152
- * Returns predicted outflows for the next N months based on active recurring rules
2147
+ * Bulk create commodities
2148
+ * Creates multiple commodities from a list of symbols, useful for initialization
2153
2149
  * @param data The data for the request.
2154
2150
  * @param data.region Region code for tenant context
2155
- * @param data.months Number of months to forecast (1-12, default 3)
2156
- * @returns ForecastResponseDto Forecast retrieved successfully
2151
+ * @returns CommodityResponseDto Commodities created successfully
2157
2152
  * @throws ApiError
2158
2153
  */
2159
- public static forecastControllerGetForecast(
2160
- data: ForecastControllerGetForecastData
2161
- ): CancelablePromise<ForecastControllerGetForecastResponse> {
2154
+ public static commodityControllerBulkCreate(
2155
+ data: CommodityControllerBulkCreateData
2156
+ ): CancelablePromise<CommodityControllerBulkCreateResponse> {
2162
2157
  return __request(OpenAPI, {
2163
- method: 'GET',
2164
- url: '/api/v1/{region}/bean/recurring/forecast',
2158
+ method: 'POST',
2159
+ url: '/api/v1/{region}/bean/commodities/bulk',
2165
2160
  path: {
2166
2161
  region: data.region
2167
- },
2168
- query: {
2169
- months: data.months
2170
2162
  }
2171
2163
  });
2172
2164
  }
@@ -2329,534 +2321,598 @@ export class ReportingService {
2329
2321
  }
2330
2322
  }
2331
2323
 
2332
- export class UsersService {
2333
- /**
2334
- * Delete own user account
2335
- * @param data The data for the request.
2336
- * @param data.requestBody
2337
- * @returns void User deleted successfully
2338
- * @throws ApiError
2339
- */
2340
- public static userControllerDeleteOwnUser(
2341
- data: UserControllerDeleteOwnUserData
2342
- ): CancelablePromise<UserControllerDeleteOwnUserResponse> {
2343
- return __request(OpenAPI, {
2344
- method: 'DELETE',
2345
- url: '/api/v1/users',
2346
- body: data.requestBody,
2347
- mediaType: 'application/json',
2348
- errors: {
2349
- 403: 'Invalid access token'
2350
- }
2351
- });
2352
- }
2353
-
2354
- /**
2355
- * Get current authenticated user
2356
- * @param data The data for the request.
2357
- * @param data.acceptLanguage
2358
- * @returns UserResponseDto User retrieved successfully
2359
- * @throws ApiError
2360
- */
2361
- public static userControllerGetUser(
2362
- data: UserControllerGetUserData
2363
- ): CancelablePromise<UserControllerGetUserResponse> {
2364
- return __request(OpenAPI, {
2365
- method: 'GET',
2366
- url: '/api/v1/users',
2367
- headers: {
2368
- 'accept-language': data.acceptLanguage
2369
- }
2370
- });
2371
- }
2372
-
2324
+ export class BeanPricesService {
2373
2325
  /**
2374
- * Sign up new user
2375
- * Create a new account with auto-generated access token. Protected by Cloudflare Turnstile to prevent automated signup (when enabled).
2326
+ * Create a new price
2327
+ * Creates a new price entry for the authenticated user
2376
2328
  * @param data The data for the request.
2329
+ * @param data.region Region code for tenant context
2377
2330
  * @param data.requestBody
2378
- * @returns SignupResponseDto User created successfully
2331
+ * @returns PriceResponseDto Price created successfully
2379
2332
  * @throws ApiError
2380
2333
  */
2381
- public static userControllerSignupUser(
2382
- data: UserControllerSignupUserData
2383
- ): CancelablePromise<UserControllerSignupUserResponse> {
2334
+ public static priceControllerCreate(
2335
+ data: PriceControllerCreateData
2336
+ ): CancelablePromise<PriceControllerCreateResponse> {
2384
2337
  return __request(OpenAPI, {
2385
2338
  method: 'POST',
2386
- url: '/api/v1/users',
2339
+ url: '/api/v1/{region}/bean/prices',
2340
+ path: {
2341
+ region: data.region
2342
+ },
2387
2343
  body: data.requestBody,
2388
2344
  mediaType: 'application/json',
2389
2345
  errors: {
2390
- 400: 'Invalid Turnstile token (when Turnstile is enabled)',
2391
- 403: 'User signup is disabled'
2346
+ 404: 'Currency or quoteCurrency commodity not found',
2347
+ 409: 'Price already exists for this currency pair and date'
2392
2348
  }
2393
2349
  });
2394
2350
  }
2395
2351
 
2396
2352
  /**
2397
- * Delete user by ID (admin only)
2353
+ * List user prices
2354
+ * Returns all price entries for the authenticated user with optional filtering
2398
2355
  * @param data The data for the request.
2399
- * @param data.id User ID to delete
2400
- * @returns void User deleted successfully
2356
+ * @param data.region Region code for tenant context
2357
+ * @param data.currency Filter by currency (e.g., BTC, AAPL, USD)
2358
+ * @param data.quoteCurrency Filter by quote currency (pricing currency, e.g., USD, CNY)
2359
+ * @param data.dateFrom Filter prices from this date (ISO 8601 format)
2360
+ * @param data.dateTo Filter prices to this date (ISO 8601 format)
2361
+ * @param data.search Search term for currency or quoteCurrency (case-insensitive partial match)
2362
+ * @param data.page Page number for pagination (default: 1)
2363
+ * @param data.limit Number of items per page (default: 20, max: 100)
2364
+ * @returns PriceListResponseDto Prices retrieved successfully
2401
2365
  * @throws ApiError
2402
2366
  */
2403
- public static userControllerDeleteUser(
2404
- data: UserControllerDeleteUserData
2405
- ): CancelablePromise<UserControllerDeleteUserResponse> {
2367
+ public static priceControllerFindAll(
2368
+ data: PriceControllerFindAllData
2369
+ ): CancelablePromise<PriceControllerFindAllResponse> {
2406
2370
  return __request(OpenAPI, {
2407
- method: 'DELETE',
2408
- url: '/api/v1/users/{id}',
2371
+ method: 'GET',
2372
+ url: '/api/v1/{region}/bean/prices',
2409
2373
  path: {
2410
- id: data.id
2374
+ region: data.region
2411
2375
  },
2412
- errors: {
2413
- 403: 'Cannot delete own account or insufficient permissions'
2376
+ query: {
2377
+ currency: data.currency,
2378
+ quoteCurrency: data.quoteCurrency,
2379
+ dateFrom: data.dateFrom,
2380
+ dateTo: data.dateTo,
2381
+ search: data.search,
2382
+ page: data.page,
2383
+ limit: data.limit
2414
2384
  }
2415
2385
  });
2416
2386
  }
2417
2387
 
2418
2388
  /**
2419
- * Get user info by user ID
2389
+ * Get price by ID
2390
+ * Returns a single price entry by its ID
2420
2391
  * @param data The data for the request.
2421
- * @param data.id User ID
2422
- * @returns unknown User info retrieved successfully
2392
+ * @param data.id Price ID
2393
+ * @param data.region Region code for tenant context
2394
+ * @returns PriceResponseDto Price retrieved successfully
2423
2395
  * @throws ApiError
2424
2396
  */
2425
- public static userControllerGetUserInfo(
2426
- data: UserControllerGetUserInfoData
2427
- ): CancelablePromise<UserControllerGetUserInfoResponse> {
2397
+ public static priceControllerFindOne(
2398
+ data: PriceControllerFindOneData
2399
+ ): CancelablePromise<PriceControllerFindOneResponse> {
2428
2400
  return __request(OpenAPI, {
2429
2401
  method: 'GET',
2430
- url: '/api/v1/users/{id}/info',
2402
+ url: '/api/v1/{region}/bean/prices/{id}',
2431
2403
  path: {
2432
- id: data.id
2404
+ id: data.id,
2405
+ region: data.region
2433
2406
  },
2434
2407
  errors: {
2435
- 403: 'Cannot access other user info without admin permission'
2408
+ 404: 'Price not found'
2436
2409
  }
2437
2410
  });
2438
2411
  }
2439
2412
 
2440
2413
  /**
2441
- * Update user settings
2414
+ * Update a price
2415
+ * Updates an existing price entry
2442
2416
  * @param data The data for the request.
2417
+ * @param data.id Price ID
2418
+ * @param data.region Region code for tenant context
2443
2419
  * @param data.requestBody
2444
- * @returns unknown Settings updated successfully
2420
+ * @returns PriceResponseDto Price updated successfully
2445
2421
  * @throws ApiError
2446
2422
  */
2447
- public static userControllerUpdateUserSetting(
2448
- data: UserControllerUpdateUserSettingData
2449
- ): CancelablePromise<UserControllerUpdateUserSettingResponse> {
2423
+ public static priceControllerUpdate(
2424
+ data: PriceControllerUpdateData
2425
+ ): CancelablePromise<PriceControllerUpdateResponse> {
2450
2426
  return __request(OpenAPI, {
2451
2427
  method: 'PUT',
2452
- url: '/api/v1/users/setting',
2428
+ url: '/api/v1/{region}/bean/prices/{id}',
2429
+ path: {
2430
+ id: data.id,
2431
+ region: data.region
2432
+ },
2453
2433
  body: data.requestBody,
2454
2434
  mediaType: 'application/json',
2455
2435
  errors: {
2456
- 403: 'Insufficient permissions'
2436
+ 404: 'Price not found',
2437
+ 409: 'Updated price conflicts with existing price'
2457
2438
  }
2458
2439
  });
2459
2440
  }
2460
2441
 
2461
2442
  /**
2462
- * Get all user settings paginated (admin only)
2443
+ * Delete a price
2444
+ * Deletes a price entry (hard delete)
2463
2445
  * @param data The data for the request.
2464
- * @param data.pageNo Page number
2465
- * @param data.pageSize Page size
2466
- * @returns unknown Settings list retrieved successfully
2446
+ * @param data.id Price ID
2447
+ * @param data.region Region code for tenant context
2448
+ * @returns void Price deleted successfully
2467
2449
  * @throws ApiError
2468
2450
  */
2469
- public static userControllerGetAllUserSettingsByPage(
2470
- data: UserControllerGetAllUserSettingsByPageData
2471
- ): CancelablePromise<UserControllerGetAllUserSettingsByPageResponse> {
2451
+ public static priceControllerDelete(
2452
+ data: PriceControllerDeleteData
2453
+ ): CancelablePromise<PriceControllerDeleteResponse> {
2472
2454
  return __request(OpenAPI, {
2473
- method: 'GET',
2474
- url: '/api/v1/users/settings-by-page',
2475
- query: {
2476
- pageNo: data.pageNo,
2477
- pageSize: data.pageSize
2455
+ method: 'DELETE',
2456
+ url: '/api/v1/{region}/bean/prices/{id}',
2457
+ path: {
2458
+ id: data.id,
2459
+ region: data.region
2460
+ },
2461
+ errors: {
2462
+ 404: 'Price not found'
2478
2463
  }
2479
2464
  });
2480
2465
  }
2481
2466
 
2482
2467
  /**
2483
- * Get asset and liability summary for current user
2484
- * @returns unknown Summary retrieved successfully
2468
+ * Bulk create prices
2469
+ * Creates multiple price entries at once (skips duplicates)
2470
+ * @param data The data for the request.
2471
+ * @param data.region Region code for tenant context
2472
+ * @param data.requestBody
2473
+ * @returns PriceResponseDto Prices created successfully
2485
2474
  * @throws ApiError
2486
2475
  */
2487
- public static userControllerGetAssetLiabilitySummary(): CancelablePromise<UserControllerGetAssetLiabilitySummaryResponse> {
2476
+ public static priceControllerBulkCreate(
2477
+ data: PriceControllerBulkCreateData
2478
+ ): CancelablePromise<PriceControllerBulkCreateResponse> {
2488
2479
  return __request(OpenAPI, {
2489
- method: 'GET',
2490
- url: '/api/v1/users/asset-liability-summary'
2480
+ method: 'POST',
2481
+ url: '/api/v1/{region}/bean/prices/bulk',
2482
+ path: {
2483
+ region: data.region
2484
+ },
2485
+ body: data.requestBody,
2486
+ mediaType: 'application/json'
2491
2487
  });
2492
2488
  }
2493
2489
  }
2494
2490
 
2495
- export class PropertiesService {
2491
+ export class RecurringRulesService {
2496
2492
  /**
2497
- * Get all system properties
2498
- * @returns unknown Properties retrieved successfully
2493
+ * Create a new recurring rule
2494
+ * Creates a new recurring transaction rule for the authenticated user
2495
+ * @param data The data for the request.
2496
+ * @param data.region Region code for tenant context
2497
+ * @param data.requestBody
2498
+ * @returns RecurringRuleResponseDto Rule created successfully
2499
2499
  * @throws ApiError
2500
2500
  */
2501
- public static propertyControllerGetAll(): CancelablePromise<PropertyControllerGetAllResponse> {
2501
+ public static recurringRuleControllerCreate(
2502
+ data: RecurringRuleControllerCreateData
2503
+ ): CancelablePromise<RecurringRuleControllerCreateResponse> {
2502
2504
  return __request(OpenAPI, {
2503
- method: 'GET',
2504
- url: '/api/v1/admin/properties',
2505
+ method: 'POST',
2506
+ url: '/api/v1/{region}/bean/recurring-rules',
2507
+ path: {
2508
+ region: data.region
2509
+ },
2510
+ body: data.requestBody,
2511
+ mediaType: 'application/json',
2505
2512
  errors: {
2506
- 401: 'Unauthorized',
2507
- 403: 'Forbidden - insufficient permissions'
2513
+ 400: 'Invalid input data (e.g., autoCreate without accounts)',
2514
+ 409: 'Rule with same name already exists'
2508
2515
  }
2509
2516
  });
2510
2517
  }
2511
2518
 
2512
2519
  /**
2513
- * Get property by key
2520
+ * List recurring rules
2521
+ * Returns all recurring rules for the authenticated user with optional filtering
2514
2522
  * @param data The data for the request.
2515
- * @param data.key Property key
2516
- * @returns unknown Property retrieved successfully
2523
+ * @param data.region Region code for tenant context
2524
+ * @param data.isActive Filter by active status
2525
+ * @param data.frequency Filter by frequency (WEEKLY, MONTHLY, etc.)
2526
+ * @param data.hasAutoCreate Filter by autoCreate enabled
2527
+ * @returns RecurringRuleResponseDto Rules retrieved successfully
2517
2528
  * @throws ApiError
2518
2529
  */
2519
- public static propertyControllerGetByKey(
2520
- data: PropertyControllerGetByKeyData
2521
- ): CancelablePromise<PropertyControllerGetByKeyResponse> {
2530
+ public static recurringRuleControllerFindAll(
2531
+ data: RecurringRuleControllerFindAllData
2532
+ ): CancelablePromise<RecurringRuleControllerFindAllResponse> {
2522
2533
  return __request(OpenAPI, {
2523
2534
  method: 'GET',
2524
- url: '/api/v1/admin/properties/{key}',
2535
+ url: '/api/v1/{region}/bean/recurring-rules',
2525
2536
  path: {
2526
- key: data.key
2537
+ region: data.region
2527
2538
  },
2528
- errors: {
2529
- 401: 'Unauthorized',
2530
- 403: 'Forbidden - insufficient permissions',
2531
- 404: 'Property not found'
2539
+ query: {
2540
+ isActive: data.isActive,
2541
+ frequency: data.frequency,
2542
+ hasAutoCreate: data.hasAutoCreate
2532
2543
  }
2533
2544
  });
2534
2545
  }
2535
2546
 
2536
2547
  /**
2537
- * Update a system property
2548
+ * Create recurring rule from transaction
2549
+ * Auto-creates a recurring rule using transaction data. User only confirms frequency.
2538
2550
  * @param data The data for the request.
2539
- * @param data.key Property key
2551
+ * @param data.transactionId Source transaction ID
2552
+ * @param data.region Region code for tenant context
2540
2553
  * @param data.requestBody
2541
- * @returns unknown Property updated successfully
2554
+ * @returns RecurringRuleResponseDto Rule created successfully
2542
2555
  * @throws ApiError
2543
2556
  */
2544
- public static propertyControllerUpdate(
2545
- data: PropertyControllerUpdateData
2546
- ): CancelablePromise<PropertyControllerUpdateResponse> {
2557
+ public static recurringRuleControllerCreateFromTransaction(
2558
+ data: RecurringRuleControllerCreateFromTransactionData
2559
+ ): CancelablePromise<RecurringRuleControllerCreateFromTransactionResponse> {
2547
2560
  return __request(OpenAPI, {
2548
- method: 'PUT',
2549
- url: '/api/v1/admin/properties/{key}',
2561
+ method: 'POST',
2562
+ url: '/api/v1/{region}/bean/recurring-rules/from-transaction/{transactionId}',
2550
2563
  path: {
2551
- key: data.key
2564
+ transactionId: data.transactionId,
2565
+ region: data.region
2552
2566
  },
2553
2567
  body: data.requestBody,
2554
2568
  mediaType: 'application/json',
2555
2569
  errors: {
2556
- 401: 'Unauthorized',
2557
- 403: 'Forbidden - insufficient permissions'
2570
+ 404: 'Transaction not found',
2571
+ 409: 'Rule with same name already exists or transaction already linked'
2558
2572
  }
2559
2573
  });
2560
2574
  }
2561
2575
 
2562
2576
  /**
2563
- * Delete a system property
2577
+ * Get recurring rule by ID
2578
+ * Returns a specific recurring rule with its details
2564
2579
  * @param data The data for the request.
2565
- * @param data.key Property key
2566
- * @returns void Property deleted successfully
2580
+ * @param data.id Rule ID
2581
+ * @param data.region Region code for tenant context
2582
+ * @returns RecurringRuleResponseDto Rule retrieved successfully
2567
2583
  * @throws ApiError
2568
2584
  */
2569
- public static propertyControllerDelete(
2570
- data: PropertyControllerDeleteData
2571
- ): CancelablePromise<PropertyControllerDeleteResponse> {
2585
+ public static recurringRuleControllerFindOne(
2586
+ data: RecurringRuleControllerFindOneData
2587
+ ): CancelablePromise<RecurringRuleControllerFindOneResponse> {
2572
2588
  return __request(OpenAPI, {
2573
- method: 'DELETE',
2574
- url: '/api/v1/admin/properties/{key}',
2589
+ method: 'GET',
2590
+ url: '/api/v1/{region}/bean/recurring-rules/{id}',
2575
2591
  path: {
2576
- key: data.key
2592
+ id: data.id,
2593
+ region: data.region
2577
2594
  },
2578
2595
  errors: {
2579
- 401: 'Unauthorized',
2580
- 403: 'Forbidden - insufficient permissions',
2581
- 404: 'Property not found'
2596
+ 404: 'Rule not found'
2582
2597
  }
2583
2598
  });
2584
2599
  }
2585
- }
2586
2600
 
2587
- export class BeanTransactionRulesService {
2588
2601
  /**
2589
- * Create a new transaction rule (or upsert if upsertByPayee=true)
2590
- * Creates a new rule. If upsertByPayee=true, updates existing rule matching payeeKeywords[0] instead of creating duplicate.
2602
+ * Update recurring rule
2603
+ * Updates an existing recurring rule
2591
2604
  * @param data The data for the request.
2605
+ * @param data.id Rule ID
2592
2606
  * @param data.region Region code for tenant context
2593
2607
  * @param data.requestBody
2594
- * @returns TransactionRuleResponseDto Rule updated successfully (upsert mode)
2608
+ * @returns RecurringRuleResponseDto Rule updated successfully
2595
2609
  * @throws ApiError
2596
2610
  */
2597
- public static transactionRuleControllerCreate(
2598
- data: TransactionRuleControllerCreateData
2599
- ): CancelablePromise<TransactionRuleControllerCreateResponse> {
2611
+ public static recurringRuleControllerUpdate(
2612
+ data: RecurringRuleControllerUpdateData
2613
+ ): CancelablePromise<RecurringRuleControllerUpdateResponse> {
2600
2614
  return __request(OpenAPI, {
2601
- method: 'POST',
2602
- url: '/api/v1/{region}/bean/transaction-rules',
2615
+ method: 'PATCH',
2616
+ url: '/api/v1/{region}/bean/recurring-rules/{id}',
2603
2617
  path: {
2618
+ id: data.id,
2604
2619
  region: data.region
2605
2620
  },
2606
2621
  body: data.requestBody,
2607
2622
  mediaType: 'application/json',
2608
2623
  errors: {
2609
- 400: 'Validation failed',
2610
- 401: 'Unauthorized',
2611
- 409: 'Resource conflict - another process is updating this rule'
2624
+ 400: 'Invalid input data',
2625
+ 404: 'Rule not found'
2612
2626
  }
2613
2627
  });
2614
2628
  }
2615
2629
 
2616
2630
  /**
2617
- * Get all transaction rules for user
2631
+ * Delete recurring rule
2632
+ * Soft deletes a recurring rule (sets isActive to false)
2618
2633
  * @param data The data for the request.
2634
+ * @param data.id Rule ID
2619
2635
  * @param data.region Region code for tenant context
2620
- * @param data.limit Max results per page (default: 20, max: 100)
2621
- * @param data.offset Pagination offset (default: 0)
2622
- * @param data.enabled Filter by enabled status
2623
- * @param data.learningSource Filter by learning source. Omit this parameter or pass empty string to get manually created rules (learningSource is null in database).
2624
- * @param data.autoApplyEnabled Filter by auto-apply status
2625
- * @returns TransactionRuleListResponseDto List of rules
2636
+ * @returns void Rule deleted successfully
2626
2637
  * @throws ApiError
2627
2638
  */
2628
- public static transactionRuleControllerList(
2629
- data: TransactionRuleControllerListData
2630
- ): CancelablePromise<TransactionRuleControllerListResponse> {
2639
+ public static recurringRuleControllerDelete(
2640
+ data: RecurringRuleControllerDeleteData
2641
+ ): CancelablePromise<RecurringRuleControllerDeleteResponse> {
2631
2642
  return __request(OpenAPI, {
2632
- method: 'GET',
2633
- url: '/api/v1/{region}/bean/transaction-rules',
2643
+ method: 'DELETE',
2644
+ url: '/api/v1/{region}/bean/recurring-rules/{id}',
2634
2645
  path: {
2646
+ id: data.id,
2635
2647
  region: data.region
2636
2648
  },
2637
- query: {
2638
- limit: data.limit,
2639
- offset: data.offset,
2640
- enabled: data.enabled,
2641
- learningSource: data.learningSource,
2642
- autoApplyEnabled: data.autoApplyEnabled
2649
+ errors: {
2650
+ 404: 'Rule not found'
2651
+ }
2652
+ });
2653
+ }
2654
+
2655
+ /**
2656
+ * Get rule with statistics
2657
+ * Returns a rule with pending/overdue counts and next expected date
2658
+ * @param data The data for the request.
2659
+ * @param data.id Rule ID
2660
+ * @param data.region Region code for tenant context
2661
+ * @returns RecurringRuleWithStatsResponseDto Rule with stats retrieved successfully
2662
+ * @throws ApiError
2663
+ */
2664
+ public static recurringRuleControllerGetWithStats(
2665
+ data: RecurringRuleControllerGetWithStatsData
2666
+ ): CancelablePromise<RecurringRuleControllerGetWithStatsResponse> {
2667
+ return __request(OpenAPI, {
2668
+ method: 'GET',
2669
+ url: '/api/v1/{region}/bean/recurring-rules/{id}/stats',
2670
+ path: {
2671
+ id: data.id,
2672
+ region: data.region
2643
2673
  },
2644
2674
  errors: {
2645
- 401: 'Unauthorized'
2675
+ 404: 'Rule not found'
2646
2676
  }
2647
2677
  });
2648
2678
  }
2679
+ }
2649
2680
 
2681
+ export class ExpectedTransactionsService {
2650
2682
  /**
2651
- * Validate transaction rule configuration
2683
+ * List expected transactions
2684
+ * Returns expected transactions for the authenticated user with optional filtering
2652
2685
  * @param data The data for the request.
2653
2686
  * @param data.region Region code for tenant context
2654
- * @param data.requestBody
2655
- * @returns ValidateRuleResponseDto Validation result
2687
+ * @param data.ruleId Filter by recurring rule ID
2688
+ * @param data.status Filter by status (PENDING, COMPLETED, SKIPPED)
2689
+ * @param data.fromDate Filter by date range start (YYYY-MM-DD)
2690
+ * @param data.toDate Filter by date range end (YYYY-MM-DD)
2691
+ * @returns ExpectedTransactionListResponseDto Expected transactions retrieved successfully
2656
2692
  * @throws ApiError
2657
2693
  */
2658
- public static transactionRuleControllerValidate(
2659
- data: TransactionRuleControllerValidateData
2660
- ): CancelablePromise<TransactionRuleControllerValidateResponse> {
2694
+ public static expectedTransactionControllerFindAll(
2695
+ data: ExpectedTransactionControllerFindAllData
2696
+ ): CancelablePromise<ExpectedTransactionControllerFindAllResponse> {
2661
2697
  return __request(OpenAPI, {
2662
- method: 'POST',
2663
- url: '/api/v1/{region}/bean/transaction-rules/validate',
2698
+ method: 'GET',
2699
+ url: '/api/v1/{region}/bean/expected-transactions',
2664
2700
  path: {
2665
2701
  region: data.region
2666
2702
  },
2667
- body: data.requestBody,
2668
- mediaType: 'application/json',
2669
- errors: {
2670
- 400: 'Validation failed',
2671
- 401: 'Unauthorized'
2703
+ query: {
2704
+ ruleId: data.ruleId,
2705
+ status: data.status,
2706
+ fromDate: data.fromDate,
2707
+ toDate: data.toDate
2672
2708
  }
2673
2709
  });
2674
2710
  }
2675
2711
 
2676
2712
  /**
2677
- * Bulk create transaction rules
2713
+ * List overdue expected transactions
2714
+ * Returns all overdue expected transactions (PENDING past tolerance)
2678
2715
  * @param data The data for the request.
2679
2716
  * @param data.region Region code for tenant context
2680
- * @param data.requestBody
2681
- * @returns BulkCreateRulesResponseDto Bulk create completed
2717
+ * @returns ExpectedTransactionListResponseDto Overdue transactions retrieved successfully
2682
2718
  * @throws ApiError
2683
2719
  */
2684
- public static transactionRuleControllerBulkCreate(
2685
- data: TransactionRuleControllerBulkCreateData
2686
- ): CancelablePromise<TransactionRuleControllerBulkCreateResponse> {
2720
+ public static expectedTransactionControllerFindOverdue(
2721
+ data: ExpectedTransactionControllerFindOverdueData
2722
+ ): CancelablePromise<ExpectedTransactionControllerFindOverdueResponse> {
2687
2723
  return __request(OpenAPI, {
2688
- method: 'POST',
2689
- url: '/api/v1/{region}/bean/transaction-rules/bulk',
2724
+ method: 'GET',
2725
+ url: '/api/v1/{region}/bean/expected-transactions/overdue',
2690
2726
  path: {
2691
2727
  region: data.region
2692
- },
2693
- body: data.requestBody,
2694
- mediaType: 'application/json',
2695
- errors: {
2696
- 400: 'Invalid bulk create data',
2697
- 401: 'Unauthorized'
2698
2728
  }
2699
2729
  });
2700
2730
  }
2701
2731
 
2702
2732
  /**
2703
- * Export transaction rules
2733
+ * Get expected transaction by ID
2734
+ * Returns a specific expected transaction with rule details
2704
2735
  * @param data The data for the request.
2705
- * @param data.format Export format (currently only JSON supported)
2736
+ * @param data.id Expected transaction ID
2706
2737
  * @param data.region Region code for tenant context
2707
- * @returns ExportRulesResponseDto Exported rules
2738
+ * @returns ExpectedTransactionResponseDto Expected transaction retrieved successfully
2708
2739
  * @throws ApiError
2709
2740
  */
2710
- public static transactionRuleControllerExport(
2711
- data: TransactionRuleControllerExportData
2712
- ): CancelablePromise<TransactionRuleControllerExportResponse> {
2741
+ public static expectedTransactionControllerFindOne(
2742
+ data: ExpectedTransactionControllerFindOneData
2743
+ ): CancelablePromise<ExpectedTransactionControllerFindOneResponse> {
2713
2744
  return __request(OpenAPI, {
2714
2745
  method: 'GET',
2715
- url: '/api/v1/{region}/bean/transaction-rules/export/{format}',
2746
+ url: '/api/v1/{region}/bean/expected-transactions/{id}',
2716
2747
  path: {
2717
- format: data.format,
2748
+ id: data.id,
2718
2749
  region: data.region
2719
2750
  },
2720
2751
  errors: {
2721
- 400: 'Unsupported format',
2722
- 401: 'Unauthorized'
2752
+ 404: 'Expected transaction not found'
2723
2753
  }
2724
2754
  });
2725
2755
  }
2726
2756
 
2727
2757
  /**
2728
- * Get transaction rule statistics
2758
+ * Skip expected transaction
2759
+ * Marks an expected transaction as skipped (PENDING -> SKIPPED)
2729
2760
  * @param data The data for the request.
2730
- * @param data.period Statistics time period
2761
+ * @param data.id Expected transaction ID
2731
2762
  * @param data.region Region code for tenant context
2732
- * @returns RuleStatisticsResponseDto Rule statistics
2763
+ * @returns ExpectedTransactionResponseDto Expected transaction skipped successfully
2733
2764
  * @throws ApiError
2734
2765
  */
2735
- public static transactionRuleControllerGetStatistics(
2736
- data: TransactionRuleControllerGetStatisticsData
2737
- ): CancelablePromise<TransactionRuleControllerGetStatisticsResponse> {
2766
+ public static expectedTransactionControllerSkip(
2767
+ data: ExpectedTransactionControllerSkipData
2768
+ ): CancelablePromise<ExpectedTransactionControllerSkipResponse> {
2738
2769
  return __request(OpenAPI, {
2739
- method: 'GET',
2740
- url: '/api/v1/{region}/bean/transaction-rules/statistics/{period}',
2770
+ method: 'POST',
2771
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
2741
2772
  path: {
2742
- period: data.period,
2773
+ id: data.id,
2743
2774
  region: data.region
2744
2775
  },
2745
2776
  errors: {
2746
- 401: 'Unauthorized'
2777
+ 400: 'Cannot skip - not in PENDING status',
2778
+ 404: 'Expected transaction not found'
2747
2779
  }
2748
2780
  });
2749
2781
  }
2750
2782
 
2751
2783
  /**
2752
- * Get transaction rule detail
2784
+ * Undo skip
2785
+ * Reverses a skip operation (SKIPPED -> PENDING)
2753
2786
  * @param data The data for the request.
2754
- * @param data.ruleId Rule ID
2787
+ * @param data.id Expected transaction ID
2755
2788
  * @param data.region Region code for tenant context
2756
- * @returns TransactionRuleResponseDto Rule details
2789
+ * @returns void Skip undone successfully
2757
2790
  * @throws ApiError
2758
2791
  */
2759
- public static transactionRuleControllerGetDetail(
2760
- data: TransactionRuleControllerGetDetailData
2761
- ): CancelablePromise<TransactionRuleControllerGetDetailResponse> {
2792
+ public static expectedTransactionControllerUndoSkip(
2793
+ data: ExpectedTransactionControllerUndoSkipData
2794
+ ): CancelablePromise<ExpectedTransactionControllerUndoSkipResponse> {
2762
2795
  return __request(OpenAPI, {
2763
- method: 'GET',
2764
- url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
2796
+ method: 'DELETE',
2797
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/skip',
2765
2798
  path: {
2766
- ruleId: data.ruleId,
2799
+ id: data.id,
2767
2800
  region: data.region
2768
2801
  },
2769
2802
  errors: {
2770
- 401: 'Unauthorized',
2771
- 403: 'Forbidden - not owner of rule',
2772
- 404: 'Rule not found'
2803
+ 400: 'Cannot undo - not in SKIPPED status',
2804
+ 404: 'Expected transaction not found'
2773
2805
  }
2774
2806
  });
2775
2807
  }
2776
2808
 
2777
2809
  /**
2778
- * Update a transaction rule
2810
+ * Confirm transaction match
2811
+ * Manually matches an expected transaction with an actual transaction
2779
2812
  * @param data The data for the request.
2780
- * @param data.ruleId Rule ID to update
2813
+ * @param data.id Expected transaction ID
2781
2814
  * @param data.region Region code for tenant context
2782
2815
  * @param data.requestBody
2783
- * @returns TransactionRuleResponseDto Rule updated successfully
2816
+ * @returns unknown Match confirmed successfully
2784
2817
  * @throws ApiError
2785
2818
  */
2786
- public static transactionRuleControllerUpdate(
2787
- data: TransactionRuleControllerUpdateData
2788
- ): CancelablePromise<TransactionRuleControllerUpdateResponse> {
2819
+ public static expectedTransactionControllerConfirmMatch(
2820
+ data: ExpectedTransactionControllerConfirmMatchData
2821
+ ): CancelablePromise<ExpectedTransactionControllerConfirmMatchResponse> {
2789
2822
  return __request(OpenAPI, {
2790
- method: 'PUT',
2791
- url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
2823
+ method: 'POST',
2824
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
2792
2825
  path: {
2793
- ruleId: data.ruleId,
2826
+ id: data.id,
2794
2827
  region: data.region
2795
2828
  },
2796
2829
  body: data.requestBody,
2797
2830
  mediaType: 'application/json',
2798
2831
  errors: {
2799
- 400: 'Validation failed',
2800
- 401: 'Unauthorized',
2801
- 403: 'Forbidden - not owner of rule',
2802
- 404: 'Rule not found',
2803
- 409: 'Resource conflict - rule is being modified by another process'
2832
+ 400: 'Cannot match - not in PENDING status',
2833
+ 404: 'Expected or actual transaction not found',
2834
+ 409: 'Actual transaction already matched to another rule'
2804
2835
  }
2805
2836
  });
2806
2837
  }
2807
2838
 
2808
2839
  /**
2809
- * Delete a transaction rule
2840
+ * Unmatch transaction
2841
+ * Removes the match between expected and actual transaction (COMPLETED -> PENDING)
2810
2842
  * @param data The data for the request.
2811
- * @param data.ruleId Rule ID to delete
2843
+ * @param data.id Expected transaction ID
2812
2844
  * @param data.region Region code for tenant context
2813
- * @returns void Rule deleted successfully
2845
+ * @returns void Match removed successfully
2814
2846
  * @throws ApiError
2815
2847
  */
2816
- public static transactionRuleControllerDelete(
2817
- data: TransactionRuleControllerDeleteData
2818
- ): CancelablePromise<TransactionRuleControllerDeleteResponse> {
2848
+ public static expectedTransactionControllerUnmatch(
2849
+ data: ExpectedTransactionControllerUnmatchData
2850
+ ): CancelablePromise<ExpectedTransactionControllerUnmatchResponse> {
2819
2851
  return __request(OpenAPI, {
2820
2852
  method: 'DELETE',
2821
- url: '/api/v1/{region}/bean/transaction-rules/{ruleId}',
2853
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/match',
2822
2854
  path: {
2823
- ruleId: data.ruleId,
2855
+ id: data.id,
2824
2856
  region: data.region
2825
2857
  },
2826
2858
  errors: {
2827
- 401: 'Unauthorized',
2828
- 403: 'Forbidden - not owner of rule',
2829
- 404: 'Rule not found',
2830
- 409: 'Resource conflict - rule is being modified by another process'
2859
+ 400: 'Cannot unmatch - not in COMPLETED status',
2860
+ 404: 'Expected transaction not found'
2831
2861
  }
2832
2862
  });
2833
2863
  }
2834
2864
 
2835
2865
  /**
2836
- * Test rule matching
2866
+ * Enter Now
2867
+ * Creates an actual transaction for an expected transaction (YNAB-style Enter Now)
2837
2868
  * @param data The data for the request.
2838
- * @param data.ruleId Rule ID to test
2869
+ * @param data.id Expected transaction ID
2839
2870
  * @param data.region Region code for tenant context
2840
2871
  * @param data.requestBody
2841
- * @returns TestRuleResponseDto Test result
2872
+ * @returns unknown Transaction created successfully
2842
2873
  * @throws ApiError
2843
2874
  */
2844
- public static transactionRuleControllerTest(
2845
- data: TransactionRuleControllerTestData
2846
- ): CancelablePromise<TransactionRuleControllerTestResponse> {
2875
+ public static expectedTransactionControllerEnterNow(
2876
+ data: ExpectedTransactionControllerEnterNowData
2877
+ ): CancelablePromise<ExpectedTransactionControllerEnterNowResponse> {
2847
2878
  return __request(OpenAPI, {
2848
2879
  method: 'POST',
2849
- url: '/api/v1/{region}/bean/transaction-rules/{ruleId}/test',
2880
+ url: '/api/v1/{region}/bean/expected-transactions/{id}/enter',
2850
2881
  path: {
2851
- ruleId: data.ruleId,
2882
+ id: data.id,
2852
2883
  region: data.region
2853
2884
  },
2854
2885
  body: data.requestBody,
2855
2886
  mediaType: 'application/json',
2856
2887
  errors: {
2857
- 401: 'Unauthorized',
2858
- 403: 'Forbidden - not owner of rule',
2859
- 404: 'Rule not found'
2888
+ 400: 'Cannot enter - not in PENDING status or missing accounts',
2889
+ 404: 'Expected transaction or accounts not found'
2890
+ }
2891
+ });
2892
+ }
2893
+ }
2894
+
2895
+ export class RecurringForecastService {
2896
+ /**
2897
+ * Get cash flow forecast
2898
+ * Returns predicted outflows for the next N months based on active recurring rules
2899
+ * @param data The data for the request.
2900
+ * @param data.region Region code for tenant context
2901
+ * @param data.months Number of months to forecast (1-12, default 3)
2902
+ * @returns ForecastResponseDto Forecast retrieved successfully
2903
+ * @throws ApiError
2904
+ */
2905
+ public static forecastControllerGetForecast(
2906
+ data: ForecastControllerGetForecastData
2907
+ ): CancelablePromise<ForecastControllerGetForecastResponse> {
2908
+ return __request(OpenAPI, {
2909
+ method: 'GET',
2910
+ url: '/api/v1/{region}/bean/recurring/forecast',
2911
+ path: {
2912
+ region: data.region
2913
+ },
2914
+ query: {
2915
+ months: data.months
2860
2916
  }
2861
2917
  });
2862
2918
  }
@@ -2865,7 +2921,7 @@ export class BeanTransactionRulesService {
2865
2921
  export class BeanCategoryCatalogService {
2866
2922
  /**
2867
2923
  * List category catalog for a region
2868
- * Returns the region-scoped category slugs (expense/income/investment/banking/transfer/payment) for the NLP result picker. CN-exclusive payment instruments (huabei/baitiao) appear only under /cn.
2924
+ * Returns the region-scoped category slugs (expense/income/investment/banking/transfer/payment) for the NLP result picker, each with the categoryAccount paths the region-enabled system rules map it to (#816). CN-exclusive payment instruments (huabei/baitiao) appear only under /cn.
2869
2925
  * @param data The data for the request.
2870
2926
  * @param data.region Region code for tenant context
2871
2927
  * @param data.scenario Filter by scenario
@@ -3069,7 +3125,7 @@ export class OnboardingService {
3069
3125
  /**
3070
3126
  * Bootstrap core accounts + register asset accounts with opening balances (ADR-0113)
3071
3127
  * @param data The data for the request.
3072
- * @param data.region Region code for tenant context
3128
+ * @param data.region Region code for tenant context. Not-yet-open codes are accepted: the universal catalog backs onboarding regardless of region (#759)
3073
3129
  * @param data.requestBody
3074
3130
  * @returns unknown Onboarding bootstrap result.
3075
3131
  * @throws ApiError
@@ -3202,13 +3258,20 @@ export class BeanExportService {
3202
3258
  /**
3203
3259
  * Export Beancount ledger as ZIP
3204
3260
  * Export all user Beancount data as a ZIP file containing ledger.beancount and yearly files in community format.
3205
- * @returns unknown
3261
+ * @param data The data for the request.
3262
+ * @param data.region Region code for tenant context
3263
+ * @returns binary ZIP archive (application/zip) streamed as an attachment
3206
3264
  * @throws ApiError
3207
3265
  */
3208
- public static exportControllerExportBeancount(): CancelablePromise<ExportControllerExportBeancountResponse> {
3266
+ public static exportControllerExportBeancount(
3267
+ data: ExportControllerExportBeancountData
3268
+ ): CancelablePromise<ExportControllerExportBeancountResponse> {
3209
3269
  return __request(OpenAPI, {
3210
3270
  method: 'GET',
3211
- url: '/api/v1/{region}/bean/export/beancount'
3271
+ url: '/api/v1/{region}/bean/export/beancount',
3272
+ path: {
3273
+ region: data.region
3274
+ }
3212
3275
  });
3213
3276
  }
3214
3277
  }
@@ -3245,7 +3308,7 @@ export class BeanImportService {
3245
3308
 
3246
3309
  /**
3247
3310
  * Identify file type
3248
- * 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.
3311
+ * Server-side importer identification has been removed (ADR-0101); file matching is handled client-side via the community parser pipeline. Always returns identified=false with an explanatory message; kept for backward compatibility. Does not perform actual import.
3249
3312
  * @param data The data for the request.
3250
3313
  * @param data.region Region code for tenant context
3251
3314
  * @param data.formData File to identify
@@ -3803,6 +3866,31 @@ export class BeanPlatformsService {
3803
3866
  });
3804
3867
  }
3805
3868
 
3869
+ /**
3870
+ * Get the region and candidate account standards for a platform
3871
+ * @param data The data for the request.
3872
+ * @param data.id Platform ID (from a match result)
3873
+ * @param data.region Region code (ISO 3166-1 alpha-2, case-insensitive). Required for global platforms (countryCode null) — resolved as their template region; ignored when the platform has its own countryCode.
3874
+ * @param data.type Filter templates by account type (path first segment)
3875
+ * @returns PlatformStandardsResponseDto Resolved region plus the merged account-standard catalog of that region (groupable by productCategory client-side)
3876
+ * @throws ApiError
3877
+ */
3878
+ public static platformControllerGetPlatformStandards(
3879
+ data: PlatformControllerGetPlatformStandardsData
3880
+ ): CancelablePromise<PlatformControllerGetPlatformStandardsResponse> {
3881
+ return __request(OpenAPI, {
3882
+ method: 'GET',
3883
+ url: '/api/v1/bean/platforms/{id}/standards',
3884
+ path: {
3885
+ id: data.id
3886
+ },
3887
+ query: {
3888
+ region: data.region,
3889
+ type: data.type
3890
+ }
3891
+ });
3892
+ }
3893
+
3806
3894
  /**
3807
3895
  * Update a platform
3808
3896
  * @param data The data for the request.
@@ -3969,6 +4057,34 @@ export class DashboardService {
3969
4057
  }
3970
4058
  });
3971
4059
  }
4060
+
4061
+ /**
4062
+ * Get the composite P8 advisor context
4063
+ * Assembles the P8 data context in one call: net worth (verbatim GET /dashboard/net-worth shape, user base currency semantics per ADR-0070), trailing-12m flow totals over the 12 calendar months including the as-of month, and top-3 expense categories by account-path leaf key — both flow blocks priced in CNY per the P8 contract. The P8 snake_case field spellings (as_of, net_worth, trailing_12m) are mapped by the consumer; the wire keeps the family camelCase
4064
+ * @param data The data for the request.
4065
+ * @param data.region Region code for tenant context
4066
+ * @param data.date As-of date for the snapshot and the trailing-12m window anchor (ISO 8601 format)
4067
+ * @returns AdvisorContextResponseDto Advisor context retrieved successfully
4068
+ * @throws ApiError
4069
+ */
4070
+ public static dashboardControllerGetAdvisorContext(
4071
+ data: DashboardControllerGetAdvisorContextData
4072
+ ): CancelablePromise<DashboardControllerGetAdvisorContextResponse> {
4073
+ return __request(OpenAPI, {
4074
+ method: 'GET',
4075
+ url: '/api/v1/{region}/dashboard/advisor-context',
4076
+ path: {
4077
+ region: data.region
4078
+ },
4079
+ query: {
4080
+ date: data.date
4081
+ },
4082
+ errors: {
4083
+ 400: 'Invalid date format',
4084
+ 401: 'User not authenticated, or the token is not advisor-scoped (exchange via POST /auth/sessions/advisor, #1512)'
4085
+ }
4086
+ });
4087
+ }
3972
4088
  }
3973
4089
 
3974
4090
  export class InvestmentService {
@@ -4044,6 +4160,27 @@ export class AuthService {
4044
4160
  }
4045
4161
  });
4046
4162
  }
4163
+
4164
+ /**
4165
+ * Exchange an access token for an advisor-scoped, short-TTL JWT (#1512)
4166
+ * @param data The data for the request.
4167
+ * @param data.requestBody
4168
+ * @returns AdvisorLoginResponseDto Advisor-scope login successful — the token is valid only on advisor tool-face endpoints (e.g. GET /:region/dashboard/advisor-context)
4169
+ * @throws ApiError
4170
+ */
4171
+ public static authControllerAdvisorTokenLogin(
4172
+ data: AuthControllerAdvisorTokenLoginData
4173
+ ): CancelablePromise<AuthControllerAdvisorTokenLoginResponse> {
4174
+ return __request(OpenAPI, {
4175
+ method: 'POST',
4176
+ url: '/api/v1/auth/sessions/advisor',
4177
+ body: data.requestBody,
4178
+ mediaType: 'application/json',
4179
+ errors: {
4180
+ 401: 'Invalid access token'
4181
+ }
4182
+ });
4183
+ }
4047
4184
  }
4048
4185
 
4049
4186
  export class CommunityService {
@@ -4078,15 +4215,20 @@ export class CommunityService {
4078
4215
  }
4079
4216
  }
4080
4217
 
4081
- export class DefaultService {
4218
+ export class AdminCacheService {
4082
4219
  /**
4083
- * @returns unknown
4220
+ * Flush entire cache (L1 + L2)
4221
+ * Clears ALL cache entries across ALL namespaces and users. Use only for emergency cache corruption recovery, maintenance-window refresh, or development resets.
4222
+ * @returns unknown Cache flushed successfully
4084
4223
  * @throws ApiError
4085
4224
  */
4086
4225
  public static cacheControllerFlushCache(): CancelablePromise<CacheControllerFlushCacheResponse> {
4087
4226
  return __request(OpenAPI, {
4088
4227
  method: 'POST',
4089
- url: '/api/v1/cache/flush'
4228
+ url: '/api/v1/cache/flush',
4229
+ errors: {
4230
+ 403: 'Admin access required'
4231
+ }
4090
4232
  });
4091
4233
  }
4092
4234
  }
@@ -4255,7 +4397,7 @@ export class MarketDataService {
4255
4397
  * @param data The data for the request.
4256
4398
  * @param data.q Search term — matched against symbol and instrument name. Empty string returns [].
4257
4399
  * @param data.limit Maximum number of results (clamped 1..50)
4258
- * @param data.exchange Filter by exchange code (e.g. US, HK, SS, SZ)
4400
+ * @param data.exchange Filter by exchange code (e.g. US, HK, SS, SZ). A-share codes also match symbol notations and venue-code aliases (exchange=SS matches SH/SHH column values and bare 6-digit Shanghai symbols; SZ likewise)
4259
4401
  * @param data.assetType Filter by OpenBB asset_type (e.g. stock, etf)
4260
4402
  * @returns SymbolSearchResultDto Ranked search results
4261
4403
  * @throws ApiError