cidaas-javascript-sdk 2.4.2 → 2.5.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +5 -3
  2. package/README.md +2 -3
  3. package/package.json +10 -12
  4. package/src/main/authentication/index.ts +223 -0
  5. package/src/main/global.d.ts +10 -0
  6. package/src/main/index.ts +6 -0
  7. package/src/main/web-auth/ConsentService.ts +98 -0
  8. package/src/main/web-auth/Entities.ts +645 -0
  9. package/src/main/web-auth/Helper.ts +75 -0
  10. package/src/main/web-auth/LoginService.ts +248 -0
  11. package/src/main/web-auth/TokenService.ts +196 -0
  12. package/src/main/web-auth/UserService.ts +388 -0
  13. package/src/main/web-auth/VerificationService.ts +267 -0
  14. package/src/main/web-auth/WebAuth.ts +1706 -0
  15. package/types/authentication/index.d.ts +55 -0
  16. package/types/authentication/index.js +262 -0
  17. package/types/index.d.ts +4 -0
  18. package/types/index.js +9 -0
  19. package/types/web-auth/ConsentService.d.ts +59 -0
  20. package/types/web-auth/ConsentService.js +97 -0
  21. package/types/web-auth/Entities.d.ts +567 -0
  22. package/types/web-auth/Entities.js +88 -0
  23. package/types/web-auth/Helper.d.ts +24 -0
  24. package/types/web-auth/Helper.js +89 -0
  25. package/types/web-auth/LoginService.d.ts +102 -0
  26. package/types/web-auth/LoginService.js +248 -0
  27. package/types/web-auth/TokenService.d.ts +48 -0
  28. package/types/web-auth/TokenService.js +210 -0
  29. package/types/web-auth/UserService.d.ts +143 -0
  30. package/types/web-auth/UserService.js +408 -0
  31. package/types/web-auth/VerificationService.d.ts +125 -0
  32. package/types/web-auth/VerificationService.js +273 -0
  33. package/types/web-auth/WebAuth.d.ts +895 -0
  34. package/types/web-auth/WebAuth.js +1767 -0
  35. package/src/main/.gitkeep +0 -0
  36. package/src/main/authentication/index.js +0 -213
  37. package/src/main/index.js +0 -11
  38. package/src/main/web-auth/exception.js +0 -7
  39. package/src/main/web-auth/webauth.js +0 -1899
  40. package/src/test/sum.js +0 -4
  41. package/src/test/test.js +0 -5
  42. package/types/.DS_Store +0 -0
  43. package/types/main/authentication/index.d.ts +0 -15
  44. package/types/main/index.d.ts +0 -5
  45. package/types/main/web-auth/exception.d.ts +0 -7
  46. package/types/main/web-auth/webauth.d.ts +0 -141
  47. package/types/test/sum.d.ts +0 -2
  48. package/types/test/test.d.ts +0 -1
@@ -0,0 +1,895 @@
1
+ import { UserManagerSettings } from "oidc-client-ts";
2
+ import { AccessTokenRequest, TokenIntrospectionEntity, UserEntity, ResetPasswordEntity, IConfiguredListRequestEntity, IInitVerificationAuthenticationRequestEntity, FindUserEntity, IUserEntity, FidoSetupEntity, IEnrollVerificationSetupRequestEntity, ISuggestedMFAActionConfig, IUserLinkEntity, UpdateReviewDeviceEntity, UserActivityEntity, ChangePasswordEntity, IConsentAcceptEntity, IAuthVerificationAuthenticationRequestEntity, FaceVerificationAuthenticationRequestEntity, LoginFormRequestEntity, AccountVerificationRequestEntity, ValidateResetPasswordEntity, AcceptResetPasswordEntity, LoginFormRequestAsyncEntity, PhysicalVerificationLoginRequest, IChangePasswordEntity } from "./Entities";
3
+ export declare class WebAuth {
4
+ private code_verifier;
5
+ constructor(settings: UserManagerSettings & {
6
+ mode?: string;
7
+ });
8
+ /**
9
+ * generate code verifier
10
+ */
11
+ private generateCodeVerifier;
12
+ /**
13
+ * @param code_verifier
14
+ * @returns
15
+ */
16
+ private generateCodeChallenge;
17
+ /**
18
+ * @param string
19
+ * @returns
20
+ */
21
+ private base64URL;
22
+ /**
23
+ * login
24
+ */
25
+ loginWithBrowser(): void;
26
+ /**
27
+ * register
28
+ */
29
+ registerWithBrowser(): void;
30
+ /**
31
+ * login callback
32
+ * @returns
33
+ */
34
+ loginCallback(): Promise<unknown>;
35
+ /**
36
+ * get user info
37
+ * @returns
38
+ */
39
+ getUserInfo(): Promise<any>;
40
+ /**
41
+ * logout
42
+ * @returns
43
+ */
44
+ logout(): Promise<unknown>;
45
+ /**
46
+ * logout callback
47
+ * @returns
48
+ */
49
+ logoutCallback(): Promise<unknown>;
50
+ /**
51
+ * get login url
52
+ * @returns
53
+ */
54
+ getLoginURL(): string;
55
+ /**
56
+ * get request id
57
+ * @returns
58
+ */
59
+ getRequestId(): Promise<unknown>;
60
+ /**
61
+ * get missing fields
62
+ * @param options
63
+ * @returns
64
+ */
65
+ getMissingFields(options: {
66
+ requestId: string;
67
+ trackId: string;
68
+ }): Promise<unknown>;
69
+ /**
70
+ * get Tenant info
71
+ * @returns
72
+ */
73
+ getTenantInfo(): Promise<unknown>;
74
+ /**
75
+ * logout api call
76
+ * @param options
77
+ */
78
+ logoutUser(options: {
79
+ access_token: string;
80
+ }): void;
81
+ /**
82
+ * get Client Info
83
+ * @param options
84
+ * @returns
85
+ */
86
+ getClientInfo(options: {
87
+ requestId: string;
88
+ }): Promise<unknown>;
89
+ /**
90
+ * get all devices associated to the client
91
+ * @param options
92
+ * @returns
93
+ */
94
+ getDevicesInfo(options: any): Promise<unknown>;
95
+ /**
96
+ * delete a device
97
+ * @param options
98
+ * @returns
99
+ */
100
+ deleteDevice(options: {
101
+ device_id: string;
102
+ userAgent?: string;
103
+ }): Promise<unknown>;
104
+ /**
105
+ * get Registration setup
106
+ * @param options
107
+ * @returns
108
+ */
109
+ getRegistrationSetup(options: {
110
+ acceptlanguage: string;
111
+ requestId: string;
112
+ }): Promise<unknown>;
113
+ /**
114
+ * get unreviewed devices
115
+ * @param access_token
116
+ * @param sub
117
+ * @returns
118
+ */
119
+ getUnreviewedDevices(access_token: string, sub: string): Promise<unknown>;
120
+ /**
121
+ * get reviewed devices
122
+ * @param access_token
123
+ * @param sub
124
+ * @returns
125
+ */
126
+ getReviewedDevices(access_token: string, sub: string): Promise<unknown>;
127
+ /**
128
+ * review device
129
+ * @param options
130
+ * @param access_token
131
+ * @returns
132
+ */
133
+ reviewDevice(options: UpdateReviewDeviceEntity, access_token: string): Promise<unknown>;
134
+ /**
135
+ * get device info
136
+ * @returns
137
+ */
138
+ getDeviceInfo(): Promise<unknown>;
139
+ /**
140
+ * get user info
141
+ * @param options
142
+ * @returns
143
+ */
144
+ getUserProfile(options: {
145
+ access_token: string;
146
+ }): Promise<unknown>;
147
+ /**
148
+ * renew token using refresh token
149
+ * @param options
150
+ * @returns
151
+ */
152
+ renewToken(options: AccessTokenRequest): Promise<unknown>;
153
+ /**
154
+ * get access token from code
155
+ * @param options
156
+ * @returns
157
+ */
158
+ getAccessToken(options: AccessTokenRequest): Promise<unknown>;
159
+ /**
160
+ * validate access token
161
+ * @param options
162
+ * @returns
163
+ */
164
+ validateAccessToken(options: TokenIntrospectionEntity): Promise<unknown>;
165
+ /**
166
+ * login with username and password
167
+ * @param options
168
+ */
169
+ loginWithCredentials(options: LoginFormRequestEntity): void;
170
+ /**
171
+ * login with username and password and return response
172
+ * @param options
173
+ * @returns
174
+ */
175
+ loginWithCredentialsAsynFn(options: LoginFormRequestAsyncEntity): Promise<void>;
176
+ /**
177
+ * login with social
178
+ * @param options
179
+ * @param queryParams
180
+ */
181
+ loginWithSocial(options: {
182
+ provider: string;
183
+ requestId: string;
184
+ }, queryParams: {
185
+ dc: string;
186
+ device_fp: string;
187
+ }): void;
188
+ /**
189
+ * register with social
190
+ * @param options
191
+ * @param queryParams
192
+ */
193
+ registerWithSocial(options: {
194
+ provider: string;
195
+ requestId: string;
196
+ }, queryParams: {
197
+ dc: string;
198
+ device_fp: string;
199
+ }): void;
200
+ /**
201
+ * register user
202
+ * @param options
203
+ * @param headers
204
+ * @returns
205
+ */
206
+ register(options: UserEntity, headers: {
207
+ requestId: string;
208
+ captcha?: string;
209
+ acceptlanguage?: string;
210
+ bot_captcha_response?: string;
211
+ trackId: string;
212
+ }): Promise<unknown>;
213
+ /**
214
+ * get invite info
215
+ * @param options
216
+ * @returns
217
+ */
218
+ getInviteUserDetails(options: {
219
+ invite_id: string;
220
+ }): Promise<unknown>;
221
+ /**
222
+ * get Communication status
223
+ * @param options
224
+ * @returns
225
+ */
226
+ getCommunicationStatus(options: {
227
+ sub: string;
228
+ requestId: string;
229
+ }): Promise<unknown>;
230
+ /**
231
+ * initiate verification
232
+ * @param options
233
+ * @returns
234
+ */
235
+ initiateAccountVerification(options: AccountVerificationRequestEntity): void;
236
+ /**
237
+ * initiate verification and return response
238
+ * @param options
239
+ * @returns
240
+ */
241
+ initiateAccountVerificationAsynFn(options: AccountVerificationRequestEntity): Promise<Response>;
242
+ /**
243
+ * verify account
244
+ * @param options
245
+ * @returns
246
+ */
247
+ verifyAccount(options: {
248
+ accvid: string;
249
+ code: string;
250
+ }): Promise<unknown>;
251
+ /**
252
+ * initiate reset password
253
+ * @param options
254
+ * @returns
255
+ */
256
+ initiateResetPassword(options: ResetPasswordEntity): Promise<unknown>;
257
+ /**
258
+ * handle reset password
259
+ * @param options
260
+ */
261
+ handleResetPassword(options: ValidateResetPasswordEntity): void;
262
+ /**
263
+ * reset password
264
+ * @param options
265
+ */
266
+ resetPassword(options: AcceptResetPasswordEntity): void;
267
+ /**
268
+ * get mfa list v2
269
+ * @param options
270
+ * @returns
271
+ */
272
+ getMFAListV2(options: IConfiguredListRequestEntity): Promise<unknown>;
273
+ /**
274
+ * cancel mfa v2
275
+ * @param options
276
+ * @returns
277
+ */
278
+ cancelMFAV2(options: {
279
+ exchange_id: string;
280
+ reason: string;
281
+ type: string;
282
+ }): Promise<unknown>;
283
+ /**
284
+ * passwordless login
285
+ * @param options
286
+ */
287
+ passwordlessLogin(options: PhysicalVerificationLoginRequest): void;
288
+ /**
289
+ * get user consent details
290
+ * @param options
291
+ * @returns
292
+ */
293
+ getConsentDetailsV2(options: {
294
+ consent_id: string;
295
+ consent_version_id: string;
296
+ sub: string;
297
+ }): Promise<unknown>;
298
+ /**
299
+ * accept consent v2
300
+ * @param options
301
+ * @returns
302
+ */
303
+ acceptConsentV2(options: IConsentAcceptEntity): Promise<unknown>;
304
+ /**
305
+ * get scope consent details
306
+ * @param options
307
+ * @returns
308
+ */
309
+ getScopeConsentDetails(options: {
310
+ track_id: string;
311
+ locale: string;
312
+ }): Promise<unknown>;
313
+ /**
314
+ * get scope consent version details
315
+ * @param options
316
+ * @returns
317
+ */
318
+ getScopeConsentVersionDetailsV2(options: {
319
+ scopeid: string;
320
+ locale: string;
321
+ access_token: string;
322
+ }): Promise<unknown>;
323
+ /**
324
+ * accept scope Consent
325
+ * @param options
326
+ * @returns
327
+ */
328
+ acceptScopeConsent(options: {
329
+ client_id: string;
330
+ sub: string;
331
+ scopes: string[];
332
+ }): Promise<unknown>;
333
+ /**
334
+ * scope consent continue login
335
+ * @param options
336
+ */
337
+ scopeConsentContinue(options: {
338
+ track_id: string;
339
+ }): void;
340
+ /**
341
+ * accept claim Consent
342
+ * @param options
343
+ * @returns
344
+ */
345
+ acceptClaimConsent(options: {
346
+ client_id: string;
347
+ sub: string;
348
+ accepted_claims: string[];
349
+ }): Promise<unknown>;
350
+ /**
351
+ * claim consent continue login
352
+ * @param options
353
+ */
354
+ claimConsentContinue(options: {
355
+ track_id: string;
356
+ }): void;
357
+ /**
358
+ * revoke claim Consent
359
+ * @param options
360
+ * @returns
361
+ */
362
+ revokeClaimConsent(options: {
363
+ client_id: string;
364
+ sub: string;
365
+ revoked_claims: string[];
366
+ }): Promise<unknown>;
367
+ /**
368
+ * get Deduplication details
369
+ * @param options
370
+ * @returns
371
+ */
372
+ getDeduplicationDetails(options: {
373
+ trackId: string;
374
+ }): Promise<unknown>;
375
+ /**
376
+ * deduplication login
377
+ * @param options
378
+ */
379
+ deduplicationLogin(options: {
380
+ trackId: string;
381
+ requestId: string;
382
+ sub: string;
383
+ }): void;
384
+ /**
385
+ * register Deduplication
386
+ * @param options
387
+ * @returns
388
+ */
389
+ registerDeduplication(options: {
390
+ trackId: string;
391
+ }): Promise<unknown>;
392
+ /**
393
+ * accepts any as the request
394
+ * consent continue login
395
+ * @param options
396
+ */
397
+ consentContinue(options: {
398
+ client_id: string;
399
+ consent_refs: string[];
400
+ sub: string;
401
+ scopes: string[];
402
+ matcher: any;
403
+ track_id: string;
404
+ }): void;
405
+ /**
406
+ * mfa continue login
407
+ * @param options
408
+ */
409
+ mfaContinue(options: PhysicalVerificationLoginRequest & {
410
+ track_id: string;
411
+ }): void;
412
+ /**
413
+ * change password continue
414
+ * @param options
415
+ */
416
+ firstTimeChangePassword(options: IChangePasswordEntity): void;
417
+ /**
418
+ * change password
419
+ * @param options
420
+ * @param access_token
421
+ * @returns
422
+ */
423
+ changePassword(options: ChangePasswordEntity, access_token: string): Promise<unknown>;
424
+ /**
425
+ * update profile
426
+ * @param options
427
+ * @param access_token
428
+ * @param sub
429
+ * @returns
430
+ */
431
+ updateProfile(options: UserEntity, access_token: string, sub: string): Promise<unknown>;
432
+ /**
433
+ * get user activities
434
+ * @param options
435
+ * @param access_token
436
+ * @returns
437
+ */
438
+ getUserActivities(options: UserActivityEntity, access_token: string): Promise<unknown>;
439
+ /**
440
+ * @param access_token
441
+ * @returns
442
+ */
443
+ getAllVerificationList(access_token: string): Promise<unknown>;
444
+ /**
445
+ * initiate link accoount
446
+ * @param options
447
+ * @param access_token
448
+ * @returns
449
+ */
450
+ initiateLinkAccount(options: IUserLinkEntity, access_token: string): Promise<unknown>;
451
+ /**
452
+ * complete link accoount
453
+ * @param options
454
+ * @param access_token
455
+ * @returns
456
+ */
457
+ completeLinkAccount(options: {
458
+ code?: string;
459
+ link_request_id?: string;
460
+ }, access_token: string): Promise<unknown>;
461
+ /**
462
+ * get linked users
463
+ * @param access_token
464
+ * @param sub
465
+ * @returns
466
+ */
467
+ getLinkedUsers(access_token: string, sub: string): Promise<unknown>;
468
+ /**
469
+ * unlink accoount
470
+ * @param access_token
471
+ * @param identityId
472
+ * @returns
473
+ */
474
+ unlinkAccount(access_token: string, identityId: string): Promise<unknown>;
475
+ /**
476
+ * image upload
477
+ * @param options
478
+ * @param access_token
479
+ * @returns
480
+ */
481
+ updateProfileImage(options: {
482
+ image_key: string;
483
+ }, access_token: string): Promise<unknown>;
484
+ /**
485
+ * updateSuggestMFA
486
+ * @param track_id
487
+ * @param options
488
+ * @returns
489
+ */
490
+ updateSuggestMFA(track_id: string, options: ISuggestedMFAActionConfig): Promise<unknown>;
491
+ /**
492
+ * enrollVerification
493
+ * @param options
494
+ * @returns
495
+ */
496
+ enrollVerification(options: IEnrollVerificationSetupRequestEntity): Promise<unknown>;
497
+ /**
498
+ * @deprecated This function is no longer supported, instead use {this.updateStatus()}
499
+ * @param status_id
500
+ * @returns
501
+ */
502
+ updateSocket(status_id: string): Promise<unknown>;
503
+ /**
504
+ * update the status of notification
505
+ * @param status_id
506
+ * @returns
507
+ */
508
+ updateStatus(status_id: string): Promise<unknown>;
509
+ /**
510
+ * setupFidoVerification
511
+ * @param options
512
+ * @returns
513
+ */
514
+ setupFidoVerification(options: FidoSetupEntity): Promise<unknown>;
515
+ /**
516
+ * checkVerificationTypeConfigured
517
+ * @param options
518
+ * @returns
519
+ */
520
+ checkVerificationTypeConfigured(options: IConfiguredListRequestEntity): Promise<unknown>;
521
+ /**
522
+ * deleteUserAccount
523
+ * @param options
524
+ * @returns
525
+ */
526
+ deleteUserAccount(options: {
527
+ access_token: string;
528
+ sub: string;
529
+ }): Promise<unknown>;
530
+ /**
531
+ * getMissingFieldsLogin
532
+ * @param trackId
533
+ * @returns
534
+ */
535
+ getMissingFieldsLogin(trackId: string): Promise<unknown>;
536
+ /**
537
+ * progressiveRegistration
538
+ * @param options
539
+ * @param headers
540
+ * @returns
541
+ */
542
+ progressiveRegistration(options: IUserEntity, headers: {
543
+ requestId: string;
544
+ trackId: string;
545
+ acceptlanguage: string;
546
+ }): Promise<unknown>;
547
+ /**
548
+ * loginAfterRegister
549
+ * @param options
550
+ */
551
+ loginAfterRegister(options: {
552
+ device_id: string;
553
+ dc?: string;
554
+ rememberMe: boolean;
555
+ trackId: string;
556
+ }): void;
557
+ /**
558
+ * device code flow - verify
559
+ * @param code
560
+ */
561
+ deviceCodeVerify(code: string): void;
562
+ /**
563
+ * check if an user exists
564
+ * @param options
565
+ * @returns
566
+ */
567
+ userCheckExists(options: FindUserEntity): Promise<unknown>;
568
+ /**
569
+ * To set accept language
570
+ * @param acceptLanguage
571
+ */
572
+ setAcceptLanguageHeader(acceptLanguage: string): void;
573
+ /**
574
+ * initiate mfa v2
575
+ * @param options
576
+ * @returns
577
+ */
578
+ initiateMFAV2(options: IInitVerificationAuthenticationRequestEntity): Promise<unknown>;
579
+ /**
580
+ * initiateVerification
581
+ * @param options
582
+ */
583
+ initiateVerification(options: IInitVerificationAuthenticationRequestEntity): void;
584
+ /**
585
+ * initiate email v2
586
+ * @param options
587
+ */
588
+ initiateEmailV2(options: IInitVerificationAuthenticationRequestEntity): void;
589
+ /**
590
+ * initiate sms v2
591
+ * @param options
592
+ */
593
+ initiateSMSV2(options: IInitVerificationAuthenticationRequestEntity): void;
594
+ /**
595
+ * initiate ivr v2
596
+ * @param options
597
+ */
598
+ initiateIVRV2(options: IInitVerificationAuthenticationRequestEntity): void;
599
+ /**
600
+ * initiate backupcode v2
601
+ * @param options
602
+ */
603
+ initiateBackupcodeV2(options: IInitVerificationAuthenticationRequestEntity): void;
604
+ /**
605
+ * initiate totp v2
606
+ * @param options
607
+ */
608
+ initiateTOTPV2(options: IInitVerificationAuthenticationRequestEntity): void;
609
+ /**
610
+ * initiate pattern v2
611
+ * @param options
612
+ */
613
+ initiatePatternV2(options: IInitVerificationAuthenticationRequestEntity): void;
614
+ /**
615
+ * initiate touchid v2
616
+ * @param options
617
+ */
618
+ initiateTouchIdV2(options: IInitVerificationAuthenticationRequestEntity): void;
619
+ /**
620
+ * initiate smart push v2
621
+ * @param options
622
+ */
623
+ initiateSmartPushV2(options: IInitVerificationAuthenticationRequestEntity): void;
624
+ /**
625
+ * initiate face v2
626
+ * @param options
627
+ */
628
+ initiateFaceV2(options: IInitVerificationAuthenticationRequestEntity): void;
629
+ /**
630
+ * initiate voice v2
631
+ * @param options
632
+ */
633
+ initiateVoiceV2(options: IInitVerificationAuthenticationRequestEntity): void;
634
+ /**
635
+ * @deprecated
636
+ * @param options
637
+ * @param verificationType
638
+ * @returns
639
+ */
640
+ initiateMfaV1(options: any, verificationType: string): Promise<unknown>;
641
+ /**
642
+ * @deprecated
643
+ * initiate email - v1
644
+ * @param options
645
+ */
646
+ initiateEmail(options: any): void;
647
+ /**
648
+ * @deprecated
649
+ * initiate SMS - v1
650
+ * @param options
651
+ */
652
+ initiateSMS(options: any): void;
653
+ /**
654
+ * @deprecated
655
+ * initiate IVR - v1
656
+ * @param options
657
+ */
658
+ initiateIVR(options: any): void;
659
+ /**
660
+ * @deprecated
661
+ * initiate backup code - v1
662
+ * @param options
663
+ */
664
+ initiateBackupcode(options: any): void;
665
+ /**
666
+ * @deprecated
667
+ * initiate TOTP - v1
668
+ * @param options
669
+ */
670
+ initiateTOTP(options: any): void;
671
+ /**
672
+ * @deprecated
673
+ * initiate pattern - v1
674
+ * @param options
675
+ */
676
+ initiatePattern(options: any): void;
677
+ /**
678
+ * @deprecated
679
+ * initiate touchid - v1
680
+ * @param options
681
+ */
682
+ initiateTouchId(options: any): void;
683
+ /**
684
+ * @deprecated
685
+ * initiate push - v1
686
+ * @param options
687
+ */ initiateSmartPush(options: any): void;
688
+ /**
689
+ * @deprecated
690
+ * initiate face - v1
691
+ * @param options
692
+ */
693
+ initiateFace(options: any): void;
694
+ /**
695
+ * @deprecated
696
+ * initiate Voice - v1
697
+ * @param options
698
+ */
699
+ initiateVoice(options: any): void;
700
+ /**
701
+ * authenticate mfa v2
702
+ * @param options
703
+ * @returns
704
+ */
705
+ authenticateMFAV2(options: IAuthVerificationAuthenticationRequestEntity): Promise<unknown>;
706
+ /**
707
+ * authenticateVerification
708
+ * @param options
709
+ */
710
+ authenticateVerification(options: IAuthVerificationAuthenticationRequestEntity): void;
711
+ /**
712
+ * authenticate email v2
713
+ * @param options
714
+ */
715
+ authenticateEmailV2(options: IAuthVerificationAuthenticationRequestEntity): void;
716
+ /**
717
+ * authenticate sms v2
718
+ * @param options
719
+ */
720
+ authenticateSMSV2(options: IAuthVerificationAuthenticationRequestEntity): void;
721
+ /**
722
+ * authenticate ivr v2
723
+ * @param options
724
+ */
725
+ authenticateIVRV2(options: IAuthVerificationAuthenticationRequestEntity): void;
726
+ /**
727
+ * authenticate backupcode v2
728
+ * @param options
729
+ */
730
+ authenticateBackupcodeV2(options: IAuthVerificationAuthenticationRequestEntity): void;
731
+ /**
732
+ * authenticate totp v2
733
+ * @param options
734
+ */
735
+ authenticateTOTPV2(options: IAuthVerificationAuthenticationRequestEntity): void;
736
+ /**
737
+ * authenticateVerification form type (for face)
738
+ * @param options
739
+ * @returns
740
+ */
741
+ authenticateFaceVerification(options: FaceVerificationAuthenticationRequestEntity): Promise<unknown>;
742
+ /**
743
+ * @deprecated
744
+ * setup verification - v1
745
+ * @param options
746
+ * @param access_token
747
+ * @param verificationType
748
+ * @returns
749
+ */
750
+ setupVerificationV1(options: any, access_token: string, verificationType: string): Promise<unknown>;
751
+ /**
752
+ * @deprecated
753
+ * setup email - v1
754
+ * @param options
755
+ * @param access_token
756
+ */
757
+ setupEmail(options: any, access_token: string): void;
758
+ /**
759
+ * @deprecated
760
+ * setup sms - v1
761
+ * @param options
762
+ * @param access_token
763
+ */
764
+ setupSMS(options: any, access_token: string): void;
765
+ /**
766
+ * @deprecated
767
+ * setup ivr - v1
768
+ * @param options
769
+ * @param access_token
770
+ */
771
+ setupIVR(options: any, access_token: string): void;
772
+ /**
773
+ * @deprecated
774
+ * setup backupcode - v1
775
+ * @param options
776
+ * @param access_token
777
+ */
778
+ setupBackupcode(options: any, access_token: string): void;
779
+ /**
780
+ * @deprecated
781
+ * setup totp - v1
782
+ * @param options
783
+ * @param access_token
784
+ */
785
+ setupTOTP(options: any, access_token: string): void;
786
+ /**
787
+ * @deprecated
788
+ * setup pattern - v1
789
+ * @param options
790
+ * @param access_token
791
+ */
792
+ setupPattern(options: any, access_token: string): void;
793
+ /**
794
+ * @deprecated
795
+ * setup touch - v1
796
+ * @param options
797
+ * @param access_token
798
+ */
799
+ setupTouchId(options: any, access_token: string): void;
800
+ /**
801
+ * @deprecated
802
+ * setup smart push - v1
803
+ * @param options
804
+ * @param access_token
805
+ */
806
+ setupSmartPush(options: any, access_token: string): void;
807
+ /**
808
+ * @deprecated
809
+ * setup face - v1
810
+ * @param options
811
+ * @param access_token
812
+ */
813
+ setupFace(options: any, access_token: string): void;
814
+ /**
815
+ * @deprecated
816
+ * setup voice - v1
817
+ * @param options
818
+ * @param access_token
819
+ */
820
+ setupVoice(options: any, access_token: string): void;
821
+ /**
822
+ * @deprecated
823
+ * enroll verification - v1
824
+ * @param options
825
+ * @param access_token
826
+ * @param verificationType
827
+ * @returns
828
+ */
829
+ enrollVerificationV1(options: any, access_token: string, verificationType: string): Promise<unknown>;
830
+ /**
831
+ * @deprecated
832
+ * enroll email - v1
833
+ * @param options
834
+ * @param access_token
835
+ */
836
+ enrollEmail(options: any, access_token: string): void;
837
+ /**
838
+ * @deprecated
839
+ * enroll SMS - v1
840
+ * @param options
841
+ * @param access_token
842
+ */
843
+ enrollSMS(options: any, access_token: string): void;
844
+ /**
845
+ * @deprecated
846
+ * enroll IVR - v1
847
+ * @param options
848
+ * @param access_token
849
+ */
850
+ enrollIVR(options: any, access_token: string): void;
851
+ /**
852
+ * @deprecated
853
+ * enroll TOTP - v1
854
+ * @param options
855
+ * @param access_token
856
+ */
857
+ enrollTOTP(options: any, access_token: string): void;
858
+ /**
859
+ * @deprecated
860
+ * authenticate mfa - v1
861
+ * @param verificationType
862
+ * @returns
863
+ */
864
+ authenticateMfaV1(options: any, verificationType: string): Promise<unknown>;
865
+ /**
866
+ * @deprecated
867
+ * authenticate email - v1
868
+ * @param options
869
+ */
870
+ authenticateEmail(options: any): void;
871
+ /**
872
+ * @deprecated
873
+ * authenticate sms - v1
874
+ * @param options
875
+ */
876
+ authenticateSMS(options: any): void;
877
+ /**
878
+ * @deprecated
879
+ * authenticate ivr - v1
880
+ * @param options
881
+ */
882
+ authenticateIVR(options: any): void;
883
+ /**
884
+ * @deprecated
885
+ * authenticate backupcode - v1
886
+ * @param options
887
+ */
888
+ authenticateBackupcode(options: any): void;
889
+ /**
890
+ * @deprecated
891
+ * authenticate totp - v1
892
+ * @param options
893
+ */
894
+ authenticateTOTP(options: any): void;
895
+ }