cidaas-javascript-sdk 2.0.5 → 2.0.9

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/README.md CHANGED
@@ -16,9 +16,9 @@ This cidaas Javascript SDK library is built on the top of [OIDC client javascrip
16
16
  From CDN
17
17
 
18
18
  ```html
19
- <!-- Release version 2.0.4 -->
19
+ <!-- Release version 2.0.9 -->
20
20
  <!-- Minified version -->
21
- <script src="https://cdn.cidaas.de/javascript/oidc/2.0.5/cidaas-javascript-sdk.min.js"></script>
21
+ <script src="https://cdn.cidaas.de/javascript/oidc/2.0.9/cidaas-javascript-sdk.min.js"></script>
22
22
  ```
23
23
 
24
24
  From npm
@@ -758,7 +758,46 @@ cidaas.logoutUser({
758
758
  access_token : 'your accessToken'
759
759
  });
760
760
  ```
761
+ #### Delete User Account
761
762
 
763
+ To delete the user account directly in the application, call **deleteUserAccount()**. This method will delete the user account with **requestId** as the **query parameter**.
764
+
765
+ This method takes an object as input.
766
+
767
+ ##### Sample code
768
+
769
+ ```js
770
+ options = {
771
+ sub: "7e4f79a9-cfbc-456d-936a-e6bc1de2d4b9",
772
+ requestId: "7d86460b-8288-4341-aed1- 10dd27a4565c",
773
+ accept-language: "en"
774
+ }
775
+ ```
776
+
777
+ The usage of the method is as follows.
778
+
779
+ ```js
780
+ cidaas.deleteUserAccount(options).then(function (response) {
781
+
782
+ // your success code here
783
+
784
+ }).catch(function(ex) {
785
+
786
+ // your failure code here
787
+
788
+ });
789
+ ```
790
+ #### Response
791
+
792
+ ```js
793
+ {
794
+ "success": true,
795
+ "status": 200,
796
+ "data": {
797
+ "result": true
798
+ }
799
+ }
800
+ ```
762
801
  #### Physical Verification
763
802
 
764
803
  After successful login, we can add multifactor authentications.
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "cidaas-javascript-sdk",
3
- "version": "2.0.5",
3
+ "version": "2.0.9",
4
4
  "author": "cidaas by Widas ID GmbH",
5
5
  "description": "Cidaas native javascript sdk",
6
6
  "license": "MIT",
7
7
  "main": "src/main/index.js",
8
+ "types": "types/main/index.d.ts",
8
9
  "engine": {
9
10
  "node": ">=8.9.10"
10
11
  },
11
12
  "scripts": {
12
13
  "dev": "webpack --config webpack.dev.js",
13
- "build": "webpack --config webpack.prod.js",
14
+ "build": "npm run build-types && webpack --config webpack.prod.js",
14
15
  "test": "jest --coverage",
15
- "test:coverage": "jest --coverage"
16
+ "test:coverage": "jest --coverage",
17
+ "build-types": "npx -p typescript tsc src/**/*.js --declaration --allowJs --emitDeclarationOnly --outDir types"
16
18
  },
17
19
  "dependencies": {
18
20
  "crypto-js": "^3.1.9-1",
@@ -22,6 +24,7 @@
22
24
  "compression-webpack-plugin": "^7.1.2",
23
25
  "jest": "26.6.3",
24
26
  "terser-webpack-plugin": "^5.1.1",
27
+ "typescript": "^4.5.4",
25
28
  "webpack": "^5.27.2",
26
29
  "webpack-cli": "^4.5.0",
27
30
  "webpack-dev-server": "^3.11.2",
@@ -4,186 +4,210 @@ function Authentication() {
4
4
  }
5
5
 
6
6
  // redirect sign in
7
- Authentication.prototype.redirectSignIn = function (view_type) {
8
- try {
9
- if (window.usermanager) {
7
+ Authentication.prototype.redirectSignIn = function(view_type) {
8
+ try {
9
+ if (window.usermanager) {
10
10
 
11
- if (window.webAuthSettings) {
12
- if (!window.webAuthSettings.extraQueryParams) {
13
- window.webAuthSettings.extraQueryParams = {};
14
- }
15
- window.webAuthSettings.extraQueryParams.view_type = view_type;
16
- if (window.webAuthSettings.scope) {
17
- if (window.webAuthSettings.response_type.indexOf("id_token") == -1 && window.webAuthSettings.scope.indexOf("openid") != -1 && !window.webAuthSettings.extraQueryParams.nonce) {
18
- window.webAuthSettings.extraQueryParams.nonce = new Date().getTime().toString();
19
- }
11
+ if (window.webAuthSettings) {
12
+ if (!window.webAuthSettings.extraQueryParams) {
13
+ window.webAuthSettings.extraQueryParams = {};
14
+ }
15
+ window.webAuthSettings.extraQueryParams.view_type = view_type;
16
+ if (window.webAuthSettings.scope) {
17
+ if (window.webAuthSettings.response_type.indexOf("id_token") == -1 && window.webAuthSettings.scope.indexOf("openid") != -1 && !window.webAuthSettings.extraQueryParams.nonce) {
18
+ window.webAuthSettings.extraQueryParams.nonce = new Date().getTime().toString();
19
+ }
20
+ }
21
+ } else {
22
+ window.webAuthSettings = {};
23
+ }
24
+ window.usermanager.signinRedirect({
25
+ extraQueryParams: window.webAuthSettings.extraQueryParams,
26
+ data: window.webAuthSettings
27
+ }).then(function() {
28
+ console.log("Redirect logged in using cidaas sdk");
29
+ });
30
+ } else {
31
+ throw "user manager is nil";
20
32
  }
21
- } else {
22
- window.webAuthSettings = {};
23
- }
24
- window.usermanager.signinRedirect({
25
- extraQueryParams: window.webAuthSettings.extraQueryParams,
26
- data: window.webAuthSettings
27
- }).then(function () {
28
- console.log("Redirect logged in using cidaas sdk");
29
- });
30
- } else {
31
- throw "user manager is nil";
33
+ } catch (ex) {
34
+ console.log("user manager instance is empty : " + ex);
32
35
  }
33
- } catch (ex) {
34
- console.log("user manager instance is empty : " + ex);
35
- }
36
36
  };
37
37
 
38
38
  // redirect sign in callback
39
- Authentication.prototype.redirectSignInCallback = function () {
40
- return new Promise(function (resolve, reject) {
41
- try {
42
- if (window.usermanager) {
43
- window.usermanager.signinRedirectCallback({
44
- data: window.webAuthSettings
45
- }).then(function (user) {
46
- if (user) {
47
- resolve(user);
48
- return;
49
- }
50
- resolve(undefined);
51
- });
52
- } else {
53
- throw "user manager is nil";
54
- }
55
- } catch (ex) {
56
- reject(ex);
57
- }
58
- });
39
+ Authentication.prototype.redirectSignInCallback = function() {
40
+ return new Promise(function(resolve, reject) {
41
+ try {
42
+ if (window.usermanager) {
43
+ window.usermanager.signinRedirectCallback({
44
+ data: window.webAuthSettings
45
+ }).then(function(user) {
46
+ if (user) {
47
+ resolve(user);
48
+ return;
49
+ }
50
+ resolve(undefined);
51
+ });
52
+ } else {
53
+ throw "user manager is nil";
54
+ }
55
+ } catch (ex) {
56
+ reject(ex);
57
+ }
58
+ });
59
59
  };
60
60
 
61
61
  // redirect sign out
62
- Authentication.prototype.redirectSignOut = function () {
63
- return new Promise(function (resolve, reject) {
64
- try {
65
- if (window.usermanager && window.webAuthSettings) {
66
- window.usermanager.signoutRedirect({
67
- state: window.webAuthSettings
68
- }).then(function (resp) {
69
- console.log('signed out', resp);
70
- window.authentication.redirectSignOutCallback().then(function (resp) {
71
- resolve(resp);
72
- });
73
- });
74
- } else {
75
- throw "user manager or settings is nil";
76
- }
77
- } catch (ex) {
78
- reject(ex);
79
- }
80
- });
62
+ Authentication.prototype.redirectSignOut = function() {
63
+ return new Promise(function(resolve, reject) {
64
+ try {
65
+ if (window.usermanager && window.webAuthSettings) {
66
+ window.usermanager.signoutRedirect({
67
+ state: window.webAuthSettings
68
+ }).then(function(resp) {
69
+ console.log('signed out', resp);
70
+ window.authentication.redirectSignOutCallback().then(function(resp) {
71
+ resolve(resp);
72
+ });
73
+ });
74
+ } else {
75
+ throw "user manager or settings is nil";
76
+ }
77
+ } catch (ex) {
78
+ reject(ex);
79
+ }
80
+ });
81
81
  };
82
82
 
83
83
  // redirect sign out callback
84
- Authentication.prototype.redirectSignOutCallback = function () {
85
- return new Promise(function (resolve, reject) {
86
- try {
87
- if (window.usermanager) {
88
- window.usermanager.signoutRedirectCallback().then(function (resp) {
89
- console.log("Signed out");
90
- resolve(resp);
91
- });
92
- } else {
93
- resolve(undefined);
94
- throw "user manager is nil";
95
- }
96
- } catch (ex) {}
97
- });
84
+ Authentication.prototype.redirectSignOutCallback = function() {
85
+ return new Promise(function(resolve, reject) {
86
+ try {
87
+ if (window.usermanager) {
88
+ window.usermanager.signoutRedirectCallback().then(function(resp) {
89
+ console.log("Signed out");
90
+ resolve(resp);
91
+ });
92
+ } else {
93
+ resolve(undefined);
94
+ throw "user manager is nil";
95
+ }
96
+ } catch (ex) {}
97
+ });
98
98
  };
99
99
 
100
100
  // pop up sign in
101
- Authentication.prototype.popupSignIn = function () {
102
- try {
103
- if (window.usermanager && window.webAuthSettings) {
104
- window.usermanager.signinPopup({
105
- data: window.webAuthSettings
106
- }).then(function () {
107
- console.log("signed in");
108
- // window.location = "/";
109
- });
110
- } else {
111
- throw "user manager or settings is nil";
112
- }
113
- } catch (ex) {}
101
+ Authentication.prototype.popupSignIn = function() {
102
+ try {
103
+ if (window.usermanager && window.webAuthSettings) {
104
+ window.usermanager.signinPopup({
105
+ data: window.webAuthSettings
106
+ }).then(function() {
107
+ console.log("signed in");
108
+ // window.location = "/";
109
+ });
110
+ } else {
111
+ throw "user manager or settings is nil";
112
+ }
113
+ } catch (ex) {}
114
114
  };
115
115
 
116
116
  // pop up sign in callback
117
- Authentication.prototype.popupSignInCallback = function () {
118
- try {
119
- if (window.usermanager) {
120
- window.usermanager.signinPopupCallback();
121
- }
122
- } catch (ex) {}
117
+ Authentication.prototype.popupSignInCallback = function() {
118
+ try {
119
+ if (window.usermanager) {
120
+ window.usermanager.signinPopupCallback();
121
+ }
122
+ } catch (ex) {}
123
123
  };
124
124
 
125
125
  // pop up sign out
126
- Authentication.prototype.popupSignOut = function () {
127
- try {
128
- if (window.usermanager && window.webAuthSettings) {
129
- window.usermanager.signoutPopup({
130
- state: window.webAuthSettings
131
- }).then(function (resp) {
132
- console.log('signed out', resp);
133
- });
134
- } else {
135
- throw "user manager or settings is nil";
136
- }
137
- } catch (ex) {}
126
+ Authentication.prototype.popupSignOut = function() {
127
+ try {
128
+ if (window.usermanager && window.webAuthSettings) {
129
+ window.usermanager.signoutPopup({
130
+ state: window.webAuthSettings
131
+ }).then(function(resp) {
132
+ console.log('signed out', resp);
133
+ });
134
+ } else {
135
+ throw "user manager or settings is nil";
136
+ }
137
+ } catch (ex) {}
138
138
 
139
139
  };
140
140
 
141
141
  // pop up sign out callback
142
- Authentication.prototype.popupSignOutCallback = function () {
143
- try {
144
- if (window.usermanager) {
145
- window.usermanager.signoutPopupCallback(true);
146
- } else {
147
- throw "user manager is nil";
148
- }
149
- } catch (ex) {}
142
+ Authentication.prototype.popupSignOutCallback = function() {
143
+ try {
144
+ if (window.usermanager) {
145
+ window.usermanager.signoutPopupCallback(true);
146
+ } else {
147
+ throw "user manager is nil";
148
+ }
149
+ } catch (ex) {}
150
150
  };
151
151
 
152
152
  // silent sign in
153
- Authentication.prototype.silentSignIn = function () {
154
- try {
155
- if (window.usermanager && window.webAuthSettings) {
156
- window.usermanager.signinSilent({
157
- state: window.webAuthSettings
158
- }).then(function (user) {
159
- console.log("signed in : " + user.access_token);
160
- });
161
- } else {
162
- throw "user manager is nil";
163
- }
164
- } catch (ex) {}
153
+ Authentication.prototype.silentSignIn = function() {
154
+ try {
155
+ if (window.usermanager && window.webAuthSettings) {
156
+ window.usermanager.signinSilent({
157
+ state: window.webAuthSettings
158
+ }).then(function(user) {
159
+ console.log("signed in : " + user.access_token);
160
+ });
161
+ } else {
162
+ throw "user manager is nil";
163
+ }
164
+ } catch (ex) {}
165
165
  };
166
166
 
167
167
  // silent sign in callback
168
- Authentication.prototype.silentSignInCallback = function () {
169
- try {
170
- if (window.usermanager) {
171
- window.usermanager.signinSilentCallback();
172
- } else {
173
- throw "user manager is nil";
174
- }
175
- } catch (ex) {}
168
+ Authentication.prototype.silentSignInCallback = function() {
169
+ try {
170
+ if (window.usermanager) {
171
+ window.usermanager.signinSilentCallback();
172
+ } else {
173
+ throw "user manager is nil";
174
+ }
175
+ } catch (ex) {}
176
+ };
177
+
178
+ // silent sign in callback v2
179
+ Authentication.prototype.silentSignInCallbackV2 = function() {
180
+ return new Promise(function(resolve, reject) {
181
+ try {
182
+ if (window.usermanager) {
183
+ window.usermanager.signinSilentCallback({
184
+ data: window.webAuthSettings
185
+ }).then(function(user) {
186
+ if (user) {
187
+ resolve(user);
188
+ return;
189
+ }
190
+ resolve(undefined);
191
+ });
192
+ } else {
193
+ throw "user manager is nil";
194
+ }
195
+ } catch (ex) {
196
+ reject(ex);
197
+ }
198
+ });
199
+
176
200
  };
177
201
 
178
202
  // silent sign out callback
179
- Authentication.prototype.popupSignOutCallback = function () {
180
- try {
181
- if (window.usermanager) {
182
- window.usermanager.signoutPopupCallback(true);
183
- } else {
184
- throw "user manager is nil";
185
- }
186
- } catch (ex) {}
203
+ Authentication.prototype.popupSignOutCallback = function() {
204
+ try {
205
+ if (window.usermanager) {
206
+ window.usermanager.signoutPopupCallback(true);
207
+ } else {
208
+ throw "user manager is nil";
209
+ }
210
+ } catch (ex) {}
187
211
  };
188
212
 
189
213
  module.exports = Authentication;
@@ -83,7 +83,11 @@ WebAuth.prototype.loginCallback = function () {
83
83
  } else if (window.webAuthSettings.mode == 'window') {
84
84
  window.authentication.popupSignInCallback();
85
85
  } else if (window.webAuthSettings.mode == 'silent') {
86
- window.authentication.silentSignInCallback();
86
+ window.authentication.silentSignInCallbackV2().then(function(data){
87
+ resolve(data);
88
+ }).catch(function(error){
89
+ reject(error);
90
+ })
87
91
  }
88
92
  } catch (ex) {
89
93
  console.log(ex);
@@ -595,6 +599,10 @@ WebAuth.prototype.register = function (options, headers) {
595
599
  if (headers.bot_captcha_response) {
596
600
  http.setRequestHeader("bot_captcha_response", headers.bot_captcha_response);
597
601
  }
602
+ let trackId = headers.trackid || headers.trackId;
603
+ if (trackId) {
604
+ http.setRequestHeader("trackid", trackId);
605
+ }
598
606
  http.send(JSON.stringify(options));
599
607
  } catch (ex) {
600
608
  reject(ex);
@@ -1077,6 +1085,31 @@ WebAuth.prototype.getScopeConsentDetails = function (options) {
1077
1085
  });
1078
1086
  };
1079
1087
 
1088
+ // get scope consent version details
1089
+ WebAuth.prototype.getScopeConsentVersionDetailsV2 = function (options) {
1090
+ return new Promise(function (resolve, reject) {
1091
+ try {
1092
+ var http = new XMLHttpRequest();
1093
+ var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/v2/consent/versions/details/" + options.scopeid + "?locale=" + options.locale;
1094
+ http.onreadystatechange = function () {
1095
+ if (http.readyState == 4) {
1096
+ if (http.responseText) {
1097
+ resolve(JSON.parse(http.responseText));
1098
+ } else {
1099
+ resolve(false);
1100
+ }
1101
+ }
1102
+ };
1103
+ http.open("GET", _serviceURL, true);
1104
+ http.setRequestHeader("Content-type", "application/json");
1105
+ http.setRequestHeader("Authorization", "Bearer " + options.access_token);
1106
+ http.send();
1107
+ } catch (ex) {
1108
+ reject(ex);
1109
+ }
1110
+ });
1111
+ };
1112
+
1080
1113
  // accept scope Consent
1081
1114
  WebAuth.prototype.acceptScopeConsent = function (options) {
1082
1115
  var _serviceURL = window.webAuthSettings.authority + "/consent-management-srv/consent/scope/accept";
package/tsconfig.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ // Change this to match your project
3
+ "include": ["src/**/*"],
4
+ "compilerOptions": {
5
+ // Tells TypeScript to read JS files, as
6
+ // normally they are ignored as source files
7
+ "allowJs": true,
8
+ // Generate d.ts files
9
+ "declaration": true,
10
+ // This compiler run should
11
+ // only output d.ts files
12
+ "emitDeclarationOnly": true,
13
+ // Types should go into this directory.
14
+ // Removing this would place the .d.ts files
15
+ // next to the .js files
16
+ "outDir": "dist",
17
+ // go to js file when using IDE functions like
18
+ // "Go to Definition" in VSCode
19
+ "declarationMap": true
20
+ }
21
+ }
@@ -0,0 +1,15 @@
1
+ export = Authentication;
2
+ declare function Authentication(): void;
3
+ declare class Authentication {
4
+ redirectSignIn(view_type: any): void;
5
+ redirectSignInCallback(): Promise<any>;
6
+ redirectSignOut(): Promise<any>;
7
+ redirectSignOutCallback(): Promise<any>;
8
+ popupSignIn(): void;
9
+ popupSignInCallback(): void;
10
+ popupSignOut(): void;
11
+ popupSignOutCallback(): void;
12
+ silentSignIn(): void;
13
+ silentSignInCallback(): void;
14
+ silentSignInCallbackV2(): Promise<any>;
15
+ }
@@ -0,0 +1,5 @@
1
+ import WebAuth = require("./web-auth/webauth");
2
+ import CustomException = require("./web-auth/exception");
3
+ import Authentication = require("./authentication");
4
+ export declare const Version: any;
5
+ export { WebAuth, CustomException, Authentication };
@@ -0,0 +1,7 @@
1
+ export = CustomException;
2
+ declare function CustomException(errorMessage: any, statusCode: any): void;
3
+ declare class CustomException {
4
+ constructor(errorMessage: any, statusCode: any);
5
+ message: any;
6
+ status: any;
7
+ }
@@ -0,0 +1,130 @@
1
+ export = WebAuth;
2
+ declare function WebAuth(settings: any): void;
3
+ declare class WebAuth {
4
+ constructor(settings: any);
5
+ loginWithBrowser(): void;
6
+ registerWithBrowser(): void;
7
+ loginCallback(): Promise<any>;
8
+ getUserInfo(): Promise<any>;
9
+ getUserProfile(options: any): Promise<any>;
10
+ getProfileInfo(access_token: any): Promise<any>;
11
+ logout(): Promise<any>;
12
+ logoutCallback(): Promise<any>;
13
+ renewToken(options: any): Promise<any>;
14
+ generateCodeVerifier(): void;
15
+ generateRandomString(length: any): string;
16
+ generateCodeChallenge(code_verifier: any): any;
17
+ base64URL(string: any): any;
18
+ getLoginURL(): string;
19
+ getAccessToken(options: any): Promise<any>;
20
+ validateAccessToken(options: any): Promise<any>;
21
+ getRequestId(): Promise<any>;
22
+ loginWithCredentials(options: any): void;
23
+ loginWithSocial(options: any, queryParams: any): void;
24
+ registerWithSocial(options: any, queryParams: any): void;
25
+ getMissingFields(options: any): Promise<any>;
26
+ getTenantInfo(): Promise<any>;
27
+ logoutUser(options: any): void;
28
+ getClientInfo(options: any): Promise<any>;
29
+ getRegistrationSetup(options: any): Promise<any>;
30
+ register(options: any, headers: any): Promise<any>;
31
+ getInviteUserDetails(options: any): Promise<any>;
32
+ getCommunicationStatus(options: any): Promise<any>;
33
+ initiateAccountVerification(options: any): void;
34
+ verifyAccount(options: any): Promise<any>;
35
+ initiateResetPassword(options: any): Promise<any>;
36
+ handleResetPassword(options: any): void;
37
+ resetPassword(options: any): void;
38
+ getMFAList(options: any): Promise<any>;
39
+ getMFAListV2(options: any): Promise<any>;
40
+ initiateMFAV2(options: any): Promise<any>;
41
+ initiateEmail(options: any): Promise<any>;
42
+ initiateEmailV2(options: any): Promise<any>;
43
+ initiateSMS(options: any): Promise<any>;
44
+ initiateSMSV2(options: any): Promise<any>;
45
+ initiateIVR(options: any): Promise<any>;
46
+ initiateIVRV2(options: any): Promise<any>;
47
+ initiateBackupcode(options: any): Promise<any>;
48
+ initiateBackupcodeV2(options: any): Promise<any>;
49
+ initiateTOTP(options: any): Promise<any>;
50
+ initiateTOTPV2(options: any): Promise<any>;
51
+ initiatePattern(options: any): Promise<any>;
52
+ initiatePatternV2(options: any): Promise<any>;
53
+ initiateTouchId(options: any): Promise<any>;
54
+ initiateTouchIdV2(options: any): Promise<any>;
55
+ initiateSmartPush(options: any): Promise<any>;
56
+ initiateSmartPushV2(options: any): Promise<any>;
57
+ initiateFace(options: any): Promise<any>;
58
+ initiateFaceV2(options: any): Promise<any>;
59
+ initiateVoice(options: any): Promise<any>;
60
+ initiateVoiceV2(options: any): Promise<any>;
61
+ authenticateMFAV2(options: any): Promise<any>;
62
+ cancelMFAV2(options: any): Promise<any>;
63
+ authenticateEmail(options: any): Promise<any>;
64
+ authenticateEmailV2(options: any): Promise<any>;
65
+ authenticateSMS(options: any): Promise<any>;
66
+ authenticateSMSV2(options: any): Promise<any>;
67
+ authenticateIVR(options: any): Promise<any>;
68
+ authenticateIVRV2(options: any): Promise<any>;
69
+ authenticateBackupcode(options: any): Promise<any>;
70
+ authenticateBackupcodeV2(options: any): Promise<any>;
71
+ authenticateTOTP(options: any): Promise<any>;
72
+ authenticateTOTPV2(options: any): Promise<any>;
73
+ passwordlessLogin(options: any): void;
74
+ getConsentDetails(options: any): Promise<any>;
75
+ getConsentDetailsV2(options: any): Promise<any>;
76
+ acceptConsent(options: any): Promise<any>;
77
+ acceptConsentV2(options: any): Promise<any>;
78
+ getScopeConsentDetails(options: any): Promise<any>;
79
+ getScopeConsentVersionDetailsV2(options: any): Promise<any>;
80
+ acceptScopeConsent(options: any): Promise<any>;
81
+ scopeConsentContinue(options: any): void;
82
+ getDeduplicationDetails(options: any): Promise<any>;
83
+ deduplicationLogin(options: any): void;
84
+ registerDeduplication(options: any): Promise<any>;
85
+ consentContinue(options: any): void;
86
+ mfaContinue(options: any): void;
87
+ firstTimeChangePassword(options: any): void;
88
+ changePassword(options: any, access_token: any): Promise<any>;
89
+ updateProfile(options: any, access_token: any, sub: any): Promise<any>;
90
+ getUserActivities(options: any, access_token: any): Promise<any>;
91
+ getUnreviewedDevices(access_token: any, sub: any): Promise<any>;
92
+ getReviewedDevices(access_token: any, sub: any): Promise<any>;
93
+ reviewDevice(options: any, access_token: any, sub: any): Promise<any>;
94
+ getAcceptedConsentList(options: any, access_token: any): Promise<any>;
95
+ viewAcceptedConsent(options: any, access_token: any): Promise<any>;
96
+ getConfiguredVerificationList(options: any, access_token: any): Promise<any>;
97
+ initiateLinkAccount(options: any, access_token: any): Promise<any>;
98
+ completeLinkAccount(options: any, access_token: any): Promise<any>;
99
+ getLinkedUsers(access_token: any, sub: any): Promise<any>;
100
+ unlinkAccount(access_token: any, identityId: any): Promise<any>;
101
+ getAllVerificationList(access_token: any): Promise<any>;
102
+ updateProfileImage(options: any, access_token: any): Promise<any>;
103
+ setupEmail(options: any): Promise<any>;
104
+ setupSMS(options: any): Promise<any>;
105
+ setupIVR(options: any): Promise<any>;
106
+ setupBackupcode(options: any, access_token: any): Promise<any>;
107
+ setupTOTP(options: any, access_token: any): Promise<any>;
108
+ setupPattern(options: any, access_token: any): Promise<any>;
109
+ setupTouchId(options: any, access_token: any): Promise<any>;
110
+ setupSmartPush(options: any, access_token: any): Promise<any>;
111
+ setupFace(options: any, access_token: any): Promise<any>;
112
+ setupVoice(options: any, access_token: any): Promise<any>;
113
+ enrollEmail(options: any, access_token: any): Promise<any>;
114
+ enrollSMS(options: any, access_token: any): Promise<any>;
115
+ enrollIVR(options: any, access_token: any): Promise<any>;
116
+ enrollTOTP(options: any, access_token: any): Promise<any>;
117
+ updateSuggestMFA(track_id: any, options: any): Promise<any>;
118
+ enrollVerification(options: any): Promise<any>;
119
+ updateSocket(status_id: any): Promise<any>;
120
+ setupFidoVerification(options: any): Promise<any>;
121
+ checkVerificationTypeConfigured(options: any): Promise<any>;
122
+ authenticateVerification(options: any): Promise<any>;
123
+ authenticateFaceVerification(options: any): Promise<any>;
124
+ initiateVerification(options: any): Promise<any>;
125
+ deleteUserAccount(options: any): Promise<any>;
126
+ getMissingFieldsLogin(trackId: any): Promise<any>;
127
+ progressiveRegistration(options: any, headers: any): Promise<any>;
128
+ loginAfterRegister(options: any): void;
129
+ userCheckExists(options: any): Promise<any>;
130
+ }
@@ -0,0 +1,2 @@
1
+ export = sum;
2
+ declare function sum(a: any, b: any): any;
@@ -0,0 +1 @@
1
+ export {};