cidaas-javascript-sdk 3.1.3 → 3.1.5

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