uqudosdk-capacitor 2.2.1
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/LICENSE +21 -0
- package/README.md +20 -0
- package/UqudosdkCapacitor.podspec +19 -0
- package/android/build.gradle +65 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/io/uqudo/sdk/id/capacitor/UqudoIdPlugin.java +375 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/esm/definitions.d.ts +21 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +318 -0
- package/dist/esm/index.js +491 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +23 -0
- package/dist/esm/web.js +22 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +538 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +541 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/MyTracer.h +6 -0
- package/ios/Plugin/UqudoId.m +518 -0
- package/ios/Plugin/UqudoIdPlugin.h +10 -0
- package/ios/Plugin/UqudoIdPlugin.m +12 -0
- package/ios/Plugin/UqudoIdPlugin.swift +11 -0
- package/package.json +27 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import type { UqudoIdPlugin } from './definitions';
|
|
2
|
+
declare const UqudoId: UqudoIdPlugin;
|
|
3
|
+
export * from './definitions';
|
|
4
|
+
export { UqudoId };
|
|
5
|
+
export declare class EnrollmentBuilder {
|
|
6
|
+
private documentList;
|
|
7
|
+
private authorizationToken?;
|
|
8
|
+
private nonce?;
|
|
9
|
+
private isRootedDeviceAllowed?;
|
|
10
|
+
private isSecuredWindowsDisabled?;
|
|
11
|
+
private facialRecognitionSpecification?;
|
|
12
|
+
private lookupConfiguration?;
|
|
13
|
+
private backgroundCheckConfiguration?;
|
|
14
|
+
private sessionId?;
|
|
15
|
+
private userIdentifier?;
|
|
16
|
+
private isReturnDataForIncompleteSession?;
|
|
17
|
+
private appearanceMode;
|
|
18
|
+
setToken(token: string): EnrollmentBuilder;
|
|
19
|
+
setNonce(nonce: string): EnrollmentBuilder;
|
|
20
|
+
setSessionId(sessionId: string): EnrollmentBuilder;
|
|
21
|
+
setUserIdentifier(userIdentifier: string): EnrollmentBuilder;
|
|
22
|
+
enableRootedDeviceUsage(): EnrollmentBuilder;
|
|
23
|
+
disableSecureWindow(): EnrollmentBuilder;
|
|
24
|
+
enableFacialRecognition(facialRecognitionConfigurationBuilder?: FacialRecognitionConfiguration): EnrollmentBuilder;
|
|
25
|
+
enableBackgroundCheck(backgroundCheckConfiguration: BackgroundCheckConfiguration): EnrollmentBuilder;
|
|
26
|
+
returnDataForIncompleteSession(): EnrollmentBuilder;
|
|
27
|
+
enableLookup(documents?: DocumentType[]): EnrollmentBuilder;
|
|
28
|
+
add(document: Document): EnrollmentBuilder;
|
|
29
|
+
setAppearanceMode(appearanceMode: AppearanceMode): EnrollmentBuilder;
|
|
30
|
+
build(): Enrollment;
|
|
31
|
+
}
|
|
32
|
+
export declare class Enrollment {
|
|
33
|
+
private documentList?;
|
|
34
|
+
private authorizationToken?;
|
|
35
|
+
private nonce?;
|
|
36
|
+
private isRootedDeviceAllowed?;
|
|
37
|
+
private isSecuredWindowsDisabled?;
|
|
38
|
+
private facialRecognitionSpecification?;
|
|
39
|
+
private backgroundCheckConfiguration?;
|
|
40
|
+
private lookupConfiguration?;
|
|
41
|
+
private sessionId?;
|
|
42
|
+
private userIdentifier?;
|
|
43
|
+
private isReturnDataForIncompleteSession?;
|
|
44
|
+
private appearanceMode?;
|
|
45
|
+
constructor(documentList?: Document[], authorizationToken?: string, nonce?: string, isRootedDeviceAllowed?: boolean, isSecuredWindowsDisabled?: boolean, facialRecognitionSpecification?: FacialRecognitionConfiguration, backgroundCheckConfiguration?: BackgroundCheckConfiguration, lookupConfiguration?: LookupConfiguration, sessionId?: string, userIdentifier?: string, isReturnDataForIncompleteSession?: boolean, appearanceMode?: AppearanceMode);
|
|
46
|
+
}
|
|
47
|
+
export declare class FacialRecognitionConfigurationBuilder {
|
|
48
|
+
private isHelpPageDisabled?;
|
|
49
|
+
private isEnrollFace?;
|
|
50
|
+
private scanMinimumMatchLevel?;
|
|
51
|
+
private readMinimumMatchLevel?;
|
|
52
|
+
private maxAttempts?;
|
|
53
|
+
disableHelpPage(): FacialRecognitionConfigurationBuilder;
|
|
54
|
+
enrollFace(): FacialRecognitionConfigurationBuilder;
|
|
55
|
+
setScanMinimumMatchLevel(scanMinimumMatchLevel: number): FacialRecognitionConfigurationBuilder;
|
|
56
|
+
setReadMinimumMatchLevel(readMinimumMatchLevel: number): FacialRecognitionConfigurationBuilder;
|
|
57
|
+
setMaxAttempts(maxAttempts: number): FacialRecognitionConfigurationBuilder;
|
|
58
|
+
build(): FacialRecognitionConfiguration;
|
|
59
|
+
}
|
|
60
|
+
export declare class FacialRecognitionConfiguration {
|
|
61
|
+
private isHelpPageDisabled?;
|
|
62
|
+
private enrollFace?;
|
|
63
|
+
private scanMinimumMatchLevel?;
|
|
64
|
+
private readMinimumMatchLevel?;
|
|
65
|
+
private maxAttempts?;
|
|
66
|
+
constructor(isHelpPageDisabled?: boolean, enrollFace?: boolean, scanMinimumMatchLevel?: number, readMinimumMatchLevel?: number, maxAttempts?: number);
|
|
67
|
+
}
|
|
68
|
+
export declare class BackgroundCheckConfigurationBuilder {
|
|
69
|
+
private isDisableConsent?;
|
|
70
|
+
private backgroundCheckType;
|
|
71
|
+
private monitoringEnabled?;
|
|
72
|
+
private isSkipView?;
|
|
73
|
+
disableConsent(): BackgroundCheckConfigurationBuilder;
|
|
74
|
+
enableMonitoring(): BackgroundCheckConfigurationBuilder;
|
|
75
|
+
setBackgroundCheckType(backgroundCheckType: BackgroundCheckType): BackgroundCheckConfigurationBuilder;
|
|
76
|
+
skipView(): BackgroundCheckConfigurationBuilder;
|
|
77
|
+
build(): BackgroundCheckConfiguration;
|
|
78
|
+
}
|
|
79
|
+
export declare class LookupConfiguration {
|
|
80
|
+
private documentsList?;
|
|
81
|
+
constructor(documents?: DocumentType[]);
|
|
82
|
+
}
|
|
83
|
+
export declare class BackgroundCheckConfiguration {
|
|
84
|
+
private disableConsent?;
|
|
85
|
+
private backgroundCheckType;
|
|
86
|
+
private monitoringEnabled?;
|
|
87
|
+
private skipView?;
|
|
88
|
+
constructor(backgroundCheckType: BackgroundCheckType, disableConsent?: boolean, monitoringEnabled?: boolean, skipView?: boolean);
|
|
89
|
+
}
|
|
90
|
+
export declare class Document {
|
|
91
|
+
private documentType?;
|
|
92
|
+
private readingConfiguration?;
|
|
93
|
+
private isHelpPageDisabled?;
|
|
94
|
+
private faceScanMinimumMatchLevel?;
|
|
95
|
+
private faceReadMinimumMatchLevel?;
|
|
96
|
+
private isExpiredDocumentValidateDisabled?;
|
|
97
|
+
private isFrontSideReviewEnabled?;
|
|
98
|
+
private isBackSideReviewEnabled?;
|
|
99
|
+
private isUploadEnabled?;
|
|
100
|
+
private isPhotoQualityDetectionEnabled?;
|
|
101
|
+
private minimumAge?;
|
|
102
|
+
constructor(type?: string, readConfig?: ReadingConfiguration, isHelpPageDisabled?: boolean, faceScanLevel?: number, faceReadLevel?: number, isExpiredDocumentValidateDisabled?: boolean, isFrontSideReviewEnabled?: boolean, isBackSideReviewEnabled?: boolean, isUploadEnabled?: boolean, isPhotoQualityDetectionEnabled?: boolean, minimumAge?: number);
|
|
103
|
+
}
|
|
104
|
+
export declare class DocumentBuilder {
|
|
105
|
+
private documentType?;
|
|
106
|
+
private isHelpPageDisabled?;
|
|
107
|
+
private readingConfiguration?;
|
|
108
|
+
private faceScanMinimumMatchLevel?;
|
|
109
|
+
private faceReadMinimumMatchLevel?;
|
|
110
|
+
private minimumAge?;
|
|
111
|
+
private isExpiredDocumentValidateDisabled?;
|
|
112
|
+
private isFrontSideReviewEnabled?;
|
|
113
|
+
private isBackSideReviewEnabled?;
|
|
114
|
+
private isUploadEnabled?;
|
|
115
|
+
private isPhotoQualityDetectionEnabled?;
|
|
116
|
+
setDocumentType(documentType: string): DocumentBuilder;
|
|
117
|
+
disableHelpPage(): DocumentBuilder;
|
|
118
|
+
enableReading(readingConfiguration?: ReadingConfiguration): DocumentBuilder;
|
|
119
|
+
disableExpiryValidation(): DocumentBuilder;
|
|
120
|
+
setFaceScanMinimumMatchLevel(faceScanMinimumMatchLevel: number): DocumentBuilder;
|
|
121
|
+
setFaceReadMinimumMatchLevel(faceReadMinimumMatchLevel: number): DocumentBuilder;
|
|
122
|
+
enableScanReview(isFrontSideReviewEnabled: boolean, isBackSideReviewEnabled: boolean): DocumentBuilder;
|
|
123
|
+
enableUpload(): DocumentBuilder;
|
|
124
|
+
enableAgeVerification(minAge: number): DocumentBuilder;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Ignored and enabled by default. Will be removed in a future release
|
|
127
|
+
*/
|
|
128
|
+
enablePhotoQualityDetection(): DocumentBuilder;
|
|
129
|
+
build(): Document;
|
|
130
|
+
}
|
|
131
|
+
export declare class ReadingConfiguration {
|
|
132
|
+
private forceReading?;
|
|
133
|
+
private forceReadingIfSupported?;
|
|
134
|
+
private timeoutInSeconds?;
|
|
135
|
+
constructor(forceRead?: boolean, forceReadIfSupported?: boolean, timeoutInSeconds?: number);
|
|
136
|
+
}
|
|
137
|
+
export declare class ReadingConfigurationBuilder {
|
|
138
|
+
private forceReadingValue?;
|
|
139
|
+
private forceReadingIfSupportedValue?;
|
|
140
|
+
private timeoutInSeconds?;
|
|
141
|
+
forceReading(value: boolean): ReadingConfigurationBuilder;
|
|
142
|
+
forceReadingIfSupported(value: boolean): ReadingConfigurationBuilder;
|
|
143
|
+
forceReadingTimeout(value: number): ReadingConfigurationBuilder;
|
|
144
|
+
build(): ReadingConfiguration;
|
|
145
|
+
}
|
|
146
|
+
export declare class AccountRecoveryConfigurationBuilder {
|
|
147
|
+
private authorizationToken?;
|
|
148
|
+
private enrollmentIdentifier?;
|
|
149
|
+
private nonce?;
|
|
150
|
+
private isRootedDeviceAllowed?;
|
|
151
|
+
private isSecuredWindowsDisabled?;
|
|
152
|
+
private minimumMatchLevel?;
|
|
153
|
+
private maxAttempts?;
|
|
154
|
+
private isReturnDataForIncompleteSession?;
|
|
155
|
+
private appearanceMode?;
|
|
156
|
+
/**
|
|
157
|
+
* Pass the token received from Uqudo to authenticate the SDK
|
|
158
|
+
*/
|
|
159
|
+
setToken(token: string): AccountRecoveryConfigurationBuilder;
|
|
160
|
+
/**
|
|
161
|
+
* Pass the enrollment identifier for the account to be recovered
|
|
162
|
+
*/
|
|
163
|
+
setEnrollmentIdentifier(identifier: string): AccountRecoveryConfigurationBuilder;
|
|
164
|
+
/**
|
|
165
|
+
* You can pass your custom nonce to provide security to the enrollment process
|
|
166
|
+
*/
|
|
167
|
+
setNonce(nonce: string): AccountRecoveryConfigurationBuilder;
|
|
168
|
+
/**
|
|
169
|
+
* Whether you want the sdk to run on the rooted devices or not. By default it is false
|
|
170
|
+
*/
|
|
171
|
+
enableRootedDeviceUsage(): AccountRecoveryConfigurationBuilder;
|
|
172
|
+
/**
|
|
173
|
+
* To allow user to capture/record screenshot or video of the screen on the device app is installed.
|
|
174
|
+
* Default is screenshot and video recording of the screen is not allowed
|
|
175
|
+
*/
|
|
176
|
+
disableSecureWindow(): AccountRecoveryConfigurationBuilder;
|
|
177
|
+
/**
|
|
178
|
+
* Set this to use the value passed for facialRecognition for Account Recovery
|
|
179
|
+
*/
|
|
180
|
+
setMinimumMatchLevel(value: number): AccountRecoveryConfigurationBuilder;
|
|
181
|
+
setMaxAttempts(value: number): AccountRecoveryConfigurationBuilder;
|
|
182
|
+
returnDataForIncompleteSession(): AccountRecoveryConfigurationBuilder;
|
|
183
|
+
setAppearanceMode(appearanceMode: AppearanceMode): AccountRecoveryConfigurationBuilder;
|
|
184
|
+
/**
|
|
185
|
+
* @returns Intent with the configuration and the token needed to authorize the activity to
|
|
186
|
+
* recover the account
|
|
187
|
+
*/
|
|
188
|
+
build(): AccountRecoveryConfiguration;
|
|
189
|
+
}
|
|
190
|
+
export declare class AccountRecoveryConfiguration {
|
|
191
|
+
private token?;
|
|
192
|
+
private enrollmentIdentifier?;
|
|
193
|
+
private nonce?;
|
|
194
|
+
private isRootedDeviceAllowed?;
|
|
195
|
+
private isSecuredWindowsDisabled?;
|
|
196
|
+
private minimumMatchLevel?;
|
|
197
|
+
private maxAttempts?;
|
|
198
|
+
private isReturnDataForIncompleteSession?;
|
|
199
|
+
private appearanceMode?;
|
|
200
|
+
constructor(token?: string, enrollmentIdentifier?: string, nonce?: string, isRootedDeviceAllowed?: boolean, isSecuredWindowsDisabled?: boolean, minimumMatchLevel?: number, maxAttempts?: number, isReturnDataForIncompleteSession?: boolean, appearanceMode?: AppearanceMode);
|
|
201
|
+
}
|
|
202
|
+
export declare class FaceSessionConfigurationBuilder {
|
|
203
|
+
private authorizationToken?;
|
|
204
|
+
private sessionId?;
|
|
205
|
+
private nonce?;
|
|
206
|
+
private isRootedDeviceAllowed?;
|
|
207
|
+
private isSecuredWindowsDisabled?;
|
|
208
|
+
private minimumMatchLevel?;
|
|
209
|
+
private maxAttempts?;
|
|
210
|
+
private isReturnDataForIncompleteSession?;
|
|
211
|
+
private appearanceMode?;
|
|
212
|
+
/**
|
|
213
|
+
* Pass the token received from Uqudo to authenticate the SDK
|
|
214
|
+
*/
|
|
215
|
+
setToken(token: string): FaceSessionConfigurationBuilder;
|
|
216
|
+
/**
|
|
217
|
+
* Pass the enrollment identifier for facial recognition
|
|
218
|
+
*/
|
|
219
|
+
setSessionId(identifier: string): FaceSessionConfigurationBuilder;
|
|
220
|
+
/**
|
|
221
|
+
* You can pass your custom nonce to provide security to the facial recognition process
|
|
222
|
+
*/
|
|
223
|
+
setNonce(nonce: string): FaceSessionConfigurationBuilder;
|
|
224
|
+
/**
|
|
225
|
+
* Whether you want the sdk to run on the rooted devices or not. By default it is false
|
|
226
|
+
*/
|
|
227
|
+
enableRootedDeviceUsage(): FaceSessionConfigurationBuilder;
|
|
228
|
+
/**
|
|
229
|
+
* To allow user to capture/record screenshot or video of the screen on the device app is installed.
|
|
230
|
+
* Default is screenshot and video recording of the screen is not allowed
|
|
231
|
+
*/
|
|
232
|
+
disableSecureWindow(): FaceSessionConfigurationBuilder;
|
|
233
|
+
/**
|
|
234
|
+
* Set this to use the value passed for facialRecognition for facial recognition
|
|
235
|
+
*/
|
|
236
|
+
setMinimumMatchLevel(value: number): FaceSessionConfigurationBuilder;
|
|
237
|
+
setMaxAttempts(value: number): FaceSessionConfigurationBuilder;
|
|
238
|
+
returnDataForIncompleteSession(): FaceSessionConfigurationBuilder;
|
|
239
|
+
setAppearanceMode(appearanceMode: AppearanceMode): FaceSessionConfigurationBuilder;
|
|
240
|
+
/**
|
|
241
|
+
* @returns Intent with the configuration and the token needed to authorize the activity to
|
|
242
|
+
* facial recognition
|
|
243
|
+
*/
|
|
244
|
+
build(): FaceSessionConfiguration;
|
|
245
|
+
}
|
|
246
|
+
export declare class FaceSessionConfiguration {
|
|
247
|
+
private token?;
|
|
248
|
+
private sessionId?;
|
|
249
|
+
private nonce?;
|
|
250
|
+
private isRootedDeviceAllowed?;
|
|
251
|
+
private isSecuredWindowsDisabled?;
|
|
252
|
+
private minimumMatchLevel?;
|
|
253
|
+
private maxAttempts?;
|
|
254
|
+
private isReturnDataForIncompleteSession?;
|
|
255
|
+
private appearanceMode?;
|
|
256
|
+
constructor(token?: string, sessionId?: string, nonce?: string, isRootedDeviceAllowed?: boolean, isSecuredWindowsDisabled?: boolean, minimumMatchLevel?: number, maxAttempts?: number, isReturnDataForIncompleteSession?: boolean, appearanceMode?: AppearanceMode);
|
|
257
|
+
}
|
|
258
|
+
export declare enum DocumentType {
|
|
259
|
+
BHR_ID = "BHR_ID",
|
|
260
|
+
GENERIC_ID = "GENERIC_ID",
|
|
261
|
+
KWT_ID = "KWT_ID",
|
|
262
|
+
OMN_ID = "OMN_ID",
|
|
263
|
+
PAK_ID = "PAK_ID",
|
|
264
|
+
PASSPORT = "PASSPORT",
|
|
265
|
+
SAU_ID = "SAU_ID",
|
|
266
|
+
UAE_ID = "UAE_ID",
|
|
267
|
+
UAE_DL = "UAE_DL",
|
|
268
|
+
UAE_VISA = "UAE_VISA",
|
|
269
|
+
UAE_VL = "UAE_VL",
|
|
270
|
+
QAT_ID = "QAT_ID",
|
|
271
|
+
NLD_DL = "NLD_DL",
|
|
272
|
+
DEU_ID = "DEU_ID",
|
|
273
|
+
SDN_ID = "SDN_ID",
|
|
274
|
+
SDN_DL = "SDN_DL",
|
|
275
|
+
SDN_VL = "SDN_VL",
|
|
276
|
+
GHA_ID = "GHA_ID",
|
|
277
|
+
NGA_DL = "NGA_DL",
|
|
278
|
+
NGA_VOTER_ID = "NGA_VOTER_ID",
|
|
279
|
+
NGA_NIN = "NGA_NIN",
|
|
280
|
+
GBR_DL = "GBR_DL",
|
|
281
|
+
SAU_DL = "SAU_DL",
|
|
282
|
+
ZAF_ID = "ZAF_ID",
|
|
283
|
+
ZAF_DL = "ZAF_DL",
|
|
284
|
+
EGY_ID = "EGY_ID",
|
|
285
|
+
RWA_ID = "RWA_ID",
|
|
286
|
+
KEN_ID = "KEN_ID",
|
|
287
|
+
GHA_DL = "GHA_DL",
|
|
288
|
+
GHA_VOTER_ID = "GHA_VOTER_ID",
|
|
289
|
+
GHA_SSNIT = "GHA_SSNIT",
|
|
290
|
+
UGA_ID = "UGA_ID",
|
|
291
|
+
IND_ID = "IND_ID",
|
|
292
|
+
OMN_ID_NATIONAL = "OMN_ID_NATIONAL",
|
|
293
|
+
OMN_ID_RESIDENT = "OMN_ID_RESIDENT",
|
|
294
|
+
SEN_ID = "SEN_ID",
|
|
295
|
+
UGA_VOTER_ID = "UGA_VOTER_ID"
|
|
296
|
+
}
|
|
297
|
+
export declare enum BackgroundCheckType {
|
|
298
|
+
RDC = "RDC",
|
|
299
|
+
DOW_JONES = "DOW_JONES"
|
|
300
|
+
}
|
|
301
|
+
export declare enum AppearanceMode {
|
|
302
|
+
SYSTEM = "SYSTEM",
|
|
303
|
+
LIGHT = "LIGHT",
|
|
304
|
+
DARK = "DARK"
|
|
305
|
+
}
|
|
306
|
+
export declare class UqudoPlugin {
|
|
307
|
+
init(): void;
|
|
308
|
+
setLocale(locale: string): void;
|
|
309
|
+
enroll(enrollObj: Enrollment): Promise<{
|
|
310
|
+
value: string;
|
|
311
|
+
}>;
|
|
312
|
+
recover(recoverObj: AccountRecoveryConfiguration): Promise<{
|
|
313
|
+
value: string;
|
|
314
|
+
}>;
|
|
315
|
+
faceSession(faceSessionObj: FaceSessionConfiguration): Promise<{
|
|
316
|
+
value: string;
|
|
317
|
+
}>;
|
|
318
|
+
}
|