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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -484,7 +484,7 @@ var BeanAccountsService = class {
484
484
  * @param data.type Filter by account type
485
485
  * @param data.status Filter by status
486
486
  * @param data.isCustom Filter by custom (user-created) accounts only
487
- * @param data.search Search term for path or i18nKey
487
+ * @param data.search Search term matched against account path and user-set display name (case-insensitive)
488
488
  * @param data.limit Maximum number of results
489
489
  * @param data.offset Number of results to skip
490
490
  * @returns AccountListResponseDto Accounts retrieved successfully
@@ -556,7 +556,7 @@ var BeanAccountsService = class {
556
556
  }
557
557
  /**
558
558
  * Delete account
559
- * Deletes an account (only if no transactions)
559
+ * Deletes an account (only if no active transactions; voided/superseded residual postings are cleaned up)
560
560
  * @param data The data for the request.
561
561
  * @param data.id Account UUID
562
562
  * @param data.region Region code for tenant context
@@ -573,7 +573,7 @@ var BeanAccountsService = class {
573
573
  },
574
574
  errors: {
575
575
  404: "Account not found",
576
- 409: "Account has transactions and cannot be deleted"
576
+ 409: "Account has active transactions and cannot be deleted"
577
577
  }
578
578
  });
579
579
  }
@@ -629,6 +629,32 @@ var BeanAccountsService = class {
629
629
  }
630
630
  });
631
631
  }
632
+ /**
633
+ * Post an opening-balance transaction
634
+ * Posts a double-entry opening-balance transaction against Equity:Opening-Balances for an existing Assets/Liabilities account. At most one active opening balance per account.
635
+ * @param data The data for the request.
636
+ * @param data.id Account UUID
637
+ * @param data.region Region code for tenant context
638
+ * @param data.requestBody
639
+ * @returns OpeningBalanceResultDto Opening-balance transaction created
640
+ * @throws ApiError
641
+ */
642
+ static accountControllerAddOpeningBalance(data) {
643
+ return request(OpenAPI, {
644
+ method: "POST",
645
+ url: "/api/v1/{region}/bean/accounts/{id}/opening-balance",
646
+ path: {
647
+ id: data.id,
648
+ region: data.region
649
+ },
650
+ body: data.requestBody,
651
+ mediaType: "application/json",
652
+ errors: {
653
+ 404: "Account not found",
654
+ 409: "An opening balance already exists for this account"
655
+ }
656
+ });
657
+ }
632
658
  };
633
659
  var BeanTransactionsService = class {
634
660
  /**
@@ -667,9 +693,11 @@ var BeanTransactionsService = class {
667
693
  * @param data.offset Number of items to skip (default: 0)
668
694
  * @param data.dateFrom Filter by start date (inclusive), format: YYYY-MM-DD
669
695
  * @param data.dateTo Filter by end date (inclusive), format: YYYY-MM-DD
670
- * @param data.status Filter by transaction status
696
+ * @param data.status Filter by transaction status: single value, comma-separated multi-value (e.g. VOIDED,SUPERSEDED), or ALL to include audit rows. Defaults to ACTIVE-only (ADR-0128; previously unfiltered — breaking change).
671
697
  * @param data.search Search in narration and payee fields (max 200 chars)
672
698
  * @param data.accountId Filter by account ID (transactions with postings to this account)
699
+ * @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an account whose derived Group segment equals this value. Must be accompanied by flow (ADR-0126).
700
+ * @param data.flow Required when category is present (400 otherwise) and vice versa (ADR-0126). Restricts the category account set to the flow root (income → Income:, expense → Expenses:) and drives the per-leg sign normalization of row viewpointAmount and the summary. OpenAPI cannot express conditional requiredness — the pairing is enforced at runtime.
673
701
  * @returns TransactionListResponseDto Transaction list
674
702
  * @throws ApiError
675
703
  */
@@ -687,25 +715,119 @@ var BeanTransactionsService = class {
687
715
  dateTo: data.dateTo,
688
716
  status: data.status,
689
717
  search: data.search,
690
- accountId: data.accountId
718
+ accountId: data.accountId,
719
+ category: data.category,
720
+ flow: data.flow
691
721
  },
692
722
  errors: {
723
+ 400: "Validation failed",
693
724
  401: "Authentication required"
694
725
  }
695
726
  });
696
727
  }
697
728
  /**
729
+ * @deprecated
730
+ * Batch create transactions (DEPRECATED)
731
+ * DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
698
732
  * @param data The data for the request.
699
733
  * @param data.region Region code for tenant context
700
- * @returns unknown
734
+ * @param data.requestBody
735
+ * @returns BatchTransactionResponseDto Transactions processed
701
736
  * @throws ApiError
702
737
  */
703
- static transactionController(data) {
738
+ static transactionControllerCreateBatch(data) {
704
739
  return request(OpenAPI, {
705
740
  method: "POST",
706
741
  url: "/api/v1/{region}/bean/transactions/batch",
707
742
  path: {
708
743
  region: data.region
744
+ },
745
+ body: data.requestBody,
746
+ mediaType: "application/json",
747
+ errors: {
748
+ 400: "Invalid input",
749
+ 401: "Authentication required"
750
+ }
751
+ });
752
+ }
753
+ /**
754
+ * Batch void transactions
755
+ * 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.
756
+ * @param data The data for the request.
757
+ * @param data.region Region code for tenant context
758
+ * @param data.requestBody Batch void request (1-500 unique transaction IDs)
759
+ * @returns BatchVoidResultDto Batch void result: count of rows voided plus ids not found / no longer ACTIVE
760
+ * @throws ApiError
761
+ */
762
+ static transactionControllerBatchVoid(data) {
763
+ return request(OpenAPI, {
764
+ method: "POST",
765
+ url: "/api/v1/{region}/bean/transactions/batch-void",
766
+ path: {
767
+ region: data.region
768
+ },
769
+ body: data.requestBody,
770
+ mediaType: "application/json",
771
+ errors: {
772
+ 400: "Validation failed (empty, over 500, duplicate or non-string ids)",
773
+ 401: "Authentication required",
774
+ 403: "Batch contains ids owned by another user \u2014 whole request rejected, nothing committed"
775
+ }
776
+ });
777
+ }
778
+ /**
779
+ * Correct (supersede) a transaction
780
+ * Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
781
+ * @param data The data for the request.
782
+ * @param data.id Original transaction ID to correct
783
+ * @param data.region Region code for tenant context
784
+ * @param data.requestBody
785
+ * @returns TransactionDetailDto Corrected transaction created
786
+ * @throws ApiError
787
+ */
788
+ static transactionControllerCorrect(data) {
789
+ return request(OpenAPI, {
790
+ method: "POST",
791
+ url: "/api/v1/{region}/bean/transactions/{id}/correct",
792
+ path: {
793
+ id: data.id,
794
+ region: data.region
795
+ },
796
+ body: data.requestBody,
797
+ mediaType: "application/json",
798
+ errors: {
799
+ 404: "Original transaction not found",
800
+ 409: "Original no longer ACTIVE (concurrent modification)",
801
+ 422: "Pipeline validation failed (does not balance, invalid accounts)"
802
+ }
803
+ });
804
+ }
805
+ /**
806
+ * Suggest transaction tags
807
+ * Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
808
+ * @param data The data for the request.
809
+ * @param data.region Region code for tenant context
810
+ * @param data.q Prefix match, case-insensitive (max 50 chars)
811
+ * @param data.sort usage (default) or name
812
+ * @param data.limit Max suggestions (1-100, default 10)
813
+ * @returns TagSuggestionsResponseDto Tag suggestions
814
+ * @throws ApiError
815
+ */
816
+ static transactionControllerSuggestTags(data) {
817
+ return request(OpenAPI, {
818
+ method: "GET",
819
+ url: "/api/v1/{region}/bean/transactions/tags",
820
+ path: {
821
+ region: data.region
822
+ },
823
+ query: {
824
+ q: data.q,
825
+ sort: data.sort,
826
+ limit: data.limit
827
+ },
828
+ errors: {
829
+ 400: "Validation failed",
830
+ 401: "Authentication required"
709
831
  }
710
832
  });
711
833
  }
@@ -760,17 +882,26 @@ var BeanTransactionsService = class {
760
882
  });
761
883
  }
762
884
  /**
885
+ * Void transaction
886
+ * Soft-deletes a transaction by marking it as VOIDED
763
887
  * @param data The data for the request.
888
+ * @param data.id Transaction ID
764
889
  * @param data.region Region code for tenant context
765
- * @returns void
890
+ * @returns void Transaction voided successfully
766
891
  * @throws ApiError
767
892
  */
768
- static transactionController1(data) {
893
+ static transactionControllerDelete(data) {
769
894
  return request(OpenAPI, {
770
895
  method: "DELETE",
771
896
  url: "/api/v1/{region}/bean/transactions/{id}",
772
897
  path: {
898
+ id: data.id,
773
899
  region: data.region
900
+ },
901
+ errors: {
902
+ 400: "Transaction already voided",
903
+ 401: "Authentication required",
904
+ 404: "Transaction not found"
774
905
  }
775
906
  });
776
907
  }
@@ -780,8 +911,8 @@ var BeanBalancesService = class {
780
911
  * Query account balance
781
912
  * Calculate account balance at a specific date for a single currency
782
913
  * @param data The data for the request.
783
- * @param data.account Account name (e.g., "Assets:Bank:Checking")
784
- * @param data.region Region code (cn, us, de)
914
+ * @param data.account Account name (e.g., "Assets:Checking")
915
+ * @param data.region Region code for tenant context
785
916
  * @param data.date Date to calculate balance at (ISO 8601 format)
786
917
  * @param data.currency Currency to query (e.g., "USD", "CNY")
787
918
  * @returns BalanceResponseDto Balance calculated successfully
@@ -809,7 +940,7 @@ var BeanBalancesService = class {
809
940
  * Query multi-currency account balance
810
941
  * Calculate account balances for all currencies at a specific date
811
942
  * @param data The data for the request.
812
- * @param data.region Region code (cn, us, de)
943
+ * @param data.region Region code for tenant context
813
944
  * @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
814
945
  * @throws ApiError
815
946
  */
@@ -829,17 +960,26 @@ var BeanBalancesService = class {
829
960
  };
830
961
  var BeanCommoditiesService = class {
831
962
  /**
963
+ * Create a new commodity
964
+ * Creates a new commodity definition for the authenticated user
832
965
  * @param data The data for the request.
833
- * @param data.region Region code (cn, us, de)
834
- * @returns unknown
966
+ * @param data.region Region code for tenant context
967
+ * @param data.requestBody
968
+ * @returns CommodityResponseDto Commodity created successfully
835
969
  * @throws ApiError
836
970
  */
837
- static commodityController(data) {
971
+ static commodityControllerCreate(data) {
838
972
  return request(OpenAPI, {
839
973
  method: "POST",
840
974
  url: "/api/v1/{region}/bean/commodities",
841
975
  path: {
842
976
  region: data.region
977
+ },
978
+ body: data.requestBody,
979
+ mediaType: "application/json",
980
+ errors: {
981
+ 400: "Invalid input data",
982
+ 409: "Commodity already exists"
843
983
  }
844
984
  });
845
985
  }
@@ -847,7 +987,7 @@ var BeanCommoditiesService = class {
847
987
  * List user commodities
848
988
  * Returns all commodity definitions for the authenticated user with optional filtering
849
989
  * @param data The data for the request.
850
- * @param data.region Region code (cn, us, de)
990
+ * @param data.region Region code for tenant context
851
991
  * @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
852
992
  * @param data.symbol Filter by exact symbol match
853
993
  * @returns CommodityListResponseDto Commodities retrieved successfully
@@ -871,7 +1011,7 @@ var BeanCommoditiesService = class {
871
1011
  * Returns a specific commodity definition by its symbol
872
1012
  * @param data The data for the request.
873
1013
  * @param data.symbol Commodity symbol
874
- * @param data.region Region code (cn, us, de)
1014
+ * @param data.region Region code for tenant context
875
1015
  * @returns CommodityResponseDto Commodity retrieved successfully
876
1016
  * @throws ApiError
877
1017
  */
@@ -889,57 +1029,81 @@ var BeanCommoditiesService = class {
889
1029
  });
890
1030
  }
891
1031
  /**
1032
+ * Update commodity
1033
+ * Updates an existing commodity definition. Symbol cannot be changed.
892
1034
  * @param data The data for the request.
893
- * @param data.region Region code (cn, us, de)
894
- * @returns unknown
1035
+ * @param data.symbol Commodity symbol
1036
+ * @param data.region Region code for tenant context
1037
+ * @param data.requestBody
1038
+ * @returns CommodityResponseDto Commodity updated successfully
895
1039
  * @throws ApiError
896
1040
  */
897
- static commodityController1(data) {
1041
+ static commodityControllerUpdate(data) {
898
1042
  return request(OpenAPI, {
899
1043
  method: "PUT",
900
1044
  url: "/api/v1/{region}/bean/commodities/{symbol}",
901
1045
  path: {
1046
+ symbol: data.symbol,
902
1047
  region: data.region
1048
+ },
1049
+ body: data.requestBody,
1050
+ mediaType: "application/json",
1051
+ errors: {
1052
+ 400: "Invalid input data",
1053
+ 404: "Commodity not found"
903
1054
  }
904
1055
  });
905
1056
  }
906
1057
  /**
1058
+ * Delete commodity
1059
+ * Deletes a commodity definition
907
1060
  * @param data The data for the request.
908
- * @param data.region Region code (cn, us, de)
909
- * @returns void
1061
+ * @param data.symbol Commodity symbol
1062
+ * @param data.region Region code for tenant context
1063
+ * @returns void Commodity deleted successfully
910
1064
  * @throws ApiError
911
1065
  */
912
- static commodityController2(data) {
1066
+ static commodityControllerDelete(data) {
913
1067
  return request(OpenAPI, {
914
1068
  method: "DELETE",
915
1069
  url: "/api/v1/{region}/bean/commodities/{symbol}",
916
1070
  path: {
1071
+ symbol: data.symbol,
917
1072
  region: data.region
1073
+ },
1074
+ errors: {
1075
+ 404: "Commodity not found"
918
1076
  }
919
1077
  });
920
1078
  }
921
1079
  /**
1080
+ * Ensure commodity exists
1081
+ * Gets existing commodity or creates it with automatic initialization from OpenBB
922
1082
  * @param data The data for the request.
923
- * @param data.region Region code (cn, us, de)
924
- * @returns unknown
1083
+ * @param data.symbol Commodity symbol
1084
+ * @param data.region Region code for tenant context
1085
+ * @returns CommodityResponseDto Commodity retrieved or created
925
1086
  * @throws ApiError
926
1087
  */
927
- static commodityController3(data) {
1088
+ static commodityControllerGetOrCreate(data) {
928
1089
  return request(OpenAPI, {
929
1090
  method: "POST",
930
1091
  url: "/api/v1/{region}/bean/commodities/{symbol}/ensure",
931
1092
  path: {
1093
+ symbol: data.symbol,
932
1094
  region: data.region
933
1095
  }
934
1096
  });
935
1097
  }
936
1098
  /**
1099
+ * Bulk create commodities
1100
+ * Creates multiple commodities from a list of symbols, useful for initialization
937
1101
  * @param data The data for the request.
938
- * @param data.region Region code (cn, us, de)
939
- * @returns unknown
1102
+ * @param data.region Region code for tenant context
1103
+ * @returns CommodityResponseDto Commodities created successfully
940
1104
  * @throws ApiError
941
1105
  */
942
- static commodityController4(data) {
1106
+ static commodityControllerBulkCreate(data) {
943
1107
  return request(OpenAPI, {
944
1108
  method: "POST",
945
1109
  url: "/api/v1/{region}/bean/commodities/bulk",
@@ -975,7 +1139,7 @@ var ProviderSyncService = class {
975
1139
  *
976
1140
  * @param data The data for the request.
977
1141
  * @param data.providerName Provider name
978
- * @param data.region Region code
1142
+ * @param data.region Region code for tenant context
979
1143
  * @param data.requestBody
980
1144
  * @returns ProviderSyncResponseDto Sync completed successfully
981
1145
  * @throws ApiError
@@ -1001,7 +1165,7 @@ var ProviderSyncService = class {
1001
1165
  * Get supported providers
1002
1166
  * Returns a list of all providers supported by the sync endpoint.
1003
1167
  * @param data The data for the request.
1004
- * @param data.region Region code (cn, us, de)
1168
+ * @param data.region Region code for tenant context
1005
1169
  * @returns SupportedProvidersResponseDto List of supported providers
1006
1170
  * @throws ApiError
1007
1171
  */
@@ -1022,7 +1186,7 @@ var ProviderSyncService = class {
1022
1186
  * Returns whether a specific provider is supported.
1023
1187
  * @param data The data for the request.
1024
1188
  * @param data.providerName Provider name to check
1025
- * @param data.region Region code (cn, us, de)
1189
+ * @param data.region Region code for tenant context
1026
1190
  * @returns unknown Provider support status
1027
1191
  * @throws ApiError
1028
1192
  */
@@ -1043,18 +1207,13 @@ var ProviderSyncService = class {
1043
1207
  var HealthService = class {
1044
1208
  /**
1045
1209
  * Basic health check for K8s/load balancer probes
1046
- * @param data The data for the request.
1047
- * @param data.region Region code (cn, us, de)
1048
1210
  * @returns unknown Service is healthy
1049
1211
  * @throws ApiError
1050
1212
  */
1051
- static healthControllerGetHealth(data) {
1213
+ static healthControllerGetHealth() {
1052
1214
  return request(OpenAPI, {
1053
1215
  method: "GET",
1054
1216
  url: "/api/v1/health",
1055
- path: {
1056
- region: data.region
1057
- },
1058
1217
  errors: {
1059
1218
  503: "Service unavailable"
1060
1219
  }
@@ -1062,37 +1221,41 @@ var HealthService = class {
1062
1221
  }
1063
1222
  /**
1064
1223
  * Check database connection health
1065
- * @param data The data for the request.
1066
- * @param data.region Region code (cn, us, de)
1067
1224
  * @returns unknown Database is healthy
1068
1225
  * @throws ApiError
1069
1226
  */
1070
- static healthControllerCheckDatabase(data) {
1227
+ static healthControllerCheckDatabase() {
1071
1228
  return request(OpenAPI, {
1072
1229
  method: "GET",
1073
1230
  url: "/api/v1/health/database",
1074
- path: {
1075
- region: data.region
1076
- },
1077
1231
  errors: {
1078
1232
  503: "Database unavailable"
1079
1233
  }
1080
1234
  });
1081
1235
  }
1236
+ /**
1237
+ * Check OpenBB schema status
1238
+ * @returns unknown OpenBB status
1239
+ * @throws ApiError
1240
+ */
1241
+ static healthControllerCheckOpenBb() {
1242
+ return request(OpenAPI, {
1243
+ method: "GET",
1244
+ url: "/api/v1/health/openbb",
1245
+ errors: {
1246
+ 503: "OpenBB unavailable"
1247
+ }
1248
+ });
1249
+ }
1082
1250
  /**
1083
1251
  * Check Redis connection health
1084
- * @param data The data for the request.
1085
- * @param data.region Region code (cn, us, de)
1086
1252
  * @returns unknown Redis is healthy
1087
1253
  * @throws ApiError
1088
1254
  */
1089
- static healthControllerCheckRedis(data) {
1255
+ static healthControllerCheckRedis() {
1090
1256
  return request(OpenAPI, {
1091
1257
  method: "GET",
1092
1258
  url: "/api/v1/health/redis",
1093
- path: {
1094
- region: data.region
1095
- },
1096
1259
  errors: {
1097
1260
  503: "Redis unavailable"
1098
1261
  }
@@ -1100,18 +1263,13 @@ var HealthService = class {
1100
1263
  }
1101
1264
  /**
1102
1265
  * Get status of all circuit breakers
1103
- * @param data The data for the request.
1104
- * @param data.region Region code (cn, us, de)
1105
1266
  * @returns unknown Circuit breaker status
1106
1267
  * @throws ApiError
1107
1268
  */
1108
- static healthControllerGetCircuitBreakersHealth(data) {
1269
+ static healthControllerGetCircuitBreakersHealth() {
1109
1270
  return request(OpenAPI, {
1110
1271
  method: "GET",
1111
1272
  url: "/api/v1/health/circuit-breakers",
1112
- path: {
1113
- region: data.region
1114
- },
1115
1273
  errors: {
1116
1274
  401: "Unauthorized",
1117
1275
  500: "Internal error"
@@ -1122,7 +1280,6 @@ var HealthService = class {
1122
1280
  * Reset a circuit breaker to CLOSED state
1123
1281
  * @param data The data for the request.
1124
1282
  * @param data.name Circuit breaker name to reset
1125
- * @param data.region Region code (cn, us, de)
1126
1283
  * @returns unknown Circuit breaker reset successfully
1127
1284
  * @throws ApiError
1128
1285
  */
@@ -1131,8 +1288,7 @@ var HealthService = class {
1131
1288
  method: "POST",
1132
1289
  url: "/api/v1/health/circuit-breakers/{name}/reset",
1133
1290
  path: {
1134
- name: data.name,
1135
- region: data.region
1291
+ name: data.name
1136
1292
  },
1137
1293
  errors: {
1138
1294
  401: "Unauthorized",
@@ -1142,88 +1298,18 @@ var HealthService = class {
1142
1298
  }
1143
1299
  /**
1144
1300
  * Get health check metrics and statistics
1145
- * @param data The data for the request.
1146
- * @param data.region Region code (cn, us, de)
1147
1301
  * @returns unknown Health metrics
1148
1302
  * @throws ApiError
1149
1303
  */
1150
- static healthControllerGetMetrics(data) {
1304
+ static healthControllerGetMetrics() {
1151
1305
  return request(OpenAPI, {
1152
1306
  method: "GET",
1153
1307
  url: "/api/v1/health/metrics",
1154
- path: {
1155
- region: data.region
1156
- },
1157
1308
  errors: {
1158
1309
  401: "Unauthorized"
1159
1310
  }
1160
1311
  });
1161
1312
  }
1162
- /**
1163
- * Check health of a specific data enhancer
1164
- * @param data The data for the request.
1165
- * @param data.name Data enhancer name
1166
- * @param data.region Region code (cn, us, de)
1167
- * @returns unknown Data enhancer is healthy
1168
- * @throws ApiError
1169
- */
1170
- static healthControllerGetHealthOfDataEnhancer(data) {
1171
- return request(OpenAPI, {
1172
- method: "GET",
1173
- url: "/api/v1/health/data-enhancer/{name}",
1174
- path: {
1175
- name: data.name,
1176
- region: data.region
1177
- },
1178
- errors: {
1179
- 401: "Unauthorized",
1180
- 503: "Data enhancer unavailable"
1181
- }
1182
- });
1183
- }
1184
- /**
1185
- * Check health of all data providers
1186
- * @param data The data for the request.
1187
- * @param data.region Region code (cn, us, de)
1188
- * @returns unknown Data providers health status
1189
- * @throws ApiError
1190
- */
1191
- static healthControllerCheckDataProviders(data) {
1192
- return request(OpenAPI, {
1193
- method: "GET",
1194
- url: "/api/v1/health/data-providers",
1195
- path: {
1196
- region: data.region
1197
- },
1198
- errors: {
1199
- 401: "Unauthorized",
1200
- 503: "Data providers check failed"
1201
- }
1202
- });
1203
- }
1204
- /**
1205
- * Check health of a specific data provider
1206
- * @param data The data for the request.
1207
- * @param data.dataSource Data source identifier
1208
- * @param data.region Region code (cn, us, de)
1209
- * @returns unknown Data provider is healthy
1210
- * @throws ApiError
1211
- */
1212
- static healthControllerGetHealthOfDataProvider(data) {
1213
- return request(OpenAPI, {
1214
- method: "GET",
1215
- url: "/api/v1/health/data-provider/{dataSource}",
1216
- path: {
1217
- dataSource: data.dataSource,
1218
- region: data.region
1219
- },
1220
- errors: {
1221
- 400: "Invalid data source",
1222
- 401: "Unauthorized",
1223
- 503: "Data provider unavailable"
1224
- }
1225
- });
1226
- }
1227
1313
  };
1228
1314
  // Annotate the CommonJS export names for ESM import in node:
1229
1315
  0 && (module.exports = {