cidaas-javascript-sdk 3.1.0 → 3.1.2
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/CHANGELOG.md +2 -35
- package/README.md +35 -4
- package/package.json +1 -1
- package/src/main/web-auth/Entities.ts +9 -1
- package/src/main/web-auth/TokenService.ts +3 -4
- package/src/main/web-auth/UserService.ts +2 -2
- package/src/main/web-auth/WebAuth.ts +28 -25
- package/types/main/authentication/index.d.ts +0 -55
- package/types/main/authentication/index.js +0 -262
- package/types/main/index.d.ts +0 -4
- package/types/main/index.js +0 -9
- package/types/main/web-auth/ConsentService.d.ts +0 -59
- package/types/main/web-auth/ConsentService.js +0 -73
- package/types/main/web-auth/Entities.d.ts +0 -526
- package/types/main/web-auth/Entities.js +0 -76
- package/types/main/web-auth/Helper.d.ts +0 -24
- package/types/main/web-auth/Helper.js +0 -89
- package/types/main/web-auth/LoginService.d.ts +0 -103
- package/types/main/web-auth/LoginService.js +0 -248
- package/types/main/web-auth/TokenService.d.ts +0 -48
- package/types/main/web-auth/TokenService.js +0 -114
- package/types/main/web-auth/UserService.d.ts +0 -143
- package/types/main/web-auth/UserService.js +0 -311
- package/types/main/web-auth/VerificationService.d.ts +0 -125
- package/types/main/web-auth/VerificationService.js +0 -251
- package/types/main/web-auth/WebAuth.d.ts +0 -886
- package/types/main/web-auth/WebAuth.js +0 -1556
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { UserEntity, ResetPasswordEntity, FindUserEntity, IUserLinkEntity, ChangePasswordEntity, ValidateResetPasswordEntity, AcceptResetPasswordEntity } from "./Entities";
|
|
2
|
-
export declare namespace UserService {
|
|
3
|
-
/**
|
|
4
|
-
* get user info
|
|
5
|
-
* @param options
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
function getUserProfile(options: {
|
|
9
|
-
access_token: string;
|
|
10
|
-
}): Promise<unknown>;
|
|
11
|
-
/**
|
|
12
|
-
* register user
|
|
13
|
-
* @param options
|
|
14
|
-
* @param headers
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
function register(options: UserEntity, headers: {
|
|
18
|
-
requestId: string;
|
|
19
|
-
captcha?: string;
|
|
20
|
-
acceptlanguage?: string;
|
|
21
|
-
bot_captcha_response?: string;
|
|
22
|
-
trackId?: string;
|
|
23
|
-
}): Promise<unknown>;
|
|
24
|
-
/**
|
|
25
|
-
* get invite info
|
|
26
|
-
* @param options
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
function getInviteUserDetails(options: {
|
|
30
|
-
invite_id: string;
|
|
31
|
-
}): Promise<unknown>;
|
|
32
|
-
/**
|
|
33
|
-
* get Communication status
|
|
34
|
-
* @param options
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
function getCommunicationStatus(options: {
|
|
38
|
-
sub: string;
|
|
39
|
-
requestId: string;
|
|
40
|
-
}): Promise<unknown>;
|
|
41
|
-
/**
|
|
42
|
-
* initiate reset password
|
|
43
|
-
* @param options
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
function initiateResetPassword(options: ResetPasswordEntity): Promise<unknown>;
|
|
47
|
-
/**
|
|
48
|
-
* handle reset password
|
|
49
|
-
* @param options
|
|
50
|
-
*/
|
|
51
|
-
function handleResetPassword(options: ValidateResetPasswordEntity): Promise<unknown>;
|
|
52
|
-
/**
|
|
53
|
-
* reset password
|
|
54
|
-
* @param options
|
|
55
|
-
*/
|
|
56
|
-
function resetPassword(options: AcceptResetPasswordEntity): Promise<unknown>;
|
|
57
|
-
/**
|
|
58
|
-
* get Deduplication details
|
|
59
|
-
* @param options
|
|
60
|
-
* @returns
|
|
61
|
-
*/
|
|
62
|
-
function getDeduplicationDetails(options: {
|
|
63
|
-
trackId: string;
|
|
64
|
-
}): Promise<unknown>;
|
|
65
|
-
/**
|
|
66
|
-
* deduplication login
|
|
67
|
-
* @param options
|
|
68
|
-
*/
|
|
69
|
-
function deduplicationLogin(options: {
|
|
70
|
-
trackId: string;
|
|
71
|
-
requestId: string;
|
|
72
|
-
sub: string;
|
|
73
|
-
}): void;
|
|
74
|
-
/**
|
|
75
|
-
* register Deduplication
|
|
76
|
-
* @param options
|
|
77
|
-
* @returns
|
|
78
|
-
*/
|
|
79
|
-
function registerDeduplication(options: {
|
|
80
|
-
trackId: string;
|
|
81
|
-
}): Promise<unknown>;
|
|
82
|
-
/**
|
|
83
|
-
* change password
|
|
84
|
-
* @param options
|
|
85
|
-
* @param access_token
|
|
86
|
-
* @returns
|
|
87
|
-
*/
|
|
88
|
-
function changePassword(options: ChangePasswordEntity, access_token: string): Promise<unknown>;
|
|
89
|
-
/**
|
|
90
|
-
* update profile
|
|
91
|
-
* @param options
|
|
92
|
-
* @param access_token
|
|
93
|
-
* @param sub
|
|
94
|
-
* @returns
|
|
95
|
-
*/
|
|
96
|
-
function updateProfile(options: UserEntity, access_token: string, sub: string): Promise<unknown>;
|
|
97
|
-
/**
|
|
98
|
-
* initiate link accoount
|
|
99
|
-
* @param options
|
|
100
|
-
* @param access_token
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
function initiateLinkAccount(options: IUserLinkEntity, access_token: string): Promise<unknown>;
|
|
104
|
-
/**
|
|
105
|
-
* complete link accoount
|
|
106
|
-
* @param options
|
|
107
|
-
* @param access_token
|
|
108
|
-
* @returns
|
|
109
|
-
*/
|
|
110
|
-
function completeLinkAccount(options: {
|
|
111
|
-
code?: string;
|
|
112
|
-
link_request_id?: string;
|
|
113
|
-
}, access_token: string): Promise<unknown>;
|
|
114
|
-
/**
|
|
115
|
-
* get linked users
|
|
116
|
-
* @param access_token
|
|
117
|
-
* @param sub
|
|
118
|
-
* @returns
|
|
119
|
-
*/
|
|
120
|
-
function getLinkedUsers(access_token: string, sub: string): Promise<unknown>;
|
|
121
|
-
/**
|
|
122
|
-
* unlink accoount
|
|
123
|
-
* @param access_token
|
|
124
|
-
* @param identityId
|
|
125
|
-
* @returns
|
|
126
|
-
*/
|
|
127
|
-
function unlinkAccount(access_token: string, identityId: string): Promise<unknown>;
|
|
128
|
-
/**
|
|
129
|
-
* deleteUserAccount
|
|
130
|
-
* @param options
|
|
131
|
-
* @returns
|
|
132
|
-
*/
|
|
133
|
-
function deleteUserAccount(options: {
|
|
134
|
-
access_token: string;
|
|
135
|
-
sub: string;
|
|
136
|
-
}): Promise<unknown>;
|
|
137
|
-
/**
|
|
138
|
-
* check if an user exists
|
|
139
|
-
* @param options
|
|
140
|
-
* @returns
|
|
141
|
-
*/
|
|
142
|
-
function userCheckExists(options: FindUserEntity): Promise<unknown>;
|
|
143
|
-
}
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.UserService = void 0;
|
|
4
|
-
var Helper_1 = require("./Helper");
|
|
5
|
-
var UserService;
|
|
6
|
-
(function (UserService) {
|
|
7
|
-
/**
|
|
8
|
-
* get user info
|
|
9
|
-
* @param options
|
|
10
|
-
* @returns
|
|
11
|
-
*/
|
|
12
|
-
function getUserProfile(options) {
|
|
13
|
-
if (!options.access_token) {
|
|
14
|
-
throw new Helper_1.CustomException("access_token cannot be empty", 417);
|
|
15
|
-
}
|
|
16
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/userinfo";
|
|
17
|
-
return Helper_1.Helper.createPostPromise(undefined, _serviceURL, undefined, "GET", options.access_token);
|
|
18
|
-
}
|
|
19
|
-
UserService.getUserProfile = getUserProfile;
|
|
20
|
-
;
|
|
21
|
-
/**
|
|
22
|
-
* register user
|
|
23
|
-
* @param options
|
|
24
|
-
* @param headers
|
|
25
|
-
* @returns
|
|
26
|
-
*/
|
|
27
|
-
function register(options, headers) {
|
|
28
|
-
return new Promise(function (resolve, reject) {
|
|
29
|
-
try {
|
|
30
|
-
var http = new XMLHttpRequest();
|
|
31
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/register";
|
|
32
|
-
if (options.invite_id) {
|
|
33
|
-
_serviceURL = _serviceURL + "?invite_id=" + options.invite_id;
|
|
34
|
-
}
|
|
35
|
-
http.onreadystatechange = function () {
|
|
36
|
-
if (http.readyState == 4) {
|
|
37
|
-
if (http.responseText) {
|
|
38
|
-
resolve(JSON.parse(http.responseText));
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
resolve(false);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
http.open("POST", _serviceURL, true);
|
|
46
|
-
http.setRequestHeader("Content-type", "application/json");
|
|
47
|
-
http.setRequestHeader("requestId", headers.requestId);
|
|
48
|
-
if (headers.captcha) {
|
|
49
|
-
http.setRequestHeader("captcha", headers.captcha);
|
|
50
|
-
}
|
|
51
|
-
if (headers.acceptlanguage) {
|
|
52
|
-
http.setRequestHeader("accept-language", headers.acceptlanguage);
|
|
53
|
-
}
|
|
54
|
-
else if (window.localeSettings) {
|
|
55
|
-
http.setRequestHeader("accept-language", window.localeSettings);
|
|
56
|
-
}
|
|
57
|
-
if (headers.bot_captcha_response) {
|
|
58
|
-
http.setRequestHeader("bot_captcha_response", headers.bot_captcha_response);
|
|
59
|
-
}
|
|
60
|
-
if (headers.trackId) {
|
|
61
|
-
http.setRequestHeader("trackid", headers.trackId);
|
|
62
|
-
}
|
|
63
|
-
http.send(JSON.stringify(options));
|
|
64
|
-
}
|
|
65
|
-
catch (ex) {
|
|
66
|
-
reject(ex);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
UserService.register = register;
|
|
71
|
-
;
|
|
72
|
-
/**
|
|
73
|
-
* get invite info
|
|
74
|
-
* @param options
|
|
75
|
-
* @returns
|
|
76
|
-
*/
|
|
77
|
-
function getInviteUserDetails(options) {
|
|
78
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/invite/info/" + options.invite_id;
|
|
79
|
-
return Helper_1.Helper.createPostPromise(undefined, _serviceURL, false, "GET");
|
|
80
|
-
}
|
|
81
|
-
UserService.getInviteUserDetails = getInviteUserDetails;
|
|
82
|
-
;
|
|
83
|
-
/**
|
|
84
|
-
* get Communication status
|
|
85
|
-
* @param options
|
|
86
|
-
* @returns
|
|
87
|
-
*/
|
|
88
|
-
function getCommunicationStatus(options) {
|
|
89
|
-
return new Promise(function (resolve, reject) {
|
|
90
|
-
try {
|
|
91
|
-
var http = new XMLHttpRequest();
|
|
92
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/communication/status/" + options.sub;
|
|
93
|
-
http.onreadystatechange = function () {
|
|
94
|
-
if (http.readyState == 4) {
|
|
95
|
-
if (http.responseText) {
|
|
96
|
-
resolve(JSON.parse(http.responseText));
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
resolve(false);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
http.open("GET", _serviceURL, true);
|
|
104
|
-
http.setRequestHeader("Content-type", "application/json");
|
|
105
|
-
if (options.requestId) {
|
|
106
|
-
http.setRequestHeader("requestId", options.requestId);
|
|
107
|
-
}
|
|
108
|
-
if (window.localeSettings) {
|
|
109
|
-
http.setRequestHeader("accept-language", window.localeSettings);
|
|
110
|
-
}
|
|
111
|
-
http.send();
|
|
112
|
-
}
|
|
113
|
-
catch (ex) {
|
|
114
|
-
reject(ex);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
UserService.getCommunicationStatus = getCommunicationStatus;
|
|
119
|
-
;
|
|
120
|
-
/**
|
|
121
|
-
* initiate reset password
|
|
122
|
-
* @param options
|
|
123
|
-
* @returns
|
|
124
|
-
*/
|
|
125
|
-
function initiateResetPassword(options) {
|
|
126
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/resetpassword/initiate";
|
|
127
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, false, "POST");
|
|
128
|
-
}
|
|
129
|
-
UserService.initiateResetPassword = initiateResetPassword;
|
|
130
|
-
;
|
|
131
|
-
/**
|
|
132
|
-
* handle reset password
|
|
133
|
-
* @param options
|
|
134
|
-
*/
|
|
135
|
-
function handleResetPassword(options) {
|
|
136
|
-
try {
|
|
137
|
-
var url = window.webAuthSettings.authority + "/users-srv/resetpassword/validatecode";
|
|
138
|
-
if (window.webAuthSettings.cidaas_version > 2) {
|
|
139
|
-
var form = Helper_1.Helper.createForm(url, options);
|
|
140
|
-
document.body.appendChild(form);
|
|
141
|
-
form.submit();
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
return Helper_1.Helper.createPostPromise(options, url, false, "POST");
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
catch (ex) {
|
|
148
|
-
throw new Helper_1.CustomException(ex, 417);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
UserService.handleResetPassword = handleResetPassword;
|
|
152
|
-
;
|
|
153
|
-
/**
|
|
154
|
-
* reset password
|
|
155
|
-
* @param options
|
|
156
|
-
*/
|
|
157
|
-
function resetPassword(options) {
|
|
158
|
-
var url = window.webAuthSettings.authority + "/users-srv/resetpassword/accept";
|
|
159
|
-
try {
|
|
160
|
-
if (window.webAuthSettings.cidaas_version > 2) {
|
|
161
|
-
var form = Helper_1.Helper.createForm(url, options);
|
|
162
|
-
document.body.appendChild(form);
|
|
163
|
-
form.submit();
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return Helper_1.Helper.createPostPromise(options, url, false, "POST");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
catch (ex) {
|
|
170
|
-
throw new Helper_1.CustomException(ex, 417);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
UserService.resetPassword = resetPassword;
|
|
174
|
-
;
|
|
175
|
-
/**
|
|
176
|
-
* get Deduplication details
|
|
177
|
-
* @param options
|
|
178
|
-
* @returns
|
|
179
|
-
*/
|
|
180
|
-
function getDeduplicationDetails(options) {
|
|
181
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/deduplication/info/" + options.trackId;
|
|
182
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, false, "GET", undefined);
|
|
183
|
-
}
|
|
184
|
-
UserService.getDeduplicationDetails = getDeduplicationDetails;
|
|
185
|
-
;
|
|
186
|
-
/**
|
|
187
|
-
* deduplication login
|
|
188
|
-
* @param options
|
|
189
|
-
*/
|
|
190
|
-
function deduplicationLogin(options) {
|
|
191
|
-
try {
|
|
192
|
-
var form = document.createElement('form');
|
|
193
|
-
form.action = window.webAuthSettings.authority + "/users-srv/deduplication/login/redirection?trackId=" + options.trackId + "&requestId=" + options.requestId + "&sub=" + options.sub;
|
|
194
|
-
form.method = 'POST';
|
|
195
|
-
document.body.appendChild(form);
|
|
196
|
-
form.submit();
|
|
197
|
-
}
|
|
198
|
-
catch (ex) {
|
|
199
|
-
throw new Helper_1.CustomException(ex, 417);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
UserService.deduplicationLogin = deduplicationLogin;
|
|
203
|
-
;
|
|
204
|
-
/**
|
|
205
|
-
* register Deduplication
|
|
206
|
-
* @param options
|
|
207
|
-
* @returns
|
|
208
|
-
*/
|
|
209
|
-
function registerDeduplication(options) {
|
|
210
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/deduplication/register/" + options.trackId;
|
|
211
|
-
return Helper_1.Helper.createPostPromise(undefined, _serviceURL, undefined, "POST");
|
|
212
|
-
}
|
|
213
|
-
UserService.registerDeduplication = registerDeduplication;
|
|
214
|
-
;
|
|
215
|
-
/**
|
|
216
|
-
* change password
|
|
217
|
-
* @param options
|
|
218
|
-
* @param access_token
|
|
219
|
-
* @returns
|
|
220
|
-
*/
|
|
221
|
-
function changePassword(options, access_token) {
|
|
222
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/changepassword";
|
|
223
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, false, "POST", access_token);
|
|
224
|
-
}
|
|
225
|
-
UserService.changePassword = changePassword;
|
|
226
|
-
;
|
|
227
|
-
/**
|
|
228
|
-
* update profile
|
|
229
|
-
* @param options
|
|
230
|
-
* @param access_token
|
|
231
|
-
* @param sub
|
|
232
|
-
* @returns
|
|
233
|
-
*/
|
|
234
|
-
function updateProfile(options, access_token, sub) {
|
|
235
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/profile/" + sub;
|
|
236
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, false, "PUT", access_token);
|
|
237
|
-
}
|
|
238
|
-
UserService.updateProfile = updateProfile;
|
|
239
|
-
;
|
|
240
|
-
/**
|
|
241
|
-
* initiate link accoount
|
|
242
|
-
* @param options
|
|
243
|
-
* @param access_token
|
|
244
|
-
* @returns
|
|
245
|
-
*/
|
|
246
|
-
function initiateLinkAccount(options, access_token) {
|
|
247
|
-
options.user_name_type = 'email';
|
|
248
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/link/initiate";
|
|
249
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, false, "POST", access_token);
|
|
250
|
-
}
|
|
251
|
-
UserService.initiateLinkAccount = initiateLinkAccount;
|
|
252
|
-
;
|
|
253
|
-
/**
|
|
254
|
-
* complete link accoount
|
|
255
|
-
* @param options
|
|
256
|
-
* @param access_token
|
|
257
|
-
* @returns
|
|
258
|
-
*/
|
|
259
|
-
function completeLinkAccount(options, access_token) {
|
|
260
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/link/complete";
|
|
261
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, false, "POST", access_token);
|
|
262
|
-
}
|
|
263
|
-
UserService.completeLinkAccount = completeLinkAccount;
|
|
264
|
-
;
|
|
265
|
-
/**
|
|
266
|
-
* get linked users
|
|
267
|
-
* @param access_token
|
|
268
|
-
* @param sub
|
|
269
|
-
* @returns
|
|
270
|
-
*/
|
|
271
|
-
function getLinkedUsers(access_token, sub) {
|
|
272
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/userinfo/social/" + sub;
|
|
273
|
-
return Helper_1.Helper.createPostPromise(undefined, _serviceURL, false, "POST", access_token);
|
|
274
|
-
}
|
|
275
|
-
UserService.getLinkedUsers = getLinkedUsers;
|
|
276
|
-
;
|
|
277
|
-
/**
|
|
278
|
-
* unlink accoount
|
|
279
|
-
* @param access_token
|
|
280
|
-
* @param identityId
|
|
281
|
-
* @returns
|
|
282
|
-
*/
|
|
283
|
-
function unlinkAccount(access_token, identityId) {
|
|
284
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/unlink/" + identityId;
|
|
285
|
-
return Helper_1.Helper.createPostPromise(undefined, _serviceURL, false, "POST", access_token);
|
|
286
|
-
}
|
|
287
|
-
UserService.unlinkAccount = unlinkAccount;
|
|
288
|
-
;
|
|
289
|
-
/**
|
|
290
|
-
* deleteUserAccount
|
|
291
|
-
* @param options
|
|
292
|
-
* @returns
|
|
293
|
-
*/
|
|
294
|
-
function deleteUserAccount(options) {
|
|
295
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/unregister/scheduler/schedule/" + options.sub;
|
|
296
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, undefined, "POST", options.access_token);
|
|
297
|
-
}
|
|
298
|
-
UserService.deleteUserAccount = deleteUserAccount;
|
|
299
|
-
;
|
|
300
|
-
/**
|
|
301
|
-
* check if an user exists
|
|
302
|
-
* @param options
|
|
303
|
-
* @returns
|
|
304
|
-
*/
|
|
305
|
-
function userCheckExists(options) {
|
|
306
|
-
var _serviceURL = window.webAuthSettings.authority + "/users-srv/user/checkexists/" + options.requestId;
|
|
307
|
-
return Helper_1.Helper.createPostPromise(options, _serviceURL, undefined, "POST");
|
|
308
|
-
}
|
|
309
|
-
UserService.userCheckExists = userCheckExists;
|
|
310
|
-
;
|
|
311
|
-
})(UserService = exports.UserService || (exports.UserService = {}));
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { IConfiguredListRequestEntity, IInitVerificationAuthenticationRequestEntity, FidoSetupEntity, IEnrollVerificationSetupRequestEntity, IAuthVerificationAuthenticationRequestEntity, FaceVerificationAuthenticationRequestEntity, AccountVerificationRequestEntity } from "./Entities";
|
|
2
|
-
export declare namespace VerificationService {
|
|
3
|
-
/**
|
|
4
|
-
* initiate verification
|
|
5
|
-
* @param options
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
function initiateAccountVerification(options: AccountVerificationRequestEntity): void;
|
|
9
|
-
/**
|
|
10
|
-
* initiate verification and return response
|
|
11
|
-
* @param options
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
function initiateAccountVerificationAsynFn(options: AccountVerificationRequestEntity): Promise<Response>;
|
|
15
|
-
/**
|
|
16
|
-
* verify account
|
|
17
|
-
* @param options
|
|
18
|
-
* @returns
|
|
19
|
-
*/
|
|
20
|
-
function verifyAccount(options: {
|
|
21
|
-
accvid: string;
|
|
22
|
-
code: string;
|
|
23
|
-
}): Promise<unknown>;
|
|
24
|
-
/**
|
|
25
|
-
* get mfa list v2
|
|
26
|
-
* @param options
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
function getMFAListV2(options: IConfiguredListRequestEntity): Promise<unknown>;
|
|
30
|
-
/**
|
|
31
|
-
* cancel mfa v2
|
|
32
|
-
* @param options
|
|
33
|
-
* @returns
|
|
34
|
-
*/
|
|
35
|
-
function cancelMFAV2(options: {
|
|
36
|
-
exchange_id: string;
|
|
37
|
-
reason: string;
|
|
38
|
-
type: string;
|
|
39
|
-
}): Promise<unknown>;
|
|
40
|
-
/**
|
|
41
|
-
* @param access_token
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
function getAllVerificationList(access_token: string): Promise<unknown>;
|
|
45
|
-
/**
|
|
46
|
-
* enrollVerification
|
|
47
|
-
* @param options
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
function enrollVerification(options: IEnrollVerificationSetupRequestEntity): Promise<unknown>;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated This function is no longer supported, instead use {this.updateStatus()}
|
|
53
|
-
* @param status_id
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
function updateSocket(status_id: string): Promise<unknown>;
|
|
57
|
-
/**
|
|
58
|
-
* update the status of notification
|
|
59
|
-
* @param status_id
|
|
60
|
-
* @returns
|
|
61
|
-
*/
|
|
62
|
-
function updateStatus(status_id: string): Promise<unknown>;
|
|
63
|
-
/**
|
|
64
|
-
* setupFidoVerification
|
|
65
|
-
* @param options
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
function setupFidoVerification(options: FidoSetupEntity): Promise<unknown>;
|
|
69
|
-
/**
|
|
70
|
-
* checkVerificationTypeConfigured
|
|
71
|
-
* @param options
|
|
72
|
-
* @returns
|
|
73
|
-
*/
|
|
74
|
-
function checkVerificationTypeConfigured(options: IConfiguredListRequestEntity): Promise<unknown>;
|
|
75
|
-
/**
|
|
76
|
-
* initiate mfa v2
|
|
77
|
-
* @param options
|
|
78
|
-
* @returns
|
|
79
|
-
*/
|
|
80
|
-
function initiateMFAV2(options: IInitVerificationAuthenticationRequestEntity): Promise<unknown>;
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated
|
|
83
|
-
* @param options
|
|
84
|
-
* @param verificationType
|
|
85
|
-
* @returns
|
|
86
|
-
*/
|
|
87
|
-
function initiateMfaV1(options: any, verificationType: string): Promise<unknown>;
|
|
88
|
-
/**
|
|
89
|
-
* authenticate mfa v2
|
|
90
|
-
* @param options
|
|
91
|
-
* @returns
|
|
92
|
-
*/
|
|
93
|
-
function authenticateMFAV2(options: IAuthVerificationAuthenticationRequestEntity): Promise<unknown>;
|
|
94
|
-
/**
|
|
95
|
-
* authenticateVerification form type (for face)
|
|
96
|
-
* @param options
|
|
97
|
-
* @returns
|
|
98
|
-
*/
|
|
99
|
-
function authenticateFaceVerification(options: FaceVerificationAuthenticationRequestEntity): Promise<unknown>;
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated
|
|
102
|
-
* setup verification - v1
|
|
103
|
-
* @param options
|
|
104
|
-
* @param access_token
|
|
105
|
-
* @param verificationType
|
|
106
|
-
* @returns
|
|
107
|
-
*/
|
|
108
|
-
function setupVerificationV1(options: any, access_token: string, verificationType: string): Promise<unknown>;
|
|
109
|
-
/**
|
|
110
|
-
* @deprecated
|
|
111
|
-
* enroll verification - v1
|
|
112
|
-
* @param options
|
|
113
|
-
* @param access_token
|
|
114
|
-
* @param verificationType
|
|
115
|
-
* @returns
|
|
116
|
-
*/
|
|
117
|
-
function enrollVerificationV1(options: any, access_token: string, verificationType: string): Promise<unknown>;
|
|
118
|
-
/**
|
|
119
|
-
* @deprecated
|
|
120
|
-
* authenticate mfa - v1
|
|
121
|
-
* @param verificationType
|
|
122
|
-
* @returns
|
|
123
|
-
*/
|
|
124
|
-
function authenticateMfaV1(options: any, verificationType: string): Promise<unknown>;
|
|
125
|
-
}
|