@experian-ecs/connected-api-sdk 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -12,19 +12,21 @@
12
12
  * OTHER LIABILITY ARISING FROM OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS CODE.
13
13
  */
14
14
 
15
+ type ConnectedSolutionsAPIErrorType = 'CLIENT_SIDE_ERROR' | 'AUTHENTICATION_ERROR' | 'RATE_LIMIT_ERROR' | 'SERVER_SIDE_ERROR';
15
16
  type ConnectedSolutionsAPIErrorData = {
17
+ type: ConnectedSolutionsAPIErrorType;
16
18
  dev_url: string;
17
19
  code: string;
18
20
  message: string;
19
21
  };
20
- type ConnectedSolutionsSDKErrorTypes = 'api_error' | 'auth_error' | 'sdk_error' | 'unknown_error';
22
+ type ConnectedSolutionsSDKErrorTypes = 'client_side_error' | 'authentication_error' | 'rate_limit_error' | 'sdk_error' | 'server_side_error';
21
23
  type ConnectedSolutionsClientRawError = {
22
24
  message: string;
23
25
  type: ConnectedSolutionsSDKErrorTypes;
24
26
  status?: number;
25
27
  data?: ConnectedSolutionsAPIErrorData;
26
28
  };
27
- declare function generateError(rawError: ConnectedSolutionsClientRawError): ConnectedSolutionsClientApiError | ConnectedSolutionsClientAuthError | ConnectedSolutionsClientSDKError | ConnectedSolutionsClientUnknownError;
29
+ declare function generateError(rawError: ConnectedSolutionsClientRawError): ConnectedSolutionsClientSideError | ConnectedSolutionsClientAuthenticationError | ConnectedSolutionsClientServerSideError | ConnectedSolutionsClientRateLimitError | ConnectedSolutionsClientSDKError;
28
30
  declare class ConnectedSolutionsClientError extends Error {
29
31
  readonly message: string;
30
32
  readonly data?: ConnectedSolutionsAPIErrorData;
@@ -32,18 +34,23 @@ declare class ConnectedSolutionsClientError extends Error {
32
34
  constructor(raw: ConnectedSolutionsClientRawError);
33
35
  static generateError: typeof generateError;
34
36
  }
35
- declare class ConnectedSolutionsClientApiError extends ConnectedSolutionsClientError {
37
+ declare class ConnectedSolutionsClientSideError extends ConnectedSolutionsClientError {
36
38
  constructor(args: ConnectedSolutionsClientRawError);
37
39
  }
38
- declare class ConnectedSolutionsClientAuthError extends ConnectedSolutionsClientError {
40
+ declare class ConnectedSolutionsClientAuthenticationError extends ConnectedSolutionsClientError {
39
41
  constructor(args: ConnectedSolutionsClientRawError);
40
42
  }
41
- declare class ConnectedSolutionsClientUnknownError extends ConnectedSolutionsClientError {
43
+ declare class ConnectedSolutionsClientServerSideError extends ConnectedSolutionsClientError {
42
44
  constructor(args: ConnectedSolutionsClientRawError);
43
45
  }
44
46
  declare class ConnectedSolutionsClientSDKError extends ConnectedSolutionsClientError {
45
47
  constructor(args: ConnectedSolutionsClientRawError);
46
48
  }
49
+ declare class ConnectedSolutionsClientRateLimitError extends ConnectedSolutionsClientError {
50
+ constructor(args: ConnectedSolutionsClientRawError);
51
+ }
52
+ declare function mapApiErrorTypeToSDKErrorType(apiErrorType?: ConnectedSolutionsAPIErrorType): ConnectedSolutionsSDKErrorTypes;
53
+ declare function mapHttpStatusToSDKErrorType(status?: number): ConnectedSolutionsSDKErrorTypes;
47
54
 
48
55
  type Entitlements = {
49
56
  items: Entitlement[];
@@ -171,6 +178,9 @@ declare class EntitlementsService extends ApiClient {
171
178
  }, fetchOptions?: RequestInit): Promise<ApiClientResponse<ProductEligibility>>;
172
179
  }
173
180
 
181
+ type ApiVersion = 'v1' | 'v2';
182
+ type Bureau = 'EXPERIAN' | 'EQUIFAX' | 'TRANSUNION';
183
+
174
184
  interface CreditScore {
175
185
  score_id: string;
176
186
  bureau: Bureau;
@@ -185,7 +195,15 @@ interface CreditScore {
185
195
  score_factors?: ScoreFactor[];
186
196
  score_ingredients?: ScoreIngredient[];
187
197
  }
188
- type Bureau = 'EXPERIAN' | 'EQUIFAX' | 'TRANSUNION';
198
+ interface CreditScores_V2 {
199
+ items: CreditScore_V2[];
200
+ }
201
+ interface CreditScore_V2 {
202
+ id: string;
203
+ bureau_scores: BureauScore[];
204
+ }
205
+ interface BureauScore extends Omit<CreditScore, 'score_id' | 'frequency' | 'next_score_date'> {
206
+ }
189
207
  type ScoreModelVersion = 'FICO8' | 'VANTAGE30' | 'FICO9' | 'FICO3' | 'FICOMORTGAGE2' | 'FICOBANKCARD2' | 'FICOBANKCARD8' | 'FICOBANKCARD9' | 'FICOAUTO2' | 'FICOAUTO8' | 'FICOAUTO9' | 'VANTAGE20';
190
208
  interface ScoreModel {
191
209
  min: number;
@@ -249,6 +267,13 @@ type ScoreIngredientAttributeSubValueType = 'months' | 'years' | 'days' | 'amoun
249
267
  interface CreditScorePostRequest {
250
268
  product_config_id: string;
251
269
  }
270
+ type BaseCreditScoreRequestOptions<Version extends ApiVersion> = {
271
+ include_factors?: boolean;
272
+ include_ingredients?: boolean;
273
+ version?: Version;
274
+ };
275
+ type GetCreditScoreResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditScores_V2 : CreditScore[];
276
+ type PostCreditScoreResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditScore_V2 : CreditScore;
252
277
 
253
278
  type CreditScoreSimulator = FicoScoreSimulator | VantageScoreSimulator;
254
279
  type Scenario = FicoScenario | VantageScenario;
@@ -442,6 +467,15 @@ interface CreditAttributeCategory {
442
467
  oldest_open_accounts?: AttributeOldestOpenAccount[];
443
468
  recent_hard_inquiries?: AttributeHardInquiry[];
444
469
  }
470
+ interface CreditAttributes_V2 {
471
+ items: CreditAttribute_V2[];
472
+ }
473
+ interface CreditAttribute_V2 {
474
+ id: string;
475
+ bureau_attributes: BureauAttribute[];
476
+ }
477
+ interface BureauAttribute extends CreditAttributes {
478
+ }
445
479
  type AttributeCategoryName = 'PAYMENT_HISTORY' | 'CREDIT_UTILIZATION' | 'PUBLIC_RECORDS' | 'CREDIT_AGE' | 'CREDIT_MIX' | 'HARD_INQUIRIES';
446
480
  interface AttributeCategoryRating {
447
481
  value: AttributeCategoryRatingName;
@@ -486,11 +520,17 @@ interface CreditAttribute {
486
520
  value: string;
487
521
  exception?: string;
488
522
  }
523
+ type BaseCreditAttributeRequestOptions<Version extends ApiVersion> = {
524
+ version?: Version;
525
+ };
526
+ type GetCreditAttributeResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditAttributes_V2 : CreditAttributes[];
489
527
 
490
528
  declare class CreditAttributesService extends ApiClient {
491
529
  #private;
492
530
  constructor(config: ConnectedSolutionsSDKConfig);
493
- getCreditAttributes(fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditAttributes[]>>;
531
+ getCreditAttributes<Version extends ApiVersion = 'v1'>(options?: BaseCreditAttributeRequestOptions<Version> & {
532
+ product_config_id?: string;
533
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<GetCreditAttributeResponse<Version>>>;
494
534
  }
495
535
 
496
536
  type BearerToken = {
@@ -566,6 +606,14 @@ type NewInquiryDetails = {
566
606
  trigger: string;
567
607
  trigger_description: string;
568
608
  };
609
+ type EquifaxNewInquiryDetails = {
610
+ company: Omit<Company, 'business_type'>;
611
+ inquiry_date: string;
612
+ };
613
+ type TransUnionNewInquiryDetails = {
614
+ company: Omit<Company, 'business_type'>;
615
+ inquiry_date: string;
616
+ };
569
617
  type NewAccountDetails = {
570
618
  company: Company;
571
619
  balance_amount: string;
@@ -574,10 +622,33 @@ type NewAccountDetails = {
574
622
  trigger: string;
575
623
  trigger_description: string;
576
624
  };
625
+ type EquifaxNewAccountDetails = {
626
+ company: Omit<Company, 'phone' | 'business_type'>;
627
+ balance_amount: string;
628
+ account_type: string;
629
+ open_date: string;
630
+ status_date: string;
631
+ balance_date: string;
632
+ };
633
+ type TransUnionNewAccountDetails = {
634
+ company: Omit<Company, 'phone'>;
635
+ balance_amount: string;
636
+ payment_status: string;
637
+ };
577
638
  type NewAddressDetails = {
578
639
  current_address: Address;
579
640
  previous_address: Address;
580
641
  };
642
+ type EquifaxNewAddressDetails = {
643
+ current_address: Address;
644
+ previous_address: Address;
645
+ move_date: string;
646
+ };
647
+ type TransUnionNewAddressDetails = {
648
+ current_address: Address;
649
+ previous_address: Address;
650
+ move_date: string;
651
+ };
581
652
  type SpecialCommentsDetails = {
582
653
  company: Company;
583
654
  balance_amount: string;
@@ -651,6 +722,11 @@ type AccountInBankruptcyDetails = {
651
722
  open_date: string;
652
723
  status_date: string;
653
724
  };
725
+ type TransUnionAccountInBankruptcyDetails = {
726
+ company: Company;
727
+ is_collection: string;
728
+ payment_status: string;
729
+ };
654
730
  type PublicRecordBankruptcyDetails = {
655
731
  company: Company;
656
732
  balance_amount: string;
@@ -658,6 +734,13 @@ type PublicRecordBankruptcyDetails = {
658
734
  payment_status: string;
659
735
  file_date: string;
660
736
  };
737
+ type TransUnionPublicRecordBankruptcyDetails = {
738
+ amount: string;
739
+ court_name: string;
740
+ description: string;
741
+ file_date: string;
742
+ address: Address;
743
+ };
661
744
  type CollectionDetails = {
662
745
  company: Company;
663
746
  balance_amount: string;
@@ -749,6 +832,11 @@ type AccountImprovedDetails = {
749
832
  current_status: string;
750
833
  previous_status: string;
751
834
  };
835
+ type TransUnionAccountImprovedDetails = {
836
+ company: Omit<Company, 'phone'>;
837
+ balance_amount: string;
838
+ payment_status: string;
839
+ };
752
840
  type AccountPaidDetails = {
753
841
  company: Company;
754
842
  balance_amount: string;
@@ -756,6 +844,40 @@ type AccountPaidDetails = {
756
844
  current_status: string;
757
845
  previous_status: string;
758
846
  };
847
+ type EquifaxCollectionChangeDetails = {
848
+ company: Omit<Company, 'business_type'>;
849
+ balance_amount: string;
850
+ is_collection: string;
851
+ payment_status: string;
852
+ open_date: string;
853
+ status_date: string;
854
+ };
855
+ type EquifaxNewCollectionDetails = {
856
+ company: Omit<Company, 'phone' | 'business_type'>;
857
+ balance_amount: string;
858
+ is_collection: string;
859
+ payment_status: string;
860
+ open_date: string;
861
+ status_date: string;
862
+ };
863
+ type EquifaxNewBankruptcyDetails = {
864
+ amount: string;
865
+ court_name: string;
866
+ description: string;
867
+ file_date: string;
868
+ };
869
+ type TransUnionNewPublicRecordDetails = {
870
+ amount: string;
871
+ court_name: string;
872
+ description: string;
873
+ file_date: string;
874
+ address: Address;
875
+ };
876
+ type TransUnionDelinquentDetails = {
877
+ company: Company;
878
+ is_collection: string;
879
+ payment_status: string;
880
+ };
759
881
  type CreditScoreTriggerReasons = {
760
882
  score_rating_changed: string;
761
883
  score_goal_achieved: string;
@@ -860,7 +982,7 @@ type CreditScoreBelowGoalDetails = {
860
982
  previous_score_rating: string;
861
983
  goal_value: string;
862
984
  };
863
- type AlertDetails = DormantAccountDetails | NewInquiryDetails | NewAccountDetails | NewAddressDetails | SpecialCommentsDetails | SkipCannotLocateDetails | LostOrStolenCardDetails | CardOverLimitDetails | PastDueDetails | DerogatoryDetails | SettlementDetails | ClosedAccountDetails | AccountInBankruptcyDetails | PublicRecordBankruptcyDetails | CollectionDetails | DeceasedDetails | CreditBalanceIncreaseDetails | CreditBalanceDecreaseDetails | CreditLimitIncreaseDetails | CreditLimitDecreaseDetails | CreditUsageIncreaseDetails | CreditUsageDecreaseDetails | AccountClosedDetails | AccountCurrentDetails | AccountImprovedDetails | AccountPaidDetails | CreditScoreIncreaseDetails | CreditScoreDecreaseDetails | CreditScoreRatingIncreaseDetails | CreditScoreRatingDecreaseDetails | CreditScoreGoalAchievedDetails | CreditScoreBelowGoalDetails;
985
+ type AlertDetails = DormantAccountDetails | NewInquiryDetails | EquifaxNewInquiryDetails | TransUnionNewInquiryDetails | NewAccountDetails | EquifaxNewAccountDetails | TransUnionNewAccountDetails | NewAddressDetails | EquifaxNewAddressDetails | TransUnionNewAddressDetails | SpecialCommentsDetails | SkipCannotLocateDetails | LostOrStolenCardDetails | CardOverLimitDetails | PastDueDetails | DerogatoryDetails | SettlementDetails | ClosedAccountDetails | AccountInBankruptcyDetails | TransUnionAccountInBankruptcyDetails | PublicRecordBankruptcyDetails | TransUnionPublicRecordBankruptcyDetails | CollectionDetails | DeceasedDetails | CreditBalanceIncreaseDetails | CreditBalanceDecreaseDetails | CreditLimitIncreaseDetails | CreditLimitDecreaseDetails | CreditUsageIncreaseDetails | CreditUsageDecreaseDetails | AccountClosedDetails | AccountCurrentDetails | AccountImprovedDetails | TransUnionAccountImprovedDetails | AccountPaidDetails | CreditScoreIncreaseDetails | CreditScoreDecreaseDetails | CreditScoreRatingIncreaseDetails | CreditScoreRatingDecreaseDetails | CreditScoreGoalAchievedDetails | CreditScoreBelowGoalDetails | EquifaxCollectionChangeDetails | EquifaxNewCollectionDetails | EquifaxNewBankruptcyDetails | TransUnionNewPublicRecordDetails | TransUnionDelinquentDetails;
864
986
  type AlertData<AlertDetailsType = AlertDetails> = {
865
987
  alert_date: string;
866
988
  alert_severity?: string;
@@ -917,7 +1039,7 @@ declare class AlertsService extends ApiClient {
917
1039
  getAlertCounts(fetchOptions?: RequestInit): Promise<ApiClientResponse<TotalAlertCounts>>;
918
1040
  }
919
1041
 
920
- type CreditReportType = 'EXPERIAN' | 'EXPERIAN_FICO2' | 'EXPERIAN_FICOMORTGAGE2' | 'EXPERIAN_FICO8' | 'EXPERIAN_FICO9' | 'EXPERIAN_VANTAGE30' | 'TRIBUREAU' | 'TRIBUREAU_EXPERIAN_FICO2' | 'TRIBUREAU_FICOMORTGAGE2' | 'TRIBUREAU_FICO8' | 'TRIBUREAU_VANTAGE30';
1042
+ type CreditReportType = 'EXPERIAN' | 'EXPERIAN_FICO2' | 'EXPERIAN_FICOMORTGAGE2' | 'EXPERIAN_FICO8' | 'EX_TU_EQ_FICO8' | 'EXPERIAN_FICO9' | 'EXPERIAN_VANTAGE30' | 'TRIBUREAU' | 'TRIBUREAU_EXPERIAN_FICO2' | 'TRIBUREAU_FICOMORTGAGE2' | 'TRIBUREAU_FICO8' | 'TRIBUREAU_VANTAGE30';
921
1043
  type CreditReportScoreDetail = {
922
1044
  bureau: Bureau;
923
1045
  score_model: ScoreModelVersion;
@@ -945,6 +1067,9 @@ type PersonalAddress = {
945
1067
  city: string;
946
1068
  state: string;
947
1069
  zip_code: string;
1070
+ residence_type: string;
1071
+ reported_at: string;
1072
+ updated_at: string;
948
1073
  };
949
1074
  type Name = {
950
1075
  first_name: string;
@@ -956,11 +1081,16 @@ type Statement = {
956
1081
  statement: string;
957
1082
  };
958
1083
  type PaymentHistoryCode = '' | 'No Data' | 'OK' | '30' | '60' | '90' | '120' | '150' | '180' | 'ND' | 'CLS' | 'CRD' | 'FS' | 'IC' | 'C' | 'F' | 'VS' | 'CO' | 'R' | 'PBC' | 'G' | 'D' | 'BK';
1084
+ type PaymentHistoryCode_V2 = PaymentHistoryCode | 'Current / Terms met' | 'No data for this period';
959
1085
  type Month = 'jan' | 'feb' | 'mar' | 'apr' | 'may' | 'jun' | 'jul' | 'aug' | 'sep' | 'oct' | 'nov' | 'dec';
960
1086
  type PaymentSummary = {
961
1087
  year: number;
962
1088
  summary_per_month: Record<Month, PaymentHistoryCode>;
963
1089
  };
1090
+ type PaymentSummary_V2 = {
1091
+ year: number;
1092
+ summary_per_month: Record<Month, PaymentHistoryCode_V2>;
1093
+ };
964
1094
  type CreditorAddress = {
965
1095
  name: string;
966
1096
  address: string;
@@ -1005,6 +1135,21 @@ type Account = {
1005
1135
  last_payment_at: string | null;
1006
1136
  creditor_comments: string[];
1007
1137
  balloon_payment: string;
1138
+ account_status: string;
1139
+ industry_and_account_type: string;
1140
+ is_trade: boolean;
1141
+ historical_derogatory: string;
1142
+ additional_comments: string[];
1143
+ business_type: string;
1144
+ classification: string;
1145
+ delinquent_30_days_count: number;
1146
+ delinquent_60_days_count: number;
1147
+ delinquent_90_days_count: number;
1148
+ payment_status_class: string;
1149
+ custom_attributes: CustomAttributes;
1150
+ };
1151
+ type Account_V2 = Omit<Account, 'payment_summaries'> & {
1152
+ payment_summaries: PaymentSummary_V2[];
1008
1153
  };
1009
1154
  type CreditInquiry = {
1010
1155
  creditor_name: string;
@@ -1031,12 +1176,24 @@ type CollectionAccount = {
1031
1176
  your_statements: string[];
1032
1177
  contact_info: ContactInfo;
1033
1178
  };
1179
+ type CollectionAccount_V2 = Omit<CollectionAccount, 'payment_summaries'> & {
1180
+ payment_summaries: PaymentSummary_V2[];
1181
+ };
1034
1182
  type PublicRecord = {
1035
1183
  filed_at: string;
1036
1184
  type: string;
1037
1185
  court: string;
1038
1186
  reference_number: string;
1039
1187
  amount: string;
1188
+ record_type: string;
1189
+ liability: string;
1190
+ filed_by: string;
1191
+ asset: string;
1192
+ responsibility: string;
1193
+ status_at: string;
1194
+ comments: string[];
1195
+ segment_id: string;
1196
+ sequence_id: string;
1040
1197
  };
1041
1198
  type ReportDisplay = {
1042
1199
  bureau: Bureau;
@@ -1047,6 +1204,7 @@ type ReportDisplay = {
1047
1204
  address_updated_at: string;
1048
1205
  previous_addresses: PersonalAddress[];
1049
1206
  employer_names: string[];
1207
+ employers: Employers[];
1050
1208
  statements: Statement[];
1051
1209
  };
1052
1210
  accounts_info: {
@@ -1055,6 +1213,7 @@ type ReportDisplay = {
1055
1213
  credit_limit: number | null;
1056
1214
  accounts: Account[];
1057
1215
  };
1216
+ custom_features: CustomFeatures;
1058
1217
  score_details: ReportDisplayScoreDetails[];
1059
1218
  credit_inquiries: CreditInquiry[];
1060
1219
  collection_accounts: CollectionAccount[];
@@ -1068,39 +1227,135 @@ type CreditReport = {
1068
1227
  report_display: ReportDisplay[];
1069
1228
  type: CreditReportType;
1070
1229
  };
1230
+ type CreditReports_V2 = {
1231
+ items: CreditReport_V2[];
1232
+ };
1233
+ type CreditReport_V2 = {
1234
+ id: string;
1235
+ next_cursor?: string;
1236
+ disposition: CreditReportDisposition_V2;
1237
+ type: CreditReportType;
1238
+ bureau_reports: BureauReport[];
1239
+ };
1240
+ type ReadStatus = 'READ' | 'UNREAD';
1241
+ type CreditReportDisposition_V2 = {
1242
+ read_status: ReadStatus;
1243
+ };
1244
+ type BureauReport = Omit<ReportDisplay, 'personal_info' | 'accounts_info' | 'collection_accounts'> & {
1245
+ created_at: string;
1246
+ personal_info: {
1247
+ names: Name[];
1248
+ year_of_birth: number;
1249
+ current_address: PersonalAddress_V2;
1250
+ address_updated_at: string;
1251
+ previous_addresses: PersonalAddress_V2[];
1252
+ employer_names: string[];
1253
+ employers: Employers[];
1254
+ statements: Statement_V2[];
1255
+ };
1256
+ accounts_info: {
1257
+ credit_usage: number | null;
1258
+ credit_available: number | null;
1259
+ credit_limit: number | null;
1260
+ accounts: Account_V2[];
1261
+ };
1262
+ collection_accounts: CollectionAccount_V2[];
1263
+ };
1264
+ type PersonalAddress_V2 = PersonalAddress & {
1265
+ pre_directional: string;
1266
+ post_directional: string;
1267
+ };
1268
+ type Employers = {
1269
+ name: string;
1270
+ reported_at: string;
1271
+ updated_at: string;
1272
+ };
1273
+ type Statement_V2 = Statement & {
1274
+ expires_at: string;
1275
+ bureau: Bureau;
1276
+ };
1277
+ type CustomAttributes = {
1278
+ is_late: boolean;
1279
+ is_bnpl: boolean;
1280
+ is_delq_or_derog: boolean;
1281
+ };
1282
+ type CustomFeatures = {
1283
+ has_bnpl_trades: boolean;
1284
+ };
1285
+ type CreditReportsMeta_V2 = {
1286
+ items: CreditReportMeta_V2[];
1287
+ };
1288
+ type CreditReportMeta_V2 = Omit<CreditReport_V2, 'bureau_reports'> & {
1289
+ bureau_reports: BureauReportMeta[];
1290
+ };
1291
+ type BureauReportMeta = {
1292
+ bureau: Bureau;
1293
+ created_at: string;
1294
+ score_details: ReportDisplayScoreDetails[];
1295
+ };
1296
+ type BaseCreditReportRequestOptions<Version extends ApiVersion> = {
1297
+ version?: Version;
1298
+ };
1299
+ type WithId = {
1300
+ id: string;
1301
+ };
1302
+ type GetCreditReportRequestOptions_V1<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & {
1303
+ product_config_id?: string;
1304
+ report_date?: string;
1305
+ report_between?: string;
1306
+ include_fields?: string;
1307
+ };
1308
+ type GetCreditReportRequestOptions_V2<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & {
1309
+ report_date?: string;
1310
+ product_config_id?: string;
1311
+ };
1312
+ type GetCreditReportRequestOptions<Version extends ApiVersion> = Version extends 'v2' ? GetCreditReportRequestOptions_V2<Version> : GetCreditReportRequestOptions_V1<Version>;
1313
+ type GetCreditReportByIdRequestOptions_V1<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & WithId & {
1314
+ include_fields?: string;
1315
+ };
1316
+ type GetCreditReportByIdRequestOptions_V2<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & WithId;
1317
+ type GetCreditReportByIdRequestOptions<Version extends ApiVersion> = Version extends 'v2' ? GetCreditReportByIdRequestOptions_V2<Version> : GetCreditReportByIdRequestOptions_V1<Version>;
1318
+ type GetCreditReportMetaRequestOptions<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & {
1319
+ product_config_id?: string;
1320
+ report_date?: string;
1321
+ report_between?: string;
1322
+ latest_only?: boolean;
1323
+ report_read?: boolean;
1324
+ };
1325
+ type GetCreditReportMetaByIdRequestOptions<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & WithId & {};
1326
+ type PostCreditReportRequestOptions_V1<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & {
1327
+ product_config_id: string;
1328
+ include_fields?: string;
1329
+ };
1330
+ type PostCreditReportRequestOptions_V2<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & {
1331
+ product_config_id: string;
1332
+ };
1333
+ type PostCreditReportRequestOptions<Version extends ApiVersion> = Version extends 'v2' ? PostCreditReportRequestOptions_V2<Version> : PostCreditReportRequestOptions_V1<Version>;
1334
+ type MarkCreditReportReadRequestOptions_V1<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & {
1335
+ id: string;
1336
+ };
1337
+ type MarkCreditReportReadRequestOptions_V2<Version extends ApiVersion> = BaseCreditReportRequestOptions<Version> & {
1338
+ id: string;
1339
+ disposition: {
1340
+ read_status: Omit<ReadStatus, 'UNREAD'>;
1341
+ };
1342
+ };
1343
+ type MarkCreditReportAsRead<Version extends ApiVersion> = Version extends 'v2' ? MarkCreditReportReadRequestOptions_V2<Version> : MarkCreditReportReadRequestOptions_V1<Version>;
1344
+ type GetCreditReportResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditReports_V2 : CreditReport[];
1345
+ type GetCreditReportByIdResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditReport_V2 : CreditReport;
1346
+ type PostCreditReportResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditReport_V2 : CreditReport;
1347
+ type GetCreditReportMetaResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditReportsMeta_V2 : CreditReportMeta[];
1348
+ type GetCreditReportMetaByIdResponse<Version extends ApiVersion> = Version extends 'v2' ? CreditReportMeta_V2 : CreditReportMeta;
1071
1349
 
1072
1350
  declare class CreditReportsService extends ApiClient {
1073
1351
  #private;
1074
1352
  constructor(config: ConnectedSolutionsSDKConfig);
1075
- getReports(requestOptions?: {
1076
- product_config_id?: string;
1077
- include_fields?: string;
1078
- report_date?: string;
1079
- report_between?: string;
1080
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReport[]>>;
1081
- getReportById(requestOptions: {
1082
- id: string;
1083
- include_fields?: string;
1084
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReport>>;
1085
- getReportsMeta(requestOptions?: {
1086
- product_config_id?: string;
1087
- report_date?: string;
1088
- report_between?: string;
1089
- latest_only?: boolean;
1090
- report_read?: boolean;
1091
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReportMeta[]>>;
1092
- getReportMetaById(requestOptions: {
1093
- id: string;
1094
- product_config_id?: string;
1095
- include_fields?: string;
1096
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReportMeta>>;
1097
- markReportAsRead(requestOptions: {
1098
- id: string;
1099
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse>;
1100
- orderReport(requestOptions: {
1101
- product_config_id: string;
1102
- include_fields?: string;
1103
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditReport>>;
1353
+ getReports<Version extends ApiVersion = 'v1'>(requestOptions?: GetCreditReportRequestOptions<Version>, fetchOptions?: RequestInit): Promise<ApiClientResponse<GetCreditReportResponse<Version>>>;
1354
+ getReportById<Version extends ApiVersion = 'v1'>(requestOptions: GetCreditReportByIdRequestOptions<Version>, fetchOptions?: RequestInit): Promise<ApiClientResponse<GetCreditReportMetaByIdResponse<Version>>>;
1355
+ getReportsMeta<Version extends ApiVersion>(requestOptions?: GetCreditReportMetaRequestOptions<Version>, fetchOptions?: RequestInit): Promise<ApiClientResponse<GetCreditReportMetaResponse<Version>>>;
1356
+ getReportMetaById<Version extends ApiVersion = 'v1'>(requestOptions: GetCreditReportMetaByIdRequestOptions<Version>, fetchOptions?: RequestInit): Promise<ApiClientResponse<GetCreditReportMetaByIdResponse<Version>>>;
1357
+ markReportAsRead<Version extends ApiVersion = 'v1'>(requestOptions: MarkCreditReportAsRead<Version>, fetchOptions?: RequestInit): Promise<ApiClientResponse>;
1358
+ orderReport<Version extends ApiVersion = 'v1'>(requestOptions: PostCreditReportRequestOptions<Version>, fetchOptions?: RequestInit): Promise<ApiClientResponse<PostCreditReportResponse<Version>>>;
1104
1359
  }
1105
1360
 
1106
1361
  type Customer = {
@@ -1315,6 +1570,350 @@ declare class ProductConfigsService extends ApiClient {
1315
1570
  }, fetchOptions?: RequestInit): Promise<ApiClientResponse<ProductConfig>>;
1316
1571
  }
1317
1572
 
1573
+ type IHSSurveyStatus = 'COMPLETED' | 'GENERATING' | 'AVAILABLE' | 'FAILED';
1574
+ type IHSPlanStatus = 'PENDING_SURVEY' | 'GENERATING' | 'AVAILABLE' | 'FAILED';
1575
+ type IHSPlanActionStatus = 'OPEN' | 'COMPLETED';
1576
+ type IHSGetPlanRequestActionStatus = 'OPEN' | 'COMPLETED' | 'ALL';
1577
+ type IHSSurveyPriority = 'HIGH' | 'MEDIUM' | 'LOW';
1578
+ type IHSPlanPriority = 'HIGH' | 'MEDIUM' | 'LOW';
1579
+ type IHSFactorCategory = 'DARK_WEB' | 'ONLINE';
1580
+ type IHSSurveyAnswer = 'YES' | 'NO';
1581
+ type IHSUpsellProduct = 'password-manager' | 'vpn' | 'safe-browser' | 'monitoring';
1582
+ interface IHSScoreFactor {
1583
+ factor: string;
1584
+ category: IHSFactorCategory;
1585
+ description: string;
1586
+ }
1587
+ interface IHSUpsellObject {
1588
+ product: IHSUpsellProduct;
1589
+ message: string;
1590
+ }
1591
+ interface IHSDisplayParameters {
1592
+ bank_account?: string;
1593
+ bank_number?: string;
1594
+ card_type?: string;
1595
+ card_number?: string;
1596
+ driver_license_number?: string;
1597
+ email?: string;
1598
+ iban?: string;
1599
+ medical_id?: string;
1600
+ national_id?: string;
1601
+ passport_number?: string;
1602
+ password?: string;
1603
+ phone_number?: string;
1604
+ retail_card_number?: string;
1605
+ ssn?: string;
1606
+ password_status?: string;
1607
+ is_exposed_bank_password?: boolean;
1608
+ is_exposed_bank_userId?: boolean;
1609
+ is_exposed_card_cvn?: boolean;
1610
+ is_exposed_card_pin?: boolean;
1611
+ is_exposed_password?: boolean;
1612
+ added_at?: string;
1613
+ }
1614
+ interface IHSSurveyQuestionItem {
1615
+ text: string;
1616
+ recommendation: string;
1617
+ title: string;
1618
+ yes_answer: string;
1619
+ no_answer: string;
1620
+ default_answer?: IHSSurveyAnswer;
1621
+ submitted_answer?: IHSSurveyAnswer;
1622
+ reason: string;
1623
+ risk: string;
1624
+ upsell?: IHSUpsellObject;
1625
+ }
1626
+ interface IHSSurveyQuestion {
1627
+ id: string;
1628
+ priority: IHSSurveyPriority;
1629
+ score_factors: IHSScoreFactor[];
1630
+ display_parameters?: IHSDisplayParameters;
1631
+ question_item: IHSSurveyQuestionItem;
1632
+ }
1633
+ interface IHSSurvey {
1634
+ status: IHSSurveyStatus;
1635
+ created_at: string;
1636
+ survey_id: string;
1637
+ questions?: IHSSurveyQuestion[];
1638
+ }
1639
+ interface IHSSurveyAnswerRequest {
1640
+ id: string;
1641
+ response: IHSSurveyAnswer;
1642
+ }
1643
+ interface IHSSubmitSurveyRequest {
1644
+ answers: IHSSurveyAnswerRequest[];
1645
+ }
1646
+ interface IHSSubmitSurveyResponse {
1647
+ survey_id: string;
1648
+ score_id: string;
1649
+ created_at: string;
1650
+ }
1651
+ interface IdentityHealthScore {
1652
+ id: string;
1653
+ value: number;
1654
+ created_at: string;
1655
+ updated_at: string;
1656
+ }
1657
+ interface IHSScoreDetails {
1658
+ score_details: IdentityHealthScore[];
1659
+ }
1660
+ interface IHSActionAnswerOption {
1661
+ text: string;
1662
+ score_impact?: number;
1663
+ }
1664
+ interface IHSPlanActionItem {
1665
+ text: string;
1666
+ recommendation: string;
1667
+ title: string;
1668
+ yes_answer: IHSActionAnswerOption;
1669
+ no_answer: IHSActionAnswerOption;
1670
+ default_answer?: IHSSurveyAnswer;
1671
+ submitted_answer?: IHSSurveyAnswer;
1672
+ reason: string;
1673
+ risk: string;
1674
+ upsell?: IHSUpsellObject;
1675
+ }
1676
+ interface IHSPlanAction {
1677
+ id: string;
1678
+ priority: IHSPlanPriority;
1679
+ added_at: string;
1680
+ status?: IHSPlanActionStatus;
1681
+ score_factors: IHSScoreFactor[];
1682
+ display_parameters?: IHSDisplayParameters;
1683
+ action_item: IHSPlanActionItem;
1684
+ }
1685
+ interface IHSPlan {
1686
+ status: IHSPlanStatus;
1687
+ updated_at: string;
1688
+ plan_id: string;
1689
+ total_action_count: number;
1690
+ next_cursor?: string;
1691
+ actions?: IHSPlanAction[];
1692
+ }
1693
+ interface IHSCreatePlanResponse {
1694
+ plan_id: string;
1695
+ message: string;
1696
+ location: string;
1697
+ created_at: string;
1698
+ updated_at: string;
1699
+ }
1700
+ interface IHSUpdateActionRequest {
1701
+ action_response: IHSSurveyAnswer;
1702
+ }
1703
+ interface IHSUpdateActionResponse {
1704
+ plan_id: string;
1705
+ score_id: string;
1706
+ updated_at: string;
1707
+ }
1708
+ interface IHSGetPlanRequest {
1709
+ cursor?: string;
1710
+ action_status: IHSGetPlanRequestActionStatus;
1711
+ count?: number;
1712
+ }
1713
+
1714
+ declare class IdentityHealthScoreService extends ApiClient {
1715
+ #private;
1716
+ constructor(config: ConnectedSolutionsSDKConfig);
1717
+ getSurvey(fetchOptions?: RequestInit): Promise<ApiClientResponse<IHSSurvey>>;
1718
+ submitSurvey(requestOptions: IHSSubmitSurveyRequest, fetchOptions?: RequestInit): Promise<ApiClientResponse<IHSSubmitSurveyResponse>>;
1719
+ getScore(fetchOptions?: RequestInit): Promise<ApiClientResponse<IHSScoreDetails>>;
1720
+ getPlan(requestOptions: IHSGetPlanRequest, fetchOptions?: RequestInit): Promise<ApiClientResponse<IHSPlan>>;
1721
+ createPlan(fetchOptions?: RequestInit): Promise<ApiClientResponse<IHSCreatePlanResponse>>;
1722
+ updateAction(requestOptions: {
1723
+ action_id: string;
1724
+ } & IHSUpdateActionRequest, fetchOptions?: RequestInit): Promise<ApiClientResponse<IHSUpdateActionResponse>>;
1725
+ }
1726
+
1727
+ type DIMScanStatus = 'COMPLETE' | 'IN-PROGRESS';
1728
+ type DIMScanType = 'DISCOVERY' | 'INITIAL' | 'ONGOING';
1729
+ type DIMBrokerScanStatus = 'CREATED' | 'QUEUED' | 'ACTIVE' | 'RETRYING' | 'FAILED' | 'SUCCESS';
1730
+ type DIMRemovalStatus = 'ACTION_NEEDED' | 'IN-PROGRESS' | 'REMOVED' | 'UNAVAILABLE';
1731
+ type DIMRiskLevel = 'LOW' | 'MEDIUM' | 'HIGH';
1732
+ interface DIMRecordData {
1733
+ id: string;
1734
+ age?: string;
1735
+ full_name?: string;
1736
+ gender?: string;
1737
+ occupation?: string;
1738
+ education?: string;
1739
+ addresses?: string[];
1740
+ relatives?: string[];
1741
+ phone_numbers?: string[];
1742
+ email_addresses?: string[];
1743
+ employments?: string[];
1744
+ properties?: string[];
1745
+ submitted_at?: string;
1746
+ risk_level?: DIMRiskLevel;
1747
+ removal_status?: DIMRemovalStatus;
1748
+ }
1749
+ interface DIMBrokerDetail {
1750
+ id: string;
1751
+ name: string;
1752
+ status: DIMBrokerScanStatus;
1753
+ record_data?: DIMRecordData[];
1754
+ }
1755
+ interface DIMScanDetail {
1756
+ id: string;
1757
+ type: DIMScanType;
1758
+ status: DIMScanStatus;
1759
+ started_at?: string;
1760
+ stopped_at?: string;
1761
+ modified_at?: string;
1762
+ broker_count?: number;
1763
+ broker_details?: DIMBrokerDetail[];
1764
+ }
1765
+ interface DIMGetScansResponse {
1766
+ product_config_id?: ProductConfigId;
1767
+ next_cursor?: string;
1768
+ scan_details: DIMScanDetail[];
1769
+ }
1770
+ interface DIMPostScanResponse {
1771
+ scan_id: string;
1772
+ product_config_id: ProductConfigId;
1773
+ }
1774
+ interface DIMMetaRecordData {
1775
+ id: string;
1776
+ removal_status?: DIMRemovalStatus;
1777
+ }
1778
+ interface DIMMetaBrokers {
1779
+ id: string;
1780
+ name: string;
1781
+ record_data?: DIMMetaRecordData[];
1782
+ }
1783
+ interface DIMScanMetaData {
1784
+ id: string;
1785
+ status: DIMScanStatus;
1786
+ type: DIMScanType;
1787
+ started_at: string;
1788
+ modified_at: string;
1789
+ broker_details?: DIMMetaBrokers[];
1790
+ }
1791
+ interface DIMGetScansMetaResponse {
1792
+ product_config_id?: ProductConfigId;
1793
+ unique_broker_count?: number;
1794
+ broker_removals_in_progress?: number;
1795
+ broker_removals_completed?: number;
1796
+ datapoints_removed?: number;
1797
+ datapoints_exposed?: number;
1798
+ datapoints_in_progress?: number;
1799
+ next_scan_at?: string;
1800
+ scan_details?: DIMScanMetaData[];
1801
+ }
1802
+ interface DIMBroker {
1803
+ id: string;
1804
+ name: string;
1805
+ url?: string;
1806
+ labels?: string[];
1807
+ group_id?: string;
1808
+ estimated_days_to_remove_records?: number;
1809
+ }
1810
+ interface DIMGroupRemovalInstruction {
1811
+ group_id: string;
1812
+ group_name: string;
1813
+ last_modified_at?: string;
1814
+ not_getting_removed_instructions?: string;
1815
+ removal_steps?: string;
1816
+ removal_url?: string;
1817
+ support_email?: string;
1818
+ }
1819
+ interface DIMGetBrokersResponse {
1820
+ group_removal_instructions?: DIMGroupRemovalInstruction[];
1821
+ brokers: DIMBroker[];
1822
+ }
1823
+ interface DIMGetBrokerByIdResponse {
1824
+ group_removal_instructions?: DIMGroupRemovalInstruction;
1825
+ broker: DIMBroker;
1826
+ }
1827
+ interface DIMBrokerGroupDetail {
1828
+ group_id: string;
1829
+ group_name: string;
1830
+ broker_ids?: string[];
1831
+ last_modified_at?: string;
1832
+ not_getting_removed_instructions?: string;
1833
+ removal_steps?: string;
1834
+ removal_url?: string;
1835
+ support_email?: string;
1836
+ }
1837
+ interface DIMBrokerGroupActionResponse {
1838
+ group_id: string;
1839
+ }
1840
+ interface DIMGetScansOptions {
1841
+ product_config_id?: ProductConfigId;
1842
+ scan_between?: string;
1843
+ cursor?: string;
1844
+ count?: number;
1845
+ }
1846
+ interface DIMGetScansMetaOptions {
1847
+ most_recent?: boolean;
1848
+ product_config_id?: ProductConfigId;
1849
+ scan_between?: string;
1850
+ }
1851
+ interface DIMPostScanOptions {
1852
+ product_config_id: ProductConfigId;
1853
+ }
1854
+
1855
+ declare class DigitalIdentityManagerService extends ApiClient {
1856
+ #private;
1857
+ constructor(config: ConnectedSolutionsSDKConfig);
1858
+ /**
1859
+ * Create a new discovery scan
1860
+ * POST /v1/dim/scans
1861
+ */
1862
+ createScan(options: DIMPostScanOptions, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMPostScanResponse>>;
1863
+ /**
1864
+ * Get scan results
1865
+ * GET /v1/dim/scans
1866
+ */
1867
+ getScans(options?: DIMGetScansOptions, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMGetScansResponse>>;
1868
+ /**
1869
+ * Get scan by ID
1870
+ * GET /v1/dim/scans/{scan_id}
1871
+ */
1872
+ getScanById(requestOptions: {
1873
+ scanId: string;
1874
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMScanDetail>>;
1875
+ /**
1876
+ * Get scan meta data details
1877
+ * GET /v1/dim/scans/meta
1878
+ */
1879
+ getScansMetadata(options?: DIMGetScansMetaOptions, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMGetScansMetaResponse>>;
1880
+ /**
1881
+ * Get brokers details
1882
+ * GET /v1/dim/brokers
1883
+ */
1884
+ getBrokers(fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMGetBrokersResponse>>;
1885
+ /**
1886
+ * Get a broker detail
1887
+ * GET /v1/dim/brokers/{broker_id}
1888
+ */
1889
+ getBrokerById(requestOptions: {
1890
+ brokerId: string;
1891
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMGetBrokerByIdResponse>>;
1892
+ /**
1893
+ * Get brokers details for a scan
1894
+ * GET /v1/dim/scans/{scan_id}/brokers
1895
+ */
1896
+ getBrokersByScanId(requestOptions: {
1897
+ scanId: string;
1898
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMGetBrokersResponse>>;
1899
+ /**
1900
+ * Get brokers group detail
1901
+ * GET /v1/dim/brokers/groups/{group_id}
1902
+ */
1903
+ getBrokersByGroupId(requestOptions: {
1904
+ groupId: string;
1905
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMBrokerGroupDetail>>;
1906
+ /**
1907
+ * Update user action for removal (disposition a scan removal)
1908
+ * POST /v1/dim/brokers/groups/{group_id}/action
1909
+ * Returns 202 Accepted with group_id in response body
1910
+ * Note: Per OAS 1.0.29, this endpoint doesn't accept a request body
1911
+ */
1912
+ updateBrokerGroupAction(requestOptions: {
1913
+ groupId: string;
1914
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<DIMBrokerGroupActionResponse>>;
1915
+ }
1916
+
1318
1917
  type ConnectedSolutionsSDKConfigInternal = {
1319
1918
  environment: 'PRODUCTION' | 'SANDBOX';
1320
1919
  token: string | null;
@@ -1333,13 +1932,15 @@ interface ConnectedSolutionsSDK {
1333
1932
  entitlements: EntitlementsService;
1334
1933
  productConfigs: ProductConfigsService;
1335
1934
  registrations: RegistrationsService;
1935
+ identityHealthScore: IdentityHealthScoreService;
1936
+ digitalIdentityManager: DigitalIdentityManagerService;
1336
1937
  }
1337
1938
 
1338
1939
  type ConnectedSolutionsClientMeta = {
1339
1940
  status: number;
1340
1941
  statusText: string;
1341
1942
  };
1342
- type ConnectedSolutionsClientErrors = ConnectedSolutionsClientApiError | ConnectedSolutionsClientAuthError | ConnectedSolutionsClientUnknownError | ConnectedSolutionsClientSDKError;
1943
+ type ConnectedSolutionsClientErrors = ConnectedSolutionsClientSideError | ConnectedSolutionsClientAuthenticationError | ConnectedSolutionsClientServerSideError | ConnectedSolutionsClientRateLimitError | ConnectedSolutionsClientSDKError;
1343
1944
  type ApiClientResponse<DataType = Record<string, unknown>> = {
1344
1945
  data: DataType;
1345
1946
  error: undefined;
@@ -1363,16 +1964,12 @@ declare class ApiClient {
1363
1964
  declare class CreditScoresService extends ApiClient {
1364
1965
  #private;
1365
1966
  constructor(config: ConnectedSolutionsSDKConfig);
1366
- getCreditScores(options?: {
1967
+ getCreditScores<Version extends ApiVersion = 'v1'>(options?: BaseCreditScoreRequestOptions<Version> & {
1367
1968
  product_config_id?: string;
1368
- include_factors?: boolean;
1369
- include_ingredients?: boolean;
1370
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditScore[]>>;
1371
- orderCreditScore(requestOptions: {
1969
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<GetCreditScoreResponse<Version>>>;
1970
+ orderCreditScore<Version extends ApiVersion = 'v1'>(requestOptions: BaseCreditScoreRequestOptions<Version> & {
1372
1971
  product_config_id: string;
1373
- include_factors?: boolean;
1374
- include_ingredients?: boolean;
1375
- }, fetchOptions?: RequestInit): Promise<ApiClientResponse<CreditScore>>;
1972
+ }, fetchOptions?: RequestInit): Promise<ApiClientResponse<PostCreditScoreResponse<Version>>>;
1376
1973
  }
1377
1974
 
1378
1975
  declare class SDKClient extends ApiClient implements ConnectedSolutionsSDK {
@@ -1389,6 +1986,8 @@ declare class SDKClient extends ApiClient implements ConnectedSolutionsSDK {
1389
1986
  entitlements: EntitlementsService;
1390
1987
  productConfigs: ProductConfigsService;
1391
1988
  registrations: RegistrationsService;
1989
+ identityHealthScore: IdentityHealthScoreService;
1990
+ digitalIdentityManager: DigitalIdentityManagerService;
1392
1991
  static getInstance(config: ConnectedSolutionsSDKConfig): SDKClient;
1393
1992
  static clearInstance(): void;
1394
1993
  private constructor();
@@ -1410,4 +2009,25 @@ declare function isFicoScenario(scenario: Scenario): scenario is FicoScenario;
1410
2009
  declare function isFicoScenarioVariation(variation?: ScenarioVariation): variation is FicoScenarioVariation;
1411
2010
  declare function isVantageScenarioVariation(variation?: ScenarioVariation): variation is VantageScenarioVariation;
1412
2011
 
1413
- export { type Account, type AccountClosedDetails, type AccountCurrentDetails, type AccountImprovedDetails, type AccountInBankruptcyDetails, type AccountPaidDetails, type Action, type ActivationRule, type Address, type Alert, type AlertCount, type AlertData, type AlertDetails, type AlertDisposition, type AlertMetadata, type Alerts, type ApiClientResponse, type AttributeCategoryImpact, type AttributeCategoryName, type AttributeCategoryRating, type AttributeCategoryRatingName, type AttributeCategoryRatingScale, type AttributeCategoryRatingScaleType, type AttributeCategoryRatingScaleValue, type AttributeCategoryRatingScaleValueName, type AttributeHardInquiry, type AttributeHighCreditUtilizationAccount, type AttributeOldestOpenAccount, type AttributeRelevantScoreFactor, type AuthAnswer, type AuthAnswersRequest, type AuthCredentials, type AuthQuestion, type AuthQuestions, type AuthServiceConfig, type BearerToken, type Bureau, type CardOverLimitDetails, type ClosedAccountDetails, type CollectionAccount, type CollectionDetails, type Company, type ConnectedSolutionsAPIErrorData, ConnectedSolutionsClientApiError, ConnectedSolutionsClientAuthError, ConnectedSolutionsClientError, type ConnectedSolutionsClientErrors, type ConnectedSolutionsClientMeta, type ConnectedSolutionsClientRawError, ConnectedSolutionsClientSDKError, ConnectedSolutionsClientUnknownError, type ConnectedSolutionsSDK, type ConnectedSolutionsSDKConfig, type ConnectedSolutionsSDKConfigInternal, type ConnectedSolutionsSDKErrorTypes, type ContactInfo, type CreateCustomerOptions, type CreateRegistrationsRequest, type CreateRegistrationsResponse, type CreditAttribute, type CreditAttributeCategory, type CreditAttributes, type CreditBalanceDecreaseDetails, type CreditBalanceIncreaseDetails, type CreditInquiry, type CreditLimitDecreaseDetails, type CreditLimitIncreaseDetails, type CreditReport, type CreditReportMeta, type CreditReportScoreDetail, type CreditReportScoreRating, type CreditReportType, type CreditScore, type CreditScoreBelowGoalDetails, type CreditScoreDecreaseDetails, type CreditScoreFeaturePreferences, type CreditScoreGoalAchievedDetails, type CreditScoreIncreaseDetails, type CreditScoreIngredient, type CreditScorePlan, type CreditScorePostRequest, type CreditScoreRatingDecreaseDetails, type CreditScoreRatingIncreaseDetails, type CreditScoreSimulator, type CreditScoreSimulatorPostRequest, type CreditScoreSimulatorPostResponse, type CreditScoreTriggerReasons, type CreditUsageDecreaseDetails, type CreditUsageIncreaseDetails, type CreditorAddress, type Customer, type CustomerAddress, type CustomerDisclosure, type CustomerEmail, type CustomerId, type CustomerPhone, type CustomerSearchOptions, type CustomerSearchResults, type DeceasedDetails, type DerogatoryDetails, type DormantAccountDetails, type EntitleCustomerResponse, type EntitledProduct, type EntitledProductStatus, type Entitlement, type EntitlementId, type EntitlementNextAction, type Entitlements, type FicoCreditScorePlan, type FicoCreditScorePlanCompleted, type FicoCreditScorePlanNotSet, type FicoCreditScorePlanSet, type FicoScenario, type FicoScenarioVariation, type FicoScoreModelVersion, type FicoScorePlanCompleted, type FicoScorePlanCreateResponse, type FicoScorePlanRevision, type FicoScorePlanRevisionsRequest, type FicoScorePlanSet, type FicoScoreSimulator, type FicoStatement, type GlobalProductId, type Impact, type ImpactType, type LostOrStolenCardDetails, type MappedScoreModelVersion, type Month, type Name, type NewAccountDetails, type NewAddressDetails, type NewInquiryDetails, type OnDemandEligibility, type PastDueDetails, type PaymentHistoryCode, type PaymentSummary, type PersonalAddress, type PlanCompletedProgressStatus, type PlanNotSetProgressStatus, type PlanSetProgressStatus, type ProductConfigId, type ProductDeliveryCadence, type ProductEligibility, type PublicRecord, type PublicRecordBankruptcyDetails, type ReportDisplay, type ReportDisplayScoreDetails, type Scenario, type ScenarioVariation, type ScoreFactor, type ScoreFactorDataPoint, type ScoreIngredient, type ScoreIngredientAttribute, type ScoreIngredientAttributeSubValueType, type ScoreIngredientAttributeValueType, type ScoreIngredientImpact, type ScoreIngredientType, type ScoreModel, type ScoreModelVersion, type ScorePlanCompleted, type ScorePlanCreateResponse, type ScorePlanRevision, type ScorePlanRevisionsRequest, type ScorePlanSet, type ScoreRange, type ScoreRating, type ScoreUpdateFrequency, type SettlementDetails, type SimulationCategoryType, type SkipCannotLocateDetails, type SpecialCommentsDetails, type Statement, type Supcontent, type TotalAlertCounts, type VantageCreditScorePlan, type VantageCreditScorePlanCompleted, type VantageCreditScorePlanNotSet, type VantageCreditScorePlanSet, type VantageScenario, type VantageScenarioVariation, type VantageScoreModelVersion, type VantageScorePlanCompleted, type VantageScorePlanCreateResponse, type VantageScorePlanRevision, type VantageScorePlanRevisionsRequest, type VantageScorePlanSet, type VantageScoreSimulator, type VantageStatement, createSDK, createSDK as default, isFicoPlan, isFicoRevision, isFicoRevisionsRequest, isFicoScenario, isFicoScenarioVariation, isFicoSimulator, isPlanCompleted, isPlanSet, isVantagePlan, isVantageRevision, isVantageRevisionsRequest, isVantageScenario, isVantageScenarioVariation };
2012
+ declare function isValidApiVersion(version: string): version is ApiVersion;
2013
+ declare function isCreditScore(data: unknown): data is CreditScore;
2014
+ declare function isCreditScoreV2(data: unknown): data is CreditScore_V2;
2015
+ declare function isBureauScore(data: unknown): data is BureauScore;
2016
+ declare function isValidBureau(bureau: unknown): bureau is Bureau;
2017
+ declare function isCreditScoresV2(data: unknown): data is CreditScores_V2;
2018
+ declare function isCreditScoreArray(data: unknown): data is CreditScore[];
2019
+ declare function isV1GetCreditScoresResponse(data: unknown): data is GetCreditScoreResponse<'v1'>;
2020
+ declare function isV2GetCreditScoresResponse(data: unknown): data is GetCreditScoreResponse<'v2'>;
2021
+ declare function isV1PostCreditScoresResponse(data: unknown): data is PostCreditScoreResponse<'v1'>;
2022
+ declare function isV2PostCreditScoresResponse(data: unknown): data is PostCreditScoreResponse<'v2'>;
2023
+
2024
+ declare function isCreditAttribute(data: unknown): data is CreditAttributes;
2025
+ declare function isCreditAttributeV2(data: unknown): data is CreditAttribute_V2;
2026
+ declare function isBureauAttribute(data: unknown): data is BureauAttribute;
2027
+ declare function isValidBureauAttribute(bureau: unknown): bureau is Bureau;
2028
+ declare function isCreditAttributesV2(data: unknown): data is CreditAttribute_V2;
2029
+ declare function isCreditAttributeArray(data: unknown): data is CreditAttribute[];
2030
+ declare function isV1GetCreditAttributesResponse(data: unknown): data is GetCreditAttributeResponse<'v1'>;
2031
+ declare function isV2GetCreditAttributesResponse(data: unknown): data is GetCreditAttributeResponse<'v2'>;
2032
+
2033
+ export { type Account, type AccountClosedDetails, type AccountCurrentDetails, type AccountImprovedDetails, type AccountInBankruptcyDetails, type AccountPaidDetails, type Account_V2, type Action, type ActivationRule, type Address, type Alert, type AlertCount, type AlertData, type AlertDetails, type AlertDisposition, type AlertMetadata, type Alerts, type ApiClientResponse, type AttributeCategoryImpact, type AttributeCategoryName, type AttributeCategoryRating, type AttributeCategoryRatingName, type AttributeCategoryRatingScale, type AttributeCategoryRatingScaleType, type AttributeCategoryRatingScaleValue, type AttributeCategoryRatingScaleValueName, type AttributeHardInquiry, type AttributeHighCreditUtilizationAccount, type AttributeOldestOpenAccount, type AttributeRelevantScoreFactor, type AuthAnswer, type AuthAnswersRequest, type AuthCredentials, type AuthQuestion, type AuthQuestions, type AuthServiceConfig, type BaseCreditAttributeRequestOptions, type BaseCreditScoreRequestOptions, type BearerToken, type BureauAttribute, type BureauReport, type BureauReportMeta, type BureauScore, type CardOverLimitDetails, type ClosedAccountDetails, type CollectionAccount, type CollectionAccount_V2, type CollectionDetails, type Company, type ConnectedSolutionsAPIErrorData, type ConnectedSolutionsAPIErrorType, ConnectedSolutionsClientAuthenticationError, ConnectedSolutionsClientError, type ConnectedSolutionsClientErrors, type ConnectedSolutionsClientMeta, ConnectedSolutionsClientRateLimitError, type ConnectedSolutionsClientRawError, ConnectedSolutionsClientSDKError, ConnectedSolutionsClientServerSideError, ConnectedSolutionsClientSideError, type ConnectedSolutionsSDK, type ConnectedSolutionsSDKConfig, type ConnectedSolutionsSDKConfigInternal, type ConnectedSolutionsSDKErrorTypes, type ContactInfo, type CreateCustomerOptions, type CreateRegistrationsRequest, type CreateRegistrationsResponse, type CreditAttribute, type CreditAttributeCategory, type CreditAttribute_V2, type CreditAttributes, type CreditAttributes_V2, type CreditBalanceDecreaseDetails, type CreditBalanceIncreaseDetails, type CreditInquiry, type CreditLimitDecreaseDetails, type CreditLimitIncreaseDetails, type CreditReport, type CreditReportDisposition_V2, type CreditReportMeta, type CreditReportMeta_V2, type CreditReportScoreDetail, type CreditReportScoreRating, type CreditReportType, type CreditReport_V2, type CreditReportsMeta_V2, type CreditReports_V2, type CreditScore, type CreditScoreBelowGoalDetails, type CreditScoreDecreaseDetails, type CreditScoreFeaturePreferences, type CreditScoreGoalAchievedDetails, type CreditScoreIncreaseDetails, type CreditScoreIngredient, type CreditScorePlan, type CreditScorePostRequest, type CreditScoreRatingDecreaseDetails, type CreditScoreRatingIncreaseDetails, type CreditScoreSimulator, type CreditScoreSimulatorPostRequest, type CreditScoreSimulatorPostResponse, type CreditScoreTriggerReasons, type CreditScore_V2, type CreditScores_V2, type CreditUsageDecreaseDetails, type CreditUsageIncreaseDetails, type CreditorAddress, type CustomAttributes, type CustomFeatures, type Customer, type CustomerAddress, type CustomerDisclosure, type CustomerEmail, type CustomerId, type CustomerPhone, type CustomerSearchOptions, type CustomerSearchResults, type DIMBroker, type DIMBrokerDetail, type DIMBrokerGroupActionResponse, type DIMBrokerGroupDetail, type DIMBrokerScanStatus, type DIMGetBrokerByIdResponse, type DIMGetBrokersResponse, type DIMGetScansMetaOptions, type DIMGetScansMetaResponse, type DIMGetScansOptions, type DIMGetScansResponse, type DIMGroupRemovalInstruction, type DIMMetaBrokers, type DIMMetaRecordData, type DIMPostScanOptions, type DIMPostScanResponse, type DIMRecordData, type DIMRemovalStatus, type DIMRiskLevel, type DIMScanDetail, type DIMScanMetaData, type DIMScanStatus, type DIMScanType, type DeceasedDetails, type DerogatoryDetails, type DormantAccountDetails, type Employers, type EntitleCustomerResponse, type EntitledProduct, type EntitledProductStatus, type Entitlement, type EntitlementId, type EntitlementNextAction, type Entitlements, type EquifaxCollectionChangeDetails, type EquifaxNewAccountDetails, type EquifaxNewAddressDetails, type EquifaxNewBankruptcyDetails, type EquifaxNewCollectionDetails, type EquifaxNewInquiryDetails, type FicoCreditScorePlan, type FicoCreditScorePlanCompleted, type FicoCreditScorePlanNotSet, type FicoCreditScorePlanSet, type FicoScenario, type FicoScenarioVariation, type FicoScoreModelVersion, type FicoScorePlanCompleted, type FicoScorePlanCreateResponse, type FicoScorePlanRevision, type FicoScorePlanRevisionsRequest, type FicoScorePlanSet, type FicoScoreSimulator, type FicoStatement, type GetCreditAttributeResponse, type GetCreditReportByIdRequestOptions, type GetCreditReportByIdResponse, type GetCreditReportMetaByIdRequestOptions, type GetCreditReportMetaByIdResponse, type GetCreditReportMetaRequestOptions, type GetCreditReportMetaResponse, type GetCreditReportRequestOptions, type GetCreditReportResponse, type GetCreditScoreResponse, type GlobalProductId, type IHSActionAnswerOption, type IHSCreatePlanResponse, type IHSDisplayParameters, type IHSFactorCategory, type IHSGetPlanRequest, type IHSGetPlanRequestActionStatus, type IHSPlan, type IHSPlanAction, type IHSPlanActionItem, type IHSPlanActionStatus, type IHSPlanPriority, type IHSPlanStatus, type IHSScoreDetails, type IHSScoreFactor, type IHSSubmitSurveyRequest, type IHSSubmitSurveyResponse, type IHSSurvey, type IHSSurveyAnswer, type IHSSurveyAnswerRequest, type IHSSurveyPriority, type IHSSurveyQuestion, type IHSSurveyQuestionItem, type IHSSurveyStatus, type IHSUpdateActionRequest, type IHSUpdateActionResponse, type IHSUpsellObject, type IHSUpsellProduct, type IdentityHealthScore, type Impact, type ImpactType, type LostOrStolenCardDetails, type MappedScoreModelVersion, type MarkCreditReportAsRead, type MarkCreditReportReadRequestOptions_V1, type MarkCreditReportReadRequestOptions_V2, type Month, type Name, type NewAccountDetails, type NewAddressDetails, type NewInquiryDetails, type OnDemandEligibility, type PastDueDetails, type PaymentHistoryCode, type PaymentHistoryCode_V2, type PaymentSummary, type PaymentSummary_V2, type PersonalAddress, type PersonalAddress_V2, type PlanCompletedProgressStatus, type PlanNotSetProgressStatus, type PlanSetProgressStatus, type PostCreditReportRequestOptions, type PostCreditReportResponse, type PostCreditScoreResponse, type ProductConfigId, type ProductDeliveryCadence, type ProductEligibility, type PublicRecord, type PublicRecordBankruptcyDetails, type ReadStatus, type ReportDisplay, type ReportDisplayScoreDetails, type Scenario, type ScenarioVariation, type ScoreFactor, type ScoreFactorDataPoint, type ScoreIngredient, type ScoreIngredientAttribute, type ScoreIngredientAttributeSubValueType, type ScoreIngredientAttributeValueType, type ScoreIngredientImpact, type ScoreIngredientType, type ScoreModel, type ScoreModelVersion, type ScorePlanCompleted, type ScorePlanCreateResponse, type ScorePlanRevision, type ScorePlanRevisionsRequest, type ScorePlanSet, type ScoreRange, type ScoreRating, type ScoreUpdateFrequency, type SettlementDetails, type SimulationCategoryType, type SkipCannotLocateDetails, type SpecialCommentsDetails, type Statement, type Statement_V2, type Supcontent, type TotalAlertCounts, type TransUnionAccountImprovedDetails, type TransUnionAccountInBankruptcyDetails, type TransUnionDelinquentDetails, type TransUnionNewAccountDetails, type TransUnionNewAddressDetails, type TransUnionNewInquiryDetails, type TransUnionNewPublicRecordDetails, type TransUnionPublicRecordBankruptcyDetails, type VantageCreditScorePlan, type VantageCreditScorePlanCompleted, type VantageCreditScorePlanNotSet, type VantageCreditScorePlanSet, type VantageScenario, type VantageScenarioVariation, type VantageScoreModelVersion, type VantageScorePlanCompleted, type VantageScorePlanCreateResponse, type VantageScorePlanRevision, type VantageScorePlanRevisionsRequest, type VantageScorePlanSet, type VantageScoreSimulator, type VantageStatement, createSDK, createSDK as default, isBureauAttribute, isBureauScore, isCreditAttribute, isCreditAttributeArray, isCreditAttributeV2, isCreditAttributesV2, isCreditScore, isCreditScoreArray, isCreditScoreV2, isCreditScoresV2, isFicoPlan, isFicoRevision, isFicoRevisionsRequest, isFicoScenario, isFicoScenarioVariation, isFicoSimulator, isPlanCompleted, isPlanSet, isV1GetCreditAttributesResponse, isV1GetCreditScoresResponse, isV1PostCreditScoresResponse, isV2GetCreditAttributesResponse, isV2GetCreditScoresResponse, isV2PostCreditScoresResponse, isValidApiVersion, isValidBureau, isValidBureauAttribute, isVantagePlan, isVantageRevision, isVantageRevisionsRequest, isVantageScenario, isVantageScenarioVariation, mapApiErrorTypeToSDKErrorType, mapHttpStatusToSDKErrorType };