cidaas-javascript-sdk 3.1.4 → 4.0.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.
@@ -1,15 +1,19 @@
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";
1
+ import { SigninState, UserManagerSettings } from "oidc-client-ts";
2
+ import { AccessTokenRequest, TokenIntrospectionEntity, UserEntity, ResetPasswordEntity, IConfiguredListRequestEntity, IInitVerificationAuthenticationRequestEntity, FindUserEntity, IUserEntity, IEnrollVerificationSetupRequestEntity, IUserLinkEntity, ChangePasswordEntity, IConsentAcceptEntity, IAuthVerificationAuthenticationRequestEntity, LoginFormRequestEntity, AccountVerificationRequestEntity, ValidateResetPasswordEntity, AcceptResetPasswordEntity, PhysicalVerificationLoginRequest, IChangePasswordEntity, IUserActivityPayloadEntity } from "./Entities";
2
3
  export declare class WebAuth {
3
- constructor(settings: ICidaasSDKSettings);
4
- /**
5
- * @param string
6
- * @returns
7
- */
8
- private base64URL;
4
+ constructor(settings: UserManagerSettings);
9
5
  /**
10
6
  * login
11
7
  */
12
8
  loginWithBrowser(): void;
9
+ /**
10
+ * popupSignIn
11
+ */
12
+ popupSignIn(): void;
13
+ /**
14
+ * silentSignIn
15
+ */
16
+ silentSignIn(): Promise<unknown>;
13
17
  /**
14
18
  * register
15
19
  */
@@ -20,114 +24,185 @@ export declare class WebAuth {
20
24
  */
21
25
  loginCallback(): Promise<unknown>;
22
26
  /**
23
- * get user info
27
+ * popup signin callback
24
28
  * @returns
25
29
  */
30
+ popupSignInCallback(): Promise<unknown>;
31
+ /**
32
+ * silent signin callback
33
+ * @returns
34
+ */
35
+ silentSignInCallback(): Promise<unknown>;
36
+ /**
37
+ * To get the user profile information by using oidc-client-ts library, call **getUserInfo()**. This will return the basic user profile details along with groups, roles and whatever scopes you mentioned in the options.
38
+ * @example
39
+ * ```js
40
+ * cidaas.getUserInfo().then(function (response) {
41
+ * // the response will give you profile details.
42
+ * }).catch(function(ex) {
43
+ * // your failure code here
44
+ * });;
45
+ * ```
46
+ */
26
47
  getUserInfo(): Promise<any>;
27
48
  /**
28
- * logout
49
+ * logout by using oidc-client-ts library
29
50
  * @returns
30
51
  */
31
52
  logout(): Promise<unknown>;
53
+ /**
54
+ * popup signout
55
+ * @returns
56
+ */
57
+ popupSignOut(): Promise<unknown>;
32
58
  /**
33
59
  * logout callback
34
60
  * @returns
35
61
  */
36
62
  logoutCallback(): Promise<unknown>;
37
63
  /**
38
- * get login url
64
+ * popup signout callback
39
65
  * @returns
40
66
  */
41
- getLoginURL(): string;
67
+ popupSignOutCallback(): Promise<unknown>;
42
68
  /**
43
- * get request id
44
- * @returns
69
+ * To get the generated login url, call **getLoginURL()**. This will call authz service and generate login url to be used.
70
+ * @example
71
+ * ```js
72
+ * cidaas.getLoginURL().then(function (response) {
73
+ * // the response will give you login url.
74
+ * }).catch(function(ex) {
75
+ * // your failure code here
76
+ * });;
77
+ * ```
45
78
  */
46
- getRequestId(): Promise<unknown>;
79
+ getLoginURL(state?: SigninState): Promise<unknown>;
47
80
  /**
48
- * get missing fields
49
- * @param options
50
- * @returns
81
+ * Each and every proccesses starts with requestId, it is an entry point to login or register. For getting the requestId, call **getRequestId()**.
82
+ * @example
83
+ * ```js
84
+ * cidaas.getRequestId().then(function (response) {
85
+ * // the response will give you request id.
86
+ * }).catch(function(ex) {
87
+ * // your failure code here
88
+ * });;
89
+ * ```
51
90
  */
52
- getMissingFields(options: {
53
- requestId: string;
54
- trackId: string;
55
- }): Promise<unknown>;
91
+ getRequestId(): Promise<unknown>;
56
92
  /**
57
- * get Tenant info
58
- * @returns
93
+ * To get the tenant basic information, call **getTenantInfo()**. This will return the basic tenant details such as tenant name and allowed login with types (Email, Mobile, Username).
94
+ * @example
95
+ * ```js
96
+ * cidaas.getTenantInfo().then(function (response) {
97
+ * // the response will give you tenant details
98
+ * }).catch(function(ex) {
99
+ * // your failure code here
100
+ * });;
101
+ * ```
59
102
  */
60
103
  getTenantInfo(): Promise<unknown>;
61
104
  /**
62
- * logout api call
63
- * @param options
105
+ * To logout the user by using cidaas internal api, call **logoutUser()**.
106
+ * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/3b5ce6a54bf29-logout for more details.
107
+ * @example
108
+ * ```js
109
+ * cidaas.logoutUser({
110
+ * access_token : 'your accessToken'
111
+ * });
112
+ * ```
64
113
  */
65
114
  logoutUser(options: {
66
115
  access_token: string;
67
116
  }): void;
68
117
  /**
69
- * get Client Info
70
- * @param options
71
- * @returns
118
+ * To get the client basic information, call **getClientInfo()**. This will return the basic client details such as client name and its details.
119
+ * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/dc8a6cfb28abb-public-page-information for more details.
120
+ * @example
121
+ * ```js
122
+ * cidaas.getClientInfo({
123
+ * requestId: 'your requestId',
124
+ * }).then(function (resp) {
125
+ * // the response will give you client info.
126
+ * }).catch(function(ex) {
127
+ * // your failure code here
128
+ * });
129
+ * ```
72
130
  */
73
131
  getClientInfo(options: {
74
132
  requestId: string;
75
133
  }): Promise<unknown>;
76
134
  /**
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
135
+ * To get all devices information associated to the client, call **getDevicesInfo()**
136
+ * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/2a2feed70303c-get-device-by-user for more details.
137
+ * @example
138
+ * ```js
139
+ * const options = {};
140
+ * const accessToken = 'your access token';
141
+ * cidaas.getDevicesInfo(options, accessToken).then(function (resp) {
142
+ * // the response will give you devices informations.
143
+ * }).catch(function(ex) {
144
+ * // your failure code here
145
+ * });
146
+ * ```
147
+ */
148
+ getDevicesInfo(options: any, accessToken: string): Promise<unknown>;
149
+ /**
150
+ * To delete device associated to the client, call **deleteDevice()**
151
+ * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/3d44ad903d6e8-logout-the-user-for-a-device for more details.
152
+ * @example
153
+ * ```js
154
+ * const options = {
155
+ * device_id: 'id of device associated to the client.' // call **getDevicesInfo()** to get List of device ids and its details.
156
+ * };
157
+ * const accessToken = 'your access token';
158
+ * cidaas.deleteDevice(options, accessToken).then(function (resp) {
159
+ * // your success code
160
+ * }).catch(function(ex) {
161
+ * // your failure code
162
+ * });
163
+ * ```
86
164
  */
87
165
  deleteDevice(options: {
88
166
  device_id: string;
89
167
  userAgent?: string;
90
- }): Promise<unknown>;
91
- /**
92
- * get Registration setup
93
- * @param options
94
- * @returns
168
+ }, accessToken: string): Promise<unknown>;
169
+ /**
170
+ * To handle registration, first you need the registration fields. To get the registration fields, call **getRegistrationSetup()**. This will return the fields that has to be needed while registration.
171
+ * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/4eae72956f65a-registration-field-setup for more details.
172
+ * @example
173
+ * ```js
174
+ * cidaas.getRegistrationSetup({
175
+ * requestId: 'your requestId',
176
+ * acceptlanguage: 'your locale' // optional example: de-de, en-US
177
+ * }).then(function (resp) {
178
+ * // the response will give you fields that are required.
179
+ * }).catch(function(ex) {
180
+ * // your failure code here
181
+ * });
182
+ * ```
95
183
  */
96
184
  getRegistrationSetup(options: {
97
- acceptlanguage: string;
185
+ acceptlanguage?: string;
98
186
  requestId: string;
99
187
  }): Promise<unknown>;
100
188
  /**
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
189
+ * to generate device info, call **createDeviceInfo()**.
190
+ * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/9b5a892afaf0b-create-device-info for more details.
191
+ * @example
192
+ * ```js
193
+ * cidaas.createDeviceInfo().then(function (resp) {
194
+ * // your success code
195
+ * }).catch(function(ex) {
196
+ * // your failure code
197
+ * });
198
+ * ```
112
199
  */
113
- getReviewedDevices(access_token: string, sub: string): Promise<unknown>;
200
+ createDeviceInfo(): Promise<unknown>;
114
201
  /**
115
- * review device
202
+ * get the user profile information
116
203
  * @param options
117
- * @param access_token
118
- * @returns
119
- */
120
- reviewDevice(options: UpdateReviewDeviceEntity, access_token: string): Promise<unknown>;
121
- /**
122
- * get device info
123
204
  * @returns
124
205
  */
125
- getDeviceInfo(): Promise<unknown>;
126
- /**
127
- * get user info
128
- * @param options
129
- * @returns
130
- */
131
206
  getUserProfile(options: {
132
207
  access_token: string;
133
208
  }): Promise<unknown>;
@@ -154,12 +229,6 @@ export declare class WebAuth {
154
229
  * @param options
155
230
  */
156
231
  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
232
  /**
164
233
  * login with social
165
234
  * @param options
@@ -212,6 +281,7 @@ export declare class WebAuth {
212
281
  */
213
282
  getCommunicationStatus(options: {
214
283
  sub: string;
284
+ }, headers: {
215
285
  requestId: string;
216
286
  }): Promise<unknown>;
217
287
  /**
@@ -220,12 +290,6 @@ export declare class WebAuth {
220
290
  * @returns
221
291
  */
222
292
  initiateAccountVerification(options: AccountVerificationRequestEntity): void;
223
- /**
224
- * initiate verification and return response
225
- * @param options
226
- * @returns
227
- */
228
- initiateAccountVerificationAsynFn(options: AccountVerificationRequestEntity): Promise<Response>;
229
293
  /**
230
294
  * verify account
231
295
  * @param options
@@ -252,17 +316,17 @@ export declare class WebAuth {
252
316
  */
253
317
  resetPassword(options: AcceptResetPasswordEntity): Promise<unknown>;
254
318
  /**
255
- * get mfa list v2
319
+ * get mfa list
256
320
  * @param options
257
321
  * @returns
258
322
  */
259
- getMFAListV2(options: IConfiguredListRequestEntity): Promise<unknown>;
323
+ getMFAList(options: IConfiguredListRequestEntity): Promise<unknown>;
260
324
  /**
261
- * cancel mfa v2
325
+ * cancel mfa
262
326
  * @param options
263
327
  * @returns
264
328
  */
265
- cancelMFAV2(options: {
329
+ cancelMFA(options: {
266
330
  exchange_id: string;
267
331
  reason: string;
268
332
  type: string;
@@ -277,23 +341,23 @@ export declare class WebAuth {
277
341
  * @param options
278
342
  * @returns
279
343
  */
280
- getConsentDetailsV2(options: {
344
+ getConsentDetails(options: {
281
345
  consent_id: string;
282
346
  consent_version_id: string;
283
347
  sub: string;
284
348
  }): Promise<unknown>;
285
349
  /**
286
- * accept consent v2
350
+ * accept consent
287
351
  * @param options
288
352
  * @returns
289
353
  */
290
- acceptConsentV2(options: IConsentAcceptEntity): Promise<unknown>;
354
+ acceptConsent(options: IConsentAcceptEntity): Promise<unknown>;
291
355
  /**
292
356
  * get scope consent details
293
357
  * @param options
294
358
  * @returns
295
359
  */
296
- getScopeConsentDetails(options: {
360
+ loginPrecheck(options: {
297
361
  track_id: string;
298
362
  locale: string;
299
363
  }): Promise<unknown>;
@@ -302,8 +366,8 @@ export declare class WebAuth {
302
366
  * @param options
303
367
  * @returns
304
368
  */
305
- getScopeConsentVersionDetailsV2(options: {
306
- scopeid: string;
369
+ getConsentVersionDetails(options: {
370
+ consentid: string;
307
371
  locale: string;
308
372
  access_token: string;
309
373
  }): Promise<unknown>;
@@ -317,13 +381,6 @@ export declare class WebAuth {
317
381
  sub: string;
318
382
  scopes: string[];
319
383
  }): Promise<unknown>;
320
- /**
321
- * scope consent continue login
322
- * @param options
323
- */
324
- scopeConsentContinue(options: {
325
- track_id: string;
326
- }): void;
327
384
  /**
328
385
  * accept claim Consent
329
386
  * @param options
@@ -334,13 +391,6 @@ export declare class WebAuth {
334
391
  sub: string;
335
392
  accepted_claims: string[];
336
393
  }): Promise<unknown>;
337
- /**
338
- * claim consent continue login
339
- * @param options
340
- */
341
- claimConsentContinue(options: {
342
- track_id: string;
343
- }): void;
344
394
  /**
345
395
  * revoke claim Consent
346
396
  * @param options
@@ -417,12 +467,26 @@ export declare class WebAuth {
417
467
  */
418
468
  updateProfile(options: UserEntity, access_token: string, sub: string): Promise<unknown>;
419
469
  /**
420
- * get user activities
421
- * @param options
422
- * @param access_token
423
- * @returns
424
- */
425
- getUserActivities(options: UserActivityEntity, access_token: string): Promise<unknown>;
470
+ * To get user activities, call **getUserActivities()**.
471
+ * Please refer to the api document https://docs.cidaas.com/docs/cidaas-iam/346141453781e-get-user-activities for more details.
472
+ * @example
473
+ * ```js
474
+ * const options = {
475
+ * sub: 'your sub',
476
+ * dateFilter: {
477
+ * from_date: 'date in UTC format',
478
+ * to:date: 'date in UTC format'
479
+ * }
480
+ * };
481
+ * const accessToken = 'your access token';
482
+ * cidaas.getUserActivities(options, accessToken).then(function (resp) {
483
+ * // your success code
484
+ * }).catch(function(ex) {
485
+ * // your failure code
486
+ * });
487
+ * ```
488
+ */
489
+ getUserActivities(options: IUserActivityPayloadEntity, accessToken: string): Promise<unknown>;
426
490
  /**
427
491
  * @param access_token
428
492
  * @returns
@@ -460,45 +524,54 @@ export declare class WebAuth {
460
524
  */
461
525
  unlinkAccount(access_token: string, identityId: string): Promise<unknown>;
462
526
  /**
463
- * image upload
464
- * @param options
465
- * @param access_token
466
- * @returns
467
- */
527
+ * To change profile image, call **updateProfileImage()**.
528
+ * @example
529
+ * ```js
530
+ * const options = {
531
+ * image_key: 'id for your image e.g. user sub',
532
+ * photo: yourImageFile,
533
+ * filename: 'name of your image file'
534
+ * };
535
+ * const accessToken = 'your access token';
536
+ * cidaas.updateProfileImage(options, accessToken).then(function (resp) {
537
+ * // your success code
538
+ * }).catch(function(ex) {
539
+ * // your failure code
540
+ * });
541
+ * ```
542
+ */
468
543
  updateProfileImage(options: {
469
544
  image_key: string;
545
+ photo: any;
546
+ filename: string;
470
547
  }, 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
548
  /**
479
549
  * enrollVerification
480
550
  * @param options
481
551
  * @returns
482
552
  */
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>;
553
+ initiateEnrollment(options: {
554
+ verification_type: string;
555
+ deviceInfo?: {
556
+ deviceId: string;
557
+ location: {
558
+ lat: string;
559
+ lon: string;
560
+ };
561
+ };
562
+ }, accessToken: string): Promise<unknown>;
490
563
  /**
491
564
  * update the status of notification
492
565
  * @param status_id
493
566
  * @returns
494
567
  */
495
- updateStatus(status_id: string): Promise<unknown>;
568
+ getEnrollmentStatus(status_id: string, accessToken: string): Promise<unknown>;
496
569
  /**
497
- * setupFidoVerification
570
+ * enrollVerification
498
571
  * @param options
499
572
  * @returns
500
573
  */
501
- setupFidoVerification(options: FidoSetupEntity): Promise<unknown>;
574
+ enrollVerification(options: IEnrollVerificationSetupRequestEntity): Promise<unknown>;
502
575
  /**
503
576
  * checkVerificationTypeConfigured
504
577
  * @param options
@@ -515,11 +588,11 @@ export declare class WebAuth {
515
588
  sub: string;
516
589
  }): Promise<unknown>;
517
590
  /**
518
- * getMissingFieldsLogin
591
+ * getMissingFields
519
592
  * @param trackId
520
593
  * @returns
521
594
  */
522
- getMissingFieldsLogin(trackId: string): Promise<unknown>;
595
+ getMissingFields(trackId: string): Promise<unknown>;
523
596
  /**
524
597
  * progressiveRegistration
525
598
  * @param options
@@ -532,15 +605,9 @@ export declare class WebAuth {
532
605
  acceptlanguage: string;
533
606
  }): Promise<unknown>;
534
607
  /**
535
- * loginAfterRegister
536
- * @param options
608
+ * device code flow - initiate
537
609
  */
538
- loginAfterRegister(options: {
539
- device_id: string;
540
- dc?: string;
541
- rememberMe: boolean;
542
- trackId: string;
543
- }): void;
610
+ initiateDeviceCode(clientId?: string): Promise<unknown>;
544
611
  /**
545
612
  * device code flow - verify
546
613
  * @param code
@@ -558,325 +625,23 @@ export declare class WebAuth {
558
625
  */
559
626
  setAcceptLanguageHeader(acceptLanguage: string): void;
560
627
  /**
561
- * initiate mfa v2
628
+ * initiate mfa
562
629
  * @param options
563
630
  * @returns
564
631
  */
565
- initiateMFAV2(options: IInitVerificationAuthenticationRequestEntity): Promise<unknown>;
632
+ initiateMFA(options: IInitVerificationAuthenticationRequestEntity, accessToken: string): Promise<unknown>;
566
633
  /**
567
- * initiateVerification
634
+ * authenticate mfa
568
635
  * @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
636
  * @returns
626
637
  */
627
- initiateMfaV1(options: any, verificationType: string): Promise<unknown>;
628
- /**
629
- * @deprecated
630
- * initiate email - v1
631
- * @param options
632
- */
633
- initiateEmail(options: any): void;
638
+ authenticateMFA(options: IAuthVerificationAuthenticationRequestEntity): Promise<unknown>;
634
639
  /**
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
640
+ * offline token check
880
641
  */
881
- authenticateBackupcode(options: any): void;
642
+ offlineTokenCheck(accessToken: string): {
643
+ isExpiryDateValid: boolean;
644
+ isScopesValid: boolean;
645
+ isIssuerValid: boolean;
646
+ };
882
647
  }