@bytexbyte/berifyme-react-sdk 1.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.
- package/README.md +20 -0
- package/dist/BerifymeModal/MainModal.js +29 -0
- package/dist/BerifymeModal/index.js +331 -0
- package/dist/api/api.js +1337 -0
- package/dist/api/client.js +21 -0
- package/dist/api/index.js +96 -0
- package/dist/common.js +216 -0
- package/dist/components/AllSet/index.js +169 -0
- package/dist/components/AuthenticationLogs.js +148 -0
- package/dist/components/Clear.js +107 -0
- package/dist/components/Footer/index.js +11 -0
- package/dist/components/Layout.js +9 -0
- package/dist/components/Login/authid/authid.js +196 -0
- package/dist/components/Login/authid/index.js +13 -0
- package/dist/components/Login/clear.js +35 -0
- package/dist/components/Login/clearAllSet.js +96 -0
- package/dist/components/Login/incode/Login.js +129 -0
- package/dist/components/Login/incode/index.js +16 -0
- package/dist/components/OnBoarding/authId/authIdSelectType.js +82 -0
- package/dist/components/OnBoarding/authId/idOrPassport.js +30 -0
- package/dist/components/OnBoarding/authId/index.js +323 -0
- package/dist/components/OnBoarding/clear/clearAllSet.js +118 -0
- package/dist/components/OnBoarding/clear/index.js +36 -0
- package/dist/components/OnBoarding/incode/BackId.js +25 -0
- package/dist/components/OnBoarding/incode/FinishOnboarding.js +26 -0
- package/dist/components/OnBoarding/incode/FrontId.js +27 -0
- package/dist/components/OnBoarding/incode/Passport.js +27 -0
- package/dist/components/OnBoarding/incode/ProcessFace.js +22 -0
- package/dist/components/OnBoarding/incode/ProcessId.js +22 -0
- package/dist/components/OnBoarding/incode/SelectType.js +68 -0
- package/dist/components/OnBoarding/incode/Selfie.js +25 -0
- package/dist/components/OnBoarding/incode/Steps.js +7 -0
- package/dist/components/OnBoarding/incode/UserConsent.js +30 -0
- package/dist/components/OnBoarding/incode/index.js +234 -0
- package/dist/components/OnBoarding/vender/grid/authIdGrid.js +94 -0
- package/dist/components/OnBoarding/vender/grid/clearGrid.js +14 -0
- package/dist/components/OnBoarding/vender/grid/incodeGrid.js +14 -0
- package/dist/components/OnBoarding/vender/grid/index.js +118 -0
- package/dist/components/OnBoarding/vender/grid/sumsubGrid.js +14 -0
- package/dist/components/OnBoarding/vender/grid/veriffGrid.js +14 -0
- package/dist/components/OnBoarding/vender/grid/yotiGrid.js +14 -0
- package/dist/components/OnBoarding/vender/index.js +123 -0
- package/dist/components/RedirectToMobile/index.js +139 -0
- package/dist/components/ScreenRotation.js +11 -0
- package/dist/components/SendSns/index.js +341 -0
- package/dist/components/SendSns/style.css +1 -0
- package/dist/components/TryAgain.js +16 -0
- package/dist/components/TryAgainInModal.js +15 -0
- package/dist/components/VerifyWithPhoneNumber/NewUser/index.js +189 -0
- package/dist/components/VerifyWithPhoneNumber/User/index.js +322 -0
- package/dist/components/createDeveloperLog.js +60 -0
- package/dist/components/phoneNumberProcesser.js +32 -0
- package/dist/components/speedTest/SpeedProvider.js +57 -0
- package/dist/components/theme.js +120 -0
- package/dist/enum/index.js +24 -0
- package/dist/index.js +7 -0
- package/dist/lib/environmentDomains.js +12 -0
- package/dist/lib/webauthb.js +158 -0
- package/dist/state.js +23 -0
- package/dist/theme.js +120 -0
- package/dist/types/BerifymeModal/MainModal.d.ts +7 -0
- package/dist/types/BerifymeModal/index.d.ts +12 -0
- package/dist/types/api/api.d.ts +606 -0
- package/dist/types/api/client.d.ts +2 -0
- package/dist/types/api/index.d.ts +16 -0
- package/dist/types/common.d.ts +3 -0
- package/dist/types/components/AllSet/index.d.ts +8 -0
- package/dist/types/components/AuthenticationLogs.d.ts +19 -0
- package/dist/types/components/Clear.d.ts +9 -0
- package/dist/types/components/Footer/index.d.ts +3 -0
- package/dist/types/components/Layout.d.ts +5 -0
- package/dist/types/components/Login/authid/authid.d.ts +11 -0
- package/dist/types/components/Login/authid/index.d.ts +9 -0
- package/dist/types/components/Login/clear.d.ts +7 -0
- package/dist/types/components/Login/clearAllSet.d.ts +6 -0
- package/dist/types/components/Login/incode/Login.d.ts +13 -0
- package/dist/types/components/Login/incode/index.d.ts +9 -0
- package/dist/types/components/OnBoarding/authId/authIdSelectType.d.ts +6 -0
- package/dist/types/components/OnBoarding/authId/idOrPassport.d.ts +7 -0
- package/dist/types/components/OnBoarding/authId/index.d.ts +11 -0
- package/dist/types/components/OnBoarding/clear/clearAllSet.d.ts +6 -0
- package/dist/types/components/OnBoarding/clear/index.d.ts +8 -0
- package/dist/types/components/OnBoarding/incode/BackId.d.ts +11 -0
- package/dist/types/components/OnBoarding/incode/FinishOnboarding.d.ts +11 -0
- package/dist/types/components/OnBoarding/incode/FrontId.d.ts +10 -0
- package/dist/types/components/OnBoarding/incode/Passport.d.ts +10 -0
- package/dist/types/components/OnBoarding/incode/ProcessFace.d.ts +11 -0
- package/dist/types/components/OnBoarding/incode/ProcessId.d.ts +11 -0
- package/dist/types/components/OnBoarding/incode/SelectType.d.ts +6 -0
- package/dist/types/components/OnBoarding/incode/Selfie.d.ts +11 -0
- package/dist/types/components/OnBoarding/incode/Steps.d.ts +7 -0
- package/dist/types/components/OnBoarding/incode/UserConsent.d.ts +8 -0
- package/dist/types/components/OnBoarding/incode/index.d.ts +9 -0
- package/dist/types/components/OnBoarding/vender/grid/authIdGrid.d.ts +8 -0
- package/dist/types/components/OnBoarding/vender/grid/clearGrid.d.ts +5 -0
- package/dist/types/components/OnBoarding/vender/grid/incodeGrid.d.ts +5 -0
- package/dist/types/components/OnBoarding/vender/grid/index.d.ts +10 -0
- package/dist/types/components/OnBoarding/vender/grid/sumsubGrid.d.ts +5 -0
- package/dist/types/components/OnBoarding/vender/grid/veriffGrid.d.ts +5 -0
- package/dist/types/components/OnBoarding/vender/grid/yotiGrid.d.ts +5 -0
- package/dist/types/components/OnBoarding/vender/index.d.ts +9 -0
- package/dist/types/components/RedirectToMobile/index.d.ts +7 -0
- package/dist/types/components/ScreenRotation.d.ts +3 -0
- package/dist/types/components/SendSns/index.d.ts +16 -0
- package/dist/types/components/TryAgain.d.ts +6 -0
- package/dist/types/components/TryAgainInModal.d.ts +6 -0
- package/dist/types/components/VerifyWithPhoneNumber/NewUser/index.d.ts +11 -0
- package/dist/types/components/VerifyWithPhoneNumber/User/index.d.ts +13 -0
- package/dist/types/components/createDeveloperLog.d.ts +11 -0
- package/dist/types/components/phoneNumberProcesser.d.ts +6 -0
- package/dist/types/components/speedTest/SpeedProvider.d.ts +9 -0
- package/dist/types/components/theme.d.ts +9 -0
- package/dist/types/enum/index.d.ts +22 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/lib/environmentDomains.d.ts +7 -0
- package/dist/types/lib/webauthb.d.ts +18 -0
- package/dist/types/state.d.ts +11 -0
- package/dist/types/theme.d.ts +9 -0
- package/dist/types/vender/incode/incode.d.ts +8 -0
- package/dist/vender/incode/incode.js +13 -0
- package/index.css +52 -0
- package/package.json +49 -0
- package/public/US-UK_Add_to_Apple_Wallet_RGB_101421.svg +259 -0
- package/public/berify-title.webp +0 -0
- package/public/clearme.svg +39 -0
- package/public/idme.svg +13 -0
- package/public/incode.svg +9 -0
- package/public/scan.svg +8 -0
- package/public/trackablehealth-one-logo-1024x229.jpg +0 -0
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
export declare enum DeveloperLogSource {
|
|
2
|
+
FRONTEND = 0,
|
|
3
|
+
BACKEND = 1
|
|
4
|
+
}
|
|
5
|
+
export declare enum ActionType {
|
|
6
|
+
ONBOARDING = 0,
|
|
7
|
+
LOGIN = 1
|
|
8
|
+
}
|
|
9
|
+
export interface User {
|
|
10
|
+
id: string;
|
|
11
|
+
isActive: boolean | null;
|
|
12
|
+
email: string | null;
|
|
13
|
+
phoneNumber: string | null;
|
|
14
|
+
authIDAccountNumber: string | null;
|
|
15
|
+
incodeId: string | null;
|
|
16
|
+
clearId: string | null;
|
|
17
|
+
sumsubId: string | null;
|
|
18
|
+
veriffId: string | null;
|
|
19
|
+
yotiId: string | null;
|
|
20
|
+
idmeId: string | null;
|
|
21
|
+
age: number | null | undefined;
|
|
22
|
+
birthDate: string | null | undefined;
|
|
23
|
+
fullName: string | null | undefined;
|
|
24
|
+
}
|
|
25
|
+
export type UserWithAgeAndFullName = User;
|
|
26
|
+
export type UserWithCredentials = User & {
|
|
27
|
+
credentials: [] | undefined;
|
|
28
|
+
};
|
|
29
|
+
export interface CreatingUser {
|
|
30
|
+
id: string;
|
|
31
|
+
shortId: string;
|
|
32
|
+
verify: boolean;
|
|
33
|
+
email: string | null;
|
|
34
|
+
phoneNumber: string | null;
|
|
35
|
+
}
|
|
36
|
+
export interface Device {
|
|
37
|
+
id: string;
|
|
38
|
+
userId: string;
|
|
39
|
+
deviceId: string;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
expires: Date;
|
|
42
|
+
}
|
|
43
|
+
export type IdDocSetType = 'APPLICANT_DATA' | 'IDENTITY' | 'IDENTITY2' | 'IDENTITY3' | 'IDENTITY4' | 'SELFIE' | 'SELFIE2' | 'PROOF_OF_RESIDENCE' | 'PROOF_OF_RESIDENCE2' | 'QUESTIONNAIRE' | 'PHONE_VERIFICATION' | 'EMAIL_VERIFICATION' | 'E_KYC';
|
|
44
|
+
interface BerifymeApiConfig {
|
|
45
|
+
backendDomain: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function initializeBerifymeApi(userConfig: BerifymeApiConfig): void;
|
|
48
|
+
declare function getAuthIDToken(): Promise<{
|
|
49
|
+
token: string;
|
|
50
|
+
}>;
|
|
51
|
+
declare function getIdDocumentTypes({ token }: {
|
|
52
|
+
token: string;
|
|
53
|
+
}): Promise<{
|
|
54
|
+
idTypes: {
|
|
55
|
+
Name: string;
|
|
56
|
+
Description: string;
|
|
57
|
+
}[];
|
|
58
|
+
error: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
idTypes: undefined;
|
|
61
|
+
error: string;
|
|
62
|
+
}>;
|
|
63
|
+
declare function createAccount({ token, userId }: {
|
|
64
|
+
token: string;
|
|
65
|
+
userId: string;
|
|
66
|
+
}): Promise<{
|
|
67
|
+
success: "ok";
|
|
68
|
+
error: undefined;
|
|
69
|
+
isAllSet: undefined;
|
|
70
|
+
details: undefined;
|
|
71
|
+
} | {
|
|
72
|
+
success: undefined;
|
|
73
|
+
error: undefined;
|
|
74
|
+
isAllSet: boolean;
|
|
75
|
+
details: {
|
|
76
|
+
userId: string;
|
|
77
|
+
fullName: string;
|
|
78
|
+
phoneNumber: string;
|
|
79
|
+
};
|
|
80
|
+
}>;
|
|
81
|
+
declare function checkBiometricExist({ token, userId }: {
|
|
82
|
+
token: string;
|
|
83
|
+
userId: string;
|
|
84
|
+
}): Promise<{
|
|
85
|
+
isExist: boolean;
|
|
86
|
+
error?: string;
|
|
87
|
+
}>;
|
|
88
|
+
declare function proofUser({ token, userId, idType }: {
|
|
89
|
+
token: string;
|
|
90
|
+
userId: string;
|
|
91
|
+
idType: string;
|
|
92
|
+
}): Promise<{
|
|
93
|
+
OperationId: string;
|
|
94
|
+
OneTimeSecret: string;
|
|
95
|
+
url: string;
|
|
96
|
+
}>;
|
|
97
|
+
declare function getProofTransactionStatus({ token, operationId, userId }: {
|
|
98
|
+
token: string;
|
|
99
|
+
operationId: string;
|
|
100
|
+
userId: string;
|
|
101
|
+
}): Promise<{
|
|
102
|
+
status: number | null;
|
|
103
|
+
error: undefined;
|
|
104
|
+
} | {
|
|
105
|
+
status: undefined;
|
|
106
|
+
error: string;
|
|
107
|
+
}>;
|
|
108
|
+
declare function getProofTransactionTempId({ token, operationId, userId }: {
|
|
109
|
+
token: string;
|
|
110
|
+
operationId: string;
|
|
111
|
+
userId: string;
|
|
112
|
+
}): Promise<{
|
|
113
|
+
TempId: string | null;
|
|
114
|
+
error: undefined;
|
|
115
|
+
} | {
|
|
116
|
+
TempId: undefined;
|
|
117
|
+
error: string;
|
|
118
|
+
}>;
|
|
119
|
+
declare function createBiometricFromProof({ token, tempId, userId }: {
|
|
120
|
+
token: string;
|
|
121
|
+
tempId: string;
|
|
122
|
+
userId: string;
|
|
123
|
+
}): Promise<{
|
|
124
|
+
success: "ok";
|
|
125
|
+
error: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
error: string;
|
|
128
|
+
}>;
|
|
129
|
+
declare function getAccount({ token, phone }: {
|
|
130
|
+
token: string;
|
|
131
|
+
phone: string;
|
|
132
|
+
}): Promise<{
|
|
133
|
+
fullName: string;
|
|
134
|
+
dateOfBirth: string;
|
|
135
|
+
documentType: string;
|
|
136
|
+
issuingCountry: string;
|
|
137
|
+
gender: string;
|
|
138
|
+
dateOfExpiry: string;
|
|
139
|
+
error: undefined;
|
|
140
|
+
} | {
|
|
141
|
+
fullName: undefined;
|
|
142
|
+
dateOfBirth: undefined;
|
|
143
|
+
documentType: undefined;
|
|
144
|
+
issuingCountry: undefined;
|
|
145
|
+
gender: undefined;
|
|
146
|
+
dateOfExpiry: undefined;
|
|
147
|
+
error: string;
|
|
148
|
+
}>;
|
|
149
|
+
declare function createLoginTransaction({ token, phone }: {
|
|
150
|
+
token: string;
|
|
151
|
+
phone: string;
|
|
152
|
+
}): Promise<{
|
|
153
|
+
TransactionId: string;
|
|
154
|
+
OneTimeSecret: string;
|
|
155
|
+
url: string;
|
|
156
|
+
error: undefined;
|
|
157
|
+
}>;
|
|
158
|
+
declare function getTransactionStatus({ token, phone, transactionId }: {
|
|
159
|
+
token: string;
|
|
160
|
+
phone: string;
|
|
161
|
+
transactionId: string;
|
|
162
|
+
}): Promise<{
|
|
163
|
+
userId: string;
|
|
164
|
+
operationId: string;
|
|
165
|
+
error?: string;
|
|
166
|
+
}>;
|
|
167
|
+
declare function getOperationStatus({ token, operationId }: {
|
|
168
|
+
token: string;
|
|
169
|
+
operationId: string;
|
|
170
|
+
}): Promise<{
|
|
171
|
+
success: string;
|
|
172
|
+
error?: string;
|
|
173
|
+
}>;
|
|
174
|
+
declare function searchUser({ token, operationId }: {
|
|
175
|
+
token: string;
|
|
176
|
+
operationId: string;
|
|
177
|
+
}): Promise<{
|
|
178
|
+
userId: string;
|
|
179
|
+
operationId: string;
|
|
180
|
+
error: undefined;
|
|
181
|
+
}>;
|
|
182
|
+
declare function getDocumentDetails({ token, operationId, userId }: {
|
|
183
|
+
token: string;
|
|
184
|
+
operationId: string;
|
|
185
|
+
userId: string;
|
|
186
|
+
}): Promise<{
|
|
187
|
+
details: {
|
|
188
|
+
Key: string;
|
|
189
|
+
Value: string;
|
|
190
|
+
}[];
|
|
191
|
+
phone: string;
|
|
192
|
+
error: undefined;
|
|
193
|
+
} | {
|
|
194
|
+
details: undefined;
|
|
195
|
+
phone: undefined;
|
|
196
|
+
error: string;
|
|
197
|
+
}>;
|
|
198
|
+
declare function updateAccount(token: string, data: {
|
|
199
|
+
phone: string;
|
|
200
|
+
fullName: string;
|
|
201
|
+
dateOfBirth: string;
|
|
202
|
+
documentType: string;
|
|
203
|
+
issuingCountry: string;
|
|
204
|
+
gender: string;
|
|
205
|
+
dateOfExpiry: string;
|
|
206
|
+
}): Promise<{
|
|
207
|
+
success: "ok";
|
|
208
|
+
}>;
|
|
209
|
+
declare function getIncodeStart(uniqueId?: string): Promise<{
|
|
210
|
+
token: string;
|
|
211
|
+
uniqueId: string;
|
|
212
|
+
}>;
|
|
213
|
+
declare function getIncodeFinish({ token }: {
|
|
214
|
+
token: string;
|
|
215
|
+
}): Promise<{
|
|
216
|
+
token: string;
|
|
217
|
+
uniqueId: string;
|
|
218
|
+
}>;
|
|
219
|
+
declare function getIncodeApprove({ id, token, uniqueId, }: {
|
|
220
|
+
id: string;
|
|
221
|
+
token: string;
|
|
222
|
+
uniqueId: string;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
incodeId?: string;
|
|
225
|
+
error?: string;
|
|
226
|
+
}>;
|
|
227
|
+
declare function createVerificationSession({ redirectUrl, token }: {
|
|
228
|
+
redirectUrl: string;
|
|
229
|
+
token?: string;
|
|
230
|
+
}): Promise<{
|
|
231
|
+
sessionId: string;
|
|
232
|
+
token: string;
|
|
233
|
+
}>;
|
|
234
|
+
declare function getClearApprove({ id, sessionId, }: {
|
|
235
|
+
id: string;
|
|
236
|
+
sessionId: string;
|
|
237
|
+
}): Promise<{
|
|
238
|
+
clearId?: string;
|
|
239
|
+
error?: string;
|
|
240
|
+
}>;
|
|
241
|
+
declare function createIdmeVerificationUrl({ redirectUrl, token }: {
|
|
242
|
+
redirectUrl: string;
|
|
243
|
+
token?: string;
|
|
244
|
+
}): Promise<{
|
|
245
|
+
url?: string;
|
|
246
|
+
error?: string;
|
|
247
|
+
}>;
|
|
248
|
+
declare function sendIdmePhoneNumberVerify({ phoneNumber, idmeId, token }: {
|
|
249
|
+
phoneNumber: string;
|
|
250
|
+
idmeId?: string;
|
|
251
|
+
token?: string;
|
|
252
|
+
}): Promise<{
|
|
253
|
+
success: boolean;
|
|
254
|
+
error?: string;
|
|
255
|
+
}>;
|
|
256
|
+
declare function updateIdmeId({ id, idmeId, token }: {
|
|
257
|
+
id: string;
|
|
258
|
+
idmeId?: string;
|
|
259
|
+
token?: string;
|
|
260
|
+
}): Promise<{
|
|
261
|
+
user: User;
|
|
262
|
+
error?: string;
|
|
263
|
+
}>;
|
|
264
|
+
declare function getIdmeApprove({ id, code, redirectUrl, }: {
|
|
265
|
+
id: string;
|
|
266
|
+
code: string;
|
|
267
|
+
redirectUrl: string;
|
|
268
|
+
}): Promise<{
|
|
269
|
+
user?: UserWithAgeAndFullName;
|
|
270
|
+
error?: string;
|
|
271
|
+
}>;
|
|
272
|
+
declare function checkThirdPartyVerificationToken(token: string): Promise<{
|
|
273
|
+
success: boolean;
|
|
274
|
+
companyLogo?: string | null;
|
|
275
|
+
companyName?: string | null;
|
|
276
|
+
error?: string;
|
|
277
|
+
}>;
|
|
278
|
+
declare function sendVerifyEmail(email: string): Promise<{
|
|
279
|
+
success: boolean;
|
|
280
|
+
error?: string;
|
|
281
|
+
}>;
|
|
282
|
+
declare function sendPhoneNumberVerify({ phoneNumber, token, domain }: {
|
|
283
|
+
phoneNumber: string;
|
|
284
|
+
token?: string;
|
|
285
|
+
domain?: string;
|
|
286
|
+
}): Promise<{
|
|
287
|
+
success: boolean;
|
|
288
|
+
error?: string;
|
|
289
|
+
}>;
|
|
290
|
+
declare function sendPhoneNumberCode({ phoneNumber, token }: {
|
|
291
|
+
phoneNumber: string;
|
|
292
|
+
token?: string;
|
|
293
|
+
}): Promise<{
|
|
294
|
+
success: boolean;
|
|
295
|
+
error?: string;
|
|
296
|
+
}>;
|
|
297
|
+
declare function verify(id: string): Promise<{
|
|
298
|
+
userId?: string;
|
|
299
|
+
error?: string;
|
|
300
|
+
}>;
|
|
301
|
+
declare function getUserBySessionId(sessionId: string): Promise<{
|
|
302
|
+
user?: UserWithAgeAndFullName;
|
|
303
|
+
error?: string;
|
|
304
|
+
}>;
|
|
305
|
+
declare function getUserByCode(code: string, redirectUrl: string): Promise<{
|
|
306
|
+
user?: UserWithAgeAndFullName;
|
|
307
|
+
idmeId?: string;
|
|
308
|
+
error?: string;
|
|
309
|
+
}>;
|
|
310
|
+
declare function getUserByIncodeId(incodeId: string): Promise<{
|
|
311
|
+
user?: UserWithAgeAndFullName;
|
|
312
|
+
error?: string;
|
|
313
|
+
}>;
|
|
314
|
+
declare function getUserByClearId(clearId: string): Promise<{
|
|
315
|
+
user?: UserWithAgeAndFullName;
|
|
316
|
+
error?: string;
|
|
317
|
+
}>;
|
|
318
|
+
declare function getUserVenderByPhone({ phoneNumber }: {
|
|
319
|
+
phoneNumber: string;
|
|
320
|
+
}): Promise<{
|
|
321
|
+
vender?: string | null;
|
|
322
|
+
fullName?: string | null;
|
|
323
|
+
error?: string;
|
|
324
|
+
}>;
|
|
325
|
+
declare function getUserByPhoneNumberAndVerifyCode({ phoneNumber, code }: {
|
|
326
|
+
phoneNumber: string;
|
|
327
|
+
code: string;
|
|
328
|
+
}): Promise<{
|
|
329
|
+
user?: UserWithCredentials;
|
|
330
|
+
error?: string;
|
|
331
|
+
}>;
|
|
332
|
+
declare function uploadDeviceId({ id, deviceId }: {
|
|
333
|
+
id: string;
|
|
334
|
+
deviceId: string;
|
|
335
|
+
}): Promise<{
|
|
336
|
+
device: Device;
|
|
337
|
+
error?: string;
|
|
338
|
+
}>;
|
|
339
|
+
declare function checkDeviceId({ phoneNumber, deviceId, token }: {
|
|
340
|
+
phoneNumber: string;
|
|
341
|
+
deviceId: string;
|
|
342
|
+
token: string;
|
|
343
|
+
}): Promise<{
|
|
344
|
+
user?: User;
|
|
345
|
+
error?: string;
|
|
346
|
+
}>;
|
|
347
|
+
declare function checkBlockchainToken({ phoneNumber, blockchainTokenId, token }: {
|
|
348
|
+
phoneNumber: string;
|
|
349
|
+
blockchainTokenId: string;
|
|
350
|
+
token: string;
|
|
351
|
+
}): Promise<{
|
|
352
|
+
user?: User;
|
|
353
|
+
error?: string;
|
|
354
|
+
}>;
|
|
355
|
+
declare function getRedirectUrl({ userId, token, desktopRedirectUrlId }: {
|
|
356
|
+
userId: string;
|
|
357
|
+
token: string;
|
|
358
|
+
desktopRedirectUrlId?: string;
|
|
359
|
+
}): Promise<{
|
|
360
|
+
redirectUrl?: string;
|
|
361
|
+
heartbeatStopped?: boolean;
|
|
362
|
+
companyName?: string;
|
|
363
|
+
error?: string;
|
|
364
|
+
}>;
|
|
365
|
+
declare function initUpdateAdminTokenSchedule(): Promise<{
|
|
366
|
+
status: number;
|
|
367
|
+
}>;
|
|
368
|
+
declare function deleteUpdateAdminTokenSchedule(): Promise<{
|
|
369
|
+
status: number;
|
|
370
|
+
}>;
|
|
371
|
+
declare function generateAppleWalletPass({ id, fullName, birthDate }: {
|
|
372
|
+
id: string;
|
|
373
|
+
fullName: string;
|
|
374
|
+
birthDate: string;
|
|
375
|
+
}): Promise<{
|
|
376
|
+
serialNumber: string;
|
|
377
|
+
}>;
|
|
378
|
+
declare function createSessionToken({ apiKeyId, secretKey, redirectUrl }: {
|
|
379
|
+
apiKeyId: string;
|
|
380
|
+
secretKey: string;
|
|
381
|
+
redirectUrl: string;
|
|
382
|
+
}): Promise<any>;
|
|
383
|
+
declare function createAuthenticationLogs({ actionType, token, userId, vender, os, browser, device, transactionId, incodeSessionId, clearSessionId, isPass, }: {
|
|
384
|
+
actionType: ActionType;
|
|
385
|
+
token: string;
|
|
386
|
+
userId: string;
|
|
387
|
+
vender: string;
|
|
388
|
+
os: string;
|
|
389
|
+
browser: string;
|
|
390
|
+
device: string;
|
|
391
|
+
transactionId?: string;
|
|
392
|
+
incodeSessionId?: string;
|
|
393
|
+
clearSessionId?: string;
|
|
394
|
+
isPass?: boolean;
|
|
395
|
+
}): Promise<any>;
|
|
396
|
+
declare function updateAuthenticationLogs({ isPass, transactionId, incodeSessionId, clearSessionId }: {
|
|
397
|
+
isPass: boolean;
|
|
398
|
+
transactionId?: string;
|
|
399
|
+
incodeSessionId?: string;
|
|
400
|
+
clearSessionId?: string;
|
|
401
|
+
}): Promise<any>;
|
|
402
|
+
declare function createDeveloperLog({ userId, sessionToken, action, firstDetail, secondDetail, userDataJson, source, browser, }: {
|
|
403
|
+
userId?: string;
|
|
404
|
+
sessionToken?: string;
|
|
405
|
+
action?: string;
|
|
406
|
+
firstDetail?: string;
|
|
407
|
+
secondDetail?: string;
|
|
408
|
+
userDataJson?: Record<string, any>;
|
|
409
|
+
source?: 'FRONTEND' | 'BACKEND';
|
|
410
|
+
browser?: string;
|
|
411
|
+
}): Promise<any>;
|
|
412
|
+
declare function checkAndIssueToken({ userId }: {
|
|
413
|
+
userId: string;
|
|
414
|
+
}): Promise<any>;
|
|
415
|
+
declare function getNFTToken({ phoneNumber }: {
|
|
416
|
+
phoneNumber: string;
|
|
417
|
+
}): Promise<any>;
|
|
418
|
+
declare function getWallet({ phoneNumber }: {
|
|
419
|
+
phoneNumber: string;
|
|
420
|
+
}): Promise<any>;
|
|
421
|
+
declare function createAccessToken({ phoneNumber, levelName }: {
|
|
422
|
+
phoneNumber: string;
|
|
423
|
+
levelName: 'basic-kyc-level' | 'face-login';
|
|
424
|
+
}): Promise<{
|
|
425
|
+
token: string;
|
|
426
|
+
userId: string;
|
|
427
|
+
} | {
|
|
428
|
+
error: string;
|
|
429
|
+
}>;
|
|
430
|
+
declare function approveUserByPhoneNumber({ phoneNumber }: {
|
|
431
|
+
phoneNumber: string;
|
|
432
|
+
}): Promise<{
|
|
433
|
+
sumsubId: string;
|
|
434
|
+
} | {
|
|
435
|
+
error: string;
|
|
436
|
+
}>;
|
|
437
|
+
declare function resetValidationStep({ sumsubId, idDocSetType }: {
|
|
438
|
+
sumsubId: string;
|
|
439
|
+
idDocSetType: IdDocSetType;
|
|
440
|
+
}): Promise<{
|
|
441
|
+
success: 'ok';
|
|
442
|
+
error: string;
|
|
443
|
+
}>;
|
|
444
|
+
declare function getSumsubFaceLoginResult({ sumsubId, externalActionId }: {
|
|
445
|
+
sumsubId: string;
|
|
446
|
+
externalActionId: string;
|
|
447
|
+
}): Promise<{
|
|
448
|
+
isVerified: boolean;
|
|
449
|
+
} | {
|
|
450
|
+
error: string;
|
|
451
|
+
}>;
|
|
452
|
+
declare function getUserBySumsubId({ sumsubId }: {
|
|
453
|
+
sumsubId: string;
|
|
454
|
+
}): Promise<{
|
|
455
|
+
user: UserWithAgeAndFullName;
|
|
456
|
+
} | {
|
|
457
|
+
error: string;
|
|
458
|
+
}>;
|
|
459
|
+
declare function approveVeriffUserByPhoneNumber({ phoneNumber, sessionId }: {
|
|
460
|
+
phoneNumber: string;
|
|
461
|
+
sessionId: string;
|
|
462
|
+
}): Promise<{
|
|
463
|
+
veriffId: string;
|
|
464
|
+
} | {
|
|
465
|
+
error: string;
|
|
466
|
+
}>;
|
|
467
|
+
declare function getUserByVeriffId({ veriffId }: {
|
|
468
|
+
veriffId: string;
|
|
469
|
+
}): Promise<{
|
|
470
|
+
user: UserWithAgeAndFullName;
|
|
471
|
+
} | {
|
|
472
|
+
error: string;
|
|
473
|
+
}>;
|
|
474
|
+
declare function getVeriffFaceLoginResult({ sessionId }: {
|
|
475
|
+
sessionId: string;
|
|
476
|
+
}): Promise<{
|
|
477
|
+
isVerified: boolean;
|
|
478
|
+
} | {
|
|
479
|
+
error: string;
|
|
480
|
+
}>;
|
|
481
|
+
declare function getOrderByCountry({ countryCode }: {
|
|
482
|
+
countryCode: string;
|
|
483
|
+
}): Promise<{
|
|
484
|
+
order?: [];
|
|
485
|
+
error?: string;
|
|
486
|
+
}>;
|
|
487
|
+
declare function createYotiSession({ phoneNumber }: {
|
|
488
|
+
phoneNumber: string;
|
|
489
|
+
}): Promise<{
|
|
490
|
+
sessionId: string;
|
|
491
|
+
clientSessionToken: string;
|
|
492
|
+
} | {
|
|
493
|
+
error: string;
|
|
494
|
+
}>;
|
|
495
|
+
declare function approveYotiUser({ sessionId }: {
|
|
496
|
+
sessionId: string;
|
|
497
|
+
}): Promise<{
|
|
498
|
+
yotiId: string;
|
|
499
|
+
} | {
|
|
500
|
+
error: string;
|
|
501
|
+
}>;
|
|
502
|
+
declare function getUserByYotiId({ yotiId }: {
|
|
503
|
+
yotiId: string;
|
|
504
|
+
}): Promise<{
|
|
505
|
+
user: UserWithAgeAndFullName;
|
|
506
|
+
} | {
|
|
507
|
+
error: string;
|
|
508
|
+
}>;
|
|
509
|
+
declare const berifymeApi: {
|
|
510
|
+
authID: {
|
|
511
|
+
getAuthIDToken: typeof getAuthIDToken;
|
|
512
|
+
getIdDocumentTypes: typeof getIdDocumentTypes;
|
|
513
|
+
createAccount: typeof createAccount;
|
|
514
|
+
checkBiometricExist: typeof checkBiometricExist;
|
|
515
|
+
proofUser: typeof proofUser;
|
|
516
|
+
getProofTransactionStatus: typeof getProofTransactionStatus;
|
|
517
|
+
getProofTransactionTempId: typeof getProofTransactionTempId;
|
|
518
|
+
createBiometricFromProof: typeof createBiometricFromProof;
|
|
519
|
+
getAccount: typeof getAccount;
|
|
520
|
+
createLoginTransaction: typeof createLoginTransaction;
|
|
521
|
+
getTransactionStatus: typeof getTransactionStatus;
|
|
522
|
+
getOperationStatus: typeof getOperationStatus;
|
|
523
|
+
searchUser: typeof searchUser;
|
|
524
|
+
getDocumentDetails: typeof getDocumentDetails;
|
|
525
|
+
updateAccount: typeof updateAccount;
|
|
526
|
+
};
|
|
527
|
+
incode: {
|
|
528
|
+
getIncodeStart: typeof getIncodeStart;
|
|
529
|
+
getIncodeFinish: typeof getIncodeFinish;
|
|
530
|
+
getIncodeApprove: typeof getIncodeApprove;
|
|
531
|
+
};
|
|
532
|
+
clear: {
|
|
533
|
+
createVerificationSession: typeof createVerificationSession;
|
|
534
|
+
getClearApprove: typeof getClearApprove;
|
|
535
|
+
};
|
|
536
|
+
idme: {
|
|
537
|
+
createIdmeVerificationUrl: typeof createIdmeVerificationUrl;
|
|
538
|
+
sendIdmePhoneNumberVerify: typeof sendIdmePhoneNumberVerify;
|
|
539
|
+
getIdmeApprove: typeof getIdmeApprove;
|
|
540
|
+
updateIdmeId: typeof updateIdmeId;
|
|
541
|
+
};
|
|
542
|
+
auth: {
|
|
543
|
+
sendVerifyEmail: typeof sendVerifyEmail;
|
|
544
|
+
sendPhoneNumberCode: typeof sendPhoneNumberCode;
|
|
545
|
+
sendPhoneNumberVerify: typeof sendPhoneNumberVerify;
|
|
546
|
+
verify: typeof verify;
|
|
547
|
+
};
|
|
548
|
+
user: {
|
|
549
|
+
getUserByCode: typeof getUserByCode;
|
|
550
|
+
getUserBySessionId: typeof getUserBySessionId;
|
|
551
|
+
getUserByIncodeId: typeof getUserByIncodeId;
|
|
552
|
+
getUserByClearId: typeof getUserByClearId;
|
|
553
|
+
getUserBySumsubId: typeof getUserBySumsubId;
|
|
554
|
+
getUserByYotiId: typeof getUserByYotiId;
|
|
555
|
+
getUserVenderByPhone: typeof getUserVenderByPhone;
|
|
556
|
+
getUserByPhoneNumberAndVerifyCode: typeof getUserByPhoneNumberAndVerifyCode;
|
|
557
|
+
uploadDeviceId: typeof uploadDeviceId;
|
|
558
|
+
checkDeviceId: typeof checkDeviceId;
|
|
559
|
+
checkBlockchainToken: typeof checkBlockchainToken;
|
|
560
|
+
};
|
|
561
|
+
thirdParty: {
|
|
562
|
+
getRedirectUrl: typeof getRedirectUrl;
|
|
563
|
+
checkThirdPartyVerificationToken: typeof checkThirdPartyVerificationToken;
|
|
564
|
+
};
|
|
565
|
+
scheduld: {
|
|
566
|
+
initUpdateAdminTokenSchedule: typeof initUpdateAdminTokenSchedule;
|
|
567
|
+
deleteUpdateAdminTokenSchedule: typeof deleteUpdateAdminTokenSchedule;
|
|
568
|
+
};
|
|
569
|
+
pass: {
|
|
570
|
+
generateAppleWalletPass: typeof generateAppleWalletPass;
|
|
571
|
+
};
|
|
572
|
+
tools: {
|
|
573
|
+
createSessionToken: typeof createSessionToken;
|
|
574
|
+
};
|
|
575
|
+
AuthenticationLogs: {
|
|
576
|
+
createAuthenticationLogs: typeof createAuthenticationLogs;
|
|
577
|
+
updateAuthenticationLogs: typeof updateAuthenticationLogs;
|
|
578
|
+
};
|
|
579
|
+
developerLogs: {
|
|
580
|
+
createDeveloperLog: typeof createDeveloperLog;
|
|
581
|
+
};
|
|
582
|
+
blockchain: {
|
|
583
|
+
checkAndIssueToken: typeof checkAndIssueToken;
|
|
584
|
+
getNFTToken: typeof getNFTToken;
|
|
585
|
+
};
|
|
586
|
+
wallet: {
|
|
587
|
+
getWallet: typeof getWallet;
|
|
588
|
+
};
|
|
589
|
+
sumsub: {
|
|
590
|
+
createAccessToken: typeof createAccessToken;
|
|
591
|
+
approveUserByPhoneNumber: typeof approveUserByPhoneNumber;
|
|
592
|
+
resetValidationStep: typeof resetValidationStep;
|
|
593
|
+
getSumsubFaceLoginResult: typeof getSumsubFaceLoginResult;
|
|
594
|
+
};
|
|
595
|
+
veriff: {
|
|
596
|
+
approveVeriffUserByPhoneNumber: typeof approveVeriffUserByPhoneNumber;
|
|
597
|
+
getUserByVeriffId: typeof getUserByVeriffId;
|
|
598
|
+
getVeriffFaceLoginResult: typeof getVeriffFaceLoginResult;
|
|
599
|
+
};
|
|
600
|
+
yoti: {
|
|
601
|
+
createYotiSession: typeof createYotiSession;
|
|
602
|
+
approveYotiUser: typeof approveYotiUser;
|
|
603
|
+
};
|
|
604
|
+
getOrderByCountry: typeof getOrderByCountry;
|
|
605
|
+
};
|
|
606
|
+
export default berifymeApi;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const getExampleData: () => Promise<any>;
|
|
2
|
+
export declare const createTokenData: (body: {
|
|
3
|
+
apiKeyId: string;
|
|
4
|
+
secretKey: string;
|
|
5
|
+
redirectUrl: string;
|
|
6
|
+
}) => Promise<any>;
|
|
7
|
+
export declare const getUserDataByTokenData: ({ header, params, }: {
|
|
8
|
+
header: {
|
|
9
|
+
apiKeyId: string;
|
|
10
|
+
secretKey: string;
|
|
11
|
+
};
|
|
12
|
+
params: {
|
|
13
|
+
token: string;
|
|
14
|
+
fields: string;
|
|
15
|
+
};
|
|
16
|
+
}) => Promise<any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { User } from "../../api/api";
|
|
3
|
+
declare const AllSet: ({ user, token, desktopRedirectUrlId }: {
|
|
4
|
+
user: User | undefined;
|
|
5
|
+
token: string | undefined;
|
|
6
|
+
desktopRedirectUrlId?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default AllSet;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ActionType } from "../api/api";
|
|
2
|
+
interface AuthenticationLogInput {
|
|
3
|
+
userId: string;
|
|
4
|
+
vender: string;
|
|
5
|
+
token: string;
|
|
6
|
+
transactionId?: string;
|
|
7
|
+
incodeSessionId?: string;
|
|
8
|
+
clearSessionId?: string;
|
|
9
|
+
isPass?: boolean;
|
|
10
|
+
actionType: ActionType;
|
|
11
|
+
}
|
|
12
|
+
export declare const createAuthenticationLog: ({ userId, vender, token, transactionId, incodeSessionId, clearSessionId, isPass, actionType, }: AuthenticationLogInput) => Promise<void>;
|
|
13
|
+
export declare const updateAuthenticationLog: ({ isPass, transactionId, incodeSessionId, clearSessionId }: {
|
|
14
|
+
isPass: boolean;
|
|
15
|
+
transactionId?: string;
|
|
16
|
+
incodeSessionId?: string;
|
|
17
|
+
clearSessionId?: string;
|
|
18
|
+
}) => Promise<void>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActionType } from "../api/api";
|
|
3
|
+
declare const Clear: ({ token, redirectUrl, userId, actionType }: {
|
|
4
|
+
token: string;
|
|
5
|
+
redirectUrl: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
actionType: ActionType;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export default Clear;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UserWithAgeAndFullName } from "../../../api/api";
|
|
3
|
+
declare const AuthID: ({ phone, setError, goRedirect, goToTryAgain, setUser, token }: {
|
|
4
|
+
phone: string;
|
|
5
|
+
setError: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
6
|
+
goRedirect: () => void;
|
|
7
|
+
goToTryAgain: () => void;
|
|
8
|
+
setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
|
|
9
|
+
token: string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export default AuthID;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UserWithAgeAndFullName } from "../../../api/api";
|
|
3
|
+
declare const AuthidLogin: React.FC<{
|
|
4
|
+
goToAllSet: () => void;
|
|
5
|
+
phoneNumber: string;
|
|
6
|
+
setUser: React.Dispatch<React.SetStateAction<UserWithAgeAndFullName | undefined>>;
|
|
7
|
+
token?: string;
|
|
8
|
+
}>;
|
|
9
|
+
export { AuthidLogin };
|