@incodetech/core 0.0.0-dev-20260126-4504c5b
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/dist/Manager-Co-PsiG9.d.ts +19 -0
- package/dist/OpenViduLogger-BLxxXoyF.esm.js +803 -0
- package/dist/OpenViduLogger-DyqID_-7.esm.js +3 -0
- package/dist/api-DfRLAneb.esm.js +53 -0
- package/dist/chunk-V5DOKNPJ.esm.js +49 -0
- package/dist/deepsightLoader-BMT0FSg6.esm.js +24 -0
- package/dist/deepsightService-j5zMt6wf.esm.js +236 -0
- package/dist/email.d.ts +264 -0
- package/dist/email.esm.js +478 -0
- package/dist/endpoints-BUsSVoJV.esm.js +3288 -0
- package/dist/events-B8ZkhAZo.esm.js +285 -0
- package/dist/flow.d.ts +278 -0
- package/dist/flow.esm.js +638 -0
- package/dist/getDeviceClass-DkfbtsIJ.esm.js +41 -0
- package/dist/id-r1mw9zBM.esm.js +1827 -0
- package/dist/id.d.ts +5 -0
- package/dist/id.esm.js +9 -0
- package/dist/index-CJMK8K5u.d.ts +614 -0
- package/dist/index.d.ts +445 -0
- package/dist/index.esm.js +163 -0
- package/dist/lib-CbAibJlt.esm.js +11700 -0
- package/dist/phone.d.ts +292 -0
- package/dist/phone.esm.js +552 -0
- package/dist/selfie.d.ts +592 -0
- package/dist/selfie.esm.js +1221 -0
- package/dist/src-DYtpbFY5.esm.js +2781 -0
- package/dist/stats-DnU4uUFv.esm.js +16 -0
- package/dist/stats.d.ts +12 -0
- package/dist/stats.esm.js +4 -0
- package/dist/streamingEvents-CfEJv3xH.esm.js +96 -0
- package/dist/types-CMR6NkxW.d.ts +359 -0
- package/dist/types-CRVSv38Q.d.ts +344 -0
- package/package.json +58 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as api } from "./api-DfRLAneb.esm.js";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/stats/statsServices.ts
|
|
4
|
+
/**
|
|
5
|
+
* Sends device stats to the backend.
|
|
6
|
+
*/
|
|
7
|
+
async function addDeviceStats(stats) {
|
|
8
|
+
try {
|
|
9
|
+
await api.post("/omni/device/stats", stats);
|
|
10
|
+
} catch {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { addDeviceStats as t };
|
package/dist/stats.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/modules/stats/statsServices.d.ts
|
|
2
|
+
type LabelInspectionStatus = 'FAIL' | 'PASS';
|
|
3
|
+
type DeviceStats = {
|
|
4
|
+
cameraLabelInspectionStatus?: LabelInspectionStatus;
|
|
5
|
+
virtualCameraDetected?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Sends device stats to the backend.
|
|
9
|
+
*/
|
|
10
|
+
declare function addDeviceStats(stats: DeviceStats): Promise<void>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { type DeviceStats, type LabelInspectionStatus, addDeviceStats };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { S as stopCameraStream, g as queryCameraPermission, x as requestCameraAccess } from "./src-DYtpbFY5.esm.js";
|
|
2
|
+
import { r as getUserAgent, t as getDeviceInfo } from "./getDeviceClass-DkfbtsIJ.esm.js";
|
|
3
|
+
import { t as endpoints } from "./endpoints-BUsSVoJV.esm.js";
|
|
4
|
+
import { t as api } from "./api-DfRLAneb.esm.js";
|
|
5
|
+
|
|
6
|
+
//#region src/internal/device/getBrowser.ts
|
|
7
|
+
function getBrowser() {
|
|
8
|
+
const userAgent = getUserAgent();
|
|
9
|
+
if (!userAgent) return "other";
|
|
10
|
+
const ua = userAgent.toLowerCase();
|
|
11
|
+
if (ua.includes("edg/")) return "edge";
|
|
12
|
+
if (ua.includes("chrome") && !ua.includes("edg/")) return "chrome";
|
|
13
|
+
if (ua.includes("firefox")) return "firefox";
|
|
14
|
+
if (ua.includes("safari") && !ua.includes("chrome")) return "safari";
|
|
15
|
+
return "other";
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/internal/device/getDeviceClass.ts
|
|
20
|
+
function getDeviceClass() {
|
|
21
|
+
const { userAgent, platform, maxTouchPoints } = getDeviceInfo();
|
|
22
|
+
if (!userAgent) return "desktop";
|
|
23
|
+
const ua = userAgent.toLowerCase();
|
|
24
|
+
if (/iphone|ipad|ipod/.test(ua) || platform === "MacIntel" && maxTouchPoints > 1) return "ios";
|
|
25
|
+
if (/android/.test(ua)) return "android";
|
|
26
|
+
return "desktop";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/internal/permissions/permissionServices.ts
|
|
31
|
+
/**
|
|
32
|
+
* Checks the current camera permission state without prompting the user.
|
|
33
|
+
*/
|
|
34
|
+
async function checkPermission() {
|
|
35
|
+
return queryCameraPermission();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Requests camera permission by attempting to access the camera, then immediately
|
|
39
|
+
* stops the obtained stream. This function does not keep or return the stream.
|
|
40
|
+
*/
|
|
41
|
+
async function requestPermission() {
|
|
42
|
+
try {
|
|
43
|
+
stopCameraStream(await requestCameraAccess({ video: true }));
|
|
44
|
+
return "granted";
|
|
45
|
+
} catch (error) {
|
|
46
|
+
const name = error instanceof Error ? error.name : void 0;
|
|
47
|
+
if (name === "NotAllowedError" || name === "PermissionDeniedError") return "denied";
|
|
48
|
+
return "prompt";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/internal/recordings/recordingsRepository.ts
|
|
54
|
+
async function createRecordingSession(type) {
|
|
55
|
+
return (await api.post(endpoints.recordingCreateSessionV2, { type })).data;
|
|
56
|
+
}
|
|
57
|
+
async function startRecording(params) {
|
|
58
|
+
return (await api.post(endpoints.recordingStartV2, {
|
|
59
|
+
videoRecordingId: params.videoRecordingId,
|
|
60
|
+
frameRate: 30,
|
|
61
|
+
outputMode: "COMPOSED",
|
|
62
|
+
resolution: params.resolution,
|
|
63
|
+
type: params.type,
|
|
64
|
+
hasAudio: params.hasAudio ?? false
|
|
65
|
+
})).data;
|
|
66
|
+
}
|
|
67
|
+
async function stopRecording(videoRecordingId) {
|
|
68
|
+
return (await api.post(endpoints.recordingStopV2, { videoRecordingId })).data;
|
|
69
|
+
}
|
|
70
|
+
async function uploadDeepsightVideo(encryptedVideo, token) {
|
|
71
|
+
try {
|
|
72
|
+
return (await api.post(endpoints.deepsightVideoImport, {
|
|
73
|
+
video: encryptedVideo,
|
|
74
|
+
type: "selfie"
|
|
75
|
+
}, { headers: { "X-Incode-Hardware-Id": token } })).data.recordingId ?? "";
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error("Error uploading deepsight video:", error);
|
|
78
|
+
return "";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/internal/recordings/streamingEvents.ts
|
|
84
|
+
const streamingEvents = {
|
|
85
|
+
strSessionDidConnect: "strSessionDidConnect",
|
|
86
|
+
strSessionDidDisconnect: "strSessionDidDisconnect",
|
|
87
|
+
strSessionDidFailWithError: "strSessionDidFailWithError",
|
|
88
|
+
strStreamVideoCaptureStart: "strStreamVideoCaptureStart",
|
|
89
|
+
strStreamVideoCaptureStop: "strStreamVideoCaptureStop",
|
|
90
|
+
strStreamPublisherCreated: "strStreamPublisherCreated",
|
|
91
|
+
strStreamPublisherDestroyed: "strStreamPublisherDestroyed",
|
|
92
|
+
strStreamPublisherDidFailWithError: "strStreamPublisherDidFailWithError"
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
//#endregion
|
|
96
|
+
export { uploadDeepsightVideo as a, getDeviceClass as c, stopRecording as i, getBrowser as l, createRecordingSession as n, checkPermission as o, startRecording as r, requestPermission as s, streamingEvents as t };
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { AnyStateMachine, StateMachine } from "xstate";
|
|
2
|
+
|
|
3
|
+
//#region ../infra/src/wasm/warmup.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* All available ML pipelines in the SDK.
|
|
7
|
+
* - 'selfie' - Face detection for selfie capture
|
|
8
|
+
* - 'idCapture' - Document detection for ID capture
|
|
9
|
+
*/
|
|
10
|
+
type WasmPipeline = 'selfie' | 'idCapture';
|
|
11
|
+
interface WarmupConfig {
|
|
12
|
+
wasmPath: string;
|
|
13
|
+
wasmSimdPath?: string;
|
|
14
|
+
glueCodePath: string;
|
|
15
|
+
useSimd?: boolean;
|
|
16
|
+
pipelines?: readonly WasmPipeline[];
|
|
17
|
+
/**
|
|
18
|
+
* Base path for ML model files. Models will be loaded from `${modelsBasePath}/${modelFileName}`.
|
|
19
|
+
* If not provided, models are expected to be in the same directory as the WASM files.
|
|
20
|
+
*/
|
|
21
|
+
modelsBasePath?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Custom model files per pipeline. If not provided, uses default models.
|
|
24
|
+
* Keys are pipeline names, values are arrays of model file names.
|
|
25
|
+
*/
|
|
26
|
+
pipelineModels?: Partial<Record<WasmPipeline, string[]>>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Preloads WASM binary and ML models at app startup.
|
|
30
|
+
* Runs asynchronously - app can continue while WASM loads in background.
|
|
31
|
+
*
|
|
32
|
+
* Model files are automatically loaded based on the pipeline type.
|
|
33
|
+
* By default, models are expected in a 'models' subdirectory relative to the WASM binary.
|
|
34
|
+
*
|
|
35
|
+
* @param config - Configuration for WASM warmup
|
|
36
|
+
* @returns Promise that resolves when WASM is ready
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* // Basic usage - models loaded from /wasm/v2/models/
|
|
41
|
+
* warmupWasm({
|
|
42
|
+
* wasmPath: '/wasm/v2/ml-wasm.wasm',
|
|
43
|
+
* glueCodePath: '/wasm/v2/ml-wasm.js',
|
|
44
|
+
* pipelines: ['selfie', 'idCapture'],
|
|
45
|
+
* });
|
|
46
|
+
*
|
|
47
|
+
* // With explicit models path
|
|
48
|
+
* warmupWasm({
|
|
49
|
+
* wasmPath: '/wasm/v2/ml-wasm.wasm',
|
|
50
|
+
* glueCodePath: '/wasm/v2/ml-wasm.js',
|
|
51
|
+
* modelsBasePath: 'https://cdn.example.com/wasm/v2/models',
|
|
52
|
+
* pipelines: ['selfie'],
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare function warmupWasm(config: WarmupConfig): Promise<void>;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/modules/flow/types.d.ts
|
|
59
|
+
type EmptyConfig = Record<string, never>;
|
|
60
|
+
type RegulationTypes = 'US' | 'Worldwide' | 'Other' | 'US_Illinois' | 'US_Texas' | 'US_California' | 'US_Washington';
|
|
61
|
+
type TutorialIdConfig = {
|
|
62
|
+
showTutorial: boolean;
|
|
63
|
+
enableId: boolean;
|
|
64
|
+
enablePassport: boolean;
|
|
65
|
+
onlyFront: boolean;
|
|
66
|
+
onlyBack: boolean;
|
|
67
|
+
barcodeCapture: boolean;
|
|
68
|
+
fetchAdditionalPage: boolean;
|
|
69
|
+
secondId: boolean;
|
|
70
|
+
thirdId: boolean;
|
|
71
|
+
autoCaptureTimeout: number;
|
|
72
|
+
deviceIdleTimeout: number;
|
|
73
|
+
captureAttempts: number;
|
|
74
|
+
manualUploadIdCapture: boolean;
|
|
75
|
+
digitalIdsUpload: boolean;
|
|
76
|
+
showDocumentChooserScreen: boolean;
|
|
77
|
+
enableIdRecording: boolean;
|
|
78
|
+
usSmartCapture: boolean;
|
|
79
|
+
showCaptureButtonInAuto?: boolean;
|
|
80
|
+
perCountryPerDocOverrides: Record<string, Record<string, {
|
|
81
|
+
onlyFront: boolean;
|
|
82
|
+
onlyBack: boolean;
|
|
83
|
+
fetchAdditionalPage: boolean;
|
|
84
|
+
}>>;
|
|
85
|
+
};
|
|
86
|
+
type FlowModuleConfig = {
|
|
87
|
+
AUTHENTICATION: {
|
|
88
|
+
showTutorial: boolean;
|
|
89
|
+
autoCaptureTimeout: number;
|
|
90
|
+
numberOfAttempts: number;
|
|
91
|
+
type: 'ONE_TO_ONE';
|
|
92
|
+
deepsightLiveness: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
|
|
93
|
+
validateClosedEyes: boolean;
|
|
94
|
+
validateFaceMask: boolean;
|
|
95
|
+
validateHeadCover: boolean;
|
|
96
|
+
validateLenses: boolean;
|
|
97
|
+
};
|
|
98
|
+
ADDRESS: {
|
|
99
|
+
disableSkipPoa: boolean;
|
|
100
|
+
title: string;
|
|
101
|
+
text: string;
|
|
102
|
+
};
|
|
103
|
+
AE_SIGNATURE: {
|
|
104
|
+
uploadDocument: boolean;
|
|
105
|
+
downloadDocument: boolean;
|
|
106
|
+
issuePermanentCertificate: boolean;
|
|
107
|
+
allowWithoutScoreValidation: boolean;
|
|
108
|
+
validationsToSkip: ('ID' | 'FACE_RECOGNITION' | 'OTP' | 'TOTAL_SCORE')[];
|
|
109
|
+
};
|
|
110
|
+
CURP_VALIDATION: {
|
|
111
|
+
curpDataMatch: boolean;
|
|
112
|
+
deceasedStatusVerification: boolean;
|
|
113
|
+
};
|
|
114
|
+
CUSTOM_FIELDS: {
|
|
115
|
+
title: string;
|
|
116
|
+
customFields: {
|
|
117
|
+
name: string;
|
|
118
|
+
alias: string;
|
|
119
|
+
type: 'INTEGER' | 'DOUBLE' | 'BOOLEAN' | 'STRING';
|
|
120
|
+
}[];
|
|
121
|
+
};
|
|
122
|
+
DOCUMENT_CAPTURE: {
|
|
123
|
+
processingType: 'capture' | 'processPoaOcr' | 'processLoaOcr' | 'processAsylumSeekerVisaZaf' | 'processBankStatementOCR' | 'processBankCheck' | 'processV5CLogbook' | 'processCarInvoice' | 'processCirculationCard' | 'processFinanceSettlement';
|
|
124
|
+
title: string;
|
|
125
|
+
text: string;
|
|
126
|
+
allowSkipDocumentCapture: boolean;
|
|
127
|
+
};
|
|
128
|
+
EKYB: {
|
|
129
|
+
checkBusinessName: boolean;
|
|
130
|
+
businessNameSource: 'userInput';
|
|
131
|
+
checkAddress: boolean;
|
|
132
|
+
address: 'userInput';
|
|
133
|
+
checkTaxId: boolean;
|
|
134
|
+
taxIdSource: 'userInput';
|
|
135
|
+
checkUniqueBeneficialOwner: boolean;
|
|
136
|
+
uniqueBeneficialOwnerSource: 'userInput';
|
|
137
|
+
};
|
|
138
|
+
EXTERNAL_VERIFICATION: {
|
|
139
|
+
source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'MX_CONSUMER_1' | 'BR_GOVT_1' | 'CA_RES_CREDIT' | 'UK_CREDIT_BUREAU_1' | 'ES_1' | 'CL_1' | 'AR_1' | 'GR_1' | 'GT_1' | 'BR_CPF_1';
|
|
140
|
+
checkName: boolean;
|
|
141
|
+
nameSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
142
|
+
checkEmail: boolean;
|
|
143
|
+
emailSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
144
|
+
checkAddress: boolean;
|
|
145
|
+
addressSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
146
|
+
checkPhone: boolean;
|
|
147
|
+
phoneSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
148
|
+
checkSsn: boolean;
|
|
149
|
+
ssnSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
150
|
+
checkDob: boolean;
|
|
151
|
+
dobSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
152
|
+
checkNationality: boolean;
|
|
153
|
+
nationalitySource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
154
|
+
checkDlNumber: boolean;
|
|
155
|
+
dlNumberSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
156
|
+
checkDlState: boolean;
|
|
157
|
+
dlStateSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
158
|
+
checkDlExpireAt: boolean;
|
|
159
|
+
dlExpireAtSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
160
|
+
checkLast4SSN: boolean;
|
|
161
|
+
last4SSNSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
162
|
+
checkIdNum: boolean;
|
|
163
|
+
idNumSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
164
|
+
checkIdNum1: boolean;
|
|
165
|
+
idNum1Source: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
166
|
+
checkGender: boolean;
|
|
167
|
+
genderSource: 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
168
|
+
};
|
|
169
|
+
EMAIL: {
|
|
170
|
+
otpVerification: boolean;
|
|
171
|
+
otpExpirationInMinutes: number;
|
|
172
|
+
prefill?: boolean;
|
|
173
|
+
};
|
|
174
|
+
FACE_MATCH: {
|
|
175
|
+
matchingType: 'selfieVsId' | 'selfieVsNfc' | 'idVsNfc' | 'nfc3Way';
|
|
176
|
+
disableFaceMatchAnimation: boolean;
|
|
177
|
+
};
|
|
178
|
+
FINISH_GPT: {
|
|
179
|
+
finishgptCompanyName: string;
|
|
180
|
+
};
|
|
181
|
+
GEOLOCATION: {
|
|
182
|
+
allowUserToSkipGeolocation: boolean;
|
|
183
|
+
};
|
|
184
|
+
INE_VALIDATION: {
|
|
185
|
+
facialValidation: boolean;
|
|
186
|
+
alternativeFacialValidation: boolean;
|
|
187
|
+
fallbackEnabled: boolean;
|
|
188
|
+
scrapingMethod: boolean;
|
|
189
|
+
scrapingV2: boolean;
|
|
190
|
+
scrapingV3: boolean;
|
|
191
|
+
failUnsupportedId: boolean;
|
|
192
|
+
dataValidation: boolean;
|
|
193
|
+
backgroundExecution: boolean;
|
|
194
|
+
mockConnectionError: boolean;
|
|
195
|
+
mockUserNotFoundError: boolean;
|
|
196
|
+
mockOK: boolean;
|
|
197
|
+
};
|
|
198
|
+
GOVT_VALIDATION_PROVISIONING: {
|
|
199
|
+
validationCountries: string[];
|
|
200
|
+
facialValidation: boolean;
|
|
201
|
+
dataValidation: boolean;
|
|
202
|
+
faceAndDataValidation: boolean;
|
|
203
|
+
addressValidation: boolean;
|
|
204
|
+
backgroundExecution: boolean;
|
|
205
|
+
faceMatchOverrideDataScore: boolean;
|
|
206
|
+
useCroppedIdFacePhoto: boolean;
|
|
207
|
+
};
|
|
208
|
+
TUTORIAL_ID: TutorialIdConfig;
|
|
209
|
+
ID: TutorialIdConfig;
|
|
210
|
+
SECOND_ID: TutorialIdConfig;
|
|
211
|
+
THIRD_ID: TutorialIdConfig;
|
|
212
|
+
ID_OCR: {
|
|
213
|
+
editableOcr: boolean;
|
|
214
|
+
};
|
|
215
|
+
INCODE_WATCHLIST: {
|
|
216
|
+
failIfFaceOnBlocklist: boolean;
|
|
217
|
+
addSuspectedFraudAutomatically: boolean;
|
|
218
|
+
autoExecution: boolean;
|
|
219
|
+
};
|
|
220
|
+
INSTANT_BAV: {
|
|
221
|
+
bavVendorCountry: 'US' | 'CA' | 'AU' | 'NZ' | 'BR' | 'MX' | 'CO' | 'UK' | 'EU';
|
|
222
|
+
bavNumberOfRetries: number;
|
|
223
|
+
};
|
|
224
|
+
ML_CONSENT: {
|
|
225
|
+
consentType: RegulationTypes;
|
|
226
|
+
};
|
|
227
|
+
NFC_SCAN: {
|
|
228
|
+
nfcAvailability: boolean;
|
|
229
|
+
nfcValidation: boolean;
|
|
230
|
+
showInitialDataConfirmationScreen: boolean;
|
|
231
|
+
};
|
|
232
|
+
PHONE: {
|
|
233
|
+
otpVerification: boolean;
|
|
234
|
+
otpExpirationInMinutes: number;
|
|
235
|
+
prefill: boolean;
|
|
236
|
+
};
|
|
237
|
+
SELFIE: {
|
|
238
|
+
showTutorial: boolean;
|
|
239
|
+
showPreview: boolean;
|
|
240
|
+
assistedOnboarding: boolean;
|
|
241
|
+
enableFaceRecording: boolean;
|
|
242
|
+
autoCaptureTimeout: number;
|
|
243
|
+
captureAttempts: number;
|
|
244
|
+
validateLenses: boolean;
|
|
245
|
+
validateFaceMask: boolean;
|
|
246
|
+
validateHeadCover: boolean;
|
|
247
|
+
validateClosedEyes: boolean;
|
|
248
|
+
validateBrightness: boolean;
|
|
249
|
+
deepsightLiveness: 'SINGLE_FRAME' | 'MULTIMODAL' | 'VIDEOLIVENESS';
|
|
250
|
+
};
|
|
251
|
+
SIGNATURE: {
|
|
252
|
+
title: string;
|
|
253
|
+
subTitle: string;
|
|
254
|
+
};
|
|
255
|
+
USER_CONSENT: {
|
|
256
|
+
title: string;
|
|
257
|
+
text: string;
|
|
258
|
+
};
|
|
259
|
+
CONFERENCE: {
|
|
260
|
+
enableConferenceOtp: boolean;
|
|
261
|
+
};
|
|
262
|
+
VIDEO_ONBOARDING: {
|
|
263
|
+
useAsSelfie: boolean;
|
|
264
|
+
showTutorials: boolean;
|
|
265
|
+
companyName: string;
|
|
266
|
+
checkLiveness: boolean;
|
|
267
|
+
checkIdScan: boolean;
|
|
268
|
+
checkDocumentScan: boolean;
|
|
269
|
+
compareIdEnabled: boolean;
|
|
270
|
+
compareOcrEnabled: boolean;
|
|
271
|
+
compareBackIdEnabled: boolean;
|
|
272
|
+
compareBackOcrEnabled: boolean;
|
|
273
|
+
checkVoiceConsent: boolean;
|
|
274
|
+
voiceConsentQuestions: number;
|
|
275
|
+
selfieQualityAffectsScore: boolean;
|
|
276
|
+
maxWaitingVideoSelfieFile: number;
|
|
277
|
+
lastSecondsVideoQualityCheck: boolean;
|
|
278
|
+
lastSecondsVideoQualityCheckDuration: number;
|
|
279
|
+
validateClosedEyes: boolean;
|
|
280
|
+
validateFaceMask: boolean;
|
|
281
|
+
validateHeadCover: boolean;
|
|
282
|
+
validateLenses: boolean;
|
|
283
|
+
};
|
|
284
|
+
DYNAMIC_FORMS: {
|
|
285
|
+
screens: {
|
|
286
|
+
title: string;
|
|
287
|
+
hideTitle: boolean;
|
|
288
|
+
questions: {
|
|
289
|
+
questionId: string;
|
|
290
|
+
overrides: string | null;
|
|
291
|
+
isPredefined: boolean;
|
|
292
|
+
predefinedQuestionType: string | null;
|
|
293
|
+
question: string;
|
|
294
|
+
inputType: 'NUMBER' | 'CPF' | 'COUNTRY' | 'NATIONALITY' | 'DATE' | 'PHONE' | 'EMAIL' | 'TEXT' | 'MULTISELECT' | 'YESNO' | 'SELECT';
|
|
295
|
+
options: string[];
|
|
296
|
+
}[];
|
|
297
|
+
}[];
|
|
298
|
+
};
|
|
299
|
+
COMBINED_CONSENT: {
|
|
300
|
+
combinedConsents: string;
|
|
301
|
+
};
|
|
302
|
+
QE_SIGNATURE: {
|
|
303
|
+
uploadDocument: boolean;
|
|
304
|
+
downloadDocument: boolean;
|
|
305
|
+
};
|
|
306
|
+
CERTIFICATE_ISSUANCE: {
|
|
307
|
+
region: string;
|
|
308
|
+
type: 'ONE_TIME' | 'SHORT_TERM' | 'LONG_TERM';
|
|
309
|
+
};
|
|
310
|
+
ANTIFRAUD: EmptyConfig;
|
|
311
|
+
CHECKBOX_SIGNATURE: EmptyConfig;
|
|
312
|
+
CROSS_DOCUMENT_DATA_MATCH: EmptyConfig;
|
|
313
|
+
DEVICE_FINGERPRINT: EmptyConfig;
|
|
314
|
+
FACE_ONBOARDING: EmptyConfig;
|
|
315
|
+
FIELD_COMPARISON: EmptyConfig;
|
|
316
|
+
FISCAL_QR: EmptyConfig;
|
|
317
|
+
GENERATE_QR: EmptyConfig;
|
|
318
|
+
INSTANT_VERIFY: EmptyConfig;
|
|
319
|
+
IP_ADDRESS: EmptyConfig;
|
|
320
|
+
NAME_CAPTURE: EmptyConfig;
|
|
321
|
+
SHOW_RESULTS: EmptyConfig;
|
|
322
|
+
STADIUM_SELECTOR: EmptyConfig;
|
|
323
|
+
UNIVERSAL_IDENTITY: EmptyConfig;
|
|
324
|
+
WATCHLIST: EmptyConfig;
|
|
325
|
+
TRUST_GRAPH: EmptyConfig;
|
|
326
|
+
WATCHLIST_BUSINESS: EmptyConfig;
|
|
327
|
+
};
|
|
328
|
+
type FlowModule = { [K in keyof FlowModuleConfig]: {
|
|
329
|
+
key: K;
|
|
330
|
+
configuration: FlowModuleConfig[K];
|
|
331
|
+
} }[keyof FlowModuleConfig];
|
|
332
|
+
type Flow = {
|
|
333
|
+
flowId: string;
|
|
334
|
+
name: string;
|
|
335
|
+
autoApproveEnabled?: boolean;
|
|
336
|
+
autoApproveLevel?: 'LOW' | 'MEDIUM' | 'HIGH';
|
|
337
|
+
checkTutorials?: boolean;
|
|
338
|
+
checkAuthorization?: boolean;
|
|
339
|
+
redirectDesktopToMobile?: boolean;
|
|
340
|
+
disableUnsupportedBrowserScreen?: boolean;
|
|
341
|
+
qrPhishingResistance?: boolean;
|
|
342
|
+
addContinueToDesktop?: boolean;
|
|
343
|
+
redirectOriginOnly?: boolean;
|
|
344
|
+
displayOnboardingResultOnDesktop?: boolean;
|
|
345
|
+
enableMultipleOnboardings?: boolean;
|
|
346
|
+
disableLaunchScreen?: boolean;
|
|
347
|
+
enableSardineRisk?: boolean;
|
|
348
|
+
mandatoryConsentCheck?: boolean;
|
|
349
|
+
disableSmsOption?: boolean;
|
|
350
|
+
mergeSessionRecordings?: boolean;
|
|
351
|
+
ageAssurance?: boolean;
|
|
352
|
+
flowModules: FlowModule[];
|
|
353
|
+
enforceCaptureAttemptLimits?: boolean;
|
|
354
|
+
enableFraudAi?: boolean;
|
|
355
|
+
getEnableIdOnlyIdentity?: boolean;
|
|
356
|
+
ds?: boolean;
|
|
357
|
+
};
|
|
358
|
+
//#endregion
|
|
359
|
+
export { AnyStateMachine as a, warmupWasm as c, TutorialIdConfig as i, FlowModule as n, StateMachine as o, FlowModuleConfig as r, WasmPipeline as s, Flow as t };
|